[Opal-commits] opal SConstruct,1.5,1.6 todo.txt,1.44,1.45
Status: Inactive
Brought to you by:
tylerstreeter
|
From: tylerstreeter <tyl...@us...> - 2005-02-25 06:40:52
|
Update of /cvsroot/opal/opal In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5241 Modified Files: SConstruct todo.txt Log Message: updated XML parsing to reflect new object creation method Index: SConstruct =================================================================== RCS file: /cvsroot/opal/opal/SConstruct,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** SConstruct 11 Feb 2005 07:28:54 -0000 1.5 --- SConstruct 25 Feb 2005 06:40:26 -0000 1.6 *************** *** 30,36 **** env.Replace(CXX = 'CC') env.Append( ! CXXFLAGS = ['-ansi', '-LANG:std', '-n32'], ! CPPPATH = string.split(os.environ['CPLUS_INCLUDE_PATH'], ':'), ! LIBPATH = string.split(os.environ['LIBRARY_PATH'], ':')) if env['debug'] == True: env.Append(CXXFLAGS = ['-O0']) --- 30,36 ---- env.Replace(CXX = 'CC') env.Append( ! CXXFLAGS = ['-ansi', '-LANG:std', '-n32']) ! #CPPPATH = string.split(os.environ['CPLUS_INCLUDE_PATH'], ':'), ! #LIBPATH = string.split(os.environ['LIBRARY_PATH'], ':')) if env['debug'] == True: env.Append(CXXFLAGS = ['-O0']) Index: todo.txt =================================================================== RCS file: /cvsroot/opal/opal/todo.txt,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** todo.txt 23 Feb 2005 06:35:46 -0000 1.44 --- todo.txt 25 Feb 2005 06:40:26 -0000 1.45 *************** *** 2,31 **** ================= ! Joints, Solids, etc. -> JointData, SolidData, etc. -> Blueprint -> saveToXML(Blueprint, filename) ... loadFromXML(filename) -> Blueprint -> JointData, SolidData, etc. -> Joints, Solids, etc. * look at scons dylib-building problem on os x ! * fix Blueprint, BlueprintManager access to DLL ! ! * be consistent with default parameter settings ! - applies to Solids, Joints, Motors, Sensors ! - three main components: ! 1.) actual default number stored in Defines.h ! 2.) Simulator maintains default values ! - sets its initial default values based value in Defines.h ! - each has a get/set ! 3.) the object (e.g. Solid) maintains a value for the parameter ! - set by the Simulator on object creation ! - each has a get/set ! ! * all modes with multiple options (e.g. spring motor, accel sensor) should take bit flags * XML loader, manager - update parsing - update instantiation functions ! - maybe rename BlueprintManager to ResourceManager ! - holds a cache of BPs ! - BPs can be added through XML files or manually ! - BPs can be requested by name/ID * fix naming descrepancies --- 2,20 ---- ================= ! * make OPAL XML spec/sample file that includes everything; put on website * look at scons dylib-building problem on os x ! * fix memory allocation across dll boundary ! - Blueprint ! - BlueprintInstance ! - volume collision check results * XML loader, manager - update parsing - update instantiation functions ! ! * should spaces be stored in xml/blueprints? ! - probably not * fix naming descrepancies *************** *** 33,39 **** --- 22,31 ---- - make it more unified + * search and replace existing assert() calls and std::cout calls + * certain function calls (e.g. setStatic) during collision events crash the system - solution: create an event queue and call the functions at a safe time - per step, or per frame? + - replace 'garbage' system with delayed destroy events * separate Solid options for sleeping (setSleeping(true/false), setSleepingEnabled(true/false)) *************** *** 60,69 **** - post either zipped docs or hyperlinked pdf of docs - * setup a debug output/logging system - - different warning/error levels - - assert function for fatal errors; print error message - - print to std output and/or log file - - search and replace existing assert() calls and std::cout calls - * implement sensors - RayCastSensor (i.e. "PSD (position sensitive detector)" or "rangefinder"): measures distance from sensor to first intersection (attach to a solid [be sure to ignore collisions with the attached solid] or nothing) --- 52,55 ---- *************** *** 88,91 **** --- 74,79 ---- - there may be a problem when you have a tiny object between two massive objects; one massive object should affect the other but can't + * should all modes with multiple options (e.g. spring motor, accel sensor) take bit flags? + Build System ============ *************** *** 120,124 **** - Joints -> Solids - Motors -> Joints, Solids ! - Sensors -> Joints Solids * Put BlueprintManager stuff into the Simulator itself and remove BlueprintManager? --- 108,112 ---- - Joints -> Solids - Motors -> Joints, Solids ! - Sensors -> Joints, Solids * Put BlueprintManager stuff into the Simulator itself and remove BlueprintManager? *************** *** 170,173 **** --- 158,163 ---- - implement (in ODE) + * make a COLLADA importer/exporter + * move headers into a separate dir *************** *** 243,250 **** - post on website - * objects with init functions - - call init immediately after construction, else undefined behavior - - objects enabled when init is called - * specific object type properties - memory management: user managed vs. OPAL managed --- 233,236 ---- *************** *** 286,309 **** 2.) have the simulator create the object by passing in a blueprint - - ------------------------------------ - - Quick tutorial (outdated): - - 1. #include <opal/opal.h> - - 2. Link your project with the compiled OPAL library (e.g. opal-ode_d.lib for the ODE debug version). - - 3. opal::Simulator* mySimulator = opal::createSimulator( opal::Vec3r(0.0, -9.81, 0.0) ); - - 4. opal::Solid* mySolid = mySimulator->createSolid( false ); //createSolid takes a "isStatic" parameter - - 5. mySolid->addBox( opal::Vec3r(1.0, 1.0, 1.0) ); //pass in box dimensions - - 6. mySolid->addGlobalForce( opal::Vec3r(0.5, 0.6, 0.4), 0.5 ); //vector is force direction (global coordinates in this case), last param is the duration of the force in seconds - - 7. Every frame call mySimulator->simulate( dt ) where dt is the elapsed time since the last frame. - - 8. Get the solid's transform matrix (mySolid->getTransform()) every frame so you know where to draw it. - - 9. When you're finished, delete mySimulator. \ No newline at end of file --- 272,273 ---- |