Page 1 of 1

DisplaySprite3D garbage???

Posted: Wed Dec 24, 2003 11:42 pm
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

Posted: Thu Dec 25, 2003 5:54 am
by Master Games
Looks great to me.

Posted: Thu Dec 25, 2003 7:02 am
by J. Baker
No problems here either. Looks good. :D You might have to update your video driver or check it's settings.

Posted: Thu Dec 25, 2003 12:09 pm
by Num3
Sounds too me like a driver problem!

It works fine here -> GForce2 MX400

Posted: Fri Dec 26, 2003 3:17 am
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

Posted: Fri Dec 26, 2003 1:00 pm
by Proteus
It may be your monitor. I seem to remember having this problem with an old monitor.

Posted: Fri Dec 26, 2003 2:44 pm
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

Posted: Fri Dec 26, 2003 2:53 pm
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?

Posted: Fri Dec 26, 2003 5:54 pm
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

Posted: Fri Dec 26, 2003 9:38 pm
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

Posted: Fri Dec 26, 2003 9:44 pm
by merendo
I also see some garbage, its some purple lines, which are sometimes diagonal and sometimes straight across the screen.

Posted: Fri Dec 26, 2003 10:32 pm
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

Posted: Sat Dec 27, 2003 2:20 am
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

Posted: Sat Dec 27, 2003 2:30 am
by cbmeeks
hehe...

so, does the effect look good?

I am kinda proud

cb