필터 지우기
필터 지우기

Raytracing gltf custom surface material

조회 수: 14 (최근 30일)
Stavros Tsimpoukis
Stavros Tsimpoukis 2023년 12월 2일
댓글: Miranda 2024년 5월 8일
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

답변 (1개)

Abhishek Chakram
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:
  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
Miranda
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 CenterFile Exchange에서 Condensed Matter & Materials Physics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by