cmontiel
Member
|
Ambient light and Lightmaps
I am trying to build a scene with a cell and one character.
The cell has lightmaps, we are working with deferred mode in windows until Esenthel enables lightmaps for forward/simple renders modes.
Ambient Power = 1.f
No lights.
Result: I cannot see lightmaps, character ok (flat).
----------
Ambient Power = 1.f
One directonial light.
Result: similar to ambient power 1.f and no lights.
--------------
Ambient Power = 0.f
No lights.
Result: lightmaps ok, character is black.
---------
Ambient Power = 0.f
One directional light.
Result: lightmap is afected by light and is not exactly as the original, character ok.
----------
How should I set up the scene for models with and without lightmaps??
Do I need shaders?
IRC: irc.freenode.net
Channel: #Esenthel
|
|
09-25-2012 08:20 PM |
|
Esenthel
Administrator
|
RE: Ambient light and Lightmaps
Hi, currently lightmap works like "ambient map", I will solve this once I proceed with lightmaps in forward/simple renderers.
|
|
09-26-2012 01:11 PM |
|
cmontiel
Member
|
RE: Ambient light and Lightmaps
Ok thanks, we will wait then.
IRC: irc.freenode.net
Channel: #Esenthel
|
|
09-26-2012 04:17 PM |
|
Esenthel
Administrator
|
RE: Ambient light and Lightmaps
You can set light to 0
then you can set
1) lightmap for character too
or
2) use custom lighting shader for character (there is tutorial for that)
|
|
10-01-2012 12:00 PM |
|
cmontiel
Member
|
RE: Ambient light and Lightmaps
Thanks for suggestions,
1) Adding a new map for each character means less performances and more memory usage. Since the game is for iOS and Android, I don't think this is the best option.
2) I saw the tutorial, but I can't create a custom shader right now, because the only way to test custom shaders with lightmaps is in deferred mode, and we don't use deferred renderer.
We will wait until you have time to fix this (hopefully soon).
IRC: irc.freenode.net
Channel: #Esenthel
|
|
10-01-2012 06:45 PM |
|