HeroEngine Forums

HeroEngine Support => Art & Art Pipeline => Topic started by: Legacy on Oct 03, 12, 08:33:38 AM

Title: [] Decal questions
Post by: Legacy on Oct 03, 12, 08:33:38 AM
Hi, I've got two questions concerning decals:

1. If I apply a sample decal from HSL like this:

Code: [Select]
//TEST: decal test
    CreateKeyValueSpec( "TestDecal", "" )
    AddKeyValueSpec( "TestDecal", "diffuse = string,/Textures/Gravel_Ground_2.dds" )
    AddKeyValueSpec( "TestDecal", "normalMap = string,null.dds" )
    AddKeyValueSpec( "TestDecal", "heightMap = string,null.dds" )
    AddKeyValueSpec( "TestDecal", "tileCount = integer,4" )
    AddKeyValueSpec( "TestDecal", "spacing = float,0.25" )
    AddKeyValueSpec( "TestDecal", "decalSize = gaussian,1" )
    AddKeyValueSpec( "TestDecal", "decalRotation = gaussian,0" )
    AddKeyValueSpec( "TestDecal", "killTime = gaussian,1000000" )
    AddKeyValueSpec( "TestDecal", "killWhileVisible = boolean,false" )
   
    data as ID = GetKeyValueSpecDefaultData( "TestDecal" )
    decalID as Integer = CreateDecal( data, instance.GetPosition(), "0,-1,0", "0,1,0", false )

I got only single-colored block on the ground. The color changes when I change the input diffuse texture and it matches its corner color. What am I doing wrong?

2. How does one create ever-lasting decals? I need some sort of never-disappearing decals for my purpose. It it possible? Setting killTime to -1 seems not to work...

Thank you
Title: Re: Decal questions
Post by: FI-ScottZ on Oct 03, 12, 02:22:59 PM
I don't know about q #1, but for your second one, we were in a similar predicament when we were going to try to use decals.  We could not find a good way to make them permanent, so in the end, we decided to use billboards instead.
Title: Re: Decal questions
Post by: Prometheus2012 on Oct 03, 12, 07:22:08 PM
I don't know about q #1, but for your second one, we were in a similar predicament when we were going to try to use decals.  We could not find a good way to make them permanent, so in the end, we decided to use billboards instead.

Did you use billboards for stuff like graffiti on walls etc?
Title: Re: Decal questions
Post by: FI-ScottZ on Oct 03, 12, 08:13:43 PM
Not so much graffiti, but we have a board that we place cards onto and are using billboards for the cards.  You could use billboards for graffiti-type things, but if it is something that is permanent, you may wish to put that into the models' textures.

For something which is tagged in real-time in the game, perhaps it does not need to be permanent.  For instance, typically bullet holes fade out, so the tagging could as well.