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.
![Image](http://img150.imageshack.us/img150/1605/tmpppc0.th.jpg)
![Image](http://img150.imageshack.us/images/thpix.gif)
And this is when I set EMF_LIGHTING with EMT_LIGHTMAP.
![Image](http://img528.imageshack.us/img528/9602/tmpppca7.th.jpg)
![Image](http://img528.imageshack.us/images/thpix.gif)
And last with EMF_LIGHTING and EMT_TRANS_ALPHA_CHANEL.
![Image](http://img81.imageshack.us/img81/4374/tmpft5.th.jpg)
![Image](http://img81.imageshack.us/images/thpix.gif)
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!