jogl - Viewing while sitting on a sphere -


In my JOGL program, I have (0,0,0) objects. I am using spherical coordinates to modify the angle (tilt) and f (rotation) to see my object on the original. But I am not able to see it properly. Occasionally the object disappears on some angles, and I can not see it from all angles. Here is my code:

  zero decTheta () {theta--; East = Distance * Math.sin (Math. Tudian (Theta)) * Math.cos (Monastery (Fia)); Ez = Distance * Math.sin (Math. Tudian (Theta)) * Math.sin (Math.toRadiians (phi)); Ey = Distance * Math (Math. Tudian (Theta)); } Zero incTheta () {theta ++; East = Distance * Math.sin (Math. Tudian (Theta)) * Math.cos (Monastery (Fia)); Ez = Distance * Math.sin (Math. Tudian (Theta)) * Math.sin (Math.toRadiians (phi)); Ey = Distance * Math (Math. Tudian (Theta)); } Zero incPhi () {PHI ++; East = Distance * Math.sin (Math. Tudian (Theta)) * Math.cos (Monastery (Fia)); Ez = Distance * Math.sin (Math. Tudian (Theta)) * Math.sin (Math.toRadiians (phi)); Ey = Distance * Math (Math. Tudian (Theta)); } Zero decPhi () {PHi--; East = Distance * Math.sin (Math. Tudian (Theta)) * Math.cos (Monastery (Fia)); Ez = Distance * Math.sin (Math. Tudian (Theta)) * Math.sin (Math.toRadiians (phi)); Ey = Distance * Math (Math. Tudian (Theta)); }  

What am I doing wrong?

Your purpose should be if you want to see it right and completely, then completely in your frustration Keep it working To modify your (perspective or orthogonal) projection matrix, I want to remind you that to use JOGL 2, a real understanding of OpenGL basics is required.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -