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 / animation transparency problem

Author
Message
Cescano
10
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 24th Dec 2014 06:16
I don't know if is a bug or what, i am trying to use a fire animation to put on a candle (later i will need the same animation as well to do some firecamps), but the texture i apply on the object over the candle doesn't hide the transparent pixels od the video rgb(0,0,0).

what i do is (obviously i have a lot of more code not related to this):

set object 2410,1,1,0
set object texture 2410,0,0

load animation "C:\XXX\Fire.avi",2
play animation to image 2,1501,0,0,150,240

do

if animation playing(2)= 0 then play animation to image 2,1501,0,0,150,240
texture object 2410,1501

sync
loop


I managed to work this on a old project like 10 years ago in darkbasic classic, and now i am stuck for this simple thing
wattywatts
15
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 24th Dec 2014 07:22
Try ghost object on. It will make black parts transparent, I use this same method for fire animations.
Cescano
10
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 24th Dec 2014 07:25
Thank you! I Got it!

Login to post a reply

Server time is: 2025-05-13 14:19:13
Your offset time is: 2025-05-13 14:19:13