Announcement

Collapse

WorldWind project shut down, this site probably will be too.

Hello all,

With the recent announcement that the NASA World Wind project has been shut down (https://worldwind.arc.nasa.gov/news/...ension-notice/) there is really very little reason to continue running this forum, and as NASA staff were providing most of the moderation and responses it will likely fill up with spam shortly.

Unless something changes in the near future, I will be shutting down worldwindcentral.com as well as this forum, as it is no longer useful. Most of the data on WWC is referencing the legacy C# version of World Wind anyway.

Thanks,
Matt.
See more
See less

Problem with .dae objetc

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with .dae objetc

    I add a .dae object in a WorldWindGLCanvas but it is not displayed correctly, some shows them without color and others with color faults.
    My code is the following:

    Object obj = new File("Collada/collada_models/Reciprocating_Saw/Reciprocating_Saw.dae");
    ColladaRoot colladaRoot = ColladaRoot.createAndParse(obj);
    colladaRoot.setPosition(Position.fromDeg rees(19.199838, -96.132488, 50000));
    colladaRoot.setAltitudeMode(WorldWind.RE LATIVE_TO_GROUND);
    colladaRoot.setModelScale(new Vec4(1000));
    ColladaController colladaController = new ColladaController(colladaRoot);
    RenderableLayer layer = new RenderableLayer();
    layer.addRenderable(colladaController);
    ww.getModel().getLayers().add(layer);
    ww.redraw();

    Am I failing something? Or how should such objects be .dae?
Working...
X