Jump to content

Recommended Posts

Posted

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?

Posted

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.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Posted

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));

Posted

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.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Posted

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 :)

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...