Page 1 of 2

unroll texture

Posted: Tue Nov 18, 2014 8:49 am
by julesf
Hi,

I have a textured mesh (geological core) that I wish to unroll.
The tool Projection/Unroll works well for point cloud, but produce weird result when unrolling a mesh or a textured mesh.
Is there any tip I am missing here?

thanks in advance,
Jules

Re: unroll texture

Posted: Tue Nov 18, 2014 9:17 am
by daniel
Nope, you are not missing anything: this tool doesn't work with meshes ;).

If it's only for visual rendering, you could sample a huge number of points on the mesh (with 'Edit > Mesh > Sample points') then apply the unroll feature.

Of course it's also possible to update the code so as to make it work with meshes...

Re: unroll texture

Posted: Tue Nov 18, 2014 9:29 am
by julesf
thanks very much for the quick answer,

I don't feel ready to code this function but I'll try your suggestion with big amount of point and remeshing.
Our goal is to make visual interpretation, and if possible image processing, on the unrolled core (fossils, fractures, facies, ...), thus we need the full quality images such as produced with a texture.

Jules

Re: unroll texture

Posted: Tue Nov 18, 2014 10:52 am
by BuBu
I dont understand.......

I unroll meshes with texture and it works very well.....

Why you say it only work with points? For me it works with textured meshes.


BuBu

Re: unroll texture

Posted: Tue Nov 18, 2014 4:47 pm
by julesf
so maybe images are clearer to explain what I obtain :

original mesh with texture :
core1.jpg
core1.jpg (19.76 KiB) Viewed 9320 times
unrolling previous data with cylinder gives :
core1_meshtexture_unrolled.jpg
core1_meshtexture_unrolled.jpg (44.87 KiB) Viewed 9320 times
observe the strange horizontal lines in the left and bottom part of the image
I precise that I tried with different radius for cylinder thinking it was a probleme of intersection the mesh with the cylinder, but it doesn't help

unrolling only the point cloud and remeshing gives :
core1_cloud_unroll_remeshed.jpg
core1_cloud_unroll_remeshed.jpg (42.32 KiB) Viewed 9320 times
The geometry is OK, but the image quality is poorer

Re: unroll texture

Posted: Tue Nov 18, 2014 7:59 pm
by daniel
I confirm that meshes are not handled properly when their vertices are unrolled (especially because some triangles are torn apart from one side to the other). It can only work in some very specific cases (if the mesh is opened and you are lucky).

Otherwise, if you only unroll the vertices or if you use two few sample points (and remesh) I don't think it will be very clean indeed. I was more thinking about sampling a huge number of points (i.e. 50 or 100 M) and then using the unrolled cloud "as is" so as to avoid any visual artifact. But of course it can only work for display.

Re: unroll texture

Posted: Wed Nov 19, 2014 7:43 am
by BuBu
OK, my meshes are not closed, they are open...

In some cases the results have been better if i rotate the mesh 90 degrees and then unroll to axis x

Bubu

Re: unroll texture

Posted: Thu Nov 20, 2014 12:21 pm
by julesf
From your posts I got ideas and I found a trick that does the job. You need to cut a vertical band of the core (cylinder) in order to unclose the mesh. The location of the cut is important, so make different tries to find the good one.
For our needs this will be good enough even if it's a little tricky.

Here are screenshots of the cutted core and the unrolled result.
p4a_cut_3.jpg
p4a_cut_3.jpg (27.67 KiB) Viewed 9312 times
p4a_cut_2.jpg
p4a_cut_2.jpg (48 KiB) Viewed 9312 times
p4a_cut_1.jpg
p4a_cut_1.jpg (23.37 KiB) Viewed 9312 times

Re: unroll texture

Posted: Thu Nov 20, 2014 12:44 pm
by daniel
Good idea! I hope that's not an important part though ;)

Re: unroll texture

Posted: Mon Jul 31, 2023 5:17 am
by zvyozdo4ka
How did you manage to do that? Is there any manual or instructions to succeed that?