Jazz Posted August 23, 2015 Share Posted August 23, 2015 Anyone have any idea why my ragdolls disappear when viewed at certain angles? Sometimes they can't be seen at all. Quote --- Scott Using Windows 7 Ultimate 64 bit/Core I7-2700K @ 4312mhz/24G RAM/Nvidia GTX 1060 Link to comment Share on other sites More sharing options...
shadmar Posted August 23, 2015 Share Posted August 23, 2015 You have to update the AABB each loop. --Update the model local and global AABBs so the renderer keeps proper track of it model:UpdateAABB(Entity.LocalAABB) model:UpdateAABB(Entity.GlobalAABB) Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
Jazz Posted August 23, 2015 Author Share Posted August 23, 2015 Thanks Shadmar but there's no change after updating every loop. Quote --- Scott Using Windows 7 Ultimate 64 bit/Core I7-2700K @ 4312mhz/24G RAM/Nvidia GTX 1060 Link to comment Share on other sites More sharing options...
shadmar Posted August 24, 2015 Share Posted August 24, 2015 ok, I seem to remember that fixed my ragdolls, but I might be wrong. Tru turning off occlusion culling aswell. Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
macklebee Posted August 24, 2015 Share Posted August 24, 2015 in LE2, I had to also make the root physics body (the model in LE2), follow the ragdoll position/rotation as well or I would have that problem you are showing. In LE3, the hierarchy of mesh and physics body is swapped so I do not know if that would apply here. But I would be curious to where the entity and physics' aabb boxes end up. You should be able to visualize those by using the 'camera:SetDebugEntityBoxesMode()' and 'camera:SetDebugPhysicsMode()' and perhaps it will give an idea of what the problem could be if either of those is not following the ragdoll. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Jazz Posted August 24, 2015 Author Share Posted August 24, 2015 Thanks for those commands. After the model's in ragdoll mode the collision hull keeps going to the next waypoint lol. With BoxesMode it's hard to tell as they all move around with the camera. Disabling culling doesn't help. I'll investigate later when I have some more time. Quote --- Scott Using Windows 7 Ultimate 64 bit/Core I7-2700K @ 4312mhz/24G RAM/Nvidia GTX 1060 Link to comment Share on other sites More sharing options...
shadmar Posted August 24, 2015 Share Posted August 24, 2015 Found my project, just move the skin with the torso like each loop: self.skin:SetPosition(self.torso:GetPosition()) --keep AABB inplace. 1 1 Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
Jazz Posted August 24, 2015 Author Share Posted August 24, 2015 I'll try that after work. Interesting what happens now though. The hull and AABB just get knocked away with the bullet impact. edit: Hmm if I just set health to 0 they still fly away. edit2: Thanks Shadmar! That did it! 2 Quote --- Scott Using Windows 7 Ultimate 64 bit/Core I7-2700K @ 4312mhz/24G RAM/Nvidia GTX 1060 Link to comment Share on other sites More sharing options...
YouGroove Posted August 26, 2015 Share Posted August 26, 2015 Official LE3 feature ? Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Jazz Posted August 26, 2015 Author Share Posted August 26, 2015 No, but it would be nice to have built-in support. Quote --- Scott Using Windows 7 Ultimate 64 bit/Core I7-2700K @ 4312mhz/24G RAM/Nvidia GTX 1060 Link to comment Share on other sites More sharing options...
Josh Posted August 27, 2015 Share Posted August 27, 2015 I'll try that after work. Interesting what happens now though. The hull and AABB just get knocked away with the bullet impact. edit: Hmm if I just set health to 0 they still fly away. edit2: Thanks Shadmar! That did it! You knocked the soul right out of him! Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Jazz Posted August 27, 2015 Author Share Posted August 27, 2015 Ooh thanks for the idea! Quote --- Scott Using Windows 7 Ultimate 64 bit/Core I7-2700K @ 4312mhz/24G RAM/Nvidia GTX 1060 Link to comment Share on other sites More sharing options...
tipforeveryone Posted March 11, 2017 Share Posted March 11, 2017 Found my project, just move the skin with the torso like each loop: self.skin:SetPosition(self.torso:GetPosition()) --keep AABB inplace. I don't get it My character skin still disappears. Is that "self.torso" a bone ? Quote Link to comment Share on other sites More sharing options...
Jazz Posted March 11, 2017 Author Share Posted March 11, 2017 I don't get it My character skin still disappears. Is that "self.torso" a bone ? in start: self.child = self.entity:FindChild("Bone") Bone = top bone in the heirarchy In your Update loop: self.entity:SetPosition(self.child:GetPosition(true)) 1 1 Quote --- Scott Using Windows 7 Ultimate 64 bit/Core I7-2700K @ 4312mhz/24G RAM/Nvidia GTX 1060 Link to comment Share on other sites More sharing options...
tipforeveryone Posted March 12, 2017 Share Posted March 12, 2017 in start: self.child = self.entity:FindChild("Bone") Bone = top bone in the heirarchy In your Update loop: self.entity:SetPosition(self.child:GetPosition(true)) Thank you SGB for your explanation, this works Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.