Feral Heart

Help & Guidance => Game Help => Topic started by: FlyingGrass on December 03, 2017, 11:53:31 am

Title: What does the Diffuse code do to presets?
Post by: FlyingGrass on December 03, 2017, 11:53:31 am
I know the function of the other lines of code, but what does the Diffuse line do?
What's the difference between a preset/object with the Diffuse line and a preset/object without the diffuse line?
Do I need the Diffuse line in material/preset codes?
Title: Re: What does the Diffuse code do to presets?
Post by: Kuri on December 03, 2017, 06:54:36 pm
i thought it was something to do with the lighting.  Test it & see.
Title: Re: What does the Diffuse code do to presets?
Post by: FlyingGrass on December 03, 2017, 07:07:04 pm
I tested it, I found that the lighting hits the object differently(Without the Diffuse line, it looks like there's sheets falling off of the object whenever I look around)
Title: Re: What does the Diffuse code do to presets?
Post by: Lucius on December 04, 2017, 01:46:32 am
Diffuse, in the simplest of terms, is essentially the color of an object. In reality, it is the color that an object reflects under pure white light.

The default setting in ORGE is full white, meaning objects reflect the maximum white light they can.

The diffuse setting has no effect if the ’lighting off’ attribute is used, or if any texture layer has a ’colour_op replace’ attribute.

Essentially, if you leave out the other light settings (ambient, specular, and emissive) and only play with diffuse, you can tint your object with different colors.

It is not required, since OGRE will default to the white diffuse if it's not specified.

Title: Re: What does the Diffuse code do to presets?
Post by: FlyingGrass on December 04, 2017, 08:00:29 am
Ok, I understand that, so now this topic can be locked.
Thank you, Kuri and Lucius!