• Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by MichaelD

  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 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
  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 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?
  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!
  14. My new game Crazy Eggs! is live on Codecanyon. You can play it live here: https://netgfx.com/trunk/games/crazyeggs/ It's a shuffle items game for the holidays, or it can be used as a template for any theme/occasion
  15. My new game is Crazy Eggs! It's a shuffle items game for the holidays, but can be used as a template for other themes as well (Xmas, Halloween, summer, any holiday or occasion) https://codecanyon.net/item/-crazy-eggs-shuffle-items-game/19667757 Play it live here: https://netgfx.com/trunk/games/crazyeggs/
  16. @Befive.Info It sounds interesting, please make a PR and I will review and merge.
  17. Nah I'm not a graphic designer, most of them were bought, some others were just photoshoped into their final form by me. Yes a lot of work went into the attack animations.
  18. Welcome to Quizland Conquest A STRATEGY / TRIVIA GAME, WHERE THE PLAYER NEEDS TO ANSWER TRIVIA QUESTIONS TO PROGRESS AND CAPTURE NEUTRAL OR ENEMY POINTS ON THE MAP. USE YOUR WITS AND DEFEAT UP TO 3 COMPETITIVE A.I OPPONENTS, OR YOUR OWN FRIENDS! Currently it is launched under Envato Codecanyon here: https://codecanyon.net/item/quizland-conquest/19378006 You can play the full game here: http://www.kongregate.com/games/Netgfx/quizland-conquest
  19. My new game on Kongregate: http://www.kongregate.com/games/Netgfx/quizland-conquest Its a Trivia/Strategy game, where you can play with 3 other human players or any number of A.I players up to 4 (yes you can set 4 A.I players and let them compete with each other )
  20. any news on this? having the same issue with texture 1200x3000
  21. This my seasonal game for this XMas https://codecanyon.net/item/presenting/19105689 It was initially made as an XMas game/card for my company, and this year I customized it and add it on Codecanyon. I hope you enjoy it. Merry Christmas Everyone!
  22. Sure thing. I will take a look.