cnr-isti-vclab / meshlab

The open source mesh processing system
http://www.meshlab.net
GNU General Public License v3.0
4.73k stars 822 forks source link

U3D File Missing When Exporting #228

Closed Facity closed 6 years ago

Facity commented 6 years ago

Hi

I'm trying to export out my mesh/object/render whatever you want to call it into .U3D so I can insert them into PDF documents.

Whenever I go to export my item to .u3d (importing as .x3d from Blender) I am only getting a .tex file, I have used to work around fix from #33, and I can get a u3d when I untick "TexCoords" in the wedge tab when exporting, but then my item is missing the texture I need it to have when placing it into the PDF.

Anyone had a similar issue to this and can help? it's driving me crazy.

EDIT: Tried mulitple versions of Meshlab and it will only output a .tex file with no .U3D to put into a PDF. Could it possible be an issue with how i've created the object in blender?

I can upload my blend file if it makes it easier.

GrahamDi commented 6 years ago

Hi,

I am having exactly the same problem...the only way I can get a .u3d file is by unchecking the TexCoords box. My model was imported as a .dae file from Sketchup so Blender is not part of the problem.

Facity commented 6 years ago

It's very frustrating as it's putting a halt on the project i'm currently working on. I can get files too by unticking TexCoords, but I need that so my texture is placed. :<

Facity commented 6 years ago

Hi can someone please acknolwedge they've even looked at this thread? It's very dishearteneing to see replies on other threads and nothing here. This a legit issue with your software I'm having.

Thanks

mcallieri commented 6 years ago

Hi. Sorry, but we have various things going on, and it's not always possible to answer all questions. If I immediately know the answer, I immediately answer. In this case, I have no idea why the exporter is failing, but seems to me there may be an error when managing the texture, since when you de-select it it works. Can we have a file to test? Just as a test, try this

Facity commented 6 years ago

EDIT: Saving it as a .ply from meshlab, and re importing it in worked!

Thank you!

mcallieri commented 6 years ago

On 30/10/2017 11:15, Facity wrote:

Hi,

Please see attached, when I export as .ply and bring that into meshlab there is no colour at all, just a grey mesh. Fidget_Cube.zip https://github.com/cnr-isti-vclab/meshlab/files/1426766/Fidget_Cube.zip

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cnr-isti-vclab/meshlab/issues/228#issuecomment-340400907, or mute the thread https://github.com/notifications/unsubscribe-auth/AL1ZNXWBtA3LKPFX7gidLCckBhl5VuRtks5sxaHWgaJpZM4P9jTL.

The problem is PLY format does not support "materials" in the sense Blender does. The Blender PLY exporter only manages vertex colors.

Importing/exporting materials is always critical, and causes issues, no matter which tool are you using. Believe me, I work with multiple modeling tools and 3d tools :) geoemetry is easy, appearance is a hell.

When you have mutiple materials, OBJ, DAE and, in soe cases, VRML, may work better, to pass data from one app to another.

Unfortuantely, there is not a precise recipe.... more like trial/error