Login  Register

Re: Learning JOGL and related topics.

Posted by millerni456 on Jul 23, 2011; 5:29pm
URL: https://forum.jogamp.org/Learning-JOGL-and-related-topics-tp3167983p3193893.html

Hi, and thanks for the advice! I was looking at OpenGL tutorials rather than JOGL tutorials, and have found that I am being more successful! Also, it is fairly simple to convert the OpenGL commands to JOGL.

After going through some tutorials I noticed that some things cannot be done the same.
For example: Texturing. (because images are loaded differently in C/C++ than in Java).

With texturing, I was able to load an image file, use it as a texture, and coordinate it properly; but still I am unsure
as to how I can use multiple textures in an OpenGL scene. (I was able to use three different textures, but it seems that the last one bound was the only one I could see).

Also, I wanted to know if you could point me to finding a good viewing example/tutorial.
I know that I can use the gluLookat() function, and I can translate/rotate the camera with glTranslated() or glRotated(), but I still cannot achieve a good viewing component.
I have something set up so the users can use WASD and Arrow keys to modify the parameters in the gluLookat() function. For example: pressing A will change the X_location parameter to decrement, or the W key will make the Y_location parameter increment.

I still have yet to use the translate/rotate functions, so I will try those.

Lastly, any  advice to the specifics of Selection mode and using that for picking would be appreciated as well.
Thanks for helping me out. -Nick.