Yann Andenmatten (andenmat++at++imtsg11.epfl.ch)
Mon, 16 Dec 1996 18:25:17 +0100
I'm trying to apply texture with a cylindrical function.
My problem is that I can't associate only one point of the texture per vertice,
but once I've turned around the object, I've a joint's problem.
y v
^ ^
_2_ |________
3.' | `.1 | |
/ | \ | |
4| +----|0-> x | |
\ / | |
5`.___.'7 +--------+--> u
6 0 1
Here I apply the texture 8 times (0 to 1, 1 to 2, ... , 7 to 0)
The problem is for the segment between 7 and 0 : the texture is applied 7
times.
A solution is :
y v
^ ^
_2_ |________
3.' | `.1 | |
/ | \ | |
4| +----|0-> x | |
\ / | |
3`.___.'1 +--------+--> u
2 0 1
But the disadvantage is the generation of a symmetry (segments 1-0-1 and
3-4-3).
Is there an other solution ?
For the moment I use the setRepeat (PFTEX_WRAP, PFTEX_REPEAT).
Thanks for helping me !
Yann
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[][][] [][] [][][] [] > Ecole Polytechnique Federale de Lausanne
[] [] [] [] [] > Swiss Federal Institute of Technology
[][] [][][] [][] [] >
[] [] [] [] > Yann Andenmatten, +41.22 693.58.50
[][][] [] [] [][][] > yandenmat++at++di.epfl.ch
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
=======================================================================
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:10 PDT