Texture question

Questions and answers about the how and why of making maps.
Post Reply
User avatar
Mostly Harmless!
Private First Class
Private First Class
Posts: 347
Joined: Sun Oct 30, 2005 4:37 am
Location: California

Texture question

Post by Mostly Harmless! »

Is it possible to make a texture stretch over an object rather than tile? If so, how?

I never make stupid mistakes. Only very, very clever ones.
It is not the fall that kills you. It's the sudden stop at the end.
Always remember you are unique. Just like everybody else.
User avatar
optic delusion
Special Forces
Special Forces
Posts: 1052
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

third time today I got this question

Post by optic delusion »

with a texture matrix, or texsize


you can use texsize in your object... I have used it but I'm not entirely sure how to explain it, so I won't. there's three numbers.. texsize and fixedscale can be used at the same time. texsize is easier.


Or in a matrix...scale or fixedscale
use fixedscale followed by two numbers (in my experiance, fixedscale is easier than scale)
the first number will multiply the texture's width, the second it's height.
so--- fixedscale 2 2 --- in the matrix will make the texture twice the size. you need to experiment to make it look right. (I have used numbers as high as 400)
the problem with this is you need to make a new matrix to match every size of object.

also.. you can re-center your texture using center...
make it move with shift or spin...

an example.
#first define the matrix
textureMatrix
name bigringtrix
fixedshift 45 44.9 #this is a slight move to the left, to match 2 objects next to each other
center 0 0
fixedscale 2 4 #twice as wide, four times the height
end

# next define the material and texture, using texmat
material
name matbigring
addtexture title.png
color 1 1 1 1
texmat bigringtrix
end

# now use the material inside the object, using matref
arc
name bigringr1
divisions 8
angle 45
ratio .1 # (outrad - inrad) / outrad
position 0 0 0
specular 0.5 0.5 0.5
shininess 64
size 450 450 20
rotation 0
smoothbounce
#drivethrough
#shootthrough
matref matbigring #here
groupalpha
# phydrv ringspin
texsize 10 1.4 1.4 1
end
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.
User avatar
Mostly Harmless!
Private First Class
Private First Class
Posts: 347
Joined: Sun Oct 30, 2005 4:37 am
Location: California

Post by Mostly Harmless! »

How do the two numbers beside fixedshit work?

I never make stupid mistakes. Only very, very clever ones.
It is not the fall that kills you. It's the sudden stop at the end.
Always remember you are unique. Just like everybody else.
User avatar
optic delusion
Special Forces
Special Forces
Posts: 1052
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Post by optic delusion »

ShiFt (or spin) gives you a texture that moves all the time.
fixedshiFt gives you a texture that moved exactly once.
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.
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 »

You can also use texture mapping, but that is a whole 'nother ball of wax. If you do your own mesh's check out http://www.davidbrinnen.com/tut_wings_3.html.
Respectfully,
I Beg to Remain,
Cordially Yours,
Regards....

Image
Post Reply