DisplaySprite3D garbage???

Advanced game related topics
cbmeeks
User
User
Posts: 17
Joined: Tue Dec 23, 2003 5:33 pm

DisplaySprite3D garbage???

Post by cbmeeks »

I am still having the same problem. When I draw a 3D sprite too close to the edge of the screen or especially beyond the edge of the screen, I get weird artifacts or lines or pixels over the sprite. Any clues why this happens? I have tried both PNG and BMP files and it does it with both.

I have uploaded the code and images. Please tell me if you get the same thing. Oh, left/right to scroll the screen.

Please let me know what you think.

-cb

GET IT HERE: http://cb.signaldev.com/lava.zip
Master Games
User
User
Posts: 22
Joined: Mon Oct 06, 2003 1:42 am

Post by Master Games »

Looks great to me.
Thanks,
Master Games

System: P4 1.9 GHZ, 1 GB DDR Memory, 80 GB Hard Drive, WinXP Home Edition with Latest Patch, Creative labs Audigy Sound Blaster Platinum Sound Card, Geforce 3 Graphics card with 52.16 drivers
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Post by J. Baker »

No problems here either. Looks good. :D You might have to update your video driver or check it's settings.
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Sounds too me like a driver problem!

It works fine here -> GForce2 MX400
cbmeeks
User
User
Posts: 17
Joined: Tue Dec 23, 2003 5:33 pm

Post by cbmeeks »

That's weird. I can't be the only one that has happened to. It has happened on two different machines. One of the machine I KNOW has the newest drivers.

Plus, sometimes it does it...sometimes it does not

cb
Proteus
Enthusiast
Enthusiast
Posts: 113
Joined: Wed Sep 17, 2003 8:04 pm
Location: The Netherlands

Post by Proteus »

It may be your monitor. I seem to remember having this problem with an old monitor.
P4 2.4GHz, 256 MB, WinXP Pro, onboard video&audio.
The Programmer's Drinking Song:
"99 little bugs in the code,
99 little bugs.
Fix one bug, recompile
100 little bugs in the code."
cbmeeks
User
User
Posts: 17
Joined: Tue Dec 23, 2003 5:33 pm

Post by cbmeeks »

Well, both machines have different monitors. And one of them is less than a year old.

This kinda worries me because I have been looking high and low for an engine that is FAST at 2D and allows you to mix 3D in it and still keep some speed. I wonder if it is because of the demo version?

-cb
Proteus
Enthusiast
Enthusiast
Posts: 113
Joined: Wed Sep 17, 2003 8:04 pm
Location: The Netherlands

Post by Proteus »

Try taking a screenshot of it when it happens. If the screenshot has the same garbage, it's not the monitor.

And if it's not the monitor, could you upload the screenshot?
P4 2.4GHz, 256 MB, WinXP Pro, onboard video&audio.
The Programmer's Drinking Song:
"99 little bugs in the code,
99 little bugs.
Fix one bug, recompile
100 little bugs in the code."
Henrik
Enthusiast
Enthusiast
Posts: 404
Joined: Sat Apr 26, 2003 5:08 pm
Location: Denmark

Post by Henrik »

Hi cbmeeks

This have probably nothing to do with the problem you got
But alot off old gfx cards would show your Lava.png and Lava2.png wrong cus they are 96x96
you should change the size to 64x64 or 128x128 og 256x256 to be showen correctly
on my card i only see white waves insted off lava, i see the lava crorect when i change the size.

Looks Nice btw :)

Tomcat had the same problem in this thread about the "Pure Racer Demo"
viewtopic.php?t=8584&postdays=0&postorder=asc&start=15

viewtopic.php?t=8584&postdays=0&postorder=asc&start=0

Best regards
Henrik
cbmeeks
User
User
Posts: 17
Joined: Tue Dec 23, 2003 5:33 pm

Post by cbmeeks »

But alot off old gfx cards would show your Lava.png and Lava2.png wrong cus they are 96x96
you should change the size to 64x64 or 128x128 og 256x256 to be showen correctly
on my card i only see white waves insted off lava, i see the lava crorect when i change the size.
Yeah, I thought about that. I thought 96x96 should be valid. I changed the lava tile to 128x128 and it STILL does it. I tried taking a screenshot but it doesn't appear to work with PB in full screen??

ANYWAY, I know why this is happening. I loaded the lava tile and removed the bottom pixel line (changed to transparent) and the artifacts went away! Then, on a hunch, I changed the bottom pixel line to cyan (so it would stick out) and yup...there it was...cyan garbage at the top of my lava. It is like the texture is being slightly wrapped by one pixel. It might be my video card. At work, I have a Radeon 7000 VE (value edition..kinda crappy) but at home, I have a Radeon 7500 64MB. I pretty good card and the problem is only occasional.

For now, I think I will just make sure my 3D sprite/textures have a blank line around them and keep the size a power of 2. That seems to be safe although a little pit of a pain.

cb
merendo
Enthusiast
Enthusiast
Posts: 449
Joined: Sat Apr 26, 2003 7:24 pm
Location: Germany
Contact:

Post by merendo »

I also see some garbage, its some purple lines, which are sometimes diagonal and sometimes straight across the screen.
The truth is never confined to a single number - especially scientific truth!
cbmeeks
User
User
Posts: 17
Joined: Tue Dec 23, 2003 5:33 pm

Post by cbmeeks »

See? I knew I wasn't crazy....lol

I have re-uploaded another example that should fix it all...plus it is hella-cool!

download and let me know what you all think

cb

HERE -- > cb.signaldev.com/lava.zip
Henrik
Enthusiast
Enthusiast
Posts: 404
Joined: Sat Apr 26, 2003 5:08 pm
Location: Denmark

Post by Henrik »

Hi cbmeeks
It's working great now :)
"kraid_single.png" - thats how i look the day after New Year's Eve 8)

Best Regards
Henrik
cbmeeks
User
User
Posts: 17
Joined: Tue Dec 23, 2003 5:33 pm

Post by cbmeeks »

hehe...

so, does the effect look good?

I am kinda proud

cb
Post Reply