Sign in to follow this  

Tower Defense Game 3D

This topic is 1774 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello everyone ! 

 

This is my very first 3D project and I have just started it. Also this is the first time I use "modern OpenGL" and shaders. In my project I use some help classes and concepts from http://tomdalling.com/blog/category/modern-opengl/

 

At the moment I am trying to set up the scene so there is nothing related to game mechanics yet. My intention is to keep it simple, not going to load models, just geometric shapes (and maybe textures).

 

Unfortunately I am stuck . Maybe the most annoying thing that could happen - everything seems to work just fine, but the object won't draw on the screen sad.png .

 

I am using Visual Studio 2012 on Windows 8 32bit.

 

Because the source files are many, I will give link to my github repo : https://github.com/getov/tower-defense-3d

GPUProgram class handles shader operations. Util is namespace that has different utilities, at the moment only function for loading  files. The other classes should be clear. Ask me if you don't understand anything.

 

I hope you can help me with that. Also I will be happy if you can give me any ideas or suggestions about how to continue the game.

Share this post


Link to post
Share on other sites

I forgot to mention that I get "OpenGL error: 1282 invalid operation" but it doesn't help me at all. 

Share this post


Link to post
Share on other sites

is there a reason you are using glfw.h to draw your windows and not window.h?

 

another thing to keep in mind is to make sure your translator is compiling for windows format application, and not console applets.

Share this post


Link to post
Share on other sites
Sign in to follow this