Page 1 of 1
Instance color
Posted: Wed Jun 01, 2011 12:41 pm
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
Re: Instance color
Posted: Wed Jun 01, 2011 4:44 pm
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

Re: Instance color
Posted: Wed Jun 01, 2011 5:07 pm
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??
Re: Instance color
Posted: Wed Jun 01, 2011 9:57 pm
by jure
It's described in the
manual-
Re: Instance color
Posted: Fri Jun 03, 2011 9:57 am
by keeejreeej
What is the template object?
Re: Instance color
Posted: Fri Jun 03, 2011 10:11 pm
by jure
keeejreeej wrote:What is the template object?
It's the object you apply Kray Instances plugin to.
Re: Instance color
Posted: Mon Jun 06, 2011 1:54 pm
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)
Re: Instance color
Posted: Fri Jun 10, 2011 12:34 pm
by keeejreeej
Please can anyone explain, just can't seem to get this to work.....
Re: Instance color
Posted: Fri Jun 10, 2011 6:55 pm
by Janusz Biela
...just remember select: WORLD COORDINATES in texture Editor and USE COLOR in instance Kray menu....
Re: Instance color
Posted: Tue Jun 14, 2011 3:45 pm
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.
Re: Instance color
Posted: Wed Jun 15, 2011 2:29 pm
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?
Re: Instance color
Posted: Fri Jun 17, 2011 11:51 am
by keeejreeej
Well anyone? What would be the best way to color filter instanced trees so they don't all look the same?
Re: Instance color
Posted: Fri Jun 17, 2011 12:35 pm
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...