Help with textures.

New Message Reply Date view Thread view Subject view Author view

Eric Heft (eheft++at++dnaco.net)
Wed, 5 Feb 1997 17:05:41 -0500 (EST)


Hello,

   Brief question:

How do I get an inventor object with a texture, to display
the texture *EXACTLY* the way its defined in the texture image?
(at a range where the object is the same size as the texture)

   Background:

I'm writting a program thats going to be used in vision research,
and its important to be able to say exactly whats going on when we
present a stimulus and before we can do the interesting objects we've
got to get some pilot stuff out of the way.

So, we need to present a checker board with nice sharp edges. I've
created a rgb image file with the checker board. I figured I map this
onto a simple object.

   *THE PROBLEM*

If I bring the object close to me the edges of the checker board
are blured! I've tried turning anti-aliasing on and off and it makes
no difference. I've set the texture model to DECAL which at least
gets rid of the shading problem :)

   In the man page for pfTexture there is a pfTexFilter function,
could this be what I want? How would I use it with the model?
Where can I look for more information? etc,etc :)

    
Here is the basic inventor model I'm using.

#Inventor V2.0 ascii

Separator {
    Texture2 {

        model DECAL
        filename "chkbrd.rgb"
    }
    Material {
        ambientColor 1.0 1.0 1.0
    }
    Transform {
        translation 0 0 0
        scaleFactor 10.0 10.0 0.1
    }
    Cube {
    }
}

Thanks,
Eric

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:54:35 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.