   RTS like health bars
  Hi,This morning I thought that rendering a healthbox for RTS buildings and units was quite easy. I had it working in no time. Except.. it doesn't work correctly when the camera moves around.I assume that the healthbar needs to be scaled. Otherwise, when zoomed out, the healthbar will be HUGE compared to the building/actor. So, my idea is:-Get position of object and use D3DXVec3Project. This works OK.-Get boundingbox min(xyz), and max(xyz) of the object, transform both using D3DXVec3Project, subtract them (with abs infront) and use that as size.The problem is that, when the camera moves around, the size does not stay constant. It should scale when zooming out (or in), but when rotating around, it should ofcourse stay the same!Here are a few screenshots of the situation (emphasis on the fact that this is just a standard progressbar image!):Right now I can just use my GUI interface. I do not really want to resort to an extra batch of TL vertices which I need to render seperately. A 3D box doesn't look all too well either I think. Makes it a bit chaotic I think.D3DXVec3Project(&vScreenCoords, &vPosition, &vPort, &oCamera->GetProjectionMatrix(), &oCamera->GetViewMatrix(), &App->matIdentity);//////Get the size of the box, also using unproject:D3DXVec3Project(&vExtends1, &vExtends1, &vPort, &oCamera->GetProjectionMatrix(), &oCamera->GetViewMatrix(), &App->matIdentity);D3DXVec3Project(&vExtends2, &vExtends2, &vPort, &oCamera->GetProjectionMatrix(), &oCamera->GetViewMatrix(), &App->matIdentity);IS the way how I'm using the Project function. I'm out of ideas. Unfortunately, I haven't played RTS for a long time (the last one being Red Alert 1), so I'm no even sure if the 3D RTS's actually scale their health bars. But I think they have to, for the scaling problem?   
  i didnt read your code but simple billboard will solve your problem.You want to render your scene, disable depth testing and render these progress bars as bilboards.They will scale like normal world object but will always be facing you!Warcraft 3 uses this effect for all its 2d effects, example is the human arcane shop, those spheres moving around!;  Hm, I tried it, and it works quite well :). Shame I can't use my GUI library, but oh well :). Thanks! :)   