hey I have a really uncool strange problem with my program; when i compile it and execut it in VC++, it run slow, and it looks perfect;
when i run the .exe, things are different: really fast but two stuff appear:
little black points appear on my planet’s surface (just on one of them)
when i go back, a horrible black crown appears on the objects;
as what i’m saying seems really unclear, i posted 3 screenshots:
go at http://www.ece.fr:8000/~miffre/S-RTS/
bad1.jpg shows the black points, bad2 & bad3 the black crown…
i can’t say much, i really don’t understand the problem =)
thx for any answer
shouldn’t be happening. Vc++ executes the executable when you are inside the program and hit the ! . This shouldn’t be any different then double clicking the exe.
When you run it in VC, are you running the debug or release version?
Are you sure that when you run it outside VC you’re running the correct version of the .exe, and not maybe some older broken one?
Or, could you have some conditionally compiled code which makes the release version differ slightly from the debug version?
Do the black dots line up with the edges of triangle strips or anything like?
hum… you’re right ! i was in debug mode and i changed it in release mode; so now, it is quick and ugly even when i’m running it in vc++ =D
any idea on how to make it look better ?
no i’m not using any multi pass stuff; i don’t use any shadow map
about the last point i can’t tell you, because i don’t really understand what you mean, sorry
i added:
glEnable(GL_CULL_FACE);
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL);
and the strange shadow has disapear;
the dots are still there, but i saw sth else: there are not all black ones: on the planet, they are black (maybe cause the texture behind is black ?)but when i put the camera in a certain angle, the torus around the planet is full of …“holes”, so i can see through it; however, these holes are not exactly dots, they are bigger than that…