Page 1 of 1

-repeat on some texturing?

Posted: Mon Dec 17, 2012 2:06 am
by 22Ryann
I have searched and cannot find decent documentation on it... ? i noticed some have multiple textures, but im not sure how to name them, or time them or how it works.

Can anyone explain to me the -repeat on some texturing and how it works? like for moving water?

Re: -repeat on some texturing?

Posted: Mon Dec 17, 2012 2:27 am
by Mona
Basically, when -repeat is added to the textures name, it tells MXS to tile the texture past your regular [0,0] --> [1,1] uv space.

If you unwrap a model, say a square plane used for water, you can scale that single planes uv extremely large, so maybe it goes from [0,0] to [100,100]. Your texture will only show up from [0,0] to [1,1] regularly. When -repeat is added, the texture will tile infinitely, all the way to however far your uv goes past [1,1].

You can also use this tile property for vertical and horizontal tiling alone if you set up your texture and uv map correctly.

Regular texture names:
texture.png
texture_norm.png
texture_spec.png

Repeat texture names:
texture-repeat.png
texture_norm-repeat.png
texture_spec-repeat.png

Re: -repeat on some texturing?

Posted: Mon Dec 17, 2012 2:39 am
by 22Ryann
So this doesnt sound like the method people use to create moving water like on the new track Avalon?

This just tiles a texture static?

Re: -repeat on some texturing?

Posted: Mon Dec 17, 2012 2:44 am
by 22Ryann
I notice in this shadertest.zip i found in my searching it has an example of:

waterplane.jm has the texture ripple-repeat.png which now makes sense.. But

It also has

ripplea075.png
ripplea050.png
ripplea025.png
ripplea000.png

and

ripplebc075.png
ripplebc050.png
ripplebc025.png
ripplebc000.png

and

rippleab075.png
rippleab050.png
rippleab025.png
rippleab000.png

And also ripple_norm-repeat.seq <--- new file name to me.

inside this file ^^^

Code: Select all

ANIM1 12 12 8 1
0 1 2 3 4 5 6 7 8 9 10 11
PNG @shadertest/rippleab000.png
PNG @shadertest/rippleab025.png
PNG @shadertest/rippleab050.png
PNG @shadertest/rippleab075.png
PNG @shadertest/ripplebc000.png
PNG @shadertest/ripplebc025.png
PNG @shadertest/ripplebc050.png
PNG @shadertest/ripplebc075.png
PNG @shadertest/rippleca000.png
PNG @shadertest/rippleca025.png
PNG @shadertest/rippleca050.png
PNG @shadertest/rippleca075.png
Can anyone explain whats happening here, i canf kind of see, but it doesnt completely make sense

Re: -repeat on some texturing?

Posted: Mon Dec 17, 2012 3:14 am
by 22Ryann
While i'm at it, can we .seq the model as well or just the texture?

Re: -repeat on some texturing?

Posted: Mon Dec 17, 2012 7:49 am
by wheels1758
.seq is a sequence file. It is sorta like a gif of all the files named within it. The numbers at the top of the .seq change how it acts.

Yes, you use a sequence file the same as a .png

Re: -repeat on some texturing?

Posted: Mon Dec 17, 2012 7:50 am
by wheels1758
Those numbers are for # of images, # of frames, time per frame (128 = 1second), and loop (0 is no, 1 is yes)

Re: -repeat on some texturing?

Posted: Mon Dec 17, 2012 8:24 am
by 22Ryann
Thanks!!

What is the
0-11 underneath that? just stating the number of images?

Re: -repeat on some texturing?

Posted: Mon Dec 17, 2012 9:11 am
by DJ99X
The sequence order of the images you've loaded below that.

Re: -repeat on some texturing?

Posted: Tue Dec 18, 2012 5:39 am
by 22Ryann
can we .seq the model as well or just the texture?

Re: -repeat on some texturing?

Posted: Tue Dec 18, 2012 5:40 am
by DJ99X
Just the texture. It'd be pretty sweet being able to animate objects though

Re: -repeat on some texturing?

Posted: Tue Dec 18, 2012 11:31 pm
by 22Ryann
DJ99X wrote:Just the texture. It'd be pretty sweet being able to animate objects though
Totally would be dope.!