Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Question about FBXLoader/GLTFLoader #2066

Answered by nzjony
sunyonglincanada asked this question in Q&A
Discussion options

You must be logged in to vote

@sunyonglincanada great question.

I'll check out the codepen and see what the issue is.

Yes, we have some internal examples that use the GLTF loader to load a 3D model in harp... let me pull out some code.

import { GLTF, GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader";

...

const loader = new GLTFLoader();

...

The following code goes inside a custom data source, and it would most likely go inside the: `getTile(tileKey: TileKey): Tile` method.

const tile = new Tile(this, tileKey); //Or whatever Tile implementation you have.

// Assuming you know where to put the model....
const geoPoint = new GeoCoordinates(latitude, longitude, altitude);
const tangentSpace = {
    position: …

Replies: 2 comments 16 replies

Comment options

You must be logged in to vote
9 replies
@nzjony
Comment options

@sunyonglincanada
Comment options

@sunyonglincanada
Comment options

@nzjony
Comment options

@nzjony
Comment options

Answer selected by sunyonglincanada
Comment options

You must be logged in to vote
7 replies
@nzjony
Comment options

@sunyonglincanada
Comment options

@sunyonglincanada
Comment options

@nzjony
Comment options

@sunyonglincanada
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants