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 / Anyone care to offer advice ?

Author
Message
Shadowfax
23
Years of Service
User Offline
Joined: 20th Jan 2003
Location:
Posted: 8th Apr 2003 12:50
Okies ... have a whole bunch of problems for you ppl

I have a matrix of size LSIZE
Centered on this at y=0 is a waterplane (matrix) of size LSIZE
Centered on the player is a skysphere of VDEPTH (same as player view depth)

Problem 1:
if i tile the waterplane with a image that is set to be transparent, i see further through the waterplane than if the water plane is not textured or is not there (yes, i know this is wierd)

Problem 2:
i set color key for images to 0,0,0
if i make an image transparent, i can see through all non r:0,g:0,b:0 parts of the image but the black part is opaque and sitting there taunting me like a black blob - surely this should be the reverse ??? (ie see completely though black part of image and the non-black parts are opaque)

Help !!!!
"No Gir ... thats BAD !"
Beta1
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location:
Posted: 8th Apr 2003 14:34
Prob 1: Sounds slightly wierd. My solution for water plains is to use 2, one ghosted and slightly higher than the other (30-50 units). The same (non-transparent)water texture is applied to each then the textures slowly scrolled in different directions at slightly different speeds. By playing with the ambient light flag in the set object command you can make the whole sea bright/dark. The texture I use looks like ripples so the scrolling causes "interference" like patterns between the two making it look pretty good. This way you can also allow as much depth as you like as you can see from the ghosted plain to the solid plain but no further.

Anyway just an alternate idea.

Prob 2: absolutely no idea at all i'm afraid

Ratty Rat
23
Years of Service
User Offline
Joined: 24th Sep 2002
Location:
Posted: 8th Apr 2003 14:44
OK, sorry if some of this is really obvious but:-

1) Are you using patch 4? I have not tried transparency & ghosting in patch 4 yet but Ghosting in particular had problems in earlier patches.
2) Do you mean transparent or Ghosted? transparent makes the black areas invisible, ghosting makes everything partially see through.
3) Are you sure the black areas of the image are really 0,0,0? its soooo easy to do some work in a paint package and end up with almost but not quite black.

You could experimant with fade object, or see if transparency works without ghosting, it might help you pin down the problem.
Shadowfax
23
Years of Service
User Offline
Joined: 20th Jan 2003
Location:
Posted: 8th Apr 2003 15:20
Thanks to both of you. I was trying to create an setup similar to as described by Beta1 when i noticed the problem.

Taking on board Ratty's suggestion i explicitly set 'ghost matrix off' even though it *hadnt* been turned on ... and it works but i shouldnt have to directly state 'turn something off' ... it cant be set by default can it ? - my land is not semi trans

wierdage

TA

"No Gir ... thats BAD !"
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 8th Apr 2003 16:04
rather that setting a colour for transparency try using a PNG or TGA w/alpha as it's got more depth and you can then edit this in a memblock realtime if you need to.

not quite sure what you mean by your matrix problem though, if you could post up a screenshot would be good

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Scorpyo
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 8th Apr 2003 23:20
1) untextured objects disappear (and textured objects with 1 or more untextured limbs do that too)
2) you must also trigger the transparency flag with the set object command in order to hide the black

Login to post a reply

Server time is: 2026-07-10 19:47:09
Your offset time is: 2026-07-10 19:47:09