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 / Text disappears

Author
Message
JohnnyJohnson
10
Years of Service
User Offline
Joined: 5th May 2013
Location:
Posted: 23rd May 2013 01:28
Why does "hello world" disappear when I make an object?

print "hello world"
make object sphere 1,10
do
loop
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 23rd May 2013 13:57 Edited at: 23rd May 2013 13:57
Because the 3D commands automatically trigger auto sync if you haven't manually turned it off. As such the scene will be rendered at regular intervals, but the text will only be rendered once and then flushed.
To alleviate this you would either turn autosync off, or draw the text for each loop (in which case you also would like explicit rendering to ensure that it happens at the correct time).


"Why do programmers get Halloween and Christmas mixed up?"
JohnnyJohnson
10
Years of Service
User Offline
Joined: 5th May 2013
Location:
Posted: 24th May 2013 03:02
Thank you very much.

Login to post a reply

Server time is: 2024-04-20 01:20:35
Your offset time is: 2024-04-20 01:20:35