Package com.ngt.jopenmetaverse.shared.sim.rendering.mesh

Examples of com.ngt.jopenmetaverse.shared.sim.rendering.mesh.BitPack.UnpackString()


            _numSkinJoints = input.UnpackUShort();
            _skinJoints = new String[_numSkinJoints];

            for (int i = 0; i < _numSkinJoints; i++)
            {
                _skinJoints[i] = Utils.TrimAt0(input.UnpackString(64));
            }
        }
        else
        {
            _numSkinJoints = 0;
View Full Code Here


            _skinJoints = new String[0];
        }

        // Grab morphs
        List<Morph> morphs = new ArrayList<Morph>();
        String morphName = Utils.TrimAt0(input.UnpackString(64));

        while (!morphName.equalsIgnoreCase(MORPH_FOOTER))
        {
            if (input.getBytePos() + 48 >= input.Data.length) throw new IOException("Encountered end of file while parsing morphs");
View Full Code Here

            }

            morphs.add(morph);

            // Grab the next name
            morphName = Utils.TrimAt0(input.UnpackString(64));
        }

        _morphs = morphs.toArray(new Morph[0]);

        // Check if there are remaps or if we're at the end of the file
View Full Code Here

        public void LoadMesh(String filename) throws IOException
        {
            byte[] buffer = FileUtils.readBytes(new File(filename));
            BitPack input = new BitPack(buffer, 0);

            _header = Utils.TrimAt0(input.UnpackString(24));
            if (!_header.equalsIgnoreCase(MESH_HEADER))
                throw new IOException("Unrecognized mesh format");

            // Populate base mesh variables
            _hasWeights = (input.UnpackByte() != 0);
View Full Code Here

    public void LoadMesh(String filename) throws IOException
    {
        byte[] buffer = FileUtils.readBytes(new File(filename));
        BitPack input = new BitPack(buffer, 0);

        _header = Utils.TrimAt0(input.UnpackString(24));
        if (!_header.equalsIgnoreCase(MESH_HEADER))
            throw new IOException("Unrecognized mesh format");

        // Populate base mesh variables
        _hasWeights = (input.UnpackByte() != 0);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.