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 Discussion / Pixel swimming problem (NOT mipmap mode)

Author
Message
HWT
20
Years of Service
User Offline
Joined: 1st Apr 2005
Location: Earth
Posted: 6th Dec 2005 17:32
Greetings

I have been having a problem with pixel swimming in my models when viewed from great distances.

The obvious remedy is mipmap mode but I have tried that using the simple command set mipmap mode and I tried 1,2,3 and 0 but that doesn't help.

I have attached a file for reference.

As this is probably not related to mipmap mode, what suggestions do you have for me to fix it? Appreciate any help or tips.

Thank you,
HWT

HelloWorld Tommorrow

Attachments

Login to view attachments
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 6th Dec 2005 17:51 Edited at: 6th Dec 2005 17:54
This is a Z-buffer problem.

The Z-buffer controls what polygons are rendered in front of other polygons. A Z-buffer is one of the best methods (and is used in DBC) as it allows intersection.

However, every time you 'sync' the Z-buffer is updated. More detail is put in the Z-buffer for objects that are close to the camera than those that are far away.

Basically, your world is too big. I don't mean that there's too much of it, just that it's too big. Scale everything down & re-position the camera so that it looks exactly the same as in your screenshot now and the problem should go away.

(Note: NEVER have objects intersecting each other, unless it's for some cool effect or you need them to. It annoys all type of depth rendering systems, Z-buffer'ing included, and can cause problems later (such as pixel 'swimming' up close to an object).)

[edit] Oh yeah, don't make it too small. The depth buffer for further away objects uses a resolution of roughly 1.0, so make sure objects are at least that far apart if they're not meant to touch. [/edit]

16-colour PNGs pwn.
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 14th Dec 2005 09:00 Edited at: 14th Dec 2005 09:00
That is it, I've had enough of your crap.

How the hell is that a useful post? You discriminate me because of what I have in my signature, and you didn't even read it right. It says 'Anti-Anti-Anti Noob Justice League, Hypocracy all the way!'.

What kind of stupid person are you, to post a completely off-topic post & revive a thread at the same time, and the aforementioned discrimation 'i really hate u "anti-noob justice league" people...'

How was my above post offensive, at all? It can't be offensive, it was only code.

You have just posted (probably) the most offensive thing in this forum, just now, for about 2 weeks. It's not acceptable to just go into a random, old thread, and say that you hate someone. You need to learn that.

...This all excusing the fact that I am a member of the Anti-Anti-Anti Noob Justice League. So. What do you say?

16-colour PNGs pwn.
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 14th Dec 2005 16:10
Uh... Zeeky Boogy Doog! *a splode*

Tempest - P2P UDP Multiplayer Plugin - 70%

Login to post a reply

Server time is: 2025-05-22 19:40:27
Your offset time is: 2025-05-22 19:40:27