Jump to content

How to export uv texture as an image file?


Recommended Posts

Dear Houdini community friends, I am trying to export the uv texture of an object (image 1) as an image file (image 2). 

Image 1 (the object):
5e257837b7493_image1.PNG.505a769565a7cc852e6e424530ce48a8.PNG

Image 2 (what I want):
5e257842489e2_image2.PNG.2bae4ebd8a3c46428aad73d3e9a0029a.PNG


The object was created in Houdini, so perhaps the geometry type (polygon / mesh) is not the type that could be easily baked using Maps Baker for example. I followed several tutorials but nothing gets exported. There are more than 100 thousands of such object that I will be doing it in TOPs if possible. Please point me in the right direction. Thanks for the help!
 

test_export_textures_ask_in_forum.hipnc

Link to comment
Share on other sites

Seriously though, to bake point colors onto a UV texture, set a string parameter to your geometry and put these lines into a COP snippet.

vector pos_tex = set(X, Y, 0.0);
vector geo_clr = uvsample(geo, 'Cd', 'uv', pos_tex);
assign(R, G, B, geo_clr);

baking.thumb.jpg.b48355429962daed3cca0755b66f019c.jpg

baking.hipnc

Edited by konstantin magnus
  • Like 6
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...