Author Topic: Scrolling Preset Problem  (Read 2531 times)

Offline Coco1

  • Curious Wanderer
  • *
  • Posts: 24
  • Country: 00
  • Floof-O-Meter: 2
  • Loki of Asgard. God of Mischief
    • View Profile
Scrolling Preset Problem
« 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:

This i the earased around the body. And below is the original, in the both ways it still doesn't work. :/


And this is picture of what happens if the explanations aren't enough:
« Last Edit: January 09, 2014, 01:42:45 pm by ~Frost~ »
I am Loki of Asgard and I am burdened with glorious purpose.

Offline Chunky_Squirrel

  • Elder Grey Pelt
  • ****
  • Posts: 2,769
  • Country: 00
  • Floof-O-Meter: 125
  • Forever Flaming
    • View Profile
Re: Scrolling Preset Problem
« Reply #1 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
Hope I make here a scence's. Hehe. xD
Good luck on making your preset. Btw, it looks very beautiful. ^o^
« Last Edit: January 09, 2014, 04:17:16 pm by Hackers. »

Profile picture by me! ^.^
IM BACK!!!

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: Scrolling Preset Problem
« Reply #2 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
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 Bawfle

  • Courage is not the absence of fear but rather the judgement that something is more important than fear.
  • Elder Grey Pelt
  • ****
  • Posts: 3,147
  • Country: gb
  • Floof-O-Meter: 344
  • The Zambisi Pride
    • View Profile
Re: Scrolling Preset Problem
« Reply #3 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
}
}
}
}


Pixel Doll Commissioned and Coloured by RingoKioko
Inactive // Retired // Gone

Offline Coco1

  • Curious Wanderer
  • *
  • Posts: 24
  • Country: 00
  • Floof-O-Meter: 2
  • Loki of Asgard. God of Mischief
    • View Profile
Re: Scrolling Preset Problem
« Reply #4 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.
« Last Edit: January 10, 2014, 08:00:17 am by ~Frost~ »
I am Loki of Asgard and I am burdened with glorious purpose.

AlphaEclipse

  • Guest
Re: Scrolling Preset Problem
« Reply #5 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.