You mean book about opengl 3.3+?
I read only "Beginning OpenGL: Game Programming (second edition)" , but Opengl superbible ( the red book) maybe is better
Type: Posts; User: Vincent22
You mean book about opengl 3.3+?
I read only "Beginning OpenGL: Game Programming (second edition)" , but Opengl superbible ( the red book) maybe is better
Yes I know Bionic.
Actually my "demo" should be in its final form for wednesday so I don't have the time to improve my GLSL knowledge, but I'll follow your suggestion in the future.
Thank you, I use glDrawArray (no indices) and it works fine, I apply normals, vertexs and colors. I made a lot of initialization stuff in my display Func (glGenBuffer, glBufferData, etc..), now I...
Hi,
I have a problem with my project. If I activate glutIdleFunc() after several minutes I have a bad performance problem, slow framerate and I need to forced exit from the program.
I tried with...
Hi, I have a problem with my game.
After playing for several minutes framerate goes to low.
I've tried playing in a simple scene: 3d model draw with VBO, no collisions, simple level e no other...
How can apply colors if I want to use VBO (or glDrawArrays) ?
the problem was that I call glBegin for each obj model face.
Now I've noticed a new problem, after playing for several minutes there's a bad framerate loss even If I remove all algorithm expect...
Hi everyone,
I'm developed a simple demo of a tron arcade-like game.
I wrote an obj loader to draw my cycles, my problem is that I have a great loss performance when I draw more then one cycle...
Solved!
I've implemented ray casting (using bresenham algorithm to "draw" my ray) to check collisions and now it works
Thank you all for your answers!
Yes it's my case: fast cycle relative to thin trail! Should I use raycast?
thokra, trail is like a "wall" left behind the cycle while it's moving. I don't have disc in my demo.
You're right, I check collisions using precise cycle position and objects "bounding box" but sometimes it fails and I don't know why. I thought it's because collision algorithm have to iterate a...
I've read something about quad tree.
I think I could implement a simplified version of quadtree (because I have only two dynamic objects and simple arenas with small dimension). I could divide space...
Dynamic objects are two: player cycle and IA cycle, but at the moment I've implemented only the player cycle.
Trail is static but it's generated procedurally while cycle is moving. You suggest quad...
Hi, I need some suggests about collisions and performance.
I'm developing a simple 3D demo of a "tron arcade" game. I'm implementing collisions using something similar to bounding box but exluding...
Solved my problem! I didn't put GLUT_DEPTH in my glut window!
I'm trying to test light and my .obj loader in a simple scene using a simple .obj polygon ( a parallelepiped).
If I don't enable light the polygon seems ok.
If I enable light I've noticed that one...
Another information.
In my code I draw at first some objects without light, then I set up light and draw my 3D model.
Here is the code:
glEnable(GL_NORMALIZE);
//...
Thank you, I've already read your topic but my znear value is 1.0 in reshape func
glViewport(0, 0, (GLsizei)width, (GLsizei)height);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
...
Hi, I have a problem using openGL light.
I draw two 3D .obj model. Loader works fine, vertex and normals are correct. The problem is that when I enable light the effect on one of the model is bad:...
You need passing vertices to vertex array, colors to color array and use faces indices (lines strating with "f") to create your index array to pass it to glDraw
I don't know exactly how to implement...
Hi,
in my program I have a 3D model, it starts moving pressing one button in towards only one direction (movement = speed *Dt, speed increase till it reaches max speed).
At first I call the...
solved deleting "glLoad()" on GL_PROJECTION at the beginning of Selection Scene display func
Hi everybody. I'm an Opengl beginner, I developed a simple program made up of two "different scene".
I have a start menu and a selection scene, If I load them individually they work fine.
The...
Hi, in my scene I have two 2D squares and a 3D model. The model is centered inside one of the square using "glTranslate" with empiric values.
The problem is that when I resize the window the model...
Loaded data are correct.
I fix my problem, it was something wrong in 3D models. I fix them using Maya and now materials work fine!
Now drawing is also faster than before. Maybe I made something...