Skip to content

GettingStarted Maps

Alexander Mock edited this page Oct 31, 2022 · 2 revisions

<< Integration | Home | Sensors >>


Maps

Triangle Meshes can be stored in various file formats. Rmagine utilizes the Open Asset Import Library (assimp) in order to support a wide range of well known file formats. After loading the raw scene graph buffers with Assimp it is converted into Rmagines internal scene graph structure. Dependend on the computation backend Embree or OptiX the scene graph is prepared for fast ray traversals by building the required acceleration structures.

Embree Map

#include <rmagine/map/EmbreeMap.hpp>

namespace rm = rmagine;

int main(int argc, char** argv)
{
    std::string filename = "path/to/mesh/file";
    rm::EmbreeMapPtr map = rm::import_embree_map(filename);
    return 0;
}

OptiX Map

#include <rmagine/map/OptixMap.hpp>

namespace rm = rmagine;

int main(int argc, char** argv)
{
    std::string filename = "path/to/mesh/file";
    rm::OptixMapPtr map = rm::import_optix_map(filename);
    return 0;
}

Properties

After loading, the map consists of a complete scene graph. It then usually passed to a simulator (see next gettingstarted-sections). The advanced Map-section describes how to modify or create the internal maps from scratch.


<< Integration | Home | Sensors >>

Getting Started

     Overview

     Installation

     Integration

     Maps

     Sensors

     Simulation

     Problem Modelling

     Noise

Library

     Concepts

     Math

     Memory

     Maps

Extra

     Tools

     Data

     News

Clone this wiki locally