Skip to content

Commit

Permalink
Merge pull request #10 from volivarez60/main
Browse files Browse the repository at this point in the history
updated gltf importer with preliminary mesh import support.  meshes in nearly all encodings appear to import cleanly, but there is some issue remaining.  meshes converted to bots display correctly in wireframe and opengl in mged/archer, but do not raytrace correctly.  possibly implies some issue in the bot data structure setup, but this is significant progress regardless, and sets the stage for creating a proper gcv plugin.
  • Loading branch information
brlcad authored Feb 23, 2022
2 parents fb50334 + f3bb926 commit 0f0d544
Show file tree
Hide file tree
Showing 60 changed files with 64,924 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/conv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ verbose_add_subdirectory("src/conv" asc)
verbose_add_subdirectory("src/conv" gcv)
verbose_add_subdirectory("src/conv" step)
verbose_add_subdirectory("src/conv" csg)
verbose_add_subdirectory("src/conv" gltf)

verbose_add_subdirectory("src/conv" iges)
verbose_add_subdirectory("src/conv" intaval)
Expand Down
24 changes: 24 additions & 0 deletions src/conv/gltf/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
set(GLTF_CONV_INCLUDE_DIRS
${CMAKE_CURRENT_SOURCE_DIR}
${BU_INCLUDE_DIRS}
${RT_INCLUDE_DIRS}
)
BRLCAD_INCLUDE_DIRS(GLTF_CONV_INCLUDE_DIRS)

BRLCAD_ADDEXEC(gltf-g gltf-g.cpp "libwdb;librt;libnmg;libbu" FOLDER Conv)

FILE(STRINGS "${CMAKE_CURRENT_SOURCE_DIR}/tinygltf.dist" tinygltf_files)
CMAKEFILES(
${tinygltf_files}
CMakeLists.txt
baseColor.png
blob.glb
tinygltf.dist
)

# Local Variables:
# tab-width: 8
# mode: cmake
# indent-tabs-mode: t
# End:
# ex: shiftwidth=2 tabstop=8
Binary file added src/conv/gltf/baseColor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/conv/gltf/blob.glb
Binary file not shown.
Loading

0 comments on commit 0f0d544

Please sign in to comment.