| 1 | | = Compile Instructions = |
| 2 | | [[TracNav(Community/OSGExpTOC)]] |
| 3 | | |
| 4 | | The project is developed in Microsoft Visual Studio C++ 7.1, but should also compile using Microsoft Visual Studio C++ 6.0. The project files are still for VS 6.0, but those will be converted without problems to VS 7.1 or later. |
| 5 | | |
| 6 | | 1. Extract OSGExp in the same directory as !OpenSceneGraph, Producer and !OpenThreads. |
| 7 | | |
| 8 | | 3. Build !OpenThreads, Producer and !OpenSceneGraph. |
| 9 | | |
| 10 | | 4. Install Max6, Max7 or Max8 and don't forget to include the maxsdk. |
| 11 | | |
| 12 | | 5. Open Microsoft Visual Studio, go to tools -> options and select the directories tab. |
| 13 | | |
| 14 | | 6. Select the Include files from the drop down list and indicate where the maxdsk include directory resides on your system: [[BR]] |
| 15 | | ` 3dsmax[6,7,8]\maxsdk\include` [[BR]] |
| 16 | | Move the directory up before the std. directories. |
| 17 | | |
| 18 | | 7. Select the Library files from the drop down box and indicate where the maxdsk lib directory resides on your system: [[BR]] |
| 19 | | ` 3dsmax[6,7,8]\maxsdk\lib`[[BR]] |
| 20 | | Move all the directory up before the std. directories. |
| 21 | | |
| 22 | | 8. Open `<OSG>\OSGExp\VisualStudio\OSGExp\OSGExp.dsw` and do a batch build. |
| 23 | | 1. To create a normal version select all release versions and do a build. |
| 24 | | 2. For the staticly linked version select the 'Release Static' version of OSGExp and Previewer, and the 'Release' version of OSGHelpers. Producer, !OpenThreads and !OpenSceneGraph must also be staticly linked, see: Tasks/Win32StaticLink. |
| 25 | | |
| 26 | | 9. Add the following directories to the path environment: [[BR]] |
| 27 | | ` <OSG>\OpenThreads\bin\win32` [[BR]] |
| 28 | | ` <OSG>\Producer\bin` [[BR]] |
| 29 | | ` <OSG>\OpenSceneGraph\bin` [[BR]] |
| 30 | | ` <OSG>\OSGExp\bin` |
| 31 | | |
| 32 | | 10. Open `3dsmax[6,7,8]\plugin.ini` and add the following line under the Directories tag: [[BR]] |
| 33 | | ` OSG export=<OSG>\OSGExp\bin` |
| 34 | | |
| 35 | | 11. Open 3dsmax6, 7 or 8 and export using File->Export or File->Export Selected, choose "!OpenSceneGraph Exporter (*.ive,*osg)" as file type and off you go! |