trouble with texture matrix

Questions and answers about the how and why of making maps.
Post Reply
User avatar
enrico123
Private First Class
Private First Class
Posts: 91
Joined: Tue Jul 14, 2009 10:49 am
Contact:

trouble with texture matrix

Post by enrico123 »

i have been trying to make this box spin aroung whilst i am playing with texture matrix, but it doesnt seem to be working,can some one help?
"See a need fill a need"-(Bigweld from the movie "Robots")
User avatar
blast
General
General
Posts: 4933
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: trouble with texture matrix

Post by blast »

Maybe, if you actually provide us with some information. Do you have an example?
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
User avatar
optic delusion
Special Forces
Special Forces
Posts: 1054
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Re: trouble with texture matrix

Post by optic delusion »

If you want a box to spin around, you cant do that with a texture matrix.
You need to make drawinfo with angvel, using modeltool with a diconf.
Or you could use this one i just made, complete with uvmap. You will need to add your own texture.

Code: Select all

material
  name cube1_auv
  #texture auvBG.png
  ambient 1.000000 1.000000 1.000000 1.000000
  diffuse 1.000000 1.000000 1.000000 1.000000
  specular 1.000000 1.000000 1.000000 1.000000
  shininess 12.800000
  emission 0.000000 0.000000 0.000000 1.000000
end


mesh
# vertices: 8
# normals: 8
# texcoords: 9
vertex -40.000000 -40.000000 -40.000000
vertex 40.000000 -40.000000 -40.000000
vertex -40.000000 -40.000000 40.000000
vertex -40.000000 40.000000 -40.000000
vertex 40.000000 -40.000000 40.000000
vertex 40.000000 40.000000 40.000000
vertex -40.000000 40.000000 40.000000
vertex 40.000000 40.000000 -40.000000
normal -0.577350 -0.577350 -0.577350
normal 0.577350 -0.577350 -0.577350
normal -0.577350 -0.577350 0.577350
normal -0.577350 0.577350 -0.577350
normal 0.577350 -0.577350 0.577350
normal 0.577350 0.577350 0.577350
normal -0.577350 0.577350 0.577350
normal 0.577350 0.577350 -0.577350
texcoord 0.000000 0.000000
texcoord 1.000000 0.000000
texcoord 0.000000 1.000000
texcoord 1.000000 0.000000
texcoord 1.000000 1.000000
texcoord 0.000000 0.000000
texcoord 0.000000 0.000000
texcoord 1.000000 0.000000
texcoord 0.000000 1.000000
drawInfo
angvel 10
corner 0 0 0
corner 1 1 1
corner 2 2 2
corner 0 0 3
corner 3 3 4
corner 1 1 5
corner 4 4 4
corner 2 2 4
corner 3 3 6
corner 0 0 7
corner 2 2 0
corner 5 5 4
corner 6 6 2
corner 4 4 1
corner 7 7 2
corner 1 1 6
corner 4 4 8
corner 3 3 3
corner 5 5 2
corner 7 7 5
corner 6 6 8
corner 6 6 4
corner 7 7 7


lod #0
lengthPerPixel 0
matref cube1_auv
dlist
tris 0 1 2 3 4 5 2 1 6 7 8 9 10 11 12 13 11 10 5 4 14 15 11 16 17 18 19 20 8 7 21 18 17 22 11 15
end #matref
end #lod 0

end #drawinfo
end # mesh
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.
Post Reply