VictorF

A couple of Babylon.js technical questions

Recommended Posts

Please let me introduce myself: I’m a total newbie in webgl related projects but I have a big experience in 3d and other render engines like Unreal, now I want to start using webgl experiments and obviously my first step is choosing a engine, but there are two things that will make my decision.

  • How Babylon.js stream the contents? I mean my project should be able to download the assets in streaming without needing to download everything before the “game” starts. Also I played in the past with Google Marzipano, it uses cubemaps (I’ll need them too in this one), but it has a supernice feature, it allows you to define them in lots of resolutions and it starts using the lower res version and once is loaded it tries to download a higher res and so.

  • Can I make raycast to concave meshes? I need to get the real world coordinates of a picked point in screen space.

Thank you in advance!

Share this post


Link to post
Share on other sites

Hello and welcome!!!

1. Babylon.js can stream content either on demand or when a mesh is required (https://doc.babylonjs.com/how_to/using_the_incremental_loading_system). On demand is something that you can control by calling SceneLoader.Append() or assetsManager(https://doc.babylonjs.com/how_to/how_to_use_assetsmanager). We also support container that let you load data to use it later (https://doc.babylonjs.com/how_to/how_to_use_assetcontainer).

2. You can cast to any kind of geometry with scene.pick (https://doc.babylonjs.com/babylon101/picking_collisions or https://doc.babylonjs.com/babylon101/raycasts). The other way is supported with https://doc.babylonjs.com/api/classes/babylon.vector3#unproject

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.