Error in the DSON material specs page or reading failure on my part?
chokaphi
Posts: 5
Hello,
Just wondering if I missunderstood the specifications on the DSON File Format Specification » Object Definitions » material page.
glossiness | A float value representing the glossiness of the material. |
and
ior | A float value representing the index of refraction for the material. |
While all the other related objects there are material_channel types and even the material_channel specs page uses glossiness as an example. http://docs.daz3d.com/doku.php/public/dson_spec/object_definitions/material_channel/start
I usually use C#, Newtonsoft and Linq when I normally need to access Daz files. I decided on writing a actual deserializer for daz format for fun and practice so it is quite possible it is just me failing but my DUf dson seems to be a material channel type not a simple float..
Post edited by chokaphi on
Comments
It looks like the glossiness and ior are actually of the channel type, and not a simple float type. Here are examples from real Duf file:
"diffuse" : {
"channel" : {
"id" : "diffuse",
"type" : "color",
"name" : "Diffuse Color",
"current_value" : [ 1, 1, 1 ],
"image" : null
}
},
"diffuse_strength" : {
"channel" : {
"id" : "diffuse_strength",
"type" : "float",
"name" : "Diffuse Strength",
"current_value" : 1,
"image" : null
}
},
"specular" : {
"channel" : {
"id" : "specular",
"type" : "color",
"name" : "Specular Color",
"current_value" : [ 1, 1, 1 ],
"image" : null
}
},
"specular_strength" : {
"channel" : {
"id" : "specular_strength",
"type" : "float",
"name" : "Specular Strength",
"current_value" : 1,
"image" : null
}
},
"glossiness" : {
"channel" : {
"id" : "glossiness",
"type" : "float",
"name" : "Glossiness",
"current_value" : 100,
"image" : null
}
},
"ior" : {
"channel" : {
"id" : "ior",
"type" : "float",
"name" : "Index of Refraction",
"current_value" : 0
}
},
The document was incorrect (out of date) - it has been corrected now, thank you for pointing this out.
Thank you too, sir Richard. We guessed that some documents were outdated at the Documentation Center, but still it was desirable to have official confirmation of this.