My question is related to:
As my mesh is in .obj file format I use OBJMaterial and OBJTextureMap
name = "name",
Ns = 92.156863,
Kd = (1.000000, 1.000000, 1.000000),
map_Kd = OBJTextureMap(
filename = "uv_color.png"
Unfortunately the transparent parts of the png aren't rendered
transparent. How would I do that as with the GLMaterial?
Thanks in advance! :)
On 29.03.12 15:31, Maik Riechert wrote:
> name = "name",
> Ns = 92.156863,
> Kd = (1.000000, 1.000000, 1.000000),
> map_Kd = OBJTextureMap(
> filename = "uv_color.png"
> Unfortunately the transparent parts of the png aren't rendered
> transparent. How would I do that as with the GLMaterial?
I suppose you are only talking about OpenGL rendering, not RenderMan
The OBJMaterial does actually derive from GLMaterial but it doesn't
support all features of it as it was rather meant to be used with
RenderMan. So if you only want to use the OpenGL viewer, I would
actually recommend using the GLMaterial directly.
It may also work if you just call setTexture() on the OBJMaterial object
and pass a GLTexture object. The thing is that the C++ OpenGL renderer
only "sees" GLTexture objects, the OBJTextureMap is invisible to that
- Matthias -
Get latest updates about Open Source Projects, Conferences and News.