HLMS_TOON

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


kariem2k
Kobold
Posts: 25
Joined: Sun Jan 09, 2005 10:16 pm
Location: Alexandria, Egypt
x 1

HLMS_TOON

Post by kariem2k »

Hello,

I was trying to find the HLMS for toon shading but I could not find it in the source tree. Is it deprecated?

Thanks

Kariem2k.blogspot.com
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5477
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1359

Re: HLMS_TOON

Post by dark_sylinc »

Hi!

It was reserved / planned but it never ended up being implemented.

kariem2k
Kobold
Posts: 25
Joined: Sun Jan 09, 2005 10:16 pm
Location: Alexandria, Egypt
x 1

Re: HLMS_TOON

Post by kariem2k »

Thank you very much. But I think I still can get basic toon shading by just modifying the PBS shaders.

Kariem2k.blogspot.com
jwwalker
Goblin
Posts: 268
Joined: Thu Aug 12, 2021 10:06 pm
Location: San Diego, CA, USA
x 19

Re: HLMS_TOON

Post by jwwalker »

I have a kind of toon shader implemented as a BRDF in the jw/work branch of my fork of Ogre. I think if you search for the string "JWToon" you should find all my changes. One would apply this rendering style to an object like datablock->setBrdf( Ogre::PbsBrdf::JWToon ) where datablock is a pointer to Ogre::HlmsPbsDatablock.

kariem2k
Kobold
Posts: 25
Joined: Sun Jan 09, 2005 10:16 pm
Location: Alexandria, Egypt
x 1

Re: HLMS_TOON

Post by kariem2k »

Wow, thank you very much. I will give it a try.

Kariem2k.blogspot.com