MichaelD

Members
  • Content Count

    370
  • Joined

  • Last visited

  • Days Won

    1

MichaelD last won the day on April 28 2015

MichaelD had the most liked content!

1 Follower

About MichaelD

Contact Methods

  • Website URL
    http://www.netgfx.com
  • Twitter
    netgfx

Profile Information

  • Gender
    Male
  • Location
    Greece

Recent Profile Visitors

2,369 profile views
  1. MichaelD

    VR touch controllers Emulator

    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. MichaelD

    Change edges of decahedron

    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. What do you have in mind?
  5. Thank you very much! I will study this and try to port one my self!
  6. MichaelD

    Eash : easy shader

    is this still maintained?
  7. 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 that I tried to convert and also failed: Thanks in advance. I know this is a complicated issue and not so difficult for people with abundant knowledge with shaders, but we all have to start somewhere
  8. 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.
  9. 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
  10. 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
  11. 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
  12. 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 unfortunately the coordinates keep changing because the object is rotating, so is there another way to track the object absolute position and convert that to screen position so I can use it the the `window` gets resized or when the camera changes angle?
  13. MichaelD

    Multiple Textures on same Geom

    I made it, thanks for all your help http://www.babylonjs-playground.com/#YDO1F#26
  14. MichaelD

    Multiple Textures on same Geom

    and will the clouds (attached) be transparent (between the clouds) allowing the underlying sphere to show? Do I need to set a specific property?
  15. 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!