Another Light Problem (Solved)
Posted: Fri Sep 26, 2008 5:57 am
Hi, I'm trying to build my project. At first I decided not to use lighting on it but it doesn't look so good. Now I'm trying to fix somelighting up and there're lots of problems.
I loaded 2 mesh on my scene (both in my3d format). First for collision checking (wall,floor ,etc..) and second one is for visual sight ( Buildings,trees,pole )
This is my scene without light.
And this is when I set EMF_LIGHTING with EMT_LIGHTMAP.
And last with EMF_LIGHTING and EMT_TRANS_ALPHA_CHANEL.
You'll see the poll is dark. but that's where i put my second light source. It seems not to be affected by light.
I don't know anything about lighting. I just put a light out there.
I tried it all , about reduce the light radius or increase it. I didn't have my lightmap as well (just export from 3dsmax). Anyway how did you guys do about light? is it just one spot like the sun or as much as it needed ?
Thanks in advance!
I loaded 2 mesh on my scene (both in my3d format). First for collision checking (wall,floor ,etc..) and second one is for visual sight ( Buildings,trees,pole )
This is my scene without light.
And this is when I set EMF_LIGHTING with EMT_LIGHTMAP.
And last with EMF_LIGHTING and EMT_TRANS_ALPHA_CHANEL.
You'll see the poll is dark. but that's where i put my second light source. It seems not to be affected by light.
I don't know anything about lighting. I just put a light out there.
Code: Select all
light1 = smgr->addLightSceneNode(0, core::vector3df(4975.0f,-809.0f,-1697.0f), video::SColorf(0.5f, 0.5f, 0.5f, 0.5f), 30000.0f);
light2 = smgr->addLightSceneNode(0, core::vector3df(443.0f,-809.0f,1728.0f),video::SColorf(0.5f, 0.5f, 0.5f, 0.5f), 300.0f);
Thanks in advance!