Hello Bram,

Thanks yeah, I actually had screenWidth/screenHeight there and they were 
correct, but were also ints
I changed it to 16.f/9.f and now it seems to work.

I'm still unclear about what happens if you divide ints
I had

int screenWidth = 1280;
int screenHeight = 720;

This is the same as for all C/C++ code... diving ints does whole division, so 1280/720=1

Cast each to float before the division and you'll be fine.

 (float)screenWidth / (float)screenHeight

J-S

--
______________________________________________________
Jean-Sebastien Guay              jean_...@videotron.ca
                    http://whitestar02.dyndns-web.com/

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to