Rendering city lights suggestion

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
User avatar
alpha2
Gnoblar
Posts: 16
Joined: Fri Jul 14, 2006 6:15 pm

Rendering city lights suggestion

Post by alpha2 » Thu Jan 28, 2010 5:24 am

I need some suggestions on how to render lights from night scenery of a city. The city itself just a color texture on the terrain not a bunch of building meshes. The implementation will be used in a flight simulator program where the city will be often viewed from heights. I've listed some methods that I thought would work:

1. Create the city light texture that not affected by light color (darkened) when night arrives.
2. Create light meshes/billboards using a material that not affected by light color.
3. Any other ideas?

I'll use glow post processing filter on both methods to enhance it.
Which one from the methods would be suited in term of performance and quality?
Would deferred rendering will help in this situation, or it's only worth for dynamic lighting?

Thanks
0 x

User avatar
Ockonal
Greenskin
Posts: 109
Joined: Mon Oct 26, 2009 8:26 am
Location: Ukraine
Contact:

Re: Rendering city lights suggestion

Post by Ockonal » Thu Jan 28, 2010 12:52 pm

You could use hdr with lighted materials. For example, pass colour value * k.
0 x

Vectrex
Ogre Magi
Posts: 1266
Joined: Tue Aug 12, 2003 1:53 am
Location: Melbourne, Australia
Contact:

Re: Rendering city lights suggestion

Post by Vectrex » Thu Jan 28, 2010 3:28 pm

0 x

User avatar
alpha2
Gnoblar
Posts: 16
Joined: Fri Jul 14, 2006 6:15 pm

Re: Rendering city lights suggestion

Post by alpha2 » Thu Jan 28, 2010 9:23 pm

Thanks for all replies.
@Vectrex: Yup. It perfectly fits my need. :D

Cheers.
0 x

Post Reply