For testing sake, in your draw function add an if statement that test's to see if you have a valid pointer and place a breakpoint there.
Type: Posts; User: Jon723
For testing sake, in your draw function add an if statement that test's to see if you have a valid pointer and place a breakpoint there.
Did you by chance enable lighting by setting glEnable(GL_LIGHTING); ??
Another option is to use the stencil buffer to render an outline and them blur the outline a little to make it thicker. This is probably a slower than the previous method mentioned but it was the...
Yea, I agree with V-man. Before you draw your objects I would disable blending and, if needed re-enable blending afterwards.
From the looks of it, it seems that the highlight is being interpolated over a single quad with one normal (am i correct?). You might want to try breaking up the "table" into a grid like structure...
If you're trying to do regular polygon anti-aliasing then you also want to set the hint for the anti-aliasing. For polygons you would want something like glHint(GL_POLYGON_SMOOTH_HINT, GL_NICEST).
Well, I used the code to add a alpha channel to the data (I even tried using a PNG texture with an alpha channel to achieve the same effect) but the texture still shows up transparent. Black colors...
Hello everyone. In my scene I am displaying a jpeg image on a quad (I am completely aware that jpeg do not support an alpha component natively). The quad with the applied texture are faded in until...
Just like the alpha term for a color when using glColor4* it determines the "hardness" of the color for the light. Object transparency for the light is dependent on the material properties for the...
If im not mistaken what you need to do is take your image and do a simple check to see if your image x_position+x_width/2 and y_position+y_height/2 (that might not be right) is greater or less than...
I've decided to move my drawing routines from standard immediate mode routines to use vertex arrays (after I get this to work properly I'll move it to use vertex buffer objects). Basically, I have my...
Hello everyone, I've been having some probablems lately with my object picking code in which there are no hits detected if I rotate my camera. Things work fine (most of the time) if I just translate...
I'be been looking everywhere for a gui toolkit that supports skinnable widgets. Is anyone familiar with a toolkit that supports this feature??
I'm trying to debug my program that implements picking with the mouse. I'm able to pick objects with the mouse when I dont move my camera but as soon as I move my camera and try to select an object...
Hello, I was wondering if there is a way to implement OpenGL with HTML. If there is a way please let me know. Thank you.
Hello, I was wondering if there is a way to implement OpenGL with HTML. If there is a way please let me know. Thank you.
Hello. I was wondering if someone could tell me how I would go about placeing objects in a random position on a grid.
Actually this is what I did. I created a display list that contained the...
hello, I am alos in the process of writing an ASE loader and the way I am going about it is that I am creating an array that can hold the index and the 3 vertices (x,z,y). Loop through the file and...
If your gonna use a Win32 app you might need to know some windows programming if you plan on it handling how things are viewed, especially if your using OpenGl!!!!!
Hello again, I was wondering after I have an ASE file loaded and I want to do some collision dectection with certain objects in the file how would I go about that?? Do I have to group certain...
Thanx everyone!!!! I think that if you use opengl cameras rather than 3DS cameras you could save your self a lot of trouble. If would be easier to control the opengl camerasrather than the 3DS ones.
Hello, I have this ASE file that I exported from 3DS Max and I'm creating a program to read the file and display it using OpenGL. When I read in the vertex information am I supposed to store the...