Search found 101 matches
- Mon Apr 25, 2011 2:15 pm
- Forum: Programming Discussion
- Topic: OBJ Loader
- Replies: 11
- Views: 1532
Re: OBJ Loader
Sorry, it's c++ and opengl.
- Sun Apr 24, 2011 6:27 pm
- Forum: Programming Discussion
- Topic: OBJ Loader
- Replies: 11
- Views: 1532
OBJ Loader
Okay, I'm looking for someone to help me write a simple obj loader in c++. I have been scouring the interwebs searching for something, but I have either had errors compiling or the ones I did get to work correctly just had too many features I didn't need. ( For example GLM had a bunch of error handl...
- Sat Apr 23, 2011 10:42 pm
- Forum: Programming Discussion
- Topic: Thoughts on the best model format?
- Replies: 2
- Views: 573
Thoughts on the best model format?
Hey, I'm getting further in OpenGL, and I want to write my own code for loading models. I think i'm to the point where I can do this, however, I can't decide on the model format I want to use for the engine. My artist uses Maya, and we want the game to support skeletal animation, the mesh itself, an...
- Mon Apr 11, 2011 2:18 pm
- Forum: Programming Discussion
- Topic: [SOLVED]Setting up OpenGl's projection mode units?
- Replies: 12
- Views: 1469
Re: Setting up OpenGl's projection mode units to equal pixels?
Thanks, Falco! I think I'm starting to get the hang of these units, I've just been working with them doing different little "I wonder what what happens if I..." programs. I think in the end the way OpenGL uses these units is awesome because it's so flexible. I'm going to change this topic ...
- Sun Apr 10, 2011 11:29 pm
- Forum: Programming Discussion
- Topic: [SOLVED]Setting up OpenGl's projection mode units?
- Replies: 12
- Views: 1469
Re: Setting up OpenGl's projection mode units to equal pixels?
Yes, you are right, I don't understand how it works, because I'm in the process of learning how it works. I understand what you are saying, but I think my original question failed to actually explain the issue I was having. Consider what I said before invalid, and now consider that my issue is that ...
- Sun Apr 10, 2011 9:16 pm
- Forum: Programming Discussion
- Topic: [SOLVED]Setting up OpenGl's projection mode units?
- Replies: 12
- Views: 1469
Re: Setting up OpenGl's projection mode units to equal pixels?
No, I don't want to use glOrtho(), to be honest my real issue here is that I don't understand the scale of the units used in GL. For example a lot of tutorials use very small numbers for coordinates and sizing geometry. I think I just need to find a good basis for the scale of the units. Is there an...
- Sun Apr 10, 2011 4:34 pm
- Forum: Programming Discussion
- Topic: [SOLVED]Setting up OpenGl's projection mode units?
- Replies: 12
- Views: 1469
Re: Setting up OpenGl's projection mode units to equal pixels?
Basically what i'm trying to say is that I'm use to working with 2d, such as SDL, so the coordinate system is based on pixels. I'm using OpenGL now, and I don't really understand the units it uses for it's coordinate system. I was wondering if there is a way to convert these units to equal or be clo...
- Sun Apr 10, 2011 4:08 pm
- Forum: Programming Discussion
- Topic: [SOLVED]Setting up OpenGl's projection mode units?
- Replies: 12
- Views: 1469
Re: Setting up OpenGl's projection mode units to equal pixels?
No no, I don't want to use ortho, I want to use perspective, but I was wondering if there is a way to get the "units" used by opengl to be equal to the size of a pixel?
- Sun Apr 10, 2011 3:55 pm
- Forum: Programming Discussion
- Topic: [SOLVED]Setting up OpenGl's projection mode units?
- Replies: 12
- Views: 1469
[SOLVED]Setting up OpenGl's projection mode units?
Is there a way to do this? I read about it in the opengl facts, saying to translate ( 0.375, 0.375, 0 ) but I couldn't get it to work properly.
- Fri Apr 08, 2011 7:55 pm
- Forum: Programming Discussion
- Topic: [SOLVED]Opengl small black line on the edge of a texture
- Replies: 7
- Views: 3108
Re: Opengl small black line on the edge of a texture
QP's suggesting worked flawlessly, thanks! SOLVED
- Fri Apr 08, 2011 4:08 pm
- Forum: Programming Discussion
- Topic: [SOLVED]Opengl small black line on the edge of a texture
- Replies: 7
- Views: 3108
Re: Opengl small black line on the edge of a texture
I don't even have animation in yet, but I am using GL_LINEAR, should I not? SETUP SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8); SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8); SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8); SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8); SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 32); SDL_G...
- Fri Apr 08, 2011 3:47 pm
- Forum: Programming Discussion
- Topic: [SOLVED]Opengl small black line on the edge of a texture
- Replies: 7
- Views: 3108
[SOLVED]Opengl small black line on the edge of a texture
When running my game in opengl, I have a texture that's mostly transparent and is mapped to a quad with alpha testing, and when jumping in game, a small black line flashs visibility on the top edge of the texture. Anyone know what the issue could be? The black line is definitely not in the image and...
- Fri Apr 08, 2011 2:01 pm
- Forum: Programming Discussion
- Topic: [SOLVED]Opengl Alpha Test
- Replies: 11
- Views: 1262
Re: Opengl Alpha Test
I didn't do that, but I did create a new project for my game last night, and just added all of my files back into it, and it works... So Idk, solved I guess?
- Fri Apr 08, 2011 3:52 am
- Forum: Programming Discussion
- Topic: [SOLVED]Opengl Alpha Test
- Replies: 11
- Views: 1262
Re: Opengl Alpha Test
I rewrote some of my code to be like yours and it still had the same issue. I'm thinking it might be an issue with my texture? I don't see how that could be though, I literally just saved a .PNG like I always do... Edit* I tried using the texture you supplied and it's the same deal, NOTHING will dis...
- Fri Apr 08, 2011 1:06 am
- Forum: Programming Discussion
- Topic: [SOLVED]Opengl Alpha Test
- Replies: 11
- Views: 1262
Re: Opengl Alpha Test
Of course, I figured that's what you meant, otherwise it would just crash. So I've already tried that. I also haven't set up GL_TEXTURE_ENV_MODE, but I've never used that before and had this working in a previous engine, I must be doing something really simple wrong.