![]() |
How to start developing? - Printable Version +- Forums (https://www.vdrift.net/Forum) +-- Forum: Project (https://www.vdrift.net/Forum/forumdisplay.php?fid=4) +--- Forum: Development (https://www.vdrift.net/Forum/forumdisplay.php?fid=9) +--- Thread: How to start developing? (/showthread.php?tid=946) |
How to start developing? - hjochim - 04-18-2008 Hi *, any hints on where to start on "getting into" the code of Vdrift? Unfortunately the most interesting sections in the wiki are not yet written ("programming methology" and "class structure"). I am mainly interested in altering the audio and head-up-display parts of Vdrift: Something like Code: if foo then play audio x or if bar then display y Thanks in advance - joevenzon - 04-18-2008 All of the HUD drawing code is in the VAMOSWORLD: ![]() The sound classes are in sound.cpp and are pretty simple to use. You ask the SOUND object (game.sound) for a new sound source (SOUND::NewSource) giving a path to the .wav or .ogg sound file (which is just a buffername), and then you use the SOUNDSOURCE class's public interfaces to control the properties of the sound source (like, to play and stop it, to reposition it in the world, or to turn off the 3D positioning). What sort of HUD/audio projects did you have in mind? - hjochim - 04-21-2008 thanks joevenzon for your reply. joevenzon Wrote:What sort of HUD/audio projects did you have in mind? I want to use Vdrift as basis for my prototype on HCI in automotive cockpits. And because I am trying to model visual (i.e. HUD), acoustical (i.e. sound output) and haptic (i.e. force-feedback) outputs, I asked where to find those in the Vdrift source code. Actually, I did not yet ask, where to find the force-feedback code, but I guess it is in forcefeedback.cpp ![]() |