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 / My 1st newbie question about print/text blur?

Author
Message
Jaack
20
Years of Service
User Offline
Joined: 25th Apr 2004
Location: London
Posted: 25th Apr 2004 10:51
Wotcha, Folks.

Just received DarkBasic yesterday and am just beginning to explore it.

Can anyone tell me why the following code.....

............appears clear and crisp, while.....

............appears large and blurry?

Apologies if this is a silly question, but I'm only just starting (and I've done searches).

Many thanks,

Jack.
Don Malone
21
Years of Service
User Offline
Joined: 27th Apr 2003
Location: Birmingham, Alabama
Posted: 25th Apr 2004 19:37
I ran the code using DB Pro 1.051 and The text seems clear as the first to me.

Can you give a little more info on how you are running it (settings) that may be the problem?

Wasting CPU Cycles since the 286 was a hot machine.
Jaack
20
Years of Service
User Offline
Joined: 25th Apr 2004
Location: London
Posted: 25th Apr 2004 22:22
I've just updated to version 1.052, and this is these are the results I get:

Print "Hello, Mum"
Wait Key

Text 10,10,"Hello, Mum"
Wait Key

Is this normal?

Jack.
medwayman
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: uk
Posted: 25th Apr 2004 23:13
It may have something to do with your desktop resolution although im not sure. Try selecting Windowed in the display settings before you run. I think the default is Windowed – Full screen. Also try making an EXE (F4) and run that and see if it still prints blurred.

Based on Amiga PD game Squigs. Early shots: http://www.custardsoft.pwp.blueyonder.co.uk/images/03.png

dragon tail
21
Years of Service
User Offline
Joined: 23rd Jul 2003
Location: United Kingdom
Posted: 26th Apr 2004 21:51
hye wait a moment... if you look closely, it looks like two different fonts at different sizes! Try changing the font beforehand and see what happens, open up your help files in DB and in there should be a command to change fonts i think. correct me if i'm wrong. hope thats useful to you

Saikoro
21
Years of Service
User Offline
Joined: 6th Oct 2003
Location: California
Posted: 27th Apr 2004 02:29
DT is right on this one, your fonts are different as are the sizes, which is why it looks different. Set the font using the command Set Font, and set the size using Set Font Size.

-Vash the Stampede

Need help? Ask me via email, msn, aim, or forums and Ill see what I can do.

Jaack
20
Years of Service
User Offline
Joined: 25th Apr 2004
Location: London
Posted: 27th Apr 2004 09:34
I can change the font sizes, etc. But it still looks blurry.

I loaded this image with the command LOAD IMAGE "BALL.BMP",1

...and this is how it appears !

To be honest, I think my XP is playing up. Strange things are happening all over the shop at the moment.

I just wondered if this was DBP specific!

Jack.
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 27th Apr 2004 17:11
To get rid of your image blur, you need to add the optional ,1 on end of load image commands. This stops the mipmapping and leaves image pixel perfect.

The text blur is probably because you are compiling in fullscreen window mode. If editor window settings are say set to 640*480 and your desktop is set at 1024*768, then DB scales game to fix screen. This unfortunately gives you blurring. Compile in fullscreen exclusive mode, or set window res in editor to be same as desktop res.

Boo!
Jaack
20
Years of Service
User Offline
Joined: 25th Apr 2004
Location: London
Posted: 28th Apr 2004 00:30
Cheers, Spooky.

That extra ,1 seems to have kinda done the trick.

I also kind of understand your bit about the DBP resolution scaling to my desktop (indeed 1024,768). I wonder if you could put into Layman's terms the 2 solutions you have at the end.

Also, is this normal for default settings?

Much ta.

Jack.
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 28th Apr 2004 01:18
Here's a run down of the different compile methods in DBPro. You set them by clicking on the red 'Settings' button.

There are 5 different compile methods, each one has its pros and cons.

1. Fullscreen Exclusive Mode
Choose desired resolution using 'Pick' button. Game will run full screen with no borders. Frame rate is locked to monitor refresh rate, usually 60 fps. This gives the smoothest screen updates as the screen is updated between monitor refreshes.

2. Windowed
This makes game run at desired windows resolution with the normal window stuff like titlebar and minimize,maximime button and close buttons. This is great for applications.

3. Windowed - Desktop
This runs game in a full window but just leaving taskbar active along bottom of screen. The trick is that the game runs at the resolution set in the previous option (Windowed). Not very logical. Screen is scaled from this to whatever your desktop resolution is currently set to.

4. Windowed - Full Screen
This runs filling entire screen and not limited to screen refresh rate so expect frame rates in the hundreds BUT not as smooth as exclusive mode. Once again it runs at resolution set in Windowed option. Screen is scaled from this to whatever your desktop resolution is. So if you force game to run at 640*480 but your desktop is 1024*768 then everything is scaled up.

5. Hidden
Runs as a hidden process. Not advisable unless you have a really good reason to use it.

There has always been a difference between printing text and 'text'ing text. They use different methods of rendering. you get different results aswell depending on which of above methods you use. Rendering text is also different if you only stick to 2D drawing commands rather than 3D stuff.

Hope this helps.

Boo!
Jaack
20
Years of Service
User Offline
Joined: 25th Apr 2004
Location: London
Posted: 28th Apr 2004 08:37
Spooky, you are a Star, mate.

Changed my settings to Fullscreen Exclusive Mode (1024,768x16) and everything is correctly sized and crystal clear.

Thanks for making it so clear (literally).

........and to everyone for their help.

Much ta.

Jack.
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 28th Apr 2004 13:07
One warning. 16 bit mode in DBPro is not too good. It makes textures on 3D objects look pants. If you possibly can, stick to 32bit only screen modes. If you are only doing 2D stuff then you should be ok.

Boo!
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 28th Apr 2004 21:32
With DBPro, I've noticed if you just use print commands, etc then text appears crisp - almost as if in a difference mode.

However, as soon as you do anything such as drawing, 3d, text etc. then the antialiasing kicks in.

"To do is to be" - Descartes
"To be is to do" - Voltaire
"Do be do be do" - Frank Sinatra

Login to post a reply

Server time is: 2024-11-26 14:24:41
Your offset time is: 2024-11-26 14:24:41