han7a

Members
  • Content Count

    11
  • Joined

  • Last visited


Reputation Activity

  1. Like
    han7a reacted to dbawel in how to load a cubeTexture in diferent sizes for mobile & desktop   
    Hey,
    I wish I had the time and enough experience to develop more quickly in babylon - since I would love to see 2 new extension, which would most likely be used in EVERY bjs scene if these existed. The first would be an extension which identifies device, browser, and most importantly (perhaps only this) device resolution. Many of the posts on this forum deal with issues which are device and resolution dependant. If any developer could automatically identify the display resolution of the device in which they are rendering, this would be invaluable. In addition, then it would be great to know what device, OS, and any other specific of the device.
    Secondly, an LOD extension would also be invaluable. Utilizing the first extension, functions which render optimized textures, modifies the optimization and  tesselation of meshes, and other optimizing features such as # of lights, mesh inclusions and exclusions, etc. would be an extension I would use in every scene.
    I'm doing my very best to try and reach the very baseline of where some of you developers out there are, since it probably takes me 10X as much time to write a new function with any substance. And once I reach this point, I will be happy to contribute beyond the advice I might have from my unique experiences in production. If I thought I were able to accomplish efficiently and in reasonable time, I would love to be able to build such extensions. However, I need to be realistic, as I'm already streching my development experience in WebGL and Javascript, in building the applications currently for use in production. Although, the work we're doing on the server side should benefit everyone in the future.
    So I thought I would mention these two extensions, as they would most likely be used in every scene developed in the future. I'm sure they would become a part of the master file eventually, as this is necessary sometime in the future - it's just to mention that now would be better than later if someone more proficient than I could find the time to build these.
    Cheers,
    DB
  2. Like
    han7a reacted to jessepmason in how to load a cubeTexture in diferent sizes for mobile & desktop   
    @wingnut      with the push of 360 rigs/cameras you probley aren't wrong...here-ies could be a thing
  3. Like
    han7a reacted to hit2501 in how to load a cubeTexture in diferent sizes for mobile & desktop   
    Hi han7a
     
    I don´t know much about HTML5 but an suggestion would be use a mix of <picture> label and Babylon, because <picture> allow to set diferent images and let the navigator choose what image is closer to the size of the screen.
     
    It seems easy to use: http://www.hongkiat.com/blog/html5-picture/
     
    In this example you can shrink the navigator window to see diferent positions (images) of a kitty: http://googlechrome.github.io/samples/picture-element/
     
    crazy idea but I think its possible. 
  4. Like
    han7a got a reaction from Wingnut in how to load a cubeTexture in diferent sizes for mobile & desktop   
    I'm doing a 360 panorama with several rooms, text photo info points video etc. like this..  http://www.bmw-autosalon.ch/de-de/stand/ .. and there you can see how the images are loaded progressively. so I wanted something similar with a maximum code reuse, and with the ability to save unnecessary resources in small devices.
    the whole thing is quite simple with Babylon, and does not have much code, so I can write a version for each device. but I wanted one for all  
  5. Like
    han7a reacted to jessepmason in how to load a cubeTexture in diferent sizes for mobile & desktop   
    Wingnut you are very entertaining, I think I followed the references
  6. Like
    han7a reacted to jessepmason in how to load a cubeTexture in diferent sizes for mobile & desktop   
    @Wingnut if you feel like tackling that:
     
    I might find it useful
  7. Like
    han7a reacted to Wingnut in how to load a cubeTexture in diferent sizes for mobile & desktop   
    Well guys, I have no idea how to do that.  Sorry. 
     
    I am far from an expert, but I would suspect that you would not be able to use the assetsManager, but maybe pieces of it.
     
    I would think the order of events might be like this...
     
    1.  Get a skybox with colors only, quick.  Render it.  (or provide ANYTHING to entertain the user during loads, like SVG spirograph flowers) 
    2.  Do device checking... try to determine your needed max rez.
    3.  Change out the skybox texture to low rez TEXTURES.  Render it.
    4.  Determine if you want to load the next rez level.
    5.  Load and render hi-rez as necessary.
     
    As Raanan mentioned, somewhere in the sequence... you will know your device.  At that point, you could completely branch, and essentially "stock" a scene... specifically designed for mobiles, or specifically designed for desktop.  Essentially, two different scenes.  Stay modular, of course, so you get maximum code reuse.  Special config.  Mobile profile or desktop profile.  *shrug*  Sorry that I don't have many/any usable ideas, guys.
  8. Like
    han7a got a reaction from Wingnut in how to load a cubeTexture in diferent sizes for mobile & desktop   
    @Wingnut - yes , so both, during load process first quick and fast in low res then medium and then finally fully res. That was my thought at the beginning, then for mobile we stop the process in medium or low res.
    so, I wanted to do it with the assetsManager if he could load cubemap textures
  9. Like
    han7a got a reaction from jessepmason in how to load a cubeTexture in diferent sizes for mobile & desktop   
    @Wingnut - yes , so both, during load process first quick and fast in low res then medium and then finally fully res. That was my thought at the beginning, then for mobile we stop the process in medium or low res.
    so, I wanted to do it with the assetsManager if he could load cubemap textures
  10. Like
    han7a reacted to RaananW in how to load a cubeTexture in diferent sizes for mobile & desktop   
    You could solve it on your end (as Babylon doesn't offer this functionality, as far as I know) - check if the user is on mobile and provide a different url or a whole configuration for each device type.