Author Topic: What does the Diffuse code do to presets?  (Read 664 times)

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
What does the Diffuse code do to presets?
« 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?

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.

Offline Kuri

  • Immortal Legend
  • *****
  • Posts: 8,168
  • Country: nz
  • Floof-O-Meter: 136
  • Foreboding evil harmless kitten.
    • dumbstuff4friends
    • channel/UCo42jgbLvEzkofpOin0_a4A
    • View Profile
Re: What does the Diffuse code do to presets?
« Reply #1 on: December 03, 2017, 06:54:36 pm »
i thought it was something to do with the lighting.  Test it & see.
The Japanese concept of wabisabi:
The closest concept in english would be 'rustic'
They might have an old thing, one example is a favourite bowl or dish, it's broken, pieces are missing, why fix it?  With gold and pieces from other dishes?
"Because it was my favourite & I like it"

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
Re: What does the Diffuse code do to presets?
« Reply #2 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)

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.

Lucius

  • Guest
Re: What does the Diffuse code do to presets?
« Reply #3 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.


« Last Edit: December 04, 2017, 01:48:16 am by Lucius »

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
Re: What does the Diffuse code do to presets?
« Reply #4 on: December 04, 2017, 08:00:29 am »
Ok, I understand that, so now this topic can be locked.
Thank you, Kuri and Lucius!

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.