public:t-gede-14-1:lab1
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| public:t-gede-14-1:lab1 [2014/01/13 19:10] – [When You Are Finished] marino | public:t-gede-14-1:lab1 [2024/04/29 13:33] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| This first Lab assignment is intended to get the Ogre3D environment started. Getting the development environment set up and configured can be a little tricky for the first time, so this Lab will be solely used to get the "Hello World" of Ogre3D built.\\  | This first Lab assignment is intended to get the Ogre3D environment started. Getting the development environment set up and configured can be a little tricky for the first time, so this Lab will be solely used to get the "Hello World" of Ogre3D built.\\  | ||
| - | There will be a paper hand out in the first lab class that will take you through the basic application step by step. I strongly encourage you to try to understand the steps not just writing it down like a zombie parrot, as the follow up Labs will all be built on top of the base you create in Lab 1. | + | There will be a pdf guide that will take you through the basic application step by step. I strongly encourage you to try to understand the steps not just writing it down like a zombie parrot, as the follow up Labs will all be built on top of the base you create in Lab 1. | 
| ===== Discussion ===== | ===== Discussion ===== | ||
| Line 29: | Line 29: | ||
|   - **If you are using a different version of Visual studio than 2010,** make sure to be using the vc100 toolset < |   - **If you are using a different version of Visual studio than 2010,** make sure to be using the vc100 toolset < | ||
| </ | </ | ||
| - |   - Copy **plugins_d.cfg** and **resources_d.cfg** from the SDK bin/debug folder into your own GEDE2013/ | + |   - Copy **plugins_d.cfg** and **resources_d.cfg** from the SDK bin/debug folder into your own GEDE2013/ | 
| Example: where the Ogre SDK path is " | Example: where the Ogre SDK path is " | ||
| '' | '' | ||
| Line 50: | Line 50: | ||
| {{ : | {{ : | ||
| + | ===== CODE ===== | ||
| + | <code cpp> | ||
| + |  # | ||
| + | |||
| + | int main() | ||
| + | { | ||
| + |   | ||
| + | |||
| + | 	if(!root-> | ||
| + | return -1; | ||
| + | } | ||
| + | |||
| + | 	Ogre:: | ||
| + | |||
| + | 	Ogre:: | ||
| + | |||
| + | 	Ogre:: | ||
| + | 	camera-> | ||
| + | 	camera-> | ||
| + | 	camera-> | ||
| + | |||
| + | 	Ogre:: | ||
| + | 	viewport-> | ||
| + | |||
| + | 	camera-> | ||
| + | |||
| + | |||
| + | |||
| + | 	// | ||
| + | |||
| + | 	Ogre:: | ||
| + | 	Ogre:: | ||
| + | 	cf.load(" | ||
| + | 	Ogre:: | ||
| + | |||
| + | while(sectionIter.hasMoreElements()) { | ||
| + | 		sectionName = sectionIter.peekNextKey(); | ||
| + | 		Ogre:: | ||
| + | 		Ogre:: | ||
| + | 		for( i = settings-> | ||
| + | 			typeName = i-> | ||
| + | 			dataName = i-> | ||
| + | 			Ogre:: | ||
| + | } | ||
| + | } | ||
| + | |||
| + | 	Ogre:: | ||
| + | |||
| + | 	Ogre:: | ||
| + | 	sceneManager-> | ||
| + | |||
| + | 	sceneManager-> | ||
| + | |||
| + | 	root-> | ||
| + | |||
| + | return 0; | ||
| + | } | ||
| + | </ | ||
| ===== When You Are Finished ===== | ===== When You Are Finished ===== | ||
/var/www/cadia.ru.is/wiki/data/attic/public/t-gede-14-1/lab1.1389640212.txt.gz · Last modified: 2024/04/29 13:32 (external edit)