Bug with PFDMESH_RETESSELLATE ?

New Message Reply Date view Thread view Subject view Author view

Lionel Maiaux (maiaux++at++platine.corys.fr)
Mon, 16 Sep 1996 12:24:26 -0600


Hi,

I think I found a bug in the libpfdu mesher with the retessalate option on.

I have 2 adjacent quads mapped with the same texture but with "mirrored"
(english?) texture coordinates like this :

Texture :
-------

        ...................
        . .
        . .
        . +---- .
        . | .
        . +-- .
        . | .
        . +---- .
        . .
        . .
        ...................

2 Quads with texture coordinates:
--------------------------------

        +-----------------+-----------------+
|(1,1) (0,1)|(0,1) (1,1)|
| | |
| ----+ | +---- |
| | | | |
| --+ | +-- |
| | | | |
| ----+ | +---- |
| | |
|(1,0) (0,0)|(0.0) (1,0)|
        +-----------------+-----------------+

If the retesselation orders the vertices like the next figure, all is OK ...

         +0 +2 +4
| * | * |
| * | * |
| * | * |
| * | * |
| * | * |
        1+ 3+ +5

... but sometimes, the retesselation orders the vertices like that :

        0+-----------+1 +3
                   * * *
                 * * *
               * * *
             * * *
           * * *
        2+ 4+-----------+5

In this case, texture coordinates are interpollated between vertices 2 and 3
from (1,0) to (1,1), so 's' coordinate doesnt change !

Should it be possible to choose systematically the correct way of retesselation
???

-- 
--------------------------------------------------------------------------------                        Lionel Maiaux
                       l.maiaux++at++corys.fr
--------------------------------------------------------------------------------
=======================================================================
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:53:32 PDT

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