Jump to content

Wagon wheels and footprints


photo

Recommended Posts

What is the recommended way of leaving ruts in the ground and hoof prints from a horse-drawn wagon?

I have experimented with decals with normal maps but it quickly gets resource-intensive.

Link to comment

The ruts and hoofprints of the 10 horses should live for probably 2 minutes or so as that's the scene length. There won't be that many in view as the camera will be tracking the pack.

Link to comment

Hello angus,

The setLifeTime(float time) function is accountable for decal's life time:

DecalOrthoPtr decal = DecalOrtho::create(10.0f, 2.0f, 2.0f, "decal_base");
decal->setInitTime(Game::get()->getTime());
decal->setLifeTime(10);

In terms of the Editor, it is controlled in the decal node parameters:

image.png

Thanks.

  • Like 1
Link to comment
16 hours ago, angus said:

The ruts and hoofprints of the 10 horses should live for probably 2 minutes or so as that's the scene length. There won't be that many in view as the camera will be tracking the pack.

Almost in any game I ve played foot decal lifetime was very short, decals were disappearing after several seconds...

Link to comment
29 minutes ago, morbid said:

Yes, it still can be done with ortho decals. Try setting a lifetime,  minimize the radius (put decals closer to the ground) and use visibility distance for them.

Thanks.

Decal radius has effect on performance? Thats quite interesting and important information.

Link to comment
×
×
  • Create New...