[2.1] Emissive map

Problems building or running the engine, queries about how to use features etc.
Post Reply
Slicky
Bronze Sponsor
Bronze Sponsor
Posts: 599
Joined: Mon Apr 14, 2003 11:48 pm
Location: Was LA now France
x 20

[2.1] Emissive map

Post by Slicky »

It looks like you can't use an emissive map texture in the PBS system. I see:

Code: Select all

void Ogre::HlmsPbsDatablock::setEmissive 	( 	const Vector3 &  	emissiveColour	) 	
in the API but that is not a map.

Is there another way to achieve it? I read it's not a physical property but nevertheless it seems useful to use.

Slicky
Bronze Sponsor
Bronze Sponsor
Posts: 599
Joined: Mon Apr 14, 2003 11:48 pm
Location: Was LA now France
x 20

Re: [2.1] Emissive map

Post by Slicky »

I wonder if it would work baking the emissive into the base texture since there doesn't seem to be direct support?

Slicky
Bronze Sponsor
Bronze Sponsor
Posts: 599
Joined: Mon Apr 14, 2003 11:48 pm
Location: Was LA now France
x 20

Re: [2.1] Emissive map

Post by Slicky »

After some more search it seems confusing. There is a PBSM_EMISSIVE in code but I don't see an emisssive_map item to use in scripts.

I'm trying to compare scripts to code versions while I'm testing things,

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

Re: [2.1] Emissive map

Post by dark_sylinc »

Not all features are supported from the old script format. It is kept for convenience due to their simplicity for hand editing. JSON materials are feature complete.

Slicky
Bronze Sponsor
Bronze Sponsor
Posts: 599
Joined: Mon Apr 14, 2003 11:48 pm
Location: Was LA now France
x 20

Re: [2.1] Emissive map

Post by Slicky »

Ah ok that makes sense. So it is supported but I should be using json if I want to try a script version.

Post Reply