|
FAQ
• Search • Login
|
|
Page 1 of 1
|
[ 2 posts ] |
|
error rendering selection
Author |
Message |
csell
Joined: Thu Jan 26, 2017 8:09 pm Posts: 7
|
 error rendering selection
Hello,
I am displaying a model with GLC_Viewport::backgroundColor set to a color of my liking. I also have set
GLC_SelectionMaterial::setUseSelectionMaterial(false);
now, when I select an area with transaprency (say, the window of a car), the non-covered area is painted in black. If I turn selection material on, it is completely painted in the selection color, which is also not ideal.
as a worklaround, I have commented out line 294 in glc_geometry.cpp:
//m_IsSelected= renderProperties.isSelected();
with that, everything displays ok for me, but since it is a uninformed hack I suppose it breaks elsewhere (most likely selection coloring will not work at all, wich is ok for me)
regards, Chris
|
Sat Feb 18, 2017 12:21 pm |
|
 |
csell
Joined: Thu Jan 26, 2017 8:09 pm Posts: 7
|
 Re: error rendering selection
as an amendment, I have changed the commented-out line to
m_IsSelected= renderProperties.isSelected() && GLC_SelectionMaterial::isUseSelectionMaterial();
(with new function GLC_SelectionMaterial::isUseSelectionMaterial()). That way, selection works as previously if material is enabled. Chris
|
Sat Feb 18, 2017 1:23 pm |
|
 |
|
|
Page 1 of 1
|
[ 2 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 1 guest |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|