View unanswered posts | View active topics It is currently Sat Sep 23, 2017 2:26 pm



Reply to topic  [ 2 posts ] 
 error rendering selection 
Author Message

Joined: Thu Jan 26, 2017 8:09 pm
Posts: 6
Post 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
Profile

Joined: Thu Jan 26, 2017 8:09 pm
Posts: 6
Post 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
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.