Author Topic: Transparent scrolling preset texture appears black?  (Read 1254 times)

Offline Arkayy

  • Finest Floof
  • ***
  • Posts: 740
  • Country: us
  • Floof-O-Meter: 40
  • YOU WANNA HAVE BAD TOM?!
    • arkayy.deviantart.com
    • Foxyhobobaggins
    • View Profile
Transparent scrolling preset texture appears black?
« on: June 17, 2013, 07:59:20 pm »
The other day I got this idea for a preset. But in order to finish it, I need a bit of help. See, my goal was to have a wing texture that had one main part that was fixed and another that looks more like particles coming from it. I followed one of the tutorials for scrolling textures and it worked, but behind it will not appear transparent. It will be either white or black. I made sure the image was the appropriate size and had transparency enabled. If someone could help  would greatly appreciate it. I'll post one of the wing codes below:


material preset_6_equipMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
                                scene_blend alpha_blend
            texture particle.png
            scroll_anim 0.2 0.2
         }
      }
      pass
      {
         scene_blend alpha_blend
                        alpha_rejection greater_equal 128
         texture_unit
         {
            texture preset_6equip.png
         }
      }
   }
}

U WANNA HAV EH BAAD TOM?!

Koolwolfe

  • Guest
Re: Transparent scrolling preset texture appears black?
« Reply #1 on: December 07, 2013, 09:08:07 am »
Hello, love. I am sorry, but this does not belong here.

Offline Feareh

  • The Jaguar Artist
  • Ancient Silver Mane
  • *****
  • Posts: 4,026
  • Country: us
  • Floof-O-Meter: 195
  • Where is the Walrus Species?
    • View Profile
Re: Transparent scrolling preset texture appears black?
« Reply #2 on: December 07, 2013, 09:21:36 am »
You perhaps didn't save it as a png. If you are seeing black or white as a default background then you didn't save it as a png and is a solid picture instead of a see through. Did you save the file names as the right one in coding?
Perhaps a screenshot would be helpful too
I Stalk from time to time...I have moved on to other things but do miss this place. Good times
Add me on discord:
Bakujio 🐺#7358

Offline Shally

  • Community Champion
  • ****
  • Posts: 2,049
  • Country: se
  • Floof-O-Meter: 220
    • View Profile
Re: Transparent scrolling preset texture appears black?
« Reply #3 on: December 07, 2013, 12:02:01 pm »
Please look at the date before answering a post - this one is from June - don't necro old threads!