PDA

View Full Version : Sprite Bridge ?


Roger Gargantua
11-02-2002, 05:52 PM
Hey all !
I come often here with strange questions....I know....

I want to make a bridge out of sprites. I set relative on them so they are flat. I make them "Blockable" so u can walk over it.

So all seems right.....but then I place them between two sectors....but sometimes i can see thru the sprite. It's really weird !

I have seen other maps with sprite bridges and they dont have that problem.
Can anyone help me plz ? Thanks !

cyborg
11-02-2002, 07:05 PM
Actually they all do have that problem - Build calculates the order in which sprites are drawn from their centres - when the center of a sprite is not in immediate view it's drawn last - regardless of the correct order. This speeds things up but at the cost of the clipping errors with sprites. It also only takes into consideration sprites in the current sector hence if you have sector boundaries futher Z clipping problems crop up. Again this is done for speed.
You can significantly reduce the number of clipping errors by use 1 to set the sprites to be one sided - this means you will not see the sprites that make up the bottom of the bridge through the sprites that make up the top of the bridge when you are in a position such that the bottom set of sprites' centres are visible whilst the top sets' are not. Also you will reduce clipping errors by avoiding splitting the sector in which the sprite bridge resides.

You do not normally notice this clipping problem when you construct bridges in this way until you see another sprite in context with the bridge, eg in 3rd person view.