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 / Problem with Alpha channel

Author
Message
Sagan
23
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 10th Apr 2003 23:26
I have made one image that have alpha channel, and I have problems using it in DBPro.

In this code, half the objects behind other object don’t show!
Any problem with the code, or is a DBPro bug?

DBP Patch 4 / GF4 MX440
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 10th Apr 2003 23:43
Can you post a link for the image? Without that we'll just be guessing. Or can you email it too me?
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 11th Apr 2003 02:08
Here's working code:



After I realised you wanted a billboard effect, it was quite easy to fix - just one line really.
Sagan
23
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 11th Apr 2003 06:35
thx, but I still have the same problem...
Not all stars apear behind the near stars...

IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 11th Apr 2003 10:34
It works better when I include ,1 at the end of the load image command, but even without, I was getting the stars in the background showing correctly when overlapped by nearer stars.

I'm using Patch3.1 on this machine. What are you using? If you think you have a problem with your patch level, pack everything up into a zip file with example screen shots and mail them to Mike - it may just be over-eager culling.
Sagan
23
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 12th Apr 2003 17:57
I already solve the problem

I will use:
Ghost object on i

Instead of:
Set object transparency i,1

The object has a different look from the graphic program I use to make the image, but I will work around…

IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 12th Apr 2003 21:00
I've looked at the screenshot you sent me. The problem this is showing is what I got when I loaded the image with anti-aliasing active.

If the prog you sent me has the ',1' added to the load image command then you have what appears to be a DBPro bug.

If not, then try adding the ',1' and see what happens.

Login to post a reply

Server time is: 2026-07-11 04:22:59
Your offset time is: 2026-07-11 04:22:59