Author Topic: Preset Help- Moving Textures?  (Read 4580 times)

Hydraulis

  • Guest
Preset Help- Moving Textures?
« on: July 31, 2011, 11:26:41 pm »
So, I wanted to make a preset with animation on the legs.
 I got all the frames done, and got a code for moving texture.
When I plugged in the 10 frame names and checked the preset on the Preset Maker, the whole body was white and didn't show the texture.

 Am I using the wrong code, or saving the frames in the wrong format (.png)? Or is having the .jpg and .riff copies in the same folder screwing it up? Please help.

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Preset Help- Moving Textures?
« Reply #1 on: July 31, 2011, 11:41:25 pm »
I'd need to see the code, and tell me what format your image is saved in. ;)

Hydraulis

  • Guest
Re: Preset Help- Moving Textures?
« Reply #2 on: August 01, 2011, 12:18:24 pm »
The code I used is here: http://feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=5665.0

The first code under "Using Different Textures, like a GIF."

I saved the files in .jpgs, but changed them to .pngs for use in the codes.

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Preset Help- Moving Textures?
« Reply #3 on: August 01, 2011, 12:47:55 pm »
Okay, yes they should be .png files. Now, you got this:
Code: [Select]
material preset_9_eyeMatL
{
    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
            {
                anim_texture Texture1.png Texture2.png Texture3.png 2.5 (the 2.5 is the Time the Texture is shown. The bigger the Time, the longer the Texture stays)
                tex_address_mode wrap
                filtering trilinear
                rotate_anim 0.00 (add a number if you want it to be scrolled)
            }
        }
    }
}
And changed the names to your images and got rid of the extra text, no?

Hydraulis

  • Guest
Re: Preset Help- Moving Textures?
« Reply #4 on: August 01, 2011, 05:44:57 pm »
Yes I did. And maybe it's because all the animation part includes the whole body? Like, Y'know how when you're doing glowing marks, the glowing stuff has to be on a separate layer by itself... did I have to do that with the animation?

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Preset Help- Moving Textures?
« Reply #5 on: August 01, 2011, 08:23:30 pm »
Yes, all need to be separate images. ;)

Hydraulis

  • Guest
Re: Preset Help- Moving Textures?
« Reply #6 on: August 02, 2011, 11:50:22 am »
Oh, ok. Thanks! I'll reply again if it works.

Hydraulis

  • Guest
Re: Preset Help- Moving Textures?
« Reply #7 on: August 02, 2011, 12:40:26 pm »
It didn't work. :\ The body is still pure white, like it's unfinished.

I made sure the animation part was separate with a transparent background, saved it as a .png, and made sure the code had the correct names. Maybe I'm using the wrong code?

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Preset Help- Moving Textures?
« Reply #8 on: August 02, 2011, 03:29:53 pm »
Are you trying to just make the texture scroll/move?

Hydraulis

  • Guest
Re: Preset Help- Moving Textures?
« Reply #9 on: August 02, 2011, 10:11:53 pm »
Yeah. I want a little 10-frame animation on just the legs, nothing else moving. And I don't want it scrolling.