Define camera position in a GLTF file (Blender)

Hey @renard, as we like to say around here, “Welcome to the Babylon family!” We’re genuinely very happy to have you hear!

Couple of questions for you:

  1. How are you exporting from Blender to GLTF? Is it with the included exporter, or the Babylon.js exporter?

  2. When you say that you’re trying to open the file in the GLTF viewer, what are you referring to? Are you talking about the sandbox? https://sandbox.babylonjs.com/

  3. Assuming you’ve included the camera in your exported gltf file, and you’re using the sandbox, you should be able to open up the sandbox and turn on the new camera.

You have to first make sure that you’re properly exporting the Blender camera. Here’s a screenshot of how to do that in the built in exporter:

image

In the sandbox, you simply open up the inspector with this button:
image

And then navigate the scene hierarchy until you find your exported camera:
image

And then you simply select the camera icon next to your exported camera:
image

Then you’ll be viewing the scene through your exported camera.

Hope that helps!

1 Like