Jump to content

How to offset toward the camera a billboard?


photo

Recommended Posts

Posted (edited)

Hello,

For our runway lights, we have cluster meshes for the light models and billboards for the light halo. But each billboard is centered on the lightbulb (so it would be placed correctly whatever the angle we see the light from) and is 'clipped' by the mesh, making it obscured by the mesh, instead of showing in front of it. (the glass of the model has a rendering order set to -1)

image.png.d085e165cb403066d035d9191e9d2c3c.png

Changing the Rendering order in the billboard (to +8) makes it worse: (the halo material is additive)

image.png.56d93a3fd1c4fa259759256b44882ab6.png

I tried to play with geometry inflation, soft interaction, etc., nothing makes the halo looks like it's "in front" (obscuring) the mesh. And there is no way to create a mgraph for billboards apparently, for example to add a camera z-offset to the billboard vertices.

Is this a lost cause?

Edited by Amerio.Stephane
Posted

Hi Stephane,

If you will change rendering order of the billboard to -8 instead will it work better? It looks like the order is reversed for some reason for billboard material.

At least it works with simple alpha blend sphere + additive billboard:

image.png

If you can send us this part of the content -- we would double check (just a lamp + your billboard exported as a package), maybe there is a better options available.

Thank you!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted

I just tested with a new IG project, imported the AirportAssets package for the airfield_light object, and make a new world with just this object and a billboard. I modified the billboard material to have an additive preset, no shadows and disabled all light passes except ambient (so the billboard cant receive shadows).billboards_base_0.mat

Results: rendering order of billboard has no effect (Deferred checked or unchecked); 

image.png.46c303ae49ea97587b46b65552027a6b.png

What I need is more like this:

image.png.beb762fbe662a8d27f6e5659ca9245df.png

(this last image was made by disabling Depth Test, but this is not a viable option because lights halo should be obscured by other objects in front of it, like a closer ground light object or the cockpit, vegetation, or anything really)

Ideally, there would be something like a z-offset parameter to the billboard material so it would be moved along its normal.

×
×
  • Create New...