Jump to content

[SOLVED] Rendering text on to a 3D surface


photo

Recommended Posts

I'm trying to create a dynamic sign inside the Unigine world which has text that needs updated as the simulation progresses. However I can't seem to figure out the correct approach for this.

 

I see I can use a WidgetCanvas or WidgetFlash to render 2D text overlays but I can't see how to render text on to a 3D surface.

Link to comment

If you need fully dynamic text output you have to render the text to texture and apply this texture via some material to the 3D mesh surface. This might be quite tedious.

 

If you have just a limited set of text output variants you could create a texture atlas with all different text outputs in some image editor offline and assign this texture atlas to the surface material. Dynamic selection of the required text variant then can be done by a very simple update of the material texture coordinate transform offset/scaling values.

Link to comment
×
×
  • Create New...