如何在android中检测3d模型的触摸事件
我是 android 3d opengl 的新手。我在谷歌上搜索并获得了用于实现 3d 模型和动画 3d 模型的示例代码。现在我对触摸事件感到震惊。我刚刚将 3D 模型加载到屏幕中,当我触摸屏幕时,触摸事件被触发并用它执行该过程,但我需要触摸特定模型而不是整个屏幕。任何人都可以建议触摸事件的解决方案或任何相关文章。
我还尝试了 TouchRotateActivity 中触摸事件的 API 演示,但这就像触摸屏幕而不是屏幕中的模型。
I am new to android 3d opengl. i have googled and got a sample code for implementing 3d models and animating the 3d models. Now i am struck with the touch events. I just loaded the 3d models into the screen and when i touch the screen Touch event was triggered and do the process with it but i need to touch the particular model not the entire screen. can any one please suggest the solution or any related article for touch event.
I am also tried API Demos for touch event which is in TouchRotateActivity but that is like touching the screen not the model which is in screen.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论