Group Materials on Import.

Rhino 3D (Export script developed by SamPage; Integrated Plugin developed by Paul Kinnane)

Moderator: face_off

Post Reply
BillyRaygun
Licensed Customer
Posts: 66
Joined: Sat Aug 21, 2010 12:43 am
Contact:

Is there a way to consolidate objects with the same material? For example, I have 250 plus objects with the same material. When I import the model into Octane, it seems as a material node is created for each object. So I end up with 250 duplicates of the same material.

I'm using Rhino 4. Perhaps Rhino 5 export options solve this issue? Anyway, it's a bit overwhelming and very difficult to manage so many materials/objects when they all have the same materia

Regards,
Billy Raygun
Billy Raygun Design, Inc. | A Trade Show Agency | http://www.billyraygun.com
Windows 7 | 64-bit | 8gb | OctaneRender 1.024 beta2.46b CUDA 3.2 | NVIDIA 267.26
User avatar
Nostromo
Posts: 261
Joined: Thu Feb 18, 2010 5:13 pm
Location: Brussels
Contact:

/ Moved to the rhino plug-in forum /
User avatar
SamPage
Licensed Customer
Posts: 132
Joined: Mon May 10, 2010 8:56 pm
Location: Burbank, CA

BillyRaygun wrote:Is there a way to consolidate objects with the same material?

I'm using Rhino 4. Perhaps Rhino 5 export options solve this issue?
Yes, currently the plug-in uses the default Rhino OBJ exporter, V5 solves these issues. The plan is to have the plug-in use its own obj exporter to give more flexibility and be able to work around such issues. I'm not sure when I will have that completed however.

Sam
Win 7 64bit | 2x GTX 285 | i7 920 | ASUS P6T Deluxe | 12GB
BillyRaygun
Licensed Customer
Posts: 66
Joined: Sat Aug 21, 2010 12:43 am
Contact:

Thanks Sam! That is good news. I'll switch to the Rhino 5 beta when I know I'll be rendering with Octane.
Billy Raygun Design, Inc. | A Trade Show Agency | http://www.billyraygun.com
Windows 7 | 64-bit | 8gb | OctaneRender 1.024 beta2.46b CUDA 3.2 | NVIDIA 267.26
**STK**
Licensed Customer
Posts: 16
Joined: Sat May 29, 2010 12:04 am

Convert the nurb geometry with the same material into mesh. Then join all new mesh geometry into one object.Attach the material.Export with Octane

Have Fun!
Dual Xeon E5540 CPU 2.53 - 1x GTX470 - win7 64 -12GB ram
tom_holly
Licensed Customer
Posts: 24
Joined: Thu Feb 24, 2011 2:41 pm

I've uploaded a script to remove and sort the duplicate materials in MTL files when exporting OBJ files from Rhino 3D.

It works for Rhino 4. It may or may not work for other versions.

This is not fully tested, so use at your own risk.

You may post any bugs to me here: http://www.refractivesoftware.com/forum ... =41&t=7044

http://rhino-3d-obj-mtl-fix.zzl.org/

Cheers, Tom
AMD Athlon(tm) II X4 640 @ 3.0 HGz | 4.00 GB | Octane beta 2.44 | Rhino V4 SR9 | Windows Vista x64 | GTX 570
Post Reply

Return to “Rhinoceros 3D”