Login  Register

JOGL GLSL Texture help

Posted by jlangdale on May 31, 2012; 6:32pm
URL: https://forum.jogamp.org/JOGL-GLSL-Texture-help-tp4024573.html

I'm trying to get this Leolol  project to work better.  It's fairly basic but I'm having a hell of a time with the texture on this model.

The original project is here:
http://www.leolol.com/drupal/tutorials/3d-graphics-jogl-opengl-etc/jogl-sandbox-environment-tutorial-series

Here is the project I'm compiling:
https://github.com/jlangdale/Testing-JOGL

I can't figure out how to get the texture on the OBL model to map properly, or maybe how to get the lighting to work properly with GLSL shaders.  I saw a post here about his project:

http://www.opengl.org/discussion_boards/showthread.php/175997-Please-Help-Bump-Mapping-Multi-Texture-Problem?p=1229257#post1229257

I realize in the comments he said that he didn't include all of the shader code he was using, and only published a basic vertex/fragment shader.

On the forum, he showed that his GL project was looking like this:
http://imgur.com/a/ceDpg

But this is the best I've been able to do with the code:
http://imgur.com/RhWHy

Any help steering me in the right direction would be greatly appreciated.  

Jonathan