I figured it out. It turns out that my Png loader was throwing away the Png data. Which is what was causing the problem I was having. I have fixed it now and it run wonderfully!
Type: Posts; User: Snow_56767
I figured it out. It turns out that my Png loader was throwing away the Png data. Which is what was causing the problem I was having. I have fixed it now and it run wonderfully!
Hi guys,
I have a project I'm working where I need to paint a sprite and I can't seem to get it to paint textures. I have don'e extensive error checking through my texture loading routine and...
You need to link to the OpenGL libraries.
most likely they are:
/usr/lib/i386-linux-gnu/libGLU.so
/usr/lib/libGL.so
Ok. I did happen to figure it out. Thank you for the help!!!
Try this:
1)Draw Big Cube at fixed position
2)glPushMatrix();
3)Translate the little cube
4)draw the little cube
5)glPopMatrix();
Fatch1990 is right, You should use GL_TEXTURE_2D for each object unless you are using 3D textures. A good way to texture each object is to generate your textures using:
glGenTextures(GLsizei n,...
You should try using glRotatef (float), glRotatei (int), or glRotated (double).
I would suspect that it would rotate according to your diagram.
| -> / -> \ -> | then it loops.
Try generating the world coordinates yourself based off the screen coordinates. This way you are keeping track of the world and screen coordinates real-time so you can then translate between the two...
Hmmm, ok. So essentially, I should change the Z-Postion of each quad so they aren't in the same Z space?
I too am try to do this. The trickiest part of this is that everything must be abstract. That means you can't use Win32, MFC, ATL, Carbon, Cocoa, or X exclusively through-out the application. But...
The size of the mesh really doesn't matter when texturing, long as the texture coordinates are correct.
To answer your question though, you can make a cube that is about 256 pixels per face, it...
What view type are you using? Perspective or Orthogonal?
Also, try to increase the Z-Translation more to see if it is actually working -the movement is just small enough to not really make a...
I would recommend starting simpler when learning texturing. For instance, just create a simple quad then texture it. then you can see what you did wrong / what isn't happening without having to wade...
If you wish me to, I'll archive all my code so that you can look at it and see if the problem is something else.
I've included an Image so you can see what I mean.
I also forgot to specify that each texture is rendered on a quad I specify the quads like so:
glBegin(GL_QUADS);
glTexCoord2d(0,...
Hi guys,
I have a scene in which there is a background mesh, and two other meshes. All these meshes are textured with different textures and each texture has a transparent background. I already...