-repeat on some texturing?
-repeat on some texturing?
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?
Can anyone explain to me the -repeat on some texturing and how it works? like for moving water?
Re: -repeat on some texturing?
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
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?
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?
This just tiles a texture static?
Re: -repeat on some texturing?
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 ^^^
Can anyone explain whats happening here, i canf kind of see, but it doesnt completely make sense
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
Re: -repeat on some texturing?
While i'm at it, can we .seq the model as well or just the texture?
-
- Posts: 4132
- Joined: Tue Oct 21, 2008 5:20 pm
- Location: Washington, USA
- Contact:
Re: -repeat on some texturing?
.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
Yes, you use a sequence file the same as a .png
-
- Posts: 4132
- Joined: Tue Oct 21, 2008 5:20 pm
- Location: Washington, USA
- Contact:
Re: -repeat on some texturing?
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?
Thanks!!
What is the
0-11 underneath that? just stating the number of images?
What is the
0-11 underneath that? just stating the number of images?
Re: -repeat on some texturing?
The sequence order of the images you've loaded below that.
Re: -repeat on some texturing?
can we .seq the model as well or just the texture?
Re: -repeat on some texturing?
Just the texture. It'd be pretty sweet being able to animate objects though
Re: -repeat on some texturing?
Totally would be dope.!DJ99X wrote:Just the texture. It'd be pretty sweet being able to animate objects though