PBS Datablock clone brdf 0

Problems building or running the engine, queries about how to use features etc.
Post Reply
Lax
Hobgoblin
Posts: 583
Joined: Mon Aug 06, 2007 12:53 pm
Location: Saarland, Germany
x 50

PBS Datablock clone brdf 0

Post by Lax »

Ogre Version:2.1 :?:
Operating System:Windows10 :?:
Render System:DX12 :?:

Hi,

I have noticed, that when I clone a PBS datablock, the brdf is always 0.
But when I read the json, I see, that brdf is set e.g. to 'BlinnPhong'.

Can this be fixed?

See function:

Code: Select all

this->datablock = dynamic_cast<Ogre::HlmsPbsDatablock*>(sourceDataBlock->clone(this->originalDataBlockName
				+ Ogre::StringConverter::toString(this->gameObjectPtr->getId())));
Thanks!

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: 5296
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1278
Contact:

Re: PBS Datablock clone brdf 0

Post by dark_sylinc »

That's weird.
HlmsPbsDatablock::cloneImpl in Components/Hlms/Pbs/src/OgreHlmsPbsDatablock.cpp.inc does copy the mBrdf. I guess I'll have to take a look at what is happening when I try it
Lax
Hobgoblin
Posts: 583
Joined: Mon Aug 06, 2007 12:53 pm
Location: Saarland, Germany
x 50

Re: PBS Datablock clone brdf 0

Post by Lax »

Oh, I'm sorry :oops: . I mixed up workflow with brdf. So everything works as expected. This post can be closed.

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

Post Reply