Help: Importing from Solidworks using Meshlab

Generic forum to discuss Octane Render, post ideas and suggest improvements.
Forum rules
Please add your OS and Hardware Configuration in your signature, it makes it easier for us to help you analyze problems. Example: Win 7 64 | Geforce GTX680 | i7 3770 | 16GB
Post Reply
gthrash
Licensed Customer
Posts: 3
Joined: Sat May 15, 2010 7:45 pm

Hi -

I am trying to import a model from Solidworks using Meshlab. I can export a .STL file from SW, and then open it with Meshlab and export an OBJ file, which I can then open in Octane. The issue I am having is that when the OBJ is opened in Octane, it's coming in as one monolithic part? So when I try to change the materials on what were many individual parts in SW, it's changing the material on everything in the entire scene. Do I have to export and import every part individually? Or is there some setting I need to adjust in Meshlab to change the output file? It doesn't seem to be offering me any options for the export.

Thanks!
Greg
Windows XP64 / Xeon E5520 @ 2.26Ghz / 12GB RAM / Quadro FX 3800
User avatar
radiance
Posts: 7633
Joined: Wed Oct 21, 2009 2:33 pm

I never used meshlab... does it have obj export options for materials ?
Do the materials (colours) actually show up in meshlab after importing cad file ?
If they do, maybe post a screenshot of the export options so i can have a look.

Radiance
Win 7 x64 & ubuntu | 2x GTX480 | Quad 2.66GHz | 8GB
gthrash
Licensed Customer
Posts: 3
Joined: Sat May 15, 2010 7:45 pm

Hi.. I am exporting an STL file from Solidworks, which may be part of the problem. It looks like the STL format doesn't store any texture information.

When the export dialog box comes up for the files I'm working with, most of the options are greyed out.

Image

I was sort of hoping someone else was using this workflow successfully.. it was suggested somewhere else in the forum.

- Greg
Windows XP64 / Xeon E5520 @ 2.26Ghz / 12GB RAM / Quadro FX 3800
gristle
Licensed Customer
Posts: 304
Joined: Wed Jan 20, 2010 10:42 am
Location: Wellington
Contact:

I wont be near a machine with SW on it till Wed; what other mesh formats has it got? No OBJ I am assuming seeing this is on the market.

http://www.sycode.com/products/obj_export_sw/

Quite expensive for an OBJ exporter.
Win 10. Threadripper 1920X 32gb Ram GTX 1080Ti GTX 980Ti 2xGTX 780
http://ajdesignstudio.co.nz/
ycarry
Licensed Customer
Posts: 202
Joined: Thu Feb 04, 2010 7:55 pm
Location: France

Hmmm... do not know Meshlab
but if you open .stl file made from different objects in
Wings3D (free excellent subdivision modeler :P ),
select stl imported unique object and separate parts by 'body/separate'
then choose material for each and export as .obj
8-)

(send me your stl file by pm, ill try to show you how do)
User avatar
radiance
Posts: 7633
Joined: Wed Oct 21, 2009 2:33 pm

I think STL does'nt carry materials, only polygons.
you'll have to find another intermediate format that supports materials (even basic colours assigned is enough)

Radiance
Win 7 x64 & ubuntu | 2x GTX480 | Quad 2.66GHz | 8GB
gthrash
Licensed Customer
Posts: 3
Joined: Sat May 15, 2010 7:45 pm

Thanks for the help guys! There is actually a SW2009 "labs" plugin that performs collada export, but unfortunately it doesn't work with the SP3.1 that I have installed.. grr. The only other meshed format that SW deals with is VRML, and meshlab is crashing when I try to open the vrml files I create in SW.

I will give the wings3d a shot.. The single material renders I have done so far look great! :D I'm pretty excited about octane.. just need a good workflow for getting sw models in there.
Windows XP64 / Xeon E5520 @ 2.26Ghz / 12GB RAM / Quadro FX 3800
ID Guy
Licensed Customer
Posts: 4
Joined: Sun May 30, 2010 3:06 pm

Gthrash,

I highly recommend moi3d for opening up your solidworks models in and saving out an .obj Moi can import iges, step, or .sat from solidworks. There is a free demo to try on their site http://moi3d.com/

I am using solidworks 2010 sp3, and the collada export works, but it looks like collada import is not working yet in beta 2.2. It says in the SW lab info that works with 2008 sp5.0 or later http://labs.solidworks.com/Products/Pro ... ladaexport so it should work if you are using 2009.

Radiance do you have a timeline on when collada files can be imported? This will make getting my solidworks models into octane much easier. Also is there any plan in the future for octoane to open obj/collada files and recognize separate meshes that do not have any materials on them? Right now the only way seems to be put a material on everything in the native app. It would be a big timesaver if octane can just open the file and see all the separate mesh "bodies" regardless of materials. Thanks in advance for any info on this.
User avatar
radiance
Posts: 7633
Joined: Wed Oct 21, 2009 2:33 pm

ID Guy wrote:Gthrash,

I highly recommend moi3d for opening up your solidworks models in and saving out an .obj Moi can import iges, step, or .sat from solidworks. There is a free demo to try on their site http://moi3d.com/

I am using solidworks 2010 sp3, and the collada export works, but it looks like collada import is not working yet in beta 2.2. It says in the SW lab info that works with 2008 sp5.0 or later http://labs.solidworks.com/Products/Pro ... ladaexport so it should work if you are using 2009.

Radiance do you have a timeline on when collada files can be imported? This will make getting my solidworks models into octane much easier. Also is there any plan in the future for octoane to open obj/collada files and recognize separate meshes that do not have any materials on them? Right now the only way seems to be put a material on everything in the native app. It would be a big timesaver if octane can just open the file and see all the separate mesh "bodies" regardless of materials. Thanks in advance for any info on this.
Hi, we're working on collada, it will be in beta3, the one following the next 2.3

Radiance
Win 7 x64 & ubuntu | 2x GTX480 | Quad 2.66GHz | 8GB
ID Guy
Licensed Customer
Posts: 4
Joined: Sun May 30, 2010 3:06 pm

Hi, we're working on collada, it will be in beta3, the one following the next 2.3

Radiance
Awesome news on Collada import. Is there any chance the obj import and collada import will recongnize objects that are split up by geometry not just material in a future release. For example can I open an obj model of a car that has no materials applied, but is split into separate mesh bodies and add materials to those bodies in octane. The way it is set up now you have to put materials on in your main 3d application before going into octane which seems to be more work. With my workflow and am sure many others I like to model then bring it into the rendering package and apply materials only there. This method of worklow works pretty well for me now using solidworks to maxwell studio. Hope that makes sense what I am asking. By the way awesome software already in such a short time. The future for Octane looks very promising.
Post Reply

Return to “General Discussion”