anshul.bhardwaj wrote:
Hi,
Do you have any documentation how to make car skid, if i want to implement in your code.
Thanks.
if you want very exact simulation - look for "Pacejka magic formulas"... They are based on works of Prof, Pacejka from Delft. You can look at implementation by racer.nl There is also standalone prog pacejka.exe... and documentation..
i can only share one article i found somewhere free (s. attach.)... There are also good books about vehicle dynamics (Genta, Jazar, for example).
rocksvick wrote:
can you tell me how you have implemented that and where is code of shadow in your project.
Step by step tutorial were rather big... there are many such tuturials already.. it is common technique..
http://en.wikipedia.org/wiki/Shadow_mapping I render the scene from "light position" into depth FBO...
FBO setup is in shadow.h/cpp..
http://code.google.com/p/game-ws/source/browse/branches/cardemo/src/shadow.hhttp://code.google.com/p/game-ws/source/browse/branches/cardemo/src/shadow.cppMost important are correct matrices (all required functions are in camera.h/cpp) ...
http://code.google.com/p/game-ws/source/browse/branches/cardemo/src/camera.hhttp://code.google.com/p/game-ws/source/browse/branches/cardemo/src/camera.cppyou can use depth texture and matrix in your shaders.. look in "release/shaders".
This way you will get correct hard shadow and can start reading tons of articles and books how to make them soft
Edit: branch in the above link is currently not updated..