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 Professional Discussion / Help with ghost/z buff/transparency problem.

Author
Message
CJB
Valued Member
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 26th Feb 2006 21:08
The grey blobs in this image:



should all be ghosted giving a kind of smoke effect. Does anyone know why some of the plains would occlude others even though they are all ghosted?

Ta.

x1b
20
Years of Service
User Offline
Joined: 19th Sep 2004
Location:
Posted: 26th Feb 2006 21:12
got code?


CJB
Valued Member
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 26th Feb 2006 21:15 Edited at: 26th Feb 2006 21:15
Sure:




Use the mouse to move the cam around, and use up and down arrow to go faster/slower.

CJB
Valued Member
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 26th Feb 2006 21:22
I think there's a command "disable object zwrite" that might fix that.

x1b
20
Years of Service
User Offline
Joined: 19th Sep 2004
Location:
Posted: 26th Feb 2006 21:22 Edited at: 26th Feb 2006 21:23
while I fuss with this, try load image "new.bmp",101
load image "cloud2.bmp",201
load image "cloud3.bmp",301
load image "cloud4.bmp",401


I just recently had a run in with an odd bug that insisted I increment my image numbers by a considerable amount.

getting a cloud bmp to test your code with then will give it a better look at

[edit] right,or ill use yours. and yes disable object zwrite


x1b
20
Years of Service
User Offline
Joined: 19th Sep 2004
Location:
Posted: 26th Feb 2006 21:25 Edited at: 26th Feb 2006 21:30
http://www.conradbrown.plus.com/spacesphere.x

not working


Example code I use(ta van b) to layer a water image,over it self.




uses disable object zwrite for that purpose.


CJB
Valued Member
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 26th Feb 2006 21:32
Okay,

Get the spacesphere here:
http://www.conradbrown.plus.com/spacesphere.txt
just rename it once you have to .x

Next, why have I never heard of disable object zwrite???? - It doesn't even appear in the help (although neither does set alpha mapping plus a load more I guess - is this going to get fixed???)

I will give the disable object zwrite thing a go...

CJB
Valued Member
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 26th Feb 2006 21:36
You're a star!!! That 'hidden' command Disable Object Zwrite did the trick!!!!:



Thanks!!! Now to get some good looking media in there!

CJB
Valued Member
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 26th Feb 2006 21:40
Oh yeah!!! It works great! Probably the best volumetric fog I've seen!



It's when you fly through the fog that you get the effect I was looking for (i.e. a gradual fade out as though it is a real mist instead of simply switching off when you get past the plain).

Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 26th Feb 2006 21:42
That fogging looks awesome man!

CJB
Valued Member
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 26th Feb 2006 21:42
grab the new texture here:

http://www.conradbrown.plus.com/new.bmp

x1b
20
Years of Service
User Offline
Joined: 19th Sep 2004
Location:
Posted: 26th Feb 2006 21:45
bah, you two beat me to the post..


Login to post a reply

Server time is: 2025-06-06 17:15:02
Your offset time is: 2025-06-06 17:15:02