How the stylus grab things in openGL???
Ask a Question
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.
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.