View unanswered posts | View active topics It is currently Mon Jan 17, 2022 7:00 am

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

Joined: Thu Jan 26, 2017 8:09 pm
Posts: 7
Post error rendering selection

I am displaying a model with GLC_Viewport::backgroundColor set to a color of my liking. I also have set


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)


Sat Feb 18, 2017 12:21 pm

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

Sat Feb 18, 2017 1:23 pm
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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.