Author Topic: How to make a moving preset  (Read 1065 times)

Offline duna the killer

  • Community Champion
  • ****
  • Posts: 1,663
  • Floof-O-Meter: 35
  • Vacationing 28th - 4th, You all are amazing!
    • View Profile
How to make a moving preset
« on: August 06, 2013, 06:19:50 pm »
Hello floofs! I was wandering how to make a moving preset. I have the codes and everything, but I would like to know how. A little tutorial would be nice. Thanks! (I also want it to be scrolling up and down)

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: How to make a moving preset
« Reply #1 on: August 06, 2013, 06:55:23 pm »
Well first of all you need to make your preset and save it as a .PNG image. Once you have done that, open the preset IMAGE onto a different canvas (make sure that the canvas has a transparent background by right clicking the canvas, go you 'layer' then alpha channel). Once you have done that, get the eraser and erase the pattern you want into the preset. (aka, draw your pattern onto the preset image using the eraser). After that save the preset as a .PNG image and merge the layer, don't flatten it.

Second of all, you need to make an image for the moving texture. (Fill in the whole of the canvas.) After that, save the image as a .JPG image into the preset folder.

Now you're onto the coding:

material preset_4_bodyMatL
{
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.010000 0.010000 0.010000 1.000000
emissive 0.000000 0.000000 0.000000 1.000000
texture_unit
{
texture IMAGETHATMOVES.jpg (IMPORTANT for Texture being jpg! This one is the Moving one, cant be transparent!)
tex_address_mode wrap
filtering trilinear
colour_op replace
scroll_anim 0.0 0.1
}
texture_unit
{
texture preset_4body.png (IMPORTANT for Texture being png! This one is the fixed, not moving. Can be transparent!)
tex_address_mode wrap
filtering trilinear
colour_op alpha_blend
}
}
}

Once you've done that, check to see if it works in preset maker.


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