Quote: "fubar - I looked at your code in the main thread. It's impossible to learn anything"
Memblocks are quite advanced
but there are many other sections you should be able to follow
a quick run down is that the code creates all the posts and positions them on the x,y,z planes
the movement of the car really just moves these posts once the post have reached so far off
they start at the back again. So basically they make it never ending. There is a sinecurve that
is used to position them on the xplane. Cows etc move the same way and time that the posts
do. The other car yes there is only one which starts at a distant z location calculates a vector
to point it towards the centre of the road and moves at its own rate the same way the posts do.
The cows on the road are always on the road the only thing that changes is a random factor that
determines if they should be visible and collisions turned on. once they pass your car whether they
are visible or not they are positioned back off to a distant z position some rotating and positioning
again.
There is a shader which uses camera offsets for the left eye and then the right eye to use the
stereoscopic shader it needs to use Update(), Render(), Swap() to manually sync so when these
commands are used which is only when the user presses the stereo button the sync is not called
and they need to be done in the order as they are in code if you wish for stereoscopic 3D.
but that's pretty a quick summing of the code
https://forum.thegamecreators.com/thread/222010 it started as a 3d never ending world like in that thread
https://forum.thegamecreators.com/thread/222159the night driving thread is here
fubar