2010/5/1 Nicholas Seward <[email protected]> > Hi, > I am attempting to apply a texture. It partially works but the part > is still yellow tinted. My texture was only black and white. > > t = Texture('texture.bmp') > m = Graphic3d_MaterialAspect(Graphic3d_NOM_SILVER) > display.DisplayShape(myShape.shape(),material=m, texture=t) > > Thanks, > Nicholas Seward > > Hi Nicholas,
Rendering does not only depend on the color/material/texture properties, but also on lightning. In the OCCViewer class of pythonocc, default OpenCascade lights ar enabled You should remove them and set up your own lights. A new example 'lightened_shaped.py' was added since the latest pythonOCC release, have a look at the source code: http://code.google.com/p/pythonocc/source/browse/trunk/src/examples/Level2/Display/lightened_shape.py Regards, Thomas
_______________________________________________ Pythonocc-users mailing list [email protected] https://mail.gna.org/listinfo/pythonocc-users
