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
Post
by kariem2k » Fri Feb 23, 2024 10:01 pm
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
dark_sylinc
OGRE Team Member
Posts: 5477 Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1359
Post
by dark_sylinc » Tue Feb 27, 2024 4:47 pm
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
Post
by kariem2k » Tue Feb 27, 2024 5:07 pm
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
Post
by jwwalker » Sun Mar 10, 2024 12:50 am
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
Post
by kariem2k » Tue Mar 12, 2024 9:53 pm
Wow, thank you very much. I will give it a try.
Kariem2k.blogspot.com