About Store Forum Documentation Contact
Donations:
178$/mo



Post Reply 
Ambient light and Lightmaps
Author Message
cmontiel Offline
Member

Post: #1
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).

[Image: 2z6yus6.jpg]
----------


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.

[Image: 2qcdys4.jpg]
---------


Ambient Power = 0.f
One directional light.

Result: lightmap is afected by light and is not exactly as the original, character ok.

[Image: 2wlua8l.jpg]
----------


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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
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
Find all posts by this user Quote this message in a reply
cmontiel Offline
Member

Post: #3
RE: Ambient light and Lightmaps
Ok thanks, we will wait then.

IRC: irc.freenode.net
Channel: #Esenthel
09-26-2012 04:17 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
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
Find all posts by this user Quote this message in a reply
cmontiel Offline
Member

Post: #5
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
Find all posts by this user Quote this message in a reply
Post Reply