Custom Primitive Rendering Error on Rendering

107 views
Skip to first unread message

adit...@vizexperts.com

unread,
May 24, 2018, 2:24:34 PM5/24/18
to cesium-dev
1. A concise explanation of the problem you're experiencing.

While drawing a primitive, this error is occurring, I am giving vertices (Float64Array) and color (UInt8Array) values.

(unknown) An error occurred while rendering. Rendering has stopped.
undefined
DeveloperError: All attribute lists must have the same number of attributes.
Error
at new DeveloperError (eval at Array.concat.module.exports (http://localhost:19090/4.chunk.js:12205:8), <anonymous>:540:19)
at Function.Geometry.computeNumberOfVertices (eval at Array.concat.module.exports (http://localhost:19090/4.chunk.js:12205:8), <anonymous>:17451:27)
at updateGeometryAfterSplit (eval at Array.concat.module.exports (http://localhost:19090/4.chunk.js:12205:8), <anonymous>:36724:41)
at updateInstanceAfterSplit (eval at Array.concat.module.exports (http://localhost:19090/4.chunk.js:12205:8), <anonymous>:36763:24)
at splitLongitudeTriangles (eval at Array.concat.module.exports (http://localhost:19090/4.chunk.js:12205:8), <anonymous>:36997:9)
at Object.GeometryPipeline.splitLongitude (eval at Array.concat.module.exports (http://localhost:19090/4.chunk.js:12205:8), <anonymous>:37409:17)
at geometryPipeline (eval at Array.concat.module.exports (http://localhost:19090/4.chunk.js:12205:8), <anonymous>:97206:38)
at Object.PrimitivePipeline.combineGeometry (eval at Array.concat.module.exports (http://localhost:19090/4.chunk.js:12205:8), <anonymous>:97350:26)
at loadSynchronous (eval at Array.concat.module.exports (http://localhost:19090/4.chunk.js:12205:8), <anonymous>:99161:40)
at Primitive.update (eval at Array.concat.module.exports (http://localhost:19090/4.chunk.js:12205:8), <anonymous>:99711:17)
CesiumWidget.showErrorPanel


whats the problem ? I cant figure it out, it works sometimes on some primitives but not on all.

Gabby Getz

unread,
May 25, 2018, 9:43:28 AM5/25/18
to cesium-dev
Hi there,

I need more context. Can you provide a code sample, preferably one using Sandcastle?

Thanks,
Gabby
Message has been deleted
Message has been deleted

adit...@vizexperts.com

unread,
May 29, 2018, 5:09:00 AM5/29/18
to cesium-dev

Gabby Getz

unread,
May 30, 2018, 9:56:22 AM5/30/18
to cesium-dev
May I ask what your goal is to render? There may be a better solution depending on what you are trying to accomplish.

Aditya Panjley

unread,
May 30, 2018, 9:57:43 AM5/30/18
to cesiu...@googlegroups.com
A custom terrain landscape based on scientific data.

--
You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cesium-dev/zhflXcBazDw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gabby Getz

unread,
May 30, 2018, 10:40:23 AM5/30/18
to cesium-dev
We have a blog post on Procedural Terrain that gives an overview of how to generate meshes for terrain at runtime. In particular, you should consider an approach that incorporates level of detail (LOD) in some way, most likely by generating terrain tiles.

You may also want to take a look at this thread, as it discusses creating similar geometries.
To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.

Aditya Panjley

unread,
May 30, 2018, 10:45:16 AM5/30/18
to cesiu...@googlegroups.com
Thanks, but any information on this error, why this is arising? In triangle strip array?

To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cesium-dev/zhflXcBazDw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.

Gabby Getz

unread,
May 31, 2018, 10:02:58 AM5/31/18
to cesium-dev
I'm not exactly sure. The error is arising here. Is it possible to use lines here directly instead of using the toWireframe function?

Also generally for positions FLOATS are used (and Float32Array) because WebGL doesn't support DOUBLE.
To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cesium-dev/zhflXcBazDw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages