Author Topic: Question for Preset Coders! - Is there any possible way to make a scrolling...  (Read 1937 times)

Offline Arkayy

  • Finest Floof
  • ***
  • Posts: 740
  • Country: us
  • Floof-O-Meter: 40
  • YOU WANNA HAVE BAD TOM?!
    • arkayy.deviantart.com
    • Foxyhobobaggins
    • View Profile
So my question is...

Is there any possible way to make a scrolling texture transparent? I was having trouble with this when i was trying to make my gaia preset wings.





This is what happens when I load it on the game. I made sure the scrolling texture was black but to no avail, still fails. I tried for hours trying to change the code and the only difference i ever got was the black turning white. I'll post the code im using below if it helps as well.


Code: [Select]
material preset_6_equipMatL
{
receive_shadows on
technique
{
pass
{
ambient 1.000000 1.000000 1.000000 1.000000
diffuse 1.000000 1.000000 1.000000 1.000000
specular 0.050000 0.050000 0.050000 1.000000 12.500000
emissive 0.000000 0.000000 0.000000 1.000000
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
scene_blend alpha_blend
texture_unit
{
texture preset_6equip.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_6_equipMatR
{
receive_shadows on
technique
{
pass
{
ambient 1.000000 1.000000 1.000000 1.000000
diffuse 1.000000 1.000000 1.000000 1.000000
specular 0.050000 0.050000 0.050000 1.000000 12.500000
emissive 0.000000 0.000000 0.000000 1.000000
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
scene_blend alpha_blend
texture_unit
{
texture preset_6equip.png
tex_address_mode wrap
filtering trilinear
}
}
}
}

preset_6equip.png is the branch that's the rim of the wing and the other texture is made up of the small petals. If anyone can figure this out, i will love you forever since i want to use something similar for my next preset!

U WANNA HAV EH BAAD TOM?!

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Forgive me, but I am terribly confused on what you are trying to achieve here, since this texture doesn't sound like its transparent, there's only one, and the code doesn't say anything about scrolling. owo
But first, let me say, this;
Quote
ambient 1.000000 1.000000 1.000000 1.000000
diffuse 1.000000 1.000000 1.000000 1.000000
specular 0.050000 0.050000 0.050000 1.000000 12.500000
emissive 0.000000 0.000000 0.000000 1.000000
does absolutely nothing that you will notice.
So it's safe to say you don't need that.
But please, let me know what you are trying to do here, and I can create a code for you.

Offline Arkayy

  • Finest Floof
  • ***
  • Posts: 740
  • Country: us
  • Floof-O-Meter: 40
  • YOU WANNA HAVE BAD TOM?!
    • arkayy.deviantart.com
    • Foxyhobobaggins
    • View Profile
Oh alright. Basically I wanted a scrolling texture where some markings would stay on top as a different image, but to have the scrolling part have transparent parts also instead of a gradient below.

I checked both images to make sure transparent in the spots i wanted. The section that actually moves doesnt want to be transparent even though the texture is and just turns black. :(

I'm sorry if im still not explaining it clearly. v.v I'm terrible when it comes to coding.

U WANNA HAV EH BAAD TOM?!

Offline Tearless

  • The strange artist about whom your mother warned you...
  • Finest Floof
  • ***
  • Posts: 604
  • Country: 00
  • Floof-O-Meter: 81
  • Weird Absentee Uncle
    • View Profile
    • My DeviantArt
The only way to achieve that effect would be to use the animation code and make each individual frame; kind of like making a .gif or animation. Tedious, yes, but there's no way to combine the scrolling and transparent codes that I'm currently aware of.

Offline Arkayy

  • Finest Floof
  • ***
  • Posts: 740
  • Country: us
  • Floof-O-Meter: 40
  • YOU WANNA HAVE BAD TOM?!
    • arkayy.deviantart.com
    • Foxyhobobaggins
    • View Profile
Ah ok. Thanks, I'll try that.  I don't mind if its tedious, it's just I didn't want it to have that awkward pause when it resets you know?

U WANNA HAV EH BAAD TOM?!

Offline Tearless

  • The strange artist about whom your mother warned you...
  • Finest Floof
  • ***
  • Posts: 604
  • Country: 00
  • Floof-O-Meter: 81
  • Weird Absentee Uncle
    • View Profile
    • My DeviantArt
Yeah... it's possible with some work, though, maybe try to create a seamless texture that you can move across a little with each frame in photoshop and get a smooth loop that way... that might have made no sense, sorry.