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 / Has this image problem been fixed yet?

Author
Message
SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 28th Feb 2010 19:29 Edited at: 28th Feb 2010 19:31
Seems on windows vista....any image loaded into darkbasic skips lines of drawing....

i did not stretch the image
i did not do anything but

load image "myimage.bmp",1,0

paste image 1,0,0,0

and on windows vista you get these crappy lines that appear
xp visual is fine....xp works perfect.....whats going on?

Development & Editting
SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 28th Feb 2010 19:32
the graphic image is drawn smooth.... and then darkbasic+vista=scanlines

Development & Editting
SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 28th Feb 2010 19:35
Any suggestions guys?


ive tried using 3d planes as well but you still get the same graphic effect on vista


like i said....xp looks perfect!

Development & Editting
mike5424
17
Years of Service
User Offline
Joined: 30th Mar 2009
Location:
Posted: 28th Feb 2010 19:38
No need to keep bumping the thread, It's 10 mins old and is still really near the top

Well, Does this happen with all images? Does this exact image work fine on XP?

---
The Slayer
Forum Vice President
16
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 28th Feb 2010 19:40 Edited at: 1st Mar 2010 22:34
Did you try load image "myimage.bmp",1,0 ?

I also have Vista, and I've never had such a weird effect. Could you post that image, so that I can have a look to see if it also distorts when loading it in DBPro?

Cheers

Slayer rules!!! Yeaaah, man!
SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 28th Feb 2010 19:45 Edited at: 28th Feb 2010 19:47
hehe....sorry...lol yup im a spammer....anyhoo here is the full image....and ive always had this problem with vista and vista only!


also i am using a windowed enviroment.....its not a full display mode

Development & Editting
mike5424
17
Years of Service
User Offline
Joined: 30th Mar 2009
Location:
Posted: 28th Feb 2010 20:03
Quote: "yup im a spammer"

Your mother should be very proud!

Could you post your graphics card please? I use vista and i don't get this problem.

---
Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 28th Feb 2010 20:08
What display mode are you using ? Windowed Full screen or Full Screen Exclusive ?

If you're using full screen window, the DBpro will stretch the screen to the display the desktop resolution.

SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 28th Feb 2010 20:12 Edited at: 28th Feb 2010 20:30


thats my exact code

and my hardware is: Ati radeon 3100

processor: AMD athlon x2/dual core ql-60 1.9ghz
vista 64 bit 3 gig ram




this is what that code looks like when ran
view this image------------------------>

Development & Editting
The Slayer
Forum Vice President
16
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 28th Feb 2010 20:29
Well, then there must be something with the settings of your graphicscard, or maybe you have'nt the latest drivers or directx version, 'cuz it ran fine on my machine.

Cheers

Slayer rules!!! Yeaaah, man!
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 28th Feb 2010 21:44 Edited at: 28th Feb 2010 21:44
You are stretching the image. You set the screen size as follows:

But the image size is 800x400, so it WILL become distorted.

My signature is NOT a moderator plaything! Stop changing it!
The Slayer
Forum Vice President
16
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 28th Feb 2010 22:20 Edited at: 28th Feb 2010 22:39
@Mobiius:

He is not stretching it. He just positioned it lower to get it centered (see screenie). His code ran fine on my machine, so there must be another problem causing the distortion of the image. It's probably some settings on the properties-panel of his graphicscard, or maybe his card has some issues with Vista, or he does'nt have the latest video-drivers for his card.
Edit: I think his AA or vsync are'nt turned on.



Cheers

Slayer rules!!! Yeaaah, man!
SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 1st Mar 2010 20:19
ya i think its some sort of graphics card problem.....however...

When it compiles on my vista machine these scan lines stay for every bodys operating system.....very bizare

but if i compile it on my xp machine its fine.....very strange.


Actualy lets do a test to confirm this.....

I will make an exe later taday....post it ... and you guys can tell me if you get these scan lines

Development & Editting
Hawkblood
16
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 1st Mar 2010 20:24
Vista came with DX10. DX10 has some of the DX9 stuff in it. Are you sure you have the latest DX9.0c SDK?

The fastest code is the code never written.
The Slayer
Forum Vice President
16
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 1st Mar 2010 22:41
Quote: "When it compiles on my vista machine these scan lines stay for every bodys operating system"

What do you mean by that? I have Vista, and it runs fine on mine.

You also said that it runs fine on your XP machine, but not on your Vista, so do both your machines have the same graphicscards?

Cheers

Slayer rules!!! Yeaaah, man!
SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 2nd Mar 2010 01:32
here..... test this exe and tell me if you get scan lines


this was made on my vista pc

Development & Editting
SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 2nd Mar 2010 01:36
and here is the screen shot of what this exe looks like on my pc



yes i have the latest drivers installed on my pc

anyways somebody test this on xp and vista and tell me if this exe has scan lines

thank you

Development & Editting
Link102
21
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 2nd Mar 2010 01:38
see attachment

my os = xp

David Gervais
Retired Moderator
20
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Montreal, Canada
Posted: 2nd Mar 2010 02:16 Edited at: 2nd Mar 2010 02:17
I have an nVidia GeForce 7600 GT graphics card and I'm running XP Home edition..



I get no choppy scan line interruptions, the image looks clean on my comp.

Cheers!

SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 2nd Mar 2010 04:48 Edited at: 2nd Mar 2010 04:52
ok so link 102... it looks like you got scan lines correct? and David yours looks perfect.


I am starting to think this is a problem with my pc's graphics card....and if thats the case i can still use it and ignore that im getting scanlines cause it should look fine on someone elses pc.

Any body with vista... do you mind giving this program a shot to see if you get scan lines.

Development & Editting
KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 2nd Mar 2010 05:02
From the DBPro Help file for LOAD IMAGE

Quote: "A Texture Flag of zero will treat the image as a texture and load to fill a texture surface in memory. A value of one will preserve the image without adding mipmaps, scaling or filtering and so retaining its pixel perfect quality."


You have been using

LOAD IMAGE "myimage.bmp", 1, 0

which allows mipmaps, scaling and filtering.

Have you tried changing the texture flag to a 1?

Brendy boy
21
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 2nd Mar 2010 05:07
I have Windows 7, no scan lines, see attached screenshot

God is real unless declared integer.
The Slayer
Forum Vice President
16
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 2nd Mar 2010 07:59
Quote: "Any body with vista... "


Well, you saw mine already, and it ran fine.

My guess is that it has nothing to do with your graphicscard, or which OS it runs on. I think it has something to do with the settings of your graphicscard. Is the AA or VSYNC set to ON? Which filtering does your card use to refresh the screen?
You should post the propertiespanel-settings of your graphicscard to see if everything is set correctly.

Cheers

Slayer rules!!! Yeaaah, man!
SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 2nd Mar 2010 16:33
ok well thanks guys.....ill take a look and see if its a graphics card setting

Development & Editting
Benjamin
23
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 2nd Mar 2010 16:40
I think the problem is that some graphics cards don't like non-square textures, so loading the image as a texture on that machine will cause it to be rescaled. So...

Quote: "Have you tried changing the texture flag to a 1?"
SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 2nd Mar 2010 20:34
yes and same effect

its a graphics card problem...... im going to see if its a direct x setting

Development & Editting
Jeff032
18
Years of Service
User Offline
Joined: 13th Aug 2007
Location:
Posted: 2nd Mar 2010 23:02 Edited at: 2nd Mar 2010 23:02
It's probably because the texture size is not a power of 2. (The texture not being square could be an issue too, like Benjamin said)

I'd check the results of NONPOWTEXTURES AVAILABLE() on both computers. My graphics card does not support non power of 2 textures, and displays the image incorrectly.

[EDIT]
It does support non square textures though.

IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 2nd Mar 2010 23:53
Reduce the code to as little as you can: load the image, display it, wait for a keypress.

If it shows the problem then the problem is with drivers or DBPro. If it doesn't, then the problem is with one of the plug-ins you are using (possibly including other built-in ones).

If the problem doesn't appear with the cut-down code, then my initial guess would be that Blue GUI is the problem, particularly that 'resetMainWindow' command.

SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 3rd Mar 2010 18:21
the code is reduced to practicaly nothing.....even took blue giu out and its the same thing. I think its a graphics driver problem.......this thread can be locked

thanks again guys

Development & Editting
The Slayer
Forum Vice President
16
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 3rd Mar 2010 19:29 Edited at: 3rd Mar 2010 19:30
Quote: "I think its a graphics driver problem"


Do you have the latest drivers for your videocard installed (ATI Catalyst Control Center) ?

And did you try out all the different settings for your videocard (properties) ?

Maybe you could google the name of your graphicscard to see if there have been simular problems with that type of card?

Cheers

Slayer rules!!! Yeaaah, man!
SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 11th Mar 2010 14:05
Here is a quick link to qmidi 3 in action!

Will have a release soon
http://www.youtube.com/watch?v=Rduc0IboQ9k

Slayer... yup it was a properties setting under performance / quality.....fixed! YEAHOO!

Development & Editting
The Slayer
Forum Vice President
16
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 11th Mar 2010 17:18
Quote: "Slayer... yup it was a properties setting under performance / quality.....fixed! YEAHOO!"

Glad to help!

BTW, your application looks awesome! I see a lot of potential in it! With some more adjustements and enhancements, it'll be great!

Cheers

Slayer rules!!! Yeaaah, man!
SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 11th Mar 2010 17:44
Thanks.... Its almost ready for a first release.....maby in a few weeks

Development & Editting
Demon000
18
Years of Service
User Offline
Joined: 21st Aug 2007
Location:
Posted: 11th Mar 2010 17:49 Edited at: 11th Mar 2010 17:49
Quote: "yup it was a properties setting under performance / quality.....fixed! YEAHOO!"


How did you fix it exactly? I have the same problem using windows 7 but haven't been able to fix it.
SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 11th Mar 2010 18:24 Edited at: 14th Mar 2010 18:36
same graphics card?

well there is a setting where you can change your performance of you graphics....can be adjusted from quality to performance
quality max will fix this issue.

see if you have a control panel for your graphics





edit: march 14,2010

Qmidi 3 beta has now been released.... Check the music forum for details

Development & Editting

Login to post a reply

Server time is: 2026-07-26 21:13:01
Your offset time is: 2026-07-26 21:13:01