RE: LDCad POVray export
2018-02-18, 23:03 (This post was last modified: 2018-02-19, 3:28 by Michael Horvath.)
2018-02-18, 23:03 (This post was last modified: 2018-02-19, 3:28 by Michael Horvath.)
(2018-02-18, 21:48)Roland Melkert Wrote:(2018-02-18, 21:28)Michael Horvath Wrote: Yes, I can make my own array. But I was hoping for official support within LDCad.
I wouldn't know where to get the values from unless they are added to !COLOUR meta's or something.
"LDConfig.ldr" does not specify anything other than color, so you must have come up with your own values for `ior`, `reflection`, `diffuse`, `specular`, etc. etc. `BlurAmount` is just one added value. Maybe instead of storing `ior` in the array, you should instead store the material type? E.g. ABS = 1, polycarbonate = 2, rubber = 3, chrome = 4, pearl = 6, metal = 7, etc. etc.
Regardless, you use the `ldrawTexPlastic` macro for both regular plastic bricks and transparent plastic bricks. Since they are two different types of plastics (ABS versus polycarbonate) they should probably use different textures/materials. The POV-Ray newsgroup may be able to offer tips on what values you should use for materials.