ozRocker

Members
  • Content count

    673
  • Joined

  • Last visited

  • Days Won

    3

ozRocker last won the day on January 28

ozRocker had the most liked content!

1 Follower

About ozRocker

  • Rank
    Advanced Member

Contact Methods

  • Website URL
    http://www.punkoffice.com

Profile Information

  • Gender
    Male
  • Location
    Melbourne, Australia

Recent Profile Visitors

1,756 profile views
  1. How to get circumference of mesh?

    @JohnK using your method here http://punkoffice.com/measurements If you compare to the stats on the right it seems pretty accurate.
  2. How to get circumference of mesh?

    This seems to work best. Thanx mate!
  3. How to get circumference of mesh?

    That's an interesting way of doing it. Isn't diameter * PI for circles only? I will have meshes of all kinds of shape
  4. How to get circumference of mesh?

    I played with Blender to create an edge-loop at the area I want to measure. I figured that I could somehow save that as a vertex group, but the Babylon.js exporter doesn't store that info. I tried separating those vertices into a separate mesh, but I think Babylon.js exporter will only save mesh data if it creates a polygon, 'cos that separate mesh just ended up as an empty array. I don't think its possible with Blender to store a set of vertices as a "group" which the exporter will also convert
  5. Does anyone know of a way to get the circumference of a mesh at any point on the Y-axis in realtime? I've attached an image below as an example. I'd like to find the circumference around the shoulders, like I wrapped string around it then measured that length of string. I suppose you could measure the distance from one point to the next, then add them all up for total circumference but there's 2 things I'm unsure of: how to get points from exactly the same place on the Y-axis how to take into account smooth-shading
  6. How to move picked vertices from mesh?

    hello @Deltakosh is there any documenation on the WorldMonger file by any chance? I think it would be possible to reverse-engineer then figure out how to apply it to different axis, but any existing documentation would help me a lot
  7. BABYLON.Augmented Reality ... in AR.JS

    is webRTC supported by iOS Safari and Chrome now? Last I checked, there was no support but I heard Apple was planning on it. Bowser from Ericsson supports it so you can always test there until Apple catches up
  8. How to move picked vertices from mesh?

    I think I got it. I added these lines cat.setVerticesData(BABYLON.VertexBuffer.PositionKind, cat.getVerticesData(BABYLON.VertexBuffer.PositionKind), true); cat.setVerticesData(BABYLON.VertexBuffer.NormalKind, cat.getVerticesData(BABYLON.VertexBuffer.NormalKind), true); https://www.babylonjs-playground.com/#1BAPRM#107
  9. How to move picked vertices from mesh?

    I can't find anywhere how to make a mesh updatable :/ This is Schrödinger's cat that's on the Babylonjs server so its not my mesh. What's the command to make it updatable? Apologies if this is a dumb question but I've searched the doco and read the forum posts
  10. How to move picked vertices from mesh?

    Yes! Thank you It looks like I needed to use scene.pointerX instead of evt.clientX Now I need to get the vertices moving when I click on them. I have a selected vertices array, but they aren't moving anywhere https://www.babylonjs-playground.com/#1BAPRM#106
  11. How to move picked vertices from mesh?

    I discovered that the imported mesh is not pickable. So I set isPickable to true, but the mesh still doesn't register as picked https://www.babylonjs-playground.com/#1BAPRM#103 References to canvas, scene and cat are all valid. I'm totally stumped!
  12. How to move picked vertices from mesh?

    I added the World Monger code to Decal Cat but I can't get it to work :/ I'm stuck at getting the picker working. pointer down will register but the picker returns a NULL mesh. https://www.babylonjs-playground.com/#1BAPRM#102
  13. How to move picked vertices from mesh?

    I think the code is in there in elevationControl.js
  14. How to move picked vertices from mesh?

    This looks cool! But I think it doesn't load properly 'cos of the errors. I'm getting a lot of Mixed Content: The page at 'https://www.babylonjs.com/scenes/worldmonger/' was loaded over HTTPS, but requested an insecure script 'http://code.jquery.com/jquery-1.9.1.js'. This request has been blocked; the content must be served over HTTPS. kind of errors, so its failing to load jquery. Hmm...I must have a sensitive version of Chrome, 'cos normally you can mix HTTPS and HTTP without a problem
  15. Is it possible to move a group of vertices surrounding a clicked area on a mesh? I'm thinking of sculpting tools like "inflate" and "shrink". So if there's a mesh like Decal Cat would it be possible to inflate an area that is clicked on? https://www.babylonjs-playground.com/#1BAPRM