StereoKit-PaintTutorial icon indicating copy to clipboard operation
StereoKit-PaintTutorial copied to clipboard

How to make this VisualStudio project become a Unity project?

Open Hanning-Liu opened this issue 1 year ago • 6 comments

Hanning-Liu avatar Mar 13 '24 15:03 Hanning-Liu

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.

maluoi avatar Mar 13 '24 16:03 maluoi

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.”?

Hanning-Liu avatar Mar 14 '24 09:03 Hanning-Liu

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.

maluoi avatar Mar 14 '24 16:03 maluoi

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!

Hanning-Liu avatar Mar 16 '24 12:03 Hanning-Liu

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 :)

maluoi avatar Mar 16 '24 16:03 maluoi

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.

Hanning-Liu avatar Mar 17 '24 01:03 Hanning-Liu