Hi,

When I run the example, the wave motion looks great, and the demo runs at 
around 350 frames per second. However, the scrolling normal map seems to move 
in a very jerky motion, moving in large steps at maybe 4hz. 

I've stepped through the code, and I'm looking at 
FFTOceanSurface::computeNoiseCoords. Now, if I comment this code out, and run 
the example again, the noise texture stops moving as expected. So I think I've 
found the right place to look.

But I can't seem to find what is causing the jerking motion. It looked to me 
like perhaps there was an issue with mixing ints and floats: some value, like 
time perhaps, is accumulating, but new accumulations are fractional and are 
thus being truncated by some implicit integer cast somewhere. Eventually, the 
value accumulates to the point where a whole number boundary is reached, thus 
creating a 'pop'. That was my hypothesis, anyway.

But I don't see any integers being used as terms in this function. So, it 
should be creating a nice, smooth motion from what I can see. Has anyone else 
run into this?

Thank you!

Cheers,
Frank

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=32111#32111





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to