I think its bad rendering...

hey this is about opengl.

anyone know about this?

http://img208.imageshack.us/i/glitcheo.jpg/

if you know how to solve this then share some knowledge xD

thanks
closed account (zb0S216C)
You need to be more specific. Code? What is the image even supposed to be? Wrong settings?
hm...its a bit hard to explain


basically when i go to run my game, the model looks badly rendered..


thats supposed to be a model, but it looks like its graphically bugged..


heres some code that i used that involves that model:

1
2
3
4
5
6
#import ".\WorldMap3Dv1.h"
glEnableClientState(GL_VERTEX_ARRAY);
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
glVertexPointer(3, GL_FLOAT, 0, WorldMap3Dv1Verts);
glTexCoordPointer(2, GL_FLOAT, 0, WorldMap3Dv1TexCoords);
glDrawArrays(GL_TRIANGLES, 0, WorldMap3Dv1NumVerts);



at first i thought it was the graphics card not liking it, but when i used this on my main computer it did the same thing..

any ideas now?

Theres spaces between the model, and alot ._.


Extra details: I used an obj2opengl.perl to load the obj file into a header file(.h)

its probably something wrong with that..
Last edited on
nobody knows??
Have you tried it with a simpler model like a cube or tetrahedron?
i have tried with their cube and the game instantly crashed.....


im really thinking my code is setup all wrong...


heres main: http://pastebin.com/ZKMW28Dy

and heres the model.h: http://www.mediafire.com/?uu40kuophpsczda

if you wanna look at it


EDIT: a better picture: http://img403.imageshack.us/i/glitch2p.jpg/
Last edited on
Topic archived. No new replies allowed.