Package com.ardor3d.scenegraph

Examples of com.ardor3d.scenegraph.MeshData


                        listener.onDead(particles);
                    }
                }
            } else {
                // if not dead make sure our particles refresh their vbos, etc.
                final MeshData md = particles.getParticleGeometry().getMeshData();
                md.getVertexCoords().setNeedsRefresh(true);
                md.getColorCoords().setNeedsRefresh(true);
                md.getTextureCoords(0).setNeedsRefresh(true);
            }

            // If we have any live particles and are offscreen, update it
            if (anyAlive) {
                boolean updateMB = true;
View Full Code Here


            final MeshEmitter emitter = (MeshEmitter) getParticleEmitter();
            final Mesh mesh = emitter.getSource();

            // Update the triangle model on each new particle creation.
            final Vector3[] vertices = new Vector3[3];
            final MeshData mData = mesh.getMeshData();
            for (int x = 0; x < 3; x++) {
                vertices[x] = new Vector3();

                final int vertIndex = mData.getVertexIndex(index, x, 0);
                BufferUtils.populateFromBuffer(vertices[x], mData.getVertexBuffer(), mData.getIndices() != null ? mData
                        .getIndices().get(vertIndex) : vertIndex);
            }
            Triangle t = p.getTriangleModel();
            if (t == null) {
                t = new Triangle(vertices[0], vertices[1], vertices[2]);
View Full Code Here

TOP

Related Classes of com.ardor3d.scenegraph.MeshData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.