Jump to content

Rectangular Textures on a Sphere


screenmutt
 Share

Recommended Posts

Actually. I just decided to try importing models from blender. However, now I am running into the following problem.

 

Here is my code:

    // Load Blender    BABYLON.SceneLoader.ImportMesh("", "", "Models.babylon", scene, function(meshes, particles) {      alert('Loaded');    });

And here is the error I get

Uncaught Error: 0 babylon.1.6.0.js:1

Any thoughts?

 

The file is definitely there.

Link to comment
Share on other sites

Here is the full console output:

Valid manifest file not found. Scene & textures will be loaded directly from the web server. babylon.1.6.0.js:20event.returnValue is deprecated. Please use the standard event.preventDefault() instead. jquery.js:5374Uncaught Error: 0 babylon.1.6.0.js:1request.onreadystatechange babylon.1.6.0.js:1

Here is a link to the project.

 

https://www.dropbox.com/s/51x1quo8q2ke4k9/babylon-test.zip

 

Sorry about it all being in the same file. This is really just an experiment and I am doing a lot of re-factoring as I go, meaning 1 file is the easiest to work with. It won't end up that way though!

Link to comment
Share on other sites

I used that totally awesome BABYLON VIEWER app and the files worked perfectly. 

 

OMAGAD OMAGAD It's my app !! Thank you :) <3

 

More seriously, you won't be able to load babylon files locally. You have to get through a local server. In Babylon, all files are retrieved using AJAX requests, and for some security reasons, you cannot request a local file using AJAX.

Link to comment
Share on other sites

  • 4 months later...

Does anybody know the right vOffset, vScale, uOffset, uScale to wrap a mercator projection off the earth around a sphere?

I have been experimenting, but I don't seem to get it right :(

 

I found out myself:

The best way to wrap a rectangle mercator projection around a sphere is to create a image of 1024 by 512 or at least in these proportions. Then it wraps around beautifully.

So you need to have image that is twice as high as wide.

 

 

 

 

 

 

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