Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


MichaelD last won the day on April 28 2015

MichaelD had the most liked content!

About MichaelD

  • Rank
    Advanced Member

Contact Methods

  • Website URL
  • Twitter

Profile Information

  • Gender
  • Location

Recent Profile Visitors

3551 profile views
  1. I think what he is asking (and would like to know my self as well) is how can we emulate the controller events without actually having any physical controllers or VR-Set (if possible).
  2. Hello, thanks for this, it really helps. I was stuck on how to change anything `at all`....
  3. Hello, I'm trying to increase the sizeY of a decahedron (Type 11 of polyhedra) like the one here http://www.babylonjs-playground.com/#AFXASF to make it more like type (10 - Triangular Dipyramid (J12)) but with 10 faces (in general make it look more like a rombus/diamond/etc, more pointy at Y). Is there a way? Types are from here: https://babylonjsguide.github.io/intermediate/Polyhedra_Shapes.html Thanks.
  4. Thank you very much! I will study this and try to port one my self!
  5. Hello, Is there a guide or some documentation on how to convert shaders from ThreeJS or shadertoy? I see that each one uses different uniforms and it a bit confusing. For example I wanted to convert this shader from shadertoy: https://www.shadertoy.com/view/lsK3Dm I added the code to CYOS on the fragment shader box but got many errors mostly due to the lack of uniforms that shadertoy uses by default. It would be nice if a list of equivalents existed that would make the convertion easier from one tool to another since all use GLSL And this is the ThreeJS example th
  6. Thanks this is where I have reached also, but the offsets are giving me trouble, especially when the window resizes, I tried multiplying with a percentage but still its not perfect, on extreme scaling it goes way off.
  7. Hello, Is there a way to get the size of an object after the window has been resized? (Whole scene gets scaled down/up). planet2.getBoundingInfo().boundingBox.vectorsWorld; but it only displays 1.25 no matter how much I resize my browser window
  8. hm not exactly what I'm after, I'm looking to keep both canvas (for 3D) and plain HTML on the same page, I just need a way to properly read 3D objects sizes and positions according to screen. Something like what is doing here: http://www.space-advisor.ca/en/?experience
  9. To be honest I'm not trying to insert DOM elements inside the canvas. I'm trying to determine a mesh position (in pixels) and its size (in pixels) again. But it is difficult because a) the mesh is rotating and many values change, b ) On window resize the sphere gets scaled up/down and cannot find a good way of determining its size when that happens. The site is a mix of simple HTML elements and Babylonjs
  10. Hello, I have some UI elements on the DOM that I want to move relative to the 3D objects, I searched this forum and generally and the best I could find was: scene.afterRender = function() { var worldMatrix = planet2.getWorldMatrix(); var transformMatrix = scene.getTransformMatrix(true); var position = planet2.position; var viewport = scene.activeCamera.viewport; var coordinates = BABYLON.Vector3.Project(position, worldMatrix, transformMatrix, viewport); console.log(coordinates, window.innerWidth * coordinates.x); }; but unfortuna
  11. I made it, thanks for all your help http://www.babylonjs-playground.com/#YDO1F#26
  12. and will the clouds (attached) be transparent (between the clouds) allowing the underlying sphere to show? Do I need to set a specific property?
  13. Hello, I'm working on creating a site with BabylonJS and I need to make a planet, I have setup most of the look and feel about it but the only thing I'm missing are the clouds, so I want to add clouds similar to this site (earth) http://www.space-advisor.ca/en/?experience But don't know where to start, I haven't found anything explaining how can I add two or more materials/textures to the same Sphere for example. Any help is appreciated!
  • Create New...