I'm need to programmatically generate box UVW maps in 3D-models, similar to how UVW Map -> Box
works in 3ds Max.
Example with box UV, what I'm after
I've tried javascript-based solutions such as this or this, but it seems to give various results depending on if the mesh/geometry is merged or if it already has any built in UV. Or it has different directions.
Applying box UV-map via Blender or 3ds Max to the same 3D-model always gives perfect results though.
Best case scenario would be a command line tool, similar to how gltf-pipeline works:
generate-box-map -i model.gltf -type box -size 50
I've found tools/projects such as PyMeshLab, Meshmatic, or running a Blender instance and attempting to do it via python, but I couldn't find a solution. Perhaps there's a native/easier way of doing this?
Via Active questions tagged javascript - Stack Overflow https://ift.tt/dhNjQMu
Comments
Post a Comment