How do I make 3D HUD?

Not favoritedFavorited Favorited 0 favourites
  • 5 posts
From the Asset Store
A game with 3D terrain, realistic water and various 3D objects.
  • Hello community! Can't figure how to do 3D health bars for my project. What want to achieve is simple health bar over rival cars that is tracking their location on screen but isn't changing their size no matter the distance off camera. Bars will use sprite animations and formula to display frame to not overcomplex events. Here is rude artistic represantation of what want

  • Hi do you wish in real 3d or is it pseudo 3d?

    If you have real 3D, you can attach a 3D object above the car object and change its width depending on the lives and this object should always be turned to the camera.

    But maybe I didn't understand the question.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi do you wish in real 3d or is it pseudo 3d?

    If you have real 3D, you can attach a 3D object above the car object and change its width depending on the lives and this object should always be turned to the camera.

    But maybe I didn't understand the question.

    It suppose to be 2D object in 3D space. Something like if camera certain distance away off rival object the bar appears. But it takes same amount of space on screen no matter how rival is close or far. As for example rival is about 250 pixels away from camera and health bar takes about 8x50 size sprite on screen even if distance off camera and rival is just 25 pixels bar still has 8x50 size. Like bar shouldn't scaling based on distance of objects

  • It suppose to be 2D object in 3D space. ...

    If it's a real 3D then everything is simple, you don't even need any calculations, Construct3 will do it all by itself.

    You just need to put the image of the health bar progress bar in the 3D object and attach it above the players and keep it turned to the camera, and the width of this object will show the number of lives.

  • Just put the bar into new UI layer and make sure the layer's attribute rendering mode is set to 2D.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)