Page 1 of 1

Write a text on a model (.NET)

Posted: Sun Mar 05, 2006 1:21 pm
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?

Posted: Mon Mar 06, 2006 8:26 am
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.