Jump to content
hanjie94

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

Share this post


Link to post
Share on other sites

right click the last node ----------->save------>texture uv to image.

Share this post


Link to post
Share on other sites
31 minutes ago, ejr32123 said:

right click the last node ----------->save------>texture uv to image.

 

6 hours ago, hanjie94 said:

There are more than 100 thousands of such object that I will be doing

 

^_^

  • Haha 1

Share this post


Link to post
Share on other sites

guess he better get started now then : )  Haha, I didn't see the text at the bottom of the image.

Share this post


Link to post
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 2

Share this post


Link to post
Share on other sites
vector pos_tex = set(X, Y, 0.0);
vector geo_clr = uvsample(geo, 'Cd', 'uv', pos_tex);
assign(R, G, B, geo_color);

konstantin magnus thanks a bunch! 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×