Richard C Posted July 27, 2016 Share Posted July 27, 2016 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 Quote Link to comment Share on other sites More sharing options...
Nabroski Posted July 27, 2016 Share Posted July 27, 2016 I suspect I am not using Dropbox correctly. http://www.html5gamedevs.com/search/?&q=dropbox&type=forums_topic&nodes=16,28 if you totally stuck you can attach a basic babylonfile (box) direct here in the forum. and maybe someone will upload it to drobbox and share a playground (1min of workaround) Quote Link to comment Share on other sites More sharing options...
gryff Posted July 27, 2016 Share Posted July 27, 2016 @Richard C : Hi Richard - welcome to the forum Did you add an appropriate .htaccess file to the your dropbox account ? For an example see here cheers, gryff Nabroski 1 Quote Link to comment Share on other sites More sharing options...
Richard C Posted July 28, 2016 Author Share Posted July 28, 2016 Thanks Nabroski and gryff for your prompt replies. Gryff - I am trying to reference a Babylon file on the Babylon Playground platform not on a local machine. Thanks Richard C Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted July 28, 2016 Share Posted July 28, 2016 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 Quote Link to comment Share on other sites More sharing options...
gryff Posted July 28, 2016 Share Posted July 28, 2016 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 Quote Link to comment Share on other sites More sharing options...
Richard C Posted July 28, 2016 Author Share Posted July 28, 2016 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 Quote Link to comment Share on other sites More sharing options...
gryff Posted July 28, 2016 Share Posted July 28, 2016 @Richard C : 4 hours ago, Richard C said: I tend to use middle mouse wheel for zooming in and out but the increments are to great in Babylon Try setting the "wheelPrecision". See this playground again - line #9 cheers, gryff Quote Link to comment Share on other sites More sharing options...
Richard C Posted July 28, 2016 Author Share Posted July 28, 2016 Gryff - perfect. Thanks yet again. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.