Class BranchGroupPortrayal3D

All Implemented Interfaces:
Portrayal, Portrayal3D

public class BranchGroupPortrayal3D extends PrimitivePortrayal3D
Loads a Lightwave 3D scene file (.lwo or .lws extension) or a Wavefront object file (.obj extension) into a BranchGroup, then attaches this as a portrayal. All scene elements and attributes are loaded (fog, sound, etc. as well). Generally all geometry in the scene is loaded as a Shape3D. If an Appearance is specified in the constructor, it is applied to all Shape3D objects in the scene. Else they are left with the appearance specified in the file.

You can also use other loaders for other scene file formats. NCSA Portfolio contains a large number of them, but it's not quite open source (free for academic, research, or internal business use). See the MASON website for a link to download and use the NCSA Portfolio library.

  • Constructor Details

    • BranchGroupPortrayal3D

      public BranchGroupPortrayal3D(javax.media.j3d.BranchGroup scene)
      Constructs a BranchGroupPortrayal3D with the given scene file loader without changing its appearance, scale, or transform.
    • BranchGroupPortrayal3D

      public BranchGroupPortrayal3D(javax.media.j3d.BranchGroup scene, double scale)
      Constructs a BranchGroupPortrayal3D with the given scene file loader without changing its appearance, but scaling it.
    • BranchGroupPortrayal3D

      public BranchGroupPortrayal3D(javax.media.j3d.BranchGroup scene, javax.media.j3d.Transform3D transform)
      Constructs a BranchGroupPortrayal3D with the given scene file loader without changing its appearance, but transforming it.
    • BranchGroupPortrayal3D

      public BranchGroupPortrayal3D(javax.media.j3d.BranchGroup scene, javax.media.j3d.Appearance a)
      Constructs a BranchGroupPortrayal3D with the given scene file loader without transforming it or scaling it, but changing its appearance (unless the appearance is null).
    • BranchGroupPortrayal3D

      public BranchGroupPortrayal3D(javax.media.j3d.BranchGroup scene, double scale, javax.media.j3d.Appearance a)
      Constructs a BranchGroupPortrayal3D with the given scene file loader by scaling it and changing its appearance (unless the appearance is null).
    • BranchGroupPortrayal3D

      public BranchGroupPortrayal3D(javax.media.j3d.BranchGroup scene, javax.media.j3d.Transform3D transform, javax.media.j3d.Appearance a)
      Constructs a BranchGroupPortrayal3D with the given scene file loader by transforming it and changing its appearance (unless the appearance is null).
  • Method Details