want to have both dynamic and ambient light
want to have both dynamic and ambient light
can someone please help me out i want to have all the textures be 25% lit at all times then have dynamic lights only add to that.
not sure how to accomplish this ...
thx,
Chris
not sure how to accomplish this ...
thx,
Chris
-
- Posts: 15
- Joined: Wed Jun 02, 2004 1:53 am
-
- Posts: 15
- Joined: Wed Jun 02, 2004 1:53 am
Well i don't think you need to reply in that manor.
But i have tried
and even with that it seems to be completely lit.
i can change it to say video::SColorf(1.0f,0.0f,0.0f,0.01f) and everything is red, so i'm a bit confused isn't the alpha channel used?
EDIT:
Alright i've gotten it working using:
I guess my problem came from a misunderstanding of the alpha channel.
Thank you to those who read this post geniuinly trying to actually help.
Have a great day.
But i have tried
Code: Select all
driver->setAmbientLight(video::SColorf(1.0f,1.0f,1.0f,0.01f));
i can change it to say video::SColorf(1.0f,0.0f,0.0f,0.01f) and everything is red, so i'm a bit confused isn't the alpha channel used?
EDIT:
Alright i've gotten it working using:
Code: Select all
driver->setAmbientLight(video::SColorf(0.2f,0.2f,0.2f,0.2f));
Thank you to those who read this post geniuinly trying to actually help.
Have a great day.
LittleGiant
With ambient light the lightning of dynamic light doesn't react smooth. Is it possible to disable ambient light for just some models in the game?
Visit my website @ www.venex.be
Plethora project will be added to the site
AMD AthlonXP 2600+, 512MB DDR, Radeon M10 (mobile 9600) PRO 64MB, WinXP
Plethora project will be added to the site
AMD AthlonXP 2600+, 512MB DDR, Radeon M10 (mobile 9600) PRO 64MB, WinXP
Can't find anything to disable ambient light for one object
Visit my website @ www.venex.be
Plethora project will be added to the site
AMD AthlonXP 2600+, 512MB DDR, Radeon M10 (mobile 9600) PRO 64MB, WinXP
Plethora project will be added to the site
AMD AthlonXP 2600+, 512MB DDR, Radeon M10 (mobile 9600) PRO 64MB, WinXP
You can use something like this to disable ambient lighting for certain SceneNodes:
Code: Select all
IAnimatedMeshSceneNode *newNode;
.
.
.
for(int i = 0; i < newNode->getMaterialCount(); i++)
{
newNode->getMaterial(i).AmbientColor.set(0, 0, 0, 0);
}
The only thing to fear is running out of beer!