Getting Started - Problems with The Quad with Projection Tutorial

Started by Egeis, April 24, 2015, 21:30:53

Previous topic - Next topic

Egeis

I started using LWJGL last week by creating a orthographic particle system that generated "rain" like streaks on the screen.  I plan to use 3d rather than an orthographic view for the game I'm writing so decided to try to learn about perspective view.

To start I ran the tutorials code to verify the code works, also find and corrected the errors; I am referring to tutorial on the wiki: http://wiki.lwjgl.org/index.php?title=The_Quad_with_Projection,_View_and_Model_matrices.  Once I knew everything works I went over the code, trying to understand it while split it up to the appropriate classes in my own project.  I got the the point that it compiles, the view loads, but the quad is nowhere to be found.

Quad contains the code for the Shader, Texture, and Quad setup.  This was I can create more than one quad.  Game handles the openGL error messages and matrices setup.  FileIOHandle contains the methods for loading the textures and shaders.  Entity contains the variables and destroy method used by Quad.

All the code is verbatim from the tutorial, the only difference being rather than a single class its split into multiple.  I have been over the code several times yesterday then today and cant find the "error."  My question regards the need for additional code or changes needed to properly implement the tutorial across multiple classes.

Source Code available at [ParticleSystemDraft Branch]:
https://github.com/egeis/YeAJGE/blob/ParticleSystemDraft/src/main/java/com/YeAJG/game/io/FileIOHandler.java
https://github.com/egeis/YeAJGE/blob/ParticleSystemDraft/src/main/java/com/YeAJG/game/Entity/AEntity.java
https://github.com/egeis/YeAJGE/blob/ParticleSystemDraft/src/main/java/com/example/primitives/Quad.java
https://github.com/egeis/YeAJGE/blob/ParticleSystemDraft/src/main/java/com/YeAJG/game/Game.java

Egeis

Solved the issue, needed to include the code at the bottom of the logicCycle() didn't read all the way through after seeing the key commands.