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 / DBPro Text problem

Author
Message
Toydoc
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location: U.S. East Coast
Posted: 30th Oct 2006 21:47
I have a problem where all text functions stop working after I load an object. I print instructions on the screen early in my program but when I use load object my text is erased and all futher text or print commands fail to draw to the screen.
I am useing sync on and rate at 60.
I have tried sync off and sync commands in my program with the same results.
I am also running Dark Physics code in this program.
Any help will be greatly appriciated.
Thanks

Toydoc Dan
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 31st Oct 2006 01:45
when a 3d object is created it also creates a infinite and empty 3d world per say.
in order to see text in this 3d world you have to up date the text position within the main game loop
every loop as the 3d world redraws the whole screens width and height each sync.

prior to your main loop
ink rgb(255,255,255),1
set text size 12
set text font "verdana"


in your main loop running the 3d world.
text 1,1,"text in 3d"

Toydoc
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location: U.S. East Coast
Posted: 31st Oct 2006 03:11
Thanks for the quick info.
Thats the fix I was looking for.}

Toydoc Dan

Login to post a reply

Server time is: 2024-09-25 11:22:48
Your offset time is: 2024-09-25 11:22:48