Yue Posted November 14, 2019 Posted November 14, 2019 How can I put a label on top of the box but in 3D? Quote Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games
gamecreator Posted November 14, 2019 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
Yue Posted November 14, 2019 Author 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 Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games
Yue Posted November 14, 2019 Author Posted November 14, 2019 Sample... Quote Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games
Solution gamecreator Posted November 14, 2019 Solution 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
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.