The Source for Java Technology Collaboration

Home » java.net Forums » Java Desktop Technologies » Java 3D

Thread: JOGL doubt

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 2 - Last Post: Apr 21, 2008 9:40 AM by: autohandle
pk_dhanya

Posts: 3
JOGL doubt
Posted: Apr 21, 2008 1:21 AM
 
  Click to reply to this thread Reply

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.

mbien

Posts: 157
Re: JOGL doubt
Posted: Apr 21, 2008 6:09 AM   in response to: pk_dhanya
 
  Click to reply to this thread Reply

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".

autohandle

Posts: 1
Re: JOGL doubt
Posted: Apr 21, 2008 9:40 AM   in response to: pk_dhanya
 
  Click to reply to this thread Reply

i found the nehe tutorials helpful:
http://nehe.gamedev.net/
along with the java/jogl translations:
http://pepijn.fab4.be/software/nehe-java-ports/




 XML java.net RSS