[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: 537
Joined: Mon Apr 14, 2003 11:48 pm
Location: Was LA now France
x 13

[2.1] Emissive map

Post by Slicky » Sun Oct 21, 2018 12:41 pm

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: 537
Joined: Mon Apr 14, 2003 11:48 pm
Location: Was LA now France
x 13

Re: [2.1] Emissive map

Post by Slicky » Sun Oct 21, 2018 12:45 pm

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: 537
Joined: Mon Apr 14, 2003 11:48 pm
Location: Was LA now France
x 13

Re: [2.1] Emissive map

Post by Slicky » Sun Oct 21, 2018 1:00 pm

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

Re: [2.1] Emissive map

Post by dark_sylinc » Sun Oct 21, 2018 3:44 pm

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: 537
Joined: Mon Apr 14, 2003 11:48 pm
Location: Was LA now France
x 13

Re: [2.1] Emissive map

Post by Slicky » Sun Oct 21, 2018 4:24 pm

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