Go to file
Kevin Ring f8b38abbba Bump to v0.40.1. 2024-10-01 16:41:05 +10:00
.concierge update concierge 2022-03-18 10:49:53 -04:00
.github/workflows Specify Ubuntu 22.04 to fix GCC build error on newer versions 2024-09-26 16:17:47 -04:00
.vscode Change namespace of Cesium3DTilesContent types. 2023-11-02 22:05:00 +11:00
Cesium3DTiles Migrate dependencies to vcpkg 2024-02-24 00:37:37 +00:00
Cesium3DTilesContent Change variable name to folow coding conventions 2024-08-28 18:44:14 +02:00
Cesium3DTilesReader Merge remote-tracking branch 'origin/main' into vcpkg-swl 2024-08-02 19:45:58 +10:00
Cesium3DTilesSelection setMightHaveLatentChildren(false) even if tile has real children. 2024-10-01 16:18:33 +10:00
Cesium3DTilesWriter Merge remote-tracking branch 'origin/main' into vcpkg-2 2024-06-05 14:06:47 +10:00
CesiumAsync Merge branch 'main' of github.com:CesiumGS/cesium-native into all-with-void-futures 2024-09-30 16:13:04 -04:00
CesiumGeometry More performant rayOBBParametric. 2024-08-29 09:42:18 +10:00
CesiumGeospatial Remove EarthGravitationalModel1996Grid::fromFile. 2024-08-30 10:33:39 +10:00
CesiumGltf Add more unit tests 2024-08-19 13:49:29 -04:00
CesiumGltfContent Report a warning for unsupported extensions. 2024-09-13 16:16:31 +10:00
CesiumGltfReader Minimal changes to make cesium-native friendly to building in vcpkg manifest mode as part of another build 2024-08-23 11:31:11 -05:00
CesiumGltfWriter Merge pull request #820 from jherico/vcpkg-2 2024-08-15 09:47:09 +10:00
CesiumIonClient Merge pull request #820 from jherico/vcpkg-2 2024-08-15 09:47:09 +10:00
CesiumJsonReader Add string header file includes 2024-08-28 20:39:34 +02:00
CesiumJsonWriter Another include <string> 2024-08-28 23:24:13 +02:00
CesiumNativeTests Add very basic height query tests. 2024-09-11 15:52:54 +10:00
CesiumQuantizedMeshTerrain Merge remote-tracking branch 'origin/main' into vcpkg-swl 2024-07-02 17:39:20 +10:00
CesiumRasterOverlays Fix clang error. 2024-09-06 15:42:52 +10:00
CesiumUtility Merge pull request #939 from dbs4261/patch-1 2024-09-10 08:05:20 +10:00
cmake Cleanup 2024-09-16 10:42:28 -04:00
data Minor cleanup. 2024-08-22 20:40:31 +10:00
doc Typo 2024-08-27 14:41:44 -04:00
extern Minimal changes to make cesium-native friendly to building in vcpkg manifest mode as part of another build 2024-08-23 11:31:11 -05:00
tools/generate-classes ASSERT -> CESIUM_ASSERT 2024-06-21 15:57:54 +10:00
.clang-format Fix includes 2021-10-11 17:28:44 -04:00
.editorconfig Add editorconfig and gitattributes. 2021-07-01 16:33:15 +10:00
.gitattributes Better comment. 2021-07-01 16:49:34 +10:00
.gitignore Updated ion authorization url to the current url 2023-10-03 16:58:59 -05:00
.gitmodules Migrate dependencies to vcpkg 2024-02-24 00:37:37 +00:00
CHANGES.md Bump to v0.40.1. 2024-10-01 16:41:05 +10:00
CMakeLists.txt Use VCPKG_OVERLAY_PORTS and VCPKG_OVERLAY_TRIPLETS as cmake variables instead of env variables 2024-09-10 15:25:01 -04:00
LICENSE Add license. That's it. 2021-03-03 15:43:33 +01:00
README.md Update README.md 2024-04-10 09:25:13 -06:00
ThirdParty.json Merge remote-tracking branch 'origin/main' into vcpkg-swl 2024-08-02 19:45:58 +10:00
package-lock.json Fix build 2024-06-14 16:00:44 -04:00
package.json Bump to v0.40.1. 2024-10-01 16:41:05 +10:00

README.md

Cesium Native

Cesium Native is a set of C++ libraries for 3D geospatial, including:

  • 3D Tiles runtime streaming
  • lightweight glTF serialization and deserialization, and
  • high-precision 3D geospatial math types and functions, including support for global-scale WGS84 ellipsoids.

License Build Status

Cesium Native powers Cesium's runtime integrations for Cesium for Unreal, Cesium for Unity, Cesium for Omniverse, and Cesium for O3DE. Cesium Native is the foundational layer for any 3D geospatial software, especially those that want to stream 3D Tiles.

Cesium Platform and Ecosystem

A high-level Cesium platform architecture with the runtime integrations powered by Cesium Native and streaming content from Cesium ion.

🗃️Libraries Overview

Library Description
Cesium3DTiles Lightweight 3D Tiles classes.
Cesium3DTilesReader 3D Tiles deserialization, including 3D Tiles extension support.
Cesium3DTilesWriter 3D Tiles serialization, including 3D Tiles extension support.
Cesium3DTilesSelection Runtime streaming, decoding, level of detail selection, culling, cache management, and decoding of 3D Tiles.
CesiumAsync Classes for multi-threaded asynchronous tasks.
CesiumGeometry Common 3D geometry classes; and bounds testing, intersection testing, and spatial indexing algorithms.
CesiumGeospatial 3D geospatial math types and functions for ellipsoids, transforms, projections.
CesiumGltf Lightweight glTF processing and optimization functions.
CesiumGltfReader glTF deserialization / decoding, including glTF extension support (KHR_draco_mesh_compression etc).
CesiumGltfWriter glTF serialization / encoding, including glTF extension support.
CesiumIonClient Functions to access Cesium ion accounts and 3D tilesets using ion's REST API.
CesiumJsonReader Reads JSON from a buffer into statically-typed classes.
CesiumJsonWriter Writes JSON from statically-typed classes into a buffer.
CesiumUtility Utility functions for JSON parsing, URI processing, etc.

📗License

Apache 2.0. Cesium Native is free for both commercial and non-commercial use.

💻Developers

Prerequisites

  • Visual Studio 2019 (or newer), GCC v11.x+, Clang 12+. Other compilers are likely to work but are not regularly tested.
  • CMake 3.15+
  • For best JPEG-decoding performance, you must have nasm installed so that CMake can find it. Everything will work fine without it, just slower.

🚀Getting Started

Clone the repo

Check out the repo with:

git clone git@github.com:CesiumGS/cesium-native.git --recurse-submodules

If you forget the --recurse-submodules, nothing will work because the git submodules will be missing. You should be able to fix it with:

git submodule update --init --recursive

Compile from command line

## Windows compilation using Visual Studio
cmake -B build -S . -G "Visual Studio 15 2017 Win64"
cmake --build build --config Debug
cmake --build build --config Release

## Linux compilation
cmake -B build -S .
cmake --build build

Compile from Visual Studio Code

  1. Install the CMake Tools extension. It should prompt you to generate project files from CMake.
  2. On Windows, choose Visual Studio 2017 Release - amd64 as the kit to build. Or choose an appropriate kit for your platform.
  3. Then press Ctrl-Shift-P and execute the CMake: Build task or press F7.

Compile with any Visual Studio version using CMake generated projects

  1. Open the CMake UI (cmake-gui)
  2. Under "Where is the source code", point to your repo
  3. Specify your output folder in "Where to build the binaries"
  4. Click "Configure".
  5. Under "Specify the generator for this project", choose the VS version on your system
  6. Click Finish, wait for the process to finish
  7. Click Generate

Look for cesium-native.sln in your output folder.

Unit tests can also be run from this solution, under the cesium-native-tests project.

image

Generate Documentation

  • Install Doxygen.
  • Run: cmake --build build --target cesium-native-docs
  • Open build/doc/html/index.html

Regenerate glTF and 3D Tiles classes

Much of the code in CesiumGltf, Cesium3DTiles, CesiumGltfReader, and Cesium3DTilesReader is generated from the standards' JSON Schema specifications. To regenerate the code:

  • Make sure you have a relatively recent version of Node.js installed.
  • Install dependencies by running:
npm install
cd tools/generate-classes
npm install
cd ../..
  • From the repo root directory, run these commands
    • npm run generate-gltf
    • npm run generate-3d-tiles
    • npm run generate-quantized-mesh-terrain
  • On Windows, the line endings of the generated files will be different than those checked into the repo. Just git add them and git will fix the line endings (no need to commit).