# Material and OSPRay

**URL:** https://discourse.paraview.org/t/material-and-ospray/706
**Category:** ParaView Support
**Created:** [October 11, 2018, 9:22am UTC](https://discourse.paraview.org/t/material-and-ospray/706 "2018-10-11T09:22:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![pcrepier](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/f4b2a3/32.png) [@pcrepier](https://discourse.paraview.org/u/pcrepier)
#### Post date: [October 11, 2018, 9:22am UTC](https://discourse.paraview.org/t/material-and-ospray/706/1 "2018-10-11T09:22:09Z")

</div>

Hi everyone,

I carry on with my attempts to make my rendering look fancy. Lately, I got some impressive results using OSPRay with the pathtracer renderer. I saw that the materials where defined in a json file. I successfully added some basic material variation, like variation of the “Thin glass” with a different color.

However, I am now trying to play with the other settings so I could have finer control over reflection etc …  
I thought I would create a new “Principled” material that would mimic what “Thin glass” is doing, but I am unable to find the equivalent settings that I should set in the JSON file.

Where can I find this type of information ?

I other word, how can I reproduce the “ThinGlass” material using a new “Principled” that I would later on fine-tune to my purpose ?

Thanks in advance!

---

<div class="post-metadata">

### Author: ![Michael](https://discourse.paraview.org/user_avatar/discourse.paraview.org/michael/32/16_2.png) [@Michael](https://discourse.paraview.org/u/Michael)
#### Post date: [October 11, 2018, 1:02pm UTC](https://discourse.paraview.org/t/material-and-ospray/706/2 "2018-10-11T13:02:30Z")

</div>

Hi,  
`thin` and `thickness` attributes are missing in ParaView OSPRay mapping.  
I’ve added them locally and made some tests (and I’ve created a MR here : [https://gitlab.kitware.com/vtk/vtk/merge\_requests/4776](https://gitlab.kitware.com/vtk/vtk/merge_requests/4776)).

Here are my results (_ThinGlass_ on left, _Principled_ on right) :

 ![Screenshot_20181011_144436](https://discourse.paraview.org/uploads/default/original/1X/6ec8d0017890aab9f9c397cd78a6a4a924565ac8.png)

The materials file is

```json
    {
      "family" : "OSPRay",
      "version" : "0.0",
      "materials" : {
          "glass_Principled": {
            "type": "Principled",
            "doubles" : {
              "ior" : [1.5],
              "thin" : [1.0],
              "transmission" : [1.0],
              "transmissionColor" : [0.85, 0.95, 1.0]
            }
          },
          "glass_ThinGlass": {
            "type": "ThinGlass",
            "doubles" : {
              "attenuationColor" : [0.85, 0.95, 1.0]
            }
        }
      }
    }

```

Michael
