Jump to content

jurito

Members
  • Content Count

    17
  • Joined

  • Last visited

About jurito

  • Rank
    Member

Recent Profile Visitors

680 profile views
  1. I feel VERY stupid asking this but my math skills are beyond rusty and after an hour trying i kinda gave up.. How can I find the inverse formula, finding the distance having the FOV? *so embarassed*
  2. well thanks a lot for the explanation, you made my day sir!
  3. ..to give it a bit of context, what I'm trying to do is drawing a bitmap of a DOM element (with html2canvas), mapping it on a plane and tweaking the camera distanca and FOV so that the size in pixels of the plane facing the camera is the same as the texture and DOM element.
  4. something like this https://playground.babylonjs.com/#M9XT7F I see for threeJS they set the last parameter of the perspectiveCamera (camera frustum far plane) to the distance. I couldn't find how to do that in Babylon.
  5. Hello, I am trying to achieve pixel perfection in BabylonJs (ie a plane facing towards the camera with width and height lets say 100, should be 100x100px) using a simple formula ( https://github.com/mrdoob/three.js/issues/1239#issuecomment-374228203 ) I used eons ago in Papervision and later in ThreeJS but I am having some problems. I suppose it's something related to the camera settings, but I just can't pinpoint the specific issue.. Anyone did do this already? TIA
  6. Meanwhile I managed to convert other shaders and even make (simple of course) new ones but i noticed missed something on this one.. Demo with only the badtv shader: https://www.babylonjs-playground.com/#DAC1WM#4 if you play a bit with the 'distortion' and 'distorsion2' parameters, you'll see that they don't influence the shader at all, while they do on the ThreeJS demo (http://felixturner.github.io/bad-tv-shader/example/ , parameters 'Thick distort' and 'Fine distort'). Anyone can help me understand why?
  7. Hello and first of all sorry for the noob question. I am trying to convert this THREEjs shader to Babylon to no avail. I used https://www.babylonjs-playground.com/#DAC1WM as base and managed to arrive to https://www.babylonjs-playground.com/#DAC1WM#1 and now i'm kinda stuck. Anyone can help? TIA
  8. here it is.. https://playground.babylonjs.com/#CPX1GV
  9. Thanks for your answer (GREAT demos btw)! Still not working tho, same error (v3.2.0-beta.1) Im' gonna setup a playground that reproduces the problem asap..
  10. Hello, I am quite a BabylonJS noob so sorry if it's a stupid question. After creating a GroundMesh and updating the vertices' positions with CreateGroundFromHeightMap, I'm trying to locate dinamically the height of the ground at defined positions, but using the getHeightAtCoordinates method results in the error: TypeError: Cannot read property 'slope' of undefined at i._getFacetAt... Am i missing something obvious? TIA
  11. thanks for clarifying that. Exported from blender to .babylon and no problems thus far.
  12. Hi there, i'm quite a babylonjs newbie and i'm having a bit of a problem importing an .obj containing many meshes (with SceneLoader.LoadAssetContainer). What I'd like to achieve is cycle through the container.meshes array and - according to their name - add some of them to the scene and use the others to fill a coordinates array. If I attach them (scene.addMesh) everyhing is in its place, but logging their position (or absolutePosition) always returns (x:0,y:0,z:0). It's probably an easy one but i can't sort out what i do wrong. Anyone can help? TIA
×
×
  • Create New...