Khaligufzel / Dimensionfall

A survival game inspired by Cataclysm: Dark Days Ahead and Bright Nights.
MIT License
12 stars 5 forks source link

Add basic shapes below furniture sprite to get perspective #242

Closed snipercup closed 2 months ago

snipercup commented 2 months ago

Requires #241

In #241 it became clear that having just a sprite3d for static furniture was insufficient. You can see there's no height while we're in this perspective camera. The furniture now has basic shapes below them that visualizes their height.

I tried to do it with just a mesh, but there were issues with lighting, transparency, uv mapping and others. We might end up doing this in the end if we require some really advanced furniture but by that point you might as well start using 3d models.

The door is still a bit wonky because the player carries a light with him and will shine trough the door and walls but that's more of a lighting issue. That would require separate work.

Screenshot of the new windows and furniture with shadows: image

Screenshot of editing the furniture shape in static furniture: image