Monthly Archives: June 2008
C++
C++ 단기코스, C++ 함수템플렛, 클래스템플렛, Standard Template Library, Type cast 등등
http://dis.dankook.ac.kr/lectures/hci07/tag/C++
OSG Overview
OSG Applications Compile and Execute
- Use Visual Studio 2005 (install service pack 1)
- Add New Project for “Win32 Console Application”
- Click next on application wizard, and then check “empty project” in additional options
- Add New Project for “Win32 Console Application”
- Add the following path to the Additional Include Directories (Project Properties -> Configuration Properties -> C/C++ ->General -> Additional Include Directories)
- $(OSG_ROOT)\include
- Similarly, set the linker directory to the following
- $(OSG_ROOT)\lib
- And add the libraries to the input option of the linker setting
- Release Mode: osgViewer.lib osgDB.lib osgUtil.lib osg.lib OpenThreads.lib opengl32.lib glu32.lib
- Debug Mode: osgViewerd.lib osgDBd.lib osgUtild.lib osgd.lib OpenThreadsd.lib opengl32.lib glu32.lib
- Release Mode: osgViewer.lib osgDB.lib osgUtil.lib osg.lib OpenThreads.lib opengl32.lib glu32.lib
- Finally, run your OSG application
OSG Getting Stated
- Download OSG-2.5.2.zip from ftp://dis.dankook.ac.kr/OSG/OSG-2.5.2.zip
- Unzip it at C drive
- Set environment variables
- Go to Control panel -> System icon -> Advanced tab -> Environment variables
- Add “C:\OSG-2.5.2\bin;C:\OSG-2.5.2\bin\osgplugins-2.5.2;C:\OSG-2.5.2\3rdParty\bin” for System’s “Path” variable
- Create a new variable called “OSG_FILE_PATH” and set the value “C:\OSG-2.5.2\OpenSceneGraph-Data” for the variable
- Create a new variable called “OSG_NOTIFY_LEVEL” and set the value “DEBUG_INFO” for the debug notification
- Create a new variable called “OSG_SCREEN” and set the value “0” to use only one main display monitor
- Create a new variable called “OSG_ROOT” and the set the value “C:\OSG-2.4.0” for Visual Studio .Net 2005
- Go to Control panel -> System icon -> Advanced tab -> Environment variables
- Open a command window and run “osgviewer cow.osg”
Open Scene Graph (OSG) Library
OpenSceneGraph Library
http://www.openscenegraph.org/projects/osg
Game Tutorial Using SDL & OSG
http://www.cs.clemson.edu/~malloy/courses/3dgames-2007/tutor/index.html
Download the OSG-2.5.2.zip (which has more plug-ins)
ftp://dis.dankook.ac.kr/OSG/OSG-2.5.2.zip
Download the OSG application, FIELD.zip
ftp://dis.dankook.ac.kr/OSG/FIELD.zip
Sensor 사이트
샘플전자 www.sample.co.kr
엘레파츠 www.eleparts.co.kr
테이프스위치 www.tapeswitch.com (www.tapeswitch.co.kr)
삼신센서 테이프스위치 www.s-sensor.co.kr
Wiring Tutorial
Wiring 공식사이트 http://www.wiring.org.co/
Wiring (and Arduino) 예제 http://www.maartenlamers.com/ThisIsWiring/
Wiring workshop(한글사이트) http://tokage.cafe24.com/wiring/LED.htm