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.

Newcomers DBPro Corner / Print text to a 3d object

Author
Message
Xrox
13
Years of Service
User Offline
Joined: 1st Nov 2010
Location:
Posted: 1st Nov 2010 23:07
Hey everyone! Been searching and reading for awhile, try'n to figure out how to print text to a 3d object. Like a sign in 3d world with the most killed on it. Any help would be great!!

Thanks Xrox
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 1st Nov 2010 23:26
You need to manipulate the texture that you apply to it. You can simplify this in 2 ways:

1. IanM's Matrix Utilities (in DLL talk) . You can DRAW TO IMAGE to send your text to the image texture. then DRAW TO BITMAP 0 to return to the screen.

2. Sven B's Image Kit (in Program Announcements) . This has all sorts of ways to paste images on to one another. Rather than just have plain text you can use different blending options to merge the background and the numbers.

Xrox
13
Years of Service
User Offline
Joined: 1st Nov 2010
Location:
Posted: 1st Nov 2010 23:29
Thanks BatVink I'll give it a go.

Thanks alot
smerf
19
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 21st Nov 2010 21:49
I generally through stuff like that into a function and either use a timer or an event to update cause drawing and switching bitmaps constantly will slow down a program.
in this example create your bitmap before the program. and the if statement can be used for anything in this case the event a player dies it will go to the function and update the sighn


set current bitmap when ur ready to right




A child's dream never dies.

Login to post a reply

Server time is: 2024-09-29 00:29:27
Your offset time is: 2024-09-29 00:29:27