hi there,
I’m currently trying to figure out how to properly export meshes and SubD to any file format with the correct texture coordinates. Why you ask? I’d like to do modeling in Rhino, then be able to export the geometry to other DCC apps for rendering, animation, that kind of stuff.
There are a few issues I cam across:
1. Split texture coordinates / UV islands
- Create a 2x2 mesh plane
- Use the
Unwrap
command withUnweldSeams=No
and select two seams in the middle, either horizontal or vertical to split the UVs. - Open the
UVEditor
and scale one of the two mesh islands
You should end up with something like this:
I’ve tried exporting this to obj, fbx, usd and some other formats without success. Opening this in e.g. blender will result in this:
The file is only exported with one value per vertex for the texture coordinate and doesn’t export discontinuous texture coordinates. The file formats support this. Also tested with exports from other software, where this isn’t an issue.
2. Export of SubD
- Simply use
ToSubD
on the above mesh
FBX and USD support subdivision in the file format, however the exporters in Rhino both convert/mesh them to a mesh with a certain subdivision level (option during export).
It would be great if SubDs would be exported as such to these formats as best as possible. This keeps file sizes small and allows for further edits in other apps without having to manipulate a dense mesh.
The OBJ exporter has an option to export the control cage, but that doesn’t export texture coordinates. Which brings me to the next point.
3. Texture Coordinates for SubDs
First of, lets try the mesh from point 2.
FBX to blender:
USD to blender, huh?:
Now lets run the Unwrap
command on this again in Rhino to get here:
USD or FBX to blender:
Cool, so something works, but as mentioned in 2. this is a mesh, not a SubD.
4. SubD Creases
Now I haven’t tested anything here yet, as I havend’t found a way to export SubDs as such. However, I want to mention it here as well.
It would be great to be able to export SubDs with creases as well. In my experience, this is usually done as some kind of vertex map.
I know, that there is some room for interpretation with SubDs and different apps implement some parts differently. Nevertheless, it would be great to be able to export this information somehow to get it out of Rhino. I believe, that there will always be problems with export/import in 3D software, but as long as the information is all there, the rest can be covered with scripts before or after import/export.
I appreciate any help and pointers. Let me know if something is wrong, I’ve been exporting/importing way to much today, mistakes may have snuck in.
Also curious to see how you may be dealing with this.
Thanks,
Bernd
Edit: this is on Rhino 8.2.23346.13001