Help needed for a newbie (transparency and texture anim)

blackhound70

19-07-2006 19:53:22

Hello guys,

I'm trying to implement this technique for making snowfall :

http://ofb.net/~niniane/rainsnow/rainsnow-sketch.pdf


Now I am new to oFusion and principally with ogre textures....

I got to this point :

http://sunensa.uqac.ca/~sledraiders/ima ... wTest1.jpg



But when I use camera 02 (the one inside the double cones) I get this :

http://sunensa.uqac.ca/~sledraiders/ima ... 1_cam2.jpg



As you see, when I am inside the cones, I do not see the texture.... Can someone guide me through this? I tried to inverse the normals of the objects but no luck...


The next phase is to implement the 3 other textures and animate them... I'll have to do this programmaticaly (with code) so if any of you has any pointer, I have no idea on how I am going to do this...


Thanks in advance for any help.

Eric

Lioric

19-07-2006 20:02:38

The doubled cone has the snow texture?

See the clipping planes of the camera 02, the near clip plane can be culling the object

Or post the scene if you prefer so i can review it

blackhound70

19-07-2006 20:22:44

Ok got it to work by selecting the "ignore backface" checkbox after flipping the normals...

This looks like this :

http://sunensa.uqac.ca/~sledraiders/ima ... 2_work.jpg



Ok now I can turm my attention to the animation... how would I do that with code in ogre... any idea?


eric =)

blackhound70

19-07-2006 20:27:57

Well I guess the texture animation stuff should be adressed in the Ogre forum anyway.

Lioric

20-07-2006 01:56:34

Im not sure if in your version texture frames are enabled, if so you can add the image frames and set the length of the animation in seconds, and when you play the scene (or in your application) the texture will be animated

Or you can use the scroll animation settings to move and animate the texture, either at a constant speed in u or v, or use the advanced wave animation

All this in the TextureUnit texmap

blackhound70

21-07-2006 15:54:22

Thanks lioric but...

The speed of the snow animation needs to be variable depending on the speed of the camera inside the game. Unless I missed something you will not be able to change that speed if I am using those techniques.

I think we will need to do a texture effect from inside the game.

Am I right?

Eric

Lioric

22-07-2006 03:12:54

Yes, in your case you will need to get the TextureUnit(s) in your application and set the scroll value (u or v) to your needs