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

Can the Painting be exported as a 3d model(.stl, .obj) #5

Open
ayushtamra opened this issue Dec 3, 2021 · 1 comment
Open

Can the Painting be exported as a 3d model(.stl, .obj) #5

ayushtamra opened this issue Dec 3, 2021 · 1 comment

Comments

@ayushtamra
Copy link

Hello Nick!
I have tried looking at the code of this resource project, and learning so many things with this project, I have a particular doubt, Can I export the drawing as .stl or .obj file?
As a beginner I am just trying to figure out things in this project,
While saving the file the the SavePainting() function of program.cs is called which then further calls the ToFileData() function of Painting.cs is called which then further calls LinePointToString() function which is particularly defined to store each line point with a particular string in a defined format, and that file gets saved basically with that series of strings, While loading the saved file with the LoadPainting() this encoded strings are decoded in accordingly in the painting.cs and then further assigned to the painting.cs object and then the painting is again formed or loaded, correct me if I am wrong.

I am making a stereokit project related to this in which I can basically if possible export the drawings in a 3d model or 2D image of the drawing, is it possible
Thanks!

@maluoi
Copy link
Collaborator

maluoi commented Dec 4, 2021

It's certainly possible! But not built-in. "Lines" in StereoKit are "special effect" type visuals, not geometry, and don't necessarily transfer well from one application to the next. You could certainly interpret it in some particular way, and export that data.

StereoKit also doesn't currently have much in the way of format export functionality built-in. So while writing an .stl or .obj can be fairly simple, you'd still have to do that part yourself!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants