Okay, so I successfully got this implemented in my scene, and it looks great -- until I try to move it. As long as I just move it up and down, it continues to work. If I try to move its position, it does this:
It will flicker as I move and turn the camera, fluctuating between the blue and the grey seen in the picture, with no reflectivity. I don't really understand why this is happening, as all I did was change its position. I tried moving the reference camera in CWaterSurface.cpp, to no avail. Here's what I have:
- Code: Select all
CWaterSurface *waterplane = new CWaterSurface(smgr,vector3df(0,-3590,34147),
It works when vector3df is set to (0,-3590,0), but not if I change either 0. Yet it works with any value replacing -3590, as long as both of the other values are 0. I'm using Irrlicht 1.7.2, if that makes a difference.