Polyobj_ExplicitLine Rendering Order

Wed Dec 29, 2021 1:28 pm

One of the parameters for Polyobj_ExplicitLine is "Rendering order":

Polyobj_ExplicitLine (po, order, mirror, sound, lineid)

order: rendering order of this line


I realise that the obvious answer here is "it sets the rendering order of this line, like the Wiki says" but, what does that actually mean?

Why do Polyobj_ExplicitLines need this parameter (the console prints a warning if it is left at 0)?

What actual impact does it have on the appearance of the polyobject in game?

If I have several polyobjects near each other, are there any "rules" for how this argument should be set?

Re: Polyobj_ExplicitLine Rendering Order

Wed Dec 29, 2021 2:54 pm

I don't know if the rendering order number has any rhyme or reason.
For example, I have this polydoor



The door will be displayed if I give the rendering order a number, any number, either as a sequence (1 ... 8) or all the same number (9). But when the rendering order number is all 0s, then the door is not displayed.

Re: Polyobj_ExplicitLine Rendering Order

Mon Jan 10, 2022 5:42 am

The render order is only important for the software renderer. In the hardware renderer it is irrelevant for non-translucent content due to the depth buffer - and translucent content gets sorted by distance anyway.

Re: Polyobj_ExplicitLine Rendering Order

Mon Jan 10, 2022 10:16 am

Thanks for the information. So as long as that arg is non-zero in the hardware renderer, things will appear as intended.