Cool VL Viewer forum http://sldev.free.fr/forum/ |
|
Strange @camdrawalpha/@camdramin behaviour http://sldev.free.fr/forum/viewtopic.php?f=7&t=2381 |
Page 1 of 1 |
Author: | kathrine [ 2023-08-05 22:26:29 ] |
Post subject: | Strange @camdrawalpha/@camdramin behaviour |
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. |
Author: | Henri Beauchamp [ 2023-08-06 08:03:45 ] | ||||||||||||||||||||||||||||||||||||
Post subject: | Re: Strange @camdrawalpha/@camdramin behaviour | ||||||||||||||||||||||||||||||||||||
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...
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. |
Author: | kathrine [ 2023-08-06 10:09:47 ] |
Post subject: | Re: Strange @camdrawalpha/@camdramin behaviour |
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. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |