Page 1 of 1

(r303) Problems with vetex slopes

Posted: Mon Mar 09, 2009 17:36
by Geometer
This takes place, when all three vertex slopes have the same height. There is a problem only in OpenGl mode. In software mode everything works fine.

Details are here: [spoiler]OpenGl mode (floor under imp is not rendered):

Image

Software mode (everething ok):

Image[/spoiler]

Posted: Mon Mar 09, 2009 19:53
by Rachael
This might be a stupid question but it's gonna get asked... why are you trying to slope to an even height?

Why even slope at all, if it's gonna be flat and level anyway?

Posted: Mon Mar 09, 2009 20:43
by Enjay
I think that the intention might be to try and build something like the attached (hard to tell from the screenshots).

I know that the attached file can be done with traditional slope lines and it may well not even be correct use of slope things. However, it does show a difference between the software and OpenGL renderers.

In software, the level area in the centre of the structure is a flat floor at height 32. In OpenGL, the floor is there but it looks as if the triangular sector is sitting at 0, not 32. So, you apparently walk across thin air.

Posted: Mon Mar 09, 2009 21:51
by Graf Zahl
Fixed. This was a result of an optimization in the flat drawing code. Before vertex slopes it was guaranteed that for unsloped planes the actual z-position of the plane was the same as the one stored in the sector. But with vertex slopes that's no longer the case.