Textures movement

Questions and answers about the how and why of making maps.
Post Reply
User avatar
^nightmare^
Private First Class
Private First Class
Posts: 1264
Joined: Sun Feb 20, 2005 7:14 pm
Location: Alabama
Contact:

Textures movement

Post by ^nightmare^ »

Can somebody tell me how to make a texture on a object go downward and spin?
-thanks!
Need bzflag help? Try looking here: http://www.freewebs.com/bznightmare/map ... aghelp.htm
User avatar
ClayOgre
Private First Class
Private First Class
Posts: 227
Joined: Mon Apr 18, 2005 3:17 am
Location: Southern Indiana (originally from Alaska)

Post by ClayOgre »

The below is copied from the bzw man page. The two lines in bold are the commands for what you want. Whatever value you plug into spin is how fast it spins. Shift moves your texture in X and Y. If you are looking at the side of a meshbox that has a texture that you are using shift with, if you set the first value (either positive or negative, if I remember right..one goes up and one goes down). Anyway, the texture will "climb" up th side of the box. Changing the Y value moves it side to side. If you use both shift and spin, it will move and spin at the same time.

fixedspin and fixedscale let you just spin and shift the texture and leave it there, without moving them dynamically in the game. Useful for changing the overall size and orientation of a texture to create different effects.

Hope that helps.


textureMatrix
name example_texmat
scale 0.0 0.0 1.0 1.0 # u/v freqs, u/v scales
spin 0.0 # rotation freq
shift 0.0 0.0 # u/v freqs
center 0.5 0.5 # dynamic u/v center (for spin and scale)
fixedscale 0.0 0.0 # time invariant u/v scale
fixedspin 0.0 # time invariant rotation
fixedshift 0.0 0.0 # time invariant u/v shift
end
Respectfully,
I Beg to Remain,
Cordially Yours,
Regards....

Image
Post Reply