Write a text on a model (.NET)

Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
Locked
Martins

Write a text on a model (.NET)

Post by Martins »

Hi!

I have a simple 3d model (box), and I need to write a numbers on it
(they will change frequently).

As I understand I have to create a ITexture with that text and apply on
the node. But the only way of creating a ITexture is via
IVideoDriver.GetTexture(string filename). That is I have to create
physical files and cannot create all in memory.

Does anyone know a better way of doing it in current .NET realisation?
Martins

Post by Martins »

I think I found a way to do it - I have to use render to texture feature.

Use IGUIFont.Draw() to draw 2D text into texture and the apply it. I have
yet to try what will I lose performance wise.
Locked