Karma - Texture Baking

   4422   9   1
User Avatar
Member
162 posts
Joined: 11月 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
8784 posts
Joined: 7月 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
1798 posts
Joined: 5月 2006
Offline
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: 11月 2016
Offline
Wow that's it, thanks a lot for sharing it @mestela, cheers!
User Avatar
Member
7 posts
Joined: 12月 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
8041 posts
Joined: 9月 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: 2月 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: 10月 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 - 2024年2月22日 11:02:46
--
Jobless
User Avatar
Member
7 posts
Joined: 12月 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
7 posts
Joined: 12月 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 - 2024年2月28日 07:54:32

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

  • Quick Links