From: <no...@so...> - 2002-08-27 09:39:46
|
Bugs item #502217, was opened at 2002-01-11 08:17 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=103396&aid=502217&group_id=3396 Category: OpenGL Group: None Status: Open Resolution: None Priority: 5 Submitted By: J. Caldwell (jcaldwel) >Assigned to: Florian Schulze (proff_fs) Summary: Monsters and goodies partly in floor. Initial Comment: Odd problem with matrox G450 in GL mode: p_glTranslatef(sprite->x,sprite->y,sprite->z); I hacked a fix but am not sure WHAT I did. p_glTranslatef(sprite->x,(sprite->y+0.04),sprite->z); Reference: static void gld_DrawSprite(GLSprite *sprite) { gld_BindPatch(sprite->gltexture,sprite->cm); p_glMatrixMode(GL_MODELVIEW); p_glPushMatrix(); p_glTranslatef(sprite->x,sprite->y,sprite->z); p_glRotatef(inv_yaw,0.0f,1.0f,0.0f); if(sprite->shadow) { p_glBlendFunc(GL_DST_COLOR, GL_ONE_MINUS_SRC_ALPHA); //p_glColor4f(0.2f,0.2f,0.2f,(float) tran_filter_pct/100.0f); p_glAlphaFunc(GL_GEQUAL,0.1f); p_glColor4f(0.2f,0.2f,0.2f,0.33f); } else ---------------------------------------------------------------------- >Comment By: Florian Schulze (proff_fs) Date: 2002-08-27 11:39 Message: Logged In: YES user_id=18721 I will make it configureable. Florian ---------------------------------------------------------------------- Comment By: J. Caldwell (jcaldwel) Date: 2002-01-22 09:48 Message: Logged In: YES user_id=30413 When I set the number above the 'problem' was not noticeable to me unless I crafted a special level that let me look at their smelly feet. ;-) If not too much trouble you could add an up/down offset to a config somewhere in case .04 was not compatible with a different vid card than a Matrox G450. ---------------------------------------------------------------------- Comment By: Colin Robert Phipps (cph) Date: 2002-01-15 22:59 Message: Logged In: YES user_id=18428 Yes I see this too. I'm assuming it's because the sprites in Doom overlap the floor slightly in software mode (i.e. the sprites are taller than the monster, to allow the monsters' feet to stick forward on the floor tiles, kindof - they'd look like they were on tiptoe otherwise). This is a visual effect that may be tricky to duplicate in GL mode, perhaps if we slanted the sprites (or bottom 1/4 of the sprites, or something)? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=103396&aid=502217&group_id=3396 |