Jump to content

A couple of Babylon.js technical questions


VictorF
 Share

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!

Link to comment
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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...