DisplaySprite3D garbage???
DisplaySprite3D garbage???
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
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
-
- User
- Posts: 22
- Joined: Mon Oct 06, 2003 1:42 am
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?
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."
The Programmer's Drinking Song:
"99 little bugs in the code,
99 little bugs.
Fix one bug, recompile
100 little bugs in the code."
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
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
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??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.
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
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
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