Details

    • Type: Task Task
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      28

      Description

      I found, that while defining an IndexedFaceSet with polygons it automatically
      will be interpreted to a TriangleFanArray. Which causes the model to break.
      I'll attach a patch for this.

      Also I needed a way to get the file name of the referenced textures, and found
      that the name was never set, I created a patch for this as well.

      I hope you'll find these patches useful.

      — IndexedFaceSet.java 2009-11-23 15:21:40.000000000 +0100
      +++ IndexedFaceSet_orig.java 2006-04-20 10:06:47.000000000 +0200
      @@ -39,7 +39,6 @@
      */
      package org.jdesktop.j3d.loaders.vrml97.impl;
      import com.sun.j3d.utils.geometry.*;
      -
      import java.util.*;
      import javax.media.j3d.BoundingBox;
      import javax.media.j3d.GeometryArray;
      @@ -714,8 +713,7 @@
      }
      else

      { // TODO? handle non-convex with POLYGON - // gi = new GeometryInfo(GeometryInfo.TRIANGLE_FAN_ARRAY); - gi = new GeometryInfo( GeometryInfo.POLYGON_ARRAY ); + gi = new GeometryInfo(GeometryInfo.TRIANGLE_FAN_ARRAY); }

      buildIndexLists();

      — ImageTexture.java 2009-11-23 16:17:08.000000000 +0100
      +++ ImageTexture_orig.java 2009-11-23 16:17:32.000000000 +0100
      @@ -344,14 +345,6 @@
      impl.setMagFilter( Texture.BASE_LEVEL_LINEAR );

      impl.setEnable( true );

      • String fileName = urlObj.getPath();
      • if ( fileName != null && !"".equals( fileName ) ) {
      • int count = fileName.lastIndexOf( "/" );
      • if ( count != -1 ) { - fileName = fileName.substring( count + 1 ); - }
      • impl.setName( fileName );
      • }

      }

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            cattaka
            Reporter:
            rbezema
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: