Animated Fur Demo

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

bami wrote:I want to hug it, it looks so plush :P
Anyways, runs at 150 FPS for me, but I also get that weird bug.
I'm running a Radeon x1600 under XP SP2.
If Anaconda's card is ATI I'll try my ATI X1800 and see if its an ATI issue.
sRc
Posts: 431
Joined: Thu Jul 28, 2005 1:44 am
Location: Salt Lake City, Utah
Contact:

Post by sRc »

sio2 wrote:
The Anaconda wrote:
sio2 wrote: I just ran on Vista and it looked OK for me.
figures :lol:
Like I say, I'm seeing "dropouts" is my other demos. That may be a driver glitch unrelated to this issue, though.
The Anaconda wrote:what card you got again? and what drivers you running
nvidia 7800GTX. I'm on XP now - I'll check Vista driver version next time I boot into it.

Is your card ATI? If so, there may be a trend as someone has reported the same on an ATI card. I have an X1800 I can try (if your card is ATI)...
yeah mine's an ATI, a x1650PRO. particularly im running Vista x64, Catalyst 7.1 drivers

and this random triangle's better than having nVidia and not having SLi support :lol:
The Bard sRc

Blog | Twitter
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

The Anaconda wrote:yeah mine's an ATI, a x1650PRO. particularly im running Vista x64, Catalyst 7.1 drivers
I'll try on an ATI and see.
The Anaconda wrote:and this random triangle's better than having nVidia and not having SLi support :lol:
Lost me a bit there. I have SLI support... :lol:
sRc
Posts: 431
Joined: Thu Jul 28, 2005 1:44 am
Location: Salt Lake City, Utah
Contact:

Post by sRc »

sio2 wrote:Lost me a bit there. I have SLI support... :lol:
ahh so they got working Vista drivers with SLi finally? I hadnt heard that, i know a couple people at my work were complaining for the first few days with Vista being out because the SLi wasnt working yet :lol:
The Bard sRc

Blog | Twitter
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

The Anaconda wrote:
sio2 wrote:Lost me a bit there. I have SLI support... :lol:
ahh so they got working Vista drivers with SLi finally? I hadnt heard that, i know a couple people at my work were complaining for the first few days with Vista being out because the SLi wasnt working yet :lol:
Sorry, my mistake. I thought you were talking about XP. :roll:
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

Ouch! I just compiled the first Fur demo against latest IrrSpintz (Spintz's bespoke version of Irrlicht) and the frame rate jumped from 230fps to 432fps. Very minimal code changes (u32 to s32 kinda stuff).
omaremad
Competition winner
Posts: 1027
Joined: Fri Jul 15, 2005 11:30 pm
Location: Cairo,Egypt

Post by omaremad »

Nice demo, i thought the actual fur was animated though. So tired to make a fur in wind effect. Booted up render monkey but the fur example was in dx asm 1.4 (which meant i couldnt change it as i only know gl asm or post 2.0 dx asm) It kept complaining about texture and arithmatic operation ordering.
How did you tackle that?

So i just wrote the animator in high level here is a snippet

Code: Select all

//vertex shader
uniform vec3 windvector;

//wind power float generated by sins and cosines like klaskers wind //genrator
uniform float windpower;

//in main statement

//Pushing power (bigger pass number = far from body = easily moved)
float pushpower= dot(normal,normalize(windvector))*passnumber*windpower;

texcoord+=pushpower;
this should pushh hairs depending on how they face the wind.

Btw i hope to starting coding a new effect (got a little doc with all the ideas written down) that might compliment your window effect nicely, if you are interested it would propbably be a good idea if we can think it over togeher before i start coding. after all two heads are better than one.
"Irrlicht is obese"

If you want modern rendering techniques learn how to make them or go to the engine next door =p
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

Interesting point. The fur moves, but it doesn't actually move. :mrgreen:

There's a "flowing fur" RenderMonkey sample - it's GLSL so you'd have to convert it to HLSL if you want it to work with DX9.

Note that my demo supports PS1.1. :wink:

Let me know about about that "new effect". You have piqued my interest.
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

Interesting note...

In the newest DX9 ( Dec 2006 ), PS 1.x is no longer supported. You must use PS 2.0 or higher. Not sure about DX10, but I think the same holds true, must use PS 2.0 or higher.
Last edited by Spintz on Sun Mar 04, 2007 2:40 pm, edited 1 time in total.
Image
monkeycracks
Posts: 1029
Joined: Thu Apr 06, 2006 12:45 am
Location: Tennesee, USA
Contact:

Post by monkeycracks »

@Sprintz, that makes me sad inside.
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

I might be misinformed, I didn't read into it much, since I always use PS >= 2.0 anyway. It may be something where the HLSL compiler will not generate code for a PS target < 2.0. Maybe you can still use straight ASM code for PS < 2.0.

There are MAJOR differences between PS 1.x and 2.0 and greater. Even if you are writing ASM PS's, registers are completely different between PS 1.x and PS > 2.0, most noticeably are they texture registers. For the texture reason alone, I've been compiling my shaders for PS 2.0 or greater anyways, so I don't need to maintain two different HLSL codes for a single shader program.
Last edited by Spintz on Sun Mar 04, 2007 2:39 pm, edited 1 time in total.
Image
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

SM1.x is very restricted. SM2.0 is OK, but I couldn't get my second RayTrace into 2.0 - only 2.0a and 2.0b.

It's the Dec SDK (and subsequent) HLSL compiler that no longer compiles SM1.x. To compile SM1.x HLSL you have to specify a "legacy" flag, in which case d3dx_31.dll will be used.

You can, of course, still load SM1.x asm with Dec SDK onward - its just the HLSL compiler that's dropped SM1 support.
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

Thanks for clarifying sio2 and sorry for hijacking your thread! :P
Last edited by Spintz on Sun Mar 04, 2007 2:39 pm, edited 1 time in total.
Image
omaremad
Competition winner
Posts: 1027
Joined: Fri Jul 15, 2005 11:30 pm
Location: Cairo,Egypt

Post by omaremad »

Hmm is render monkey being updated anymore? im with version 1.6 and i only have the static fur demo. Anyway i still prefer it more than that confusing nvidia one.

Btw sio i sent you a pm
"Irrlicht is obese"

If you want modern rendering techniques learn how to make them or go to the engine next door =p
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

I believe RenderMonkey is up to 1.62 and I agree, it's better than NVidia's shader studio.
Last edited by Spintz on Sun Mar 04, 2007 2:39 pm, edited 1 time in total.
Image
Post Reply