PDA

View Full Version : Post Rug Creation.


InTheCity
02-22-2008, 09:56 AM
Simple camera projecting and compositing to use Cinemas hair module
after the VRay rendering is complete.

Why? Because hair as an object can kill your scene with millions of unwanted poly's.

I apologize if it seems rushed.

http://www.project1media.com/cl3/rugtut.jpg


Here's a script to erase all x marked texture tags.
Just add to script manager and run.


op = doc->GetFirstObject();
while (op)
{
var tag = op->GetFirstTag();
while (tag)
{
var rtag = tag;
tag = tag->GetNext();
if (rtag->IsInstanceOf(Ttexture))
{
var mat = rtag#TEXTURETAG_MATERIAL;
if (!mat || !mat->GetDocument())
{
doc->AddUndo(UNDO_DELETE, rtag);
rtag->Remove();
}
}
}

if (op->GetDown()) op = op->GetDown();
else
{
while (!op->GetNext() && op->GetUp()) op = op->GetUp();
op = op->GetNext();
}
}
EventAdd();

InTheCity
02-22-2008, 10:09 AM
As a side note and you may run into this problem.

If you have some reflective objects in the scene that needed to pick up
the rug in their reflection - You can do the following;

Don't calculate it's reflection in VRay.

Pull the object in question from the Null.

Duplicate your 'projection material' -
Apply it as 'Camera projection' again (same method as before)
But this time add the necessary glossy reflections to that single material.

This won't always work, because behind your camera exists some very
bizarre mapping (Take a look in editor mode).
There are even additional work around's for this should it happen.
(Rendering a separate vray shot for the background/mapping to a plane)
Mostly for subtle objects, this method will work quite well.

InTheCity
02-22-2008, 10:17 AM
and just for kicks... (not a rug)

http://www.project1media.com/vray/fungrass.jpg

and with that, I bid you goodnight :P

machmirdenlukas
02-22-2008, 12:36 PM
and with that, I bid you goodnight :P
:lol:

nutriman
02-22-2008, 01:13 PM
Thanks for sharing this valuable workaround!

choppir
02-22-2008, 01:31 PM
yes thanks! :D

Rich_Art
02-22-2008, 07:02 PM
Thanks..

Peace,
Rich_Art. :wink:

adri
02-22-2008, 10:30 PM
it's a great technique I'm sure...

...but it doesn't look anything like a rug.

IMHO.

adri

InTheCity
02-22-2008, 11:01 PM
it's a great technique I'm sure...

...but it doesn't look anything like a rug.

IMHO.

adri

Dude, it's very common for people to want dying patches of grass in their living rooms, you shouldn't be so quick to judge.

:)

adri
02-22-2008, 11:39 PM
I wasn't quick to judge...I took my time...

And on reflection. Still looks nothing like a rug!

:-)

scanmead
02-23-2008, 01:04 AM
I just bought a new string trimmer. Want to borrow it? On second thought, the kitties would love this! :D

Thanks for posting this, the flokati look has been eluding me!

InTheCity
02-23-2008, 03:38 AM
Here's a general purpose Shag rug that works well enough.
Scaled according to VRay settings also.

http://www.project1media.com/vray/Rug1.rar

It's the top left image

http://www.project1media.com/vray/rugs.jpg

nycL45
02-23-2008, 05:56 PM
InTheCity, thanks for generously giving your time to put this tutorial together. Text, pics and even a script! Very nice. Also, thanks for not being vague or leaving out key steps/information. (On the last point, I am giving you 4 1/2 stars. I would give you 5 but I am not advanced enough with cg/vray to know perfection.)

glass.use
02-23-2008, 06:08 PM
thank you very much for the time doing this.
i also love the rug file you posted 8)

InTheCity
02-24-2008, 06:44 AM
The script (and I apologize for not stating the source earlier)
was created by 'Per-Anders Edwards' from CG-Talk.

If I only I could write code..... :(

Sauron
04-16-2008, 12:19 AM
thank you very much .. :)

MrElusive
04-17-2008, 02:31 AM
just to let you know, you can also achieve the same effect using the actual hair polygons themselves too, and by that i mean have the hair render in vray. The "secret" is to go into the "Generate" tab of the hair object's attributes, and the "Type" attribute to something other than none.
Typically i find for a nice looking carpet feel i go for the triangle type, and for grass, i use Flat. Not only does flat speed it up anyway, but it accentuates the whole "blades of grass" concept anyway.

If you have a slow single-core like me though, make sure to change your settings in the "editor" tab of the hair object's attributes as well.

eg:
http://www.freewebtown.com/mrelusive/library/image/Bloom%20Room%20Vray%20HDTV%202560.jpg

soz for the overly large resolution

donward
08-09-2008, 09:53 AM
So True :shock:

Thanks for your effort InTheCity this is very useful interesting way of mixing methods

This is very useful Thanks a lot MrElusive


Thanks a Lot :D

kamelvfc4d
09-01-2008, 04:23 PM
thank you very much

DV81
10-09-2008, 12:42 AM
Hi guys
http://www.project1media.com/vray/rugs.jpg

how did he create the words MAXON onto the rug ? any help with this is appreciated thanks so much guys !

afternooncoffeeboy
10-09-2008, 08:58 AM
jpg -> flat projection @ your hair object

DV81
10-09-2008, 10:24 AM
hmmmm what do u mean jpeg -> projection ?

i wander if someone could make a simple file to demonstrate how to project a photoshop file or pattern colours of my choice onto a carpet like the above ?

thanks so much in advance !!!


Bass