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 / [SOLVED] Texturized plain object over another texturized plain object = a bad boundary

Author
Message
Alduce
21
Years of Service
User Offline
Joined: 26th Oct 2002
Location: Rama spaceship
Posted: 27th Aug 2021 09:48
Hi all!
I have a silly problem :

I made a plain object and texturized it with a jet fighter image (using "set image colorkey 255,0,255")

here the code :
[/code]
load image "immagini/aereo1.bmp",100 //jetfighter
make object plain 6000,150,60
set object 6000,1,1,0,0,0
yrotate object 6000,90
texture object 6000,100
[code lang=dbp]

So I made another texturized plain object and I use a cloudly sky image as texture.

Then I put the sky object behind the jetfighter.

Ok here the result:


You can notice that the jet fighter has a blue boundary (blue as the backdrop color)

I can't fix that boundary (contour)!!

If I don't texture the sky plane object I get this :


You can notice that if the sky object is without texture so I get my fighterjet with no boundary (as it should be)

Please how I can use my texturized sky with no boundary on the fighterjet?

I tried a lot with backdrop proprieties but I got nothing

Attachments

Login to view attachments

The author of this post has marked a post as an answer.

Go to answer

Scorpyo
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 28th Aug 2021 09:56
This post has been marked by the post author as the answer.
It's usually related to set object transparency flag (0 to 6) i.e. set object transparency 6000,"flag"
Search in Help/Commands/Basic3D commands/Set Object Transparency
Should work with the flag set to 2 or 4.
Or you just could make your texture a .png with transparency.
Can't remember if you still need to use the Set Object Transparency command though
Cheers
Alduce
21
Years of Service
User Offline
Joined: 26th Oct 2002
Location: Rama spaceship
Posted: 28th Aug 2021 16:25
Scorpyo you solved my problem! Really, really thank you!



Login to post a reply

Server time is: 2024-04-20 01:23:57
Your offset time is: 2024-04-20 01:23:57