Jump to content

Playground / Dropbox


Richard C
 Share

Recommended Posts

Could someone please advise which is the correct way to reference a Babylon file from Dropbox for use in the Babylon Playground. I have tried using the 'shared link' Dropbox provides but without success. I have used both https://www.dropbos.com/s/xxxxx/xxx.babylon file  and the same link converted to "https://dl.dropboxusercontent/s/xxxxxx/", "xxx .Babylon" formats. I suspect I am not using Dropbox correctly, perhaps asking for the wrong link or something similar, so any help would be gratefully received.

Thanks

Richard C

Link to comment
Share on other sites

Hi @Richard C I have no clue, sorry, but i just had an idea to share, you could make a github repo, upload your file manually & refrence the raw file, should be doable...
look at the dude.babylon :)

https://raw.githubusercontent.com/BabylonJS/MeshesLibrary/master/Dude/dude.babylon
 

edit:

made a quick example with him, it works :)
http://www.babylonjs-playground.com/#10OJSG

Link to comment
Share on other sites

Ok Richard. Here is a simple PlayGround example from my dropbox using @aWeirdo's code above:

A star

Now I am using the Public directories of my dropbox and using "Copy Public Link" to get the URL to the desired file.

cheers, gryff :)

Link to comment
Share on other sites

Gryff and aWeido - again guys, thanks so much for your help. My model mesh is displaying in Babylon Playground!

In my research, I have read that the Public Folder is no longer created or needed in Dropbox (although you can create one manually). So taking the Star1 reference gryff, https://dl.dropboxusercontent.com/u/70260871/blender/, "star1.babylon" can be replaced with https://dl.dropbox.com/u/70260871/blender/, "star1.babylon" -  both work equally well.

I can now get on with the next stage of the learning curve.

By the way, do you know how to control the zoom element of either keyboard or mouse. I tend to use middle mouse wheel for zooming in and out but the increments are to great in Babylon and trying to get close to the mesh invariably puts me either beyond or inside the geometry.

Thanks again for your help

Richard C 

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...