Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [Tier 1] How to place text in a 3D scene?

Author
Message
basicFanatic
7
Years of Service
User Offline
Joined: 7th Jun 2017
Location:
Posted: 5th Aug 2017 10:29
The text functions in AppGameKit are pretty advanced, but it looks like text is exclusively designed to be placed at an XY position in 2D space.

Is there a way to place a text object in 3D space, using XYZ coordinates? The only thing I can think of is using SetRenderToImage() to export the text to a image which I can place on the 3D scene, which seem a bit much.
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 5th Aug 2017 19:02 Edited at: 5th Aug 2017 19:05
There isn't an easy way of placing text in a 3d world
but you could place a texture with text on it to an object



if you wish to update the text I think you could a shader

the following sticky has some usefull shaders but last time I checked there wasn't one for text
https://forum.thegamecreators.com/thread/214598

Quote: "shaders do use a few resources that allot of mobiles wont support"

your other choice as far as I can see is to render the text to an image and place that image to an object

Your other choice is to do something like this, a snippet of baxslashes code that render2dto3d but with some modifiying to suit should help your needs


GOODLUCK
fubar
basicFanatic
7
Years of Service
User Offline
Joined: 7th Jun 2017
Location:
Posted: 6th Aug 2017 21:33
Thanks a lot - That last code was absolutely perfect!

Login to post a reply

Server time is: 2024-09-30 05:23:16
Your offset time is: 2024-09-30 05:23:16