-repeat on some texturing?

All about making tracks for MX Simulator
Post Reply
22Ryann
Posts: 254
Joined: Sat Jul 09, 2011 9:44 am
Team: Thrashedkids

-repeat on some texturing?

Post 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?
Mona
Posts: 1645
Joined: Thu Jul 31, 2008 6:46 pm
Team: MotoOption

Re: -repeat on some texturing?

Post 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
22Ryann
Posts: 254
Joined: Sat Jul 09, 2011 9:44 am
Team: Thrashedkids

Re: -repeat on some texturing?

Post 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?
22Ryann
Posts: 254
Joined: Sat Jul 09, 2011 9:44 am
Team: Thrashedkids

Re: -repeat on some texturing?

Post 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
22Ryann
Posts: 254
Joined: Sat Jul 09, 2011 9:44 am
Team: Thrashedkids

Re: -repeat on some texturing?

Post by 22Ryann »

While i'm at it, can we .seq the model as well or just the texture?
wheels1758
Posts: 4132
Joined: Tue Oct 21, 2008 5:20 pm
Location: Washington, USA
Contact:

Re: -repeat on some texturing?

Post 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
wheels1758
Posts: 4132
Joined: Tue Oct 21, 2008 5:20 pm
Location: Washington, USA
Contact:

Re: -repeat on some texturing?

Post by wheels1758 »

Those numbers are for # of images, # of frames, time per frame (128 = 1second), and loop (0 is no, 1 is yes)
22Ryann
Posts: 254
Joined: Sat Jul 09, 2011 9:44 am
Team: Thrashedkids

Re: -repeat on some texturing?

Post by 22Ryann »

Thanks!!

What is the
0-11 underneath that? just stating the number of images?
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: -repeat on some texturing?

Post by DJ99X »

The sequence order of the images you've loaded below that.
22Ryann
Posts: 254
Joined: Sat Jul 09, 2011 9:44 am
Team: Thrashedkids

Re: -repeat on some texturing?

Post by 22Ryann »

can we .seq the model as well or just the texture?
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: -repeat on some texturing?

Post by DJ99X »

Just the texture. It'd be pretty sweet being able to animate objects though
22Ryann
Posts: 254
Joined: Sat Jul 09, 2011 9:44 am
Team: Thrashedkids

Re: -repeat on some texturing?

Post by 22Ryann »

DJ99X wrote:Just the texture. It'd be pretty sweet being able to animate objects though
Totally would be dope.!
Post Reply