Newest Ogre Version wrong Brdf value

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


Lax
Orc Shaman
Posts: 701
Joined: Mon Aug 06, 2007 12:53 pm
Location: Saarland, Germany
x 73

Newest Ogre Version wrong Brdf value

Post by Lax »

Hi,

I'm using the newest Ogre version and found out, that when I use a datablock, the brdf is by default always:
PbsBrdf::DefaultHasDiffuseFresnel

But in my json file I use e.g. "cook_tolerance". This behavior unfortunately messes the visualisation of all my game objects.

Code: Select all

"M_wood_06" :
		{
			"macroblock" : "Macroblock_Village",
			"blendblock" : "Blendblock_Village",
			"shadow_const_bias" : 0.001,
			"workflow" : "SpecularWorkflow",
			"brdf" : "cook_tolerance",
			"diffuse" :
			{
				"value" : [1, 1, 1],
				"background" : [1, 1, 1, 1],
				"texture" : "T_wood_06_BC.png",
				"sampler" : "Sampler_Village"
			},
			"emmissive" :
			{
				"value" : [1, 1, 1]
			},
			"normal" :
			{
				"value" : 1,
				"sampler" : "Sampler_Village",
				"texture" : "T_wood_06_N.png"
			},
			"roughness" :
			{
				"value" : 1.7
			}
		}

Can this be fixed?

Best Regards
Lax

http://www.lukas-kalinowski.com/Homepage/?page_id=1631
Please support Second Earth Technic Base built of Lego bricks for Lego ideas: https://ideas.lego.com/projects/81b9bd1 ... b97b79be62

User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5551
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1402

Re: Newest Ogre Version wrong Brdf value

Post by dark_sylinc »

You mean "cook_torrance"? "cook_tolerance" is not a valid value :lol:

Anyway, the default BRDF changed a few weeks ago.

You can use hlmsPbs->setDefaultBrdfWithDiffuseFresnel( true ); to make it look close to the way it used to.

But ambient lighting is stronger now, so you may have to divide the ambient light by PI

Lax
Orc Shaman
Posts: 701
Joined: Mon Aug 06, 2007 12:53 pm
Location: Saarland, Germany
x 73

Re: Newest Ogre Version wrong Brdf value

Post by Lax »

Hi,

You mean "cook_torrance"? "cook_tolerance" is not a valid value

Oh yes, I had a typo :wink:

And thanks for the information. I will tweak with some values.

Best Regards
Lax

http://www.lukas-kalinowski.com/Homepage/?page_id=1631
Please support Second Earth Technic Base built of Lego bricks for Lego ideas: https://ideas.lego.com/projects/81b9bd1 ... b97b79be62