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.

DarkBASIC Professional Discussion / kinds of text over 3dWorld

Author
Message
ICERGB
23
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 14th Oct 2003 17:07
I am wondering... I have a chat ready to go and the game is mostly 3d...

I am wondering how I am going to keep the chat going and get the best speed?

I mean, should I constanly use text; Is this OK?

Or should I create an image alphabet?
Of course a image alphabet would have to be pasted onto plains?;

Should I have a single bitmap image of the alphabet and make images as I go?

Maybe I should have a second program running that always remains on top in a window? (It's an idea)...

Could you please give me some opinions on what would give the speediest delivery of frame rates?

TKS
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 14th Oct 2003 19:07 Edited at: 14th Oct 2003 19:14
you seem to have asked the right questions at the right time or im in the mood to share with you a real nifty secret.

I use something similar in my game because i have tonnes of text to display. (rpg)

I pulled it apart from my source and ripped out the functions so its clear as mud

enjoy

( post addition : theres a little bug in it with the text being captured in the screen area for display but it shouldnt be hard to fix)




ICERGB
23
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 15th Oct 2003 12:44



So, if I print text in a different bitmap and paste it over to a plain, it is speedier than actually drawing the text over 3d objects?
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 15th Oct 2003 19:03
yup 2d and 3d is slow poke
3d all the way is a lot faster.
stress test it for yourself, if you want to see.

ICERGB
23
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 24th Oct 2003 06:42
I will test it. Soon I will need it, but DrakeX seems convinced that simply printing the text over the 3D world would be faster...

http://www.dannywartnaby.co.uk/rgt/index.php?board=4;action=display;threadid=643;start=new
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 24th Oct 2003 07:12
Hey Indi, where'd you get Z# = Screen Height()*0.83 from? Just curious how you came up with 0.83 to get the proper depth of any resolution. I mean if you knew the depth at one resolution, you could figure it out.
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 24th Oct 2003 09:22
lol drakex indeed, the guy who thought limbs were useless.
you will see for yourself when u need to express a lot of text on the screen which is better. Some cards will crawl to 5 fps when u try to express 3d and 2d, encapsulating things as a texture for a 3d panel is more effective in the long run. ]

Think about it <--- Test it out for yourself.
Sure a score result or a few letters wont make a difference.

Fill the the screen with text and 3d and see how far you get with both results, then test it on a few different cards unto the one your using, like slower vid cards.

Cards with fast 2d blitting will handle it a bit better than a card without it.

Login to post a reply

Server time is: 2026-07-26 17:36:48
Your offset time is: 2026-07-26 17:36:48