go to www.geomview.org home page
 
Home

Overview
FAQ
Documentation

Download

Mailing List

Geomview For Windows?

Support
Users
Development

Bug Reporting
Contributing
Contact Us

Sponsors

 

Site Search

 

Advanced
Search

 
About the software@geom archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Update REQ 6230]: texure question



Works like a dream, thank you!

>From: Stuart Levy <slevy>
>Date: Wed, 25 Jun 1997 00:11:44 -0500
>Message-Id: <199706250511.AAA12133 at riemann.geom.umn.edu>
>To: software@geom.umn.edu
>Subject: Re:  [ REQ 6230]: texure question
>
>Hmm, doesn't the Maximum Impact have hardware texture-mapping?
>I thought that of the Impact series, only the Solid Impact didn't.
>Still, that doesn't matter, so long as OpenGL supports texture mapping
>(as it must), whether in hardware or software.
>
>Anyway, the problem in your example is that Geomview doesn't
>automatically decide how to apply the texture map; texture-mapping
>is only effective for objects where you've explicitly defined
>texture coordinates.
>
>Actually, for QUAD files, there's no way to specify texture coordinates.
>However, you can texture-map OFF and MESH objects.  The following may do
>what you intend (so long as you have "tifftopnm" in the search path somewhere,
>as it's needed to read .tiff images):
>
>{ appearance
>   {
>      -edge
>      +texturing
>      texture {
>         clamp st
>         apply modulate
>         file test.tiff
>      }
>   }
>   LIST {
>	STCOFF
>	12 3 0	# 12 vertices, 3 faces, don't-care-how-many edges
>          0  0  0   0.5 0.5 0.5 1	0  0
>         10  0  0   0.5 0.5 0.5 1	1  0
>         10 10  0   0.5 0.5 0.5 1	1  1
>          0 10  0   0.5 0.5 0.5 1	0  1
>          0  0  0   0.5 0.5 0.5 1	0  0
>         10  0  0   0.5 0.5 0.5 1	1  0
>         10  0 10   0.5 0.5 0.5 1	1  1
>          0  0 10   0.5 0.5 0.5 1	0  1
>          0  0  0   0.5 0.5 0.5 1	0  0
>          0 10  0   0.5 0.5 0.5 1	1  0
>          0 10 10   0.5 0.5 0.5 1	1  1
>          0  0 10   0.5 0.5 0.5 1	0  1
>
>	4  0 1 2 3
>	4  4 5 6 7
>	4  8 9 10 11
>   }
>}

---------------------------------------------------------------------
Paul Bourke                                           pdb at mhri.edu.au
Brain Dynamics Research Unit                  http://www.mhri.edu.au/
Mental Health Research Institute                   Ph: 61 3 9389 2602
Locked Bag 11, Parkville                          Fax: 61 3 9387 5061
Victoria 3052, Australia


 
Home | Overview | FAQ | Documentation | Support | Download | Mailing List
Windows? | Development | Bug Reporting | Contributing | Contact Us | Sponsors
 
site hosted by
SourceForge Logo