Jump to content

Working on SubdivisionZ on GroundMesh


Recommended Posts

Right now if you create a rectangular ground mesh, you get rectangular quads:


This isn't ideal when deforming the mesh, so I decided add an option for subdivisionX and subdivisionZ on GroundMesh:


I got it working with sides here:


I haven't tested _getFacetAt, _initHeightQuads, or _computeHeightQuads yet, so they probably aren't working properly.


Link to comment
Share on other sites

welcome in TS hell :P

Well, the best way I found not to have TS conflicts (nor github ones) is this one :

use the TS version installed by the task "install" provided with BJS in Babylonjs/Tools/Gulp  :  (as root/admin) npm install

this will install the right ts version, compiler, with gulp etc

then to compile and build BJS : gulp typescript


Link to comment
Share on other sites

I originally was going to call the new options:  subdivisionX, subdivisionZ, but then I changed my mind after seeing that in Blender it is subdivisionX, subdivisionY.  

Today I'm second guessing myself.  Maybe my original thought of subdivisionX, subdivisionZ makes more sense.  

Although, when you create a ground mesh there is an option for height and no depth, which sort of fits with subdivisionY.  :/


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...