Home Unreal Engine

Translucent material pass behind distortion.

polycounter lvl 10
Offline / Send Message
tuxmask75 polycounter lvl 10
hey guys,
I cant seem to set up the following scenario correctly.

lets say we have flat plane with a water material using translucency and also distortion.
You also have a character or object with a translucent material applied.
Next we position the object under the water plane.

The issue that I'm getting is that the character with the translucent material is not effected by the distortion of the water material.

Here we have 2 objects with translucent materials Cloud and grass behind a material with translucency and distortion.
Notice how they are not effected.
capturezek.png

Replies

  • Eric Chadwick
    Options
    Offline / Send Message
    Looks like a sorting problem. Not sure how UDK handles this, but typically to solve this you'll want to force the renderer to draw the triangles in the order you want. Try disabling Z-write and/or Z-read in your materials.
  • Hourences
    Options
    Offline / Send Message
    Hourences polycounter lvl 18
    In the properties of the placed mesh in the level, look for TranslucencySortPriority. This allows you to manually set the render order. Essential for any 2D'ish game like you seem to be doing.

    If that does not fix it, look in the material. There is a section at the bottom on Translucency where you can adjust the way the engine renders the translucent material. Try out some of those options there.
  • Froyok
    Options
    Offline / Send Message
    Froyok greentooth
    You can set the sorting order inside the properties of your objects.
    I solved a similar problem with a skybox and some particles this way.

    [EDIT] oops, sorry, I read too quickly, Hourences already said it. :x
Sign In or Register to comment.