Instance color

Post your tutorials and help questions in this forum
Locked
keeejreeej
Posts: 54
Joined: Fri Aug 24, 2007 12:09 pm
Location: Belgium

Instance color

Post by keeejreeej »

I would like to use instances to clone cars in my scene. Every car should have a different color (so only one of the applied materials should change).
Is there any way to do this in Kray?

LW 9.6 x64 Win7
User avatar
Janusz Biela
Posts: 3265
Joined: Mon Mar 13, 2006 10:39 am
Location: Finland
Contact:

Re: Instance color

Post by Janusz Biela »

keeejreeej wrote:I would like to use instances to clone cars in my scene. Every car should have a different color (so only one of the applied materials should change).
Is there any way to do this in Kray?

LW 9.6 x64 Win7

not yet :(
keeejreeej
Posts: 54
Joined: Fri Aug 24, 2007 12:09 pm
Location: Belgium

Re: Instance color

Post by keeejreeej »

What about the 'use color' option. Can you explain that, how does that work. Was thinking about putting colored parts of car in seperate layer and use the 'use color' option on that??
jure
Posts: 2142
Joined: Thu Jun 02, 2005 6:53 pm

Re: Instance color

Post by jure »

It's described in the manual-
- Jure
keeejreeej
Posts: 54
Joined: Fri Aug 24, 2007 12:09 pm
Location: Belgium

Re: Instance color

Post by keeejreeej »

What is the template object?
jure
Posts: 2142
Joined: Thu Jun 02, 2005 6:53 pm

Re: Instance color

Post by jure »

keeejreeej wrote:What is the template object?
It's the object you apply Kray Instances plugin to.
- Jure
keeejreeej
Posts: 54
Joined: Fri Aug 24, 2007 12:09 pm
Location: Belgium

Re: Instance color

Post by keeejreeej »

Just can't seem to get different colors for my instances ?
If I use custom object to apply instance to, then only one instance is applied per custom object so will color filtering work here?
When using normal points (points to poly) and apply material then color of template object should color filter the instances right?


Maybe Jure can explain using nodes to change colors (http://www.kraytracing.com/joomla/forum ... =viewtopic)
keeejreeej
Posts: 54
Joined: Fri Aug 24, 2007 12:09 pm
Location: Belgium

Re: Instance color

Post by keeejreeej »

Please can anyone explain, just can't seem to get this to work.....
User avatar
Janusz Biela
Posts: 3265
Joined: Mon Mar 13, 2006 10:39 am
Location: Finland
Contact:

Re: Instance color

Post by Janusz Biela »

...just remember select: WORLD COORDINATES in texture Editor and USE COLOR in instance Kray menu....
keeejreeej
Posts: 54
Joined: Fri Aug 24, 2007 12:09 pm
Location: Belgium

Re: Instance color

Post by keeejreeej »

Well this is how i got my results :

I used james willmott's ObjectID node http://www.newtek.com/forums/showthread ... 372&page=2

My scene is an architectural birdseye view with instanced cars.
I have used 2 custom objects to apply instances to.
I split the car into 2 layers, one containing the cars body (colored parts) and second layer the remaining.
Used 2 custom objects parented to eachother, one for instance of car without body (no color filtering) and the other for instance of body.
The custom (template) object for the cars body has ObjectID node and gradient layer with different colors based on ObjectID (so this will not work with one template object containing points)
'Use color' will now change color of custum object (car body) based on ObjectID and thus have seperate color for color filtering each instance.
keeejreeej
Posts: 54
Joined: Fri Aug 24, 2007 12:09 pm
Location: Belgium

Re: Instance color

Post by keeejreeej »

And continuing with trees .....
made a point object to instance trees.
As all the points are part of the same object the ObjectID node will not work here.
Color filtering will color filter all trees equally right? Ofcourse I can use a texture to color filter but that will filter through each tree.
Is there any way to color filter each tree seperately?
keeejreeej
Posts: 54
Joined: Fri Aug 24, 2007 12:09 pm
Location: Belgium

Re: Instance color

Post by keeejreeej »

Well anyone? What would be the best way to color filter instanced trees so they don't all look the same?
jure
Posts: 2142
Joined: Thu Jun 02, 2005 6:53 pm

Re: Instance color

Post by jure »

keeejreeej wrote:Well anyone? What would be the best way to color filter instanced trees so they don't all look the same?
Texture map with world coordinates on...
- Jure
Locked