Toggling Lightmaps?

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

Toggling Lightmaps?

Postby Justintime9 » Tue Sep 18, 2012 3:31 pm

Hey guys. I'm considering writing a new age, so at this point it's just brainstorming. But I had an interesting idea and I wondered if it's possible. Say I wanted a dark/dimly lit room (lightmapped to look that way.) Would it be possible to lightmap the room TWICE? As in, lightmap it a second time with the lights on? And (here's the really tricky part) with the press of a button toggle between the lightmaps? I don't mean link to a different page like I did in Zefora, but instantaneously change the lighting. To give the affect that a light has been switched on.
User avatar
Justintime9
 
Posts: 1188
Joined: Sat Sep 29, 2007 5:37 am

Re: Toggling Lightmaps?

Postby Calena » Tue Sep 18, 2012 7:39 pm

I've done this in one of the ages I built for my family. All you need to do is create two textures, one lit and one dark. You can use a material animation to switch between "on" and "off". Depending on the complexity of your scene, it could be a lot of work; so if you're toggling several textures, put them all on a single texture and UV map to the different sections you need for different objects. To make it even easier, once you've built your scene, join all the objects into one.

In other words, yes, it's very easy to do, but think it through first. Good luck with your age!
Galatians 2: 20-21

"Don't mess with me today. I have my CAPS LOCK key and I know how to use it!"
User avatar
Calena
 
Posts: 222
Joined: Thu Jan 13, 2011 11:38 am

Re: Toggling Lightmaps?

Postby Paradox » Tue Sep 18, 2012 8:58 pm

You cannot do it with real lightmap layers, but you could fake it with two normal shadow map layers.

The problem with real lightmap layers is that as soon as you change the opacity, your mesh starts becoming transparent. I played around with this in my Pahts shell, and couldn't find a good way to do it (since I needed both light and shadows, I couldn't use two shadow maps).
Paradox
 
Posts: 1295
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada


Return to Building

Who is online

Users browsing this forum: No registered users and 2 guests