Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / Xith3D Forums / Re: Multiple copy of a shape3D on: 2006-11-21 04:34:11
i know i m being greedy... Wink but i m very new into this...so plzzzzzz....

if i have copied any shape3D object and now i want to paste it on mouseclick position,then how i can u do it.....n i dont want to delete the original copy...its like normal copy-paste functionality...
for ex- i have copied a rectangle and now i want to paste it on mouseclick position ,then how can i do it?Huh
2  Java Game APIs & Engines / Xith3D Forums / Re: Multiple copy of a shape3D on: 2006-11-21 04:18:49
Thanks Wenger...thanks for sharing your knowledge with me...its reall gonna help me alot..... Smiley
3  Java Game APIs & Engines / Xith3D Forums / Re: Multiple copy of a shape3D on: 2006-11-20 04:39:22
thanks Wenger... Smiley
as you have mentioned that if i want to make real copies,then there are some methods in Xith,which can help....
actually i didn't get the idea of  "real" copies...can u plz tell what does you mean by REAL copiesand what are the methods to create them....
4  Java Game APIs & Engines / Xith3D Forums / Multiple copy of a shape3D on: 2006-11-16 11:39:17
Hey Guys...!!!
if i need to make multiple copy of a shape3D object..then how can i do that?? For example...if there is an shape 3D object Sphere and i want to make 20 copies of that object then what should i do....Huh is there any method in Xith ,which can help me....
plzzz let me know......
5  Java Game APIs & Engines / Java 3D / Re: my java3d project problem!!help on: 2006-07-19 11:06:28
i m also facing the same problem....i also want tat when the user clicks on the screen, then is should zoom from  that place ,not from the center. if u find any solution ,then plzzz let me know also...i will also do the same if i got any solution...
6  Java Game APIs & Engines / Xith3D Forums / Re: now IndexedQuadArray works perfectly... on: 2006-05-26 19:30:00
thanx buddy..i m sure,it will work 4 everyone.. Smiley
7  Java Game APIs & Engines / Xith3D Forums / now IndexedQuadArray works perfectly... on: 2006-05-26 17:17:11
while i was trying to implement  the Indexed geometry Array,i came across a problem.When i used the IndexedTriangleArray,the geometry has been drawn perfectly. But when i tried to use IndexedQuadArray,absolutely nothing was displayed on the screen.Isearched the forum,if anyone else has faced the sanme problem.I found many people who has also faced the same problem,but no one has comeup with the solution.
 Then i checed the library class of Xith, and i found that in PACKAGE--com.xith3d.render.jogl......CLASS----ShapeAtomPeer....METHOD---private void drawGeometry(CanvasPeer canvas, GL gl, GeometryArray geoArray), some code is missing...actually the functinality of IndexedTriangle is defined ,but nothing for IndexedQuadArray ,IndexedLineArray,IndexedLineStrip Array is defined. Then i just added the function of the missing Arrays, n it start working perfectly. PLzzz try this in ur programs, and let me know if it works correctly in ur programs also.
  The modified method is.......


  private void drawGeometry(CanvasPeer canvas, GL gl, GeometryArray geoArray) {
       
        ProfileTimer.startProfile("drawGeometry");
        int numVertices = geoArray.getValidVertexCount();
//       
        if (numVertices == 0) {
            if (CanvasPeerImpl.debugGL) Log.print(LogType.DEBUG, "Skipping because there are no valid vertices ");
            ProfileTimer.endProfile();
            return;
        }

       

        // get the format of verticies
        int format = geoArray.getVertexFormat();

        int stripCount = 0;
        int[] stripVertexCounts = null;

        // if a strip array then get the above two values
        if (geoArray instanceof GeometryStripArray) {
            stripCount = ((GeometryStripArray) geoArray).getNumStrips();
            stripVertexCounts = ((GeometryStripArray) geoArray).
                    getStripVertexCounts();
            if (CanvasPeerImpl.debugGL) Log.print(LogType.DEBUG, "Drawing a strip array " + stripCount + " strips");
        }

        // find out if color3f data was supplied and if it was use it


        int mode = 0;

        if ((geoArray instanceof IndexedGeometryArray)) {
            canvas.addTriangles( ((IndexedGeometryArray)geoArray).getValidIndexCount()/geoArray.getFaceSize());
           
        } else if (geoArray instanceof TriangleArray) {
            if (CanvasPeerImpl.debugGL) Log.print(LogType.DEBUG, "Drawing a triangle array with " + numVertices + " vertices");
            mode = GL.GL_TRIANGLES; // say that we want to draw trianlges
            canvas.addTriangles(numVertices/geoArray.getFaceSize());
        } else if (geoArray instanceof QuadArray) {
            if (CanvasPeerImpl.debugGL) Log.print(LogType.DEBUG, "Drawing a quad array with " + numVertices + " vertices");
            mode = GL.GL_QUADS; // say that we want to draw quads
            canvas.addTriangles(numVertices/geoArray.getFaceSize());
        } else if (geoArray instanceof PointArray) {
            mode = GL.GL_POINTS; // say that we want to draw points
            canvas.addTriangles(numVertices/geoArray.getFaceSize());
        } else if (geoArray instanceof LineArray) {
            mode = GL.GL_LINES; // say that we want to draw lines
        } else if (!(geoArray instanceof GeometryStripArray)) {
            if (CanvasPeerImpl.debugGL) Log.print(LogType.DEBUG, "Skipping unknown geometry : " + geoArray.getClass().getName());
           
            ProfileTimer.endProfile();
            return; // don't know how to draw this
        }

        // do the actual drawing genericly

        setupBuffers(canvas, gl, geoArray);
        if (geoArray instanceof GeometryStripArray) {

            //setPointers(gl);

            if (CanvasPeerImpl.debugGL) Log.print(LogType.DEBUG, "Starting drawing strips for GeometryStripArray");
            // loop through the strips

            if (geoArray instanceof LineStripArray) {
                mode = GL.GL_LINE_STRIP; // say that we want to draw a line strip
            } else if (geoArray instanceof TriangleStripArray) {
                mode = GL.GL_TRIANGLE_STRIP; // say that we want to draw a triangle strip
//                if (CanvasPeerImpl.debugGL) Log.print(LogType.DEBUG,"Drawing a triangle strip "+strip+" of "+stripCount+" strips and "+stripVertexCounts[strip]+" vertices");
            } else if (geoArray instanceof TriangleFanArray) {
                mode = GL.GL_TRIANGLE_FAN; // say that we want to draw a triangle fan
            }

            int start = 0;
            for (int strip = 0; strip < stripCount; strip++) {

                gl.glDrawArrays(mode, start, stripVertexCounts[strip]);
                start += stripVertexCounts[strip];

            }
        } else if (geoArray instanceof IndexedGeometryArray) {
           if (geoArray instanceof IndexedLineArray) {
                mode = GL.GL_LINES; // say that we want to draw points
                IndexedGeometryArray igeoArray = (IndexedGeometryArray) geoArray;
                gl.glDrawElements(mode, igeoArray.getValidIndexCount(), GL.GL_UNSIGNED_INT, igeoArray.getIndexData().getIntBuffer());
            }
           
           if (geoArray instanceof IndexedQuadArray) {
                 mode = GL.GL_QUADS; // say that we want to draw points
                 IndexedGeometryArray igeoArray = (IndexedGeometryArray) geoArray;
                 gl.glDrawElements(mode, igeoArray.getValidIndexCount(), GL.GL_UNSIGNED_INT, igeoArray.getIndexData().getIntBuffer());
             }
            if (geoArray instanceof IndexedTriangleArray) {
                mode = GL.GL_TRIANGLES; // say that we want to draw points
                IndexedGeometryArray igeoArray = (IndexedGeometryArray) geoArray;
                gl.glDrawElements(mode, igeoArray.getValidIndexCount(), GL.GL_UNSIGNED_INT, igeoArray.getIndexData().getIntBuffer());
            } else if ( geoArray instanceof IndexedGeometryStripArray ) {
                if ( geoArray instanceof IndexedTriangleStripArray ) {
               mode = GL.GL_TRIANGLE_STRIP;
                IndexedGeometryStripArray igsa = (IndexedGeometryStripArray)geoArray;
                int[] strips = igsa.getStripVertexCounts();
                int start = 0;
                for (int s = 0; s < strips.length; s++) {
                    gl.glDrawElements(mode,strips,GL.GL_UNSIGNED_INT,((IntBuffer)igsa.getIndexData().getIntBuffer().position(start)).slice());
                    start += strips;
                }
            }
                if ( geoArray instanceof IndexedLineStripArray ) {
                   mode = GL.GL_LINE_STRIP;
                    IndexedGeometryStripArray igsa = (IndexedGeometryStripArray)geoArray;
                    int[] strips = igsa.getStripVertexCounts();
                    int start = 0;
                    for (int s = 0; s < strips.length; s++) {
                        gl.glDrawElements(mode,strips,GL.GL_UNSIGNED_INT,((IntBuffer)igsa.getIndexData().getIntBuffer().position(start)).slice());
                        start += strips;
                    }
                }
                if ( geoArray instanceof IndexedTriangleFanArray ) {
                   mode = GL.GL_TRIANGLE_FAN;
                    IndexedGeometryStripArray igsa = (IndexedGeometryStripArray)geoArray;
                    int[] strips = igsa.getStripVertexCounts();
                    int start = 0;
                    for (int s = 0; s < strips.length; s++) {
                        gl.glDrawElements(mode,strips,GL.GL_UNSIGNED_INT,((IntBuffer)igsa.getIndexData().getIntBuffer().position(start)).slice());
                        start += strips;
                    }
                }
            }
           
        } else {
            gl.glDrawArrays(mode, geoArray.getInitialVertexIndex(), geoArray.getValidVertexCount());
        }
        ProfileTimer.endProfile();
    }



i guess replacing the previous code with this one,will solve ur problem......try this...All the best... n plzzz let me know if it works...
8  Java Game APIs & Engines / Xith3D Forums / Re: IndexedQuadArray in Xith3D on: 2006-05-26 09:40:04
i guess there is no problem in ur code..the problem is with the one of the library class of Xith....go to the PACKAGE--com.xith3d.render.jogl......CLASS----ShapeAtomPeer....in this class go to the METHOD---private void drawGeometry(CanvasPeer canvas, GL gl, GeometryArray geoArray)....... in this method actually some code is missing..... i have made changes in this code....now the working code should be...



  private void drawGeometry(CanvasPeer canvas, GL gl, GeometryArray geoArray) {
       
        ProfileTimer.startProfile("drawGeometry");
        int numVertices = geoArray.getValidVertexCount();
//       
        if (numVertices == 0) {
            if (CanvasPeerImpl.debugGL) Log.print(LogType.DEBUG, "Skipping because there are no valid vertices ");
            ProfileTimer.endProfile();
            return;
        }

       

        // get the format of verticies
        int format = geoArray.getVertexFormat();

        int stripCount = 0;
        int[] stripVertexCounts = null;

        // if a strip array then get the above two values
        if (geoArray instanceof GeometryStripArray) {
            stripCount = ((GeometryStripArray) geoArray).getNumStrips();
            stripVertexCounts = ((GeometryStripArray) geoArray).
                    getStripVertexCounts();
            if (CanvasPeerImpl.debugGL) Log.print(LogType.DEBUG, "Drawing a strip array " + stripCount + " strips");
        }

        // find out if color3f data was supplied and if it was use it


        int mode = 0;

        if ((geoArray instanceof IndexedGeometryArray)) {
            canvas.addTriangles( ((IndexedGeometryArray)geoArray).getValidIndexCount()/geoArray.getFaceSize());
           
        } else if (geoArray instanceof TriangleArray) {
            if (CanvasPeerImpl.debugGL) Log.print(LogType.DEBUG, "Drawing a triangle array with " + numVertices + " vertices");
            mode = GL.GL_TRIANGLES; // say that we want to draw trianlges
            canvas.addTriangles(numVertices/geoArray.getFaceSize());
        } else if (geoArray instanceof QuadArray) {
            if (CanvasPeerImpl.debugGL) Log.print(LogType.DEBUG, "Drawing a quad array with " + numVertices + " vertices");
            mode = GL.GL_QUADS; // say that we want to draw quads
            canvas.addTriangles(numVertices/geoArray.getFaceSize());
        } else if (geoArray instanceof PointArray) {
            mode = GL.GL_POINTS; // say that we want to draw points
            canvas.addTriangles(numVertices/geoArray.getFaceSize());
        } else if (geoArray instanceof LineArray) {
            mode = GL.GL_LINES; // say that we want to draw lines
        } else if (!(geoArray instanceof GeometryStripArray)) {
            if (CanvasPeerImpl.debugGL) Log.print(LogType.DEBUG, "Skipping unknown geometry : " + geoArray.getClass().getName());
           
            ProfileTimer.endProfile();
            return; // don't know how to draw this
        }

        // do the actual drawing genericly

        setupBuffers(canvas, gl, geoArray);
        if (geoArray instanceof GeometryStripArray) {

            //setPointers(gl);

            if (CanvasPeerImpl.debugGL) Log.print(LogType.DEBUG, "Starting drawing strips for GeometryStripArray");
            // loop through the strips

            if (geoArray instanceof LineStripArray) {
                mode = GL.GL_LINE_STRIP; // say that we want to draw a line strip
            } else if (geoArray instanceof TriangleStripArray) {
                mode = GL.GL_TRIANGLE_STRIP; // say that we want to draw a triangle strip
//                if (CanvasPeerImpl.debugGL) Log.print(LogType.DEBUG,"Drawing a triangle strip "+strip+" of "+stripCount+" strips and "+stripVertexCounts[strip]+" vertices");
            } else if (geoArray instanceof TriangleFanArray) {
                mode = GL.GL_TRIANGLE_FAN; // say that we want to draw a triangle fan
            }

            int start = 0;
            for (int strip = 0; strip < stripCount; strip++) {

                gl.glDrawArrays(mode, start, stripVertexCounts[strip]);
                start += stripVertexCounts[strip];

            }
        } else if (geoArray instanceof IndexedGeometryArray) {
           if (geoArray instanceof IndexedLineArray) {
                mode = GL.GL_LINES; // say that we want to draw points
                IndexedGeometryArray igeoArray = (IndexedGeometryArray) geoArray;
                gl.glDrawElements(mode, igeoArray.getValidIndexCount(), GL.GL_UNSIGNED_INT, igeoArray.getIndexData().getIntBuffer());
            }
           
           if (geoArray instanceof IndexedQuadArray) {
                 mode = GL.GL_QUADS; // say that we want to draw points
                 IndexedGeometryArray igeoArray = (IndexedGeometryArray) geoArray;
                 gl.glDrawElements(mode, igeoArray.getValidIndexCount(), GL.GL_UNSIGNED_INT, igeoArray.getIndexData().getIntBuffer());
             }
            if (geoArray instanceof IndexedTriangleArray) {
                mode = GL.GL_TRIANGLES; // say that we want to draw points
                IndexedGeometryArray igeoArray = (IndexedGeometryArray) geoArray;
                gl.glDrawElements(mode, igeoArray.getValidIndexCount(), GL.GL_UNSIGNED_INT, igeoArray.getIndexData().getIntBuffer());
            } else if ( geoArray instanceof IndexedGeometryStripArray ) {
                if ( geoArray instanceof IndexedTriangleStripArray ) {
               mode = GL.GL_TRIANGLE_STRIP;
                IndexedGeometryStripArray igsa = (IndexedGeometryStripArray)geoArray;
                int[] strips = igsa.getStripVertexCounts();
                int start = 0;
                for (int s = 0; s < strips.length; s++) {
                    gl.glDrawElements(mode,strips,GL.GL_UNSIGNED_INT,((IntBuffer)igsa.getIndexData().getIntBuffer().position(start)).slice());
                    start += strips;
                }
            }
                if ( geoArray instanceof IndexedLineStripArray ) {
                   mode = GL.GL_LINE_STRIP;
                    IndexedGeometryStripArray igsa = (IndexedGeometryStripArray)geoArray;
                    int[] strips = igsa.getStripVertexCounts();
                    int start = 0;
                    for (int s = 0; s < strips.length; s++) {
                        gl.glDrawElements(mode,strips,GL.GL_UNSIGNED_INT,((IntBuffer)igsa.getIndexData().getIntBuffer().position(start)).slice());
                        start += strips;
                    }
                }
                if ( geoArray instanceof IndexedTriangleFanArray ) {
                   mode = GL.GL_TRIANGLE_FAN;
                    IndexedGeometryStripArray igsa = (IndexedGeometryStripArray)geoArray;
                    int[] strips = igsa.getStripVertexCounts();
                    int start = 0;
                    for (int s = 0; s < strips.length; s++) {
                        gl.glDrawElements(mode,strips,GL.GL_UNSIGNED_INT,((IntBuffer)igsa.getIndexData().getIntBuffer().position(start)).slice());
                        start += strips;
                    }
                }
            }
           
        } else {
            gl.glDrawArrays(mode, geoArray.getInitialVertexIndex(), geoArray.getValidVertexCount());
        }
        ProfileTimer.endProfile();
    }



i guess replacing the previous code with this one,will solve ur problem......try this...All the best... n plzzz let me know if it works...
9  Java Game APIs & Engines / Xith3D Forums / Re: IndexedQuadArray bug? on: 2006-05-26 09:07:22
i guess there is no problem in ur code..the problem is with the one of the library class of Xith....go to the PACKAGE--com.xith3d.render.jogl......CLASS----ShapeAtomPeer....in this class go to the METHOD---private void drawGeometry(CanvasPeer canvas, GL gl, GeometryArray geoArray)....... in this method actually some code is missing..... i have made changes in this code....now the working code should be...



  private void drawGeometry(CanvasPeer canvas, GL gl, GeometryArray geoArray) {
       
        ProfileTimer.startProfile("drawGeometry");
        int numVertices = geoArray.getValidVertexCount();
//       
        if (numVertices == 0) {
            if (CanvasPeerImpl.debugGL) Log.print(LogType.DEBUG, "Skipping because there are no valid vertices ");
            ProfileTimer.endProfile();
            return;
        }

       

        // get the format of verticies
        int format = geoArray.getVertexFormat();

        int stripCount = 0;
        int[] stripVertexCounts = null;

        // if a strip array then get the above two values
        if (geoArray instanceof GeometryStripArray) {
            stripCount = ((GeometryStripArray) geoArray).getNumStrips();
            stripVertexCounts = ((GeometryStripArray) geoArray).
                    getStripVertexCounts();
            if (CanvasPeerImpl.debugGL) Log.print(LogType.DEBUG, "Drawing a strip array " + stripCount + " strips");
        }

        // find out if color3f data was supplied and if it was use it


        int mode = 0;

        if ((geoArray instanceof IndexedGeometryArray)) {
            canvas.addTriangles( ((IndexedGeometryArray)geoArray).getValidIndexCount()/geoArray.getFaceSize());
           
        } else if (geoArray instanceof TriangleArray) {
            if (CanvasPeerImpl.debugGL) Log.print(LogType.DEBUG, "Drawing a triangle array with " + numVertices + " vertices");
            mode = GL.GL_TRIANGLES; // say that we want to draw trianlges
            canvas.addTriangles(numVertices/geoArray.getFaceSize());
        } else if (geoArray instanceof QuadArray) {
            if (CanvasPeerImpl.debugGL) Log.print(LogType.DEBUG, "Drawing a quad array with " + numVertices + " vertices");
            mode = GL.GL_QUADS; // say that we want to draw quads
            canvas.addTriangles(numVertices/geoArray.getFaceSize());
        } else if (geoArray instanceof PointArray) {
            mode = GL.GL_POINTS; // say that we want to draw points
            canvas.addTriangles(numVertices/geoArray.getFaceSize());
        } else if (geoArray instanceof LineArray) {
            mode = GL.GL_LINES; // say that we want to draw lines
        } else if (!(geoArray instanceof GeometryStripArray)) {
            if (CanvasPeerImpl.debugGL) Log.print(LogType.DEBUG, "Skipping unknown geometry : " + geoArray.getClass().getName());
           
            ProfileTimer.endProfile();
            return; // don't know how to draw this
        }

        // do the actual drawing genericly

        setupBuffers(canvas, gl, geoArray);
        if (geoArray instanceof GeometryStripArray) {

            //setPointers(gl);

            if (CanvasPeerImpl.debugGL) Log.print(LogType.DEBUG, "Starting drawing strips for GeometryStripArray");
            // loop through the strips

            if (geoArray instanceof LineStripArray) {
                mode = GL.GL_LINE_STRIP; // say that we want to draw a line strip
            } else if (geoArray instanceof TriangleStripArray) {
                mode = GL.GL_TRIANGLE_STRIP; // say that we want to draw a triangle strip
//                if (CanvasPeerImpl.debugGL) Log.print(LogType.DEBUG,"Drawing a triangle strip "+strip+" of "+stripCount+" strips and "+stripVertexCounts[strip]+" vertices");
            } else if (geoArray instanceof TriangleFanArray) {
                mode = GL.GL_TRIANGLE_FAN; // say that we want to draw a triangle fan
            }

            int start = 0;
            for (int strip = 0; strip < stripCount; strip++) {

                gl.glDrawArrays(mode, start, stripVertexCounts[strip]);
                start += stripVertexCounts[strip];

            }
        } else if (geoArray instanceof IndexedGeometryArray) {
           if (geoArray instanceof IndexedLineArray) {
                mode = GL.GL_LINES; // say that we want to draw points
                IndexedGeometryArray igeoArray = (IndexedGeometryArray) geoArray;
                gl.glDrawElements(mode, igeoArray.getValidIndexCount(), GL.GL_UNSIGNED_INT, igeoArray.getIndexData().getIntBuffer());
            }
           
           if (geoArray instanceof IndexedQuadArray) {
                 mode = GL.GL_QUADS; // say that we want to draw points
                 IndexedGeometryArray igeoArray = (IndexedGeometryArray) geoArray;
                 gl.glDrawElements(mode, igeoArray.getValidIndexCount(), GL.GL_UNSIGNED_INT, igeoArray.getIndexData().getIntBuffer());
             }
            if (geoArray instanceof IndexedTriangleArray) {
                mode = GL.GL_TRIANGLES; // say that we want to draw points
                IndexedGeometryArray igeoArray = (IndexedGeometryArray) geoArray;
                gl.glDrawElements(mode, igeoArray.getValidIndexCount(), GL.GL_UNSIGNED_INT, igeoArray.getIndexData().getIntBuffer());
            } else if ( geoArray instanceof IndexedGeometryStripArray ) {
                if ( geoArray instanceof IndexedTriangleStripArray ) {
               mode = GL.GL_TRIANGLE_STRIP;
                IndexedGeometryStripArray igsa = (IndexedGeometryStripArray)geoArray;
                int[] strips = igsa.getStripVertexCounts();
                int start = 0;
                for (int s = 0; s < strips.length; s++) {
                    gl.glDrawElements(mode,strips,GL.GL_UNSIGNED_INT,((IntBuffer)igsa.getIndexData().getIntBuffer().position(start)).slice());
                    start += strips;
                }
            }
                if ( geoArray instanceof IndexedLineStripArray ) {
                   mode = GL.GL_LINE_STRIP;
                    IndexedGeometryStripArray igsa = (IndexedGeometryStripArray)geoArray;
                    int[] strips = igsa.getStripVertexCounts();
                    int start = 0;
                    for (int s = 0; s < strips.length; s++) {
                        gl.glDrawElements(mode,strips,GL.GL_UNSIGNED_INT,((IntBuffer)igsa.getIndexData().getIntBuffer().position(start)).slice());
                        start += strips;
                    }
                }
                if ( geoArray instanceof IndexedTriangleFanArray ) {
                   mode = GL.GL_TRIANGLE_FAN;
                    IndexedGeometryStripArray igsa = (IndexedGeometryStripArray)geoArray;
                    int[] strips = igsa.getStripVertexCounts();
                    int start = 0;
                    for (int s = 0; s < strips.length; s++) {
                        gl.glDrawElements(mode,strips,GL.GL_UNSIGNED_INT,((IntBuffer)igsa.getIndexData().getIntBuffer().position(start)).slice());
                        start += strips;
                    }
                } 
            }
           
        } else {
            gl.glDrawArrays(mode, geoArray.getInitialVertexIndex(), geoArray.getValidVertexCount());
        }
        ProfileTimer.endProfile();
    }



i guess replacing the previous code with this one,will solve ur problem......try this...All the best...
10  Java Game APIs & Engines / Xith3D Forums / Re: difference between INDEXED GEOMETRY and NON-INDEXED GEOMETRY on: 2006-05-19 10:50:03
actually i am trying to draw a sphere ...when i use Triangle Array , it draws perfectly...but instead of that when i tried IndexedTriangleArray...nothig comes on the screen....i m unable to find the problem...
11  Java Game APIs & Engines / Xith3D Forums / difference between INDEXED GEOMETRY and NON-INDEXED GEOMETRY on: 2006-05-19 06:29:37
hi people....can nyone plzz explain me that what are the differences between indexed geometry n non-indexed geometry....actually i was reading about Triangle Array and Indexed Triangle Array....and i was surprised to see that the description was exactly similar ....


public class IndexedTriangleArray
>
> extends IndexedGeometryArray
>
> The IndexedTriangleArray object draws the array of vertices as individual
> triangles. Each group of three vertices defines a triangle to be drawn.
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> You're sure about that? Where would be the difference to TriangleArray?
>
> And here the JAVADOC for TriangleArray:
>
> public class TriangleArray
> extends GeometryArray
>
> The TriangleArray object draws the array of vertices as individual
> triangles. Each group of three vertices defines a triangle to be drawn.
>


 Sounds familair? i m totally confused..plzzz help me out....
12  Java Game APIs & Engines / Xith3D Forums / quad verses triangle on: 2006-05-15 11:21:45
why use a quad when two triangles would be more efficient anyway?
13  Java Game APIs & Engines / Xith3D Forums / advantages of Xith over Java3D... on: 2006-05-15 07:24:40
 what are the differences between Xith and java3D??? what are the advantages of Xith over java3D??
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

BurntPizza (16 views)
2014-09-21 02:42:18

BurntPizza (13 views)
2014-09-21 01:30:30

moogie (13 views)
2014-09-21 00:26:15

UprightPath (24 views)
2014-09-20 20:14:06

BurntPizza (27 views)
2014-09-19 03:14:18

Dwinin (40 views)
2014-09-12 09:08:26

Norakomi (71 views)
2014-09-10 13:57:51

TehJavaDev (96 views)
2014-09-10 06:39:09

Tekkerue (49 views)
2014-09-09 02:24:56

mitcheeb (70 views)
2014-09-08 06:06:29
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!