Game Development Community

Water flow D3d ?

by Billy L · in Torque Game Engine · 02/21/2003 (1:22 am) · 2 replies

Hi

I tried the waterflow in the head version !
I works fine in opengl ,but i dont get it to work in D3D ?
Some hints ?

-Billy

#1
02/24/2003 (7:16 am)
Hmm,

I just tried it in D3D and it doesn't work on mine either. Well, I'm not to blame as I don't do anything OpenGL/D3D specific with this anyway.

It comes down to translating the texture matrix using glTranslatef( BaseDriftX, BaseDriftY, 0.0f );. I had a quick look at the D3D OpenGL wrapper and it looks like only the modelview/Texture0 matrix translations are supported.

The strange thing is that we should see at least the first layer moving but the second wouldn't.

This does look like a limitation with the D3D wrapper though, sorry, I tend to develop everything under OpenGl but I thought I tested it well under D3D but obviously I didn't. I'm not going to rewrite the wrapper although I'm sure it will get done sometime. ;)

Sorry about this.

- Melv.
#2
02/24/2003 (5:25 pm)
Nice melv !

I only needed an answer so im shure its no working !
So its not was my build or fault hehe !

thx
-Billy