Announcement

Collapse
No announcement yet.

Problem with .dae objetc

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

  • Licea20
    started a topic Problem with .dae objetc

    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?

  • GavinH
    replied
    Originally posted by Licea20 View Post
    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?
    I am also facing the same issue here and in need of help.

    Help is highly appreciated.

    Thanks in advance,
    Regards,
    Gavin

    Leave a comment:


  • GavinH
    replied
    Originally posted by Licea20 View Post
    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?
    Facing the same issue here too. Help is appreciated,

    Thanks in advance,
    Regards,
    Gavin

    Leave a comment:

Working...
X