Jump to content

Some drifts with babylon.js !?


Samuel Girardin
 Share

Recommended Posts

Hi, 

 

Here is a new demo. A car ? Yes. You can drive it ? Yes. You can make some drifts ? Yes (by pressing 'd' to switch car behavior). Some problems remain : the export (.obj) from 3DSmax flips UV, and I wasn't able to fix it in babylon. One strange solution worked, it was to apply negative scale to the model... I prefer to flip the texture in PS...

 

I'm working now  on tire skids. My first solution works but it's very crappy & impact performances (add some texture boxes under tyres...). What is the best solution to display tire skids ? using shader to create some decals ? If someone have some ideas or examples... Cannon.js is not use here, I was inspired by some other tech webgl demos.

 

http://www.visualiser.fr/Babylon/Drift/default.htm

 

 

drift.jpg

 

 

The 3D model come from some samples I downloaded from an SDK (license MSPL). I think I can use it. 

Link to comment
Share on other sites

Finally, I use object pooling to create skid traces. As I said, I started with shader, I managed to 'paint' some skid traces  on the ground; but the perfs were not good (due I think to my lack of shader's knowledge) ; so I switch with object pooling (just some textured planes over the ground). After a while (about a 360 turn) , the first skid traces are switched by the new ones.

 

skid1.png

Link to comment
Share on other sites

  • 1 year later...

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