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.
Post Reply
User avatar
Enjay
 
 
Posts: 26534
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Polyobj_ExplicitLine Rendering Order

Post by Enjay »

One of the parameters for [wiki]Polyobj_ExplicitLine[/wiki] 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
Kappes Buur
 
 
Posts: 4120
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: Polyobj_ExplicitLine Rendering Order

Post by Kappes Buur »

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
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Polyobj_ExplicitLine Rendering Order

Post by Graf Zahl »

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
Enjay
 
 
Posts: 26534
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Polyobj_ExplicitLine Rendering Order

Post by Enjay »

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

Return to “Mapping”