URL
https://opencores.org/ocsvn/wf3d/wf3d/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 2 |
Rev 3 |
Wire-Frame 3D Graphics Accelerator IP Core
|
Wire-Frame 3D Graphics Accelerator IP Core
|
Project Monophony
|
Project Monophony
|
================================================
|
================================================
|
Author: Kenji Ishimaru
|
Author: Kenji Ishimaru
|
|
|
3D Object Data Converter
|
3D Object Data Converter
|
------------------------------------------------
|
------------------------------------------------
|
tool/objcnv.pl is a perl script which generates C header file from .obj data.
|
tool/objcnv.pl is a perl script which generates C header file from .obj data.
|
The generated C header file contains 3D object as a float array.
|
The generated C header file contains 3D object as a float array.
|
The float array will be used as a pointer for mlDrawArrays API.
|
The float array will be used as a pointer for mlDrawArrays API.
|
|
|
How to Use:
|
How to Use:
|
1) generate .obj by blender
|
1) generate .obj by blender
|
open a blender file (sample is available in blender_example)
|
open a blender file (sample is available in blender_example)
|
File->Export->Wavefront(.obj)
|
File->Export->Wavefront(.obj)
|
|
|
Check this option:
|
Check this option:
|
Triangulate Faces
|
Triangulate Faces
|
NOT check these options:
|
NOT check these options:
|
Write Normals
|
Write Normals
|
Include UVs
|
Include UVs
|
Write Materials
|
Write Materials
|
|
|
all polygons must be triangle.
|
all polygons must be triangle.
|
|
|
2) generate header file
|
2) generate header file
|
The following command generates obj_bear.h from bear_sample.obj.
|
The following command generates obj_bear.h from bear_sample.obj.
|
|
|
$objcnv.pl ./blender_example/bear_sample.obj obj_bear.h
|
$objcnv.pl ./blender_example/bear_sample.obj obj_bear.h
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.