No announcement yet.

Imposters not working with foliage (no rotation)

  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    I would like to know how to actually use these, would be really helpful for fast but good looking graphics at the cost of vram

    Edit: Also, does the old octahedral impostors plugin from ryan brucks still work, if anyone is using it by chance?
    (Found here )

    Another edit: Im on engine version 4.24.3, fortnite is on latest and can use impostors, it should be able to work on other 4.24 users's computers too.
    Last edited by Bits360; 03-16-2020, 04:53 PM.

    Leave a comment:

  • replied
    This is the full graph:

    Click image for larger version  Name:	materialfull.jpg Views:	0 Size:	290.9 KB ID:	1733448

    And these are two gifs demonstrating the problem:

    The first one looks ok, it's working as intended. But only because the foliage is at 0,0,0 (world location of the foliage instance).

    The second one doesn't work because the foliage instance is not at 0,0,0:

    One thing that is weird: if I plug the TransformPosition node into the base color pin, it works as expected:

    Click image for larger version  Name:	basecolormaterial.jpg Views:	0 Size:	78.7 KB ID:	1733446
    Click image for larger version  Name:	colortrees.jpg Views:	0 Size:	123.8 KB ID:	1733447

    Why did "TransformPosition" returns the position of the foliage instance when plugged in the base color, but appears to be returning the location of the entire foliage actor when plugged in the ImposterUVs?
    Last edited by Marcio Rosa; 03-16-2020, 06:58 PM.

    Leave a comment:

  • started a topic Imposters not working with foliage (no rotation)

    Imposters not working with foliage (no rotation)

    Engine version: 4.22.3

    I have a imposter material that works fine with static meshes actors, but not with foliage: it does not rotate based on camera location.

    I'm assuming the issue is in the Position input pin of the ImposterUVs node. I tried to use the "TransformPosition - Local Space to Absolute World Space" node and connect it's output to the input pin, but it doesn't seem to work. I found many people saying to do that, but only in posts or threads that are a few years old, so maybe it worked in older engine versions.

    Fun fact: it works only if the foliage instance is located at 0,0,0 (world location).

    If this is the case, **how do I get the foliage instance location in a material?**

    Click image for larger version  Name:	Material.jpg Views:	0 Size:	82.5 KB ID:	1733089