please correct the grammar ;)



How to Export an 3D-Max-File to OGRE



  1. Create an Model

  2. Make an Material

  3. Make a good Texture-Mapping

  4. Collapse all Objects to one Mesh

  5. Make an Render to Texture (next time ;))

  6. Get final Model with UVW-Texture (next time ;))

  7. Export to OGRE

  8. Load in OGRE







  1. Create an Model



At first we create some objects like the picture below.




This simple object is without mapping-type and has one simple material. Now we have to make the UVW-Mapping (BOX-Mapping) on the object.




As we can see the mapping is not perfect with some different values in HxWxT it´s ok for this sample.



Now we collapseAll and go to the OGRE maxScriptExporter.






The picture shows the OGRE dialog for one single static object. Unfortunatly the exporter can not more than that. I wish it could export an hole hierachy of an scene including cameras and lights.







The last thing i do at this time is to collect all the textures i used and copy it in the media dir. I use the resourcecollector from max.



Thats all for this subject of simple exporting an object.

Now we want to use it in OGRE in our own programm. The only thing is to write this:




As you can see it´s a very dirty hack in my testing program. I replace only the ogre head with the model of this simple wall.

The result is on my notebook the picture following






Next ist the export of an multiple object collapsed to an single an got an UVW-mapping like the models from Quake (MDL, MD2) etc.