[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 12

[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.
0 x

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

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?
0 x

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

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,
0 x

User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 3997
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 192
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.
0 x

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

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.
0 x

Post Reply