Cool VL Viewer forum http://sldev.free.fr/forum/ |
|
Avatar "Hover" not reflected properly http://sldev.free.fr/forum/viewtopic.php?f=4&t=1308 |
Page 1 of 1 |
Author: | Amalia Illios [ 2013-08-27 18:45:33 ] | |||||||||
Post subject: | Avatar "Hover" not reflected properly | |||||||||
Hello Henri, hi everyone, I'll be bold and put this in the "bug" category. I am sure Henri will chastize me properly if it is something I did, but at the moment I don't see a reason to feel guilty. The issue that I have been observing is that the amount of hover displayed for avatars in Cool VL Viewer does not match the amount displayed in the official viewer. From what I have seen, avatars are always rendered further above ground in the Cool VL Viewer. This sometimes leads to my adjusting the hover downwards too far, which then looks fine for me, but people with the official viewer (and possibly others, I presume) see my feet/shoes sunk into the floor. Someone else with Cool VL Viewer will see the same hover as I do, so I presume it's something about the local interpretation of these values. I have attached some sample pictures to illustrate it. I used a static pose, adjusted the "Z-Offset" in my viewer until the soles hit the ground (in this case -0.10) and then took screenshots in 'my' viewer, another instance of the same version Cool VL Viewer with my script testing alt logged on, and once again with the latest official viewer with that alt logged on.
Could you possibly check into that sometime please, Henri? And maybe there's others who can comment on this and provide more insight. Love, Lia |
Author: | Henri Beauchamp [ 2013-08-28 00:53:38 ] |
Post subject: | Re: Avatar "Hover" not reflected properly |
This is actually a bug in LL's viewer... The hover parameter is accounted twice: once by the physics engine which sends an adjusted render position back to the viewer, position which already accounts for the hover parameter, and another time, erroneously, in LLVOAvatar::updateCharacter(), where the hover parameter is again added to the render position which was already accounting for it !... You can see this bug in action in LL's viewer by editing your avatar shape: changing the offset immediately changes the avatar position on your screen (it should not, but it does because the buggy code in LLVOAvatar::updateCharacter() immediately changes the avatar position on your screen), and once you save the shape, you will see your avatar sink again (or raise again, depending whether you decreased or increased the Hover param below or above 50) by the same amount (this time, it's normal, since it's the effect of the physics engine taking into account what the "oven" told it to use as the Hover parameter and changing the avatar's render position accordingly), thus doubling the effect of the Hover parameter ! The Cool VL Viewer doesn't suffer from this bug, because when I ported the code I immediately rejected this silly code line which messes everything up in LLVOAvatar::updateCharacter()... Now, I must find a way to work around this bug till LL fixes their viewer (I'll also have to discuss this with Nyx Linden and/or open a JIRA for this bug...). The good news is that it should be enough to add the buggy line and divide the Z offset by two before applying it to the shape as the Hover parameter to work around the issue... I'll work on that tomorrow, because it's largely past bed time for me now. |
Author: | Henri Beauchamp [ 2013-08-28 11:56:02 ] |
Post subject: | Re: Avatar "Hover" not reflected properly |
Got the work around implemented and working... It's however just a work around and the true fix will be to disable it when LL will get their viewer code straight !!! |
Author: | Amalia Illios [ 2013-08-28 17:12:18 ] | |||||||||||||||||||||||||||
Post subject: | Re: Avatar "Hover" not reflected properly | |||||||||||||||||||||||||||
Hello again Henri, thank you so much for looking into this. For a while there I thought I was going crazy when friends told me I was either hovering far in the air or stuck with my feet in the ground, when everything looked alright to me. ![]()
![]()
![]()
![]() Once again, thank you for all the excellent work that you do! Love, Lia |
Author: | Henri Beauchamp [ 2013-08-31 13:39:30 ] |
Post subject: | Re: Avatar "Hover" not reflected properly |
In fact, the multiplication factor to apply to work around that bug is even slightly more than 2... From my testing sessions, to obtain the same result as in former non-SSB sims, that factor must be around 2.25; that's because the Hover parameter is also added to the avatar height, and the pelvis offset above the ground is further adjusted server-side depending on this total height by the physics engine... The implementation of the work-around in today's releases therefore involves a new debug variable ("HoverToZOffsetFactor"), which defaults to 2.25. Setting this variable to 1.0 or less disables the work around (for when/if LL's gets their viewer fixed...). |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |