Bl
Bl
Bl
Bl
Bl
You are here:   Home »  Products »  PolyTrans|CAD+DCC  
Bl

Home > Supported File Formats > DWF to OpenGL C Code


How to convert DWF (DWFx) to OpenGL C Code (.cpp)?


PolyTrans|CAD+DCC performs mathematically precise CAD, DCC/Animation, GIS and BIM 3D file conversions into all key downstream 3D packages and file formats. Okino software is used and trusted throughout the world by many tens of thousands of 3D professionals in mission & production critical environments, backed by respectable personal support directly from our core development team.

     

DWF

Okino knows of the DWF file format very well as we have been involved with its evolution since the year 2000. A DWF file is nothing other than a renamed "ZIP" file which contains other internal assets such as a HOOPS HSF 3D model file and several XML files used to describe meta data and other aspects of the model. You can rename the .dwf file to .zip and then open it in any ZIP handling software.

The HSF file format was created by Ithaca Software in the mid 1980's as an efficient, light weight, compressed 3D visualization format. Thereafter it was adapted and adopted by Tech Soft 3D in the early 2000s for use by Autodesk as a "3D variation" of its prior 2D-vector-centric DWF file format (and hence how HSF became DWF). DWF/HSF is considered a "polygonal mesh" file format and not a NURBS/solids MCAD file format.

DWF attained acceptable traction after 2006 when Autodesk made it a primary conduit to export high quality 3D visualization data from its main CAD products such as AutoCAD, Navisworks, Revit and Inventor. Okino considers DWF as one of its most important non-MCAD file formats to bring in very large 3D models (such as massive oil & gas rigs, 3D plants and refineries) from these 4 aforementioned Autodesk products as well as from AVEVA PDMS software.

     

OpenGL C Code

OpenGL is a cross-platform application programming interface (API) for rendering 2D and 3D vector graphics. The API is typically used to interact with a graphics processing unit (GPU), to achieve hardware-accelerated rendering.

Okino's OpenGL export converter writes out the scene database as a C code program in the Open GL scene description language. The resulting program can then be compiled and used to draw the 3D database directly using OpenGL. The database is output as a series of polygons with vertex positions, normals, colors and texture coordinates. In addition, the surface definitions (materials) associated with each polygon is used to set up the OpenGL shading parameters. Please note that each object is output as a separate C code function in the resulting file.