Skip to content

guidance on loading GlTF 2.0 file and move it by coordinates (coordinates will change every 30 seconds) #2666

Discussion options

You must be logged in to vote

There is a (rudimentary) GLTF loader in osgEarth. You can load it with osgDB::readNode and you can put it under a GeoTransform to position it. You can test from the earth file like so

<map>
    <libraries>gltf</libraries>
    
    <TMSImage>
        <url>https://readymap.org/readymap/tiles/1.0.0/7/</url>
    </TMSImage>
    
    <annotations>
        <model>
            <position lat="0" long="0" alt="0"/>
            <style>
                model: "glTF/ToyCar.gltf";
                model-scale: 1000000;
            </style>
        </model>
    </annotations>
</map>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AhmedAredah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants