Primitive appearance how to define video material

在 2018年6月21日星期四 UTC+8上午10:33:44,xypi...@126.com写道:

Primitive appearance how to define video material

            scene.primitives.add(new Cesium.Primitive({
                geometryInstances: instance,
                
                appearance: new Cesium.MaterialAppearance({
                    material: new Cesium.Material({
                        fabric: {
                            type: 'Image',
                           uniforms: {
                                image: 'Images/6.mp4' <-------------------------
                            }
                        }
                    })
                })
  }));
Thanks, i want use "primitives" add rectangle,not use "entities" add rectangle.because "entities" not "modelMatrix" interface. so Primitive appearance how to define video material . my english very bad - -!

An error occurred while rendering. Rendering has stopped.
TypeError: this.material.isTranslucent is not a function
TypeError: this.material.isTranslucent is not a function
    at p.s.isTranslucent (http://localhost:51309/Build/Cesium/Cesium.js:495:12163)
    at V.update (http://localhost:51309/Build/Cesium/Cesium.js:501:12716)
    at a.update (http://localhost:51309/Build/Cesium/Cesium.js:540:20000)
    at tt (http://localhost:51309/Build/Cesium/Cesium.js:544:3341)
    at Ke (http://localhost:51309/Build/Cesium/Cesium.js:544:1145)
    at Ze (http://localhost:51309/Build/Cesium/Cesium.js:544:731)
    at Qe (http://localhost:51309/Build/Cesium/Cesium.js:543:31164)
    at lt (http://localhost:51309/Build/Cesium/Cesium.js:544:7171)
    at ut (http://localhost:51309/Build/Cesium/Cesium.js:544:7339)
    at we.render (http://localhost:51309/Build/Cesium/Cesium.js:544:15524)
var videoElement = document.getElementById('trailer');

scene.primitives.add(new Cesium.Primitive({

                geometryInstances: instance,
                
                appearance: new Cesium.MaterialAppearance({
                    material: videoElement
                }),
                releaseGeometryInstances: false,
                show: true,
            }));

See my answer in your previous post.