Raytracing gltf custom surface material

25 views (last 30 days)
Stavros Tsimpoukis
Stavros Tsimpoukis on 2 Dec 2023
Commented: Miranda on 8 May 2024
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

Answers (1)

Abhishek Chakram
Abhishek Chakram on 19 Dec 2023
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:
  1. 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.
  2. Use the “importGeometry” function to import the glTF file into MATLAB.
  3. 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.
  4. Apply the custom material properties to the relevant surfaces and run raytracing simulations
You can refer to the following documentation to know more about the functions used:
Best Regards,
Abhishek Chakram
  1 Comment
Miranda
Miranda on 8 May 2024
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.

Sign in to comment.

Categories

Find more on RF Propagation in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!