• Content count

  • Joined

  • Last visited

  • Days Won


dbawel last won the day on January 4

dbawel had the most liked content!


About dbawel

  • Rank
    Advanced Member

Profile Information

  • Gender
  • Location
  • Interests
    Film, Television, Animation, Technology

Recent Profile Visitors

4,013 profile views
  1. Path animation and mesh position

    @MarianG- I tried several conditions similar to this, but didn't get it right. Thank you very much for taking the time to answer and to update the PG. Between you and @JohnK, you helped add a key component to the project which was as frustrating as I've yet encountered. I missed the logic needed to execute this, and I wish you lived closer to San Diego, as I'd definitely buy you and John a beer - or two. Thank you again for your help. Cheers, DB
  2. Path animation and mesh position

    I updated the PG scene @JohnK was kind enough to build last night. If you un remark the smokeSystem.start(); you'll see it works. But I need the particles to only start near the top of the heart, and then stop before the bottom: https://www.babylonjs-playground.com/#72C7CT#2 Any thoughts would be very helpful. @Deltakosh - do you have time to look at this? I really need help today, as I've wasted hours on collisions, GetAbsolutePosition, and everything else I can think of. Thanks much, DB
  3. Hello, I have several meshes on paths, and need to begin particle animations at specific locations on the paths. However, when I use the position of an object or child on the path to start the particle animation, the condition is never met. I assume that the transforms are not updated on path animations. If I start the particle animation, it starts. But if I place it in a condition, in the same location in my script, the particle animation will not start. I'm using it on the same path which @JohnK helped me with last night:: if (mesh.position.y > 0) { smokeSystem.start(); } and mesh is on the path passing above 0.0 - which I've tried every axis and the particle system will not start. If I use collisions by placing a cube on the path which my object must pass through such as: let abc = BABYLON.MeshBuilder.CreateBox(`abc`, { size: 5 }, scene); abc.position = new BABYLON.Vector3(-50, 10, 100); if (vehicle.intersectsMesh(abc, true)) { smokeSystem.start(); } The particles will not start. But if I say smokeSystem.start(); in the exact same location, the particles start. I've spent hours on this, and tried everything I know. If anyone can help, please let me know as I have to finish this tomorrow. Thanks much, DB
  4. @JohnK- You are amazing in my opinion. I had switched the normals and binormals, but foolishly assumed that changing the order of the tangents would not have an extreme effect on the orientation behavior. This is a huge help to me, and I owe you one - and way beyond "one." You are a gentleman and very accomplished scholar. It's certainly a pleasure to have you as an integral part of our small (yet rapidly growing) community. I just hope I can assist you on the same level one day. Please have a great weekend! Cheers, DB
  5. Hello, I'm animating vehicles on paths, and have no flipping until I get to a heart shape. The curve is less than others, yet I'm getting tons of flipping (gimble lock.) I've tried converting the animation to use quaternions, but no such luck. Here's the code I'm using for the animation: If anyone can offer a solution to stop the constant flipping, I would be grateful. Every method I know doesn't want to work on this path. Thanks, DB
  6. Compiling latest bjs

    Also, did you run a "yarn install"? DB
  7. @jpdev- Are you trying to run directly off of the repro branch? If so, then make sure you pull all necessary files, set up your json.package to include everything you are using. However what is often missed is to run a "yarn install". Otherwise you most likely won't have all of the necessary files to run directly using the GitHub files. If you already know how to do this, then please provide more info, as the question isn't entirely clear to me after reading your initial post. DB
  8. Hi DK - @Deltakosh - I'm trying to find the memory leak. However, as we move closer to delivery, I'll be far more aggressive in tracking this down. So I'll share whatever I need once we get close to delivery - if I haven't solved it by then. But, right now there's allot I can try and optimize the scene and overall architecture in the process. Thanks for looking at this, as I know how busy you and your team are. And I guarantee you'll be impressed with what we're building, as it's something not yet seen in WebGL - and pushes Babylon.js to the limit. It has also received such a great response from the executive team in Japan, America, and internationally - that they have concrete plans to take the "game" onto stages internationally for highlighting the hardware abilities of the new super secret Sony phones and features which they alone contain. Sony is extremely happy with the Babylon.js framework, and appreciate all of your personal interest in the project and the support available to us as well as the entire Babylon.js user community. I'll be trying to get you or someone from your team here soon, as Sony realizes the dramatic potential which BJS provides us now and continuing to provide in the future. The general quality of rendering, animation, and all aesthetic and subjective elements of the content is far greater than what was ever initially imagined in our (Sony's) initial discussions concerning which framework to use on both the projected content as well as any mobile content. But I'll provide you with more info on this as soon as I'm able to do so - since our project and the release of the new hardware is extremely "hush hush" - as might be expected in such a highly competitive market. However, I can tell you that what is coming is a bit "mind-blowing" in many ways. But again, thank you for building such a well thought out and well functioning framework; and providing a level of support which is unprecedented in the open source community. I can hardly wait to tell you about what's coming - and hope I'm able to show you in the near future. Thanks again, David
  9. Hi @adam Unfortunately, I have to scan a new persons head and import into the scene in a game scenario. So we'll most likely scan over 1000 heads in 3 days. I am cloning and disposing as well - could this be a problem? Thanks, DB
  10. Hello, I'm importing a new OBJ file with the MTL and texture into my scene every 30 seconds. When I import, I dispose of an existing OBJ and MTL, and declare their variable (array) as null. But my frame rate continues to drop as I add and dispose of objects - even though there is only 20 heads at a time in the scene - never more. But my fps drops from over 40fps to under 20fps once I add less than 10 new heads and dispose of an equal amount. I've even forced dispose, but fps still drops. Thanks, DB
  11. @Deltakosh I'm importing 2 separate meshes, and the second mesh gives me an error: I couldn't copy the console, so I'm sending a screen shot. No matter what .babylon file I use in the second import, I get the same error. Here's the code: // Import Biplane model, transform, and parent to box mesh BABYLON.SceneLoader.ImportMesh('', './Demos/models3/', 'Biplane_body.babylon', scene, function (newMeshes) { Rmesh = newMeshes[0]; Rmesh.scaling = new BABYLON.Vector3(4, 4, 4); //Rmesh.rotation.x = -(Math.PI / 2); Rmesh.rotation.y = Math.PI / 2; Rmesh.position.y = -100; for (let nb = 0; nb <= (Vcount - 1); nb++) { rocketsArray[nb] = Rmesh.clone('biplane' + nb); rocketsArray[nb].position.y = 0; //console.log(rocketsArray[nb] rocketsArray[nb].parent = boxRotArray[nb]; } }); BABYLON.SceneLoader.ImportMesh('', './Demos/models3/', 'Biplane_prop.babylon', scene, function (newMeshes) { Pmesh = newMeshes[0]; Pmesh.scaling = new BABYLON.Vector3(4, 4, 4); //Rmesh.rotation.x = -(Math.PI / 2); Pmesh.rotation.y = Math.PI / 2; Pmesh.position.y = -100; for (let np = 0; np <= (Vcount - 1); np++) { propArray[np] = Pmesh.clone('prop' + np); propArray[np].position.y = 0; //console.log(rocketsArray[nb] propArray[np].parent = boxRotArray[np]; } }); Please help if you can. DB
  12. Cloning scenes with animation

    @Deltakosh The real scene is an airplane, and I need to animate parts on a cloned model airplane. DB
  13. Hello, If I create a simple Blender scene with a cube which rotates, When I clone the scene I can't get the animation to play. Any examples of something this simple? I need to clone many objects and start their animation at different times. DB
  14. Animate Cloned Mesh Children

    @JCPalmer - I tried every method I know to determine the names of the children of a clone. Even mesh._children(); doesn't return the children of a clone. At least I couldn't get any result from this function at all. I'm now considering separating all of the meshes from the parent file that need to animate. But considering there are dozens of meshes to animate - this adds allot of code which could easily be avoided as the children of a clone definitely have names. They must in order to animate at all. But I'm running out of time, and there appear to be no more options. DB
  15. Hello, I have a mesh (an airplane) which needs to be cloned 20 times - and then all 20 clones require their propeller to animate at different speeds and times. How do I identify each propeller or assign a variable (preferably a slot in a "propeller" array) to each cloned propeller to animate - once again animate separately. When I clone each airplane, how do I know the name of each child on the parent mesh, and animate it's children such as the propellers? How do I assign a unique name to each one? Once I have a unique name or variable assigned to each, then I can animate each one separately - but I don't know how to "Get" the names of cloned meshes or assign to a slot in an array upon cloning. Any ideas? DB