Login  Register

Re: Drawing problem when height > width

Posted by Djak on Feb 01, 2011; 9:58am
URL: https://forum.jogamp.org/Drawing-problem-when-height-width-tp2361172p2396213.html

Thanks you :)
Arf, not the first time I'm own by the float/double conversion in Java ^^
So, I tested and modified the code. There was effectively a problem with the aspect which was always bad (1.0 or 0.0).
Thanks again for showing me this point.
Unfortunately, it's now works badder because nothing is drawn at all even if height > width with the above code and the replacement of :
                glu.gluPerspective(45, ((double)width) / ((double)height), 1, 50000);

The scene is drawn but not the triangle. I'm still searching on it.