Author Topic: Generating good shadows on terrain  (Read 462 times)

Asdrael

  • OEM Nerd
  • Hero Member
  • Sr. Member
  • *****
  • Posts: 972
    • View Profile
Generating good shadows on terrain
« on: February 23, 2017, 02:40:38 PM »
I'm trying to have dark, sharp shadows cast by terrain (the actual textured heightmap, not an object) onto itself. I can't manage. Played with params.ini and .amb to no avail.

Any tips?
Donate to me -> feed my coffee addiction -> get more mods!
OEM pack for Beta7

тғc

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 2697
    • View Profile
    • TFC's YouTube
Re: Generating good shadows on terrain
« Reply #1 on: February 23, 2017, 03:13:07 PM »
I did this as a texture layer. Imported the heightmap into blender, set up scale, set up sun position to be the same as Params and amb, rendered shadows, exported orthographic view from above at 2049, made a black tile, made a mask from the render at 20% opacity.

Looked great, but of course this becomes a deformable layer.

Perhaps pib could add a layer type that doesn't deform and loose texture but sits above everything else, allowing layers below to deform correctly.

The other problem was there was a slight overlap in some places and I couldn't work out why. Other places it looked 100% perfect.
Last Project Red Bud Replica

Current Project Unadilla Replica

Next Project Unknown

Buy Me a Beer

Asdrael

  • OEM Nerd
  • Hero Member
  • Sr. Member
  • *****
  • Posts: 972
    • View Profile
Re: Generating good shadows on terrain
« Reply #2 on: February 26, 2017, 04:35:20 PM »
Question 2 about shadows: anyway to ge the layout (track.lyt) stuff to cast shadows?
Donate to me -> feed my coffee addiction -> get more mods!
OEM pack for Beta7

PiBoSo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 946
    • View Profile
Re: Generating good shadows on terrain
« Reply #3 on: February 26, 2017, 04:57:34 PM »
Question 2 about shadows: anyway to ge the layout (track.lyt) stuff to cast shadows?

At the moment it's not possible.

Asdrael

  • OEM Nerd
  • Hero Member
  • Sr. Member
  • *****
  • Posts: 972
    • View Profile
Re: Generating good shadows on terrain
« Reply #4 on: February 26, 2017, 05:17:47 PM »
Ok, thanks!
Donate to me -> feed my coffee addiction -> get more mods!
OEM pack for Beta7