Search in sources :

Example 26 with OutputCapsule

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

the class DirectionalLightShadowFilter method write.

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

Example 27 with OutputCapsule

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

the class TerrainLodControl method write.

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

Example 28 with OutputCapsule

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

the class TerrainPatch method write.

@Override
public void write(JmeExporter ex) throws IOException {
    // the mesh is removed, and reloaded when read() is called
    // this reduces the save size to 10% by not saving the mesh
    Mesh temp = getMesh();
    mesh = null;
    super.write(ex);
    OutputCapsule oc = ex.getCapsule(this);
    oc.write(size, "size", 16);
    oc.write(totalSize, "totalSize", 16);
    oc.write(quadrant, "quadrant", (short) 0);
    oc.write(stepScale, "stepScale", Vector3f.UNIT_XYZ);
    oc.write(offset, "offset", Vector3f.UNIT_XYZ);
    oc.write(offsetAmount, "offsetAmount", 0);
    //oc.write(lodCalculator, "lodCalculator", null);
    //oc.write(lodCalculatorFactory, "lodCalculatorFactory", null);
    oc.write(lodEntropy, "lodEntropy", null);
    oc.write(geomap, "geomap", null);
    setMesh(temp);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule) Mesh(com.jme3.scene.Mesh)

Example 29 with OutputCapsule

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

the class DistanceLodCalculator method write.

public void write(JmeExporter ex) throws IOException {
    OutputCapsule oc = ex.getCapsule(this);
    oc.write(size, "patchSize", 32);
    oc.write(lodMultiplier, "lodMultiplier", 32);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Example 30 with OutputCapsule

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

the class SimpleLodThreshold method write.

public void write(JmeExporter ex) throws IOException {
    OutputCapsule oc = ex.getCapsule(this);
    oc.write(size, "size", 16);
    oc.write(lodMultiplier, "lodMultiplier", 2);
}
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