Shininess

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
melon

Shininess

Post by melon »

hi.
I already have found that:

scene::ISceneNode node->getMaterial(0).Shininess = 255.0f;

will not work, as it was said in thread: http://irrlicht.sourceforge.net/phpBB2/ ... iness#2541

Date of this information is 22 Aug 2003 and I'm not sure about what version of Irrlicht it is.

So maybe I just can't find way to make Shininess work but it WORKS?

There's no information about it in API documentation saying that it is NOT implemented.

Please help - how to make node shine? (few lines of code would be shortest and most helpful)

thanks
melon2004
Posts: 13
Joined: Tue Jul 27, 2004 6:53 pm

Post by melon2004 »

well, I even have registered on that forum ;) but no help about shining objects:(
I just forgot to mention, that I use OpenGL (on Linux platform), so maybe that's problem? Has DirectX driver more features implemented?
Guest

Post by Guest »

i guess there is no big difference between directx and openGL. but if you use opengl you could use nvidia CG and use a "shininess" effect ?

btw: hello irrlicht forum! iam just new here ^^ to be honest iam a total irrlicht noob, but iam trying to become as smart as you guys :roll: we will meet again...
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

If you look at the API's themselves there are no big differences between OpenGL and DirectX, but niko just likes DirectX more and that's why it is more supported by Irrlicht. But IrrlichtNX is working on that :).
General Tools List
General FAQ
System: AMD Barton 2600+, 512MB, 9600XT 256MB, WinXP + FC3
melon2004
Posts: 13
Joined: Tue Jul 27, 2004 6:53 pm

Post by melon2004 »

well, I've tried once to download NX from CVS, but had problem compiling it :( I will give it another chance ;) when I finish this project (time is running, and I have problems with wchat_t in gui!).

I worked around shining problem setting nice "pseudo" shining bitmap as texture with EMT_REFLECTION_2_LAYER. It works great for "golden" type of materials. If anyone is interested with that, I can post some code (but it's rather simple, nothing special)
Guest

Please post code!

Post by Guest »

melon2004, Please post code, I've tried to do it before but couldn't get it working right.
melon2004
Posts: 13
Joined: Tue Jul 27, 2004 6:53 pm

Post by melon2004 »

node->setMaterialTexture(0, texture); //some bmp with light spots on it
node->getMaterial(0).AmbientColor = video::SColor(0,0,0,0);
node->getMaterial(0).Shininess = 255.0;
node->getMaterial(0).SpecularColor = video::SColor(255,255,255,255);
node->getMaterial(0).DiffuseColor = video::SColor(255,255,100,50);//this gives a little bit of red in shadows
node->getMaterial(0).EmissiveColor = video::SColor(255,10,10,10);
node->getMaterial(0).GouraudShading = true;//this is true by default;)
node->getMaterial(0).MaterialType = video::EMT_REFLECTION_2_LAYER;

I've just put all settings from some of my sources, some of them probably do nothing ;) (like Shininess I guess). Well, as you see, nothing special, but I'm glad if that will help.
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

I 've not got Shininess to work. Someone?
Post Reply