Skip to content

Switch is a small logic game that demonstrates usage of Pixar USD and Hydra.

Notifications You must be signed in to change notification settings

raph080/UsdSwitchGame

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Switch

Switch is a small logic game that demonstrates usage of Pixar USD and Hydra on Windows.

To win the game, you need to turn all the switches to the horizontal state.

Modification from original repos

This repository is an adaptation of https://github.com/VictorYudin/switch. Modifications are:

  • remove AppVeyor dependencies
  • USD 23.08 compatibility
  • glfw and glew submodules
  • compilation with cmake

Supported platforms

Switch has been tested on Linux (Rocky 8).

dependencies

Required:

  • cmake
  • gcc
  • OpenGL 4.5
  • USD 23.08

Build

Set an env var to the built USD location

export PXR_USD_LOCATION=/path/to/root/USD

Set the destination location of your build

export CMAKE_INSTALL_PREFIX=/path/to/install/folder

From the UsdSwitchGame folder, build using cmake

mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$CMAKE_INSTALL_PREFIX
make
make install

Run the game

Set the env var to be able to run the game

export LD_LIBRARY_PATH=$PXR_USD_LOCATION/lib:$PXR_USD_LOCATION/lib64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$CMAKE_INSTALL_PREFIX/lib:$CMAKE_INSTALL_PREFIX/lib64:$LD_LIBRARY_PATH

Run the game

cd $CMAKE_INSTALL_PREFIX/bin
./switch

About

Switch is a small logic game that demonstrates usage of Pixar USD and Hydra.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 65.4%
  • CMake 34.6%