CarlRiver
04-07-2008, 12:17 AM
Hey guys,
I hope you can help me out on this one. I am looking for a way for particles to pick up the color of the surface which they have collided with.
Essentially I need to sample the color of a 2D texture map at a given UV position and write this into the rgbPP attribute. How do I go about this?
I know how to get the UV coordinates of the collision through the collisionU and collisionV attributes, I even found a way for textures to only output the color at a certain UV coordinate. Still I can't figure out a way how to use this information to drive my rgbPP's.
Maybe this would be easier to solve using software particles and a simple shader, but I would very much prefer to use HW particles instead.
thx in advance
I hope you can help me out on this one. I am looking for a way for particles to pick up the color of the surface which they have collided with.
Essentially I need to sample the color of a 2D texture map at a given UV position and write this into the rgbPP attribute. How do I go about this?
I know how to get the UV coordinates of the collision through the collisionU and collisionV attributes, I even found a way for textures to only output the color at a certain UV coordinate. Still I can't figure out a way how to use this information to drive my rgbPP's.
Maybe this would be easier to solve using software particles and a simple shader, but I would very much prefer to use HW particles instead.
thx in advance
