@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);
 }
Example #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);
 }
Example #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);
 }
 @Override
 public void write(JmeExporter ex) throws IOException {
   serialize();
   OutputCapsule out = ex.getCapsule(this);
   out.write(array, "array", null);
   out.write(index, "index", null);
 }
Example #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);
 }
Example #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);
 }
 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);
 }
Example #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);
  }
 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);
 }
Example #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);
 }
Example #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);
 }
  @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);
  }
Example #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);
 }
  @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);
  }
 @Override
 public void write(JmeExporter ex) throws IOException {
   super.write(ex);
   OutputCapsule oc = ex.getCapsule(this);
   oc.write(content, "content", new byte[0]);
 }
Example #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);
 }
 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());
 }
Example #20
0
 public void write(JmeExporter e) throws IOException {
   OutputCapsule out = e.getCapsule(this);
   out.write(poses, "poses", null);
   out.write(weights, "weights", null);
 }
Example #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));
 }
Example #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);
  }
 public void write(JmeExporter ex) throws IOException {
   OutputCapsule oc = ex.getCapsule(this);
   oc.write(numSamples, "numSamples", 0);
   oc.writeSavableArrayList((ArrayList) filters, "filters", null);
 }
 @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);
 }
Example #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);
 }
  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);
  }