Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OFF Export Texture (UV) Coordinates #3324

Closed
stuartmscott opened this issue May 22, 2020 · 3 comments
Closed

OFF Export Texture (UV) Coordinates #3324

stuartmscott opened this issue May 22, 2020 · 3 comments

Comments

@stuartmscott
Copy link

stuartmscott commented May 22, 2020

Hey all,

I've been using OpenSCAD for a while now to generate 3D models which I export as .off files to be rendered in OpenGL, and this has worked really well!

I would now like to texture these meshes, and while the .off file format supports texture coordinates, OpenSCAD does not export this information.

Relevant File: https://github.com/openscad/openscad/blob/master/src/export_off.cc#L85

Would this be something OpenSCAD would consider supporting in future?

Thanks for your time


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@t-paul
Copy link
Member

t-paul commented May 22, 2020

Can you explain a little bit more in detail how that would be described in the model. So far I've seen UV unwrapping in Blender which is a very manual process, so I'm not sure that would even be usable for simple models without additional input.

@stuartmscott
Copy link
Author

Hey t-paul,

Like you, I have used Blender's UV unwrapping to get this information before, but I switched to OpenSCAD because I was able to express ideas more easily/concisely in code, than point+click+drag.

how that would be described in the model

By model do you mean the *.scad file, or OpenSCAD's internal representation of the object?

I had envisioned this being only calculated when the object is exported, but you're right that there may be situations where the algorithm may not produce optimal results and therefore the manual processing you mentioned would be needed. But at this point I would be happy if OpenSCAD gave it a good attempt and I cleaned up the .off myself - tedious, but preferable to switching back to Blender.

@kintel
Copy link
Member

kintel commented Mar 31, 2024

Closing as not feasible

@kintel kintel closed this as completed Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants