Jump to content

Ulfheden

Members
  • Content Count

    14
  • Joined

  • Last visited

  1. Well, the issue isn't really solved. If I can't get the normal map to render correctly when using a rig, I'd be interested in knowing whether anybody else is able to use normal maps successfully with rigs or if this is specific to my rig (even though I've normalized and limited the number of influences etc.)? If it has to do with my normal map itself, should I render in Zbrush instead, and using what settings etc.? A description of a working pipeline would be great, because normal maps seem to be so poorly documented in BJS.
  2. @PatrickRyan of course! I'm using the Babylon exporter "Babylon.js ver 5.6.4" and export by simply going to File->Export and clicking on that exporter. Not many options in there though. I've also tried increasing the precision from three decimals for the various parameters to five (maximum) (these options can be found in the Scene data tab in Blender IIRC), but to no avail. Actually, even without the rig, the problem is still kind of there... it's just much more difficult to spot and probably won't be a problem when a diffuse texture is in place as well. That's correct, I don't ap
  3. @PatrickRyan, thanks! I managed to replicate what you did and I get the same results as you do in the Sandbox with a glTF file exported from Blender. The issue with the export is weird, I don't get that myself, so maybe we're using different versions of the exporter. I don't get this rotation of the jaw either? However, in my application, no matter if I'm using StandardMaterial or PBRMaterial, I get the same issue still even after smoothing out the normals. But after some more testing, I found that the issue was the rig. By unparenting the mesh from the rig, the problem doesn't show
  4. @PatrickRyan, sure thing! https://drive.google.com/open?id=1UkMj-BMo6ab4EaEhWGDVLA5IP2M1HYSB
  5. Nope, haven't tried GLTF at all. So from Blender using the GLTF exporter instead, and then using the same normal map on that in Babylon? Oh wow, thanks! Here's the mesh and the normal map used in those screenshots above. This normal map has some other artifact under the nose as well, but ignore that for now - it doesn't show up on new Xnormal-rendered normal maps so it might be because of some mistake on my part, but those artifacts in the OP have been persistent for all renders. The mesh: https://drive.google.com/open?id=11EFFKHfR85aTQzWwJOSHWHQHNqqpsNAp The normal map: https://dr
  6. Hi, There have been numerous threads on this issue kind of, but I just can't find any answer to my problem. I'm using a PBRMaterial, and an xNormal-rendered normal map in tangent space, and I've tried all kind of swizzle coordinates but they all turn out the same it seems. It looks like the normal map causes the polygon shading to not be as smooth anymore. This can't be seen at all in the normal map itself. I've also tried using a pre-triangulated mesh in Xnormal and using that mesh all the way through the pipeline from Blender to Babylon, just in case the problem would be due to the norm
  7. Oh, my bad, sorry! Thanks for the quick answer, since it made me rule out that there was any variable frame rate thing going on. Thanks to the animation tutorial page, I found the frame event listener. I used that to measure time earlier for the opening post, but never inserted one for frame 0, just frames 30 and 60, because I assumed the animations would start immediately (and thus started the timer there), but I was wrong. In my case, there's a 500 ms gap between the beginAnimation call and the actual start of frame 0. Now I start the audio clip at frame 0 instead and everything works as exp
  8. Hi, I have a speech animation for a character and an audio clip for this speech. When having the animation and audio start at the same time, however, there's a delay that makes the first 30 frames of the animation (it's in 30 fps, so the first second) take 1.5 s, but the next 30 frames, i.e. the next second, take around a second. So, it's clear that the frame rate is variable. To synchronize the animation with the audio, rather than doing some hack like inserting a 0.5 s delay on the animation (which likely won't work universally since I imagine this delay will vary from machine to m
  9. Yeah, I was aiming to use IK to make it easier to control my character's jaw (I want to define the jaw's rotation by defining its endpoint position). I'll also need to program all animation within WebGL/BJS, so I'll need to set the IK relationship and all that within BJS. I've done that now, but the thing is that the entire skeleton is affected by the IK constraint, not just the jaw. In e.g. Blender, you can set the chain length, i.e. how many levels of bones above the bone to be affected by the IK relationship, but there's nothing in the Bone or BoneIKController classes that suggests there's
  10. Thanks for the response, everybody! Wingnut, there are no export options for Babylon, really. It just says "No Properties" where, for other formats, there'd be a bunch of settings specific to that format. Yeah, but that's what I'm wondering - in Dude's case, the neck is getting stretched, while in my case, the bones are just being detached and float away. What's the difference between the Dude's skeleton and mine there? In the Dude's case, isn't his head just a child of the neck, and this is supposed to mean that when you translate the head, the neck stretches as observed in the demo t
  11. Hi again, After having rigged in Blender I noticed that the parents of bones don't rotate accordingly. It works in this demo from the tutorial however, where translating the head makes the neck bone adjust accordingly (you can see it by enabling debugging mode and enabling the skeleton viewer): https://www.babylonjs-playground.com/#1BZJVJ#32 I just can't tell what's wrong with my skeleton. In my case, moving or rotating a parent makes its children move just like they should, but moving a child does not rotate/scale their parents like in that demo. I tried downloading that demo a
  12. Just what I was looking for, thank you! Didn't come across this despite a fair share of googling.
  13. Hi, I'm learning Babylon.js at the moment and when importing skeletons and animations it would be very helpful to be able to see the bones in the browser as well. Is there any easy way to do this, or will I have to e.g. copy the bones into meshes, skin/attach the meshes to the bones and export these dummy bones with them? Cheers!
×
×
  • Create New...