|
Post by gymfrecklelaundry on Sept 23, 2020 4:33:17 GMT
First, this is a fantastic framework and one that I have learned a great deal from. I'm new to 3d programming, so this might be a stupid question. I want to show shadows of my characters on the terrain. I first used a directional light, but the light from it washed out the terrain's colors. So instead, I am trying to use a blob projector to simulate shadows by attaching the projector to the heads of my characters and pointing down on the y-axis. This works great except for mountains, hills, or anything that has a heightmap higher than ground level. I thought maybe the issue was that Honey Hex's shaders prevented this, so I tried it with a projector shader that was posted early on in the Honey Hex forum. This again projected fine on the flat terrain, but not on any mountains/hills. Is there a way I could get blob shadows to work? I am just trying to blend my characters in better with the terrain. I have enabled Ambient Occlusion in the scene's lighting settings but it doesn't seem to work between the terrain and the characters. Perhaps I could somehow use a marker as a blob drop shadow and have multiple markers "follow" characters? I'm not sure how I would go about this. Any help would be greatly appreciated! Attachments:
|
|
|
Post by khash on Sept 29, 2020 9:06:27 GMT
Hi! We used regular directional light. It might require some tweaking but we were satisfied with the result. www.rockpapershotgun.com/2015/12/10/thea-the-awakening-review/I'm happy you like my code I used system similar to markers to make tree shadows in thea 2 (attachment) it was using low resolution texture representing whole world (about 20x20 pixels per hex) and then interpolating this value to make circle, half-transparent dirt override on the ground in the position of the tree, while its barely visible it made trees blend with terrain much more. But I think much better result you can achieve using directional light for characters which have more complex shape and those could interact with buildings and other stuff you plan to put in the world. Cheers Attachments:
|
|
|
Post by gymfrecklelaundry on Sept 30, 2020 4:19:54 GMT
Thanks for the reply - I will try tweaking the textures and darkening them so that I can turn up a directional light to cast more visible shadows. Thea turned out beautiful - I'm hoping my first game looks half as good!
|
|