Yue Posted November 14, 2019 Share Posted November 14, 2019 How can I put a label on top of the box but in 3D? Quote Link to comment Share on other sites More sharing options...
gamecreator Posted November 14, 2019 Share Posted November 14, 2019 I'm not clear what you're looking to do. Are you trying to add a label to it by code, looking for the proper coordinates to position it? Or can you just add it by editing the model? 1 Quote Link to comment Share on other sites More sharing options...
Yue Posted November 14, 2019 Author Share Posted November 14, 2019 1 minute ago, gamecreator said: I'm not clear what you're looking to do. Are you trying to add a label to it by code, looking for the proper coordinates to position it? Or can you just add it by editing the model? I want to put a text on top of the box, which for example says "Food". And I want it to be seen from a certain distance but above the box. Quote Link to comment Share on other sites More sharing options...
Yue Posted November 14, 2019 Author Share Posted November 14, 2019 Sample... Quote Link to comment Share on other sites More sharing options...
Solution gamecreator Posted November 14, 2019 Solution Share Posted November 14, 2019 Oh, like a game HUD. I would do that with a combination of drawimage and drawtext and the function that gets screen coordinates from 3D coordinates. I forget its name and I can't find it in the docs right now. Edit: found it: camera->project() 1 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.