Light/shadow

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
ebla71
Route Supervisor
Route Supervisor
Posts: 495
Joined: 14 Apr 2021 21:48
Location: Earth

Light/shadow

Post by ebla71 »

I know it has been discussed somewhere here before but unfortunately I could not find it myself:

What's the "lighting model" for OTTD in the sense of where is the light coming from and where should shadows on sprites be placed?

If I recall correctly, light is from lower right and shadows thus should be towards upper right - true?!?

Would like a confirmation before I start drawing larger numbers of sprites.
User avatar
Redirect Left
Tycoon
Tycoon
Posts: 7431
Joined: 22 Jan 2005 19:31
Location: Wakefield, West Yorkshire

Re: Light/shadow

Post by Redirect Left »

ebla71 wrote: 18 Nov 2024 14:35 If I recall correctly, light is from lower right and shadows thus should be towards upper right - true?!?
This appears to be correct. When playing the game, it comes from that side on the default graphics, the bottom right is brightest, and getting darker as you go around.
Attachments
2024-11-18 18_58_06-OpenTTD jgrpp-0.63.0.png
2024-11-18 18_58_06-OpenTTD jgrpp-0.63.0.png (17.1 KiB) Viewed 3984 times
Image
Need some good tested AI? - Unofficial AI Tester, list of good stuff & thread is here.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: Bing [Bot] and 3 guests