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 / really small problem - text command hidden in 3d space

Author
Message
Paul08
16
Years of Service
User Offline
Joined: 20th Feb 2008
Location: Oxford, UK
Posted: 26th Feb 2008 13:05
make object cube 1,10
text 200,100,"hiya"
wait key


as titled really, any project i make with 3d objects in it, the text command isnt working.

if i run it in a loop it will display

almost as though its getting suck into the world somewhere?

has anyone got any ideas of what im doing wrong?
cheers
Paul

oh print is also doing the same thing!
Flashing Blade
21
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 26th Feb 2008 14:15 Edited at: 26th Feb 2008 14:16
Yes the text should go in a loop.

3d objects (this includes sprites) activate the 3D Backdrop.

You can use BACKDROP OFF - but then you gotta take responsibility for clearing the screen each frame.


The word "Gullible" cannot be found in any English Dictionary.
Paul08
16
Years of Service
User Offline
Joined: 20th Feb 2008
Location: Oxford, UK
Posted: 26th Feb 2008 14:28
oops, thought i replied already.

Before i put a print/text statement in my loop im getting average around 95 fps, after i get 66 fps...

Are you positive this is the only way?..
Flashing Blade
21
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 26th Feb 2008 14:39
Could you post a small snippet?

Are you doing anything like changing ink or font-size (these commands kill fps and shouldn't be in the loop)?


The word "Gullible" cannot be found in any English Dictionary.
Paul08
16
Years of Service
User Offline
Joined: 20th Feb 2008
Location: Oxford, UK
Posted: 26th Feb 2008 15:04


thats my function, then in my loop im just:


-yes, just realised, calling a function that creates bitmaps on the fly is really not a good way of doing it - sorry for wasting your time. heh one of them stupid mistakes
Paul08
16
Years of Service
User Offline
Joined: 20th Feb 2008
Location: Oxford, UK
Posted: 26th Feb 2008 15:08
im now getting 180 fps on my laptop - much better
Flashing Blade
21
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 26th Feb 2008 15:57
There are some commands in DB that murder frame rates - INK is one and GETIMAGE() is another.


The word "Gullible" cannot be found in any English Dictionary.
Paul08
16
Years of Service
User Offline
Joined: 20th Feb 2008
Location: Oxford, UK
Posted: 26th Feb 2008 18:24
note taken - ta
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 26th Feb 2008 20:13
Make a Plain, texture it with the text you want then plonk it in 3D space just above/in front (whatever) of the object. Point it at the camera in the loop as you move around.

TDK_Man

Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 27th Feb 2008 21:19
I swear I used to have 3D objects and text on screen at the same time without any problems. Now how did I do that?

Paul08
16
Years of Service
User Offline
Joined: 20th Feb 2008
Location: Oxford, UK
Posted: 27th Feb 2008 22:03
.. i wasnt looping my text / print commands in the main loop i was in therefor 3d backdrop was over writing text / print cmd

Paul

Login to post a reply

Server time is: 2024-09-27 12:24:11
Your offset time is: 2024-09-27 12:24:11