Coder Social home page Coder Social logo

Comments (2)

Avnerus avatar Avnerus commented on June 23, 2024

Hi Eytan,
This is an issue of Cross-Origin policy.
I believe you have two options:

  1. Make sure that your website code has the exact same domain name as where the tiles are. In your case, one has www as a subdomain and the other does not.
  2. Define a cross origin policy in your server. For example:
Access-Control-Allow-Origin: www.eytanmann.xyz

or just

Access-Control-Allow-Origin: *

/Avner

from three-loader-3dtiles.

Eytanm avatar Eytanm commented on June 23, 2024

Hi Avner!
Finally getting back to this, trying to host my own tileset, after encountering problems with Cesium.
I set up your example (using webpack), and works fine. Then I refer to my own tiles, created with RC...
I keep getting an error.
I haven't used DRACO to compress but deactivated the options in oader3DTiles.load(

const result = await Loader3DTiles.load(
  {
	url:
	queryParams.get('tilesetUrl') ??
	'https://eytanmann.xyz/threejs/data/tileset_synagogueTiles.json',
	//'https://int.nyt.com/data/3dscenes/ONA360/TILESET/0731_FREEMAN_ALLEY_10M_A_36x8K__10K-PN_50P_DB/tileset_tileset.json',
  	renderer: renderer,
  	// options: {
	// dracoDecoderPath: 'https://cdn.jsdelivr.net/npm/[email protected]/examples/js/libs/draco',
	// basisTranscoderPath: 'https://cdn.jsdelivr.net/npm/[email protected]/examples/js/libs/basis',
	// maximumScreenSpaceError: queryParams.get('sse') ?? 48,
  	// }
}

error1
code
ftp2
ftp1

Any suggestions?
Thanks!!

from three-loader-3dtiles.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.