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 / A problem regarding alpha maps now :(

Author
Message
Interplanetary Funk
16
Years of Service
User Offline
Joined: 19th Apr 2010
Location: Ipswich, United Kingdom
Posted: 26th Jan 2011 01:15
I seem to have been running into problem after problem after problem this week, and this latest one I simply can't get my head around, I'm using the following code:

(The tree was made in TreeMagik and I've tried both .x and .dbo)

however, when I set the second variable of "set object transparency" as 1 the edges end up being thick and the same colour as the camera backdrop (this gets amplified tenfold the further away you get), however, none of the other transparency options seem to work either, I've attached a screen shot of some of the things going wrong.

Thanks in advance for any help.

BASIC programmers never die, they GOSUB and don't RETURN.
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 26th Jan 2011 13:28 Edited at: 26th Jan 2011 13:47
I'm fairly sure you shouldn't be using transparency mode 1 since it will draw it first which means it gets blended with the backdrop (since that's the only thing there). I would have thought one of modes 4 or 6 should work.

Have a look for chafari's posts a few months back. I think he sorted this problem out - and there have been a few others since.

Edit Try this:

Interplanetary Funk
16
Years of Service
User Offline
Joined: 19th Apr 2010
Location: Ipswich, United Kingdom
Posted: 26th Jan 2011 19:16
Thanks, moving the set transparency and adding the set object texture seems to have worked perfectly, tyvm.

BASIC programmers never die, they GOSUB and don't RETURN.
sindore
22
Years of Service
User Offline
Joined: 2nd Jul 2004
Location: Bedfordshire, UK
Posted: 27th Jan 2011 02:19
got to say I'm well imprest with this, I didn't think about using (set object texture) this stops the detail of the tree top from becoming wispy and fading at a distance, I'm glad I came across this post.

I had bin using (set alpha mapping on obj,99) and this did give me the right transparency, but the tree tops would fad as the camera moved away from them, so I guess what I'm trying to say Green Gandalf is thank you, and thank you PlanetaryFunk for asking this question it came at just the right time.

Soul sucking devils, twisting the body's of the damned, slivering slim drips from every poor, sin licking at ears, and a smell so bad it stings the eyes, welcome to the darkness.
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 27th Jan 2011 12:08
Yes, the fading is caused by the mipmapping which I've turned off in that command.

Login to post a reply

Server time is: 2026-07-16 12:19:28
Your offset time is: 2026-07-16 12:19:28