Rick Posted February 21, 2010 Share Posted February 21, 2010 So I want to have rising numbers that represent damage or healing above the heads of the units. Currently I use DrawText() with CameraUnproject(), but that doesn't work because I only do the CameraUnproject() once time so when I move the camera the text isn't draw correctly above the unit. Is there a way to do this where the text would be in 3D? I would assume http://www.leadwerks.com/wiki/index.php?title=Coronas but how do I put my numbers on this? Quote Link to comment Share on other sites More sharing options...
Canardia Posted February 21, 2010 Share Posted February 21, 2010 I would use Scene::AddNameTag(entity,"sometext") from gamelib, and make a modified version of it, as a class, where you can change the text in realtime. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Rick Posted February 21, 2010 Author Share Posted February 21, 2010 I was looking at that. Could I used Coronas for that instead of the plane you create? I don't know if something special needs to be in the mat for Coronas to work but I tried the below and I don't see it. TEntity cor = CreateCorona(); SetCoronaRadius(cor, 10, 20); PaintEntity(cor, LoadMaterial("abstract::RedIndicator.mat")); PositionEntity(cor, Vec3(0, 4, 0)); Quote Link to comment Share on other sites More sharing options...
Canardia Posted February 21, 2010 Share Posted February 21, 2010 I tried coronas and many other methods first also, but ended up with the current 3D plane method as it was the only way to get it working. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Rick Posted February 21, 2010 Author Share Posted February 21, 2010 Yeah, I think I'll just turn your name tag code into a class and use that. All the code is there already and I'll just use that. Thanks Lum! Quote Link to comment Share on other sites More sharing options...
Canardia Posted February 21, 2010 Share Posted February 21, 2010 I can then copy back your class to gamelib 0.1.0.0, if you make it free for registered LE users, because that's the way gamelib is a community project Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Rick Posted February 21, 2010 Author Share Posted February 21, 2010 Yeah, that's cool. I'll post it when I'm done. 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.