Sign in to follow this  
jerome

roller coaster demo

Recommended Posts

Final code : http://www.babylonjs-playground.com/#1HH4OJ#4

 

the code has been cleaned up and commented so it can be used as a tutorial (I hope)

 

Use it if you want for BJS 2.1 features examples

 

It uses :

  • Follow Cam (don't know if it wasn't yet in 2.0)
  • freezeWorldMatrix
  • mesh BACKSIDE for skybox, instead of backfaceculling trick
  • generic Curve3 objects + hermite spline Curve3
  • extrusion
  • path3D object
  • rotationFromAxis method to compute wagon live rotation

 

 

Share this post


Link to post
Share on other sites

BTW, web resources (images for textures) are BJS ones or free ones I got on the Web (can't remember where)

I put them on my CORS enabled website to develop.

You can of course copy them on BJS sites if you need and thus change URL in the code

 

it lacks some sounds ;) : wagon running on rails in turns and loops or wind in the ears while descending

Share this post


Link to post
Share on other sites

Another great creation jerome :).  Like many of your creations, there is a certain hypnotic effect.

 

By a strange coincidence, I was reading yesterday about a major accident  at the roller coaster at Alton Towers in the UK. Life meeting virtual reality?

 

cheers, gryff :)

Share this post


Link to post
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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.