|
@@ -104,14 +104,14 @@ Component({
|
|
|
// getPrimitivesByNodeName
|
|
|
const othergltf = this.scene.assets.getAsset("gltf", "item1")
|
|
|
console.error('meshes', gltf.meshes)
|
|
|
+ console.log('11', gltf.getPrimitivesByMeshName('mesh_video_16024video1'))
|
|
|
+ const vm1 = gltf.getPrimitivesByMeshName('mesh_video_16024video1')
|
|
|
+ vm1.material = newMat
|
|
|
// console.error('othergltf', othergltf)
|
|
|
for (const mesh of gltf.meshes) {
|
|
|
- console.log(mesh.name)
|
|
|
- if (mesh.name === 'mesh_video_16024video1') {
|
|
|
- mesh.material = newMat
|
|
|
- console.log('mesh', mesh)
|
|
|
- }
|
|
|
- // mesh.material = newMat
|
|
|
+ console.log(mesh._el._id)
|
|
|
+
|
|
|
+ //
|
|
|
}
|
|
|
// for (const mesh of gltf.getPrimitivesByMeshName("video2")) {
|
|
|
// console.error('2有video2')
|
|
@@ -150,7 +150,7 @@ Component({
|
|
|
if (this.video1) {
|
|
|
// this.data.isStartPlay1 ? this.video1.resume() : this.video1.play()
|
|
|
// this.data.isStartPlay1 ? this.innerAudioContext1.resume() : this.innerAudioContext1.play()
|
|
|
- // this.video1.play()
|
|
|
+ this.video1.play()
|
|
|
}
|
|
|
if (this.animator1) {
|
|
|
// this.data.isStartPlay1 ? this.animator1.resume('dd') : this.animator1.play('dd')
|