Advertisement

Could you test my engine please

Started by July 03, 2003 04:02 PM
22 comments, last by Lukerd 21 years, 8 months ago
Wow, quite a few replies!

Today ive made quite a few changes to the engine, the collision detection now works great, and ALOT faster, the new version showed a 40% - 50% increase in frame rate on my comp just coz I changed the collision. I'll upload the new version tonight.


Basiror: The texture has an alpha channel when I draw the crosshair I use alpha testing. Like this:

		glPushMatrix();		glEnable(GL_ALPHA_TEST);		glAlphaFunc(GL_LESS, 0.3f);		glColor3f(1, 1, 1);		OrthoMode(0, 0, width, height);		glDisable(GL_DEPTH_TEST);		glBindTexture(GL_TEXTURE_2D,  crosshair.texID);		glBegin(GL_QUADS);			glTexCoord2f(0.0f, 1.0f);	glVertex2i(0, 0);			glTexCoord2f(0.0f, 0.0f);	glVertex2i(0, height);			glTexCoord2f(1.0f, 0.0f);	glVertex2i(width, height);			glTexCoord2f(1.0f, 1.0f);	glVertex2i(width, 0);		glEnd();		glEnable(GL_DEPTH_TEST);		PerspectiveMode();		glColor3f(1, 1, 1);		glDisable(GL_ALPHA_TEST);		glPopMatrix();


The quad really covers the whole screen, from corner to corner but only the crosshair is drawn.

BGCJR: If you mean the bullets dont always kill the enemy, I know what the problem was, and it SHOULD be better. It was just the demon guys collision radius was too small. If thats not what you mean let me know.

CWIZO: Check "Program Log.txt" let me know what the last 3 or 4 lines say.

The crosshair doesnt move left or right on the screen yet. Im gonna add that when I change from MD2 models to MD3 and I can have the torso rotating without the legs doing the same.

Thanks guys. Let me know if you find any other bugs.

EDIT: The new version is uploading as I type.

Hyperdev

"To err is human, to really mess up requires a computer"


[edited by - Lukerd on July 4, 2003 8:06:05 PM]
"To err is human, to really mess up requires a computer"
yeah i kinda figured that now

i thought there isn t a alpha channel cause photoshop 7.0 TGA plugin has a bug and doesn t take care about the alpha channel

you need to download a fix from the homepage

GAY!
http://www.8ung.at/basiror/theironcross.html
Advertisement
May I ask why you are drawing a quad from corner to corner if it only draws a small cross-hair? I simply just draw a quad large enough to hold my cross hair, this A.) is more efficient for the gpu to only go through a small quad, and B.) requires a much smaller texture that will have higher quality because it's not being stretched.

--- Edit ---
110fps average windowed, and something isn't right with your bullets, when you shoot after walking around for a while, they just don't work properly.. shooting from a random position at a random angle (aka, not from where the player is, and not at the direction your facing!).

[edited by - Ready4Dis on July 4, 2003 12:31:23 AM]
Yeah that happened to me earlier, im gonna try and pinpoint whats gone wrong. And I only drew the quad that big coz i didnt know it would make much difference, i''ll try it your way.

thx

Lukerd.

Hyperdev

"To err is human, to really mess up requires a computer"
"To err is human, to really mess up requires a computer"

This topic is closed to new replies.

Advertisement