Jump to content

[SOLVED] + Proceedural Creation of Geometry


dbawel
 Share

Recommended Posts

Hello,

I need to create allot of boxes proceeduraly, and cannot figure out how. I tried many methods to create meshes (boxes), but nothing works. I tried the same code in the following playground scene;

 http://www.babylonjs-playground.com/#1PWCZ8#2

But I keep getting the message in the console that the variable function is not a constructor.

Example using the code from the playground as a test in my scene: TypeError: YellowStar is not a constructor

Please help if you can.

Thanks,

DB

Link to comment
Share on other sites

@Pryme8

Did you run the code independent of the playground? It works fine for me on the playground, but not in my scene. However, I just reduced 70 lines of code to 30 lines - with 40 seperate imported and native meshes animating on screen. You'd be surprised what I'm building these days. Although I still have to experiment allot.

Did you get the job in Colorado?

DB

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.

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

Loading...
 Share

  • Recently Browsing   0 members

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