Log In  

Cart #racerprototype-5 | 2022-06-25 | Code ▽ | Embed ▽ | Forks ▽ | License: CC4-BY-NC-SA

A WIP "into the screen racer" prototype.
I've use bezier curves described in this post for the road: https://www.lexaloffle.com/bbs/?pid=65926
Use the controls to move the road around and move the horizon up and down.

P#112862 2022-06-07 22:32 ( Edited 2022-06-25 14:34)

I've made some optimisations to avoid pset and draw lines instead which is much more efficient. You can see the difference compared to the old version:

Cart #racerprototype-1 | 2022-06-07 | Code ▽ | Embed ▽ | Forks ▽ | License: CC4-BY-NC-SA

This shows that pset is a very slow command

P#112884 2022-06-08 11:36
1

suggest to look at this tutorial: https://www.lexaloffle.com/bbs/?tid=35767

P#112887 2022-06-08 12:52
:: dw817
1

Oh, you posted this twice, @BenAttenborough.

Let me say again good except the lines run the same speed from the distant road to the near road so the 3D effect is incomplete. And once again, nice rotation of lines when turning from left to right.

P#112903 2022-06-08 17:09

Thanks @freds72 and @dw817. Yeah I'll have a look at the tutorial although I've actually really enjoyed trying to figure it all out on my own!

P#112979 2022-06-10 09:20

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2022-09-25 23:46:32 | 0.035s | Q:22