-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SkinnedMesh: support weight normalization for BufferGeometry #7679
Conversation
|
||
} | ||
|
||
skinWeight.setXYZ( i, vec.x, vec.y, vec.z, vec.w ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setXYZW()
maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops... Good eyes! : - )
Please see if you can track down what is going on with your models via the debugger.
|
Here's the fiddle: http://jsfiddle.net/cndoe3re/ The
EDIT* More info: This url: http://www.titansoftime.com/webgl/Three74devb.full.js is used in http://jsfiddle.net/he21xL1p/ with the following function:
|
Like I said, |
I am not the one who originally put in I've had this model since r58 and it has been fine until now. So I highly doubt it's the model. I am not a modeler or nor an animator so any investigation on my part would be useless. I can tell you that the weights are not all 0. http://www.titansoftime.com/utils.php?task=getModel&id=121 http://jsfiddle.net/he21xL1p/ works with the set(1) and http://jsfiddle.net/cndoe3re/ does not work without it. The function originally had the set(1), it's not of my doing, but it seems to work just fine. It's absence yields breakage. Perhaps the original author of the function I'm just saying that what he/she did appears to have a reason though it's missing 3 args. Evidence being it works with it and not without it. I'm just the messenger =] |
lol @ Something was going on other than skin weights of 0 though. You can see here that the weights are not 0: http://www.titansoftime.com/utils.php?task=getModel&id=121 Regardless, all seems well. Thank you for your efforts =] |
And you do. Some vertices have all 4 weights equal to zero. Also, I do not think you give yourself enough credit. I would not have asked for your help if I felt investigation on your part "would be useless" or you were "just a messenger". |
Ah, I thought you were saying all weight at 0. Gotcha. A big "duh" on that lol. I assumed js worked like php and would halt on division by 0. Just when you think you know javascript...
That means a lot, thank you. I feel like you guys are beings from the 5th dimension when it comes to this kind of stuff though =] |
SkinnedMesh: support weight normalization for BufferGeometry
Many thanks guys! |
As a side note every single example anyone has posted since well before I pointed out a month or two ago - continue to show up black ( on Samsung Tab3 chrome current browser ), but I thought we already know that and have addressed it so it must be that people are using older versions or something. Is this expected or did that fix not go through yet? |
The model is black on my tablet due to the fact that I am loading a dds texture which is not supported on my samsung galaxy 4. I suppose I should have just used a png for examples sake. Or, are you saying the entire scene is black? |
Oh I see that explains this one. No it was just the model. The problem before was in the lighting and/or shader and nothing to do with models. I would have expected some visible shading even if the texture didn't load. I see a flat black palm and solid bright green floor on a white BG. |
Fixes #7111 and #7197.
/ping @titansoftime Please have a look.