Polyobj_ExplicitLine Rendering Order

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Polyobj_ExplicitLine Rendering Order

Postby Enjay » 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?
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: Polyobj_ExplicitLine Rendering Order

Postby Kappes Buur » 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.
User avatar
Kappes Buur
 
 
 
Joined: 17 Jul 2003
Location: British Columbia, Canada

Re: Polyobj_ExplicitLine Rendering Order

Postby Graf Zahl » 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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Polyobj_ExplicitLine Rendering Order

Postby Enjay » 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.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland


Return to Mapping

Who is online

Users browsing this forum: No registered users and 0 guests