Hlms + JSON now in 2.1

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


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

Re: Hlms + JSON now in 2.1

Post by dark_sylinc »

GlowingPotato wrote:The "UV" means that i can pass another diffuse map to the object if my object have another texture channel/UV set ? If true, how many UV sets can i have?
The UV is for when the mesh has more than one UV set. For example if the mesh has texcoord 0 for a lightmap, texcoord 1 for some arbitrary data, and texcoord 2 for the diffuse map; then you use uv : 2. The max value is 7 (inclusive)

Note however, if a mesh doesn't have that UV set, trying to apply that material to that mesh will raise an exception.

If you want multiple diffuse maps on top of each other, then that's what the detail_maps are for. You can have up to 5 diffuse maps (diffuse + 4 detail maps). Each detail map can be assigned to a different UV set.
User avatar
GlowingPotato
Goblin
Posts: 211
Joined: Wed May 08, 2013 2:58 pm
x 10

Re: Hlms + JSON now in 2.1

Post by GlowingPotato »

Thanks very much!
User avatar
Kojack
OGRE Moderator
OGRE Moderator
Posts: 7157
Joined: Sun Jan 25, 2004 7:35 am
Location: Brisbane, Australia
x 534

Re: Hlms + JSON now in 2.1

Post by Kojack »

Loading json materials looks for the samplers under the section "samplers", but saving materials stores them under "samplerblocks".
(ogrehlmsjson.cpp lines 503, 976 and 1090)
123iamking
Gremlin
Posts: 152
Joined: Sat Aug 12, 2017 4:16 pm
x 4

Re: Hlms + JSON now in 2.1

Post by 123iamking »

dark_sylinc wrote: Sun Dec 13, 2015 11:16 pm The main goal of this system is to allow material editors to have something to work with that can be loaded and saved easily, while quick hand-edits with notepad are still possible.
Can you please recommend a material editor? it's much better to work with tools :) Thanks.
al2950
OGRE Expert User
OGRE Expert User
Posts: 1227
Joined: Thu Dec 11, 2008 7:56 pm
Location: Bristol, UK
x 157

Re: Hlms + JSON now in 2.1

Post by al2950 »

xrgo
OGRE Expert User
OGRE Expert User
Posts: 1148
Joined: Sat Jul 06, 2013 10:59 pm
Location: Chile
x 168

Re: Hlms + JSON now in 2.1

Post by xrgo »

al2950 wrote: Mon Nov 27, 2017 4:03 pm viewtopic.php?f=11&t=84816
also viewtopic.php?t=84227 (but not sure how usable it is)
Post Reply