Search in sources :

Example 1 with OutputCapsule

use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.

the class AnimationEvent method write.

@Override
public void write(JmeExporter ex) throws IOException {
    super.write(ex);
    OutputCapsule oc = ex.getCapsule(this);
    oc.write(model, "model", null);
    oc.write(animationName, "animationName", "");
    oc.write(blendTime, "blendTime", 0f);
    oc.write(channelIndex, "channelIndex", 0);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Example 2 with OutputCapsule

use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.

the class SoundEvent method write.

@Override
public void write(JmeExporter ex) throws IOException {
    super.write(ex);
    OutputCapsule oc = ex.getCapsule(this);
    oc.write(path, "path", "");
    oc.write(stream, "stream", false);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Example 3 with OutputCapsule

use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.

the class BIHTree method write.

public void write(JmeExporter ex) throws IOException {
    OutputCapsule oc = ex.getCapsule(this);
    oc.write(mesh, "mesh", null);
    oc.write(root, "root", null);
    oc.write(maxTrisPerNode, "tris_per_node", 0);
    oc.write(pointData, "points", null);
    oc.write(triIndices, "indices", null);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Example 4 with OutputCapsule

use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.

the class EffectTrack method write.

/**
     * Internal use only serialization
     *
     * @param ex exporter
     * @throws IOException exception
     */
public void write(JmeExporter ex) throws IOException {
    OutputCapsule out = ex.getCapsule(this);
    //reseting the particle emission rate on the emitter before saving.
    emitter.setParticlesPerSec(particlesPerSeconds);
    out.write(emitter, "emitter", null);
    out.write(particlesPerSeconds, "particlesPerSeconds", 0);
    out.write(length, "length", 0);
    out.write(startOffset, "startOffset", 0);
    //Setting emission rate to 0 so that this track can go on being used.
    emitter.setParticlesPerSec(0);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Example 5 with OutputCapsule

use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.

the class AbstractCinematicEvent method write.

/**
     * Used for serialization only.
     * @param ex exporter
     * @throws IOException 
     */
public void write(JmeExporter ex) throws IOException {
    OutputCapsule oc = ex.getCapsule(this);
    oc.write(playState, "playState", PlayState.Stopped);
    oc.write(speed, "speed", 1);
    oc.write(initialDuration, "initalDuration", 10);
    oc.write(loopMode, "loopMode", LoopMode.DontLoop);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Aggregations

OutputCapsule (com.jme3.export.OutputCapsule)119 Vector3f (com.jme3.math.Vector3f)17 Matrix3f (com.jme3.math.Matrix3f)4 SafeArrayList (com.jme3.util.SafeArrayList)2 ArrayList (java.util.ArrayList)2 Generic6DofConstraint (com.bulletphysics.dynamics.constraintsolver.Generic6DofConstraint)1 BoundingSphere (com.jme3.bounding.BoundingSphere)1 BoxCollisionShape (com.jme3.bullet.collision.shapes.BoxCollisionShape)1 ChildCollisionShape (com.jme3.bullet.collision.shapes.infos.ChildCollisionShape)1 RotationalLimitMotor (com.jme3.bullet.joints.motors.RotationalLimitMotor)1 Plane (com.jme3.math.Plane)1 Quaternion (com.jme3.math.Quaternion)1 Vector2f (com.jme3.math.Vector2f)1 Mesh (com.jme3.scene.Mesh)1 ShaderNodeVariable (com.jme3.shader.ShaderNodeVariable)1 List (java.util.List)1