Karma - Texture Baking

   4796   10   2
User Avatar
Member
162 posts
Joined: Nov. 2016
Offline
Hello!

I want to ask what are the steps to bake textures with Karma? I saw on the Karma vs Mantra [www.sidefx.com] page that there is a preliminary support on H19.5 Karma CPU for this:



But the only element that appears on the TAB menu for bake is not related to this:



Thanks!
User Avatar
Member
8833 posts
Joined: July 2007
Offline
that's probably what preliminary support means
no high level tools, but technically it may be possible on lower level

like for example, Render Settings LOP has whole section of properties in Karma/Texture Baking
but I don't know whether they are sufficient to put together a working baking setup as I haven't tried
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
1803 posts
Joined: May 2006
Online
I got this going back on the alpha with some hints (ok, a LOT of hints) from Mark Elendt.

It's fiddly, but it works:

https://www.tokeru.com/cgwiki/HoudiniLops#Texture_baking_with_Karma [www.tokeru.com]

Attachments:
lops_bake_screenshot.PNG (497.6 KB)

http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
162 posts
Joined: Nov. 2016
Offline
Wow that's it, thanks a lot for sharing it @mestela, cheers!
User Avatar
Member
8 posts
Joined: Dec. 2017
Offline
Sorry for a noob question but what is this Object ID thingy.
If instead of one pig head as in the example I would have two usd primitives pigHP and pigLP how do I tell which one is wich to the render rop? I need to mark them with some attribute with some fancy name?
User Avatar
Member
8044 posts
Joined: Sept. 2011
Offline
pablo_lukaszewicz
Sorry for a noob question but what is this Object ID thingy.
If instead of one pig head as in the example I would have two usd primitives pigHP and pigLP how do I tell which one is wich to the render rop? I need to mark them with some attribute with some fancy name?

Yes, the render geometry settings has Low, Cage, and High obj ID settings for correlating the primitives that are baked.
User Avatar
Member
1 posts
Joined: Feb. 2024
Offline
mestela
I got this going back on the alpha with some hints (ok, a LOT of hints) from Mark Elendt.

It's fiddly, but it works:

https://www.tokeru.com/cgwiki/HoudiniLops#Texture_baking_with_Karma [www.tokeru.com]

Thank you so much for this helpful post. I can't wait to start some baking in my karma OVEN!
User Avatar
Member
874 posts
Joined: Oct. 2008
Offline
jsmack
pablo_lukaszewicz
Sorry for a noob question but what is this Object ID thingy.
If instead of one pig head as in the example I would have two usd primitives pigHP and pigLP how do I tell which one is wich to the render rop? I need to mark them with some attribute with some fancy name?

Yes, the render geometry settings has Low, Cage, and High obj ID settings for correlating the primitives that are baked.

What are these ID settings? An integer, a string? Are they applied automatically and how do I find them? For example, if I have a cube and a sphere and I want a baked texture of only the sphere (but with the shadow cast from the cube, etc). Is it possible to set those ids?
Edited by Soothsayer - Feb. 22, 2024 11:02:46
--
Jobless
User Avatar
Member
8 posts
Joined: Dec. 2017
Offline
Thanks @jsmack! How do you specify it?
I can't just figure out what to put there, how to tell Karma that pig_higlpoly is the high poly object and pig_lowpolly is the low poly one. This object_id thingy does not pop up much in the documentation.

Attachments:
karma_question.png (1.5 MB)

User Avatar
Member
8 posts
Joined: Dec. 2017
Offline
Aaaaaa OK, got it.
Set the object id for lowpoly and highpoly to the same id via render geometry setting nodes and turn off the visibility for the low poly as well.
Attaching the setup image and modified hip from Mestela Hope that is ok.
Edited by pablo_lukaszewicz - Feb. 28, 2024 07:54:32

Attachments:
karma_answer.png (771.0 KB)
lops_baking_2objects.hip (761.9 KB)

User Avatar
Member
1 posts
Joined: May 2020
Offline
nimbus_hipthrust
mestela
I got this going back on the alpha with some hints (ok, a LOT of hints) from Mark Elendt.

It's fiddly, but it works:

https://www.tokeru.com/cgwiki/HoudiniLops#Texture_baking_with_Karma [www.tokeru.com]

Thank you so much for this helpful post. I can't wait to start some baking in my karma OVEN!

Updating the link since tokeru.com moved to Vitepress:
https://tokeru.com/cgwiki/HoudiniLops.html#texture_baking_with_karma [tokeru.com]

Thanks everyone!
  • Quick Links