Eric Heft (eheft++at++dnaco.net)
Tue, 4 Feb 1997 00:52:24 -0500 (EST)
Here is the *SHORT* form of the question?
I want an object is 50'x10' and I have a texture thats
10'x10' and I want the texture to be duplicated 5 times
rather than stretched out?
Here's the background info, at the end is the inventor
model file I'm using. You can search for "GOTOMODEL" to jump
directly to the model.
I'm using performer to run an experiment that
involves displaying a texture on a rectangle and
checking how texture affects speed perception. To
get good data, it's critical to know things like :
Where exactly on the screen the target is placed.
How to move the target with known some velocity.
How to make the target a given color.
I've got a pretty good handle of the first two,
but the third has turned out to be tricky. For our
pilot study we are using a rectangle thats 50'x10'
projected 500'. Later we will use different aircraft
but I don't have to worry about that yet :)
For the pilot study we need that completely specify
whats seen on the screen. Which to me seems like it
can be handled easily by a rectangle thats got a texture
on it so, I scrapted together an inventor model.
The problem is it also stretches out the texture. So how
do I get the texture to be duplicated five times across the
surface of the object?
I'm also having problems picking up information about
the mapping of pixels drawn on the screen to those dumped
by snap_image. I'm thinking its probably that I have anti-alias
on! :)
#Inventor V2.0 ascii *GOTOMODEL*
Separator {
Texture2 {
model DECAL
filename "texture.rgb"
}
Material {
ambientColor 1.0 1.0 1.0
}
Transform {
translation 0 0 0
scaleFactor 10.0 50.0 0.1
}
Cube {
}
}
Thanks for getting to this point! ;)
Eric Heft
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:54:35 PDT