Feral Heart

Help & Guidance => Game Help => Topic started by: .Sasha. on June 24, 2015, 08:18:50 pm

Title: Semi-Transparent AND Scrolling Codes?
Post by: .Sasha. on June 24, 2015, 08:18:50 pm
Im making a preset where the base is semi-transparent, so a full body just a bit see-through, and another, scrolling/moving one above. But i tried a couple of scripts from Tiggs thread and in all of them the body was either completely invisible or completely there...so uh, any help?
Title: Re: Semi-Transparent AND Scrolling Codes?
Post by: Ruby1234 on June 24, 2015, 09:39:52 pm
See if this clears anything up for you?;
http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=26062.0 (http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=26062.0)
Title: Re: Semi-Transparent AND Scrolling Codes?
Post by: .Sasha. on June 25, 2015, 10:06:47 am
I tried around a bit, but the body still turns out completely invisible, i guess the semi-transparency code and the scrolling one can't be combined?

this is what i got now, maybe someone can see the issue?

Code: [Select]
{
receive_shadows on
technique
{
pass
{
depth_check on
depth_write off
scene_blend alpha_blend
texture_unit
{
texture preset_6body.png
}
texture_unit
{
texture preset_6bodymove.png
scroll_anim 0.0 0.1
}
}
}
}
Title: Re: Semi-Transparent AND Scrolling Codes?
Post by: Enoki on June 26, 2015, 05:16:25 am
Hmmm, unfortunately, I cannot tell what is going on in y'er coding. I'm not particularly code-savvy, but, I do not think ye can do both. Y'er scrolling requires a non-transparent background to scroll.

But, I wonder if ye can make y'er scrolling texture somewhat transparent instead of y'er preset's body.

Sorry I couldn't be of more help. Good luck with y'er preset floof!
Title: Re: Semi-Transparent AND Scrolling Codes?
Post by: Whinp on June 26, 2015, 07:16:37 am
are you trying to do semitransparent AND scrolling on a single part of the body or just semi on one and scrolling on another?


because iirc you can't do the first


edit: oh nvm, i was confusing semitransparent with a paw for example being transparent, sorry. a sec


edit2: pretty sure the code is supposed to be like this (left & right body only)

Code: [Select]
material preset_6_bodyMatL
{
 technique
 {
  pass
  {
   texture_unit
   {
    texture preset_6bodymove.png
    scroll_anim 1.0 1.0
   }
  }
  pass
  {
   depth_check on
   depth_write off
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_6body.png
   }
  }
 }
}
material preset_6_bodyMatR
{
 technique
 {
  pass
  {
   texture_unit
   {
    texture preset_6bodymove.png
    scroll_anim 1.0 1.0
   }
  }
  pass
  {
   depth_check on
   depth_write off
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_6body.png
   }
  }
 }
}
Title: Re: Semi-Transparent AND Scrolling Codes?
Post by: .Sasha. on June 26, 2015, 06:31:15 pm
Welp, looks like it doesn't work then, i tried the code but the body is still fully visible...

Anyways, thanks to everyone for the help! c: