Jump to content
nuki

UV Flatten distorted plane

Recommended Posts

I am trying to generate nice, relaxed UVs for a distorted grid object. Ideally I would want to simply relax the initially generated UVs after distorting it but all the tools available seem to be focused on generating new UVs altogether. Having never done this kind of thing in Houdini I also struggle to understand how I could procedurally constraint eg. the outline of the grid to a square or all the points with @P.x==0 to a straight line.

uvproject.PNG

UVs pre distortion

uvflatten.PNG

UVLayout post distortion

mayaUV.PNG

Quickly generated UVs in maya to outline what I'm after

river_UV.hip

Edited by nuki

Share this post


Link to post
Share on other sites

Smoothing geometry may help a bit. It will leave UVs straightened and tileable and reduce interpolation zigzags. It will also help UV Flatten to output proper geometry without such big distortion.

Also you may try Delta Mush, it may simulate results you need. Swap UV with P, then apply DM on straightened UVs using UV Flatten output as a second input:

delta_mush_uv.png.67d72caa88cac49f80f73ca729b8faf8.png

delta_mush_uv.hipnc

  • Like 2

Share this post


Link to post
Share on other sites

thank you a lot, the delta mush method works great! Smoothing the mesh aggressively before flattening and then copy overthe uvs to the original seems to work fine as well.

Share this post


Link to post
Share on other sites
Posted (edited)

I am reviving this thread because I am dealing with a similar problem, except that my model has several UV islands instead of one big island like the example above. The DeltaMush approach did not work for me beacuse of the UV islands. DeltaMush needs point attributes. When converting the UV attribute from vertices to points I lose the UV islands because of the connectivity of the points at the edges of the vertex islands.

What I want to achieve is the following:
1. create an initial UV layout with several uv islands (UV Flatten)
2. deform the geometry
3. relax the initial UVs to compensate for the distorted geometry from step 2

I am struggling to make the above DeltaMush approach work with UV islands. Any ideas?
Maybe someone has a completely different idea how to relax the UVs after the geometry deformation. My geometry is only deforming slightly. I am looking for a way to match the edge lengths/primitive areas of the UVs with the new (deformed) edge lengths/primitive areas of my mesh.

 

Edited by a41b

Share this post


Link to post
Share on other sites

I have posted a RFE which is now implemented. Thanks SideFX :D

UV Relaxation of existing UV islands is now a feature of the UV Flatten node when "Preserve Seams" and "Preserve Layout" is turned on in Houdini 17.5.319.

  • Like 2

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

×