Fur Animation Demo for the Irrlicht 3D Engine
=============================================
sio2 'at' users.sourceforge.net
This is a demo of realtime fur rendering on an animated mesh. Additionally, the fur is coloured based on a multi-coloured texture. The fur is built up in 13 alpha-blended passes, plus an initial "skin" pass for a total of 14 passes. The demo was implemented using only the Irrlicht API.
Usage
=====
WASD keys or arrow (cursor) keys to move camera.
Alt-F4 or Escape key to exit.
Requirements
============
Drivers:
Latest DirectX 9.0b drivers [www.microsoft.com/directx],
Latest DirectX9 drivers for your graphics hardware [from your HW vendor].
Graphics hardware with:
Vertex Shader 1.1 support, or better
Pixel Shader 1.1 support, or better.
Notes
=====
1. This demo may require the Visual Studio 2005 Redistributable Files installed on your machine. These can be obtained from http://www.sio2.g0dsoft.com in the "Misc" section in "Downloads".
2. This Irrlicht build is of unmodified Irrlicht Subversion revision 470.
Credits
=======
1. This fur shader is based on the ATI RenderMonkey sample. The OpenGL GLSL shader from the sample was converted to a Direct3D9 HLSL shader for this demo.
2. The mesh is the "Tiny.x" mesh from the DirectX SDK converted to Blitz3D format (.b3d).
I'm getting a "shaders not supported" error when I try to run the exe. I'm using an N*Vidia GFfx5200, which should be more than enough to run a PS1.1 shader, so I'm guessing I need to update my drivers. Anyway, it looks really cool. I can't wait to try it out.
Anteater wrote:I'm getting a "shaders not supported" error when I try to run the exe. I'm using an N*Vidia GFfx5200, which should be more than enough to run a PS1.1 shader, so I'm guessing I need to update my drivers. Anyway, it looks really cool. I can't wait to try it out.
make sure you have the latest DirectX runtimes installed too, I had that problem with another of his demos yesterday (the glass one, everything was all transparent )
monkeycracks wrote:I get 7-8FPS but really cool anyways.
Well, it's drawing 14 animated meshes to build up the fur, remember. Thirteen of those are alpha-blended with the framebuffer so I guess it can be quite fill-rate intensive.
We really could do with Vertex Buffer support in Irrlicht and hardware skinning, though I do only skin the model for the first pass and reuse the skinned mesh for the other 13 passes.
You may have noticed that it uses a .b3d version of "tiny.x", since your B3D animation code is so much faster than anything else.
I also haven't done the tangent-space hair-length map yet. With it I can vary the hair length over the body - I could just have hair on the head (furry hair)!
The Anaconda wrote:
only getting that if shes on the left side of the screen. doesnt do it if shes on the right, but it does it from her facing all directions
Vista drivers. The driver model was changed for Vista and I guess they're still ironing out the bugs.
I'd be interested in knowing if anyone else is seeing this on non-Vista machines, though.
only getting that if shes on the left side of the screen. doesnt do it if shes on the right, but it does it from her facing all directions
I just ran on Vista and it looked OK for me. I noticed the odd incorrect triangle in my Irrlicht/Newton demo, though. I think Vista video drivers maybe have a few bugs.
I ran this fur demo on Vista and got 153fps with the Aero interface and 198fps with the Classic interface (D3D9 isn't rendering the desktop). On XP I get 216fps. With Vista I'd imagine I'd get better numbers fullscreen, as D3D9 isn't rendering the desktop and my demo at the same time.