Feral Heart

Help & Guidance => Game Help => Topic started by: Coco1 on January 09, 2014, 01:40:56 pm

Title: Scrolling Preset Problem
Post by: Coco1 on January 09, 2014, 01:40:56 pm
So I've decided to make something new like a scrolling markings preset. I've made only the body to test it out. I erased the parts i need to scroll and saved it as .png . Then i found the texture i need and saved it as .png also. Then i edited the file:
Code: [Select]
material preset_6_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture PresetBodyM.png
scroll_anim 0.1 0.1
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_6body.png
}
}
}
}
material preset_6_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture PresetBodyM.png
scroll_anim 0.1 0.1
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_6body.png
}
}
}
}

So the preset_6body.png is the body and PresetBodyM.png is the texture i want to scroll.  I opened preset maker and the body looked like is erased it and the crolling  texture doesn't show.
Here are pics of the preset body and scrolling texture:
(http://i41BannedImageSite/68hf7a.png)
This i the earased around the body. And below is the original, in the both ways it still doesn't work. :/
(http://i41BannedImageSite/ydpgw.png)
(http://i41BannedImageSite/27xqtq9.png)
And this is picture of what happens if the explanations aren't enough:
(http://i41BannedImageSite/2i79y.png)
Title: Re: Scrolling Preset Problem
Post by: Chunky_Squirrel on January 09, 2014, 04:12:44 pm
I don't know much about preset's, but you forgot this.
(I'm showing you Ruby's example's, on how to make a scrolling preset.)

material preset_#_bodyMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_#body.png
         }
      }
   }
}
material preset_#_bodyMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_#body.png
         }
      }
   }
}
material preset_#_headMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_#head.png
         }
      }
   }
}
material preset_#_headMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_#head.png
         }
      }
   }
}
material preset_#_eyeMatL
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_#eye.png
         }
      }
   }
}
material preset_#_eyeMatR
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_#eye.png
         }
      }
   }
}
material preset_#_tailMat
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_#tail.png
         }
      }
   }
}
material preset_#_maneMat
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         alpha_rejection greater_equal 128
         texture_unit
         {
            texture preset_#mane.png
         }
      }
   }
}



(Just a short one)

material preset_#_bodyMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_#body.png
            scroll_anim 1.0 1.0
         }
      }
   }
}
material preset_#_bodyMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_#body.png
            scroll_anim 1.0 1.0
         }
      }
   }
}
material preset_#_headMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_#head.png
            scroll_anim 1.0 1.0
         }
      }
   }
}
material preset_#_headMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_#head.png
            scroll_anim 1.0 1.0
         }
      }
   }
}
material preset_#_eyeMatL
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_#eye.png
            scroll_anim 1.0 1.0
         }
      }
   }
}
material preset_#_eyeMatR
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_#eye.png
            scroll_anim 1.0 1.0
         }
      }
   }
}
material preset_#_tailMat
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_#tail.png
            scroll_anim 1.0 1.0
         }
      }
   }
}
material preset_#_maneMat
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         alpha_rejection greater_equal 128
         texture_unit
         {
            texture preset_#mane.png
            scroll_anim 1.0 1.0
         }
      }
   }
}


(The second part)

(And now your's)

material preset_6_bodyMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture PresetYou forgot this simbols here: _#BodyM.png
            scroll_anim 0.1 0.1
         }
      }
      pass
      {
         scene_blend alpha_blend
         texture_unit   
         {
            texture preset_6body.png
         }
      }
   }
}
material preset_6_bodyMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture PresetAgain this: _#BodyM.png
            scroll_anim 0.1 0.1
         }
      }
      pass
      {
         scene_blend alpha_blend
         texture_unit   
         {
            texture preset_6body.png
         }
      }
   }
}


You see, you did everything right, but you haven't noticed, to type in the numbers. Heh. ;)
Hope I'm helpful here, and If you want to clear your mind berrar, check out Ruby's tutorial. ;)
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)
Hope I make here a scence's. Hehe. xD
Good luck on making your preset. Btw, it looks very beautiful. ^o^
Title: Re: Scrolling Preset Problem
Post by: Feareh on January 09, 2014, 06:00:30 pm
 The coding your are using seems to be wrong I think. Here, try this coding and see if it works.
Code: [Select]
material preset_4_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_4scroll.png
scroll_anim 0.6 0.6
}
texture_unit
{
texture preset_4body.png
colour_op alpha_blend
}
texture_unit
{
texture preset_4body.png
colour_op_ex blend_current_alpha src_texture src_current
tex_address_mode wrap
filtering trilinear
}
}
}
}
Make sure when you use this you input the right file name and save the needed file types
Title: Re: Scrolling Preset Problem
Post by: Bawfle on January 09, 2014, 06:09:44 pm
It also appears that your main texture is yellow and black. Switch to Direct3D9 by going to Options\Video\Rendering Subsystem. That should then turn the yellow and black into white, hopefully the preset will work after. Also by using THIS CODE which will also be easier to use and fix this preset problem.

Code: [Select]
material preset_#_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_#scroll.png
scroll_anim 1.0 1.0
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_#body.png
}
}
}
}
material preset_#_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture preset_#scroll.png
scroll_anim 1.0 1.0
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_#body.png
}
}
}
}
material preset_#_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_#scroll.png
scroll_anim 1.0 1.0
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_#head.png
}
}
}
}
material preset_#_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_#scroll.png
scroll_anim 1.0 1.0
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_#head.png
}
}
}
}
material preset_#_eyeMatL
{
technique
{
pass
{
texture_unit
{
texture preset_#scroll.png
scroll_anim 1.0 1.0
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_#eye.png
}
}
}
}
material preset_#_eyeMatR
{
technique
{
pass
{
texture_unit
{
texture preset_#scroll.png
scroll_anim 1.0 1.0
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_#eye.png
}
}
}
}
material preset_#_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_#scroll.png
scroll_anim 1.0 1.0
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_#tail.png
}
}
}
}
material preset_#_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_#mane.png
scroll_anim 1.0 1.0
}
}
}
}
Title: Re: Scrolling Preset Problem
Post by: Coco1 on January 10, 2014, 05:01:02 am
Thanks guys. I will see if they work and tell you. (School is now)

EDIT:
Still doen't work. I tried all the codes. My computer just hates me :/ . I changed the scolling thing to preset_6scroll.png and editted the material file. Also did turned the rendering subsystem to Direct3D9, but still nothing.
Title: Re: Scrolling Preset Problem
Post by: AlphaEclipse on January 11, 2014, 04:18:24 am
I don't think your actually saving the body parts as .png(s). See how the 'invisible parts' are still white?

.png(s) Support transparency. Therefor, and thing that is a .png will be transparent when ever there is something white like that.

Your coding looks fine to me. When you colored the preset, did you just color the parts you wanted invisible white or did you erase them with with all layers merged? If your satisfied with your preset, merge all layers and THEN erase the parts you want to scroll.

If this doesn't help, if you'd like I'll fix them myself for you. ^^ I'd take two seconds; I'd just have to wait to get on my PC.