Skip to content

Unable to Visualize Mesh #635

@rpathak38

Description

@rpathak38

I'm trying to add a tree mesh that I found on the unity assets store. Here is an image of the mesh:

Image

There are 160 triangles in total in the mesh. I am adding the mesh like this:

          auto obj = world->addMesh("/home/user/raisim_objs/Trees/birch tree.obj", 1.0, 1.0, "", raisim::COLLISION(63), raisim::COLLISION(63));
          obj->setBodyType(raisim::BodyType::STATIC);
          obj->setAppearance("blue");
          obj->setPosition(5, 5, 5);
          obj->setName("obj");

It seems like the mesh is getting loaded in, but I can't seem to see it correctly just seeing some floating triangles:

Image

What am I doing wrong?
Link to Mesh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions