Text on a VIEW Render Target?

Posted By: Dooley

Text on a VIEW Render Target? - 10/29/19 00:56

I have scoured the manual, the forum and as many AUM installments as I can looking to find out if it's possible to have text display on an in-game bitmap used as a render target for a VIEW.

Similar to how weapon ammo was displayed on the weapons in Doom 3:
[Linked Image]

So far, this seems to be the only thing remotely similar to what I'm looking for:

AUM Volume 38 - Code Snippets - Editable text
This creates text in your 3d level using particles

Before I delve into this script, which seems very complex to me, I am wondering if I am maybe just missing something. This seems like something that should not be that difficult, I think. Does anyone know if there is an easier way to do this?
Posted By: Ayumi

Re: Text on a VIEW Render Target? - 10/29/19 07:09

You need a TEXT or PANEL Object and use the target_map Pointer or bmap Pointer (View)

Code
BMAP* bmap = bmap_for_entity(yourEntityPointer, SkinNumber);
TEXT* txt = txt_create(….);

txt.target_map = bmap;
view.bmap = bmap;


EDIT: Or Draw_obj… and bmap_rendertarget
Posted By: Dooley

Re: Text on a VIEW Render Target? - 10/30/19 02:56

Thanks for this!
© 2024 lite-C Forums