Login  Register

Re: Problem on immediate mode rendering.

Posted by Smat on Nov 04, 2014; 1:36pm
URL: https://forum.jogamp.org/Problem-on-immediate-mode-rendering-tp4033482p4033484.html

That is my question. dude! Which transform3d is making the problem?
Because as it seems(and as you notice) even if both objects(someshape3D and the one on the scenebranchgroup) their is a clear size difference between them. Which i suspect the object in the scenebranchgroup is transformed. My question is which transform3D ?.(Note i didn't use any transform3D.)
 And after trying some code i can even generate the problem by just adding this code before g2d.drawRect(0,0,1,1); The code is =
g.draw(new Sphere(0.3f).getShape()); and by replacing "someshape3D"
With "new sphere(0.3f).getShape()". As you can see the two spheres have same radius but after render their is a huge difference b/n them. Why did this happen ? Any explanation at all so that i can dig based on that ? Or, should i just use some transform3D and use it to transform the shape ?(note i am using manual resize for transformation by trial and error). Would i get consistency in different devices if i go by the manual "try until you get equal shapes on your device" way ? What if different screen size devices need different "resizing factor" ? It will be greate to know what make this difference. Thanks!