How the stylus grab things in openGL???
Ask a Question
Jul 19, 2017
Now I'm rendering a simple cube by openGL in zspace,but how can I use the stylus to grab,translate,scale the cube like in Unity.
Jul 27, 2017
Hello there. We don't have any sample code to demonstrate stylus grabs directly from the native SDK, like we do in Unity3D. OpenGL and the SDK don't supply the prerequisite functionality such as detecting where a ray vector is intersecting meshes in the scene. This would be the job of your chosen 3d engine/framework such as Unity3D, Ogre3D, Open Scene Graph, or even your own engine written from scratch. Despite this, the sample provided in Unity3D would still be a good frame of reference for how to grab objects regardless of the underlying engine.
to add a comment.
to answer this question.