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
Aracirion
Traffic Manager
Traffic Manager
Posts: 241
Joined: 15 Jan 2006 15:15
Contact:

new lighting for buildings

Post by Aracirion »

*** edit: head to the wiki for the latest info ***


Hello there

I have modified dmh_mac's standard light setup so that materials in the final render match the way they look in the preview window. The only modification was to reduce the strength of every light source by half (5 lights & ambient occlusion energy).

Both these buildings are rendered with the new setup (both WIP):
Image Image

it is especially important to get a definite light setup if we start to build a material library. Dmh_mac already told me he would be in favour of switching. What do others think?

Here is the setup. make sure to download the reflection map if you use reflection and change the path of the reflection map in blender; for flat reflective surfaces we might need aditional, planar reflection maps:
When you use a reflection map all the windows on a side of a building get the same uniform colour. With my method you get an actual reflection. (dmh_mac)
*** outdated attachment removed ***
Last edited by Aracirion on 24 Jul 2006 11:38, edited 2 times in total.
User avatar
Crazy Vaclav
Traffic Manager
Traffic Manager
Posts: 242
Joined: 02 Dec 2005 17:01

Post by Crazy Vaclav »

They look a bit dark, too be honest. Like they were rendered during a cloudy day.
User avatar
Ben_Robbins_
Tycoon
Tycoon
Posts: 1234
Joined: 20 Nov 2005 01:56
Location: Abu Dhabi, UAE

Post by Ben_Robbins_ »

I agree, too Dark. Nice models though...that water effect at the base of the tower is quality
Ben
User avatar
Aracirion
Traffic Manager
Traffic Manager
Posts: 241
Joined: 15 Jan 2006 15:15
Contact:

Post by Aracirion »

hmm do you think its because of contrast or because of overall brightness?
User avatar
Crazy Vaclav
Traffic Manager
Traffic Manager
Posts: 242
Joined: 02 Dec 2005 17:01

Post by Crazy Vaclav »

I did the same thing and tried it on a couple of my models a while ago, and they looked too dark as well. Perhaps if you change the power of the lights with 25% instead of 50%?
User avatar
Korenn
Tycoon
Tycoon
Posts: 1735
Joined: 26 Mar 2004 01:27
Location: Netherlands
Contact:

Post by Korenn »

why would you want the renders to look like the material selection preview if that results in a sprite that is not what you want the game to look like?

sounds to me like it's that materials preview window that needs editing, not the lighting setup.
User avatar
Ben_Robbins_
Tycoon
Tycoon
Posts: 1234
Joined: 20 Nov 2005 01:56
Location: Abu Dhabi, UAE

Post by Ben_Robbins_ »

overall brightness i think, cause look at the trees in the park, there almost 1 colour
Ben
User avatar
Crazy Vaclav
Traffic Manager
Traffic Manager
Posts: 242
Joined: 02 Dec 2005 17:01

Post by Crazy Vaclav »

My biggest problem with the current light setup is that it makes it hardly impossible to use white. If I want a white roof, for example, I have to make it a very dark grey, sometimes boardering to black (see attachment below). So even if you make a texture you are pleased with, you can be sure it wont look that way once you render it. So I think it would be better to change the light setup so it's not as bright, instead of having to redo the textures over and over until it works with the ligth setup.
Attachments
The roof of this station is almost black.
The roof of this station is almost black.
Station.png (132.31 KiB) Viewed 16658 times
User avatar
Aracirion
Traffic Manager
Traffic Manager
Posts: 241
Joined: 15 Jan 2006 15:15
Contact:

Post by Aracirion »

you're right about the trees, but thats the texture i think, I'll have to have a look at it ... look at the concrete frame of the big building though: its supposed to be bright grey, and its quite bright on top
User avatar
Ben_Robbins_
Tycoon
Tycoon
Posts: 1234
Joined: 20 Nov 2005 01:56
Location: Abu Dhabi, UAE

Post by Ben_Robbins_ »

Nice station! Odd flag, aint seen that before.
This topic seems remarkably allike to another one ive seen around here...arrr
Ben
User avatar
Crazy Vaclav
Traffic Manager
Traffic Manager
Posts: 242
Joined: 02 Dec 2005 17:01

Post by Crazy Vaclav »

I have uninstalled blender at the moment, so the station is all I have to show what I mean.
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Post by Purno »

The shadows make me wonder, what will happen to the part of the shadow which falls outside the tile?
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
User avatar
Ben_Robbins_
Tycoon
Tycoon
Posts: 1234
Joined: 20 Nov 2005 01:56
Location: Abu Dhabi, UAE

Post by Ben_Robbins_ »

purno: Yeah, ive wondered that a lot If an obeject goes out beyond its area that would be ok, but a shoddow isnt solid... are sprites with an opacity posible?
Ben
User avatar
Aracirion
Traffic Manager
Traffic Manager
Posts: 241
Joined: 15 Jan 2006 15:15
Contact:

Post by Aracirion »

I agree that the original pictures look a bit like a rainy day. In this render I made just the sun just a bit brighter (0.75, was 1 originally and 0.5 in my mod) and the bright concrete frame (which is an almost white colour but reflection value 0.9) gets (255,255,255) in the render ..... so maybe the problem with my picture is not with the light but with the model ... maybe it's just that there are no reflections in the windows, so they make it look really dark, plus the concrete on the roof is in itself a rather dark texture.
Image
User avatar
Ben_Robbins_
Tycoon
Tycoon
Posts: 1234
Joined: 20 Nov 2005 01:56
Location: Abu Dhabi, UAE

Post by Ben_Robbins_ »

That is definatly clearer than before, and more of a contrast of colours. Really nice building/model by the way.

I was/am still wondering. The shaddow goes over onto the next tile. Would the method of filling the shaddow casting area with checkered pixels work. Every other pixel being see threw. The most common object for it to fall onto would be the road. Other buildings would block it out... So if the shaddow was drawn to fit the shape of the curbstone/road (almost flat), then that might work?

<edit> ...hmm that makes little sence..2nd picture is what i mean.
Attachments
del123123.JPG
del123123.JPG (52.58 KiB) Viewed 16302 times
del12312345.PNG
del12312345.PNG (140.55 KiB) Viewed 893 times
Ben
User avatar
Aracirion
Traffic Manager
Traffic Manager
Posts: 241
Joined: 15 Jan 2006 15:15
Contact:

Post by Aracirion »

shadow: it should be possible to render a plane that receives shadow to the left of the building, so you don't need checker overlay but could draw it smooth. the problem is, however, that this will render the shadow on an even plane, so it will look bad if in the game the ground isn't even, so i wonder how that should be solved short of somehow rendering the shadow 3d for the right terrain.......
User avatar
Aracirion
Traffic Manager
Traffic Manager
Posts: 241
Joined: 15 Jan 2006 15:15
Contact:

Post by Aracirion »

I rendered a ball with colour max white and ref=1 and no highlight in the modified setup. the whole area marked by red is (255,255,255). I really think the setup is bright enough. the problem with my building is probably the texture, so I have tried brightening the image:
Image
Attachments
white ball; marked area is (255,255,255)
white ball; marked area is (255,255,255)
pure white.png (8.64 KiB) Viewed 16273 times
dmh_mac
Transport Coordinator
Transport Coordinator
Posts: 278
Joined: 25 Apr 2005 18:18

Post by dmh_mac »

Ok, I've been messing around with blender for a bit and I think setting the range (shading buttons >> world buttons >> world >> range) to circa 1.6 and changing ambient occlusion from "both" to "add" will give satisfactory results.
(I used the official light setup as a base for this, NOT the altered one from this thread.)



On a side note there is an excelent library plugin for blender available here.
Ichi
Traffic Manager
Traffic Manager
Posts: 130
Joined: 18 Apr 2006 13:27
Location: Groningen, The Netherlands

Post by Ichi »

dmh_mac, I checked your settings and I think they're much better. If you look at the original render, the roof is completely white, with dmh_mac's settings it is a lot better:
Attachments
building with dmh_mac's new settings
building with dmh_mac's new settings
dmh_mac_lighting.png (109.29 KiB) Viewed 16140 times
building with original lighting
building with original lighting
original_lichting.png (111.76 KiB) Viewed 16145 times
User avatar
Aracirion
Traffic Manager
Traffic Manager
Posts: 241
Joined: 15 Jan 2006 15:15
Contact:

Post by Aracirion »

the problem with changing range is that it will also affect reflections etc. and not just adjust the lighting. we had this back in this thread.
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Google [Bot] and 23 guests