Page 1 of 1

Fur Shader - Anyone?

Posted: Sat Feb 10, 2007 7:43 pm
by andrewdfrost
Has anyone implemented a fur shader in Irrlicht? If so can you tell me how, as I am struggling.

Thanks

Posted: Sat Feb 10, 2007 9:11 pm
by sio2
What problems are you having?

Posted: Sun Feb 11, 2007 8:05 am
by andrewdfrost
For each frame update I want to set the same shader constants (with different values for each shell) and redraw the mesh with a new texture.

There doesn't seem an obvious way of doing this.

Posted: Sun Feb 11, 2007 1:21 pm
by Anteater
I don't know if this will help but RenderMonkey has a fur shader.

Posted: Sun Feb 11, 2007 3:44 pm
by andrewdfrost
Thanks for that. I have the shader written ok, the problem I have is coding Irrlict to use it. I have used the shader before in an MDX app.

Posted: Sun Feb 11, 2007 4:02 pm
by TheC
If you are using a multipass shader for the fur (like the rendermonkey or FX Composer demos), you'll have to add your own multipass support to irrlicht.

Posted: Sun Feb 11, 2007 6:01 pm
by andrewdfrost
Cheers. That's what I thought. Has anyone done this yet? I don't want to have to re-invent the wheel.