petrbroz / svf-utils

Utilities for working with the SVF file format used by Autodesk Platform Services.
https://petrbroz.github.io/svf-utils/
MIT License
127 stars 55 forks source link

Texture Mapping & Materials issues #37

Closed alitehami closed 2 years ago

alitehami commented 3 years ago

Hello @petrbroz,

First Thank you for this great utility.

I am having issues maintaining the texture mapping of the converted models.

Here is a sample model scenario for a demo of the issue

The original model is a 3dm rhino model: image

glTF Textured model with Box Texture Mapping (converted from Rhino3d to glTF): image

Checker map of the above: image

3dm > translated to svf: if I convert the model with the forge-convert-utils from the svf version (converted via BIM360 upload) > the texture images get dropped, and the texture mapping scale seems to be getting changed:

No texture mapping once converted to glTF: image

and the Material Name gets lost too: image

note:

attached are the rhino model, rhino-converted glTF model, and the forge-converted glTF model: Box_Texture Mapping_forge-convert-utils_millimeter.zip

petrbroz commented 3 years ago

Thanks Ali! I just tried running the 3DM file through the Forge Model Derivative service, and it seems that the textures and UV coords are already dropped during the conversion into SVF:

Screen Shot 2021-07-19 at 4 31 32 PM

So I'm afraid there's not much I can do on the SVF-to-glTF side :/

Since it's looking like an issue with the Model Derivative service's support for Rhino files, I'd suggest that you send an official bug report to forge (dot) help (at) autodesk (dot) com (including the sample 3DM file if possible).

alitehami commented 3 years ago

Thanks for your reply @petrbroz , much appreciate you testing the files. I've sent an email reporting the bug.