dbawel

Members
  • Content count

    1,162
  • Joined

  • Last visited

  • Days Won

    22

Everything posted by dbawel

  1. dbawel

    obj loader - loading material

    I can't tell without a PG example. This is simple to troubleshoot if you simply load your OBJ into the playground. You may need to edit your OBJ and/or material file, or perhaps there's not time to load the texture - however this is rare. DB Is your OBJ, MTL, and image file int the same directory? Are you using power of 2 texturing? EDIT - In looking further at your code, I can see allot of declarations that perhaps won't allow the mapping of a texture. I haven't figured out why you're addressing UVs, but the OBJ importer is simple yet fickle if you make one error. Also, if the issue is not the texture and it is the material, then edit your OBJ file to remove reference to the material, and reference in the MTL file to a texture if necessary. Eliminating the reference to the MTL file in the OBJ file will provide a very nice default texture - which could be your issue depending on how the OBJ was generated and if you already applied any materials.
  2. Hello, I've tried every location and jquery syntax for hours, and I still get an error: Uncaught TypeError: Cannot read property 'addEventListener' of null at main2.js:47. It's simply not finding the ID of the variable I've set. Any help is appriciated. It's 3am, so I'm sure I'll feel stupid in the morning. http://qedsoft.com/DEMOS2017/mobile_app/index2.html Thanks, DB
  3. dbawel

    Cannot call Dom object

    @RaananW OK, I knew if I just waited until morning, the answer would be there. Simple: window.onload = function () { }; And yes I do feel stupid...😴 DB
  4. dbawel

    Animation Curves

    @DylanD It's simple to create paths in babylon. here's a scene DK worked on that I expanded far beyond - but the code belongs to Sony Electronics: http://www.babylonjs-playground.com/#172C5E#2 The key for me was to create a loop to generate multiple paths using random (X,Y) points in space. However, if you simply need one path, then it's a far simpler task. I posted the link below recently, but there are 15 separate paths without intersection using a little math and random positions - within specific thresholds. Also, the playground scene will teach you how to keep the direction and orientation on the path - although I had to make some improvements. It's all about managing tangents, normals, and binormals. DB
  5. dbawel

    VideoTexture not working on ios

    If you hack the Iphone and can list a browser in the privacy>security setting, then you can provide permissions. Otherwise, for three.js demo, they used AR.js to capture each frame individually. Been there, and tried this, but too daunting for me. DB I tested in Safari on both Iphone and MAC IOS and nothing. However it did ask for permission. 5 different IOS devices and no result for me.
  6. dbawel

    Cannot call Dom object

    @RaananW Thanks so much for your help. For now I have my JS in my HTML file - not ideal, but keeps me working. I tried every which way, but no luck no matter what I try.: Any thoughts. Thanks, DB
  7. dbawel

    VideoTexture not working on ios

    @Asagi Unfortunately, Apple in their infinite wisdom has locked all external apps from utilizing any apple webcam. The only work around in real time is to hack an external webcam which for me is useless. Apple has allowed Skype as the only 3rd party I'm aware of to use their webcams in real time. Otherwise, the best solution I've found is to use one of the camera apps owned and maintained wholly by Apple such as iCam, and once the media is saved to disk, dynamically load it into an HTML video. There are other APIs you can use, however, I've personally had the best luck with HTML. I like WebRTC, but it's resolution is limited to 640X480 as many apps are. Best of luck, as I've exhausted every idea I could come up with to capture dynamically on IOS. Only a saved and reloaded video will display on IOS. Sorry. DB
  8. dbawel

    Import 3D model to babylon

    @Brijesh I work in Maya, but load FBX files into Blender and pass them through the .babylon exporter in Blender. It has to be installed, but that's a simple. If you simply need geometry and wan't to build your textures and environment (lighting) in babylon.js, the the .OBJ format works excellent. DB
  9. dbawel

    How remove aliasing in .gltf

    @Fer-AR After reviewing your scenes, @Nabroski is correct - of course he's incredibly brilliant and probably picked up the potential issues with the canvas in half the time I did. DB
  10. dbawel

    How remove aliasing in .gltf

    @Fer-AR Make sure your code is in the Playground, so we can work with it. Cheers, DB
  11. dbawel

    How remove aliasing in .gltf

    @Fer-AR 2-000 X 2000 is far too high for a texture. I would first avoid using the gtlf format and move to .babylon format. and @Sebavan has the first solution I was going to recommend. However, I'm revisiting the gtlf format, and thus far disappointed. DB The Blender exporter is a simple plugin to install.
  12. dbawel

    How remove aliasing in .gltf

    @Fer-AR Well here is the solution - increase the size of the texture, and export from Blender to .babylon format.. This should solve all your problems. Otherwise, here is a good solution. DB
  13. dbawel

    Lamps on Babylon / Open Contest!

    @Pryme8 You're a dickhead, but a good one. Just joking as we're all adults here. Love ya buddy! Good response. DB
  14. dbawel

    Animation Curves

    @DylanD I just delivered two games to Sony, and it is far better to set your (x,y,z,) points in space within the Babylon world space. I found ways to import curves, but what's the point. You have far more flexibility doing it all in Babylon. If you need more info on this, I'm happy to help if I have the time. DB
  15. dbawel

    IntersectMesh Trouble

    Have you defined "meshes" as a constant or any type of variable? DB
  16. dbawel

    How remove aliasing in .gltf

    @Fer-AR No anti aliasing issues on more than 8 devices and OS I have here to test. Even at high resolution. DB
  17. @JCPalmer I love to get responses by you. I'm a big fan. DB
  18. And for Gui elements - DONT SCALE WITH CAMERA... DB
  19. dbawel

    GLTF dont apply alpha/transparency

    @BlackShadauw There are things you need to know to prepare your scene for the ..babylon format. I can help you through this - ad it's not difficult if you know what you're doing. Many others can help also. DB
  20. @Amarth2Estel You don't need more info than the corners of the room. this is more than enough info to calculate an accurate tracking of your environment. DB
  21. dbawel

    Dynamic water surface

    You need a shader to dissipate over surfaces . and caustics would carry allot with a good amount of bubbles. DB
  22. dbawel

    GLTF dont apply alpha/transparency

    @BlackShadauw I've written about this before, but in my opinion the best pipeline into BJS is using the .Babylon format exported from Blender - which is the most compatible and repeatable format to use. I like Kronos, yeet the glTF format is lacking. I hope this helps. DB
  23. dbawel

    Lamps on Babylon / Open Contest!

    @Rodrix3 Read this https://en.wikipedia.org/wiki/RGBA_color_space DB
  24. dbawel

    Lamps on Babylon / Open Contest!

    @Rodrix3 I use low res duplicates of the mesh I'm texturing, when I run out of texture channels and / or their attributes to use. Make these duplicates children of the original mesh, and use the alpha channels in the 32 bit textures for transparency. This provides endless possibilities, including animating the meshes and textures on the duolicate low res meshes. I hope this explains how we create awesome scenes at Sony. DB