new lighting for buildings

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

User avatar
Ben_Robbins_
Tycoon
Tycoon
Posts: 1234
Joined: 20 Nov 2005 01:56
Location: Abu Dhabi, UAE

Post by Ben_Robbins_ »

The roof is a lot better, but the sides now look bland and have lost contrast
Ben
Ichi
Traffic Manager
Traffic Manager
Posts: 130
Joined: 18 Apr 2006 13:27
Location: Groningen, The Netherlands

Post by Ichi »

Ben_Robbins_ wrote:The roof is a lot better, but the sides now look bland and have lost contrast
That's true, but I don't think we can have it both. But I'm not a lighting expert, far from it lol
User avatar
lowman
Engineer
Engineer
Posts: 31
Joined: 19 Apr 2006 01:35
Location: Melbourne, Australia
Contact:

Post by lowman »

Ben_Robbins_ wrote:The roof is a lot better, but the sides now look bland and have lost contrast
Isn't that more to do the fact that its currently untextured (i.e. all one texture)? I think the new lighting setup accurately reflects that. I mean a structure that consists entirely of one material under a realistic light setup is going to lack contrast.

I think the light setup is better evaluated on textured objects.
User avatar
Ben_Robbins_
Tycoon
Tycoon
Posts: 1234
Joined: 20 Nov 2005 01:56
Location: Abu Dhabi, UAE

Post by Ben_Robbins_ »

I was talking about tonal variation as aposed to Textured or Colour Variation...
Ben
User avatar
lowman
Engineer
Engineer
Posts: 31
Joined: 19 Apr 2006 01:35
Location: Melbourne, Australia
Contact:

Post by lowman »

Ben_Robbins_ wrote:I was talking about tonal variation as aposed to Textured or Colour Variation...
Agreed, I think it gives a more realistic result though.

Does it actually makes sense to have the light source oriented that way, given that it puts the least lighted aspect of the object facing the camera/user? Would it be more productive to have the light source within a +/- 90 degree range from the camera (as measured from a top-down view)? I'm thinking that all these great models people are doing would be better presented that way?

I understand that the current light setup was chosen to mimic the current one, but should we use the opportunity to come up with a more effective setup?
dmh_mac
Transport Coordinator
Transport Coordinator
Posts: 278
Joined: 25 Apr 2005 18:18

Post by dmh_mac »

Well the light setup is made to look similar to the light in the original ttd graphics.
As for there not being much contrast on the shaded side of the building, thats how it is in real life.
User avatar
Ben_Robbins_
Tycoon
Tycoon
Posts: 1234
Joined: 20 Nov 2005 01:56
Location: Abu Dhabi, UAE

Post by Ben_Robbins_ »

For the 4 rotations of any building, Is the lighting set up to remain fixed to the camara or the objects?...

If fixed to the camara then the graphic has a lot more usage, but you would always be looking at the side in the shaddow
Ben
dmh_mac
Transport Coordinator
Transport Coordinator
Posts: 278
Joined: 25 Apr 2005 18:18

Post by dmh_mac »

I believe right now we have settled on fixed lighting so we can use all 4 angles of a building in the same view, giving more variation.

When we get more insight into memory useage e.a. we can decide whether it is feasable to have 4x4 sprites per building.
User avatar
lowman
Engineer
Engineer
Posts: 31
Joined: 19 Apr 2006 01:35
Location: Melbourne, Australia
Contact:

Post by lowman »

dmh_mac wrote:I believe right now we have settled on fixed lighting so we can use all 4 angles of a building in the same view, giving more variation.

When we get more insight into memory useage e.a. we can decide whether it is feasable to have 4x4 sprites per building.
Fixed lighting makes sense, but why from 135degrees (approx) from the user's viewpoint? In photography I was alway taught that having light coming from behind the camera is the best setup (generally).
dmh_mac
Transport Coordinator
Transport Coordinator
Posts: 278
Joined: 25 Apr 2005 18:18

Post by dmh_mac »

I don't know much about photography but I wouldn't think that frontlight is the best for every situation, allthough I do realize in most cases you would want the sun in your back instead of in your view.

If we were to use frontlight we would lose a lot of contrast on the overal picture. I think it would look very plain and boring and would take away a lot of the 3d-ness.
User avatar
Ben_Robbins_
Tycoon
Tycoon
Posts: 1234
Joined: 20 Nov 2005 01:56
Location: Abu Dhabi, UAE

Post by Ben_Robbins_ »

I made a avi to compair...

<Edit> From that i drew up where i think the strongest points for the light to come from are. Red is Lame, White is Good. The Arrow is where the current light comes from. (Based on Contrast, Alignment of shaddows and Lighting)

Some people just have way too much time on their hands
Attachments
360temp.avi
(906 KiB) Downloaded 342 times
Analysis.jpg
Analysis.jpg (57.64 KiB) Viewed 6450 times
Ben
User avatar
Aracirion
Traffic Manager
Traffic Manager
Posts: 241
Joined: 15 Jan 2006 15:15
Contact:

new approach

Post by Aracirion »

I'd like to propose a different apprach: remove all light but the sun & ambient occlusion. This is how things should be in the real world, I figured. Then I made an object of pure white (colour, plus ref=1). The renders below are varied in ambient occlusion strength; I think we should now decide how bright pure white should be. I'd take something in between 1 and 1,5. What do you think of this appraoch in general? (we could still try varying the angle of the sun...)
Attachments
AO=2
AO=2
new 2.png (43.39 KiB) Viewed 6330 times
AO=1,5
AO=1,5
new 1,5.png (44.59 KiB) Viewed 6330 times
AO=1
AO=1
new 1.png (43.08 KiB) Viewed 6331 times
Costas
Engineer
Engineer
Posts: 105
Joined: 31 Mar 2006 17:03

Post by Costas »

is the light going to be fixed from one side regardless how u turn the map? ie is it going to be coming from the right of the screen? or by rotating the map so do the shadows?
User avatar
Aracirion
Traffic Manager
Traffic Manager
Posts: 241
Joined: 15 Jan 2006 15:15
Contact:

Post by Aracirion »

Costas: as far as I understood, for now the light is always coming from the same side, the advantage being that you can use all 4 perspectives of the building on the same screen.

concerning my new setup: The reason for reducing light sources is simplicity: by varying the Sun/Ambient Occlusion ratio we should be able to vary the amount of light that faces that lie in the shadow get. Furthermore, once we have decided how pure white should look we can go on with the textures and still change the details of the lighting later. I also included a render of my office with the new setup (Amb. Occ. = 1)
Attachments
AO=1
AO=1
citibank 1.jpg (94.61 KiB) Viewed 672 times
User avatar
Ben_Robbins_
Tycoon
Tycoon
Posts: 1234
Joined: 20 Nov 2005 01:56
Location: Abu Dhabi, UAE

Post by Ben_Robbins_ »

Have you changed some textures, Cause in Comparing it, it appears a lot more blue on the sides now.

The top looks a lot better, but the sides are now very dark. I think 1.5 is the lowest your should go. In the real world light bounces enough so that everywhere gets some light. The higher contrast makes the edges unrealistically sharp i think as well. The edges in 'new 1,5.png' are a lot better i think.
Ben
Ichi
Traffic Manager
Traffic Manager
Posts: 130
Joined: 18 Apr 2006 13:27
Location: Groningen, The Netherlands

Post by Ichi »

Aracirion wrote:Costas: as far as I understood, for now the light is always coming from the same side, the advantage being that you can use all 4 perspectives of the building on the same screen.

concerning my new setup: The reason for reducing light sources is simplicity: by varying the Sun/Ambient Occlusion ratio we should be able to vary the amount of light that faces that lie in the shadow get. Furthermore, once we have decided how pure white should look we can go on with the textures and still change the details of the lighting later. I also included a render of my office with the new setup (Amb. Occ. = 1)
Could you render it so the light shines on the front of the building by rotating the building 90 degrees to the right. I think that'll make your building look way prettier.

I think 1 is the best value, it has the best contrast and isn't too bright.
dmh_mac
Transport Coordinator
Transport Coordinator
Posts: 278
Joined: 25 Apr 2005 18:18

Post by dmh_mac »

I too initialy went for a minimalistic light setup, however we have to consider we are not trying to simulate real life.
In real life (on a clear and sunny day) it'd be hard to photograph a building without losing contrast on either the shadow side (details falling into the darkness) or the sunny side (details getting saturated out).

We want neither to happen so we have to put in extra ambient light making it more like a light clouded or hazey day.
This causes the roof areas to be overly bright, so our alternative is to put in a hemi light shining from the oposite direction of the sun.

Which is basicly how it is currently, but now you know why :?
Ichi
Traffic Manager
Traffic Manager
Posts: 130
Joined: 18 Apr 2006 13:27
Location: Groningen, The Netherlands

Post by Ichi »

I understand, but the new lighting method from Aracirion looks pretty good and makes sure the roofs aren't overly bright and keeps some nice contrast.
dmh_mac
Transport Coordinator
Transport Coordinator
Posts: 278
Joined: 25 Apr 2005 18:18

Post by dmh_mac »

Aracirion,

Could you perhaps post a render of the blocks scene with the lighting we use now?
User avatar
Aracirion
Traffic Manager
Traffic Manager
Posts: 241
Joined: 15 Jan 2006 15:15
Contact:

Post by Aracirion »

there you go.
Attachments
original with all light sources reduced by half
original with all light sources reduced by half
new A mod.png (44.02 KiB) Viewed 6196 times
original setup
original setup
new A.png (32.49 KiB) Viewed 6199 times
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Google Adsense [Bot] and 44 guests