Thanks! I will send you the pieces of code that matter the most.
Type: Posts; User: Flotonic
Thanks! I will send you the pieces of code that matter the most.
Thank you for your response! I was using glFrustum(-320,320,-(WHEIGHT/2),WHEIGHT/2,-1000,1000);, but nothing was rendering. Using the glGetError() function resulted in an "Invalid Value" error which...
I probably already have a solution to the math behind moving the scene towards the camera, but it stops rendering when translated much at all and never seems to get closer to the camera even when it...
Update: OpenGL is no longer detecting errors but the font is still not working for the people that it has not been working for.
With that changed to one or all of the above, I get multiple occurrences of "OpenGL Error: stack underflow" instead of a single "OpenGL Error: invalid enumerant" error. It looks like I will have to...
Thank you for your response. Here is what I get from that: OpenGL Error: invalid enumerant I decided to place the code that prints an error after each "glEnable();" line. This happens after...
Most users are not having problems with my application, but a good number of them still are. Here is what the problem looks like: http://img845.imageshack.us/img845/9177/15088643.png
Where the...
Thanks! It is now a little closer! Some of the rotations are correct while others are wrong. Do you think it may have something to do with axis ordering?
GLfloat matrix[16];...
Thank you so much for your response, Dark Photon! It is now getting the correct translations, but rotations are another thing. I am getting the matrix with the following code:
GLint matrix[16];...
Pseudo code below:
glPushMatrix();
glRotatef(100,1,0,0);;
glRotatef(50,0,1,0);
glRotatef(100,1,0,0);
glTranslatef(x0,y0,z0);
glCallList(dl0);
glPushMatrix();
glRotatef(50,1,0,0);;
Thank you for your time. However, when I use glFrustum with the aforementioned coordinates, I get a black screen. Might there be a way to just update the camera position and actually have it move in...
I understand that there isn't really a such thing as moving a camera around in OpenGL. Still, something odd is happening. I'll provide three chunks of code.
My viewing range.
...
Thanks a lot! :D
glColor3f(1,0,0);
I know that this is red, represented as 255. If I want to use 0x7F 0x0 0x0 for the colors, I would just need to divide each by 0xFF and get their decimal values and put those.
...
Problem solved. :cool: For anyone with the same question as me in the future, just scale with a negative value.
glScalef(-1, 1, 1);
I'm not looking for any fancy mirroring effects like a puddle. I just need a means of mirroring (flipping) a model along an axis.
http://i364.photobucket.com/albums/oo89/Flotonic/LinkMirrored.png...
Ahh. Now I see what you mean. I figured out the function and results were beautiful. Thank ya!
You may not be understanding. I'm not talking about a Command Prompt application. I'm referring to an actual On-Screen Display in an OpenGL application.
...
char defaultframemessage[] = "Frame: 1";
char *framemessage = defaultframemessage;
I'm needing to use something similar to the printf function here so I can display a value stored in a variable...
Thanks for your assistance. ;) However, I get, "undefined reference to glvertex3fv." Perhaps I'm misusing it.
#include <GL/gl.h>
#include <GL/glut.h>
void display(void)
{
Like with declaring variables, I would like to declare vertices.
int muffin;
That's a variable declaration. I'm hoping there is something similar for vertex declaration. I want to make a "bank"...