Creating and loading big 3D objects into Cesium
I'm trying to create and load 3D objects into Cesium.
I need to create these objects programmatically (by using some import-transformation service, .NET platform used) from various sources
I have experience of doing it in THREEJS.
I read DXF file, convert entities into PostGIS geometries, triangulate (to create surface from elevation data), tessellate geometries and finally construct
THREEJS-compatible scene (JSON format, Gzipped, THREE.BufferGeometry used). This works pretty well: no problems with loading hungreds of thousands triangles/points.
Sometimes I use webworkers just to request and parse JSON.
Also, I was able to load pretty big (40mb) geojson into my OpenLayers client app without any problem (Map and WebGLMap)
But I can't load even 20mb geojson (polylines) into cesium (1.51.0)!
viewer.dataSources.add(Cesium.GeoJsonDataSource.load('data/geojson/test1.geojson'));
gives me
An error occurred while rendering. Rendering has stopped.
RangeError: Array buffer allocation failed
RangeError: Array buffer allocation failed
at arrayBufferConstructor_DoNotInitialize (<anonymous>)
at new Float64Array (<anonymous>)
at Object.o.createTypedArray (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:227:18570)
at H (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:230:21640)
at j (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:230:22200)
at ne (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:230:30083)
at Object.ae.splitLongitude (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:231:7036)
at v (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:231:10398)
at Object.M.combineGeometry (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:231:13298)
at r (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:231:18552)
Why is that?
What can I do? GLTF/GLB/3D tiles are pretty complex formats. There is no rich tool set to customize/control object creation using these formats.
I do not want to buy super-duper (really) FME Server to create GLTFs...
Maybe I can use czml to load complex geometries, using polylines etc)?
3d postgis cesium gltf czml
add a comment |
I'm trying to create and load 3D objects into Cesium.
I need to create these objects programmatically (by using some import-transformation service, .NET platform used) from various sources
I have experience of doing it in THREEJS.
I read DXF file, convert entities into PostGIS geometries, triangulate (to create surface from elevation data), tessellate geometries and finally construct
THREEJS-compatible scene (JSON format, Gzipped, THREE.BufferGeometry used). This works pretty well: no problems with loading hungreds of thousands triangles/points.
Sometimes I use webworkers just to request and parse JSON.
Also, I was able to load pretty big (40mb) geojson into my OpenLayers client app without any problem (Map and WebGLMap)
But I can't load even 20mb geojson (polylines) into cesium (1.51.0)!
viewer.dataSources.add(Cesium.GeoJsonDataSource.load('data/geojson/test1.geojson'));
gives me
An error occurred while rendering. Rendering has stopped.
RangeError: Array buffer allocation failed
RangeError: Array buffer allocation failed
at arrayBufferConstructor_DoNotInitialize (<anonymous>)
at new Float64Array (<anonymous>)
at Object.o.createTypedArray (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:227:18570)
at H (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:230:21640)
at j (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:230:22200)
at ne (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:230:30083)
at Object.ae.splitLongitude (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:231:7036)
at v (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:231:10398)
at Object.M.combineGeometry (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:231:13298)
at r (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:231:18552)
Why is that?
What can I do? GLTF/GLB/3D tiles are pretty complex formats. There is no rich tool set to customize/control object creation using these formats.
I do not want to buy super-duper (really) FME Server to create GLTFs...
Maybe I can use czml to load complex geometries, using polylines etc)?
3d postgis cesium gltf czml
add a comment |
I'm trying to create and load 3D objects into Cesium.
I need to create these objects programmatically (by using some import-transformation service, .NET platform used) from various sources
I have experience of doing it in THREEJS.
I read DXF file, convert entities into PostGIS geometries, triangulate (to create surface from elevation data), tessellate geometries and finally construct
THREEJS-compatible scene (JSON format, Gzipped, THREE.BufferGeometry used). This works pretty well: no problems with loading hungreds of thousands triangles/points.
Sometimes I use webworkers just to request and parse JSON.
Also, I was able to load pretty big (40mb) geojson into my OpenLayers client app without any problem (Map and WebGLMap)
But I can't load even 20mb geojson (polylines) into cesium (1.51.0)!
viewer.dataSources.add(Cesium.GeoJsonDataSource.load('data/geojson/test1.geojson'));
gives me
An error occurred while rendering. Rendering has stopped.
RangeError: Array buffer allocation failed
RangeError: Array buffer allocation failed
at arrayBufferConstructor_DoNotInitialize (<anonymous>)
at new Float64Array (<anonymous>)
at Object.o.createTypedArray (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:227:18570)
at H (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:230:21640)
at j (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:230:22200)
at ne (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:230:30083)
at Object.ae.splitLongitude (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:231:7036)
at v (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:231:10398)
at Object.M.combineGeometry (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:231:13298)
at r (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:231:18552)
Why is that?
What can I do? GLTF/GLB/3D tiles are pretty complex formats. There is no rich tool set to customize/control object creation using these formats.
I do not want to buy super-duper (really) FME Server to create GLTFs...
Maybe I can use czml to load complex geometries, using polylines etc)?
3d postgis cesium gltf czml
I'm trying to create and load 3D objects into Cesium.
I need to create these objects programmatically (by using some import-transformation service, .NET platform used) from various sources
I have experience of doing it in THREEJS.
I read DXF file, convert entities into PostGIS geometries, triangulate (to create surface from elevation data), tessellate geometries and finally construct
THREEJS-compatible scene (JSON format, Gzipped, THREE.BufferGeometry used). This works pretty well: no problems with loading hungreds of thousands triangles/points.
Sometimes I use webworkers just to request and parse JSON.
Also, I was able to load pretty big (40mb) geojson into my OpenLayers client app without any problem (Map and WebGLMap)
But I can't load even 20mb geojson (polylines) into cesium (1.51.0)!
viewer.dataSources.add(Cesium.GeoJsonDataSource.load('data/geojson/test1.geojson'));
gives me
An error occurred while rendering. Rendering has stopped.
RangeError: Array buffer allocation failed
RangeError: Array buffer allocation failed
at arrayBufferConstructor_DoNotInitialize (<anonymous>)
at new Float64Array (<anonymous>)
at Object.o.createTypedArray (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:227:18570)
at H (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:230:21640)
at j (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:230:22200)
at ne (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:230:30083)
at Object.ae.splitLongitude (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:231:7036)
at v (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:231:10398)
at Object.M.combineGeometry (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:231:13298)
at r (http://localhost:9090/public/ThirdParty/Cesium/Workers/combineGeometry.js:231:18552)
Why is that?
What can I do? GLTF/GLB/3D tiles are pretty complex formats. There is no rich tool set to customize/control object creation using these formats.
I do not want to buy super-duper (really) FME Server to create GLTFs...
Maybe I can use czml to load complex geometries, using polylines etc)?
3d postgis cesium gltf czml
3d postgis cesium gltf czml
edited Nov 17 '18 at 16:15
SalientBrain
asked Nov 16 '18 at 12:01
SalientBrainSalientBrain
1,3661015
1,3661015
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53337503%2fcreating-and-loading-big-3d-objects-into-cesium%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53337503%2fcreating-and-loading-big-3d-objects-into-cesium%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown