Jump to content

Playground Compilation Error


touslecoq
 Share

Recommended Posts

Hey guys hopefully this is a really easy one.

I've just picked up Babylon again after a few months off.  I have a problem and was trying to create a playground file to illustrate it.  However even while building my basic playground scene I am getting a compilation error and cannot see why.

Compilation error

Line 13:27450 - this.updateSideOrientationForRightHandedSystem is not a function

http://www.babylonjs-playground.com/#1JX3ZX#1

Thanks in advance.

Richard

Link to comment
Share on other sites

Hiya @touslecoq!  Yeah, BJS didn't like the 'new' keywords in line 30 and 31 (of below version)  (line 27-28 of your version)

http://www.babylonjs-playground.com/#1JX3ZX#5

And the faceColor lines don't need 'new' in those either, but those were not the showstoppers. 

I also added a hemisphericLight... a nice universal light that often gets aimed straight up.  That type of light uses a .groundColor.  It lights-up the bottom of the mesh, and contributes-to mesh side-illumination, too.  Lookin' pretty good, now.

Hope this helps.  Be well, party on!

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