
Fri, 07/15/2011 - 08:04
Forums:
I am using meshVS, with MeshVS_ElementalColorPrsBuilder (to color each element separately. I also have the element edges off.
Everything is working great, but there are no shadows, so it doesn't look 3D. (I forget the name for this view, but I know it is normally optionally available)
Does anyone know if there is a way it MeshVS to have the shadow effects?
Thanks
Wed, 07/20/2011 - 21:38
The "problem" occurs when I switch from
aMesh->AddBuilder( new MeshVS_MeshPrsBuilder( aMesh.operator->() ), Standard_True );
to
Handle(MeshVS_ElementalColorPrsBuilder) aBuilder = new MeshVS_ElementalColorPrsBuilder( aMesh, MeshVS_DMF_ElementalColorDataPrs | MeshVS_DMF_OCCMask );
aMesh->AddBuilder( aBuilder, Standard_True );
which allow coloring element individually. Is the coloring always flat when coloring each element? or is there a way to get the lighting to work for element coloring mode?