- Use a 3D modelling tool or a text editor to create or edit the glTF file. Define the custom material with the desired properties such as "SurfaceMaterialPermittivity" and "SurfaceMaterialConductivity". These properties are not standard glTF material properties, so these would be added as custom extensions or extras within the glTF file.
- Use the “importGeometry” function to import the glTF file into MATLAB.
- Define a custom material table or a set of material properties that correspond to the materials defined in the glTF file. You will need to map the custom glTF material properties to MATLAB's material properties manually.
- Apply the custom material properties to the relevant surfaces and run raytracing simulations
Raytracing gltf custom surface material
24 次查看(过去 30 天)
显示 更早的评论
Hello, I'd like to ask the following question: Is it possible to create a gltf file with custom material property ? So, later, in the raytracing propagation phenomenon the reflection loss of a ray takes into consideration custom "SurfaceMaterialPermittivity" and "SurfaceMaterialConductivity" arguments and not from the standard/ default "material table" of matlab.
I'd like to have multiple materials in the same map, so I want to avoid using one custom material on the whole scene.
Thank you
0 个评论
回答(1 个)
Abhishek Chakram
2023-12-19
Hi Stavros Tsimpoukis,
It appears to me that you are facing difficulty in creating a glTF file with custom material properties. You can use third-party tools to create or edit glTF files and then import them into MATLAB for raytracing simulations.
Here is an approach for the same:
You can refer to the following documentation to know more about the functions used:
Best Regards,
Abhishek Chakram
1 个评论
Miranda
2024-5-8
I've made a .glTF file and it is being read through the siteviewer and raytracer. My question now is, since I've mapped different materials in the scene, I'm wondering how to customize the materials table that is crucial for the calculations regarding the bounces/pathloss of the rays; do I either append the existing MatchedCatalogMaterial in some way, or redirecting to a separate "custom-materials-table"? And additionally, how to add a "customize material" into the calculations for each ray, for example, in the case below; Paper or Walls02 so that it does not read it as default/concrete.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 RF Propagation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!