@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);
 }
Ejemplo n.º 2
0
 @Override
 public void write(JmeExporter ex) throws IOException {
   super.write(ex);
   OutputCapsule oc = ex.getCapsule(this);
   oc.write(targets, "targets", null);
   oc.write(skeleton, "skeleton", null);
 }
Ejemplo n.º 3
0
 public void write(JmeExporter e) throws IOException {
   OutputCapsule cap = e.getCapsule(this);
   cap.write(x, "x", 0);
   cap.write(y, "y", 0);
   cap.write(z, "z", 0);
   cap.write(w, "w", 1);
 }
Ejemplo n.º 4
0
 @Override
 public void write(JmeExporter ex) throws IOException {
   serialize();
   OutputCapsule out = ex.getCapsule(this);
   out.write(array, "array", null);
   out.write(index, "index", null);
 }
Ejemplo n.º 5
0
 public void write(JmeExporter ex) throws IOException {
   OutputCapsule oc = ex.getCapsule(this);
   oc.write(def.getAssetName(), "material_def", null);
   oc.write(additionalState, "render_state", null);
   oc.write(transparent, "is_transparent", false);
   oc.writeStringSavableMap(paramValues, "parameters", null);
 }
Ejemplo n.º 6
0
 @Override
 public void write(JmeExporter e) throws IOException {
   OutputCapsule out = e.getCapsule(this);
   out.write(targetMeshIndex, "meshIndex", 0);
   out.write(frames, "frames", null);
   out.write(times, "times", null);
 }
Ejemplo n.º 7
0
 public void write(JmeExporter e) throws IOException {
   OutputCapsule capsule = e.getCapsule(this);
   capsule.write(usedRot, "usedRot", null);
   capsule.write(usedTrans, "usedTrans", null);
   capsule.write(usedScale, "usedScale", null);
   capsule.write(time, "time", 0);
   capsule.write(look, "look", null);
 }
Ejemplo n.º 8
0
  public void write(JmeExporter ex) throws IOException {
    OutputCapsule oc = ex.getCapsule(this);
    //        oc.write(owner, "owner", null);

    ArrayList<Light> lights = new ArrayList<Light>();
    for (int i = 0; i < listSize; i++) {
      lights.add(list[i]);
    }
    oc.writeSavableArrayList(lights, "lights", null);
  }
  @Override
  public void write(JmeExporter ex) throws IOException {
    super.write(ex);

    OutputCapsule oc = ex.getCapsule(this);
    oc.write(sampleRadius, "sampleRadius", 3.0f);
    oc.write(intensity, "intensity", 10.2f);
    oc.write(scale, "scale", 3.15f);
    oc.write(bias, "bias", 0.025f);
    // oc.write(sampleRadiusFD, "sampleRadiusFD", 0.55f);
    // oc.write(intensityFD, "intensityFD", 2.5f);
    // oc.write(scaleFD, "scaleFD", 1.15f);
    // oc.write(biasFD, "biasFD", 0.025f);
  }
Ejemplo n.º 10
0
 public void write(JmeExporter ex) throws IOException {
   OutputCapsule oc = (OutputCapsule) ex.getCapsule(this);
   oc.write(nbShadowMaps, "nbShadowMaps", 1);
   oc.write(shadowMapSize, "shadowMapSize", 0);
   oc.write(shadowIntensity, "shadowIntensity", 0.7f);
   oc.write(edgeFilteringMode, "edgeFilteringMode", EdgeFilteringMode.Bilinear);
   oc.write(shadowCompareMode, "shadowCompareMode", CompareMode.Hardware);
   oc.write(flushQueues, "flushQueues", false);
   oc.write(edgesThickness, "edgesThickness", 1.0f);
 }
Ejemplo n.º 11
0
 public void write(JmeExporter ex) throws IOException {
   OutputCapsule oc = ex.getCapsule(this);
   oc.write(leftIndex, "left_index", 0);
   oc.write(rightIndex, "right_index", 0);
   oc.write(leftPlane, "left_plane", 0);
   oc.write(rightPlane, "right_plane", 0);
   oc.write(axis, "axis", 0);
   oc.write(left, "left_node", null);
   oc.write(right, "right_node", null);
 }
Ejemplo n.º 12
0
 @Override
 public void write(JmeExporter e) throws IOException {
   super.write(e);
   OutputCapsule capsule = e.getCapsule(this);
   capsule.write(axisSamples, "axisSamples", 0);
   capsule.write(radialSamples, "radialSamples", 0);
   capsule.write(radius, "radius", 0);
   capsule.write(radius2, "radius2", 0);
   capsule.write(height, "height", 0);
   capsule.write(closed, "closed", false);
   capsule.write(inverted, "inverted", false);
 }
Ejemplo n.º 13
0
  @Override
  public void write(JmeExporter ex) throws IOException {
    super.write(ex);
    OutputCapsule oc = ex.getCapsule(this);
    oc.write(flipY, "flip_y", false);
    oc.write(generateMips, "generate_mips", false);
    oc.write(anisotropy, "anisotropy", 0);
    oc.write(textureTypeHint, "tex_type", Type.TwoDimensional);

    // Backwards compat
    oc.write(textureTypeHint == Type.CubeMap, "as_cubemap", false);
  }
Ejemplo n.º 14
0
 public void write(JmeExporter e) throws IOException {
   OutputCapsule capsule = e.getCapsule(this);
   capsule.write(normal, "normal", Vector3d.ZERO);
   capsule.write(constant, "constant", 0);
 }
Ejemplo n.º 15
0
  @Override
  public void write(JmeExporter e) throws IOException {
    super.write(e);
    OutputCapsule capsule = e.getCapsule(this);

    capsule.write(getMass(), "mass", 1.0f);

    capsule.write(getGravity(), "gravity", Vector3f.ZERO);
    capsule.write(getFriction(), "friction", 0.5f);
    capsule.write(getRestitution(), "restitution", 0);
    capsule.write(getAngularFactor(), "angularFactor", 1);
    capsule.write(kinematic, "kinematic", false);

    capsule.write(getLinearDamping(), "linearDamping", 0);
    capsule.write(getAngularDamping(), "angularDamping", 0);
    capsule.write(getLinearSleepingThreshold(), "linearSleepingThreshold", 0.8f);
    capsule.write(getAngularSleepingThreshold(), "angularSleepingThreshold", 1.0f);

    capsule.write(getCcdMotionThreshold(), "ccdMotionThreshold", 0);
    capsule.write(getCcdSweptSphereRadius(), "ccdSweptSphereRadius", 0);

    capsule.write(getPhysicsLocation(new Vector3f()), "physicsLocation", new Vector3f());
    capsule.write(getPhysicsRotationMatrix(new Matrix3f()), "physicsRotation", new Matrix3f());

    capsule.writeSavableArrayList(joints, "joints", null);
  }
Ejemplo n.º 16
0
 @Override
 public void write(JmeExporter ex) throws IOException {
   super.write(ex);
   OutputCapsule oc = ex.getCapsule(this);
   oc.write(content, "content", new byte[0]);
 }
Ejemplo n.º 17
0
 @Override
 public void write(JmeExporter ex) throws IOException {
   OutputCapsule oc = ex.getCapsule(this);
   oc.write(charSet, "charSet", null);
   oc.write(pages, "pages", null);
 }
Ejemplo n.º 18
0
 public void write(JmeExporter ex) throws IOException {
   OutputCapsule capsule = ex.getCapsule(this);
   capsule.write(scale, "scale", new Vector3f(1, 1, 1));
   capsule.write(getMargin(), "margin", 0.0f);
 }
 public void write(JmeExporter ex) throws IOException {
   super.write(ex);
   OutputCapsule capsule = ex.getCapsule(this);
   capsule.write(plane, "collisionPlane", new Plane());
 }
Ejemplo n.º 20
0
 public void write(JmeExporter e) throws IOException {
   OutputCapsule out = e.getCapsule(this);
   out.write(poses, "poses", null);
   out.write(weights, "weights", null);
 }
Ejemplo n.º 21
0
 public void write(JmeExporter ex) throws IOException {
   super.write(ex);
   OutputCapsule capsule = ex.getCapsule(this);
   capsule.write(halfExtents, "halfExtents", new Vector3f(1, 1, 1));
 }
Ejemplo n.º 22
0
  public void write(JmeExporter ex) throws IOException {
    OutputCapsule capsule = ex.getCapsule(this);
    capsule.write(name, "name", null);
    capsule.write(worldBound, "world_bound", null);
    capsule.write(cullHint, "cull_mode", CullHint.Inherit);
    capsule.write(batchHint, "batch_hint", BatchHint.Inherit);
    capsule.write(queueBucket, "queue", RenderQueue.Bucket.Inherit);
    capsule.write(shadowMode, "shadow_mode", ShadowMode.Inherit);
    capsule.write(localTransform, "transform", Transform.IDENTITY);
    capsule.write(localLights, "lights", null);

    // Shallow clone the controls array to convert its type.
    capsule.writeSavableArrayList(new ArrayList(controls), "controlsList", null);
    capsule.writeStringSavableMap(userData, "user_data", null);
  }
Ejemplo n.º 23
0
 public void write(JmeExporter ex) throws IOException {
   OutputCapsule oc = ex.getCapsule(this);
   oc.write(numSamples, "numSamples", 0);
   oc.writeSavableArrayList((ArrayList) filters, "filters", null);
 }
Ejemplo n.º 24
0
 @Override
 public void write(JmeExporter ex) throws IOException {
   OutputCapsule oc = ex.getCapsule(this);
   oc.write(center, "center", null);
   oc.write(radius, "radius", 0);
 }
 public void write(JmeExporter ex) throws IOException {
   super.write(ex);
   OutputCapsule capsule = ex.getCapsule(this);
   capsule.write(radius, "radius", 0.5f);
 }
 @Override
 public void write(JmeExporter ex) throws IOException {
   OutputCapsule oc = ex.getCapsule(this);
   oc.write(initialVelocity, "initialVelocity", Vector3f.ZERO);
   oc.write(velocityVariation, "variation", 0.2f);
 }
Ejemplo n.º 27
0
 public void write(JmeExporter e) throws IOException {
   OutputCapsule capsule = e.getCapsule(this);
   capsule.write(rot, "rot", new Quaternion());
   capsule.write(translation, "translation", Vector3f.ZERO);
   capsule.write(scale, "scale", Vector3f.UNIT_XYZ);
 }
Ejemplo n.º 28
0
  public void write(JmeExporter e) throws IOException {
    super.write(e);
    OutputCapsule capsule = e.getCapsule(this);

    capsule.write(numObjects, "numObjects", 0);
    capsule.write(toChange, "toChange", new Spatial[0]);
    capsule.write(pivots, "pivots", new TransformQuaternion[0]);
    capsule.write(parentIndexes, "parentIndexes", new int[0]);
    capsule.writeSavableArrayList(keyframes, "keyframes", new ArrayList());
    capsule.write(haveChanged, "haveChanged", new boolean[0]);
    capsule.write(beginPointTime, "beginPointTime", null);
    capsule.write(endPointTime, "endPointTime", null);
    capsule.write(repeatType, "repeatType", RT_CLAMP);
    capsule.write(minTime, "minTime", 0);
    capsule.write(maxTime, "maxTime", 0);
    capsule.write(speed, "speed", 1);
  }