As in the above PG, I want to achieve:
- Apply ANote0VideoMat to the front side
- Apply defaultMat0(Gray) to the mPipe
- Apply defaultMat(Black) to the back side
I can only get the closest as shown in the PG.
Please kindly help!
As in the above PG, I want to achieve:
I can only get the closest as shown in the PG.
Please kindly help!
Build the mesh, each one with its material and do the merge at the end.
Check merge mesh parameters for multimaterial
Got it. Thank you! @Cedric
And here is more accomplished PG:
Hi @Cedric ,
Encountered new Issues:
A look at the mesh in the inspector shows that the text mesh has vertex color but the other don’t.
Meshes must have same attributes to be able to merge them.
Thanks! I will try to debug based on your information.
How about the second issue? If the text meshes are excluded, the error will disappear but the video can’t be displayed correctly.
It seems releated to CSG2. After the intersect operation, there 2 submeshes that looks like being the same
cc @Deltakosh
Thank you! @Cedric
After some debugging and trying, the closest workaround I can get:
So what is the remaining issue? Or did you fix all ? (which I’d love :))
yep, issue is still there. check https://playground.babylonjs.com/#YYUD9Z#1
ok on it!! thanks!
Fixed here:
Fix empty runOriginalID for CSG2 toMesh by deltakosh · Pull Request #16215 · BabylonJS/Babylon.js
Thank you for the fix! @Deltakosh When will it be released?
BTW, a little progress by putting the texts firstly in the merge array, otherwise, the video will not be displayed correctly(blurring).
Hi @Cedric ,
I found that the error will be gone by not setting the faceColors option, but the issue is that it’s preferred to be able to set it. Is it a bug here?
It’s expected: merging meshes with different attributes will result in this error. Basically, if you need vertex color for 1 mesh, then you’ll have to add colors to other meshes to merge as well.
Okay, sounds fine!
Unfortunately, another issue happened:
The issue is: some parts(videoFigure and videoFigureBack) of the merge doesn’t work, they don’t move with the whole merged mesh which should. And this seems only happen when in asynchronous operation(setTimeOut). Please look into it. @Cedric
Seems like the issue has been solved already by the new version(7.51.3), it happens in my older version(7.50.0). @Cedric
Do you mean setting materials?
I can’t find out a way to set the vertex color attribute for the other meshes(sphere1, mPipe, videoFigure, videoFigureBack), so that I can merge them with the texts(myText) which I can set it through the faceColors option.