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

How to make this VisualStudio project become a Unity project? #9

Open
Hanning-Liu opened this issue Mar 13, 2024 · 6 comments
Open

Comments

@Hanning-Liu
Copy link

No description provided.

@maluoi
Copy link
Collaborator

maluoi commented Mar 13, 2024

StereoKit is an alternative to Unity. Porting an app to and from StereoKit / Unity would require knowledge of both engines, and a good chunk of re-architecting.

@Hanning-Liu
Copy link
Author

Thank you for your reply! I'm considering adding a feature to the StereoKit Ink APP that would allow importing 3D models for painting.
I think it's really hard to do AR/VR development without a GUI like Unity. So are you seriously speaking of “StereoKit is an alternative to Unity.”?

@maluoi
Copy link
Collaborator

maluoi commented Mar 14, 2024

Sounds cool! :)

StereoKit's objectives and motivations are different from Unity, but it is still a serious alternative to those who jive with it :)

My personal experience with Unity was that on all the projects I worked on, I would always build custom editors. The scene editor GUI was not a good experience for most of the tasks I needed to do, and the code architecture was very opinionated in a direction that encouraged bad programming practices.

StereoKit makes it very easy to build custom editors, and design an architecture that is right for your specific application. I design SK's API with the idea in mind that it's the UX of the engine, and that makes the code API a pretty nice experience. It does mean that designers who can't code may need to pair with a programmer to get designer friendly tools for the project, but that's not unusual, just a little extra necessary here.

@Hanning-Liu
Copy link
Author

Hanning-Liu commented Mar 16, 2024

Hi maluoi!
I'm tring to do some AR sketch work just as the video I uploaded.
https://github.com/StereoKit/StereoKit-PaintTutorial/assets/42676581/38bece8b-8ccd-43c7-bd16-96c80e8eb637

And I tried to import a .glb model case1.zip to the Ink APP and the snapshot of the code change I made is below. But the app will crash as long as I open it on my HoloLens 2.
image
Do you know the possible reason or solution to this model import problem? Thank you in advance!

@maluoi
Copy link
Collaborator

maluoi commented Mar 16, 2024

StereoKit uses an asset folder prefix to help smooth out differences between platforms. You should call FromFile with just the "Assets/" folder relative name, so: Model.FromFile("case1.glb")

You should also be able to see messages about this in the debug output window :)

@Hanning-Liu
Copy link
Author

Hanning-Liu commented Mar 17, 2024

Thank you maluoi, I deployed this app to HoloLens 2 without debuging yesterday. 🤦‍♂️
I will give it a try after my recent rush time!
I also find an alternative choice which is a Unity hand drawing project https://github.com/mertusta1996/Drawer-Hololens2-Unity
This is a draft level project but I added the feature of outputing the point list to a txt file. It can solve my pressing needs for now.

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