Importing 3D Models from Cinema4D
From RexWiki
This tutorial is originally written by Asander Graves and is available with pictures at :
http://blog.hslu.ch/metaverse/2008/07/25/taking-cinema-4d-models-into-realxtend/
Inspired by the Blog from Peter Quirk (Taking Sketchup models into realXtend) and in preparation for the BA project modul "Identities in 3D-Online-Communities" at "Lucerne University of Applied Sciences and Arts", I explored how to take Cinema 4D models to RealXtend.
Download all you need
First you use the following 3 converting tools (beneath realXtend Server & Viewer and Cinema 4D 10.x):
- "Ogre3D Exporter for Cinema 4D" http://pagesperso-orange.fr/licorna/Ogre3D_Exporter/Ogre3D_Exporter_en.html
- OgreXMLConverter.exe (Part of "realXtend Export Tools 0.3") http://www.realxtend.org/get.php?id=17
- Rexmeshtool (Part of "realXtend Export Tools 0.3") http://www.realxtend.org/get.php?id=17
Prepare the system
- Copy the Ogre Exporter "Ogre3D_Exporter.cdl" to the plugins folder of Cinema4D "C:/Program Files/MAXON/Cinema 4D R10/plugins"
- Copy the "realXtend Export Tools 0.3″ to RexTools folder “C:/Program Files/RexTools/”
- Set Path = "C:/Program Files/RexTools/"
Convert Datas
- First load your Object (filename.c4d) to Cinema
- Select "Plugins" -> "Ogre 3D Exporter"
- Select Objects to export [ObjectName]
- Unselect UV-export when the model has no UV-values
- Select the "OgreXMLConverter.exe" via [Locate Converter]
- Then Press [OK] and the Ogre3D-Exporter will create two outputfiles
- filename.mesh.xml
- filename.mesh
Use the rexmeshtool
- Go to command line interface
- Start the rexmeshtool with following command "rexmeshtool filename.mesh"
- Set the following parameters
- Scale = 0.01 (to rescale it)
- X ALign = Center
- Y Align = Min
- Z Align = Center
- Y Rotate = 180 (rotate the chair 180 degrees).
- Note that the rexmeshtool grid is on 1 meter centers. The cursor in the screen shot is pointing to one of these dots, so the chair is about 1.5m high.
- Select "Save Changes and Exit"
Import into RealXtend
- Launch the realXtend viewer.
- In the viewer, select File -> Upload 3D Model.
- Navigate to the folder where your meshes and associated files are and select the filename.mesh file.The model will appear after some delay in a new 3D Models folder in your personal inventory.
- Create a box prim on the ground
- Set the name of the object to filename
- Activate the rex tab.
- Select the Extended properties and Show as mesh and Scale Mesh to Prim options.
- Open your inventory folder and drag the filename 3D model onto the Mesh Name box.import3b.jpg
- Place the object wherever you like
Thanks
- Thanks to Peter Quirk for his tutorial
- Thanks to Jean First for compile the "Ogre3D Exporter for Cinema 4D 10.5" for OSX
http://wiki.animation.hslu.ch/index.php/Ogre3D_Exporter_for_Cinema_4D_OSX
Comments
2 Comments so far
1. werner.randelshofer on July 25, 2008 11:55 am
This is great news - I have got an old license of Cinema 4D. :)
Aren’t textures exported properly, or is there a special reason, why you didn’t check the "Export UV coordinates" option?
2. Jean on July 25, 2008 2:35 pm
Ogre3D Exporter for Cinema 4D 10.5 OSX
http://wiki.animation.hslu.ch/index.php/Ogre3D_Exporter_for_Cinema_4D_OSX
have fun.
|