|
Replies:
2
-
Last Post:
Apr 21, 2008 9:40 AM
by: autohandle
|
|
|
|
|
|
|
JOGL doubt
Posted:
Apr 21, 2008 1:21 AM
|
|
|
I am using jogl to convert the altitude of worldwind to get a terrain viewer. I am using GL_QUAD_STRIP to draw the terrain. The vertex values ranges from for X (-20000 to 20000), Y(20,000 to 20,000) and Z(0 to 6000).
When i try to draw the terrain only the black screen is coming. How can i set the gluPerspective() for such a value. when the X,Y,Z coordinates are very small then the terrain viewer shows correctly. But when i try with the exact values only the black screen is coming.
What is the difference between glFrustum() and gluPerspective(). In which context i have to use gluPerspective() and glFrustum().
Is there any good tutorial with examples to know more about JOGL.
Please help me.
|
|
|
|
|
|
|
Re: JOGL doubt
Posted:
Apr 21, 2008 6:09 AM
in response to: pk_dhanya
|
|
|
hi,
we have around 100 ready to run samples in the NetBeans OpenGL Pack http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=3260
I think the difference between both methods is best explained in the OpenGL Programming Guide (aka Red Book). It is available as pdf document for free. (the Redbook samples are in the pack included).
I recommend the "Simple JOGL Application" sample project it uses glu.gluPerspective(...) and is some kind of a "minimal OpenGL application".
|
|
|
|
|