Code Monkey home page Code Monkey logo

Comments (10)

gkjohnson avatar gkjohnson commented on June 2, 2024 1

can you show your code? please ^_^

The code I used is already present in the examples and documentation. You can share a minimal example of what's not working for you as I requested previously and I can take a look.

from 3dtilesrendererjs.

gkjohnson avatar gkjohnson commented on June 2, 2024 1

If you look at the bounding box of the tileset it is way off center and therefore offscreen. You can retrieve the bounding box of the tileset with the "getBounds" function and use that to center the tileset group.

from 3dtilesrendererjs.

gkjohnson avatar gkjohnson commented on June 2, 2024

If you don't provide any sample data, a live example of the issue, or even logs then there's no help that can be provided.

from 3dtilesrendererjs.

zhoujingfu avatar zhoujingfu commented on June 2, 2024

If you don't provide any sample data, a live example of the issue, or even logs then there's no help that can be provided.

This is my sample data, The file exceeds the size, please download it, thanks.
https://github.com/zhoujingfu/canvas-editor/blob/ef5a5c990fa7fd4a16b29ff4f2613dff7944da37/testjson.zip

from 3dtilesrendererjs.

gkjohnson avatar gkjohnson commented on June 2, 2024

The linked tileset loads just fine without any special setup.

image

from 3dtilesrendererjs.

zhoujingfu avatar zhoujingfu commented on June 2, 2024

The linked tileset loads just fine without any special setup.

image

can you show your code? please ^_^

from 3dtilesrendererjs.

zhoujingfu avatar zhoujingfu commented on June 2, 2024

can you show your code? please ^_^

The code I used is already present in the examples and documentation. You can share a minimal example of what's not working for you as I requested previously and I can take a look.

here is the minimal example : https://codesandbox.io/p/sandbox/trusting-chatelet-dxnwc8?file=/src/components/HelloWorld.vue:56,15

from 3dtilesrendererjs.

gkjohnson avatar gkjohnson commented on June 2, 2024

Please check the logs of your example. This is a server resource issue:

Access to fetch at 'https://www.xpheng.com/3dmodel/Apps/assets/testjson(1)/testjson/tileset.json' from origin 'https://dxnwc8-5173.csb.app' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

from 3dtilesrendererjs.

zhoujingfu avatar zhoujingfu commented on June 2, 2024

Please check the logs of your example. This is a server resource issue:

Access to fetch at 'https://www.xpheng.com/3dmodel/Apps/assets/testjson(1)/testjson/tileset.json' from origin 'https://dxnwc8-5173.csb.app' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Sorry, Because I opened the chrome plugin, the resource issue has been fixed, but the problem still exists
image

image

from 3dtilesrendererjs.

zhoujingfu avatar zhoujingfu commented on June 2, 2024

Please check the logs of your example. This is a server resource issue:

Access to fetch at 'https://www.xpheng.com/3dmodel/Apps/assets/testjson(1)/testjson/tileset.json' from origin 'https://dxnwc8-5173.csb.app' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Sorry, Because I opened the chrome plugin, the resource issue has been fixed, but the problem still exists image

image

The reason should be that the uri of json points to the second layer of json, not the b3dm file.

from 3dtilesrendererjs.

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.