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!