Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2023-12-06 18:49:07



Reply to topic  [ 3 posts ] 
Strange @camdrawalpha/@camdramin behaviour 
Author Message

Joined: 2011-10-07 10:39:20
Posts: 175
Reply with quote
Hello Henri,

while using some self built toy again with the current viewer, i noticed some odd rendering behaviour.

The RLV restrictions dialog tells me:
camavdist:10
camdistmax:10
camdrawalphamax:0.9
camdrawalphamin:0.6
camdrawcolor:1.0;0.3;0.7
camdrawmax:5
camdrawmin:1

This should render a bit fog like, a dense vision limiting sphere in grey/black.

But here the odd behaviour comes into play:
1. It works in mouselook/1st person view (see 3.)
2. It fails once parts of my avatar is in view in 3rd person view
https://ibb.co/mBFrdd8
3. Once my avatar is not in view, it works again
https://ibb.co/Y2JR1yv
4. When i right click any HUD, the view turns black like with a very dense vision sphere
https://ibb.co/cc2sVxF

This did work like 1./3. all the time in older viewers, but cannot exactly say when.


2023-08-05 22:26:29
Profile

Joined: 2009-03-17 18:42:51
Posts: 5397
Reply with quote
kathrine wrote:
camdrawcolor:1.0;0.3;0.7
.../...
This should render a bit fog like, a dense vision limiting sphere in grey/black.
There must be a typo in the colour components values, because this corresponds to a pink, not to a dark grey... :P

Quote:
But here the odd behaviour comes into play:
1. It works in mouselook/1st person view (see 3.)
2. It fails once parts of my avatar is in view in 3rd person view
https://ibb.co/mBFrdd8
I cannot reproduce this issue, here, and still see the sphere, whether in mouse look or not... Albeit not always with the same color/transparency (likely due to some occlusion culling issue).

This could be due to the very very close "camdrawalphamin:0.6" setting (60cm from your avatar eyes), which might be "too close" depending on what head attachment you are wearing (bounding box too large ?), allowing to "cheat" through...

Quote:
4. When i right click any HUD, the view turns black like with a very dense vision sphere
https://ibb.co/cc2sVxF
This is the expected behaviour, to plug some cheating cases related to face selection highlights that would otherwise allow to see through... See the corresponding code, lines 7632 to 7640 of linden/indra/newview/mkrlinterface.cpp.

Quote:
This did work like 1./3. all the time in older viewers, but cannot exactly say when.
Likely in the Windlight renderer days... That code was designed for the WL renderer, got temporarily broken with the EE renderer, then "repaired".
Not sure if it was broken with EE, but you will notice that water surfaces also get through the spheres, unoccluded...

The problem is that the restriction spheres are dealt with in three different places (*), so to deal with the various rendering passes corresponding to renderer settings (mainly ALM/forward). The good news is that the PBR renderer seems to like this RLV code better (no varying sphere darkness issue).

I will have a look (especially for the occlusion issue), but cannot guarantee I will find a solution (this code is fragile and hacky).


(*) lldrawpoolavatar.cpp for ALM, llvoavatar.cpp for forward rendering, and llviewerdisplay.cpp, likely for selection cases where the former two places are not "hit", and where the sphere is rendered opaque.


2023-08-06 08:03:45
Profile WWW

Joined: 2011-10-07 10:39:20
Posts: 175
Reply with quote
Ok, thank you.

Hmm, pink could be, the toy can use pink, black, etc.but it looks black/grey.
I'll try to reproduce it in a better way when i find time.


2023-08-06 10:09:47
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


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® Forum Software © phpBB Group
Designed by ST Software.