Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 2.14 KB

cnd2obj.md

File metadata and controls

41 lines (32 loc) · 2.14 KB

Tutorial convert CND to OBJ

This tutorial will show you how to extract and convert a level geometry from 01_bab.cnd file to Wavefront OBJ format and open it in Blender 2.80 and newer.
For Blender 2.79 see cnd2obj_v2.79.

Prerequisite

  1. cndtool version 0.6 or greater
  2. Blender 2.80 or newer.
  3. Level file 01_bab.cnd

Convert CND to OBJ

Open a terminal (cmd.exe on Windows) and navigate to the cndtool folder. Then execute following command:

cndtool convert obj <path_to_01_bab.cnd>

Note: If you want the output files to be placed in a specific folder add parameter -o=<output_folder_path>.

The command should take a few seconds to finish. After it completes, you should have 01_bab.obj file and mtl folder in the output folder.

Open OBJ in Blender

  1. Open Blender and import 01_bab.obj
    Make sure the Forward axis is set to '-Z' and 'Up' axis is set to 'Y Up' in the Transform import option. Image of shs Image of shs

  2. The imported level object will be rotated for 90 degrees on the x axis. We have to rotate it and set viewport shading to solid texture with backface culling: Image of tutorial step 2

    1. Change the Viewport shading to Material Preview.
    2. Set lighting to Scene World.
    3. Set the Surface option in the World Properties to Background and set the color to white.

  3. Change the navigation mode to Walk Navigation then move around and inside of the level's object.
    Use the mouse to rotate and keys W, A, S, D to move around. Use keys Q and E to move up/down. Image of tutorial step 3 Image of tutorial step 3

  4. Blender automatically calculates the face normal of the model surfaces. Some might point in the wrong direction when OBJ level is imported and you have to flip them manually. Image of tutorial step 4