Thanks for your replies!!
I have specular materials working now, but still have problems with opacity.
Specular materials: I see there is a difference when I specify Ni or not:
if I specify Ni, I get a specular material with Reflection (Ks) and Transmission (Kd) components.
if I do not specify Ni, I get a glossy material with Diffuse (Kd) and Specular (Ks) components.
Opacity: I also tried setting the dissolve map (map_D), but can't get this imported. There is also no effect of the dissolve parameter (d). The "Texture types|opacity (d)" is checked under preferences. Diffuse and bump maps are imported ok. Are there any other parameter I have to set?
The following is from the obj spec
map_d -options args filename
Specifies that a scalar texture file or scalar procedural texture file
is linked to the dissolve of the material. During rendering, the map_d
value is multiplied by the d value.
"filename" is the name of a scalar texture file (.mps), a scalar
procedural texture file (.cxs), or an image file.
The options for the map_d statement are listed below. These options
are described in detail in "Options for texture map statements" on page
5-18.
-blendu on | off
-blendv on | off
-clamp on | off
-imfchan r | g | b | m | l | z
-mm base gain
-o u v w
-s u v w
-t u v w
-texres value
and
d factor
Specifies the dissolve for the current material.
"factor" is the amount this material dissolves into the background. A
factor of 1.0 is fully opaque. This is the default when a new material
is created. A factor of 0.0 is fully dissolved (completely
transparent).
Unlike a real transparent material, the dissolve does not depend upon
material thickness nor does it have any spectral character. Dissolve
works on all illumination models.
t_3: Thanks for your examples! I don't get the dissolve map to import, does it work on your machine?
(I am using 1.0beta 2.46b demo)