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.

3 Dimensional Chat / Ugly skyboxes - i think i know why

Author
Message
Spelljammer
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location:
Posted: 30th Jul 2003 11:18
I made a beautiful skybox using terragen and it was flawless. I had assigned the images to 6 planes in DBPro and played with the distances to get everything perfect. Then on the computer at work, i loaded DBPro and ran it and i could see the seams. I finally checked my desktop color depth and noticed that it was 16 bit and not 32 bit like at home. I have a crappy video card at work and if i set to 32 bit then the seams would go away but wings3d was slow as hell. So i went back to 16 bit and ran the app in exclusive mode 800x600x32 and it worked perfect. I realize now that it's a zdepth problem. It seems that Darkbasic will use a 16 bit zbuffer if the color depth is set to 16 bit. And it uses a 32 bit zbuffer for a 32 bit color depth.

In 16 bit mode, i moved the planes in until the seams went away. But the picture didn't line up at all. So , bottom line is, if you want a good skybox, make sure your desktop is set to 32 bit color or that you run dbpro projects in exclusive mode with 32 bit depth.

Odd thing is, color depth should have nothing to do with zdepth calculations.....but I guess it's safe to say if someone is running at 16 bit color then they don't have the graphics power to compute a 32 bit zdepth. well mostly.....

Anyway, just wanted to tell everyone. You may think you have the worlds best looking demo or game until you send it to someone running at 16 bit color. just a heads up
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 30th Jul 2003 13:25
I found this out ages ago and posted many times on the subject.

It's even worse in Update 5!

See following links:

http://www.darkbasicpro.com/apollo/view.php?t=10659&b=1

http://www.darkbasicpro.com/apollo/view.php?t=14089&b=15

The programmer formerly known as sonic
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 30th Jul 2003 16:54
Have you tried the ,1 flag at the end of your load image? - might improve matters because it tells DB to load the image into memory.


Van-B

My cats breath smells of cat food.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 31st Jul 2003 02:09
Thats a good point ... is the low quality due to the fact that the image is being mipmapped, and DBPro is using lower-quality images due to the distance between the camera and the surfaces?
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 31st Jul 2003 02:22
Well, I've tried every combination of command to do with mipmapping, texture flags, e.t.c. and failed. Looks like I'll be sticking to 32bit mode for now. I don't hold much hope for it to be fixed for proper U5 release.

The programmer formerly known as sonic

Login to post a reply

Server time is: 2025-06-26 09:10:35
Your offset time is: 2025-06-26 09:10:35