diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..0a22a4c9a --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/bin +/build3/gmake +/build_cmake/ + +*.pyc diff --git a/CMakeLists.txt b/CMakeLists.txt index d24aefb9c..65859e663 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 2.4.3) set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) - +cmake_policy(SET CMP0017 NEW) #this line has to appear before 'PROJECT' in order to be able to disable incremental linking SET(MSVC_INCREMENTAL_DEFAULT ON) @@ -27,8 +27,16 @@ SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG") OPTION(USE_DOUBLE_PRECISION "Use double precision" OFF) OPTION(USE_GRAPHICAL_BENCHMARK "Use Graphical Benchmark" ON) OPTION(BUILD_SHARED_LIBS "Use shared libraries" OFF) -OPTION(USE_SOFT_BODY_MULTI_BODY_DYNAMICS_WORLD "Use btSoftMultiBodyDynamicsWorld" OFF) -OPTION(BULLET2_USE_THREAD_LOCKS "Build Bullet 2 libraries with mutex locking around certain operations" OFF) +OPTION(USE_SOFT_BODY_MULTI_BODY_DYNAMICS_WORLD "Use btSoftMultiBodyDynamicsWorld" OFF) + +OPTION(BULLET2_USE_THREAD_LOCKS "Build Bullet 2 libraries with mutex locking around certain operations (required for multi-threading)" OFF) +IF (BULLET2_USE_THREAD_LOCKS) + OPTION(BULLET2_USE_OPEN_MP_MULTITHREADING "Build Bullet 2 with support for multi-threading with OpenMP (requires a compiler with OpenMP support)" OFF) + OPTION(BULLET2_USE_TBB_MULTITHREADING "Build Bullet 2 with support for multi-threading with Intel Threading Building Blocks (requires the TBB library to be already installed)" OFF) + IF (MSVC) + OPTION(BULLET2_USE_PPL_MULTITHREADING "Build Bullet 2 with support for multi-threading with Microsoft Parallel Patterns Library (requires MSVC compiler)" OFF) + ENDIF (MSVC) +ENDIF (BULLET2_USE_THREAD_LOCKS) OPTION(USE_MSVC_INCREMENTAL_LINKING "Use MSVC Incremental Linking" OFF) OPTION(USE_CUSTOM_VECTOR_MATH "Use custom vectormath library" OFF) @@ -123,22 +131,22 @@ IF(MSVC) OPTION(USE_MSVC_EXEPTIONS "Use MSVC C++ exceptions option" OFF) - + OPTION(USE_MSVC_COMDAT_FOLDING "Use MSVC /OPT:ICF COMDAT folding option" ON) - + IF(USE_MSVC_COMDAT_FOLDING) set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /OPT:ICF") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /OPT:ICF") ENDIF() - + OPTION(USE_MSVC_DISABLE_RTTI "Use MSVC /GR- disabled RTTI flags option" ON) IF(USE_MSVC_DISABLE_RTTI) STRING(REGEX REPLACE "/GR" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) # Disable RTTI SET(CMAKE_C_FLAGS "/GR- ${CMAKE_C_FLAGS}") SET(CMAKE_CXX_FLAGS "/GR- ${CMAKE_CXX_FLAGS}") ENDIF(USE_MSVC_DISABLE_RTTI) - + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4244 /wd4267") ENDIF(MSVC) @@ -208,6 +216,30 @@ IF(BULLET2_USE_THREAD_LOCKS) ENDIF (NOT MSVC) ENDIF (BULLET2_USE_THREAD_LOCKS) +IF (BULLET2_USE_OPEN_MP_MULTITHREADING) + ADD_DEFINITIONS("-DBT_USE_OPENMP=1") + IF (MSVC) + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /openmp") + ELSE (MSVC) + # GCC, Clang + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp") + ENDIF (MSVC) +ENDIF (BULLET2_USE_OPEN_MP_MULTITHREADING) + +IF (BULLET2_USE_TBB_MULTITHREADING) + SET (BULLET2_TBB_INCLUDE_DIR "not found" CACHE PATH "Directory for Intel TBB includes.") + SET (BULLET2_TBB_LIB_DIR "not found" CACHE PATH "Directory for Intel TBB libraries.") + find_library(TBB_LIBRARY tbb PATHS ${BULLET2_TBB_LIB_DIR}) + find_library(TBBMALLOC_LIBRARY tbbmalloc PATHS ${BULLET2_TBB_LIB_DIR}) + ADD_DEFINITIONS("-DBT_USE_TBB=1") + INCLUDE_DIRECTORIES( ${BULLET2_TBB_INCLUDE_DIR} ) + LINK_LIBRARIES( ${TBB_LIBRARY} ${TBBMALLOC_LIBRARY} ) +ENDIF (BULLET2_USE_TBB_MULTITHREADING) + +IF (BULLET2_USE_PPL_MULTITHREADING) + ADD_DEFINITIONS("-DBT_USE_PPL=1") +ENDIF (BULLET2_USE_PPL_MULTITHREADING) + IF (WIN32) OPTION(USE_GLUT "Use Glut" ON) ADD_DEFINITIONS( -D_CRT_SECURE_NO_WARNINGS ) @@ -254,24 +286,39 @@ ENDIF() OPTION(BUILD_BULLET3 "Set when you want to build Bullet 3" ON) -OPTION(BUILD_PYBULLET "Set when you want to build pybullet (Python bindings for Bullet)" OFF) - +# Optional Python configuration +# builds pybullet automatically if all the requirements are met +SET(PYTHON_VERSION_PYBULLET "2.7" CACHE STRING "Python version pybullet will use.") +SET(Python_ADDITIONAL_VERSIONS 2.7 2.7.3 3 3.0 3.1 3.2 3.3 3.4 3.5 3.6) +SET_PROPERTY(CACHE PYTHON_VERSION_PYBULLET PROPERTY STRINGS ${Python_ADDITIONAL_VERSIONS}) +SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/build3/cmake ${CMAKE_MODULE_PATH}) +OPTION(EXACT_PYTHON_VERSION "Require Python and match PYTHON_VERSION_PYBULLET exactly, e.g. 2.7.3" OFF) +IF(EXACT_PYTHON_VERSION) + set(EXACT_PYTHON_VERSION_FLAG EXACT REQUIRED) +ENDIF(EXACT_PYTHON_VERSION) +# first find the python interpreter +FIND_PACKAGE(PythonInterp ${PYTHON_VERSION_PYBULLET} ${EXACT_PYTHON_VERSION_FLAG}) +# python library should exactly match that of the interpreter +FIND_PACKAGE(PythonLibs ${PYTHON_VERSION_STRING} EXACT) +SET(DEFAULT_BUILD_PYBULLET OFF) +IF(PYTHONLIBS_FOUND) + SET(DEFAULT_BUILD_PYBULLET ON) +ENDIF(PYTHONLIBS_FOUND) +OPTION(BUILD_PYBULLET "Set when you want to build pybullet (Python bindings for Bullet)" ${DEFAULT_BUILD_PYBULLET}) + OPTION(BUILD_ENET "Set when you want to build apps with enet UDP networking support" ON) OPTION(BUILD_CLSOCKET "Set when you want to build apps with enet TCP networking support" ON) - + IF(BUILD_PYBULLET) - FIND_PACKAGE(PythonLibs) - - OPTION(BUILD_PYBULLET_NUMPY "Set when you want to build pybullet with NumPy support" OFF) + OPTION(BUILD_PYBULLET_NUMPY "Set when you want to build pybullet with NumPy support" ON) OPTION(BUILD_PYBULLET_ENET "Set when you want to build pybullet with enet UDP networking support" ON) OPTION(BUILD_PYBULLET_CLSOCKET "Set when you want to build pybullet with enet TCP networking support" ON) - OPTION(BUILD_PYBULLET_MAC_USE_PYTHON_FRAMEWORK "Set when you want to use the Python Framework on Mac" ON) + OPTION(BUILD_PYBULLET_MAC_USE_PYTHON_FRAMEWORK "Set when you want to use the Python Framework on Mac" OFF) - IF(BUILD_PYBULLET_NUMPY) - set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_LIST_DIR}/build3/cmake) + IF(BUILD_PYBULLET_NUMPY) #include(FindNumPy) FIND_PACKAGE(NumPy) if (PYTHON_NUMPY_FOUND) @@ -281,7 +328,6 @@ IF(BUILD_PYBULLET) message("NumPy not found") endif() ENDIF() - OPTION(BUILD_PYBULLET "Set when you want to build pybullet (experimental Python bindings for Bullet)" OFF) IF(WIN32) SET(BUILD_SHARED_LIBS OFF CACHE BOOL "Shared Libs" FORCE) @@ -336,14 +382,6 @@ IF(BUILD_BULLET2_DEMOS) SUBDIRS(examples) ENDIF() - IF (BULLET2_USE_THREAD_LOCKS) - OPTION(BULLET2_MULTITHREADED_OPEN_MP_DEMO "Build Bullet 2 MultithreadedDemo using OpenMP (requires a compiler with OpenMP support)" OFF) - OPTION(BULLET2_MULTITHREADED_TBB_DEMO "Build Bullet 2 MultithreadedDemo using Intel Threading Building Blocks (requires the TBB library to be already installed)" OFF) - IF (MSVC) - OPTION(BULLET2_MULTITHREADED_PPL_DEMO "Build Bullet 2 MultithreadedDemo using Microsoft Parallel Patterns Library (requires MSVC compiler)" OFF) - ENDIF (MSVC) - ENDIF (BULLET2_USE_THREAD_LOCKS) - ENDIF(BUILD_BULLET2_DEMOS) diff --git a/Extras/InverseDynamics/btMultiBodyFromURDF.hpp b/Extras/InverseDynamics/btMultiBodyFromURDF.hpp index d627ea985..f3e2a7c05 100644 --- a/Extras/InverseDynamics/btMultiBodyFromURDF.hpp +++ b/Extras/InverseDynamics/btMultiBodyFromURDF.hpp @@ -44,7 +44,7 @@ public: void init() { this->createEmptyDynamicsWorld(); m_dynamicsWorld->setGravity(m_gravity); - BulletURDFImporter urdf_importer(&m_nogfx,0); + BulletURDFImporter urdf_importer(&m_nogfx,0,1); URDFImporterInterface &u2b(urdf_importer); bool loadOk = u2b.loadURDF(m_filename.c_str(), m_base_fixed); diff --git a/Extras/obj2sdf/obj2sdf.cpp b/Extras/obj2sdf/obj2sdf.cpp index c65f380f3..488b24d54 100644 --- a/Extras/obj2sdf/obj2sdf.cpp +++ b/Extras/obj2sdf/obj2sdf.cpp @@ -16,12 +16,36 @@ #define MAX_PATH_LEN 1024 +std::string StripExtension( const std::string & sPath ) +{ + for( std::string::const_reverse_iterator i = sPath.rbegin(); i != sPath.rend(); i++ ) + { + if( *i == '.' ) + { + return std::string( sPath.begin(), i.base() - 1 ); + } + + // if we find a slash there is no extension + if( *i == '\\' || *i == '/' ) + break; + } + + // we didn't find an extension + return sPath; +} + int main(int argc, char* argv[]) { b3CommandLineArgs args(argc,argv); char* fileName; args.GetCmdLineArgument("fileName",fileName); + if (fileName==0) + { + printf("required --fileName=\"name\""); + exit(0); + } + std::string matLibName = StripExtension(fileName); printf("fileName = %s\n", fileName); if (fileName==0) @@ -58,7 +82,13 @@ int main(int argc, char* argv[]) } char objFileName[MAX_PATH_LEN]; - sprintf(objFileName,"%s/part%d.obj",materialPrefixPath,s); + if (strlen(materialPrefixPath)>0) + { + sprintf(objFileName,"%s/part%d.obj",materialPrefixPath,s); + } else + { + sprintf(objFileName,"part%d.obj",s); + } FILE* f = fopen(objFileName,"w"); if (f==0) { @@ -66,7 +96,15 @@ int main(int argc, char* argv[]) exit(0); } fprintf(f,"# Exported using automatic converter by Erwin Coumans\n"); - fprintf(f,"mtllib bedroom.mtl\n"); + if (matLibName.length()) + { + fprintf(f,"mtllib %s.mtl\n", matLibName.c_str()); + } else + { + fprintf(f,"mtllib bedroom.mtl\n"); + + } + int faceCount = shape.mesh.indices.size(); int vertexCount = shape.mesh.positions.size(); diff --git a/build3/cmake/FindLibPython.py b/build3/cmake/FindLibPython.py new file mode 100644 index 000000000..d4384da4e --- /dev/null +++ b/build3/cmake/FindLibPython.py @@ -0,0 +1,25 @@ +# Note by Nikolaus Demmel 28.03.2014: My contributions are licensend under the +# same as CMake (BSD). My adaptations are in part based +# https://github.com/qgis/QGIS/tree/master/cmake which has the following +# copyright note: + +# FindLibPython.py +# Copyright (c) 2007, Simon Edwards +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. + +import sys +import distutils.sysconfig + +print("exec_prefix:%s" % sys.exec_prefix) +print("major_version:%s" % str(sys.version_info[0])) +print("minor_version:%s" % str(sys.version_info[1])) +print("patch_version:%s" % str(sys.version_info[2])) +print("short_version:%s" % '.'.join(map(lambda x:str(x), sys.version_info[0:2]))) +print("long_version:%s" % '.'.join(map(lambda x:str(x), sys.version_info[0:3]))) +print("py_inc_dir:%s" % distutils.sysconfig.get_python_inc()) +print("site_packages_dir:%s" % distutils.sysconfig.get_python_lib(plat_specific=1)) +for e in distutils.sysconfig.get_config_vars ('LIBDIR'): + if e != None: + print("py_lib_dir:%s" % e) + break diff --git a/build3/cmake/FindNumPy.cmake b/build3/cmake/FindNumPy.cmake index 4d729b2a3..5ce9e178c 100644 --- a/build3/cmake/FindNumPy.cmake +++ b/build3/cmake/FindNumPy.cmake @@ -1,41 +1,59 @@ -# Find the Python NumPy package -# PYTHON_NUMPY_INCLUDE_DIR -# PYTHON_NUMPY_FOUND -# will be set by this script +# - Find the NumPy libraries +# This module finds if NumPy is installed, and sets the following variables +# indicating where it is. +# +# TODO: Update to provide the libraries and paths for linking npymath lib. +# +# PYTHON_NUMPY_FOUND - was NumPy found +# PYTHON_NUMPY_VERSION - the version of NumPy found as a string +# PYTHON_NUMPY_VERSION_MAJOR - the major version number of NumPy +# PYTHON_NUMPY_VERSION_MINOR - the minor version number of NumPy +# PYTHON_NUMPY_VERSION_PATCH - the patch version number of NumPy +# PYTHON_NUMPY_VERSION_DECIMAL - e.g. version 1.6.1 is 10601 +# PYTHON_NUMPY_INCLUDE_DIR - path to the NumPy include files -cmake_minimum_required(VERSION 2.6) +unset(PYTHON_NUMPY_VERSION) +unset(PYTHON_NUMPY_INCLUDE_DIR) -if(NOT PYTHON_EXECUTABLE) - if(NumPy_FIND_QUIETLY) - find_package(PythonInterp QUIET) - else() - find_package(PythonInterp) - set(__numpy_out 1) +if(PYTHONINTERP_FOUND) + execute_process(COMMAND "${PYTHON_EXECUTABLE}" "-c" + "import numpy as n; print(n.__version__); print(n.get_include());" + RESULT_VARIABLE __result + OUTPUT_VARIABLE __output + OUTPUT_STRIP_TRAILING_WHITESPACE) + + if(__result MATCHES 0) + string(REGEX REPLACE ";" "\\\\;" __values ${__output}) + string(REGEX REPLACE "\r?\n" ";" __values ${__values}) + list(GET __values 0 PYTHON_NUMPY_VERSION) + list(GET __values 1 PYTHON_NUMPY_INCLUDE_DIR) + + string(REGEX MATCH "^([0-9])+\\.([0-9])+\\.([0-9])+" __ver_check "${PYTHON_NUMPY_VERSION}") + if(NOT "${__ver_check}" STREQUAL "") + set(PYTHON_NUMPY_VERSION_MAJOR ${CMAKE_MATCH_1}) + set(PYTHON_NUMPY_VERSION_MINOR ${CMAKE_MATCH_2}) + set(PYTHON_NUMPY_VERSION_PATCH ${CMAKE_MATCH_3}) + math(EXPR PYTHON_NUMPY_VERSION_DECIMAL + "(${PYTHON_NUMPY_VERSION_MAJOR} * 10000) + (${PYTHON_NUMPY_VERSION_MINOR} * 100) + ${PYTHON_NUMPY_VERSION_PATCH}") + string(REGEX REPLACE "\\\\" "/" PYTHON_NUMPY_INCLUDE_DIR ${PYTHON_NUMPY_INCLUDE_DIR}) + else() + unset(PYTHON_NUMPY_VERSION) + unset(PYTHON_NUMPY_INCLUDE_DIR) + message(STATUS "Requested NumPy version and include path, but got instead:\n${__output}\n") + endif() endif() +else() + message(STATUS "To find NumPy Python interpretor is required to be found.") endif() -if (PYTHON_EXECUTABLE) - # Find out the include path - execute_process( - COMMAND "${PYTHON_EXECUTABLE}" -c - "from __future__ import print_function\ntry: import numpy; print(numpy.get_include(), end='')\nexcept:pass\n" - OUTPUT_VARIABLE __numpy_path) - # And the version - execute_process( - COMMAND "${PYTHON_EXECUTABLE}" -c - "from __future__ import print_function\ntry: import numpy; print(numpy.__version__, end='')\nexcept:pass\n" - OUTPUT_VARIABLE __numpy_version) -elseif(__numpy_out) - message(STATUS "Python executable not found.") -endif(PYTHON_EXECUTABLE) - -find_path(PYTHON_NUMPY_INCLUDE_DIR numpy/arrayobject.h - HINTS "${__numpy_path}" "${PYTHON_INCLUDE_PATH}" NO_DEFAULT_PATH) - -if(PYTHON_NUMPY_INCLUDE_DIR) - set(PYTHON_NUMPY_FOUND 1 CACHE INTERNAL "Python numpy found") -endif(PYTHON_NUMPY_INCLUDE_DIR) - include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(NumPy REQUIRED_VARS PYTHON_NUMPY_INCLUDE_DIR - VERSION_VAR __numpy_version) +find_package_handle_standard_args(NumPy REQUIRED_VARS PYTHON_NUMPY_INCLUDE_DIR PYTHON_NUMPY_VERSION + VERSION_VAR PYTHON_NUMPY_VERSION) + +if(NUMPY_FOUND) + set(PYTHON_NUMPY_FOUND TRUE) + message(STATUS "NumPy ver. ${PYTHON_NUMPY_VERSION} found (include: ${PYTHON_NUMPY_INCLUDE_DIR})") +endif() + +# caffe_clear_vars(__result __output __error_value __values __ver_check __error_value) + diff --git a/build3/cmake/FindPythonLibs.cmake b/build3/cmake/FindPythonLibs.cmake new file mode 100644 index 000000000..a0e9bffbe --- /dev/null +++ b/build3/cmake/FindPythonLibs.cmake @@ -0,0 +1,353 @@ +# - Find python libraries +# This module finds if Python is installed and determines where the +# include files and libraries are. It also determines what the name of +# the library is. This code sets the following variables: +# +# PYTHONLIBS_FOUND - have the Python libs been found +# PYTHON_LIBRARIES - path to the python library +# PYTHON_INCLUDE_PATH - path to where Python.h is found (deprecated) +# PYTHON_INCLUDE_DIRS - path to where Python.h is found +# PYTHON_DEBUG_LIBRARIES - path to the debug library (deprecated) +# PYTHONLIBS_VERSION_STRING - version of the Python libs found (since CMake 2.8.8) +# +# The Python_ADDITIONAL_VERSIONS variable can be used to specify a list of +# version numbers that should be taken into account when searching for Python. +# You need to set this variable before calling find_package(PythonLibs). +# +# If you'd like to specify the installation of Python to use, you should modify +# the following cache variables: +# PYTHON_LIBRARY - path to the python library +# PYTHON_INCLUDE_DIR - path to where Python.h is found + +#============================================================================= +# Copyright 2001-2009 Kitware, Inc. +# +# Distributed under the OSI-approved BSD License (the "License"); +# see accompanying file Copyright.txt for details. +# +# This software is distributed WITHOUT ANY WARRANTY; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# See the License for more information. +#============================================================================= +# (To distribute this file outside of CMake, substitute the full +# License text for the above reference.) + +# Note by Nikolaus Demmel 28.03.2014: My contributions are licensend under the +# same as CMake (BSD). My adaptations are in part based +# https://github.com/qgis/QGIS/tree/master/cmake which has the following +# copyright note: + +# Copyright (c) 2007, Simon Edwards +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. + + +if(NOT DEFINED PYTHON_INCLUDE_DIR) + if(DEFINED PYTHON_INCLUDE_PATH) + # For backward compatibility, repect PYTHON_INCLUDE_PATH. + set(PYTHON_INCLUDE_DIR "${PYTHON_INCLUDE_PATH}" CACHE PATH + "Path to where Python.h is found" FORCE) + else() + set(PYTHON_INCLUDE_DIR "" CACHE PATH + "Path to where Python.h is found" FORCE) + endif() +endif() + +if(EXISTS "${PYTHON_INCLUDE_DIR}" AND EXISTS "${PYTHON_LIBRARY}") + if(EXISTS "${PYTHON_INCLUDE_DIR}/patchlevel.h") + file(STRINGS "${PYTHON_INCLUDE_DIR}/patchlevel.h" _PYTHON_VERSION_STR + REGEX "^#define[ \t]+PY_VERSION[ \t]+\"[^\"]+\"") + string(REGEX REPLACE "^#define[ \t]+PY_VERSION[ \t]+\"([^\"]+)\".*" "\\1" + PYTHONLIBS_VERSION_STRING "${_PYTHON_VERSION_STR}") + unset(_PYTHON_VERSION_STR) + endif() +else() + set(_PYTHON1_VERSIONS 1.6 1.5) + set(_PYTHON2_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0) + set(_PYTHON3_VERSIONS 3.4 3.3 3.2 3.1 3.0) + + unset(_PYTHON_FIND_OTHER_VERSIONS) + if(PythonLibs_FIND_VERSION) + if(PythonLibs_FIND_VERSION_COUNT GREATER 1) + set(_PYTHON_FIND_MAJ_MIN "${PythonLibs_FIND_VERSION_MAJOR}.${PythonLibs_FIND_VERSION_MINOR}") + if(NOT PythonLibs_FIND_VERSION_EXACT) + foreach(_PYTHON_V ${_PYTHON${PythonLibs_FIND_VERSION_MAJOR}_VERSIONS}) + if(NOT _PYTHON_V VERSION_LESS _PYTHON_FIND_MAJ_MIN) + if(NOT _PYTHON_V STREQUAL PythonLibs_FIND_VERSION) + list(APPEND _PYTHON_FIND_OTHER_VERSIONS ${_PYTHON_V}) + endif() + endif() + endforeach() + endif() + unset(_PYTHON_FIND_MAJ_MIN) + else() + set(_PYTHON_FIND_OTHER_VERSIONS ${_PYTHON${PythonLibs_FIND_VERSION_MAJOR}_VERSIONS}) + endif() + else() + # add an empty version to check the `python` executable first in case no version is requested + set(_PYTHON_FIND_OTHER_VERSIONS ${_PYTHON3_VERSIONS} ${_PYTHON2_VERSIONS} ${_PYTHON1_VERSIONS}) + endif() + + unset(_PYTHON1_VERSIONS) + unset(_PYTHON2_VERSIONS) + unset(_PYTHON3_VERSIONS) + + # Set up the versions we know about, in the order we will search. Always add + # the user supplied additional versions to the front. + # If FindPythonInterp has already found the major and minor version, + # insert that version between the user supplied versions and the stock + # version list. + # If no specific version is requested or suggested by PythonInterp, always look + # for "python" executable first + set(_PYTHON_VERSIONS ${PythonLibs_FIND_VERSION} ${PythonLibs_ADDITIONAL_VERSIONS} ) + if(DEFINED PYTHON_VERSION_MAJOR AND DEFINED PYTHON_VERSION_MINOR) + list(APPEND _PYTHON_VERSIONS ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}) + endif() + if (NOT _PYTHON_VERSIONS) + set(_PYTHON_VERSIONS ";") # empty entry at the front makeing sure we search for "python" first + endif() + list(APPEND _PYTHON_VERSIONS ${_PYTHON_FIND_OTHER_VERSIONS}) + + unset(_PYTHON_FIND_OTHER_VERSIONS) + + message(STATUS "Looking for versions: ${_PYTHON_VERSIONS}") + + FIND_FILE(_FIND_LIB_PYTHON_PY FindLibPython.py PATHS ${CMAKE_MODULE_PATH} ${CMAKE_ROOT}/Modules) + + if(NOT _FIND_LIB_PYTHON_PY) + message(FATAL_ERROR "Could not find required file 'FindLibPython.py'") + endif() + + unset(PYTHONLIBS_VERSION_STRING) + foreach(_CURRENT_VERSION IN LISTS _PYTHON_VERSIONS) + + STRING(REGEX REPLACE "^([0-9]+).*$" "\\1" _VERSION_MAJOR "${_CURRENT_VERSION}") + STRING(REGEX REPLACE "^[0-9]+\\.([0-9]+).*$" "\\1" _VERSION_MINOR "${_CURRENT_VERSION}") + + set(_PYTHON_NAMES python) + + if (_CURRENT_VERSION MATCHES "^[0-9]+.*$") + list(APPEND _PYTHON_NAMES "python${_VERSION_MAJOR}") + if (_CURRENT_VERSION MATCHES "^[0-9]+\\.[0-9].*$") + list(APPEND _PYTHON_NAMES "python${_VERSION_MAJOR}.${_VERSION_MINOR}") + endif() + endif() + + message(STATUS "Looking for python version '${_CURRENT_VERSION}' by checking executables: ${_PYTHON_NAMES}.") + + foreach(_CURRENT_PYTHON_NAME IN LISTS _PYTHON_NAMES) + + unset(_PYTHON_EXECUTABLE CACHE) + find_program(_PYTHON_EXECUTABLE ${_CURRENT_PYTHON_NAME} + PATHS [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}\\InstallPath]) + + if(_PYTHON_EXECUTABLE) + + EXECUTE_PROCESS( + COMMAND ${_PYTHON_EXECUTABLE} "${_FIND_LIB_PYTHON_PY}" + OUTPUT_VARIABLE _PYTHON_CONFIG + RESULT_VARIABLE _PYTHON_CONFIG_RESULT + ERROR_QUIET) + + if(NOT ${_PYTHON_CONFIG_RESULT} AND (NOT ${_PYTHON_CONFIG} STREQUAL "")) + STRING(REGEX REPLACE ".*\nmajor_version:([0-9]+).*$" "\\1" _PYTHON_MAJOR_VERSION ${_PYTHON_CONFIG}) + STRING(REGEX REPLACE ".*\nminor_version:([0-9]+).*$" "\\1" _PYTHON_MINOR_VERSION ${_PYTHON_CONFIG}) + STRING(REGEX REPLACE ".*\npatch_version:([0-9]+).*$" "\\1" _PYTHON_PATCH_VERSION ${_PYTHON_CONFIG}) + STRING(REGEX REPLACE ".*\nshort_version:([^\n]+).*$" "\\1" _PYTHON_SHORT_VERSION ${_PYTHON_CONFIG}) + STRING(REGEX REPLACE ".*\nlong_version:([^\n]+).*$" "\\1" _PYTHON_LONG_VERSION ${_PYTHON_CONFIG}) + STRING(REGEX REPLACE ".*\npy_inc_dir:([^\n]+).*$" "\\1" _PYTHON_INCLUDE_DIR ${_PYTHON_CONFIG}) + STRING(REGEX REPLACE ".*\npy_lib_dir:([^\n]+).*$" "\\1" _PYTHON_LIBRARY_DIR ${_PYTHON_CONFIG}) + STRING(REGEX REPLACE ".*\nexec_prefix:(^\n+).*$" "\\1" _PYTHON_PREFIX ${_PYTHON_CONFIG}) + + if ("${_CURRENT_VERSION}" STREQUAL "" OR + "${_CURRENT_VERSION}" STREQUAL "${_PYTHON_MAJOR_VERSION}" OR + "${_CURRENT_VERSION}" STREQUAL "${_PYTHON_SHORT_VERSION}" OR + "${_CURRENT_VERSION}" STREQUAL "${_PYTHON_LONG_VERSION}") + + message(STATUS "Found executable ${_PYTHON_EXECUTABLE} with suitable version ${_PYTHON_LONG_VERSION}") + + if(NOT EXISTS "${PYTHON_INCLUDE_DIR}") + set(PYTHON_INCLUDE_DIR "${_PYTHON_INCLUDE_DIR}") + endif() + + if(NOT EXISTS "${PYTHON_LIBRARY}") + set(_PYTHON_SHORT_VERSION_NO_DOT "${_PYTHON_MAJOR_VERSION}${_PYTHON_MINOR_VERSION}") + set(_PYTHON_LIBRARY_NAMES python${_PYTHON_SHORT_VERSION} python${_PYTHON_SHORT_VERSION_NO_DOT}) + FIND_LIBRARY(PYTHON_LIBRARY + NAMES ${_PYTHON_LIBRARY_NAMES} + PATH_SUFFIXES + python${_PYTHON_SHORT_VERSION}/config + python${_PYTHON_SHORT_VERSION_NO_DOT}/config + PATHS + ${_PYTHON_LIBRARY_DIR} + ${_PYTHON_PREFIX}/lib $ + {_PYTHON_PREFIX}/libs + NO_DEFAULT_PATH) + + if(WIN32) + find_library(PYTHON_DEBUG_LIBRARY + NAMES python${_PYTHON_SHORT_VERSION_NO_DOT}_d python + PATHS + [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}\\InstallPath]/libs/Debug + [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}\\InstallPath]/libs/Debug + [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}\\InstallPath]/libs + [HKEY_CURRENT_USER\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}\\InstallPath]/libs + ) + endif() + endif() + + set(PYTHONLIBS_VERSION_STRING ${_PYTHON_LONG_VERSION}) + if(_PYTHON_PATCH_VERSION STREQUAL "0") + # it's called "Python 2.7", not "2.7.0" + string(REGEX REPLACE "\\.0$" "" PYTHONLIBS_VERSION_STRING "${PYTHONLIBS_VERSION_STRING}") + endif() + + break() + else() + message(STATUS "Found executable ${_PYTHON_EXECUTABLE} with UNsuitable version ${_PYTHON_LONG_VERSION}") + endif() # version ok + else() + message(WARNING "Found executable ${_PYTHON_EXECUTABLE}, but could not extract version info.") + endif() # could extract config + endif() # found executable + endforeach() # python names + if (PYTHONLIBS_VERSION_STRING) + break() + endif() + endforeach() # python versions +endif() + +unset(_PYTHON_NAMES) +unset(_PYTHON_VERSIONS) +unset(_PYTHON_EXECUTABLE CACHE) +unset(_PYTHON_MAJOR_VERSION) +unset(_PYTHON_MINOR_VERSION) +unset(_PYTHON_PATCH_VERSION) +unset(_PYTHON_SHORT_VERSION) +unset(_PYTHON_LONG_VERSION) +unset(_PYTHON_LIBRARY_DIR) +unset(_PYTHON_INCLUDE_DIR) +unset(_PYTHON_PREFIX) +unset(_PYTHON_SHORT_VERSION_NO_DOT) +unset(_PYTHON_LIBRARY_NAMES) + + +# For backward compatibility, set PYTHON_INCLUDE_PATH. +set(PYTHON_INCLUDE_PATH "${PYTHON_INCLUDE_DIR}") + +mark_as_advanced( + PYTHON_DEBUG_LIBRARY + PYTHON_LIBRARY + PYTHON_INCLUDE_DIR +) + +# We use PYTHON_INCLUDE_DIR, PYTHON_LIBRARY and PYTHON_DEBUG_LIBRARY for the +# cache entries because they are meant to specify the location of a single +# library. We now set the variables listed by the documentation for this +# module. +set(PYTHON_INCLUDE_DIRS "${PYTHON_INCLUDE_DIR}") +set(PYTHON_DEBUG_LIBRARIES "${PYTHON_DEBUG_LIBRARY}") + +# These variables have been historically named in this module different from +# what SELECT_LIBRARY_CONFIGURATIONS() expects. +set(PYTHON_LIBRARY_DEBUG "${PYTHON_DEBUG_LIBRARY}") +set(PYTHON_LIBRARY_RELEASE "${PYTHON_LIBRARY}") +include(${CMAKE_CURRENT_LIST_DIR}/SelectLibraryConfigurations.cmake) +SELECT_LIBRARY_CONFIGURATIONS(PYTHON) +# SELECT_LIBRARY_CONFIGURATIONS() sets ${PREFIX}_FOUND if it has a library. +# Unset this, this prefix doesn't match the module prefix, they are different +# for historical reasons. +unset(PYTHON_FOUND) + +# include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) +include(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(PythonLibs + REQUIRED_VARS PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS + VERSION_VAR PYTHONLIBS_VERSION_STRING) + +# PYTHON_ADD_MODULE( src1 src2 ... srcN) is used to build modules for python. +# PYTHON_WRITE_MODULES_HEADER() writes a header file you can include +# in your sources to initialize the static python modules +function(PYTHON_ADD_MODULE _NAME ) + get_property(_TARGET_SUPPORTS_SHARED_LIBS + GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS) + option(PYTHON_ENABLE_MODULE_${_NAME} "Add module ${_NAME}" TRUE) + option(PYTHON_MODULE_${_NAME}_BUILD_SHARED + "Add module ${_NAME} shared" ${_TARGET_SUPPORTS_SHARED_LIBS}) + + # Mark these options as advanced + mark_as_advanced(PYTHON_ENABLE_MODULE_${_NAME} + PYTHON_MODULE_${_NAME}_BUILD_SHARED) + + if(PYTHON_ENABLE_MODULE_${_NAME}) + if(PYTHON_MODULE_${_NAME}_BUILD_SHARED) + set(PY_MODULE_TYPE MODULE) + else() + set(PY_MODULE_TYPE STATIC) + set_property(GLOBAL APPEND PROPERTY PY_STATIC_MODULES_LIST ${_NAME}) + endif() + + set_property(GLOBAL APPEND PROPERTY PY_MODULES_LIST ${_NAME}) + add_library(${_NAME} ${PY_MODULE_TYPE} ${ARGN}) +# target_link_libraries(${_NAME} ${PYTHON_LIBRARIES}) + + if(PYTHON_MODULE_${_NAME}_BUILD_SHARED) + set_target_properties(${_NAME} PROPERTIES PREFIX "${PYTHON_MODULE_PREFIX}") + if(WIN32 AND NOT CYGWIN) + set_target_properties(${_NAME} PROPERTIES SUFFIX ".pyd") + endif() + endif() + + endif() +endfunction() + +function(PYTHON_WRITE_MODULES_HEADER _filename) + + get_property(PY_STATIC_MODULES_LIST GLOBAL PROPERTY PY_STATIC_MODULES_LIST) + + get_filename_component(_name "${_filename}" NAME) + string(REPLACE "." "_" _name "${_name}") + string(TOUPPER ${_name} _nameUpper) + set(_filename ${CMAKE_CURRENT_BINARY_DIR}/${_filename}) + + set(_filenameTmp "${_filename}.in") + file(WRITE ${_filenameTmp} "/*Created by cmake, do not edit, changes will be lost*/\n") + file(APPEND ${_filenameTmp} +"#ifndef ${_nameUpper} +#define ${_nameUpper} + +#include + +#ifdef __cplusplus +extern \"C\" { +#endif /* __cplusplus */ + +") + + foreach(_currentModule ${PY_STATIC_MODULES_LIST}) + file(APPEND ${_filenameTmp} "extern void init${PYTHON_MODULE_PREFIX}${_currentModule}(void);\n\n") + endforeach() + + file(APPEND ${_filenameTmp} +"#ifdef __cplusplus +} +#endif /* __cplusplus */ + +") + + + foreach(_currentModule ${PY_STATIC_MODULES_LIST}) + file(APPEND ${_filenameTmp} "int ${_name}_${_currentModule}(void) \n{\n static char name[]=\"${PYTHON_MODULE_PREFIX}${_currentModule}\"; return PyImport_AppendInittab(name, init${PYTHON_MODULE_PREFIX}${_currentModule});\n}\n\n") + endforeach() + + file(APPEND ${_filenameTmp} "void ${_name}_LoadAllPythonModules(void)\n{\n") + foreach(_currentModule ${PY_STATIC_MODULES_LIST}) + file(APPEND ${_filenameTmp} " ${_name}_${_currentModule}();\n") + endforeach() + file(APPEND ${_filenameTmp} "}\n\n") + file(APPEND ${_filenameTmp} "#ifndef EXCLUDE_LOAD_ALL_FUNCTION\nvoid CMakeLoadAllPythonModules(void)\n{\n ${_name}_LoadAllPythonModules();\n}\n#endif\n\n#endif\n") + +# with configure_file() cmake complains that you may not use a file created using file(WRITE) as input file for configure_file() + execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different "${_filenameTmp}" "${_filename}" OUTPUT_QUIET ERROR_QUIET) + +endfunction() diff --git a/build3/cmake/SelectLibraryConfigurations.cmake b/build3/cmake/SelectLibraryConfigurations.cmake new file mode 100644 index 000000000..dce6f9926 --- /dev/null +++ b/build3/cmake/SelectLibraryConfigurations.cmake @@ -0,0 +1,70 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +#.rst: +# SelectLibraryConfigurations +# --------------------------- +# +# +# +# select_library_configurations( basename ) +# +# This macro takes a library base name as an argument, and will choose +# good values for basename_LIBRARY, basename_LIBRARIES, +# basename_LIBRARY_DEBUG, and basename_LIBRARY_RELEASE depending on what +# has been found and set. If only basename_LIBRARY_RELEASE is defined, +# basename_LIBRARY will be set to the release value, and +# basename_LIBRARY_DEBUG will be set to basename_LIBRARY_DEBUG-NOTFOUND. +# If only basename_LIBRARY_DEBUG is defined, then basename_LIBRARY will +# take the debug value, and basename_LIBRARY_RELEASE will be set to +# basename_LIBRARY_RELEASE-NOTFOUND. +# +# If the generator supports configuration types, then basename_LIBRARY +# and basename_LIBRARIES will be set with debug and optimized flags +# specifying the library to be used for the given configuration. If no +# build type has been set or the generator in use does not support +# configuration types, then basename_LIBRARY and basename_LIBRARIES will +# take only the release value, or the debug value if the release one is +# not set. + +# This macro was adapted from the FindQt4 CMake module and is maintained by Will +# Dicharry . + +macro( select_library_configurations basename ) + if(NOT ${basename}_LIBRARY_RELEASE) + set(${basename}_LIBRARY_RELEASE "${basename}_LIBRARY_RELEASE-NOTFOUND" CACHE FILEPATH "Path to a library.") + endif() + if(NOT ${basename}_LIBRARY_DEBUG) + set(${basename}_LIBRARY_DEBUG "${basename}_LIBRARY_DEBUG-NOTFOUND" CACHE FILEPATH "Path to a library.") + endif() + + if( ${basename}_LIBRARY_DEBUG AND ${basename}_LIBRARY_RELEASE AND + NOT ${basename}_LIBRARY_DEBUG STREQUAL ${basename}_LIBRARY_RELEASE AND + ( CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE ) ) + # if the generator supports configuration types or CMAKE_BUILD_TYPE + # is set, then set optimized and debug options. + set( ${basename}_LIBRARY "" ) + foreach( _libname IN LISTS ${basename}_LIBRARY_RELEASE ) + list( APPEND ${basename}_LIBRARY optimized "${_libname}" ) + endforeach() + foreach( _libname IN LISTS ${basename}_LIBRARY_DEBUG ) + list( APPEND ${basename}_LIBRARY debug "${_libname}" ) + endforeach() + elseif( ${basename}_LIBRARY_RELEASE ) + set( ${basename}_LIBRARY ${${basename}_LIBRARY_RELEASE} ) + elseif( ${basename}_LIBRARY_DEBUG ) + set( ${basename}_LIBRARY ${${basename}_LIBRARY_DEBUG} ) + else() + set( ${basename}_LIBRARY "${basename}_LIBRARY-NOTFOUND") + endif() + + set( ${basename}_LIBRARIES "${${basename}_LIBRARY}" ) + + if( ${basename}_LIBRARY ) + set( ${basename}_FOUND TRUE ) + endif() + + mark_as_advanced( ${basename}_LIBRARY_RELEASE + ${basename}_LIBRARY_DEBUG + ) +endmacro() diff --git a/data/block.urdf b/data/block.urdf new file mode 100644 index 000000000..d4be09aa0 --- /dev/null +++ b/data/block.urdf @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/differential/diff_arm.stl b/data/differential/diff_arm.stl new file mode 100644 index 000000000..8d33d772f Binary files /dev/null and b/data/differential/diff_arm.stl differ diff --git a/data/differential/diff_carrier.stl b/data/differential/diff_carrier.stl new file mode 100644 index 000000000..2b9cd9cf6 Binary files /dev/null and b/data/differential/diff_carrier.stl differ diff --git a/data/differential/diff_carrier_cover.stl b/data/differential/diff_carrier_cover.stl new file mode 100644 index 000000000..8afd68086 Binary files /dev/null and b/data/differential/diff_carrier_cover.stl differ diff --git a/data/differential/diff_leftshaft.stl b/data/differential/diff_leftshaft.stl new file mode 100644 index 000000000..f44b120ef Binary files /dev/null and b/data/differential/diff_leftshaft.stl differ diff --git a/data/differential/diff_motor_cover.stl b/data/differential/diff_motor_cover.stl new file mode 100644 index 000000000..a664860b3 Binary files /dev/null and b/data/differential/diff_motor_cover.stl differ diff --git a/data/differential/diff_pinion.stl b/data/differential/diff_pinion.stl new file mode 100644 index 000000000..7e9638779 Binary files /dev/null and b/data/differential/diff_pinion.stl differ diff --git a/data/differential/diff_rightshaft.stl b/data/differential/diff_rightshaft.stl new file mode 100644 index 000000000..db4024912 Binary files /dev/null and b/data/differential/diff_rightshaft.stl differ diff --git a/data/differential/diff_ring.stl b/data/differential/diff_ring.stl new file mode 100644 index 000000000..7ca2a6c62 Binary files /dev/null and b/data/differential/diff_ring.stl differ diff --git a/data/differential/diff_ring.urdf b/data/differential/diff_ring.urdf new file mode 100644 index 000000000..3e20aebd7 --- /dev/null +++ b/data/differential/diff_ring.urdf @@ -0,0 +1,198 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/differential/diff_side.stl b/data/differential/diff_side.stl new file mode 100644 index 000000000..f8ed10e8a Binary files /dev/null and b/data/differential/diff_side.stl differ diff --git a/data/differential/diff_spider.stl b/data/differential/diff_spider.stl new file mode 100644 index 000000000..1c152401f Binary files /dev/null and b/data/differential/diff_spider.stl differ diff --git a/data/differential/diff_spider_shaft.stl b/data/differential/diff_spider_shaft.stl new file mode 100644 index 000000000..12b2213f1 Binary files /dev/null and b/data/differential/diff_spider_shaft.stl differ diff --git a/data/differential/diff_stand.stl b/data/differential/diff_stand.stl new file mode 100644 index 000000000..168bdb1dc Binary files /dev/null and b/data/differential/diff_stand.stl differ diff --git a/data/differential/modelorigin.txt b/data/differential/modelorigin.txt new file mode 100644 index 000000000..af250e7d6 --- /dev/null +++ b/data/differential/modelorigin.txt @@ -0,0 +1,2 @@ +stl files were copied from http://www.otvinta.com/download09.html +URDF file was manually created, along with mimicJointConstraint.py \ No newline at end of file diff --git a/data/kitchens/1.sdf b/data/kitchens/1.sdf index 0bf6112e9..33e914375 100644 --- a/data/kitchens/1.sdf +++ b/data/kitchens/1.sdf @@ -4291,45 +4291,7 @@ - - 1 - -12.0 -13.9 0 0 0 0 - - - 0 - - 0.166667 - 0 - 0 - 0.166667 - 0 - 0.166667 - - - - - - .1 .1 .1 - fatihrmutfak/part110.obj - - - - - - - .1 .1 .1 - fatihrmutfak/part110.obj - - - - 1 0 0 1 - 1.000000 1.000000 1.000000 1 - 0.1 0.1 0.1 1 - 0 0 0 0 - - - - + 1 -12.0 -13.9 0 0 0 0 diff --git a/data/kuka_iiwa/kuka_with_gripper.sdf b/data/kuka_iiwa/kuka_with_gripper.sdf new file mode 100644 index 000000000..fd8ba3554 --- /dev/null +++ b/data/kuka_iiwa/kuka_with_gripper.sdf @@ -0,0 +1,802 @@ + + + + + + + 0 0 0 0 -0 0 + + -0.1 0 0.07 0 -0 0 + 0 + + 0.05 + 0 + 0 + 0.06 + 0 + 0.03 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + /meshes/link_0.stl + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_0.obj + + + + 1 0 0 1 + 0.2 0.2 0.2 1.0 + 0.4 0.4 0.4 1 + 0 0 0 0 + + + + + 0 0 0.1575 0 -0 0 + + 0 -0.03 0.12 0 -0 0 + 4 + + 0.1 + 0 + 0 + 0.09 + 0 + 0.02 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_1.stl + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_1.obj + + + + 1 0 0 1 + 0.5 0.7 1.0 1.0 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + + lbr_iiwa_link_1 + lbr_iiwa_link_0 + + 0 0 1 + + -2.96706 + 2.96706 + 300 + 10 + + + 0.5 + 0 + 0 + 0 + + + + + 0 0 0.36 1.5708 -0 -3.14159 + + 0.0003 0.059 0.042 0 -0 0 + 4 + + 0.05 + 0 + 0 + 0.018 + 0 + 0.044 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_2.stl + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_2.obj + + + + 1 0 0 1 + 0.5 0.7 1.0 1.0 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + + lbr_iiwa_link_2 + lbr_iiwa_link_1 + + 0 0 1 + + -2.0944 + 2.0944 + 300 + 10 + + + 0.5 + 0 + 0 + 0 + + + + + 0 -0 0.5645 0 0 0 + + 0 0.03 0.13 0 -0 0 + 3 + + 0.08 + 0 + 0 + 0.075 + 0 + 0.01 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_3.stl + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_3.obj + + + + 1 0 0 1 + 1.0 0.423529411765 0.0392156862745 1.0 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + + lbr_iiwa_link_3 + lbr_iiwa_link_2 + + 0 0 1 + + -2.96706 + 2.96706 + 300 + 10 + + + 0.5 + 0 + 0 + 0 + + + + + 0 -0 0.78 1.5708 0 0 + + 0 0.067 0.034 0 -0 0 + 2.7 + + 0.03 + 0 + 0 + 0.01 + 0 + 0.029 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_4.stl + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_4.obj + + + + 1 0 0 1 + 0.5 0.7 1.0 1.0 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + + lbr_iiwa_link_4 + lbr_iiwa_link_3 + + 0 0 1 + + -2.0944 + 2.0944 + 300 + 10 + + + 0.5 + 0 + 0 + 0 + + + + + 0 -0 0.9645 0 -0 -3.14159 + + 0.0001 0.021 0.076 0 -0 0 + 1.7 + + 0.02 + 0 + 0 + 0.018 + 0 + 0.005 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_5.stl + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_5.obj + + + + 1 0 0 1 + 0.5 0.7 1.0 1.0 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + + lbr_iiwa_link_5 + lbr_iiwa_link_4 + + 0 0 1 + + -2.96706 + 2.96706 + 300 + 10 + + + 0.5 + 0 + 0 + 0 + + + + + 0 0 1.18 1.5708 -0 -3.14159 + + 0 0.0006 0.0004 0 -0 0 + 1.8 + + 0.005 + 0 + 0 + 0.0036 + 0 + 0.0047 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_6.stl + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_6.obj + + + + 1 0 0 1 + 1.0 0.423529411765 0.0392156862745 1.0 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + + lbr_iiwa_link_6 + lbr_iiwa_link_5 + + 0 0 1 + + -2.0944 + 2.0944 + 300 + 10 + + + 0.5 + 0 + 0 + 0 + + + + + 0 0 1.261 0 0 0 + + 0 0 0.02 0 -0 0 + 0.3 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_7.stl + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_7.obj + + + + 1 0 0 1 + 0.6 0.6 0.6 1 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + + lbr_iiwa_link_7 + lbr_iiwa_link_6 + + 0 0 1 + + -3.05433 + 3.05433 + 300 + 10 + + + 0.5 + 0 + 0 + 0 + + + + + + + lbr_iiwa_link_7 + base_link + + + 0 0 1.305 0 -0 0 + + 0 0 0 0 -0 0 + 1.2 + + 1 + 0 + 0 + 1 + 0 + 1 + + + + 0 0 0 0 0 0 + + + 0.05 0.05 0.1 + + + + 1 0 0 1 + 0.6 0.6 0.6 1 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + + + base_link + left_finger + + 0 1 0 + + -10.4 + 10.01 + 100 + 0 + + + 0 + 0 + 0 + 0 + + + + + 0 0.024 1.35 0 -0.05 0 + + 0 0 0.04 0 0 0 + 0.1 + + 0.1 + 0 + 0 + 0.1 + 0 + 0.1 + + + + 0 0 0.04 0 0 0 + + + 0.01 0.01 0.08 + + + + 1 0 0 1 + 0.6 0.6 0.6 1 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + + left_finger + left_finger_base + + + -0.005 0.024 1.43 0 -0.3 0 + + -0.003 0 0.04 0 0 0 + 0.2 + + 0.1 + 0 + 0 + 0.1 + 0 + 0.1 + + + + 0 0 0 0 0 0 + + + 1 1 1 + meshes/finger_base_left.stl + + + + 1 0 0 1 + 0.6 0.6 0.6 1 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + 0 0 0 0 0 0 + + + 1 1 1 + meshes/finger_base_left.stl + + + + + + left_finger_base + left_finger_tip + + 0 1 0 + + -10.1 + 10.3 + 0 + 0 + + + 0 + 0 + 0 + 0 + + + + + + 0.8 + 1.0 + + -0.02 0.024 1.49 0 0.2 0 + + -0.005 0 0.026 0 0 0 + 0.2 + + 0.1 + 0 + 0 + 0.1 + 0 + 0.1 + + + + 0 0 0 0 0 0 + + + 1 1 1 + meshes/finger_tip_left.stl + + + + 1 0 0 1 + 0.6 0.6 0.6 1 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + 0 0 0 0 0 0 + + + 1 1 1 + meshes/finger_tip_left.stl + + + + + + base_link + right_finger + + 0 1 0 + + -10.01 + 10.4 + 100 + 0 + + + 0 + 0 + 0 + 0 + + + + + 0 0.024 1.35 0 0.05 0 + + 0 0 0.04 0 0 0 + 0.1 + + 0.1 + 0 + 0 + 0.1 + 0 + 0.1 + + + + 0 0 0.04 0 0 0 + + + 0.01 0.01 0.08 + + + + 1 0 0 1 + 0.6 0.6 0.6 1 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + + right_finger + right_finger_base + + + 0.005 0.024 1.43 0 0.3 0 + + 0.003 0 0.04 0 0 0 + 0.2 + + 0.1 + 0 + 0 + 0.1 + 0 + 0.1 + + + + 0 0 0 0 0 0 + + + 1 1 1 + meshes/finger_base_right.stl + + + + 1 0 0 1 + 0.6 0.6 0.6 1 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + 0 0 0 0 0 0 + + + 1 1 1 + meshes/finger_base_right.stl + + + + + + right_finger_base + right_finger_tip + + 0 1 0 + + -10.3 + 10.1 + 0 + 0 + + + 0 + 0 + 0 + 0 + + + + + + 0.8 + 1.0 + + 0.02 0.024 1.49 0 -0.2 0 + + 0.005 0 0.026 0 0 0 + 0.2 + + 0.1 + 0 + 0 + 0.1 + 0 + 0.1 + + + + 0 0 0 0 0 0 + + + 1 1 1 + meshes/finger_tip_right.stl + + + + 1 0 0 1 + 0.6 0.6 0.6 1 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + 0 0 0 0 0 0 + + + 1 1 1 + meshes/finger_tip_right.stl + + + + + + + diff --git a/data/kuka_iiwa/kuka_with_gripper2.sdf b/data/kuka_iiwa/kuka_with_gripper2.sdf new file mode 100644 index 000000000..9c3787bcb --- /dev/null +++ b/data/kuka_iiwa/kuka_with_gripper2.sdf @@ -0,0 +1,857 @@ + + + + + + + 0 0 0 0 -0 0 + + -0.1 0 0.07 0 -0 0 + 0 + + 0.05 + 0 + 0 + 0.06 + 0 + 0.03 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + /meshes/link_0.stl + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_0.obj + + + + 1 0 0 1 + 0.2 0.2 0.2 1.0 + 0.4 0.4 0.4 1 + 0 0 0 0 + + + + + 0 0 0.1575 0 -0 0 + + 0 -0.03 0.12 0 -0 0 + 4 + + 0.1 + 0 + 0 + 0.09 + 0 + 0.02 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_1.stl + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_1.obj + + + + 1 0 0 1 + 0.5 0.7 1.0 1.0 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + + lbr_iiwa_link_1 + lbr_iiwa_link_0 + + 0 0 1 + + -2.96706 + 2.96706 + 300 + 10 + + + 0.5 + 0 + 0 + 0 + + + + + 0 0 0.36 1.5708 -0 -3.14159 + + 0.0003 0.059 0.042 0 -0 0 + 4 + + 0.05 + 0 + 0 + 0.018 + 0 + 0.044 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_2.stl + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_2.obj + + + + 1 0 0 1 + 0.5 0.7 1.0 1.0 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + + lbr_iiwa_link_2 + lbr_iiwa_link_1 + + 0 0 1 + + -2.0944 + 2.0944 + 300 + 10 + + + 0.5 + 0 + 0 + 0 + + + + + 0 -0 0.5645 0 0 0 + + 0 0.03 0.13 0 -0 0 + 3 + + 0.08 + 0 + 0 + 0.075 + 0 + 0.01 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_3.stl + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_3.obj + + + + 1 0 0 1 + 1.0 0.423529411765 0.0392156862745 1.0 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + + lbr_iiwa_link_3 + lbr_iiwa_link_2 + + 0 0 1 + + -2.96706 + 2.96706 + 300 + 10 + + + 0.5 + 0 + 0 + 0 + + + + + 0 -0 0.78 1.5708 0 0 + + 0 0.067 0.034 0 -0 0 + 2.7 + + 0.03 + 0 + 0 + 0.01 + 0 + 0.029 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_4.stl + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_4.obj + + + + 1 0 0 1 + 0.5 0.7 1.0 1.0 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + + lbr_iiwa_link_4 + lbr_iiwa_link_3 + + 0 0 1 + + -2.0944 + 2.0944 + 300 + 10 + + + 0.5 + 0 + 0 + 0 + + + + + 0 -0 0.9645 0 -0 -3.14159 + + 0.0001 0.021 0.076 0 -0 0 + 1.7 + + 0.02 + 0 + 0 + 0.018 + 0 + 0.005 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_5.stl + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_5.obj + + + + 1 0 0 1 + 0.5 0.7 1.0 1.0 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + + lbr_iiwa_link_5 + lbr_iiwa_link_4 + + 0 0 1 + + -2.96706 + 2.96706 + 300 + 10 + + + 0.5 + 0 + 0 + 0 + + + + + 0 0 1.18 1.5708 -0 -3.14159 + + 0 0.0006 0.0004 0 -0 0 + 1.8 + + 0.005 + 0 + 0 + 0.0036 + 0 + 0.0047 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_6.stl + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_6.obj + + + + 1 0 0 1 + 1.0 0.423529411765 0.0392156862745 1.0 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + + lbr_iiwa_link_6 + lbr_iiwa_link_5 + + 0 0 1 + + -2.0944 + 2.0944 + 300 + 10 + + + 0.5 + 0 + 0 + 0 + + + + + 0 0 1.261 0 0 0 + + 0 0 0.02 0 -0 0 + 1.3 + + 0.001 + 0 + 0 + 0.001 + 0 + 0.001 + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_7.stl + + + + + 0 0 0 0 -0 0 + + + 1 1 1 + meshes/link_7.obj + + + + 1 0 0 1 + 0.6 0.6 0.6 1 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + + lbr_iiwa_link_7 + lbr_iiwa_link_6 + + 0 0 1 + + -3.05433 + 3.05433 + 300 + 10 + + + 0.5 + 0 + 0 + 0 + + + + + + + lbr_iiwa_link_7 + base_link + + 0 0 1 + + + + + + + 0 0 1.305 0 -0 0 + + 0 0 0 0 -0 0 + 0.2 + + 1 + 0 + 0 + 1 + 0 + 1 + + + + 0 0 0 0 0 0 + + + 0.05 0.05 0.1 + + + + 1 0 0 1 + 0.6 0.6 0.6 1 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + 0 0 0 0 0 0 + + + 0.05 0.05 0.1 + + + + 1 0 0 1 + 0.6 0.6 0.6 1 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + + + base_link + left_finger + + 0 1 0 + + -10.4 + 10.01 + 100 + 0 + + + 0 + 0 + 0 + 0 + + + + + 0 0.024 1.35 0 -0.05 0 + + 0 0 0.04 0 0 0 + 0.2 + + 0.1 + 0 + 0 + 0.1 + 0 + 0.1 + + + + 0 0 0.04 0 0 0 + + + 0.01 0.01 0.08 + + + + 1 0 0 1 + 0.6 0.6 0.6 1 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + 0 0 0.04 0 0 0 + + + 0.01 0.01 0.08 + + + + + + + left_finger + left_finger_base + + + + 0.8 + .1 + + -0.005 0.024 1.43 0 -0.3 0 + + -0.003 0 0.04 0 0 0 + 0.2 + + 0.1 + 0 + 0 + 0.1 + 0 + 0.1 + + + + 0 0 0 0 0 0 + + + 1 1 1 + meshes/finger_base_left.stl + + + + 1 0 0 1 + 0.6 0.6 0.6 1 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + 0 0 0 0 0 0 + + + 1 1 1 + meshes/finger_base_left.stl + + + + + + left_finger_base + left_finger_tip + + 0 1 0 + + -10.1 + 10.3 + 0 + 0 + + + 0 + 0 + 0 + 0 + + + + + + 0.8 + .1 + + -0.02 0.024 1.49 0 0.2 0 + + -0.005 0 0.026 0 0 0 + 0.2 + + 0.1 + 0 + 0 + 0.1 + 0 + 0.1 + + + + 0 0 0 0 0 0 + + + 1 1 1 + meshes/finger_tip_left.stl + + + + 1 0 0 1 + 0.6 0.6 0.6 1 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + 0 0 0 0 0 0 + + + 1 1 1 + meshes/finger_tip_left.stl + + + + + + base_link + right_finger + + 0 1 0 + + -10.01 + 10.4 + 100 + 0 + + + 0 + 0 + 0 + 0 + + + + + + 0.8 + .1 + + 0 0.024 1.35 0 0.05 0 + + 0 0 0.04 0 0 0 + 0.2 + + 0.1 + 0 + 0 + 0.1 + 0 + 0.1 + + + + 0 0 0.04 0 0 0 + + + 0.01 0.01 0.08 + + + + 1 0 0 1 + 0.6 0.6 0.6 1 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + 0 0 0.04 0 0 0 + + + 0.01 0.01 0.08 + + + + 1 0 0 1 + 0.6 0.6 0.6 1 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + + right_finger + right_finger_base + + + + 0.8 + .1 + + 0.005 0.024 1.43 0 0.3 0 + + 0.003 0 0.04 0 0 0 + 0.2 + + 0.1 + 0 + 0 + 0.1 + 0 + 0.1 + + + + 0 0 0 0 0 0 + + + 1 1 1 + meshes/finger_base_right.stl + + + + 1 0 0 1 + 0.6 0.6 0.6 1 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + 0 0 0 0 0 0 + + + 1 1 1 + meshes/finger_base_right.stl + + + + + + right_finger_base + right_finger_tip + + 0 1 0 + + -10.3 + 10.1 + 0 + 0 + + + 0 + 0 + 0 + 0 + + + + + + 0.8 + .1 + + 0.02 0.024 1.49 0 -0.2 0 + + 0.005 0 0.026 0 0 0 + 0.2 + + 0.1 + 0 + 0 + 0.1 + 0 + 0.1 + + + + 0 0 0 0 0 0 + + + 1 1 1 + meshes/finger_tip_right.stl + + + + 1 0 0 1 + 0.6 0.6 0.6 1 + 0.5 0.5 0.5 1 + 0 0 0 0 + + + + 0 0 0 0 0 0 + + + 1 1 1 + meshes/finger_tip_right.stl + + + + + + + diff --git a/data/kuka_iiwa/meshes/finger_base_left.stl b/data/kuka_iiwa/meshes/finger_base_left.stl new file mode 100755 index 000000000..4ef433272 Binary files /dev/null and b/data/kuka_iiwa/meshes/finger_base_left.stl differ diff --git a/data/kuka_iiwa/meshes/finger_base_right.stl b/data/kuka_iiwa/meshes/finger_base_right.stl new file mode 100755 index 000000000..0e7c91f14 Binary files /dev/null and b/data/kuka_iiwa/meshes/finger_base_right.stl differ diff --git a/data/kuka_iiwa/meshes/finger_tip_left.stl b/data/kuka_iiwa/meshes/finger_tip_left.stl new file mode 100755 index 000000000..2a258e339 Binary files /dev/null and b/data/kuka_iiwa/meshes/finger_tip_left.stl differ diff --git a/data/kuka_iiwa/meshes/finger_tip_right.stl b/data/kuka_iiwa/meshes/finger_tip_right.stl new file mode 100755 index 000000000..458f26b05 Binary files /dev/null and b/data/kuka_iiwa/meshes/finger_tip_right.stl differ diff --git a/data/kuka_iiwa/meshes/link_0.mtl b/data/kuka_iiwa/meshes/link_0.mtl new file mode 100644 index 000000000..70d3ba1da --- /dev/null +++ b/data/kuka_iiwa/meshes/link_0.mtl @@ -0,0 +1,10 @@ +# Blender MTL File: 'None' +# Material Count: 1 + +newmtl None +Ns 0 +Ka 0.000000 0.000000 0.000000 +Kd 0.8 0.8 0.8 +Ks 0.8 0.8 0.8 +d 1 +illum 2 diff --git a/data/kuka_iiwa/meshes/link_0.obj b/data/kuka_iiwa/meshes/link_0.obj new file mode 100644 index 000000000..8c6180750 --- /dev/null +++ b/data/kuka_iiwa/meshes/link_0.obj @@ -0,0 +1,6055 @@ +# Blender v2.71 (sub 0) OBJ File: '' +# www.blender.org +mtllib link_0.mtl +o Link_0 +v -0.073270 0.085817 0.012943 +v -0.074438 0.081518 0.013000 +v -0.069707 0.083749 0.012943 +v -0.067291 0.072243 0.012925 +v -0.066385 0.076350 0.012920 +v -0.070874 0.076639 0.013000 +v -0.071758 0.079481 0.012999 +v -0.067309 0.080461 0.012939 +v -0.071201 0.074480 0.013000 +v -0.069623 0.069042 0.012934 +v -0.079194 0.071573 0.012999 +v -0.084443 0.070536 0.012940 +v -0.081332 0.067719 0.012931 +v -0.077390 0.066456 0.012934 +v -0.076056 0.070876 0.013000 +v -0.076596 0.081863 0.013000 +v -0.077352 0.086270 0.012940 +v -0.073228 0.071776 0.013000 +v -0.073203 0.066924 0.012920 +v -0.078621 0.081384 0.013000 +v -0.081415 0.084974 0.012924 +v -0.084448 0.082173 0.012942 +v -0.081078 0.079329 0.012999 +v -0.081330 0.073997 0.013000 +v -0.086054 0.074207 0.012961 +v -0.081882 0.076197 0.013000 +v -0.086054 0.078526 0.012947 +v -0.073265 -0.066920 0.012943 +v -0.074438 -0.071217 0.013000 +v -0.069704 -0.068989 0.012943 +v -0.067286 -0.080491 0.012922 +v -0.066385 -0.076387 0.012919 +v -0.070874 -0.076096 0.013000 +v -0.071758 -0.073254 0.013000 +v -0.067311 -0.072275 0.012940 +v -0.071201 -0.078255 0.013000 +v -0.069612 -0.083685 0.012932 +v -0.079194 -0.081162 0.012999 +v -0.084469 -0.082157 0.012941 +v -0.081386 -0.084990 0.012929 +v -0.077359 -0.086271 0.012940 +v -0.076056 -0.081859 0.013000 +v -0.076597 -0.070872 0.013000 +v -0.077349 -0.066465 0.012941 +v -0.073228 -0.080959 0.013000 +v -0.073190 -0.085807 0.012917 +v -0.078621 -0.071351 0.013000 +v -0.081306 -0.067715 0.012931 +v -0.084436 -0.070545 0.012946 +v -0.081078 -0.073406 0.012999 +v -0.081331 -0.078738 0.013000 +v -0.086065 -0.078469 0.012963 +v -0.081882 -0.076538 0.013000 +v -0.086046 -0.074159 0.012945 +v -0.086480 -0.076368 0.012655 +v -0.074576 -0.066078 0.011570 +v -0.070514 -0.067406 0.011148 +v -0.075449 -0.086458 0.012038 +v -0.086480 0.076368 0.012655 +v -0.074719 0.086678 0.011571 +v -0.070630 0.085419 0.011133 +v -0.075321 0.066306 0.012074 +v -0.136000 0.056746 0.038246 +v -0.136000 -0.063593 0.005031 +v -0.136000 -0.058162 0.030935 +v -0.136000 0.062577 0.004065 +v -0.136000 -0.062567 0.004048 +v -0.136000 0.063610 0.004983 +v -0.136000 -0.040445 0.146552 +v -0.136000 -0.021305 0.150937 +v -0.136000 0.046169 0.114487 +v -0.136000 -0.043925 0.142437 +v -0.136000 -0.046867 0.107077 +v -0.136005 0.049975 0.079396 +v -0.136004 -0.051944 0.065681 +v -0.136000 0.041226 0.145950 +v -0.136000 0.043809 0.142545 +v -0.136000 0.038417 0.147355 +v -0.136000 0.021305 0.150937 +v -0.136000 0.000000 0.152500 +v 0.077349 0.066466 0.012941 +v 0.076597 0.070872 0.013000 +v 0.073262 0.066921 0.012943 +v 0.074439 0.071217 0.013000 +v 0.069703 0.068991 0.012943 +v 0.078623 0.071351 0.013000 +v 0.081303 0.067714 0.012931 +v 0.084436 0.070543 0.012946 +v 0.081078 0.073406 0.012999 +v 0.071758 0.073254 0.013000 +v 0.067312 0.072275 0.012940 +v 0.066406 0.076375 0.012934 +v 0.070874 0.076096 0.013000 +v 0.067289 0.080437 0.012941 +v 0.071202 0.078255 0.013000 +v 0.069612 0.083685 0.012932 +v 0.079195 0.081161 0.012999 +v 0.084443 0.082170 0.012949 +v 0.081348 0.084999 0.012935 +v 0.077359 0.086271 0.012940 +v 0.076056 0.081859 0.013000 +v 0.073228 0.080959 0.013000 +v 0.073191 0.085807 0.012917 +v 0.081331 0.078738 0.013000 +v 0.086064 0.078428 0.012971 +v 0.081882 0.076537 0.013000 +v 0.086066 0.074231 0.012950 +v 0.079480 -0.066922 0.012943 +v 0.078297 -0.071217 0.013000 +v 0.083037 -0.068995 0.012944 +v 0.085447 -0.080435 0.012943 +v 0.086329 -0.076388 0.012935 +v 0.081861 -0.076096 0.013000 +v 0.080977 -0.073254 0.013000 +v 0.085420 -0.072277 0.012941 +v 0.081534 -0.078255 0.013000 +v 0.083031 -0.083756 0.012942 +v 0.073541 -0.081162 0.012999 +v 0.068287 -0.082188 0.012944 +v 0.071442 -0.085013 0.012942 +v 0.075328 -0.086266 0.012940 +v 0.076679 -0.081859 0.013000 +v 0.076139 -0.070872 0.013000 +v 0.075386 -0.066467 0.012942 +v 0.079507 -0.080959 0.013000 +v 0.079335 -0.085903 0.012916 +v 0.074114 -0.071351 0.013000 +v 0.071436 -0.067714 0.012933 +v 0.068299 -0.070541 0.012946 +v 0.071657 -0.073406 0.012999 +v 0.071405 -0.078738 0.013000 +v 0.066673 -0.078483 0.012963 +v 0.070853 -0.076538 0.013000 +v 0.066691 -0.074154 0.012945 +v 0.070868 -0.076368 0.000000 +v 0.071604 -0.073618 0.000000 +v 0.073618 -0.071604 0.000000 +v 0.076368 -0.070868 0.000000 +v 0.079118 -0.071604 0.000000 +v 0.081131 -0.073618 0.000000 +v 0.081868 -0.076368 0.000000 +v 0.081131 -0.079118 0.000000 +v 0.079118 -0.081131 0.000000 +v 0.076368 -0.081868 0.000000 +v 0.073618 -0.081131 0.000000 +v 0.071604 -0.079118 0.000000 +v 0.070868 0.076368 0.000000 +v 0.071604 0.079118 0.000000 +v 0.073618 0.081131 0.000000 +v 0.076368 0.081868 0.000000 +v 0.079118 0.081131 0.000000 +v 0.081131 0.079118 0.000000 +v 0.081868 0.076368 0.000000 +v 0.081131 0.073618 0.000000 +v 0.079118 0.071604 0.000000 +v 0.076368 0.070868 0.000000 +v 0.073618 0.071604 0.000000 +v 0.071604 0.073618 0.000000 +v 0.007306 0.120906 0.000000 +v 0.007258 0.120991 0.001014 +v 0.008067 0.120039 0.001217 +v 0.008018 0.119977 -0.000001 +v -0.008242 0.114129 0.001566 +v -0.008168 0.119621 0.001359 +v -0.007908 0.111924 0.000002 +v -0.007961 0.120200 -0.000000 +v -0.007882 0.111838 0.001458 +v 0.007839 0.111789 0.000004 +v 0.008212 0.113978 0.001530 +v 0.007822 0.111773 0.001253 +v 0.005450 0.108037 0.000000 +v 0.006251 0.108703 0.001473 +v 0.001974 0.106166 0.000000 +v 0.003210 0.106587 0.001023 +v -0.001974 0.106166 0.000000 +v -0.000000 0.105895 0.001026 +v -0.003370 0.106647 0.001027 +v -0.005450 0.108037 0.000000 +v -0.006189 0.108742 0.001216 +v -0.003023 0.114150 0.027462 +v -0.003000 0.114000 0.000000 +v -0.002403 0.115814 0.022377 +v -0.002598 0.115500 0.000000 +v -0.001500 0.116598 0.000000 +v -0.001185 0.116817 0.019359 +v 0.000803 0.116913 0.000000 +v 0.000423 0.117003 0.018838 +v 0.002943 0.114983 0.000000 +v 0.003013 0.114508 0.026369 +v 0.001978 0.116313 0.020882 +v 0.002598 0.112500 0.000000 +v 0.001500 0.111402 0.000000 +v 0.002148 0.111831 0.034742 +v 0.000000 0.111000 0.000000 +v -0.000046 0.110940 0.037588 +v -0.002598 0.112500 0.000000 +v -0.002203 0.111799 0.034830 +v -0.001500 0.111402 0.000000 +v -0.008025 0.120312 0.001458 +v -0.007042 0.120944 0.000014 +v -0.081868 0.076368 0.000000 +v -0.081131 0.079118 0.000000 +v -0.079118 0.081131 0.000000 +v -0.076368 0.081868 0.000000 +v -0.073618 0.081131 0.000000 +v -0.071604 0.079118 0.000000 +v -0.070868 0.076368 0.000000 +v -0.071604 0.073618 0.000000 +v -0.073618 0.071604 0.000000 +v -0.076368 0.070868 0.000000 +v -0.079118 0.071604 0.000000 +v -0.081131 0.073618 0.000000 +v -0.081868 -0.076368 0.000000 +v -0.081131 -0.073618 0.000000 +v -0.079118 -0.071604 0.000000 +v -0.076368 -0.070868 0.000000 +v -0.073618 -0.071604 0.000000 +v -0.071604 -0.073618 0.000000 +v -0.070868 -0.076368 0.000000 +v -0.071604 -0.079118 0.000000 +v -0.073618 -0.081131 0.000000 +v -0.076368 -0.081868 0.000000 +v -0.079118 -0.081131 0.000000 +v -0.081131 -0.079118 0.000000 +v 0.000000 -0.111000 0.000000 +v 0.000073 -0.110959 0.037529 +v -0.002039 -0.111695 0.035157 +v -0.002368 -0.111976 -0.000000 +v 0.001849 -0.111583 0.035522 +v 0.001500 -0.111402 0.000000 +v 0.003000 -0.114000 0.000000 +v 0.002937 -0.113202 0.030405 +v 0.002598 -0.112500 0.000000 +v 0.002598 -0.115500 0.000000 +v 0.002273 -0.116091 0.021534 +v 0.001500 -0.116598 0.000000 +v 0.000204 -0.117027 0.018726 +v -0.001569 -0.116596 0.020020 +v -0.000890 -0.116904 0.000001 +v -0.002950 -0.114853 0.000000 +v -0.003016 -0.114515 0.026330 +v -0.007306 -0.120906 0.000000 +v -0.007257 -0.120989 0.000992 +v -0.008067 -0.120039 0.001217 +v -0.008018 -0.119977 -0.000001 +v 0.008242 -0.114129 0.001566 +v 0.008168 -0.119621 0.001359 +v 0.007908 -0.111924 0.000002 +v 0.007961 -0.120200 -0.000000 +v 0.007882 -0.111838 0.001458 +v -0.007839 -0.111789 0.000004 +v -0.008212 -0.113978 0.001530 +v -0.007822 -0.111774 0.001253 +v -0.005450 -0.108037 0.000000 +v -0.006252 -0.108703 0.001473 +v -0.001974 -0.106166 0.000000 +v -0.003210 -0.106587 0.001023 +v 0.001974 -0.106166 0.000000 +v 0.000000 -0.105895 0.001026 +v 0.003370 -0.106647 0.001027 +v 0.005450 -0.108037 0.000000 +v 0.006189 -0.108742 0.001216 +v 0.008025 -0.120312 0.001458 +v 0.007036 -0.120948 0.000014 +v -0.081792 -0.085117 0.011580 +v -0.079528 -0.086496 0.011417 +v -0.083874 -0.083905 0.011162 +v -0.084945 -0.082101 0.011571 +v -0.086477 -0.079648 0.011404 +v -0.086915 -0.074646 0.011159 +v -0.085506 -0.070742 0.011124 +v -0.082686 -0.067740 0.011155 +v -0.078736 -0.065908 0.011140 +v -0.067505 -0.070397 0.011155 +v -0.066073 -0.074330 0.011507 +v -0.067629 -0.082607 0.011143 +v -0.065865 -0.078802 0.011123 +v -0.074934 -0.087020 0.011150 +v -0.070847 -0.085579 0.011135 +v -0.086814 -0.080023 0.011062 +v -0.074370 -0.065469 0.011035 +v -0.065474 -0.074282 0.011029 +v -0.079990 -0.086939 0.011044 +v -0.131500 -0.038417 0.147355 +v -0.131500 0.021305 0.150937 +v -0.131500 0.038417 0.147355 +v -0.131500 0.000000 0.152500 +v -0.131500 -0.021305 0.150937 +v -0.081915 0.085053 0.011576 +v -0.083388 0.084630 0.011025 +v -0.084952 0.082055 0.011569 +v -0.065879 0.078566 0.011145 +v -0.067726 0.082309 0.011499 +v -0.079525 0.086517 0.011393 +v -0.067550 0.070239 0.011141 +v -0.065897 0.073985 0.011147 +v -0.070704 0.067246 0.011133 +v -0.074781 0.065723 0.011130 +v -0.082794 0.067752 0.011134 +v -0.078895 0.065896 0.011121 +v -0.086439 0.079704 0.011420 +v -0.086706 0.074834 0.011560 +v -0.085576 0.070830 0.011118 +v -0.086127 0.081624 0.011017 +v -0.087068 0.079133 0.011046 +v -0.079780 0.086929 0.011058 +v -0.074513 0.087291 0.011035 +v -0.067240 0.082649 0.011035 +v -0.087314 0.074764 0.011043 +v -0.097740 -0.072919 0.000009 +v -0.098714 -0.071446 0.001285 +v -0.098001 -0.071477 -0.000003 +v -0.098247 -0.070953 0.000863 +v -0.099770 -0.070609 0.002001 +v -0.099494 -0.071652 0.002584 +v -0.098830 -0.070205 0.001608 +v -0.100448 -0.069849 0.002100 +v -0.100995 -0.070444 0.002715 +v -0.086832 -0.059899 0.001871 +v -0.086202 -0.061019 0.001028 +v -0.085728 -0.061447 0.000001 +v -0.060976 -0.086080 0.000984 +v -0.061497 -0.085789 -0.000001 +v -0.059307 -0.080558 0.000000 +v -0.058732 -0.080699 0.001000 +v -0.058824 -0.075448 0.000000 +v -0.058233 -0.075417 0.001000 +v -0.059839 -0.070417 0.000000 +v -0.059282 -0.070216 0.001000 +v -0.062264 -0.065893 0.000000 +v -0.061789 -0.065540 0.001000 +v -0.065893 -0.062264 0.000000 +v -0.065540 -0.061789 0.001000 +v -0.070417 -0.059839 0.000000 +v -0.070216 -0.059282 0.001000 +v -0.075448 -0.058824 0.000000 +v -0.075417 -0.058233 0.001000 +v -0.080558 -0.059307 0.000000 +v -0.080699 -0.058732 0.001000 +v -0.059716 -0.086699 0.001916 +v -0.057422 -0.080880 0.001877 +v -0.056927 -0.075211 0.001877 +v -0.058090 -0.069642 0.001877 +v -0.060815 -0.064646 0.001877 +v -0.064862 -0.060594 0.001900 +v -0.069900 -0.057998 0.001877 +v -0.075485 -0.056912 0.001877 +v -0.081252 -0.057385 0.001936 +v -0.070861 -0.097336 -0.000001 +v -0.070024 -0.097539 0.001118 +v -0.069077 -0.098521 0.001960 +v -0.008749 -0.119981 0.001972 +v -0.008510 -0.112046 0.001945 +v 0.006538 -0.108303 0.001950 +v 0.003553 -0.106073 0.001961 +v -0.000076 -0.105356 0.001929 +v 0.000023 -0.105936 0.001035 +v -0.003677 -0.106192 0.001918 +v 0.008684 -0.112050 0.001978 +v -0.006777 -0.108271 0.001986 +v 0.008938 -0.119905 0.002022 +v 0.068516 -0.099205 0.002121 +v 0.059869 -0.086867 0.001892 +v 0.069413 -0.097984 0.001685 +v 0.061060 -0.086244 0.001009 +v 0.061385 -0.085597 -0.000000 +v 0.070911 -0.097356 0.000004 +v 0.070405 -0.097457 0.000737 +v 0.086079 -0.060976 0.000984 +v 0.085789 -0.061498 -0.000001 +v 0.080558 -0.059307 -0.000000 +v 0.080699 -0.058732 0.001000 +v 0.075448 -0.058824 -0.000000 +v 0.075417 -0.058233 0.001000 +v 0.070417 -0.059839 -0.000000 +v 0.070216 -0.059282 0.001000 +v 0.065893 -0.062264 -0.000000 +v 0.065540 -0.061789 0.001000 +v 0.062264 -0.065893 -0.000000 +v 0.061789 -0.065540 0.001000 +v 0.059839 -0.070417 -0.000000 +v 0.059282 -0.070216 0.001000 +v 0.058824 -0.075448 -0.000000 +v 0.058233 -0.075417 0.001000 +v 0.059307 -0.080558 -0.000000 +v 0.058732 -0.080699 0.001000 +v 0.086703 -0.059690 0.001927 +v 0.080834 -0.057282 0.001936 +v 0.075211 -0.056927 0.001877 +v 0.069642 -0.058090 0.001877 +v 0.064556 -0.060779 0.001916 +v 0.060651 -0.064866 0.001877 +v 0.057998 -0.069900 0.001877 +v 0.056912 -0.075485 0.001877 +v 0.057448 -0.081187 0.001900 +v 0.097375 -0.070935 0.000002 +v 0.097539 -0.070024 0.001118 +v 0.098524 -0.069078 0.001961 +v 0.098848 0.069148 0.002082 +v 0.086867 0.059869 0.001892 +v 0.097984 0.069413 0.001685 +v 0.086243 0.061059 0.001009 +v 0.085597 0.061385 -0.000000 +v 0.097275 0.070788 -0.000000 +v 0.097457 0.070405 0.000737 +v 0.060976 0.086080 0.000984 +v 0.061497 0.085789 -0.000001 +v 0.059307 0.080558 -0.000000 +v 0.058732 0.080699 0.001000 +v 0.058824 0.075448 -0.000000 +v 0.058233 0.075417 0.001000 +v 0.059839 0.070417 -0.000000 +v 0.059282 0.070216 0.001000 +v 0.062264 0.065893 -0.000000 +v 0.061789 0.065540 0.001000 +v 0.065893 0.062264 -0.000000 +v 0.065540 0.061789 0.001000 +v 0.070417 0.059839 -0.000000 +v 0.070216 0.059282 0.001000 +v 0.075448 0.058824 -0.000000 +v 0.075417 0.058233 0.001000 +v 0.080558 0.059307 -0.000000 +v 0.080699 0.058732 0.001000 +v 0.059716 0.086699 0.001916 +v 0.057422 0.080880 0.001877 +v 0.056927 0.075211 0.001877 +v 0.058090 0.069642 0.001877 +v 0.060815 0.064646 0.001877 +v 0.064862 0.060594 0.001900 +v 0.069900 0.057998 0.001877 +v 0.075485 0.056912 0.001877 +v 0.081252 0.057385 0.001936 +v 0.070935 0.097375 0.000002 +v 0.070024 0.097539 0.001118 +v 0.069077 0.098521 0.001960 +v 0.008749 0.119981 0.001972 +v 0.008510 0.112047 0.001945 +v -0.006538 0.108302 0.001950 +v -0.003553 0.106073 0.001961 +v 0.000076 0.105356 0.001929 +v -0.000023 0.105936 0.001035 +v 0.003677 0.106192 0.001918 +v -0.008684 0.112050 0.001978 +v 0.006777 0.108271 0.001986 +v -0.008938 0.119905 0.002022 +v -0.069163 0.098841 0.002080 +v -0.059967 0.087012 0.001893 +v -0.069413 0.097984 0.001685 +v -0.061136 0.086348 0.001008 +v -0.061467 0.085722 -0.000000 +v -0.070788 0.097275 -0.000000 +v -0.070405 0.097457 0.000737 +v -0.086244 0.059845 0.001694 +v -0.085750 0.060771 0.000845 +v -0.082600 0.059311 0.001000 +v -0.082922 0.057953 0.001908 +v -0.086811 0.058606 0.002001 +v -0.058865 0.081209 0.001000 +v -0.059436 0.081051 -0.000000 +v -0.058208 0.076295 0.001000 +v -0.058800 0.076297 -0.000000 +v -0.058905 0.071386 0.001000 +v -0.059474 0.071549 -0.000000 +v -0.060903 0.066849 0.001000 +v -0.061407 0.067159 -0.000000 +v -0.064054 0.063021 0.001000 +v -0.064455 0.063456 -0.000000 +v -0.068122 0.060188 0.001000 +v -0.068391 0.060715 -0.000000 +v -0.072806 0.058561 0.001000 +v -0.072922 0.059141 -0.000000 +v -0.077755 0.058261 0.001000 +v -0.077709 0.058852 -0.000000 +v -0.084865 0.060837 -0.000002 +v -0.077613 0.056769 0.001953 +v -0.072404 0.057300 0.001877 +v -0.067394 0.059083 0.001877 +v -0.062958 0.062130 0.001916 +v -0.059706 0.066284 0.001877 +v -0.057600 0.071166 0.001877 +v -0.056892 0.076436 0.001877 +v -0.057599 0.081746 0.001900 +v -0.097959 0.071422 -0.000002 +v -0.098212 0.070575 0.001081 +v -0.099365 0.070097 0.001801 +v -0.100534 0.069832 0.002116 +v -0.131500 0.043509 0.143130 +v -0.131500 0.044299 0.140090 +v -0.131056 0.041064 0.145740 +v -0.131500 0.047901 0.097245 +v -0.131500 0.054975 0.047968 +v -0.131493 0.063615 0.005077 +v -0.131498 0.062568 0.004049 +v -0.131490 -0.062894 0.004160 +v -0.131509 -0.063623 0.005352 +v -0.131500 -0.054975 0.047968 +v -0.131500 -0.047901 0.097245 +v -0.131500 -0.044299 0.140090 +v -0.131500 -0.041226 0.145950 +v -0.131500 -0.043509 0.143130 +v -0.098599 0.071555 0.001105 +v -0.097774 0.072886 0.000022 +v -0.101095 0.070666 0.003730 +v -0.099432 0.071711 0.002566 +v -0.100870 0.070467 0.002676 +v -0.099769 0.071176 0.002301 +v 0.067754 0.081470 0.012456 +v 0.075445 0.086458 0.012038 +v 0.086753 0.074704 0.011491 +v 0.074466 0.066095 0.011567 +v 0.070431 0.067461 0.011149 +v 0.066255 -0.076368 0.012655 +v 0.078516 -0.066134 0.011559 +v 0.082343 -0.067724 0.011487 +v 0.082514 -0.085157 0.011092 +v 0.086636 -0.084811 -0.000000 +v 0.072024 -0.097458 0.000001 +v 0.097413 -0.072020 0.000000 +v 0.098184 -0.070240 0.001566 +v 0.097969 -0.071533 0.001778 +v 0.099070 -0.069389 0.002340 +v 0.099437 -0.069673 0.003125 +v 0.103395 -0.062157 0.002132 +v 0.110101 0.051314 0.004840 +v 0.110589 0.049770 0.002734 +v 0.103804 0.062910 0.003081 +v 0.121059 -0.007256 0.002739 +v 0.118711 -0.021395 0.002119 +v 0.120097 -0.007099 0.002039 +v 0.120380 0.007661 0.002119 +v 0.119281 0.021919 0.002741 +v 0.118302 0.021873 0.002039 +v 0.115041 0.036272 0.002119 +v 0.109598 0.049582 0.002033 +v 0.103048 0.062698 0.002122 +v 0.103860 -0.062768 0.003031 +v 0.110667 -0.049814 0.003043 +v 0.110130 -0.049207 0.002119 +v 0.115877 -0.036059 0.003032 +v 0.115262 -0.035561 0.002119 +v 0.119439 -0.022088 0.003438 +v 0.121220 0.007399 0.003322 +v 0.115967 0.036006 0.003282 +v 0.099460 0.069616 0.003087 +v 0.098327 0.070926 0.001884 +v 0.097739 0.071653 0.000854 +v 0.097458 0.072026 0.000001 +v 0.086636 0.084811 -0.000000 +v 0.072106 0.097393 -0.000000 +v 0.070240 0.098184 0.001566 +v 0.071504 0.098012 0.001899 +v 0.069446 0.099030 0.002322 +v 0.069841 0.099310 0.003073 +v 0.008752 0.120629 0.002347 +v 0.019667 0.119005 0.002122 +v 0.059353 0.105054 0.002139 +v 0.009667 0.120997 0.003197 +v 0.019948 0.119716 0.003045 +v 0.046937 0.111823 0.002739 +v 0.046520 0.110949 0.002039 +v 0.033217 0.115960 0.002119 +v 0.033761 0.116579 0.003073 +v 0.059721 0.105734 0.003344 +v 0.008148 0.120383 0.001687 +v 0.007727 0.121093 0.002437 +v -0.008469 0.120616 0.002245 +v -0.007813 0.121126 0.002792 +v -0.009264 0.121006 0.003030 +v -0.019719 0.119059 0.002138 +v -0.066225 0.101831 0.004514 +v -0.059829 0.105594 0.003059 +v -0.070054 0.099120 0.002896 +v -0.059608 0.104863 0.002122 +v -0.047198 0.110965 0.002091 +v -0.047047 0.111916 0.003210 +v -0.033958 0.115744 0.002119 +v -0.033601 0.116608 0.003121 +v -0.019850 0.119738 0.003098 +v -0.070859 0.098355 0.001904 +v -0.071641 0.097771 0.000954 +v -0.072017 0.097460 0.000001 +v -0.092915 0.077944 0.000000 +v -0.082948 0.088421 -0.000000 +v -0.071884 -0.097431 0.000017 +v -0.082948 -0.088421 -0.000000 +v -0.070240 -0.098184 0.001566 +v -0.071545 -0.097991 0.001938 +v -0.069446 -0.099030 0.002322 +v -0.069660 -0.099389 0.003008 +v -0.059353 -0.105054 0.002139 +v -0.019815 -0.119736 0.003044 +v -0.008751 -0.120629 0.002347 +v -0.007953 -0.121133 0.002884 +v -0.020088 -0.118893 0.002111 +v -0.033217 -0.115960 0.002119 +v -0.033849 -0.116556 0.003149 +v -0.046411 -0.111314 0.002103 +v -0.047182 -0.111852 0.003180 +v -0.059830 -0.105603 0.003109 +v -0.008148 -0.120383 0.001687 +v 0.008469 -0.120616 0.002245 +v 0.007875 -0.121091 0.002732 +v 0.009458 -0.121024 0.003142 +v 0.020290 -0.119563 0.002752 +v 0.019868 -0.118687 0.002049 +v 0.033958 -0.115744 0.002119 +v 0.047047 -0.111783 0.002743 +v 0.046861 -0.110789 0.002033 +v 0.059608 -0.104863 0.002122 +v 0.070367 -0.098901 0.002856 +v 0.059847 -0.105638 0.003209 +v 0.033813 -0.116567 0.003076 +v 0.069938 -0.098469 0.001931 +v 0.071718 -0.097790 0.001301 +v -0.088168 -0.068952 0.011701 +v -0.087291 -0.069484 0.011082 +v -0.084472 -0.065075 0.011717 +v -0.083754 -0.065904 0.011068 +v -0.080082 -0.062973 0.011717 +v -0.079694 -0.063999 0.011068 +v -0.075237 -0.062513 0.011717 +v -0.075226 -0.063611 0.011068 +v -0.070530 -0.063753 0.011717 +v -0.070898 -0.064786 0.011068 +v -0.066539 -0.066539 0.011717 +v -0.067241 -0.067382 0.011068 +v -0.063753 -0.070530 0.011717 +v -0.064702 -0.071080 0.011068 +v -0.063050 -0.075499 0.011207 +v -0.062973 -0.080082 0.011717 +v -0.064053 -0.079887 0.011068 +v -0.065075 -0.084472 0.011717 +v -0.066021 -0.083916 0.011068 +v -0.069002 -0.088147 0.011660 +v -0.069668 -0.087381 0.011083 +v -0.088665 -0.068438 0.012863 +v -0.084913 -0.064548 0.012832 +v -0.080412 -0.062340 0.012907 +v -0.075252 -0.061817 0.012852 +v -0.070327 -0.063087 0.012863 +v -0.066036 -0.066047 0.012869 +v -0.063116 -0.070310 0.012809 +v -0.061824 -0.075234 0.012830 +v -0.062372 -0.080468 0.012847 +v -0.064548 -0.084895 0.012804 +v -0.068489 -0.088695 0.012824 +v -0.131000 -0.063547 0.004099 +v -0.118125 -0.064351 0.003481 +v -0.121325 -0.063995 0.004954 +v -0.114868 -0.064970 0.005005 +v -0.104845 -0.068642 0.003326 +v -0.109578 -0.066386 0.005146 +v -0.109138 -0.066512 0.003421 +v -0.096059 -0.074934 0.005162 +v -0.100479 -0.071091 0.005000 +v -0.104595 -0.068470 0.005243 +v -0.091658 -0.079629 0.005289 +v -0.082695 -0.085346 0.010962 +v -0.085480 -0.082653 0.010948 +v -0.090993 -0.076923 0.010973 +v -0.076755 -0.090894 0.010968 +v -0.090875 -0.075851 0.011320 +v -0.091219 -0.073770 0.012799 +v -0.091193 -0.074975 0.011917 +v -0.090089 -0.070419 0.025632 +v -0.131004 -0.038761 0.146740 +v -0.130999 -0.030502 0.148763 +v -0.131000 0.028709 0.149133 +v -0.130993 0.038619 0.146762 +v -0.131000 0.020107 0.150604 +v -0.131500 0.000000 0.152500 +v -0.130992 0.009015 0.151713 +v -0.131017 -0.016946 0.151104 +v -0.130996 -0.001729 0.151963 +v -0.068817 0.064051 0.013456 +v -0.065998 0.066098 0.012853 +v -0.070302 0.063100 0.012831 +v -0.068948 0.088180 0.011710 +v -0.069478 0.087276 0.011087 +v -0.065075 0.084472 0.011717 +v -0.065904 0.083754 0.011068 +v -0.062973 0.080082 0.011717 +v -0.063999 0.079694 0.011068 +v -0.062513 0.075237 0.011717 +v -0.063611 0.075226 0.011068 +v -0.063753 0.070530 0.011717 +v -0.064787 0.070898 0.011068 +v -0.066539 0.066539 0.011717 +v -0.067382 0.067241 0.011068 +v -0.070961 0.064166 0.011207 +v -0.075237 0.062513 0.011717 +v -0.075425 0.063595 0.011068 +v -0.080082 0.062973 0.011717 +v -0.079887 0.064053 0.011068 +v -0.084472 0.065075 0.011717 +v -0.083916 0.066021 0.011068 +v -0.088181 0.069031 0.011673 +v -0.087406 0.069674 0.011086 +v -0.070397 0.089663 0.012817 +v -0.068136 0.088367 0.012785 +v -0.064563 0.084917 0.012812 +v -0.062386 0.080466 0.012843 +v -0.061818 0.075254 0.012849 +v -0.063087 0.070334 0.012857 +v -0.075224 0.061824 0.012833 +v -0.080286 0.062309 0.012877 +v -0.084902 0.064544 0.012819 +v -0.088668 0.068496 0.012786 +v -0.090495 0.077457 0.010924 +v -0.076833 0.090772 0.010970 +v -0.090863 0.076154 0.011196 +v -0.091578 0.073981 0.013615 +v -0.091288 0.074503 0.012210 +v -0.089690 0.069552 0.028517 +v -0.123989 -0.063412 0.002589 +v -0.131000 -0.063353 0.002972 +v -0.130999 -0.062429 0.002030 +v -0.117751 -0.063101 0.002020 +v -0.115188 -0.064615 0.002653 +v -0.107735 -0.066723 0.002539 +v -0.106007 -0.066624 0.002071 +v -0.130996 0.062038 0.002022 +v -0.115746 0.063596 0.002045 +v -0.106140 0.066397 0.002021 +v -0.131000 0.062957 0.002325 +v -0.123371 0.063437 0.002545 +v -0.117542 0.064464 0.003491 +v -0.131000 0.063548 0.004107 +v -0.107675 0.066778 0.002586 +v -0.108146 0.066910 0.003495 +v -0.115064 0.064639 0.002639 +v -0.130998 0.043420 0.142214 +v -0.131000 0.047404 0.097190 +v -0.131000 0.054482 0.047881 +v -0.130991 0.062993 0.004791 +v -0.130998 -0.062662 0.004597 +v -0.131020 -0.063191 0.005710 +v -0.131033 -0.054702 0.048094 +v -0.131000 -0.047404 0.097190 +v -0.130999 -0.043294 0.142525 +v -0.131028 -0.041147 0.145632 +v -0.118936 0.064355 0.004680 +v -0.113553 0.065263 0.005004 +v -0.108083 0.066921 0.005110 +v -0.098601 0.072686 0.004743 +v -0.103331 0.069204 0.004967 +v -0.091247 0.080124 0.004949 +v -0.095704 0.075241 0.005257 +v 0.079548 0.086515 0.011381 +v 0.082568 0.084835 0.011427 +v 0.084652 0.083085 0.011222 +v 0.086471 0.080082 0.011153 +v 0.082571 0.067652 0.011153 +v 0.085413 0.070594 0.011124 +v 0.086829 0.078883 0.011139 +v 0.066062 0.074388 0.011506 +v 0.067459 0.070460 0.011154 +v 0.078613 0.065879 0.011138 +v 0.065888 0.078609 0.011145 +v 0.074932 0.087020 0.011150 +v 0.070860 0.085588 0.011135 +v 0.067577 0.082639 0.011108 +v 0.087291 0.074510 0.011035 +v 0.074259 0.065490 0.011035 +v 0.065462 0.074344 0.011029 +v 0.079958 0.086943 0.011046 +v 0.088140 0.068972 0.011668 +v 0.087294 0.069490 0.011082 +v 0.084472 0.065075 0.011717 +v 0.083754 0.065904 0.011068 +v 0.080082 0.062973 0.011717 +v 0.079694 0.063999 0.011068 +v 0.075237 0.062513 0.011717 +v 0.075226 0.063611 0.011068 +v 0.070530 0.063753 0.011717 +v 0.070898 0.064786 0.011068 +v 0.066539 0.066539 0.011717 +v 0.067241 0.067382 0.011068 +v 0.063753 0.070530 0.011717 +v 0.064702 0.071080 0.011068 +v 0.063050 0.075499 0.011207 +v 0.062973 0.080082 0.011717 +v 0.064053 0.079887 0.011068 +v 0.065075 0.084472 0.011717 +v 0.066021 0.083916 0.011068 +v 0.069028 0.088178 0.011672 +v 0.069628 0.087366 0.011083 +v 0.088659 0.068416 0.012883 +v 0.084894 0.064558 0.012791 +v 0.080502 0.062375 0.012897 +v 0.075262 0.061827 0.012830 +v 0.070313 0.063094 0.012863 +v 0.066031 0.066048 0.012873 +v 0.063101 0.070330 0.012817 +v 0.061829 0.075217 0.012824 +v 0.062352 0.080444 0.012878 +v 0.064542 0.084874 0.012788 +v 0.068454 0.088670 0.012840 +v 0.086499 -0.079546 0.011401 +v 0.084898 -0.082507 0.011400 +v 0.083907 -0.083935 0.011088 +v 0.079502 -0.086520 0.011399 +v 0.070751 -0.085276 0.011449 +v 0.074415 -0.086957 0.011104 +v 0.070532 -0.067615 0.011467 +v 0.067581 -0.070552 0.011439 +v 0.066019 -0.074442 0.011456 +v 0.066043 -0.078565 0.011411 +v 0.067603 -0.082608 0.011098 +v 0.086718 -0.074624 0.011503 +v 0.085276 -0.070789 0.011473 +v 0.074384 -0.066025 0.011445 +v 0.070380 -0.085989 0.010963 +v 0.065811 -0.083233 0.011012 +v 0.063909 -0.074630 0.010999 +v 0.065376 -0.078694 0.010990 +v 0.065329 -0.074005 0.010964 +v 0.067698 -0.067246 0.010996 +v 0.067170 -0.069849 0.010982 +v 0.083604 -0.066095 0.010994 +v 0.082626 -0.067183 0.011026 +v 0.085914 -0.070660 0.011029 +v 0.086950 -0.079966 0.011041 +v 0.087309 -0.074591 0.011037 +v 0.078759 -0.065339 0.010975 +v 0.074613 -0.065194 0.010973 +v 0.070497 -0.066690 0.010983 +v 0.079813 -0.086938 0.011048 +v 0.075401 -0.062911 0.011323 +v 0.079916 -0.064123 0.011052 +v 0.071036 -0.064730 0.011068 +v 0.064126 -0.070582 0.011369 +v 0.063306 -0.079851 0.011347 +v 0.088177 -0.069028 0.011673 +v 0.088670 -0.068453 0.012841 +v 0.084472 -0.065075 0.011717 +v 0.084874 -0.064542 0.012788 +v 0.080082 -0.062973 0.011717 +v 0.080447 -0.062354 0.012876 +v 0.075250 -0.061822 0.012830 +v 0.070530 -0.063753 0.011717 +v 0.070311 -0.063107 0.012826 +v 0.066539 -0.066539 0.011717 +v 0.066046 -0.066033 0.012875 +v 0.063091 -0.070319 0.012865 +v 0.062513 -0.075237 0.011717 +v 0.061827 -0.075259 0.012830 +v 0.062383 -0.080469 0.012853 +v 0.065075 -0.084472 0.011717 +v 0.064558 -0.084895 0.012791 +v 0.068972 -0.088140 0.011668 +v 0.068428 -0.088659 0.012868 +v 0.087369 -0.069646 0.011082 +v 0.069575 -0.087346 0.011079 +v -0.018749 0.016537 0.147500 +v -0.022327 0.011530 0.147503 +v 0.015986 -0.019377 0.147500 +v -0.015433 0.019668 0.147500 +v -0.009122 0.023363 0.147495 +v -0.024494 0.005005 0.147500 +v 0.008347 0.023663 0.147497 +v 0.021854 -0.012377 0.147497 +v 0.015820 0.019476 0.147498 +v -0.000349 0.025090 0.147495 +v -0.025014 0.000370 0.147500 +v -0.022465 -0.011285 0.147499 +v -0.017094 -0.018418 0.147500 +v -0.024600 -0.004455 0.147500 +v -0.009557 -0.023239 0.147498 +v -0.000871 -0.025102 0.147497 +v 0.007970 -0.023816 0.147497 +v 0.024648 -0.004517 0.147495 +v 0.024810 0.003885 0.147495 +v 0.021659 0.012711 0.147496 +v 0.004680 -0.121368 0.004923 +v -0.066149 -0.101851 0.004964 +v -0.053071 -0.109232 0.004999 +v -0.039306 -0.114903 0.005000 +v -0.025016 -0.118848 0.004954 +v -0.010053 -0.120998 0.005129 +v -0.078160 -0.092962 0.004979 +v -0.084889 -0.086835 0.005010 +v 0.019693 -0.119819 0.005088 +v 0.034153 -0.116553 0.004959 +v 0.048292 -0.111425 0.005031 +v 0.061518 -0.104708 0.004988 +v 0.073869 -0.096357 0.005156 +v 0.085002 -0.086753 0.004920 +v 0.095213 -0.075396 0.005011 +v 0.102794 0.064690 0.005016 +v 0.115523 0.037455 0.005002 +v 0.119226 0.023121 0.005009 +v 0.121156 0.008287 0.005036 +v 0.121249 -0.006718 0.005026 +v 0.115984 -0.035984 0.005048 +v 0.110666 -0.050076 0.004884 +v 0.103798 -0.062992 0.005018 +v 0.094213 0.076658 0.004955 +v 0.084608 0.087162 0.004741 +v 0.072438 0.097464 0.005089 +v 0.059950 0.105593 0.005076 +v 0.046916 0.112022 0.004962 +v 0.032784 0.116911 0.005071 +v 0.017939 0.120109 0.005061 +v 0.003703 0.121389 0.004881 +v -0.010697 0.120978 0.004796 +v -0.026786 0.118438 0.005086 +v -0.041022 0.114296 0.005033 +v -0.054468 0.108546 0.004958 +v -0.078395 0.092779 0.005021 +v -0.084828 0.086958 0.004831 +v -0.076085 -0.090637 0.011146 +v -0.073422 -0.091264 0.013458 +v -0.073661 -0.091113 0.012759 +v -0.074695 -0.091175 0.011941 +v -0.070661 -0.090167 0.021439 +v -0.067700 -0.088614 0.030921 +v -0.088620 -0.067381 0.039000 +v -0.085893 -0.064255 0.053824 +v -0.083217 -0.062334 0.067277 +v -0.076633 -0.060335 0.091835 +v -0.080462 -0.061067 0.078897 +v -0.068682 -0.061923 0.109760 +v -0.071703 -0.060827 0.104343 +v -0.074148 -0.060346 0.098925 +v -0.066058 -0.063642 0.111462 +v -0.062033 -0.068654 0.104969 +v -0.063839 -0.065844 0.110012 +v -0.060484 -0.074667 0.088242 +v -0.060830 -0.071867 0.097013 +v -0.060583 -0.077692 0.078475 +v -0.065539 -0.087084 0.040563 +v -0.063040 -0.083938 0.052611 +v -0.061531 -0.081118 0.064559 +v -0.084770 -0.084439 0.010518 +v -0.076798 -0.091820 0.010456 +v -0.091833 -0.077066 0.010415 +v -0.091743 -0.074248 0.013176 +v -0.092303 -0.074368 0.013474 +v -0.092193 -0.075174 0.012088 +v -0.093016 -0.074152 0.013977 +v -0.092974 -0.075072 0.012023 +v -0.091434 -0.071228 0.024666 +v -0.080128 -0.060436 0.082840 +v -0.084791 -0.062324 0.065450 +v -0.087051 -0.064404 0.053802 +v -0.090019 -0.067238 0.039062 +v -0.083600 -0.047929 0.139951 +v -0.082212 -0.047853 0.142057 +v -0.089517 -0.046126 0.141676 +v -0.066323 -0.058168 0.138953 +v -0.056721 -0.065958 0.139319 +v -0.061961 -0.060829 0.141423 +v -0.073933 -0.051827 0.141790 +v -0.073040 -0.053195 0.139366 +v -0.078227 -0.050151 0.139727 +v -0.099923 -0.044939 0.141482 +v -0.109704 -0.044343 0.141979 +v -0.111336 -0.044820 0.139612 +v -0.130999 -0.044474 0.141301 +v -0.131000 -0.043059 0.143973 +v -0.103262 -0.041406 0.145985 +v -0.104994 -0.039143 0.146994 +v -0.085661 -0.041341 0.147109 +v -0.083621 -0.043986 0.146051 +v -0.076257 -0.044381 0.146842 +v -0.073050 -0.048673 0.145531 +v -0.066451 -0.055779 0.143499 +v -0.102367 -0.043333 0.144226 +v -0.088814 -0.044779 0.144453 +v -0.081574 -0.046708 0.144280 +v -0.075108 -0.049728 0.143998 +v -0.069616 -0.052587 0.144337 +v -0.081815 -0.032566 0.149345 +v -0.084995 -0.022829 0.150823 +v -0.094531 -0.026655 0.149997 +v -0.097294 0.031553 0.149039 +v -0.084435 0.027809 0.150050 +v -0.103331 0.039266 0.147019 +v -0.089440 0.040509 0.147158 +v -0.080872 0.036697 0.148469 +v -0.076628 0.044005 0.146899 +v -0.087065 0.013285 0.151775 +v -0.084751 0.023521 0.150754 +v -0.088163 0.000199 0.152235 +v -0.088483 0.008197 0.151996 +v -0.087415 -0.014957 0.151596 +v -0.080715 -0.036682 0.148438 +v -0.087499 -0.010385 0.151951 +v -0.081127 0.033818 0.149127 +v -0.060748 0.071920 0.097351 +v -0.060409 0.075004 0.087952 +v -0.061968 0.068683 0.105251 +v -0.064011 0.065653 0.110271 +v -0.065885 0.063799 0.111356 +v -0.068860 0.061865 0.109376 +v -0.073995 0.060407 0.099094 +v -0.071329 0.060893 0.105473 +v -0.080028 0.060963 0.080103 +v -0.076654 0.060319 0.091906 +v -0.082845 0.062158 0.068463 +v -0.085449 0.063910 0.055705 +v -0.088074 0.066773 0.040364 +v -0.067759 0.088669 0.031016 +v -0.070533 0.090109 0.021747 +v -0.062766 0.083605 0.054463 +v -0.064846 0.086236 0.042346 +v -0.060617 0.077791 0.077923 +v -0.061168 0.080267 0.069212 +v -0.073128 0.090989 0.013097 +v -0.075804 0.090629 0.011203 +v -0.074485 0.091231 0.012067 +v -0.084321 0.084853 0.010528 +v -0.092140 0.076808 0.010331 +v -0.077155 0.091375 0.010533 +v -0.092272 0.074371 0.013455 +v -0.091990 0.074974 0.012354 +v -0.092993 0.075189 0.011800 +v -0.093126 0.074267 0.013508 +v -0.091838 0.076553 0.010954 +v -0.091526 0.070717 0.026093 +v -0.090689 0.070640 0.026255 +v -0.081940 0.061040 0.076360 +v -0.085503 0.062775 0.062408 +v -0.087080 0.064533 0.053329 +v -0.089112 0.067520 0.038731 +v -0.089931 0.067169 0.039459 +v -0.071792 0.049716 0.145364 +v -0.082680 0.044307 0.145987 +v -0.103141 0.041329 0.146021 +v -0.131000 0.043059 0.143973 +v -0.110255 0.044830 0.139633 +v -0.101092 0.044623 0.142081 +v -0.097926 0.045330 0.139879 +v -0.089045 0.045989 0.142310 +v -0.090323 0.046256 0.140045 +v -0.084524 0.047300 0.141788 +v -0.073595 0.052073 0.141702 +v -0.074024 0.052559 0.139442 +v -0.079372 0.049310 0.141284 +v -0.067729 0.057016 0.139243 +v -0.061407 0.061407 0.141261 +v -0.056629 0.066072 0.139221 +v -0.068619 0.053713 0.143779 +v -0.065913 0.056520 0.143164 +v -0.075077 0.049744 0.143997 +v -0.081243 0.046834 0.144262 +v -0.088783 0.044785 0.144453 +v -0.103158 0.042979 0.144592 +v -0.131000 0.044446 0.141422 +v -0.130999 0.047654 0.101213 +v -0.131000 -0.052356 0.064247 +v -0.130999 -0.047620 0.101503 +v -0.131000 0.057921 0.031208 +v -0.131001 0.052752 0.061710 +v -0.126213 0.063592 0.005425 +v 0.070627 0.090135 0.021422 +v 0.073401 0.091312 0.013610 +v 0.067406 0.088348 0.031253 +v 0.088517 0.067410 0.032818 +v 0.090161 0.070632 0.021529 +v 0.083589 0.062694 0.056099 +v 0.085995 0.064630 0.043649 +v 0.077605 0.060590 0.078542 +v 0.080753 0.061336 0.067327 +v 0.070513 0.061302 0.100431 +v 0.074547 0.060489 0.089062 +v 0.067858 0.062512 0.105991 +v 0.065614 0.064050 0.108948 +v 0.063334 0.066551 0.108014 +v 0.062148 0.068517 0.104800 +v 0.060444 0.074759 0.088682 +v 0.061163 0.070900 0.099522 +v 0.060650 0.077845 0.077134 +v 0.061477 0.080961 0.065624 +v 0.064818 0.086331 0.043821 +v 0.062922 0.083824 0.053850 +v 0.091027 0.073459 0.012663 +v 0.090949 0.076690 0.010987 +v 0.090775 0.075355 0.011389 +v 0.083189 0.085074 0.010915 +v 0.085412 0.082359 0.011033 +v 0.077224 0.090401 0.010955 +v 0.074068 0.091112 0.012243 +v 0.075775 0.090881 0.011285 +v 0.090137 -0.070628 0.021429 +v 0.091312 -0.073401 0.013610 +v 0.088350 -0.067409 0.031245 +v 0.070678 -0.090209 0.021488 +v 0.067218 -0.088228 0.031989 +v 0.062779 -0.083815 0.055537 +v 0.064701 -0.086058 0.043193 +v 0.060528 -0.076717 0.080509 +v 0.061332 -0.080697 0.067408 +v 0.061361 -0.070341 0.100790 +v 0.060459 -0.074478 0.089462 +v 0.062826 -0.067284 0.107091 +v 0.068563 -0.062123 0.104747 +v 0.066647 -0.063258 0.107930 +v 0.064825 -0.064818 0.109010 +v 0.070875 -0.061162 0.099604 +v 0.077977 -0.060636 0.077311 +v 0.080726 -0.061392 0.066411 +v 0.074738 -0.060460 0.088604 +v 0.086339 -0.064821 0.043827 +v 0.083822 -0.062929 0.053765 +v 0.072925 -0.090929 0.013450 +v 0.076685 -0.090950 0.010989 +v 0.075355 -0.090775 0.011389 +v 0.073683 -0.090992 0.012415 +v 0.085077 -0.083188 0.010918 +v 0.090106 -0.076886 0.011008 +v 0.091112 -0.074068 0.012243 +v 0.090881 -0.075775 0.011285 +v 0.025000 -0.000000 0.157500 +v 0.023312 0.009031 0.157500 +v 0.018475 0.016842 0.157500 +v 0.011143 0.022379 0.157500 +v 0.002307 0.024893 0.157500 +v -0.006842 0.024046 0.157500 +v -0.015066 0.019950 0.157500 +v -0.021255 0.013161 0.157500 +v -0.024574 0.004594 0.157500 +v -0.024574 -0.004594 0.157500 +v -0.025000 0.000000 0.157500 +v -0.021255 -0.013161 0.157500 +v -0.015066 -0.019950 0.157500 +v -0.006842 -0.024046 0.157500 +v 0.002307 -0.024893 0.157500 +v 0.011143 -0.022379 0.157500 +v 0.018475 -0.016842 0.157500 +v 0.023312 -0.009031 0.157500 +v 0.119506 -0.021580 0.005014 +v -0.067992 0.100503 0.005418 +v -0.074454 -0.093033 0.012067 +v -0.075730 -0.092049 0.011313 +v -0.074807 -0.091820 0.012147 +v -0.073934 -0.092094 0.013226 +v -0.073558 -0.092851 0.013876 +v -0.070465 -0.091713 0.022644 +v -0.068657 -0.089848 0.028672 +v -0.060032 -0.077160 0.082275 +v -0.066383 -0.089464 0.036026 +v -0.063379 -0.085876 0.050766 +v -0.061278 -0.082239 0.064819 +v -0.125302 -0.056712 0.038626 +v -0.116151 -0.057309 0.038578 +v -0.115008 -0.054266 0.055468 +v -0.107142 -0.058862 0.038530 +v -0.086468 -0.059150 0.072140 +v -0.058437 -0.069033 0.115768 +v -0.072674 -0.055919 0.123431 +v -0.082706 -0.053066 0.106261 +v -0.102784 -0.060165 0.038507 +v -0.098605 -0.061900 0.038485 +v -0.093668 -0.057583 0.063750 +v -0.113921 -0.051574 0.072431 +v -0.112024 -0.047325 0.106578 +v -0.101885 -0.047984 0.106468 +v -0.100987 -0.046293 0.123668 +v -0.085988 -0.048957 0.123540 +v -0.081296 -0.050771 0.123501 +v -0.084455 -0.055886 0.089140 +v -0.088798 -0.053762 0.089189 +v -0.087239 -0.051105 0.106309 +v -0.094670 -0.064091 0.038465 +v -0.094977 -0.055036 0.072230 +v -0.093374 -0.052134 0.089242 +v -0.091988 -0.049661 0.106360 +v -0.090879 -0.047677 0.123582 +v -0.105666 -0.055602 0.055391 +v -0.104270 -0.052678 0.072329 +v -0.102995 -0.050126 0.089354 +v -0.064879 -0.057277 0.143823 +v -0.074692 -0.044825 0.147238 +v -0.070441 -0.049813 0.146849 +v -0.074327 -0.043635 0.148720 +v -0.079940 0.033691 0.149857 +v -0.074179 0.043916 0.148617 +v -0.074607 0.045022 0.147177 +v -0.085505 0.011641 0.153000 +v -0.085412 0.007248 0.154932 +v -0.083054 0.021913 0.152946 +v -0.085558 -0.011328 0.153012 +v -0.084691 -0.011535 0.154506 +v -0.086152 -0.000202 0.153523 +v -0.085675 -0.002497 0.155050 +v -0.084085 -0.017002 0.154110 +v -0.083090 -0.023178 0.151971 +v -0.080194 -0.030729 0.152271 +v -0.079389 -0.033988 0.150218 +v -0.083634 0.022823 0.151555 +v -0.079087 0.033716 0.151219 +v -0.065902 0.056019 0.144497 +v -0.070415 0.049889 0.146777 +v -0.065895 0.089123 0.037735 +v -0.070831 0.091766 0.021790 +v -0.067984 0.090029 0.031013 +v -0.060245 0.079298 0.075584 +v -0.061638 0.082996 0.062012 +v -0.073485 0.092101 0.014189 +v -0.065565 0.087580 0.040619 +v -0.063387 0.085949 0.050568 +v -0.073420 0.092932 0.014118 +v -0.073692 0.091510 0.013241 +v -0.075316 0.091660 0.011678 +v -0.074261 0.092553 0.012781 +v -0.074806 0.092934 0.011633 +v -0.125302 0.056712 0.038625 +v -0.116151 0.057310 0.038576 +v -0.107142 0.058862 0.038529 +v -0.098605 0.061900 0.038484 +v -0.102784 0.060166 0.038506 +v -0.086468 0.059151 0.072137 +v -0.084455 0.055886 0.089136 +v -0.074387 0.058384 0.106173 +v -0.057471 0.068491 0.121750 +v -0.072674 0.055919 0.123426 +v -0.081297 0.050771 0.123496 +v -0.090879 0.047678 0.123577 +v -0.100987 0.046293 0.123663 +v -0.112024 0.047325 0.106574 +v -0.113921 0.051575 0.072428 +v -0.115008 0.054267 0.055466 +v -0.090598 0.056857 0.072181 +v -0.093374 0.052135 0.089238 +v -0.088798 0.053763 0.089185 +v -0.091988 0.049661 0.106356 +v -0.087239 0.051106 0.106305 +v -0.085989 0.048957 0.123535 +v -0.082707 0.053067 0.106256 +v -0.094670 0.064092 0.038464 +v -0.095858 0.056674 0.063771 +v -0.105666 0.055603 0.055389 +v -0.102440 0.049055 0.097907 +v -0.104270 0.052679 0.072326 +v 0.074112 0.091795 0.012893 +v 0.073604 0.092854 0.013773 +v 0.070530 0.091721 0.022430 +v 0.070896 0.090915 0.021810 +v 0.091927 0.070938 0.021027 +v 0.090918 0.070902 0.021790 +v 0.089985 0.067265 0.032959 +v 0.086743 0.064814 0.044167 +v 0.083405 0.061484 0.061363 +v 0.087605 0.064301 0.044952 +v 0.077785 0.060102 0.080627 +v 0.064657 0.087814 0.043488 +v 0.067360 0.089951 0.032715 +v 0.067415 0.088729 0.033029 +v 0.062552 0.084661 0.055634 +v 0.072845 0.060534 0.095169 +v 0.060298 0.078838 0.076920 +v 0.061179 0.081833 0.066322 +v 0.092935 0.073374 0.014216 +v 0.092551 0.074075 0.013046 +v 0.091505 0.073697 0.013214 +v 0.091704 0.074821 0.012079 +v 0.092864 0.074839 0.011726 +v 0.091875 0.076688 0.010489 +v 0.083529 0.085774 0.010252 +v 0.076717 0.091861 0.010467 +v 0.075720 0.091792 0.011294 +v 0.074683 0.092924 0.011844 +v 0.091795 -0.074112 0.012893 +v 0.092941 -0.073995 0.012904 +v 0.091673 -0.070538 0.022522 +v 0.093407 -0.073051 0.014130 +v 0.090915 -0.070896 0.021810 +v 0.064788 -0.086730 0.044279 +v 0.070786 -0.091927 0.021515 +v 0.073511 -0.092060 0.014094 +v 0.067253 -0.089972 0.033051 +v 0.067401 -0.088704 0.033032 +v 0.060946 -0.081722 0.067154 +v 0.063051 -0.086191 0.050674 +v 0.087662 -0.064552 0.043976 +v 0.090023 -0.067318 0.032806 +v 0.088733 -0.067415 0.033033 +v 0.081808 -0.061179 0.066338 +v 0.077801 -0.060060 0.080612 +v 0.084671 -0.062551 0.055611 +v 0.060377 -0.073084 0.094475 +v 0.060254 -0.078270 0.078644 +v 0.073470 -0.092854 0.014079 +v 0.073698 -0.091505 0.013214 +v 0.074821 -0.091704 0.012079 +v 0.074337 -0.092603 0.012672 +v 0.074896 -0.092808 0.011716 +v 0.076813 -0.091792 0.010449 +v 0.084305 -0.085113 0.010191 +v 0.091281 -0.076523 0.010946 +v 0.092171 -0.076273 0.010611 +v 0.091962 -0.074996 0.011950 +v 0.081833 -0.025111 0.157500 +v 0.084298 -0.014864 0.157500 +v 0.085486 -0.004392 0.157500 +v -0.019170 0.083425 0.157500 +v -0.008773 0.085148 0.157500 +v 0.001758 0.085581 0.157500 +v 0.012261 0.084716 0.157500 +v 0.060216 -0.060837 0.157500 +v 0.067236 -0.052977 0.157500 +v 0.073236 -0.044312 0.157500 +v 0.078127 -0.034977 0.157500 +v 0.050881 0.068835 0.157500 +v 0.042036 0.074566 0.157500 +v 0.032554 0.079167 0.157500 +v 0.022579 0.082567 0.157500 +v 0.058954 0.062061 0.157500 +v 0.066134 0.054346 0.157500 +v 0.072311 0.045807 0.157500 +v 0.077392 0.036573 0.157500 +v 0.085378 0.006146 0.157500 +v 0.083976 0.016592 0.157500 +v 0.081300 0.026786 0.157500 +v -0.037366 -0.077013 0.157500 +v -0.046547 -0.071837 0.157500 +v -0.048012 0.070866 0.157500 +v -0.038939 0.076229 0.157500 +v -0.029277 0.080437 0.157500 +v 0.043558 -0.073688 0.157500 +v 0.052283 -0.067776 0.157500 +v 0.003514 -0.085527 0.157500 +v 0.013998 -0.084447 0.157500 +v 0.024269 -0.082086 0.157500 +v 0.034173 -0.078482 0.157500 +v -0.074994 -0.041268 0.157500 +v -0.069354 -0.050171 0.157500 +v -0.062663 -0.058314 0.157500 +v -0.055022 -0.065573 0.157500 +v -0.027619 -0.081021 0.157500 +v -0.017453 -0.083801 0.157500 +v -0.007023 -0.085310 0.157500 +v -0.079497 -0.031740 0.157500 +v -0.082795 -0.021730 0.157500 +v -0.070370 0.048737 0.157500 +v -0.063847 0.057015 0.157500 +v -0.056357 0.064429 0.157500 +v -0.075825 0.039720 0.157500 +v -0.080132 0.030101 0.157500 +v -0.084838 -0.011391 0.157500 +v -0.085604 -0.000566 0.157501 +v -0.083224 0.020025 0.157500 +v -0.085054 0.009646 0.157500 +v -0.057321 -0.088465 0.055392 +v -0.053634 -0.082774 0.079241 +v -0.050806 -0.078411 0.100637 +v -0.048725 -0.075199 0.120395 +v -0.047327 -0.073041 0.138948 +v -0.050259 0.074182 0.120395 +v -0.048816 0.072053 0.138948 +v -0.052406 0.077351 0.100637 +v -0.059125 0.087270 0.055392 +v -0.055322 0.081656 0.079241 +v 0.051766 0.091826 0.055392 +v 0.055537 0.075135 0.100637 +v 0.053262 0.072057 0.120395 +v 0.069229 0.056889 0.120395 +v 0.061713 0.064965 0.120395 +v 0.078929 0.049999 0.100637 +v 0.083321 0.052781 0.079241 +v 0.089049 0.056410 0.055392 +v 0.090189 -0.054570 0.055392 +v 0.084387 -0.051059 0.079241 +v 0.073389 -0.057825 0.100637 +v 0.070382 -0.055456 0.120395 +v 0.054730 -0.070948 0.120395 +v 0.063034 -0.063684 0.120395 +v 0.047544 -0.080431 0.100637 +v 0.050190 -0.084906 0.079241 +v 0.053641 -0.090744 0.055392 +v 0.002164 0.105391 0.055392 +v -0.010803 0.104858 0.055392 +v -0.012021 0.116675 0.017914 +v 0.015099 0.104326 0.055392 +v -0.028082 -0.082378 0.138948 +v -0.017745 -0.085205 0.138948 +v -0.007140 -0.086739 0.138948 +v 0.003573 -0.086959 0.138948 +v 0.024676 -0.083462 0.138948 +v 0.044288 -0.074922 0.138948 +v 0.053159 -0.068912 0.138948 +v 0.061225 -0.061857 0.138948 +v 0.079436 -0.035563 0.138948 +v 0.085711 -0.015113 0.138948 +v 0.086808 0.006249 0.138948 +v 0.082662 0.027234 0.138948 +v 0.078689 0.037186 0.138948 +v 0.073523 0.046574 0.138948 +v 0.067242 0.055256 0.138948 +v 0.059942 0.063101 0.138948 +v 0.033100 0.080493 0.138948 +v 0.022957 0.083951 0.138948 +v 0.012466 0.086135 0.138948 +v 0.001787 0.087015 0.138948 +v -0.008920 0.086575 0.138948 +v -0.029767 0.081784 0.138948 +v -0.039592 0.077506 0.138948 +v 0.068362 -0.053864 0.138948 +v 0.051733 0.069989 0.138948 +v 0.045597 -0.077136 0.120395 +v 0.079939 -0.048368 0.100637 +v 0.076664 -0.046386 0.120395 +v 0.074463 -0.045055 0.138948 +v 0.075695 0.047950 0.120395 +v 0.048436 0.085919 0.079241 +v 0.045883 0.081390 0.100637 +v 0.044003 0.078056 0.120395 +v 0.042740 0.075815 0.138948 +v 0.012835 0.088681 0.120395 +v 0.001840 0.089586 0.120395 +v 0.013383 0.092469 0.100637 +v 0.001918 0.093413 0.100637 +v 0.014128 0.097614 0.079241 +v 0.002025 0.098611 0.079241 +v -0.009183 0.089133 0.120395 +v -0.009576 0.092940 0.100637 +v -0.010108 0.098112 0.079241 +v -0.037992 -0.078303 0.138948 +v -0.039115 -0.080616 0.120395 +v -0.040786 -0.084060 0.100637 +v -0.043055 -0.088738 0.079241 +v -0.046015 -0.094839 0.055392 +v -0.028911 -0.084812 0.120395 +v -0.018270 -0.087722 0.120395 +v -0.030146 -0.088435 0.100637 +v -0.019050 -0.091470 0.100637 +v -0.031824 -0.093356 0.079241 +v -0.020110 -0.096559 0.079241 +v -0.034012 -0.099775 0.055392 +v -0.021493 -0.103198 0.055392 +v -0.009623 -0.116897 0.017914 +v -0.008648 -0.105057 0.055392 +v -0.007351 -0.089302 0.120395 +v 0.003679 -0.089529 0.120395 +v -0.007665 -0.093117 0.100637 +v 0.003836 -0.093354 0.100637 +v -0.008092 -0.098299 0.079241 +v 0.004049 -0.098548 0.079241 +v 0.004328 -0.105324 0.055392 +v 0.004815 -0.117193 0.017914 +v 0.014232 -0.085861 0.138948 +v 0.014653 -0.088398 0.120395 +v 0.015279 -0.092175 0.100637 +v 0.016129 -0.097304 0.079241 +v 0.017238 -0.103994 0.055392 +v 0.034745 -0.079797 0.138948 +v 0.025405 -0.085928 0.120395 +v 0.035772 -0.082154 0.120395 +v 0.026490 -0.089598 0.100637 +v 0.037300 -0.085664 0.100637 +v 0.027964 -0.094584 0.079241 +v 0.039376 -0.090431 0.079241 +v 0.029887 -0.101087 0.055392 +v 0.042083 -0.096648 0.055392 +v 0.083204 -0.025531 0.138948 +v 0.081783 -0.036613 0.120395 +v 0.085662 -0.026286 0.120395 +v 0.085276 -0.038178 0.100637 +v 0.089322 -0.027409 0.100637 +v 0.090022 -0.040302 0.079241 +v 0.094292 -0.028934 0.079241 +v 0.096211 -0.043073 0.055392 +v 0.100775 -0.030923 0.055392 +v 0.086918 -0.004466 0.138948 +v 0.088243 -0.015560 0.120395 +v 0.089486 -0.004598 0.120395 +v 0.092013 -0.016224 0.100637 +v 0.093309 -0.004794 0.100637 +v 0.097133 -0.017127 0.079241 +v 0.098501 -0.005061 0.079241 +v 0.103811 -0.018305 0.055392 +v 0.105274 -0.005409 0.055392 +v 0.085382 0.016870 0.138948 +v 0.089373 0.006434 0.120395 +v 0.087905 0.017368 0.120395 +v 0.093191 0.006709 0.100637 +v 0.091660 0.018110 0.100637 +v 0.098377 0.007082 0.079241 +v 0.096761 0.019118 0.079241 +v 0.105141 0.007569 0.055392 +v 0.103414 0.020432 0.055392 +v 0.085105 0.028039 0.120395 +v 0.081014 0.038285 0.120395 +v 0.088740 0.029237 0.100637 +v 0.084475 0.039920 0.100637 +v 0.093678 0.030864 0.079241 +v 0.089175 0.042142 0.079241 +v 0.100119 0.032986 0.055392 +v 0.095306 0.045039 0.055392 +v 0.034078 0.082872 0.120395 +v 0.023635 0.086431 0.120395 +v 0.035533 0.086412 0.100637 +v 0.024645 0.090123 0.100637 +v 0.037511 0.091220 0.079241 +v 0.026016 0.095138 0.079241 +v 0.040090 0.097492 0.055392 +v 0.027805 0.101680 0.055392 +v -0.019491 0.084822 0.138948 +v -0.020067 0.087329 0.120395 +v -0.020924 0.091059 0.100637 +v -0.022089 0.096126 0.079241 +v -0.023607 0.102735 0.055392 +v -0.030647 0.084201 0.120395 +v -0.040762 0.079796 0.120395 +v -0.031956 0.087798 0.100637 +v -0.042503 0.083205 0.100637 +v -0.033734 0.092683 0.079241 +v -0.044868 0.087835 0.079241 +v -0.036053 0.099056 0.055392 +v -0.047953 0.093874 0.055392 +vn 0.193200 0.591600 0.782700 +vn -0.249500 -0.589300 0.768400 +vn 0.419700 0.449000 0.788800 +vn 0.644300 -0.229700 0.729400 +vn 0.617800 -0.015700 0.786200 +vn -0.638100 -0.049800 0.768300 +vn -0.507200 -0.352400 0.786500 +vn 0.559300 0.254900 0.788700 +vn -0.589200 0.245200 0.769900 +vn 0.508900 -0.451100 0.733100 +vn 0.313700 0.530200 0.787700 +vn -0.491000 -0.385000 0.781400 +vn -0.285300 -0.575300 0.766500 +vn -0.048500 -0.621600 0.781800 +vn -0.030200 0.629100 0.776700 +vn 0.025300 -0.651200 0.758400 +vn -0.047300 0.633600 0.772200 +vn -0.354400 0.504500 0.787300 +vn 0.191100 -0.573300 0.796700 +vn 0.284400 -0.574400 0.767600 +vn -0.351900 0.537200 0.766500 +vn -0.507600 0.364800 0.780500 +vn 0.523800 -0.328000 0.786100 +vn 0.568700 0.294700 0.768000 +vn -0.599700 -0.195300 0.776000 +vn 0.636900 0.000400 0.771000 +vn -0.573000 0.132300 0.808800 +vn 0.196000 0.591100 0.782400 +vn 0.410900 0.445500 0.795400 +vn 0.656100 -0.230300 0.718600 +vn 0.626100 -0.009700 0.779700 +vn -0.638000 -0.049900 0.768400 +vn -0.507200 -0.352400 0.786400 +vn 0.563500 0.243900 0.789200 +vn -0.589000 0.245100 0.770000 +vn 0.520900 -0.456300 0.721400 +vn 0.313800 0.530000 0.787800 +vn -0.509200 -0.358800 0.782200 +vn -0.325100 -0.543700 0.773700 +vn -0.037000 -0.650300 0.758700 +vn -0.030600 0.629600 0.776300 +vn 0.025300 -0.651300 0.758400 +vn -0.044500 0.609300 0.791700 +vn -0.354100 0.504500 0.787400 +vn 0.190300 -0.574600 0.796000 +vn 0.284800 -0.574600 0.767200 +vn -0.295400 0.532800 0.793000 +vn -0.479500 0.357900 0.801200 +vn 0.523800 -0.328600 0.785900 +vn 0.568800 0.294700 0.767900 +vn -0.592700 -0.111500 0.797600 +vn 0.636900 0.000600 0.771000 +vn -0.569400 0.159700 0.806400 +vn -0.870800 -0.060600 0.487900 +vn 0.125800 0.801300 0.584800 +vn 0.273800 0.438900 0.855800 +vn 0.022000 -0.891500 0.452400 +vn -0.858800 0.017300 0.512100 +vn 0.114500 0.800900 0.587700 +vn 0.266200 0.434200 0.860600 +vn 0.039400 -0.889500 0.455300 +vn -0.725200 0.675000 0.135400 +vn -0.620600 -0.749800 -0.229400 +vn -0.727500 -0.672600 0.135400 +vn -0.636300 0.274600 -0.720900 +vn -0.633100 -0.275800 -0.723300 +vn -0.610800 0.750500 -0.252100 +vn -0.655700 -0.396900 0.642300 +vn -0.692400 -0.101600 0.714300 +vn -0.728900 0.682100 0.058700 +vn -0.651000 -0.702000 0.288600 +vn -0.724100 -0.687000 0.060900 +vn -0.744000 0.661500 0.093800 +vn -0.743900 -0.661200 0.096100 +vn -0.653100 0.480000 0.585700 +vn -0.658700 0.699800 0.276200 +vn -0.679300 0.241300 0.693000 +vn -0.692400 0.100500 0.714400 +vn -0.691000 0.000000 0.722800 +vn 0.044100 -0.607200 0.793300 +vn -0.025500 0.651300 0.758400 +vn -0.197300 -0.589700 0.783100 +vn 0.249500 0.589300 0.768400 +vn -0.410700 -0.444400 0.796100 +vn -0.285000 0.574600 0.767200 +vn 0.294300 -0.531400 0.794300 +vn 0.480400 -0.356200 0.801400 +vn -0.524100 0.328400 0.785800 +vn 0.507800 0.352000 0.786200 +vn -0.562800 -0.243400 0.789900 +vn -0.620000 -0.004900 0.784600 +vn 0.639600 0.049900 0.767100 +vn -0.579500 0.284600 0.763700 +vn 0.590700 -0.244700 0.768900 +vn -0.488800 0.460500 0.741000 +vn -0.314200 -0.530600 0.787200 +vn 0.480300 0.348400 0.804900 +vn 0.312600 0.527500 0.789900 +vn 0.036000 0.648900 0.759900 +vn 0.030300 -0.629700 0.776200 +vn 0.354000 -0.504500 0.787400 +vn -0.190000 0.574200 0.796400 +vn -0.569500 -0.294900 0.767200 +vn 0.575500 0.112600 0.810000 +vn -0.637500 -0.000800 0.770400 +vn 0.591800 -0.136300 0.794400 +vn 0.206300 0.591000 0.779800 +vn -0.249600 -0.589300 0.768400 +vn 0.427100 0.454400 0.781700 +vn 0.543700 -0.256200 0.799200 +vn 0.639200 -0.008600 0.769000 +vn -0.639700 -0.049700 0.767000 +vn -0.507900 -0.352000 0.786200 +vn 0.569500 0.245500 0.784500 +vn -0.590900 0.245200 0.768500 +vn 0.396300 -0.436300 0.807800 +vn 0.313700 0.531300 0.786900 +vn -0.488500 -0.351700 0.798500 +vn -0.287900 -0.552200 0.782400 +vn -0.045700 -0.611000 0.790300 +vn -0.030000 0.629700 0.776200 +vn 0.025400 -0.651300 0.758400 +vn -0.046800 0.617900 0.784800 +vn -0.355000 0.504600 0.787000 +vn 0.165800 -0.582800 0.795500 +vn 0.284800 -0.574800 0.767100 +vn -0.297400 0.543400 0.785000 +vn -0.491900 0.366800 0.789600 +vn 0.523800 -0.328500 0.785900 +vn 0.568800 0.294900 0.767800 +vn -0.589400 -0.137600 0.796000 +vn 0.636900 0.000500 0.770900 +vn -0.577000 0.168000 0.799200 +vn 0.639100 -0.001400 -0.769100 +vn 0.554600 -0.318200 -0.768800 +vn 0.320400 -0.554800 -0.767800 +vn 0.000700 -0.641500 -0.767100 +vn -0.321100 -0.555500 -0.767000 +vn -0.555000 -0.316800 -0.769200 +vn -0.639300 -0.003300 -0.768900 +vn -0.555700 0.321100 -0.766900 +vn -0.316500 0.555100 -0.769200 +vn -0.001700 0.637500 -0.770400 +vn 0.319300 0.554100 -0.768800 +vn 0.554000 0.320200 -0.768500 +vn 0.639300 0.003400 -0.768900 +vn 0.555700 -0.321100 -0.766900 +vn 0.316500 -0.555100 -0.769200 +vn 0.001700 -0.637500 -0.770400 +vn -0.319400 -0.554100 -0.768700 +vn -0.554000 -0.320200 -0.768400 +vn -0.639000 0.001400 -0.769200 +vn -0.554600 0.318200 -0.768800 +vn -0.320400 0.554800 -0.767800 +vn -0.000700 0.641500 -0.767100 +vn 0.321000 0.555500 -0.767000 +vn 0.555000 0.316800 -0.769100 +vn 0.345900 0.682100 -0.644300 +vn 0.368000 0.920800 -0.128900 +vn 0.866700 0.339900 -0.365000 +vn 0.707900 0.240500 -0.664100 +vn -0.852000 -0.024200 -0.522900 +vn -0.876200 0.091300 -0.473200 +vn -0.709000 -0.217000 -0.670900 +vn -0.666300 0.335600 -0.665900 +vn -0.837700 -0.304700 -0.453200 +vn 0.706100 -0.249700 -0.662600 +vn 0.895700 -0.034000 -0.443300 +vn 0.881500 -0.339300 -0.328300 +vn 0.475400 -0.603200 -0.640300 +vn 0.653600 -0.524200 -0.545900 +vn 0.110700 -0.828400 -0.549100 +vn 0.405800 -0.815700 -0.412300 +vn -0.167000 -0.746100 -0.644600 +vn 0.118800 -0.879200 -0.461300 +vn -0.412000 -0.847000 -0.336100 +vn -0.495800 -0.565100 -0.659400 +vn -0.731700 -0.574300 -0.367100 +vn 0.562000 0.800800 0.207100 +vn 0.636500 -0.000800 -0.771200 +vn 0.787200 0.542300 0.293600 +vn 0.551000 -0.317300 -0.771800 +vn 0.276700 -0.551700 -0.786800 +vn 0.819200 0.293600 0.492600 +vn -0.170900 -0.557700 -0.812200 +vn -0.471400 0.077300 0.878500 +vn -0.529800 -0.191200 -0.826300 +vn -0.562900 0.798300 0.214000 +vn -0.819100 0.456400 0.347500 +vn -0.554400 0.276000 -0.785100 +vn -0.316400 0.553000 -0.770700 +vn -0.165600 0.969000 0.183200 +vn -0.000200 0.635300 -0.772200 +vn -0.011400 0.969800 0.243800 +vn 0.553700 0.318200 -0.769500 +vn 0.173100 0.967300 0.185400 +vn 0.316800 0.553500 -0.770200 +vn -0.752600 0.542200 -0.373600 +vn -0.230400 0.698400 -0.677600 +vn -0.555000 -0.316800 -0.769100 +vn -0.639400 -0.003400 -0.768900 +vn -0.001600 0.637600 -0.770400 +vn 0.319500 0.554200 -0.768600 +vn 0.554100 0.320300 -0.768400 +vn 0.638800 -0.001400 -0.769300 +vn 0.554500 -0.318400 -0.768800 +vn 0.320500 -0.554800 -0.767800 +vn -0.321000 -0.555500 -0.767000 +vn -0.002100 0.637200 -0.770700 +vn 0.319600 0.553800 -0.768800 +vn 0.553800 0.320300 -0.768500 +vn 0.038600 -0.616200 -0.786600 +vn -0.005300 -0.971400 0.237300 +vn 0.167800 -0.967800 0.187300 +vn 0.431300 -0.356400 -0.828800 +vn -0.178700 -0.967300 0.179500 +vn -0.318900 -0.549900 -0.771900 +vn -0.636900 0.002400 -0.770900 +vn -0.477300 -0.858500 0.187700 +vn -0.550100 -0.320800 -0.771000 +vn -0.554000 0.315500 -0.770400 +vn -0.768100 -0.571300 0.289200 +vn -0.274100 0.555300 -0.785100 +vn -0.561100 -0.278100 0.779600 +vn 0.828200 -0.407700 0.384600 +vn 0.186600 0.545400 -0.817100 +vn 0.536400 0.161200 -0.828400 +vn 0.573800 -0.792400 0.206800 +vn -0.346000 -0.682400 -0.643800 +vn -0.368700 -0.919900 -0.133600 +vn -0.867100 -0.338400 -0.365400 +vn -0.707900 -0.240500 -0.664100 +vn 0.852000 0.024200 -0.522900 +vn 0.876200 -0.091300 -0.473200 +vn 0.709000 0.217000 -0.670900 +vn 0.666300 -0.335800 -0.665700 +vn 0.837600 0.304700 -0.453300 +vn -0.706100 0.249700 -0.662500 +vn -0.895700 0.034000 -0.443300 +vn -0.881500 0.339300 -0.328400 +vn -0.475400 0.603300 -0.640300 +vn -0.653600 0.524200 -0.545900 +vn -0.110700 0.828400 -0.549100 +vn -0.405800 0.815700 -0.412300 +vn 0.167000 0.746100 -0.644600 +vn -0.118800 0.879200 -0.461300 +vn 0.412000 0.847000 -0.336100 +vn 0.495800 0.565100 -0.659400 +vn 0.731700 0.574300 -0.367100 +vn 0.757800 -0.531800 -0.377900 +vn 0.232600 -0.694400 -0.680900 +vn -0.466400 -0.725500 0.506000 +vn -0.181100 -0.736600 0.651600 +vn -0.515300 -0.532900 0.671100 +vn -0.708700 -0.468900 0.527000 +vn -0.764700 -0.199600 0.612600 +vn -0.535100 0.082900 0.840700 +vn -0.435500 0.263400 0.860700 +vn -0.318400 0.416700 0.851400 +vn -0.114300 0.500000 0.858400 +vn 0.433900 0.289100 0.853300 +vn 0.779800 0.165300 0.603800 +vn 0.347100 -0.276700 0.896100 +vn 0.410900 -0.122600 0.903400 +vn 0.040100 -0.484700 0.873700 +vn 0.265500 -0.425200 0.865200 +vn -0.310700 -0.131200 0.941400 +vn 0.057000 0.274800 0.959800 +vn 0.244400 0.047800 0.968500 +vn -0.118800 -0.282300 0.951900 +vn 0.349000 -0.282400 0.893600 +vn 0.377800 0.135600 0.915900 +vn 0.361700 0.308400 0.879800 +vn 0.000000 0.000000 1.000000 +vn 0.401900 -0.136600 0.905400 +vn -0.493700 0.755300 0.431000 +vn -0.426600 0.502400 0.752000 +vn -0.702700 0.493300 0.512800 +vn 0.502500 0.114500 0.857000 +vn 0.652300 0.454800 0.606400 +vn -0.217500 0.732000 0.645600 +vn 0.354400 -0.277300 0.893000 +vn 0.419700 -0.132200 0.897900 +vn 0.271700 -0.403600 0.873600 +vn 0.048900 -0.475400 0.878400 +vn -0.297600 -0.375700 0.877700 +vn -0.133900 -0.447800 0.884000 +vn -0.746100 0.257100 0.614200 +vn -0.811300 -0.147800 0.565600 +vn -0.426300 -0.232100 0.874300 +vn -0.392500 0.293300 0.871700 +vn -0.301500 0.058300 0.951700 +vn -0.107800 0.270400 0.956700 +vn 0.049400 0.292400 0.955000 +vn 0.221200 0.146000 0.964200 +vn -0.311300 -0.045700 0.949200 +vn -0.561500 -0.402100 -0.723200 +vn -0.794800 -0.031400 -0.606000 +vn -0.553000 0.179900 -0.813500 +vn -0.642600 0.434400 -0.631100 +vn -0.499800 -0.294500 -0.814500 +vn -0.693100 -0.659700 -0.290500 +vn -0.385300 0.259700 -0.885500 +vn -0.267600 -0.189200 -0.944800 +vn -0.491400 -0.716100 -0.495600 +vn -0.141200 0.229900 -0.962900 +vn -0.370300 0.606900 -0.703200 +vn -0.264900 0.457000 -0.849100 +vn 0.613700 -0.363600 -0.700800 +vn 0.448900 -0.267000 -0.852700 +vn 0.513400 -0.127900 -0.848500 +vn 0.694400 -0.174300 -0.698200 +vn 0.527700 0.027600 -0.848900 +vn 0.715400 0.035600 -0.697800 +vn 0.497200 0.179000 -0.848900 +vn 0.674500 0.240900 -0.697800 +vn 0.424200 0.315100 -0.848900 +vn 0.576200 0.425300 -0.697900 +vn 0.315100 0.424200 -0.848900 +vn 0.427600 0.572500 -0.699500 +vn 0.179000 0.497200 -0.848900 +vn 0.244300 0.673300 -0.697800 +vn 0.027600 0.527700 -0.848900 +vn 0.039900 0.714900 -0.698100 +vn -0.127500 0.513400 -0.848600 +vn -0.169700 0.691300 -0.702300 +vn 0.228100 -0.137200 -0.963900 +vn 0.257900 -0.062300 -0.964100 +vn 0.264700 0.016900 -0.964200 +vn 0.249100 0.093100 -0.964000 +vn 0.226500 0.178800 -0.957400 +vn 0.154000 0.211300 -0.965200 +vn 0.087900 0.249800 -0.964300 +vn 0.007600 0.267400 -0.963500 +vn -0.063500 0.246200 -0.967100 +vn 0.213500 -0.596100 -0.773900 +vn 0.420300 -0.555500 -0.717400 +vn 0.059400 -0.387200 -0.920100 +vn -0.410700 -0.277000 -0.868700 +vn -0.353800 0.078000 -0.932000 +vn 0.296000 0.254700 -0.920600 +vn 0.174300 0.382400 -0.907400 +vn -0.004600 0.423600 -0.905800 +vn 0.005700 0.843300 -0.537400 +vn -0.201700 0.377000 -0.904000 +vn 0.260500 0.058600 -0.963700 +vn -0.205200 0.172500 -0.963400 +vn 0.319600 -0.240700 -0.916500 +vn 0.159800 -0.410800 -0.897600 +vn -0.225700 -0.139300 -0.964200 +vn -0.265100 -0.417600 -0.869000 +vn -0.600700 -0.375700 -0.705600 +vn -0.460100 -0.256600 -0.849900 +vn -0.218100 -0.546500 -0.808500 +vn -0.651500 -0.438000 -0.619400 +vn 0.363500 0.612500 -0.701800 +vn 0.267100 0.448800 -0.852700 +vn 0.127900 0.513400 -0.848500 +vn 0.173600 0.690400 -0.702300 +vn -0.027600 0.527700 -0.848900 +vn -0.035600 0.715400 -0.697800 +vn -0.179000 0.497200 -0.848900 +vn -0.240500 0.674500 -0.698000 +vn -0.315100 0.424200 -0.848900 +vn -0.423800 0.574000 -0.700600 +vn -0.424200 0.315100 -0.848900 +vn -0.573900 0.428500 -0.697800 +vn -0.497200 0.179000 -0.848900 +vn -0.673300 0.244300 -0.697800 +vn -0.527700 0.027600 -0.848900 +vn -0.715000 0.039500 -0.697900 +vn -0.513400 -0.127100 -0.848700 +vn -0.693800 -0.170100 -0.699700 +vn 0.135700 0.229100 -0.963900 +vn 0.059600 0.249500 -0.966500 +vn -0.014200 0.265200 -0.964100 +vn -0.095400 0.249100 -0.963700 +vn -0.159200 0.205500 -0.965600 +vn -0.231900 0.177100 -0.956500 +vn -0.250500 0.087100 -0.964200 +vn -0.264900 0.010400 -0.964200 +vn -0.251700 -0.067300 -0.965400 +vn 0.559500 0.191300 -0.806500 +vn 0.513500 0.497100 -0.699400 +vn 0.388300 0.064600 -0.919200 +vn 0.502300 0.101900 -0.858700 +vn 0.138700 -0.226300 -0.964100 +vn 0.461200 -0.277500 -0.842700 +vn 0.375400 -0.601500 -0.705200 +vn 0.255900 -0.460300 -0.850000 +vn 0.552200 -0.271800 -0.788200 +vn 0.722800 -0.385500 -0.573500 +vn -0.613700 0.363600 -0.700800 +vn -0.448900 0.267000 -0.852700 +vn -0.513400 0.127900 -0.848500 +vn -0.694400 0.174300 -0.698200 +vn -0.527700 -0.027600 -0.848900 +vn -0.715400 -0.035600 -0.697800 +vn -0.497200 -0.179000 -0.848900 +vn -0.674500 -0.240900 -0.697800 +vn -0.424200 -0.315100 -0.848900 +vn -0.576200 -0.425300 -0.697900 +vn -0.315100 -0.424200 -0.848900 +vn -0.427600 -0.572500 -0.699500 +vn -0.179000 -0.497200 -0.848900 +vn -0.244300 -0.673300 -0.697800 +vn -0.027600 -0.527700 -0.848900 +vn -0.039900 -0.714900 -0.698100 +vn 0.127100 -0.513400 -0.848700 +vn 0.169300 -0.691500 -0.702200 +vn -0.227900 0.136800 -0.964000 +vn -0.257900 0.062300 -0.964100 +vn -0.264700 -0.016900 -0.964200 +vn -0.249100 -0.093100 -0.964000 +vn -0.226500 -0.178800 -0.957400 +vn -0.154000 -0.211300 -0.965200 +vn -0.087900 -0.249800 -0.964300 +vn -0.007600 -0.267400 -0.963500 +vn 0.064900 -0.246900 -0.966900 +vn -0.187600 0.561800 -0.805700 +vn -0.497100 0.513500 -0.699400 +vn -0.059400 0.387200 -0.920100 +vn 0.410500 0.276600 -0.868900 +vn 0.353900 -0.077800 -0.932000 +vn -0.295900 -0.254700 -0.920600 +vn -0.174300 -0.382400 -0.907400 +vn 0.004600 -0.423600 -0.905800 +vn -0.005700 -0.843300 -0.537400 +vn 0.201700 -0.377000 -0.904000 +vn -0.261800 -0.057500 -0.963400 +vn 0.205200 -0.172500 -0.963400 +vn -0.309100 0.227100 -0.923500 +vn -0.115900 0.490200 -0.863800 +vn 0.225600 0.143000 -0.963700 +vn 0.280500 0.463100 -0.840700 +vn 0.599900 0.380300 -0.703800 +vn 0.455000 0.261000 -0.851400 +vn 0.271600 0.552400 -0.788000 +vn 0.383500 0.722400 -0.575300 +vn -0.211000 -0.365200 -0.906700 +vn -0.397800 -0.623700 -0.672700 +vn -0.199300 -0.641600 -0.740600 +vn -0.085700 -0.257900 -0.962300 +vn -0.049400 -0.080000 -0.995500 +vn 0.689300 0.190300 -0.699000 +vn 0.507400 0.141300 -0.850000 +vn 0.716800 -0.004900 -0.697200 +vn 0.526400 -0.002100 -0.850200 +vn 0.689000 -0.198300 -0.697100 +vn 0.506100 -0.144400 -0.850200 +vn 0.609600 -0.377300 -0.697100 +vn 0.448300 -0.275900 -0.850200 +vn 0.482900 -0.526200 -0.699900 +vn 0.356900 -0.386900 -0.850200 +vn 0.323500 -0.639600 -0.697200 +vn 0.239000 -0.469000 -0.850200 +vn 0.138900 -0.703400 -0.697100 +vn 0.103200 -0.516100 -0.850200 +vn -0.056300 -0.709700 -0.702300 +vn -0.042300 -0.524600 -0.850300 +vn -0.243400 -0.478400 -0.843700 +vn -0.016500 -0.254200 -0.967000 +vn 0.052300 -0.262100 -0.963600 +vn 0.127400 -0.237200 -0.963000 +vn 0.181200 -0.188700 -0.965100 +vn 0.238800 -0.149600 -0.959400 +vn 0.257200 -0.070200 -0.963800 +vn 0.266800 0.002600 -0.963700 +vn 0.251200 0.075200 -0.965000 +vn -0.537400 -0.181700 -0.823500 +vn -0.522600 -0.418200 -0.742900 +vn -0.388200 -0.106400 -0.915400 +vn -0.249600 0.226100 -0.941600 +vn 0.371700 0.811000 0.451700 +vn 0.419400 0.900400 0.115600 +vn 0.027200 0.583100 0.811900 +vn 0.391200 0.914500 0.102500 +vn 0.394500 0.905800 0.154400 +vn 0.372400 0.899600 -0.228100 +vn 0.394300 0.301500 -0.868100 +vn 0.359500 -0.456300 -0.814000 +vn 0.345100 -0.924400 -0.162200 +vn 0.247900 -0.953800 0.169700 +vn 0.393900 -0.912900 0.107000 +vn 0.453000 -0.883800 0.116200 +vn 0.275200 -0.610200 0.742900 +vn 0.366500 -0.812500 0.453400 +vn -0.807500 0.017900 -0.589600 +vn -0.574700 0.398800 -0.714600 +vn -0.558700 0.813100 -0.163200 +vn -0.667800 0.696500 -0.262600 +vn -0.511000 0.660700 -0.549700 +vn -0.606800 0.467400 -0.642800 +vn -0.768500 0.498200 0.401300 +vn -0.022300 0.891400 0.452500 +vn 0.792600 -0.110600 0.599600 +vn -0.133500 -0.800200 0.584600 +vn -0.277800 -0.437100 0.855400 +vn -0.916700 -0.088600 0.389400 +vn 0.146000 0.763400 0.629200 +vn 0.445000 0.642500 0.623900 +vn 0.417500 -0.559800 0.715700 +vn 0.506800 -0.493000 -0.707200 +vn 0.270800 -0.676700 -0.684700 +vn 0.655200 -0.288500 -0.698200 +vn 0.767200 -0.021100 -0.641000 +vn 0.862900 -0.457600 -0.214300 +vn 0.682700 -0.303600 -0.664600 +vn 0.832500 -0.521700 -0.186500 +vn 0.396000 -0.223800 -0.890600 +vn 0.899000 0.426200 0.100600 +vn 0.803800 0.348100 -0.482400 +vn 0.818400 0.472000 -0.327900 +vn 0.877300 -0.054200 -0.476800 +vn 0.491400 -0.089800 -0.866200 +vn 0.312600 -0.015500 -0.949700 +vn 0.482000 0.031000 -0.875600 +vn 0.866200 0.150300 -0.476600 +vn 0.307900 0.060000 -0.949500 +vn 0.457800 0.146500 -0.876900 +vn 0.287600 0.131500 -0.948700 +vn 0.388500 0.233100 -0.891400 +vn 0.810100 -0.476400 -0.341700 +vn 0.852700 -0.384200 -0.353900 +vn 0.414600 -0.180500 -0.891900 +vn 0.893500 -0.281900 -0.349600 +vn 0.434000 -0.126200 -0.892000 +vn 0.945400 -0.185800 -0.267600 +vn 0.959900 0.043300 -0.276900 +vn 0.918300 0.272000 -0.287500 +vn 0.826600 0.510900 -0.236000 +vn 0.864300 0.335300 -0.374900 +vn 0.924600 0.290800 -0.246200 +vn 0.680600 0.291600 -0.672100 +vn 0.522400 0.487800 -0.699300 +vn 0.300700 0.652300 -0.695800 +vn 0.031500 0.774800 -0.631400 +vn 0.467200 0.859700 -0.206500 +vn 0.300000 0.686300 -0.662600 +vn 0.507600 0.836000 -0.208400 +vn 0.264700 0.680800 -0.682900 +vn 0.078600 0.441900 -0.893600 +vn 0.243000 0.434100 -0.867400 +vn 0.111200 0.972500 -0.204500 +vn 0.178600 0.927800 -0.327500 +vn 0.336900 0.809300 -0.481100 +vn 0.123100 0.294000 -0.947800 +vn 0.120300 0.445900 -0.886900 +vn 0.273800 0.905100 -0.325100 +vn 0.468400 0.840600 -0.271700 +vn 0.608800 0.609000 -0.508300 +vn 0.199700 0.955400 -0.217400 +vn -0.269600 0.743300 -0.612200 +vn -0.146000 0.974800 -0.168900 +vn -0.113700 0.946900 -0.300600 +vn -0.083400 0.468500 -0.879500 +vn -0.526100 0.848100 0.061400 +vn -0.464000 0.828100 -0.314500 +vn -0.502500 0.833100 -0.231300 +vn -0.220900 0.394400 -0.892000 +vn -0.187800 0.431700 -0.882200 +vn -0.370100 0.886800 -0.276700 +vn -0.140000 0.454900 -0.879500 +vn -0.261100 0.920900 -0.289500 +vn -0.159100 0.950400 -0.267300 +vn -0.328300 0.861200 -0.388000 +vn -0.304500 0.922900 -0.235700 +vn -0.277400 0.677800 -0.680900 +vn -0.494600 0.473500 -0.728800 +vn -0.474700 0.525200 -0.706200 +vn -0.266600 -0.645800 -0.715400 +vn -0.479100 -0.512300 -0.712600 +vn -0.026000 -0.760300 -0.649000 +vn -0.488400 -0.857900 -0.159300 +vn -0.285100 -0.683300 -0.672200 +vn -0.524900 -0.821100 -0.224000 +vn -0.225200 -0.414100 -0.881900 +vn -0.149500 -0.935900 -0.318800 +vn -0.195900 -0.712500 -0.673800 +vn -0.137200 -0.975800 -0.169900 +vn -0.083500 -0.433800 -0.897100 +vn -0.127000 -0.457800 -0.879900 +vn -0.267000 -0.919900 -0.287100 +vn -0.176200 -0.435800 -0.882600 +vn -0.373900 -0.884000 -0.280500 +vn -0.470000 -0.836200 -0.282400 +vn -0.618700 -0.610700 -0.494200 +vn 0.282200 -0.738400 -0.612500 +vn 0.171500 -0.962500 -0.210200 +vn 0.108700 -0.970200 -0.216300 +vn 0.157600 -0.868800 -0.469300 +vn 0.053000 -0.323400 -0.944800 +vn 0.130300 -0.440500 -0.888200 +vn 0.332100 -0.815500 -0.474000 +vn 0.125400 -0.292000 -0.948100 +vn 0.232600 -0.408600 -0.882600 +vn 0.476600 -0.858100 -0.191000 +vn 0.459800 -0.837000 -0.296600 +vn 0.255900 -0.905500 -0.338400 +vn 0.090200 -0.753900 -0.650700 +vn 0.431600 -0.878400 -0.205100 +vn 0.594200 -0.400400 0.697500 +vn 0.237600 -0.161800 0.957800 +vn 0.418900 -0.580400 0.698300 +vn 0.157100 -0.226000 0.961400 +vn 0.190700 -0.696100 0.692100 +vn 0.070000 -0.267300 0.961100 +vn -0.059400 -0.713600 0.698000 +vn -0.023200 -0.291700 0.956200 +vn -0.303400 -0.651400 0.695400 +vn -0.127700 -0.253100 0.959000 +vn -0.505800 -0.507300 0.697600 +vn -0.197400 -0.191000 0.961500 +vn -0.649200 -0.307300 0.695700 +vn -0.250000 -0.124600 0.960200 +vn -0.513700 -0.028200 0.857400 +vn -0.707700 0.178000 0.683700 +vn -0.262800 0.088000 0.960800 +vn -0.580400 0.416100 0.699900 +vn -0.221200 0.166200 0.960900 +vn -0.394900 0.577000 0.714900 +vn -0.152000 0.229400 0.961400 +vn 0.786400 -0.553200 0.274700 +vn 0.565100 -0.777300 0.276500 +vn 0.269200 -0.926500 0.262800 +vn -0.071500 -0.959600 0.272000 +vn -0.398000 -0.877000 0.269100 +vn -0.681500 -0.679800 0.270800 +vn -0.874900 -0.398500 0.275300 +vn -0.946600 -0.068800 0.314900 +vn -0.924300 0.266500 0.273000 +vn -0.779300 0.562900 0.275200 +vn -0.556400 0.779000 0.289200 +vn -0.690700 -0.722900 0.015800 +vn -0.142800 -0.982100 -0.122600 +vn -0.085200 -0.985000 0.149900 +vn -0.211100 -0.966500 0.145800 +vn -0.458100 -0.876900 -0.145200 +vn -0.325400 -0.937700 0.121700 +vn -0.333900 -0.931500 -0.144000 +vn -0.693700 -0.709700 0.122700 +vn -0.581300 -0.808400 0.091700 +vn -0.451300 -0.870500 0.196100 +vn -0.721300 -0.678100 0.141000 +vn -0.365000 -0.421000 0.830400 +vn -0.416000 -0.356900 0.836400 +vn -0.166300 -0.379300 0.910200 +vn -0.321800 -0.185300 0.928500 +vn 0.583500 -0.306400 0.752100 +vn 0.808200 -0.468200 0.357000 +vn 0.495900 -0.448000 0.743900 +vn 0.678900 -0.727200 0.101400 +vn 0.355100 -0.328000 0.875400 +vn 0.227900 -0.199300 0.953100 +vn 0.232800 0.196400 0.952500 +vn 0.370300 0.303700 0.877900 +vn 0.363400 0.115900 0.924400 +vn 0.732000 0.009200 0.681200 +vn 0.128600 0.065800 0.989500 +vn 0.164600 -0.093600 0.981900 +vn 0.356500 -0.027600 0.933900 +vn -0.566400 0.822100 0.057500 +vn -0.686000 0.674100 0.273800 +vn -0.387000 0.864800 0.319900 +vn -0.398400 -0.597100 0.696200 +vn -0.165500 -0.235900 0.957500 +vn -0.579200 -0.418400 0.699600 +vn -0.240500 -0.173600 0.955000 +vn -0.695400 -0.187700 0.693700 +vn -0.272600 -0.066700 0.959800 +vn -0.713400 0.059400 0.698200 +vn -0.274500 0.027000 0.961200 +vn -0.651000 0.302900 0.696000 +vn -0.248800 0.119600 0.961100 +vn -0.509000 0.507300 0.695400 +vn -0.193200 0.191100 0.962300 +vn -0.199500 0.455100 0.867800 +vn -0.066000 0.720800 0.690000 +vn -0.010700 0.273800 0.961700 +vn 0.189900 0.693900 0.694600 +vn 0.078700 0.269300 0.959800 +vn 0.416400 0.580600 0.699600 +vn 0.167600 0.222400 0.960400 +vn 0.582300 0.390500 0.713000 +vn 0.241600 0.157000 0.957500 +vn -0.411000 -0.850900 0.327100 +vn -0.588100 -0.758800 0.280000 +vn -0.777900 -0.564900 0.275000 +vn -0.924000 -0.274300 0.266200 +vn -0.959900 0.069900 0.271300 +vn -0.877500 0.396700 0.269400 +vn -0.080200 0.956400 0.280900 +vn 0.259300 0.927900 0.267600 +vn 0.564500 0.777600 0.276900 +vn 0.778800 0.557300 0.288000 +vn -0.226600 0.275500 0.934200 +vn -0.306800 0.144500 0.940700 +vn 0.203900 0.324900 0.923500 +vn 0.680100 0.682100 0.268500 +vn 0.634600 0.457000 0.623200 +vn 0.721300 0.688300 0.076400 +vn -0.040300 -0.740500 -0.670800 +vn -0.668200 -0.659300 -0.344700 +vn -0.638300 -0.287900 -0.713900 +vn -0.033200 -0.238300 -0.970600 +vn -0.194200 -0.761700 -0.618100 +vn -0.289100 -0.717400 -0.633800 +vn -0.100800 -0.223200 -0.969500 +vn -0.672700 0.117900 -0.730400 +vn -0.047100 0.268300 -0.962200 +vn -0.100500 0.220400 -0.970200 +vn -0.634900 0.530000 -0.562200 +vn -0.048500 0.701300 -0.711200 +vn -0.150900 0.976800 -0.151600 +vn -0.684300 0.728100 -0.037600 +vn -0.290100 0.725000 -0.624600 +vn -0.353400 0.924400 -0.143200 +vn -0.182400 0.735600 -0.652400 +vn -0.492600 0.829400 0.263400 +vn -0.376600 0.920200 0.106700 +vn -0.377200 0.912700 0.157400 +vn -0.637400 0.580100 -0.507000 +vn -0.548800 -0.421900 -0.721700 +vn 0.247400 -0.963500 0.102100 +vn 0.195500 -0.968200 0.155900 +vn -0.375700 -0.920600 0.106700 +vn -0.476400 -0.822400 0.311000 +vn 0.237700 -0.598300 0.765200 +vn -0.123800 0.989500 0.074100 +vn -0.234800 0.957100 0.169900 +vn -0.358300 0.925000 0.126100 +vn -0.631700 0.771500 0.075200 +vn -0.488400 0.852200 0.187600 +vn -0.722000 0.681800 0.117500 +vn -0.703300 0.697700 0.136600 +vn 0.183500 0.725200 0.663600 +vn 0.492300 0.647800 0.581300 +vn 0.666400 0.565100 0.486300 +vn 0.466000 0.193500 0.863400 +vn 0.312200 -0.420400 0.851900 +vn 0.439300 -0.263700 0.858700 +vn 0.496100 0.097500 0.862700 +vn -0.779700 -0.160500 0.605200 +vn -0.435200 -0.285900 0.853700 +vn 0.108700 -0.501000 0.858600 +vn -0.509800 0.101100 0.854300 +vn -0.044300 0.493200 0.868700 +vn -0.265100 0.428500 0.863700 +vn -0.336200 0.272600 0.901500 +vn 0.281800 -0.052600 0.958000 +vn -0.059300 -0.274600 0.959700 +vn -0.244400 -0.046500 0.968500 +vn 0.126200 0.279600 0.951800 +vn -0.587400 0.403600 0.701400 +vn -0.228400 0.168100 0.958900 +vn -0.419000 0.578500 0.699800 +vn -0.157400 0.226400 0.961200 +vn -0.188200 0.697700 0.691200 +vn -0.070100 0.267600 0.961000 +vn 0.060000 0.712900 0.698700 +vn 0.023200 0.291300 0.956300 +vn 0.303000 0.651600 0.695400 +vn 0.127900 0.253500 0.958800 +vn 0.506000 0.507500 0.697400 +vn 0.197500 0.191100 0.961500 +vn 0.648900 0.308400 0.695600 +vn 0.249900 0.124500 0.960200 +vn 0.513800 0.027700 0.857400 +vn 0.707900 -0.179100 0.683200 +vn 0.259300 -0.087200 0.961900 +vn 0.579200 -0.416800 0.700600 +vn 0.226400 -0.168600 0.959300 +vn 0.388800 -0.584000 0.712500 +vn 0.154500 -0.239600 0.958500 +vn -0.783700 0.555300 0.278100 +vn -0.563800 0.776900 0.280200 +vn -0.275700 0.925000 0.261400 +vn 0.070000 0.959500 0.272900 +vn 0.398100 0.877000 0.268900 +vn 0.682000 0.679300 0.270900 +vn 0.875500 0.397100 0.275100 +vn 0.946100 0.069600 0.316100 +vn 0.925800 -0.262800 0.271600 +vn 0.778000 -0.562800 0.279100 +vn 0.561900 -0.776500 0.285200 +vn 0.729600 -0.188000 0.657500 +vn 0.653300 -0.468900 0.594400 +vn 0.546700 -0.560700 0.621800 +vn 0.190000 -0.757400 0.624600 +vn -0.407400 -0.634800 0.656600 +vn -0.112600 -0.492800 0.862800 +vn -0.446000 0.615300 0.650000 +vn -0.645100 0.401100 0.650300 +vn -0.762300 0.135000 0.633000 +vn -0.732500 -0.165800 0.660200 +vn -0.424500 -0.304200 0.852800 +vn 0.777100 0.134800 0.614800 +vn 0.648500 0.429500 0.628500 +vn -0.164300 0.734500 0.658400 +vn -0.101800 -0.150500 0.983300 +vn 0.208800 0.137200 0.968300 +vn 0.266600 -0.044500 0.962700 +vn -0.159900 -0.035500 0.986500 +vn -0.198300 0.025000 0.979800 +vn 0.185100 -0.203000 0.961500 +vn -0.186200 0.138400 0.972700 +vn -0.149400 -0.210600 0.966100 +vn 0.168100 0.237900 0.956600 +vn 0.222000 0.127800 0.966600 +vn 0.278500 -0.125200 0.952200 +vn 0.292300 0.043900 0.955300 +vn 0.060200 0.209300 0.976000 +vn -0.027900 0.153300 0.987800 +vn -0.103300 0.175700 0.979000 +vn 0.076400 -0.242000 0.967300 +vn 0.031200 -0.553100 0.832500 +vn -0.087600 -0.283800 0.954900 +vn 0.133100 -0.281800 0.950200 +vn 0.513600 -0.248300 0.821300 +vn 0.550900 0.135600 0.823500 +vn -0.580500 -0.389900 0.714800 +vn -0.776500 -0.561900 0.285200 +vn -0.413000 -0.566900 0.712800 +vn -0.562800 -0.778000 0.279100 +vn -0.180400 -0.700900 0.690100 +vn -0.265500 -0.925300 0.270900 +vn 0.068600 -0.949500 0.306300 +vn 0.307900 -0.647900 0.696700 +vn 0.398200 -0.875400 0.273900 +vn 0.506200 -0.499600 0.702900 +vn 0.681900 -0.678100 0.274300 +vn 0.869000 -0.395800 0.296700 +vn 0.706500 -0.051200 0.705900 +vn 0.959300 -0.066100 0.274600 +vn 0.916800 0.267700 0.296100 +vn 0.565100 0.416000 0.712500 +vn 0.777500 0.563900 0.278400 +vn 0.405500 0.584700 0.702600 +vn 0.558700 0.780400 0.280600 +vn -0.259700 -0.167700 0.951000 +vn 0.171500 0.262700 0.949500 +vn 0.547400 -0.501300 0.670100 +vn 0.671300 -0.326200 0.665500 +vn -0.471500 0.573500 0.669900 +vn 0.454800 -0.580100 0.675600 +vn 0.267400 -0.691000 0.671500 +vn 0.714100 -0.168000 0.679600 +vn -0.243500 -0.699900 0.671500 +vn -0.643600 0.368600 0.670700 +vn -0.467200 -0.574900 0.671700 +vn 0.013300 -0.741500 0.670800 +vn 0.727500 -0.009200 0.686100 +vn 0.663500 0.335300 0.668800 +vn 0.506600 0.543500 0.669200 +vn 0.715800 0.140800 0.684000 +vn 0.284200 0.686000 0.669700 +vn 0.026700 0.741600 0.670300 +vn -0.235500 0.703500 0.670500 +vn -0.726200 0.132900 0.674500 +vn -0.732000 -0.119000 0.670700 +vn -0.640600 -0.374700 0.670300 +vn 0.028500 -0.991600 0.125600 +vn -0.537400 -0.835100 0.117600 +vn -0.436800 -0.893700 0.102200 +vn -0.325000 -0.940200 0.102400 +vn -0.209600 -0.973000 0.096900 +vn -0.088600 -0.985400 0.145600 +vn -0.632200 -0.765500 0.119400 +vn -0.695400 -0.706500 0.131400 +vn 0.162600 -0.978600 0.126200 +vn 0.281900 -0.950700 0.129300 +vn 0.398100 -0.909700 0.117800 +vn 0.518800 -0.846100 0.122300 +vn 0.610800 -0.781300 0.128300 +vn 0.686500 -0.717000 0.120800 +vn 0.774300 -0.622700 0.112800 +vn 0.838500 0.526700 0.139600 +vn 0.938200 0.318800 0.134600 +vn 0.974300 0.193000 0.115700 +vn 0.986200 0.073700 0.148000 +vn 0.991800 -0.049200 0.117700 +vn 0.945900 -0.295100 0.134900 +vn 0.903600 -0.410200 0.123500 +vn 0.848900 -0.508700 0.143500 +vn 0.761900 0.643000 0.077800 +vn 0.689600 0.715600 0.111100 +vn 0.599400 0.788800 0.136000 +vn 0.488400 0.858200 0.158100 +vn 0.379700 0.918000 0.114600 +vn 0.260300 0.956200 0.133700 +vn 0.143600 0.980300 0.135300 +vn 0.022500 0.993500 0.111200 +vn -0.095400 0.987400 0.126200 +vn -0.218400 0.970200 0.104300 +vn -0.333300 0.937300 0.102100 +vn -0.444700 0.890200 0.099100 +vn -0.650700 0.755600 0.074900 +vn -0.693600 0.710300 0.119900 +vn -0.420900 0.525600 0.739200 +vn -0.688500 0.678500 0.255800 +vn -0.545300 0.690900 0.474600 +vn -0.478300 0.423400 0.769300 +vn -0.664700 0.738700 0.111400 +vn -0.789200 0.608100 0.085900 +vn 0.348800 -0.926000 0.144600 +vn 0.325800 -0.941400 0.086800 +vn 0.088500 -0.991400 0.096300 +vn -0.302600 -0.946200 0.114100 +vn -0.098300 -0.989800 0.102800 +vn -0.570500 -0.814200 0.107100 +vn -0.466700 -0.878500 0.102200 +vn -0.393300 -0.913100 0.107300 +vn -0.627100 -0.771100 0.110100 +vn -0.750400 -0.651300 0.112600 +vn -0.677800 -0.726200 0.114900 +vn -0.961900 -0.268700 0.050400 +vn -0.790300 -0.599400 0.126800 +vn -0.966400 -0.233400 0.107900 +vn -0.957500 0.254600 0.135700 +vn -0.966700 0.244600 0.075000 +vn -0.996000 0.005900 0.089000 +vn -0.557700 -0.561400 0.611300 +vn -0.605000 -0.618800 0.501000 +vn -0.587100 -0.640700 0.494700 +vn 0.552200 -0.744600 0.375000 +vn 0.200900 -0.896200 0.395600 +vn 0.033600 -0.741400 0.670200 +vn -0.404500 -0.853100 0.329600 +vn -0.493300 -0.758800 0.425200 +vn -0.076100 -0.959300 0.272000 +vn -0.485100 -0.851000 0.200900 +vn -0.404400 -0.884900 0.231100 +vn -0.211800 -0.954100 0.211500 +vn -0.347800 -0.900200 0.262100 +vn -0.300600 -0.940500 0.158300 +vn -0.308800 -0.872900 0.377800 +vn -0.179100 -0.940000 0.290200 +vn -0.598700 -0.784900 0.159400 +vn -0.623000 -0.772700 0.121700 +vn -0.655000 -0.727500 0.204000 +vn -0.462400 -0.790600 0.401300 +vn -0.543700 -0.818200 0.186800 +vn -0.431700 -0.888300 0.156800 +vn -0.078700 -0.959100 0.271700 +vn -0.023500 -0.939800 0.340800 +vn -0.015500 -0.990300 0.138200 +vn -0.668100 -0.714400 0.208000 +vn -0.667000 -0.586600 0.459200 +vn -0.044900 -0.561300 0.826300 +vn -0.027100 -0.348400 0.936900 +vn -0.053200 -0.323600 0.944700 +vn -0.132200 -0.530500 0.837300 +vn -0.209700 -0.364200 0.907400 +vn -0.266200 -0.508800 0.818700 +vn -0.631700 -0.683400 0.365900 +vn -0.056500 -0.795100 0.603800 +vn -0.133300 -0.802300 0.581800 +vn -0.259900 -0.734400 0.626900 +vn -0.328200 -0.683100 0.652400 +vn -0.487000 -0.642900 0.591200 +vn -0.261400 -0.268900 0.927000 +vn -0.282400 -0.186800 0.940900 +vn -0.018000 -0.156000 0.987600 +vn -0.025700 0.209400 0.977500 +vn -0.027600 0.158700 0.986900 +vn -0.027700 0.337500 0.940900 +vn -0.046400 0.319600 0.946400 +vn -0.034300 0.229200 0.972700 +vn -0.194100 0.348000 0.917200 +vn -0.255500 0.124000 0.958800 +vn -0.405900 0.212800 0.888800 +vn -0.269700 0.006700 0.962900 +vn 0.015900 0.034900 0.999200 +vn 0.023900 -0.089900 0.995600 +vn -0.040200 -0.225900 0.973300 +vn -0.258300 -0.079000 0.962800 +vn -0.248700 0.279000 0.927500 +vn -0.787000 0.602400 0.133000 +vn -0.856100 0.495700 0.145900 +vn -0.723700 0.680300 0.115500 +vn -0.680700 0.723500 0.115100 +vn -0.627300 0.770600 0.112700 +vn -0.569300 0.815300 0.105800 +vn -0.389200 0.914400 0.111100 +vn -0.496700 0.861000 0.109200 +vn -0.015300 0.997900 0.063100 +vn -0.314200 0.942400 0.114200 +vn 0.165100 0.984100 0.065300 +vn 0.366100 0.928700 0.058400 +vn 0.573500 0.815900 0.073400 +vn -0.869300 -0.473800 0.140800 +vn -0.649500 -0.755900 0.082100 +vn -0.976700 -0.195300 0.088600 +vn -0.883000 -0.465600 0.058500 +vn -0.971700 0.219900 0.085700 +vn -0.989300 0.097100 0.108700 +vn -0.510000 -0.816200 0.271600 +vn -0.283900 -0.424100 0.860000 +vn -0.489800 -0.462000 0.739300 +vn -0.553900 0.554500 0.621100 +vn -0.621600 0.665700 0.412900 +vn -0.585200 0.575300 0.571400 +vn 0.128800 0.906400 0.402300 +vn 0.167100 0.747300 0.643100 +vn -0.510800 0.731700 0.451300 +vn -0.408800 0.846400 0.341300 +vn -0.310000 0.659300 0.685000 +vn -0.239200 0.928800 0.283000 +vn 0.277600 0.932900 0.229300 +vn -0.457500 0.862800 0.214800 +vn -0.414500 0.878400 0.238000 +vn 0.015300 0.983200 0.182000 +vn 0.119200 0.970400 0.209800 +vn -0.394000 0.883200 0.254300 +vn -0.450800 0.593000 0.667200 +vn -0.138600 0.534000 0.834000 +vn -0.040300 0.546300 0.836600 +vn -0.663000 0.592000 0.458200 +vn -0.017300 0.994900 0.099600 +vn -0.069200 0.928500 0.364700 +vn -0.098400 0.987900 0.120100 +vn -0.172900 0.911700 0.372600 +vn -0.163200 0.976200 0.142800 +vn -0.261000 0.914500 0.309200 +vn -0.468700 0.791000 0.393300 +vn -0.512400 0.836700 0.193300 +vn -0.402600 0.869800 0.285200 +vn -0.598700 0.785400 0.156700 +vn -0.654400 0.731200 0.192600 +vn -0.624400 0.772200 0.117700 +vn -0.498200 0.632300 0.593200 +vn -0.591700 0.683000 0.428200 +vn -0.329400 0.700700 0.632800 +vn -0.267700 0.736300 0.621400 +vn -0.131900 0.794600 0.592600 +vn -0.044800 0.758800 0.649800 +vn -0.667700 0.713300 0.212900 +vn -0.716400 0.693800 0.073600 +vn -0.572200 -0.811200 0.120700 +vn -0.716400 -0.693800 0.073200 +vn -0.735600 0.664100 0.133100 +vn -0.721400 0.684300 0.106000 +vn -0.067200 0.979600 0.189300 +vn 0.728600 -0.673000 0.127000 +vn 0.580600 -0.784600 0.217700 +vn 0.729300 -0.679900 0.076400 +vn -0.357000 0.919600 0.163900 +vn -0.668400 0.731900 0.132500 +vn -0.080100 0.988200 0.130500 +vn -0.437500 0.895600 0.080500 +vn 0.223800 0.969700 0.098300 +vn 0.071700 0.993000 0.093600 +vn 0.622300 0.773000 0.123400 +vn 0.531700 0.834800 0.143000 +vn 0.650800 0.750400 0.115500 +vn 0.702100 0.699300 0.133900 +vn 0.706400 0.696600 0.125200 +vn 0.749300 0.651400 0.119100 +vn 0.851600 0.505100 0.139800 +vn 0.787000 0.602800 0.131300 +vn 0.981800 0.172700 0.078200 +vn 0.995600 0.009000 0.093400 +vn 0.968500 -0.205300 0.140500 +vn 0.977000 -0.186200 0.104200 +vn -0.745100 0.502500 0.438600 +vn 0.186600 0.347700 0.918900 +vn -0.521300 0.333500 0.785500 +vn 0.443900 0.478800 0.757400 +vn 0.376000 0.277900 0.883900 +vn 0.265800 0.208400 0.941200 +vn 0.488000 -0.614300 0.620000 +vn 0.270000 -0.175600 0.946700 +vn -0.672200 -0.729300 0.127300 +vn -0.784600 -0.580500 0.217700 +vn -0.679600 -0.729500 0.076800 +vn 0.654500 0.751500 0.082300 +vn 0.747900 0.659500 0.075600 +vn 0.991900 0.028600 0.123500 +vn 0.887900 0.452200 0.084000 +vn 0.983800 -0.169800 0.056500 +vn 0.985800 -0.127500 0.108900 +vn 0.794100 -0.596300 0.117800 +vn 0.933200 -0.350000 0.081500 +vn 0.722600 -0.680400 0.121700 +vn 0.642600 -0.757400 0.115500 +vn 0.683400 -0.718600 0.128800 +vn 0.709200 -0.692700 0.130700 +vn 0.596600 -0.792400 0.126800 +vn 0.200300 -0.974500 0.101300 +vn 0.006000 -0.996400 0.084600 +vn 0.479600 -0.867500 0.131600 +vn -0.198900 -0.969200 0.145100 +vn -0.186200 -0.977000 0.103900 +vn 0.520400 0.834900 0.179200 +vn 0.361300 -0.187500 0.913400 +vn 0.319700 0.435500 0.841500 +vn 0.460300 0.701400 0.544100 +vn 0.468100 -0.440600 0.766000 +vn 0.016300 -0.079700 0.996700 +vn -0.598500 -0.496200 0.629000 +vn -0.200400 -0.327900 0.923200 +vn -0.672600 0.001100 0.740000 +vn -0.626900 -0.242100 0.740500 +vn -0.496800 -0.452900 0.740300 +vn -0.299800 -0.601600 0.740400 +vn -0.062600 -0.668300 0.741200 +vn 0.182800 -0.644900 0.742000 +vn 0.406100 -0.528400 0.745600 +vn 0.567500 -0.351100 0.744800 +vn 0.657100 -0.153900 0.737900 +vn 0.662200 0.147300 0.734600 +vn 0.686000 0.000800 0.727600 +vn 0.570800 0.354700 0.740500 +vn 0.404400 0.536900 0.740400 +vn 0.183100 0.647100 0.740100 +vn -0.062800 0.669500 0.740100 +vn -0.300300 0.601500 0.740200 +vn -0.497500 0.452400 0.740100 +vn -0.627700 0.241900 0.739900 +vn 0.972900 -0.168800 0.158200 +vn -0.561100 0.808500 0.177600 +vn -0.674100 -0.582800 0.453800 +vn -0.600100 -0.165400 0.782600 +vn -0.699500 0.099000 0.707700 +vn -0.872800 0.143200 0.466500 +vn -0.786800 -0.493100 0.371000 +vn -0.778900 -0.526900 0.340000 +vn -0.954600 0.120600 0.272200 +vn -0.678700 -0.699200 0.224700 +vn -0.784500 -0.534000 0.315200 +vn -0.852300 -0.445600 0.273800 +vn -0.819500 -0.524400 0.230900 +vn -0.030500 -0.980200 0.195600 +vn -0.115100 -0.973700 0.196400 +vn -0.088800 -0.981100 0.171900 +vn -0.222000 -0.952000 0.210600 +vn -0.502600 -0.832800 0.231800 +vn -0.609100 -0.775400 0.166600 +vn -0.565500 -0.811200 0.148700 +vn -0.465700 -0.867900 0.172700 +vn -0.324600 -0.918500 0.225900 +vn -0.422100 -0.873700 0.241700 +vn -0.387200 -0.893700 0.226600 +vn -0.068200 -0.987200 0.144400 +vn -0.037400 -0.994300 0.100100 +vn -0.113500 -0.986800 0.115600 +vn -0.067000 -0.992800 0.098700 +vn -0.304300 -0.945100 0.119100 +vn -0.431700 -0.891900 0.134600 +vn -0.484000 -0.850700 0.205000 +vn -0.380100 -0.904800 0.192000 +vn -0.339100 -0.927500 0.157100 +vn -0.515100 -0.818700 0.253600 +vn -0.302400 -0.929900 0.209200 +vn -0.259500 -0.950400 0.171300 +vn -0.221600 -0.965000 0.140400 +vn -0.193000 -0.974900 0.110500 +vn -0.212500 -0.958300 0.191200 +vn -0.178500 -0.968900 0.171100 +vn -0.118200 -0.981400 0.151500 +vn -0.703500 -0.700800 0.117900 +vn -0.493100 -0.501700 0.710700 +vn -0.746400 -0.607500 0.271600 +vn -0.797000 -0.510900 0.322000 +vn -0.633700 0.389300 0.668500 +vn -0.790200 0.517200 0.328700 +vn -0.495900 0.510600 0.702400 +vn -0.725600 0.150700 0.671400 +vn -0.986800 0.078900 0.140900 +vn -0.913500 0.271600 0.302900 +vn -0.724400 -0.127300 0.677500 +vn -0.963000 -0.129300 0.236400 +vn -0.794100 0.000200 0.607700 +vn -0.991500 -0.066600 0.111500 +vn -0.963200 -0.189600 0.190600 +vn -0.710700 -0.286200 0.642500 +vn -0.922700 -0.357300 0.144900 +vn -0.664800 -0.434900 0.607300 +vn -0.644100 0.271900 0.715000 +vn -0.869900 0.411600 0.271800 +vn -0.743100 0.650000 0.158900 +vn -0.725500 0.622900 0.292700 +vn -0.735000 0.599500 0.316600 +vn -0.779300 0.530900 0.332700 +vn -0.958600 -0.047400 0.280700 +vn -0.717100 0.657100 0.232500 +vn -0.806600 0.543500 0.232400 +vn -0.925800 -0.066600 0.372100 +vn -0.975000 -0.001400 0.222100 +vn -0.830000 0.480800 0.282600 +vn -0.775900 0.494600 0.391600 +vn -0.767800 -0.491500 0.411000 +vn -0.563000 0.014900 0.826300 +vn -0.842200 0.047200 0.537000 +vn -0.667700 0.605400 0.433000 +vn -0.043600 0.983200 0.177100 +vn -0.108500 0.974600 0.195700 +vn -0.224200 0.950700 0.214300 +vn -0.419300 0.876900 0.234700 +vn -0.332400 0.918000 0.216100 +vn -0.506200 0.828900 0.238200 +vn -0.483000 0.851500 0.203900 +vn -0.558200 0.809200 0.183400 +vn -0.608800 0.778600 0.152000 +vn -0.562300 0.813100 0.150400 +vn -0.432100 0.890700 0.141100 +vn -0.195300 0.974800 0.107400 +vn -0.083800 0.992400 0.089400 +vn -0.037700 0.994000 0.102200 +vn -0.062200 0.987500 0.144800 +vn -0.080100 0.981200 0.175300 +vn -0.417800 0.881900 0.218200 +vn -0.263200 0.949500 0.170700 +vn -0.379000 0.905600 0.190000 +vn -0.227200 0.963600 0.140800 +vn -0.339000 0.927500 0.157700 +vn -0.303000 0.944900 0.123800 +vn -0.461000 0.870800 0.171100 +vn -0.513000 0.819500 0.255100 +vn -0.337300 0.916500 0.215100 +vn -0.216500 0.956100 0.197500 +vn -0.123700 0.983100 0.134500 +vn -0.180300 0.968600 0.171300 +vn 0.827600 -0.235700 0.509400 +vn 0.795900 0.475400 0.374900 +vn 0.805300 0.485700 0.339900 +vn 0.947100 -0.129100 0.293800 +vn 0.531000 0.774800 0.343200 +vn -0.092500 0.952400 0.290500 +vn 0.471600 0.823400 0.315700 +vn -0.002500 0.978800 0.204700 +vn 0.628500 0.734500 0.255600 +vn 0.590600 0.754300 0.286600 +vn 0.660100 0.720300 0.213100 +vn 0.797600 0.524300 0.298200 +vn 0.859900 0.404300 0.311500 +vn 0.957200 -0.205800 0.203300 +vn 0.829000 0.501300 0.247800 +vn 0.718700 0.663900 0.206500 +vn 0.758700 0.614500 0.216300 +vn 0.803100 0.550800 0.227200 +vn 0.599800 0.715100 0.358800 +vn -0.022600 0.860400 0.509000 +vn -0.479900 0.797000 0.366700 +vn -0.106700 0.650500 0.751900 +vn 0.554900 0.682400 0.475700 +vn 0.601600 0.612600 0.512500 +vn 0.590700 0.600700 0.538700 +vn 0.610400 0.616100 0.497800 +vn 0.565900 0.136900 0.813000 +vn 0.672000 0.563300 0.480600 +vn -0.257300 -0.825600 0.502200 +vn 0.433200 -0.797100 0.420700 +vn 0.494500 -0.799800 0.340200 +vn 0.698100 -0.637300 0.326400 +vn -0.146900 -0.945200 0.291500 +vn 0.979100 0.022200 0.202100 +vn 0.738000 -0.589300 0.328800 +vn 0.922000 0.091800 0.376000 +vn 0.806200 -0.497500 0.320100 +vn 0.951100 0.232400 0.203200 +vn 0.749400 -0.613700 0.248600 +vn 0.712400 -0.640600 0.286500 +vn 0.519900 -0.802500 0.292600 +vn 0.496700 -0.806400 0.320900 +vn -0.201700 -0.957600 0.205500 +vn 0.539100 -0.810100 0.230500 +vn 0.685100 -0.695500 0.216500 +vn 0.494900 -0.833400 0.246100 +vn 0.619400 -0.753900 0.218900 +vn 0.766800 -0.604400 0.216000 +vn 0.800000 -0.447000 0.400000 +vn 0.758200 0.506600 0.410300 +vn 0.638300 0.133500 0.758100 +vn 0.836600 -0.006300 0.547700 +vn 0.684400 -0.542200 0.487400 +vn 0.612800 -0.609300 0.503100 +vn 0.587200 -0.600100 0.543100 +vn 0.271100 -0.435500 0.858400 +vn 0.620300 -0.622900 0.476600 +vn -0.063200 -0.651300 0.756200 +vn 0.662600 -0.203300 0.720800 +vn 0.682600 -0.120400 0.720800 +vn 0.692200 -0.035600 0.720800 +vn -0.155200 0.675500 0.720800 +vn -0.071000 0.689500 0.720800 +vn 0.014200 0.693000 0.720800 +vn 0.099300 0.686000 0.720800 +vn 0.487600 -0.492600 0.720800 +vn 0.544500 -0.429000 0.720800 +vn 0.593000 -0.358800 0.720800 +vn 0.632600 -0.283200 0.720800 +vn 0.412000 0.557400 0.720800 +vn 0.340400 0.603800 0.720800 +vn 0.263600 0.641100 0.720800 +vn 0.182800 0.668600 0.720800 +vn 0.477400 0.502500 0.720800 +vn 0.535500 0.440100 0.720800 +vn 0.585600 0.370900 0.720800 +vn 0.626700 0.296200 0.720800 +vn 0.691400 0.049700 0.720800 +vn 0.680000 0.134300 0.720800 +vn 0.658300 0.216900 0.720800 +vn -0.302600 -0.623600 0.720800 +vn -0.377900 -0.581700 0.720300 +vn -0.388000 0.573900 0.721200 +vn -0.315300 0.617300 0.720800 +vn -0.237100 0.651400 0.720800 +vn 0.352700 -0.596700 0.720800 +vn 0.423400 -0.548800 0.720800 +vn 0.028400 -0.692600 0.720800 +vn 0.113300 -0.683800 0.720800 +vn 0.196500 -0.664700 0.720800 +vn 0.276700 -0.635500 0.720800 +vn -0.617000 -0.329900 0.714400 +vn -0.562400 -0.412400 0.716700 +vn -0.508700 -0.476900 0.716800 +vn -0.447600 -0.531000 0.719400 +vn -0.223600 -0.656100 0.720800 +vn -0.141300 -0.678600 0.720800 +vn -0.056900 -0.690800 0.720800 +vn -0.655700 -0.259600 0.709000 +vn -0.705000 -0.208200 0.677900 +vn -0.569400 0.397900 0.719300 +vn -0.519000 0.459100 0.721000 +vn -0.454200 0.521200 0.722500 +vn -0.618100 0.321500 0.717300 +vn -0.668400 0.235100 0.705600 +vn -0.723400 -0.106300 0.682200 +vn -0.707400 0.001200 0.706800 +vn -0.684700 0.160900 0.710800 +vn -0.706700 0.094500 0.701200 +vn -0.514900 -0.807200 0.288300 +vn -0.522000 -0.813700 0.255900 +vn -0.534000 -0.818200 0.213200 +vn -0.533900 -0.830100 0.160700 +vn -0.541700 -0.833400 0.109400 +vn -0.550700 0.818800 0.161900 +vn -0.554700 0.825000 0.107800 +vn -0.549100 0.807500 0.215200 +vn -0.529500 0.798000 0.287700 +vn -0.527600 0.811500 0.250900 +vn 0.473700 0.832000 0.288700 +vn 0.577500 0.787800 0.214100 +vn 0.587400 0.792700 0.163100 +vn 0.762400 0.626000 0.163600 +vn 0.678300 0.716800 0.161200 +vn 0.822400 0.527200 0.213700 +vn 0.821300 0.510100 0.255300 +vn 0.815000 0.502400 0.288700 +vn 0.820100 -0.494200 0.288400 +vn 0.828200 -0.499100 0.254900 +vn 0.772600 -0.598300 0.212300 +vn 0.774300 -0.611200 0.163600 +vn 0.602300 -0.781100 0.164600 +vn 0.695300 -0.700400 0.161300 +vn 0.501100 -0.839000 0.211800 +vn 0.492100 -0.832200 0.255200 +vn 0.483500 -0.827400 0.285700 +vn 0.020500 0.957800 0.286700 +vn -0.098200 0.952500 0.288300 +vn -0.101900 0.947700 0.302300 +vn 0.136400 0.948000 0.287400 +vn -0.320800 -0.941000 0.107300 +vn -0.202700 -0.973300 0.107300 +vn -0.081500 -0.990800 0.107300 +vn 0.040800 -0.993400 0.107300 +vn 0.281900 -0.953400 0.107300 +vn 0.505900 -0.855900 0.107300 +vn 0.607300 -0.787200 0.107300 +vn 0.699400 -0.706600 0.107300 +vn 0.907400 -0.406200 0.107300 +vn 0.979100 -0.172600 0.107300 +vn 0.991600 0.071400 0.107300 +vn 0.944300 0.311100 0.107300 +vn 0.898900 0.424800 0.107300 +vn 0.839900 0.532000 0.107300 +vn 0.768100 0.631200 0.107300 +vn 0.684700 0.720800 0.107300 +vn 0.378100 0.919500 0.107300 +vn 0.262200 0.959000 0.107300 +vn 0.142400 0.983900 0.107300 +vn 0.020400 0.994000 0.107300 +vn -0.101900 0.989000 0.107300 +vn -0.340000 0.934200 0.107300 +vn -0.452300 0.885400 0.107300 +vn 0.780900 -0.615300 0.107300 +vn 0.591000 0.799500 0.107300 +vn 0.502000 -0.849200 0.164000 +vn 0.835800 -0.505700 0.213400 +vn 0.844000 -0.510700 0.164000 +vn 0.850600 -0.514700 0.107300 +vn 0.833300 0.527900 0.164000 +vn 0.478000 0.840800 0.254000 +vn 0.480100 0.850900 0.213000 +vn 0.484400 0.859300 0.164000 +vn 0.488200 0.866100 0.107300 +vn 0.141300 0.976300 0.164000 +vn 0.020200 0.986200 0.164000 +vn 0.139900 0.966900 0.213400 +vn 0.020100 0.976700 0.213400 +vn 0.138500 0.956900 0.255000 +vn 0.019800 0.966700 0.255000 +vn -0.101100 0.981300 0.164000 +vn -0.100100 0.971800 0.213400 +vn -0.099100 0.961800 0.255000 +vn -0.434000 -0.894500 0.107300 +vn -0.430600 -0.887500 0.164000 +vn -0.426500 -0.879000 0.213400 +vn -0.422100 -0.869900 0.255000 +vn -0.418000 -0.861400 0.288400 +vn -0.318300 -0.933700 0.164000 +vn -0.201100 -0.965700 0.164000 +vn -0.315200 -0.924700 0.213400 +vn -0.199200 -0.956400 0.213400 +vn -0.312000 -0.915200 0.255000 +vn -0.197100 -0.946600 0.255000 +vn -0.308900 -0.906300 0.288500 +vn -0.195200 -0.937400 0.288400 +vn -0.082700 -0.950100 0.300600 +vn -0.079000 -0.954000 0.288900 +vn -0.080900 -0.983100 0.164000 +vn 0.040500 -0.985600 0.164000 +vn -0.080100 -0.973700 0.213400 +vn 0.040100 -0.976100 0.213400 +vn -0.079300 -0.963700 0.255000 +vn 0.039700 -0.966100 0.255000 +vn 0.039900 -0.956600 0.288700 +vn 0.046000 -0.953200 0.298700 +vn 0.162600 -0.980800 0.107300 +vn 0.161300 -0.973200 0.164000 +vn 0.159700 -0.963800 0.213400 +vn 0.158100 -0.953900 0.255000 +vn 0.156400 -0.944600 0.288300 +vn 0.396900 -0.911500 0.107300 +vn 0.279700 -0.946000 0.164000 +vn 0.393800 -0.904400 0.164000 +vn 0.277000 -0.936900 0.213400 +vn 0.390000 -0.895700 0.213400 +vn 0.274100 -0.927200 0.255000 +vn 0.386000 -0.886500 0.255000 +vn 0.271500 -0.918200 0.288400 +vn 0.382200 -0.877900 0.288400 +vn 0.950500 -0.291600 0.107300 +vn 0.900300 -0.403100 0.164000 +vn 0.943100 -0.289400 0.164000 +vn 0.891700 -0.399200 0.213400 +vn 0.934000 -0.286600 0.213400 +vn 0.882500 -0.395100 0.255000 +vn 0.924400 -0.283600 0.255000 +vn 0.874000 -0.391200 0.288200 +vn 0.915400 -0.281000 0.288300 +vn 0.992900 -0.051000 0.107300 +vn 0.971500 -0.171300 0.164000 +vn 0.985100 -0.050600 0.164000 +vn 0.962100 -0.169600 0.213400 +vn 0.975600 -0.050100 0.213400 +vn 0.952200 -0.167900 0.255000 +vn 0.965600 -0.049600 0.255000 +vn 0.943000 -0.166200 0.288300 +vn 0.956300 -0.049100 0.288300 +vn 0.975300 0.192700 0.107300 +vn 0.983900 0.070800 0.164000 +vn 0.967700 0.191200 0.164000 +vn 0.974400 0.070100 0.213400 +vn 0.958400 0.189300 0.213400 +vn 0.964400 0.069400 0.255000 +vn 0.948600 0.187400 0.255000 +vn 0.955000 0.068700 0.288300 +vn 0.939300 0.185600 0.288400 +vn 0.936900 0.308700 0.164000 +vn 0.891900 0.421500 0.164000 +vn 0.927900 0.305700 0.213400 +vn 0.883300 0.417400 0.213400 +vn 0.918400 0.302600 0.255000 +vn 0.874200 0.413100 0.255000 +vn 0.909400 0.299700 0.288300 +vn 0.865700 0.409200 0.288100 +vn 0.375100 0.912300 0.164000 +vn 0.260200 0.951500 0.164000 +vn 0.371500 0.903500 0.213400 +vn 0.257700 0.942400 0.213400 +vn 0.367700 0.894300 0.255000 +vn 0.255000 0.932700 0.255000 +vn 0.364100 0.885600 0.288200 +vn 0.252600 0.923700 0.288100 +vn -0.222600 0.969000 0.107300 +vn -0.220900 0.961400 0.164000 +vn -0.218800 0.952100 0.213400 +vn -0.216500 0.942400 0.255000 +vn -0.214300 0.933200 0.288300 +vn -0.337400 0.927000 0.164000 +vn -0.448700 0.878500 0.164000 +vn -0.334100 0.918000 0.213400 +vn -0.444400 0.870000 0.213400 +vn -0.330700 0.908600 0.255000 +vn -0.439800 0.861100 0.255000 +vn -0.327500 0.899700 0.288300 +vn -0.435700 0.852700 0.288100 +usemtl None +s 1 +f 1//1 2//2 3//3 +f 4//4 5//5 6//6 +f 2//2 7//7 3//3 +f 3//3 7//7 8//8 +f 8//8 7//7 5//5 +f 5//5 7//7 6//6 +f 6//6 9//9 4//4 +f 4//4 9//9 10//10 +f 11//11 12//12 13//13 +f 14//14 15//15 13//13 +f 13//13 15//15 11//11 +f 2//2 1//1 16//16 +f 16//16 1//1 17//17 +f 9//9 18//18 10//10 +f 10//10 18//18 19//19 +f 19//19 18//18 14//14 +f 14//14 18//18 15//15 +f 16//16 17//17 20//20 +f 20//20 17//17 21//21 +f 20//20 21//21 22//22 +f 20//20 22//22 23//23 +f 11//11 24//24 12//12 +f 12//12 24//24 25//25 +f 25//25 24//24 26//26 +f 25//25 26//26 27//27 +f 27//27 26//26 23//23 +f 27//27 23//23 22//22 +f 28//28 29//2 30//29 +f 31//30 32//31 33//32 +f 29//2 34//33 30//29 +f 30//29 34//33 35//34 +f 35//34 34//33 32//31 +f 32//31 34//33 33//32 +f 33//32 36//35 31//30 +f 31//30 36//35 37//36 +f 38//37 39//38 40//39 +f 41//40 42//41 40//39 +f 40//39 42//41 38//37 +f 29//2 28//28 43//42 +f 43//42 28//28 44//43 +f 36//35 45//44 37//36 +f 37//36 45//44 46//45 +f 46//45 45//44 41//40 +f 41//40 45//44 42//41 +f 43//42 44//43 47//46 +f 47//46 44//43 48//47 +f 47//46 48//47 49//48 +f 47//46 49//48 50//49 +f 38//37 51//50 39//38 +f 39//38 51//50 52//51 +f 52//51 51//50 53//52 +f 52//51 53//52 54//53 +f 54//53 53//52 50//49 +f 54//53 50//49 49//48 +f 55//54 52//51 54//53 +f 28//28 56//55 44//43 +f 30//29 57//56 28//28 +f 41//40 58//57 46//45 +f 59//58 25//25 27//27 +f 1//1 60//59 17//17 +f 3//3 61//60 1//1 +f 14//14 62//61 19//19 +f 63//62 64//63 65//64 +f 66//65 67//66 68//67 +f 69//68 70//69 71//70 +f 63//62 68//67 64//63 +f 64//63 68//67 67//66 +f 72//71 71//70 73//72 +f 73//72 71//70 74//73 +f 74//73 75//74 73//72 +f 65//64 75//74 63//62 +f 63//62 75//74 74//73 +f 72//71 69//68 71//70 +f 76//75 77//76 78//77 +f 78//77 77//76 79//78 +f 79//78 77//76 71//70 +f 79//78 71//70 80//79 +f 80//79 71//70 70//69 +f 81//80 82//81 83//82 +f 82//81 84//83 83//82 +f 83//82 84//83 85//84 +f 82//81 81//80 86//85 +f 86//85 81//80 87//86 +f 86//85 87//86 88//87 +f 86//85 88//87 89//88 +f 84//83 90//89 85//84 +f 85//84 90//89 91//90 +f 91//90 90//89 92//91 +f 90//89 93//92 92//91 +f 92//91 93//92 94//93 +f 93//92 95//94 94//93 +f 94//93 95//94 96//95 +f 97//96 98//97 99//98 +f 100//99 101//100 99//98 +f 99//98 101//100 97//96 +f 95//94 102//101 96//95 +f 96//95 102//101 103//102 +f 103//102 102//101 100//99 +f 100//99 102//101 101//100 +f 97//96 104//103 98//97 +f 98//97 104//103 105//104 +f 105//104 104//103 106//105 +f 105//104 106//105 107//106 +f 107//106 106//105 89//88 +f 107//106 89//88 88//87 +f 108//107 109//108 110//109 +f 111//110 112//111 113//112 +f 109//108 114//113 110//109 +f 110//109 114//113 115//114 +f 115//114 114//113 112//111 +f 112//111 114//113 113//112 +f 113//112 116//115 111//110 +f 111//110 116//115 117//116 +f 118//117 119//118 120//119 +f 121//120 122//121 120//119 +f 120//119 122//121 118//117 +f 109//108 108//107 123//122 +f 123//122 108//107 124//123 +f 116//115 125//124 117//116 +f 117//116 125//124 126//125 +f 126//125 125//124 121//120 +f 121//120 125//124 122//121 +f 123//122 124//123 127//126 +f 127//126 124//123 128//127 +f 127//126 128//127 129//128 +f 127//126 129//128 130//129 +f 118//117 131//130 119//118 +f 119//118 131//130 132//131 +f 132//131 131//130 133//132 +f 132//131 133//132 134//133 +f 134//133 133//132 130//129 +f 134//133 130//129 129//128 +f 133//132 135//134 130//129 +f 130//129 135//134 136//135 +f 130//129 136//135 137//136 +f 130//129 137//136 127//126 +f 127//126 137//136 138//137 +f 127//126 138//137 123//122 +f 139//138 109//108 138//137 +f 138//137 109//108 123//122 +f 140//139 114//113 139//138 +f 139//138 114//113 109//108 +f 141//140 113//112 114//113 +f 141//140 114//113 140//139 +f 113//112 141//140 116//115 +f 116//115 141//140 142//141 +f 116//115 142//141 125//124 +f 125//124 142//141 143//142 +f 125//124 143//142 144//143 +f 125//124 144//143 122//121 +f 145//144 118//117 144//143 +f 144//143 118//117 122//121 +f 146//145 118//117 145//144 +f 135//134 133//132 131//130 +f 135//134 131//130 146//145 +f 146//145 131//130 118//117 +f 93//92 147//146 95//94 +f 95//94 147//146 148//147 +f 95//94 148//147 102//101 +f 102//101 148//147 149//148 +f 102//101 149//148 150//149 +f 102//101 150//149 101//100 +f 151//150 97//96 150//149 +f 150//149 97//96 101//100 +f 152//151 97//96 151//150 +f 153//152 106//105 104//103 +f 153//152 104//103 152//151 +f 152//151 104//103 97//96 +f 106//105 153//152 89//88 +f 89//88 153//152 154//153 +f 89//88 154//153 155//154 +f 89//88 155//154 86//85 +f 86//85 155//154 156//155 +f 86//85 156//155 82//81 +f 157//156 84//83 156//155 +f 156//155 84//83 82//81 +f 158//157 90//89 157//156 +f 157//156 90//89 84//83 +f 147//146 93//92 90//89 +f 147//146 90//89 158//157 +f 159//158 160//159 161//160 +f 159//158 161//160 162//161 +f 163//162 164//163 165//164 +f 165//164 164//163 166//165 +f 163//162 165//164 167//166 +f 168//167 169//168 170//169 +f 168//167 170//169 171//170 +f 170//169 172//171 171//170 +f 171//170 172//171 173//172 +f 172//171 174//173 173//172 +f 173//172 174//173 175//174 +f 175//174 174//173 176//175 +f 176//175 177//176 175//174 +f 175//174 177//176 178//177 +f 177//176 179//178 178//177 +f 178//177 179//178 165//164 +f 165//164 179//178 167//166 +f 161//160 169//168 162//161 +f 162//161 169//168 168//167 +f 180//179 181//180 182//181 +f 182//181 181//180 183//182 +f 184//183 185//184 183//182 +f 183//182 185//184 182//181 +f 186//185 187//186 184//183 +f 184//183 187//186 185//184 +f 188//187 189//188 190//189 +f 188//187 190//189 186//185 +f 186//185 190//189 187//186 +f 189//188 188//187 191//190 +f 192//191 193//192 191//190 +f 191//190 193//192 189//188 +f 194//193 195//194 193//192 +f 194//193 193//192 192//191 +f 196//195 197//196 198//197 +f 198//197 197//196 194//193 +f 194//193 197//196 195//194 +f 181//180 180//179 196//195 +f 196//195 180//179 197//196 +f 164//163 199//198 166//165 +f 166//165 199//198 200//199 +f 26//26 201//134 23//23 +f 23//23 201//134 202//135 +f 23//23 202//135 203//136 +f 23//23 203//136 20//20 +f 20//20 203//136 204//137 +f 20//20 204//137 16//16 +f 205//138 2//2 204//137 +f 204//137 2//2 16//16 +f 206//200 7//7 205//138 +f 205//138 7//7 2//2 +f 207//201 6//6 7//7 +f 207//201 7//7 206//200 +f 6//6 207//201 9//9 +f 9//9 207//201 208//141 +f 9//9 208//141 18//18 +f 18//18 208//141 209//142 +f 18//18 209//142 210//202 +f 18//18 210//202 15//15 +f 211//203 11//11 210//202 +f 210//202 11//11 15//15 +f 212//204 11//11 211//203 +f 201//134 26//26 24//24 +f 201//134 24//24 212//204 +f 212//204 24//24 11//11 +f 53//52 213//205 50//49 +f 50//49 213//205 214//206 +f 50//49 214//206 215//207 +f 50//49 215//207 47//46 +f 47//46 215//207 216//137 +f 47//46 216//137 43//42 +f 217//208 29//2 216//137 +f 216//137 29//2 43//42 +f 218//200 34//33 217//208 +f 217//208 34//33 29//2 +f 219//201 33//32 34//33 +f 219//201 34//33 218//200 +f 33//32 219//201 36//35 +f 36//35 219//201 220//141 +f 36//35 220//141 45//44 +f 45//44 220//141 221//142 +f 45//44 221//142 222//209 +f 45//44 222//209 42//41 +f 223//210 38//37 222//209 +f 222//209 38//37 42//41 +f 224//211 38//37 223//210 +f 213//205 53//52 51//50 +f 213//205 51//50 224//211 +f 224//211 51//50 38//37 +f 225//212 226//213 227//214 +f 225//212 227//214 228//215 +f 229//216 225//212 230//217 +f 226//213 225//212 229//216 +f 231//218 232//219 233//220 +f 233//220 232//219 230//217 +f 230//217 232//219 229//216 +f 234//221 235//222 231//218 +f 231//218 235//222 232//219 +f 236//223 237//224 235//222 +f 236//223 235//222 234//221 +f 238//225 237//224 239//226 +f 239//226 237//224 236//223 +f 238//225 239//226 240//227 +f 238//225 240//227 241//228 +f 227//214 241//228 228//215 +f 228//215 241//228 240//227 +f 242//229 243//230 244//231 +f 242//229 244//231 245//232 +f 246//233 247//234 248//235 +f 248//235 247//234 249//236 +f 246//233 248//235 250//237 +f 251//238 252//239 253//240 +f 251//238 253//240 254//241 +f 253//240 255//242 254//241 +f 254//241 255//242 256//243 +f 255//242 257//244 256//243 +f 256//243 257//244 258//245 +f 258//245 257//244 259//246 +f 259//246 260//247 258//245 +f 258//245 260//247 261//248 +f 260//247 262//249 261//248 +f 261//248 262//249 248//235 +f 248//235 262//249 250//237 +f 244//231 252//239 245//232 +f 245//232 252//239 251//238 +f 247//234 263//250 249//236 +f 249//236 263//250 264//251 +f 40//39 265//252 266//253 +f 40//39 266//253 41//40 +f 41//40 266//253 58//57 +f 265//252 40//39 267//254 +f 267//254 40//39 39//38 +f 267//254 39//38 268//255 +f 268//255 39//38 269//256 +f 269//256 39//38 52//51 +f 269//256 52//51 270//257 +f 270//257 52//51 55//54 +f 270//257 55//54 54//53 +f 270//257 54//53 271//258 +f 271//258 54//53 49//48 +f 271//258 49//48 272//259 +f 272//259 49//48 48//47 +f 272//259 48//47 273//260 +f 273//260 48//47 44//43 +f 273//260 44//43 56//55 +f 56//55 28//28 57//56 +f 57//56 30//29 274//261 +f 274//261 30//29 35//34 +f 274//261 35//34 275//262 +f 275//262 35//34 32//31 +f 31//30 276//263 32//31 +f 32//31 276//263 277//264 +f 32//31 277//264 275//262 +f 46//45 58//57 278//265 +f 46//45 278//265 279//266 +f 46//45 279//266 37//36 +f 37//36 279//266 31//30 +f 31//30 279//266 276//263 +f 58//57 266//253 278//265 +f 280//267 269//256 270//257 +f 281//268 273//260 56//55 +f 281//268 56//55 57//56 +f 282//269 274//261 275//262 +f 282//269 275//262 277//264 +f 283//270 278//265 266//253 +f 70//69 69//68 284//271 +f 285//272 286//273 78//77 +f 78//77 79//78 285//272 +f 285//272 79//78 80//79 +f 285//272 80//79 287//274 +f 287//274 80//79 70//69 +f 287//274 70//69 288//275 +f 288//275 70//69 284//271 +f 21//21 289//276 22//22 +f 22//22 289//276 290//277 +f 22//22 290//277 291//278 +f 5//5 292//279 8//8 +f 8//8 292//279 293//280 +f 8//8 293//280 3//3 +f 3//3 293//280 61//60 +f 1//1 61//60 60//59 +f 17//17 60//59 294//281 +f 17//17 294//281 21//21 +f 21//21 294//281 289//276 +f 295//282 296//283 5//5 +f 5//5 296//283 292//279 +f 5//5 4//4 295//282 +f 295//282 4//4 297//284 +f 297//284 4//4 10//10 +f 297//284 10//10 19//19 +f 297//284 19//19 298//285 +f 298//285 19//19 62//61 +f 14//14 13//13 299//286 +f 62//61 14//14 300//287 +f 300//287 14//14 299//286 +f 22//22 291//278 301//288 +f 22//22 301//288 27//27 +f 27//27 301//288 59//58 +f 59//58 301//288 302//289 +f 59//58 302//289 25//25 +f 25//25 302//289 12//12 +f 12//12 302//289 303//290 +f 12//12 303//290 13//13 +f 13//13 303//290 299//286 +f 301//288 304//291 305//292 +f 62//61 300//287 298//285 +f 306//293 294//281 307//294 +f 307//294 294//281 60//59 +f 307//294 60//59 61//60 +f 308//295 61//60 293//280 +f 308//295 293//280 292//279 +f 309//296 303//290 302//289 +f 309//296 302//289 305//292 +f 305//292 302//289 301//288 +f 310//297 311//298 312//299 +f 312//299 311//298 313//300 +f 314//301 311//298 315//302 +f 316//303 314//301 317//304 +f 315//302 318//305 314//301 +f 314//301 318//305 317//304 +f 314//301 316//303 311//298 +f 311//298 316//303 313//300 +f 311//298 310//297 315//302 +f 317//304 319//306 316//303 +f 320//307 313//300 319//306 +f 319//306 313//300 316//303 +f 313//300 320//307 312//299 +f 312//299 320//307 321//308 +f 322//309 323//310 324//311 +f 322//309 324//311 325//312 +f 325//312 324//311 326//313 +f 325//312 326//313 327//314 +f 327//314 326//313 328//315 +f 327//314 328//315 329//316 +f 329//316 328//315 330//317 +f 329//316 330//317 331//318 +f 331//318 330//317 332//319 +f 331//318 332//319 333//320 +f 333//320 332//319 334//321 +f 333//320 334//321 335//322 +f 335//322 334//321 336//323 +f 335//322 336//323 337//324 +f 337//324 336//323 338//325 +f 337//324 338//325 339//326 +f 339//326 338//325 321//308 +f 339//326 321//308 320//307 +f 340//327 322//309 341//328 +f 341//328 322//309 325//312 +f 341//328 325//312 342//329 +f 342//329 325//312 327//314 +f 342//329 327//314 343//330 +f 343//330 327//314 329//316 +f 343//330 329//316 344//331 +f 344//331 329//316 331//318 +f 344//331 331//318 345//332 +f 345//332 331//318 333//320 +f 345//332 333//320 346//333 +f 346//333 333//320 335//322 +f 346//333 335//322 347//334 +f 347//334 335//322 337//324 +f 347//334 337//324 348//335 +f 348//335 337//324 339//326 +f 348//335 339//326 319//306 +f 319//306 339//326 320//307 +f 349//336 323//310 350//337 +f 350//337 323//310 322//309 +f 340//327 351//338 322//309 +f 322//309 351//338 350//337 +f 244//231 352//339 252//239 +f 352//339 353//340 252//239 +f 354//341 250//237 262//249 +f 354//341 262//249 355//342 +f 355//342 262//249 260//247 +f 355//342 260//247 356//343 +f 356//343 260//247 357//344 +f 356//343 357//344 358//345 +f 358//345 357//344 257//244 +f 358//345 257//244 255//242 +f 353//340 255//242 253//240 +f 353//340 253//240 252//239 +f 359//346 246//233 250//237 +f 359//346 250//237 354//341 +f 360//347 358//345 255//242 +f 360//347 255//242 353//340 +f 361//348 247//234 246//233 +f 359//346 361//348 246//233 +f 362//349 363//350 364//351 +f 364//351 363//350 365//352 +f 366//353 367//354 365//352 +f 365//352 367//354 368//355 +f 365//352 368//355 364//351 +f 369//356 370//357 371//358 +f 369//356 371//358 372//359 +f 372//359 371//358 373//360 +f 372//359 373//360 374//361 +f 374//361 373//360 375//362 +f 374//361 375//362 376//363 +f 376//363 375//362 377//364 +f 376//363 377//364 378//365 +f 378//365 377//364 379//366 +f 378//365 379//366 380//367 +f 380//367 379//366 381//368 +f 380//367 381//368 382//369 +f 382//369 381//368 383//370 +f 382//369 383//370 384//371 +f 384//371 383//370 385//372 +f 384//371 385//372 386//373 +f 386//373 385//372 366//353 +f 386//373 366//353 365//352 +f 387//374 369//356 388//375 +f 388//375 369//356 372//359 +f 388//375 372//359 389//376 +f 389//376 372//359 374//361 +f 389//376 374//361 390//377 +f 390//377 374//361 376//363 +f 390//377 376//363 391//378 +f 391//378 376//363 378//365 +f 391//378 378//365 392//379 +f 392//379 378//365 380//367 +f 392//379 380//367 393//380 +f 393//380 380//367 382//369 +f 393//380 382//369 394//381 +f 394//381 382//369 384//371 +f 394//381 384//371 395//382 +f 395//382 384//371 386//373 +f 395//382 386//373 363//350 +f 363//350 386//373 365//352 +f 396//383 370//357 397//384 +f 397//384 370//357 369//356 +f 387//374 398//385 369//356 +f 369//356 398//385 397//384 +f 399//386 400//387 401//388 +f 401//388 400//387 402//389 +f 403//390 404//391 402//389 +f 402//389 404//391 405//392 +f 402//389 405//392 401//388 +f 406//393 407//394 408//395 +f 406//393 408//395 409//396 +f 409//396 408//395 410//397 +f 409//396 410//397 411//398 +f 411//398 410//397 412//399 +f 411//398 412//399 413//400 +f 413//400 412//399 414//401 +f 413//400 414//401 415//402 +f 415//402 414//401 416//403 +f 415//402 416//403 417//404 +f 417//404 416//403 418//405 +f 417//404 418//405 419//406 +f 419//406 418//405 420//407 +f 419//406 420//407 421//408 +f 421//408 420//407 422//409 +f 421//408 422//409 423//410 +f 423//410 422//409 403//390 +f 423//410 403//390 402//389 +f 424//411 406//393 425//412 +f 425//412 406//393 409//396 +f 425//412 409//396 426//413 +f 426//413 409//396 411//398 +f 426//413 411//398 427//414 +f 427//414 411//398 413//400 +f 427//414 413//400 428//415 +f 428//415 413//400 415//402 +f 428//415 415//402 429//416 +f 429//416 415//402 417//404 +f 429//416 417//404 430//417 +f 430//417 417//404 419//406 +f 430//417 419//406 431//418 +f 431//418 419//406 421//408 +f 431//418 421//408 432//419 +f 432//419 421//408 423//410 +f 432//419 423//410 400//387 +f 400//387 423//410 402//389 +f 433//420 407//394 434//421 +f 434//421 407//394 406//393 +f 424//411 435//422 406//393 +f 406//393 435//422 434//421 +f 161//160 436//423 169//168 +f 436//423 437//424 169//168 +f 438//425 167//166 179//178 +f 438//425 179//178 439//426 +f 439//426 179//178 177//176 +f 439//426 177//176 440//427 +f 440//427 177//176 441//428 +f 440//427 441//428 442//429 +f 442//429 441//428 174//173 +f 442//429 174//173 172//171 +f 437//424 172//171 170//169 +f 437//424 170//169 169//168 +f 443//430 163//162 167//166 +f 443//430 167//166 438//425 +f 444//431 442//429 172//171 +f 444//431 172//171 437//424 +f 445//432 164//163 163//162 +f 443//430 445//432 163//162 +f 446//433 447//434 448//435 +f 448//435 447//434 449//436 +f 450//437 451//438 449//436 +f 449//436 451//438 452//439 +f 449//436 452//439 448//435 +f 453//440 454//441 455//442 +f 456//443 457//444 453//440 +f 450//437 449//436 458//445 +f 450//437 458//445 459//446 +f 459//446 458//445 460//447 +f 459//446 460//447 461//448 +f 461//448 460//447 462//449 +f 461//448 462//449 463//450 +f 463//450 462//449 464//451 +f 463//450 464//451 465//452 +f 465//452 464//451 466//453 +f 465//452 466//453 467//454 +f 467//454 466//453 468//455 +f 467//454 468//455 469//456 +f 469//456 468//455 470//457 +f 469//456 470//457 471//458 +f 471//458 470//457 472//459 +f 471//458 472//459 473//460 +f 473//460 472//459 455//442 +f 473//460 455//442 474//461 +f 474//461 455//442 454//441 +f 456//443 453//440 455//442 +f 456//443 455//442 475//462 +f 475//462 455//442 472//459 +f 475//462 472//459 476//463 +f 476//463 472//459 470//457 +f 476//463 470//457 477//464 +f 477//464 470//457 468//455 +f 477//464 468//455 478//465 +f 478//465 468//455 466//453 +f 478//465 466//453 479//466 +f 479//466 466//453 464//451 +f 479//466 464//451 480//467 +f 480//467 464//451 462//449 +f 480//467 462//449 481//468 +f 481//468 462//449 460//447 +f 481//468 460//447 482//469 +f 482//469 460//447 458//445 +f 482//469 458//445 447//434 +f 447//434 458//445 449//436 +f 483//470 474//461 484//471 +f 484//471 474//461 454//441 +f 485//472 484//471 453//440 +f 453//440 484//471 454//441 +f 486//473 485//472 457//444 +f 457//444 485//472 453//440 +f 76//75 78//77 286//273 +f 487//474 488//475 77//76 +f 286//273 489//476 76//75 +f 76//75 489//476 487//474 +f 76//75 487//474 77//76 +f 77//76 488//475 71//70 +f 71//70 488//475 490//477 +f 71//70 490//477 74//73 +f 63//62 491//478 68//67 +f 68//67 491//478 492//479 +f 491//478 63//62 74//73 +f 491//478 74//73 490//477 +f 493//480 66//65 68//67 +f 493//480 68//67 492//479 +f 66//65 493//480 67//66 +f 67//66 493//480 494//481 +f 495//482 64//63 494//481 +f 494//481 64//63 67//66 +f 64//63 495//482 65//64 +f 65//64 495//482 496//483 +f 65//64 496//483 75//74 +f 73//72 497//484 72//71 +f 72//71 497//484 498//485 +f 497//484 73//72 75//74 +f 497//484 75//74 496//483 +f 499//486 284//271 69//68 +f 498//485 500//487 72//71 +f 72//71 500//487 499//486 +f 72//71 499//486 69//68 +f 483//470 501//488 502//489 +f 503//490 504//491 505//492 +f 505//492 504//491 506//493 +f 485//472 486//473 506//493 +f 501//488 484//471 485//472 +f 502//489 501//488 504//491 +f 486//473 505//492 506//493 +f 506//493 504//491 501//488 +f 506//493 501//488 485//472 +f 484//471 501//488 483//470 +f 507//494 94//93 96//95 +f 100//99 508//495 103//102 +f 107//106 509//496 105//104 +f 83//82 510//497 81//80 +f 85//84 511//498 83//82 +f 512//499 132//131 134//133 +f 108//107 513//500 124//123 +f 110//109 514//501 108//107 +f 126//125 515//502 117//116 +f 137//136 377//364 375//362 +f 137//136 375//362 138//137 +f 377//364 137//136 379//366 +f 379//366 137//136 136//135 +f 379//366 136//135 381//368 +f 381//368 136//135 135//134 +f 381//368 135//134 383//370 +f 383//370 135//134 385//372 +f 385//372 135//134 146//145 +f 385//372 146//145 366//353 +f 516//503 517//504 144//143 +f 144//143 517//504 145//144 +f 145//144 517//504 367//354 +f 396//383 141//140 140//139 +f 396//383 140//139 370//357 +f 370//357 140//139 139//138 +f 375//362 373//360 138//137 +f 138//137 373//360 371//358 +f 138//137 371//358 139//138 +f 139//138 371//358 370//357 +f 145//144 367//354 146//145 +f 146//145 367//354 366//353 +f 144//143 143//142 516//503 +f 516//503 143//142 142//141 +f 516//503 142//141 518//505 +f 518//505 142//141 141//140 +f 518//505 141//140 396//383 +f 519//506 397//384 398//385 +f 518//505 396//383 520//507 +f 519//506 520//507 396//383 +f 519//506 396//383 397//384 +f 398//385 521//508 519//506 +f 519//506 521//508 522//509 +f 519//506 522//509 520//507 +f 398//385 523//510 521//508 +f 524//511 525//512 526//513 +f 522//509 521//508 523//510 +f 527//514 528//515 529//516 +f 527//514 529//516 530//517 +f 531//518 530//517 532//519 +f 531//518 532//519 533//520 +f 525//512 533//520 534//521 +f 525//512 534//521 535//522 +f 536//523 522//509 523//510 +f 536//523 523//510 537//524 +f 537//524 523//510 538//525 +f 537//524 538//525 539//526 +f 539//526 538//525 540//527 +f 539//526 540//527 541//528 +f 541//528 540//527 528//515 +f 541//528 528//515 527//514 +f 542//529 527//514 530//517 +f 542//529 530//517 531//518 +f 543//530 531//518 533//520 +f 543//530 533//520 525//512 +f 526//513 525//512 535//522 +f 526//513 535//522 544//531 +f 544//531 535//522 399//386 +f 399//386 401//388 545//532 +f 545//532 401//388 405//392 +f 545//532 405//392 546//533 +f 546//533 405//392 404//391 +f 546//533 404//391 547//534 +f 545//532 544//531 399//386 +f 548//535 547//534 153//152 +f 156//155 418//405 157//156 +f 157//156 418//405 416//403 +f 157//156 416//403 158//157 +f 155//154 403//390 422//409 +f 155//154 422//409 156//155 +f 156//155 422//409 420//407 +f 156//155 420//407 418//405 +f 148//147 147//146 408//395 +f 153//152 547//534 154//153 +f 408//395 407//394 148//147 +f 148//147 407//394 149//148 +f 149//148 407//394 433//420 +f 153//152 152//151 548//535 +f 548//535 152//151 151//150 +f 548//535 151//150 549//536 +f 549//536 151//150 150//149 +f 549//536 150//149 149//148 +f 549//536 149//148 433//420 +f 416//403 414//401 158//157 +f 158//157 414//401 412//399 +f 158//157 412//399 147//146 +f 147//146 412//399 410//397 +f 147//146 410//397 408//395 +f 403//390 155//154 404//391 +f 404//391 155//154 154//153 +f 404//391 154//153 547//534 +f 550//537 434//421 435//422 +f 549//536 433//420 551//538 +f 550//537 551//538 433//420 +f 550//537 433//420 434//421 +f 435//422 552//539 550//537 +f 550//537 552//539 553//540 +f 550//537 553//540 551//538 +f 436//423 554//541 555//542 +f 556//543 553//540 552//539 +f 557//544 558//545 554//541 +f 552//539 435//422 556//543 +f 559//546 556//543 560//547 +f 559//546 560//547 561//548 +f 555//542 554//541 558//545 +f 555//542 558//545 561//548 +f 561//548 558//545 562//549 +f 561//548 562//549 559//546 +f 556//543 559//546 563//550 +f 556//543 563//550 553//540 +f 564//551 436//423 161//160 +f 554//541 436//423 564//551 +f 564//551 565//552 554//541 +f 554//541 565//552 557//544 +f 161//160 160//159 564//551 +f 564//551 160//159 565//552 +f 194//193 173//172 175//174 +f 194//193 175//174 198//197 +f 198//197 175//174 178//177 +f 198//197 178//177 196//195 +f 196//195 178//177 165//164 +f 196//195 165//164 181//180 +f 181//180 165//164 183//182 +f 183//182 165//164 166//165 +f 183//182 166//165 200//199 +f 183//182 200//199 184//183 +f 184//183 200//199 186//185 +f 186//185 200//199 159//158 +f 173//172 194//193 171//170 +f 171//170 194//193 192//191 +f 171//170 192//191 168//167 +f 168//167 192//191 191//190 +f 168//167 191//190 188//187 +f 168//167 188//187 162//161 +f 162//161 188//187 186//185 +f 162//161 186//185 159//158 +f 199//198 445//432 566//553 +f 567//554 200//199 199//198 +f 567//554 199//198 566//553 +f 199//198 164//163 445//432 +f 566//553 568//555 567//554 +f 569//556 568//555 566//553 +f 570//557 571//558 572//559 +f 566//553 445//432 569//556 +f 446//433 572//559 573//560 +f 573//560 572//559 571//558 +f 573//560 571//558 574//561 +f 574//561 571//558 575//562 +f 574//561 575//562 576//563 +f 576//563 575//562 577//564 +f 576//563 577//564 569//556 +f 569//556 577//564 578//565 +f 569//556 578//565 568//555 +f 446//433 448//435 579//566 +f 579//566 448//435 452//439 +f 579//566 452//439 580//567 +f 580//567 452//439 451//438 +f 580//567 451//438 581//568 +f 579//566 572//559 446//433 +f 471//458 210//202 209//142 +f 206//200 450//437 459//446 +f 206//200 459//446 207//201 +f 471//458 473//460 210//202 +f 210//202 473//460 474//461 +f 210//202 474//461 211//203 +f 208//141 467//454 209//142 +f 209//142 467//454 469//456 +f 209//142 469//456 471//458 +f 459//446 461//448 207//201 +f 207//201 461//448 463//450 +f 207//201 463//450 208//141 +f 208//141 463//450 465//452 +f 208//141 465//452 467//454 +f 211//203 474//461 212//204 +f 212//204 474//461 483//470 +f 212//204 483//470 201//134 +f 201//134 483//470 582//569 +f 201//134 582//569 202//135 +f 202//135 582//569 203//136 +f 203//136 582//569 583//570 +f 203//136 583//570 204//137 +f 583//570 581//568 204//137 +f 582//569 483//470 502//489 +f 450//437 206//200 451//438 +f 451//438 206//200 205//138 +f 451//438 205//138 204//137 +f 451//438 204//137 581//568 +f 215//207 321//308 338//325 +f 215//207 338//325 216//137 +f 219//201 218//200 328//315 +f 338//325 336//323 216//137 +f 216//137 336//323 334//321 +f 216//137 334//321 217//208 +f 217//208 334//321 332//319 +f 217//208 332//319 218//200 +f 218//200 332//319 330//317 +f 218//200 330//317 328//315 +f 222//209 349//336 584//571 +f 220//141 323//310 221//142 +f 221//142 323//310 349//336 +f 221//142 349//336 222//209 +f 328//315 326//313 219//201 +f 219//201 326//313 324//311 +f 219//201 324//311 220//141 +f 220//141 324//311 323//310 +f 321//308 215//207 312//299 +f 312//299 215//207 214//206 +f 222//209 584//571 223//210 +f 223//210 584//571 585//572 +f 223//210 585//572 224//211 +f 224//211 585//572 310//297 +f 224//211 310//297 213//205 +f 213//205 310//297 214//206 +f 310//297 312//299 214//206 +f 586//573 350//337 351//338 +f 587//574 584//571 586//573 +f 586//573 584//571 350//337 +f 350//337 584//571 349//336 +f 351//338 588//575 586//573 +f 586//573 588//575 589//576 +f 586//573 589//576 587//574 +f 590//577 589//576 588//575 +f 591//578 592//579 593//580 +f 588//575 351//338 590//577 +f 352//339 592//579 594//581 +f 594//581 592//579 591//578 +f 594//581 591//578 595//582 +f 595//582 591//578 596//583 +f 595//582 596//583 597//584 +f 597//584 596//583 598//585 +f 597//584 598//585 590//577 +f 590//577 598//585 599//586 +f 590//577 599//586 589//576 +f 600//587 352//339 244//231 +f 592//579 352//339 600//587 +f 600//587 593//580 592//579 +f 244//231 243//230 600//587 +f 600//587 243//230 593//580 +f 249//236 234//221 248//235 +f 248//235 234//221 231//218 +f 248//235 231//218 233//220 +f 248//235 233//220 261//248 +f 261//248 233//220 230//217 +f 261//248 230//217 258//245 +f 258//245 230//217 225//212 +f 258//245 225//212 256//243 +f 256//243 225//212 254//241 +f 254//241 225//212 228//215 +f 254//241 228//215 251//238 +f 251//238 228//215 240//227 +f 251//238 240//227 245//232 +f 245//232 240//227 239//226 +f 245//232 239//226 242//229 +f 249//236 264//251 234//221 +f 234//221 264//251 236//223 +f 236//223 264//251 239//226 +f 239//226 264//251 242//229 +f 263//250 361//348 601//588 +f 602//589 264//251 263//250 +f 602//589 263//250 601//588 +f 263//250 247//234 361//348 +f 601//588 603//590 602//589 +f 604//591 603//590 601//588 +f 601//588 361//348 604//591 +f 604//591 361//348 605//592 +f 604//591 605//592 606//593 +f 607//594 606//593 608//595 +f 607//594 608//595 609//596 +f 362//349 610//597 609//596 +f 609//596 610//597 611//598 +f 609//596 611//598 607//594 +f 606//593 607//594 612//599 +f 606//593 612//599 604//591 +f 613//600 367//354 614//601 +f 614//601 367//354 517//504 +f 613//600 364//351 368//355 +f 613//600 368//355 367//354 +f 362//349 364//351 613//600 +f 614//601 610//597 613//600 +f 613//600 610//597 362//349 +f 615//602 616//603 617//604 +f 617//604 616//603 618//605 +f 617//604 618//605 619//606 +f 619//606 618//605 620//607 +f 619//606 620//607 621//608 +f 621//608 620//607 622//609 +f 621//608 622//609 623//610 +f 623//610 622//609 624//611 +f 623//610 624//611 625//612 +f 625//612 624//611 626//613 +f 625//612 626//613 627//614 +f 627//614 626//613 628//615 +f 627//614 628//615 629//616 +f 630//617 629//616 631//618 +f 630//617 631//618 632//619 +f 632//619 631//618 633//620 +f 632//619 633//620 634//621 +f 634//621 633//620 635//622 +f 636//623 615//602 637//624 +f 637//624 615//602 617//604 +f 637//624 617//604 638//625 +f 638//625 617//604 619//606 +f 638//625 619//606 639//626 +f 639//626 619//606 621//608 +f 639//626 621//608 640//627 +f 640//627 621//608 623//610 +f 640//627 623//610 641//628 +f 641//628 623//610 625//612 +f 641//628 625//612 642//629 +f 642//629 625//612 627//614 +f 642//629 627//614 643//630 +f 643//630 627//614 629//616 +f 643//630 629//616 644//631 +f 644//631 629//616 630//617 +f 644//631 630//617 645//632 +f 645//632 630//617 632//619 +f 645//632 632//619 646//633 +f 646//633 632//619 634//621 +f 647//634 648//635 649//636 +f 649//636 648//635 650//637 +f 651//638 652//639 653//640 +f 653//640 652//639 650//637 +f 653//640 650//637 648//635 +f 315//302 310//297 654//641 +f 655//642 656//643 651//638 +f 651//638 318//305 655//642 +f 655//642 318//305 315//302 +f 655//642 315//302 654//641 +f 654//641 310//297 657//644 +f 283//270 266//253 265//252 +f 658//645 283//270 265//252 +f 658//645 265//252 267//254 +f 659//646 267//254 268//255 +f 659//646 268//255 280//267 +f 280//267 268//255 269//256 +f 660//647 280//267 270//257 +f 660//647 270//257 616//603 +f 616//603 270//257 271//258 +f 279//266 278//265 661//648 +f 661//648 278//265 283//270 +f 661//648 635//622 279//266 +f 279//266 635//622 276//263 +f 276//263 635//622 633//620 +f 276//263 633//620 277//264 +f 277//264 633//620 631//618 +f 277//264 631//618 282//269 +f 631//618 629//616 282//269 +f 282//269 629//616 628//615 +f 282//269 628//615 274//261 +f 274//261 628//615 626//613 +f 274//261 626//613 57//56 +f 57//56 626//613 624//611 +f 57//56 624//611 281//268 +f 281//268 624//611 622//609 +f 281//268 622//609 273//260 +f 273//260 622//609 620//607 +f 273//260 620//607 272//259 +f 272//259 620//607 618//605 +f 272//259 618//605 271//258 +f 271//258 618//605 616//603 +f 660//647 616//603 662//649 +f 636//623 663//650 615//602 +f 663//650 664//651 615//602 +f 615//602 664//651 616//603 +f 616//603 664//651 662//649 +f 663//650 636//623 665//652 +f 284//271 666//653 667//654 +f 284//271 667//654 288//275 +f 285//272 668//655 286//273 +f 286//273 668//655 669//656 +f 285//272 670//657 668//655 +f 671//658 672//659 285//272 +f 285//272 672//659 670//657 +f 288//275 667//654 673//660 +f 288//275 673//660 671//658 +f 671//658 673//660 674//661 +f 671//658 674//661 672//659 +f 675//662 676//663 677//664 +f 678//665 679//666 680//667 +f 680//667 679//666 681//668 +f 680//667 681//668 682//669 +f 682//669 681//668 683//670 +f 682//669 683//670 684//671 +f 684//671 683//670 685//672 +f 684//671 685//672 686//673 +f 686//673 685//672 687//674 +f 686//673 687//674 688//675 +f 688//675 687//674 689//676 +f 688//675 689//676 690//677 +f 691//678 690//677 692//679 +f 691//678 692//679 693//680 +f 693//680 692//679 694//681 +f 693//680 694//681 695//682 +f 695//682 694//681 696//683 +f 695//682 696//683 697//684 +f 697//684 696//683 698//685 +f 699//686 678//665 700//687 +f 700//687 678//665 701//688 +f 701//688 678//665 680//667 +f 701//688 680//667 702//689 +f 702//689 680//667 682//669 +f 702//689 682//669 703//690 +f 703//690 682//669 684//671 +f 703//690 684//671 704//691 +f 704//691 684//671 686//673 +f 704//691 686//673 676//663 +f 676//663 686//673 688//675 +f 676//663 688//675 677//664 +f 677//664 688//675 690//677 +f 677//664 690//677 705//692 +f 705//692 690//677 691//678 +f 705//692 691//678 706//693 +f 706//693 691//678 693//680 +f 706//693 693//680 707//694 +f 707//694 693//680 695//682 +f 707//694 695//682 708//695 +f 708//695 695//682 697//684 +f 304//291 301//288 291//278 +f 306//293 290//277 294//281 +f 304//291 291//278 290//277 +f 290//277 289//276 294//281 +f 303//290 309//296 709//696 +f 709//696 309//296 305//292 +f 709//696 305//292 304//291 +f 709//696 698//685 303//290 +f 303//290 698//685 299//286 +f 299//286 698//685 696//683 +f 299//286 696//683 300//287 +f 300//287 696//683 694//681 +f 300//287 694//681 298//285 +f 298//285 694//681 692//679 +f 298//285 692//679 297//284 +f 710//697 306//293 307//294 +f 710//697 307//294 679//666 +f 679//666 307//294 61//60 +f 692//679 690//677 297//284 +f 297//284 690//677 689//676 +f 297//284 689//676 295//282 +f 295//282 689//676 687//674 +f 295//282 687//674 296//283 +f 296//283 687//674 685//672 +f 296//283 685//672 292//279 +f 292//279 685//672 683//670 +f 292//279 683//670 308//295 +f 308//295 683//670 681//668 +f 308//295 681//668 61//60 +f 61//60 681//668 679//666 +f 711//698 698//685 709//696 +f 712//699 708//695 713//700 +f 713//700 708//695 697//684 +f 698//685 711//698 713//700 +f 698//685 713//700 697//684 +f 714//701 708//695 712//699 +f 715//702 716//703 717//704 +f 715//702 717//704 718//705 +f 715//702 648//635 716//703 +f 716//703 648//635 647//634 +f 653//640 648//635 719//706 +f 653//640 719//706 720//707 +f 720//707 651//638 653//640 +f 317//304 318//305 721//708 +f 721//708 318//305 720//707 +f 720//707 318//305 651//638 +f 721//708 720//707 718//705 +f 718//705 720//707 719//706 +f 648//635 715//702 719//706 +f 719//706 715//702 718//705 +f 717//704 722//709 723//710 +f 723//710 724//711 717//704 +f 717//704 724//711 457//444 +f 457//444 724//711 486//473 +f 432//419 390//377 391//378 +f 608//595 606//593 359//346 +f 359//346 606//593 605//592 +f 359//346 605//592 361//348 +f 534//521 533//520 388//375 +f 388//375 533//520 532//519 +f 388//375 532//519 387//374 +f 431//418 432//419 355//342 +f 355//342 432//419 391//378 +f 355//342 391//378 354//341 +f 354//341 391//378 392//379 +f 354//341 392//379 393//380 +f 574//561 576//563 443//430 +f 443//430 576//563 569//556 +f 443//430 569//556 445//432 +f 348//335 477//464 478//465 +f 355//342 442//429 444//431 +f 556//543 435//422 424//411 +f 608//595 359//346 363//350 +f 608//595 363//350 609//596 +f 609//596 363//350 362//349 +f 532//519 530//517 387//374 +f 387//374 530//517 529//516 +f 387//374 529//516 528//515 +f 387//374 528//515 540//527 +f 574//561 443//430 447//434 +f 574//561 447//434 573//560 +f 573//560 447//434 446//433 +f 480//467 481//468 438//425 +f 438//425 481//468 482//469 +f 438//425 482//469 443//430 +f 443//430 482//469 447//434 +f 347//334 348//335 439//426 +f 439//426 348//335 478//465 +f 439//426 478//465 438//425 +f 438//425 478//465 479//466 +f 438//425 479//466 480//467 +f 444//431 426//413 427//414 +f 556//543 424//411 560//547 +f 393//380 394//381 354//341 +f 354//341 394//381 395//382 +f 354//341 395//382 359//346 +f 359//346 395//382 363//350 +f 540//527 538//525 387//374 +f 387//374 538//525 523//510 +f 387//374 523//510 398//385 +f 399//386 535//522 400//387 +f 400//387 535//522 534//521 +f 400//387 534//521 388//375 +f 400//387 388//375 432//419 +f 432//419 388//375 389//376 +f 432//419 389//376 390//377 +f 319//306 475//462 348//335 +f 348//335 475//462 476//463 +f 348//335 476//463 477//464 +f 427//414 428//415 444//431 +f 444//431 428//415 429//416 +f 444//431 429//416 355//342 +f 355//342 429//416 430//417 +f 355//342 430//417 431//418 +f 436//423 555//542 437//424 +f 437//424 555//542 561//548 +f 590//577 351//338 340//327 +f 561//548 560//547 437//424 +f 437//424 560//547 424//411 +f 437//424 424//411 444//431 +f 444//431 424//411 425//412 +f 444//431 425//412 426//413 +f 456//443 718//705 457//444 +f 457//444 718//705 717//704 +f 475//462 721//708 718//705 +f 475//462 718//705 456//443 +f 442//429 355//342 440//427 +f 440//427 355//342 356//343 +f 440//427 356//343 439//426 +f 439//426 356//343 358//345 +f 439//426 358//345 360//347 +f 360//347 342//329 343//330 +f 590//577 340//327 597//584 +f 319//306 317//304 475//462 +f 475//462 317//304 721//708 +f 343//330 344//331 360//347 +f 360//347 344//331 345//332 +f 360//347 345//332 439//426 +f 439//426 345//332 346//333 +f 439//426 346//333 347//334 +f 352//339 594//581 353//340 +f 353//340 594//581 595//582 +f 595//582 597//584 353//340 +f 353//340 597//584 340//327 +f 353//340 340//327 360//347 +f 360//347 340//327 341//328 +f 360//347 341//328 342//329 +f 725//712 726//713 722//709 +f 727//714 726//713 725//712 +f 727//714 725//712 728//715 +f 505//492 729//716 730//717 +f 505//492 730//717 503//490 +f 729//716 505//492 724//711 +f 724//711 505//492 486//473 +f 727//714 731//718 726//713 +f 726//713 731//718 723//710 +f 726//713 723//710 722//709 +f 731//718 727//714 730//717 +f 730//717 729//716 731//718 +f 731//718 729//716 724//711 +f 731//718 724//711 723//710 +f 732//719 488//475 487//474 +f 732//719 487//474 489//476 +f 669//656 489//476 286//273 +f 488//475 732//719 490//477 +f 490//477 732//719 733//720 +f 490//477 733//720 491//478 +f 491//478 733//720 734//721 +f 491//478 734//721 492//479 +f 492//479 734//721 735//722 +f 492//479 735//722 493//480 +f 494//481 493//480 736//723 +f 736//723 493//480 735//722 +f 494//481 736//723 495//482 +f 495//482 736//723 737//724 +f 495//482 737//724 496//483 +f 496//483 737//724 738//725 +f 496//483 738//725 497//484 +f 497//484 738//725 739//726 +f 497//484 739//726 498//485 +f 498//485 739//726 740//727 +f 498//485 740//727 500//487 +f 500//487 740//727 499//486 +f 499//486 740//727 741//728 +f 499//486 741//728 284//271 +f 284//271 741//728 666//653 +f 742//729 743//730 727//714 +f 727//714 743//730 730//717 +f 730//717 743//730 744//731 +f 745//732 502//489 504//491 +f 730//717 744//731 746//733 +f 745//732 504//491 503//490 +f 746//733 503//490 730//717 +f 747//734 582//569 502//489 +f 747//734 502//489 748//735 +f 502//489 745//732 748//735 +f 99//98 749//736 100//99 +f 100//99 749//736 508//495 +f 99//98 750//737 749//736 +f 98//97 751//738 99//98 +f 99//98 751//738 750//737 +f 752//739 751//738 98//97 +f 87//86 753//740 88//87 +f 88//87 753//740 754//741 +f 88//87 754//741 107//106 +f 107//106 754//741 509//496 +f 105//104 509//496 755//742 +f 105//104 755//742 98//97 +f 98//97 755//742 752//739 +f 92//91 756//743 91//90 +f 91//90 756//743 757//744 +f 91//90 757//744 85//84 +f 85//84 757//744 511//498 +f 83//82 511//498 510//497 +f 81//80 510//497 758//745 +f 81//80 758//745 87//86 +f 87//86 758//745 753//740 +f 94//93 507//494 759//746 +f 94//93 759//746 92//91 +f 92//91 759//746 756//743 +f 103//102 508//495 760//747 +f 103//102 760//747 761//748 +f 103//102 761//748 96//95 +f 96//95 761//748 507//494 +f 507//494 761//748 762//749 +f 508//495 749//736 760//747 +f 762//749 759//746 507//494 +f 763//750 755//742 509//496 +f 763//750 509//496 754//741 +f 764//751 758//745 510//497 +f 764//751 510//497 511//498 +f 765//752 757//744 756//743 +f 765//752 756//743 759//746 +f 766//753 760//747 749//736 +f 767//754 768//755 769//756 +f 769//756 768//755 770//757 +f 769//756 770//757 771//758 +f 771//758 770//757 772//759 +f 771//758 772//759 773//760 +f 773//760 772//759 774//761 +f 773//760 774//761 775//762 +f 775//762 774//761 776//763 +f 775//762 776//763 777//764 +f 777//764 776//763 778//765 +f 777//764 778//765 779//766 +f 779//766 778//765 780//767 +f 779//766 780//767 781//768 +f 782//769 781//768 783//770 +f 782//769 783//770 784//771 +f 784//771 783//770 785//772 +f 784//771 785//772 786//773 +f 786//773 785//772 787//774 +f 788//775 767//754 789//776 +f 789//776 767//754 769//756 +f 789//776 769//756 790//777 +f 790//777 769//756 771//758 +f 790//777 771//758 791//778 +f 791//778 771//758 773//760 +f 791//778 773//760 792//779 +f 792//779 773//760 775//762 +f 792//779 775//762 793//780 +f 793//780 775//762 777//764 +f 793//780 777//764 794//781 +f 794//781 777//764 779//766 +f 794//781 779//766 795//782 +f 795//782 779//766 781//768 +f 795//782 781//768 796//783 +f 796//783 781//768 782//769 +f 796//783 782//769 797//784 +f 797//784 782//769 784//771 +f 797//784 784//771 798//785 +f 798//785 784//771 786//773 +f 111//110 799//786 112//111 +f 111//110 800//787 799//786 +f 117//116 800//787 111//110 +f 117//116 515//502 801//788 +f 117//116 801//788 800//787 +f 802//789 515//502 126//125 +f 119//118 803//790 120//119 +f 120//119 803//790 121//120 +f 121//120 803//790 804//791 +f 121//120 804//791 126//125 +f 128//127 805//792 129//128 +f 129//128 805//792 806//793 +f 129//128 806//793 134//133 +f 134//133 806//793 807//794 +f 134//133 807//794 512//499 +f 512//499 807//794 132//131 +f 132//131 807//794 808//795 +f 132//131 808//795 119//118 +f 119//118 808//795 809//796 +f 119//118 809//796 803//790 +f 799//786 810//797 112//111 +f 112//111 810//797 115//114 +f 115//114 810//797 811//798 +f 115//114 811//798 110//109 +f 110//109 811//798 514//501 +f 108//107 514//501 513//500 +f 124//123 513//500 812//799 +f 124//123 812//799 128//127 +f 128//127 812//799 805//792 +f 126//125 804//791 802//789 +f 813//800 809//796 814//801 +f 815//802 816//803 817//804 +f 818//805 817//804 819//806 +f 820//807 821//808 822//809 +f 799//786 823//810 810//797 +f 810//797 823//810 824//811 +f 810//797 824//811 811//798 +f 811//798 824//811 822//809 +f 811//798 822//809 514//501 +f 514//501 822//809 821//808 +f 514//501 821//808 513//500 +f 513//500 821//808 825//812 +f 513//500 825//812 812//799 +f 812//799 825//812 826//813 +f 812//799 826//813 805//792 +f 805//792 826//813 827//814 +f 805//792 827//814 806//793 +f 806//793 827//814 819//806 +f 806//793 819//806 807//794 +f 807//794 819//806 817//804 +f 807//794 817//804 808//795 +f 808//795 817//804 816//803 +f 808//795 816//803 809//796 +f 803//790 809//796 813//800 +f 803//790 813//800 804//791 +f 802//789 804//791 828//815 +f 829//816 826//813 825//812 +f 829//816 825//812 830//817 +f 826//813 829//816 831//818 +f 827//814 831//818 818//805 +f 815//802 817//804 832//819 +f 832//819 817//804 818//805 +f 833//820 814//801 816//803 +f 833//820 816//803 815//802 +f 834//821 835//822 836//823 +f 836//823 835//822 837//824 +f 836//823 837//824 838//825 +f 838//825 837//824 839//826 +f 838//825 839//826 829//816 +f 829//816 839//826 840//827 +f 829//816 840//827 841//828 +f 841//828 840//827 842//829 +f 841//828 842//829 843//830 +f 843//830 842//829 844//831 +f 843//830 844//831 832//819 +f 832//819 844//831 845//832 +f 832//819 845//832 846//833 +f 846//833 845//832 847//834 +f 846//833 847//834 833//820 +f 833//820 847//834 848//835 +f 833//820 848//835 849//836 +f 849//836 848//835 850//837 +f 849//836 850//837 851//838 +f 851//838 850//837 852//839 +f 853//840 834//821 820//807 +f 820//807 834//821 836//823 +f 820//807 836//823 830//817 +f 830//817 836//823 838//825 +f 830//817 838//825 829//816 +f 831//818 829//816 841//828 +f 831//818 841//828 818//805 +f 818//805 841//828 843//830 +f 818//805 843//830 832//819 +f 815//802 832//819 846//833 +f 815//802 846//833 833//820 +f 814//801 833//820 849//836 +f 814//801 849//836 854//841 +f 854//841 849//836 851//838 +f 855//842 856//843 857//844 +f 855//842 857//844 858//845 +f 857//844 859//846 858//845 +f 857//844 856//843 860//847 +f 861//848 862//849 863//850 +f 861//848 864//851 857//844 +f 857//844 860//847 865//852 +f 857//844 866//853 867//854 +f 862//849 861//848 857//844 +f 857//844 864//851 859//846 +f 865//852 868//855 857//844 +f 857//844 868//855 866//853 +f 869//856 870//857 867//854 +f 870//857 871//858 867//854 +f 871//858 857//844 867//854 +f 863//850 862//849 872//859 +f 872//859 873//860 863//850 +f 863//850 873//860 874//861 +f 875//862 593//580 243//230 +f 242//229 264//251 243//230 +f 243//230 264//251 875//862 +f 875//862 264//251 602//589 +f 876//863 589//576 599//586 +f 876//863 599//586 877//864 +f 877//864 599//586 598//585 +f 878//865 598//585 596//583 +f 879//866 596//583 591//578 +f 879//866 591//578 880//867 +f 880//867 591//578 593//580 +f 585//572 584//571 587//574 +f 585//572 587//574 881//868 +f 587//574 589//576 881//868 +f 881//868 589//576 876//863 +f 657//644 310//297 882//869 +f 882//869 310//297 585//572 +f 882//869 585//572 881//868 +f 602//589 603//590 875//862 +f 883//870 603//590 604//591 +f 883//870 604//591 884//871 +f 884//871 604//591 612//599 +f 884//871 612//599 885//872 +f 885//872 612//599 607//594 +f 885//872 607//594 611//598 +f 886//873 611//598 887//874 +f 887//874 611//598 610//597 +f 887//874 610//597 614//601 +f 887//874 614//601 888//875 +f 888//875 614//601 517//504 +f 888//875 517//504 516//503 +f 888//875 516//503 889//876 +f 516//503 518//505 520//507 +f 516//503 520//507 889//876 +f 522//509 889//876 520//507 +f 526//513 544//531 890//877 +f 526//513 890//877 524//511 +f 525//512 524//511 543//530 +f 543//530 524//511 891//878 +f 531//518 543//530 892//879 +f 531//518 892//879 542//529 +f 542//529 893//880 527//514 +f 527//514 893//880 894//881 +f 527//514 894//881 541//528 +f 539//526 541//528 895//882 +f 539//526 895//882 537//524 +f 537//524 895//882 896//883 +f 537//524 896//883 536//523 +f 536//523 896//883 897//884 +f 536//523 897//884 522//509 +f 898//885 544//531 545//532 +f 898//885 545//532 546//533 +f 898//885 546//533 899//886 +f 546//533 547//534 899//886 +f 899//886 547//534 548//535 +f 548//535 549//536 899//886 +f 899//886 549//536 551//538 +f 899//886 551//538 900//887 +f 900//887 551//538 553//540 +f 901//888 553//540 563//550 +f 902//889 563//550 559//546 +f 902//889 559//546 903//890 +f 903//890 559//546 562//549 +f 903//890 562//549 904//891 +f 904//891 562//549 558//545 +f 904//891 558//545 557//544 +f 905//892 557//544 565//552 +f 159//158 200//199 160//159 +f 160//159 200//199 567//554 +f 567//554 906//893 905//892 +f 567//554 905//892 565//552 +f 567//554 565//552 160//159 +f 906//893 567//554 568//555 +f 906//893 568//555 578//565 +f 906//893 578//565 907//894 +f 907//894 578//565 577//564 +f 908//895 577//564 575//562 +f 909//896 575//562 571//558 +f 909//896 571//558 570//557 +f 570//557 572//559 910//897 +f 910//897 572//559 579//566 +f 579//566 580//567 910//897 +f 910//897 580//567 911//898 +f 583//570 582//569 747//734 +f 580//567 581//568 911//898 +f 911//898 581//568 583//570 +f 911//898 583//570 747//734 +f 661//648 912//899 635//622 +f 913//900 646//633 914//901 +f 914//901 646//633 915//902 +f 915//902 646//633 634//621 +f 912//899 915//902 635//622 +f 635//622 915//902 634//621 +f 916//903 646//633 913//900 +f 646//633 916//903 917//904 +f 636//623 918//905 665//652 +f 637//624 919//906 918//905 +f 637//624 918//905 636//623 +f 919//906 637//624 638//625 +f 638//625 920//907 919//906 +f 921//908 922//909 639//626 +f 639//626 922//909 638//625 +f 638//625 922//909 920//907 +f 640//627 923//910 924//911 +f 924//911 925//912 640//627 +f 640//627 925//912 639//626 +f 639//626 925//912 921//908 +f 923//910 640//627 641//628 +f 923//910 641//628 926//913 +f 641//628 642//629 927//914 +f 641//628 927//914 928//915 +f 926//913 641//628 928//915 +f 642//629 929//916 930//917 +f 642//629 930//917 927//914 +f 643//630 931//918 929//916 +f 643//630 929//916 642//629 +f 646//633 917//904 645//632 +f 917//904 932//919 645//632 +f 645//632 932//919 644//631 +f 644//631 932//919 933//920 +f 933//920 934//921 644//631 +f 644//631 934//921 643//630 +f 643//630 934//921 931//918 +f 656//643 652//639 651//638 +f 280//267 660//647 659//646 +f 935//922 267//254 659//646 +f 659//646 660//647 935//922 +f 661//648 658//645 935//922 +f 935//922 658//645 267//254 +f 661//648 283//270 658//645 +f 935//922 936//923 661//648 +f 935//922 660//647 937//924 +f 938//925 939//926 940//927 +f 663//650 938//925 664//651 +f 940//927 660//647 664//651 +f 660//647 662//649 664//651 +f 937//924 660//647 940//927 +f 940//927 664//651 938//925 +f 939//926 941//928 940//927 +f 940//927 941//928 942//929 +f 940//927 942//929 937//924 +f 665//652 938//925 663//650 +f 938//925 665//652 939//926 +f 943//930 941//928 939//926 +f 943//930 939//926 665//652 +f 921//908 944//931 922//909 +f 922//909 944//931 920//907 +f 920//907 944//931 945//932 +f 920//907 945//932 946//933 +f 918//905 946//933 947//934 +f 918//905 947//934 943//930 +f 665//652 918//905 943//930 +f 946//933 918//905 919//906 +f 946//933 919//906 920//907 +f 948//935 949//936 950//937 +f 951//938 952//939 953//940 +f 954//941 955//942 953//940 +f 953//940 955//942 951//938 +f 954//941 956//943 955//942 +f 949//936 948//935 956//943 +f 949//936 956//943 954//941 +f 957//944 958//945 959//946 +f 960//947 959//946 958//945 +f 961//948 960//947 958//945 +f 962//949 963//950 741//728 +f 741//728 963//950 666//653 +f 963//950 962//949 964//951 +f 964//951 962//949 965//952 +f 964//951 965//952 966//953 +f 965//952 967//954 966//953 +f 954//941 953//940 968//955 +f 741//728 961//948 969//956 +f 969//956 961//948 958//945 +f 969//956 958//945 957//944 +f 969//956 957//944 970//957 +f 970//957 957//944 950//937 +f 970//957 950//937 971//958 +f 971//958 950//937 949//936 +f 971//958 949//936 972//959 +f 972//959 949//936 954//941 +f 972//959 954//941 973//960 +f 973//960 954//941 968//955 +f 962//949 741//728 969//956 +f 962//949 969//956 965//952 +f 965//952 969//956 970//957 +f 965//952 970//957 971//958 +f 965//952 971//958 967//954 +f 967//954 971//958 972//959 +f 967//954 972//959 973//960 +f 974//961 975//962 976//963 +f 977//964 668//655 670//657 +f 977//964 670//657 978//965 +f 979//966 669//656 668//655 +f 980//967 981//968 982//969 +f 979//966 668//655 977//964 +f 978//965 983//970 984//971 +f 674//661 985//972 672//659 +f 672//659 985//972 986//973 +f 976//963 975//962 987//974 +f 974//961 976//963 988//975 +f 988//975 964//951 966//953 +f 667//654 666//653 963//950 +f 988//975 667//654 963//950 +f 976//963 673//660 988//975 +f 988//975 673//660 667//654 +f 673//660 976//963 987//974 +f 673//660 987//974 989//976 +f 673//660 989//976 674//661 +f 674//661 989//976 985//972 +f 978//965 670//657 983//970 +f 983//970 670//657 672//659 +f 983//970 672//659 986//973 +f 978//965 990//977 977//964 +f 977//964 990//977 981//968 +f 977//964 981//968 979//966 +f 979//966 981//968 980//967 +f 964//951 988//975 963//950 +f 991//978 992//979 704//691 +f 704//691 992//979 703//690 +f 704//691 993//980 991//978 +f 994//981 993//980 676//663 +f 676//663 993//980 704//691 +f 675//662 995//982 676//663 +f 676//663 995//982 994//981 +f 675//662 996//983 995//982 +f 997//984 998//985 677//664 +f 677//664 998//985 996//983 +f 677//664 996//983 675//662 +f 999//986 1000//987 705//692 +f 999//986 705//692 706//693 +f 999//986 706//693 1001//988 +f 705//692 1000//987 997//984 +f 705//692 997//984 677//664 +f 1001//988 706//693 1002//989 +f 1002//989 706//693 707//694 +f 714//701 1003//990 708//695 +f 708//695 1003//990 707//694 +f 707//694 1003//990 1002//989 +f 700//687 1004//991 1005//992 +f 700//687 1005//992 699//686 +f 702//689 1006//993 1007//994 +f 702//689 1007//994 701//688 +f 701//688 1007//994 700//687 +f 700//687 1007//994 1004//991 +f 703//690 992//979 1008//995 +f 1008//995 1009//996 703//690 +f 703//690 1009//996 702//689 +f 702//689 1009//996 1006//993 +f 1010//997 699//686 1005//992 +f 679//666 1011//998 710//697 +f 699//686 1010//997 678//665 +f 678//665 1010//997 1012//999 +f 678//665 1012//999 679//666 +f 679//666 1012//999 1011//998 +f 290//277 306//293 710//697 +f 304//291 290//277 1013//1000 +f 290//277 710//697 1013//1000 +f 1013//1000 709//696 304//291 +f 1014//1001 709//696 1013//1000 +f 1013//1000 710//697 1015//1002 +f 1016//1003 1017//1004 1018//1005 +f 1016//1003 1018//1005 1019//1006 +f 1017//1004 712//699 713//700 +f 1017//1004 1016//1003 712//699 +f 709//696 1014//1001 1020//1007 +f 1014//1001 1018//1005 1020//1007 +f 1018//1005 1017//1004 1020//1007 +f 1020//1007 1017//1004 711//698 +f 711//698 709//696 1020//1007 +f 713//700 711//698 1017//1004 +f 1016//1003 1019//1006 1021//1008 +f 1016//1003 1021//1008 1022//1009 +f 714//701 712//699 1022//1009 +f 1022//1009 712//699 1016//1003 +f 999//986 1023//1010 1000//987 +f 999//986 1024//1011 1023//1010 +f 1025//1012 1001//988 1002//989 +f 1025//1012 1026//1013 1027//1014 +f 1002//989 1003//990 1025//1012 +f 1025//1012 1003//990 1026//1013 +f 1021//1008 1027//1014 1022//1009 +f 1022//1009 1027//1014 1026//1013 +f 1022//1009 1026//1013 714//701 +f 714//701 1026//1013 1003//990 +f 1025//1012 1024//1011 1001//988 +f 1001//988 1024//1011 999//986 +f 982//969 1028//1015 1029//1016 +f 982//969 1029//1016 980//967 +f 1030//1017 979//966 980//967 +f 1030//1017 980//967 1029//1016 +f 1030//1017 669//656 979//966 +f 1031//1018 489//476 1030//1017 +f 1030//1017 489//476 669//656 +f 1032//1019 1033//1020 1034//1021 +f 1035//1022 1036//1023 1033//1020 +f 1033//1020 1036//1023 1034//1021 +f 1036//1023 1035//1022 1037//1024 +f 1038//1025 1039//1026 1040//1027 +f 1039//1026 1038//1025 1041//1028 +f 1041//1028 1038//1025 1042//1029 +f 1041//1028 1042//1029 1043//1030 +f 1044//1031 1045//1032 1038//1025 +f 1038//1025 1045//1032 1042//1029 +f 1028//1015 1044//1031 1046//1033 +f 1044//1031 1038//1025 1046//1033 +f 1046//1033 1038//1025 1047//1034 +f 1047//1034 1038//1025 1040//1027 +f 1047//1034 1040//1027 1037//1024 +f 1047//1034 1037//1024 1048//1035 +f 1048//1035 1037//1024 1035//1022 +f 1048//1035 1035//1022 1049//1036 +f 1049//1036 1035//1022 1033//1020 +f 1049//1036 1033//1020 1050//1037 +f 1050//1037 1033//1020 1032//1019 +f 1028//1015 1046//1033 1029//1016 +f 1029//1016 1046//1033 1047//1034 +f 1029//1016 1047//1034 1048//1035 +f 1029//1016 1048//1035 1030//1017 +f 1030//1017 1048//1035 1049//1036 +f 1030//1017 1049//1036 1031//1018 +f 1031//1018 1049//1036 1050//1037 +f 960//947 961//948 740//727 +f 1031//1018 732//719 489//476 +f 740//727 961//948 741//728 +f 1031//1018 1050//1037 732//719 +f 736//723 717//704 716//703 +f 732//719 1050//1037 1051//1038 +f 732//719 1051//1038 733//720 +f 717//704 736//723 722//709 +f 722//709 736//723 735//722 +f 722//709 735//722 725//712 +f 735//722 728//715 725//712 +f 738//725 1052//1039 739//726 +f 739//726 1052//1039 1053//1040 +f 739//726 1053//1040 740//727 +f 740//727 1053//1040 960//947 +f 734//721 1054//1041 735//722 +f 735//722 1054//1041 728//715 +f 736//723 716//703 647//634 +f 736//723 647//634 737//724 +f 1051//1038 1055//1042 733//720 +f 733//720 1055//1042 734//721 +f 734//721 1055//1042 1054//1041 +f 745//732 503//490 746//733 +f 728//715 1056//1043 727//714 +f 727//714 1056//1043 742//729 +f 1057//1044 798//785 1058//1045 +f 798//785 1057//1044 1059//1046 +f 788//775 1060//1047 1061//1048 +f 1062//1049 1063//1050 790//777 +f 790//777 1063//1050 789//776 +f 789//776 1063//1050 1060//1047 +f 789//776 1060//1047 788//775 +f 1064//1051 1065//1052 791//778 +f 791//778 1065//1052 790//777 +f 790//777 1065//1052 1062//1049 +f 1066//1053 1067//1054 792//779 +f 792//779 1067//1054 791//778 +f 791//778 1067//1054 1064//1051 +f 1066//1053 792//779 1068//1055 +f 792//779 793//780 1068//1055 +f 1068//1055 793//780 1069//1056 +f 1069//1056 793//780 1070//1057 +f 794//781 1071//1058 793//780 +f 793//780 1071//1058 1070//1057 +f 1072//1059 1073//1060 794//781 +f 794//781 1073//1060 1071//1058 +f 1072//1059 794//781 795//782 +f 1072//1059 795//782 1074//1061 +f 796//783 1075//1062 795//782 +f 795//782 1075//1062 1074//1061 +f 798//785 1059//1046 797//784 +f 797//784 1059//1046 1076//1063 +f 797//784 1076//1063 796//783 +f 796//783 1076//1063 1077//1064 +f 796//783 1077//1064 1075//1062 +f 1078//1065 788//775 1061//1048 +f 1079//1066 768//755 1080//1067 +f 788//775 1078//1065 767//754 +f 767//754 1078//1065 1080//1067 +f 767//754 1080//1067 768//755 +f 766//753 749//736 750//737 +f 1081//1068 751//738 1082//1069 +f 752//739 1082//1069 751//738 +f 1081//1068 766//753 750//737 +f 1081//1068 750//737 751//738 +f 752//739 755//742 1079//1066 +f 1079//1066 755//742 763//750 +f 1079//1066 763//750 768//755 +f 768//755 763//750 754//741 +f 765//752 780//767 757//744 +f 757//744 780//767 778//765 +f 757//744 778//765 511//498 +f 511//498 778//765 776//763 +f 511//498 776//763 764//751 +f 764//751 776//763 774//761 +f 764//751 774//761 758//745 +f 758//745 774//761 772//759 +f 758//745 772//759 753//740 +f 753//740 772//759 770//757 +f 753//740 770//757 754//741 +f 754//741 770//757 768//755 +f 761//748 760//747 1083//1070 +f 1083//1070 760//747 766//753 +f 1083//1070 787//774 761//748 +f 761//748 787//774 762//749 +f 762//749 787//774 785//772 +f 762//749 785//772 759//746 +f 759//746 785//772 783//770 +f 759//746 783//770 765//752 +f 765//752 783//770 781//768 +f 765//752 781//768 780//767 +f 1058//1045 798//785 1084//1071 +f 1084//1071 798//785 786//773 +f 1083//1070 1085//1072 787//774 +f 787//774 1085//1072 1084//1071 +f 787//774 1084//1071 786//773 +f 1086//1073 835//822 1087//1074 +f 835//822 1086//1073 1088//1075 +f 1089//1076 852//839 1090//1077 +f 1091//1078 1092//1079 848//835 +f 848//835 1092//1079 850//837 +f 850//837 1092//1079 1090//1077 +f 850//837 1090//1077 852//839 +f 1093//1080 1094//1081 847//834 +f 847//834 1094//1081 848//835 +f 848//835 1094//1081 1091//1078 +f 845//832 1095//1082 1096//1083 +f 845//832 1096//1083 1093//1080 +f 845//832 1093//1080 847//834 +f 1095//1082 845//832 1097//1084 +f 1097//1084 845//832 844//831 +f 842//829 1098//1085 844//831 +f 844//831 1098//1085 1099//1086 +f 1100//1087 1097//1084 844//831 +f 1100//1087 844//831 1099//1086 +f 842//829 1101//1088 1098//1085 +f 1102//1089 840//827 1103//1090 +f 1103//1090 840//827 839//826 +f 840//827 1102//1089 1104//1091 +f 840//827 1104//1091 842//829 +f 842//829 1104//1091 1101//1088 +f 835//822 1088//1075 837//824 +f 837//824 1088//1075 1105//1092 +f 837//824 1105//1092 839//826 +f 839//826 1105//1092 1106//1093 +f 839//826 1106//1093 1103//1090 +f 1107//1094 852//839 1089//1076 +f 1108//1095 813//800 1109//1096 +f 1109//1096 813//800 854//841 +f 852//839 1107//1094 1110//1097 +f 852//839 1110//1097 851//838 +f 851//838 1110//1097 1109//1096 +f 851//838 1109//1096 854//841 +f 823//810 799//786 800//787 +f 828//815 515//502 802//789 +f 1111//1098 823//810 800//787 +f 1111//1098 800//787 801//788 +f 828//815 804//791 1108//1095 +f 1108//1095 804//791 813//800 +f 854//841 813//800 814//801 +f 814//801 809//796 816//803 +f 824//811 823//810 1112//1099 +f 853//840 820//807 822//809 +f 853//840 822//809 1112//1099 +f 1112//1099 822//809 824//811 +f 818//805 819//806 827//814 +f 831//818 827//814 826//813 +f 830//817 825//812 821//808 +f 830//817 821//808 820//807 +f 1087//1074 835//822 1113//1100 +f 1113//1100 835//822 834//821 +f 1112//1099 1114//1101 853//840 +f 853//840 1114//1101 1113//1100 +f 853//840 1113//1100 834//821 +f 873//860 1115//1102 1116//1103 +f 863//850 874//861 1117//1104 +f 1117//1104 874//861 1116//1103 +f 1116//1103 874//861 873//860 +f 863//850 1117//1104 1118//1105 +f 864//851 861//848 1119//1106 +f 1119//1106 861//848 1118//1105 +f 1118//1105 861//848 863//850 +f 864//851 1119//1106 1120//1107 +f 858//845 859//846 1121//1108 +f 1121//1108 859//846 1120//1107 +f 1120//1107 859//846 864//851 +f 858//845 1121//1108 1122//1109 +f 858//845 1122//1109 855//842 +f 1123//1110 860//847 1122//1109 +f 1122//1109 860//847 856//843 +f 1122//1109 856//843 855//842 +f 1124//1111 868//855 1125//1112 +f 868//855 865//852 1125//1112 +f 1125//1112 865//852 1123//1110 +f 1123//1110 865//852 860//847 +f 868//855 1124//1111 866//853 +f 866//853 1124//1111 1126//1113 +f 1127//1114 867//854 1126//1113 +f 1126//1113 867//854 866//853 +f 867//854 1127//1114 869//856 +f 869//856 1127//1114 1128//1115 +f 1129//1116 870//857 1128//1115 +f 1128//1115 870//857 869//856 +f 870//857 1129//1116 871//858 +f 871//858 1129//1116 1130//1117 +f 1131//1118 857//844 1130//1117 +f 1130//1117 857//844 871//858 +f 857//844 1131//1118 862//849 +f 862//849 1131//1118 1132//1119 +f 873//860 872//859 1115//1102 +f 1115//1102 872//859 1132//1119 +f 1132//1119 872//859 862//849 +f 596//583 879//866 878//865 +f 598//585 878//865 877//864 +f 603//590 883//870 875//862 +f 593//580 875//862 880//867 +f 611//598 886//873 885//872 +f 889//876 522//509 897//884 +f 541//528 1133//1120 895//882 +f 894//881 1133//1120 541//528 +f 543//530 891//878 892//879 +f 542//529 892//879 893//880 +f 544//531 898//885 890//877 +f 563//550 902//889 901//888 +f 553//540 901//888 900//887 +f 557//544 905//892 904//891 +f 575//562 909//896 908//895 +f 577//564 908//895 907//894 +f 570//557 910//897 1134//1121 +f 1135//1122 1136//1123 936//923 +f 915//902 912//899 1136//1123 +f 912//899 661//648 1136//1123 +f 1137//1124 915//902 1136//1123 +f 1138//1125 913//900 914//901 +f 1138//1125 914//901 1137//1124 +f 1137//1124 914//901 915//902 +f 661//648 936//923 1136//1123 +f 1136//1123 1135//1122 1137//1124 +f 1137//1124 1135//1122 1138//1125 +f 1138//1125 1135//1122 1139//1126 +f 1139//1126 1140//1127 1138//1125 +f 1138//1125 1140//1127 1141//1128 +f 1138//1125 1141//1128 913//900 +f 913//900 1141//1128 916//903 +f 1142//1129 930//917 929//916 +f 1142//1129 929//916 931//918 +f 1143//1130 1141//1128 1140//1127 +f 917//904 916//903 1141//1128 +f 917//904 1141//1128 932//919 +f 932//919 1141//1128 1143//1130 +f 932//919 1143//1130 1144//1131 +f 931//918 1145//1132 1142//1129 +f 933//920 932//919 1144//1131 +f 933//920 1144//1131 934//921 +f 934//921 1144//1131 1145//1132 +f 934//921 1145//1132 931//918 +f 1146//1133 1147//1134 1148//1135 +f 737//724 647//634 649//636 +f 650//637 652//639 1149//1136 +f 945//932 944//931 1150//1137 +f 930//917 1151//1138 927//914 +f 924//911 923//910 1152//1139 +f 1152//1139 923//910 926//913 +f 928//915 1151//1138 926//913 +f 1151//1138 928//915 927//914 +f 925//912 1153//1140 921//908 +f 1150//1137 946//933 945//932 +f 654//641 942//929 941//928 +f 942//929 654//641 937//924 +f 937//924 654//641 657//644 +f 937//924 657//644 935//922 +f 935//922 657//644 882//869 +f 935//922 882//869 936//923 +f 936//923 882//869 881//868 +f 941//928 943//930 654//641 +f 654//641 943//930 947//934 +f 654//641 947//934 655//642 +f 652//639 656//643 1154//1141 +f 1154//1141 656//643 1155//1142 +f 1154//1141 1155//1142 1156//1143 +f 1146//1133 649//636 1147//1134 +f 1147//1134 649//636 650//637 +f 737//724 649//636 738//725 +f 738//725 649//636 1146//1133 +f 738//725 1146//1133 1052//1039 +f 1052//1039 1146//1133 1148//1135 +f 1052//1039 1148//1135 1157//1144 +f 1052//1039 1157//1144 1053//1040 +f 1053//1040 1157//1144 1158//1145 +f 1053//1040 1158//1145 959//946 +f 1053//1040 959//946 960//947 +f 959//946 1158//1145 1159//1146 +f 959//946 1159//1146 1160//1147 +f 950//937 957//944 1160//1147 +f 1160//1147 957//944 959//946 +f 948//935 1161//1148 1162//1149 +f 1162//1149 956//943 948//935 +f 1152//1139 955//942 1162//1149 +f 1162//1149 955//942 956//943 +f 1152//1139 951//938 955//942 +f 952//939 951//938 1152//1139 +f 952//939 1152//1139 1151//1138 +f 1151//1138 1152//1139 926//913 +f 1163//1150 1164//1151 1156//1143 +f 944//931 921//908 1163//1150 +f 1163//1150 921//908 1153//1140 +f 1163//1150 1153//1140 1164//1151 +f 1164//1151 1153//1140 1165//1152 +f 925//912 924//911 1152//1139 +f 925//912 1152//1139 1153//1140 +f 1153//1140 1152//1139 1162//1149 +f 1153//1140 1162//1149 1165//1152 +f 1165//1152 1162//1149 1161//1148 +f 656//643 655//642 1155//1142 +f 1155//1142 655//642 1166//1153 +f 1155//1142 1166//1153 1156//1143 +f 1167//1154 1156//1143 1164//1151 +f 1167//1154 1164//1151 1168//1155 +f 1168//1155 1164//1151 1165//1152 +f 1168//1155 1165//1152 1169//1156 +f 1169//1156 1165//1152 1161//1148 +f 1169//1156 1161//1148 1170//1157 +f 1170//1157 1161//1148 948//935 +f 1170//1157 948//935 950//937 +f 655//642 947//934 1166//1153 +f 1166//1153 947//934 946//933 +f 1166//1153 946//933 1156//1143 +f 1156//1143 946//933 1150//1137 +f 1156//1143 1150//1137 1163//1150 +f 1163//1150 1150//1137 944//931 +f 1147//1134 650//637 1149//1136 +f 1147//1134 1149//1136 1148//1135 +f 1148//1135 1149//1136 1171//1158 +f 1148//1135 1171//1158 1157//1144 +f 1157//1144 1171//1158 1172//1159 +f 1157//1144 1172//1159 1158//1145 +f 1158//1145 1172//1159 1173//1160 +f 1158//1145 1173//1160 1159//1146 +f 1170//1157 950//937 1160//1147 +f 1170//1157 1160//1147 1169//1156 +f 1169//1156 1160//1147 1159//1146 +f 1169//1156 1159//1146 1168//1155 +f 1168//1155 1159//1146 1173//1160 +f 1168//1155 1173//1160 1167//1154 +f 1167//1154 1173//1160 1172//1159 +f 1167//1154 1172//1159 1156//1143 +f 1156//1143 1172//1159 1171//1158 +f 1156//1143 1171//1158 1154//1141 +f 1154//1141 1171//1158 1149//1136 +f 1154//1141 1149//1136 652//639 +f 953//940 1174//1161 968//955 +f 966//953 967//954 1175//1162 +f 1176//1163 1177//1164 1175//1162 +f 968//955 1176//1163 973//960 +f 973//960 1176//1163 1175//1162 +f 973//960 1175//1162 967//954 +f 989//976 987//974 975//962 +f 983//970 986//973 985//972 +f 990//977 978//965 984//971 +f 1178//1165 1179//1166 1180//1167 +f 1181//1168 1182//1169 1183//1170 +f 1184//1171 1185//1172 1186//1173 +f 1186//1173 1185//1172 1187//1174 +f 1188//1175 1189//1176 1190//1177 +f 1190//1177 1189//1176 1191//1178 +f 1189//1176 1188//1175 1184//1171 +f 1184//1171 1188//1175 1185//1172 +f 1175//1162 1177//1164 1191//1178 +f 1192//1179 1181//1168 1183//1170 +f 1192//1179 1183//1170 1178//1165 +f 1178//1165 1183//1170 1193//1180 +f 1178//1165 1193//1180 1179//1166 +f 982//969 981//968 990//977 +f 982//969 990//977 1180//1167 +f 1190//1177 1191//1178 1177//1164 +f 1186//1173 1187//1174 1182//1169 +f 1186//1173 1182//1169 1181//1168 +f 988//975 966//953 974//961 +f 974//961 966//953 1175//1162 +f 974//961 1175//1162 1191//1178 +f 974//961 1191//1178 975//962 +f 975//962 1191//1178 1189//1176 +f 975//962 1189//1176 989//976 +f 989//976 1189//1176 1184//1171 +f 989//976 1184//1171 985//972 +f 985//972 1184//1171 1186//1173 +f 985//972 1186//1173 983//970 +f 983//970 1186//1173 1181//1168 +f 983//970 1181//1168 984//971 +f 984//971 1181//1168 1192//1179 +f 984//971 1192//1179 990//977 +f 990//977 1192//1179 1178//1165 +f 990//977 1178//1165 1180//1167 +f 1045//1032 1194//1181 1042//1029 +f 1045//1032 1195//1182 1194//1181 +f 1028//1015 982//969 1180//1167 +f 1180//1167 1179//1166 1195//1182 +f 1180//1167 1195//1182 1028//1015 +f 1028//1015 1195//1182 1045//1032 +f 1028//1015 1045//1032 1044//1031 +f 1196//1183 1197//1184 1198//1185 +f 1008//995 992//979 1199//1186 +f 1008//995 1199//1186 1009//996 +f 1009//996 1199//1186 1200//1187 +f 1198//1185 1197//1184 1201//1188 +f 1198//1185 1201//1188 1004//991 +f 1004//991 1201//1188 1005//992 +f 1007//994 1006//993 1202//1189 +f 1004//991 1007//994 1202//1189 +f 1004//991 1202//1189 1198//1185 +f 1198//1185 1202//1189 1196//1183 +f 1006//993 1009//996 1200//1187 +f 1006//993 1200//1187 1203//1190 +f 1006//993 1203//1190 1202//1189 +f 1202//1189 1203//1190 1196//1183 +f 1201//1188 1197//1184 1204//1191 +f 1205//1192 1010//997 1005//992 +f 1005//992 1201//1188 1205//1192 +f 1012//999 1010//997 1205//1192 +f 1012//999 1206//1193 1011//998 +f 1015//1002 710//697 1206//1193 +f 1205//1192 1201//1188 1207//1194 +f 1205//1192 1207//1194 1012//999 +f 1012//999 1207//1194 1206//1193 +f 1011//998 1206//1193 710//697 +f 1204//1191 1208//1195 1207//1194 +f 1208//1195 1015//1002 1206//1193 +f 1208//1195 1206//1193 1207//1194 +f 1204//1191 1207//1194 1201//1188 +f 1209//1196 1054//1041 1055//1042 +f 728//715 1054//1041 1056//1043 +f 1056//1043 1054//1041 1209//1196 +f 1056//1043 1209//1196 742//729 +f 743//730 742//729 1210//1197 +f 1211//1198 744//731 743//730 +f 745//732 746//733 1212//1199 +f 1212//1199 746//733 1213//1200 +f 1213//1200 746//733 744//731 +f 1027//1014 1021//1008 748//735 +f 748//735 1021//1008 1019//1006 +f 748//735 1019//1006 1018//1005 +f 748//735 1018//1005 1014//1001 +f 748//735 1014//1001 747//734 +f 747//734 1014//1001 911//898 +f 1014//1001 1013//1000 911//898 +f 911//898 1013//1000 910//897 +f 1013//1000 1015//1002 910//897 +f 1025//1012 1027//1014 1024//1011 +f 1023//1010 1024//1011 1214//1201 +f 1215//1202 1023//1010 1214//1201 +f 1215//1202 1000//987 1023//1010 +f 1216//1203 998//985 997//984 +f 994//981 1217//1204 993//980 +f 1218//1205 995//982 996//983 +f 1218//1205 996//983 1216//1203 +f 1216//1203 996//983 998//985 +f 1039//1026 1041//1028 1218//1205 +f 1218//1205 1041//1028 1043//1030 +f 994//981 995//982 1217//1204 +f 1217//1204 995//982 1218//1205 +f 1217//1204 1218//1205 1043//1030 +f 1219//1206 1040//1027 1039//1026 +f 1034//1021 1036//1023 1220//1207 +f 1034//1021 1221//1208 1032//1019 +f 1032//1019 1221//1208 1222//1209 +f 1032//1019 1222//1209 1051//1038 +f 1032//1019 1051//1038 1050//1037 +f 1223//1210 1051//1038 1222//1209 +f 742//729 1209//1196 1210//1197 +f 1210//1197 1209//1196 1055//1042 +f 1210//1197 1055//1042 1224//1211 +f 1224//1211 1055//1042 1223//1210 +f 1223//1210 1055//1042 1051//1038 +f 1225//1212 1226//1213 1227//1214 +f 1227//1214 1226//1213 1228//1215 +f 1227//1214 1228//1215 1229//1216 +f 1229//1216 1228//1215 1220//1207 +f 1229//1216 1220//1207 1230//1217 +f 1230//1217 1220//1207 1036//1023 +f 1230//1217 1036//1023 1037//1024 +f 1000//987 1215//1202 997//984 +f 997//984 1215//1202 1231//1218 +f 997//984 1231//1218 1216//1203 +f 1216//1203 1231//1218 1219//1206 +f 1216//1203 1219//1206 1218//1205 +f 1218//1205 1219//1206 1039//1026 +f 1232//1219 1233//1220 1225//1212 +f 1225//1212 1233//1220 1226//1213 +f 748//735 745//732 1027//1014 +f 1027//1014 745//732 1232//1219 +f 1027//1014 1232//1219 1024//1011 +f 1024//1011 1232//1219 1225//1212 +f 1024//1011 1225//1212 1214//1201 +f 1214//1201 1225//1212 1227//1214 +f 1214//1201 1227//1214 1215//1202 +f 1215//1202 1227//1214 1229//1216 +f 1215//1202 1229//1216 1231//1218 +f 1231//1218 1229//1216 1230//1217 +f 1231//1218 1230//1217 1219//1206 +f 1219//1206 1230//1217 1037//1024 +f 1219//1206 1037//1024 1040//1027 +f 744//731 1211//1198 1213//1200 +f 1213//1200 1211//1198 1234//1221 +f 1213//1200 1234//1221 1212//1199 +f 1221//1208 1235//1222 1222//1209 +f 1222//1209 1235//1222 1223//1210 +f 1223//1210 1235//1222 1236//1223 +f 1223//1210 1236//1223 1224//1211 +f 1224//1211 1236//1223 1234//1221 +f 1224//1211 1234//1221 1210//1197 +f 1210//1197 1234//1221 1211//1198 +f 1210//1197 1211//1198 743//730 +f 1221//1208 1034//1021 1220//1207 +f 1221//1208 1220//1207 1235//1222 +f 1235//1222 1220//1207 1228//1215 +f 1235//1222 1228//1215 1226//1213 +f 1235//1222 1226//1213 1236//1223 +f 1236//1223 1226//1213 1233//1220 +f 1236//1223 1233//1220 1234//1221 +f 1234//1221 1233//1220 1212//1199 +f 1212//1199 1233//1220 1232//1219 +f 1212//1199 1232//1219 745//732 +f 1237//1224 1238//1225 1239//1226 +f 1237//1224 1239//1226 1240//1227 +f 1237//1224 1240//1227 1058//1045 +f 1058//1045 1240//1227 1057//1044 +f 1241//1228 1242//1229 1243//1230 +f 1243//1230 1242//1229 1060//1047 +f 1243//1230 1060//1047 1244//1231 +f 1065//1052 1245//1232 1062//1049 +f 1062//1049 1245//1232 1244//1231 +f 1244//1231 1245//1232 1246//1233 +f 1244//1231 1246//1233 1243//1230 +f 1247//1234 1064//1051 1067//1054 +f 1248//1235 1076//1063 1249//1236 +f 1249//1236 1076//1063 1250//1237 +f 1251//1238 1076//1063 1248//1235 +f 1076//1063 1059//1046 1250//1237 +f 1250//1237 1059//1046 1057//1044 +f 1062//1049 1244//1231 1063//1050 +f 1063//1050 1244//1231 1060//1047 +f 1066//1053 1252//1239 1067//1054 +f 1065//1052 1064//1051 1247//1234 +f 1065//1052 1247//1234 1245//1232 +f 1061//1048 1060//1047 1242//1229 +f 1239//1226 1249//1236 1250//1237 +f 1239//1226 1250//1237 1240//1227 +f 1240//1227 1250//1237 1057//1044 +f 1253//1240 1072//1059 1074//1061 +f 1253//1240 1074//1061 1254//1241 +f 1254//1241 1074//1061 1075//1062 +f 1254//1241 1075//1062 1251//1238 +f 1251//1238 1075//1062 1077//1064 +f 1251//1238 1077//1064 1076//1063 +f 1255//1242 1242//1229 1241//1228 +f 1255//1242 1256//1243 1242//1229 +f 1242//1229 1256//1243 1061//1048 +f 1061//1048 1256//1243 1257//1244 +f 1061//1048 1257//1244 1078//1065 +f 1078//1065 1258//1245 1080//1067 +f 1258//1245 1078//1065 1257//1244 +f 1258//1245 1257//1244 1256//1243 +f 1079//1066 1080//1067 1258//1245 +f 1255//1242 1259//1246 1256//1243 +f 1256//1243 1259//1246 1258//1245 +f 1258//1245 1259//1246 1260//1247 +f 1258//1245 1260//1247 1079//1066 +f 1260//1247 1261//1248 1079//1066 +f 1079//1066 1261//1248 1081//1068 +f 1079//1066 1081//1068 1082//1069 +f 1079//1066 1082//1069 752//739 +f 1083//1070 766//753 1081//1068 +f 1261//1248 1262//1249 1083//1070 +f 1261//1248 1083//1070 1081//1068 +f 1085//1072 1083//1070 1263//1250 +f 1237//1224 1084//1071 1263//1250 +f 1085//1072 1263//1250 1084//1071 +f 1084//1071 1237//1224 1058//1045 +f 1264//1251 1238//1225 1237//1224 +f 1264//1251 1237//1224 1263//1250 +f 1263//1250 1083//1070 1262//1249 +f 1263//1250 1262//1249 1264//1251 +f 1265//1252 1266//1253 1267//1254 +f 1268//1255 1267//1254 1266//1253 +f 1265//1252 1267//1254 1269//1256 +f 1265//1252 1269//1256 1087//1074 +f 1087//1074 1269//1256 1086//1073 +f 1270//1257 1092//1079 1091//1078 +f 1271//1258 1272//1259 1273//1260 +f 1273//1260 1272//1259 1274//1261 +f 1273//1260 1274//1261 1270//1257 +f 1094//1081 1275//1262 1091//1078 +f 1091//1078 1275//1262 1276//1263 +f 1091//1078 1276//1263 1270//1257 +f 1270//1257 1276//1263 1273//1260 +f 1277//1264 1105//1092 1278//1265 +f 1278//1265 1105//1092 1279//1266 +f 1280//1267 1281//1268 1102//1089 +f 1102//1089 1281//1268 1104//1091 +f 1282//1269 1105//1092 1277//1264 +f 1105//1092 1088//1075 1279//1266 +f 1279//1266 1088//1075 1086//1073 +f 1270//1257 1274//1261 1092//1079 +f 1092//1079 1274//1261 1090//1077 +f 1089//1076 1090//1077 1274//1261 +f 1095//1082 1283//1270 1096//1083 +f 1093//1080 1096//1083 1284//1271 +f 1093//1080 1284//1271 1094//1081 +f 1094//1081 1284//1271 1275//1262 +f 1089//1076 1274//1261 1272//1259 +f 1267//1254 1278//1265 1279//1266 +f 1267//1254 1279//1266 1269//1256 +f 1269//1256 1279//1266 1086//1073 +f 1280//1267 1102//1089 1103//1090 +f 1280//1267 1103//1090 1282//1269 +f 1282//1269 1103//1090 1106//1093 +f 1282//1269 1106//1093 1105//1092 +f 1271//1258 1285//1272 1272//1259 +f 1089//1076 1272//1259 1286//1273 +f 1089//1076 1286//1273 1107//1094 +f 1110//1097 1287//1274 1109//1096 +f 1272//1259 1288//1275 1286//1273 +f 1107//1094 1286//1273 1110//1097 +f 1287//1274 1110//1097 1286//1273 +f 1287//1274 1286//1273 1288//1275 +f 1108//1095 1109//1096 1287//1274 +f 1285//1272 1289//1276 1288//1275 +f 1288//1275 1289//1276 1287//1274 +f 1287//1274 1289//1276 1290//1277 +f 1287//1274 1290//1277 1108//1095 +f 1272//1259 1285//1272 1288//1275 +f 1290//1277 1291//1278 1108//1095 +f 1111//1098 801//788 515//502 +f 515//502 828//815 1108//1095 +f 515//502 1108//1095 1111//1098 +f 1112//1099 823//810 1292//1279 +f 1292//1279 823//810 1111//1098 +f 1291//1278 1293//1280 1292//1279 +f 1111//1098 1108//1095 1291//1278 +f 1111//1098 1291//1278 1292//1279 +f 1114//1101 1112//1099 1292//1279 +f 1114//1101 1292//1279 1294//1281 +f 1265//1252 1113//1100 1294//1281 +f 1114//1101 1294//1281 1113//1100 +f 1113//1100 1265//1252 1087//1074 +f 1266//1253 1265//1252 1294//1281 +f 1266//1253 1294//1281 1293//1280 +f 1292//1279 1293//1280 1294//1281 +f 1132//1119 1295//1282 1115//1102 +f 1115//1102 1295//1282 1296//1283 +f 1115//1102 1296//1283 1297//1284 +f 1298//1285 1120//1107 1299//1286 +f 1299//1286 1120//1107 1119//1106 +f 1299//1286 1119//1106 1300//1287 +f 1300//1287 1119//1106 1301//1288 +f 1302//1289 1303//1290 1131//1118 +f 1131//1118 1303//1290 1304//1291 +f 1131//1118 1304//1291 1132//1119 +f 1132//1119 1304//1291 1305//1292 +f 1132//1119 1305//1292 1295//1282 +f 1306//1293 1307//1294 1118//1105 +f 1118//1105 1307//1294 1308//1295 +f 1118//1105 1308//1295 1119//1106 +f 1119//1106 1308//1295 1309//1296 +f 1119//1106 1309//1296 1301//1288 +f 1306//1293 1118//1105 1310//1297 +f 1310//1297 1118//1105 1117//1104 +f 1310//1297 1117//1104 1311//1298 +f 1311//1298 1117//1104 1312//1299 +f 1312//1299 1117//1104 1116//1103 +f 1312//1299 1116//1103 1313//1300 +f 1297//1284 1314//1301 1115//1102 +f 1115//1102 1314//1301 1315//1302 +f 1115//1102 1315//1302 1116//1103 +f 1116//1103 1315//1302 1316//1303 +f 1116//1103 1316//1303 1313//1300 +f 1317//1304 1128//1115 1318//1305 +f 1318//1305 1128//1115 1127//1114 +f 1319//1306 1121//1108 1320//1307 +f 1320//1307 1121//1108 1120//1107 +f 1320//1307 1120//1107 1321//1308 +f 1321//1308 1120//1107 1298//1285 +f 1130//1117 1322//1309 1131//1118 +f 1131//1118 1322//1309 1323//1310 +f 1131//1118 1323//1310 1302//1289 +f 1324//1311 1325//1312 1129//1116 +f 1129//1116 1325//1312 1326//1313 +f 1129//1116 1326//1313 1130//1117 +f 1130//1117 1326//1313 1327//1314 +f 1130//1117 1327//1314 1322//1309 +f 1328//1315 1329//1316 1126//1113 +f 1126//1113 1329//1316 1330//1317 +f 1126//1113 1330//1317 1127//1114 +f 1127//1114 1330//1317 1331//1318 +f 1127//1114 1331//1318 1318//1305 +f 1317//1304 1332//1319 1128//1115 +f 1128//1115 1332//1319 1333//1320 +f 1128//1115 1333//1320 1129//1116 +f 1129//1116 1333//1320 1334//1321 +f 1129//1116 1334//1321 1324//1311 +f 1328//1315 1126//1113 1335//1322 +f 1335//1322 1126//1113 1124//1111 +f 1335//1322 1124//1111 1336//1323 +f 1337//1324 1122//1109 1338//1325 +f 1338//1325 1122//1109 1121//1108 +f 1338//1325 1121//1108 1339//1326 +f 1339//1326 1121//1108 1319//1306 +f 1337//1324 1340//1327 1122//1109 +f 1122//1109 1340//1327 1341//1328 +f 1122//1109 1341//1328 1123//1110 +f 1336//1323 1124//1111 1342//1329 +f 1342//1329 1124//1111 1125//1112 +f 1342//1329 1125//1112 1343//1330 +f 1341//1328 1344//1331 1123//1110 +f 1123//1110 1344//1331 1345//1332 +f 1123//1110 1345//1332 1125//1112 +f 1125//1112 1345//1332 1343//1330 +f 910//897 1015//1002 1208//1195 +f 910//897 1208//1195 1134//1121 +f 1134//1121 1208//1195 1204//1191 +f 1140//1127 1139//1126 876//863 +f 876//863 1139//1126 1135//1122 +f 1135//1122 936//923 876//863 +f 876//863 936//923 881//868 +f 1145//1132 1144//1131 1346//1333 +f 1346//1333 1144//1131 1143//1130 +f 1346//1333 1143//1130 876//863 +f 1143//1130 1140//1127 876//863 +f 1347//1334 1142//1129 1145//1132 +f 1347//1334 1145//1132 1346//1333 +f 930//917 1348//1335 1151//1138 +f 930//917 1142//1129 1348//1335 +f 1348//1335 1142//1129 1347//1334 +f 1151//1138 1348//1335 1349//1336 +f 1350//1337 952//939 1151//1138 +f 1350//1337 1151//1138 1349//1336 +f 953//940 952//939 1331//1318 +f 1331//1318 952//939 1318//1305 +f 1330//1317 1174//1161 1331//1318 +f 1331//1318 1174//1161 953//940 +f 1329//1316 1176//1163 1330//1317 +f 1330//1317 1176//1163 968//955 +f 1330//1317 968//955 1174//1161 +f 1335//1322 1190//1177 1328//1315 +f 1328//1315 1190//1177 1177//1164 +f 1328//1315 1177//1164 1329//1316 +f 1329//1316 1177//1164 1176//1163 +f 1190//1177 1335//1322 1188//1175 +f 1188//1175 1335//1322 1336//1323 +f 1342//1329 1185//1172 1336//1323 +f 1336//1323 1185//1172 1188//1175 +f 1343//1330 1187//1174 1342//1329 +f 1342//1329 1187//1174 1185//1172 +f 1345//1332 1182//1169 1343//1330 +f 1343//1330 1182//1169 1187//1174 +f 1344//1331 1183//1170 1345//1332 +f 1345//1332 1183//1170 1182//1169 +f 1179//1166 1193//1180 1340//1327 +f 1340//1327 1193//1180 1341//1328 +f 1341//1328 1193//1180 1344//1331 +f 1344//1331 1193//1180 1183//1170 +f 1179//1166 1340//1327 1337//1324 +f 1179//1166 1337//1324 1195//1182 +f 1338//1325 1194//1181 1195//1182 +f 1338//1325 1195//1182 1337//1324 +f 1339//1326 1042//1029 1338//1325 +f 1338//1325 1042//1029 1194//1181 +f 1319//1306 1043//1030 1339//1326 +f 1339//1326 1043//1030 1042//1029 +f 1351//1338 1217//1204 1352//1339 +f 1352//1339 1217//1204 1043//1030 +f 1352//1339 1043//1030 1319//1306 +f 1217//1204 1351//1338 993//980 +f 993//980 1351//1338 1353//1340 +f 993//980 1353//1340 991//978 +f 991//978 1353//1340 992//979 +f 1354//1341 1200//1187 1355//1342 +f 1355//1342 1200//1187 1199//1186 +f 1355//1342 1199//1186 1353//1340 +f 1353//1340 1199//1186 992//979 +f 1134//1121 1204//1191 1197//1184 +f 1134//1121 1197//1184 1196//1183 +f 1354//1341 1203//1190 1200//1187 +f 1134//1121 1196//1183 1354//1341 +f 1354//1341 1196//1183 1203//1190 +f 1238//1225 1264//1251 900//887 +f 1238//1225 900//887 1239//1226 +f 900//887 1264//1251 1262//1249 +f 1249//1236 1239//1226 900//887 +f 1251//1238 1248//1235 1356//1343 +f 1356//1343 1248//1235 901//888 +f 901//888 1248//1235 900//887 +f 900//887 1248//1235 1249//1236 +f 1253//1240 1254//1241 1356//1343 +f 1356//1343 1254//1241 1251//1238 +f 1073//1060 1072//1059 1357//1344 +f 1357//1344 1072//1059 1253//1240 +f 1358//1345 1070//1057 1071//1058 +f 1358//1345 1071//1058 1357//1344 +f 1357//1344 1071//1058 1073//1060 +f 1359//1346 1066//1053 1068//1055 +f 1068//1055 1069//1056 1359//1346 +f 1360//1347 1069//1056 1070//1057 +f 1361//1348 1067//1054 1252//1239 +f 1362//1349 1363//1350 1245//1232 +f 1362//1349 1245//1232 1247//1234 +f 1362//1349 1247//1234 1361//1348 +f 1361//1348 1247//1234 1067//1054 +f 1241//1228 1243//1230 890//877 +f 1246//1233 1245//1232 1363//1350 +f 890//877 1243//1230 1363//1350 +f 1363//1350 1243//1230 1246//1233 +f 1259//1246 890//877 898//885 +f 1259//1246 1255//1242 890//877 +f 890//877 1255//1242 1241//1228 +f 900//887 1262//1249 899//886 +f 899//886 1262//1249 1261//1248 +f 899//886 1261//1248 898//885 +f 898//885 1261//1248 1260//1247 +f 898//885 1260//1247 1259//1246 +f 889//876 1266//1253 1293//1280 +f 889//876 1293//1280 888//875 +f 888//875 1293//1280 1291//1278 +f 1266//1253 889//876 1268//1255 +f 1268//1255 889//876 897//884 +f 1282//1269 1277//1264 1364//1351 +f 1364//1351 1277//1264 897//884 +f 897//884 1277//1264 1278//1265 +f 1278//1265 1267//1254 897//884 +f 897//884 1267//1254 1268//1255 +f 1365//1352 1281//1268 1280//1267 +f 1365//1352 1280//1267 1364//1351 +f 1364//1351 1280//1267 1282//1269 +f 1101//1088 1104//1091 1366//1353 +f 1366//1353 1104//1091 1281//1268 +f 1366//1353 1281//1268 1365//1352 +f 1099//1086 1367//1354 1100//1087 +f 1367//1354 1099//1086 1098//1085 +f 1367//1354 1098//1085 1366//1353 +f 1366//1353 1098//1085 1101//1088 +f 1283//1270 1095//1082 1368//1355 +f 1368//1355 1095//1082 1097//1084 +f 1097//1084 1100//1087 1369//1356 +f 1370//1357 1371//1358 1284//1271 +f 1371//1358 1372//1359 1276//1263 +f 1276//1263 1275//1262 1371//1358 +f 1371//1358 1275//1262 1284//1271 +f 886//873 1271//1258 1273//1260 +f 886//873 1273//1260 1372//1359 +f 1372//1359 1273//1260 1276//1263 +f 1290//1277 887//874 1291//1278 +f 1291//1278 887//874 888//875 +f 887//874 1290//1277 1289//1276 +f 1373//1360 193//192 195//194 +f 1374//1361 195//194 197//196 +f 1374//1361 197//196 1375//1362 +f 1375//1362 197//196 180//179 +f 180//179 182//181 1375//1362 +f 182//181 185//184 1375//1362 +f 190//189 189//188 904//891 +f 904//891 189//188 193//192 +f 904//891 193//192 1376//1363 +f 1318//1305 952//939 1350//1337 +f 1318//1305 1350//1337 1317//1304 +f 1333//1320 1332//1319 1377//1364 +f 1334//1321 1333//1320 1378//1365 +f 1324//1311 1334//1321 1379//1366 +f 1325//1312 1324//1311 1380//1367 +f 1327//1314 1326//1313 1381//1368 +f 1323//1310 1322//1309 1382//1369 +f 1302//1289 1323//1310 1383//1370 +f 1303//1290 1302//1289 1384//1371 +f 1295//1282 1305//1292 1385//1372 +f 1297//1284 1296//1283 1386//1373 +f 1315//1302 1314//1301 1387//1374 +f 1313//1300 1316//1303 1388//1375 +f 1312//1299 1313//1300 1389//1376 +f 1311//1298 1312//1299 1390//1377 +f 1310//1297 1311//1298 1391//1378 +f 1306//1293 1310//1297 1392//1379 +f 1309//1296 1308//1295 1393//1380 +f 1301//1288 1309//1296 1394//1381 +f 1300//1287 1301//1288 1395//1382 +f 1299//1286 1300//1287 1396//1383 +f 1298//1285 1299//1286 1397//1384 +f 1320//1307 1321//1308 1398//1385 +f 1319//1306 1320//1307 1399//1386 +f 1302//1289 1383//1370 1384//1371 +f 1384//1371 1383//1370 1368//1355 +f 1384//1371 1368//1355 1369//1356 +f 1369//1356 1368//1355 1097//1084 +f 1303//1290 1384//1371 1400//1387 +f 1400//1387 1384//1371 1369//1356 +f 1400//1387 1369//1356 1367//1354 +f 1367//1354 1369//1356 1100//1087 +f 1310//1297 1391//1378 1392//1379 +f 1392//1379 1391//1378 1359//1346 +f 1392//1379 1359//1346 1360//1347 +f 1360//1347 1359//1346 1069//1056 +f 1306//1293 1392//1379 1401//1388 +f 1401//1388 1392//1379 1360//1347 +f 1401//1388 1360//1347 1358//1345 +f 1358//1345 1360//1347 1070//1057 +f 1323//1310 1382//1369 1383//1370 +f 1383//1370 1382//1369 1402//1389 +f 1383//1370 1402//1389 1368//1355 +f 1368//1355 1402//1389 1370//1357 +f 1368//1355 1370//1357 1283//1270 +f 1283//1270 1370//1357 1284//1271 +f 1283//1270 1284//1271 1096//1083 +f 1365//1352 1403//1390 1366//1353 +f 1366//1353 1403//1390 1404//1391 +f 1366//1353 1404//1391 1367//1354 +f 1367//1354 1404//1391 1405//1392 +f 1367//1354 1405//1392 1400//1387 +f 1400//1387 1405//1392 1304//1291 +f 1400//1387 1304//1291 1303//1290 +f 1311//1298 1390//1377 1391//1378 +f 1391//1378 1390//1377 1406//1393 +f 1391//1378 1406//1393 1359//1346 +f 1359//1346 1406//1393 1361//1348 +f 1359//1346 1361//1348 1066//1053 +f 1066//1053 1361//1348 1252//1239 +f 1356//1343 1407//1394 1253//1240 +f 1253//1240 1407//1394 1408//1395 +f 1253//1240 1408//1395 1357//1344 +f 1357//1344 1408//1395 1409//1396 +f 1357//1344 1409//1396 1358//1345 +f 1358//1345 1409//1396 1410//1397 +f 1358//1345 1410//1397 1401//1388 +f 1401//1388 1410//1397 1307//1294 +f 1401//1388 1307//1294 1306//1293 +f 1300//1287 1395//1382 1396//1383 +f 1396//1383 1395//1382 1411//1398 +f 1396//1383 1411//1398 1412//1399 +f 1412//1399 1411//1398 1413//1400 +f 1412//1399 1413//1400 1414//1401 +f 1414//1401 1413//1400 1415//1402 +f 1414//1401 1415//1402 1416//1403 +f 1416//1403 1415//1402 1376//1363 +f 1416//1403 1376//1363 1373//1360 +f 1373//1360 1376//1363 193//192 +f 1299//1286 1396//1383 1397//1384 +f 1397//1384 1396//1383 1412//1399 +f 1397//1384 1412//1399 1417//1404 +f 1417//1404 1412//1399 1414//1401 +f 1417//1404 1414//1401 1418//1405 +f 1418//1405 1414//1401 1416//1403 +f 1418//1405 1416//1403 1419//1406 +f 1419//1406 1416//1403 1373//1360 +f 1419//1406 1373//1360 1374//1361 +f 1374//1361 1373//1360 195//194 +f 1317//1304 1350//1337 1420//1407 +f 1420//1407 1350//1337 1349//1336 +f 1420//1407 1349//1336 1421//1408 +f 1421//1408 1349//1336 1348//1335 +f 1421//1408 1348//1335 1422//1409 +f 1422//1409 1348//1335 1347//1334 +f 1422//1409 1347//1334 1423//1410 +f 1423//1410 1347//1334 1346//1333 +f 1423//1410 1346//1333 1424//1411 +f 1424//1411 1346//1333 876//863 +f 1424//1411 876//863 877//864 +f 1333//1320 1377//1364 1378//1365 +f 1378//1365 1377//1364 1425//1412 +f 1378//1365 1425//1412 1426//1413 +f 1426//1413 1425//1412 1427//1414 +f 1426//1413 1427//1414 1428//1415 +f 1428//1415 1427//1414 1429//1416 +f 1428//1415 1429//1416 1430//1417 +f 1430//1417 1429//1416 1431//1418 +f 1430//1417 1431//1418 1432//1419 +f 1432//1419 1431//1418 878//865 +f 1432//1419 878//865 879//866 +f 1433//1420 237//224 238//225 +f 238//225 241//228 1433//1420 +f 1433//1420 241//228 1434//1421 +f 1434//1421 241//228 227//214 +f 227//214 226//213 1434//1421 +f 1324//1311 1379//1366 1380//1367 +f 1380//1367 1379//1366 1435//1422 +f 1380//1367 1435//1422 1436//1423 +f 1436//1423 1435//1422 1437//1424 +f 1436//1423 1437//1424 1438//1425 +f 1438//1425 1437//1424 1439//1426 +f 1438//1425 1439//1426 1440//1427 +f 1440//1427 1439//1426 1434//1421 +f 1440//1427 1434//1421 1441//1428 +f 1441//1428 1434//1421 226//213 +f 1441//1428 226//213 229//216 +f 229//216 232//219 1441//1428 +f 1441//1428 232//219 1442//1429 +f 232//219 235//222 1442//1429 +f 1442//1429 235//222 237//224 +f 1325//1312 1380//1367 1443//1430 +f 1443//1430 1380//1367 1436//1423 +f 1443//1430 1436//1423 1444//1431 +f 1444//1431 1436//1423 1438//1425 +f 1444//1431 1438//1425 1445//1432 +f 1445//1432 1438//1425 1440//1427 +f 1445//1432 1440//1427 1446//1433 +f 1446//1433 1440//1427 1441//1428 +f 1446//1433 1441//1428 1447//1434 +f 1447//1434 1441//1428 1442//1429 +f 1447//1434 1442//1429 883//870 +f 1327//1314 1381//1368 1448//1435 +f 1448//1435 1381//1368 1449//1436 +f 1448//1435 1449//1436 1450//1437 +f 1450//1437 1449//1436 1451//1438 +f 1450//1437 1451//1438 1452//1439 +f 1452//1439 1451//1438 1453//1440 +f 1452//1439 1453//1440 1454//1441 +f 1454//1441 1453//1440 1455//1442 +f 1454//1441 1455//1442 1456//1443 +f 1456//1443 1455//1442 884//871 +f 1456//1443 884//871 885//872 +f 1295//1282 1385//1372 1457//1444 +f 1457//1444 1385//1372 1458//1445 +f 1457//1444 1458//1445 1459//1446 +f 1459//1446 1458//1445 1460//1447 +f 1459//1446 1460//1447 1461//1448 +f 1461//1448 1460//1447 1462//1449 +f 1461//1448 1462//1449 1463//1450 +f 1463//1450 1462//1449 1464//1451 +f 1463//1450 1464//1451 1465//1452 +f 1465//1452 1464//1451 896//883 +f 1465//1452 896//883 895//882 +f 1297//1284 1386//1373 1466//1453 +f 1466//1453 1386//1373 1467//1454 +f 1466//1453 1467//1454 1468//1455 +f 1468//1455 1467//1454 1469//1456 +f 1468//1455 1469//1456 1470//1457 +f 1470//1457 1469//1456 1471//1458 +f 1470//1457 1471//1458 1472//1459 +f 1472//1459 1471//1458 1473//1460 +f 1472//1459 1473//1460 1474//1461 +f 1474//1461 1473//1460 1133//1120 +f 1474//1461 1133//1120 894//881 +f 1315//1302 1387//1374 1475//1462 +f 1475//1462 1387//1374 1476//1463 +f 1475//1462 1476//1463 1477//1464 +f 1477//1464 1476//1463 1478//1465 +f 1477//1464 1478//1465 1479//1466 +f 1479//1466 1478//1465 1480//1467 +f 1479//1466 1480//1467 1481//1468 +f 1481//1468 1480//1467 1482//1469 +f 1481//1468 1482//1469 1483//1470 +f 1483//1470 1482//1469 893//880 +f 1483//1470 893//880 892//879 +f 1313//1300 1388//1375 1389//1376 +f 1389//1376 1388//1375 1484//1471 +f 1389//1376 1484//1471 1485//1472 +f 1485//1472 1484//1471 1486//1473 +f 1485//1472 1486//1473 1487//1474 +f 1487//1474 1486//1473 1488//1475 +f 1487//1474 1488//1475 1489//1476 +f 1489//1476 1488//1475 1490//1477 +f 1489//1476 1490//1477 1491//1478 +f 1491//1478 1490//1477 891//878 +f 1491//1478 891//878 524//511 +f 1309//1296 1393//1380 1394//1381 +f 1394//1381 1393//1380 1492//1479 +f 1394//1381 1492//1479 1493//1480 +f 1493//1480 1492//1479 1494//1481 +f 1493//1480 1494//1481 1495//1482 +f 1495//1482 1494//1481 1496//1483 +f 1495//1482 1496//1483 1497//1484 +f 1497//1484 1496//1483 1498//1485 +f 1497//1484 1498//1485 1499//1486 +f 1499//1486 1498//1485 902//889 +f 1499//1486 902//889 903//890 +f 1298//1285 1397//1384 1500//1487 +f 1500//1487 1397//1384 1417//1404 +f 1500//1487 1417//1404 1501//1488 +f 1501//1488 1417//1404 1418//1405 +f 1501//1488 1418//1405 1502//1489 +f 1502//1489 1418//1405 1419//1406 +f 1502//1489 1419//1406 1503//1490 +f 1503//1490 1419//1406 1374//1361 +f 1503//1490 1374//1361 1504//1491 +f 1504//1491 1374//1361 1375//1362 +f 1504//1491 1375//1362 907//894 +f 1320//1307 1398//1385 1399//1386 +f 1399//1386 1398//1385 1505//1492 +f 1399//1386 1505//1492 1506//1493 +f 1506//1493 1505//1492 1507//1494 +f 1506//1493 1507//1494 1508//1495 +f 1508//1495 1507//1494 1509//1496 +f 1508//1495 1509//1496 1510//1497 +f 1510//1497 1509//1496 1511//1498 +f 1510//1497 1511//1498 1512//1499 +f 1512//1499 1511//1498 908//895 +f 1512//1499 908//895 909//896 +f 877//864 878//865 1431//1418 +f 877//864 1431//1418 1424//1411 +f 1424//1411 1431//1418 1429//1416 +f 1424//1411 1429//1416 1423//1410 +f 1423//1410 1429//1416 1427//1414 +f 1423//1410 1427//1414 1422//1409 +f 1422//1409 1427//1414 1425//1412 +f 1422//1409 1425//1412 1421//1408 +f 1421//1408 1425//1412 1377//1364 +f 1421//1408 1377//1364 1420//1407 +f 1420//1407 1377//1364 1332//1319 +f 1420//1407 1332//1319 1317//1304 +f 1334//1321 1378//1365 1379//1366 +f 1379//1366 1378//1365 1426//1413 +f 1379//1366 1426//1413 1435//1422 +f 1435//1422 1426//1413 1428//1415 +f 1435//1422 1428//1415 1437//1424 +f 1437//1424 1428//1415 1430//1417 +f 1437//1424 1430//1417 1439//1426 +f 1439//1426 1430//1417 1432//1419 +f 1439//1426 1432//1419 1434//1421 +f 1434//1421 1432//1419 879//866 +f 1434//1421 879//866 1433//1420 +f 1433//1420 879//866 880//867 +f 880//867 875//862 1433//1420 +f 1433//1420 875//862 1442//1429 +f 1433//1420 1442//1429 237//224 +f 1442//1429 875//862 883//870 +f 883//870 884//871 1455//1442 +f 883//870 1455//1442 1447//1434 +f 1447//1434 1455//1442 1453//1440 +f 1447//1434 1453//1440 1446//1433 +f 1446//1433 1453//1440 1451//1438 +f 1446//1433 1451//1438 1445//1432 +f 1445//1432 1451//1438 1449//1436 +f 1445//1432 1449//1436 1444//1431 +f 1444//1431 1449//1436 1381//1368 +f 1444//1431 1381//1368 1443//1430 +f 1443//1430 1381//1368 1326//1313 +f 1443//1430 1326//1313 1325//1312 +f 885//872 886//873 1372//1359 +f 885//872 1372//1359 1456//1443 +f 1456//1443 1372//1359 1371//1358 +f 1456//1443 1371//1358 1454//1441 +f 1454//1441 1371//1358 1370//1357 +f 1454//1441 1370//1357 1452//1439 +f 1452//1439 1370//1357 1402//1389 +f 1452//1439 1402//1389 1450//1437 +f 1450//1437 1402//1389 1382//1369 +f 1450//1437 1382//1369 1448//1435 +f 1448//1435 1382//1369 1322//1309 +f 1448//1435 1322//1309 1327//1314 +f 1289//1276 1285//1272 887//874 +f 887//874 1285//1272 1271//1258 +f 887//874 1271//1258 886//873 +f 897//884 896//883 1464//1451 +f 897//884 1464//1451 1364//1351 +f 1364//1351 1464//1451 1462//1449 +f 1364//1351 1462//1449 1365//1352 +f 1365//1352 1462//1449 1460//1447 +f 1365//1352 1460//1447 1403//1390 +f 1403//1390 1460//1447 1458//1445 +f 1403//1390 1458//1445 1404//1391 +f 1404//1391 1458//1445 1385//1372 +f 1404//1391 1385//1372 1405//1392 +f 1405//1392 1385//1372 1305//1292 +f 1405//1392 1305//1292 1304//1291 +f 895//882 1133//1120 1473//1460 +f 895//882 1473//1460 1465//1452 +f 1465//1452 1473//1460 1471//1458 +f 1465//1452 1471//1458 1463//1450 +f 1463//1450 1471//1458 1469//1456 +f 1463//1450 1469//1456 1461//1448 +f 1461//1448 1469//1456 1467//1454 +f 1461//1448 1467//1454 1459//1446 +f 1459//1446 1467//1454 1386//1373 +f 1459//1446 1386//1373 1457//1444 +f 1457//1444 1386//1373 1296//1283 +f 1457//1444 1296//1283 1295//1282 +f 894//881 893//880 1482//1469 +f 894//881 1482//1469 1474//1461 +f 1474//1461 1482//1469 1480//1467 +f 1474//1461 1480//1467 1472//1459 +f 1472//1459 1480//1467 1478//1465 +f 1472//1459 1478//1465 1470//1457 +f 1470//1457 1478//1465 1476//1463 +f 1470//1457 1476//1463 1468//1455 +f 1468//1455 1476//1463 1387//1374 +f 1468//1455 1387//1374 1466//1453 +f 1466//1453 1387//1374 1314//1301 +f 1466//1453 1314//1301 1297//1284 +f 892//879 891//878 1490//1477 +f 892//879 1490//1477 1483//1470 +f 1483//1470 1490//1477 1488//1475 +f 1483//1470 1488//1475 1481//1468 +f 1481//1468 1488//1475 1486//1473 +f 1481//1468 1486//1473 1479//1466 +f 1479//1466 1486//1473 1484//1471 +f 1479//1466 1484//1471 1477//1464 +f 1477//1464 1484//1471 1388//1375 +f 1477//1464 1388//1375 1475//1462 +f 1475//1462 1388//1375 1316//1303 +f 1475//1462 1316//1303 1315//1302 +f 1312//1299 1389//1376 1390//1377 +f 1390//1377 1389//1376 1485//1472 +f 1390//1377 1485//1472 1406//1393 +f 1406//1393 1485//1472 1487//1474 +f 1406//1393 1487//1474 1361//1348 +f 1361//1348 1487//1474 1489//1476 +f 1361//1348 1489//1476 1362//1349 +f 1362//1349 1489//1476 1491//1478 +f 1362//1349 1491//1478 1363//1350 +f 1363//1350 1491//1478 524//511 +f 1363//1350 524//511 890//877 +f 901//888 902//889 1498//1485 +f 901//888 1498//1485 1356//1343 +f 1356//1343 1498//1485 1496//1483 +f 1356//1343 1496//1483 1407//1394 +f 1407//1394 1496//1483 1494//1481 +f 1407//1394 1494//1481 1408//1395 +f 1408//1395 1494//1481 1492//1479 +f 1408//1395 1492//1479 1409//1396 +f 1409//1396 1492//1479 1393//1380 +f 1409//1396 1393//1380 1410//1397 +f 1410//1397 1393//1380 1308//1295 +f 1410//1397 1308//1295 1307//1294 +f 1301//1288 1394//1381 1395//1382 +f 1395//1382 1394//1381 1493//1480 +f 1395//1382 1493//1480 1411//1398 +f 1411//1398 1493//1480 1495//1482 +f 1411//1398 1495//1482 1413//1400 +f 1413//1400 1495//1482 1497//1484 +f 1413//1400 1497//1484 1415//1402 +f 1415//1402 1497//1484 1499//1486 +f 1415//1402 1499//1486 1376//1363 +f 1376//1363 1499//1486 903//890 +f 1376//1363 903//890 904//891 +f 904//891 905//892 187//186 +f 904//891 187//186 190//189 +f 905//892 906//893 187//186 +f 187//186 906//893 1375//1362 +f 187//186 1375//1362 185//184 +f 1375//1362 906//893 907//894 +f 907//894 908//895 1511//1498 +f 907//894 1511//1498 1504//1491 +f 1504//1491 1511//1498 1509//1496 +f 1504//1491 1509//1496 1503//1490 +f 1503//1490 1509//1496 1507//1494 +f 1503//1490 1507//1494 1502//1489 +f 1502//1489 1507//1494 1505//1492 +f 1502//1489 1505//1492 1501//1488 +f 1501//1488 1505//1492 1398//1385 +f 1501//1488 1398//1385 1500//1487 +f 1500//1487 1398//1385 1321//1308 +f 1500//1487 1321//1308 1298//1285 +f 1319//1306 1399//1386 1352//1339 +f 1352//1339 1399//1386 1506//1493 +f 1352//1339 1506//1493 1351//1338 +f 1351//1338 1506//1493 1508//1495 +f 1351//1338 1508//1495 1353//1340 +f 1353//1340 1508//1495 1510//1497 +f 1353//1340 1510//1497 1355//1342 +f 1355//1342 1510//1497 1512//1499 +f 1355//1342 1512//1499 1354//1341 +f 1354//1341 1512//1499 909//896 +f 1354//1341 909//896 1134//1121 +f 1134//1121 909//896 570//557 diff --git a/data/kuka_iiwa/meshes/link_1.mtl b/data/kuka_iiwa/meshes/link_1.mtl new file mode 100644 index 000000000..70d3ba1da --- /dev/null +++ b/data/kuka_iiwa/meshes/link_1.mtl @@ -0,0 +1,10 @@ +# Blender MTL File: 'None' +# Material Count: 1 + +newmtl None +Ns 0 +Ka 0.000000 0.000000 0.000000 +Kd 0.8 0.8 0.8 +Ks 0.8 0.8 0.8 +d 1 +illum 2 diff --git a/data/kuka_iiwa/meshes/link_1.obj b/data/kuka_iiwa/meshes/link_1.obj new file mode 100644 index 000000000..8059af3d6 --- /dev/null +++ b/data/kuka_iiwa/meshes/link_1.obj @@ -0,0 +1,5576 @@ +# Blender v2.71 (sub 0) OBJ File: '' +# www.blender.org +mtllib link_1.mtl +o Link_1 +v -0.001631 -0.010000 0.227563 +v 0.006105 -0.010000 0.226825 +v -0.010897 -0.010000 0.179909 +v -0.016614 -0.010001 0.183773 +v -0.020834 -0.010000 0.188565 +v -0.017553 -0.010000 0.220406 +v 0.011168 -0.010000 0.224883 +v 0.016012 -0.010000 0.221714 +v 0.020592 -0.010000 0.216877 +v -0.013591 -0.010000 0.223518 +v 0.011974 -0.010000 0.180541 +v 0.024260 -0.010000 0.208876 +v 0.024983 -0.010000 0.200272 +v 0.006410 -0.010000 0.178254 +v -0.023338 -0.010000 0.193493 +v -0.024992 -0.010000 0.200371 +v -0.024234 -0.010000 0.208968 +v -0.008144 -0.010000 0.226150 +v 0.001339 -0.010000 0.177504 +v -0.004083 -0.010000 0.177821 +v -0.021265 -0.010000 0.215687 +v 0.016640 -0.010000 0.183825 +v 0.020307 -0.010000 0.187784 +v 0.023206 -0.010000 0.193142 +v -0.001948 0.025006 -0.010000 +v 0.006648 0.024181 -0.010000 +v 0.024134 -0.006822 -0.010000 +v 0.012500 0.021651 -0.010000 +v -0.025001 0.002276 -0.010000 +v 0.020392 -0.014602 -0.010000 +v 0.014176 -0.020693 -0.010000 +v -0.022609 0.010856 -0.010000 +v 0.006207 -0.024305 -0.010000 +v -0.002444 -0.024960 -0.010000 +v 0.018079 0.017385 -0.010000 +v 0.022935 0.010153 -0.010000 +v 0.025020 0.001753 -0.010000 +v -0.010759 -0.022654 -0.010000 +v -0.021651 -0.012500 -0.010000 +v -0.024246 -0.006343 -0.010000 +v -0.017567 0.017901 -0.010000 +v -0.010402 0.022825 -0.010000 +v -0.017677 -0.017783 -0.010000 +v 0.001319 0.000000 0.227497 +v 0.006412 -0.000000 0.226746 +v 0.011978 0.000000 0.224459 +v 0.016640 0.000000 0.221174 +v 0.020307 0.000000 0.217216 +v 0.023206 -0.000000 0.211856 +v 0.024983 0.000000 0.204728 +v 0.024260 0.000000 0.196123 +v 0.020591 0.000000 0.188122 +v 0.016014 0.000000 0.183286 +v 0.011164 0.000000 0.180115 +v 0.006104 -0.000000 0.178175 +v -0.001615 -0.000000 0.177438 +v -0.008026 -0.000000 0.178803 +v -0.013437 0.000000 0.181404 +v -0.017553 0.000000 0.184594 +v -0.021265 0.000000 0.189314 +v -0.024234 0.000000 0.196032 +v -0.024992 0.000000 0.204629 +v -0.023338 0.000000 0.211506 +v -0.020833 -0.000000 0.216434 +v -0.016897 0.000000 0.220958 +v -0.004175 -0.000000 0.227163 +v -0.010663 -0.000000 0.225245 +v -0.037085 0.068080 0.031086 +v -0.029640 0.072428 0.030308 +v -0.029993 0.075025 0.024902 +v -0.037926 0.072924 0.019966 +v -0.030317 0.076903 0.019465 +v -0.034982 0.076736 0.012033 +v -0.005579 0.080090 0.028127 +v 0.000000 0.079804 0.029083 +v -0.000002 0.083183 0.020819 +v 0.000000 0.085058 0.009545 +v -0.009481 0.084086 0.013391 +v -0.039646 -0.005400 0.124489 +v -0.034271 -0.004269 0.122480 +v -0.034048 -0.006155 0.119793 +v -0.020854 0.001837 0.097609 +v -0.011585 0.002906 0.096591 +v -0.016836 0.006685 0.092201 +v -0.035402 -0.005429 0.106491 +v -0.033365 -0.002872 0.102390 +v -0.042795 -0.008199 0.107485 +v -0.033531 0.001952 0.095121 +v -0.041142 -0.005392 0.102729 +v -0.046926 0.001680 0.088749 +v -0.045960 0.009596 0.080809 +v -0.050949 0.000942 0.086419 +v -0.007159 0.014670 0.084882 +v -0.000001 0.007974 0.091036 +v -0.066489 -0.024168 0.141905 +v -0.062458 -0.023560 0.133407 +v -0.066187 -0.027773 0.138854 +v -0.061615 -0.020457 0.134786 +v -0.059620 -0.021630 0.128578 +v -0.066259 -0.029829 0.099420 +v -0.068172 -0.020594 0.082344 +v -0.068308 -0.033939 0.095792 +v -0.060967 0.034269 0.045918 +v -0.064302 0.020658 0.053474 +v -0.059437 0.010154 0.068506 +v -0.052951 0.021102 0.065245 +v -0.054961 0.033242 0.053116 +v -0.071755 -0.037409 0.080715 +v -0.069964 -0.043626 0.093574 +v -0.069623 -0.037440 0.092391 +v -0.069075 -0.048362 0.102808 +v -0.085169 -0.000002 0.194466 +v -0.083261 0.000001 0.182789 +v -0.083675 -0.009318 0.186027 +v -0.083412 0.015863 0.008311 +v -0.083397 0.018739 -0.000000 +v -0.085152 0.007778 0.000002 +v -0.081341 0.024316 0.007661 +v -0.079945 0.030461 -0.000000 +v -0.078242 0.033269 0.005203 +v -0.065774 0.054692 -0.000000 +v -0.070157 0.048054 0.004648 +v -0.065054 0.054806 0.004395 +v -0.059301 0.061037 0.004162 +v -0.056574 0.064082 0.000000 +v -0.051270 0.067692 0.006801 +v -0.047511 0.071153 0.000009 +v -0.009125 0.085048 -0.000000 +v -0.006558 0.084963 0.007855 +v 0.000000 0.085497 -0.000000 +v -0.007707 -0.000003 0.117351 +v 0.000000 -0.000006 0.117008 +v -0.000001 -0.001573 0.116667 +v -0.010773 -0.001105 0.117535 +v -0.018688 -0.000005 0.119063 +v -0.027964 0.000003 0.121662 +v -0.033001 -0.001049 0.123576 +v -0.039177 -0.000002 0.126500 +v -0.042078 -0.001688 0.127878 +v -0.047539 -0.000007 0.131428 +v -0.085375 -0.005541 0.202285 +v -0.085503 -0.000002 0.205487 +v -0.083998 -0.020080 0.192646 +v -0.084716 -0.016909 0.200930 +v -0.083134 -0.028736 0.198957 +v -0.081017 -0.038525 0.192847 +v -0.080863 -0.035294 0.185107 +v -0.077860 -0.048408 0.183144 +v -0.073532 -0.056291 0.165897 +v -0.077032 -0.045908 0.173928 +v -0.072943 -0.053093 0.158794 +v -0.070099 -0.059460 0.147013 +v -0.069331 -0.053607 0.136160 +v -0.068919 -0.058267 0.134417 +v -0.068358 -0.050217 0.120914 +v -0.068483 -0.056605 0.125644 +v -0.068529 -0.052491 0.113577 +v -0.068541 -0.044372 0.106416 +v -0.075231 -0.025112 0.061836 +v -0.070419 -0.029383 0.082960 +v -0.080770 -0.001656 0.033825 +v -0.080784 -0.011818 0.036484 +v -0.084611 0.006087 0.010102 +v -0.085505 0.000071 0.000002 +v -0.084938 -0.002264 0.010505 +v -0.069129 0.044846 0.017218 +v -0.069771 0.046732 0.010969 +v -0.074102 0.039420 0.011466 +v -0.074565 0.040850 0.004918 +v -0.073802 0.043164 0.000000 +v -0.077920 0.030578 0.013668 +v -0.073862 0.034169 0.021304 +v -0.068973 0.039053 0.026751 +v -0.057980 0.056412 0.021859 +v -0.057134 0.060121 0.015679 +v -0.063488 0.049655 0.022614 +v -0.064394 0.053331 0.012908 +v -0.069449 0.019704 0.046342 +v -0.066971 0.031919 0.039073 +v -0.079424 0.017435 0.024988 +v -0.081207 0.009392 0.025732 +v -0.083104 0.003052 0.021250 +v -0.083198 -0.004844 0.023531 +v -0.076026 0.023261 0.028694 +v -0.071772 0.027881 0.034030 +v -0.065562 0.003477 0.066367 +v -0.056706 0.042600 0.042555 +v -0.051511 0.009485 0.076970 +v -0.055945 0.002461 0.079849 +v -0.059955 -0.002616 0.080167 +v -0.062864 -0.011786 0.085359 +v -0.066656 -0.011032 0.077258 +v -0.070427 0.004817 0.056740 +v -0.073570 0.015861 0.041518 +v -0.075811 0.007622 0.042840 +v -0.073250 -0.023373 0.068904 +v -0.072496 -0.009401 0.062602 +v -0.076284 -0.003769 0.049108 +v -0.056372 -0.012949 0.098774 +v -0.054795 -0.005966 0.090764 +v -0.055210 -0.017912 0.112950 +v -0.051678 -0.013936 0.109350 +v -0.053351 -0.013483 0.104977 +v -0.059941 -0.024074 0.117635 +v -0.057716 -0.021274 0.118509 +v -0.061220 -0.025787 0.123929 +v -0.058642 -0.021143 0.111069 +v -0.057209 -0.016965 0.104598 +v -0.052561 -0.010146 0.099606 +v -0.057601 -0.020594 0.123503 +v -0.061499 -0.024900 0.110238 +v -0.062284 -0.027593 0.116311 +v -0.063134 -0.029340 0.122455 +v -0.064427 -0.030919 0.128291 +v -0.058700 -0.008919 0.089151 +v -0.059986 -0.016350 0.097366 +v -0.061520 -0.023031 0.105127 +v -0.065355 -0.034546 0.123094 +v -0.066671 -0.036554 0.130208 +v -0.065778 -0.035592 0.118441 +v -0.057631 -0.018450 0.128965 +v -0.056494 -0.018865 0.125097 +v -0.053819 -0.016354 0.123735 +v -0.065298 -0.018754 0.142484 +v -0.068008 -0.031767 0.141319 +v -0.076140 0.000001 0.163608 +v -0.071273 -0.010495 0.154425 +v -0.074927 -0.014015 0.160540 +v -0.079742 -0.000000 0.171585 +v -0.077630 -0.018959 0.166639 +v -0.062950 -0.026172 0.131256 +v -0.065785 -0.031154 0.134308 +v -0.063020 -0.019833 0.095465 +v -0.065198 -0.030242 0.105507 +v -0.065360 -0.033170 0.111896 +v -0.067462 -0.039513 0.108747 +v -0.064731 -0.019112 0.090061 +v -0.067544 -0.042950 0.118746 +v -0.067425 -0.040850 0.127687 +v -0.070730 -0.051152 0.144871 +v -0.072306 -0.047872 0.152901 +v -0.068480 -0.046919 0.129630 +v -0.070971 -0.042751 0.146829 +v -0.067924 -0.036824 0.136733 +v -0.070417 -0.036853 0.146324 +v -0.074534 -0.038335 0.159416 +v -0.076118 -0.042179 0.166636 +v -0.071553 -0.027063 0.151971 +v -0.069346 -0.019790 0.149089 +v -0.079870 -0.024210 0.173929 +v -0.073720 -0.032259 0.156757 +v -0.066134 -0.010577 0.146731 +v -0.066712 -0.000016 0.149082 +v -0.060906 -0.005717 0.141580 +v -0.081760 -0.008680 0.177900 +v -0.081429 -0.027103 0.181180 +v 0.000000 0.035194 0.069107 +v 0.000000 0.056694 0.053547 +v -0.008599 0.044326 0.062185 +v -0.027821 0.031991 0.068443 +v -0.031630 0.016304 0.080479 +v -0.020923 0.037008 0.066058 +v -0.017176 0.026168 0.074826 +v -0.000001 0.024220 0.077225 +v -0.019440 0.015453 0.083473 +v -0.034161 0.021902 0.074810 +v -0.039669 0.010924 0.082706 +v -0.045630 -0.001093 0.093048 +v -0.046030 -0.005350 0.098974 +v -0.039048 0.003367 0.091273 +v -0.034358 0.007550 0.088383 +v -0.027549 0.009462 0.087951 +v -0.018015 0.009663 0.089040 +v -0.028233 0.002069 0.096314 +v -0.041016 -0.002623 0.098251 +v -0.046153 -0.008333 0.104216 +v -0.048564 -0.012002 0.110037 +v -0.050958 -0.014509 0.113962 +v -0.054439 -0.017769 0.116911 +v -0.047392 -0.012221 0.113906 +v -0.050193 -0.014204 0.116184 +v -0.052681 -0.016127 0.119682 +v -0.042787 -0.009273 0.110909 +v -0.000000 0.000764 0.099365 +v -0.016788 -0.001146 0.102105 +v -0.011014 -0.002627 0.104860 +v 0.000000 -0.002095 0.103793 +v -0.027279 -0.002809 0.103886 +v -0.015842 -0.004111 0.108347 +v -0.018266 -0.004866 0.111464 +v 0.000000 -0.003573 0.107140 +v 0.000000 -0.004294 0.109885 +v -0.019643 -0.005014 0.113941 +v -0.011090 -0.004606 0.112239 +v -0.000001 -0.003548 0.114956 +v -0.006263 -0.002774 0.116155 +v -0.015318 -0.001938 0.117959 +v -0.014851 -0.003572 0.116463 +v -0.022421 -0.003572 0.106297 +v -0.026740 -0.005569 0.116326 +v -0.026794 -0.005820 0.113679 +v -0.025948 -0.005286 0.110569 +v -0.032961 -0.006713 0.112958 +v -0.032812 -0.006811 0.115552 +v -0.022025 -0.004642 0.116654 +v -0.012727 -0.004298 0.114558 +v -0.000000 -0.004334 0.112568 +v -0.026539 -0.003226 0.120115 +v -0.026928 -0.001878 0.120979 +v -0.020683 -0.001870 0.119201 +v -0.021801 -0.003683 0.118125 +v -0.028032 -0.004831 0.118895 +v -0.033098 -0.005015 0.121125 +v -0.035672 -0.007083 0.111441 +v -0.029731 -0.005283 0.108993 +v -0.038428 -0.007716 0.110968 +v -0.038552 -0.008334 0.116288 +v -0.039879 -0.008307 0.119663 +v -0.054385 -0.015489 0.126948 +v -0.046290 -0.011594 0.118936 +v -0.049878 -0.013172 0.122573 +v -0.047337 -0.011185 0.122949 +v -0.050400 -0.010853 0.127684 +v -0.045059 -0.009448 0.123437 +v -0.052115 -0.012973 0.127053 +v -0.044099 -0.010514 0.114713 +v -0.049411 -0.013575 0.119310 +v -0.057650 -0.016223 0.131891 +v -0.055674 -0.012762 0.132199 +v -0.060292 -0.015853 0.136212 +v -0.062927 -0.013518 0.141225 +v -0.042242 -0.009736 0.116299 +v -0.042997 -0.009728 0.119453 +v -0.034760 -0.007027 0.117836 +v -0.069053 -0.042935 0.137378 +v -0.040494 -0.007313 0.122719 +v -0.044615 -0.007631 0.125810 +v -0.035446 -0.002453 0.124193 +v -0.040981 -0.003732 0.126493 +v -0.048667 -0.008433 0.128510 +v -0.044956 -0.005517 0.128069 +v -0.055923 -0.010227 0.134403 +v -0.057243 -0.007762 0.137148 +v -0.049934 -0.005973 0.131392 +v -0.049541 -0.002818 0.132394 +v -0.055816 -0.002752 0.137403 +v -0.055797 -0.000008 0.137710 +v -0.061350 -0.000008 0.142996 +v -0.072224 -0.000013 0.156706 +v -0.005372 0.077469 0.032747 +v 0.000000 0.076353 0.034622 +v -0.006120 0.083431 0.018373 +v -0.006031 0.081964 0.023593 +v -0.013954 0.078403 0.028879 +v -0.013755 0.075520 0.033718 +v -0.014133 0.080627 0.023819 +v -0.021591 0.072776 0.034613 +v -0.018053 0.083597 -0.000000 +v -0.025344 0.081681 0.000006 +v -0.014596 0.083799 0.008370 +v -0.026534 0.080298 0.011773 +v -0.018564 0.082282 0.013627 +v -0.022404 0.080007 0.019031 +v -0.014300 0.082192 0.018666 +v -0.022157 0.078295 0.024331 +v -0.021889 0.075886 0.029575 +v -0.007492 0.068211 0.043339 +v -0.000002 0.069097 0.043019 +v -0.005771 0.074159 0.037131 +v -0.015074 0.065482 0.044709 +v -0.013534 0.072086 0.038240 +v -0.029651 0.067884 0.037055 +v -0.029946 0.057523 0.047407 +v -0.022606 0.061906 0.046057 +v -0.010500 0.059753 0.050575 +v -0.014014 0.045865 0.060561 +v -0.025238 0.048265 0.056531 +v -0.033381 0.078731 0.000001 +v -0.021260 0.069093 0.039329 +v -0.036764 0.063429 0.038064 +v -0.037525 0.070864 0.025534 +v -0.044114 0.062914 0.031912 +v -0.043830 0.057902 0.038986 +v -0.044646 0.065880 0.026227 +v -0.057587 0.061574 0.009864 +v -0.045131 0.068133 0.020533 +v -0.051262 0.060153 0.026983 +v -0.050630 0.057014 0.032792 +v -0.049021 0.067198 0.015150 +v -0.051840 0.062601 0.021165 +v -0.057299 0.053773 0.027801 +v -0.056558 0.050477 0.033728 +v -0.063518 0.043307 0.031944 +v -0.041029 0.075040 0.000009 +v -0.042492 0.072573 0.012279 +v -0.035135 0.035738 0.063192 +v -0.036958 0.052386 0.048775 +v -0.041426 0.029732 0.065345 +v -0.043527 0.046568 0.050176 +v -0.051097 0.049431 0.041407 +v -0.049551 0.040155 0.051621 +v -0.047184 0.023262 0.067593 +v 0.045761 0.071609 0.006659 +v 0.040971 0.075063 0.000004 +v 0.038427 0.075027 0.011860 +v 0.023778 0.081209 0.011841 +v 0.014918 0.083546 0.011219 +v 0.014300 0.082192 0.018666 +v 0.059080 -0.011581 0.137236 +v 0.058319 -0.014240 0.134512 +v 0.053245 -0.011540 0.130449 +v 0.039037 -0.007202 0.108573 +v 0.038173 -0.005523 0.105026 +v 0.033788 -0.004494 0.105250 +v 0.000000 -0.003811 0.107823 +v 0.000000 -0.004439 0.111925 +v 0.006264 -0.004348 0.110223 +v 0.000000 0.009849 0.089276 +v -0.000000 0.004587 0.094663 +v 0.007723 0.004399 0.094942 +v 0.049169 -0.012595 0.110642 +v 0.043773 -0.008564 0.107246 +v 0.044396 -0.010190 0.111621 +v 0.039428 -0.004398 0.102149 +v 0.037772 0.000599 0.095388 +v 0.038556 0.003798 0.091009 +v 0.024478 0.012414 0.085727 +v 0.015697 0.007824 0.091131 +v 0.021381 0.010207 0.088245 +v 0.011621 0.014284 0.085072 +v 0.020660 0.023866 0.076237 +v 0.030096 0.015053 0.082140 +v 0.024257 0.032228 0.069057 +v 0.066787 -0.036456 0.131289 +v 0.068079 -0.036781 0.137414 +v 0.070998 -0.042816 0.146936 +v 0.064859 -0.031098 0.130469 +v 0.067725 -0.030600 0.141075 +v 0.058793 -0.007699 0.087450 +v 0.055415 -0.003882 0.087402 +v 0.054270 -0.007945 0.094064 +v 0.059706 0.025927 0.054669 +v 0.054961 0.033242 0.053116 +v 0.052951 0.021102 0.065245 +v 0.065903 0.027635 0.045018 +v 0.067498 0.033966 0.036049 +v 0.063518 0.043307 0.031944 +v 0.081301 -0.009075 0.033760 +v 0.084184 -0.004153 0.017139 +v 0.082376 0.001490 0.025808 +v 0.072299 0.045719 -0.000000 +v 0.063709 0.057015 -0.000000 +v 0.065054 0.054806 0.004395 +v 0.085447 -0.000002 0.206450 +v 0.085241 -0.010180 0.203002 +v 0.085156 -0.000000 0.194579 +v 0.084843 -0.010755 0.194396 +v 0.083675 -0.009318 0.186027 +v 0.082651 -0.000004 0.180146 +v 0.076086 0.000001 0.163537 +v 0.080551 0.000001 0.173657 +v 0.078892 -0.009489 0.169577 +v 0.043907 -0.001919 0.128983 +v 0.037804 -0.000004 0.125768 +v 0.048611 -0.000006 0.132164 +v 0.033030 -0.000989 0.123599 +v 0.025187 -0.000007 0.120786 +v 0.012427 -0.000003 0.117843 +v 0.000001 -0.001409 0.116729 +v 0.005977 0.085001 0.007922 +v 0.008007 0.085164 0.000000 +v 0.047833 0.070825 -0.000000 +v 0.074565 0.040850 0.004918 +v 0.079203 0.032260 0.000000 +v 0.078242 0.033269 0.005203 +v 0.081158 0.025384 0.005501 +v 0.083240 0.019579 0.000000 +v 0.083547 0.016319 0.005947 +v 0.084503 0.006145 0.010017 +v 0.085158 0.007598 0.000001 +v 0.085559 0.000103 0.000010 +v 0.077490 -0.010928 0.049028 +v 0.076905 -0.021230 0.054156 +v 0.069951 -0.034559 0.088156 +v 0.070404 -0.041927 0.089920 +v 0.073084 -0.031883 0.072784 +v 0.068331 -0.045735 0.109208 +v 0.069078 -0.048363 0.102705 +v 0.068431 -0.053915 0.117010 +v 0.068641 -0.051901 0.127777 +v 0.068730 -0.057727 0.131432 +v 0.069771 -0.059441 0.144234 +v 0.072948 -0.053053 0.158928 +v 0.072039 -0.057997 0.158468 +v 0.070337 -0.053834 0.143738 +v 0.075539 -0.053459 0.174850 +v 0.077032 -0.045908 0.173928 +v 0.078170 -0.047721 0.184608 +v 0.081995 -0.034426 0.195251 +v 0.080957 -0.034954 0.185358 +v 0.084158 -0.022164 0.201274 +v 0.070157 0.048054 0.004648 +v 0.070247 0.045059 0.013829 +v 0.074922 0.037156 0.013503 +v 0.064577 0.050183 0.019506 +v 0.057576 0.050839 0.031919 +v 0.070626 0.023990 0.040264 +v 0.067709 0.012804 0.055069 +v 0.062307 0.011172 0.064315 +v 0.061651 0.035300 0.043757 +v 0.077701 0.031758 0.011990 +v 0.080696 0.020682 0.016147 +v 0.082546 0.012488 0.016835 +v 0.077133 0.026256 0.022140 +v 0.079588 0.005841 0.033876 +v 0.078460 0.015066 0.029740 +v 0.072862 0.031286 0.027697 +v 0.068973 0.039053 0.026751 +v 0.074825 0.019778 0.035161 +v 0.056706 0.042600 0.042555 +v 0.057501 0.013881 0.067392 +v 0.051726 0.011721 0.074625 +v 0.072294 0.011602 0.047734 +v 0.055945 0.002461 0.079849 +v 0.059955 -0.002616 0.080167 +v 0.062808 -0.012047 0.085915 +v 0.064563 -0.001176 0.071930 +v 0.057547 -0.013702 0.097728 +v 0.060710 -0.018053 0.098111 +v 0.066759 -0.009218 0.075010 +v 0.072471 -0.003220 0.058495 +v 0.075811 0.007622 0.042840 +v 0.064970 -0.018480 0.088676 +v 0.073865 -0.011236 0.060347 +v 0.066409 -0.029393 0.097978 +v 0.067708 -0.036571 0.101868 +v 0.067963 -0.028457 0.090837 +v 0.068524 -0.018637 0.079906 +v 0.069784 -0.026177 0.082671 +v 0.073250 -0.023373 0.068904 +v 0.053996 -0.014569 0.106292 +v 0.052553 -0.010774 0.100787 +v 0.049301 -0.009151 0.102198 +v 0.053892 -0.016094 0.110726 +v 0.058175 -0.021571 0.115904 +v 0.057376 -0.017287 0.104786 +v 0.058660 -0.021160 0.111206 +v 0.058048 -0.021639 0.120093 +v 0.061288 -0.025630 0.125177 +v 0.060014 -0.023021 0.126858 +v 0.051691 -0.003535 0.091094 +v 0.061609 -0.025184 0.110547 +v 0.062187 -0.027403 0.116132 +v 0.063357 -0.026344 0.105421 +v 0.061458 -0.021437 0.102172 +v 0.064102 -0.023290 0.097256 +v 0.061478 -0.026510 0.120489 +v 0.064640 -0.028539 0.133520 +v 0.064341 -0.031038 0.112642 +v 0.063756 -0.030695 0.122903 +v 0.070291 -0.036931 0.145899 +v 0.066143 -0.036893 0.119221 +v 0.065595 -0.034985 0.124821 +v 0.053604 -0.016750 0.114870 +v 0.054686 -0.017939 0.120164 +v 0.056616 -0.018625 0.126026 +v 0.056723 -0.017241 0.128871 +v 0.060026 -0.020912 0.130784 +v 0.065171 -0.025909 0.137764 +v 0.062987 -0.020750 0.137329 +v 0.066806 -0.023524 0.142974 +v 0.059961 -0.017412 0.134499 +v 0.064670 -0.014503 0.143302 +v 0.060823 -0.006440 0.141454 +v 0.060328 -0.000009 0.141893 +v 0.066992 -0.000002 0.149380 +v 0.066488 -0.006252 0.148037 +v 0.072246 -0.000039 0.156784 +v 0.070727 -0.013613 0.152995 +v 0.074927 -0.014015 0.160540 +v 0.065994 -0.034997 0.110801 +v 0.067475 -0.042100 0.115472 +v 0.067246 -0.040539 0.126121 +v 0.068557 -0.042788 0.134724 +v 0.068569 -0.047072 0.129802 +v 0.069830 -0.048369 0.139755 +v 0.072234 -0.047886 0.152550 +v 0.074534 -0.038335 0.159416 +v 0.076118 -0.042179 0.166636 +v 0.071416 -0.027411 0.151580 +v 0.074531 -0.030961 0.159057 +v 0.081509 -0.026851 0.181431 +v 0.079922 -0.024296 0.174138 +v 0.083301 -0.023721 0.191133 +v 0.049327 0.006636 0.081514 +v 0.010801 0.024193 0.076895 +v 0.000000 0.023075 0.077976 +v 0.029379 0.002902 0.095032 +v 0.043021 0.008533 0.083554 +v 0.036922 0.018280 0.077040 +v 0.045281 0.001679 0.089808 +v 0.042479 -0.002789 0.097590 +v 0.047257 -0.004671 0.096754 +v 0.034128 -0.000967 0.098950 +v 0.046569 -0.008213 0.103548 +v 0.014752 -0.002649 0.104848 +v 0.013883 -0.000257 0.100834 +v 0.000000 0.000654 0.099520 +v 0.020914 0.002027 0.097337 +v 0.021723 -0.002552 0.104229 +v 0.026986 -0.000779 0.100604 +v 0.028565 -0.003089 0.104175 +v 0.031600 -0.005574 0.109071 +v 0.022840 -0.004529 0.108675 +v 0.029723 -0.006048 0.112150 +v -0.000000 -0.002138 0.103891 +v 0.010056 -0.004044 0.108366 +v 0.010580 -0.003160 0.116277 +v 0.012814 -0.004340 0.114451 +v 0.000000 -0.003658 0.114733 +v 0.010703 -0.001585 0.117398 +v 0.000001 -0.002804 0.115823 +v 0.018629 -0.001949 0.118638 +v 0.014721 -0.004550 0.110090 +v 0.023605 -0.001665 0.120055 +v 0.018681 -0.003545 0.117383 +v 0.023150 -0.004687 0.116953 +v 0.017182 -0.004887 0.113061 +v 0.025340 -0.003940 0.118990 +v 0.030544 -0.004243 0.120759 +v 0.033308 -0.006186 0.119255 +v 0.007210 -0.004454 0.112619 +v 0.029221 -0.002585 0.121515 +v 0.040304 -0.008701 0.112633 +v 0.044041 -0.010562 0.115920 +v 0.046136 -0.010939 0.121442 +v 0.042313 -0.009629 0.118265 +v 0.042439 -0.008176 0.123038 +v 0.048025 -0.010190 0.125766 +v 0.040092 -0.008206 0.120221 +v 0.049578 -0.013719 0.115441 +v 0.052070 -0.015400 0.120905 +v 0.047538 -0.012472 0.116591 +v 0.050111 -0.013618 0.121675 +v 0.049480 -0.012175 0.124305 +v 0.053133 -0.014441 0.126419 +v 0.054744 -0.014245 0.129392 +v 0.038933 -0.007065 0.121852 +v 0.034828 -0.007035 0.117767 +v 0.026076 -0.005560 0.115809 +v 0.021764 -0.005163 0.111798 +v 0.030044 -0.006277 0.115206 +v 0.036417 -0.007538 0.113166 +v 0.038484 -0.008171 0.117839 +v 0.034474 -0.007212 0.115202 +v 0.034977 -0.002524 0.123903 +v 0.035009 -0.004570 0.122623 +v 0.040508 -0.002359 0.126848 +v 0.047117 -0.005844 0.129278 +v 0.040398 -0.005267 0.125046 +v 0.052923 -0.006250 0.133825 +v 0.050283 -0.008711 0.129879 +v 0.045928 -0.007641 0.126892 +v 0.041410 -0.006496 0.124518 +v 0.056932 -0.008767 0.136444 +v 0.048820 -0.002625 0.131971 +v 0.054743 -0.000007 0.136841 +v 0.056176 -0.002602 0.137768 +v -0.000000 0.085069 0.009552 +v -0.000000 0.084105 0.016584 +v 0.006449 0.083791 0.017105 +v 0.000000 0.079816 0.029066 +v 0.000000 0.076368 0.034627 +v 0.005871 0.077306 0.032825 +v 0.005962 0.079945 0.028215 +v 0.000001 0.082660 0.022455 +v 0.010089 0.081429 0.023585 +v 0.033377 0.078739 0.000004 +v 0.025499 0.081621 0.000002 +v 0.016953 0.083843 0.000003 +v 0.005771 0.074159 0.037131 +v 0.013755 0.075520 0.033718 +v 0.013954 0.078403 0.028879 +v 0.022404 0.080007 0.019031 +v 0.030989 0.078666 0.011364 +v 0.013534 0.072086 0.038240 +v 0.021889 0.075886 0.029575 +v 0.018161 0.079581 0.024068 +v 0.026106 0.076774 0.024609 +v 0.030317 0.076903 0.019465 +v 0.000003 0.068897 0.043238 +v -0.000000 0.056892 0.053396 +v 0.007214 0.060152 0.050443 +v 0.008599 0.044326 0.062185 +v 0.022606 0.061906 0.046057 +v 0.014551 0.056916 0.052121 +v 0.025054 0.045928 0.058382 +v 0.014014 0.045865 0.060561 +v 0.021591 0.072776 0.034613 +v 0.007492 0.068211 0.043339 +v 0.015074 0.065482 0.044709 +v 0.021260 0.069093 0.039329 +v 0.029640 0.072428 0.030308 +v 0.033804 0.073052 0.025211 +v 0.037926 0.072924 0.019966 +v 0.056262 0.064325 0.000000 +v 0.053053 0.066270 0.006740 +v 0.045253 0.069127 0.017932 +v 0.030884 0.067145 0.037287 +v 0.059301 0.061037 0.004162 +v 0.052084 0.063732 0.018391 +v 0.038128 0.062364 0.038214 +v 0.037085 0.068080 0.031086 +v 0.059042 0.059330 0.012642 +v 0.044487 0.057214 0.039219 +v 0.047424 0.060244 0.032368 +v 0.064739 0.053615 0.010505 +v 0.057980 0.056412 0.021859 +v 0.054357 0.057039 0.027384 +v 0.051097 0.049431 0.041407 +v 0.048022 0.063104 0.026597 +v 0.041143 0.068470 0.025873 +v 0.036958 0.052386 0.048775 +v 0.029946 0.057523 0.047407 +v 0.035135 0.035738 0.063192 +v 0.043527 0.046568 0.050176 +v 0.044834 0.031242 0.062183 +v 0.043776 0.021753 0.070755 +v 0.049551 0.040155 0.051621 +v -0.024650 -0.004354 -0.000000 +v -0.022700 -0.010728 -0.000000 +v -0.018527 -0.016828 0.000001 +v -0.013863 -0.020891 0.000000 +v -0.008722 -0.023462 -0.000000 +v -0.003343 -0.024791 -0.000000 +v 0.002322 -0.024963 0.000000 +v 0.008227 -0.023642 -0.000000 +v 0.013386 -0.021133 -0.000000 +v 0.017941 -0.017513 0.000000 +v 0.021500 -0.012818 -0.000000 +v 0.023757 -0.007838 -0.000000 +v 0.024943 -0.002454 0.000000 +v 0.024583 0.005130 0.000000 +v 0.022096 0.011759 -0.000000 +v 0.018947 0.016343 -0.000000 +v 0.014903 0.020150 0.000000 +v 0.008753 0.023505 0.000000 +v 0.001788 0.025004 0.000000 +v -0.004075 0.024698 -0.000000 +v -0.009618 0.023092 -0.000000 +v -0.015463 0.019795 0.000000 +v -0.020683 0.014168 0.000000 +v -0.023378 0.008943 -0.000000 +v -0.024941 0.002440 -0.000000 +v -0.059805 -0.061755 0.000000 +v -0.062674 -0.058396 0.021639 +v -0.067146 -0.053470 0.000000 +v -0.068580 -0.050903 0.020817 +v -0.073315 -0.044422 0.000000 +v -0.075187 -0.040231 0.017285 +v -0.078257 -0.034867 0.000000 +v -0.079421 -0.031052 0.012166 +v -0.081531 -0.026039 0.000002 +v -0.083325 -0.019514 0.000001 +v -0.084173 -0.013355 0.009710 +v -0.085150 -0.008107 0.000000 +v -0.083958 -0.007582 0.017508 +v -0.082265 -0.013962 0.027859 +v -0.076659 -0.036500 0.029091 +v -0.079511 -0.029224 0.024351 +v -0.068008 -0.052172 0.032496 +v -0.072661 -0.044598 0.029744 +v -0.055918 -0.065476 0.017260 +v -0.056209 -0.065833 0.027773 +v -0.049632 -0.071781 0.025981 +v -0.049968 -0.070514 0.013314 +v -0.054128 -0.066848 0.000000 +v -0.049246 -0.070643 0.000001 +v -0.081563 -0.019938 0.027458 +v -0.081128 -0.023824 0.023487 +v -0.055161 -0.000003 0.268864 +v -0.066303 0.000000 0.257383 +v -0.059120 -0.012948 0.264572 +v -0.050213 -0.015710 0.271976 +v -0.049585 -0.000006 0.273213 +v -0.049410 -0.028976 0.270664 +v -0.055112 -0.027018 0.266184 +v -0.049479 -0.039387 0.268293 +v -0.055952 -0.045191 0.260336 +v -0.048789 -0.052324 0.264280 +v -0.052788 -0.061098 0.255363 +v -0.048133 -0.062271 0.259682 +v -0.047651 -0.072350 0.252872 +v -0.047372 -0.069809 0.255253 +v -0.044603 -0.102539 0.177492 +v -0.049604 -0.097695 0.172487 +v -0.044614 -0.101535 0.160707 +v -0.051253 -0.096258 0.185422 +v -0.052169 -0.093778 0.154305 +v -0.044892 -0.099098 0.144342 +v -0.045326 -0.095634 0.126961 +v -0.049921 -0.092279 0.131959 +v -0.051882 -0.081844 0.092475 +v -0.047709 -0.080860 0.071289 +v -0.048984 -0.074728 0.045132 +v -0.053805 -0.073863 0.064886 +v -0.055411 -0.068305 0.041648 +v -0.061602 -0.061512 0.041066 +v -0.072884 -0.038356 0.073764 +v -0.076713 -0.028019 0.054244 +v -0.068259 -0.055951 0.113312 +v -0.072659 -0.061862 0.170601 +v -0.084652 -0.015741 0.208133 +v -0.069007 -0.052951 0.059725 +v -0.064607 -0.060424 0.061541 +v -0.059492 -0.067392 0.063280 +v -0.059625 -0.086602 0.167994 +v -0.063666 -0.081081 0.169571 +v -0.061531 -0.079273 0.136719 +v -0.058422 -0.084308 0.140487 +v -0.059183 -0.078715 0.116382 +v -0.061704 -0.069088 0.086640 +v -0.065712 -0.062001 0.083462 +v -0.060987 -0.085293 0.181075 +v -0.061797 -0.083986 0.189802 +v -0.062722 -0.081843 0.198333 +v -0.058504 -0.085838 0.207355 +v -0.064724 -0.076259 0.211277 +v -0.071039 -0.050891 0.232838 +v -0.071264 -0.056725 0.225430 +v -0.068572 -0.061341 0.227042 +v -0.065842 -0.070964 0.219910 +v -0.069558 -0.067393 0.212458 +v -0.066244 -0.075789 0.203330 +v -0.072126 -0.011878 0.248375 +v -0.075583 -0.000000 0.243153 +v -0.077074 -0.011104 0.239227 +v -0.074071 -0.023987 0.242005 +v -0.066124 -0.012354 0.256840 +v -0.068721 -0.025051 0.250777 +v -0.064489 -0.043268 0.250154 +v -0.066756 -0.034184 0.251024 +v -0.071548 -0.040950 0.239437 +v -0.063710 -0.051645 0.246500 +v -0.067978 -0.050036 0.240143 +v -0.065886 -0.055851 0.239433 +v -0.063563 -0.064268 0.235745 +v -0.065805 -0.066040 0.228432 +v -0.060769 -0.071333 0.232975 +v -0.059931 -0.079710 0.220505 +v -0.060557 -0.080929 0.214692 +v -0.062370 -0.026060 0.258881 +v -0.061585 -0.058194 0.245180 +v -0.058704 -0.070169 0.239006 +v -0.057408 -0.079071 0.228375 +v -0.057376 -0.088817 0.197331 +v -0.044767 -0.102129 0.190766 +v -0.044995 -0.100916 0.200920 +v -0.057048 -0.075701 0.089674 +v -0.054906 -0.084932 0.120829 +v -0.054297 -0.089058 0.139033 +v -0.055348 -0.091920 0.175303 +v -0.051673 -0.095257 0.194892 +v -0.045312 -0.099058 0.209976 +v -0.045488 -0.096768 0.218082 +v -0.052193 -0.093450 0.204225 +v -0.058420 -0.035856 0.260705 +v -0.057320 -0.056341 0.252987 +v -0.057617 -0.067076 0.243794 +v -0.053665 -0.085887 0.224109 +v -0.053068 -0.089942 0.214945 +v -0.056690 -0.090385 0.188292 +v -0.054327 -0.068437 0.247525 +v -0.053597 -0.075552 0.241184 +v -0.052869 -0.081725 0.233921 +v -0.047016 -0.079933 0.246159 +v -0.046518 -0.084316 0.241356 +v -0.046249 -0.089430 0.233791 +v -0.045820 -0.094130 0.224678 +v -0.068155 -0.063852 0.137222 +v -0.074134 -0.060328 0.182190 +v -0.076679 -0.054301 0.191803 +v -0.072930 -0.064108 0.192525 +v -0.070370 -0.068675 0.172100 +v -0.066128 -0.077873 0.185611 +v -0.067176 -0.075153 0.170080 +v -0.084702 -0.000001 0.214736 +v -0.083525 -0.020526 0.213044 +v -0.082303 -0.031149 0.209600 +v -0.079744 -0.043948 0.202372 +v -0.083673 -0.000009 0.220743 +v -0.083235 -0.013456 0.219404 +v -0.081510 -0.021715 0.223006 +v -0.080400 -0.032964 0.219528 +v -0.078105 -0.046365 0.212321 +v -0.075908 -0.055638 0.203544 +v -0.080904 -0.010612 0.229599 +v -0.080738 -0.000000 0.231056 +v -0.078349 -0.022873 0.232703 +v -0.072567 -0.058298 0.217837 +v -0.074161 -0.054927 0.217478 +v -0.071497 -0.065937 0.204436 +v -0.069219 -0.071792 0.194484 +v -0.070177 -0.070331 0.182822 +v -0.073426 -0.032421 0.239952 +v -0.077374 -0.034817 0.229208 +v -0.075591 -0.046062 0.224051 +v -0.069096 -0.052794 0.097695 +v -0.071579 -0.045548 0.076512 +v -0.067822 -0.058581 0.107929 +v -0.066947 -0.064974 0.125427 +v -0.067443 -0.069659 0.147511 +v -0.075611 -0.036850 0.049471 +v -0.076973 -0.031456 0.048563 +v -0.070891 -0.049151 0.065540 +v -0.068503 -0.055720 0.086771 +v -0.065584 -0.066085 0.110369 +v -0.064880 -0.073512 0.138744 +v 0.083167 -0.000005 0.222771 +v 0.075490 0.000000 0.243315 +v 0.080647 -0.000000 0.231314 +v -0.006590 -0.000000 0.287784 +v -0.016729 0.000000 0.286478 +v -0.030352 -0.000000 0.282831 +v 0.050529 -0.000001 0.272543 +v 0.060200 -0.000000 0.264080 +v 0.041855 0.000000 0.277718 +v 0.067850 -0.000000 0.255272 +v 0.030869 -0.000000 0.282593 +v 0.018242 -0.000000 0.286204 +v -0.042530 0.000002 0.277376 +v 0.004203 0.000000 0.287945 +v 0.084546 -0.000000 0.215578 +v 0.069663 -0.065158 0.153967 +v 0.067725 -0.061867 0.125962 +v 0.075599 -0.030907 0.059691 +v 0.049720 -0.021026 0.271645 +v 0.049307 -0.033161 0.269945 +v 0.055106 -0.027189 0.266156 +v 0.048861 -0.075280 0.047688 +v 0.049560 -0.072039 0.028397 +v 0.054765 -0.067632 0.031358 +v 0.047877 -0.080236 0.069168 +v 0.053615 -0.073937 0.064457 +v 0.045703 -0.093300 0.117233 +v 0.050193 -0.090439 0.123703 +v 0.049633 -0.094462 0.142661 +v 0.044974 -0.098274 0.139507 +v 0.049491 -0.097065 0.161872 +v 0.044666 -0.101069 0.156853 +v 0.044126 -0.102644 0.170323 +v 0.049666 -0.097833 0.176381 +v 0.044582 -0.102580 0.180323 +v 0.053556 -0.094157 0.181622 +v 0.047936 -0.064785 0.258194 +v 0.051430 -0.062009 0.256189 +v 0.048702 -0.055752 0.262711 +v 0.054722 -0.036717 0.264223 +v 0.049007 -0.044029 0.267130 +v 0.055551 -0.007826 0.268084 +v 0.062885 -0.007487 0.260855 +v 0.069314 -0.007129 0.252818 +v 0.074748 -0.006752 0.244093 +v 0.079268 -0.010988 0.234114 +v 0.082257 -0.011320 0.224823 +v 0.084480 -0.009799 0.214210 +v 0.080083 -0.042409 0.194464 +v 0.073627 -0.059618 0.173532 +v 0.066928 -0.054224 0.037107 +v 0.069166 -0.050149 0.024155 +v 0.073268 -0.043553 0.022812 +v 0.073950 -0.042351 0.031880 +v 0.056993 -0.064761 0.024123 +v 0.063450 -0.057612 0.024531 +v 0.064782 -0.059965 0.060144 +v 0.058781 -0.069704 0.070654 +v 0.060934 -0.063286 0.048435 +v 0.061836 -0.068655 0.085389 +v 0.065862 -0.061550 0.082277 +v 0.058391 -0.083778 0.135994 +v 0.062499 -0.074112 0.118982 +v 0.061962 -0.079918 0.144402 +v 0.059299 -0.086784 0.165268 +v 0.054414 -0.092403 0.165903 +v 0.054201 -0.090468 0.147226 +v 0.054687 -0.086289 0.126514 +v 0.056397 -0.078115 0.097221 +v 0.052127 -0.087148 0.225341 +v 0.046204 -0.091434 0.229881 +v 0.051481 -0.091162 0.216612 +v 0.054361 -0.089054 0.213194 +v 0.058200 -0.086075 0.207695 +v 0.053634 -0.093079 0.197126 +v 0.058415 -0.088388 0.190332 +v 0.053559 -0.075898 0.240826 +v 0.047019 -0.080647 0.245350 +v 0.052827 -0.082052 0.233473 +v 0.057404 -0.079465 0.227955 +v 0.056742 -0.083953 0.219969 +v 0.061724 -0.080341 0.211498 +v 0.046495 -0.086945 0.237591 +v 0.062652 -0.082026 0.197732 +v 0.060925 -0.085367 0.180341 +v 0.045677 -0.094706 0.223427 +v 0.045485 -0.096783 0.217999 +v 0.045375 -0.099295 0.208740 +v 0.044901 -0.101354 0.198273 +v 0.044748 -0.102209 0.189363 +v 0.065129 -0.079434 0.188096 +v 0.065994 -0.076060 0.203862 +v 0.062649 -0.075785 0.220295 +v 0.058235 -0.073336 0.235542 +v 0.054293 -0.068784 0.247253 +v 0.047579 -0.073380 0.252075 +v 0.068780 -0.068382 0.213533 +v 0.066158 -0.072853 0.213559 +v 0.066227 -0.068641 0.222851 +v 0.062501 -0.071081 0.229168 +v 0.060659 -0.066015 0.239592 +v 0.057579 -0.067414 0.243523 +v 0.055002 -0.060867 0.252669 +v 0.070782 -0.067686 0.202435 +v 0.064806 -0.064034 0.233469 +v 0.058381 -0.059700 0.248928 +v 0.068133 -0.069809 0.154660 +v 0.070627 -0.069208 0.179051 +v 0.065619 -0.076041 0.157772 +v 0.066726 -0.076469 0.177026 +v 0.063232 -0.081538 0.167631 +v 0.069027 -0.072396 0.180813 +v 0.072242 -0.063015 0.208731 +v 0.068519 -0.061639 0.226776 +v 0.066060 -0.056561 0.238771 +v 0.061550 -0.058508 0.244984 +v 0.057225 -0.054018 0.254221 +v 0.054243 -0.046035 0.261489 +v 0.071663 -0.059385 0.219637 +v 0.069654 -0.054773 0.232118 +v 0.074644 -0.059654 0.184906 +v 0.078345 -0.049125 0.198192 +v 0.073881 -0.061995 0.193111 +v 0.076017 -0.054656 0.205943 +v 0.078047 -0.046092 0.212982 +v 0.074617 -0.054725 0.214859 +v 0.072963 -0.052828 0.225214 +v 0.069199 -0.049759 0.237773 +v 0.063680 -0.051937 0.246352 +v 0.067421 -0.042645 0.245865 +v 0.061278 -0.044380 0.254071 +v 0.073699 -0.047486 0.228635 +v 0.076406 -0.045726 0.221512 +v 0.080208 -0.041469 0.204258 +v 0.072572 -0.040826 0.237012 +v 0.076663 -0.038927 0.227660 +v 0.079655 -0.036960 0.217947 +v 0.081528 -0.034946 0.207995 +v 0.061884 -0.035419 0.256862 +v 0.062362 -0.026225 0.258852 +v 0.068145 -0.034054 0.248706 +v 0.068712 -0.025210 0.250747 +v 0.073408 -0.032619 0.239894 +v 0.074061 -0.024140 0.241975 +v 0.077604 -0.031119 0.230567 +v 0.078338 -0.023019 0.232672 +v 0.080689 -0.029562 0.220862 +v 0.081497 -0.021855 0.222976 +v 0.082643 -0.027965 0.210906 +v 0.083512 -0.020658 0.213014 +v 0.074511 -0.015490 0.243340 +v 0.069106 -0.016210 0.252082 +v 0.062699 -0.016892 0.260145 +v 0.055385 -0.017539 0.267405 +v 0.069138 -0.071991 0.193991 +v 0.070735 -0.045690 0.086495 +v 0.068393 -0.055465 0.106752 +v 0.067970 -0.057719 0.103022 +v 0.071500 -0.045884 0.075669 +v 0.075832 -0.033965 0.054449 +v 0.055228 -0.068890 0.044666 +v 0.071163 -0.048253 0.062161 +v 0.076988 -0.036019 0.024032 +v 0.079567 -0.029111 0.024005 +v 0.080835 -0.024911 0.024269 +v 0.082086 -0.019525 0.022984 +v 0.081651 -0.017987 0.029373 +v 0.073487 -0.042421 0.056198 +v 0.069206 -0.052468 0.058405 +v 0.081986 -0.011909 0.030193 +v 0.067427 -0.059309 0.093706 +v 0.066827 -0.065447 0.125398 +v 0.065035 -0.069592 0.121704 +v 0.079421 -0.031052 0.012166 +v 0.083580 -0.012541 0.017490 +v 0.082205 -0.023842 0.000001 +v 0.078691 -0.033805 0.000000 +v 0.064184 -0.057069 0.000000 +v 0.061630 -0.059638 0.010311 +v 0.056389 -0.065003 0.000000 +v 0.056286 -0.065022 0.010280 +v 0.050299 -0.070223 0.011034 +v 0.049798 -0.070261 0.000002 +v 0.069375 -0.050468 0.000002 +v 0.074633 -0.042186 0.000000 +v 0.083908 -0.016960 0.000005 +v 0.085307 -0.006930 0.000005 +v 0.031776 -0.079644 0.000000 +v 0.026861 -0.081362 0.000001 +v 0.022838 -0.082532 0.000000 +v 0.020996 -0.082956 0.000000 +v 0.017783 -0.083717 0.000000 +v 0.012795 -0.084587 0.000002 +v 0.036502 -0.077678 0.000000 +v 0.034086 -0.078703 0.000001 +v 0.045619 -0.072924 0.000000 +v 0.043602 -0.074030 0.000002 +v 0.041119 -0.075438 0.000000 +v 0.038917 -0.076506 0.000000 +v -0.045012 -0.073283 0.000000 +v -0.038025 -0.076938 0.000000 +v -0.040510 -0.075752 0.000000 +v -0.043026 -0.074374 0.000001 +v -0.031985 -0.079563 0.000001 +v -0.035859 -0.077964 0.000000 +v -0.026982 -0.081321 0.000002 +v 0.007605 -0.085187 0.000000 +v 0.007594 -0.085188 -0.000000 +v 0.002491 -0.085479 0.000000 +v -0.019969 -0.083205 -0.000000 +v -0.022150 -0.082712 0.000000 +v -0.017143 -0.083845 0.000000 +v -0.013377 -0.084472 -0.000000 +v -0.012056 -0.084691 0.000000 +v -0.006963 -0.085242 0.000002 +v 0.000000 -0.085477 -0.000000 +v -0.002629 -0.085475 0.000000 +v -0.012917 -0.015512 0.286716 +v -0.023146 -0.083048 0.014740 +v -0.017143 -0.083845 -0.000000 +v -0.016626 -0.084562 0.014833 +v -0.003340 -0.086086 0.014932 +v 0.002491 -0.085479 -0.000000 +v 0.003351 -0.086087 0.014937 +v 0.035762 -0.078561 0.014519 +v 0.029544 -0.081048 0.014660 +v 0.010022 -0.085578 0.014912 +v -0.027069 -0.081295 0.000000 +v -0.029533 -0.081042 0.014617 +v -0.044522 -0.075021 0.025124 +v -0.043877 -0.078392 0.046748 +v -0.043255 -0.081845 0.062795 +v -0.041925 -0.090132 0.094560 +v -0.040649 -0.099422 0.131721 +v -0.040217 -0.103260 0.153271 +v -0.037439 -0.106375 0.170648 +v -0.038357 -0.106232 0.184957 +v -0.037314 -0.105338 0.200514 +v -0.040347 -0.102888 0.205005 +v -0.040611 -0.100190 0.215589 +v -0.040956 -0.096306 0.225794 +v -0.041374 -0.091158 0.235419 +v -0.042097 -0.081065 0.248292 +v -0.039682 -0.075439 0.255088 +v -0.042985 -0.066192 0.260256 +v -0.043343 -0.059007 0.264208 +v -0.043780 -0.048958 0.268507 +v -0.044154 -0.038509 0.271720 +v -0.044389 -0.030503 0.273510 +v -0.044548 -0.016152 0.275585 +v -0.035784 -0.008937 0.280335 +v 0.013334 -0.012055 0.286745 +v 0.038855 -0.008880 0.278991 +v 0.045273 -0.015361 0.275249 +v 0.044154 -0.038509 0.271720 +v 0.040703 -0.028728 0.275970 +v 0.043780 -0.048958 0.268507 +v 0.043343 -0.059006 0.264208 +v 0.042860 -0.068466 0.258738 +v 0.042352 -0.077114 0.252066 +v 0.041847 -0.084733 0.244244 +v 0.041486 -0.089709 0.237735 +v 0.041157 -0.093893 0.230693 +v 0.040774 -0.098403 0.220751 +v 0.040469 -0.101681 0.210334 +v 0.040247 -0.103828 0.199620 +v 0.040071 -0.105264 0.185427 +v 0.040217 -0.103260 0.153271 +v 0.040649 -0.099422 0.131721 +v 0.043469 -0.080641 0.057457 +v 0.044234 -0.076497 0.035969 +v 0.044646 -0.074394 0.019686 +v 0.038752 -0.077587 0.019935 +v 0.038398 -0.079713 0.036404 +v 0.037742 -0.083861 0.058147 +v 0.041925 -0.090132 0.094560 +v 0.032342 -0.082464 0.036775 +v 0.031795 -0.086612 0.058735 +v 0.036417 -0.093297 0.095718 +v 0.023157 -0.083053 0.014773 +v 0.022916 -0.085622 0.037217 +v 0.026007 -0.085596 0.042647 +v 0.025662 -0.088881 0.059220 +v 0.030689 -0.095998 0.096705 +v 0.006598 -0.015562 0.287413 +v 0.000098 -0.015575 0.287659 +v 0.006644 -0.029067 0.285451 +v 0.000000 -0.029094 0.285697 +v 0.006601 -0.040118 0.282635 +v 0.000000 -0.040153 0.282868 +v 0.003284 -0.050842 0.279049 +v 0.006121 -0.104611 0.230012 +v 0.003080 -0.100568 0.237618 +v -0.003000 -0.104870 0.230137 +v 0.006077 -0.109054 0.219513 +v 0.000000 -0.109210 0.219709 +v 0.006046 -0.112270 0.208575 +v -0.002975 -0.112534 0.208735 +v 0.006026 -0.114318 0.197358 +v -0.002981 -0.114584 0.197542 +v 0.009010 -0.114869 0.188583 +v -0.003009 -0.115287 0.188935 +v 0.009011 -0.115131 0.177189 +v -0.003010 -0.115575 0.177521 +v 0.009029 -0.114585 0.165807 +v -0.003016 -0.115046 0.166118 +v 0.009062 -0.113370 0.154474 +v -0.003027 -0.113845 0.154764 +v 0.006105 -0.110912 0.137809 +v 0.000000 -0.111155 0.137939 +v 0.000000 -0.102215 0.098979 +v 0.013284 -0.023380 0.285679 +v 0.013210 -0.034536 0.283467 +v 0.013114 -0.045414 0.280143 +v 0.016482 -0.055840 0.275364 +v 0.003255 -0.061218 0.274101 +v 0.016417 -0.065964 0.270035 +v 0.003163 -0.071091 0.268158 +v 0.015847 -0.075386 0.263638 +v 0.003205 -0.080238 0.261257 +v 0.015702 -0.084106 0.256310 +v 0.003137 -0.088562 0.253426 +v 0.012440 -0.091870 0.248458 +v 0.003172 -0.095940 0.244671 +v 0.012313 -0.098624 0.239317 +v 0.012204 -0.104217 0.229423 +v 0.012117 -0.108586 0.218930 +v 0.012054 -0.111735 0.208006 +v 0.012015 -0.113727 0.196810 +v 0.012173 -0.110183 0.137422 +v 0.006288 -0.101963 0.098887 +v 0.023157 -0.009124 0.284768 +v 0.022398 -0.021904 0.284141 +v 0.019723 -0.034383 0.282279 +v 0.019579 -0.045228 0.279024 +v 0.018567 -0.091444 0.247496 +v 0.018376 -0.098091 0.238344 +v 0.018212 -0.103563 0.228445 +v 0.018082 -0.107810 0.217961 +v 0.017988 -0.110847 0.207061 +v 0.017930 -0.112743 0.195902 +v 0.020805 -0.112785 0.186833 +v 0.020808 -0.112925 0.175537 +v 0.020849 -0.112289 0.164259 +v 0.020926 -0.111012 0.153032 +v 0.018165 -0.108974 0.136780 +v 0.012539 -0.101212 0.098612 +v 0.000000 -0.092953 0.060090 +v 0.029314 -0.028446 0.280960 +v 0.026034 -0.039608 0.279175 +v 0.025822 -0.050242 0.275498 +v 0.025573 -0.060460 0.270784 +v 0.025298 -0.070130 0.265029 +v 0.025008 -0.079095 0.258232 +v 0.024721 -0.087184 0.250420 +v 0.024451 -0.094245 0.241674 +v 0.027954 -0.097334 0.235207 +v 0.024109 -0.102650 0.227082 +v 0.023936 -0.106727 0.216611 +v 0.023810 -0.109608 0.205744 +v 0.023732 -0.111371 0.194635 +v 0.024045 -0.107286 0.135885 +v 0.018714 -0.099964 0.098156 +v 0.006510 -0.092696 0.060035 +v 0.009923 -0.088168 0.037550 +v 0.003322 -0.088681 0.037614 +v -0.003298 -0.088681 0.037609 +v 0.032714 -0.008993 0.281679 +v 0.035664 -0.020033 0.279550 +v 0.035446 -0.039337 0.275986 +v 0.034897 -0.049873 0.272572 +v 0.031689 -0.060059 0.268970 +v 0.034039 -0.069607 0.262455 +v 0.030983 -0.078548 0.256532 +v 0.030623 -0.086509 0.248717 +v 0.033200 -0.091332 0.241210 +v 0.029858 -0.101483 0.225339 +v 0.029641 -0.105341 0.214884 +v 0.029483 -0.108020 0.204059 +v 0.029287 -0.110038 0.189800 +v 0.032084 -0.108982 0.172591 +v 0.032148 -0.108186 0.161498 +v 0.032267 -0.106798 0.150460 +v 0.029775 -0.105125 0.134740 +v 0.024777 -0.098224 0.097519 +v 0.012982 -0.091928 0.059871 +v 0.016467 -0.087147 0.037418 +v 0.013320 -0.085609 0.020559 +v 0.019379 -0.090655 0.059599 +v 0.035321 -0.102500 0.133350 +v 0.034771 -0.107842 0.187918 +v 0.034974 -0.106092 0.202015 +v 0.035163 -0.103657 0.212788 +v 0.035424 -0.100065 0.223225 +v 0.035752 -0.095244 0.233152 +v 0.036343 -0.085690 0.246655 +v 0.036775 -0.077887 0.254472 +v 0.037624 -0.059573 0.266774 +v -0.038372 -0.024897 0.277819 +v -0.032356 -0.025164 0.280403 +v -0.023157 -0.009124 0.284768 +v -0.022343 -0.022015 0.284132 +v -0.006376 -0.015550 0.287430 +v -0.032267 -0.039305 0.277120 +v -0.038318 -0.038938 0.274630 +v -0.032000 -0.049888 0.273570 +v -0.037998 -0.049459 0.271235 +v -0.031689 -0.060059 0.268970 +v -0.037624 -0.059573 0.266774 +v -0.034519 -0.069519 0.262302 +v -0.031105 -0.080584 0.254814 +v -0.036557 -0.081921 0.250695 +v -0.030450 -0.090094 0.244445 +v -0.036136 -0.089176 0.242371 +v -0.030131 -0.096397 0.235254 +v -0.035752 -0.095244 0.233152 +v -0.029858 -0.101483 0.225339 +v -0.035424 -0.100065 0.223225 +v -0.032449 -0.104658 0.213905 +v -0.026598 -0.109009 0.204950 +v -0.029201 -0.110092 0.189585 +v -0.034856 -0.107478 0.191047 +v -0.026529 -0.111168 0.174223 +v -0.026582 -0.110461 0.163028 +v -0.034950 -0.106228 0.155169 +v -0.026680 -0.109134 0.151885 +v -0.032585 -0.103999 0.133953 +v -0.030689 -0.095998 0.096705 +v -0.036417 -0.093297 0.095718 +v -0.031795 -0.086612 0.058735 +v -0.037742 -0.083861 0.058147 +v -0.032342 -0.082464 0.036775 +v -0.038398 -0.079713 0.036404 +v -0.035751 -0.078554 0.014466 +v -0.026205 -0.028667 0.281808 +v -0.019723 -0.034383 0.282279 +v -0.026034 -0.039608 0.279175 +v -0.019579 -0.045228 0.279024 +v -0.025822 -0.050242 0.275498 +v -0.019405 -0.055706 0.274733 +v -0.025573 -0.060460 0.270784 +v -0.019208 -0.065708 0.269422 +v -0.025298 -0.070130 0.265029 +v -0.018995 -0.075102 0.263101 +v -0.025008 -0.079095 0.258233 +v -0.018777 -0.083733 0.255778 +v -0.024720 -0.087184 0.250420 +v -0.021306 -0.091766 0.246452 +v -0.018376 -0.098091 0.238344 +v -0.024327 -0.097348 0.236988 +v -0.015053 -0.104103 0.229015 +v -0.024109 -0.102650 0.227082 +v -0.021019 -0.107475 0.217319 +v -0.015015 -0.111468 0.207605 +v -0.014968 -0.113408 0.196421 +v -0.023593 -0.111873 0.191195 +v -0.014954 -0.114034 0.187881 +v -0.014956 -0.114247 0.176527 +v -0.014986 -0.113665 0.165186 +v -0.015040 -0.112425 0.153896 +v -0.018165 -0.108974 0.136780 +v -0.024045 -0.107286 0.135885 +v -0.018714 -0.099964 0.098156 +v -0.024777 -0.098224 0.097519 +v -0.019379 -0.090655 0.059599 +v -0.025662 -0.088881 0.059220 +v -0.016443 -0.087146 0.037393 +v -0.026101 -0.084733 0.037080 +v -0.016549 -0.085627 0.026139 +v -0.006643 -0.029067 0.285451 +v -0.013250 -0.028987 0.284718 +v -0.006601 -0.040118 0.282635 +v -0.013165 -0.040016 0.281938 +v -0.010023 -0.050827 0.278580 +v -0.009221 -0.100341 0.237225 +v -0.009066 -0.109014 0.219257 +v -0.006105 -0.110912 0.137809 +v -0.012172 -0.110183 0.137422 +v -0.006288 -0.101963 0.098887 +v -0.012539 -0.101212 0.098612 +v -0.006510 -0.092696 0.060035 +v -0.012982 -0.091928 0.059871 +v -0.009899 -0.088168 0.037535 +v -0.006702 -0.085544 0.009236 +v -0.009372 -0.095749 0.244286 +v -0.009497 -0.088394 0.253025 +v -0.009602 -0.080101 0.260880 +v -0.009790 -0.070938 0.267765 +v -0.009933 -0.061119 0.273682 +vn 0.045000 0.677900 -0.733800 +vn -0.171100 0.681100 -0.711900 +vn 0.317000 0.679300 0.661800 +vn 0.481700 0.684400 0.547200 +vn 0.606700 0.681800 0.408800 +vn 0.515500 0.682400 -0.518200 +vn -0.330300 0.685300 -0.648900 +vn -0.467600 0.683900 -0.560000 +vn -0.608400 0.676000 -0.415700 +vn 0.390100 0.686000 -0.614200 +vn -0.350700 0.684700 0.638800 +vn -0.711500 0.676800 -0.188600 +vn -0.733100 0.677400 0.060400 +vn -0.192900 0.682200 0.705200 +vn 0.681900 0.684700 0.257100 +vn 0.733400 0.677500 0.056600 +vn 0.711100 0.677800 -0.186500 +vn 0.233800 0.686500 -0.688500 +vn -0.036900 0.686800 0.725900 +vn 0.129300 0.686700 0.715300 +vn 0.623900 0.684500 -0.376900 +vn -0.481600 0.684700 0.547000 +vn -0.593700 0.681200 0.428400 +vn -0.679400 0.682500 0.269300 +vn -0.060100 0.733200 -0.677400 +vn 0.185200 0.709600 -0.679800 +vn 0.707300 -0.202900 -0.677100 +vn 0.366800 0.628200 -0.686100 +vn -0.736100 0.068000 -0.673400 +vn 0.599500 -0.426300 -0.677400 +vn 0.413700 -0.609200 -0.676400 +vn -0.664800 0.315300 -0.677200 +vn 0.185000 -0.712200 -0.677100 +vn -0.074300 -0.732200 -0.677000 +vn 0.536600 0.502800 -0.677700 +vn 0.672000 0.301700 -0.676300 +vn 0.733100 0.050500 -0.678200 +vn -0.312400 -0.665400 -0.677900 +vn -0.629200 -0.367000 -0.685100 +vn -0.712300 -0.176100 -0.679400 +vn -0.515300 0.524100 -0.678000 +vn -0.303000 0.671700 -0.676000 +vn -0.514500 -0.524000 -0.678700 +vn -0.034000 0.728900 -0.683700 +vn -0.179000 0.734100 -0.655000 +vn -0.328400 0.731300 -0.597800 +vn -0.451000 0.730900 -0.512100 +vn -0.549500 0.735300 -0.396600 +vn -0.631700 0.733600 -0.250300 +vn -0.670100 0.740200 -0.055200 +vn -0.648600 0.741400 0.171900 +vn -0.553600 0.741900 0.378200 +vn -0.436400 0.732400 0.522700 +vn -0.309700 0.730500 0.608700 +vn -0.158200 0.735700 0.658500 +vn 0.040100 0.739200 0.672300 +vn 0.218100 0.731100 0.646400 +vn 0.363400 0.728400 0.580700 +vn 0.478000 0.734100 0.482300 +vn 0.583200 0.732000 0.352200 +vn 0.650600 0.740000 0.170700 +vn 0.670600 0.740000 -0.051700 +vn 0.638100 0.731300 -0.240700 +vn 0.563800 0.734100 -0.378300 +vn 0.455400 0.731500 -0.507400 +vn 0.120700 0.728900 -0.673900 +vn 0.287800 0.740400 -0.607400 +vn -0.447000 0.760600 0.470800 +vn -0.363300 0.803300 0.471900 +vn -0.379600 0.847300 0.371300 +vn -0.468100 0.831900 0.298000 +vn -0.381900 0.880700 0.280100 +vn -0.427400 0.887900 0.170000 +vn -0.083100 0.895700 0.436700 +vn -0.021100 0.890800 0.454000 +vn -0.035300 0.962700 0.268200 +vn -0.033900 0.993600 0.107800 +vn -0.117600 0.981200 0.153000 +vn -0.413000 0.631800 -0.655900 +vn -0.339200 0.637700 -0.691500 +vn -0.294600 0.864700 -0.406800 +vn -0.037300 0.787900 0.614700 +vn -0.009800 0.776600 0.629900 +vn -0.032800 0.730800 0.681800 +vn -0.238500 0.903100 0.357000 +vn -0.179700 0.843300 0.506400 +vn -0.353000 0.874900 0.331500 +vn -0.182000 0.774900 0.605300 +vn -0.301900 0.835500 0.459100 +vn -0.431500 0.688800 0.582400 +vn -0.395600 0.648300 0.650500 +vn -0.499900 0.651800 0.570200 +vn -0.037000 0.661000 0.749500 +vn -0.017800 0.708100 0.705900 +vn -0.879700 0.226400 -0.418100 +vn -0.856400 0.390400 -0.337700 +vn -0.905900 0.262900 -0.331900 +vn -0.821600 0.392000 -0.413800 +vn -0.818800 0.498600 -0.284600 +vn -0.921600 0.323400 0.214700 +vn -0.897400 0.297000 0.326200 +vn -0.952800 0.225500 0.202900 +vn -0.677900 0.510400 0.529000 +vn -0.724100 0.452900 0.520200 +vn -0.661000 0.507500 0.552700 +vn -0.532900 0.560000 0.634400 +vn -0.570700 0.541800 0.617000 +vn -0.982500 0.045800 0.180300 +vn -0.991500 0.018900 0.128200 +vn -0.975700 0.126900 0.178400 +vn -0.997500 -0.001800 0.070500 +vn -0.728900 0.681000 -0.069700 +vn -0.708300 0.686400 -0.165000 +vn -0.982500 -0.045700 -0.180700 +vn -0.971700 0.196700 0.130800 +vn -0.723600 0.164300 -0.670400 +vn -0.737300 0.074700 -0.671300 +vn -0.946300 0.292300 0.137900 +vn -0.700600 0.271900 -0.659700 +vn -0.905500 0.407500 0.118500 +vn -0.581200 0.481800 -0.655800 +vn -0.816900 0.564300 0.119400 +vn -0.755700 0.640000 0.138900 +vn -0.701200 0.704600 0.108900 +vn -0.497000 0.561400 -0.661600 +vn -0.603700 0.784300 0.142600 +vn -0.418400 0.627800 -0.656200 +vn -0.080700 0.728700 -0.680100 +vn -0.078200 0.994000 0.075800 +vn -0.001800 0.729500 -0.683900 +vn -0.058100 0.724500 -0.686800 +vn 0.007400 0.765000 -0.644000 +vn -0.055500 0.441200 -0.895700 +vn -0.139700 0.305000 -0.942000 +vn -0.144300 0.761500 -0.631800 +vn -0.230200 0.746700 -0.624000 +vn -0.379200 0.221100 -0.898500 +vn -0.311400 0.705700 -0.636300 +vn -0.485400 0.234500 -0.842200 +vn -0.376300 0.732400 -0.567500 +vn -0.999100 -0.040200 -0.012500 +vn -0.729500 0.683300 0.027400 +vn -0.989800 -0.099100 -0.102500 +vn -0.995700 -0.091100 -0.015100 +vn -0.985700 -0.167800 -0.014600 +vn -0.975800 -0.212600 -0.050900 +vn -0.976500 -0.169200 -0.133300 +vn -0.964100 -0.246700 -0.097800 +vn -0.963300 -0.227200 -0.143100 +vn -0.968900 -0.181000 -0.168700 +vn -0.974200 -0.141500 -0.176000 +vn -0.980600 -0.144200 -0.132900 +vn -0.993500 -0.037200 -0.107400 +vn -0.989000 -0.121400 -0.084300 +vn -0.998200 0.058100 -0.010400 +vn -0.997400 -0.059900 -0.040300 +vn -0.999500 -0.026800 0.014400 +vn -0.989600 0.108800 0.094100 +vn -0.974600 0.036800 0.220900 +vn -0.953600 0.176700 0.243800 +vn -0.959100 0.119600 0.256300 +vn -0.977800 0.006300 0.209500 +vn -0.988000 0.097700 0.119100 +vn -0.735500 0.004900 -0.677400 +vn -0.995700 -0.006400 0.092200 +vn -0.801600 0.525800 0.284600 +vn -0.812700 0.547000 0.200600 +vn -0.859600 0.467100 0.206900 +vn -0.871900 0.473300 0.124900 +vn -0.649400 0.378600 -0.659400 +vn -0.900800 0.374200 0.220100 +vn -0.851100 0.429400 0.302000 +vn -0.796700 0.487500 0.357300 +vn -0.686500 0.648900 0.328000 +vn -0.671600 0.691900 0.265000 +vn -0.740300 0.581500 0.337200 +vn -0.749100 0.620700 0.231500 +vn -0.796700 0.401100 0.452000 +vn -0.766300 0.464100 0.444300 +vn -0.921400 0.277100 0.272400 +vn -0.949600 0.191700 0.248100 +vn -0.977800 0.105300 0.180800 +vn -0.985400 0.022300 0.169000 +vn -0.877000 0.350300 0.328700 +vn -0.828400 0.409000 0.382600 +vn -0.756900 0.437000 0.485800 +vn -0.628300 0.561500 0.538400 +vn -0.490200 0.599600 0.632500 +vn -0.601600 0.572400 0.557100 +vn -0.673000 0.530700 0.515200 +vn -0.769500 0.477500 0.424100 +vn -0.827500 0.374300 0.418400 +vn -0.840800 0.335800 0.424500 +vn -0.860300 0.333400 0.385600 +vn -0.898900 0.260200 0.352500 +vn -0.955700 0.137000 0.260400 +vn -0.906600 0.240600 0.346800 +vn -0.926100 0.194600 0.323200 +vn -0.658300 0.642800 0.391600 +vn -0.643600 0.612400 0.459000 +vn -0.687200 0.706700 0.168400 +vn -0.568300 0.782100 0.255600 +vn -0.618300 0.720700 0.313600 +vn -0.800100 0.596900 0.059800 +vn -0.773200 0.634000 -0.010900 +vn -0.849900 0.517900 -0.097100 +vn -0.761600 0.622400 0.180200 +vn -0.688500 0.653900 0.313500 +vn -0.594500 0.700500 0.394800 +vn -0.776900 0.616300 -0.128300 +vn -0.844400 0.512300 0.156600 +vn -0.867400 0.493100 0.066900 +vn -0.896400 0.441600 -0.037300 +vn -0.918300 0.366000 -0.150900 +vn -0.698100 0.556300 0.450700 +vn -0.753900 0.551700 0.356600 +vn -0.827200 0.512500 0.230400 +vn -0.935600 0.352000 -0.025800 +vn -0.953100 0.271800 -0.133200 +vn -0.948100 0.317000 0.025000 +vn -0.769100 0.538200 -0.344700 +vn -0.745000 0.627600 -0.226000 +vn -0.690700 0.686500 -0.227100 +vn -0.834000 0.234800 -0.499300 +vn -0.930200 0.198400 -0.308600 +vn -0.636000 0.703100 -0.317900 +vn -0.850300 0.076100 -0.520700 +vn -0.899500 0.034200 -0.435600 +vn -0.674100 0.693000 -0.255700 +vn -0.935100 -0.013300 -0.354200 +vn -0.874700 0.415300 -0.249600 +vn -0.923300 0.293100 -0.247900 +vn -0.823500 0.460200 0.331800 +vn -0.913200 0.366900 0.177300 +vn -0.932500 0.346600 0.101500 +vn -0.970600 0.215800 0.106100 +vn -0.854000 0.403000 0.329100 +vn -0.985300 0.170700 0.011200 +vn -0.977700 0.185300 -0.098900 +vn -0.985500 -0.042200 -0.164300 +vn -0.976100 -0.058500 -0.209300 +vn -0.991100 0.109000 -0.076200 +vn -0.970800 0.036800 -0.236800 +vn -0.956400 0.196200 -0.216400 +vn -0.951900 0.090600 -0.292700 +vn -0.959600 -0.039400 -0.278600 +vn -0.967700 -0.117300 -0.223200 +vn -0.915100 0.079200 -0.395300 +vn -0.869400 0.129000 -0.476900 +vn -0.959700 -0.062100 -0.274200 +vn -0.940600 0.012600 -0.339200 +vn -0.805500 0.149200 -0.573400 +vn -0.544500 0.725300 -0.421100 +vn -0.721600 0.166800 -0.671900 +vn -0.960000 -0.030800 -0.278300 +vn -0.975000 -0.107300 -0.194700 +vn -0.033500 0.591800 0.805400 +vn -0.039400 0.614100 0.788300 +vn -0.056000 0.587400 0.807400 +vn -0.210500 0.616100 0.759000 +vn -0.189400 0.657000 0.729700 +vn -0.137000 0.602200 0.786500 +vn -0.092400 0.617900 0.780800 +vn -0.022600 0.612600 0.790100 +vn -0.088500 0.662600 0.743700 +vn -0.253200 0.631500 0.732800 +vn -0.302700 0.673500 0.674400 +vn -0.387200 0.734300 0.557400 +vn -0.400400 0.777000 0.485700 +vn -0.315100 0.737800 0.597000 +vn -0.211100 0.723100 0.657700 +vn -0.126800 0.716700 0.685700 +vn -0.066000 0.707700 0.703400 +vn -0.132000 0.792500 0.595300 +vn -0.311300 0.789600 0.528800 +vn -0.397600 0.820300 0.411000 +vn -0.511600 0.827700 0.230800 +vn -0.599700 0.789600 0.130100 +vn -0.695800 0.717200 0.038600 +vn -0.477100 0.869400 0.128000 +vn -0.572300 0.818500 0.049300 +vn -0.651200 0.756900 -0.055500 +vn -0.361500 0.903000 0.232200 +vn -0.003800 0.805000 0.593300 +vn -0.022400 0.846600 0.531700 +vn -0.011800 0.896500 0.442700 +vn 0.005800 0.878300 0.478100 +vn -0.101500 0.882900 0.458400 +vn -0.028800 0.956400 0.290500 +vn -0.059500 0.992100 0.110600 +vn -0.004500 0.943000 0.332700 +vn -0.016600 0.989900 0.140700 +vn -0.095900 0.989700 -0.106200 +vn -0.035200 0.996000 -0.082200 +vn -0.053600 0.834200 -0.548800 +vn -0.046400 0.677300 -0.734200 +vn -0.155900 0.465100 -0.871400 +vn -0.132900 0.776600 -0.615800 +vn -0.053400 0.919000 0.390500 +vn -0.169100 0.959600 -0.225000 +vn -0.123800 0.991800 0.031000 +vn -0.096000 0.970700 0.220000 +vn -0.196200 0.975500 0.099200 +vn -0.149100 0.987600 -0.048900 +vn -0.163400 0.904900 -0.392900 +vn -0.083400 0.942500 -0.323700 +vn -0.034700 0.988900 -0.144300 +vn -0.261800 0.596600 -0.758600 +vn -0.300300 0.323200 -0.897400 +vn -0.235500 0.399100 -0.886100 +vn -0.205400 0.728800 -0.653200 +vn -0.249900 0.825100 -0.506600 +vn -0.240200 0.773200 -0.586900 +vn -0.231400 0.950400 0.207700 +vn -0.116200 0.938900 0.323900 +vn -0.297600 0.929900 0.216300 +vn -0.291900 0.956400 -0.011200 +vn -0.368000 0.896000 -0.248500 +vn -0.703600 0.624800 -0.338400 +vn -0.529200 0.836200 -0.144000 +vn -0.605500 0.754700 -0.252400 +vn -0.542000 0.781200 -0.309600 +vn -0.604600 0.623200 -0.496000 +vn -0.485400 0.774000 -0.406500 +vn -0.652700 0.634600 -0.413600 +vn -0.440200 0.895300 0.068200 +vn -0.582000 0.808000 -0.091400 +vn -0.753600 0.479500 -0.449700 +vn -0.708300 0.455200 -0.539500 +vn -0.770300 0.362700 -0.524400 +vn -0.778200 0.249400 -0.576300 +vn -0.421900 0.905900 -0.036500 +vn -0.400400 0.900900 -0.167200 +vn -0.309900 0.936100 -0.166000 +vn -0.979300 0.107700 -0.171500 +vn -0.416400 0.779700 -0.467500 +vn -0.478900 0.672100 -0.564600 +vn -0.407000 0.410000 -0.816200 +vn -0.445100 0.432800 -0.783900 +vn -0.561800 0.573400 -0.596300 +vn -0.521300 0.474600 -0.709300 +vn -0.672700 0.406300 -0.618300 +vn -0.680200 0.287700 -0.674200 +vn -0.595400 0.384700 -0.705300 +vn -0.589600 0.230600 -0.774000 +vn -0.645200 0.154600 -0.748200 +vn -0.447000 0.726200 -0.522200 +vn -0.488600 0.736100 -0.468300 +vn -0.596200 0.708700 -0.377100 +vn -0.080700 0.835600 0.543300 +vn -0.016700 0.805500 0.592300 +vn -0.077400 0.974100 0.212400 +vn -0.091100 0.936800 0.337800 +vn -0.185200 0.870800 0.455400 +vn -0.172300 0.813600 0.555200 +vn -0.192100 0.918800 0.344800 +vn -0.258800 0.787900 0.558700 +vn -0.162400 0.722300 -0.672300 +vn -0.221700 0.711400 -0.666900 +vn -0.193300 0.977400 0.086000 +vn -0.324900 0.934200 0.147000 +vn -0.240000 0.958400 0.154600 +vn -0.289800 0.920000 0.263700 +vn -0.189700 0.950100 0.247700 +vn -0.288200 0.887600 0.359200 +vn -0.277700 0.840500 0.465200 +vn -0.081200 0.695900 0.713500 +vn -0.036700 0.700800 0.712400 +vn -0.071700 0.769300 0.634800 +vn -0.156400 0.678000 0.718200 +vn -0.156100 0.751500 0.640900 +vn -0.333700 0.734300 0.591100 +vn -0.291500 0.640100 0.710800 +vn -0.224900 0.656800 0.719700 +vn -0.098900 0.630200 0.770100 +vn -0.110100 0.592100 0.798300 +vn -0.213200 0.608000 0.764700 +vn -0.294700 0.687100 -0.664100 +vn -0.233600 0.722800 0.650400 +vn -0.411400 0.698800 0.585200 +vn -0.463400 0.799800 0.381500 +vn -0.519800 0.713100 0.470400 +vn -0.488400 0.654800 0.576700 +vn -0.539700 0.746700 0.388800 +vn -0.674300 0.714000 0.188000 +vn -0.544700 0.777700 0.313800 +vn -0.609000 0.689000 0.392800 +vn -0.592300 0.655500 0.468500 +vn -0.591500 0.768500 0.243900 +vn -0.614900 0.717700 0.326700 +vn -0.670900 0.626500 0.396500 +vn -0.654100 0.597200 0.464100 +vn -0.730800 0.536900 0.421400 +vn -0.361500 0.660400 -0.658100 +vn -0.513500 0.836700 0.190300 +vn -0.289100 0.604700 0.742100 +vn -0.355300 0.620600 0.699000 +vn -0.359800 0.602300 0.712500 +vn -0.430400 0.600300 0.674100 +vn -0.558100 0.602800 0.570200 +vn -0.502500 0.575200 0.645500 +vn -0.442000 0.593200 0.672900 +vn 0.542100 0.829400 0.134600 +vn 0.354800 0.659600 -0.662500 +vn 0.466200 0.866500 0.178000 +vn 0.293200 0.945000 0.144800 +vn 0.189900 0.974100 0.122700 +vn 0.195300 0.950000 0.243600 +vn 0.730600 0.329400 -0.598100 +vn 0.733200 0.403900 -0.547000 +vn 0.648700 0.540900 -0.535300 +vn 0.299600 0.909000 0.289700 +vn 0.265500 0.868600 0.418300 +vn 0.194700 0.883500 0.426000 +vn 0.011600 0.959500 0.281400 +vn 0.024400 0.998000 -0.059100 +vn 0.013600 0.992700 0.119800 +vn 0.010600 0.689700 0.724000 +vn -0.005900 0.746200 0.665700 +vn 0.005200 0.755000 0.655700 +vn 0.528200 0.818700 0.225200 +vn 0.375500 0.863200 0.337300 +vn 0.428900 0.883300 0.189100 +vn 0.297400 0.828700 0.474100 +vn 0.256200 0.778600 0.572800 +vn 0.293700 0.737300 0.608400 +vn 0.123200 0.685800 0.717300 +vn 0.036700 0.719500 0.693500 +vn 0.066200 0.697600 0.713400 +vn 0.019200 0.658500 0.752300 +vn 0.087300 0.637000 0.765900 +vn 0.188700 0.662200 0.725100 +vn 0.139500 0.605600 0.783400 +vn 0.954800 0.262600 -0.139000 +vn 0.957000 0.185400 -0.222900 +vn 0.971300 0.038400 -0.234700 +vn 0.920300 0.346900 -0.181000 +vn 0.925100 0.208700 -0.317000 +vn 0.690300 0.558500 0.460000 +vn 0.606700 0.606100 0.514300 +vn 0.619400 0.646800 0.444900 +vn 0.649300 0.501200 0.571900 +vn 0.579700 0.542600 0.607800 +vn 0.530800 0.560100 0.636000 +vn 0.745100 0.454100 0.488500 +vn 0.774600 0.468300 0.425100 +vn 0.730900 0.537200 0.421000 +vn 0.975200 0.039600 0.217600 +vn 0.992300 0.000000 0.124000 +vn 0.971900 0.106400 0.209800 +vn 0.638100 0.404000 -0.655400 +vn 0.562800 0.498400 -0.659400 +vn 0.764400 0.633500 0.119700 +vn 0.728300 0.684600 0.029500 +vn 0.998000 -0.060600 0.013600 +vn 0.725200 0.685100 -0.069200 +vn 0.993700 -0.059200 -0.094700 +vn 0.981200 -0.044300 -0.187800 +vn 0.708400 0.681900 -0.181800 +vn 0.635600 0.704600 -0.315400 +vn 0.680200 0.689800 -0.248100 +vn 0.933100 -0.009600 -0.359400 +vn 0.498800 0.247800 -0.830500 +vn 0.295600 0.721400 -0.626100 +vn 0.384900 0.733700 -0.559900 +vn 0.364900 0.270600 -0.890800 +vn 0.216500 0.733100 -0.644700 +vn 0.097600 0.741000 -0.664400 +vn 0.061300 0.379200 -0.923300 +vn 0.079000 0.993700 0.078700 +vn 0.074000 0.730100 -0.679300 +vn 0.423200 0.610600 -0.669400 +vn 0.872000 0.475700 0.114900 +vn 0.693700 0.286100 -0.661000 +vn 0.909800 0.396600 0.122400 +vn 0.945900 0.303400 0.115000 +vn 0.723000 0.175000 -0.668200 +vn 0.974900 0.196200 0.105600 +vn 0.989000 0.091400 0.116200 +vn 0.738600 0.073200 -0.670200 +vn 0.743000 0.007000 -0.669200 +vn 0.954300 0.115200 0.275700 +vn 0.975700 0.021900 0.217900 +vn 0.964800 0.154900 0.212300 +vn 0.989100 0.040600 0.141600 +vn 0.977800 0.047500 0.203800 +vn 0.992100 0.102200 0.072300 +vn 0.996100 0.002800 0.087800 +vn 0.999000 -0.043500 -0.003100 +vn 0.998400 0.020800 -0.052500 +vn 0.993700 -0.079300 -0.078400 +vn 0.983300 -0.143500 -0.111700 +vn 0.973800 -0.142200 -0.177600 +vn 0.968800 -0.202500 -0.142600 +vn 0.987400 -0.069000 -0.142400 +vn 0.961700 -0.242500 -0.127600 +vn 0.969000 -0.179200 -0.169900 +vn 0.965500 -0.244300 -0.089300 +vn 0.980500 -0.193700 -0.032200 +vn 0.975900 -0.172200 -0.134200 +vn 0.991400 -0.130600 0.004400 +vn 0.812100 0.569700 0.126100 +vn 0.814300 0.528200 0.240600 +vn 0.863000 0.447100 0.235200 +vn 0.748600 0.585700 0.310600 +vn 0.666600 0.599900 0.442300 +vn 0.815700 0.399000 0.418800 +vn 0.779400 0.405500 0.477500 +vn 0.697000 0.475300 0.536800 +vn 0.694500 0.509900 0.507500 +vn 0.907400 0.369600 0.199800 +vn 0.936800 0.276600 0.214300 +vn 0.962400 0.187000 0.196800 +vn 0.892000 0.351100 0.284700 +vn 0.937100 0.195300 0.289200 +vn 0.916300 0.271200 0.294700 +vn 0.837200 0.421600 0.348100 +vn 0.802000 0.485900 0.347300 +vn 0.869000 0.339500 0.359800 +vn 0.630100 0.559200 0.538700 +vn 0.607000 0.530800 0.591400 +vn 0.508900 0.593200 0.623700 +vn 0.845400 0.337800 0.413700 +vn 0.589700 0.576900 0.565100 +vn 0.689100 0.522900 0.501600 +vn 0.776000 0.477300 0.412200 +vn 0.768000 0.425600 0.478600 +vn 0.714300 0.595400 0.367700 +vn 0.783500 0.523800 0.334200 +vn 0.830000 0.376100 0.411800 +vn 0.882200 0.276200 0.381300 +vn 0.894300 0.267000 0.358900 +vn 0.854200 0.390500 0.343100 +vn 0.925000 0.201400 0.322300 +vn 0.916100 0.330600 0.226500 +vn 0.961900 0.224900 0.155400 +vn 0.929800 0.269200 0.250800 +vn 0.881300 0.313800 0.353300 +vn 0.932400 0.223500 0.283800 +vn 0.955700 0.124800 0.266300 +vn 0.645600 0.711100 0.278400 +vn 0.560800 0.717900 0.412400 +vn 0.510400 0.761100 0.400200 +vn 0.611300 0.758000 0.227600 +vn 0.767800 0.635100 0.083500 +vn 0.717700 0.631800 0.292800 +vn 0.782300 0.603400 0.154700 +vn 0.754800 0.655900 -0.010900 +vn 0.854800 0.507200 -0.109600 +vn 0.824000 0.527300 -0.207200 +vn 0.519800 0.678800 0.518700 +vn 0.838300 0.519000 0.166900 +vn 0.866800 0.495600 0.055400 +vn 0.880000 0.431200 0.199000 +vn 0.806500 0.528500 0.265000 +vn 0.859800 0.424600 0.283500 +vn 0.861500 0.507500 -0.013800 +vn 0.890300 0.363500 -0.274200 +vn 0.914300 0.396200 0.083700 +vn 0.913000 0.405000 -0.049200 +vn 0.951800 0.092300 -0.292300 +vn 0.955200 0.295500 0.011200 +vn 0.944100 0.322100 -0.069900 +vn 0.629200 0.768700 0.114700 +vn 0.707800 0.703200 -0.067800 +vn 0.759500 0.599700 -0.251900 +vn 0.745600 0.556100 -0.367200 +vn 0.810700 0.478000 -0.337900 +vn 0.884900 0.300900 -0.355600 +vn 0.836500 0.325600 -0.440600 +vn 0.874800 0.209200 -0.436900 +vn 0.782300 0.406900 -0.471500 +vn 0.803700 0.224300 -0.551100 +vn 0.728500 0.180700 -0.660700 +vn 0.484400 0.731100 -0.480400 +vn 0.548000 0.720700 -0.424600 +vn 0.790300 0.104600 -0.603700 +vn 0.593800 0.713000 -0.372700 +vn 0.851800 0.111800 -0.511700 +vn 0.899300 0.032500 -0.436000 +vn 0.943800 0.312100 0.108300 +vn 0.981100 0.190300 0.034800 +vn 0.973700 0.221400 -0.053300 +vn 0.979100 0.137600 -0.149600 +vn 0.991900 0.095200 -0.083700 +vn 0.987700 0.027600 -0.153500 +vn 0.975700 -0.065000 -0.209200 +vn 0.959800 -0.044900 -0.276900 +vn 0.966900 -0.122200 -0.223900 +vn 0.917800 0.075500 -0.389600 +vn 0.939800 0.004400 -0.341700 +vn 0.975200 -0.106700 -0.193500 +vn 0.959300 -0.063400 -0.275000 +vn 0.987500 -0.113900 -0.109200 +vn 0.463100 0.637200 0.616000 +vn 0.047100 0.621900 0.781600 +vn 0.020400 0.619300 0.784900 +vn 0.134900 0.766800 0.627500 +vn 0.435600 0.673900 0.596700 +vn 0.286400 0.636400 0.716200 +vn 0.390200 0.711000 0.585000 +vn 0.348200 0.780700 0.518800 +vn 0.439600 0.748700 0.496000 +vn 0.184000 0.824400 0.535300 +vn 0.426600 0.807600 0.407300 +vn 0.019300 0.901000 0.433300 +vn 0.016800 0.831500 0.555200 +vn -0.004400 0.811300 0.584600 +vn 0.057000 0.797200 0.600900 +vn 0.050800 0.880600 0.471100 +vn 0.103900 0.834100 0.541600 +vn 0.105300 0.882700 0.458000 +vn 0.162500 0.939100 0.302800 +vn 0.071500 0.948600 0.308100 +vn 0.141100 0.978800 0.148100 +vn -0.002000 0.883600 0.468300 +vn 0.004500 0.960900 0.276700 +vn 0.076700 0.737600 -0.670800 +vn 0.072400 0.939700 -0.334100 +vn 0.042000 0.895200 -0.443600 +vn 0.097400 0.387200 -0.916800 +vn 0.054300 0.674600 -0.736200 +vn 0.198700 0.495600 -0.845500 +vn 0.058300 0.982500 0.177000 +vn 0.253600 0.385100 -0.887300 +vn 0.165200 0.732100 -0.660800 +vn 0.148700 0.902900 -0.403300 +vn 0.072600 0.995900 -0.054300 +vn 0.237300 0.745000 -0.623400 +vn 0.291600 0.700700 -0.651100 +vn 0.279000 0.879200 -0.386100 +vn 0.036300 0.995000 -0.093400 +vn 0.306800 0.499900 -0.809900 +vn 0.346000 0.927700 0.140300 +vn 0.456000 0.890000 0.005500 +vn 0.516900 0.818500 -0.250800 +vn 0.400200 0.907000 -0.130700 +vn 0.444700 0.792700 -0.416900 +vn 0.560400 0.690200 -0.457700 +vn 0.353300 0.890000 -0.288100 +vn 0.560000 0.825600 0.068800 +vn 0.655100 0.739900 -0.152600 +vn 0.505400 0.861200 -0.053700 +vn 0.591900 0.777800 -0.211400 +vn 0.600200 0.733800 -0.318200 +vn 0.676600 0.645300 -0.354700 +vn 0.712400 0.545300 -0.441700 +vn 0.376400 0.804500 -0.459400 +vn 0.276000 0.941700 -0.192100 +vn 0.171600 0.958600 -0.227100 +vn 0.073700 0.990600 0.115400 +vn 0.175600 0.982800 -0.055900 +vn 0.246800 0.961400 0.121900 +vn 0.320900 0.940100 -0.114700 +vn 0.219700 0.975400 -0.016800 +vn 0.390900 0.430100 -0.813700 +vn 0.358700 0.643100 -0.676500 +vn 0.477200 0.314200 -0.820700 +vn 0.543700 0.436800 -0.716600 +vn 0.448400 0.573400 -0.685600 +vn 0.621400 0.322400 -0.714000 +vn 0.596400 0.518900 -0.612300 +vn 0.513600 0.611300 -0.602100 +vn 0.454700 0.676800 -0.578900 +vn 0.678500 0.321000 -0.660700 +vn 0.576600 0.216100 -0.787900 +vn 0.436500 0.725800 -0.531700 +vn 0.657500 0.156000 -0.737100 +vn 0.034800 0.994800 0.095300 +vn 0.032900 0.982300 0.184700 +vn 0.089500 0.974200 0.207300 +vn 0.037500 0.887100 0.460100 +vn 0.026100 0.808200 0.588300 +vn 0.083300 0.836300 0.541800 +vn 0.085300 0.895300 0.437200 +vn 0.054300 0.945800 0.320000 +vn 0.135300 0.930300 0.341000 +vn 0.295400 0.687700 -0.663100 +vn 0.224400 0.709100 -0.668400 +vn 0.151500 0.724500 -0.672300 +vn 0.069200 0.769700 0.634600 +vn 0.170900 0.813800 0.555400 +vn 0.181400 0.871700 0.455200 +vn 0.290500 0.921400 0.258200 +vn 0.380100 0.912300 0.152300 +vn 0.154300 0.749700 0.643500 +vn 0.275800 0.841100 0.465200 +vn 0.239600 0.904500 0.352700 +vn 0.334700 0.868500 0.365600 +vn 0.384500 0.881000 0.275600 +vn 0.038300 0.700000 0.713100 +vn 0.041200 0.612300 0.789500 +vn 0.070500 0.634800 0.769400 +vn 0.058900 0.588900 0.806100 +vn 0.227600 0.657400 0.718300 +vn 0.134700 0.620300 0.772700 +vn 0.206900 0.606800 0.767400 +vn 0.102100 0.590700 0.800400 +vn 0.259100 0.785600 0.561800 +vn 0.084900 0.693600 0.715400 +vn 0.148900 0.674900 0.722700 +vn 0.236500 0.721900 0.650300 +vn 0.361800 0.803200 0.473200 +vn 0.422300 0.824300 0.376900 +vn 0.468600 0.832900 0.294600 +vn 0.489700 0.562900 -0.665800 +vn 0.622500 0.769000 0.145200 +vn 0.548600 0.790400 0.272500 +vn 0.344300 0.725500 0.595800 +vn 0.696600 0.707900 0.116100 +vn 0.620200 0.729800 0.287500 +vn 0.421400 0.689700 0.588800 +vn 0.448600 0.757900 0.473700 +vn 0.693400 0.684900 0.224100 +vn 0.489800 0.648700 0.582400 +vn 0.555300 0.685800 0.470400 +vn 0.756600 0.622200 0.200900 +vn 0.684200 0.649500 0.331500 +vn 0.640400 0.660300 0.392300 +vn 0.563500 0.602700 0.565000 +vn 0.575100 0.723300 0.382300 +vn 0.505000 0.771700 0.386600 +vn 0.361800 0.624200 0.692400 +vn 0.291800 0.642600 0.708500 +vn 0.307900 0.605800 0.733600 +vn 0.431400 0.601900 0.672000 +vn 0.406000 0.587500 0.700000 +vn 0.375300 0.603700 0.703300 +vn 0.504500 0.575800 0.643300 +vn -0.668900 -0.111300 -0.734900 +vn -0.605700 -0.292300 -0.740000 +vn -0.508600 -0.451200 -0.733300 +vn -0.378200 -0.562900 -0.734900 +vn -0.230100 -0.640600 -0.732500 +vn -0.096900 -0.676100 -0.730300 +vn 0.062700 -0.675200 -0.734900 +vn 0.229800 -0.639600 -0.733500 +vn 0.360000 -0.579600 -0.731100 +vn 0.484000 -0.474800 -0.735000 +vn 0.587700 -0.342900 -0.732800 +vn 0.646600 -0.220300 -0.730300 +vn 0.674900 -0.059900 -0.735500 +vn 0.657900 0.137300 -0.740500 +vn 0.597700 0.320000 -0.735000 +vn 0.521500 0.438900 -0.731600 +vn 0.398700 0.549300 -0.734300 +vn 0.236800 0.633300 -0.736700 +vn 0.054000 0.675200 -0.735600 +vn -0.118400 0.669500 -0.733200 +vn -0.260000 0.629400 -0.732300 +vn -0.413700 0.528800 -0.741100 +vn -0.554400 0.388100 -0.736200 +vn -0.638100 0.232800 -0.733900 +vn -0.671300 0.066000 -0.738200 +vn -0.512300 -0.505000 -0.694600 +vn -0.759500 -0.650100 -0.021300 +vn -0.572600 -0.443600 -0.689400 +vn -0.812300 -0.583200 0.002900 +vn -0.623100 -0.371000 -0.688600 +vn -0.893000 -0.449500 0.021100 +vn -0.665400 -0.293000 -0.686500 +vn -0.939200 -0.341700 0.033400 +vn -0.695400 -0.218000 -0.684700 +vn -0.713600 -0.161200 -0.681700 +vn -0.988000 -0.142000 0.060100 +vn -0.730000 -0.067400 -0.680100 +vn -0.992000 -0.055100 0.113000 +vn -0.987000 -0.075200 0.142100 +vn -0.921800 -0.386500 0.028100 +vn -0.951400 -0.303400 0.053000 +vn -0.822400 -0.567200 -0.043600 +vn -0.872900 -0.487700 -0.006300 +vn -0.690500 -0.723000 -0.020600 +vn -0.705200 -0.705800 -0.067700 +vn -0.614800 -0.784500 -0.081000 +vn -0.605500 -0.794900 -0.037600 +vn -0.457400 -0.542300 -0.704700 +vn -0.400400 -0.586900 -0.703800 +vn -0.981000 -0.161100 0.107500 +vn -0.969200 -0.237100 0.066000 +vn -0.485200 0.680200 0.549400 +vn -0.573300 0.678100 0.459900 +vn -0.700200 -0.070000 0.710400 +vn -0.593300 -0.081900 0.800800 +vn -0.414000 0.679400 0.605700 +vn -0.579100 -0.147300 0.801800 +vn -0.674800 -0.140800 0.724400 +vn -0.585400 -0.224600 0.779000 +vn -0.709900 -0.266600 0.651900 +vn -0.574900 -0.334000 0.746900 +vn -0.699900 -0.394100 0.595700 +vn -0.568800 -0.418400 0.708000 +vn -0.576700 -0.545400 0.608200 +vn -0.552700 -0.507400 0.661100 +vn -0.595000 -0.803600 -0.016400 +vn -0.697500 -0.715700 -0.034800 +vn -0.590600 -0.803400 -0.075000 +vn -0.720600 -0.692900 0.024700 +vn -0.720800 -0.687800 -0.085700 +vn -0.593200 -0.794800 -0.127900 +vn -0.594000 -0.786600 -0.168600 +vn -0.693900 -0.707400 -0.133800 +vn -0.687900 -0.708700 -0.156200 +vn -0.605300 -0.777000 -0.172700 +vn -0.612700 -0.780500 -0.123600 +vn -0.702700 -0.698200 -0.136700 +vn -0.704600 -0.702600 -0.099400 +vn -0.761700 -0.642700 -0.082300 +vn -0.987300 -0.076000 0.139200 +vn -0.984000 -0.073400 0.162100 +vn -0.992700 -0.120500 -0.004600 +vn -0.948900 -0.298200 -0.103300 +vn -0.993000 -0.090500 0.075500 +vn -0.881400 -0.470900 -0.036100 +vn -0.822800 -0.562300 -0.082100 +vn -0.760300 -0.639400 -0.114400 +vn -0.783300 -0.619300 -0.053900 +vn -0.837800 -0.543300 -0.053600 +vn -0.843700 -0.527900 -0.096900 +vn -0.791300 -0.603800 -0.096600 +vn -0.797200 -0.591600 -0.119800 +vn -0.816000 -0.567300 -0.110100 +vn -0.886400 -0.458600 -0.062300 +vn -0.801800 -0.597500 -0.001100 +vn -0.797200 -0.602600 0.035700 +vn -0.806600 -0.585700 0.079500 +vn -0.759800 -0.634500 0.141800 +vn -0.826700 -0.536400 0.169700 +vn -0.876200 -0.335200 0.346200 +vn -0.882800 -0.379600 0.276500 +vn -0.862200 -0.410800 0.296200 +vn -0.837000 -0.488200 0.247100 +vn -0.879000 -0.444100 0.173300 +vn -0.846900 -0.522100 0.101000 +vn -0.848300 -0.069800 0.524900 +vn -0.647500 0.680400 0.343200 +vn -0.906400 -0.071000 0.416400 +vn -0.879900 -0.146700 0.451800 +vn -0.780500 -0.074400 0.620600 +vn -0.822800 -0.142600 0.550200 +vn -0.796100 -0.272700 0.540200 +vn -0.808400 -0.206700 0.551100 +vn -0.867800 -0.260200 0.423400 +vn -0.803200 -0.324500 0.499500 +vn -0.839500 -0.321100 0.438300 +vn -0.826600 -0.380300 0.414700 +vn -0.819500 -0.421300 0.388400 +vn -0.836000 -0.451200 0.312300 +vn -0.790700 -0.508100 0.341400 +vn -0.783800 -0.569400 0.247700 +vn -0.780500 -0.591400 0.202400 +vn -0.750100 -0.144900 0.645200 +vn -0.786300 -0.391900 0.477600 +vn -0.768000 -0.484800 0.418400 +vn -0.765200 -0.559800 0.317900 +vn -0.756800 -0.648500 0.081700 +vn -0.597900 -0.799300 0.059500 +vn -0.598700 -0.793000 0.112400 +vn -0.753000 -0.643600 -0.137300 +vn -0.738000 -0.661000 -0.135500 +vn -0.739200 -0.664000 -0.112300 +vn -0.743000 -0.669000 -0.018300 +vn -0.710800 -0.700000 0.068200 +vn -0.592200 -0.785500 0.179700 +vn -0.578300 -0.776100 0.251400 +vn -0.719600 -0.682600 0.127400 +vn -0.721700 -0.198200 0.663200 +vn -0.739500 -0.357500 0.570300 +vn -0.757000 -0.445100 0.478300 +vn -0.728700 -0.627200 0.274800 +vn -0.725100 -0.659500 0.198100 +vn -0.750300 -0.660400 0.030300 +vn -0.724800 -0.462500 0.510600 +vn -0.723400 -0.531800 0.440300 +vn -0.727500 -0.582800 0.361900 +vn -0.569200 -0.606000 0.555700 +vn -0.559000 -0.666900 0.492700 +vn -0.574100 -0.714400 0.400000 +vn -0.580700 -0.751800 0.312400 +vn -0.971000 -0.222200 -0.087800 +vn -0.944300 -0.323900 -0.058000 +vn -0.949900 -0.312100 -0.019800 +vn -0.920500 -0.390500 0.012800 +vn -0.921900 -0.380500 -0.072800 +vn -0.850400 -0.526000 0.008500 +vn -0.882200 -0.466500 -0.064500 +vn -0.726300 0.680600 0.095900 +vn -0.981800 -0.129900 0.138100 +vn -0.976700 -0.192500 0.094100 +vn -0.964100 -0.262400 0.040300 +vn -0.716800 0.679100 0.158100 +vn -0.978100 -0.080600 0.192000 +vn -0.961400 -0.137300 0.238400 +vn -0.956500 -0.210400 0.202200 +vn -0.945800 -0.290600 0.144500 +vn -0.933900 -0.349200 0.076900 +vn -0.949200 -0.068900 0.306900 +vn -0.687500 0.684600 0.241900 +vn -0.926800 -0.143800 0.346800 +vn -0.885900 -0.411000 0.214900 +vn -0.913300 -0.357800 0.194500 +vn -0.899300 -0.426200 0.097900 +vn -0.881900 -0.469300 0.045000 +vn -0.907000 -0.420700 -0.019900 +vn -0.881300 -0.196800 0.429500 +vn -0.923900 -0.223200 0.310600 +vn -0.920200 -0.295400 0.257000 +vn -0.988100 -0.146000 0.048600 +vn -0.975400 -0.214100 0.052400 +vn -0.969100 -0.245100 -0.025000 +vn -0.956300 -0.284300 -0.067800 +vn -0.931400 -0.351600 -0.094400 +vn -0.960500 -0.271900 0.058400 +vn -0.976700 -0.187900 0.104000 +vn -0.933100 -0.359400 0.007900 +vn -0.939200 -0.342400 -0.022900 +vn -0.934600 -0.351400 -0.054700 +vn -0.896800 -0.432300 -0.093400 +vn 0.709000 0.684300 0.170100 +vn 0.649200 0.678600 0.343500 +vn 0.686300 0.684900 0.244600 +vn -0.052200 0.688300 0.723600 +vn -0.137900 0.686300 0.714100 +vn -0.246400 0.679700 0.690900 +vn 0.431200 0.676000 0.597600 +vn 0.518100 0.682500 0.515500 +vn 0.337700 0.686900 0.643500 +vn 0.585700 0.680800 0.439700 +vn 0.247700 0.686500 0.683600 +vn 0.145300 0.684500 0.714300 +vn -0.338900 0.684700 0.645100 +vn 0.037700 0.686700 0.725900 +vn 0.718400 0.687200 0.107200 +vn 0.952700 -0.284000 -0.107800 +vn 0.979800 -0.191500 -0.057600 +vn 0.984300 -0.081500 0.156400 +vn 0.581100 -0.108700 0.806500 +vn 0.578400 -0.178000 0.796000 +vn 0.678700 -0.141000 0.720700 +vn 0.616100 -0.776900 -0.129700 +vn 0.614700 -0.784100 -0.085400 +vn 0.697600 -0.711400 -0.085600 +vn 0.612100 -0.772000 -0.171100 +vn 0.698600 -0.702100 -0.137900 +vn 0.582800 -0.793100 -0.176800 +vn 0.695400 -0.704400 -0.141800 +vn 0.695600 -0.709400 -0.113100 +vn 0.589200 -0.796400 -0.136200 +vn 0.696600 -0.714300 -0.066900 +vn 0.595700 -0.798100 -0.090500 +vn 0.579000 -0.814100 -0.042900 +vn 0.687200 -0.725800 -0.029900 +vn 0.597300 -0.802000 -0.005600 +vn 0.725300 -0.688300 0.003300 +vn 0.563600 -0.454600 0.689600 +vn 0.695900 -0.390800 0.602400 +vn 0.582800 -0.358400 0.729200 +vn 0.689000 -0.204300 0.695400 +vn 0.577200 -0.262800 0.773200 +vn 0.659600 -0.048100 0.750100 +vn 0.743600 -0.051400 0.666600 +vn 0.818700 -0.049300 0.572100 +vn 0.874200 -0.051800 0.482700 +vn 0.927800 -0.072700 0.365900 +vn 0.964000 -0.078300 0.254100 +vn 0.988700 -0.067600 0.133800 +vn 0.970200 -0.240800 -0.026600 +vn 0.947200 -0.303800 -0.102500 +vn 0.822700 -0.566200 -0.050700 +vn 0.825000 -0.565000 -0.010200 +vn 0.873100 -0.487400 0.007700 +vn 0.883800 -0.467800 -0.007600 +vn 0.715300 -0.697700 -0.040000 +vn 0.765200 -0.643000 -0.032200 +vn 0.824100 -0.560500 -0.081500 +vn 0.755900 -0.642100 -0.127900 +vn 0.759000 -0.644600 -0.091300 +vn 0.817800 -0.565400 -0.107400 +vn 0.880900 -0.469100 -0.062800 +vn 0.790800 -0.602500 -0.108200 +vn 0.861000 -0.499100 -0.098200 +vn 0.845200 -0.526400 -0.092500 +vn 0.781200 -0.621100 -0.062500 +vn 0.733200 -0.677600 -0.057000 +vn 0.745800 -0.660100 -0.089400 +vn 0.740700 -0.658600 -0.132400 +vn 0.753300 -0.643500 -0.135600 +vn 0.720800 -0.631700 0.285300 +vn 0.585600 -0.725900 0.360700 +vn 0.713100 -0.667300 0.215000 +vn 0.732000 -0.656400 0.182500 +vn 0.766100 -0.626700 0.142600 +vn 0.723000 -0.685100 0.088200 +vn 0.770200 -0.636100 0.045500 +vn 0.729800 -0.527900 0.434400 +vn 0.570300 -0.619600 0.539300 +vn 0.726600 -0.584800 0.360500 +vn 0.764100 -0.566800 0.308000 +vn 0.763100 -0.599400 0.241600 +vn 0.805500 -0.565100 0.178200 +vn 0.576000 -0.684800 0.446400 +vn 0.807800 -0.583400 0.084500 +vn 0.796200 -0.604900 -0.010400 +vn 0.579100 -0.755000 0.307600 +vn 0.573700 -0.784200 0.236400 +vn 0.592700 -0.787300 0.169700 +vn 0.591700 -0.800100 0.098800 +vn 0.600700 -0.797800 0.052500 +vn 0.841600 -0.539600 0.022600 +vn 0.842400 -0.526300 0.115400 +vn 0.801900 -0.546400 0.241400 +vn 0.767900 -0.515400 0.380200 +vn 0.725800 -0.466000 0.506000 +vn 0.573000 -0.539200 0.617100 +vn 0.869200 -0.459500 0.182100 +vn 0.832600 -0.523000 0.182300 +vn 0.846700 -0.464600 0.259100 +vn 0.797500 -0.509500 0.323000 +vn 0.789400 -0.445600 0.422200 +vn 0.753900 -0.463900 0.465200 +vn 0.718100 -0.400500 0.569100 +vn 0.894300 -0.439000 0.086200 +vn 0.824100 -0.436100 0.361500 +vn 0.759000 -0.390500 0.521000 +vn 0.924300 -0.369600 -0.094700 +vn 0.913000 -0.405200 -0.047500 +vn 0.882400 -0.463000 -0.083500 +vn 0.867200 -0.496800 -0.035000 +vn 0.838000 -0.542900 -0.054200 +vn 0.884600 -0.466100 -0.010100 +vn 0.904500 -0.406300 0.129200 +vn 0.866100 -0.407700 0.289300 +vn 0.827100 -0.379000 0.415100 +vn 0.783100 -0.392000 0.482800 +vn 0.734300 -0.336200 0.589600 +vn 0.696400 -0.270000 0.664800 +vn 0.888300 -0.399900 0.225700 +vn 0.870000 -0.359900 0.337000 +vn 0.943800 -0.326900 -0.048300 +vn 0.956100 -0.292400 0.017600 +vn 0.925400 -0.378200 0.020700 +vn 0.934400 -0.344100 0.091400 +vn 0.947100 -0.286200 0.145100 +vn 0.917800 -0.355900 0.175800 +vn 0.892500 -0.357400 0.275000 +vn 0.859300 -0.313900 0.403800 +vn 0.799300 -0.328000 0.503600 +vn 0.828800 -0.264200 0.493200 +vn 0.764500 -0.267300 0.586600 +vn 0.897000 -0.305700 0.319300 +vn 0.935400 -0.275600 0.221300 +vn 0.967900 -0.245000 0.055800 +vn 0.882000 -0.257500 0.394600 +vn 0.924700 -0.245700 0.290700 +vn 0.952500 -0.238400 0.189200 +vn 0.973000 -0.215500 0.082700 +vn 0.756600 -0.208500 0.619600 +vn 0.750500 -0.147600 0.644100 +vn 0.824300 -0.208700 0.526300 +vn 0.821000 -0.148800 0.551200 +vn 0.880600 -0.205800 0.426900 +vn 0.880000 -0.147800 0.451400 +vn 0.925100 -0.199400 0.323100 +vn 0.926800 -0.144000 0.346800 +vn 0.957700 -0.189200 0.216600 +vn 0.961400 -0.138000 0.237800 +vn 0.978000 -0.178000 0.108600 +vn 0.983700 -0.125600 0.128500 +vn 0.877600 -0.095000 0.469800 +vn 0.818100 -0.092700 0.567500 +vn 0.745800 -0.091900 0.659800 +vn 0.669200 -0.086600 0.738000 +vn 0.883000 -0.467600 0.039900 +vn 0.991800 -0.083000 0.096800 +vn 0.991800 -0.127400 0.008500 +vn 0.972600 -0.232500 -0.004000 +vn 0.972500 -0.227600 0.049900 +vn 0.974800 -0.197600 0.103200 +vn 0.705500 -0.701400 -0.101100 +vn 0.929200 -0.369500 0.008700 +vn 0.918700 -0.394200 0.024100 +vn 0.947800 -0.315400 0.047500 +vn 0.967300 -0.243500 0.071000 +vn 0.980400 -0.178100 0.083900 +vn 0.983600 -0.127400 0.128000 +vn 0.951100 -0.305800 0.042700 +vn 0.883900 -0.466600 -0.032300 +vn 0.985900 -0.033800 0.163600 +vn 0.938600 -0.344000 -0.026900 +vn 0.953700 -0.293300 -0.066600 +vn 0.914500 -0.397000 -0.078200 +vn 0.939100 -0.341900 0.033300 +vn 0.990100 -0.109400 0.087500 +vn 0.700700 -0.203800 -0.683700 +vn 0.670500 -0.280700 -0.686700 +vn 0.552200 -0.474200 -0.685600 +vn 0.734400 -0.678700 0.005600 +vn 0.485200 -0.530000 -0.695500 +vn 0.685700 -0.727800 -0.002700 +vn 0.600900 -0.798700 -0.031700 +vn 0.406100 -0.583000 -0.703700 +vn 0.589900 -0.420800 -0.689100 +vn 0.635600 -0.352800 -0.686600 +vn 0.723000 -0.137100 -0.677100 +vn 0.738000 -0.060300 -0.672100 +vn 0.000100 0.000100 -1.000000 +vn 0.000000 -0.000000 -1.000000 +vn -0.000100 -0.000000 -1.000000 +vn -0.000200 -0.000100 -1.000000 +vn -0.000100 -0.000100 -1.000000 +vn 0.000300 0.000100 -1.000000 +vn 0.000100 -0.000100 -1.000000 +vn 0.000200 -0.000100 -1.000000 +vn 0.000900 0.000100 -1.000000 +vn 0.000700 0.000100 -1.000000 +vn -0.000200 0.000000 -1.000000 +vn 0.000200 -0.000000 -1.000000 +vn -0.153600 -0.079400 0.984900 +vn -0.277300 -0.960000 -0.037700 +vn -0.237400 -0.970600 -0.040800 +vn -0.261100 -0.962700 -0.070200 +vn -0.193800 -0.980200 -0.039800 +vn -0.138600 -0.989700 -0.036400 +vn -0.181100 -0.980900 -0.070900 +vn -0.081600 -0.995900 -0.038300 +vn -0.014900 -0.998900 -0.044100 +vn -0.042800 -0.996800 -0.066900 +vn 0.027100 -0.998700 -0.042300 +vn 0.085500 -0.995400 -0.043500 +vn 0.038000 -0.997000 -0.067700 +vn 0.380800 -0.923800 -0.039800 +vn 0.444900 -0.895100 -0.030000 +vn 0.396200 -0.916100 -0.061300 +vn 0.494400 -0.868600 -0.031700 +vn 0.304300 -0.951600 -0.042500 +vn 0.335100 -0.940200 -0.060200 +vn 0.159800 -0.986500 -0.035900 +vn 0.109300 -0.991500 -0.070600 +vn -0.365400 -0.930000 -0.038600 +vn -0.307500 -0.950900 -0.035300 +vn -0.334200 -0.940200 -0.065700 +vn -0.492700 -0.869300 -0.040800 +vn -0.507600 -0.856900 -0.089400 +vn -0.513300 -0.846000 -0.143700 +vn -0.499400 -0.846800 -0.182900 +vn -0.494500 -0.846200 -0.198600 +vn -0.479300 -0.860700 -0.171500 +vn -0.484000 -0.867200 -0.117100 +vn -0.446200 -0.893700 -0.047800 +vn -0.457500 -0.888900 0.022600 +vn -0.433200 -0.891100 0.134800 +vn -0.462100 -0.868800 0.177800 +vn -0.443100 -0.858700 0.257500 +vn -0.426100 -0.828900 0.362200 +vn -0.407900 -0.782900 0.469700 +vn -0.401900 -0.666800 0.627600 +vn -0.383400 -0.600800 0.701400 +vn -0.407700 -0.493700 0.768200 +vn -0.427200 -0.414800 0.803400 +vn -0.453100 -0.317900 0.832800 +vn -0.474400 -0.236600 0.847900 +vn -0.492000 -0.173800 0.853000 +vn -0.494200 -0.080400 0.865600 +vn -0.391300 -0.049400 0.918900 +vn 0.158900 -0.048800 0.986100 +vn 0.432600 -0.041800 0.900600 +vn 0.512400 -0.076100 0.855300 +vn 0.477000 -0.237800 0.846100 +vn 0.454500 -0.160900 0.876100 +vn 0.456600 -0.323200 0.828900 +vn 0.430900 -0.420900 0.798200 +vn 0.412000 -0.524900 0.744800 +vn 0.399800 -0.625000 0.670400 +vn 0.401100 -0.708300 0.580800 +vn 0.398700 -0.773000 0.493500 +vn 0.414000 -0.812500 0.410400 +vn 0.427100 -0.851500 0.304100 +vn 0.452200 -0.866800 0.210200 +vn 0.463900 -0.877100 0.124100 +vn 0.470800 -0.882000 0.018700 +vn 0.475200 -0.872400 -0.114100 +vn 0.481000 -0.859500 -0.172800 +vn 0.502300 -0.847900 -0.169200 +vn 0.507200 -0.853300 -0.121000 +vn 0.506500 -0.859500 -0.068700 +vn 0.452200 -0.888300 -0.080500 +vn 0.437700 -0.889500 -0.130700 +vn 0.432000 -0.883400 -0.181300 +vn 0.487100 -0.849800 -0.201300 +vn 0.356200 -0.923900 -0.139600 +vn 0.362400 -0.912500 -0.189500 +vn 0.421600 -0.883100 -0.205600 +vn 0.260400 -0.963500 -0.061600 +vn 0.264000 -0.953300 -0.146600 +vn 0.296800 -0.939200 -0.172300 +vn 0.289500 -0.936200 -0.199100 +vn 0.352600 -0.911200 -0.212900 +vn 0.080600 -0.081900 0.993400 +vn 0.000400 -0.083700 0.996500 +vn 0.072500 -0.195000 0.978100 +vn -0.000100 -0.195900 0.980600 +vn 0.071700 -0.290300 0.954200 +vn -0.003200 -0.293000 0.956100 +vn 0.030900 -0.385900 0.922000 +vn 0.070900 -0.894700 0.440900 +vn 0.030400 -0.853500 0.520200 +vn -0.030600 -0.895800 0.443300 +vn 0.070100 -0.939300 0.335800 +vn 0.004700 -0.940900 0.338500 +vn 0.070900 -0.970500 0.230600 +vn -0.033800 -0.972500 0.230400 +vn 0.066900 -0.989000 0.132000 +vn -0.036300 -0.990800 0.130400 +vn 0.108300 -0.992800 0.050500 +vn -0.035100 -0.998000 0.053100 +vn 0.110100 -0.993800 -0.011700 +vn -0.035500 -0.999300 -0.010300 +vn 0.109000 -0.991100 -0.076000 +vn -0.035500 -0.996500 -0.075400 +vn 0.107600 -0.985800 -0.128400 +vn -0.035300 -0.991000 -0.128700 +vn 0.067900 -0.979500 -0.189700 +vn 0.002100 -0.981800 -0.189900 +vn 0.000000 -0.973700 -0.227700 +vn 0.149400 -0.145200 0.978000 +vn 0.144200 -0.242000 0.959500 +vn 0.134300 -0.335400 0.932500 +vn 0.160600 -0.419100 0.893600 +vn 0.028800 -0.472100 0.881100 +vn 0.154400 -0.511000 0.845600 +vn 0.026700 -0.559900 0.828100 +vn 0.147000 -0.599700 0.786600 +vn 0.027700 -0.643700 0.764700 +vn 0.148200 -0.684300 0.713900 +vn 0.026000 -0.725900 0.687300 +vn 0.121800 -0.765600 0.631600 +vn 0.028400 -0.801700 0.597000 +vn 0.127600 -0.834100 0.536600 +vn 0.133400 -0.890700 0.434500 +vn 0.139400 -0.934500 0.327400 +vn 0.143400 -0.964000 0.223800 +vn 0.150000 -0.980400 0.127600 +vn 0.142300 -0.971800 -0.187900 +vn 0.071000 -0.971300 -0.227200 +vn 0.266100 -0.046800 0.962800 +vn 0.255200 -0.118500 0.959600 +vn 0.214700 -0.235100 0.947900 +vn 0.205400 -0.326200 0.922700 +vn 0.182300 -0.764900 0.617700 +vn 0.186900 -0.833400 0.520000 +vn 0.199300 -0.885600 0.419500 +vn 0.207400 -0.926500 0.313800 +vn 0.213400 -0.953600 0.212300 +vn 0.212000 -0.970200 0.116900 +vn 0.243100 -0.969400 0.032900 +vn 0.253800 -0.967000 -0.020000 +vn 0.252100 -0.964400 -0.079900 +vn 0.249800 -0.959700 -0.128300 +vn 0.207400 -0.960100 -0.187200 +vn 0.141700 -0.963900 -0.225500 +vn -0.000100 -0.977400 -0.211500 +vn 0.326400 -0.174200 0.929000 +vn 0.277700 -0.276600 0.919900 +vn 0.264500 -0.365600 0.892400 +vn 0.251700 -0.454500 0.854400 +vn 0.241000 -0.548400 0.800700 +vn 0.237900 -0.635300 0.734600 +vn 0.242600 -0.718700 0.651500 +vn 0.246500 -0.787500 0.564900 +vn 0.288800 -0.831700 0.474200 +vn 0.257800 -0.881900 0.394700 +vn 0.274000 -0.915300 0.295000 +vn 0.282400 -0.939100 0.195500 +vn 0.292400 -0.948900 0.118100 +vn 0.282400 -0.941700 -0.183000 +vn 0.212300 -0.951500 -0.222700 +vn 0.073200 -0.974800 -0.210900 +vn 0.112200 -0.981700 -0.153600 +vn 0.037100 -0.987200 -0.154600 +vn -0.037800 -0.987200 -0.154900 +vn 0.353700 -0.054100 0.933800 +vn 0.390900 -0.100200 0.914900 +vn 0.380400 -0.258500 0.888000 +vn 0.359100 -0.349900 0.865200 +vn 0.308200 -0.445800 0.840300 +vn 0.327900 -0.537800 0.776700 +vn 0.290800 -0.637500 0.713400 +vn 0.292100 -0.718000 0.631700 +vn 0.331800 -0.770400 0.544400 +vn 0.329900 -0.868600 0.369500 +vn 0.338500 -0.901000 0.271200 +vn 0.348000 -0.921100 0.174300 +vn 0.348700 -0.934900 0.065600 +vn 0.389100 -0.920400 -0.037400 +vn 0.391800 -0.916300 -0.082400 +vn 0.380800 -0.915100 -0.132600 +vn 0.346500 -0.920300 -0.181600 +vn 0.282700 -0.934000 -0.218500 +vn 0.146100 -0.966900 -0.208900 +vn 0.186100 -0.970900 -0.150900 +vn 0.165100 -0.981900 -0.093000 +vn 0.225400 -0.973300 -0.042400 +vn 0.218400 -0.953900 -0.205500 +vn 0.421000 -0.890100 -0.174400 +vn 0.424400 -0.904000 0.050900 +vn 0.411800 -0.898700 0.150700 +vn 0.400300 -0.883500 0.243000 +vn 0.385500 -0.856600 0.342900 +vn 0.378500 -0.809700 0.448400 +vn 0.357800 -0.706700 0.610400 +vn 0.355800 -0.629300 0.690900 +vn 0.379000 -0.433100 0.817700 +vn -0.431000 -0.140800 0.891300 +vn -0.357000 -0.143500 0.923000 +vn -0.270800 -0.044100 0.961600 +vn -0.253400 -0.119600 0.959900 +vn -0.071800 -0.083300 0.993900 +vn -0.347100 -0.260600 0.900900 +vn -0.412000 -0.250000 0.876200 +vn -0.329600 -0.352400 0.875900 +vn -0.394300 -0.337900 0.854600 +vn -0.310300 -0.442400 0.841400 +vn -0.377900 -0.428900 0.820500 +vn -0.329100 -0.536000 0.777400 +vn -0.294300 -0.654100 0.696800 +vn -0.352300 -0.680300 0.642700 +vn -0.301900 -0.754900 0.582200 +vn -0.359800 -0.750700 0.554100 +vn -0.311500 -0.820300 0.479600 +vn -0.371200 -0.814300 0.446200 +vn -0.325100 -0.868500 0.374200 +vn -0.387100 -0.856000 0.342600 +vn -0.368800 -0.893300 0.256700 +vn -0.312400 -0.932300 0.182000 +vn -0.357000 -0.932300 0.058300 +vn -0.421900 -0.903200 0.079200 +vn -0.321600 -0.946400 -0.028100 +vn -0.319000 -0.944200 -0.082000 +vn -0.418000 -0.901900 -0.108100 +vn -0.310700 -0.941400 -0.131100 +vn -0.383800 -0.905900 -0.179100 +vn -0.351800 -0.911200 -0.214200 +vn -0.422000 -0.882800 -0.206300 +vn -0.362400 -0.912500 -0.189600 +vn -0.435100 -0.882200 -0.179800 +vn -0.368300 -0.919500 -0.137300 +vn -0.432800 -0.892300 -0.128400 +vn -0.397800 -0.915600 -0.057600 +vn -0.424300 -0.904500 -0.043700 +vn -0.291900 -0.198400 0.935600 +vn -0.214400 -0.236500 0.947700 +vn -0.281300 -0.273100 0.919900 +vn -0.204100 -0.329500 0.921800 +vn -0.265800 -0.364500 0.892500 +vn -0.193200 -0.419000 0.887200 +vn -0.251400 -0.455200 0.854200 +vn -0.183900 -0.508000 0.841500 +vn -0.241500 -0.546000 0.802200 +vn -0.179100 -0.596100 0.782600 +vn -0.232200 -0.632300 0.739100 +vn -0.178700 -0.682000 0.709200 +vn -0.244100 -0.713000 0.657200 +vn -0.207700 -0.765900 0.608400 +vn -0.186400 -0.832000 0.522500 +vn -0.253400 -0.826700 0.502200 +vn -0.165700 -0.888400 0.428100 +vn -0.262800 -0.876200 0.403900 +vn -0.241500 -0.921400 0.304300 +vn -0.175300 -0.960800 0.214900 +vn -0.174400 -0.976900 0.123100 +vn -0.277400 -0.957800 0.075100 +vn -0.169300 -0.984600 0.042200 +vn -0.180100 -0.983500 -0.016600 +vn -0.179400 -0.980700 -0.078300 +vn -0.177900 -0.975500 -0.129400 +vn -0.211400 -0.959300 -0.187000 +vn -0.278700 -0.942300 -0.185500 +vn -0.212300 -0.951500 -0.222700 +vn -0.282500 -0.934000 -0.218600 +vn -0.218800 -0.953900 -0.205500 +vn -0.289400 -0.936400 -0.198300 +vn -0.191100 -0.969600 -0.153000 +vn -0.284000 -0.948000 -0.143300 +vn -0.172000 -0.979200 -0.107500 +vn -0.073700 -0.195300 0.978000 +vn -0.146400 -0.191700 0.970500 +vn -0.067200 -0.291200 0.954300 +vn -0.141500 -0.285500 0.947900 +vn -0.097000 -0.382200 0.919000 +vn -0.090600 -0.851300 0.516800 +vn -0.103900 -0.938200 0.330100 +vn -0.071900 -0.979200 -0.189700 +vn -0.138000 -0.972200 -0.189200 +vn -0.071000 -0.971300 -0.227200 +vn -0.141700 -0.963900 -0.225500 +vn -0.073400 -0.974700 -0.210800 +vn -0.146300 -0.966900 -0.208800 +vn -0.112600 -0.981700 -0.153700 +vn -0.109500 -0.993300 -0.038100 +vn -0.089100 -0.800900 0.592100 +vn -0.088000 -0.726200 0.681800 +vn -0.085900 -0.643400 0.760600 +vn -0.087600 -0.557800 0.825300 +vn -0.091100 -0.471300 0.877300 +usemtl None +s 1 +f 1//1 2//2 3//3 +f 4//4 5//5 6//6 +f 3//3 2//2 7//7 +f 3//3 8//8 9//9 +f 10//10 3//3 6//6 +f 3//3 7//7 8//8 +f 11//11 12//12 13//13 +f 11//11 14//14 12//12 +f 15//15 6//6 5//5 +f 16//16 17//17 15//15 +f 3//3 10//10 18//18 +f 3//3 18//18 1//1 +f 12//12 14//14 19//19 +f 19//19 20//20 12//12 +f 9//9 12//12 3//3 +f 3//3 12//12 20//20 +f 15//15 21//21 6//6 +f 22//22 13//13 23//23 +f 3//3 4//4 6//6 +f 15//15 17//17 21//21 +f 13//13 24//24 23//23 +f 13//13 22//22 11//11 +f 25//25 26//26 27//27 +f 27//27 26//26 28//28 +f 29//29 27//27 30//30 +f 29//29 30//30 31//31 +f 27//27 29//29 32//32 +f 31//31 33//33 29//29 +f 29//29 33//33 34//34 +f 28//28 35//35 27//27 +f 27//27 35//35 36//36 +f 27//27 36//36 37//37 +f 29//29 34//34 38//38 +f 39//39 40//40 29//29 +f 32//32 41//41 27//27 +f 27//27 41//41 42//42 +f 38//38 43//43 29//29 +f 29//29 43//43 39//39 +f 27//27 42//42 25//25 +f 1//1 44//44 2//2 +f 2//2 44//44 45//45 +f 2//2 45//45 7//7 +f 7//7 45//45 46//46 +f 7//7 46//46 8//8 +f 8//8 46//46 47//47 +f 8//8 47//47 9//9 +f 9//9 47//47 48//48 +f 9//9 48//48 49//49 +f 9//9 49//49 12//12 +f 12//12 49//49 50//50 +f 12//12 50//50 13//13 +f 13//13 50//50 51//51 +f 13//13 51//51 24//24 +f 24//24 51//51 52//52 +f 24//24 52//52 23//23 +f 23//23 52//52 22//22 +f 22//22 52//52 53//53 +f 22//22 53//53 11//11 +f 11//11 53//53 54//54 +f 11//11 54//54 14//14 +f 14//14 54//54 55//55 +f 14//14 55//55 19//19 +f 19//19 55//55 56//56 +f 19//19 56//56 20//20 +f 20//20 56//56 57//57 +f 20//20 57//57 3//3 +f 3//3 57//57 58//58 +f 3//3 58//58 4//4 +f 58//58 59//59 4//4 +f 4//4 59//59 5//5 +f 5//5 59//59 60//60 +f 5//5 60//60 15//15 +f 15//15 60//60 61//61 +f 15//15 61//61 16//16 +f 16//16 61//61 62//62 +f 16//16 62//62 17//17 +f 17//17 62//62 63//63 +f 17//17 63//63 21//21 +f 21//21 63//63 64//64 +f 21//21 64//64 6//6 +f 6//6 64//64 65//65 +f 6//6 65//65 10//10 +f 44//44 1//1 66//66 +f 66//66 1//1 18//18 +f 66//66 18//18 67//67 +f 67//67 18//18 10//10 +f 67//67 10//10 65//65 +f 68//68 69//69 70//70 +f 71//71 72//72 73//73 +f 74//74 75//75 76//76 +f 76//76 77//77 78//78 +f 79//79 80//80 81//81 +f 82//82 83//83 84//84 +f 85//85 86//86 87//87 +f 88//88 89//89 86//86 +f 90//90 91//91 92//92 +f 93//93 84//84 94//94 +f 95//95 96//96 97//97 +f 98//98 99//99 96//96 +f 100//100 101//101 102//102 +f 103//103 104//104 105//105 +f 105//105 106//106 107//107 +f 108//108 109//109 110//110 +f 109//109 111//111 110//110 +f 112//112 113//113 114//114 +f 115//115 116//116 117//117 +f 118//118 119//119 116//116 +f 118//118 116//116 115//115 +f 119//119 118//118 120//120 +f 121//121 122//122 123//123 +f 121//121 123//123 124//124 +f 121//121 124//124 125//125 +f 125//125 124//124 126//126 +f 125//125 126//126 127//127 +f 128//128 129//129 130//130 +f 131//131 132//132 133//133 +f 131//131 134//134 135//135 +f 136//136 137//137 138//138 +f 139//139 140//140 138//138 +f 112//112 141//141 142//142 +f 143//143 144//144 141//141 +f 143//143 141//141 112//112 +f 144//144 143//143 145//145 +f 146//146 145//145 143//143 +f 147//147 146//146 143//143 +f 147//147 148//148 146//146 +f 149//149 148//148 150//150 +f 151//151 152//152 149//149 +f 153//153 154//154 152//152 +f 155//155 156//156 153//153 +f 153//153 156//156 154//154 +f 157//157 155//155 158//158 +f 155//155 157//157 156//156 +f 110//110 111//111 158//158 +f 158//158 111//111 157//157 +f 159//159 108//108 160//160 +f 160//160 108//108 110//110 +f 161//161 162//162 159//159 +f 163//163 164//164 165//165 +f 166//166 167//167 168//168 +f 168//168 167//167 122//122 +f 168//168 122//122 169//169 +f 169//169 122//122 170//170 +f 171//171 172//172 168//168 +f 171//171 168//168 169//169 +f 173//173 166//166 172//172 +f 172//172 166//166 168//168 +f 174//174 175//175 176//176 +f 176//176 175//175 177//177 +f 176//176 177//177 166//166 +f 178//178 104//104 179//179 +f 179//179 104//104 103//103 +f 171//171 120//120 118//118 +f 163//163 115//115 117//117 +f 163//163 117//117 164//164 +f 170//170 119//119 169//169 +f 169//169 119//119 120//120 +f 169//169 120//120 171//171 +f 171//171 118//118 180//180 +f 180//180 118//118 115//115 +f 180//180 115//115 181//181 +f 181//181 115//115 163//163 +f 181//181 163//163 182//182 +f 182//182 163//163 165//165 +f 182//182 165//165 183//183 +f 172//172 171//171 184//184 +f 184//184 171//171 180//180 +f 181//181 182//182 161//161 +f 161//161 182//182 183//183 +f 173//173 172//172 185//185 +f 185//185 172//172 184//184 +f 161//161 183//183 162//162 +f 104//104 178//178 186//186 +f 104//104 186//186 105//105 +f 187//187 103//103 107//107 +f 107//107 103//103 105//105 +f 188//188 106//106 189//189 +f 189//189 106//106 105//105 +f 189//189 105//105 190//190 +f 190//190 105//105 191//191 +f 191//191 105//105 186//186 +f 191//191 186//186 192//192 +f 192//192 186//186 193//193 +f 193//193 186//186 178//178 +f 193//193 178//178 194//194 +f 193//193 194//194 195//195 +f 159//159 160//160 196//196 +f 196//196 160//160 197//197 +f 196//196 197//197 198//198 +f 102//102 101//101 160//160 +f 160//160 101//101 197//197 +f 90//90 92//92 199//199 +f 199//199 92//92 200//200 +f 201//201 202//202 203//203 +f 204//204 205//205 201//201 +f 204//204 201//201 203//203 +f 206//206 205//205 204//204 +f 207//207 204//204 203//203 +f 207//207 203//203 208//208 +f 208//208 203//203 209//209 +f 210//210 205//205 206//206 +f 211//211 212//212 208//208 +f 211//211 208//208 199//199 +f 213//213 204//204 207//207 +f 213//213 214//214 206//206 +f 213//213 206//206 204//204 +f 91//91 188//188 92//92 +f 92//92 188//188 189//189 +f 92//92 189//189 200//200 +f 200//200 189//189 215//215 +f 200//200 215//215 216//216 +f 199//199 216//216 217//217 +f 199//199 217//217 211//211 +f 213//213 212//212 218//218 +f 213//213 218//218 219//219 +f 220//220 218//218 211//211 +f 220//220 211//211 217//217 +f 99//99 98//98 221//221 +f 222//222 221//221 223//223 +f 96//96 95//95 98//98 +f 224//224 98//98 95//95 +f 95//95 97//97 225//225 +f 226//226 227//227 228//228 +f 229//229 226//226 230//230 +f 230//230 226//226 228//228 +f 231//231 232//232 97//97 +f 97//97 232//232 225//225 +f 216//216 233//233 234//234 +f 216//216 234//234 235//235 +f 100//100 102//102 236//236 +f 192//192 101//101 237//237 +f 237//237 101//101 100//100 +f 234//234 100//100 236//236 +f 234//234 236//236 238//238 +f 233//233 215//215 191//191 +f 215//215 233//233 216//216 +f 217//217 216//216 235//235 +f 217//217 235//235 220//220 +f 218//218 220//220 239//239 +f 218//218 239//239 219//219 +f 212//212 211//211 218//218 +f 240//240 152//152 151//151 +f 240//240 151//151 241//241 +f 153//153 242//242 155//155 +f 155//155 242//242 238//238 +f 155//155 238//238 236//236 +f 155//155 236//236 158//158 +f 158//158 236//236 102//102 +f 158//158 102//102 110//110 +f 110//110 102//102 160//160 +f 153//153 240//240 242//242 +f 238//238 242//242 235//235 +f 238//238 235//235 234//234 +f 100//100 234//234 233//233 +f 100//100 233//233 237//237 +f 237//237 191//191 192//192 +f 101//101 192//192 193//193 +f 101//101 193//193 197//197 +f 197//197 193//193 195//195 +f 197//197 195//195 198//198 +f 153//153 152//152 240//240 +f 240//240 241//241 243//243 +f 244//244 243//243 245//245 +f 244//244 245//245 225//225 +f 244//244 225//225 232//232 +f 243//243 241//241 246//246 +f 243//243 246//246 245//245 +f 151//151 149//149 150//150 +f 151//151 150//150 247//247 +f 95//95 248//248 249//249 +f 246//246 247//247 250//250 +f 246//246 250//250 251//251 +f 252//252 227//227 253//253 +f 252//252 253//253 254//254 +f 113//113 229//229 255//255 +f 255//255 229//229 230//230 +f 255//255 230//230 250//250 +f 114//114 113//113 255//255 +f 114//114 255//255 256//256 +f 256//256 255//255 250//250 +f 247//247 150//150 256//256 +f 247//247 256//256 250//250 +f 251//251 250//250 230//230 +f 251//251 230//230 248//248 +f 112//112 114//114 143//143 +f 143//143 114//114 256//256 +f 143//143 256//256 147//147 +f 257//257 258//258 259//259 +f 260//260 261//261 262//262 +f 262//262 261//261 263//263 +f 93//93 94//94 264//264 +f 93//93 264//264 265//265 +f 265//265 264//264 257//257 +f 265//265 257//257 263//263 +f 263//263 257//257 259//259 +f 266//266 267//267 261//261 +f 260//260 266//266 261//261 +f 267//267 91//91 90//90 +f 267//267 90//90 268//268 +f 209//209 268//268 90//90 +f 268//268 269//269 270//270 +f 268//268 270//270 267//267 +f 267//267 270//270 271//271 +f 267//267 271//271 261//261 +f 261//261 271//271 272//272 +f 261//261 272//272 265//265 +f 261//261 265//265 263//263 +f 199//199 208//208 209//209 +f 199//199 209//209 90//90 +f 273//273 265//265 272//272 +f 86//86 274//274 88//88 +f 88//88 275//275 89//89 +f 276//276 269//269 202//202 +f 276//276 277//277 87//87 +f 276//276 87//87 89//89 +f 86//86 89//89 87//87 +f 89//89 275//275 276//276 +f 277//277 276//276 202//202 +f 277//277 202//202 278//278 +f 278//278 202//202 279//279 +f 280//280 87//87 277//277 +f 280//280 277//277 281//281 +f 281//281 277//277 278//278 +f 281//281 278//278 282//282 +f 282//282 278//278 210//210 +f 210//210 278//278 279//279 +f 87//87 280//280 283//283 +f 205//205 210//210 279//279 +f 205//205 279//279 201//201 +f 201//201 279//279 202//202 +f 203//203 202//202 269//269 +f 209//209 203//203 268//268 +f 268//268 203//203 269//269 +f 284//284 83//83 285//285 +f 284//284 94//94 83//83 +f 83//83 94//94 84//84 +f 285//285 286//286 284//284 +f 284//284 286//286 287//287 +f 272//272 274//274 273//273 +f 273//273 274//274 84//84 +f 84//84 274//274 86//86 +f 84//84 86//86 82//82 +f 82//82 86//86 288//288 +f 82//82 288//288 285//285 +f 82//82 285//285 83//83 +f 289//289 287//287 286//286 +f 289//289 290//290 291//291 +f 291//291 290//290 292//292 +f 287//287 289//289 291//291 +f 293//293 294//294 290//290 +f 295//295 296//296 133//133 +f 297//297 296//296 298//298 +f 285//285 299//299 286//286 +f 286//286 299//299 289//289 +f 300//300 293//293 301//301 +f 301//301 293//293 290//290 +f 301//301 290//290 302//302 +f 302//302 303//303 304//304 +f 301//301 302//302 304//304 +f 300//300 301//301 304//304 +f 293//293 305//305 306//306 +f 293//293 306//306 294//294 +f 298//298 306//306 305//305 +f 295//295 307//307 306//306 +f 308//308 309//309 310//310 +f 297//297 134//134 296//296 +f 296//296 134//134 133//133 +f 311//311 312//312 308//308 +f 81//81 313//313 312//312 +f 311//311 305//305 312//312 +f 308//308 312//312 313//313 +f 308//308 310//310 311//311 +f 311//311 310//310 297//297 +f 311//311 297//297 298//298 +f 298//298 296//296 306//306 +f 306//306 296//296 295//295 +f 308//308 313//313 80//80 +f 308//308 80//80 309//309 +f 86//86 85//85 288//288 +f 85//85 314//314 288//288 +f 288//288 314//314 315//315 +f 315//315 314//314 303//303 +f 85//85 316//316 314//314 +f 314//314 317//317 303//303 +f 303//303 317//317 318//318 +f 319//319 223//223 221//221 +f 97//97 96//96 231//231 +f 222//222 99//99 221//221 +f 320//320 321//321 322//322 +f 322//322 323//323 324//324 +f 321//321 325//325 322//322 +f 322//322 325//325 323//323 +f 326//326 280//280 327//327 +f 325//325 319//319 328//328 +f 325//325 328//328 329//329 +f 320//320 326//326 327//327 +f 320//320 327//327 321//321 +f 321//321 319//319 325//325 +f 327//327 282//282 223//223 +f 319//319 221//221 328//328 +f 328//328 221//221 98//98 +f 328//328 98//98 330//330 +f 330//330 98//98 224//224 +f 330//330 224//224 331//331 +f 326//326 320//320 332//332 +f 332//332 320//320 322//322 +f 332//332 322//322 333//333 +f 333//333 322//322 324//324 +f 334//334 304//304 303//303 +f 288//288 315//315 299//299 +f 288//288 299//299 285//285 +f 81//81 300//300 304//304 +f 81//81 304//304 334//334 +f 312//312 305//305 300//300 +f 300//300 305//305 293//293 +f 290//290 289//289 302//302 +f 302//302 289//289 299//299 +f 302//302 299//299 315//315 +f 302//302 315//315 303//303 +f 219//219 239//239 335//335 +f 213//213 219//219 214//214 +f 212//212 213//213 207//207 +f 212//212 207//207 208//208 +f 216//216 199//199 200//200 +f 269//269 276//276 275//275 +f 269//269 275//275 270//270 +f 270//270 275//275 271//271 +f 271//271 275//275 88//88 +f 271//271 88//88 272//272 +f 272//272 88//88 274//274 +f 334//334 303//303 318//318 +f 336//336 81//81 318//318 +f 79//79 81//81 336//336 +f 336//336 337//337 79//79 +f 137//137 338//338 139//139 +f 339//339 338//338 80//80 +f 337//337 340//340 341//341 +f 337//337 341//341 339//339 +f 337//337 339//339 79//79 +f 339//339 341//341 139//139 +f 338//338 339//339 139//139 +f 79//79 339//339 80//80 +f 318//318 324//324 336//336 +f 81//81 80//80 313//313 +f 323//323 340//340 324//324 +f 324//324 340//340 337//337 +f 324//324 337//337 336//336 +f 342//342 340//340 323//323 +f 342//342 323//323 329//329 +f 329//329 323//323 325//325 +f 241//241 151//151 247//247 +f 241//241 247//247 246//246 +f 245//245 246//246 251//251 +f 245//245 251//251 225//225 +f 225//225 251//251 248//248 +f 225//225 248//248 95//95 +f 95//95 249//249 224//224 +f 224//224 249//249 252//252 +f 224//224 252//252 331//331 +f 330//330 331//331 343//343 +f 330//330 343//343 342//342 +f 341//341 344//344 345//345 +f 345//345 139//139 341//341 +f 137//137 139//139 138//138 +f 139//139 345//345 140//140 +f 140//140 345//345 346//346 +f 140//140 346//346 347//347 +f 347//347 346//346 348//348 +f 345//345 344//344 343//343 +f 345//345 343//343 346//346 +f 346//346 343//343 254//254 +f 346//346 254//254 348//348 +f 348//348 254//254 253//253 +f 253//253 227//227 349//349 +f 349//349 227//227 226//226 +f 344//344 342//342 343//343 +f 254//254 343//343 331//331 +f 254//254 331//331 252//252 +f 227//227 252//252 249//249 +f 227//227 249//249 228//228 +f 228//228 249//249 248//248 +f 228//228 248//248 230//230 +f 147//147 256//256 150//150 +f 147//147 150//150 148//148 +f 344//344 341//341 340//340 +f 344//344 340//340 342//342 +f 330//330 342//342 329//329 +f 330//330 329//329 328//328 +f 223//223 319//319 321//321 +f 223//223 321//321 327//327 +f 281//281 327//327 280//280 +f 219//219 335//335 244//244 +f 219//219 244//244 214//214 +f 206//206 214//214 231//231 +f 206//206 231//231 210//210 +f 210//210 231//231 99//99 +f 87//87 283//283 85//85 +f 85//85 283//283 316//316 +f 316//316 332//332 314//314 +f 314//314 332//332 333//333 +f 314//314 333//333 317//317 +f 317//317 333//333 318//318 +f 300//300 81//81 312//312 +f 305//305 311//311 298//298 +f 306//306 307//307 294//294 +f 294//294 307//307 292//292 +f 294//294 292//292 290//290 +f 273//273 84//84 93//93 +f 273//273 93//93 265//265 +f 263//263 259//259 262//262 +f 77//77 130//130 129//129 +f 350//350 351//351 75//75 +f 76//76 352//352 353//353 +f 74//74 353//353 354//354 +f 74//74 354//354 355//355 +f 353//353 352//352 356//356 +f 353//353 356//356 354//354 +f 355//355 354//354 357//357 +f 358//358 359//359 360//360 +f 360//360 359//359 361//361 +f 360//360 361//361 362//362 +f 362//362 361//361 363//363 +f 128//128 358//358 360//360 +f 129//129 128//128 360//360 +f 129//129 360//360 78//78 +f 78//78 360//360 362//362 +f 78//78 362//362 364//364 +f 364//364 362//362 363//363 +f 364//364 363//363 365//365 +f 352//352 76//76 78//78 +f 352//352 78//78 364//364 +f 352//352 364//364 356//356 +f 354//354 356//356 366//366 +f 354//354 366//366 357//357 +f 77//77 129//129 78//78 +f 356//356 364//364 365//365 +f 356//356 365//365 366//366 +f 367//367 368//368 369//369 +f 369//369 368//368 351//351 +f 369//369 351//351 350//350 +f 370//370 367//367 371//371 +f 371//371 367//367 369//369 +f 371//371 369//369 350//350 +f 74//74 350//350 75//75 +f 372//372 373//373 374//374 +f 375//375 258//258 368//368 +f 258//258 375//375 259//259 +f 259//259 375//375 376//376 +f 376//376 375//375 377//377 +f 376//376 377//377 262//262 +f 262//262 377//377 260//260 +f 368//368 367//367 375//375 +f 375//375 367//367 370//370 +f 375//375 370//370 374//374 +f 375//375 374//374 377//377 +f 377//377 374//374 373//373 +f 359//359 378//378 361//361 +f 361//361 72//72 363//363 +f 363//363 72//72 70//70 +f 363//363 70//70 365//365 +f 365//365 70//70 69//69 +f 365//365 69//69 366//366 +f 366//366 69//69 372//372 +f 366//366 372//372 357//357 +f 357//357 372//372 379//379 +f 357//357 379//379 355//355 +f 355//355 379//379 371//371 +f 69//69 68//68 380//380 +f 72//72 71//71 381//381 +f 68//68 381//381 382//382 +f 68//68 382//382 383//383 +f 381//381 71//71 384//384 +f 381//381 384//384 382//382 +f 167//167 166//166 177//177 +f 385//385 177//177 175//175 +f 122//122 167//167 123//123 +f 123//123 167//167 177//177 +f 123//123 177//177 124//124 +f 124//124 177//177 385//385 +f 124//124 385//385 126//126 +f 384//384 386//386 387//387 +f 384//384 387//387 388//388 +f 389//389 126//126 175//175 +f 389//389 175//175 390//390 +f 390//390 175//175 174//174 +f 390//390 174//174 391//391 +f 392//392 391//391 393//393 +f 393//393 173//173 179//179 +f 179//179 173//173 185//185 +f 185//185 184//184 194//194 +f 194//194 184//184 180//180 +f 194//194 180//180 195//195 +f 195//195 180//180 181//181 +f 195//195 181//181 198//198 +f 198//198 181//181 161//161 +f 394//394 127//127 395//395 +f 395//395 127//127 126//126 +f 395//395 126//126 389//389 +f 387//387 390//390 391//391 +f 387//387 391//391 392//392 +f 187//187 392//392 393//393 +f 187//187 393//393 103//103 +f 103//103 393//393 179//179 +f 179//179 185//185 178//178 +f 178//178 185//185 194//194 +f 198//198 161//161 196//196 +f 196//196 161//161 159//159 +f 126//126 385//385 175//175 +f 391//391 174//174 176//176 +f 391//391 176//176 393//393 +f 393//393 176//176 173//173 +f 173//173 176//176 166//166 +f 122//122 121//121 170//170 +f 396//396 260//260 377//377 +f 396//396 377//377 397//397 +f 397//397 377//377 373//373 +f 397//397 373//373 380//380 +f 380//380 373//373 372//372 +f 380//380 372//372 69//69 +f 398//398 396//396 399//399 +f 399//399 396//396 397//397 +f 399//399 397//397 383//383 +f 383//383 397//397 380//380 +f 383//383 380//380 68//68 +f 381//381 68//68 70//70 +f 381//381 70//70 72//72 +f 73//73 395//395 71//71 +f 71//71 395//395 386//386 +f 71//71 386//386 384//384 +f 382//382 384//384 388//388 +f 382//382 388//388 383//383 +f 383//383 388//388 400//400 +f 383//383 400//400 399//399 +f 399//399 400//400 401//401 +f 399//399 401//401 398//398 +f 398//398 401//401 402//402 +f 188//188 402//402 106//106 +f 106//106 402//402 107//107 +f 107//107 402//402 401//401 +f 107//107 401//401 187//187 +f 187//187 401//401 400//400 +f 187//187 400//400 392//392 +f 392//392 400//400 388//388 +f 392//392 388//388 387//387 +f 390//390 387//387 386//386 +f 390//390 386//386 389//389 +f 389//389 386//386 395//395 +f 394//394 395//395 73//73 +f 394//394 73//73 378//378 +f 378//378 73//73 361//361 +f 361//361 73//73 72//72 +f 379//379 372//372 374//374 +f 379//379 374//374 370//370 +f 379//379 370//370 371//371 +f 355//355 371//371 350//350 +f 355//355 350//350 74//74 +f 353//353 74//74 76//76 +f 131//131 133//133 134//134 +f 135//135 134//134 297//297 +f 135//135 297//297 310//310 +f 135//135 310//310 136//136 +f 136//136 310//310 309//309 +f 136//136 309//309 137//137 +f 137//137 309//309 338//338 +f 338//338 309//309 80//80 +f 81//81 334//334 318//318 +f 324//324 318//318 333//333 +f 332//332 316//316 326//326 +f 326//326 316//316 283//283 +f 326//326 283//283 280//280 +f 327//327 281//281 282//282 +f 223//223 282//282 222//222 +f 222//222 282//282 210//210 +f 99//99 222//222 210//210 +f 96//96 99//99 231//231 +f 232//232 231//231 214//214 +f 232//232 214//214 244//244 +f 243//243 244//244 335//335 +f 243//243 335//335 240//240 +f 240//240 335//335 239//239 +f 240//240 239//239 242//242 +f 242//242 239//239 220//220 +f 242//242 220//220 235//235 +f 237//237 233//233 191//191 +f 191//191 215//215 190//190 +f 190//190 215//215 189//189 +f 188//188 91//91 402//402 +f 402//402 91//91 267//267 +f 402//402 267//267 398//398 +f 398//398 267//267 266//266 +f 398//398 266//266 396//396 +f 396//396 266//266 260//260 +f 262//262 259//259 376//376 +f 403//403 404//404 405//405 +f 406//406 407//407 408//408 +f 409//409 410//410 411//411 +f 412//412 413//413 414//414 +f 415//415 416//416 417//417 +f 418//418 419//419 420//420 +f 421//421 422//422 423//423 +f 424//424 413//413 422//422 +f 425//425 426//426 427//427 +f 428//428 429//429 430//430 +f 431//431 432//432 433//433 +f 434//434 435//435 436//436 +f 435//435 437//437 438//438 +f 439//439 440//440 441//441 +f 442//442 443//443 444//444 +f 445//445 446//446 447//447 +f 448//448 449//449 450//450 +f 451//451 452//452 453//453 +f 454//454 455//455 456//456 +f 456//456 455//455 457//457 +f 456//456 457//457 458//458 +f 456//456 458//458 459//459 +f 460//460 461//461 462//462 +f 462//462 461//461 459//459 +f 463//463 464//464 465//465 +f 466//466 467//467 464//464 +f 468//468 469//469 132//132 +f 470//470 471//471 130//130 +f 407//407 471//471 470//470 +f 403//403 472//472 404//404 +f 451//451 473//473 474//474 +f 474//474 473//473 475//475 +f 474//474 475//475 476//476 +f 476//476 477//477 474//474 +f 477//477 476//476 478//478 +f 478//478 479//479 480//480 +f 478//478 480//480 477//477 +f 449//449 481//481 479//479 +f 479//479 481//481 480//480 +f 482//482 483//483 448//448 +f 484//484 485//485 486//486 +f 487//487 488//488 484//484 +f 484//484 488//488 485//485 +f 488//488 487//487 489//489 +f 490//490 491//491 489//489 +f 490//490 489//489 487//487 +f 492//492 491//491 490//490 +f 493//493 494//494 495//495 +f 495//495 494//494 492//492 +f 493//493 496//496 494//494 +f 496//496 493//493 497//497 +f 497//497 498//498 496//496 +f 499//499 498//498 500//500 +f 457//457 455//455 501//501 +f 451//451 502//502 473//473 +f 473//473 502//502 503//503 +f 473//473 503//503 504//504 +f 505//505 506//506 447//447 +f 507//507 446//446 445//445 +f 507//507 445//445 508//508 +f 509//509 508//508 445//445 +f 510//510 445//445 447//447 +f 510//510 447//447 506//506 +f 473//473 504//504 475//475 +f 475//475 504//504 511//511 +f 475//475 511//511 476//476 +f 476//476 511//511 512//512 +f 479//479 478//478 513//513 +f 513//513 478//478 512//512 +f 512//512 478//478 476//476 +f 511//511 504//504 514//514 +f 511//511 514//514 512//512 +f 513//513 450//450 479//479 +f 479//479 450//450 449//449 +f 450//450 513//513 515//515 +f 515//515 513//513 512//512 +f 515//515 512//512 516//516 +f 516//516 512//512 514//514 +f 514//514 504//504 517//517 +f 517//517 504//504 503//503 +f 517//517 503//503 518//518 +f 518//518 503//503 505//505 +f 505//505 447//447 518//518 +f 517//517 519//519 514//514 +f 514//514 519//519 516//516 +f 443//443 442//442 520//520 +f 520//520 442//442 510//510 +f 506//506 520//520 510//510 +f 445//445 510//510 442//442 +f 445//445 442//442 509//509 +f 509//509 442//442 521//521 +f 521//521 442//442 444//444 +f 521//521 444//444 522//522 +f 519//519 507//507 523//523 +f 523//523 507//507 508//508 +f 509//509 521//521 524//524 +f 524//524 521//521 522//522 +f 525//525 526//526 527//527 +f 528//528 529//529 439//439 +f 439//439 529//529 526//526 +f 439//439 526//526 525//525 +f 524//524 439//439 525//525 +f 524//524 525//525 509//509 +f 509//509 525//525 527//527 +f 509//509 527//527 508//508 +f 508//508 527//527 530//530 +f 508//508 530//530 523//523 +f 523//523 530//530 531//531 +f 523//523 531//531 532//532 +f 523//523 532//532 519//519 +f 526//526 533//533 530//530 +f 526//526 530//530 527//527 +f 531//531 534//534 532//532 +f 532//532 534//534 515//515 +f 535//535 536//536 537//537 +f 538//538 537//537 539//539 +f 538//538 539//539 534//534 +f 534//534 539//539 540//540 +f 534//534 540//540 482//482 +f 482//482 540//540 486//486 +f 482//482 486//486 483//483 +f 439//439 441//441 528//528 +f 541//541 542//542 543//543 +f 541//541 544//544 545//545 +f 546//546 541//541 547//547 +f 547//547 541//541 545//545 +f 545//545 548//548 549//549 +f 549//549 548//548 550//550 +f 541//541 546//546 542//542 +f 542//542 546//546 441//441 +f 542//542 441//441 551//551 +f 526//526 529//529 533//533 +f 546//546 547//547 552//552 +f 552//552 547//547 553//553 +f 552//552 554//554 555//555 +f 529//529 555//555 556//556 +f 529//529 556//556 533//533 +f 555//555 554//554 556//556 +f 533//533 556//556 535//535 +f 533//533 535//535 537//537 +f 533//533 537//537 530//530 +f 530//530 537//537 538//538 +f 530//530 538//538 531//531 +f 531//531 538//538 534//534 +f 534//534 482//482 515//515 +f 547//547 545//545 557//557 +f 547//547 557//557 553//553 +f 552//552 555//555 546//546 +f 546//546 555//555 529//529 +f 549//549 558//558 437//437 +f 554//554 552//552 559//559 +f 559//559 552//552 553//553 +f 559//559 553//553 560//560 +f 560//560 557//557 437//437 +f 434//434 437//437 435//435 +f 435//435 438//438 561//561 +f 437//437 558//558 438//438 +f 562//562 559//559 560//560 +f 562//562 560//560 563//563 +f 558//558 549//549 550//550 +f 564//564 565//565 548//548 +f 550//550 566//566 567//567 +f 550//550 567//567 568//568 +f 550//550 568//568 569//569 +f 570//570 571//571 568//568 +f 568//568 567//567 572//572 +f 568//568 572//572 570//570 +f 570//570 572//572 573//573 +f 574//574 575//575 576//576 +f 574//574 576//576 577//577 +f 577//577 576//576 578//578 +f 571//571 570//570 573//573 +f 571//571 573//573 579//579 +f 571//571 579//579 580//580 +f 535//535 581//581 536//536 +f 536//536 581//581 582//582 +f 562//562 583//583 582//582 +f 582//582 581//581 562//562 +f 553//553 557//557 560//560 +f 560//560 437//437 563//563 +f 563//563 437//437 434//434 +f 584//584 434//434 436//436 +f 585//585 583//583 586//586 +f 586//586 583//583 584//584 +f 436//436 587//587 584//584 +f 584//584 587//587 586//586 +f 434//434 584//584 583//583 +f 434//434 583//583 563//563 +f 563//563 583//583 562//562 +f 562//562 581//581 559//559 +f 559//559 581//581 554//554 +f 554//554 581//581 535//535 +f 585//585 490//490 582//582 +f 582//582 490//490 487//487 +f 582//582 487//487 536//536 +f 536//536 487//487 537//537 +f 537//537 487//487 484//484 +f 537//537 484//484 539//539 +f 539//539 484//484 540//540 +f 540//540 484//484 486//486 +f 490//490 585//585 495//495 +f 490//490 495//495 492//492 +f 588//588 589//589 436//436 +f 436//436 589//589 587//587 +f 590//590 591//591 438//438 +f 590//590 438//438 569//569 +f 561//561 591//591 588//588 +f 589//589 588//588 592//592 +f 589//589 592//592 500//500 +f 593//593 591//591 462//462 +f 462//462 591//591 580//580 +f 457//457 592//592 458//458 +f 458//458 592//592 593//593 +f 458//458 593//593 459//459 +f 459//459 593//593 462//462 +f 579//579 573//573 577//577 +f 499//499 594//594 501//501 +f 522//522 595//595 524//524 +f 524//524 595//595 440//440 +f 524//524 440//440 439//439 +f 529//529 528//528 546//546 +f 556//556 554//554 535//535 +f 582//582 583//583 585//585 +f 495//495 585//585 586//586 +f 495//495 586//586 493//493 +f 493//493 586//586 587//587 +f 493//493 587//587 497//497 +f 497//497 587//587 589//589 +f 593//593 592//592 588//588 +f 593//593 588//588 591//591 +f 438//438 591//591 561//561 +f 558//558 550//550 569//569 +f 558//558 569//569 438//438 +f 497//497 589//589 500//500 +f 497//497 500//500 498//498 +f 577//577 578//578 579//579 +f 579//579 578//578 460//460 +f 579//579 460//460 580//580 +f 580//580 460//460 462//462 +f 457//457 501//501 594//594 +f 457//457 594//594 592//592 +f 580//580 591//591 590//590 +f 580//580 590//590 571//571 +f 596//596 597//597 430//430 +f 596//596 430//430 429//429 +f 598//598 429//429 428//428 +f 427//427 426//426 432//432 +f 599//599 600//600 601//601 +f 602//602 601//601 425//425 +f 425//425 601//601 426//426 +f 551//551 603//603 542//542 +f 432//432 431//431 427//427 +f 431//431 596//596 427//427 +f 427//427 596//596 429//429 +f 427//427 429//429 598//598 +f 427//427 598//598 425//425 +f 425//425 598//598 604//604 +f 424//424 604//604 413//413 +f 413//413 412//412 422//422 +f 424//424 602//602 425//425 +f 605//605 602//602 424//424 +f 605//605 424//424 422//422 +f 603//603 605//605 543//543 +f 543//543 605//605 544//544 +f 422//422 421//421 605//605 +f 603//603 543//543 542//542 +f 545//545 544//544 548//548 +f 606//606 607//607 608//608 +f 608//608 607//607 420//420 +f 597//597 418//418 430//430 +f 430//430 418//418 428//428 +f 428//428 418//418 420//420 +f 428//428 420//420 609//609 +f 609//609 420//420 607//607 +f 609//609 607//607 610//610 +f 609//609 610//610 611//611 +f 611//611 610//610 612//612 +f 613//613 610//610 614//614 +f 614//614 615//615 613//613 +f 420//420 419//419 608//608 +f 608//608 616//616 606//606 +f 606//606 616//616 617//617 +f 617//617 616//616 415//415 +f 607//607 606//606 610//610 +f 618//618 619//619 620//620 +f 621//621 618//618 469//469 +f 469//469 618//618 622//622 +f 468//468 623//623 621//621 +f 468//468 621//621 469//469 +f 617//617 624//624 606//606 +f 606//606 624//624 614//614 +f 606//606 614//614 610//610 +f 468//468 625//625 623//623 +f 623//623 626//626 621//621 +f 621//621 626//626 618//618 +f 622//622 618//618 620//620 +f 626//626 623//623 625//625 +f 619//619 627//627 628//628 +f 629//629 630//630 631//631 +f 619//619 628//628 632//632 +f 416//416 620//620 632//632 +f 632//632 620//620 619//619 +f 619//619 618//618 626//626 +f 619//619 626//626 627//627 +f 629//629 626//626 625//625 +f 629//629 625//625 633//633 +f 633//633 625//625 466//466 +f 612//612 613//613 414//414 +f 612//612 414//414 611//611 +f 423//423 412//412 634//634 +f 423//423 634//634 635//635 +f 636//636 637//637 638//638 +f 636//636 638//638 639//639 +f 635//635 634//634 637//637 +f 637//637 640//640 638//638 +f 421//421 423//423 641//641 +f 642//642 643//643 644//644 +f 644//644 635//635 636//636 +f 645//645 636//636 639//639 +f 641//641 643//643 642//642 +f 644//644 645//645 646//646 +f 646//646 567//567 566//566 +f 646//646 566//566 642//642 +f 641//641 565//565 564//564 +f 421//421 564//564 544//544 +f 564//564 421//421 641//641 +f 565//565 641//641 642//642 +f 642//642 644//644 646//646 +f 567//567 646//646 647//647 +f 411//411 647//647 646//646 +f 411//411 646//646 639//639 +f 639//639 646//646 645//645 +f 422//422 412//412 423//423 +f 635//635 637//637 636//636 +f 648//648 649//649 631//631 +f 628//628 650//650 651//651 +f 651//651 650//650 652//652 +f 652//652 650//650 631//631 +f 652//652 631//631 649//649 +f 628//628 651//651 624//624 +f 628//628 624//624 617//617 +f 634//634 412//412 653//653 +f 637//637 653//653 654//654 +f 612//612 610//610 613//613 +f 655//655 652//652 649//649 +f 640//640 649//649 648//648 +f 633//633 656//656 657//657 +f 633//633 657//657 630//630 +f 656//656 658//658 657//657 +f 617//617 417//417 628//628 +f 658//658 463//463 659//659 +f 658//658 659//659 660//660 +f 660//660 657//657 658//658 +f 661//661 662//662 659//659 +f 659//659 662//662 663//663 +f 663//663 638//638 664//664 +f 664//664 638//638 648//648 +f 652//652 655//655 653//653 +f 652//652 653//653 615//615 +f 615//615 653//653 613//613 +f 662//662 665//665 411//411 +f 662//662 411//411 639//639 +f 662//662 639//639 663//663 +f 663//663 639//639 638//638 +f 649//649 654//654 655//655 +f 655//655 654//654 653//653 +f 613//613 653//653 412//412 +f 613//613 412//412 414//414 +f 647//647 411//411 410//410 +f 661//661 665//665 662//662 +f 648//648 638//638 640//640 +f 640//640 654//654 649//649 +f 415//415 417//417 617//617 +f 624//624 651//651 614//614 +f 614//614 651//651 615//615 +f 615//615 651//651 652//652 +f 663//663 664//664 659//659 +f 417//417 632//632 628//628 +f 628//628 627//627 650//650 +f 650//650 627//627 629//629 +f 650//650 629//629 631//631 +f 631//631 630//630 657//657 +f 631//631 657//657 648//648 +f 648//648 657//657 660//660 +f 648//648 660//660 664//664 +f 664//664 660//660 659//659 +f 659//659 463//463 666//666 +f 659//659 666//666 661//661 +f 665//665 409//409 411//411 +f 468//468 467//467 625//625 +f 625//625 467//467 466//466 +f 466//466 464//464 658//658 +f 658//658 464//464 463//463 +f 463//463 465//465 666//666 +f 666//666 465//465 667//667 +f 666//666 667//667 668//668 +f 668//668 667//667 575//575 +f 668//668 575//575 574//574 +f 573//573 410//410 409//409 +f 573//573 409//409 574//574 +f 600//600 432//432 601//601 +f 601//601 432//432 426//426 +f 603//603 601//601 602//602 +f 603//603 602//602 605//605 +f 605//605 421//421 544//544 +f 565//565 642//642 566//566 +f 572//572 567//567 647//647 +f 572//572 647//647 410//410 +f 572//572 410//410 573//573 +f 573//573 574//574 577//577 +f 669//669 670//670 671//671 +f 672//672 673//673 674//674 +f 675//675 672//672 674//674 +f 676//676 672//672 675//675 +f 676//676 675//675 677//677 +f 670//670 676//676 671//671 +f 671//671 676//676 677//677 +f 671//671 677//677 408//408 +f 408//408 407//407 671//671 +f 130//130 669//669 470//470 +f 470//470 669//669 671//671 +f 470//470 671//671 407//407 +f 678//678 679//679 406//406 +f 406//406 679//679 680//680 +f 406//406 680//680 407//407 +f 407//407 680//680 471//471 +f 674//674 681//681 682//682 +f 674//674 682//682 683//683 +f 406//406 684//684 685//685 +f 681//681 686//686 682//682 +f 683//683 682//682 687//687 +f 683//683 687//687 688//688 +f 688//688 687//687 689//689 +f 688//688 689//689 684//684 +f 684//684 689//689 690//690 +f 684//684 690//690 685//685 +f 691//691 692//692 693//693 +f 693//693 692//692 694//694 +f 694//694 692//692 597//597 +f 695//695 696//696 697//697 +f 697//697 696//696 433//433 +f 433//433 696//696 698//698 +f 433//433 698//698 694//694 +f 433//433 694//694 596//596 +f 696//696 693//693 698//698 +f 698//698 693//693 694//694 +f 596//596 694//694 597//597 +f 682//682 686//686 699//699 +f 682//682 699//699 687//687 +f 685//685 690//690 405//405 +f 673//673 681//681 674//674 +f 675//675 674//674 683//683 +f 675//675 683//683 677//677 +f 677//677 683//683 688//688 +f 677//677 688//688 408//408 +f 408//408 688//688 684//684 +f 408//408 684//684 406//406 +f 406//406 685//685 678//678 +f 678//678 685//685 404//404 +f 404//404 685//685 405//405 +f 681//681 673//673 691//691 +f 681//681 691//691 700//700 +f 681//681 700//700 686//686 +f 686//686 700//700 701//701 +f 686//686 701//701 702//702 +f 686//686 702//702 699//699 +f 687//687 699//699 703//703 +f 687//687 703//703 689//689 +f 689//689 703//703 704//704 +f 689//689 704//704 690//690 +f 690//690 704//704 705//705 +f 690//690 705//705 405//405 +f 706//706 472//472 707//707 +f 707//707 472//472 403//403 +f 708//708 403//403 405//405 +f 708//708 405//405 705//705 +f 709//709 703//703 699//699 +f 709//709 699//699 702//702 +f 695//695 702//702 701//701 +f 695//695 701//701 696//696 +f 696//696 701//701 700//700 +f 696//696 700//700 693//693 +f 693//693 700//700 691//691 +f 710//710 706//706 707//707 +f 711//711 707//707 708//708 +f 712//712 713//713 709//709 +f 453//453 452//452 710//710 +f 453//453 710//710 714//714 +f 715//715 716//716 712//712 +f 503//503 502//502 717//717 +f 503//503 717//717 505//505 +f 505//505 718//718 506//506 +f 506//506 718//718 719//719 +f 506//506 719//719 716//716 +f 506//506 716//716 720//720 +f 452//452 706//706 710//710 +f 714//714 710//710 707//707 +f 714//714 707//707 711//711 +f 711//711 708//708 721//721 +f 721//721 708//708 722//722 +f 721//721 722//722 716//716 +f 716//716 722//722 713//713 +f 716//716 713//713 712//712 +f 712//712 709//709 723//723 +f 723//723 709//709 724//724 +f 723//723 724//724 725//725 +f 636//636 645//645 644//644 +f 635//635 644//644 643//643 +f 635//635 643//643 641//641 +f 635//635 641//641 423//423 +f 604//604 424//424 425//425 +f 432//432 600//600 433//433 +f 433//433 600//600 697//697 +f 697//697 600//600 725//725 +f 717//717 453//453 714//714 +f 718//718 714//714 711//711 +f 718//718 711//711 719//719 +f 719//719 711//711 721//721 +f 719//719 721//721 716//716 +f 715//715 712//712 726//726 +f 726//726 712//712 723//723 +f 726//726 723//723 727//727 +f 727//727 723//723 725//725 +f 727//727 725//725 728//728 +f 502//502 451//451 453//453 +f 502//502 453//453 717//717 +f 505//505 717//717 714//714 +f 505//505 714//714 718//718 +f 720//720 716//716 715//715 +f 720//720 715//715 729//729 +f 729//729 715//715 726//726 +f 729//729 726//726 727//727 +f 724//724 697//697 725//725 +f 728//728 725//725 600//600 +f 728//728 600//600 595//595 +f 595//595 600//600 599//599 +f 595//595 599//599 551//551 +f 551//551 599//599 601//601 +f 551//551 601//601 603//603 +f 541//541 543//543 544//544 +f 544//544 564//564 548//548 +f 548//548 565//565 550//550 +f 550//550 565//565 566//566 +f 569//569 568//568 571//571 +f 569//569 571//571 590//590 +f 500//500 592//592 594//594 +f 500//500 594//594 499//499 +f 417//417 416//416 632//632 +f 627//627 626//626 629//629 +f 630//630 629//629 633//633 +f 656//656 633//633 466//466 +f 656//656 466//466 658//658 +f 661//661 666//666 668//668 +f 661//661 668//668 665//665 +f 665//665 668//668 574//574 +f 665//665 574//574 409//409 +f 640//640 637//637 654//654 +f 653//653 637//637 634//634 +f 414//414 413//413 604//604 +f 414//414 604//604 611//611 +f 611//611 604//604 598//598 +f 611//611 598//598 609//609 +f 609//609 598//598 428//428 +f 596//596 431//431 433//433 +f 695//695 697//697 724//724 +f 695//695 724//724 702//702 +f 702//702 724//724 709//709 +f 703//703 709//709 713//713 +f 703//703 713//713 704//704 +f 704//704 713//713 722//722 +f 704//704 722//722 705//705 +f 705//705 722//722 708//708 +f 403//403 708//708 707//707 +f 561//561 588//588 436//436 +f 561//561 436//436 435//435 +f 549//549 437//437 557//557 +f 549//549 557//557 545//545 +f 546//546 528//528 441//441 +f 551//551 441//441 440//440 +f 551//551 440//440 595//595 +f 728//728 595//595 522//522 +f 728//728 522//522 727//727 +f 727//727 522//522 444//444 +f 727//727 444//444 729//729 +f 729//729 444//444 443//443 +f 729//729 443//443 720//720 +f 720//720 443//443 520//520 +f 720//720 520//520 506//506 +f 447//447 446//446 518//518 +f 518//518 446//446 507//507 +f 518//518 507//507 517//517 +f 517//517 507//507 519//519 +f 519//519 532//532 516//516 +f 516//516 532//532 515//515 +f 515//515 482//482 450//450 +f 450//450 482//482 448//448 +f 29//29 40//40 730//730 +f 39//39 731//731 40//40 +f 40//40 731//731 730//730 +f 43//43 732//732 39//39 +f 39//39 732//732 731//731 +f 38//38 733//733 43//43 +f 43//43 733//733 732//732 +f 733//733 38//38 734//734 +f 734//734 38//38 34//34 +f 734//734 34//34 735//735 +f 33//33 736//736 34//34 +f 34//34 736//736 735//735 +f 736//736 33//33 737//737 +f 737//737 33//33 31//31 +f 737//737 31//31 738//738 +f 30//30 739//739 31//31 +f 31//31 739//739 738//738 +f 739//739 30//30 740//740 +f 740//740 30//30 27//27 +f 740//740 27//27 741//741 +f 37//37 742//742 27//27 +f 27//27 742//742 741//741 +f 742//742 37//37 743//743 +f 743//743 37//37 36//36 +f 36//36 744//744 743//743 +f 35//35 745//745 744//744 +f 35//35 744//744 36//36 +f 745//745 35//35 746//746 +f 746//746 35//35 28//28 +f 26//26 747//747 28//28 +f 28//28 747//747 746//746 +f 747//747 26//26 748//748 +f 748//748 26//26 25//25 +f 25//25 749//749 748//748 +f 42//42 750//750 749//749 +f 42//42 749//749 25//25 +f 750//750 42//42 751//751 +f 751//751 42//42 41//41 +f 32//32 752//752 41//41 +f 41//41 752//752 751//751 +f 752//752 32//32 753//753 +f 753//753 32//32 29//29 +f 753//753 29//29 754//754 +f 730//730 754//754 29//29 +f 755//755 756//756 757//757 +f 757//757 758//758 759//759 +f 759//759 760//760 761//761 +f 761//761 762//762 763//763 +f 764//764 765//765 766//766 +f 766//766 765//765 165//165 +f 165//165 164//164 766//766 +f 183//183 165//165 767//767 +f 768//768 183//183 767//767 +f 769//769 770//770 762//762 +f 771//771 772//772 758//758 +f 773//773 774//774 756//756 +f 775//775 774//774 776//776 +f 776//776 774//774 773//773 +f 777//777 778//778 776//776 +f 768//768 767//767 765//765 +f 768//768 765//765 779//779 +f 779//779 765//765 780//780 +f 769//769 762//762 761//761 +f 769//769 761//761 760//760 +f 772//772 760//760 759//759 +f 772//772 759//759 758//758 +f 777//777 776//776 773//773 +f 777//777 773//773 755//755 +f 755//755 773//773 756//756 +f 757//757 756//756 758//758 +f 763//763 762//762 770//770 +f 763//763 770//770 764//764 +f 764//764 770//770 780//780 +f 764//764 780//780 765//765 +f 165//165 765//765 767//767 +f 781//781 782//782 783//783 +f 784//784 785//785 781//781 +f 786//786 784//784 787//787 +f 787//787 788//788 786//786 +f 789//789 790//790 788//788 +f 791//791 792//792 790//790 +f 793//793 794//794 791//791 +f 791//791 794//794 792//792 +f 795//795 796//796 797//797 +f 795//795 798//798 796//796 +f 797//797 799//799 800//800 +f 799//799 797//797 796//796 +f 801//801 800//800 802//802 +f 802//802 800//800 799//799 +f 803//803 804//804 802//802 +f 804//804 801//801 802//802 +f 805//805 804//804 806//806 +f 805//805 807//807 775//775 +f 775//775 807//807 774//774 +f 756//756 774//774 808//808 +f 808//808 774//774 807//807 +f 756//756 808//808 771//771 +f 756//756 771//771 758//758 +f 183//183 768//768 162//162 +f 809//809 159//159 810//810 +f 809//809 108//108 159//159 +f 157//157 811//811 156//156 +f 812//812 149//149 152//152 +f 148//148 149//149 812//812 +f 144//144 813//813 141//141 +f 141//141 813//813 142//142 +f 814//814 772//772 771//771 +f 814//814 771//771 815//815 +f 815//815 771//771 808//808 +f 815//815 808//808 816//816 +f 816//816 808//808 807//807 +f 816//816 807//807 806//806 +f 806//806 807//807 805//805 +f 817//817 818//818 819//819 +f 817//817 819//819 820//820 +f 820//820 819//819 821//821 +f 821//821 819//819 822//822 +f 822//822 819//819 823//823 +f 818//818 824//824 825//825 +f 826//826 825//825 827//827 +f 826//826 827//827 828//828 +f 829//829 830//830 831//831 +f 831//831 830//830 832//832 +f 832//832 830//830 833//833 +f 832//832 833//833 828//828 +f 828//828 833//833 834//834 +f 835//835 836//836 837//837 +f 835//835 837//837 838//838 +f 839//839 782//782 835//835 +f 839//839 835//835 840//840 +f 841//841 842//842 843//843 +f 841//841 843//843 844//844 +f 844//844 843//843 845//845 +f 844//844 845//845 846//846 +f 847//847 846//846 848//848 +f 847//847 848//848 849//849 +f 849//849 848//848 850//850 +f 850//850 848//848 832//832 +f 850//850 832//832 851//851 +f 851//851 832//832 828//828 +f 851//851 828//828 827//827 +f 852//852 839//839 840//840 +f 852//852 840//840 842//842 +f 853//853 844//844 846//846 +f 853//853 846//846 854//854 +f 854//854 846//846 847//847 +f 854//854 847//847 849//849 +f 855//855 849//849 850//850 +f 850//850 851//851 827//827 +f 856//856 827//827 825//825 +f 856//856 825//825 824//824 +f 817//817 824//824 818//818 +f 795//795 857//857 798//798 +f 798//798 857//857 858//858 +f 859//859 803//803 860//860 +f 860//860 803//803 802//802 +f 860//860 802//802 861//861 +f 861//861 802//802 799//799 +f 799//799 796//796 862//862 +f 862//862 796//796 798//798 +f 863//863 798//798 858//858 +f 863//863 858//858 864//864 +f 864//864 865//865 866//866 +f 864//864 866//866 863//863 +f 798//798 863//863 862//862 +f 783//783 782//782 839//839 +f 783//783 839//839 852//852 +f 867//867 852//852 842//842 +f 867//867 842//842 789//789 +f 789//789 842//842 841//841 +f 789//789 841//841 868//868 +f 868//868 841//841 844//844 +f 868//868 844//844 853//853 +f 868//868 853//853 869//869 +f 869//869 853//853 854//854 +f 854//854 849//849 855//855 +f 870//870 855//855 850//850 +f 870//870 850//850 871//871 +f 871//871 850//850 827//827 +f 871//871 827//827 856//856 +f 872//872 856//856 824//824 +f 872//872 824//824 817//817 +f 787//787 783//783 852//852 +f 787//787 852//852 867//867 +f 791//791 868//868 873//873 +f 873//873 868//868 869//869 +f 873//873 869//869 874//874 +f 874//874 869//869 854//854 +f 874//874 854//854 875//875 +f 875//875 854//854 855//855 +f 875//875 855//855 870//870 +f 866//866 871//871 856//856 +f 866//866 856//856 872//872 +f 862//862 872//872 817//817 +f 781//781 783//783 784//784 +f 784//784 783//783 787//787 +f 788//788 787//787 867//867 +f 788//788 867//867 789//789 +f 790//790 789//789 868//868 +f 790//790 868//868 791//791 +f 793//793 791//791 873//873 +f 793//793 873//873 876//876 +f 876//876 873//873 874//874 +f 876//876 874//874 877//877 +f 877//877 874//874 875//875 +f 877//877 875//875 878//878 +f 878//878 875//875 870//870 +f 878//878 870//870 879//879 +f 879//879 870//870 871//871 +f 879//879 871//871 865//865 +f 865//865 871//871 866//866 +f 863//863 866//866 872//872 +f 863//863 872//872 862//862 +f 862//862 817//817 799//799 +f 799//799 817//817 820//820 +f 799//799 820//820 861//861 +f 861//861 820//820 860//860 +f 860//860 820//820 821//821 +f 860//860 821//821 859//859 +f 859//859 821//821 822//822 +f 154//154 880//880 152//152 +f 812//812 152//152 880//880 +f 812//812 881//881 882//882 +f 883//883 882//882 881//881 +f 883//883 881//881 884//884 +f 884//884 881//881 812//812 +f 818//818 885//885 886//886 +f 834//834 885//885 826//826 +f 813//813 144//144 145//145 +f 887//887 142//142 813//813 +f 888//888 813//813 889//889 +f 889//889 813//813 145//145 +f 889//889 145//145 890//890 +f 890//890 145//145 146//146 +f 890//890 146//146 882//882 +f 882//882 146//146 148//148 +f 891//891 887//887 892//892 +f 892//892 887//887 813//813 +f 892//892 813//813 888//888 +f 882//882 148//148 812//812 +f 893//893 892//892 888//888 +f 893//893 888//888 894//894 +f 894//894 888//888 889//889 +f 894//894 889//889 895//895 +f 895//895 889//889 890//890 +f 895//895 890//890 896//896 +f 896//896 890//890 882//882 +f 896//896 882//882 883//883 +f 892//892 893//893 897//897 +f 892//892 897//897 891//891 +f 891//891 897//897 898//898 +f 836//836 898//898 837//837 +f 837//837 898//898 897//897 +f 837//837 897//897 899//899 +f 900//900 901//901 833//833 +f 833//833 901//901 902//902 +f 903//903 902//902 883//883 +f 903//903 883//883 904//904 +f 838//838 837//837 899//899 +f 838//838 899//899 905//905 +f 905//905 899//899 906//906 +f 905//905 906//906 843//843 +f 843//843 906//906 829//829 +f 829//829 906//906 907//907 +f 829//829 907//907 830//830 +f 830//830 907//907 901//901 +f 830//830 901//901 900//900 +f 830//830 900//900 833//833 +f 833//833 902//902 834//834 +f 834//834 902//902 903//903 +f 886//886 904//904 884//884 +f 810//810 159//159 768//768 +f 768//768 159//159 162//162 +f 157//157 111//111 811//811 +f 811//811 111//111 908//908 +f 908//908 111//111 109//109 +f 908//908 109//109 108//108 +f 908//908 108//108 809//809 +f 809//809 909//909 908//908 +f 908//908 910//910 811//811 +f 811//811 910//910 911//911 +f 811//811 911//911 880//880 +f 912//912 880//880 911//911 +f 154//154 156//156 880//880 +f 913//913 914//914 770//770 +f 770//770 914//914 780//780 +f 779//779 780//780 914//914 +f 914//914 913//913 909//909 +f 770//770 769//769 913//913 +f 760//760 772//772 769//769 +f 769//769 772//772 915//915 +f 915//915 772//772 814//814 +f 915//915 814//814 823//823 +f 823//823 814//814 815//815 +f 823//823 815//815 822//822 +f 822//822 815//815 816//816 +f 822//822 816//816 859//859 +f 859//859 816//816 806//806 +f 859//859 806//806 803//803 +f 803//803 806//806 804//804 +f 769//769 915//915 913//913 +f 913//913 915//915 909//909 +f 909//909 915//915 916//916 +f 909//909 916//916 917//917 +f 768//768 779//779 810//810 +f 810//810 779//779 914//914 +f 810//810 914//914 809//809 +f 809//809 914//914 909//909 +f 908//908 909//909 917//917 +f 908//908 917//917 910//910 +f 910//910 917//917 911//911 +f 911//911 917//917 918//918 +f 911//911 918//918 912//912 +f 912//912 918//918 886//886 +f 912//912 886//886 884//884 +f 904//904 886//886 885//885 +f 904//904 885//885 903//903 +f 903//903 885//885 834//834 +f 899//899 897//897 893//893 +f 899//899 893//893 906//906 +f 906//906 893//893 894//894 +f 906//906 894//894 907//907 +f 907//907 894//894 895//895 +f 907//907 895//895 901//901 +f 901//901 895//895 896//896 +f 901//901 896//896 902//902 +f 902//902 896//896 883//883 +f 904//904 883//883 884//884 +f 884//884 812//812 880//880 +f 884//884 880//880 912//912 +f 811//811 880//880 156//156 +f 782//782 836//836 835//835 +f 840//840 835//835 838//838 +f 840//840 838//838 842//842 +f 842//842 838//838 905//905 +f 842//842 905//905 843//843 +f 845//845 843//843 829//829 +f 845//845 829//829 846//846 +f 846//846 829//829 848//848 +f 848//848 829//829 831//831 +f 848//848 831//831 832//832 +f 828//828 834//834 826//826 +f 825//825 826//826 885//885 +f 825//825 885//885 818//818 +f 818//818 886//886 918//918 +f 818//818 918//918 819//819 +f 819//819 918//918 917//917 +f 819//819 917//917 823//823 +f 823//823 917//917 916//916 +f 823//823 916//916 915//915 +f 919//919 50//50 49//49 +f 920//920 921//921 49//49 +f 49//49 921//921 919//919 +f 113//113 61//61 229//229 +f 66//66 922//922 44//44 +f 923//923 66//66 924//924 +f 924//924 66//66 67//67 +f 48//48 920//920 49//49 +f 47//47 925//925 926//926 +f 46//46 927//927 925//925 +f 66//66 923//923 922//922 +f 229//229 61//61 226//226 +f 226//226 61//61 60//60 +f 48//48 928//928 920//920 +f 47//47 926//926 48//48 +f 48//48 926//926 928//928 +f 46//46 925//925 47//47 +f 65//65 782//782 781//781 +f 61//61 113//113 112//112 +f 61//61 112//112 62//62 +f 65//65 781//781 67//67 +f 67//67 781//781 785//785 +f 60//60 349//349 226//226 +f 59//59 348//348 253//253 +f 59//59 253//253 60//60 +f 60//60 253//253 349//349 +f 54//54 465//465 464//464 +f 45//45 929//929 46//46 +f 46//46 929//929 927//927 +f 45//45 930//930 929//929 +f 785//785 931//931 67//67 +f 67//67 931//931 924//924 +f 64//64 836//836 782//782 +f 930//930 45//45 44//44 +f 930//930 44//44 932//932 +f 64//64 782//782 65//65 +f 575//575 667//667 53//53 +f 53//53 667//667 465//465 +f 53//53 465//465 54//54 +f 933//933 50//50 919//919 +f 922//922 932//932 44//44 +f 348//348 59//59 347//347 +f 55//55 468//468 56//56 +f 54//54 464//464 55//55 +f 55//55 464//464 467//467 +f 898//898 836//836 63//63 +f 63//63 836//836 64//64 +f 62//62 887//887 63//63 +f 63//63 887//887 891//891 +f 63//63 891//891 898//898 +f 62//62 112//112 142//142 +f 347//347 59//59 140//140 +f 140//140 59//59 58//58 +f 55//55 467//467 468//468 +f 62//62 142//142 887//887 +f 468//468 132//132 56//56 +f 56//56 132//132 131//131 +f 52//52 576//576 575//575 +f 52//52 575//575 53//53 +f 460//460 578//578 52//52 +f 460//460 52//52 51//51 +f 460//460 51//51 461//461 +f 56//56 131//131 135//135 +f 56//56 135//135 57//57 +f 52//52 578//578 576//576 +f 140//140 58//58 138//138 +f 138//138 58//58 57//57 +f 138//138 57//57 136//136 +f 57//57 135//135 136//136 +f 51//51 456//456 459//459 +f 51//51 459//459 461//461 +f 933//933 454//454 50//50 +f 50//50 454//454 456//456 +f 50//50 456//456 51//51 +f 492//492 934//934 935//935 +f 483//483 486//486 936//936 +f 937//937 938//938 939//939 +f 940//940 941//941 942//942 +f 943//943 944//944 945//945 +f 946//946 945//945 944//944 +f 947//947 948//948 946//946 +f 946//946 948//948 945//945 +f 949//949 950//950 947//947 +f 947//947 950//950 948//948 +f 950//950 949//949 951//951 +f 952//952 953//953 949//949 +f 949//949 953//953 951//951 +f 953//953 952//952 954//954 +f 955//955 956//956 957//957 +f 958//958 938//938 959//959 +f 960//960 925//925 937//937 +f 925//925 960//960 926//926 +f 926//926 960//960 961//961 +f 926//926 961//961 928//928 +f 928//928 961//961 962//962 +f 928//928 962//962 920//920 +f 920//920 962//962 963//963 +f 920//920 963//963 964//964 +f 920//920 964//964 921//921 +f 921//921 964//964 965//965 +f 921//921 965//965 919//919 +f 933//933 919//919 966//966 +f 933//933 966//966 454//454 +f 967//967 498//498 499//499 +f 968//968 496//496 498//498 +f 968//968 494//494 496//496 +f 934//934 494//494 968//968 +f 934//934 492//492 494//494 +f 969//969 970//970 971//971 +f 969//969 971//971 972//972 +f 942//942 973//973 974//974 +f 975//975 976//976 977//977 +f 977//977 976//976 944//944 +f 944//944 943//943 940//940 +f 978//978 979//979 980//980 +f 980//980 979//979 981//981 +f 980//980 981//981 982//982 +f 980//980 982//982 983//983 +f 984//984 952//952 949//949 +f 984//984 949//949 985//985 +f 985//985 949//949 947//947 +f 985//985 947//947 986//986 +f 986//986 947//947 946//946 +f 986//986 946//946 987//987 +f 987//987 946//946 944//944 +f 987//987 944//944 976//976 +f 983//983 984//984 980//980 +f 980//980 984//984 985//985 +f 980//980 985//985 986//986 +f 980//980 986//986 978//978 +f 978//978 986//986 987//987 +f 978//978 987//987 976//976 +f 988//988 989//989 990//990 +f 988//988 990//990 991//991 +f 992//992 991//991 993//993 +f 994//994 993//993 954//954 +f 995//995 996//996 997//997 +f 995//995 997//997 998//998 +f 998//998 999//999 1000//1000 +f 997//997 1001//1001 988//988 +f 997//997 988//988 999//999 +f 1002//1002 992//992 994//994 +f 1003//1003 994//994 954//954 +f 1003//1003 954//954 983//983 +f 1004//1004 1005//1005 990//990 +f 990//990 1005//1005 1006//1006 +f 1006//1006 1007//1007 993//993 +f 993//993 1007//1007 1008//1008 +f 993//993 1008//1008 954//954 +f 954//954 1008//1008 953//953 +f 984//984 954//954 952//952 +f 1006//1006 993//993 991//991 +f 1006//1006 991//991 990//990 +f 1004//1004 990//990 989//989 +f 996//996 1001//1001 997//997 +f 998//998 997//997 999//999 +f 1000//1000 999//999 992//992 +f 1000//1000 992//992 1002//1002 +f 1002//1002 994//994 1009//1009 +f 1009//1009 994//994 1003//1003 +f 1001//1001 989//989 988//988 +f 999//999 988//988 991//991 +f 999//999 991//991 992//992 +f 992//992 993//993 994//994 +f 954//954 984//984 983//983 +f 1000//1000 1010//1010 1011//1011 +f 998//998 1011//1011 1012//1012 +f 995//995 1012//1012 1013//1013 +f 995//995 1013//1013 1014//1014 +f 1010//1010 1015//1015 1016//1016 +f 1011//1011 1016//1016 1017//1017 +f 1011//1011 1017//1017 1018//1018 +f 1012//1012 1018//1018 1019//1019 +f 1012//1012 1019//1019 1020//1020 +f 1013//1013 1020//1020 1021//1021 +f 1013//1013 1021//1021 956//956 +f 1010//1010 1016//1016 1011//1011 +f 1011//1011 1018//1018 1012//1012 +f 1012//1012 1020//1020 1013//1013 +f 1014//1014 1013//1013 956//956 +f 1014//1014 956//956 955//955 +f 1010//1010 1022//1022 1015//1015 +f 1016//1016 1015//1015 1017//1017 +f 1018//1018 1017//1017 1023//1023 +f 1018//1018 1023//1023 1019//1019 +f 1020//1020 1019//1019 1024//1024 +f 1020//1020 1024//1024 1021//1021 +f 956//956 1021//1021 957//957 +f 935//935 934//934 1025//1025 +f 1025//1025 934//934 1026//1026 +f 1027//1027 1028//1028 1029//1029 +f 1027//1027 1025//1025 1026//1026 +f 1027//1027 1026//1026 1028//1028 +f 1028//1028 1026//1026 1030//1030 +f 1022//1022 1031//1031 1015//1015 +f 1017//1017 1015//1015 1032//1032 +f 1017//1017 1032//1032 1023//1023 +f 1023//1023 1033//1033 1034//1034 +f 1024//1024 1034//1034 1035//1035 +f 1036//1036 958//958 959//959 +f 1032//1032 1037//1037 1038//1038 +f 1032//1032 1038//1038 1033//1033 +f 1039//1039 1040//1040 1041//1041 +f 1040//1040 498//498 967//967 +f 1039//1039 968//968 498//498 +f 1039//1039 498//498 1040//1040 +f 1026//1026 934//934 968//968 +f 1026//1026 968//968 1039//1039 +f 1042//1042 1040//1040 1043//1043 +f 1041//1041 1040//1040 1042//1042 +f 1042//1042 1043//1043 1044//1044 +f 1031//1031 1042//1042 1044//1044 +f 1037//1037 1044//1044 1045//1045 +f 1038//1038 1045//1045 1046//1046 +f 1031//1031 1044//1044 1037//1037 +f 1037//1037 1045//1045 1038//1038 +f 1033//1033 1038//1038 1046//1046 +f 1033//1033 1046//1046 1047//1047 +f 1047//1047 1046//1046 1048//1048 +f 1047//1047 1048//1048 1049//1049 +f 1050//1050 1045//1045 1051//1051 +f 1045//1045 1044//1044 1051//1051 +f 1051//1051 1044//1044 1043//1043 +f 1043//1043 1040//1040 1052//1052 +f 1052//1052 1040//1040 967//967 +f 1053//1053 1050//1050 1054//1054 +f 1054//1054 1050//1050 1051//1051 +f 1054//1054 1051//1051 1043//1043 +f 1054//1054 1043//1043 1055//1055 +f 1055//1055 1043//1043 1052//1052 +f 1055//1055 1052//1052 1056//1056 +f 1056//1056 1052//1052 967//967 +f 1056//1056 967//967 499//499 +f 1041//1041 1026//1026 1039//1039 +f 1031//1031 1041//1041 1042//1042 +f 1045//1045 1050//1050 1046//1046 +f 1046//1046 1050//1050 1053//1053 +f 1046//1046 1053//1053 1048//1048 +f 939//939 958//958 1057//1057 +f 939//939 1057//1057 1058//1058 +f 1058//1058 1057//1057 1059//1059 +f 1058//1058 1059//1059 1060//1060 +f 1060//1060 1059//1059 1061//1061 +f 1060//1060 1061//1061 1062//1062 +f 1062//1062 1061//1061 1063//1063 +f 1062//1062 1063//1063 1064//1064 +f 1064//1064 1063//1063 1065//1065 +f 1064//1064 1065//1065 1066//1066 +f 1066//1066 1065//1065 1067//1067 +f 1066//1066 1067//1067 1068//1068 +f 1068//1068 1067//1067 501//501 +f 455//455 454//454 966//966 +f 966//966 919//919 965//965 +f 964//964 963//963 1069//1069 +f 1069//1069 963//963 962//962 +f 1069//1069 962//962 1070//1070 +f 1070//1070 962//962 961//961 +f 1070//1070 961//961 1071//1071 +f 1071//1071 961//961 960//960 +f 1071//1071 960//960 1072//1072 +f 1072//1072 960//960 937//937 +f 937//937 939//939 1072//1072 +f 1072//1072 939//939 1058//1058 +f 1072//1072 1058//1058 1071//1071 +f 1071//1071 1058//1058 1060//1060 +f 1071//1071 1060//1060 1070//1070 +f 1070//1070 1060//1060 1062//1062 +f 1070//1070 1062//1062 1069//1069 +f 1069//1069 1062//1062 1064//1064 +f 1069//1069 1064//1064 964//964 +f 964//964 1064//1064 1066//1066 +f 964//964 1066//1066 965//965 +f 965//965 1066//1066 1068//1068 +f 965//965 1068//1068 966//966 +f 966//966 1068//1068 501//501 +f 966//966 501//501 455//455 +f 958//958 1049//1049 1057//1057 +f 1057//1057 1049//1049 1048//1048 +f 1057//1057 1048//1048 1059//1059 +f 1059//1059 1048//1048 1053//1053 +f 1059//1059 1053//1053 1061//1061 +f 1061//1061 1053//1053 1054//1054 +f 1061//1061 1054//1054 1063//1063 +f 1063//1063 1054//1054 1055//1055 +f 1063//1063 1055//1055 1065//1065 +f 1065//1065 1055//1055 1056//1056 +f 1065//1065 1056//1056 1067//1067 +f 1067//1067 1056//1056 499//499 +f 1067//1067 499//499 501//501 +f 939//939 938//938 958//958 +f 958//958 1036//1036 1049//1049 +f 1049//1049 1036//1036 1035//1035 +f 1049//1049 1035//1035 1047//1047 +f 1047//1047 1035//1035 1034//1034 +f 1047//1047 1034//1034 1033//1033 +f 1033//1033 1023//1023 1032//1032 +f 1037//1037 1032//1032 1015//1015 +f 1037//1037 1015//1015 1031//1031 +f 1031//1031 1022//1022 1041//1041 +f 1041//1041 1022//1022 1073//1073 +f 1041//1041 1073//1073 1026//1026 +f 1026//1026 1073//1073 1030//1030 +f 1030//1030 1073//1073 1009//1009 +f 1030//1030 1009//1009 1028//1028 +f 1074//1074 1075//1075 1076//1076 +f 491//491 492//492 935//935 +f 491//491 935//935 489//489 +f 486//486 485//485 1074//1074 +f 486//486 1074//1074 936//936 +f 936//936 1074//1074 1077//1077 +f 936//936 1077//1077 1078//1078 +f 940//940 942//942 1079//1079 +f 1079//1079 942//942 974//974 +f 1079//1079 974//974 977//977 +f 977//977 974//974 969//969 +f 1080//1080 972//972 1081//1081 +f 1080//1080 1081//1081 1082//1082 +f 1080//1080 1082//1082 1083//1083 +f 1083//1083 1084//1084 1085//1085 +f 1080//1080 1086//1086 1077//1077 +f 1077//1077 1086//1086 1078//1078 +f 940//940 1079//1079 944//944 +f 944//944 1079//1079 977//977 +f 977//977 969//969 975//975 +f 975//975 969//969 972//972 +f 975//975 972//972 1087//1087 +f 1087//1087 972//972 1080//1080 +f 1086//1086 1080//1080 1083//1083 +f 1086//1086 1083//1083 1078//1078 +f 1078//1078 1083//1083 1085//1085 +f 1078//1078 1085//1085 936//936 +f 936//936 1085//1085 1088//1088 +f 936//936 1088//1088 483//483 +f 483//483 1088//1088 448//448 +f 1089//1089 1077//1077 1076//1076 +f 1076//1076 1077//1077 1074//1074 +f 1074//1074 488//488 1075//1075 +f 1075//1075 935//935 1076//1076 +f 1076//1076 935//935 1090//1090 +f 1076//1076 1090//1090 1091//1091 +f 1076//1076 1091//1091 1089//1089 +f 1077//1077 1089//1089 1080//1080 +f 1074//1074 485//485 488//488 +f 1025//1025 1027//1027 1090//1090 +f 1091//1091 982//982 981//981 +f 1091//1091 981//981 1089//1089 +f 1089//1089 981//981 979//979 +f 1089//1089 979//979 1080//1080 +f 1080//1080 979//979 1087//1087 +f 1087//1087 979//979 978//978 +f 1087//1087 978//978 975//975 +f 975//975 978//978 976//976 +f 959//959 957//957 1036//1036 +f 1036//1036 957//957 1035//1035 +f 1035//1035 957//957 1021//1021 +f 1035//1035 1021//1021 1024//1024 +f 1034//1034 1024//1024 1019//1019 +f 1034//1034 1019//1019 1023//1023 +f 1022//1022 1010//1010 1073//1073 +f 1073//1073 1010//1010 1009//1009 +f 1028//1028 1009//1009 1029//1029 +f 935//935 1025//1025 1090//1090 +f 488//488 489//489 1075//1075 +f 1075//1075 489//489 935//935 +f 1091//1091 1090//1090 1027//1027 +f 1091//1091 1027//1027 982//982 +f 982//982 1027//1027 1029//1029 +f 982//982 1029//1029 983//983 +f 983//983 1029//1029 1003//1003 +f 1003//1003 1029//1029 1009//1009 +f 1002//1002 1009//1009 1010//1010 +f 1002//1002 1010//1010 1000//1000 +f 1000//1000 1011//1011 998//998 +f 998//998 1012//1012 995//995 +f 996//996 995//995 1014//1014 +f 942//942 941//941 973//973 +f 974//974 970//970 969//969 +f 972//972 971//971 1081//1081 +f 1082//1082 1081//1081 1092//1092 +f 1088//1088 1085//1085 1093//1093 +f 1093//1093 1085//1085 1084//1084 +f 1088//1088 1093//1093 449//449 +f 1088//1088 449//449 448//448 +f 1094//1094 1092//1092 1095//1095 +f 1096//1096 1097//1097 1098//1098 +f 1098//1098 1097//1097 1099//1099 +f 1098//1098 1099//1099 1100//1100 +f 1098//1098 1100//1100 1101//1101 +f 974//974 973//973 1099//1099 +f 974//974 1099//1099 1097//1097 +f 1102//1102 971//971 970//970 +f 1102//1102 970//970 974//974 +f 1102//1102 974//974 1097//1097 +f 973//973 941//941 1100//1100 +f 973//973 1100//1100 1099//1099 +f 1097//1097 1096//1096 1102//1102 +f 971//971 1102//1102 1103//1103 +f 971//971 1103//1103 1081//1081 +f 1081//1081 1103//1103 1095//1095 +f 1081//1081 1095//1095 1092//1092 +f 1082//1082 1092//1092 1094//1094 +f 1082//1082 1094//1094 1083//1083 +f 1083//1083 1094//1094 1104//1104 +f 1083//1083 1104//1104 1084//1084 +f 1084//1084 1104//1104 1093//1093 +f 1093//1093 1104//1104 1105//1105 +f 1093//1093 1105//1105 449//449 +f 449//449 1105//1105 481//481 +f 731//731 763//763 764//764 +f 731//731 764//764 730//730 +f 743//743 744//744 474//474 +f 730//730 766//766 164//164 +f 730//730 164//164 754//754 +f 1106//1106 1107//1107 737//737 +f 737//737 1107//1107 1108//1107 +f 737//737 1108//1107 1109//1107 +f 737//737 1109//1107 736//736 +f 736//736 1109//1107 1110//1108 +f 736//736 1110//1108 1111//1107 +f 127//127 394//394 751//751 +f 751//751 394//394 750//750 +f 750//750 394//394 378//378 +f 750//750 378//378 359//359 +f 752//752 121//121 751//751 +f 730//730 764//764 766//766 +f 731//731 761//761 763//763 +f 738//738 1112//1109 737//737 +f 737//737 1112//1109 1113//1107 +f 737//737 1113//1107 1106//1106 +f 1114//1110 1115//1110 738//738 +f 170//170 121//121 752//752 +f 738//738 1115//1110 1116//1111 +f 738//738 1116//1111 1117//1107 +f 738//738 1117//1107 1112//1109 +f 742//742 743//743 480//480 +f 121//121 125//125 751//751 +f 751//751 125//125 127//127 +f 731//731 759//759 761//761 +f 757//757 732//732 755//755 +f 739//739 1098//1098 1101//1101 +f 739//739 1101//1101 738//738 +f 738//738 1101//1101 1114//1110 +f 753//753 119//119 752//752 +f 752//752 119//119 170//170 +f 116//116 119//119 753//753 +f 754//754 164//164 117//117 +f 732//732 757//757 731//731 +f 731//731 757//757 759//759 +f 755//755 732//732 777//777 +f 777//777 732//732 733//733 +f 777//777 733//733 778//778 +f 733//733 1118//1112 778//778 +f 745//745 451//451 744//744 +f 1096//1096 1098//1098 739//739 +f 1105//1105 1104//1104 742//742 +f 744//744 451//451 474//474 +f 750//750 359//359 358//358 +f 750//750 358//358 749//749 +f 749//749 358//358 128//128 +f 754//754 117//117 116//116 +f 754//754 116//116 753//753 +f 734//734 1119//1107 733//733 +f 733//733 1119//1107 1120//1108 +f 733//733 1120//1108 1121//1107 +f 733//733 1121//1107 1118//1112 +f 734//734 1122//1113 1123//1107 +f 734//734 1123//1107 1119//1107 +f 734//734 1124//1108 1122//1113 +f 1111//1107 1125//1114 736//736 +f 736//736 1125//1114 1126//1115 +f 736//736 1126//1115 1127//1107 +f 740//740 1102//1102 739//739 +f 739//739 1102//1102 1096//1096 +f 745//745 452//452 451//451 +f 1128//1107 1129//1116 734//734 +f 734//734 1129//1116 1124//1108 +f 1128//1107 734//734 1130//1107 +f 1130//1107 734//734 735//735 +f 1130//1107 735//735 1131//1107 +f 1131//1107 735//735 1132//1117 +f 1132//1117 735//735 1133//1107 +f 743//743 477//477 480//480 +f 743//743 474//474 477//477 +f 1127//1107 1134//1107 736//736 +f 736//736 1134//1107 1135//1116 +f 736//736 1135//1116 735//735 +f 735//735 1135//1116 1133//1107 +f 480//480 481//481 742//742 +f 746//746 706//706 745//745 +f 745//745 706//706 452//452 +f 404//404 472//472 746//746 +f 404//404 746//746 747//747 +f 404//404 747//747 678//678 +f 740//740 1103//1103 1102//1102 +f 1094//1094 741//741 742//742 +f 742//742 1104//1104 1094//1094 +f 746//746 472//472 706//706 +f 741//741 1095//1095 740//740 +f 740//740 1095//1095 1103//1103 +f 481//481 1105//1105 742//742 +f 747//747 679//679 678//678 +f 749//749 128//128 748//748 +f 748//748 128//128 130//130 +f 748//748 130//130 471//471 +f 741//741 1094//1094 1095//1095 +f 748//748 680//680 747//747 +f 747//747 680//680 679//679 +f 748//748 471//471 680//680 +f 922//922 923//923 1136//1118 +f 1124//1119 1128//1120 1137//1121 +f 1138//1122 1131//1123 1139//1124 +f 1133//1125 1134//1126 1140//1127 +f 1141//1128 1126//1129 1142//1130 +f 1113//1131 1117//1132 1143//1133 +f 1100//1100 1115//1134 1101//1101 +f 1107//1135 1113//1131 1144//1136 +f 1126//1129 1111//1137 1145//1138 +f 1122//1139 1146//1140 1147//1141 +f 776//776 1121//1142 1148//1143 +f 1121//1142 776//776 778//778 +f 1148//1143 775//775 776//776 +f 1149//1144 805//805 1148//1143 +f 1148//1143 805//805 775//775 +f 1150//1145 805//805 1149//1144 +f 804//804 1150//1145 1151//1146 +f 1150//1145 804//804 805//805 +f 1152//1147 801//801 1151//1146 +f 1151//1146 801//801 804//804 +f 800//800 801//801 1152//1147 +f 1153//1148 800//800 1152//1147 +f 1153//1148 797//797 800//800 +f 1154//1149 797//797 1153//1148 +f 1155//1150 795//795 1154//1149 +f 1154//1149 795//795 797//797 +f 857//857 1155//1150 1156//1151 +f 857//857 1156//1151 858//858 +f 1155//1150 857//857 795//795 +f 858//858 1156//1151 1157//1152 +f 1158//1153 864//864 1157//1152 +f 1157//1152 864//864 858//858 +f 864//864 1158//1153 865//865 +f 1159//1154 879//879 1158//1153 +f 1158//1153 879//879 865//865 +f 1160//1155 878//878 1159//1154 +f 1159//1154 878//878 879//879 +f 1160//1155 877//877 878//878 +f 876//876 877//877 1161//1156 +f 876//876 1161//1156 1162//1157 +f 876//876 1162//1157 793//793 +f 794//794 793//793 1162//1157 +f 1163//1158 792//792 794//794 +f 792//792 1164//1159 790//790 +f 1164//1159 792//792 1163//1158 +f 1165//1160 790//790 1164//1159 +f 788//788 790//790 1165//1160 +f 788//788 1165//1160 1166//1161 +f 1167//1162 786//786 1166//1161 +f 1166//1161 786//786 788//788 +f 1168//1163 784//784 1167//1162 +f 1167//1162 784//784 786//786 +f 785//785 784//784 1168//1163 +f 1169//1164 931//931 1168//1163 +f 1168//1163 931//931 785//785 +f 1169//1164 924//924 931//931 +f 1170//1165 930//930 932//932 +f 1171//1166 927//927 929//929 +f 927//927 1172//1167 925//925 +f 937//937 925//925 1172//1167 +f 1173//1168 938//938 1174//1169 +f 1174//1169 938//938 1172//1167 +f 1172//1167 938//938 937//937 +f 938//938 1173//1168 959//959 +f 1175//1170 959//959 1173//1168 +f 959//959 1175//1170 957//957 +f 957//957 1175//1170 1176//1171 +f 1177//1172 955//955 1176//1171 +f 1176//1171 955//955 957//957 +f 955//955 1177//1172 1014//1014 +f 1178//1173 1014//1014 1177//1172 +f 1014//1014 1178//1173 996//996 +f 1179//1174 996//996 1178//1173 +f 996//996 1179//1174 1001//1001 +f 1180//1175 1001//1001 1179//1174 +f 1001//1001 1180//1175 1181//1176 +f 1001//1001 1181//1176 989//989 +f 1181//1176 1004//1004 989//989 +f 1004//1004 1181//1176 1182//1177 +f 1182//1177 1005//1005 1004//1004 +f 1005//1005 1182//1177 1006//1006 +f 1006//1006 1182//1177 1183//1178 +f 1184//1179 1007//1007 1183//1178 +f 1183//1178 1007//1007 1006//1006 +f 1007//1007 1184//1179 1008//1008 +f 1008//1008 1184//1179 1185//1180 +f 1185//1180 953//953 1008//1008 +f 1185//1180 951//951 953//953 +f 950//950 951//951 1186//1181 +f 948//948 950//950 1186//1181 +f 948//948 1186//1181 1187//1182 +f 1187//1182 945//945 948//948 +f 1188//1183 940//940 943//943 +f 940//940 1188//1183 1189//1184 +f 1189//1184 941//941 940//940 +f 1190//1185 941//941 1189//1184 +f 1115//1134 1100//1100 1190//1185 +f 1190//1185 1100//1100 941//941 +f 1117//1132 1115//1134 1143//1133 +f 1143//1133 1115//1134 1191//1186 +f 1191//1186 1115//1134 1190//1185 +f 1191//1186 1190//1185 1192//1187 +f 1192//1187 1190//1185 1189//1184 +f 1192//1187 1189//1184 1193//1188 +f 1193//1188 1189//1184 1188//1183 +f 1193//1188 1188//1183 1194//1189 +f 1194//1189 1188//1183 943//943 +f 1144//1136 1113//1131 1143//1133 +f 1143//1133 1191//1186 1195//1190 +f 1195//1190 1191//1186 1192//1187 +f 1195//1190 1192//1187 1196//1191 +f 1196//1191 1192//1187 1193//1188 +f 1196//1191 1193//1188 1197//1192 +f 1197//1192 1193//1188 1194//1189 +f 1194//1189 943//943 945//945 +f 1198//1193 1107//1135 1144//1136 +f 1144//1136 1143//1133 1199//1194 +f 1199//1194 1143//1133 1195//1190 +f 1199//1194 1195//1190 1200//1195 +f 1200//1195 1195//1190 1201//1196 +f 1201//1196 1195//1190 1196//1191 +f 1201//1196 1196//1191 1202//1197 +f 1202//1197 1196//1191 1197//1192 +f 1197//1192 1194//1189 1187//1182 +f 1187//1182 1194//1189 945//945 +f 1203//1198 1204//1199 1205//1200 +f 1205//1200 1204//1199 1206//1201 +f 1205//1200 1206//1201 1207//1202 +f 1207//1202 1206//1201 1208//1203 +f 1207//1202 1208//1203 1209//1204 +f 1210//1205 1211//1206 1212//1207 +f 1210//1205 1212//1207 1213//1208 +f 1213//1208 1212//1207 1214//1209 +f 1213//1208 1214//1209 1215//1210 +f 1215//1210 1214//1209 1216//1211 +f 1215//1210 1216//1211 1217//1212 +f 1217//1212 1216//1211 1218//1213 +f 1217//1212 1218//1213 1219//1214 +f 1219//1214 1218//1213 1220//1215 +f 1219//1214 1220//1215 1221//1216 +f 1221//1216 1220//1215 1222//1217 +f 1221//1216 1222//1217 1223//1218 +f 1223//1218 1222//1217 1224//1219 +f 1223//1218 1224//1219 1225//1220 +f 1225//1220 1224//1219 1226//1221 +f 1225//1220 1226//1221 1227//1222 +f 1227//1222 1226//1221 1228//1223 +f 1227//1222 1228//1223 1229//1224 +f 932//932 1204//1199 1203//1198 +f 1170//1165 1203//1198 1230//1225 +f 1230//1225 1203//1198 1205//1200 +f 1230//1225 1205//1200 1231//1226 +f 1231//1226 1205//1200 1207//1202 +f 1231//1226 1207//1202 1232//1227 +f 1232//1227 1207//1202 1209//1204 +f 1232//1227 1209//1204 1233//1228 +f 1233//1228 1209//1204 1234//1229 +f 1233//1228 1234//1229 1235//1230 +f 1235//1230 1234//1229 1236//1231 +f 1235//1230 1236//1231 1237//1232 +f 1237//1232 1236//1231 1238//1233 +f 1237//1232 1238//1233 1239//1234 +f 1239//1234 1238//1233 1240//1235 +f 1239//1234 1240//1235 1241//1236 +f 1241//1236 1240//1235 1242//1237 +f 1241//1236 1242//1237 1243//1238 +f 1243//1238 1242//1237 1211//1206 +f 1243//1238 1211//1206 1244//1239 +f 1244//1239 1211//1206 1210//1205 +f 1244//1239 1210//1205 1245//1240 +f 1245//1240 1210//1205 1213//1208 +f 1245//1240 1213//1208 1246//1241 +f 1246//1241 1213//1208 1215//1210 +f 1246//1241 1215//1210 1247//1242 +f 1247//1242 1215//1210 1217//1212 +f 1247//1242 1217//1212 1219//1214 +f 1248//1243 1225//1220 1227//1222 +f 1248//1243 1227//1222 1249//1244 +f 1249//1244 1227//1222 1229//1224 +f 1250//1245 930//930 1170//1165 +f 1250//1245 1170//1165 1251//1246 +f 932//932 1203//1198 1170//1165 +f 1251//1246 1170//1165 1230//1225 +f 1251//1246 1230//1225 1252//1247 +f 1252//1247 1230//1225 1231//1226 +f 1252//1247 1231//1226 1253//1248 +f 1253//1248 1231//1226 1232//1227 +f 1253//1248 1232//1227 1233//1228 +f 1254//1249 1239//1234 1241//1236 +f 1254//1249 1241//1236 1255//1250 +f 1255//1250 1241//1236 1243//1238 +f 1255//1250 1243//1238 1256//1251 +f 1256//1251 1243//1238 1244//1239 +f 1256//1251 1244//1239 1257//1252 +f 1257//1252 1244//1239 1245//1240 +f 1257//1252 1245//1240 1258//1253 +f 1258//1253 1245//1240 1246//1241 +f 1258//1253 1246//1241 1259//1254 +f 1259//1254 1246//1241 1247//1242 +f 1259//1254 1247//1242 1260//1255 +f 1260//1255 1247//1242 1219//1214 +f 1260//1255 1219//1214 1261//1256 +f 1261//1256 1219//1214 1221//1216 +f 1261//1256 1221//1216 1262//1257 +f 1262//1257 1221//1216 1223//1218 +f 1262//1257 1223//1218 1263//1258 +f 1263//1258 1223//1218 1225//1220 +f 1263//1258 1225//1220 1264//1259 +f 1264//1259 1225//1220 1248//1243 +f 1264//1259 1248//1243 1265//1260 +f 1265//1260 1248//1243 1249//1244 +f 1249//1244 1229//1224 1266//1261 +f 929//929 930//930 1250//1245 +f 1267//1262 1251//1246 1252//1247 +f 1267//1262 1252//1247 1268//1263 +f 1268//1263 1252//1247 1253//1248 +f 1268//1263 1253//1248 1269//1264 +f 1269//1264 1253//1248 1233//1228 +f 1269//1264 1233//1228 1270//1265 +f 1270//1265 1233//1228 1235//1230 +f 1270//1265 1235//1230 1271//1266 +f 1271//1266 1235//1230 1237//1232 +f 1271//1266 1237//1232 1272//1267 +f 1272//1267 1237//1232 1239//1234 +f 1272//1267 1239//1234 1273//1268 +f 1273//1268 1239//1234 1254//1249 +f 1273//1268 1254//1249 1274//1269 +f 1274//1269 1254//1249 1255//1250 +f 1274//1269 1255//1250 1275//1270 +f 1275//1270 1255//1250 1276//1271 +f 1276//1271 1255//1250 1256//1251 +f 1276//1271 1256//1251 1277//1272 +f 1277//1272 1256//1251 1257//1252 +f 1277//1272 1257//1252 1278//1273 +f 1278//1273 1257//1252 1258//1253 +f 1278//1273 1258//1253 1279//1274 +f 1279//1274 1258//1253 1259//1254 +f 1279//1274 1259//1254 1260//1255 +f 1280//1275 1263//1258 1264//1259 +f 1280//1275 1264//1259 1281//1276 +f 1281//1276 1264//1259 1265//1260 +f 1265//1260 1249//1244 1282//1277 +f 1282//1277 1249//1244 1266//1261 +f 1282//1277 1266//1261 1283//1278 +f 1283//1278 1266//1261 1284//1279 +f 1284//1279 1285//1280 1145//1138 +f 1145//1138 1285//1280 1142//1130 +f 1142//1130 1140//1127 1141//1128 +f 1141//1128 1140//1127 1134//1126 +f 1286//1281 929//929 1250//1245 +f 1286//1281 1250//1245 1287//1282 +f 1287//1282 1250//1245 1251//1246 +f 1287//1282 1251//1246 1267//1262 +f 1288//1283 1267//1262 1268//1263 +f 1288//1283 1268//1263 1289//1284 +f 1289//1284 1268//1263 1269//1264 +f 1289//1284 1269//1264 1290//1285 +f 1290//1285 1269//1264 1270//1265 +f 1290//1285 1270//1265 1291//1286 +f 1291//1286 1270//1265 1271//1266 +f 1291//1286 1271//1266 1292//1287 +f 1292//1287 1271//1266 1272//1267 +f 1292//1287 1272//1267 1293//1288 +f 1293//1288 1272//1267 1273//1268 +f 1293//1288 1273//1268 1294//1289 +f 1294//1289 1273//1268 1274//1269 +f 1294//1289 1274//1269 1275//1270 +f 1295//1290 1275//1270 1276//1271 +f 1295//1290 1276//1271 1296//1291 +f 1296//1291 1276//1271 1277//1272 +f 1296//1291 1277//1272 1297//1292 +f 1297//1292 1277//1272 1278//1273 +f 1297//1292 1278//1273 1298//1293 +f 1298//1293 1278//1273 1279//1274 +f 1298//1293 1279//1274 1260//1255 +f 1298//1293 1260//1255 1299//1294 +f 1299//1294 1260//1255 1261//1256 +f 1299//1294 1261//1256 1300//1295 +f 1300//1295 1261//1256 1262//1257 +f 1300//1295 1262//1257 1301//1296 +f 1301//1296 1262//1257 1263//1258 +f 1301//1296 1263//1258 1302//1297 +f 1302//1297 1263//1258 1280//1275 +f 1302//1297 1280//1275 1303//1298 +f 1303//1298 1280//1275 1281//1276 +f 1281//1276 1265//1260 1304//1299 +f 1304//1299 1265//1260 1282//1277 +f 1304//1299 1282//1277 1305//1300 +f 1305//1300 1282//1277 1283//1278 +f 1283//1278 1284//1279 1306//1301 +f 1306//1301 1284//1279 1145//1138 +f 1145//1138 1142//1130 1126//1129 +f 1145//1138 1111//1137 1109//1302 +f 1145//1138 1109//1302 1306//1301 +f 1306//1301 1109//1302 1198//1193 +f 1306//1301 1198//1193 1283//1278 +f 1283//1278 1198//1193 1305//1300 +f 1305//1300 1199//1194 1304//1299 +f 1304//1299 1199//1194 1307//1303 +f 1304//1299 1307//1303 1281//1276 +f 1281//1276 1307//1303 1303//1298 +f 1303//1298 1202//1197 1302//1297 +f 1302//1297 1202//1197 1308//1304 +f 1302//1297 1308//1304 1301//1296 +f 1298//1293 1299//1294 1309//1305 +f 1298//1293 1309//1305 1297//1292 +f 1297//1292 1309//1305 1310//1306 +f 1297//1292 1310//1306 1296//1291 +f 1296//1291 1310//1306 1311//1307 +f 1296//1291 1311//1307 1295//1290 +f 1295//1290 1311//1307 1312//1308 +f 1295//1290 1312//1308 1275//1270 +f 1275//1270 1312//1308 1313//1309 +f 1275//1270 1313//1309 1294//1289 +f 1293//1288 1294//1289 1314//1310 +f 1293//1288 1314//1310 1292//1287 +f 1292//1287 1314//1310 1315//1311 +f 1292//1287 1315//1311 1291//1286 +f 1290//1285 1291//1286 1316//1312 +f 1290//1285 1316//1312 1289//1284 +f 1267//1262 1288//1283 1174//1169 +f 1267//1262 1174//1169 1287//1282 +f 1171//1166 1172//1167 927//927 +f 1109//1302 1107//1135 1198//1193 +f 1198//1193 1144//1136 1305//1300 +f 1305//1300 1144//1136 1199//1194 +f 1199//1194 1200//1195 1307//1303 +f 1307//1303 1200//1195 1201//1196 +f 1307//1303 1201//1196 1303//1298 +f 1303//1298 1201//1196 1202//1197 +f 1202//1197 1197//1192 1308//1304 +f 1308//1304 1197//1192 1187//1182 +f 1308//1304 1187//1182 1301//1296 +f 1301//1296 1187//1182 1186//1181 +f 1301//1296 1186//1181 1300//1295 +f 1300//1295 1186//1181 1299//1294 +f 1299//1294 1186//1181 951//951 +f 1299//1294 951//951 1309//1305 +f 1309//1305 951//951 1185//1180 +f 1309//1305 1185//1180 1310//1306 +f 1310//1306 1185//1180 1184//1179 +f 1310//1306 1184//1179 1311//1307 +f 1311//1307 1184//1179 1183//1178 +f 1311//1307 1183//1178 1312//1308 +f 1312//1308 1183//1178 1182//1177 +f 1312//1308 1182//1177 1313//1309 +f 1313//1309 1182//1177 1181//1176 +f 1313//1309 1181//1176 1294//1289 +f 1294//1289 1181//1176 1180//1175 +f 1294//1289 1180//1175 1314//1310 +f 1314//1310 1180//1175 1179//1174 +f 1314//1310 1179//1174 1315//1311 +f 1315//1311 1179//1174 1178//1173 +f 1315//1311 1178//1173 1291//1286 +f 1291//1286 1178//1173 1177//1172 +f 1291//1286 1177//1172 1316//1312 +f 1316//1312 1177//1172 1176//1171 +f 1316//1312 1176//1171 1289//1284 +f 1289//1284 1176//1171 1175//1170 +f 1289//1284 1175//1170 1288//1283 +f 1288//1283 1175//1170 1173//1168 +f 1288//1283 1173//1168 1174//1169 +f 1174//1169 1172//1167 1287//1282 +f 1287//1282 1172//1167 1171//1166 +f 1287//1282 1171//1166 1286//1281 +f 1286//1281 1171//1166 929//929 +f 1168//1163 1317//1313 1169//1164 +f 1169//1164 1317//1313 1318//1314 +f 1136//1118 923//923 1319//1315 +f 1136//1118 1319//1315 1320//1316 +f 1321//1317 922//922 1136//1118 +f 1318//1314 1317//1313 1322//1318 +f 1322//1318 1317//1313 1323//1319 +f 1322//1318 1323//1319 1324//1320 +f 1324//1320 1323//1319 1325//1321 +f 1324//1320 1325//1321 1326//1322 +f 1326//1322 1325//1321 1327//1323 +f 1326//1322 1327//1323 1328//1324 +f 1329//1325 1328//1324 1162//1157 +f 1329//1325 1162//1157 1330//1326 +f 1329//1325 1330//1326 1331//1327 +f 1331//1327 1330//1326 1332//1328 +f 1331//1327 1332//1328 1333//1329 +f 1333//1329 1332//1328 1334//1330 +f 1333//1329 1334//1330 1335//1331 +f 1335//1331 1334//1330 1336//1332 +f 1335//1331 1336//1332 1337//1333 +f 1338//1334 1337//1333 1156//1151 +f 1338//1334 1156//1151 1339//1335 +f 1339//1335 1156//1151 1340//1336 +f 1339//1335 1340//1336 1155//1150 +f 1339//1335 1155//1150 1341//1337 +f 1341//1337 1155//1150 1154//1149 +f 1341//1337 1154//1149 1342//1338 +f 1342//1338 1154//1149 1343//1339 +f 1342//1338 1343//1339 1344//1340 +f 1344//1340 1343//1339 1345//1341 +f 1346//1342 1345//1341 1347//1343 +f 1346//1342 1347//1343 1348//1344 +f 1348//1344 1347//1343 1349//1345 +f 1348//1344 1349//1345 1350//1346 +f 1350//1346 1349//1345 1351//1347 +f 1350//1346 1351//1347 1147//1141 +f 1147//1141 1351//1347 1352//1348 +f 1352//1348 1119//1349 1122//1139 +f 1121//1142 1119//1349 1148//1143 +f 1148//1143 1119//1349 1352//1348 +f 1148//1143 1352//1348 1351//1347 +f 1148//1143 1351//1347 1149//1144 +f 1149//1144 1351//1347 1349//1345 +f 1149//1144 1349//1345 1150//1145 +f 1150//1145 1349//1345 1151//1146 +f 1151//1146 1349//1345 1347//1343 +f 1151//1146 1347//1343 1152//1147 +f 1152//1147 1347//1343 1345//1341 +f 1152//1147 1345//1341 1153//1148 +f 1153//1148 1345//1341 1343//1339 +f 1153//1148 1343//1339 1154//1149 +f 1155//1150 1340//1336 1156//1151 +f 1157//1152 1156//1151 1337//1333 +f 1157//1152 1337//1333 1158//1153 +f 1158//1153 1337//1333 1336//1332 +f 1158//1153 1336//1332 1159//1154 +f 1159//1154 1336//1332 1334//1330 +f 1159//1154 1334//1330 1160//1155 +f 1160//1155 1334//1330 1332//1328 +f 1160//1155 1332//1328 877//877 +f 877//877 1332//1328 1161//1156 +f 1161//1156 1332//1328 1330//1326 +f 1161//1156 1330//1326 1162//1157 +f 794//794 1162//1157 1328//1324 +f 794//794 1328//1324 1163//1158 +f 1163//1158 1328//1324 1164//1159 +f 1164//1159 1328//1324 1327//1323 +f 1164//1159 1327//1323 1165//1160 +f 1165//1160 1327//1323 1325//1321 +f 1165//1160 1325//1321 1166//1161 +f 1166//1161 1325//1321 1323//1319 +f 1166//1161 1323//1319 1167//1162 +f 1167//1162 1323//1319 1317//1313 +f 1167//1162 1317//1313 1168//1163 +f 923//923 924//924 1319//1315 +f 1320//1316 1353//1350 1354//1351 +f 1354//1351 1353//1350 1355//1352 +f 1354//1351 1355//1352 1356//1353 +f 1356//1353 1355//1352 1357//1354 +f 1356//1353 1357//1354 1358//1355 +f 1358//1355 1357//1354 1359//1356 +f 1358//1355 1359//1356 1360//1357 +f 1360//1357 1359//1356 1361//1358 +f 1360//1357 1361//1358 1362//1359 +f 1362//1359 1361//1358 1363//1360 +f 1362//1359 1363//1360 1364//1361 +f 1364//1361 1363//1360 1365//1362 +f 1364//1361 1365//1362 1366//1363 +f 1367//1364 1366//1363 1368//1365 +f 1367//1364 1368//1365 1369//1366 +f 1369//1366 1368//1365 1370//1367 +f 1369//1366 1370//1367 1371//1368 +f 1372//1369 1371//1368 1338//1334 +f 1372//1369 1338//1334 1373//1370 +f 1373//1370 1338//1334 1374//1371 +f 1373//1370 1374//1371 1375//1372 +f 1375//1372 1374//1371 1376//1373 +f 1376//1373 1374//1371 1341//1337 +f 1376//1373 1341//1337 1377//1374 +f 1377//1374 1341//1337 1342//1338 +f 1377//1374 1342//1338 1378//1375 +f 1378//1375 1342//1338 1344//1340 +f 1378//1375 1344//1340 1379//1376 +f 1379//1376 1344//1340 1380//1377 +f 1379//1376 1380//1377 1381//1378 +f 1381//1378 1380//1377 1382//1379 +f 1381//1378 1382//1379 1383//1380 +f 1383//1380 1382//1379 1384//1381 +f 1383//1380 1384//1381 1385//1382 +f 1385//1382 1384//1381 1386//1383 +f 1385//1382 1386//1383 1387//1384 +f 1387//1384 1386//1383 1139//1124 +f 1139//1124 1386//1383 1137//1121 +f 1137//1121 1147//1141 1124//1119 +f 1124//1119 1147//1141 1146//1140 +f 1321//1317 1136//1118 1388//1385 +f 1388//1385 1136//1118 1389//1386 +f 1388//1385 1389//1386 1390//1387 +f 1390//1387 1389//1386 1391//1388 +f 1390//1387 1391//1388 1392//1389 +f 1212//1207 1393//1390 1369//1366 +f 1212//1207 1369//1366 1394//1391 +f 1216//1211 1394//1391 1372//1369 +f 1216//1211 1372//1369 1218//1213 +f 1218//1213 1372//1369 1373//1370 +f 1218//1213 1373//1370 1220//1215 +f 1220//1215 1373//1370 1375//1372 +f 1220//1215 1375//1372 1222//1217 +f 1222//1217 1375//1372 1376//1373 +f 1222//1217 1376//1373 1224//1219 +f 1224//1219 1376//1373 1377//1374 +f 1224//1219 1377//1374 1226//1221 +f 1226//1221 1377//1374 1378//1375 +f 1226//1221 1378//1375 1395//1392 +f 1395//1392 1378//1375 1396//1393 +f 1395//1392 1396//1393 1397//1394 +f 1397//1394 1396//1393 1398//1395 +f 1397//1394 1398//1395 1399//1396 +f 1399//1396 1398//1395 1400//1397 +f 1399//1396 1400//1397 1285//1280 +f 1285//1280 1400//1397 1401//1398 +f 1401//1398 1385//1382 1140//1127 +f 1140//1127 1385//1382 1387//1384 +f 1140//1127 1387//1384 1402//1399 +f 1402//1399 1387//1384 1139//1124 +f 1402//1399 1139//1124 1133//1125 +f 1133//1125 1139//1124 1131//1123 +f 1128//1120 1138//1122 1137//1121 +f 1137//1121 1138//1122 1139//1124 +f 1385//1382 1401//1398 1383//1380 +f 1383//1380 1401//1398 1400//1397 +f 1383//1380 1400//1397 1381//1378 +f 1381//1378 1400//1397 1398//1395 +f 1381//1378 1398//1395 1379//1376 +f 1379//1376 1398//1395 1396//1393 +f 1379//1376 1396//1393 1378//1375 +f 1371//1368 1372//1369 1394//1391 +f 1371//1368 1394//1391 1369//1366 +f 1367//1364 1369//1366 1393//1390 +f 1367//1364 1393//1390 1403//1400 +f 1367//1364 1403//1400 1366//1363 +f 1366//1363 1403//1400 1404//1401 +f 1366//1363 1404//1401 1364//1361 +f 1364//1361 1404//1401 1405//1402 +f 1364//1361 1405//1402 1362//1359 +f 1362//1359 1405//1402 1406//1403 +f 1362//1359 1406//1403 1360//1357 +f 1360//1357 1406//1403 1407//1404 +f 1360//1357 1407//1404 1358//1355 +f 1358//1355 1407//1404 1392//1389 +f 1358//1355 1392//1389 1356//1353 +f 1356//1353 1392//1389 1391//1388 +f 1356//1353 1391//1388 1354//1351 +f 1354//1351 1391//1388 1389//1386 +f 1354//1351 1389//1386 1320//1316 +f 1320//1316 1389//1386 1136//1118 +f 1319//1315 924//924 1169//1164 +f 1319//1315 1169//1164 1320//1316 +f 1320//1316 1169//1164 1318//1314 +f 1320//1316 1318//1314 1353//1350 +f 1353//1350 1318//1314 1355//1352 +f 1355//1352 1318//1314 1322//1318 +f 1355//1352 1322//1318 1357//1354 +f 1357//1354 1322//1318 1324//1320 +f 1357//1354 1324//1320 1359//1356 +f 1359//1356 1324//1320 1326//1322 +f 1359//1356 1326//1322 1361//1358 +f 1361//1358 1326//1322 1328//1324 +f 1361//1358 1328//1324 1363//1360 +f 1363//1360 1328//1324 1329//1325 +f 1363//1360 1329//1325 1365//1362 +f 1365//1362 1329//1325 1331//1327 +f 1365//1362 1331//1327 1366//1363 +f 1366//1363 1331//1327 1368//1365 +f 1368//1365 1331//1327 1333//1329 +f 1368//1365 1333//1329 1370//1367 +f 1370//1367 1333//1329 1335//1331 +f 1370//1367 1335//1331 1371//1368 +f 1371//1368 1335//1331 1337//1333 +f 1371//1368 1337//1333 1338//1334 +f 1374//1371 1338//1334 1339//1335 +f 1374//1371 1339//1335 1341//1337 +f 1380//1377 1344//1340 1345//1341 +f 1380//1377 1345//1341 1382//1379 +f 1382//1379 1345//1341 1346//1342 +f 1382//1379 1346//1342 1384//1381 +f 1384//1381 1346//1342 1348//1344 +f 1384//1381 1348//1344 1386//1383 +f 1386//1383 1348//1344 1350//1346 +f 1386//1383 1350//1346 1137//1121 +f 1137//1121 1350//1346 1147//1141 +f 1147//1141 1352//1348 1122//1139 +f 932//932 922//922 1204//1199 +f 1204//1199 922//922 1321//1317 +f 1204//1199 1321//1317 1206//1201 +f 1206//1201 1321//1317 1388//1385 +f 1206//1201 1388//1385 1208//1203 +f 1208//1203 1388//1385 1390//1387 +f 1208//1203 1390//1387 1209//1204 +f 1209//1204 1390//1387 1392//1389 +f 1209//1204 1392//1389 1234//1229 +f 1234//1229 1392//1389 1407//1404 +f 1234//1229 1407//1404 1236//1231 +f 1236//1231 1407//1404 1406//1403 +f 1236//1231 1406//1403 1238//1233 +f 1238//1233 1406//1403 1405//1402 +f 1238//1233 1405//1402 1240//1235 +f 1240//1235 1405//1402 1404//1401 +f 1240//1235 1404//1401 1242//1237 +f 1242//1237 1404//1401 1403//1400 +f 1242//1237 1403//1400 1211//1206 +f 1211//1206 1403//1400 1393//1390 +f 1211//1206 1393//1390 1212//1207 +f 1214//1209 1212//1207 1394//1391 +f 1214//1209 1394//1391 1216//1211 +f 1228//1223 1226//1221 1395//1392 +f 1228//1223 1395//1392 1229//1224 +f 1229//1224 1395//1392 1397//1394 +f 1229//1224 1397//1394 1266//1261 +f 1266//1261 1397//1394 1399//1396 +f 1266//1261 1399//1396 1284//1279 +f 1284//1279 1399//1396 1285//1280 +f 1285//1280 1401//1398 1142//1130 +f 1142//1130 1401//1398 1140//1127 +f 1140//1127 1402//1399 1133//1125 diff --git a/data/kuka_iiwa/meshes/link_2.mtl b/data/kuka_iiwa/meshes/link_2.mtl new file mode 100644 index 000000000..70d3ba1da --- /dev/null +++ b/data/kuka_iiwa/meshes/link_2.mtl @@ -0,0 +1,10 @@ +# Blender MTL File: 'None' +# Material Count: 1 + +newmtl None +Ns 0 +Ka 0.000000 0.000000 0.000000 +Kd 0.8 0.8 0.8 +Ks 0.8 0.8 0.8 +d 1 +illum 2 diff --git a/data/kuka_iiwa/meshes/link_2.obj b/data/kuka_iiwa/meshes/link_2.obj new file mode 100644 index 000000000..928db7fe0 --- /dev/null +++ b/data/kuka_iiwa/meshes/link_2.obj @@ -0,0 +1,2948 @@ +# Blender v2.71 (sub 0) OBJ File: '' +# www.blender.org +mtllib link_2.mtl +o Link_2_Link_2.001 +v -0.016211 -0.018973 -0.010000 +v 0.017083 0.018973 -0.010000 +v 0.024339 0.008108 -0.010000 +v 0.025191 -0.004930 -0.010000 +v 0.019409 -0.016647 -0.010000 +v -0.011699 0.022132 -0.010000 +v -0.024512 -0.003834 -0.010000 +v -0.019887 0.014706 -0.010000 +v -0.021214 -0.012500 -0.010000 +v -0.001361 0.025021 -0.010000 +v 0.007305 0.024127 -0.010000 +v 0.010683 -0.022898 -0.010000 +v 0.002234 -0.025021 -0.010000 +v -0.006432 -0.024127 -0.010000 +v -0.023691 0.006869 -0.010000 +v -0.018877 0.194500 -0.016233 +v 0.018648 0.194501 0.017234 +v 0.023380 0.194500 0.010385 +v 0.025408 0.194500 0.002135 +v -0.024029 0.194500 -0.005885 +v 0.001478 0.194500 0.025266 +v -0.024515 0.194500 0.002444 +v -0.022308 0.194500 0.010844 +v -0.017101 0.194500 0.017916 +v -0.010196 0.194500 0.022831 +v 0.012538 0.194499 0.021996 +v 0.024656 0.194500 -0.006953 +v 0.014655 0.194500 -0.020643 +v 0.007049 0.194500 -0.024299 +v -0.001294 0.194500 -0.025012 +v -0.009904 0.194500 -0.022977 +v 0.020189 0.194500 -0.015509 +v -0.001361 -0.025021 0.000000 +v 0.007305 -0.024127 0.000000 +v 0.015143 -0.020323 0.000000 +v 0.021207 -0.014067 0.000000 +v 0.024765 -0.006115 0.000000 +v 0.025191 0.004930 0.000000 +v 0.019409 0.016647 0.000000 +v 0.010683 0.022898 0.000000 +v 0.002234 0.025021 0.000000 +v -0.006432 0.024127 -0.000000 +v -0.014270 0.020323 -0.000000 +v -0.020334 0.014067 0.000000 +v -0.024512 0.003834 0.000000 +v -0.023691 -0.006869 0.000000 +v -0.018537 -0.016647 0.000000 +v -0.009811 -0.022898 -0.000000 +v 0.025353 0.204500 -0.004376 +v 0.024592 0.204500 0.006742 +v 0.019426 0.204500 0.016672 +v 0.010545 0.204500 0.022953 +v 0.002163 0.204500 0.025021 +v -0.006400 0.204500 0.024130 +v -0.014179 0.204499 0.020382 +v -0.020253 0.204500 0.014180 +v -0.023860 0.204500 0.006236 +v -0.024527 0.204500 -0.002395 +v -0.021425 0.204500 -0.012568 +v -0.014117 0.204500 -0.020427 +v -0.006254 0.204500 -0.024174 +v 0.002391 0.204500 -0.025003 +v 0.010728 0.204500 -0.022871 +v 0.019604 0.204500 -0.016453 +v -0.055268 0.204497 0.039510 +v -0.049528 0.192162 0.047438 +v -0.042606 0.204494 0.053418 +v -0.041509 0.187459 0.055458 +v -0.047415 0.171751 0.053278 +v -0.041408 0.170784 0.059324 +v -0.058639 0.181567 0.036169 +v -0.061162 0.165145 0.034945 +v -0.054477 0.170303 0.045280 +v -0.064364 0.176764 0.023332 +v -0.065964 0.170151 0.015036 +v -0.067722 0.204495 -0.001983 +v -0.065856 0.163352 0.009890 +v -0.066791 0.204495 0.011135 +v -0.064234 0.157553 0.027042 +v -0.062656 0.204498 0.025879 +v 0.004173 0.182925 -0.065444 +v 0.000436 0.175669 -0.062597 +v -0.008822 0.179153 -0.063527 +v -0.057185 0.068681 0.013959 +v -0.057963 0.064058 0.008331 +v -0.063863 0.058821 0.011898 +v 0.000436 0.086309 0.003294 +v 0.000436 0.085860 0.002273 +v -0.009370 0.085233 0.002218 +v 0.000436 0.085804 0.002021 +v -0.039447 0.104801 0.004093 +v -0.032357 0.108473 0.000498 +v -0.040667 0.098077 0.007958 +v -0.076006 0.038318 0.000019 +v -0.074783 0.042019 0.015185 +v -0.070274 0.050730 0.016445 +v -0.001062 0.204502 -0.068198 +v 0.000516 0.190613 -0.067182 +v -0.009396 0.196453 -0.067146 +v -0.017332 0.204498 -0.065768 +v -0.034936 0.197081 -0.057811 +v -0.039915 0.204501 -0.054819 +v -0.028173 0.204500 -0.061872 +v -0.045916 0.196579 -0.049310 +v -0.049384 0.204500 -0.046437 +v -0.054028 0.191215 -0.039228 +v -0.059695 0.204499 -0.032428 +v -0.061375 0.195703 -0.027607 +v -0.065376 0.204497 -0.017545 +v -0.067020 0.189726 -0.004530 +v -0.065612 0.191804 -0.014261 +v -0.064205 0.125932 0.024791 +v -0.064502 0.129448 0.030475 +v -0.065557 0.098330 0.044581 +v -0.075174 0.039711 0.049372 +v -0.078701 0.024174 0.045069 +v -0.074045 0.036823 0.057465 +v -0.081890 0.015823 0.032118 +v -0.081885 0.008257 0.036386 +v -0.084074 0.006679 0.020065 +v -0.084505 -0.002890 0.017253 +v -0.084573 0.010031 0.000001 +v -0.085148 -0.003000 0.000000 +v -0.082479 0.020592 0.014094 +v -0.080737 0.027238 -0.000002 +v -0.051349 0.068247 0.002357 +v -0.043472 0.073454 0.000003 +v -0.058299 0.062312 0.000002 +v 0.000432 0.085712 -0.000007 +v -0.021008 0.082835 0.000013 +v -0.054216 0.175067 -0.032624 +v -0.061148 0.180278 -0.022686 +v -0.058680 0.166746 -0.020366 +v -0.064814 0.175440 -0.008862 +v -0.062447 0.133515 0.011974 +v -0.059746 0.133554 0.004021 +v -0.047902 0.182506 -0.043677 +v -0.064093 0.107941 0.028916 +v -0.060539 0.117847 0.014120 +v -0.062817 0.102913 0.024375 +v -0.052026 0.098215 0.011880 +v -0.056262 0.100781 0.014313 +v -0.050641 0.113690 0.003453 +v -0.056051 0.114797 0.007919 +v -0.054112 0.129839 -0.002936 +v -0.059776 0.099330 0.019062 +v -0.062376 0.074899 0.023491 +v -0.067224 0.067537 0.028893 +v -0.063115 0.080536 0.025363 +v -0.059288 0.074436 0.019591 +v -0.058075 0.081429 0.019813 +v -0.062164 0.066115 0.018692 +v -0.055195 0.074411 0.015891 +v -0.067203 0.060994 0.023276 +v -0.069572 0.064243 0.034538 +v -0.072137 0.051257 0.026027 +v -0.076818 0.038817 0.025762 +v -0.069387 0.067690 0.039983 +v -0.065984 0.079995 0.032258 +v -0.063920 0.091776 0.028553 +v -0.061435 0.087892 0.023129 +v -0.072238 0.055764 0.043715 +v -0.066804 0.083436 0.039452 +v -0.068732 0.069274 0.054222 +v -0.079586 0.027939 0.035418 +v 0.000436 0.120502 -0.011288 +v -0.019098 0.124552 -0.014505 +v 0.000436 0.125778 -0.016678 +v 0.000437 0.147079 -0.039581 +v -0.011157 0.151680 -0.043552 +v -0.047344 0.104483 0.006587 +v -0.047929 0.130650 -0.009842 +v -0.045882 0.118698 -0.002741 +v -0.051713 0.091052 0.014391 +v -0.056482 0.089463 0.017538 +v -0.016708 0.112507 -0.003719 +v 0.000436 0.114207 -0.005497 +v 0.000436 0.112524 -0.004009 +v -0.022915 0.101700 0.004041 +v 0.000437 0.108414 -0.000751 +v 0.000436 0.106929 0.000345 +v 0.000436 0.102719 0.002952 +v -0.022243 0.097466 0.005941 +v 0.000436 0.101052 0.003963 +v 0.000436 0.096930 0.005614 +v 0.000436 0.092912 0.006462 +v -0.015258 0.090216 0.006837 +v 0.000436 0.093909 0.006356 +v 0.000436 0.094720 0.006251 +v 0.000436 0.094791 0.006213 +v 0.000436 0.089791 0.006087 +v 0.000436 0.089137 0.005859 +v -0.008149 0.087676 0.005428 +v 0.000436 0.088699 0.005623 +v 0.000436 0.088216 0.005361 +v 0.000436 0.087504 0.004818 +v 0.000436 0.085674 0.001419 +v -0.028138 0.088690 0.008209 +v -0.016745 0.085834 0.005148 +v -0.021219 0.086971 0.006731 +v 0.000436 0.090153 0.006210 +v 0.000436 0.090938 0.006345 +v -0.028645 0.082540 0.005644 +v -0.028863 0.080929 0.003291 +v 0.000436 0.091375 0.006432 +v -0.031553 0.084010 0.007911 +v -0.018182 0.083915 0.002793 +v 0.000436 0.086836 0.004095 +v -0.027318 0.091762 0.007946 +v -0.036555 0.089452 0.009813 +v -0.043310 0.086984 0.011765 +v -0.042677 0.091752 0.010866 +v -0.040003 0.084034 0.010521 +v -0.052657 0.083476 0.015953 +v -0.048773 0.088372 0.013651 +v -0.048559 0.080255 0.013390 +v -0.048391 0.074024 0.009859 +v -0.038523 0.079521 0.007891 +v -0.037143 0.083259 0.009359 +v -0.045180 0.078329 0.010769 +v -0.040233 0.075997 0.004219 +v -0.050179 0.071354 0.008593 +v -0.032882 0.078758 0.000015 +v -0.069114 0.049833 0.000018 +v 0.000436 0.169565 -0.059175 +v 0.000436 0.164860 -0.055818 +v -0.009555 0.163023 -0.053904 +v 0.000436 0.161163 -0.052822 +v 0.000435 0.155935 -0.048401 +v 0.000436 0.147354 -0.039702 +v 0.000436 0.127769 -0.018719 +v 0.000436 0.163520 -0.054857 +v -0.030899 0.127913 -0.015875 +v -0.009053 0.187695 -0.066059 +v -0.022649 0.192199 -0.063226 +v -0.022563 0.182484 -0.061015 +v -0.040387 0.175509 -0.047827 +v -0.031343 0.172216 -0.052483 +v -0.040373 0.164505 -0.041603 +v -0.040451 0.186128 -0.051781 +v -0.031862 0.186786 -0.057680 +v -0.054086 0.162249 -0.025499 +v -0.047505 0.166288 -0.036137 +v -0.009161 0.172003 -0.060111 +v -0.022561 0.172985 -0.056959 +v -0.022232 0.161940 -0.049850 +v -0.036784 0.155289 -0.037678 +v -0.038158 0.126589 -0.012270 +v 0.041991 0.196664 0.054878 +v 0.042651 0.180276 0.056592 +v 0.050170 0.192060 0.047646 +v 0.052360 0.204499 0.044640 +v 0.042352 0.204501 0.054363 +v 0.060270 0.204494 0.032866 +v 0.055402 0.182630 0.042445 +v 0.055036 0.162037 0.048041 +v 0.060569 0.175140 0.035244 +v 0.048485 0.171262 0.053131 +v 0.067198 0.170642 0.007870 +v 0.068509 0.204498 0.003112 +v 0.066891 0.171064 0.014763 +v 0.065196 0.164433 0.024940 +v 0.065881 0.204497 0.018973 +v 0.063480 0.170374 0.029541 +v 0.010068 0.163793 -0.054582 +v 0.038600 0.088933 0.010092 +v 0.028162 0.096417 0.006849 +v 0.040384 0.096667 0.008453 +v 0.009389 0.090425 0.006487 +v 0.000436 0.091535 0.006438 +v 0.033457 0.105331 0.002691 +v 0.018073 0.103321 0.002877 +v 0.025138 0.112092 -0.002987 +v 0.050030 0.091890 0.013000 +v 0.047994 0.088576 0.012912 +v 0.009723 0.195404 -0.067170 +v 0.007675 0.085198 0.000014 +v 0.009948 0.085278 0.002255 +v 0.021745 0.082872 0.000009 +v 0.084122 0.011853 0.025328 +v 0.083917 0.005185 0.029778 +v 0.085604 -0.002339 0.013859 +v 0.081506 0.012768 0.041538 +v 0.079059 0.028697 0.044064 +v 0.075767 0.033133 0.056474 +v 0.065638 0.140987 0.021482 +v 0.067776 0.191167 -0.007065 +v 0.066785 0.204500 -0.016271 +v 0.059043 0.195909 -0.033819 +v 0.057782 0.204499 -0.036948 +v 0.064628 0.193049 -0.021180 +v 0.053289 0.196597 -0.042174 +v 0.046296 0.204500 -0.050446 +v 0.046404 0.197010 -0.049752 +v 0.036979 0.204495 -0.057451 +v 0.031375 0.204474 -0.060900 +v 0.023378 0.197065 -0.063828 +v 0.015214 0.204501 -0.066496 +v 0.063526 0.170941 -0.013577 +v 0.058865 0.183609 -0.030352 +v 0.058316 0.166873 -0.022964 +v 0.066154 0.176172 -0.006829 +v 0.055377 0.135148 -0.006102 +v 0.051058 0.166351 -0.033355 +v 0.060400 0.132991 0.003851 +v 0.061037 0.118325 0.012979 +v 0.053163 0.129682 -0.005057 +v 0.062765 0.103064 0.022459 +v 0.056970 0.114523 0.008106 +v 0.063643 0.131516 0.013764 +v 0.065748 0.110350 0.038928 +v 0.064976 0.107073 0.029143 +v 0.056496 0.095546 0.015326 +v 0.061291 0.084492 0.021865 +v 0.055324 0.089084 0.016399 +v 0.060732 0.080029 0.021354 +v 0.060615 0.090922 0.020627 +v 0.062951 0.073011 0.022294 +v 0.061746 0.068998 0.018703 +v 0.058449 0.076007 0.018513 +v 0.064803 0.074841 0.025608 +v 0.068588 0.068603 0.030906 +v 0.067122 0.064802 0.024649 +v 0.071394 0.049972 0.015398 +v 0.066846 0.055656 0.011912 +v 0.067810 0.059726 0.020942 +v 0.071697 0.055652 0.027723 +v 0.061304 0.065646 0.015444 +v 0.075789 0.041718 0.015987 +v 0.077906 0.038105 0.025043 +v 0.067122 0.086833 0.037527 +v 0.060401 0.100104 0.018432 +v 0.064578 0.090276 0.027504 +v 0.065634 0.079270 0.028468 +v 0.067967 0.082098 0.050700 +v 0.071602 0.057726 0.054882 +v 0.070487 0.067167 0.045297 +v 0.068610 0.074859 0.036660 +v 0.073811 0.053215 0.040774 +v 0.080094 0.029066 0.036683 +v 0.082907 0.022120 0.017000 +v 0.036724 0.113850 -0.003017 +v 0.044475 0.101668 0.006928 +v 0.049354 0.102547 0.008191 +v 0.047884 0.124415 -0.006072 +v 0.052174 0.110427 0.005537 +v 0.043568 0.116571 -0.002981 +v 0.014927 0.098246 0.005360 +v 0.000436 0.098476 0.005086 +v 0.024021 0.093054 0.007243 +v 0.019231 0.090176 0.007163 +v 0.009405 0.087618 0.005401 +v 0.000436 0.087709 0.004969 +v 0.000436 0.086535 0.003639 +v 0.000436 0.087274 0.004567 +v 0.000436 0.085988 0.002585 +v 0.000436 0.085514 0.000264 +v 0.022907 0.082953 0.002402 +v 0.020620 0.084438 0.004320 +v 0.021202 0.086433 0.006354 +v 0.030143 0.085677 0.007867 +v 0.028736 0.082339 0.005130 +v 0.038124 0.077627 0.004265 +v 0.031299 0.083035 0.006926 +v 0.030182 0.088273 0.008396 +v 0.045999 0.085389 0.012458 +v 0.056384 0.082517 0.017732 +v 0.052053 0.080852 0.015005 +v 0.052927 0.075771 0.013918 +v 0.040959 0.082759 0.010274 +v 0.048135 0.080720 0.012792 +v 0.045546 0.078303 0.010495 +v 0.046551 0.075109 0.008673 +v 0.040001 0.079501 0.008190 +v 0.045744 0.073210 0.004063 +v 0.052825 0.073250 0.012286 +v 0.054614 0.069359 0.010165 +v 0.061379 0.061431 0.008489 +v 0.072321 0.057721 0.034738 +v 0.081493 0.027610 0.000002 +v 0.076475 0.039131 0.000008 +v 0.070077 0.049717 0.000011 +v 0.057940 0.063494 0.000005 +v 0.054587 0.066986 0.005494 +v 0.044613 0.073324 0.000007 +v 0.033296 0.078946 0.000018 +v 0.085616 0.009266 -0.000000 +v 0.006824 0.174865 -0.061924 +v 0.000436 0.172833 -0.061008 +v 0.017003 0.150546 -0.041296 +v 0.022898 0.159854 -0.048324 +v 0.040198 0.165578 -0.043261 +v 0.029765 0.167224 -0.050708 +v 0.029707 0.176854 -0.056003 +v 0.016958 0.173600 -0.059431 +v 0.050661 0.182822 -0.041771 +v 0.041385 0.188836 -0.052544 +v 0.029710 0.186885 -0.059444 +v 0.016881 0.184951 -0.064009 +v 0.041296 0.178215 -0.049087 +v 0.019867 0.131638 -0.021782 +v 0.032152 0.153812 -0.039227 +v 0.041763 0.150818 -0.031105 +v 0.038514 0.129318 -0.014919 +v 0.029026 0.126877 -0.015585 +v 0.047522 -0.072597 0.000018 +v 0.057264 -0.064912 0.000001 +v 0.069022 -0.052041 0.000000 +v 0.082313 -0.025491 0.000015 +v 0.085579 -0.009117 0.000001 +v 0.035117 -0.078861 0.000001 +v 0.078408 -0.035871 0.000003 +v -0.071961 -0.046257 0.000001 +v -0.061295 -0.060226 0.000001 +v -0.021156 -0.083209 0.000000 +v -0.044948 -0.073762 0.000000 +v 0.019583 -0.083546 0.000001 +v 0.003393 -0.085657 -0.000000 +v -0.082463 -0.021607 0.000002 +v -0.077988 -0.034600 0.000002 +v -0.030350 0.204498 0.061259 +v -0.011277 0.204499 0.067172 +v 0.000957 0.204500 0.068023 +v 0.028826 0.204500 0.062255 +v 0.012852 0.204499 0.066988 +v -0.072205 -0.004896 0.071369 +v -0.074903 0.012239 0.064930 +v -0.074612 -0.009288 0.063171 +v -0.046864 -0.071907 0.028332 +v -0.047162 -0.070646 0.042961 +v -0.055553 -0.064691 0.030262 +v -0.059741 -0.057166 0.048279 +v -0.061790 -0.057631 0.032157 +v -0.073109 -0.038774 0.037212 +v -0.069968 -0.045767 0.035338 +v -0.070487 -0.038441 0.050817 +v -0.078193 -0.021274 0.041903 +v -0.075418 -0.020528 0.054388 +v -0.079704 -0.010199 0.044869 +v -0.071864 0.033907 0.068935 +v -0.069243 0.059658 0.063587 +v -0.077365 0.022861 0.053729 +v -0.064500 0.077425 0.068346 +v -0.063254 0.055439 0.081783 +v -0.058914 0.092501 0.072389 +v -0.049523 0.109499 0.076941 +v -0.053729 0.072517 0.089306 +v -0.043749 0.073921 0.100391 +v -0.042937 0.096069 0.090851 +v -0.042003 0.120200 0.079807 +v -0.044088 0.051682 0.108574 +v -0.053431 0.022266 0.105640 +v -0.044605 0.019781 0.116522 +v -0.052662 0.037842 0.102936 +v -0.044137 0.035213 0.113543 +v -0.044997 0.003134 0.117986 +v -0.054510 0.007759 0.106054 +v -0.045180 -0.011497 0.117198 +v -0.052555 -0.008622 0.108189 +v -0.045716 -0.021950 0.114717 +v -0.054356 -0.030434 0.098921 +v -0.045879 -0.038785 0.107280 +v -0.045469 -0.030684 0.111975 +v -0.046107 -0.046371 0.101229 +v -0.053051 -0.060283 0.064610 +v -0.046486 -0.062834 0.076447 +v -0.046202 -0.059656 0.083939 +v -0.046645 -0.067389 0.062533 +v -0.052957 -0.065079 0.046101 +v -0.056437 0.053112 0.093378 +v -0.063084 0.020029 0.092037 +v -0.061356 0.036002 0.091441 +v -0.061174 0.005821 0.096138 +v -0.064263 -0.047760 0.055698 +v -0.068594 -0.032591 0.064735 +v -0.063287 -0.041954 0.068737 +v -0.070166 -0.023789 0.068018 +v -0.061511 -0.034942 0.081448 +v -0.065018 -0.019313 0.083813 +v -0.066164 -0.052234 0.033612 +v -0.057174 -0.050688 0.072937 +v -0.053561 -0.044809 0.089249 +v -0.046400 -0.053446 0.093342 +v -0.079710 0.003674 0.048586 +v -0.059128 -0.012974 0.097496 +v -0.065947 -0.003140 0.086758 +v -0.069474 0.010849 0.080126 +v -0.076388 -0.029845 0.039607 +v -0.068089 0.048882 0.073352 +v -0.067398 0.032836 0.080973 +v -0.068279 0.061741 0.064142 +v -0.061691 0.084455 0.070231 +v -0.063000 0.107597 0.053530 +v -0.078951 0.009331 0.050100 +v -0.064577 0.102785 0.049753 +v -0.064446 0.141324 0.029445 +v -0.049440 0.158867 0.055138 +v -0.041510 0.156147 0.064110 +v -0.044607 0.137944 0.068710 +v -0.042008 0.138687 0.070755 +v -0.081603 -0.004787 0.036751 +v -0.079208 -0.011240 0.044587 +v -0.079456 -0.026000 0.026724 +v -0.070640 -0.046844 0.021743 +v -0.063128 -0.057831 0.013880 +v -0.076006 -0.037707 0.017585 +v -0.080993 -0.025788 0.011752 +v -0.084082 -0.011958 0.009542 +v -0.054085 0.145889 0.054245 +v -0.057147 0.133264 0.054844 +v -0.060190 0.128311 0.051430 +v -0.082234 -0.015481 0.024744 +v 0.003349 -0.085294 0.024746 +v -0.007953 -0.084996 0.024825 +v 0.019146 -0.083499 0.025225 +v 0.033204 -0.079030 0.026425 +v 0.047702 -0.071854 0.028344 +v -0.023309 -0.082309 0.025545 +v -0.038204 -0.076710 0.027045 +v 0.063120 -0.057019 0.032321 +v 0.073038 -0.045081 0.017974 +v 0.070650 -0.044738 0.035618 +v 0.078725 0.016703 0.052075 +v 0.080336 -0.000017 0.047593 +v 0.068626 0.063856 0.064705 +v 0.058181 0.120087 0.060860 +v 0.054850 0.101735 0.074860 +v 0.062774 0.083857 0.070069 +v 0.050234 0.142769 0.061642 +v 0.043086 0.119491 0.079618 +v 0.050171 0.109424 0.076921 +v 0.042480 0.157463 0.063501 +v 0.042364 0.144852 0.068642 +v 0.065271 0.140288 0.030020 +v 0.084040 -0.016699 0.013037 +v 0.065525 -0.055955 0.013397 +v 0.079334 -0.019468 0.042381 +v 0.082650 -0.011993 0.032215 +v 0.080552 -0.027756 0.021915 +v 0.075241 -0.034986 0.038222 +v 0.055441 -0.065244 0.030107 +v 0.065305 0.109442 0.046129 +v 0.063112 0.127777 0.046186 +v 0.059955 0.146671 0.045816 +v 0.065796 0.074342 0.067516 +v 0.036173 0.124898 0.081067 +v 0.027228 0.130267 0.082508 +v 0.013916 0.135167 0.083822 +v 0.008974 0.152824 0.077474 +v 0.003083 0.136716 0.084242 +v -0.002405 0.152960 0.077854 +v -0.006855 0.136321 0.084133 +v -0.013745 0.153547 0.076392 +v -0.026947 0.143478 0.076586 +v -0.034187 0.126058 0.081376 +v -0.024758 0.131229 0.082760 +v -0.037506 0.144390 0.071177 +v -0.035258 0.189572 0.059270 +v -0.024350 0.195672 0.063879 +v -0.010115 0.195444 0.067648 +v 0.003305 0.195447 0.068302 +v 0.017203 0.194545 0.066559 +v 0.030368 0.195830 0.061715 +v 0.033637 0.167252 0.065650 +v -0.014422 0.134884 0.083747 +v -0.027085 0.159100 0.070774 +v 0.030916 0.152248 0.071766 +v 0.020046 0.154060 0.074966 +v -0.026231 0.176481 0.066079 +v 0.022101 0.176724 0.067795 +v 0.036048 0.182391 0.060624 +v -0.013517 0.176206 0.069781 +v -0.002323 0.176034 0.071116 +v 0.008906 0.176089 0.070661 +v 0.070265 0.020752 0.077116 +v 0.074786 0.017077 0.064676 +v 0.069010 0.042447 0.073863 +v 0.043290 0.078667 0.098755 +v 0.046610 -0.071033 0.042717 +v 0.047701 -0.071458 0.028455 +v 0.047156 -0.068560 0.055721 +v 0.046173 -0.051884 0.095396 +v 0.046473 -0.058487 0.085546 +v 0.057279 -0.047694 0.077538 +v 0.045931 -0.040478 0.106047 +v 0.054144 -0.030258 0.099314 +v 0.045745 -0.031558 0.111312 +v 0.044868 0.002787 0.118113 +v 0.045358 -0.012460 0.116965 +v 0.056712 -0.000632 0.103062 +v 0.053516 0.010434 0.107151 +v 0.044544 0.021322 0.116388 +v 0.043674 0.069321 0.102287 +v 0.043432 0.055412 0.107838 +v 0.053908 0.062475 0.093273 +v 0.044248 0.040089 0.112183 +v 0.059219 0.091734 0.072183 +v 0.058558 0.087681 0.075645 +v 0.065365 0.074755 0.067629 +v 0.064528 0.049975 0.081455 +v 0.072454 0.036476 0.065573 +v 0.076961 0.025291 0.054377 +v 0.079627 0.004870 0.048911 +v 0.057791 0.024826 0.099445 +v 0.063146 0.034467 0.088860 +v 0.057531 0.042141 0.095463 +v 0.064274 0.014072 0.090525 +v 0.064623 -0.003209 0.089489 +v 0.070068 -0.029685 0.063900 +v 0.069325 -0.041716 0.049299 +v 0.075464 -0.033031 0.038755 +v 0.062980 -0.056625 0.032429 +v 0.059457 -0.058322 0.046040 +v 0.059481 -0.052957 0.061649 +v 0.064984 -0.031649 0.075727 +v 0.054942 -0.042594 0.088769 +v 0.045783 -0.022484 0.114502 +v 0.059351 -0.015216 0.096474 +v 0.065806 -0.018739 0.082382 +v 0.046038 -0.046564 0.101076 +v 0.046692 -0.064306 0.072635 +v 0.069029 0.010061 0.080839 +v 0.070972 -0.003930 0.074863 +v 0.074552 0.001779 0.065952 +v 0.079802 -0.008278 0.045383 +v 0.074553 -0.014667 0.060768 +v 0.078387 -0.021521 0.041837 +v -0.007206 0.072224 0.114073 +v 0.003133 0.064598 0.117390 +v 0.006479 0.084778 0.108490 +v -0.009563 -0.084278 0.038365 +v 0.005799 -0.084700 0.038347 +v 0.039513 0.007195 0.121243 +v 0.034316 0.038986 0.118448 +v 0.040413 -0.014129 0.120087 +v 0.037973 -0.030388 0.117237 +v 0.036127 -0.040762 0.113390 +v 0.038336 -0.049512 0.105345 +v 0.038668 -0.058428 0.095196 +v 0.038412 -0.066727 0.080541 +v 0.036405 -0.073205 0.064323 +v -0.024610 -0.081427 0.038013 +v -0.039247 -0.075686 0.037262 +v -0.038831 -0.073858 0.054331 +v -0.039052 -0.068975 0.073945 +v -0.038640 -0.058725 0.094610 +v -0.038393 -0.052958 0.101818 +v -0.038149 -0.044753 0.109389 +v -0.040741 -0.020916 0.118517 +v -0.037064 -0.003257 0.122887 +v -0.036196 0.015058 0.122275 +v -0.037659 0.027519 0.119384 +v -0.036742 0.043747 0.115681 +v -0.036322 0.060265 0.110348 +v -0.033298 0.082550 0.102692 +v -0.002921 0.046139 0.124072 +v -0.014743 0.009957 0.130390 +v -0.002991 0.008877 0.131862 +v -0.014608 0.028703 0.127473 +v -0.002952 0.027748 0.129018 +v -0.014499 0.046970 0.122515 +v -0.013932 0.065643 0.115791 +v -0.002330 -0.018452 0.130828 +v -0.008881 -0.006260 0.131624 +v -0.014853 -0.015732 0.129743 +v -0.008973 -0.025917 0.128631 +v -0.003065 -0.082780 0.057148 +v -0.010031 -0.075483 0.083238 +v 0.000226 -0.078794 0.075812 +v 0.002412 -0.071699 0.093018 +v -0.009144 -0.070079 0.094807 +v -0.009159 -0.064863 0.102779 +v 0.003031 -0.065317 0.103008 +v -0.009075 -0.058680 0.110008 +v 0.003007 -0.059122 0.110247 +v -0.012059 -0.051149 0.116179 +v 0.002293 -0.050605 0.117702 +v -0.009056 -0.043581 0.121511 +v 0.000013 -0.035707 0.126019 +v -0.008996 -0.034958 0.125633 +v 0.002865 -0.004951 0.132122 +v -0.015325 -0.081488 0.056804 +v -0.015278 -0.078643 0.069926 +v -0.021368 -0.074108 0.080433 +v -0.020269 -0.068474 0.093484 +v -0.018193 -0.058810 0.107489 +v -0.020921 -0.041300 0.119958 +v -0.020809 -0.032736 0.123895 +v -0.020758 -0.023767 0.126710 +v -0.023397 -0.003639 0.128655 +v -0.027267 -0.078496 0.055989 +v -0.028039 -0.073867 0.074850 +v -0.027016 -0.063644 0.097010 +v -0.026976 -0.057936 0.104437 +v -0.026854 -0.049376 0.112443 +v -0.029217 -0.016642 0.125333 +v -0.026170 0.012498 0.126980 +v -0.025935 0.030926 0.123889 +v -0.025807 0.049042 0.118814 +v -0.022778 0.073090 0.110752 +v -0.032784 -0.066120 0.088085 +v -0.032444 -0.037344 0.117142 +v -0.032207 -0.028839 0.120826 +v 0.033107 -0.077621 0.046331 +v 0.024948 -0.074771 0.075732 +v 0.012943 -0.077490 0.076680 +v 0.012876 -0.072509 0.089169 +v 0.015185 -0.066702 0.098444 +v 0.012186 -0.058317 0.109883 +v 0.009072 -0.047636 0.119046 +v 0.027100 -0.066079 0.093325 +v 0.032361 -0.052294 0.107172 +v 0.031990 -0.028862 0.121103 +v 0.031553 0.079941 0.104469 +v 0.031240 0.059509 0.113064 +v 0.031466 0.023767 0.123202 +v 0.031492 0.003549 0.125555 +v 0.031967 -0.013079 0.124561 +v 0.021012 -0.059694 0.105366 +v 0.017729 0.070538 0.113188 +v 0.009523 -0.017475 0.130464 +v 0.018418 -0.003698 0.130039 +v 0.008799 0.009290 0.131376 +v 0.008687 0.046482 0.123521 +v 0.021319 -0.082209 0.038095 +v 0.009220 -0.082347 0.057034 +v 0.021364 -0.080197 0.056486 +v 0.021101 -0.052963 0.111950 +v 0.020932 -0.045412 0.117609 +v 0.008987 -0.039320 0.123713 +v 0.020889 -0.032973 0.123963 +v 0.008965 -0.030476 0.127276 +v 0.020674 -0.016868 0.128199 +v 0.020409 0.011174 0.128942 +v 0.008736 0.028124 0.128495 +v 0.020244 0.029812 0.125916 +v 0.020267 0.048061 0.120844 +vn -0.478600 -0.571000 -0.667000 +vn 0.496100 0.559800 -0.663700 +vn 0.710200 0.246700 -0.659300 +vn 0.737100 -0.147800 -0.659400 +vn 0.569600 -0.484300 -0.664100 +vn -0.362000 0.652900 -0.665300 +vn -0.739000 -0.109900 -0.664700 +vn -0.595500 0.440700 -0.671700 +vn -0.641700 -0.356400 -0.679100 +vn -0.060200 0.735200 -0.675200 +vn 0.210700 0.707500 -0.674500 +vn 0.308000 -0.670200 -0.675200 +vn 0.053400 -0.734900 -0.676100 +vn -0.210700 -0.707500 -0.674500 +vn -0.711000 0.204900 -0.672600 +vn 0.570800 0.665200 0.481300 +vn -0.528000 0.680800 -0.507600 +vn -0.677300 0.668700 -0.306700 +vn -0.734500 0.675800 -0.061100 +vn 0.719400 0.669300 0.185800 +vn -0.033100 0.660600 -0.750000 +vn 0.731400 0.678100 -0.071700 +vn 0.669300 0.670700 -0.319600 +vn 0.515700 0.678100 -0.523700 +vn 0.301400 0.669700 -0.678700 +vn -0.347700 0.669100 -0.656800 +vn -0.712600 0.665400 0.222100 +vn -0.415700 0.676300 0.608100 +vn -0.194700 0.672000 0.714400 +vn 0.054000 0.678000 0.733100 +vn 0.312300 0.669500 0.673900 +vn -0.592300 0.674200 0.441000 +vn -0.048600 -0.668600 -0.742000 +vn 0.183000 -0.644900 -0.742000 +vn 0.390400 -0.543600 -0.743000 +vn 0.557600 -0.361000 -0.747400 +vn 0.643500 -0.160700 -0.748300 +vn 0.635600 0.126300 -0.761600 +vn 0.497200 0.418700 -0.759900 +vn 0.278900 0.604800 -0.745900 +vn 0.048700 0.668700 -0.742000 +vn -0.181000 0.644400 -0.742900 +vn -0.399200 0.535900 -0.743900 +vn -0.554000 0.366500 -0.747400 +vn -0.645500 0.102500 -0.756800 +vn -0.639300 -0.188800 -0.745400 +vn -0.497500 -0.430200 -0.753300 +vn -0.278900 -0.604800 -0.745900 +vn -0.638100 0.760500 0.119900 +vn -0.643500 0.744400 -0.178300 +vn -0.489900 0.756800 -0.432500 +vn -0.268500 0.748700 -0.606000 +vn -0.051400 0.741600 -0.668800 +vn 0.177300 0.743800 -0.644400 +vn 0.393800 0.739900 -0.545400 +vn 0.553100 0.740100 -0.382500 +vn 0.651700 0.740300 -0.165200 +vn 0.666900 0.741900 0.069100 +vn 0.570700 0.754300 0.324600 +vn 0.393900 0.743900 0.539900 +vn 0.176400 0.740200 0.648700 +vn -0.050100 0.739700 0.671100 +vn -0.284300 0.741700 0.607400 +vn -0.500400 0.759200 0.416200 +vn -0.583100 0.702000 0.408800 +vn -0.744200 0.078600 0.663300 +vn -0.455900 0.702600 0.546400 +vn -0.613900 0.122500 0.779800 +vn -0.713600 0.169200 0.679700 +vn -0.588500 0.211700 0.780300 +vn -0.874400 0.078900 0.478800 +vn -0.913000 0.109700 0.392800 +vn -0.813500 0.145800 0.563000 +vn -0.960300 0.036000 0.276600 +vn -0.995100 -0.012000 0.097900 +vn -0.737900 0.674200 -0.029700 +vn -0.997100 -0.063400 -0.041000 +vn -0.718300 0.686300 0.113500 +vn -0.971500 0.059800 0.229300 +vn -0.665900 0.697600 0.264300 +vn 0.061200 -0.286800 -0.956000 +vn -0.009000 -0.424500 -0.905400 +vn -0.148300 -0.351900 -0.924200 +vn -0.676400 0.535200 -0.506000 +vn -0.692200 0.670000 -0.268100 +vn -0.773600 0.581300 -0.252200 +vn -0.042700 0.873900 -0.484300 +vn -0.058900 0.948400 -0.311400 +vn -0.114500 0.886600 -0.448100 +vn -0.061100 0.975200 -0.212600 +vn -0.218000 -0.497200 -0.839700 +vn -0.096600 -0.580600 -0.808400 +vn -0.203000 -0.417300 -0.885800 +vn -0.635500 0.309600 -0.707300 +vn -0.902500 0.425700 -0.065300 +vn -0.855800 0.488900 -0.168800 +vn -0.013900 0.667700 -0.744300 +vn 0.002200 -0.152200 -0.988300 +vn -0.155300 -0.072400 -0.985200 +vn -0.193200 0.668400 -0.718300 +vn -0.523800 -0.095600 -0.846500 +vn -0.443000 0.669900 -0.595800 +vn -0.313800 0.665000 -0.677700 +vn -0.679500 -0.105700 -0.726000 +vn -0.554600 0.665100 -0.500100 +vn -0.800400 -0.144000 -0.581900 +vn -0.659700 0.656300 -0.366100 +vn -0.906600 -0.097800 -0.410400 +vn -0.717100 0.670300 -0.190700 +vn -0.993700 -0.062100 -0.092900 +vn -0.967900 -0.079700 -0.238300 +vn -0.993500 -0.043000 -0.105500 +vn -0.999900 -0.005500 -0.006900 +vn -0.995400 0.091500 0.029600 +vn -0.968800 0.189900 0.159000 +vn -0.971500 0.129400 0.198400 +vn -0.744000 0.323000 -0.584900 +vn -0.985600 0.128300 0.110000 +vn -0.984400 0.035900 0.171900 +vn -0.994100 0.070200 0.082700 +vn -0.995700 -0.039100 0.084000 +vn -0.728500 0.086000 -0.679600 +vn -0.734000 -0.025100 -0.678600 +vn -0.977800 0.207000 0.033400 +vn -0.687800 0.220100 -0.691700 +vn -0.593400 0.773600 -0.222300 +vn -0.366100 0.582500 -0.725700 +vn -0.477200 0.489800 -0.729600 +vn -0.000100 0.799900 -0.600100 +vn -0.170400 0.653400 -0.737600 +vn -0.794300 -0.262500 -0.547900 +vn -0.899800 -0.182000 -0.396500 +vn -0.868200 -0.260200 -0.422500 +vn -0.960900 -0.153200 -0.230600 +vn -0.948000 -0.163800 -0.272700 +vn -0.878200 -0.250700 -0.407200 +vn -0.707400 -0.247500 -0.662000 +vn -0.983200 -0.021900 -0.181000 +vn -0.890900 -0.190200 -0.412300 +vn -0.934700 -0.057000 -0.350800 +vn -0.459900 -0.334900 -0.822400 +vn -0.678400 -0.254900 -0.689000 +vn -0.563900 -0.405400 -0.719500 +vn -0.752800 -0.285300 -0.593200 +vn -0.737500 -0.361600 -0.570300 +vn -0.843700 -0.110100 -0.525300 +vn -0.786500 0.163500 -0.595500 +vn -0.911600 0.276600 -0.304200 +vn -0.824500 0.056100 -0.563000 +vn -0.703100 0.229000 -0.673100 +vn -0.579800 -0.021900 -0.814400 +vn -0.768000 0.430200 -0.474400 +vn -0.623900 0.313300 -0.715900 +vn -0.837200 0.369600 -0.403000 +vn -0.956900 0.254300 -0.140300 +vn -0.881900 0.366200 -0.296900 +vn -0.935100 0.346300 -0.074600 +vn -0.968300 0.175500 -0.177600 +vn -0.957700 0.141200 -0.250500 +vn -0.949700 0.022700 -0.312400 +vn -0.821500 -0.042800 -0.568500 +vn -0.973400 0.227800 0.025700 +vn -0.988300 0.115100 -0.099500 +vn -0.977500 0.173700 0.119600 +vn -0.976000 0.193600 0.100000 +vn -0.021000 -0.690700 -0.722800 +vn -0.063200 -0.688000 -0.722900 +vn -0.023600 -0.724000 -0.689400 +vn 0.046400 -0.670400 -0.740600 +vn -0.116700 -0.684700 -0.719400 +vn -0.323400 -0.458700 -0.827600 +vn -0.543500 -0.491300 -0.680500 +vn -0.399000 -0.519000 -0.755900 +vn -0.421000 -0.232000 -0.876900 +vn -0.616500 -0.157000 -0.771500 +vn -0.022100 -0.630500 -0.775900 +vn -0.010400 -0.670300 -0.742100 +vn -0.012300 -0.642000 -0.766600 +vn -0.059600 -0.478300 -0.876200 +vn -0.002700 -0.603200 -0.797600 +vn 0.003900 -0.560400 -0.828200 +vn 0.008800 -0.523100 -0.852200 +vn -0.030500 -0.372300 -0.927600 +vn -0.005700 -0.455000 -0.890500 +vn -0.004300 -0.304500 -0.952500 +vn -0.015300 -0.050300 -0.998600 +vn -0.103900 0.162300 -0.981200 +vn -0.002700 -0.118200 -0.993000 +vn 0.061800 -0.337500 -0.939300 +vn 0.067000 -0.357000 -0.931700 +vn -0.007700 0.325700 -0.945500 +vn -0.020900 0.394100 -0.918800 +vn -0.064300 0.600100 -0.797300 +vn -0.036500 0.474500 -0.879500 +vn -0.040500 0.541100 -0.840000 +vn -0.038800 0.675200 -0.736700 +vn -0.051900 0.994800 -0.087200 +vn -0.163100 0.081200 -0.983200 +vn -0.156400 0.720800 -0.675300 +vn -0.156500 0.390100 -0.907300 +vn 0.021400 0.233000 -0.972200 +vn -0.009900 0.206500 -0.978400 +vn -0.294000 0.703000 -0.647500 +vn -0.335700 0.872200 -0.355800 +vn -0.033300 0.103600 -0.994100 +vn -0.286500 0.406100 -0.867700 +vn -0.208300 0.906300 -0.367700 +vn -0.030200 0.787600 -0.615400 +vn -0.115200 -0.147700 -0.982300 +vn -0.224400 -0.067800 -0.972100 +vn -0.312100 -0.034700 -0.949400 +vn -0.233100 -0.258400 -0.937500 +vn -0.330300 0.146200 -0.932500 +vn -0.527600 0.008700 -0.849400 +vn -0.378000 -0.112600 -0.918900 +vn -0.462100 0.219200 -0.859200 +vn -0.541500 0.548000 -0.637600 +vn -0.402700 0.610600 -0.681900 +vn -0.307100 0.282300 -0.908800 +vn -0.408400 0.425600 -0.807500 +vn -0.460200 0.816300 -0.349000 +vn -0.588500 0.699100 -0.406000 +vn -0.293800 0.628300 -0.720400 +vn -0.563200 0.395900 -0.725300 +vn -0.049400 -0.538200 -0.841400 +vn -0.048800 -0.580900 -0.812500 +vn -0.123200 -0.609900 -0.782800 +vn -0.051000 -0.656800 -0.752400 +vn -0.065300 -0.667400 -0.741800 +vn 0.088100 -0.520100 -0.849600 +vn 0.712800 -0.502900 -0.488900 +vn -0.044400 -0.615900 -0.786600 +vn -0.184300 -0.657700 -0.730300 +vn -0.154600 -0.209200 -0.965500 +vn -0.343500 -0.141300 -0.928500 +vn -0.339900 -0.293100 -0.893600 +vn -0.590300 -0.339100 -0.732500 +vn -0.447800 -0.419100 -0.789800 +vn -0.552200 -0.453400 -0.699600 +vn -0.599500 -0.222300 -0.768900 +vn -0.483000 -0.229000 -0.845100 +vn -0.764600 -0.354500 -0.538200 +vn -0.673200 -0.385700 -0.630900 +vn -0.145600 -0.488900 -0.860100 +vn -0.311000 -0.445600 -0.839400 +vn -0.276600 -0.585500 -0.762000 +vn -0.437600 -0.555300 -0.707200 +vn -0.325800 -0.592000 -0.737100 +vn 0.594800 0.065600 0.801200 +vn 0.613500 0.155800 0.774200 +vn 0.741100 0.077200 0.666900 +vn 0.564900 0.689500 0.453300 +vn 0.433700 0.693300 0.575500 +vn 0.629400 0.699400 0.338600 +vn 0.810300 0.094800 0.578200 +vn 0.799500 0.193100 0.568800 +vn 0.887200 0.093800 0.451700 +vn 0.723400 0.181700 0.666100 +vn 0.997800 -0.061400 -0.022800 +vn 0.735000 0.677500 0.027500 +vn 0.994000 -0.007400 0.108600 +vn 0.974100 0.050600 0.220300 +vn 0.697200 0.691800 0.188100 +vn 0.936800 0.074300 0.341800 +vn 0.072300 -0.681300 -0.728400 +vn 0.040000 -0.614900 -0.787600 +vn 0.123500 -0.599400 -0.790900 +vn 0.223800 -0.092200 -0.970200 +vn 0.093300 -0.347700 -0.932900 +vn 0.192600 -0.359700 -0.913000 +vn 0.060100 0.214600 -0.974800 +vn 0.008600 0.025600 -0.999600 +vn -0.014100 -0.060800 -0.998100 +vn 0.101700 -0.533000 -0.839900 +vn 0.026200 -0.508100 -0.860900 +vn 0.063700 -0.611900 -0.788400 +vn 0.352500 -0.282100 -0.892300 +vn 0.346800 -0.140400 -0.927300 +vn 0.142200 -0.093400 -0.985400 +vn 0.057600 0.672400 -0.737900 +vn 0.124600 0.917100 -0.378800 +vn 0.154500 0.653400 -0.741100 +vn 0.989900 0.105000 0.095100 +vn 0.989100 0.006400 0.146900 +vn 0.997400 -0.030300 0.065600 +vn 0.978300 0.069100 0.195200 +vn 0.972700 0.151000 0.176100 +vn 0.644900 -0.063100 0.761600 +vn 0.997200 -0.058400 -0.047200 +vn 0.990000 -0.061000 -0.127400 +vn 0.725000 0.662900 -0.186700 +vn 0.866100 -0.095800 -0.490500 +vn 0.634500 0.662100 -0.398600 +vn 0.935900 -0.092100 -0.339900 +vn 0.773200 -0.100500 -0.626100 +vn 0.504000 0.664800 -0.551400 +vn 0.673900 -0.103500 -0.731500 +vn 0.413700 0.659300 -0.627800 +vn 0.347500 0.650100 -0.675600 +vn 0.338800 -0.084700 -0.937000 +vn 0.162700 0.672300 -0.722100 +vn 0.924300 -0.195700 -0.327600 +vn 0.851800 -0.197500 -0.485200 +vn 0.838900 -0.278200 -0.467800 +vn 0.972800 -0.128400 -0.192700 +vn 0.765100 -0.363400 -0.531500 +vn 0.711100 -0.361400 -0.603000 +vn 0.882900 -0.236400 -0.405600 +vn 0.879900 -0.204300 -0.428800 +vn 0.662200 -0.426400 -0.616100 +vn 0.925700 -0.067200 -0.372200 +vn 0.749600 -0.289000 -0.595400 +vn 0.962700 -0.131700 -0.236400 +vn 0.999300 0.036400 -0.010100 +vn 0.982700 -0.014800 -0.184700 +vn 0.642100 -0.212700 -0.736500 +vn 0.759400 -0.017200 -0.650400 +vn 0.534500 -0.171700 -0.827500 +vn 0.700000 0.050500 -0.712300 +vn 0.810900 -0.060100 -0.582000 +vn 0.771600 0.233300 -0.591800 +vn 0.738900 0.363500 -0.567400 +vn 0.648300 0.204200 -0.733400 +vn 0.846400 0.169400 -0.504900 +vn 0.932000 0.230000 -0.279900 +vn 0.853100 0.322300 -0.410300 +vn 0.857600 0.483100 -0.176200 +vn 0.791700 0.572900 -0.211700 +vn 0.837600 0.439000 -0.324900 +vn 0.909300 0.356600 -0.214400 +vn 0.729300 0.514700 -0.450800 +vn 0.902400 0.423500 -0.079200 +vn 0.938200 0.340000 -0.064200 +vn 0.987700 0.108300 -0.112900 +vn 0.819800 -0.138600 -0.555500 +vn 0.933300 0.032800 -0.357600 +vn 0.913500 0.105900 -0.392800 +vn 0.988600 0.136400 0.064100 +vn 0.971400 0.187300 0.146000 +vn 0.981300 0.191600 0.017700 +vn 0.973300 0.162200 -0.162500 +vn 0.959600 0.269800 -0.080000 +vn 0.976100 0.191300 0.102800 +vn 0.975100 0.219600 0.031300 +vn 0.001300 -0.700500 -0.713600 +vn 0.020300 -0.645200 -0.763800 +vn 0.165100 -0.593400 -0.787700 +vn 0.241200 -0.454900 -0.857200 +vn 0.366400 -0.415600 -0.832500 +vn 0.502000 -0.495700 -0.708600 +vn 0.559900 -0.386700 -0.732700 +vn 0.319800 -0.543800 -0.775800 +vn 0.020000 -0.376300 -0.926300 +vn 0.011800 -0.461800 -0.886900 +vn 0.016400 -0.568200 -0.822700 +vn 0.010400 -0.299000 -0.954200 +vn 0.011900 -0.362200 -0.932000 +vn 0.022100 0.255400 -0.966600 +vn 0.017000 0.102800 -0.994600 +vn 0.001700 -0.187200 -0.982300 +vn 0.087600 -0.168900 -0.981700 +vn 0.078600 0.098700 -0.992000 +vn 0.079100 0.601100 -0.795300 +vn 0.026000 0.397500 -0.917200 +vn 0.039900 0.542400 -0.839200 +vn 0.044500 0.602400 -0.796900 +vn 0.041300 0.872200 -0.487400 +vn 0.019300 0.831300 -0.555400 +vn 0.019900 0.791500 -0.610900 +vn 0.034900 0.734600 -0.677600 +vn 0.039600 0.671300 -0.740100 +vn 0.043400 0.956600 -0.288100 +vn 0.054700 0.916300 -0.396800 +vn 0.029800 0.983300 -0.179700 +vn 0.050600 0.969500 0.239800 +vn 0.264100 0.920900 -0.286700 +vn 0.187800 0.785400 -0.589800 +vn 0.175400 0.489000 -0.854500 +vn 0.219500 0.305400 -0.926600 +vn 0.299100 0.738100 -0.604700 +vn 0.436200 0.803000 -0.406000 +vn 0.286900 0.572300 -0.768200 +vn 0.186800 0.088900 -0.978300 +vn 0.343200 0.020800 -0.939000 +vn 0.570900 -0.000500 -0.820900 +vn 0.508400 0.138900 -0.849800 +vn 0.565000 0.350200 -0.747100 +vn 0.343400 0.260400 -0.902400 +vn 0.451700 0.227700 -0.862600 +vn 0.449300 0.442300 -0.776200 +vn 0.520100 0.652500 -0.551100 +vn 0.413800 0.576300 -0.704700 +vn 0.530100 0.804400 -0.268300 +vn 0.575200 0.503000 -0.645100 +vn 0.635500 0.640100 -0.431600 +vn 0.735100 0.633600 -0.241200 +vn 0.948700 0.309300 -0.065600 +vn 0.688400 0.221200 -0.690700 +vn 0.632100 0.321600 -0.704900 +vn 0.570600 0.398900 -0.717800 +vn 0.466000 0.505600 -0.726100 +vn 0.624400 0.744700 -0.235400 +vn 0.348200 0.588800 -0.729400 +vn 0.250500 0.627800 -0.737000 +vn 0.732600 0.078100 -0.676100 +vn 0.108200 -0.442300 -0.890300 +vn 0.030400 -0.488800 -0.871900 +vn 0.055800 -0.536600 -0.842000 +vn 0.157300 -0.688300 -0.708100 +vn 0.254700 -0.604200 -0.755000 +vn 0.540000 -0.454800 -0.708200 +vn 0.389900 -0.492800 -0.777900 +vn 0.424300 -0.364000 -0.829100 +vn 0.241700 -0.447800 -0.860800 +vn 0.738200 -0.235500 -0.632100 +vn 0.596100 -0.185200 -0.781200 +vn 0.444700 -0.213500 -0.869800 +vn 0.252500 -0.254200 -0.933600 +vn 0.591600 -0.317400 -0.741100 +vn 0.084300 -0.702800 -0.706400 +vn 0.354700 -0.599300 -0.717700 +vn 0.512500 -0.524800 -0.679600 +vn 0.297100 -0.613500 -0.731700 +vn 0.199300 -0.636800 -0.744800 +vn 0.394500 -0.620200 -0.678000 +vn 0.494600 -0.537300 -0.683000 +vn 0.591800 -0.432600 -0.680100 +vn 0.704900 -0.208900 -0.677800 +vn 0.729900 -0.074000 -0.679600 +vn 0.274600 -0.677700 -0.682100 +vn 0.668500 -0.308200 -0.676800 +vn -0.621000 -0.389800 -0.680000 +vn -0.527500 -0.509500 -0.679700 +vn -0.175400 -0.713000 -0.678800 +vn -0.380400 -0.634800 -0.672600 +vn 0.153000 -0.710100 -0.687200 +vn 0.016200 -0.730700 -0.682500 +vn -0.710400 -0.174900 -0.681700 +vn -0.669800 -0.289500 -0.683800 +vn -0.304200 0.696700 0.649600 +vn -0.128300 0.696900 0.705600 +vn 0.002500 0.703700 0.710500 +vn 0.291400 0.693300 0.659000 +vn 0.124800 0.702300 0.700900 +vn -0.934300 -0.086800 0.345700 +vn -0.951800 0.025600 0.305700 +vn -0.943600 -0.113300 0.311000 +vn -0.564000 -0.825100 0.033200 +vn -0.576300 -0.810800 0.102200 +vn -0.687000 -0.724200 0.058500 +vn -0.775000 -0.609800 0.165700 +vn -0.768000 -0.635500 0.079100 +vn -0.900600 -0.413500 0.133800 +vn -0.728600 -0.208100 -0.652500 +vn -0.891100 -0.391500 0.229200 +vn -0.957900 -0.221400 0.182900 +vn -0.937800 -0.222800 0.266200 +vn -0.812300 0.102200 -0.574200 +vn -0.945900 0.115900 0.303000 +vn -0.769000 0.341300 -0.540500 +vn -0.786600 0.275300 -0.552700 +vn -0.782100 0.399600 -0.478200 +vn -0.866900 0.190200 0.460800 +vn -0.839800 0.241100 0.486400 +vn -0.739100 0.294600 0.605800 +vn -0.776700 0.250100 0.578100 +vn -0.611700 0.308300 0.728500 +vn -0.592900 0.345700 0.727300 +vn -0.575100 0.354900 0.737100 +vn -0.631800 0.250800 0.733400 +vn -0.786000 0.109800 0.608400 +vn -0.647000 0.119200 0.753100 +vn -0.770600 0.169300 0.614400 +vn -0.634700 0.194200 0.747900 +vn -0.653700 0.026100 0.756200 +vn -0.802800 0.031000 0.595500 +vn -0.656700 -0.086600 0.749100 +vn -0.808700 -0.072000 0.583800 +vn -0.695900 -0.193600 0.691500 +vn -0.833000 -0.262500 0.487000 +vn -0.680300 -0.389000 0.621200 +vn -0.661800 -0.295300 0.689000 +vn -0.684600 -0.483800 0.545100 +vn -0.746400 -0.625200 0.227800 +vn -0.639700 -0.708300 0.298400 +vn -0.648500 -0.666200 0.368200 +vn -0.603400 -0.771900 0.200100 +vn -0.695500 -0.706700 0.129500 +vn -0.790400 0.207500 0.576300 +vn -0.862200 0.069100 0.501800 +vn -0.839900 0.140100 0.524300 +vn -0.859500 -0.003100 0.511000 +vn -0.835900 -0.499800 0.226800 +vn -0.898900 -0.323000 0.296000 +vn -0.859100 -0.412900 0.302300 +vn -0.915600 -0.228900 0.330600 +vn -0.866400 -0.329800 0.375000 +vn -0.894700 -0.192000 0.403400 +vn -0.688300 -0.287500 -0.666100 +vn -0.809400 -0.502800 0.303400 +vn -0.816700 -0.420500 0.395100 +vn -0.678700 -0.582000 0.447900 +vn -0.808700 0.188900 -0.557000 +vn -0.853100 -0.128800 0.505500 +vn -0.897300 -0.069400 0.435800 +vn -0.918000 0.015100 0.396300 +vn -0.788900 -0.059300 -0.611700 +vn -0.926000 0.156900 0.343400 +vn -0.905800 0.109300 0.409300 +vn -0.735500 0.329900 -0.591800 +vn -0.763600 0.370200 -0.528900 +vn -0.952500 0.148500 0.265800 +vn -0.763100 0.241400 -0.599500 +vn -0.979500 0.123000 0.159500 +vn -0.995500 0.020200 0.091900 +vn -0.720700 0.229200 0.654200 +vn -0.575300 0.287000 0.766000 +vn -0.681000 0.301200 0.667400 +vn -0.572300 0.331600 0.750000 +vn -0.979700 -0.071700 0.187000 +vn -0.774100 0.119700 -0.621500 +vn -0.947400 -0.293300 0.127800 +vn -0.842200 -0.532800 0.082800 +vn -0.763500 -0.644900 0.034200 +vn -0.904300 -0.421100 0.069900 +vn -0.955400 -0.289900 0.055500 +vn -0.988500 -0.146100 0.039600 +vn -0.789700 0.228700 0.569200 +vn -0.836900 0.219400 0.501400 +vn -0.899300 0.185600 0.396000 +vn -0.977600 -0.170000 0.124200 +vn 0.039200 -0.998900 0.025900 +vn -0.095600 -0.995100 0.023900 +vn 0.209000 -0.977400 0.029500 +vn 0.371100 -0.927700 0.040700 +vn 0.638900 -0.745200 0.190900 +vn -0.263500 -0.964400 0.023600 +vn -0.413800 -0.910000 0.025800 +vn 0.514400 -0.570900 0.639900 +vn 0.863700 -0.498900 0.071400 +vn 0.853600 -0.495200 0.161400 +vn 0.639800 -0.104700 0.761300 +vn 0.647900 -0.180600 0.740000 +vn 0.644200 -0.054600 0.762900 +vn 0.846600 0.231700 0.479200 +vn 0.489400 0.003100 0.872000 +vn 0.562800 -0.028600 0.826100 +vn 0.721200 0.265100 0.640000 +vn 0.579300 0.342400 0.739600 +vn 0.715300 0.287600 0.636900 +vn 0.598300 0.273800 0.753000 +vn 0.565700 0.314400 0.762300 +vn 0.993700 0.028900 0.108200 +vn 0.980700 -0.184500 0.064900 +vn 0.763900 -0.644100 0.039200 +vn 0.636900 -0.292800 0.713100 +vn 0.978200 -0.131600 0.160500 +vn 0.943000 -0.316000 0.104300 +vn 0.607600 -0.406500 0.682300 +vn 0.679200 -0.729600 0.079700 +vn 0.986500 0.101300 0.128800 +vn 0.942500 0.139200 0.303700 +vn 0.876900 0.177700 0.446600 +vn 0.606100 -0.046800 0.794000 +vn 0.413600 0.386200 0.824400 +vn 0.313300 0.390100 0.865800 +vn 0.161600 0.389100 0.906900 +vn 0.104800 0.330000 0.938100 +vn 0.032300 0.392600 0.919100 +vn -0.034200 0.328600 0.943800 +vn -0.075300 0.393200 0.916300 +vn -0.182700 0.326400 0.927400 +vn -0.334800 0.366100 0.868200 +vn -0.403900 0.391700 0.826700 +vn -0.285000 0.394000 0.873800 +vn -0.454500 0.341000 0.822800 +vn -0.492800 0.108400 0.863400 +vn -0.329900 0.083500 0.940300 +vn -0.153800 0.087100 0.984300 +vn 0.040800 0.090000 0.995100 +vn 0.235900 0.098700 0.966700 +vn 0.427600 0.077700 0.900600 +vn 0.425800 0.257000 0.867500 +vn -0.172200 0.391700 0.903800 +vn -0.355600 0.293100 0.887500 +vn 0.373000 0.320100 0.870800 +vn 0.249400 0.324000 0.912500 +vn -0.365100 0.201000 0.909000 +vn 0.297100 0.200700 0.933500 +vn 0.484600 0.151200 0.861600 +vn -0.197700 0.209800 0.957500 +vn -0.036900 0.210300 0.976900 +vn 0.118400 0.209500 0.970600 +vn 0.924700 0.067600 0.374600 +vn 0.952800 0.053100 0.298900 +vn 0.927500 0.136400 0.348100 +vn 0.593800 0.323100 0.736900 +vn 0.555400 -0.824700 0.106900 +vn 0.679300 -0.434800 0.591100 +vn 0.606200 -0.777200 0.168700 +vn 0.669800 -0.564400 0.482400 +vn 0.661800 -0.648200 0.376400 +vn 0.823800 -0.466800 0.321500 +vn 0.683500 -0.410400 0.603600 +vn 0.834100 -0.260600 0.486100 +vn 0.682500 -0.301600 0.665700 +vn 0.650500 0.010300 0.759400 +vn 0.684800 -0.091800 0.722900 +vn 0.826200 -0.033200 0.562400 +vn 0.797300 0.051800 0.601400 +vn 0.635800 0.135200 0.759900 +vn 0.544100 0.310300 0.779500 +vn 0.604100 0.269000 0.750100 +vn 0.777900 0.230000 0.584800 +vn 0.637300 0.208000 0.742000 +vn 0.513400 0.004700 0.858100 +vn 0.832600 0.241100 0.498600 +vn 0.541800 -0.044300 0.839400 +vn 0.875600 0.175200 0.450100 +vn 0.952900 0.133700 0.272000 +vn 0.604800 -0.106800 0.789100 +vn 0.602800 -0.173200 0.778800 +vn 0.810400 0.106900 0.576000 +vn 0.867700 0.124600 0.481200 +vn 0.799100 0.176500 0.574700 +vn 0.872600 0.039800 0.486800 +vn 0.887900 -0.066400 0.455100 +vn 0.906400 -0.300800 0.296700 +vn 0.870600 -0.437800 0.224200 +vn 0.559000 -0.376700 0.738600 +vn 0.473400 -0.541900 0.694400 +vn 0.764000 -0.624700 0.161600 +vn 0.803600 -0.544500 0.240300 +vn 0.880900 -0.311100 0.356800 +vn 0.828100 -0.386900 0.405700 +vn 0.687700 -0.194600 0.699400 +vn 0.852300 -0.147300 0.501800 +vn 0.897500 -0.192200 0.397000 +vn 0.681200 -0.493300 0.540900 +vn 0.639500 -0.720400 0.268300 +vn 0.923800 0.001400 0.382900 +vn 0.928500 -0.081500 0.362300 +vn 0.947400 -0.037400 0.317800 +vn 0.594300 -0.235000 0.769100 +vn 0.940700 -0.160100 0.299100 +vn 0.568600 -0.309600 0.762100 +vn -0.083200 0.394700 0.915000 +vn 0.042000 0.364700 0.930200 +vn 0.067900 0.414800 0.907300 +vn -0.108400 -0.991600 0.069700 +vn 0.065000 -0.995300 0.072100 +vn 0.492500 0.058400 0.868300 +vn 0.419500 0.239800 0.875500 +vn 0.503900 -0.127100 0.854300 +vn 0.495300 -0.311200 0.811000 +vn 0.454800 -0.456400 0.764800 +vn 0.511800 -0.575800 0.637500 +vn 0.484300 -0.708900 0.512600 +vn 0.467100 -0.810400 0.353600 +vn 0.431600 -0.877100 0.210600 +vn -0.281100 -0.956800 0.073100 +vn -0.431700 -0.898800 0.075800 +vn -0.445100 -0.881700 0.156300 +vn -0.472300 -0.833300 0.287100 +vn -0.483000 -0.716500 0.503300 +vn -0.482200 -0.633200 0.605300 +vn -0.485400 -0.512300 0.708500 +vn -0.507600 -0.206700 0.836400 +vn -0.460900 -0.022900 0.887100 +vn -0.449900 0.104900 0.886800 +vn -0.461800 0.182100 0.868100 +vn -0.449200 0.255300 0.856200 +vn -0.433400 0.317000 0.843600 +vn -0.388300 0.377800 0.840500 +vn -0.037000 0.297700 0.953900 +vn -0.188900 0.091100 0.977800 +vn -0.040300 0.085700 0.995500 +vn -0.186300 0.203800 0.961100 +vn -0.038400 0.202800 0.978500 +vn -0.177900 0.296300 0.938400 +vn -0.167100 0.356800 0.919100 +vn -0.026800 -0.175900 0.984000 +vn -0.119500 -0.044100 0.991900 +vn -0.199200 -0.139200 0.970000 +vn -0.120600 -0.260600 0.957900 +vn -0.037900 -0.986100 0.161300 +vn -0.122000 -0.924000 0.362300 +vn -0.002600 -0.957300 0.289000 +vn 0.027300 -0.884100 0.466400 +vn -0.111500 -0.863700 0.491400 +vn -0.118500 -0.796000 0.593500 +vn 0.037900 -0.803400 0.594200 +vn -0.102400 -0.703700 0.703100 +vn 0.023800 -0.709600 0.704200 +vn -0.161400 -0.596500 0.786200 +vn 0.019500 -0.586400 0.809700 +vn -0.117500 -0.484400 0.866900 +vn 0.001300 -0.380700 0.924700 +vn -0.138000 -0.369100 0.919100 +vn 0.044600 -0.036100 0.998300 +vn -0.180600 -0.970000 0.162700 +vn -0.184100 -0.953900 0.237100 +vn -0.262200 -0.901700 0.343800 +vn -0.257500 -0.838600 0.480000 +vn -0.243300 -0.711400 0.659400 +vn -0.278100 -0.456400 0.845100 +vn -0.276600 -0.342400 0.897900 +vn -0.281600 -0.241300 0.928600 +vn -0.303400 -0.022900 0.952600 +vn -0.322900 -0.932300 0.162800 +vn -0.344300 -0.896600 0.278200 +vn -0.343000 -0.770600 0.537200 +vn -0.359200 -0.695800 0.621900 +vn -0.351900 -0.572200 0.740700 +vn -0.377600 -0.154400 0.913000 +vn -0.338800 0.097700 0.935800 +vn -0.323400 0.210100 0.922600 +vn -0.312000 0.295700 0.902900 +vn -0.261100 0.376800 0.888700 +vn -0.416200 -0.809200 0.414800 +vn -0.422200 -0.403200 0.811800 +vn -0.420300 -0.300600 0.856100 +vn 0.383100 -0.917200 0.109300 +vn 0.310300 -0.901900 0.300200 +vn 0.154400 -0.942300 0.297000 +vn 0.167700 -0.890300 0.423300 +vn 0.193400 -0.816900 0.543300 +vn 0.159200 -0.699000 0.697100 +vn 0.128100 -0.542100 0.830400 +vn 0.347800 -0.806200 0.478600 +vn 0.407000 -0.624900 0.666200 +vn 0.402300 -0.292800 0.867400 +vn 0.363200 0.378200 0.851500 +vn 0.377200 0.324300 0.867500 +vn 0.398200 0.161800 0.902900 +vn 0.399800 0.024200 0.916300 +vn 0.401700 -0.113100 0.908700 +vn 0.287900 -0.728000 0.622100 +vn 0.207200 0.374800 0.903700 +vn 0.127900 -0.165700 0.977800 +vn 0.238900 -0.028800 0.970600 +vn 0.113400 0.085800 0.989800 +vn 0.107500 0.297900 0.948500 +vn 0.239300 -0.967700 0.078600 +vn 0.110000 -0.981100 0.158900 +vn 0.252500 -0.954400 0.159200 +vn 0.277400 -0.616000 0.737200 +vn 0.284300 -0.505800 0.814400 +vn 0.122300 -0.439200 0.890000 +vn 0.276700 -0.345000 0.896900 +vn 0.122600 -0.295500 0.947400 +vn 0.275200 -0.164800 0.947100 +vn 0.264000 0.099400 0.959400 +vn 0.110300 0.204700 0.972600 +vn 0.254100 0.211900 0.943700 +vn 0.249500 0.296000 0.922000 +usemtl None +s 1 +f 1//1 2//2 3//3 +f 1//1 3//3 4//4 +f 1//1 4//4 5//5 +f 6//6 7//7 8//8 +f 1//1 9//9 6//6 +f 6//6 9//9 7//7 +f 6//6 10//10 1//1 +f 1//1 10//10 11//11 +f 1//1 5//5 12//12 +f 1//1 12//12 13//13 +f 13//13 14//14 1//1 +f 1//1 11//11 2//2 +f 7//7 15//15 8//8 +f 16//16 17//17 18//18 +f 16//16 18//18 19//19 +f 20//20 21//21 16//16 +f 21//21 22//22 23//23 +f 21//21 23//23 24//24 +f 21//21 24//24 25//25 +f 21//21 26//26 16//16 +f 19//19 27//27 16//16 +f 21//21 20//20 22//22 +f 16//16 26//26 17//17 +f 27//27 28//28 29//29 +f 27//27 29//29 30//30 +f 27//27 31//31 16//16 +f 32//32 28//28 27//27 +f 27//27 30//30 31//31 +f 33//33 13//13 34//34 +f 34//34 13//13 12//12 +f 34//34 12//12 35//35 +f 35//35 12//12 5//5 +f 35//35 5//5 36//36 +f 36//36 5//5 4//4 +f 36//36 4//4 37//37 +f 37//37 4//4 38//38 +f 38//38 4//4 3//3 +f 38//38 3//3 39//39 +f 39//39 3//3 2//2 +f 39//39 2//2 40//40 +f 40//40 2//2 11//11 +f 40//40 11//11 41//41 +f 41//41 11//11 10//10 +f 41//41 10//10 42//42 +f 42//42 10//10 6//6 +f 42//42 6//6 43//43 +f 43//43 6//6 8//8 +f 43//43 8//8 44//44 +f 44//44 8//8 15//15 +f 44//44 15//15 45//45 +f 45//45 15//15 7//7 +f 45//45 7//7 46//46 +f 46//46 7//7 9//9 +f 46//46 9//9 47//47 +f 47//47 9//9 1//1 +f 47//47 1//1 48//48 +f 48//48 1//1 14//14 +f 48//48 14//14 33//33 +f 33//33 14//14 13//13 +f 49//49 19//19 50//50 +f 18//18 50//50 19//19 +f 50//50 18//18 51//51 +f 17//17 51//51 18//18 +f 17//17 26//26 51//51 +f 51//51 26//26 52//52 +f 26//26 21//21 52//52 +f 52//52 21//21 53//53 +f 53//53 21//21 54//54 +f 25//25 54//54 21//21 +f 54//54 25//25 55//55 +f 24//24 55//55 25//25 +f 55//55 24//24 56//56 +f 23//23 56//56 24//24 +f 56//56 23//23 57//57 +f 22//22 57//57 23//23 +f 57//57 22//22 58//58 +f 20//20 58//58 22//22 +f 20//20 59//59 58//58 +f 59//59 20//20 16//16 +f 16//16 60//60 59//59 +f 60//60 16//16 31//31 +f 31//31 61//61 60//60 +f 30//30 62//62 61//61 +f 30//30 61//61 31//31 +f 62//62 30//30 29//29 +f 29//29 63//63 62//62 +f 28//28 64//64 63//63 +f 28//28 63//63 29//29 +f 32//32 64//64 28//28 +f 27//27 49//49 64//64 +f 27//27 64//64 32//32 +f 49//49 27//27 19//19 +f 65//65 66//66 67//67 +f 67//67 66//66 68//68 +f 68//68 69//69 70//70 +f 71//71 72//72 73//73 +f 74//74 72//72 71//71 +f 75//75 76//76 77//77 +f 74//74 78//78 75//75 +f 69//69 68//68 66//66 +f 69//69 66//66 73//73 +f 73//73 66//66 71//71 +f 74//74 79//79 72//72 +f 71//71 66//66 65//65 +f 71//71 65//65 80//80 +f 71//71 80//80 74//74 +f 74//74 80//80 78//78 +f 75//75 78//78 76//76 +f 81//81 82//82 83//83 +f 84//84 85//85 86//86 +f 87//87 88//88 89//89 +f 88//88 90//90 89//89 +f 91//91 92//92 93//93 +f 94//94 95//95 96//96 +f 97//97 98//98 99//99 +f 99//99 100//100 97//97 +f 101//101 102//102 103//103 +f 102//102 101//101 104//104 +f 104//104 105//105 102//102 +f 105//105 104//104 106//106 +f 106//106 107//107 105//105 +f 107//107 108//108 109//109 +f 110//110 76//76 111//111 +f 111//111 76//76 109//109 +f 77//77 76//76 110//110 +f 112//112 113//113 77//77 +f 112//112 114//114 113//113 +f 115//115 116//116 117//117 +f 118//118 119//119 116//116 +f 119//119 118//118 120//120 +f 121//121 120//120 122//122 +f 121//121 122//122 123//123 +f 124//124 125//125 122//122 +f 126//126 127//127 128//128 +f 89//89 129//129 130//130 +f 106//106 131//131 132//132 +f 132//132 131//131 133//133 +f 134//134 110//110 111//111 +f 77//77 110//110 134//134 +f 135//135 134//134 136//136 +f 136//136 134//134 132//132 +f 136//136 132//132 133//133 +f 137//137 106//106 104//104 +f 134//134 111//111 132//132 +f 132//132 111//111 108//108 +f 112//112 77//77 134//134 +f 132//132 108//108 106//106 +f 138//138 139//139 140//140 +f 138//138 114//114 112//112 +f 138//138 112//112 135//135 +f 135//135 112//112 134//134 +f 141//141 142//142 143//143 +f 143//143 142//142 144//144 +f 143//143 144//144 145//145 +f 144//144 142//142 146//146 +f 147//147 148//148 149//149 +f 150//150 147//147 151//151 +f 152//152 150//150 153//153 +f 152//152 96//96 154//154 +f 147//147 150//150 154//154 +f 152//152 86//86 96//96 +f 149//149 148//148 155//155 +f 96//96 95//95 156//156 +f 96//96 156//156 154//154 +f 94//94 125//125 95//95 +f 95//95 125//125 157//157 +f 95//95 157//157 156//156 +f 155//155 158//158 159//159 +f 159//159 160//160 146//146 +f 155//155 159//159 161//161 +f 161//161 159//159 146//146 +f 161//161 149//149 155//155 +f 158//158 155//155 162//162 +f 136//136 145//145 139//139 +f 139//139 145//145 144//144 +f 139//139 144//144 140//140 +f 160//160 159//159 163//163 +f 138//138 140//140 163//163 +f 138//138 163//163 114//114 +f 114//114 163//163 164//164 +f 157//157 162//162 155//155 +f 157//157 155//155 148//148 +f 157//157 125//125 124//124 +f 165//165 118//118 116//116 +f 165//165 116//116 115//115 +f 165//165 115//115 162//162 +f 124//124 122//122 120//120 +f 124//124 120//120 165//165 +f 165//165 120//120 118//118 +f 166//166 167//167 168//168 +f 168//168 167//167 169//169 +f 169//169 167//167 170//170 +f 171//171 93//93 141//141 +f 172//172 173//173 143//143 +f 143//143 173//173 171//171 +f 143//143 171//171 141//141 +f 141//141 174//174 175//175 +f 176//176 166//166 177//177 +f 176//176 177//177 178//178 +f 179//179 176//176 180//180 +f 180//180 176//176 178//178 +f 181//181 182//182 183//183 +f 183//183 184//184 185//185 +f 180//180 181//181 179//179 +f 179//179 181//181 183//183 +f 186//186 187//187 188//188 +f 188//188 187//187 189//189 +f 185//185 190//190 187//187 +f 191//191 192//192 193//193 +f 192//192 194//194 193//193 +f 193//193 194//194 195//195 +f 193//193 195//195 196//196 +f 197//197 89//89 90//90 +f 185//185 187//187 198//198 +f 190//190 189//189 187//187 +f 199//199 200//200 193//193 +f 193//193 200//200 187//187 +f 198//198 187//187 200//200 +f 201//201 191//191 193//193 +f 202//202 201//201 193//193 +f 203//203 199//199 204//204 +f 186//186 205//205 187//187 +f 187//187 205//205 202//202 +f 200//200 199//199 203//203 +f 200//200 203//203 206//206 +f 187//187 202//202 193//193 +f 207//207 199//199 193//193 +f 193//193 196//196 208//208 +f 200//200 206//206 198//198 +f 198//198 209//209 185//185 +f 185//185 209//209 183//183 +f 176//176 92//92 167//167 +f 210//210 211//211 212//212 +f 93//93 179//179 212//212 +f 212//212 179//179 210//210 +f 93//93 92//92 179//179 +f 210//210 213//213 211//211 +f 175//175 142//142 141//141 +f 161//161 142//142 175//175 +f 151//151 214//214 150//150 +f 174//174 215//215 214//214 +f 214//214 216//216 153//153 +f 153//153 217//217 84//84 +f 141//141 93//93 174//174 +f 174//174 93//93 215//215 +f 150//150 214//214 153//153 +f 152//152 153//153 84//84 +f 150//150 152//152 154//154 +f 154//154 156//156 147//147 +f 147//147 156//156 148//148 +f 149//149 161//161 175//175 +f 149//149 175//175 147//147 +f 147//147 175//175 151//151 +f 218//218 206//206 203//203 +f 179//179 92//92 176//176 +f 166//166 176//176 167//167 +f 198//198 206//206 219//219 +f 219//219 206//206 218//218 +f 213//213 219//219 220//220 +f 219//219 213//213 210//210 +f 210//210 198//198 219//219 +f 217//217 220//220 218//218 +f 213//213 220//220 216//216 +f 213//213 216//216 211//211 +f 182//182 184//184 183//183 +f 203//203 221//221 218//218 +f 204//204 221//221 203//203 +f 207//207 204//204 199//199 +f 222//222 217//217 221//221 +f 221//221 217//217 218//218 +f 214//214 215//215 216//216 +f 216//216 220//220 217//217 +f 222//222 84//84 217//217 +f 85//85 84//84 222//222 +f 222//222 221//221 126//126 +f 85//85 222//222 126//126 +f 89//89 197//197 129//129 +f 207//207 89//89 130//130 +f 207//207 130//130 204//204 +f 204//204 130//130 223//223 +f 204//204 223//223 127//127 +f 204//204 127//127 221//221 +f 221//221 127//127 126//126 +f 126//126 128//128 85//85 +f 85//85 128//128 224//224 +f 224//224 86//86 85//85 +f 225//225 226//226 227//227 +f 228//228 229//229 170//170 +f 229//229 230//230 170//170 +f 170//170 230//230 169//169 +f 168//168 169//169 231//231 +f 232//232 228//228 227//227 +f 227//227 228//228 170//170 +f 170//170 167//167 233//233 +f 179//179 183//183 210//210 +f 210//210 183//183 209//209 +f 210//210 209//209 198//198 +f 219//219 218//218 220//220 +f 107//107 106//106 108//108 +f 108//108 111//111 109//109 +f 163//163 140//140 160//160 +f 99//99 234//234 235//235 +f 235//235 234//234 236//236 +f 237//237 238//238 239//239 +f 124//124 165//165 162//162 +f 124//124 162//162 157//157 +f 156//156 157//157 148//148 +f 161//161 146//146 142//142 +f 237//237 240//240 241//241 +f 235//235 100//100 99//99 +f 117//117 164//164 115//115 +f 115//115 164//164 162//162 +f 162//162 164//164 163//163 +f 162//162 163//163 158//158 +f 158//158 163//163 159//159 +f 146//146 160//160 140//140 +f 146//146 140//140 144//144 +f 145//145 136//136 242//242 +f 242//242 136//136 133//133 +f 242//242 131//131 243//243 +f 243//243 131//131 137//137 +f 243//243 137//137 237//237 +f 237//237 137//137 240//240 +f 241//241 240//240 101//101 +f 241//241 101//101 235//235 +f 235//235 101//101 103//103 +f 235//235 103//103 100//100 +f 139//139 138//138 135//135 +f 139//139 135//135 136//136 +f 242//242 133//133 131//131 +f 131//131 106//106 137//137 +f 240//240 137//137 104//104 +f 240//240 104//104 101//101 +f 98//98 81//81 234//234 +f 234//234 81//81 83//83 +f 83//83 244//244 245//245 +f 245//245 246//246 238//238 +f 238//238 246//246 247//247 +f 244//244 225//225 227//227 +f 246//246 227//227 170//170 +f 246//246 170//170 233//233 +f 248//248 233//233 92//92 +f 248//248 92//92 91//91 +f 245//245 244//244 246//246 +f 234//234 83//83 236//236 +f 236//236 83//83 245//245 +f 239//239 238//238 247//247 +f 83//83 82//82 244//244 +f 244//244 227//227 246//246 +f 247//247 246//246 248//248 +f 247//247 248//248 172//172 +f 172//172 248//248 173//173 +f 247//247 172//172 239//239 +f 239//239 172//172 243//243 +f 82//82 225//225 244//244 +f 246//246 233//233 248//248 +f 173//173 248//248 91//91 +f 173//173 91//91 171//171 +f 171//171 91//91 93//93 +f 153//153 216//216 217//217 +f 235//235 236//236 241//241 +f 241//241 236//236 238//238 +f 241//241 238//238 237//237 +f 237//237 239//239 243//243 +f 242//242 243//243 172//172 +f 242//242 172//172 145//145 +f 145//145 172//172 143//143 +f 151//151 175//175 174//174 +f 151//151 174//174 214//214 +f 226//226 232//232 227//227 +f 233//233 167//167 92//92 +f 215//215 93//93 212//212 +f 215//215 212//212 211//211 +f 215//215 211//211 216//216 +f 207//207 193//193 89//89 +f 89//89 193//193 208//208 +f 89//89 208//208 87//87 +f 224//224 94//94 96//96 +f 224//224 96//96 86//86 +f 84//84 86//86 152//152 +f 245//245 238//238 236//236 +f 234//234 99//99 98//98 +f 249//249 250//250 251//251 +f 251//251 252//252 253//253 +f 253//253 249//249 251//251 +f 252//252 251//251 254//254 +f 255//255 256//256 257//257 +f 258//258 256//256 255//255 +f 251//251 250//250 258//258 +f 251//251 258//258 255//255 +f 259//259 260//260 261//261 +f 261//261 260//260 262//262 +f 262//262 260//260 263//263 +f 251//251 255//255 254//254 +f 254//254 255//255 257//257 +f 254//254 257//257 263//263 +f 263//263 257//257 264//264 +f 263//263 264//264 262//262 +f 229//265 232//266 265//267 +f 266//268 267//269 268//270 +f 269//271 270//272 186//273 +f 271//274 272//275 273//276 +f 274//277 275//278 268//270 +f 98//98 97//97 276//279 +f 277//280 278//281 279//282 +f 280//283 281//284 282//285 +f 280//283 283//286 281//284 +f 284//287 283//286 280//283 +f 285//288 283//286 284//287 +f 286//289 287//290 259//259 +f 287//290 260//260 259//259 +f 287//290 288//291 260//260 +f 289//292 290//293 291//294 +f 291//294 290//293 288//291 +f 292//295 290//293 289//292 +f 290//293 292//295 293//296 +f 293//296 292//295 294//297 +f 295//298 293//296 294//297 +f 296//299 297//300 298//301 +f 298//301 297//300 276//279 +f 276//279 97//97 298//301 +f 291//294 299//302 300//303 +f 300//303 299//302 301//304 +f 302//305 299//302 291//294 +f 302//305 291//294 287//290 +f 287//290 291//294 288//291 +f 286//289 302//305 287//290 +f 303//306 304//307 301//304 +f 301//304 305//308 303//306 +f 303//306 305//308 306//309 +f 303//306 306//309 307//310 +f 306//309 308//311 309//312 +f 306//309 309//312 307//310 +f 310//313 302//305 286//289 +f 310//313 286//289 311//314 +f 310//313 311//314 312//315 +f 299//302 302//305 310//313 +f 305//308 310//313 312//315 +f 305//308 312//315 306//309 +f 313//316 314//317 315//318 +f 315//318 314//317 316//319 +f 317//320 314//317 313//316 +f 306//309 312//315 308//311 +f 318//321 319//322 320//323 +f 318//321 316//319 321//324 +f 322//325 323//326 321//324 +f 321//324 323//326 318//321 +f 324//327 325//328 326//329 +f 322//325 327//330 323//326 +f 319//322 323//326 326//329 +f 319//322 326//329 328//331 +f 329//332 324//327 327//330 +f 327//330 324//327 326//329 +f 330//333 329//332 327//330 +f 312//315 331//334 308//311 +f 332//335 308//311 333//336 +f 332//335 333//336 317//320 +f 317//320 334//337 314//317 +f 311//314 335//338 312//315 +f 312//315 335//338 331//334 +f 331//334 333//336 308//311 +f 333//336 334//337 317//320 +f 335//338 336//339 337//340 +f 338//341 337//340 339//342 +f 338//341 339//342 322//325 +f 318//321 323//326 319//322 +f 331//334 335//338 337//340 +f 331//334 337//340 338//341 +f 331//334 338//341 333//336 +f 333//336 338//341 334//337 +f 338//341 322//325 334//337 +f 334//337 322//325 321//324 +f 334//337 321//324 314//317 +f 336//339 285//288 284//287 +f 336//339 284//287 340//343 +f 337//340 336//339 340//343 +f 337//340 340//343 339//342 +f 341//344 330//333 339//342 +f 340//343 341//344 339//342 +f 280//283 341//344 340//343 +f 280//283 340//343 284//287 +f 231//231 273//276 166//345 +f 166//345 273//276 178//346 +f 342//347 343//348 271//274 +f 271//274 343//348 268//270 +f 343//348 344//349 274//277 +f 345//350 346//351 347//352 +f 347//352 346//351 344//349 +f 344//349 315//318 274//277 +f 272//275 348//353 184//354 +f 272//275 184//354 181//355 +f 271//274 267//269 272//275 +f 272//275 267//269 348//353 +f 348//353 185//356 349//357 +f 348//353 349//357 184//354 +f 269//271 201//358 205//359 +f 269//271 205//359 270//272 +f 189//360 350//361 351//362 +f 189//360 351//362 269//271 +f 352//363 192//364 269//271 +f 269//271 192//364 201//358 +f 192//364 352//363 195//365 +f 353//366 195//365 352//363 +f 278//281 87//367 354//368 +f 278//281 354//368 352//363 +f 352//363 354//368 208//369 +f 352//363 208//369 355//370 +f 352//363 355//370 196//371 +f 352//363 196//371 353//366 +f 278//281 88//372 356//373 +f 197//374 277//280 357//375 +f 185//356 348//353 189//360 +f 189//360 348//353 350//361 +f 186//273 189//360 269//271 +f 278//281 356//373 87//367 +f 129//129 357//375 277//280 +f 279//282 278//281 358//376 +f 352//363 359//377 278//281 +f 278//281 359//377 358//376 +f 269//271 351//362 360//378 +f 269//271 360//378 352//363 +f 352//363 360//378 359//377 +f 361//379 360//378 351//362 +f 360//378 362//380 359//377 +f 197//374 88//372 277//280 +f 277//280 88//372 278//281 +f 359//377 362//380 358//376 +f 362//380 363//381 358//376 +f 364//382 360//378 361//379 +f 350//361 365//383 351//362 +f 348//353 267//269 350//361 +f 346//351 313//316 344//349 +f 344//349 313//316 315//318 +f 267//269 266//268 350//361 +f 350//361 266//268 365//383 +f 366//384 266//268 275//278 +f 275//278 266//268 268//270 +f 316//319 318//321 367//385 +f 274//277 367//385 275//278 +f 320//323 319//322 368//386 +f 319//322 328//331 369//387 +f 368//386 319//322 369//387 +f 266//268 370//388 365//383 +f 365//383 370//388 361//379 +f 365//383 361//379 351//362 +f 371//389 369//387 372//390 +f 373//391 363//381 374//392 +f 374//392 372//390 373//391 +f 371//389 372//390 370//388 +f 364//382 362//380 360//378 +f 266//268 366//384 370//388 +f 370//388 366//384 371//389 +f 370//388 374//392 361//379 +f 361//379 374//392 364//382 +f 364//382 363//381 362//380 +f 373//391 375//393 363//381 +f 373//391 372//390 376//394 +f 372//390 369//387 376//394 +f 376//394 377//395 373//391 +f 366//384 368//386 371//389 +f 371//389 368//386 369//387 +f 376//394 369//387 328//331 +f 376//394 328//331 377//395 +f 377//395 328//331 378//396 +f 379//397 339//342 330//333 +f 379//397 330//333 327//330 +f 328//331 326//329 325//328 +f 328//331 325//328 378//396 +f 380//398 381//399 329//332 +f 329//332 381//399 382//400 +f 325//328 382//400 383//401 +f 325//328 383//401 378//396 +f 378//396 383//401 384//402 +f 384//402 383//401 375//393 +f 375//393 383//401 385//403 +f 375//393 385//403 386//404 +f 373//391 377//395 375//393 +f 375//393 377//395 384//402 +f 325//328 324//327 382//400 +f 382//400 324//327 329//332 +f 329//332 330//333 380//398 +f 380//398 330//333 341//344 +f 380//398 341//344 387//405 +f 387//405 341//344 280//283 +f 387//405 280//283 282//285 +f 323//326 327//330 326//329 +f 377//395 378//396 384//402 +f 339//342 379//397 322//325 +f 322//325 379//397 327//330 +f 368//386 366//384 275//278 +f 316//319 367//385 315//318 +f 315//318 367//385 274//277 +f 388//406 389//407 82//82 +f 225//408 265//267 232//266 +f 169//169 229//265 390//409 +f 390//409 229//265 265//267 +f 390//409 265//267 391//410 +f 392//411 393//412 394//413 +f 394//413 393//412 395//414 +f 291//294 300//303 289//292 +f 289//292 300//303 396//415 +f 289//292 396//415 292//295 +f 292//295 396//415 294//297 +f 294//297 396//415 397//416 +f 397//416 398//417 296//299 +f 296//299 398//417 297//300 +f 297//300 398//417 399//418 +f 297//300 399//418 276//279 +f 296//299 295//298 397//416 +f 397//416 295//298 294//297 +f 396//415 400//419 397//416 +f 400//419 394//413 398//417 +f 398//417 394//413 399//418 +f 400//419 392//411 394//413 +f 394//413 395//414 399//418 +f 399//418 395//414 388//406 +f 399//418 388//406 81//81 +f 81//81 388//406 82//82 +f 392//411 400//419 304//307 +f 304//307 400//419 396//415 +f 304//307 396//415 300//303 +f 397//416 400//419 398//417 +f 399//418 81//81 276//279 +f 276//279 81//81 98//98 +f 401//420 169//169 390//409 +f 402//421 391//410 393//412 +f 402//421 393//412 392//411 +f 390//409 391//410 401//420 +f 169//169 401//420 231//231 +f 303//306 307//310 304//307 +f 304//307 307//310 403//422 +f 304//307 403//422 392//411 +f 403//422 404//423 402//421 +f 401//420 405//424 342//347 +f 332//335 346//351 309//312 +f 309//312 346//351 345//350 +f 309//312 345//350 307//310 +f 271//274 273//276 342//347 +f 342//347 405//424 347//352 +f 347//352 405//424 404//423 +f 345//350 404//423 403//422 +f 345//350 403//422 307//310 +f 308//311 332//335 309//312 +f 300//303 301//304 304//307 +f 402//421 404//423 405//424 +f 271//274 268//270 267//269 +f 272//275 181//355 273//276 +f 273//276 181//355 178//346 +f 273//276 231//231 342//347 +f 342//347 231//231 401//420 +f 405//424 401//420 391//410 +f 405//424 391//410 402//421 +f 403//422 402//421 392//411 +f 393//412 391//410 395//414 +f 395//414 391//410 265//267 +f 395//414 265//267 388//406 +f 388//406 265//267 225//408 +f 388//406 225//408 389//407 +f 301//304 299//302 310//313 +f 301//304 310//313 305//308 +f 332//335 317//320 313//316 +f 314//317 321//324 316//319 +f 367//385 318//321 320//323 +f 367//385 320//323 368//386 +f 367//385 368//386 275//278 +f 370//388 372//390 374//392 +f 374//392 363//381 364//382 +f 363//381 375//393 386//404 +f 363//381 386//404 358//376 +f 358//376 386//404 279//282 +f 268//270 343//348 274//277 +f 343//348 342//347 344//349 +f 344//349 342//347 347//352 +f 347//352 404//423 345//350 +f 313//316 346//351 332//335 +f 277//280 279//282 41//41 +f 42//42 130//130 129//129 +f 129//129 41//41 42//42 +f 128//128 127//127 43//43 +f 406//425 35//35 407//426 +f 36//36 408//427 35//35 +f 35//35 408//427 407//426 +f 382//400 381//399 39//39 +f 42//42 223//223 130//130 +f 43//43 127//127 223//223 +f 43//43 223//223 42//42 +f 45//45 94//94 44//44 +f 44//44 94//94 224//224 +f 409//428 37//37 410//429 +f 38//38 387//405 37//37 +f 37//37 387//405 410//429 +f 44//44 128//128 43//43 +f 44//44 224//224 128//128 +f 406//425 411//430 35//35 +f 36//36 412//431 408//427 +f 383//401 382//400 39//39 +f 40//40 385//403 383//401 +f 40//40 383//401 39//39 +f 279//282 386//404 40//40 +f 41//41 279//282 40//40 +f 41//41 129//129 277//280 +f 125//125 94//94 45//45 +f 413//432 47//47 414//433 +f 414//433 47//47 48//48 +f 35//35 411//430 34//34 +f 409//428 412//431 37//37 +f 37//37 412//431 36//36 +f 380//398 387//405 38//38 +f 39//39 381//399 38//38 +f 38//38 381//399 380//398 +f 45//45 122//122 125//125 +f 45//45 123//123 122//122 +f 48//48 415//434 416//435 +f 417//436 418//437 34//34 +f 34//34 418//437 33//33 +f 411//430 417//436 34//34 +f 40//40 386//404 385//403 +f 46//46 123//123 45//45 +f 46//46 419//438 123//123 +f 48//48 416//435 414//433 +f 33//33 415//434 48//48 +f 33//33 418//437 415//434 +f 47//47 413//432 420//439 +f 47//47 420//439 46//46 +f 46//46 420//439 419//438 +f 97//97 100//100 61//61 +f 421//440 54//54 55//55 +f 67//67 421//440 55//55 +f 67//67 55//55 56//56 +f 67//67 56//56 65//65 +f 57//57 80//80 56//56 +f 59//59 107//107 58//58 +f 58//58 107//107 109//109 +f 60//60 103//103 102//102 +f 298//301 97//97 62//62 +f 56//56 80//80 65//65 +f 58//58 109//109 76//76 +f 60//60 105//105 59//59 +f 60//60 102//102 105//105 +f 62//62 97//97 61//61 +f 50//50 260//260 49//49 +f 57//57 78//78 80//80 +f 58//58 76//76 78//78 +f 58//58 78//78 57//57 +f 59//59 105//105 107//107 +f 61//61 100//100 103//103 +f 61//61 103//103 60//60 +f 64//64 293//296 63//63 +f 63//63 293//296 295//298 +f 293//296 64//64 290//293 +f 49//49 260//260 288//291 +f 50//50 263//263 260//260 +f 54//54 422//441 423//442 +f 54//54 423//442 53//53 +f 63//63 295//298 296//299 +f 51//51 254//254 50//50 +f 50//50 254//254 263//263 +f 54//54 421//440 422//441 +f 296//299 298//301 63//63 +f 63//63 298//301 62//62 +f 49//49 288//291 290//293 +f 49//49 290//293 64//64 +f 51//51 52//52 424//443 +f 51//51 252//252 254//254 +f 425//444 424//443 52//52 +f 53//53 425//444 52//52 +f 53//53 423//442 425//444 +f 424//443 253//253 51//51 +f 51//51 253//253 252//252 +f 426//445 427//446 428//447 +f 429//448 430//449 431//450 +f 432//451 433//452 431//450 +f 434//453 435//454 436//455 +f 437//456 438//457 439//458 +f 440//459 441//460 442//461 +f 443//462 444//463 445//464 +f 446//465 445//464 447//466 +f 446//465 447//466 448//467 +f 446//465 448//467 449//468 +f 446//465 449//468 450//469 +f 451//470 448//467 447//466 +f 452//471 453//472 454//473 +f 454//473 453//472 455//474 +f 453//472 452//471 456//475 +f 456//475 452//471 457//476 +f 458//477 456//475 459//478 +f 459//478 456//475 457//476 +f 459//478 460//479 458//477 +f 461//480 462//481 463//482 +f 464//483 462//481 461//480 +f 465//484 466//485 467//486 +f 465//484 468//487 466//485 +f 468//487 465//484 469//488 +f 468//487 469//488 430//449 +f 470//489 454//473 451//470 +f 451//470 454//473 455//474 +f 471//490 457//476 452//471 +f 471//490 452//471 472//491 +f 472//491 452//471 454//473 +f 472//491 454//473 470//489 +f 470//489 444//463 472//491 +f 471//490 473//492 457//476 +f 436//455 435//454 474//493 +f 475//494 436//455 476//495 +f 477//496 475//494 478//497 +f 477//496 478//497 479//498 +f 435//454 480//499 474//493 +f 436//455 474//493 476//495 +f 475//494 476//495 478//497 +f 480//499 432//451 474//493 +f 476//495 474//493 481//500 +f 479//498 478//497 461//480 +f 478//497 482//501 461//480 +f 461//480 482//501 464//483 +f 480//499 433//452 432//451 +f 474//493 432//451 465//484 +f 474//493 465//484 481//500 +f 476//495 481//500 478//497 +f 478//497 481//500 482//501 +f 432//451 431//450 469//488 +f 432//451 469//488 465//484 +f 482//501 483//502 464//483 +f 431//450 430//449 469//488 +f 481//500 465//484 467//486 +f 481//500 467//486 482//501 +f 482//501 467//486 483//502 +f 427//446 442//461 484//503 +f 485//504 459//478 473//492 +f 485//504 473//492 486//505 +f 486//505 473//492 471//490 +f 486//505 471//490 487//506 +f 457//476 473//492 459//478 +f 459//478 485//504 460//479 +f 487//506 427//446 426//445 +f 487//506 426//445 486//505 +f 486//505 479//498 485//504 +f 485//504 479//498 461//480 +f 461//480 463//482 460//479 +f 461//480 460//479 485//504 +f 427//446 484//503 428//447 +f 428//447 484//503 439//458 +f 439//458 438//457 428//447 +f 437//456 488//507 438//457 +f 438//457 477//496 428//447 +f 488//507 434//453 436//455 +f 488//507 436//455 438//457 +f 438//457 436//455 475//494 +f 438//457 475//494 477//496 +f 428//447 477//496 426//445 +f 426//445 477//496 479//498 +f 426//445 479//498 486//505 +f 445//464 444//463 470//489 +f 445//464 470//489 447//466 +f 447//466 470//489 451//470 +f 444//463 443//462 489//508 +f 444//463 489//508 490//509 +f 490//509 489//508 440//459 +f 443//462 441//460 489//508 +f 489//508 441//460 440//459 +f 442//461 427//446 440//459 +f 440//459 427//446 487//506 +f 440//459 487//506 490//509 +f 490//509 487//506 471//490 +f 490//509 471//490 472//491 +f 490//509 472//491 444//463 +f 414//433 416//435 431//450 +f 491//510 492//511 493//512 +f 494//513 117//117 116//116 +f 494//513 116//116 119//119 +f 491//510 164//164 117//117 +f 495//514 113//113 114//114 +f 496//515 113//113 495//514 +f 496//515 77//77 113//113 +f 75//75 77//77 496//515 +f 497//516 69//69 73//73 +f 497//516 498//517 70//70 +f 69//69 497//516 70//70 +f 499//518 500//519 498//517 +f 499//518 498//517 497//516 +f 446//465 450//469 499//518 +f 499//518 450//469 500//519 +f 501//520 502//521 494//513 +f 434//453 437//456 503//522 +f 504//523 433//452 434//453 +f 505//524 414//433 431//450 +f 505//524 413//432 414//433 +f 506//525 420//439 413//432 +f 507//526 419//438 420//439 +f 508//527 123//123 419//438 +f 121//121 123//123 508//527 +f 73//73 72//72 509//528 +f 509//528 72//72 510//529 +f 492//511 445//464 511//530 +f 511//530 445//464 510//529 +f 510//529 445//464 446//465 +f 510//529 446//465 509//528 +f 509//528 497//516 73//73 +f 499//518 497//516 509//528 +f 499//518 509//528 446//465 +f 501//520 494//513 119//119 +f 502//521 501//520 437//456 +f 503//522 437//456 512//531 +f 512//531 437//456 501//520 +f 512//531 501//520 121//121 +f 121//121 501//520 119//119 +f 121//121 119//119 120//120 +f 503//522 506//525 434//453 +f 434//453 506//525 504//523 +f 508//527 419//438 507//526 +f 507//526 420//439 506//525 +f 506//525 413//432 504//523 +f 504//523 413//432 505//524 +f 431//450 416//435 429//448 +f 431//450 433//452 505//524 +f 505//524 433//452 504//523 +f 506//525 503//522 507//526 +f 507//526 503//522 512//531 +f 507//526 512//531 508//527 +f 508//527 512//531 121//121 +f 493//512 495//514 491//510 +f 491//510 495//514 114//114 +f 491//510 114//114 164//164 +f 495//514 493//512 496//515 +f 496//515 493//512 79//79 +f 496//515 79//79 75//75 +f 75//75 79//79 74//74 +f 493//512 492//511 511//530 +f 493//512 511//530 79//79 +f 79//79 511//530 72//72 +f 510//529 72//72 511//530 +f 418//437 513//532 514//533 +f 418//437 515//534 513//532 +f 411//430 516//535 515//534 +f 516//535 411//430 517//536 +f 517//536 411//430 406//425 +f 515//534 417//436 411//430 +f 515//534 418//437 417//436 +f 418//437 514//533 415//434 +f 415//434 514//533 518//537 +f 416//435 415//434 519//538 +f 519//538 415//434 518//537 +f 429//448 416//435 519//538 +f 520//539 521//540 522//541 +f 283//286 523//542 524//543 +f 285//288 336//339 525//544 +f 526//545 527//546 528//547 +f 529//548 530//549 531//550 +f 532//551 533//552 529//548 +f 529//548 533//552 530//549 +f 258//258 250//250 532//551 +f 286//289 259//259 534//553 +f 534//553 311//314 286//289 +f 525//544 335//338 311//314 +f 336//339 335//338 525//544 +f 283//286 285//288 523//542 +f 387//405 282//285 410//429 +f 535//554 409//428 410//429 +f 521//540 408//427 412//431 +f 536//555 408//427 521//540 +f 407//426 408//427 536//555 +f 517//536 406//425 407//426 +f 527//546 526//545 529//548 +f 531//550 527//546 529//548 +f 537//556 538//557 524//543 +f 524//543 538//557 281//284 +f 524//543 281//284 283//286 +f 539//558 538//557 537//556 +f 539//558 537//556 540//559 +f 522//541 521//540 540//559 +f 540//559 521//540 539//558 +f 538//557 539//558 535//554 +f 538//557 535//554 282//285 +f 538//557 282//285 281//284 +f 517//536 407//426 541//560 +f 541//560 407//426 536//555 +f 521//540 412//431 539//558 +f 539//558 412//431 409//428 +f 535//554 410//429 282//285 +f 535//554 539//558 409//428 +f 521//540 520//539 536//555 +f 536//555 520//539 541//560 +f 534//553 259//259 261//261 +f 534//553 261//261 262//262 +f 542//561 311//314 534//553 +f 542//561 534//553 543//562 +f 543//562 534//553 262//262 +f 543//562 262//262 264//264 +f 543//562 264//264 544//563 +f 544//563 264//264 257//257 +f 544//563 257//257 256//256 +f 525//544 311//314 542//561 +f 525//544 542//561 545//564 +f 528//547 545//564 543//562 +f 528//547 543//562 526//545 +f 258//258 532//551 529//548 +f 258//258 529//548 256//256 +f 256//256 529//548 526//545 +f 256//256 526//545 544//563 +f 544//563 526//545 543//562 +f 543//562 545//564 542//561 +f 533//552 546//565 530//549 +f 547//566 546//565 533//552 +f 548//567 549//568 550//569 +f 550//569 549//568 551//570 +f 551//570 552//571 550//569 +f 552//571 551//570 553//572 +f 554//573 555//574 556//575 +f 450//469 555//574 500//519 +f 500//519 555//574 557//576 +f 557//576 555//574 554//573 +f 557//576 498//517 500//519 +f 67//67 68//68 558//577 +f 421//440 558//577 559//578 +f 422//441 421//440 559//578 +f 422//441 560//579 423//442 +f 423//442 560//579 561//580 +f 423//442 561//580 425//444 +f 562//581 425//444 561//580 +f 424//443 425//444 562//581 +f 424//443 562//581 563//582 +f 424//443 563//582 249//249 +f 424//443 249//249 253//253 +f 250//250 564//583 532//551 +f 421//440 67//67 558//577 +f 422//441 559//578 560//579 +f 554//573 556//575 553//572 +f 553//572 556//575 565//584 +f 553//572 565//584 552//571 +f 498//517 557//576 566//585 +f 566//585 557//576 554//573 +f 566//585 554//573 553//572 +f 564//583 567//586 533//552 +f 564//583 533//552 532//551 +f 549//568 548//567 568//587 +f 568//587 548//567 547//566 +f 568//587 547//566 567//586 +f 567//586 547//566 533//552 +f 68//68 70//70 558//577 +f 558//577 70//70 569//588 +f 570//589 564//583 571//590 +f 571//590 564//583 250//250 +f 559//578 558//577 569//588 +f 559//578 569//588 560//579 +f 560//579 569//588 572//591 +f 560//579 572//591 573//592 +f 560//579 573//592 561//580 +f 561//580 573//592 574//593 +f 561//580 574//593 562//581 +f 562//581 574//593 570//589 +f 562//581 570//589 563//582 +f 563//582 570//589 571//590 +f 563//582 571//590 249//249 +f 249//249 571//590 250//250 +f 70//70 498//517 569//588 +f 569//588 498//517 566//585 +f 569//588 566//585 572//591 +f 572//591 566//585 553//572 +f 572//591 553//572 573//592 +f 573//592 553//572 551//570 +f 573//592 551//570 574//593 +f 574//593 551//570 549//568 +f 574//593 549//568 570//589 +f 570//589 549//568 568//587 +f 570//589 568//587 564//583 +f 564//583 568//587 567//586 +f 575//594 576//595 577//596 +f 531//550 530//549 578//597 +f 579//598 580//599 541//560 +f 581//600 579//598 541//560 +f 582//601 583//602 584//603 +f 585//604 586//605 587//606 +f 588//607 589//608 590//609 +f 591//610 588//607 590//609 +f 591//610 592//611 588//607 +f 593//612 594//613 595//614 +f 594//613 596//615 595//614 +f 597//616 531//550 598//617 +f 599//618 598//617 600//619 +f 601//620 602//621 599//618 +f 602//621 576//595 603//622 +f 599//618 597//616 598//617 +f 604//623 605//624 606//625 +f 606//625 605//624 600//619 +f 606//625 600//619 595//614 +f 607//626 590//609 608//627 +f 609//628 610//629 611//630 +f 611//630 610//629 522//541 +f 612//631 522//541 613//632 +f 613//632 522//541 610//629 +f 613//632 610//629 614//633 +f 614//633 610//629 584//603 +f 584//603 610//629 609//628 +f 584//603 609//628 615//634 +f 616//635 584//603 615//634 +f 617//636 586//605 618//637 +f 617//636 618//637 590//609 +f 591//610 590//609 604//623 +f 608//627 590//609 618//637 +f 586//605 616//635 615//634 +f 586//605 615//634 619//638 +f 619//638 618//637 586//605 +f 616//635 586//605 585//604 +f 616//635 585//604 620//639 +f 607//626 605//624 604//623 +f 607//626 604//623 590//609 +f 587//606 586//605 617//636 +f 589//608 617//636 590//609 +f 592//611 591//610 604//623 +f 592//611 604//623 596//615 +f 596//615 604//623 606//625 +f 596//615 606//625 595//614 +f 593//612 595//614 578//597 +f 620//639 582//601 616//635 +f 584//603 616//635 582//601 +f 541//560 612//631 613//632 +f 541//560 613//632 581//600 +f 581//600 613//632 621//640 +f 621//640 613//632 614//633 +f 621//640 614//633 583//602 +f 583//602 614//633 584//603 +f 601//620 576//595 602//621 +f 608//627 622//641 607//626 +f 607//626 622//641 575//594 +f 622//641 623//642 575//594 +f 575//594 623//642 624//643 +f 608//627 623//642 622//641 +f 608//627 619//638 623//642 +f 576//595 624//643 603//622 +f 603//622 624//643 625//644 +f 624//643 626//645 625//644 +f 625//644 626//645 627//646 +f 611//630 627//646 609//628 +f 609//628 627//646 626//645 +f 576//595 575//594 624//643 +f 624//643 623//642 626//645 +f 626//645 623//642 619//638 +f 626//645 619//638 609//628 +f 595//614 598//617 531//550 +f 595//614 531//550 578//597 +f 575//594 577//596 600//619 +f 600//619 577//596 599//618 +f 576//595 601//620 577//596 +f 577//596 601//620 599//618 +f 615//634 609//628 619//638 +f 618//637 619//638 608//627 +f 607//626 575//594 605//624 +f 605//624 575//594 600//619 +f 600//619 598//617 595//614 +f 435//454 434//453 433//452 +f 435//454 433//452 480//499 +f 502//521 437//456 439//458 +f 434//453 488//507 437//456 +f 502//521 439//458 494//513 +f 494//513 439//458 484//503 +f 445//464 492//511 443//462 +f 443//462 492//511 491//510 +f 443//462 491//510 441//460 +f 494//513 484//503 442//461 +f 494//513 442//461 117//117 +f 441//460 491//510 117//117 +f 441//460 117//117 442//461 +f 520//539 522//541 612//631 +f 520//539 612//631 541//560 +f 580//599 517//536 541//560 +f 611//630 522//541 540//559 +f 611//630 540//559 537//556 +f 611//630 537//556 627//646 +f 627//646 537//556 625//644 +f 625//644 537//556 524//543 +f 524//543 523//542 603//622 +f 527//546 531//550 597//616 +f 527//546 597//616 528//547 +f 528//547 597//616 599//618 +f 625//644 524//543 603//622 +f 528//547 599//618 545//564 +f 602//621 525//544 599//618 +f 285//288 602//621 523//542 +f 523//542 602//621 603//622 +f 545//564 599//618 525//544 +f 602//621 285//288 525//544 +f 628//647 629//648 630//649 +f 518//537 514//533 631//650 +f 514//533 513//532 632//651 +f 513//532 515//534 632//651 +f 588//607 592//611 633//652 +f 546//565 578//597 530//549 +f 594//613 593//612 578//597 +f 596//615 594//613 634//653 +f 596//615 634//653 592//611 +f 635//654 588//607 633//652 +f 635//654 589//608 588//607 +f 589//608 635//654 617//636 +f 587//606 617//636 636//655 +f 636//655 617//636 635//654 +f 637//656 587//606 636//655 +f 637//656 585//604 587//606 +f 585//604 637//656 638//657 +f 585//604 638//657 620//639 +f 620//639 638//657 639//658 +f 620//639 639//658 582//601 +f 582//601 639//658 583//602 +f 640//659 583//602 639//658 +f 640//659 621//640 583//602 +f 641//660 621//640 640//659 +f 641//660 581//600 621//640 +f 579//598 581//600 641//660 +f 517//536 580//599 579//598 +f 518//537 642//661 519//538 +f 643//662 429//448 519//538 +f 643//662 430//449 429//448 +f 644//663 430//449 643//662 +f 644//663 468//487 430//449 +f 645//664 468//487 644//663 +f 645//664 466//485 468//487 +f 645//664 467//486 466//485 +f 483//502 467//486 646//665 +f 483//502 646//665 647//666 +f 647//666 464//483 483//502 +f 464//483 647//666 648//667 +f 648//667 462//481 464//483 +f 463//482 462//481 648//667 +f 460//479 463//482 649//668 +f 458//477 460//479 649//668 +f 458//477 649//668 650//669 +f 650//669 456//475 458//477 +f 651//670 453//472 456//475 +f 651//670 456//475 650//669 +f 652//671 453//472 651//670 +f 652//671 455//474 453//472 +f 455//474 652//671 653//672 +f 653//672 451//470 455//474 +f 451//470 653//672 654//673 +f 655//674 448//467 654//673 +f 654//673 448//467 451//470 +f 555//574 450//469 449//468 +f 556//575 555//574 655//674 +f 655//674 555//574 449//468 +f 655//674 449//468 448//467 +f 629//648 628//647 656//675 +f 657//676 658//677 659//678 +f 659//678 658//677 660//679 +f 659//678 660//679 661//680 +f 661//680 660//679 656//675 +f 661//680 656//675 662//681 +f 662//681 656//675 628//647 +f 628//647 630//649 550//569 +f 663//682 664//683 665//684 +f 663//682 665//684 666//685 +f 631//650 514//533 632//651 +f 631//650 632//651 667//686 +f 668//687 669//688 670//689 +f 668//687 670//689 671//690 +f 671//690 670//689 672//691 +f 672//691 670//689 673//692 +f 672//691 673//692 674//693 +f 674//693 673//692 675//694 +f 674//693 675//694 676//695 +f 676//695 675//694 677//696 +f 676//695 677//696 678//697 +f 678//697 677//696 679//698 +f 678//697 679//698 680//699 +f 680//699 679//698 666//685 +f 666//685 679//698 663//682 +f 664//683 663//682 681//700 +f 664//683 681//700 658//677 +f 664//683 658//677 657//676 +f 682//701 631//650 667//686 +f 682//701 667//686 683//702 +f 683//702 667//686 669//688 +f 683//702 669//688 668//687 +f 642//661 518//537 631//650 +f 642//661 631//650 682//701 +f 684//703 683//702 668//687 +f 684//703 668//687 685//704 +f 685//704 668//687 671//690 +f 685//704 671//690 672//691 +f 685//704 672//691 686//705 +f 686//705 672//691 674//693 +f 686//705 674//693 676//695 +f 687//706 676//695 678//697 +f 687//706 678//697 688//707 +f 688//707 678//697 680//699 +f 688//707 680//699 689//708 +f 689//708 680//699 666//685 +f 689//708 666//685 665//684 +f 690//709 665//684 664//683 +f 690//709 664//683 657//676 +f 552//571 628//647 550//569 +f 691//710 642//661 682//701 +f 691//710 682//701 692//711 +f 692//711 682//701 683//702 +f 692//711 683//702 684//703 +f 693//712 685//704 694//713 +f 694//713 685//704 686//705 +f 694//713 686//705 695//714 +f 695//714 686//705 676//695 +f 695//714 676//695 687//706 +f 696//715 689//708 665//684 +f 696//715 665//684 690//709 +f 697//716 690//709 657//676 +f 697//716 657//676 698//717 +f 698//717 657//676 659//678 +f 698//717 659//678 699//718 +f 699//718 659//678 661//680 +f 699//718 661//680 700//719 +f 700//719 661//680 662//681 +f 700//719 662//681 628//647 +f 700//719 628//647 565//584 +f 565//584 628//647 552//571 +f 692//711 684//703 701//720 +f 701//720 684//703 685//704 +f 701//720 685//704 693//712 +f 702//721 695//714 687//706 +f 702//721 687//706 703//722 +f 703//722 687//706 688//707 +f 703//722 688//707 696//715 +f 696//715 688//707 689//708 +f 643//662 519//538 642//661 +f 643//662 642//661 644//663 +f 644//663 642//661 691//710 +f 644//663 691//710 645//664 +f 645//664 691//710 692//711 +f 645//664 692//711 701//720 +f 646//665 701//720 693//712 +f 646//665 693//712 647//666 +f 647//666 693//712 694//713 +f 647//666 694//713 648//667 +f 648//667 694//713 695//714 +f 648//667 695//714 702//721 +f 650//669 696//715 690//709 +f 650//669 690//709 651//670 +f 651//670 690//709 697//716 +f 651//670 697//716 652//671 +f 652//671 697//716 698//717 +f 652//671 698//717 653//672 +f 653//672 698//717 699//718 +f 653//672 699//718 654//673 +f 654//673 699//718 700//719 +f 654//673 700//719 655//674 +f 655//674 700//719 556//575 +f 556//575 700//719 565//584 +f 467//486 645//664 701//720 +f 467//486 701//720 646//665 +f 463//482 648//667 702//721 +f 463//482 702//721 649//668 +f 649//668 702//721 703//722 +f 649//668 703//722 696//715 +f 649//668 696//715 650//669 +f 516//535 517//536 704//723 +f 704//723 517//536 579//598 +f 704//723 579//598 641//660 +f 640//659 705//724 641//660 +f 669//688 706//725 707//726 +f 670//689 707//726 708//727 +f 670//689 708//727 673//692 +f 673//692 708//727 709//728 +f 673//692 709//728 675//694 +f 675//694 709//728 677//696 +f 677//696 709//728 710//729 +f 705//724 640//659 711//730 +f 711//730 640//659 639//658 +f 711//730 639//658 712//731 +f 712//731 639//658 638//657 +f 713//732 637//656 636//655 +f 547//566 714//733 546//565 +f 578//597 546//565 714//733 +f 578//597 714//733 715//734 +f 578//597 715//734 594//613 +f 594//613 715//734 634//653 +f 634//653 716//735 592//611 +f 592//611 716//735 633//652 +f 633//652 716//735 717//736 +f 633//652 717//736 635//654 +f 635//654 717//736 718//737 +f 635//654 718//737 713//732 +f 635//654 713//732 636//655 +f 637//656 712//731 638//657 +f 706//725 705//724 707//726 +f 707//726 705//724 711//730 +f 707//726 711//730 708//727 +f 708//727 711//730 719//738 +f 548//567 720//739 547//566 +f 681//700 721//740 722//741 +f 681//700 722//741 723//742 +f 629//648 724//743 720//739 +f 629//648 720//739 630//649 +f 550//569 630//649 548//567 +f 632//651 515//534 725//744 +f 632//651 725//744 726//745 +f 726//745 725//744 727//746 +f 726//745 727//746 706//725 +f 706//725 727//746 705//724 +f 709//728 708//727 719//738 +f 709//728 719//738 728//747 +f 709//728 728//747 710//729 +f 710//729 728//747 729//748 +f 710//729 729//748 730//749 +f 730//749 729//748 731//750 +f 730//749 731//750 732//751 +f 732//751 731//750 721//740 +f 721//740 731//750 733//752 +f 721//740 733//752 722//741 +f 723//742 722//741 734//753 +f 723//742 734//753 735//754 +f 735//754 734//753 736//755 +f 735//754 736//755 724//743 +f 724//743 736//755 737//756 +f 724//743 737//756 720//739 +f 630//649 720//739 548//567 +f 725//744 515//534 516//535 +f 725//744 516//535 704//723 +f 725//744 704//723 727//746 +f 727//746 704//723 641//660 +f 727//746 641//660 705//724 +f 719//738 711//730 712//731 +f 719//738 712//731 728//747 +f 728//747 712//731 729//748 +f 729//748 712//731 637//656 +f 729//748 637//656 731//750 +f 731//750 637//656 713//732 +f 731//750 713//732 733//752 +f 733//752 713//732 718//737 +f 733//752 718//737 722//741 +f 722//741 718//737 717//736 +f 722//741 717//736 734//753 +f 734//753 717//736 716//735 +f 734//753 716//735 736//755 +f 736//755 716//735 634//653 +f 736//755 634//653 737//756 +f 737//756 634//653 715//734 +f 737//756 715//734 720//739 +f 720//739 715//734 714//733 +f 720//739 714//733 547//566 +f 667//686 632//651 726//745 +f 667//686 726//745 669//688 +f 669//688 726//745 706//725 +f 670//689 669//688 707//726 +f 677//696 710//729 679//698 +f 679//698 710//729 730//749 +f 679//698 730//749 732//751 +f 679//698 732//751 663//682 +f 663//682 732//751 721//740 +f 663//682 721//740 681//700 +f 658//677 681//700 723//742 +f 658//677 723//742 660//679 +f 660//679 723//742 735//754 +f 660//679 735//754 656//675 +f 656//675 735//754 724//743 +f 656//675 724//743 629//648 diff --git a/data/kuka_iiwa/meshes/link_3.mtl b/data/kuka_iiwa/meshes/link_3.mtl new file mode 100644 index 000000000..70d3ba1da --- /dev/null +++ b/data/kuka_iiwa/meshes/link_3.mtl @@ -0,0 +1,10 @@ +# Blender MTL File: 'None' +# Material Count: 1 + +newmtl None +Ns 0 +Ka 0.000000 0.000000 0.000000 +Kd 0.8 0.8 0.8 +Ks 0.8 0.8 0.8 +d 1 +illum 2 diff --git a/data/kuka_iiwa/meshes/link_3.obj b/data/kuka_iiwa/meshes/link_3.obj new file mode 100644 index 000000000..16cbf3178 --- /dev/null +++ b/data/kuka_iiwa/meshes/link_3.obj @@ -0,0 +1,3924 @@ +# Blender v2.71 (sub 0) OBJ File: '' +# www.blender.org +mtllib link_3.mtl +o Link_3 +v -0.039465 0.055310 0.020607 +v -0.037521 0.056645 0.020606 +v -0.041450 0.053817 0.014758 +v -0.035433 0.057944 0.014758 +v 0.035435 -0.057958 0.014758 +v 0.041450 -0.053802 0.014758 +v 0.039465 -0.055316 0.020607 +v 0.037520 -0.056639 0.020606 +v -0.010273 0.022882 -0.010000 +v -0.001884 0.025009 -0.010000 +v 0.010400 -0.022823 -0.010000 +v 0.006448 0.024226 -0.010000 +v 0.002019 -0.024997 -0.010000 +v -0.004341 -0.024620 -0.010000 +v -0.010925 -0.022574 -0.010000 +v -0.024165 0.006702 -0.010000 +v -0.021651 0.012500 -0.010000 +v 0.017982 0.017480 -0.010000 +v 0.022546 -0.010982 -0.010000 +v 0.012500 0.021651 -0.010000 +v 0.017519 -0.017943 -0.010000 +v -0.019447 -0.016063 -0.010000 +v -0.024194 -0.006702 -0.010000 +v -0.025000 0.000000 -0.010000 +v -0.017442 0.018021 -0.010000 +v 0.022853 0.010335 -0.010000 +v 0.025004 0.001951 -0.010000 +v 0.024620 -0.004341 -0.010000 +v -0.048031 0.048172 0.008389 +v -0.042880 0.052718 0.024651 +v -0.042618 0.052873 0.011238 +v -0.043556 0.052163 0.008383 +v -0.033900 0.058946 0.024653 +v -0.034195 0.058759 0.011240 +v -0.027769 0.062061 0.008389 +v -0.033108 0.059348 0.008384 +v 0.027549 -0.062157 0.008276 +v 0.033110 -0.059360 0.008390 +v 0.033902 -0.058932 0.024651 +v 0.034195 -0.058759 0.011240 +v 0.043557 -0.052166 0.008383 +v 0.048036 -0.048170 0.008390 +v 0.042618 -0.052872 0.011238 +v 0.042873 -0.052704 0.024652 +v 0.013452 -0.066632 0.018685 +v 0.013322 -0.066687 0.014618 +v 0.017775 -0.065631 0.016701 +v 0.020232 -0.064871 0.008385 +v 0.020236 -0.064864 0.024650 +v 0.027062 -0.062510 0.024574 +v 0.005882 -0.067738 0.008383 +v 0.011032 -0.067096 0.008383 +v 0.005876 -0.067719 0.024650 +v 0.011030 -0.067032 0.014629 +v 0.011033 -0.067094 0.024651 +v 0.011029 -0.067023 0.018674 +v -0.015406 -0.066204 0.008188 +v -0.012817 -0.066738 0.012309 +v -0.013894 -0.066498 0.012909 +v -0.018582 -0.065362 0.010036 +v -0.014597 -0.066348 0.014060 +v -0.019632 -0.065050 0.012473 +v -0.014660 -0.066381 0.024651 +v -0.019684 -0.065064 0.024651 +v -0.005169 -0.067750 0.012437 +v -0.002986 -0.067895 0.008226 +v 0.001235 -0.067929 0.012021 +v 0.001356 -0.067985 0.024651 +v -0.003837 -0.067866 0.024651 +v -0.003906 -0.067827 0.014055 +v -0.000145 -0.067952 0.009744 +v -0.024976 0.002080 0.000000 +v -0.024216 -0.006947 -0.000000 +v -0.018868 -0.016729 -0.000000 +v -0.010347 -0.022842 -0.000000 +v -0.001373 -0.025121 -0.000000 +v 0.009313 -0.023444 -0.000000 +v 0.018053 -0.017401 -0.000000 +v 0.022768 -0.010513 -0.000000 +v 0.024659 -0.004243 -0.000000 +v 0.024916 0.002832 -0.000000 +v 0.021782 0.012662 0.000000 +v 0.016558 0.018769 -0.000000 +v 0.009835 0.023149 0.000000 +v -0.000605 0.025207 -0.000000 +v -0.010891 0.022592 -0.000000 +v -0.018528 0.016979 -0.000000 +v -0.023324 0.009306 0.000000 +v -0.034630 -0.058524 0.014620 +v -0.028242 -0.061806 0.008382 +v -0.026386 -0.062610 0.012827 +v -0.030552 -0.060758 0.016742 +v -0.028294 -0.061813 0.024640 +v -0.034489 -0.058508 0.018675 +v -0.036554 -0.057331 0.008383 +v -0.036558 -0.057254 0.014629 +v -0.040830 -0.054296 0.008383 +v -0.036560 -0.057241 0.018674 +v -0.036552 -0.057312 0.024651 +v -0.040825 -0.054348 0.024651 +v -0.021415 -0.064513 0.024651 +v -0.021416 -0.064516 0.008384 +v -0.013452 0.066633 0.018685 +v -0.013322 0.066687 0.014618 +v -0.017775 0.065631 0.016701 +v -0.020232 0.064871 0.008385 +v -0.020235 0.064865 0.024650 +v -0.027062 0.062510 0.024574 +v -0.027124 0.062350 0.008384 +v -0.005882 0.067738 0.008383 +v -0.011032 0.067096 0.008383 +v -0.005877 0.067705 0.024651 +v -0.011030 0.067032 0.014629 +v -0.011033 0.067099 0.024651 +v -0.011029 0.067023 0.018674 +v 0.012729 0.066753 0.012299 +v 0.013898 0.066503 0.012892 +v 0.015234 0.066246 0.008168 +v 0.018540 0.065377 0.009965 +v 0.014608 0.066344 0.014137 +v 0.019635 0.065049 0.012499 +v 0.014660 0.066381 0.024651 +v 0.019685 0.065061 0.024651 +v 0.005166 0.067750 0.012438 +v 0.003947 0.067837 0.008136 +v -0.001249 0.067930 0.012123 +v -0.001356 0.067980 0.024651 +v 0.003837 0.067863 0.024651 +v 0.003907 0.067827 0.014054 +v -0.000376 0.067951 0.010361 +v 0.001341 0.067932 0.008875 +v 0.036554 0.057331 0.008383 +v 0.036558 0.057254 0.014629 +v 0.040830 0.054295 0.008383 +v 0.034630 0.058524 0.014620 +v 0.034489 0.058508 0.018675 +v 0.036560 0.057241 0.018674 +v 0.036553 0.057314 0.024651 +v 0.040825 0.054348 0.024651 +v 0.028242 0.061806 0.008382 +v 0.026387 0.062611 0.012831 +v 0.030552 0.060758 0.016742 +v 0.028295 0.061815 0.024640 +v 0.021415 0.064513 0.024651 +v 0.021417 0.064513 0.008384 +v 0.010652 0.010500 0.238282 +v -0.006327 0.010500 0.191231 +v 0.002054 0.010500 0.190507 +v 0.002288 0.010500 0.240478 +v -0.003895 0.010500 0.240209 +v -0.010570 0.010500 0.238243 +v -0.021729 0.010500 0.227888 +v -0.024281 0.010500 0.221914 +v -0.012573 0.010500 0.193879 +v 0.016229 0.010500 0.196470 +v 0.020628 0.010500 0.201187 +v 0.022479 0.010500 0.226754 +v 0.017328 0.010500 0.233603 +v -0.017551 0.010500 0.233388 +v 0.010327 0.010500 0.192663 +v -0.024848 0.010500 0.211245 +v -0.022204 0.010501 0.203992 +v -0.018004 0.010500 0.198069 +v 0.024217 0.010500 0.208981 +v 0.025010 0.010500 0.217316 +v -0.016457 0.066198 -0.000003 +v -0.034274 0.058937 -0.000001 +v 0.066844 0.013306 0.000000 +v 0.061855 0.028248 0.000000 +v -0.066615 -0.014491 -0.000000 +v -0.067951 0.004923 0.000000 +v 0.016457 -0.066198 -0.000003 +v 0.034274 -0.058937 -0.000001 +v -0.048435 0.047932 0.000001 +v -0.059834 -0.032672 -0.000000 +v -0.059607 0.033052 0.000000 +v -0.047620 -0.048847 -0.000001 +v -0.032228 -0.060034 -0.000000 +v 0.048468 -0.047899 0.000001 +v 0.059833 -0.032672 -0.000000 +v -0.065246 0.019158 0.000000 +v 0.057205 0.036764 0.000000 +v 0.047281 0.049124 -0.000001 +v 0.032228 0.060034 -0.000001 +v -0.000000 0.068000 0.000000 +v 0.013969 0.066662 0.000001 +v -0.013916 -0.066669 0.000001 +v 0.065246 -0.019158 0.000000 +v -0.000000 -0.068000 0.000000 +v 0.067987 -0.004971 0.000000 +v -0.009552 0.000500 0.192395 +v -0.014466 0.000500 0.195013 +v -0.020260 0.000500 0.200576 +v -0.024168 0.000499 0.208712 +v -0.002254 0.000500 0.190524 +v 0.006414 0.000500 0.191220 +v 0.012387 0.000500 0.193772 +v 0.017878 0.000500 0.197938 +v 0.022730 0.000500 0.204901 +v 0.024958 0.000500 0.213043 +v 0.024341 0.000500 0.221663 +v 0.021858 0.000500 0.227658 +v 0.017653 0.000500 0.233313 +v 0.010800 0.000500 0.238133 +v 0.004111 0.000500 0.240174 +v -0.004550 0.000500 0.240298 +v -0.014305 0.000500 0.236134 +v -0.019029 0.000500 0.231731 +v -0.022837 0.000500 0.225826 +v -0.024993 0.000500 0.217554 +v 0.036751 0.002407 0.157885 +v 0.028719 0.001908 0.153509 +v 0.035646 0.004256 0.156193 +v 0.038402 0.013112 0.143458 +v 0.030854 0.008318 0.136738 +v 0.034349 0.009694 0.135766 +v 0.006664 0.004174 0.144617 +v -0.000000 0.004666 0.142199 +v -0.000000 0.004777 0.141102 +v 0.042310 0.008400 0.122765 +v 0.034582 -0.001028 0.117778 +v 0.037558 -0.005655 0.110130 +v 0.000001 -0.015858 0.110712 +v -0.000000 -0.042784 0.088982 +v 0.007421 -0.040810 0.090252 +v 0.053216 -0.015652 0.078030 +v 0.058142 -0.007933 0.072811 +v 0.054102 0.003770 0.094777 +v 0.055588 0.050752 0.137221 +v 0.056106 0.053830 0.155143 +v 0.055480 0.045804 0.144352 +v 0.029512 -0.061330 0.033001 +v 0.041399 -0.054027 0.033000 +v 0.038118 -0.055652 0.038074 +v -0.000000 -0.068009 0.033000 +v 0.006821 -0.067708 0.033000 +v 0.007276 -0.067483 0.040016 +v 0.033973 0.000502 0.156481 +v 0.020914 0.000503 0.150693 +v 0.043507 0.002526 0.162872 +v 0.044622 0.000503 0.164183 +v 0.066718 0.018375 0.207165 +v 0.067216 0.016353 0.213814 +v 0.068036 0.000502 0.215809 +v 0.067452 0.000504 0.206110 +v 0.065439 0.030728 0.208874 +v 0.063390 0.037636 0.197479 +v 0.061728 0.047223 0.196304 +v 0.057665 0.054354 0.171968 +v 0.055406 0.041459 0.131587 +v 0.056519 0.040781 0.117516 +v 0.058957 0.019421 0.091354 +v 0.061682 0.019760 0.077887 +v 0.057877 0.033543 0.103542 +v 0.066021 -0.001038 0.050344 +v 0.066337 0.005142 0.050481 +v 0.057894 -0.028761 0.049397 +v 0.059943 -0.020142 0.054718 +v 0.063768 -0.013133 0.050444 +v 0.062480 -0.023637 0.040787 +v 0.061665 -0.028844 0.033002 +v 0.065148 -0.019550 0.033008 +v 0.067748 -0.006299 0.033010 +v 0.065224 -0.007288 0.049945 +v 0.066840 -0.012685 0.033004 +v 0.056317 -0.033301 0.046110 +v 0.056974 -0.037110 0.033006 +v 0.048306 -0.021313 0.081808 +v 0.042596 -0.028090 0.083052 +v 0.047242 -0.029791 0.073940 +v 0.047945 -0.035819 0.063498 +v 0.048346 -0.043755 0.047539 +v 0.052899 -0.040675 0.041177 +v 0.050429 -0.045710 0.032998 +v 0.050612 0.011530 0.111465 +v 0.044187 -0.004548 0.104464 +v 0.046994 0.011157 0.119016 +v 0.041741 0.001547 0.114409 +v 0.068029 0.000893 0.033004 +v 0.056416 0.017994 0.100654 +v 0.055022 0.030918 0.119785 +v 0.043753 0.014075 0.130400 +v 0.047348 0.019862 0.134098 +v 0.043801 0.016264 0.135697 +v 0.049583 0.025237 0.149048 +v 0.045125 0.019208 0.144620 +v 0.046119 0.020303 0.142857 +v 0.049067 0.019165 0.127024 +v 0.048138 0.022741 0.140895 +v 0.052101 0.030336 0.149179 +v 0.053225 0.030120 0.157725 +v 0.051464 0.024836 0.158486 +v 0.044027 0.017524 0.148504 +v 0.047824 0.020975 0.153258 +v 0.044814 0.016716 0.153037 +v 0.049128 0.017973 0.160252 +v 0.054078 0.022671 0.167088 +v 0.051941 0.014586 0.167503 +v 0.046289 0.009485 0.162457 +v 0.056484 0.012177 0.175956 +v 0.051070 0.005168 0.169703 +v 0.043952 0.014669 0.154493 +v 0.055994 0.028523 0.168691 +v 0.059323 0.016578 0.180604 +v 0.053915 0.036026 0.138656 +v 0.053008 0.021750 0.116849 +v 0.051508 0.027546 0.135417 +v 0.055711 0.042815 0.155369 +v 0.058757 0.044813 0.175303 +v 0.053713 0.035197 0.150426 +v 0.057718 0.040093 0.170355 +v 0.056017 0.035417 0.164529 +v 0.059278 0.029881 0.178104 +v 0.062093 0.029402 0.187346 +v 0.065728 0.000499 0.197915 +v 0.063536 0.000515 0.191407 +v 0.064674 0.025940 0.197560 +v 0.017422 -0.021309 0.104546 +v 0.015826 -0.010851 0.114059 +v 0.022513 -0.005830 0.117691 +v 0.025003 -0.011501 0.111095 +v 0.027306 0.004544 0.130173 +v 0.037444 0.007148 0.126832 +v 0.038581 0.011228 0.133409 +v 0.033675 0.006696 0.129663 +v 0.028759 0.000391 0.122940 +v 0.040569 0.014415 0.139252 +v 0.040169 0.014430 0.141736 +v 0.009147 -0.002775 0.123519 +v -0.000000 -0.003947 0.122436 +v 0.000000 -0.007921 0.118126 +v 0.000000 -0.001798 0.125090 +v 0.006262 0.004087 0.135695 +v 0.000001 0.003301 0.133722 +v 0.007621 0.002473 0.131639 +v 0.000000 0.000963 0.129082 +v 0.010000 -0.000324 0.126788 +v 0.014569 -0.005919 0.119242 +v 0.019532 -0.000856 0.124578 +v 0.020525 0.002582 0.129515 +v 0.015913 0.003507 0.132686 +v 0.023308 0.005522 0.134771 +v 0.017847 0.005295 0.137413 +v 0.021296 0.006309 0.141927 +v 0.012686 0.005135 0.139513 +v 0.000000 0.004462 0.137629 +v -0.000000 0.004316 0.143670 +v -0.000000 0.003582 0.145241 +v -0.000000 0.003866 0.144755 +v -0.000000 0.003991 0.144457 +v -0.000000 0.004309 0.143693 +v -0.000000 0.003071 0.145924 +v -0.000000 0.003353 0.145592 +v 0.005398 0.002416 0.146907 +v 0.000000 0.001734 0.147043 +v -0.000000 0.002237 0.146728 +v -0.000000 0.002237 0.146728 +v -0.000000 0.001217 0.147274 +v -0.000000 0.000504 0.147448 +v -0.000000 0.001083 0.147326 +v 0.007773 0.000515 0.147804 +v 0.000000 0.002686 0.146343 +v 0.000000 0.004757 0.141052 +v 0.010815 0.004955 0.142860 +v 0.011726 0.002295 0.147810 +v 0.021055 0.006011 0.144206 +v 0.022279 0.005383 0.147084 +v 0.027583 0.007686 0.144177 +v 0.027840 0.006710 0.148065 +v 0.018582 0.004063 0.147680 +v 0.000000 0.004672 0.138764 +v 0.017184 0.002310 0.149052 +v 0.024197 0.002953 0.150989 +v 0.030372 0.008649 0.139666 +v 0.026104 0.007313 0.140309 +v 0.040368 0.014140 0.147523 +v 0.037293 0.011198 0.148839 +v 0.035710 0.011255 0.144955 +v 0.031239 0.009153 0.143550 +v 0.032838 0.008102 0.149882 +v 0.027491 0.005099 0.150419 +v 0.033267 0.005929 0.153197 +v 0.038384 0.010448 0.152289 +v 0.038678 0.008658 0.155051 +v 0.042217 0.005670 0.160490 +v 0.044057 0.012041 0.157703 +v 0.051268 0.000500 0.170743 +v 0.056700 0.000505 0.177949 +v 0.061002 0.000500 0.185416 +v 0.009074 -0.066304 0.049778 +v 0.000002 -0.067244 0.048473 +v 0.005822 -0.061793 0.066152 +v -0.000000 -0.059923 0.069983 +v 0.000000 -0.063948 0.061905 +v 0.005346 -0.064949 0.058012 +v 0.018540 -0.065503 0.033000 +v 0.019329 -0.064368 0.044563 +v 0.012941 -0.063652 0.057559 +v 0.023598 -0.060474 0.054662 +v 0.015929 -0.061018 0.062512 +v 0.022176 -0.058190 0.063134 +v 0.005746 -0.050455 0.081568 +v 0.000000 -0.054237 0.077946 +v 0.005363 -0.057303 0.073561 +v 0.013866 -0.058469 0.069090 +v 0.011471 -0.055475 0.074551 +v 0.015119 -0.045858 0.084148 +v 0.021565 -0.050206 0.076789 +v 0.028936 -0.060352 0.043544 +v 0.030447 -0.055560 0.057660 +v 0.024845 -0.054249 0.068240 +v 0.033515 -0.047808 0.069336 +v 0.027835 -0.018650 0.103466 +v 0.032987 -0.041000 0.079102 +v 0.026772 -0.037731 0.086952 +v 0.033458 -0.015549 0.103361 +v 0.037212 -0.026871 0.090164 +v 0.040930 -0.041090 0.068727 +v 0.038951 -0.048506 0.058531 +v 0.040515 -0.052035 0.045610 +v -0.041841 0.015221 0.148469 +v -0.045405 0.015758 0.155766 +v -0.048529 0.019431 0.157422 +v -0.037508 0.012291 0.145699 +v -0.033482 0.010202 0.143164 +v -0.036343 0.010610 0.148808 +v -0.023464 0.005903 0.146651 +v -0.019136 0.005433 0.145220 +v -0.018227 0.004103 0.147566 +v -0.000000 0.002802 0.146240 +v -0.004889 0.001717 0.147255 +v -0.008554 0.000505 0.147914 +v -0.000000 0.004042 0.135768 +v -0.002407 0.004819 0.139918 +v -0.021985 0.006170 0.138713 +v -0.028439 0.007738 0.138120 +v -0.019121 0.004212 0.133394 +v -0.025652 -0.009373 0.113087 +v -0.035606 0.000078 0.118383 +v -0.028467 -0.016563 0.105110 +v -0.052516 0.031639 0.142356 +v -0.055512 0.038435 0.159146 +v -0.055680 0.042808 0.155058 +v -0.053743 0.029839 0.160084 +v -0.050081 0.024502 0.153997 +v -0.052451 0.023957 0.162151 +v -0.040967 0.015209 0.142976 +v -0.045208 0.019228 0.145464 +v -0.043113 0.016687 0.139849 +v -0.061831 0.046793 0.196543 +v -0.057567 0.056093 0.172985 +v -0.057906 0.048951 0.170527 +v -0.067725 -0.006462 0.033002 +v -0.065813 -0.017124 0.032998 +v -0.066131 -0.014522 0.037004 +v -0.043270 0.003757 0.162386 +v -0.037420 0.000499 0.158697 +v -0.046651 0.000508 0.165959 +v -0.000000 -0.067286 0.048334 +v -0.009692 -0.067355 0.033001 +v -0.007812 -0.067387 0.040309 +v -0.019797 -0.065061 0.033001 +v -0.019115 -0.064497 0.044000 +v -0.035180 -0.057234 0.040739 +v -0.043757 -0.052040 0.033010 +v -0.035605 -0.057991 0.032998 +v -0.066007 -0.001276 0.050299 +v -0.066572 0.003937 0.048647 +v -0.068032 0.000638 0.033006 +v -0.059735 0.025282 0.089455 +v -0.056694 0.040627 0.115120 +v -0.055741 0.037848 0.122620 +v -0.055743 0.048763 0.131880 +v -0.055768 0.052963 0.148683 +v -0.055833 0.048094 0.150855 +v -0.063273 0.038266 0.197390 +v -0.065937 0.027945 0.210359 +v -0.066516 0.017704 0.204261 +v -0.067689 0.009601 0.214789 +v -0.067492 0.000503 0.206471 +v -0.067941 0.000502 0.219620 +v -0.052632 -0.041461 0.039592 +v -0.051475 -0.044509 0.032997 +v -0.045832 -0.048629 0.041185 +v -0.051309 -0.036302 0.054651 +v -0.055113 -0.030453 0.054552 +v -0.058350 -0.024826 0.053818 +v -0.058335 -0.033045 0.039915 +v -0.058874 -0.034055 0.033000 +v -0.043819 -0.040932 0.063774 +v -0.043918 -0.035296 0.072235 +v -0.048494 -0.025080 0.077215 +v -0.052999 -0.016294 0.078001 +v -0.044850 -0.045472 0.052227 +v -0.061913 -0.021501 0.047035 +v -0.063183 -0.025182 0.033005 +v -0.058142 -0.007933 0.072811 +v -0.064804 -0.011850 0.047733 +v -0.058543 0.004876 0.082756 +v -0.044015 -0.025652 0.083723 +v -0.053010 0.011993 0.105873 +v -0.045256 -0.003021 0.104710 +v -0.048673 0.007977 0.111121 +v -0.057128 0.017872 0.097532 +v -0.044999 0.008747 0.119111 +v -0.040011 0.006793 0.123381 +v -0.044734 0.013631 0.127421 +v -0.044842 0.016433 0.133276 +v -0.041851 0.001368 0.114109 +v -0.048304 0.020415 0.132010 +v -0.049100 0.024074 0.139210 +v -0.045055 0.017977 0.137267 +v -0.050939 0.016218 0.116280 +v -0.049081 0.018976 0.126505 +v -0.052440 0.028347 0.130787 +v -0.053615 0.026164 0.120920 +v -0.050412 0.026760 0.148662 +v -0.052314 0.030296 0.152152 +v -0.046982 0.021476 0.144211 +v -0.046465 0.019693 0.151129 +v -0.051342 0.017279 0.164935 +v -0.054839 0.019855 0.170160 +v -0.047349 0.012518 0.161827 +v -0.054316 0.012198 0.172060 +v -0.052782 0.006343 0.171704 +v -0.048101 0.005743 0.166341 +v -0.055367 0.000511 0.175940 +v -0.057304 0.029787 0.171675 +v -0.058810 0.018445 0.179019 +v -0.062005 0.000503 0.187423 +v -0.061275 0.021607 0.184629 +v -0.055882 0.035353 0.163995 +v -0.054050 0.036758 0.140625 +v -0.054662 0.036729 0.132022 +v -0.059703 0.036897 0.178949 +v -0.065940 0.000508 0.198567 +v -0.061080 0.040530 0.185615 +v -0.005761 -0.043449 0.088188 +v 0.000000 -0.042870 0.088909 +v -0.000001 -0.015249 0.111219 +v -0.014961 -0.006830 0.118275 +v -0.018219 0.000360 0.126438 +v -0.023664 0.000235 0.124826 +v -0.000000 -0.007296 0.118667 +v -0.009915 0.000550 0.128035 +v -0.029939 0.000552 0.122635 +v -0.014327 -0.012309 0.112873 +v -0.034573 0.006428 0.128254 +v -0.038350 0.010533 0.132084 +v -0.033715 0.009104 0.134954 +v -0.037201 0.011689 0.137405 +v -0.029212 0.005195 0.130228 +v -0.000000 -0.002449 0.124196 +v -0.009142 0.002698 0.131994 +v -0.000000 0.002760 0.132429 +v -0.009856 0.004270 0.135911 +v -0.027500 0.006345 0.134253 +v -0.000000 0.004635 0.138392 +v -0.016054 0.005458 0.140083 +v -0.006700 0.004349 0.144069 +v -0.000000 0.001645 0.147093 +v -0.009216 0.003516 0.146058 +v -0.016997 0.002806 0.148556 +v -0.016218 0.005401 0.143211 +v -0.011662 0.001849 0.148049 +v -0.025171 0.004918 0.149414 +v -0.026554 0.003451 0.151633 +v -0.019861 0.000543 0.150452 +v -0.025146 0.001937 0.151961 +v -0.024851 0.007064 0.142481 +v -0.030232 0.008661 0.140509 +v -0.036650 0.011987 0.142059 +v -0.040106 0.013263 0.149546 +v -0.030127 0.008545 0.144405 +v -0.030003 0.007743 0.147526 +v -0.031155 0.006175 0.151457 +v -0.033942 0.004310 0.155069 +v -0.034159 0.001864 0.156364 +v -0.029463 0.000498 0.154151 +v -0.039488 0.005576 0.158268 +v -0.040444 0.008485 0.156874 +v -0.042637 0.012019 0.155834 +v -0.036913 0.009033 0.152683 +v -0.006413 -0.064247 0.060209 +v -0.000000 -0.064087 0.061537 +v -0.004005 -0.059907 0.069918 +v -0.009028 -0.066403 0.049262 +v -0.012705 -0.063695 0.057608 +v -0.014182 -0.058293 0.069248 +v -0.017424 -0.059459 0.064887 +v -0.021373 -0.060333 0.058709 +v 0.000000 -0.059949 0.069963 +v -0.025903 -0.061395 0.045954 +v -0.000001 -0.054051 0.078186 +v -0.009308 -0.054792 0.076224 +v -0.014244 -0.022290 0.104242 +v -0.014831 -0.046247 0.083908 +v -0.021660 -0.049967 0.076944 +v -0.014557 -0.033815 0.094686 +v -0.023506 -0.053481 0.070460 +v -0.029134 -0.053493 0.064700 +v -0.031492 -0.056214 0.053616 +v -0.037144 -0.052872 0.051449 +v -0.026554 -0.062607 0.033000 +v -0.027178 -0.040009 0.084656 +v -0.032858 -0.045359 0.073725 +v -0.038054 -0.007210 0.108089 +v -0.034312 -0.037025 0.082397 +v -0.039335 -0.031799 0.083014 +v -0.036388 -0.047820 0.064658 +v -0.043760 0.052135 0.033000 +v -0.051438 0.044944 0.033000 +v -0.033171 0.059638 0.033010 +v -0.028944 0.061689 0.032999 +v -0.021720 0.064562 0.033000 +v -0.002808 0.068003 0.033002 +v -0.013897 0.066689 0.033001 +v 0.008797 0.067442 0.032997 +v 0.017642 0.065758 0.033001 +v 0.025943 0.063059 0.032999 +v 0.033144 0.059701 0.032997 +v 0.042628 0.052990 0.033000 +v -0.067548 0.008065 0.032999 +v -0.066335 0.015254 0.033001 +v -0.064466 0.021792 0.033003 +v -0.060986 0.030363 0.033002 +v -0.057079 0.037160 0.033005 +v 0.050963 0.045415 0.033000 +v 0.056708 0.037791 0.033003 +v 0.061168 0.029965 0.033002 +v 0.065590 0.018452 0.033002 +v 0.067669 0.007608 0.033001 +v 0.050114 0.046788 0.042169 +v 0.041905 0.054354 0.033001 +v 0.042003 0.054878 0.045298 +v 0.063138 0.024940 0.047261 +v 0.054120 0.042532 0.053657 +v 0.059117 0.034342 0.054422 +v 0.047444 0.050144 0.050500 +v 0.064098 0.021057 0.054566 +v 0.066008 0.011931 0.050297 +v 0.067179 0.012943 0.222319 +v 0.065044 0.033108 0.216853 +v 0.066702 0.000501 0.229398 +v 0.056980 0.013168 0.252583 +v 0.053226 0.000501 0.258589 +v 0.060428 0.000501 0.247408 +v 0.047859 0.000501 0.264698 +v 0.042565 0.023579 0.269074 +v 0.040980 0.000501 0.270870 +v 0.046476 0.059123 0.256833 +v 0.041471 0.065842 0.261164 +v 0.041776 0.052959 0.265505 +v 0.046177 0.070484 0.251249 +v 0.041420 0.072113 0.257984 +v 0.041265 0.078072 0.254272 +v 0.047759 0.076768 0.241550 +v 0.041170 0.083759 0.249466 +v 0.041070 0.089170 0.243404 +v 0.047318 0.082703 0.234655 +v 0.040896 0.092076 0.239614 +v 0.040629 0.097540 0.228322 +v 0.044316 0.093087 0.223152 +v 0.040280 0.100858 0.215429 +v 0.046362 0.092199 0.207736 +v 0.040051 0.101816 0.204589 +v 0.040212 0.101475 0.197165 +v 0.044880 0.091537 0.173637 +v 0.039805 0.097941 0.171799 +v 0.040122 0.100574 0.187492 +v 0.043092 0.089719 0.157392 +v 0.040083 0.089337 0.144144 +v 0.045956 0.068978 0.109281 +v 0.040914 0.068226 0.092999 +v 0.047441 0.057629 0.082470 +v 0.040617 0.061773 0.073261 +v 0.046311 0.053873 0.063801 +v 0.041097 0.057477 0.057138 +v 0.050896 0.048574 0.064687 +v 0.059273 0.032854 0.091606 +v 0.056350 0.048375 0.115457 +v 0.055217 0.055822 0.137712 +v 0.056500 0.062423 0.171942 +v 0.059770 0.056473 0.195207 +v 0.062118 0.048299 0.206492 +v 0.055160 0.047685 0.088323 +v 0.052422 0.052384 0.087402 +v 0.050475 0.078395 0.158892 +v 0.047777 0.079014 0.143799 +v 0.048342 0.087867 0.185541 +v 0.052727 0.079772 0.193589 +v 0.050369 0.084937 0.200957 +v 0.051694 0.080147 0.217320 +v 0.056141 0.069902 0.212349 +v 0.053100 0.070931 0.230815 +v 0.056396 0.064216 0.225907 +v 0.055256 0.057934 0.238468 +v 0.058757 0.049776 0.234391 +v 0.048518 0.084874 0.224489 +v 0.050846 0.060209 0.248434 +v 0.055197 0.051456 0.244013 +v 0.052639 0.045990 0.252161 +v 0.047895 0.052195 0.257508 +v 0.048317 0.039831 0.260798 +v 0.053402 0.029768 0.255825 +v 0.050264 0.020397 0.261284 +v 0.056803 0.039949 0.246193 +v 0.058483 0.062917 0.200442 +v 0.061157 0.051632 0.214578 +v 0.055632 0.072064 0.196888 +v 0.060052 0.053242 0.223343 +v 0.062834 0.039950 0.225907 +v 0.060440 0.034417 0.239901 +v 0.057602 0.027969 0.248901 +v 0.065434 0.020429 0.229168 +v 0.062997 0.032470 0.232188 +v 0.063349 0.017922 0.238121 +v 0.061016 0.016280 0.244551 +v 0.063854 0.000501 0.239393 +v 0.058625 0.037803 0.090195 +v 0.057671 0.041072 0.086034 +v 0.054884 0.070681 0.176998 +v 0.054238 0.063718 0.145523 +v 0.052933 0.066530 0.138969 +v 0.041748 0.040131 0.268058 +v -0.066443 0.000501 0.230359 +v -0.062390 0.000500 0.243222 +v 0.017693 0.000501 0.281363 +v -0.058677 0.000500 0.250563 +v -0.053478 0.000501 0.258266 +v 0.029840 0.000501 0.277125 +v 0.007124 0.000501 0.283276 +v -0.025469 0.000502 0.278935 +v -0.047527 0.000501 0.265036 +v -0.036749 0.000502 0.273510 +v -0.042620 0.000500 0.269489 +v -0.015308 0.000501 0.281937 +v -0.005819 0.000502 0.283321 +v -0.064914 0.022627 0.230787 +v -0.066757 0.018977 0.220873 +v -0.047612 0.050175 0.051892 +v -0.042446 0.060006 0.072760 +v -0.041988 0.055282 0.049299 +v -0.040352 0.067535 0.089993 +v -0.048970 0.053534 0.074739 +v -0.044229 0.071101 0.109288 +v -0.044940 0.080612 0.137152 +v -0.039844 0.087143 0.137806 +v -0.040105 0.094397 0.159672 +v -0.039782 0.099095 0.176966 +v -0.045128 0.090733 0.172430 +v -0.040097 0.100679 0.187889 +v -0.044017 0.095603 0.212593 +v -0.040341 0.101049 0.213099 +v -0.040251 0.101534 0.199211 +v -0.040860 0.097992 0.226403 +v -0.045148 0.085790 0.236582 +v -0.040854 0.092415 0.238873 +v -0.040663 0.096569 0.230810 +v -0.040982 0.088100 0.244995 +v -0.041372 0.080524 0.252216 +v -0.045593 0.078647 0.244705 +v -0.045975 0.071513 0.250333 +v -0.046328 0.063608 0.254819 +v -0.041587 0.068348 0.259906 +v -0.047829 0.050659 0.258331 +v -0.041676 0.057213 0.264215 +v -0.046188 0.022259 0.265629 +v -0.042007 0.023758 0.269450 +v -0.041875 0.042395 0.267637 +v -0.063667 0.011198 0.238762 +v -0.061719 0.049989 0.204260 +v -0.064529 0.035920 0.214862 +v -0.057316 0.064713 0.186510 +v -0.056345 0.062479 0.170288 +v -0.055266 0.055226 0.136486 +v -0.056430 0.047812 0.114701 +v -0.059446 0.032241 0.090355 +v -0.066707 0.009611 0.045733 +v -0.055595 0.041651 0.062814 +v -0.052646 0.044089 0.051358 +v -0.058796 0.035055 0.053369 +v -0.053586 0.077681 0.201384 +v -0.050172 0.085087 0.195787 +v -0.050985 0.082256 0.182117 +v -0.050693 0.078995 0.163464 +v -0.047933 0.079847 0.147694 +v -0.053509 0.059578 0.118729 +v -0.056493 0.042963 0.078839 +v -0.051095 0.055883 0.091515 +v -0.050910 0.062166 0.246948 +v -0.054697 0.059127 0.239164 +v -0.058387 0.043036 0.240793 +v -0.058084 0.032967 0.246548 +v -0.061177 0.026556 0.241383 +v -0.052172 0.047951 0.252232 +v -0.058167 0.014981 0.250557 +v -0.050159 0.026154 0.260876 +v -0.054756 0.028700 0.253761 +v -0.046649 0.090698 0.186833 +v -0.047482 0.090224 0.206887 +v -0.048580 0.084892 0.223987 +v -0.049669 0.074923 0.237986 +v -0.061142 0.052110 0.213605 +v -0.059770 0.054648 0.222366 +v -0.059101 0.060611 0.203559 +v -0.057286 0.066885 0.208902 +v -0.062956 0.040169 0.224786 +v -0.061240 0.040903 0.233122 +v -0.057286 0.059564 0.229334 +v -0.053472 0.068106 0.233250 +v -0.055145 0.071643 0.216368 +v -0.052445 0.076134 0.224073 +v -0.051084 0.082852 0.209669 +v -0.062695 0.024624 0.065582 +v -0.057202 0.044254 0.097319 +v -0.060253 0.032916 0.069680 +v -0.055115 0.072769 0.190490 +v -0.053576 0.074048 0.173016 +v -0.054289 0.063205 0.144274 +v -0.041224 0.054975 0.033000 +v -0.049648 0.047345 0.042430 +v -0.000001 0.014422 0.283247 +v 0.033940 0.099018 0.235249 +v -0.037874 0.057845 0.045657 +v -0.025850 0.063503 0.039197 +v 0.027670 0.062744 0.038746 +v 0.035726 0.058863 0.040812 +v 0.035103 0.061410 0.056250 +v 0.036610 0.069995 0.088717 +v 0.033475 0.092397 0.140305 +v 0.033883 0.099388 0.162062 +v 0.035777 0.103830 0.190296 +v 0.034240 0.102814 0.224379 +v 0.034787 0.089462 0.248913 +v 0.035526 0.059517 0.267422 +v 0.035416 0.025223 0.273617 +v -0.036095 0.023815 0.273346 +v -0.035374 0.048740 0.270388 +v -0.035452 0.066456 0.264900 +v -0.034967 0.075504 0.260405 +v -0.034966 0.083672 0.254595 +v -0.033379 0.100154 0.233654 +v -0.033978 0.103450 0.222555 +v -0.033941 0.105168 0.212492 +v -0.033757 0.105759 0.202284 +v -0.035842 0.103820 0.190163 +v -0.035928 0.097611 0.161088 +v -0.033349 0.092696 0.140469 +v -0.035958 0.062964 0.065326 +v -0.030157 0.063195 0.051497 +v -0.027503 0.067862 0.065570 +v -0.029718 0.073077 0.085354 +v -0.009363 0.016560 0.282706 +v -0.002770 0.036358 0.281603 +v -0.008446 0.061346 0.275306 +v -0.002828 0.051256 0.278633 +v 0.002820 0.061461 0.275700 +v -0.002745 0.069118 0.272945 +v -0.008373 0.087303 0.261936 +v -0.002800 0.078640 0.268208 +v 0.002819 0.087471 0.262331 +v -0.002832 0.095358 0.255247 +v -0.008270 0.109073 0.232664 +v -0.002787 0.104856 0.242582 +v 0.002712 0.109406 0.233017 +v -0.002764 0.112473 0.222888 +v -0.010838 0.111491 0.178011 +v -0.002703 0.113777 0.187894 +v 0.002707 0.111016 0.172715 +v -0.008207 0.106970 0.157938 +v 0.002665 0.107484 0.158138 +v -0.007826 0.100237 0.137276 +v 0.003446 0.100163 0.135948 +v -0.002753 0.090961 0.112287 +v -0.014830 0.027012 0.281143 +v -0.014080 0.046583 0.278594 +v -0.014087 0.068729 0.271751 +v -0.013827 0.078228 0.267075 +v -0.013940 0.094749 0.254084 +v -0.013751 0.099624 0.247978 +v -0.002769 0.100330 0.249147 +v -0.013754 0.104014 0.241390 +v -0.013662 0.111356 0.221791 +v -0.013583 0.112932 0.211362 +v -0.002751 0.114165 0.212420 +v -0.010773 0.113749 0.197985 +v -0.002739 0.114639 0.201815 +v -0.019499 0.060778 0.273348 +v -0.019187 0.086493 0.260090 +v -0.016320 0.107869 0.231241 +v -0.018826 0.112039 0.202498 +v -0.019398 0.111442 0.192919 +v -0.018703 0.108020 0.171023 +v -0.018856 0.104380 0.156801 +v -0.014197 0.097616 0.133160 +v -0.008499 0.080332 0.086079 +v 0.002721 0.080820 0.085968 +v -0.005632 0.073917 0.066107 +v 0.005645 0.073943 0.066179 +v -0.008479 0.069874 0.052010 +v 0.002831 0.070359 0.052048 +v -0.002840 0.068592 0.041576 +v -0.024987 0.019305 0.278578 +v -0.024385 0.034636 0.277700 +v -0.024913 0.050290 0.274599 +v -0.025009 0.067810 0.269054 +v -0.024738 0.077114 0.264416 +v -0.021875 0.093560 0.252209 +v -0.024230 0.098028 0.245403 +v -0.024376 0.102131 0.238718 +v -0.024188 0.105217 0.231481 +v -0.024211 0.107657 0.224268 +v -0.024083 0.109594 0.214060 +v -0.026469 0.107194 0.179515 +v -0.023692 0.095747 0.136150 +v -0.016840 0.071857 0.065904 +v -0.014104 0.067198 0.041516 +v -0.030174 0.039660 0.274511 +v -0.030059 0.059766 0.269869 +v -0.027216 0.085157 0.257643 +v -0.029070 0.091908 0.250399 +v -0.026469 0.109194 0.202642 +v -0.028887 0.107664 0.190983 +v -0.029475 0.102603 0.165272 +v -0.026400 0.100697 0.154289 +v -0.020807 0.077097 0.085472 +v -0.019571 0.067469 0.051826 +v -0.032058 0.094800 0.244457 +v 0.024887 0.021474 0.278718 +v 0.030365 0.045599 0.273596 +v 0.024855 0.060326 0.271795 +v 0.030132 0.067341 0.267254 +v 0.024784 0.085737 0.258492 +v 0.030163 0.076321 0.262421 +v 0.032271 0.084235 0.255603 +v 0.024149 0.093006 0.252148 +v 0.029468 0.095476 0.245537 +v 0.024327 0.102167 0.238695 +v 0.024167 0.106215 0.229099 +v 0.029088 0.107031 0.217245 +v 0.023869 0.105110 0.165539 +v 0.028806 0.105750 0.178604 +v 0.026959 0.095754 0.139807 +v 0.029654 0.073183 0.085606 +v 0.023082 0.067630 0.058227 +v 0.029967 0.066823 0.066523 +v 0.030094 0.064285 0.056516 +v 0.028963 0.108118 0.206911 +v 0.028788 0.107981 0.193449 +v 0.018934 0.026991 0.280166 +v 0.014014 0.061118 0.274520 +v 0.019732 0.046373 0.277307 +v 0.019785 0.068279 0.270538 +v 0.013871 0.086922 0.261196 +v 0.019636 0.077713 0.265903 +v 0.013982 0.094734 0.254072 +v 0.018387 0.101761 0.243347 +v 0.013639 0.108460 0.231825 +v 0.018876 0.110294 0.220521 +v 0.013448 0.109515 0.171867 +v 0.018705 0.110057 0.181326 +v 0.013472 0.105920 0.157372 +v 0.021692 0.098028 0.140245 +v 0.013638 0.098312 0.134548 +v 0.019126 0.077866 0.086040 +v 0.013979 0.072900 0.067250 +v 0.019446 0.071369 0.067066 +v 0.014068 0.068909 0.051936 +v 0.019928 0.065605 0.039581 +v 0.008588 0.046740 0.279404 +v 0.008450 0.068977 0.272547 +v 0.008457 0.078506 0.267839 +v 0.007603 0.097496 0.252521 +v 0.008229 0.104597 0.242174 +v 0.008138 0.112116 0.222484 +v 0.008103 0.113296 0.187526 +v 0.011112 0.080388 0.087373 +v 0.008497 0.068126 0.041556 +v 0.008545 0.025963 0.282260 +v 0.008130 0.113764 0.212020 +v 0.018803 0.111737 0.210169 +v 0.008113 0.114201 0.201435 +v 0.018692 0.111962 0.196473 +vn -0.577700 0.816100 0.013600 +vn -0.557400 0.830200 0.010100 +vn -0.594500 0.804000 -0.012600 +vn -0.555900 0.831200 -0.006100 +vn 0.553800 -0.832600 -0.007200 +vn 0.594100 -0.804300 -0.011900 +vn 0.577500 -0.816200 0.017500 +vn 0.556400 -0.830800 0.013700 +vn -0.299200 0.679700 -0.669600 +vn -0.067300 0.736000 -0.673700 +vn 0.315400 -0.668200 -0.673800 +vn 0.178700 0.713500 -0.677500 +vn 0.073200 -0.732400 -0.676900 +vn -0.136700 -0.716400 -0.684100 +vn -0.339400 -0.658500 -0.671600 +vn -0.706400 0.191600 -0.681400 +vn -0.628100 0.369700 -0.684600 +vn 0.529800 0.509400 -0.678100 +vn 0.660400 -0.330200 -0.674400 +vn 0.369400 0.627400 -0.685400 +vn 0.514500 -0.534900 -0.670100 +vn -0.577700 -0.476900 -0.662300 +vn -0.708000 -0.212800 -0.673400 +vn -0.730400 -0.003200 -0.683000 +vn -0.503800 0.538400 -0.675500 +vn 0.675900 0.296800 -0.674600 +vn 0.734200 0.067300 -0.675500 +vn 0.719000 -0.131400 -0.682400 +vn -0.657600 0.753300 0.008400 +vn -0.608900 0.793200 -0.001100 +vn -0.613900 0.789300 -0.007600 +vn -0.627300 0.778700 0.001400 +vn -0.517000 0.855900 -0.004500 +vn -0.514200 0.857600 0.002000 +vn -0.419500 0.907400 -0.023100 +vn -0.448000 0.893900 0.016000 +vn 0.393900 -0.919000 -0.012700 +vn 0.451500 -0.892200 0.012100 +vn 0.513000 -0.858400 0.005800 +vn 0.527000 -0.849800 0.000600 +vn 0.627400 -0.778600 0.001700 +vn 0.664400 -0.747300 0.009600 +vn 0.613700 -0.789500 -0.006000 +vn 0.618900 -0.785400 -0.003300 +vn 0.206800 -0.978400 0.004500 +vn 0.196000 -0.980600 -0.002500 +vn 0.273400 -0.961600 0.020900 +vn 0.305600 -0.952100 0.007000 +vn 0.306400 -0.950900 -0.042500 +vn 0.384400 -0.923100 -0.002200 +vn 0.089500 -0.995800 -0.019100 +vn 0.162300 -0.986700 -0.009800 +vn 0.088400 -0.996100 -0.003100 +vn 0.149900 -0.988600 0.008600 +vn 0.161200 -0.986900 0.000100 +vn 0.145900 -0.989300 -0.002900 +vn -0.204300 -0.978900 0.007900 +vn -0.166900 -0.985800 -0.015700 +vn -0.220300 -0.975400 0.001700 +vn -0.266800 -0.963700 0.004500 +vn -0.226900 -0.973900 -0.002000 +vn -0.299400 -0.954000 0.011200 +vn -0.225700 -0.974100 0.010000 +vn -0.283500 -0.958900 -0.008300 +vn -0.094500 -0.995400 -0.014500 +vn -0.070300 -0.997500 -0.001500 +vn 0.013900 -0.999900 -0.000700 +vn 0.019200 -0.999800 -0.000600 +vn -0.057600 -0.998300 -0.001100 +vn -0.045300 -0.999000 -0.000900 +vn 0.000500 -1.000000 0.005800 +vn -0.672100 0.047000 -0.738900 +vn -0.628400 -0.190000 -0.754300 +vn -0.486500 -0.434200 -0.758100 +vn -0.282100 -0.601700 -0.747200 +vn -0.034000 -0.662500 -0.748300 +vn 0.245800 -0.605200 -0.757200 +vn 0.471600 -0.466700 -0.748100 +vn 0.605100 -0.287400 -0.742400 +vn 0.667300 -0.113300 -0.736000 +vn 0.662600 0.088000 -0.743700 +vn 0.575900 0.323700 -0.750700 +vn 0.445800 0.510100 -0.735600 +vn 0.254200 0.614900 -0.746500 +vn -0.021500 0.654000 -0.756200 +vn -0.282400 0.598700 -0.749500 +vn -0.486700 0.452500 -0.747200 +vn -0.620800 0.255800 -0.741100 +vn -0.506700 -0.862100 0.002600 +vn -0.414300 -0.910100 -0.000700 +vn -0.375300 -0.926300 0.033800 +vn -0.437400 -0.899200 -0.010500 +vn -0.419900 -0.907500 0.001300 +vn -0.503300 -0.864000 0.010400 +vn -0.543000 -0.839700 -0.010900 +vn -0.559300 -0.828900 0.008300 +vn -0.594400 -0.803800 -0.022900 +vn -0.538900 -0.842300 -0.005500 +vn -0.525700 -0.850600 -0.001100 +vn -0.596400 -0.802700 0.000800 +vn -0.327200 -0.944100 -0.040300 +vn -0.328500 -0.944300 -0.017000 +vn -0.207300 0.978200 0.006700 +vn -0.196000 0.980600 -0.002500 +vn -0.272600 0.961900 0.021200 +vn -0.302900 0.953000 0.007200 +vn -0.300300 0.952800 -0.044200 +vn -0.374300 0.927200 -0.009000 +vn -0.383600 0.922500 -0.042600 +vn -0.090500 0.995700 -0.018900 +vn -0.162100 0.986700 -0.009700 +vn -0.093900 0.995600 -0.000800 +vn -0.148600 0.988800 0.008600 +vn -0.163700 0.986500 -0.001400 +vn -0.144500 0.989500 -0.003200 +vn 0.163900 0.986400 -0.013800 +vn 0.217200 0.976100 0.003800 +vn 0.203500 0.979000 0.008700 +vn 0.267300 0.963600 0.004800 +vn 0.226800 0.973900 0.001000 +vn 0.299700 0.953900 0.011400 +vn 0.211100 0.977400 -0.005500 +vn 0.289700 0.956900 -0.016800 +vn 0.091900 0.995700 -0.009500 +vn 0.082300 0.996600 -0.003800 +vn -0.014100 0.999900 0.000700 +vn -0.015800 0.999800 -0.003300 +vn 0.054900 0.998500 0.002300 +vn 0.044300 0.999000 -0.002600 +vn -0.004300 1.000000 0.006300 +vn 0.028000 0.999500 0.009200 +vn 0.542700 0.839800 -0.010400 +vn 0.559300 0.828900 0.008300 +vn 0.593800 0.804300 -0.021900 +vn 0.506700 0.862100 0.002600 +vn 0.503300 0.864000 0.010300 +vn 0.538700 0.842500 -0.005600 +vn 0.530700 0.847500 -0.004300 +vn 0.588000 0.808900 0.001300 +vn 0.414200 0.910200 -0.000900 +vn 0.375300 0.926300 0.033700 +vn 0.437400 0.899200 -0.010500 +vn 0.418200 0.908400 -0.004500 +vn 0.328800 0.943700 -0.035600 +vn 0.328900 0.944200 -0.016800 +vn -0.316200 -0.669800 -0.671900 +vn 0.180700 -0.678000 0.712500 +vn -0.060800 -0.677300 0.733200 +vn -0.076200 -0.676300 -0.732700 +vn 0.115700 -0.687800 -0.716600 +vn 0.315200 -0.675600 -0.666400 +vn 0.629600 -0.684500 -0.367400 +vn 0.717300 -0.674900 -0.172800 +vn 0.366000 -0.685400 0.629400 +vn -0.467000 -0.684600 0.559700 +vn -0.609500 -0.676600 0.413100 +vn -0.662100 -0.672000 -0.331600 +vn -0.511200 -0.674000 -0.533200 +vn 0.510700 -0.680100 -0.525900 +vn -0.299200 -0.679900 0.669500 +vn 0.734300 -0.669200 0.113600 +vn 0.647800 -0.683900 0.335500 +vn 0.525200 -0.681900 0.509000 +vn -0.710400 -0.677200 0.191400 +vn -0.733800 -0.676700 -0.058700 +vn -0.178000 0.711700 -0.679500 +vn -0.369200 0.631200 -0.682100 +vn 0.716900 0.139400 -0.683000 +vn 0.662300 0.290200 -0.690700 +vn -0.716000 -0.155000 -0.680700 +vn -0.728600 0.044900 -0.683400 +vn 0.178100 -0.711800 -0.679400 +vn 0.369300 -0.631100 -0.682100 +vn -0.522100 0.508400 -0.684700 +vn -0.642500 -0.353100 -0.680000 +vn -0.636600 0.357500 -0.683300 +vn -0.516400 -0.518400 -0.681500 +vn -0.344900 -0.644300 -0.682500 +vn 0.525900 -0.506900 -0.682900 +vn 0.638200 -0.358000 -0.681600 +vn -0.695300 0.205500 -0.688700 +vn 0.602300 0.398900 -0.691500 +vn 0.505500 0.524400 -0.685100 +vn 0.344600 0.644400 -0.682600 +vn -0.002500 0.721500 -0.692300 +vn 0.151600 0.713700 -0.683800 +vn -0.150100 -0.714900 -0.682900 +vn 0.695000 -0.204700 -0.689200 +vn 0.001800 -0.722000 -0.691900 +vn 0.728800 -0.047400 -0.683100 +vn 0.251600 -0.730300 0.635000 +vn 0.395200 -0.736400 0.549100 +vn 0.539800 -0.745200 0.391400 +vn 0.645800 -0.741200 0.183300 +vn 0.057700 -0.740300 0.669800 +vn -0.163700 -0.741300 0.650900 +vn -0.343500 -0.731700 0.588700 +vn -0.484100 -0.737500 0.470800 +vn -0.608800 -0.740700 0.284100 +vn -0.668600 -0.740700 0.065500 +vn -0.651600 -0.742100 -0.157000 +vn -0.588700 -0.733000 -0.340700 +vn -0.466800 -0.744900 -0.476600 +vn -0.295400 -0.742200 -0.601600 +vn -0.109000 -0.736200 -0.667900 +vn 0.124300 -0.750900 -0.648500 +vn 0.369700 -0.742600 -0.558300 +vn 0.523100 -0.731800 -0.436700 +vn 0.616300 -0.737800 -0.275400 +vn 0.667300 -0.742800 -0.053800 +vn 0.547300 -0.309700 -0.777500 +vn 0.380300 -0.417500 -0.825200 +vn 0.497500 -0.481800 -0.721300 +vn 0.583100 -0.812300 -0.011400 +vn 0.360600 -0.907300 0.216200 +vn 0.443100 -0.857500 0.261100 +vn 0.059100 -0.900000 -0.431800 +vn -0.017900 -0.988200 -0.151900 +vn -0.197300 -0.957700 0.209700 +vn 0.626400 -0.658700 0.416800 +vn 0.405700 -0.699600 0.588200 +vn 0.539900 -0.620100 0.569200 +vn 0.040300 -0.653000 0.756300 +vn 0.037300 -0.658600 0.751600 +vn 0.100400 -0.648400 0.754600 +vn 0.842200 -0.394100 0.367900 +vn 0.902200 -0.298600 0.311200 +vn 0.882200 -0.331200 0.334800 +vn 0.999700 0.023100 0.000000 +vn 0.998300 0.012600 -0.056500 +vn 0.996400 -0.082600 -0.019600 +vn 0.442000 -0.895300 0.054800 +vn 0.613600 -0.786700 0.066700 +vn 0.561700 -0.815100 0.141500 +vn -0.011700 -0.999700 0.023500 +vn 0.109700 -0.993800 0.013900 +vn 0.124600 -0.990400 0.058600 +vn 0.341600 -0.725200 -0.597800 +vn 0.227300 -0.744700 -0.627500 +vn 0.634200 -0.213800 -0.743000 +vn 0.449600 -0.734800 -0.507800 +vn 0.991900 0.075600 -0.102200 +vn 0.996500 0.083400 -0.005600 +vn 0.736700 -0.676100 0.008100 +vn 0.731200 -0.675200 -0.096700 +vn 0.988900 0.141700 -0.044900 +vn 0.983700 0.131200 -0.122700 +vn 0.980100 0.178000 -0.087600 +vn 0.987300 0.102100 -0.121200 +vn 0.991100 -0.110900 0.074000 +vn 0.995600 -0.037200 0.086200 +vn 0.967400 -0.123800 0.220800 +vn 0.985300 -0.015000 0.170300 +vn 0.988600 -0.048600 0.142200 +vn 0.980000 -0.097400 0.173400 +vn 0.990600 -0.004600 0.136600 +vn 0.853300 -0.441900 0.276800 +vn 0.885100 -0.360100 0.294600 +vn 0.934000 -0.268300 0.235700 +vn 0.912200 -0.360100 0.195700 +vn 0.900100 -0.426400 0.088700 +vn 0.953400 -0.291300 0.078600 +vn 0.993300 -0.095400 0.064700 +vn 0.962400 -0.179700 0.203600 +vn 0.978100 -0.193700 0.076000 +vn 0.826600 -0.505000 0.248300 +vn 0.833900 -0.545600 0.083300 +vn 0.763700 -0.470700 0.441700 +vn 0.653900 -0.561300 0.507300 +vn 0.754900 -0.520400 0.399100 +vn 0.761200 -0.553900 0.337200 +vn 0.726500 -0.635100 0.262300 +vn 0.780600 -0.589100 0.208600 +vn 0.736000 -0.672000 0.081500 +vn 0.828200 -0.431500 0.357400 +vn 0.654700 -0.546800 0.521800 +vn 0.736900 -0.560400 0.378000 +vn 0.614000 -0.614800 0.494900 +vn 0.998900 0.007200 0.045300 +vn 0.951500 -0.197200 0.236100 +vn 0.969500 -0.193000 0.151400 +vn 0.682500 -0.659400 0.315200 +vn 0.791100 -0.574600 0.209700 +vn 0.688300 -0.690400 0.222900 +vn 0.871800 -0.479900 -0.098000 +vn 0.753300 -0.656500 -0.037700 +vn 0.766800 -0.638900 0.060700 +vn 0.819100 -0.506800 0.268700 +vn 0.799500 -0.590700 0.108600 +vn 0.930300 -0.353300 -0.098500 +vn 0.929700 -0.311100 -0.197100 +vn 0.888500 -0.364800 -0.278300 +vn 0.721700 -0.675200 -0.152400 +vn 0.820200 -0.517100 -0.244800 +vn 0.761300 -0.568400 -0.311900 +vn 0.817200 -0.397800 -0.417100 +vn 0.884300 -0.229600 -0.406500 +vn 0.817200 -0.257400 -0.515600 +vn 0.708600 -0.368700 -0.601500 +vn 0.862600 -0.127500 -0.489500 +vn 0.765100 -0.163900 -0.622700 +vn 0.717100 -0.576000 -0.392300 +vn 0.929100 -0.177500 -0.324400 +vn 0.892300 -0.090500 -0.442200 +vn 0.972900 -0.227100 0.043300 +vn 0.909500 -0.326900 0.256800 +vn 0.905300 -0.401700 0.138100 +vn 0.990600 -0.097900 -0.095600 +vn 0.981400 0.035800 -0.188800 +vn 0.961300 -0.266900 -0.068500 +vn 0.978400 -0.053200 -0.199700 +vn 0.964300 -0.158700 -0.212000 +vn 0.950000 -0.064100 -0.305500 +vn 0.965800 0.012900 -0.258900 +vn 0.704000 -0.685800 -0.184500 +vn 0.668400 -0.701400 -0.247300 +vn 0.981100 0.072400 -0.179200 +vn 0.215400 -0.644900 0.733300 +vn 0.124900 -0.682600 0.720000 +vn 0.159100 -0.731400 0.663100 +vn 0.219300 -0.678200 0.701400 +vn 0.262500 -0.854800 0.447700 +vn 0.468700 -0.755100 0.458300 +vn 0.520400 -0.786700 0.332000 +vn 0.385100 -0.819500 0.424300 +vn 0.283800 -0.770100 0.571300 +vn 0.611200 -0.775900 0.155800 +vn 0.628500 -0.776200 0.049600 +vn 0.050300 -0.781200 0.622200 +vn 0.018900 -0.754100 0.656500 +vn 0.034400 -0.712800 0.700500 +vn 0.006500 -0.810600 0.585600 +vn 0.029400 -0.954800 0.295900 +vn 0.022800 -0.928700 0.370100 +vn 0.030400 -0.893300 0.448300 +vn 0.015000 -0.853000 0.521700 +vn 0.053500 -0.834800 0.547900 +vn 0.092900 -0.737800 0.668500 +vn 0.140600 -0.796700 0.587700 +vn 0.151600 -0.862300 0.483100 +vn 0.099400 -0.911700 0.398500 +vn 0.200700 -0.928200 0.313300 +vn 0.123700 -0.969100 0.213600 +vn 0.185500 -0.982600 -0.005200 +vn 0.077700 -0.994400 0.071700 +vn 0.010500 -0.974700 0.223300 +vn 0.016400 -0.965300 -0.260700 +vn 0.011100 -0.843900 -0.536300 +vn 0.032000 -0.893400 -0.448100 +vn 0.034500 -0.921800 -0.386200 +vn 0.027500 -0.941300 -0.336500 +vn 0.028900 -0.750900 -0.659800 +vn 0.003100 -0.808300 -0.588700 +vn 0.044400 -0.617100 -0.785600 +vn 0.036600 -0.465400 -0.884400 +vn 0.046500 -0.673100 -0.738100 +vn 0.011800 -0.665100 -0.746700 +vn 0.029600 -0.385000 -0.922400 +vn -0.002200 -0.772000 -0.635600 +vn 0.037900 -0.288000 -0.956900 +vn 0.075200 -0.799700 -0.595600 +vn 0.014700 -0.677100 -0.735700 +vn -0.077600 -0.989500 0.121600 +vn 0.068000 -0.984300 -0.162600 +vn 0.174600 -0.583100 -0.793400 +vn 0.189100 -0.963800 -0.188000 +vn 0.237700 -0.889400 -0.390500 +vn 0.301400 -0.942100 -0.146600 +vn 0.323900 -0.868500 -0.375200 +vn 0.215900 -0.782600 -0.583800 +vn 0.019200 -0.992500 0.120700 +vn 0.210800 -0.548900 -0.808800 +vn 0.287900 -0.633700 -0.717900 +vn 0.317700 -0.941100 0.115800 +vn 0.273400 -0.959000 0.074400 +vn 0.652800 -0.729200 -0.205300 +vn 0.560000 -0.778000 -0.284600 +vn 0.516400 -0.848800 -0.113300 +vn 0.393800 -0.914300 -0.094500 +vn 0.447400 -0.799700 -0.400300 +vn 0.348000 -0.759000 -0.550200 +vn 0.457800 -0.631800 -0.625400 +vn 0.584500 -0.690500 -0.426000 +vn 0.575000 -0.586200 -0.570700 +vn 0.626000 -0.365600 -0.688800 +vn 0.686600 -0.508200 -0.519900 +vn 0.520600 -0.729200 -0.444100 +vn 0.583100 -0.719100 -0.377900 +vn 0.637400 -0.706700 -0.306900 +vn 0.171500 -0.972700 0.156500 +vn 0.054200 -0.988700 0.139500 +vn 0.117800 -0.891600 0.437200 +vn 0.033500 -0.855800 0.516200 +vn 0.035300 -0.936800 0.348200 +vn 0.097200 -0.955700 0.277700 +vn 0.274500 -0.960900 0.035900 +vn 0.314900 -0.940100 0.130800 +vn 0.251300 -0.928400 0.273700 +vn 0.414400 -0.876200 0.245700 +vn 0.295100 -0.885000 0.360100 +vn 0.405900 -0.836700 0.367600 +vn 0.090900 -0.714000 0.694100 +vn 0.048400 -0.757800 0.650700 +vn 0.097300 -0.811300 0.576500 +vn 0.255600 -0.835900 0.485700 +vn 0.198200 -0.780600 0.592800 +vn 0.220500 -0.681300 0.698000 +vn 0.354600 -0.729600 0.584700 +vn 0.468600 -0.868000 0.164100 +vn 0.532100 -0.793400 0.295700 +vn 0.439200 -0.778000 0.449200 +vn 0.557700 -0.706000 0.436400 +vn 0.307900 -0.652500 0.692400 +vn 0.522600 -0.652200 0.549100 +vn 0.364000 -0.642900 0.673900 +vn 0.403600 -0.643800 0.650000 +vn 0.527900 -0.591300 0.609600 +vn 0.667700 -0.624900 0.404600 +vn 0.641200 -0.698900 0.316700 +vn 0.623500 -0.749800 0.221300 +vn -0.684800 -0.702400 -0.193900 +vn -0.749200 -0.515500 -0.415800 +vn -0.823400 -0.433900 -0.365600 +vn -0.579400 -0.801400 -0.148400 +vn -0.457700 -0.884500 -0.090300 +vn -0.527600 -0.794200 -0.301200 +vn -0.247200 -0.909800 -0.333400 +vn -0.179600 -0.932600 -0.313100 +vn -0.202200 -0.808800 -0.552100 +vn -0.029500 -0.704400 -0.709200 +vn -0.043600 -0.500800 -0.864400 +vn -0.044100 -0.318700 -0.946800 +vn -0.081700 -0.766000 -0.637600 +vn -0.004500 -0.963900 0.266300 +vn 0.064800 -0.973400 0.219900 +vn -0.011500 -0.999000 0.042300 +vn -0.192400 -0.967300 0.165300 +vn -0.286600 -0.937600 0.196900 +vn -0.137300 -0.916700 0.375200 +vn -0.226500 -0.690900 0.686500 +vn -0.436100 -0.703900 0.560600 +vn -0.315100 -0.648100 0.693300 +vn -0.940200 -0.339600 0.026900 +vn -0.976000 -0.160000 -0.147600 +vn -0.987700 -0.126200 -0.091700 +vn -0.931900 -0.272400 -0.239400 +vn -0.875200 -0.439400 -0.202300 +vn -0.890700 -0.303600 -0.338200 +vn -0.639600 -0.768600 0.002800 +vn -0.750800 -0.658700 -0.049300 +vn -0.666300 -0.734500 0.128400 +vn -0.980500 0.172900 -0.093200 +vn -0.986200 0.128500 -0.104500 +vn -0.988300 0.041700 -0.146300 +vn -0.993200 -0.103500 0.053500 +vn -0.965000 -0.257400 0.050400 +vn -0.964200 -0.230700 0.130800 +vn -0.629600 -0.284100 -0.723100 +vn -0.384300 -0.731400 -0.563400 +vn -0.466400 -0.742100 -0.481400 +vn -0.062600 -0.988500 0.137500 +vn -0.149000 -0.988400 0.027300 +vn -0.103000 -0.994000 0.037800 +vn -0.288900 -0.956600 0.037600 +vn -0.314300 -0.941800 0.119000 +vn -0.537900 -0.828300 0.156900 +vn -0.643800 -0.761600 0.074400 +vn -0.518100 -0.853700 0.052100 +vn -0.976000 -0.111800 0.186500 +vn -0.990500 -0.013200 0.136400 +vn -0.999100 0.002300 0.042600 +vn -0.983800 -0.043600 0.174000 +vn -0.995600 -0.015300 0.092700 +vn -0.986500 -0.125200 0.105200 +vn -0.999500 0.026900 0.016300 +vn -0.999000 0.010100 -0.042500 +vn -0.996500 -0.050200 -0.067300 +vn -0.983800 0.132000 -0.121000 +vn -0.990600 0.133400 -0.029500 +vn -0.988100 0.067900 -0.137700 +vn -0.998500 0.054200 -0.008800 +vn -0.729200 -0.678700 -0.087100 +vn -0.737500 -0.673600 0.048000 +vn -0.777200 -0.596100 0.201800 +vn -0.760600 -0.645100 0.072900 +vn -0.682600 -0.702400 0.201900 +vn -0.778800 -0.549800 0.302000 +vn -0.816000 -0.485800 0.313100 +vn -0.866300 -0.400300 0.298800 +vn -0.848700 -0.489700 0.199700 +vn -0.856700 -0.510700 0.071900 +vn -0.704000 -0.613300 0.358000 +vn -0.710800 -0.574400 0.405900 +vn -0.775500 -0.487700 0.400800 +vn -0.835200 -0.403300 0.373800 +vn -0.700600 -0.655000 0.283100 +vn -0.909200 -0.346100 0.231100 +vn -0.925300 -0.370200 0.082800 +vn -0.903600 -0.298600 0.307100 +vn -0.948300 -0.230900 0.217700 +vn -0.931900 -0.228700 0.281400 +vn -0.690000 -0.526000 0.497100 +vn -0.882300 -0.344300 0.320900 +vn -0.680400 -0.539000 0.496500 +vn -0.800700 -0.460800 0.382600 +vn -0.953600 -0.185100 0.237300 +vn -0.676200 -0.604300 0.421400 +vn -0.557500 -0.693400 0.456600 +vn -0.717000 -0.615100 0.328000 +vn -0.703500 -0.658300 0.267500 +vn -0.576300 -0.630300 0.520100 +vn -0.728100 -0.635600 0.256500 +vn -0.846900 -0.518400 0.118400 +vn -0.735100 -0.657000 0.167100 +vn -0.867600 -0.401000 0.293800 +vn -0.822900 -0.498400 0.272900 +vn -0.934600 -0.328000 0.137800 +vn -0.940900 -0.274600 0.198200 +vn -0.893300 -0.444300 -0.068200 +vn -0.926500 -0.363000 -0.099200 +vn -0.802000 -0.597200 0.008300 +vn -0.791600 -0.576300 -0.203100 +vn -0.830300 -0.310900 -0.462500 +vn -0.885800 -0.189500 -0.423600 +vn -0.749300 -0.388300 -0.536500 +vn -0.835100 -0.166200 -0.524300 +vn -0.747300 -0.147500 -0.647800 +vn -0.732000 -0.224200 -0.643400 +vn -0.567100 -0.725700 -0.389500 +vn -0.943500 -0.117700 -0.309700 +vn -0.906000 -0.092000 -0.413000 +vn -0.654600 -0.700400 -0.284500 +vn -0.929800 -0.044100 -0.365400 +vn -0.953000 -0.192000 -0.234300 +vn -0.969600 -0.240500 0.044000 +vn -0.974500 -0.206300 0.087700 +vn -0.971300 -0.004400 -0.237700 +vn -0.706000 -0.684000 -0.183500 +vn -0.980000 0.053900 -0.191400 +vn -0.082500 -0.664900 0.742300 +vn -0.028100 -0.657400 0.753000 +vn -0.054300 -0.660700 0.748700 +vn -0.015000 -0.688600 0.725000 +vn -0.101400 -0.731200 0.674600 +vn -0.125200 -0.823800 0.552800 +vn -0.194900 -0.800500 0.566600 +vn 0.029600 -0.694200 0.719200 +vn -0.069100 -0.844000 0.531900 +vn -0.294700 -0.772300 0.562700 +vn -0.105000 -0.680200 0.725400 +vn -0.410400 -0.791800 0.452300 +vn -0.522700 -0.775800 0.353300 +vn -0.416900 -0.860400 0.293000 +vn -0.510600 -0.834200 0.208300 +vn -0.301200 -0.846200 0.439600 +vn 0.031300 -0.751500 0.659000 +vn 0.007400 -0.778700 0.627400 +vn -0.044700 -0.900800 0.431800 +vn -0.011400 -0.904300 0.426800 +vn -0.045900 -0.957400 0.284900 +vn -0.010000 -0.930300 0.366800 +vn -0.275900 -0.901500 0.333300 +vn 0.039800 -0.982600 0.181600 +vn -0.023000 -0.996600 0.079600 +vn -0.012700 -0.997200 -0.073200 +vn -0.115900 -0.992100 0.047600 +vn -0.021200 -0.960500 -0.277300 +vn -0.051600 -0.947500 -0.315600 +vn -0.035500 -0.514100 -0.857000 +vn -0.036100 -0.444100 -0.895200 +vn -0.046700 -0.780600 -0.623300 +vn -0.089300 -0.808100 -0.582200 +vn -0.034300 -0.850500 -0.524900 +vn -0.023800 -0.905100 -0.424500 +vn -0.203300 -0.596300 -0.776500 +vn -0.138700 -0.979300 -0.147300 +vn -0.179800 -0.510100 -0.841100 +vn -0.298900 -0.767600 -0.566900 +vn -0.349600 -0.589800 -0.727900 +vn -0.191000 -0.808900 -0.556000 +vn -0.338000 -0.390900 -0.856100 +vn -0.255600 -0.964400 -0.067300 +vn -0.359300 -0.930700 0.068400 +vn -0.522500 -0.852200 0.027700 +vn -0.631000 -0.714500 -0.302300 +vn -0.363400 -0.923600 -0.121500 +vn -0.365500 -0.871000 -0.328300 +vn -0.400800 -0.730000 -0.553600 +vn -0.474300 -0.501700 -0.723400 +vn -0.488800 -0.313700 -0.814000 +vn -0.299100 -0.725300 -0.620000 +vn -0.530800 -0.471700 -0.704100 +vn -0.601200 -0.515500 -0.610600 +vn -0.672900 -0.574200 -0.466400 +vn -0.541500 -0.688500 -0.482500 +vn -0.123200 -0.937500 0.325500 +vn -0.040800 -0.938000 0.344200 +vn -0.084000 -0.858600 0.505600 +vn -0.169100 -0.973100 0.156000 +vn -0.256400 -0.927200 0.273000 +vn -0.251000 -0.834700 0.490100 +vn -0.324300 -0.856600 0.401200 +vn -0.395500 -0.870800 0.292100 +vn -0.014800 -0.857800 0.513700 +vn -0.426200 -0.888800 0.168200 +vn -0.064500 -0.750400 0.657900 +vn -0.159000 -0.768700 0.619500 +vn -0.135300 -0.637000 0.758800 +vn -0.212300 -0.685500 0.696300 +vn -0.351500 -0.730000 0.586100 +vn -0.180100 -0.633600 0.752400 +vn -0.410500 -0.774800 0.480700 +vn -0.507900 -0.773400 0.379200 +vn -0.524900 -0.808200 0.267000 +vn -0.605100 -0.750100 0.266800 +vn -0.397700 -0.916300 0.047700 +vn -0.381700 -0.656700 0.650400 +vn -0.542300 -0.682400 0.490100 +vn -0.526000 -0.621500 0.580600 +vn -0.520900 -0.631600 0.574200 +vn -0.607700 -0.587900 0.533900 +vn -0.619000 -0.696000 0.363700 +vn -0.433400 0.535700 -0.724700 +vn -0.760500 0.649100 -0.015600 +vn -0.485700 0.871700 -0.065200 +vn -0.414500 0.909300 -0.034800 +vn -0.307900 0.950800 -0.034900 +vn -0.037600 0.998800 -0.031800 +vn -0.198300 0.979100 -0.043700 +vn 0.124000 0.991800 -0.031000 +vn 0.247800 0.968200 -0.033800 +vn 0.366700 0.928400 -0.059500 +vn 0.473400 0.877800 -0.072800 +vn 0.435100 0.542900 -0.718300 +vn -0.993000 0.115300 0.026400 +vn -0.975800 0.217700 0.019000 +vn -0.945800 0.324600 0.007300 +vn -0.902000 0.431600 -0.001900 +vn -0.837000 0.547100 -0.010900 +vn 0.749800 0.661300 -0.021100 +vn 0.835400 0.549400 -0.013300 +vn 0.904600 0.426300 -0.004100 +vn 0.963100 0.268700 0.014300 +vn 0.993300 0.111600 0.031300 +vn 0.743900 0.667100 -0.039100 +vn 0.446200 0.558900 -0.699000 +vn 0.644600 0.759700 -0.086000 +vn 0.940800 0.338600 0.011700 +vn 0.813100 0.577700 -0.071600 +vn 0.886200 0.461300 -0.042900 +vn 0.734000 0.673300 -0.089000 +vn 0.973800 0.222600 0.046500 +vn 0.989900 0.110700 0.088500 +vn 0.992200 0.073900 0.100100 +vn 0.984700 0.164900 0.056700 +vn 0.726700 -0.671600 0.144600 +vn 0.848400 0.050700 0.526900 +vn 0.581300 -0.682900 0.442300 +vn 0.655500 -0.675900 0.336700 +vn 0.518200 -0.686800 0.509600 +vn 0.638800 0.056300 0.767300 +vn 0.427700 -0.677900 0.597900 +vn 0.820200 0.234100 0.522000 +vn 0.656200 0.317600 0.684400 +vn 0.647000 0.204300 0.734600 +vn 0.847500 0.311100 0.430100 +vn 0.654800 0.375900 0.655700 +vn 0.660800 0.452500 0.598700 +vn 0.877600 0.359900 0.316600 +vn 0.685000 0.512000 0.518200 +vn 0.695400 0.569600 0.438100 +vn 0.877100 0.417100 0.238100 +vn 0.688300 0.623700 0.370200 +vn 0.698100 0.674600 0.239800 +vn 0.856800 0.497100 0.137100 +vn 0.686900 0.719800 0.100300 +vn 0.864300 0.501700 0.034900 +vn 0.679300 0.733700 0.013500 +vn 0.696300 0.716800 -0.036300 +vn 0.830600 0.544600 -0.116000 +vn 0.661400 0.731700 -0.164400 +vn 0.696200 0.710500 -0.102500 +vn 0.787200 0.592000 -0.172500 +vn 0.664100 0.706000 -0.245900 +vn 0.754300 0.614700 -0.230400 +vn 0.651300 0.711000 -0.265100 +vn 0.748400 0.633900 -0.194900 +vn 0.620500 0.752700 -0.219900 +vn 0.724000 0.673100 -0.150800 +vn 0.618300 0.772800 -0.143300 +vn 0.745000 0.650200 -0.149000 +vn 0.991100 0.098600 0.088700 +vn 0.992600 0.118700 0.024800 +vn 0.995100 0.097900 -0.010400 +vn 0.978500 0.189400 -0.081200 +vn 0.973300 0.217700 -0.072400 +vn 0.977800 0.209100 -0.015200 +vn 0.896100 0.431800 -0.102300 +vn 0.831900 0.533300 -0.153100 +vn 0.898600 0.425700 -0.106400 +vn 0.834000 0.524600 -0.170700 +vn 0.871700 0.486000 -0.063000 +vn 0.920900 0.388700 -0.029300 +vn 0.898800 0.438200 0.011900 +vn 0.912700 0.396800 0.097000 +vn 0.943000 0.326500 0.064200 +vn 0.917700 0.337300 0.210000 +vn 0.937600 0.307000 0.163200 +vn 0.915900 0.283900 0.283900 +vn 0.939700 0.234100 0.249400 +vn 0.887500 0.434500 0.153400 +vn 0.875700 0.266000 0.402900 +vn 0.906000 0.226800 0.357200 +vn 0.859300 0.188200 0.475600 +vn 0.818000 0.206000 0.537100 +vn 0.784800 0.132900 0.605200 +vn 0.831500 0.113500 0.543700 +vn 0.765600 0.058100 0.640600 +vn 0.898800 0.179000 0.400100 +vn 0.964400 0.263800 -0.018600 +vn 0.969500 0.239900 0.050200 +vn 0.947200 0.319800 -0.019700 +vn 0.958200 0.254600 0.130300 +vn 0.967800 0.199200 0.154000 +vn 0.931000 0.170700 0.322600 +vn 0.886300 0.124600 0.446000 +vn 0.975700 0.113100 0.187300 +vn 0.957900 0.173900 0.228300 +vn 0.947000 0.088700 0.308800 +vn 0.912000 0.071400 0.404000 +vn 0.695400 -0.674300 0.248500 +vn 0.977800 0.208300 0.021400 +vn 0.945700 0.324000 -0.026200 +vn 0.952400 0.296200 -0.072000 +vn 0.970200 0.231500 -0.071100 +vn 0.949200 0.305100 -0.077000 +vn 0.621300 0.119600 0.774400 +vn -0.724100 -0.672000 0.154900 +vn -0.679700 -0.677100 0.281900 +vn 0.181000 -0.682100 0.708400 +vn -0.630700 -0.682200 0.369800 +vn -0.579900 -0.680800 0.447400 +vn 0.301800 -0.682900 0.665200 +vn 0.072100 -0.679900 0.729700 +vn -0.262000 -0.680800 0.683900 +vn -0.520600 -0.685600 0.508800 +vn -0.366300 -0.683000 0.631900 +vn -0.451200 -0.685000 0.572000 +vn -0.160600 -0.684100 0.711500 +vn -0.051500 -0.687300 0.724500 +vn -0.970600 0.122300 0.207100 +vn -0.990500 0.105200 0.088400 +vn -0.732100 0.674500 -0.095100 +vn -0.670500 0.714100 -0.201100 +vn -0.647600 0.754400 -0.106900 +vn -0.613300 0.742300 -0.269800 +vn -0.749100 0.637800 -0.178600 +vn -0.732400 0.635900 -0.243300 +vn -0.783800 0.585900 -0.205800 +vn -0.655300 0.708600 -0.261600 +vn -0.678800 0.703500 -0.210200 +vn -0.659700 0.735900 -0.152300 +vn -0.835000 0.537600 -0.116900 +vn -0.701000 0.706900 -0.093800 +vn -0.860200 0.505200 0.069900 +vn -0.693300 0.716400 0.078600 +vn -0.709100 0.704800 -0.020300 +vn -0.709300 0.674200 0.205600 +vn -0.865300 0.430800 0.256300 +vn -0.692800 0.624600 0.360400 +vn -0.752600 0.607300 0.254500 +vn -0.694800 0.553200 0.459600 +vn -0.694100 0.466200 0.548500 +vn -0.853100 0.387300 0.349400 +vn -0.848700 0.322200 0.419400 +vn -0.834900 0.260800 0.484600 +vn -0.678200 0.342100 0.650400 +vn -0.809400 0.189600 0.555700 +vn -0.647300 0.234500 0.725200 +vn -0.716100 0.046300 0.696400 +vn -0.617200 0.051600 0.785100 +vn -0.638700 0.135600 0.757400 +vn -0.943800 0.061400 0.324700 +vn -0.978100 0.206900 -0.024500 +vn -0.981800 0.184900 0.043400 +vn -0.968100 0.241600 -0.066500 +vn -0.988100 0.131600 -0.079100 +vn -0.995200 0.097500 -0.005900 +vn -0.989200 0.145200 0.018200 +vn -0.991800 0.082100 0.098000 +vn -0.991100 0.102900 0.084500 +vn -0.833400 0.543700 -0.098700 +vn -0.799900 0.596700 -0.063100 +vn -0.876900 0.479300 -0.037200 +vn -0.928500 0.371200 0.006400 +vn -0.869400 0.492500 -0.039500 +vn -0.901700 0.427500 -0.064700 +vn -0.896100 0.430800 -0.106300 +vn -0.845900 0.510000 -0.155600 +vn -0.942300 0.326200 -0.074600 +vn -0.901100 0.426600 -0.077000 +vn -0.817500 0.548400 -0.175800 +vn -0.880100 0.276100 0.386200 +vn -0.913500 0.275100 0.299700 +vn -0.919400 0.207100 0.334200 +vn -0.895400 0.151100 0.418700 +vn -0.930600 0.126600 0.343400 +vn -0.862600 0.202100 0.463700 +vn -0.868200 0.063100 0.492100 +vn -0.780400 0.084600 0.619500 +vn -0.843600 0.116900 0.524100 +vn -0.857100 0.512200 -0.055700 +vn -0.866100 0.499100 0.024700 +vn -0.885000 0.440600 0.150300 +vn -0.891300 0.356700 0.279700 +vn -0.970800 0.235700 0.044500 +vn -0.957300 0.264600 0.116500 +vn -0.964800 0.262800 -0.009400 +vn -0.954100 0.297200 0.037100 +vn -0.972700 0.196000 0.124000 +vn -0.949900 0.197500 0.242200 +vn -0.939100 0.286000 0.190600 +vn -0.917200 0.323500 0.232500 +vn -0.933400 0.346000 0.094500 +vn -0.918600 0.364100 0.153400 +vn -0.910600 0.408900 0.060900 +vn -0.976100 0.210900 0.052500 +vn -0.968200 0.249500 -0.018600 +vn -0.942100 0.334700 -0.018900 +vn -0.941100 0.335600 -0.041600 +vn -0.941900 0.327400 -0.075400 +vn -0.975400 0.211300 -0.063000 +vn -0.434600 0.566000 -0.700500 +vn -0.744800 0.666000 -0.040000 +vn 0.003800 0.041000 0.999100 +vn 0.464600 0.800400 0.378600 +vn -0.542100 0.835300 -0.091400 +vn -0.351500 0.931200 -0.096000 +vn 0.394500 0.914400 -0.090500 +vn 0.510800 0.855200 -0.087400 +vn 0.515300 0.843100 -0.153800 +vn 0.546700 0.787000 -0.285600 +vn 0.495700 0.815800 -0.297900 +vn 0.492800 0.837300 -0.236600 +vn 0.511200 0.854000 -0.096500 +vn 0.478000 0.847400 0.231100 +vn 0.464300 0.660000 0.590700 +vn 0.461300 0.275900 0.843300 +vn 0.478100 0.067600 0.875700 +vn -0.483500 0.057600 0.873400 +vn -0.464000 0.195300 0.864000 +vn -0.456800 0.348500 0.818400 +vn -0.452000 0.469500 0.758400 +vn -0.456500 0.576300 0.677800 +vn -0.456600 0.814600 0.357600 +vn -0.474500 0.855600 0.206500 +vn -0.475900 0.874600 0.092100 +vn -0.484800 0.874600 0.003300 +vn -0.508200 0.854500 -0.107200 +vn -0.516100 0.824300 -0.232500 +vn -0.486500 0.823000 -0.293200 +vn -0.535900 0.819100 -0.204500 +vn -0.418900 0.892800 -0.165200 +vn -0.403600 0.879500 -0.252100 +vn -0.461700 0.838100 -0.290500 +vn -0.125300 0.045600 0.991100 +vn -0.036800 0.135600 0.990100 +vn -0.110800 0.305700 0.945600 +vn -0.036600 0.239700 0.970100 +vn 0.038000 0.307000 0.950900 +vn -0.035600 0.395100 0.917900 +vn -0.108100 0.611000 0.784200 +vn -0.036400 0.497200 0.866800 +vn 0.039600 0.616300 0.786500 +vn -0.041400 0.722600 0.690000 +vn -0.119400 0.927400 0.354500 +vn -0.041100 0.862700 0.504000 +vn 0.039600 0.932200 0.359800 +vn -0.041000 0.974500 0.220500 +vn -0.159300 0.970500 -0.180700 +vn -0.038000 0.992300 -0.117600 +vn 0.035800 0.976700 -0.211600 +vn -0.118700 0.955100 -0.271300 +vn 0.038400 0.961400 -0.272300 +vn -0.105700 0.937900 -0.330400 +vn 0.046500 0.940900 -0.335500 +vn -0.055900 0.931700 -0.358900 +vn -0.202700 0.085500 0.975500 +vn -0.186300 0.201400 0.961600 +vn -0.181800 0.390100 0.902600 +vn -0.180200 0.491100 0.852200 +vn -0.184700 0.722300 0.666400 +vn -0.187400 0.795200 0.576700 +vn -0.044900 0.802800 0.594600 +vn -0.199300 0.853700 0.481100 +vn -0.197700 0.958200 0.206600 +vn -0.193200 0.976900 0.091300 +vn -0.042600 0.993800 0.102500 +vn -0.156500 0.986800 -0.040000 +vn -0.036900 0.999300 -0.001000 +vn -0.252100 0.296300 0.921200 +vn -0.254400 0.603200 0.755900 +vn -0.244500 0.908400 0.339200 +vn -0.283100 0.959100 0.003800 +vn -0.285300 0.954500 -0.086300 +vn -0.274300 0.936900 -0.216700 +vn -0.278300 0.922800 -0.266200 +vn -0.213600 0.915400 -0.341200 +vn -0.133800 0.931800 -0.337300 +vn 0.031700 0.940300 -0.338700 +vn -0.082100 0.951700 -0.295700 +vn 0.083100 0.952700 -0.292300 +vn -0.124600 0.972000 -0.199200 +vn 0.038400 0.978400 -0.203000 +vn -0.040200 0.991800 -0.120900 +vn -0.345300 0.042800 0.937500 +vn -0.330900 0.115800 0.936500 +vn -0.328800 0.219400 0.918500 +vn -0.320400 0.378000 0.868600 +vn -0.323400 0.481200 0.814700 +vn -0.289800 0.708900 0.643100 +vn -0.321200 0.783100 0.532500 +vn -0.338500 0.832800 0.438000 +vn -0.342400 0.878600 0.332700 +vn -0.352400 0.905700 0.235500 +vn -0.354200 0.928100 0.114800 +vn -0.390200 0.906000 -0.163900 +vn -0.348700 0.879700 -0.323300 +vn -0.248000 0.927100 -0.281000 +vn -0.199700 0.973200 -0.113400 +vn -0.419900 0.138300 0.896900 +vn -0.393400 0.277600 0.876400 +vn -0.358300 0.586000 0.726800 +vn -0.388500 0.683300 0.618200 +vn -0.388000 0.921600 0.004900 +vn -0.419400 0.903200 -0.091100 +vn -0.439900 0.872300 -0.213300 +vn -0.386700 0.880700 -0.273500 +vn -0.309300 0.896100 -0.318300 +vn -0.285700 0.940800 -0.182300 +vn -0.438100 0.744700 0.503500 +vn 0.348700 0.056300 0.935500 +vn 0.406600 0.172700 0.897100 +vn 0.318600 0.284700 0.904100 +vn 0.393200 0.373800 0.840000 +vn 0.323300 0.591000 0.739000 +vn 0.402000 0.474900 0.782800 +vn 0.433200 0.574200 0.694600 +vn 0.320400 0.698500 0.639800 +vn 0.408000 0.747600 0.524000 +vn 0.346600 0.836700 0.423900 +vn 0.348400 0.888900 0.297300 +vn 0.418800 0.896300 0.145400 +vn 0.345600 0.909300 -0.231500 +vn 0.424200 0.890600 -0.164100 +vn 0.402600 0.862100 -0.307500 +vn 0.439400 0.846600 -0.300300 +vn 0.342700 0.913800 -0.218100 +vn 0.475400 0.844000 -0.248100 +vn 0.439300 0.881300 -0.174100 +vn 0.425000 0.904400 0.037400 +vn 0.417800 0.905700 -0.071800 +vn 0.254300 0.093600 0.962600 +vn 0.182000 0.301700 0.935800 +vn 0.262300 0.191100 0.945900 +vn 0.249100 0.382000 0.890000 +vn 0.180400 0.610200 0.771400 +vn 0.254400 0.488100 0.834900 +vn 0.191300 0.712600 0.674900 +vn 0.248400 0.823900 0.509300 +vn 0.198900 0.918100 0.342600 +vn 0.273400 0.942600 0.191400 +vn 0.191600 0.958500 -0.210900 +vn 0.279600 0.947500 -0.155100 +vn 0.197800 0.941200 -0.273900 +vn 0.309100 0.898600 -0.311300 +vn 0.195300 0.920900 -0.337200 +vn 0.298900 0.895300 -0.330300 +vn 0.195700 0.940400 -0.278000 +vn 0.290000 0.917800 -0.271000 +vn 0.191100 0.962600 -0.191900 +vn 0.271900 0.956400 -0.106600 +vn 0.111100 0.202300 0.973000 +vn 0.109900 0.392700 0.913100 +vn 0.109200 0.495000 0.862000 +vn 0.097900 0.757100 0.645800 +vn 0.112300 0.862000 0.494300 +vn 0.118500 0.969100 0.216400 +vn 0.122100 0.985000 -0.121600 +vn 0.171000 0.923000 -0.344700 +vn 0.119200 0.985200 -0.123400 +vn 0.113600 0.082200 0.990100 +vn 0.119100 0.988000 0.097800 +vn 0.275500 0.958500 0.073100 +vn 0.117900 0.993000 -0.009400 +vn 0.274500 0.960200 -0.050700 +usemtl None +s 1 +f 1//1 2//2 3//3 +f 3//3 2//2 4//4 +f 5//5 6//6 7//7 +f 5//5 7//7 8//8 +f 9//9 10//10 11//11 +f 11//11 10//10 12//12 +f 9//9 11//11 13//13 +f 9//9 13//13 14//14 +f 9//9 14//14 15//15 +f 16//16 17//17 15//15 +f 18//18 19//19 20//20 +f 20//20 19//19 21//21 +f 11//11 12//12 20//20 +f 11//11 20//20 21//21 +f 22//22 23//23 16//16 +f 16//16 23//23 24//24 +f 17//17 25//25 15//15 +f 15//15 25//25 9//9 +f 19//19 18//18 26//26 +f 16//16 15//15 22//22 +f 26//26 27//27 19//19 +f 19//19 27//27 28//28 +f 29//29 30//30 31//31 +f 31//31 30//30 3//3 +f 31//31 32//32 29//29 +f 33//33 34//34 4//4 +f 4//4 34//34 3//3 +f 3//3 34//34 31//31 +f 4//4 2//2 33//33 +f 33//33 2//2 30//30 +f 30//30 2//2 1//1 +f 30//30 1//1 3//3 +f 34//34 33//33 35//35 +f 34//34 35//35 36//36 +f 37//37 38//38 39//39 +f 39//39 38//38 40//40 +f 41//41 42//42 43//43 +f 42//42 44//44 43//43 +f 43//43 44//44 6//6 +f 43//43 6//6 40//40 +f 40//40 6//6 5//5 +f 40//40 5//5 39//39 +f 5//5 8//8 39//39 +f 39//39 8//8 44//44 +f 44//44 8//8 7//7 +f 44//44 7//7 6//6 +f 45//45 46//46 47//47 +f 46//46 48//48 47//47 +f 49//49 45//45 50//50 +f 50//50 45//45 47//47 +f 37//37 47//47 48//48 +f 51//51 52//52 53//53 +f 53//53 52//52 54//54 +f 55//55 53//53 56//56 +f 56//56 53//53 54//54 +f 56//56 54//54 45//45 +f 45//45 54//54 46//46 +f 57//57 58//58 59//59 +f 59//59 60//60 57//57 +f 60//60 59//59 61//61 +f 60//60 61//61 62//62 +f 63//63 64//64 61//61 +f 61//61 64//64 62//62 +f 58//58 57//57 65//65 +f 65//65 57//57 66//66 +f 67//67 68//68 69//69 +f 69//69 70//70 67//67 +f 65//65 71//71 70//70 +f 70//70 71//71 67//67 +f 65//65 66//66 71//71 +f 72//72 24//24 73//73 +f 73//73 24//24 23//23 +f 22//22 73//73 23//23 +f 22//22 74//74 73//73 +f 74//74 22//22 15//15 +f 74//74 15//15 75//75 +f 14//14 76//76 75//75 +f 14//14 75//75 15//15 +f 76//76 14//14 13//13 +f 11//11 77//77 13//13 +f 13//13 77//77 76//76 +f 77//77 11//11 21//21 +f 77//77 21//21 78//78 +f 19//19 79//79 78//78 +f 19//19 78//78 21//21 +f 79//79 19//19 28//28 +f 79//79 28//28 80//80 +f 27//27 81//81 80//80 +f 27//27 80//80 28//28 +f 81//81 27//27 26//26 +f 81//81 26//26 82//82 +f 18//18 82//82 26//26 +f 82//82 18//18 83//83 +f 83//83 18//18 20//20 +f 83//83 20//20 84//84 +f 84//84 20//20 12//12 +f 84//84 12//12 85//85 +f 85//85 12//12 10//10 +f 9//9 86//86 85//85 +f 9//9 85//85 10//10 +f 86//86 9//9 25//25 +f 86//86 25//25 87//87 +f 88//88 87//87 17//17 +f 17//17 87//87 25//25 +f 88//88 17//17 16//16 +f 24//24 72//72 16//16 +f 16//16 72//72 88//88 +f 89//89 90//90 91//91 +f 89//89 91//91 92//92 +f 92//92 93//93 94//94 +f 92//92 94//94 89//89 +f 95//95 96//96 97//97 +f 89//89 94//94 96//96 +f 96//96 94//94 98//98 +f 96//96 98//98 97//97 +f 97//97 98//98 99//99 +f 97//97 99//99 100//100 +f 93//93 92//92 101//101 +f 90//90 102//102 91//91 +f 103//103 104//104 105//105 +f 104//104 106//106 105//105 +f 107//107 103//103 108//108 +f 108//108 103//103 105//105 +f 109//109 105//105 106//106 +f 110//110 111//111 112//112 +f 112//112 111//111 113//113 +f 114//114 112//112 115//115 +f 115//115 112//112 113//113 +f 115//115 113//113 103//103 +f 103//103 113//113 104//104 +f 116//116 117//117 118//118 +f 117//117 119//119 118//118 +f 120//120 119//119 117//117 +f 121//121 119//119 120//120 +f 122//122 123//123 120//120 +f 120//120 123//123 121//121 +f 116//116 118//118 124//124 +f 124//124 118//118 125//125 +f 126//126 127//127 128//128 +f 128//128 129//129 126//126 +f 124//124 130//130 129//129 +f 129//129 130//130 126//126 +f 124//124 131//131 130//130 +f 131//131 124//124 125//125 +f 132//132 133//133 134//134 +f 135//135 136//136 133//133 +f 133//133 136//136 137//137 +f 133//133 137//137 134//134 +f 134//134 137//137 138//138 +f 134//134 138//138 139//139 +f 135//135 140//140 141//141 +f 135//135 141//141 142//142 +f 142//142 143//143 136//136 +f 142//142 136//136 135//135 +f 143//143 142//142 144//144 +f 140//140 145//145 141//141 +f 146//146 147//147 148//148 +f 149//149 150//150 147//147 +f 150//150 151//151 147//147 +f 147//147 152//152 153//153 +f 147//147 153//153 154//154 +f 146//146 155//155 156//156 +f 157//157 158//158 156//156 +f 147//147 146//146 149//149 +f 147//147 151//151 159//159 +f 146//146 160//160 155//155 +f 147//147 159//159 152//152 +f 161//161 162//162 163//163 +f 163//163 154//154 153//153 +f 148//148 160//160 146//146 +f 157//157 156//156 164//164 +f 153//153 161//161 163//163 +f 157//157 164//164 165//165 +f 146//146 156//156 158//158 +f 166//166 86//86 167//167 +f 86//86 166//166 85//85 +f 81//81 82//82 168//168 +f 168//168 82//82 169//169 +f 170//170 171//171 72//72 +f 172//172 77//77 173//173 +f 167//167 86//86 174//174 +f 174//174 86//86 87//87 +f 170//170 73//73 175//175 +f 72//72 73//73 170//170 +f 174//174 87//87 176//176 +f 177//177 74//74 178//178 +f 77//77 172//172 76//76 +f 173//173 77//77 179//179 +f 179//179 78//78 180//180 +f 176//176 88//88 181//181 +f 176//176 87//87 88//88 +f 175//175 73//73 74//74 +f 175//175 74//74 177//177 +f 169//169 82//82 182//182 +f 182//182 82//82 183//183 +f 82//82 83//83 183//183 +f 183//183 83//83 184//184 +f 181//181 88//88 72//72 +f 181//181 72//72 171//171 +f 77//77 78//78 179//179 +f 78//78 79//79 180//180 +f 185//185 85//85 166//166 +f 74//74 75//75 178//178 +f 83//83 84//84 184//184 +f 184//184 84//84 186//186 +f 75//75 187//187 178//178 +f 79//79 188//188 180//180 +f 186//186 84//84 85//85 +f 186//186 85//85 185//185 +f 75//75 76//76 187//187 +f 187//187 76//76 189//189 +f 189//189 76//76 172//172 +f 79//79 80//80 188//188 +f 188//188 80//80 190//190 +f 190//190 80//80 81//81 +f 190//190 81//81 168//168 +f 191//191 147//147 154//154 +f 191//191 154//154 192//192 +f 192//192 154//154 163//163 +f 192//192 163//163 193//193 +f 193//193 163//163 162//162 +f 193//193 162//162 194//194 +f 147//147 191//191 195//195 +f 147//147 195//195 148//148 +f 148//148 195//195 196//196 +f 148//148 196//196 160//160 +f 160//160 196//196 197//197 +f 160//160 197//197 155//155 +f 155//155 197//197 198//198 +f 155//155 198//198 156//156 +f 156//156 198//198 199//199 +f 156//156 199//199 164//164 +f 164//164 199//199 200//200 +f 164//164 200//200 165//165 +f 165//165 200//200 201//201 +f 165//165 201//201 157//157 +f 157//157 201//201 202//202 +f 157//157 202//202 203//203 +f 157//157 203//203 158//158 +f 158//158 203//203 146//146 +f 146//146 203//203 204//204 +f 146//146 204//204 205//205 +f 146//146 205//205 149//149 +f 149//149 205//205 206//206 +f 149//149 206//206 150//150 +f 150//150 206//206 151//151 +f 151//151 206//206 207//207 +f 151//151 207//207 159//159 +f 159//159 207//207 208//208 +f 159//159 208//208 152//152 +f 152//152 208//208 209//209 +f 152//152 209//209 153//153 +f 153//153 209//209 210//210 +f 153//153 210//210 161//161 +f 161//161 210//210 194//194 +f 161//161 194//194 162//162 +f 211//211 212//212 213//213 +f 214//214 215//215 216//216 +f 217//217 218//218 219//219 +f 220//220 221//221 222//222 +f 223//223 224//224 225//225 +f 226//226 227//227 228//228 +f 229//229 230//230 231//231 +f 232//232 233//233 234//234 +f 235//235 236//236 237//237 +f 212//212 238//238 239//239 +f 238//238 240//240 241//241 +f 242//242 243//243 244//244 +f 242//242 244//244 245//245 +f 242//242 246//246 243//243 +f 247//247 246//246 242//242 +f 247//247 248//248 246//246 +f 248//248 247//247 249//249 +f 250//250 229//229 231//231 +f 250//250 251//251 229//229 +f 252//252 253//253 254//254 +f 255//255 253//253 252//252 +f 255//255 256//256 253//253 +f 257//257 258//258 226//226 +f 259//259 258//258 260//260 +f 260//260 258//258 257//257 +f 260//260 261//261 262//262 +f 263//263 264//264 265//265 +f 265//265 264//264 259//259 +f 265//265 259//259 262//262 +f 262//262 259//259 260//260 +f 260//260 257//257 261//261 +f 261//261 257//257 266//266 +f 261//261 266//266 267//267 +f 227//227 226//226 258//258 +f 268//268 269//269 270//270 +f 271//271 272//272 273//273 +f 273//273 272//272 274//274 +f 275//275 276//276 268//268 +f 268//268 276//276 269//269 +f 275//275 277//277 276//276 +f 276//276 277//277 278//278 +f 279//279 256//256 263//263 +f 263//263 256//256 255//255 +f 263//263 255//255 264//264 +f 258//258 259//259 227//227 +f 227//227 259//259 280//280 +f 227//227 280//280 228//228 +f 259//259 264//264 252//252 +f 259//259 252//252 280//280 +f 264//264 255//255 252//252 +f 252//252 254//254 280//280 +f 280//280 254//254 281//281 +f 282//282 283//283 284//284 +f 285//285 286//286 287//287 +f 277//277 275//275 288//288 +f 289//289 290//290 285//285 +f 287//287 289//289 285//285 +f 289//289 283//283 290//290 +f 291//291 292//292 285//285 +f 291//291 285//285 290//290 +f 220//220 278//278 277//277 +f 293//293 294//294 295//295 +f 295//295 294//294 296//296 +f 292//292 296//296 294//294 +f 292//292 297//297 296//296 +f 298//298 299//299 296//296 +f 300//300 301//301 298//298 +f 300//300 298//298 297//297 +f 297//297 298//298 296//296 +f 296//296 302//302 295//295 +f 303//303 297//297 292//292 +f 303//303 292//292 291//291 +f 285//285 292//292 294//294 +f 304//304 300//300 297//297 +f 304//304 297//297 303//303 +f 231//231 305//305 250//250 +f 250//250 305//305 281//281 +f 280//280 281//281 228//228 +f 306//306 228//228 281//281 +f 306//306 281//281 307//307 +f 307//307 281//281 305//305 +f 308//308 305//305 231//231 +f 254//254 251//251 281//281 +f 281//281 251//251 250//250 +f 231//231 230//230 308//308 +f 308//308 230//230 249//249 +f 308//308 249//249 309//309 +f 310//310 308//308 311//311 +f 310//310 311//311 312//312 +f 312//312 311//311 313//313 +f 313//313 311//311 314//314 +f 315//315 316//316 314//314 +f 314//314 316//316 313//313 +f 245//245 315//315 317//317 +f 317//317 315//315 314//314 +f 317//317 314//314 309//309 +f 309//309 314//314 311//311 +f 309//309 311//311 308//308 +f 308//308 310//310 305//305 +f 305//305 310//310 307//307 +f 307//307 288//288 306//306 +f 306//306 288//288 275//275 +f 306//306 275//275 228//228 +f 228//228 275//275 268//268 +f 228//228 268//268 226//226 +f 226//226 268//268 270//270 +f 226//226 270//270 257//257 +f 257//257 270//270 271//271 +f 257//257 271//271 266//266 +f 266//266 271//271 273//273 +f 266//266 273//273 267//267 +f 267//267 273//273 274//274 +f 242//242 245//245 317//317 +f 242//242 317//317 247//247 +f 247//247 317//317 309//309 +f 247//247 309//309 249//249 +f 225//225 318//318 319//319 +f 320//320 319//319 321//321 +f 322//322 216//216 215//215 +f 282//282 284//284 323//323 +f 323//323 284//284 324//324 +f 323//323 325//325 326//326 +f 322//322 325//325 216//216 +f 327//327 328//328 216//216 +f 216//216 324//324 327//327 +f 328//328 327//327 286//286 +f 324//324 284//284 327//327 +f 323//323 221//221 282//282 +f 282//282 221//221 220//220 +f 329//329 330//330 331//331 +f 329//329 332//332 330//330 +f 333//333 334//334 335//335 +f 335//335 336//336 337//337 +f 337//337 336//336 332//332 +f 332//332 329//329 337//337 +f 338//338 339//339 329//329 +f 329//329 339//339 337//337 +f 339//339 340//340 337//337 +f 337//337 340//340 341//341 +f 340//340 342//342 341//341 +f 343//343 344//344 345//345 +f 346//346 334//334 333//333 +f 218//218 217//217 347//347 +f 348//348 349//349 217//217 +f 217//217 349//349 350//350 +f 217//217 350//350 351//351 +f 217//217 351//351 347//347 +f 352//352 353//353 354//354 +f 354//354 353//353 348//348 +f 354//354 348//348 217//217 +f 354//354 355//355 356//356 +f 354//354 356//356 357//357 +f 358//358 355//355 354//354 +f 359//359 360//360 361//361 +f 354//354 362//362 352//352 +f 219//219 363//363 217//217 +f 217//217 363//363 364//364 +f 354//354 217//217 365//365 +f 345//345 366//366 364//364 +f 364//364 366//366 367//367 +f 344//344 343//343 368//368 +f 344//344 368//368 366//366 +f 366//366 368//368 369//369 +f 364//364 367//367 370//370 +f 364//364 363//363 345//345 +f 345//345 363//363 371//371 +f 345//345 371//371 333//333 +f 333//333 371//371 346//346 +f 365//365 370//370 372//372 +f 354//354 361//361 358//358 +f 358//358 361//361 360//360 +f 361//361 354//354 365//365 +f 361//361 365//365 372//372 +f 361//361 372//372 239//239 +f 366//366 345//345 344//344 +f 354//354 357//357 362//362 +f 372//372 373//373 212//212 +f 372//372 212//212 239//239 +f 342//342 322//322 215//215 +f 223//223 225//225 319//319 +f 223//223 319//319 338//338 +f 338//338 319//319 320//320 +f 338//338 320//320 339//339 +f 339//339 320//320 326//326 +f 339//339 326//326 322//322 +f 215//215 374//374 342//342 +f 342//342 374//374 375//375 +f 214//214 328//328 293//293 +f 286//286 285//285 294//294 +f 286//286 294//294 293//293 +f 376//376 214//214 293//293 +f 376//376 293//293 295//295 +f 377//377 376//376 302//302 +f 378//378 214//214 376//376 +f 374//374 379//379 375//375 +f 375//375 379//379 368//368 +f 380//380 368//368 379//379 +f 380//380 381//381 369//369 +f 375//375 368//368 343//343 +f 331//331 338//338 329//329 +f 337//337 341//341 335//335 +f 343//343 341//341 342//342 +f 343//343 342//342 375//375 +f 331//331 223//223 338//338 +f 340//340 339//339 322//322 +f 340//340 322//322 342//342 +f 369//369 368//368 380//380 +f 379//379 377//377 380//380 +f 374//374 378//378 379//379 +f 379//379 378//378 377//377 +f 373//373 381//381 382//382 +f 373//373 382//382 212//212 +f 372//372 370//370 373//373 +f 217//217 364//364 370//370 +f 217//217 370//370 365//365 +f 213//213 212//212 382//382 +f 238//238 212//212 211//211 +f 333//333 343//343 345//345 +f 370//370 367//367 381//381 +f 370//370 381//381 373//373 +f 374//374 215//215 378//378 +f 377//377 383//383 380//380 +f 380//380 383//383 384//384 +f 380//380 384//384 382//382 +f 380//380 382//382 381//381 +f 216//216 328//328 214//214 +f 376//376 295//295 302//302 +f 385//385 213//213 384//384 +f 385//385 240//240 213//213 +f 213//213 240//240 211//211 +f 299//299 385//385 384//384 +f 299//299 384//384 386//386 +f 386//386 384//384 383//383 +f 386//386 383//383 302//302 +f 302//302 383//383 377//377 +f 376//376 377//377 378//378 +f 241//241 240//240 301//301 +f 241//241 301//301 387//387 +f 387//387 301//301 300//300 +f 387//387 300//300 388//388 +f 388//388 300//300 304//304 +f 388//388 304//304 389//389 +f 240//240 385//385 301//301 +f 301//301 385//385 299//299 +f 386//386 302//302 296//296 +f 386//386 296//296 299//299 +f 299//299 298//298 301//301 +f 211//211 240//240 238//238 +f 286//286 293//293 328//328 +f 215//215 214//214 378//378 +f 382//382 384//384 213//213 +f 381//381 367//367 369//369 +f 369//369 367//367 366//366 +f 341//341 343//343 333//333 +f 341//341 333//333 335//335 +f 335//335 334//334 336//336 +f 237//237 390//390 391//391 +f 391//391 235//235 237//237 +f 392//392 393//393 394//394 +f 391//391 395//395 394//394 +f 237//237 396//396 397//397 +f 237//237 397//397 390//390 +f 236//236 396//396 237//237 +f 398//398 399//399 400//400 +f 400//400 399//399 401//401 +f 402//402 403//403 404//404 +f 393//393 392//392 404//404 +f 393//393 404//404 403//403 +f 392//392 405//405 406//406 +f 407//407 402//402 406//406 +f 406//406 402//402 404//404 +f 406//406 404//404 392//392 +f 318//318 225//225 407//407 +f 408//408 407//407 406//406 +f 408//408 406//406 405//405 +f 400//400 405//405 392//392 +f 400//400 392//392 398//398 +f 398//398 392//392 395//395 +f 321//321 319//319 318//318 +f 407//407 225//225 402//402 +f 402//402 225//225 224//224 +f 402//402 224//224 403//403 +f 396//396 232//232 397//397 +f 397//397 232//232 409//409 +f 397//397 409//409 399//399 +f 401//401 399//399 410//410 +f 401//401 410//410 411//411 +f 411//411 410//410 412//412 +f 399//399 409//409 410//410 +f 287//287 327//327 284//284 +f 323//323 324//324 325//325 +f 323//323 326//326 221//221 +f 221//221 326//326 321//321 +f 221//221 321//321 413//413 +f 414//414 415//415 408//408 +f 414//414 408//408 412//412 +f 412//412 408//408 411//411 +f 397//397 399//399 398//398 +f 397//397 398//398 390//390 +f 390//390 398//398 395//395 +f 390//390 395//395 391//391 +f 222//222 416//416 417//417 +f 269//269 417//417 414//414 +f 269//269 414//414 418//418 +f 418//418 414//414 412//412 +f 418//418 412//412 419//419 +f 420//420 234//234 233//233 +f 232//232 234//234 409//409 +f 409//409 234//234 420//420 +f 409//409 420//420 410//410 +f 410//410 420//420 419//419 +f 410//410 419//419 412//412 +f 415//415 414//414 417//417 +f 415//415 417//417 413//413 +f 413//413 417//417 416//416 +f 413//413 416//416 221//221 +f 221//221 416//416 222//222 +f 392//392 394//394 395//395 +f 400//400 401//401 405//405 +f 405//405 401//401 411//411 +f 405//405 411//411 408//408 +f 407//407 408//408 415//415 +f 407//407 415//415 318//318 +f 318//318 415//415 413//413 +f 318//318 413//413 321//321 +f 320//320 321//321 326//326 +f 326//326 325//325 322//322 +f 216//216 325//325 324//324 +f 286//286 327//327 287//287 +f 287//287 284//284 289//289 +f 289//289 284//284 283//283 +f 316//316 389//389 304//304 +f 316//316 304//304 313//313 +f 313//313 304//304 303//303 +f 313//313 303//303 312//312 +f 312//312 303//303 291//291 +f 312//312 291//291 310//310 +f 310//310 291//291 290//290 +f 310//310 290//290 283//283 +f 310//310 283//283 307//307 +f 307//307 283//283 288//288 +f 288//288 283//283 282//282 +f 288//288 282//282 277//277 +f 277//277 282//282 220//220 +f 278//278 220//220 222//222 +f 278//278 222//222 276//276 +f 276//276 222//222 269//269 +f 269//269 222//222 417//417 +f 270//270 269//269 418//418 +f 270//270 418//418 271//271 +f 271//271 418//418 272//272 +f 272//272 418//418 419//419 +f 272//272 419//419 420//420 +f 272//272 420//420 274//274 +f 274//274 420//420 233//233 +f 421//421 422//422 423//423 +f 424//424 425//425 426//426 +f 427//427 428//428 429//429 +f 430//430 362//362 431//431 +f 358//432 359//359 432//433 +f 433//434 346//435 434//436 +f 435//437 436//438 437//439 +f 438//440 439//441 440//442 +f 441//443 442//444 443//445 +f 444//446 445//447 446//448 +f 447//449 448//450 449//451 +f 450//452 451//453 452//454 +f 453//455 454//456 455//457 +f 456//458 457//459 458//460 +f 235//235 459//461 460//462 +f 460//462 459//461 461//463 +f 462//464 460//462 463//465 +f 463//465 460//462 461//463 +f 464//466 465//467 466//468 +f 467//469 468//470 453//455 +f 453//455 468//470 469//471 +f 470//472 468//470 467//469 +f 471//473 472//474 473//475 +f 473//475 472//474 474//476 +f 451//453 474//476 475//477 +f 451//453 475//477 452//454 +f 450//452 476//478 477//479 +f 478//480 477//479 476//478 +f 478//480 479//481 477//479 +f 479//481 478//480 480//482 +f 480//482 481//483 479//481 +f 482//484 483//485 484//486 +f 482//484 484//486 485//487 +f 486//488 487//489 488//490 +f 489//491 483//485 488//490 +f 488//490 483//485 482//484 +f 488//490 482//484 486//488 +f 486//488 482//484 485//487 +f 490//492 491//493 492//494 +f 487//489 486//488 493//495 +f 494//496 490//492 485//487 +f 486//488 485//487 493//495 +f 487//489 495//497 488//490 +f 488//490 495//497 496//498 +f 488//490 496//498 489//491 +f 487//489 497//499 495//497 +f 495//497 497//499 498//500 +f 495//497 498//500 496//498 +f 496//498 498//500 455//457 +f 496//498 455//457 454//456 +f 499//501 498//500 497//499 +f 492//494 491//493 500//502 +f 484//486 494//496 485//487 +f 497//499 487//489 493//495 +f 497//499 493//495 501//503 +f 500//502 502//504 492//494 +f 492//494 502//504 493//495 +f 485//487 490//492 492//494 +f 485//487 492//494 493//495 +f 501//503 493//495 503//505 +f 503//505 493//495 502//504 +f 453//455 455//457 467//469 +f 467//469 455//457 498//500 +f 467//469 498//500 504//506 +f 504//506 498//500 499//501 +f 499//501 497//499 501//503 +f 503//505 502//504 505//507 +f 471//473 470//472 504//506 +f 505//507 506//508 507//509 +f 507//509 506//508 508//510 +f 509//511 506//508 505//507 +f 510//512 507//509 508//510 +f 510//512 508//510 511//513 +f 511//513 508//510 512//514 +f 513//515 501//503 503//505 +f 513//515 503//505 514//516 +f 514//516 515//517 513//515 +f 513//515 515//517 516//518 +f 513//515 516//518 501//503 +f 501//503 504//506 499//501 +f 504//506 470//472 467//469 +f 510//512 514//516 507//509 +f 517//519 441//443 511//513 +f 444//446 518//520 445//447 +f 445//447 518//520 517//519 +f 445//447 517//519 519//521 +f 441//443 518//520 442//444 +f 448//450 445//447 519//521 +f 448//450 520//522 445//447 +f 520//522 423//423 446//448 +f 521//523 522//524 423//423 +f 423//423 522//524 446//448 +f 521//523 523//525 524//526 +f 525//527 526//528 527//529 +f 524//526 523//525 526//528 +f 524//526 526//528 525//527 +f 446//448 528//530 444//446 +f 529//531 530//532 531//533 +f 529//531 531//533 528//530 +f 444//446 528//530 532//534 +f 444//446 532//534 518//520 +f 515//517 533//535 534//536 +f 515//517 534//536 516//518 +f 501//503 516//518 504//506 +f 533//535 443//445 475//477 +f 533//535 475//477 534//536 +f 516//518 534//536 472//474 +f 516//518 472//474 504//506 +f 504//506 472//474 471//473 +f 472//474 534//536 474//476 +f 474//476 534//536 475//477 +f 475//477 443//445 452//454 +f 442//444 452//454 443//445 +f 517//519 518//520 441//443 +f 441//443 443//445 533//535 +f 441//443 533//535 515//517 +f 441//443 515//517 514//516 +f 441//443 514//516 511//513 +f 511//513 514//516 510//512 +f 507//509 514//516 503//505 +f 507//509 503//505 505//507 +f 509//511 505//507 502//504 +f 531//533 535//537 528//530 +f 528//530 535//537 532//534 +f 532//534 535//537 442//444 +f 530//532 536//538 531//533 +f 531//533 536//538 535//537 +f 536//538 480//482 478//480 +f 536//538 478//480 535//537 +f 535//537 478//480 537//539 +f 535//537 537//539 442//444 +f 442//444 537//539 452//454 +f 537//539 478//480 476//478 +f 537//539 476//478 452//454 +f 538//540 539//541 540//542 +f 540//542 331//543 541//544 +f 541//544 542//545 543//546 +f 544//547 545//548 542//545 +f 541//544 546//549 547//550 +f 547//550 546//549 438//440 +f 438//440 546//549 439//441 +f 543//546 546//549 541//544 +f 506//508 439//441 548//551 +f 506//508 548//551 549//552 +f 548//551 550//553 549//552 +f 549//552 550//553 551//554 +f 439//441 546//549 548//551 +f 512//514 549//552 449//451 +f 519//521 449//451 448//450 +f 552//555 550//553 548//551 +f 476//478 450//452 452//454 +f 532//534 442//444 518//520 +f 517//519 511//513 519//521 +f 519//521 511//513 512//514 +f 519//521 512//514 449//451 +f 549//552 512//514 508//510 +f 549//552 508//510 506//508 +f 506//508 509//511 439//441 +f 330//556 553//557 545//548 +f 553//557 332//332 545//548 +f 545//548 332//332 554//558 +f 554//558 332//332 336//336 +f 554//558 336//336 555//559 +f 556//560 554//558 555//559 +f 556//560 555//559 334//561 +f 437//439 557//562 542//545 +f 543//546 542//545 552//555 +f 437//439 542//545 554//558 +f 437//439 554//558 435//437 +f 434//436 346//435 558//563 +f 434//436 558//563 371//564 +f 434//436 371//564 219//565 +f 334//561 433//434 556//560 +f 556//560 433//434 434//436 +f 556//560 434//436 559//566 +f 219//565 347//567 560//568 +f 431//431 357//357 355//569 +f 561//570 358//432 431//431 +f 352//571 430//430 562//572 +f 562//572 348//573 352//571 +f 350//574 348//573 560//568 +f 560//568 348//573 562//572 +f 544//547 330//556 545//548 +f 542//545 545//548 554//558 +f 554//558 556//560 435//437 +f 435//437 556//560 559//566 +f 434//436 219//565 560//568 +f 429//429 562//572 563//575 +f 564//576 434//436 560//568 +f 355//569 561//570 431//431 +f 430//430 431//431 562//572 +f 562//572 431//431 565//577 +f 562//572 565//577 563//575 +f 566//578 427//427 429//429 +f 428//428 564//576 562//572 +f 428//428 562//572 429//429 +f 563//575 566//578 429//429 +f 347//567 350//574 560//568 +f 567//579 566//578 563//575 +f 432//433 568//580 565//577 +f 432//433 565//577 431//431 +f 432//433 431//431 358//432 +f 569//581 567//579 563//575 +f 542//545 557//562 552//555 +f 437//439 436//438 557//562 +f 436//438 550//553 557//562 +f 557//562 550//553 552//555 +f 559//566 564//576 570//582 +f 559//566 570//582 435//437 +f 435//437 570//582 571//583 +f 435//437 571//583 436//438 +f 546//549 543//546 552//555 +f 546//549 552//555 548//551 +f 549//552 551//554 449//451 +f 449//451 551//554 447//449 +f 550//553 571//583 551//554 +f 551//554 571//583 572//584 +f 520//522 421//421 423//423 +f 521//523 423//423 523//525 +f 421//421 520//522 447//449 +f 421//421 447//449 424//424 +f 424//424 447//449 572//584 +f 573//585 421//421 424//424 +f 424//424 572//584 425//425 +f 426//426 573//585 424//424 +f 573//585 422//422 421//421 +f 571//583 425//425 572//584 +f 423//423 422//422 523//525 +f 522//524 521//523 524//526 +f 524//526 525//527 527//529 +f 574//586 570//582 427//427 +f 574//586 427//427 575//587 +f 575//587 427//427 576//588 +f 571//583 570//582 574//586 +f 567//579 576//588 566//578 +f 362//362 357//357 431//431 +f 563//575 565//577 568//580 +f 563//575 568//580 569//581 +f 564//576 560//568 562//572 +f 577//589 567//579 578//590 +f 568//580 579//591 569//581 +f 569//581 579//591 578//590 +f 578//590 579//591 457//459 +f 576//588 426//426 575//587 +f 575//587 426//426 574//586 +f 567//579 569//581 578//590 +f 580//592 577//589 578//590 +f 581//593 582//594 583//595 +f 583//595 582//594 426//426 +f 581//593 456//458 523//525 +f 581//593 523//525 582//594 +f 422//422 573//585 582//594 +f 582//594 573//585 426//426 +f 583//595 577//589 581//593 +f 581//593 577//589 580//592 +f 580//592 578//590 456//458 +f 570//582 428//428 427//427 +f 576//588 427//427 566//578 +f 577//589 576//588 567//579 +f 578//590 457//459 456//458 +f 581//593 580//592 456//458 +f 425//425 574//586 426//426 +f 583//595 426//426 576//588 +f 583//595 576//588 577//589 +f 526//528 456//458 458//460 +f 571//583 574//586 425//425 +f 422//422 582//594 523//525 +f 523//525 456//458 526//528 +f 526//528 458//460 527//529 +f 527//529 530//532 524//526 +f 524//526 530//532 529//531 +f 524//526 529//531 522//524 +f 522//524 529//531 528//530 +f 522//524 528//530 446//448 +f 446//448 445//447 520//522 +f 520//522 448//450 447//449 +f 572//584 447//449 551//554 +f 571//583 550//553 436//438 +f 570//582 564//576 428//428 +f 559//566 434//436 564//576 +f 584//596 459//461 585//597 +f 584//596 585//597 586//598 +f 461//463 459//461 587//599 +f 587//599 463//465 461//463 +f 463//465 587//599 588//600 +f 588//600 587//599 584//596 +f 586//598 589//601 584//596 +f 584//596 589//601 590//602 +f 584//596 590//602 588//600 +f 588//600 590//602 591//603 +f 586//598 585//597 592//604 +f 463//465 588//600 591//603 +f 463//465 591//603 593//605 +f 592//604 594//606 586//598 +f 586//598 594//606 595//607 +f 586//598 595//607 589//601 +f 594//606 538//540 595//607 +f 594//606 539//541 538//540 +f 538//540 540//542 596//608 +f 595//607 597//609 598//610 +f 595//607 598//610 589//601 +f 597//609 538//540 599//611 +f 599//611 538//540 596//608 +f 589//601 598//610 600//612 +f 589//601 600//612 590//602 +f 590//602 600//612 601//613 +f 590//602 601//613 591//603 +f 591//603 601//613 602//614 +f 464//466 603//615 484//486 +f 462//464 463//465 593//605 +f 462//464 593//605 604//616 +f 604//616 593//605 464//466 +f 604//616 464//466 466//468 +f 464//466 484//486 465//467 +f 587//599 459//461 584//596 +f 593//605 602//614 464//466 +f 464//466 602//614 603//615 +f 603//615 494//496 484//486 +f 538//540 597//609 595//607 +f 593//605 591//603 602//614 +f 596//608 438//440 440//442 +f 598//610 605//617 606//618 +f 598//610 606//618 600//612 +f 600//612 606//618 601//613 +f 439//441 607//619 440//442 +f 608//620 607//619 609//621 +f 608//620 609//621 606//618 +f 606//618 609//621 491//493 +f 606//618 491//493 610//622 +f 610//622 491//493 490//492 +f 440//442 607//619 605//617 +f 605//617 607//619 608//620 +f 605//617 608//620 606//618 +f 601//613 606//618 610//622 +f 540//542 541//544 547//550 +f 540//542 547//550 596//608 +f 599//611 596//608 440//442 +f 599//611 440//442 597//609 +f 597//609 440//442 605//617 +f 597//609 605//617 598//610 +f 602//614 601//613 610//622 +f 602//614 610//622 603//615 +f 603//615 610//622 490//492 +f 603//615 490//492 494//496 +f 483//485 465//467 484//486 +f 500//502 491//493 609//621 +f 500//502 609//621 502//504 +f 502//504 609//621 607//619 +f 502//504 607//619 509//511 +f 509//511 607//619 439//441 +f 438//440 596//608 547//550 +f 542//545 541//544 331//543 +f 542//545 331//543 544//547 +f 31//31 34//34 32//32 +f 32//32 34//34 167//167 +f 611//623 29//29 612//624 +f 611//623 30//30 29//29 +f 32//32 167//167 174//174 +f 32//32 174//174 29//29 +f 29//29 174//174 612//624 +f 613//625 33//33 611//623 +f 611//623 33//33 30//30 +f 33//33 613//625 614//626 +f 33//33 614//626 35//35 +f 615//627 107//107 108//108 +f 615//627 108//108 614//626 +f 614//626 108//108 35//35 +f 105//105 109//109 108//108 +f 109//109 106//106 166//166 +f 108//108 109//109 35//35 +f 35//35 109//109 166//166 +f 35//35 166//166 167//167 +f 35//35 167//167 36//36 +f 36//36 167//167 34//34 +f 396//396 49//49 50//50 +f 396//396 50//50 232//232 +f 232//232 50//50 37//37 +f 232//232 37//37 39//39 +f 47//47 37//37 50//50 +f 37//37 48//48 172//172 +f 37//37 172//172 173//173 +f 37//37 173//173 38//38 +f 38//38 173//173 40//40 +f 40//40 173//173 41//41 +f 40//40 41//41 43//43 +f 42//42 274//274 233//233 +f 42//42 233//233 44//44 +f 44//44 233//233 39//39 +f 39//39 233//233 232//232 +f 179//179 42//42 41//41 +f 179//179 41//41 173//173 +f 55//55 56//56 45//45 +f 55//55 45//45 396//396 +f 396//396 45//45 49//49 +f 68//68 67//67 51//51 +f 51//51 67//67 71//71 +f 396//396 236//236 55//55 +f 55//55 236//236 53//53 +f 53//53 236//236 235//235 +f 46//46 54//54 52//52 +f 46//46 52//52 48//48 +f 51//51 71//71 189//189 +f 51//51 189//189 52//52 +f 52//52 189//189 172//172 +f 52//52 172//172 48//48 +f 58//58 65//65 460//462 +f 460//462 65//65 70//70 +f 51//51 53//53 68//68 +f 68//68 53//53 235//235 +f 68//68 235//235 69//69 +f 69//69 235//235 460//462 +f 460//462 70//70 69//69 +f 63//63 460//462 64//64 +f 460//462 63//63 61//61 +f 61//61 59//59 460//462 +f 460//462 59//59 58//58 +f 462//464 93//93 101//101 +f 60//60 62//62 102//102 +f 102//102 62//62 91//91 +f 90//90 178//178 102//102 +f 102//102 178//178 187//187 +f 102//102 187//187 60//60 +f 187//187 57//57 60//60 +f 189//189 71//71 66//66 +f 189//189 66//66 187//187 +f 187//187 66//66 57//57 +f 279//279 263//263 190//190 +f 99//99 604//616 466//468 +f 99//99 98//98 94//94 +f 93//93 462//464 604//616 +f 93//93 604//616 99//99 +f 93//93 99//99 94//94 +f 99//99 466//468 100//100 +f 100//100 466//468 465//467 +f 100//100 465//467 97//97 +f 89//89 96//96 95//95 +f 89//89 95//95 90//90 +f 97//97 177//177 95//95 +f 95//95 177//177 178//178 +f 95//95 178//178 90//90 +f 460//462 462//464 64//64 +f 64//64 462//464 101//101 +f 64//64 101//101 92//92 +f 64//64 92//92 62//62 +f 62//62 92//92 91//91 +f 114//114 115//115 103//103 +f 114//114 103//103 615//627 +f 615//627 103//103 107//107 +f 112//112 616//628 127//127 +f 112//112 127//127 110//110 +f 110//110 127//127 126//126 +f 126//126 130//130 110//110 +f 615//627 617//629 114//114 +f 114//114 617//629 112//112 +f 112//112 617//629 616//628 +f 104//104 113//113 111//111 +f 104//104 111//111 106//106 +f 110//110 130//130 185//185 +f 110//110 185//185 111//111 +f 111//111 185//185 166//166 +f 111//111 166//166 106//106 +f 116//116 124//124 618//630 +f 618//630 124//124 129//129 +f 618//630 128//128 616//628 +f 616//628 128//128 127//127 +f 618//630 129//129 128//128 +f 122//122 618//630 619//631 +f 122//122 619//631 123//123 +f 618//630 122//122 120//120 +f 618//630 120//120 117//117 +f 117//117 116//116 618//630 +f 144//144 619//631 143//143 +f 143//143 619//631 620//632 +f 119//119 121//121 145//145 +f 145//145 121//121 141//141 +f 186//186 145//145 184//184 +f 184//184 145//145 140//140 +f 186//186 118//118 119//119 +f 119//119 145//145 186//186 +f 130//130 131//131 185//185 +f 185//185 131//131 125//125 +f 185//185 125//125 186//186 +f 186//186 125//125 118//118 +f 621//633 138//138 620//632 +f 138//138 137//137 136//136 +f 136//136 143//143 138//138 +f 138//138 143//143 620//632 +f 135//135 133//133 132//132 +f 135//135 132//132 140//140 +f 138//138 621//633 622//634 +f 138//138 622//634 139//139 +f 139//139 622//634 134//134 +f 134//134 622//634 183//183 +f 134//134 183//183 132//132 +f 132//132 183//183 184//184 +f 132//132 184//184 140//140 +f 123//123 619//631 144//144 +f 123//123 144//144 142//142 +f 123//123 142//142 121//121 +f 121//121 142//142 141//141 +f 263//263 265//265 190//190 +f 190//190 265//265 188//188 +f 265//265 262//262 188//188 +f 188//188 262//262 261//261 +f 188//188 261//261 180//180 +f 274//274 42//42 179//179 +f 274//274 179//179 180//180 +f 274//274 180//180 267//267 +f 267//267 180//180 261//261 +f 97//97 465//467 177//177 +f 177//177 465//467 483//485 +f 177//177 483//485 175//175 +f 483//485 489//491 175//175 +f 489//491 496//498 175//175 +f 175//175 496//498 170//170 +f 496//498 454//456 170//170 +f 454//456 453//455 170//170 +f 170//170 453//455 171//171 +f 171//171 453//455 469//471 +f 623//635 171//171 469//471 +f 171//171 623//635 624//636 +f 171//171 624//636 181//181 +f 181//181 624//636 625//637 +f 626//638 176//176 625//637 +f 625//637 176//176 181//181 +f 627//639 176//176 626//638 +f 176//176 627//639 612//624 +f 176//176 612//624 174//174 +f 183//183 622//634 628//640 +f 183//183 628//640 182//182 +f 628//640 629//641 182//182 +f 630//642 169//169 182//182 +f 630//642 182//182 629//641 +f 631//643 168//168 169//169 +f 631//643 169//169 630//642 +f 168//168 631//643 632//644 +f 279//279 190//190 168//168 +f 279//279 168//168 632//644 +f 633//645 628//640 634//646 +f 634//646 635//647 633//645 +f 633//645 629//641 628//640 +f 631//643 630//642 636//648 +f 629//641 637//649 638//650 +f 629//641 638//650 630//642 +f 633//645 637//649 629//641 +f 637//649 633//645 639//651 +f 639//651 633//645 635//647 +f 630//642 638//650 636//648 +f 631//643 636//648 640//652 +f 631//643 640//652 632//644 +f 632//644 640//652 641//653 +f 632//644 641//653 256//256 +f 256//256 279//279 632//644 +f 244//244 243//243 642//654 +f 243//243 246//246 643//655 +f 253//253 256//256 641//653 +f 642//654 644//656 244//244 +f 645//657 646//658 647//659 +f 648//660 649//661 650//662 +f 651//663 652//664 653//665 +f 652//664 654//666 655//667 +f 654//666 656//668 655//667 +f 657//669 658//670 654//666 +f 654//666 658//670 656//668 +f 658//670 657//669 659//671 +f 660//672 659//671 657//669 +f 660//672 661//673 659//671 +f 662//674 661//673 663//675 +f 663//675 661//673 660//672 +f 664//676 663//675 665//677 +f 663//675 664//676 662//674 +f 665//677 666//678 664//676 +f 667//679 666//678 665//677 +f 668//680 669//681 670//682 +f 671//683 669//681 668//680 +f 671//683 672//684 669//681 +f 673//685 674//686 672//684 +f 675//687 674//686 673//685 +f 675//687 676//688 674//686 +f 677//689 676//688 675//687 +f 677//689 678//690 676//688 +f 678//690 677//689 635//647 +f 635//647 677//689 639//651 +f 679//691 637//649 639//651 +f 253//253 680//692 254//254 +f 680//692 253//253 641//653 +f 251//251 254//254 681//693 +f 682//694 251//251 681//693 +f 681//693 254//254 680//692 +f 682//694 229//229 251//251 +f 230//230 682//694 683//695 +f 682//694 230//230 229//229 +f 249//249 230//230 683//695 +f 684//696 248//248 249//249 +f 684//696 249//249 683//695 +f 685//697 248//248 684//696 +f 246//246 248//248 685//697 +f 638//650 637//649 686//698 +f 686//698 637//649 687//699 +f 686//698 687//699 688//700 +f 688//700 687//699 689//701 +f 688//700 690//702 691//703 +f 691//703 690//702 692//704 +f 691//703 692//704 693//705 +f 691//703 693//705 694//706 +f 694//706 693//705 695//707 +f 694//706 695//707 696//708 +f 696//708 695//707 697//709 +f 696//708 697//709 698//710 +f 679//691 639//651 677//689 +f 679//691 677//689 675//687 +f 689//701 673//685 672//684 +f 689//701 672//684 671//683 +f 689//701 671//683 668//680 +f 690//702 668//680 670//682 +f 690//702 670//682 667//679 +f 690//702 667//679 665//677 +f 665//677 663//675 699//711 +f 699//711 663//675 660//672 +f 657//669 654//666 700//712 +f 637//649 679//691 687//699 +f 687//699 679//691 675//687 +f 687//699 675//687 673//685 +f 687//699 673//685 689//701 +f 688//700 689//701 668//680 +f 688//700 668//680 690//702 +f 692//704 690//702 665//677 +f 692//704 665//677 693//705 +f 693//705 665//677 699//711 +f 693//705 699//711 695//707 +f 695//707 699//711 660//672 +f 695//707 660//672 657//669 +f 695//707 657//669 697//709 +f 697//709 657//669 700//712 +f 697//709 700//712 701//713 +f 701//713 700//712 702//714 +f 702//714 700//712 703//715 +f 702//714 703//715 704//716 +f 654//666 652//664 651//663 +f 654//666 651//663 700//712 +f 700//712 651//663 703//715 +f 705//717 702//714 704//716 +f 705//717 704//716 706//718 +f 698//710 697//709 701//713 +f 707//719 701//713 702//714 +f 707//719 702//714 705//717 +f 684//696 708//720 685//697 +f 685//697 708//720 709//721 +f 708//720 710//722 694//706 +f 708//720 694//706 709//721 +f 709//721 694//706 711//723 +f 712//724 711//723 698//710 +f 712//724 698//710 713//725 +f 648//660 646//658 706//718 +f 706//718 646//658 645//657 +f 706//718 645//657 705//717 +f 705//717 645//657 714//726 +f 707//719 714//726 713//725 +f 707//719 713//725 698//710 +f 243//243 643//655 642//654 +f 642//654 643//655 715//727 +f 246//246 685//697 643//655 +f 643//655 685//697 709//721 +f 643//655 709//721 712//724 +f 716//728 713//725 717//729 +f 717//729 713//725 718//730 +f 647//659 719//731 717//729 +f 717//729 719//731 644//656 +f 717//729 644//656 715//727 +f 715//727 644//656 642//654 +f 643//655 712//724 715//727 +f 715//727 712//724 716//728 +f 715//727 716//728 717//729 +f 717//729 718//730 647//659 +f 645//657 647//659 718//730 +f 645//657 718//730 714//726 +f 714//726 718//730 713//725 +f 713//725 716//728 712//724 +f 711//723 712//724 709//721 +f 641//653 640//652 680//692 +f 640//652 720//732 680//692 +f 680//692 720//732 681//693 +f 640//652 636//648 721//733 +f 640//652 721//733 720//732 +f 720//732 721//733 681//693 +f 710//722 708//720 722//734 +f 722//734 723//735 724//736 +f 724//736 723//735 681//693 +f 721//733 724//736 681//693 +f 682//694 681//693 723//735 +f 682//694 723//735 683//695 +f 683//695 723//735 722//734 +f 683//695 722//734 708//720 +f 683//695 708//720 684//696 +f 651//663 653//665 703//715 +f 703//715 653//665 704//716 +f 704//716 653//665 725//737 +f 704//716 725//737 649//661 +f 704//716 649//661 706//718 +f 649//661 648//660 706//718 +f 705//717 714//726 707//719 +f 701//713 707//719 698//710 +f 698//710 711//723 696//708 +f 696//708 711//723 694//706 +f 694//706 710//722 691//703 +f 691//703 710//722 722//734 +f 691//703 722//734 688//700 +f 688//700 722//734 724//736 +f 688//700 724//736 686//698 +f 686//698 724//736 721//733 +f 686//698 721//733 638//650 +f 638//650 721//733 636//648 +f 726//738 210//210 209//209 +f 726//738 209//209 727//739 +f 199//199 389//389 316//316 +f 199//199 316//316 200//200 +f 200//200 316//316 315//315 +f 199//199 388//388 389//389 +f 204//204 728//740 205//205 +f 568//580 432//433 195//195 +f 191//191 579//591 568//580 +f 191//191 568//580 195//195 +f 192//192 457//459 579//591 +f 192//192 579//591 191//191 +f 727//739 209//209 729//741 +f 198//198 388//388 199//199 +f 208//208 730//742 209//209 +f 209//209 730//742 729//741 +f 204//204 731//743 728//740 +f 202//202 647//659 646//658 +f 200//200 315//315 245//245 +f 198//198 387//387 388//388 +f 238//238 241//241 198//198 +f 198//198 241//241 387//387 +f 197//197 238//238 198//198 +f 196//196 239//239 197//197 +f 197//197 239//239 238//238 +f 732//744 205//205 728//740 +f 193//193 527//529 458//460 +f 193//193 530//532 527//529 +f 726//738 481//483 210//210 +f 203//203 650//662 204//204 +f 204//204 650//662 731//743 +f 650//662 203//203 648//660 +f 200//200 245//245 244//244 +f 195//195 432//433 359//359 +f 195//195 359//359 196//196 +f 196//196 359//359 361//361 +f 530//532 193//193 194//194 +f 206//206 733//745 207//207 +f 193//193 458//460 192//192 +f 192//192 458//460 457//459 +f 207//207 734//746 208//208 +f 208//208 734//746 730//742 +f 735//747 736//748 207//207 +f 207//207 736//748 734//746 +f 202//202 646//658 203//203 +f 203//203 646//658 648//660 +f 201//201 644//656 719//731 +f 201//201 719//731 202//202 +f 202//202 719//731 647//659 +f 196//196 361//361 239//239 +f 481//483 480//482 210//210 +f 210//210 480//482 194//194 +f 207//207 733//745 735//747 +f 733//745 206//206 737//749 +f 737//749 206//206 738//750 +f 200//200 244//244 201//201 +f 201//201 244//244 644//656 +f 194//194 480//482 536//538 +f 194//194 536//538 530//532 +f 205//205 732//744 206//206 +f 206//206 732//744 738//750 +f 726//738 739//751 740//752 +f 741//753 742//754 743//755 +f 744//756 742//754 745//757 +f 746//758 744//756 745//757 +f 747//759 748//760 746//758 +f 746//758 748//760 744//756 +f 748//760 747//759 749//761 +f 750//762 749//761 751//763 +f 751//763 752//764 750//762 +f 753//765 754//766 755//767 +f 756//768 754//766 753//765 +f 757//769 758//770 756//768 +f 756//768 758//770 759//771 +f 758//770 757//769 760//772 +f 760//772 757//769 761//773 +f 761//773 757//769 762//774 +f 761//773 762//774 763//775 +f 764//776 765//777 763//775 +f 763//775 765//777 761//773 +f 766//778 767//779 765//777 +f 766//778 765//777 764//776 +f 768//780 769//781 770//782 +f 771//783 726//738 727//739 +f 477//479 479//481 740//752 +f 450//452 477//479 772//784 +f 772//784 477//479 773//785 +f 774//786 450//452 772//784 +f 774//786 451//453 450//452 +f 775//787 451//453 774//786 +f 451//453 775//787 474//476 +f 474//476 775//787 776//788 +f 473//475 474//476 776//788 +f 473//475 776//788 471//473 +f 777//789 471//473 776//788 +f 778//790 470//472 777//789 +f 777//789 470//472 471//473 +f 470//472 778//790 779//791 +f 470//472 779//791 468//470 +f 780//792 781//793 782//794 +f 783//795 784//796 785//797 +f 786//798 787//799 788//800 +f 788//800 787//799 789//801 +f 789//801 787//799 790//802 +f 789//801 790//802 780//792 +f 789//801 780//792 782//794 +f 791//803 792//804 793//805 +f 794//806 793//805 795//807 +f 793//805 794//806 796//808 +f 793//805 796//808 791//803 +f 729//741 730//742 797//809 +f 797//809 730//742 798//810 +f 796//808 799//811 766//778 +f 741//753 781//793 742//754 +f 742//754 781//793 745//757 +f 746//758 745//757 790//802 +f 746//758 790//802 747//759 +f 749//761 747//759 787//799 +f 749//761 787//799 751//763 +f 752//764 751//763 800//812 +f 752//764 800//812 755//767 +f 755//767 800//812 753//765 +f 753//765 800//812 801//813 +f 753//765 801//813 756//768 +f 756//768 801//813 802//814 +f 756//768 802//814 757//769 +f 757//769 802//814 803//815 +f 757//769 803//815 762//774 +f 762//774 803//815 763//775 +f 763//775 803//815 791//803 +f 763//775 791//803 764//776 +f 764//776 791//803 766//778 +f 766//778 791//803 796//808 +f 794//806 795//807 797//809 +f 799//811 796//808 794//806 +f 799//811 794//806 797//809 +f 798//810 730//742 734//746 +f 768//780 798//810 734//746 +f 736//748 769//781 734//746 +f 734//746 769//781 768//780 +f 768//780 770//782 798//810 +f 798//810 770//782 766//778 +f 766//778 770//782 767//779 +f 804//816 805//817 806//818 +f 806//818 805//817 807//819 +f 806//818 774//786 772//784 +f 806//818 772//784 804//816 +f 773//785 808//820 772//784 +f 772//784 808//820 804//816 +f 740//752 479//481 481//483 +f 740//752 481//483 726//738 +f 808//820 805//817 804//816 +f 477//479 740//752 773//785 +f 773//785 740//752 739//751 +f 773//785 739//751 808//820 +f 808//820 739//751 809//821 +f 805//817 808//820 810//822 +f 808//820 809//821 810//822 +f 810//822 792//804 811//823 +f 810//822 811//823 812//824 +f 812//824 811//823 813//825 +f 812//824 813//825 783//795 +f 783//795 813//825 814//826 +f 783//795 814//826 784//796 +f 809//821 739//751 793//805 +f 810//822 809//821 792//804 +f 795//807 739//751 771//783 +f 795//807 771//783 797//809 +f 797//809 771//783 727//739 +f 797//809 727//739 729//741 +f 799//811 797//809 798//810 +f 799//811 798//810 766//778 +f 726//738 771//783 739//751 +f 739//751 795//807 793//805 +f 809//821 793//805 792//804 +f 792//804 791//803 811//823 +f 811//823 791//803 803//815 +f 811//823 803//815 813//825 +f 813//825 803//815 802//814 +f 813//825 802//814 814//826 +f 814//826 802//814 801//813 +f 814//826 801//813 784//796 +f 784//796 801//813 785//797 +f 785//797 801//813 800//812 +f 785//797 800//812 786//798 +f 786//798 800//812 751//763 +f 786//798 751//763 787//799 +f 787//799 747//759 790//802 +f 790//802 745//757 780//792 +f 780//792 745//757 781//793 +f 815//827 779//791 778//790 +f 778//790 777//789 816//828 +f 778//790 816//828 815//827 +f 817//829 625//637 815//827 +f 817//829 815//827 816//828 +f 788//800 816//828 777//789 +f 807//819 818//830 774//786 +f 774//786 818//830 819//831 +f 774//786 819//831 820//832 +f 820//832 819//831 788//800 +f 806//818 807//819 774//786 +f 775//787 774//786 820//832 +f 775//787 820//832 776//788 +f 776//788 820//832 777//789 +f 777//789 820//832 788//800 +f 782//794 625//637 817//829 +f 782//794 817//829 789//801 +f 789//801 817//829 816//828 +f 789//801 816//828 788//800 +f 786//798 788//800 819//831 +f 786//798 819//831 785//797 +f 785//797 819//831 783//795 +f 783//795 819//831 818//830 +f 783//795 818//830 807//819 +f 783//795 807//819 812//824 +f 812//824 807//819 810//822 +f 810//822 807//819 805//817 +f 743//755 821//833 822//834 +f 822//834 821//833 612//624 +f 822//834 741//753 743//755 +f 627//639 782//794 781//793 +f 627//639 781//793 822//834 +f 626//638 782//794 627//639 +f 779//791 624//636 623//635 +f 741//753 822//834 781//793 +f 822//834 612//624 627//639 +f 782//794 626//638 625//637 +f 815//827 625//637 624//636 +f 815//827 624//636 779//791 +f 623//635 469//471 779//791 +f 468//470 779//791 469//471 +f 613//625 611//623 821//833 +f 821//833 611//623 612//624 +f 622//634 634//646 628//640 +f 622//634 621//633 634//646 +f 738//750 732//744 823//835 +f 661//673 662//674 824//836 +f 825//837 821//833 743//755 +f 615//627 614//626 826//838 +f 620//632 827//839 621//633 +f 621//633 828//840 634//646 +f 634//646 828//840 635//647 +f 678//690 635//647 828//840 +f 829//841 676//688 678//690 +f 830//842 674//686 676//688 +f 674//686 830//842 672//684 +f 672//684 830//842 831//843 +f 832//844 672//684 831//843 +f 832//844 669//681 672//684 +f 833//845 670//682 669//681 +f 670//682 833//845 667//679 +f 666//678 667//679 833//845 +f 664//676 834//846 662//674 +f 835//847 659//671 661//673 +f 835//847 658//670 659//671 +f 836//848 653//665 652//664 +f 837//849 649//661 725//737 +f 649//661 837//849 650//662 +f 769//781 736//748 838//850 +f 838//850 736//748 735//747 +f 769//781 838//850 770//782 +f 839//851 767//779 770//782 +f 767//779 840//852 765//777 +f 765//777 840//852 841//853 +f 765//777 841//853 761//773 +f 842//854 761//773 841//853 +f 761//773 842//854 760//772 +f 843//855 759//771 758//770 +f 756//768 759//771 844//856 +f 754//766 756//768 844//856 +f 754//766 844//856 845//857 +f 754//766 845//857 846//858 +f 754//766 846//858 755//767 +f 847//859 755//767 846//858 +f 847//859 752//764 755//767 +f 847//859 750//762 752//764 +f 848//860 749//761 750//762 +f 849//861 748//760 848//860 +f 848//860 748//760 749//761 +f 850//862 742//754 744//756 +f 850//862 743//755 742//754 +f 825//837 743//755 850//862 +f 613//625 821//833 825//837 +f 613//625 825//837 851//863 +f 851//863 825//837 852//864 +f 852//864 825//837 850//862 +f 853//865 850//862 744//756 +f 853//865 744//756 748//760 +f 826//838 614//626 613//625 +f 826//838 613//625 851//863 +f 852//864 850//862 853//865 +f 849//861 853//865 748//760 +f 738//750 823//835 854//866 +f 854//866 823//835 855//867 +f 856//868 857//869 858//870 +f 856//868 858//870 859//871 +f 860//872 861//873 862//874 +f 860//872 862//874 863//875 +f 864//876 865//877 866//878 +f 864//876 866//878 867//879 +f 868//880 869//881 870//882 +f 868//880 870//882 871//883 +f 871//883 870//882 872//884 +f 871//883 872//884 873//885 +f 873//885 872//884 874//886 +f 873//885 874//886 875//887 +f 737//749 738//750 854//866 +f 876//888 854//866 855//867 +f 876//888 855//867 877//889 +f 877//889 855//867 857//869 +f 877//889 857//869 856//868 +f 878//890 856//868 859//871 +f 878//890 859//871 879//891 +f 879//891 859//871 861//873 +f 879//891 861//873 860//872 +f 880//892 860//872 863//875 +f 880//892 863//875 881//893 +f 881//893 863//875 882//894 +f 881//893 882//894 883//895 +f 883//895 882//894 865//877 +f 883//895 865//877 864//876 +f 884//896 864//876 867//879 +f 884//896 867//879 885//897 +f 885//897 867//879 886//898 +f 885//897 886//898 887//899 +f 887//899 886//898 888//900 +f 887//899 888//900 869//881 +f 887//899 869//881 868//880 +f 737//749 854//866 876//888 +f 889//901 877//889 856//868 +f 889//901 856//868 878//890 +f 890//902 879//891 860//872 +f 890//902 860//872 880//892 +f 891//903 883//895 864//876 +f 891//903 864//876 884//896 +f 892//904 885//897 887//899 +f 892//904 887//899 893//905 +f 893//905 887//899 868//880 +f 894//906 868//880 895//907 +f 895//907 868//880 871//883 +f 895//907 871//883 896//908 +f 896//908 871//883 873//885 +f 896//908 873//885 875//887 +f 896//908 875//887 897//909 +f 897//909 875//887 898//910 +f 897//909 898//910 899//911 +f 899//911 900//912 901//913 +f 901//913 900//912 902//914 +f 901//913 902//914 903//915 +f 733//745 737//749 904//916 +f 904//916 737//749 876//888 +f 904//916 876//888 905//917 +f 905//917 876//888 877//889 +f 905//917 877//889 906//918 +f 906//918 877//889 889//901 +f 907//919 889//901 878//890 +f 907//919 878//890 908//920 +f 908//920 878//890 879//891 +f 908//920 879//891 890//902 +f 909//921 890//902 880//892 +f 909//921 880//892 910//922 +f 910//922 880//892 881//893 +f 910//922 881//893 911//923 +f 911//923 881//893 883//895 +f 911//923 883//895 912//924 +f 912//924 883//895 891//903 +f 912//924 891//903 913//925 +f 913//925 891//903 884//896 +f 913//925 884//896 914//926 +f 914//926 884//896 885//897 +f 914//926 885//897 892//904 +f 915//927 893//905 868//880 +f 915//927 868//880 894//906 +f 916//928 895//907 896//908 +f 917//929 897//909 899//911 +f 918//930 901//913 903//915 +f 918//930 903//915 617//629 +f 617//629 903//915 616//628 +f 919//931 905//917 906//918 +f 920//932 906//918 889//901 +f 920//932 889//901 907//919 +f 921//933 908//920 890//902 +f 921//933 890//902 922//934 +f 922//934 890//902 909//921 +f 922//934 909//921 910//922 +f 923//935 914//926 892//904 +f 923//935 892//904 924//936 +f 924//936 892//904 893//905 +f 924//936 893//905 915//927 +f 925//937 915//927 894//906 +f 925//937 894//906 926//938 +f 926//938 894//906 895//907 +f 926//938 895//907 916//928 +f 927//939 916//928 896//908 +f 927//939 896//908 897//909 +f 927//939 897//909 917//929 +f 917//929 899//911 928//940 +f 928//940 899//911 901//913 +f 928//940 901//913 918//930 +f 735//747 733//745 838//850 +f 838//850 733//745 904//916 +f 838//850 904//916 905//917 +f 838//850 905//917 919//931 +f 839//851 919//931 906//918 +f 839//851 906//918 920//932 +f 840//852 920//932 907//919 +f 840//852 907//919 841//853 +f 841//853 907//919 908//920 +f 841//853 908//920 842//854 +f 842//854 908//920 921//933 +f 842//854 921//933 922//934 +f 929//941 922//934 910//922 +f 929//941 910//922 843//855 +f 843//855 910//922 911//923 +f 843//855 911//923 912//924 +f 843//855 912//924 844//856 +f 844//856 912//924 913//925 +f 844//856 913//925 845//857 +f 845//857 913//925 914//926 +f 845//857 914//926 846//858 +f 846//858 914//926 923//935 +f 846//858 923//935 924//936 +f 925//937 926//938 849//861 +f 849//861 926//938 916//928 +f 849//861 916//928 927//939 +f 852//864 927//939 917//929 +f 826//838 928//940 918//930 +f 826//838 918//930 615//627 +f 615//627 918//930 617//629 +f 770//782 838//850 919//931 +f 770//782 919//931 839//851 +f 767//779 839//851 920//932 +f 767//779 920//932 840//852 +f 760//772 842//854 922//934 +f 760//772 922//934 929//941 +f 760//772 929//941 758//770 +f 758//770 929//941 843//855 +f 759//771 843//855 844//856 +f 847//859 846//858 924//936 +f 847//859 924//936 750//762 +f 750//762 924//936 915//927 +f 750//762 915//927 848//860 +f 848//860 915//927 925//937 +f 848//860 925//937 849//861 +f 849//861 927//939 853//865 +f 853//865 927//939 852//864 +f 852//864 917//929 851//863 +f 851//863 917//929 928//940 +f 851//863 928//940 826//838 +f 930//942 731//743 837//849 +f 930//942 837//849 931//943 +f 932//944 931//943 836//848 +f 932//944 836//848 933//945 +f 934//946 935//947 936//948 +f 934//946 936//948 937//949 +f 937//949 936//948 835//847 +f 937//949 835//847 938//950 +f 939//951 938//950 824//836 +f 939//951 824//836 940//952 +f 940//952 824//836 834//846 +f 940//952 834//846 941//953 +f 942//954 943//955 832//844 +f 942//954 832//844 944//956 +f 944//956 832//844 831//843 +f 944//956 831//843 945//957 +f 946//958 945//957 947//959 +f 948//960 829//841 827//839 +f 827//839 829//841 828//840 +f 827//839 828//840 621//633 +f 731//743 650//662 837//849 +f 931//943 837//849 725//737 +f 931//943 725//737 653//665 +f 931//943 653//665 836//848 +f 933//945 836//848 652//664 +f 933//945 652//664 935//947 +f 935//947 652//664 655//667 +f 935//947 655//667 656//668 +f 935//947 656//668 936//948 +f 936//948 656//668 658//670 +f 936//948 658//670 835//847 +f 938//950 835//847 661//673 +f 938//950 661//673 824//836 +f 824//836 662//674 834//846 +f 941//953 834//846 664//676 +f 941//953 664//676 949//961 +f 949//961 664//676 666//678 +f 949//961 666//678 950//962 +f 950//962 666//678 833//845 +f 950//962 833//845 943//955 +f 943//955 833//845 669//681 +f 943//955 669//681 832//844 +f 831//843 830//842 945//957 +f 945//957 830//842 947//959 +f 947//959 830//842 676//688 +f 947//959 676//688 948//960 +f 948//960 676//688 829//841 +f 829//841 678//690 828//840 +f 728//740 930//942 951//963 +f 952//964 953//965 932//944 +f 952//964 932//944 954//966 +f 955//967 956//968 934//946 +f 955//967 934//946 957//969 +f 957//969 934//946 937//949 +f 957//969 937//949 958//970 +f 958//970 939//951 959//971 +f 959//971 939//951 940//952 +f 959//971 940//952 960//972 +f 961//973 962//974 942//954 +f 961//973 942//954 963//975 +f 963//975 942//954 964//976 +f 963//975 964//976 965//977 +f 965//977 964//976 966//978 +f 967//979 966//978 968//980 +f 968//980 946//958 969//981 +f 969//981 946//958 970//982 +f 619//631 970//982 620//632 +f 858//870 971//983 952//964 +f 858//870 952//964 972//984 +f 862//874 973//985 955//967 +f 862//874 955//967 974//986 +f 974//986 955//967 957//969 +f 866//878 975//987 959//971 +f 866//878 959//971 976//988 +f 870//882 977//989 961//973 +f 870//882 961//973 872//884 +f 872//884 961//973 963//975 +f 872//884 963//975 874//886 +f 874//886 963//975 965//977 +f 874//886 965//977 898//910 +f 898//910 965//977 978//990 +f 898//910 978//990 900//912 +f 900//912 967//979 902//914 +f 902//914 967//979 969//981 +f 902//914 969//981 979//991 +f 732//744 728//740 980//992 +f 980//992 728//740 951//963 +f 980//992 951//963 971//983 +f 971//983 951//963 953//965 +f 971//983 953//965 952//964 +f 972//984 952//964 954//966 +f 972//984 954//966 973//985 +f 973//985 954//966 956//968 +f 973//985 956//968 955//967 +f 974//986 957//969 958//970 +f 974//986 958//970 975//987 +f 975//987 958//970 959//971 +f 976//988 959//971 960//972 +f 976//988 960//972 981//993 +f 981//993 960//972 982//994 +f 981//993 982//994 983//995 +f 983//995 982//994 984//996 +f 983//995 984//996 977//989 +f 977//989 984//996 962//974 +f 977//989 962//974 961//973 +f 978//990 965//977 966//978 +f 978//990 966//978 900//912 +f 900//912 966//978 967//979 +f 967//979 968//980 969//981 +f 979//991 969//981 970//982 +f 979//991 970//982 618//630 +f 618//630 970//982 619//631 +f 728//740 731//743 930//942 +f 951//963 930//942 953//965 +f 953//965 930//942 931//943 +f 953//965 931//943 932//944 +f 954//966 932//944 933//945 +f 954//966 933//945 956//968 +f 956//968 933//945 935//947 +f 956//968 935//947 934//946 +f 937//949 938//950 958//970 +f 958//970 938//950 939//951 +f 960//972 940//952 941//953 +f 960//972 941//953 982//994 +f 982//994 941//953 949//961 +f 982//994 949//961 984//996 +f 984//996 949//961 950//962 +f 984//996 950//962 962//974 +f 962//974 950//962 943//955 +f 962//974 943//955 942//954 +f 964//976 942//954 944//956 +f 964//976 944//956 966//978 +f 966//978 944//956 945//957 +f 966//978 945//957 968//980 +f 968//980 945//957 946//958 +f 946//958 947//959 948//960 +f 946//958 948//960 970//982 +f 970//982 948//960 827//839 +f 970//982 827//839 620//632 +f 823//835 732//744 980//992 +f 823//835 980//992 855//867 +f 855//867 980//992 971//983 +f 855//867 971//983 857//869 +f 857//869 971//983 858//870 +f 859//871 858//870 972//984 +f 859//871 972//984 861//873 +f 861//873 972//984 973//985 +f 861//873 973//985 862//874 +f 863//875 862//874 974//986 +f 863//875 974//986 882//894 +f 882//894 974//986 865//877 +f 865//877 974//986 975//987 +f 865//877 975//987 866//878 +f 867//879 866//878 976//988 +f 867//879 976//988 886//898 +f 886//898 976//988 981//993 +f 886//898 981//993 888//900 +f 888//900 981//993 983//995 +f 888//900 983//995 869//881 +f 869//881 983//995 977//989 +f 869//881 977//989 870//882 +f 875//887 874//886 898//910 +f 899//911 898//910 900//912 +f 903//915 902//914 979//991 +f 903//915 979//991 616//628 +f 616//628 979//991 618//630 diff --git a/data/kuka_iiwa/meshes/link_4.mtl b/data/kuka_iiwa/meshes/link_4.mtl new file mode 100644 index 000000000..70d3ba1da --- /dev/null +++ b/data/kuka_iiwa/meshes/link_4.mtl @@ -0,0 +1,10 @@ +# Blender MTL File: 'None' +# Material Count: 1 + +newmtl None +Ns 0 +Ka 0.000000 0.000000 0.000000 +Kd 0.8 0.8 0.8 +Ks 0.8 0.8 0.8 +d 1 +illum 2 diff --git a/data/kuka_iiwa/meshes/link_4.obj b/data/kuka_iiwa/meshes/link_4.obj new file mode 100644 index 000000000..b8c357643 --- /dev/null +++ b/data/kuka_iiwa/meshes/link_4.obj @@ -0,0 +1,3168 @@ +# Blender v2.71 (sub 0) OBJ File: '' +# www.blender.org +mtllib link_4.mtl +o Link_4 +v 0.022132 0.012135 -0.010500 +v 0.024881 0.001466 -0.010500 +v -0.022132 -0.012135 -0.010500 +v 0.025000 -0.000000 -0.010500 +v 0.024476 -0.005945 -0.010500 +v -0.024881 -0.001466 -0.010500 +v -0.025000 -0.000000 -0.010500 +v -0.024476 0.005945 -0.010500 +v -0.012135 0.022132 -0.010500 +v 0.006869 0.024127 -0.010500 +v -0.020323 0.014706 -0.010500 +v 0.014706 0.020323 -0.010500 +v 0.020323 -0.014706 -0.010500 +v -0.006869 -0.024127 -0.010500 +v -0.014706 -0.020323 -0.010500 +v -0.001798 0.025021 -0.010500 +v 0.012135 -0.022132 -0.010500 +v 0.001798 -0.025021 -0.010500 +v -0.001798 0.174500 0.025021 +v 0.012135 0.174500 -0.022132 +v -0.012135 0.174500 0.022132 +v 0.001798 0.174500 -0.025021 +v -0.006869 0.174500 -0.024127 +v -0.014706 0.174500 -0.020323 +v -0.022132 0.174500 -0.012135 +v 0.006869 0.174500 0.024127 +v 0.014706 0.174500 0.020323 +v 0.022132 0.174500 0.012135 +v 0.025021 0.174500 0.001798 +v 0.024127 0.174500 -0.006869 +v -0.024127 0.174500 0.006869 +v -0.025021 0.174500 -0.001798 +v -0.020323 0.174500 0.014706 +v 0.020323 0.174500 -0.014706 +v 0.001798 0.025021 -0.000500 +v -0.009154 0.023522 -0.000500 +v -0.018012 0.017460 -0.000500 +v -0.022898 0.010247 -0.000500 +v -0.024881 0.001465 -0.000500 +v -0.024620 -0.004341 -0.000500 +v -0.022568 -0.010954 -0.000500 +v -0.017460 -0.018012 -0.000500 +v -0.010247 -0.022898 -0.000500 +v -0.001798 -0.025021 -0.000500 +v 0.009154 -0.023522 -0.000500 +v 0.018012 -0.017460 -0.000500 +v 0.022898 -0.010247 -0.000500 +v 0.024881 -0.001465 -0.000500 +v 0.024620 0.004341 -0.000500 +v 0.022568 0.010954 -0.000500 +v 0.017460 0.018012 -0.000500 +v 0.010247 0.022898 -0.000500 +v -0.056643 0.164995 0.038259 +v -0.059696 0.165000 0.032941 +v -0.058336 0.148987 0.037183 +v -0.063299 0.013456 0.041428 +v -0.066412 0.003743 0.024179 +v -0.063914 -0.003625 0.038795 +v -0.055762 0.052546 0.062467 +v -0.056361 0.056847 0.054137 +v -0.058616 0.034035 0.055771 +v -0.062060 0.008784 0.048788 +v -0.042255 -0.053996 0.019315 +v -0.042007 -0.052311 0.040183 +v -0.048630 -0.048047 0.017420 +v -0.047813 -0.046736 0.035441 +v -0.048723 -0.048343 -0.000498 +v -0.040569 -0.055576 -0.000500 +v -0.067964 -0.004749 -0.000502 +v -0.063950 -0.024163 -0.000499 +v -0.065132 -0.019090 0.010487 +v -0.066474 -0.007750 0.020104 +v -0.067777 0.000469 0.008194 +v -0.055728 0.069748 0.051915 +v -0.055546 0.087848 0.051822 +v -0.055821 0.086321 0.046311 +v -0.059906 0.126911 0.027670 +v -0.057018 0.103671 0.038709 +v -0.066072 0.164993 0.010917 +v -0.066301 0.165016 0.005165 +v -0.049723 0.164809 0.047745 +v -0.054870 0.146730 0.043816 +v -0.041673 0.153791 0.057859 +v -0.041742 0.171746 0.054922 +v -0.048832 0.149669 0.051568 +v -0.041382 0.134674 0.063372 +v -0.047755 0.133430 0.057320 +v -0.044480 0.106354 0.070744 +v -0.040673 0.104760 0.075479 +v -0.048530 0.088760 0.072063 +v -0.052975 0.114944 0.055679 +v -0.051283 0.081219 0.069540 +v -0.052398 -0.041410 0.032200 +v -0.058020 -0.034969 0.017586 +v -0.056087 -0.032813 0.039087 +v -0.062736 -0.022349 0.024852 +v -0.056420 -0.038877 -0.000497 +v -0.059572 -0.022678 0.041531 +v -0.061659 -0.013082 0.043184 +v -0.054111 0.071480 0.063984 +v -0.056738 0.110866 0.045575 +v -0.063540 0.156130 0.022266 +v -0.065935 0.164993 0.012734 +v -0.061479 0.164995 0.029322 +v -0.059725 0.142961 0.034757 +v -0.055367 0.110985 0.050764 +v -0.052883 0.075014 0.067306 +v -0.025235 0.184500 -0.000557 +v -0.022568 0.184500 -0.010954 +v -0.017460 0.184500 -0.018012 +v -0.010247 0.184500 -0.022898 +v 0.000557 0.184500 -0.025235 +v 0.010954 0.184500 -0.022568 +v 0.018012 0.184500 -0.017460 +v 0.024367 0.184500 -0.007109 +v 0.024758 0.184500 0.002877 +v 0.022568 0.184500 0.010954 +v 0.017460 0.184500 0.018012 +v 0.010247 0.184500 0.022897 +v 0.001798 0.184500 0.025021 +v -0.006869 0.184500 0.024127 +v -0.014706 0.184500 0.020323 +v -0.022132 0.184500 0.012135 +v 0.043748 0.112246 -0.006392 +v 0.043245 0.098719 0.004930 +v 0.037257 0.105381 -0.005871 +v 0.035049 0.059382 0.003722 +v 0.039080 0.055732 0.001263 +v 0.033133 0.059474 0.001313 +v 0.012706 0.072661 0.005133 +v 0.022362 0.070762 0.006219 +v 0.023251 0.066129 0.004238 +v 0.021582 0.092179 -0.001416 +v 0.024942 0.084548 0.004259 +v 0.017286 0.082601 0.003714 +v 0.036662 0.092001 0.004515 +v 0.027130 0.099051 -0.005596 +v 0.032727 0.104814 -0.008339 +v 0.000000 0.184500 -0.068071 +v 0.015310 0.184499 -0.066463 +v 0.006813 0.170971 -0.067240 +v 0.055661 0.080603 0.048648 +v 0.056118 0.060149 0.053903 +v 0.055450 0.074166 0.045199 +v 0.000000 0.067990 -0.000369 +v 0.007723 0.067937 0.001723 +v 0.008437 0.067448 -0.000478 +v 0.039635 0.055423 -0.000493 +v 0.026307 0.062715 -0.000493 +v 0.063017 0.014616 0.042461 +v 0.065973 0.002558 0.027781 +v 0.064351 0.014784 0.033699 +v 0.058069 0.037138 0.057011 +v 0.057840 0.045427 0.049117 +v 0.056693 0.103722 0.034393 +v 0.056709 0.100212 0.043237 +v 0.059950 0.127366 0.025620 +v 0.058303 0.119869 0.022041 +v 0.066304 0.165037 0.002530 +v 0.067395 0.176850 -0.005457 +v 0.067116 0.184493 -0.011843 +v 0.068044 0.184499 0.002965 +v 0.067640 0.176298 0.000676 +v 0.064971 0.177608 -0.018493 +v 0.064077 0.184502 -0.022908 +v 0.062474 0.177507 -0.025471 +v 0.058227 0.180041 -0.034734 +v 0.058540 0.184501 -0.034923 +v 0.051394 0.180144 -0.044148 +v 0.050106 0.184502 -0.046022 +v 0.044692 0.184485 -0.051462 +v 0.036421 0.177571 -0.056955 +v 0.032169 0.184500 -0.060122 +v 0.028230 0.178960 -0.061650 +v 0.062457 0.161994 -0.014685 +v 0.057384 0.160462 -0.025733 +v 0.055783 0.171272 -0.035377 +v 0.065484 0.167492 -0.008480 +v 0.055320 0.115967 0.012253 +v 0.053188 0.137823 -0.016146 +v 0.051372 0.106864 0.010800 +v 0.048658 0.107077 0.005490 +v 0.049311 0.092939 0.017055 +v 0.053867 0.098520 0.024137 +v 0.044778 0.080291 0.017048 +v 0.044236 0.088459 0.012860 +v 0.048944 0.084404 0.021013 +v 0.046954 0.133521 -0.023221 +v 0.050113 0.073945 0.026155 +v 0.048614 0.071414 0.023938 +v 0.053130 0.083148 0.030884 +v 0.053599 0.073718 0.034719 +v 0.052383 0.062786 0.030290 +v 0.050231 0.062346 0.025214 +v 0.055857 0.049363 0.031559 +v 0.054332 0.060667 0.035871 +v 0.053035 0.069467 0.033101 +v 0.054164 0.048048 0.022451 +v 0.052058 0.047680 0.014273 +v 0.048240 0.057672 0.018652 +v 0.047118 0.056348 0.015426 +v 0.051082 0.056804 0.023662 +v 0.046897 0.053203 0.010914 +v 0.055472 0.061921 0.042359 +v 0.057499 0.046283 0.040157 +v 0.059778 0.035306 0.043353 +v 0.055292 0.094505 0.033955 +v 0.042337 0.073345 0.016325 +v 0.044949 0.073850 0.018787 +v 0.046951 0.066399 0.021118 +v 0.060410 0.033532 0.026698 +v 0.061473 0.030205 0.031641 +v 0.065579 0.015548 0.020144 +v 0.056533 0.039189 0.011124 +v 0.058468 0.037820 0.022025 +v 0.067313 0.003555 0.015231 +v 0.065613 0.018079 -0.000495 +v 0.061838 0.028468 -0.000494 +v 0.055263 0.039742 -0.000500 +v 0.068054 -0.000392 -0.000491 +v 0.067504 0.009079 -0.000498 +v 0.034451 0.087143 0.006343 +v 0.031295 0.083460 0.006881 +v 0.038605 0.081877 0.011334 +v 0.043126 0.067503 0.016615 +v 0.000001 0.081052 0.003771 +v 0.000002 0.092205 -0.003169 +v 0.010212 0.088771 -0.000317 +v 0.010867 0.080022 0.004141 +v 0.009747 0.076722 0.004891 +v 0.000001 0.073972 0.004758 +v 0.000001 0.068453 0.001753 +v 0.000002 0.070897 0.003983 +v 0.011630 0.070031 0.004133 +v 0.015067 0.066550 0.001428 +v 0.021518 0.077427 0.005938 +v 0.021717 0.074540 0.006349 +v 0.026214 0.067533 0.006154 +v 0.026969 0.070472 0.007367 +v 0.017268 0.065823 -0.000496 +v 0.023621 0.064014 0.001402 +v 0.016198 0.067462 0.003165 +v 0.026118 0.063549 0.002623 +v 0.026921 0.078312 0.007134 +v 0.037165 0.074160 0.012279 +v 0.038628 0.075522 0.013154 +v 0.040418 0.067710 0.014112 +v 0.041562 0.063940 0.013703 +v 0.036176 0.071752 0.011671 +v 0.037671 0.064713 0.010746 +v 0.032265 0.077993 0.009062 +v 0.029457 0.072861 0.008418 +v 0.032201 0.068039 0.008809 +v 0.037648 0.060686 0.007889 +v 0.030630 0.063923 0.005807 +v 0.042025 0.054327 0.004112 +v 0.043180 0.058042 0.011199 +v 0.015462 0.098821 -0.008130 +v 0.050814 0.045943 0.004816 +v 0.000000 0.169442 -0.067484 +v 0.004508 0.158977 -0.065448 +v 0.000002 0.156001 -0.064834 +v -0.000003 0.145328 -0.060001 +v 0.008370 0.153059 -0.063092 +v 0.013461 0.174698 -0.066348 +v 0.018607 0.165938 -0.063865 +v 0.012995 0.163123 -0.064917 +v 0.011018 0.147008 -0.059597 +v 0.004033 0.142007 -0.057508 +v 0.000002 0.133724 -0.050591 +v 0.009143 0.131329 -0.047506 +v 0.010966 0.140717 -0.055430 +v -0.000001 0.124157 -0.039841 +v 0.006761 0.125610 -0.041283 +v 0.017395 0.153310 -0.060603 +v 0.020435 0.139723 -0.051500 +v 0.023694 0.157677 -0.059440 +v 0.023581 0.147045 -0.054845 +v 0.021293 0.129366 -0.041529 +v 0.049626 0.171587 -0.043655 +v 0.044652 0.172188 -0.049083 +v 0.038946 0.171685 -0.053798 +v 0.049260 0.147328 -0.030849 +v 0.044079 0.155520 -0.042636 +v 0.032583 0.153700 -0.052506 +v 0.031282 0.162093 -0.056473 +v 0.043341 0.144585 -0.037002 +v 0.034338 0.146035 -0.046957 +v 0.026986 0.167459 -0.060403 +v 0.032304 0.137818 -0.042805 +v 0.000002 0.102307 -0.012954 +v 0.017624 0.111031 -0.021332 +v 0.032147 0.127239 -0.032726 +v 0.039918 0.131859 -0.030563 +v 0.026207 0.110241 -0.017670 +v 0.048946 0.047213 -0.000494 +v -0.052768 0.184496 0.043384 +v -0.047590 0.177220 0.049253 +v -0.067738 0.177203 -0.001636 +v -0.067670 0.184499 0.007293 +v -0.068076 0.184499 -0.002618 +v -0.043586 0.184499 0.053093 +v -0.066455 0.184492 0.015117 +v -0.064045 0.184497 0.023163 +v -0.059656 0.184498 0.033318 +v -0.020672 0.130409 -0.042809 +v -0.027164 0.138521 -0.046947 +v -0.014528 0.140086 -0.054082 +v -0.041651 0.054459 0.003890 +v -0.038929 0.055926 -0.000494 +v -0.050647 0.045482 -0.000488 +v -0.023073 0.066426 0.004315 +v -0.024686 0.063875 0.002320 +v -0.031772 0.061855 0.004435 +v -0.038872 0.097428 0.001957 +v -0.031311 0.098803 -0.003668 +v -0.029805 0.092966 0.000429 +v -0.021258 0.184499 -0.064709 +v -0.009501 0.184500 -0.067369 +v -0.010346 0.176277 -0.067099 +v -0.040553 0.178094 -0.054029 +v -0.034401 0.184500 -0.058768 +v -0.034232 0.177448 -0.058298 +v -0.045970 0.184499 -0.050294 +v -0.046634 0.177503 -0.048672 +v -0.052164 0.180223 -0.043201 +v -0.056973 0.184502 -0.037547 +v -0.065149 0.184499 -0.019985 +v -0.058191 0.180083 -0.034806 +v -0.066540 0.177156 -0.011738 +v -0.065430 0.162837 -0.002367 +v -0.059169 0.125963 0.017906 +v -0.056540 0.104157 0.031648 +v -0.057856 0.043895 0.051369 +v -0.064224 0.014973 0.034414 +v -0.066514 0.011892 0.016714 +v -0.067478 0.009137 -0.000497 +v -0.034685 0.058672 0.001594 +v -0.026212 0.062755 -0.000492 +v -0.049469 0.171156 -0.043650 +v -0.057336 0.173566 -0.033787 +v -0.049599 0.158834 -0.037583 +v -0.055106 0.161210 -0.030476 +v -0.058311 0.161821 -0.024809 +v -0.065062 0.177600 -0.018189 +v -0.062657 0.177381 -0.025011 +v -0.063101 0.161060 -0.011231 +v -0.047628 0.144265 -0.031085 +v -0.051858 0.137294 -0.018315 +v -0.055022 0.137223 -0.011168 +v -0.060720 0.158408 -0.016313 +v -0.055398 0.115404 0.013221 +v -0.046420 0.133672 -0.024143 +v -0.041535 0.114668 -0.011385 +v -0.046461 0.114922 -0.005494 +v -0.052252 0.101540 0.017063 +v -0.054690 0.091233 0.032928 +v -0.039412 0.090102 0.007691 +v -0.045226 0.083990 0.016234 +v -0.046005 0.094442 0.011331 +v -0.041792 0.080879 0.014053 +v -0.050504 0.093574 0.019074 +v -0.049818 0.082512 0.023348 +v -0.053146 0.086693 0.029453 +v -0.053642 0.060796 0.033140 +v -0.052594 0.071758 0.031955 +v -0.050453 0.066629 0.026906 +v -0.049256 0.076791 0.024192 +v -0.046513 0.075742 0.020391 +v -0.045530 0.073520 0.019461 +v -0.049589 0.062868 0.024217 +v -0.043227 0.067852 0.016848 +v -0.048634 0.059026 0.020448 +v -0.043615 0.070551 0.017566 +v -0.052504 0.052990 0.023751 +v -0.050938 0.045635 0.004022 +v -0.046445 0.051376 0.006509 +v -0.054800 0.042434 0.011560 +v -0.046229 0.053765 0.010467 +v -0.058779 0.034244 -0.000487 +v -0.050013 0.052640 0.016803 +v -0.056119 0.043919 0.022336 +v -0.048718 0.102261 0.009614 +v -0.054652 0.073600 0.039373 +v -0.055913 0.058383 0.043295 +v -0.057458 0.046512 0.040181 +v -0.055855 0.049541 0.031861 +v -0.061364 0.030579 0.032101 +v -0.059730 0.035501 0.043579 +v -0.060229 0.034142 0.027265 +v -0.045457 0.056971 0.013287 +v -0.059292 0.034984 0.015428 +v -0.064667 0.021360 -0.000494 +v -0.000000 0.105145 -0.016122 +v -0.011189 0.104121 -0.014301 +v -0.006433 0.129665 -0.046196 +v -0.000002 0.131178 -0.048136 +v 0.000001 0.097919 -0.008377 +v -0.014215 0.087289 0.000895 +v -0.019711 0.092524 -0.001983 +v -0.040229 0.103629 -0.002163 +v -0.020758 0.104948 -0.013510 +v -0.034584 0.087129 0.006520 +v -0.036144 0.079719 0.010659 +v -0.039615 0.077191 0.013566 +v -0.035625 0.073466 0.011400 +v -0.029743 0.084617 0.005765 +v -0.039095 0.072653 0.013654 +v -0.000001 0.090703 -0.001978 +v -0.012203 0.083494 0.002839 +v 0.000001 0.081552 0.003473 +v -0.024861 0.075702 0.006955 +v -0.029817 0.077896 0.008124 +v -0.020271 0.082396 0.004297 +v -0.007916 0.075410 0.004993 +v 0.000001 0.075554 0.004811 +v -0.000001 0.070415 0.003798 +v -0.018214 0.072569 0.005743 +v -0.011858 0.072129 0.004915 +v -0.019045 0.074892 0.005867 +v -0.013764 0.079724 0.004459 +v -0.009962 0.067737 0.001829 +v -0.000001 0.068177 0.001247 +v -0.009900 0.069920 0.003906 +v -0.017069 0.067260 0.003179 +v -0.023970 0.070378 0.006489 +v -0.023579 0.067933 0.005490 +v -0.018761 0.065539 0.001319 +v -0.007187 0.067605 -0.000490 +v -0.016879 0.065929 -0.000494 +v -0.023490 0.085933 0.003225 +v -0.041041 0.066168 0.014180 +v -0.034181 0.069542 0.010155 +v -0.045038 0.060895 0.016040 +v -0.038365 0.064445 0.011136 +v -0.037209 0.062971 0.009353 +v -0.030481 0.072967 0.008853 +v -0.029909 0.067912 0.007691 +v -0.032356 0.064387 0.007010 +v -0.038098 0.059918 0.007438 +v 0.000000 0.169376 -0.067478 +v -0.005913 0.164733 -0.066532 +v -0.000000 0.160095 -0.065873 +v -0.004220 0.154318 -0.064054 +v -0.000001 0.149733 -0.062284 +v -0.011052 0.158606 -0.064295 +v -0.015231 0.164341 -0.064639 +v -0.022759 0.176399 -0.063767 +v -0.000001 0.141924 -0.057794 +v -0.011230 0.148442 -0.060352 +v -0.025462 0.167807 -0.061252 +v -0.013314 0.129313 -0.044345 +v -0.023493 0.145424 -0.053899 +v -0.027020 0.111252 -0.018265 +v -0.026682 0.159095 -0.058423 +v -0.017396 0.153272 -0.060586 +v -0.027125 0.151311 -0.055047 +v -0.036047 0.160536 -0.052627 +v -0.034470 0.145383 -0.046443 +v -0.040688 0.143150 -0.039007 +v -0.042210 0.160436 -0.046964 +v -0.031907 0.128139 -0.034058 +v -0.033657 0.107452 -0.010586 +v -0.038389 0.133061 -0.033367 +v 0.066537 0.184492 0.014678 +v 0.067199 0.175727 0.008631 +v 0.065310 0.165027 0.016867 +v 0.062908 0.164999 0.025520 +v 0.055666 0.184498 0.039744 +v 0.047470 0.164985 0.050060 +v 0.054201 0.164995 0.042057 +v 0.056236 0.164997 0.038786 +v 0.063113 0.184499 0.025934 +v 0.059956 0.164994 0.032522 +v 0.044253 0.184498 0.052426 +v 0.042216 0.171404 0.054547 +v 0.066612 -0.008250 0.017791 +v 0.051793 0.165000 0.045116 +v 0.053047 0.148432 0.046351 +v 0.042608 -0.052490 0.034930 +v 0.042265 -0.053810 0.023062 +v 0.049187 -0.046923 0.021715 +v 0.058757 -0.031517 0.027035 +v 0.058388 -0.026925 0.040087 +v 0.054361 -0.036510 0.038261 +v 0.064142 -0.012010 0.031943 +v 0.061291 -0.012393 0.045303 +v 0.061161 -0.021634 0.035609 +v 0.060873 0.015705 0.052906 +v 0.055598 0.055392 0.062140 +v 0.052969 0.115250 0.055573 +v 0.047361 0.094992 0.071366 +v 0.048125 0.080040 0.075642 +v 0.041153 0.126816 0.066345 +v 0.040419 0.104186 0.075941 +v 0.047884 0.124306 0.060104 +v 0.044233 0.097776 0.074321 +v 0.044138 0.140087 0.058996 +v 0.041528 0.145092 0.060150 +v 0.041429 0.156322 0.057608 +v 0.066041 0.164993 0.011259 +v 0.059089 0.124371 0.035596 +v 0.055248 0.083987 0.055452 +v 0.062552 0.005625 0.046501 +v 0.067386 -0.010192 -0.000500 +v 0.065343 -0.017620 0.012882 +v 0.063363 -0.025326 -0.000498 +v 0.059467 -0.033104 0.010159 +v 0.056083 -0.039236 -0.000500 +v 0.055288 -0.039638 0.015815 +v 0.050188 -0.046874 -0.000495 +v 0.042173 -0.054356 -0.000498 +v 0.057938 0.148872 0.037970 +v 0.051589 0.082115 0.068344 +v 0.062139 -0.003486 0.046667 +v 0.049457 -0.044521 0.036161 +v 0.061606 -0.027262 0.018087 +v 0.054278 0.064851 0.065264 +v 0.062716 0.165001 0.026023 +v 0.057830 0.130297 0.040519 +v 0.053054 0.076588 0.066139 +v -0.005633 -0.067898 -0.000500 +v -0.024308 -0.064000 -0.000500 +v -0.025000 0.000000 -0.000500 +v 0.005493 -0.067809 -0.000500 +v 0.016628 -0.066186 -0.000500 +v 0.032714 -0.060282 -0.000500 +v 0.025000 0.000000 -0.000500 +v -0.054375 0.020251 0.075636 +v -0.055243 0.007545 0.072924 +v -0.049786 -0.001392 0.084360 +v -0.041408 -0.039964 0.076010 +v -0.041277 -0.035753 0.081581 +v -0.044508 -0.035253 0.075077 +v -0.056609 0.024302 0.068454 +v -0.052640 0.046219 0.075852 +v -0.044891 0.075714 0.081802 +v -0.040100 0.074982 0.087891 +v -0.046652 0.051886 0.086634 +v -0.039919 0.037876 0.099037 +v -0.040000 0.053947 0.095018 +v -0.045181 0.027308 0.093597 +v -0.040035 0.025637 0.100912 +v -0.040028 0.012698 0.101789 +v -0.040347 0.003881 0.101086 +v -0.045965 0.009391 0.092894 +v -0.044415 -0.006208 0.093369 +v -0.040412 -0.004461 0.099854 +v -0.040559 -0.010952 0.098059 +v -0.040789 -0.018620 0.094942 +v -0.046146 -0.020360 0.084404 +v -0.040926 -0.025537 0.090902 +v -0.047008 -0.028752 0.076092 +v -0.041125 -0.031376 0.086170 +v -0.041687 -0.042607 0.071369 +v -0.047397 -0.042552 0.053568 +v -0.041576 -0.046237 0.063980 +v -0.041787 -0.049522 0.054180 +v -0.053063 -0.031493 0.055304 +v -0.060018 0.003077 0.056707 +v -0.058619 0.023827 0.060448 +v -0.050576 0.035441 0.082940 +v -0.050302 0.014419 0.085161 +v -0.054844 -0.020850 0.062151 +v -0.050756 -0.011914 0.078775 +v -0.056386 -0.001442 0.067888 +v -0.057438 -0.010708 0.060955 +v -0.033970 0.184497 0.059413 +v -0.017402 0.184501 0.065979 +v -0.002564 0.184500 0.068053 +v 0.012943 0.184495 0.066888 +v 0.029992 0.184500 0.061556 +v 0.025000 0.184500 -0.000000 +v 0.040647 0.099150 0.077780 +v 0.040644 -0.013485 0.097137 +v 0.040798 -0.019684 0.094405 +v 0.045901 -0.005172 0.091028 +v 0.041765 -0.052091 0.042673 +v 0.045746 -0.047015 0.046354 +v 0.041748 -0.049326 0.054981 +v 0.042017 -0.045934 0.063927 +v 0.047115 -0.035689 0.067617 +v 0.041377 -0.042530 0.072060 +v 0.041475 -0.038425 0.078091 +v 0.041087 -0.025696 0.090630 +v 0.041251 -0.032702 0.084866 +v 0.045856 -0.028793 0.078629 +v 0.040429 -0.005666 0.099597 +v 0.045532 0.015231 0.093903 +v 0.040227 0.006492 0.101430 +v 0.040020 0.019690 0.101504 +v 0.042168 0.040764 0.095596 +v 0.039774 0.029119 0.100761 +v 0.039886 0.047054 0.097007 +v 0.040051 0.060989 0.092781 +v 0.040185 0.078110 0.086697 +v 0.052083 0.048920 0.076777 +v 0.056600 0.032524 0.066483 +v 0.057153 -0.023046 0.051334 +v 0.050086 -0.040321 0.048208 +v 0.051294 0.021117 0.083048 +v 0.048015 0.038425 0.087193 +v 0.052864 -0.000759 0.077912 +v 0.047290 -0.015797 0.084520 +v 0.052716 -0.032914 0.053982 +v 0.050558 -0.019767 0.074741 +v 0.054994 -0.018603 0.063250 +v 0.051984 -0.026317 0.064995 +v 0.047554 0.053549 0.084709 +v 0.057573 -0.009833 0.060863 +v 0.058172 0.006642 0.064093 +v 0.054481 0.026254 0.074818 +v -0.037796 -0.055977 0.032608 +v -0.033406 -0.059574 0.019691 +v -0.034440 -0.057938 0.032075 +v -0.032383 -0.058990 0.031793 +v -0.024395 -0.062594 0.030821 +v -0.027300 -0.061346 0.031162 +v -0.030954 -0.059761 0.031596 +v -0.017919 -0.064516 0.030313 +v -0.019380 -0.065132 0.018399 +v -0.009651 -0.066177 0.029877 +v -0.013188 -0.065645 0.030035 +v 0.008558 -0.066289 0.029837 +v 0.004240 -0.066704 0.029736 +v 0.011165 -0.066863 0.018346 +v 0.012974 -0.065612 0.030018 +v 0.021132 -0.063719 0.030484 +v 0.016655 -0.064812 0.030233 +v 0.037015 -0.057506 0.018871 +v 0.037238 -0.056313 0.032564 +v 0.029590 -0.060515 0.030826 +v 0.030124 -0.061298 0.013914 +v 0.019752 -0.065140 0.013953 +v 0.002883 -0.067840 0.014019 +v -0.008389 -0.067411 0.013932 +v -0.002718 -0.066851 0.029685 +v -0.037347 0.169076 0.058329 +v -0.029846 0.168109 0.062704 +v 0.036579 0.105708 0.078261 +v 0.033754 0.122154 0.073708 +v 0.008875 0.144413 0.074961 +v 0.005503 0.126841 0.081588 +v 0.009910 0.126270 0.081298 +v -0.000396 0.127242 0.081683 +v 0.002921 0.127141 0.081668 +v -0.002056 0.127291 0.081683 +v 0.001194 0.147179 0.074740 +v -0.007954 0.144554 0.075046 +v -0.010470 0.126103 0.081267 +v -0.016754 0.123650 0.080694 +v -0.021162 0.141199 0.072911 +v -0.018803 0.122821 0.080485 +v -0.036179 0.109584 0.076964 +v -0.036565 0.128030 0.069616 +v -0.031662 0.114146 0.078140 +v -0.035144 0.150089 0.063585 +v -0.024810 0.177142 0.063861 +v 0.002625 0.175629 0.068438 +v 0.024788 0.175111 0.063982 +v 0.035307 0.175987 0.058936 +v 0.035411 0.164919 0.060266 +v -0.005610 0.176666 0.068223 +v -0.008421 0.165280 0.069596 +v -0.014073 0.177114 0.066959 +v -0.019440 0.165401 0.067260 +v -0.024551 0.152639 0.068292 +v -0.029463 0.138607 0.070221 +v -0.026443 0.118348 0.079188 +v -0.021530 0.121338 0.080334 +v -0.013803 0.146986 0.073327 +v 0.018831 0.149246 0.071331 +v 0.016575 0.125893 0.079952 +v 0.027924 0.151321 0.067293 +v 0.026814 0.139465 0.071438 +v 0.034377 0.137794 0.067678 +v 0.024281 0.120199 0.079532 +v 0.002041 0.164709 0.070198 +v 0.014054 0.168245 0.068050 +v 0.024649 0.163281 0.065784 +v -0.032640 0.017018 0.106273 +v -0.033993 0.027872 0.104614 +v -0.022051 -0.063305 0.030638 +v -0.023175 -0.061835 0.040638 +v -0.000000 -0.066796 0.029702 +v 0.004852 -0.065237 0.041507 +v 0.005596 -0.066554 0.029766 +v 0.018538 -0.063085 0.040778 +v 0.034134 0.049202 0.100349 +v 0.039399 0.074814 0.088600 +v 0.035515 0.011016 0.104729 +v 0.033621 -0.001356 0.104740 +v 0.036484 -0.011789 0.100658 +v 0.034037 -0.023432 0.097078 +v 0.035099 -0.031647 0.091016 +v 0.034703 -0.040119 0.082491 +v 0.035038 -0.045617 0.074286 +v 0.035040 -0.051714 0.060926 +v 0.035191 -0.055558 0.046235 +v -0.037274 -0.056262 0.032524 +v -0.035019 -0.055761 0.045623 +v -0.032974 -0.052909 0.060860 +v -0.035405 -0.048313 0.068738 +v -0.036826 -0.040730 0.079995 +v -0.034204 -0.035452 0.088041 +v -0.034206 -0.029568 0.092987 +v -0.033857 -0.023493 0.097155 +v -0.033779 -0.016436 0.100595 +v -0.033663 -0.009357 0.103006 +v -0.033112 -0.001282 0.105063 +v -0.034273 0.007209 0.105266 +v -0.033457 0.041370 0.102578 +v -0.035543 0.056922 0.097146 +v -0.036312 0.077213 0.089939 +v 0.029435 0.079651 0.093235 +v -0.027714 0.074917 0.095739 +v -0.018692 0.092899 0.092191 +v -0.005461 0.126832 0.081579 +v -0.005370 0.082626 0.098946 +v -0.018412 0.067467 0.101753 +v -0.007630 0.066750 0.104170 +v -0.008059 0.050613 0.108872 +v -0.018570 0.051830 0.106406 +v -0.013365 0.035748 0.111258 +v -0.028606 0.054131 0.101964 +v -0.023705 0.033470 0.108758 +v -0.024209 0.014041 0.110270 +v -0.013396 0.020213 0.113153 +v -0.014291 0.004186 0.112840 +v 0.003452 0.076180 0.101433 +v 0.003124 0.052929 0.108701 +v -0.002713 0.034920 0.112693 +v -0.002726 0.019277 0.114498 +v -0.002797 0.003489 0.114251 +v -0.010839 -0.018461 0.108133 +v -0.012816 -0.007418 0.111275 +v -0.018769 -0.015049 0.107597 +v -0.018833 -0.022158 0.104605 +v -0.013557 -0.028466 0.102567 +v -0.005640 -0.063924 0.048049 +v -0.009197 -0.066209 0.029860 +v -0.013905 -0.060953 0.055456 +v -0.002016 -0.060067 0.062427 +v -0.005618 -0.056733 0.070583 +v -0.016680 -0.055210 0.070079 +v -0.005408 -0.051454 0.080562 +v -0.013806 -0.045699 0.086964 +v -0.002803 -0.046032 0.088468 +v -0.013735 -0.040617 0.092775 +v -0.002751 -0.040339 0.094759 +v -0.013635 -0.034843 0.098026 +v -0.002736 -0.034399 0.099930 +v -0.002758 -0.027882 0.104355 +v -0.002735 -0.019137 0.108784 +v 0.000065 -0.009338 0.112137 +v -0.017868 -0.064611 0.030318 +v -0.021934 -0.050824 0.075855 +v -0.024680 -0.058217 0.054786 +v -0.024332 -0.044373 0.084215 +v -0.024426 -0.039351 0.090044 +v -0.024201 -0.033709 0.095312 +v -0.024115 -0.027395 0.099804 +v -0.023350 -0.005276 0.108766 +v -0.024578 0.003601 0.109626 +v -0.030221 -0.044090 0.080936 +v -0.026554 -0.016405 0.104282 +v 0.010628 -0.066083 0.029933 +v 0.008425 -0.061733 0.055655 +v 0.019406 -0.059752 0.055149 +v 0.008422 -0.056442 0.070498 +v 0.022754 -0.056302 0.063178 +v 0.021968 -0.052341 0.072825 +v 0.012540 -0.049304 0.082524 +v 0.008109 -0.018744 0.108488 +v 0.012872 -0.007616 0.111210 +v 0.007761 0.004009 0.113898 +v 0.027258 -0.059019 0.046605 +v 0.024431 -0.045893 0.082113 +v 0.029428 -0.037579 0.089155 +v 0.026827 -0.029850 0.097091 +v 0.029001 -0.015332 0.103604 +v 0.023740 -0.005932 0.108448 +v 0.028439 0.007468 0.108386 +v 0.023562 0.053013 0.104403 +v 0.028581 0.039471 0.105547 +v 0.022997 0.074722 0.097864 +v 0.028532 0.024211 0.107873 +v 0.012768 0.074211 0.100943 +v 0.013303 0.051289 0.107849 +v 0.018474 0.036711 0.109825 +v 0.018440 0.004322 0.111846 +v 0.018804 -0.018734 0.106267 +v 0.019114 -0.038146 0.093672 +v 0.007375 0.037601 0.111911 +v 0.008235 -0.045698 0.088267 +v 0.008197 -0.039963 0.094559 +v 0.008130 -0.034008 0.099709 +v 0.018867 -0.028912 0.100796 +v 0.008192 -0.027496 0.104101 +v 0.007995 0.019640 0.114056 +v 0.018521 0.021293 0.111835 +vn 0.658100 0.355500 -0.663700 +vn 0.712200 0.063700 -0.699100 +vn -0.658100 -0.355500 -0.663700 +vn 0.000000 0.000000 -1.000000 +vn 0.719300 -0.176800 -0.671800 +vn -0.712200 -0.063700 -0.699100 +vn -0.719300 0.176800 -0.671800 +vn -0.364200 0.651800 -0.665200 +vn 0.201100 0.708800 -0.676100 +vn -0.594500 0.438300 -0.674200 +vn 0.440000 0.592800 -0.674500 +vn 0.594500 -0.438300 -0.674200 +vn -0.201100 -0.708800 -0.676100 +vn -0.440000 -0.592800 -0.674500 +vn -0.061400 0.737800 -0.672300 +vn 0.364200 -0.651800 -0.665200 +vn 0.061400 -0.737800 -0.672300 +vn 0.060200 0.675200 -0.735200 +vn -0.353800 0.660800 0.661900 +vn 0.362000 0.665300 -0.652900 +vn -0.073800 0.670600 0.738100 +vn 0.200000 0.672800 0.712200 +vn 0.440000 0.674500 0.592800 +vn 0.661900 0.660800 0.353800 +vn -0.201100 0.676100 -0.708800 +vn -0.440000 0.674500 -0.592800 +vn -0.659900 0.661800 -0.355700 +vn -0.741800 0.667300 -0.066000 +vn -0.704800 0.680800 0.199200 +vn 0.715400 0.669900 -0.198600 +vn 0.738000 0.670700 0.073800 +vn 0.588600 0.673400 -0.447200 +vn -0.598100 0.669800 0.440000 +vn 0.039700 0.666600 -0.744300 +vn -0.232700 0.612600 -0.755400 +vn -0.473000 0.469000 -0.745800 +vn -0.612100 0.270300 -0.743100 +vn -0.695300 0.052400 -0.716900 +vn -0.665700 -0.121700 -0.736200 +vn -0.604100 -0.292400 -0.741400 +vn -0.466200 -0.477500 -0.744700 +vn -0.274400 -0.611700 -0.742000 +vn -0.039800 -0.666400 -0.744500 +vn 0.232700 -0.612500 -0.755400 +vn 0.472900 -0.468900 -0.745900 +vn 0.612000 -0.270200 -0.743200 +vn 0.695300 -0.052300 -0.716900 +vn 0.665700 0.121700 -0.736200 +vn 0.604100 0.292400 -0.741300 +vn 0.466200 0.477600 -0.744700 +vn 0.274400 0.611700 -0.741900 +vn -0.843200 0.037300 0.536300 +vn -0.884100 0.048100 0.464900 +vn -0.891500 0.059500 0.449100 +vn -0.982800 0.064400 0.172900 +vn -0.992400 0.019800 0.121200 +vn -0.978500 -0.076400 0.191400 +vn -0.983600 0.078200 0.162100 +vn -0.995300 0.086000 0.044900 +vn -0.981900 0.103100 0.158800 +vn -0.976100 0.017500 0.216300 +vn -0.616700 -0.786100 0.040900 +vn -0.637500 -0.760000 0.125900 +vn -0.748000 -0.662100 0.045200 +vn -0.762200 -0.636900 0.115900 +vn -0.527500 -0.501800 -0.685400 +vn -0.417800 -0.602300 -0.680100 +vn -0.737600 -0.062300 -0.672400 +vn -0.699500 -0.254500 -0.667800 +vn -0.962500 -0.265200 0.056600 +vn -0.986500 -0.120900 0.110700 +vn -0.998700 0.006400 0.049900 +vn -0.999600 0.014700 -0.024600 +vn -0.997200 -0.018700 0.072600 +vn -0.998900 -0.040700 -0.022400 +vn -0.989100 -0.147200 0.001200 +vn -0.987700 -0.137700 -0.073800 +vn -0.987800 -0.142900 0.061400 +vn -0.989500 -0.144100 -0.008800 +vn -0.761200 0.076700 0.643900 +vn -0.835400 0.119900 0.536400 +vn -0.646700 0.156700 0.746500 +vn -0.632000 0.070200 0.771700 +vn -0.758200 0.141600 0.636400 +vn -0.654000 0.238500 0.717900 +vn -0.750600 0.197800 0.630400 +vn -0.733000 0.231100 0.639700 +vn -0.641800 0.278100 0.714600 +vn -0.822500 0.186400 0.537300 +vn -0.876900 0.135300 0.461100 +vn -0.893600 0.127600 0.430300 +vn -0.825900 -0.551700 0.116100 +vn -0.872500 -0.483300 0.071400 +vn -0.887600 -0.429000 0.167800 +vn -0.943800 -0.305500 0.126300 +vn -0.618800 -0.403200 -0.674200 +vn -0.934000 -0.297000 0.198600 +vn -0.959600 -0.182400 0.214000 +vn -0.967700 0.067400 0.242700 +vn -0.978400 -0.004500 0.206600 +vn -0.972200 -0.036900 0.231100 +vn -0.986900 -0.108300 0.119400 +vn -0.925500 -0.004400 0.378700 +vn -0.934900 0.040100 0.352600 +vn -0.946000 0.059600 0.318800 +vn -0.940500 0.087500 0.328200 +vn 0.647800 0.761600 0.016200 +vn 0.604200 0.748700 0.272700 +vn 0.466200 0.744700 0.477500 +vn 0.265300 0.744500 0.612600 +vn -0.021300 0.760200 0.649300 +vn -0.272600 0.748700 0.604200 +vn -0.482800 0.748200 0.455100 +vn -0.622600 0.760300 0.185200 +vn -0.681300 0.726900 -0.086000 +vn -0.604200 0.746700 -0.278100 +vn -0.466200 0.744700 -0.477500 +vn -0.274400 0.742000 -0.611700 +vn -0.048600 0.742000 -0.668600 +vn 0.180900 0.743000 -0.644300 +vn 0.403200 0.745400 -0.530700 +vn 0.574300 0.757600 -0.310300 +vn 0.640800 -0.536700 -0.548900 +vn 0.644700 -0.469600 -0.603100 +vn 0.498300 -0.578000 -0.646200 +vn 0.489400 0.750800 -0.443600 +vn 0.523100 0.847100 -0.093300 +vn 0.461300 0.845400 -0.269000 +vn 0.093100 0.159300 -0.982800 +vn 0.218800 0.244700 -0.944500 +vn 0.269600 0.578600 -0.769800 +vn 0.173400 -0.583700 -0.793200 +vn 0.227300 -0.446400 -0.865500 +vn 0.106800 -0.413700 -0.904100 +vn 0.486100 -0.490100 -0.723500 +vn 0.250600 -0.647400 -0.719800 +vn 0.392800 -0.636900 -0.663400 +vn 0.007200 0.678200 -0.734800 +vn 0.177300 0.664600 -0.725800 +vn 0.117400 -0.095200 -0.988500 +vn 0.999900 -0.011500 0.005200 +vn 0.996900 0.069200 0.037000 +vn 0.994100 -0.002000 -0.107900 +vn 0.005900 0.664200 -0.747600 +vn 0.099800 0.871400 -0.480300 +vn 0.082900 0.650100 -0.755300 +vn 0.396600 0.585800 -0.706700 +vn 0.293500 0.641600 -0.708600 +vn 0.982500 0.072700 0.171300 +vn 0.990000 -0.002700 0.140700 +vn 0.985900 0.113200 0.122800 +vn 0.982100 0.103300 0.157100 +vn 0.990100 0.136000 0.033000 +vn 0.987100 -0.143600 -0.071000 +vn 0.995900 -0.088900 -0.016900 +vn 0.987400 -0.158000 -0.007200 +vn 0.968500 -0.206800 -0.138700 +vn 0.985000 -0.168200 -0.039000 +vn 0.989000 -0.095700 -0.112500 +vn 0.743800 0.655500 -0.130700 +vn 0.737800 0.674600 0.023500 +vn 0.996400 -0.084200 -0.005700 +vn 0.951800 -0.140400 -0.272700 +vn 0.700300 0.665900 -0.257100 +vn 0.906000 -0.162000 -0.391000 +vn 0.849100 -0.133900 -0.511000 +vn 0.647100 0.657200 -0.386400 +vn 0.758700 -0.118700 -0.640500 +vn 0.551400 0.667100 -0.500900 +vn 0.500000 0.643300 -0.579800 +vn 0.554600 -0.121600 -0.823200 +vn 0.354000 0.662400 -0.660100 +vn 0.402100 -0.078400 -0.912200 +vn 0.914900 -0.272800 -0.297500 +vn 0.855900 -0.298900 -0.421900 +vn 0.817600 -0.248500 -0.519400 +vn 0.961000 -0.204200 -0.186300 +vn 0.920400 -0.286300 -0.266300 +vn 0.843600 -0.365600 -0.393300 +vn 0.857700 -0.334500 -0.390400 +vn 0.773900 -0.418100 -0.475500 +vn 0.829100 -0.299200 -0.472200 +vn 0.928300 -0.230000 -0.292200 +vn 0.716900 -0.220200 -0.661500 +vn 0.693300 -0.338100 -0.636400 +vn 0.838200 -0.215500 -0.500900 +vn 0.738100 -0.454000 -0.499000 +vn 0.868600 -0.079300 -0.489100 +vn 0.839100 -0.002700 -0.543900 +vn 0.942200 -0.129600 -0.308800 +vn 0.967200 -0.014400 -0.253500 +vn 0.929000 0.134400 -0.344800 +vn 0.886300 0.181900 -0.425900 +vn 0.945700 0.274200 -0.174700 +vn 0.965200 0.141600 -0.219700 +vn 0.945600 0.000500 -0.325100 +vn 0.886200 0.403000 -0.228300 +vn 0.819100 0.515200 -0.252000 +vn 0.812300 0.366800 -0.453400 +vn 0.749100 0.487400 -0.448600 +vn 0.883100 0.289600 -0.368900 +vn 0.730100 0.577900 -0.364600 +vn 0.988900 0.082400 -0.123400 +vn 0.978400 0.200000 -0.051200 +vn 0.953900 0.274300 -0.122100 +vn 0.974900 -0.140400 -0.172900 +vn 0.683500 -0.037700 -0.728900 +vn 0.734900 -0.091600 -0.671900 +vn 0.804900 0.143500 -0.575700 +vn 0.949500 0.311800 -0.036000 +vn 0.966700 0.255500 0.014700 +vn 0.982700 0.174100 0.062300 +vn 0.850900 0.512200 -0.116400 +vn 0.919800 0.380700 -0.094700 +vn 0.996600 0.036000 0.073400 +vn 0.701400 0.191000 -0.686700 +vn 0.651200 0.290900 -0.700900 +vn 0.574600 0.399100 -0.714500 +vn 0.736100 -0.007600 -0.676800 +vn 0.728700 0.095800 -0.678100 +vn 0.365700 -0.472500 -0.801900 +vn 0.356300 -0.370900 -0.857600 +vn 0.526400 -0.316400 -0.789100 +vn 0.722300 0.165100 -0.671600 +vn 0.046800 -0.338200 -0.939900 +vn 0.048600 -0.613300 -0.788400 +vn 0.053300 -0.558500 -0.827800 +vn 0.042500 -0.233600 -0.971400 +vn 0.050000 -0.128900 -0.990400 +vn 0.042100 0.060500 -0.997300 +vn 0.055600 0.861400 -0.505000 +vn 0.039900 0.469500 -0.882000 +vn 0.114800 0.470700 -0.874800 +vn 0.192100 0.917500 -0.348100 +vn 0.191300 -0.172700 -0.966200 +vn 0.192100 -0.039400 -0.980600 +vn 0.271600 0.388300 -0.880600 +vn 0.285500 0.217700 -0.933300 +vn 0.184000 0.670700 -0.718500 +vn 0.336600 0.904100 -0.263000 +vn 0.217800 0.736500 -0.640400 +vn 0.359100 0.774900 -0.520100 +vn 0.276800 -0.218100 -0.935800 +vn 0.543100 -0.015000 -0.839500 +vn 0.545800 -0.135400 -0.826800 +vn 0.662700 0.215200 -0.717200 +vn 0.671200 0.334000 -0.661800 +vn 0.500400 0.078800 -0.862200 +vn 0.571400 0.367400 -0.733800 +vn 0.387500 -0.221000 -0.895000 +vn 0.361500 0.047100 -0.931200 +vn 0.436200 0.306300 -0.846100 +vn 0.548200 0.583200 -0.599400 +vn 0.399400 0.561400 -0.724800 +vn 0.640800 0.703000 -0.308500 +vn 0.680600 0.532100 -0.503600 +vn 0.113000 -0.692700 -0.712200 +vn 0.757100 0.634100 -0.157000 +vn 0.050100 -0.112600 -0.992400 +vn 0.090200 -0.234100 -0.968000 +vn 0.041000 -0.317400 -0.947400 +vn 0.055400 -0.507700 -0.859800 +vn 0.161100 -0.364100 -0.917300 +vn 0.238700 -0.076000 -0.968100 +vn 0.329700 -0.174700 -0.927800 +vn 0.229800 -0.209100 -0.950500 +vn 0.211700 -0.480400 -0.851100 +vn 0.063300 -0.594400 -0.801700 +vn 0.045700 -0.690300 -0.722100 +vn 0.137400 -0.705000 -0.695700 +vn 0.192300 -0.598800 -0.777400 +vn 0.040000 -0.769000 -0.638000 +vn 0.079200 -0.764800 -0.639300 +vn 0.323900 -0.355600 -0.876700 +vn 0.335000 -0.581700 -0.741200 +vn 0.426000 -0.295100 -0.855200 +vn 0.414900 -0.450100 -0.790700 +vn 0.301100 -0.684700 -0.663700 +vn 0.740200 -0.241900 -0.627300 +vn 0.667100 -0.215000 -0.713200 +vn 0.604600 -0.206200 -0.769300 +vn 0.783600 -0.358600 -0.507300 +vn 0.703400 -0.324700 -0.632300 +vn 0.563300 -0.342200 -0.752100 +vn 0.532800 -0.254900 -0.806900 +vn 0.689700 -0.415000 -0.593400 +vn 0.578600 -0.430600 -0.692600 +vn 0.451700 -0.188100 -0.872100 +vn 0.509300 -0.546600 -0.664700 +vn 0.039200 -0.745900 -0.664900 +vn 0.173700 -0.742600 -0.646800 +vn 0.454600 -0.640500 -0.618900 +vn 0.608500 -0.539700 -0.581700 +vn 0.277900 -0.710300 -0.646700 +vn 0.488100 0.496400 -0.717800 +vn -0.560400 0.698100 0.445600 +vn -0.709700 0.028400 0.703900 +vn -0.995000 -0.092100 -0.037200 +vn -0.734200 0.675200 0.071400 +vn -0.741300 0.669900 -0.041200 +vn -0.464600 0.692500 0.551800 +vn -0.717800 0.678000 0.158100 +vn -0.683200 0.689100 0.241500 +vn -0.636400 0.688200 0.348300 +vn -0.304400 -0.678600 -0.668400 +vn -0.435600 -0.565000 -0.700700 +vn -0.233100 -0.591800 -0.771600 +vn -0.634000 0.721000 -0.279700 +vn -0.394400 0.575300 -0.716600 +vn -0.526600 0.464200 -0.712100 +vn -0.267800 0.608200 -0.747200 +vn -0.354600 0.836300 -0.418100 +vn -0.407400 0.708500 -0.576100 +vn -0.506400 -0.537000 -0.674600 +vn -0.358000 -0.622900 -0.695500 +vn -0.308200 -0.563500 -0.766400 +vn -0.236600 0.670900 -0.702800 +vn -0.104000 0.684300 -0.721700 +vn -0.165800 -0.059500 -0.984300 +vn -0.602900 -0.134000 -0.786500 +vn -0.375800 0.664500 -0.645800 +vn -0.510500 -0.129500 -0.850100 +vn -0.509700 0.656500 -0.556000 +vn -0.686600 -0.166900 -0.707600 +vn -0.767900 -0.107300 -0.631500 +vn -0.636200 0.649100 -0.417000 +vn -0.716600 0.660000 -0.225400 +vn -0.860300 -0.116500 -0.496200 +vn -0.976000 -0.117600 -0.183200 +vn -0.968700 -0.207300 -0.136200 +vn -0.967400 -0.219300 -0.126300 +vn -0.979800 -0.159500 -0.120600 +vn -0.989400 0.132200 0.059000 +vn -0.985400 0.117000 0.123300 +vn -0.987100 0.148900 0.059300 +vn -0.728300 0.098000 -0.678200 +vn -0.480800 0.824400 -0.298400 +vn -0.277400 0.614800 -0.738300 +vn -0.740700 -0.241900 -0.626800 +vn -0.832100 -0.229700 -0.504700 +vn -0.757100 -0.327600 -0.565200 +vn -0.820400 -0.314300 -0.477600 +vn -0.865000 -0.295100 -0.405700 +vn -0.948500 -0.155100 -0.276300 +vn -0.909900 -0.148700 -0.387200 +vn -0.935900 -0.249100 -0.249000 +vn -0.769900 -0.370100 -0.519900 +vn -0.821900 -0.375700 -0.428100 +vn -0.874900 -0.337900 -0.346800 +vn -0.899300 -0.288400 -0.328500 +vn -0.933900 -0.265400 -0.239500 +vn -0.723500 -0.466600 -0.508800 +vn -0.593000 -0.569600 -0.569100 +vn -0.701500 -0.489100 -0.518300 +vn -0.877100 -0.303300 -0.372400 +vn -0.971700 -0.135900 -0.193300 +vn -0.497400 -0.479900 -0.722700 +vn -0.725600 -0.285500 -0.626100 +vn -0.737700 -0.372700 -0.562900 +vn -0.629900 -0.265400 -0.729900 +vn -0.848100 -0.279700 -0.449900 +vn -0.860600 -0.179200 -0.476700 +vn -0.937600 -0.138000 -0.319200 +vn -0.950900 0.135700 -0.278100 +vn -0.942500 -0.020600 -0.333500 +vn -0.896300 0.053600 -0.440100 +vn -0.850300 -0.111500 -0.514300 +vn -0.790100 -0.112600 -0.602500 +vn -0.753000 -0.057300 -0.655500 +vn -0.877700 0.185400 -0.441800 +vn -0.689300 0.156400 -0.707400 +vn -0.824200 0.322000 -0.465900 +vn -0.706400 0.039400 -0.706700 +vn -0.892400 0.348700 -0.286400 +vn -0.759300 0.635200 -0.141300 +vn -0.642000 0.668700 -0.374900 +vn -0.837200 0.524000 -0.156300 +vn -0.704100 0.596500 -0.385200 +vn -0.613800 0.343300 -0.710900 +vn -0.818800 0.460900 -0.342300 +vn -0.903800 0.393000 -0.169200 +vn -0.812300 -0.380500 -0.442100 +vn -0.984900 -0.021400 -0.171900 +vn -0.988800 0.112100 -0.098000 +vn -0.974000 0.202200 -0.101500 +vn -0.947500 0.274800 -0.163500 +vn -0.966500 0.256200 0.015400 +vn -0.978800 0.203000 0.026000 +vn -0.946700 0.320400 -0.033700 +vn -0.722900 0.490200 -0.486900 +vn -0.902200 0.426000 -0.067300 +vn -0.693600 0.220300 -0.685800 +vn -0.030700 -0.753800 -0.656300 +vn -0.081600 -0.737000 -0.670900 +vn -0.085800 -0.723800 -0.684700 +vn -0.044400 -0.711100 -0.701700 +vn -0.024900 -0.696000 -0.717700 +vn -0.092700 -0.529700 -0.843100 +vn -0.155300 -0.604800 -0.781000 +vn -0.563300 -0.540800 -0.624600 +vn -0.172600 -0.723300 -0.668600 +vn -0.414300 -0.450600 -0.790700 +vn -0.439300 -0.282400 -0.852700 +vn -0.587800 -0.179100 -0.788900 +vn -0.497900 -0.016000 -0.867100 +vn -0.328000 -0.407500 -0.852200 +vn -0.598100 0.009900 -0.801300 +vn -0.012600 -0.601900 -0.798400 +vn -0.057300 -0.438800 -0.896700 +vn -0.031300 -0.365100 -0.930500 +vn -0.253700 -0.082300 -0.963800 +vn -0.349600 -0.201600 -0.914900 +vn -0.156300 -0.358500 -0.920300 +vn -0.059500 -0.035200 -0.997600 +vn -0.022700 -0.014900 -0.999600 +vn -0.055300 0.487500 -0.871400 +vn -0.118100 0.106800 -0.987200 +vn -0.104400 0.242400 -0.964500 +vn -0.142900 -0.036200 -0.989100 +vn -0.066700 -0.288800 -0.955000 +vn -0.137600 0.862100 -0.487600 +vn -0.063700 0.914900 -0.398500 +vn -0.083900 0.533100 -0.841900 +vn -0.210300 0.771000 -0.601100 +vn -0.262400 0.200400 -0.943900 +vn -0.262600 0.440900 -0.858300 +vn -0.292800 0.905500 -0.307000 +vn -0.046900 0.663200 -0.746900 +vn -0.175700 0.672000 -0.719400 +vn -0.193500 -0.472000 -0.860100 +vn -0.646500 0.259200 -0.717500 +vn -0.477600 0.191900 -0.857400 +vn -0.776500 0.361600 -0.515900 +vn -0.602400 0.361700 -0.711500 +vn -0.557100 0.459900 -0.691500 +vn -0.379000 0.040700 -0.924500 +vn -0.361800 0.305300 -0.880800 +vn -0.439600 0.529800 -0.725300 +vn -0.569300 0.624100 -0.535100 +vn -0.063600 -0.094900 -0.993500 +vn -0.113400 -0.166000 -0.979600 +vn -0.042200 -0.239300 -0.970000 +vn -0.079500 -0.340400 -0.936900 +vn -0.065600 -0.441100 -0.895100 +vn -0.210100 -0.275100 -0.938200 +vn -0.283200 -0.186700 -0.940700 +vn -0.354100 -0.088400 -0.931000 +vn -0.106100 -0.581800 -0.806400 +vn -0.204900 -0.459000 -0.864500 +vn -0.427800 -0.185900 -0.884500 +vn -0.189300 -0.714600 -0.673400 +vn -0.400700 -0.481400 -0.779500 +vn -0.294700 -0.705900 -0.644000 +vn -0.461600 -0.271300 -0.844600 +vn -0.330900 -0.354100 -0.874700 +vn -0.483600 -0.380000 -0.788400 +vn -0.594200 -0.283800 -0.752500 +vn -0.584200 -0.427500 -0.689800 +vn -0.666700 -0.418600 -0.616700 +vn -0.673300 -0.311700 -0.670400 +vn -0.444400 -0.638400 -0.628400 +vn -0.437800 -0.627500 -0.643900 +vn -0.594200 -0.537900 -0.597900 +vn 0.716800 0.680000 0.154200 +vn 0.992300 -0.067200 0.103600 +vn 0.980200 -0.063900 0.187500 +vn 0.646100 -0.728100 0.228800 +vn 0.598600 0.687300 0.411400 +vn 0.731700 0.082000 0.676700 +vn 0.805500 0.009800 0.592600 +vn 0.859400 0.009800 0.511300 +vn 0.676000 0.683100 0.276400 +vn 0.885500 0.013500 0.464400 +vn 0.469900 0.695200 0.544000 +vn 0.624200 0.067900 0.778300 +vn 0.988700 -0.113200 0.097800 +vn 0.826300 0.084100 0.557000 +vn 0.765300 0.105300 0.635000 +vn 0.812600 0.125200 0.569100 +vn 0.647900 -0.755300 0.097900 +vn 0.625400 -0.778600 0.051600 +vn 0.753600 -0.654700 0.059200 +vn 0.895300 -0.428400 0.121600 +vn 0.913300 -0.361300 0.188000 +vn 0.863800 -0.479900 0.153100 +vn 0.973200 -0.162800 0.162200 +vn 0.957300 -0.180300 0.225900 +vn 0.943000 -0.286200 0.169700 +vn 0.974100 0.044800 0.221600 +vn 0.985000 0.077700 0.153900 +vn 0.867900 0.143300 0.475500 +vn 0.792400 0.207800 0.573500 +vn 0.831200 0.173400 0.528200 +vn 0.652600 0.249800 0.715300 +vn 0.645700 0.283000 0.709200 +vn 0.758500 0.204100 0.618800 +vn 0.742500 0.239100 0.625600 +vn 0.714800 0.199600 0.670200 +vn 0.641500 0.191100 0.742900 +vn 0.613200 0.162100 0.773100 +vn 0.989500 -0.130100 0.062600 +vn 0.987600 -0.046300 0.150100 +vn 0.989500 0.009600 0.144400 +vn 0.971800 -0.012700 0.235500 +vn 0.731300 -0.111300 -0.672800 +vn 0.965300 -0.251100 0.071000 +vn 0.687600 -0.263800 -0.676400 +vn 0.886500 -0.461000 0.038100 +vn 0.610500 -0.400300 -0.683300 +vn 0.827900 -0.557500 0.061400 +vn 0.543000 -0.491500 -0.680800 +vn 0.447400 -0.577900 -0.682500 +vn 0.884000 0.070500 0.462100 +vn 0.896900 0.036700 0.440700 +vn 0.903900 0.120500 0.410400 +vn 0.971200 -0.078600 0.224700 +vn 0.792700 -0.598400 0.116300 +vn 0.926100 -0.366600 0.089400 +vn 0.964300 0.073000 0.254600 +vn 0.946800 -0.032800 0.320200 +vn 0.951200 0.021800 0.307600 +vn 0.947300 0.087300 0.308300 +vn -0.070400 -0.727400 -0.682600 +vn -0.245900 -0.693900 -0.676700 +vn 0.056800 -0.721300 -0.690200 +vn 0.176500 -0.708700 -0.683100 +vn 0.323300 -0.654400 -0.683600 +vn 0.000100 -0.000100 -1.000000 +vn -0.934600 0.015700 0.355400 +vn -0.942200 -0.036900 0.333000 +vn -0.900100 -0.098100 0.424400 +vn -0.676000 -0.610000 0.413300 +vn -0.690000 -0.533700 0.488800 +vn -0.841500 -0.425300 0.333200 +vn -0.959300 0.043000 0.278900 +vn -0.928600 0.090400 0.359700 +vn -0.787300 0.201900 0.582500 +vn -0.669100 0.251400 0.699400 +vn -0.842800 0.135100 0.520900 +vn -0.684700 0.142800 0.714700 +vn -0.674100 0.199500 0.711100 +vn -0.841700 0.061400 0.536500 +vn -0.686100 0.077200 0.723300 +vn -0.690900 0.007000 0.722900 +vn -0.703600 -0.069200 0.707200 +vn -0.858200 -0.026900 0.512600 +vn -0.859200 -0.129200 0.495000 +vn -0.695900 -0.136300 0.705000 +vn -0.697000 -0.217800 0.683200 +vn -0.704600 -0.299700 0.643100 +vn -0.871800 -0.248100 0.422300 +vn -0.696200 -0.397200 0.597900 +vn -0.872600 -0.333300 0.356900 +vn -0.696200 -0.472100 0.540800 +vn -0.684300 -0.632400 0.362900 +vn -0.815900 -0.539100 0.208700 +vn -0.664500 -0.689100 0.288800 +vn -0.647500 -0.732200 0.211300 +vn -0.884000 -0.397300 0.246500 +vn -0.963900 -0.044300 0.262500 +vn -0.974000 0.059700 0.218500 +vn -0.897200 0.071200 0.435700 +vn -0.900900 -0.011400 0.433900 +vn -0.917400 -0.266900 0.295300 +vn -0.903300 -0.177800 0.390200 +vn -0.942300 -0.086200 0.323500 +vn -0.945600 -0.157400 0.284600 +vn -0.335800 0.709400 0.619600 +vn -0.179000 0.699400 0.691900 +vn -0.025100 0.707300 0.706400 +vn 0.132100 0.712200 0.689400 +vn 0.304800 0.695300 0.650900 +vn 0.000000 1.000000 -0.000000 +vn 0.676700 0.277000 0.682100 +vn 0.710600 -0.244000 0.659900 +vn 0.700400 -0.311600 0.642100 +vn 0.868300 -0.112200 0.483200 +vn 0.625400 -0.769300 0.130300 +vn 0.767600 -0.620900 0.158800 +vn 0.647200 -0.730500 0.218000 +vn 0.682300 -0.668500 0.295800 +vn 0.851100 -0.433300 0.296300 +vn 0.670300 -0.643400 0.369800 +vn 0.690000 -0.572200 0.443200 +vn 0.709300 -0.390100 0.587100 +vn 0.694800 -0.497600 0.519200 +vn 0.865100 -0.339700 0.369000 +vn 0.701100 -0.142500 0.698700 +vn 0.855000 0.001800 0.518600 +vn 0.701300 -0.055400 0.710600 +vn 0.670700 0.058000 0.739400 +vn 0.797900 0.117300 0.591300 +vn 0.674900 0.100600 0.731000 +vn 0.678900 0.181400 0.711400 +vn 0.665800 0.226100 0.711000 +vn 0.678500 0.259900 0.687100 +vn 0.923000 0.091500 0.373600 +vn 0.966100 0.068600 0.248900 +vn 0.924800 -0.290400 0.245800 +vn 0.831100 -0.519800 0.197500 +vn 0.905800 0.013400 0.423500 +vn 0.865700 0.082400 0.493700 +vn 0.918900 -0.090800 0.383800 +vn 0.879300 -0.210600 0.427100 +vn 0.878700 -0.411700 0.241600 +vn 0.899800 -0.248600 0.358500 +vn 0.924300 -0.240000 0.296800 +vn 0.894700 -0.328700 0.302300 +vn 0.846300 0.139800 0.514000 +vn 0.944800 -0.149200 0.291700 +vn 0.956800 -0.029600 0.289100 +vn 0.941400 0.037500 0.335000 +vn -0.525000 -0.846700 0.086200 +vn -0.454800 -0.889800 0.038200 +vn -0.474000 -0.877200 0.076300 +vn -0.454400 -0.887100 0.081300 +vn -0.342600 -0.937300 0.063300 +vn -0.388600 -0.919100 0.064900 +vn -0.426200 -0.901600 0.073600 +vn -0.251800 -0.964400 0.080800 +vn -0.268800 -0.962300 0.040100 +vn -0.130900 -0.989700 0.057600 +vn -0.176200 -0.983100 0.050500 +vn 0.117600 -0.990100 0.076100 +vn 0.057600 -0.995900 0.069400 +vn 0.155700 -0.986500 0.049700 +vn 0.181900 -0.980300 0.076800 +vn 0.294000 -0.951200 0.093700 +vn 0.225000 -0.972300 0.063800 +vn 0.510600 -0.858900 0.039400 +vn 0.509900 -0.855300 0.092100 +vn 0.401300 -0.911000 0.094800 +vn 0.402700 -0.914900 0.028300 +vn 0.285100 -0.958000 0.030800 +vn 0.034100 -0.998800 0.034300 +vn -0.123800 -0.991900 0.029200 +vn -0.037700 -0.997100 0.065500 +vn -0.538300 0.110900 0.835400 +vn -0.425700 0.131400 0.895300 +vn 0.552800 0.307700 0.774400 +vn 0.510500 0.306400 0.803400 +vn 0.131000 0.301300 0.944500 +vn 0.085700 0.337200 0.937500 +vn 0.142600 0.340700 0.929300 +vn 0.021300 0.338000 0.940900 +vn 0.037700 0.350400 0.935800 +vn -0.048900 0.336300 0.940500 +vn 0.016000 0.284900 0.958400 +vn -0.106100 0.295100 0.949600 +vn -0.164400 0.338800 0.926400 +vn -0.228600 0.338100 0.912900 +vn -0.331100 0.293200 0.896800 +vn -0.235300 0.344400 0.908900 +vn -0.553800 0.298100 0.777500 +vn -0.551800 0.289700 0.782000 +vn -0.481600 0.317900 0.816700 +vn -0.517200 0.214000 0.828600 +vn -0.344400 0.094200 0.934100 +vn 0.045100 0.101700 0.993800 +vn 0.352200 0.090000 0.931600 +vn 0.507000 0.070600 0.859000 +vn 0.506300 0.137800 0.851200 +vn -0.081300 0.096300 0.992000 +vn -0.121300 0.193200 0.973600 +vn -0.198800 0.094100 0.975500 +vn -0.281800 0.178300 0.942700 +vn -0.409500 0.227200 0.883600 +vn -0.429500 0.284500 0.857100 +vn -0.395300 0.328700 0.857700 +vn -0.342700 0.334400 0.877900 +vn -0.221700 0.278400 0.934500 +vn 0.282800 0.264000 0.922100 +vn 0.255100 0.335600 0.906800 +vn 0.432400 0.231200 0.871500 +vn 0.423400 0.280000 0.861500 +vn 0.510200 0.276300 0.814400 +vn 0.372700 0.335200 0.865300 +vn 0.033800 0.209100 0.977300 +vn 0.203800 0.163800 0.965200 +vn 0.361400 0.191100 0.912600 +vn -0.469300 0.042300 0.882000 +vn -0.485900 0.105600 0.867600 +vn -0.331700 -0.936500 0.113600 +vn -0.275500 -0.955000 0.109400 +vn -0.300000 -0.940100 0.161700 +vn -0.048600 -0.988600 0.142400 +vn 0.019700 -0.992200 0.122900 +vn 0.069900 -0.982200 0.174000 +vn 0.061500 -0.990800 0.120200 +vn 0.095800 -0.988500 0.117000 +vn 0.199500 -0.971900 0.125200 +vn 0.247300 -0.955000 0.164000 +vn 0.490400 0.223800 0.842200 +vn 0.590800 0.269800 0.760300 +vn 0.511500 -0.005700 0.859200 +vn 0.476900 -0.144200 0.867000 +vn 0.505000 -0.264600 0.821500 +vn 0.462600 -0.423900 0.778600 +vn 0.477300 -0.557100 0.679500 +vn 0.458000 -0.693100 0.556600 +vn 0.447400 -0.778000 0.441000 +vn 0.447100 -0.842500 0.300500 +vn 0.460900 -0.868900 0.180700 +vn -0.418500 -0.898600 0.131800 +vn -0.490500 -0.786500 -0.375200 +vn -0.023500 -0.295900 0.954900 +vn -0.463400 -0.869000 0.173400 +vn -0.422400 -0.855000 0.300900 +vn -0.454200 -0.801600 0.388800 +vn -0.487700 -0.701600 0.519500 +vn -0.446800 -0.622000 0.643000 +vn -0.452200 -0.531800 0.716000 +vn -0.452800 -0.436300 0.777500 +vn -0.469500 -0.336600 0.816200 +vn -0.457400 -0.225700 0.860100 +vn -0.468200 -0.143300 0.871900 +vn -0.487200 -0.050000 0.871800 +vn -0.483300 0.185700 0.855500 +vn -0.511900 0.252500 0.821100 +vn -0.528900 0.295200 0.795700 +vn -0.011500 -0.467500 0.883900 +vn -0.007500 0.350800 0.936400 +vn 0.446600 0.308800 0.839700 +vn -0.402900 0.305200 0.862800 +vn -0.271500 0.350500 0.896400 +vn -0.266300 0.345100 0.900000 +vn -0.160200 0.359100 0.919400 +vn -0.092800 0.363900 0.926800 +vn -0.099300 0.346400 0.932800 +vn -0.269800 0.299300 0.915200 +vn -0.111500 0.302800 0.946500 +vn -0.116200 0.247500 0.961900 +vn -0.271200 0.247300 0.930200 +vn -0.192500 0.163700 0.967500 +vn -0.411900 0.248600 0.876600 +vn -0.347500 0.143900 0.926500 +vn -0.350200 0.014300 0.936600 +vn -0.196500 0.058700 0.978700 +vn -0.204400 -0.081700 0.975500 +vn 0.049200 0.328000 0.943400 +vn 0.041900 0.261800 0.964200 +vn -0.041800 0.157500 0.986600 +vn -0.042100 0.048800 0.997900 +vn -0.045100 -0.090300 0.994900 +vn -0.148100 -0.369900 0.917200 +vn -0.178200 -0.221300 0.958800 +vn -0.268300 -0.311400 0.911600 +vn -0.267000 -0.425100 0.864800 +vn -0.184200 -0.516300 0.836400 +vn -0.081200 -0.974800 0.207900 +vn -0.159900 -0.973700 0.162500 +vn -0.011900 -0.372700 0.927900 +vn -0.183100 -0.946700 0.265100 +vn -0.024900 -0.946300 0.322400 +vn -0.068500 -0.908700 0.411700 +vn -0.219700 -0.892200 0.394600 +vn -0.062300 -0.851800 0.520200 +vn -0.181700 -0.780800 0.597700 +vn -0.028600 -0.783200 0.621100 +vn -0.182600 -0.700500 0.689800 +vn -0.034800 -0.699200 0.714000 +vn -0.186700 -0.614100 0.766800 +vn -0.035200 -0.609500 0.792000 +vn -0.037300 -0.506700 0.861300 +vn -0.040200 -0.382900 0.922900 +vn -0.000800 -0.244300 0.969700 +vn -0.480300 -0.877100 -0.011000 +vn -0.284000 -0.839700 0.462800 +vn -0.706300 -0.684200 -0.181900 +vn -0.321400 -0.911300 0.257100 +vn -0.310600 -0.752600 0.580600 +vn -0.329700 -0.678400 0.656500 +vn -0.333600 -0.591700 0.733800 +vn -0.342700 -0.494800 0.798500 +vn -0.342500 -0.196100 0.918800 +vn -0.359000 -0.089400 0.929000 +vn -0.396100 -0.749200 0.530800 +vn -0.380500 -0.334400 0.862200 +vn 0.144400 -0.980500 0.133500 +vn 0.111600 -0.956200 0.270600 +vn 0.250600 -0.933300 0.257100 +vn 0.108800 -0.905000 0.411300 +vn 0.297300 -0.897000 0.327000 +vn 0.288300 -0.855500 0.430100 +vn 0.156400 -0.823900 0.544700 +vn 0.090000 -0.989000 0.117700 +vn 0.115700 -0.374700 0.919900 +vn 0.186600 -0.226400 0.956000 +vn 0.112400 -0.085300 0.990000 +vn 0.363500 -0.910900 0.195000 +vn 0.317100 -0.772900 0.549600 +vn 0.383900 -0.661400 0.644300 +vn 0.362800 -0.522800 0.771400 +vn 0.404400 -0.322100 0.856000 +vn 0.345000 -0.202300 0.916500 +vn 0.405500 -0.048000 0.912800 +vn 0.345300 0.254100 0.903400 +vn 0.421200 0.172500 0.890400 +vn 0.332700 0.304400 0.892500 +vn 0.421700 0.085700 0.902600 +vn 0.189000 0.318400 0.928900 +vn 0.197300 0.251900 0.947400 +vn 0.269900 0.164700 0.948700 +vn 0.268200 -0.079700 0.960100 +vn 0.271200 -0.373100 0.887200 +vn 0.252600 -0.668300 0.699600 +vn 0.110500 0.172200 0.978800 +vn 0.102100 -0.777200 0.620900 +vn 0.104800 -0.694400 0.711900 +vn 0.110500 -0.602800 0.790100 +vn 0.257500 -0.517000 0.816300 +vn 0.114000 -0.500500 0.858100 +vn 0.118700 0.053700 0.991500 +vn 0.270400 0.064600 0.960500 +usemtl None +s 1 +f 1//1 2//2 3//3 +f 3//3 2//2 4//4 +f 3//3 4//4 5//5 +f 1//1 3//3 6//6 +f 6//6 7//4 1//1 +f 1//1 7//4 8//7 +f 9//8 10//9 11//10 +f 10//9 12//11 8//7 +f 13//12 14//13 15//14 +f 3//3 5//5 13//12 +f 3//3 13//12 15//14 +f 10//9 9//8 16//15 +f 8//7 12//11 1//1 +f 13//12 17//16 14//13 +f 10//9 8//7 11//10 +f 17//16 18//17 14//13 +f 19//18 20//19 21//20 +f 21//20 20//19 22//21 +f 22//21 23//22 21//20 +f 21//20 23//22 24//23 +f 21//20 24//23 25//24 +f 20//19 19//18 26//25 +f 26//25 27//26 20//19 +f 20//19 27//26 28//27 +f 20//19 29//28 30//29 +f 20//19 28//27 29//28 +f 31//30 25//24 32//31 +f 25//24 31//30 33//32 +f 30//29 34//33 20//19 +f 33//32 21//20 25//24 +f 35//34 16//15 36//35 +f 36//35 16//15 9//8 +f 36//35 9//8 37//36 +f 37//36 9//8 11//10 +f 37//36 11//10 38//37 +f 38//37 11//10 8//7 +f 38//37 8//7 39//38 +f 39//38 8//7 6//6 +f 39//38 6//6 40//39 +f 40//39 6//6 3//3 +f 40//39 3//3 41//40 +f 41//40 3//3 42//41 +f 42//41 3//3 15//14 +f 42//41 15//14 43//42 +f 43//42 15//14 14//13 +f 43//42 14//13 44//43 +f 44//43 14//13 18//17 +f 44//43 18//17 45//44 +f 45//44 18//17 17//16 +f 45//44 17//16 46//45 +f 46//45 17//16 13//12 +f 46//45 13//12 47//46 +f 47//46 13//12 5//5 +f 47//46 5//5 48//47 +f 48//47 5//5 2//2 +f 48//47 2//2 49//48 +f 49//48 2//2 1//1 +f 49//48 1//1 50//49 +f 50//49 1//1 51//50 +f 51//50 1//1 12//11 +f 51//50 12//11 52//51 +f 52//51 12//11 10//9 +f 52//51 10//9 35//34 +f 35//34 10//9 16//15 +f 53//52 54//53 55//54 +f 56//55 57//56 58//57 +f 59//58 60//59 61//60 +f 62//61 61//60 56//55 +f 63//62 64//63 65//64 +f 65//64 64//63 66//65 +f 63//62 67//66 68//67 +f 69//68 70//69 71//70 +f 72//71 57//56 73//72 +f 56//55 58//57 62//61 +f 60//59 59//58 74//73 +f 74//73 59//58 75//74 +f 75//74 76//75 74//73 +f 77//76 78//77 75//74 +f 79//78 80//79 77//76 +f 81//80 53//52 82//81 +f 83//82 84//83 85//84 +f 85//84 84//83 81//80 +f 83//82 85//84 86//85 +f 86//85 85//84 87//86 +f 88//87 89//88 87//86 +f 87//86 89//88 86//85 +f 88//87 87//86 90//89 +f 91//90 90//89 87//86 +f 91//90 87//86 82//81 +f 82//81 87//86 85//84 +f 82//81 85//84 81//80 +f 82//81 53//52 55//54 +f 82//81 55//54 91//90 +f 90//89 91//90 92//91 +f 72//71 73//72 69//68 +f 72//71 69//68 71//70 +f 65//64 66//65 93//92 +f 94//93 93//92 95//94 +f 94//93 95//94 96//95 +f 67//66 63//62 65//64 +f 67//66 65//64 97//96 +f 97//96 65//64 94//93 +f 97//96 94//93 70//69 +f 70//69 94//93 71//70 +f 65//64 93//92 94//93 +f 94//93 96//95 71//70 +f 71//70 96//95 72//71 +f 96//95 95//94 98//97 +f 96//95 98//97 99//98 +f 96//95 99//98 72//71 +f 72//71 99//98 58//57 +f 72//71 58//57 57//56 +f 59//58 100//99 75//74 +f 75//74 101//100 77//76 +f 77//76 101//100 79//78 +f 79//78 101//100 102//101 +f 79//78 102//101 103//102 +f 104//103 102//101 105//104 +f 105//104 102//101 106//105 +f 106//105 102//101 101//100 +f 54//53 104//103 55//54 +f 55//54 104//103 105//104 +f 55//54 105//104 91//90 +f 91//90 105//104 106//105 +f 91//90 106//105 92//91 +f 92//91 106//105 107//106 +f 107//106 106//105 101//100 +f 107//106 101//100 100//99 +f 100//99 101//100 75//74 +f 75//74 78//77 76//75 +f 108//107 32//31 25//24 +f 108//107 25//24 109//108 +f 109//108 25//24 110//109 +f 110//109 25//24 24//23 +f 110//109 24//23 111//110 +f 111//110 24//23 23//22 +f 111//110 23//22 112//111 +f 112//111 23//22 22//21 +f 112//111 22//21 20//19 +f 112//111 20//19 113//112 +f 113//112 20//19 114//113 +f 114//113 20//19 34//33 +f 114//113 34//33 115//114 +f 115//114 34//33 30//29 +f 115//114 30//29 29//28 +f 115//114 29//28 116//115 +f 116//115 29//28 28//27 +f 116//115 28//27 117//116 +f 117//116 28//27 118//117 +f 118//117 28//27 27//26 +f 118//117 27//26 119//118 +f 119//118 27//26 26//25 +f 119//118 26//25 120//119 +f 120//119 26//25 19//18 +f 120//119 19//18 121//120 +f 121//120 19//18 21//20 +f 121//120 21//20 122//121 +f 122//121 21//20 33//32 +f 122//121 33//32 123//122 +f 123//122 33//32 31//30 +f 123//122 31//30 108//107 +f 108//107 31//30 32//31 +f 124//123 125//124 126//125 +f 127//126 128//127 129//128 +f 130//129 131//130 132//131 +f 133//132 134//133 135//134 +f 136//135 137//136 138//137 +f 139//138 140//139 141//140 +f 142//141 143//142 144//143 +f 145//144 146//145 147//146 +f 128//127 148//147 129//128 +f 129//128 148//147 149//148 +f 150//149 151//150 152//151 +f 153//152 150//149 152//151 +f 154//153 153//152 152//151 +f 143//142 153//152 154//153 +f 155//154 156//155 142//141 +f 157//156 156//155 155//154 +f 158//157 157//156 155//154 +f 159//158 157//156 158//157 +f 160//159 161//160 162//161 +f 163//162 160//159 162//161 +f 164//163 165//164 161//160 +f 166//165 165//164 164//163 +f 167//166 168//167 166//165 +f 166//165 168//167 165//164 +f 169//168 168//167 167//166 +f 169//168 170//169 168//167 +f 171//170 170//169 169//168 +f 172//171 173//172 171//170 +f 173//172 174//173 140//139 +f 166//165 175//174 176//175 +f 166//165 176//175 177//176 +f 161//160 178//177 164//163 +f 160//159 178//177 161//160 +f 164//163 178//177 175//174 +f 179//178 180//179 175//174 +f 179//178 181//180 180//179 +f 124//123 182//181 125//124 +f 125//124 182//181 183//182 +f 160//159 163//162 159//158 +f 160//159 159//158 178//177 +f 175//174 178//177 158//157 +f 175//174 158//157 179//178 +f 179//178 158//157 184//183 +f 185//184 186//185 187//186 +f 181//180 183//182 182//181 +f 181//180 182//181 188//187 +f 187//186 189//188 185//184 +f 185//184 189//188 190//189 +f 191//190 183//182 184//183 +f 184//183 183//182 181//180 +f 180//179 181//180 188//187 +f 191//190 192//191 187//186 +f 190//189 193//192 194//193 +f 195//194 193//192 196//195 +f 192//191 197//196 187//186 +f 198//197 199//198 200//199 +f 200//199 199//198 201//200 +f 198//197 200//199 202//201 +f 199//198 203//202 201//200 +f 179//178 184//183 181//180 +f 197//196 196//195 189//188 +f 192//191 204//203 197//196 +f 197//196 204//203 196//195 +f 189//188 196//195 193//192 +f 205//204 195//194 196//195 +f 204//203 154//153 205//204 +f 204//203 205//204 196//195 +f 206//205 205//204 154//153 +f 152//151 206//205 154//153 +f 143//142 154//153 204//203 +f 143//142 204//203 144//143 +f 142//141 144//143 207//206 +f 142//141 207//206 155//154 +f 208//207 209//208 210//209 +f 210//209 190//189 194//193 +f 194//193 193//192 195//194 +f 211//210 195//194 205//204 +f 211//210 205//204 212//211 +f 212//211 205//204 206//205 +f 212//211 206//205 213//212 +f 213//212 206//205 152//151 +f 199//198 198//197 214//213 +f 214//213 198//197 215//214 +f 151//150 216//215 152//151 +f 152//151 216//215 213//212 +f 213//212 217//216 212//211 +f 212//211 217//216 211//210 +f 218//217 219//218 214//213 +f 220//219 221//220 216//215 +f 216//215 221//220 213//212 +f 213//212 221//220 217//216 +f 217//216 218//217 211//210 +f 211//210 218//217 215//214 +f 215//214 218//217 214//213 +f 136//135 138//137 126//125 +f 125//124 186//185 136//135 +f 188//187 182//181 124//123 +f 126//125 125//124 136//135 +f 133//132 222//221 223//222 +f 137//136 222//221 133//132 +f 187//186 197//196 189//188 +f 185//184 190//189 209//208 +f 186//185 185//184 136//135 +f 136//135 185//184 224//223 +f 136//135 224//223 222//221 +f 195//194 202//201 194//193 +f 194//193 202//201 210//209 +f 210//209 225//224 208//207 +f 224//223 209//208 208//207 +f 186//185 125//124 183//182 +f 186//185 183//182 187//186 +f 187//186 183//182 191//190 +f 226//225 227//226 228//227 +f 226//225 228//227 135//134 +f 229//228 226//225 135//134 +f 228//227 133//132 135//134 +f 226//225 229//228 230//229 +f 226//225 230//229 231//230 +f 146//145 232//231 233//232 +f 146//145 233//232 234//233 +f 234//233 233//232 231//230 +f 231//230 130//129 234//233 +f 145//144 232//231 146//145 +f 147//146 146//145 235//234 +f 230//229 130//129 231//230 +f 236//235 237//236 130//129 +f 236//235 130//129 230//229 +f 237//236 131//130 130//129 +f 131//130 238//237 132//131 +f 239//238 238//237 131//130 +f 234//233 130//129 132//131 +f 240//239 147//146 235//234 +f 241//240 235//234 242//241 +f 242//241 132//131 243//242 +f 132//131 242//241 234//233 +f 234//233 242//241 146//145 +f 146//145 242//241 235//234 +f 223//222 244//243 134//133 +f 225//224 210//209 200//199 +f 200//199 210//209 202//201 +f 245//244 246//245 225//224 +f 247//246 225//224 248//247 +f 222//221 224//223 223//222 +f 223//222 224//223 246//245 +f 249//248 248//247 250//249 +f 244//243 251//250 249//248 +f 244//243 249//248 252//251 +f 252//251 249//248 253//252 +f 253//252 249//248 250//249 +f 239//238 131//130 237//236 +f 229//228 236//235 230//229 +f 244//243 252//251 236//235 +f 254//253 253//252 250//249 +f 238//237 255//254 132//131 +f 132//131 255//254 243//242 +f 243//242 255//254 127//126 +f 256//255 127//126 254//253 +f 254//253 127//126 255//254 +f 253//252 255//254 239//238 +f 241//240 243//242 129//128 +f 241//240 242//241 243//242 +f 243//242 127//126 129//128 +f 254//253 255//254 253//252 +f 253//252 239//238 252//251 +f 236//235 135//134 244//243 +f 251//250 244//243 223//222 +f 249//248 251//250 245//244 +f 248//247 249//248 247//246 +f 250//249 248//247 257//256 +f 254//253 257//256 256//255 +f 228//227 258//257 133//132 +f 135//134 134//133 244//243 +f 254//253 250//249 257//256 +f 235//234 241//240 240//239 +f 240//239 241//240 149//148 +f 149//148 241//240 129//128 +f 256//255 203//202 259//258 +f 259//258 214//213 219//218 +f 248//247 225//224 200//199 +f 248//247 200//199 201//200 +f 257//256 201//200 203//202 +f 259//258 203//202 199//198 +f 259//258 199//198 214//213 +f 246//245 224//223 208//207 +f 246//245 208//207 225//224 +f 198//197 202//201 195//194 +f 198//197 195//194 215//214 +f 215//214 195//194 211//210 +f 260//259 139//138 141//140 +f 260//259 141//140 261//260 +f 260//259 261//260 262//261 +f 263//262 262//261 264//263 +f 264//263 262//261 261//260 +f 265//264 140//139 266//265 +f 266//265 140//139 174//173 +f 265//264 266//265 267//266 +f 264//263 268//267 263//262 +f 263//262 268//267 269//268 +f 263//262 269//268 270//269 +f 270//269 269//268 271//270 +f 265//264 267//266 141//140 +f 141//140 267//266 261//260 +f 261//260 267//266 264//263 +f 268//267 272//271 269//268 +f 273//272 270//269 274//273 +f 267//266 266//265 275//274 +f 267//266 275//274 264//263 +f 264//263 275//274 268//267 +f 268//267 276//275 272//271 +f 266//265 277//276 275//274 +f 275//274 277//276 278//277 +f 274//273 270//269 271//270 +f 279//278 271//270 276//275 +f 167//166 166//165 177//176 +f 167//166 177//176 169//168 +f 169//168 177//176 280//279 +f 169//168 280//279 281//280 +f 169//168 281//280 171//170 +f 171//170 281//280 172//171 +f 172//171 281//280 282//281 +f 174//173 173//172 172//171 +f 177//176 176//175 283//282 +f 177//176 283//282 284//283 +f 177//176 284//283 280//279 +f 280//279 284//283 281//280 +f 281//280 284//283 285//284 +f 281//280 285//284 282//281 +f 282//281 285//284 286//285 +f 282//281 286//285 172//171 +f 176//175 180//179 283//282 +f 283//282 287//286 284//283 +f 284//283 287//286 288//287 +f 284//283 288//287 285//284 +f 174//173 289//288 266//265 +f 265//264 141//140 140//139 +f 174//173 172//171 289//288 +f 289//288 172//171 286//285 +f 277//276 285//284 278//277 +f 278//277 290//289 276//275 +f 279//278 276//275 290//289 +f 290//289 278//277 288//287 +f 288//287 278//277 285//284 +f 258//257 291//290 273//272 +f 258//257 273//272 292//291 +f 292//291 273//272 274//273 +f 274//273 271//270 292//291 +f 292//291 271//270 279//278 +f 293//292 279//278 290//289 +f 283//282 188//187 287//286 +f 287//286 188//187 294//293 +f 287//286 294//293 290//289 +f 287//286 290//289 288//287 +f 286//285 285//284 277//276 +f 286//285 277//276 289//288 +f 289//288 277//276 266//265 +f 293//292 295//294 279//278 +f 279//278 295//294 292//291 +f 292//291 295//294 258//257 +f 294//293 126//125 138//137 +f 295//294 138//137 137//136 +f 293//292 294//293 138//137 +f 293//292 138//137 295//294 +f 295//294 137//136 258//257 +f 258//257 137//136 133//132 +f 133//132 223//222 134//133 +f 251//250 223//222 246//245 +f 251//250 246//245 245//244 +f 249//248 245//244 247//246 +f 247//246 245//244 225//224 +f 248//247 201//200 257//256 +f 257//256 203//202 256//255 +f 275//274 278//277 268//267 +f 268//267 278//277 276//275 +f 272//271 276//275 271//270 +f 272//271 271//270 269//268 +f 290//289 294//293 293//292 +f 291//290 258//257 227//226 +f 227//226 258//257 228//227 +f 229//228 135//134 236//235 +f 237//236 236//235 252//251 +f 237//236 252//251 239//238 +f 238//237 239//238 255//254 +f 127//126 256//255 128//127 +f 128//127 256//255 148//147 +f 148//147 256//255 259//258 +f 148//147 259//258 296//295 +f 296//295 259//258 219//218 +f 178//177 159//158 158//157 +f 158//157 155//154 207//206 +f 158//157 207//206 184//183 +f 184//183 207//206 191//190 +f 191//190 207//206 144//143 +f 191//190 144//143 192//191 +f 192//191 144//143 204//203 +f 189//188 193//192 190//189 +f 209//208 190//189 210//209 +f 185//184 209//208 224//223 +f 136//135 222//221 137//136 +f 124//123 126//125 294//293 +f 124//123 294//293 188//187 +f 188//187 283//282 180//179 +f 180//179 176//175 175//174 +f 164//163 175//174 166//165 +f 53//52 81//80 297//296 +f 297//296 81//80 298//297 +f 299//298 300//299 301//300 +f 298//297 302//301 297//296 +f 298//297 84//83 302//301 +f 303//302 102//101 304//303 +f 102//101 104//103 304//303 +f 303//302 103//102 102//101 +f 103//102 299//298 80//79 +f 298//297 81//80 84//83 +f 53//52 297//296 305//304 +f 53//52 305//304 104//103 +f 104//103 305//304 304//303 +f 103//102 303//302 300//299 +f 103//102 300//299 299//298 +f 306//305 307//306 308//307 +f 309//308 310//309 311//310 +f 312//311 313//312 314//313 +f 315//314 316//315 317//316 +f 318//317 319//318 320//319 +f 320//319 319//318 139//138 +f 321//320 322//321 323//322 +f 321//320 324//323 322//321 +f 325//324 324//323 321//320 +f 326//325 327//326 324//323 +f 328//327 327//326 329//328 +f 301//300 328//327 330//329 +f 331//330 80//79 299//298 +f 331//330 77//76 80//79 +f 332//331 77//76 331//330 +f 333//332 76//75 78//77 +f 61//60 60//59 334//333 +f 61//60 334//333 335//334 +f 335//334 56//55 61//60 +f 57//56 56//55 335//334 +f 73//72 57//56 336//335 +f 69//68 73//72 337//336 +f 338//337 339//338 310//309 +f 329//328 327//326 326//325 +f 340//339 326//325 325//324 +f 341//340 329//328 340//339 +f 341//340 340//339 342//341 +f 326//325 340//339 329//328 +f 342//341 343//342 341//340 +f 343//342 344//343 341//340 +f 345//344 328//327 346//345 +f 345//344 346//345 347//346 +f 330//329 328//327 345//344 +f 330//329 345//344 331//330 +f 331//330 345//344 347//346 +f 330//329 331//330 299//298 +f 330//329 299//298 301//300 +f 342//341 348//347 349//348 +f 342//341 349//348 343//342 +f 343//342 349//348 350//349 +f 343//342 350//349 344//343 +f 344//343 350//349 351//350 +f 352//351 351//350 350//349 +f 353//352 354//353 355//354 +f 346//345 351//350 347//346 +f 331//330 347//346 332//331 +f 332//331 347//346 352//351 +f 356//355 352//351 350//349 +f 357//356 333//332 352//351 +f 352//351 333//332 332//331 +f 347//346 351//350 352//351 +f 352//351 356//355 357//356 +f 358//357 359//358 315//314 +f 359//358 360//359 315//314 +f 358//357 361//360 359//358 +f 362//361 363//362 364//363 +f 365//364 366//365 367//366 +f 363//362 360//359 359//358 +f 363//362 359//358 368//367 +f 368//367 359//358 369//368 +f 368//367 369//368 367//366 +f 367//366 369//368 370//369 +f 367//366 370//369 371//370 +f 372//371 373//372 374//373 +f 371//370 374//373 373//372 +f 373//372 375//374 371//370 +f 374//373 371//370 370//369 +f 309//308 376//375 377//376 +f 378//377 379//378 376//375 +f 311//310 380//379 376//375 +f 373//372 381//380 382//381 +f 379//378 377//376 376//375 +f 378//377 376//375 380//379 +f 362//361 364//363 356//355 +f 362//361 356//355 383//382 +f 355//354 383//382 349//348 +f 355//354 349//348 353//352 +f 384//383 357//356 364//363 +f 364//363 357//356 356//355 +f 383//382 356//355 350//349 +f 383//382 350//349 349//348 +f 364//363 363//362 366//365 +f 364//363 366//365 384//383 +f 363//362 368//367 366//365 +f 366//365 385//384 384//383 +f 368//367 367//366 366//365 +f 366//365 365//364 385//384 +f 385//384 365//364 386//385 +f 386//385 365//364 387//386 +f 386//385 387//386 388//387 +f 388//387 389//388 386//385 +f 386//385 389//388 385//384 +f 387//386 375//374 382//381 +f 387//386 382//381 390//389 +f 391//390 379//378 378//377 +f 392//391 378//377 380//379 +f 392//391 380//379 393//392 +f 388//387 390//389 393//392 +f 388//387 393//392 336//335 +f 336//335 337//336 73//72 +f 335//334 336//335 57//56 +f 336//335 335//334 389//388 +f 336//335 389//388 388//387 +f 77//76 332//331 78//77 +f 78//77 332//331 333//332 +f 333//332 357//356 76//75 +f 76//75 357//356 74//73 +f 74//73 357//356 384//383 +f 74//73 384//383 60//59 +f 60//59 384//383 385//384 +f 60//59 385//384 334//333 +f 334//333 385//384 389//388 +f 334//333 389//388 335//334 +f 337//336 336//335 393//392 +f 392//391 390//389 382//381 +f 375//374 373//372 382//381 +f 394//393 395//394 396//395 +f 394//393 396//395 397//396 +f 398//397 399//398 400//399 +f 395//394 394//393 400//399 +f 360//359 401//400 315//314 +f 402//401 395//394 317//316 +f 315//314 317//316 403//402 +f 404//403 405//404 403//402 +f 403//402 405//404 361//360 +f 405//404 404//403 406//405 +f 403//402 317//316 407//406 +f 403//402 407//406 404//403 +f 372//371 374//373 408//407 +f 408//407 374//373 405//404 +f 399//398 409//408 410//409 +f 410//409 409//408 411//410 +f 412//411 413//412 414//413 +f 415//414 416//415 417//416 +f 418//417 415//414 419//418 +f 418//417 420//419 415//414 +f 415//414 420//419 421//420 +f 411//410 416//415 415//414 +f 398//397 409//408 399//398 +f 421//420 410//409 411//410 +f 421//420 411//410 415//414 +f 422//421 417//416 423//422 +f 422//421 423//422 145//144 +f 424//423 417//416 422//421 +f 424//423 422//421 425//424 +f 414//413 399//398 410//409 +f 426//425 418//417 427//426 +f 427//426 419//418 312//311 +f 312//311 419//418 424//423 +f 422//421 428//427 425//424 +f 429//428 430//429 422//421 +f 422//421 430//429 428//427 +f 419//418 415//414 417//416 +f 419//418 417//416 424//423 +f 404//403 413//412 406//405 +f 407//406 431//430 413//412 +f 408//407 405//404 406//405 +f 408//407 406//405 432//431 +f 408//407 432//431 372//371 +f 406//405 433//432 432//431 +f 434//433 432//431 391//390 +f 391//390 432//431 435//434 +f 391//390 435//434 436//435 +f 391//390 436//435 379//378 +f 373//372 434//433 381//380 +f 413//412 412//411 437//436 +f 433//432 437//436 438//437 +f 437//436 412//411 426//425 +f 437//436 426//425 438//437 +f 433//432 438//437 436//435 +f 436//435 438//437 439//438 +f 435//434 433//432 436//435 +f 436//435 439//438 440//439 +f 406//405 437//436 433//432 +f 438//437 426//425 427//426 +f 439//438 314//313 440//439 +f 438//437 427//426 312//311 +f 438//437 312//311 439//438 +f 420//419 418//417 426//425 +f 314//313 313//312 338//337 +f 414//413 410//409 412//411 +f 412//411 410//409 421//420 +f 412//411 421//420 420//419 +f 427//426 418//417 419//418 +f 312//311 424//423 425//424 +f 312//311 425//424 313//312 +f 440//439 309//308 379//378 +f 440//439 379//378 436//435 +f 394//393 398//397 400//399 +f 412//411 420//419 426//425 +f 439//438 312//311 314//313 +f 440//439 314//313 338//337 +f 428//427 430//429 339//338 +f 428//427 339//338 313//312 +f 313//312 339//338 338//337 +f 338//337 310//309 309//308 +f 376//375 309//308 311//310 +f 381//380 434//433 391//390 +f 370//369 405//404 374//373 +f 372//371 432//431 434//433 +f 372//371 434//433 373//372 +f 381//380 391//390 378//377 +f 381//380 378//377 382//381 +f 382//381 378//377 392//391 +f 390//389 392//391 393//392 +f 441//440 442//441 320//319 +f 441//440 320//319 139//138 +f 442//441 443//442 444//443 +f 444//443 443//442 445//444 +f 441//440 443//442 442//441 +f 444//443 446//445 442//441 +f 442//441 446//445 447//446 +f 447//446 448//447 320//319 +f 320//319 442//441 447//446 +f 445//444 449//448 450//449 +f 445//444 450//449 444//443 +f 444//443 450//449 446//445 +f 448//447 447//446 451//450 +f 397//396 396//395 449//448 +f 400//399 399//398 431//430 +f 431//430 399//398 414//413 +f 431//430 414//413 413//412 +f 413//412 437//436 406//405 +f 450//449 449//448 308//307 +f 308//307 449//448 396//395 +f 308//307 396//395 452//451 +f 453//452 308//307 307//306 +f 308//307 452//451 306//305 +f 454//453 452//451 402//401 +f 316//315 402//401 317//316 +f 452//451 396//395 395//394 +f 452//451 395//394 402//401 +f 317//316 395//394 400//399 +f 317//316 400//399 431//430 +f 317//316 431//430 407//406 +f 407//406 413//412 404//403 +f 440//439 338//337 309//308 +f 318//317 320//319 448//447 +f 448//447 451//450 323//322 +f 455//454 456//455 457//456 +f 455//454 451//450 447//446 +f 447//446 456//455 455//454 +f 455//454 457//456 458//457 +f 456//455 453//452 457//456 +f 321//320 323//322 458//457 +f 321//320 458//457 325//324 +f 448//447 323//322 322//321 +f 448//447 322//321 318//317 +f 459//458 460//459 458//457 +f 458//457 460//459 461//460 +f 458//457 461//460 325//324 +f 460//459 348//347 461//460 +f 461//460 348//347 342//341 +f 461//460 342//341 340//339 +f 461//460 340//339 325//324 +f 325//324 326//325 324//323 +f 456//455 450//449 453//452 +f 453//452 450//449 308//307 +f 453//452 307//306 459//458 +f 453//452 459//458 457//456 +f 457//456 459//458 458//457 +f 462//461 307//306 306//305 +f 462//461 306//305 454//453 +f 460//459 353//352 348//347 +f 348//347 353//352 349//348 +f 316//315 315//314 463//462 +f 463//462 315//314 401//400 +f 463//462 401//400 354//353 +f 463//462 354//353 462//461 +f 462//461 354//353 464//463 +f 369//368 359//358 361//360 +f 369//368 361//360 370//369 +f 405//404 370//369 361//360 +f 403//402 361//360 358//357 +f 403//402 358//357 315//314 +f 316//315 463//462 454//453 +f 454//453 463//462 462//461 +f 307//306 462//461 464//463 +f 307//306 464//463 459//458 +f 328//327 329//328 346//345 +f 346//345 329//328 341//340 +f 346//345 341//340 344//343 +f 346//345 344//343 351//350 +f 306//305 452//451 454//453 +f 454//453 402//401 316//315 +f 432//431 433//432 435//434 +f 379//378 309//308 377//376 +f 313//312 425//424 428//427 +f 429//428 422//421 145//144 +f 390//389 388//387 387//386 +f 375//374 387//386 371//370 +f 371//370 387//386 365//364 +f 371//370 365//364 367//366 +f 360//359 363//362 362//361 +f 360//359 362//361 383//382 +f 360//359 383//382 355//354 +f 360//359 355//354 401//400 +f 401//400 355//354 354//353 +f 464//463 354//353 353//352 +f 464//463 353//352 460//459 +f 464//463 460//459 459//458 +f 455//454 458//457 323//322 +f 455//454 323//322 451//450 +f 456//455 447//446 446//445 +f 456//455 446//445 450//449 +f 162//161 465//464 466//465 +f 466//465 163//162 162//161 +f 159//158 163//162 466//465 +f 159//158 466//465 467//466 +f 465//464 467//466 466//465 +f 467//466 465//464 468//467 +f 469//468 470//469 471//470 +f 469//468 471//470 472//471 +f 473//472 474//473 468//467 +f 473//472 468//467 465//464 +f 475//474 476//475 470//469 +f 475//474 470//469 469//468 +f 469//468 472//471 473//472 +f 473//472 472//471 474//473 +f 220//219 216//215 477//476 +f 471//477 478//478 479//479 +f 480//480 481//481 482//482 +f 483//483 484//484 485//485 +f 486//486 487//487 488//488 +f 489//489 150//149 153//152 +f 153//152 143//142 490//490 +f 491//491 492//492 493//493 +f 494//494 495//495 496//496 +f 496//496 495//495 497//497 +f 498//498 494//494 496//496 +f 498//498 499//499 494//494 +f 476//475 500//500 470//469 +f 470//469 500//500 499//499 +f 470//469 499//499 498//498 +f 159//158 501//501 157//156 +f 502//502 157//156 501//501 +f 502//502 156//155 157//156 +f 142//141 156//155 503//503 +f 143//142 142//141 490//490 +f 490//490 142//141 503//503 +f 489//489 504//504 150//149 +f 505//505 506//506 507//507 +f 507//507 508//508 509//509 +f 509//509 508//508 510//510 +f 509//509 510//510 511//511 +f 511//511 482//482 481//481 +f 481//481 512//512 511//511 +f 478//478 470//469 479//479 +f 479//479 470//469 498//498 +f 479//479 498//498 496//496 +f 492//492 496//496 497//497 +f 492//492 491//491 496//496 +f 496//496 491//491 479//479 +f 513//513 474//514 471//477 +f 513//513 471//477 479//479 +f 513//513 479//479 491//491 +f 514//515 491//491 493//493 +f 151//150 150//149 504//504 +f 151//150 504//504 515//516 +f 505//505 220//219 477//476 +f 505//505 477//476 506//506 +f 487//487 486//486 515//516 +f 515//516 486//486 151//150 +f 516//517 480//480 482//482 +f 516//517 482//482 510//510 +f 516//517 510//510 485//485 +f 485//485 510//510 483//483 +f 483//483 517//518 488//488 +f 488//488 517//518 506//506 +f 488//488 506//506 486//486 +f 486//486 506//506 477//476 +f 486//486 477//476 151//150 +f 482//482 511//511 510//510 +f 517//518 508//508 507//507 +f 517//518 507//507 506//506 +f 483//483 510//510 508//508 +f 483//483 508//508 517//518 +f 151//150 477//476 216//215 +f 484//484 483//483 488//488 +f 501//501 467//466 502//502 +f 156//155 502//502 503//503 +f 503//503 518//519 490//490 +f 467//466 468//467 519//520 +f 467//466 519//520 520//521 +f 467//466 520//521 502//502 +f 502//502 520//521 503//503 +f 503//503 520//521 521//522 +f 503//503 521//522 518//519 +f 519//520 474//514 513//513 +f 519//520 513//513 520//521 +f 520//521 513//513 491//491 +f 520//521 491//491 521//522 +f 521//522 491//491 514//515 +f 240//239 149//148 52//51 +f 52//51 149//148 148//147 +f 145//144 147//146 35//34 +f 35//34 147//146 240//239 +f 42//41 97//96 41//40 +f 41//40 97//96 70//69 +f 44//43 522//523 523//524 +f 44//43 523//524 43//42 +f 35//34 240//239 52//51 +f 36//35 430//429 429//428 +f 36//35 429//428 35//34 +f 35//34 429//428 145//144 +f 310//309 37//36 311//310 +f 42//41 67//66 97//96 +f 42//41 68//67 67//66 +f 36//35 339//338 430//429 +f 337//336 39//38 524//4 +f 40//39 69//68 524//4 +f 43//42 523//524 68//67 +f 43//42 68//67 42//41 +f 37//36 310//309 36//35 +f 38//37 380//379 37//36 +f 37//36 380//379 311//310 +f 69//68 337//336 524//4 +f 45//44 525//525 44//43 +f 44//43 525//525 522//523 +f 526//526 45//44 527//527 +f 509//509 511//511 46//45 +f 46//45 511//511 512//512 +f 36//35 310//309 339//338 +f 41//40 70//69 40//39 +f 40//39 70//69 69//68 +f 526//526 525//525 45//44 +f 512//512 527//527 46//45 +f 46//45 527//527 45//44 +f 47//46 507//507 509//509 +f 47//46 509//509 46//45 +f 505//505 507//507 47//46 +f 505//505 48//47 220//219 +f 220//219 48//47 528//528 +f 528//528 221//220 220//219 +f 39//38 337//336 393//392 +f 39//38 393//392 38//37 +f 48//47 505//505 47//46 +f 221//220 528//528 49//48 +f 50//49 217//216 49//48 +f 49//48 217//216 221//220 +f 52//51 148//147 51//50 +f 38//37 393//392 380//379 +f 50//49 218//217 217//216 +f 296//295 219//218 51//50 +f 51//50 219//218 50//49 +f 50//49 219//218 218//217 +f 148//147 296//295 51//50 +f 529//529 530//530 531//531 +f 532//532 533//533 534//534 +f 535//535 100//99 59//58 +f 536//536 107//106 100//99 +f 88//87 90//89 537//537 +f 89//88 88//87 537//537 +f 89//88 537//537 538//538 +f 539//539 540//540 541//541 +f 542//542 540//540 539//539 +f 540//540 542//542 543//543 +f 542//542 544//544 543//543 +f 545//545 544//544 546//546 +f 546//546 544//544 542//542 +f 547//547 548//548 545//545 +f 547//547 545//545 546//546 +f 548//548 547//547 549//549 +f 550//550 549//549 547//547 +f 551//551 550//550 547//547 +f 551//551 552//552 550//550 +f 553//553 554//554 551//551 +f 551//551 554//554 552//552 +f 534//534 533//533 553//553 +f 553//553 533//533 554//554 +f 532//532 534//534 555//555 +f 556//556 557//557 555//555 +f 556//556 558//558 557//557 +f 558//558 556//556 66//65 +f 558//558 66//65 64//63 +f 95//94 559//559 98//97 +f 560//560 62//61 58//57 +f 62//61 561//561 61//60 +f 561//561 59//58 61//60 +f 92//91 539//539 90//89 +f 90//89 539//539 537//537 +f 537//537 541//541 538//538 +f 539//539 92//91 562//562 +f 562//562 92//91 536//536 +f 563//563 562//562 529//529 +f 539//539 562//562 542//542 +f 542//542 562//562 563//563 +f 542//542 563//563 546//546 +f 546//546 563//563 531//531 +f 564//564 98//97 559//559 +f 565//565 566//566 567//567 +f 565//565 567//567 564//564 +f 551//551 565//565 564//564 +f 551//551 564//564 553//553 +f 553//553 564//564 559//559 +f 556//556 559//559 95//94 +f 556//556 95//94 93//92 +f 547//547 546//546 531//531 +f 547//547 531//531 551//551 +f 565//565 531//531 530//530 +f 565//565 530//530 566//566 +f 563//563 529//529 531//531 +f 531//531 565//565 551//551 +f 534//534 553//553 559//559 +f 534//534 559//559 555//555 +f 555//555 559//559 556//556 +f 556//556 93//92 66//65 +f 535//535 59//58 561//561 +f 535//535 561//561 560//560 +f 560//560 561//561 62//61 +f 58//57 99//98 560//560 +f 560//560 99//98 567//567 +f 560//560 567//567 566//566 +f 560//560 566//566 535//535 +f 535//535 566//566 530//530 +f 535//535 530//530 529//529 +f 535//535 529//529 536//536 +f 535//535 536//536 100//99 +f 99//98 98//97 564//564 +f 99//98 564//564 567//567 +f 529//529 562//562 536//536 +f 107//106 536//536 92//91 +f 537//537 539//539 541//541 +f 324//323 327//326 110//109 +f 568//568 569//569 121//120 +f 303//302 108//107 300//299 +f 111//110 318//317 322//321 +f 121//120 569//569 570//570 +f 121//120 570//570 120//119 +f 111//110 322//321 110//109 +f 110//109 322//321 324//323 +f 319//318 112//111 139//138 +f 568//568 122//121 302//301 +f 300//299 108//107 301//300 +f 319//318 318//317 112//111 +f 112//111 318//317 111//110 +f 112//111 140//139 139//138 +f 120//119 570//570 571//571 +f 122//121 568//568 121//120 +f 297//296 123//122 305//304 +f 123//122 304//303 305//304 +f 301//300 108//107 328//327 +f 109//108 328//327 108//107 +f 123//122 297//296 122//121 +f 122//121 297//296 302//301 +f 108//107 303//302 123//122 +f 123//122 303//302 304//303 +f 109//108 327//326 328//327 +f 110//109 327//326 109//108 +f 117//116 469//468 473//472 +f 120//119 571//571 119//118 +f 119//118 571//571 572//572 +f 113//112 140//139 112//111 +f 173//172 113//112 171//170 +f 171//170 113//112 114//113 +f 469//468 117//116 118//117 +f 118//117 475//474 469//468 +f 572//572 475//474 118//117 +f 113//112 173//172 140//139 +f 114//113 170//169 171//170 +f 115//114 168//167 114//113 +f 114//113 168//167 170//169 +f 116//115 465//464 162//161 +f 116//115 162//161 573//573 +f 117//116 473//472 116//115 +f 116//115 473//472 465//464 +f 119//118 572//572 118//117 +f 165//164 115//114 161//160 +f 573//573 162//161 115//114 +f 115//114 162//161 161//160 +f 115//114 165//164 168//167 +f 497//497 495//495 574//574 +f 575//575 576//576 577//577 +f 578//578 579//579 580//580 +f 581//581 580//580 579//579 +f 582//582 583//583 581//581 +f 582//582 584//584 583//583 +f 585//585 586//586 587//587 +f 588//588 575//575 577//577 +f 589//589 590//590 577//577 +f 577//577 590//590 588//588 +f 589//589 591//591 590//590 +f 592//592 593//593 589//589 +f 589//589 593//593 591//591 +f 592//592 594//594 593//593 +f 592//592 595//595 594//594 +f 596//596 497//497 574//574 +f 497//497 596//596 492//492 +f 518//519 521//522 597//597 +f 598//598 153//152 490//490 +f 489//489 153//152 598//598 +f 488//488 599//599 484//484 +f 516//517 485//485 600//600 +f 601//601 602//602 589//589 +f 601//601 589//589 603//603 +f 603//603 589//589 577//577 +f 603//603 577//577 604//604 +f 485//485 484//484 605//605 +f 605//605 484//484 599//599 +f 603//603 604//604 606//606 +f 607//607 606//606 608//608 +f 599//599 607//607 605//605 +f 600//600 485//485 605//605 +f 605//605 608//608 582//582 +f 492//492 596//596 493//493 +f 493//493 596//596 595//595 +f 493//493 595//595 609//609 +f 609//609 595//595 592//592 +f 609//609 592//592 602//602 +f 602//602 592//592 589//589 +f 577//577 576//576 604//604 +f 606//606 587//587 582//582 +f 606//606 582//582 608//608 +f 480//480 516//517 579//579 +f 579//579 516//517 600//600 +f 608//608 605//605 607//607 +f 579//579 600//600 581//581 +f 581//581 600//600 605//605 +f 581//581 605//605 582//582 +f 587//587 606//606 604//604 +f 587//587 604//604 585//585 +f 584//584 582//582 587//587 +f 584//584 587//587 586//586 +f 585//585 604//604 576//576 +f 578//578 480//480 579//579 +f 607//607 610//610 606//606 +f 606//606 610//610 603//603 +f 601//601 597//597 602//602 +f 602//602 597//597 609//609 +f 609//609 597//597 514//515 +f 609//609 514//515 493//493 +f 487//487 515//516 610//610 +f 610//610 515//516 611//611 +f 612//612 611//611 598//598 +f 612//612 598//598 597//597 +f 597//597 598//598 518//519 +f 515//516 504//504 489//489 +f 515//516 489//489 611//611 +f 611//611 489//489 598//598 +f 598//598 490//490 518//519 +f 599//599 488//488 487//487 +f 599//599 487//487 607//607 +f 607//607 487//487 610//610 +f 610//610 611//611 603//603 +f 603//603 611//611 612//612 +f 603//603 612//612 601//601 +f 601//601 612//612 597//597 +f 597//597 521//522 514//515 +f 64//63 63//62 613//613 +f 613//613 63//62 614//614 +f 613//613 614//614 615//615 +f 615//615 614//614 616//616 +f 617//617 618//618 614//614 +f 614//614 618//618 619//619 +f 614//614 619//619 616//616 +f 620//620 617//617 621//621 +f 621//621 622//622 623//623 +f 621//621 623//623 620//620 +f 624//624 625//625 626//626 +f 624//624 626//626 627//627 +f 628//628 629//629 626//626 +f 626//626 629//629 627//627 +f 630//630 631//631 632//632 +f 631//631 630//630 480//480 +f 480//480 630//630 481//481 +f 512//512 481//481 630//630 +f 512//512 630//630 527//527 +f 633//633 527//527 630//630 +f 634//634 526//526 527//527 +f 634//634 527//527 633//633 +f 526//526 634//634 626//626 +f 635//635 525//525 626//626 +f 626//626 525//525 526//526 +f 635//635 522//523 525//525 +f 522//523 635//635 636//636 +f 621//621 523//524 636//636 +f 636//636 523//524 522//523 +f 614//614 523//524 621//621 +f 523//524 614//614 68//67 +f 614//614 63//62 68//67 +f 617//617 614//614 621//621 +f 622//622 621//621 636//636 +f 622//622 636//636 637//637 +f 637//637 636//636 635//635 +f 637//637 635//635 625//625 +f 625//625 635//635 626//626 +f 628//628 626//626 634//634 +f 628//628 634//634 632//632 +f 632//632 634//634 633//633 +f 632//632 633//633 630//630 +f 638//638 639//639 568//568 +f 640//640 494//494 641//641 +f 494//494 640//640 495//495 +f 642//642 643//643 644//644 +f 642//642 645//645 646//646 +f 642//642 646//646 643//643 +f 647//647 645//645 648//648 +f 649//649 650//650 648//648 +f 648//648 650//650 647//647 +f 651//651 650//650 649//649 +f 652//652 653//653 651//651 +f 89//88 654//654 655//655 +f 655//655 654//654 656//656 +f 655//655 86//85 89//88 +f 83//82 86//85 657//657 +f 638//638 84//83 83//82 +f 638//638 83//82 657//657 +f 84//83 568//568 302//301 +f 568//568 658//658 569//569 +f 659//659 571//571 570//570 +f 571//571 660//660 572//572 +f 661//661 572//572 660//660 +f 572//572 661//661 475//474 +f 475//474 661//661 476//475 +f 662//662 476//475 661//661 +f 662//662 500//500 476//475 +f 663//663 659//659 570//570 +f 664//664 663//663 665//665 +f 665//665 663//663 570//570 +f 665//665 570//570 569//569 +f 666//666 664//664 665//665 +f 638//638 568//568 84//83 +f 666//666 665//665 658//658 +f 658//658 665//665 569//569 +f 658//658 639//639 666//666 +f 666//666 639//639 667//667 +f 639//639 638//638 657//657 +f 658//658 568//568 639//639 +f 639//639 657//657 667//667 +f 668//668 655//655 656//656 +f 668//668 656//656 669//669 +f 668//668 669//669 652//652 +f 652//652 669//669 670//670 +f 652//652 670//670 653//653 +f 657//657 86//85 655//655 +f 657//657 655//655 668//668 +f 671//671 652//652 651//651 +f 671//671 651//651 649//649 +f 648//648 645//645 642//642 +f 642//642 644//644 672//672 +f 672//672 644//644 673//673 +f 672//672 673//673 674//674 +f 674//674 673//673 675//675 +f 676//676 641//641 499//499 +f 499//499 641//641 494//494 +f 673//673 677//677 675//675 +f 675//675 677//677 676//676 +f 676//676 677//677 641//641 +f 652//652 671//671 664//664 +f 664//664 678//678 659//659 +f 667//667 652//652 666//666 +f 666//666 652//652 664//664 +f 663//663 664//664 659//659 +f 659//659 679//679 571//571 +f 571//571 679//679 660//660 +f 500//500 662//662 674//674 +f 674//674 662//662 680//680 +f 674//674 680//680 672//672 +f 672//672 680//680 679//679 +f 672//672 679//679 642//642 +f 642//642 679//679 648//648 +f 648//648 679//679 678//678 +f 648//648 678//678 649//649 +f 662//662 661//661 660//660 +f 662//662 660//660 680//680 +f 680//680 660//660 679//679 +f 679//679 659//659 678//678 +f 678//678 664//664 649//649 +f 649//649 664//664 671//671 +f 657//657 668//668 667//667 +f 667//667 668//668 652//652 +f 674//674 675//675 500//500 +f 500//500 675//675 676//676 +f 500//500 676//676 499//499 +f 574//574 495//495 596//596 +f 544//544 681//681 682//682 +f 617//683 683//684 684//685 +f 637//686 685//687 686//688 +f 625//689 687//690 686//688 +f 627//691 628//628 688//692 +f 640//640 596//596 495//495 +f 689//693 595//595 690//694 +f 690//694 595//595 596//596 +f 689//693 594//594 595//595 +f 689//693 593//593 594//594 +f 591//591 593//593 691//695 +f 691//695 590//590 591//591 +f 590//590 691//695 692//696 +f 692//696 588//588 590//590 +f 693//697 588//588 692//696 +f 693//697 575//575 588//588 +f 694//698 576//576 693//697 +f 693//697 576//576 575//575 +f 695//699 585//585 694//698 +f 694//698 585//585 576//576 +f 695//699 586//586 585//585 +f 696//700 586//586 695//699 +f 586//586 696//700 584//584 +f 697//701 583//583 584//584 +f 697//701 584//584 696//700 +f 698//702 581//581 697//701 +f 697//701 581//581 583//583 +f 698//702 580//580 581//581 +f 580//580 698//702 699//703 +f 580//580 699//703 578//578 +f 578//578 699//703 480//480 +f 480//480 699//703 631//631 +f 684//685 619//704 617//683 +f 700//705 615//706 619//704 +f 64//63 613//613 701//707 +f 701//707 558//558 64//63 +f 702//708 558//558 701//707 +f 703//709 557//557 702//708 +f 702//708 557//557 558//558 +f 703//709 555//555 557//557 +f 704//710 532//532 703//709 +f 703//709 532//532 555//555 +f 704//710 533//533 532//532 +f 533//533 704//710 705//711 +f 533//533 705//711 554//554 +f 552//552 554//554 706//712 +f 706//712 554//554 705//711 +f 707//713 550//550 552//552 +f 707//713 552//552 706//712 +f 550//550 707//713 708//714 +f 708//714 549//549 550//550 +f 549//549 708//714 709//715 +f 709//715 548//548 549//549 +f 548//548 709//715 710//716 +f 710//716 545//545 548//548 +f 711//717 544//544 545//545 +f 711//717 545//545 710//716 +f 543//543 544//544 682//682 +f 540//540 543//543 682//682 +f 540//540 682//682 712//718 +f 712//718 541//541 540//540 +f 713//719 541//541 712//718 +f 714//720 538//538 541//541 +f 714//720 541//541 713//719 +f 89//88 714//720 656//656 +f 644//644 646//721 647//722 +f 641//641 715//723 640//640 +f 669//669 656//656 716//724 +f 669//669 716//724 653//725 +f 653//725 716//724 717//726 +f 653//725 717//726 650//727 +f 718//728 650//727 719//729 +f 718//728 719//729 647//722 +f 650//727 717//726 719//729 +f 89//88 538//538 714//720 +f 656//656 714//720 716//724 +f 717//726 716//724 720//730 +f 717//726 720//730 719//729 +f 721//731 720//730 722//732 +f 722//732 720//730 723//733 +f 722//732 723//733 724//734 +f 720//730 716//724 723//733 +f 723//733 716//724 725//735 +f 723//733 725//735 726//736 +f 713//719 712//718 725//735 +f 713//719 725//735 714//720 +f 714//720 725//735 716//724 +f 681//681 727//737 682//682 +f 682//682 727//737 726//736 +f 682//682 726//736 712//718 +f 712//718 726//736 725//735 +f 724//734 723//733 726//736 +f 724//734 726//736 728//738 +f 728//738 726//736 727//737 +f 728//738 727//737 729//739 +f 730//740 721//731 731//741 +f 731//741 721//731 722//732 +f 731//741 722//732 732//742 +f 732//742 722//732 724//734 +f 732//742 724//734 733//743 +f 733//743 724//734 728//738 +f 733//743 728//738 734//744 +f 734//744 728//738 729//739 +f 735//745 736//746 737//747 +f 735//745 737//747 738//748 +f 735//745 738//748 739//749 +f 637//686 686//688 740//750 +f 623//751 741//752 637//686 +f 623//751 637//686 740//750 +f 742//753 740//750 743//754 +f 742//753 743//754 744//755 +f 745//756 744//755 746//757 +f 747//758 746//757 748//759 +f 747//758 748//759 749//760 +f 749//760 748//759 750//761 +f 749//760 750//761 751//762 +f 751//762 750//761 752//763 +f 751//762 752//763 739//749 +f 739//749 752//763 753//764 +f 739//749 753//764 735//745 +f 735//745 753//764 754//765 +f 735//745 754//765 736//746 +f 736//746 754//765 755//766 +f 756//767 623//751 684//685 +f 684//685 623//751 740//750 +f 684//685 740//750 742//753 +f 745//756 742//753 744//755 +f 757//768 745//756 746//757 +f 757//768 746//757 747//758 +f 683//684 620//769 684//685 +f 684//685 620//769 756//767 +f 758//770 684//685 742//753 +f 758//770 742//753 745//756 +f 759//771 757//768 747//758 +f 759//771 747//758 760//772 +f 760//772 747//758 749//760 +f 760//772 749//760 761//773 +f 761//773 749//760 751//762 +f 761//773 751//762 762//774 +f 762//774 751//762 739//749 +f 762//774 739//749 738//748 +f 763//775 737//747 736//746 +f 763//775 736//746 729//739 +f 729//739 727//737 764//776 +f 681//681 544//544 711//717 +f 681//681 711//717 727//737 +f 702//708 758//770 745//756 +f 702//708 745//756 757//768 +f 765//777 757//768 759//771 +f 766//778 762//774 738//748 +f 766//778 738//748 737//747 +f 766//778 737//747 763//775 +f 764//776 763//775 729//739 +f 619//704 684//685 701//707 +f 701//707 684//685 758//770 +f 701//707 758//770 702//708 +f 703//709 702//708 757//768 +f 703//709 757//768 765//777 +f 765//777 759//771 705//711 +f 705//711 759//771 760//772 +f 705//711 760//772 706//712 +f 706//712 760//772 761//773 +f 706//712 761//773 707//713 +f 707//713 761//773 762//774 +f 707//713 762//774 708//714 +f 708//714 762//774 766//778 +f 708//714 766//778 709//715 +f 709//715 766//778 710//716 +f 710//716 766//778 763//775 +f 710//716 763//775 764//776 +f 613//613 700//705 619//704 +f 613//613 619//704 701//707 +f 704//710 703//709 765//777 +f 704//710 765//777 705//711 +f 711//717 710//716 764//776 +f 711//717 764//776 727//737 +f 729//739 736//746 734//744 +f 734//744 736//746 755//766 +f 767//779 627//691 688//692 +f 767//779 688//692 686//688 +f 686//688 688//692 768//780 +f 768//780 688//692 769//781 +f 768//780 769//781 770//782 +f 770//782 769//781 771//783 +f 770//782 771//783 772//784 +f 770//782 772//784 773//785 +f 687//690 624//786 686//688 +f 686//688 624//786 767//779 +f 755//766 774//787 775//788 +f 755//766 775//788 776//789 +f 777//790 632//632 699//703 +f 777//790 699//703 771//783 +f 771//783 699//703 698//702 +f 771//783 698//702 772//784 +f 772//784 698//702 697//701 +f 772//784 697//701 778//791 +f 778//791 697//701 696//700 +f 778//791 696//700 779//792 +f 780//793 779//792 695//699 +f 780//793 695//699 694//698 +f 780//793 694//698 781//794 +f 782//795 781//794 692//696 +f 782//795 692//696 783//796 +f 784//797 785//798 689//693 +f 784//797 689//693 786//799 +f 786//799 689//693 715//723 +f 632//632 631//631 699//703 +f 779//792 696//700 695//699 +f 781//794 694//698 693//697 +f 781//794 693//697 692//696 +f 783//796 692//696 691//695 +f 783//796 691//695 787//800 +f 787//800 691//695 593//593 +f 787//800 593//593 785//798 +f 785//798 593//593 689//693 +f 715//723 689//693 690//694 +f 647//722 719//729 730//740 +f 673//673 788//801 786//799 +f 715//723 690//694 640//640 +f 640//640 690//694 596//596 +f 720//730 721//731 719//729 +f 647//722 730//740 644//644 +f 644//644 730//740 788//801 +f 644//644 788//801 673//673 +f 673//673 786//799 677//677 +f 677//677 786//799 715//723 +f 677//677 715//723 641//641 +f 786//799 788//801 784//797 +f 784//797 788//801 789//802 +f 784//797 789//802 790//803 +f 782//795 791//804 775//788 +f 782//795 775//788 792//805 +f 778//791 793//806 773//785 +f 794//807 789//802 731//741 +f 731//741 789//802 788//801 +f 772//784 778//791 773//785 +f 795//808 773//785 793//806 +f 795//808 793//806 796//809 +f 796//809 793//806 797//810 +f 797//810 793//806 798//811 +f 797//810 798//811 799//812 +f 799//812 798//811 792//805 +f 799//812 792//805 774//787 +f 774//787 792//805 775//788 +f 775//788 791//804 776//789 +f 776//789 791//804 800//813 +f 800//813 791//804 801//814 +f 800//813 801//814 794//807 +f 794//807 801//814 790//803 +f 794//807 790//803 789//802 +f 730//740 719//729 721//731 +f 628//628 632//632 688//692 +f 688//692 632//632 777//790 +f 688//692 777//790 769//781 +f 769//781 777//790 771//783 +f 793//806 778//791 779//792 +f 793//806 779//792 780//793 +f 793//806 780//793 798//811 +f 798//811 780//793 792//805 +f 792//805 780//793 781//794 +f 792//805 781//794 782//795 +f 791//804 782//795 783//796 +f 791//804 783//796 801//814 +f 801//814 783//796 787//800 +f 801//814 787//800 790//803 +f 790//803 787//800 785//798 +f 790//803 785//798 784//797 +f 685//687 625//689 686//688 +f 740//750 686//688 768//780 +f 740//750 768//780 743//754 +f 743//754 768//780 770//782 +f 743//754 770//782 744//755 +f 744//755 770//782 746//757 +f 746//757 770//782 773//785 +f 746//757 773//785 748//759 +f 748//759 773//785 795//808 +f 748//759 795//808 750//761 +f 750//761 795//808 796//809 +f 750//761 796//809 752//763 +f 752//763 796//809 797//810 +f 752//763 797//810 753//764 +f 753//764 797//810 799//812 +f 753//764 799//812 754//765 +f 754//765 799//812 774//787 +f 754//765 774//787 755//766 +f 734//744 755//766 776//789 +f 734//744 776//789 733//743 +f 733//743 776//789 800//813 +f 733//743 800//813 732//742 +f 732//742 800//813 794//807 +f 732//742 794//807 731//741 +f 730//740 731//741 788//801 diff --git a/data/kuka_iiwa/meshes/link_5.mtl b/data/kuka_iiwa/meshes/link_5.mtl new file mode 100644 index 000000000..70d3ba1da --- /dev/null +++ b/data/kuka_iiwa/meshes/link_5.mtl @@ -0,0 +1,10 @@ +# Blender MTL File: 'None' +# Material Count: 1 + +newmtl None +Ns 0 +Ka 0.000000 0.000000 0.000000 +Kd 0.8 0.8 0.8 +Ks 0.8 0.8 0.8 +d 1 +illum 2 diff --git a/data/kuka_iiwa/meshes/link_5.obj b/data/kuka_iiwa/meshes/link_5.obj new file mode 100644 index 000000000..525c3869e --- /dev/null +++ b/data/kuka_iiwa/meshes/link_5.obj @@ -0,0 +1,2732 @@ +# Blender v2.78 (sub 0) OBJ File: '' +# www.blender.org +mtllib link_5.mtl +o Link_5 +v 0.039468 -0.055306 0.020605 +v 0.037523 -0.056649 0.020605 +v 0.041452 -0.053841 0.014758 +v 0.035384 -0.057976 0.014731 +v -0.039465 0.055327 0.020609 +v -0.035679 0.057848 0.011238 +v -0.042615 0.052926 0.011241 +v -0.006109 0.024313 -0.010000 +v 0.004631 0.024830 -0.010000 +v -0.025195 0.000446 -0.010000 +v 0.014772 0.020253 -0.010000 +v 0.025195 -0.000446 -0.010000 +v 0.022057 0.012302 -0.010000 +v -0.004631 -0.024830 -0.010000 +v 0.022591 -0.010866 -0.010000 +v -0.022591 0.010866 -0.010000 +v -0.016122 0.019444 -0.010000 +v -0.014772 -0.020253 -0.010000 +v -0.022057 -0.012302 -0.010000 +v 0.006109 -0.024313 -0.010000 +v 0.016122 -0.019444 -0.010000 +v 0.043580 -0.052210 0.008380 +v 0.042691 -0.052848 0.024662 +v 0.032134 -0.059933 0.019953 +v 0.027193 -0.062393 0.008351 +v -0.027740 0.062166 0.008334 +v -0.033880 0.058899 0.024651 +v -0.043609 0.052170 0.008377 +v -0.040341 0.054692 0.024651 +v -0.020264 0.064886 0.024654 +v -0.017794 0.065663 0.016691 +v -0.027126 0.062326 0.024651 +v -0.013309 0.066670 0.014625 +v -0.020244 0.064867 0.008383 +v -0.013578 0.066588 0.018790 +v -0.010949 0.067240 0.032999 +v -0.005939 0.067787 0.008387 +v 0.014525 0.066328 0.013542 +v 0.017282 0.065721 0.008951 +v 0.014081 0.066479 0.008095 +v 0.019497 0.065087 0.011625 +v 0.014662 0.066367 0.024652 +v 0.019683 0.065036 0.024651 +v 0.003831 0.067871 0.024651 +v 0.003948 0.067786 0.013546 +v -0.001307 0.067901 0.024604 +v 0.005228 0.067800 0.000003 +v 0.028567 0.061681 0.008383 +v 0.021569 0.064540 0.008447 +v 0.036453 0.057317 0.016899 +v 0.030584 0.060779 0.016741 +v 0.028288 0.061794 0.024642 +v 0.040867 0.054343 0.000001 +v 0.040806 0.054343 0.024651 +v 0.021424 0.064546 0.024649 +v 0.020252 -0.064872 0.024652 +v 0.018538 -0.065429 0.017316 +v 0.027125 -0.062335 0.024648 +v 0.013694 -0.066612 0.018888 +v 0.011151 -0.067117 0.014642 +v 0.005889 -0.067694 0.008360 +v 0.019622 -0.065382 0.032999 +v 0.005883 -0.067719 0.032983 +v -0.014332 -0.066348 0.012292 +v -0.015881 -0.066111 0.008245 +v -0.005591 -0.067713 0.012329 +v -0.003987 -0.067832 0.008136 +v -0.019038 -0.065227 0.010715 +v -0.019648 -0.065040 0.012875 +v -0.014657 -0.066377 0.024651 +v -0.019680 -0.065064 0.024651 +v -0.004005 -0.067802 0.013637 +v -0.001112 -0.067946 0.008975 +v 0.001179 -0.067938 0.011674 +v -0.030586 -0.060741 0.016723 +v -0.021555 -0.064463 0.024535 +v -0.029030 -0.061458 0.023913 +v -0.036552 -0.057336 0.008384 +v -0.036555 -0.057255 0.014629 +v -0.040827 -0.054330 0.008384 +v -0.040517 -0.054646 0.032997 +v -0.036473 -0.057277 0.017363 +v -0.034618 -0.058518 0.014620 +v -0.028250 -0.061805 0.008386 +v -0.021529 -0.064600 0.008412 +v 0.024001 0.008013 0.000000 +v 0.016108 0.019450 0.000000 +v 0.006118 0.024311 0.000000 +v -0.004634 0.024826 0.000000 +v -0.014767 0.020258 0.000000 +v -0.020540 0.014377 0.000000 +v -0.024697 0.005086 0.000000 +v -0.024001 -0.008013 0.000000 +v -0.016108 -0.019449 0.000000 +v -0.006118 -0.024311 0.000000 +v 0.004634 -0.024826 0.000000 +v 0.014767 -0.020258 0.000000 +v 0.020540 -0.014377 0.000000 +v 0.024697 -0.005086 0.000000 +v -0.063399 0.025059 0.000000 +v -0.067988 0.005915 -0.000000 +v 0.030692 0.060879 -0.000001 +v -0.018268 0.065660 -0.000001 +v -0.035204 0.058371 -0.000001 +v 0.030111 -0.061256 0.000001 +v 0.011203 -0.067209 0.000000 +v 0.061485 -0.029614 0.000000 +v 0.066869 -0.012834 0.000000 +v 0.052127 0.043946 0.000000 +v -0.066920 -0.013020 0.000000 +v -0.033156 -0.059567 -0.000001 +v -0.049408 -0.047152 -0.000000 +v -0.052105 0.044290 -0.000001 +v -0.007057 -0.067793 -0.000000 +v 0.061408 0.029536 -0.000000 +v 0.066566 0.014265 -0.000000 +v 0.068103 0.000049 -0.000000 +v -0.003032 0.067980 -0.000001 +v -0.061087 -0.030262 0.000000 +v 0.048043 -0.048649 0.000001 +v 0.016461 0.065994 -0.000000 +v -0.020368 -0.064868 -0.000000 +v 0.038040 -0.056391 0.033001 +v 0.051533 -0.044780 0.033006 +v -0.046952 0.048996 0.033000 +v -0.033301 0.059446 0.033000 +v -0.053627 0.041436 0.033012 +v -0.019907 0.064374 0.033005 +v 0.007108 0.067627 0.033000 +v 0.021246 0.064723 0.033000 +v 0.045259 0.050931 0.033000 +v 0.034000 0.058890 0.033000 +v -0.001405 -0.068018 0.033000 +v -0.011471 -0.067025 0.033000 +v -0.019749 -0.065085 0.033000 +v -0.027990 -0.062000 0.032999 +v -0.047426 -0.048785 0.032999 +v -0.066121 -0.016128 0.033000 +v -0.067942 0.002461 0.033001 +v -0.065676 0.017318 0.033000 +v -0.063453 0.024065 0.033023 +v -0.058968 0.033493 0.033010 +v 0.057210 0.037007 0.033000 +v 0.063899 0.023257 0.033000 +v 0.067533 0.008995 0.033000 +v 0.067530 -0.009206 0.033000 +v 0.062509 -0.027147 0.033000 +v -0.059246 -0.033583 0.033000 +v 0.020319 0.070701 0.230206 +v 0.014063 0.070701 0.236270 +v 0.020767 0.070701 0.201433 +v -0.014071 0.070699 0.194729 +v -0.006119 0.070700 0.191171 +v 0.004926 0.070700 0.190745 +v 0.006111 0.070700 0.239829 +v -0.002578 0.070700 0.240453 +v -0.018015 0.070699 0.232960 +v -0.022901 0.070699 0.225747 +v -0.024131 0.070699 0.208632 +v -0.010958 0.070699 0.238068 +v -0.020326 0.070699 0.200794 +v 0.014703 0.070701 0.195178 +v 0.024944 0.070701 0.211666 +v 0.024123 0.070701 0.222369 +v -0.025025 0.070699 0.217298 +v 0.043419 0.052473 0.049956 +v 0.047719 0.048727 0.033065 +v 0.037886 0.055974 0.033072 +v 0.026563 0.062009 0.033036 +v 0.029241 0.060803 0.041552 +v 0.019190 0.064372 0.041490 +v 0.009435 0.066260 0.033063 +v -0.009626 0.066317 0.041459 +v -0.002342 0.066808 0.033022 +v -0.022527 0.063209 0.040680 +v -0.034589 0.057748 0.033017 +v -0.040798 0.054097 0.047977 +v 0.014258 -0.066670 0.033020 +v 0.053816 -0.042147 0.033075 +v 0.063589 -0.025013 0.033088 +v 0.031927 -0.060389 0.033044 +v 0.042987 -0.052969 0.033084 +v 0.067947 -0.007906 0.033092 +v 0.068229 0.004201 0.033130 +v 0.065293 0.020112 0.033094 +v 0.053777 0.041895 0.033091 +v 0.060329 0.032086 0.033103 +v 0.039641 0.079921 0.157179 +v 0.039445 0.082696 0.161537 +v 0.041286 0.082000 0.170556 +v 0.039796 0.079440 0.161131 +v 0.041155 0.080711 0.171222 +v 0.044890 0.084661 0.194963 +v 0.047084 0.083642 0.210693 +v 0.048252 0.082232 0.210233 +v 0.045527 0.083309 0.193403 +v 0.045364 0.082298 0.191945 +v 0.041463 0.084620 0.177223 +v -0.024951 0.060699 0.211666 +v -0.024130 0.060699 0.222369 +v -0.020326 0.060699 0.230207 +v -0.012138 0.060699 0.237632 +v -0.001801 0.060700 0.240521 +v 0.006866 0.060700 0.239627 +v 0.016644 0.060701 0.234473 +v 0.022894 0.060701 0.225747 +v 0.025018 0.060701 0.217298 +v 0.024124 0.060701 0.208631 +v 0.020320 0.060701 0.200794 +v 0.014064 0.060701 0.194730 +v 0.003831 0.060700 0.190552 +v -0.006871 0.060700 0.191373 +v -0.016650 0.060699 0.196527 +v -0.021654 0.060699 0.203000 +v 0.050981 0.062332 0.223134 +v 0.049255 0.060746 0.230613 +v 0.051498 0.060758 0.215433 +v 0.015795 0.061856 0.264537 +v 0.008212 0.060751 0.266333 +v 0.023901 0.060846 0.261155 +v 0.042295 0.060827 0.244810 +v 0.036581 0.062182 0.251801 +v 0.036782 0.060708 0.251352 +v 0.030451 0.060799 0.256991 +v 0.008127 0.060724 0.164719 +v -0.000060 0.062580 0.163969 +v 0.008700 0.062455 0.164727 +v 0.015961 0.062431 0.166527 +v 0.036212 0.062449 0.178881 +v 0.041480 0.062402 0.184941 +v 0.039663 0.060743 0.182838 +v 0.023713 0.062387 0.169775 +v 0.021955 0.060710 0.169045 +v 0.029531 0.062275 0.173264 +v -0.004180 0.060713 0.164288 +v 0.033120 0.060711 0.176226 +v 0.043356 0.060776 0.187917 +v 0.045640 0.062442 0.191587 +v 0.049038 0.060716 0.199600 +v 0.048917 0.062439 0.199353 +v 0.050813 0.062523 0.206763 +v -0.007658 0.060735 0.266463 +v -0.000117 0.061736 0.267035 +v 0.046807 0.081087 0.229099 +v 0.047867 0.082450 0.219439 +v 0.042935 0.085577 0.219078 +v 0.001338 0.077439 0.265062 +v 0.011543 0.078129 0.263114 +v 0.006399 0.084064 0.255737 +v -0.003262 0.082699 0.258232 +v -0.007839 0.077525 0.264452 +v -0.026262 0.083628 0.248856 +v -0.031559 0.079112 0.252817 +v -0.022715 0.078626 0.258778 +v -0.040800 0.087075 0.215190 +v -0.047327 0.083385 0.211524 +v -0.047622 0.082414 0.221084 +v 0.021237 0.090860 0.234999 +v 0.023419 0.092440 0.226773 +v 0.009816 0.093418 0.233923 +v 0.036088 0.087954 0.225983 +v 0.036258 0.089316 0.216473 +v 0.034147 0.086429 0.235130 +v 0.042574 0.080667 0.238554 +v 0.036680 0.080031 0.246944 +v 0.027068 0.085393 0.244925 +v 0.029463 0.079333 0.254089 +v 0.018714 0.086004 0.248621 +v 0.006271 0.090588 0.243099 +v -0.009394 0.091862 0.238831 +v -0.004075 0.094808 0.230373 +v -0.017885 0.093451 0.228313 +v -0.015875 0.086206 0.249565 +v -0.005014 0.088169 0.248413 +v -0.022989 0.088507 0.240475 +v -0.032182 0.085781 0.239098 +v -0.027000 0.090716 0.229399 +v -0.038789 0.086710 0.226234 +v -0.040726 0.080461 0.241529 +v -0.044850 0.081194 0.233223 +v 0.020140 0.078582 0.260025 +v -0.032579 0.090539 0.219179 +v -0.013012 0.078306 0.262591 +v -0.036522 0.079683 0.247627 +v 0.048149 0.048514 0.050697 +v 0.047218 0.051784 0.071205 +v 0.039187 0.061408 0.082264 +v 0.045840 0.055602 0.085229 +v 0.035144 0.088438 0.173676 +v 0.009734 0.096381 0.220394 +v -0.003879 0.097339 0.217827 +v -0.023141 0.095086 0.209501 +v -0.045309 0.084559 0.198528 +v -0.038593 0.088822 0.202087 +v -0.034266 0.084656 0.152386 +v -0.039051 0.082501 0.159929 +v -0.041677 0.084835 0.179029 +v -0.038832 0.074911 0.132046 +v -0.046405 0.052839 0.074731 +v -0.044964 0.057020 0.088923 +v -0.041251 0.059196 0.082230 +v -0.047708 0.048271 0.043378 +v -0.047507 0.049423 0.057796 +v -0.034722 0.058776 0.054334 +v -0.033730 0.064504 0.079678 +v -0.022752 0.064274 0.053834 +v -0.022380 0.069349 0.075777 +v -0.009787 0.067453 0.053620 +v -0.041307 0.067398 0.115908 +v -0.009874 0.072338 0.074234 +v -0.024296 0.083961 0.125919 +v -0.012765 0.097425 0.208658 +v -0.017313 0.096917 0.181609 +v -0.008982 0.098627 0.189830 +v -0.016212 0.086559 0.123701 +v -0.013768 0.094197 0.153478 +v -0.008536 0.087781 0.121208 +v 0.003448 0.088384 0.121227 +v 0.003458 0.072662 0.072788 +v -0.025187 0.093542 0.174515 +v -0.024364 0.090824 0.154749 +v -0.035570 0.089553 0.183758 +v 0.000446 0.068149 0.053982 +v 0.011215 0.094809 0.153056 +v 0.014003 0.087392 0.123824 +v 0.000265 0.098639 0.175098 +v -0.002701 0.095491 0.151916 +v -0.002680 0.090538 0.129482 +v 0.032389 0.091971 0.194144 +v 0.025502 0.093419 0.174108 +v 0.031565 0.085997 0.150000 +v 0.023317 0.094203 0.216257 +v 0.021159 0.096265 0.196452 +v 0.024504 0.090831 0.154898 +v 0.038484 0.078978 0.144569 +v 0.014638 0.096851 0.174395 +v 0.009206 0.098701 0.197831 +v 0.024533 0.083958 0.126120 +v -0.003075 0.098933 0.201576 +v 0.040191 0.070995 0.122673 +v 0.035160 0.058803 0.054644 +v 0.023226 0.064281 0.054018 +v 0.010290 0.067452 0.053704 +v -0.029918 0.093026 0.195237 +v 0.016619 0.071016 0.074463 +v 0.028684 0.066939 0.076702 +v -0.038781 0.077787 0.155562 +v -0.040241 0.081125 0.164285 +v -0.038909 0.077310 0.148876 +v -0.043120 0.057990 0.101012 +v -0.041536 0.065081 0.113747 +v -0.044319 0.058498 0.095253 +v -0.038962 0.079748 0.151815 +v -0.039352 0.073603 0.134154 +v -0.038445 0.073997 0.140511 +v -0.039335 0.069803 0.128036 +v 0.038771 0.076588 0.149119 +v 0.041802 0.065031 0.113831 +v 0.041616 0.059011 0.107810 +v 0.044300 0.059404 0.097878 +v 0.040522 0.069905 0.123775 +v 0.039275 0.075783 0.140422 +v 0.039082 0.071137 0.132167 +v -0.005325 -0.067791 0.042102 +v -0.017440 -0.065562 0.042804 +v -0.027711 -0.061887 0.043290 +v -0.035738 -0.057491 0.044867 +v -0.043049 -0.052422 0.041108 +v -0.050002 -0.045810 0.041042 +v -0.055219 -0.039332 0.043023 +v -0.060816 -0.029857 0.042400 +v -0.064045 -0.022104 0.041775 +v -0.066343 -0.013926 0.041961 +v -0.067574 -0.004740 0.045176 +v -0.065943 0.015615 0.046474 +v 0.009650 -0.067244 0.043314 +v 0.019270 -0.065097 0.044602 +v 0.028192 -0.061808 0.044505 +v 0.036995 -0.057171 0.042795 +v 0.049039 -0.047342 0.043073 +v 0.055681 -0.039355 0.043183 +v 0.064943 -0.020773 0.042952 +v 0.061138 -0.030141 0.042780 +v 0.067098 -0.012293 0.044789 +v 0.068159 -0.004187 0.041460 +v 0.067269 0.010942 0.048306 +v 0.036906 0.074813 0.168054 +v 0.037865 0.072943 0.175606 +v 0.035816 0.065011 0.178349 +v 0.041385 0.076725 0.179479 +v 0.031162 0.065276 0.174232 +v 0.050711 0.071104 0.211450 +v 0.045189 0.071665 0.191309 +v 0.036221 0.067904 0.177718 +v 0.033075 0.069058 0.172838 +v 0.030993 0.066926 0.172921 +v 0.040834 0.068343 0.183968 +v 0.033547 0.070905 0.170126 +v 0.043281 0.077875 0.184483 +v -0.043542 0.060720 0.188211 +v -0.036772 0.060701 0.179627 +v -0.026874 0.060708 0.171556 +v -0.049327 0.060718 0.200736 +v -0.045735 0.060749 0.239190 +v -0.050779 0.060742 0.224262 +v -0.051505 0.060746 0.215725 +v -0.037010 0.060707 0.251124 +v -0.031010 0.060844 0.256588 +v 0.045729 0.060780 0.239156 +v -0.014507 0.060745 0.166148 +v -0.015595 0.060766 0.264608 +v -0.024118 0.060837 0.261018 +v 0.048777 0.080780 0.219871 +v -0.048418 0.082069 0.211999 +v -0.048795 0.081125 0.218466 +v -0.048017 0.080295 0.225583 +v -0.026909 0.076849 0.257486 +v -0.017841 0.076620 0.262090 +v 0.030529 0.077615 0.254652 +v 0.035435 0.078112 0.250080 +v 0.040245 0.078508 0.244303 +v 0.017151 0.076933 0.262266 +v -0.040877 0.078765 0.243311 +v 0.045116 0.079106 0.235577 +v 0.024658 0.076799 0.258751 +v -0.034575 0.077260 0.251316 +v 0.007003 0.076413 0.264915 +v -0.045537 0.079407 0.234405 +v -0.046932 0.082743 0.200665 +v -0.045068 0.083035 0.190662 +v -0.041626 0.081058 0.173946 +v -0.039969 0.079774 0.164355 +v -0.061398 0.028087 0.056813 +v -0.056671 0.037367 0.060119 +v 0.046268 0.050792 0.089821 +v 0.063592 0.024296 0.054310 +v -0.047834 0.048896 0.083023 +v -0.028513 0.068870 0.152650 +v -0.034259 0.072601 0.153793 +v -0.033815 0.070380 0.144434 +v -0.012328 0.059010 0.139941 +v -0.024203 0.065629 0.147299 +v -0.023650 0.062189 0.138705 +v 0.036562 0.075171 0.158961 +v 0.051728 0.045311 0.061082 +v 0.003505 -0.038083 0.082663 +v -0.001980 -0.050873 0.073272 +v 0.011020 -0.050003 0.073222 +v 0.018418 -0.036656 0.081641 +v 0.025318 -0.045929 0.072857 +v 0.033000 -0.029761 0.081097 +v 0.067605 0.001122 0.051803 +v 0.058500 -0.021763 0.065527 +v 0.061963 -0.013345 0.065158 +v 0.054608 -0.015148 0.074683 +v 0.061926 0.000129 0.071162 +v 0.058862 -0.005056 0.074008 +v 0.056489 0.038194 0.062756 +v 0.064123 0.017106 0.064124 +v 0.036872 -0.017677 0.085402 +v 0.021832 -0.017782 0.090404 +v 0.039928 -0.037481 0.072339 +v 0.046541 -0.021657 0.078171 +v 0.048002 -0.008203 0.082982 +v 0.031583 0.024549 0.102441 +v 0.055711 0.005188 0.080372 +v 0.035456 0.028584 0.101664 +v 0.048274 0.042295 0.088580 +v 0.059433 0.029828 0.069225 +v 0.052923 0.040085 0.076766 +v 0.049795 0.047352 0.074904 +v 0.065041 0.004724 0.064298 +v 0.060781 0.014207 0.074217 +v 0.033837 0.041722 0.108311 +v 0.044327 0.027496 0.094273 +v 0.042442 0.037646 0.098204 +v 0.047780 0.035646 0.090731 +v 0.066109 -0.003653 0.058875 +v 0.059251 0.024012 0.074127 +v 0.044884 0.049955 0.095475 +v 0.041805 0.046442 0.101172 +v 0.017100 0.031921 0.112145 +v 0.021805 0.019548 0.104449 +v 0.010565 0.047075 0.125407 +v 0.019364 0.044412 0.119618 +v 0.020365 0.053553 0.128022 +v 0.028232 0.052617 0.121049 +v 0.037406 0.055805 0.113373 +v 0.043402 0.054256 0.100449 +v 0.010523 0.059832 0.142488 +v 0.019147 0.058533 0.135730 +v 0.018188 0.062999 0.145621 +v 0.026371 0.062314 0.135732 +v 0.029561 0.068849 0.150738 +v 0.031883 0.067031 0.139080 +v 0.035065 0.072471 0.148526 +v 0.034826 0.061879 0.124319 +v -0.036970 0.042354 0.105454 +v -0.032433 0.034015 0.105476 +v -0.029656 0.046790 0.114686 +v -0.042099 0.031593 0.096762 +v -0.039060 0.057654 0.111525 +v -0.032463 0.057847 0.122063 +v -0.034443 0.063412 0.127183 +v -0.035180 0.052554 0.113287 +v -0.040753 0.046065 0.102118 +v -0.010959 0.019070 0.106892 +v 0.002056 0.015944 0.106298 +v 0.002030 0.029314 0.113173 +v 0.013358 0.017002 0.105512 +v 0.028094 0.040353 0.111949 +v 0.036612 0.048842 0.109218 +v -0.013110 0.030905 0.112553 +v -0.005014 0.038570 0.119085 +v 0.008683 0.039140 0.119020 +v -0.014117 0.050170 0.127068 +v -0.021783 0.050638 0.123708 +v -0.018604 0.040976 0.117259 +v -0.024172 0.019789 0.103579 +v -0.002169 0.046312 0.125957 +v -0.025221 0.029533 0.107456 +v -0.033988 0.067344 0.135603 +v -0.024806 0.058485 0.131027 +v 0.008716 0.053601 0.133176 +v -0.003579 0.055847 0.136934 +v 0.002866 0.057495 0.140036 +v -0.050141 0.046837 0.069841 +v -0.067450 0.005076 0.046640 +v -0.066092 0.010064 0.056430 +v -0.065567 -0.003029 0.059301 +v -0.064875 -0.014802 0.053478 +v -0.064180 0.009862 0.065251 +v -0.062172 0.022749 0.065056 +v -0.056525 0.008770 0.079224 +v -0.060441 0.014008 0.073791 +v -0.061854 0.002660 0.070857 +v -0.051702 0.041956 0.077247 +v -0.056993 0.034238 0.069983 +v -0.053549 0.031361 0.081169 +v -0.045527 0.052286 0.091176 +v -0.043540 0.050868 0.098177 +v -0.047040 0.045488 0.089226 +v -0.041722 0.052354 0.102783 +v -0.046467 0.041336 0.091795 +v -0.042578 0.039362 0.097946 +v -0.053436 0.001259 0.081033 +v -0.058472 -0.004958 0.073870 +v -0.062145 -0.010829 0.065081 +v -0.059102 0.024403 0.073263 +v -0.051193 0.025993 0.085861 +v -0.036522 0.018845 0.097710 +v -0.058832 -0.032105 0.049243 +v -0.061756 -0.023987 0.053579 +v -0.049868 -0.042631 0.054272 +v -0.054273 -0.033050 0.060585 +v -0.058460 -0.024040 0.062421 +v -0.043332 -0.050390 0.050920 +v -0.055502 -0.022354 0.068715 +v -0.054794 -0.013276 0.074738 +v -0.047894 -0.008034 0.082780 +v -0.015386 -0.065230 0.048107 +v -0.008858 -0.063991 0.054860 +v -0.017752 -0.062189 0.054770 +v 0.057948 -0.034279 0.049379 +v 0.000233 -0.066178 0.050912 +v -0.027459 -0.053673 0.063425 +v -0.017443 -0.048214 0.073298 +v -0.033010 -0.044067 0.070468 +v -0.032759 -0.036085 0.077030 +v 0.065130 -0.015247 0.053894 +v 0.062112 -0.024428 0.053407 +v 0.050320 -0.042616 0.054414 +v 0.045363 -0.048777 0.050857 +v 0.038948 -0.052745 0.054283 +v 0.011700 -0.064971 0.051358 +v -0.008967 -0.059028 0.063603 +v -0.021768 -0.058342 0.059803 +v -0.024864 -0.033304 0.081778 +v 0.008539 -0.058526 0.064518 +v 0.055987 -0.031381 0.060206 +v 0.024704 -0.060231 0.054650 +v 0.006278 -0.062826 0.058107 +v -0.010536 -0.037754 0.082206 +v 0.032707 -0.051297 0.063096 +v 0.046037 -0.040924 0.063666 +v -0.036456 -0.018489 0.084997 +v -0.030782 -0.057939 0.052836 +v -0.042465 -0.028893 0.076301 +v -0.038334 -0.047760 0.062582 +v -0.020737 -0.018867 0.090076 +v -0.049199 -0.022386 0.075245 +v -0.045261 -0.038500 0.066608 +v 0.021682 -0.056597 0.062771 +v -0.008582 -0.024706 0.089418 +v 0.012559 -0.020691 0.090985 +v 0.003471 -0.024931 0.089707 +v -0.005524 -0.005661 0.097580 +v 0.049422 -0.028371 0.071575 +v 0.027899 0.068156 0.168032 +v 0.024292 0.065713 0.169097 +v 0.018942 0.066037 0.165198 +v 0.017361 0.064032 0.166785 +v 0.025894 0.064619 0.170788 +v 0.020336 0.066008 0.153783 +v 0.017406 0.066304 0.163045 +v 0.018699 0.066550 0.159643 +v 0.025951 0.068479 0.161689 +v 0.008333 0.065477 0.158765 +v 0.000080 0.064801 0.156782 +v -0.002590 0.063284 0.152385 +v 0.017447 0.065196 0.166200 +v 0.009502 0.064365 0.164531 +v 0.006551 0.065273 0.162701 +v 0.000072 0.065311 0.161579 +v 0.000072 0.065365 0.161159 +v 0.000071 0.065134 0.162402 +v 0.000071 0.065107 0.162493 +v 0.000069 0.064112 0.163728 +v 0.000070 0.064928 0.162889 +v 0.000071 0.065262 0.161942 +v 0.000073 0.065365 0.160739 +v 0.000074 0.065366 0.160171 +v -0.001267 0.060733 0.146388 +v 0.031737 0.071347 0.162981 +v 0.027410 0.068989 0.157631 +v -0.048897 0.062348 0.199255 +v -0.050850 0.062370 0.207078 +v -0.045887 0.062390 0.192048 +v -0.042310 0.062412 0.186154 +v -0.036788 0.062413 0.179386 +v -0.015924 0.062629 0.166485 +v -0.008031 0.062536 0.164621 +v -0.029677 0.062324 0.173346 +v -0.023014 0.062417 0.169424 +v -0.036582 0.062195 0.251799 +v -0.042263 0.062548 0.245083 +v -0.049048 0.061731 0.231332 +v -0.014231 0.068533 0.264676 +v -0.049753 0.070466 0.226442 +v -0.000260 0.069090 0.266645 +v 0.010822 0.069468 0.265359 +v 0.023132 0.069765 0.261065 +v 0.049987 0.073636 0.222131 +v 0.036169 0.069525 0.251628 +v 0.044221 0.069441 0.240932 +v 0.048548 0.068046 0.231763 +v -0.050852 0.070228 0.217607 +v -0.046516 0.069593 0.236403 +v -0.036399 0.069641 0.251381 +v -0.025820 0.069599 0.259464 +v -0.050561 0.071478 0.210363 +v -0.045965 0.075593 0.193152 +v -0.048887 0.070452 0.201185 +v -0.044731 0.070328 0.190461 +v -0.042226 0.074188 0.183750 +v -0.043471 0.079254 0.184444 +v -0.032706 0.069384 0.171986 +v -0.036094 0.068087 0.177586 +v -0.036618 0.072448 0.173776 +v -0.032044 0.066864 0.174026 +v -0.040186 0.069239 0.182629 +v -0.031393 0.064751 0.174515 +v -0.036993 0.064914 0.179610 +v -0.037492 0.076215 0.165293 +v -0.039897 0.076321 0.175712 +v -0.012962 0.063273 0.149275 +v -0.033708 0.072813 0.160731 +v -0.030571 0.070549 0.163774 +v -0.026182 0.065763 0.170217 +v -0.024031 0.064348 0.169748 +v -0.027653 0.068882 0.164880 +v -0.028362 0.067930 0.168934 +v -0.021476 0.067200 0.159244 +v -0.022390 0.066649 0.166478 +v -0.017792 0.066425 0.163095 +v -0.011553 0.065766 0.159943 +v -0.010521 0.065481 0.163087 +v -0.016242 0.065230 0.165646 +v 0.000075 0.065217 0.159060 +v -0.007294 0.064516 0.164118 +v -0.017551 0.064477 0.166781 +v 0.000070 0.064973 0.162792 +v 0.000070 0.064871 0.162975 +v -0.021257 0.066310 0.153513 +vn 0.5790 -0.8152 0.0150 +vn 0.5317 -0.8441 0.0690 +vn 0.5877 -0.8090 -0.0091 +vn 0.5297 -0.8480 -0.0140 +vn -0.5704 0.8213 0.0010 +vn -0.5282 0.8491 0.0044 +vn -0.5911 0.8066 -0.0038 +vn -0.1985 0.7169 -0.6683 +vn 0.1491 0.7387 -0.6573 +vn -0.7488 0.0021 -0.6627 +vn 0.4242 0.6112 -0.6682 +vn 0.7488 -0.0021 -0.6627 +vn 0.6573 0.3670 -0.6582 +vn -0.1491 -0.7387 -0.6573 +vn 0.6659 -0.3206 -0.6737 +vn -0.6659 0.3206 -0.6737 +vn -0.4690 0.5869 -0.6599 +vn -0.4242 -0.6112 -0.6682 +vn -0.6573 -0.3670 -0.6582 +vn 0.1985 -0.7169 -0.6683 +vn 0.4690 -0.5869 -0.6599 +vn 0.5925 -0.8051 -0.0259 +vn 0.6274 -0.7786 0.0137 +vn 0.4806 -0.8768 0.0133 +vn 0.3703 -0.9289 -0.0009 +vn -0.4041 0.9146 -0.0116 +vn -0.5253 0.8508 -0.0115 +vn -0.6486 0.7609 -0.0152 +vn -0.5993 0.8003 0.0194 +vn -0.2815 0.9587 0.0392 +vn -0.2716 0.9624 0.0006 +vn -0.3728 0.9276 0.0244 +vn -0.1947 0.9808 -0.0075 +vn -0.3085 0.9511 0.0119 +vn -0.2427 0.9700 0.0127 +vn -0.1268 0.7229 0.6792 +vn -0.0846 0.9964 0.0000 +vn 0.2196 0.9756 0.0071 +vn 0.2480 0.9687 0.0103 +vn 0.1892 0.9819 0.0010 +vn 0.2555 0.9668 0.0067 +vn 0.2075 0.9782 0.0025 +vn 0.1820 0.6706 0.7191 +vn 0.0370 0.9992 0.0108 +vn 0.0289 0.9996 0.0026 +vn -0.0169 0.9993 0.0338 +vn 0.0626 0.7184 -0.6928 +vn 0.4046 0.9126 0.0586 +vn 0.3290 0.9443 -0.0030 +vn 0.5247 0.8513 -0.0013 +vn 0.4689 0.8816 -0.0539 +vn 0.4198 0.9076 0.0017 +vn 0.4407 0.5727 -0.6912 +vn 0.5827 0.8126 0.0075 +vn 0.3207 0.9471 -0.0056 +vn 0.3153 -0.9487 -0.0221 +vn 0.2767 -0.9606 -0.0254 +vn 0.5061 -0.8501 0.1456 +vn 0.1933 -0.9811 -0.0016 +vn 0.0682 -0.9946 0.0786 +vn 0.0653 -0.9978 -0.0121 +vn 0.2192 -0.7005 0.6792 +vn 0.0728 -0.7159 0.6944 +vn -0.1936 -0.9810 0.0030 +vn -0.2149 -0.9766 0.0055 +vn -0.1044 -0.9945 -0.0058 +vn -0.0816 -0.9966 0.0115 +vn -0.2636 -0.9646 0.0113 +vn -0.2115 -0.9774 0.0011 +vn -0.2182 -0.9759 -0.0043 +vn -0.0917 -0.9958 -0.0039 +vn -0.0508 -0.9987 0.0036 +vn -0.0023 -0.9999 -0.0100 +vn 0.0183 -0.9998 -0.0046 +vn -0.4484 -0.8937 -0.0139 +vn -0.3518 -0.9360 0.0033 +vn -0.4307 -0.9025 0.0001 +vn -0.5367 -0.8437 0.0019 +vn -0.5536 -0.8327 0.0053 +vn -0.6070 -0.7945 -0.0172 +vn -0.5819 -0.8132 0.0085 +vn -0.5159 -0.8565 0.0165 +vn -0.4998 -0.8661 0.0088 +vn -0.4088 -0.9120 0.0332 +vn -0.2866 -0.9580 0.0011 +vn 0.6104 0.2025 -0.7657 +vn 0.4090 0.4972 -0.7651 +vn 0.1760 0.6353 -0.7519 +vn -0.1279 0.6332 -0.7633 +vn -0.3693 0.5507 -0.7485 +vn -0.5510 0.3783 -0.7438 +vn -0.6423 0.1264 -0.7559 +vn -0.6104 -0.2025 -0.7657 +vn -0.4090 -0.4972 -0.7651 +vn -0.1761 -0.6353 -0.7519 +vn 0.1279 -0.6332 -0.7633 +vn 0.3693 -0.5507 -0.7485 +vn 0.5510 -0.3783 -0.7438 +vn 0.6423 -0.1264 -0.7559 +vn -0.6812 0.2743 -0.6787 +vn -0.7328 0.0641 -0.6774 +vn 0.3276 0.6518 -0.6840 +vn -0.1957 0.7019 -0.6849 +vn -0.3804 0.6222 -0.6842 +vn 0.3262 -0.6593 -0.6774 +vn 0.1278 -0.7202 -0.6819 +vn 0.6595 -0.3265 -0.6770 +vn 0.7129 -0.1476 -0.6855 +vn 0.5591 0.4701 -0.6829 +vn -0.7210 -0.1387 -0.6789 +vn -0.3592 -0.6370 -0.6820 +vn -0.5370 -0.5019 -0.6780 +vn -0.5681 0.4733 -0.6732 +vn -0.0719 -0.7299 -0.6797 +vn 0.6579 0.3158 -0.6836 +vn 0.7102 0.1567 -0.6863 +vn 0.7266 0.0038 -0.6870 +vn -0.0397 0.7212 -0.6915 +vn -0.6565 -0.3284 -0.6790 +vn 0.5216 -0.5210 -0.6756 +vn 0.1741 0.6997 -0.6928 +vn -0.2166 -0.6855 -0.6951 +vn 0.4019 -0.6076 0.6850 +vn 0.5607 -0.4743 0.6786 +vn -0.6860 0.7275 0.0014 +vn -0.3561 0.6415 0.6794 +vn -0.7897 0.6134 -0.0047 +vn -0.2960 0.9526 0.0701 +vn 0.0679 0.7238 0.6866 +vn 0.2273 0.6986 0.6785 +vn 0.4921 0.5388 0.6837 +vn 0.3657 0.6314 0.6838 +vn -0.0149 -0.9998 0.0100 +vn -0.1654 -0.9862 0.0071 +vn -0.2951 -0.9554 0.0097 +vn -0.4232 -0.9060 0.0052 +vn -0.7163 -0.6977 0.0083 +vn -0.9725 -0.2326 0.0077 +vn -0.9996 0.0281 0.0075 +vn -0.9714 0.2372 0.0094 +vn -0.9293 0.3691 0.0126 +vn -0.8698 0.4934 0.0026 +vn 0.6112 0.3999 0.6830 +vn 0.6819 0.2486 0.6879 +vn 0.7240 0.0920 0.6836 +vn 0.7248 -0.1011 0.6814 +vn 0.6718 -0.2947 0.6796 +vn -0.8698 -0.4933 0.0076 +vn -0.5995 -0.6746 -0.4306 +vn -0.4057 -0.6741 -0.6172 +vn -0.6178 -0.6717 0.4088 +vn 0.4058 -0.6740 0.6173 +vn 0.1698 -0.6694 0.7232 +vn -0.1482 -0.6615 0.7352 +vn -0.1795 -0.6723 -0.7182 +vn 0.0816 -0.6698 -0.7380 +vn 0.5293 -0.6728 -0.5168 +vn 0.6723 -0.6760 -0.3015 +vn 0.7060 -0.6768 0.2084 +vn 0.3135 -0.6739 -0.6690 +vn 0.5993 -0.6768 0.4275 +vn -0.4283 -0.6701 0.6062 +vn -0.7373 -0.6654 0.1169 +vn -0.7114 -0.6752 -0.1948 +vn 0.7361 -0.6746 -0.0555 +vn 0.6182 0.7837 -0.0601 +vn 0.4905 0.5291 -0.6924 +vn 0.3850 0.6072 -0.6950 +vn 0.2723 0.6797 0.6810 +vn 0.4046 0.9135 -0.0419 +vn 0.2763 0.9590 -0.0625 +vn 0.1029 0.7075 -0.6991 +vn -0.1588 0.9857 -0.0567 +vn -0.0326 0.7183 0.6949 +vn -0.3205 0.9466 -0.0354 +vn -0.3525 0.6161 0.7043 +vn -0.6008 0.7971 -0.0598 +vn 0.1564 -0.7166 -0.6796 +vn 0.5798 -0.4460 -0.6818 +vn 0.6796 -0.2705 -0.6819 +vn 0.3317 -0.6554 -0.6785 +vn 0.4640 -0.5665 -0.6810 +vn 0.7224 -0.0969 -0.6846 +vn 0.7308 0.0568 -0.6802 +vn 0.6983 0.2085 -0.6847 +vn 0.5702 0.4375 -0.6953 +vn 0.6445 0.3431 -0.6833 +vn 0.9949 0.0545 -0.0843 +vn 0.7905 0.5865 -0.1763 +vn 0.9862 -0.0069 -0.1652 +vn 0.8999 -0.4342 -0.0414 +vn 0.9277 -0.3356 -0.1635 +vn 0.6915 0.7175 -0.0837 +vn 0.6398 0.7685 0.0030 +vn 0.9003 0.4306 -0.0631 +vn 0.9315 0.3278 -0.1574 +vn 0.9735 0.0672 -0.2185 +vn 0.7142 0.6830 -0.1531 +vn 0.6497 -0.7540 0.0968 +vn 0.6442 -0.7442 -0.1764 +vn 0.5354 -0.7449 -0.3980 +vn 0.3106 -0.7594 -0.5717 +vn 0.0548 -0.7497 -0.6595 +vn -0.1873 -0.7488 -0.6357 +vn -0.4287 -0.7570 -0.4930 +vn -0.6067 -0.7447 -0.2779 +vn -0.6666 -0.7437 -0.0504 +vn -0.6395 -0.7444 0.1921 +vn -0.5385 -0.7465 0.3908 +vn -0.3624 -0.7498 0.5536 +vn -0.0971 -0.7601 0.6425 +vn 0.1793 -0.7509 0.6355 +vn 0.4252 -0.7536 0.5013 +vn 0.5909 -0.7360 0.3303 +vn 0.9839 -0.1104 0.1400 +vn 0.7055 -0.6738 0.2194 +vn 0.7468 -0.6651 0.0034 +vn 0.3054 -0.2170 0.9272 +vn 0.1120 -0.6682 0.7355 +vn 0.3461 -0.6680 0.6587 +vn 0.6096 -0.6648 0.4316 +vn 0.7101 -0.0220 0.7038 +vn 0.4957 -0.7322 0.4670 +vn 0.4381 -0.6615 0.6086 +vn 0.1052 -0.7053 -0.7010 +vn 0.0107 -0.1734 -0.9848 +vn 0.1652 -0.1053 -0.9806 +vn 0.2854 -0.1922 -0.9389 +vn 0.7060 -0.0892 -0.7025 +vn 0.8063 -0.0513 -0.5892 +vn 0.5419 -0.7038 -0.4592 +vn 0.4618 -0.0839 -0.8830 +vn 0.2907 -0.7059 -0.6459 +vn 0.5566 -0.1752 -0.8121 +vn -0.0571 -0.7027 -0.7091 +vn 0.4610 -0.6973 -0.5488 +vn 0.6051 -0.7016 -0.3762 +vn 0.8887 -0.0923 -0.4491 +vn 0.6944 -0.6832 -0.2257 +vn 0.9481 0.0398 -0.3155 +vn 0.9813 -0.1046 -0.1613 +vn -0.1103 -0.6650 0.7386 +vn 0.0104 -0.2250 0.9743 +vn 0.7836 0.5640 0.2605 +vn 0.7205 0.6854 0.1051 +vn 0.4915 0.8635 0.1132 +vn 0.0167 0.5214 0.8531 +vn 0.1698 0.6300 0.7578 +vn 0.0808 0.8489 0.5223 +vn -0.0424 0.8319 0.5532 +vn -0.1259 0.4992 0.8573 +vn -0.2997 0.8416 0.4492 +vn -0.4796 0.6149 0.6260 +vn -0.3336 0.6348 0.6970 +vn -0.4665 0.8816 0.0710 +vn -0.6590 0.7521 0.0058 +vn -0.6986 0.7017 0.1396 +vn 0.2362 0.9252 0.2969 +vn 0.2684 0.9424 0.1994 +vn 0.1089 0.9546 0.2773 +vn 0.4096 0.8921 0.1907 +vn 0.4105 0.9079 0.0841 +vn 0.3912 0.8741 0.2881 +vn 0.6395 0.6594 0.3952 +vn 0.5179 0.6992 0.4927 +vn 0.3069 0.8646 0.3979 +vn 0.4084 0.6862 0.6019 +vn 0.2011 0.8724 0.4454 +vn 0.0698 0.9232 0.3778 +vn -0.1043 0.9381 0.3301 +vn -0.0399 0.9673 0.2502 +vn -0.2002 0.9557 0.2156 +vn -0.1765 0.8700 0.4604 +vn -0.0525 0.8962 0.4404 +vn -0.2527 0.9043 0.3439 +vn -0.3733 0.8668 0.3304 +vn -0.3064 0.9252 0.2238 +vn -0.4407 0.8757 0.1974 +vn -0.5868 0.7027 0.4021 +vn -0.6500 0.6971 0.3025 +vn 0.3034 0.6546 0.6924 +vn -0.3699 0.9217 0.1169 +vn -0.1997 0.6642 0.7204 +vn -0.5539 0.6395 0.5331 +vn 0.6917 0.7209 -0.0426 +vn 0.7813 0.6216 -0.0557 +vn 0.6180 0.7664 -0.1753 +vn 0.8701 0.4924 -0.0216 +vn 0.5125 0.8479 -0.1357 +vn 0.1161 0.9809 0.1562 +vn -0.0439 0.9879 0.1484 +vn -0.2873 0.9547 0.0770 +vn -0.6792 0.7295 -0.0804 +vn -0.4700 0.8826 0.0053 +vn -0.5656 0.8024 -0.1903 +vn -0.7956 0.5822 -0.1672 +vn -0.7146 0.6817 -0.1570 +vn -0.8180 0.5605 -0.1291 +vn -0.8081 0.5874 -0.0424 +vn -0.8862 0.4619 -0.0363 +vn -0.6505 0.7416 -0.1635 +vn -0.6868 0.7263 -0.0261 +vn -0.7143 0.6971 -0.0612 +vn -0.4836 0.8679 -0.1133 +vn -0.5322 0.8211 -0.2062 +vn -0.3292 0.9343 -0.1367 +vn -0.3533 0.9031 -0.2441 +vn -0.1511 0.9758 -0.1580 +vn -0.9909 0.0760 0.1107 +vn -0.1563 0.9510 -0.2669 +vn -0.4443 0.8649 -0.2336 +vn -0.1648 0.9827 0.0847 +vn -0.2386 0.9689 -0.0658 +vn -0.1235 0.9923 -0.0114 +vn -0.2944 0.9224 -0.2500 +vn -0.2270 0.9590 -0.1695 +vn -0.1489 0.9495 -0.2762 +vn 0.0613 0.9586 -0.2778 +vn 0.0487 0.9633 -0.2639 +vn -0.3785 0.9173 -0.1238 +vn -0.4032 0.8990 -0.1708 +vn -0.4892 0.8668 -0.0966 +vn -0.0021 0.9875 -0.1575 +vn 0.1866 0.9663 -0.1770 +vn 0.2531 0.9337 -0.2531 +vn -0.0032 0.9963 -0.0851 +vn -0.0423 0.9837 -0.1749 +vn -0.0502 0.9721 -0.2290 +vn 0.4289 0.9030 -0.0253 +vn 0.3737 0.9209 -0.1108 +vn 0.5341 0.8227 -0.1946 +vn 0.2765 0.9545 0.1115 +vn 0.2791 0.9602 0.0115 +vn 0.3905 0.9046 -0.1707 +vn 0.7911 0.5896 -0.1626 +vn 0.2116 0.9731 -0.0908 +vn 0.1170 0.9926 0.0302 +vn 0.4396 0.8667 -0.2358 +vn -0.0315 0.9982 0.0512 +vn 0.8768 0.4730 -0.0862 +vn 0.4968 0.8596 -0.1197 +vn 0.3328 0.9321 -0.1427 +vn 0.1531 0.9767 -0.1502 +vn -0.3817 0.9242 -0.0123 +vn 0.2535 0.9343 -0.2506 +vn 0.4454 0.8692 -0.2146 +vn -0.8165 -0.5754 0.0478 +vn -0.9866 0.1046 -0.1250 +vn -0.9870 -0.1569 0.0346 +vn -0.9554 -0.1218 0.2691 +vn -0.9329 -0.2433 0.2656 +vn -0.9848 0.1294 0.1154 +vn -0.9981 0.0377 -0.0474 +vn -0.9986 0.0094 0.0523 +vn -0.7927 -0.5806 0.1858 +vn -0.8323 -0.4875 0.2637 +vn 0.8271 -0.5509 0.1110 +vn 0.8995 -0.3237 0.2934 +vn 0.8872 -0.3075 0.3439 +vn 0.9849 0.0917 0.1465 +vn 0.9930 0.0743 0.0917 +vn 0.9985 0.0493 0.0230 +vn 0.8085 -0.5289 0.2579 +vn -0.0744 -0.9915 0.1068 +vn -0.2624 -0.9603 0.0947 +vn -0.3966 -0.9091 0.1272 +vn -0.5229 -0.8406 0.1412 +vn -0.6403 -0.7642 0.0779 +vn -0.7429 -0.6648 0.0780 +vn -0.8003 -0.5932 0.0877 +vn -0.9024 -0.4266 0.0607 +vn -0.9388 -0.3411 0.0464 +vn -0.9796 -0.1941 0.0514 +vn -0.9942 -0.0832 0.0676 +vn -0.9730 0.2265 0.0435 +vn 0.1184 -0.9861 0.1169 +vn 0.2813 -0.9488 0.1433 +vn 0.4078 -0.9014 0.1455 +vn 0.5469 -0.8293 0.1146 +vn 0.7038 -0.7041 0.0946 +vn 0.8134 -0.5754 0.0851 +vn 0.9504 -0.3061 0.0548 +vn 0.8917 -0.4491 0.0558 +vn 0.9795 -0.1881 0.0724 +vn 0.9980 -0.0482 0.0414 +vn 0.9866 0.1484 0.0678 +vn 0.7515 -0.6420 -0.1518 +vn 0.7815 -0.4917 -0.3839 +vn 0.7076 -0.1323 -0.6941 +vn 0.9063 -0.3099 -0.2873 +vn 0.6236 -0.2752 -0.7316 +vn 0.9884 0.1335 -0.0722 +vn 0.9092 -0.0235 -0.4155 +vn 0.7162 -0.3760 -0.5879 +vn 0.6271 -0.6240 -0.4661 +vn 0.5721 -0.5622 -0.5971 +vn 0.8409 -0.1455 -0.5212 +vn 0.6145 -0.7347 -0.2873 +vn 0.9305 0.0354 -0.3645 +vn -0.5992 -0.7075 -0.3745 +vn -0.5005 -0.7225 -0.4768 +vn -0.3762 -0.6801 -0.6293 +vn -0.6954 -0.6908 -0.1980 +vn -0.6594 -0.6711 0.3388 +vn -0.7388 -0.6643 0.1132 +vn -0.7456 -0.6663 0.0088 +vn -0.5038 -0.7273 0.4659 +vn -0.4440 -0.6625 0.6032 +vn 0.6593 -0.6713 0.3386 +vn -0.1938 -0.7008 -0.6865 +vn -0.2385 -0.6707 0.7023 +vn -0.3469 -0.6625 0.6639 +vn 0.9342 0.3443 0.0931 +vn -0.8981 0.4383 -0.0343 +vn -0.9170 0.3942 0.0604 +vn -0.8905 0.4000 0.2169 +vn -0.5103 0.3265 0.7956 +vn -0.3325 0.3475 0.8767 +vn 0.5645 0.3506 0.7472 +vn 0.6320 0.4154 0.6542 +vn 0.7464 0.3775 0.5481 +vn 0.3048 0.3634 0.8804 +vn -0.7632 0.3627 0.5347 +vn 0.8563 0.3369 0.3915 +vn 0.4721 0.3513 0.8085 +vn -0.6590 0.3000 0.6896 +vn 0.1383 0.3361 0.9316 +vn -0.8550 0.3560 0.3772 +vn -0.9108 0.3885 -0.1396 +vn -0.9285 0.3197 -0.1888 +vn -0.9493 -0.2488 -0.1917 +vn -0.9168 -0.3931 -0.0694 +vn -0.9267 0.3697 0.0670 +vn -0.8668 0.4962 0.0483 +vn 0.9634 0.1792 0.1993 +vn 0.9406 0.3318 0.0712 +vn -0.9399 0.3129 0.1366 +vn -0.4450 -0.8855 0.1334 +vn -0.6356 -0.7656 0.0984 +vn -0.6056 -0.7672 0.2111 +vn -0.2055 -0.8566 0.4732 +vn -0.3710 -0.8880 0.2714 +vn -0.3913 -0.8369 0.3825 +vn 0.7103 -0.7032 0.0302 +vn 0.8025 0.5965 -0.0154 +vn 0.0340 -0.5319 0.8461 +vn -0.0309 -0.6734 0.7386 +vn 0.1333 -0.6665 0.7335 +vn 0.1892 -0.5196 0.8332 +vn 0.2883 -0.6347 0.7169 +vn 0.3417 -0.4714 0.8130 +vn 0.9922 -0.0014 0.1240 +vn 0.7915 -0.3887 0.4716 +vn 0.8698 -0.2632 0.4173 +vn 0.6873 -0.3231 0.6505 +vn 0.8700 -0.1138 0.4797 +vn 0.7622 -0.2220 0.6081 +vn 0.8724 0.4837 0.0706 +vn 0.9589 0.1682 0.2286 +vn 0.3806 -0.3625 0.8507 +vn 0.2358 -0.3848 0.8924 +vn 0.4596 -0.5627 0.6871 +vn 0.5234 -0.4020 0.7513 +vn 0.5485 -0.2738 0.7901 +vn 0.4186 -0.3341 0.8445 +vn 0.7159 -0.1276 0.6864 +vn 0.5484 -0.2943 0.7827 +vn 0.9161 0.1398 0.3757 +vn 0.9165 0.3305 0.2253 +vn 0.8981 0.3821 0.2177 +vn 0.8871 0.4559 0.0712 +vn 0.9558 0.0011 0.2940 +vn 0.8746 0.0466 0.4826 +vn 0.6206 -0.3490 0.7022 +vn 0.6974 -0.1223 0.7062 +vn 0.7628 -0.1422 0.6308 +vn 0.8325 0.0097 0.5540 +vn 0.9615 -0.1130 0.2505 +vn 0.8986 0.1874 0.3968 +vn 0.9387 0.0260 0.3437 +vn 0.8502 -0.1293 0.5102 +vn 0.2626 -0.4801 0.8369 +vn 0.2985 -0.3706 0.8795 +vn 0.1854 -0.6855 0.7040 +vn 0.3414 -0.5908 0.7310 +vn 0.3486 -0.7202 0.5997 +vn 0.5452 -0.5915 0.5940 +vn 0.7606 -0.4191 0.4957 +vn 0.9349 -0.0996 0.3405 +vn 0.1565 -0.8843 0.4399 +vn 0.3237 -0.8074 0.4932 +vn 0.2725 -0.8990 0.3428 +vn 0.4517 -0.7924 0.4099 +vn 0.4755 -0.8594 0.1880 +vn 0.5864 -0.7624 0.2737 +vn 0.6546 -0.7353 0.1755 +vn 0.6813 -0.6078 0.4079 +vn -0.6942 -0.2984 0.6550 +vn -0.5327 -0.3410 0.7746 +vn -0.5414 -0.4931 0.6810 +vn -0.6751 -0.1787 0.7157 +vn -0.8198 -0.3952 0.4144 +vn -0.6089 -0.6072 0.5104 +vn -0.6583 -0.6424 0.3922 +vn -0.7255 -0.4196 0.5455 +vn -0.8217 -0.1776 0.5414 +vn -0.1480 -0.4087 0.9006 +vn 0.0234 -0.4069 0.9131 +vn 0.0268 -0.5035 0.8636 +vn 0.1638 -0.3966 0.9033 +vn 0.4653 -0.4662 0.7525 +vn 0.6989 -0.3731 0.6101 +vn -0.1955 -0.4924 0.8481 +vn -0.0893 -0.6024 0.7932 +vn 0.1382 -0.5949 0.7918 +vn -0.2543 -0.7061 0.6608 +vn -0.4192 -0.6368 0.6471 +vn -0.3313 -0.5562 0.7621 +vn -0.3181 -0.3637 0.8755 +vn -0.0357 -0.6987 0.7145 +vn -0.3845 -0.3950 0.8343 +vn -0.6169 -0.7202 0.3173 +vn -0.4494 -0.7410 0.4990 +vn 0.1511 -0.7911 0.5927 +vn -0.0648 -0.8301 0.5538 +vn 0.0433 -0.8667 0.4969 +vn -0.8509 0.5237 0.0420 +vn -0.9955 0.0633 0.0702 +vn -0.9833 0.1057 0.1481 +vn -0.9648 -0.0925 0.2461 +vn -0.9474 -0.2437 0.2073 +vn -0.9536 0.0602 0.2948 +vn -0.9464 0.2424 0.2132 +vn -0.7683 -0.0779 0.6353 +vn -0.8805 0.0635 0.4697 +vn -0.8769 -0.0891 0.4722 +vn -0.9049 0.3711 0.2083 +vn -0.8996 0.3773 0.2198 +vn -0.8824 0.1762 0.4362 +vn -0.9690 0.1287 0.2109 +vn -0.9254 -0.0587 0.3743 +vn -0.9374 0.1610 0.3086 +vn -0.8853 -0.1715 0.4322 +vn -0.8806 0.0472 0.4714 +vn -0.8021 -0.1029 0.5882 +vn -0.6752 -0.1834 0.7144 +vn -0.7742 -0.2063 0.5983 +vn -0.8788 -0.2449 0.4096 +vn -0.8982 0.2019 0.3905 +vn -0.8108 0.0333 0.5844 +vn -0.4949 -0.2617 0.8285 +vn -0.8519 -0.4872 0.1921 +vn -0.8973 -0.3717 0.2379 +vn -0.7062 -0.6378 0.3074 +vn -0.7497 -0.5178 0.4121 +vn -0.8315 -0.3891 0.3963 +vn -0.6213 -0.7348 0.2721 +vn -0.7317 -0.3976 0.5536 +vn -0.7028 -0.2987 0.6456 +vn -0.5489 -0.2829 0.7866 +vn -0.2238 -0.9442 0.2417 +vn -0.1124 -0.9078 0.4041 +vn -0.2564 -0.8840 0.3908 +vn 0.8345 -0.5134 0.1997 +vn -0.0041 -0.9529 0.3033 +vn -0.3493 -0.7471 0.5655 +vn -0.2020 -0.6531 0.7298 +vn -0.3900 -0.6232 0.6778 +vn -0.3683 -0.5323 0.7623 +vn 0.9442 -0.2487 0.2157 +vn 0.8934 -0.3829 0.2347 +vn 0.7082 -0.6323 0.3139 +vn 0.6395 -0.7285 0.2453 +vn 0.5329 -0.7712 0.3482 +vn 0.1690 -0.9281 0.3318 +vn -0.1140 -0.8018 0.5866 +vn -0.2809 -0.8165 0.5043 +vn -0.2517 -0.4913 0.8338 +vn 0.1070 -0.7905 0.6030 +vn 0.7682 -0.4969 0.4035 +vn 0.3364 -0.8610 0.3814 +vn 0.0797 -0.8789 0.4703 +vn -0.1133 -0.5292 0.8409 +vn 0.4211 -0.7217 0.5494 +vn 0.5970 -0.6141 0.5162 +vn -0.3872 -0.3723 0.8435 +vn -0.4314 -0.8353 0.3407 +vn -0.4869 -0.4708 0.7357 +vn -0.5111 -0.6957 0.5048 +vn -0.2177 -0.3904 0.8945 +vn -0.5837 -0.4093 0.7012 +vn -0.5803 -0.5780 0.5737 +vn 0.2603 -0.7812 0.5673 +vn -0.0938 -0.4306 0.8976 +vn 0.1183 -0.4084 0.9051 +vn 0.0272 -0.4308 0.9020 +vn -0.0542 -0.3764 0.9249 +vn 0.6186 -0.4750 0.6258 +vn 0.4344 -0.8363 -0.3344 +vn 0.3887 -0.6673 -0.6353 +vn 0.2527 -0.8921 -0.3744 +vn 0.3331 -0.3005 -0.8937 +vn 0.5025 -0.2721 -0.8206 +vn 0.2484 -0.9483 0.1975 +vn 0.1408 -0.9842 -0.1071 +vn 0.1578 -0.9861 0.0529 +vn 0.3665 -0.9290 -0.0504 +vn 0.0747 -0.9871 0.1413 +vn 0.0034 -0.9651 0.2619 +vn -0.0353 -0.9425 0.3322 +vn 0.2625 -0.7044 -0.6594 +vn 0.1887 -0.5096 -0.8394 +vn 0.0629 -0.9507 -0.3037 +vn -0.0010 -0.9930 -0.1177 +vn -0.0177 -0.9972 -0.0727 +vn 0.0333 -0.9612 -0.2739 +vn 0.0189 -0.9408 -0.3384 +vn -0.0079 -0.4663 -0.8846 +vn -0.0018 -0.8519 -0.5237 +vn 0.0120 -0.9787 -0.2048 +vn 0.0133 -0.9999 -0.0009 +vn -0.0048 -0.9976 0.0692 +vn -0.0173 -0.9034 0.4284 +vn 0.5466 -0.8347 -0.0670 +vn 0.3682 -0.9260 0.0831 +vn -0.9415 0.0040 -0.3369 +vn -0.9823 -0.1107 -0.1510 +vn -0.8970 -0.1018 -0.4301 +vn -0.8086 -0.0889 -0.5816 +vn -0.7114 -0.0520 -0.7009 +vn -0.3270 -0.1827 -0.9272 +vn -0.1672 -0.1634 -0.9723 +vn -0.5920 -0.1010 -0.7996 +vn -0.4234 -0.1442 -0.8944 +vn -0.7041 -0.0251 0.7096 +vn -0.8137 -0.0962 0.5732 +vn -0.9257 -0.2203 0.3074 +vn -0.2745 0.1071 0.9556 +vn -0.9694 0.1273 0.2098 +vn -0.0101 0.1118 0.9937 +vn 0.2131 0.1118 0.9706 +vn 0.4576 0.1139 0.8818 +vn 0.9789 0.1543 0.1335 +vn 0.7007 0.1131 0.7044 +vn 0.8570 0.1137 0.5027 +vn 0.9430 0.1052 0.3158 +vn -0.9917 0.1166 0.0547 +vn -0.9017 0.1202 0.4153 +vn -0.7052 0.1192 0.6989 +vn -0.5036 0.1093 0.8570 +vn -0.9860 0.1365 -0.0953 +vn -0.9555 0.0157 -0.2944 +vn -0.9600 0.0953 -0.2631 +vn -0.9097 -0.0211 -0.4148 +vn -0.8964 -0.2184 -0.3856 +vn -0.9554 -0.1401 -0.2600 +vn -0.6235 -0.6599 -0.4192 +vn -0.7185 -0.3806 -0.5821 +vn -0.7440 -0.5697 -0.3490 +vn -0.6094 -0.4824 -0.6291 +vn -0.8297 -0.1900 -0.5248 +vn -0.6201 -0.2281 -0.7506 +vn -0.7338 -0.1020 -0.6717 +vn -0.7591 -0.6452 -0.0861 +vn -0.8558 -0.4450 -0.2636 +vn -0.1599 -0.9296 0.3320 +vn -0.6036 -0.7954 0.0547 +vn -0.5241 -0.8442 -0.1123 +vn -0.4490 -0.6185 -0.6449 +vn -0.4497 -0.2188 -0.8659 +vn -0.3815 -0.8965 -0.2253 +vn -0.4328 -0.8129 -0.3896 +vn -0.2367 -0.9703 0.0501 +vn -0.3071 -0.8849 -0.3501 +vn -0.1577 -0.9726 -0.1706 +vn -0.1222 -0.9918 0.0379 +vn -0.1933 -0.9627 -0.1890 +vn -0.2621 -0.7125 -0.6509 +vn -0.0346 -0.9869 0.1573 +vn -0.1075 -0.6809 -0.7244 +vn -0.3744 -0.4256 -0.8238 +vn -0.0182 -0.9097 -0.4147 +vn -0.0591 -0.7799 -0.6231 +vn -0.2904 -0.9417 0.1698 +usemtl None +s 1 +f 1//1 2//2 3//3 +f 3//3 2//2 4//4 +f 5//5 6//6 7//7 +f 8//8 9//9 10//10 +f 10//10 9//9 11//11 +f 12//12 10//10 13//13 +f 14//14 12//12 15//15 +f 10//10 16//16 8//8 +f 8//8 16//16 17//17 +f 12//12 14//14 18//18 +f 12//12 19//19 10//10 +f 11//11 13//13 10//10 +f 20//20 14//14 15//15 +f 18//18 19//19 12//12 +f 15//15 21//21 20//20 +f 22//22 23//23 3//3 +f 22//22 3//3 4//4 +f 4//4 2//2 24//24 +f 24//24 2//2 23//23 +f 23//23 2//2 1//1 +f 23//23 1//1 3//3 +f 24//24 25//25 4//4 +f 26//26 6//6 27//27 +f 28//28 29//29 7//7 +f 29//29 27//27 5//5 +f 5//5 27//27 6//6 +f 29//29 5//5 7//7 +f 30//30 31//31 32//32 +f 33//33 34//34 31//31 +f 31//31 30//30 35//35 +f 26//26 31//31 34//34 +f 36//36 33//33 35//35 +f 35//35 33//33 31//31 +f 37//37 33//33 36//36 +f 38//38 39//39 40//40 +f 39//39 38//38 41//41 +f 42//42 43//43 38//38 +f 38//38 43//43 41//41 +f 44//44 45//45 46//46 +f 47//47 46//46 45//45 +f 48//48 49//49 50//50 +f 50//50 49//49 51//51 +f 51//51 52//52 50//50 +f 53//53 50//50 54//54 +f 52//52 51//51 55//55 +f 56//56 57//57 58//58 +f 59//59 60//60 57//57 +f 57//57 60//60 25//25 +f 57//57 56//56 59//59 +f 59//59 61//61 60//60 +f 59//59 62//62 63//63 +f 61//61 59//59 63//63 +f 64//64 65//65 66//66 +f 66//66 65//65 67//67 +f 64//64 68//68 65//65 +f 64//64 69//69 68//68 +f 70//70 71//71 64//64 +f 64//64 71//71 69//69 +f 72//72 73//73 74//74 +f 73//73 72//72 66//66 +f 73//73 66//66 67//67 +f 75//75 76//76 77//77 +f 78//78 79//79 80//80 +f 80//80 79//79 81//81 +f 82//82 81//81 79//79 +f 83//83 84//84 85//85 +f 83//83 85//85 75//75 +f 83//83 75//75 82//82 +f 83//83 82//82 79//79 +f 82//82 75//75 77//77 +f 86//86 13//13 87//87 +f 87//87 13//13 11//11 +f 9//9 88//88 87//87 +f 87//87 11//11 9//9 +f 9//9 89//89 88//88 +f 89//89 9//9 8//8 +f 17//17 90//90 89//89 +f 89//89 8//8 17//17 +f 17//17 91//91 90//90 +f 91//91 17//17 16//16 +f 91//91 16//16 92//92 +f 92//92 16//16 10//10 +f 92//92 10//10 93//93 +f 93//93 10//10 19//19 +f 93//93 19//19 94//94 +f 94//94 19//19 18//18 +f 14//14 95//95 94//94 +f 94//94 18//18 14//14 +f 14//14 96//96 95//95 +f 96//96 14//14 20//20 +f 21//21 97//97 96//96 +f 96//96 20//20 21//21 +f 21//21 98//98 97//97 +f 98//98 21//21 15//15 +f 98//98 15//15 99//99 +f 99//99 15//15 12//12 +f 99//99 12//12 86//86 +f 86//86 12//12 13//13 +f 100//100 92//92 101//101 +f 87//87 102//102 53//53 +f 103//103 89//89 104//104 +f 93//93 101//101 92//92 +f 96//96 105//105 106//106 +f 97//97 105//105 96//96 +f 99//99 107//107 98//98 +f 107//107 99//99 108//108 +f 87//87 53//53 109//109 +f 93//93 110//110 101//101 +f 94//94 111//111 112//112 +f 102//102 87//87 88//88 +f 92//92 100//100 91//91 +f 91//91 100//100 113//113 +f 95//95 111//111 94//94 +f 96//96 106//106 114//114 +f 86//86 109//109 115//115 +f 86//86 87//87 109//109 +f 116//116 117//117 86//86 +f 86//86 117//117 99//99 +f 99//99 117//117 108//108 +f 47//47 89//89 118//118 +f 118//118 89//89 103//103 +f 90//90 104//104 89//89 +f 94//94 112//112 119//119 +f 94//94 119//119 93//93 +f 96//96 114//114 95//95 +f 97//97 98//98 120//120 +f 120//120 98//98 107//107 +f 89//89 47//47 88//88 +f 88//88 47//47 121//121 +f 88//88 121//121 102//102 +f 91//91 113//113 90//90 +f 90//90 113//113 104//104 +f 93//93 119//119 110//110 +f 95//95 114//114 122//122 +f 95//95 122//122 111//111 +f 97//97 120//120 105//105 +f 86//86 115//115 116//116 +f 123//123 62//62 24//24 +f 24//24 62//62 58//58 +f 124//124 123//123 23//23 +f 124//124 23//23 22//22 +f 22//22 120//120 124//124 +f 25//25 105//105 4//4 +f 4//4 105//105 120//120 +f 4//4 120//120 22//22 +f 123//123 24//24 23//23 +f 29//29 125//125 126//126 +f 28//28 113//113 127//127 +f 28//28 127//127 125//125 +f 28//28 125//125 29//29 +f 126//126 26//26 27//27 +f 126//126 27//27 29//29 +f 128//128 30//30 126//126 +f 126//126 30//30 32//32 +f 126//126 32//32 26//26 +f 104//104 6//6 26//26 +f 26//26 103//103 104//104 +f 28//28 104//104 113//113 +f 28//28 7//7 104//104 +f 104//104 7//7 6//6 +f 103//103 33//33 37//37 +f 103//103 37//37 118//118 +f 37//37 36//36 118//118 +f 33//33 103//103 34//34 +f 34//34 103//103 26//26 +f 26//26 32//32 31//31 +f 30//30 128//128 35//35 +f 35//35 128//128 36//36 +f 129//129 47//47 45//45 +f 45//45 44//44 129//129 +f 129//129 44//44 36//36 +f 44//44 46//46 36//36 +f 36//36 46//46 118//118 +f 118//118 46//46 47//47 +f 129//129 42//42 38//38 +f 38//38 40//40 129//129 +f 129//129 40//40 47//47 +f 49//49 39//39 41//41 +f 129//129 130//130 42//42 +f 42//42 130//130 55//55 +f 42//42 55//55 43//43 +f 43//43 55//55 41//41 +f 47//47 40//40 121//121 +f 121//121 40//40 39//39 +f 53//53 102//102 50//50 +f 53//53 54//54 131//131 +f 131//131 54//54 132//132 +f 132//132 54//54 50//50 +f 121//121 39//39 49//49 +f 121//121 49//49 102//102 +f 102//102 49//49 48//48 +f 102//102 48//48 50//50 +f 41//41 55//55 49//49 +f 49//49 55//55 51//51 +f 52//52 132//132 50//50 +f 132//132 52//52 130//130 +f 130//130 52//52 55//55 +f 106//106 61//61 114//114 +f 74//74 63//63 133//133 +f 74//74 133//133 72//72 +f 63//63 74//74 61//61 +f 61//61 74//74 73//73 +f 73//73 114//114 61//61 +f 61//61 106//106 60//60 +f 105//105 25//25 106//106 +f 106//106 25//25 60//60 +f 57//57 25//25 58//58 +f 58//58 25//25 24//24 +f 62//62 59//59 56//56 +f 62//62 56//56 58//58 +f 64//64 66//66 134//134 +f 66//66 72//72 134//134 +f 72//72 133//133 134//134 +f 114//114 65//65 122//122 +f 122//122 65//65 68//68 +f 122//122 68//68 69//69 +f 122//122 69//69 135//135 +f 69//69 71//71 135//135 +f 135//135 71//71 70//70 +f 135//135 70//70 134//134 +f 134//134 70//70 64//64 +f 114//114 73//73 67//67 +f 114//114 67//67 65//65 +f 85//85 76//76 75//75 +f 82//82 77//77 136//136 +f 82//82 136//136 81//81 +f 81//81 137//137 80//80 +f 136//136 77//77 135//135 +f 135//135 77//77 76//76 +f 135//135 76//76 122//122 +f 122//122 76//76 85//85 +f 122//122 85//85 111//111 +f 111//111 85//85 84//84 +f 111//111 84//84 78//78 +f 83//83 79//79 78//78 +f 83//83 78//78 84//84 +f 80//80 111//111 78//78 +f 110//110 138//138 139//139 +f 110//110 139//139 101//101 +f 101//101 139//139 140//140 +f 101//101 140//140 100//100 +f 141//141 100//100 140//140 +f 100//100 141//141 142//142 +f 100//100 142//142 113//113 +f 127//127 113//113 142//142 +f 131//131 109//109 53//53 +f 109//109 131//131 143//143 +f 143//143 115//115 109//109 +f 115//115 143//143 144//144 +f 145//145 116//116 144//144 +f 116//116 115//115 144//144 +f 145//145 117//117 116//116 +f 117//117 145//145 146//146 +f 146//146 108//108 117//117 +f 108//108 146//146 147//147 +f 108//108 147//147 107//107 +f 107//107 147//147 124//124 +f 124//124 120//120 107//107 +f 137//137 112//112 80//80 +f 80//80 112//112 111//111 +f 112//112 137//137 148//148 +f 112//112 148//148 119//119 +f 119//119 148//148 138//138 +f 119//119 138//138 110//110 +f 149//149 150//150 151//151 +f 152//152 153//153 150//150 +f 150//150 153//153 154//154 +f 150//150 155//155 152//152 +f 152//152 155//155 156//156 +f 157//157 158//158 159//159 +f 152//152 160//160 161//161 +f 150//150 154//154 162//162 +f 151//151 163//163 164//164 +f 152//152 156//156 160//160 +f 161//161 160//160 159//159 +f 159//159 160//160 157//157 +f 150//150 162//162 151//151 +f 151//151 164//164 149//149 +f 158//158 165//165 159//159 +f 166//166 167//167 168//168 +f 169//169 170//170 168//168 +f 171//171 170//170 169//169 +f 172//172 171//171 169//169 +f 128//128 173//173 174//174 +f 128//128 175//175 173//173 +f 176//176 175//175 128//128 +f 125//125 177//177 176//176 +f 174//174 129//129 36//36 +f 174//174 169//169 129//129 +f 129//129 169//169 130//130 +f 146//146 169//169 147//147 +f 147//147 169//169 124//124 +f 169//169 133//133 63//63 +f 169//169 63//63 62//62 +f 130//130 169//169 132//132 +f 132//132 169//169 131//131 +f 131//131 169//169 143//143 +f 143//143 169//169 144//144 +f 124//124 169//169 123//123 +f 123//123 169//169 62//62 +f 144//144 169//169 145//145 +f 145//145 169//169 146//146 +f 126//126 125//125 176//176 +f 126//126 176//176 128//128 +f 36//36 128//128 174//174 +f 133//133 169//169 178//178 +f 179//179 169//169 180//180 +f 178//178 169//169 181//181 +f 181//181 169//169 182//182 +f 182//182 169//169 179//179 +f 180//180 169//169 183//183 +f 183//183 169//169 184//184 +f 184//184 169//169 185//185 +f 169//169 174//174 172//172 +f 169//169 167//167 186//186 +f 169//169 186//186 187//187 +f 169//169 187//187 185//185 +f 168//168 167//167 169//169 +f 188//188 189//189 190//190 +f 188//188 190//190 191//191 +f 192//192 191//191 190//190 +f 193//193 194//194 195//195 +f 196//196 193//193 195//195 +f 197//197 190//190 196//196 +f 190//190 197//197 192//192 +f 189//189 198//198 196//196 +f 189//189 196//196 190//190 +f 198//198 193//193 196//196 +f 199//199 165//165 200//200 +f 200//200 165//165 158//158 +f 200//200 158//158 201//201 +f 201//201 158//158 157//157 +f 201//201 157//157 202//202 +f 202//202 157//157 160//160 +f 202//202 160//160 156//156 +f 202//202 156//156 203//203 +f 203//203 156//156 155//155 +f 203//203 155//155 204//204 +f 204//204 155//155 150//150 +f 204//204 150//150 205//205 +f 205//205 150//150 149//149 +f 205//205 149//149 206//206 +f 206//206 149//149 164//164 +f 206//206 164//164 207//207 +f 207//207 164//164 163//163 +f 207//207 163//163 208//208 +f 208//208 163//163 151//151 +f 208//208 151//151 209//209 +f 209//209 151//151 162//162 +f 209//209 162//162 210//210 +f 210//210 162//162 154//154 +f 210//210 154//154 211//211 +f 211//211 154//154 153//153 +f 211//211 153//153 212//212 +f 212//212 153//153 152//152 +f 212//212 152//152 213//213 +f 213//213 152//152 161//161 +f 213//213 161//161 214//214 +f 214//214 161//161 159//159 +f 214//214 159//159 199//199 +f 199//199 159//159 165//165 +f 215//215 216//216 217//217 +f 218//218 219//219 220//220 +f 221//221 222//222 223//223 +f 222//222 224//224 223//223 +f 225//225 226//226 227//227 +f 227//227 228//228 225//225 +f 229//229 230//230 231//231 +f 228//228 232//232 233//233 +f 233//233 232//232 234//234 +f 226//226 225//225 235//235 +f 233//233 225//225 228//228 +f 234//234 229//229 236//236 +f 237//237 230//230 238//238 +f 231//231 230//230 237//237 +f 229//229 231//231 236//236 +f 239//239 237//237 238//238 +f 238//238 240//240 239//239 +f 240//240 241//241 239//239 +f 234//234 236//236 233//233 +f 242//242 219//219 243//243 +f 239//239 241//241 217//217 +f 244//244 245//245 246//246 +f 247//247 248//248 249//249 +f 247//247 250//250 251//251 +f 252//252 253//253 254//254 +f 255//255 256//256 257//257 +f 258//258 259//259 260//260 +f 194//194 246//246 245//245 +f 261//261 244//244 246//246 +f 261//261 246//246 262//262 +f 263//263 264//264 261//261 +f 263//263 261//261 259//259 +f 265//265 264//264 263//263 +f 265//265 263//263 266//266 +f 266//266 263//263 258//258 +f 267//267 265//265 266//266 +f 268//268 266//266 258//258 +f 268//268 258//258 269//269 +f 269//269 258//258 260//260 +f 267//267 266//266 268//268 +f 270//270 271//271 272//272 +f 273//273 274//274 270//270 +f 273//273 270//270 275//275 +f 276//276 275//275 277//277 +f 276//276 277//277 278//278 +f 247//247 249//249 250//250 +f 252//252 273//273 275//275 +f 252//252 275//275 276//276 +f 279//279 276//276 278//278 +f 279//279 278//278 280//280 +f 264//264 244//244 261//261 +f 258//258 263//263 259//259 +f 269//269 260//260 270//270 +f 270//270 260//260 271//271 +f 281//281 267//267 268//268 +f 281//281 268//268 249//249 +f 249//249 268//268 269//269 +f 249//249 269//269 274//274 +f 274//274 269//269 270//270 +f 275//275 270//270 272//272 +f 275//275 272//272 277//277 +f 278//278 277//277 282//282 +f 278//278 255//255 257//257 +f 248//248 281//281 249//249 +f 250//250 249//249 274//274 +f 250//250 274//274 273//273 +f 280//280 278//278 257//257 +f 251//251 250//250 283//283 +f 283//283 250//250 273//273 +f 283//283 273//273 254//254 +f 254//254 273//273 252//252 +f 253//253 252//252 284//284 +f 284//284 252//252 276//276 +f 284//284 276//276 279//279 +f 167//167 166//166 285//285 +f 286//286 285//285 166//166 +f 287//287 288//288 286//286 +f 193//193 198//198 289//289 +f 259//259 261//261 262//262 +f 259//259 290//290 260//260 +f 271//271 260//260 290//290 +f 291//291 272//272 271//271 +f 292//292 282//282 277//277 +f 293//293 256//256 294//294 +f 294//294 256//256 255//255 +f 295//295 296//296 297//297 +f 298//298 296//296 295//295 +f 299//299 300//300 301//301 +f 302//302 303//303 177//177 +f 302//302 177//177 125//125 +f 303//303 299//299 177//177 +f 177//177 299//299 301//301 +f 177//177 301//301 304//304 +f 305//305 304//304 301//301 +f 306//306 304//304 305//305 +f 307//307 306//306 305//305 +f 308//308 306//306 307//307 +f 305//305 301//301 298//298 +f 298//298 301//301 300//300 +f 298//298 300//300 309//309 +f 310//310 308//308 307//307 +f 307//307 305//305 311//311 +f 292//292 272//272 312//312 +f 292//292 312//312 313//313 +f 313//313 312//312 314//314 +f 315//315 316//316 317//317 +f 317//317 318//318 319//319 +f 277//277 272//272 292//292 +f 320//320 313//313 321//321 +f 321//321 313//313 316//316 +f 321//321 316//316 311//311 +f 311//311 316//316 315//315 +f 322//322 297//297 293//293 +f 322//322 293//293 294//294 +f 323//323 308//308 310//310 +f 311//311 305//305 295//295 +f 295//295 305//305 298//298 +f 322//322 295//295 297//297 +f 324//324 325//325 318//318 +f 326//326 324//324 327//327 +f 327//327 324//324 318//318 +f 327//327 318//318 328//328 +f 262//262 246//246 194//194 +f 262//262 194//194 329//329 +f 329//329 194//194 193//193 +f 329//329 193//193 289//289 +f 189//189 289//289 198//198 +f 330//330 329//329 289//289 +f 330//330 289//289 331//331 +f 331//331 289//289 189//189 +f 332//332 259//259 262//262 +f 332//332 262//262 333//333 +f 333//333 262//262 329//329 +f 333//333 329//329 330//330 +f 334//334 330//330 331//331 +f 331//331 189//189 335//335 +f 336//336 333//333 330//330 +f 336//336 330//330 334//334 +f 290//290 259//259 332//332 +f 290//290 332//332 337//337 +f 337//337 332//332 333//333 +f 337//337 333//333 336//336 +f 324//324 336//336 334//334 +f 338//338 334//334 331//331 +f 334//334 338//338 324//324 +f 336//336 324//324 326//326 +f 336//336 326//326 337//337 +f 338//338 325//325 324//324 +f 337//337 326//326 339//339 +f 337//337 339//339 291//291 +f 337//337 291//291 290//290 +f 290//290 291//291 271//271 +f 287//287 335//335 340//340 +f 287//287 340//340 288//288 +f 166//166 168//168 341//341 +f 341//341 168//168 170//170 +f 341//341 170//170 342//342 +f 342//342 170//170 171//171 +f 342//342 171//171 172//172 +f 342//342 172//172 343//343 +f 343//343 172//172 174//174 +f 343//343 174//174 323//323 +f 323//323 174//174 173//173 +f 323//323 173//173 308//308 +f 308//308 173//173 175//175 +f 308//308 175//175 306//306 +f 306//306 175//175 176//176 +f 306//306 176//176 304//304 +f 304//304 176//176 177//177 +f 255//255 278//278 282//282 +f 255//255 282//282 294//294 +f 294//294 282//282 344//344 +f 294//294 344//344 322//322 +f 322//322 344//344 320//320 +f 322//322 320//320 295//295 +f 295//295 320//320 321//321 +f 295//295 321//321 311//311 +f 311//311 315//315 307//307 +f 307//307 315//315 310//310 +f 310//310 319//319 323//323 +f 323//323 319//319 343//343 +f 343//343 319//319 345//345 +f 343//343 345//345 342//342 +f 342//342 345//345 346//346 +f 342//342 346//346 341//341 +f 341//341 346//346 287//287 +f 341//341 287//287 166//166 +f 166//166 287//287 286//286 +f 287//287 346//346 338//338 +f 338//338 346//346 345//345 +f 338//338 345//345 325//325 +f 272//272 291//291 312//312 +f 312//312 291//291 339//339 +f 312//312 339//339 314//314 +f 313//313 314//314 326//326 +f 313//313 326//326 316//316 +f 316//316 326//326 327//327 +f 316//316 327//327 317//317 +f 317//317 327//327 328//328 +f 317//317 328//328 318//318 +f 319//319 318//318 345//345 +f 345//345 318//318 325//325 +f 282//282 292//292 344//344 +f 344//344 292//292 313//313 +f 344//344 313//313 320//320 +f 315//315 317//317 310//310 +f 310//310 317//317 319//319 +f 314//314 339//339 326//326 +f 338//338 331//331 287//287 +f 287//287 331//331 335//335 +f 347//347 348//348 349//349 +f 350//350 351//351 352//352 +f 348//348 353//353 349//349 +f 349//349 353//353 354//354 +f 351//351 309//309 352//352 +f 349//349 355//355 347//347 +f 296//296 298//298 353//353 +f 353//353 298//298 354//354 +f 354//354 298//298 309//309 +f 300//300 352//352 309//309 +f 309//309 351//351 356//356 +f 309//309 356//356 354//354 +f 354//354 356//356 355//355 +f 354//354 355//355 349//349 +f 188//188 191//191 357//357 +f 358//358 359//359 360//360 +f 361//361 340//340 362//362 +f 362//362 340//340 335//335 +f 188//188 362//362 335//335 +f 188//188 335//335 189//189 +f 363//363 358//358 361//361 +f 357//357 362//362 188//188 +f 361//361 360//360 288//288 +f 357//357 363//363 362//362 +f 358//358 360//360 361//361 +f 362//362 363//363 361//361 +f 340//340 361//361 288//288 +f 364//364 134//134 133//133 +f 134//134 364//364 365//365 +f 134//134 365//365 135//135 +f 135//135 365//365 366//366 +f 135//135 366//366 136//136 +f 367//367 81//81 136//136 +f 367//367 136//136 366//366 +f 81//81 367//367 368//368 +f 81//81 368//368 137//137 +f 137//137 368//368 369//369 +f 370//370 148//148 369//369 +f 369//369 148//148 137//137 +f 370//370 371//371 148//148 +f 148//148 371//371 138//138 +f 371//371 372//372 138//138 +f 138//138 372//372 373//373 +f 138//138 373//373 139//139 +f 139//139 373//373 374//374 +f 375//375 140//140 139//139 +f 375//375 141//141 140//140 +f 125//125 127//127 302//302 +f 364//364 133//133 376//376 +f 376//376 133//133 178//178 +f 178//178 377//377 376//376 +f 181//181 378//378 377//377 +f 181//181 377//377 178//178 +f 181//181 379//379 378//378 +f 379//379 181//181 182//182 +f 179//179 380//380 182//182 +f 179//179 381//381 380//380 +f 180//180 382//382 383//383 +f 180//180 383//383 179//179 +f 179//179 383//383 381//381 +f 183//183 384//384 180//180 +f 180//180 384//384 382//382 +f 183//183 385//385 384//384 +f 183//183 184//184 385//385 +f 185//185 386//386 184//184 +f 285//285 186//186 167//167 +f 387//387 192//192 388//388 +f 230//230 229//229 389//389 +f 192//192 197//197 390//390 +f 192//192 387//387 191//191 +f 391//391 389//389 234//234 +f 196//196 195//195 197//197 +f 197//197 195//195 392//392 +f 393//393 240//240 238//238 +f 388//388 394//394 395//395 +f 394//394 389//389 391//391 +f 234//234 389//389 229//229 +f 391//391 396//396 394//394 +f 238//238 397//397 393//393 +f 394//394 396//396 395//395 +f 388//388 395//395 398//398 +f 388//388 398//398 387//387 +f 390//390 388//388 192//192 +f 388//388 397//397 394//394 +f 390//390 197//197 399//399 +f 393//393 197//197 240//240 +f 240//240 197//197 241//241 +f 390//390 397//397 388//388 +f 399//399 197//197 393//393 +f 197//197 392//392 241//241 +f 230//230 397//397 238//238 +f 397//397 230//230 389//389 +f 390//390 399//399 397//397 +f 397//397 399//399 393//393 +f 394//394 397//397 389//389 +f 214//214 400//400 213//213 +f 213//213 400//400 401//401 +f 213//213 401//401 402//402 +f 400//400 214//214 199//199 +f 400//400 199//199 403//403 +f 200//200 404//404 405//405 +f 206//206 221//221 205//205 +f 205//205 221//221 223//223 +f 208//208 217//217 207//207 +f 208//208 239//239 217//217 +f 200//200 405//405 406//406 +f 201//201 407//407 404//404 +f 407//407 202//202 408//408 +f 205//205 223//223 224//224 +f 206//206 409//409 221//221 +f 207//207 216//216 206//206 +f 206//206 216//216 409//409 +f 207//207 217//217 216//216 +f 210//210 233//233 236//236 +f 235//235 225//225 211//211 +f 213//213 402//402 410//410 +f 213//213 410//410 212//212 +f 201//201 404//404 200//200 +f 242//242 411//411 203//203 +f 203//203 411//411 202//202 +f 204//204 219//219 203//203 +f 203//203 219//219 242//242 +f 205//205 224//224 220//220 +f 205//205 220//220 204//204 +f 204//204 220//220 219//219 +f 209//209 237//237 239//239 +f 209//209 239//239 208//208 +f 209//209 231//231 237//237 +f 225//225 233//233 211//211 +f 211//211 233//233 210//210 +f 212//212 235//235 211//211 +f 212//212 410//410 235//235 +f 199//199 406//406 403//403 +f 202//202 407//407 201//201 +f 202//202 412//412 408//408 +f 202//202 411//411 412//412 +f 210//210 236//236 209//209 +f 209//209 236//236 231//231 +f 200//200 406//406 199//199 +f 392//392 217//217 241//241 +f 392//392 195//195 413//413 +f 256//256 414//414 257//257 +f 257//257 414//414 415//415 +f 257//257 416//416 280//280 +f 253//253 417//417 254//254 +f 283//283 254//254 418//418 +f 267//267 419//419 265//265 +f 265//265 419//419 420//420 +f 265//265 420//420 421//421 +f 265//265 421//421 264//264 +f 195//195 194//194 245//245 +f 422//422 281//281 248//248 +f 423//423 284//284 279//279 +f 413//413 195//195 245//245 +f 421//421 424//424 264//264 +f 425//425 419//419 281//281 +f 425//425 281//281 422//422 +f 417//417 418//418 254//254 +f 426//426 253//253 284//284 +f 426//426 284//284 423//423 +f 253//253 426//426 417//417 +f 413//413 245//245 244//244 +f 424//424 244//244 264//264 +f 419//419 267//267 281//281 +f 422//422 248//248 427//427 +f 427//427 248//248 247//247 +f 251//251 283//283 418//418 +f 423//423 279//279 428//428 +f 428//428 279//279 280//280 +f 428//428 280//280 416//416 +f 415//415 416//416 257//257 +f 256//256 293//293 429//429 +f 256//256 429//429 414//414 +f 297//297 296//296 430//430 +f 296//296 431//431 430//430 +f 432//432 431//431 348//348 +f 431//431 296//296 348//348 +f 293//293 430//430 429//429 +f 293//293 297//297 430//430 +f 296//296 353//353 348//348 +f 347//347 432//432 348//348 +f 433//433 434//434 142//142 +f 288//288 360//360 435//435 +f 436//436 185//185 187//187 +f 380//380 379//379 182//182 +f 437//437 300//300 299//299 +f 438//438 439//439 440//440 +f 441//441 442//442 443//443 +f 357//357 191//191 444//444 +f 285//285 286//286 445//445 +f 186//186 285//285 445//445 +f 446//446 447//447 448//448 +f 446//446 448//448 449//449 +f 449//449 448//448 450//450 +f 450//450 451//451 449//449 +f 452//452 384//384 385//385 +f 453//453 454//454 455//455 +f 454//454 456//456 457//457 +f 445//445 458//458 187//187 +f 445//445 187//187 186//186 +f 436//436 459//459 386//386 +f 436//436 386//386 185//185 +f 451//451 460//460 461//461 +f 462//462 463//463 451//451 +f 451//451 463//463 460//460 +f 463//463 464//464 460//460 +f 460//460 464//464 465//465 +f 464//464 463//463 455//455 +f 454//454 457//457 455//455 +f 455//455 457//457 466//466 +f 455//455 466//466 464//464 +f 464//464 466//466 467//467 +f 464//464 467//467 465//465 +f 468//468 469//469 470//470 +f 471//471 470//470 458//458 +f 471//471 458//458 445//445 +f 471//471 435//435 470//470 +f 470//470 435//435 468//468 +f 184//184 386//386 452//452 +f 452//452 386//386 459//459 +f 452//452 459//459 472//472 +f 472//472 459//459 473//473 +f 474//474 475//475 476//476 +f 476//476 475//475 477//477 +f 477//477 475//475 466//466 +f 477//477 466//466 473//473 +f 473//473 466//466 456//456 +f 473//473 456//456 472//472 +f 472//472 478//478 452//452 +f 452//452 385//385 184//184 +f 474//474 467//467 475//475 +f 472//472 456//456 478//478 +f 452//452 478//478 384//384 +f 469//469 479//479 459//459 +f 469//469 459//459 436//436 +f 436//436 187//187 458//458 +f 436//436 458//458 469//469 +f 469//469 458//458 470//470 +f 479//479 469//469 468//468 +f 479//479 468//468 477//477 +f 471//471 286//286 288//288 +f 471//471 288//288 435//435 +f 435//435 480//480 468//468 +f 477//477 468//468 480//480 +f 477//477 480//480 481//481 +f 473//473 459//459 479//479 +f 473//473 479//479 477//477 +f 476//476 477//477 481//481 +f 465//465 482//482 483//483 +f 484//484 485//485 486//486 +f 485//485 487//487 486//486 +f 359//359 488//488 489//489 +f 480//480 435//435 489//489 +f 435//435 360//360 489//489 +f 489//489 360//360 359//359 +f 490//490 491//491 492//492 +f 492//492 491//491 493//493 +f 494//494 492//492 493//493 +f 494//494 493//493 495//495 +f 496//496 495//495 363//363 +f 363//363 495//495 497//497 +f 358//358 497//497 359//359 +f 494//494 495//495 496//496 +f 358//358 363//363 497//497 +f 363//363 357//357 496//496 +f 496//496 357//357 444//444 +f 498//498 499//499 500//500 +f 498//498 501//501 499//499 +f 351//351 350//350 502//502 +f 502//502 503//503 504//504 +f 500//500 505//505 498//498 +f 498//498 505//505 506//506 +f 507//507 508//508 509//509 +f 509//509 508//508 510//510 +f 509//509 510//510 482//482 +f 482//482 510//510 483//483 +f 482//482 465//465 511//511 +f 511//511 465//465 467//467 +f 511//511 467//467 474//474 +f 474//474 476//476 512//512 +f 512//512 476//476 481//481 +f 513//513 507//507 509//509 +f 514//514 509//509 515//515 +f 515//515 509//509 482//482 +f 515//515 482//482 485//485 +f 485//485 482//482 511//511 +f 487//487 474//474 512//512 +f 512//512 481//481 488//488 +f 488//488 481//481 489//489 +f 489//489 481//481 480//480 +f 286//286 471//471 445//445 +f 516//516 517//517 518//518 +f 518//518 513//513 514//514 +f 519//519 507//507 513//513 +f 520//520 514//514 515//515 +f 520//520 515//515 484//484 +f 484//484 515//515 485//485 +f 487//487 512//512 488//488 +f 487//487 488//488 497//497 +f 497//497 488//488 359//359 +f 520//520 516//516 514//514 +f 514//514 516//516 518//518 +f 513//513 518//518 521//521 +f 521//521 519//519 513//513 +f 513//513 509//509 514//514 +f 485//485 511//511 487//487 +f 487//487 511//511 474//474 +f 356//356 522//522 355//355 +f 355//355 522//522 440//440 +f 355//355 440//440 347//347 +f 347//347 440//440 439//439 +f 502//502 504//504 351//351 +f 351//351 504//504 356//356 +f 356//356 504//504 522//522 +f 440//440 442//442 438//438 +f 443//443 523//523 441//441 +f 493//493 491//491 486//486 +f 486//486 491//491 524//524 +f 525//525 441//441 516//516 +f 516//516 441//441 523//523 +f 526//526 525//525 524//524 +f 526//526 524//524 490//490 +f 490//490 524//524 491//491 +f 495//495 493//493 497//497 +f 497//497 493//493 487//487 +f 487//487 493//493 486//486 +f 486//486 524//524 484//484 +f 484//484 524//524 525//525 +f 484//484 525//525 520//520 +f 520//520 525//525 516//516 +f 516//516 523//523 517//517 +f 127//127 303//303 302//302 +f 142//142 434//434 127//127 +f 142//142 141//141 433//433 +f 434//434 527//527 127//127 +f 528//528 375//375 139//139 +f 529//529 375//375 528//528 +f 433//433 141//141 375//375 +f 529//529 528//528 530//530 +f 530//530 528//528 374//374 +f 530//530 374//374 531//531 +f 532//532 533//533 529//529 +f 534//534 535//535 536//536 +f 536//536 535//535 532//532 +f 536//536 532//532 530//530 +f 537//537 299//299 527//527 +f 303//303 527//527 299//299 +f 537//537 437//437 299//299 +f 538//538 539//539 537//537 +f 352//352 300//300 540//540 +f 352//352 540//540 350//350 +f 350//350 540//540 541//541 +f 300//300 437//437 540//540 +f 540//540 542//542 541//541 +f 443//443 442//442 440//440 +f 443//443 440//440 522//522 +f 443//443 522//522 523//523 +f 523//523 522//522 504//504 +f 523//523 504//504 503//503 +f 505//505 503//503 502//502 +f 543//543 502//502 350//350 +f 543//543 350//350 541//541 +f 303//303 127//127 527//527 +f 542//542 544//544 541//541 +f 541//541 544//544 506//506 +f 544//544 545//545 506//506 +f 540//540 437//437 542//542 +f 541//541 506//506 543//543 +f 543//543 506//506 505//505 +f 518//518 517//517 500//500 +f 518//518 500//500 499//499 +f 518//518 499//499 521//521 +f 517//517 523//523 503//503 +f 517//517 503//503 500//500 +f 500//500 503//503 505//505 +f 505//505 502//502 543//543 +f 542//542 537//537 539//539 +f 542//542 539//539 544//544 +f 546//546 534//534 536//536 +f 546//546 536//536 547//547 +f 547//547 536//536 548//548 +f 548//548 536//536 530//530 +f 549//549 535//535 550//550 +f 550//550 534//534 501//501 +f 539//539 550//550 545//545 +f 545//545 550//550 501//501 +f 544//544 539//539 545//545 +f 437//437 537//537 542//542 +f 434//434 433//433 538//538 +f 538//538 433//433 533//533 +f 538//538 533//533 549//549 +f 539//539 549//549 550//550 +f 549//549 533//533 535//535 +f 550//550 535//535 534//534 +f 501//501 534//534 546//546 +f 501//501 546//546 551//551 +f 539//539 538//538 549//549 +f 371//371 552//552 553//553 +f 371//371 553//553 372//372 +f 372//372 553//553 531//531 +f 372//372 531//531 373//373 +f 373//373 531//531 374//374 +f 374//374 528//528 139//139 +f 370//370 552//552 371//371 +f 370//370 554//554 552//552 +f 552//552 555//555 553//553 +f 553//553 556//556 531//531 +f 531//531 556//556 548//548 +f 531//531 548//548 530//530 +f 529//529 530//530 532//532 +f 375//375 529//529 533//533 +f 375//375 533//533 433//433 +f 369//369 368//368 557//557 +f 369//369 557//557 370//370 +f 370//370 557//557 554//554 +f 552//552 554//554 555//555 +f 553//553 555//555 556//556 +f 548//548 556//556 558//558 +f 548//548 558//558 559//559 +f 548//548 559//559 547//547 +f 547//547 559//559 560//560 +f 547//547 560//560 546//546 +f 546//546 560//560 551//551 +f 561//561 562//562 563//563 +f 381//381 383//383 564//564 +f 364//364 376//376 565//565 +f 364//364 565//565 561//561 +f 561//561 565//565 562//562 +f 566//566 567//567 568//568 +f 568//568 567//567 569//569 +f 382//382 384//384 570//570 +f 382//382 570//570 571//571 +f 382//382 571//571 383//383 +f 383//383 571//571 564//564 +f 381//381 564//564 572//572 +f 381//381 572//572 380//380 +f 380//380 572//572 573//573 +f 380//380 573//573 379//379 +f 379//379 573//573 574//574 +f 379//379 574//574 378//378 +f 376//376 377//377 575//575 +f 376//376 575//575 565//565 +f 563//563 562//562 576//576 +f 563//563 576//576 577//577 +f 567//567 578//578 569//569 +f 576//576 579//579 447//447 +f 564//564 571//571 580//580 +f 564//564 580//580 572//572 +f 573//573 572//572 574//574 +f 575//575 581//581 582//582 +f 575//575 582//582 565//565 +f 565//565 582//582 562//562 +f 562//562 582//582 576//576 +f 579//579 448//448 447//447 +f 378//378 574//574 581//581 +f 378//378 581//581 377//377 +f 377//377 581//581 575//575 +f 577//577 576//576 566//566 +f 566//566 576//576 567//567 +f 567//567 583//583 578//578 +f 579//579 576//576 582//582 +f 584//584 574//574 585//585 +f 585//585 574//574 572//572 +f 585//585 572//572 580//580 +f 453//453 580//580 571//571 +f 453//453 571//571 454//454 +f 454//454 571//571 570//570 +f 578//578 586//586 569//569 +f 566//566 587//587 577//577 +f 577//577 587//587 563//563 +f 563//563 587//587 561//561 +f 586//586 588//588 569//569 +f 589//589 557//557 587//587 +f 587//587 367//367 366//366 +f 590//590 586//586 578//578 +f 568//568 589//589 566//566 +f 561//561 365//365 364//364 +f 551//551 560//560 586//586 +f 586//586 560//560 591//591 +f 586//586 591//591 588//588 +f 591//591 558//558 592//592 +f 592//592 558//558 555//555 +f 592//592 555//555 554//554 +f 368//368 367//367 557//557 +f 558//558 591//591 559//559 +f 559//559 591//591 560//560 +f 532//532 535//535 533//533 +f 556//556 555//555 558//558 +f 367//367 587//587 557//557 +f 557//557 589//589 554//554 +f 554//554 589//589 592//592 +f 592//592 588//588 591//591 +f 586//586 519//519 551//551 +f 365//365 561//561 366//366 +f 366//366 561//561 587//587 +f 587//587 566//566 589//589 +f 592//592 589//589 568//568 +f 592//592 568//568 569//569 +f 592//592 569//569 588//588 +f 574//574 584//584 581//581 +f 581//581 584//584 593//593 +f 581//581 593//593 582//582 +f 582//582 593//593 579//579 +f 576//576 447//447 567//567 +f 567//567 447//447 583//583 +f 578//578 583//583 590//590 +f 586//586 590//590 519//519 +f 583//583 446//446 594//594 +f 450//450 462//462 451//451 +f 451//451 461//461 449//449 +f 449//449 461//461 595//595 +f 449//449 595//595 446//446 +f 446//446 595//595 596//596 +f 446//446 596//596 594//594 +f 508//508 597//597 595//595 +f 508//508 595//595 510//510 +f 510//510 595//595 461//461 +f 510//510 461//461 483//483 +f 463//463 598//598 455//455 +f 455//455 598//598 453//453 +f 597//597 590//590 594//594 +f 597//597 594//594 596//596 +f 597//597 596//596 595//595 +f 483//483 461//461 460//460 +f 483//483 460//460 465//465 +f 463//463 462//462 598//598 +f 580//580 453//453 598//598 +f 580//580 598//598 585//585 +f 585//585 598//598 462//462 +f 585//585 462//462 584//584 +f 584//584 462//462 450//450 +f 584//584 450//450 593//593 +f 593//593 450//450 579//579 +f 579//579 450//450 448//448 +f 447//447 446//446 583//583 +f 583//583 594//594 590//590 +f 384//384 478//478 570//570 +f 570//570 478//478 454//454 +f 454//454 478//478 456//456 +f 457//457 456//456 466//466 +f 466//466 475//475 467//467 +f 597//597 508//508 507//507 +f 597//597 507//507 590//590 +f 590//590 507//507 519//519 +f 551//551 519//519 521//521 +f 551//551 521//521 499//499 +f 551//551 499//499 501//501 +f 545//545 501//501 498//498 +f 545//545 498//498 506//506 +f 538//538 537//537 527//527 +f 538//538 527//527 434//434 +f 599//599 600//600 601//601 +f 602//602 228//228 227//227 +f 602//602 232//232 228//228 +f 391//391 234//234 603//603 +f 603//603 234//234 232//232 +f 444//444 494//494 496//496 +f 494//494 604//604 492//492 +f 398//398 395//395 599//599 +f 395//395 396//396 599//599 +f 599//599 605//605 606//606 +f 599//599 606//606 607//607 +f 608//608 609//609 610//610 +f 396//396 600//600 599//599 +f 599//599 601//601 605//605 +f 601//601 600//600 611//611 +f 612//612 601//601 611//611 +f 600//600 603//603 602//602 +f 605//605 613//613 608//608 +f 614//614 615//615 608//608 +f 616//616 613//613 617//617 +f 613//613 601//601 612//612 +f 600//600 602//602 611//611 +f 602//602 603//603 232//232 +f 613//613 612//612 618//618 +f 618//618 612//612 226//226 +f 396//396 391//391 603//603 +f 396//396 603//603 600//600 +f 611//611 602//602 612//612 +f 602//602 227//227 612//612 +f 612//612 227//227 226//226 +f 613//613 618//618 619//619 +f 613//613 619//619 617//617 +f 605//605 601//601 613//613 +f 620//620 613//613 616//616 +f 615//615 621//621 608//608 +f 608//608 621//621 622//622 +f 608//608 622//622 609//609 +f 492//492 604//604 608//608 +f 608//608 604//604 606//606 +f 490//490 492//492 608//608 +f 610//610 623//623 490//490 +f 490//490 623//623 526//526 +f 608//608 610//610 490//490 +f 387//387 444//444 191//191 +f 624//624 625//625 494//494 +f 494//494 444//444 624//624 +f 387//387 624//624 444//444 +f 624//624 387//387 398//398 +f 625//625 624//624 607//607 +f 607//607 624//624 398//398 +f 607//607 398//398 599//599 +f 620//620 614//614 613//613 +f 613//613 614//614 608//608 +f 605//605 608//608 606//606 +f 606//606 604//604 607//607 +f 607//607 604//604 625//625 +f 625//625 604//604 494//494 +f 626//626 403//403 627//627 +f 403//403 406//406 627//627 +f 628//628 400//400 403//403 +f 629//629 400//400 628//628 +f 629//629 630//630 400//400 +f 400//400 630//630 401//401 +f 403//403 626//626 628//628 +f 410//410 631//631 632//632 +f 410//410 632//632 235//235 +f 633//633 634//634 402//402 +f 402//402 634//634 410//410 +f 410//410 634//634 631//631 +f 630//630 633//633 401//401 +f 401//401 633//633 402//402 +f 408//408 635//635 407//407 +f 635//635 636//636 407//407 +f 407//407 636//636 404//404 +f 637//637 405//405 404//404 +f 632//632 226//226 235//235 +f 412//412 411//411 638//638 +f 639//639 428//428 416//416 +f 418//418 638//638 251//251 +f 640//640 247//247 251//251 +f 427//427 640//640 641//641 +f 640//640 427//427 247//247 +f 427//427 641//641 422//422 +f 642//642 422//422 641//641 +f 643//643 413//413 244//244 +f 413//413 643//643 392//392 +f 218//218 641//641 219//219 +f 640//640 243//243 641//641 +f 641//641 243//243 219//219 +f 218//218 220//220 642//642 +f 224//224 644//644 642//642 +f 642//642 220//220 224//224 +f 641//641 218//218 642//642 +f 409//409 645//645 221//221 +f 644//644 222//222 221//221 +f 644//644 221//221 645//645 +f 646//646 216//216 215//215 +f 645//645 409//409 646//646 +f 646//646 409//409 216//216 +f 215//215 392//392 643//643 +f 215//215 643//643 646//646 +f 644//644 224//224 222//222 +f 639//639 405//405 637//637 +f 647//647 406//406 639//639 +f 639//639 406//406 405//405 +f 648//648 637//637 404//404 +f 648//648 404//404 636//636 +f 639//639 637//637 648//648 +f 649//649 635//635 408//408 +f 649//649 408//408 650//650 +f 242//242 640//640 638//638 +f 638//638 640//640 251//251 +f 638//638 411//411 242//242 +f 650//650 408//408 412//412 +f 650//650 412//412 638//638 +f 650//650 638//638 418//418 +f 649//649 636//636 635//635 +f 650//650 418//418 417//417 +f 650//650 417//417 649//649 +f 649//649 417//417 426//426 +f 649//649 426//426 423//423 +f 649//649 423//423 636//636 +f 636//636 423//423 648//648 +f 648//648 423//423 428//428 +f 648//648 428//428 639//639 +f 639//639 416//416 647//647 +f 647//647 416//416 415//415 +f 215//215 217//217 392//392 +f 646//646 643//643 244//244 +f 646//646 244//244 424//424 +f 646//646 424//424 645//645 +f 645//645 424//424 421//421 +f 645//645 421//421 644//644 +f 644//644 421//421 420//420 +f 644//644 420//420 419//419 +f 644//644 419//419 642//642 +f 642//642 419//419 425//425 +f 642//642 425//425 422//422 +f 640//640 242//242 243//243 +f 415//415 414//414 651//651 +f 651//651 647//647 415//415 +f 627//627 406//406 651//651 +f 651//651 406//406 647//647 +f 430//430 652//652 429//429 +f 414//414 429//429 651//651 +f 627//627 651//651 653//653 +f 654//654 652//652 655//655 +f 655//655 652//652 656//656 +f 656//656 652//652 430//430 +f 628//628 654//654 629//629 +f 429//429 652//652 653//653 +f 653//653 652//652 654//654 +f 653//653 626//626 627//627 +f 654//654 628//628 653//653 +f 653//653 628//628 626//626 +f 657//657 658//658 659//659 +f 657//657 660//660 658//658 +f 661//661 654//654 655//655 +f 658//658 661//661 659//659 +f 662//662 633//633 663//663 +f 663//663 630//630 629//629 +f 661//661 629//629 654//654 +f 429//429 653//653 651//651 +f 633//633 630//630 663//663 +f 664//664 659//659 665//665 +f 432//432 664//664 431//431 +f 431//431 664//664 665//665 +f 661//661 655//655 659//659 +f 659//659 655//655 665//665 +f 656//656 665//665 655//655 +f 430//430 431//431 656//656 +f 656//656 431//431 665//665 +f 661//661 663//663 629//629 +f 660//660 662//662 663//663 +f 660//660 663//663 658//658 +f 658//658 663//663 661//661 +f 623//623 525//525 526//526 +f 666//666 441//441 623//623 +f 623//623 441//441 525//525 +f 667//667 664//664 439//439 +f 664//664 347//347 439//439 +f 432//432 347//347 664//664 +f 668//668 659//659 664//664 +f 660//660 669//669 662//662 +f 670//670 634//634 633//633 +f 659//659 668//668 657//657 +f 671//671 672//672 668//668 +f 668//668 673//673 671//671 +f 669//669 670//670 662//662 +f 674//674 672//672 671//671 +f 671//671 673//673 674//674 +f 674//674 673//673 675//675 +f 610//610 609//609 676//676 +f 675//675 677//677 678//678 +f 675//675 678//678 674//674 +f 672//672 674//674 669//669 +f 672//672 669//669 660//660 +f 676//676 677//677 675//675 +f 676//676 615//615 620//620 +f 679//679 622//622 676//676 +f 676//676 622//622 615//615 +f 677//677 680//680 678//678 +f 681//681 678//678 631//631 +f 631//631 678//678 680//680 +f 631//631 634//634 681//681 +f 631//631 680//680 632//632 +f 632//632 680//680 618//618 +f 632//632 618//618 226//226 +f 662//662 670//670 633//633 +f 634//634 670//670 681//681 +f 617//617 682//682 680//680 +f 680//680 682//682 619//619 +f 680//680 619//619 683//683 +f 680//680 683//683 618//618 +f 670//670 669//669 681//681 +f 681//681 669//669 674//674 +f 681//681 674//674 678//678 +f 677//677 676//676 680//680 +f 680//680 676//676 620//620 +f 680//680 620//620 617//617 +f 684//684 666//666 673//673 +f 673//673 676//676 675//675 +f 438//438 668//668 667//667 +f 672//672 657//657 668//668 +f 441//441 666//666 442//442 +f 442//442 666//666 684//684 +f 438//438 684//684 668//668 +f 667//667 439//439 438//438 +f 438//438 442//442 684//684 +f 623//623 610//610 666//666 +f 666//666 610//610 673//673 +f 673//673 610//610 676//676 +f 660//660 657//657 672//672 +f 679//679 676//676 609//609 +f 684//684 673//673 668//668 +f 667//667 668//668 664//664 diff --git a/data/kuka_iiwa/meshes/link_6.mtl b/data/kuka_iiwa/meshes/link_6.mtl new file mode 100644 index 000000000..70d3ba1da --- /dev/null +++ b/data/kuka_iiwa/meshes/link_6.mtl @@ -0,0 +1,10 @@ +# Blender MTL File: 'None' +# Material Count: 1 + +newmtl None +Ns 0 +Ka 0.000000 0.000000 0.000000 +Kd 0.8 0.8 0.8 +Ks 0.8 0.8 0.8 +d 1 +illum 2 diff --git a/data/kuka_iiwa/meshes/link_6.obj b/data/kuka_iiwa/meshes/link_6.obj new file mode 100644 index 000000000..7ade5d1c7 --- /dev/null +++ b/data/kuka_iiwa/meshes/link_6.obj @@ -0,0 +1,2328 @@ +# Blender v2.71 (sub 0) OBJ File: '' +# www.blender.org +mtllib link_6.mtl +o Link_6 +v -0.037815 0.049296 0.039806 +v -0.065813 -0.002381 -0.001534 +v -0.050770 0.036683 0.029531 +v -0.058116 0.022817 0.018451 +v -0.066066 -0.010244 -0.007646 +v -0.064332 -0.019357 -0.014707 +v -0.061006 -0.023161 -0.017609 +v -0.059951 -0.028833 -0.021961 +v -0.054769 -0.036745 -0.027969 +v -0.037116 -0.050542 -0.038207 +v -0.049944 -0.042143 -0.032024 +v -0.039278 -0.050719 -0.038368 +v -0.026811 -0.055473 -0.041675 +v -0.012776 -0.058404 -0.043495 +v -0.001039 -0.059445 -0.043896 +v 0.013645 -0.058383 -0.043512 +v 0.027539 -0.055194 -0.041479 +v 0.037746 -0.051535 -0.038963 +v 0.052529 -0.039525 -0.030083 +v 0.043319 -0.047811 -0.036227 +v 0.058979 -0.030632 -0.023331 +v 0.063241 -0.022082 -0.016789 +v 0.065145 -0.016643 -0.012605 +v 0.064222 0.005622 0.004780 +v 0.066238 -0.007601 -0.005588 +v 0.060263 0.017320 0.014081 +v 0.056427 0.026757 0.021587 +v 0.047914 0.040717 0.032782 +v 0.036420 0.050455 0.040742 +v 0.039172 0.050531 0.040730 +v -0.043822 0.045630 0.036759 +v 0.000000 0.071100 0.025000 +v 0.007576 0.071100 0.024322 +v 0.025021 0.071100 0.001798 +v -0.001466 0.071100 0.024881 +v 0.010247 0.071100 -0.022897 +v -0.010247 0.071100 0.022897 +v 0.001465 0.071100 -0.024881 +v 0.000000 0.071100 -0.025000 +v -0.007576 0.071100 -0.024322 +v -0.018012 0.071100 -0.017460 +v -0.017460 0.071100 0.018012 +v -0.022898 0.071100 -0.010247 +v 0.023522 0.071100 -0.009154 +v 0.017460 0.071100 -0.018012 +v 0.018012 0.071100 0.017460 +v 0.022898 0.071100 0.010247 +v -0.025021 0.071100 -0.001798 +v -0.023522 0.071100 0.009154 +v -0.022132 -0.012135 -0.070700 +v 0.022132 0.012135 -0.070700 +v 0.024881 0.001465 -0.070700 +v 0.025000 -0.000000 -0.070700 +v 0.006869 0.024127 -0.070700 +v 0.014706 0.020323 -0.070700 +v 0.024476 -0.005945 -0.070700 +v 0.020323 -0.014706 -0.070700 +v -0.024881 -0.001466 -0.070700 +v -0.001798 0.025021 -0.070700 +v -0.025000 0.000000 -0.070700 +v -0.012135 0.022132 -0.070700 +v -0.024476 0.005945 -0.070700 +v -0.020323 0.014706 -0.070700 +v 0.012135 -0.022132 -0.070700 +v 0.001798 -0.025021 -0.070700 +v -0.006869 -0.024127 -0.070700 +v -0.014706 -0.020323 -0.070700 +v 0.002261 0.065749 0.053835 +v -0.007880 0.065428 0.053368 +v -0.001628 0.064051 0.052507 +v -0.018713 0.062840 0.050997 +v -0.038184 -0.051297 -0.038839 +v -0.024605 -0.055992 -0.042056 +v -0.066041 -0.011624 -0.008776 +v -0.063786 -0.020721 -0.015797 +v -0.012945 -0.058354 -0.043512 +v -0.044080 -0.047199 -0.035827 +v -0.049303 -0.042692 -0.032484 +v -0.059996 -0.028804 -0.021986 +v -0.038402 0.051364 0.041359 +v -0.034024 0.052538 0.042443 +v -0.029130 0.057936 0.046809 +v -0.035435 0.051362 0.041493 +v -0.054819 -0.036578 -0.027886 +v -0.053813 0.031620 0.025427 +v -0.046622 0.042369 0.034065 +v -0.059397 0.019575 0.015834 +v -0.063979 0.006356 0.005350 +v 0.025235 0.080900 0.000557 +v 0.022568 0.080900 0.010954 +v 0.017460 0.080900 0.018012 +v 0.010247 0.080900 0.022898 +v -0.000557 0.080900 0.025235 +v -0.010954 0.080900 0.022568 +v -0.018012 0.080900 0.017460 +v -0.022898 0.080900 0.010247 +v -0.024881 0.080900 0.001465 +v -0.024322 0.080900 -0.007576 +v -0.017460 0.080900 -0.018012 +v -0.010247 0.080900 -0.022898 +v 0.000557 0.080900 -0.025235 +v 0.010954 0.080900 -0.022568 +v 0.018012 0.080900 -0.017460 +v 0.022897 0.080900 -0.010247 +v -0.047085 -0.034558 -0.045829 +v -0.053385 -0.032096 -0.036905 +v -0.063270 0.009423 -0.025224 +v -0.059393 0.023051 -0.027411 +v -0.059496 0.010532 -0.036375 +v -0.049857 -0.012590 -0.060691 +v -0.046258 -0.022482 -0.060703 +v -0.047167 -0.022124 -0.058154 +v -0.051213 -0.003054 -0.060658 +v -0.050544 -0.012330 -0.058324 +v -0.036703 0.069457 -0.037949 +v -0.042554 0.064078 -0.031859 +v -0.036704 0.080901 -0.037172 +v -0.045393 0.080900 -0.025535 +v -0.048199 0.064951 -0.021544 +v -0.050223 0.080900 -0.013767 +v -0.051907 0.062300 -0.011186 +v -0.053621 0.060969 -0.000436 +v -0.051998 0.080900 -0.002443 +v -0.051136 0.080898 0.009966 +v -0.047004 0.080900 0.022301 +v -0.049613 0.069682 0.018483 +v -0.042340 0.080890 0.030051 +v -0.045477 0.063489 0.028549 +v -0.038095 0.068103 0.037170 +v -0.034755 0.080901 0.038830 +v -0.053114 0.055375 0.013646 +v -0.060321 0.026030 0.005995 +v -0.064100 0.013503 -0.002759 +v -0.064560 -0.011478 -0.020355 +v -0.062097 -0.014773 -0.028149 +v -0.041684 -0.031269 -0.058156 +v -0.036958 -0.037001 -0.057706 +v -0.042018 -0.029655 -0.060699 +v -0.035093 -0.037840 -0.060703 +v -0.044973 0.024886 -0.060677 +v -0.043201 0.030414 -0.053807 +v -0.040686 0.031488 -0.060700 +v -0.051973 0.017681 -0.049209 +v -0.048803 0.016254 -0.060689 +v -0.050904 0.006905 -0.060670 +v -0.050170 0.014782 -0.056942 +v -0.048702 0.024410 -0.049637 +v -0.037799 0.036266 -0.055566 +v -0.065362 0.001230 -0.019074 +v -0.063495 -0.003348 -0.027567 +v -0.061342 0.003602 -0.033861 +v -0.066017 0.002033 -0.009560 +v -0.062595 0.018860 -0.019532 +v -0.063909 0.016224 -0.012136 +v -0.052444 0.025760 -0.039898 +v -0.043945 0.041546 -0.039550 +v -0.044645 0.032887 -0.046374 +v -0.036295 0.048685 -0.044380 +v -0.035444 0.044031 -0.048457 +v -0.049568 0.039941 -0.033028 +v -0.052778 0.043617 -0.024037 +v -0.035897 0.040573 -0.051634 +v -0.053952 0.006531 -0.051807 +v -0.052095 0.001022 -0.057820 +v -0.058749 0.035825 -0.000567 +v -0.053884 0.049242 -0.013021 +v -0.057061 0.041676 -0.007009 +v -0.044228 0.052728 -0.033380 +v -0.038074 0.056435 -0.039266 +v -0.053281 0.061399 0.007226 +v -0.049699 0.055073 -0.021973 +v -0.057938 -0.022143 -0.035281 +v -0.057735 -0.005384 -0.043648 +v 0.000557 -0.025235 -0.060700 +v 0.010954 -0.022568 -0.060700 +v 0.018012 -0.017460 -0.060700 +v 0.022897 -0.010247 -0.060700 +v 0.024881 -0.001465 -0.060700 +v 0.024322 0.007576 -0.060700 +v 0.017460 0.018012 -0.060700 +v 0.010247 0.022897 -0.060700 +v -0.000557 0.025235 -0.060700 +v -0.010954 0.022568 -0.060700 +v -0.018012 0.017460 -0.060700 +v -0.022898 0.010247 -0.060700 +v -0.024881 0.001466 -0.060700 +v -0.024322 -0.007576 -0.060700 +v -0.017460 -0.018012 -0.060700 +v -0.010247 -0.022898 -0.060700 +v 0.038220 -0.038986 -0.053574 +v 0.030846 -0.045992 -0.051932 +v 0.038276 -0.034467 -0.060704 +v 0.036847 -0.036700 -0.058497 +v 0.026565 -0.044222 -0.060703 +v 0.028061 -0.043712 -0.058622 +v 0.018355 -0.048622 -0.058469 +v 0.014425 -0.049392 -0.060699 +v 0.008908 -0.051544 -0.057165 +v 0.000347 -0.051610 -0.060697 +v 0.002674 -0.051886 -0.058417 +v -0.008130 -0.051304 -0.058470 +v -0.013277 -0.049701 -0.060694 +v -0.018512 -0.049034 -0.057147 +v -0.023820 -0.045657 -0.060696 +v -0.028066 -0.043639 -0.058793 +v -0.027905 -0.047467 -0.052303 +v -0.005707 -0.054438 -0.052172 +v 0.030608 -0.054213 -0.040860 +v 0.020376 -0.050797 -0.052539 +v 0.019538 -0.057136 -0.042781 +v 0.010265 -0.058722 -0.043710 +v 0.013652 0.064335 0.052331 +v 0.064175 -0.019583 -0.014923 +v 0.066255 -0.009903 -0.007456 +v 0.011028 0.064887 0.052826 +v 0.066059 -0.004136 -0.002924 +v 0.044393 -0.046990 -0.035676 +v 0.032987 0.055435 0.044731 +v 0.023489 0.060917 0.049323 +v 0.033853 0.052710 0.042586 +v 0.059727 -0.029344 -0.022399 +v 0.039355 0.050342 0.040536 +v 0.044647 0.044635 0.035900 +v 0.055053 -0.036320 -0.027694 +v 0.051017 0.036283 0.029164 +v 0.055051 0.028999 0.023329 +v 0.059070 0.020472 0.016543 +v -0.031812 0.070291 0.042378 +v -0.022685 0.080900 0.046909 +v -0.021165 0.071070 0.048688 +v -0.010275 0.080900 0.051055 +v -0.005321 0.073305 0.052599 +v 0.001530 0.080900 0.052001 +v 0.024298 0.080891 0.045957 +v 0.010827 0.080888 0.050851 +v 0.032581 0.070889 0.041709 +v 0.036822 0.080884 0.036994 +v 0.038784 0.067437 0.036466 +v -0.011751 0.080900 -0.050718 +v -0.024109 0.080899 -0.046073 +v -0.001597 0.080900 -0.051997 +v 0.011597 0.080900 -0.050831 +v 0.032268 0.080900 -0.040778 +v 0.023596 0.080900 -0.046392 +v 0.050454 0.080898 0.012489 +v 0.052235 0.080901 -0.001752 +v 0.039028 0.080899 -0.034485 +v 0.046506 0.080900 0.023642 +v -0.025000 0.080900 0.000000 +v 0.049709 0.080900 -0.015387 +v 0.045119 0.080900 -0.025966 +v -0.016675 0.050457 -0.056490 +v -0.023561 0.047730 -0.055727 +v -0.019947 0.051657 -0.054044 +v 0.002410 0.059399 -0.054020 +v 0.014875 0.056119 -0.053237 +v 0.008028 0.054886 -0.055167 +v 0.003941 0.051388 -0.060693 +v 0.003516 0.052524 -0.057664 +v 0.005057 0.051515 -0.059001 +v 0.031852 0.040339 -0.060681 +v 0.022877 0.046076 -0.060695 +v 0.028182 0.044283 -0.056517 +v 0.029305 0.067397 -0.044145 +v 0.023189 0.067681 -0.047699 +v 0.007792 0.066542 -0.052350 +v 0.015577 0.066145 -0.050681 +v -0.003222 0.066971 -0.052730 +v -0.018759 0.066280 -0.049706 +v -0.032656 0.059151 -0.043578 +v -0.033322 0.039088 -0.060688 +v -0.019762 0.048184 -0.058267 +v -0.021794 0.046787 -0.060698 +v -0.028183 0.043742 -0.057915 +v -0.008245 0.050763 -0.060684 +v -0.010884 0.051115 -0.057899 +v 0.012936 0.049708 -0.060642 +v 0.016603 0.049233 -0.058466 +v 0.011504 0.051663 -0.056916 +v 0.018204 0.050599 -0.055598 +v 0.023299 0.047217 -0.056639 +v 0.027359 0.047566 -0.053112 +v 0.035722 0.040282 -0.052164 +v 0.038022 0.036706 -0.054002 +v 0.037135 0.035593 -0.060699 +v 0.023265 0.052604 -0.051917 +v 0.035572 0.044012 -0.048239 +v 0.028515 0.054222 -0.048022 +v 0.035936 0.049571 -0.044362 +v 0.020546 0.058843 -0.050502 +v 0.036906 0.063196 -0.038871 +v 0.036674 0.055103 -0.041321 +v 0.039345 0.070119 -0.035095 +v -0.010802 0.066962 -0.051730 +v -0.028034 0.069297 -0.044794 +v -0.031259 0.042964 -0.054826 +v -0.028054 0.047284 -0.052751 +v -0.028973 0.049926 -0.050093 +v -0.027587 0.055518 -0.048202 +v -0.018122 0.056953 -0.052068 +v -0.004570 0.052173 -0.057885 +v -0.011106 0.054000 -0.055191 +v -0.002620 0.054703 -0.055778 +v -0.008271 0.058473 -0.053786 +v 0.042527 0.028881 -0.060698 +v 0.046941 0.021039 -0.060696 +v -0.025000 0.000000 -0.060700 +v 0.044771 -0.025343 -0.060699 +v 0.048365 -0.017488 -0.060693 +v 0.050808 -0.008218 -0.060690 +v 0.025000 -0.000000 -0.060700 +v 0.050016 0.011655 -0.060656 +v 0.051356 0.002498 -0.060689 +v 0.046978 -0.022672 -0.057990 +v 0.042173 -0.030438 -0.058284 +v 0.048765 0.068708 0.020673 +v 0.059639 0.029736 0.005467 +v 0.064535 0.010873 -0.003134 +v 0.065020 0.010360 -0.013723 +v 0.054689 -0.026573 -0.039169 +v 0.062957 -0.014590 -0.025274 +v 0.065209 -0.010345 -0.017426 +v 0.042460 0.068765 0.031795 +v 0.045606 0.066516 0.027598 +v 0.051319 0.068538 0.013498 +v 0.052527 0.071831 0.003430 +v 0.049987 0.064603 -0.017059 +v 0.052623 0.065144 -0.006166 +v 0.041525 0.057166 -0.035148 +v 0.042795 0.044679 -0.038990 +v 0.044186 0.033729 -0.046169 +v 0.042702 0.031191 -0.053572 +v 0.055099 0.006752 -0.048807 +v 0.057894 -0.001302 -0.043371 +v 0.058209 -0.007134 -0.041987 +v 0.053214 -0.001156 -0.055010 +v 0.055357 -0.011261 -0.047556 +v 0.059102 0.011112 -0.036892 +v 0.060636 0.005107 -0.035534 +v 0.053967 0.012123 -0.048916 +v 0.052078 0.017879 -0.048821 +v 0.049416 0.024353 -0.047820 +v 0.058789 -0.018898 -0.035103 +v 0.063335 -0.003086 -0.028139 +v 0.065231 0.001762 -0.019749 +v 0.063064 0.009861 -0.025749 +v 0.062348 0.018945 -0.020672 +v 0.061842 0.024056 -0.003472 +v 0.060896 0.027621 -0.012302 +v 0.059776 0.022058 -0.027149 +v 0.055829 0.025403 -0.033581 +v 0.052421 0.028116 -0.038019 +v 0.048859 0.042541 -0.032086 +v 0.053862 0.049532 -0.012978 +v 0.051243 0.051180 -0.020186 +v 0.045486 0.066664 -0.026690 +v 0.046167 0.057053 -0.028294 +v 0.049940 0.048489 -0.025747 +v 0.054719 0.049694 0.011017 +v 0.055081 0.052204 -0.000914 +v 0.050378 -0.034309 -0.040529 +v 0.049984 -0.014127 -0.058572 +v 0.052961 -0.017530 -0.049726 +v 0.051681 -0.006589 -0.058008 +v -0.049966 -0.045744 0.043148 +v -0.050081 -0.056560 0.034698 +v -0.044511 -0.060720 0.044063 +v -0.044392 -0.065465 0.038486 +v -0.039869 -0.067050 0.045103 +v -0.049116 -0.019119 0.047718 +v -0.043806 -0.022662 0.054969 +v -0.043753 -0.008744 0.053292 +v -0.039974 -0.025109 0.058629 +v -0.044353 -0.036706 0.054170 +v -0.062172 -0.030863 -0.008842 +v -0.063789 -0.026250 0.003979 +v -0.065420 -0.017838 -0.001516 +v -0.056978 -0.040121 -0.016366 +v -0.064740 -0.003090 0.006410 +v -0.063703 0.007311 0.006158 +v -0.062695 -0.004037 0.015244 +v -0.053509 0.016891 0.032210 +v -0.049321 0.004528 0.043262 +v -0.039410 0.014450 0.051881 +v -0.037735 0.051840 0.041801 +v -0.043185 0.007604 0.050128 +v -0.039405 0.000193 0.055425 +v -0.039778 -0.012201 0.057487 +v -0.039228 -0.075155 0.019419 +v -0.039171 -0.074840 0.029131 +v -0.043917 -0.070665 0.022855 +v -0.042718 -0.065268 -0.007303 +v -0.038766 -0.069274 -0.006635 +v -0.043235 -0.069779 0.007674 +v -0.038966 -0.074047 0.009422 +v -0.038127 -0.064631 -0.017696 +v -0.045125 -0.054744 -0.023193 +v -0.038067 -0.057478 -0.030064 +v -0.058903 -0.041824 -0.003357 +v -0.061281 -0.035978 0.007481 +v -0.056608 -0.049066 0.013163 +v -0.059969 -0.037279 0.016799 +v -0.058025 0.013050 0.022979 +v -0.058211 -0.003589 0.028204 +v -0.056937 -0.035161 0.030344 +v -0.059610 -0.017099 0.026130 +v -0.062822 -0.020277 0.015010 +v -0.053741 -0.008525 0.038616 +v -0.039755 -0.071344 0.038766 +v -0.044330 -0.068507 0.031931 +v -0.040102 -0.039654 0.057989 +v -0.039992 -0.052496 0.054943 +v -0.044510 -0.047901 0.051496 +v -0.044535 -0.054862 0.048305 +v -0.039924 -0.061134 0.050419 +v -0.049695 -0.062342 0.022545 +v -0.049008 -0.062909 0.009305 +v -0.051579 -0.029863 0.043916 +v -0.049975 -0.052608 -0.015692 +v -0.050488 -0.057419 -0.003782 +v -0.054229 -0.054101 0.009792 +v -0.055228 -0.047918 0.026129 +v -0.003895 0.065665 0.053749 +v -0.014055 0.064150 0.052192 +v -0.028323 0.058314 0.047162 +v 0.049879 0.004685 0.042451 +v 0.053340 0.017620 0.032227 +v 0.062757 -0.003259 0.014864 +v 0.065187 -0.008317 0.004724 +v 0.064678 -0.022676 0.000259 +v 0.061382 -0.033650 -0.008193 +v 0.056948 -0.040743 -0.015306 +v 0.049144 -0.048480 -0.024797 +v 0.038405 -0.058100 -0.028713 +v 0.045061 -0.058046 -0.017382 +v 0.038302 -0.065106 -0.016732 +v 0.043461 -0.069306 0.006897 +v 0.038795 -0.074256 0.009609 +v 0.037963 -0.071074 -0.003260 +v 0.043672 -0.010118 0.053653 +v 0.039798 -0.018994 0.058273 +v 0.043999 -0.023809 0.054836 +v 0.039757 0.002754 0.054724 +v 0.043265 0.008316 0.049846 +v 0.039668 0.024746 0.048637 +v 0.060274 -0.036843 0.015635 +v 0.059567 -0.041667 0.006725 +v 0.063893 -0.020419 0.009803 +v 0.058135 -0.003134 0.028298 +v 0.059572 -0.016978 0.026235 +v 0.059966 -0.028411 0.023284 +v 0.040153 -0.031334 0.058563 +v 0.042466 -0.065402 -0.007664 +v 0.044128 -0.068849 0.031856 +v 0.039722 -0.074137 0.030292 +v 0.043842 -0.070771 0.022359 +v 0.044546 -0.047842 0.051500 +v 0.039836 -0.055952 0.053521 +v 0.044545 -0.054820 0.048390 +v 0.039962 -0.061255 0.050244 +v 0.044474 -0.060641 0.044155 +v 0.039578 -0.067329 0.045210 +v 0.044369 -0.065444 0.038594 +v 0.039671 -0.071019 0.039744 +v 0.040008 -0.046072 0.056903 +v 0.044579 -0.036901 0.053849 +v 0.049977 -0.045684 0.043162 +v 0.050071 -0.056529 0.034751 +v 0.049669 -0.062370 0.022667 +v 0.049306 -0.018797 0.047403 +v 0.049731 -0.031772 0.046814 +v 0.052576 -0.051303 -0.009674 +v 0.048222 -0.060169 -0.004364 +v 0.055764 -0.049253 -0.000754 +v 0.048952 -0.063018 0.009507 +v 0.054716 -0.053456 0.013171 +v 0.039274 -0.075187 0.022261 +v 0.054640 -0.019879 0.038141 +v 0.055204 -0.037963 0.033826 +v 0.055233 -0.047879 0.026155 +v 0.006768 0.065485 0.053477 +v 0.032950 0.055369 0.044684 +v 0.023609 0.060769 0.049240 +v 0.032433 0.024132 0.053572 +v 0.034336 0.002754 0.057538 +v 0.006574 -0.071992 -0.022238 +v -0.016973 -0.066631 -0.028877 +v -0.030831 -0.065376 -0.023694 +v -0.033044 -0.073807 -0.003424 +v -0.033971 -0.077305 0.010509 +v -0.033200 -0.078822 0.024169 +v -0.033063 -0.077639 0.032883 +v -0.033994 -0.074100 0.040958 +v -0.034042 -0.068316 0.048322 +v -0.034728 -0.062255 0.052732 +v -0.034693 -0.042218 0.059864 +v -0.033596 -0.028488 0.061199 +v -0.009055 0.025291 0.061108 +v -0.000002 0.032254 0.060267 +v 0.031995 -0.032305 0.061796 +v 0.031565 -0.057151 0.056879 +v 0.034029 -0.065112 0.051059 +v 0.033697 -0.073964 0.041162 +v 0.033713 -0.076399 0.035966 +v 0.031540 -0.079215 0.029582 +v 0.033336 -0.078755 0.021237 +v 0.031283 -0.078838 0.011422 +v 0.013726 -0.085165 0.018871 +v 0.018896 -0.082870 0.010437 +v 0.024579 -0.082529 0.020185 +v 0.019022 -0.084123 0.026252 +v 0.013795 -0.084360 0.032707 +v 0.023509 -0.080467 0.037400 +v 0.011878 -0.082492 0.039819 +v 0.019922 -0.077271 0.045553 +v 0.013964 -0.069557 0.054926 +v 0.016508 -0.075126 0.049513 +v 0.024412 -0.067835 0.053336 +v 0.011202 -0.064672 0.058373 +v 0.023465 -0.058697 0.058791 +v 0.008417 -0.057477 0.061892 +v 0.008386 -0.022886 0.066666 +v -0.000339 -0.003382 0.066015 +v -0.002937 -0.023082 0.066984 +v 0.010917 -0.038804 0.065710 +v -0.000938 -0.039691 0.066189 +v -0.009081 -0.066020 0.058045 +v 0.000041 -0.070416 0.055714 +v 0.005547 -0.076212 0.050492 +v -0.005670 -0.076211 0.050488 +v 0.005557 -0.080991 0.044255 +v -0.005643 -0.080989 0.044260 +v -0.005727 -0.084902 0.035421 +v 0.002810 -0.085425 0.033446 +v 0.005971 -0.086471 0.022967 +v -0.002758 -0.086472 0.025626 +v 0.008291 -0.084308 0.008258 +v -0.002729 -0.084726 0.008454 +v 0.008236 -0.079305 -0.006723 +v -0.002731 -0.079736 -0.006531 +v 0.016498 -0.004731 0.064521 +v 0.002782 -0.050164 0.064349 +v 0.019362 -0.021992 0.065074 +v 0.021803 -0.037622 0.064094 +v 0.024466 -0.048033 0.061899 +v 0.018842 -0.079987 -0.000329 +v 0.018779 -0.073862 -0.014839 +v 0.018826 -0.066097 -0.028900 +v 0.029516 -0.012621 0.061774 +v 0.028483 -0.073437 0.046218 +v 0.028583 -0.076304 -0.002088 +v 0.028448 -0.070050 -0.016466 +v 0.028495 -0.062561 -0.029747 +v 0.023226 0.011035 0.060565 +v 0.008338 0.010672 0.063753 +v -0.019022 0.021241 0.059640 +v -0.013480 0.002062 0.064188 +v -0.026818 -0.005850 0.061986 +v -0.021195 -0.014947 0.064382 +v -0.014159 -0.030496 0.065899 +v -0.024783 -0.029160 0.063867 +v -0.014187 -0.046273 0.064180 +v -0.024848 -0.044768 0.062412 +v -0.011205 -0.057361 0.061556 +v -0.023765 -0.072161 -0.015493 +v -0.023815 -0.078303 -0.001216 +v -0.027328 -0.054774 0.059114 +v -0.024380 -0.067806 0.053351 +v -0.026736 -0.060575 0.056976 +v -0.024899 -0.073170 0.048368 +v -0.024459 -0.077075 0.043638 +v -0.023707 -0.080031 0.038194 +v -0.024080 -0.081974 0.030983 +v -0.026431 -0.081966 0.020497 +v -0.021439 -0.082915 0.013611 +v -0.030235 0.009438 0.058099 +v -0.011733 -0.074985 -0.015350 +v -0.013595 -0.081238 0.000193 +v -0.010931 -0.085310 0.014897 +v -0.013699 -0.085334 0.024878 +v -0.013871 -0.083907 0.034748 +v -0.014533 -0.080833 0.042299 +v -0.014680 -0.073743 0.051439 +v -0.008829 -0.012934 0.066270 +vn -0.810100 0.478600 0.338500 +vn -0.994700 0.039900 0.094900 +vn -0.703900 0.673900 -0.224200 +vn -0.724100 0.602800 -0.335000 +vn -0.740800 0.382600 -0.552100 +vn -0.717900 0.271000 -0.641200 +vn -0.936500 -0.267600 -0.226700 +vn -0.661100 0.187000 -0.726600 +vn -0.612700 0.106500 -0.783100 +vn -0.481500 -0.692000 -0.537800 +vn -0.559100 0.041600 -0.828000 +vn -0.421600 -0.090500 -0.902200 +vn -0.223200 -0.161800 -0.961200 +vn -0.098700 -0.191600 -0.976500 +vn -0.003600 -0.858100 -0.513500 +vn 0.108100 -0.201300 -0.973500 +vn 0.227900 -0.153000 -0.961600 +vn 0.532200 -0.682900 -0.500400 +vn 0.812000 -0.465000 -0.352700 +vn 0.497600 -0.011700 -0.867300 +vn 0.651300 0.169800 -0.739500 +vn 0.689300 0.242300 -0.682700 +vn 0.726900 0.304500 -0.615500 +vn 0.977100 0.118200 0.176700 +vn 0.746700 0.414200 -0.520400 +vn 0.732300 0.575600 -0.363900 +vn 0.722600 0.620200 -0.305200 +vn 0.690200 0.701000 -0.179400 +vn 0.793100 0.492500 0.358400 +vn 0.630700 0.772700 -0.070800 +vn -0.670700 0.728600 -0.138500 +vn 0.000000 1.000000 0.000000 +vn -0.240000 0.654300 -0.717100 +vn -0.739200 0.671400 -0.052200 +vn 0.063000 0.703700 -0.707700 +vn -0.294300 0.669500 0.682000 +vn 0.294300 0.669500 -0.682000 +vn -0.063000 0.703700 0.707700 +vn 0.240000 0.654300 0.717100 +vn 0.532500 0.664000 0.524900 +vn 0.522600 0.670000 -0.527100 +vn 0.663900 0.674000 0.323900 +vn -0.700400 0.659700 0.272300 +vn -0.522600 0.670000 0.527100 +vn -0.523500 0.668500 -0.528200 +vn -0.680000 0.669800 -0.298200 +vn 0.735900 0.676300 0.032300 +vn 0.700200 0.660100 -0.271800 +vn -0.651100 -0.365600 -0.665000 +vn 0.651100 0.365600 -0.665000 +vn 0.709700 0.054000 -0.702500 +vn -0.000000 0.000000 -1.000000 +vn 0.200000 0.712200 -0.672800 +vn 0.440000 0.592800 -0.674500 +vn 0.719300 -0.176800 -0.671800 +vn 0.594500 -0.438300 -0.674200 +vn -0.709700 -0.054000 -0.702500 +vn -0.073800 0.738100 -0.670600 +vn -0.353800 0.661900 -0.660800 +vn -0.719300 0.176800 -0.671800 +vn -0.594500 0.438300 -0.674200 +vn 0.353800 -0.661900 -0.660800 +vn 0.073800 -0.738100 -0.670600 +vn -0.200000 -0.712200 -0.672800 +vn -0.440000 -0.592800 -0.674500 +vn 0.030800 -0.248200 0.968200 +vn -0.115500 -0.222100 0.968100 +vn -0.997500 0.057000 0.041600 +vn -0.345900 0.185000 0.919800 +vn -0.418000 -0.896500 0.146900 +vn -0.245300 -0.955000 0.166400 +vn -0.747700 -0.460800 0.478100 +vn -0.716700 -0.571500 0.399700 +vn -0.133900 -0.976800 0.166800 +vn -0.518100 -0.827800 0.215400 +vn -0.571900 -0.781400 0.249600 +vn -0.682300 -0.644600 0.344900 +vn -0.464400 -0.226900 0.856000 +vn -0.718500 0.558500 0.414400 +vn -0.331000 -0.233300 0.914300 +vn -0.720800 0.563200 0.403800 +vn -0.632900 -0.712200 0.303400 +vn -0.624500 -0.269500 0.733000 +vn -0.538700 -0.249400 0.804700 +vn -0.671800 -0.288100 0.682400 +vn -0.704100 -0.314700 0.636500 +vn -0.648800 0.760800 -0.014100 +vn -0.599300 0.749000 -0.282600 +vn -0.453800 0.750600 -0.480300 +vn -0.283200 0.747500 -0.600900 +vn 0.024000 0.757400 -0.652500 +vn 0.282600 0.749000 -0.599300 +vn 0.479400 0.748500 -0.458000 +vn 0.605600 0.747400 -0.273100 +vn 0.691400 0.720300 -0.056800 +vn 0.609300 0.766100 0.204600 +vn 0.459900 0.755500 0.466600 +vn 0.283200 0.747300 0.601000 +vn -0.023900 0.757300 0.652500 +vn -0.282600 0.749000 0.599300 +vn -0.479600 0.748500 0.458000 +vn -0.605900 0.748300 0.270200 +vn -0.753900 -0.485000 -0.443100 +vn -0.833400 -0.400700 -0.380500 +vn -0.961500 0.148900 -0.231000 +vn -0.904400 0.296800 -0.306600 +vn -0.919100 0.193900 -0.342900 +vn -0.617000 -0.156300 -0.771300 +vn -0.568900 -0.281900 -0.772500 +vn -0.856000 -0.386700 -0.343200 +vn -0.589800 -0.032600 -0.806800 +vn -0.919600 -0.222100 -0.324000 +vn -0.689600 0.094700 -0.717900 +vn -0.817000 0.124100 -0.563100 +vn -0.498300 0.701700 -0.509200 +vn -0.619700 0.704500 -0.345800 +vn -0.910000 0.097300 -0.402900 +vn -0.683700 0.704200 -0.191500 +vn -0.966500 0.127000 -0.223200 +vn -0.988400 0.144500 -0.045400 +vn -0.702900 0.710400 -0.034800 +vn -0.685000 0.716700 0.130700 +vn -0.630100 0.719600 0.291800 +vn -0.924000 0.116700 0.364000 +vn -0.557400 0.725300 0.404000 +vn -0.834400 0.147000 0.531100 +vn -0.730100 0.133000 0.670200 +vn -0.463500 0.716900 0.520700 +vn -0.961400 0.157100 0.225700 +vn -0.968600 0.194300 0.155000 +vn -0.980700 0.172600 0.091400 +vn -0.975900 -0.112600 -0.186900 +vn -0.941400 -0.174400 -0.288700 +vn -0.747200 -0.551300 -0.371100 +vn -0.652100 -0.655400 -0.381000 +vn -0.529600 -0.355400 -0.770200 +vn -0.433700 -0.493700 -0.753700 +vn -0.546700 0.312100 -0.777000 +vn -0.777700 0.568900 -0.267400 +vn -0.511400 0.404500 -0.758100 +vn -0.874900 0.350100 -0.334400 +vn -0.593500 0.189600 -0.782200 +vn -0.603400 0.085700 -0.792800 +vn -0.933000 0.203700 -0.296600 +vn -0.827500 0.459500 -0.322500 +vn -0.715100 0.646500 -0.265700 +vn -0.987900 0.049100 -0.147300 +vn -0.962600 -0.027100 -0.269600 +vn -0.944300 0.065900 -0.322300 +vn -0.997000 0.076200 -0.006900 +vn -0.957600 0.236500 -0.164100 +vn -0.979100 0.199200 -0.039500 +vn -0.818500 0.404300 -0.408200 +vn -0.733100 0.385400 -0.560300 +vn -0.759400 0.501800 -0.414100 +vn -0.668200 0.350000 -0.656400 +vn -0.653100 0.493700 -0.574100 +vn -0.791500 0.364600 -0.490500 +vn -0.876800 0.330300 -0.349500 +vn -0.672400 0.597800 -0.436400 +vn -0.928000 0.121600 -0.352100 +vn -0.939800 0.039900 -0.339200 +vn -0.974100 0.224800 0.024600 +vn -0.938800 0.236600 -0.250300 +vn -0.962600 0.257900 -0.082400 +vn -0.792900 0.261800 -0.550100 +vn -0.718400 0.213200 -0.662100 +vn -0.987500 0.132800 0.085200 +vn -0.896800 0.217600 -0.385100 +vn -0.898900 -0.267700 -0.346700 +vn -0.930100 -0.069300 -0.360700 +vn 0.021200 -0.649300 -0.760200 +vn 0.272600 -0.604200 -0.748700 +vn 0.477500 -0.466100 -0.744700 +vn 0.612100 -0.270100 -0.743200 +vn 0.696100 -0.047600 -0.716400 +vn 0.612500 0.193400 -0.766400 +vn 0.470800 0.469900 -0.746600 +vn 0.265100 0.613300 -0.744000 +vn -0.020900 0.649700 -0.759900 +vn -0.272600 0.604400 -0.748600 +vn -0.477500 0.466300 -0.744700 +vn -0.612200 0.270200 -0.743100 +vn -0.696400 0.047400 -0.716100 +vn -0.612400 -0.193400 -0.766600 +vn -0.470800 -0.469700 -0.746800 +vn -0.265300 -0.612700 -0.744400 +vn 0.611500 -0.622400 -0.488400 +vn 0.461700 -0.727000 -0.508100 +vn 0.486800 -0.435100 -0.757400 +vn 0.636600 -0.669200 -0.383200 +vn 0.338800 -0.584700 -0.737100 +vn 0.521000 -0.784600 -0.336200 +vn 0.331600 -0.873400 -0.356500 +vn 0.179300 -0.628000 -0.757200 +vn 0.146000 -0.913200 -0.380500 +vn -0.010900 -0.686600 -0.726900 +vn 0.065400 -0.969300 -0.236900 +vn -0.153300 -0.924900 -0.348000 +vn -0.159900 -0.630500 -0.759500 +vn -0.312300 -0.865500 -0.391600 +vn -0.310300 -0.585600 -0.748800 +vn -0.517500 -0.771800 -0.369400 +vn -0.433000 -0.749300 -0.501100 +vn -0.077900 -0.885000 -0.458900 +vn 0.284200 -0.948000 0.142800 +vn 0.317100 -0.818400 -0.479200 +vn 0.194600 -0.965900 0.170800 +vn 0.096400 -0.979900 0.174500 +vn 0.261300 0.186900 0.947000 +vn 0.719100 -0.562100 0.408600 +vn 0.753500 -0.436300 0.491800 +vn 0.136400 -0.197900 0.970700 +vn 0.735800 -0.378200 0.561800 +vn 0.535300 -0.821900 0.194600 +vn 0.376900 -0.228900 0.897500 +vn 0.280200 -0.233900 0.931000 +vn 0.894500 0.367300 0.254800 +vn 0.686900 -0.643800 0.337000 +vn 0.462600 -0.233400 0.855300 +vn 0.507700 -0.250000 0.824500 +vn 0.663300 -0.694800 0.277800 +vn 0.581200 -0.265000 0.769400 +vn 0.634900 -0.273900 0.722300 +vn 0.673000 -0.284800 0.682600 +vn -0.585600 0.135200 0.799200 +vn -0.308700 0.716900 0.625000 +vn -0.389900 0.130400 0.911600 +vn -0.147800 0.713500 0.684900 +vn -0.103800 0.125100 0.986700 +vn 0.050300 0.690800 0.721200 +vn 0.320600 0.724700 0.609900 +vn 0.149600 0.723000 0.674400 +vn 0.609100 0.125500 0.783100 +vn 0.502200 0.709300 0.494600 +vn 0.724600 0.145200 0.673700 +vn -0.161700 0.709400 -0.686000 +vn -0.328000 0.712600 -0.620100 +vn -0.015700 0.708100 -0.705900 +vn 0.155300 0.706000 -0.690900 +vn 0.429700 0.715700 -0.550500 +vn 0.318700 0.709700 -0.628200 +vn 0.681600 0.714400 0.158100 +vn 0.714300 0.699400 -0.023000 +vn 0.532200 0.706500 -0.466400 +vn 0.623900 0.710700 0.325000 +vn 0.678300 0.703900 -0.210700 +vn 0.618800 0.703100 -0.350200 +vn -0.271800 0.719600 -0.639000 +vn -0.434600 0.718700 -0.542700 +vn -0.346000 0.535500 -0.770400 +vn 0.041700 0.251100 -0.967000 +vn 0.231500 0.357800 -0.904600 +vn 0.140400 0.510200 -0.848500 +vn 0.076900 0.615800 -0.784100 +vn 0.067000 0.810800 -0.581400 +vn 0.206600 0.917000 -0.341200 +vn 0.389000 0.490500 -0.779700 +vn 0.275200 0.553200 -0.786200 +vn 0.539000 0.749000 -0.385200 +vn 0.554000 0.140900 -0.820500 +vn 0.421000 0.139700 -0.896200 +vn 0.122100 0.123800 -0.984700 +vn 0.285100 0.147200 -0.947100 +vn -0.047700 0.117200 -0.991900 +vn -0.338700 0.141600 -0.930100 +vn -0.616000 0.204100 -0.760800 +vn -0.420800 0.472900 -0.774100 +vn -0.353000 0.866900 -0.351800 +vn -0.293700 0.602000 -0.742500 +vn -0.515800 0.788800 -0.334200 +vn -0.104200 0.600500 -0.792800 +vn -0.214700 0.812500 -0.541900 +vn 0.157600 0.564700 -0.810100 +vn 0.311700 0.850900 -0.422900 +vn 0.208400 0.777600 -0.593200 +vn 0.323400 0.656400 -0.681500 +vn 0.418700 0.799000 -0.431600 +vn 0.504700 0.583600 -0.636100 +vn 0.674600 0.617900 -0.403900 +vn 0.719700 0.634500 -0.281700 +vn 0.468600 0.446600 -0.762200 +vn 0.390900 0.456300 -0.799300 +vn 0.656500 0.482100 -0.580100 +vn 0.529500 0.334800 -0.779400 +vn 0.655400 0.351200 -0.668700 +vn 0.353400 0.248000 -0.902000 +vn 0.683300 0.147500 -0.715100 +vn 0.668900 0.244100 -0.702100 +vn 0.766800 0.097000 -0.634400 +vn -0.197100 0.114400 -0.973700 +vn -0.530300 0.126800 -0.838200 +vn -0.593200 0.709100 -0.381100 +vn -0.505400 0.591600 -0.628200 +vn -0.532900 0.449000 -0.717200 +vn -0.494300 0.294800 -0.817800 +vn -0.299400 0.324400 -0.897300 +vn -0.067800 0.811500 -0.580400 +vn -0.185100 0.535400 -0.824100 +vn -0.036600 0.525600 -0.849900 +vn -0.133900 0.283100 -0.949700 +vn 0.524700 0.363800 -0.769600 +vn 0.568200 0.265800 -0.778800 +vn -0.001200 0.000400 -1.000000 +vn 0.554600 -0.325800 -0.765600 +vn 0.606900 -0.218500 -0.764100 +vn 0.634300 -0.104100 -0.766000 +vn 0.000400 0.000000 -1.000000 +vn 0.591200 0.132500 -0.795600 +vn 0.628900 0.050200 -0.775800 +vn 0.850300 -0.400600 -0.341300 +vn 0.763700 -0.532600 -0.364800 +vn 0.916800 0.122000 0.380100 +vn 0.968700 0.198900 0.148000 +vn 0.983900 0.155900 0.086800 +vn 0.987000 0.149200 -0.060200 +vn 0.860900 -0.336500 -0.381500 +vn 0.949800 -0.168400 -0.263700 +vn 0.983800 -0.090000 -0.154800 +vn 0.784800 0.149000 0.601500 +vn 0.848300 0.133500 0.512300 +vn 0.961400 0.130200 0.242500 +vn 0.991500 0.104900 0.076500 +vn 0.937900 0.111500 -0.328400 +vn 0.982000 0.112100 -0.151800 +vn 0.776000 0.200400 -0.598000 +vn 0.734500 0.361600 -0.574200 +vn 0.751400 0.493000 -0.438500 +vn 0.767200 0.583100 -0.266900 +vn 0.925100 0.125200 -0.358300 +vn 0.921900 -0.012500 -0.387200 +vn 0.937400 -0.074600 -0.340000 +vn 0.942800 0.011700 -0.333200 +vn 0.909700 -0.165300 -0.380900 +vn 0.914900 0.203100 -0.348800 +vn 0.939200 0.091500 -0.330900 +vn 0.908700 0.241000 -0.340900 +vn 0.875000 0.345000 -0.339600 +vn 0.818500 0.448200 -0.359300 +vn 0.911700 -0.232000 -0.339000 +vn 0.958600 -0.032300 -0.282700 +vn 0.987100 0.050100 -0.151700 +vn 0.959000 0.151700 -0.239400 +vn 0.954200 0.241600 -0.176400 +vn 0.974500 0.218400 0.051300 +vn 0.961300 0.263600 -0.079200 +vn 0.909900 0.290100 -0.296500 +vn 0.856500 0.344900 -0.383900 +vn 0.809100 0.401700 -0.428900 +vn 0.802900 0.351700 -0.481300 +vn 0.945900 0.243800 -0.214100 +vn 0.907800 0.249600 -0.336900 +vn 0.870100 0.095200 -0.483600 +vn 0.853800 0.205200 -0.478500 +vn 0.916700 0.213000 -0.338200 +vn 0.973500 0.165100 0.157900 +vn 0.982700 0.182800 -0.030400 +vn 0.778600 -0.455700 -0.431300 +vn 0.909800 -0.250900 -0.330700 +vn 0.885600 -0.257200 -0.386600 +vn 0.942000 -0.107200 -0.317800 +vn -0.884900 -0.191600 0.424500 +vn -0.894600 -0.353700 0.273100 +vn -0.811800 -0.397800 0.427500 +vn -0.809000 -0.501800 0.306200 +vn -0.619700 -0.593900 0.513000 +vn -0.831700 0.045700 0.553300 +vn -0.739600 0.036700 0.672100 +vn -0.728600 0.125300 0.673400 +vn -0.523200 0.028000 0.851700 +vn -0.767800 -0.076400 0.636000 +vn -0.949400 -0.289900 -0.120800 +vn -0.981100 -0.183600 0.061000 +vn -0.992300 -0.117100 0.040000 +vn -0.875000 -0.420900 -0.239300 +vn -0.982800 0.041800 0.179900 +vn -0.735100 0.547900 -0.399200 +vn -0.959500 0.065300 0.274100 +vn -0.877400 0.164200 0.450700 +vn -0.820200 0.149300 0.552300 +vn -0.592700 0.212200 0.776900 +vn -0.607400 0.793600 -0.035200 +vn -0.726200 0.181700 0.663000 +vn -0.563600 0.159000 0.810600 +vn -0.529600 0.110800 0.841000 +vn -0.605900 -0.794200 -0.044100 +vn -0.613100 -0.777000 0.142400 +vn -0.761800 -0.647300 0.024500 +vn -0.691500 -0.663600 -0.285400 +vn -0.566200 -0.765100 -0.306700 +vn -0.716400 -0.680100 -0.155400 +vn -0.589900 -0.789800 -0.168100 +vn -0.549000 -0.746600 -0.375600 +vn -0.706300 -0.606400 -0.365300 +vn -0.527500 -0.712000 -0.463400 +vn -0.914100 -0.389700 -0.112000 +vn -0.960300 -0.276500 0.035600 +vn -0.927400 -0.370900 0.049000 +vn -0.960700 -0.221000 0.167900 +vn -0.957900 0.104500 0.267600 +vn -0.921400 0.083400 0.379500 +vn -0.937300 -0.136900 0.320400 +vn -0.937000 -0.007200 0.349100 +vn -0.973600 -0.069200 0.217500 +vn -0.884500 0.064500 0.462000 +vn -0.628900 -0.702700 0.332700 +vn -0.796900 -0.575600 0.183100 +vn -0.544900 -0.112300 0.830900 +vn -0.556400 -0.291700 0.778000 +vn -0.781400 -0.184900 0.596000 +vn -0.803000 -0.302700 0.513300 +vn -0.600400 -0.456600 0.656500 +vn -0.868500 -0.488800 0.081600 +vn -0.818400 -0.567500 -0.090400 +vn -0.878000 -0.046100 0.476500 +vn -0.790300 -0.542600 -0.284500 +vn -0.811500 -0.549600 -0.198200 +vn -0.885800 -0.461400 -0.049500 +vn -0.930600 -0.295200 0.216400 +vn -0.067200 0.961400 0.266700 +vn -0.237100 0.948200 0.211400 +vn -0.496600 0.864200 0.080200 +vn 0.830000 0.141400 0.539400 +vn 0.877900 0.162000 0.450600 +vn 0.960900 0.065200 0.268900 +vn 0.988100 0.005600 0.153500 +vn 0.985100 -0.169800 0.027600 +vn 0.940500 -0.316500 -0.123000 +vn 0.872400 -0.427700 -0.236700 +vn 0.766700 -0.542400 -0.343300 +vn 0.543000 -0.710000 -0.448400 +vn 0.718700 -0.610800 -0.332200 +vn 0.529500 -0.754800 -0.387100 +vn 0.717400 -0.678300 -0.158800 +vn 0.585300 -0.795500 -0.156800 +vn 0.540700 -0.791500 -0.284900 +vn 0.723300 0.113300 0.681100 +vn 0.523200 0.074900 0.848900 +vn 0.742000 0.029300 0.669700 +vn 0.575500 0.181300 0.797400 +vn 0.733900 0.188300 0.652500 +vn 0.657000 0.212700 0.723300 +vn 0.960600 -0.233300 0.151000 +vn 0.944500 -0.328400 0.006000 +vn 0.980700 -0.083500 0.176900 +vn 0.917800 0.090300 0.386700 +vn 0.943700 -0.007500 0.330700 +vn 0.953900 -0.107200 0.280200 +vn 0.540800 -0.030900 0.840500 +vn 0.678200 -0.680600 -0.277200 +vn 0.797000 -0.575600 0.182700 +vn 0.628900 -0.761700 0.155600 +vn 0.759100 -0.650900 0.011400 +vn 0.785200 -0.192800 0.588400 +vn 0.565800 -0.352900 0.745200 +vn 0.804600 -0.303000 0.510600 +vn 0.598300 -0.467500 0.650700 +vn 0.811000 -0.398400 0.428400 +vn 0.600500 -0.599300 0.529400 +vn 0.811300 -0.497700 0.306700 +vn 0.624500 -0.690800 0.364300 +vn 0.536600 -0.190600 0.822000 +vn 0.767200 -0.082300 0.636000 +vn 0.884700 -0.191800 0.424800 +vn 0.894500 -0.355400 0.271100 +vn 0.871000 -0.483600 0.086400 +vn 0.834200 0.051400 0.549000 +vn 0.860400 -0.054500 0.506600 +vn 0.825600 -0.513400 -0.233800 +vn 0.788000 -0.577900 -0.212400 +vn 0.880400 -0.456500 -0.128800 +vn 0.819900 -0.565000 -0.092300 +vn 0.905700 -0.423100 0.023700 +vn 0.607300 -0.794400 -0.004700 +vn 0.900000 0.007400 0.435700 +vn 0.927800 -0.147400 0.342600 +vn 0.931900 -0.298300 0.206200 +vn 0.112000 0.949500 0.292900 +vn 0.544300 0.838600 0.020300 +vn 0.432100 0.891300 0.137500 +vn 0.471500 0.207200 0.857200 +vn 0.416300 0.172600 0.892600 +vn 0.058300 -0.877900 -0.475200 +vn -0.178600 -0.847500 -0.499800 +vn -0.353900 -0.814000 -0.460600 +vn -0.419100 -0.853300 -0.310100 +vn -0.445200 -0.879000 -0.170500 +vn -0.458800 -0.887800 0.035300 +vn -0.455800 -0.859600 0.230900 +vn -0.450900 -0.781900 0.430300 +vn -0.411400 -0.642700 0.646300 +vn -0.390300 -0.488600 0.780300 +vn -0.337200 -0.151000 0.929200 +vn -0.334700 -0.008900 0.942300 +vn -0.126300 0.174400 0.976500 +vn 0.008800 0.181000 0.983400 +vn 0.315300 -0.046600 0.947800 +vn 0.335900 -0.374100 0.864400 +vn 0.392600 -0.560400 0.729200 +vn 0.409100 -0.796400 0.445300 +vn 0.452800 -0.836700 0.308100 +vn 0.424000 -0.894500 0.141900 +vn 0.463200 -0.886000 -0.018300 +vn 0.410800 -0.896100 -0.168000 +vn 0.175300 -0.981200 -0.080000 +vn 0.244700 -0.950200 -0.193000 +vn 0.326300 -0.944300 -0.042300 +vn 0.255100 -0.963400 0.081700 +vn 0.181300 -0.962200 0.203300 +vn 0.315200 -0.888600 0.333100 +vn 0.151800 -0.904900 0.397600 +vn 0.252600 -0.802900 0.540000 +vn 0.158700 -0.575200 0.802500 +vn 0.193400 -0.718600 0.667900 +vn 0.276700 -0.568900 0.774400 +vn 0.111900 -0.463900 0.878800 +vn 0.228700 -0.384600 0.894300 +vn 0.079500 -0.336400 0.938300 +vn 0.084500 0.003800 0.996400 +vn 0.001800 0.102900 0.994700 +vn -0.026100 -0.002900 0.999600 +vn 0.106500 -0.113400 0.987800 +vn -0.015000 -0.113000 0.993500 +vn -0.095800 -0.487600 0.867800 +vn 0.003700 -0.567100 0.823600 +vn 0.067600 -0.723400 0.687000 +vn -0.070800 -0.724000 0.686100 +vn 0.063300 -0.860100 0.506100 +vn -0.067600 -0.856800 0.511200 +vn -0.071700 -0.956900 0.281300 +vn 0.044300 -0.969800 0.239500 +vn 0.071400 -0.997400 -0.007300 +vn -0.042800 -0.998300 0.039200 +vn 0.093000 -0.969100 -0.228400 +vn -0.025700 -0.974000 -0.224800 +vn 0.089300 -0.922600 -0.375100 +vn -0.026900 -0.925600 -0.377500 +vn 0.184600 0.101200 0.977600 +vn 0.026000 -0.238800 0.970700 +vn 0.200700 0.019300 0.979400 +vn 0.207100 -0.095500 0.973600 +vn 0.236300 -0.215100 0.947600 +vn 0.224400 -0.922600 -0.313800 +vn 0.211700 -0.879900 -0.425200 +vn 0.209800 -0.843600 -0.494200 +vn 0.321100 0.091300 0.942600 +vn 0.357100 -0.733800 0.578000 +vn 0.355300 -0.880700 -0.313300 +vn 0.333200 -0.842900 -0.422500 +vn 0.330900 -0.805100 -0.492200 +vn 0.298800 0.175000 0.938100 +vn 0.105700 0.157200 0.981900 +vn -0.270100 0.181600 0.945500 +vn -0.163900 0.134900 0.977200 +vn -0.313900 0.120000 0.941800 +vn -0.234600 0.056000 0.970500 +vn -0.139600 -0.049400 0.989000 +vn -0.245900 -0.029100 0.968800 +vn -0.137800 -0.191000 0.971900 +vn -0.232400 -0.171500 0.957400 +vn -0.111400 -0.333500 0.936100 +vn -0.271500 -0.867100 -0.417600 +vn -0.288700 -0.905200 -0.311800 +vn -0.271700 -0.305600 0.912500 +vn -0.267600 -0.566100 0.779600 +vn -0.272700 -0.424700 0.863200 +vn -0.305600 -0.701800 0.643400 +vn -0.310700 -0.799400 0.514200 +vn -0.319200 -0.883800 0.341900 +vn -0.321600 -0.932200 0.165800 +vn -0.351500 -0.935800 -0.026900 +vn -0.272900 -0.949100 -0.157000 +vn -0.390000 0.184100 0.902200 +vn -0.121300 -0.889800 -0.439800 +vn -0.158500 -0.936400 -0.313000 +vn -0.128100 -0.982800 -0.133300 +vn -0.181200 -0.982500 0.042600 +vn -0.184000 -0.949600 0.253600 +vn -0.179000 -0.862100 0.474000 +vn -0.172900 -0.680300 0.712200 +vn -0.102400 0.059200 0.993000 +usemtl None +s 1 +f 1//1 2//2 3//3 +f 3//3 2//2 4//4 +f 5//5 2//2 6//6 +f 2//2 7//7 6//6 +f 8//8 7//7 9//9 +f 9//9 7//7 10//10 +f 9//9 10//10 11//11 +f 11//11 10//10 12//12 +f 12//12 10//10 13//13 +f 13//13 10//10 14//14 +f 14//14 10//10 15//15 +f 16//16 15//15 17//17 +f 17//17 15//15 18//18 +f 19//19 20//20 18//18 +f 21//21 19//19 22//22 +f 22//22 19//19 23//23 +f 23//23 19//19 24//24 +f 23//23 24//24 25//25 +f 26//26 24//24 27//27 +f 27//27 24//24 28//28 +f 24//24 29//29 28//28 +f 28//28 29//29 30//30 +f 3//3 31//31 1//1 +f 32//32 33//33 34//34 +f 35//35 36//36 37//37 +f 37//37 36//36 38//38 +f 38//38 39//32 37//37 +f 37//37 39//32 40//39 +f 37//37 40//39 41//40 +f 42//41 37//37 43//42 +f 43//42 37//37 41//40 +f 32//32 34//34 35//35 +f 35//35 34//34 44//43 +f 35//35 44//43 45//44 +f 34//34 33//33 46//45 +f 34//34 46//45 47//46 +f 35//35 45//44 36//36 +f 42//41 43//42 48//47 +f 48//47 49//48 42//41 +f 50//49 51//50 52//51 +f 50//49 52//51 53//52 +f 50//49 54//53 55//54 +f 53//52 56//55 50//49 +f 50//49 56//55 57//56 +f 50//49 58//57 59//58 +f 59//58 58//57 60//52 +f 61//59 62//60 63//61 +f 50//49 59//58 54//53 +f 50//49 55//54 51//50 +f 64//62 65//63 66//64 +f 64//62 66//64 67//65 +f 50//49 57//56 64//62 +f 50//49 64//62 67//65 +f 60//52 62//60 59//58 +f 59//58 62//60 61//59 +f 68//66 69//67 70//68 +f 70//68 69//67 71//69 +f 10//10 72//70 73//71 +f 2//2 74//72 75//73 +f 10//10 73//71 76//74 +f 10//10 76//74 15//15 +f 72//70 10//10 77//75 +f 10//10 78//76 77//75 +f 2//2 75//73 7//7 +f 7//7 75//73 79//77 +f 80//78 81//79 82//80 +f 83//81 81//79 80//78 +f 71//69 82//80 81//79 +f 7//7 79//77 84//82 +f 7//7 84//82 10//10 +f 10//10 84//82 78//76 +f 85//83 2//2 86//84 +f 86//84 2//2 1//1 +f 86//84 1//1 80//78 +f 80//78 1//1 83//81 +f 87//85 2//2 85//83 +f 2//2 87//85 88//86 +f 89//87 34//34 47//46 +f 89//87 47//46 90//88 +f 90//88 47//46 46//45 +f 90//88 46//45 91//89 +f 91//89 46//45 33//33 +f 91//89 33//33 92//90 +f 92//90 33//33 93//91 +f 93//91 33//33 35//35 +f 93//91 35//35 37//37 +f 93//91 37//37 94//92 +f 94//92 37//37 42//41 +f 94//92 42//41 95//93 +f 95//93 42//41 49//48 +f 95//93 49//48 96//94 +f 96//94 49//48 97//95 +f 97//95 49//48 48//47 +f 97//95 48//47 98//96 +f 98//96 48//47 43//42 +f 98//96 43//42 41//40 +f 98//96 41//40 99//97 +f 99//97 41//40 40//39 +f 99//97 40//39 100//98 +f 100//98 40//39 101//99 +f 101//99 40//39 38//38 +f 101//99 38//38 36//36 +f 101//99 36//36 102//100 +f 102//100 36//36 45//44 +f 102//100 45//44 103//101 +f 103//101 45//44 44//43 +f 103//101 44//43 104//102 +f 104//102 44//43 89//87 +f 89//87 44//43 34//34 +f 105//103 78//76 106//104 +f 107//105 108//106 109//107 +f 110//108 111//109 112//110 +f 113//111 110//108 114//112 +f 115//113 116//114 117//115 +f 116//114 118//116 117//115 +f 118//116 116//114 119//117 +f 118//116 119//117 120//118 +f 121//119 120//118 119//117 +f 122//120 123//121 121//119 +f 121//119 123//121 120//118 +f 122//120 124//122 123//121 +f 125//123 124//122 126//124 +f 127//125 125//123 128//126 +f 128//126 125//123 126//124 +f 127//125 129//127 130//128 +f 86//84 128//126 85//83 +f 87//85 85//83 131//129 +f 132//130 88//86 87//85 +f 2//2 88//86 133//131 +f 74//72 134//132 75//73 +f 75//73 135//133 79//77 +f 106//104 78//76 84//82 +f 136//134 137//135 72//70 +f 137//135 138//136 139//137 +f 140//138 141//139 142//140 +f 143//141 140//138 144//142 +f 144//142 145//143 146//144 +f 147//145 141//139 140//138 +f 147//145 140//138 143//141 +f 146//144 143//141 144//142 +f 141//139 148//146 142//140 +f 75//73 134//132 135//133 +f 74//72 149//147 134//132 +f 134//132 149//147 150//148 +f 134//132 150//148 135//133 +f 109//107 151//149 107//105 +f 107//105 151//149 150//148 +f 107//105 150//148 149//147 +f 74//72 152//150 149//147 +f 153//151 108//106 107//105 +f 154//152 153//151 149//147 +f 154//152 149//147 152//150 +f 2//2 152//150 74//72 +f 153//151 107//105 149//147 +f 143//141 108//106 155//153 +f 155//153 156//154 157//155 +f 155//153 157//155 147//145 +f 147//145 143//141 155//153 +f 158//156 159//157 156//154 +f 160//158 156//154 155//153 +f 161//159 155//153 108//106 +f 156//154 159//157 157//155 +f 157//155 159//157 162//160 +f 162//160 148//146 141//139 +f 163//161 146//144 145//143 +f 163//161 145//143 164//162 +f 164//162 145//143 113//111 +f 132//130 165//163 133//131 +f 132//130 133//131 88//86 +f 161//159 108//106 166//164 +f 166//164 108//106 153//151 +f 154//152 133//131 165//163 +f 154//152 165//163 167//165 +f 168//166 169//167 158//156 +f 153//151 154//152 167//165 +f 153//151 167//165 166//164 +f 161//159 168//166 160//158 +f 160//158 168//166 156//154 +f 156//154 168//166 158//156 +f 170//168 124//122 122//120 +f 132//130 87//85 131//129 +f 128//126 86//84 80//78 +f 128//126 80//78 129//127 +f 128//126 129//127 127//125 +f 128//126 126//124 85//83 +f 170//168 122//120 132//130 +f 132//130 122//120 165//163 +f 165//163 122//120 121//119 +f 165//163 121//119 167//165 +f 167//165 121//119 166//164 +f 171//169 116//114 168//166 +f 168//166 116//114 169//167 +f 126//124 124//122 131//129 +f 131//129 124//122 170//168 +f 166//164 121//119 119//117 +f 166//164 119//117 171//169 +f 171//169 119//117 116//114 +f 116//114 115//113 169//167 +f 85//83 126//124 131//129 +f 131//129 170//168 132//130 +f 166//164 171//169 161//159 +f 161//159 171//169 168//166 +f 137//135 136//134 138//136 +f 77//75 136//134 72//70 +f 136//134 77//75 105//103 +f 105//103 77//75 78//76 +f 106//104 84//82 172//170 +f 172//170 84//82 79//77 +f 113//111 114//112 173//171 +f 163//161 173//171 151//149 +f 163//161 151//149 109//107 +f 157//155 162//160 141//139 +f 157//155 141//139 147//145 +f 109//107 143//141 146//144 +f 109//107 146//144 163//161 +f 164//162 113//111 173//171 +f 164//162 173//171 163//161 +f 143//141 109//107 108//106 +f 114//112 112//110 172//170 +f 114//112 172//170 173//171 +f 173//171 172//170 135//133 +f 173//171 135//133 150//148 +f 173//171 150//148 151//149 +f 136//134 105//103 112//110 +f 112//110 105//103 106//104 +f 79//77 135//133 172//170 +f 106//104 172//170 112//110 +f 136//134 112//110 111//109 +f 136//134 111//109 138//136 +f 110//108 112//110 114//112 +f 161//159 160//158 155//153 +f 133//131 154//152 152//150 +f 133//131 152//150 2//2 +f 174//172 65//63 64//62 +f 174//172 64//62 175//173 +f 175//173 64//62 176//174 +f 176//174 64//62 57//56 +f 176//174 57//56 177//175 +f 177//175 57//56 56//55 +f 177//175 56//55 178//176 +f 178//176 56//55 52//51 +f 178//176 52//51 179//177 +f 179//177 52//51 51//50 +f 179//177 51//50 180//178 +f 180//178 51//50 55//54 +f 180//178 55//54 181//179 +f 181//179 55//54 54//53 +f 181//179 54//53 182//180 +f 182//180 54//53 59//58 +f 182//180 59//58 61//59 +f 182//180 61//59 183//181 +f 183//181 61//59 184//182 +f 184//182 61//59 63//61 +f 184//182 63//61 185//183 +f 185//183 63//61 62//60 +f 185//183 62//60 186//184 +f 186//184 62//60 58//57 +f 186//184 58//57 187//185 +f 187//185 58//57 50//49 +f 187//185 50//49 188//186 +f 188//186 50//49 67//65 +f 188//186 67//65 189//187 +f 189//187 67//65 66//64 +f 189//187 66//64 174//172 +f 174//172 66//64 65//63 +f 190//188 18//18 191//189 +f 192//190 193//191 194//192 +f 194//192 193//191 195//193 +f 196//194 194//192 195//193 +f 194//192 196//194 197//195 +f 198//196 197//195 196//194 +f 197//195 198//196 199//197 +f 199//197 198//196 200//198 +f 199//197 200//198 201//199 +f 201//199 202//200 199//197 +f 203//201 204//202 202//200 +f 205//203 204//202 203//201 +f 205//203 139//137 204//202 +f 139//137 205//203 137//135 +f 72//70 206//204 73//71 +f 207//205 15//15 76//74 +f 208//206 191//189 18//18 +f 191//189 208//206 209//207 +f 209//207 208//206 210//208 +f 201//199 203//201 202//200 +f 193//191 190//188 195//193 +f 195//193 190//188 191//189 +f 195//193 191//189 196//194 +f 196//194 191//189 209//207 +f 196//194 209//207 198//196 +f 200//198 198//196 207//205 +f 200//198 207//205 201//199 +f 201//199 207//205 203//201 +f 205//203 203//201 206//204 +f 205//203 206//204 137//135 +f 209//207 210//208 198//196 +f 198//196 210//208 211//209 +f 198//196 211//209 207//205 +f 207//205 211//209 15//15 +f 207//205 76//74 203//201 +f 203//201 76//74 73//71 +f 203//201 73//71 206//204 +f 137//135 206//204 72//70 +f 68//66 70//68 212//210 +f 213//211 214//212 24//24 +f 68//66 212//210 215//213 +f 24//24 214//212 216//214 +f 15//15 211//209 18//18 +f 208//206 18//18 210//208 +f 210//208 18//18 211//209 +f 19//19 213//211 24//24 +f 18//18 217//215 19//19 +f 212//210 218//216 219//217 +f 218//216 212//210 220//218 +f 19//19 221//219 213//211 +f 222//220 29//29 223//221 +f 224//222 221//219 19//19 +f 223//221 29//29 225//223 +f 225//223 29//29 24//24 +f 225//223 24//24 226//224 +f 220//218 29//29 218//216 +f 218//216 29//29 222//220 +f 24//24 227//225 226//224 +f 130//128 228//226 229//227 +f 229//227 228//226 230//228 +f 229//227 230//228 231//229 +f 232//230 231//229 230//228 +f 232//230 233//231 231//229 +f 234//232 235//233 215//213 +f 236//234 237//235 234//232 +f 236//234 238//236 237//235 +f 218//216 222//220 238//236 +f 233//231 232//230 235//233 +f 235//233 232//230 68//66 +f 68//66 232//230 69//67 +f 230//228 82//80 71//69 +f 82//80 230//228 228//226 +f 228//226 129//127 80//78 +f 219//217 218//216 236//234 +f 236//234 218//216 238//236 +f 219//217 236//234 234//232 +f 219//217 234//232 212//210 +f 212//210 234//232 215//213 +f 215//213 235//233 68//66 +f 69//67 232//230 71//69 +f 71//69 232//230 230//228 +f 130//128 129//127 228//226 +f 228//226 80//78 82//80 +f 100//98 239//237 240//238 +f 101//99 241//239 239//237 +f 93//91 231//229 233//231 +f 117//115 99//97 240//238 +f 240//238 99//97 100//98 +f 101//99 239//237 100//98 +f 242//240 241//239 101//99 +f 103//101 243//241 102//100 +f 102//100 243//241 244//242 +f 231//229 93//91 94//92 +f 130//128 229//227 94//92 +f 96//94 124//122 125//123 +f 99//97 117//115 118//116 +f 99//97 118//116 98//96 +f 89//87 245//243 246//244 +f 94//92 229//227 231//229 +f 95//93 130//128 94//92 +f 103//101 247//245 243//241 +f 248//246 245//243 90//88 +f 90//88 245//243 89//87 +f 248//246 90//88 91//89 +f 248//246 91//89 237//235 +f 130//128 95//93 127//125 +f 125//123 127//125 96//94 +f 96//94 127//125 95//93 +f 124//122 96//94 97//95 +f 249//32 124//122 97//95 +f 123//121 249//32 120//118 +f 120//118 249//32 98//96 +f 98//96 118//116 120//118 +f 102//100 242//240 101//99 +f 102//100 244//242 242//240 +f 92//90 235//233 234//232 +f 93//91 233//231 235//233 +f 123//121 124//122 249//32 +f 237//235 91//89 234//232 +f 234//232 91//89 92//90 +f 93//91 235//233 92//90 +f 104//102 250//247 251//248 +f 104//102 251//248 103//101 +f 103//101 251//248 247//245 +f 246//244 250//247 89//87 +f 89//87 250//247 104//102 +f 252//249 253//250 254//251 +f 255//252 256//253 257//254 +f 258//255 259//256 260//257 +f 261//258 262//259 263//260 +f 243//241 264//261 265//262 +f 243//241 265//262 244//242 +f 266//263 242//240 267//264 +f 267//264 242//240 265//262 +f 265//262 242//240 244//242 +f 241//239 266//263 268//265 +f 241//239 242//240 266//263 +f 268//265 239//237 241//239 +f 240//238 239//237 269//266 +f 169//167 270//267 158//156 +f 148//146 271//268 142//140 +f 272//269 273//270 274//271 +f 275//272 273//270 276//273 +f 262//259 277//274 278//275 +f 277//274 260//257 279//276 +f 278//275 279//276 280//277 +f 279//276 278//275 277//274 +f 260//257 277//274 258//255 +f 279//276 257//254 280//277 +f 280//277 257//254 256//253 +f 257//254 279//276 259//256 +f 281//278 263//260 262//259 +f 263//260 282//279 283//280 +f 280//277 282//279 281//278 +f 261//258 284//281 285//282 +f 281//278 282//279 263//260 +f 263//260 283//280 261//258 +f 261//258 283//280 284//281 +f 262//259 278//275 281//278 +f 281//278 278//275 280//277 +f 280//277 286//283 282//279 +f 268//265 266//263 255//252 +f 287//284 282//279 288//285 +f 287//284 288//285 289//286 +f 286//283 256//253 290//287 +f 255//252 266//263 256//253 +f 256//253 266//263 267//264 +f 256//253 267//264 290//287 +f 286//283 288//285 282//279 +f 282//279 287//284 283//280 +f 291//288 292//289 264//261 +f 264//261 292//289 288//285 +f 264//261 288//285 265//262 +f 265//262 288//285 290//287 +f 265//262 290//287 267//264 +f 264//261 243//241 291//288 +f 293//290 291//288 243//241 +f 293//290 243//241 247//245 +f 269//266 239//237 294//291 +f 117//115 240//238 295//292 +f 295//292 240//238 269//266 +f 294//291 239//237 268//265 +f 148//146 162//160 296//293 +f 271//268 148//146 296//293 +f 296//293 162//160 297//294 +f 254//251 253//250 297//294 +f 297//294 253//250 296//293 +f 159//157 298//295 297//294 +f 254//251 298//295 299//296 +f 169//167 115//113 270//267 +f 299//296 158//156 270//267 +f 162//160 159//157 297//294 +f 297//294 298//295 254//251 +f 273//270 272//269 276//273 +f 252//249 272//269 253//250 +f 253//250 272//269 274//271 +f 253//250 274//271 296//293 +f 273//270 271//268 274//271 +f 274//271 271//268 296//293 +f 298//295 159//157 158//156 +f 298//295 158//156 299//296 +f 299//296 300//297 254//251 +f 252//249 276//273 272//269 +f 301//298 275//272 276//273 +f 276//273 252//249 302//299 +f 276//273 302//299 301//298 +f 258//255 275//272 259//256 +f 259//256 275//272 301//298 +f 303//300 301//298 302//299 +f 301//298 303//300 259//256 +f 300//297 302//299 254//251 +f 115//113 117//115 295//292 +f 295//292 269//266 300//297 +f 302//299 300//297 304//301 +f 304//301 300//297 269//266 +f 304//301 269//266 294//291 +f 252//249 254//251 302//299 +f 302//299 304//301 303//300 +f 300//297 299//296 295//292 +f 295//292 299//296 270//267 +f 295//292 270//267 115//113 +f 292//289 289//286 288//285 +f 288//285 286//283 290//287 +f 294//291 268//265 304//301 +f 304//301 268//265 255//252 +f 304//301 255//252 303//300 +f 303//300 255//252 257//254 +f 303//300 257//254 259//256 +f 260//257 259//256 279//276 +f 280//277 256//253 286//283 +f 199//197 202//200 174//172 +f 305//302 306//303 179//177 +f 180//178 261//258 285//282 +f 261//258 180//178 181//179 +f 275//272 182//180 183//181 +f 275//272 183//181 273//270 +f 139//137 138//136 188//186 +f 275//272 258//255 182//180 +f 179//177 180//178 305//302 +f 180//178 285//282 305//302 +f 273//270 183//181 184//182 +f 273//270 184//182 271//268 +f 184//182 142//140 271//268 +f 199//197 174//172 197//195 +f 197//195 175//173 194//192 +f 176//174 194//192 175//173 +f 277//274 262//259 181//179 +f 181//179 262//259 261//258 +f 187//185 110//108 307//304 +f 307//304 110//108 113//111 +f 187//185 111//109 110//108 +f 174//172 202//200 189//187 +f 189//187 202//200 204//202 +f 176//174 192//190 194//192 +f 177//175 308//305 176//174 +f 176//174 308//305 192//190 +f 177//175 309//306 308//305 +f 310//307 178//176 311//308 +f 179//177 312//309 313//310 +f 182//180 258//255 277//274 +f 182//180 277//274 181//179 +f 140//138 142//140 185//183 +f 185//183 142//140 184//182 +f 140//138 185//183 144//142 +f 186//184 145//143 144//142 +f 186//184 144//142 185//183 +f 307//304 113//111 186//184 +f 186//184 113//111 145//143 +f 175//173 197//195 174//172 +f 179//177 313//310 311//308 +f 311//308 313//310 310//307 +f 179//177 306//303 312//309 +f 189//187 204//202 188//186 +f 188//186 204//202 139//137 +f 178//176 310//307 177//175 +f 177//175 310//307 309//306 +f 188//186 138//136 187//185 +f 187//185 138//136 111//109 +f 314//311 315//312 308//305 +f 316//313 225//223 226//224 +f 317//314 24//24 318//315 +f 216//214 214//212 319//316 +f 315//312 193//191 192//190 +f 18//18 190//188 217//215 +f 224//222 320//317 221//219 +f 213//211 221//219 321//318 +f 322//319 214//212 213//211 +f 317//314 227//225 24//24 +f 237//235 238//236 248//246 +f 248//246 238//236 323//320 +f 248//246 323//320 324//321 +f 248//246 324//321 316//313 +f 245//243 248//246 316//313 +f 245//243 325//322 246//244 +f 246//244 325//322 326//323 +f 327//324 250//247 328//325 +f 328//325 250//247 246//244 +f 329//326 291//288 293//290 +f 329//326 292//289 291//288 +f 292//289 329//326 330//327 +f 292//289 330//327 289//286 +f 330//327 287//284 289//286 +f 287//284 330//327 331//328 +f 331//328 283//280 287//284 +f 283//280 331//328 284//281 +f 332//329 284//281 331//328 +f 333//330 334//331 312//309 +f 312//309 334//331 335//332 +f 312//309 335//332 336//333 +f 336//333 335//332 337//334 +f 338//335 339//336 340//337 +f 312//309 306//303 340//337 +f 340//337 306//303 341//338 +f 341//338 306//303 305//302 +f 332//329 305//302 285//282 +f 340//337 333//330 312//309 +f 312//309 336//333 313//310 +f 341//338 305//302 342//339 +f 342//339 305//302 332//329 +f 332//329 285//282 284//281 +f 335//332 343//340 337//334 +f 344//341 322//319 321//318 +f 321//318 322//319 213//211 +f 345//342 322//319 344//341 +f 339//336 344//341 334//331 +f 334//331 344//341 321//318 +f 334//331 321//318 335//332 +f 335//332 321//318 343//340 +f 344//341 339//336 346//343 +f 344//341 346//343 345//342 +f 345//342 214//212 322//319 +f 346//343 347//344 345//342 +f 345//342 319//316 214//212 +f 318//315 24//24 216//214 +f 318//315 216//214 319//316 +f 348//345 318//315 319//316 +f 349//346 319//316 347//344 +f 338//335 340//337 350//347 +f 351//348 350//347 340//337 +f 351//348 340//337 341//338 +f 319//316 345//342 347//344 +f 347//344 346//343 350//347 +f 341//338 342//339 351//348 +f 351//348 342//339 352//349 +f 330//327 353//350 331//328 +f 331//328 353//350 352//349 +f 331//328 352//349 342//339 +f 331//328 342//339 332//329 +f 340//337 339//336 333//330 +f 333//330 339//336 334//331 +f 318//315 348//345 317//314 +f 349//346 347//344 354//351 +f 354//351 327//324 328//325 +f 326//323 328//325 246//244 +f 251//248 250//247 327//324 +f 355//352 327//324 354//351 +f 347//344 350//347 355//352 +f 356//353 251//248 327//324 +f 356//353 327//324 357//354 +f 357//354 327//324 355//352 +f 357//354 355//352 358//355 +f 357//354 358//355 353//350 +f 353//350 358//355 355//352 +f 359//356 227//225 317//314 +f 323//320 238//236 222//220 +f 323//320 222//220 324//321 +f 324//321 222//220 223//221 +f 223//221 225//223 324//321 +f 324//321 225//223 316//313 +f 316//313 226//224 325//322 +f 325//322 226//224 359//356 +f 349//346 354//351 360//357 +f 245//243 316//313 325//322 +f 347//344 355//352 354//351 +f 360//357 354//351 328//325 +f 360//357 328//325 326//323 +f 360//357 326//323 359//356 +f 359//356 326//323 325//322 +f 359//356 226//224 227//225 +f 360//357 359//356 317//314 +f 360//357 317//314 348//345 +f 360//357 348//345 349//346 +f 349//346 348//345 319//316 +f 355//352 350//347 351//348 +f 355//352 351//348 353//350 +f 353//350 351//348 352//349 +f 192//190 308//305 315//312 +f 190//188 315//312 217//215 +f 315//312 314//311 217//215 +f 217//215 314//311 361//358 +f 217//215 361//358 19//19 +f 224//222 19//19 361//358 +f 320//317 224//222 361//358 +f 320//317 361//358 362//359 +f 362//359 361//358 314//311 +f 363//360 320//317 362//359 +f 315//312 190//188 193//191 +f 314//311 308//305 309//306 +f 314//311 309//306 362//359 +f 362//359 309//306 310//307 +f 362//359 310//307 364//361 +f 343//340 221//219 320//317 +f 343//340 320//317 337//334 +f 337//334 320//317 363//360 +f 337//334 363//360 364//361 +f 364//361 363//360 362//359 +f 310//307 313//310 364//361 +f 364//361 313//310 336//333 +f 364//361 336//333 337//334 +f 221//219 343//340 321//318 +f 346//343 339//336 338//335 +f 346//343 338//335 350//347 +f 353//350 330//327 357//354 +f 357//354 330//327 329//326 +f 357//354 329//326 356//353 +f 356//353 329//326 293//290 +f 356//353 293//290 251//248 +f 251//248 293//290 247//245 +f 365//362 366//363 367//364 +f 367//364 368//365 369//366 +f 370//367 371//368 372//369 +f 373//370 371//368 374//371 +f 375//372 376//373 377//374 +f 375//372 8//8 378//375 +f 5//5 6//6 377//374 +f 378//375 8//8 9//9 +f 375//372 6//6 8//8 +f 379//376 2//2 377//374 +f 377//374 2//2 5//5 +f 380//377 2//2 379//376 +f 4//4 380//377 381//378 +f 382//379 3//3 4//4 +f 31//31 3//3 383//380 +f 384//381 385//382 386//383 +f 387//384 384//381 386//383 +f 388//385 387//384 386//383 +f 371//368 373//370 388//385 +f 371//368 388//385 372//369 +f 389//386 390//387 391//388 +f 392//389 393//390 394//391 +f 394//391 393//390 395//392 +f 396//393 397//394 398//395 +f 378//375 399//396 375//372 +f 400//397 401//398 402//399 +f 6//6 375//372 377//374 +f 382//379 4//4 403//400 +f 382//379 403//400 404//401 +f 405//402 406//403 407//404 +f 405//402 407//404 402//399 +f 381//378 380//377 379//376 +f 381//378 379//376 407//404 +f 407//404 379//376 377//374 +f 407//404 377//374 376//373 +f 383//380 3//3 382//379 +f 383//380 382//379 408//405 +f 383//380 408//405 370//367 +f 385//382 31//31 383//380 +f 397//394 11//11 12//12 +f 389//386 391//388 394//391 +f 389//386 394//391 395//392 +f 12//12 398//395 397//394 +f 369//366 368//365 409//406 +f 368//365 410//407 409//406 +f 409//406 410//407 390//387 +f 390//387 410//407 391//388 +f 411//408 373//370 374//371 +f 411//408 374//371 412//409 +f 412//409 374//371 413//410 +f 412//409 413//410 414//411 +f 412//409 414//411 415//412 +f 415//412 414//411 367//364 +f 415//412 367//364 369//366 +f 367//364 366//363 368//365 +f 368//365 366//363 410//407 +f 410//407 366//363 416//413 +f 410//407 416//413 391//388 +f 391//388 416//413 417//414 +f 391//388 417//414 394//391 +f 371//368 370//367 374//371 +f 374//371 370//367 418//415 +f 374//371 418//415 413//410 +f 413//410 418//415 365//362 +f 413//410 365//362 414//411 +f 388//385 386//383 372//369 +f 397//394 419//416 11//11 +f 9//9 11//11 419//416 +f 9//9 419//416 378//375 +f 378//375 419//416 420//417 +f 378//375 420//417 399//396 +f 397//394 396//393 393//390 +f 397//394 393//390 392//389 +f 420//417 417//414 421//418 +f 420//417 421//418 399//396 +f 399//396 421//418 401//398 +f 399//396 401//398 400//397 +f 370//367 408//405 418//415 +f 365//362 418//415 405//402 +f 365//362 405//402 366//363 +f 366//363 405//402 422//419 +f 366//363 422//419 416//413 +f 416//413 422//419 401//398 +f 416//413 401//398 421//418 +f 416//413 421//418 417//414 +f 397//394 392//389 419//416 +f 419//416 392//389 420//417 +f 375//372 399//396 400//397 +f 375//372 400//397 376//373 +f 376//373 400//397 402//399 +f 376//373 402//399 407//404 +f 381//378 407//404 406//403 +f 381//378 406//403 404//401 +f 381//378 404//401 4//4 +f 4//4 404//401 403//400 +f 367//364 414//411 365//362 +f 383//380 370//367 372//369 +f 383//380 372//369 386//383 +f 383//380 386//383 385//382 +f 408//405 382//379 404//401 +f 408//405 404//401 418//415 +f 418//415 404//401 406//403 +f 418//415 406//403 405//402 +f 422//419 405//402 402//399 +f 422//419 402//399 401//398 +f 417//414 420//417 394//391 +f 394//391 420//417 392//389 +f 70//68 71//69 423//420 +f 423//420 71//69 424//421 +f 425//422 71//69 81//79 +f 425//422 81//79 385//382 +f 385//382 83//81 1//1 +f 81//79 83//81 385//382 +f 7//7 8//8 6//6 +f 385//382 1//1 31//31 +f 4//4 2//2 380//377 +f 28//28 426//423 427//424 +f 28//28 427//424 27//27 +f 428//425 24//24 26//26 +f 429//426 25//25 24//24 +f 430//427 25//25 429//426 +f 23//23 25//25 430//427 +f 21//21 22//22 431//428 +f 19//19 21//21 432//429 +f 20//20 19//19 433//430 +f 434//431 18//18 20//20 +f 435//432 436//433 434//431 +f 437//434 438//435 439//436 +f 440//437 441//438 442//439 +f 441//438 440//437 443//440 +f 444//441 445//442 443//440 +f 430//427 446//443 447//444 +f 447//444 431//428 430//427 +f 430//427 431//428 23//23 +f 430//427 448//445 446//443 +f 27//27 427//424 449//446 +f 26//26 27//27 428//425 +f 428//425 27//27 449//446 +f 428//425 449//446 450//447 +f 428//425 450//447 448//445 +f 448//445 450//447 451//448 +f 448//445 451//448 446//443 +f 24//24 428//425 429//426 +f 429//426 428//425 448//445 +f 429//426 448//445 430//427 +f 441//438 452//449 442//439 +f 443//440 440//437 444//441 +f 28//28 30//30 426//423 +f 426//423 30//30 445//442 +f 426//423 445//442 444//441 +f 435//432 453//450 436//433 +f 454//451 455//452 456//453 +f 457//454 458//455 459//456 +f 459//456 458//455 460//457 +f 459//456 460//457 461//458 +f 461//458 460//457 462//459 +f 461//458 462//459 463//460 +f 463//460 462//459 464//461 +f 463//460 464//461 454//451 +f 454//451 464//461 455//452 +f 465//462 457//454 466//463 +f 465//462 466//463 452//449 +f 452//449 466//463 442//439 +f 467//464 457//454 459//456 +f 467//464 459//456 468//465 +f 468//465 459//456 461//458 +f 468//465 461//458 463//460 +f 468//465 463//460 469//466 +f 469//466 463//460 454//451 +f 469//466 454//451 456//453 +f 426//423 440//437 470//467 +f 470//467 440//437 442//439 +f 470//467 442//439 471//468 +f 471//468 442//439 466//463 +f 471//468 466//463 467//464 +f 467//464 466//463 457//454 +f 444//441 440//437 426//423 +f 19//19 432//429 472//469 +f 19//19 472//469 433//430 +f 433//430 472//469 473//470 +f 433//430 473//470 435//432 +f 435//432 473//470 453//450 +f 453//450 439//436 436//433 +f 21//21 431//428 432//429 +f 432//429 431//428 474//471 +f 432//429 474//471 472//469 +f 472//469 474//471 475//472 +f 472//469 475//472 473//470 +f 473//470 475//472 437//434 +f 439//436 453//450 437//434 +f 437//434 453//450 473//470 +f 434//431 20//20 433//430 +f 434//431 433//430 435//432 +f 22//22 23//23 431//428 +f 431//428 447//444 474//471 +f 474//471 447//444 476//473 +f 476//473 469//466 475//472 +f 475//472 469//466 456//453 +f 456//453 477//474 438//435 +f 478//475 470//467 471//468 +f 478//475 471//468 479//476 +f 479//476 471//468 467//464 +f 479//476 467//464 480//477 +f 480//477 467//464 468//465 +f 480//477 468//465 476//473 +f 476//473 468//465 469//466 +f 438//435 437//434 456//453 +f 456//453 437//434 475//472 +f 475//472 474//471 476//473 +f 478//475 426//423 470//467 +f 457//454 465//462 458//455 +f 449//446 427//424 426//423 +f 449//446 426//423 478//475 +f 449//446 478//475 450//447 +f 450//447 478//475 451//448 +f 451//448 478//475 479//476 +f 451//448 479//476 446//443 +f 446//443 479//476 480//477 +f 446//443 480//477 447//444 +f 447//444 480//477 476//473 +f 456//453 455//452 477//474 +f 212//210 70//68 423//420 +f 423//420 481//478 212//210 +f 220//218 482//479 30//30 +f 212//210 483//480 482//479 +f 212//210 482//479 220//218 +f 30//30 29//29 220//218 +f 445//442 484//481 485//482 +f 486//483 15//15 16//16 +f 487//484 13//13 14//14 +f 398//395 488//485 396//393 +f 489//486 393//390 396//393 +f 393//390 489//486 395//392 +f 395//392 489//486 490//487 +f 491//488 389//386 490//487 +f 490//487 389//386 395//392 +f 389//386 491//488 390//387 +f 390//387 492//489 493//490 +f 390//387 493//490 409//406 +f 494//491 369//366 493//490 +f 493//490 369//366 409//406 +f 494//491 415//412 369//366 +f 415//412 494//491 495//492 +f 415//412 495//492 412//409 +f 496//493 411//408 412//409 +f 497//494 373//370 496//493 +f 496//493 373//370 411//408 +f 498//495 423//420 424//421 +f 499//496 481//478 423//420 +f 485//482 441//438 443//440 +f 500//497 465//462 452//449 +f 458//455 465//462 501//498 +f 460//457 458//455 502//499 +f 502//499 462//459 460//457 +f 464//461 462//459 503//500 +f 504//501 464//461 503//500 +f 464//461 504//501 455//452 +f 505//502 455//452 504//501 +f 455//452 505//502 477//474 +f 477//474 505//502 506//503 +f 507//504 438//435 506//503 +f 506//503 438//435 477//474 +f 508//505 509//506 510//507 +f 508//505 510//507 511//508 +f 512//509 511//508 513//510 +f 512//509 513//510 514//511 +f 514//511 513//510 515//512 +f 516//513 517//514 518//515 +f 516//513 518//515 519//516 +f 519//516 518//515 520//517 +f 519//516 520//517 521//518 +f 522//519 523//520 524//521 +f 522//519 524//521 525//522 +f 525//522 524//521 526//523 +f 519//516 521//518 527//524 +f 519//516 527//524 528//525 +f 529//526 528//525 530//527 +f 531//528 529//526 532//529 +f 514//511 531//528 533//530 +f 514//511 533//530 534//531 +f 535//532 534//531 536//533 +f 537//534 535//532 538//535 +f 537//534 538//535 539//536 +f 539//536 538//535 540//537 +f 539//536 540//537 486//483 +f 541//538 523//520 522//519 +f 525//522 526//523 542//539 +f 516//513 519//516 528//525 +f 516//513 528//525 529//526 +f 517//514 529//526 531//528 +f 512//509 514//511 534//531 +f 512//509 534//531 535//532 +f 508//505 535//532 537//534 +f 543//540 541//538 522//519 +f 543//540 522//519 544//541 +f 544//541 522//519 525//522 +f 545//542 525//522 542//539 +f 545//542 542//539 521//518 +f 517//514 516//513 529//526 +f 515//512 517//514 531//528 +f 515//512 531//528 514//511 +f 511//508 512//509 535//532 +f 511//508 535//532 508//505 +f 509//506 508//505 537//534 +f 509//506 537//534 546//543 +f 546//543 537//534 539//536 +f 546//543 539//536 547//544 +f 547//544 539//536 486//483 +f 547//544 486//483 548//545 +f 548//545 486//483 16//16 +f 544//541 525//522 545//542 +f 520//517 545//542 521//518 +f 549//546 541//538 543//540 +f 549//546 543//540 500//497 +f 500//497 543//540 544//541 +f 501//498 520//517 518//515 +f 550//547 518//515 517//514 +f 550//547 517//514 515//512 +f 550//547 515//512 513//510 +f 505//502 513//510 511//508 +f 505//502 511//508 510//507 +f 507//504 510//507 509//506 +f 507//504 509//506 551//548 +f 551//548 509//506 546//543 +f 551//548 546//543 552//549 +f 552//549 546//543 547//544 +f 552//549 547//544 553//550 +f 553//550 547//544 548//545 +f 553//550 548//545 17//17 +f 17//17 548//545 16//16 +f 500//497 544//541 545//542 +f 501//498 545//542 520//517 +f 502//499 501//498 518//515 +f 502//499 518//515 550//547 +f 503//500 550//547 504//501 +f 504//501 550//547 513//510 +f 504//501 513//510 505//502 +f 506//503 505//502 510//507 +f 506//503 510//507 507//504 +f 485//482 549//546 441//438 +f 441//438 549//546 500//497 +f 441//438 500//497 452//449 +f 465//462 500//497 545//542 +f 465//462 545//542 501//498 +f 458//455 501//498 502//499 +f 462//459 502//499 550//547 +f 462//459 550//547 503//500 +f 438//435 507//504 439//436 +f 439//436 507//504 551//548 +f 439//436 551//548 436//433 +f 436//433 551//548 552//549 +f 436//433 552//549 434//431 +f 434//431 552//549 553//550 +f 434//431 553//550 18//18 +f 18//18 553//550 17//17 +f 482//479 484//481 445//442 +f 482//479 445//442 30//30 +f 443//440 445//442 485//482 +f 425//422 385//382 384//381 +f 554//551 212//210 555//552 +f 555//552 212//210 481//478 +f 555//552 481//478 499//496 +f 499//496 498//495 523//520 +f 71//69 556//553 424//421 +f 424//421 556//553 498//495 +f 498//495 556//553 557//554 +f 557//554 556//553 558//555 +f 557//554 558//555 559//556 +f 560//557 559//556 561//558 +f 560//557 561//558 562//559 +f 562//559 561//558 563//560 +f 562//559 563//560 564//561 +f 482//479 483//480 484//481 +f 485//482 484//481 554//551 +f 541//538 554//551 555//552 +f 555//552 499//496 523//520 +f 488//485 565//562 489//486 +f 489//486 565//562 566//563 +f 489//486 566//563 490//487 +f 12//12 13//13 398//395 +f 398//395 13//13 488//485 +f 396//393 488//485 489//486 +f 559//556 558//555 561//558 +f 561//558 558//555 497//494 +f 561//558 497//494 563//560 +f 563//560 497//494 496//493 +f 563//560 496//493 567//564 +f 568//565 569//566 495//492 +f 568//565 495//492 494//491 +f 568//565 494//491 570//567 +f 570//567 494//491 493//490 +f 570//567 493//490 571//568 +f 571//568 493//490 572//569 +f 572//569 493//490 492//489 +f 572//569 492//489 573//570 +f 573//570 492//489 491//488 +f 573//570 491//488 574//571 +f 566//563 575//572 490//487 +f 490//487 575//572 574//571 +f 490//487 574//571 491//488 +f 390//387 491//488 492//489 +f 495//492 569//566 412//409 +f 412//409 569//566 567//564 +f 412//409 567//564 496//493 +f 373//370 497//494 388//385 +f 388//385 497//494 558//555 +f 388//385 558//555 387//384 +f 387//384 558//555 576//573 +f 387//384 576//573 384//381 +f 384//381 576//573 425//422 +f 565//562 487//484 577//574 +f 565//562 577//574 566//563 +f 566//563 577//574 578//575 +f 566//563 578//575 575//572 +f 575//572 578//575 579//576 +f 574//571 575//572 580//577 +f 574//571 580//577 573//570 +f 573//570 580//577 581//578 +f 573//570 581//578 572//569 +f 572//569 581//578 582//579 +f 572//569 582//579 571//568 +f 571//568 582//579 583//580 +f 571//568 583//580 570//567 +f 570//567 583//580 568//565 +f 568//565 583//580 527//524 +f 568//565 527//524 569//566 +f 569//566 527//524 564//561 +f 569//566 564//561 567//564 +f 567//564 564//561 563//560 +f 498//495 557//554 523//520 +f 523//520 557//554 584//581 +f 524//521 584//581 560//557 +f 524//521 560//557 526//523 +f 526//523 560//557 562//559 +f 526//523 562//559 542//539 +f 542//539 562//559 564//561 +f 528//525 527//524 583//580 +f 528//525 583//580 530//527 +f 532//529 530//527 582//579 +f 533//530 532//529 581//578 +f 536//533 533//530 580//577 +f 536//533 580//577 579//576 +f 538//535 579//576 578//575 +f 538//535 578//575 540//537 +f 540//537 578//575 577//574 +f 15//15 577//574 487//484 +f 15//15 487//484 14//14 +f 484//481 483//480 554//551 +f 554//551 483//480 212//210 +f 499//496 423//420 498//495 +f 584//581 557//554 559//556 +f 584//581 559//556 560//557 +f 530//527 583//580 582//579 +f 532//529 582//579 581//578 +f 533//530 581//578 580//577 +f 579//576 580//577 575//572 +f 488//485 13//13 487//484 +f 488//485 487//484 565//562 +f 576//573 558//555 556//553 +f 576//573 556//553 71//69 +f 576//573 71//69 425//422 +f 577//574 15//15 486//483 +f 577//574 486//483 540//537 +f 579//576 538//535 535//532 +f 579//576 535//532 536//533 +f 533//530 536//533 534//531 +f 532//529 533//530 531//528 +f 530//527 532//529 529//526 +f 564//561 527//524 521//518 +f 564//561 521//518 542//539 +f 584//581 524//521 523//520 +f 555//552 523//520 541//538 +f 554//551 541//538 549//546 +f 554//551 549//546 485//482 diff --git a/data/kuka_iiwa/meshes/link_7.mtl b/data/kuka_iiwa/meshes/link_7.mtl new file mode 100644 index 000000000..70d3ba1da --- /dev/null +++ b/data/kuka_iiwa/meshes/link_7.mtl @@ -0,0 +1,10 @@ +# Blender MTL File: 'None' +# Material Count: 1 + +newmtl None +Ns 0 +Ka 0.000000 0.000000 0.000000 +Kd 0.8 0.8 0.8 +Ks 0.8 0.8 0.8 +d 1 +illum 2 diff --git a/data/kuka_iiwa/meshes/link_7.obj b/data/kuka_iiwa/meshes/link_7.obj new file mode 100644 index 000000000..4d6f0c312 --- /dev/null +++ b/data/kuka_iiwa/meshes/link_7.obj @@ -0,0 +1,3155 @@ +# Blender v2.71 (sub 0) OBJ File: '' +# www.blender.org +mtllib link_7.mtl +o Link_7 +v -0.051195 0.002651 0.006492 +v -0.051317 0.000000 0.006500 +v -0.048263 0.018077 0.006499 +v -0.050972 -0.006740 0.006500 +v -0.048265 -0.017643 0.006500 +v -0.043590 -0.027222 0.006500 +v -0.039366 0.033205 0.006500 +v -0.026551 -0.040588 0.006500 +v -0.029449 0.042117 0.006500 +v -0.037381 -0.035224 0.006500 +v -0.029458 -0.042117 0.006500 +v -0.018381 0.048093 0.006500 +v -0.024463 -0.041879 0.006500 +v -0.020168 -0.047238 0.006500 +v -0.010600 -0.050282 0.006500 +v -0.001761 0.051531 0.006500 +v 0.002854 -0.051448 0.006501 +v 0.008143 -0.047812 0.006500 +v 0.008825 -0.047690 0.006500 +v 0.013560 0.049638 0.006499 +v 0.011214 -0.047186 0.006500 +v 0.017791 -0.048269 0.006500 +v 0.024923 0.044950 0.006500 +v 0.029458 -0.042117 0.006500 +v 0.039343 -0.033159 0.006500 +v 0.040588 -0.026528 0.006500 +v 0.033568 0.038876 0.006500 +v 0.042464 0.029214 0.006500 +v 0.041879 -0.024463 0.006500 +v 0.048201 -0.018503 0.006494 +v 0.048045 0.018158 0.006500 +v 0.048500 -0.000000 0.006500 +v 0.051317 -0.000000 0.006500 +v 0.048500 -0.000000 0.006500 +v 0.051196 -0.002566 0.006492 +v 0.049775 -0.012669 0.006500 +v 0.050956 0.007047 0.006499 +v 0.040594 -0.026540 0.006500 +v -0.026540 -0.040594 0.006500 +v 0.008825 -0.047690 0.006500 +v -0.052060 0.000893 0.000245 +v -0.050921 -0.010243 0.000196 +v -0.048294 -0.019332 0.000248 +v -0.043961 -0.027721 0.000313 +v -0.038235 -0.035323 0.000346 +v -0.030061 -0.042445 0.000268 +v -0.019003 -0.048533 0.000314 +v -0.005748 -0.051664 0.000208 +v 0.005745 -0.051660 0.000184 +v 0.018301 -0.048819 0.000244 +v 0.029948 -0.042546 0.000351 +v 0.039828 -0.033652 0.000239 +v 0.047782 -0.020729 0.000365 +v 0.050903 -0.010302 0.000191 +v 0.052001 -0.000857 0.000246 +v 0.050989 0.010289 0.000264 +v 0.046756 0.022978 0.000233 +v 0.039650 0.033655 0.000244 +v 0.032667 0.040392 0.000209 +v 0.025113 0.045534 0.000228 +v 0.016912 0.049166 0.000384 +v 0.007186 0.051487 0.000167 +v 0.000000 0.051942 0.000552 +v 0.002630 0.051847 0.000552 +v -0.006088 0.051646 0.000148 +v -0.018268 0.048683 0.000224 +v -0.028400 0.043560 0.000224 +v -0.038344 0.035282 0.000254 +v -0.046011 0.024285 0.000323 +v -0.050149 0.013839 0.000215 +v -0.025058 0.000325 -0.009900 +v 0.017158 -0.018265 -0.009900 +v 0.011168 -0.022434 -0.009900 +v -0.005316 -0.024655 -0.009899 +v -0.021078 -0.013555 -0.009900 +v 0.004232 -0.024701 -0.009900 +v -0.024090 -0.006908 -0.009900 +v 0.025171 -0.000974 -0.009901 +v 0.022462 -0.011252 -0.009904 +v -0.023902 0.007531 -0.009900 +v -0.019496 0.016001 -0.009899 +v -0.015145 -0.020045 -0.009905 +v -0.010902 0.022634 -0.009902 +v 0.019300 0.016216 -0.009899 +v 0.023521 0.008648 -0.009900 +v -0.002417 0.024944 -0.009900 +v 0.004871 0.024582 -0.009900 +v 0.011747 0.022137 -0.009900 +v 0.024910 0.045018 -0.000044 +v 0.021602 0.046690 -0.000004 +v 0.016480 0.048885 -0.000218 +v 0.011059 0.050242 -0.000004 +v 0.007404 0.050909 -0.000005 +v -0.000004 0.051447 -0.000027 +v -0.003713 0.051311 -0.000005 +v -0.011061 0.050243 -0.000014 +v -0.014657 0.049313 -0.000005 +v -0.018175 0.048127 -0.000005 +v -0.021612 0.046691 -0.000045 +v -0.024913 0.045010 -0.000004 +v -0.028096 0.043093 -0.000003 +v -0.031142 0.040954 -0.000044 +v -0.034007 0.038600 -0.000004 +v -0.037549 0.035101 0.000119 +v -0.042661 0.028993 -0.000169 +v -0.046365 0.022530 -0.000155 +v -0.048447 0.017305 -0.000005 +v -0.049570 0.013763 -0.000005 +v -0.050434 0.010151 -0.000004 +v -0.051375 0.002776 -0.000044 +v -0.051437 -0.000929 -0.000005 +v -0.051239 -0.004648 -0.000044 +v -0.050767 -0.008323 -0.000005 +v -0.050034 -0.011963 -0.000004 +v -0.049042 -0.015548 -0.000027 +v -0.045543 -0.024118 -0.000118 +v -0.042580 -0.028875 -0.000027 +v -0.039147 -0.033447 -0.000044 +v -0.035377 -0.037354 -0.000026 +v -0.032590 -0.039809 -0.000027 +v -0.024965 -0.045137 -0.000192 +v -0.014599 -0.049453 -0.000164 +v -0.009235 -0.050612 -0.000027 +v -0.005562 -0.051144 -0.000005 +v -0.001857 -0.051412 -0.000005 +v 0.005562 -0.051144 -0.000005 +v 0.009239 -0.050609 -0.000005 +v 0.012875 -0.049813 -0.000044 +v 0.016428 -0.048752 -0.000005 +v 0.019900 -0.047440 -0.000005 +v 0.023272 -0.045880 -0.000004 +v 0.026533 -0.044081 -0.000044 +v 0.030975 -0.041210 -0.000145 +v 0.037986 -0.034697 -0.000028 +v 0.040386 -0.031868 -0.000006 +v 0.042580 -0.028870 -0.000005 +v 0.045531 -0.024113 -0.000097 +v 0.048486 -0.017586 -0.000175 +v 0.050035 -0.011964 -0.000005 +v 0.050767 -0.008322 -0.000005 +v 0.051241 -0.004629 -0.000044 +v 0.051368 0.004570 -0.000195 +v 0.049112 0.015748 -0.000184 +v 0.042722 0.028887 -0.000194 +v 0.036704 0.036047 -0.000006 +v 0.034008 0.038600 -0.000005 +v 0.031133 0.040955 -0.000004 +v 0.000072 0.051969 0.000552 +v 0.003712 0.051311 -0.000005 +v -0.007406 0.050909 -0.000005 +v -0.051035 0.006484 -0.000005 +v -0.047791 -0.019043 -0.000005 +v -0.029635 -0.042053 -0.000013 +v -0.019900 -0.047442 -0.000013 +v 0.001858 -0.051412 -0.000005 +v 0.035378 -0.037348 -0.000003 +v 0.051437 -0.000928 -0.000005 +v 0.050434 0.010151 -0.000005 +v 0.047074 0.020759 -0.000027 +v 0.045452 0.024100 -0.000004 +v 0.039210 0.033305 -0.000003 +v 0.028097 0.043095 -0.000004 +v 0.024830 0.002412 0.000000 +v 0.024570 -0.005814 -0.000002 +v 0.020032 -0.015058 0.000000 +v 0.013641 -0.021097 0.000002 +v 0.003502 -0.024977 -0.000000 +v -0.006023 -0.024326 0.000000 +v -0.012776 -0.021559 0.000000 +v -0.018446 -0.016964 0.000000 +v -0.022551 -0.010931 0.000000 +v -0.025000 -0.002485 0.000002 +v -0.023815 0.008306 -0.000000 +v -0.018880 0.016480 0.000000 +v -0.013331 0.021220 0.000000 +v -0.006653 0.024161 0.000000 +v 0.000590 0.025053 0.000000 +v 0.009221 0.023369 0.000002 +v 0.018230 0.017411 -0.000000 +v 0.023289 0.009255 0.000000 +v 0.051369 0.002785 0.000000 +v 0.025000 -0.000000 0.000000 +v 0.050433 0.010150 0.000000 +v 0.051034 0.006485 0.000000 +v 0.048447 0.017304 0.000000 +v 0.049570 0.013763 0.000000 +v 0.045452 0.024097 0.000000 +v 0.047072 0.020755 0.000000 +v 0.028097 0.043094 0.000000 +v 0.031133 0.040955 0.000000 +v 0.024914 0.045010 0.000000 +v 0.021601 0.046690 0.000000 +v -0.050767 -0.008323 0.000000 +v -0.051235 -0.004638 0.000000 +v -0.051436 -0.000929 0.000000 +v 0.041510 0.030389 0.000000 +v 0.043595 0.027314 0.000000 +v 0.034007 0.038602 0.000000 +v 0.036704 0.036047 0.000000 +v 0.039209 0.033305 0.000000 +v 0.018176 0.048127 0.000000 +v 0.014656 0.049313 0.000000 +v -0.007405 0.050909 0.000000 +v -0.014656 0.049313 0.000000 +v -0.011059 0.050242 0.000000 +v -0.021601 0.046690 0.000000 +v -0.018176 0.048127 0.000000 +v 0.011059 0.050242 0.000000 +v 0.007405 0.050909 0.000000 +v -0.049040 -0.015544 0.000000 +v -0.050034 -0.011964 0.000000 +v -0.046292 -0.022440 0.000000 +v -0.047791 -0.019042 0.000000 +v -0.042580 -0.028870 0.000000 +v -0.044552 -0.025722 0.000000 +v -0.037981 -0.034698 0.000000 +v -0.040386 -0.031867 0.000000 +v -0.032591 -0.039804 0.000000 +v -0.035378 -0.037349 0.000000 +v 0.009238 -0.050608 0.000000 +v 0.005562 -0.051143 0.000000 +v 0.001857 -0.051411 0.000000 +v 0.016426 -0.048752 0.000000 +v 0.012866 -0.049810 0.000000 +v -0.026523 -0.044081 0.000000 +v -0.029634 -0.042052 0.000000 +v -0.003712 0.051311 0.000000 +v -0.000000 0.051445 0.000000 +v 0.003712 0.051311 0.000000 +v -0.028097 0.043094 0.000000 +v -0.024914 0.045010 0.000000 +v -0.039209 0.033305 0.000000 +v -0.036704 0.036047 0.000000 +v -0.034007 0.038602 0.000000 +v -0.031133 0.040955 0.000000 +v -0.043595 0.027314 0.000000 +v -0.041510 0.030389 0.000000 +v -0.047072 0.020755 0.000000 +v -0.045452 0.024097 0.000000 +v -0.049570 0.013763 0.000000 +v -0.048447 0.017304 0.000000 +v -0.051369 0.002785 0.000000 +v -0.051034 0.006485 0.000000 +v -0.050433 0.010150 0.000000 +v -0.019901 -0.047439 0.000000 +v -0.023273 -0.045880 0.000000 +v -0.012866 -0.049810 0.000000 +v -0.016426 -0.048752 0.000000 +v -0.001857 -0.051411 0.000000 +v -0.005562 -0.051143 0.000000 +v -0.009238 -0.050608 0.000000 +v 0.023273 -0.045880 0.000000 +v 0.019901 -0.047439 0.000000 +v 0.029634 -0.042052 0.000000 +v 0.026523 -0.044081 0.000000 +v 0.047791 -0.019042 0.000000 +v 0.046292 -0.022440 0.000000 +v 0.044552 -0.025722 0.000000 +v 0.050034 -0.011964 0.000000 +v 0.049040 -0.015544 0.000000 +v 0.051436 -0.000929 0.000000 +v 0.051235 -0.004638 0.000000 +v 0.050767 -0.008323 0.000000 +v 0.035378 -0.037349 0.000000 +v 0.032591 -0.039804 0.000000 +v 0.042580 -0.028870 0.000000 +v 0.040386 -0.031867 0.000000 +v 0.037981 -0.034698 0.000000 +v -0.019149 0.015384 0.039001 +v -0.015790 0.019657 0.039002 +v -0.020208 0.018280 0.039000 +v -0.018627 0.020065 0.039000 +v -0.015590 0.016004 0.039001 +v 0.001018 0.027334 0.039000 +v 0.000741 0.022439 0.038997 +v 0.002619 0.025560 0.039001 +v -0.001518 0.027236 0.038999 +v -0.002440 0.023907 0.039002 +v 0.015463 0.019237 0.039006 +v 0.015859 0.015699 0.038999 +v 0.018500 0.020189 0.039001 +v 0.020326 0.017419 0.038998 +v 0.018627 0.015290 0.039000 +v 0.027123 0.001587 0.039001 +v 0.022449 0.000776 0.039001 +v 0.023767 -0.002363 0.039000 +v 0.027133 -0.001614 0.039001 +v 0.024486 0.002522 0.039000 +v -0.001706 -0.023073 0.039000 +v 0.000662 -0.027617 0.038996 +v 0.001019 -0.022520 0.039000 +v 0.002603 -0.025156 0.039000 +v -0.002616 -0.025601 0.038999 +v -0.027771 -0.001407 0.037998 +v -0.021945 -0.000456 0.038000 +v -0.022877 0.002360 0.038000 +v -0.027036 0.002535 0.037998 +v -0.024132 -0.003181 0.038005 +v -0.015999 -0.015632 0.039000 +v -0.019465 -0.019767 0.039001 +v -0.015412 -0.019224 0.039002 +v -0.019577 -0.015709 0.038998 +v 0.015590 -0.016004 0.039000 +v 0.019531 -0.019531 0.039000 +v 0.020222 -0.017455 0.039000 +v 0.015290 -0.018627 0.039000 +v 0.017072 -0.020214 0.039000 +v 0.018824 -0.015287 0.039004 +v 0.047170 -0.020280 0.006600 +v 0.046984 0.020672 0.006600 +v 0.050812 0.007904 0.006600 +v 0.050788 -0.008172 0.006602 +v 0.040945 -0.031146 0.006601 +v 0.041597 0.029981 0.006600 +v 0.034830 0.037723 0.006600 +v 0.030892 -0.041039 0.006600 +v 0.028621 0.042540 0.006600 +v 0.021491 0.046612 0.006600 +v 0.021588 -0.046569 0.006600 +v 0.012019 -0.049882 0.006600 +v 0.011566 0.050020 0.006600 +v -0.009272 -0.050507 0.006600 +v 0.000875 0.051358 0.006600 +v 0.001542 -0.051325 0.006600 +v -0.009728 0.050425 0.006600 +v -0.019216 -0.047576 0.006600 +v -0.019691 0.047398 0.006600 +v -0.027888 -0.043092 0.006601 +v -0.026394 0.043957 0.006600 +v -0.036311 -0.036288 0.006600 +v -0.043108 -0.027887 0.006600 +v -0.035629 0.037065 0.006599 +v -0.043291 0.027618 0.006600 +v -0.049335 0.014749 0.006599 +v -0.047855 -0.018605 0.006600 +v -0.050508 -0.008891 0.006600 +v -0.051272 0.002531 0.006600 +v 0.006456 0.014425 0.039000 +v -0.000433 0.015875 0.038994 +v -0.006456 -0.014425 0.039000 +v -0.009750 0.012790 0.039004 +v 0.000433 -0.015875 0.038994 +v 0.015037 -0.005070 0.038993 +v 0.015415 0.004389 0.039002 +v 0.011000 0.011348 0.039000 +v -0.015034 0.005076 0.038996 +v -0.015462 -0.004284 0.039006 +v -0.011000 -0.011348 0.039000 +v 0.009750 -0.012790 0.039004 +v -0.015430 -0.003559 0.044004 +v -0.015589 0.002008 0.043998 +v -0.013467 0.008416 0.043926 +v -0.008853 0.013091 0.044015 +v -0.003559 0.015430 0.044004 +v 0.002008 0.015589 0.043998 +v 0.008229 0.013567 0.043981 +v 0.013091 0.008853 0.044015 +v 0.015327 0.003852 0.043999 +v 0.015719 -0.001633 0.044015 +v 0.013457 -0.008427 0.043925 +v 0.008853 -0.013091 0.044015 +v 0.003559 -0.015430 0.044004 +v -0.002008 -0.015589 0.043998 +v -0.008221 -0.013571 0.043966 +v -0.013091 -0.008853 0.044015 +v -0.018268 0.020146 0.045000 +v -0.020316 0.018385 0.044997 +v -0.015299 0.019035 0.044997 +v -0.016321 0.015353 0.045002 +v -0.019289 0.015639 0.045000 +v -0.001596 0.022646 0.045000 +v -0.002243 0.026437 0.045001 +v -0.000060 0.027499 0.045000 +v 0.000000 0.027500 0.045000 +v 0.001100 0.027397 0.045000 +v 0.002655 0.024396 0.045002 +v 0.000060 0.022501 0.045000 +v 0.000000 0.022500 0.045000 +v 0.017961 0.020261 0.045000 +v 0.015639 0.019289 0.045000 +v 0.019937 0.018909 0.045000 +v 0.020007 0.016380 0.045001 +v 0.015273 0.016479 0.045000 +v 0.017620 0.015102 0.045000 +v 0.027393 0.001037 0.045000 +v 0.024630 0.002700 0.045001 +v 0.022568 0.000758 0.045000 +v 0.022500 -0.000000 0.045000 +v 0.022444 -0.000699 0.045001 +v 0.024835 -0.002665 0.044999 +v 0.027194 -0.001346 0.045000 +v 0.002191 -0.026413 0.045003 +v 0.001643 -0.022649 0.045000 +v -0.000000 -0.022500 0.045000 +v -0.000060 -0.022501 0.045000 +v -0.002655 -0.024396 0.045002 +v -0.001100 -0.027397 0.045000 +v -0.000000 -0.027500 0.045000 +v 0.000060 -0.027499 0.045000 +v -0.023924 -0.002957 0.045001 +v -0.022081 -0.000909 0.045000 +v -0.022000 0.000000 0.045000 +v -0.022001 0.000072 0.045000 +v -0.023399 0.002752 0.045001 +v -0.026473 0.002715 0.045000 +v -0.028027 0.000617 0.045000 +v -0.027268 -0.002126 0.045002 +v 0.013924 -0.009358 0.045000 +v 0.017022 -0.001301 0.045003 +v 0.006271 -0.016190 0.045021 +v -0.007282 -0.015195 0.045000 +v -0.000033 -0.016750 0.044993 +v -0.000000 -0.015750 0.044000 +v -0.000000 -0.016750 0.045000 +v -0.012850 -0.010901 0.045000 +v -0.015750 0.000000 0.044000 +v -0.016399 -0.003991 0.045003 +v -0.013924 0.009358 0.045000 +v -0.016745 0.000238 0.044993 +v -0.008696 0.014464 0.044999 +v 0.005322 0.016280 0.045011 +v 0.000000 0.015750 0.044000 +v 0.000000 0.016750 0.045000 +v -0.000065 0.016751 0.044986 +v 0.014029 0.009629 0.044994 +v -0.018049 -0.015100 0.045000 +v -0.020268 -0.017076 0.045002 +v -0.018511 -0.020284 0.045001 +v -0.015639 -0.019289 0.045000 +v -0.015300 -0.016490 0.045001 +v 0.016321 -0.015353 0.045002 +v 0.015187 -0.018729 0.045000 +v 0.018003 -0.020269 0.045002 +v 0.020250 -0.018150 0.045002 +v 0.019289 -0.015639 0.045000 +v -0.027528 0.013744 0.045006 +v -0.005609 0.030130 0.044996 +v -0.016412 0.026105 0.045000 +v 0.029952 0.008208 0.044983 +v 0.020729 0.022806 0.045005 +v 0.013609 0.028162 0.044794 +v -0.030637 0.000628 0.045000 +v -0.028139 -0.012644 0.045000 +v 0.000087 0.030501 0.045013 +v 0.030500 0.000000 0.045000 +v 0.030124 -0.005695 0.044996 +v 0.026489 -0.016718 0.044667 +v 0.017258 -0.025542 0.045003 +v 0.005611 -0.030130 0.044996 +v -0.000087 -0.030501 0.045013 +v -0.010225 -0.028764 0.045000 +v -0.019115 -0.023848 0.045015 +v -0.016750 0.000000 0.045000 +v 0.030020 -0.009743 0.043982 +v 0.031385 -0.002054 0.044002 +v -0.023549 -0.021015 0.044006 +v -0.017328 -0.026359 0.044000 +v -0.028159 -0.014255 0.044001 +v -0.031413 -0.004609 0.043890 +v -0.006991 -0.031016 0.043983 +v 0.010341 -0.029802 0.043999 +v 0.002942 -0.031330 0.044003 +v 0.000000 -0.031500 0.044000 +v 0.000000 -0.030500 0.045000 +v 0.019668 -0.024897 0.044032 +v 0.030991 0.007100 0.043979 +v 0.031500 0.000000 0.044000 +v 0.030500 0.000000 0.045000 +v 0.026027 0.017853 0.043982 +v 0.020572 0.023915 0.044013 +v -0.004863 0.031196 0.043998 +v -0.000000 0.031500 0.044000 +v -0.000000 0.030500 0.045000 +v 0.005652 0.031115 0.043994 +v -0.016275 0.027176 0.043969 +v -0.023956 0.020548 0.044014 +v -0.030950 0.006101 0.044041 +v -0.028469 0.013626 0.044000 +v 0.044348 0.000476 0.023291 +v 0.043282 -0.004247 0.022593 +v 0.043273 0.003824 0.022184 +v 0.044534 -0.003443 0.027207 +v 0.043117 -0.006247 0.028356 +v 0.043155 -0.004406 0.031202 +v 0.043300 -0.001524 0.032863 +v 0.043003 -0.001958 0.032827 +v 0.043300 -0.000000 0.033000 +v 0.044853 0.000231 0.029027 +v 0.043219 0.002476 0.032749 +v 0.044420 0.003652 0.027290 +v 0.043145 0.005882 0.029082 +v 0.026122 0.034778 0.029249 +v 0.028719 0.033895 0.028363 +v 0.026475 0.034653 0.025086 +v 0.030305 0.032456 0.023573 +v 0.028974 0.031988 0.020856 +v 0.032029 0.029088 0.021312 +v 0.033795 0.028933 0.025462 +v 0.034783 0.026164 0.025052 +v 0.034643 0.026500 0.029003 +v 0.032082 0.030971 0.030044 +v 0.030874 0.030131 0.033111 +v 0.028499 0.032509 0.032437 +v 0.031984 0.031494 0.026544 +v -0.034566 0.026604 0.029693 +v -0.033550 0.029223 0.024929 +v -0.034015 0.027000 0.022914 +v -0.031117 0.029942 0.020961 +v -0.030520 0.032963 0.027975 +v -0.027572 0.033592 0.031432 +v -0.026587 0.034528 0.024122 +v -0.029513 0.033260 0.024237 +v -0.031819 0.031036 0.030379 +v -0.032787 0.028217 0.032129 +v -0.030017 0.031073 0.033070 +v -0.044440 0.000149 0.023283 +v -0.043276 -0.002338 0.021216 +v -0.043260 -0.005482 0.024264 +v -0.043300 0.000000 0.021000 +v -0.043008 0.002507 0.021222 +v -0.043300 0.000561 0.021047 +v -0.043226 0.005179 0.023743 +v -0.044342 0.003633 0.026989 +v -0.043262 0.005481 0.029770 +v -0.043007 0.002441 0.032778 +v -0.044554 0.000287 0.030282 +v -0.043300 0.001042 0.032909 +v -0.043233 -0.002410 0.032762 +v -0.043300 0.000000 0.033000 +v -0.043230 -0.005188 0.030245 +v -0.044851 -0.002054 0.026995 +v -0.031518 -0.031381 0.023417 +v -0.028627 -0.032394 0.021360 +v -0.026715 -0.034467 0.024266 +v -0.032252 -0.028764 0.021205 +v -0.034229 -0.026902 0.023744 +v -0.033923 -0.028786 0.026989 +v -0.034466 -0.026713 0.029768 +v -0.031621 -0.031354 0.030409 +v -0.028601 -0.032422 0.032534 +v -0.031958 -0.028999 0.032882 +v -0.026898 -0.034241 0.030238 +v -0.030234 -0.033181 0.026950 +v 0.031383 -0.031516 0.023417 +v 0.032392 -0.028628 0.021358 +v 0.034467 -0.026710 0.024268 +v 0.028766 -0.032248 0.021199 +v 0.026902 -0.034229 0.023745 +v 0.028786 -0.033924 0.026989 +v 0.026717 -0.034466 0.029770 +v 0.031355 -0.031620 0.030407 +v 0.032428 -0.028595 0.032529 +v 0.029004 -0.031958 0.032883 +v 0.034241 -0.026898 0.030238 +v 0.033181 -0.030233 0.026948 +v -0.029723 -0.011337 0.038184 +v -0.031768 -0.002548 0.038101 +v -0.031403 -0.002388 0.039000 +v -0.027180 -0.016192 0.038510 +v -0.021696 -0.023045 0.038541 +v -0.015227 -0.027993 0.038071 +v -0.009154 -0.030308 0.038526 +v -0.000683 -0.031641 0.038498 +v 0.007793 -0.030654 0.038532 +v 0.017090 -0.026714 0.038547 +v 0.024458 -0.020053 0.038518 +v 0.028763 -0.013423 0.038332 +v 0.031615 -0.002537 0.038515 +v 0.031222 0.005590 0.038246 +v 0.028982 0.013336 0.038170 +v 0.024403 0.020564 0.038096 +v 0.019894 0.024743 0.038488 +v 0.012201 0.029302 0.038243 +v 0.003299 0.031565 0.038517 +v -0.005207 0.031356 0.038102 +v -0.010681 0.029942 0.038107 +v -0.016768 0.027050 0.038161 +v -0.022041 0.022913 0.038197 +v -0.027994 0.014985 0.038501 +v -0.031155 0.005119 0.038992 +v -0.045453 0.017795 0.022500 +v -0.041231 0.015045 0.022509 +v -0.039629 0.018208 0.022499 +v -0.042610 0.020570 0.022500 +v -0.044047 0.015270 0.022500 +v -0.018857 0.045036 0.022500 +v -0.018260 0.039776 0.022500 +v -0.015894 0.040194 0.022500 +v -0.014781 0.043068 0.022503 +v -0.016484 0.045065 0.022500 +v -0.020544 0.042112 0.022508 +v 0.017710 0.045432 0.022499 +v 0.015045 0.041231 0.022512 +v 0.018147 0.039687 0.022500 +v 0.020631 0.042671 0.022497 +v 0.015270 0.044047 0.022500 +v 0.039698 0.018021 0.022500 +v 0.045065 0.016484 0.022500 +v 0.041832 0.020553 0.022496 +v 0.045047 0.018856 0.022500 +v 0.040378 0.015727 0.022500 +v 0.043078 0.014806 0.022510 +v 0.041086 -0.015050 0.022501 +v 0.039703 -0.017429 0.022500 +v 0.044801 -0.015744 0.022499 +v 0.041151 -0.020227 0.022501 +v 0.044782 -0.019385 0.022506 +v 0.043000 -0.000000 0.033000 +v 0.043000 0.000039 0.033000 +v 0.019315 -0.040193 0.022511 +v 0.016484 -0.045065 0.022500 +v 0.018857 -0.045036 0.022499 +v 0.020326 -0.043156 0.022500 +v 0.015894 -0.040194 0.022500 +v 0.014797 -0.043052 0.022510 +v -0.015852 -0.044860 0.022503 +v -0.015039 -0.041210 0.022516 +v -0.018755 -0.045044 0.022500 +v -0.018148 -0.039687 0.022500 +v -0.020607 -0.042526 0.022495 +v -0.045065 -0.016484 0.022500 +v -0.045047 -0.018856 0.022500 +v -0.040568 -0.015574 0.022500 +v -0.042041 -0.020537 0.022509 +v -0.039635 -0.017775 0.022500 +v -0.043106 -0.014815 0.022509 +v -0.043000 -0.000020 0.021000 +v -0.043000 0.000000 0.021000 +v -0.043000 0.000000 0.033000 +v -0.043000 -0.000039 0.033000 +v -0.028518 0.015514 0.037839 +v -0.003243 -0.032422 0.037828 +v -0.024129 -0.021792 0.037875 +v 0.010185 -0.030679 0.037965 +v 0.021713 -0.024169 0.037890 +v 0.032068 -0.004183 0.037923 +v 0.018930 0.026174 0.037879 +v -0.031489 -0.000049 0.038999 +v 0.003488 0.032272 0.037838 +v -0.031814 0.005242 0.037901 +v -0.045144 0.016274 0.019518 +v -0.044770 0.019333 0.019493 +v -0.041920 0.014684 0.019500 +v -0.040118 0.015828 0.019501 +v -0.039551 0.017864 0.019502 +v -0.040177 0.019479 0.019500 +v -0.042673 0.020399 0.019500 +v -0.025310 0.036170 0.033748 +v -0.025283 0.035654 0.019664 +v -0.025239 0.035526 0.034447 +v -0.017547 0.045376 0.019530 +v -0.020324 0.043625 0.019596 +v -0.019193 0.039951 0.019496 +v -0.016783 0.039668 0.019498 +v -0.014932 0.041088 0.019490 +v -0.015115 0.043849 0.019500 +v 0.018322 0.045387 0.019449 +v 0.015483 0.044375 0.019500 +v 0.014683 0.041912 0.019500 +v 0.015829 0.040117 0.019501 +v 0.018668 0.039629 0.019494 +v 0.020459 0.042941 0.019503 +v 0.045223 0.018607 0.019451 +v 0.044602 0.015603 0.019501 +v 0.041751 0.014724 0.019499 +v 0.040090 0.015871 0.019500 +v 0.039560 0.017839 0.019499 +v 0.040456 0.019896 0.019498 +v 0.043748 0.020164 0.019508 +v 0.045370 -0.018316 0.019455 +v 0.044375 -0.015483 0.019500 +v 0.041280 -0.014825 0.019501 +v 0.039600 -0.017007 0.019500 +v 0.039915 -0.019062 0.019500 +v 0.042530 -0.020556 0.019503 +v 0.039722 -0.018909 0.033965 +v 0.040402 -0.015174 0.034720 +v 0.043064 0.007469 0.034105 +v 0.043093 0.007338 0.019668 +v 0.042973 0.000188 0.034943 +v 0.043045 -0.007398 0.034142 +v 0.043088 -0.007360 0.019742 +v 0.041774 0.014570 0.033799 +v 0.039315 0.017707 0.034730 +v 0.025260 0.035666 0.019706 +v 0.035712 0.025168 0.034188 +v 0.025159 0.035723 0.034155 +v 0.035661 0.025288 0.019664 +v 0.030019 0.030693 0.034971 +v 0.016878 0.039400 0.034908 +v 0.019750 0.040162 0.033082 +v 0.014654 0.041560 0.033778 +v -0.015213 0.040369 0.034658 +v -0.018395 0.039480 0.034287 +v 0.017575 -0.045371 0.019523 +v 0.015270 -0.044047 0.019500 +v 0.014726 -0.041760 0.019495 +v 0.015984 -0.039892 0.019513 +v 0.018347 -0.039551 0.019504 +v 0.020407 -0.041842 0.019496 +v 0.019213 -0.045034 0.019406 +v -0.016581 -0.045234 0.019509 +v -0.014584 -0.042293 0.019499 +v -0.015831 -0.040114 0.019501 +v -0.018669 -0.039631 0.019494 +v -0.020434 -0.042424 0.019500 +v -0.019345 -0.044766 0.019494 +v -0.045225 -0.018591 0.019453 +v -0.043469 -0.020357 0.019509 +v -0.039872 -0.019022 0.019498 +v -0.039634 -0.016853 0.019497 +v -0.041038 -0.014922 0.019496 +v -0.044602 -0.015603 0.019501 +v -0.035722 0.025200 0.034035 +v -0.035651 0.025290 0.019668 +v -0.031670 0.029063 0.034869 +v -0.039357 0.016968 0.034913 +v -0.040210 0.019798 0.033012 +v -0.041548 0.014666 0.033820 +v -0.043063 -0.007444 0.034100 +v -0.043092 -0.007339 0.019720 +v -0.042974 0.007467 0.034446 +v -0.043109 0.007358 0.019668 +v -0.042950 -0.000407 0.034940 +v -0.039477 -0.016727 0.034897 +v -0.041912 -0.014542 0.033654 +v -0.040199 -0.019638 0.033233 +v -0.025293 -0.035675 0.019676 +v -0.035680 -0.025273 0.019721 +v -0.035684 -0.025153 0.034241 +v -0.025178 -0.035822 0.034097 +v -0.028647 -0.032107 0.034834 +v -0.016883 -0.039398 0.034907 +v -0.019852 -0.040171 0.033028 +v -0.014636 -0.041596 0.033743 +v 0.015212 -0.040369 0.034657 +v 0.018389 -0.039480 0.034287 +v 0.035646 -0.025305 0.019651 +v 0.025283 -0.035654 0.019703 +v 0.025135 -0.035634 0.034415 +v 0.035717 -0.025188 0.034146 +v -0.021346 0.032497 0.037220 +v 0.033657 -0.019681 0.037179 +v -0.000223 -0.040033 0.037028 +v 0.035085 0.016791 0.037258 +v 0.028160 0.028665 0.036907 +v 0.014651 0.036337 0.037155 +v -0.036377 0.014024 0.037200 +v -0.040201 -0.000545 0.036845 +v -0.035428 -0.018964 0.036953 +v -0.026884 -0.029452 0.036972 +v -0.011672 -0.038777 0.036745 +v 0.013065 -0.037772 0.036887 +v 0.027422 -0.029222 0.036927 +v 0.039641 -0.008752 0.036723 +v 0.039002 0.007673 0.036964 +v 0.000503 0.040474 0.036761 +v -0.013117 0.037778 0.036885 +v -0.030082 0.026978 0.036740 +v -0.045551 0.007685 0.030820 +v -0.046955 0.007807 0.027929 +v -0.048396 0.007473 0.019526 +v -0.044919 0.014208 0.029241 +v -0.047029 0.014030 0.019445 +v -0.043089 0.023406 0.019420 +v -0.042015 0.021991 0.028707 +v -0.038728 0.027799 0.027168 +v -0.037618 0.026671 0.030999 +v -0.039523 0.028849 0.019635 +v -0.028865 0.039511 0.019588 +v -0.034723 0.034699 0.019417 +v -0.027476 0.038431 0.028776 +v -0.021870 0.041939 0.029033 +v -0.023366 0.043149 0.019418 +v -0.013969 0.047004 0.019436 +v -0.014230 0.044635 0.030002 +v 0.013927 0.046994 0.019448 +v 0.014208 0.044934 0.029219 +v 0.023410 0.043087 0.019437 +v 0.021915 0.041964 0.028856 +v 0.028873 0.039472 0.019571 +v 0.027394 0.038347 0.029190 +v 0.039492 0.028864 0.019589 +v 0.034723 0.034729 0.019406 +v 0.038215 0.027294 0.029511 +v 0.041355 0.021219 0.030620 +v 0.043080 0.023338 0.019443 +v 0.042287 0.022366 0.026873 +v 0.047030 0.013908 0.019439 +v 0.045724 0.014071 0.027010 +v 0.048386 0.007440 0.019494 +v 0.046298 0.007750 0.029696 +v 0.048659 0.000000 0.019500 +v 0.048389 -0.007447 0.019505 +v 0.045560 -0.007686 0.030800 +v 0.046992 -0.007820 0.027847 +v 0.044929 -0.014207 0.029213 +v 0.046964 -0.013960 0.019444 +v 0.043085 -0.023402 0.019449 +v 0.042037 -0.022018 0.028631 +v 0.038340 -0.027391 0.029219 +v 0.039507 -0.028859 0.019648 +v 0.034718 -0.034713 0.019415 +v 0.028856 -0.039507 0.019648 +v 0.027724 -0.038618 0.027680 +v 0.021675 -0.041777 0.029533 +v 0.023365 -0.043091 0.019426 +v 0.013919 -0.047012 0.019444 +v 0.014218 -0.044820 0.029723 +v -0.014210 -0.044875 0.029346 +v -0.013998 -0.047018 0.019443 +v -0.023380 -0.043128 0.019396 +v -0.021948 -0.041988 0.028810 +v -0.028887 -0.039512 0.019594 +v -0.027602 -0.038450 0.028260 +v -0.035093 -0.034404 0.019390 +v -0.039466 -0.028869 0.019569 +v -0.037281 -0.026468 0.031530 +v -0.038623 -0.027533 0.028303 +v -0.042091 -0.022111 0.028032 +v -0.043080 -0.023337 0.019444 +v -0.047021 -0.013912 0.019441 +v -0.045755 -0.014064 0.026944 +v 0.026575 -0.037901 0.030947 +v 0.007067 -0.043062 0.034571 +v 0.036695 -0.019894 0.035927 +v 0.041450 0.000006 0.036043 +v 0.040957 0.008866 0.035821 +v 0.007735 0.042991 0.034526 +v 0.019893 0.036660 0.035924 +v -0.007054 0.043074 0.034560 +v -0.021301 0.035923 0.035899 +v -0.036816 0.019550 0.035945 +v -0.020034 -0.036669 0.035885 +v 0.021191 -0.036080 0.035838 +v 0.041455 -0.000053 0.036045 +v -0.040983 -0.009686 0.035631 +v 0.036614 0.019292 0.036117 +v -0.048337 -0.007504 0.019580 +v -0.046263 -0.007747 0.029753 +v -0.048659 -0.000167 0.019573 +v 0.049152 -0.000000 0.019084 +v 0.049175 0.000036 0.019090 +v 0.048666 -0.000013 0.019557 +v 0.049116 0.002261 0.019097 +v -0.007453 -0.043796 0.033658 +v 0.007044 -0.047639 0.025977 +v 0.008922 -0.045621 0.030625 +v -0.000030 -0.046660 0.030334 +v 0.000201 -0.048019 0.026009 +v -0.006913 -0.047723 0.025953 +v -0.008913 -0.045650 0.030594 +v -0.007292 0.047609 0.025973 +v -0.008924 0.045622 0.030622 +v 0.000184 0.046677 0.030305 +v -0.000141 0.048023 0.026010 +v 0.002064 0.047991 0.026010 +v 0.008893 0.046245 0.029544 +v -0.049127 0.002313 0.019088 +v -0.049175 -0.000036 0.019090 +v -0.048666 0.000013 0.019557 +v -0.049060 -0.003439 0.019092 +vn -0.682500 0.058400 0.728500 +vn -0.000300 0.000100 1.000000 +vn -0.659800 0.246500 0.709800 +vn -0.687700 -0.092100 0.720100 +vn -0.650600 -0.234400 0.722300 +vn -0.587800 -0.366200 0.721400 +vn -0.542000 0.444000 0.713500 +vn 0.000000 0.000000 1.000000 +vn -0.402900 0.567500 0.718000 +vn -0.497900 -0.475600 0.725200 +vn -0.396200 -0.571100 0.718900 +vn -0.245100 0.658800 0.711200 +vn -0.281400 -0.627500 0.725900 +vn -0.142600 -0.684400 0.715000 +vn -0.028600 0.699800 0.713700 +vn 0.044000 -0.705300 0.707500 +vn 0.000000 0.000100 1.000000 +vn 0.179400 0.673900 0.716700 +vn 0.234700 -0.656600 0.716800 +vn 0.336300 0.605600 0.721200 +vn 0.399400 -0.570500 0.717600 +vn 0.540000 -0.443800 0.715100 +vn -0.001800 0.000300 1.000000 +vn 0.453900 0.522600 0.721600 +vn 0.581100 0.401300 0.708000 +vn 0.000600 -0.000100 1.000000 +vn 0.663700 -0.261300 0.700900 +vn 0.652600 0.238500 0.719200 +vn -0.007200 -0.000200 1.000000 +vn 0.000900 -0.000300 1.000000 +vn 0.000000 -0.000200 1.000000 +vn 0.681700 -0.044800 0.730200 +vn 0.669400 -0.155500 0.726500 +vn 0.687900 0.093100 0.719800 +vn -0.005200 0.001000 1.000000 +vn -0.000100 0.000300 1.000000 +vn -0.876900 0.018900 -0.480300 +vn -0.844100 -0.173000 -0.507500 +vn -0.815300 -0.325400 -0.478900 +vn -0.768000 -0.491700 -0.410300 +vn -0.661600 -0.621900 -0.418800 +vn -0.518400 -0.723200 -0.456300 +vn -0.335300 -0.832600 -0.440800 +vn -0.094800 -0.864300 -0.494000 +vn 0.114600 -0.851300 -0.512000 +vn 0.301900 -0.811600 -0.500100 +vn 0.528900 -0.774900 -0.346000 +vn 0.668800 -0.553600 -0.496100 +vn 0.844100 -0.397900 -0.359300 +vn 0.845900 -0.165100 -0.507200 +vn 0.882000 -0.023500 -0.470700 +vn 0.867300 0.183300 -0.462800 +vn 0.778300 0.380800 -0.499200 +vn 0.661300 0.579900 -0.475900 +vn 0.542200 0.675400 -0.499800 +vn 0.427700 0.772500 -0.469300 +vn 0.327400 0.914200 -0.238500 +vn 0.118300 0.844400 -0.522400 +vn -0.044600 0.781300 0.622500 +vn 0.060900 0.991200 -0.117200 +vn -0.125900 0.830200 -0.543100 +vn -0.297200 0.817200 -0.493800 +vn -0.471600 0.732500 -0.490800 +vn -0.599800 0.572600 -0.558900 +vn -0.827100 0.458200 -0.325600 +vn -0.844200 0.211300 -0.492600 +vn -0.736200 0.017200 -0.676500 +vn 0.508200 -0.530400 -0.678500 +vn 0.321200 -0.662600 -0.676500 +vn -0.161400 -0.729400 -0.664800 +vn -0.613300 -0.402200 -0.679800 +vn 0.119400 -0.724700 -0.678600 +vn -0.704800 -0.203300 -0.679600 +vn 0.742300 -0.023800 -0.669600 +vn 0.663000 -0.328700 -0.672600 +vn -0.699100 0.225100 -0.678600 +vn -0.574900 0.477000 -0.664800 +vn -0.438200 -0.594200 -0.674400 +vn -0.328600 0.662200 -0.673400 +vn 0.569500 0.479300 -0.667800 +vn 0.695200 0.248100 -0.674600 +vn -0.077200 0.729400 -0.679600 +vn 0.141400 0.719700 -0.679700 +vn 0.357900 0.644200 -0.676000 +vn 0.216600 0.387300 -0.896100 +vn 0.144000 0.244900 -0.958800 +vn 0.247500 0.788300 -0.563300 +vn -0.019200 0.077100 -0.996800 +vn 0.047300 0.300700 -0.952500 +vn 0.010300 0.812900 -0.582300 +vn -0.018000 0.305500 -0.952000 +vn -0.169900 0.683200 -0.710200 +vn -0.150300 0.568200 -0.809000 +vn -0.131000 0.358600 -0.924300 +vn -0.310300 0.617300 -0.723000 +vn -0.251500 0.471800 -0.845100 +vn -0.202100 0.319500 -0.925800 +vn -0.466500 0.561300 -0.683600 +vn -0.457400 0.542900 -0.704300 +vn -0.138600 0.125300 -0.982400 +vn -0.808200 0.561800 -0.176600 +vn -0.738500 0.310000 -0.598700 +vn -0.348100 0.111800 -0.930800 +vn -0.342200 0.096100 -0.934700 +vn -0.645100 0.095400 -0.758200 +vn -0.500600 0.049700 -0.864200 +vn -0.397200 -0.010500 -0.917700 +vn -0.704500 -0.068800 -0.706400 +vn -0.403500 -0.063100 -0.912800 +vn -0.410200 -0.105900 -0.905800 +vn -0.569100 -0.170100 -0.804500 +vn -0.734500 -0.384800 -0.559000 +vn -0.501000 -0.368600 -0.783000 +vn -0.530900 -0.411600 -0.740800 +vn -0.462400 -0.519300 -0.718700 +vn -0.449700 -0.513200 -0.731000 +vn -0.466200 -0.847500 -0.253800 +vn -0.225000 -0.925600 -0.304300 +vn -0.070600 -0.434800 -0.897700 +vn -0.035500 -0.367600 -0.929300 +vn -0.002600 -0.620500 -0.784200 +vn 0.034300 -0.331500 -0.942800 +vn 0.089500 -0.455900 -0.885500 +vn 0.167200 -0.720800 -0.672700 +vn 0.112400 -0.335900 -0.935200 +vn 0.160400 -0.352500 -0.921900 +vn 0.341300 -0.635700 -0.692300 +vn 0.383700 -0.698300 -0.604300 +vn 0.533900 -0.622100 -0.572700 +vn 0.299900 -0.297500 -0.906400 +vn 0.298500 -0.221000 -0.928500 +vn 0.533300 -0.346300 -0.771800 +vn 0.799400 -0.484100 -0.355800 +vn 0.843700 -0.265900 -0.466400 +vn 0.334500 -0.064000 -0.940200 +vn 0.402900 -0.062800 -0.913100 +vn 0.624600 -0.067000 -0.778100 +vn 0.934000 0.085100 -0.347100 +vn 0.935100 0.310500 -0.170900 +vn 0.807100 0.538200 -0.242800 +vn 0.404100 0.413300 -0.816000 +vn 0.329500 0.351400 -0.876300 +vn 0.265500 0.386000 -0.883500 +vn 0.002500 0.773300 -0.634100 +vn 0.022300 0.436200 -0.899600 +vn -0.047000 0.282200 -0.958200 +vn -0.898400 0.146400 -0.414000 +vn -0.377600 -0.143600 -0.914800 +vn -0.266800 -0.354100 -0.896400 +vn -0.153300 -0.397300 -0.904800 +vn 0.001100 -0.592900 -0.805300 +vn 0.375000 -0.396600 -0.837900 +vn 0.408200 -0.018500 -0.912700 +vn 0.416000 0.085400 -0.905400 +vn 0.305600 0.153800 -0.939700 +vn 0.279200 0.123900 -0.952200 +vn 0.296100 0.272300 -0.915500 +vn 0.366000 0.521100 -0.771100 +vn 0.688900 0.073800 -0.721100 +vn 0.643300 -0.159600 -0.748800 +vn 0.538400 -0.400500 -0.741400 +vn 0.354900 -0.563200 -0.746100 +vn 0.094600 -0.648900 -0.755000 +vn -0.157600 -0.654300 -0.739600 +vn -0.336700 -0.582000 -0.740100 +vn -0.498100 -0.456600 -0.737100 +vn -0.610100 -0.288900 -0.737800 +vn -0.663200 -0.058100 -0.746100 +vn -0.620300 0.212600 -0.755000 +vn -0.509800 0.439300 -0.739600 +vn -0.363600 0.565600 -0.740100 +vn -0.178400 0.651800 -0.737100 +vn 0.022000 0.674600 -0.737800 +vn 0.251600 0.616400 -0.746100 +vn 0.471800 0.458700 -0.753000 +vn 0.620700 0.251000 -0.742800 +vn 0.000000 -0.000000 -1.000000 +vn 0.000000 0.000200 -1.000000 +vn -0.000000 -0.000100 -1.000000 +vn 0.000100 0.000000 -1.000000 +vn -0.000000 0.000100 -1.000000 +vn 0.415600 0.684700 0.598700 +vn -0.579000 -0.550600 0.601300 +vn 0.774700 -0.142900 0.616000 +vn 0.269700 -0.736300 0.620600 +vn -0.628000 0.492300 0.602700 +vn -0.304700 -0.711800 0.632800 +vn -0.240000 0.752000 0.613900 +vn -0.787000 -0.099800 0.608800 +vn 0.481100 -0.627400 0.612300 +vn 0.724200 0.319200 0.611200 +vn 0.662600 -0.444700 0.602600 +vn 0.563200 0.553800 0.613100 +vn -0.255000 -0.748300 0.612300 +vn -0.784500 0.039100 0.618900 +vn -0.283400 0.725600 0.627000 +vn -0.646300 -0.462400 0.607000 +vn 0.764100 -0.204200 0.611900 +vn 0.361900 0.701700 0.613600 +vn -0.626700 0.488000 0.607500 +vn 0.150700 -0.770600 0.619200 +vn 0.504800 -0.597600 0.622900 +vn -0.150500 0.774700 0.614200 +vn -0.306700 -0.722000 0.620100 +vn -0.788400 0.048300 0.613300 +vn 0.748500 0.250800 0.613800 +vn 0.699300 0.359600 0.617700 +vn -0.771200 0.136800 0.621700 +vn -0.485700 -0.626800 0.609300 +vn 0.487700 -0.627400 0.607000 +vn -0.183000 0.779900 0.598600 +vn -0.505300 -0.607900 0.612400 +vn 0.516700 0.608200 0.602600 +vn -0.643500 0.472600 0.602000 +vn 0.569100 -0.551300 0.610000 +vn 0.602200 -0.518900 0.606600 +vn -0.540400 0.565200 0.623300 +vn -0.768600 -0.099900 0.631900 +vn 0.730100 0.276300 0.625000 +vn 0.184700 0.761800 0.620900 +vn -0.309900 -0.727700 0.611800 +vn 0.720500 -0.308800 -0.621000 +vn 0.718500 0.313100 -0.621000 +vn 0.777600 0.116900 -0.617800 +vn 0.778500 -0.119200 -0.616200 +vn 0.625200 -0.478600 -0.616500 +vn 0.634800 0.455200 -0.624200 +vn 0.534300 0.571800 -0.622500 +vn 0.475800 -0.624000 -0.619900 +vn 0.434700 0.645800 -0.627600 +vn 0.321100 0.713200 -0.623100 +vn 0.327600 -0.711800 -0.621300 +vn 0.187000 -0.757700 -0.625200 +vn 0.177800 0.763200 -0.621200 +vn -0.141600 -0.767200 -0.625500 +vn 0.016200 0.781900 -0.623100 +vn 0.023000 -0.780800 -0.624400 +vn -0.149300 0.766200 -0.625000 +vn -0.292000 -0.724800 -0.624000 +vn -0.294200 0.723800 -0.624100 +vn -0.429000 -0.654300 -0.622700 +vn -0.411600 0.661300 -0.627100 +vn -0.553700 -0.554200 -0.621400 +vn -0.656100 -0.427700 -0.621800 +vn -0.545700 0.567000 -0.617000 +vn -0.663400 0.419200 -0.619800 +vn -0.754600 0.231500 -0.613900 +vn -0.729700 -0.284000 -0.621900 +vn -0.768400 -0.132500 -0.626100 +vn -0.780700 0.038700 -0.623600 +vn -0.284300 -0.685100 0.670600 +vn 0.028700 -0.748500 0.662500 +vn 0.284300 0.685100 0.670600 +vn 0.460300 -0.609900 0.645100 +vn -0.028700 0.748500 0.662500 +vn -0.712900 0.234900 0.660800 +vn -0.731500 -0.201500 0.651400 +vn -0.528100 -0.521500 0.670100 +vn 0.714700 -0.232800 0.659500 +vn 0.735500 0.195400 0.648700 +vn 0.528700 0.521600 0.669600 +vn -0.460200 0.609900 0.645100 +vn 0.897400 0.200900 0.392800 +vn 0.939100 -0.182700 0.291200 +vn 0.815300 -0.467900 0.341000 +vn 0.539200 -0.752600 0.377800 +vn 0.239600 -0.938800 0.247600 +vn -0.122700 -0.911500 0.392500 +vn -0.534600 -0.809800 0.241800 +vn -0.734400 -0.505300 0.453000 +vn -0.955400 -0.243000 0.167900 +vn -0.878400 0.110900 0.464900 +vn -0.796800 0.488800 0.355100 +vn -0.605500 0.768500 0.207000 +vn -0.181700 0.879400 0.440000 +vn 0.161600 0.929100 0.332700 +vn 0.501100 0.790600 0.351700 +vn 0.783400 0.501800 0.366600 +vn 0.103200 -0.547100 0.830600 +vn 0.497600 -0.122200 0.858800 +vn -0.421900 -0.216300 0.880500 +vn -0.269700 0.408200 0.872100 +vn 0.333600 0.421500 0.843200 +vn 0.327200 0.378700 0.865800 +vn 0.460700 -0.242400 0.853800 +vn 0.124800 -0.630500 0.766100 +vn -0.032600 -0.999100 0.027400 +vn -0.293400 -0.477900 0.827900 +vn -0.466400 0.120300 0.876300 +vn -0.186100 0.601100 0.777200 +vn 0.044800 0.999000 -0.004600 +vn -0.049300 -0.561100 0.826300 +vn 0.433700 -0.328600 0.839000 +vn -0.506100 -0.280700 0.815500 +vn -0.474600 0.277300 0.835400 +vn 0.481200 0.227100 0.846600 +vn 0.009600 0.568300 0.822800 +vn -0.484800 -0.234800 0.842500 +vn 0.038700 -0.481800 0.875400 +vn 0.549600 -0.266400 0.791800 +vn 0.996300 -0.084000 -0.019400 +vn 0.530200 0.214700 0.820200 +vn 0.039800 0.527700 0.848400 +vn -0.478200 0.298700 0.825800 +vn -0.468200 0.248500 0.847900 +vn -0.334200 -0.370400 0.866700 +vn -0.035100 -0.999400 -0.002700 +vn 0.179800 -0.597300 0.781600 +vn 0.481700 -0.113700 0.868900 +vn 0.303300 0.475400 0.825900 +vn 0.045600 0.998900 -0.014500 +vn -0.145900 0.637000 0.756900 +vn -0.166200 0.519600 0.838000 +vn -0.566500 0.250400 0.785100 +vn -0.999200 0.037800 -0.010300 +vn -0.625400 -0.149900 0.765800 +vn -0.264300 -0.464700 0.845100 +vn 0.249200 -0.517200 0.818700 +vn 0.573700 -0.104900 0.812300 +vn 0.385100 0.398000 0.832600 +vn -0.286600 0.218300 0.932800 +vn -0.284300 0.018600 0.958500 +vn -0.094200 0.221500 0.970600 +vn 0.124100 0.300400 0.945700 +vn -0.027100 0.402300 0.915100 +vn -0.006100 0.705300 0.708900 +vn -0.111900 0.702900 0.702400 +vn 0.233200 0.207800 0.949900 +vn 0.706100 0.008900 0.708100 +vn 0.324500 0.089500 0.941700 +vn 0.298800 -0.205600 0.931900 +vn 0.439000 -0.005400 0.898500 +vn 0.161000 -0.275600 0.947700 +vn -0.081300 -0.246100 0.965800 +vn 0.000800 -0.708800 0.705400 +vn -0.034300 -0.654700 0.755100 +vn -0.089400 -0.146600 0.985100 +vn -0.242400 -0.169800 0.955200 +vn 0.066300 -0.535500 0.841900 +vn 0.501100 -0.085700 0.861100 +vn 0.158400 0.456400 0.875500 +vn -0.415100 0.343600 0.842400 +vn -0.465400 -0.240300 0.851800 +vn 0.269600 -0.425000 0.864100 +vn 0.460400 0.181500 0.869000 +vn -0.064900 0.524400 0.849000 +vn -0.497600 0.107500 0.860700 +vn -0.336600 -0.434400 0.835400 +vn -0.413200 0.218700 0.884000 +vn -0.123700 0.440400 0.889200 +vn -0.263500 0.394100 0.880500 +vn 0.504200 0.189400 0.842500 +vn 0.341300 0.347500 0.873300 +vn 0.313200 0.641800 0.700000 +vn -0.515500 0.016200 0.856700 +vn -0.484100 -0.190200 0.854100 +vn -0.020700 0.578800 0.815200 +vn 0.000400 0.000500 1.000000 +vn 0.478400 -0.096100 0.872900 +vn 0.611000 -0.390200 0.688800 +vn 0.252800 -0.436800 0.863300 +vn 0.095800 -0.471800 0.876500 +vn 0.020200 -0.612100 0.790500 +vn -0.178500 -0.421000 0.889300 +vn -0.290100 -0.346600 0.892000 +vn 0.018800 0.003100 0.999800 +vn 0.867900 -0.283500 0.407900 +vn 0.917300 -0.061900 0.393300 +vn -0.669200 -0.578100 0.466900 +vn -0.482000 -0.762300 0.431800 +vn -0.821300 -0.445400 0.356400 +vn -0.887000 -0.128200 0.443600 +vn -0.187600 -0.872900 0.450400 +vn 0.311700 -0.846200 0.432300 +vn 0.080400 -0.917300 0.390100 +vn -0.002300 -0.705500 0.708700 +vn 0.005200 -0.741500 0.671000 +vn 0.591500 -0.699500 0.400900 +vn 0.920600 0.184200 0.344200 +vn 0.708100 0.005000 0.706100 +vn 0.705500 0.003400 0.708700 +vn 0.720000 0.483300 0.498000 +vn 0.613100 0.723100 0.318000 +vn -0.140200 0.910000 0.390200 +vn 0.001100 0.706500 0.707700 +vn -0.008300 0.741000 0.671500 +vn 0.162100 0.866000 0.473100 +vn -0.454500 0.812300 0.365400 +vn -0.656800 0.566700 0.497300 +vn -0.873200 0.181200 0.452400 +vn -0.860000 0.386500 0.333100 +vn 0.903700 0.009800 -0.428100 +vn 0.987600 -0.104800 -0.116300 +vn 0.987500 0.095600 -0.125400 +vn 0.959800 -0.280600 0.000900 +vn 0.982100 -0.185700 0.031300 +vn 0.982900 -0.124000 0.136000 +vn 0.614700 -0.170800 0.770100 +vn 0.929200 -0.116500 0.350700 +vn 0.930900 0.015800 0.364900 +vn 0.986800 0.014600 0.160900 +vn 0.981500 0.066400 0.179500 +vn 0.938200 0.345800 -0.010300 +vn 0.984300 0.169400 0.048400 +vn 0.588200 0.806500 0.059700 +vn 0.476600 0.872500 0.107600 +vn 0.533200 0.844700 -0.047200 +vn 0.583200 0.767500 -0.265800 +vn 0.660200 0.734700 -0.156100 +vn 0.733400 0.652100 -0.191700 +vn 0.868300 0.476700 -0.136800 +vn 0.813000 0.579900 -0.052400 +vn 0.835400 0.546700 0.055900 +vn 0.743500 0.610200 0.273500 +vn 0.708600 0.671300 0.217200 +vn 0.636000 0.755300 0.157900 +vn 0.718800 0.694000 -0.039700 +vn -0.798500 0.599800 0.051600 +vn -0.851400 0.508400 -0.128800 +vn -0.781000 0.616900 -0.096800 +vn -0.704200 0.688600 -0.172800 +vn -0.592800 0.801400 0.079900 +vn -0.601000 0.791100 0.113600 +vn -0.580300 0.812600 -0.054400 +vn -0.508700 0.807000 -0.300000 +vn -0.747100 0.621200 0.236400 +vn -0.755200 0.628600 0.185900 +vn -0.674500 0.700100 0.234300 +vn -0.962600 0.025300 -0.269700 +vn -0.950000 -0.043600 -0.309100 +vn -0.984600 -0.165000 -0.056800 +vn -0.894900 -0.008300 -0.446300 +vn -0.983400 0.082500 -0.161900 +vn -0.558300 0.102100 -0.823300 +vn -0.986400 0.133500 -0.095100 +vn -0.951000 0.309100 -0.010700 +vn -0.980700 0.175600 0.085900 +vn -0.976400 0.095600 0.193600 +vn -0.968200 0.034300 0.247600 +vn -0.580200 0.132500 0.803600 +vn -0.979000 -0.063700 0.193700 +vn -0.908600 -0.017900 0.417300 +vn -0.986100 -0.148000 0.074700 +vn -0.983300 -0.182000 -0.000800 +vn -0.683900 -0.669400 -0.290100 +vn -0.649500 -0.744500 -0.154500 +vn -0.589400 -0.805200 -0.065000 +vn -0.740600 -0.651800 -0.162900 +vn -0.797400 -0.597300 -0.085300 +vn -0.890500 -0.454800 -0.008900 +vn -0.815500 -0.573400 0.078400 +vn -0.692300 -0.664200 0.281900 +vn -0.649300 -0.737300 0.186300 +vn -0.732400 -0.651900 0.196300 +vn -0.606500 -0.791200 0.078500 +vn -0.565300 -0.824900 -0.002900 +vn 0.669600 -0.683700 -0.289900 +vn 0.744500 -0.648800 -0.157300 +vn 0.810100 -0.582800 -0.063400 +vn 0.651400 -0.740300 -0.165800 +vn 0.595700 -0.798500 -0.086000 +vn 0.455000 -0.890400 -0.009100 +vn 0.565100 -0.821100 0.080300 +vn 0.664500 -0.692100 0.281600 +vn 0.741500 -0.645800 0.181900 +vn 0.649400 -0.733700 0.199800 +vn 0.799800 -0.594800 0.081000 +vn 0.825000 -0.565100 -0.003200 +vn -0.683000 -0.250300 0.686100 +vn -0.664300 -0.005100 0.747400 +vn -0.951400 0.220400 0.215100 +vn -0.861100 -0.508200 -0.014000 +vn -0.618500 -0.723700 0.306200 +vn -0.337700 -0.629400 0.699800 +vn -0.312600 -0.949400 -0.029800 +vn 0.029500 -0.933500 0.357400 +vn 0.191300 -0.934800 0.299100 +vn 0.508000 -0.855500 0.100300 +vn 0.802600 -0.596100 0.018500 +vn 0.670500 -0.298500 0.679200 +vn 0.948200 -0.033900 0.315700 +vn 0.767000 0.090500 0.635200 +vn 0.634700 0.298300 0.712900 +vn 0.516300 0.467200 0.717800 +vn 0.613000 0.726600 0.310200 +vn 0.283400 0.663800 0.692100 +vn 0.081600 0.906200 0.414800 +vn -0.102000 0.719400 0.687000 +vn -0.234000 0.679000 0.695900 +vn -0.378300 0.615500 0.691400 +vn -0.513800 0.510800 0.689200 +vn -0.807900 0.415700 0.417600 +vn -0.949300 0.160600 0.270300 +vn -0.780800 0.102700 0.616300 +vn 0.356100 -0.668000 0.653400 +vn 0.746800 0.159500 0.645600 +vn -0.041000 0.787000 0.615500 +vn -0.413800 -0.659300 0.627800 +vn -0.380700 0.679800 0.626800 +vn -0.214400 -0.721900 0.657900 +vn 0.468600 -0.595400 0.652500 +vn 0.760000 0.149100 0.632500 +vn 0.326900 0.699400 0.635500 +vn -0.791600 -0.112500 0.600500 +vn 0.072700 0.786700 0.613000 +vn -0.666700 -0.357600 0.653900 +vn 0.167600 -0.749500 0.640400 +vn 0.807500 0.044100 0.588200 +vn -0.642800 0.426900 0.636000 +vn -0.759700 0.175800 0.626100 +vn 0.709200 -0.303400 0.636300 +vn -0.174500 0.777100 0.604700 +vn 0.669700 0.376300 0.640200 +vn -0.562100 -0.508100 0.652600 +vn 0.154700 -0.753300 0.639200 +vn -0.326000 0.709200 0.625100 +vn -0.753100 0.036400 0.656800 +vn 0.603200 0.520400 0.604400 +vn -0.334400 -0.704100 0.626400 +vn 0.610900 -0.496700 0.616500 +vn 0.537100 0.026300 0.843100 +vn 0.938900 -0.023200 0.343500 +vn 0.462200 0.617200 0.636700 +vn -0.325800 -0.697800 0.637800 +vn 0.338300 -0.676500 0.654000 +vn 0.763300 -0.152200 0.627800 +vn -0.436500 0.618700 0.653100 +vn -0.752600 -0.145500 0.642100 +vn 0.503300 -0.610300 0.611700 +vn 0.680900 0.333000 0.652300 +vn -0.323900 -0.700900 0.635500 +vn -0.162500 0.750600 0.640500 +vn -0.800900 0.025800 0.598200 +vn -0.709300 0.302500 0.636600 +vn -0.674900 -0.370800 0.637900 +vn 0.553900 0.536900 0.636400 +vn 0.141300 -0.788800 0.598100 +vn 0.763100 -0.067900 0.642700 +vn -0.166900 0.762700 0.624800 +vn -0.916000 0.002700 -0.401100 +vn -0.236600 -0.033400 -0.971000 +vn -0.413100 -0.033100 0.910100 +vn -0.926000 0.023100 0.376900 +vn -0.325100 0.173100 0.929700 +vn -0.037600 -0.311000 0.949600 +vn -0.245900 -0.209700 0.946300 +vn 0.118800 -0.314000 0.941900 +vn 0.201900 -0.229800 0.952000 +vn 0.351500 -0.066000 0.933800 +vn 0.203100 0.317400 0.926300 +vn -0.985700 0.052800 0.159700 +vn 0.044700 0.384400 0.922100 +vn -0.486700 0.092100 0.868600 +vn -0.500700 -0.259600 0.825700 +vn -0.801100 0.465200 0.376600 +vn -0.811700 0.109200 0.573700 +vn 0.023000 0.337400 0.941100 +vn -0.105300 -0.733800 0.671200 +vn -0.625100 0.464100 0.627500 +vn -0.040900 0.621300 0.782500 +vn -0.823800 0.355500 0.441500 +vn -0.818800 0.033600 0.573000 +vn -0.567200 0.592000 0.572600 +vn -0.109500 0.776400 0.620600 +vn -0.536200 0.267300 0.800700 +vn -0.475200 0.640500 0.603300 +vn -0.237200 -0.012100 0.971400 +vn 0.032900 0.706500 0.706900 +vn 0.532100 0.299800 0.791800 +vn 0.320200 0.903900 0.283400 +vn -0.425600 0.414500 0.804300 +vn 0.066300 0.793500 0.604900 +vn 0.227400 0.034900 0.973100 +vn 0.483700 0.587800 0.648400 +vn 0.535400 0.089200 0.839900 +vn 0.914500 0.330800 0.233000 +vn 0.431000 -0.383300 0.816900 +vn 0.756700 0.070500 0.649900 +vn -0.008500 0.415300 0.909600 +vn 0.347900 0.298000 0.888900 +vn 0.586100 0.162800 0.793600 +vn 0.269000 0.547500 0.792400 +vn 0.910100 -0.307000 0.278500 +vn 0.357300 0.444100 0.821600 +vn 0.762500 -0.065800 0.643600 +vn 0.211000 0.058300 0.975700 +vn 0.562500 -0.473400 0.677800 +vn 0.048000 -0.546400 0.836100 +vn 0.843800 -0.224200 0.487500 +vn 0.738900 -0.327400 0.588800 +vn 0.843200 -0.002100 0.537600 +vn 0.604100 -0.555600 0.571300 +vn 0.872200 -0.010000 0.488900 +vn 0.831500 -0.009700 0.555400 +vn 0.609400 0.555900 0.565400 +vn 0.744500 0.450500 0.492700 +vn 0.754900 0.279300 0.593400 +vn 0.822400 0.028000 0.568200 +vn 0.574100 0.572700 0.585200 +vn 0.584200 0.577800 0.569900 +vn 0.029100 0.817700 0.574900 +vn 0.595800 0.602200 0.531300 +vn 0.259400 0.737800 0.623100 +vn 0.075300 0.899400 0.430600 +vn 0.501800 0.725900 0.470300 +vn -0.361100 0.729100 0.581300 +vn -0.226800 0.823400 0.520100 +vn 0.006900 -0.745100 0.666900 +vn -0.502300 -0.362600 0.785000 +vn 0.082700 -0.682100 0.726600 +vn 0.270700 -0.158900 0.949500 +vn 0.206100 -0.455800 0.865900 +vn 0.562900 0.113600 0.818600 +vn 0.482500 -0.842100 0.240700 +vn 0.194600 -0.538000 0.820100 +vn -0.172300 -0.773700 0.609700 +vn -0.289200 0.035400 0.956600 +vn -0.480800 -0.568100 0.667900 +vn -0.594800 0.050400 0.802300 +vn -0.470600 -0.808900 0.352400 +vn -0.911500 -0.336000 0.237000 +vn -0.178700 -0.540300 0.822300 +vn -0.617900 -0.503900 0.603500 +vn -0.353700 0.418800 0.836300 +vn -0.615400 -0.188300 0.765400 +vn -0.406400 0.392900 0.824800 +vn -0.577000 0.589200 0.565500 +vn -0.031800 0.817800 0.574600 +vn -0.622000 0.591500 0.513000 +vn -0.738900 0.250100 0.625600 +vn -0.898200 0.067100 0.434300 +vn -0.722900 0.488000 0.489200 +vn -0.837200 0.003100 0.546800 +vn -0.607400 0.554200 0.569100 +vn -0.778800 0.013200 0.627200 +vn -0.595000 -0.561100 0.575400 +vn -0.863200 0.011800 0.504700 +vn -0.737900 -0.291000 0.608900 +vn -0.724800 -0.507300 0.466000 +vn -0.890400 -0.090300 0.446000 +vn -0.821600 -0.029700 0.569200 +vn -0.033200 -0.819800 0.571600 +vn -0.553700 -0.573700 0.603500 +vn -0.584800 -0.594500 0.551900 +vn -0.596800 -0.609000 0.522500 +vn -0.281600 -0.758300 0.587900 +vn -0.083300 -0.900100 0.427700 +vn -0.499300 -0.722500 0.478300 +vn 0.360100 -0.729600 0.581300 +vn 0.224200 -0.824200 0.520100 +vn 0.032400 -0.818600 0.573400 +vn 0.821700 -0.031300 0.569000 +vn 0.568700 -0.570000 0.593000 +vn 0.573200 -0.581900 0.576900 +vn -0.162500 0.236500 0.957900 +vn 0.245200 -0.149900 0.957800 +vn -0.006600 -0.394500 0.918900 +vn 0.263100 0.118900 0.957400 +vn 0.267200 0.275700 0.923300 +vn 0.112400 0.314100 0.942700 +vn -0.302700 0.100600 0.947800 +vn -0.377900 -0.002600 0.925800 +vn -0.349200 -0.193200 0.916900 +vn -0.252100 -0.266300 0.930300 +vn -0.117800 -0.394800 0.911200 +vn 0.123000 -0.348800 0.929100 +vn 0.285600 -0.293900 0.912100 +vn 0.408600 -0.087500 0.908500 +vn 0.307100 0.054700 0.950100 +vn 0.006900 0.412900 0.910700 +vn -0.117600 0.357000 0.926700 +vn -0.295900 0.260400 0.919000 +vn -0.712100 -0.576700 0.400200 +vn -0.800300 -0.547800 0.243700 +vn -0.873000 -0.127400 0.470800 +vn -0.658700 0.701200 0.272700 +vn -0.814800 0.470700 0.338400 +vn -0.916000 0.240900 0.320700 +vn -0.968300 -0.025400 0.248500 +vn -0.137200 0.965000 0.223500 +vn -0.121800 0.910700 0.394800 +vn -0.491700 0.739100 0.460300 +vn -0.698600 0.534000 0.476100 +vn -0.481700 0.478600 0.734100 +vn -0.945100 0.145700 0.292500 +vn 0.000400 0.963800 0.266600 +vn -0.311900 0.885800 0.343700 +vn -0.468500 0.820400 0.327600 +vn -0.675300 0.674800 0.297700 +vn 0.456900 0.825300 0.331700 +vn 0.704700 0.658200 0.264800 +vn 0.277700 0.900300 0.335100 +vn -0.021300 0.967000 0.253800 +vn 0.705900 0.522400 0.478200 +vn 0.938200 0.161400 0.306000 +vn 0.523400 0.705900 0.477200 +vn 0.483800 0.481200 0.730900 +vn 0.151700 0.937100 0.314200 +vn 0.940400 0.000000 0.340000 +vn 0.912800 0.247900 0.324400 +vn 0.986000 -0.024200 0.165100 +vn 0.822000 0.473300 0.316600 +vn 0.683100 0.701300 0.203800 +vn 0.864900 -0.114500 0.488600 +vn 0.773900 -0.538700 0.332800 +vn 0.030200 0.000100 0.999500 +vn 0.832100 0.316900 0.455200 +vn 0.716700 0.563800 0.410400 +vn 0.803800 0.543500 0.241700 +vn 0.676700 -0.681700 0.278000 +vn 0.823600 -0.460300 0.331400 +vn 0.906700 -0.265600 0.327600 +vn 0.966600 0.002300 0.256300 +vn 0.164800 -0.934900 0.314300 +vn 0.520300 -0.704000 0.483300 +vn 0.481400 -0.481900 0.732100 +vn 0.711900 0.581300 0.394000 +vn 0.964500 -0.157800 0.211500 +vn -0.004400 -0.958900 0.283800 +vn 0.273000 -0.903000 0.331800 +vn 0.469300 -0.820700 0.325700 +vn 0.677200 -0.677000 0.288200 +vn -0.710200 -0.650600 0.268900 +vn -0.472800 -0.816200 0.331900 +vn -0.261100 -0.907300 0.329400 +vn 0.017500 -0.964100 0.265000 +vn -0.704000 -0.528000 0.474800 +vn -0.949900 -0.140400 0.279200 +vn -0.491400 -0.489500 0.720300 +vn -0.497100 -0.730200 0.468700 +vn -0.098800 -0.909800 0.403000 +vn -0.183500 -0.945600 0.268500 +vn -0.973200 0.016400 0.229300 +vn -0.916700 -0.232600 0.324900 +vn -0.822700 -0.472300 0.316400 +vn -0.688600 -0.696000 0.203300 +vn 0.786600 -0.392700 0.476400 +vn 0.109700 -0.675000 0.729500 +vn 0.477300 -0.268700 0.836600 +vn 0.344500 0.009000 0.938700 +vn 0.563400 0.127400 0.816300 +vn 0.125600 0.671900 0.729900 +vn 0.265700 0.476200 0.838200 +vn -0.108900 0.674600 0.730000 +vn -0.281400 0.480500 0.830600 +vn -0.477300 0.259800 0.839400 +vn -0.263800 -0.469200 0.842700 +vn 0.266300 -0.467700 0.842800 +vn 0.392000 0.017000 0.919800 +vn -0.542500 -0.125600 0.830600 +vn 0.467000 0.258700 0.845600 +vn -0.866900 0.109300 0.486300 +vn -0.774600 0.538400 0.331700 +vn -0.471900 0.010900 0.881600 +vn 0.907300 -0.070000 -0.414700 +vn 0.783900 -0.021900 0.620500 +vn 0.672700 -0.007000 0.739900 +vn 0.873900 0.046100 0.484000 +vn -0.116000 -0.720000 0.684200 +vn 0.137400 -0.958600 0.249300 +vn 0.162100 -0.864600 0.475600 +vn 0.001900 -0.881300 0.472500 +vn 0.007600 -0.953900 0.300000 +vn -0.135300 -0.958400 0.251400 +vn -0.178400 -0.865100 0.468700 +vn -0.150800 0.957100 0.247600 +vn -0.163500 0.866300 0.471900 +vn 0.001200 0.880100 0.474700 +vn -0.022900 0.953500 0.300400 +vn 0.060700 0.970700 0.232500 +vn 0.177600 0.903500 0.390100 +vn -0.853400 0.039000 0.519900 +vn -0.672800 0.001100 0.739800 +vn -0.690200 0.006600 0.723600 +vn -0.881900 -0.059200 0.467700 +usemtl None +s 1 +f 1//1 2//2 3//3 +f 3//3 2//2 4//4 +f 3//3 4//4 5//5 +f 5//5 6//6 7//7 +f 3//3 5//5 7//7 +f 8//8 9//9 7//7 +f 10//10 11//11 7//7 +f 7//7 11//11 8//8 +f 6//6 10//10 7//7 +f 12//12 13//8 14//13 +f 9//9 8//8 12//12 +f 12//12 8//8 13//8 +f 15//14 16//15 12//12 +f 12//12 14//13 15//14 +f 16//15 17//16 18//17 +f 19//8 20//18 18//17 +f 20//18 16//15 18//17 +f 15//14 17//16 16//15 +f 20//18 19//8 21//17 +f 21//17 22//19 20//18 +f 22//19 23//20 20//18 +f 24//21 23//20 22//19 +f 23//20 25//22 26//23 +f 26//23 27//24 23//20 +f 23//20 24//21 25//22 +f 26//23 28//25 27//24 +f 28//25 26//23 29//26 +f 30//27 28//25 29//26 +f 30//27 31//28 28//25 +f 30//27 32//29 31//28 +f 33//30 34//31 30//27 +f 33//30 30//27 35//32 +f 11//11 14//13 13//8 +f 36//33 35//32 30//27 +f 37//34 31//28 33//30 +f 33//30 31//28 34//31 +f 30//27 29//26 25//22 +f 25//22 29//26 38//35 +f 25//22 38//35 26//23 +f 13//8 39//8 11//11 +f 11//11 39//8 8//8 +f 22//19 21//17 17//16 +f 17//16 21//17 40//36 +f 17//16 40//36 18//17 +f 1//1 41//37 4//4 +f 4//4 41//37 42//38 +f 4//4 42//38 5//5 +f 43//39 5//5 42//38 +f 44//40 6//6 43//39 +f 43//39 6//6 5//5 +f 6//6 44//40 45//41 +f 6//6 45//41 10//10 +f 46//42 11//11 45//41 +f 45//41 11//11 10//10 +f 11//11 46//42 47//43 +f 11//11 47//43 14//13 +f 14//13 47//43 15//14 +f 48//44 15//14 47//43 +f 15//14 48//44 17//16 +f 49//45 17//16 48//44 +f 17//16 49//45 50//46 +f 17//16 50//46 22//19 +f 51//47 24//21 50//46 +f 50//46 24//21 22//19 +f 24//21 51//47 52//48 +f 24//21 52//48 25//22 +f 53//49 30//27 52//48 +f 52//48 30//27 25//22 +f 30//27 53//49 36//33 +f 36//33 53//49 54//50 +f 36//33 54//50 35//32 +f 55//51 35//32 54//50 +f 56//52 37//34 55//51 +f 55//51 37//34 35//32 +f 37//34 56//52 31//28 +f 31//28 56//52 57//53 +f 57//53 28//25 31//28 +f 58//54 28//25 57//53 +f 28//25 58//54 27//24 +f 27//24 58//54 59//55 +f 60//56 23//20 59//55 +f 59//55 23//20 27//24 +f 23//20 60//56 61//57 +f 23//20 61//57 20//18 +f 20//18 61//57 62//58 +f 62//58 16//15 20//18 +f 63//59 16//15 64//60 +f 64//60 16//15 62//58 +f 63//59 65//61 16//15 +f 16//15 65//61 12//12 +f 65//61 66//62 12//12 +f 67//63 9//9 12//12 +f 67//63 12//12 66//62 +f 9//9 67//63 68//64 +f 9//9 68//64 7//7 +f 69//65 3//3 7//7 +f 69//65 7//7 68//64 +f 3//3 69//65 70//66 +f 41//37 1//1 70//66 +f 70//66 1//1 3//3 +f 71//67 72//68 73//69 +f 74//70 75//71 76//72 +f 76//72 75//71 77//73 +f 73//69 76//72 71//67 +f 71//67 76//72 77//73 +f 71//67 78//74 79//75 +f 71//67 80//76 78//74 +f 78//74 80//76 81//77 +f 71//67 79//75 72//68 +f 74//70 82//78 75//71 +f 78//74 81//77 83//79 +f 84//80 85//81 83//79 +f 84//80 83//79 86//82 +f 78//74 83//79 85//81 +f 86//82 87//83 84//80 +f 84//80 87//83 88//84 +f 89//85 90//86 60//56 +f 60//56 90//86 91//87 +f 91//87 92//88 62//58 +f 92//88 93//89 62//58 +f 62//58 94//90 65//61 +f 94//90 95//91 65//61 +f 96//92 97//93 66//62 +f 97//93 98//94 66//62 +f 66//62 98//94 99//95 +f 99//95 100//96 67//63 +f 100//96 101//97 67//63 +f 67//63 101//97 102//98 +f 103//99 104//100 68//64 +f 105//101 106//102 69//65 +f 69//65 106//102 70//66 +f 107//103 108//104 70//66 +f 108//104 109//105 70//66 +f 70//66 109//105 41//37 +f 110//106 111//107 41//37 +f 41//37 111//107 112//108 +f 113//109 114//110 42//38 +f 42//38 114//110 115//111 +f 43//39 116//112 44//40 +f 116//112 117//113 44//40 +f 44//40 117//113 118//114 +f 44//40 118//114 45//41 +f 119//115 120//116 46//42 +f 46//42 121//117 47//43 +f 122//118 123//119 48//44 +f 123//119 124//120 48//44 +f 124//120 125//121 48//44 +f 48//44 125//121 49//45 +f 126//122 127//123 49//45 +f 49//45 127//123 128//124 +f 129//125 130//126 50//46 +f 130//126 131//127 50//46 +f 50//46 131//127 132//128 +f 132//128 133//129 51//47 +f 51//47 133//129 52//48 +f 134//130 135//131 52//48 +f 135//131 136//132 52//48 +f 52//48 136//132 137//133 +f 137//133 138//134 53//49 +f 139//135 140//136 54//50 +f 54//50 140//136 141//137 +f 55//51 142//138 56//52 +f 56//52 143//139 57//53 +f 57//53 144//140 58//54 +f 145//141 146//142 59//55 +f 146//142 147//143 59//55 +f 59//55 147//143 60//56 +f 61//57 91//87 62//58 +f 148//144 65//61 63//59 +f 62//58 65//61 148//144 +f 93//89 149//145 62//58 +f 62//58 149//145 94//90 +f 95//91 150//146 65//61 +f 65//61 150//146 96//92 +f 65//61 96//92 66//62 +f 66//62 99//95 67//63 +f 67//63 102//98 68//64 +f 102//98 103//99 68//64 +f 104//100 105//101 68//64 +f 68//64 105//101 69//65 +f 106//102 107//103 70//66 +f 109//105 151//147 41//37 +f 41//37 151//147 110//106 +f 41//37 112//108 42//38 +f 112//108 113//109 42//38 +f 42//38 115//111 43//39 +f 115//111 152//148 43//39 +f 43//39 152//148 116//112 +f 118//114 119//115 45//41 +f 45//41 119//115 46//42 +f 120//116 153//149 46//42 +f 46//42 153//149 121//117 +f 121//117 154//150 47//43 +f 47//43 154//150 122//118 +f 47//43 122//118 48//44 +f 125//121 155//151 49//45 +f 49//45 128//124 50//46 +f 155//151 126//122 49//45 +f 128//124 129//125 50//46 +f 50//46 132//128 51//47 +f 134//130 52//48 156//152 +f 156//152 52//48 133//129 +f 52//48 137//133 53//49 +f 53//49 138//134 54//50 +f 141//137 55//51 54//50 +f 138//134 139//135 54//50 +f 141//137 157//153 55//51 +f 55//51 157//153 142//138 +f 142//138 158//154 56//52 +f 56//52 158//154 143//139 +f 143//139 159//155 57//53 +f 159//155 160//156 57//53 +f 57//53 160//156 144//140 +f 144//140 161//157 58//54 +f 161//157 145//141 58//54 +f 58//54 145//141 59//55 +f 147//143 162//158 60//56 +f 60//56 162//158 89//85 +f 60//56 91//87 61//57 +f 62//58 148//144 64//60 +f 78//74 163//159 164//160 +f 78//74 164//160 79//75 +f 79//75 164//160 165//161 +f 79//75 165//161 72//68 +f 72//68 165//161 166//162 +f 72//68 166//162 73//69 +f 73//69 166//162 167//163 +f 73//69 167//163 76//72 +f 76//72 167//163 74//70 +f 74//70 167//163 168//164 +f 74//70 168//164 169//165 +f 74//70 169//165 82//78 +f 82//78 169//165 170//166 +f 82//78 170//166 75//71 +f 75//71 170//166 171//167 +f 75//71 171//167 77//73 +f 77//73 171//167 172//168 +f 77//73 172//168 71//67 +f 71//67 172//168 173//169 +f 71//67 173//169 80//76 +f 80//76 173//169 81//77 +f 81//77 173//169 174//170 +f 81//77 174//170 175//171 +f 81//77 175//171 83//79 +f 83//79 175//171 176//172 +f 83//79 176//172 86//82 +f 86//82 176//172 177//173 +f 86//82 177//173 87//83 +f 87//83 177//173 178//174 +f 87//83 178//174 88//84 +f 88//84 178//174 179//175 +f 88//84 179//175 84//80 +f 84//80 179//175 180//176 +f 84//80 180//176 85//81 +f 85//81 180//176 163//159 +f 85//81 163//159 78//74 +f 181//177 182//178 163//159 +f 180//176 183//177 163//159 +f 163//159 183//177 184//177 +f 163//159 184//177 181//177 +f 180//176 185//177 186//177 +f 180//176 186//177 183//177 +f 179//175 187//177 180//176 +f 180//176 187//177 188//177 +f 180//176 188//177 185//177 +f 189//179 190//177 178//174 +f 178//174 190//177 179//175 +f 189//179 178//174 191//179 +f 191//179 178//174 192//179 +f 172//168 193//180 194//180 +f 172//168 194//180 195//180 +f 179//175 196//177 197//177 +f 179//175 197//177 187//177 +f 190//177 198//177 179//175 +f 179//175 198//177 199//177 +f 179//175 199//177 200//177 +f 179//175 200//177 196//177 +f 192//179 178//174 201//179 +f 201//179 178//174 202//179 +f 177//173 176//172 203//177 +f 176//172 204//177 205//177 +f 176//172 205//177 203//177 +f 175//171 206//177 176//172 +f 176//172 206//177 207//177 +f 176//172 207//177 204//177 +f 202//179 178//174 208//177 +f 208//177 178//174 177//173 +f 208//177 177//173 209//177 +f 171//167 210//177 172//168 +f 172//168 210//177 211//180 +f 172//168 211//180 193//180 +f 171//167 212//177 213//177 +f 171//167 213//177 210//177 +f 170//166 214//177 171//167 +f 171//167 214//177 215//177 +f 171//167 215//177 212//177 +f 170//166 216//177 217//177 +f 170//166 217//177 214//177 +f 169//165 218//177 170//166 +f 170//166 218//177 219//177 +f 170//166 219//177 216//177 +f 167//163 220//177 221//177 +f 167//163 221//177 222//177 +f 166//162 223//177 167//163 +f 167//163 223//177 224//177 +f 167//163 224//177 220//177 +f 169//165 225//177 226//177 +f 169//165 226//177 218//177 +f 203//177 227//177 177//173 +f 177//173 227//177 228//177 +f 177//173 228//177 229//177 +f 177//173 229//177 209//177 +f 175//171 230//177 231//177 +f 175//171 231//177 206//177 +f 232//177 233//177 174//170 +f 174//170 233//177 234//177 +f 174//170 234//177 175//171 +f 175//171 234//177 235//177 +f 175//171 235//177 230//177 +f 173//169 236//177 174//170 +f 174//170 236//177 237//177 +f 174//170 237//177 232//177 +f 173//169 238//177 239//177 +f 173//169 239//177 236//177 +f 173//169 240//177 241//177 +f 173//169 241//177 238//177 +f 195//180 242//180 172//168 +f 172//168 242//180 243//177 +f 172//168 243//177 173//169 +f 173//169 243//177 244//177 +f 173//169 244//177 240//177 +f 168//164 245//177 169//165 +f 169//165 245//177 246//177 +f 169//165 246//177 225//177 +f 168//164 247//177 248//177 +f 168//164 248//177 245//177 +f 222//177 249//177 167//163 +f 167//163 249//177 250//177 +f 167//163 250//177 168//164 +f 168//164 250//177 251//177 +f 168//164 251//177 247//177 +f 166//162 252//181 253//181 +f 166//162 253//181 223//177 +f 166//162 254//181 255//181 +f 166//162 255//181 252//181 +f 256//180 257//180 164//160 +f 164//160 257//180 258//177 +f 164//160 258//177 165//161 +f 164//160 259//180 260//180 +f 164//160 260//180 256//180 +f 181//177 261//177 182//178 +f 182//178 261//177 262//177 +f 182//178 262//177 164//160 +f 164//160 262//177 263//180 +f 164//160 263//180 259//180 +f 165//161 264//177 166//162 +f 166//162 264//177 265//177 +f 166//162 265//177 254//181 +f 258//177 266//177 165//161 +f 165//161 266//177 267//177 +f 165//161 267//177 268//177 +f 165//161 268//177 264//177 +f 269//182 270//183 271//184 +f 271//184 270//183 272//185 +f 270//183 269//182 273//186 +f 274//187 275//188 276//189 +f 275//188 274//187 277//190 +f 275//188 277//190 278//191 +f 279//192 280//193 281//194 +f 280//193 282//195 281//194 +f 282//195 280//193 283//196 +f 284//197 285//198 286//199 +f 286//199 287//200 284//197 +f 285//198 284//197 288//201 +f 289//202 290//203 291//204 +f 291//204 290//203 292//205 +f 290//203 289//202 293//206 +f 294//207 295//208 296//209 +f 296//209 297//210 294//207 +f 294//207 298//211 295//208 +f 299//212 300//213 301//214 +f 299//212 302//215 300//213 +f 303//216 304//217 305//218 +f 304//217 303//216 306//219 +f 304//217 306//219 307//220 +f 305//218 308//221 303//216 +f 309//222 310//223 311//224 +f 311//224 312//225 309//222 +f 309//222 313//226 314//227 +f 310//223 309//222 314//227 +f 315//228 314//227 316//229 +f 313//226 316//229 314//227 +f 317//230 315//228 316//229 +f 317//230 316//229 318//231 +f 318//231 316//229 319//232 +f 318//231 319//232 320//233 +f 320//233 321//234 318//231 +f 322//235 323//236 321//234 +f 324//237 322//235 321//234 +f 325//238 323//236 322//235 +f 320//233 324//237 321//234 +f 325//238 322//235 326//239 +f 325//238 326//239 327//240 +f 328//241 329//242 326//239 +f 326//239 329//242 327//240 +f 330//243 331//244 329//242 +f 331//244 332//245 329//242 +f 328//241 330//243 329//242 +f 333//246 332//245 331//244 +f 334//247 333//246 331//244 +f 335//248 334//247 331//244 +f 334//247 335//248 336//249 +f 336//249 337//250 334//247 +f 338//251 339//252 340//253 +f 339//252 341//254 340//253 +f 340//253 342//255 338//251 +f 343//256 344//257 338//251 +f 338//251 344//257 345//258 +f 346//259 347//260 348//261 +f 342//255 349//262 338//251 +f 340//253 341//254 346//259 +f 340//253 346//259 348//261 +f 338//251 349//262 343//256 +f 350//263 347//260 351//264 +f 351//264 347//260 346//259 +f 351//264 346//259 352//265 +f 352//265 346//259 341//254 +f 352//265 341//254 353//266 +f 353//266 341//254 354//267 +f 354//267 341//254 339//252 +f 354//267 339//252 355//268 +f 355//268 339//252 338//251 +f 355//268 338//251 356//269 +f 356//269 338//251 345//258 +f 356//269 345//258 357//270 +f 357//270 345//258 344//257 +f 357//270 344//257 358//271 +f 358//271 344//257 359//272 +f 359//272 344//257 343//256 +f 359//272 343//256 360//273 +f 360//273 343//256 349//262 +f 360//273 349//262 361//274 +f 361//274 349//262 362//275 +f 362//275 349//262 342//255 +f 362//275 342//255 363//276 +f 363//276 342//255 340//253 +f 363//276 340//253 364//277 +f 364//277 340//253 348//261 +f 364//277 348//261 365//278 +f 365//278 348//261 347//260 +f 365//278 347//260 350//263 +f 272//185 366//279 367//280 +f 272//185 367//280 271//184 +f 270//183 368//281 366//279 +f 270//183 366//279 272//185 +f 269//182 369//282 273//186 +f 273//186 369//282 368//281 +f 273//186 368//281 270//183 +f 271//184 367//280 269//182 +f 269//182 367//280 370//283 +f 269//182 370//283 369//282 +f 371//284 278//191 372//285 +f 372//285 278//191 277//190 +f 372//285 277//190 373//286 +f 373//286 277//190 374//287 +f 374//287 277//190 274//187 +f 374//287 274//187 375//288 +f 375//288 274//187 276//189 +f 375//288 276//189 376//289 +f 376//289 276//189 275//188 +f 376//289 275//188 377//290 +f 377//290 275//188 378//291 +f 378//291 275//188 371//284 +f 371//284 275//188 278//191 +f 281//194 379//292 279//192 +f 279//192 379//292 380//293 +f 282//195 381//294 281//194 +f 281//194 381//294 379//292 +f 283//196 382//295 282//195 +f 282//195 382//295 381//294 +f 380//293 383//296 279//192 +f 279//192 383//296 280//193 +f 280//193 383//296 384//297 +f 280//193 384//297 283//196 +f 283//196 384//297 382//295 +f 287//200 385//298 284//197 +f 284//197 385//298 386//299 +f 284//197 386//299 288//201 +f 288//201 386//299 285//198 +f 285//198 386//299 387//300 +f 285//198 387//300 388//301 +f 285//198 388//301 389//302 +f 285//198 389//302 286//199 +f 286//199 389//302 390//303 +f 286//199 390//303 287//200 +f 287//200 390//303 391//304 +f 287//200 391//304 385//298 +f 292//205 392//305 393//306 +f 292//205 393//306 291//204 +f 291//204 393//306 394//307 +f 291//204 394//307 395//308 +f 291//204 395//308 289//202 +f 289//202 395//308 396//309 +f 289//202 396//309 293//206 +f 293//206 396//309 397//310 +f 293//206 397//310 290//203 +f 290//203 397//310 398//311 +f 290//203 398//311 399//312 +f 290//203 399//312 392//305 +f 290//203 392//305 292//205 +f 298//211 400//313 401//314 +f 298//211 401//314 295//208 +f 295//208 401//314 402//315 +f 295//208 402//315 403//316 +f 295//208 403//316 296//209 +f 296//209 403//316 404//317 +f 296//209 404//317 297//210 +f 297//210 404//317 405//318 +f 297//210 405//318 406//319 +f 297//210 406//319 294//207 +f 294//207 406//319 407//320 +f 294//207 407//320 298//211 +f 298//211 407//320 400//313 +f 360//273 408//321 409//322 +f 360//273 409//322 359//272 +f 361//274 410//323 360//273 +f 360//273 410//323 408//321 +f 364//277 411//324 363//276 +f 363//276 411//324 412//325 +f 363//276 412//325 413//326 +f 413//326 412//325 414//327 +f 413//326 414//327 362//275 +f 362//275 414//327 410//323 +f 362//275 410//323 361//274 +f 365//278 415//328 364//277 +f 364//277 415//328 411//324 +f 416//329 417//330 350//263 +f 350//263 417//330 365//278 +f 365//278 417//330 415//328 +f 352//265 418//331 419//332 +f 352//265 419//332 351//264 +f 351//264 419//332 416//329 +f 416//329 419//332 417//330 +f 353//266 420//333 352//265 +f 352//265 420//333 418//331 +f 356//269 421//334 355//268 +f 355//268 421//334 422//335 +f 422//335 421//334 423//336 +f 422//335 423//336 354//267 +f 354//267 423//336 424//337 +f 354//267 424//337 420//333 +f 354//267 420//333 353//266 +f 357//270 425//338 356//269 +f 356//269 425//338 421//334 +f 359//272 409//322 358//271 +f 358//271 409//322 425//338 +f 358//271 425//338 357//270 +f 302//215 426//339 427//340 +f 302//215 427//340 300//213 +f 300//213 427//340 428//341 +f 300//213 428//341 301//214 +f 301//214 428//341 429//342 +f 429//342 430//343 301//214 +f 301//214 430//343 299//212 +f 299//212 430//343 426//339 +f 299//212 426//339 302//215 +f 308//221 431//344 303//216 +f 303//216 431//344 432//345 +f 303//216 432//345 306//219 +f 306//219 432//345 307//220 +f 307//220 432//345 433//346 +f 307//220 433//346 304//217 +f 304//217 433//346 434//347 +f 304//217 434//347 305//218 +f 305//218 434//347 435//348 +f 305//218 435//348 308//221 +f 308//221 435//348 431//344 +f 431//344 435//348 409//322 +f 436//349 370//283 367//280 +f 418//331 420//333 369//282 +f 420//333 368//281 369//282 +f 368//281 437//350 438//351 +f 368//281 438//351 366//279 +f 436//349 367//280 438//351 +f 438//351 367//280 366//279 +f 425//338 383//296 421//334 +f 384//297 383//296 425//338 +f 439//352 382//295 384//297 +f 381//294 382//295 439//352 +f 440//353 379//292 381//294 +f 380//293 441//354 421//334 +f 380//293 421//334 383//296 +f 441//354 380//293 440//353 +f 440//353 380//293 379//292 +f 442//355 407//320 406//319 +f 442//355 406//319 405//318 +f 442//355 405//318 436//349 +f 403//316 401//314 417//330 +f 370//283 404//317 403//316 +f 370//283 403//316 417//330 +f 436//349 405//318 404//317 +f 436//349 404//317 370//283 +f 417//330 401//314 400//313 +f 400//313 443//356 415//328 +f 443//356 400//313 407//320 +f 417//330 400//313 415//328 +f 407//320 442//355 443//356 +f 377//290 421//334 376//289 +f 421//334 377//290 368//281 +f 444//357 373//286 375//288 +f 441//354 376//289 421//334 +f 377//290 371//284 368//281 +f 373//286 444//357 437//350 +f 373//286 437//350 372//285 +f 444//357 375//288 441//354 +f 441//354 375//288 376//289 +f 368//281 371//284 437//350 +f 437//350 371//284 372//285 +f 381//294 439//352 440//353 +f 445//358 385//298 391//304 +f 445//358 391//304 446//359 +f 439//352 409//322 387//300 +f 387//300 409//322 389//302 +f 439//352 385//298 445//358 +f 446//359 391//304 390//303 +f 390//303 389//302 409//322 +f 439//352 387//300 386//299 +f 446//359 390//303 409//322 +f 439//352 386//299 385//298 +f 447//360 446//359 409//322 +f 448//361 447//360 434//347 +f 434//347 447//360 409//322 +f 449//362 448//361 432//345 +f 432//345 448//361 433//346 +f 449//362 392//305 399//312 +f 449//362 399//312 450//363 +f 397//310 450//363 399//312 +f 450//363 397//310 451//364 +f 432//345 393//306 392//305 +f 432//345 392//305 449//362 +f 451//364 397//310 396//309 +f 429//342 396//309 395//308 +f 451//364 396//309 429//342 +f 429//342 395//308 432//345 +f 432//345 395//308 393//306 +f 428//341 452//365 429//342 +f 429//342 452//365 451//364 +f 427//340 443//356 428//341 +f 428//341 443//356 452//365 +f 443//356 426//339 415//328 +f 443//356 427//340 426//339 +f 409//322 384//297 425//338 +f 420//333 424//337 368//281 +f 368//281 424//337 421//334 +f 418//331 369//282 370//283 +f 418//331 370//283 419//332 +f 417//330 453//366 370//283 +f 370//283 453//366 419//332 +f 415//328 426//339 430//343 +f 415//328 430//343 411//324 +f 412//325 411//324 429//342 +f 411//324 430//343 429//342 +f 412//325 429//342 410//323 +f 410//323 431//344 408//321 +f 410//323 432//345 431//344 +f 408//321 431//344 409//322 +f 409//322 435//348 434//347 +f 434//347 433//346 448//361 +f 432//345 410//323 429//342 +f 439//352 384//297 409//322 +f 454//367 455//368 446//359 +f 456//369 457//370 452//365 +f 456//369 443//356 458//371 +f 458//371 443//356 459//372 +f 456//369 452//365 443//356 +f 460//373 451//364 457//370 +f 457//370 451//364 452//365 +f 461//374 449//362 462//375 +f 462//375 449//362 463//376 +f 463//376 449//362 464//377 +f 463//376 464//377 460//373 +f 460//373 464//377 450//363 +f 460//373 450//363 451//364 +f 449//362 461//374 448//361 +f 448//361 461//374 465//378 +f 465//378 447//360 448//361 +f 454//367 446//359 447//360 +f 466//379 439//352 467//380 +f 467//380 439//352 468//381 +f 467//380 468//381 455//368 +f 455//368 468//381 446//359 +f 469//382 440//353 439//352 +f 469//382 439//352 466//379 +f 470//383 440//353 469//382 +f 441//354 440//353 470//383 +f 471//384 437//350 472//385 +f 472//385 437//350 473//386 +f 472//385 473//386 474//387 +f 474//387 473//386 444//357 +f 474//387 444//357 441//354 +f 475//388 438//351 471//384 +f 471//384 438//351 437//350 +f 476//389 436//349 438//351 +f 476//389 438//351 475//388 +f 477//390 436//349 478//391 +f 478//391 436//349 476//389 +f 443//356 442//355 459//372 +f 459//372 442//355 477//390 +f 477//390 442//355 436//349 +f 479//392 480//393 481//394 +f 482//395 483//396 480//393 +f 484//397 483//396 482//395 +f 482//395 485//398 484//397 +f 485//398 486//399 484//397 +f 487//400 485//398 488//401 +f 488//401 489//402 487//400 +f 489//402 490//403 491//404 +f 490//403 481//394 491//404 +f 490//403 479//392 481//394 +f 488//401 485//398 482//395 +f 488//401 482//395 479//392 +f 479//392 482//395 480//393 +f 489//402 488//401 490//403 +f 490//403 488//401 479//392 +f 492//405 493//406 494//407 +f 495//408 496//409 494//407 +f 495//408 497//410 496//409 +f 498//411 499//412 497//410 +f 498//411 500//413 499//412 +f 501//414 502//415 500//413 +f 501//414 503//416 502//415 +f 493//406 492//405 503//416 +f 501//414 500//413 498//411 +f 494//407 493//406 495//408 +f 493//406 503//416 501//414 +f 504//417 501//414 498//411 +f 493//406 501//414 504//417 +f 493//406 504//417 495//408 +f 495//408 504//417 498//411 +f 495//408 498//411 497//410 +f 505//418 506//419 507//420 +f 506//419 508//421 507//420 +f 509//422 510//423 511//424 +f 509//422 511//424 512//425 +f 513//426 514//427 515//428 +f 515//428 510//423 513//426 +f 513//426 510//423 509//422 +f 512//425 511//424 508//421 +f 514//427 513//426 505//418 +f 505//418 513//426 509//422 +f 505//418 509//422 506//419 +f 506//419 509//422 512//425 +f 506//419 512//425 508//421 +f 516//429 517//430 518//431 +f 516//429 519//432 517//430 +f 520//433 521//434 516//429 +f 516//429 521//434 519//432 +f 522//435 520//433 516//429 +f 523//436 524//437 522//435 +f 525//438 526//439 527//440 +f 526//439 528//441 529//442 +f 526//439 529//442 527//440 +f 530//443 531//444 518//431 +f 524//437 526//439 525//438 +f 528//441 526//439 530//443 +f 523//436 522//435 516//429 +f 523//436 516//429 531//444 +f 531//444 516//429 518//431 +f 524//437 523//436 526//439 +f 526//439 523//436 531//444 +f 526//439 531//444 530//443 +f 532//445 533//446 534//447 +f 532//445 535//448 533//446 +f 536//449 535//448 532//445 +f 537//450 538//451 536//449 +f 539//452 540//453 541//454 +f 542//455 543//456 534//447 +f 538//451 539//452 541//454 +f 540//453 539//452 542//455 +f 537//450 536//449 532//445 +f 537//450 532//445 543//456 +f 543//456 532//445 534//447 +f 538//451 537//450 539//452 +f 539//452 537//450 543//456 +f 539//452 543//456 542//455 +f 544//457 545//458 546//459 +f 544//457 547//460 545//458 +f 548//461 547//460 544//457 +f 549//462 550//463 548//461 +f 551//464 552//465 553//466 +f 554//467 555//468 546//459 +f 550//463 551//464 553//466 +f 552//465 551//464 554//467 +f 549//462 548//461 544//457 +f 549//462 544//457 555//468 +f 555//468 544//457 546//459 +f 550//463 549//462 551//464 +f 551//464 549//462 555//468 +f 551//464 555//468 554//467 +f 556//469 459//372 557//470 +f 557//470 459//372 558//471 +f 459//372 556//469 458//371 +f 559//472 458//371 556//469 +f 458//371 559//472 456//369 +f 560//473 456//369 559//472 +f 456//369 560//473 457//370 +f 457//370 560//473 561//474 +f 562//475 460//373 561//474 +f 561//474 460//373 457//370 +f 563//476 460//373 562//475 +f 460//373 563//476 462//375 +f 564//477 462//375 563//476 +f 462//375 564//477 461//374 +f 564//477 565//478 461//374 +f 461//374 565//478 465//378 +f 566//479 465//378 565//478 +f 465//378 566//479 447//360 +f 567//480 447//360 566//479 +f 447//360 567//480 454//367 +f 568//481 454//367 567//480 +f 454//367 568//481 455//368 +f 569//482 466//379 568//481 +f 568//481 466//379 455//368 +f 570//483 466//379 569//482 +f 466//379 570//483 469//382 +f 571//484 469//382 570//483 +f 469//382 571//484 572//485 +f 469//382 572//485 470//383 +f 470//383 572//485 441//354 +f 441//354 572//485 573//486 +f 574//487 474//387 573//486 +f 573//486 474//387 441//354 +f 574//487 471//384 474//387 +f 471//384 574//487 575//488 +f 576//489 471//384 575//488 +f 471//384 576//489 475//388 +f 475//388 576//489 577//490 +f 578//491 475//388 577//490 +f 475//388 578//491 476//389 +f 579//492 476//389 578//491 +f 476//389 579//492 478//391 +f 478//391 579//492 580//493 +f 478//391 580//493 477//390 +f 477//390 580//493 459//372 +f 459//372 580//493 558//471 +f 581//494 582//495 583//496 +f 581//494 583//496 584//497 +f 582//495 581//494 585//498 +f 586//499 587//500 588//501 +f 586//499 588//501 589//502 +f 586//499 589//502 590//503 +f 586//499 591//504 587//500 +f 592//505 593//506 594//507 +f 594//507 595//508 592//505 +f 592//505 596//509 593//506 +f 597//510 598//511 599//512 +f 599//512 598//511 600//513 +f 597//510 601//514 598//511 +f 598//511 601//514 602//515 +f 603//516 604//517 605//518 +f 605//518 604//517 606//519 +f 605//518 606//519 607//520 +f 486//399 485//398 608//521 +f 485//398 489//402 608//521 +f 608//521 489//402 609//522 +f 610//523 611//524 612//525 +f 610//523 612//525 613//526 +f 610//523 614//527 611//524 +f 614//527 615//528 611//524 +f 616//529 617//530 618//531 +f 618//531 617//530 619//532 +f 618//531 619//532 620//533 +f 621//534 622//535 623//536 +f 622//535 624//537 623//536 +f 623//536 624//537 625//538 +f 623//536 626//539 621//534 +f 627//540 517//430 628//541 +f 517//430 521//434 628//541 +f 628//541 521//434 520//433 +f 525//438 527//440 629//542 +f 527//440 528//441 629//542 +f 629//542 528//441 630//543 +f 579//492 578//491 631//544 +f 562//475 632//545 563//476 +f 560//473 633//546 561//474 +f 632//545 634//547 564//477 +f 564//477 634//547 565//478 +f 635//548 567//480 566//479 +f 568//481 636//549 569//482 +f 571//484 637//550 572//485 +f 572//485 637//550 573//486 +f 557//470 558//471 638//551 +f 633//546 559//472 556//469 +f 559//472 633//546 560//473 +f 561//474 632//545 562//475 +f 563//476 632//545 564//477 +f 634//547 635//548 565//478 +f 565//478 635//548 566//479 +f 567//480 636//549 568//481 +f 639//552 574//487 573//486 +f 575//488 574//487 639//552 +f 631//544 640//553 579//492 +f 579//492 640//553 580//493 +f 640//553 557//470 580//493 +f 580//493 557//470 638//551 +f 641//554 581//494 642//555 +f 581//494 641//554 585//498 +f 585//498 641//554 643//556 +f 585//498 643//556 582//495 +f 582//495 643//556 644//557 +f 582//495 644//557 583//496 +f 583//496 644//557 645//558 +f 583//496 645//558 646//559 +f 583//496 646//559 584//497 +f 584//497 646//559 647//560 +f 584//497 647//560 642//555 +f 584//497 642//555 581//494 +f 648//561 649//562 650//563 +f 586//499 651//564 652//565 +f 586//499 652//565 591//504 +f 591//504 652//565 653//566 +f 591//504 653//566 587//500 +f 587//500 653//566 654//567 +f 587//500 654//567 588//501 +f 588//501 654//567 655//568 +f 588//501 655//568 589//502 +f 589//502 655//568 656//569 +f 589//502 656//569 590//503 +f 590//503 656//569 651//564 +f 590//503 651//564 586//499 +f 592//505 657//570 658//571 +f 592//505 658//571 596//509 +f 596//509 658//571 659//572 +f 596//509 659//572 593//506 +f 593//506 659//572 660//573 +f 593//506 660//573 594//507 +f 594//507 660//573 661//574 +f 594//507 661//574 595//508 +f 595//508 661//574 662//575 +f 595//508 662//575 657//570 +f 595//508 657//570 592//505 +f 663//576 600//513 598//511 +f 663//576 598//511 664//577 +f 664//577 598//511 602//515 +f 664//577 602//515 665//578 +f 665//578 602//515 601//514 +f 665//578 601//514 666//579 +f 666//579 601//514 667//580 +f 667//580 601//514 597//510 +f 667//580 597//510 599//512 +f 667//580 599//512 668//581 +f 668//581 599//512 669//582 +f 669//582 599//512 600//513 +f 600//513 663//576 669//582 +f 605//518 670//583 671//584 +f 605//518 671//584 672//585 +f 605//518 672//585 603//516 +f 603//516 672//585 673//586 +f 603//516 673//586 604//517 +f 604//517 673//586 674//587 +f 604//517 674//587 606//519 +f 606//519 674//587 675//588 +f 606//519 675//588 607//520 +f 607//520 675//588 670//583 +f 607//520 670//583 605//518 +f 673//586 676//589 674//587 +f 673//586 677//590 676//589 +f 677//590 673//586 672//585 +f 489//402 491//404 678//591 +f 678//591 491//404 679//592 +f 491//404 481//394 679//592 +f 489//402 678//591 680//593 +f 489//402 680//593 609//522 +f 681//594 483//396 484//397 +f 609//522 680//593 486//399 +f 486//399 680//593 484//397 +f 484//397 680//593 681//594 +f 679//592 481//394 682//595 +f 682//595 481//394 480//393 +f 480//393 483//396 682//595 +f 682//595 483//396 681//594 +f 683//596 665//578 666//579 +f 666//579 684//597 683//596 +f 684//597 666//579 667//580 +f 668//581 684//597 667//580 +f 685//598 494//407 496//409 +f 686//599 500//413 502//415 +f 687//600 492//405 685//598 +f 685//598 492//405 494//407 +f 685//598 496//409 688//601 +f 688//601 496//409 497//410 +f 688//601 497//410 499//412 +f 688//601 499//412 686//599 +f 686//599 499//412 500//413 +f 687//600 689//602 502//415 +f 502//415 689//602 686//599 +f 687//600 503//416 492//405 +f 502//415 503//416 687//600 +f 661//574 690//603 691//604 +f 660//573 690//603 661//574 +f 659//572 692//605 660//573 +f 660//573 692//605 690//603 +f 693//606 655//568 654//567 +f 694//607 654//567 653//566 +f 654//567 694//607 693//606 +f 695//608 612//525 611//524 +f 695//608 611//524 696//609 +f 696//609 611//524 615//528 +f 696//609 615//528 697//610 +f 697//610 615//528 614//527 +f 697//610 614//527 698//611 +f 698//611 614//527 699//612 +f 699//612 614//527 610//523 +f 699//612 610//523 700//613 +f 700//613 610//523 613//526 +f 700//613 613//526 701//614 +f 701//614 613//526 612//525 +f 612//525 695//608 701//614 +f 616//529 702//615 703//616 +f 616//529 703//616 617//530 +f 617//530 703//616 704//617 +f 617//530 704//617 619//532 +f 619//532 704//617 705//618 +f 619//532 705//618 620//533 +f 620//533 705//618 706//619 +f 620//533 706//619 707//620 +f 620//533 707//620 618//531 +f 618//531 702//615 616//529 +f 702//615 618//531 707//620 +f 622//535 708//621 709//622 +f 622//535 709//622 624//537 +f 624//537 709//622 710//623 +f 624//537 710//623 625//538 +f 625//538 710//623 711//624 +f 625//538 711//624 712//625 +f 625//538 712//625 623//536 +f 623//536 712//625 626//539 +f 626//539 712//625 713//626 +f 626//539 713//626 621//534 +f 621//534 713//626 708//621 +f 621//534 708//621 622//535 +f 714//627 505//418 715//628 +f 715//628 505//418 507//420 +f 716//629 515//428 514//427 +f 716//629 514//427 714//627 +f 714//627 514//427 505//418 +f 649//562 511//424 650//563 +f 650//563 511//424 510//423 +f 515//428 716//629 650//563 +f 515//428 650//563 510//423 +f 715//628 507//420 508//421 +f 715//628 508//421 649//562 +f 508//421 511//424 649//562 +f 645//558 717//630 646//559 +f 646//559 717//630 718//631 +f 644//557 717//630 645//558 +f 643//556 719//632 644//557 +f 644//557 719//632 717//630 +f 720//633 518//431 721//634 +f 722//635 524//437 525//438 +f 517//430 627//540 721//634 +f 721//634 627//540 723//636 +f 723//636 627//540 520//433 +f 722//635 525//438 724//637 +f 724//637 525//438 630//543 +f 724//637 630//543 528//441 +f 724//637 528//441 720//633 +f 720//633 528//441 530//443 +f 720//633 530//443 518//431 +f 520//433 522//435 723//636 +f 518//431 517//430 721//634 +f 522//435 524//437 723//636 +f 723//636 524//437 722//635 +f 712//625 725//638 726//639 +f 725//638 712//625 711//624 +f 725//638 711//624 710//623 +f 710//623 727//640 725//638 +f 534//447 533//446 728//641 +f 536//449 538//451 729//642 +f 729//642 538//451 730//643 +f 542//455 534//447 731//644 +f 731//644 534//447 728//641 +f 728//641 533//446 535//448 +f 728//641 535//448 729//642 +f 730//643 538//451 541//454 +f 541//454 540//453 732//645 +f 732//645 540//453 731//644 +f 731//644 540//453 542//455 +f 729//642 535//448 536//449 +f 541//454 732//645 730//643 +f 705//618 733//646 734//647 +f 704//617 733//646 705//618 +f 703//616 735//648 704//617 +f 704//617 735//648 733//646 +f 736//649 697//610 698//611 +f 737//650 698//611 699//612 +f 698//611 737//650 736//649 +f 546//459 545//458 738//651 +f 548//461 550//463 739//652 +f 739//652 550//463 740//653 +f 554//467 546//459 741//654 +f 741//654 546//459 738//651 +f 738//651 545//458 547//460 +f 738//651 547//460 739//652 +f 740//653 550//463 553//466 +f 553//466 552//465 740//653 +f 740//653 552//465 741//654 +f 741//654 552//465 554//467 +f 739//652 547//460 548//461 +f 577//490 576//489 742//655 +f 636//549 567//480 743//656 +f 561//474 744//657 632//545 +f 632//545 744//657 634//547 +f 570//483 745//658 571//484 +f 571//484 745//658 746//659 +f 571//484 746//659 637//550 +f 637//550 747//660 573//486 +f 577//490 742//655 578//491 +f 578//491 742//655 748//661 +f 578//491 748//661 631//544 +f 631//544 748//661 640//553 +f 640//553 748//661 557//470 +f 557//470 749//662 750//663 +f 557//470 750//663 556//469 +f 556//469 750//663 633//546 +f 750//663 751//664 633//546 +f 751//664 561//474 633//546 +f 752//665 561//474 751//664 +f 752//665 744//657 561//474 +f 753//666 634//547 744//657 +f 754//667 634//547 753//666 +f 634//547 754//667 635//548 +f 754//667 743//656 635//548 +f 635//548 743//656 567//480 +f 743//656 755//668 636//549 +f 756//669 636//549 755//668 +f 636//549 756//669 745//658 +f 636//549 745//658 569//482 +f 569//482 745//658 570//483 +f 746//659 747//660 637//550 +f 573//486 747//660 639//552 +f 747//660 757//670 575//488 +f 747//660 575//488 639//552 +f 757//670 758//671 575//488 +f 575//488 758//671 742//655 +f 575//488 742//655 576//489 +f 759//672 748//661 742//655 +f 749//662 557//470 748//661 +f 723//636 722//635 760//673 +f 723//636 760//673 761//674 +f 723//636 761//674 762//675 +f 763//676 719//632 643//556 +f 764//677 763//676 643//556 +f 642//555 647//560 765//678 +f 765//678 647//560 646//559 +f 764//677 643//556 641//554 +f 718//631 766//679 646//559 +f 646//559 766//679 765//678 +f 767//680 768//681 715//628 +f 714//627 715//628 768//681 +f 715//628 769//682 767//680 +f 770//683 771//684 649//562 +f 649//562 771//684 715//628 +f 715//628 771//684 769//682 +f 649//562 648//561 772//685 +f 649//562 772//685 770//683 +f 653//566 773//686 694//607 +f 774//687 773//686 653//566 +f 774//687 653//566 652//565 +f 775//688 651//564 656//569 +f 656//569 655//568 775//688 +f 693//606 776//689 655//568 +f 655//568 776//689 775//688 +f 659//572 777//690 778//691 +f 659//572 778//691 692//605 +f 662//575 779//692 657//570 +f 659//572 658//571 777//690 +f 777//690 658//571 657//570 +f 662//575 661//574 779//692 +f 661//574 691//604 780//693 +f 661//574 780//693 779//692 +f 781//694 782//695 685//598 +f 685//598 782//695 687//600 +f 783//696 784//697 688//601 +f 688//601 784//697 685//598 +f 685//598 784//697 781//694 +f 688//601 686//599 785//698 +f 688//601 785//698 783//696 +f 786//699 684//597 668//581 +f 787//700 788//701 668//581 +f 788//701 786//699 668//581 +f 664//577 789//702 663//576 +f 668//581 669//582 787//700 +f 665//578 789//702 664//577 +f 665//578 790//703 789//702 +f 683//596 790//703 665//578 +f 791//704 792//705 679//592 +f 679//592 792//705 678//591 +f 791//704 679//592 793//706 +f 793//706 679//592 794//707 +f 794//707 679//592 682//595 +f 682//595 681//594 795//708 +f 682//595 795//708 796//709 +f 682//595 796//709 794//707 +f 797//710 677//590 672//585 +f 798//711 797//710 672//585 +f 675//588 799//712 670//583 +f 799//712 675//588 674//587 +f 798//711 672//585 671//584 +f 798//711 671//584 670//583 +f 674//587 800//713 799//712 +f 674//587 676//589 800//713 +f 741//654 738//651 801//714 +f 802//715 801//714 738//651 +f 803//716 802//715 738//651 +f 739//652 804//717 803//716 +f 739//652 803//716 738//651 +f 739//652 740//653 805//718 +f 739//652 805//718 804//717 +f 806//719 737//650 699//612 +f 807//720 806//719 699//612 +f 700//613 807//720 699//612 +f 695//608 696//609 808//721 +f 808//721 696//609 697//610 +f 807//720 700//613 701//614 +f 697//610 809//722 808//721 +f 697//610 736//649 809//722 +f 810//723 735//648 703//616 +f 811//724 810//723 703//616 +f 707//620 706//619 812//725 +f 706//619 705//618 812//725 +f 703//616 702//615 811//724 +f 705//618 813//726 812//725 +f 705//618 734//647 813//726 +f 728//641 814//727 815//728 +f 728//641 815//728 731//644 +f 816//729 814//727 728//641 +f 729//642 817//730 728//641 +f 728//641 817//730 816//729 +f 729//642 730//643 818//731 +f 729//642 819//732 817//730 +f 729//642 818//731 819//732 +f 710//623 820//733 727//640 +f 820//733 710//623 821//734 +f 710//623 709//622 821//734 +f 713//626 822//735 708//621 +f 712//625 822//735 713//626 +f 726//639 823//736 712//625 +f 712//625 823//736 822//735 +f 805//718 740//653 824//737 +f 744//657 825//738 753//666 +f 826//739 743//656 754//667 +f 827//740 828//741 756//669 +f 829//742 747//660 830//743 +f 757//670 831//744 758//671 +f 742//655 832//745 759//672 +f 833//746 722//635 748//661 +f 834//747 752//665 751//664 +f 753//666 835//748 754//667 +f 827//740 756//669 755//668 +f 827//740 755//668 836//749 +f 746//659 830//743 747//660 +f 832//745 742//655 758//671 +f 837//750 750//663 749//662 +f 826//739 755//668 743//656 +f 828//741 838//751 756//669 +f 756//669 838//751 745//658 +f 838//751 746//659 745//658 +f 829//742 757//670 747//660 +f 759//672 833//746 748//661 +f 722//635 749//662 748//661 +f 721//634 839//752 840//753 +f 720//633 721//634 840//753 +f 723//636 762//675 841//754 +f 723//636 841//754 721//634 +f 721//634 841//754 839//752 +f 642//555 764//677 641//554 +f 642//555 765//678 764//677 +f 651//564 775//688 774//687 +f 652//565 651//564 774//687 +f 663//576 787//700 669//582 +f 794//707 842//755 843//756 +f 794//707 843//756 844//757 +f 844//757 843//756 845//758 +f 844//757 845//758 791//704 +f 695//608 808//721 701//614 +f 707//620 811//724 702//615 +f 707//620 812//725 811//724 +f 708//621 821//734 709//622 +f 749//662 724//637 837//750 +f 725//638 750//663 837//750 +f 750//663 730//643 751//664 +f 751//664 730//643 732//645 +f 751//664 732//645 834//747 +f 846//759 744//657 752//665 +f 736//649 753//666 825//738 +f 736//649 835//748 753//666 +f 740//653 754//667 835//748 +f 826//739 754//667 741//654 +f 741//654 754//667 740//653 +f 836//749 755//668 680//593 +f 684//597 838//751 828//741 +f 838//751 686//599 746//659 +f 746//659 686//599 689//602 +f 746//659 689//602 687//600 +f 746//659 687//600 830//743 +f 693//606 758//671 831//744 +f 693//606 832//745 758//671 +f 650//563 759//672 832//745 +f 650//563 716//629 759//672 +f 833//746 759//672 716//629 +f 749//662 722//635 724//637 +f 648//561 650//563 832//745 +f 832//745 693//606 694//607 +f 690//603 692//605 829//742 +f 830//743 690//603 829//742 +f 691//604 690//603 830//743 +f 828//741 683//596 684//597 +f 683//596 678//591 792//705 +f 828//741 678//591 683//596 +f 828//741 680//593 678//591 +f 828//741 836//749 680//593 +f 755//668 681//594 680//593 +f 826//739 677//590 755//668 +f 826//739 676//589 677//590 +f 835//748 736//649 737//650 +f 733//646 735//648 752//665 +f 834//747 733//646 752//665 +f 734//647 733//646 834//747 +f 731//644 834//747 732//645 +f 750//663 725//638 727//640 +f 837//750 726//639 725//638 +f 726//639 720//633 840//753 +f 837//750 720//633 726//639 +f 837//750 724//637 720//633 +f 833//746 717//630 722//635 +f 717//630 719//632 722//635 +f 718//631 717//630 833//746 +f 714//627 833//746 716//629 +f 847//760 809//722 848//761 +f 847//760 849//762 850//763 +f 850//763 849//762 851//764 +f 851//764 852//765 810//723 +f 853//766 776//689 854//767 +f 853//766 855//768 856//769 +f 856//769 855//768 857//770 +f 857//770 855//768 858//771 +f 847//760 848//761 849//762 +f 851//764 849//762 852//765 +f 853//766 854//767 855//768 +f 848//761 809//722 825//738 +f 849//762 848//761 825//738 +f 849//762 846//759 852//765 +f 852//765 846//759 810//723 +f 810//723 846//759 735//648 +f 854//767 776//689 831//744 +f 855//768 854//767 831//744 +f 855//768 829//742 858//771 +f 858//771 829//742 778//691 +f 778//691 829//742 692//605 +f 815//728 813//726 731//644 +f 731//644 813//726 734//647 +f 809//722 736//649 825//738 +f 849//762 825//738 846//759 +f 801//714 800//713 676//589 +f 801//714 676//589 741//654 +f 782//695 780//693 691//604 +f 782//695 691//604 687//600 +f 776//689 693//606 831//744 +f 855//768 831//744 829//742 +f 767//680 766//679 768//681 +f 768//681 766//679 718//631 +f 768//681 718//631 714//627 +f 726//639 840//753 823//736 +f 820//733 819//732 727//640 +f 727//640 819//732 818//731 +f 727//640 818//731 730//643 +f 727//640 730//643 750//663 +f 734//647 834//747 731//644 +f 825//738 744//657 846//759 +f 846//759 752//665 735//648 +f 835//748 737//650 740//653 +f 740//653 737//650 806//719 +f 740//653 806//719 824//737 +f 824//737 806//719 805//718 +f 676//589 826//739 741//654 +f 755//668 677//590 681//594 +f 681//594 677//590 795//708 +f 795//708 677//590 797//710 +f 795//708 797//710 796//709 +f 683//596 792//705 790//703 +f 686//599 838//751 684//597 +f 686//599 684//597 786//699 +f 686//599 786//699 785//698 +f 785//698 786//699 788//701 +f 691//604 830//743 687//600 +f 831//744 757//670 829//742 +f 832//745 694//607 648//561 +f 648//561 694//607 773//686 +f 648//561 773//686 772//685 +f 718//631 833//746 714//627 +f 722//635 719//632 760//673 +f 760//673 719//632 763//676 +f 760//673 763//676 761//674 +f 762//675 859//772 860//773 +f 762//675 860//773 861//774 +f 861//774 860//773 862//775 +f 861//774 862//775 841//754 +f 841//754 862//775 839//752 +f 311//224 790//703 791//704 +f 791//704 790//703 792//705 +f 789//702 790//703 311//224 +f 789//702 311//224 310//223 +f 310//223 663//576 789//702 +f 314//227 787//700 310//223 +f 310//223 787//700 663//576 +f 788//701 787//700 314//227 +f 788//701 314//227 783//696 +f 788//701 783//696 785//698 +f 315//228 784//697 314//227 +f 314//227 784//697 783//696 +f 780//693 782//695 317//230 +f 317//230 782//695 781//694 +f 317//230 781//694 315//228 +f 315//228 781//694 784//697 +f 779//692 780//693 317//230 +f 779//692 317//230 318//231 +f 779//692 318//231 657//570 +f 657//570 318//231 321//234 +f 657//570 321//234 777//690 +f 777//690 321//234 858//771 +f 777//690 858//771 778//691 +f 775//688 325//238 327//240 +f 775//688 327//240 774//687 +f 329//242 773//686 774//687 +f 329//242 774//687 327//240 +f 332//245 770//683 329//242 +f 770//683 772//685 773//686 +f 329//242 770//683 773//686 +f 770//683 332//245 771//684 +f 333//246 769//682 332//245 +f 332//245 769//682 771//684 +f 765//678 333//246 334//247 +f 765//678 334//247 764//677 +f 767//680 769//682 333//246 +f 767//680 333//246 766//679 +f 766//679 333//246 765//678 +f 761//674 763//676 764//677 +f 334//247 761//674 764//677 +f 762//675 334//247 337//250 +f 762//675 337//250 859//772 +f 334//247 762//675 761//674 +f 859//772 337//250 862//775 +f 862//775 337//250 336//249 +f 839//752 336//249 823//736 +f 839//752 823//736 840//753 +f 336//249 839//752 862//775 +f 822//735 823//736 336//249 +f 822//735 336//249 335//248 +f 822//735 335//248 708//621 +f 331//244 820//733 821//734 +f 331//244 821//734 335//248 +f 335//248 821//734 708//621 +f 331//244 819//732 820//733 +f 817//730 331//244 816//729 +f 816//729 331//244 330//243 +f 817//730 819//732 331//244 +f 328//241 814//727 330//243 +f 330//243 814//727 816//729 +f 812//725 328//241 326//239 +f 815//728 814//727 813//726 +f 813//726 814//727 328//241 +f 813//726 328//241 812//725 +f 326//239 322//235 811//724 +f 811//724 322//235 851//764 +f 811//724 851//764 810//723 +f 326//239 811//724 812//725 +f 319//232 701//614 320//233 +f 808//721 809//722 847//760 +f 808//721 847//760 320//233 +f 808//721 320//233 701//614 +f 701//614 319//232 807//720 +f 806//719 807//720 805//718 +f 807//720 319//232 316//229 +f 807//720 316//229 805//718 +f 805//718 316//229 804//717 +f 313//226 803//716 316//229 +f 316//229 803//716 804//717 +f 803//716 313//226 802//715 +f 801//714 802//715 800//713 +f 800//713 802//715 313//226 +f 799//712 800//713 313//226 +f 799//712 313//226 309//222 +f 799//712 309//222 670//583 +f 312//225 796//709 798//711 +f 798//711 796//709 797//710 +f 312//225 798//711 309//222 +f 309//222 798//711 670//583 +f 312//225 794//707 796//709 +f 794//707 312//225 842//755 +f 842//755 312//225 311//224 +f 842//755 311//224 845//758 +f 311//224 791//704 845//758 +f 851//764 322//235 324//237 +f 324//237 847//760 851//764 +f 320//233 847//760 324//237 +f 323//236 857//770 321//234 +f 321//234 857//770 858//771 +f 857//770 323//236 853//766 +f 325//238 853//766 323//236 +f 853//766 325//238 775//688 +f 853//766 775//688 776//689 diff --git a/data/kuka_iiwa/model.urdf b/data/kuka_iiwa/model.urdf index a6e53d3ab..98e54cb37 100644 --- a/data/kuka_iiwa/model.urdf +++ b/data/kuka_iiwa/model.urdf @@ -70,7 +70,7 @@ - + @@ -99,7 +99,7 @@ - + @@ -128,7 +128,7 @@ - + @@ -157,7 +157,7 @@ - + @@ -186,7 +186,7 @@ - + @@ -215,7 +215,7 @@ - + @@ -244,7 +244,7 @@ - + @@ -273,7 +273,7 @@ - + diff --git a/data/mjcf/ant.xml b/data/mjcf/ant.xml index 18ad38b38..311d96feb 100644 --- a/data/mjcf/ant.xml +++ b/data/mjcf/ant.xml @@ -6,62 +6,53 @@ - + - - - - - - - - - - + - + - - - - - + + + + + - + - - + + - + - + - - + + - + - - - - - + + + + + diff --git a/data/mjcf/ground_plane.xml b/data/mjcf/ground_plane.xml new file mode 100644 index 000000000..0212c7f1b --- /dev/null +++ b/data/mjcf/ground_plane.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/data/mjcf/half_cheetah.xml b/data/mjcf/half_cheetah.xml new file mode 100644 index 000000000..418eef56d --- /dev/null +++ b/data/mjcf/half_cheetah.xml @@ -0,0 +1,88 @@ + + + + + + + + + + diff --git a/data/mjcf/hopper.xml b/data/mjcf/hopper.xml index 7f94e64dc..077160345 100644 --- a/data/mjcf/hopper.xml +++ b/data/mjcf/hopper.xml @@ -1,28 +1,31 @@ - - + + \ No newline at end of file + diff --git a/data/mjcf/humanoid_fixed.xml b/data/mjcf/humanoid_fixed.xml new file mode 100644 index 000000000..94e1dd2a0 --- /dev/null +++ b/data/mjcf/humanoid_fixed.xml @@ -0,0 +1,115 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/mjcf/humanoid_symmetric.xml b/data/mjcf/humanoid_symmetric.xml index de2fee3f5..d7ba9f494 100644 --- a/data/mjcf/humanoid_symmetric.xml +++ b/data/mjcf/humanoid_symmetric.xml @@ -2,7 +2,7 @@ - + - 0.105158 -4.55002 0.499995 -2.89297 -0.988287 -3.14159 + 0.105158 -4.55002 1.499995 -2.89297 -0.988287 -3.14159 1 @@ -154,7 +155,7 @@ 0.166667 - + 1 1 1 diff --git a/data/wheel.urdf b/data/wheel.urdf new file mode 100644 index 000000000..159e50f15 --- /dev/null +++ b/data/wheel.urdf @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/widowx/bsd_license.txt b/data/widowx/bsd_license.txt new file mode 100644 index 000000000..cf5bb8ce7 --- /dev/null +++ b/data/widowx/bsd_license.txt @@ -0,0 +1,22 @@ +Converted from https://github.com/RobotnikAutomation/widowx_arm/blob/master/widowx_arm_description/package.xml + +Copyright 2017 robotnik + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + + widowx_arm_description + 0.0.2 + The widowx_arm_description package + + Jose Rapado García + Román Navarro + Carlos Villar + + \ No newline at end of file diff --git a/data/widowx/meshes/base_link.stl b/data/widowx/meshes/base_link.stl new file mode 100644 index 000000000..f9a359037 Binary files /dev/null and b/data/widowx/meshes/base_link.stl differ diff --git a/data/widowx/meshes/biceps_link.stl b/data/widowx/meshes/biceps_link.stl new file mode 100644 index 000000000..9d9115212 Binary files /dev/null and b/data/widowx/meshes/biceps_link.stl differ diff --git a/data/widowx/meshes/forearm_link.stl b/data/widowx/meshes/forearm_link.stl new file mode 100644 index 000000000..1aaf44e48 Binary files /dev/null and b/data/widowx/meshes/forearm_link.stl differ diff --git a/data/widowx/meshes/gripper_hand_fixed_link.stl b/data/widowx/meshes/gripper_hand_fixed_link.stl new file mode 100644 index 000000000..aa0ec60fd Binary files /dev/null and b/data/widowx/meshes/gripper_hand_fixed_link.stl differ diff --git a/data/widowx/meshes/gripper_rail_link.stl b/data/widowx/meshes/gripper_rail_link.stl new file mode 100644 index 000000000..e480ed586 Binary files /dev/null and b/data/widowx/meshes/gripper_rail_link.stl differ diff --git a/data/widowx/meshes/shoulder_link.stl b/data/widowx/meshes/shoulder_link.stl new file mode 100644 index 000000000..636d41403 Binary files /dev/null and b/data/widowx/meshes/shoulder_link.stl differ diff --git a/data/widowx/meshes/wrist_1_link.stl b/data/widowx/meshes/wrist_1_link.stl new file mode 100644 index 000000000..254878f25 Binary files /dev/null and b/data/widowx/meshes/wrist_1_link.stl differ diff --git a/data/widowx/meshes/wrist_2_link.stl b/data/widowx/meshes/wrist_2_link.stl new file mode 100644 index 000000000..281f20559 Binary files /dev/null and b/data/widowx/meshes/wrist_2_link.stl differ diff --git a/data/widowx/widowx.urdf b/data/widowx/widowx.urdf new file mode 100644 index 000000000..0463f9336 --- /dev/null +++ b/data/widowx/widowx.urdf @@ -0,0 +1,279 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/pybullet_quickstartguide.pdf b/docs/pybullet_quickstartguide.pdf index d1305dd45..ebedaed80 100644 Binary files a/docs/pybullet_quickstartguide.pdf and b/docs/pybullet_quickstartguide.pdf differ diff --git a/examples/BasicDemo/BasicExample.cpp b/examples/BasicDemo/BasicExample.cpp index dac3008f0..0f243d6a4 100644 --- a/examples/BasicDemo/BasicExample.cpp +++ b/examples/BasicDemo/BasicExample.cpp @@ -39,10 +39,10 @@ struct BasicExample : public CommonRigidBodyBase void resetCamera() { float dist = 4; - float pitch = 52; - float yaw = 35; + float pitch = -35; + float yaw = 52; float targetPos[3]={0,0,0}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } }; diff --git a/examples/Benchmarks/BenchmarkDemo.cpp b/examples/Benchmarks/BenchmarkDemo.cpp index d9a1b3ef0..255259ce7 100644 --- a/examples/Benchmarks/BenchmarkDemo.cpp +++ b/examples/Benchmarks/BenchmarkDemo.cpp @@ -32,7 +32,6 @@ subject to the following restrictions: #include "LinearMath/btAlignedObjectArray.h" #include "LinearMath/btTransform.h" -#include "../MultiThreadedDemo/ParallelFor.h" class btDynamicsWorld; @@ -110,10 +109,10 @@ class BenchmarkDemo : public CommonRigidBodyMTBase void resetCamera() { float dist = 120; - float pitch = 52; - float yaw = 35; + float pitch = -35; + float yaw = 52; float targetPos[3]={0,10.46,0}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } }; @@ -230,7 +229,7 @@ public: } } - struct CastRaysLoopBody + struct CastRaysLoopBody : public btIParallelForBody { btCollisionWorld* mWorld; btRaycastBar2* mRaycasts; @@ -274,7 +273,7 @@ public: { CastRaysLoopBody rayLooper(cw, this); int grainSize = 20; // number of raycasts per task - parallelFor( 0, NUMRAYS, grainSize, rayLooper ); + btParallelFor( 0, NUMRAYS, grainSize, rayLooper ); } else #endif // USE_PARALLEL_RAYCASTS @@ -1315,4 +1314,4 @@ void BenchmarkDemo::exitPhysics() CommonExampleInterface* BenchmarkCreateFunc(struct CommonExampleOptions& options) { return new BenchmarkDemo(options.m_guiHelper,options.m_option); -} \ No newline at end of file +} diff --git a/examples/Collision/CollisionTutorialBullet2.cpp b/examples/Collision/CollisionTutorialBullet2.cpp index 8fd3bf1a8..6e65ac0cd 100644 --- a/examples/Collision/CollisionTutorialBullet2.cpp +++ b/examples/Collision/CollisionTutorialBullet2.cpp @@ -79,7 +79,6 @@ public: gTotalPoints = 0; m_app->setUpAxis(1); - m_app->m_renderer->enableBlend(true); switch (m_tutorialIndex) { @@ -250,7 +249,6 @@ public: m_timeSeriesCanvas0 = 0; - m_app->m_renderer->enableBlend(false); } @@ -371,8 +369,8 @@ public: virtual void resetCamera() { float dist = 10.5; - float pitch = 136; - float yaw = 32; + float pitch = -32; + float yaw = 136; float targetPos[3]={0,0,0}; if (m_app->m_renderer && m_app->m_renderer->getActiveCamera()) { diff --git a/examples/CommonInterfaces/CommonExampleInterface.h b/examples/CommonInterfaces/CommonExampleInterface.h index eeacb64e1..220f9a583 100644 --- a/examples/CommonInterfaces/CommonExampleInterface.h +++ b/examples/CommonInterfaces/CommonExampleInterface.h @@ -3,6 +3,13 @@ #ifndef COMMON_EXAMPLE_INTERFACE_H #define COMMON_EXAMPLE_INTERFACE_H +struct CommandProcessorCreationInterface +{ + virtual class CommandProcessorInterface* createCommandProcessor()=0; + virtual void deleteCommandProcessor(CommandProcessorInterface*)=0; +}; + + struct CommonExampleOptions { struct GUIHelperInterface* m_guiHelper; @@ -11,13 +18,14 @@ struct CommonExampleOptions int m_option; const char* m_fileName; class SharedMemoryInterface* m_sharedMem; - + CommandProcessorCreationInterface* m_commandProcessorCreation; CommonExampleOptions(struct GUIHelperInterface* helper, int option=0) :m_guiHelper(helper), m_option(option), m_fileName(0), - m_sharedMem(0) + m_sharedMem(0), + m_commandProcessorCreation(0) { } diff --git a/examples/CommonInterfaces/CommonGUIHelperInterface.h b/examples/CommonInterfaces/CommonGUIHelperInterface.h index efc8ab295..cbd52aa6f 100644 --- a/examples/CommonInterfaces/CommonGUIHelperInterface.h +++ b/examples/CommonInterfaces/CommonGUIHelperInterface.h @@ -39,6 +39,12 @@ struct GUIHelperInterface virtual void removeAllGraphicsInstances()=0; virtual void removeGraphicsInstance(int graphicsUid) {} virtual void changeRGBAColor(int instanceUid, const double rgbaColor[4]) {} + virtual void changeSpecularColor(int instanceUid, const double specularColor[3]) {} + virtual void changeTexture(int textureUniqueId, const unsigned char* rgbTexels, int width, int height){} + + virtual int getShapeIndexFromInstance(int instanceUid){return -1;} + virtual void replaceTexture(int shapeIndex, int textureUid){} + virtual Common2dCanvasInterface* get2dCanvasInterface()=0; @@ -55,9 +61,9 @@ struct GUIHelperInterface virtual void setUpAxis(int axis)=0; - virtual void resetCamera(float camDist, float pitch, float yaw, float camPosX,float camPosY, float camPosZ)=0; + virtual void resetCamera(float camDist, float yaw, float pitch, float camPosX,float camPosY, float camPosZ)=0; - virtual bool getCameraInfo(int* width, int* height, float viewMatrix[16], float projectionMatrix[16], float camUp[3], float camForward[3],float hor[3], float vert[3] ) const + virtual bool getCameraInfo(int* width, int* height, float viewMatrix[16], float projectionMatrix[16], float camUp[3], float camForward[3],float hor[3], float vert[3], float* yaw, float* pitch, float* camDist, float camTarget[3]) const { return false; } @@ -81,15 +87,20 @@ struct GUIHelperInterface float* depthBuffer, int depthBufferSizeInPixels, int* segmentationMaskBuffer, int segmentationMaskBufferSizeInPixels, int startPixelIndex, int destinationWidth, int destinationHeight, int* numPixelsCopied)=0; + virtual void debugDisplayCameraImageData(const float viewMatrix[16], const float projectionMatrix[16], + unsigned char* pixelsRGBA, int rgbaBufferSizeInPixels, + float* depthBuffer, int depthBufferSizeInPixels, + int* segmentationMaskBuffer, int segmentationMaskBufferSizeInPixels, + int startPixelIndex, int destinationWidth, int destinationHeight, int* numPixelsCopied){} + virtual void autogenerateGraphicsObjects(btDiscreteDynamicsWorld* rbWorld) =0; - virtual void drawText3D( const char* txt, float posX, float posZY, float posZ, float size)=0; - - + virtual void drawText3D( const char* txt, float posX, float posY, float posZ, float size){} + virtual void drawText3D( const char* txt, float position[3], float orientation[4], float color[4], float size, int optionFlag){} - virtual int addUserDebugText3D( const char* txt, const double posisionXYZ[3], const double textColorRGB[3], double size, double lifeTime){return -1;}; - virtual int addUserDebugLine(const double debugLineFromXYZ[3], const double debugLineToXYZ[3], const double debugLineColorRGB[3], double lineWidth, double lifeTime ){return -1;}; + virtual int addUserDebugText3D( const char* txt, const double positionXYZ[3], const double orientation[4], const double textColorRGB[3], double size, double lifeTime, int trackingVisualShapeIndex, int optionFlags){return -1;} + virtual int addUserDebugLine(const double debugLineFromXYZ[3], const double debugLineToXYZ[3], const double debugLineColorRGB[3], double lineWidth, double lifeTime , int trackingVisualShapeIndex){return -1;}; virtual int addUserDebugParameter(const char* txt, double rangeMin, double rangeMax, double startValue){return -1;}; virtual int readUserDebugParameter(int itemUniqueId, double* value) { return 0;} @@ -152,7 +163,7 @@ struct DummyGUIHelper : public GUIHelperInterface virtual void setUpAxis(int axis) { } - virtual void resetCamera(float camDist, float pitch, float yaw, float camPosX,float camPosY, float camPosZ) + virtual void resetCamera(float camDist, float yaw, float pitch, float camPosX,float camPosY, float camPosZ) { } @@ -174,12 +185,12 @@ struct DummyGUIHelper : public GUIHelperInterface virtual void drawText3D( const char* txt, float posX, float posZY, float posZ, float size) { } - - virtual int addUserDebugText3D( const char* txt, const double positionXYZ[3], const double textColorRGB[3], double size, double lifeTime) + + virtual void drawText3D( const char* txt, float position[3], float orientation[4], float color[4], float size, int optionFlag) { - return -1; } - virtual int addUserDebugLine(const double debugLineFromXYZ[3], const double debugLineToXYZ[3], const double debugLineColorRGB[3], double lineWidth, double lifeTime ) + + virtual int addUserDebugLine(const double debugLineFromXYZ[3], const double debugLineToXYZ[3], const double debugLineColorRGB[3], double lineWidth, double lifeTime , int trackingVisualShapeIndex) { return -1; } diff --git a/examples/CommonInterfaces/CommonGraphicsAppInterface.h b/examples/CommonInterfaces/CommonGraphicsAppInterface.h index 31f0f51ce..23118d1ac 100644 --- a/examples/CommonInterfaces/CommonGraphicsAppInterface.h +++ b/examples/CommonInterfaces/CommonGraphicsAppInterface.h @@ -37,6 +37,12 @@ enum EnumSphereLevelOfDetail }; struct CommonGraphicsApp { + enum drawText3DOption + { + eDrawText3D_OrtogonalFaceCamera=1, + eDrawText3D_TrueType=2, + eDrawText3D_TrackObject=4, + }; class CommonWindowInterface* m_window; struct CommonRenderInterface* m_renderer; struct CommonParameterInterface* m_parameterInterface; @@ -120,8 +126,21 @@ struct CommonGraphicsApp virtual int getUpAxis() const = 0; virtual void swapBuffer() = 0; - virtual void drawText( const char* txt, int posX, int posY, float size = 1.0f) = 0; - virtual void drawText3D( const char* txt, float posX, float posZY, float posZ, float size)=0; + virtual void drawText( const char* txt, int posX, int posY) + { + float size=1; + float colorRGBA[4]={0,0,0,1}; + drawText(txt,posX,posY, size, colorRGBA); + } + + virtual void drawText( const char* txt, int posX, int posY, float size) + { + float colorRGBA[4]={0,0,0,1}; + drawText(txt,posX,posY,size,colorRGBA); + } + virtual void drawText( const char* txt, int posX, int posY, float size, float colorRGBA[4]) = 0; + virtual void drawText3D( const char* txt, float posX, float posY, float posZ, float size)=0; + virtual void drawText3D( const char* txt, float position[3], float orientation[4], float color[4], float size, int optionFlag)=0; virtual void drawTexturedRect(float x0, float y0, float x1, float y1, float color[4], float u0,float v0, float u1, float v1, int useRGBA)=0; virtual int registerCubeShape(float halfExtentsX,float halfExtentsY, float halfExtentsZ, int textureIndex = -1, float textureScaling = 1)=0; virtual int registerGraphicsUnitSphereShape(EnumSphereLevelOfDetail lod, int textureId=-1) = 0; @@ -182,10 +201,10 @@ struct CommonGraphicsApp { // if (b3Fabs(xDelta)>b3Fabs(yDelta)) // { - pitch -= xDelta*m_mouseMoveMultiplier; + pitch -= yDelta*m_mouseMoveMultiplier; // } else // { - yaw += yDelta*m_mouseMoveMultiplier; + yaw -= xDelta*m_mouseMoveMultiplier; // } } diff --git a/examples/CommonInterfaces/CommonRenderInterface.h b/examples/CommonInterfaces/CommonRenderInterface.h index 4af517782..236f666c9 100644 --- a/examples/CommonInterfaces/CommonRenderInterface.h +++ b/examples/CommonInterfaces/CommonRenderInterface.h @@ -17,6 +17,22 @@ enum B3_USE_SHADOWMAP_RENDERMODE, }; + +struct GfxVertexFormat0 +{ + float x,y,z,w; + float unused0,unused1,unused2,unused3; + float u,v; +}; + +struct GfxVertexFormat1 +{ + float x,y,z,w; + float nx,ny,nz; + float u,v; +}; + + struct CommonRenderInterface { virtual ~CommonRenderInterface() {} @@ -46,24 +62,34 @@ struct CommonRenderInterface virtual void drawLine(const double from[4], const double to[4], const double color[4], double lineWidth) = 0; virtual void drawPoint(const float* position, const float color[4], float pointDrawSize)=0; virtual void drawPoint(const double* position, const double color[4], double pointDrawSize)=0; + virtual void drawTexturedTriangleMesh(float worldPosition[3], float worldOrientation[4], const float* vertices, int numvertices, const unsigned int* indices, int numIndices, float color[4], int textureIndex=-1, int vertexLayout=0)=0; + virtual int registerShape(const float* vertices, int numvertices, const int* indices, int numIndices,int primitiveType=B3_GL_TRIANGLES, int textureIndex=-1)=0; virtual void updateShape(int shapeIndex, const float* vertices)=0; - virtual int registerTexture(const unsigned char* texels, int width, int height)=0; - virtual void updateTexture(int textureIndex, const unsigned char* texels)=0; + virtual int registerTexture(const unsigned char* texels, int width, int height, bool flipPixelsY=true)=0; + virtual void updateTexture(int textureIndex, const unsigned char* texels, bool flipPixelsY=true)=0; virtual void activateTexture(int textureIndex)=0; - + virtual void replaceTexture(int shapeIndex, int textureIndex){}; + + virtual int getShapeIndexFromInstance(int srcIndex) {return -1;} + + virtual bool readSingleInstanceTransformToCPU(float* position, float* orientation, int srcIndex)=0; + virtual void writeSingleInstanceTransformToCPU(const float* position, const float* orientation, int srcIndex)=0; virtual void writeSingleInstanceTransformToCPU(const double* position, const double* orientation, int srcIndex)=0; virtual void writeSingleInstanceColorToCPU(const float* color, int srcIndex)=0; virtual void writeSingleInstanceColorToCPU(const double* color, int srcIndex)=0; virtual void writeSingleInstanceScaleToCPU(const float* scale, int srcIndex)=0; virtual void writeSingleInstanceScaleToCPU(const double* scale, int srcIndex)=0; + virtual void writeSingleInstanceSpecularColorToCPU(const double* specular, int srcIndex)=0; + virtual void writeSingleInstanceSpecularColorToCPU(const float* specular, int srcIndex)=0; + virtual int getTotalNumInstances() const = 0; virtual void writeTransforms()=0; - virtual void enableBlend(bool blend)=0; + virtual void clearZBuffer()=0; //This is internal access to OpenGL3+ features, mainly used for OpenCL-OpenGL interop diff --git a/examples/Constraints/ConstraintDemo.cpp b/examples/Constraints/ConstraintDemo.cpp index 41a888cd4..72ad1a8a6 100644 --- a/examples/Constraints/ConstraintDemo.cpp +++ b/examples/Constraints/ConstraintDemo.cpp @@ -50,10 +50,10 @@ class AllConstraintDemo : public CommonRigidBodyBase virtual void resetCamera() { float dist = 27; - float pitch = 720; - float yaw = 30; + float pitch = -30; + float yaw = 720; float targetPos[3]={2,0,-10}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } virtual bool keyboardCallback(int key, int state); @@ -885,4 +885,4 @@ bool AllConstraintDemo::keyboardCallback(int key, int state) class CommonExampleInterface* AllConstraintCreateFunc(struct CommonExampleOptions& options) { return new AllConstraintDemo(options.m_guiHelper); -} \ No newline at end of file +} diff --git a/examples/Constraints/ConstraintPhysicsSetup.cpp b/examples/Constraints/ConstraintPhysicsSetup.cpp index 71b3b2e97..faf31e204 100644 --- a/examples/Constraints/ConstraintPhysicsSetup.cpp +++ b/examples/Constraints/ConstraintPhysicsSetup.cpp @@ -18,10 +18,10 @@ struct ConstraintPhysicsSetup : public CommonRigidBodyBase virtual void resetCamera() { float dist = 7; - float pitch = 721; - float yaw = 44; + float pitch = -44; + float yaw = 721; float targetPos[3]={8,1,-11}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } diff --git a/examples/Constraints/Dof6Spring2Setup.cpp b/examples/Constraints/Dof6Spring2Setup.cpp index 0fd8975d4..89129f7a6 100644 --- a/examples/Constraints/Dof6Spring2Setup.cpp +++ b/examples/Constraints/Dof6Spring2Setup.cpp @@ -55,10 +55,10 @@ struct Dof6Spring2Setup : public CommonRigidBodyBase virtual void resetCamera() { float dist = 5; - float pitch = 722; - float yaw = 35; + float pitch = -35; + float yaw = 722; float targetPos[3]={4,2,-11}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } }; diff --git a/examples/Constraints/TestHingeTorque.cpp b/examples/Constraints/TestHingeTorque.cpp index 86217de3f..b22cfb55e 100644 --- a/examples/Constraints/TestHingeTorque.cpp +++ b/examples/Constraints/TestHingeTorque.cpp @@ -24,10 +24,10 @@ struct TestHingeTorque : public CommonRigidBodyBase { float dist = 5; - float pitch = 270; - float yaw = 21; + float pitch = -21; + float yaw = 270; float targetPos[3]={-1.34,3.4,-0.44}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } diff --git a/examples/DynamicControlDemo/MotorDemo.cpp b/examples/DynamicControlDemo/MotorDemo.cpp index 84284c534..d4025461e 100644 --- a/examples/DynamicControlDemo/MotorDemo.cpp +++ b/examples/DynamicControlDemo/MotorDemo.cpp @@ -63,10 +63,10 @@ public: void resetCamera() { float dist = 11; - float pitch = 52; - float yaw = 35; + float pitch = -35; + float yaw = 52; float targetPos[3]={0,0.46,0}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } }; @@ -447,4 +447,4 @@ void MotorDemo::exitPhysics() class CommonExampleInterface* MotorControlCreateFunc(struct CommonExampleOptions& options) { return new MotorDemo(options.m_guiHelper); -} \ No newline at end of file +} diff --git a/examples/Evolution/NN3DWalkers.cpp b/examples/Evolution/NN3DWalkers.cpp index 8e1afca90..420ef7e22 100755 --- a/examples/Evolution/NN3DWalkers.cpp +++ b/examples/Evolution/NN3DWalkers.cpp @@ -145,10 +145,10 @@ public: void resetCamera() { float dist = 11; - float pitch = 52; - float yaw = 35; + float pitch = -35; + float yaw = 52; float targetPos[3]={0,0.46,0}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } // Evaluation diff --git a/examples/ExampleBrowser/CMakeLists.txt b/examples/ExampleBrowser/CMakeLists.txt index 23c283fcb..e21d33d40 100644 --- a/examples/ExampleBrowser/CMakeLists.txt +++ b/examples/ExampleBrowser/CMakeLists.txt @@ -110,29 +110,6 @@ ELSE(WIN32) ENDIF(APPLE) ENDIF(WIN32) -IF (BULLET2_MULTITHREADED_OPEN_MP_DEMO) - ADD_DEFINITIONS("-DBT_USE_OPENMP=1") - IF (MSVC) - SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /openmp") - ELSE (MSVC) - # GCC, Clang - SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp") - ENDIF (MSVC) -ENDIF (BULLET2_MULTITHREADED_OPEN_MP_DEMO) - -IF (BULLET2_MULTITHREADED_PPL_DEMO) - ADD_DEFINITIONS("-DBT_USE_PPL=1") -ENDIF (BULLET2_MULTITHREADED_PPL_DEMO) - -IF (BULLET2_MULTITHREADED_TBB_DEMO) - SET (BULLET2_TBB_INCLUDE_DIR "not found" CACHE PATH "Directory for Intel TBB includes.") - SET (BULLET2_TBB_LIB_DIR "not found" CACHE PATH "Directory for Intel TBB libraries.") - find_library(TBB_LIBRARY tbb PATHS ${BULLET2_TBB_LIB_DIR}) - find_library(TBBMALLOC_LIBRARY tbbmalloc PATHS ${BULLET2_TBB_LIB_DIR}) - ADD_DEFINITIONS("-DBT_USE_TBB=1") - INCLUDE_DIRECTORIES( ${BULLET2_TBB_INCLUDE_DIR} ) - LINK_LIBRARIES( ${TBB_LIBRARY} ${TBBMALLOC_LIBRARY} ) -ENDIF (BULLET2_MULTITHREADED_TBB_DEMO) SET(ExtendedTutorialsSources ../ExtendedTutorials/Chain.cpp @@ -175,6 +152,7 @@ SET(BulletExampleBrowser_SRCS ../SharedMemory/PhysicsClient.cpp ../SharedMemory/PhysicsClientC_API.cpp ../SharedMemory/PhysicsServerExample.cpp + ../SharedMemory/PhysicsServerExampleBullet2.cpp ../SharedMemory/PhysicsClientExample.cpp ../SharedMemory/PosixSharedMemory.cpp ../SharedMemory/Win32SharedMemory.cpp @@ -207,7 +185,6 @@ SET(BulletExampleBrowser_SRCS ../MultiThreadedDemo/MultiThreadedDemo.h ../MultiThreadedDemo/CommonRigidBodyMTBase.cpp ../MultiThreadedDemo/CommonRigidBodyMTBase.h - ../MultiThreadedDemo/ParallelFor.h ../Tutorial/Tutorial.cpp ../Tutorial/Tutorial.h ../Tutorial/Dof6ConstraintTutorial.cpp @@ -244,6 +221,7 @@ SET(BulletExampleBrowser_SRCS ../MultiThreading/b3PosixThreadSupport.cpp ../MultiThreading/b3Win32ThreadSupport.cpp ../MultiThreading/b3ThreadSupportInterface.cpp + ../MultiThreading/btTaskScheduler.cpp ../RenderingExamples/TinyRendererSetup.cpp ../RenderingExamples/TimeSeriesCanvas.cpp ../RenderingExamples/TimeSeriesCanvas.h @@ -386,7 +364,7 @@ ADD_CUSTOM_COMMAND( COMMAND ${CMAKE_COMMAND} ARGS -E copy_directory ${BULLET_PHYSICS_SOURCE_DIR}/data ${PROJECT_BINARY_DIR}/data ) -IF (BULLET2_MULTITHREADED_TBB_DEMO AND WIN32) +IF (BULLET2_USE_TBB_MULTITHREADING AND WIN32) # add a post build command to copy some dlls to the executable directory set(TBB_VC_VER "vc12") set(TBB_VC_ARCH "ia32") @@ -400,7 +378,7 @@ IF (BULLET2_MULTITHREADED_TBB_DEMO AND WIN32) COMMAND ${CMAKE_COMMAND} -E copy_if_different "${BULLET2_TBB_INCLUDE_DIR}/../bin/${TBB_VC_ARCH}/${TBB_VC_VER}/tbbmalloc.dll" $) -ENDIF (BULLET2_MULTITHREADED_TBB_DEMO AND WIN32) +ENDIF (BULLET2_USE_TBB_MULTITHREADING AND WIN32) IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) diff --git a/examples/ExampleBrowser/ExampleEntries.cpp b/examples/ExampleBrowser/ExampleEntries.cpp index fb4128fcd..01490fb18 100644 --- a/examples/ExampleBrowser/ExampleEntries.cpp +++ b/examples/ExampleBrowser/ExampleEntries.cpp @@ -39,7 +39,7 @@ #include "../FractureDemo/FractureDemo.h" #include "../DynamicControlDemo/MotorDemo.h" #include "../RollingFrictionDemo/RollingFrictionDemo.h" -#include "../SharedMemory/PhysicsServerExample.h" +#include "../SharedMemory/PhysicsServerExampleBullet2.h" #include "../SharedMemory/PhysicsClientExample.h" #include "../Constraints/TestHingeTorque.h" #include "../RenderingExamples/TimeSeriesExample.h" @@ -138,7 +138,7 @@ static ExampleEntry gDefaultExamples[]= ExampleEntry(0,"Physics Client-Server"), ExampleEntry(1,"Physics Server", "Create a physics server that communicates with a physics client over shared memory. You can connect to the server using pybullet, a PhysicsClient or a UDP/TCP Bridge.", - PhysicsServerCreateFunc), + PhysicsServerCreateFuncBullet2), ExampleEntry(1, "Physics Client (Shared Mem)", "Create a physics client that can communicate with a physics server over shared memory.", PhysicsClientCreateFunc), // ExampleEntry(1,"Physics Server (Logging)", "Create a physics server that communicates with a physics client over shared memory. It will log all commands to a file.", @@ -277,9 +277,10 @@ static ExampleEntry gDefaultExamples[]= ExampleEntry(1,"Gripper Grasp","Grasp experiment with a gripper to improve contact model", GripperGraspExampleCreateFunc,eGRIPPER_GRASP), ExampleEntry(1,"Two Point Grasp","Grasp experiment with two point contact to test rolling friction", GripperGraspExampleCreateFunc, eTWO_POINT_GRASP), ExampleEntry(1,"One Motor Gripper Grasp","Grasp experiment with a gripper with one motor to test slider constraint for closed loop structure", GripperGraspExampleCreateFunc, eONE_MOTOR_GRASP), - ExampleEntry(1,"Grasp Soft Body","Grasp soft body experiment", GripperGraspExampleCreateFunc, eGRASP_SOFT_BODY), - ExampleEntry(1,"Softbody Multibody Coupling","Two way coupling between soft body and multibody experiment", GripperGraspExampleCreateFunc, eSOFTBODY_MULTIBODY_COUPLING), - +#ifdef USE_SOFT_BODY_MULTI_BODY_DYNAMICS_WORLD + ExampleEntry(1,"Grasp Soft Body","Grasp soft body experiment", GripperGraspExampleCreateFunc, eGRASP_SOFT_BODY), + ExampleEntry(1,"Softbody Multibody Coupling","Two way coupling between soft body and multibody experiment", GripperGraspExampleCreateFunc, eSOFTBODY_MULTIBODY_COUPLING), +#endif //USE_SOFT_BODY_MULTI_BODY_DYNAMICS_WORLD #ifdef ENABLE_LUA ExampleEntry(1,"Lua Script", "Create the dynamics world, collision shapes and rigid bodies using Lua scripting", @@ -294,7 +295,7 @@ static ExampleEntry gDefaultExamples[]= ExampleEntry(1,"Fracture demo", "Create a basic custom implementation to model fracturing objects, based on a btCompoundShape. It explicitly propagates the collision impulses and breaks the rigid body into multiple rigid bodies. Press F to toggle fracture and glue mode.", FractureDemoCreateFunc), ExampleEntry(1,"Planar 2D","Show the use of 2D collision shapes and rigid body simulation. The collision shape is wrapped into a btConvex2dShape. The rigid bodies are restricted in a plane using the 'setAngularFactor' and 'setLinearFactor' API call.",Planar2DCreateFunc), -#if BT_USE_OPENMP || BT_USE_TBB || BT_USE_PPL +#if BT_THREADSAFE // only enable MultiThreaded demo if a task scheduler is available ExampleEntry( 1, "Multithreaded Demo", "Stacks of boxes that do not sleep. Good for testing performance with large numbers of bodies and contacts. Sliders can be used to change the number of stacks (restart needed after each change)." diff --git a/examples/ExampleBrowser/GwenGUISupport/GwenParameterInterface.cpp b/examples/ExampleBrowser/GwenGUISupport/GwenParameterInterface.cpp index 2898fd30c..908106259 100644 --- a/examples/ExampleBrowser/GwenGUISupport/GwenParameterInterface.cpp +++ b/examples/ExampleBrowser/GwenGUISupport/GwenParameterInterface.cpp @@ -237,7 +237,7 @@ void GwenParameterInterface::registerSliderFloatParameter(SliderParams& params) if (params.m_clampToIntegers) { pSlider->SetNotchCount( int( params.m_maxVal - params.m_minVal ) ); - pSlider->SetClampToNotches( params.m_clampToNotches ); + pSlider->SetClampToNotches( true ); } else { diff --git a/examples/ExampleBrowser/InProcessExampleBrowser.cpp b/examples/ExampleBrowser/InProcessExampleBrowser.cpp index 88a2abd99..7b42da5be 100644 --- a/examples/ExampleBrowser/InProcessExampleBrowser.cpp +++ b/examples/ExampleBrowser/InProcessExampleBrowser.cpp @@ -28,6 +28,8 @@ void* ExampleBrowserMemoryFunc(); #include "EmptyExample.h" #include "../SharedMemory/PhysicsServerExample.h" +#include "../SharedMemory/PhysicsServerExampleBullet2.h" + #include "../SharedMemory/PhysicsClientExample.h" #ifndef _WIN32 @@ -124,14 +126,14 @@ static ExampleEntryPhysicsServer gDefaultExamplesPhysicsServer[]= ExampleEntryPhysicsServer(0,"Robotics Control"), ExampleEntryPhysicsServer(1,"Physics Server", "Create a physics server that communicates with a physics client over shared memory", - PhysicsServerCreateFunc), + PhysicsServerCreateFuncBullet2), ExampleEntryPhysicsServer(1,"Physics Server (RTC)", "Create a physics server that communicates with a physics client over shared memory. At each update, the Physics Server will continue calling 'stepSimulation' based on the real-time clock (RTC).", - PhysicsServerCreateFunc,PHYSICS_SERVER_USE_RTC_CLOCK), + PhysicsServerCreateFuncBullet2,PHYSICS_SERVER_USE_RTC_CLOCK), ExampleEntryPhysicsServer(1,"Physics Server (Logging)", "Create a physics server that communicates with a physics client over shared memory. It will log all commands to a file.", - PhysicsServerCreateFunc,PHYSICS_SERVER_ENABLE_COMMAND_LOGGING), + PhysicsServerCreateFuncBullet2,PHYSICS_SERVER_ENABLE_COMMAND_LOGGING), ExampleEntryPhysicsServer(1,"Physics Server (Replay Log)", "Create a physics server that replay a command log from disk.", - PhysicsServerCreateFunc,PHYSICS_SERVER_REPLAY_FROM_COMMAND_LOG), + PhysicsServerCreateFuncBullet2,PHYSICS_SERVER_REPLAY_FROM_COMMAND_LOG), }; @@ -228,6 +230,7 @@ static double gMinUpdateTimeMicroSecs = 4000.; void ExampleBrowserThreadFunc(void* userPtr,void* lsMemory) { + printf("ExampleBrowserThreadFunc started\n"); ExampleBrowserThreadLocalStorage* localStorage = (ExampleBrowserThreadLocalStorage*) lsMemory; @@ -255,7 +258,9 @@ void ExampleBrowserThreadFunc(void* userPtr,void* lsMemory) do { - B3_PROFILE("ExampleBrowserThreadFunc"); + clock.usleep(0); + + //B3_PROFILE("ExampleBrowserThreadFunc"); float deltaTimeInSeconds = clock.getTimeMicroseconds()/1000000.f; { if (deltaTimeInSeconds > 0.1) @@ -264,13 +269,13 @@ void ExampleBrowserThreadFunc(void* userPtr,void* lsMemory) } if (deltaTimeInSeconds < (gMinUpdateTimeMicroSecs/1e6)) { - B3_PROFILE("clock.usleep"); - clock.usleep(gMinUpdateTimeMicroSecs/10.); + //B3_PROFILE("clock.usleep"); exampleBrowser->updateGraphics(); } else { - B3_PROFILE("exampleBrowser->update"); + //B3_PROFILE("exampleBrowser->update"); clock.reset(); + exampleBrowser->updateGraphics(); exampleBrowser->update(deltaTimeInSeconds); } } @@ -311,11 +316,12 @@ struct btInProcessExampleBrowserInternalData -btInProcessExampleBrowserInternalData* btCreateInProcessExampleBrowser(int argc,char** argv2) +btInProcessExampleBrowserInternalData* btCreateInProcessExampleBrowser(int argc,char** argv2, bool useInProcessMemory) { btInProcessExampleBrowserInternalData* data = new btInProcessExampleBrowserInternalData; - data->m_sharedMem = new InProcessMemory; + + data->m_sharedMem = useInProcessMemory ? new InProcessMemory : 0; int numThreads = 1; int i; @@ -405,12 +411,12 @@ struct btInProcessExampleBrowserMainThreadInternalData b3Clock m_clock; }; -btInProcessExampleBrowserMainThreadInternalData* btCreateInProcessExampleBrowserMainThread(int argc,char** argv) +btInProcessExampleBrowserMainThreadInternalData* btCreateInProcessExampleBrowserMainThread(int argc,char** argv, bool useInProcessMemory) { btInProcessExampleBrowserMainThreadInternalData* data = new btInProcessExampleBrowserMainThreadInternalData; data->m_examples.initExampleEntries(); data->m_exampleBrowser = new DefaultBrowser(&data->m_examples); - data->m_sharedMem = new InProcessMemory; + data->m_sharedMem = useInProcessMemory ? new InProcessMemory : 0; data->m_exampleBrowser->setSharedMemoryInterface(data->m_sharedMem ); bool init; init = data->m_exampleBrowser->init(argc,argv); @@ -427,6 +433,7 @@ void btUpdateInProcessExampleBrowserMainThread(btInProcessExampleBrowserMainThre { float deltaTimeInSeconds = data->m_clock.getTimeMicroseconds()/1000000.f; data->m_clock.reset(); + data->m_exampleBrowser->updateGraphics(); data->m_exampleBrowser->update(deltaTimeInSeconds); } void btShutDownExampleBrowserMainThread(btInProcessExampleBrowserMainThreadInternalData* data) diff --git a/examples/ExampleBrowser/InProcessExampleBrowser.h b/examples/ExampleBrowser/InProcessExampleBrowser.h index e01d3fd91..526c42058 100644 --- a/examples/ExampleBrowser/InProcessExampleBrowser.h +++ b/examples/ExampleBrowser/InProcessExampleBrowser.h @@ -3,7 +3,7 @@ struct btInProcessExampleBrowserInternalData; -btInProcessExampleBrowserInternalData* btCreateInProcessExampleBrowser(int argc,char** argv2); +btInProcessExampleBrowserInternalData* btCreateInProcessExampleBrowser(int argc,char** argv2, bool useInProcessMemory); bool btIsExampleBrowserTerminated(btInProcessExampleBrowserInternalData* data); @@ -17,7 +17,7 @@ class SharedMemoryInterface* btGetSharedMemoryInterface(btInProcessExampleBrowse struct btInProcessExampleBrowserMainThreadInternalData; -btInProcessExampleBrowserMainThreadInternalData* btCreateInProcessExampleBrowserMainThread(int argc,char** argv2); +btInProcessExampleBrowserMainThreadInternalData* btCreateInProcessExampleBrowserMainThread(int argc,char** argv, bool useInProcessMemory); bool btIsExampleBrowserMainThreadTerminated(btInProcessExampleBrowserMainThreadInternalData* data); diff --git a/examples/ExampleBrowser/OpenGLExampleBrowser.cpp b/examples/ExampleBrowser/OpenGLExampleBrowser.cpp index cdfef5404..3de9af446 100644 --- a/examples/ExampleBrowser/OpenGLExampleBrowser.cpp +++ b/examples/ExampleBrowser/OpenGLExampleBrowser.cpp @@ -127,9 +127,15 @@ extern bool useShadowMap; bool visualWireframe=false; static bool renderVisualGeometry=true; static bool renderGrid = true; +static bool gEnableRenderLoop = true; + bool renderGui = true; static bool enable_experimental_opencl = false; +static bool gEnableDefaultKeyboardShortcuts = true; +static bool gEnableDefaultMousePicking = true; + + int gDebugDrawFlags = 0; static bool pauseSimulation=false; static bool singleStepSimulation = false; @@ -200,7 +206,7 @@ void MyKeyboardCallback(int key, int state) //if (handled) // return; - //if (s_window && s_window->isModifierKeyPressed(B3G_CONTROL)) + if (gEnableDefaultKeyboardShortcuts) { if (key=='a' && state) { @@ -366,6 +372,10 @@ void OpenGLExampleBrowser::registerFileImporter(const char* extension, CommonExa void OpenGLExampleBrowserVisualizerFlagCallback(int flag, bool enable) { + if (flag == COV_ENABLE_RENDERING) + { + gEnableRenderLoop = (enable!=0); + } if (flag == COV_ENABLE_SHADOWS) { useShadowMap = enable; @@ -376,6 +386,15 @@ void OpenGLExampleBrowserVisualizerFlagCallback(int flag, bool enable) renderGrid = enable; } + if (flag == COV_ENABLE_KEYBOARD_SHORTCUTS) + { + gEnableDefaultKeyboardShortcuts = enable; + } + if (flag == COV_ENABLE_MOUSE_PICKING) + { + gEnableDefaultMousePicking = enable; + } + if (flag == COV_ENABLE_WIREFRAME) { visualWireframe = enable; @@ -1172,7 +1191,7 @@ void OpenGLExampleBrowser::updateGraphics() { if (!pauseSimulation || singleStepSimulation) { - B3_PROFILE("sCurrentDemo->updateGraphics"); + //B3_PROFILE("sCurrentDemo->updateGraphics"); sCurrentDemo->updateGraphics(); } } @@ -1180,6 +1199,9 @@ void OpenGLExampleBrowser::updateGraphics() void OpenGLExampleBrowser::update(float deltaTime) { + if (!gEnableRenderLoop) + return; + b3ChromeUtilsEnableProfiling(); B3_PROFILE("OpenGLExampleBrowser::update"); @@ -1283,8 +1305,10 @@ void OpenGLExampleBrowser::update(float deltaTime) float pitch = s_guiHelper->getRenderInterface()->getActiveCamera()->getCameraPitch(); float yaw = s_guiHelper->getRenderInterface()->getActiveCamera()->getCameraYaw(); float camTarget[3]; + float camPos[3]; + s_guiHelper->getRenderInterface()->getActiveCamera()->getCameraPosition(camPos); s_guiHelper->getRenderInterface()->getActiveCamera()->getCameraTargetPosition(camTarget); - sprintf(msg,"dist=%f, pitch=%f, yaw=%f,target=%f,%f,%f", camDist,pitch,yaw,camTarget[0],camTarget[1],camTarget[2]); + sprintf(msg,"camPos=%f,%f,%f, dist=%f, pitch=%f, yaw=%f,target=%f,%f,%f", camPos[0],camPos[1],camPos[2],camDist,pitch,yaw,camTarget[0],camTarget[1],camTarget[2]); gui2->setStatusBarMessage(msg, true); } diff --git a/examples/ExampleBrowser/OpenGLGuiHelper.cpp b/examples/ExampleBrowser/OpenGLGuiHelper.cpp index 634004d84..daeefddc6 100644 --- a/examples/ExampleBrowser/OpenGLGuiHelper.cpp +++ b/examples/ExampleBrowser/OpenGLGuiHelper.cpp @@ -292,6 +292,12 @@ int OpenGLGuiHelper::registerTexture(const unsigned char* texels, int width, int return textureId; } +void OpenGLGuiHelper::changeTexture(int textureUniqueId, const unsigned char* rgbTexels, int width, int height) +{ + bool flipPixelsY = true; + m_data->m_glApp->m_renderer->updateTexture(textureUniqueId, rgbTexels,flipPixelsY); +} + int OpenGLGuiHelper::registerGraphicsShape(const float* vertices, int numvertices, const int* indices, int numIndices,int primitiveType, int textureId) { @@ -318,6 +324,18 @@ void OpenGLGuiHelper::removeGraphicsInstance(int graphicsUid) }; } +int OpenGLGuiHelper::getShapeIndexFromInstance(int instanceUid) +{ + return m_data->m_glApp->m_renderer->getShapeIndexFromInstance(instanceUid); +} + +void OpenGLGuiHelper::replaceTexture(int shapeIndex, int textureUid) +{ + if (shapeIndex>=0) + { + m_data->m_glApp->m_renderer->replaceTexture(shapeIndex, textureUid); + }; +} void OpenGLGuiHelper::changeRGBAColor(int instanceUid, const double rgbaColor[4]) { if (instanceUid>=0) @@ -325,7 +343,13 @@ void OpenGLGuiHelper::changeRGBAColor(int instanceUid, const double rgbaColor[4] m_data->m_glApp->m_renderer->writeSingleInstanceColorToCPU(rgbaColor,instanceUid); }; } - +void OpenGLGuiHelper::changeSpecularColor(int instanceUid, const double specularColor[3]) +{ + if (instanceUid>=0) + { + m_data->m_glApp->m_renderer->writeSingleInstanceSpecularColorToCPU(specularColor,instanceUid); + }; +} int OpenGLGuiHelper::createCheckeredTexture(int red,int green, int blue) { int texWidth=1024; @@ -973,7 +997,7 @@ void OpenGLGuiHelper::setVisualizerFlag(int flag, int enable) } -void OpenGLGuiHelper::resetCamera(float camDist, float pitch, float yaw, float camPosX,float camPosY, float camPosZ) +void OpenGLGuiHelper::resetCamera(float camDist, float yaw, float pitch, float camPosX,float camPosY, float camPosZ) { if (getRenderInterface() && getRenderInterface()->getActiveCamera()) { @@ -984,7 +1008,7 @@ void OpenGLGuiHelper::resetCamera(float camDist, float pitch, float yaw, float c } } -bool OpenGLGuiHelper::getCameraInfo(int* width, int* height, float viewMatrix[16], float projectionMatrix[16], float camUp[3], float camForward[3],float hor[3], float vert[3] ) const +bool OpenGLGuiHelper::getCameraInfo(int* width, int* height, float viewMatrix[16], float projectionMatrix[16], float camUp[3], float camForward[3],float hor[3], float vert[3], float* yaw, float* pitch, float* camDist, float cameraTarget[3]) const { if (getRenderInterface() && getRenderInterface()->getActiveCamera()) { @@ -1030,6 +1054,13 @@ bool OpenGLGuiHelper::getCameraInfo(int* width, int* height, float viewMatrix[16 vert[0] = vertical[0]; vert[1] = vertical[1]; vert[2] = vertical[2]; + + *yaw = getRenderInterface()->getActiveCamera()->getCameraYaw(); + *pitch = getRenderInterface()->getActiveCamera()->getCameraPitch(); + *camDist = getRenderInterface()->getActiveCamera()->getCameraDistance(); + cameraTarget[0] = camTarget[0]; + cameraTarget[1] = camTarget[1]; + cameraTarget[2] = camTarget[2]; return true; } return false; @@ -1194,6 +1225,15 @@ void OpenGLGuiHelper::autogenerateGraphicsObjects(btDiscreteDynamicsWorld* rbWor } } +void OpenGLGuiHelper::drawText3D( const char* txt, float position[3], float orientation[4], float color[4], float size, int optionFlags) +{ + B3_PROFILE("OpenGLGuiHelper::drawText3D"); + + btAssert(m_data->m_glApp); + m_data->m_glApp->drawText3D(txt,position, orientation, color,size, optionFlags); + +} + void OpenGLGuiHelper::drawText3D( const char* txt, float posX, float posY, float posZ, float size) { B3_PROFILE("OpenGLGuiHelper::drawText3D"); @@ -1213,4 +1253,4 @@ void OpenGLGuiHelper::dumpFramesToVideo(const char* mp4FileName) { m_data->m_glApp->dumpFramesToVideo(mp4FileName); } -} \ No newline at end of file +} diff --git a/examples/ExampleBrowser/OpenGLGuiHelper.h b/examples/ExampleBrowser/OpenGLGuiHelper.h index 8a0dd67dc..52a522e0e 100644 --- a/examples/ExampleBrowser/OpenGLGuiHelper.h +++ b/examples/ExampleBrowser/OpenGLGuiHelper.h @@ -27,7 +27,12 @@ struct OpenGLGuiHelper : public GUIHelperInterface virtual void removeAllGraphicsInstances(); virtual void removeGraphicsInstance(int graphicsUid); virtual void changeRGBAColor(int instanceUid, const double rgbaColor[4]); - + virtual void changeSpecularColor(int instanceUid, const double specularColor[3]); + virtual void changeTexture(int textureUniqueId, const unsigned char* rgbTexels, int width, int height); + + virtual int getShapeIndexFromInstance(int instanceUid); + virtual void replaceTexture(int shapeIndex, int textureUid); + virtual void createCollisionShapeGraphicsObject(btCollisionShape* collisionShape); virtual void syncPhysicsToGraphics(const btDiscreteDynamicsWorld* rbWorld); @@ -46,8 +51,8 @@ struct OpenGLGuiHelper : public GUIHelperInterface virtual void setUpAxis(int axis); - virtual void resetCamera(float camDist, float pitch, float yaw, float camPosX,float camPosY, float camPosZ); - virtual bool getCameraInfo(int* width, int* height, float viewMatrix[16], float projectionMatrix[16], float camUp[3], float camForward[3],float hor[3], float vert[3] ) const; + virtual void resetCamera(float camDist, float yaw, float pitch, float camPosX,float camPosY, float camPosZ); + virtual bool getCameraInfo(int* width, int* height, float viewMatrix[16], float projectionMatrix[16], float camUp[3], float camForward[3],float hor[3], float vert[3], float* yaw, float* pitch, float* camDist, float cameraTarget[3]) const; virtual void copyCameraImageData(const float viewMatrix[16], const float projectionMatrix[16], unsigned char* pixelsRGBA, int rgbaBufferSizeInPixels, @@ -57,8 +62,10 @@ struct OpenGLGuiHelper : public GUIHelperInterface int destinationHeight, int* numPixelsCopied); virtual void autogenerateGraphicsObjects(btDiscreteDynamicsWorld* rbWorld) ; - - virtual void drawText3D( const char* txt, float posX, float posY, float posZ, float size); + + virtual void drawText3D( const char* txt, float position[3], float orientation[4], float color[4], float size, int optionFlag); + + virtual void drawText3D( const char* txt, float posX, float posY, float posZ, float size); virtual int addUserDebugText3D( const char* txt, const double positionXYZ[3], const double textColorRGB[3], double size, double lifeTime) { diff --git a/examples/ExampleBrowser/premake4.lua b/examples/ExampleBrowser/premake4.lua index e029b8edf..0ae38bc0f 100644 --- a/examples/ExampleBrowser/premake4.lua +++ b/examples/ExampleBrowser/premake4.lua @@ -81,6 +81,7 @@ project "App_BulletExampleBrowser" "../SharedMemory/PhysicsClientC_API.cpp", "../SharedMemory/PhysicsClientC_API.h", "../SharedMemory/PhysicsServerExample.cpp", + "../SharedMemory/PhysicsServerExampleBullet2.cpp", "../SharedMemory/PhysicsClientExample.cpp", "../SharedMemory/PhysicsServer.cpp", "../SharedMemory/PhysicsServerSharedMemory.cpp", diff --git a/examples/ExtendedTutorials/Bridge.cpp b/examples/ExtendedTutorials/Bridge.cpp index 269b5c4d0..41fe55290 100644 --- a/examples/ExtendedTutorials/Bridge.cpp +++ b/examples/ExtendedTutorials/Bridge.cpp @@ -35,10 +35,10 @@ struct BridgeExample : public CommonRigidBodyBase void resetCamera() { float dist = 41; - float pitch = 52; - float yaw = 35; + float pitch = -35; + float yaw = 52; float targetPos[3]={0,0.46,0}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } }; diff --git a/examples/ExtendedTutorials/Chain.cpp b/examples/ExtendedTutorials/Chain.cpp index e78952db9..73d2eb7e7 100644 --- a/examples/ExtendedTutorials/Chain.cpp +++ b/examples/ExtendedTutorials/Chain.cpp @@ -35,10 +35,10 @@ struct ChainExample : public CommonRigidBodyBase void resetCamera() { float dist = 41; - float pitch = 52; - float yaw = 35; + float pitch = -35; + float yaw = 52; float targetPos[3]={0,0.46,0}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } }; diff --git a/examples/ExtendedTutorials/InclinedPlane.cpp b/examples/ExtendedTutorials/InclinedPlane.cpp index 343ebc3ae..d6322f034 100644 --- a/examples/ExtendedTutorials/InclinedPlane.cpp +++ b/examples/ExtendedTutorials/InclinedPlane.cpp @@ -62,10 +62,10 @@ struct InclinedPlaneExample : public CommonRigidBodyBase void resetCamera() { float dist = 41; - float pitch = 52; - float yaw = 35; + float pitch = -35; + float yaw = 52; float targetPos[3]={0,0.46,0}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } diff --git a/examples/ExtendedTutorials/MultiPendulum.cpp b/examples/ExtendedTutorials/MultiPendulum.cpp index b45eee755..7dfdffea3 100644 --- a/examples/ExtendedTutorials/MultiPendulum.cpp +++ b/examples/ExtendedTutorials/MultiPendulum.cpp @@ -58,10 +58,10 @@ struct MultiPendulumExample: public CommonRigidBodyBase { virtual void applyPendulumForce(btScalar pendulumForce); void resetCamera() { float dist = 41; - float pitch = 52; - float yaw = 35; + float pitch = -35; + float yaw = 52; float targetPos[3] = { 0, 0.46, 0 }; - m_guiHelper->resetCamera(dist, pitch, yaw, targetPos[0], targetPos[1], + m_guiHelper->resetCamera(dist, yaw, pitch, targetPos[0], targetPos[1], targetPos[2]); } diff --git a/examples/ExtendedTutorials/MultipleBoxes.cpp b/examples/ExtendedTutorials/MultipleBoxes.cpp index c9555936a..8db651aa0 100644 --- a/examples/ExtendedTutorials/MultipleBoxes.cpp +++ b/examples/ExtendedTutorials/MultipleBoxes.cpp @@ -35,10 +35,10 @@ struct MultipleBoxesExample : public CommonRigidBodyBase void resetCamera() { float dist = 41; - float pitch = 52; - float yaw = 35; + float pitch = -35; + float yaw = 52; float targetPos[3]={0,0.46,0}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } }; diff --git a/examples/ExtendedTutorials/NewtonsCradle.cpp b/examples/ExtendedTutorials/NewtonsCradle.cpp index 54be8367a..92924bc7d 100644 --- a/examples/ExtendedTutorials/NewtonsCradle.cpp +++ b/examples/ExtendedTutorials/NewtonsCradle.cpp @@ -58,10 +58,10 @@ struct NewtonsCradleExample: public CommonRigidBodyBase { virtual void applyPendulumForce(btScalar pendulumForce); void resetCamera() { float dist = 41; - float pitch = 52; - float yaw = 35; + float pitch = -35; + float yaw = 52; float targetPos[3] = { 0, 0.46, 0 }; - m_guiHelper->resetCamera(dist, pitch, yaw, targetPos[0], targetPos[1], + m_guiHelper->resetCamera(dist, yaw, pitch, targetPos[0], targetPos[1], targetPos[2]); } diff --git a/examples/ExtendedTutorials/NewtonsRopeCradle.cpp b/examples/ExtendedTutorials/NewtonsRopeCradle.cpp index 76eb115ea..8786ebed7 100644 --- a/examples/ExtendedTutorials/NewtonsRopeCradle.cpp +++ b/examples/ExtendedTutorials/NewtonsRopeCradle.cpp @@ -90,10 +90,10 @@ struct NewtonsRopeCradleExample : public CommonRigidBodyBase { void resetCamera() { float dist = 41; - float pitch = 52; - float yaw = 35; + float pitch = -35; + float yaw = 52; float targetPos[3]={0,0.46,0}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } std::vector constraints; diff --git a/examples/ExtendedTutorials/RigidBodyFromObj.cpp b/examples/ExtendedTutorials/RigidBodyFromObj.cpp index 9e09f9dd9..7d2a59b91 100644 --- a/examples/ExtendedTutorials/RigidBodyFromObj.cpp +++ b/examples/ExtendedTutorials/RigidBodyFromObj.cpp @@ -43,10 +43,10 @@ struct RigidBodyFromObjExample : public CommonRigidBodyBase void resetCamera() { float dist = 11; - float pitch = 52; - float yaw = 35; + float pitch = -35; + float yaw = 52; float targetPos[3]={0,0.46,0}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } }; diff --git a/examples/ExtendedTutorials/SimpleBox.cpp b/examples/ExtendedTutorials/SimpleBox.cpp index 474a507f0..49e252739 100644 --- a/examples/ExtendedTutorials/SimpleBox.cpp +++ b/examples/ExtendedTutorials/SimpleBox.cpp @@ -35,10 +35,10 @@ struct SimpleBoxExample : public CommonRigidBodyBase void resetCamera() { float dist = 41; - float pitch = 52; - float yaw = 35; + float pitch = -35; + float yaw = 52; float targetPos[3]={0,0.46,0}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } }; diff --git a/examples/ExtendedTutorials/SimpleCloth.cpp b/examples/ExtendedTutorials/SimpleCloth.cpp index 33a3815b1..ec0dd337c 100644 --- a/examples/ExtendedTutorials/SimpleCloth.cpp +++ b/examples/ExtendedTutorials/SimpleCloth.cpp @@ -61,10 +61,10 @@ struct SimpleClothExample : public CommonRigidBodyBase void resetCamera() { float dist = 41; - float pitch = 52; - float yaw = 35; + float pitch = -35; + float yaw = 52; float targetPos[3]={0,0.46,0}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } void createSoftBody(const btScalar size, const int num_x, const int num_z, const int fixed=1+2); diff --git a/examples/ExtendedTutorials/SimpleJoint.cpp b/examples/ExtendedTutorials/SimpleJoint.cpp index da30449b4..1a76f20ec 100644 --- a/examples/ExtendedTutorials/SimpleJoint.cpp +++ b/examples/ExtendedTutorials/SimpleJoint.cpp @@ -35,10 +35,10 @@ struct SimpleJointExample : public CommonRigidBodyBase void resetCamera() { float dist = 41; - float pitch = 52; - float yaw = 35; + float pitch = -35; + float yaw = 52; float targetPos[3]={0,0.46,0}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } }; diff --git a/examples/ForkLift/ForkLiftDemo.cpp b/examples/ForkLift/ForkLiftDemo.cpp index e993462ef..bac041662 100644 --- a/examples/ForkLift/ForkLiftDemo.cpp +++ b/examples/ForkLift/ForkLiftDemo.cpp @@ -144,10 +144,10 @@ class ForkLiftDemo : public CommonExampleInterface virtual void resetCamera() { float dist = 8; - float pitch = -45; - float yaw = 32; + float pitch = -32; + float yaw = -45; float targetPos[3]={-0.33,-0.72,4.5}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } /*static DemoApplication* Create() diff --git a/examples/FractureDemo/FractureDemo.cpp b/examples/FractureDemo/FractureDemo.cpp index 849914e85..4e46f472c 100644 --- a/examples/FractureDemo/FractureDemo.cpp +++ b/examples/FractureDemo/FractureDemo.cpp @@ -90,10 +90,10 @@ public: void resetCamera() { float dist = 41; - float pitch = 52; - float yaw = 35; + float pitch = -35; + float yaw = 52; float targetPos[3]={0,0.46,0}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } diff --git a/examples/GyroscopicDemo/GyroscopicSetup.cpp b/examples/GyroscopicDemo/GyroscopicSetup.cpp index e8eb55026..5ef115678 100644 --- a/examples/GyroscopicDemo/GyroscopicSetup.cpp +++ b/examples/GyroscopicDemo/GyroscopicSetup.cpp @@ -21,10 +21,10 @@ struct GyroscopicSetup : public CommonRigidBodyBase void resetCamera() { float dist = 20; - float pitch = 180; - float yaw = 16; + float pitch = -16; + float yaw = 180; float targetPos[3]={-2.4,0.4,-0.24}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } }; @@ -135,4 +135,4 @@ void GyroscopicSetup::physicsDebugDraw(int debugFlags) class CommonExampleInterface* GyroscopicCreateFunc(CommonExampleOptions& options) { return new GyroscopicSetup(options.m_guiHelper); -} \ No newline at end of file +} diff --git a/examples/Importers/ImportBsp/ImportBspExample.cpp b/examples/Importers/ImportBsp/ImportBspExample.cpp index eec8a4fb9..31b4cb41b 100644 --- a/examples/Importers/ImportBsp/ImportBspExample.cpp +++ b/examples/Importers/ImportBsp/ImportBspExample.cpp @@ -67,10 +67,10 @@ class BspDemo : public CommonRigidBodyBase virtual void resetCamera() { float dist = 43; - float pitch = -175; - float yaw = 12; + float pitch = -12; + float yaw = -175; float targetPos[3]={4,-25,-6}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } @@ -301,4 +301,4 @@ static DemoApplication* Create() demo->initPhysics("BspDemo.bsp"); return demo; } - */ \ No newline at end of file + */ diff --git a/examples/Importers/ImportBullet/SerializeSetup.cpp b/examples/Importers/ImportBullet/SerializeSetup.cpp index 460d27192..0d6931e4f 100644 --- a/examples/Importers/ImportBullet/SerializeSetup.cpp +++ b/examples/Importers/ImportBullet/SerializeSetup.cpp @@ -22,10 +22,10 @@ public: virtual void resetCamera() { float dist = 9.5; - float pitch = -2.8; - float yaw = 20; + float pitch = -20; + float yaw = -2.8; float targetPos[3]={-0.2,-1.4,3.5}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } }; diff --git a/examples/Importers/ImportColladaDemo/ImportColladaSetup.cpp b/examples/Importers/ImportColladaDemo/ImportColladaSetup.cpp index 4b0292c74..453d16298 100644 --- a/examples/Importers/ImportColladaDemo/ImportColladaSetup.cpp +++ b/examples/Importers/ImportColladaDemo/ImportColladaSetup.cpp @@ -41,10 +41,10 @@ public: virtual void resetCamera() { float dist = 16; - float pitch = -140; - float yaw = 28; + float pitch = -28; + float yaw = -140; float targetPos[3]={-4,-3,-3}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } }; diff --git a/examples/Importers/ImportMJCFDemo/BulletMJCFImporter.cpp b/examples/Importers/ImportMJCFDemo/BulletMJCFImporter.cpp index ce49cf6f5..07cb2696d 100644 --- a/examples/Importers/ImportMJCFDemo/BulletMJCFImporter.cpp +++ b/examples/Importers/ImportMJCFDemo/BulletMJCFImporter.cpp @@ -706,7 +706,7 @@ struct BulletMJCFImporterInternalData if (!rgba.empty()) { // "0 0.7 0.7 1" - parseVector4(geom.m_localMaterial.m_rgbaColor, rgba); + parseVector4(geom.m_localMaterial.m_matColor.m_rgbaColor, rgba); geom.m_hasLocalMaterial = true; geom.m_localMaterial.m_name = rgba; } diff --git a/examples/Importers/ImportMJCFDemo/ImportMJCFSetup.cpp b/examples/Importers/ImportMJCFDemo/ImportMJCFSetup.cpp index c533d8062..64c226811 100644 --- a/examples/Importers/ImportMJCFDemo/ImportMJCFSetup.cpp +++ b/examples/Importers/ImportMJCFDemo/ImportMJCFSetup.cpp @@ -38,10 +38,10 @@ public: virtual void resetCamera() { float dist = 3.5; - float pitch = -136; - float yaw = 28; + float pitch = -28; + float yaw = -136; float targetPos[3]={0.47,0,-0.64}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } }; diff --git a/examples/Importers/ImportMeshUtility/b3ImportMeshUtility.cpp b/examples/Importers/ImportMeshUtility/b3ImportMeshUtility.cpp index c14658ab9..349e5eca4 100644 --- a/examples/Importers/ImportMeshUtility/b3ImportMeshUtility.cpp +++ b/examples/Importers/ImportMeshUtility/b3ImportMeshUtility.cpp @@ -6,7 +6,7 @@ #include "../ImportObjDemo/Wavefront2GLInstanceGraphicsShape.h" #include "../../Utils/b3ResourcePath.h" #include "Bullet3Common/b3FileUtils.h" -#include "../../ThirdPartyLibs/stb_image/stb_image.h" +#include "stb_image/stb_image.h" #include "../ImportObjDemo/LoadMeshFromObj.h" bool b3ImportMeshUtility::loadAndRegisterMeshFromFileInternal(const std::string& fileName, b3ImportMeshData& meshData) { @@ -36,7 +36,7 @@ bool b3ImportMeshUtility::loadAndRegisterMeshFromFileInternal(const std::string& //int textureIndex = -1; //try to load some texture - for (int i=0;i0) @@ -64,8 +64,10 @@ bool b3ImportMeshUtility::loadAndRegisterMeshFromFileInternal(const std::string& meshData.m_textureHeight = height; } else { + b3Warning("Unsupported texture image format [%s]\n",relativeFileName); meshData.m_textureWidth = 0; meshData.m_textureHeight = 0; + break; } } else diff --git a/examples/Importers/ImportObjDemo/ImportObjExample.cpp b/examples/Importers/ImportObjDemo/ImportObjExample.cpp index 2fc11afa3..e049f5f0f 100644 --- a/examples/Importers/ImportObjDemo/ImportObjExample.cpp +++ b/examples/Importers/ImportObjDemo/ImportObjExample.cpp @@ -29,10 +29,10 @@ public: virtual void resetCamera() { float dist = 18; - float pitch = 120; - float yaw = 46; + float pitch = -46; + float yaw = 120; float targetPos[3]={-2,-2,-2}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } }; diff --git a/examples/Importers/ImportSDFDemo/ImportSDFSetup.cpp b/examples/Importers/ImportSDFDemo/ImportSDFSetup.cpp index 4248cbdb3..5f360072e 100644 --- a/examples/Importers/ImportSDFDemo/ImportSDFSetup.cpp +++ b/examples/Importers/ImportSDFDemo/ImportSDFSetup.cpp @@ -50,10 +50,10 @@ public: virtual void resetCamera() { float dist = 3.5; - float pitch = -136; - float yaw = 28; + float pitch = -28; + float yaw = -136; float targetPos[3]={0.47,0,-0.64}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } }; @@ -187,7 +187,7 @@ void ImportSDFSetup::initPhysics() m_dynamicsWorld->setGravity(gravity); - BulletURDFImporter u2b(m_guiHelper, 0); + BulletURDFImporter u2b(m_guiHelper, 0,1); bool loadOk = u2b.loadSDF(m_fileName); diff --git a/examples/Importers/ImportSTLDemo/ImportSTLSetup.cpp b/examples/Importers/ImportSTLDemo/ImportSTLSetup.cpp index c05138ef1..3edcd30bd 100644 --- a/examples/Importers/ImportSTLDemo/ImportSTLSetup.cpp +++ b/examples/Importers/ImportSTLDemo/ImportSTLSetup.cpp @@ -25,10 +25,10 @@ public: virtual void resetCamera() { float dist = 3.5; - float pitch = -136; - float yaw = 28; + float pitch = -28; + float yaw = -136; float targetPos[3]={0.47,0,-0.64}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } }; diff --git a/examples/Importers/ImportURDFDemo/BulletUrdfImporter.cpp b/examples/Importers/ImportURDFDemo/BulletUrdfImporter.cpp index 2a43dc739..6f6d1f752 100644 --- a/examples/Importers/ImportURDFDemo/BulletUrdfImporter.cpp +++ b/examples/Importers/ImportURDFDemo/BulletUrdfImporter.cpp @@ -42,6 +42,7 @@ struct MyTexture unsigned char* textureData; }; + ATTRIBUTE_ALIGNED16(struct) BulletURDFInternalData { BT_DECLARE_ALIGNED_ALLOCATOR(); @@ -51,7 +52,7 @@ ATTRIBUTE_ALIGNED16(struct) BulletURDFInternalData std::string m_sourceFile; char m_pathPrefix[1024]; int m_bodyId; - btHashMap m_linkColors; + btHashMap m_linkColors; btAlignedObjectArray m_allocatedCollisionShapes; LinkVisualShapesConverter* m_customVisualShapesConverter; @@ -68,6 +69,12 @@ ATTRIBUTE_ALIGNED16(struct) BulletURDFInternalData { m_pathPrefix[0] = 0; } + + void setGlobalScaling(btScalar scaling) + { + m_urdfParser.setGlobalScaling(scaling); + } + }; void BulletURDFImporter::printTree() @@ -75,10 +82,10 @@ void BulletURDFImporter::printTree() // btAssert(0); } -BulletURDFImporter::BulletURDFImporter(struct GUIHelperInterface* helper, LinkVisualShapesConverter* customConverter) +BulletURDFImporter::BulletURDFImporter(struct GUIHelperInterface* helper, LinkVisualShapesConverter* customConverter, double globalScaling) { m_data = new BulletURDFInternalData; - + m_data->setGlobalScaling(globalScaling); m_data->m_guiHelper = helper; m_data->m_customVisualShapesConverter = customConverter; @@ -293,7 +300,6 @@ std::string BulletURDFImporter::getJointName(int linkIndex) const void BulletURDFImporter::getMassAndInertia(int linkIndex, btScalar& mass,btVector3& localInertiaDiagonal, btTransform& inertialFrame) const { - //todo(erwincoumans) //the link->m_inertia is NOT necessarily aligned with the inertial frame //so an additional transform might need to be computed UrdfLink* const* linkPtr = m_data->m_urdfParser.getModel().m_links.getAtIndex(linkIndex); @@ -413,6 +419,13 @@ bool BulletURDFImporter::getJointInfo(int urdfLinkIndex, btTransform& parent2joi } +void BulletURDFImporter::setRootTransformInWorld(const btTransform& rootTransformInWorld) +{ + m_data->m_urdfParser.getModel().m_rootTransformInWorld = rootTransformInWorld ; +} + + + bool BulletURDFImporter::getRootTransformInWorld(btTransform& rootTransformInWorld) const { rootTransformInWorld = m_data->m_urdfParser.getModel().m_rootTransformInWorld; @@ -567,6 +580,15 @@ btCollisionShape* convertURDFToCollisionShape(const UrdfCollision* collision, co switch (collision->m_geometry.m_type) { + case URDF_GEOM_PLANE: + { + btVector3 planeNormal = collision->m_geometry.m_planeNormal; + btScalar planeConstant = 0;//not available? + btStaticPlaneShape* plane = new btStaticPlaneShape(planeNormal,planeConstant); + shape = plane; + shape ->setMargin(gUrdfDefaultCollisionMargin); + break; + } case URDF_GEOM_CAPSULE: { btScalar radius = collision->m_geometry.m_capsuleRadius; @@ -788,7 +810,7 @@ upAxisMat.setIdentity(); default: b3Warning("Error: unknown collision geometry type %i\n", collision->m_geometry.m_type); - // for example, URDF_GEOM_PLANE + } return shape; } @@ -1094,7 +1116,10 @@ int BulletURDFImporter::convertLinkVisualShapes(int linkIndex, const char* pathP { UrdfMaterial *const mat = *matPtr; //printf("UrdfMaterial %s, rgba = %f,%f,%f,%f\n",mat->m_name.c_str(),mat->m_rgbaColor[0],mat->m_rgbaColor[1],mat->m_rgbaColor[2],mat->m_rgbaColor[3]); - m_data->m_linkColors.insert(linkIndex,mat->m_rgbaColor); + UrdfMaterialColor matCol; + matCol.m_rgbaColor = mat->m_matColor.m_rgbaColor; + matCol.m_specularColor = mat->m_matColor.m_specularColor; + m_data->m_linkColors.insert(linkIndex,matCol); } convertURDFToVisualShapeInternal(&vis, pathPrefix, localInertiaFrame.inverse()*childTrans, vertices, indices,textures); @@ -1132,10 +1157,21 @@ int BulletURDFImporter::convertLinkVisualShapes(int linkIndex, const char* pathP bool BulletURDFImporter::getLinkColor(int linkIndex, btVector4& colorRGBA) const { - const btVector4* rgbaPtr = m_data->m_linkColors[linkIndex]; - if (rgbaPtr) + const UrdfMaterialColor* matColPtr = m_data->m_linkColors[linkIndex]; + if (matColPtr) { - colorRGBA = *rgbaPtr; + colorRGBA = matColPtr->m_rgbaColor; + return true; + } + return false; +} + +bool BulletURDFImporter::getLinkColor2(int linkIndex, UrdfMaterialColor& matCol) const +{ + UrdfMaterialColor* matColPtr = m_data->m_linkColors[linkIndex]; + if (matColPtr) + { + matCol = *matColPtr; return true; } return false; @@ -1213,6 +1249,14 @@ btCollisionShape* BulletURDFImporter::getAllocatedCollisionShape(int index) const UrdfCollision& col = link->m_collisionArray[v]; btCollisionShape* childShape = convertURDFToCollisionShape(&col ,pathPrefix); m_data->m_allocatedCollisionShapes.push_back(childShape); + if (childShape->getShapeType()==COMPOUND_SHAPE_PROXYTYPE) + { + btCompoundShape* compound = (btCompoundShape*) childShape; + for (int i=0;igetNumChildShapes();i++) + { + m_data->m_allocatedCollisionShapes.push_back(compound->getChildShape(i)); + } + } if (childShape) { diff --git a/examples/Importers/ImportURDFDemo/BulletUrdfImporter.h b/examples/Importers/ImportURDFDemo/BulletUrdfImporter.h index 60ce11847..c8fbf6204 100644 --- a/examples/Importers/ImportURDFDemo/BulletUrdfImporter.h +++ b/examples/Importers/ImportURDFDemo/BulletUrdfImporter.h @@ -15,18 +15,19 @@ class BulletURDFImporter : public URDFImporterInterface public: - BulletURDFImporter(struct GUIHelperInterface* guiHelper, LinkVisualShapesConverter* customConverter); + BulletURDFImporter(struct GUIHelperInterface* helper, LinkVisualShapesConverter* customConverter, double globalScaling=1); virtual ~BulletURDFImporter(); + virtual bool loadURDF(const char* fileName, bool forceFixedBase = false); - //warning: some quick test to load SDF: we 'activate' a model, so we can re-use URDF code path - virtual bool loadSDF(const char* fileName, bool forceFixedBase = false); - virtual int getNumModels() const; - virtual void activateModel(int modelIndex); - virtual void setBodyUniqueId(int bodyId); - virtual int getBodyUniqueId() const; + //warning: some quick test to load SDF: we 'activate' a model, so we can re-use URDF code path + virtual bool loadSDF(const char* fileName, bool forceFixedBase = false); + virtual int getNumModels() const; + virtual void activateModel(int modelIndex); + virtual void setBodyUniqueId(int bodyId); + virtual int getBodyUniqueId() const; const char* getPathPrefix(); void printTree(); //for debugging @@ -41,6 +42,8 @@ public: virtual bool getLinkColor(int linkIndex, btVector4& colorRGBA) const; + virtual bool getLinkColor2(int linkIndex, UrdfMaterialColor& matCol) const; + virtual bool getLinkContactInfo(int urdflinkIndex, URDFLinkContactInfo& contactInfo ) const; virtual bool getLinkAudioSource(int linkIndex, SDFAudioSource& audioSource) const; @@ -53,6 +56,7 @@ public: virtual bool getJointInfo2(int urdfLinkIndex, btTransform& parent2joint, btTransform& linkTransformInWorld, btVector3& jointAxisInJointSpace, int& jointType, btScalar& jointLowerLimit, btScalar& jointUpperLimit, btScalar& jointDamping, btScalar& jointFriction, btScalar& jointMaxForce, btScalar& jointMaxVelocity) const; virtual bool getRootTransformInWorld(btTransform& rootTransformInWorld) const; + virtual void setRootTransformInWorld(const btTransform& rootTransformInWorld); virtual int convertLinkVisualShapes(int linkIndex, const char* pathPrefix, const btTransform& inertialFrame) const; diff --git a/examples/Importers/ImportURDFDemo/ImportURDFSetup.cpp b/examples/Importers/ImportURDFDemo/ImportURDFSetup.cpp index a3d8a608f..7e9afeba1 100644 --- a/examples/Importers/ImportURDFDemo/ImportURDFSetup.cpp +++ b/examples/Importers/ImportURDFDemo/ImportURDFSetup.cpp @@ -50,10 +50,10 @@ public: virtual void resetCamera() { float dist = 3.5; - float pitch = -136; - float yaw = 28; + float pitch = -28; + float yaw = -136; float targetPos[3]={0.47,0,-0.64}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } }; @@ -194,7 +194,7 @@ void ImportUrdfSetup::initPhysics() } - BulletURDFImporter u2b(m_guiHelper, 0); + BulletURDFImporter u2b(m_guiHelper, 0,1); bool loadOk = u2b.loadURDF(m_fileName); diff --git a/examples/Importers/ImportURDFDemo/MultiBodyCreationInterface.h b/examples/Importers/ImportURDFDemo/MultiBodyCreationInterface.h index 696546d90..e40e71eef 100644 --- a/examples/Importers/ImportURDFDemo/MultiBodyCreationInterface.h +++ b/examples/Importers/ImportURDFDemo/MultiBodyCreationInterface.h @@ -11,9 +11,17 @@ public: virtual void createRigidBodyGraphicsInstance(int linkIndex, class btRigidBody* body, const btVector3& colorRgba, int graphicsIndex) = 0; - + virtual void createRigidBodyGraphicsInstance2(int linkIndex, class btRigidBody* body, const btVector3& colorRgba, const btVector3& specularColor, int graphicsIndex) + { + createRigidBodyGraphicsInstance(linkIndex,body,colorRgba,graphicsIndex); + } + ///optionally create some graphical representation from a collision object, usually for visual debugging purposes. virtual void createCollisionObjectGraphicsInstance(int linkIndex, class btCollisionObject* col, const btVector3& colorRgba) = 0; + virtual void createCollisionObjectGraphicsInstance2(int linkIndex, class btCollisionObject* col, const btVector4& colorRgba, const btVector3& specularColor) + { + createCollisionObjectGraphicsInstance(linkIndex,col,colorRgba); + } virtual class btMultiBody* allocateMultiBody(int urdfLinkIndex, int totalNumJoints,btScalar mass, const btVector3& localInertiaDiagonal, bool isFixedBase, bool canSleep) =0; diff --git a/examples/Importers/ImportURDFDemo/MyMultiBodyCreator.cpp b/examples/Importers/ImportURDFDemo/MyMultiBodyCreator.cpp index 3d34e53f2..e120e9a5f 100644 --- a/examples/Importers/ImportURDFDemo/MyMultiBodyCreator.cpp +++ b/examples/Importers/ImportURDFDemo/MyMultiBodyCreator.cpp @@ -194,15 +194,37 @@ void MyMultiBodyCreator::addLinkMapping(int urdfLinkIndex, int mbLinkIndex) void MyMultiBodyCreator::createRigidBodyGraphicsInstance(int linkIndex, btRigidBody* body, const btVector3& colorRgba, int graphicsIndex) { - m_guiHelper->createRigidBodyGraphicsObject(body, colorRgba); } + +void MyMultiBodyCreator::createRigidBodyGraphicsInstance2(int linkIndex, class btRigidBody* body, const btVector3& colorRgba, const btVector3& specularColor, int graphicsIndex) +{ + m_guiHelper->createRigidBodyGraphicsObject(body, colorRgba); + int graphicsInstanceId = body->getUserIndex(); + btVector3DoubleData speculard; + specularColor.serializeDouble(speculard); + m_guiHelper->changeSpecularColor(graphicsInstanceId,speculard.m_floats); +} + + + void MyMultiBodyCreator::createCollisionObjectGraphicsInstance(int linkIndex, class btCollisionObject* colObj, const btVector3& colorRgba) { m_guiHelper->createCollisionObjectGraphicsObject(colObj,colorRgba); } +void MyMultiBodyCreator::createCollisionObjectGraphicsInstance2(int linkIndex, class btCollisionObject* col, const btVector4& colorRgba, const btVector3& specularColor) +{ + createCollisionObjectGraphicsInstance(linkIndex,col,colorRgba); + int graphicsInstanceId = col->getUserIndex(); + btVector3DoubleData speculard; + specularColor.serializeDouble(speculard); + m_guiHelper->changeSpecularColor(graphicsInstanceId,speculard.m_floats); + +} + + btMultiBody* MyMultiBodyCreator::getBulletMultiBody() { return m_bulletMultiBody; diff --git a/examples/Importers/ImportURDFDemo/MyMultiBodyCreator.h b/examples/Importers/ImportURDFDemo/MyMultiBodyCreator.h index 93ffdfa5c..3cb77520a 100644 --- a/examples/Importers/ImportURDFDemo/MyMultiBodyCreator.h +++ b/examples/Importers/ImportURDFDemo/MyMultiBodyCreator.h @@ -41,10 +41,12 @@ public: virtual ~MyMultiBodyCreator() {} virtual void createRigidBodyGraphicsInstance(int linkIndex, class btRigidBody* body, const btVector3& colorRgba, int graphicsIndex) ; + virtual void createRigidBodyGraphicsInstance2(int linkIndex, class btRigidBody* body, const btVector3& colorRgba, const btVector3& specularColor, int graphicsIndex) ; ///optionally create some graphical representation from a collision object, usually for visual debugging purposes. virtual void createCollisionObjectGraphicsInstance(int linkIndex, class btCollisionObject* col, const btVector3& colorRgba); - + virtual void createCollisionObjectGraphicsInstance2(int linkIndex, class btCollisionObject* col, const btVector4& colorRgba, const btVector3& specularColor); + virtual class btMultiBody* allocateMultiBody(int urdfLinkIndex, int totalNumJoints,btScalar mass, const btVector3& localInertiaDiagonal, bool isFixedBase, bool canSleep); virtual class btRigidBody* allocateRigidBody(int urdfLinkIndex, btScalar mass, const btVector3& localInertiaDiagonal, const btTransform& initialWorldTrans, class btCollisionShape* colShape); diff --git a/examples/Importers/ImportURDFDemo/URDF2Bullet.cpp b/examples/Importers/ImportURDFDemo/URDF2Bullet.cpp index d7ed716b0..ac96befea 100644 --- a/examples/Importers/ImportURDFDemo/URDF2Bullet.cpp +++ b/examples/Importers/ImportURDFDemo/URDF2Bullet.cpp @@ -173,6 +173,7 @@ void processContactParameters(const URDFLinkContactInfo& contactInfo, btCollisio } +btScalar tmpUrdfScaling=2; void ConvertURDF2BulletInternal( @@ -272,8 +273,15 @@ void ConvertURDF2BulletInternal( { - btVector4 color = selectColor2(); - u2b.getLinkColor(urdfLinkIndex,color); + UrdfMaterialColor matColor; + btVector4 color2 = selectColor2(); + btVector3 specular(0.5,0.5,0.5); + if (u2b.getLinkColor2(urdfLinkIndex,matColor)) + { + color2 = matColor.m_rgbaColor; + specular = matColor.m_specularColor; + } + /* if (visual->material.get()) { @@ -315,7 +323,7 @@ void ConvertURDF2BulletInternal( u2b.getLinkContactInfo(urdfLinkIndex, contactInfo); processContactParameters(contactInfo, body); - creation.createRigidBodyGraphicsInstance(urdfLinkIndex, body, color, graphicsIndex); + creation.createRigidBodyGraphicsInstance2(urdfLinkIndex, body, color2,specular, graphicsIndex); cache.registerRigidBody(urdfLinkIndex, body, inertialFrameInWorldSpace, mass, localInertiaDiagonal, compoundShape, localInertialFrame); @@ -362,8 +370,14 @@ void ConvertURDF2BulletInternal( switch (jointType) { + case URDFFloatingJoint: + case URDFPlanarJoint: case URDFFixedJoint: { + if ((jointType==URDFFloatingJoint)||(jointType==URDFPlanarJoint)) + { + printf("Warning: joint unsupported, creating a fixed joint instead."); + } if (createMultiBody) { //todo: adjust the center of mass transform and pivot axis properly @@ -484,9 +498,16 @@ void ConvertURDF2BulletInternal( } world1->addCollisionObject(col,collisionFilterGroup,collisionFilterMask); - btVector4 color = selectColor2();//(0.0,0.0,0.5); - u2b.getLinkColor(urdfLinkIndex,color); - creation.createCollisionObjectGraphicsInstance(urdfLinkIndex,col,color); + btVector4 color2 = selectColor2();//(0.0,0.0,0.5); + btVector3 specularColor(1,1,1); + UrdfMaterialColor matCol; + if (u2b.getLinkColor2(urdfLinkIndex,matCol)) + { + color2 = matCol.m_rgbaColor; + specularColor = matCol.m_specularColor; + } + + creation.createCollisionObjectGraphicsInstance2(urdfLinkIndex,col,color2,specularColor); u2b.convertLinkVisualShapes2(mbLinkIndex, urdfLinkIndex, pathPrefix, localInertialFrame,col, u2b.getBodyUniqueId()); diff --git a/examples/Importers/ImportURDFDemo/URDFImporterInterface.h b/examples/Importers/ImportURDFDemo/URDFImporterInterface.h index 00071c867..d6853e3b6 100644 --- a/examples/Importers/ImportURDFDemo/URDFImporterInterface.h +++ b/examples/Importers/ImportURDFDemo/URDFImporterInterface.h @@ -36,6 +36,9 @@ public: /// optional method to provide the link color. return true if the color is available and copied into colorRGBA, return false otherwise virtual bool getLinkColor(int linkIndex, btVector4& colorRGBA) const { return false;} + virtual bool getLinkColor2(int linkIndex, struct UrdfMaterialColor& matCol) const { return false;} + + virtual int getCollisionGroupAndMask(int linkIndex, int& colGroup, int& colMask) const { return 0;} ///this API will likely change, don't override it! virtual bool getLinkContactInfo(int linkIndex, URDFLinkContactInfo& contactInfo ) const { return false;} @@ -61,7 +64,8 @@ public: }; virtual bool getRootTransformInWorld(btTransform& rootTransformInWorld) const =0; - + virtual void setRootTransformInWorld(const btTransform& rootTransformInWorld){} + ///quick hack: need to rethink the API/dependencies of this virtual int convertLinkVisualShapes(int linkIndex, const char* pathPrefix, const btTransform& inertialFrame) const { return -1;} diff --git a/examples/Importers/ImportURDFDemo/URDFJointTypes.h b/examples/Importers/ImportURDFDemo/URDFJointTypes.h index 3a11d981e..2edad8617 100644 --- a/examples/Importers/ImportURDFDemo/URDFJointTypes.h +++ b/examples/Importers/ImportURDFDemo/URDFJointTypes.h @@ -63,4 +63,15 @@ enum UrdfCollisionFlags URDF_HAS_COLLISION_MASK=4, }; +struct UrdfMaterialColor +{ + btVector4 m_rgbaColor; + btVector3 m_specularColor; + UrdfMaterialColor() + :m_rgbaColor(0.8, 0.8, 0.8, 1), + m_specularColor(0.4,0.4,0.4) + { + } +}; + #endif //URDF_JOINT_TYPES_H diff --git a/examples/Importers/ImportURDFDemo/UrdfParser.cpp b/examples/Importers/ImportURDFDemo/UrdfParser.cpp index 74ff541f6..c4a370c0d 100644 --- a/examples/Importers/ImportURDFDemo/UrdfParser.cpp +++ b/examples/Importers/ImportURDFDemo/UrdfParser.cpp @@ -6,7 +6,8 @@ UrdfParser::UrdfParser() :m_parseSDF(false), -m_activeSdfModel(-1) +m_activeSdfModel(-1), +m_urdfScaling(1) { m_urdf2Model.m_sourceFile = "IN_MEMORY_STRING"; // if loadUrdf() called later, source file name will be replaced with real } @@ -100,38 +101,56 @@ bool UrdfParser::parseMaterial(UrdfMaterial& material, TiXmlElement *config, Err } // color - TiXmlElement *c = config->FirstChildElement("color"); - if (c) { - if (c->Attribute("rgba")) - { - if (!parseVector4(material.m_rgbaColor,c->Attribute("rgba"))) + TiXmlElement *c = config->FirstChildElement("color"); + if (c) + { + if (c->Attribute("rgba")) { - std::string msg = material.m_name+" has no rgba"; - logger->reportWarning(msg.c_str()); + if (!parseVector4(material.m_matColor.m_rgbaColor,c->Attribute("rgba"))) + { + std::string msg = material.m_name+" has no rgba"; + logger->reportWarning(msg.c_str()); + } } - } + } + } + + { + // specular (non-standard) + TiXmlElement *s = config->FirstChildElement("specular"); + if (s) + { + if (s->Attribute("rgb")) + { + if (!parseVector3(material.m_matColor.m_specularColor,s->Attribute("rgb"),logger)) + { + } + } + } } return true; } -bool parseTransform(btTransform& tr, TiXmlElement* xml, ErrorLogger* logger, bool parseSDF = false) +bool UrdfParser::parseTransform(btTransform& tr, TiXmlElement* xml, ErrorLogger* logger, bool parseSDF ) { tr.setIdentity(); + btVector3 vec(0,0,0); if (parseSDF) { - parseVector3(tr.getOrigin(),std::string(xml->GetText()),logger); + parseVector3(vec,std::string(xml->GetText()),logger); } else { const char* xyz_str = xml->Attribute("xyz"); if (xyz_str) { - parseVector3(tr.getOrigin(),std::string(xyz_str),logger); + parseVector3(vec,std::string(xyz_str),logger); } } + tr.setOrigin(vec*m_urdfScaling); if (parseSDF) { @@ -307,8 +326,10 @@ bool UrdfParser::parseInertia(UrdfInertia& inertia, TiXmlElement* config, ErrorL bool UrdfParser::parseGeometry(UrdfGeometry& geom, TiXmlElement* g, ErrorLogger* logger) { - btAssert(g); - +// btAssert(g); + if (g==0) + return false; + TiXmlElement *shape = g->FirstChildElement(); if (!shape) { @@ -326,7 +347,7 @@ bool UrdfParser::parseGeometry(UrdfGeometry& geom, TiXmlElement* g, ErrorLogger* return false; } else { - geom.m_sphereRadius = urdfLexicalCast(shape->Attribute("radius")); + geom.m_sphereRadius = m_urdfScaling * urdfLexicalCast(shape->Attribute("radius")); } } else if (type_name == "box") @@ -341,6 +362,7 @@ bool UrdfParser::parseGeometry(UrdfGeometry& geom, TiXmlElement* g, ErrorLogger* return false; } parseVector3(geom.m_boxSize,size->GetText(),logger); + geom.m_boxSize *= m_urdfScaling; } else { @@ -351,6 +373,7 @@ bool UrdfParser::parseGeometry(UrdfGeometry& geom, TiXmlElement* g, ErrorLogger* } else { parseVector3(geom.m_boxSize,shape->Attribute("size"),logger); + geom.m_boxSize *= m_urdfScaling; } } } @@ -364,8 +387,8 @@ bool UrdfParser::parseGeometry(UrdfGeometry& geom, TiXmlElement* g, ErrorLogger* return false; } geom.m_hasFromTo = false; - geom.m_capsuleRadius = urdfLexicalCast(shape->Attribute("radius")); - geom.m_capsuleHeight = urdfLexicalCast(shape->Attribute("length")); + geom.m_capsuleRadius = m_urdfScaling * urdfLexicalCast(shape->Attribute("radius")); + geom.m_capsuleHeight = m_urdfScaling * urdfLexicalCast(shape->Attribute("length")); } else if (type_name == "capsule") @@ -378,8 +401,8 @@ bool UrdfParser::parseGeometry(UrdfGeometry& geom, TiXmlElement* g, ErrorLogger* return false; } geom.m_hasFromTo = false; - geom.m_capsuleRadius = urdfLexicalCast(shape->Attribute("radius")); - geom.m_capsuleHeight = urdfLexicalCast(shape->Attribute("length")); + geom.m_capsuleRadius = m_urdfScaling * urdfLexicalCast(shape->Attribute("radius")); + geom.m_capsuleHeight = m_urdfScaling * urdfLexicalCast(shape->Attribute("length")); } else if (type_name == "mesh") { @@ -420,6 +443,8 @@ bool UrdfParser::parseGeometry(UrdfGeometry& geom, TiXmlElement* g, ErrorLogger* } } + geom.m_meshScale *= m_urdfScaling; + if (fn.empty()) { logger->reportError("Mesh filename is empty"); @@ -551,17 +576,39 @@ bool UrdfParser::parseVisual(UrdfModel& model, UrdfVisual& visual, TiXmlElement* matPtr->m_name = "mat"; if (name_char) matPtr->m_name = name_char; + + UrdfMaterial** oldMatPtrPtr = model.m_materials[matPtr->m_name.c_str()]; + if (oldMatPtrPtr) + { + UrdfMaterial* oldMatPtr = *oldMatPtrPtr; + model.m_materials.remove(matPtr->m_name.c_str()); + if (oldMatPtr) + delete oldMatPtr; + } model.m_materials.insert(matPtr->m_name.c_str(),matPtr); - TiXmlElement *diffuse = mat->FirstChildElement("diffuse"); - if (diffuse) { - std::string diffuseText = diffuse->GetText(); - btVector4 rgba(1,0,0,1); - parseVector4(rgba,diffuseText); - matPtr->m_rgbaColor = rgba; + { + TiXmlElement *diffuse = mat->FirstChildElement("diffuse"); + if (diffuse) { + std::string diffuseText = diffuse->GetText(); + btVector4 rgba(1,0,0,1); + parseVector4(rgba,diffuseText); + matPtr->m_matColor.m_rgbaColor = rgba; - visual.m_materialName = matPtr->m_name; - visual.m_geometry.m_hasLocalMaterial = true; - } + visual.m_materialName = matPtr->m_name; + visual.m_geometry.m_hasLocalMaterial = true; + } + } + { + TiXmlElement *specular = mat->FirstChildElement("specular"); + if (specular) { + std::string specularText = specular->GetText(); + btVector3 rgba(1,1,1); + parseVector3(rgba,specularText,logger); + matPtr->m_matColor.m_specularColor = rgba; + visual.m_materialName = matPtr->m_name; + visual.m_geometry.m_hasLocalMaterial = true; + } + } } else { @@ -577,7 +624,8 @@ bool UrdfParser::parseVisual(UrdfModel& model, UrdfVisual& visual, TiXmlElement* TiXmlElement *t = mat->FirstChildElement("texture"); TiXmlElement *c = mat->FirstChildElement("color"); - if (t||c) + TiXmlElement *s = mat->FirstChildElement("specular"); + if (t||c||s) { if (parseMaterial(visual.m_geometry.m_localMaterial, mat,logger)) { @@ -990,6 +1038,11 @@ bool UrdfParser::parseJointLimits(UrdfJoint& joint, TiXmlElement* config, ErrorL joint.m_upperLimit = urdfLexicalCast(upper_str); } + if (joint.m_type == URDFPrismaticJoint) + { + joint.m_lowerLimit *= m_urdfScaling; + joint.m_upperLimit *= m_urdfScaling; + } // Get joint effort limit const char* effort_str = config->Attribute("effort"); diff --git a/examples/Importers/ImportURDFDemo/UrdfParser.h b/examples/Importers/ImportURDFDemo/UrdfParser.h index de96885e5..7a87ffcc1 100644 --- a/examples/Importers/ImportURDFDemo/UrdfParser.h +++ b/examples/Importers/ImportURDFDemo/UrdfParser.h @@ -17,13 +17,15 @@ struct ErrorLogger virtual void printMessage(const char* msg)=0; }; + + struct UrdfMaterial { std::string m_name; std::string m_textureFilename; - btVector4 m_rgbaColor; // [0]==r [1]==g [2]==b [3]==a - UrdfMaterial(): - m_rgbaColor(0.8, 0.8, 0.8, 1) + UrdfMaterialColor m_matColor; + + UrdfMaterial() { } }; @@ -154,7 +156,8 @@ struct UrdfLink UrdfLink() :m_parentLink(0), - m_parentJoint(0) + m_parentJoint(0), + m_linkIndex(-2) { } @@ -248,7 +251,8 @@ protected: bool m_parseSDF; int m_activeSdfModel; - + btScalar m_urdfScaling; + bool parseTransform(btTransform& tr, class TiXmlElement* xml, ErrorLogger* logger, bool parseSDF = false); bool parseInertia(UrdfInertia& inertia, class TiXmlElement* config, ErrorLogger* logger); bool parseGeometry(UrdfGeometry& geom, class TiXmlElement* g, ErrorLogger* logger); bool parseVisual(UrdfModel& model, UrdfVisual& visual, class TiXmlElement* config, ErrorLogger* logger); @@ -274,18 +278,22 @@ public: { return m_parseSDF; } + void setGlobalScaling(btScalar scaling) + { + m_urdfScaling = scaling; + } + bool loadUrdf(const char* urdfText, ErrorLogger* logger, bool forceFixedBase); bool loadSDF(const char* sdfText, ErrorLogger* logger); int getNumModels() const { //user should have loaded an SDF when calling this method - btAssert(m_parseSDF); if (m_parseSDF) { return m_sdfModels.size(); } - return 0; + return 1; } void activateModel(int modelIndex); diff --git a/examples/InverseDynamics/InverseDynamicsExample.cpp b/examples/InverseDynamics/InverseDynamicsExample.cpp index f6e3af618..adc939cc4 100644 --- a/examples/InverseDynamics/InverseDynamicsExample.cpp +++ b/examples/InverseDynamics/InverseDynamicsExample.cpp @@ -87,10 +87,10 @@ public: virtual void resetCamera() { float dist = 1.5; - float pitch = -80; - float yaw = 10; + float pitch = -10; + float yaw = -80; float targetPos[3]={0,0,0}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } }; @@ -156,7 +156,7 @@ void InverseDynamicsExample::initPhysics() - BulletURDFImporter u2b(m_guiHelper,0); + BulletURDFImporter u2b(m_guiHelper,0,1); bool loadOk = u2b.loadURDF("kuka_iiwa/model.urdf");// lwr / kuka.urdf"); if (loadOk) { diff --git a/examples/InverseKinematics/InverseKinematicsExample.cpp b/examples/InverseKinematics/InverseKinematicsExample.cpp index 496013188..b224b8b51 100644 --- a/examples/InverseKinematics/InverseKinematicsExample.cpp +++ b/examples/InverseKinematics/InverseKinematicsExample.cpp @@ -198,7 +198,6 @@ public: } virtual ~InverseKinematicsExample() { - m_app->m_renderer->enableBlend(false); } @@ -313,8 +312,8 @@ public: virtual void resetCamera() { float dist = 1.3; - float pitch = 120; - float yaw = 13; + float pitch = -13; + float yaw = 120; float targetPos[3]={-0.35,0.14,0.25}; if (m_app->m_renderer && m_app->m_renderer->getActiveCamera()) { diff --git a/examples/MultiBody/InvertedPendulumPDControl.cpp b/examples/MultiBody/InvertedPendulumPDControl.cpp index de9fc122f..d380929c4 100644 --- a/examples/MultiBody/InvertedPendulumPDControl.cpp +++ b/examples/MultiBody/InvertedPendulumPDControl.cpp @@ -30,10 +30,10 @@ public: virtual void resetCamera() { float dist = 5; - float pitch = 270; - float yaw = 21; + float pitch = -21; + float yaw = 270; float targetPos[3]={-1.34,1.4,3.44}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } @@ -244,7 +244,7 @@ btMultiBody* createInvertedPendulumMultiBody(btMultiBodyDynamicsWorld* world, GU world->addCollisionObject(col,collisionFilterGroup,collisionFilterMask);//, 2,1+2); - btVector3 color(0.0,0.0,0.5); + btVector4 color(0.0,0.0,0.5,1); guiHelper->createCollisionObjectGraphicsObject(col,color); // col->setFriction(friction); diff --git a/examples/MultiBody/MultiBodyConstraintFeedback.cpp b/examples/MultiBody/MultiBodyConstraintFeedback.cpp index 511aad6ec..c08d98f72 100644 --- a/examples/MultiBody/MultiBodyConstraintFeedback.cpp +++ b/examples/MultiBody/MultiBodyConstraintFeedback.cpp @@ -26,10 +26,10 @@ public: virtual void resetCamera() { float dist = 5; - float pitch = 270; - float yaw = 21; + float pitch = -21; + float yaw = 270; float targetPos[3]={-1.34,3.4,-0.44}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } diff --git a/examples/MultiBody/MultiBodySoftContact.cpp b/examples/MultiBody/MultiBodySoftContact.cpp index 7d5a17bc9..0ffcaf1f5 100644 --- a/examples/MultiBody/MultiBodySoftContact.cpp +++ b/examples/MultiBody/MultiBodySoftContact.cpp @@ -27,10 +27,10 @@ public: virtual void resetCamera() { float dist = 5; - float pitch = 270; - float yaw = 21; + float pitch = -21; + float yaw = 270; float targetPos[3]={0,0,0}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } diff --git a/examples/MultiBody/MultiDofDemo.cpp b/examples/MultiBody/MultiDofDemo.cpp index 4a6510e7d..86d893f73 100644 --- a/examples/MultiBody/MultiDofDemo.cpp +++ b/examples/MultiBody/MultiDofDemo.cpp @@ -34,10 +34,10 @@ public: virtual void resetCamera() { float dist = 1; - float pitch = 50; - float yaw = 35; + float pitch = -35; + float yaw = 50; float targetPos[3]={-3,2.8,-2.5}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } @@ -446,4 +446,4 @@ void MultiDofDemo::addBoxes_testMultiDof() class CommonExampleInterface* MultiDofCreateFunc(struct CommonExampleOptions& options) { return new MultiDofDemo(options.m_guiHelper); -} \ No newline at end of file +} diff --git a/examples/MultiBody/Pendulum.cpp b/examples/MultiBody/Pendulum.cpp index ecfe989ba..2a52c936f 100644 --- a/examples/MultiBody/Pendulum.cpp +++ b/examples/MultiBody/Pendulum.cpp @@ -40,10 +40,10 @@ public: virtual void resetCamera() { float dist = 5; - float pitch = 270; - float yaw = 21; + float pitch = -21; + float yaw = 270; float targetPos[3]={0,0,0}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } diff --git a/examples/MultiBody/TestJointTorqueSetup.cpp b/examples/MultiBody/TestJointTorqueSetup.cpp index 61142eaa7..25d0456d2 100644 --- a/examples/MultiBody/TestJointTorqueSetup.cpp +++ b/examples/MultiBody/TestJointTorqueSetup.cpp @@ -27,10 +27,10 @@ public: virtual void resetCamera() { float dist = 5; - float pitch = 270; - float yaw = 21; + float pitch = -21; + float yaw = 270; float targetPos[3]={-1.34,3.4,-0.44}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } diff --git a/examples/MultiThreadedDemo/CommonRigidBodyMTBase.cpp b/examples/MultiThreadedDemo/CommonRigidBodyMTBase.cpp index 17c5f802d..1cf21db1e 100644 --- a/examples/MultiThreadedDemo/CommonRigidBodyMTBase.cpp +++ b/examples/MultiThreadedDemo/CommonRigidBodyMTBase.cpp @@ -23,10 +23,10 @@ class btCollisionShape; #include "CommonRigidBodyMTBase.h" #include "../CommonInterfaces/CommonParameterInterface.h" -#include "ParallelFor.h" #include "LinearMath/btAlignedObjectArray.h" #include "LinearMath/btPoolAllocator.h" #include "btBulletCollisionCommon.h" +#include "BulletCollision/CollisionDispatch/btCollisionDispatcherMt.h" #include "BulletDynamics/Dynamics/btSimulationIslandManagerMt.h" // for setSplitIslands() #include "BulletDynamics/Dynamics/btDiscreteDynamicsWorldMt.h" #include "BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.h" @@ -35,21 +35,8 @@ class btCollisionShape; #include "BulletDynamics/MLCPSolvers/btSolveProjectedGaussSeidel.h" #include "BulletDynamics/MLCPSolvers/btDantzigSolver.h" #include "BulletDynamics/MLCPSolvers/btLemkeSolver.h" +#include "../MultiThreading/btTaskScheduler.h" -TaskManager gTaskMgr; - -#define USE_PARALLEL_NARROWPHASE 1 // detect collisions in parallel -#define USE_PARALLEL_ISLAND_SOLVER 1 // solve simulation islands in parallel -#define USE_PARALLEL_CREATE_PREDICTIVE_CONTACTS 1 -#define USE_PARALLEL_INTEGRATE_TRANSFORMS 1 -#define USE_PARALLEL_PREDICT_UNCONSTRAINED_MOTION 1 - -#if defined (_MSC_VER) && _MSC_VER >= 1600 -// give us a compile error if any signatures of overriden methods is changed -#define BT_OVERRIDE override -#else -#define BT_OVERRIDE -#endif static int gNumIslands = 0; @@ -124,7 +111,7 @@ public: }; -Profiler gProfiler; +static Profiler gProfiler; class ProfileHelper { @@ -141,453 +128,84 @@ public: } }; -int gThreadsRunningCounter = 0; -btSpinMutex gThreadsRunningCounterMutex; - -void btPushThreadsAreRunning() +static void profileBeginCallback( btDynamicsWorld *world, btScalar timeStep ) { - gThreadsRunningCounterMutex.lock(); - gThreadsRunningCounter++; - gThreadsRunningCounterMutex.unlock(); + gProfiler.begin( Profiler::kRecordInternalTimeStep ); } -void btPopThreadsAreRunning() +static void profileEndCallback( btDynamicsWorld *world, btScalar timeStep ) { - gThreadsRunningCounterMutex.lock(); - gThreadsRunningCounter--; - gThreadsRunningCounterMutex.unlock(); -} - -bool btThreadsAreRunning() -{ - return gThreadsRunningCounter != 0; + gProfiler.end( Profiler::kRecordInternalTimeStep ); } -#if USE_PARALLEL_NARROWPHASE - -class MyCollisionDispatcher : public btCollisionDispatcher +/// +/// MyCollisionDispatcher -- subclassed for profiling purposes +/// +class MyCollisionDispatcher : public btCollisionDispatcherMt { - btSpinMutex m_manifoldPtrsMutex; - + typedef btCollisionDispatcherMt ParentClass; public: - MyCollisionDispatcher( btCollisionConfiguration* config ) : btCollisionDispatcher( config ) + MyCollisionDispatcher( btCollisionConfiguration* config, int grainSize ) : btCollisionDispatcherMt( config, grainSize ) { } - virtual ~MyCollisionDispatcher() - { - } - - btPersistentManifold* getNewManifold( const btCollisionObject* body0, const btCollisionObject* body1 ) BT_OVERRIDE - { - // added spin-locks - //optional relative contact breaking threshold, turned on by default (use setDispatcherFlags to switch off feature for improved performance) - - btScalar contactBreakingThreshold = ( m_dispatcherFlags & btCollisionDispatcher::CD_USE_RELATIVE_CONTACT_BREAKING_THRESHOLD ) ? - btMin( body0->getCollisionShape()->getContactBreakingThreshold( gContactBreakingThreshold ), body1->getCollisionShape()->getContactBreakingThreshold( gContactBreakingThreshold ) ) - : gContactBreakingThreshold; - - btScalar contactProcessingThreshold = btMin( body0->getContactProcessingThreshold(), body1->getContactProcessingThreshold() ); - - void* mem = m_persistentManifoldPoolAllocator->allocate( sizeof( btPersistentManifold ) ); - if (NULL == mem) - { - //we got a pool memory overflow, by default we fallback to dynamically allocate memory. If we require a contiguous contact pool then assert. - if ( ( m_dispatcherFlags&CD_DISABLE_CONTACTPOOL_DYNAMIC_ALLOCATION ) == 0 ) - { - mem = btAlignedAlloc( sizeof( btPersistentManifold ), 16 ); - } - else - { - btAssert( 0 ); - //make sure to increase the m_defaultMaxPersistentManifoldPoolSize in the btDefaultCollisionConstructionInfo/btDefaultCollisionConfiguration - return 0; - } - } - btPersistentManifold* manifold = new(mem) btPersistentManifold( body0, body1, 0, contactBreakingThreshold, contactProcessingThreshold ); - m_manifoldPtrsMutex.lock(); - manifold->m_index1a = m_manifoldsPtr.size(); - m_manifoldsPtr.push_back( manifold ); - m_manifoldPtrsMutex.unlock(); - - return manifold; - } - - void releaseManifold( btPersistentManifold* manifold ) BT_OVERRIDE - { - clearManifold( manifold ); - - m_manifoldPtrsMutex.lock(); - int findIndex = manifold->m_index1a; - btAssert( findIndex < m_manifoldsPtr.size() ); - m_manifoldsPtr.swap( findIndex, m_manifoldsPtr.size() - 1 ); - m_manifoldsPtr[ findIndex ]->m_index1a = findIndex; - m_manifoldsPtr.pop_back(); - m_manifoldPtrsMutex.unlock(); - - manifold->~btPersistentManifold(); - if ( m_persistentManifoldPoolAllocator->validPtr( manifold ) ) - { - m_persistentManifoldPoolAllocator->freeMemory( manifold ); - } - else - { - btAlignedFree( manifold ); - } - } - - struct Updater - { - btBroadphasePair* mPairArray; - btNearCallback mCallback; - btCollisionDispatcher* mDispatcher; - const btDispatcherInfo* mInfo; - - Updater() - { - mPairArray = NULL; - mCallback = NULL; - mDispatcher = NULL; - mInfo = NULL; - } - void forLoop( int iBegin, int iEnd ) const - { - for ( int i = iBegin; i < iEnd; ++i ) - { - btBroadphasePair* pair = &mPairArray[ i ]; - mCallback( *pair, *mDispatcher, *mInfo ); - } - } - }; - virtual void dispatchAllCollisionPairs( btOverlappingPairCache* pairCache, const btDispatcherInfo& info, btDispatcher* dispatcher ) BT_OVERRIDE { - ProfileHelper prof(Profiler::kRecordDispatchAllCollisionPairs); - int grainSize = 40; // iterations per task - int pairCount = pairCache->getNumOverlappingPairs(); - Updater updater; - updater.mCallback = getNearCallback(); - updater.mPairArray = pairCount > 0 ? pairCache->getOverlappingPairArrayPtr() : NULL; - updater.mDispatcher = this; - updater.mInfo = &info; - - btPushThreadsAreRunning(); - parallelFor( 0, pairCount, grainSize, updater ); - btPopThreadsAreRunning(); - - if (m_manifoldsPtr.size() < 1) - return; - - // reconstruct the manifolds array to ensure determinism - m_manifoldsPtr.resizeNoInitialize(0); - btBroadphasePair* pairs = pairCache->getOverlappingPairArrayPtr(); - for (int i = 0; i < pairCount; ++i) - { - btCollisionAlgorithm* algo = pairs[i].m_algorithm; - if (algo) algo->getAllContactManifolds(m_manifoldsPtr); - } - - // update the indices (used when releasing manifolds) - for (int i = 0; i < m_manifoldsPtr.size(); ++i) - m_manifoldsPtr[i]->m_index1a = i; + ProfileHelper prof( Profiler::kRecordDispatchAllCollisionPairs ); + ParentClass::dispatchAllCollisionPairs( pairCache, info, dispatcher ); } }; -#endif - -#if USE_PARALLEL_ISLAND_SOLVER /// -/// MyConstraintSolverPool - masquerades as a constraint solver, but really it is a threadsafe pool of them. -/// -/// Each solver in the pool is protected by a mutex. When solveGroup is called from a thread, -/// the pool looks for a solver that isn't being used by another thread, locks it, and dispatches the -/// call to the solver. -/// So long as there are at least as many solvers as there are hardware threads, it should never need to -/// spin wait. -/// -class MyConstraintSolverPool : public btConstraintSolver +/// myParallelIslandDispatch -- wrap default parallel dispatch for profiling and to get the number of simulation islands +// +void myParallelIslandDispatch( btAlignedObjectArray* islandsPtr, btSimulationIslandManagerMt::IslandCallback* callback ) { - const static size_t kCacheLineSize = 128; - struct ThreadSolver - { - btConstraintSolver* solver; - btSpinMutex mutex; - char _cachelinePadding[ kCacheLineSize - sizeof( btSpinMutex ) - sizeof( void* ) ]; // keep mutexes from sharing a cache line - }; - btAlignedObjectArray m_solvers; - btConstraintSolverType m_solverType; - - ThreadSolver* getAndLockThreadSolver() - { - while ( true ) - { - for ( int i = 0; i < m_solvers.size(); ++i ) - { - ThreadSolver& solver = m_solvers[ i ]; - if ( solver.mutex.tryLock() ) - { - return &solver; - } - } - } - return NULL; - } - void init( btConstraintSolver** solvers, int numSolvers ) - { - m_solverType = BT_SEQUENTIAL_IMPULSE_SOLVER; - m_solvers.resize( numSolvers ); - for ( int i = 0; i < numSolvers; ++i ) - { - m_solvers[ i ].solver = solvers[ i ]; - } - if ( numSolvers > 0 ) - { - m_solverType = solvers[ 0 ]->getSolverType(); - } - } -public: - // create the solvers for me - explicit MyConstraintSolverPool( int numSolvers ) - { - btAlignedObjectArray solvers; - solvers.reserve( numSolvers ); - for ( int i = 0; i < numSolvers; ++i ) - { - btConstraintSolver* solver = new btSequentialImpulseConstraintSolver(); - solvers.push_back( solver ); - } - init( &solvers[ 0 ], numSolvers ); - } - - // pass in fully constructed solvers (destructor will delete them) - MyConstraintSolverPool( btConstraintSolver** solvers, int numSolvers ) - { - init( solvers, numSolvers ); - } - virtual ~MyConstraintSolverPool() - { - // delete all solvers - for ( int i = 0; i < m_solvers.size(); ++i ) - { - ThreadSolver& solver = m_solvers[ i ]; - delete solver.solver; - solver.solver = NULL; - } - } - - //virtual void prepareSolve( int /* numBodies */, int /* numManifolds */ ) { ; } // does nothing - - ///solve a group of constraints - virtual btScalar solveGroup( btCollisionObject** bodies, - int numBodies, - btPersistentManifold** manifolds, - int numManifolds, - btTypedConstraint** constraints, - int numConstraints, - const btContactSolverInfo& info, - btIDebugDraw* debugDrawer, - btDispatcher* dispatcher - ) - { - ThreadSolver* solver = getAndLockThreadSolver(); - solver->solver->solveGroup( bodies, numBodies, manifolds, numManifolds, constraints, numConstraints, info, debugDrawer, dispatcher ); - solver->mutex.unlock(); - return 0.0f; - } - - //virtual void allSolved( const btContactSolverInfo& /* info */, class btIDebugDraw* /* debugDrawer */ ) { ; } // does nothing - - ///clear internal cached data and reset random seed - virtual void reset() - { - for ( int i = 0; i < m_solvers.size(); ++i ) - { - ThreadSolver& solver = m_solvers[ i ]; - solver.mutex.lock(); - solver.solver->reset(); - solver.mutex.unlock(); - } - } - - virtual btConstraintSolverType getSolverType() const - { - return m_solverType; - } -}; - -struct UpdateIslandDispatcher -{ - btAlignedObjectArray* islandsPtr; - btSimulationIslandManagerMt::IslandCallback* callback; - - void forLoop( int iBegin, int iEnd ) const - { - for ( int i = iBegin; i < iEnd; ++i ) - { - btSimulationIslandManagerMt::Island* island = ( *islandsPtr )[ i ]; - btPersistentManifold** manifolds = island->manifoldArray.size() ? &island->manifoldArray[ 0 ] : NULL; - btTypedConstraint** constraintsPtr = island->constraintArray.size() ? &island->constraintArray[ 0 ] : NULL; - callback->processIsland( &island->bodyArray[ 0 ], - island->bodyArray.size(), - manifolds, - island->manifoldArray.size(), - constraintsPtr, - island->constraintArray.size(), - island->id - ); - } - } -}; - -void parallelIslandDispatch( btAlignedObjectArray* islandsPtr, btSimulationIslandManagerMt::IslandCallback* callback ) -{ - ProfileHelper prof(Profiler::kRecordDispatchIslands); + ProfileHelper prof( Profiler::kRecordDispatchIslands ); gNumIslands = islandsPtr->size(); - int grainSize = 1; // iterations per task - UpdateIslandDispatcher dispatcher; - dispatcher.islandsPtr = islandsPtr; - dispatcher.callback = callback; - btPushThreadsAreRunning(); - parallelFor( 0, islandsPtr->size(), grainSize, dispatcher ); - btPopThreadsAreRunning(); -} -#endif //#if USE_PARALLEL_ISLAND_SOLVER - - -void profileBeginCallback(btDynamicsWorld *world, btScalar timeStep) -{ - gProfiler.begin(Profiler::kRecordInternalTimeStep); + btSimulationIslandManagerMt::parallelIslandDispatch( islandsPtr, callback ); } -void profileEndCallback(btDynamicsWorld *world, btScalar timeStep) -{ - gProfiler.end(Profiler::kRecordInternalTimeStep); -} /// -/// MyDiscreteDynamicsWorld -/// -/// Should function exactly like btDiscreteDynamicsWorld. -/// 3 methods that iterate over all of the rigidbodies can run in parallel: -/// - predictUnconstraintMotion -/// - integrateTransforms -/// - createPredictiveContacts +/// MyDiscreteDynamicsWorld -- subclassed for profiling purposes /// ATTRIBUTE_ALIGNED16( class ) MyDiscreteDynamicsWorld : public btDiscreteDynamicsWorldMt { - typedef btDiscreteDynamicsWorld ParentClass; + typedef btDiscreteDynamicsWorldMt ParentClass; protected: -#if USE_PARALLEL_PREDICT_UNCONSTRAINED_MOTION - struct UpdaterUnconstrainedMotion - { - btScalar timeStep; - btRigidBody** rigidBodies; - - void forLoop( int iBegin, int iEnd ) const - { - for ( int i = iBegin; i < iEnd; ++i ) - { - btRigidBody* body = rigidBodies[ i ]; - if ( !body->isStaticOrKinematicObject() ) - { - //don't integrate/update velocities here, it happens in the constraint solver - body->applyDamping( timeStep ); - body->predictIntegratedTransform( timeStep, body->getInterpolationWorldTransform() ); - } - } - } - }; virtual void predictUnconstraintMotion( btScalar timeStep ) BT_OVERRIDE { ProfileHelper prof( Profiler::kRecordPredictUnconstrainedMotion ); - BT_PROFILE( "predictUnconstraintMotion" ); - int grainSize = 50; // num of iterations per task for TBB - int bodyCount = m_nonStaticRigidBodies.size(); - UpdaterUnconstrainedMotion update; - update.timeStep = timeStep; - update.rigidBodies = bodyCount ? &m_nonStaticRigidBodies[ 0 ] : NULL; - btPushThreadsAreRunning(); - parallelFor( 0, bodyCount, grainSize, update ); - btPopThreadsAreRunning(); + ParentClass::predictUnconstraintMotion( timeStep ); } -#endif // #if USE_PARALLEL_PREDICT_UNCONSTRAINED_MOTION - -#if USE_PARALLEL_CREATE_PREDICTIVE_CONTACTS - struct UpdaterCreatePredictiveContacts - { - btScalar timeStep; - btRigidBody** rigidBodies; - MyDiscreteDynamicsWorld* world; - - void forLoop( int iBegin, int iEnd ) const - { - world->createPredictiveContactsInternal( &rigidBodies[ iBegin ], iEnd - iBegin, timeStep ); - } - }; - - virtual void createPredictiveContacts( btScalar timeStep ) + virtual void createPredictiveContacts( btScalar timeStep ) BT_OVERRIDE { ProfileHelper prof( Profiler::kRecordCreatePredictiveContacts ); - releasePredictiveContacts(); - int grainSize = 50; // num of iterations per task for TBB or OPENMP - if ( int bodyCount = m_nonStaticRigidBodies.size() ) - { - UpdaterCreatePredictiveContacts update; - update.world = this; - update.timeStep = timeStep; - update.rigidBodies = &m_nonStaticRigidBodies[ 0 ]; - btPushThreadsAreRunning(); - parallelFor( 0, bodyCount, grainSize, update ); - btPopThreadsAreRunning(); - } + ParentClass::createPredictiveContacts( timeStep ); } -#endif // #if USE_PARALLEL_CREATE_PREDICTIVE_CONTACTS - -#if USE_PARALLEL_INTEGRATE_TRANSFORMS - struct UpdaterIntegrateTransforms - { - btScalar timeStep; - btRigidBody** rigidBodies; - MyDiscreteDynamicsWorld* world; - - void forLoop( int iBegin, int iEnd ) const - { - world->integrateTransformsInternal( &rigidBodies[ iBegin ], iEnd - iBegin, timeStep ); - } - }; - virtual void integrateTransforms( btScalar timeStep ) BT_OVERRIDE { ProfileHelper prof( Profiler::kRecordIntegrateTransforms ); - BT_PROFILE( "integrateTransforms" ); - int grainSize = 50; // num of iterations per task for TBB or OPENMP - if ( int bodyCount = m_nonStaticRigidBodies.size() ) - { - UpdaterIntegrateTransforms update; - update.world = this; - update.timeStep = timeStep; - update.rigidBodies = &m_nonStaticRigidBodies[ 0 ]; - btPushThreadsAreRunning(); - parallelFor( 0, bodyCount, grainSize, update ); - btPopThreadsAreRunning(); - } + ParentClass::integrateTransforms( timeStep ); } -#endif // #if USE_PARALLEL_INTEGRATE_TRANSFORMS public: BT_DECLARE_ALIGNED_ALLOCATOR(); MyDiscreteDynamicsWorld( btDispatcher* dispatcher, btBroadphaseInterface* pairCache, - btConstraintSolver* constraintSolver, + btConstraintSolverPoolMt* constraintSolver, btCollisionConfiguration* collisionConfiguration ) : btDiscreteDynamicsWorldMt( dispatcher, pairCache, constraintSolver, collisionConfiguration ) { + btSimulationIslandManagerMt* islandMgr = static_cast( m_islandManager ); + islandMgr->setIslandDispatchFunction( myParallelIslandDispatch ); } }; @@ -621,8 +239,77 @@ btConstraintSolver* createSolverByType( SolverType t ) } +/// +/// btTaskSchedulerManager -- manage a number of task schedulers so we can switch between them +/// +class btTaskSchedulerManager +{ + btAlignedObjectArray m_taskSchedulers; + btAlignedObjectArray m_allocatedTaskSchedulers; + +public: + btTaskSchedulerManager() {} + void init() + { + addTaskScheduler( btGetSequentialTaskScheduler() ); +#if BT_THREADSAFE + if ( btITaskScheduler* ts = createDefaultTaskScheduler() ) + { + m_allocatedTaskSchedulers.push_back( ts ); + addTaskScheduler( ts ); + } + addTaskScheduler( btGetOpenMPTaskScheduler() ); + addTaskScheduler( btGetTBBTaskScheduler() ); + addTaskScheduler( btGetPPLTaskScheduler() ); + if ( getNumTaskSchedulers() > 1 ) + { + // prefer a non-sequential scheduler if available + btSetTaskScheduler( m_taskSchedulers[ 1 ] ); + } + else + { + btSetTaskScheduler( m_taskSchedulers[ 0 ] ); + } +#endif // #if BT_THREADSAFE + } + void shutdown() + { + for ( int i = 0; i < m_allocatedTaskSchedulers.size(); ++i ) + { + delete m_allocatedTaskSchedulers[ i ]; + } + m_allocatedTaskSchedulers.clear(); + } + + void addTaskScheduler( btITaskScheduler* ts ) + { + if ( ts ) + { +#if BT_THREADSAFE + // if initial number of threads is 0 or 1, + if (ts->getNumThreads() <= 1) + { + // for OpenMP, TBB, PPL set num threads to number of logical cores + ts->setNumThreads( ts->getMaxNumThreads() ); + } +#endif // #if BT_THREADSAFE + m_taskSchedulers.push_back( ts ); + } + } + int getNumTaskSchedulers() const { return m_taskSchedulers.size(); } + btITaskScheduler* getTaskScheduler( int i ) { return m_taskSchedulers[ i ]; } +}; + + +static btTaskSchedulerManager gTaskSchedulerMgr; + +#if BT_THREADSAFE +static bool gMultithreadedWorld = true; +static bool gDisplayProfileInfo = true; +#else static bool gMultithreadedWorld = false; static bool gDisplayProfileInfo = false; +#endif static SolverType gSolverType = SOLVER_TYPE_SEQUENTIAL_IMPULSE; static int gSolverMode = SOLVER_SIMD | SOLVER_USE_WARMSTARTING | @@ -648,15 +335,17 @@ CommonRigidBodyMTBase::CommonRigidBodyMTBase( struct GUIHelperInterface* helper { m_multithreadedWorld = false; m_multithreadCapable = false; - gTaskMgr.init(); + if ( gTaskSchedulerMgr.getNumTaskSchedulers() == 0 ) + { + gTaskSchedulerMgr.init(); + } } CommonRigidBodyMTBase::~CommonRigidBodyMTBase() { - gTaskMgr.shutdown(); } -void boolPtrButtonCallback(int buttonId, bool buttonState, void* userPointer) +static void boolPtrButtonCallback(int buttonId, bool buttonState, void* userPointer) { if (bool* val = static_cast(userPointer)) { @@ -664,7 +353,7 @@ void boolPtrButtonCallback(int buttonId, bool buttonState, void* userPointer) } } -void toggleSolverModeCallback(int buttonId, bool buttonState, void* userPointer) +static void toggleSolverModeCallback(int buttonId, bool buttonState, void* userPointer) { if (buttonState) { @@ -683,40 +372,62 @@ void toggleSolverModeCallback(int buttonId, bool buttonState, void* userPointer) } } -void setSolverTypeCallback(int buttonId, bool buttonState, void* userPointer) +void setSolverTypeComboBoxCallback(int combobox, const char* item, void* userPointer) { - if (buttonId >= 0 && buttonId < SOLVER_TYPE_COUNT) + const char** items = static_cast(userPointer); + for (int i = 0; i < SOLVER_TYPE_COUNT; ++i) { - gSolverType = static_cast(buttonId); + if (strcmp(item, items[i]) == 0) + { + gSolverType = static_cast(i); + break; + } } } -void apiSelectButtonCallback(int buttonId, bool buttonState, void* userPointer) + +static void setNumThreads( int numThreads ) { - gTaskMgr.setApi(static_cast(buttonId)); - if (gTaskMgr.getApi()==TaskManager::apiNone) +#if BT_THREADSAFE + int newNumThreads = ( std::min )( numThreads, int( BT_MAX_THREAD_COUNT ) ); + int oldNumThreads = btGetTaskScheduler()->getNumThreads(); + // only call when the thread count is different + if ( newNumThreads != oldNumThreads ) { - gSliderNumThreads = 1.0f; - } - else - { - gSliderNumThreads = float(gTaskMgr.getNumThreads()); + btGetTaskScheduler()->setNumThreads( newNumThreads ); } +#endif // #if BT_THREADSAFE } -void setThreadCountCallback(float val, void* userPtr) + +void setTaskSchedulerComboBoxCallback(int combobox, const char* item, void* userPointer) { - if (gTaskMgr.getApi()==TaskManager::apiNone) +#if BT_THREADSAFE + const char** items = static_cast( userPointer ); + for ( int i = 0; i < 20; ++i ) { - gSliderNumThreads = 1.0f; - } - else - { - gTaskMgr.setNumThreads( int( gSliderNumThreads ) ); + if ( strcmp( item, items[ i ] ) == 0 ) + { + // change the task scheduler + btITaskScheduler* ts = gTaskSchedulerMgr.getTaskScheduler( i ); + btSetTaskScheduler( ts ); + gSliderNumThreads = float(ts->getNumThreads()); + break; + } } +#endif // #if BT_THREADSAFE } -void setSolverIterationCountCallback(float val, void* userPtr) + +static void setThreadCountCallback(float val, void* userPtr) +{ +#if BT_THREADSAFE + setNumThreads( int( gSliderNumThreads ) ); + gSliderNumThreads = float(btGetTaskScheduler()->getNumThreads()); +#endif // #if BT_THREADSAFE +} + +static void setSolverIterationCountCallback(float val, void* userPtr) { if (btDiscreteDynamicsWorld* world = reinterpret_cast(userPtr)) { @@ -729,47 +440,37 @@ void CommonRigidBodyMTBase::createEmptyDynamicsWorld() gNumIslands = 0; m_solverType = gSolverType; #if BT_THREADSAFE && (BT_USE_OPENMP || BT_USE_PPL || BT_USE_TBB) + btAssert( btGetTaskScheduler() != NULL ); m_multithreadCapable = true; #endif if ( gMultithreadedWorld ) { +#if BT_THREADSAFE m_dispatcher = NULL; btDefaultCollisionConstructionInfo cci; cci.m_defaultMaxPersistentManifoldPoolSize = 80000; cci.m_defaultMaxCollisionAlgorithmPoolSize = 80000; m_collisionConfiguration = new btDefaultCollisionConfiguration( cci ); -#if USE_PARALLEL_NARROWPHASE - m_dispatcher = new MyCollisionDispatcher( m_collisionConfiguration ); -#else - m_dispatcher = new btCollisionDispatcher( m_collisionConfiguration ); -#endif //USE_PARALLEL_NARROWPHASE - + m_dispatcher = new MyCollisionDispatcher( m_collisionConfiguration, 40 ); m_broadphase = new btDbvtBroadphase(); -#if BT_THREADSAFE && USE_PARALLEL_ISLAND_SOLVER + btConstraintSolverPoolMt* solverPool; { btConstraintSolver* solvers[ BT_MAX_THREAD_COUNT ]; - int maxThreadCount = btMin( int(BT_MAX_THREAD_COUNT), TaskManager::getMaxNumThreads() ); + int maxThreadCount = BT_MAX_THREAD_COUNT; for ( int i = 0; i < maxThreadCount; ++i ) { solvers[ i ] = createSolverByType( m_solverType ); } - m_solver = new MyConstraintSolverPool( solvers, maxThreadCount ); + solverPool = new btConstraintSolverPoolMt( solvers, maxThreadCount ); + m_solver = solverPool; } -#else - m_solver = createSolverByType( m_solverType ); -#endif //#if USE_PARALLEL_ISLAND_SOLVER - btDiscreteDynamicsWorld* world = new MyDiscreteDynamicsWorld( m_dispatcher, m_broadphase, m_solver, m_collisionConfiguration ); + btDiscreteDynamicsWorld* world = new MyDiscreteDynamicsWorld( m_dispatcher, m_broadphase, solverPool, m_collisionConfiguration ); m_dynamicsWorld = world; - -#if USE_PARALLEL_ISLAND_SOLVER - if ( btSimulationIslandManagerMt* islandMgr = dynamic_cast( world->getSimulationIslandManager() ) ) - { - islandMgr->setIslandDispatchFunction( parallelIslandDispatch ); - m_multithreadedWorld = true; - } -#endif //#if USE_PARALLEL_ISLAND_SOLVER + m_multithreadedWorld = true; + btAssert( btGetTaskScheduler() != NULL ); +#endif // #if BT_THREADSAFE } else { @@ -817,16 +518,21 @@ void CommonRigidBodyMTBase::createDefaultParameters() m_guiHelper->getParameterInterface()->registerButtonParameter( button ); } - // add buttons for switching to different solver types - for (int i = 0; i < SOLVER_TYPE_COUNT; ++i) { - char buttonName[256]; - SolverType solverType = static_cast(i); - sprintf(buttonName, "Solver Type %s", getSolverTypeName(solverType)); - ButtonParams button( buttonName, 0, false ); - button.m_buttonId = solverType; - button.m_callback = setSolverTypeCallback; - m_guiHelper->getParameterInterface()->registerButtonParameter( button ); + // create a combo box for selecting the solver type + static const char* sSolverTypeComboBoxItems[ SOLVER_TYPE_COUNT ]; + for ( int i = 0; i < SOLVER_TYPE_COUNT; ++i ) + { + SolverType solverType = static_cast( i ); + sSolverTypeComboBoxItems[ i ] = getSolverTypeName( solverType ); + } + ComboBoxParams comboParams; + comboParams.m_userPointer = sSolverTypeComboBoxItems; + comboParams.m_numItems = SOLVER_TYPE_COUNT; + comboParams.m_startItem = gSolverType; + comboParams.m_items = sSolverTypeComboBoxItems; + comboParams.m_callback = setSolverTypeComboBoxCallback; + m_guiHelper->getParameterInterface()->registerComboBox( comboParams ); } { // a slider for the number of solver iterations @@ -888,29 +594,45 @@ void CommonRigidBodyMTBase::createDefaultParameters() } if (m_multithreadedWorld) { - // create a button for each supported threading API - for (int iApi = 0; iApi < TaskManager::apiCount; ++iApi) +#if BT_THREADSAFE + if (gTaskSchedulerMgr.getNumTaskSchedulers() >= 1) { - TaskManager::Api api = static_cast(iApi); - if (gTaskMgr.isSupported(api)) + // create a combo box for selecting the task scheduler + const int maxNumTaskSchedulers = 20; + static const char* sTaskSchedulerComboBoxItems[ maxNumTaskSchedulers ]; + int startingItem = 0; + for ( int i = 0; i < gTaskSchedulerMgr.getNumTaskSchedulers(); ++i ) { - char str[1024]; - sprintf(str, "API %s", gTaskMgr.getApiName(api)); - ButtonParams button( str, iApi, false ); - button.m_callback = apiSelectButtonCallback; - m_guiHelper->getParameterInterface()->registerButtonParameter( button ); + sTaskSchedulerComboBoxItems[ i ] = gTaskSchedulerMgr.getTaskScheduler(i)->getName(); + if (gTaskSchedulerMgr.getTaskScheduler(i) == btGetTaskScheduler()) + { + startingItem = i; + } } + ComboBoxParams comboParams; + comboParams.m_userPointer = sTaskSchedulerComboBoxItems; + comboParams.m_numItems = gTaskSchedulerMgr.getNumTaskSchedulers(); + comboParams.m_startItem = startingItem; + comboParams.m_items = sTaskSchedulerComboBoxItems; + comboParams.m_callback = setTaskSchedulerComboBoxCallback; + m_guiHelper->getParameterInterface()->registerComboBox( comboParams ); } { // create a slider to set the number of threads to use - gSliderNumThreads = float(gTaskMgr.getNumThreads()); + int numThreads = btGetTaskScheduler()->getNumThreads(); + // if slider has not been set yet (by another demo), + if ( gSliderNumThreads <= 1.0f ) + { + gSliderNumThreads = float( numThreads ); + } SliderParams slider("Thread count", &gSliderNumThreads); slider.m_minVal = 1.0f; - slider.m_maxVal = float(gTaskMgr.getMaxNumThreads()*2); + slider.m_maxVal = float( BT_MAX_THREAD_COUNT ); slider.m_callback = setThreadCountCallback; slider.m_clampToIntegers = true; m_guiHelper->getParameterInterface()->registerSliderFloatParameter( slider ); } +#endif // #if BT_THREADSAFE } } @@ -942,6 +664,7 @@ void CommonRigidBodyMTBase::drawScreenText() { if ( m_multithreadedWorld ) { +#if BT_THREADSAFE int numManifolds = m_dispatcher->getNumManifolds(); int numContacts = 0; for ( int i = 0; i < numManifolds; ++i ) @@ -949,17 +672,18 @@ void CommonRigidBodyMTBase::drawScreenText() const btPersistentManifold* man = m_dispatcher->getManifoldByIndexInternal( i ); numContacts += man->getNumContacts(); } - const char* mtApi = TaskManager::getApiName( gTaskMgr.getApi() ); + const char* mtApi = btGetTaskScheduler()->getName(); sprintf( msg, "islands=%d bodies=%d manifolds=%d contacts=%d [%s] threads=%d", gNumIslands, m_dynamicsWorld->getNumCollisionObjects(), numManifolds, numContacts, mtApi, - gTaskMgr.getApi() == TaskManager::apiNone ? 1 : gTaskMgr.getNumThreads() + btGetTaskScheduler()->getNumThreads() ); m_guiHelper->getAppInterface()->drawText( msg, 100, yCoord, 0.4f ); yCoord += yStep; +#endif // #if BT_THREADSAFE } { int sm = gSolverMode; diff --git a/examples/MultiThreadedDemo/MultiThreadedDemo.cpp b/examples/MultiThreadedDemo/MultiThreadedDemo.cpp index 3dff09ae8..a04ab0d91 100644 --- a/examples/MultiThreadedDemo/MultiThreadedDemo.cpp +++ b/examples/MultiThreadedDemo/MultiThreadedDemo.cpp @@ -13,29 +13,35 @@ subject to the following restrictions: 3. This notice may not be removed or altered from any source distribution. */ -#include "btBulletDynamicsCommon.h" -#include "LinearMath/btQuickprof.h" -#include "LinearMath/btIDebugDraw.h" +#include "MultiThreadedDemo.h" +#include "CommonRigidBodyMTBase.h" #include "../CommonInterfaces/CommonParameterInterface.h" +#include "btBulletDynamicsCommon.h" +#include "btBulletCollisionCommon.h" +#include "LinearMath/btAlignedObjectArray.h" + #include //printf debugging #include -class btCollisionShape; -#include "CommonRigidBodyMTBase.h" -#include "MultiThreadedDemo.h" -#include "LinearMath/btAlignedObjectArray.h" -#include "btBulletCollisionCommon.h" - - -#define BT_OVERRIDE static btScalar gSliderStackRows = 8.0f; static btScalar gSliderStackColumns = 6.0f; -static btScalar gSliderStackHeight = 15.0f; +static btScalar gSliderStackHeight = 10.0f; +static btScalar gSliderStackWidth = 1.0f; static btScalar gSliderGroundHorizontalAmplitude = 0.0f; static btScalar gSliderGroundVerticalAmplitude = 0.0f; +static btScalar gSliderGroundTilt = 0.0f; +static btScalar gSliderRollingFriction = 0.0f; +static bool gSpheresNotBoxes = false; +static void boolPtrButtonCallback( int buttonId, bool buttonState, void* userPointer ) +{ + if ( bool* val = static_cast( userPointer ) ) + { + *val = !*val; + } +} /// MultiThreadedDemo shows how to setup and use multithreading class MultiThreadedDemo : public CommonRigidBodyMTBase @@ -51,8 +57,9 @@ class MultiThreadedDemo : public CommonRigidBodyMTBase btRigidBody* m_groundBody; btTransform m_groundStartXf; float m_groundMovePhase; + float m_prevRollingFriction; - void createStack( const btVector3& pos, btCollisionShape* boxShape, const btVector3& halfBoxSize, int size ); + void createStack( const btTransform& trans, btCollisionShape* boxShape, const btVector3& halfBoxSize, int size, int width ); void createSceneObjects(); void destroySceneObjects(); @@ -63,10 +70,25 @@ public: virtual ~MultiThreadedDemo() {} + btQuaternion getGroundRotation() const + { + btScalar tilt = gSliderGroundTilt * SIMD_2_PI / 360.0f; + return btQuaternion( btVector3( 1.0f, 0.0f, 0.0f ), tilt ); + } virtual void stepSimulation( float deltaTime ) BT_OVERRIDE { if ( m_dynamicsWorld ) { + if ( m_prevRollingFriction != gSliderRollingFriction ) + { + m_prevRollingFriction = gSliderRollingFriction; + btCollisionObjectArray& objArray = m_dynamicsWorld->getCollisionObjectArray(); + for ( int i = 0; i < objArray.size(); ++i ) + { + btCollisionObject* obj = objArray[ i ]; + obj->setRollingFriction( gSliderRollingFriction ); + } + } if (m_groundBody) { // update ground @@ -86,6 +108,7 @@ public: offset[kUpAxis] = gndVOffset; vel[kUpAxis] = gndVVel; xf.setOrigin(xf.getOrigin() + offset); + xf.setRotation( getGroundRotation() ); m_groundBody->setWorldTransform( xf ); m_groundBody->setLinearVelocity( vel ); } @@ -98,8 +121,8 @@ public: virtual void resetCamera() BT_OVERRIDE { m_guiHelper->resetCamera( m_cameraDist, - m_cameraPitch, m_cameraYaw, + m_cameraPitch, m_cameraTargetPos.x(), m_cameraTargetPos.y(), m_cameraTargetPos.z() @@ -115,9 +138,10 @@ MultiThreadedDemo::MultiThreadedDemo(struct GUIHelperInterface* helper) m_groundBody = NULL; m_groundMovePhase = 0.0f; m_cameraTargetPos = btVector3( 0.0f, 0.0f, 0.0f ); - m_cameraPitch = 90.0f; - m_cameraYaw = 30.0f; + m_cameraPitch = -30.0f; + m_cameraYaw = 90.0f; m_cameraDist = 48.0f; + m_prevRollingFriction = -1.0f; helper->setUpAxis( kUpAxis ); } @@ -135,6 +159,13 @@ void MultiThreadedDemo::initPhysics() slider.m_clampToIntegers = true; m_guiHelper->getParameterInterface()->registerSliderFloatParameter( slider ); } + { + SliderParams slider( "Stack width", &gSliderStackWidth ); + slider.m_minVal = 1.0f; + slider.m_maxVal = 30.0f; + slider.m_clampToIntegers = true; + m_guiHelper->getParameterInterface()->registerSliderFloatParameter( slider ); + } { SliderParams slider( "Stack rows", &gSliderStackRows ); slider.m_minVal = 1.0f; @@ -165,7 +196,30 @@ void MultiThreadedDemo::initPhysics() slider.m_clampToNotches = false; m_guiHelper->getParameterInterface()->registerSliderFloatParameter( slider ); } - + { + // ground tilt + SliderParams slider( "Ground tilt", &gSliderGroundTilt ); + slider.m_minVal = -45.0f; + slider.m_maxVal = 45.0f; + slider.m_clampToNotches = false; + m_guiHelper->getParameterInterface()->registerSliderFloatParameter( slider ); + } + { + // rolling friction + SliderParams slider( "Rolling friction", &gSliderRollingFriction ); + slider.m_minVal = 0.0f; + slider.m_maxVal = 1.0f; + slider.m_clampToNotches = false; + m_guiHelper->getParameterInterface()->registerSliderFloatParameter( slider ); + } + { + ButtonParams button( "Spheres not boxes", 0, false ); + button.m_initialState = gSpheresNotBoxes; + button.m_userPointer = &gSpheresNotBoxes; + button.m_callback = boolPtrButtonCallback; + m_guiHelper->getParameterInterface()->registerButtonParameter( button ); + } + createSceneObjects(); m_guiHelper->createPhysicsDebugDrawer( m_dynamicsWorld ); @@ -185,29 +239,36 @@ btRigidBody* MultiThreadedDemo::localCreateRigidBody(btScalar mass, const btTran } -void MultiThreadedDemo::createStack( const btVector3& center, btCollisionShape* boxShape, const btVector3& halfBoxSize, int size ) +void MultiThreadedDemo::createStack( const btTransform& parentTrans, btCollisionShape* boxShape, const btVector3& halfBoxSize, int height, int width ) { btTransform trans; trans.setIdentity(); + trans.setRotation( parentTrans.getRotation() ); float halfBoxHeight = halfBoxSize.y(); float halfBoxWidth = halfBoxSize.x(); - for ( int i = 0; isetFriction(1.0f); + btRigidBody* body = localCreateRigidBody( mass, trans, boxShape ); + body->setFriction( 1.0f ); + body->setRollingFriction( gSliderRollingFriction ); + } } } } @@ -217,10 +278,8 @@ void MultiThreadedDemo::createSceneObjects() { { // create ground box - btTransform tr; - tr.setIdentity(); - tr.setOrigin( btVector3( 0.f, -3.f, 0.f ) ); - m_groundStartXf = tr; + m_groundStartXf.setOrigin( btVector3( 0.f, -3.f, 0.f ) ); + m_groundStartXf.setRotation( getGroundRotation() ); //either use heightfield or triangle mesh @@ -240,19 +299,34 @@ void MultiThreadedDemo::createSceneObjects() const btVector3 halfExtents = btVector3( 0.5f, 0.25f, 0.5f ); int numStackRows = btMax(1, int(gSliderStackRows)); int numStackCols = btMax(1, int(gSliderStackColumns)); - int stackHeight = 15; - float stackZSpacing = 3.0f; + int stackHeight = int(gSliderStackHeight); + int stackWidth = int( gSliderStackWidth ); + float stackZSpacing = 2.0f + stackWidth*halfExtents.x()*2.0f; float stackXSpacing = 20.0f; btBoxShape* boxShape = new btBoxShape( halfExtents ); m_collisionShapes.push_back( boxShape ); + btSphereShape* sphereShape = new btSphereShape( 0.5f ); + m_collisionShapes.push_back( sphereShape ); + + btCollisionShape* shape = boxShape; + if ( gSpheresNotBoxes ) + { + shape = sphereShape; + } + + btTransform groundTrans; + groundTrans.setIdentity(); + groundTrans.setRotation( getGroundRotation() ); for ( int iX = 0; iX < numStackCols; ++iX ) { for ( int iZ = 0; iZ < numStackRows; ++iZ ) { btVector3 center = btVector3( iX * stackXSpacing, 0.0f, ( iZ - numStackRows / 2 ) * stackZSpacing ); - createStack( center, boxShape, halfExtents, stackHeight ); + btTransform trans = groundTrans; + trans.setOrigin( groundTrans( center ) ); + createStack( trans, shape, halfExtents, stackHeight, stackWidth ); } } } diff --git a/examples/MultiThreadedDemo/ParallelFor.h b/examples/MultiThreadedDemo/ParallelFor.h deleted file mode 100644 index cb1325025..000000000 --- a/examples/MultiThreadedDemo/ParallelFor.h +++ /dev/null @@ -1,336 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include //printf debugging -#include - - -// choose threading providers: -#if BT_USE_TBB -#define USE_TBB 1 // use Intel Threading Building Blocks for thread management -#endif - -#if BT_USE_PPL -#define USE_PPL 1 // use Microsoft Parallel Patterns Library (installed with Visual Studio 2010 and later) -#endif // BT_USE_PPL - -#if BT_USE_OPENMP -#define USE_OPENMP 1 // use OpenMP (also need to change compiler options for OpenMP support) -#endif - - -#if USE_OPENMP - -#include - -#endif // #if USE_OPENMP - - -#if USE_PPL - -#include // if you get a compile error here, check whether your version of Visual Studio includes PPL -// Visual Studio 2010 and later should come with it -#include // for GetProcessorCount() -#endif // #if USE_PPL - - -#if USE_TBB - -#define __TBB_NO_IMPLICIT_LINKAGE 1 -#include -#include -#include -#include - -#endif // #if USE_TBB - - - -class TaskManager -{ -public: - enum Api - { - apiNone, - apiOpenMP, - apiTbb, - apiPpl, - apiCount - }; - static const char* getApiName( Api api ) - { - switch ( api ) - { - case apiNone: return "None"; - case apiOpenMP: return "OpenMP"; - case apiTbb: return "Intel TBB"; - case apiPpl: return "MS PPL"; - default: return "unknown"; - } - } - - TaskManager() - { - m_api = apiNone; - m_numThreads = 0; -#if USE_TBB - m_tbbSchedulerInit = NULL; -#endif // #if USE_TBB - } - - Api getApi() const - { - return m_api; - } - - bool isSupported( Api api ) const - { -#if USE_OPENMP - if ( api == apiOpenMP ) - { - return true; - } -#endif -#if USE_TBB - if ( api == apiTbb ) - { - return true; - } -#endif -#if USE_PPL - if ( api == apiPpl ) - { - return true; - } -#endif - // apiNone is always "supported" - return api == apiNone; - } - - void setApi( Api api ) - { - if (isSupported(api)) - { - m_api = api; - } - else - { - // no compile time support for selected API, fallback to "none" - m_api = apiNone; - } - } - - static int getMaxNumThreads() - { -#if USE_OPENMP - return omp_get_max_threads(); -#elif USE_PPL - return concurrency::GetProcessorCount(); -#elif USE_TBB - return tbb::task_scheduler_init::default_num_threads(); -#endif - return 1; - } - - int getNumThreads() const - { - return m_numThreads; - } - - int setNumThreads( int numThreads ) - { - m_numThreads = ( std::max )( 1, numThreads ); - -#if USE_OPENMP - omp_set_num_threads( m_numThreads ); -#endif - -#if USE_PPL - { - using namespace concurrency; - if ( CurrentScheduler::Id() != -1 ) - { - CurrentScheduler::Detach(); - } - SchedulerPolicy policy; - policy.SetConcurrencyLimits( m_numThreads, m_numThreads ); - CurrentScheduler::Create( policy ); - } -#endif - -#if USE_TBB - if ( m_tbbSchedulerInit ) - { - delete m_tbbSchedulerInit; - m_tbbSchedulerInit = NULL; - } - m_tbbSchedulerInit = new tbb::task_scheduler_init( m_numThreads ); -#endif - return m_numThreads; - } - - void init() - { - if (m_numThreads == 0) - { -#if USE_PPL - setApi( apiPpl ); -#endif -#if USE_TBB - setApi( apiTbb ); -#endif -#if USE_OPENMP - setApi( apiOpenMP ); -#endif - setNumThreads(getMaxNumThreads()); - } - else - { - setNumThreads(m_numThreads); - } - } - - void shutdown() - { -#if USE_TBB - if ( m_tbbSchedulerInit ) - { - delete m_tbbSchedulerInit; - m_tbbSchedulerInit = NULL; - } -#endif - } - -private: - Api m_api; - int m_numThreads; -#if USE_TBB - tbb::task_scheduler_init* m_tbbSchedulerInit; -#endif // #if USE_TBB -}; - -extern TaskManager gTaskMgr; - - -inline static void initTaskScheduler() -{ - gTaskMgr.init(); -} - -inline static void cleanupTaskScheduler() -{ - gTaskMgr.shutdown(); -} - - -#if USE_TBB -/// -/// TbbBodyAdapter -- Converts a body object that implements the -/// "forLoop(int iBegin, int iEnd) const" function -/// into a TBB compatible object that takes a tbb::blocked_range type. -/// -template -struct TbbBodyAdapter -{ - const TBody* mBody; - - void operator()( const tbb::blocked_range& range ) const - { - mBody->forLoop( range.begin(), range.end() ); - } -}; -#endif // #if USE_TBB - -#if USE_PPL -/// -/// PplBodyAdapter -- Converts a body object that implements the -/// "forLoop(int iBegin, int iEnd) const" function -/// into a PPL compatible object that implements "void operator()( int ) const" -/// -template -struct PplBodyAdapter -{ - const TBody* mBody; - int mGrainSize; - int mIndexEnd; - - void operator()( int i ) const - { - mBody->forLoop( i, (std::min)(i + mGrainSize, mIndexEnd) ); - } -}; -#endif // #if USE_PPL - - -/// -/// parallelFor -- interface for submitting work expressed as a for loop to the worker threads -/// -template -void parallelFor( int iBegin, int iEnd, int grainSize, const TBody& body ) -{ -#if USE_OPENMP - if ( gTaskMgr.getApi() == TaskManager::apiOpenMP ) - { -#pragma omp parallel for schedule(static, 1) - for ( int i = iBegin; i < iEnd; i += grainSize ) - { - body.forLoop( i, (std::min)( i + grainSize, iEnd ) ); - } - return; - } -#endif // #if USE_OPENMP - -#if USE_PPL - if ( gTaskMgr.getApi() == TaskManager::apiPpl ) - { - // PPL dispatch - PplBodyAdapter pplBody; - pplBody.mBody = &body; - pplBody.mGrainSize = grainSize; - pplBody.mIndexEnd = iEnd; - // note: MSVC 2010 doesn't support partitioner args, so avoid them - concurrency::parallel_for( iBegin, - iEnd, - grainSize, - pplBody - ); - return; - } -#endif //#if USE_PPL - -#if USE_TBB - if ( gTaskMgr.getApi() == TaskManager::apiTbb ) - { - // TBB dispatch - TbbBodyAdapter tbbBody; - tbbBody.mBody = &body; - tbb::parallel_for( tbb::blocked_range( iBegin, iEnd, grainSize ), - tbbBody, - tbb::simple_partitioner() - ); - return; - } -#endif // #if USE_TBB - - { - // run on main thread - body.forLoop( iBegin, iEnd ); - } - -} - - - - diff --git a/examples/MultiThreading/MultiThreadingExample.cpp b/examples/MultiThreading/MultiThreadingExample.cpp index 381453c1e..d0ad1ba51 100644 --- a/examples/MultiThreading/MultiThreadingExample.cpp +++ b/examples/MultiThreading/MultiThreadingExample.cpp @@ -176,14 +176,12 @@ public: //int numBodies = 1; m_app->setUpAxis(1); - m_app->m_renderer->enableBlend(true); } virtual ~MultiThreadingExample() { - m_app->m_renderer->enableBlend(false); } @@ -304,8 +302,8 @@ public: virtual void resetCamera() { float dist = 10.5; - float pitch = 136; - float yaw = 32; + float pitch = -32; + float yaw = 136; float targetPos[3]={0,0,0}; if (m_app->m_renderer && m_app->m_renderer->getActiveCamera()) { diff --git a/examples/MultiThreading/b3Win32ThreadSupport.cpp b/examples/MultiThreading/b3Win32ThreadSupport.cpp index 539c0f3eb..c0987beab 100644 --- a/examples/MultiThreading/b3Win32ThreadSupport.cpp +++ b/examples/MultiThreading/b3Win32ThreadSupport.cpp @@ -279,9 +279,9 @@ void b3Win32ThreadSupport::startThreads(const Win32ThreadConstructionInfo& threa } - DWORD mask = 1; - mask = 1< +#include + + +typedef void( *btThreadFunc )( void* userPtr, void* lsMemory ); +typedef void* ( *btThreadLocalStorageFunc )(); + +#if BT_THREADSAFE + +#if defined( _WIN32 ) + +#include "b3Win32ThreadSupport.h" + +b3ThreadSupportInterface* createThreadSupport( int numThreads, btThreadFunc threadFunc, btThreadLocalStorageFunc localStoreFunc, const char* uniqueName ) +{ + b3Win32ThreadSupport::Win32ThreadConstructionInfo constructionInfo( uniqueName, threadFunc, localStoreFunc, numThreads ); + //constructionInfo.m_priority = 0; // highest priority (the default) -- can cause erratic performance when numThreads > numCores + // we don't want worker threads to be higher priority than the main thread or the main thread could get + // totally shut out and unable to tell the workers to stop + constructionInfo.m_priority = -1; // normal priority + b3Win32ThreadSupport* threadSupport = new b3Win32ThreadSupport( constructionInfo ); + return threadSupport; +} + +#else // #if defined( _WIN32 ) + +#include "b3PosixThreadSupport.h" + +b3ThreadSupportInterface* createThreadSupport( int numThreads, btThreadFunc threadFunc, btThreadLocalStorageFunc localStoreFunc, const char* uniqueName) +{ + b3PosixThreadSupport::ThreadConstructionInfo constructionInfo( uniqueName, threadFunc, localStoreFunc, numThreads ); + b3ThreadSupportInterface* threadSupport = new b3PosixThreadSupport( constructionInfo ); + return threadSupport; +} + +#endif // #else // #if defined( _WIN32 ) + + +/// +/// getNumHardwareThreads() +/// +/// +/// https://stackoverflow.com/questions/150355/programmatically-find-the-number-of-cores-on-a-machine +/// +#if __cplusplus >= 201103L + +#include + +int getNumHardwareThreads() +{ + return std::thread::hardware_concurrency(); +} + +#elif defined( _WIN32 ) + +#define WIN32_LEAN_AND_MEAN + +#include + +int getNumHardwareThreads() +{ + // caps out at 32 + SYSTEM_INFO info; + GetSystemInfo( &info ); + return info.dwNumberOfProcessors; +} + +#else + +int getNumHardwareThreads() +{ + return 0; // don't know +} + +#endif + + +struct WorkerThreadStatus +{ + enum Type + { + kInvalid, + kWaitingForWork, + kWorking, + kSleeping, + }; +}; + + +struct IJob +{ + virtual void executeJob() = 0; +}; + +class ParallelForJob : public IJob +{ + const btIParallelForBody* mBody; + int mBegin; + int mEnd; + +public: + ParallelForJob() + { + mBody = NULL; + mBegin = 0; + mEnd = 0; + } + void init( int iBegin, int iEnd, const btIParallelForBody& body ) + { + mBody = &body; + mBegin = iBegin; + mEnd = iEnd; + } + virtual void executeJob() BT_OVERRIDE + { + BT_PROFILE( "executeJob" ); + + // call the functor body to do the work + mBody->forLoop( mBegin, mEnd ); + } +}; + + +struct JobContext +{ + JobContext() + { + m_queueLock = NULL; + m_headIndex = 0; + m_tailIndex = 0; + m_workersShouldCheckQueue = false; + m_useSpinMutex = false; + } + b3CriticalSection* m_queueLock; + btSpinMutex m_mutex; + volatile bool m_workersShouldCheckQueue; + + btAlignedObjectArray m_jobQueue; + bool m_queueIsEmpty; + int m_tailIndex; + int m_headIndex; + bool m_useSpinMutex; + + void lockQueue() + { + if ( m_useSpinMutex ) + { + m_mutex.lock(); + } + else + { + m_queueLock->lock(); + } + } + void unlockQueue() + { + if ( m_useSpinMutex ) + { + m_mutex.unlock(); + } + else + { + m_queueLock->unlock(); + } + } + void clearQueue() + { + lockQueue(); + m_headIndex = 0; + m_tailIndex = 0; + m_queueIsEmpty = true; + unlockQueue(); + m_jobQueue.resizeNoInitialize( 0 ); + } + void submitJob( IJob* job ) + { + m_jobQueue.push_back( job ); + lockQueue(); + m_tailIndex++; + m_queueIsEmpty = false; + unlockQueue(); + } + IJob* consumeJob() + { + if ( m_queueIsEmpty ) + { + // lock free path. even if this is taken erroneously it isn't harmful + return NULL; + } + IJob* job = NULL; + lockQueue(); + if ( !m_queueIsEmpty ) + { + job = m_jobQueue[ m_headIndex++ ]; + if ( m_headIndex == m_tailIndex ) + { + m_queueIsEmpty = true; + } + } + unlockQueue(); + return job; + } +}; + + +struct WorkerThreadLocalStorage +{ + int threadId; + WorkerThreadStatus::Type status; +}; + + +static void WorkerThreadFunc( void* userPtr, void* lsMemory ) +{ + BT_PROFILE( "WorkerThreadFunc" ); + WorkerThreadLocalStorage* localStorage = (WorkerThreadLocalStorage*) lsMemory; + localStorage->status = WorkerThreadStatus::kWaitingForWork; + //printf( "WorkerThreadFunc: worker %d start working\n", localStorage->threadId ); + + JobContext* jobContext = (JobContext*) userPtr; + + while ( jobContext->m_workersShouldCheckQueue ) + { + if ( IJob* job = jobContext->consumeJob() ) + { + localStorage->status = WorkerThreadStatus::kWorking; + job->executeJob(); + localStorage->status = WorkerThreadStatus::kWaitingForWork; + } + else + { + // todo: spin wait a bit to avoid hammering the empty queue + } + } + + //printf( "WorkerThreadFunc stop working\n" ); + localStorage->status = WorkerThreadStatus::kSleeping; + // go idle +} + + +static void* WorkerThreadAllocFunc() +{ + return new WorkerThreadLocalStorage; +} + + + +class btTaskSchedulerDefault : public btITaskScheduler +{ + JobContext m_jobContext; + b3ThreadSupportInterface* m_threadSupport; + btAlignedObjectArray m_jobs; + btSpinMutex m_antiNestingLock; // prevent nested parallel-for + int m_numThreads; + int m_numWorkerThreads; + int m_numWorkersRunning; +public: + + btTaskSchedulerDefault() : btITaskScheduler("ThreadSupport") + { + m_threadSupport = NULL; + m_numThreads = getNumHardwareThreads(); + // if can't detect number of cores, + if ( m_numThreads == 0 ) + { + // take a guess + m_numThreads = 4; + } + m_numWorkerThreads = m_numThreads - 1; + m_numWorkersRunning = 0; + } + + virtual ~btTaskSchedulerDefault() + { + shutdown(); + } + + void init() + { + int maxNumWorkerThreads = BT_MAX_THREAD_COUNT - 1; + m_threadSupport = createThreadSupport( maxNumWorkerThreads, WorkerThreadFunc, WorkerThreadAllocFunc, "TaskScheduler" ); + m_jobContext.m_queueLock = m_threadSupport->createCriticalSection(); + for ( int i = 0; i < maxNumWorkerThreads; i++ ) + { + WorkerThreadLocalStorage* storage = (WorkerThreadLocalStorage*) m_threadSupport->getThreadLocalMemory( i ); + btAssert( storage ); + storage->threadId = i; + storage->status = WorkerThreadStatus::kSleeping; + } + setWorkersActive( false ); // no work for them yet + } + + virtual void shutdown() + { + setWorkersActive( false ); + waitForWorkersToSleep(); + m_threadSupport->deleteCriticalSection( m_jobContext.m_queueLock ); + m_jobContext.m_queueLock = NULL; + + delete m_threadSupport; + m_threadSupport = NULL; + } + + void setWorkersActive( bool active ) + { + m_jobContext.m_workersShouldCheckQueue = active; + } + + virtual int getMaxNumThreads() const BT_OVERRIDE + { + return BT_MAX_THREAD_COUNT; + } + + virtual int getNumThreads() const BT_OVERRIDE + { + return m_numThreads; + } + + virtual void setNumThreads( int numThreads ) BT_OVERRIDE + { + m_numThreads = btMax( btMin(numThreads, int(BT_MAX_THREAD_COUNT)), 1 ); + m_numWorkerThreads = m_numThreads - 1; + } + + void waitJobs() + { + BT_PROFILE( "waitJobs" ); + // have the main thread work until the job queue is empty + for ( ;; ) + { + if ( IJob* job = m_jobContext.consumeJob() ) + { + job->executeJob(); + } + else + { + break; + } + } + // done with jobs for now, tell workers to rest + setWorkersActive( false ); + waitForWorkersToSleep(); + } + + void wakeWorkers() + { + BT_PROFILE( "wakeWorkers" ); + btAssert( m_jobContext.m_workersShouldCheckQueue ); + // tell each worker thread to start working + for ( int i = 0; i < m_numWorkerThreads; i++ ) + { + m_threadSupport->runTask( B3_THREAD_SCHEDULE_TASK, &m_jobContext, i ); + m_numWorkersRunning++; + } + } + + void waitForWorkersToSleep() + { + BT_PROFILE( "waitForWorkersToSleep" ); + while ( m_numWorkersRunning > 0 ) + { + int iThread; + int threadStatus; + m_threadSupport->waitForResponse( &iThread, &threadStatus ); // wait for worker threads to finish working + m_numWorkersRunning--; + } + //m_threadSupport->waitForAllTasksToComplete(); + for ( int i = 0; i < m_numWorkerThreads; i++ ) + { + //m_threadSupport->waitForTaskCompleted( i ); + WorkerThreadLocalStorage* storage = (WorkerThreadLocalStorage*) m_threadSupport->getThreadLocalMemory( i ); + btAssert( storage ); + btAssert( storage->status == WorkerThreadStatus::kSleeping ); + } + } + + virtual void parallelFor( int iBegin, int iEnd, int grainSize, const btIParallelForBody& body ) BT_OVERRIDE + { + BT_PROFILE( "parallelFor_ThreadSupport" ); + btAssert( iEnd >= iBegin ); + btAssert( grainSize >= 1 ); + int iterationCount = iEnd - iBegin; + if ( iterationCount > grainSize && m_numWorkerThreads > 0 && m_antiNestingLock.tryLock() ) + { + int jobCount = ( iterationCount + grainSize - 1 ) / grainSize; + btAssert( jobCount >= 2 ); // need more than one job for multithreading + if ( jobCount > m_jobs.size() ) + { + m_jobs.resize( jobCount ); + } + if ( jobCount > m_jobContext.m_jobQueue.capacity() ) + { + m_jobContext.m_jobQueue.reserve( jobCount ); + } + + m_jobContext.clearQueue(); + // prepare worker threads for incoming work + setWorkersActive( true ); + wakeWorkers(); + // submit all of the jobs + int iJob = 0; + for ( int i = iBegin; i < iEnd; i += grainSize ) + { + btAssert( iJob < jobCount ); + int iE = btMin( i + grainSize, iEnd ); + ParallelForJob& job = m_jobs[ iJob ]; + job.init( i, iE, body ); + m_jobContext.submitJob( &job ); + iJob++; + } + + // put the main thread to work on emptying the job queue and then wait for all workers to finish + waitJobs(); + m_antiNestingLock.unlock(); + } + else + { + BT_PROFILE( "parallelFor_mainThread" ); + // just run on main thread + body.forLoop( iBegin, iEnd ); + } + } +}; + + + +btITaskScheduler* createDefaultTaskScheduler() +{ + btTaskSchedulerDefault* ts = new btTaskSchedulerDefault(); + ts->init(); + return ts; +} + +#else // #if BT_THREADSAFE + +btITaskScheduler* createDefaultTaskScheduler() +{ + return NULL; +} + +#endif // #else // #if BT_THREADSAFE \ No newline at end of file diff --git a/examples/MultiThreading/btTaskScheduler.h b/examples/MultiThreading/btTaskScheduler.h new file mode 100644 index 000000000..a83b635eb --- /dev/null +++ b/examples/MultiThreading/btTaskScheduler.h @@ -0,0 +1,26 @@ +/* +Copyright (c) 2003-2014 Erwin Coumans http://bullet.googlecode.com + +This software is provided 'as-is', without any express or implied warranty. +In no event will the authors be held liable for any damages arising from the use of this software. +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it freely, +subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. +2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. +3. This notice may not be removed or altered from any source distribution. +*/ + + + +#ifndef BT_TASK_SCHEDULER_H +#define BT_TASK_SCHEDULER_H + + +class btITaskScheduler; + +btITaskScheduler* createDefaultTaskScheduler(); + + +#endif // BT_TASK_SCHEDULER_H diff --git a/examples/OpenCL/broadphase/PairBench.cpp b/examples/OpenCL/broadphase/PairBench.cpp index f1c8ac5c5..55074f48f 100644 --- a/examples/OpenCL/broadphase/PairBench.cpp +++ b/examples/OpenCL/broadphase/PairBench.cpp @@ -71,10 +71,10 @@ public: dist = 130; } - float pitch = 62; - float yaw = 33; + float pitch = -33; + float yaw = 62; float targetPos[4]={15.5,12.5,15.5,0}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } }; diff --git a/examples/OpenCL/rigidbody/GpuConvexScene.cpp b/examples/OpenCL/rigidbody/GpuConvexScene.cpp index 796a9922d..78a3beb86 100644 --- a/examples/OpenCL/rigidbody/GpuConvexScene.cpp +++ b/examples/OpenCL/rigidbody/GpuConvexScene.cpp @@ -150,8 +150,8 @@ void GpuConvexScene::setupScene() m_guiHelper->getRenderInterface()->getActiveCamera()->setCameraTargetPosition(camPos[0],camPos[1],camPos[2]); m_guiHelper->getRenderInterface()->getActiveCamera()->setCameraDistance(150); //m_instancingRenderer->setCameraYaw(85); - m_guiHelper->getRenderInterface()->getActiveCamera()->setCameraYaw(30); - m_guiHelper->getRenderInterface()->getActiveCamera()->setCameraPitch(225); + m_guiHelper->getRenderInterface()->getActiveCamera()->setCameraYaw(225); + m_guiHelper->getRenderInterface()->getActiveCamera()->setCameraPitch(-30); m_guiHelper->getRenderInterface()->updateCamera(1);//>updateCamera(); @@ -657,4 +657,4 @@ int GpuTetraScene::createDynamicsObjects() class CommonExampleInterface* OpenCLBoxBoxCreateFunc(struct CommonExampleOptions& options) { return new GpuBoxPlaneScene(options.m_guiHelper); -} \ No newline at end of file +} diff --git a/examples/OpenCL/rigidbody/GpuRigidBodyDemo.cpp b/examples/OpenCL/rigidbody/GpuRigidBodyDemo.cpp index 79504f331..004866850 100644 --- a/examples/OpenCL/rigidbody/GpuRigidBodyDemo.cpp +++ b/examples/OpenCL/rigidbody/GpuRigidBodyDemo.cpp @@ -86,10 +86,10 @@ m_window(0) void GpuRigidBodyDemo::resetCamera() { float dist = 114; - float pitch = 52; - float yaw = 35; + float pitch = -35; + float yaw = 52; float targetPos[3]={0,0,0}; - m_data->m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_data->m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } GpuRigidBodyDemo::~GpuRigidBodyDemo() diff --git a/examples/OpenGLWindow/CMakeLists.txt b/examples/OpenGLWindow/CMakeLists.txt index 55b53b053..5d1f37d9b 100644 --- a/examples/OpenGLWindow/CMakeLists.txt +++ b/examples/OpenGLWindow/CMakeLists.txt @@ -1,6 +1,7 @@ INCLUDE_DIRECTORIES( .. + ../ThirdPartyLibs ../../src ) diff --git a/examples/OpenGLWindow/GLInstancingRenderer.cpp b/examples/OpenGLWindow/GLInstancingRenderer.cpp index 8974cf24a..c00f41be4 100644 --- a/examples/OpenGLWindow/GLInstancingRenderer.cpp +++ b/examples/OpenGLWindow/GLInstancingRenderer.cpp @@ -23,7 +23,7 @@ float shadowMapWorldSize=10; #define MAX_POINTS_IN_BATCH 1024 #define MAX_LINES_IN_BATCH 1024 - +#define MAX_TRIANGLES_IN_BATCH 8192 #include "OpenGLInclude.h" #include "../CommonInterfaces/CommonWindowInterface.h" @@ -52,6 +52,7 @@ float shadowMapWorldSize=10; #include "Bullet3Common/b3Vector3.h" #include "Bullet3Common/b3Quaternion.h" +#include "Bullet3Common/b3Transform.h" #include "Bullet3Common/b3Matrix3x3.h" #include "Bullet3Common/b3ResizablePool.h" @@ -75,6 +76,38 @@ float shadowMapWorldSize=10; +static const char* triangleVertexShaderText = +"#version 330\n" +"precision highp float;" +"uniform mat4 MVP;\n" +"uniform vec3 vCol;\n" +"layout (location = 0) in vec3 vPos;\n" +"layout (location = 1) in vec2 vUV;\n" + +"out vec3 clr;\n" +"out vec2 uv0;\n" +"void main()\n" +"{\n" +" gl_Position = MVP * vec4(vPos,1);\n" +" clr = vCol;\n" +" uv0 = vUV;\n" +"}\n"; + + +static const char* triangleFragmentShader = +"#version 330\n" +"precision highp float;" +"in vec3 clr;\n" +"in vec2 uv0;" +"out vec4 color;" +"uniform sampler2D Diffuse;" +"void main()\n" +"{\n" +" vec4 texel = texture(Diffuse,uv0);\n" +" color = vec4(clr,texel.r)*texel;\n" +"}\n"; + + //#include "../../opencl/gpu_rigidbody_pipeline/b3GpuNarrowphaseAndSolver.h"//for m_maxNumObjectCapacity @@ -82,31 +115,43 @@ static InternalDataRenderer* sData2; GLint lineWidthRange[2]={1,1}; +enum +{ + eGfxTransparency=1, + eGfxHasTexture = 2, +}; + struct b3GraphicsInstance { - GLuint m_cube_vao; - GLuint m_index_vbo; - GLuint m_texturehandle; - + GLuint m_cube_vao; + GLuint m_index_vbo; + GLuint m_textureIndex; int m_numIndices; int m_numVertices; + int m_numGraphicsInstances; b3AlignedObjectArray m_tempObjectUids; int m_instanceOffset; int m_vertexArrayOffset; int m_primitiveType; + float m_materialShinyNess; + b3Vector3 m_materialSpecularColor; + int m_flags;//transparency etc b3GraphicsInstance() :m_cube_vao(-1), m_index_vbo(-1), - m_texturehandle(0), + m_textureIndex(-1), m_numIndices(-1), m_numVertices(-1), m_numGraphicsInstances(0), m_instanceOffset(0), m_vertexArrayOffset(0), - m_primitiveType(B3_GL_TRIANGLES) + m_primitiveType(B3_GL_TRIANGLES), + m_materialShinyNess(41), + m_materialSpecularColor(b3MakeVector3(.5,.5,.5)), + m_flags(0) { } @@ -144,6 +189,7 @@ struct InternalTextureHandle GLuint m_glTexture; int m_width; int m_height; + int m_enableFiltering; }; struct b3PublicGraphicsInstanceData @@ -171,8 +217,10 @@ struct InternalDataRenderer : public GLInstanceRendererInternalData GLfloat m_projectionMatrix[16]; GLfloat m_viewMatrix[16]; + GLfloat m_viewMatrixInverse[16]; b3Vector3 m_lightPos; + b3Vector3 m_lightSpecularIntensity; GLuint m_defaultTexturehandle; b3AlignedObjectArray m_textureHandles; @@ -192,13 +240,15 @@ struct InternalDataRenderer : public GLInstanceRendererInternalData m_shadowTexture(0), m_renderFrameBuffer(0) { - m_lightPos=b3MakeVector3(-50,50,50); + m_lightPos=b3MakeVector3(-50,30,40); + m_lightSpecularIntensity.setValue(1,1,1); //clear to zero to make it obvious if the matrix is used uninitialized for (int i=0;i<16;i++) { m_projectionMatrix[i]=0; m_viewMatrix[i]=0; + m_viewMatrixInverse[i]=0; } } @@ -213,6 +263,16 @@ struct GLInstanceRendererInternalData* GLInstancingRenderer::getInternalData() } +static GLuint triangleShaderProgram; +static GLint triangle_mvp_location=-1; +static GLint triangle_vpos_location=-1; +static GLint triangle_vUV_location=-1; +static GLint triangle_vcol_location=-1; +static GLuint triangleVertexBufferObject=0; +static GLuint triangleVertexArrayObject=0; +static GLuint triangleIndexVbo=0; + + static GLuint linesShader; // The line renderer static GLuint useShadowMapInstancingShader; // The shadow instancing renderer static GLuint createShadowMapInstancingShader; // The shadow instancing renderer @@ -237,9 +297,14 @@ GLuint linesVertexArrayObject=0; GLuint linesIndexVbo = 0; +static GLint useShadow_ViewMatrixInverse=0; static GLint useShadow_ModelViewMatrix=0; +static GLint useShadow_lightSpecularIntensity = 0; +static GLint useShadow_materialSpecularColor = 0; static GLint useShadow_MVP=0; -static GLint useShadow_lightDirIn=0; +static GLint useShadow_lightPosIn=0; +static GLint useShadow_cameraPositionIn = 0; +static GLint useShadow_materialShininessIn = 0; static GLint useShadow_ProjectionMatrix=0; static GLint useShadow_DepthBiasModelViewMatrix=0; @@ -253,7 +318,7 @@ static GLint ProjectionMatrix=0; static GLint regularLightDirIn=0; -static GLint uniform_texture_diffuse = 0; +static GLint uniform_texture_diffuse = 0; static GLint screenWidthPointSprite=0; static GLint ModelViewMatrixPointSprite=0; @@ -268,8 +333,7 @@ GLInstancingRenderer::GLInstancingRenderer(int maxNumObjectCapacity, int maxShap m_textureinitialized(false), m_screenWidth(0), m_screenHeight(0), - m_upAxis(1), - m_enableBlend(false) + m_upAxis(1) { m_data = new InternalDataRenderer; @@ -330,16 +394,51 @@ GLInstancingRenderer::~GLInstancingRenderer() +int GLInstancingRenderer::getShapeIndexFromInstance(int srcIndex) +{ + b3PublicGraphicsInstance* pg = m_data->m_publicGraphicsInstances.getHandle(srcIndex); + if (pg) + { + return pg->m_shapeIndex; + } + return -1; +} +bool GLInstancingRenderer::readSingleInstanceTransformToCPU(float* position, float* orientation, int shapeIndex) +{ + b3PublicGraphicsInstance* pg = m_data->m_publicGraphicsInstances.getHandle(shapeIndex); + if (pg) + { + int srcIndex = pg->m_internalInstanceIndex; + if ((srcIndexm_totalNumInstances) && (srcIndex>=0)) + { + position[0] = m_data->m_instance_positions_ptr[srcIndex*4+0]; + position[1] = m_data->m_instance_positions_ptr[srcIndex*4+1]; + position[2] = m_data->m_instance_positions_ptr[srcIndex*4+2]; -void GLInstancingRenderer::writeSingleInstanceTransformToCPU(const float* position, const float* orientation, int bodyUniqueId) + orientation[0] = m_data->m_instance_quaternion_ptr[srcIndex*4+0]; + orientation[1] = m_data->m_instance_quaternion_ptr[srcIndex*4+1]; + orientation[2] = m_data->m_instance_quaternion_ptr[srcIndex*4+2]; + orientation[3] = m_data->m_instance_quaternion_ptr[srcIndex*4+3]; + return true; + } + } + + return false; +} + +void GLInstancingRenderer::writeSingleInstanceTransformToCPU(const float* position, const float* orientation, int srcIndex2) { - b3PublicGraphicsInstance* pg = m_data->m_publicGraphicsInstances.getHandle(bodyUniqueId); + b3PublicGraphicsInstance* pg = m_data->m_publicGraphicsInstances.getHandle(srcIndex2); b3Assert(pg); + + if (pg==0) + return; + int srcIndex = pg->m_internalInstanceIndex; b3Assert(srcIndexm_totalNumInstances); @@ -357,9 +456,9 @@ void GLInstancingRenderer::writeSingleInstanceTransformToCPU(const float* positi } -void GLInstancingRenderer::readSingleInstanceTransformFromCPU(int bodyUniqueId, float* position, float* orientation) +void GLInstancingRenderer::readSingleInstanceTransformFromCPU(int srcIndex2, float* position, float* orientation) { - b3PublicGraphicsInstance* pg = m_data->m_publicGraphicsInstances.getHandle(bodyUniqueId); + b3PublicGraphicsInstance* pg = m_data->m_publicGraphicsInstances.getHandle(srcIndex2); b3Assert(pg); int srcIndex = pg->m_internalInstanceIndex; @@ -375,9 +474,9 @@ void GLInstancingRenderer::readSingleInstanceTransformFromCPU(int bodyUniqueId, orientation[2] = m_data->m_instance_quaternion_ptr[srcIndex*4+2]; orientation[3] = m_data->m_instance_quaternion_ptr[srcIndex*4+3]; } -void GLInstancingRenderer::writeSingleInstanceColorToCPU(const double* color, int bodyUniqueId) +void GLInstancingRenderer::writeSingleInstanceColorToCPU(const double* color, int srcIndex2) { - b3PublicGraphicsInstance* pg = m_data->m_publicGraphicsInstances.getHandle(bodyUniqueId); + b3PublicGraphicsInstance* pg = m_data->m_publicGraphicsInstances.getHandle(srcIndex2); b3Assert(pg); int srcIndex = pg->m_internalInstanceIndex; @@ -387,9 +486,9 @@ void GLInstancingRenderer::writeSingleInstanceColorToCPU(const double* color, in m_data->m_instance_colors_ptr[srcIndex*4+3]=float(color[3]); } -void GLInstancingRenderer::writeSingleInstanceColorToCPU(const float* color, int bodyUniqueId) +void GLInstancingRenderer::writeSingleInstanceColorToCPU(const float* color, int srcIndex2) { - b3PublicGraphicsInstance* pg = m_data->m_publicGraphicsInstances.getHandle(bodyUniqueId); + b3PublicGraphicsInstance* pg = m_data->m_publicGraphicsInstances.getHandle(srcIndex2); b3Assert(pg); int srcIndex = pg->m_internalInstanceIndex; @@ -399,9 +498,9 @@ void GLInstancingRenderer::writeSingleInstanceColorToCPU(const float* color, int m_data->m_instance_colors_ptr[srcIndex*4+3]=color[3]; } -void GLInstancingRenderer::writeSingleInstanceScaleToCPU(const float* scale, int bodyUniqueId) +void GLInstancingRenderer::writeSingleInstanceScaleToCPU(const float* scale, int srcIndex2) { - b3PublicGraphicsInstance* pg = m_data->m_publicGraphicsInstances.getHandle(bodyUniqueId); + b3PublicGraphicsInstance* pg = m_data->m_publicGraphicsInstances.getHandle(srcIndex2); b3Assert(pg); int srcIndex = pg->m_internalInstanceIndex; @@ -410,9 +509,63 @@ void GLInstancingRenderer::writeSingleInstanceScaleToCPU(const float* scale, int m_data->m_instance_scale_ptr[srcIndex*3+2]=scale[2]; } -void GLInstancingRenderer::writeSingleInstanceScaleToCPU(const double* scale, int bodyUniqueId) +void GLInstancingRenderer::writeSingleInstanceSpecularColorToCPU(const double* specular, int srcIndex2) { - b3PublicGraphicsInstance* pg = m_data->m_publicGraphicsInstances.getHandle(bodyUniqueId); + b3PublicGraphicsInstance* pg = m_data->m_publicGraphicsInstances.getHandle(srcIndex2); + b3Assert(pg); + int graphicsIndex = pg->m_internalInstanceIndex; + + int totalNumInstances = 0; + + int gfxObjIndex = -1; + + for (int i=0;im_numGraphicsInstances; + if (srcIndex20) + { + m_graphicsInstances[gfxObjIndex]->m_materialSpecularColor[0] = specular[0]; + m_graphicsInstances[gfxObjIndex]->m_materialSpecularColor[1] = specular[1]; + m_graphicsInstances[gfxObjIndex]->m_materialSpecularColor[2] = specular[2]; + } +} +void GLInstancingRenderer::writeSingleInstanceSpecularColorToCPU(const float* specular, int srcIndex2) +{ + b3PublicGraphicsInstance* pg = m_data->m_publicGraphicsInstances.getHandle(srcIndex2); + b3Assert(pg); + int srcIndex = pg->m_internalInstanceIndex; + + int totalNumInstances = 0; + + int gfxObjIndex = -1; + + for (int i=0;im_numGraphicsInstances; + if (srcIndex20) + { + m_graphicsInstances[gfxObjIndex]->m_materialSpecularColor[0] = specular[0]; + m_graphicsInstances[gfxObjIndex]->m_materialSpecularColor[1] = specular[1]; + m_graphicsInstances[gfxObjIndex]->m_materialSpecularColor[2] = specular[2]; + } +} + + +void GLInstancingRenderer::writeSingleInstanceScaleToCPU(const double* scale, int srcIndex2) +{ + b3PublicGraphicsInstance* pg = m_data->m_publicGraphicsInstances.getHandle(srcIndex2); b3Assert(pg); int srcIndex = pg->m_internalInstanceIndex; @@ -629,8 +782,8 @@ void GLInstancingRenderer::rebuildGraphicsInstances() for (int i=0;im_publicGraphicsInstances.getHandle(bodyUniqueId); + int srcIndex2 = usedObjects[i]; + b3PublicGraphicsInstance* pg = m_data->m_publicGraphicsInstances.getHandle(srcIndex2); b3Assert(pg); int srcIndex = pg->m_internalInstanceIndex; @@ -657,9 +810,9 @@ void GLInstancingRenderer::rebuildGraphicsInstances() } for (int i=0;im_publicGraphicsInstances.getHandle(bodyUniqueId); - m_graphicsInstances[pg->m_shapeIndex]->m_tempObjectUids.push_back(bodyUniqueId); + int srcIndex2 = usedObjects[i]; + b3PublicGraphicsInstance* pg = m_data->m_publicGraphicsInstances.getHandle(srcIndex2); + m_graphicsInstances[pg->m_shapeIndex]->m_tempObjectUids.push_back(srcIndex2); } int curOffset = 0; @@ -729,6 +882,10 @@ int GLInstancingRenderer::registerGraphicsInstanceInternal(int newUid, const flo m_data->m_instance_scale_ptr[index*3+1] = scaling[1]; m_data->m_instance_scale_ptr[index*3+2] = scaling[2]; + if (color[3]<1 && color[3]>0) + { + gfxObj->m_flags |= eGfxTransparency; + } gfxObj->m_numGraphicsInstances++; m_data->m_totalNumInstances++; } else @@ -783,7 +940,7 @@ int GLInstancingRenderer::registerGraphicsInstance(int shapeIndex, const float* } -int GLInstancingRenderer::registerTexture(const unsigned char* texels, int width, int height) +int GLInstancingRenderer::registerTexture(const unsigned char* texels, int width, int height, bool flipPixelsY) { b3Assert(glGetError() ==GL_NO_ERROR); glActiveTexture(GL_TEXTURE0); @@ -799,44 +956,66 @@ int GLInstancingRenderer::registerTexture(const unsigned char* texels, int width h.m_glTexture = textureHandle; h.m_width = width; h.m_height = height; - + h.m_enableFiltering = true; m_data->m_textureHandles.push_back(h); - updateTexture(textureIndex, texels); + if (texels) + { + updateTexture(textureIndex, texels, flipPixelsY); + } return textureIndex; } -void GLInstancingRenderer::updateTexture(int textureIndex, const unsigned char* texels) +void GLInstancingRenderer::replaceTexture(int shapeIndex, int textureId) +{ + if (shapeIndex >=0 && shapeIndex < m_data->m_textureHandles.size()) + { + b3GraphicsInstance* gfxObj = m_graphicsInstances[shapeIndex]; + if (textureId>=0) + { + gfxObj->m_textureIndex = textureId; + gfxObj->m_flags |= eGfxHasTexture; + + } + } +} + +void GLInstancingRenderer::updateTexture(int textureIndex, const unsigned char* texels, bool flipPixelsY) { if (textureIndex>=0) { - - - glActiveTexture(GL_TEXTURE0); b3Assert(glGetError() ==GL_NO_ERROR); InternalTextureHandle& h = m_data->m_textureHandles[textureIndex]; + glBindTexture(GL_TEXTURE_2D,h.m_glTexture); + b3Assert(glGetError() ==GL_NO_ERROR); - //textures need to be flipped for OpenGL... - b3AlignedObjectArray flippedTexels; - flippedTexels.resize(h.m_width* h.m_height * 3); - for (int i = 0; i < h.m_width; i++) + if (flipPixelsY) { - for (int j = 0; j < h.m_height; j++) + //textures need to be flipped for OpenGL... + b3AlignedObjectArray flippedTexels; + flippedTexels.resize(h.m_width* h.m_height * 3); + + for (int i = 0; i < h.m_width; i++) { - flippedTexels[(i + j*h.m_width) * 3] = texels[(i + (h.m_height - 1 -j )*h.m_width) * 3]; - flippedTexels[(i + j*h.m_width) * 3+1] = texels[(i + (h.m_height - 1 - j)*h.m_width) * 3+1]; - flippedTexels[(i + j*h.m_width) * 3+2] = texels[(i + (h.m_height - 1 - j)*h.m_width) * 3+2]; + for (int j = 0; j < h.m_height; j++) + { + flippedTexels[(i + j*h.m_width) * 3] = texels[(i + (h.m_height - 1 -j )*h.m_width) * 3]; + flippedTexels[(i + j*h.m_width) * 3+1] = texels[(i + (h.m_height - 1 - j)*h.m_width) * 3+1]; + flippedTexels[(i + j*h.m_width) * 3+2] = texels[(i + (h.m_height - 1 - j)*h.m_width) * 3+2]; + } } + + glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, h.m_width,h.m_height,0,GL_RGB,GL_UNSIGNED_BYTE,&flippedTexels[0]); + } else + { + glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, h.m_width,h.m_height,0,GL_RGB,GL_UNSIGNED_BYTE,&texels[0]); } - - - glBindTexture(GL_TEXTURE_2D,h.m_glTexture); b3Assert(glGetError() ==GL_NO_ERROR); - // const GLubyte* image= (const GLubyte*)texels; - glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, h.m_width,h.m_height,0,GL_RGB,GL_UNSIGNED_BYTE,&flippedTexels[0]); - b3Assert(glGetError() ==GL_NO_ERROR); - glGenerateMipmap(GL_TEXTURE_2D); + if (h.m_enableFiltering) + { + glGenerateMipmap(GL_TEXTURE_2D); + } b3Assert(glGetError() ==GL_NO_ERROR); } } @@ -873,7 +1052,8 @@ int GLInstancingRenderer::registerShape(const float* vertices, int numvertices, if (textureId>=0) { - gfxObj->m_texturehandle = m_data->m_textureHandles[textureId].m_glTexture; + gfxObj->m_textureIndex = textureId; + gfxObj->m_flags |= eGfxHasTexture; } gfxObj->m_primitiveType = primitiveType; @@ -952,6 +1132,32 @@ void GLInstancingRenderer::InitShaders() int COLOR_BUFFER_SIZE = (m_data->m_maxNumObjectCapacity*sizeof(float)*4); int SCALE_BUFFER_SIZE = (m_data->m_maxNumObjectCapacity*sizeof(float)*3); + { + triangleShaderProgram = gltLoadShaderPair(triangleVertexShaderText,triangleFragmentShader); + + //triangle_vpos_location = glGetAttribLocation(triangleShaderProgram, "vPos"); + //triangle_vUV_location = glGetAttribLocation(triangleShaderProgram, "vUV"); + + triangle_mvp_location = glGetUniformLocation(triangleShaderProgram, "MVP"); + triangle_vcol_location = glGetUniformLocation(triangleShaderProgram, "vCol"); + + glLinkProgram(triangleShaderProgram); + glUseProgram(triangleShaderProgram); + + glGenVertexArrays(1, &triangleVertexArrayObject); + glBindVertexArray(triangleVertexArrayObject); + + glGenBuffers(1, &triangleVertexBufferObject); + glGenBuffers(1, &triangleIndexVbo); + + int sz = MAX_TRIANGLES_IN_BATCH*sizeof(GfxVertexFormat0); + glBindVertexArray(triangleVertexArrayObject); + glBindBuffer(GL_ARRAY_BUFFER, triangleVertexBufferObject); + glBufferData(GL_ARRAY_BUFFER, sz, 0, GL_DYNAMIC_DRAW); + + glBindVertexArray(0); + } + linesShader = gltLoadShaderPair(linesVertexShader,linesFragmentShader); lines_ModelViewMatrix = glGetUniformLocation(linesShader, "ModelViewMatrix"); lines_ProjectionMatrix = glGetUniformLocation(linesShader, "ProjectionMatrix"); @@ -999,13 +1205,18 @@ void GLInstancingRenderer::InitShaders() glLinkProgram(useShadowMapInstancingShader); glUseProgram(useShadowMapInstancingShader); + useShadow_ViewMatrixInverse = glGetUniformLocation(useShadowMapInstancingShader, "ViewMatrixInverse"); useShadow_ModelViewMatrix = glGetUniformLocation(useShadowMapInstancingShader, "ModelViewMatrix"); + useShadow_lightSpecularIntensity = glGetUniformLocation(useShadowMapInstancingShader, "lightSpecularIntensityIn"); + useShadow_materialSpecularColor = glGetUniformLocation(useShadowMapInstancingShader, "materialSpecularColorIn"); useShadow_MVP = glGetUniformLocation(useShadowMapInstancingShader, "MVP"); useShadow_ProjectionMatrix = glGetUniformLocation(useShadowMapInstancingShader, "ProjectionMatrix"); useShadow_DepthBiasModelViewMatrix = glGetUniformLocation(useShadowMapInstancingShader, "DepthBiasModelViewProjectionMatrix"); useShadow_uniform_texture_diffuse = glGetUniformLocation(useShadowMapInstancingShader, "Diffuse"); useShadow_shadowMap = glGetUniformLocation(useShadowMapInstancingShader,"shadowMap"); - useShadow_lightDirIn = glGetUniformLocation(useShadowMapInstancingShader,"lightDirIn"); + useShadow_lightPosIn = glGetUniformLocation(useShadowMapInstancingShader,"lightPosIn"); + useShadow_cameraPositionIn = glGetUniformLocation(useShadowMapInstancingShader,"cameraPositionIn"); + useShadow_materialShininessIn = glGetUniformLocation(useShadowMapInstancingShader,"materialShininessIn"); createShadowMapInstancingShader = gltLoadShaderPair(createShadowMapInstancingVertexShader,createShadowMapInstancingFragmentShader); glLinkProgram(createShadowMapInstancingShader); @@ -1172,6 +1383,15 @@ void GLInstancingRenderer::setActiveCamera(CommonCameraInterface* cam) m_data->m_activeCamera = cam; } +void GLInstancingRenderer::setLightSpecularIntensity(const float lightSpecularIntensity[3]) +{ + m_data->m_lightSpecularIntensity[0] = lightSpecularIntensity[0]; + m_data->m_lightSpecularIntensity[1] = lightSpecularIntensity[1]; + m_data->m_lightSpecularIntensity[2] = lightSpecularIntensity[2]; +} + + + void GLInstancingRenderer::setLightPosition(const float lightPos[3]) { m_data->m_lightPos[0] = lightPos[0]; @@ -1198,6 +1418,21 @@ void GLInstancingRenderer::updateCamera(int upAxis) m_data->m_defaultCamera1.update(); m_data->m_activeCamera->getCameraProjectionMatrix(m_data->m_projectionMatrix); m_data->m_activeCamera->getCameraViewMatrix(m_data->m_viewMatrix); + b3Scalar viewMat[16]; + b3Scalar viewMatInverse[16]; + + for (int i=0;i<16;i++) + { + viewMat[i] = m_data->m_viewMatrix[i]; + } + b3Transform tr; + tr.setFromOpenGLMatrix(viewMat); + tr = tr.inverse(); + tr.getOpenGLMatrix(viewMatInverse); + for (int i=0;i<16;i++) + { + m_data->m_viewMatrixInverse[i]=viewMatInverse[i]; + } } @@ -1206,7 +1441,7 @@ void GLInstancingRenderer::updateCamera(int upAxis) //#define STB_IMAGE_WRITE_IMPLEMENTATION -#include "stb_image_write.h" +#include "stb_image/stb_image_write.h" void writeTextureToPng(int textureWidth, int textureHeight, const char* fileName, int numComponents) { @@ -1294,6 +1529,214 @@ void GLInstancingRenderer::renderScene() } +struct PointerCaster +{ + union { + int m_baseIndex; + GLvoid* m_pointer; + }; + + PointerCaster() + :m_pointer(0) + { + } + + +}; + + + +#if 0 +static void b3CreateFrustum( + float left, + float right, + float bottom, + float top, + float nearVal, + float farVal, + float frustum[16]) +{ + + frustum[0*4+0] = (float(2) * nearVal) / (right - left); + frustum[0*4+1] = float(0); + frustum[0*4+2] = float(0); + frustum[0*4+3] = float(0); + + frustum[1*4+0] = float(0); + frustum[1*4+1] = (float(2) * nearVal) / (top - bottom); + frustum[1*4+2] = float(0); + frustum[1*4+3] = float(0); + + frustum[2*4+0] = (right + left) / (right - left); + frustum[2*4+1] = (top + bottom) / (top - bottom); + frustum[2*4+2] = -(farVal + nearVal) / (farVal - nearVal); + frustum[2*4+3] = float(-1); + + frustum[3*4+0] = float(0); + frustum[3*4+1] = float(0); + frustum[3*4+2] = -(float(2) * farVal * nearVal) / (farVal - nearVal); + frustum[3*4+3] = float(0); + +} +#endif + +static void b3Matrix4x4Mul(GLfloat aIn[4][4], GLfloat bIn[4][4], GLfloat result[4][4]) +{ + for (int j=0;j<4;j++) + for (int i=0;i<4;i++) + result[j][i] = aIn[0][i] * bIn[j][0] + aIn[1][i] * bIn[j][1] + aIn[2][i] * bIn[j][2] + aIn[3][i] * bIn[j][3]; +} + +static void b3Matrix4x4Mul16(GLfloat aIn[16], GLfloat bIn[16], GLfloat result[16]) +{ + for (int j=0;j<4;j++) + for (int i=0;i<4;i++) + result[j*4+i] = aIn[0*4+i] * bIn[j*4+0] + aIn[1*4+i] * bIn[j*4+1] + aIn[2*4+i] * bIn[j*4+2] + aIn[3*4+i] * bIn[j*4+3]; +} + + +static void b3CreateDiagonalMatrix(GLfloat value, GLfloat result[4][4]) +{ + for (int i=0;i<4;i++) + { + for (int j=0;j<4;j++) + { + if (i==j) + { + result[i][j] = value; + } else + { + result[i][j] = 0.f; + } + } + } +} + +static void b3CreateOrtho(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar, GLfloat result[4][4]) +{ + b3CreateDiagonalMatrix(1.f,result); + + result[0][0] = 2.f / (right - left); + result[1][1] = 2.f / (top - bottom); + result[2][2] = - 2.f / (zFar - zNear); + result[3][0] = - (right + left) / (right - left); + result[3][1] = - (top + bottom) / (top - bottom); + result[3][2] = - (zFar + zNear) / (zFar - zNear); +} + +static void b3CreateLookAt(const b3Vector3& eye, const b3Vector3& center,const b3Vector3& up, GLfloat result[16]) +{ + b3Vector3 f = (center - eye).normalized(); + b3Vector3 u = up.normalized(); + b3Vector3 s = (f.cross(u)).normalized(); + u = s.cross(f); + + result[0*4+0] = s.x; + result[1*4+0] = s.y; + result[2*4+0] = s.z; + + result[0*4+1] = u.x; + result[1*4+1] = u.y; + result[2*4+1] = u.z; + + result[0*4+2] =-f.x; + result[1*4+2] =-f.y; + result[2*4+2] =-f.z; + + result[0*4+3] = 0.f; + result[1*4+3] = 0.f; + result[2*4+3] = 0.f; + + result[3*4+0] = -s.dot(eye); + result[3*4+1] = -u.dot(eye); + result[3*4+2] = f.dot(eye); + result[3*4+3] = 1.f; +} + + + + + + + +void GLInstancingRenderer::drawTexturedTriangleMesh(float worldPosition[3], float worldOrientation[4], const float* vertices, int numvertices, const unsigned int* indices, int numIndices, float colorRGBA[4], int textureIndex, int vertexLayout) +{ + int sz = sizeof(GfxVertexFormat0); + + glActiveTexture(GL_TEXTURE0); + activateTexture(textureIndex); + checkError("activateTexture"); + + glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); + glUseProgram(triangleShaderProgram); + + b3Quaternion orn(worldOrientation[0],worldOrientation[1],worldOrientation[2],worldOrientation[3]); + b3Vector3 pos = b3MakeVector3(worldPosition[0],worldPosition[1],worldPosition[2]); + + + b3Transform worldTrans(orn,pos); + b3Scalar worldMatUnk[16]; + worldTrans.getOpenGLMatrix(worldMatUnk); + float modelMat[16]; + for (int i=0;i<16;i++) + { + modelMat[i] = worldMatUnk[i]; + } + float viewProjection[16]; + b3Matrix4x4Mul16(m_data->m_projectionMatrix,m_data->m_viewMatrix,viewProjection); + float MVP[16]; + b3Matrix4x4Mul16(viewProjection,modelMat,MVP); + glUniformMatrix4fv(triangle_mvp_location, 1, GL_FALSE, (const GLfloat*) MVP); + checkError("glUniformMatrix4fv"); + + glUniform3f(triangle_vcol_location,colorRGBA[0],colorRGBA[1],colorRGBA[2]); + checkError("glUniform3f"); + + glBindVertexArray(triangleVertexArrayObject); + checkError("glBindVertexArray"); + + glBindBuffer(GL_ARRAY_BUFFER, triangleVertexBufferObject); + checkError("glBindBuffer"); + + glBufferData(GL_ARRAY_BUFFER, sizeof(GfxVertexFormat0)*numvertices, 0, GL_DYNAMIC_DRAW); + glBufferSubData(GL_ARRAY_BUFFER, 0, sizeof(GfxVertexFormat0)*numvertices, vertices); + + PointerCaster posCast; + posCast.m_baseIndex = 0; + PointerCaster uvCast; + uvCast.m_baseIndex = 8*sizeof(float); + glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, sizeof(GfxVertexFormat0), posCast.m_pointer); + glVertexAttribPointer(1, 2, GL_FLOAT, GL_FALSE, sizeof(GfxVertexFormat0), uvCast.m_pointer); + checkError("glVertexAttribPointer"); + glEnableVertexAttribArray(0); + glEnableVertexAttribArray(1); + + glVertexAttribDivisor(0,0); + glVertexAttribDivisor(1,0); + checkError("glVertexAttribDivisor"); + + glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, triangleIndexVbo); + int indexBufferSizeInBytes = numIndices*sizeof(int); + + glBufferData(GL_ELEMENT_ARRAY_BUFFER, numIndices*sizeof(int), NULL, GL_DYNAMIC_DRAW); + glBufferSubData(GL_ELEMENT_ARRAY_BUFFER, 0, numIndices*sizeof(int), indices); + + glDrawElements(GL_TRIANGLES, numIndices, GL_UNSIGNED_INT, 0); + + //glDrawElements(GL_TRIANGLES, numIndices, GL_UNSIGNED_INT,indices); + checkError("glDrawElements"); + + glActiveTexture(GL_TEXTURE0); + glBindTexture(GL_TEXTURE_2D,0); + glUseProgram(0); + glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); + glBindBuffer(GL_ARRAY_BUFFER,0); + glBindVertexArray(0); + checkError("glBindVertexArray"); + +} + + void GLInstancingRenderer::drawPoint(const double* position, const double color[4], double pointDrawSize) { float pos[4]={(float)position[0],(float)position[1],(float)position[2],0}; @@ -1359,8 +1802,7 @@ void GLInstancingRenderer::drawLines(const float* positions, const float color[4 b3Clamp(lineWidth,(float)lineWidthRange[0],(float)lineWidthRange[1]); glLineWidth(lineWidth); - glBindBuffer(GL_ARRAY_BUFFER, m_data->m_vbo); - b3Assert(glGetError() ==GL_NO_ERROR); + glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); glActiveTexture(GL_TEXTURE0); @@ -1491,132 +1933,24 @@ void GLInstancingRenderer::drawLine(const float from[4], const float to[4], cons glUseProgram(0); } -struct PointerCaster +struct SortableTransparentInstance { - union { - int m_baseIndex; - GLvoid* m_pointer; - }; - - PointerCaster() - :m_pointer(0) - { - } - - + int m_shapeIndex; + int m_instanceId; + b3Vector3 m_centerPosition; }; - - -#if 0 -static void b3CreateFrustum( - float left, - float right, - float bottom, - float top, - float nearVal, - float farVal, - float frustum[16]) +struct TransparentDistanceSortPredicate { + b3Vector3 m_camForwardVec; - frustum[0*4+0] = (float(2) * nearVal) / (right - left); - frustum[0*4+1] = float(0); - frustum[0*4+2] = float(0); - frustum[0*4+3] = float(0); - - frustum[1*4+0] = float(0); - frustum[1*4+1] = (float(2) * nearVal) / (top - bottom); - frustum[1*4+2] = float(0); - frustum[1*4+3] = float(0); - - frustum[2*4+0] = (right + left) / (right - left); - frustum[2*4+1] = (top + bottom) / (top - bottom); - frustum[2*4+2] = -(farVal + nearVal) / (farVal - nearVal); - frustum[2*4+3] = float(-1); - - frustum[3*4+0] = float(0); - frustum[3*4+1] = float(0); - frustum[3*4+2] = -(float(2) * farVal * nearVal) / (farVal - nearVal); - frustum[3*4+3] = float(0); - -} -#endif - -static void b3Matrix4x4Mul(GLfloat aIn[4][4], GLfloat bIn[4][4], GLfloat result[4][4]) -{ - for (int j=0;j<4;j++) - for (int i=0;i<4;i++) - result[j][i] = aIn[0][i] * bIn[j][0] + aIn[1][i] * bIn[j][1] + aIn[2][i] * bIn[j][2] + aIn[3][i] * bIn[j][3]; -} - -static void b3Matrix4x4Mul16(GLfloat aIn[16], GLfloat bIn[16], GLfloat result[16]) -{ - for (int j=0;j<4;j++) - for (int i=0;i<4;i++) - result[j*4+i] = aIn[0*4+i] * bIn[j*4+0] + aIn[1*4+i] * bIn[j*4+1] + aIn[2*4+i] * bIn[j*4+2] + aIn[3*4+i] * bIn[j*4+3]; -} - - -static void b3CreateDiagonalMatrix(GLfloat value, GLfloat result[4][4]) -{ - for (int i=0;i<4;i++) + inline bool operator() (const SortableTransparentInstance& a, const SortableTransparentInstance& b) const { - for (int j=0;j<4;j++) - { - if (i==j) - { - result[i][j] = value; - } else - { - result[i][j] = 0.f; - } - } + b3Scalar projA = a.m_centerPosition.dot(m_camForwardVec); + b3Scalar projB = b.m_centerPosition.dot(m_camForwardVec); + return (projA > projB); } -} - -static void b3CreateOrtho(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar, GLfloat result[4][4]) -{ - b3CreateDiagonalMatrix(1.f,result); - - result[0][0] = 2.f / (right - left); - result[1][1] = 2.f / (top - bottom); - result[2][2] = - 2.f / (zFar - zNear); - result[3][0] = - (right + left) / (right - left); - result[3][1] = - (top + bottom) / (top - bottom); - result[3][2] = - (zFar + zNear) / (zFar - zNear); -} - -static void b3CreateLookAt(const b3Vector3& eye, const b3Vector3& center,const b3Vector3& up, GLfloat result[16]) -{ - b3Vector3 f = (center - eye).normalized(); - b3Vector3 u = up.normalized(); - b3Vector3 s = (f.cross(u)).normalized(); - u = s.cross(f); - - result[0*4+0] = s.x; - result[1*4+0] = s.y; - result[2*4+0] = s.z; - - result[0*4+1] = u.x; - result[1*4+1] = u.y; - result[2*4+1] = u.z; - - result[0*4+2] =-f.x; - result[1*4+2] =-f.y; - result[2*4+2] =-f.z; - - result[0*4+3] = 0.f; - result[1*4+3] = 0.f; - result[2*4+3] = 0.f; - - result[3*4+0] = -s.dot(eye); - result[3*4+1] = -u.dot(eye); - result[3*4+2] = f.dot(eye); - result[3*4+3] = 1.f; -} - - - +}; void GLInstancingRenderer::renderSceneInternal(int renderMode) { @@ -1737,9 +2071,9 @@ void GLInstancingRenderer::renderSceneInternal(int renderMode) b3Vector3 center = b3MakeVector3(0,0,0); //float upf[3]; //m_data->m_activeCamera->getCameraUpVector(upf); - b3Vector3 up, fwd; + b3Vector3 up, lightFwd; b3Vector3 lightDir = m_data->m_lightPos.normalized(); - b3PlaneSpace1(lightDir,up,fwd); + b3PlaneSpace1(lightDir,up,lightFwd); // b3Vector3 up = b3MakeVector3(upf[0],upf[1],upf[2]); b3CreateLookAt(m_data->m_lightPos,center,up,&depthViewMatrix[0][0]); //b3CreateLookAt(lightPos,m_data->m_cameraTargetPosition,b3Vector3(0,1,0),(float*)depthModelViewMatrix2); @@ -1799,183 +2133,315 @@ b3Assert(glGetError() ==GL_NO_ERROR); { totalNumInstances+=m_graphicsInstances[i]->m_numGraphicsInstances; } - - int curOffset = 0; - //GLuint lastBindTexture = 0; - - for (int i=0;i transparentInstances; + { + int curOffset = 0; + //GLuint lastBindTexture = 0; - b3GraphicsInstance* gfxObj = m_graphicsInstances[i]; - if (gfxObj->m_numGraphicsInstances) + transparentInstances.reserve(totalNumInstances); + + for (int obj=0;objm_texturehandle) - curBindTexture = gfxObj->m_texturehandle; - else - curBindTexture = m_data->m_defaultTexturehandle; - -//disable lazy evaluation, it just leads to bugs - //if (lastBindTexture != curBindTexture) + b3GraphicsInstance* gfxObj = m_graphicsInstances[obj]; + if (gfxObj->m_numGraphicsInstances) { - glBindTexture(GL_TEXTURE_2D,curBindTexture); - } - //lastBindTexture = curBindTexture; - -b3Assert(glGetError() ==GL_NO_ERROR); - // int myOffset = gfxObj->m_instanceOffset*4*sizeof(float); - - int POSITION_BUFFER_SIZE = (totalNumInstances*sizeof(float)*4); - int ORIENTATION_BUFFER_SIZE = (totalNumInstances*sizeof(float)*4); - int COLOR_BUFFER_SIZE = (totalNumInstances*sizeof(float)*4); -// int SCALE_BUFFER_SIZE = (totalNumInstances*sizeof(float)*3); - - glBindVertexArray(gfxObj->m_cube_vao); - - - int vertexStride = 9*sizeof(float); - PointerCaster vertex; - vertex.m_baseIndex = gfxObj->m_vertexArrayOffset*vertexStride; - - - glVertexAttribPointer(0, 4, GL_FLOAT, GL_FALSE, 9*sizeof(float), vertex.m_pointer); - glVertexAttribPointer(1, 4, GL_FLOAT, GL_FALSE, 0, (GLvoid *)(curOffset*4*sizeof(float)+m_data->m_maxShapeCapacityInBytes)); - glVertexAttribPointer(2, 4, GL_FLOAT, GL_FALSE, 0, (GLvoid *)(curOffset*4*sizeof(float)+m_data->m_maxShapeCapacityInBytes+POSITION_BUFFER_SIZE)); - - PointerCaster uv; - uv.m_baseIndex = 7*sizeof(float)+vertex.m_baseIndex; - - PointerCaster normal; - normal.m_baseIndex = 4*sizeof(float)+vertex.m_baseIndex; - - glVertexAttribPointer(3, 2, GL_FLOAT, GL_FALSE, 9*sizeof(float), uv.m_pointer); - glVertexAttribPointer(4, 3, GL_FLOAT, GL_FALSE, 9*sizeof(float), normal.m_pointer); - glVertexAttribPointer(5, 4, GL_FLOAT, GL_FALSE, 0, (GLvoid *)(curOffset*4*sizeof(float)+m_data->m_maxShapeCapacityInBytes+POSITION_BUFFER_SIZE+ORIENTATION_BUFFER_SIZE)); - glVertexAttribPointer(6, 3, GL_FLOAT, GL_FALSE, 0, (GLvoid *)(curOffset*3*sizeof(float)+m_data->m_maxShapeCapacityInBytes+POSITION_BUFFER_SIZE+ORIENTATION_BUFFER_SIZE+COLOR_BUFFER_SIZE)); - - glEnableVertexAttribArray(0); - glEnableVertexAttribArray(1); - glEnableVertexAttribArray(2); - glEnableVertexAttribArray(3); - glEnableVertexAttribArray(4); - glEnableVertexAttribArray(5); - glEnableVertexAttribArray(6); - glVertexAttribDivisor(0, 0); - glVertexAttribDivisor(1, 1); - glVertexAttribDivisor(2, 1); - glVertexAttribDivisor(3, 0); - glVertexAttribDivisor(4, 0); - glVertexAttribDivisor(5, 1); - glVertexAttribDivisor(6, 1); - - - - - - - int indexCount = gfxObj->m_numIndices; - GLvoid* indexOffset = 0; - - glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, gfxObj->m_index_vbo); - { - B3_PROFILE("glDrawElementsInstanced"); - - if (gfxObj->m_primitiveType==B3_GL_POINTS) + SortableTransparentInstance inst; + + inst.m_shapeIndex = obj; + + + if ((gfxObj->m_flags&eGfxTransparency)==0) { - glUseProgram(instancingShaderPointSprite); - glUniformMatrix4fv(ProjectionMatrixPointSprite, 1, false, &m_data->m_projectionMatrix[0]); - glUniformMatrix4fv(ModelViewMatrixPointSprite, 1, false, &m_data->m_viewMatrix[0]); - glUniform1f(screenWidthPointSprite,float(m_screenWidth)); - - //glUniform1i(uniform_texture_diffusePointSprite, 0); - b3Assert(glGetError() ==GL_NO_ERROR); - glPointSize(20); - -#ifndef __APPLE__ - glEnable(GL_POINT_SPRITE_ARB); -// glTexEnvi(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE); -#endif - - glEnable(GL_VERTEX_PROGRAM_POINT_SIZE); - glDrawElementsInstanced(GL_POINTS, indexCount, GL_UNSIGNED_INT, indexOffset, gfxObj->m_numGraphicsInstances); + inst.m_instanceId = curOffset; + inst.m_centerPosition.setValue(m_data->m_instance_positions_ptr[inst.m_instanceId*4+0], + m_data->m_instance_positions_ptr[inst.m_instanceId*4+1], + m_data->m_instance_positions_ptr[inst.m_instanceId*4+2]); + inst.m_centerPosition *= -1;//reverse sort opaque instances + transparentInstances.push_back(inst); } else { - switch (renderMode) + for (int i=0;im_numGraphicsInstances;i++) { - - case B3_DEFAULT_RENDERMODE: - { - glUseProgram(instancingShader); - glUniformMatrix4fv(ProjectionMatrix, 1, false, &m_data->m_projectionMatrix[0]); - glUniformMatrix4fv(ModelViewMatrix, 1, false, &m_data->m_viewMatrix[0]); - - b3Vector3 gLightDir = m_data->m_lightPos; - gLightDir.normalize(); - glUniform3f(regularLightDirIn,gLightDir[0],gLightDir[1],gLightDir[2]); - - glUniform1i(uniform_texture_diffuse, 0); - glDrawElementsInstanced(GL_TRIANGLES, indexCount, GL_UNSIGNED_INT, indexOffset, gfxObj->m_numGraphicsInstances); - break; - } - case B3_CREATE_SHADOWMAP_RENDERMODE: - { - /*printf("createShadowMapInstancingShader=%d\n",createShadowMapInstancingShader); - printf("createShadow_depthMVP=%d\n",createShadow_depthMVP); - printf("indexOffset=%d\n",indexOffset); - printf("gfxObj->m_numGraphicsInstances=%d\n",gfxObj->m_numGraphicsInstances); - printf("indexCount=%d\n",indexCount); - */ - - glUseProgram(createShadowMapInstancingShader); - glUniformMatrix4fv(createShadow_depthMVP, 1, false, &depthMVP[0][0]); - glDrawElementsInstanced(GL_TRIANGLES, indexCount, GL_UNSIGNED_INT, indexOffset, gfxObj->m_numGraphicsInstances); - break; - } - - case B3_USE_SHADOWMAP_RENDERMODE: - { - if (m_enableBlend) - { - glEnable (GL_BLEND); - glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); - } - - glUseProgram(useShadowMapInstancingShader); - glUniformMatrix4fv(useShadow_ProjectionMatrix, 1, false, &m_data->m_projectionMatrix[0]); - glUniformMatrix4fv(useShadow_ModelViewMatrix, 1, false, &m_data->m_viewMatrix[0]); - float MVP[16]; - b3Matrix4x4Mul16(m_data->m_projectionMatrix,m_data->m_viewMatrix,MVP); - glUniformMatrix4fv(useShadow_MVP, 1, false, &MVP[0]); - b3Vector3 gLightDir = m_data->m_lightPos; - gLightDir.normalize(); - glUniform3f(useShadow_lightDirIn,gLightDir[0],gLightDir[1],gLightDir[2]); - glUniformMatrix4fv(useShadow_DepthBiasModelViewMatrix, 1, false, &depthBiasMVP[0][0]); - glActiveTexture(GL_TEXTURE1); - glBindTexture(GL_TEXTURE_2D, m_data->m_shadowTexture); - glUniform1i(useShadow_shadowMap,1); - glDrawElementsInstanced(GL_TRIANGLES, indexCount, GL_UNSIGNED_INT, indexOffset, gfxObj->m_numGraphicsInstances); - if (m_enableBlend) - { - glDisable (GL_BLEND); - } - glActiveTexture(GL_TEXTURE0); - glBindTexture(GL_TEXTURE_2D,0); - break; - } - default: - { - // b3Assert(0); - } - }; + inst.m_instanceId = curOffset+i; + inst.m_centerPosition.setValue(m_data->m_instance_positions_ptr[inst.m_instanceId*4+0], + m_data->m_instance_positions_ptr[inst.m_instanceId*4+1], + m_data->m_instance_positions_ptr[inst.m_instanceId*4+2]); + transparentInstances.push_back(inst); + } + } + curOffset+=gfxObj->m_numGraphicsInstances; + } + } + TransparentDistanceSortPredicate sorter; + float fwd[3]; + m_data->m_activeCamera->getCameraForwardVector(fwd); + sorter.m_camForwardVec.setValue(fwd[0],fwd[1],fwd[2]); + transparentInstances.quickSort(sorter); + } + + + //two passes: first for opaque instances, second for transparent ones. + for (int pass = 0; pass<2;pass++) + { + for (int i=0;im_flags&eGfxTransparency)==0); + + //transparent objects don't cast shadows (to simplify things) + if (gfxObj->m_flags&eGfxTransparency) + { + if (renderMode==B3_CREATE_SHADOWMAP_RENDERMODE) + drawThisPass = 0; + } + + if (drawThisPass && gfxObj->m_numGraphicsInstances) + { + glActiveTexture(GL_TEXTURE0); + GLuint curBindTexture = 0; + if (gfxObj->m_flags & eGfxHasTexture) + { + curBindTexture = m_data->m_textureHandles[gfxObj->m_textureIndex].m_glTexture; + + glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_BASE_LEVEL,0); + + if (m_data->m_textureHandles[gfxObj->m_textureIndex].m_enableFiltering) + { + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); + } else + { + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); + } + } + else + { + curBindTexture = m_data->m_defaultTexturehandle; + } + + //disable lazy evaluation, it just leads to bugs + //if (lastBindTexture != curBindTexture) + { + glBindTexture(GL_TEXTURE_2D,curBindTexture); + } + //lastBindTexture = curBindTexture; + + b3Assert(glGetError() ==GL_NO_ERROR); + // int myOffset = gfxObj->m_instanceOffset*4*sizeof(float); + + int POSITION_BUFFER_SIZE = (totalNumInstances*sizeof(float)*4); + int ORIENTATION_BUFFER_SIZE = (totalNumInstances*sizeof(float)*4); + int COLOR_BUFFER_SIZE = (totalNumInstances*sizeof(float)*4); + // int SCALE_BUFFER_SIZE = (totalNumInstances*sizeof(float)*3); + + glBindVertexArray(gfxObj->m_cube_vao); + + + int vertexStride = 9*sizeof(float); + PointerCaster vertex; + vertex.m_baseIndex = gfxObj->m_vertexArrayOffset*vertexStride; + + + glVertexAttribPointer(0, 4, GL_FLOAT, GL_FALSE, 9*sizeof(float), vertex.m_pointer); + glVertexAttribPointer(1, 4, GL_FLOAT, GL_FALSE, 0, (GLvoid *)(transparentInstances[i].m_instanceId*4*sizeof(float)+m_data->m_maxShapeCapacityInBytes)); + glVertexAttribPointer(2, 4, GL_FLOAT, GL_FALSE, 0, (GLvoid *)(transparentInstances[i].m_instanceId*4*sizeof(float)+m_data->m_maxShapeCapacityInBytes+POSITION_BUFFER_SIZE)); + + PointerCaster uv; + uv.m_baseIndex = 7*sizeof(float)+vertex.m_baseIndex; + + PointerCaster normal; + normal.m_baseIndex = 4*sizeof(float)+vertex.m_baseIndex; + + glVertexAttribPointer(3, 2, GL_FLOAT, GL_FALSE, 9*sizeof(float), uv.m_pointer); + glVertexAttribPointer(4, 3, GL_FLOAT, GL_FALSE, 9*sizeof(float), normal.m_pointer); + glVertexAttribPointer(5, 4, GL_FLOAT, GL_FALSE, 0, (GLvoid *)(transparentInstances[i].m_instanceId*4*sizeof(float)+m_data->m_maxShapeCapacityInBytes+POSITION_BUFFER_SIZE+ORIENTATION_BUFFER_SIZE)); + glVertexAttribPointer(6, 3, GL_FLOAT, GL_FALSE, 0, (GLvoid *)(transparentInstances[i].m_instanceId*3*sizeof(float)+m_data->m_maxShapeCapacityInBytes+POSITION_BUFFER_SIZE+ORIENTATION_BUFFER_SIZE+COLOR_BUFFER_SIZE)); + + glEnableVertexAttribArray(0); + glEnableVertexAttribArray(1); + glEnableVertexAttribArray(2); + glEnableVertexAttribArray(3); + glEnableVertexAttribArray(4); + glEnableVertexAttribArray(5); + glEnableVertexAttribArray(6); + glVertexAttribDivisor(0, 0); + glVertexAttribDivisor(1, 1); + glVertexAttribDivisor(2, 1); + glVertexAttribDivisor(3, 0); + glVertexAttribDivisor(4, 0); + glVertexAttribDivisor(5, 1); + glVertexAttribDivisor(6, 1); + + + + + + + int indexCount = gfxObj->m_numIndices; + GLvoid* indexOffset = 0; + + glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, gfxObj->m_index_vbo); + { + B3_PROFILE("glDrawElementsInstanced"); + + if (gfxObj->m_primitiveType==B3_GL_POINTS) + { + glUseProgram(instancingShaderPointSprite); + glUniformMatrix4fv(ProjectionMatrixPointSprite, 1, false, &m_data->m_projectionMatrix[0]); + glUniformMatrix4fv(ModelViewMatrixPointSprite, 1, false, &m_data->m_viewMatrix[0]); + glUniform1f(screenWidthPointSprite,float(m_screenWidth)); + + //glUniform1i(uniform_texture_diffusePointSprite, 0); + b3Assert(glGetError() ==GL_NO_ERROR); + glPointSize(20); + + #ifndef __APPLE__ + glEnable(GL_POINT_SPRITE_ARB); + // glTexEnvi(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE); + #endif + + glEnable(GL_VERTEX_PROGRAM_POINT_SIZE); + glDrawElementsInstanced(GL_POINTS, indexCount, GL_UNSIGNED_INT, indexOffset, gfxObj->m_numGraphicsInstances); + } else + { + switch (renderMode) + { + + case B3_DEFAULT_RENDERMODE: + { + if ( gfxObj->m_flags&eGfxTransparency) + { + glDepthMask(false); + glEnable (GL_BLEND); + glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + } + + glUseProgram(instancingShader); + glUniformMatrix4fv(ProjectionMatrix, 1, false, &m_data->m_projectionMatrix[0]); + glUniformMatrix4fv(ModelViewMatrix, 1, false, &m_data->m_viewMatrix[0]); + + b3Vector3 gLightDir = m_data->m_lightPos; + gLightDir.normalize(); + glUniform3f(regularLightDirIn,gLightDir[0],gLightDir[1],gLightDir[2]); + + glUniform1i(uniform_texture_diffuse, 0); + + if ( gfxObj->m_flags&eGfxTransparency) + { + + int instanceId = transparentInstances[i].m_instanceId; + glVertexAttribPointer(1, 4, GL_FLOAT, GL_FALSE, 0, (GLvoid *)((instanceId)*4*sizeof(float)+m_data->m_maxShapeCapacityInBytes)); + glVertexAttribPointer(2, 4, GL_FLOAT, GL_FALSE, 0, (GLvoid *)((instanceId)*4*sizeof(float)+m_data->m_maxShapeCapacityInBytes+POSITION_BUFFER_SIZE)); + glVertexAttribPointer(5, 4, GL_FLOAT, GL_FALSE, 0, (GLvoid *)((instanceId)*4*sizeof(float)+m_data->m_maxShapeCapacityInBytes+POSITION_BUFFER_SIZE+ORIENTATION_BUFFER_SIZE)); + glVertexAttribPointer(6, 3, GL_FLOAT, GL_FALSE, 0, (GLvoid *)((instanceId)*3*sizeof(float)+m_data->m_maxShapeCapacityInBytes+POSITION_BUFFER_SIZE+ORIENTATION_BUFFER_SIZE+COLOR_BUFFER_SIZE)); + + glDrawElements(GL_TRIANGLES, indexCount, GL_UNSIGNED_INT, 0); + + } else + { + glDrawElementsInstanced(GL_TRIANGLES, indexCount, GL_UNSIGNED_INT, indexOffset, gfxObj->m_numGraphicsInstances); + } + + if ( gfxObj->m_flags&eGfxTransparency) + { + glDisable (GL_BLEND); + glDepthMask(true); + } + + break; + } + case B3_CREATE_SHADOWMAP_RENDERMODE: + { + glUseProgram(createShadowMapInstancingShader); + glUniformMatrix4fv(createShadow_depthMVP, 1, false, &depthMVP[0][0]); + glDrawElementsInstanced(GL_TRIANGLES, indexCount, GL_UNSIGNED_INT, indexOffset, gfxObj->m_numGraphicsInstances); + break; + } + + case B3_USE_SHADOWMAP_RENDERMODE: + { + if ( gfxObj->m_flags&eGfxTransparency) + { + glDepthMask(false); + glEnable (GL_BLEND); + glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + } + + glUseProgram(useShadowMapInstancingShader); + glUniformMatrix4fv(useShadow_ProjectionMatrix, 1, false, &m_data->m_projectionMatrix[0]); + glUniformMatrix4fv(useShadow_ModelViewMatrix, 1, false, &m_data->m_viewMatrix[0]); + glUniformMatrix4fv(useShadow_ViewMatrixInverse, 1, false, &m_data->m_viewMatrixInverse[0]); + glUniformMatrix4fv(useShadow_ModelViewMatrix, 1, false, &m_data->m_viewMatrix[0]); + + glUniform3f(useShadow_lightSpecularIntensity, m_data->m_lightSpecularIntensity[0],m_data->m_lightSpecularIntensity[1],m_data->m_lightSpecularIntensity[2]); + glUniform3f(useShadow_materialSpecularColor, gfxObj->m_materialSpecularColor[0],gfxObj->m_materialSpecularColor[1],gfxObj->m_materialSpecularColor[2]); + + + + float MVP[16]; + b3Matrix4x4Mul16(m_data->m_projectionMatrix,m_data->m_viewMatrix,MVP); + glUniformMatrix4fv(useShadow_MVP, 1, false, &MVP[0]); + //gLightDir.normalize(); + glUniform3f(useShadow_lightPosIn,m_data->m_lightPos[0],m_data->m_lightPos[1],m_data->m_lightPos[2]); + float camPos[3]; + m_data->m_activeCamera->getCameraPosition(camPos); + glUniform3f(useShadow_cameraPositionIn,camPos[0],camPos[1],camPos[2]); + glUniform1f(useShadow_materialShininessIn,gfxObj->m_materialShinyNess); + + glUniformMatrix4fv(useShadow_DepthBiasModelViewMatrix, 1, false, &depthBiasMVP[0][0]); + glActiveTexture(GL_TEXTURE1); + glBindTexture(GL_TEXTURE_2D, m_data->m_shadowTexture); + glUniform1i(useShadow_shadowMap,1); + + //sort transparent objects + + //gfxObj->m_instanceOffset + + if ( gfxObj->m_flags&eGfxTransparency) + { + int instanceId = transparentInstances[i].m_instanceId; + glVertexAttribPointer(1, 4, GL_FLOAT, GL_FALSE, 0, (GLvoid *)((instanceId)*4*sizeof(float)+m_data->m_maxShapeCapacityInBytes)); + glVertexAttribPointer(2, 4, GL_FLOAT, GL_FALSE, 0, (GLvoid *)((instanceId)*4*sizeof(float)+m_data->m_maxShapeCapacityInBytes+POSITION_BUFFER_SIZE)); + glVertexAttribPointer(5, 4, GL_FLOAT, GL_FALSE, 0, (GLvoid *)((instanceId)*4*sizeof(float)+m_data->m_maxShapeCapacityInBytes+POSITION_BUFFER_SIZE+ORIENTATION_BUFFER_SIZE)); + glVertexAttribPointer(6, 3, GL_FLOAT, GL_FALSE, 0, (GLvoid *)((instanceId)*3*sizeof(float)+m_data->m_maxShapeCapacityInBytes+POSITION_BUFFER_SIZE+ORIENTATION_BUFFER_SIZE+COLOR_BUFFER_SIZE)); + glDrawElements(GL_TRIANGLES, indexCount, GL_UNSIGNED_INT, 0); + } else + { + glDrawElementsInstanced(GL_TRIANGLES, indexCount, GL_UNSIGNED_INT, indexOffset, gfxObj->m_numGraphicsInstances); + } + + if ( gfxObj->m_flags&eGfxTransparency) + { + glDisable (GL_BLEND); + glDepthMask(true); + } + glActiveTexture(GL_TEXTURE1); + glBindTexture(GL_TEXTURE_2D,0); + + glActiveTexture(GL_TEXTURE0); + glBindTexture(GL_TEXTURE_2D,0); + break; + } + default: + { + // b3Assert(0); + } + }; + } + + + //glDrawElementsInstanced(GL_LINE_LOOP, indexCount, GL_UNSIGNED_INT, (void*)indexOffset, gfxObj->m_numGraphicsInstances); } - - - //glDrawElementsInstanced(GL_LINE_LOOP, indexCount, GL_UNSIGNED_INT, (void*)indexOffset, gfxObj->m_numGraphicsInstances); } } - curOffset+= gfxObj->m_numGraphicsInstances; } { diff --git a/examples/OpenGLWindow/GLInstancingRenderer.h b/examples/OpenGLWindow/GLInstancingRenderer.h index be063e0ab..6d0ea2819 100644 --- a/examples/OpenGLWindow/GLInstancingRenderer.h +++ b/examples/OpenGLWindow/GLInstancingRenderer.h @@ -39,7 +39,7 @@ class GLInstancingRenderer : public CommonRenderInterface int m_screenHeight; int m_upAxis; - bool m_enableBlend; + int registerGraphicsInstanceInternal(int shapeIndex, const float* position, const float* quaternion, const float* color, const float* scaling); void rebuildGraphicsInstances(); @@ -64,10 +64,11 @@ public: ///vertices must be in the format x,y,z, nx,ny,nz, u,v virtual int registerShape(const float* vertices, int numvertices, const int* indices, int numIndices, int primitiveType=B3_GL_TRIANGLES, int textureIndex=-1); - virtual int registerTexture(const unsigned char* texels, int width, int height); - virtual void updateTexture(int textureIndex, const unsigned char* texels); + virtual int registerTexture(const unsigned char* texels, int width, int height, bool flipPixelsY=true); + virtual void updateTexture(int textureIndex, const unsigned char* texels, bool flipPixelsY=true); virtual void activateTexture(int textureIndex); - + virtual void replaceTexture(int shapeIndex, int textureId); + virtual int getShapeIndexFromInstance(int srcIndex); ///position x,y,z, quaternion x,y,z,w, color r,g,b,a, scaling x,y,z virtual int registerGraphicsInstance(int shapeIndex, const float* position, const float* quaternion, const float* color, const float* scaling); @@ -76,7 +77,8 @@ public: void writeTransforms(); - + virtual bool readSingleInstanceTransformToCPU(float* position, float* orientation, int srcIndex); + virtual void writeSingleInstanceTransformToCPU(const float* position, const float* orientation, int srcIndex); virtual void writeSingleInstanceTransformToCPU(const double* position, const double* orientation, int srcIndex) { @@ -94,6 +96,7 @@ public: } + virtual void readSingleInstanceTransformFromCPU(int srcIndex, float* position, float* orientation); virtual void writeSingleInstanceTransformToGPU(float* position, float* orientation, int srcIndex); @@ -101,6 +104,9 @@ public: virtual void writeSingleInstanceColorToCPU(const float* color, int srcIndex); virtual void writeSingleInstanceColorToCPU(const double* color, int srcIndex); + virtual void writeSingleInstanceSpecularColorToCPU(const double* specular, int srcIndex2); + virtual void writeSingleInstanceSpecularColorToCPU(const float* specular, int srcIndex2); + virtual void writeSingleInstanceScaleToCPU(const float* scale, int srcIndex); virtual void writeSingleInstanceScaleToCPU(const double* scale, int srcIndex); @@ -113,6 +119,8 @@ public: virtual void drawPoints(const float* positions, const float color[4], int numPoints, int pointStrideInBytes, float pointDrawSize); virtual void drawPoint(const float* position, const float color[4], float pointSize=1); virtual void drawPoint(const double* position, const double color[4], double pointDrawSize=1); + virtual void drawTexturedTriangleMesh(float worldPosition[3], float worldOrientation[4], const float* vertices, int numvertices, const unsigned int* indices, int numIndices, float color[4], int textureIndex=-1, int vertexLayout=0); + virtual void updateCamera(int upAxis=1); virtual const CommonCameraInterface* getActiveCamera() const; @@ -121,6 +129,7 @@ public: virtual void setLightPosition(const float lightPos[3]); virtual void setLightPosition(const double lightPos[3]); + void setLightSpecularIntensity(const float lightSpecularIntensity[3]); virtual void resize(int width, int height); virtual int getScreenWidth() @@ -139,10 +148,7 @@ public: virtual int getTotalNumInstances() const; virtual void enableShadowMap(); - virtual void enableBlend(bool blend) - { - m_enableBlend = blend; - } + virtual void clearZBuffer(); virtual void setRenderFrameBuffer(unsigned int renderFrameBuffer); diff --git a/examples/OpenGLWindow/GLPrimitiveRenderer.cpp b/examples/OpenGLWindow/GLPrimitiveRenderer.cpp index 151d8ed67..5500a7d2b 100644 --- a/examples/OpenGLWindow/GLPrimitiveRenderer.cpp +++ b/examples/OpenGLWindow/GLPrimitiveRenderer.cpp @@ -1,10 +1,10 @@ #ifndef NO_OPENGL3 #include "GLPrimitiveRenderer.h" #include "GLPrimInternalData.h" -//#include "Bullet3Common/b3Logging.h" +#include "Bullet3Common/b3Scalar.h" #include "LoadShader.h" -#include + static const char* vertexShader3D= \ "#version 150 \n" @@ -75,27 +75,27 @@ m_screenHeight(screenHeight) m_data->m_viewmatUniform = glGetUniformLocation(m_data->m_shaderProg,"viewMatrix"); if (m_data->m_viewmatUniform < 0) { - assert(0); + b3Assert(0); } m_data->m_projMatUniform = glGetUniformLocation(m_data->m_shaderProg,"projMatrix"); if (m_data->m_projMatUniform < 0) { - assert(0); + b3Assert(0); } m_data->m_positionUniform = glGetUniformLocation(m_data->m_shaderProg, "p"); if (m_data->m_positionUniform < 0) { - assert(0); + b3Assert(0); } m_data->m_colourAttribute = glGetAttribLocation(m_data->m_shaderProg, "colour"); if (m_data->m_colourAttribute < 0) { - assert(0); + b3Assert(0); } m_data->m_positionAttribute = glGetAttribLocation(m_data->m_shaderProg, "position"); if (m_data->m_positionAttribute < 0) { - assert(0); + b3Assert(0); } m_data->m_textureAttribute = glGetAttribLocation(m_data->m_shaderProg,"texuv"); if (m_data->m_textureAttribute < 0) { - assert(0); + b3Assert(0); } loadBufferData(); @@ -127,7 +127,7 @@ void GLPrimitiveRenderer::loadBufferData() glBufferData(GL_ARRAY_BUFFER, MAX_VERTICES2 * sizeof(PrimVertex), 0, GL_DYNAMIC_DRAW); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); @@ -153,14 +153,14 @@ void GLPrimitiveRenderer::loadBufferData() glEnableVertexAttribArray(m_data->m_positionAttribute); glEnableVertexAttribArray(m_data->m_colourAttribute); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); glEnableVertexAttribArray(m_data->m_textureAttribute); glVertexAttribPointer(m_data->m_positionAttribute, 4, GL_FLOAT, GL_FALSE, sizeof(PrimVertex), (const GLvoid *)0); glVertexAttribPointer(m_data->m_colourAttribute , 4, GL_FLOAT, GL_FALSE, sizeof(PrimVertex), (const GLvoid *)sizeof(PrimVec4)); glVertexAttribPointer(m_data->m_textureAttribute , 2, GL_FLOAT, GL_FALSE, sizeof(PrimVertex), (const GLvoid *)(sizeof(PrimVec4)+sizeof(PrimVec4))); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); @@ -200,7 +200,7 @@ void GLPrimitiveRenderer::loadBufferData() glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 256,256,0,GL_RGB,GL_UNSIGNED_BYTE,image); glGenerateMipmap(GL_TEXTURE_2D); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); delete[] image; @@ -226,14 +226,14 @@ void GLPrimitiveRenderer::drawLine() void GLPrimitiveRenderer::drawRect(float x0, float y0, float x1, float y1, float color[4]) { - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); glActiveTexture(GL_TEXTURE0); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); glBindTexture(GL_TEXTURE_2D,m_data->m_texturehandle); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); drawTexturedRect(x0,y0,x1,y1,color,0,0,1,1); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); } @@ -242,7 +242,7 @@ void GLPrimitiveRenderer::drawTexturedRect3D(const PrimVertex& v0,const PrimVert { //B3_PROFILE("GLPrimitiveRenderer::drawTexturedRect3D"); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); glUseProgram(m_data->m_shaderProg); @@ -250,7 +250,7 @@ void GLPrimitiveRenderer::drawTexturedRect3D(const PrimVertex& v0,const PrimVert glUniformMatrix4fv(m_data->m_viewmatUniform, 1, false, viewMat); glUniformMatrix4fv(m_data->m_projMatUniform, 1, false, projMat); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); glBindBuffer(GL_ARRAY_BUFFER, m_data->m_vertexBuffer); glBindVertexArray(m_data->m_vertexArrayObject); @@ -277,7 +277,7 @@ void GLPrimitiveRenderer::drawTexturedRect3D(const PrimVertex& v0,const PrimVert - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); PrimVec2 p( 0.f,0.f);//?b?0.5f * sinf(timeValue), 0.5f * cosf(timeValue) ); if (useRGBA) @@ -290,47 +290,47 @@ void GLPrimitiveRenderer::drawTexturedRect3D(const PrimVertex& v0,const PrimVert glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); glEnableVertexAttribArray(m_data->m_positionAttribute); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); glEnableVertexAttribArray(m_data->m_colourAttribute); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); glEnableVertexAttribArray(m_data->m_textureAttribute); glVertexAttribPointer(m_data->m_positionAttribute, 4, GL_FLOAT, GL_FALSE, sizeof(PrimVertex), (const GLvoid *)0); glVertexAttribPointer(m_data->m_colourAttribute , 4, GL_FLOAT, GL_FALSE, sizeof(PrimVertex), (const GLvoid *)sizeof(PrimVec4)); glVertexAttribPointer(m_data->m_textureAttribute , 2, GL_FLOAT, GL_FALSE, sizeof(PrimVertex), (const GLvoid *)(sizeof(PrimVec4)+sizeof(PrimVec4))); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, m_data->m_indexBuffer); //glDrawArrays(GL_TRIANGLE_FAN, 0, 4); int indexCount = 6; - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); glDrawElements(GL_TRIANGLES, indexCount, GL_UNSIGNED_INT, 0); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); glBindVertexArray(0); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); glBindBuffer(GL_ARRAY_BUFFER, 0); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); //glDisableVertexAttribArray(m_data->m_textureAttribute); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); glUseProgram(0); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); } @@ -349,7 +349,7 @@ void GLPrimitiveRenderer::drawTexturedRect3D2( PrimVertex* vertices, int numVert } //B3_PROFILE("GLPrimitiveRenderer::drawTexturedRect3D"); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); float identity[16]={1,0,0,0, 0,1,0,0, 0,0,1,0, @@ -360,7 +360,7 @@ void GLPrimitiveRenderer::drawTexturedRect3D2( PrimVertex* vertices, int numVert glUniformMatrix4fv(m_data->m_viewmatUniform, 1, false, identity); glUniformMatrix4fv(m_data->m_projMatUniform, 1, false, identity); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); glBindBuffer(GL_ARRAY_BUFFER, m_data->m_vertexBuffer2); glBindVertexArray(m_data->m_vertexArrayObject2); @@ -388,7 +388,7 @@ void GLPrimitiveRenderer::drawTexturedRect3D2( PrimVertex* vertices, int numVert - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); PrimVec2 p( 0.f,0.f);//?b?0.5f * sinf(timeValue), 0.5f * cosf(timeValue) ); if (useRGBA) @@ -401,47 +401,47 @@ void GLPrimitiveRenderer::drawTexturedRect3D2( PrimVertex* vertices, int numVert glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); glEnableVertexAttribArray(m_data->m_positionAttribute); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); glEnableVertexAttribArray(m_data->m_colourAttribute); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); glEnableVertexAttribArray(m_data->m_textureAttribute); glVertexAttribPointer(m_data->m_positionAttribute, 4, GL_FLOAT, GL_FALSE, sizeof(PrimVertex), (const GLvoid *)0); glVertexAttribPointer(m_data->m_colourAttribute , 4, GL_FLOAT, GL_FALSE, sizeof(PrimVertex), (const GLvoid *)sizeof(PrimVec4)); glVertexAttribPointer(m_data->m_textureAttribute , 2, GL_FLOAT, GL_FALSE, sizeof(PrimVertex), (const GLvoid *)(sizeof(PrimVec4)+sizeof(PrimVec4))); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, m_data->m_indexBuffer2); //glDrawArrays(GL_TRIANGLE_FAN, 0, 4); int indexCount = (numVertices/4)*6; - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); glDrawElements(GL_TRIANGLES, indexCount, GL_UNSIGNED_INT, 0); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); glBindVertexArray(0); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); glBindBuffer(GL_ARRAY_BUFFER, 0); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); //glDisableVertexAttribArray(m_data->m_textureAttribute); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); glUseProgram(0); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); } @@ -477,7 +477,7 @@ void GLPrimitiveRenderer::flushBatchedRects() return; glActiveTexture(GL_TEXTURE0); - assert(glGetError()==GL_NO_ERROR); + b3Assert(glGetError()==GL_NO_ERROR); glBindTexture(GL_TEXTURE_2D,m_data->m_texturehandle); drawTexturedRect3D2(m_data2->m_verticesRect, m_data2->m_numVerticesRect,0); m_data2->m_numVerticesRect=0; diff --git a/examples/OpenGLWindow/MacOpenGLWindowObjC.m b/examples/OpenGLWindow/MacOpenGLWindowObjC.m index 1ae9c530c..3fc45fc43 100644 --- a/examples/OpenGLWindow/MacOpenGLWindowObjC.m +++ b/examples/OpenGLWindow/MacOpenGLWindowObjC.m @@ -470,6 +470,10 @@ int Mac_createWindow(struct MacOpenGLWindowInternalData* m_internalData,struct M #else m_internalData->m_retinaScaleFactor=1.f; #endif + GLint sync = 0; + CGLContextObj ctx = CGLGetCurrentContext(); + CGLSetParameter(ctx, kCGLCPSwapInterval, &sync); + [m_internalData->m_myApp finishLaunching]; [pool release]; @@ -1226,4 +1230,4 @@ void Mac_setResizeCallback(struct MacOpenGLWindowInternalData* m_internalData, b b3ResizeCallback Mac_getResizeCallback(struct MacOpenGLWindowInternalData* m_internalData) { return [m_internalData->m_myview getResizeCallback]; -} \ No newline at end of file +} diff --git a/examples/OpenGLWindow/Shaders/useShadowMapInstancingPS.glsl b/examples/OpenGLWindow/Shaders/useShadowMapInstancingPS.glsl index ad12e3b0c..809494902 100644 --- a/examples/OpenGLWindow/Shaders/useShadowMapInstancingPS.glsl +++ b/examples/OpenGLWindow/Shaders/useShadowMapInstancingPS.glsl @@ -13,9 +13,14 @@ in Vert uniform sampler2D Diffuse; uniform sampler2DShadow shadowMap; +uniform mat4 ViewMatrixInverse; -in vec3 lightDir,normal,ambient; +in vec3 lightPos,cameraPosition, normal,ambient; in vec4 ShadowCoord; +in vec4 vertexPos; +in float materialShininess; +in vec3 lightSpecularIntensity; +in vec3 materialSpecularColor; out vec4 color; @@ -28,8 +33,11 @@ void main(void) float intensity,at,af; if (fragment.color.w==0) discard; - - intensity = 0.5+0.5*clamp( dot( normalize(normal),lightDir ), -1,1 ); + vec3 lightDir = normalize(lightPos); + + vec3 normalDir = normalize(normal); + + intensity = 0.5+0.5*clamp( dot( normalDir,lightDir ), -1,1 ); af = 1.0; @@ -38,7 +46,24 @@ void main(void) //float bias = 0.005f; + vec3 specularReflection; + if (dot(normalDir, lightDir) < 0.0) + { + specularReflection = vec3(0.0, 0.0, 0.0); + } + else // light source on the right side + { + vec3 surfaceToLight = normalize(lightPos - vertexPos.xyz); + vec3 surfaceToCamera = normalize(cameraPosition - vertexPos.xyz); + + + float specularCoefficient = 0.0; + specularCoefficient = pow(max(0.0, dot(surfaceToCamera, reflect(-surfaceToLight, normalDir))), materialShininess); + specularReflection = specularCoefficient * materialSpecularColor * lightSpecularIntensity; + + } + float visibility = texture(shadowMap, vec3(ShadowCoord.xy,(ShadowCoord.z)/ShadowCoord.w)); if (intensity<0.5) @@ -46,6 +71,6 @@ void main(void) intensity = 0.7*intensity + 0.3*intensity*visibility; - cf = intensity*(vec3(1.0,1.0,1.0)-ambient)+ambient; + cf = intensity*(vec3(1.0,1.0,1.0)-ambient)+ambient+specularReflection*visibility; color = vec4(ct * cf, fragment.color.w); } diff --git a/examples/OpenGLWindow/Shaders/useShadowMapInstancingPS.h b/examples/OpenGLWindow/Shaders/useShadowMapInstancingPS.h index c2a6a306f..e34883d85 100644 --- a/examples/OpenGLWindow/Shaders/useShadowMapInstancingPS.h +++ b/examples/OpenGLWindow/Shaders/useShadowMapInstancingPS.h @@ -12,8 +12,13 @@ static const char* useShadowMapInstancingFragmentShader= \ "} vert;\n" "uniform sampler2D Diffuse;\n" "uniform sampler2DShadow shadowMap;\n" -"in vec3 lightDir,normal,ambient;\n" +"uniform mat4 ViewMatrixInverse;\n" +"in vec3 lightPos,cameraPosition, normal,ambient;\n" "in vec4 ShadowCoord;\n" +"in vec4 vertexPos;\n" +"in float materialShininess;\n" +"in vec3 lightSpecularIntensity;\n" +"in vec3 materialSpecularColor;\n" "out vec4 color;\n" "void main(void)\n" "{\n" @@ -22,7 +27,11 @@ static const char* useShadowMapInstancingFragmentShader= \ " float intensity,at,af;\n" " if (fragment.color.w==0)\n" " discard;\n" -" intensity = 0.5+0.5*clamp( dot( normalize(normal),lightDir ), -1,1 );\n" +" vec3 lightDir = normalize(lightPos);\n" +" \n" +" vec3 normalDir = normalize(normal);\n" +" \n" +" intensity = 0.5+0.5*clamp( dot( normalDir,lightDir ), -1,1 );\n" " \n" " af = 1.0;\n" " \n" @@ -31,13 +40,30 @@ static const char* useShadowMapInstancingFragmentShader= \ " \n" " //float bias = 0.005f;\n" " \n" +" vec3 specularReflection;\n" " \n" +" if (dot(normalDir, lightDir) < 0.0) \n" +" {\n" +" specularReflection = vec3(0.0, 0.0, 0.0);\n" +" }\n" +" else // light source on the right side\n" +" {\n" +" vec3 surfaceToLight = normalize(lightPos - vertexPos.xyz);\n" +" vec3 surfaceToCamera = normalize(cameraPosition - vertexPos.xyz);\n" +" \n" +" \n" +" float specularCoefficient = 0.0;\n" +" specularCoefficient = pow(max(0.0, dot(surfaceToCamera, reflect(-surfaceToLight, normalDir))), materialShininess);\n" +" specularReflection = specularCoefficient * materialSpecularColor * lightSpecularIntensity;\n" +" \n" +" }\n" +" \n" " float visibility = texture(shadowMap, vec3(ShadowCoord.xy,(ShadowCoord.z)/ShadowCoord.w));\n" " if (intensity<0.5)\n" " visibility = 0;\n" " intensity = 0.7*intensity + 0.3*intensity*visibility;\n" " \n" -" cf = intensity*(vec3(1.0,1.0,1.0)-ambient)+ambient;\n" +" cf = intensity*(vec3(1.0,1.0,1.0)-ambient)+ambient+specularReflection*visibility;\n" " color = vec4(ct * cf, fragment.color.w);\n" "}\n" ; diff --git a/examples/OpenGLWindow/Shaders/useShadowMapInstancingVS.glsl b/examples/OpenGLWindow/Shaders/useShadowMapInstancingVS.glsl index 222e73cfd..3f9601f44 100644 --- a/examples/OpenGLWindow/Shaders/useShadowMapInstancingVS.glsl +++ b/examples/OpenGLWindow/Shaders/useShadowMapInstancingVS.glsl @@ -15,7 +15,12 @@ uniform mat4 ModelViewMatrix; uniform mat4 ProjectionMatrix; uniform mat4 DepthBiasModelViewProjectionMatrix; uniform mat4 MVP; -uniform vec3 lightDirIn; +uniform vec3 lightPosIn; +uniform vec3 cameraPositionIn; +uniform mat4 ViewMatrixInverse; +uniform float materialShininessIn; +uniform vec3 lightSpecularIntensityIn; +uniform vec3 materialSpecularColorIn; out vec4 ShadowCoord; @@ -60,7 +65,13 @@ vec4 quatRotate ( in vec4 p, in vec4 q ) return quatMul ( temp, vec4 ( -q.x, -q.y, -q.z, q.w ) ); } -out vec3 lightDir,normal,ambient; +out vec3 lightPos,normal,ambient; +out vec4 vertexPos; +out vec3 cameraPosition; +out float materialShininess; +out vec3 lightSpecularIntensity; +out vec3 materialSpecularColor; + void main(void) { @@ -69,15 +80,19 @@ void main(void) vec4 worldNormal = (quatRotate3( vertexnormal,q)); - normal = normalize(worldNormal).xyz; + normal = worldNormal.xyz; - lightDir = lightDirIn; - + lightPos = lightPosIn; + cameraPosition = cameraPositionIn; + materialShininess = materialShininessIn; + lightSpecularIntensity = lightSpecularIntensityIn; + materialSpecularColor = materialSpecularColorIn; vec4 localcoord = quatRotate3( position.xyz*instance_scale,q); - vec4 vertexPos = MVP* vec4((instance_position+localcoord).xyz,1); - - gl_Position = vertexPos; + vertexPos = vec4((instance_position+localcoord).xyz,1); + + vec4 vertexLoc = MVP* vec4((instance_position+localcoord).xyz,1); + gl_Position = vertexLoc; ShadowCoord = DepthBiasModelViewProjectionMatrix * vec4((instance_position+localcoord).xyz,1); fragment.color = instance_color; diff --git a/examples/OpenGLWindow/Shaders/useShadowMapInstancingVS.h b/examples/OpenGLWindow/Shaders/useShadowMapInstancingVS.h index a98e44f82..0800c2cd0 100644 --- a/examples/OpenGLWindow/Shaders/useShadowMapInstancingVS.h +++ b/examples/OpenGLWindow/Shaders/useShadowMapInstancingVS.h @@ -13,7 +13,12 @@ static const char* useShadowMapInstancingVertexShader= \ "uniform mat4 ProjectionMatrix;\n" "uniform mat4 DepthBiasModelViewProjectionMatrix;\n" "uniform mat4 MVP;\n" -"uniform vec3 lightDirIn;\n" +"uniform vec3 lightPosIn;\n" +"uniform vec3 cameraPositionIn;\n" +"uniform mat4 ViewMatrixInverse;\n" +"uniform float materialShininessIn;\n" +"uniform vec3 lightSpecularIntensityIn;\n" +"uniform vec3 materialSpecularColorIn;\n" "out vec4 ShadowCoord;\n" "out Fragment\n" "{\n" @@ -51,7 +56,12 @@ static const char* useShadowMapInstancingVertexShader= \ " vec4 temp = quatMul ( q, p );\n" " return quatMul ( temp, vec4 ( -q.x, -q.y, -q.z, q.w ) );\n" "}\n" -"out vec3 lightDir,normal,ambient;\n" +"out vec3 lightPos,normal,ambient;\n" +"out vec4 vertexPos;\n" +"out vec3 cameraPosition;\n" +"out float materialShininess;\n" +"out vec3 lightSpecularIntensity;\n" +"out vec3 materialSpecularColor;\n" "void main(void)\n" "{\n" " vec4 q = instance_quaternion;\n" @@ -59,13 +69,18 @@ static const char* useShadowMapInstancingVertexShader= \ " \n" " vec4 worldNormal = (quatRotate3( vertexnormal,q));\n" " \n" -" normal = normalize(worldNormal).xyz;\n" -" lightDir = lightDirIn;\n" -" \n" +" normal = worldNormal.xyz;\n" +" lightPos = lightPosIn;\n" +" cameraPosition = cameraPositionIn;\n" +" materialShininess = materialShininessIn;\n" +" lightSpecularIntensity = lightSpecularIntensityIn;\n" +" materialSpecularColor = materialSpecularColorIn;\n" " \n" " vec4 localcoord = quatRotate3( position.xyz*instance_scale,q);\n" -" vec4 vertexPos = MVP* vec4((instance_position+localcoord).xyz,1);\n" -" gl_Position = vertexPos;\n" +" vertexPos = vec4((instance_position+localcoord).xyz,1);\n" +" \n" +" vec4 vertexLoc = MVP* vec4((instance_position+localcoord).xyz,1);\n" +" gl_Position = vertexLoc;\n" " ShadowCoord = DepthBiasModelViewProjectionMatrix * vec4((instance_position+localcoord).xyz,1);\n" " fragment.color = instance_color;\n" " vert.texcoord = uvcoords;\n" diff --git a/examples/OpenGLWindow/SimpleCamera.cpp b/examples/OpenGLWindow/SimpleCamera.cpp index 697f7ce65..76992ef90 100644 --- a/examples/OpenGLWindow/SimpleCamera.cpp +++ b/examples/OpenGLWindow/SimpleCamera.cpp @@ -205,7 +205,11 @@ int SimpleCamera::getCameraUpAxis() const void SimpleCamera::update() { - + b3Scalar yawRad = m_data->m_yaw * b3Scalar(0.01745329251994329547);// rads per deg + b3Scalar pitchRad = m_data->m_pitch * b3Scalar(0.01745329251994329547);// rads per deg + b3Scalar rollRad = 0.0; + b3Quaternion eyeRot; + int forwardAxis(-1); switch (m_data->m_cameraUpAxis) { @@ -213,11 +217,13 @@ void SimpleCamera::update() forwardAxis = 2; m_data->m_cameraUp = b3MakeVector3(0,1,0); //gLightPos = b3MakeVector3(-50.f,100,30); + eyeRot.setEulerZYX(rollRad, yawRad, -pitchRad); break; case 2: forwardAxis = 1; m_data->m_cameraUp = b3MakeVector3(0,0,1); //gLightPos = b3MakeVector3(-50.f,30,100); + eyeRot.setEulerZYX(yawRad, rollRad, pitchRad); break; default: { @@ -228,8 +234,15 @@ void SimpleCamera::update() b3Vector3 eyePos = b3MakeVector3(0,0,0); eyePos[forwardAxis] = -m_data->m_cameraDistance; + eyePos = b3Matrix3x3(eyeRot)*eyePos; - m_data->m_cameraForward = b3MakeVector3(eyePos[0],eyePos[1],eyePos[2]); + m_data->m_cameraPosition = eyePos; + + + + m_data->m_cameraPosition+= m_data->m_cameraTargetPosition; + + m_data->m_cameraForward = m_data->m_cameraTargetPosition-m_data->m_cameraPosition; if (m_data->m_cameraForward.length2() < B3_EPSILON) { m_data->m_cameraForward.setValue(1.f,0.f,0.f); @@ -237,24 +250,6 @@ void SimpleCamera::update() { m_data->m_cameraForward.normalize(); } - - -// m_azi=m_azi+0.01; - b3Scalar rele = m_data->m_yaw * b3Scalar(0.01745329251994329547);// rads per deg - b3Scalar razi = m_data->m_pitch * b3Scalar(0.01745329251994329547);// rads per deg - - - b3Quaternion rot(m_data->m_cameraUp,razi); - - - b3Vector3 right = m_data->m_cameraUp.cross(m_data->m_cameraForward); - b3Quaternion roll(right,-rele); - - eyePos = b3Matrix3x3(rot) * b3Matrix3x3(roll) * eyePos; - - m_data->m_cameraPosition = eyePos; - m_data->m_cameraPosition+= m_data->m_cameraTargetPosition; - } void SimpleCamera::getCameraProjectionMatrix(float projectionMatrix[16]) const @@ -421,3 +416,13 @@ float SimpleCamera::getCameraFrustumNear() const { return m_data->m_frustumZNear; } + +void SimpleCamera::setCameraFrustumFar(float far) +{ + m_data->m_frustumZFar = far; +} + +void SimpleCamera::setCameraFrustumNear(float near) +{ + m_data->m_frustumZNear = near; +} diff --git a/examples/OpenGLWindow/SimpleCamera.h b/examples/OpenGLWindow/SimpleCamera.h index 7fbdaae8c..d397c5386 100644 --- a/examples/OpenGLWindow/SimpleCamera.h +++ b/examples/OpenGLWindow/SimpleCamera.h @@ -54,6 +54,9 @@ struct SimpleCamera : public CommonCameraInterface virtual float getCameraFrustumFar() const; virtual float getCameraFrustumNear() const; + + virtual void setCameraFrustumFar(float far); + virtual void setCameraFrustumNear(float near); }; #endif //SIMPLE_CAMERA_H diff --git a/examples/OpenGLWindow/SimpleOpenGL2App.cpp b/examples/OpenGLWindow/SimpleOpenGL2App.cpp index 3122bd120..43b8058f2 100644 --- a/examples/OpenGLWindow/SimpleOpenGL2App.cpp +++ b/examples/OpenGLWindow/SimpleOpenGL2App.cpp @@ -297,13 +297,14 @@ void SimpleOpenGL2App::swapBuffer() m_window->startRendering(); } -void SimpleOpenGL2App::drawText( const char* txt, int posX, int posY, float size) + +void SimpleOpenGL2App::drawText( const char* txt, int posXi, int posYi, float size, float colorRGBA[4]) { } - static void restoreOpenGLState() +static void restoreOpenGLState() { @@ -339,6 +340,11 @@ void SimpleOpenGL2App::drawText( const char* txt, int posX, int posY, float size } +void SimpleOpenGL2App::drawText3D( const char* txt, float position[3], float orientation[4], float color[4], float size, int optionFlag) +{ + +} + void SimpleOpenGL2App::drawText3D( const char* txt, float worldPosX, float worldPosY, float worldPosZ, float size1) { saveOpenGLState(gApp2->m_renderer->getScreenWidth(),gApp2->m_renderer->getScreenHeight()); @@ -475,7 +481,8 @@ void SimpleOpenGL2App::drawText3D( const char* txt, float worldPosX, float world void SimpleOpenGL2App::registerGrid(int cells_x, int cells_z, float color0[4], float color1[4]) { b3Vector3 cubeExtents=b3MakeVector3(0.5,0.5,0.5); - cubeExtents[m_data->m_upAxis] = 0; + double halfHeight=0.1; + cubeExtents[m_data->m_upAxis] = halfHeight; int cubeId = registerCubeShape(cubeExtents[0],cubeExtents[1],cubeExtents[2]); b3Quaternion orn(0,0,0,1); @@ -495,10 +502,10 @@ void SimpleOpenGL2App::registerGrid(int cells_x, int cells_z, float color0[4], f } if (this->m_data->m_upAxis==1) { - center =b3MakeVector3((i + 0.5f) - cells_x * 0.5f, 0.f, (j + 0.5f) - cells_z * 0.5f); + center =b3MakeVector3((i + 0.5f) - cells_x * 0.5f, -halfHeight, (j + 0.5f) - cells_z * 0.5f); } else { - center =b3MakeVector3((i + 0.5f) - cells_x * 0.5f, (j + 0.5f) - cells_z * 0.5f,0.f ); + center =b3MakeVector3((i + 0.5f) - cells_x * 0.5f, (j + 0.5f) - cells_z * 0.5f,-halfHeight ); } m_renderer->registerGraphicsInstance(cubeId,center,orn,color,scaling); } diff --git a/examples/OpenGLWindow/SimpleOpenGL2App.h b/examples/OpenGLWindow/SimpleOpenGL2App.h index 0a08c8770..889df0657 100644 --- a/examples/OpenGLWindow/SimpleOpenGL2App.h +++ b/examples/OpenGLWindow/SimpleOpenGL2App.h @@ -17,13 +17,16 @@ public: virtual int getUpAxis() const; virtual void swapBuffer(); - virtual void drawText( const char* txt, int posX, int posY, float size); + virtual void drawText( const char* txt, int posX, int posY, float size, float colorRGBA[4]); + virtual void drawTexturedRect(float x0, float y0, float x1, float y1, float color[4], float u0,float v0, float u1, float v1, int useRGBA){}; virtual void setBackgroundColor(float red, float green, float blue); virtual int registerCubeShape(float halfExtentsX,float halfExtentsY, float halfExtentsZ, int textureIndex = -1, float textureScaling = 1); virtual int registerGraphicsUnitSphereShape(EnumSphereLevelOfDetail lod, int textureId=-1); virtual void drawText3D( const char* txt, float posX, float posZY, float posZ, float size); + virtual void drawText3D( const char* txt, float position[3], float orientation[4], float color[4], float size, int optionFlag); + virtual void registerGrid(int xres, int yres, float color0[4], float color1[4]); diff --git a/examples/OpenGLWindow/SimpleOpenGL2Renderer.cpp b/examples/OpenGLWindow/SimpleOpenGL2Renderer.cpp index 25a3c2cfa..6431789b2 100644 --- a/examples/OpenGLWindow/SimpleOpenGL2Renderer.cpp +++ b/examples/OpenGLWindow/SimpleOpenGL2Renderer.cpp @@ -139,6 +139,11 @@ void SimpleOpenGL2Renderer::removeGraphicsInstance(int instanceUid) m_data->m_graphicsInstancesPool.freeHandle(instanceUid); } +bool SimpleOpenGL2Renderer::readSingleInstanceTransformToCPU(float* position, float* orientation, int srcIndex) +{ + return false; +} + void SimpleOpenGL2Renderer::writeSingleInstanceColorToCPU(const float* color, int srcIndex) { } @@ -388,7 +393,7 @@ void SimpleOpenGL2Renderer::renderScene() } -int SimpleOpenGL2Renderer::registerTexture(const unsigned char* texels, int width, int height) +int SimpleOpenGL2Renderer::registerTexture(const unsigned char* texels, int width, int height, bool flipTexelsY) { b3Assert(glGetError() ==GL_NO_ERROR); glActiveTexture(GL_TEXTURE0); @@ -406,12 +411,12 @@ int SimpleOpenGL2Renderer::registerTexture(const unsigned char* texels, int widt h.m_height = height; m_data->m_textureHandles.push_back(h); - updateTexture(textureIndex, texels); + updateTexture(textureIndex, texels,flipTexelsY); return textureIndex; } -void SimpleOpenGL2Renderer::updateTexture(int textureIndex, const unsigned char* texels) +void SimpleOpenGL2Renderer::updateTexture(int textureIndex, const unsigned char* texels, bool flipTexelsY) { if (textureIndex>=0) { @@ -420,27 +425,36 @@ void SimpleOpenGL2Renderer::updateTexture(int textureIndex, const unsigned ch glActiveTexture(GL_TEXTURE0); b3Assert(glGetError() ==GL_NO_ERROR); - InternalTextureHandle2& h = m_data->m_textureHandles[textureIndex]; + InternalTextureHandle2& h = m_data->m_textureHandles[textureIndex]; + glBindTexture(GL_TEXTURE_2D,h.m_glTexture); + b3Assert(glGetError() ==GL_NO_ERROR); - //textures need to be flipped for OpenGL... - b3AlignedObjectArray flippedTexels; - flippedTexels.resize(h.m_width* h.m_height * 3); - for (int i = 0; i < h.m_width; i++) + + if (flipTexelsY) { - for (int j = 0; j < h.m_height; j++) + //textures need to be flipped for OpenGL... + b3AlignedObjectArray flippedTexels; + flippedTexels.resize(h.m_width* h.m_height * 3); + for (int i = 0; i < h.m_width; i++) { - flippedTexels[(i + j*h.m_width) * 3] = texels[(i + (h.m_height - 1 -j )*h.m_width) * 3]; - flippedTexels[(i + j*h.m_width) * 3+1] = texels[(i + (h.m_height - 1 - j)*h.m_width) * 3+1]; - flippedTexels[(i + j*h.m_width) * 3+2] = texels[(i + (h.m_height - 1 - j)*h.m_width) * 3+2]; + for (int j = 0; j < h.m_height; j++) + { + flippedTexels[(i + j*h.m_width) * 3] = texels[(i + (h.m_height - 1 -j )*h.m_width) * 3]; + flippedTexels[(i + j*h.m_width) * 3+1] = texels[(i + (h.m_height - 1 - j)*h.m_width) * 3+1]; + flippedTexels[(i + j*h.m_width) * 3+2] = texels[(i + (h.m_height - 1 - j)*h.m_width) * 3+2]; + } } + // const GLubyte* image= (const GLubyte*)texels; + glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, h.m_width,h.m_height,0,GL_RGB,GL_UNSIGNED_BYTE,&flippedTexels[0]); + + } else + { + // const GLubyte* image= (const GLubyte*)texels; + glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, h.m_width,h.m_height,0,GL_RGB,GL_UNSIGNED_BYTE,&texels[0]); + } - - glBindTexture(GL_TEXTURE_2D,h.m_glTexture); - b3Assert(glGetError() ==GL_NO_ERROR); - // const GLubyte* image= (const GLubyte*)texels; - glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, h.m_width,h.m_height,0,GL_RGB,GL_UNSIGNED_BYTE,&flippedTexels[0]); - b3Assert(glGetError() ==GL_NO_ERROR); + b3Assert(glGetError() ==GL_NO_ERROR); glGenerateMipmap(GL_TEXTURE_2D); b3Assert(glGetError() ==GL_NO_ERROR); } @@ -662,9 +676,6 @@ void SimpleOpenGL2Renderer::updateShape(int shapeIndex, const float* vertices) } } -void SimpleOpenGL2Renderer::enableBlend(bool blend) -{ -} void SimpleOpenGL2Renderer::clearZBuffer() { diff --git a/examples/OpenGLWindow/SimpleOpenGL2Renderer.h b/examples/OpenGLWindow/SimpleOpenGL2Renderer.h index 7eb9ab809..f57c98a03 100644 --- a/examples/OpenGLWindow/SimpleOpenGL2Renderer.h +++ b/examples/OpenGLWindow/SimpleOpenGL2Renderer.h @@ -34,21 +34,27 @@ public: virtual void removeAllInstances(); virtual void removeGraphicsInstance(int instanceUid); + virtual bool readSingleInstanceTransformToCPU(float* position, float* orientation, int srcIndex); virtual void writeSingleInstanceColorToCPU(const float* color, int srcIndex); virtual void writeSingleInstanceColorToCPU(const double* color, int srcIndex); virtual void writeSingleInstanceScaleToCPU(const float* scale, int srcIndex); virtual void writeSingleInstanceScaleToCPU(const double* scale, int srcIndex); + virtual void writeSingleInstanceSpecularColorToCPU(const double* specular, int srcIndex){} + virtual void writeSingleInstanceSpecularColorToCPU(const float* specular, int srcIndex){} + virtual void getCameraViewMatrix(float viewMat[16]) const; virtual void getCameraProjectionMatrix(float projMat[16]) const; - + virtual void drawTexturedTriangleMesh(float worldPosition[3], float worldOrientation[4], const float* vertices, int numvertices, const unsigned int* indices, int numIndices, float color[4], int textureIndex=-1, int vertexLayout=0) + { + } virtual void renderScene(); virtual int getScreenWidth(); virtual int getScreenHeight(); - virtual int registerTexture(const unsigned char* texels, int width, int height); - virtual void updateTexture(int textureIndex, const unsigned char* texels); - virtual void activateTexture(int textureIndex); + virtual int registerTexture(const unsigned char* texels, int width, int height, bool flipTexelsY); + virtual void updateTexture(int textureIndex, const unsigned char* texels, bool flipTexelsY); + virtual void activateTexture(int textureIndex); virtual int registerGraphicsInstance(int shapeIndex, const double* position, const double* quaternion, const double* color, const double* scaling); @@ -77,8 +83,7 @@ public: virtual void updateShape(int shapeIndex, const float* vertices); - virtual void enableBlend(bool blend); - + virtual void clearZBuffer(); diff --git a/examples/OpenGLWindow/SimpleOpenGL3App.cpp b/examples/OpenGLWindow/SimpleOpenGL3App.cpp index 86aa9c031..c37e10db6 100644 --- a/examples/OpenGLWindow/SimpleOpenGL3App.cpp +++ b/examples/OpenGLWindow/SimpleOpenGL3App.cpp @@ -33,7 +33,7 @@ #include #include "GLRenderToTexture.h" #include "Bullet3Common/b3Quaternion.h" - +#include //memset #ifdef _WIN32 #define popen _popen #define pclose _pclose @@ -44,8 +44,14 @@ struct SimpleInternalData GLuint m_fontTextureId; GLuint m_largeFontTextureId; struct sth_stash* m_fontStash; - OpenGL2RenderCallbacks* m_renderCallbacks; + struct sth_stash* m_fontStash2; + + RenderCallbacks* m_renderCallbacks; + RenderCallbacks* m_renderCallbacks2; + int m_droidRegular; + int m_droidRegular2; + const char* m_frameDumpPngFileName; FILE* m_ffmpegFile; GLRenderToTexture* m_renderTexture; @@ -117,8 +123,161 @@ static GLuint BindFont(const CTexFont *_Font) return TexID; } + + + +//static unsigned int s_indexData[INDEX_COUNT]; +//static GLuint s_indexArrayObject, s_indexBuffer; +//static GLuint s_vertexArrayObject,s_vertexBuffer; + + extern unsigned char OpenSansData[]; +struct MyRenderCallbacks : public RenderCallbacks +{ + GLInstancingRenderer* m_instancingRenderer; + + b3AlignedObjectArray m_rgbaTexture; + float m_color[4]; + float m_worldPosition[3]; + float m_worldOrientation[4]; + + int m_textureIndex; + + MyRenderCallbacks(GLInstancingRenderer* instancingRenderer) + :m_instancingRenderer(instancingRenderer), + m_textureIndex(-1) + { + for (int i=0;i<4;i++) + { + m_color[i] = 1; + m_worldOrientation[i]=0; + } + m_worldPosition[0]=0; + m_worldPosition[1]=0; + m_worldPosition[2]=0; + + m_worldOrientation[0] = 0; + m_worldOrientation[1] = 0; + m_worldOrientation[2] = 0; + m_worldOrientation[3] = 1; + } + virtual ~MyRenderCallbacks() + { + m_rgbaTexture.clear(); + } + + virtual void setWorldPosition(float pos[3]) + { + for (int i=0;i<3;i++) + { + m_worldPosition[i] = pos[i]; + } + } + + virtual void setWorldOrientation(float orn[4]) + { + for (int i=0;i<4;i++) + { + m_worldOrientation[i] = orn[i]; + } + } + + + virtual void setColorRGBA(float color[4]) + { + for (int i=0;i<4;i++) + { + m_color[i] = color[i]; + } + } + virtual void updateTexture(sth_texture* texture, sth_glyph* glyph, int textureWidth, int textureHeight) + { + if (glyph) + { + m_rgbaTexture.resize(textureWidth*textureHeight*3); + for (int i=0;im_texels[i]; + m_rgbaTexture[i*3+1] = texture->m_texels[i]; + m_rgbaTexture[i*3+2] = texture->m_texels[i]; + } + bool flipPixelsY = false; + m_instancingRenderer->updateTexture(m_textureIndex, &m_rgbaTexture[0], flipPixelsY); + } else + { + if (textureWidth && textureHeight) + { + texture->m_texels = (unsigned char*)malloc(textureWidth*textureHeight); + memset(texture->m_texels,0,textureWidth*textureHeight); + if (m_textureIndex<0) + { + m_rgbaTexture.resize(textureWidth*textureHeight*3); + bool flipPixelsY = false; + m_textureIndex = m_instancingRenderer->registerTexture(&m_rgbaTexture[0],textureWidth,textureHeight,flipPixelsY); + + int strideInBytes = 9*sizeof(float); + int numVertices = sizeof(cube_vertices_textured)/strideInBytes; + int numIndices = sizeof(cube_indices)/sizeof(int); + + float halfExtentsX=1; + float halfExtentsY=1; + float halfExtentsZ=1; + float textureScaling = 4; + + b3AlignedObjectArray verts; + verts.resize(numVertices); + for (int i=0;iregisterShape(&verts[0].x,numVertices,cube_indices,numIndices,B3_GL_TRIANGLES,m_textureIndex); + b3Vector3 pos = b3MakeVector3(0, 0, 0); + b3Quaternion orn(0, 0, 0, 1); + b3Vector4 color = b3MakeVector4(1, 1, 1,1); + b3Vector3 scaling = b3MakeVector3 (.1, .1, .1); + //m_instancingRenderer->registerGraphicsInstance(shapeId, pos, orn, color, scaling); + m_instancingRenderer->writeTransforms(); + + } else + { + b3Assert(0); + } + } else + { + delete texture->m_texels; + texture->m_texels = 0; + //there is no m_instancingRenderer->freeTexture (yet), all textures are released at reset/deletion of the renderer + } + } + + } + virtual void render(sth_texture* texture) + { + int index=0; + + float width = 1; + b3AlignedObjectArray< unsigned int> indices; + indices.resize(texture->nverts); + for (int i=0;idrawTexturedTriangleMesh(m_worldPosition,m_worldOrientation, &texture->newverts[0].position.p[0],texture->nverts,&indices[0],indices.size(),m_color,m_textureIndex); + } +}; + SimpleOpenGL3App::SimpleOpenGL3App( const char* title, int width,int height, bool allowRetina) { gApp = this; @@ -207,9 +366,11 @@ SimpleOpenGL3App::SimpleOpenGL3App( const char* title, int width,int height, boo { - m_data->m_renderCallbacks = new OpenGL2RenderCallbacks(m_primRenderer); + m_data->m_renderCallbacks2 = new MyRenderCallbacks(m_instancingRenderer); + m_data->m_fontStash2 = sth_create(512,512, m_data->m_renderCallbacks2); m_data->m_fontStash = sth_create(512,512,m_data->m_renderCallbacks);//256,256);//,1024);//512,512); + b3Assert(glGetError() ==GL_NO_ERROR); if (!m_data->m_fontStash) @@ -218,6 +379,10 @@ SimpleOpenGL3App::SimpleOpenGL3App( const char* title, int width,int height, boo //fprintf(stderr, "Could not create stash.\n"); } + if (!m_data->m_fontStash2) + { + b3Warning("Could not create fontStash2"); + } unsigned char* data2 = OpenSansData; unsigned char* data = (unsigned char*) data2; @@ -225,7 +390,12 @@ SimpleOpenGL3App::SimpleOpenGL3App( const char* title, int width,int height, boo { b3Warning("error!\n"); } - b3Assert(glGetError() ==GL_NO_ERROR); + if (!(m_data->m_droidRegular2 = sth_add_font_from_memory(m_data->m_fontStash2, data))) + { + b3Warning("error!\n"); + } + + b3Assert(glGetError() ==GL_NO_ERROR); } } @@ -235,7 +405,7 @@ struct sth_stash* SimpleOpenGL3App::getFontStash() return m_data->m_fontStash; } -void SimpleOpenGL3App::drawText3D( const char* txt, float worldPosX, float worldPosY, float worldPosZ, float size1) +void SimpleOpenGL3App::drawText3D( const char* txt, float position[3], float orientation[4], float color[4], float size, int optionFlag) { B3_PROFILE("SimpleOpenGL3App::drawText3D"); float viewMat[16]; @@ -263,29 +433,54 @@ void SimpleOpenGL3App::drawText3D( const char* txt, float worldPosX, float world glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); int viewport[4]={0,0,m_instancingRenderer->getScreenWidth(),m_instancingRenderer->getScreenHeight()}; - float posX = 450.f; - float posY = 100.f; + float posX = position[0]; + float posY = position[1]; + float posZ = position[2]; float winx,winy, winz; - if (!projectWorldCoordToScreen(worldPosX, worldPosY, worldPosZ,viewMat,projMat,viewport,&winx, &winy, &winz)) - { - return; - } - posX = winx; - posY = m_instancingRenderer->getScreenHeight()/2+(m_instancingRenderer->getScreenHeight()/2)-winy; - - if (0)//m_useTrueTypeFont) + if (optionFlag&CommonGraphicsApp::eDrawText3D_OrtogonalFaceCamera) + { + if (!projectWorldCoordToScreen(position[0], position[1], position[2],viewMat,projMat,viewport,&winx, &winy, &winz)) + { + return; + } + posX = winx; + posY = m_instancingRenderer->getScreenHeight()/2+(m_instancingRenderer->getScreenHeight()/2)-winy; + posZ = 0.f; + } + + if (optionFlag&CommonGraphicsApp::eDrawText3D_TrueType) { bool measureOnly = false; - float fontSize= 32;//64;//512;//128; + float fontSize= 64;//512;//128; - sth_draw_text(m_data->m_fontStash, - m_data->m_droidRegular,fontSize,posX,posY, - txt,&dx, this->m_instancingRenderer->getScreenWidth(),this->m_instancingRenderer->getScreenHeight(),measureOnly,m_window->getRetinaScale()); - sth_end_draw(m_data->m_fontStash); - sth_flush_draw(m_data->m_fontStash); + if (optionFlag&CommonGraphicsApp::eDrawText3D_OrtogonalFaceCamera) + { + sth_draw_text(m_data->m_fontStash, + m_data->m_droidRegular,fontSize,posX,posY, + txt,&dx, this->m_instancingRenderer->getScreenWidth(),this->m_instancingRenderer->getScreenHeight(),measureOnly,m_window->getRetinaScale(),color); + sth_end_draw(m_data->m_fontStash); + sth_flush_draw(m_data->m_fontStash); + } else + { + glEnable(GL_BLEND); + glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + + + m_data->m_renderCallbacks2->setColorRGBA(color); + + m_data->m_renderCallbacks2->setWorldPosition(position); + m_data->m_renderCallbacks2->setWorldOrientation(orientation); + + sth_draw_text3D(m_data->m_fontStash2, + m_data->m_droidRegular2,fontSize,0,0,0, + txt,&dx,size,color,0); + sth_end_draw(m_data->m_fontStash2); + sth_flush_draw(m_data->m_fontStash2); + glDisable(GL_BLEND); + } } else { //float width = 0.f; @@ -298,26 +493,38 @@ void SimpleOpenGL3App::drawText3D( const char* txt, float worldPosX, float world //float extraSpacing = 0.; float startX = posX; - float startY = posY-g_DefaultLargeFont->m_CharHeight*size1; - + float startY = posY+g_DefaultLargeFont->m_CharHeight*size; + float z = position[2];//2.f*winz-1.f;//*(far + + if (optionFlag&CommonGraphicsApp::eDrawText3D_OrtogonalFaceCamera) + { + posX = winx; + posY = m_instancingRenderer->getScreenHeight()/2+(m_instancingRenderer->getScreenHeight()/2)-winy; + z = 2.f*winz-1.f; + startY = posY-g_DefaultLargeFont->m_CharHeight*size; + } while (txt[pos]) { int c = txt[pos]; //r.h = g_DefaultNormalFont->m_CharHeight; //r.w = g_DefaultNormalFont->m_CharWidth[c]+extraSpacing; - float endX = startX+g_DefaultLargeFont->m_CharWidth[c]*size1; + float endX = startX+g_DefaultLargeFont->m_CharWidth[c]*size; + if (optionFlag&CommonGraphicsApp::eDrawText3D_OrtogonalFaceCamera) + { + endX = startX+g_DefaultLargeFont->m_CharWidth[c]*size; + } float endY = posY; - float currentColor[]={1.f,0.2,0.2f,1.f}; + //float currentColor[]={1.f,1.,0.2f,1.f}; // m_primRenderer->drawTexturedRect(startX, startY, endX, endY, currentColor,g_DefaultLargeFont->m_CharU0[c],g_DefaultLargeFont->m_CharV0[c],g_DefaultLargeFont->m_CharU1[c],g_DefaultLargeFont->m_CharV1[c]); float u0 = g_DefaultLargeFont->m_CharU0[c]; float u1 = g_DefaultLargeFont->m_CharU1[c]; float v0 = g_DefaultLargeFont->m_CharV0[c]; float v1 = g_DefaultLargeFont->m_CharV1[c]; - float color[4] = {currentColor[0],currentColor[1],currentColor[2],currentColor[3]}; + //float color[4] = {currentColor[0],currentColor[1],currentColor[2],currentColor[3]}; float x0 = startX; float x1 = endX; float y0 = startY; @@ -325,20 +532,31 @@ void SimpleOpenGL3App::drawText3D( const char* txt, float worldPosX, float world int screenWidth = m_instancingRenderer->getScreenWidth(); int screenHeight = m_instancingRenderer->getScreenHeight(); - float z = 2.f*winz-1.f;//*(far float identity[16]={1,0,0,0, 0,1,0,0, 0,0,1,0, 0,0,0,1}; + if (optionFlag&CommonGraphicsApp::eDrawText3D_OrtogonalFaceCamera) + { PrimVertex vertexData[4] = { PrimVertex(PrimVec4(-1.f+2.f*x0/float(screenWidth), 1.f-2.f*y0/float(screenHeight), z, 1.f ), PrimVec4( color[0], color[1], color[2], color[3] ) ,PrimVec2(u0,v0)), PrimVertex(PrimVec4(-1.f+2.f*x0/float(screenWidth), 1.f-2.f*y1/float(screenHeight), z, 1.f ), PrimVec4( color[0], color[1], color[2], color[3] ) ,PrimVec2(u0,v1)), PrimVertex(PrimVec4( -1.f+2.f*x1/float(screenWidth), 1.f-2.f*y1/float(screenHeight), z, 1.f ), PrimVec4(color[0], color[1], color[2], color[3]) ,PrimVec2(u1,v1)), PrimVertex(PrimVec4( -1.f+2.f*x1/float(screenWidth), 1.f-2.f*y0/float(screenHeight), z, 1.f ), PrimVec4( color[0], color[1], color[2], color[3] ) ,PrimVec2(u1,v0)) }; - m_primRenderer->drawTexturedRect3D(vertexData[0],vertexData[1],vertexData[2],vertexData[3],identity,identity,false); + } else + { + PrimVertex vertexData[4] = { + PrimVertex(PrimVec4(x0, y0, z, 1.f ), PrimVec4( color[0], color[1], color[2], color[3] ) ,PrimVec2(u0,v0)), + PrimVertex(PrimVec4(x0, y1, z, 1.f ), PrimVec4( color[0], color[1], color[2], color[3] ) ,PrimVec2(u0,v1)), + PrimVertex(PrimVec4( x1, y1, z, 1.f ), PrimVec4(color[0], color[1], color[2], color[3]) ,PrimVec2(u1,v1)), + PrimVertex(PrimVec4( x1, y0, z, 1.f ), PrimVec4( color[0], color[1], color[2], color[3] ) ,PrimVec2(u1,v0)) + }; + + m_primRenderer->drawTexturedRect3D(vertexData[0],vertexData[1],vertexData[2],vertexData[3],viewMat,projMat,false); + } //DrawTexturedRect(0,r,g_DefaultNormalFont->m_CharU0[c],g_DefaultNormalFont->m_CharV0[c],g_DefaultNormalFont->m_CharU1[c],g_DefaultNormalFont->m_CharV1[c]); // DrawFilledRect(r); @@ -353,12 +571,22 @@ void SimpleOpenGL3App::drawText3D( const char* txt, float worldPosX, float world glDisable(GL_BLEND); +} +void SimpleOpenGL3App::drawText3D( const char* txt, float worldPosX, float worldPosY, float worldPosZ, float size1) +{ + + float position[3] = {worldPosX,worldPosY,worldPosZ}; + float orientation[4] = {0,0,0,1}; + float color[4] = {0,0,0,1}; + int optionFlags = CommonGraphicsApp::eDrawText3D_OrtogonalFaceCamera; + drawText3D(txt,position,orientation,color,size1,optionFlags); } -void SimpleOpenGL3App::drawText( const char* txt, int posXi, int posYi, float size) + +void SimpleOpenGL3App::drawText( const char* txt, int posXi, int posYi, float size, float colorRGBA[4]) { float posX = (float)posXi; @@ -386,7 +614,7 @@ void SimpleOpenGL3App::drawText( const char* txt, int posXi, int posYi, float si txt,&dx, this->m_instancingRenderer->getScreenWidth(), this->m_instancingRenderer->getScreenHeight(), measureOnly, - m_window->getRetinaScale()); + m_window->getRetinaScale(),colorRGBA); sth_end_draw(m_data->m_fontStash); sth_flush_draw(m_data->m_fontStash); @@ -445,12 +673,6 @@ void SimpleOpenGL3App::drawTexturedRect(float x0, float y0, float x1, float y1, -struct GfxVertex - { - float x,y,z,w; - float nx,ny,nz; - float u,v; - }; int SimpleOpenGL3App::registerCubeShape(float halfExtentsX,float halfExtentsY, float halfExtentsZ, int textureIndex, float textureScaling) { @@ -460,7 +682,7 @@ int SimpleOpenGL3App::registerCubeShape(float halfExtentsX,float halfExtentsY, f int numVertices = sizeof(cube_vertices_textured)/strideInBytes; int numIndices = sizeof(cube_indices)/sizeof(int); - b3AlignedObjectArray verts; + b3AlignedObjectArray verts; verts.resize(numVertices); for (int i=0;im_upAxis] = 0; + double halfHeight=0.1; + cubeExtents[m_data->m_upAxis] = halfHeight; int cubeId = registerCubeShape(cubeExtents[0],cubeExtents[1],cubeExtents[2]); - b3Quaternion orn(0,0,0,1); b3Vector3 center=b3MakeVector3(0,0,0,1); b3Vector3 scaling=b3MakeVector3(1,1,1,1); @@ -502,10 +724,10 @@ void SimpleOpenGL3App::registerGrid(int cells_x, int cells_z, float color0[4], f } if (this->m_data->m_upAxis==1) { - center =b3MakeVector3((i + 0.5f) - cells_x * 0.5f, 0.f, (j + 0.5f) - cells_z * 0.5f); + center =b3MakeVector3((i + 0.5f) - cells_x * 0.5f, -halfHeight, (j + 0.5f) - cells_z * 0.5f); } else { - center =b3MakeVector3((i + 0.5f) - cells_x * 0.5f, (j + 0.5f) - cells_z * 0.5f,0.f ); + center =b3MakeVector3((i + 0.5f) - cells_x * 0.5f, (j + 0.5f) - cells_z * 0.5f,-halfHeight ); } m_instancingRenderer->registerGraphicsInstance(cubeId,center,orn,color,scaling); } @@ -663,6 +885,10 @@ SimpleOpenGL3App::~SimpleOpenGL3App() delete m_primRenderer ; sth_delete(m_data->m_fontStash); delete m_data->m_renderCallbacks; + + sth_delete(m_data->m_fontStash2); + delete m_data->m_renderCallbacks2; + TwDeleteDefaultFonts(); m_window->closeWindow(); @@ -693,7 +919,7 @@ void SimpleOpenGL3App::getScreenPixels(unsigned char* rgbaBuffer, int bufferSize } //#define STB_IMAGE_WRITE_IMPLEMENTATION -#include "stb_image_write.h" +#include "stb_image/stb_image_write.h" static void writeTextureToFile(int textureWidth, int textureHeight, const char* fileName, FILE* ffmpegVideo) { int numComponents = 4; diff --git a/examples/OpenGLWindow/SimpleOpenGL3App.h b/examples/OpenGLWindow/SimpleOpenGL3App.h index 3d0f69dd4..9a1621350 100644 --- a/examples/OpenGLWindow/SimpleOpenGL3App.h +++ b/examples/OpenGLWindow/SimpleOpenGL3App.h @@ -31,8 +31,10 @@ struct SimpleOpenGL3App : public CommonGraphicsApp virtual int getUpAxis() const; virtual void swapBuffer(); - virtual void drawText( const char* txt, int posX, int posY, float size=1.0f); + virtual void drawText( const char* txt, int posX, int posY, float size, float colorRGBA[4]); virtual void drawText3D( const char* txt, float posX, float posZY, float posZ, float size); + virtual void drawText3D( const char* txt, float position[3], float orientation[4], float color[4], float size, int optionFlag); + virtual void drawTexturedRect(float x0, float y0, float x1, float y1, float color[4], float u0,float v0, float u1, float v1, int useRGBA); struct sth_stash* getFontStash(); diff --git a/examples/OpenGLWindow/fontstash.cpp b/examples/OpenGLWindow/fontstash.cpp index 4f144095b..518b320e0 100644 --- a/examples/OpenGLWindow/fontstash.cpp +++ b/examples/OpenGLWindow/fontstash.cpp @@ -37,7 +37,7 @@ #define STB_TRUETYPE_IMPLEMENTATION #define STBTT_malloc(x,u) malloc(x) #define STBTT_free(x,u) free(x) -#include "stb_truetype.h" +#include "stb_image/stb_truetype.h" #define HASH_LUT_SIZE 256 @@ -487,6 +487,9 @@ error: return 0; } + + + static int get_quad(struct sth_stash* stash, struct sth_font* fnt, struct sth_glyph* glyph, short isize, float* x, float* y, struct sth_quad* q) { float rx,ry; @@ -514,7 +517,36 @@ static int get_quad(struct sth_stash* stash, struct sth_font* fnt, struct sth_gl return 1; } -static Vertex* setv(Vertex* v, float x, float y, float s, float t, float width, float height) + +static int get_quad3D(struct sth_stash* stash, struct sth_font* fnt, struct sth_glyph* glyph, short isize2, float* x, float* y, struct sth_quad* q, float fontSize, float textScale) +{ + short isize=1; + float rx,ry; + float scale = textScale/fontSize;//0.1;//1.0f; + + if (fnt->type == BMFONT) + scale = isize/(glyph->size); + + rx = (*x + scale * float(glyph->xoff)); + ry = (scale * float(glyph->yoff)); + + q->x0 = rx; + q->y0 = *y -(ry); + + q->x1 = rx + scale * float(glyph->x1 - glyph->x0_); + q->y1 = *y-(ry + scale * float(glyph->y1 - glyph->y0)); + + q->s0 = float(glyph->x0_) * stash->itw; + q->t0 = float(glyph->y0) * stash->ith; + q->s1 = float(glyph->x1) * stash->itw; + q->t1 = float(glyph->y1) * stash->ith; + + *x += scale * glyph->xadv; + + return 1; +} + +static Vertex* setv(Vertex* v, float x, float y, float s, float t, float width, float height, float colorRGBA[4]) { bool scale=true; if (scale) @@ -532,15 +564,34 @@ static Vertex* setv(Vertex* v, float x, float y, float s, float t, float width, v->uv.p[0] = s; v->uv.p[1] = t; - v->colour.p[0] = 0.1f;//1.f; - v->colour.p[1] = 0.1f; - v->colour.p[2] = 0.1f; - v->colour.p[3] = 1.f; + v->colour.p[0] = 0.1;//colorRGBA[0]; + v->colour.p[1] = 0.1;//colorRGBA[1]; + v->colour.p[2] = 0.1;//colorRGBA[2]; + v->colour.p[3] = 1.0;//colorRGBA[3]; return v+1; } +static Vertex* setv3D(Vertex* v, float x, float y, float z, float s, float t, float colorRGBA[4]) +{ + v->position.p[0] = x; + v->position.p[1] = y; + v->position.p[2] = z; + v->position.p[3] = 1.f; + + v->uv.p[0] = s; + v->uv.p[1] = t; + + v->colour.p[0] = colorRGBA[0]; + v->colour.p[1] = colorRGBA[1]; + v->colour.p[2] = colorRGBA[2]; + v->colour.p[3] = colorRGBA[3]; + return v+1; +} + + + static void flush_draw(struct sth_stash* stash) @@ -598,7 +649,7 @@ void sth_draw_texture(struct sth_stash* stash, int idx, float size, float x, float y, int screenwidth, int screenheight, - const char* s, float* dx) + const char* s, float* dx, float colorRGBA[4]) { int width = stash->tw; int height=stash->th; @@ -642,13 +693,13 @@ void sth_draw_texture(struct sth_stash* stash, q.x1 = q.x0+width; q.y1 = q.y0+height; - v = setv(v, q.x0, q.y0, 0,0,(float)screenwidth,(float)screenheight); - v = setv(v, q.x1, q.y0, 1,0,(float)screenwidth,(float)screenheight); - v = setv(v, q.x1, q.y1, 1,1,(float)screenwidth,(float)screenheight); + v = setv(v, q.x0, q.y0, 0,0,(float)screenwidth,(float)screenheight,colorRGBA); + v = setv(v, q.x1, q.y0, 1,0,(float)screenwidth,(float)screenheight,colorRGBA); + v = setv(v, q.x1, q.y1, 1,1,(float)screenwidth,(float)screenheight,colorRGBA); - v = setv(v, q.x0, q.y0, 0,0,(float)screenwidth,(float)screenheight); - v = setv(v, q.x1, q.y1, 1,1,(float)screenwidth,(float)screenheight); - v = setv(v, q.x0, q.y1, 0,1,(float)screenwidth,(float)screenheight); + v = setv(v, q.x0, q.y0, 0,0,(float)screenwidth,(float)screenheight,colorRGBA); + v = setv(v, q.x1, q.y1, 1,1,(float)screenwidth,(float)screenheight,colorRGBA); + v = setv(v, q.x0, q.y1, 0,1,(float)screenwidth,(float)screenheight,colorRGBA); texture->nverts += 6; } @@ -667,7 +718,7 @@ void sth_flush_draw(struct sth_stash* stash) void sth_draw_text(struct sth_stash* stash, int idx, float size, float x, float y, - const char* s, float* dx, int screenwidth, int screenheight, int measureOnly, float retinaScale) + const char* s, float* dx, int screenwidth, int screenheight, int measureOnly, float retinaScale, float colorRGBA[4]) { unsigned int codepoint; @@ -708,13 +759,68 @@ void sth_draw_text(struct sth_stash* stash, { v = &texture->newverts[texture->nverts]; - v = setv(v, q.x0, q.y0, q.s0, q.t0,(float)screenwidth,(float)screenheight); - v = setv(v, q.x1, q.y0, q.s1, q.t0,(float)screenwidth,(float)screenheight); - v = setv(v, q.x1, q.y1, q.s1, q.t1,(float)screenwidth,(float)screenheight); + v = setv(v, q.x0, q.y0, q.s0, q.t0,(float)screenwidth,(float)screenheight,colorRGBA); + v = setv(v, q.x1, q.y0, q.s1, q.t0,(float)screenwidth,(float)screenheight,colorRGBA); + v = setv(v, q.x1, q.y1, q.s1, q.t1,(float)screenwidth,(float)screenheight,colorRGBA); - v = setv(v, q.x0, q.y0, q.s0, q.t0,(float)screenwidth,(float)screenheight); - v = setv(v, q.x1, q.y1, q.s1, q.t1,(float)screenwidth,(float)screenheight); - v = setv(v, q.x0, q.y1, q.s0, q.t1,(float)screenwidth,(float)screenheight); + v = setv(v, q.x0, q.y0, q.s0, q.t0,(float)screenwidth,(float)screenheight,colorRGBA); + v = setv(v, q.x1, q.y1, q.s1, q.t1,(float)screenwidth,(float)screenheight,colorRGBA); + v = setv(v, q.x0, q.y1, q.s0, q.t1,(float)screenwidth,(float)screenheight,colorRGBA); + + texture->nverts += 6; + } + } + + if (dx) *dx = x; +} + +void sth_draw_text3D(struct sth_stash* stash, + int idx, float fontSize, + float x, float y, float z, + const char* s, float* dx, float textScale, float colorRGBA[4], int unused) +{ + + unsigned int codepoint; + struct sth_glyph* glyph = NULL; + struct sth_texture* texture = NULL; + unsigned int state = 0; + struct sth_quad q; + short isize = (short)(fontSize*10.0f); + Vertex* v; + struct sth_font* fnt = NULL; + + s_retinaScale = 1; + if (stash == NULL) return; + + if (!stash->textures) return; + fnt = stash->fonts; + while(fnt != NULL && fnt->idx != idx) fnt = fnt->next; + if (fnt == NULL) return; + if (fnt->type != BMFONT && !fnt->data) return; + + for (; *s; ++s) + { + if (decutf8(&state, &codepoint, *(unsigned char*)s)) + continue; + glyph = get_glyph(stash, fnt, codepoint, isize); + if (!glyph) continue; + texture = glyph->texture; + + if (texture->nverts+6 >= VERT_COUNT) + flush_draw(stash); + + if (!get_quad3D(stash, fnt, glyph, isize, &x, &y, &q, fontSize, textScale)) continue; + + { + v = &texture->newverts[texture->nverts]; + + v = setv3D(v, q.x0, q.y0, z,q.s0, q.t0,colorRGBA); + v = setv3D(v, q.x1, q.y0, z,q.s1, q.t0,colorRGBA); + v = setv3D(v, q.x1, q.y1, z,q.s1, q.t1,colorRGBA); + + v = setv3D(v, q.x0, q.y0, z,q.s0, q.t0,colorRGBA); + v = setv3D(v, q.x1, q.y1, z,q.s1, q.t1,colorRGBA); + v = setv3D(v, q.x0, q.y1, z,q.s0, q.t1,colorRGBA); texture->nverts += 6; } diff --git a/examples/OpenGLWindow/fontstash.h b/examples/OpenGLWindow/fontstash.h index 940bb7856..ef6610f38 100644 --- a/examples/OpenGLWindow/fontstash.h +++ b/examples/OpenGLWindow/fontstash.h @@ -22,7 +22,7 @@ #define MAX_ROWS 128 -#define VERT_COUNT (6*128) +#define VERT_COUNT (16*128) #define INDEX_COUNT (VERT_COUNT*2) @@ -102,6 +102,9 @@ struct sth_texture struct RenderCallbacks { virtual ~RenderCallbacks() {} + virtual void setColorRGBA(float color[4])=0; + virtual void setWorldPosition(float pos[3])=0; + virtual void setWorldOrientation(float orn[4])=0; virtual void updateTexture(sth_texture* texture, sth_glyph* glyph, int textureWidth, int textureHeight)=0; virtual void render(sth_texture* texture)=0; }; @@ -124,13 +127,28 @@ void sth_draw_texture(struct sth_stash* stash, int idx, float size, float x, float y, int screenwidth, int screenheight, - const char* s, float* dx); + const char* s, float* dx, float colorRGBA[4]); void sth_flush_draw(struct sth_stash* stash); + +void sth_draw_text3D(struct sth_stash* stash, + int idx, float fontSize, + float x, float y, float z, + const char* s, float* dx, float textScale, float colorRGBA[4], int bla); + void sth_draw_text(struct sth_stash* stash, int idx, float size, - float x, float y, const char* string, float* dx, int screenwidth, int screenheight, int measureOnly=0, float retinaScale=1); + float x, float y, const char* string, float* dx, int screenwidth, int screenheight, int measureOnly, float retinaScale, float colorRGBA[4]); + +inline void sth_draw_text(struct sth_stash* stash, + int idx, float size, + float x, float y, const char* string, float* dx, int screenwidth, int screenheight, int measureOnly=false, float retinaScale=1.) +{ + float colorRGBA[4]={1,1,1,1}; + sth_draw_text(stash,idx,size,x,y,string,dx,screenwidth,screenheight,measureOnly, retinaScale, colorRGBA); + +} void sth_dim_text(struct sth_stash* stash, int idx, float size, const char* string, float* minx, float* miny, float* maxx, float* maxy); diff --git a/examples/OpenGLWindow/opengl_fontstashcallbacks.cpp b/examples/OpenGLWindow/opengl_fontstashcallbacks.cpp index 3b9f9fe40..ba67c064d 100644 --- a/examples/OpenGLWindow/opengl_fontstashcallbacks.cpp +++ b/examples/OpenGLWindow/opengl_fontstashcallbacks.cpp @@ -10,12 +10,12 @@ #include #include #define STB_IMAGE_WRITE_IMPLEMENTATION -#include "stb_image_write.h" +#include "stb_image/stb_image_write.h" static unsigned int s_indexData[INDEX_COUNT]; -GLuint s_indexArrayObject, s_indexBuffer; -GLuint s_vertexArrayObject,s_vertexBuffer; +static GLuint s_indexArrayObject, s_indexBuffer; +static GLuint s_vertexArrayObject,s_vertexBuffer; OpenGL2RenderCallbacks::OpenGL2RenderCallbacks(GLPrimitiveRenderer* primRender) :m_primRender2(primRender) @@ -54,7 +54,13 @@ void InternalOpenGL2RenderCallbacks::display2() assert(glGetError()==GL_NO_ERROR); - + float identity[16]={1,0,0,0, + 0,1,0,0, + 0,0,1,0, + 0,0,0,1}; + glUniformMatrix4fv(data->m_viewmatUniform, 1, false, identity); + glUniformMatrix4fv(data->m_projMatUniform, 1, false, identity); + vec2 p( 0.f,0.f);//?b?0.5f * sinf(timeValue), 0.5f * cosf(timeValue) ); glUniform2fv(data->m_positionUniform, 1, (const GLfloat *)&p); diff --git a/examples/OpenGLWindow/opengl_fontstashcallbacks.h b/examples/OpenGLWindow/opengl_fontstashcallbacks.h index 285a3df97..e4db0010f 100644 --- a/examples/OpenGLWindow/opengl_fontstashcallbacks.h +++ b/examples/OpenGLWindow/opengl_fontstashcallbacks.h @@ -43,6 +43,10 @@ struct OpenGL2RenderCallbacks : public InternalOpenGL2RenderCallbacks GLPrimitiveRenderer* m_primRender2; virtual PrimInternalData* getData(); + virtual void setWorldPosition(float pos[3]){} + virtual void setWorldOrientation(float orn[4]){} + virtual void setColorRGBA(float color[4]){} + OpenGL2RenderCallbacks(GLPrimitiveRenderer* primRender); virtual ~OpenGL2RenderCallbacks(); diff --git a/examples/OpenGLWindow/premake4.lua b/examples/OpenGLWindow/premake4.lua index 6328c418b..17dfdda09 100644 --- a/examples/OpenGLWindow/premake4.lua +++ b/examples/OpenGLWindow/premake4.lua @@ -9,7 +9,7 @@ initGlew() includedirs { - + "../ThirdPartyLibs", "../../src", } diff --git a/examples/Planar2D/Planar2D.cpp b/examples/Planar2D/Planar2D.cpp index c9fa4959f..5b2c0eac8 100644 --- a/examples/Planar2D/Planar2D.cpp +++ b/examples/Planar2D/Planar2D.cpp @@ -96,10 +96,10 @@ class Planar2D : public CommonRigidBodyBase void resetCamera() { float dist = 9; - float pitch = 539; - float yaw = 11; + float pitch = -11; + float yaw = 539; float targetPos[3]={8.6,10.5,-20.6}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } diff --git a/examples/Raycast/RaytestDemo.cpp b/examples/Raycast/RaytestDemo.cpp index 5bf458d7e..9ba1b74d8 100644 --- a/examples/Raycast/RaytestDemo.cpp +++ b/examples/Raycast/RaytestDemo.cpp @@ -55,10 +55,10 @@ public: virtual void resetCamera() { float dist = 18; - float pitch = 129; - float yaw = 30; + float pitch = -30; + float yaw = 129; float targetPos[3]={-4.6,-4.7,-5.75}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } }; diff --git a/examples/RenderingExamples/CoordinateSystemDemo.cpp b/examples/RenderingExamples/CoordinateSystemDemo.cpp index 7f35af853..7176298ff 100644 --- a/examples/RenderingExamples/CoordinateSystemDemo.cpp +++ b/examples/RenderingExamples/CoordinateSystemDemo.cpp @@ -37,7 +37,6 @@ public: } virtual ~CoordinateSystemDemo() { - m_app->m_renderer->enableBlend(false); } @@ -143,8 +142,8 @@ public: virtual void resetCamera() { float dist = 3.5; - float pitch = 136; - float yaw = 32; + float pitch = -32; + float yaw = 136; float targetPos[3]={0,0,0}; if (m_app->m_renderer && m_app->m_renderer->getActiveCamera()) { diff --git a/examples/RenderingExamples/DynamicTexturedCubeDemo.cpp b/examples/RenderingExamples/DynamicTexturedCubeDemo.cpp index 607541b7f..5b2b2b6d9 100644 --- a/examples/RenderingExamples/DynamicTexturedCubeDemo.cpp +++ b/examples/RenderingExamples/DynamicTexturedCubeDemo.cpp @@ -66,7 +66,6 @@ public: virtual ~DynamicTexturedCubeDemo() { delete m_tinyVrGUI; - m_app->m_renderer->enableBlend(false); } @@ -121,8 +120,8 @@ public: virtual void resetCamera() { float dist = 1.15; - float pitch = 396; - float yaw = 33.7; + float pitch = -33.7; + float yaw = 396; float targetPos[3]={-0.5,0.7,1.45}; if (m_app->m_renderer && m_app->m_renderer->getActiveCamera()) { diff --git a/examples/RenderingExamples/RenderInstancingDemo.cpp b/examples/RenderingExamples/RenderInstancingDemo.cpp index aa0d40f2b..c85824dc9 100644 --- a/examples/RenderingExamples/RenderInstancingDemo.cpp +++ b/examples/RenderingExamples/RenderInstancingDemo.cpp @@ -68,7 +68,6 @@ public: } virtual ~RenderInstancingDemo() { - m_app->m_renderer->enableBlend(false); } @@ -128,8 +127,8 @@ public: virtual void resetCamera() { float dist = 13; - float pitch = 50; - float yaw = 13; + float pitch = -13; + float yaw = 50; float targetPos[3]={-1,0,-0.3}; if (m_app->m_renderer && m_app->m_renderer->getActiveCamera()) { diff --git a/examples/RenderingExamples/TinyRendererSetup.cpp b/examples/RenderingExamples/TinyRendererSetup.cpp index 0a3025a63..a896552ac 100644 --- a/examples/RenderingExamples/TinyRendererSetup.cpp +++ b/examples/RenderingExamples/TinyRendererSetup.cpp @@ -137,10 +137,10 @@ struct TinyRendererSetup : public CommonExampleInterface void resetCamera() { float dist = 11; - float pitch = 52; - float yaw = 35; + float pitch = -35; + float yaw = 52; float targetPos[3]={0,0.46,0}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } }; @@ -154,7 +154,6 @@ TinyRendererSetup::TinyRendererSetup(struct GUIHelperInterface* gui) m_app = gui->getAppInterface(); m_internalData = new TinyRendererSetupInternalData(gui->getAppInterface()->m_window->getWidth(),gui->getAppInterface()->m_window->getHeight()); - m_app->m_renderer->enableBlend(true); const char* fileName = "textured_sphere_smooth.obj"; fileName = "cube.obj"; @@ -225,7 +224,6 @@ TinyRendererSetup::TinyRendererSetup(struct GUIHelperInterface* gui) TinyRendererSetup::~TinyRendererSetup() { - m_app->m_renderer->enableBlend(false); delete m_internalData; } diff --git a/examples/RigidBody/RigidBodySoftContact.cpp b/examples/RigidBody/RigidBodySoftContact.cpp index f44c8a987..2d2cf1fc3 100644 --- a/examples/RigidBody/RigidBodySoftContact.cpp +++ b/examples/RigidBody/RigidBodySoftContact.cpp @@ -47,10 +47,10 @@ struct RigidBodySoftContact : public CommonRigidBodyBase void resetCamera() { float dist = 3; - float pitch = 52; - float yaw = 35; + float pitch = -35; + float yaw = 52; float targetPos[3]={0,0.46,0}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } }; diff --git a/examples/RobotSimulator/CMakeLists.txt b/examples/RobotSimulator/CMakeLists.txt index a178db654..7d35a445e 100644 --- a/examples/RobotSimulator/CMakeLists.txt +++ b/examples/RobotSimulator/CMakeLists.txt @@ -32,6 +32,7 @@ SET(RobotSimulator_SRCS ../../examples/SharedMemory/PhysicsServer.cpp ../../examples/SharedMemory/PhysicsServer.h ../../examples/SharedMemory/PhysicsServerExample.cpp + ../../examples/SharedMemory/PhysicsServerExampleBullet2.cpp ../../examples/SharedMemory/SharedMemoryInProcessPhysicsC_API.cpp ../../examples/SharedMemory/PhysicsServerSharedMemory.cpp ../../examples/SharedMemory/PhysicsServerSharedMemory.h diff --git a/examples/RobotSimulator/b3RobotSimulatorClientAPI.cpp b/examples/RobotSimulator/b3RobotSimulatorClientAPI.cpp index fd744cea9..172a8dfb9 100644 --- a/examples/RobotSimulator/b3RobotSimulatorClientAPI.cpp +++ b/examples/RobotSimulator/b3RobotSimulatorClientAPI.cpp @@ -132,6 +132,17 @@ bool b3RobotSimulatorClientAPI::connect(int mode, const std::string& hostName, i sm = b3CreateInProcessPhysicsServerAndConnectMainThread(argc, argv); #else sm = b3CreateInProcessPhysicsServerAndConnect(argc, argv); +#endif + break; + } + case eCONNECT_GUI_SERVER: + { + int argc = 0; + char* argv[1] = {0}; +#ifdef __APPLE__ + sm = b3CreateInProcessPhysicsServerAndConnectMainThread(argc, argv); +#else + sm = b3CreateInProcessPhysicsServerAndConnect(argc, argv); #endif break; } @@ -290,6 +301,7 @@ void b3RobotSimulatorClientAPI::setGravity(const b3Vector3& gravityAcceleration) b3Warning("Not connected"); return; } + b3Assert(b3CanSubmitCommand(m_data->m_physicsClientHandle)); b3SharedMemoryCommandHandle command = b3InitPhysicsParamCommand(m_data->m_physicsClientHandle); b3SharedMemoryStatusHandle statusHandle; @@ -1142,5 +1154,5 @@ void b3RobotSimulatorClientAPI::loadBunny(double scale, double mass, double coll b3LoadBunnySetScale(command, scale); b3LoadBunnySetMass(command, mass); b3LoadBunnySetCollisionMargin(command, collisionMargin); - b3SubmitClientCommand(m_data->m_physicsClientHandle, command); + b3SubmitClientCommandAndWaitStatus(m_data->m_physicsClientHandle, command); } \ No newline at end of file diff --git a/examples/RobotSimulator/premake4.lua b/examples/RobotSimulator/premake4.lua index f2cba47c7..faa6fb281 100644 --- a/examples/RobotSimulator/premake4.lua +++ b/examples/RobotSimulator/premake4.lua @@ -10,6 +10,7 @@ myfiles = "../../examples/SharedMemory/PhysicsServer.cpp", "../../examples/SharedMemory/PhysicsServer.h", "../../examples/SharedMemory/PhysicsServerExample.cpp", + "../../examples/SharedMemory/PhysicsServerExampleBullet2.cpp", "../../examples/SharedMemory/SharedMemoryInProcessPhysicsC_API.cpp", "../../examples/SharedMemory/PhysicsServerSharedMemory.cpp", "../../examples/SharedMemory/PhysicsServerSharedMemory.h", diff --git a/examples/RoboticsLearning/GripperGraspExample.cpp b/examples/RoboticsLearning/GripperGraspExample.cpp index a01993c93..5b9d5e437 100644 --- a/examples/RoboticsLearning/GripperGraspExample.cpp +++ b/examples/RoboticsLearning/GripperGraspExample.cpp @@ -45,7 +45,6 @@ public: } virtual ~GripperGraspExample() { - m_app->m_renderer->enableBlend(false); } @@ -496,8 +495,8 @@ public: virtual void resetCamera() { float dist = 1.5; - float pitch = 18; - float yaw = 10; + float pitch = -10; + float yaw = 18; float targetPos[3]={-0.2,0.8,0.3}; if (m_app->m_renderer && m_app->m_renderer->getActiveCamera()) { diff --git a/examples/RoboticsLearning/KukaGraspExample.cpp b/examples/RoboticsLearning/KukaGraspExample.cpp index abb3005d1..99f24f7de 100644 --- a/examples/RoboticsLearning/KukaGraspExample.cpp +++ b/examples/RoboticsLearning/KukaGraspExample.cpp @@ -54,7 +54,6 @@ public: } virtual ~KukaGraspExample() { - m_app->m_renderer->enableBlend(false); } @@ -283,8 +282,8 @@ public: virtual void resetCamera() { float dist = 3; - float pitch = 0; - float yaw = 30; + float pitch = -30; + float yaw = 0; float targetPos[3]={-0.2,0.8,0.3}; if (m_app->m_renderer && m_app->m_renderer->getActiveCamera()) { diff --git a/examples/RoboticsLearning/R2D2GraspExample.cpp b/examples/RoboticsLearning/R2D2GraspExample.cpp index ad14ceec5..abe4e6ff5 100644 --- a/examples/RoboticsLearning/R2D2GraspExample.cpp +++ b/examples/RoboticsLearning/R2D2GraspExample.cpp @@ -41,7 +41,6 @@ public: } virtual ~R2D2GraspExample() { - m_app->m_renderer->enableBlend(false); } @@ -188,8 +187,8 @@ public: virtual void resetCamera() { float dist = 3; - float pitch = -75; - float yaw = 30; + float pitch = -30; + float yaw = -75; float targetPos[3]={-0.2,0.8,0.3}; if (m_app->m_renderer && m_app->m_renderer->getActiveCamera()) { diff --git a/examples/RollingFrictionDemo/RollingFrictionDemo.cpp b/examples/RollingFrictionDemo/RollingFrictionDemo.cpp index 65a2404d3..be837ab5a 100644 --- a/examples/RollingFrictionDemo/RollingFrictionDemo.cpp +++ b/examples/RollingFrictionDemo/RollingFrictionDemo.cpp @@ -59,10 +59,10 @@ public: void resetCamera() { float dist = 35; - float pitch = 0; - float yaw = 14; + float pitch = -14; + float yaw = 0; float targetPos[3]={0,0,0}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } }; diff --git a/examples/SharedMemory/CMakeLists.txt b/examples/SharedMemory/CMakeLists.txt index 1bd626572..dd10c5ff8 100644 --- a/examples/SharedMemory/CMakeLists.txt +++ b/examples/SharedMemory/CMakeLists.txt @@ -7,6 +7,7 @@ SET(SharedMemory_SRCS PhysicsClientSharedMemory.cpp PhysicsClientExample.cpp PhysicsServerExample.cpp + PhysicsServerExampleBullet2.cpp PhysicsServerSharedMemory.cpp PhysicsServerSharedMemory.h PhysicsServer.cpp @@ -62,7 +63,7 @@ SET(SharedMemory_SRCS ../Importers/ImportMJCFDemo/BulletMJCFImporter.cpp ../Importers/ImportMJCFDemo/BulletMJCFImporter.h ../Utils/b3ResourcePath.cpp - ../Utils/b3Clock.cpp + ../Utils/b3Clock.cpp ../Utils/RobotLoggingUtil.cpp ../Utils/RobotLoggingUtil.h ../Utils/ChromeTraceUtil.cpp @@ -75,13 +76,13 @@ SET(SharedMemory_SRCS ../Importers/ImportSTLDemo/LoadMeshFromSTL.h ../Importers/ImportColladaDemo/LoadMeshFromCollada.cpp ../Importers/ImportColladaDemo/ColladaGraphicsInstance.h - ../ThirdPartyLibs/Wavefront/tiny_obj_loader.cpp + ../ThirdPartyLibs/Wavefront/tiny_obj_loader.cpp ../ThirdPartyLibs/tinyxml/tinystr.cpp ../ThirdPartyLibs/tinyxml/tinyxml.cpp ../ThirdPartyLibs/tinyxml/tinyxmlerror.cpp ../ThirdPartyLibs/tinyxml/tinyxmlparser.cpp ../Importers/ImportMeshUtility/b3ImportMeshUtility.cpp - ../ThirdPartyLibs/stb_image/stb_image.cpp + ../ThirdPartyLibs/stb_image/stb_image.cpp ../MultiThreading/b3ThreadSupportInterface.cpp ../MultiThreading/b3ThreadSupportInterface.h ) @@ -95,6 +96,10 @@ LINK_LIBRARIES( Bullet3Common BulletWorldImporter BulletFileLoader BulletInverseDynamicsUtils BulletInverseDynamics BulletDynamics BulletCollision LinearMath BussIK ) +IF (USE_SOFT_BODY_MULTI_BODY_DYNAMICS_WORLD) + LINK_LIBRARIES(BulletSoftBody) +ENDIF() + IF (WIN32) ADD_EXECUTABLE(App_PhysicsServer_SharedMemory ${SharedMemory_SRCS} @@ -112,7 +117,7 @@ ELSE(WIN32) ../MultiThreading/b3PosixThreadSupport.h main.cpp ) - + ELSE(APPLE) LINK_LIBRARIES( pthread ${DL} ) ADD_EXECUTABLE(App_PhysicsServer_SharedMemory @@ -152,7 +157,7 @@ LINK_LIBRARIES( IF (WIN32) ADD_DEFINITIONS(-DGLEW_STATIC) LINK_LIBRARIES( ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} ) - + ADD_EXECUTABLE(App_PhysicsServer_SharedMemory_GUI ${SharedMemory_SRCS} ../StandaloneMain/main_opengl_single_example.cpp @@ -169,23 +174,23 @@ ELSE(WIN32) FIND_LIBRARY(COCOA NAMES Cocoa) MESSAGE(${COCOA}) LINK_LIBRARIES(${COCOA} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY}) - + ADD_EXECUTABLE(App_PhysicsServer_SharedMemory_GUI ${SharedMemory_SRCS} ../StandaloneMain/main_opengl_single_example.cpp ../ExampleBrowser/OpenGLGuiHelper.cpp ../ExampleBrowser/GL_ShapeDrawer.cpp - ../ExampleBrowser/CollisionShape2TriangleMesh.cpp + ../ExampleBrowser/CollisionShape2TriangleMesh.cpp ../MultiThreading/b3PosixThreadSupport.cpp ../MultiThreading/b3PosixThreadSupport.h ) - + ELSE(APPLE) LINK_LIBRARIES( pthread ${DL} ) ADD_DEFINITIONS("-DGLEW_INIT_OPENGL11_FUNCTIONS=1") ADD_DEFINITIONS("-DGLEW_STATIC") ADD_DEFINITIONS("-DGLEW_DYNAMIC_LOAD_ALL_GLX_FUNCTIONS=1") - + ADD_EXECUTABLE(App_PhysicsServer_SharedMemory_GUI ${SharedMemory_SRCS} ../StandaloneMain/main_opengl_single_example.cpp @@ -208,14 +213,15 @@ IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) -IF (WIN32) +#VR/OpenVR only on Windows and Mac OSX for now +IF (WIN32 OR APPLE) INCLUDE_DIRECTORIES( ${BULLET_PHYSICS_SOURCE_DIR}/src ${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs ${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs/Glew ${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs/openvr/headers - ${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs/openvr/samples/shared + ${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs/openvr/samples/shared ) @@ -229,13 +235,42 @@ LINK_LIBRARIES( ADD_DEFINITIONS(-DGLEW_STATIC) LINK_LIBRARIES( ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} ) + IF(WIN32) + SET(Platform_SRCS + ../MultiThreading/b3Win32ThreadSupport.cpp + ../MultiThreading/b3Win32ThreadSupport.h + ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc + ) IF (CMAKE_CL_64) LINK_DIRECTORIES(${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs/openvr/lib/win64) ELSE(CMAKE_CL_64) LINK_DIRECTORIES(${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs/openvr/lib/win32) - ENDIF(CMAKE_CL_64) + ENDIF(CMAKE_CL_64) + ELSE(WIN32) + + set_source_files_properties(../ThirdPartyLibs/openvr/samples/shared/pathtools.cpp ../StandaloneMain/hellovr_opengl_main.cpp PROPERTIES COMPILE_FLAGS "-x objective-c++") + find_library(FOUNDATION_FRAMEWORK Foundation) + mark_as_advanced(FOUNDATION_FRAMEWORK) + set(EXTRA_LIBS ${EXTRA_LIBS} ${FOUNDATION_FRAMEWORK}) + + set(CMAKE_MACOSX_RPATH 0) + + SET(Platform_SRCS + ../MultiThreading/b3PosixThreadSupport.cpp + ../MultiThreading/b3PosixThreadSupport.h + ) + IF (CMAKE_CL_64) + LINK_DIRECTORIES(${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs/openvr/lib/osx64) + ELSE() + set(ARCH_TARGET osx32) + LINK_DIRECTORIES(${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs/openvr/lib/osx32) + ENDIF() + add_definitions(-DOSX -DPOSIX) + + ENDIF(WIN32) ADD_EXECUTABLE(App_PhysicsServer_SharedMemory_VR ${SharedMemory_SRCS} + ${Platform_SRCS} ../StandaloneMain/hellovr_opengl_main.cpp ../ExampleBrowser/OpenGLGuiHelper.cpp ../ExampleBrowser/GL_ShapeDrawer.cpp @@ -250,12 +285,9 @@ LINK_LIBRARIES( ../ThirdPartyLibs/openvr/samples/shared/pathtools.cpp ../ThirdPartyLibs/openvr/samples/shared/pathtools.h ../ThirdPartyLibs/openvr/samples/shared/strtools.cpp - ../ThirdPartyLibs/openvr/samples/shared/strtools.h + ../ThirdPartyLibs/openvr/samples/shared/strtools.h ../ThirdPartyLibs/openvr/samples/shared/Vectors.h - ../MultiThreading/b3Win32ThreadSupport.cpp - ../MultiThreading/b3Win32ThreadSupport.h - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) + ) IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES) @@ -272,7 +304,7 @@ IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES) COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs/openvr/bin/win32/openvr_api.dll ${CMAKE_CURRENT_BINARY_DIR}/openvr_api.dll ) ENDIF(CMAKE_CL_64) - + ADD_CUSTOM_COMMAND( TARGET App_PhysicsServer_SharedMemory_VR POST_BUILD diff --git a/examples/SharedMemory/PhysicsClient.h b/examples/SharedMemory/PhysicsClient.h index 2ce391c60..28b823008 100644 --- a/examples/SharedMemory/PhysicsClient.h +++ b/examples/SharedMemory/PhysicsClient.h @@ -62,6 +62,8 @@ public: virtual void getCachedKeyboardEvents(struct b3KeyboardEventsData* keyboardEventsData) = 0; + virtual void getCachedMouseEvents(struct b3MouseEventsData* mouseEventsData) = 0; + virtual void getCachedRaycastHits(struct b3RaycastInformation* raycastHits) = 0; virtual void setTimeOut(double timeOutInSeconds) = 0; diff --git a/examples/SharedMemory/PhysicsClientC_API.cpp b/examples/SharedMemory/PhysicsClientC_API.cpp index 6a4023c58..5e80652bd 100644 --- a/examples/SharedMemory/PhysicsClientC_API.cpp +++ b/examples/SharedMemory/PhysicsClientC_API.cpp @@ -223,6 +223,18 @@ int b3LoadUrdfCommandSetUseMultiBody(b3SharedMemoryCommandHandle commandHandle, return 0; } +int b3LoadUrdfCommandSetGlobalScaling(b3SharedMemoryCommandHandle commandHandle, double globalScaling) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command); + b3Assert(command->m_type == CMD_LOAD_URDF); + command->m_updateFlags |=URDF_ARGS_USE_GLOBAL_SCALING; + command->m_urdfArguments.m_globalScaling = globalScaling; + return 0; +} + + + int b3LoadSdfCommandSetUseMultiBody(b3SharedMemoryCommandHandle commandHandle, int useMultiBody) { struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; @@ -234,6 +246,19 @@ int b3LoadSdfCommandSetUseMultiBody(b3SharedMemoryCommandHandle commandHandle, i return 0; } +int b3LoadSdfCommandSetUseGlobalScaling(b3SharedMemoryCommandHandle commandHandle, double globalScaling) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command); + b3Assert(command->m_type == CMD_LOAD_SDF); + command->m_updateFlags |=URDF_ARGS_USE_GLOBAL_SCALING; + command->m_sdfArguments.m_globalScaling = globalScaling; + + return 0; +} + + + int b3LoadUrdfCommandSetUseFixedBase(b3SharedMemoryCommandHandle commandHandle, int useFixedBase) { struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; @@ -392,6 +417,18 @@ int b3PhysicsParamSetEnableFileCaching(b3SharedMemoryCommandHandle commandHandle } +int b3PhysicsParamSetRestitutionVelocityThreshold(b3SharedMemoryCommandHandle commandHandle, double restitutionVelocityThreshold) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command->m_type == CMD_SEND_PHYSICS_SIMULATION_PARAMETERS); + + command->m_physSimParamArgs.m_restitutionVelocityThreshold = restitutionVelocityThreshold; + command->m_updateFlags |= SIM_PARAM_UPDATE_RESTITUTION_VELOCITY_THRESHOLD ; + return 0; + +} + + int b3PhysicsParamSetNumSolverIterations(b3SharedMemoryCommandHandle commandHandle, int numSolverIterations) { struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; @@ -440,10 +477,24 @@ int b3PhysicsParamSetDefaultContactERP(b3SharedMemoryCommandHandle commandHandle command->m_physSimParamArgs.m_defaultContactERP = defaultContactERP; return 0; } +int b3PhysicsParamSetDefaultNonContactERP(b3SharedMemoryCommandHandle commandHandle, double defaultNonContactERP) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command->m_type == CMD_SEND_PHYSICS_SIMULATION_PARAMETERS); + command->m_updateFlags |= SIM_PARAM_UPDATE_DEFAULT_NON_CONTACT_ERP; + command->m_physSimParamArgs.m_defaultNonContactERP = defaultNonContactERP; + return 0; +} +int b3PhysicsParamSetDefaultFrictionERP(b3SharedMemoryCommandHandle commandHandle, double frictionERP) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command->m_type == CMD_SEND_PHYSICS_SIMULATION_PARAMETERS); + command->m_updateFlags |= SIM_PARAM_UPDATE_DEFAULT_FRICTION_ERP; + command->m_physSimParamArgs.m_frictionERP = frictionERP; + return 0; +} -int b3PhysicsParamSetDefaultContactERP(b3SharedMemoryCommandHandle commandHandle, double defaultContactERP); - b3SharedMemoryCommandHandle b3InitStepSimulationCommand(b3PhysicsClientHandle physClient) { PhysicsClient* cl = (PhysicsClient* ) physClient; @@ -679,6 +730,401 @@ int b3GetLinkState(b3PhysicsClientHandle physClient, b3SharedMemoryStatusHandle return 0; } +b3SharedMemoryCommandHandle b3CreateCollisionShapeCommandInit(b3PhysicsClientHandle physClient) +{ + PhysicsClient* cl = (PhysicsClient* ) physClient; + b3Assert(cl); + b3Assert(cl->canSubmitCommand()); + if (cl) + { + struct SharedMemoryCommand* command = cl->getAvailableSharedMemoryCommand(); + b3Assert(command); + command->m_type = CMD_CREATE_COLLISION_SHAPE; + command->m_updateFlags =0; + command->m_createCollisionShapeArgs.m_numCollisionShapes = 0; + return (b3SharedMemoryCommandHandle) command; + } + return 0; +} + +int b3CreateCollisionShapeAddSphere(b3SharedMemoryCommandHandle commandHandle,double radius) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command); + b3Assert(command->m_type == CMD_CREATE_COLLISION_SHAPE); + if (command->m_type==CMD_CREATE_COLLISION_SHAPE) + { + int shapeIndex = command->m_createCollisionShapeArgs.m_numCollisionShapes; + if (shapeIndex m_createCollisionShapeArgs.m_shapes[shapeIndex].m_type = GEOM_SPHERE; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_collisionFlags = 0; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_hasChildTransform = 0; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_sphereRadius = radius; + command->m_createCollisionShapeArgs.m_numCollisionShapes++; + return shapeIndex; + } + } + return -1; +} + +int b3CreateCollisionShapeAddBox(b3SharedMemoryCommandHandle commandHandle,double halfExtents[3]) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command); + b3Assert(command->m_type == CMD_CREATE_COLLISION_SHAPE); + if (command->m_type==CMD_CREATE_COLLISION_SHAPE) + { + int shapeIndex = command->m_createCollisionShapeArgs.m_numCollisionShapes; + if (shapeIndex m_createCollisionShapeArgs.m_shapes[shapeIndex].m_type = GEOM_BOX; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_collisionFlags = 0; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_hasChildTransform = 0; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_boxHalfExtents[0] = halfExtents[0]; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_boxHalfExtents[1] = halfExtents[1]; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_boxHalfExtents[2] = halfExtents[2]; + command->m_createCollisionShapeArgs.m_numCollisionShapes++; + return shapeIndex; + } + } + return -1; +} + +int b3CreateCollisionShapeAddCapsule(b3SharedMemoryCommandHandle commandHandle,double radius, double height) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command); + b3Assert(command->m_type == CMD_CREATE_COLLISION_SHAPE); + if (command->m_type==CMD_CREATE_COLLISION_SHAPE) + { + int shapeIndex = command->m_createCollisionShapeArgs.m_numCollisionShapes; + if (shapeIndex m_createCollisionShapeArgs.m_shapes[shapeIndex].m_type = GEOM_CAPSULE; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_collisionFlags = 0; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_hasChildTransform = 0; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_capsuleRadius = radius; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_capsuleHeight = height; + command->m_createCollisionShapeArgs.m_numCollisionShapes++; + return shapeIndex; + } + } + return -1; +} + +int b3CreateCollisionShapeAddCylinder(b3SharedMemoryCommandHandle commandHandle,double radius, double height) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command); + b3Assert(command->m_type == CMD_CREATE_COLLISION_SHAPE); + if (command->m_type==CMD_CREATE_COLLISION_SHAPE) + { + int shapeIndex = command->m_createCollisionShapeArgs.m_numCollisionShapes; + if (shapeIndex m_createCollisionShapeArgs.m_shapes[shapeIndex].m_type = GEOM_CYLINDER; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_collisionFlags = 0; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_hasChildTransform = 0; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_capsuleRadius = radius; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_capsuleHeight = height; + command->m_createCollisionShapeArgs.m_numCollisionShapes++; + return shapeIndex; + } + } + return -1; +} + + +int b3CreateCollisionShapeAddPlane(b3SharedMemoryCommandHandle commandHandle, double planeNormal[3], double planeConstant) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command); + b3Assert(command->m_type == CMD_CREATE_COLLISION_SHAPE); + if (command->m_type==CMD_CREATE_COLLISION_SHAPE) + { + int shapeIndex = command->m_createCollisionShapeArgs.m_numCollisionShapes; + if (shapeIndex m_createCollisionShapeArgs.m_shapes[shapeIndex].m_type = GEOM_PLANE; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_collisionFlags = 0; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_hasChildTransform = 0; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_planeNormal[0] = planeNormal[0]; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_planeNormal[1] = planeNormal[1]; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_planeNormal[2] = planeNormal[2]; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_planeConstant = planeConstant; + command->m_createCollisionShapeArgs.m_numCollisionShapes++; + return shapeIndex; + } + } + return -1; +} + +int b3CreateCollisionShapeAddMesh(b3SharedMemoryCommandHandle commandHandle,const char* fileName, double meshScale[3]) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command); + b3Assert(command->m_type == CMD_CREATE_COLLISION_SHAPE); + if (command->m_type==CMD_CREATE_COLLISION_SHAPE) + { + int shapeIndex = command->m_createCollisionShapeArgs.m_numCollisionShapes; + if (shapeIndex m_createCollisionShapeArgs.m_shapes[shapeIndex].m_type = GEOM_MESH; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_collisionFlags = 0; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_hasChildTransform = 0; + strcpy(command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_meshFileName,fileName); + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_meshScale[0] = meshScale[0]; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_meshScale[1] = meshScale[1]; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_meshScale[2] = meshScale[2]; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_meshFileType = 0; + command->m_createCollisionShapeArgs.m_numCollisionShapes++; + return shapeIndex; + } + } + return -1; +} + +void b3CreateCollisionSetFlag(b3SharedMemoryCommandHandle commandHandle,int shapeIndex, int flags) +{ + + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command); + b3Assert(command->m_type == CMD_CREATE_COLLISION_SHAPE); + if (command->m_type==CMD_CREATE_COLLISION_SHAPE) + { + if (shapeIndexm_createCollisionShapeArgs.m_numCollisionShapes) + { + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_collisionFlags |= flags; + } + } +} + + +void b3CreateCollisionShapeSetChildTransform(b3SharedMemoryCommandHandle commandHandle,int shapeIndex, double childPosition[3], double childOrientation[4]) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command); + b3Assert(command->m_type == CMD_CREATE_COLLISION_SHAPE); + if (command->m_type==CMD_CREATE_COLLISION_SHAPE) + { + if (shapeIndexm_createCollisionShapeArgs.m_numCollisionShapes) + { + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_hasChildTransform = 1; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_childPosition[0] = childPosition[0]; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_childPosition[1] = childPosition[1]; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_childPosition[2] = childPosition[2]; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_childOrientation[0] = childOrientation[0]; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_childOrientation[1] = childOrientation[1]; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_childOrientation[2] = childOrientation[2]; + command->m_createCollisionShapeArgs.m_shapes[shapeIndex].m_childOrientation[3] = childOrientation[3]; + } + } +} + + +int b3GetStatusCollisionShapeUniqueId(b3SharedMemoryStatusHandle statusHandle) +{ + const SharedMemoryStatus* status = (const SharedMemoryStatus* ) statusHandle; + b3Assert(status); + b3Assert(status->m_type == CMD_CREATE_COLLISION_SHAPE_COMPLETED); + if (status && status->m_type == CMD_CREATE_COLLISION_SHAPE_COMPLETED) + { + return status->m_createCollisionShapeResultArgs.m_collisionShapeUniqueId; + } + return -1; +} + + +b3SharedMemoryCommandHandle b3CreateVisualShapeCommandInit(b3PhysicsClientHandle physClient) +{ + PhysicsClient* cl = (PhysicsClient* ) physClient; + b3Assert(cl); + b3Assert(cl->canSubmitCommand()); + if (cl) + { + struct SharedMemoryCommand* command = cl->getAvailableSharedMemoryCommand(); + b3Assert(command); + command->m_type = CMD_CREATE_VISUAL_SHAPE; + command->m_updateFlags =0; + return (b3SharedMemoryCommandHandle) command; + } + return 0; +} + +int b3GetStatusVisualShapeUniqueId(b3SharedMemoryStatusHandle statusHandle) +{ + const SharedMemoryStatus* status = (const SharedMemoryStatus* ) statusHandle; + b3Assert(status); + b3Assert(status->m_type == CMD_CREATE_VISUAL_SHAPE_COMPLETED); + if (status && status->m_type == CMD_CREATE_VISUAL_SHAPE_COMPLETED) + { + return status->m_createVisualShapeResultArgs.m_visualShapeUniqueId; + } + return -1; +} + +b3SharedMemoryCommandHandle b3CreateMultiBodyCommandInit(b3PhysicsClientHandle physClient) +{ + PhysicsClient* cl = (PhysicsClient* ) physClient; + b3Assert(cl); + b3Assert(cl->canSubmitCommand()); + if (cl) + { + struct SharedMemoryCommand* command = cl->getAvailableSharedMemoryCommand(); + b3Assert(command); + command->m_type = CMD_CREATE_MULTI_BODY; + command->m_updateFlags =0; + command->m_createMultiBodyArgs.m_bodyName[0] = 0; + command->m_createMultiBodyArgs.m_baseLinkIndex = -1; + command->m_createMultiBodyArgs.m_numLinks = 0; + return (b3SharedMemoryCommandHandle) command; + } + return 0; +} + +int b3CreateMultiBodyBase(b3SharedMemoryCommandHandle commandHandle, double mass, int collisionShapeUnique, int visualShapeUniqueId, double basePosition[3], double baseOrientation[4] , double baseInertialFramePosition[3], double baseInertialFrameOrientation[4]) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command); + b3Assert(command->m_type == CMD_CREATE_MULTI_BODY); + if (command->m_type==CMD_CREATE_MULTI_BODY) + { + int numLinks = command->m_createMultiBodyArgs.m_numLinks; + + if (numLinksm_updateFlags |=MULTI_BODY_HAS_BASE; + command->m_createMultiBodyArgs.m_baseLinkIndex = baseLinkIndex; + command->m_createMultiBodyArgs.m_linkPositions[baseLinkIndex*3+0]=basePosition[0]; + command->m_createMultiBodyArgs.m_linkPositions[baseLinkIndex*3+1]=basePosition[1]; + command->m_createMultiBodyArgs.m_linkPositions[baseLinkIndex*3+2]=basePosition[2]; + + command->m_createMultiBodyArgs.m_linkOrientations[baseLinkIndex*4+0]=baseOrientation[0]; + command->m_createMultiBodyArgs.m_linkOrientations[baseLinkIndex*4+1]=baseOrientation[1]; + command->m_createMultiBodyArgs.m_linkOrientations[baseLinkIndex*4+2]=baseOrientation[2]; + command->m_createMultiBodyArgs.m_linkOrientations[baseLinkIndex*4+3]=baseOrientation[3]; + + command->m_createMultiBodyArgs.m_linkInertias[baseLinkIndex*3+0] = 0;//unused, is computed automatically. Will add a method to explicitly set it (with a flag), similar to loadURDF etc. + command->m_createMultiBodyArgs.m_linkInertias[baseLinkIndex*3+1] = 0; + command->m_createMultiBodyArgs.m_linkInertias[baseLinkIndex*3+2] = 0; + + command->m_createMultiBodyArgs.m_linkInertialFramePositions[baseLinkIndex*3+0] = baseInertialFramePosition[0]; + command->m_createMultiBodyArgs.m_linkInertialFramePositions[baseLinkIndex*3+1] = baseInertialFramePosition[1]; + command->m_createMultiBodyArgs.m_linkInertialFramePositions[baseLinkIndex*3+2] = baseInertialFramePosition[2]; + + command->m_createMultiBodyArgs.m_linkInertialFrameOrientations[baseLinkIndex*4+0] = baseInertialFrameOrientation[0]; + command->m_createMultiBodyArgs.m_linkInertialFrameOrientations[baseLinkIndex*4+1] = baseInertialFrameOrientation[1]; + command->m_createMultiBodyArgs.m_linkInertialFrameOrientations[baseLinkIndex*4+2] = baseInertialFrameOrientation[2]; + command->m_createMultiBodyArgs.m_linkInertialFrameOrientations[baseLinkIndex*4+3] = baseInertialFrameOrientation[3]; + + command->m_createMultiBodyArgs.m_linkCollisionShapeUniqueIds[baseLinkIndex]= collisionShapeUnique; + command->m_createMultiBodyArgs.m_linkVisualShapeUniqueIds[baseLinkIndex] = visualShapeUniqueId; + + command->m_createMultiBodyArgs.m_linkMasses[baseLinkIndex] = mass; + + command->m_createMultiBodyArgs.m_linkParentIndices[baseLinkIndex] = -2;//no parent + command->m_createMultiBodyArgs.m_linkJointAxis[baseLinkIndex+0]=0; + command->m_createMultiBodyArgs.m_linkJointAxis[baseLinkIndex+1]=0; + command->m_createMultiBodyArgs.m_linkJointAxis[baseLinkIndex+2]=0; + command->m_createMultiBodyArgs.m_linkJointTypes[baseLinkIndex]=-1; + command->m_createMultiBodyArgs.m_numLinks++; + } + return numLinks; + } + return -2; +} + +int b3CreateMultiBodyLink(b3SharedMemoryCommandHandle commandHandle, double linkMass, double linkCollisionShapeIndex, + double linkVisualShapeIndex, + double linkPosition[3], + double linkOrientation[4], + double linkInertialFramePosition[3], + double linkInertialFrameOrientation[4], + int linkParentIndex, + int linkJointType, + double linkJointAxis[3]) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command); + b3Assert(command->m_type == CMD_CREATE_MULTI_BODY); + if (command->m_type==CMD_CREATE_MULTI_BODY) + { + int numLinks = command->m_createMultiBodyArgs.m_numLinks; + + if (numLinksm_updateFlags |=MULTI_BODY_HAS_BASE; + command->m_createMultiBodyArgs.m_linkPositions[linkIndex*3+0]=linkPosition[0]; + command->m_createMultiBodyArgs.m_linkPositions[linkIndex*3+1]=linkPosition[1]; + command->m_createMultiBodyArgs.m_linkPositions[linkIndex*3+2]=linkPosition[2]; + + command->m_createMultiBodyArgs.m_linkOrientations[linkIndex*4+0]=linkOrientation[0]; + command->m_createMultiBodyArgs.m_linkOrientations[linkIndex*4+1]=linkOrientation[1]; + command->m_createMultiBodyArgs.m_linkOrientations[linkIndex*4+2]=linkOrientation[2]; + command->m_createMultiBodyArgs.m_linkOrientations[linkIndex*4+3]=linkOrientation[3]; + + command->m_createMultiBodyArgs.m_linkInertias[linkIndex*3+0] = linkMass; + command->m_createMultiBodyArgs.m_linkInertias[linkIndex*3+1] = linkMass; + command->m_createMultiBodyArgs.m_linkInertias[linkIndex*3+2] = linkMass; + + + command->m_createMultiBodyArgs.m_linkInertialFramePositions[linkIndex*3+0] = linkInertialFramePosition[0]; + command->m_createMultiBodyArgs.m_linkInertialFramePositions[linkIndex*3+1] = linkInertialFramePosition[1]; + command->m_createMultiBodyArgs.m_linkInertialFramePositions[linkIndex*3+2] = linkInertialFramePosition[2]; + + command->m_createMultiBodyArgs.m_linkInertialFrameOrientations[linkIndex*4+0] = linkInertialFrameOrientation[0]; + command->m_createMultiBodyArgs.m_linkInertialFrameOrientations[linkIndex*4+1] = linkInertialFrameOrientation[1]; + command->m_createMultiBodyArgs.m_linkInertialFrameOrientations[linkIndex*4+2] = linkInertialFrameOrientation[2]; + command->m_createMultiBodyArgs.m_linkInertialFrameOrientations[linkIndex*4+3] = linkInertialFrameOrientation[3]; + + command->m_createMultiBodyArgs.m_linkCollisionShapeUniqueIds[linkIndex]= linkCollisionShapeIndex; + command->m_createMultiBodyArgs.m_linkVisualShapeUniqueIds[linkIndex] = linkVisualShapeIndex; + + command->m_createMultiBodyArgs.m_linkParentIndices[linkIndex] = linkParentIndex; + command->m_createMultiBodyArgs.m_linkJointTypes[linkIndex] = linkJointType; + command->m_createMultiBodyArgs.m_linkJointAxis[3*linkIndex+0] = linkJointAxis[0]; + command->m_createMultiBodyArgs.m_linkJointAxis[3*linkIndex+1] = linkJointAxis[1]; + command->m_createMultiBodyArgs.m_linkJointAxis[3*linkIndex+2] = linkJointAxis[2]; + + command->m_createMultiBodyArgs.m_linkMasses[linkIndex] = linkMass; + command->m_createMultiBodyArgs.m_numLinks++; + return numLinks; + } + } + + return -1; +} + + + + +//useMaximalCoordinates are disabled by default, enabling them is experimental and not fully supported yet +void b3CreateMultiBodyUseMaximalCoordinates(b3SharedMemoryCommandHandle commandHandle) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command); + b3Assert(command->m_type == CMD_CREATE_MULTI_BODY); + if (command->m_type==CMD_CREATE_MULTI_BODY) + { + command->m_updateFlags |= MULT_BODY_USE_MAXIMAL_COORDINATES; + } +} + +int b3GetStatusMultiBodyUniqueId(b3SharedMemoryStatusHandle statusHandle) +{ + const SharedMemoryStatus* status = (const SharedMemoryStatus* ) statusHandle; + b3Assert(status); + b3Assert(status->m_type == CMD_CREATE_MULTI_BODY_COMPLETED); + if (status && status->m_type == CMD_CREATE_MULTI_BODY_COMPLETED) + { + return status->m_createMultiBodyResultArgs.m_bodyUniqueId; + } + return -1; +} + b3SharedMemoryCommandHandle b3CreateBoxShapeCommandInit(b3PhysicsClientHandle physClient) { PhysicsClient* cl = (PhysicsClient* ) physClient; @@ -1058,6 +1504,11 @@ int b3GetStatusBodyIndex(b3SharedMemoryStatusHandle statusHandle) bodyId = status->m_rigidBodyCreateArgs.m_bodyUniqueId; break; } + case CMD_CREATE_MULTI_BODY_COMPLETED: + { + bodyId = status->m_dataStreamArguments.m_bodyUniqueId; + break; + } default: { b3Assert(0); @@ -1067,6 +1518,53 @@ int b3GetStatusBodyIndex(b3SharedMemoryStatusHandle statusHandle) return bodyId; } +b3SharedMemoryCommandHandle b3RequestCollisionInfoCommandInit(b3PhysicsClientHandle physClient, int bodyUniqueId) +{ + PhysicsClient* cl = (PhysicsClient* ) physClient; + b3Assert(cl); + b3Assert(cl->canSubmitCommand()); + struct SharedMemoryCommand* command = cl->getAvailableSharedMemoryCommand(); + b3Assert(command); + command->m_type =CMD_REQUEST_COLLISION_INFO; + command->m_updateFlags = 0; + command->m_requestCollisionInfoArgs.m_bodyUniqueId = bodyUniqueId; + return (b3SharedMemoryCommandHandle) command; +} + +int b3GetStatusAABB(b3SharedMemoryStatusHandle statusHandle, int linkIndex, double aabbMin[3], double aabbMax[3]) +{ + const SharedMemoryStatus* status = (const SharedMemoryStatus* ) statusHandle; + const b3SendCollisionInfoArgs &args = status->m_sendCollisionInfoArgs; + btAssert(status->m_type == CMD_REQUEST_COLLISION_INFO_COMPLETED); + if (status->m_type != CMD_REQUEST_COLLISION_INFO_COMPLETED) + return 0; + + if (linkIndex==-1) + { + aabbMin[0] = args.m_rootWorldAABBMin[0]; + aabbMin[1] = args.m_rootWorldAABBMin[1]; + aabbMin[2] = args.m_rootWorldAABBMin[2]; + + aabbMax[0] = args.m_rootWorldAABBMax[0]; + aabbMax[1] = args.m_rootWorldAABBMax[1]; + aabbMax[2] = args.m_rootWorldAABBMax[2]; + return 1; + } + + if (linkIndex >= 0 && linkIndex < args.m_numLinks) + { + aabbMin[0] = args.m_linkWorldAABBsMin[linkIndex*3+0]; + aabbMin[1] = args.m_linkWorldAABBsMin[linkIndex*3+1]; + aabbMin[2] = args.m_linkWorldAABBsMin[linkIndex*3+2]; + + aabbMax[0] = args.m_linkWorldAABBsMax[linkIndex*3+0]; + aabbMax[1] = args.m_linkWorldAABBsMax[linkIndex*3+1]; + aabbMax[2] = args.m_linkWorldAABBsMax[linkIndex*3+2]; + return 1; + } + + return 0; +} int b3GetStatusActualState(b3SharedMemoryStatusHandle statusHandle, int* bodyUniqueId, @@ -1269,6 +1767,8 @@ b3SharedMemoryCommandHandle b3InitChangeDynamicsInfo(b3PhysicsClientHandle physC struct SharedMemoryCommand* command = cl->getAvailableSharedMemoryCommand(); b3Assert(command); command->m_type = CMD_CHANGE_DYNAMICS_INFO; + command->m_changeDynamicsInfoArgs.m_bodyUniqueId = -1; + command->m_changeDynamicsInfoArgs.m_linkIndex = -2; command->m_updateFlags = 0; return (b3SharedMemoryCommandHandle) command; @@ -1297,6 +1797,87 @@ int b3ChangeDynamicsInfoSetLateralFriction(b3SharedMemoryCommandHandle commandHa return 0; } +int b3ChangeDynamicsInfoSetSpinningFriction(b3SharedMemoryCommandHandle commandHandle, int bodyUniqueId, int linkIndex, double friction) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command->m_type == CMD_CHANGE_DYNAMICS_INFO); + command->m_changeDynamicsInfoArgs.m_bodyUniqueId = bodyUniqueId; + command->m_changeDynamicsInfoArgs.m_linkIndex = linkIndex; + command->m_changeDynamicsInfoArgs.m_spinningFriction = friction; + command->m_updateFlags |= CHANGE_DYNAMICS_INFO_SET_SPINNING_FRICTION; + return 0; + +} +int b3ChangeDynamicsInfoSetRollingFriction(b3SharedMemoryCommandHandle commandHandle, int bodyUniqueId, int linkIndex, double friction) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command->m_type == CMD_CHANGE_DYNAMICS_INFO); + command->m_changeDynamicsInfoArgs.m_bodyUniqueId = bodyUniqueId; + command->m_changeDynamicsInfoArgs.m_linkIndex = linkIndex; + command->m_changeDynamicsInfoArgs.m_rollingFriction = friction; + command->m_updateFlags |= CHANGE_DYNAMICS_INFO_SET_ROLLING_FRICTION; + return 0; + +} + + +int b3ChangeDynamicsInfoSetRestitution(b3SharedMemoryCommandHandle commandHandle, int bodyUniqueId, int linkIndex, double restitution) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command->m_type == CMD_CHANGE_DYNAMICS_INFO); + command->m_changeDynamicsInfoArgs.m_bodyUniqueId = bodyUniqueId; + command->m_changeDynamicsInfoArgs.m_linkIndex = linkIndex; + command->m_changeDynamicsInfoArgs.m_restitution = restitution; + command->m_updateFlags |= CHANGE_DYNAMICS_INFO_SET_RESTITUTION; + return 0; +} +int b3ChangeDynamicsInfoSetLinearDamping(b3SharedMemoryCommandHandle commandHandle, int bodyUniqueId,double linearDamping) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command->m_type == CMD_CHANGE_DYNAMICS_INFO); + command->m_changeDynamicsInfoArgs.m_bodyUniqueId = bodyUniqueId; + command->m_changeDynamicsInfoArgs.m_linearDamping = linearDamping; + command->m_updateFlags |= CHANGE_DYNAMICS_INFO_SET_LINEAR_DAMPING; + return 0; + +} + + +int b3ChangeDynamicsInfoSetAngularDamping(b3SharedMemoryCommandHandle commandHandle, int bodyUniqueId,double angularDamping) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command->m_type == CMD_CHANGE_DYNAMICS_INFO); + command->m_changeDynamicsInfoArgs.m_bodyUniqueId = bodyUniqueId; + command->m_changeDynamicsInfoArgs.m_linearDamping = angularDamping; + command->m_updateFlags |= CHANGE_DYNAMICS_INFO_SET_ANGULAR_DAMPING; + return 0; +} + +int b3ChangeDynamicsInfoSetContactStiffnessAndDamping(b3SharedMemoryCommandHandle commandHandle,int bodyUniqueId,int linkIndex,double contactStiffness, double contactDamping) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command->m_type == CMD_CHANGE_DYNAMICS_INFO); + command->m_changeDynamicsInfoArgs.m_bodyUniqueId = bodyUniqueId; + command->m_changeDynamicsInfoArgs.m_linkIndex = linkIndex; + command->m_changeDynamicsInfoArgs.m_contactStiffness =contactStiffness; + command->m_changeDynamicsInfoArgs.m_contactDamping = contactDamping; + command->m_updateFlags |= CHANGE_DYNAMICS_INFO_SET_CONTACT_STIFFNESS_AND_DAMPING; + return 0; +} + +int b3ChangeDynamicsInfoSetFrictionAnchor(b3SharedMemoryCommandHandle commandHandle,int bodyUniqueId,int linkIndex, int frictionAnchor) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command->m_type == CMD_CHANGE_DYNAMICS_INFO); + command->m_changeDynamicsInfoArgs.m_bodyUniqueId = bodyUniqueId; + command->m_changeDynamicsInfoArgs.m_linkIndex = linkIndex; + command->m_changeDynamicsInfoArgs.m_frictionAnchor = frictionAnchor; + command->m_updateFlags |= CHANGE_DYNAMICS_INFO_SET_FRICTION_ANCHOR; + return 0; +} + + + b3SharedMemoryCommandHandle b3InitCreateUserConstraintCommand(b3PhysicsClientHandle physClient, int parentBodyIndex, int parentJointIndex, int childBodyIndex, int childJointIndex, struct b3JointInfo* info) { PhysicsClient* cl = (PhysicsClient* ) physClient; @@ -1380,6 +1961,31 @@ int b3InitChangeUserConstraintSetMaxForce(b3SharedMemoryCommandHandle commandHan return 0; } +int b3InitChangeUserConstraintSetGearRatio(b3SharedMemoryCommandHandle commandHandle, double gearRatio) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command); + b3Assert(command->m_type == CMD_USER_CONSTRAINT); + b3Assert(command->m_updateFlags & USER_CONSTRAINT_CHANGE_CONSTRAINT); + + command->m_updateFlags |=USER_CONSTRAINT_CHANGE_GEAR_RATIO; + command->m_userConstraintArguments.m_gearRatio = gearRatio; + + return 0; +} + +int b3InitChangeUserConstraintSetGearAuxLink(b3SharedMemoryCommandHandle commandHandle, int gearAuxLink) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command); + b3Assert(command->m_type == CMD_USER_CONSTRAINT); + b3Assert(command->m_updateFlags & USER_CONSTRAINT_CHANGE_CONSTRAINT); + + command->m_updateFlags |=USER_CONSTRAINT_CHANGE_GEAR_AUX_LINK; + command->m_userConstraintArguments.m_gearAuxLink = gearAuxLink; + + return 0; +} b3SharedMemoryCommandHandle b3InitRemoveUserConstraintCommand(b3PhysicsClientHandle physClient, int userConstraintUniqueId) @@ -1612,6 +2218,9 @@ b3SharedMemoryCommandHandle b3InitUserDebugDrawAddLine3D(b3PhysicsClientHandle p command->m_userDebugDrawArgs.m_lineWidth = lineWidth; command->m_userDebugDrawArgs.m_lifeTime = lifeTime; + command->m_userDebugDrawArgs.m_parentObjectUniqueId = -1; + command->m_userDebugDrawArgs.m_parentLinkIndex = -1; + command->m_userDebugDrawArgs.m_optionFlags = 0; return (b3SharedMemoryCommandHandle) command; } @@ -1646,10 +2255,51 @@ b3SharedMemoryCommandHandle b3InitUserDebugDrawAddText3D(b3PhysicsClientHandle p command->m_userDebugDrawArgs.m_textSize = textSize; command->m_userDebugDrawArgs.m_lifeTime = lifeTime; + command->m_userDebugDrawArgs.m_parentObjectUniqueId = -1; + command->m_userDebugDrawArgs.m_parentLinkIndex = -1; + + command->m_userDebugDrawArgs.m_optionFlags = 0; return (b3SharedMemoryCommandHandle) command; } +void b3UserDebugTextSetOptionFlags(b3SharedMemoryCommandHandle commandHandle, int optionFlags) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command); + b3Assert(command->m_type == CMD_USER_DEBUG_DRAW); + b3Assert(command->m_updateFlags & USER_DEBUG_HAS_TEXT); + command->m_userDebugDrawArgs.m_optionFlags = optionFlags; + command->m_updateFlags |= USER_DEBUG_HAS_OPTION_FLAGS; +} + +void b3UserDebugTextSetOrientation(b3SharedMemoryCommandHandle commandHandle, double orientation[4]) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command); + b3Assert(command->m_type == CMD_USER_DEBUG_DRAW); + b3Assert(command->m_updateFlags & USER_DEBUG_HAS_TEXT); + command->m_userDebugDrawArgs.m_textOrientation[0] = orientation[0]; + command->m_userDebugDrawArgs.m_textOrientation[1] = orientation[1]; + command->m_userDebugDrawArgs.m_textOrientation[2] = orientation[2]; + command->m_userDebugDrawArgs.m_textOrientation[3] = orientation[3]; + command->m_updateFlags |= USER_DEBUG_HAS_TEXT_ORIENTATION; + +} + + +void b3UserDebugItemSetParentObject(b3SharedMemoryCommandHandle commandHandle, int objectUniqueId, int linkIndex) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command); + b3Assert(command->m_type == CMD_USER_DEBUG_DRAW); + + command->m_updateFlags |= USER_DEBUG_HAS_PARENT_OBJECT; + command->m_userDebugDrawArgs.m_parentObjectUniqueId = objectUniqueId; + command->m_userDebugDrawArgs.m_parentLinkIndex = linkIndex; +} + + b3SharedMemoryCommandHandle b3InitUserDebugAddParameter(b3PhysicsClientHandle physClient, const char* txt, double rangeMin, double rangeMax, double startValue) { PhysicsClient* cl = (PhysicsClient* ) physClient; @@ -1670,6 +2320,8 @@ b3SharedMemoryCommandHandle b3InitUserDebugAddParameter(b3PhysicsClientHandle ph command->m_userDebugDrawArgs.m_rangeMin = rangeMin; command->m_userDebugDrawArgs.m_rangeMax = rangeMax; command->m_userDebugDrawArgs.m_startValue = startValue; + command->m_userDebugDrawArgs.m_parentObjectUniqueId = -1; + command->m_userDebugDrawArgs.m_optionFlags = 0; return (b3SharedMemoryCommandHandle)command; } @@ -1884,6 +2536,30 @@ void b3RequestCameraImageSetShadow(b3SharedMemoryCommandHandle commandHandle, in command->m_updateFlags |= REQUEST_PIXEL_ARGS_SET_SHADOW; } +void b3ComputePositionFromViewMatrix(const float viewMatrix[16], float cameraPosition[3], float cameraTargetPosition[3], float cameraUp[3]) +{ + b3Matrix3x3 r(viewMatrix[0], viewMatrix[4], viewMatrix[8], viewMatrix[1], viewMatrix[5], viewMatrix[9], viewMatrix[2], viewMatrix[6], viewMatrix[10]); + b3Vector3 p = b3MakeVector3(viewMatrix[12], viewMatrix[13], viewMatrix[14]); + b3Transform t(r,p); + b3Transform tinv = t.inverse(); + b3Matrix3x3 basis = tinv.getBasis(); + b3Vector3 origin = tinv.getOrigin(); + b3Vector3 s = b3MakeVector3(basis[0][0], basis[1][0], basis[2][0]); + b3Vector3 u = b3MakeVector3(basis[0][1], basis[1][1], basis[2][1]); + b3Vector3 f = b3MakeVector3(-basis[0][2], -basis[1][2], -basis[2][2]); + b3Vector3 eye = origin; + cameraPosition[0] = eye[0]; + cameraPosition[1] = eye[1]; + cameraPosition[2] = eye[2]; + b3Vector3 center = f + eye; + cameraTargetPosition[0] = center[0]; + cameraTargetPosition[1] = center[1]; + cameraTargetPosition[2] = center[2]; + cameraUp[0] = u[0]; + cameraUp[1] = u[1]; + cameraUp[2] = u[2]; +} + void b3ComputeViewMatrixFromPositions(const float cameraPosition[3], const float cameraTargetPosition[3], const float cameraUp[3], float viewMatrix[16]) { b3Vector3 eye = b3MakeVector3(cameraPosition[0], cameraPosition[1], cameraPosition[2]); @@ -1924,77 +2600,43 @@ void b3ComputeViewMatrixFromYawPitchRoll(const float cameraTargetPosition[3], fl b3Vector3 camPos; b3Vector3 camTargetPos = b3MakeVector3(cameraTargetPosition[0], cameraTargetPosition[1], cameraTargetPosition[2]); b3Vector3 eyePos = b3MakeVector3(0, 0, 0); - - int forwardAxis(-1); - - { - - switch (upAxis) - { - - case 1: - { - - - forwardAxis = 0; - eyePos[forwardAxis] = -distance; - camForward = b3MakeVector3(eyePos[0], eyePos[1], eyePos[2]); - if (camForward.length2() < B3_EPSILON) - { - camForward.setValue(1.f, 0.f, 0.f); - } - else - { - camForward.normalize(); - } - b3Scalar rollRad = roll * b3Scalar(0.01745329251994329547); - b3Quaternion rollRot(camForward, rollRad); - - camUpVector = b3QuatRotate(rollRot, b3MakeVector3(0, 1, 0)); - //gLightPos = b3MakeVector3(-50.f,100,30); - break; - } - case 2: - { - - - forwardAxis = 1; - eyePos[forwardAxis] = -distance; - camForward = b3MakeVector3(eyePos[0], eyePos[1], eyePos[2]); - if (camForward.length2() < B3_EPSILON) - { - camForward.setValue(1.f, 0.f, 0.f); - } - else - { - camForward.normalize(); - } - - b3Scalar rollRad = roll * b3Scalar(0.01745329251994329547); - b3Quaternion rollRot(camForward, rollRad); - - camUpVector = b3QuatRotate(rollRot, b3MakeVector3(0, 0, 1)); - //gLightPos = b3MakeVector3(-50.f,30,100); - break; - } - default: - { - //b3Assert(0); - return; - } - }; - } - - + b3Scalar yawRad = yaw * b3Scalar(0.01745329251994329547);// rads per deg b3Scalar pitchRad = pitch * b3Scalar(0.01745329251994329547);// rads per deg - - b3Quaternion pitchRot(camUpVector, pitchRad); - - b3Vector3 right = camUpVector.cross(camForward); - b3Quaternion yawRot(right, -yawRad); - - eyePos = b3Matrix3x3(pitchRot) * b3Matrix3x3(yawRot) * eyePos; + b3Scalar rollRad = 0.0; + b3Quaternion eyeRot; + + int forwardAxis(-1); + switch (upAxis) + { + case 1: + forwardAxis = 2; + camUpVector = b3MakeVector3(0,1,0); + eyeRot.setEulerZYX(rollRad, yawRad, -pitchRad); + break; + case 2: + forwardAxis = 1; + camUpVector = b3MakeVector3(0,0,1); + eyeRot.setEulerZYX(yawRad, rollRad, pitchRad); + break; + default: + return; + }; + + eyePos[forwardAxis] = -distance; + + camForward = b3MakeVector3(eyePos[0],eyePos[1],eyePos[2]); + if (camForward.length2() < B3_EPSILON) + { + camForward.setValue(1.f,0.f,0.f); + } else + { + camForward.normalize(); + } + + eyePos = b3Matrix3x3(eyeRot)*eyePos; + camUpVector = b3Matrix3x3(eyeRot)*camUpVector; + camPos = eyePos; camPos += camTargetPos; @@ -2301,6 +2943,25 @@ void b3GetVisualShapeInformation(b3PhysicsClientHandle physClient, struct b3Visu } } +b3SharedMemoryCommandHandle b3CreateChangeTextureCommandInit(b3PhysicsClientHandle physClient, int textureUniqueId, int width, int height, const char* rgbPixels) +{ + PhysicsClient* cl = (PhysicsClient* ) physClient; + b3Assert(cl); + b3Assert(cl->canSubmitCommand()); + struct SharedMemoryCommand* command = cl->getAvailableSharedMemoryCommand(); + b3Assert(command); + command->m_type = CMD_CHANGE_TEXTURE; + + command->m_changeTextureArgs.m_textureUniqueId = textureUniqueId; + command->m_changeTextureArgs.m_width = width; + command->m_changeTextureArgs.m_height = height; + int numPixels = width*height; + cl->uploadBulletFileToSharedMemory(rgbPixels,numPixels*3); + command->m_updateFlags = 0; + return (b3SharedMemoryCommandHandle) command; +} + + b3SharedMemoryCommandHandle b3InitLoadTexture(b3PhysicsClientHandle physClient, const char* filename) { PhysicsClient* cl = (PhysicsClient* ) physClient; @@ -2321,6 +2982,18 @@ b3SharedMemoryCommandHandle b3InitLoadTexture(b3PhysicsClientHandle physClient, return (b3SharedMemoryCommandHandle) command; } +int b3GetStatusTextureUniqueId(b3SharedMemoryStatusHandle statusHandle) +{ + int uid = -1; + const SharedMemoryStatus* status = (const SharedMemoryStatus*)statusHandle; + btAssert(status->m_type == CMD_LOAD_TEXTURE_COMPLETED); + if (status->m_type == CMD_LOAD_TEXTURE_COMPLETED) + { + uid = status->m_loadTextureResultArguments.m_textureUniqueId; + } + return uid; +} + b3SharedMemoryCommandHandle b3InitUpdateVisualShape(b3PhysicsClientHandle physClient, int bodyUniqueId, int jointIndex, int shapeIndex, int textureUniqueId) { PhysicsClient* cl = (PhysicsClient* ) physClient; @@ -2358,6 +3031,21 @@ void b3UpdateVisualShapeRGBAColor(b3SharedMemoryCommandHandle commandHandle, dou } } +void b3UpdateVisualShapeSpecularColor(b3SharedMemoryCommandHandle commandHandle, double specularColor[3]) +{ + struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; + b3Assert(command); + b3Assert(command->m_type == CMD_UPDATE_VISUAL_SHAPE); + + if (command->m_type == CMD_UPDATE_VISUAL_SHAPE) + { + command->m_updateVisualShapeDataArguments.m_specularColor[0] = specularColor[0]; + command->m_updateVisualShapeDataArguments.m_specularColor[1] = specularColor[1]; + command->m_updateVisualShapeDataArguments.m_specularColor[2] = specularColor[2]; + command->m_updateFlags |= CMD_UPDATE_VISUAL_SHAPE_SPECULAR_COLOR; + } +} + b3SharedMemoryCommandHandle b3ApplyExternalForceCommandInit(b3PhysicsClientHandle physClient) { PhysicsClient* cl = (PhysicsClient* ) physClient; @@ -2775,6 +3463,31 @@ void b3GetKeyboardEventsData(b3PhysicsClientHandle physClient, struct b3Keyboard } } +b3SharedMemoryCommandHandle b3RequestMouseEventsCommandInit(b3PhysicsClientHandle physClient) +{ + PhysicsClient* cl = (PhysicsClient*)physClient; + b3Assert(cl); + b3Assert(cl->canSubmitCommand()); + struct SharedMemoryCommand* command = cl->getAvailableSharedMemoryCommand(); + b3Assert(command); + + command->m_type = CMD_REQUEST_MOUSE_EVENTS_DATA; + command->m_updateFlags = 0; + + return (b3SharedMemoryCommandHandle)command; +} + +void b3GetMouseEventsData(b3PhysicsClientHandle physClient, struct b3MouseEventsData* mouseEventsData) +{ + PhysicsClient* cl = (PhysicsClient* ) physClient; + if (cl) + { + cl->getCachedMouseEvents(mouseEventsData); + } +} + + + b3SharedMemoryCommandHandle b3ProfileTimingCommandInit(b3PhysicsClientHandle physClient, const char* name) { @@ -3065,3 +3778,38 @@ double b3GetTimeOut(b3PhysicsClientHandle physClient) } return -1; } + +void b3MultiplyTransforms(const double posA[3], const double ornA[4], const double posB[3], const double ornB[4], double outPos[3], double outOrn[4]) +{ + b3Transform trA; + b3Transform trB; + trA.setOrigin(b3MakeVector3(posA[0],posA[1],posA[2])); + trA.setRotation(b3Quaternion(ornA[0],ornA[1],ornA[2],ornA[3])); + trB.setOrigin(b3MakeVector3(posB[0],posB[1],posB[2])); + trB.setRotation(b3Quaternion(ornB[0],ornB[1],ornB[2],ornB[3])); + b3Transform res = trA*trB; + outPos[0] = res.getOrigin()[0]; + outPos[1] = res.getOrigin()[1]; + outPos[2] = res.getOrigin()[2]; + b3Quaternion orn = res.getRotation(); + outOrn[0] = orn[0]; + outOrn[1] = orn[1]; + outOrn[2] = orn[2]; + outOrn[3] = orn[3]; +} + +void b3InvertTransform(const double pos[3], const double orn[4], double outPos[3], double outOrn[4]) +{ + b3Transform tr; + tr.setOrigin(b3MakeVector3(pos[0],pos[1],pos[2])); + tr.setRotation(b3Quaternion(orn[0],orn[1],orn[2],orn[3])); + b3Transform trInv = tr.inverse(); + outPos[0] = trInv.getOrigin()[0]; + outPos[1] = trInv.getOrigin()[1]; + outPos[2] = trInv.getOrigin()[2]; + b3Quaternion invOrn = trInv.getRotation(); + outOrn[0] = invOrn[0]; + outOrn[1] = invOrn[1]; + outOrn[2] = invOrn[2]; + outOrn[3] = invOrn[3]; +} diff --git a/examples/SharedMemory/PhysicsClientC_API.h b/examples/SharedMemory/PhysicsClientC_API.h index cee3a9b41..a600e8067 100644 --- a/examples/SharedMemory/PhysicsClientC_API.h +++ b/examples/SharedMemory/PhysicsClientC_API.h @@ -57,6 +57,10 @@ int b3GetStatusActualState(b3SharedMemoryStatusHandle statusHandle, const double* actualStateQdot[], const double* jointReactionForces[]); + +b3SharedMemoryCommandHandle b3RequestCollisionInfoCommandInit(b3PhysicsClientHandle physClient, int bodyUniqueId); +int b3GetStatusAABB(b3SharedMemoryStatusHandle statusHandle, int linkIndex, double aabbMin[3], double aabbMax[3]); + ///If you re-connected to an existing server, or server changed otherwise, sync the body info and user constraints etc. b3SharedMemoryCommandHandle b3InitSyncBodyInfoCommand(b3PhysicsClientHandle physClient); @@ -84,7 +88,14 @@ int b3GetDynamicsInfo(b3SharedMemoryStatusHandle statusHandle, struct b3Dynamics b3SharedMemoryCommandHandle b3InitChangeDynamicsInfo(b3PhysicsClientHandle physClient); int b3ChangeDynamicsInfoSetMass(b3SharedMemoryCommandHandle commandHandle, int bodyUniqueId, int linkIndex, double mass); int b3ChangeDynamicsInfoSetLateralFriction(b3SharedMemoryCommandHandle commandHandle, int bodyUniqueId, int linkIndex, double lateralFriction); - +int b3ChangeDynamicsInfoSetSpinningFriction(b3SharedMemoryCommandHandle commandHandle, int bodyUniqueId, int linkIndex, double friction); +int b3ChangeDynamicsInfoSetRollingFriction(b3SharedMemoryCommandHandle commandHandle, int bodyUniqueId, int linkIndex, double friction); +int b3ChangeDynamicsInfoSetRestitution(b3SharedMemoryCommandHandle commandHandle, int bodyUniqueId, int linkIndex, double restitution); +int b3ChangeDynamicsInfoSetLinearDamping(b3SharedMemoryCommandHandle commandHandle, int bodyUniqueId,double linearDamping); +int b3ChangeDynamicsInfoSetAngularDamping(b3SharedMemoryCommandHandle commandHandle, int bodyUniqueId,double angularDamping); +int b3ChangeDynamicsInfoSetContactStiffnessAndDamping(b3SharedMemoryCommandHandle commandHandle,int bodyUniqueId,int linkIndex,double contactStiffness, double contactDamping); +int b3ChangeDynamicsInfoSetFrictionAnchor(b3SharedMemoryCommandHandle commandHandle,int bodyUniqueId,int linkIndex, int frictionAnchor); + b3SharedMemoryCommandHandle b3InitCreateUserConstraintCommand(b3PhysicsClientHandle physClient, int parentBodyIndex, int parentJointIndex, int childBodyIndex, int childJointIndex, struct b3JointInfo* info); ///return a unique id for the user constraint, after successful creation, or -1 for an invalid constraint id @@ -95,7 +106,9 @@ b3SharedMemoryCommandHandle b3InitChangeUserConstraintCommand(b3PhysicsClientHa int b3InitChangeUserConstraintSetPivotInB(b3SharedMemoryCommandHandle commandHandle, double jointChildPivot[3]); int b3InitChangeUserConstraintSetFrameInB(b3SharedMemoryCommandHandle commandHandle, double jointChildFrameOrn[4]); int b3InitChangeUserConstraintSetMaxForce(b3SharedMemoryCommandHandle commandHandle, double maxAppliedForce); - +int b3InitChangeUserConstraintSetGearRatio(b3SharedMemoryCommandHandle commandHandle, double gearRatio); +int b3InitChangeUserConstraintSetGearAuxLink(b3SharedMemoryCommandHandle commandHandle, int gearAuxLink); + b3SharedMemoryCommandHandle b3InitRemoveUserConstraintCommand(b3PhysicsClientHandle physClient, int userConstraintUniqueId); int b3GetNumUserConstraints(b3PhysicsClientHandle physClient); @@ -122,7 +135,13 @@ int b3GetStatusOpenGLVisualizerCamera(b3SharedMemoryStatusHandle statusHandle, s /// Add/remove user-specific debug lines and debug text messages b3SharedMemoryCommandHandle b3InitUserDebugDrawAddLine3D(b3PhysicsClientHandle physClient, double fromXYZ[3], double toXYZ[3], double colorRGB[3], double lineWidth, double lifeTime); + b3SharedMemoryCommandHandle b3InitUserDebugDrawAddText3D(b3PhysicsClientHandle physClient, const char* txt, double positionXYZ[3], double colorRGB[3], double textSize, double lifeTime); +void b3UserDebugTextSetOptionFlags(b3SharedMemoryCommandHandle commandHandle, int optionFlags); +void b3UserDebugTextSetOrientation(b3SharedMemoryCommandHandle commandHandle, double orientation[4]); + +void b3UserDebugItemSetParentObject(b3SharedMemoryCommandHandle commandHandle, int objectUniqueId, int linkIndex); + b3SharedMemoryCommandHandle b3InitUserDebugAddParameter(b3PhysicsClientHandle physClient, const char* txt, double rangeMin, double rangeMax, double startValue); b3SharedMemoryCommandHandle b3InitUserDebugReadParameter(b3PhysicsClientHandle physClient, int debugItemUniqueId); int b3GetStatusDebugParameterValue(b3SharedMemoryStatusHandle statusHandle, double* paramValue); @@ -155,6 +174,7 @@ void b3GetCameraImageData(b3PhysicsClientHandle physClient, struct b3CameraImage ///compute a view matrix, helper function for b3RequestCameraImageSetCameraMatrices void b3ComputeViewMatrixFromPositions(const float cameraPosition[3], const float cameraTargetPosition[3], const float cameraUp[3], float viewMatrix[16]); void b3ComputeViewMatrixFromYawPitchRoll(const float cameraTargetPosition[3], float distance, float yaw, float pitch, float roll, int upAxis, float viewMatrix[16]); +void b3ComputePositionFromViewMatrix(const float viewMatrix[16], float cameraPosition[3], float cameraTargetPosition[3], float cameraUp[3]); ///compute a projection matrix, helper function for b3RequestCameraImageSetCameraMatrices void b3ComputeProjectionMatrix(float left, float right, float bottom, float top, float nearVal, float farVal, float projectionMatrix[16]); @@ -197,13 +217,22 @@ b3SharedMemoryCommandHandle b3InitRequestVisualShapeInformation(b3PhysicsClientH void b3GetVisualShapeInformation(b3PhysicsClientHandle physClient, struct b3VisualShapeInformation* visualShapeInfo); b3SharedMemoryCommandHandle b3InitLoadTexture(b3PhysicsClientHandle physClient, const char* filename); +int b3GetStatusTextureUniqueId(b3SharedMemoryStatusHandle statusHandle); + +b3SharedMemoryCommandHandle b3CreateChangeTextureCommandInit(b3PhysicsClientHandle physClient, int textureUniqueId, int width, int height, const char* rgbPixels); + b3SharedMemoryCommandHandle b3InitUpdateVisualShape(b3PhysicsClientHandle physClient, int bodyUniqueId, int jointIndex, int shapeIndex, int textureUniqueId); void b3UpdateVisualShapeRGBAColor(b3SharedMemoryCommandHandle commandHandle, double rgbaColor[4]); +void b3UpdateVisualShapeSpecularColor(b3SharedMemoryCommandHandle commandHandle, double specularColor[3]); + b3SharedMemoryCommandHandle b3InitPhysicsParamCommand(b3PhysicsClientHandle physClient); int b3PhysicsParamSetGravity(b3SharedMemoryCommandHandle commandHandle, double gravx,double gravy, double gravz); int b3PhysicsParamSetTimeStep(b3SharedMemoryCommandHandle commandHandle, double timeStep); int b3PhysicsParamSetDefaultContactERP(b3SharedMemoryCommandHandle commandHandle, double defaultContactERP); +int b3PhysicsParamSetDefaultNonContactERP(b3SharedMemoryCommandHandle commandHandle, double defaultNonContactERP); +int b3PhysicsParamSetDefaultFrictionERP(b3SharedMemoryCommandHandle commandHandle, double frictionERP); + int b3PhysicsParamSetNumSubSteps(b3SharedMemoryCommandHandle commandHandle, int numSubSteps); int b3PhysicsParamSetRealTimeSimulation(b3SharedMemoryCommandHandle commandHandle, int enableRealTimeSimulation); int b3PhysicsParamSetNumSolverIterations(b3SharedMemoryCommandHandle commandHandle, int numSolverIterations); @@ -216,6 +245,9 @@ int b3PhysicsParamSetSplitImpulsePenetrationThreshold(b3SharedMemoryCommandHandl int b3PhysicsParamSetContactBreakingThreshold(b3SharedMemoryCommandHandle commandHandle, double contactBreakingThreshold); int b3PhysicsParamSetMaxNumCommandsPer1ms(b3SharedMemoryCommandHandle commandHandle, int maxNumCmdPer1ms); int b3PhysicsParamSetEnableFileCaching(b3SharedMemoryCommandHandle commandHandle, int enableFileCaching); +int b3PhysicsParamSetRestitutionVelocityThreshold(b3SharedMemoryCommandHandle commandHandle, double restitutionVelocityThreshold); + + //b3PhysicsParamSetInternalSimFlags is for internal/temporary/easter-egg/experimental demo purposes //Use at own risk: magic things may or my not happen when calling this API @@ -235,6 +267,9 @@ int b3LoadUrdfCommandSetStartOrientation(b3SharedMemoryCommandHandle commandHand int b3LoadUrdfCommandSetUseMultiBody(b3SharedMemoryCommandHandle commandHandle, int useMultiBody); int b3LoadUrdfCommandSetUseFixedBase(b3SharedMemoryCommandHandle commandHandle, int useFixedBase); int b3LoadUrdfCommandSetFlags(b3SharedMemoryCommandHandle commandHandle, int flags); +int b3LoadUrdfCommandSetGlobalScaling(b3SharedMemoryCommandHandle commandHandle, double globalScaling); + + b3SharedMemoryCommandHandle b3LoadBulletCommandInit(b3PhysicsClientHandle physClient, const char* fileName); b3SharedMemoryCommandHandle b3SaveBulletCommandInit(b3PhysicsClientHandle physClient, const char* fileName); @@ -269,6 +304,9 @@ int b3GetStatusInverseKinematicsJointPositions(b3SharedMemoryStatusHandle status b3SharedMemoryCommandHandle b3LoadSdfCommandInit(b3PhysicsClientHandle physClient, const char* sdfFileName); int b3LoadSdfCommandSetUseMultiBody(b3SharedMemoryCommandHandle commandHandle, int useMultiBody); +int b3LoadSdfCommandSetUseGlobalScaling(b3SharedMemoryCommandHandle commandHandle, double globalScaling); + + b3SharedMemoryCommandHandle b3SaveWorldCommandInit(b3PhysicsClientHandle physClient, const char* sdfFileName); @@ -296,6 +334,44 @@ int b3JointControlSetDesiredForceTorque(b3SharedMemoryCommandHandle commandHandl ///the creation of collision shapes and rigid bodies etc is likely going to change, ///but good to have a b3CreateBoxShapeCommandInit for now + +b3SharedMemoryCommandHandle b3CreateCollisionShapeCommandInit(b3PhysicsClientHandle physClient); +int b3CreateCollisionShapeAddSphere(b3SharedMemoryCommandHandle commandHandle,double radius); +int b3CreateCollisionShapeAddBox(b3SharedMemoryCommandHandle commandHandle,double halfExtents[3]); +int b3CreateCollisionShapeAddCapsule(b3SharedMemoryCommandHandle commandHandle,double radius, double height); +int b3CreateCollisionShapeAddCylinder(b3SharedMemoryCommandHandle commandHandle,double radius, double height); +int b3CreateCollisionShapeAddPlane(b3SharedMemoryCommandHandle commandHandle, double planeNormal[3], double planeConstant); +int b3CreateCollisionShapeAddMesh(b3SharedMemoryCommandHandle commandHandle,const char* fileName, double meshScale[3]); +void b3CreateCollisionSetFlag(b3SharedMemoryCommandHandle commandHandle,int shapeIndex, int flags); + +void b3CreateCollisionShapeSetChildTransform(b3SharedMemoryCommandHandle commandHandle,int shapeIndex, double childPosition[3], double childOrientation[4]); + +int b3GetStatusCollisionShapeUniqueId(b3SharedMemoryStatusHandle statusHandle); + +b3SharedMemoryCommandHandle b3CreateVisualShapeCommandInit(b3PhysicsClientHandle physClient); +int b3GetStatusVisualShapeUniqueId(b3SharedMemoryStatusHandle statusHandle); + +b3SharedMemoryCommandHandle b3CreateMultiBodyCommandInit(b3PhysicsClientHandle physClient); +int b3CreateMultiBodyBase(b3SharedMemoryCommandHandle commandHandle, double mass, int collisionShapeUnique, int visualShapeUniqueId, double basePosition[3], double baseOrientation[4] , double baseInertialFramePosition[3], double baseInertialFrameOrientation[4]); + +int b3CreateMultiBodyLink(b3SharedMemoryCommandHandle commandHandle, double linkMass, double linkCollisionShapeIndex, + double linkVisualShapeIndex, + double linkPosition[3], + double linkOrientation[4], + double linkInertialFramePosition[3], + double linkInertialFrameOrientation[4], + int linkParentIndex, + int linkJointType, + double linkJointAxis[3]); + + +//useMaximalCoordinates are disabled by default, enabling them is experimental and not fully supported yet +void b3CreateMultiBodyUseMaximalCoordinates(b3SharedMemoryCommandHandle commandHandle); + +//int b3CreateMultiBodyAddLink(b3SharedMemoryCommandHandle commandHandle, int jointType, int parentLinkIndex, double linkMass, int linkCollisionShapeUnique, int linkVisualShapeUniqueId); + + + ///create a box of size (1,1,1) at world origin (0,0,0) at orientation quat (0,0,0,1) ///after that, you can optionally adjust the initial position, orientation and size b3SharedMemoryCommandHandle b3CreateBoxShapeCommandInit(b3PhysicsClientHandle physClient); @@ -382,6 +458,10 @@ int b3SetVRCameraTrackingObjectFlag(b3SharedMemoryCommandHandle commandHandle, i b3SharedMemoryCommandHandle b3RequestKeyboardEventsCommandInit(b3PhysicsClientHandle physClient); void b3GetKeyboardEventsData(b3PhysicsClientHandle physClient, struct b3KeyboardEventsData* keyboardEventsData); +b3SharedMemoryCommandHandle b3RequestMouseEventsCommandInit(b3PhysicsClientHandle physClient); +void b3GetMouseEventsData(b3PhysicsClientHandle physClient, struct b3MouseEventsData* mouseEventsData); + + b3SharedMemoryCommandHandle b3StateLoggingCommandInit(b3PhysicsClientHandle physClient); int b3StateLoggingStart(b3SharedMemoryCommandHandle commandHandle, int loggingType, const char* fileName); int b3StateLoggingAddLoggingObjectUniqueId(b3SharedMemoryCommandHandle commandHandle, int objectUniqueId); @@ -402,6 +482,8 @@ void b3SetProfileTimingDuractionInMicroSeconds(b3SharedMemoryCommandHandle comma void b3SetTimeOut(b3PhysicsClientHandle physClient, double timeOutInSeconds); double b3GetTimeOut(b3PhysicsClientHandle physClient); +void b3MultiplyTransforms(const double posA[3], const double ornA[4], const double posB[3], const double ornB[4], double outPos[3], double outOrn[4]); +void b3InvertTransform(const double pos[3], const double orn[4], double outPos[3], double outOrn[4]); #ifdef __cplusplus } diff --git a/examples/SharedMemory/PhysicsClientExample.cpp b/examples/SharedMemory/PhysicsClientExample.cpp index 0a3bc706c..bdc65dac2 100644 --- a/examples/SharedMemory/PhysicsClientExample.cpp +++ b/examples/SharedMemory/PhysicsClientExample.cpp @@ -5,7 +5,7 @@ #include "../CommonInterfaces/Common2dCanvasInterface.h" #include "SharedMemoryCommon.h" #include "../CommonInterfaces/CommonParameterInterface.h" - +#include "PhysicsServerCommandProcessor.h" #include "PhysicsClientC_API.h" #include "PhysicsClient.h" //#include "SharedMemoryCommands.h" @@ -22,8 +22,8 @@ struct MyMotorInfo2 int m_qIndex; }; -int camVisualizerWidth = 320;//1024/3; -int camVisualizerHeight = 240;//768/3; +static int camVisualizerWidth = 320;//1024/3; +static int camVisualizerHeight = 240;//768/3; enum CustomCommands { @@ -37,6 +37,7 @@ class PhysicsClientExample : public SharedMemoryCommon { protected: b3PhysicsClientHandle m_physicsClientHandle; + //this m_physicsServer is only used when option eCLIENTEXAMPLE_SERVER is enabled PhysicsServerSharedMemory m_physicsServer; @@ -93,10 +94,10 @@ protected: virtual void resetCamera() { float dist = 3.45; - float pitch = 287; - float yaw = 16.2; + float pitch = -16.2; + float yaw = 287; float targetPos[3]={2.05,0.02,0.53};//-3,2.8,-2.5}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } @@ -271,7 +272,6 @@ void PhysicsClientExample::prepareAndSubmitCommand(int commandId) case CMD_REQUEST_CAMERA_IMAGE_DATA: { ///request an image from a simulated camera, using a software renderer. - b3SharedMemoryCommandHandle commandHandle = b3InitRequestCameraImage(m_physicsClientHandle); //b3RequestCameraImageSelectRenderer(commandHandle,ER_BULLET_HARDWARE_OPENGL); @@ -328,6 +328,7 @@ void PhysicsClientExample::prepareAndSubmitCommand(int commandId) //b3Printf("Joint %d: %f", i, sensorState.m_jointMotorTorque); } } + break; }; @@ -510,6 +511,18 @@ void PhysicsClientExample::prepareAndSubmitCommand(int commandId) b3SubmitClientCommand(m_physicsClientHandle, commandHandle); break; } + case CMD_UPDATE_VISUAL_SHAPE: + { + int objectUniqueId = 0; + int linkIndex = -1; + int shapeIndex = -1; + int textureIndex = -1; + double rgbaColor[4] = {0.0, 1.0, 0.0, 1.0}; + b3SharedMemoryCommandHandle commandHandle = b3InitUpdateVisualShape(m_physicsClientHandle, objectUniqueId, linkIndex, shapeIndex, textureIndex); + b3UpdateVisualShapeRGBAColor(commandHandle, rgbaColor); + b3SubmitClientCommand(m_physicsClientHandle, commandHandle); + break; + } default: { @@ -520,10 +533,26 @@ void PhysicsClientExample::prepareAndSubmitCommand(int commandId) } +struct Bullet2CommandProcessorCreation3 : public CommandProcessorCreationInterface +{ + virtual class CommandProcessorInterface* createCommandProcessor() + { + PhysicsServerCommandProcessor* proc = new PhysicsServerCommandProcessor; + return proc; + } + + virtual void deleteCommandProcessor(CommandProcessorInterface* proc) + { + delete proc; + } +}; + +static Bullet2CommandProcessorCreation3 sB2PC2; PhysicsClientExample::PhysicsClientExample(GUIHelperInterface* helper, int options) :SharedMemoryCommon(helper), m_physicsClientHandle(0), +m_physicsServer(&sB2PC2,0,0), m_wantsTermination(false), m_sharedMemoryKey(SHARED_MEMORY_KEY), m_selectedBody(-1), @@ -565,6 +594,7 @@ PhysicsClientExample::~PhysicsClientExample() m_canvas->destroyCanvas(m_canvasSegMaskIndex); } + b3Printf("~PhysicsClientExample\n"); } @@ -588,6 +618,7 @@ void PhysicsClientExample::createButtons() createButton("Load SDF",CMD_LOAD_SDF, isTrigger); createButton("Save World",CMD_SAVE_WORLD, isTrigger); createButton("Set Shadow",CMD_SET_SHADOW, isTrigger); + createButton("Update Visual Shape",CMD_UPDATE_VISUAL_SHAPE, isTrigger); createButton("Get Camera Image",CMD_REQUEST_CAMERA_IMAGE_DATA,isTrigger); createButton("Step Sim",CMD_STEP_FORWARD_SIMULATION, isTrigger); createButton("Realtime Sim",CMD_CUSTOM_SET_REALTIME_SIMULATION, isTrigger); @@ -832,8 +863,8 @@ void PhysicsClientExample::stepSimulation(float deltaTime) { int xIndex = int(float(i)*(float(imageData.m_pixelWidth)/float(camVisualizerWidth))); int yIndex = int(float(j)*(float(imageData.m_pixelHeight)/float(camVisualizerHeight))); - btClamp(yIndex,0,imageData.m_pixelHeight); btClamp(xIndex,0,imageData.m_pixelWidth); + btClamp(yIndex,0,imageData.m_pixelHeight); if (m_canvasDepthIndex >=0) { diff --git a/examples/SharedMemory/PhysicsClientSharedMemory.cpp b/examples/SharedMemory/PhysicsClientSharedMemory.cpp index 2c1936e75..5e297d28f 100644 --- a/examples/SharedMemory/PhysicsClientSharedMemory.cpp +++ b/examples/SharedMemory/PhysicsClientSharedMemory.cpp @@ -46,6 +46,8 @@ struct PhysicsClientSharedMemoryInternalData { btAlignedObjectArray m_cachedVisualShapes; btAlignedObjectArray m_cachedVREvents; btAlignedObjectArray m_cachedKeyboardEvents; + btAlignedObjectArray m_cachedMouseEvents; + btAlignedObjectArray m_raycastHits; btAlignedObjectArray m_bodyIdsRequestInfo; @@ -249,17 +251,23 @@ void PhysicsClientSharedMemory::resetData() m_data->m_userConstraintInfoMap.clear(); } -void PhysicsClientSharedMemory::setSharedMemoryKey(int key) { m_data->m_sharedMemoryKey = key; } +void PhysicsClientSharedMemory::setSharedMemoryKey(int key) +{ + m_data->m_sharedMemoryKey = key; +} void PhysicsClientSharedMemory::setSharedMemoryInterface(class SharedMemoryInterface* sharedMem) { - if (m_data->m_sharedMemory && m_data->m_ownsSharedMemory) + if (sharedMem) { - delete m_data->m_sharedMemory; - } - m_data->m_ownsSharedMemory = false; - m_data->m_sharedMemory = sharedMem; + if (m_data->m_sharedMemory && m_data->m_ownsSharedMemory) + { + delete m_data->m_sharedMemory; + } + m_data->m_ownsSharedMemory = false; + m_data->m_sharedMemory = sharedMem; + }; } void PhysicsClientSharedMemory::disconnectSharedMemory() { @@ -280,7 +288,15 @@ bool PhysicsClientSharedMemory::connect() { if (m_data->m_testBlock1) { if (m_data->m_testBlock1->m_magicId != SHARED_MEMORY_MAGIC_NUMBER) { - b3Error("Error: please start server before client\n"); + //there is no chance people are still using this software 100 years from now ;-) + if ((m_data->m_testBlock1->m_magicId < 211705023) && + (m_data->m_testBlock1->m_magicId >=201705023)) + { + b3Error("Error: physics server version mismatch (expected %d got %d)\n",SHARED_MEMORY_MAGIC_NUMBER, m_data->m_testBlock1->m_magicId); + } else + { + b3Error("Error connecting to shared memory: please start server before client\n"); + } m_data->m_sharedMemory->releaseSharedMemory(m_data->m_sharedMemoryKey, SHARED_MEMORY_SIZE); m_data->m_testBlock1 = 0; @@ -434,6 +450,8 @@ const SharedMemoryStatus* PhysicsClientSharedMemory::processServerStatus() { break; } + + case CMD_CREATE_MULTI_BODY_COMPLETED: case CMD_URDF_LOADING_COMPLETED: { B3_PROFILE("CMD_URDF_LOADING_COMPLETED"); @@ -866,6 +884,21 @@ const SharedMemoryStatus* PhysicsClientSharedMemory::processServerStatus() { break; } + case CMD_REQUEST_MOUSE_EVENTS_DATA_COMPLETED: + { + B3_PROFILE("CMD_REQUEST_MOUSE_EVENTS_DATA_COMPLETED"); + if (m_data->m_verboseOutput) + { + b3Printf("Request mouse events completed"); + } + m_data->m_cachedMouseEvents.resize(serverCmd.m_sendMouseEvents.m_numMouseEvents); + for (int i=0;im_cachedMouseEvents[i] = serverCmd.m_sendMouseEvents.m_mouseEvents[i]; + } + break; + } + case CMD_REQUEST_AABB_OVERLAP_COMPLETED: { B3_PROFILE("CMD_REQUEST_AABB_OVERLAP_COMPLETED"); @@ -1048,6 +1081,37 @@ const SharedMemoryStatus* PhysicsClientSharedMemory::processServerStatus() { b3Warning("Request dynamics info failed"); break; } + case CMD_CREATE_COLLISION_SHAPE_FAILED: + { + b3Warning("Request createCollisionShape failed"); + break; + } + case CMD_CREATE_COLLISION_SHAPE_COMPLETED: + case CMD_CREATE_VISUAL_SHAPE_COMPLETED: + { + break; + } + + case CMD_CREATE_MULTI_BODY_FAILED: + { + b3Warning("Request createMultiBody failed"); + break; + } + case CMD_CREATE_VISUAL_SHAPE_FAILED: + { + b3Warning("Request createVisualShape failed"); + break; + } + case CMD_REQUEST_COLLISION_INFO_COMPLETED: + { + break; + } + case CMD_REQUEST_COLLISION_INFO_FAILED: + { + b3Warning("Request getCollisionInfo failed"); + break; + } + default: { b3Error("Unknown server status %d\n", serverCmd.m_type); btAssert(0); @@ -1310,7 +1374,9 @@ void PhysicsClientSharedMemory::uploadBulletFileToSharedMemory(const char* data, SHARED_MEMORY_MAX_STREAM_CHUNK_SIZE); } else { for (int i = 0; i < len; i++) { - m_data->m_testBlock1->m_bulletStreamDataClientToServer[i] = data[i]; + //m_data->m_testBlock1->m_bulletStreamDataClientToServer[i] = data[i]; + m_data->m_testBlock1->m_bulletStreamDataServerToClientRefactor[i] = data[i]; + } } } @@ -1352,6 +1418,14 @@ void PhysicsClientSharedMemory::getCachedKeyboardEvents(struct b3KeyboardEventsD &m_data->m_cachedKeyboardEvents[0] : 0; } +void PhysicsClientSharedMemory::getCachedMouseEvents(struct b3MouseEventsData* mouseEventsData) +{ + mouseEventsData->m_numMouseEvents = m_data->m_cachedMouseEvents.size(); + mouseEventsData->m_mouseEvents = mouseEventsData->m_numMouseEvents? + &m_data->m_cachedMouseEvents[0] : 0; +} + + void PhysicsClientSharedMemory::getCachedRaycastHits(struct b3RaycastInformation* raycastHits) { raycastHits->m_numRayHits = m_data->m_raycastHits.size(); diff --git a/examples/SharedMemory/PhysicsClientSharedMemory.h b/examples/SharedMemory/PhysicsClientSharedMemory.h index f44e438e8..31c717c02 100644 --- a/examples/SharedMemory/PhysicsClientSharedMemory.h +++ b/examples/SharedMemory/PhysicsClientSharedMemory.h @@ -72,6 +72,8 @@ public: virtual void getCachedKeyboardEvents(struct b3KeyboardEventsData* keyboardEventsData); + virtual void getCachedMouseEvents(struct b3MouseEventsData* mouseEventsData); + virtual void getCachedRaycastHits(struct b3RaycastInformation* raycastHits); virtual void setTimeOut(double timeOutInSeconds); diff --git a/examples/SharedMemory/PhysicsCommandProcessorInterface.h b/examples/SharedMemory/PhysicsCommandProcessorInterface.h index 70ed2d044..1614cc33a 100644 --- a/examples/SharedMemory/PhysicsCommandProcessorInterface.h +++ b/examples/SharedMemory/PhysicsCommandProcessorInterface.h @@ -1,7 +1,7 @@ #ifndef PHYSICS_COMMAND_PROCESSOR_INTERFACE_H #define PHYSICS_COMMAND_PROCESSOR_INTERFACE_H -enum PhysicsCOmmandRenderFlags +enum PhysicsCommandRenderFlags { COV_DISABLE_SYNC_RENDERING=1 }; @@ -29,4 +29,34 @@ public: }; + +class btVector3; +class btQuaternion; + +class CommandProcessorInterface : public PhysicsCommandProcessorInterface +{ + +public: + virtual ~CommandProcessorInterface(){} + + virtual void syncPhysicsToGraphics()=0; + virtual void stepSimulationRealTime(double dtInSec,const struct b3VRControllerEvent* vrControllerEvents, int numVRControllerEvents, const struct b3KeyboardEvent* keyEvents, int numKeyEvents, const struct b3MouseEvent* mouseEvents, int numMouseEvents)=0; + virtual void enableRealTimeSimulation(bool enableRealTimeSim)=0; + virtual bool isRealTimeSimulationEnabled() const=0; + + virtual void enableCommandLogging(bool enable, const char* fileName)=0; + virtual void replayFromLogFile(const char* fileName)=0; + virtual void replayLogCommand(char* bufferServerToClient, int bufferSizeInBytes )=0; + + virtual bool pickBody(const btVector3& rayFromWorld, const btVector3& rayToWorld)=0; + virtual bool movePickedBody(const btVector3& rayFromWorld, const btVector3& rayToWorld)=0; + virtual void removePickingConstraint()=0; + + virtual const btVector3& getVRTeleportPosition() const=0; + virtual void setVRTeleportPosition(const btVector3& vrReleportPos)=0; + + virtual const btQuaternion& getVRTeleportOrientation() const=0; + virtual void setVRTeleportOrientation(const btQuaternion& vrReleportOrn)=0; +}; + #endif //PHYSICS_COMMAND_PROCESSOR_INTERFACE_H diff --git a/examples/SharedMemory/PhysicsDirect.cpp b/examples/SharedMemory/PhysicsDirect.cpp index e03e2d7f0..d26ff70da 100644 --- a/examples/SharedMemory/PhysicsDirect.cpp +++ b/examples/SharedMemory/PhysicsDirect.cpp @@ -54,6 +54,7 @@ struct PhysicsDirectInternalData btAlignedObjectArray m_cachedVREvents; btAlignedObjectArray m_cachedKeyboardEvents; + btAlignedObjectArray m_cachedMouseEvents; btAlignedObjectArray m_raycastHits; @@ -64,9 +65,15 @@ struct PhysicsDirectInternalData PhysicsDirectInternalData() :m_hasStatus(false), m_verboseOutput(false), + m_cachedCameraPixelsWidth(0), + m_cachedCameraPixelsHeight(0), + m_commandProcessor(NULL), m_ownsCommandProcessor(false), m_timeOutInSeconds(1e30) { + memset(&m_command, 0, sizeof(m_command)); + memset(&m_serverStatus, 0, sizeof(m_serverStatus)); + memset(m_bulletStreamDataServerToClient, 0, sizeof(m_bulletStreamDataServerToClient)); } }; @@ -693,6 +700,21 @@ void PhysicsDirect::postProcessStatus(const struct SharedMemoryStatus& serverCmd break; } + case CMD_REQUEST_MOUSE_EVENTS_DATA_COMPLETED: + { + B3_PROFILE("CMD_REQUEST_MOUSE_EVENTS_DATA_COMPLETED"); + if (m_data->m_verboseOutput) + { + b3Printf("Request mouse events completed"); + } + m_data->m_cachedMouseEvents.resize(serverCmd.m_sendMouseEvents.m_numMouseEvents); + for (int i=0;im_cachedMouseEvents[i] = serverCmd.m_sendMouseEvents.m_mouseEvents[i]; + } + break; + } + case CMD_REQUEST_INTERNAL_DATA_COMPLETED: { if (serverCmd.m_numDataStreamBytes) @@ -835,6 +857,7 @@ void PhysicsDirect::postProcessStatus(const struct SharedMemoryStatus& serverCmd } break; } + case CMD_CREATE_MULTI_BODY_COMPLETED: case CMD_URDF_LOADING_COMPLETED: { @@ -881,6 +904,42 @@ void PhysicsDirect::postProcessStatus(const struct SharedMemoryStatus& serverCmd b3Warning("createConstraint failed"); break; } + + case CMD_CREATE_COLLISION_SHAPE_FAILED: + { + b3Warning("createCollisionShape failed"); + break; + } + case CMD_CREATE_COLLISION_SHAPE_COMPLETED: + { + break; + } + + case CMD_CREATE_VISUAL_SHAPE_FAILED: + { + b3Warning("createVisualShape failed"); + break; + } + case CMD_CREATE_VISUAL_SHAPE_COMPLETED: + { + break; + } + + case CMD_CREATE_MULTI_BODY_FAILED: + { + b3Warning("createMultiBody failed"); + break; + } + case CMD_REQUEST_COLLISION_INFO_COMPLETED: + { + break; + } + case CMD_REQUEST_COLLISION_INFO_FAILED: + { + b3Warning("Request getCollisionInfo failed"); + break; + } + default: { //b3Warning("Unknown server status type"); @@ -1036,6 +1095,14 @@ void PhysicsDirect::setSharedMemoryKey(int key) void PhysicsDirect::uploadBulletFileToSharedMemory(const char* data, int len) { + if (len>SHARED_MEMORY_MAX_STREAM_CHUNK_SIZE) + { + len = SHARED_MEMORY_MAX_STREAM_CHUNK_SIZE; + } + for (int i=0;im_bulletStreamDataServerToClient[i] = data[i]; + } //m_data->m_physicsClient->uploadBulletFileToSharedMemory(data,len); } @@ -1116,6 +1183,14 @@ void PhysicsDirect::getCachedKeyboardEvents(struct b3KeyboardEventsData* keyboar &m_data->m_cachedKeyboardEvents[0] : 0; } +void PhysicsDirect::getCachedMouseEvents(struct b3MouseEventsData* mouseEventsData) +{ + mouseEventsData->m_numMouseEvents = m_data->m_cachedMouseEvents.size(); + mouseEventsData->m_mouseEvents = mouseEventsData->m_numMouseEvents? + &m_data->m_cachedMouseEvents[0] : 0; +} + + void PhysicsDirect::getCachedRaycastHits(struct b3RaycastInformation* raycastHits) { raycastHits->m_numRayHits = m_data->m_raycastHits.size(); diff --git a/examples/SharedMemory/PhysicsDirect.h b/examples/SharedMemory/PhysicsDirect.h index 64ea073eb..282a61732 100644 --- a/examples/SharedMemory/PhysicsDirect.h +++ b/examples/SharedMemory/PhysicsDirect.h @@ -95,6 +95,8 @@ public: virtual void getCachedKeyboardEvents(struct b3KeyboardEventsData* keyboardEventsData); + virtual void getCachedMouseEvents(struct b3MouseEventsData* mouseEventsData); + virtual void getCachedRaycastHits(struct b3RaycastInformation* raycastHits); //the following APIs are for internal use for visualization: diff --git a/examples/SharedMemory/PhysicsLoopBack.cpp b/examples/SharedMemory/PhysicsLoopBack.cpp index bf33bea2e..3067f2ace 100644 --- a/examples/SharedMemory/PhysicsLoopBack.cpp +++ b/examples/SharedMemory/PhysicsLoopBack.cpp @@ -2,25 +2,44 @@ #include "PhysicsServerSharedMemory.h" #include "PhysicsClientSharedMemory.h" #include "../CommonInterfaces/CommonGUIHelperInterface.h" - +#include "PhysicsServerCommandProcessor.h" +#include "../CommonInterfaces/CommonExampleInterface.h" struct PhysicsLoopBackInternalData { + CommandProcessorInterface* m_commandProcessor; PhysicsClientSharedMemory* m_physicsClient; PhysicsServerSharedMemory* m_physicsServer; DummyGUIHelper m_noGfx; PhysicsLoopBackInternalData() - :m_physicsClient(0), + :m_commandProcessor(0), + m_physicsClient(0), m_physicsServer(0) { } }; +struct Bullet2CommandProcessorCreation2 : public CommandProcessorCreationInterface +{ + virtual class CommandProcessorInterface* createCommandProcessor() + { + PhysicsServerCommandProcessor* proc = new PhysicsServerCommandProcessor; + return proc; + } + + virtual void deleteCommandProcessor(CommandProcessorInterface* proc) + { + delete proc; + } +}; + +static Bullet2CommandProcessorCreation2 sB2Proc; + PhysicsLoopBack::PhysicsLoopBack() { m_data = new PhysicsLoopBackInternalData; - m_data->m_physicsServer = new PhysicsServerSharedMemory(); + m_data->m_physicsServer = new PhysicsServerSharedMemory(&sB2Proc, 0,0); m_data->m_physicsClient = new PhysicsClientSharedMemory(); } @@ -28,6 +47,7 @@ PhysicsLoopBack::~PhysicsLoopBack() { delete m_data->m_physicsClient; delete m_data->m_physicsServer; + delete m_data->m_commandProcessor; delete m_data; } @@ -170,6 +190,11 @@ void PhysicsLoopBack::getCachedKeyboardEvents(struct b3KeyboardEventsData* keybo return m_data->m_physicsClient->getCachedKeyboardEvents(keyboardEventsData); } +void PhysicsLoopBack::getCachedMouseEvents(struct b3MouseEventsData* mouseEventsData) +{ + return m_data->m_physicsClient->getCachedMouseEvents(mouseEventsData); +} + void PhysicsLoopBack::getCachedOverlappingObjects(struct b3AABBOverlapData* overlappingObjects) { return m_data->m_physicsClient->getCachedOverlappingObjects(overlappingObjects); diff --git a/examples/SharedMemory/PhysicsLoopBack.h b/examples/SharedMemory/PhysicsLoopBack.h index cd05027f1..f83cd7234 100644 --- a/examples/SharedMemory/PhysicsLoopBack.h +++ b/examples/SharedMemory/PhysicsLoopBack.h @@ -76,6 +76,8 @@ public: virtual void getCachedKeyboardEvents(struct b3KeyboardEventsData* keyboardEventsData); + virtual void getCachedMouseEvents(struct b3MouseEventsData* mouseEventsData); + virtual void getCachedRaycastHits(struct b3RaycastInformation* raycastHits); virtual void setTimeOut(double timeOutInSeconds); diff --git a/examples/SharedMemory/PhysicsServer.h b/examples/SharedMemory/PhysicsServer.h index 7b75a36cf..423d228b5 100644 --- a/examples/SharedMemory/PhysicsServer.h +++ b/examples/SharedMemory/PhysicsServer.h @@ -25,18 +25,18 @@ public: //@todo(erwincoumans) Should we have shared memory commands for picking objects? ///The pickBody method will try to pick the first body along a ray, return true if succeeds, false otherwise - virtual bool pickBody(const btVector3& rayFromWorld, const btVector3& rayToWorld)=0; - virtual bool movePickedBody(const btVector3& rayFromWorld, const btVector3& rayToWorld)=0; - virtual void removePickingConstraint()=0; + virtual bool pickBody(const btVector3& rayFromWorld, const btVector3& rayToWorld){return false;} + virtual bool movePickedBody(const btVector3& rayFromWorld, const btVector3& rayToWorld){return false;} + virtual void removePickingConstraint(){} //for physicsDebugDraw and renderScene are mainly for debugging purposes //and for physics visualization. The idea is that physicsDebugDraw can also send wireframe //to a physics client, over shared memory - virtual void physicsDebugDraw(int debugDrawFlags)=0; - virtual void renderScene(int renderFlags)=0; + virtual void physicsDebugDraw(int debugDrawFlags){} + virtual void renderScene(int renderFlags){} - virtual void enableCommandLogging(bool enable, const char* fileName)=0; - virtual void replayFromLogFile(const char* fileName)=0; + virtual void enableCommandLogging(bool enable, const char* fileName){} + virtual void replayFromLogFile(const char* fileName){} }; diff --git a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp index ea720de67..9975312da 100644 --- a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp +++ b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp @@ -10,12 +10,17 @@ #include "BulletDynamics/Featherstone/btMultiBodyLinkCollider.h" #include "BulletDynamics/Featherstone/btMultiBodyJointFeedback.h" #include "BulletDynamics/Featherstone/btMultiBodyFixedConstraint.h" +#include "BulletDynamics/Featherstone/btMultiBodyGearConstraint.h" +#include "../Importers/ImportURDFDemo/UrdfParser.h" +#include "../Utils/b3ResourcePath.h" +#include "Bullet3Common/b3FileUtils.h" +#include "../OpenGLWindow/GLInstanceGraphicsShape.h" #include "BulletDynamics/Featherstone/btMultiBodySliderConstraint.h" #include "BulletDynamics/Featherstone/btMultiBodyPoint2Point.h" #include "BulletCollision/NarrowPhaseCollision/btPersistentManifold.h" #include "Bullet3Common/b3HashMap.h" #include "../Utils/ChromeTraceUtil.h" - +#include "stb_image/stb_image.h" #include "BulletInverseDynamics/MultiBodyTree.hpp" #include "IKTrajectoryHelper.h" #include "btBulletDynamicsCommon.h" @@ -49,9 +54,8 @@ //@todo(erwincoumans) those globals are hacks for a VR demo, move this to Python/pybullet! btVector3 gLastPickPos(0, 0, 0); -bool gCloseToKuka=false; -bool gEnableRealTimeSimVR=false; -bool gCreateDefaultRobotAssets = false; + + int gInternalSimFlags = 0; bool gResetSimulation = 0; int gVRTrackingObjectUniqueId = -1; @@ -59,9 +63,9 @@ int gVRTrackingObjectFlag = VR_CAMERA_TRACK_OBJECT_ORIENTATION; btTransform gVRTrackingObjectTr = btTransform::getIdentity(); -int gMaxNumCmdPer1ms = -1;//experiment: add some delay to avoid threads starving other threads -int gCreateObjectSimVR = -1; -int gEnableKukaControl = 0; + + + btVector3 gVRTeleportPos1(0,0,0); btQuaternion gVRTeleportOrn(0, 0, 0,1); @@ -125,9 +129,17 @@ struct SharedMemoryDebugDrawer : public btIDebugDraw } }; +struct InternalCollisionShapeData +{ + btCollisionShape* m_collisionShape; + b3AlignedObjectArray m_urdfCollisionObjects; + void clear() + { + m_collisionShape=0; + } +}; - -struct InteralBodyData +struct InternalBodyData { btMultiBody* m_multiBody; btRigidBody* m_rigidBody; @@ -140,7 +152,7 @@ struct InteralBodyData b3HashMap m_audioSources; #endif //B3_ENABLE_TINY_AUDIO - InteralBodyData() + InternalBodyData() { clear(); } @@ -171,8 +183,20 @@ struct InteralUserConstraintData } }; -typedef b3PoolBodyHandle InternalBodyHandle; +struct InternalTextureData +{ + int m_tinyRendererTextureId; + int m_openglTextureId; + void clear() + { + m_tinyRendererTextureId = -1; + m_openglTextureId = -1; + } +}; +typedef b3PoolBodyHandle InternalTextureHandle; +typedef b3PoolBodyHandle InternalBodyHandle; +typedef b3PoolBodyHandle InternalCollisionShapeHandle; class btCommandChunk { @@ -1133,29 +1157,19 @@ struct ContactPointsStateLogger : public InternalStateLogger struct PhysicsServerCommandProcessorInternalData { ///handle management + b3ResizablePool< InternalTextureHandle > m_textureHandles; b3ResizablePool< InternalBodyHandle > m_bodyHandles; - + b3ResizablePool m_userCollisionShapeHandles; bool m_allowRealTimeSimulation; - bool m_hasGround; + b3VRControllerEvents m_vrControllerEvents; btAlignedObjectArray m_keyboardEvents; - - btMultiBodyFixedConstraint* m_gripperRigidbodyFixed; - btMultiBody* m_gripperMultiBody; - btMultiBodyFixedConstraint* m_kukaGripperFixed; - btMultiBody* m_kukaGripperMultiBody; - btMultiBodyPoint2Point* m_kukaGripperRevolute1; - btMultiBodyPoint2Point* m_kukaGripperRevolute2; - + btAlignedObjectArray m_mouseEvents; - int m_huskyId; - int m_KukaId; - int m_sphereId; - int m_gripperId; CommandLogger* m_commandLogger; CommandLogPlayback* m_logPlayback; @@ -1231,17 +1245,6 @@ struct PhysicsServerCommandProcessorInternalData PhysicsServerCommandProcessorInternalData() : m_allowRealTimeSimulation(false), - m_hasGround(false), - m_gripperRigidbodyFixed(0), - m_gripperMultiBody(0), - m_kukaGripperFixed(0), - m_kukaGripperMultiBody(0), - m_kukaGripperRevolute1(0), - m_kukaGripperRevolute2(0), - m_huskyId(-1), - m_KukaId(-1), - m_sphereId(-1), - m_gripperId(-1), m_commandLogger(0), m_logPlayback(0), m_physicsDeltaTime(1./240.), @@ -1268,6 +1271,9 @@ struct PhysicsServerCommandProcessorInternalData m_bodyHandles.exitHandles(); m_bodyHandles.initHandles(); + m_userCollisionShapeHandles.exitHandles(); + m_userCollisionShapeHandles.initHandles(); + #if 0 btAlignedObjectArray bla; @@ -1276,7 +1282,7 @@ struct PhysicsServerCommandProcessorInternalData int handle = allocHandle(); bla.push_back(handle); InternalBodyHandle* body = getHandle(handle); - InteralBodyData* body2 = body; + InternalBodyData* body2 = body; } for (int i=0;i m_allocatedCollisionShapes; + PhysicsServerCommandProcessorInternalData* m_data; + + ProgrammaticUrdfInterface(const b3CreateMultiBodyArgs& bodyArgs, PhysicsServerCommandProcessorInternalData* data) + :m_bodyUniqueId(-1), + m_createBodyArgs(bodyArgs), + m_data(data) + { + + } + + virtual ~ProgrammaticUrdfInterface() + { + + } + + virtual bool loadURDF(const char* fileName, bool forceFixedBase = false) + { + b3Assert(0); + return false; + } + + virtual const char* getPathPrefix() + { + return ""; + } + + ///return >=0 for the root link index, -1 if there is no root link + virtual int getRootLinkIndex() const + { + return m_createBodyArgs.m_baseLinkIndex; + } + + ///pure virtual interfaces, precondition is a valid linkIndex (you can assert/terminate if the linkIndex is out of range) + virtual std::string getLinkName(int linkIndex) const + { + std::string linkName = "link"; + char numstr[21]; // enough to hold all numbers up to 64-bits + sprintf(numstr, "%d", linkIndex); + linkName = linkName + numstr; + return linkName; + } + + //various derived class in internal source code break with new pure virtual methods, so provide some default implementation + virtual std::string getBodyName() const + { + return m_createBodyArgs.m_bodyName; + } + + /// optional method to provide the link color. return true if the color is available and copied into colorRGBA, return false otherwise + virtual bool getLinkColor(int linkIndex, btVector4& colorRGBA) const + { + b3Assert(0); + return false; + } + + virtual bool getLinkColor2(int linkIndex, struct UrdfMaterialColor& matCol) const + { + return false; + } + + virtual int getCollisionGroupAndMask(int linkIndex, int& colGroup, int& colMask) const + { + return 0; + } + ///this API will likely change, don't override it! + virtual bool getLinkContactInfo(int linkIndex, URDFLinkContactInfo& contactInfo ) const + { + + return false; + } + + virtual bool getLinkAudioSource(int linkIndex, SDFAudioSource& audioSource) const + { + b3Assert(0); + return false; + } + + virtual std::string getJointName(int linkIndex) const + { + std::string jointName = "joint"; + char numstr[21]; // enough to hold all numbers up to 64-bits + sprintf(numstr, "%d", linkIndex); + jointName = jointName + numstr; + return jointName; + } + + //fill mass and inertial data. If inertial data is missing, please initialize mass, inertia to sensitive values, and inertialFrame to identity. + virtual void getMassAndInertia(int urdfLinkIndex, btScalar& mass,btVector3& localInertiaDiagonal, btTransform& inertialFrame) const + { + if (urdfLinkIndex>=0 && urdfLinkIndex < m_createBodyArgs.m_numLinks) + { + mass = m_createBodyArgs.m_linkMasses[urdfLinkIndex]; + localInertiaDiagonal.setValue( + m_createBodyArgs.m_linkInertias[urdfLinkIndex*3+0], + m_createBodyArgs.m_linkInertias[urdfLinkIndex*3+1], + m_createBodyArgs.m_linkInertias[urdfLinkIndex*3+2]); + inertialFrame.setOrigin(btVector3( + m_createBodyArgs.m_linkInertialFramePositions[urdfLinkIndex*3+0], + m_createBodyArgs.m_linkInertialFramePositions[urdfLinkIndex*3+1], + m_createBodyArgs.m_linkInertialFramePositions[urdfLinkIndex*3+2])); + inertialFrame.setRotation(btQuaternion( + m_createBodyArgs.m_linkInertialFrameOrientations[urdfLinkIndex*4+0], + m_createBodyArgs.m_linkInertialFrameOrientations[urdfLinkIndex*4+1], + m_createBodyArgs.m_linkInertialFrameOrientations[urdfLinkIndex*4+2], + m_createBodyArgs.m_linkInertialFrameOrientations[urdfLinkIndex*4+3])); + } else + { + mass = 0; + localInertiaDiagonal.setValue(0,0,0); + inertialFrame.setIdentity(); + } + } + + ///fill an array of child link indices for this link, btAlignedObjectArray behaves like a std::vector so just use push_back and resize(0) if needed + virtual void getLinkChildIndices(int urdfLinkIndex, btAlignedObjectArray& childLinkIndices) const + { + for (int i=0;im_urdfParser.getModel(); + UrdfLink link; + int colShapeUniqueId = m_createBodyArgs.m_linkCollisionShapeUniqueIds[urdfIndex]; + if (colShapeUniqueId>=0) + { + InternalCollisionShapeHandle* handle = m_data->m_userCollisionShapeHandles.getHandle(colShapeUniqueId); + if (handle) + { + for (int i=0;im_urdfCollisionObjects.size();i++) + { + link.m_collisionArray.push_back(handle->m_urdfCollisionObjects[i]); + } + } + } + //UrdfVisual vis; + //link.m_visualArray.push_back(vis); + //UrdfLink*const* linkPtr = model.m_links.getAtIndex(urdfIndex); + m_data->m_visualConverter.convertVisualShapes(linkIndex,pathPrefix,localInertiaFrame, &link, &model, colObj, bodyUniqueId); + } + virtual void setBodyUniqueId(int bodyId) + { + m_bodyUniqueId = bodyId; + } + virtual int getBodyUniqueId() const + { + return m_bodyUniqueId; + } + + //default implementation for backward compatibility + virtual class btCompoundShape* convertLinkCollisionShapes(int linkIndex, const char* pathPrefix, const btTransform& localInertiaFrame) const + { + btCompoundShape* compound = new btCompoundShape(); + + int colShapeUniqueId = m_createBodyArgs.m_linkCollisionShapeUniqueIds[linkIndex]; + if (colShapeUniqueId>=0) + { + InternalCollisionShapeHandle* handle = m_data->m_userCollisionShapeHandles.getHandle(colShapeUniqueId); + if (handle) + { + btTransform childTrans; + childTrans.setIdentity(); + compound->addChildShape(localInertiaFrame.inverse()*childTrans,handle->m_collisionShape); + } + } + m_allocatedCollisionShapes.push_back(compound); + return compound; + } + + virtual int getNumAllocatedCollisionShapes() const + { + return m_allocatedCollisionShapes.size(); + } + + virtual class btCollisionShape* getAllocatedCollisionShape(int index) + { + return m_allocatedCollisionShapes[index]; + } + virtual int getNumModels() const + { + return 1; + } + virtual void activateModel(int /*modelIndex*/) + { + } +}; + + void PhysicsServerCommandProcessor::createEmptyDynamicsWorld() { ///collision configuration contains default setup for memory, collision setup @@ -1853,7 +2163,22 @@ bool PhysicsServerCommandProcessor::processImportedObjects(const char* fileName, createJointMotors(mb); - +#ifdef B3_ENABLE_TINY_AUDIO + { + SDFAudioSource audioSource; + int urdfRootLink = u2b.getRootLinkIndex();//LinkIndex = creation.m_mb2urdfLink[-1]; + if (u2b.getLinkAudioSource(urdfRootLink,audioSource)) + { + int flags = mb->getBaseCollider()->getCollisionFlags(); + mb->getBaseCollider()->setCollisionFlags(flags | btCollisionObject::CF_HAS_COLLISION_SOUND_TRIGGER); + audioSource.m_userIndex = m_data->m_soundEngine.loadWavFile(audioSource.m_uri.c_str()); + if (audioSource.m_userIndex>=0) + { + bodyHandle->m_audioSources.insert(-1, audioSource); + } + } + } +#endif //disable serialization of the collision objects (they are too big, and the client likely doesn't need them); bodyHandle->m_linkLocalInertialFrames.reserve(mb->getNumLinks()); @@ -1877,14 +2202,33 @@ bool PhysicsServerCommandProcessor::processImportedObjects(const char* fileName, m_data->m_strings.push_back(jointName); mb->getLink(i).m_jointName = jointName->c_str(); + +#ifdef B3_ENABLE_TINY_AUDIO + { + SDFAudioSource audioSource; + int urdfLinkIndex = creation.m_mb2urdfLink[link]; + if (u2b.getLinkAudioSource(urdfLinkIndex,audioSource)) + { + int flags = mb->getLink(link).m_collider->getCollisionFlags(); + mb->getLink(i).m_collider->setCollisionFlags(flags | btCollisionObject::CF_HAS_COLLISION_SOUND_TRIGGER); + audioSource.m_userIndex = m_data->m_soundEngine.loadWavFile(audioSource.m_uri.c_str()); + if (audioSource.m_userIndex>=0) + { + bodyHandle->m_audioSources.insert(link, audioSource); + } + } + } +#endif } std::string* baseName = new std::string(u2b.getLinkName(u2b.getRootLinkIndex())); m_data->m_strings.push_back(baseName); mb->setBaseName(baseName->c_str()); } else { - b3Warning("No multibody loaded from URDF. Could add btRigidBody+btTypedConstraint solution later."); + //b3Warning("No multibody loaded from URDF. Could add btRigidBody+btTypedConstraint solution later."); bodyHandle->m_rigidBody = rb; + rb->setUserIndex2(bodyUniqueId); + m_data->m_sdfRecentLoadedBodies.push_back(bodyUniqueId); } } @@ -1940,7 +2284,7 @@ bool PhysicsServerCommandProcessor::loadMjcf(const char* fileName, char* bufferS return loadOk; } -bool PhysicsServerCommandProcessor::loadSdf(const char* fileName, char* bufferServerToClient, int bufferSizeInBytes, bool useMultiBody, int flags) +bool PhysicsServerCommandProcessor::loadSdf(const char* fileName, char* bufferServerToClient, int bufferSizeInBytes, bool useMultiBody, int flags, btScalar globalScaling) { btAssert(m_data->m_dynamicsWorld); if (!m_data->m_dynamicsWorld) @@ -1951,7 +2295,7 @@ bool PhysicsServerCommandProcessor::loadSdf(const char* fileName, char* bufferSe m_data->m_sdfRecentLoadedBodies.clear(); - BulletURDFImporter u2b(m_data->m_guiHelper, &m_data->m_visualConverter); + BulletURDFImporter u2b(m_data->m_guiHelper, &m_data->m_visualConverter, globalScaling); bool forceFixedBase = false; bool loadOk =u2b.loadSDF(fileName,forceFixedBase); @@ -1967,8 +2311,11 @@ bool PhysicsServerCommandProcessor::loadSdf(const char* fileName, char* bufferSe bool PhysicsServerCommandProcessor::loadUrdf(const char* fileName, const btVector3& pos, const btQuaternion& orn, - bool useMultiBody, bool useFixedBase, int* bodyUniqueIdPtr, char* bufferServerToClient, int bufferSizeInBytes, int flags) + bool useMultiBody, bool useFixedBase, int* bodyUniqueIdPtr, char* bufferServerToClient, int bufferSizeInBytes, int flags, btScalar globalScaling) { + m_data->m_sdfRecentLoadedBodies.clear(); + *bodyUniqueIdPtr = -1; + BT_PROFILE("loadURDF"); btAssert(m_data->m_dynamicsWorld); if (!m_data->m_dynamicsWorld) @@ -1979,13 +2326,32 @@ bool PhysicsServerCommandProcessor::loadUrdf(const char* fileName, const btVecto - BulletURDFImporter u2b(m_data->m_guiHelper, &m_data->m_visualConverter); + BulletURDFImporter u2b(m_data->m_guiHelper, &m_data->m_visualConverter, globalScaling); bool loadOk = u2b.loadURDF(fileName, useFixedBase); if (loadOk) { + +#if 1 + btTransform rootTrans; + rootTrans.setOrigin(pos); + rootTrans.setRotation(orn); + u2b.setRootTransformInWorld(rootTrans); + bool ok = processImportedObjects(fileName, bufferServerToClient, bufferSizeInBytes, useMultiBody, flags, u2b); + if (ok) + { + if (m_data->m_sdfRecentLoadedBodies.size()==1) + { + *bodyUniqueIdPtr = m_data->m_sdfRecentLoadedBodies[0]; + + } + m_data->m_sdfRecentLoadedBodies.clear(); + } + return ok; +#else + //get a body index int bodyUniqueId = m_data->m_bodyHandles.allocHandle(); if (bodyUniqueIdPtr) @@ -2156,9 +2522,9 @@ bool PhysicsServerCommandProcessor::loadUrdf(const char* fileName, const btVecto return true; } } - + #endif } - + return false; } @@ -2326,7 +2692,7 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm if ((clientCmd.m_updateFlags & STATE_LOGGING_FILTER_OBJECT_UNIQUE_ID)&& (clientCmd.m_stateLoggingArguments.m_numBodyUniqueIds>0)) { int bodyUniqueId = clientCmd.m_stateLoggingArguments.m_bodyUniqueIds[0]; - InteralBodyData* body = m_data->m_bodyHandles.getHandle(bodyUniqueId); + InternalBodyData* body = m_data->m_bodyHandles.getHandle(bodyUniqueId); if (body) { if (body->m_multiBody) @@ -2523,6 +2889,27 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm break; }; + case CMD_REQUEST_MOUSE_EVENTS_DATA: + { + + serverStatusOut.m_sendMouseEvents.m_numMouseEvents = m_data->m_mouseEvents.size(); + if (serverStatusOut.m_sendMouseEvents.m_numMouseEvents>MAX_MOUSE_EVENTS) + { + serverStatusOut.m_sendMouseEvents.m_numMouseEvents = MAX_MOUSE_EVENTS; + } + for (int i=0;im_mouseEvents[i]; + } + + m_data->m_mouseEvents.resize(0); + serverStatusOut.m_type = CMD_REQUEST_MOUSE_EVENTS_DATA_COMPLETED; + hasStatus = true; + break; + }; + + + case CMD_REQUEST_KEYBOARD_EVENTS_DATA: { //BT_PROFILE("CMD_REQUEST_KEYBOARD_EVENTS_DATA"); @@ -2758,6 +3145,14 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm depthBuffer,numRequestedPixels, segmentationMaskBuffer, numRequestedPixels, startPixelIndex,width,height,&numPixelsCopied); + + m_data->m_guiHelper->debugDisplayCameraImageData(clientCmd.m_requestPixelDataArguments.m_viewMatrix, + clientCmd.m_requestPixelDataArguments.m_projectionMatrix,pixelRGBA,numRequestedPixels, + depthBuffer,numRequestedPixels, + 0, numRequestedPixels, + startPixelIndex,width,height,&numPixelsCopied); + + } else { @@ -2807,15 +3202,42 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm clientCmd.m_requestPixelDataArguments.m_projectionMatrix); } else { - m_data->m_visualConverter.render(); + b3OpenGLVisualizerCameraInfo tmpCamResult; + bool result = this->m_data->m_guiHelper->getCameraInfo( + &tmpCamResult.m_width, + &tmpCamResult.m_height, + tmpCamResult.m_viewMatrix, + tmpCamResult.m_projectionMatrix, + tmpCamResult.m_camUp, + tmpCamResult.m_camForward, + tmpCamResult.m_horizontal, + tmpCamResult.m_vertical, + &tmpCamResult.m_yaw, + &tmpCamResult.m_pitch, + &tmpCamResult.m_dist, + tmpCamResult.m_target); + if (result) + { + m_data->m_visualConverter.render(tmpCamResult.m_viewMatrix, + tmpCamResult.m_projectionMatrix); + } else + { + m_data->m_visualConverter.render(); + } } - } m_data->m_visualConverter.copyCameraImageData(pixelRGBA,numRequestedPixels, depthBuffer,numRequestedPixels, segmentationMaskBuffer, numRequestedPixels, startPixelIndex,&width,&height,&numPixelsCopied); + + m_data->m_guiHelper->debugDisplayCameraImageData(clientCmd.m_requestPixelDataArguments.m_viewMatrix, + clientCmd.m_requestPixelDataArguments.m_projectionMatrix,pixelRGBA,numRequestedPixels, + depthBuffer,numRequestedPixels, + segmentationMaskBuffer, numRequestedPixels, + startPixelIndex,width,height,&numPixelsCopied); + } //each pixel takes 4 RGBA values and 1 float = 8 bytes @@ -2847,7 +3269,7 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm for (int i=0;im_bodyHandles.getHandle(usedHandle); + InternalBodyData* body = m_data->m_bodyHandles.getHandle(usedHandle); if (body && (body->m_multiBody || body->m_rigidBody)) { serverStatusOut.m_sdfLoadedArgs.m_bodyUniqueIds[actualNumBodies++] = usedHandle; @@ -2936,7 +3358,7 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm { { int bodyUniqueId = sd.m_bodyUniqueIds[i]; - InteralBodyData* body = m_data->m_bodyHandles.getHandle(bodyUniqueId); + InternalBodyData* body = m_data->m_bodyHandles.getHandle(bodyUniqueId); if (body) { if (body->m_multiBody) @@ -3157,7 +3579,12 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm bool useMultiBody=(clientCmd.m_updateFlags & URDF_ARGS_USE_MULTIBODY) ? (sdfArgs.m_useMultiBody!=0) : true; int flags = CUF_USE_SDF; //CUF_USE_URDF_INERTIA - bool completedOk = loadSdf(sdfArgs.m_sdfFileName,bufferServerToClient, bufferSizeInBytes, useMultiBody, flags); + btScalar globalScaling = 1.f; + if (clientCmd.m_updateFlags & URDF_ARGS_USE_GLOBAL_SCALING) + { + globalScaling = sdfArgs.m_globalScaling; + } + bool completedOk = loadSdf(sdfArgs.m_sdfFileName,bufferServerToClient, bufferSizeInBytes, useMultiBody, flags, globalScaling); if (completedOk) { m_data->m_guiHelper->autogenerateGraphicsObjects(this->m_data->m_dynamicsWorld); @@ -3179,6 +3606,388 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm hasStatus = true; break; } + case CMD_CREATE_COLLISION_SHAPE: + { + hasStatus = true; + serverStatusOut.m_type = CMD_CREATE_COLLISION_SHAPE_FAILED; + + btBulletWorldImporter* worldImporter = new btBulletWorldImporter(m_data->m_dynamicsWorld); + + btCollisionShape* shape = 0; + b3AlignedObjectArray urdfCollisionObjects; + + btCompoundShape* compound = 0; + + if (clientCmd.m_createCollisionShapeArgs.m_numCollisionShapes>1) + { + compound = worldImporter->createCompoundShape(); + } + for (int i=0;icreateCompoundShape(); + } + } + + urdfColObj.m_linkLocalFrame = childTransform; + urdfColObj.m_sourceFileLocation = "memory"; + urdfColObj.m_name = "memory"; + urdfColObj.m_geometry.m_type = URDF_GEOM_UNKNOWN; + + switch (clientCmd.m_createCollisionShapeArgs.m_shapes[i].m_type) + { + case GEOM_SPHERE: + { + double radius = clientCmd.m_createCollisionShapeArgs.m_shapes[i].m_sphereRadius; + shape = worldImporter->createSphereShape(radius); + if (compound) + { + compound->addChildShape(childTransform,shape); + } + urdfColObj.m_geometry.m_type = URDF_GEOM_SPHERE; + urdfColObj.m_geometry.m_sphereRadius = radius; + break; + } + case GEOM_BOX: + { + //double halfExtents[3] = clientCmd.m_createCollisionShapeArgs.m_shapes[i].m_sphereRadius; + btVector3 halfExtents( + clientCmd.m_createCollisionShapeArgs.m_shapes[i].m_boxHalfExtents[0], + clientCmd.m_createCollisionShapeArgs.m_shapes[i].m_boxHalfExtents[1], + clientCmd.m_createCollisionShapeArgs.m_shapes[i].m_boxHalfExtents[2]); + shape = worldImporter->createBoxShape(halfExtents); + if (compound) + { + compound->addChildShape(childTransform,shape); + } + urdfColObj.m_geometry.m_type = URDF_GEOM_BOX; + urdfColObj.m_geometry.m_boxSize = 2.*halfExtents; + break; + } + case GEOM_CAPSULE: + { + shape = worldImporter->createCapsuleShapeZ(clientCmd.m_createCollisionShapeArgs.m_shapes[i].m_capsuleRadius, + clientCmd.m_createCollisionShapeArgs.m_shapes[i].m_capsuleHeight); + if (compound) + { + compound->addChildShape(childTransform,shape); + } + urdfColObj.m_geometry.m_type = URDF_GEOM_CAPSULE; + urdfColObj.m_geometry.m_capsuleRadius = clientCmd.m_createCollisionShapeArgs.m_shapes[i].m_capsuleRadius; + urdfColObj.m_geometry.m_capsuleHeight = clientCmd.m_createCollisionShapeArgs.m_shapes[i].m_capsuleHeight; + + break; + } + case GEOM_CYLINDER: + { + shape = worldImporter->createCylinderShapeZ(clientCmd.m_createCollisionShapeArgs.m_shapes[i].m_capsuleRadius, + clientCmd.m_createCollisionShapeArgs.m_shapes[i].m_capsuleHeight); + if (compound) + { + compound->addChildShape(childTransform,shape); + } + urdfColObj.m_geometry.m_type = URDF_GEOM_CYLINDER; + urdfColObj.m_geometry.m_capsuleRadius = clientCmd.m_createCollisionShapeArgs.m_shapes[i].m_capsuleRadius; + urdfColObj.m_geometry.m_capsuleHeight = clientCmd.m_createCollisionShapeArgs.m_shapes[i].m_capsuleHeight; + + break; + } + case GEOM_PLANE: + { + btVector3 planeNormal(clientCmd.m_createCollisionShapeArgs.m_shapes[i].m_planeNormal[0], + clientCmd.m_createCollisionShapeArgs.m_shapes[i].m_planeNormal[1], + clientCmd.m_createCollisionShapeArgs.m_shapes[i].m_planeNormal[2]); + + shape = worldImporter->createPlaneShape(planeNormal,0); + if (compound) + { + compound->addChildShape(childTransform,shape); + } + urdfColObj.m_geometry.m_type = URDF_GEOM_PLANE; + urdfColObj.m_geometry.m_planeNormal.setValue( + clientCmd.m_createCollisionShapeArgs.m_shapes[i].m_planeNormal[0], + clientCmd.m_createCollisionShapeArgs.m_shapes[i].m_planeNormal[1], + clientCmd.m_createCollisionShapeArgs.m_shapes[i].m_planeNormal[2]); + + break; + } + case GEOM_MESH: + { + btScalar defaultCollisionMargin = 0.001; + + btVector3 meshScale(clientCmd.m_createCollisionShapeArgs.m_shapes[i].m_meshScale[0], + clientCmd.m_createCollisionShapeArgs.m_shapes[i].m_meshScale[1], + clientCmd.m_createCollisionShapeArgs.m_shapes[i].m_meshScale[2]); + + const std::string& urdf_path=""; + + std::string fileName = clientCmd.m_createCollisionShapeArgs.m_shapes[i].m_meshFileName; + urdfColObj.m_geometry.m_type = URDF_GEOM_MESH; + urdfColObj.m_geometry.m_meshFileName = fileName; + + urdfColObj.m_geometry.m_meshScale = meshScale; + char relativeFileName[1024]; + char pathPrefix[1024]; + pathPrefix[0] = 0; + if (b3ResourcePath::findResourcePath(fileName.c_str(), relativeFileName, 1024)) + { + + b3FileUtils::extractPath(relativeFileName, pathPrefix, 1024); + } + + const std::string& error_message_prefix=""; + std::string out_found_filename; + int out_type; + + bool foundFile = findExistingMeshFile(pathPrefix, relativeFileName,error_message_prefix,&out_found_filename, &out_type); + if (foundFile) + { + urdfColObj.m_geometry.m_meshFileType = out_type; + + if (out_type==UrdfGeometry::FILE_OBJ) + { + //create a convex hull for each shape, and store it in a btCompoundShape + + if (clientCmd.m_createCollisionShapeArgs.m_shapes[i].m_collisionFlags&GEOM_FORCE_CONCAVE_TRIMESH) + { + GLInstanceGraphicsShape* glmesh = LoadMeshFromObj(relativeFileName, pathPrefix); + + if (!glmesh || glmesh->m_numvertices<=0) + { + b3Warning("%s: cannot extract mesh from '%s'\n", pathPrefix, relativeFileName); + delete glmesh; + break; + } + btAlignedObjectArray convertedVerts; + convertedVerts.reserve(glmesh->m_numvertices); + + for (int i=0; im_numvertices; i++) + { + convertedVerts.push_back(btVector3( + glmesh->m_vertices->at(i).xyzw[0]*meshScale[0], + glmesh->m_vertices->at(i).xyzw[1]*meshScale[1], + glmesh->m_vertices->at(i).xyzw[2]*meshScale[2])); + } + + BT_PROFILE("convert trimesh"); + btTriangleMesh* meshInterface = new btTriangleMesh(); + { + BT_PROFILE("convert vertices"); + + for (int i=0; im_numIndices/3; i++) + { + const btVector3& v0 = convertedVerts[glmesh->m_indices->at(i*3)]; + const btVector3& v1 = convertedVerts[glmesh->m_indices->at(i*3+1)]; + const btVector3& v2 = convertedVerts[glmesh->m_indices->at(i*3+2)]; + meshInterface->addTriangle(v0,v1,v2); + } + } + { + BT_PROFILE("create btBvhTriangleMeshShape"); + btBvhTriangleMeshShape* trimesh = new btBvhTriangleMeshShape(meshInterface,true,true); + //trimesh->setLocalScaling(collision->m_geometry.m_meshScale); + shape = trimesh; + if (compound) + { + compound->addChildShape(childTransform,shape); + } + } + } else + { + + std::vector shapes; + std::string err = tinyobj::LoadObj(shapes,out_found_filename.c_str()); + + //shape = createConvexHullFromShapes(shapes, collision->m_geometry.m_meshScale); + //static btCollisionShape* createConvexHullFromShapes(std::vector& shapes, const btVector3& geomScale) + B3_PROFILE("createConvexHullFromShapes"); + if (compound==0) + { + compound = worldImporter->createCompoundShape(); + } + compound->setMargin(defaultCollisionMargin); + + for (int s = 0; s<(int)shapes.size(); s++) + { + btConvexHullShape* convexHull = worldImporter->createConvexHullShape(); + convexHull->setMargin(defaultCollisionMargin); + tinyobj::shape_t& shape = shapes[s]; + int faceCount = shape.mesh.indices.size(); + + for (int f = 0; faddPoint(pt*meshScale,false); + + pt.setValue(shape.mesh.positions[shape.mesh.indices[f + 1] * 3 + 0], + shape.mesh.positions[shape.mesh.indices[f + 1] * 3 + 1], + shape.mesh.positions[shape.mesh.indices[f + 1] * 3 + 2]); + convexHull->addPoint(pt*meshScale, false); + + pt.setValue(shape.mesh.positions[shape.mesh.indices[f + 2] * 3 + 0], + shape.mesh.positions[shape.mesh.indices[f + 2] * 3 + 1], + shape.mesh.positions[shape.mesh.indices[f + 2] * 3 + 2]); + convexHull->addPoint(pt*meshScale, false); + } + + convexHull->recalcLocalAabb(); + convexHull->optimizeConvexHull(); + compound->addChildShape(childTransform,convexHull); + } + } + } + } + break; + } + default: + { + } + } + if (urdfColObj.m_geometry.m_type != URDF_GEOM_UNKNOWN) + { + urdfCollisionObjects.push_back(urdfColObj); + } + } + + + #if 0 + shape = worldImporter->createCylinderShapeX(radius,height); + shape = worldImporter->createCylinderShapeY(radius,height); + shape = worldImporter->createCylinderShapeZ(radius,height); + shape = worldImporter->createCapsuleShapeX(radius,height); + shape = worldImporter->createCapsuleShapeY(radius,height); + shape = worldImporter->createCapsuleShapeZ(radius,height); + shape = worldImporter->createBoxShape(halfExtents); + #endif + if (compound && compound->getNumChildShapes()) + { + shape = compound; + } + + if (shape) + { + int collisionShapeUid = m_data->m_userCollisionShapeHandles.allocHandle(); + InternalCollisionShapeHandle* handle = m_data->m_userCollisionShapeHandles.getHandle(collisionShapeUid); + handle->m_collisionShape = shape; + for (int i=0;im_urdfCollisionObjects.push_back(urdfCollisionObjects[i]); + } + serverStatusOut.m_createCollisionShapeResultArgs.m_collisionShapeUniqueId = collisionShapeUid; + m_data->m_worldImporters.push_back(worldImporter); + serverStatusOut.m_type = CMD_CREATE_COLLISION_SHAPE_COMPLETED; + } else + { + delete worldImporter; + } + + + break; + } + case CMD_CREATE_VISUAL_SHAPE: + { + hasStatus = true; + serverStatusOut.m_type = CMD_CREATE_VISUAL_SHAPE_FAILED; + break; + } + case CMD_CREATE_MULTI_BODY: + { + hasStatus = true; + serverStatusOut.m_type = CMD_CREATE_MULTI_BODY_FAILED; + if (clientCmd.m_createMultiBodyArgs.m_baseLinkIndex>=0) + { + m_data->m_sdfRecentLoadedBodies.clear(); + + #if 0 + struct UrdfModel + { + std::string m_name; + std::string m_sourceFile; + btTransform m_rootTransformInWorld; + btHashMap m_materials; + btHashMap m_links; + btHashMap m_joints; + + btArray m_rootLinks; + bool m_overrideFixedBase; + + UrdfModel() + + clientCmd.m_createMultiBodyArgs. + + char m_bodyName[1024]; + int m_baseLinkIndex; + + double m_baseWorldPosition[3]; + double m_baseWorldOrientation[4]; + + UrdfModel tmpModel; + tmpModel.m_bodyName = + #endif + + ProgrammaticUrdfInterface u2b(clientCmd.m_createMultiBodyArgs, m_data); + + bool useMultiBody = true; + if (clientCmd.m_updateFlags & MULT_BODY_USE_MAXIMAL_COORDINATES) + { + useMultiBody = false; + } + + int flags = 0; + bool ok = processImportedObjects("memory", bufferServerToClient, bufferSizeInBytes, useMultiBody, flags, u2b); + + if (ok) + { + int bodyUniqueId = -1; + + if (m_data->m_sdfRecentLoadedBodies.size()==1) + { + bodyUniqueId = m_data->m_sdfRecentLoadedBodies[0]; + } + m_data->m_sdfRecentLoadedBodies.clear(); + if (bodyUniqueId>=0) + { + m_data->m_guiHelper->autogenerateGraphicsObjects(this->m_data->m_dynamicsWorld); + serverStatusOut.m_type = CMD_CREATE_MULTI_BODY_COMPLETED; + + int streamSizeInBytes = createBodyInfoStream(bodyUniqueId, bufferServerToClient, bufferSizeInBytes); + if (m_data->m_urdfLinkNameMapper.size()) + { + serverStatusOut.m_numDataStreamBytes = m_data->m_urdfLinkNameMapper.at(m_data->m_urdfLinkNameMapper.size()-1)->m_memSerializer->getCurrentBufferSize(); + } + serverStatusOut.m_dataStreamArguments.m_bodyUniqueId = bodyUniqueId; + InternalBodyData* body = m_data->m_bodyHandles.getHandle(bodyUniqueId); + strcpy(serverStatusOut.m_dataStreamArguments.m_bodyName, body->m_bodyName.c_str()); + } + } + + //ConvertURDF2Bullet(u2b,creation, rootTrans,m_data->m_dynamicsWorld,useMultiBody,u2b.getPathPrefix(),flags); + + + } + break; + } case CMD_LOAD_URDF: { BT_PROFILE("CMD_LOAD_URDF"); @@ -3212,25 +4021,33 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm bool useMultiBody=(clientCmd.m_updateFlags & URDF_ARGS_USE_MULTIBODY) ? (urdfArgs.m_useMultiBody!=0) : true; bool useFixedBase = (clientCmd.m_updateFlags & URDF_ARGS_USE_FIXED_BASE) ? (urdfArgs.m_useFixedBase!=0): false; int bodyUniqueId; + btScalar globalScaling = 1.f; + if (clientCmd.m_updateFlags & URDF_ARGS_USE_GLOBAL_SCALING) + { + globalScaling = urdfArgs.m_globalScaling; + } //load the actual URDF and send a report: completed or failed bool completedOk = loadUrdf(urdfArgs.m_urdfFileName, initialPos,initialOrn, - useMultiBody, useFixedBase,&bodyUniqueId, bufferServerToClient, bufferSizeInBytes, urdfFlags); + useMultiBody, useFixedBase,&bodyUniqueId, bufferServerToClient, bufferSizeInBytes, urdfFlags, globalScaling); - if (completedOk) + if (completedOk && bodyUniqueId>=0) { + m_data->m_guiHelper->autogenerateGraphicsObjects(this->m_data->m_dynamicsWorld); serverStatusOut.m_type = CMD_URDF_LOADING_COMPLETED; + int streamSizeInBytes = createBodyInfoStream(bodyUniqueId, bufferServerToClient, bufferSizeInBytes); + if (m_data->m_urdfLinkNameMapper.size()) { serverStatusOut.m_numDataStreamBytes = m_data->m_urdfLinkNameMapper.at(m_data->m_urdfLinkNameMapper.size()-1)->m_memSerializer->getCurrentBufferSize(); } serverStatusOut.m_dataStreamArguments.m_bodyUniqueId = bodyUniqueId; - InteralBodyData* body = m_data->m_bodyHandles.getHandle(bodyUniqueId); + InternalBodyData* body = m_data->m_bodyHandles.getHandle(bodyUniqueId); strcpy(serverStatusOut.m_dataStreamArguments.m_bodyName, body->m_bodyName.c_str()); hasStatus = true; @@ -3247,6 +4064,8 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm } case CMD_LOAD_BUNNY: { + serverStatusOut.m_type = CMD_UNKNOWN_COMMAND_FLUSHED; + hasStatus = true; #ifdef USE_SOFT_BODY_MULTI_BODY_DYNAMICS_WORLD double scale = 0.1; double mass = 0.1; @@ -3287,6 +4106,7 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm psb->getCollisionShape()->setMargin(collisionMargin); m_data->m_dynamicsWorld->addSoftBody(psb); + serverStatusOut.m_type = CMD_CLIENT_COMMAND_COMPLETED; #endif break; } @@ -3299,7 +4119,7 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm b3Printf("Processed CMD_CREATE_SENSOR"); } int bodyUniqueId = clientCmd.m_createSensorArguments.m_bodyUniqueId; - InteralBodyData* body = m_data->m_bodyHandles.getHandle(bodyUniqueId); + InternalBodyData* body = m_data->m_bodyHandles.getHandle(bodyUniqueId); if (body && body->m_multiBody) { btMultiBody* mb = body->m_multiBody; @@ -3419,7 +4239,7 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm } int bodyUniqueId = clientCmd.m_sendDesiredStateCommandArgument.m_bodyUniqueId; - InteralBodyData* body = m_data->m_bodyHandles.getHandle(bodyUniqueId); + InternalBodyData* body = m_data->m_bodyHandles.getHandle(bodyUniqueId); if (body && body->m_multiBody) { @@ -3603,6 +4423,105 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm hasStatus = true; break; } + case CMD_REQUEST_COLLISION_INFO: + { + SharedMemoryStatus& serverCmd = serverStatusOut; + serverStatusOut.m_type = CMD_REQUEST_COLLISION_INFO_FAILED; + hasStatus=true; + int bodyUniqueId = clientCmd.m_requestCollisionInfoArgs.m_bodyUniqueId; + InternalBodyData* body = m_data->m_bodyHandles.getHandle(bodyUniqueId); + + + if (body && body->m_multiBody) + { + btMultiBody* mb = body->m_multiBody; + serverStatusOut.m_type = CMD_REQUEST_COLLISION_INFO_COMPLETED; + serverCmd.m_sendCollisionInfoArgs.m_numLinks = body->m_multiBody->getNumLinks(); + serverCmd.m_sendCollisionInfoArgs.m_rootWorldAABBMin[0] = 0; + serverCmd.m_sendCollisionInfoArgs.m_rootWorldAABBMin[1] = 0; + serverCmd.m_sendCollisionInfoArgs.m_rootWorldAABBMin[2] = 0; + + serverCmd.m_sendCollisionInfoArgs.m_rootWorldAABBMax[0] = -1; + serverCmd.m_sendCollisionInfoArgs.m_rootWorldAABBMax[1] = -1; + serverCmd.m_sendCollisionInfoArgs.m_rootWorldAABBMax[2] = -1; + + if (body->m_multiBody->getBaseCollider()) + { + btTransform tr; + tr.setOrigin(mb->getBasePos()); + tr.setRotation(mb->getWorldToBaseRot().inverse()); + + btVector3 aabbMin,aabbMax; + body->m_multiBody->getBaseCollider()->getCollisionShape()->getAabb(tr,aabbMin,aabbMax); + serverCmd.m_sendCollisionInfoArgs.m_rootWorldAABBMin[0] = aabbMin[0]; + serverCmd.m_sendCollisionInfoArgs.m_rootWorldAABBMin[1] = aabbMin[1]; + serverCmd.m_sendCollisionInfoArgs.m_rootWorldAABBMin[2] = aabbMin[2]; + + serverCmd.m_sendCollisionInfoArgs.m_rootWorldAABBMax[0] = aabbMax[0]; + serverCmd.m_sendCollisionInfoArgs.m_rootWorldAABBMax[1] = aabbMax[1]; + serverCmd.m_sendCollisionInfoArgs.m_rootWorldAABBMax[2] = aabbMax[2]; + } + for (int l=0;lgetNumLinks();l++) + { + serverCmd.m_sendCollisionInfoArgs.m_linkWorldAABBsMin[3*l+0] = 0; + serverCmd.m_sendCollisionInfoArgs.m_linkWorldAABBsMin[3*l+1] = 0; + serverCmd.m_sendCollisionInfoArgs.m_linkWorldAABBsMin[3*l+2] = 0; + + serverCmd.m_sendCollisionInfoArgs.m_linkWorldAABBsMax[3*l+0] = -1; + serverCmd.m_sendCollisionInfoArgs.m_linkWorldAABBsMax[3*l+1] = -1; + serverCmd.m_sendCollisionInfoArgs.m_linkWorldAABBsMax[3*l+2] = -1; + + + + if (body->m_multiBody->getLink(l).m_collider) + { + btVector3 aabbMin,aabbMax; + body->m_multiBody->getLinkCollider(l)->getCollisionShape()->getAabb(mb->getLink(l).m_cachedWorldTransform,aabbMin,aabbMax); + + serverCmd.m_sendCollisionInfoArgs.m_linkWorldAABBsMin[3*l+0] = aabbMin[0]; + serverCmd.m_sendCollisionInfoArgs.m_linkWorldAABBsMin[3*l+1] = aabbMin[1]; + serverCmd.m_sendCollisionInfoArgs.m_linkWorldAABBsMin[3*l+2] = aabbMin[2]; + serverCmd.m_sendCollisionInfoArgs.m_linkWorldAABBsMax[3*l+0] = aabbMax[0]; + serverCmd.m_sendCollisionInfoArgs.m_linkWorldAABBsMax[3*l+1] = aabbMax[1]; + serverCmd.m_sendCollisionInfoArgs.m_linkWorldAABBsMax[3*l+2] = aabbMax[2]; + } + + } + } + else + { + if (body && body->m_rigidBody) + { + btRigidBody* rb = body->m_rigidBody; + SharedMemoryStatus& serverCmd = serverStatusOut; + serverStatusOut.m_type = CMD_REQUEST_COLLISION_INFO_COMPLETED; + serverCmd.m_sendCollisionInfoArgs.m_numLinks = 0; + serverCmd.m_sendCollisionInfoArgs.m_rootWorldAABBMin[0] = 0; + serverCmd.m_sendCollisionInfoArgs.m_rootWorldAABBMin[1] = 0; + serverCmd.m_sendCollisionInfoArgs.m_rootWorldAABBMin[2] = 0; + + serverCmd.m_sendCollisionInfoArgs.m_rootWorldAABBMax[0] = -1; + serverCmd.m_sendCollisionInfoArgs.m_rootWorldAABBMax[1] = -1; + serverCmd.m_sendCollisionInfoArgs.m_rootWorldAABBMax[2] = -1; + if (rb->getCollisionShape()) + { + btTransform tr = rb->getWorldTransform(); + + btVector3 aabbMin,aabbMax; + rb->getCollisionShape()->getAabb(tr,aabbMin,aabbMax); + serverCmd.m_sendCollisionInfoArgs.m_rootWorldAABBMin[0] = aabbMin[0]; + serverCmd.m_sendCollisionInfoArgs.m_rootWorldAABBMin[1] = aabbMin[1]; + serverCmd.m_sendCollisionInfoArgs.m_rootWorldAABBMin[2] = aabbMin[2]; + + serverCmd.m_sendCollisionInfoArgs.m_rootWorldAABBMax[0] = aabbMax[0]; + serverCmd.m_sendCollisionInfoArgs.m_rootWorldAABBMax[1] = aabbMax[1]; + serverCmd.m_sendCollisionInfoArgs.m_rootWorldAABBMax[2] = aabbMax[2]; + } + } + } + break; + } + case CMD_REQUEST_ACTUAL_STATE: { BT_PROFILE("CMD_REQUEST_ACTUAL_STATE"); @@ -3611,7 +4530,8 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm b3Printf("Sending the actual state (Q,U)"); } int bodyUniqueId = clientCmd.m_requestActualStateInformationCommandArgument.m_bodyUniqueId; - InteralBodyData* body = m_data->m_bodyHandles.getHandle(bodyUniqueId); + InternalBodyData* body = m_data->m_bodyHandles.getHandle(bodyUniqueId); + if (body && body->m_multiBody) { @@ -3620,6 +4540,8 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm serverStatusOut.m_type = CMD_ACTUAL_STATE_UPDATE_COMPLETED; serverCmd.m_sendActualStateArgs.m_bodyUniqueId = bodyUniqueId; + serverCmd.m_sendActualStateArgs.m_numLinks = body->m_multiBody->getNumLinks(); + int totalDegreeOfFreedomQ = 0; int totalDegreeOfFreedomU = 0; @@ -3654,7 +4576,7 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm serverCmd.m_sendActualStateArgs.m_rootLocalInertialFrame[6] = body->m_rootLocalInertialFrame.getRotation()[3]; - + //base position in world space, carthesian serverCmd.m_sendActualStateArgs.m_actualStateQ[0] = tr.getOrigin()[0]; @@ -3756,6 +4678,7 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm serverCmd.m_sendActualStateArgs.m_linkState[l*7+5] = linkCOMRotation.z(); serverCmd.m_sendActualStateArgs.m_linkState[l*7+6] = linkCOMRotation.w(); + btVector3 worldLinVel(0,0,0); btVector3 worldAngVel(0,0,0); @@ -3800,6 +4723,8 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm serverCmd.m_type = CMD_ACTUAL_STATE_UPDATE_COMPLETED; serverCmd.m_sendActualStateArgs.m_bodyUniqueId = bodyUniqueId; + serverCmd.m_sendActualStateArgs.m_numLinks = 0; + int totalDegreeOfFreedomQ = 0; int totalDegreeOfFreedomU = 0; @@ -3912,52 +4837,191 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm { BT_PROFILE("CMD_CHANGE_DYNAMICS_INFO"); - if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_MASS) - { - int bodyUniqueId = clientCmd.m_changeDynamicsInfoArgs.m_bodyUniqueId; - int linkIndex = clientCmd.m_changeDynamicsInfoArgs.m_linkIndex; - double mass = clientCmd.m_changeDynamicsInfoArgs.m_mass; - btAssert(bodyUniqueId >= 0); - btAssert(linkIndex >= -1); + int bodyUniqueId = clientCmd.m_changeDynamicsInfoArgs.m_bodyUniqueId; + int linkIndex = clientCmd.m_changeDynamicsInfoArgs.m_linkIndex; + double mass = clientCmd.m_changeDynamicsInfoArgs.m_mass; + double lateralFriction = clientCmd.m_changeDynamicsInfoArgs.m_lateralFriction; + double spinningFriction = clientCmd.m_changeDynamicsInfoArgs.m_spinningFriction; + double rollingFriction = clientCmd.m_changeDynamicsInfoArgs.m_rollingFriction; + double restitution = clientCmd.m_changeDynamicsInfoArgs.m_restitution; + btAssert(bodyUniqueId >= 0); + btAssert(linkIndex >= -1); - InteralBodyData* body = m_data->m_bodyHandles.getHandle(bodyUniqueId); - if (body && body->m_multiBody) + InternalBodyData* body = m_data->m_bodyHandles.getHandle(bodyUniqueId); + + if (body && body->m_multiBody) + { + btMultiBody* mb = body->m_multiBody; + if (linkIndex == -1) { - btMultiBody* mb = body->m_multiBody; - if (linkIndex == -1) + if (mb->getBaseCollider()) { - mb->setBaseMass(mass); + if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_RESTITUTION) + { + mb->getBaseCollider()->setRestitution(restitution); + } + if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_LINEAR_DAMPING) + { + mb->setLinearDamping(clientCmd.m_changeDynamicsInfoArgs.m_linearDamping); + } + if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_ANGULAR_DAMPING) + { + mb->setLinearDamping(clientCmd.m_changeDynamicsInfoArgs.m_angularDamping); + } + + if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_CONTACT_STIFFNESS_AND_DAMPING) + { + mb->getBaseCollider()->setContactStiffnessAndDamping(clientCmd.m_changeDynamicsInfoArgs.m_contactStiffness, clientCmd.m_changeDynamicsInfoArgs.m_contactDamping); + } + if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_LATERAL_FRICTION) + { + mb->getBaseCollider()->setFriction(lateralFriction); + } + if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_SPINNING_FRICTION) + { + mb->getBaseCollider()->setSpinningFriction(spinningFriction); + } + if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_ROLLING_FRICTION) + { + mb->getBaseCollider()->setRollingFriction(rollingFriction); + } + + if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_FRICTION_ANCHOR) + { + if (clientCmd.m_changeDynamicsInfoArgs.m_frictionAnchor) + { + mb->getBaseCollider()->setCollisionFlags(mb->getBaseCollider()->getCollisionFlags() | btCollisionObject::CF_HAS_FRICTION_ANCHOR); + } else + { + mb->getBaseCollider()->setCollisionFlags(mb->getBaseCollider()->getCollisionFlags() & ~btCollisionObject::CF_HAS_FRICTION_ANCHOR); + } + } } - else + if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_MASS) { - mb->getLink(linkIndex).m_mass = mass; + mb->setBaseMass(mass); + if (mb->getBaseCollider() && mb->getBaseCollider()->getCollisionShape()) + { + btVector3 localInertia; + mb->getBaseCollider()->getCollisionShape()->calculateLocalInertia(mass,localInertia); + mb->setBaseInertia(localInertia); + } + } + } + else + { + if (linkIndex >= 0 && linkIndex < mb->getNumLinks()) + { + if (mb->getLinkCollider(linkIndex)) + { + if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_RESTITUTION) + { + mb->getLinkCollider(linkIndex)->setRestitution(restitution); + } + if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_SPINNING_FRICTION) + { + mb->getLinkCollider(linkIndex)->setSpinningFriction(spinningFriction); + } + if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_ROLLING_FRICTION) + { + mb->getLinkCollider(linkIndex)->setRollingFriction(rollingFriction); + } + + if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_FRICTION_ANCHOR) + { + if (clientCmd.m_changeDynamicsInfoArgs.m_frictionAnchor) + { + mb->getLinkCollider(linkIndex)->setCollisionFlags(mb->getLinkCollider(linkIndex)->getCollisionFlags() | btCollisionObject::CF_HAS_FRICTION_ANCHOR); + } else + { + mb->getLinkCollider(linkIndex)->setCollisionFlags(mb->getLinkCollider(linkIndex)->getCollisionFlags() & ~btCollisionObject::CF_HAS_FRICTION_ANCHOR); + } + } + + + if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_LATERAL_FRICTION) + { + mb->getLinkCollider(linkIndex)->setFriction(lateralFriction); + } + + if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_CONTACT_STIFFNESS_AND_DAMPING) + { + mb->getLinkCollider(linkIndex)->setContactStiffnessAndDamping(clientCmd.m_changeDynamicsInfoArgs.m_contactStiffness, clientCmd.m_changeDynamicsInfoArgs.m_contactDamping); + } + + + } + if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_MASS) + { + mb->getLink(linkIndex).m_mass = mass; + if (mb->getLinkCollider(linkIndex) && mb->getLinkCollider(linkIndex)->getCollisionShape()) + { + btVector3 localInertia; + mb->getLinkCollider(linkIndex)->getCollisionShape()->calculateLocalInertia(mass,localInertia); + mb->getLink(linkIndex).m_inertiaLocal = localInertia; + } + } + } + } + } else + { + if (body && body->m_rigidBody) + { + if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_LINEAR_DAMPING) + { + btScalar angDamping = body->m_rigidBody->getAngularDamping(); + body->m_rigidBody->setDamping(clientCmd.m_changeDynamicsInfoArgs.m_linearDamping,angDamping); + } + if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_ANGULAR_DAMPING) + { + btScalar linDamping = body->m_rigidBody->getLinearDamping(); + body->m_rigidBody->setDamping(linDamping, clientCmd.m_changeDynamicsInfoArgs.m_angularDamping); + } + + if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_CONTACT_STIFFNESS_AND_DAMPING) + { + body->m_rigidBody->setContactStiffnessAndDamping(clientCmd.m_changeDynamicsInfoArgs.m_contactStiffness, clientCmd.m_changeDynamicsInfoArgs.m_contactDamping); + } + if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_RESTITUTION) + { + body->m_rigidBody->setRestitution(restitution); + } + if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_LATERAL_FRICTION) + { + body->m_rigidBody->setFriction(lateralFriction); + } + if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_SPINNING_FRICTION) + { + body->m_rigidBody->setSpinningFriction(spinningFriction); + } + if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_ROLLING_FRICTION) + { + body->m_rigidBody->setRollingFriction(rollingFriction); + } + + if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_FRICTION_ANCHOR) + { + if (clientCmd.m_changeDynamicsInfoArgs.m_frictionAnchor) + { + body->m_rigidBody->setCollisionFlags(body->m_rigidBody->getCollisionFlags() | btCollisionObject::CF_HAS_FRICTION_ANCHOR); + } else + { + body->m_rigidBody->setCollisionFlags(body->m_rigidBody->getCollisionFlags() & ~btCollisionObject::CF_HAS_FRICTION_ANCHOR); + } + } + + if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_MASS) + { + btVector3 localInertia; + if (body->m_rigidBody->getCollisionShape()) + { + body->m_rigidBody->getCollisionShape()->calculateLocalInertia(mass,localInertia); + } + body->m_rigidBody->setMassProps(mass,localInertia); } } } - if (clientCmd.m_updateFlags & CHANGE_DYNAMICS_INFO_SET_LATERAL_FRICTION) - { - int bodyUniqueId = clientCmd.m_changeDynamicsInfoArgs.m_bodyUniqueId; - int linkIndex = clientCmd.m_changeDynamicsInfoArgs.m_linkIndex; - double lateralFriction = clientCmd.m_changeDynamicsInfoArgs.m_lateralFriction; - btAssert(bodyUniqueId >= 0); - btAssert(linkIndex >= -1); - - InteralBodyData* body = m_data->m_bodyHandles.getHandle(bodyUniqueId); - if (body && body->m_multiBody) - { - btMultiBody* mb = body->m_multiBody; - if (linkIndex == -1) - { - mb->getBaseCollider()->setFriction(lateralFriction); - } - else - { - mb->getLinkCollider(linkIndex)->setFriction(lateralFriction); - } - } - } - SharedMemoryStatus& serverCmd =serverStatusOut; serverCmd.m_type = CMD_CLIENT_COMMAND_COMPLETED; @@ -3969,7 +5033,7 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm { int bodyUniqueId = clientCmd.m_getDynamicsInfoArgs.m_bodyUniqueId; int linkIndex = clientCmd.m_getDynamicsInfoArgs.m_linkIndex; - InteralBodyData* body = m_data->m_bodyHandles.getHandle(bodyUniqueId); + InternalBodyData* body = m_data->m_bodyHandles.getHandle(bodyUniqueId); if (body && body->m_multiBody) { SharedMemoryStatus& serverCmd = serverStatusOut; @@ -3984,7 +5048,15 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm else { serverCmd.m_dynamicsInfo.m_mass = mb->getLinkMass(linkIndex); - serverCmd.m_dynamicsInfo.m_lateralFrictionCoeff = mb->getLinkCollider(linkIndex)->getFriction(); + if (mb->getLinkCollider(linkIndex)) + { + serverCmd.m_dynamicsInfo.m_lateralFrictionCoeff = mb->getLinkCollider(linkIndex)->getFriction(); + } + else + { + b3Warning("The dynamic info requested is not available"); + serverCmd.m_type = CMD_GET_DYNAMICS_INFO_FAILED; + } } hasStatus = true; } @@ -4014,7 +5086,6 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm if (clientCmd.m_updateFlags & SIM_PARAM_UPDATE_INTERNAL_SIMULATION_FLAGS) { //these flags are for internal/temporary/easter-egg/experimental demo purposes, use at own risk - gCreateDefaultRobotAssets = (clientCmd.m_physSimParamArgs.m_internalSimFlags & SIM_PARAM_INTERNAL_CREATE_ROBOT_ASSETS); gInternalSimFlags = clientCmd.m_physSimParamArgs.m_internalSimFlags; } @@ -4038,11 +5109,7 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm { gContactBreakingThreshold = clientCmd.m_physSimParamArgs.m_contactBreakingThreshold; } - if (clientCmd.m_updateFlags&SIM_PARAM_MAX_CMD_PER_1MS) - { - gMaxNumCmdPer1ms = clientCmd.m_physSimParamArgs.m_maxNumCmdPer1ms; - } - + if (clientCmd.m_updateFlags&SIM_PARAM_UPDATE_COLLISION_FILTER_MODE) { m_data->m_broadphaseCollisionFilterCallback->m_filterMode = clientCmd.m_physSimParamArgs.m_collisionFilterMode; @@ -4068,6 +5135,24 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm m_data->m_dynamicsWorld->getSolverInfo().m_erp2 = clientCmd.m_physSimParamArgs.m_defaultContactERP; } + if (clientCmd.m_updateFlags&SIM_PARAM_UPDATE_DEFAULT_NON_CONTACT_ERP) + { + m_data->m_dynamicsWorld->getSolverInfo().m_erp = clientCmd.m_physSimParamArgs.m_defaultNonContactERP; + } + + if (clientCmd.m_updateFlags&SIM_PARAM_UPDATE_DEFAULT_FRICTION_ERP) + { + m_data->m_dynamicsWorld->getSolverInfo().m_frictionERP = clientCmd.m_physSimParamArgs.m_frictionERP; + } + + + if (clientCmd.m_updateFlags&SIM_PARAM_UPDATE_RESTITUTION_VELOCITY_THRESHOLD) + { + m_data->m_dynamicsWorld->getSolverInfo().m_restitutionVelocityThreshold = clientCmd.m_physSimParamArgs.m_restitutionVelocityThreshold; + } + + + if (clientCmd.m_updateFlags&SIM_PARAM_ENABLE_FILE_CACHING) { b3EnableFileCaching(clientCmd.m_physSimParamArgs.m_enableFileCaching); @@ -4089,7 +5174,7 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm b3Printf("Server Init Pose not implemented yet"); } int bodyUniqueId = clientCmd.m_initPoseArgs.m_bodyUniqueId; - InteralBodyData* body = m_data->m_bodyHandles.getHandle(bodyUniqueId); + InternalBodyData* body = m_data->m_bodyHandles.getHandle(bodyUniqueId); btVector3 baseLinVel(0, 0, 0); btVector3 baseAngVel(0, 0, 0); @@ -4493,7 +5578,11 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm serverCmd.m_visualizerCameraResultArgs.m_camUp, serverCmd.m_visualizerCameraResultArgs.m_camForward, serverCmd.m_visualizerCameraResultArgs.m_horizontal, - serverCmd.m_visualizerCameraResultArgs.m_vertical); + serverCmd.m_visualizerCameraResultArgs.m_vertical, + &serverCmd.m_visualizerCameraResultArgs.m_yaw, + &serverCmd.m_visualizerCameraResultArgs.m_pitch, + &serverCmd.m_visualizerCameraResultArgs.m_dist, + serverCmd.m_visualizerCameraResultArgs.m_target); serverCmd.m_type = result ? CMD_REQUEST_OPENGL_VISUALIZER_CAMERA_COMPLETED: CMD_REQUEST_OPENGL_VISUALIZER_CAMERA_FAILED; hasStatus = true; break; @@ -4514,8 +5603,8 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm if (clientCmd.m_updateFlags&COV_SET_CAMERA_VIEW_MATRIX) { m_data->m_guiHelper->resetCamera( clientCmd.m_configureOpenGLVisualizerArguments.m_cameraDistance, - clientCmd.m_configureOpenGLVisualizerArguments.m_cameraPitch, clientCmd.m_configureOpenGLVisualizerArguments.m_cameraYaw, + clientCmd.m_configureOpenGLVisualizerArguments.m_cameraPitch, clientCmd.m_configureOpenGLVisualizerArguments.m_cameraTargetPosition[0], clientCmd.m_configureOpenGLVisualizerArguments.m_cameraTargetPosition[1], clientCmd.m_configureOpenGLVisualizerArguments.m_cameraTargetPosition[2]); @@ -4679,7 +5768,7 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm if (bodyUniqueIdA >= 0) { - InteralBodyData* bodyA = m_data->m_bodyHandles.getHandle(bodyUniqueIdA); + InternalBodyData* bodyA = m_data->m_bodyHandles.getHandle(bodyUniqueIdA); if (bodyA) { if (bodyA->m_multiBody) @@ -4713,7 +5802,7 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm } if (bodyUniqueIdB>=0) { - InteralBodyData* bodyB = m_data->m_bodyHandles.getHandle(bodyUniqueIdB); + InternalBodyData* bodyB = m_data->m_bodyHandles.getHandle(bodyUniqueIdB); if (bodyB) { if (bodyB->m_multiBody) @@ -4982,7 +6071,7 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm } for (int i = 0; i < clientCmd.m_externalForceArguments.m_numForcesAndTorques; ++i) { - InteralBodyData* body = m_data->m_bodyHandles.getHandle(clientCmd.m_externalForceArguments.m_bodyUniqueIds[i]); + InternalBodyData* body = m_data->m_bodyHandles.getHandle(clientCmd.m_externalForceArguments.m_bodyUniqueIds[i]); bool isLinkFrame = ((clientCmd.m_externalForceArguments.m_forceFlags[i] & EF_LINK_FRAME) != 0); if (body && body->m_multiBody) @@ -4991,28 +6080,30 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm if ((clientCmd.m_externalForceArguments.m_forceFlags[i] & EF_FORCE)!=0) { - btVector3 forceLocal(clientCmd.m_externalForceArguments.m_forcesAndTorques[i*3+0], + btVector3 tmpForce(clientCmd.m_externalForceArguments.m_forcesAndTorques[i*3+0], clientCmd.m_externalForceArguments.m_forcesAndTorques[i*3+1], clientCmd.m_externalForceArguments.m_forcesAndTorques[i*3+2]); - btVector3 positionLocal( + btVector3 tmpPosition( clientCmd.m_externalForceArguments.m_positions[i*3+0], clientCmd.m_externalForceArguments.m_positions[i*3+1], clientCmd.m_externalForceArguments.m_positions[i*3+2]); + if (clientCmd.m_externalForceArguments.m_linkIds[i] == -1) { - btVector3 forceWorld = isLinkFrame ? forceLocal : mb->getBaseWorldTransform().getBasis()*forceLocal; - btVector3 relPosWorld = isLinkFrame ? positionLocal : mb->getBaseWorldTransform().getBasis()*positionLocal; + btVector3 forceWorld = isLinkFrame ? mb->getBaseWorldTransform().getBasis()*tmpForce : tmpForce; + btVector3 relPosWorld = isLinkFrame ? mb->getBaseWorldTransform().getBasis()*tmpPosition : tmpPosition - mb->getBaseWorldTransform().getOrigin(); mb->addBaseForce(forceWorld); mb->addBaseTorque(relPosWorld.cross(forceWorld)); //b3Printf("apply base force of %f,%f,%f at %f,%f,%f\n", forceWorld[0],forceWorld[1],forceWorld[2],positionLocal[0],positionLocal[1],positionLocal[2]); } else { int link = clientCmd.m_externalForceArguments.m_linkIds[i]; - btVector3 forceWorld = mb->getLink(link).m_cachedWorldTransform.getBasis()*forceLocal; - btVector3 relPosWorld = mb->getLink(link).m_cachedWorldTransform.getBasis()*positionLocal; - mb->addLinkForce(link, forceWorld); - mb->addLinkTorque(link,relPosWorld.cross(forceWorld)); + + btVector3 forceWorld = isLinkFrame ? mb->getLink(link).m_cachedWorldTransform.getBasis()*tmpForce : tmpForce; + btVector3 relPosWorld = isLinkFrame ? mb->getLink(link).m_cachedWorldTransform.getBasis()*tmpPosition : tmpPosition - mb->getBaseWorldTransform().getOrigin(); + mb->addLinkForce(link, forceWorld); + mb->addLinkTorque(link,relPosWorld.cross(forceWorld)); //b3Printf("apply link force of %f,%f,%f at %f,%f,%f\n", forceWorld[0],forceWorld[1],forceWorld[2], positionLocal[0],positionLocal[1],positionLocal[2]); } } @@ -5188,12 +6279,12 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm if (clientCmd.m_updateFlags & USER_CONSTRAINT_ADD_CONSTRAINT) { btScalar defaultMaxForce = 500.0; - InteralBodyData* parentBody = m_data->m_bodyHandles.getHandle(clientCmd.m_userConstraintArguments.m_parentBodyIndex); + InternalBodyData* parentBody = m_data->m_bodyHandles.getHandle(clientCmd.m_userConstraintArguments.m_parentBodyIndex); if (parentBody && parentBody->m_multiBody) { if ((clientCmd.m_userConstraintArguments.m_parentJointIndex>=-1) && clientCmd.m_userConstraintArguments.m_parentJointIndex < parentBody->m_multiBody->getNumLinks()) { - InteralBodyData* childBody = clientCmd.m_userConstraintArguments.m_childBodyIndex>=0 ? m_data->m_bodyHandles.getHandle(clientCmd.m_userConstraintArguments.m_childBodyIndex):0; + InternalBodyData* childBody = clientCmd.m_userConstraintArguments.m_childBodyIndex>=0 ? m_data->m_bodyHandles.getHandle(clientCmd.m_userConstraintArguments.m_childBodyIndex):0; //also create a constraint with just a single multibody/rigid body without child //if (childBody) { @@ -5202,7 +6293,31 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm btMatrix3x3 frameInParent(btQuaternion(clientCmd.m_userConstraintArguments.m_parentFrame[3], clientCmd.m_userConstraintArguments.m_parentFrame[4], clientCmd.m_userConstraintArguments.m_parentFrame[5], clientCmd.m_userConstraintArguments.m_parentFrame[6])); btMatrix3x3 frameInChild(btQuaternion(clientCmd.m_userConstraintArguments.m_childFrame[3], clientCmd.m_userConstraintArguments.m_childFrame[4], clientCmd.m_userConstraintArguments.m_childFrame[5], clientCmd.m_userConstraintArguments.m_childFrame[6])); btVector3 jointAxis(clientCmd.m_userConstraintArguments.m_jointAxis[0], clientCmd.m_userConstraintArguments.m_jointAxis[1], clientCmd.m_userConstraintArguments.m_jointAxis[2]); - if (clientCmd.m_userConstraintArguments.m_jointType == eFixedType) + + + + if (clientCmd.m_userConstraintArguments.m_jointType == eGearType) + { + if (childBody && childBody->m_multiBody) + { + if ((clientCmd.m_userConstraintArguments.m_childJointIndex>=-1) && (clientCmd.m_userConstraintArguments.m_childJointIndex m_multiBody->getNumLinks())) + { + btMultiBodyGearConstraint* multibodyGear = new btMultiBodyGearConstraint(parentBody->m_multiBody,clientCmd.m_userConstraintArguments.m_parentJointIndex,childBody->m_multiBody,clientCmd.m_userConstraintArguments.m_childJointIndex,pivotInParent,pivotInChild,frameInParent,frameInChild); + multibodyGear->setMaxAppliedImpulse(defaultMaxForce); + m_data->m_dynamicsWorld->addMultiBodyConstraint(multibodyGear); + InteralUserConstraintData userConstraintData; + userConstraintData.m_mbConstraint = multibodyGear; + int uid = m_data->m_userConstraintUIDGenerator++; + serverCmd.m_userConstraintResultArgs.m_userConstraintUniqueId = uid; + serverCmd.m_userConstraintResultArgs.m_maxAppliedForce = defaultMaxForce; + userConstraintData.m_userConstraintData = serverCmd.m_userConstraintResultArgs; + m_data->m_userConstraints.insert(uid,userConstraintData); + serverCmd.m_type = CMD_USER_CONSTRAINT_COMPLETED; + } + + } + } + else if (clientCmd.m_userConstraintArguments.m_jointType == eFixedType) { if (childBody && childBody->m_multiBody) { @@ -5320,7 +6435,48 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm } } + } + else + { + InternalBodyData* childBody = clientCmd.m_userConstraintArguments.m_childBodyIndex>=0 ? m_data->m_bodyHandles.getHandle(clientCmd.m_userConstraintArguments.m_childBodyIndex):0; + + if (parentBody && childBody) + { + if (parentBody->m_rigidBody) + { + if (clientCmd.m_userConstraintArguments.m_jointType == eGearType) + { + btRigidBody* childRb = childBody->m_rigidBody; + if (childRb) + { + btVector3 axisA(clientCmd.m_userConstraintArguments.m_jointAxis[0], + clientCmd.m_userConstraintArguments.m_jointAxis[1], + clientCmd.m_userConstraintArguments.m_jointAxis[2]); + + //for now we use the same local axis for both objects + btVector3 axisB(clientCmd.m_userConstraintArguments.m_jointAxis[0], + clientCmd.m_userConstraintArguments.m_jointAxis[1], + clientCmd.m_userConstraintArguments.m_jointAxis[2]); + + btScalar ratio=1; + btGearConstraint* gear = new btGearConstraint(*parentBody->m_rigidBody,*childRb, axisA,axisB,ratio); + m_data->m_dynamicsWorld->addConstraint(gear,true); + + InteralUserConstraintData userConstraintData; + userConstraintData.m_rbConstraint = gear; + int uid = m_data->m_userConstraintUIDGenerator++; + serverCmd.m_userConstraintResultArgs = clientCmd.m_userConstraintArguments; + serverCmd.m_userConstraintResultArgs.m_userConstraintUniqueId = uid; + serverCmd.m_userConstraintResultArgs.m_maxAppliedForce = defaultMaxForce; + userConstraintData.m_userConstraintData = serverCmd.m_userConstraintResultArgs; + m_data->m_userConstraints.insert(uid,userConstraintData); + + serverCmd.m_type = CMD_USER_CONSTRAINT_COMPLETED; + } + } + } } + } } if (clientCmd.m_updateFlags & USER_CONSTRAINT_CHANGE_CONSTRAINT) @@ -5361,10 +6517,34 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm userConstraintPtr->m_userConstraintData.m_maxAppliedForce = clientCmd.m_userConstraintArguments.m_maxAppliedForce; userConstraintPtr->m_mbConstraint->setMaxAppliedImpulse(maxImp); } + + if (clientCmd.m_updateFlags & USER_CONSTRAINT_CHANGE_GEAR_RATIO) + { + userConstraintPtr->m_mbConstraint->setGearRatio(clientCmd.m_userConstraintArguments.m_gearRatio); + } + if (clientCmd.m_updateFlags & USER_CONSTRAINT_CHANGE_GEAR_AUX_LINK) + { + userConstraintPtr->m_mbConstraint->setGearAuxLink(clientCmd.m_userConstraintArguments.m_gearAuxLink); + } + } if (userConstraintPtr->m_rbConstraint) { - //todo + if (clientCmd.m_updateFlags & USER_CONSTRAINT_CHANGE_MAX_FORCE) + { + btScalar maxImp = clientCmd.m_userConstraintArguments.m_maxAppliedForce*m_data->m_physicsDeltaTime; + userConstraintPtr->m_userConstraintData.m_maxAppliedForce = clientCmd.m_userConstraintArguments.m_maxAppliedForce; + //userConstraintPtr->m_rbConstraint->setMaxAppliedImpulse(maxImp); + } + + if (clientCmd.m_updateFlags & USER_CONSTRAINT_CHANGE_GEAR_RATIO) + { + if (userConstraintPtr->m_rbConstraint->getObjectType()==GEAR_CONSTRAINT_TYPE) + { + btGearConstraint* gear = (btGearConstraint*) userConstraintPtr->m_rbConstraint; + gear->setRatio(clientCmd.m_userConstraintArguments.m_gearRatio); + } + } } serverCmd.m_userConstraintResultArgs = clientCmd.m_userConstraintArguments; serverCmd.m_userConstraintResultArgs.m_userConstraintUniqueId = userConstraintUidChange; @@ -5387,7 +6567,9 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm } if (userConstraintPtr->m_rbConstraint) { - + m_data->m_dynamicsWorld->removeConstraint(userConstraintPtr->m_rbConstraint); + delete userConstraintPtr->m_rbConstraint; + m_data->m_userConstraints.remove(userConstraintUidRemove); } serverCmd.m_userConstraintResultArgs.m_userConstraintUniqueId = userConstraintUidRemove; serverCmd.m_type = CMD_REMOVE_USER_CONSTRAINT_COMPLETED; @@ -5605,16 +6787,21 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm BT_PROFILE("CMD_UPDATE_VISUAL_SHAPE"); SharedMemoryStatus& serverCmd = serverStatusOut; serverCmd.m_type = CMD_VISUAL_SHAPE_UPDATE_FAILED; - + InternalTextureHandle* texHandle = 0; + if (clientCmd.m_updateFlags & CMD_UPDATE_VISUAL_SHAPE_TEXTURE) { + texHandle = m_data->m_textureHandles.getHandle(clientCmd.m_updateVisualShapeDataArguments.m_textureUniqueId); + if (clientCmd.m_updateVisualShapeDataArguments.m_textureUniqueId>=0) { - m_data->m_visualConverter.activateShapeTexture(clientCmd.m_updateVisualShapeDataArguments.m_bodyUniqueId, clientCmd.m_updateVisualShapeDataArguments.m_jointIndex, clientCmd.m_updateVisualShapeDataArguments.m_shapeIndex, clientCmd.m_updateVisualShapeDataArguments.m_textureUniqueId); + if (texHandle) + { + m_data->m_visualConverter.activateShapeTexture(clientCmd.m_updateVisualShapeDataArguments.m_bodyUniqueId, clientCmd.m_updateVisualShapeDataArguments.m_jointIndex, clientCmd.m_updateVisualShapeDataArguments.m_shapeIndex, texHandle->m_tinyRendererTextureId); + } } } - if (clientCmd.m_updateFlags & CMD_UPDATE_VISUAL_SHAPE_RGBA_COLOR) { int bodyUniqueId = clientCmd.m_updateVisualShapeDataArguments.m_bodyUniqueId; int linkIndex = clientCmd.m_updateVisualShapeDataArguments.m_jointIndex; @@ -5628,9 +6815,25 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm { if (bodyHandle->m_multiBody->getBaseCollider()) { - //m_data->m_visualConverter.changeRGBAColor(...) int graphicsIndex = bodyHandle->m_multiBody->getBaseCollider()->getUserIndex(); - m_data->m_guiHelper->changeRGBAColor(graphicsIndex,clientCmd.m_updateVisualShapeDataArguments.m_rgbaColor); + if (clientCmd.m_updateFlags & CMD_UPDATE_VISUAL_SHAPE_TEXTURE) + { + if (texHandle) + { + int shapeIndex = m_data->m_guiHelper->getShapeIndexFromInstance(graphicsIndex); + m_data->m_guiHelper->replaceTexture(shapeIndex,texHandle->m_openglTextureId); + } + } + if (clientCmd.m_updateFlags & CMD_UPDATE_VISUAL_SHAPE_RGBA_COLOR) + { + m_data->m_visualConverter.changeRGBAColor(bodyUniqueId,linkIndex,clientCmd.m_updateVisualShapeDataArguments.m_rgbaColor); + m_data->m_guiHelper->changeRGBAColor(graphicsIndex,clientCmd.m_updateVisualShapeDataArguments.m_rgbaColor); + } + if (clientCmd.m_updateFlags & CMD_UPDATE_VISUAL_SHAPE_SPECULAR_COLOR) + { + m_data->m_guiHelper->changeSpecularColor(graphicsIndex,clientCmd.m_updateVisualShapeDataArguments.m_specularColor); + } + } } else { @@ -5638,9 +6841,25 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm { if (bodyHandle->m_multiBody->getLink(linkIndex).m_collider) { - //m_data->m_visualConverter.changeRGBAColor(...) int graphicsIndex = bodyHandle->m_multiBody->getLink(linkIndex).m_collider->getUserIndex(); - m_data->m_guiHelper->changeRGBAColor(graphicsIndex,clientCmd.m_updateVisualShapeDataArguments.m_rgbaColor); + if (clientCmd.m_updateFlags & CMD_UPDATE_VISUAL_SHAPE_TEXTURE) + { + if (texHandle) + { + int shapeIndex = m_data->m_guiHelper->getShapeIndexFromInstance(graphicsIndex); + m_data->m_guiHelper->replaceTexture(shapeIndex,texHandle->m_openglTextureId); + } + } + if (clientCmd.m_updateFlags & CMD_UPDATE_VISUAL_SHAPE_RGBA_COLOR) + { + m_data->m_visualConverter.changeRGBAColor(bodyUniqueId,linkIndex,clientCmd.m_updateVisualShapeDataArguments.m_rgbaColor); + m_data->m_guiHelper->changeRGBAColor(graphicsIndex,clientCmd.m_updateVisualShapeDataArguments.m_rgbaColor); + } + if (clientCmd.m_updateFlags & CMD_UPDATE_VISUAL_SHAPE_SPECULAR_COLOR) + { + m_data->m_guiHelper->changeSpecularColor(graphicsIndex,clientCmd.m_updateVisualShapeDataArguments.m_specularColor); + } + } } } @@ -5656,25 +6875,77 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm break; } - case CMD_LOAD_TEXTURE: - { - BT_PROFILE("CMD_LOAD_TEXTURE"); - SharedMemoryStatus& serverCmd = serverStatusOut; - serverCmd.m_type = CMD_LOAD_TEXTURE_FAILED; - - int uid = m_data->m_visualConverter.loadTextureFile(clientCmd.m_loadTextureArguments.m_textureFileName); - - if (uid>=0) - { - serverCmd.m_type = CMD_LOAD_TEXTURE_COMPLETED; - } else - { - serverCmd.m_type = CMD_LOAD_TEXTURE_FAILED; - } + + case CMD_CHANGE_TEXTURE: + { + SharedMemoryStatus& serverCmd = serverStatusOut; + serverCmd.m_type = CMD_CHANGE_TEXTURE_COMMAND_FAILED; + + InternalTextureHandle* texH = m_data->m_textureHandles.getHandle(clientCmd.m_changeTextureArgs.m_textureUniqueId); + if(texH) + { + int gltex = texH->m_openglTextureId; + m_data->m_guiHelper->changeTexture(gltex, + (const unsigned char*)bufferServerToClient, clientCmd.m_changeTextureArgs.m_width,clientCmd.m_changeTextureArgs.m_height); + + serverCmd.m_type = CMD_CLIENT_COMMAND_COMPLETED; + } hasStatus = true; - break; - } + } + case CMD_LOAD_TEXTURE: + { + BT_PROFILE("CMD_LOAD_TEXTURE"); + SharedMemoryStatus& serverCmd = serverStatusOut; + serverCmd.m_type = CMD_LOAD_TEXTURE_FAILED; + + char relativeFileName[1024]; + char pathPrefix[1024]; + + if(b3ResourcePath::findResourcePath(clientCmd.m_loadTextureArguments.m_textureFileName,relativeFileName,1024)) + { + b3FileUtils::extractPath(relativeFileName,pathPrefix,1024); + + int texHandle = m_data->m_textureHandles.allocHandle(); + InternalTextureHandle* texH = m_data->m_textureHandles.getHandle(texHandle); + if(texH) + { + texH->m_tinyRendererTextureId = -1; + texH->m_openglTextureId = -1; + + int uid = m_data->m_visualConverter.loadTextureFile(relativeFileName); + if(uid>=0) + { + int m_tinyRendererTextureId; + texH->m_tinyRendererTextureId = uid; + } + + { + int width,height,n; + unsigned char* imageData= stbi_load(relativeFileName,&width,&height,&n,3); + + if(imageData) + { + texH->m_openglTextureId = m_data->m_guiHelper->registerTexture(imageData,width,height); + free(imageData); + } + else + { + b3Warning("Unsupported texture image format [%s]\n",relativeFileName); + } + } + serverCmd.m_loadTextureResultArguments.m_textureUniqueId = texHandle; + serverCmd.m_type = CMD_LOAD_TEXTURE_COMPLETED; + } + } + else + { + serverCmd.m_type = CMD_LOAD_TEXTURE_FAILED; + } + hasStatus = true; + + break; + } case CMD_LOAD_BULLET: { @@ -5813,6 +7084,37 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm SharedMemoryStatus& serverCmd = serverStatusOut; serverCmd.m_type = CMD_USER_DEBUG_DRAW_FAILED; hasStatus = true; + + + int trackingVisualShapeIndex = -1; + + if (clientCmd.m_userDebugDrawArgs.m_parentObjectUniqueId>=0) + { + InternalBodyHandle* bodyHandle = m_data->m_bodyHandles.getHandle(clientCmd.m_userDebugDrawArgs.m_parentObjectUniqueId); + if (bodyHandle && bodyHandle->m_multiBody) + { + int linkIndex = clientCmd.m_userDebugDrawArgs.m_parentLinkIndex; + if (linkIndex ==-1) + { + if (bodyHandle->m_multiBody->getBaseCollider()) + { + trackingVisualShapeIndex = bodyHandle->m_multiBody->getBaseCollider()->getUserIndex(); + } + } else + { + if (linkIndex >=0 && linkIndex < bodyHandle->m_multiBody->getNumLinks()) + { + if (bodyHandle->m_multiBody->getLink(linkIndex).m_collider) + { + trackingVisualShapeIndex = bodyHandle->m_multiBody->getLink(linkIndex).m_collider->getUserIndex(); + } + } + + } + + } + } + if (clientCmd.m_updateFlags & USER_DEBUG_ADD_PARAMETER) { int uid = m_data->m_guiHelper->addUserDebugParameter( @@ -5838,7 +7140,7 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm if ((clientCmd.m_updateFlags & USER_DEBUG_SET_CUSTOM_OBJECT_COLOR) || (clientCmd.m_updateFlags & USER_DEBUG_REMOVE_CUSTOM_OBJECT_COLOR)) { int bodyUniqueId = clientCmd.m_userDebugDrawArgs.m_objectUniqueId; - InteralBodyData* body = m_data->m_bodyHandles.getHandle(bodyUniqueId); + InternalBodyData* body = m_data->m_bodyHandles.getHandle(bodyUniqueId); if (body) { btCollisionObject* destColObj = 0; @@ -5885,11 +7187,27 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm if (clientCmd.m_updateFlags & USER_DEBUG_HAS_TEXT) { + //addUserDebugText3D( const double orientation[4], const double textColorRGB[3], double size, double lifeTime, int trackingObjectUniqueId, int optionFlags){return -1;} + + int optionFlags = clientCmd.m_userDebugDrawArgs.m_optionFlags; + + if (clientCmd.m_updateFlags & USER_DEBUG_HAS_TEXT_ORIENTATION) + { + optionFlags |= DEB_DEBUG_TEXT_USE_ORIENTATION; + } + + + + + int uid = m_data->m_guiHelper->addUserDebugText3D(clientCmd.m_userDebugDrawArgs.m_text, clientCmd.m_userDebugDrawArgs.m_textPositionXYZ, + clientCmd.m_userDebugDrawArgs.m_textOrientation, clientCmd.m_userDebugDrawArgs.m_textColorRGB, clientCmd.m_userDebugDrawArgs.m_textSize, - clientCmd.m_userDebugDrawArgs.m_lifeTime); + clientCmd.m_userDebugDrawArgs.m_lifeTime, + trackingVisualShapeIndex, + optionFlags); if (uid>=0) { @@ -5905,7 +7223,8 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm clientCmd.m_userDebugDrawArgs.m_debugLineToXYZ, clientCmd.m_userDebugDrawArgs.m_debugLineColorRGB, clientCmd.m_userDebugDrawArgs.m_lineWidth, - clientCmd.m_userDebugDrawArgs.m_lifeTime); + clientCmd.m_userDebugDrawArgs.m_lifeTime, + trackingVisualShapeIndex); if (uid>=0) { @@ -5950,14 +7269,21 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm //static int skip=1; +void PhysicsServerCommandProcessor::syncPhysicsToGraphics() +{ + m_data->m_guiHelper->syncPhysicsToGraphics(m_data->m_dynamicsWorld); +} + + void PhysicsServerCommandProcessor::renderScene(int renderFlags) { if (m_data->m_guiHelper) { - if (0==(renderFlags&COV_DISABLE_SYNC_RENDERING)) - { - m_data->m_guiHelper->syncPhysicsToGraphics(m_data->m_dynamicsWorld); - } + if (0==(renderFlags&COV_DISABLE_SYNC_RENDERING)) + { + m_data->m_guiHelper->syncPhysicsToGraphics(m_data->m_dynamicsWorld); + } + m_data->m_guiHelper->render(m_data->m_dynamicsWorld); } #ifdef USE_SOFT_BODY_MULTI_BODY_DYNAMICS_WORLD @@ -6148,7 +7474,7 @@ btQuaternion gVRController2Orn(0,0,0,1); btScalar gVRGripper2Analog = 0; btScalar gVRGripperAnalog = 0; -bool gVRGripperClosed = false; + int gDroppedSimulationSteps = 0; @@ -6161,7 +7487,12 @@ void PhysicsServerCommandProcessor::enableRealTimeSimulation(bool enableRealTime m_data->m_allowRealTimeSimulation = enableRealTimeSim; } -void PhysicsServerCommandProcessor::stepSimulationRealTime(double dtInSec, const struct b3VRControllerEvent* vrControllerEvents, int numVRControllerEvents,const struct b3KeyboardEvent* keyEvents, int numKeyEvents) +bool PhysicsServerCommandProcessor::isRealTimeSimulationEnabled() const +{ + return m_data->m_allowRealTimeSimulation; +} + +void PhysicsServerCommandProcessor::stepSimulationRealTime(double dtInSec,const struct b3VRControllerEvent* vrControllerEvents, int numVRControllerEvents, const struct b3KeyboardEvent* keyEvents, int numKeyEvents, const struct b3MouseEvent* mouseEvents, int numMouseEvents) { m_data->m_vrControllerEvents.addNewVREvents(vrControllerEvents,numVRControllerEvents); for (int i=0;im_stateLoggers.size();i++) @@ -6173,6 +7504,41 @@ void PhysicsServerCommandProcessor::stepSimulationRealTime(double dtInSec, const } } + for (int ii=0;iim_mouseEvents.size();e++) + { + if (event.m_eventType == m_data->m_mouseEvents[e].m_eventType) + { + if (event.m_eventType == MOUSE_MOVE_EVENT) + { + m_data->m_mouseEvents[e].m_mousePosX = event.m_mousePosX; + m_data->m_mouseEvents[e].m_mousePosY = event.m_mousePosY; + found = true; + } else + if ((event.m_eventType == MOUSE_BUTTON_EVENT) && event.m_buttonIndex == m_data->m_mouseEvents[e].m_buttonIndex) + { + m_data->m_mouseEvents[e].m_buttonState |= event.m_buttonState; + if (event.m_buttonState & eButtonIsDown) + { + m_data->m_mouseEvents[e].m_buttonState |= eButtonIsDown; + } else + { + m_data->m_mouseEvents[e].m_buttonState &= ~eButtonIsDown; + } + found = true; + } + } + } + if (!found) + { + m_data->m_mouseEvents.push_back(event); + } + } + for (int i=0;i=0) { gVRTrackingObjectTr.setOrigin(bodyHandle->m_multiBody->getBaseWorldTransform().getOrigin()); + gVRTeleportPos1 = gVRTrackingObjectTr.getOrigin(); } if (gVRTrackingObjectFlag&VR_CAMERA_TRACK_OBJECT_ORIENTATION) { gVRTrackingObjectTr.setBasis(bodyHandle->m_multiBody->getBaseWorldTransform().getBasis()); + gVRTeleportOrn = gVRTrackingObjectTr.getRotation(); + } + } } if ((m_data->m_allowRealTimeSimulation) && m_data->m_guiHelper) { - ///this hardcoded C++ scene creation is temporary for demo purposes. It will be done in Python later... - if (gCreateDefaultRobotAssets) - { - createDefaultRobotAssets(); - } - + int maxSteps = m_data->m_numSimulationSubSteps+3; if (m_data->m_numSimulationSubSteps) { @@ -6279,553 +7644,29 @@ void PhysicsServerCommandProcessor::resetSimulation() m_data->m_bodyHandles.exitHandles(); m_data->m_bodyHandles.initHandles(); - m_data->m_hasGround = false; - m_data->m_gripperRigidbodyFixed = 0; + m_data->m_userCollisionShapeHandles.exitHandles(); + m_data->m_userCollisionShapeHandles.initHandles(); } -//todo: move this to Python/scripting (it is almost ready to be removed!) -void PhysicsServerCommandProcessor::createDefaultRobotAssets() -{ - static btAlignedObjectArray gBufferServerToClient; - gBufferServerToClient.resize(SHARED_MEMORY_MAX_STREAM_CHUNK_SIZE); - int bodyId = 0; - - if (gCreateObjectSimVR >= 0) - { - gCreateObjectSimVR = -1; - btMatrix3x3 mat(gVRGripperOrn); - btScalar spawnDistance = 0.1; - btVector3 spawnDir = mat.getColumn(0); - btVector3 shiftPos = spawnDir*spawnDistance; - btVector3 spawnPos = gVRGripperPos + shiftPos; - loadUrdf("sphere_small.urdf", spawnPos, gVRGripperOrn, true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size(),0); - //loadUrdf("lego/lego.urdf", spawnPos, gVRGripperOrn, true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - m_data->m_sphereId = bodyId; - InteralBodyData* parentBody = m_data->m_bodyHandles.getHandle(bodyId); - if (parentBody->m_multiBody) - { - parentBody->m_multiBody->setBaseVel(spawnDir * 5); - } - } - - if (!m_data->m_hasGround) - { - m_data->m_hasGround = true; - - loadUrdf("plane.urdf", btVector3(0, 0, 0), btQuaternion(0, 0, 0, 1), true, true, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - loadUrdf("samurai.urdf", btVector3(0, 0, 0), btQuaternion(0, 0, 0, 1), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); -// loadUrdf("quadruped/quadruped.urdf", btVector3(2, 2, 1), btQuaternion(0, 0, 0, 1), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - - if (m_data->m_gripperRigidbodyFixed == 0) - { - int bodyId = 0; - - if (loadUrdf("pr2_gripper.urdf", btVector3(-0.2, 0.15, 0.9), btQuaternion(0, 0, 0, 1), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size())) - { - InteralBodyData* parentBody = m_data->m_bodyHandles.getHandle(bodyId); - if (parentBody->m_multiBody) - { - parentBody->m_multiBody->setHasSelfCollision(0); - btVector3 pivotInParent(0.2, 0, 0); - btMatrix3x3 frameInParent; - //frameInParent.setRotation(btQuaternion(0, 0, 0, 1)); - frameInParent.setIdentity(); - btVector3 pivotInChild(0, 0, 0); - btMatrix3x3 frameInChild; - frameInChild.setIdentity(); - - m_data->m_gripperRigidbodyFixed = new btMultiBodyFixedConstraint(parentBody->m_multiBody, -1, 0, pivotInParent, pivotInChild, frameInParent, frameInChild); - m_data->m_gripperMultiBody = parentBody->m_multiBody; - if (m_data->m_gripperMultiBody->getNumLinks() > 2) - { - m_data->m_gripperMultiBody->setJointPos(0, 0); - m_data->m_gripperMultiBody->setJointPos(2, 0); - } - m_data->m_gripperRigidbodyFixed->setMaxAppliedImpulse(500); - btMultiBodyDynamicsWorld* world = (btMultiBodyDynamicsWorld*)m_data->m_dynamicsWorld; - world->addMultiBodyConstraint(m_data->m_gripperRigidbodyFixed); - } - } - } - - loadUrdf("kuka_iiwa/model_vr_limits.urdf", btVector3(1.4, -0.2, 0.6), btQuaternion(0, 0, 0, 1), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - m_data->m_KukaId = bodyId; - if (m_data->m_KukaId>=0) - { - InteralBodyData* kukaBody = m_data->m_bodyHandles.getHandle(m_data->m_KukaId); - if (kukaBody->m_multiBody && kukaBody->m_multiBody->getNumDofs() == 7) - { - btScalar q[7]; - q[0] = 0;// -SIMD_HALF_PI; - q[1] = 0; - q[2] = 0; - q[3] = SIMD_HALF_PI; - q[4] = 0; - q[5] = -SIMD_HALF_PI*0.66; - q[6] = 0; - - for (int i = 0; i < 7; i++) - { - kukaBody->m_multiBody->setJointPos(i, q[i]); - } - btAlignedObjectArray scratch_q; - btAlignedObjectArray scratch_m; - kukaBody->m_multiBody->forwardKinematics(scratch_q, scratch_m); - int nLinks = kukaBody->m_multiBody->getNumLinks(); - scratch_q.resize(nLinks + 1); - scratch_m.resize(nLinks + 1); - kukaBody->m_multiBody->updateCollisionObjectWorldTransforms(scratch_q, scratch_m); - } - } -#if 1 - loadUrdf("lego/lego.urdf", btVector3(1.0, -0.2, .7), btQuaternion(0, 0, 0, 1), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - loadUrdf("lego/lego.urdf", btVector3(1.0, -0.2, .8), btQuaternion(0, 0, 0, 1), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - loadUrdf("lego/lego.urdf", btVector3(1.0, -0.2, .9), btQuaternion(0, 0, 0, 1), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); -#endif - - // loadUrdf("r2d2.urdf", btVector3(-2, -4, 1), btQuaternion(0, 0, 0, 1), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - -#if 1 - // Load one motor gripper for kuka - loadSdf("gripper/wsg50_one_motor_gripper_new_free_base.sdf", &gBufferServerToClient[0], gBufferServerToClient.size(), true,CUF_USE_SDF); - m_data->m_gripperId = bodyId + 1; - { - InteralBodyData* gripperBody = m_data->m_bodyHandles.getHandle(m_data->m_gripperId); - - // Reset the default gripper motor maximum torque for damping to 0 - for (int i = 0; i < gripperBody->m_multiBody->getNumLinks(); i++) - { - if (supportsJointMotor(gripperBody->m_multiBody, i)) - { - btMultiBodyJointMotor* motor = (btMultiBodyJointMotor*)gripperBody->m_multiBody->getLink(i).m_userPtr; - if (motor) - { - motor->setMaxAppliedImpulse(0); - } - } - } - } -#endif -#if 1 - for (int i = 0; i < 6; i++) - { - loadUrdf("jenga/jenga.urdf", btVector3(1.3-0.1*i,-0.7, .75), btQuaternion(btVector3(0,1,0),SIMD_HALF_PI), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - } -#endif - //loadUrdf("nao/nao.urdf", btVector3(2,5, 1), btQuaternion(0, 0, 0, 1), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - - // Add slider joint for fingers - btVector3 pivotInParent1(-0.055, 0, 0.02); - btVector3 pivotInChild1(0, 0, 0); - btMatrix3x3 frameInParent1(btQuaternion(0, 0, 0, 1.0)); - btMatrix3x3 frameInChild1(btQuaternion(0, 0, 0, 1.0)); - btVector3 jointAxis1(1.0, 0, 0); - btVector3 pivotInParent2(0.055, 0, 0.02); - btVector3 pivotInChild2(0, 0, 0); - btMatrix3x3 frameInParent2(btQuaternion(0, 0, 0, 1.0)); - btMatrix3x3 frameInChild2(btQuaternion(0, 0, 1.0, 0)); - btVector3 jointAxis2(1.0, 0, 0); - - if (m_data->m_gripperId>=0) - { - InteralBodyData* gripperBody = m_data->m_bodyHandles.getHandle(m_data->m_gripperId); - m_data->m_kukaGripperRevolute1 = new btMultiBodyPoint2Point(gripperBody->m_multiBody, 2, gripperBody->m_multiBody, 4, pivotInParent1, pivotInChild1); - m_data->m_kukaGripperRevolute1->setMaxAppliedImpulse(5.0); - m_data->m_kukaGripperRevolute2 = new btMultiBodyPoint2Point(gripperBody->m_multiBody, 3, gripperBody->m_multiBody, 6, pivotInParent2, pivotInChild2); - m_data->m_kukaGripperRevolute2->setMaxAppliedImpulse(5.0); - - m_data->m_dynamicsWorld->addMultiBodyConstraint(m_data->m_kukaGripperRevolute1); - m_data->m_dynamicsWorld->addMultiBodyConstraint(m_data->m_kukaGripperRevolute2); - - } - - if (m_data->m_KukaId>=0) - { - InteralBodyData* kukaBody = m_data->m_bodyHandles.getHandle(m_data->m_KukaId); - if (kukaBody->m_multiBody && kukaBody->m_multiBody->getNumDofs()==7) - { - if (m_data->m_gripperId>=0) - { - InteralBodyData* gripperBody = m_data->m_bodyHandles.getHandle(m_data->m_gripperId); - - gripperBody->m_multiBody->setHasSelfCollision(0); - btVector3 pivotInParent(0, 0, 0.05); - btMatrix3x3 frameInParent; - frameInParent.setIdentity(); - btVector3 pivotInChild(0, 0, 0); - btMatrix3x3 frameInChild; - frameInChild.setIdentity(); - - m_data->m_kukaGripperFixed = new btMultiBodyFixedConstraint(kukaBody->m_multiBody, 6, gripperBody->m_multiBody, 0, pivotInParent, pivotInChild, frameInParent, frameInChild); - m_data->m_kukaGripperMultiBody = gripperBody->m_multiBody; - m_data->m_kukaGripperFixed->setMaxAppliedImpulse(500); - m_data->m_dynamicsWorld->addMultiBodyConstraint(m_data->m_kukaGripperFixed); - } - } - } -#if 0 - - for (int i = 0; i < 10; i++) - { - loadUrdf("cube.urdf", btVector3(-4, -2, 0.5 + i), btQuaternion(0, 0, 0, 1), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - } - - loadUrdf("sphere2.urdf", btVector3(-5, 0, 1), btQuaternion(0, 0, 0, 1), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - loadUrdf("sphere2.urdf", btVector3(-5, 0, 2), btQuaternion(0, 0, 0, 1), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - loadUrdf("sphere2.urdf", btVector3(-5, 0, 3), btQuaternion(0, 0, 0, 1), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); -#endif - btTransform objectLocalTr[] = { - btTransform(btQuaternion(0, 0, 0, 1), btVector3(0.0, 0.0, 0.0)), - btTransform(btQuaternion(btVector3(0,0,1),-SIMD_HALF_PI), btVector3(0.0, 0.15, 0.64)), - btTransform(btQuaternion(0, 0, 0, 1), btVector3(0.1, 0.15, 0.85)), - btTransform(btQuaternion(0, 0, 0, 1), btVector3(-0.4, 0.05, 0.85)), - btTransform(btQuaternion(0, 0, 0, 1), btVector3(-0.3, -0.05, 0.7)), - btTransform(btQuaternion(0, 0, 0, 1), btVector3(0.1, 0.05, 0.7)), - btTransform(btQuaternion(0, 0, 0, 1), btVector3(-0.2, 0.15, 0.7)), - btTransform(btQuaternion(0, 0, 0, 1), btVector3(-0.2, 0.15, 0.9)), - btTransform(btQuaternion(0, 0, 0, 1), btVector3(0.2, 0.05, 0.8)) - }; - - - btAlignedObjectArray objectWorldTr; - int numOb = sizeof(objectLocalTr) / sizeof(btTransform); - objectWorldTr.resize(numOb); - - btTransform tr; - tr.setIdentity(); - tr.setRotation(btQuaternion(btVector3(0, 0, 1), SIMD_HALF_PI)); - tr.setOrigin(btVector3(1.0, -0.2, 0)); - - for (int i = 0; i < numOb; i++) - { - objectWorldTr[i] = tr*objectLocalTr[i]; - } - - // Table area - loadUrdf("table/table.urdf", objectWorldTr[0].getOrigin(), objectWorldTr[0].getRotation(), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - //loadUrdf("tray/tray_textured.urdf", objectWorldTr[1].getOrigin(), objectWorldTr[1].getRotation(), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - //loadUrdf("cup_small.urdf", objectWorldTr[2].getOrigin(), objectWorldTr[2].getRotation(), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - //loadUrdf("pitcher_small.urdf", objectWorldTr[3].getOrigin(), objectWorldTr[3].getRotation(), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - loadUrdf("teddy_vhacd.urdf", objectWorldTr[4].getOrigin(), objectWorldTr[4].getRotation(), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - - loadUrdf("cube_small.urdf", objectWorldTr[5].getOrigin(), objectWorldTr[5].getRotation(), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - loadUrdf("sphere_small.urdf", objectWorldTr[6].getOrigin(), objectWorldTr[6].getRotation(), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - loadUrdf("duck_vhacd.urdf", objectWorldTr[7].getOrigin(), objectWorldTr[7].getRotation(), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - //loadUrdf("Apple/apple.urdf", objectWorldTr[8].getOrigin(), objectWorldTr[8].getRotation(), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - - // Shelf area - loadSdf("kiva_shelf/model.sdf", &gBufferServerToClient[0], gBufferServerToClient.size(), true, CUF_USE_SDF); - loadUrdf("teddy_vhacd.urdf", btVector3(-0.1, 0.6, 0.85), btQuaternion(0, 0, 0, 1), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - loadUrdf("sphere_small.urdf", btVector3(-0.1, 0.6, 1.25), btQuaternion(0, 0, 0, 1), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - loadUrdf("cube_small.urdf", btVector3(0.3, 0.6, 0.85), btQuaternion(0, 0, 0, 1), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - - // Chess area - loadUrdf("table_square/table_square.urdf", btVector3(-1.0, 0, 0.0), btQuaternion(0, 0, 0, 1), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - //loadUrdf("pawn.urdf", btVector3(-0.8, -0.1, 0.7), btQuaternion(btVector3(1, 0, 0), SIMD_HALF_PI), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - //loadUrdf("queen.urdf", btVector3(-0.9, -0.2, 0.7), btQuaternion(btVector3(1, 0, 0), SIMD_HALF_PI), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - //loadUrdf("king.urdf", btVector3(-1.0, 0, 0.7), btQuaternion(btVector3(1, 0, 0), SIMD_HALF_PI), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - //loadUrdf("bishop.urdf", btVector3(-1.1, 0.1, 0.7), btQuaternion(btVector3(1, 0, 0), SIMD_HALF_PI), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - //loadUrdf("rook.urdf", btVector3(-1.2, 0, 0.7), btQuaternion(btVector3(1, 0, 0), SIMD_HALF_PI), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - //loadUrdf("knight.urdf", btVector3(-1.2, 0.2, 0.7), btQuaternion(btVector3(1, 0, 0), SIMD_HALF_PI), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - - loadUrdf("husky/husky.urdf", btVector3(2, -5, 1), btQuaternion(0, 0, 0, 1), true, false, &bodyId, &gBufferServerToClient[0], gBufferServerToClient.size()); - m_data->m_huskyId = bodyId; - - m_data->m_dynamicsWorld->setGravity(btVector3(0, 0, -10)); - - } - - if (m_data->m_kukaGripperFixed && m_data->m_kukaGripperMultiBody) - { - InteralBodyData* childBody = m_data->m_bodyHandles.getHandle(m_data->m_gripperId); - // Add gripper controller - btMultiBodyJointMotor* motor = (btMultiBodyJointMotor*)childBody->m_multiBody->getLink(1).m_userPtr; - if (motor) - { - btScalar posTarget = (-0.048)*btMin(btScalar(0.75), gVRGripper2Analog) / 0.75; - motor->setPositionTarget(posTarget, .8); - motor->setVelocityTarget(0.0, .5); - motor->setMaxAppliedImpulse(1.0); - - } - } - - if (m_data->m_gripperRigidbodyFixed && m_data->m_gripperMultiBody) - { - m_data->m_gripperRigidbodyFixed->setFrameInB(btMatrix3x3(gVRGripperOrn)); - m_data->m_gripperRigidbodyFixed->setPivotInB(gVRGripperPos); - btScalar avg = 0.f; - - for (int i = 0; i < m_data->m_gripperMultiBody->getNumLinks(); i++) - { - if (supportsJointMotor(m_data->m_gripperMultiBody, i)) - { - btMultiBodyJointMotor* motor = (btMultiBodyJointMotor*)m_data->m_gripperMultiBody->getLink(i ).m_userPtr; - if (motor) - { - motor->setErp(0.2); - btScalar posTarget = 0.1 + (1 - btMin(btScalar(0.75),gVRGripperAnalog)*btScalar(1.5))*SIMD_HALF_PI*0.29; - btScalar maxPosTarget = 0.55; - - btScalar correction = 0.f; - - if (avg) - { - correction = m_data->m_gripperMultiBody->getJointPos(i) - avg; - } - - if (m_data->m_gripperMultiBody->getJointPos(i) < 0) - { - m_data->m_gripperMultiBody->setJointPos(i,0); - } - if (m_data->m_gripperMultiBody->getJointPos(i) > maxPosTarget) - { - m_data->m_gripperMultiBody->setJointPos(i, maxPosTarget); - } - - if (avg) - { - motor->setPositionTarget(avg, 1); - } - else - { - motor->setPositionTarget(posTarget, 1); - } - motor->setVelocityTarget(0, 0.5); - btScalar maxImp = (1+0.1*i)*m_data->m_physicsDeltaTime; - motor->setMaxAppliedImpulse(maxImp); - avg = m_data->m_gripperMultiBody->getJointPos(i); - - //motor->setRhsClamp(gRhsClamp); - } - } - } - } - - // Inverse kinematics for KUKA - if (m_data->m_KukaId>=0) - { - InternalBodyHandle* bodyHandle = m_data->m_bodyHandles.getHandle(m_data->m_KukaId); - if (bodyHandle && bodyHandle->m_multiBody && bodyHandle->m_multiBody->getNumDofs()==7) - { - btMultiBody* mb = bodyHandle->m_multiBody; - btScalar sqLen = (mb->getBaseWorldTransform().getOrigin() - gVRController2Pos).length2(); - btScalar distanceThreshold = 1.3; - gCloseToKuka=(sqLen<(distanceThreshold*distanceThreshold)); - - int numDofs = bodyHandle->m_multiBody->getNumDofs(); - btAlignedObjectArray q_new; - btAlignedObjectArray q_current; - q_current.resize(numDofs); - for (int i = 0; i < numDofs; i++) - { - q_current[i] = bodyHandle->m_multiBody->getJointPos(i); - } - - q_new.resize(numDofs); - //sensible rest-pose - q_new[0] = 0;// -SIMD_HALF_PI; - q_new[1] = 0; - q_new[2] = 0; - q_new[3] = SIMD_HALF_PI; - q_new[4] = 0; - q_new[5] = -SIMD_HALF_PI*0.66; - q_new[6] = 0; - - if (gCloseToKuka && gEnableKukaControl) - { - double dampIk[6] = {1.0, 1.0, 1.0, 1.0, 1.0, 0.0}; - - IKTrajectoryHelper** ikHelperPtrPtr = m_data->m_inverseKinematicsHelpers.find(bodyHandle->m_multiBody); - IKTrajectoryHelper* ikHelperPtr = 0; - - if (ikHelperPtrPtr) - { - ikHelperPtr = *ikHelperPtrPtr; - } - else - { - IKTrajectoryHelper* tmpHelper = new IKTrajectoryHelper; - m_data->m_inverseKinematicsHelpers.insert(bodyHandle->m_multiBody, tmpHelper); - ikHelperPtr = tmpHelper; - } - - int endEffectorLinkIndex = 6; - - if (ikHelperPtr && (endEffectorLinkIndexm_multiBody->getNumLinks())) - { - b3AlignedObjectArray jacobian_linear; - jacobian_linear.resize(3*numDofs); - b3AlignedObjectArray jacobian_angular; - jacobian_angular.resize(3*numDofs); - int jacSize = 0; - - btInverseDynamics::MultiBodyTree* tree = m_data->findOrCreateTree(bodyHandle->m_multiBody); - - if (tree) - { - jacSize = jacobian_linear.size(); - // Set jacobian value - int baseDofs = bodyHandle->m_multiBody->hasFixedBase() ? 0 : 6; - - btInverseDynamics::vecx nu(numDofs+baseDofs), qdot(numDofs + baseDofs), q(numDofs + baseDofs), joint_force(numDofs + baseDofs); - for (int i = 0; i < numDofs; i++) - { - q_current[i] = bodyHandle->m_multiBody->getJointPos(i); - q[i+baseDofs] = bodyHandle->m_multiBody->getJointPos(i); - qdot[i + baseDofs] = 0; - nu[i+baseDofs] = 0; - } - // Set the gravity to correspond to the world gravity - btInverseDynamics::vec3 id_grav(m_data->m_dynamicsWorld->getGravity()); - - if (-1 != tree->setGravityInWorldFrame(id_grav) && - -1 != tree->calculateInverseDynamics(q, qdot, nu, &joint_force)) - { - tree->calculateJacobians(q); - btInverseDynamics::mat3x jac_t(3,numDofs); - btInverseDynamics::mat3x jac_r(3,numDofs); - tree->getBodyJacobianTrans(endEffectorLinkIndex+1, &jac_t); - tree->getBodyJacobianRot(endEffectorLinkIndex+1, &jac_r); - for (int i = 0; i < 3; ++i) - { - for (int j = 0; j < numDofs; ++j) - { - jacobian_linear[i*numDofs+j] = jac_t(i,j); - jacobian_angular[i*numDofs+j] = jac_r(i,j); - } - } - } - } - - int ikMethod= IK2_VEL_DLS_WITH_ORIENTATION_NULLSPACE;//IK2_VEL_DLS_WITH_ORIENTATION; //IK2_VEL_DLS; - - btVector3DoubleData endEffectorWorldPosition; - btVector3DoubleData endEffectorWorldOrientation; - btVector3DoubleData targetWorldPosition; - btVector3DoubleData targetWorldOrientation; - - btVector3 endEffectorPosWorld = bodyHandle->m_multiBody->getLink(endEffectorLinkIndex).m_cachedWorldTransform.getOrigin(); - btQuaternion endEffectorOriWorld = bodyHandle->m_multiBody->getLink(endEffectorLinkIndex).m_cachedWorldTransform.getRotation(); - btVector4 endEffectorOri(endEffectorOriWorld.x(),endEffectorOriWorld.y(),endEffectorOriWorld.z(),endEffectorOriWorld.w()); - - // Prescribed position and orientation - static btScalar time=0.f; - time+=0.01; - btVector3 targetPos(0.4-0.4*b3Cos( time), 0, 0.8+0.4*b3Cos( time)); - targetPos +=mb->getBasePos(); - btVector4 downOrn(0,1,0,0); - - // Controller orientation - btVector4 controllerOrn(gVRController2Orn.x(), gVRController2Orn.y(), gVRController2Orn.z(), gVRController2Orn.w()); - - // Set position and orientation - endEffectorPosWorld.serializeDouble(endEffectorWorldPosition); - endEffectorOri.serializeDouble(endEffectorWorldOrientation); - downOrn.serializeDouble(targetWorldOrientation); - //targetPos.serializeDouble(targetWorldPosition); - - gVRController2Pos.serializeDouble(targetWorldPosition); - - //controllerOrn.serializeDouble(targetWorldOrientation); - - if (ikMethod == IK2_VEL_DLS_WITH_ORIENTATION_NULLSPACE) - { - btAlignedObjectArray lower_limit; - btAlignedObjectArray upper_limit; - btAlignedObjectArray joint_range; - btAlignedObjectArray rest_pose; - lower_limit.resize(numDofs); - upper_limit.resize(numDofs); - joint_range.resize(numDofs); - rest_pose.resize(numDofs); - lower_limit[0] = -.967; - lower_limit[1] = -2.0; - lower_limit[2] = -2.96; - lower_limit[3] = 0.19; - lower_limit[4] = -2.96; - lower_limit[5] = -2.09; - lower_limit[6] = -3.05; - upper_limit[0] = .96; - upper_limit[1] = 2.0; - upper_limit[2] = 2.96; - upper_limit[3] = 2.29; - upper_limit[4] = 2.96; - upper_limit[5] = 2.09; - upper_limit[6] = 3.05; - joint_range[0] = 5.8; - joint_range[1] = 4; - joint_range[2] = 5.8; - joint_range[3] = 4; - joint_range[4] = 5.8; - joint_range[5] = 4; - joint_range[6] = 6; - rest_pose[0] = 0; - rest_pose[1] = 0; - rest_pose[2] = 0; - rest_pose[3] = SIMD_HALF_PI; - rest_pose[4] = 0; - rest_pose[5] = -SIMD_HALF_PI*0.66; - rest_pose[6] = 0; - ikHelperPtr->computeNullspaceVel(numDofs, &q_current[0], &lower_limit[0], &upper_limit[0], &joint_range[0], &rest_pose[0]); - } - - ikHelperPtr->computeIK(targetWorldPosition.m_floats, targetWorldOrientation.m_floats, - endEffectorWorldPosition.m_floats, endEffectorWorldOrientation.m_floats, - &q_current[0], - numDofs, endEffectorLinkIndex, - &q_new[0], ikMethod, &jacobian_linear[0], &jacobian_angular[0], jacSize*2, dampIk); - } - } - - //directly set the position of the links, only for debugging IK, don't use this method! -#if 0 - if (0) - { - for (int i=0;igetNumLinks();i++) - { - btScalar desiredPosition = q_new[i]; - mb->setJointPosMultiDof(i,&desiredPosition); - } - } else -#endif - { - int numMotors = 0; - //find the joint motors and apply the desired velocity and maximum force/torque - { - int velIndex = 6;//skip the 3 linear + 3 angular degree of freedom velocity entries of the base - int posIndex = 7;//skip 3 positional and 4 orientation (quaternion) positional degrees of freedom of the base - for (int link=0;linkgetNumLinks();link++) - { - if (supportsJointMotor(mb,link)) - { - btMultiBodyJointMotor* motor = (btMultiBodyJointMotor*)mb->getLink(link).m_userPtr; - - if (motor) - { - btScalar desiredVelocity = 0.f; - btScalar desiredPosition = q_new[link]; - motor->setRhsClamp(gRhsClamp); - //printf("link %d: %f", link, q_new[link]); - motor->setVelocityTarget(desiredVelocity,1.0); - motor->setPositionTarget(desiredPosition,0.6); - btScalar maxImp = 1.0; - - motor->setMaxAppliedImpulse(maxImp); - numMotors++; - } - } - velIndex += mb->getLink(link).m_dofCount; - posIndex += mb->getLink(link).m_posVarCount; - } - } - } - } - - } -} void PhysicsServerCommandProcessor::setTimeOut(double /*timeOutInSeconds*/) { } + +const btVector3& PhysicsServerCommandProcessor::getVRTeleportPosition() const +{ + return gVRTeleportPos1; +} +void PhysicsServerCommandProcessor::setVRTeleportPosition(const btVector3& vrTeleportPos) +{ + gVRTeleportPos1 = vrTeleportPos; +} +const btQuaternion& PhysicsServerCommandProcessor::getVRTeleportOrientation() const +{ + return gVRTeleportOrn; +} +void PhysicsServerCommandProcessor::setVRTeleportOrientation(const btQuaternion& vrTeleportOrn) +{ + gVRTeleportOrn = vrTeleportOrn; +} diff --git a/examples/SharedMemory/PhysicsServerCommandProcessor.h b/examples/SharedMemory/PhysicsServerCommandProcessor.h index f30d35f2c..65bb0bb6d 100644 --- a/examples/SharedMemory/PhysicsServerCommandProcessor.h +++ b/examples/SharedMemory/PhysicsServerCommandProcessor.h @@ -15,16 +15,11 @@ struct SharedMemLines ///todo: naming. Perhaps PhysicsSdkCommandprocessor? -class PhysicsServerCommandProcessor : public PhysicsCommandProcessorInterface +class PhysicsServerCommandProcessor : public CommandProcessorInterface { struct PhysicsServerCommandProcessorInternalData* m_data; - - - //todo: move this to physics client side / Python - void createDefaultRobotAssets(); - void resetSimulation(); protected: @@ -32,10 +27,10 @@ protected: - bool loadSdf(const char* fileName, char* bufferServerToClient, int bufferSizeInBytes, bool useMultiBody, int flags); + bool loadSdf(const char* fileName, char* bufferServerToClient, int bufferSizeInBytes, bool useMultiBody, int flags, btScalar globalScaling); bool loadUrdf(const char* fileName, const class btVector3& pos, const class btQuaternion& orn, - bool useMultiBody, bool useFixedBase, int* bodyUniqueIdPtr, char* bufferServerToClient, int bufferSizeInBytes, int flags=0); + bool useMultiBody, bool useFixedBase, int* bodyUniqueIdPtr, char* bufferServerToClient, int bufferSizeInBytes, int flags, btScalar globalScaling); bool loadMjcf(const char* fileName, char* bufferServerToClient, int bufferSizeInBytes, bool useMultiBody, int flags); @@ -81,7 +76,9 @@ public: virtual void renderScene(int renderFlags); virtual void physicsDebugDraw(int debugDrawFlags); virtual void setGuiHelper(struct GUIHelperInterface* guiHelper); - + virtual void syncPhysicsToGraphics(); + + //@todo(erwincoumans) Should we have shared memory commands for picking objects? ///The pickBody method will try to pick the first body along a ray, return true if succeeds, false otherwise virtual bool pickBody(const btVector3& rayFromWorld, const btVector3& rayToWorld); @@ -89,19 +86,28 @@ public: virtual void removePickingConstraint(); //logging /playback the shared memory commands - void enableCommandLogging(bool enable, const char* fileName); - void replayFromLogFile(const char* fileName); - void replayLogCommand(char* bufferServerToClient, int bufferSizeInBytes ); + virtual void enableCommandLogging(bool enable, const char* fileName); + virtual void replayFromLogFile(const char* fileName); + virtual void replayLogCommand(char* bufferServerToClient, int bufferSizeInBytes ); //logging of object states (position etc) void logObjectStates(btScalar timeStep); void processCollisionForces(btScalar timeStep); - void stepSimulationRealTime(double dtInSec, const struct b3VRControllerEvent* vrEvents, int numVREvents, const struct b3KeyboardEvent* keyEvents, int numKeyEvents); - void enableRealTimeSimulation(bool enableRealTimeSim); + virtual void stepSimulationRealTime(double dtInSec,const struct b3VRControllerEvent* vrControllerEvents, int numVRControllerEvents, const struct b3KeyboardEvent* keyEvents, int numKeyEvents, const struct b3MouseEvent* mouseEvents, int numMouseEvents); + + virtual void enableRealTimeSimulation(bool enableRealTimeSim); + virtual bool isRealTimeSimulationEnabled() const; + void applyJointDamping(int bodyUniqueId); virtual void setTimeOut(double timeOutInSeconds); + + virtual const btVector3& getVRTeleportPosition() const; + virtual void setVRTeleportPosition(const btVector3& vrTeleportPos); + + virtual const btQuaternion& getVRTeleportOrientation() const; + virtual void setVRTeleportOrientation(const btQuaternion& vrTeleportOrn); }; #endif //PHYSICS_SERVER_COMMAND_PROCESSOR_H diff --git a/examples/SharedMemory/PhysicsServerExample.cpp b/examples/SharedMemory/PhysicsServerExample.cpp index cf5f0c275..80968c880 100644 --- a/examples/SharedMemory/PhysicsServerExample.cpp +++ b/examples/SharedMemory/PhysicsServerExample.cpp @@ -4,10 +4,8 @@ #include "PhysicsServerExample.h" -#ifdef B3_USE_MIDI -#include "RtMidi.h" -#endif//B3_USE_MIDI +#include "../CommonInterfaces/Common2dCanvasInterface.h" #include "PhysicsServerSharedMemory.h" #include "Bullet3Common/b3CommandLineArgs.h" #include "SharedMemoryCommon.h" @@ -24,37 +22,31 @@ //@todo(erwincoumans) those globals are hacks for a VR demo, move this to Python/pybullet! -extern btVector3 gLastPickPos; bool gEnablePicking=true; bool gEnableTeleporting=true; bool gEnableRendering= true; bool gEnableSyncPhysicsRendering= true; bool gEnableUpdateDebugDrawLines = true; +static int gCamVisualizerWidth = 320; +static int gCamVisualizerHeight = 240; +static bool gEnableDefaultKeyboardShortcuts = true; +static bool gEnableDefaultMousePicking = true; + + +//extern btVector3 gLastPickPos; btVector3 gVRTeleportPosLocal(0,0,0); btQuaternion gVRTeleportOrnLocal(0,0,0,1); -extern btVector3 gVRTeleportPos1; -extern btQuaternion gVRTeleportOrn; + btScalar gVRTeleportRotZ = 0; -extern btVector3 gVRGripperPos; -extern btQuaternion gVRGripperOrn; -extern btVector3 gVRController2Pos; -extern btQuaternion gVRController2Orn; -extern btScalar gVRGripperAnalog; -extern btScalar gVRGripper2Analog; -extern bool gCloseToKuka; -extern bool gEnableRealTimeSimVR; -extern bool gCreateDefaultRobotAssets; extern int gInternalSimFlags; -extern int gCreateObjectSimVR; extern bool gResetSimulation; -extern int gEnableKukaControl; int gGraspingController = -1; extern btScalar simTimeScalingFactor; bool gBatchUserDebugLines = true; -extern bool gVRGripperClosed; + const char* startFileNameVR = "0_VRDemoSettings.txt"; @@ -82,70 +74,20 @@ static void loadCurrentSettingsVR(b3CommandLineArgs& args) }; //remember the settings (you don't want to re-tune again and again...) -static void saveCurrentSettingsVR() + + +static void saveCurrentSettingsVR(const btVector3& VRTeleportPos1) { FILE* f = fopen(startFileNameVR, "w"); if (f) { - fprintf(f, "--camPosX= %f\n", gVRTeleportPos1[0]); - fprintf(f, "--camPosY= %f\n", gVRTeleportPos1[1]); - fprintf(f, "--camPosZ= %f\n", gVRTeleportPos1[2]); + fprintf(f, "--camPosX= %f\n", VRTeleportPos1[0]); + fprintf(f, "--camPosY= %f\n", VRTeleportPos1[1]); + fprintf(f, "--camPosZ= %f\n", VRTeleportPos1[2]); fprintf(f, "--camRotZ= %f\n", gVRTeleportRotZ); fclose(f); } }; - -#if B3_USE_MIDI - - - -static float getParamf(float rangeMin, float rangeMax, int midiVal) -{ - float v = rangeMin + (rangeMax - rangeMin)* (float(midiVal / 127.)); - return v; -} -void midiCallback(double deltatime, std::vector< unsigned char > *message, void *userData) -{ - unsigned int nBytes = message->size(); - for (unsigned int i = 0; i 0) - std::cout << "stamp = " << deltatime << std::endl; - - if (nBytes > 2) - { - - if (message->at(0) == 176) - { - if (message->at(1) == 16) - { - gVRTeleportRotZ= getParamf(-3.1415, 3.1415, message->at(2)); - gVRTeleportOrn = btQuaternion(btVector3(0, 0, 1), gVRTeleportRotZ); - saveCurrentSettingsVR(); -// b3Printf("gVRTeleportOrnLocal rotZ = %f\n", gVRTeleportRotZ); - } - - if (message->at(1) == 32) - { - gCreateDefaultRobotAssets = 1; - } - - for (int i = 0; i < 3; i++) - { - if (message->at(1) == i) - { - gVRTeleportPos1[i] = getParamf(-2, 2, message->at(2)); - saveCurrentSettingsVR(); -// b3Printf("gVRTeleportPos[%d] = %f\n", i,gVRTeleportPosLocal[i]); - - } - } - } - } -} - -#endif //B3_USE_MIDI - bool gDebugRenderToggle = false; void MotionThreadFunc(void* userPtr,void* lsMemory); void* MotionlsMemoryFunc(); @@ -177,6 +119,7 @@ enum MultiThreadedGUIHelperCommunicationEnums eGUIHelperCreateRigidBodyGraphicsObject, eGUIHelperRemoveAllGraphicsInstances, eGUIHelperCopyCameraImageData, + eGUIHelperDisplayCameraImageData, eGUIHelperAutogenerateGraphicsObjects, eGUIUserDebugAddText, eGUIUserDebugAddLine, @@ -186,7 +129,11 @@ enum MultiThreadedGUIHelperCommunicationEnums eGUIDumpFramesToVideo, eGUIHelperRemoveGraphicsInstance, eGUIHelperChangeGraphicsInstanceRGBAColor, + eGUIHelperChangeGraphicsInstanceSpecularColor, eGUIHelperSetVisualizerFlag, + eGUIHelperChangeGraphicsInstanceTextureId, + eGUIHelperGetShapeIndexFromInstance, + eGUIHelperChangeTexture, }; @@ -271,7 +218,8 @@ struct MotionArgs btAlignedObjectArray m_keyboardEvents; btAlignedObjectArray m_sendKeyEvents; - + btAlignedObjectArray m_allMouseEvents; + btAlignedObjectArray m_sendMouseEvents; PhysicsServerSharedMemory* m_physicsServerPtr; b3AlignedObjectArray m_positions; @@ -291,7 +239,6 @@ struct MotionThreadLocalStorage float clampedDeltaTime = 0.2; -extern int gMaxNumCmdPer1ms; void MotionThreadFunc(void* userPtr,void* lsMemory) @@ -325,16 +272,7 @@ void MotionThreadFunc(void* userPtr,void* lsMemory) { - if (gMaxNumCmdPer1ms>0) - { - if (numCmdSinceSleep1ms>gMaxNumCmdPer1ms) - { - BT_PROFILE("usleep(10)"); - b3Clock::usleep(10); - numCmdSinceSleep1ms = 0; - sleepClock.reset(); - } - } + if (sleepClock.getTimeMilliseconds()>1) { sleepClock.reset(); @@ -458,8 +396,52 @@ void MotionThreadFunc(void* userPtr,void* lsMemory) b3KeyboardEvent* keyEvents = args->m_sendKeyEvents.size()? &args->m_sendKeyEvents[0] : 0; args->m_csGUI->unlock(); + + args->m_csGUI->lock(); + if (gEnableDefaultMousePicking) { - args->m_physicsServerPtr->stepSimulationRealTime(deltaTimeInSeconds, args->m_sendVrControllerEvents,numSendVrControllers, keyEvents, args->m_sendKeyEvents.size()); + for (int i = 0; i < args->m_mouseCommands.size(); i++) + { + switch (args->m_mouseCommands[i].m_type) + { + case MyMouseMove: + { + args->m_physicsServerPtr->movePickedBody(args->m_mouseCommands[i].m_rayFrom, args->m_mouseCommands[i].m_rayTo); + break; + }; + case MyMouseButtonDown: + { + args->m_physicsServerPtr->pickBody(args->m_mouseCommands[i].m_rayFrom, args->m_mouseCommands[i].m_rayTo); + break; + } + case MyMouseButtonUp: + { + args->m_physicsServerPtr->removePickingConstraint(); + break; + } + + default: + { + } + } + } + } + + + args->m_sendMouseEvents.resize(args->m_allMouseEvents.size()); + for (int i=0;im_allMouseEvents.size();i++) + { + args->m_sendMouseEvents[i] = args->m_allMouseEvents[i]; + } + b3MouseEvent* mouseEvents = args->m_sendMouseEvents.size()? &args->m_sendMouseEvents[0] : 0; + + args->m_allMouseEvents.clear(); + args->m_mouseCommands.clear(); + args->m_csGUI->unlock(); + + + { + args->m_physicsServerPtr->stepSimulationRealTime(deltaTimeInSeconds, args->m_sendVrControllerEvents,numSendVrControllers, keyEvents, args->m_sendKeyEvents.size(), mouseEvents, args->m_sendMouseEvents.size()); } { if (gEnableUpdateDebugDrawLines) @@ -474,35 +456,7 @@ void MotionThreadFunc(void* userPtr,void* lsMemory) } - args->m_csGUI->lock(); - for (int i = 0; i < args->m_mouseCommands.size(); i++) - { - switch (args->m_mouseCommands[i].m_type) - { - case MyMouseMove: - { - args->m_physicsServerPtr->movePickedBody(args->m_mouseCommands[i].m_rayFrom, args->m_mouseCommands[i].m_rayTo); - break; - }; - case MyMouseButtonDown: - { - args->m_physicsServerPtr->pickBody(args->m_mouseCommands[i].m_rayFrom, args->m_mouseCommands[i].m_rayTo); - break; - } - case MyMouseButtonUp: - { - args->m_physicsServerPtr->removePickingConstraint(); - break; - } - - default: - { - } - - } - } - args->m_mouseCommands.clear(); - args->m_csGUI->unlock(); + { args->m_physicsServerPtr->processClientCommands(); @@ -541,6 +495,7 @@ struct UserDebugDrawLine double m_lifeTime; int m_itemUniqueId; + int m_trackingVisualShapeIndex; }; struct UserDebugParameter @@ -555,12 +510,16 @@ struct UserDebugParameter struct UserDebugText { char m_text[1024]; - double m_textPositionXYZ[3]; + double m_textPositionXYZ1[3]; double m_textColorRGB[3]; double textSize; double m_lifeTime; int m_itemUniqueId; + double m_textOrientation[4]; + int m_trackingVisualShapeIndex; + int m_optionFlags; + }; @@ -595,7 +554,7 @@ struct ColorWidth ATTRIBUTE_ALIGNED16( class )MultithreadedDebugDrawer : public btIDebugDraw { - class GUIHelperInterface* m_guiHelper; + struct GUIHelperInterface* m_guiHelper; int m_debugMode; btAlignedObjectArray< btAlignedObjectArray > m_sortedIndices; @@ -783,13 +742,18 @@ public: m_texels(0), m_textureId(-1) { - m_childGuiHelper = guiHelper;; + m_childGuiHelper = guiHelper; } virtual ~MultiThreadedOpenGLGuiHelper() { //delete m_childGuiHelper; + if (m_debugDraw) + { + delete m_debugDraw; + m_debugDraw = 0; + } } void setCriticalSection(b3CriticalSection* cs) @@ -971,6 +935,46 @@ public: m_cs->setSharedParam(1,eGUIHelperRemoveGraphicsInstance); workerThreadWait(); } + + int m_getShapeIndex_instance; + int getShapeIndex_shapeIndex; + + virtual int getShapeIndexFromInstance(int instance) + { + m_getShapeIndex_instance = instance; + m_cs->lock(); + m_cs->setSharedParam(1,eGUIHelperGetShapeIndexFromInstance); + workerThreadWait(); + return getShapeIndex_shapeIndex; + } + + int m_graphicsInstanceChangeTextureId; + int m_graphicsInstanceChangeTextureShapeIndex; + virtual void replaceTexture(int shapeIndex, int textureUid) + { + m_graphicsInstanceChangeTextureShapeIndex = shapeIndex; + m_graphicsInstanceChangeTextureId = textureUid; + m_cs->lock(); + m_cs->setSharedParam(1,eGUIHelperChangeGraphicsInstanceTextureId); + workerThreadWait(); + } + + + int m_changeTextureUniqueId; + const unsigned char* m_changeTextureRgbTexels; + int m_changeTextureWidth; + int m_changeTextureHeight; + + virtual void changeTexture(int textureUniqueId, const unsigned char* rgbTexels, int width, int height) + { + m_changeTextureUniqueId = textureUniqueId; + m_changeTextureRgbTexels = rgbTexels; + m_changeTextureWidth = width; + m_changeTextureHeight = height; + m_cs->lock(); + m_cs->setSharedParam(1,eGUIHelperChangeTexture); + workerThreadWait(); + } double m_rgbaColor[4]; int m_graphicsInstanceChangeColor; @@ -986,9 +990,22 @@ public: workerThreadWait(); } + double m_specularColor[3]; + int m_graphicsInstanceChangeSpecular; + virtual void changeSpecularColor(int instanceUid, const double specularColor[3]) + { + m_graphicsInstanceChangeSpecular = instanceUid; + m_specularColor[0] = specularColor[0]; + m_specularColor[1] = specularColor[1]; + m_specularColor[2] = specularColor[2]; + m_cs->lock(); + m_cs->setSharedParam(1,eGUIHelperChangeGraphicsInstanceSpecularColor); + workerThreadWait(); + } + virtual Common2dCanvasInterface* get2dCanvasInterface() { - return 0; + return m_childGuiHelper->get2dCanvasInterface(); } virtual CommonParameterInterface* getParameterInterface() @@ -1011,14 +1028,14 @@ public: { m_childGuiHelper->setUpAxis(axis); } - virtual void resetCamera(float camDist, float pitch, float yaw, float camPosX,float camPosY, float camPosZ) + virtual void resetCamera(float camDist, float yaw, float pitch, float camPosX,float camPosY, float camPosZ) { - m_childGuiHelper->resetCamera(camDist,pitch,yaw,camPosX,camPosY,camPosZ); + m_childGuiHelper->resetCamera(camDist,yaw,pitch,camPosX,camPosY,camPosZ); } - virtual bool getCameraInfo(int* width, int* height, float viewMatrix[16], float projectionMatrix[16], float camUp[3], float camForward[3],float hor[3], float vert[3] ) const + virtual bool getCameraInfo(int* width, int* height, float viewMatrix[16], float projectionMatrix[16], float camUp[3], float camForward[3],float hor[3], float vert[3], float* yaw, float* pitch, float* camDist, float camTarget[3]) const { - return m_childGuiHelper->getCameraInfo(width,height,viewMatrix,projectionMatrix,camUp,camForward,hor,vert); + return m_childGuiHelper->getCameraInfo(width,height,viewMatrix,projectionMatrix,camUp,camForward,hor,vert,yaw,pitch,camDist,camTarget); } @@ -1063,6 +1080,32 @@ public: workerThreadWait(); } + virtual void debugDisplayCameraImageData(const float viewMatrix[16], const float projectionMatrix[16], + unsigned char* pixelsRGBA, int rgbaBufferSizeInPixels, + float* depthBuffer, int depthBufferSizeInPixels, + int* segmentationMaskBuffer, int segmentationMaskBufferSizeInPixels, + int startPixelIndex, int destinationWidth, int destinationHeight, int* numPixelsCopied) + { + m_cs->lock(); + for (int i=0;i<16;i++) + { + m_viewMatrix[i] = viewMatrix[i]; + m_projectionMatrix[i] = projectionMatrix[i]; + } + m_pixelsRGBA = pixelsRGBA; + m_rgbaBufferSizeInPixels = rgbaBufferSizeInPixels; + m_depthBuffer = depthBuffer; + m_depthBufferSizeInPixels = depthBufferSizeInPixels; + m_segmentationMaskBuffer = segmentationMaskBuffer; + m_segmentationMaskBufferSizeInPixels = segmentationMaskBufferSizeInPixels; + m_startPixelIndex = startPixelIndex; + m_destinationWidth = destinationWidth; + m_destinationHeight = destinationHeight; + m_numPixelsCopied = numPixelsCopied; + + m_cs->setSharedParam(1,eGUIHelperDisplayCameraImageData); + workerThreadWait(); + } btDiscreteDynamicsWorld* m_dynamicsWorld; @@ -1078,12 +1121,16 @@ public: { } + virtual void drawText3D( const char* txt, float position[3], float orientation[4], float color[4], float size, int optionFlag) + { + } + btAlignedObjectArray m_userDebugText; UserDebugText m_tmpText; - virtual int addUserDebugText3D( const char* txt, const double positionXYZ[3], const double textColorRGB[3], double size, double lifeTime) + virtual int addUserDebugText3D( const char* txt, const double positionXYZ[3], const double orientation[4], const double textColorRGB[3], double size, double lifeTime, int trackingVisualShapeIndex, int optionFlags) { m_tmpText.m_itemUniqueId = m_uidGenerator++; @@ -1091,13 +1138,27 @@ public: m_tmpText.textSize = size; //int len = strlen(txt); strcpy(m_tmpText.m_text,txt); - m_tmpText.m_textPositionXYZ[0] = positionXYZ[0]; - m_tmpText.m_textPositionXYZ[1] = positionXYZ[1]; - m_tmpText.m_textPositionXYZ[2] = positionXYZ[2]; + m_tmpText.m_textPositionXYZ1[0] = positionXYZ[0]; + m_tmpText.m_textPositionXYZ1[1] = positionXYZ[1]; + m_tmpText.m_textPositionXYZ1[2] = positionXYZ[2]; + + m_tmpText.m_textOrientation[0] = orientation[0]; + m_tmpText.m_textOrientation[1] = orientation[1]; + m_tmpText.m_textOrientation[2] = orientation[2]; + m_tmpText.m_textOrientation[3] = orientation[3]; + m_tmpText.m_textColorRGB[0] = textColorRGB[0]; m_tmpText.m_textColorRGB[1] = textColorRGB[1]; m_tmpText.m_textColorRGB[2] = textColorRGB[2]; + m_tmpText.m_trackingVisualShapeIndex = trackingVisualShapeIndex; + + m_tmpText.m_optionFlags = optionFlags; + m_tmpText.m_textOrientation[0] = orientation[0]; + m_tmpText.m_textOrientation[1] = orientation[1]; + m_tmpText.m_textOrientation[2] = orientation[2]; + m_tmpText.m_textOrientation[3] = orientation[3]; + m_cs->lock(); m_cs->setSharedParam(1, eGUIUserDebugAddText); workerThreadWait(); @@ -1140,7 +1201,7 @@ public: btAlignedObjectArray m_userDebugLines; UserDebugDrawLine m_tmpLine; - virtual int addUserDebugLine(const double debugLineFromXYZ[3], const double debugLineToXYZ[3], const double debugLineColorRGB[3], double lineWidth, double lifeTime ) + virtual int addUserDebugLine(const double debugLineFromXYZ[3], const double debugLineToXYZ[3], const double debugLineColorRGB[3], double lineWidth, double lifeTime , int trackingVisualShapeIndex) { m_tmpLine.m_lifeTime = lifeTime; m_tmpLine.m_lineWidth = lineWidth; @@ -1156,7 +1217,7 @@ public: m_tmpLine.m_debugLineColorRGB[0] = debugLineColorRGB[0]; m_tmpLine.m_debugLineColorRGB[1] = debugLineColorRGB[1]; m_tmpLine.m_debugLineColorRGB[2] = debugLineColorRGB[2]; - + m_tmpLine.m_trackingVisualShapeIndex = trackingVisualShapeIndex; m_cs->lock(); m_cs->setSharedParam(1, eGUIUserDebugAddLine); workerThreadWait(); @@ -1206,12 +1267,16 @@ class PhysicsServerExample : public SharedMemoryCommon MotionArgs m_args[MAX_MOTION_NUM_THREADS]; MultiThreadedOpenGLGuiHelper* m_multiThreadedHelper; bool m_wantsShutdown; -#ifdef B3_USE_MIDI - RtMidiIn* m_midi; -#endif + bool m_isConnected; btClock m_clock; bool m_replay; + + struct Common2dCanvasInterface* m_canvas; + int m_canvasRGBIndex; + int m_canvasDepthIndex; + int m_canvasSegMaskIndex; + // int m_options; #ifdef BT_ENABLE_VR @@ -1220,7 +1285,7 @@ class PhysicsServerExample : public SharedMemoryCommon public: - PhysicsServerExample(MultiThreadedOpenGLGuiHelper* helper, SharedMemoryInterface* sharedMem=0, int options=0); + PhysicsServerExample(MultiThreadedOpenGLGuiHelper* helper, CommandProcessorCreationInterface* commandProcessorCreator, SharedMemoryInterface* sharedMem=0, int options=0); virtual ~PhysicsServerExample(); @@ -1246,10 +1311,10 @@ public: virtual void resetCamera() { float dist = 5; - float pitch = 50; - float yaw = 35; + float pitch = -35; + float yaw = 50; float targetPos[3]={0,0,0};//-3,2.8,-2.5}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } virtual bool wantsTermination(); @@ -1280,6 +1345,16 @@ public: return false; } + b3MouseEvent event; + event.m_buttonState = 0; + event.m_buttonIndex = -1; + event.m_mousePosX = x; + event.m_mousePosY = y; + event.m_eventType = MOUSE_MOVE_EVENT; + m_args[0].m_csGUI->lock(); + m_args[0].m_allMouseEvents.push_back(event); + m_args[0].m_csGUI->unlock(); + btVector3 rayTo = getRayTo(int(x), int(y)); btVector3 rayFrom; renderer->getActiveCamera()->getCameraPosition(rayFrom); @@ -1309,6 +1384,22 @@ public: CommonWindowInterface* window = m_guiHelper->getAppInterface()->m_window; + b3MouseEvent event; + event.m_buttonIndex = button; + event.m_mousePosX = x; + event.m_mousePosY = y; + event.m_eventType = MOUSE_BUTTON_EVENT; + if (state) + { + event.m_buttonState = eButtonIsDown + eButtonTriggered; + } else + { + event.m_buttonState = eButtonReleased; + } + + m_args[0].m_csGUI->lock(); + m_args[0].m_allMouseEvents.push_back(event); + m_args[0].m_csGUI->unlock(); if (state==1) { @@ -1411,43 +1502,56 @@ public: if (window->isModifierKeyPressed(B3G_SHIFT)) shift=0.01; - if (key=='w' && state) + btVector3 VRTeleportPos =this->m_physicsServer.getVRTeleportPosition(); + + if (gEnableDefaultKeyboardShortcuts) { - gVRTeleportPos1[0]+=shift; - saveCurrentSettingsVR(); - } - if (key=='s' && state) - { - gVRTeleportPos1[0]-=shift; - saveCurrentSettingsVR(); - } - if (key=='a' && state) - { - gVRTeleportPos1[1]-=shift; - saveCurrentSettingsVR(); - } - if (key=='d' && state) - { - gVRTeleportPos1[1]+=shift; - saveCurrentSettingsVR(); - } - if (key=='q' && state) - { - gVRTeleportPos1[2]+=shift; - saveCurrentSettingsVR(); - } - if (key=='e' && state) - { - gVRTeleportPos1[2]-=shift; - saveCurrentSettingsVR(); - } - if (key=='z' && state) - { - gVRTeleportRotZ+=shift; - gVRTeleportOrn = btQuaternion(btVector3(0, 0, 1), gVRTeleportRotZ); - saveCurrentSettingsVR(); + if (key=='w' && state) + { + VRTeleportPos[0]+=shift; + m_physicsServer.setVRTeleportPosition(VRTeleportPos); + saveCurrentSettingsVR(VRTeleportPos); + } + if (key=='s' && state) + { + VRTeleportPos[0]-=shift; + m_physicsServer.setVRTeleportPosition(VRTeleportPos); + saveCurrentSettingsVR(VRTeleportPos); + } + if (key=='a' && state) + { + VRTeleportPos[1]-=shift; + m_physicsServer.setVRTeleportPosition(VRTeleportPos); + saveCurrentSettingsVR(VRTeleportPos); + } + if (key=='d' && state) + { + VRTeleportPos[1]+=shift; + m_physicsServer.setVRTeleportPosition(VRTeleportPos); + saveCurrentSettingsVR(VRTeleportPos); + } + if (key=='q' && state) + { + VRTeleportPos[2]+=shift; + m_physicsServer.setVRTeleportPosition(VRTeleportPos); + saveCurrentSettingsVR(VRTeleportPos); + } + if (key=='e' && state) + { + VRTeleportPos[2]-=shift; + m_physicsServer.setVRTeleportPosition(VRTeleportPos); + saveCurrentSettingsVR(VRTeleportPos); + } + if (key=='z' && state) + { + gVRTeleportRotZ+=shift; + btQuaternion VRTeleportOrn = btQuaternion(btVector3(0, 0, 1), gVRTeleportRotZ); + m_physicsServer.setVRTeleportOrientation(VRTeleportOrn); + saveCurrentSettingsVR(VRTeleportPos); + } } + return false; } @@ -1467,33 +1571,33 @@ public: setSharedMemoryKey(shmemKey); } - if (args.GetCmdLineArgument("camPosX", gVRTeleportPos1[0])) + btVector3 vrTeleportPos = m_physicsServer.getVRTeleportPosition(); + + if (args.GetCmdLineArgument("camPosX", vrTeleportPos[0])) { - printf("camPosX=%f\n", gVRTeleportPos1[0]); + printf("camPosX=%f\n", vrTeleportPos[0]); } - if (args.GetCmdLineArgument("camPosY", gVRTeleportPos1[1])) + if (args.GetCmdLineArgument("camPosY", vrTeleportPos[1])) { - printf("camPosY=%f\n", gVRTeleportPos1[1]); + printf("camPosY=%f\n", vrTeleportPos[1]); } - if (args.GetCmdLineArgument("camPosZ", gVRTeleportPos1[2])) + if (args.GetCmdLineArgument("camPosZ", vrTeleportPos[2])) { - printf("camPosZ=%f\n", gVRTeleportPos1[2]); + printf("camPosZ=%f\n", vrTeleportPos[2]); } + m_physicsServer.setVRTeleportPosition(vrTeleportPos); + float camRotZ = 0.f; if (args.GetCmdLineArgument("camRotZ", camRotZ)) { printf("camRotZ = %f\n", camRotZ); btQuaternion ornZ(btVector3(0, 0, 1), camRotZ); - gVRTeleportOrn = ornZ; + m_physicsServer.setVRTeleportOrientation(ornZ); } - if (args.CheckCmdLineFlag("robotassets")) - { - gCreateDefaultRobotAssets = true; - } if (args.CheckCmdLineFlag("realtimesimulation")) { @@ -1501,69 +1605,44 @@ public: m_physicsServer.enableRealTimeSimulation(true); } - if (args.CheckCmdLineFlag("norobotassets")) + if (args.CheckCmdLineFlag("disableDefaultKeyboardShortcuts")) { - gCreateDefaultRobotAssets = false; + gEnableDefaultKeyboardShortcuts = false; + } + if (args.CheckCmdLineFlag("enableDefaultKeyboardShortcuts")) + { + gEnableDefaultKeyboardShortcuts = true; + } + if (args.CheckCmdLineFlag("disableDefaultMousePicking")) + { + gEnableDefaultMousePicking = false; + } + if (args.CheckCmdLineFlag("enableDefaultMousePicking")) + { + gEnableDefaultMousePicking = true; } - } }; -#ifdef B3_USE_MIDI -static bool chooseMidiPort(RtMidiIn *rtmidi) -{ - /* - std::cout << "\nWould you like to open a virtual input port? [y/N] "; - - std::string keyHit; - std::getline( std::cin, keyHit ); - if ( keyHit == "y" ) { - rtmidi->openVirtualPort(); - return true; - } - */ - - std::string portName; - unsigned int i = 0, nPorts = rtmidi->getPortCount(); - if (nPorts == 0) { - std::cout << "No midi input ports available!" << std::endl; - return false; - } - - if (nPorts > 0) { - std::cout << "\nOpening midi input port " << rtmidi->getPortName() << std::endl; - } - - // std::getline( std::cin, keyHit ); // used to clear out stdin - rtmidi->openPort(i); - - return true; -} -#endif //B3_USE_MIDI - - -PhysicsServerExample::PhysicsServerExample(MultiThreadedOpenGLGuiHelper* helper, SharedMemoryInterface* sharedMem, int options) +PhysicsServerExample::PhysicsServerExample(MultiThreadedOpenGLGuiHelper* helper,CommandProcessorCreationInterface* commandProcessorCreator, SharedMemoryInterface* sharedMem, int options) :SharedMemoryCommon(helper), -m_physicsServer(sharedMem), +m_physicsServer(commandProcessorCreator,sharedMem,0), m_wantsShutdown(false), m_isConnected(false), -m_replay(false) +m_replay(false), +m_canvas(0), +m_canvasRGBIndex(-1), +m_canvasDepthIndex(-1), +m_canvasSegMaskIndex(-1) //m_options(options) #ifdef BT_ENABLE_VR ,m_tinyVrGui(0) #endif { -#ifdef B3_USE_MIDI - m_midi = new RtMidiIn(); - chooseMidiPort(m_midi); - m_midi->setCallback(&midiCallback); - // Don't ignore sysex, timing, or active sensing messages. - m_midi->ignoreTypes(false, false, false); -#endif m_multiThreadedHelper = helper; // b3Printf("Started PhysicsServer\n"); } @@ -1572,10 +1651,16 @@ m_replay(false) PhysicsServerExample::~PhysicsServerExample() { -#ifdef B3_USE_MIDI - delete m_midi; - m_midi = 0; -#endif + if (m_canvas) + { + if (m_canvasRGBIndex>=0) + m_canvas->destroyCanvas(m_canvasRGBIndex); + if (m_canvasDepthIndex>=0) + m_canvas->destroyCanvas(m_canvasDepthIndex); + if (m_canvasSegMaskIndex>=0) + m_canvas->destroyCanvas(m_canvasSegMaskIndex); + } + #ifdef BT_ENABLE_VR delete m_tinyVrGui; #endif @@ -1648,6 +1733,52 @@ void PhysicsServerExample::initPhysics() m_isConnected = m_physicsServer.connectSharedMemory( m_guiHelper); + + + + { + m_canvas = m_guiHelper->get2dCanvasInterface(); + if (m_canvas) + { + + + m_canvasRGBIndex = m_canvas->createCanvas("Synthetic Camera RGB data",gCamVisualizerWidth, gCamVisualizerHeight); + //m_canvasDepthIndex = m_canvas->createCanvas("Synthetic Camera Depth data",gCamVisualizerWidth, gCamVisualizerHeight); + //m_canvasSegMaskIndex = m_canvas->createCanvas("Synthetic Camera Segmentation Mask",gCamVisualizerWidth, gCamVisualizerHeight); + + for (int i=0;isetPixel(m_canvasRGBIndex,i,j,red,green,blue,alpha); + if (m_canvasSegMaskIndex>=0) + m_canvas->setPixel(m_canvasDepthIndex,i,j,red,green,blue,alpha); + if (m_canvasSegMaskIndex>=0) + m_canvas->setPixel(m_canvasSegMaskIndex,i,j,red,green,blue,alpha); + + } + } + m_canvas->refreshImageData(m_canvasRGBIndex); + + if (m_canvasDepthIndex>=0) + m_canvas->refreshImageData(m_canvasDepthIndex); + if (m_canvasSegMaskIndex>=0) + m_canvas->refreshImageData(m_canvasSegMaskIndex); + + + } + + } } @@ -1753,22 +1884,32 @@ void PhysicsServerExample::updateGraphics() if (flag==COV_ENABLE_VR_TELEPORTING) { - gEnableTeleporting = enable; + gEnableTeleporting = (enable!=0); } if (flag == COV_ENABLE_VR_PICKING) { - gEnablePicking = enable; + gEnablePicking = (enable!=0); } if (flag ==COV_ENABLE_SYNC_RENDERING_INTERNAL) { - gEnableSyncPhysicsRendering = enable; + gEnableSyncPhysicsRendering = (enable!=0); } if (flag == COV_ENABLE_RENDERING) { - gEnableRendering = enable; + gEnableRendering = (enable!=0); + } + + if (flag == COV_ENABLE_KEYBOARD_SHORTCUTS) + { + gEnableDefaultKeyboardShortcuts = (enable!=0); + } + + if (flag == COV_ENABLE_MOUSE_PICKING) + { + gEnableDefaultMousePicking = (enable!=0); } m_multiThreadedHelper->m_childGuiHelper->setVisualizerFlag(m_multiThreadedHelper->m_visualizerFlag,m_multiThreadedHelper->m_visualizerEnable); @@ -1790,6 +1931,13 @@ void PhysicsServerExample::updateGraphics() } case eGUIHelperRemoveAllGraphicsInstances: { +#ifdef BT_ENABLE_VR + if (m_tinyVrGui) + { + delete m_tinyVrGui; + m_tinyVrGui=0; + } +#endif //BT_ENABLE_VR m_multiThreadedHelper->m_childGuiHelper->removeAllGraphicsInstances(); if (m_multiThreadedHelper->m_childGuiHelper->getRenderInterface()) { @@ -1808,13 +1956,165 @@ void PhysicsServerExample::updateGraphics() break; } + case eGUIHelperGetShapeIndexFromInstance: + { + m_multiThreadedHelper->getShapeIndex_shapeIndex = m_multiThreadedHelper->m_childGuiHelper->getShapeIndexFromInstance(m_multiThreadedHelper->m_getShapeIndex_instance); + m_multiThreadedHelper->mainThreadRelease(); + break; + } + + case eGUIHelperChangeGraphicsInstanceTextureId: + { + m_multiThreadedHelper->m_childGuiHelper->replaceTexture( + m_multiThreadedHelper->m_graphicsInstanceChangeTextureShapeIndex, + m_multiThreadedHelper->m_graphicsInstanceChangeTextureId); + m_multiThreadedHelper->mainThreadRelease(); + break; + } + + + case eGUIHelperChangeTexture: + { + m_multiThreadedHelper->m_childGuiHelper->changeTexture( + m_multiThreadedHelper->m_changeTextureUniqueId, + m_multiThreadedHelper->m_changeTextureRgbTexels, + m_multiThreadedHelper->m_changeTextureWidth, + m_multiThreadedHelper->m_changeTextureHeight); + m_multiThreadedHelper->mainThreadRelease(); + break; + } + case eGUIHelperChangeGraphicsInstanceRGBAColor: { m_multiThreadedHelper->m_childGuiHelper->changeRGBAColor(m_multiThreadedHelper->m_graphicsInstanceChangeColor,m_multiThreadedHelper->m_rgbaColor); m_multiThreadedHelper->mainThreadRelease(); break; } + case eGUIHelperChangeGraphicsInstanceSpecularColor: + { + m_multiThreadedHelper->m_childGuiHelper->changeSpecularColor(m_multiThreadedHelper->m_graphicsInstanceChangeSpecular,m_multiThreadedHelper->m_specularColor); + m_multiThreadedHelper->mainThreadRelease(); + break; + } + case eGUIHelperDisplayCameraImageData: + { + if (m_canvas) + { + + int numBytesPerPixel= 4; + int startRGBIndex = m_multiThreadedHelper->m_startPixelIndex*numBytesPerPixel; + int endRGBIndex = startRGBIndex + (*m_multiThreadedHelper->m_numPixelsCopied*numBytesPerPixel); + + int startDepthIndex = m_multiThreadedHelper->m_startPixelIndex; + int endDepthIndex = startDepthIndex + (*m_multiThreadedHelper->m_numPixelsCopied); + + int startSegIndex = m_multiThreadedHelper->m_startPixelIndex; + int endSegIndex = startSegIndex + (*m_multiThreadedHelper->m_numPixelsCopied); + + btScalar frustumZNear = m_multiThreadedHelper->m_projectionMatrix[14]/(m_multiThreadedHelper->m_projectionMatrix[10]-1); + btScalar frustumZFar = 20;//m_multiThreadedHelper->m_projectionMatrix[14]/(m_multiThreadedHelper->m_projectionMatrix[10]+1); + + for (int i=0;im_destinationWidth)/float(gCamVisualizerWidth))); + int yIndex = int(float(j)*(float(m_multiThreadedHelper->m_destinationHeight)/float(gCamVisualizerHeight))); + btClamp(xIndex,0,m_multiThreadedHelper->m_destinationWidth); + btClamp(yIndex,0,m_multiThreadedHelper->m_destinationHeight); + int bytesPerPixel = 4; //RGBA + + if (m_canvasRGBIndex >=0) + { + int rgbPixelIndex = (xIndex+yIndex*m_multiThreadedHelper->m_destinationWidth)*bytesPerPixel; + if (rgbPixelIndex >= startRGBIndex && rgbPixelIndex < endRGBIndex) + { + m_canvas->setPixel(m_canvasRGBIndex,i,j, + m_multiThreadedHelper->m_pixelsRGBA[rgbPixelIndex-startRGBIndex], + m_multiThreadedHelper->m_pixelsRGBA[rgbPixelIndex+1-startRGBIndex], + m_multiThreadedHelper->m_pixelsRGBA[rgbPixelIndex+2-startRGBIndex], + 255); //alpha set to 255 + } + } + if (m_canvasDepthIndex >=0 && 0!= m_multiThreadedHelper->m_depthBuffer) + { + int depthPixelIndex = (xIndex+yIndex*m_multiThreadedHelper->m_destinationWidth); + if (depthPixelIndex >= startDepthIndex && depthPixelIndex < endDepthIndex) + { + float depthValue = m_multiThreadedHelper->m_depthBuffer[depthPixelIndex-startDepthIndex]; + //todo: rescale the depthValue to [0..255] + if (depthValue>-1e20) + { + int rgb = 0; + btScalar minDepthValue = 0.98;//todo: compute more reasonably min/max depth range + btScalar maxDepthValue = 1; + + if (maxDepthValue!=minDepthValue) + { + rgb = (depthValue-minDepthValue)*(255. / (btFabs(maxDepthValue-minDepthValue))); + if (rgb<0 || rgb>255) + { + //printf("rgb=%d\n",rgb); + } + } + m_canvas->setPixel(m_canvasDepthIndex,i,j, + rgb, + rgb, + 255, 255); //alpha set to 255 + } else + { + m_canvas->setPixel(m_canvasDepthIndex,i,j, + 0, + 0, + 0, 255); //alpha set to 255 + } + } + } + + if (m_canvasSegMaskIndex>=0 && (0!=m_multiThreadedHelper->m_segmentationMaskBuffer)) + { + int segmentationMaskPixelIndex = (xIndex+yIndex*m_multiThreadedHelper->m_destinationWidth); + + if (segmentationMaskPixelIndex >= startSegIndex && segmentationMaskPixelIndex < endSegIndex) + { + int segmentationMask = m_multiThreadedHelper->m_segmentationMaskBuffer[segmentationMaskPixelIndex-startSegIndex]; + btVector4 palette[4] = {btVector4(32,255,32,255), + btVector4(32,32,255,255), + btVector4(255,255,32,255), + btVector4(32,255,255,255)}; + if (segmentationMask>=0) + { + btVector4 rgb = palette[segmentationMask&3]; + m_canvas->setPixel(m_canvasSegMaskIndex,i,j, + rgb.x(), + rgb.y(), + rgb.z(), 255); //alpha set to 255 + } else + { + m_canvas->setPixel(m_canvasSegMaskIndex,i,j, + 0, + 0, + 0, 255); //alpha set to 255 + } + } + } + } + } + + if (m_canvasRGBIndex >=0) + m_canvas->refreshImageData(m_canvasRGBIndex); + + if (m_canvasDepthIndex >=0) + m_canvas->refreshImageData(m_canvasDepthIndex); + if (m_canvasSegMaskIndex >=0) + m_canvas->refreshImageData(m_canvasSegMaskIndex); + + + } + m_multiThreadedHelper->mainThreadRelease(); + break; + } case eGUIHelperCopyCameraImageData: { m_multiThreadedHelper->m_childGuiHelper->copyCameraImageData(m_multiThreadedHelper->m_viewMatrix, @@ -1829,7 +2129,8 @@ void PhysicsServerExample::updateGraphics() m_multiThreadedHelper->m_destinationWidth, m_multiThreadedHelper->m_destinationHeight, m_multiThreadedHelper->m_numPixelsCopied); - m_multiThreadedHelper->mainThreadRelease(); + + m_multiThreadedHelper->mainThreadRelease(); break; } case eGUIHelperAutogenerateGraphicsObjects: @@ -1977,7 +2278,6 @@ extern int gDroppedSimulationSteps; extern int gNumSteps; extern double gDtInSec; extern double gSubStep; -extern int gVRTrackingObjectUniqueId; extern btTransform gVRTrackingObjectTr; @@ -2004,6 +2304,11 @@ void PhysicsServerExample::drawUserDebugLines() for (int i = 0; im_userDebugLines.size(); i++) { + + + + + btVector3 from; from.setValue(m_multiThreadedHelper->m_userDebugLines[i].m_debugLineFromXYZ[0], m_multiThreadedHelper->m_userDebugLines[i].m_debugLineFromXYZ[1], @@ -2013,6 +2318,26 @@ void PhysicsServerExample::drawUserDebugLines() m_multiThreadedHelper->m_userDebugLines[i].m_debugLineToXYZ[1], m_multiThreadedHelper->m_userDebugLines[i].m_debugLineToXYZ[2]); + int graphicsIndex = m_multiThreadedHelper->m_userDebugLines[i].m_trackingVisualShapeIndex; + if (graphicsIndex>=0) + { + CommonRenderInterface* renderer = m_guiHelper->getRenderInterface(); + if (renderer) + { + float parentPos[3]; + float parentOrn[4]; + + if (renderer->readSingleInstanceTransformToCPU(parentPos,parentOrn,graphicsIndex)) + { + btTransform parentTrans; + parentTrans.setOrigin(btVector3(parentPos[0],parentPos[1],parentPos[2])); + parentTrans.setRotation(btQuaternion(parentOrn[0],parentOrn[1],parentOrn[2],parentOrn[3])); + from = parentTrans*from; + toX = parentTrans*toX; + } + } + } + btVector3 color; color.setValue(m_multiThreadedHelper->m_userDebugLines[i].m_debugLineColorRGB[0], m_multiThreadedHelper->m_userDebugLines[i].m_debugLineColorRGB[1], @@ -2071,11 +2396,77 @@ void PhysicsServerExample::drawUserDebugLines() for (int i = 0; im_userDebugText.size(); i++) { + +// int optionFlag = CommonGraphicsApp::eDrawText3D_OrtogonalFaceCamera|CommonGraphicsApp::eDrawText3D_TrueType; + //int optionFlag = CommonGraphicsApp::eDrawText3D_OrtogonalFaceCamera; + int optionFlag = 0; + float orientation[4] = {0,0,0,1}; + if (m_multiThreadedHelper->m_userDebugText[i].m_optionFlags&CommonGraphicsApp::eDrawText3D_OrtogonalFaceCamera) + { + orientation[0] = m_multiThreadedHelper->m_userDebugText[i].m_textOrientation[0]; + orientation[1] = m_multiThreadedHelper->m_userDebugText[i].m_textOrientation[1]; + orientation[2] = m_multiThreadedHelper->m_userDebugText[i].m_textOrientation[2]; + orientation[3] = m_multiThreadedHelper->m_userDebugText[i].m_textOrientation[3]; + optionFlag |= CommonGraphicsApp::eDrawText3D_TrueType; + } else + { + optionFlag |= CommonGraphicsApp::eDrawText3D_OrtogonalFaceCamera; + } + + float colorRGBA[4] = { + m_multiThreadedHelper->m_userDebugText[i].m_textColorRGB[0], + m_multiThreadedHelper->m_userDebugText[i].m_textColorRGB[1], + m_multiThreadedHelper->m_userDebugText[i].m_textColorRGB[2], + 1.}; + + float pos[3] = {m_multiThreadedHelper->m_userDebugText[i].m_textPositionXYZ1[0], + m_multiThreadedHelper->m_userDebugText[i].m_textPositionXYZ1[1], + m_multiThreadedHelper->m_userDebugText[i].m_textPositionXYZ1[2]}; + + int graphicsIndex = m_multiThreadedHelper->m_userDebugText[i].m_trackingVisualShapeIndex; + if (graphicsIndex>=0) + { + CommonRenderInterface* renderer = m_guiHelper->getRenderInterface(); + if (renderer) + { + float parentPos[3]; + float parentOrn[4]; + + if (renderer->readSingleInstanceTransformToCPU(parentPos,parentOrn,graphicsIndex)) + { + btTransform parentTrans; + parentTrans.setOrigin(btVector3(parentPos[0],parentPos[1],parentPos[2])); + parentTrans.setRotation(btQuaternion(parentOrn[0],parentOrn[1],parentOrn[2],parentOrn[3])); + btTransform childTr; + childTr.setOrigin(btVector3(pos[0],pos[1],pos[2])); + childTr.setRotation(btQuaternion(orientation[0],orientation[1],orientation[2],orientation[3])); + + btTransform siteTr = parentTrans*childTr; + pos[0] = siteTr.getOrigin()[0]; + pos[1] = siteTr.getOrigin()[1]; + pos[2] = siteTr.getOrigin()[2]; + btQuaternion siteOrn = siteTr.getRotation(); + orientation[0] = siteOrn[0]; + orientation[1] = siteOrn[1]; + orientation[2] = siteOrn[2]; + orientation[3] = siteOrn[3]; + } + } + } + + + m_guiHelper->getAppInterface()->drawText3D(m_multiThreadedHelper->m_userDebugText[i].m_text, + pos,orientation,colorRGBA, + m_multiThreadedHelper->m_userDebugText[i].textSize,optionFlag); + + + /*m_guiHelper->getAppInterface()->drawText3D(m_multiThreadedHelper->m_userDebugText[i].m_text, m_multiThreadedHelper->m_userDebugText[i].m_textPositionXYZ[0], m_multiThreadedHelper->m_userDebugText[i].m_textPositionXYZ[1], m_multiThreadedHelper->m_userDebugText[i].m_textPositionXYZ[2], m_multiThreadedHelper->m_userDebugText[i].textSize); + */ } } @@ -2085,33 +2476,23 @@ void PhysicsServerExample::drawUserDebugLines() void PhysicsServerExample::renderScene() { btTransform vrTrans; - //gVRTeleportPos1 = gVRTeleportPosLocal; - //gVRTeleportOrn = gVRTeleportOrnLocal; - ///little VR test to follow/drive Husky vehicle - if (gVRTrackingObjectUniqueId >= 0) - { - btTransform vrTrans; - vrTrans.setOrigin(gVRTeleportPosLocal); - vrTrans.setRotation(gVRTeleportOrnLocal); - - vrTrans = vrTrans * gVRTrackingObjectTr; - gVRTeleportPos1 = vrTrans.getOrigin(); - gVRTeleportOrn = vrTrans.getRotation(); - } B3_PROFILE("PhysicsServerExample::RenderScene"); drawUserDebugLines(); - if (gEnableRealTimeSimVR) + if (m_physicsServer.isRealTimeSimulationEnabled()) { static int frameCount=0; - //static btScalar prevTime = m_clock.getTimeSeconds(); + static btScalar prevTime = m_clock.getTimeSeconds(); frameCount++; + + static char line0[1024]={0}; + static char line1[1024]={0}; #if 0 @@ -2119,7 +2500,8 @@ void PhysicsServerExample::renderScene() int numFrames = 200; static int count = 0; count++; - + + if (0 == (count & 1)) { btScalar curTime = m_clock.getTimeSeconds(); @@ -2160,14 +2542,13 @@ void PhysicsServerExample::renderScene() { b3Transform tr;tr.setIdentity(); - tr.setOrigin(b3MakeVector3(gVRController2Pos[0],gVRController2Pos[1],gVRController2Pos[2])); - tr.setRotation(b3Quaternion(gVRController2Orn[0],gVRController2Orn[1],gVRController2Orn[2],gVRController2Orn[3])); + btVector3 VRController2Pos = m_physicsServer.getVRTeleportPosition(); + btQuaternion VRController2Orn = m_physicsServer.getVRTeleportOrientation(); + tr.setOrigin(b3MakeVector3(VRController2Pos[0],VRController2Pos[1],VRController2Pos[2])); + tr.setRotation(b3Quaternion(VRController2Orn[0],VRController2Orn[1],VRController2Orn[2],VRController2Orn[3])); tr = tr*b3Transform(b3Quaternion(0,0,-SIMD_HALF_PI),b3MakeVector3(0,0,0)); b3Scalar dt = 0.01; m_tinyVrGui->clearTextArea(); - static char line0[1024]; - static char line1[1024]; - m_tinyVrGui->grapicalPrintf(line0,0,0,0,0,0,255); m_tinyVrGui->grapicalPrintf(line1,0,16,255,255,255,255); @@ -2182,8 +2563,8 @@ void PhysicsServerExample::renderScene() btTransform tr2a, tr2; tr2a.setIdentity(); tr2.setIdentity(); - tr2.setOrigin(gVRTeleportPos1); - tr2a.setRotation(gVRTeleportOrn); + tr2.setOrigin(m_physicsServer.getVRTeleportPosition()); + tr2a.setRotation(m_physicsServer.getVRTeleportOrientation()); btTransform trTotal = tr2*tr2a; btTransform trInv = trTotal.inverse(); @@ -2246,9 +2627,8 @@ void PhysicsServerExample::renderScene() if (m_guiHelper->getAppInterface()->m_renderer->getActiveCamera()->isVRCamera()) { - if (!gEnableRealTimeSimVR) + if (!m_physicsServer.isRealTimeSimulationEnabled()) { - gEnableRealTimeSimVR = true; m_physicsServer.enableRealTimeSimulation(1); } } @@ -2260,6 +2640,11 @@ void PhysicsServerExample::renderScene() void PhysicsServerExample::physicsDebugDraw(int debugDrawFlags) { + if (gEnableSyncPhysicsRendering) + { + m_physicsServer.syncPhysicsToGraphics(); + } + drawUserDebugLines(); if (gEnableRendering) @@ -2343,35 +2728,6 @@ btVector3 PhysicsServerExample::getRayTo(int x,int y) } -extern int gSharedMemoryKey; - - -class CommonExampleInterface* PhysicsServerCreateFunc(struct CommonExampleOptions& options) -{ - - MultiThreadedOpenGLGuiHelper* guiHelperWrapper = new MultiThreadedOpenGLGuiHelper(options.m_guiHelper->getAppInterface(),options.m_guiHelper); - - - PhysicsServerExample* example = new PhysicsServerExample(guiHelperWrapper, - options.m_sharedMem, - options.m_option); - - if (gSharedMemoryKey>=0) - { - example->setSharedMemoryKey(gSharedMemoryKey); - } - if (options.m_option & PHYSICS_SERVER_ENABLE_COMMAND_LOGGING) - { - example->enableCommandLogging(); - } - if (options.m_option & PHYSICS_SERVER_REPLAY_FROM_COMMAND_LOG) - { - example->replayFromLogFile(); - } - return example; - -} - void PhysicsServerExample::vrControllerButtonCallback(int controllerId, int button, int state, float pos[4], float orn[4]) @@ -2384,7 +2740,6 @@ void PhysicsServerExample::vrControllerButtonCallback(int controllerId, int butt if (gGraspingController < 0) { gGraspingController = controllerId; - gEnableKukaControl = true; } btTransform trLocal; @@ -2403,8 +2758,8 @@ void PhysicsServerExample::vrControllerButtonCallback(int controllerId, int butt - tr2.setOrigin(gVRTeleportPos1); - tr2a.setRotation(gVRTeleportOrn); + tr2.setOrigin(m_physicsServer.getVRTeleportPosition()); + tr2a.setRotation(m_physicsServer.getVRTeleportOrientation()); btTransform trTotal = tr2*tr2a*trOrg*trLocal; @@ -2414,8 +2769,7 @@ void PhysicsServerExample::vrControllerButtonCallback(int controllerId, int butt { if (button == 1 && state == 0) { - //gResetSimulation = true; - gVRTeleportPos1 = gLastPickPos; + } } else { @@ -2456,7 +2810,6 @@ void PhysicsServerExample::vrControllerButtonCallback(int controllerId, int butt if (controllerId == gGraspingController) { - gCreateObjectSimVR = 1; } else { @@ -2472,7 +2825,7 @@ void PhysicsServerExample::vrControllerButtonCallback(int controllerId, int butt if (controllerId == gGraspingController && (button == 33)) { - gVRGripperClosed =(state!=0); + } else { @@ -2542,25 +2895,18 @@ void PhysicsServerExample::vrControllerMoveCallback(int controllerId, float pos[ - tr2.setOrigin(gVRTeleportPos1); - tr2a.setRotation(gVRTeleportOrn); + tr2.setOrigin(m_physicsServer.getVRTeleportPosition()); + tr2a.setRotation(m_physicsServer.getVRTeleportOrientation()); btTransform trTotal = tr2*tr2a*trOrg*trLocal; if (controllerId == gGraspingController) { - gVRGripperAnalog = analogAxis; - gVRGripperPos = trTotal.getOrigin(); - gVRGripperOrn = trTotal.getRotation(); } else { - gVRGripper2Analog = analogAxis; - gVRController2Pos = trTotal.getOrigin(); - gVRController2Orn = trTotal.getRotation(); - m_args[0].m_vrControllerPos[controllerId] = trTotal.getOrigin(); m_args[0].m_vrControllerOrn[controllerId] = trTotal.getRotation(); } @@ -2603,8 +2949,8 @@ void PhysicsServerExample::vrHMDMoveCallback(int controllerId, float pos[4], flo tr2a.setIdentity(); btTransform tr2; tr2.setIdentity(); - tr2.setOrigin(gVRTeleportPos1); - tr2a.setRotation(gVRTeleportOrn); + tr2.setOrigin(m_physicsServer.getVRTeleportPosition()); + tr2a.setRotation(m_physicsServer.getVRTeleportOrientation()); btTransform trTotal = tr2*tr2a*trOrg*trLocal; @@ -2645,8 +2991,8 @@ void PhysicsServerExample::vrGenericTrackerMoveCallback(int controllerId, float tr2a.setIdentity(); btTransform tr2; tr2.setIdentity(); - tr2.setOrigin(gVRTeleportPos1); - tr2a.setRotation(gVRTeleportOrn); + tr2.setOrigin(m_physicsServer.getVRTeleportPosition()); + tr2a.setRotation(m_physicsServer.getVRTeleportOrientation()); btTransform trTotal = tr2*tr2a*trOrg*trLocal; m_args[0].m_csGUI->lock(); @@ -2663,4 +3009,36 @@ void PhysicsServerExample::vrGenericTrackerMoveCallback(int controllerId, float m_args[0].m_csGUI->unlock(); } -B3_STANDALONE_EXAMPLE(PhysicsServerCreateFunc) + +extern int gSharedMemoryKey; + + +class CommonExampleInterface* PhysicsServerCreateFuncInternal(struct CommonExampleOptions& options) +{ + + MultiThreadedOpenGLGuiHelper* guiHelperWrapper = new MultiThreadedOpenGLGuiHelper(options.m_guiHelper->getAppInterface(),options.m_guiHelper); + + + PhysicsServerExample* example = new PhysicsServerExample(guiHelperWrapper, + options.m_commandProcessorCreation, + options.m_sharedMem, + options.m_option); + + if (gSharedMemoryKey>=0) + { + example->setSharedMemoryKey(gSharedMemoryKey); + } + if (options.m_option & PHYSICS_SERVER_ENABLE_COMMAND_LOGGING) + { + example->enableCommandLogging(); + } + if (options.m_option & PHYSICS_SERVER_REPLAY_FROM_COMMAND_LOG) + { + example->replayFromLogFile(); + } + return example; + +} + + + diff --git a/examples/SharedMemory/PhysicsServerExample.h b/examples/SharedMemory/PhysicsServerExample.h index 8df83bc98..0f983c843 100644 --- a/examples/SharedMemory/PhysicsServerExample.h +++ b/examples/SharedMemory/PhysicsServerExample.h @@ -8,7 +8,9 @@ enum PhysicsServerOptions PHYSICS_SERVER_USE_RTC_CLOCK = 4, }; -class CommonExampleInterface* PhysicsServerCreateFunc(struct CommonExampleOptions& options); +///Don't use PhysicsServerCreateFuncInternal directly +///Use PhysicsServerCreateFuncBullet2 instead, or initialize options.m_commandProcessor +class CommonExampleInterface* PhysicsServerCreateFuncInternal(struct CommonExampleOptions& options); #endif //PHYSICS_SERVER_EXAMPLE_H diff --git a/examples/SharedMemory/PhysicsServerExampleBullet2.cpp b/examples/SharedMemory/PhysicsServerExampleBullet2.cpp new file mode 100644 index 000000000..fbd7cd9d2 --- /dev/null +++ b/examples/SharedMemory/PhysicsServerExampleBullet2.cpp @@ -0,0 +1,35 @@ + +#include "PhysicsServerExampleBullet2.h" +#include "PhysicsServerExample.h" +#include "PhysicsServerCommandProcessor.h" +#include "../CommonInterfaces/CommonExampleInterface.h" + +struct Bullet2CommandProcessorCreation : public CommandProcessorCreationInterface +{ + virtual class CommandProcessorInterface* createCommandProcessor() + { + PhysicsServerCommandProcessor* proc = new PhysicsServerCommandProcessor; + return proc; + } + + virtual void deleteCommandProcessor(CommandProcessorInterface* proc) + { + delete proc; + } +}; + + +static Bullet2CommandProcessorCreation sBullet2CommandCreator; + +CommonExampleInterface* PhysicsServerCreateFuncBullet2(struct CommonExampleOptions& options) +{ + options.m_commandProcessorCreation = &sBullet2CommandCreator; + + CommonExampleInterface* example = PhysicsServerCreateFuncInternal(options); + return example; + +} + +B3_STANDALONE_EXAMPLE(PhysicsServerCreateFuncBullet2) + + diff --git a/examples/SharedMemory/PhysicsServerExampleBullet2.h b/examples/SharedMemory/PhysicsServerExampleBullet2.h new file mode 100644 index 000000000..5281caa2f --- /dev/null +++ b/examples/SharedMemory/PhysicsServerExampleBullet2.h @@ -0,0 +1,9 @@ + +#ifndef PHYSICS_SERVER_EXAMPLE_BULLET_2_H +#define PHYSICS_SERVER_EXAMPLE_BULLET_2_H + + + +class CommonExampleInterface* PhysicsServerCreateFuncBullet2(struct CommonExampleOptions& options); + +#endif //PHYSICS_SERVER_EXAMPLE_BULLET_2_H diff --git a/examples/SharedMemory/PhysicsServerSharedMemory.cpp b/examples/SharedMemory/PhysicsServerSharedMemory.cpp index b145db6c6..22fb5b577 100644 --- a/examples/SharedMemory/PhysicsServerSharedMemory.cpp +++ b/examples/SharedMemory/PhysicsServerSharedMemory.cpp @@ -3,7 +3,7 @@ #include "Win32SharedMemory.h" #include "../CommonInterfaces/CommonRenderInterface.h" - +#include "../CommonInterfaces/CommonExampleInterface.h" #include "btBulletDynamicsCommon.h" #include "LinearMath/btTransform.h" @@ -30,8 +30,9 @@ struct PhysicsServerSharedMemoryInternalData int m_sharedMemoryKey; bool m_areConnected[MAX_SHARED_MEMORY_BLOCKS]; bool m_verboseOutput; - PhysicsServerCommandProcessor* m_commandProcessor; - + CommandProcessorInterface* m_commandProcessor; + CommandProcessorCreationInterface* m_commandProcessorCreator; + PhysicsServerSharedMemoryInternalData() :m_sharedMemory(0), m_ownsSharedMemory(false), @@ -64,9 +65,10 @@ struct PhysicsServerSharedMemoryInternalData }; -PhysicsServerSharedMemory::PhysicsServerSharedMemory(SharedMemoryInterface* sharedMem) +PhysicsServerSharedMemory::PhysicsServerSharedMemory(CommandProcessorCreationInterface* commandProcessorCreator, SharedMemoryInterface* sharedMem, int bla) { m_data = new PhysicsServerSharedMemoryInternalData(); + m_data->m_commandProcessorCreator = commandProcessorCreator; if (sharedMem) { m_data->m_sharedMemory = sharedMem; @@ -81,17 +83,13 @@ PhysicsServerSharedMemory::PhysicsServerSharedMemory(SharedMemoryInterface* shar m_data->m_ownsSharedMemory = true; } - m_data->m_commandProcessor = new PhysicsServerCommandProcessor; + m_data->m_commandProcessor = commandProcessorCreator->createCommandProcessor(); } PhysicsServerSharedMemory::~PhysicsServerSharedMemory() { - - m_data->m_commandProcessor->deleteDynamicsWorld(); - delete m_data->m_commandProcessor; - if (m_data->m_sharedMemory) { if (m_data->m_verboseOutput) @@ -105,15 +103,16 @@ PhysicsServerSharedMemory::~PhysicsServerSharedMemory() m_data->m_sharedMemory = 0; } - + m_data->m_commandProcessorCreator->deleteCommandProcessor(m_data->m_commandProcessor); delete m_data; } -void PhysicsServerSharedMemory::resetDynamicsWorld() +/*void PhysicsServerSharedMemory::resetDynamicsWorld() { m_data->m_commandProcessor->deleteDynamicsWorld(); m_data->m_commandProcessor ->createEmptyDynamicsWorld(); } +*/ void PhysicsServerSharedMemory::setSharedMemoryKey(int key) { m_data->m_sharedMemoryKey = key; @@ -188,7 +187,7 @@ bool PhysicsServerSharedMemory::connectSharedMemory( struct GUIHelperInterface* void PhysicsServerSharedMemory::disconnectSharedMemory(bool deInitializeSharedMemory) { - m_data->m_commandProcessor->deleteDynamicsWorld(); + //m_data->m_commandProcessor->deleteDynamicsWorld(); m_data->m_commandProcessor->setGuiHelper(0); @@ -227,9 +226,9 @@ void PhysicsServerSharedMemory::releaseSharedMemory() } -void PhysicsServerSharedMemory::stepSimulationRealTime(double dtInSec, const struct b3VRControllerEvent* vrEvents, int numVREvents, const struct b3KeyboardEvent* keyEvents, int numKeyEvents) +void PhysicsServerSharedMemory::stepSimulationRealTime(double dtInSec, const struct b3VRControllerEvent* vrEvents, int numVREvents, const struct b3KeyboardEvent* keyEvents, int numKeyEvents, const struct b3MouseEvent* mouseEvents, int numMouseEvents) { - m_data->m_commandProcessor->stepSimulationRealTime(dtInSec,vrEvents, numVREvents, keyEvents,numKeyEvents); + m_data->m_commandProcessor->stepSimulationRealTime(dtInSec,vrEvents, numVREvents, keyEvents,numKeyEvents,mouseEvents, numMouseEvents); } void PhysicsServerSharedMemory::enableRealTimeSimulation(bool enableRealTimeSim) @@ -237,6 +236,11 @@ void PhysicsServerSharedMemory::enableRealTimeSimulation(bool enableRealTimeSim) m_data->m_commandProcessor->enableRealTimeSimulation(enableRealTimeSim); } +bool PhysicsServerSharedMemory::isRealTimeSimulationEnabled() const +{ + return m_data->m_commandProcessor->isRealTimeSimulationEnabled(); +} + void PhysicsServerSharedMemory::processClientCommands() @@ -278,8 +282,11 @@ void PhysicsServerSharedMemory::renderScene(int renderFlags) { m_data->m_commandProcessor->renderScene(renderFlags); - - +} + +void PhysicsServerSharedMemory::syncPhysicsToGraphics() +{ + m_data->m_commandProcessor->syncPhysicsToGraphics(); } void PhysicsServerSharedMemory::physicsDebugDraw(int debugDrawFlags) @@ -311,3 +318,24 @@ void PhysicsServerSharedMemory::replayFromLogFile(const char* fileName) { m_data->m_commandProcessor->replayFromLogFile(fileName); } + +const btVector3& PhysicsServerSharedMemory::getVRTeleportPosition() const +{ + return m_data->m_commandProcessor->getVRTeleportPosition(); +} +void PhysicsServerSharedMemory::setVRTeleportPosition(const btVector3& vrTeleportPos) +{ + m_data->m_commandProcessor->setVRTeleportPosition(vrTeleportPos); +} + +const btQuaternion& PhysicsServerSharedMemory::getVRTeleportOrientation() const +{ + return m_data->m_commandProcessor->getVRTeleportOrientation(); + +} +void PhysicsServerSharedMemory::setVRTeleportOrientation(const btQuaternion& vrTeleportOrn) +{ + m_data->m_commandProcessor->setVRTeleportOrientation(vrTeleportOrn); +} + + diff --git a/examples/SharedMemory/PhysicsServerSharedMemory.h b/examples/SharedMemory/PhysicsServerSharedMemory.h index 3e1270c51..513ddb939 100644 --- a/examples/SharedMemory/PhysicsServerSharedMemory.h +++ b/examples/SharedMemory/PhysicsServerSharedMemory.h @@ -2,7 +2,8 @@ #define PHYSICS_SERVER_SHARED_MEMORY_H #include "PhysicsServer.h" - +#include "LinearMath/btQuaternion.h" + class PhysicsServerSharedMemory : public PhysicsServer { struct PhysicsServerSharedMemoryInternalData* m_data; @@ -14,7 +15,7 @@ protected: public: - PhysicsServerSharedMemory(class SharedMemoryInterface* sharedMem=0); + PhysicsServerSharedMemory(struct CommandProcessorCreationInterface* commandProcessorCreator, class SharedMemoryInterface* sharedMem, int bla); virtual ~PhysicsServerSharedMemory(); virtual void setSharedMemoryKey(int key); @@ -26,9 +27,10 @@ public: virtual void processClientCommands(); - virtual void stepSimulationRealTime(double dtInSec,const struct b3VRControllerEvent* vrEvents, int numVREvents, const struct b3KeyboardEvent* keyEvents, int numKeyEvents); + virtual void stepSimulationRealTime(double dtInSec,const struct b3VRControllerEvent* vrEvents, int numVREvents, const struct b3KeyboardEvent* keyEvents, int numKeyEvents, const struct b3MouseEvent* mouseEvents, int numMouseEvents); virtual void enableRealTimeSimulation(bool enableRealTimeSim); + virtual bool isRealTimeSimulationEnabled() const; //bool supportsJointMotor(class btMultiBody* body, int linkIndex); @@ -38,16 +40,24 @@ public: virtual bool movePickedBody(const btVector3& rayFromWorld, const btVector3& rayToWorld); virtual void removePickingConstraint(); + virtual const btVector3& getVRTeleportPosition() const; + virtual void setVRTeleportPosition(const btVector3& vrTeleportPos); + + virtual const btQuaternion& getVRTeleportOrientation() const; + virtual void setVRTeleportOrientation(const btQuaternion& vrTeleportOrn); + + + //for physicsDebugDraw and renderScene are mainly for debugging purposes //and for physics visualization. The idea is that physicsDebugDraw can also send wireframe //to a physics client, over shared memory void physicsDebugDraw(int debugDrawFlags); void renderScene(int renderFlags); + void syncPhysicsToGraphics(); void enableCommandLogging(bool enable, const char* fileName); void replayFromLogFile(const char* fileName); - void resetDynamicsWorld(); }; diff --git a/examples/SharedMemory/SharedMemoryCommandProcessor.cpp b/examples/SharedMemory/SharedMemoryCommandProcessor.cpp index abd4879a2..29c2eb865 100644 --- a/examples/SharedMemory/SharedMemoryCommandProcessor.cpp +++ b/examples/SharedMemory/SharedMemoryCommandProcessor.cpp @@ -73,7 +73,15 @@ bool SharedMemoryCommandProcessor::connect() if (m_data->m_testBlock1) { if (m_data->m_testBlock1->m_magicId != SHARED_MEMORY_MAGIC_NUMBER) { - b3Error("Error: please start server before client\n"); + + if ((m_data->m_testBlock1->m_magicId < 211705023) && + (m_data->m_testBlock1->m_magicId >=201705023)) + { + b3Error("Error: physics server version mismatch (expected %d got %d)\n",SHARED_MEMORY_MAGIC_NUMBER, m_data->m_testBlock1->m_magicId); + } else + { + b3Error("Error connecting to shared memory: please start server before client\n"); + } m_data->m_sharedMemory->releaseSharedMemory(m_data->m_sharedMemoryKey, SHARED_MEMORY_SIZE); m_data->m_testBlock1 = 0; diff --git a/examples/SharedMemory/SharedMemoryCommands.h b/examples/SharedMemory/SharedMemoryCommands.h index c9f1099a5..f0834419b 100644 --- a/examples/SharedMemory/SharedMemoryCommands.h +++ b/examples/SharedMemory/SharedMemoryCommands.h @@ -65,6 +65,7 @@ struct SdfArgs { char m_sdfFileName[MAX_URDF_FILENAME_LENGTH]; int m_useMultiBody; + double m_globalScaling; }; struct FileArgs @@ -79,7 +80,8 @@ enum EnumUrdfArgsUpdateFlags URDF_ARGS_INITIAL_ORIENTATION=4, URDF_ARGS_USE_MULTIBODY=8, URDF_ARGS_USE_FIXED_BASE=16, - URDF_ARGS_HAS_CUSTOM_URDF_FLAGS = 32 + URDF_ARGS_HAS_CUSTOM_URDF_FLAGS = 32, + URDF_ARGS_USE_GLOBAL_SCALING =64, }; @@ -91,6 +93,7 @@ struct UrdfArgs int m_useMultiBody; int m_useFixedBase; int m_urdfFlags; + double m_globalScaling; }; @@ -114,6 +117,14 @@ enum EnumChangeDynamicsInfoFlags CHANGE_DYNAMICS_INFO_SET_MASS=1, CHANGE_DYNAMICS_INFO_SET_COM=2, CHANGE_DYNAMICS_INFO_SET_LATERAL_FRICTION=4, + CHANGE_DYNAMICS_INFO_SET_SPINNING_FRICTION=8, + CHANGE_DYNAMICS_INFO_SET_ROLLING_FRICTION=16, + CHANGE_DYNAMICS_INFO_SET_RESTITUTION=32, + CHANGE_DYNAMICS_INFO_SET_LINEAR_DAMPING=64, + CHANGE_DYNAMICS_INFO_SET_ANGULAR_DAMPING=128, + CHANGE_DYNAMICS_INFO_SET_CONTACT_STIFFNESS_AND_DAMPING=256, + CHANGE_DYNAMICS_INFO_SET_FRICTION_ANCHOR = 512, + }; struct ChangeDynamicsInfoArgs @@ -123,6 +134,14 @@ struct ChangeDynamicsInfoArgs double m_mass; double m_COM[3]; double m_lateralFriction; + double m_spinningFriction; + double m_rollingFriction; + double m_restitution; + double m_linearDamping; + double m_angularDamping; + double m_contactStiffness; + double m_contactDamping; + int m_frictionAnchor; }; struct GetDynamicsInfoArgs @@ -249,6 +268,7 @@ enum EnumUpdateVisualShapeData { CMD_UPDATE_VISUAL_SHAPE_TEXTURE=1, CMD_UPDATE_VISUAL_SHAPE_RGBA_COLOR=2, + CMD_UPDATE_VISUAL_SHAPE_SPECULAR_COLOR=4, }; struct UpdateVisualShapeDataArgs @@ -258,6 +278,7 @@ struct UpdateVisualShapeDataArgs int m_shapeIndex; int m_textureUniqueId; double m_rgbaColor[4]; + double m_specularColor[3]; }; struct LoadTextureArgs @@ -265,6 +286,11 @@ struct LoadTextureArgs char m_textureFileName[MAX_FILENAME_LENGTH]; }; +struct b3LoadTextureResultArgs +{ + int m_textureUniqueId; +}; + struct SendVisualShapeDataArgs { int m_bodyUniqueId; @@ -354,7 +380,9 @@ enum EnumSimParamUpdateFlags SIM_PARAM_UPDATE_CONTACT_BREAKING_THRESHOLD = 1024, SIM_PARAM_MAX_CMD_PER_1MS = 2048, SIM_PARAM_ENABLE_FILE_CACHING = 4096, - + SIM_PARAM_UPDATE_RESTITUTION_VELOCITY_THRESHOLD = 8192, + SIM_PARAM_UPDATE_DEFAULT_NON_CONTACT_ERP=16384, + SIM_PARAM_UPDATE_DEFAULT_FRICTION_ERP = 32768, }; enum EnumLoadBunnyUpdateFlags @@ -387,6 +415,9 @@ struct SendPhysicsSimulationParameters double m_defaultContactERP; int m_collisionFilterMode; int m_enableFileCaching; + double m_restitutionVelocityThreshold; + double m_defaultNonContactERP; + double m_frictionERP; }; struct LoadBunnyArgs @@ -404,11 +435,12 @@ struct RequestActualStateArgs struct SendActualStateArgs { int m_bodyUniqueId; + int m_numLinks; int m_numDegreeOfFreedomQ; int m_numDegreeOfFreedomU; double m_rootLocalInertialFrame[7]; - + //actual state is only written by the server, read-only access by client is expected double m_actualStateQ[MAX_DEGREE_OF_FREEDOM]; double m_actualStateQdot[MAX_DEGREE_OF_FREEDOM]; @@ -423,6 +455,22 @@ struct SendActualStateArgs double m_linkLocalInertialFrames[7*MAX_NUM_LINKS]; }; +struct b3SendCollisionInfoArgs +{ + int m_numLinks; + double m_rootWorldAABBMin[3]; + double m_rootWorldAABBMax[3]; + + double m_linkWorldAABBsMin[3*MAX_NUM_LINKS]; + double m_linkWorldAABBsMax[3*MAX_NUM_LINKS]; +}; + +struct b3RequestCollisionInfoArgs +{ + int m_bodyUniqueId; +}; + + enum EnumSensorTypes { SENSOR_FORCE_TORQUE=1, @@ -604,7 +652,9 @@ enum EnumUserConstraintFlags USER_CONSTRAINT_CHANGE_FRAME_ORN_IN_B=16, USER_CONSTRAINT_CHANGE_MAX_FORCE=32, USER_CONSTRAINT_REQUEST_INFO=64, - + USER_CONSTRAINT_CHANGE_GEAR_RATIO=128, + USER_CONSTRAINT_CHANGE_GEAR_AUX_LINK=256, + }; enum EnumBodyChangeFlags @@ -625,6 +675,9 @@ enum EnumUserDebugDrawFlags USER_DEBUG_REMOVE_CUSTOM_OBJECT_COLOR = 32, USER_DEBUG_ADD_PARAMETER=64, USER_DEBUG_READ_PARAMETER=128, + USER_DEBUG_HAS_OPTION_FLAGS=256, + USER_DEBUG_HAS_TEXT_ORIENTATION = 512, + USER_DEBUG_HAS_PARENT_OBJECT=1024, }; @@ -640,8 +693,13 @@ struct UserDebugDrawArgs char m_text[MAX_FILENAME_LENGTH]; double m_textPositionXYZ[3]; + double m_textOrientation[4]; + int m_parentObjectUniqueId; + int m_parentLinkIndex; double m_textColorRGB[3]; double m_textSize; + int m_optionFlags; + double m_rangeMin; double m_rangeMax; @@ -673,6 +731,11 @@ struct SendKeyboardEvents b3KeyboardEvent m_keyboardEvents[MAX_KEYBOARD_EVENTS]; }; +struct SendMouseEvents +{ + int m_numMouseEvents; + b3MouseEvent m_mouseEvents[MAX_MOUSE_EVENTS]; +}; enum eVRCameraEnums { @@ -742,6 +805,109 @@ struct ConfigureOpenGLVisualizerRequest int m_setEnabled; }; +enum +{ + URDF_GEOM_HAS_RADIUS = 1, +}; + +struct b3CreateCollisionShape +{ + int m_type;//see UrdfGeomTypes + + int m_hasChildTransform; + double m_childPosition[3]; + double m_childOrientation[4]; + + double m_sphereRadius; + double m_boxHalfExtents[3]; + double m_capsuleRadius; + double m_capsuleHeight; + int m_hasFromTo; + double m_capsuleFrom[3]; + double m_capsuleTo[3]; + double m_planeNormal[3]; + double m_planeConstant; + + int m_meshFileType; + char m_meshFileName[VISUAL_SHAPE_MAX_PATH_LEN]; + double m_meshScale[3]; + int m_collisionFlags; + +}; + +#define MAX_COMPOUND_COLLISION_SHAPES 16 + +struct b3CreateCollisionShapeArgs +{ + int m_numCollisionShapes; + b3CreateCollisionShape m_shapes[MAX_COMPOUND_COLLISION_SHAPES]; +}; + + +struct b3CreateVisualShapeArgs +{ + int m_visualShapeUniqueId; +}; + +#define MAX_CREATE_MULTI_BODY_LINKS 128 +enum eCreateMultiBodyEnum +{ + MULTI_BODY_HAS_BASE=1, + MULT_BODY_USE_MAXIMAL_COORDINATES=2, +}; +struct b3CreateMultiBodyArgs +{ + char m_bodyName[1024]; + int m_baseLinkIndex; + + double m_linkPositions[3*MAX_CREATE_MULTI_BODY_LINKS]; + double m_linkOrientations[4*MAX_CREATE_MULTI_BODY_LINKS]; + + int m_numLinks; + double m_linkMasses[MAX_CREATE_MULTI_BODY_LINKS]; + double m_linkInertias[MAX_CREATE_MULTI_BODY_LINKS*3]; + + double m_linkInertialFramePositions[MAX_CREATE_MULTI_BODY_LINKS*3]; + double m_linkInertialFrameOrientations[MAX_CREATE_MULTI_BODY_LINKS*4]; + + int m_linkCollisionShapeUniqueIds[MAX_CREATE_MULTI_BODY_LINKS]; + int m_linkVisualShapeUniqueIds[MAX_CREATE_MULTI_BODY_LINKS]; + int m_linkParentIndices[MAX_CREATE_MULTI_BODY_LINKS]; + int m_linkJointTypes[MAX_CREATE_MULTI_BODY_LINKS]; + double m_linkJointAxis[3*MAX_CREATE_MULTI_BODY_LINKS]; + + #if 0 + std::string m_name; + std::string m_sourceFile; + btTransform m_rootTransformInWorld; + btHashMap m_materials; + btHashMap m_links; + btHashMap m_joints; + #endif +}; + +struct b3CreateCollisionShapeResultArgs +{ + int m_collisionShapeUniqueId; +}; + +struct b3CreateVisualShapeResultArgs +{ + int m_visualShapeUniqueId; +}; + +struct b3CreateMultiBodyResultArgs +{ + int m_bodyUniqueId; +}; + +struct b3ChangeTextureArgs +{ + int m_textureUniqueId; + int m_width; + int m_height; +}; + struct SharedMemoryCommand { int m_type; @@ -789,7 +955,11 @@ struct SharedMemoryCommand struct ConfigureOpenGLVisualizerRequest m_configureOpenGLVisualizerArguments; struct b3ObjectArgs m_removeObjectArgs; struct b3Profile m_profile; - + struct b3CreateCollisionShapeArgs m_createCollisionShapeArgs; + struct b3CreateVisualShapeArgs m_createVisualShapeArgs; + struct b3CreateMultiBodyArgs m_createMultiBodyArgs; + struct b3RequestCollisionInfoArgs m_requestCollisionInfoArgs; + struct b3ChangeTextureArgs m_changeTextureArgs; }; }; @@ -855,6 +1025,13 @@ struct SharedMemoryStatus struct b3OpenGLVisualizerCameraInfo m_visualizerCameraResultArgs; struct b3ObjectArgs m_removeObjectArgs; struct b3DynamicsInfo m_dynamicsInfo; + struct b3CreateCollisionShapeResultArgs m_createCollisionShapeResultArgs; + struct b3CreateVisualShapeResultArgs m_createVisualShapeResultArgs; + struct b3CreateMultiBodyResultArgs m_createMultiBodyResultArgs; + struct b3SendCollisionInfoArgs m_sendCollisionInfoArgs; + struct SendMouseEvents m_sendMouseEvents; + struct b3LoadTextureResultArgs m_loadTextureResultArguments; + }; }; diff --git a/examples/SharedMemory/SharedMemoryInProcessPhysicsC_API.cpp b/examples/SharedMemory/SharedMemoryInProcessPhysicsC_API.cpp index 8c259c802..8f01bfb5a 100644 --- a/examples/SharedMemory/SharedMemoryInProcessPhysicsC_API.cpp +++ b/examples/SharedMemory/SharedMemoryInProcessPhysicsC_API.cpp @@ -4,7 +4,10 @@ #include "PhysicsClientSharedMemory.h" #include"../ExampleBrowser/InProcessExampleBrowser.h" -#include "PhysicsServerExample.h" +#include +#include +#include "PhysicsServerExampleBullet2.h" + #include "../CommonInterfaces/CommonExampleInterface.h" #include "InProcessMemory.h" @@ -16,7 +19,7 @@ class InProcessPhysicsClientSharedMemoryMainThread : public PhysicsClientSharedM public: - InProcessPhysicsClientSharedMemoryMainThread(int argc, char* argv[]) + InProcessPhysicsClientSharedMemoryMainThread(int argc, char* argv[], bool useInProcessMemory) { int newargc = argc+2; char** newargv = (char**)malloc(sizeof(void*)*newargc); @@ -27,7 +30,7 @@ public: char* t1 = (char*)"--start_demo_name=Physics Server"; newargv[argc] = t0; newargv[argc+1] = t1; - m_data = btCreateInProcessExampleBrowserMainThread(newargc,newargv); + m_data = btCreateInProcessExampleBrowserMainThread(newargc,newargv, useInProcessMemory); SharedMemoryInterface* shMem = btGetSharedMemoryInterfaceMainThread(m_data); setSharedMemoryInterface(shMem); @@ -51,12 +54,12 @@ public: } { unsigned long int ms = m_clock.getTimeMilliseconds(); - if (ms>20) + if (ms>2) { B3_PROFILE("m_clock.reset()"); + btUpdateInProcessExampleBrowserMainThread(m_data); m_clock.reset(); - btUpdateInProcessExampleBrowserMainThread(m_data); } } { @@ -82,31 +85,42 @@ public: b3PhysicsClientHandle b3CreateInProcessPhysicsServerAndConnectMainThread(int argc, char* argv[]) { - InProcessPhysicsClientSharedMemoryMainThread* cl = new InProcessPhysicsClientSharedMemoryMainThread(argc, argv); + InProcessPhysicsClientSharedMemoryMainThread* cl = new InProcessPhysicsClientSharedMemoryMainThread(argc, argv, 1); cl->setSharedMemoryKey(SHARED_MEMORY_KEY); cl->connect(); return (b3PhysicsClientHandle ) cl; } +b3PhysicsClientHandle b3CreateInProcessPhysicsServerAndConnectMainThreadSharedMemory(int argc, char* argv[]) +{ + InProcessPhysicsClientSharedMemoryMainThread* cl = new InProcessPhysicsClientSharedMemoryMainThread(argc, argv, 0); + cl->setSharedMemoryKey(SHARED_MEMORY_KEY); + cl->connect(); + return (b3PhysicsClientHandle ) cl; +} + + + class InProcessPhysicsClientSharedMemory : public PhysicsClientSharedMemory { btInProcessExampleBrowserInternalData* m_data; -public: + char** m_newargv; - InProcessPhysicsClientSharedMemory(int argc, char* argv[]) +public: + + InProcessPhysicsClientSharedMemory(int argc, char* argv[], bool useInProcessMemory) { int newargc = argc+2; - char** newargv = (char**)malloc(sizeof(void*)*newargc); + m_newargv = (char**)malloc(sizeof(void*)*newargc); for (int i=0;isetSharedMemoryKey(SHARED_MEMORY_KEY); + InProcessPhysicsClientSharedMemory* cl = new InProcessPhysicsClientSharedMemory(argc, argv, 1); + cl->setSharedMemoryKey(SHARED_MEMORY_KEY+1); + cl->connect(); + return (b3PhysicsClientHandle ) cl; +} +b3PhysicsClientHandle b3CreateInProcessPhysicsServerAndConnectSharedMemory(int argc, char* argv[]) +{ + + InProcessPhysicsClientSharedMemory* cl = new InProcessPhysicsClientSharedMemory(argc, argv, 0); + cl->setSharedMemoryKey(SHARED_MEMORY_KEY+1); cl->connect(); return (b3PhysicsClientHandle ) cl; } @@ -142,7 +165,7 @@ public: CommonExampleOptions options(guiHelper); options.m_sharedMem = m_sharedMem; - m_physicsServerExample = PhysicsServerCreateFunc(options); + m_physicsServerExample = PhysicsServerCreateFuncBullet2(options); m_physicsServerExample ->initPhysics(); m_physicsServerExample ->resetCamera(); setSharedMemoryInterface(m_sharedMem); @@ -161,7 +184,8 @@ public: // return non-null if there is a status, nullptr otherwise virtual const struct SharedMemoryStatus* processServerStatus() { - //m_physicsServerExample->updateGraphics(); + printf("updating graphics!\n"); + m_physicsServerExample->updateGraphics(); unsigned long long int curTime = m_clock.getTimeMicroseconds(); unsigned long long int dtMicro = curTime - m_prevTime; diff --git a/examples/SharedMemory/SharedMemoryInProcessPhysicsC_API.h b/examples/SharedMemory/SharedMemoryInProcessPhysicsC_API.h index 7ce6e024a..04acba313 100644 --- a/examples/SharedMemory/SharedMemoryInProcessPhysicsC_API.h +++ b/examples/SharedMemory/SharedMemoryInProcessPhysicsC_API.h @@ -11,8 +11,10 @@ extern "C" { ///think more about naming. The b3ConnectPhysicsLoopback b3PhysicsClientHandle b3CreateInProcessPhysicsServerAndConnect(int argc, char* argv[]); +b3PhysicsClientHandle b3CreateInProcessPhysicsServerAndConnectSharedMemory(int argc, char* argv[]); b3PhysicsClientHandle b3CreateInProcessPhysicsServerAndConnectMainThread(int argc, char* argv[]); +b3PhysicsClientHandle b3CreateInProcessPhysicsServerAndConnectMainThreadSharedMemory(int argc, char* argv[]); b3PhysicsClientHandle b3CreateInProcessPhysicsServerFromExistingExampleBrowserAndConnect(void* guiHelperPtr); diff --git a/examples/SharedMemory/SharedMemoryPublic.h b/examples/SharedMemory/SharedMemoryPublic.h index 0f4bb31cd..4b61142d4 100644 --- a/examples/SharedMemory/SharedMemoryPublic.h +++ b/examples/SharedMemory/SharedMemoryPublic.h @@ -4,7 +4,11 @@ #define SHARED_MEMORY_KEY 12347 ///increase the SHARED_MEMORY_MAGIC_NUMBER whenever incompatible changes are made in the structures ///my convention is year/month/day/rev -#define SHARED_MEMORY_MAGIC_NUMBER 201703024 +#define SHARED_MEMORY_MAGIC_NUMBER 201707140 +//#define SHARED_MEMORY_MAGIC_NUMBER 201706015 +//#define SHARED_MEMORY_MAGIC_NUMBER 201706001 +//#define SHARED_MEMORY_MAGIC_NUMBER 201703024 + enum EnumSharedMemoryClientCommand { @@ -59,6 +63,12 @@ enum EnumSharedMemoryClientCommand CMD_CHANGE_DYNAMICS_INFO, CMD_GET_DYNAMICS_INFO, CMD_PROFILE_TIMING, + CMD_CREATE_COLLISION_SHAPE, + CMD_CREATE_VISUAL_SHAPE, + CMD_CREATE_MULTI_BODY, + CMD_REQUEST_COLLISION_INFO, + CMD_REQUEST_MOUSE_EVENTS_DATA, + CMD_CHANGE_TEXTURE, //don't go beyond this command! CMD_MAX_CLIENT_COMMANDS, @@ -144,6 +154,16 @@ enum EnumSharedMemoryServerStatus CMD_REMOVE_BODY_FAILED, CMD_GET_DYNAMICS_INFO_COMPLETED, CMD_GET_DYNAMICS_INFO_FAILED, + CMD_CREATE_COLLISION_SHAPE_FAILED, + CMD_CREATE_COLLISION_SHAPE_COMPLETED, + CMD_CREATE_VISUAL_SHAPE_FAILED, + CMD_CREATE_VISUAL_SHAPE_COMPLETED, + CMD_CREATE_MULTI_BODY_FAILED, + CMD_CREATE_MULTI_BODY_COMPLETED, + CMD_REQUEST_COLLISION_INFO_COMPLETED, + CMD_REQUEST_COLLISION_INFO_FAILED, + CMD_REQUEST_MOUSE_EVENTS_DATA_COMPLETED, + CMD_CHANGE_TEXTURE_COMMAND_FAILED, //don't go beyond 'CMD_MAX_SERVER_COMMANDS! CMD_MAX_SERVER_COMMANDS }; @@ -173,6 +193,7 @@ enum JointType { ePlanarType = 3, eFixedType = 4, ePoint2PointType = 5, + eGearType=6 }; @@ -203,6 +224,7 @@ struct b3JointInfo double m_jointAxis[3]; // joint axis in parent local frame }; + struct b3UserConstraint { int m_parentBodyIndex; @@ -215,6 +237,9 @@ struct b3UserConstraint int m_jointType; double m_maxAppliedForce; int m_userConstraintUniqueId; + double m_gearRatio; + int m_gearAuxLink; + }; struct b3BodyInfo @@ -285,6 +310,11 @@ struct b3OpenGLVisualizerCameraInfo float m_horizontal[3]; float m_vertical[3]; + + float m_yaw; + float m_pitch; + float m_dist; + float m_target[3]; }; enum b3VREventType @@ -301,7 +331,7 @@ enum b3VREventType #define MAX_RAY_INTERSECTION_BATCH_SIZE 256 #define MAX_RAY_HITS MAX_RAY_INTERSECTION_BATCH_SIZE #define MAX_KEYBOARD_EVENTS 256 - +#define MAX_MOUSE_EVENTS 256 enum b3VRButtonInfo @@ -360,6 +390,28 @@ struct b3KeyboardEventsData struct b3KeyboardEvent* m_keyboardEvents; }; + +enum eMouseEventTypeEnums +{ + MOUSE_MOVE_EVENT=1, + MOUSE_BUTTON_EVENT=2, +}; + +struct b3MouseEvent +{ + int m_eventType; + float m_mousePosX; + float m_mousePosY; + int m_buttonIndex; + int m_buttonState; +}; + +struct b3MouseEventsData +{ + int m_numMouseEvents; + struct b3MouseEvent* m_mouseEvents; +}; + struct b3ContactPointData { //todo: expose some contact flags, such as telling which fields below are valid @@ -424,7 +476,7 @@ struct b3RaycastInformation }; -#define VISUAL_SHAPE_MAX_PATH_LEN 128 +#define VISUAL_SHAPE_MAX_PATH_LEN 1024 struct b3VisualShapeData { @@ -470,6 +522,8 @@ struct b3LinkState double m_worldLinearVelocity[3]; //only valid when ACTUAL_STATE_COMPUTE_LINKVELOCITY is set (b3RequestActualStateCommandComputeLinkVelocity) double m_worldAngularVelocity[3]; //only valid when ACTUAL_STATE_COMPUTE_LINKVELOCITY is set (b3RequestActualStateCommandComputeLinkVelocity) + double m_worldAABBMin[3];//world space bounding minium and maximum box corners. + double m_worldAABBMax[3]; }; //todo: discuss and decide about control mode and combinations @@ -505,6 +559,15 @@ enum b3ConfigureDebugVisualizerEnum COV_ENABLE_VR_RENDER_CONTROLLERS, COV_ENABLE_RENDERING, COV_ENABLE_SYNC_RENDERING_INTERNAL, + COV_ENABLE_KEYBOARD_SHORTCUTS, + COV_ENABLE_MOUSE_PICKING, +}; + +enum b3AddUserDebugItemEnum +{ + DEB_DEBUG_TEXT_USE_ORIENTATION=1, + DEB_DEBUG_TEXT_USE_TRUE_TYPE_FONTS=2, + DEB_DEBUG_TEXT_HAS_TRACKING_OBJECT=4, }; enum eCONNECT_METHOD { @@ -514,6 +577,7 @@ enum eCONNECT_METHOD { eCONNECT_UDP = 4, eCONNECT_TCP = 5, eCONNECT_EXISTING_EXAMPLE_BROWSER=6, + eCONNECT_GUI_SERVER=7, }; enum eURDF_Flags @@ -524,4 +588,23 @@ enum eURDF_Flags URDF_USE_SELF_COLLISION_EXCLUDE_ALL_PARENTS=32, }; +enum eUrdfGeomTypes //sync with UrdfParser UrdfGeomTypes +{ + GEOM_SPHERE=2, + GEOM_BOX, + GEOM_CYLINDER, + GEOM_MESH, + GEOM_PLANE, + GEOM_CAPSULE, //non-standard URDF? + GEOM_UNKNOWN, +}; + +enum eUrdfCollisionFlags +{ + GEOM_FORCE_CONCAVE_TRIMESH=1, +}; + + + + #endif//SHARED_MEMORY_PUBLIC_H diff --git a/examples/SharedMemory/TinyRendererVisualShapeConverter.cpp b/examples/SharedMemory/TinyRendererVisualShapeConverter.cpp index 8c03556cf..f804dcb3f 100644 --- a/examples/SharedMemory/TinyRendererVisualShapeConverter.cpp +++ b/examples/SharedMemory/TinyRendererVisualShapeConverter.cpp @@ -34,7 +34,7 @@ subject to the following restrictions: #include "../Importers/ImportURDFDemo/UrdfParser.h" #include "../SharedMemory/SharedMemoryPublic.h"//for b3VisualShapeData #include "../TinyRenderer/model.h" -#include "../ThirdPartyLibs/stb_image/stb_image.h" +#include "stb_image/stb_image.h" struct MyTexture2 { @@ -115,11 +115,11 @@ TinyRendererVisualShapeConverter::TinyRendererVisualShapeConverter() m_data = new TinyRendererVisualShapeConverterInternalData(); float dist = 1.5; - float pitch = -80; - float yaw = 10; + float pitch = -10; + float yaw = -80; float targetPos[3]={0,0,0}; m_data->m_camera.setCameraUpAxis(m_data->m_upAxis); - resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } @@ -177,12 +177,12 @@ void convertURDFToVisualShape(const UrdfShape* visual, const char* urdfPathPrefi visualShapeOut.m_dimensions[0] = 0; visualShapeOut.m_dimensions[1] = 0; visualShapeOut.m_dimensions[2] = 0; - visualShapeOut.m_meshAssetFileName[0] = 0; + memset(visualShapeOut.m_meshAssetFileName, 0, sizeof(visualShapeOut.m_meshAssetFileName)); if (visual->m_geometry.m_hasLocalMaterial) { - visualShapeOut.m_rgbaColor[0] = visual->m_geometry.m_localMaterial.m_rgbaColor[0]; - visualShapeOut.m_rgbaColor[1] = visual->m_geometry.m_localMaterial.m_rgbaColor[1]; - visualShapeOut.m_rgbaColor[2] = visual->m_geometry.m_localMaterial.m_rgbaColor[2]; - visualShapeOut.m_rgbaColor[3] = visual->m_geometry.m_localMaterial.m_rgbaColor[3]; + visualShapeOut.m_rgbaColor[0] = visual->m_geometry.m_localMaterial.m_matColor.m_rgbaColor[0]; + visualShapeOut.m_rgbaColor[1] = visual->m_geometry.m_localMaterial.m_matColor.m_rgbaColor[1]; + visualShapeOut.m_rgbaColor[2] = visual->m_geometry.m_localMaterial.m_matColor.m_rgbaColor[2]; + visualShapeOut.m_rgbaColor[3] = visual->m_geometry.m_localMaterial.m_matColor.m_rgbaColor[3]; } GLInstanceGraphicsShape* glmesh = 0; @@ -506,6 +506,15 @@ void convertURDFToVisualShape(const UrdfShape* visual, const char* urdfPathPrefi } +static btVector4 sColors[4] = +{ + btVector4(60./256.,186./256.,84./256.,1), + btVector4(244./256.,194./256.,13./256.,1), + btVector4(219./256.,50./256.,54./256.,1), + btVector4(72./256.,133./256.,237./256.,1), + + //btVector4(1,1,0,1), +}; void TinyRendererVisualShapeConverter::convertVisualShapes( @@ -546,7 +555,17 @@ void TinyRendererVisualShapeConverter::convertVisualShapes( } btTransform childTrans = vis->m_linkLocalFrame; - float rgbaColor[4] = {1,1,1,1}; + + + int colorIndex = colObj? colObj->getBroadphaseHandle()->getUid() & 3 : 0; + + btVector4 color; + color = sColors[colorIndex]; + float rgbaColor[4] = {color[0],color[1],color[2],color[3]}; + if (colObj->getCollisionShape()->getShapeType()==STATIC_PLANE_PROXYTYPE) + { + color.setValue(1,1,1,1); + } if (model && useVisual) { btHashString matName(linkPtr->m_visualArray[v1].m_materialName.c_str()); @@ -555,7 +574,7 @@ void TinyRendererVisualShapeConverter::convertVisualShapes( { for (int i=0; i<4; i++) { - rgbaColor[i] = (*matPtr)->m_rgbaColor[i]; + rgbaColor[i] = (*matPtr)->m_matColor.m_rgbaColor[i]; } //printf("UrdfMaterial %s, rgba = %f,%f,%f,%f\n",mat->m_name.c_str(),mat->m_rgbaColor[0],mat->m_rgbaColor[1],mat->m_rgbaColor[2],mat->m_rgbaColor[3]); //m_data->m_linkColors.insert(linkIndex,mat->m_rgbaColor); @@ -671,6 +690,36 @@ int TinyRendererVisualShapeConverter::getVisualShapesData(int bodyUniqueId, int return 0; } +void TinyRendererVisualShapeConverter::changeRGBAColor(int bodyUniqueId, int linkIndex, const double rgbaColor[4]) +{ + int start = -1; + for (int i = 0; i < m_data->m_visualShapes.size(); i++) + { + if (m_data->m_visualShapes[i].m_objectUniqueId == bodyUniqueId && m_data->m_visualShapes[i].m_linkIndex == linkIndex) + { + start = i; + m_data->m_visualShapes[i].m_rgbaColor[0] = rgbaColor[0]; + m_data->m_visualShapes[i].m_rgbaColor[1] = rgbaColor[1]; + m_data->m_visualShapes[i].m_rgbaColor[2] = rgbaColor[2]; + m_data->m_visualShapes[i].m_rgbaColor[3] = rgbaColor[3]; + break; + } + } + if (start>=0) + { + TinyRendererObjectArray** visualArrayPtr = m_data->m_swRenderInstances.getAtIndex(start); + TinyRendererObjectArray* visualArray = *visualArrayPtr; + + btHashPtr colObjHash = m_data->m_swRenderInstances.getKeyAtIndex(start); + const btCollisionObject* colObj = (btCollisionObject*) colObjHash.getPointer(); + + float rgba[4] = {rgbaColor[0], rgbaColor[1], rgbaColor[2], rgbaColor[3]}; + for (int v=0;vm_renderObjects.size();v++) + { + visualArray->m_renderObjects[v]->m_model->setColorRGBA(rgba); + } + } +} void TinyRendererVisualShapeConverter::setUpAxis(int axis) { @@ -678,7 +727,7 @@ void TinyRendererVisualShapeConverter::setUpAxis(int axis) m_data->m_camera.setCameraUpAxis(axis); m_data->m_camera.update(); } -void TinyRendererVisualShapeConverter::resetCamera(float camDist, float pitch, float yaw, float camPosX,float camPosY, float camPosZ) +void TinyRendererVisualShapeConverter::resetCamera(float camDist, float yaw, float pitch, float camPosX,float camPosY, float camPosZ) { m_data->m_camera.setCameraDistance(camDist); m_data->m_camera.setCameraPitch(pitch); @@ -726,7 +775,12 @@ void TinyRendererVisualShapeConverter::render(const float viewMat[16], const flo clearColor.bgra[3] = 255; clearBuffers(clearColor); + float near = projMat[14]/(projMat[10]-1); + float far = projMat[14]/(projMat[10]+1); + m_data->m_camera.setCameraFrustumNear( near); + m_data->m_camera.setCameraFrustumFar(far); + ATTRIBUTE_ALIGNED16(btScalar modelMat[16]); @@ -1016,12 +1070,15 @@ void TinyRendererVisualShapeConverter::resetAll() void TinyRendererVisualShapeConverter::activateShapeTexture(int shapeUniqueId, int textureUniqueId) { btAssert(textureUniqueId < m_data->m_textures.size()); - TinyRendererObjectArray** ptrptr = m_data->m_swRenderInstances.getAtIndex(shapeUniqueId); - if (ptrptr && *ptrptr) - { - TinyRendererObjectArray* ptr = *ptrptr; - ptr->m_renderObjects[0]->m_model->setDiffuseTextureFromData(m_data->m_textures[textureUniqueId].textureData,m_data->m_textures[textureUniqueId].m_width,m_data->m_textures[textureUniqueId].m_height); - } + if (textureUniqueId>=0 && textureUniqueIdm_textures.size()) + { + TinyRendererObjectArray** ptrptr = m_data->m_swRenderInstances.getAtIndex(shapeUniqueId); + if (ptrptr && *ptrptr) + { + TinyRendererObjectArray* ptr = *ptrptr; + ptr->m_renderObjects[0]->m_model->setDiffuseTextureFromData(m_data->m_textures[textureUniqueId].textureData,m_data->m_textures[textureUniqueId].m_width,m_data->m_textures[textureUniqueId].m_height); + } + } } void TinyRendererVisualShapeConverter::activateShapeTexture(int objectUniqueId, int jointIndex, int shapeIndex, int textureUniqueId) @@ -1031,18 +1088,26 @@ void TinyRendererVisualShapeConverter::activateShapeTexture(int objectUniqueId, { if (m_data->m_visualShapes[i].m_objectUniqueId == objectUniqueId && m_data->m_visualShapes[i].m_linkIndex == jointIndex) { - start = i; - break; - } - } - - if (start >= 0) - { - if (start + shapeIndex < m_data->m_visualShapes.size()) - { - activateShapeTexture(start + shapeIndex, textureUniqueId); + if (shapeIndex<0) + { + activateShapeTexture(i, textureUniqueId); + } else + { + start = i; + break; + } } } + if (shapeIndex>=0) + { + if (start >= 0) + { + if (start + shapeIndex < m_data->m_visualShapes.size()) + { + activateShapeTexture(start + shapeIndex, textureUniqueId); + } + } + } } int TinyRendererVisualShapeConverter::registerTexture(unsigned char* texels, int width, int height) diff --git a/examples/SharedMemory/TinyRendererVisualShapeConverter.h b/examples/SharedMemory/TinyRendererVisualShapeConverter.h index 6771dc624..acc036229 100644 --- a/examples/SharedMemory/TinyRendererVisualShapeConverter.h +++ b/examples/SharedMemory/TinyRendererVisualShapeConverter.h @@ -21,12 +21,14 @@ struct TinyRendererVisualShapeConverter : public LinkVisualShapesConverter virtual int getNumVisualShapes(int bodyUniqueId); virtual int getVisualShapesData(int bodyUniqueId, int shapeIndex, struct b3VisualShapeData* shapeData); + + virtual void changeRGBAColor(int bodyUniqueId, int linkIndex, const double rgbaColor[4]); virtual void removeVisualShape(class btCollisionObject* colObj); void setUpAxis(int axis); - void resetCamera(float camDist, float pitch, float yaw, float camPosX,float camPosY, float camPosZ); + void resetCamera(float camDist, float yaw, float pitch, float camPosX,float camPosY, float camPosZ); void clearBuffers(struct TGAColor& clearColor); diff --git a/examples/SharedMemory/main.cpp b/examples/SharedMemory/main.cpp index e6cf9e25f..9bf4bd83f 100644 --- a/examples/SharedMemory/main.cpp +++ b/examples/SharedMemory/main.cpp @@ -14,7 +14,8 @@ subject to the following restrictions: */ -#include "PhysicsServerExample.h" + +#include "PhysicsServerExampleBullet2.h" #include "Bullet3Common/b3CommandLineArgs.h" @@ -77,7 +78,7 @@ int main(int argc, char* argv[]) // options.m_option |= PHYSICS_SERVER_ENABLE_COMMAND_LOGGING; // options.m_option |= PHYSICS_SERVER_REPLAY_FROM_COMMAND_LOG; - example = (SharedMemoryCommon*)PhysicsServerCreateFunc(options); + example = (SharedMemoryCommon*)PhysicsServerCreateFuncBullet2(options); example->initPhysics(); diff --git a/examples/SharedMemory/premake4.lua b/examples/SharedMemory/premake4.lua index ff2ab709f..b7d3ab9e7 100644 --- a/examples/SharedMemory/premake4.lua +++ b/examples/SharedMemory/premake4.lua @@ -23,6 +23,7 @@ myfiles = "PhysicsClientSharedMemory.cpp", "PhysicsClientExample.cpp", "PhysicsServerExample.cpp", + "PhysicsServerExampleBullet2.cpp", "PhysicsServerSharedMemory.cpp", "PhysicsServerSharedMemory.h", "PhysicsServer.cpp", diff --git a/examples/SimpleOpenGL3/main.cpp b/examples/SimpleOpenGL3/main.cpp index 998412c1a..0422c96cc 100644 --- a/examples/SimpleOpenGL3/main.cpp +++ b/examples/SimpleOpenGL3/main.cpp @@ -1,23 +1,12 @@ -//#define USE_OPENGL2 -#ifdef USE_OPENGL2 -#include "OpenGLWindow/SimpleOpenGL2App.h" -typedef SimpleOpenGL2App SimpleOpenGLApp ; -#else #include "OpenGLWindow/SimpleOpenGL3App.h" -typedef SimpleOpenGL3App SimpleOpenGLApp ; - -#endif //USE_OPENGL2 - #include "Bullet3Common/b3Quaternion.h" #include "Bullet3Common/b3CommandLineArgs.h" #include "assert.h" #include - - char* gVideoFileName = 0; char* gPngFileName = 0; @@ -30,131 +19,9 @@ static b3KeyboardCallback sOldKeyboardCB = 0; float gWidth = 1024; float gHeight = 768; -SimpleOpenGLApp* app = 0; -float gMouseX = 0; -float gMouseY = 0; -float g_MouseWheel = 0.0f; -int g_MousePressed[3] = {0}; -int g_MousePressed2[3] = {0}; - -//#define B3_USE_IMGUI -#ifdef B3_USE_IMGUI -#include "OpenGLWindow/OpenGLInclude.h" -#include "ThirdPartyLibs/imgui/imgui.h" -static GLuint g_FontTexture = 0; - - - -void ImGui_ImplBullet_CreateDeviceObjects() -{ - ImGuiIO& io = ImGui::GetIO(); - - unsigned char* pixels; - int width, height; - io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); // Load as RGBA 32-bits (75% of the memory is wasted, but default font is so small) because it is more likely to be compatible with user's existing shaders. If your ImTextureId represent a higher-level concept than just a GL texture id, consider calling GetTexDataAsAlpha8() instead to save on GPU memory. - - // Upload texture to graphics system - GLint last_texture; - glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture); - glGenTextures(1, &g_FontTexture); - glBindTexture(GL_TEXTURE_2D, g_FontTexture); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); - glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels); - - // Store our identifier - io.Fonts->TexID = (void *)(intptr_t)g_FontTexture; - - // Restore state - glBindTexture(GL_TEXTURE_2D, last_texture); - -} - - -void ImGui_ImplBullet_RenderDrawLists(ImDrawData* draw_data) -{ - // Avoid rendering when minimized, scale coordinates for retina displays (screen coordinates != framebuffer coordinates) - ImGuiIO& io = ImGui::GetIO(); - int fb_width = (int)(io.DisplaySize.x * io.DisplayFramebufferScale.x); - int fb_height = (int)(io.DisplaySize.y * io.DisplayFramebufferScale.y); - if (fb_width == 0 || fb_height == 0) - return; - draw_data->ScaleClipRects(io.DisplayFramebufferScale); - - // We are using the OpenGL fixed pipeline to make the example code simpler to read! - // Setup render state: alpha-blending enabled, no face culling, no depth testing, scissor enabled, vertex/texcoord/color pointers. - GLint last_texture; glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture); - GLint last_viewport[4]; glGetIntegerv(GL_VIEWPORT, last_viewport); - GLint last_scissor_box[4]; glGetIntegerv(GL_SCISSOR_BOX, last_scissor_box); - glPushAttrib(GL_ENABLE_BIT | GL_COLOR_BUFFER_BIT | GL_TRANSFORM_BIT); - glEnable(GL_BLEND); - glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); - glDisable(GL_CULL_FACE); - glDisable(GL_DEPTH_TEST); - glEnable(GL_SCISSOR_TEST); - glEnableClientState(GL_VERTEX_ARRAY); - glEnableClientState(GL_TEXTURE_COORD_ARRAY); - glEnableClientState(GL_COLOR_ARRAY); - glEnable(GL_TEXTURE_2D); - //glUseProgram(0); // You may want this if using this code in an OpenGL 3+ context - - // Setup viewport, orthographic projection matrix - glViewport(0, 0, (GLsizei)fb_width, (GLsizei)fb_height); - glMatrixMode(GL_PROJECTION); - glPushMatrix(); - glLoadIdentity(); - glOrtho(0.0f, io.DisplaySize.x, io.DisplaySize.y, 0.0f, -1.0f, +1.0f); - glMatrixMode(GL_MODELVIEW); - glPushMatrix(); - glLoadIdentity(); - - // Render command lists - #define OFFSETOF(TYPE, ELEMENT) ((size_t)&(((TYPE *)0)->ELEMENT)) - for (int n = 0; n < draw_data->CmdListsCount; n++) - { - const ImDrawList* cmd_list = draw_data->CmdLists[n]; - const ImDrawVert* vtx_buffer = cmd_list->VtxBuffer.Data; - const ImDrawIdx* idx_buffer = cmd_list->IdxBuffer.Data; - glVertexPointer(2, GL_FLOAT, sizeof(ImDrawVert), (const GLvoid*)((const char*)vtx_buffer + OFFSETOF(ImDrawVert, pos))); - glTexCoordPointer(2, GL_FLOAT, sizeof(ImDrawVert), (const GLvoid*)((const char*)vtx_buffer + OFFSETOF(ImDrawVert, uv))); - glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(ImDrawVert), (const GLvoid*)((const char*)vtx_buffer + OFFSETOF(ImDrawVert, col))); - - for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) - { - const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; - if (pcmd->UserCallback) - { - pcmd->UserCallback(cmd_list, pcmd); - } - else - { - glBindTexture(GL_TEXTURE_2D, (GLuint)(intptr_t)pcmd->TextureId); - glScissor((int)pcmd->ClipRect.x, (int)(fb_height - pcmd->ClipRect.w), (int)(pcmd->ClipRect.z - pcmd->ClipRect.x), (int)(pcmd->ClipRect.w - pcmd->ClipRect.y)); - glDrawElements(GL_TRIANGLES, (GLsizei)pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, idx_buffer); - } - idx_buffer += pcmd->ElemCount; - } - } - #undef OFFSETOF - - // Restore modified state - glDisableClientState(GL_COLOR_ARRAY); - glDisableClientState(GL_TEXTURE_COORD_ARRAY); - glDisableClientState(GL_VERTEX_ARRAY); - glBindTexture(GL_TEXTURE_2D, (GLuint)last_texture); - glMatrixMode(GL_MODELVIEW); - glPopMatrix(); - glMatrixMode(GL_PROJECTION); - glPopMatrix(); - glPopAttrib(); - glViewport(last_viewport[0], last_viewport[1], (GLsizei)last_viewport[2], (GLsizei)last_viewport[3]); - glScissor(last_scissor_box[0], last_scissor_box[1], (GLsizei)last_scissor_box[2], (GLsizei)last_scissor_box[3]); -} -#endif //B3_USE_IMGUI void MyWheelCallback(float deltax, float deltay) { - g_MouseWheel += deltax+deltay; if (sOldWheelCB) sOldWheelCB(deltax,deltay); } @@ -169,29 +36,12 @@ void MyResizeCallback( float width, float height) void MyMouseMoveCallback( float x, float y) { printf("Mouse Move: %f, %f\n", x,y); - gMouseX = x; - gMouseY = y; if (sOldMouseMoveCB) sOldMouseMoveCB(x,y); } void MyMouseButtonCallback(int button, int state, float x, float y) { - gMouseX = x; - gMouseY = y; - { - if (button>=0 && button<3) - { - if (state) - { - g_MousePressed[button] = state; - } - g_MousePressed2[button] = state; - - } - - } - if (sOldMouseButtonCB) sOldMouseButtonCB(button,state,x,y); } @@ -209,56 +59,17 @@ void MyKeyboardCallback(int keycode, int state) } -bool ImGui_ImplGlfw_Init() -{ - - #if 0 - ImGuiIO& io = ImGui::GetIO(); - io.KeyMap[ImGuiKey_Tab] = GLFW_KEY_TAB; // Keyboard mapping. ImGui will use those indices to peek into the io.KeyDown[] array. - io.KeyMap[ImGuiKey_LeftArrow] = GLFW_KEY_LEFT; - io.KeyMap[ImGuiKey_RightArrow] = GLFW_KEY_RIGHT; - io.KeyMap[ImGuiKey_UpArrow] = GLFW_KEY_UP; - io.KeyMap[ImGuiKey_DownArrow] = GLFW_KEY_DOWN; - io.KeyMap[ImGuiKey_PageUp] = GLFW_KEY_PAGE_UP; - io.KeyMap[ImGuiKey_PageDown] = GLFW_KEY_PAGE_DOWN; - io.KeyMap[ImGuiKey_Home] = GLFW_KEY_HOME; - io.KeyMap[ImGuiKey_End] = GLFW_KEY_END; - io.KeyMap[ImGuiKey_Delete] = GLFW_KEY_DELETE; - io.KeyMap[ImGuiKey_Backspace] = GLFW_KEY_BACKSPACE; - io.KeyMap[ImGuiKey_Enter] = GLFW_KEY_ENTER; - io.KeyMap[ImGuiKey_Escape] = GLFW_KEY_ESCAPE; - io.KeyMap[ImGuiKey_A] = GLFW_KEY_A; - io.KeyMap[ImGuiKey_C] = GLFW_KEY_C; - io.KeyMap[ImGuiKey_V] = GLFW_KEY_V; - io.KeyMap[ImGuiKey_X] = GLFW_KEY_X; - io.KeyMap[ImGuiKey_Y] = GLFW_KEY_Y; - io.KeyMap[ImGuiKey_Z] = GLFW_KEY_Z; - - io.RenderDrawListsFn = ImGui_ImplGlfw_RenderDrawLists; // Alternatively you can set this to NULL and call ImGui::GetDrawData() after ImGui::Render() to get the same ImDrawData pointer. - io.SetClipboardTextFn = ImGui_ImplGlfw_SetClipboardText; - io.GetClipboardTextFn = ImGui_ImplGlfw_GetClipboardText; - io.ClipboardUserData = g_Window; -#ifdef _WIN32 - io.ImeWindowHandle = glfwGetWin32Window(g_Window); -#endif - -#endif - - return true; -} - int main(int argc, char* argv[]) { { b3CommandLineArgs myArgs(argc, argv); - app = new SimpleOpenGLApp("SimpleOpenGLApp", gWidth, gHeight); - - app->m_renderer->getActiveCamera()->setCameraDistance(13); - app->m_renderer->getActiveCamera()->setCameraPitch(0); - app->m_renderer->getActiveCamera()->setCameraTargetPosition(0, 0, 0); + SimpleOpenGL3App* app = new SimpleOpenGL3App("SimpleOpenGL3App", gWidth, gHeight, true); + app->m_instancingRenderer->getActiveCamera()->setCameraDistance(13); + app->m_instancingRenderer->getActiveCamera()->setCameraPitch(0); + app->m_instancingRenderer->getActiveCamera()->setCameraTargetPosition(0, 0, 0); sOldKeyboardCB = app->m_window->getKeyboardCallback(); app->m_window->setKeyboardCallback(MyKeyboardCallback); sOldMouseMoveCB = app->m_window->getMouseMoveCallback(); @@ -286,14 +97,7 @@ int main(int argc, char* argv[]) int textureHandle = app->m_renderer->registerTexture(image, textureWidth, textureHeight); - int cubeIndex = app->registerCubeShape(1, 1, 1); - b3Vector3 pos = b3MakeVector3(0, 0, 0); - b3Quaternion orn(0, 0, 0, 1); - b3Vector3 color = b3MakeVector3(1, 0, 0); - b3Vector3 scaling = b3MakeVector3 (1, 1, 1); - app->m_renderer->registerGraphicsInstance(cubeIndex, pos, orn, color, scaling); - app->m_renderer->writeTransforms(); do { @@ -307,8 +111,6 @@ int main(int argc, char* argv[]) app->dumpNextFrameToPng(fileName); } - - //update the texels of the texture using a simple pattern, animated using frame index @@ -328,62 +130,46 @@ int main(int argc, char* argv[]) app->m_renderer->activateTexture(textureHandle); app->m_renderer->updateTexture(textureHandle, image); - //float color[4] = { 255, 1, 1, 1 }; - //app->m_primRenderer->drawTexturedRect(100, 200, gWidth / 2 - 50, gHeight / 2 - 50, color, 0, 0, 1, 1, true); + float color[4] = { 1, 0, 0, 1 }; + app->m_primRenderer->drawTexturedRect(100, 200, gWidth / 2 - 50, gHeight / 2 - 50, color, 0, 0, 1, 1, true); - app->m_renderer->init(); - app->m_renderer->updateCamera(1); + app->m_instancingRenderer->init(); + app->m_instancingRenderer->updateCamera(); app->m_renderer->renderScene(); app->drawGrid(); char bla[1024]; - sprintf(bla, "Simple test frame %d", frameCount); + sprintf(bla, "2d text:%d", frameCount); - //app->drawText(bla, 10, 10); + float yellow[4] = {1,1,0,1}; + app->drawText(bla, 10, 10, 1, yellow); + float position[3] = {1,1,1}; + float position2[3] = {0,0,5}; -#ifdef B3_USE_IMGUI - { - bool show_test_window = true; - bool show_another_window = false; - ImVec4 clear_color = ImColor(114, 144, 154); + float orientation[4] = {0,0,0,1}; + + app->drawText3D(bla,0,0,1,1); - // Start the frame - ImGuiIO& io = ImGui::GetIO(); - if (!g_FontTexture) - ImGui_ImplBullet_CreateDeviceObjects(); + sprintf(bla, "3d bitmap camera facing text:%d", frameCount); + app->drawText3D(bla,position2,orientation,color,1,CommonGraphicsApp::eDrawText3D_OrtogonalFaceCamera); + + sprintf(bla, "3d bitmap text:%d", frameCount); + app->drawText3D(bla,position,orientation,color,0.001,0); - io.DisplaySize = ImVec2((float)gWidth, (float)gHeight); - io.DisplayFramebufferScale = ImVec2(gWidth > 0 ? ((float)1.) : 0, gHeight > 0 ? ((float)1.) : 0); - io.DeltaTime = (float)(1.0f/60.0f); - io.MousePos = ImVec2((float)gMouseX, (float)gMouseY); - io.RenderDrawListsFn = ImGui_ImplBullet_RenderDrawLists; + float green[4] = {0,1,0,1}; + float blue[4] = {0,0,1,1}; + sprintf(bla, "3d ttf camera facing text:%d", frameCount); + app->drawText3D(bla,position2,orientation,green,1,CommonGraphicsApp::eDrawText3D_TrueType|CommonGraphicsApp::eDrawText3D_OrtogonalFaceCamera); - for (int i=0;i<3;i++) - { - io.MouseDown[i] = g_MousePressed[i]|g_MousePressed2[i]; - g_MousePressed[i] = false; - } + app->drawText3D(bla,position2,orientation,green,1,CommonGraphicsApp::eDrawText3D_TrueType|CommonGraphicsApp::eDrawText3D_OrtogonalFaceCamera); + sprintf(bla, "3d ttf text:%d", frameCount); + b3Quaternion orn; + orn.setEulerZYX(B3_HALF_PI/2.,0,B3_HALF_PI/2.); + app->drawText3D(bla,position2,orn,blue,1,CommonGraphicsApp::eDrawText3D_TrueType); - io.MouseWheel = g_MouseWheel; - - ImGui::NewFrame(); - - ImGui::ShowTestWindow(); - ImGui::ShowMetricsWindow(); - #if 0 - static float f = 0.0f; - ImGui::Text("Hello, world!"); - ImGui::SliderFloat("float", &f, 0.0f, 1.0f); - ImGui::ColorEdit3("clear color", (float*)&clear_color); - if (ImGui::Button("Test Window")) show_test_window ^= 1; - if (ImGui::Button("Another Window")) show_another_window ^= 1; - ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); - #endif - ImGui::Render(); - } -#endif //B3_USE_IMGUI + app->swapBuffer(); } while (!app->m_window->requestedExit()); diff --git a/examples/SimpleOpenGL3/main_imgui.cpp b/examples/SimpleOpenGL3/main_imgui.cpp new file mode 100644 index 000000000..998412c1a --- /dev/null +++ b/examples/SimpleOpenGL3/main_imgui.cpp @@ -0,0 +1,397 @@ + + +//#define USE_OPENGL2 +#ifdef USE_OPENGL2 +#include "OpenGLWindow/SimpleOpenGL2App.h" +typedef SimpleOpenGL2App SimpleOpenGLApp ; + +#else +#include "OpenGLWindow/SimpleOpenGL3App.h" +typedef SimpleOpenGL3App SimpleOpenGLApp ; + +#endif //USE_OPENGL2 + +#include "Bullet3Common/b3Quaternion.h" +#include "Bullet3Common/b3CommandLineArgs.h" +#include "assert.h" +#include + + + +char* gVideoFileName = 0; +char* gPngFileName = 0; + +static b3WheelCallback sOldWheelCB = 0; +static b3ResizeCallback sOldResizeCB = 0; +static b3MouseMoveCallback sOldMouseMoveCB = 0; +static b3MouseButtonCallback sOldMouseButtonCB = 0; +static b3KeyboardCallback sOldKeyboardCB = 0; +//static b3RenderCallback sOldRenderCB = 0; + +float gWidth = 1024; +float gHeight = 768; +SimpleOpenGLApp* app = 0; +float gMouseX = 0; +float gMouseY = 0; +float g_MouseWheel = 0.0f; +int g_MousePressed[3] = {0}; +int g_MousePressed2[3] = {0}; + +//#define B3_USE_IMGUI +#ifdef B3_USE_IMGUI +#include "OpenGLWindow/OpenGLInclude.h" +#include "ThirdPartyLibs/imgui/imgui.h" +static GLuint g_FontTexture = 0; + + + +void ImGui_ImplBullet_CreateDeviceObjects() +{ + ImGuiIO& io = ImGui::GetIO(); + + unsigned char* pixels; + int width, height; + io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); // Load as RGBA 32-bits (75% of the memory is wasted, but default font is so small) because it is more likely to be compatible with user's existing shaders. If your ImTextureId represent a higher-level concept than just a GL texture id, consider calling GetTexDataAsAlpha8() instead to save on GPU memory. + + // Upload texture to graphics system + GLint last_texture; + glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture); + glGenTextures(1, &g_FontTexture); + glBindTexture(GL_TEXTURE_2D, g_FontTexture); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); + glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels); + + // Store our identifier + io.Fonts->TexID = (void *)(intptr_t)g_FontTexture; + + // Restore state + glBindTexture(GL_TEXTURE_2D, last_texture); + +} + + +void ImGui_ImplBullet_RenderDrawLists(ImDrawData* draw_data) +{ + // Avoid rendering when minimized, scale coordinates for retina displays (screen coordinates != framebuffer coordinates) + ImGuiIO& io = ImGui::GetIO(); + int fb_width = (int)(io.DisplaySize.x * io.DisplayFramebufferScale.x); + int fb_height = (int)(io.DisplaySize.y * io.DisplayFramebufferScale.y); + if (fb_width == 0 || fb_height == 0) + return; + draw_data->ScaleClipRects(io.DisplayFramebufferScale); + + // We are using the OpenGL fixed pipeline to make the example code simpler to read! + // Setup render state: alpha-blending enabled, no face culling, no depth testing, scissor enabled, vertex/texcoord/color pointers. + GLint last_texture; glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture); + GLint last_viewport[4]; glGetIntegerv(GL_VIEWPORT, last_viewport); + GLint last_scissor_box[4]; glGetIntegerv(GL_SCISSOR_BOX, last_scissor_box); + glPushAttrib(GL_ENABLE_BIT | GL_COLOR_BUFFER_BIT | GL_TRANSFORM_BIT); + glEnable(GL_BLEND); + glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + glDisable(GL_CULL_FACE); + glDisable(GL_DEPTH_TEST); + glEnable(GL_SCISSOR_TEST); + glEnableClientState(GL_VERTEX_ARRAY); + glEnableClientState(GL_TEXTURE_COORD_ARRAY); + glEnableClientState(GL_COLOR_ARRAY); + glEnable(GL_TEXTURE_2D); + //glUseProgram(0); // You may want this if using this code in an OpenGL 3+ context + + // Setup viewport, orthographic projection matrix + glViewport(0, 0, (GLsizei)fb_width, (GLsizei)fb_height); + glMatrixMode(GL_PROJECTION); + glPushMatrix(); + glLoadIdentity(); + glOrtho(0.0f, io.DisplaySize.x, io.DisplaySize.y, 0.0f, -1.0f, +1.0f); + glMatrixMode(GL_MODELVIEW); + glPushMatrix(); + glLoadIdentity(); + + // Render command lists + #define OFFSETOF(TYPE, ELEMENT) ((size_t)&(((TYPE *)0)->ELEMENT)) + for (int n = 0; n < draw_data->CmdListsCount; n++) + { + const ImDrawList* cmd_list = draw_data->CmdLists[n]; + const ImDrawVert* vtx_buffer = cmd_list->VtxBuffer.Data; + const ImDrawIdx* idx_buffer = cmd_list->IdxBuffer.Data; + glVertexPointer(2, GL_FLOAT, sizeof(ImDrawVert), (const GLvoid*)((const char*)vtx_buffer + OFFSETOF(ImDrawVert, pos))); + glTexCoordPointer(2, GL_FLOAT, sizeof(ImDrawVert), (const GLvoid*)((const char*)vtx_buffer + OFFSETOF(ImDrawVert, uv))); + glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(ImDrawVert), (const GLvoid*)((const char*)vtx_buffer + OFFSETOF(ImDrawVert, col))); + + for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) + { + const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; + if (pcmd->UserCallback) + { + pcmd->UserCallback(cmd_list, pcmd); + } + else + { + glBindTexture(GL_TEXTURE_2D, (GLuint)(intptr_t)pcmd->TextureId); + glScissor((int)pcmd->ClipRect.x, (int)(fb_height - pcmd->ClipRect.w), (int)(pcmd->ClipRect.z - pcmd->ClipRect.x), (int)(pcmd->ClipRect.w - pcmd->ClipRect.y)); + glDrawElements(GL_TRIANGLES, (GLsizei)pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, idx_buffer); + } + idx_buffer += pcmd->ElemCount; + } + } + #undef OFFSETOF + + // Restore modified state + glDisableClientState(GL_COLOR_ARRAY); + glDisableClientState(GL_TEXTURE_COORD_ARRAY); + glDisableClientState(GL_VERTEX_ARRAY); + glBindTexture(GL_TEXTURE_2D, (GLuint)last_texture); + glMatrixMode(GL_MODELVIEW); + glPopMatrix(); + glMatrixMode(GL_PROJECTION); + glPopMatrix(); + glPopAttrib(); + glViewport(last_viewport[0], last_viewport[1], (GLsizei)last_viewport[2], (GLsizei)last_viewport[3]); + glScissor(last_scissor_box[0], last_scissor_box[1], (GLsizei)last_scissor_box[2], (GLsizei)last_scissor_box[3]); +} +#endif //B3_USE_IMGUI + +void MyWheelCallback(float deltax, float deltay) +{ + g_MouseWheel += deltax+deltay; + if (sOldWheelCB) + sOldWheelCB(deltax,deltay); +} +void MyResizeCallback( float width, float height) +{ + gWidth = width; + gHeight = height; + + if (sOldResizeCB) + sOldResizeCB(width,height); +} +void MyMouseMoveCallback( float x, float y) +{ + printf("Mouse Move: %f, %f\n", x,y); + gMouseX = x; + gMouseY = y; + + if (sOldMouseMoveCB) + sOldMouseMoveCB(x,y); +} +void MyMouseButtonCallback(int button, int state, float x, float y) +{ + gMouseX = x; + gMouseY = y; + { + if (button>=0 && button<3) + { + if (state) + { + g_MousePressed[button] = state; + } + g_MousePressed2[button] = state; + + } + + } + + if (sOldMouseButtonCB) + sOldMouseButtonCB(button,state,x,y); +} + + +void MyKeyboardCallback(int keycode, int state) +{ + //keycodes are in examples/CommonInterfaces/CommonWindowInterface.h + //for example B3G_ESCAPE for escape key + //state == 1 for pressed, state == 0 for released. + // use app->m_window->isModifiedPressed(...) to check for shift, escape and alt keys + printf("MyKeyboardCallback received key:%c in state %d\n",keycode,state); + if (sOldKeyboardCB) + sOldKeyboardCB(keycode,state); +} + + +bool ImGui_ImplGlfw_Init() +{ + + #if 0 + ImGuiIO& io = ImGui::GetIO(); + io.KeyMap[ImGuiKey_Tab] = GLFW_KEY_TAB; // Keyboard mapping. ImGui will use those indices to peek into the io.KeyDown[] array. + io.KeyMap[ImGuiKey_LeftArrow] = GLFW_KEY_LEFT; + io.KeyMap[ImGuiKey_RightArrow] = GLFW_KEY_RIGHT; + io.KeyMap[ImGuiKey_UpArrow] = GLFW_KEY_UP; + io.KeyMap[ImGuiKey_DownArrow] = GLFW_KEY_DOWN; + io.KeyMap[ImGuiKey_PageUp] = GLFW_KEY_PAGE_UP; + io.KeyMap[ImGuiKey_PageDown] = GLFW_KEY_PAGE_DOWN; + io.KeyMap[ImGuiKey_Home] = GLFW_KEY_HOME; + io.KeyMap[ImGuiKey_End] = GLFW_KEY_END; + io.KeyMap[ImGuiKey_Delete] = GLFW_KEY_DELETE; + io.KeyMap[ImGuiKey_Backspace] = GLFW_KEY_BACKSPACE; + io.KeyMap[ImGuiKey_Enter] = GLFW_KEY_ENTER; + io.KeyMap[ImGuiKey_Escape] = GLFW_KEY_ESCAPE; + io.KeyMap[ImGuiKey_A] = GLFW_KEY_A; + io.KeyMap[ImGuiKey_C] = GLFW_KEY_C; + io.KeyMap[ImGuiKey_V] = GLFW_KEY_V; + io.KeyMap[ImGuiKey_X] = GLFW_KEY_X; + io.KeyMap[ImGuiKey_Y] = GLFW_KEY_Y; + io.KeyMap[ImGuiKey_Z] = GLFW_KEY_Z; + + io.RenderDrawListsFn = ImGui_ImplGlfw_RenderDrawLists; // Alternatively you can set this to NULL and call ImGui::GetDrawData() after ImGui::Render() to get the same ImDrawData pointer. + io.SetClipboardTextFn = ImGui_ImplGlfw_SetClipboardText; + io.GetClipboardTextFn = ImGui_ImplGlfw_GetClipboardText; + io.ClipboardUserData = g_Window; +#ifdef _WIN32 + io.ImeWindowHandle = glfwGetWin32Window(g_Window); +#endif + +#endif + + return true; +} + +int main(int argc, char* argv[]) +{ + { + b3CommandLineArgs myArgs(argc, argv); + + + app = new SimpleOpenGLApp("SimpleOpenGLApp", gWidth, gHeight); + + app->m_renderer->getActiveCamera()->setCameraDistance(13); + app->m_renderer->getActiveCamera()->setCameraPitch(0); + app->m_renderer->getActiveCamera()->setCameraTargetPosition(0, 0, 0); + + sOldKeyboardCB = app->m_window->getKeyboardCallback(); + app->m_window->setKeyboardCallback(MyKeyboardCallback); + sOldMouseMoveCB = app->m_window->getMouseMoveCallback(); + app->m_window->setMouseMoveCallback(MyMouseMoveCallback); + sOldMouseButtonCB = app->m_window->getMouseButtonCallback(); + app->m_window->setMouseButtonCallback(MyMouseButtonCallback); + sOldWheelCB = app->m_window->getWheelCallback(); + app->m_window->setWheelCallback(MyWheelCallback); + sOldResizeCB = app->m_window->getResizeCallback(); + app->m_window->setResizeCallback(MyResizeCallback); + + + myArgs.GetCmdLineArgument("mp4_file", gVideoFileName); + if (gVideoFileName) + app->dumpFramesToVideo(gVideoFileName); + + myArgs.GetCmdLineArgument("png_file", gPngFileName); + char fileName[1024]; + + int textureWidth = 128; + int textureHeight = 128; + + unsigned char* image = new unsigned char[textureWidth*textureHeight * 4]; + + + int textureHandle = app->m_renderer->registerTexture(image, textureWidth, textureHeight); + + int cubeIndex = app->registerCubeShape(1, 1, 1); + + b3Vector3 pos = b3MakeVector3(0, 0, 0); + b3Quaternion orn(0, 0, 0, 1); + b3Vector3 color = b3MakeVector3(1, 0, 0); + b3Vector3 scaling = b3MakeVector3 (1, 1, 1); + app->m_renderer->registerGraphicsInstance(cubeIndex, pos, orn, color, scaling); + app->m_renderer->writeTransforms(); + + do + { + static int frameCount = 0; + frameCount++; + if (gPngFileName) + { + printf("gPngFileName=%s\n", gPngFileName); + + sprintf(fileName, "%s%d.png", gPngFileName, frameCount++); + app->dumpNextFrameToPng(fileName); + } + + + + + + //update the texels of the texture using a simple pattern, animated using frame index + for (int y = 0; y < textureHeight; ++y) + { + const int t = (y + frameCount) >> 4; + unsigned char* pi = image + y*textureWidth * 3; + for (int x = 0; x < textureWidth; ++x) + { + const int s = x >> 4; + const unsigned char b = 180; + unsigned char c = b + ((s + (t & 1)) & 1)*(255 - b); + pi[0] = pi[1] = pi[2] = pi[3] = c; pi += 3; + } + } + + app->m_renderer->activateTexture(textureHandle); + app->m_renderer->updateTexture(textureHandle, image); + + //float color[4] = { 255, 1, 1, 1 }; + //app->m_primRenderer->drawTexturedRect(100, 200, gWidth / 2 - 50, gHeight / 2 - 50, color, 0, 0, 1, 1, true); + + + app->m_renderer->init(); + app->m_renderer->updateCamera(1); + + app->m_renderer->renderScene(); + app->drawGrid(); + char bla[1024]; + sprintf(bla, "Simple test frame %d", frameCount); + + //app->drawText(bla, 10, 10); + +#ifdef B3_USE_IMGUI + { + bool show_test_window = true; + bool show_another_window = false; + ImVec4 clear_color = ImColor(114, 144, 154); + + // Start the frame + ImGuiIO& io = ImGui::GetIO(); + if (!g_FontTexture) + ImGui_ImplBullet_CreateDeviceObjects(); + + io.DisplaySize = ImVec2((float)gWidth, (float)gHeight); + io.DisplayFramebufferScale = ImVec2(gWidth > 0 ? ((float)1.) : 0, gHeight > 0 ? ((float)1.) : 0); + io.DeltaTime = (float)(1.0f/60.0f); + io.MousePos = ImVec2((float)gMouseX, (float)gMouseY); + io.RenderDrawListsFn = ImGui_ImplBullet_RenderDrawLists; + + + for (int i=0;i<3;i++) + { + io.MouseDown[i] = g_MousePressed[i]|g_MousePressed2[i]; + g_MousePressed[i] = false; + } + + io.MouseWheel = g_MouseWheel; + + ImGui::NewFrame(); + + ImGui::ShowTestWindow(); + ImGui::ShowMetricsWindow(); + #if 0 + static float f = 0.0f; + ImGui::Text("Hello, world!"); + ImGui::SliderFloat("float", &f, 0.0f, 1.0f); + ImGui::ColorEdit3("clear color", (float*)&clear_color); + if (ImGui::Button("Test Window")) show_test_window ^= 1; + if (ImGui::Button("Another Window")) show_another_window ^= 1; + ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); + #endif + ImGui::Render(); + } +#endif //B3_USE_IMGUI + app->swapBuffer(); + } while (!app->m_window->requestedExit()); + + + + delete app; + + delete[] image; + } + return 0; +} diff --git a/examples/SimpleOpenGL3/premake4.lua b/examples/SimpleOpenGL3/premake4.lua index 4bd8bbdda..6afc8e957 100644 --- a/examples/SimpleOpenGL3/premake4.lua +++ b/examples/SimpleOpenGL3/premake4.lua @@ -17,7 +17,7 @@ initGlew() files { - "*.cpp", + "main.cpp", "*.h", } diff --git a/examples/SoftDemo/SoftDemo.cpp b/examples/SoftDemo/SoftDemo.cpp index 5e3fe7feb..c1e58dfd7 100644 --- a/examples/SoftDemo/SoftDemo.cpp +++ b/examples/SoftDemo/SoftDemo.cpp @@ -107,10 +107,10 @@ public: { //@todo depends on current_demo? float dist = 45; - float pitch = 27; - float yaw = 31; + float pitch = -31; + float yaw = 27; float targetPos[3]={10-1,0}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } SoftDemo(struct GUIHelperInterface* helper) diff --git a/examples/StandaloneMain/hellovr_opengl_main.cpp b/examples/StandaloneMain/hellovr_opengl_main.cpp index a430ea615..cad0eeb35 100644 --- a/examples/StandaloneMain/hellovr_opengl_main.cpp +++ b/examples/StandaloneMain/hellovr_opengl_main.cpp @@ -31,7 +31,8 @@ bool gDisableDesktopGL = false; #include #include - +#include "strtools.h" +#include "compat.h" #include "lodepng.h" #include "Matrices.h" #include "pathtools.h" @@ -373,8 +374,8 @@ void MyKeyboardCallback(int key, int state) #include "../SharedMemory/SharedMemoryPublic.h" extern bool useShadowMap; -bool gEnableVRRenderControllers=true; - +static bool gEnableVRRenderControllers=true; +static bool gEnableVRRendering = true; void VRPhysicsServerVisualizerFlagCallback(int flag, bool enable) @@ -391,7 +392,10 @@ void VRPhysicsServerVisualizerFlagCallback(int flag, bool enable) { gEnableVRRenderControllers = enable; } - + if (flag == COV_ENABLE_RENDERING) + { + gEnableVRRendering = enable; + } if (flag == COV_ENABLE_WIREFRAME) @@ -594,10 +598,10 @@ bool CMainApplication::BInitGL() { if( m_bDebugOpenGL ) { - const GLvoid *userParam=0; - glDebugMessageCallback(DebugCallback, userParam); - glDebugMessageControl( GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, nullptr, GL_TRUE ); - glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS); + //const GLvoid *userParam=0; + //glDebugMessageCallback(DebugCallback, userParam); + //glDebugMessageControl( GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, nullptr, GL_TRUE ); + //glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS); } if( !CreateAllShaders() ) @@ -653,8 +657,8 @@ void CMainApplication::Shutdown() { if (m_glSceneVertBuffer) { - glDebugMessageControl( GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, nullptr, GL_FALSE ); - glDebugMessageCallback(nullptr, nullptr); + //glDebugMessageControl( GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, nullptr, GL_FALSE ); + //glDebugMessageCallback(nullptr, nullptr); glDeleteBuffers(1, &m_glSceneVertBuffer); glDeleteBuffers(1, &m_glIDVertBuffer); glDeleteBuffers(1, &m_glIDIndexBuffer); @@ -887,13 +891,18 @@ void CMainApplication::RunMainLoop() while ( !bQuit && !m_app->m_window->requestedExit()) { b3ChromeUtilsEnableProfiling(); + if (gEnableVRRendering) { - B3_PROFILE("main"); + B3_PROFILE("main"); - bQuit = HandleInput(); + bQuit = HandleInput(); - RenderFrame(); - } + RenderFrame(); + } else + { + b3Clock::usleep(0); + sExample->updateGraphics(); + } } } @@ -1270,10 +1279,12 @@ bool CMainApplication::SetupTexturemaps() glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR ); glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR ); +#ifdef WIN32 GLfloat fLargest; + glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &fLargest); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT, fLargest); - +#endif glBindTexture( GL_TEXTURE_2D, 0 ); return ( m_iTexture != 0 ); @@ -2282,11 +2293,11 @@ bool CGLRenderModel::BInit( const vr::RenderModel_t & vrModel, const vr::RenderM glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE ); glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR ); glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR ); - +#ifdef _WIN32 GLfloat fLargest; glGetFloatv( GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &fLargest ); glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT, fLargest ); - +#endif glBindTexture( GL_TEXTURE_2D, 0 ); m_unVertexCount = vrModel.unTriangleCount * 3; @@ -2376,7 +2387,8 @@ int main(int argc, char *argv[]) args.GetCmdLineArgument("mp4",gVideoFileName); if (gVideoFileName) pMainApplication->getApp()->dumpFramesToVideo(gVideoFileName); - + +#ifdef _WIN32 //request disable VSYNC typedef bool (APIENTRY *PFNWGLSWAPINTERVALFARPROC)(int); PFNWGLSWAPINTERVALFARPROC wglSwapIntervalEXT = 0; @@ -2384,7 +2396,14 @@ int main(int argc, char *argv[]) (PFNWGLSWAPINTERVALFARPROC)wglGetProcAddress("wglSwapIntervalEXT"); if (wglSwapIntervalEXT) wglSwapIntervalEXT(0); - +#endif + +#ifdef __APPLE__ + GLint sync = 0; + CGLContextObj ctx = CGLGetCurrentContext(); + CGLSetParameter(ctx, kCGLCPSwapInterval, &sync); +#endif + pMainApplication->RunMainLoop(); pMainApplication->Shutdown(); @@ -2397,4 +2416,4 @@ int main(int argc, char *argv[]) return 0; } -#endif //BT_ENABLE_VR \ No newline at end of file +#endif //BT_ENABLE_VR diff --git a/examples/ThirdPartyLibs/openvr/bin/osx32/libopenvr_api.dylib b/examples/ThirdPartyLibs/openvr/bin/osx32/libopenvr_api.dylib index 5a20f3aae..fb1d77f02 100644 Binary files a/examples/ThirdPartyLibs/openvr/bin/osx32/libopenvr_api.dylib and b/examples/ThirdPartyLibs/openvr/bin/osx32/libopenvr_api.dylib differ diff --git a/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Headers/openvr.h b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Headers/openvr.h new file mode 100644 index 000000000..79abf062a --- /dev/null +++ b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Headers/openvr.h @@ -0,0 +1,3721 @@ +#pragma once + +// openvr.h +//========= Copyright Valve Corporation ============// +// Dynamically generated file. Do not modify this file directly. + +#ifndef _OPENVR_API +#define _OPENVR_API + +#include + + + +// vrtypes.h +#ifndef _INCLUDE_VRTYPES_H +#define _INCLUDE_VRTYPES_H + +// Forward declarations to avoid requiring vulkan.h +struct VkDevice_T; +struct VkPhysicalDevice_T; +struct VkInstance_T; +struct VkQueue_T; + +// Forward declarations to avoid requiring d3d12.h +struct ID3D12Resource; +struct ID3D12CommandQueue; + +namespace vr +{ +#pragma pack( push, 8 ) + +typedef void* glSharedTextureHandle_t; +typedef int32_t glInt_t; +typedef uint32_t glUInt_t; + +// right-handed system +// +y is up +// +x is to the right +// -z is going away from you +// Distance unit is meters +struct HmdMatrix34_t +{ + float m[3][4]; +}; + +struct HmdMatrix44_t +{ + float m[4][4]; +}; + +struct HmdVector3_t +{ + float v[3]; +}; + +struct HmdVector4_t +{ + float v[4]; +}; + +struct HmdVector3d_t +{ + double v[3]; +}; + +struct HmdVector2_t +{ + float v[2]; +}; + +struct HmdQuaternion_t +{ + double w, x, y, z; +}; + +struct HmdColor_t +{ + float r, g, b, a; +}; + +struct HmdQuad_t +{ + HmdVector3_t vCorners[ 4 ]; +}; + +struct HmdRect2_t +{ + HmdVector2_t vTopLeft; + HmdVector2_t vBottomRight; +}; + +/** Used to return the post-distortion UVs for each color channel. +* UVs range from 0 to 1 with 0,0 in the upper left corner of the +* source render target. The 0,0 to 1,1 range covers a single eye. */ +struct DistortionCoordinates_t +{ + float rfRed[2]; + float rfGreen[2]; + float rfBlue[2]; +}; + +enum EVREye +{ + Eye_Left = 0, + Eye_Right = 1 +}; + +enum ETextureType +{ + TextureType_DirectX = 0, // Handle is an ID3D11Texture + TextureType_OpenGL = 1, // Handle is an OpenGL texture name or an OpenGL render buffer name, depending on submit flags + TextureType_Vulkan = 2, // Handle is a pointer to a VRVulkanTextureData_t structure + TextureType_IOSurface = 3, // Handle is a macOS cross-process-sharable IOSurfaceRef + TextureType_DirectX12 = 4, // Handle is a pointer to a D3D12TextureData_t structure +}; + +enum EColorSpace +{ + ColorSpace_Auto = 0, // Assumes 'gamma' for 8-bit per component formats, otherwise 'linear'. This mirrors the DXGI formats which have _SRGB variants. + ColorSpace_Gamma = 1, // Texture data can be displayed directly on the display without any conversion (a.k.a. display native format). + ColorSpace_Linear = 2, // Same as gamma but has been converted to a linear representation using DXGI's sRGB conversion algorithm. +}; + +struct Texture_t +{ + void* handle; // See ETextureType definition above + ETextureType eType; + EColorSpace eColorSpace; +}; + +// Handle to a shared texture (HANDLE on Windows obtained using OpenSharedResource). +typedef uint64_t SharedTextureHandle_t; +#define INVALID_SHARED_TEXTURE_HANDLE ((vr::SharedTextureHandle_t)0) + +enum ETrackingResult +{ + TrackingResult_Uninitialized = 1, + + TrackingResult_Calibrating_InProgress = 100, + TrackingResult_Calibrating_OutOfRange = 101, + + TrackingResult_Running_OK = 200, + TrackingResult_Running_OutOfRange = 201, +}; + +typedef uint32_t DriverId_t; +static const uint32_t k_nDriverNone = 0xFFFFFFFF; + +static const uint32_t k_unMaxDriverDebugResponseSize = 32768; + +/** Used to pass device IDs to API calls */ +typedef uint32_t TrackedDeviceIndex_t; +static const uint32_t k_unTrackedDeviceIndex_Hmd = 0; +static const uint32_t k_unMaxTrackedDeviceCount = 16; +static const uint32_t k_unTrackedDeviceIndexOther = 0xFFFFFFFE; +static const uint32_t k_unTrackedDeviceIndexInvalid = 0xFFFFFFFF; + +/** Describes what kind of object is being tracked at a given ID */ +enum ETrackedDeviceClass +{ + TrackedDeviceClass_Invalid = 0, // the ID was not valid. + TrackedDeviceClass_HMD = 1, // Head-Mounted Displays + TrackedDeviceClass_Controller = 2, // Tracked controllers + TrackedDeviceClass_GenericTracker = 3, // Generic trackers, similar to controllers + TrackedDeviceClass_TrackingReference = 4, // Camera and base stations that serve as tracking reference points + TrackedDeviceClass_DisplayRedirect = 5, // Accessories that aren't necessarily tracked themselves, but may redirect video output from other tracked devices +}; + + +/** Describes what specific role associated with a tracked device */ +enum ETrackedControllerRole +{ + TrackedControllerRole_Invalid = 0, // Invalid value for controller type + TrackedControllerRole_LeftHand = 1, // Tracked device associated with the left hand + TrackedControllerRole_RightHand = 2, // Tracked device associated with the right hand +}; + + +/** describes a single pose for a tracked object */ +struct TrackedDevicePose_t +{ + HmdMatrix34_t mDeviceToAbsoluteTracking; + HmdVector3_t vVelocity; // velocity in tracker space in m/s + HmdVector3_t vAngularVelocity; // angular velocity in radians/s (?) + ETrackingResult eTrackingResult; + bool bPoseIsValid; + + // This indicates that there is a device connected for this spot in the pose array. + // It could go from true to false if the user unplugs the device. + bool bDeviceIsConnected; +}; + +/** Identifies which style of tracking origin the application wants to use +* for the poses it is requesting */ +enum ETrackingUniverseOrigin +{ + TrackingUniverseSeated = 0, // Poses are provided relative to the seated zero pose + TrackingUniverseStanding = 1, // Poses are provided relative to the safe bounds configured by the user + TrackingUniverseRawAndUncalibrated = 2, // Poses are provided in the coordinate system defined by the driver. It has Y up and is unified for devices of the same driver. You usually don't want this one. +}; + +// Refers to a single container of properties +typedef uint64_t PropertyContainerHandle_t; +typedef uint32_t PropertyTypeTag_t; + +static const PropertyContainerHandle_t k_ulInvalidPropertyContainer = 0; +static const PropertyTypeTag_t k_unInvalidPropertyTag = 0; + +// Use these tags to set/get common types as struct properties +static const PropertyTypeTag_t k_unFloatPropertyTag = 1; +static const PropertyTypeTag_t k_unInt32PropertyTag = 2; +static const PropertyTypeTag_t k_unUint64PropertyTag = 3; +static const PropertyTypeTag_t k_unBoolPropertyTag = 4; +static const PropertyTypeTag_t k_unStringPropertyTag = 5; + +static const PropertyTypeTag_t k_unHmdMatrix34PropertyTag = 20; +static const PropertyTypeTag_t k_unHmdMatrix44PropertyTag = 21; +static const PropertyTypeTag_t k_unHmdVector3PropertyTag = 22; +static const PropertyTypeTag_t k_unHmdVector4PropertyTag = 23; + +static const PropertyTypeTag_t k_unHiddenAreaPropertyTag = 30; + +static const PropertyTypeTag_t k_unOpenVRInternalReserved_Start = 1000; +static const PropertyTypeTag_t k_unOpenVRInternalReserved_End = 10000; + + +/** Each entry in this enum represents a property that can be retrieved about a +* tracked device. Many fields are only valid for one ETrackedDeviceClass. */ +enum ETrackedDeviceProperty +{ + Prop_Invalid = 0, + + // general properties that apply to all device classes + Prop_TrackingSystemName_String = 1000, + Prop_ModelNumber_String = 1001, + Prop_SerialNumber_String = 1002, + Prop_RenderModelName_String = 1003, + Prop_WillDriftInYaw_Bool = 1004, + Prop_ManufacturerName_String = 1005, + Prop_TrackingFirmwareVersion_String = 1006, + Prop_HardwareRevision_String = 1007, + Prop_AllWirelessDongleDescriptions_String = 1008, + Prop_ConnectedWirelessDongle_String = 1009, + Prop_DeviceIsWireless_Bool = 1010, + Prop_DeviceIsCharging_Bool = 1011, + Prop_DeviceBatteryPercentage_Float = 1012, // 0 is empty, 1 is full + Prop_StatusDisplayTransform_Matrix34 = 1013, + Prop_Firmware_UpdateAvailable_Bool = 1014, + Prop_Firmware_ManualUpdate_Bool = 1015, + Prop_Firmware_ManualUpdateURL_String = 1016, + Prop_HardwareRevision_Uint64 = 1017, + Prop_FirmwareVersion_Uint64 = 1018, + Prop_FPGAVersion_Uint64 = 1019, + Prop_VRCVersion_Uint64 = 1020, + Prop_RadioVersion_Uint64 = 1021, + Prop_DongleVersion_Uint64 = 1022, + Prop_BlockServerShutdown_Bool = 1023, + Prop_CanUnifyCoordinateSystemWithHmd_Bool = 1024, + Prop_ContainsProximitySensor_Bool = 1025, + Prop_DeviceProvidesBatteryStatus_Bool = 1026, + Prop_DeviceCanPowerOff_Bool = 1027, + Prop_Firmware_ProgrammingTarget_String = 1028, + Prop_DeviceClass_Int32 = 1029, + Prop_HasCamera_Bool = 1030, + Prop_DriverVersion_String = 1031, + Prop_Firmware_ForceUpdateRequired_Bool = 1032, + Prop_ViveSystemButtonFixRequired_Bool = 1033, + Prop_ParentDriver_Uint64 = 1034, + Prop_ResourceRoot_String = 1035, + + // Properties that are unique to TrackedDeviceClass_HMD + Prop_ReportsTimeSinceVSync_Bool = 2000, + Prop_SecondsFromVsyncToPhotons_Float = 2001, + Prop_DisplayFrequency_Float = 2002, + Prop_UserIpdMeters_Float = 2003, + Prop_CurrentUniverseId_Uint64 = 2004, + Prop_PreviousUniverseId_Uint64 = 2005, + Prop_DisplayFirmwareVersion_Uint64 = 2006, + Prop_IsOnDesktop_Bool = 2007, + Prop_DisplayMCType_Int32 = 2008, + Prop_DisplayMCOffset_Float = 2009, + Prop_DisplayMCScale_Float = 2010, + Prop_EdidVendorID_Int32 = 2011, + Prop_DisplayMCImageLeft_String = 2012, + Prop_DisplayMCImageRight_String = 2013, + Prop_DisplayGCBlackClamp_Float = 2014, + Prop_EdidProductID_Int32 = 2015, + Prop_CameraToHeadTransform_Matrix34 = 2016, + Prop_DisplayGCType_Int32 = 2017, + Prop_DisplayGCOffset_Float = 2018, + Prop_DisplayGCScale_Float = 2019, + Prop_DisplayGCPrescale_Float = 2020, + Prop_DisplayGCImage_String = 2021, + Prop_LensCenterLeftU_Float = 2022, + Prop_LensCenterLeftV_Float = 2023, + Prop_LensCenterRightU_Float = 2024, + Prop_LensCenterRightV_Float = 2025, + Prop_UserHeadToEyeDepthMeters_Float = 2026, + Prop_CameraFirmwareVersion_Uint64 = 2027, + Prop_CameraFirmwareDescription_String = 2028, + Prop_DisplayFPGAVersion_Uint64 = 2029, + Prop_DisplayBootloaderVersion_Uint64 = 2030, + Prop_DisplayHardwareVersion_Uint64 = 2031, + Prop_AudioFirmwareVersion_Uint64 = 2032, + Prop_CameraCompatibilityMode_Int32 = 2033, + Prop_ScreenshotHorizontalFieldOfViewDegrees_Float = 2034, + Prop_ScreenshotVerticalFieldOfViewDegrees_Float = 2035, + Prop_DisplaySuppressed_Bool = 2036, + Prop_DisplayAllowNightMode_Bool = 2037, + Prop_DisplayMCImageWidth_Int32 = 2038, + Prop_DisplayMCImageHeight_Int32 = 2039, + Prop_DisplayMCImageNumChannels_Int32 = 2040, + Prop_DisplayMCImageData_Binary = 2041, + Prop_SecondsFromPhotonsToVblank_Float = 2042, + Prop_DriverDirectModeSendsVsyncEvents_Bool = 2043, + Prop_DisplayDebugMode_Bool = 2044, + Prop_GraphicsAdapterLuid_Uint64 = 2045, + + // Properties that are unique to TrackedDeviceClass_Controller + Prop_AttachedDeviceId_String = 3000, + Prop_SupportedButtons_Uint64 = 3001, + Prop_Axis0Type_Int32 = 3002, // Return value is of type EVRControllerAxisType + Prop_Axis1Type_Int32 = 3003, // Return value is of type EVRControllerAxisType + Prop_Axis2Type_Int32 = 3004, // Return value is of type EVRControllerAxisType + Prop_Axis3Type_Int32 = 3005, // Return value is of type EVRControllerAxisType + Prop_Axis4Type_Int32 = 3006, // Return value is of type EVRControllerAxisType + Prop_ControllerRoleHint_Int32 = 3007, // Return value is of type ETrackedControllerRole + + // Properties that are unique to TrackedDeviceClass_TrackingReference + Prop_FieldOfViewLeftDegrees_Float = 4000, + Prop_FieldOfViewRightDegrees_Float = 4001, + Prop_FieldOfViewTopDegrees_Float = 4002, + Prop_FieldOfViewBottomDegrees_Float = 4003, + Prop_TrackingRangeMinimumMeters_Float = 4004, + Prop_TrackingRangeMaximumMeters_Float = 4005, + Prop_ModeLabel_String = 4006, + + // Properties that are used for user interface like icons names + Prop_IconPathName_String = 5000, // DEPRECATED. Value not referenced. Now expected to be part of icon path properties. + Prop_NamedIconPathDeviceOff_String = 5001, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceSearching_String = 5002, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceSearchingAlert_String = 5003, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceReady_String = 5004, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceReadyAlert_String = 5005, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceNotReady_String = 5006, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceStandby_String = 5007, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceAlertLow_String = 5008, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + + // Properties that are used by helpers, but are opaque to applications + Prop_DisplayHiddenArea_Binary_Start = 5100, + Prop_DisplayHiddenArea_Binary_End = 5150, + + // Properties that are unique to drivers + Prop_UserConfigPath_String = 6000, + Prop_InstallPath_String = 6001, + Prop_HasDisplayComponent_Bool = 6002, + Prop_HasControllerComponent_Bool = 6003, + Prop_HasCameraComponent_Bool = 6004, + Prop_HasDriverDirectModeComponent_Bool = 6005, + Prop_HasVirtualDisplayComponent_Bool = 6006, + + // Vendors are free to expose private debug data in this reserved region + Prop_VendorSpecific_Reserved_Start = 10000, + Prop_VendorSpecific_Reserved_End = 10999, +}; + +/** No string property will ever be longer than this length */ +static const uint32_t k_unMaxPropertyStringSize = 32 * 1024; + +/** Used to return errors that occur when reading properties. */ +enum ETrackedPropertyError +{ + TrackedProp_Success = 0, + TrackedProp_WrongDataType = 1, + TrackedProp_WrongDeviceClass = 2, + TrackedProp_BufferTooSmall = 3, + TrackedProp_UnknownProperty = 4, // Driver has not set the property (and may not ever). + TrackedProp_InvalidDevice = 5, + TrackedProp_CouldNotContactServer = 6, + TrackedProp_ValueNotProvidedByDevice = 7, + TrackedProp_StringExceedsMaximumLength = 8, + TrackedProp_NotYetAvailable = 9, // The property value isn't known yet, but is expected soon. Call again later. + TrackedProp_PermissionDenied = 10, + TrackedProp_InvalidOperation = 11, +}; + +/** Allows the application to control what part of the provided texture will be used in the +* frame buffer. */ +struct VRTextureBounds_t +{ + float uMin, vMin; + float uMax, vMax; +}; + + +/** Allows the application to control how scene textures are used by the compositor when calling Submit. */ +enum EVRSubmitFlags +{ + // Simple render path. App submits rendered left and right eye images with no lens distortion correction applied. + Submit_Default = 0x00, + + // App submits final left and right eye images with lens distortion already applied (lens distortion makes the images appear + // barrel distorted with chromatic aberration correction applied). The app would have used the data returned by + // vr::IVRSystem::ComputeDistortion() to apply the correct distortion to the rendered images before calling Submit(). + Submit_LensDistortionAlreadyApplied = 0x01, + + // If the texture pointer passed in is actually a renderbuffer (e.g. for MSAA in OpenGL) then set this flag. + Submit_GlRenderBuffer = 0x02, + + // Do not use + Submit_Reserved = 0x04, +}; + +/** Data required for passing Vulkan textures to IVRCompositor::Submit. +* Be sure to call OpenVR_Shutdown before destroying these resources. */ +struct VRVulkanTextureData_t +{ + uint64_t m_nImage; // VkImage + VkDevice_T *m_pDevice; + VkPhysicalDevice_T *m_pPhysicalDevice; + VkInstance_T *m_pInstance; + VkQueue_T *m_pQueue; + uint32_t m_nQueueFamilyIndex; + uint32_t m_nWidth, m_nHeight, m_nFormat, m_nSampleCount; +}; + +/** Data required for passing D3D12 textures to IVRCompositor::Submit. +* Be sure to call OpenVR_Shutdown before destroying these resources. */ +struct D3D12TextureData_t +{ + ID3D12Resource *m_pResource; + ID3D12CommandQueue *m_pCommandQueue; + uint32_t m_nNodeMask; +}; + +/** Status of the overall system or tracked objects */ +enum EVRState +{ + VRState_Undefined = -1, + VRState_Off = 0, + VRState_Searching = 1, + VRState_Searching_Alert = 2, + VRState_Ready = 3, + VRState_Ready_Alert = 4, + VRState_NotReady = 5, + VRState_Standby = 6, + VRState_Ready_Alert_Low = 7, +}; + +/** The types of events that could be posted (and what the parameters mean for each event type) */ +enum EVREventType +{ + VREvent_None = 0, + + VREvent_TrackedDeviceActivated = 100, + VREvent_TrackedDeviceDeactivated = 101, + VREvent_TrackedDeviceUpdated = 102, + VREvent_TrackedDeviceUserInteractionStarted = 103, + VREvent_TrackedDeviceUserInteractionEnded = 104, + VREvent_IpdChanged = 105, + VREvent_EnterStandbyMode = 106, + VREvent_LeaveStandbyMode = 107, + VREvent_TrackedDeviceRoleChanged = 108, + VREvent_WatchdogWakeUpRequested = 109, + VREvent_LensDistortionChanged = 110, + VREvent_PropertyChanged = 111, + + VREvent_ButtonPress = 200, // data is controller + VREvent_ButtonUnpress = 201, // data is controller + VREvent_ButtonTouch = 202, // data is controller + VREvent_ButtonUntouch = 203, // data is controller + + VREvent_MouseMove = 300, // data is mouse + VREvent_MouseButtonDown = 301, // data is mouse + VREvent_MouseButtonUp = 302, // data is mouse + VREvent_FocusEnter = 303, // data is overlay + VREvent_FocusLeave = 304, // data is overlay + VREvent_Scroll = 305, // data is mouse + VREvent_TouchPadMove = 306, // data is mouse + VREvent_OverlayFocusChanged = 307, // data is overlay, global event + + VREvent_InputFocusCaptured = 400, // data is process DEPRECATED + VREvent_InputFocusReleased = 401, // data is process DEPRECATED + VREvent_SceneFocusLost = 402, // data is process + VREvent_SceneFocusGained = 403, // data is process + VREvent_SceneApplicationChanged = 404, // data is process - The App actually drawing the scene changed (usually to or from the compositor) + VREvent_SceneFocusChanged = 405, // data is process - New app got access to draw the scene + VREvent_InputFocusChanged = 406, // data is process + VREvent_SceneApplicationSecondaryRenderingStarted = 407, // data is process + + VREvent_HideRenderModels = 410, // Sent to the scene application to request hiding render models temporarily + VREvent_ShowRenderModels = 411, // Sent to the scene application to request restoring render model visibility + + VREvent_OverlayShown = 500, + VREvent_OverlayHidden = 501, + VREvent_DashboardActivated = 502, + VREvent_DashboardDeactivated = 503, + VREvent_DashboardThumbSelected = 504, // Sent to the overlay manager - data is overlay + VREvent_DashboardRequested = 505, // Sent to the overlay manager - data is overlay + VREvent_ResetDashboard = 506, // Send to the overlay manager + VREvent_RenderToast = 507, // Send to the dashboard to render a toast - data is the notification ID + VREvent_ImageLoaded = 508, // Sent to overlays when a SetOverlayRaw or SetOverlayFromFile call finishes loading + VREvent_ShowKeyboard = 509, // Sent to keyboard renderer in the dashboard to invoke it + VREvent_HideKeyboard = 510, // Sent to keyboard renderer in the dashboard to hide it + VREvent_OverlayGamepadFocusGained = 511, // Sent to an overlay when IVROverlay::SetFocusOverlay is called on it + VREvent_OverlayGamepadFocusLost = 512, // Send to an overlay when it previously had focus and IVROverlay::SetFocusOverlay is called on something else + VREvent_OverlaySharedTextureChanged = 513, + VREvent_DashboardGuideButtonDown = 514, + VREvent_DashboardGuideButtonUp = 515, + VREvent_ScreenshotTriggered = 516, // Screenshot button combo was pressed, Dashboard should request a screenshot + VREvent_ImageFailed = 517, // Sent to overlays when a SetOverlayRaw or SetOverlayfromFail fails to load + VREvent_DashboardOverlayCreated = 518, + + // Screenshot API + VREvent_RequestScreenshot = 520, // Sent by vrclient application to compositor to take a screenshot + VREvent_ScreenshotTaken = 521, // Sent by compositor to the application that the screenshot has been taken + VREvent_ScreenshotFailed = 522, // Sent by compositor to the application that the screenshot failed to be taken + VREvent_SubmitScreenshotToDashboard = 523, // Sent by compositor to the dashboard that a completed screenshot was submitted + VREvent_ScreenshotProgressToDashboard = 524, // Sent by compositor to the dashboard that a completed screenshot was submitted + + VREvent_PrimaryDashboardDeviceChanged = 525, + + VREvent_Notification_Shown = 600, + VREvent_Notification_Hidden = 601, + VREvent_Notification_BeginInteraction = 602, + VREvent_Notification_Destroyed = 603, + + VREvent_Quit = 700, // data is process + VREvent_ProcessQuit = 701, // data is process + VREvent_QuitAborted_UserPrompt = 702, // data is process + VREvent_QuitAcknowledged = 703, // data is process + VREvent_DriverRequestedQuit = 704, // The driver has requested that SteamVR shut down + + VREvent_ChaperoneDataHasChanged = 800, + VREvent_ChaperoneUniverseHasChanged = 801, + VREvent_ChaperoneTempDataHasChanged = 802, + VREvent_ChaperoneSettingsHaveChanged = 803, + VREvent_SeatedZeroPoseReset = 804, + + VREvent_AudioSettingsHaveChanged = 820, + + VREvent_BackgroundSettingHasChanged = 850, + VREvent_CameraSettingsHaveChanged = 851, + VREvent_ReprojectionSettingHasChanged = 852, + VREvent_ModelSkinSettingsHaveChanged = 853, + VREvent_EnvironmentSettingsHaveChanged = 854, + VREvent_PowerSettingsHaveChanged = 855, + VREvent_EnableHomeAppSettingsHaveChanged = 856, + + VREvent_StatusUpdate = 900, + + VREvent_MCImageUpdated = 1000, + + VREvent_FirmwareUpdateStarted = 1100, + VREvent_FirmwareUpdateFinished = 1101, + + VREvent_KeyboardClosed = 1200, + VREvent_KeyboardCharInput = 1201, + VREvent_KeyboardDone = 1202, // Sent when DONE button clicked on keyboard + + VREvent_ApplicationTransitionStarted = 1300, + VREvent_ApplicationTransitionAborted = 1301, + VREvent_ApplicationTransitionNewAppStarted = 1302, + VREvent_ApplicationListUpdated = 1303, + VREvent_ApplicationMimeTypeLoad = 1304, + VREvent_ApplicationTransitionNewAppLaunchComplete = 1305, + VREvent_ProcessConnected = 1306, + VREvent_ProcessDisconnected = 1307, + + VREvent_Compositor_MirrorWindowShown = 1400, + VREvent_Compositor_MirrorWindowHidden = 1401, + VREvent_Compositor_ChaperoneBoundsShown = 1410, + VREvent_Compositor_ChaperoneBoundsHidden = 1411, + + VREvent_TrackedCamera_StartVideoStream = 1500, + VREvent_TrackedCamera_StopVideoStream = 1501, + VREvent_TrackedCamera_PauseVideoStream = 1502, + VREvent_TrackedCamera_ResumeVideoStream = 1503, + VREvent_TrackedCamera_EditingSurface = 1550, + + VREvent_PerformanceTest_EnableCapture = 1600, + VREvent_PerformanceTest_DisableCapture = 1601, + VREvent_PerformanceTest_FidelityLevel = 1602, + + VREvent_MessageOverlay_Closed = 1650, + + // Vendors are free to expose private events in this reserved region + VREvent_VendorSpecific_Reserved_Start = 10000, + VREvent_VendorSpecific_Reserved_End = 19999, +}; + + +/** Level of Hmd activity */ +// UserInteraction_Timeout means the device is in the process of timing out. +// InUse = ( k_EDeviceActivityLevel_UserInteraction || k_EDeviceActivityLevel_UserInteraction_Timeout ) +// VREvent_TrackedDeviceUserInteractionStarted fires when the devices transitions from Standby -> UserInteraction or Idle -> UserInteraction. +// VREvent_TrackedDeviceUserInteractionEnded fires when the devices transitions from UserInteraction_Timeout -> Idle +enum EDeviceActivityLevel +{ + k_EDeviceActivityLevel_Unknown = -1, + k_EDeviceActivityLevel_Idle = 0, // No activity for the last 10 seconds + k_EDeviceActivityLevel_UserInteraction = 1, // Activity (movement or prox sensor) is happening now + k_EDeviceActivityLevel_UserInteraction_Timeout = 2, // No activity for the last 0.5 seconds + k_EDeviceActivityLevel_Standby = 3, // Idle for at least 5 seconds (configurable in Settings -> Power Management) +}; + + +/** VR controller button and axis IDs */ +enum EVRButtonId +{ + k_EButton_System = 0, + k_EButton_ApplicationMenu = 1, + k_EButton_Grip = 2, + k_EButton_DPad_Left = 3, + k_EButton_DPad_Up = 4, + k_EButton_DPad_Right = 5, + k_EButton_DPad_Down = 6, + k_EButton_A = 7, + + k_EButton_ProximitySensor = 31, + + k_EButton_Axis0 = 32, + k_EButton_Axis1 = 33, + k_EButton_Axis2 = 34, + k_EButton_Axis3 = 35, + k_EButton_Axis4 = 36, + + // aliases for well known controllers + k_EButton_SteamVR_Touchpad = k_EButton_Axis0, + k_EButton_SteamVR_Trigger = k_EButton_Axis1, + + k_EButton_Dashboard_Back = k_EButton_Grip, + + k_EButton_Max = 64 +}; + +inline uint64_t ButtonMaskFromId( EVRButtonId id ) { return 1ull << id; } + +/** used for controller button events */ +struct VREvent_Controller_t +{ + uint32_t button; // EVRButtonId enum +}; + + +/** used for simulated mouse events in overlay space */ +enum EVRMouseButton +{ + VRMouseButton_Left = 0x0001, + VRMouseButton_Right = 0x0002, + VRMouseButton_Middle = 0x0004, +}; + + +/** used for simulated mouse events in overlay space */ +struct VREvent_Mouse_t +{ + float x, y; // co-ords are in GL space, bottom left of the texture is 0,0 + uint32_t button; // EVRMouseButton enum +}; + +/** used for simulated mouse wheel scroll in overlay space */ +struct VREvent_Scroll_t +{ + float xdelta, ydelta; // movement in fraction of the pad traversed since last delta, 1.0 for a full swipe + uint32_t repeatCount; +}; + +/** when in mouse input mode you can receive data from the touchpad, these events are only sent if the users finger + is on the touchpad (or just released from it) +**/ +struct VREvent_TouchPadMove_t +{ + // true if the users finger is detected on the touch pad + bool bFingerDown; + + // How long the finger has been down in seconds + float flSecondsFingerDown; + + // These values indicate the starting finger position (so you can do some basic swipe stuff) + float fValueXFirst; + float fValueYFirst; + + // This is the raw sampled coordinate without deadzoning + float fValueXRaw; + float fValueYRaw; +}; + +/** notification related events. Details will still change at this point */ +struct VREvent_Notification_t +{ + uint64_t ulUserValue; + uint32_t notificationId; +}; + +/** Used for events about processes */ +struct VREvent_Process_t +{ + uint32_t pid; + uint32_t oldPid; + bool bForced; +}; + + +/** Used for a few events about overlays */ +struct VREvent_Overlay_t +{ + uint64_t overlayHandle; +}; + + +/** Used for a few events about overlays */ +struct VREvent_Status_t +{ + uint32_t statusState; // EVRState enum +}; + +/** Used for keyboard events **/ +struct VREvent_Keyboard_t +{ + char cNewInput[8]; // Up to 11 bytes of new input + uint64_t uUserValue; // Possible flags about the new input +}; + +struct VREvent_Ipd_t +{ + float ipdMeters; +}; + +struct VREvent_Chaperone_t +{ + uint64_t m_nPreviousUniverse; + uint64_t m_nCurrentUniverse; +}; + +/** Not actually used for any events */ +struct VREvent_Reserved_t +{ + uint64_t reserved0; + uint64_t reserved1; +}; + +struct VREvent_PerformanceTest_t +{ + uint32_t m_nFidelityLevel; +}; + +struct VREvent_SeatedZeroPoseReset_t +{ + bool bResetBySystemMenu; +}; + +struct VREvent_Screenshot_t +{ + uint32_t handle; + uint32_t type; +}; + +struct VREvent_ScreenshotProgress_t +{ + float progress; +}; + +struct VREvent_ApplicationLaunch_t +{ + uint32_t pid; + uint32_t unArgsHandle; +}; + +struct VREvent_EditingCameraSurface_t +{ + uint64_t overlayHandle; + uint32_t nVisualMode; +}; + +struct VREvent_MessageOverlay_t +{ + uint32_t unVRMessageOverlayResponse; // vr::VRMessageOverlayResponse enum +}; + +struct VREvent_Property_t +{ + PropertyContainerHandle_t container; + ETrackedDeviceProperty prop; +}; + +/** NOTE!!! If you change this you MUST manually update openvr_interop.cs.py */ +typedef union +{ + VREvent_Reserved_t reserved; + VREvent_Controller_t controller; + VREvent_Mouse_t mouse; + VREvent_Scroll_t scroll; + VREvent_Process_t process; + VREvent_Notification_t notification; + VREvent_Overlay_t overlay; + VREvent_Status_t status; + VREvent_Keyboard_t keyboard; + VREvent_Ipd_t ipd; + VREvent_Chaperone_t chaperone; + VREvent_PerformanceTest_t performanceTest; + VREvent_TouchPadMove_t touchPadMove; + VREvent_SeatedZeroPoseReset_t seatedZeroPoseReset; + VREvent_Screenshot_t screenshot; + VREvent_ScreenshotProgress_t screenshotProgress; + VREvent_ApplicationLaunch_t applicationLaunch; + VREvent_EditingCameraSurface_t cameraSurface; + VREvent_MessageOverlay_t messageOverlay; + VREvent_Property_t property; +} VREvent_Data_t; + + +#if defined(__linux__) || defined(__APPLE__) +// This structure was originally defined mis-packed on Linux, preserved for +// compatibility. +#pragma pack( push, 4 ) +#endif + +/** An event posted by the server to all running applications */ +struct VREvent_t +{ + uint32_t eventType; // EVREventType enum + TrackedDeviceIndex_t trackedDeviceIndex; + float eventAgeSeconds; + // event data must be the end of the struct as its size is variable + VREvent_Data_t data; +}; + +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( pop ) +#endif + +/** The mesh to draw into the stencil (or depth) buffer to perform +* early stencil (or depth) kills of pixels that will never appear on the HMD. +* This mesh draws on all the pixels that will be hidden after distortion. +* +* If the HMD does not provide a visible area mesh pVertexData will be +* NULL and unTriangleCount will be 0. */ +struct HiddenAreaMesh_t +{ + const HmdVector2_t *pVertexData; + uint32_t unTriangleCount; +}; + + +enum EHiddenAreaMeshType +{ + k_eHiddenAreaMesh_Standard = 0, + k_eHiddenAreaMesh_Inverse = 1, + k_eHiddenAreaMesh_LineLoop = 2, + + k_eHiddenAreaMesh_Max = 3, +}; + + +/** Identifies what kind of axis is on the controller at index n. Read this type +* with pVRSystem->Get( nControllerDeviceIndex, Prop_Axis0Type_Int32 + n ); +*/ +enum EVRControllerAxisType +{ + k_eControllerAxis_None = 0, + k_eControllerAxis_TrackPad = 1, + k_eControllerAxis_Joystick = 2, + k_eControllerAxis_Trigger = 3, // Analog trigger data is in the X axis +}; + + +/** contains information about one axis on the controller */ +struct VRControllerAxis_t +{ + float x; // Ranges from -1.0 to 1.0 for joysticks and track pads. Ranges from 0.0 to 1.0 for triggers were 0 is fully released. + float y; // Ranges from -1.0 to 1.0 for joysticks and track pads. Is always 0.0 for triggers. +}; + + +/** the number of axes in the controller state */ +static const uint32_t k_unControllerStateAxisCount = 5; + + +#if defined(__linux__) || defined(__APPLE__) +// This structure was originally defined mis-packed on Linux, preserved for +// compatibility. +#pragma pack( push, 4 ) +#endif + +/** Holds all the state of a controller at one moment in time. */ +struct VRControllerState001_t +{ + // If packet num matches that on your prior call, then the controller state hasn't been changed since + // your last call and there is no need to process it + uint32_t unPacketNum; + + // bit flags for each of the buttons. Use ButtonMaskFromId to turn an ID into a mask + uint64_t ulButtonPressed; + uint64_t ulButtonTouched; + + // Axis data for the controller's analog inputs + VRControllerAxis_t rAxis[ k_unControllerStateAxisCount ]; +}; +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( pop ) +#endif + + +typedef VRControllerState001_t VRControllerState_t; + + +/** determines how to provide output to the application of various event processing functions. */ +enum EVRControllerEventOutputType +{ + ControllerEventOutput_OSEvents = 0, + ControllerEventOutput_VREvents = 1, +}; + + + +/** Collision Bounds Style */ +enum ECollisionBoundsStyle +{ + COLLISION_BOUNDS_STYLE_BEGINNER = 0, + COLLISION_BOUNDS_STYLE_INTERMEDIATE, + COLLISION_BOUNDS_STYLE_SQUARES, + COLLISION_BOUNDS_STYLE_ADVANCED, + COLLISION_BOUNDS_STYLE_NONE, + + COLLISION_BOUNDS_STYLE_COUNT +}; + +/** Allows the application to customize how the overlay appears in the compositor */ +struct Compositor_OverlaySettings +{ + uint32_t size; // sizeof(Compositor_OverlaySettings) + bool curved, antialias; + float scale, distance, alpha; + float uOffset, vOffset, uScale, vScale; + float gridDivs, gridWidth, gridScale; + HmdMatrix44_t transform; +}; + +/** used to refer to a single VR overlay */ +typedef uint64_t VROverlayHandle_t; + +static const VROverlayHandle_t k_ulOverlayHandleInvalid = 0; + +/** Errors that can occur around VR overlays */ +enum EVROverlayError +{ + VROverlayError_None = 0, + + VROverlayError_UnknownOverlay = 10, + VROverlayError_InvalidHandle = 11, + VROverlayError_PermissionDenied = 12, + VROverlayError_OverlayLimitExceeded = 13, // No more overlays could be created because the maximum number already exist + VROverlayError_WrongVisibilityType = 14, + VROverlayError_KeyTooLong = 15, + VROverlayError_NameTooLong = 16, + VROverlayError_KeyInUse = 17, + VROverlayError_WrongTransformType = 18, + VROverlayError_InvalidTrackedDevice = 19, + VROverlayError_InvalidParameter = 20, + VROverlayError_ThumbnailCantBeDestroyed = 21, + VROverlayError_ArrayTooSmall = 22, + VROverlayError_RequestFailed = 23, + VROverlayError_InvalidTexture = 24, + VROverlayError_UnableToLoadFile = 25, + VROverlayError_KeyboardAlreadyInUse = 26, + VROverlayError_NoNeighbor = 27, + VROverlayError_TooManyMaskPrimitives = 29, + VROverlayError_BadMaskPrimitive = 30, +}; + +/** enum values to pass in to VR_Init to identify whether the application will +* draw a 3D scene. */ +enum EVRApplicationType +{ + VRApplication_Other = 0, // Some other kind of application that isn't covered by the other entries + VRApplication_Scene = 1, // Application will submit 3D frames + VRApplication_Overlay = 2, // Application only interacts with overlays + VRApplication_Background = 3, // Application should not start SteamVR if it's not already running, and should not + // keep it running if everything else quits. + VRApplication_Utility = 4, // Init should not try to load any drivers. The application needs access to utility + // interfaces (like IVRSettings and IVRApplications) but not hardware. + VRApplication_VRMonitor = 5, // Reserved for vrmonitor + VRApplication_SteamWatchdog = 6,// Reserved for Steam + VRApplication_Bootstrapper = 7, // Start up SteamVR + + VRApplication_Max +}; + + +/** error codes for firmware */ +enum EVRFirmwareError +{ + VRFirmwareError_None = 0, + VRFirmwareError_Success = 1, + VRFirmwareError_Fail = 2, +}; + + +/** error codes for notifications */ +enum EVRNotificationError +{ + VRNotificationError_OK = 0, + VRNotificationError_InvalidNotificationId = 100, + VRNotificationError_NotificationQueueFull = 101, + VRNotificationError_InvalidOverlayHandle = 102, + VRNotificationError_SystemWithUserValueAlreadyExists = 103, +}; + + +/** error codes returned by Vr_Init */ + +// Please add adequate error description to https://developer.valvesoftware.com/w/index.php?title=Category:SteamVRHelp +enum EVRInitError +{ + VRInitError_None = 0, + VRInitError_Unknown = 1, + + VRInitError_Init_InstallationNotFound = 100, + VRInitError_Init_InstallationCorrupt = 101, + VRInitError_Init_VRClientDLLNotFound = 102, + VRInitError_Init_FileNotFound = 103, + VRInitError_Init_FactoryNotFound = 104, + VRInitError_Init_InterfaceNotFound = 105, + VRInitError_Init_InvalidInterface = 106, + VRInitError_Init_UserConfigDirectoryInvalid = 107, + VRInitError_Init_HmdNotFound = 108, + VRInitError_Init_NotInitialized = 109, + VRInitError_Init_PathRegistryNotFound = 110, + VRInitError_Init_NoConfigPath = 111, + VRInitError_Init_NoLogPath = 112, + VRInitError_Init_PathRegistryNotWritable = 113, + VRInitError_Init_AppInfoInitFailed = 114, + VRInitError_Init_Retry = 115, // Used internally to cause retries to vrserver + VRInitError_Init_InitCanceledByUser = 116, // The calling application should silently exit. The user canceled app startup + VRInitError_Init_AnotherAppLaunching = 117, + VRInitError_Init_SettingsInitFailed = 118, + VRInitError_Init_ShuttingDown = 119, + VRInitError_Init_TooManyObjects = 120, + VRInitError_Init_NoServerForBackgroundApp = 121, + VRInitError_Init_NotSupportedWithCompositor = 122, + VRInitError_Init_NotAvailableToUtilityApps = 123, + VRInitError_Init_Internal = 124, + VRInitError_Init_HmdDriverIdIsNone = 125, + VRInitError_Init_HmdNotFoundPresenceFailed = 126, + VRInitError_Init_VRMonitorNotFound = 127, + VRInitError_Init_VRMonitorStartupFailed = 128, + VRInitError_Init_LowPowerWatchdogNotSupported = 129, + VRInitError_Init_InvalidApplicationType = 130, + VRInitError_Init_NotAvailableToWatchdogApps = 131, + VRInitError_Init_WatchdogDisabledInSettings = 132, + VRInitError_Init_VRDashboardNotFound = 133, + VRInitError_Init_VRDashboardStartupFailed = 134, + VRInitError_Init_VRHomeNotFound = 135, + VRInitError_Init_VRHomeStartupFailed = 136, + + VRInitError_Driver_Failed = 200, + VRInitError_Driver_Unknown = 201, + VRInitError_Driver_HmdUnknown = 202, + VRInitError_Driver_NotLoaded = 203, + VRInitError_Driver_RuntimeOutOfDate = 204, + VRInitError_Driver_HmdInUse = 205, + VRInitError_Driver_NotCalibrated = 206, + VRInitError_Driver_CalibrationInvalid = 207, + VRInitError_Driver_HmdDisplayNotFound = 208, + VRInitError_Driver_TrackedDeviceInterfaceUnknown = 209, + // VRInitError_Driver_HmdDisplayNotFoundAfterFix = 210, // not needed: here for historic reasons + VRInitError_Driver_HmdDriverIdOutOfBounds = 211, + VRInitError_Driver_HmdDisplayMirrored = 212, + + VRInitError_IPC_ServerInitFailed = 300, + VRInitError_IPC_ConnectFailed = 301, + VRInitError_IPC_SharedStateInitFailed = 302, + VRInitError_IPC_CompositorInitFailed = 303, + VRInitError_IPC_MutexInitFailed = 304, + VRInitError_IPC_Failed = 305, + VRInitError_IPC_CompositorConnectFailed = 306, + VRInitError_IPC_CompositorInvalidConnectResponse = 307, + VRInitError_IPC_ConnectFailedAfterMultipleAttempts = 308, + + VRInitError_Compositor_Failed = 400, + VRInitError_Compositor_D3D11HardwareRequired = 401, + VRInitError_Compositor_FirmwareRequiresUpdate = 402, + VRInitError_Compositor_OverlayInitFailed = 403, + VRInitError_Compositor_ScreenshotsInitFailed = 404, + VRInitError_Compositor_UnableToCreateDevice = 405, + + VRInitError_VendorSpecific_UnableToConnectToOculusRuntime = 1000, + + VRInitError_VendorSpecific_HmdFound_CantOpenDevice = 1101, + VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102, + VRInitError_VendorSpecific_HmdFound_NoStoredConfig = 1103, + VRInitError_VendorSpecific_HmdFound_ConfigTooBig = 1104, + VRInitError_VendorSpecific_HmdFound_ConfigTooSmall = 1105, + VRInitError_VendorSpecific_HmdFound_UnableToInitZLib = 1106, + VRInitError_VendorSpecific_HmdFound_CantReadFirmwareVersion = 1107, + VRInitError_VendorSpecific_HmdFound_UnableToSendUserDataStart = 1108, + VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataStart = 1109, + VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataNext = 1110, + VRInitError_VendorSpecific_HmdFound_UserDataAddressRange = 1111, + VRInitError_VendorSpecific_HmdFound_UserDataError = 1112, + VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck = 1113, + + VRInitError_Steam_SteamInstallationNotFound = 2000, +}; + +enum EVRScreenshotType +{ + VRScreenshotType_None = 0, + VRScreenshotType_Mono = 1, // left eye only + VRScreenshotType_Stereo = 2, + VRScreenshotType_Cubemap = 3, + VRScreenshotType_MonoPanorama = 4, + VRScreenshotType_StereoPanorama = 5 +}; + +enum EVRScreenshotPropertyFilenames +{ + VRScreenshotPropertyFilenames_Preview = 0, + VRScreenshotPropertyFilenames_VR = 1, +}; + +enum EVRTrackedCameraError +{ + VRTrackedCameraError_None = 0, + VRTrackedCameraError_OperationFailed = 100, + VRTrackedCameraError_InvalidHandle = 101, + VRTrackedCameraError_InvalidFrameHeaderVersion = 102, + VRTrackedCameraError_OutOfHandles = 103, + VRTrackedCameraError_IPCFailure = 104, + VRTrackedCameraError_NotSupportedForThisDevice = 105, + VRTrackedCameraError_SharedMemoryFailure = 106, + VRTrackedCameraError_FrameBufferingFailure = 107, + VRTrackedCameraError_StreamSetupFailure = 108, + VRTrackedCameraError_InvalidGLTextureId = 109, + VRTrackedCameraError_InvalidSharedTextureHandle = 110, + VRTrackedCameraError_FailedToGetGLTextureId = 111, + VRTrackedCameraError_SharedTextureFailure = 112, + VRTrackedCameraError_NoFrameAvailable = 113, + VRTrackedCameraError_InvalidArgument = 114, + VRTrackedCameraError_InvalidFrameBufferSize = 115, +}; + +enum EVRTrackedCameraFrameType +{ + VRTrackedCameraFrameType_Distorted = 0, // This is the camera video frame size in pixels, still distorted. + VRTrackedCameraFrameType_Undistorted, // In pixels, an undistorted inscribed rectangle region without invalid regions. This size is subject to changes shortly. + VRTrackedCameraFrameType_MaximumUndistorted, // In pixels, maximum undistorted with invalid regions. Non zero alpha component identifies valid regions. + MAX_CAMERA_FRAME_TYPES +}; + +typedef uint64_t TrackedCameraHandle_t; +#define INVALID_TRACKED_CAMERA_HANDLE ((vr::TrackedCameraHandle_t)0) + +struct CameraVideoStreamFrameHeader_t +{ + EVRTrackedCameraFrameType eFrameType; + + uint32_t nWidth; + uint32_t nHeight; + uint32_t nBytesPerPixel; + + uint32_t nFrameSequence; + + TrackedDevicePose_t standingTrackedDevicePose; +}; + +// Screenshot types +typedef uint32_t ScreenshotHandle_t; + +static const uint32_t k_unScreenshotHandleInvalid = 0; + +#pragma pack( pop ) + +// figure out how to import from the VR API dll +#if defined(_WIN32) + +#ifdef VR_API_EXPORT +#define VR_INTERFACE extern "C" __declspec( dllexport ) +#else +#define VR_INTERFACE extern "C" __declspec( dllimport ) +#endif + +#elif defined(__GNUC__) || defined(COMPILER_GCC) || defined(__APPLE__) + +#ifdef VR_API_EXPORT +#define VR_INTERFACE extern "C" __attribute__((visibility("default"))) +#else +#define VR_INTERFACE extern "C" +#endif + +#else +#error "Unsupported Platform." +#endif + + +#if defined( _WIN32 ) +#define VR_CALLTYPE __cdecl +#else +#define VR_CALLTYPE +#endif + +} // namespace vr + +#endif // _INCLUDE_VRTYPES_H + + +// vrannotation.h +#ifdef API_GEN +# define VR_CLANG_ATTR(ATTR) __attribute__((annotate( ATTR ))) +#else +# define VR_CLANG_ATTR(ATTR) +#endif + +#define VR_METHOD_DESC(DESC) VR_CLANG_ATTR( "desc:" #DESC ";" ) +#define VR_IGNOREATTR() VR_CLANG_ATTR( "ignore" ) +#define VR_OUT_STRUCT() VR_CLANG_ATTR( "out_struct: ;" ) +#define VR_OUT_STRING() VR_CLANG_ATTR( "out_string: ;" ) +#define VR_OUT_ARRAY_CALL(COUNTER,FUNCTION,PARAMS) VR_CLANG_ATTR( "out_array_call:" #COUNTER "," #FUNCTION "," #PARAMS ";" ) +#define VR_OUT_ARRAY_COUNT(COUNTER) VR_CLANG_ATTR( "out_array_count:" #COUNTER ";" ) +#define VR_ARRAY_COUNT(COUNTER) VR_CLANG_ATTR( "array_count:" #COUNTER ";" ) +#define VR_ARRAY_COUNT_D(COUNTER, DESC) VR_CLANG_ATTR( "array_count:" #COUNTER ";desc:" #DESC ) +#define VR_BUFFER_COUNT(COUNTER) VR_CLANG_ATTR( "buffer_count:" #COUNTER ";" ) +#define VR_OUT_BUFFER_COUNT(COUNTER) VR_CLANG_ATTR( "out_buffer_count:" #COUNTER ";" ) +#define VR_OUT_STRING_COUNT(COUNTER) VR_CLANG_ATTR( "out_string_count:" #COUNTER ";" ) + +// ivrsystem.h +namespace vr +{ + +class IVRSystem +{ +public: + + + // ------------------------------------ + // Display Methods + // ------------------------------------ + + /** Suggested size for the intermediate render target that the distortion pulls from. */ + virtual void GetRecommendedRenderTargetSize( uint32_t *pnWidth, uint32_t *pnHeight ) = 0; + + /** The projection matrix for the specified eye */ + virtual HmdMatrix44_t GetProjectionMatrix( EVREye eEye, float fNearZ, float fFarZ ) = 0; + + /** The components necessary to build your own projection matrix in case your + * application is doing something fancy like infinite Z */ + virtual void GetProjectionRaw( EVREye eEye, float *pfLeft, float *pfRight, float *pfTop, float *pfBottom ) = 0; + + /** Gets the result of the distortion function for the specified eye and input UVs. UVs go from 0,0 in + * the upper left of that eye's viewport and 1,1 in the lower right of that eye's viewport. + * Returns true for success. Otherwise, returns false, and distortion coordinates are not suitable. */ + virtual bool ComputeDistortion( EVREye eEye, float fU, float fV, DistortionCoordinates_t *pDistortionCoordinates ) = 0; + + /** Returns the transform from eye space to the head space. Eye space is the per-eye flavor of head + * space that provides stereo disparity. Instead of Model * View * Projection the sequence is Model * View * Eye^-1 * Projection. + * Normally View and Eye^-1 will be multiplied together and treated as View in your application. + */ + virtual HmdMatrix34_t GetEyeToHeadTransform( EVREye eEye ) = 0; + + /** Returns the number of elapsed seconds since the last recorded vsync event. This + * will come from a vsync timer event in the timer if possible or from the application-reported + * time if that is not available. If no vsync times are available the function will + * return zero for vsync time and frame counter and return false from the method. */ + virtual bool GetTimeSinceLastVsync( float *pfSecondsSinceLastVsync, uint64_t *pulFrameCounter ) = 0; + + /** [D3D9 Only] + * Returns the adapter index that the user should pass into CreateDevice to set up D3D9 in such + * a way that it can go full screen exclusive on the HMD. Returns -1 if there was an error. + */ + virtual int32_t GetD3D9AdapterIndex() = 0; + + /** [D3D10/11 Only] + * Returns the adapter index that the user should pass into EnumAdapters to create the device + * and swap chain in DX10 and DX11. If an error occurs the index will be set to -1. + */ + virtual void GetDXGIOutputInfo( int32_t *pnAdapterIndex ) = 0; + + /** + * Returns platform- and texture-type specific adapter identification so that applications and the + * compositor are creating textures and swap chains on the same GPU. If an error occurs the device + * will be set to 0. + * [D3D10/11/12 Only (D3D9 Not Supported)] + * Returns the adapter LUID that identifies the GPU attached to the HMD. The user should + * enumerate all adapters using IDXGIFactory::EnumAdapters and IDXGIAdapter::GetDesc to find + * the adapter with the matching LUID, or use IDXGIFactory4::EnumAdapterByLuid. + * The discovered IDXGIAdapter should be used to create the device and swap chain. + * [Vulkan Only] + * Returns the vk::PhysicalDevice that should be used by the application. + * [macOS Only] + * Returns an id that should be used by the application. + */ + virtual void GetOutputDevice( uint64_t *pnDevice, ETextureType textureType ) = 0; + + // ------------------------------------ + // Display Mode methods + // ------------------------------------ + + /** Use to determine if the headset display is part of the desktop (i.e. extended) or hidden (i.e. direct mode). */ + virtual bool IsDisplayOnDesktop() = 0; + + /** Set the display visibility (true = extended, false = direct mode). Return value of true indicates that the change was successful. */ + virtual bool SetDisplayVisibility( bool bIsVisibleOnDesktop ) = 0; + + // ------------------------------------ + // Tracking Methods + // ------------------------------------ + + /** The pose that the tracker thinks that the HMD will be in at the specified number of seconds into the + * future. Pass 0 to get the state at the instant the method is called. Most of the time the application should + * calculate the time until the photons will be emitted from the display and pass that time into the method. + * + * This is roughly analogous to the inverse of the view matrix in most applications, though + * many games will need to do some additional rotation or translation on top of the rotation + * and translation provided by the head pose. + * + * For devices where bPoseIsValid is true the application can use the pose to position the device + * in question. The provided array can be any size up to k_unMaxTrackedDeviceCount. + * + * Seated experiences should call this method with TrackingUniverseSeated and receive poses relative + * to the seated zero pose. Standing experiences should call this method with TrackingUniverseStanding + * and receive poses relative to the Chaperone Play Area. TrackingUniverseRawAndUncalibrated should + * probably not be used unless the application is the Chaperone calibration tool itself, but will provide + * poses relative to the hardware-specific coordinate system in the driver. + */ + virtual void GetDeviceToAbsoluteTrackingPose( ETrackingUniverseOrigin eOrigin, float fPredictedSecondsToPhotonsFromNow, VR_ARRAY_COUNT(unTrackedDevicePoseArrayCount) TrackedDevicePose_t *pTrackedDevicePoseArray, uint32_t unTrackedDevicePoseArrayCount ) = 0; + + /** Sets the zero pose for the seated tracker coordinate system to the current position and yaw of the HMD. After + * ResetSeatedZeroPose all GetDeviceToAbsoluteTrackingPose calls that pass TrackingUniverseSeated as the origin + * will be relative to this new zero pose. The new zero coordinate system will not change the fact that the Y axis + * is up in the real world, so the next pose returned from GetDeviceToAbsoluteTrackingPose after a call to + * ResetSeatedZeroPose may not be exactly an identity matrix. + * + * NOTE: This function overrides the user's previously saved seated zero pose and should only be called as the result of a user action. + * Users are also able to set their seated zero pose via the OpenVR Dashboard. + **/ + virtual void ResetSeatedZeroPose() = 0; + + /** Returns the transform from the seated zero pose to the standing absolute tracking system. This allows + * applications to represent the seated origin to used or transform object positions from one coordinate + * system to the other. + * + * The seated origin may or may not be inside the Play Area or Collision Bounds returned by IVRChaperone. Its position + * depends on what the user has set from the Dashboard settings and previous calls to ResetSeatedZeroPose. */ + virtual HmdMatrix34_t GetSeatedZeroPoseToStandingAbsoluteTrackingPose() = 0; + + /** Returns the transform from the tracking origin to the standing absolute tracking system. This allows + * applications to convert from raw tracking space to the calibrated standing coordinate system. */ + virtual HmdMatrix34_t GetRawZeroPoseToStandingAbsoluteTrackingPose() = 0; + + /** Get a sorted array of device indices of a given class of tracked devices (e.g. controllers). Devices are sorted right to left + * relative to the specified tracked device (default: hmd -- pass in -1 for absolute tracking space). Returns the number of devices + * in the list, or the size of the array needed if not large enough. */ + virtual uint32_t GetSortedTrackedDeviceIndicesOfClass( ETrackedDeviceClass eTrackedDeviceClass, VR_ARRAY_COUNT(unTrackedDeviceIndexArrayCount) vr::TrackedDeviceIndex_t *punTrackedDeviceIndexArray, uint32_t unTrackedDeviceIndexArrayCount, vr::TrackedDeviceIndex_t unRelativeToTrackedDeviceIndex = k_unTrackedDeviceIndex_Hmd ) = 0; + + /** Returns the level of activity on the device. */ + virtual EDeviceActivityLevel GetTrackedDeviceActivityLevel( vr::TrackedDeviceIndex_t unDeviceId ) = 0; + + /** Convenience utility to apply the specified transform to the specified pose. + * This properly transforms all pose components, including velocity and angular velocity + */ + virtual void ApplyTransform( TrackedDevicePose_t *pOutputPose, const TrackedDevicePose_t *pTrackedDevicePose, const HmdMatrix34_t *pTransform ) = 0; + + /** Returns the device index associated with a specific role, for example the left hand or the right hand. */ + virtual vr::TrackedDeviceIndex_t GetTrackedDeviceIndexForControllerRole( vr::ETrackedControllerRole unDeviceType ) = 0; + + /** Returns the controller type associated with a device index. */ + virtual vr::ETrackedControllerRole GetControllerRoleForTrackedDeviceIndex( vr::TrackedDeviceIndex_t unDeviceIndex ) = 0; + + // ------------------------------------ + // Property methods + // ------------------------------------ + + /** Returns the device class of a tracked device. If there has not been a device connected in this slot + * since the application started this function will return TrackedDevice_Invalid. For previous detected + * devices the function will return the previously observed device class. + * + * To determine which devices exist on the system, just loop from 0 to k_unMaxTrackedDeviceCount and check + * the device class. Every device with something other than TrackedDevice_Invalid is associated with an + * actual tracked device. */ + virtual ETrackedDeviceClass GetTrackedDeviceClass( vr::TrackedDeviceIndex_t unDeviceIndex ) = 0; + + /** Returns true if there is a device connected in this slot. */ + virtual bool IsTrackedDeviceConnected( vr::TrackedDeviceIndex_t unDeviceIndex ) = 0; + + /** Returns a bool property. If the device index is not valid or the property is not a bool type this function will return false. */ + virtual bool GetBoolTrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ) = 0; + + /** Returns a float property. If the device index is not valid or the property is not a float type this function will return 0. */ + virtual float GetFloatTrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ) = 0; + + /** Returns an int property. If the device index is not valid or the property is not a int type this function will return 0. */ + virtual int32_t GetInt32TrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ) = 0; + + /** Returns a uint64 property. If the device index is not valid or the property is not a uint64 type this function will return 0. */ + virtual uint64_t GetUint64TrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ) = 0; + + /** Returns a matrix property. If the device index is not valid or the property is not a matrix type, this function will return identity. */ + virtual HmdMatrix34_t GetMatrix34TrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ) = 0; + + /** Returns a string property. If the device index is not valid or the property is not a string type this function will + * return 0. Otherwise it returns the length of the number of bytes necessary to hold this string including the trailing + * null. Strings will always fit in buffers of k_unMaxPropertyStringSize characters. */ + virtual uint32_t GetStringTrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, ETrackedPropertyError *pError = 0L ) = 0; + + /** returns a string that corresponds with the specified property error. The string will be the name + * of the error enum value for all valid error codes */ + virtual const char *GetPropErrorNameFromEnum( ETrackedPropertyError error ) = 0; + + // ------------------------------------ + // Event methods + // ------------------------------------ + + /** Returns true and fills the event with the next event on the queue if there is one. If there are no events + * this method returns false. uncbVREvent should be the size in bytes of the VREvent_t struct */ + virtual bool PollNextEvent( VREvent_t *pEvent, uint32_t uncbVREvent ) = 0; + + /** Returns true and fills the event with the next event on the queue if there is one. If there are no events + * this method returns false. Fills in the pose of the associated tracked device in the provided pose struct. + * This pose will always be older than the call to this function and should not be used to render the device. + uncbVREvent should be the size in bytes of the VREvent_t struct */ + virtual bool PollNextEventWithPose( ETrackingUniverseOrigin eOrigin, VREvent_t *pEvent, uint32_t uncbVREvent, vr::TrackedDevicePose_t *pTrackedDevicePose ) = 0; + + /** returns the name of an EVREvent enum value */ + virtual const char *GetEventTypeNameFromEnum( EVREventType eType ) = 0; + + // ------------------------------------ + // Rendering helper methods + // ------------------------------------ + + /** Returns the hidden area mesh for the current HMD. The pixels covered by this mesh will never be seen by the user after the lens distortion is + * applied based on visibility to the panels. If this HMD does not have a hidden area mesh, the vertex data and count will be NULL and 0 respectively. + * This mesh is meant to be rendered into the stencil buffer (or into the depth buffer setting nearz) before rendering each eye's view. + * This will improve performance by letting the GPU early-reject pixels the user will never see before running the pixel shader. + * NOTE: Render this mesh with backface culling disabled since the winding order of the vertices can be different per-HMD or per-eye. + * Setting the bInverse argument to true will produce the visible area mesh that is commonly used in place of full-screen quads. The visible area mesh covers all of the pixels the hidden area mesh does not cover. + * Setting the bLineLoop argument will return a line loop of vertices in HiddenAreaMesh_t->pVertexData with HiddenAreaMesh_t->unTriangleCount set to the number of vertices. + */ + virtual HiddenAreaMesh_t GetHiddenAreaMesh( EVREye eEye, EHiddenAreaMeshType type = k_eHiddenAreaMesh_Standard ) = 0; + + // ------------------------------------ + // Controller methods + // ------------------------------------ + + /** Fills the supplied struct with the current state of the controller. Returns false if the controller index + * is invalid. */ + virtual bool GetControllerState( vr::TrackedDeviceIndex_t unControllerDeviceIndex, vr::VRControllerState_t *pControllerState, uint32_t unControllerStateSize ) = 0; + + /** fills the supplied struct with the current state of the controller and the provided pose with the pose of + * the controller when the controller state was updated most recently. Use this form if you need a precise controller + * pose as input to your application when the user presses or releases a button. */ + virtual bool GetControllerStateWithPose( ETrackingUniverseOrigin eOrigin, vr::TrackedDeviceIndex_t unControllerDeviceIndex, vr::VRControllerState_t *pControllerState, uint32_t unControllerStateSize, TrackedDevicePose_t *pTrackedDevicePose ) = 0; + + /** Trigger a single haptic pulse on a controller. After this call the application may not trigger another haptic pulse on this controller + * and axis combination for 5ms. */ + virtual void TriggerHapticPulse( vr::TrackedDeviceIndex_t unControllerDeviceIndex, uint32_t unAxisId, unsigned short usDurationMicroSec ) = 0; + + /** returns the name of an EVRButtonId enum value */ + virtual const char *GetButtonIdNameFromEnum( EVRButtonId eButtonId ) = 0; + + /** returns the name of an EVRControllerAxisType enum value */ + virtual const char *GetControllerAxisTypeNameFromEnum( EVRControllerAxisType eAxisType ) = 0; + + /** Tells OpenVR that this process wants exclusive access to controller button states and button events. Other apps will be notified that + * they have lost input focus with a VREvent_InputFocusCaptured event. Returns false if input focus could not be captured for + * some reason. */ + virtual bool CaptureInputFocus() = 0; + + /** Tells OpenVR that this process no longer wants exclusive access to button states and button events. Other apps will be notified + * that input focus has been released with a VREvent_InputFocusReleased event. */ + virtual void ReleaseInputFocus() = 0; + + /** Returns true if input focus is captured by another process. */ + virtual bool IsInputFocusCapturedByAnotherProcess() = 0; + + // ------------------------------------ + // Debug Methods + // ------------------------------------ + + /** Sends a request to the driver for the specified device and returns the response. The maximum response size is 32k, + * but this method can be called with a smaller buffer. If the response exceeds the size of the buffer, it is truncated. + * The size of the response including its terminating null is returned. */ + virtual uint32_t DriverDebugRequest( vr::TrackedDeviceIndex_t unDeviceIndex, const char *pchRequest, char *pchResponseBuffer, uint32_t unResponseBufferSize ) = 0; + + // ------------------------------------ + // Firmware methods + // ------------------------------------ + + /** Performs the actual firmware update if applicable. + * The following events will be sent, if VRFirmwareError_None was returned: VREvent_FirmwareUpdateStarted, VREvent_FirmwareUpdateFinished + * Use the properties Prop_Firmware_UpdateAvailable_Bool, Prop_Firmware_ManualUpdate_Bool, and Prop_Firmware_ManualUpdateURL_String + * to figure our whether a firmware update is available, and to figure out whether its a manual update + * Prop_Firmware_ManualUpdateURL_String should point to an URL describing the manual update process */ + virtual vr::EVRFirmwareError PerformFirmwareUpdate( vr::TrackedDeviceIndex_t unDeviceIndex ) = 0; + + // ------------------------------------ + // Application life cycle methods + // ------------------------------------ + + /** Call this to acknowledge to the system that VREvent_Quit has been received and that the process is exiting. + * This extends the timeout until the process is killed. */ + virtual void AcknowledgeQuit_Exiting() = 0; + + /** Call this to tell the system that the user is being prompted to save data. This + * halts the timeout and dismisses the dashboard (if it was up). Applications should be sure to actually + * prompt the user to save and then exit afterward, otherwise the user will be left in a confusing state. */ + virtual void AcknowledgeQuit_UserPrompt() = 0; + +}; + +static const char * const IVRSystem_Version = "IVRSystem_016"; + +} + + +// ivrapplications.h +namespace vr +{ + + /** Used for all errors reported by the IVRApplications interface */ + enum EVRApplicationError + { + VRApplicationError_None = 0, + + VRApplicationError_AppKeyAlreadyExists = 100, // Only one application can use any given key + VRApplicationError_NoManifest = 101, // the running application does not have a manifest + VRApplicationError_NoApplication = 102, // No application is running + VRApplicationError_InvalidIndex = 103, + VRApplicationError_UnknownApplication = 104, // the application could not be found + VRApplicationError_IPCFailed = 105, // An IPC failure caused the request to fail + VRApplicationError_ApplicationAlreadyRunning = 106, + VRApplicationError_InvalidManifest = 107, + VRApplicationError_InvalidApplication = 108, + VRApplicationError_LaunchFailed = 109, // the process didn't start + VRApplicationError_ApplicationAlreadyStarting = 110, // the system was already starting the same application + VRApplicationError_LaunchInProgress = 111, // The system was already starting a different application + VRApplicationError_OldApplicationQuitting = 112, + VRApplicationError_TransitionAborted = 113, + VRApplicationError_IsTemplate = 114, // error when you try to call LaunchApplication() on a template type app (use LaunchTemplateApplication) + + VRApplicationError_BufferTooSmall = 200, // The provided buffer was too small to fit the requested data + VRApplicationError_PropertyNotSet = 201, // The requested property was not set + VRApplicationError_UnknownProperty = 202, + VRApplicationError_InvalidParameter = 203, + }; + + /** The maximum length of an application key */ + static const uint32_t k_unMaxApplicationKeyLength = 128; + + /** these are the properties available on applications. */ + enum EVRApplicationProperty + { + VRApplicationProperty_Name_String = 0, + + VRApplicationProperty_LaunchType_String = 11, + VRApplicationProperty_WorkingDirectory_String = 12, + VRApplicationProperty_BinaryPath_String = 13, + VRApplicationProperty_Arguments_String = 14, + VRApplicationProperty_URL_String = 15, + + VRApplicationProperty_Description_String = 50, + VRApplicationProperty_NewsURL_String = 51, + VRApplicationProperty_ImagePath_String = 52, + VRApplicationProperty_Source_String = 53, + + VRApplicationProperty_IsDashboardOverlay_Bool = 60, + VRApplicationProperty_IsTemplate_Bool = 61, + VRApplicationProperty_IsInstanced_Bool = 62, + VRApplicationProperty_IsInternal_Bool = 63, + + VRApplicationProperty_LastLaunchTime_Uint64 = 70, + }; + + /** These are states the scene application startup process will go through. */ + enum EVRApplicationTransitionState + { + VRApplicationTransition_None = 0, + + VRApplicationTransition_OldAppQuitSent = 10, + VRApplicationTransition_WaitingForExternalLaunch = 11, + + VRApplicationTransition_NewAppLaunched = 20, + }; + + struct AppOverrideKeys_t + { + const char *pchKey; + const char *pchValue; + }; + + /** Currently recognized mime types */ + static const char * const k_pch_MimeType_HomeApp = "vr/home"; + static const char * const k_pch_MimeType_GameTheater = "vr/game_theater"; + + class IVRApplications + { + public: + + // --------------- Application management --------------- // + + /** Adds an application manifest to the list to load when building the list of installed applications. + * Temporary manifests are not automatically loaded */ + virtual EVRApplicationError AddApplicationManifest( const char *pchApplicationManifestFullPath, bool bTemporary = false ) = 0; + + /** Removes an application manifest from the list to load when building the list of installed applications. */ + virtual EVRApplicationError RemoveApplicationManifest( const char *pchApplicationManifestFullPath ) = 0; + + /** Returns true if an application is installed */ + virtual bool IsApplicationInstalled( const char *pchAppKey ) = 0; + + /** Returns the number of applications available in the list */ + virtual uint32_t GetApplicationCount() = 0; + + /** Returns the key of the specified application. The index is at least 0 and is less than the return + * value of GetApplicationCount(). The buffer should be at least k_unMaxApplicationKeyLength in order to + * fit the key. */ + virtual EVRApplicationError GetApplicationKeyByIndex( uint32_t unApplicationIndex, VR_OUT_STRING() char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen ) = 0; + + /** Returns the key of the application for the specified Process Id. The buffer should be at least + * k_unMaxApplicationKeyLength in order to fit the key. */ + virtual EVRApplicationError GetApplicationKeyByProcessId( uint32_t unProcessId, char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen ) = 0; + + /** Launches the application. The existing scene application will exit and then the new application will start. + * This call is not valid for dashboard overlay applications. */ + virtual EVRApplicationError LaunchApplication( const char *pchAppKey ) = 0; + + /** Launches an instance of an application of type template, with its app key being pchNewAppKey (which must be unique) and optionally override sections + * from the manifest file via AppOverrideKeys_t + */ + virtual EVRApplicationError LaunchTemplateApplication( const char *pchTemplateAppKey, const char *pchNewAppKey, VR_ARRAY_COUNT( unKeys ) const AppOverrideKeys_t *pKeys, uint32_t unKeys ) = 0; + + /** launches the application currently associated with this mime type and passes it the option args, typically the filename or object name of the item being launched */ + virtual vr::EVRApplicationError LaunchApplicationFromMimeType( const char *pchMimeType, const char *pchArgs ) = 0; + + /** Launches the dashboard overlay application if it is not already running. This call is only valid for + * dashboard overlay applications. */ + virtual EVRApplicationError LaunchDashboardOverlay( const char *pchAppKey ) = 0; + + /** Cancel a pending launch for an application */ + virtual bool CancelApplicationLaunch( const char *pchAppKey ) = 0; + + /** Identifies a running application. OpenVR can't always tell which process started in response + * to a URL. This function allows a URL handler (or the process itself) to identify the app key + * for the now running application. Passing a process ID of 0 identifies the calling process. + * The application must be one that's known to the system via a call to AddApplicationManifest. */ + virtual EVRApplicationError IdentifyApplication( uint32_t unProcessId, const char *pchAppKey ) = 0; + + /** Returns the process ID for an application. Return 0 if the application was not found or is not running. */ + virtual uint32_t GetApplicationProcessId( const char *pchAppKey ) = 0; + + /** Returns a string for an applications error */ + virtual const char *GetApplicationsErrorNameFromEnum( EVRApplicationError error ) = 0; + + // --------------- Application properties --------------- // + + /** Returns a value for an application property. The required buffer size to fit this value will be returned. */ + virtual uint32_t GetApplicationPropertyString( const char *pchAppKey, EVRApplicationProperty eProperty, VR_OUT_STRING() char *pchPropertyValueBuffer, uint32_t unPropertyValueBufferLen, EVRApplicationError *peError = nullptr ) = 0; + + /** Returns a bool value for an application property. Returns false in all error cases. */ + virtual bool GetApplicationPropertyBool( const char *pchAppKey, EVRApplicationProperty eProperty, EVRApplicationError *peError = nullptr ) = 0; + + /** Returns a uint64 value for an application property. Returns 0 in all error cases. */ + virtual uint64_t GetApplicationPropertyUint64( const char *pchAppKey, EVRApplicationProperty eProperty, EVRApplicationError *peError = nullptr ) = 0; + + /** Sets the application auto-launch flag. This is only valid for applications which return true for VRApplicationProperty_IsDashboardOverlay_Bool. */ + virtual EVRApplicationError SetApplicationAutoLaunch( const char *pchAppKey, bool bAutoLaunch ) = 0; + + /** Gets the application auto-launch flag. This is only valid for applications which return true for VRApplicationProperty_IsDashboardOverlay_Bool. */ + virtual bool GetApplicationAutoLaunch( const char *pchAppKey ) = 0; + + /** Adds this mime-type to the list of supported mime types for this application*/ + virtual EVRApplicationError SetDefaultApplicationForMimeType( const char *pchAppKey, const char *pchMimeType ) = 0; + + /** return the app key that will open this mime type */ + virtual bool GetDefaultApplicationForMimeType( const char *pchMimeType, char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen ) = 0; + + /** Get the list of supported mime types for this application, comma-delimited */ + virtual bool GetApplicationSupportedMimeTypes( const char *pchAppKey, char *pchMimeTypesBuffer, uint32_t unMimeTypesBuffer ) = 0; + + /** Get the list of app-keys that support this mime type, comma-delimited, the return value is number of bytes you need to return the full string */ + virtual uint32_t GetApplicationsThatSupportMimeType( const char *pchMimeType, char *pchAppKeysThatSupportBuffer, uint32_t unAppKeysThatSupportBuffer ) = 0; + + /** Get the args list from an app launch that had the process already running, you call this when you get a VREvent_ApplicationMimeTypeLoad */ + virtual uint32_t GetApplicationLaunchArguments( uint32_t unHandle, char *pchArgs, uint32_t unArgs ) = 0; + + // --------------- Transition methods --------------- // + + /** Returns the app key for the application that is starting up */ + virtual EVRApplicationError GetStartingApplication( char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen ) = 0; + + /** Returns the application transition state */ + virtual EVRApplicationTransitionState GetTransitionState() = 0; + + /** Returns errors that would prevent the specified application from launching immediately. Calling this function will + * cause the current scene application to quit, so only call it when you are actually about to launch something else. + * What the caller should do about these failures depends on the failure: + * VRApplicationError_OldApplicationQuitting - An existing application has been told to quit. Wait for a VREvent_ProcessQuit + * and try again. + * VRApplicationError_ApplicationAlreadyStarting - This application is already starting. This is a permanent failure. + * VRApplicationError_LaunchInProgress - A different application is already starting. This is a permanent failure. + * VRApplicationError_None - Go ahead and launch. Everything is clear. + */ + virtual EVRApplicationError PerformApplicationPrelaunchCheck( const char *pchAppKey ) = 0; + + /** Returns a string for an application transition state */ + virtual const char *GetApplicationsTransitionStateNameFromEnum( EVRApplicationTransitionState state ) = 0; + + /** Returns true if the outgoing scene app has requested a save prompt before exiting */ + virtual bool IsQuitUserPromptRequested() = 0; + + /** Starts a subprocess within the calling application. This + * suppresses all application transition UI and automatically identifies the new executable + * as part of the same application. On success the calling process should exit immediately. + * If working directory is NULL or "" the directory portion of the binary path will be + * the working directory. */ + virtual EVRApplicationError LaunchInternalProcess( const char *pchBinaryPath, const char *pchArguments, const char *pchWorkingDirectory ) = 0; + + /** Returns the current scene process ID according to the application system. A scene process will get scene + * focus once it starts rendering, but it will appear here once it calls VR_Init with the Scene application + * type. */ + virtual uint32_t GetCurrentSceneProcessId() = 0; + }; + + static const char * const IVRApplications_Version = "IVRApplications_006"; + +} // namespace vr + +// ivrsettings.h +namespace vr +{ + enum EVRSettingsError + { + VRSettingsError_None = 0, + VRSettingsError_IPCFailed = 1, + VRSettingsError_WriteFailed = 2, + VRSettingsError_ReadFailed = 3, + VRSettingsError_JsonParseFailed = 4, + VRSettingsError_UnsetSettingHasNoDefault = 5, // This will be returned if the setting does not appear in the appropriate default file and has not been set + }; + + // The maximum length of a settings key + static const uint32_t k_unMaxSettingsKeyLength = 128; + + class IVRSettings + { + public: + virtual const char *GetSettingsErrorNameFromEnum( EVRSettingsError eError ) = 0; + + // Returns true if file sync occurred (force or settings dirty) + virtual bool Sync( bool bForce = false, EVRSettingsError *peError = nullptr ) = 0; + + virtual void SetBool( const char *pchSection, const char *pchSettingsKey, bool bValue, EVRSettingsError *peError = nullptr ) = 0; + virtual void SetInt32( const char *pchSection, const char *pchSettingsKey, int32_t nValue, EVRSettingsError *peError = nullptr ) = 0; + virtual void SetFloat( const char *pchSection, const char *pchSettingsKey, float flValue, EVRSettingsError *peError = nullptr ) = 0; + virtual void SetString( const char *pchSection, const char *pchSettingsKey, const char *pchValue, EVRSettingsError *peError = nullptr ) = 0; + + // Users of the system need to provide a proper default in default.vrsettings in the resources/settings/ directory + // of either the runtime or the driver_xxx directory. Otherwise the default will be false, 0, 0.0 or "" + virtual bool GetBool( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0; + virtual int32_t GetInt32( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0; + virtual float GetFloat( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0; + virtual void GetString( const char *pchSection, const char *pchSettingsKey, VR_OUT_STRING() char *pchValue, uint32_t unValueLen, EVRSettingsError *peError = nullptr ) = 0; + + virtual void RemoveSection( const char *pchSection, EVRSettingsError *peError = nullptr ) = 0; + virtual void RemoveKeyInSection( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0; + }; + + //----------------------------------------------------------------------------- + static const char * const IVRSettings_Version = "IVRSettings_002"; + + //----------------------------------------------------------------------------- + // steamvr keys + static const char * const k_pch_SteamVR_Section = "steamvr"; + static const char * const k_pch_SteamVR_RequireHmd_String = "requireHmd"; + static const char * const k_pch_SteamVR_ForcedDriverKey_String = "forcedDriver"; + static const char * const k_pch_SteamVR_ForcedHmdKey_String = "forcedHmd"; + static const char * const k_pch_SteamVR_DisplayDebug_Bool = "displayDebug"; + static const char * const k_pch_SteamVR_DebugProcessPipe_String = "debugProcessPipe"; + static const char * const k_pch_SteamVR_DisplayDebugX_Int32 = "displayDebugX"; + static const char * const k_pch_SteamVR_DisplayDebugY_Int32 = "displayDebugY"; + static const char * const k_pch_SteamVR_SendSystemButtonToAllApps_Bool= "sendSystemButtonToAllApps"; + static const char * const k_pch_SteamVR_LogLevel_Int32 = "loglevel"; + static const char * const k_pch_SteamVR_IPD_Float = "ipd"; + static const char * const k_pch_SteamVR_Background_String = "background"; + static const char * const k_pch_SteamVR_BackgroundUseDomeProjection_Bool = "backgroundUseDomeProjection"; + static const char * const k_pch_SteamVR_BackgroundCameraHeight_Float = "backgroundCameraHeight"; + static const char * const k_pch_SteamVR_BackgroundDomeRadius_Float = "backgroundDomeRadius"; + static const char * const k_pch_SteamVR_GridColor_String = "gridColor"; + static const char * const k_pch_SteamVR_PlayAreaColor_String = "playAreaColor"; + static const char * const k_pch_SteamVR_ShowStage_Bool = "showStage"; + static const char * const k_pch_SteamVR_ActivateMultipleDrivers_Bool = "activateMultipleDrivers"; + static const char * const k_pch_SteamVR_DirectMode_Bool = "directMode"; + static const char * const k_pch_SteamVR_DirectModeEdidVid_Int32 = "directModeEdidVid"; + static const char * const k_pch_SteamVR_DirectModeEdidPid_Int32 = "directModeEdidPid"; + static const char * const k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers"; + static const char * const k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees"; + static const char * const k_pch_SteamVR_BaseStationPowerManagement_Bool = "basestationPowerManagement"; + static const char * const k_pch_SteamVR_NeverKillProcesses_Bool = "neverKillProcesses"; + static const char * const k_pch_SteamVR_SupersampleScale_Float = "supersampleScale"; + static const char * const k_pch_SteamVR_AllowAsyncReprojection_Bool = "allowAsyncReprojection"; + static const char * const k_pch_SteamVR_AllowReprojection_Bool = "allowInterleavedReprojection"; + static const char * const k_pch_SteamVR_ForceReprojection_Bool = "forceReprojection"; + static const char * const k_pch_SteamVR_ForceFadeOnBadTracking_Bool = "forceFadeOnBadTracking"; + static const char * const k_pch_SteamVR_DefaultMirrorView_Int32 = "defaultMirrorView"; + static const char * const k_pch_SteamVR_ShowMirrorView_Bool = "showMirrorView"; + static const char * const k_pch_SteamVR_MirrorViewGeometry_String = "mirrorViewGeometry"; + static const char * const k_pch_SteamVR_StartMonitorFromAppLaunch = "startMonitorFromAppLaunch"; + static const char * const k_pch_SteamVR_StartCompositorFromAppLaunch_Bool = "startCompositorFromAppLaunch"; + static const char * const k_pch_SteamVR_StartDashboardFromAppLaunch_Bool = "startDashboardFromAppLaunch"; + static const char * const k_pch_SteamVR_StartOverlayAppsFromDashboard_Bool = "startOverlayAppsFromDashboard"; + static const char * const k_pch_SteamVR_EnableHomeApp = "enableHomeApp"; + static const char * const k_pch_SteamVR_CycleBackgroundImageTimeSec_Int32 = "CycleBackgroundImageTimeSec"; + static const char * const k_pch_SteamVR_RetailDemo_Bool = "retailDemo"; + static const char * const k_pch_SteamVR_IpdOffset_Float = "ipdOffset"; + static const char * const k_pch_SteamVR_AllowSupersampleFiltering_Bool = "allowSupersampleFiltering"; + + //----------------------------------------------------------------------------- + // lighthouse keys + static const char * const k_pch_Lighthouse_Section = "driver_lighthouse"; + static const char * const k_pch_Lighthouse_DisableIMU_Bool = "disableimu"; + static const char * const k_pch_Lighthouse_UseDisambiguation_String = "usedisambiguation"; + static const char * const k_pch_Lighthouse_DisambiguationDebug_Int32 = "disambiguationdebug"; + static const char * const k_pch_Lighthouse_PrimaryBasestation_Int32 = "primarybasestation"; + static const char * const k_pch_Lighthouse_DBHistory_Bool = "dbhistory"; + + //----------------------------------------------------------------------------- + // null keys + static const char * const k_pch_Null_Section = "driver_null"; + static const char * const k_pch_Null_SerialNumber_String = "serialNumber"; + static const char * const k_pch_Null_ModelNumber_String = "modelNumber"; + static const char * const k_pch_Null_WindowX_Int32 = "windowX"; + static const char * const k_pch_Null_WindowY_Int32 = "windowY"; + static const char * const k_pch_Null_WindowWidth_Int32 = "windowWidth"; + static const char * const k_pch_Null_WindowHeight_Int32 = "windowHeight"; + static const char * const k_pch_Null_RenderWidth_Int32 = "renderWidth"; + static const char * const k_pch_Null_RenderHeight_Int32 = "renderHeight"; + static const char * const k_pch_Null_SecondsFromVsyncToPhotons_Float = "secondsFromVsyncToPhotons"; + static const char * const k_pch_Null_DisplayFrequency_Float = "displayFrequency"; + + //----------------------------------------------------------------------------- + // user interface keys + static const char * const k_pch_UserInterface_Section = "userinterface"; + static const char * const k_pch_UserInterface_StatusAlwaysOnTop_Bool = "StatusAlwaysOnTop"; + static const char * const k_pch_UserInterface_MinimizeToTray_Bool = "MinimizeToTray"; + static const char * const k_pch_UserInterface_Screenshots_Bool = "screenshots"; + static const char * const k_pch_UserInterface_ScreenshotType_Int = "screenshotType"; + + //----------------------------------------------------------------------------- + // notification keys + static const char * const k_pch_Notifications_Section = "notifications"; + static const char * const k_pch_Notifications_DoNotDisturb_Bool = "DoNotDisturb"; + + //----------------------------------------------------------------------------- + // keyboard keys + static const char * const k_pch_Keyboard_Section = "keyboard"; + static const char * const k_pch_Keyboard_TutorialCompletions = "TutorialCompletions"; + static const char * const k_pch_Keyboard_ScaleX = "ScaleX"; + static const char * const k_pch_Keyboard_ScaleY = "ScaleY"; + static const char * const k_pch_Keyboard_OffsetLeftX = "OffsetLeftX"; + static const char * const k_pch_Keyboard_OffsetRightX = "OffsetRightX"; + static const char * const k_pch_Keyboard_OffsetY = "OffsetY"; + static const char * const k_pch_Keyboard_Smoothing = "Smoothing"; + + //----------------------------------------------------------------------------- + // perf keys + static const char * const k_pch_Perf_Section = "perfcheck"; + static const char * const k_pch_Perf_HeuristicActive_Bool = "heuristicActive"; + static const char * const k_pch_Perf_NotifyInHMD_Bool = "warnInHMD"; + static const char * const k_pch_Perf_NotifyOnlyOnce_Bool = "warnOnlyOnce"; + static const char * const k_pch_Perf_AllowTimingStore_Bool = "allowTimingStore"; + static const char * const k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit"; + static const char * const k_pch_Perf_TestData_Float = "perfTestData"; + static const char * const k_pch_Perf_LinuxGPUProfiling_Bool = "linuxGPUProfiling"; + + //----------------------------------------------------------------------------- + // collision bounds keys + static const char * const k_pch_CollisionBounds_Section = "collisionBounds"; + static const char * const k_pch_CollisionBounds_Style_Int32 = "CollisionBoundsStyle"; + static const char * const k_pch_CollisionBounds_GroundPerimeterOn_Bool = "CollisionBoundsGroundPerimeterOn"; + static const char * const k_pch_CollisionBounds_CenterMarkerOn_Bool = "CollisionBoundsCenterMarkerOn"; + static const char * const k_pch_CollisionBounds_PlaySpaceOn_Bool = "CollisionBoundsPlaySpaceOn"; + static const char * const k_pch_CollisionBounds_FadeDistance_Float = "CollisionBoundsFadeDistance"; + static const char * const k_pch_CollisionBounds_ColorGammaR_Int32 = "CollisionBoundsColorGammaR"; + static const char * const k_pch_CollisionBounds_ColorGammaG_Int32 = "CollisionBoundsColorGammaG"; + static const char * const k_pch_CollisionBounds_ColorGammaB_Int32 = "CollisionBoundsColorGammaB"; + static const char * const k_pch_CollisionBounds_ColorGammaA_Int32 = "CollisionBoundsColorGammaA"; + + //----------------------------------------------------------------------------- + // camera keys + static const char * const k_pch_Camera_Section = "camera"; + static const char * const k_pch_Camera_EnableCamera_Bool = "enableCamera"; + static const char * const k_pch_Camera_EnableCameraInDashboard_Bool = "enableCameraInDashboard"; + static const char * const k_pch_Camera_EnableCameraForCollisionBounds_Bool = "enableCameraForCollisionBounds"; + static const char * const k_pch_Camera_EnableCameraForRoomView_Bool = "enableCameraForRoomView"; + static const char * const k_pch_Camera_BoundsColorGammaR_Int32 = "cameraBoundsColorGammaR"; + static const char * const k_pch_Camera_BoundsColorGammaG_Int32 = "cameraBoundsColorGammaG"; + static const char * const k_pch_Camera_BoundsColorGammaB_Int32 = "cameraBoundsColorGammaB"; + static const char * const k_pch_Camera_BoundsColorGammaA_Int32 = "cameraBoundsColorGammaA"; + static const char * const k_pch_Camera_BoundsStrength_Int32 = "cameraBoundsStrength"; + + //----------------------------------------------------------------------------- + // audio keys + static const char * const k_pch_audio_Section = "audio"; + static const char * const k_pch_audio_OnPlaybackDevice_String = "onPlaybackDevice"; + static const char * const k_pch_audio_OnRecordDevice_String = "onRecordDevice"; + static const char * const k_pch_audio_OnPlaybackMirrorDevice_String = "onPlaybackMirrorDevice"; + static const char * const k_pch_audio_OffPlaybackDevice_String = "offPlaybackDevice"; + static const char * const k_pch_audio_OffRecordDevice_String = "offRecordDevice"; + static const char * const k_pch_audio_VIVEHDMIGain = "viveHDMIGain"; + + //----------------------------------------------------------------------------- + // power management keys + static const char * const k_pch_Power_Section = "power"; + static const char * const k_pch_Power_PowerOffOnExit_Bool = "powerOffOnExit"; + static const char * const k_pch_Power_TurnOffScreensTimeout_Float = "turnOffScreensTimeout"; + static const char * const k_pch_Power_TurnOffControllersTimeout_Float = "turnOffControllersTimeout"; + static const char * const k_pch_Power_ReturnToWatchdogTimeout_Float = "returnToWatchdogTimeout"; + static const char * const k_pch_Power_AutoLaunchSteamVROnButtonPress = "autoLaunchSteamVROnButtonPress"; + + //----------------------------------------------------------------------------- + // dashboard keys + static const char * const k_pch_Dashboard_Section = "dashboard"; + static const char * const k_pch_Dashboard_EnableDashboard_Bool = "enableDashboard"; + static const char * const k_pch_Dashboard_ArcadeMode_Bool = "arcadeMode"; + + //----------------------------------------------------------------------------- + // model skin keys + static const char * const k_pch_modelskin_Section = "modelskins"; + + //----------------------------------------------------------------------------- + // driver keys - These could be checked in any driver_ section + static const char * const k_pch_Driver_Enable_Bool = "enable"; + +} // namespace vr + +// ivrchaperone.h +namespace vr +{ + +#pragma pack( push, 8 ) + +enum ChaperoneCalibrationState +{ + // OK! + ChaperoneCalibrationState_OK = 1, // Chaperone is fully calibrated and working correctly + + // Warnings + ChaperoneCalibrationState_Warning = 100, + ChaperoneCalibrationState_Warning_BaseStationMayHaveMoved = 101, // A base station thinks that it might have moved + ChaperoneCalibrationState_Warning_BaseStationRemoved = 102, // There are less base stations than when calibrated + ChaperoneCalibrationState_Warning_SeatedBoundsInvalid = 103, // Seated bounds haven't been calibrated for the current tracking center + + // Errors + ChaperoneCalibrationState_Error = 200, // The UniverseID is invalid + ChaperoneCalibrationState_Error_BaseStationUninitialized = 201, // Tracking center hasn't be calibrated for at least one of the base stations + ChaperoneCalibrationState_Error_BaseStationConflict = 202, // Tracking center is calibrated, but base stations disagree on the tracking space + ChaperoneCalibrationState_Error_PlayAreaInvalid = 203, // Play Area hasn't been calibrated for the current tracking center + ChaperoneCalibrationState_Error_CollisionBoundsInvalid = 204, // Collision Bounds haven't been calibrated for the current tracking center +}; + + +/** HIGH LEVEL TRACKING SPACE ASSUMPTIONS: +* 0,0,0 is the preferred standing area center. +* 0Y is the floor height. +* -Z is the preferred forward facing direction. */ +class IVRChaperone +{ +public: + + /** Get the current state of Chaperone calibration. This state can change at any time during a session due to physical base station changes. **/ + virtual ChaperoneCalibrationState GetCalibrationState() = 0; + + /** Returns the width and depth of the Play Area (formerly named Soft Bounds) in X and Z. + * Tracking space center (0,0,0) is the center of the Play Area. **/ + virtual bool GetPlayAreaSize( float *pSizeX, float *pSizeZ ) = 0; + + /** Returns the 4 corner positions of the Play Area (formerly named Soft Bounds). + * Corners are in counter-clockwise order. + * Standing center (0,0,0) is the center of the Play Area. + * It's a rectangle. + * 2 sides are parallel to the X axis and 2 sides are parallel to the Z axis. + * Height of every corner is 0Y (on the floor). **/ + virtual bool GetPlayAreaRect( HmdQuad_t *rect ) = 0; + + /** Reload Chaperone data from the .vrchap file on disk. */ + virtual void ReloadInfo( void ) = 0; + + /** Optionally give the chaperone system a hit about the color and brightness in the scene **/ + virtual void SetSceneColor( HmdColor_t color ) = 0; + + /** Get the current chaperone bounds draw color and brightness **/ + virtual void GetBoundsColor( HmdColor_t *pOutputColorArray, int nNumOutputColors, float flCollisionBoundsFadeDistance, HmdColor_t *pOutputCameraColor ) = 0; + + /** Determine whether the bounds are showing right now **/ + virtual bool AreBoundsVisible() = 0; + + /** Force the bounds to show, mostly for utilities **/ + virtual void ForceBoundsVisible( bool bForce ) = 0; +}; + +static const char * const IVRChaperone_Version = "IVRChaperone_003"; + +#pragma pack( pop ) + +} + +// ivrchaperonesetup.h +namespace vr +{ + +enum EChaperoneConfigFile +{ + EChaperoneConfigFile_Live = 1, // The live chaperone config, used by most applications and games + EChaperoneConfigFile_Temp = 2, // The temporary chaperone config, used to live-preview collision bounds in room setup +}; + +enum EChaperoneImportFlags +{ + EChaperoneImport_BoundsOnly = 0x0001, +}; + +/** Manages the working copy of the chaperone info. By default this will be the same as the +* live copy. Any changes made with this interface will stay in the working copy until +* CommitWorkingCopy() is called, at which point the working copy and the live copy will be +* the same again. */ +class IVRChaperoneSetup +{ +public: + + /** Saves the current working copy to disk */ + virtual bool CommitWorkingCopy( EChaperoneConfigFile configFile ) = 0; + + /** Reverts the working copy to match the live chaperone calibration. + * To modify existing data this MUST be do WHILE getting a non-error ChaperoneCalibrationStatus. + * Only after this should you do gets and sets on the existing data. */ + virtual void RevertWorkingCopy() = 0; + + /** Returns the width and depth of the Play Area (formerly named Soft Bounds) in X and Z from the working copy. + * Tracking space center (0,0,0) is the center of the Play Area. */ + virtual bool GetWorkingPlayAreaSize( float *pSizeX, float *pSizeZ ) = 0; + + /** Returns the 4 corner positions of the Play Area (formerly named Soft Bounds) from the working copy. + * Corners are in clockwise order. + * Tracking space center (0,0,0) is the center of the Play Area. + * It's a rectangle. + * 2 sides are parallel to the X axis and 2 sides are parallel to the Z axis. + * Height of every corner is 0Y (on the floor). **/ + virtual bool GetWorkingPlayAreaRect( HmdQuad_t *rect ) = 0; + + /** Returns the number of Quads if the buffer points to null. Otherwise it returns Quads + * into the buffer up to the max specified from the working copy. */ + virtual bool GetWorkingCollisionBoundsInfo( VR_OUT_ARRAY_COUNT(punQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t* punQuadsCount ) = 0; + + /** Returns the number of Quads if the buffer points to null. Otherwise it returns Quads + * into the buffer up to the max specified. */ + virtual bool GetLiveCollisionBoundsInfo( VR_OUT_ARRAY_COUNT(punQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t* punQuadsCount ) = 0; + + /** Returns the preferred seated position from the working copy. */ + virtual bool GetWorkingSeatedZeroPoseToRawTrackingPose( HmdMatrix34_t *pmatSeatedZeroPoseToRawTrackingPose ) = 0; + + /** Returns the standing origin from the working copy. */ + virtual bool GetWorkingStandingZeroPoseToRawTrackingPose( HmdMatrix34_t *pmatStandingZeroPoseToRawTrackingPose ) = 0; + + /** Sets the Play Area in the working copy. */ + virtual void SetWorkingPlayAreaSize( float sizeX, float sizeZ ) = 0; + + /** Sets the Collision Bounds in the working copy. */ + virtual void SetWorkingCollisionBoundsInfo( VR_ARRAY_COUNT(unQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t unQuadsCount ) = 0; + + /** Sets the preferred seated position in the working copy. */ + virtual void SetWorkingSeatedZeroPoseToRawTrackingPose( const HmdMatrix34_t *pMatSeatedZeroPoseToRawTrackingPose ) = 0; + + /** Sets the preferred standing position in the working copy. */ + virtual void SetWorkingStandingZeroPoseToRawTrackingPose( const HmdMatrix34_t *pMatStandingZeroPoseToRawTrackingPose ) = 0; + + /** Tear everything down and reload it from the file on disk */ + virtual void ReloadFromDisk( EChaperoneConfigFile configFile ) = 0; + + /** Returns the preferred seated position. */ + virtual bool GetLiveSeatedZeroPoseToRawTrackingPose( HmdMatrix34_t *pmatSeatedZeroPoseToRawTrackingPose ) = 0; + + virtual void SetWorkingCollisionBoundsTagsInfo( VR_ARRAY_COUNT(unTagCount) uint8_t *pTagsBuffer, uint32_t unTagCount ) = 0; + virtual bool GetLiveCollisionBoundsTagsInfo( VR_OUT_ARRAY_COUNT(punTagCount) uint8_t *pTagsBuffer, uint32_t *punTagCount ) = 0; + + virtual bool SetWorkingPhysicalBoundsInfo( VR_ARRAY_COUNT(unQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t unQuadsCount ) = 0; + virtual bool GetLivePhysicalBoundsInfo( VR_OUT_ARRAY_COUNT(punQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t* punQuadsCount ) = 0; + + virtual bool ExportLiveToBuffer( VR_OUT_STRING() char *pBuffer, uint32_t *pnBufferLength ) = 0; + virtual bool ImportFromBufferToWorking( const char *pBuffer, uint32_t nImportFlags ) = 0; +}; + +static const char * const IVRChaperoneSetup_Version = "IVRChaperoneSetup_005"; + + +} + +// ivrcompositor.h +namespace vr +{ + +#pragma pack( push, 8 ) + +/** Errors that can occur with the VR compositor */ +enum EVRCompositorError +{ + VRCompositorError_None = 0, + VRCompositorError_RequestFailed = 1, + VRCompositorError_IncompatibleVersion = 100, + VRCompositorError_DoNotHaveFocus = 101, + VRCompositorError_InvalidTexture = 102, + VRCompositorError_IsNotSceneApplication = 103, + VRCompositorError_TextureIsOnWrongDevice = 104, + VRCompositorError_TextureUsesUnsupportedFormat = 105, + VRCompositorError_SharedTexturesNotSupported = 106, + VRCompositorError_IndexOutOfRange = 107, + VRCompositorError_AlreadySubmitted = 108, +}; + +const uint32_t VRCompositor_ReprojectionReason_Cpu = 0x01; +const uint32_t VRCompositor_ReprojectionReason_Gpu = 0x02; +const uint32_t VRCompositor_ReprojectionAsync = 0x04; // This flag indicates the async reprojection mode is active, + // but does not indicate if reprojection actually happened or not. + // Use the ReprojectionReason flags above to check if reprojection + // was actually applied (i.e. scene texture was reused). + // NumFramePresents > 1 also indicates the scene texture was reused, + // and also the number of times that it was presented in total. + +/** Provides a single frame's timing information to the app */ +struct Compositor_FrameTiming +{ + uint32_t m_nSize; // Set to sizeof( Compositor_FrameTiming ) + uint32_t m_nFrameIndex; + uint32_t m_nNumFramePresents; // number of times this frame was presented + uint32_t m_nNumMisPresented; // number of times this frame was presented on a vsync other than it was originally predicted to + uint32_t m_nNumDroppedFrames; // number of additional times previous frame was scanned out + uint32_t m_nReprojectionFlags; + + /** Absolute time reference for comparing frames. This aligns with the vsync that running start is relative to. */ + double m_flSystemTimeInSeconds; + + /** These times may include work from other processes due to OS scheduling. + * The fewer packets of work these are broken up into, the less likely this will happen. + * GPU work can be broken up by calling Flush. This can sometimes be useful to get the GPU started + * processing that work earlier in the frame. */ + float m_flPreSubmitGpuMs; // time spent rendering the scene (gpu work submitted between WaitGetPoses and second Submit) + float m_flPostSubmitGpuMs; // additional time spent rendering by application (e.g. companion window) + float m_flTotalRenderGpuMs; // time between work submitted immediately after present (ideally vsync) until the end of compositor submitted work + float m_flCompositorRenderGpuMs; // time spend performing distortion correction, rendering chaperone, overlays, etc. + float m_flCompositorRenderCpuMs; // time spent on cpu submitting the above work for this frame + float m_flCompositorIdleCpuMs; // time spent waiting for running start (application could have used this much more time) + + /** Miscellaneous measured intervals. */ + float m_flClientFrameIntervalMs; // time between calls to WaitGetPoses + float m_flPresentCallCpuMs; // time blocked on call to present (usually 0.0, but can go long) + float m_flWaitForPresentCpuMs; // time spent spin-waiting for frame index to change (not near-zero indicates wait object failure) + float m_flSubmitFrameMs; // time spent in IVRCompositor::Submit (not near-zero indicates driver issue) + + /** The following are all relative to this frame's SystemTimeInSeconds */ + float m_flWaitGetPosesCalledMs; + float m_flNewPosesReadyMs; + float m_flNewFrameReadyMs; // second call to IVRCompositor::Submit + float m_flCompositorUpdateStartMs; + float m_flCompositorUpdateEndMs; + float m_flCompositorRenderStartMs; + + vr::TrackedDevicePose_t m_HmdPose; // pose used by app to render this frame +}; + +/** Cumulative stats for current application. These are not cleared until a new app connects, +* but they do stop accumulating once the associated app disconnects. */ +struct Compositor_CumulativeStats +{ + uint32_t m_nPid; // Process id associated with these stats (may no longer be running). + uint32_t m_nNumFramePresents; // total number of times we called present (includes reprojected frames) + uint32_t m_nNumDroppedFrames; // total number of times an old frame was re-scanned out (without reprojection) + uint32_t m_nNumReprojectedFrames; // total number of times a frame was scanned out a second time (with reprojection) + + /** Values recorded at startup before application has fully faded in the first time. */ + uint32_t m_nNumFramePresentsOnStartup; + uint32_t m_nNumDroppedFramesOnStartup; + uint32_t m_nNumReprojectedFramesOnStartup; + + /** Applications may explicitly fade to the compositor. This is usually to handle level transitions, and loading often causes + * system wide hitches. The following stats are collected during this period. Does not include values recorded during startup. */ + uint32_t m_nNumLoading; + uint32_t m_nNumFramePresentsLoading; + uint32_t m_nNumDroppedFramesLoading; + uint32_t m_nNumReprojectedFramesLoading; + + /** If we don't get a new frame from the app in less than 2.5 frames, then we assume the app has hung and start + * fading back to the compositor. The following stats are a result of this, and are a subset of those recorded above. + * Does not include values recorded during start up or loading. */ + uint32_t m_nNumTimedOut; + uint32_t m_nNumFramePresentsTimedOut; + uint32_t m_nNumDroppedFramesTimedOut; + uint32_t m_nNumReprojectedFramesTimedOut; +}; + +#pragma pack( pop ) + +/** Allows the application to interact with the compositor */ +class IVRCompositor +{ +public: + /** Sets tracking space returned by WaitGetPoses */ + virtual void SetTrackingSpace( ETrackingUniverseOrigin eOrigin ) = 0; + + /** Gets current tracking space returned by WaitGetPoses */ + virtual ETrackingUniverseOrigin GetTrackingSpace() = 0; + + /** Scene applications should call this function to get poses to render with (and optionally poses predicted an additional frame out to use for gameplay). + * This function will block until "running start" milliseconds before the start of the frame, and should be called at the last moment before needing to + * start rendering. + * + * Return codes: + * - IsNotSceneApplication (make sure to call VR_Init with VRApplicaiton_Scene) + * - DoNotHaveFocus (some other app has taken focus - this will throttle the call to 10hz to reduce the impact on that app) + */ + virtual EVRCompositorError WaitGetPoses( VR_ARRAY_COUNT(unRenderPoseArrayCount) TrackedDevicePose_t* pRenderPoseArray, uint32_t unRenderPoseArrayCount, + VR_ARRAY_COUNT(unGamePoseArrayCount) TrackedDevicePose_t* pGamePoseArray, uint32_t unGamePoseArrayCount ) = 0; + + /** Get the last set of poses returned by WaitGetPoses. */ + virtual EVRCompositorError GetLastPoses( VR_ARRAY_COUNT( unRenderPoseArrayCount ) TrackedDevicePose_t* pRenderPoseArray, uint32_t unRenderPoseArrayCount, + VR_ARRAY_COUNT( unGamePoseArrayCount ) TrackedDevicePose_t* pGamePoseArray, uint32_t unGamePoseArrayCount ) = 0; + + /** Interface for accessing last set of poses returned by WaitGetPoses one at a time. + * Returns VRCompositorError_IndexOutOfRange if unDeviceIndex not less than k_unMaxTrackedDeviceCount otherwise VRCompositorError_None. + * It is okay to pass NULL for either pose if you only want one of the values. */ + virtual EVRCompositorError GetLastPoseForTrackedDeviceIndex( TrackedDeviceIndex_t unDeviceIndex, TrackedDevicePose_t *pOutputPose, TrackedDevicePose_t *pOutputGamePose ) = 0; + + /** Updated scene texture to display. If pBounds is NULL the entire texture will be used. If called from an OpenGL app, consider adding a glFlush after + * Submitting both frames to signal the driver to start processing, otherwise it may wait until the command buffer fills up, causing the app to miss frames. + * + * OpenGL dirty state: + * glBindTexture + * + * Return codes: + * - IsNotSceneApplication (make sure to call VR_Init with VRApplicaiton_Scene) + * - DoNotHaveFocus (some other app has taken focus) + * - TextureIsOnWrongDevice (application did not use proper AdapterIndex - see IVRSystem.GetDXGIOutputInfo) + * - SharedTexturesNotSupported (application needs to call CreateDXGIFactory1 or later before creating DX device) + * - TextureUsesUnsupportedFormat (scene textures must be compatible with DXGI sharing rules - e.g. uncompressed, no mips, etc.) + * - InvalidTexture (usually means bad arguments passed in) + * - AlreadySubmitted (app has submitted two left textures or two right textures in a single frame - i.e. before calling WaitGetPoses again) + */ + virtual EVRCompositorError Submit( EVREye eEye, const Texture_t *pTexture, const VRTextureBounds_t* pBounds = 0, EVRSubmitFlags nSubmitFlags = Submit_Default ) = 0; + + /** Clears the frame that was sent with the last call to Submit. This will cause the + * compositor to show the grid until Submit is called again. */ + virtual void ClearLastSubmittedFrame() = 0; + + /** Call immediately after presenting your app's window (i.e. companion window) to unblock the compositor. + * This is an optional call, which only needs to be used if you can't instead call WaitGetPoses immediately after Present. + * For example, if your engine's render and game loop are not on separate threads, or blocking the render thread until 3ms before the next vsync would + * introduce a deadlock of some sort. This function tells the compositor that you have finished all rendering after having Submitted buffers for both + * eyes, and it is free to start its rendering work. This should only be called from the same thread you are rendering on. */ + virtual void PostPresentHandoff() = 0; + + /** Returns true if timing data is filled it. Sets oldest timing info if nFramesAgo is larger than the stored history. + * Be sure to set timing.size = sizeof(Compositor_FrameTiming) on struct passed in before calling this function. */ + virtual bool GetFrameTiming( Compositor_FrameTiming *pTiming, uint32_t unFramesAgo = 0 ) = 0; + + /** Interface for copying a range of timing data. Frames are returned in ascending order (oldest to newest) with the last being the most recent frame. + * Only the first entry's m_nSize needs to be set, as the rest will be inferred from that. Returns total number of entries filled out. */ + virtual uint32_t GetFrameTimings( Compositor_FrameTiming *pTiming, uint32_t nFrames ) = 0; + + /** Returns the time in seconds left in the current (as identified by FrameTiming's frameIndex) frame. + * Due to "running start", this value may roll over to the next frame before ever reaching 0.0. */ + virtual float GetFrameTimeRemaining() = 0; + + /** Fills out stats accumulated for the last connected application. Pass in sizeof( Compositor_CumulativeStats ) as second parameter. */ + virtual void GetCumulativeStats( Compositor_CumulativeStats *pStats, uint32_t nStatsSizeInBytes ) = 0; + + /** Fades the view on the HMD to the specified color. The fade will take fSeconds, and the color values are between + * 0.0 and 1.0. This color is faded on top of the scene based on the alpha parameter. Removing the fade color instantly + * would be FadeToColor( 0.0, 0.0, 0.0, 0.0, 0.0 ). Values are in un-premultiplied alpha space. */ + virtual void FadeToColor( float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground = false ) = 0; + + /** Get current fade color value. */ + virtual HmdColor_t GetCurrentFadeColor( bool bBackground = false ) = 0; + + /** Fading the Grid in or out in fSeconds */ + virtual void FadeGrid( float fSeconds, bool bFadeIn ) = 0; + + /** Get current alpha value of grid. */ + virtual float GetCurrentGridAlpha() = 0; + + /** Override the skybox used in the compositor (e.g. for during level loads when the app can't feed scene images fast enough) + * Order is Front, Back, Left, Right, Top, Bottom. If only a single texture is passed, it is assumed in lat-long format. + * If two are passed, it is assumed a lat-long stereo pair. */ + virtual EVRCompositorError SetSkyboxOverride( VR_ARRAY_COUNT( unTextureCount ) const Texture_t *pTextures, uint32_t unTextureCount ) = 0; + + /** Resets compositor skybox back to defaults. */ + virtual void ClearSkyboxOverride() = 0; + + /** Brings the compositor window to the front. This is useful for covering any other window that may be on the HMD + * and is obscuring the compositor window. */ + virtual void CompositorBringToFront() = 0; + + /** Pushes the compositor window to the back. This is useful for allowing other applications to draw directly to the HMD. */ + virtual void CompositorGoToBack() = 0; + + /** Tells the compositor process to clean up and exit. You do not need to call this function at shutdown. Under normal + * circumstances the compositor will manage its own life cycle based on what applications are running. */ + virtual void CompositorQuit() = 0; + + /** Return whether the compositor is fullscreen */ + virtual bool IsFullscreen() = 0; + + /** Returns the process ID of the process that is currently rendering the scene */ + virtual uint32_t GetCurrentSceneFocusProcess() = 0; + + /** Returns the process ID of the process that rendered the last frame (or 0 if the compositor itself rendered the frame.) + * Returns 0 when fading out from an app and the app's process Id when fading into an app. */ + virtual uint32_t GetLastFrameRenderer() = 0; + + /** Returns true if the current process has the scene focus */ + virtual bool CanRenderScene() = 0; + + /** Creates a window on the primary monitor to display what is being shown in the headset. */ + virtual void ShowMirrorWindow() = 0; + + /** Closes the mirror window. */ + virtual void HideMirrorWindow() = 0; + + /** Returns true if the mirror window is shown. */ + virtual bool IsMirrorWindowVisible() = 0; + + /** Writes all images that the compositor knows about (including overlays) to a 'screenshots' folder in the SteamVR runtime root. */ + virtual void CompositorDumpImages() = 0; + + /** Let an app know it should be rendering with low resources. */ + virtual bool ShouldAppRenderWithLowResources() = 0; + + /** Override interleaved reprojection logic to force on. */ + virtual void ForceInterleavedReprojectionOn( bool bOverride ) = 0; + + /** Force reconnecting to the compositor process. */ + virtual void ForceReconnectProcess() = 0; + + /** Temporarily suspends rendering (useful for finer control over scene transitions). */ + virtual void SuspendRendering( bool bSuspend ) = 0; + + /** Opens a shared D3D11 texture with the undistorted composited image for each eye. Use ReleaseMirrorTextureD3D11 when finished + * instead of calling Release on the resource itself. */ + virtual vr::EVRCompositorError GetMirrorTextureD3D11( vr::EVREye eEye, void *pD3D11DeviceOrResource, void **ppD3D11ShaderResourceView ) = 0; + virtual void ReleaseMirrorTextureD3D11( void *pD3D11ShaderResourceView ) = 0; + + /** Access to mirror textures from OpenGL. */ + virtual vr::EVRCompositorError GetMirrorTextureGL( vr::EVREye eEye, vr::glUInt_t *pglTextureId, vr::glSharedTextureHandle_t *pglSharedTextureHandle ) = 0; + virtual bool ReleaseSharedGLTexture( vr::glUInt_t glTextureId, vr::glSharedTextureHandle_t glSharedTextureHandle ) = 0; + virtual void LockGLSharedTextureForAccess( vr::glSharedTextureHandle_t glSharedTextureHandle ) = 0; + virtual void UnlockGLSharedTextureForAccess( vr::glSharedTextureHandle_t glSharedTextureHandle ) = 0; + + /** [Vulkan Only] + * return 0. Otherwise it returns the length of the number of bytes necessary to hold this string including the trailing + * null. The string will be a space separated list of-required instance extensions to enable in VkCreateInstance */ + virtual uint32_t GetVulkanInstanceExtensionsRequired( VR_OUT_STRING() char *pchValue, uint32_t unBufferSize ) = 0; + + /** [Vulkan only] + * return 0. Otherwise it returns the length of the number of bytes necessary to hold this string including the trailing + * null. The string will be a space separated list of required device extensions to enable in VkCreateDevice */ + virtual uint32_t GetVulkanDeviceExtensionsRequired( VkPhysicalDevice_T *pPhysicalDevice, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize ) = 0; + +}; + +static const char * const IVRCompositor_Version = "IVRCompositor_020"; + +} // namespace vr + + + +// ivrnotifications.h +namespace vr +{ + +#pragma pack( push, 8 ) + +// Used for passing graphic data +struct NotificationBitmap_t +{ + NotificationBitmap_t() + : m_pImageData( nullptr ) + , m_nWidth( 0 ) + , m_nHeight( 0 ) + , m_nBytesPerPixel( 0 ) + { + }; + + void *m_pImageData; + int32_t m_nWidth; + int32_t m_nHeight; + int32_t m_nBytesPerPixel; +}; + + +/** Be aware that the notification type is used as 'priority' to pick the next notification */ +enum EVRNotificationType +{ + /** Transient notifications are automatically hidden after a period of time set by the user. + * They are used for things like information and chat messages that do not require user interaction. */ + EVRNotificationType_Transient = 0, + + /** Persistent notifications are shown to the user until they are hidden by calling RemoveNotification(). + * They are used for things like phone calls and alarms that require user interaction. */ + EVRNotificationType_Persistent = 1, + + /** System notifications are shown no matter what. It is expected, that the ulUserValue is used as ID. + * If there is already a system notification in the queue with that ID it is not accepted into the queue + * to prevent spamming with system notification */ + EVRNotificationType_Transient_SystemWithUserValue = 2, +}; + +enum EVRNotificationStyle +{ + /** Creates a notification with minimal external styling. */ + EVRNotificationStyle_None = 0, + + /** Used for notifications about overlay-level status. In Steam this is used for events like downloads completing. */ + EVRNotificationStyle_Application = 100, + + /** Used for notifications about contacts that are unknown or not available. In Steam this is used for friend invitations and offline friends. */ + EVRNotificationStyle_Contact_Disabled = 200, + + /** Used for notifications about contacts that are available but inactive. In Steam this is used for friends that are online but not playing a game. */ + EVRNotificationStyle_Contact_Enabled = 201, + + /** Used for notifications about contacts that are available and active. In Steam this is used for friends that are online and currently running a game. */ + EVRNotificationStyle_Contact_Active = 202, +}; + +static const uint32_t k_unNotificationTextMaxSize = 256; + +typedef uint32_t VRNotificationId; + + + +#pragma pack( pop ) + +/** Allows notification sources to interact with the VR system + This current interface is not yet implemented. Do not use yet. */ +class IVRNotifications +{ +public: + /** Create a notification and enqueue it to be shown to the user. + * An overlay handle is required to create a notification, as otherwise it would be impossible for a user to act on it. + * To create a two-line notification, use a line break ('\n') to split the text into two lines. + * The pImage argument may be NULL, in which case the specified overlay's icon will be used instead. */ + virtual EVRNotificationError CreateNotification( VROverlayHandle_t ulOverlayHandle, uint64_t ulUserValue, EVRNotificationType type, const char *pchText, EVRNotificationStyle style, const NotificationBitmap_t *pImage, /* out */ VRNotificationId *pNotificationId ) = 0; + + /** Destroy a notification, hiding it first if it currently shown to the user. */ + virtual EVRNotificationError RemoveNotification( VRNotificationId notificationId ) = 0; + +}; + +static const char * const IVRNotifications_Version = "IVRNotifications_002"; + +} // namespace vr + + + +// ivroverlay.h +namespace vr +{ + + /** The maximum length of an overlay key in bytes, counting the terminating null character. */ + static const uint32_t k_unVROverlayMaxKeyLength = 128; + + /** The maximum length of an overlay name in bytes, counting the terminating null character. */ + static const uint32_t k_unVROverlayMaxNameLength = 128; + + /** The maximum number of overlays that can exist in the system at one time. */ + static const uint32_t k_unMaxOverlayCount = 64; + + /** The maximum number of overlay intersection mask primitives per overlay */ + static const uint32_t k_unMaxOverlayIntersectionMaskPrimitivesCount = 32; + + /** Types of input supported by VR Overlays */ + enum VROverlayInputMethod + { + VROverlayInputMethod_None = 0, // No input events will be generated automatically for this overlay + VROverlayInputMethod_Mouse = 1, // Tracked controllers will get mouse events automatically + }; + + /** Allows the caller to figure out which overlay transform getter to call. */ + enum VROverlayTransformType + { + VROverlayTransform_Absolute = 0, + VROverlayTransform_TrackedDeviceRelative = 1, + VROverlayTransform_SystemOverlay = 2, + VROverlayTransform_TrackedComponent = 3, + }; + + /** Overlay control settings */ + enum VROverlayFlags + { + VROverlayFlags_None = 0, + + // The following only take effect when rendered using the high quality render path (see SetHighQualityOverlay). + VROverlayFlags_Curved = 1, + VROverlayFlags_RGSS4X = 2, + + // Set this flag on a dashboard overlay to prevent a tab from showing up for that overlay + VROverlayFlags_NoDashboardTab = 3, + + // Set this flag on a dashboard that is able to deal with gamepad focus events + VROverlayFlags_AcceptsGamepadEvents = 4, + + // Indicates that the overlay should dim/brighten to show gamepad focus + VROverlayFlags_ShowGamepadFocus = 5, + + // When in VROverlayInputMethod_Mouse you can optionally enable sending VRScroll_t + VROverlayFlags_SendVRScrollEvents = 6, + VROverlayFlags_SendVRTouchpadEvents = 7, + + // If set this will render a vertical scroll wheel on the primary controller, + // only needed if not using VROverlayFlags_SendVRScrollEvents but you still want to represent a scroll wheel + VROverlayFlags_ShowTouchPadScrollWheel = 8, + + // If this is set ownership and render access to the overlay are transferred + // to the new scene process on a call to IVRApplications::LaunchInternalProcess + VROverlayFlags_TransferOwnershipToInternalProcess = 9, + + // If set, renders 50% of the texture in each eye, side by side + VROverlayFlags_SideBySide_Parallel = 10, // Texture is left/right + VROverlayFlags_SideBySide_Crossed = 11, // Texture is crossed and right/left + + VROverlayFlags_Panorama = 12, // Texture is a panorama + VROverlayFlags_StereoPanorama = 13, // Texture is a stereo panorama + + // If this is set on an overlay owned by the scene application that overlay + // will be sorted with the "Other" overlays on top of all other scene overlays + VROverlayFlags_SortWithNonSceneOverlays = 14, + + // If set, the overlay will be shown in the dashboard, otherwise it will be hidden. + VROverlayFlags_VisibleInDashboard = 15, + }; + + enum VRMessageOverlayResponse + { + VRMessageOverlayResponse_ButtonPress_0 = 0, + VRMessageOverlayResponse_ButtonPress_1 = 1, + VRMessageOverlayResponse_ButtonPress_2 = 2, + VRMessageOverlayResponse_ButtonPress_3 = 3, + VRMessageOverlayResponse_CouldntFindSystemOverlay = 4, + VRMessageOverlayResponse_CouldntFindOrCreateClientOverlay= 5, + VRMessageOverlayResponse_ApplicationQuit = 6 + }; + + struct VROverlayIntersectionParams_t + { + HmdVector3_t vSource; + HmdVector3_t vDirection; + ETrackingUniverseOrigin eOrigin; + }; + + struct VROverlayIntersectionResults_t + { + HmdVector3_t vPoint; + HmdVector3_t vNormal; + HmdVector2_t vUVs; + float fDistance; + }; + + // Input modes for the Big Picture gamepad text entry + enum EGamepadTextInputMode + { + k_EGamepadTextInputModeNormal = 0, + k_EGamepadTextInputModePassword = 1, + k_EGamepadTextInputModeSubmit = 2, + }; + + // Controls number of allowed lines for the Big Picture gamepad text entry + enum EGamepadTextInputLineMode + { + k_EGamepadTextInputLineModeSingleLine = 0, + k_EGamepadTextInputLineModeMultipleLines = 1 + }; + + /** Directions for changing focus between overlays with the gamepad */ + enum EOverlayDirection + { + OverlayDirection_Up = 0, + OverlayDirection_Down = 1, + OverlayDirection_Left = 2, + OverlayDirection_Right = 3, + + OverlayDirection_Count = 4, + }; + + enum EVROverlayIntersectionMaskPrimitiveType + { + OverlayIntersectionPrimitiveType_Rectangle, + OverlayIntersectionPrimitiveType_Circle, + }; + + struct IntersectionMaskRectangle_t + { + float m_flTopLeftX; + float m_flTopLeftY; + float m_flWidth; + float m_flHeight; + }; + + struct IntersectionMaskCircle_t + { + float m_flCenterX; + float m_flCenterY; + float m_flRadius; + }; + + /** NOTE!!! If you change this you MUST manually update openvr_interop.cs.py and openvr_api_flat.h.py */ + typedef union + { + IntersectionMaskRectangle_t m_Rectangle; + IntersectionMaskCircle_t m_Circle; + } VROverlayIntersectionMaskPrimitive_Data_t; + + struct VROverlayIntersectionMaskPrimitive_t + { + EVROverlayIntersectionMaskPrimitiveType m_nPrimitiveType; + VROverlayIntersectionMaskPrimitive_Data_t m_Primitive; + }; + + class IVROverlay + { + public: + + // --------------------------------------------- + // Overlay management methods + // --------------------------------------------- + + /** Finds an existing overlay with the specified key. */ + virtual EVROverlayError FindOverlay( const char *pchOverlayKey, VROverlayHandle_t * pOverlayHandle ) = 0; + + /** Creates a new named overlay. All overlays start hidden and with default settings. */ + virtual EVROverlayError CreateOverlay( const char *pchOverlayKey, const char *pchOverlayName, VROverlayHandle_t * pOverlayHandle ) = 0; + + /** Destroys the specified overlay. When an application calls VR_Shutdown all overlays created by that app are + * automatically destroyed. */ + virtual EVROverlayError DestroyOverlay( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Specify which overlay to use the high quality render path. This overlay will be composited in during the distortion pass which + * results in it drawing on top of everything else, but also at a higher quality as it samples the source texture directly rather than + * rasterizing into each eye's render texture first. Because if this, only one of these is supported at any given time. It is most useful + * for overlays that are expected to take up most of the user's view (e.g. streaming video). + * This mode does not support mouse input to your overlay. */ + virtual EVROverlayError SetHighQualityOverlay( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Returns the overlay handle of the current overlay being rendered using the single high quality overlay render path. + * Otherwise it will return k_ulOverlayHandleInvalid. */ + virtual vr::VROverlayHandle_t GetHighQualityOverlay() = 0; + + /** Fills the provided buffer with the string key of the overlay. Returns the size of buffer required to store the key, including + * the terminating null character. k_unVROverlayMaxKeyLength will be enough bytes to fit the string. */ + virtual uint32_t GetOverlayKey( VROverlayHandle_t ulOverlayHandle, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, EVROverlayError *pError = 0L ) = 0; + + /** Fills the provided buffer with the friendly name of the overlay. Returns the size of buffer required to store the key, including + * the terminating null character. k_unVROverlayMaxNameLength will be enough bytes to fit the string. */ + virtual uint32_t GetOverlayName( VROverlayHandle_t ulOverlayHandle, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, EVROverlayError *pError = 0L ) = 0; + + /** set the name to use for this overlay */ + virtual EVROverlayError SetOverlayName( VROverlayHandle_t ulOverlayHandle, const char *pchName ) = 0; + + /** Gets the raw image data from an overlay. Overlay image data is always returned as RGBA data, 4 bytes per pixel. If the buffer is not large enough, width and height + * will be set and VROverlayError_ArrayTooSmall is returned. */ + virtual EVROverlayError GetOverlayImageData( VROverlayHandle_t ulOverlayHandle, void *pvBuffer, uint32_t unBufferSize, uint32_t *punWidth, uint32_t *punHeight ) = 0; + + /** returns a string that corresponds with the specified overlay error. The string will be the name + * of the error enum value for all valid error codes */ + virtual const char *GetOverlayErrorNameFromEnum( EVROverlayError error ) = 0; + + // --------------------------------------------- + // Overlay rendering methods + // --------------------------------------------- + + /** Sets the pid that is allowed to render to this overlay (the creator pid is always allow to render), + * by default this is the pid of the process that made the overlay */ + virtual EVROverlayError SetOverlayRenderingPid( VROverlayHandle_t ulOverlayHandle, uint32_t unPID ) = 0; + + /** Gets the pid that is allowed to render to this overlay */ + virtual uint32_t GetOverlayRenderingPid( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Specify flag setting for a given overlay */ + virtual EVROverlayError SetOverlayFlag( VROverlayHandle_t ulOverlayHandle, VROverlayFlags eOverlayFlag, bool bEnabled ) = 0; + + /** Sets flag setting for a given overlay */ + virtual EVROverlayError GetOverlayFlag( VROverlayHandle_t ulOverlayHandle, VROverlayFlags eOverlayFlag, bool *pbEnabled ) = 0; + + /** Sets the color tint of the overlay quad. Use 0.0 to 1.0 per channel. */ + virtual EVROverlayError SetOverlayColor( VROverlayHandle_t ulOverlayHandle, float fRed, float fGreen, float fBlue ) = 0; + + /** Gets the color tint of the overlay quad. */ + virtual EVROverlayError GetOverlayColor( VROverlayHandle_t ulOverlayHandle, float *pfRed, float *pfGreen, float *pfBlue ) = 0; + + /** Sets the alpha of the overlay quad. Use 1.0 for 100 percent opacity to 0.0 for 0 percent opacity. */ + virtual EVROverlayError SetOverlayAlpha( VROverlayHandle_t ulOverlayHandle, float fAlpha ) = 0; + + /** Gets the alpha of the overlay quad. By default overlays are rendering at 100 percent alpha (1.0). */ + virtual EVROverlayError GetOverlayAlpha( VROverlayHandle_t ulOverlayHandle, float *pfAlpha ) = 0; + + /** Sets the aspect ratio of the texels in the overlay. 1.0 means the texels are square. 2.0 means the texels + * are twice as wide as they are tall. Defaults to 1.0. */ + virtual EVROverlayError SetOverlayTexelAspect( VROverlayHandle_t ulOverlayHandle, float fTexelAspect ) = 0; + + /** Gets the aspect ratio of the texels in the overlay. Defaults to 1.0 */ + virtual EVROverlayError GetOverlayTexelAspect( VROverlayHandle_t ulOverlayHandle, float *pfTexelAspect ) = 0; + + /** Sets the rendering sort order for the overlay. Overlays are rendered this order: + * Overlays owned by the scene application + * Overlays owned by some other application + * + * Within a category overlays are rendered lowest sort order to highest sort order. Overlays with the same + * sort order are rendered back to front base on distance from the HMD. + * + * Sort order defaults to 0. */ + virtual EVROverlayError SetOverlaySortOrder( VROverlayHandle_t ulOverlayHandle, uint32_t unSortOrder ) = 0; + + /** Gets the sort order of the overlay. See SetOverlaySortOrder for how this works. */ + virtual EVROverlayError GetOverlaySortOrder( VROverlayHandle_t ulOverlayHandle, uint32_t *punSortOrder ) = 0; + + /** Sets the width of the overlay quad in meters. By default overlays are rendered on a quad that is 1 meter across */ + virtual EVROverlayError SetOverlayWidthInMeters( VROverlayHandle_t ulOverlayHandle, float fWidthInMeters ) = 0; + + /** Returns the width of the overlay quad in meters. By default overlays are rendered on a quad that is 1 meter across */ + virtual EVROverlayError GetOverlayWidthInMeters( VROverlayHandle_t ulOverlayHandle, float *pfWidthInMeters ) = 0; + + /** For high-quality curved overlays only, sets the distance range in meters from the overlay used to automatically curve + * the surface around the viewer. Min is distance is when the surface will be most curved. Max is when least curved. */ + virtual EVROverlayError SetOverlayAutoCurveDistanceRangeInMeters( VROverlayHandle_t ulOverlayHandle, float fMinDistanceInMeters, float fMaxDistanceInMeters ) = 0; + + /** For high-quality curved overlays only, gets the distance range in meters from the overlay used to automatically curve + * the surface around the viewer. Min is distance is when the surface will be most curved. Max is when least curved. */ + virtual EVROverlayError GetOverlayAutoCurveDistanceRangeInMeters( VROverlayHandle_t ulOverlayHandle, float *pfMinDistanceInMeters, float *pfMaxDistanceInMeters ) = 0; + + /** Sets the colorspace the overlay texture's data is in. Defaults to 'auto'. + * If the texture needs to be resolved, you should call SetOverlayTexture with the appropriate colorspace instead. */ + virtual EVROverlayError SetOverlayTextureColorSpace( VROverlayHandle_t ulOverlayHandle, EColorSpace eTextureColorSpace ) = 0; + + /** Gets the overlay's current colorspace setting. */ + virtual EVROverlayError GetOverlayTextureColorSpace( VROverlayHandle_t ulOverlayHandle, EColorSpace *peTextureColorSpace ) = 0; + + /** Sets the part of the texture to use for the overlay. UV Min is the upper left corner and UV Max is the lower right corner. */ + virtual EVROverlayError SetOverlayTextureBounds( VROverlayHandle_t ulOverlayHandle, const VRTextureBounds_t *pOverlayTextureBounds ) = 0; + + /** Gets the part of the texture to use for the overlay. UV Min is the upper left corner and UV Max is the lower right corner. */ + virtual EVROverlayError GetOverlayTextureBounds( VROverlayHandle_t ulOverlayHandle, VRTextureBounds_t *pOverlayTextureBounds ) = 0; + + /** Gets render model to draw behind this overlay */ + virtual uint32_t GetOverlayRenderModel( vr::VROverlayHandle_t ulOverlayHandle, char *pchValue, uint32_t unBufferSize, HmdColor_t *pColor, vr::EVROverlayError *pError ) = 0; + + /** Sets render model to draw behind this overlay and the vertex color to use, pass null for pColor to match the overlays vertex color. + The model is scaled by the same amount as the overlay, with a default of 1m. */ + virtual vr::EVROverlayError SetOverlayRenderModel( vr::VROverlayHandle_t ulOverlayHandle, const char *pchRenderModel, const HmdColor_t *pColor ) = 0; + + /** Returns the transform type of this overlay. */ + virtual EVROverlayError GetOverlayTransformType( VROverlayHandle_t ulOverlayHandle, VROverlayTransformType *peTransformType ) = 0; + + /** Sets the transform to absolute tracking origin. */ + virtual EVROverlayError SetOverlayTransformAbsolute( VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, const HmdMatrix34_t *pmatTrackingOriginToOverlayTransform ) = 0; + + /** Gets the transform if it is absolute. Returns an error if the transform is some other type. */ + virtual EVROverlayError GetOverlayTransformAbsolute( VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin *peTrackingOrigin, HmdMatrix34_t *pmatTrackingOriginToOverlayTransform ) = 0; + + /** Sets the transform to relative to the transform of the specified tracked device. */ + virtual EVROverlayError SetOverlayTransformTrackedDeviceRelative( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unTrackedDevice, const HmdMatrix34_t *pmatTrackedDeviceToOverlayTransform ) = 0; + + /** Gets the transform if it is relative to a tracked device. Returns an error if the transform is some other type. */ + virtual EVROverlayError GetOverlayTransformTrackedDeviceRelative( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t *punTrackedDevice, HmdMatrix34_t *pmatTrackedDeviceToOverlayTransform ) = 0; + + /** Sets the transform to draw the overlay on a rendermodel component mesh instead of a quad. This will only draw when the system is + * drawing the device. Overlays with this transform type cannot receive mouse events. */ + virtual EVROverlayError SetOverlayTransformTrackedDeviceComponent( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unDeviceIndex, const char *pchComponentName ) = 0; + + /** Gets the transform information when the overlay is rendering on a component. */ + virtual EVROverlayError GetOverlayTransformTrackedDeviceComponent( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t *punDeviceIndex, char *pchComponentName, uint32_t unComponentNameSize ) = 0; + + /** Gets the transform if it is relative to another overlay. Returns an error if the transform is some other type. */ + virtual vr::EVROverlayError GetOverlayTransformOverlayRelative( VROverlayHandle_t ulOverlayHandle, VROverlayHandle_t *ulOverlayHandleParent, HmdMatrix34_t *pmatParentOverlayToOverlayTransform ) = 0; + + /** Sets the transform to relative to the transform of the specified overlay. This overlays visibility will also track the parents visibility */ + virtual vr::EVROverlayError SetOverlayTransformOverlayRelative( VROverlayHandle_t ulOverlayHandle, VROverlayHandle_t ulOverlayHandleParent, const HmdMatrix34_t *pmatParentOverlayToOverlayTransform ) = 0; + + /** Shows the VR overlay. For dashboard overlays, only the Dashboard Manager is allowed to call this. */ + virtual EVROverlayError ShowOverlay( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Hides the VR overlay. For dashboard overlays, only the Dashboard Manager is allowed to call this. */ + virtual EVROverlayError HideOverlay( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Returns true if the overlay is visible. */ + virtual bool IsOverlayVisible( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Get the transform in 3d space associated with a specific 2d point in the overlay's coordinate space (where 0,0 is the lower left). -Z points out of the overlay */ + virtual EVROverlayError GetTransformForOverlayCoordinates( VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, HmdVector2_t coordinatesInOverlay, HmdMatrix34_t *pmatTransform ) = 0; + + // --------------------------------------------- + // Overlay input methods + // --------------------------------------------- + + /** Returns true and fills the event with the next event on the overlay's event queue, if there is one. + * If there are no events this method returns false. uncbVREvent should be the size in bytes of the VREvent_t struct */ + virtual bool PollNextOverlayEvent( VROverlayHandle_t ulOverlayHandle, VREvent_t *pEvent, uint32_t uncbVREvent ) = 0; + + /** Returns the current input settings for the specified overlay. */ + virtual EVROverlayError GetOverlayInputMethod( VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod *peInputMethod ) = 0; + + /** Sets the input settings for the specified overlay. */ + virtual EVROverlayError SetOverlayInputMethod( VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod eInputMethod ) = 0; + + /** Gets the mouse scaling factor that is used for mouse events. The actual texture may be a different size, but this is + * typically the size of the underlying UI in pixels. */ + virtual EVROverlayError GetOverlayMouseScale( VROverlayHandle_t ulOverlayHandle, HmdVector2_t *pvecMouseScale ) = 0; + + /** Sets the mouse scaling factor that is used for mouse events. The actual texture may be a different size, but this is + * typically the size of the underlying UI in pixels (not in world space). */ + virtual EVROverlayError SetOverlayMouseScale( VROverlayHandle_t ulOverlayHandle, const HmdVector2_t *pvecMouseScale ) = 0; + + /** Computes the overlay-space pixel coordinates of where the ray intersects the overlay with the + * specified settings. Returns false if there is no intersection. */ + virtual bool ComputeOverlayIntersection( VROverlayHandle_t ulOverlayHandle, const VROverlayIntersectionParams_t *pParams, VROverlayIntersectionResults_t *pResults ) = 0; + + /** Processes mouse input from the specified controller as though it were a mouse pointed at a compositor overlay with the + * specified settings. The controller is treated like a laser pointer on the -z axis. The point where the laser pointer would + * intersect with the overlay is the mouse position, the trigger is left mouse, and the track pad is right mouse. + * + * Return true if the controller is pointed at the overlay and an event was generated. */ + virtual bool HandleControllerOverlayInteractionAsMouse( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unControllerDeviceIndex ) = 0; + + /** Returns true if the specified overlay is the hover target. An overlay is the hover target when it is the last overlay "moused over" + * by the virtual mouse pointer */ + virtual bool IsHoverTargetOverlay( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Returns the current Gamepad focus overlay */ + virtual vr::VROverlayHandle_t GetGamepadFocusOverlay() = 0; + + /** Sets the current Gamepad focus overlay */ + virtual EVROverlayError SetGamepadFocusOverlay( VROverlayHandle_t ulNewFocusOverlay ) = 0; + + /** Sets an overlay's neighbor. This will also set the neighbor of the "to" overlay + * to point back to the "from" overlay. If an overlay's neighbor is set to invalid both + * ends will be cleared */ + virtual EVROverlayError SetOverlayNeighbor( EOverlayDirection eDirection, VROverlayHandle_t ulFrom, VROverlayHandle_t ulTo ) = 0; + + /** Changes the Gamepad focus from one overlay to one of its neighbors. Returns VROverlayError_NoNeighbor if there is no + * neighbor in that direction */ + virtual EVROverlayError MoveGamepadFocusToNeighbor( EOverlayDirection eDirection, VROverlayHandle_t ulFrom ) = 0; + + // --------------------------------------------- + // Overlay texture methods + // --------------------------------------------- + + /** Texture to draw for the overlay. This function can only be called by the overlay's creator or renderer process (see SetOverlayRenderingPid) . + * + * OpenGL dirty state: + * glBindTexture + */ + virtual EVROverlayError SetOverlayTexture( VROverlayHandle_t ulOverlayHandle, const Texture_t *pTexture ) = 0; + + /** Use this to tell the overlay system to release the texture set for this overlay. */ + virtual EVROverlayError ClearOverlayTexture( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Separate interface for providing the data as a stream of bytes, but there is an upper bound on data + * that can be sent. This function can only be called by the overlay's renderer process. */ + virtual EVROverlayError SetOverlayRaw( VROverlayHandle_t ulOverlayHandle, void *pvBuffer, uint32_t unWidth, uint32_t unHeight, uint32_t unDepth ) = 0; + + /** Separate interface for providing the image through a filename: can be png or jpg, and should not be bigger than 1920x1080. + * This function can only be called by the overlay's renderer process */ + virtual EVROverlayError SetOverlayFromFile( VROverlayHandle_t ulOverlayHandle, const char *pchFilePath ) = 0; + + /** Get the native texture handle/device for an overlay you have created. + * On windows this handle will be a ID3D11ShaderResourceView with a ID3D11Texture2D bound. + * + * The texture will always be sized to match the backing texture you supplied in SetOverlayTexture above. + * + * You MUST call ReleaseNativeOverlayHandle() with pNativeTextureHandle once you are done with this texture. + * + * pNativeTextureHandle is an OUTPUT, it will be a pointer to a ID3D11ShaderResourceView *. + * pNativeTextureRef is an INPUT and should be a ID3D11Resource *. The device used by pNativeTextureRef will be used to bind pNativeTextureHandle. + */ + virtual EVROverlayError GetOverlayTexture( VROverlayHandle_t ulOverlayHandle, void **pNativeTextureHandle, void *pNativeTextureRef, uint32_t *pWidth, uint32_t *pHeight, uint32_t *pNativeFormat, ETextureType *pAPIType, EColorSpace *pColorSpace, VRTextureBounds_t *pTextureBounds ) = 0; + + /** Release the pNativeTextureHandle provided from the GetOverlayTexture call, this allows the system to free the underlying GPU resources for this object, + * so only do it once you stop rendering this texture. + */ + virtual EVROverlayError ReleaseNativeOverlayHandle( VROverlayHandle_t ulOverlayHandle, void *pNativeTextureHandle ) = 0; + + /** Get the size of the overlay texture */ + virtual EVROverlayError GetOverlayTextureSize( VROverlayHandle_t ulOverlayHandle, uint32_t *pWidth, uint32_t *pHeight ) = 0; + + // ---------------------------------------------- + // Dashboard Overlay Methods + // ---------------------------------------------- + + /** Creates a dashboard overlay and returns its handle */ + virtual EVROverlayError CreateDashboardOverlay( const char *pchOverlayKey, const char *pchOverlayFriendlyName, VROverlayHandle_t * pMainHandle, VROverlayHandle_t *pThumbnailHandle ) = 0; + + /** Returns true if the dashboard is visible */ + virtual bool IsDashboardVisible() = 0; + + /** returns true if the dashboard is visible and the specified overlay is the active system Overlay */ + virtual bool IsActiveDashboardOverlay( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Sets the dashboard overlay to only appear when the specified process ID has scene focus */ + virtual EVROverlayError SetDashboardOverlaySceneProcess( VROverlayHandle_t ulOverlayHandle, uint32_t unProcessId ) = 0; + + /** Gets the process ID that this dashboard overlay requires to have scene focus */ + virtual EVROverlayError GetDashboardOverlaySceneProcess( VROverlayHandle_t ulOverlayHandle, uint32_t *punProcessId ) = 0; + + /** Shows the dashboard. */ + virtual void ShowDashboard( const char *pchOverlayToShow ) = 0; + + /** Returns the tracked device that has the laser pointer in the dashboard */ + virtual vr::TrackedDeviceIndex_t GetPrimaryDashboardDevice() = 0; + + // --------------------------------------------- + // Keyboard methods + // --------------------------------------------- + + /** Show the virtual keyboard to accept input **/ + virtual EVROverlayError ShowKeyboard( EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, const char *pchDescription, uint32_t unCharMax, const char *pchExistingText, bool bUseMinimalMode, uint64_t uUserValue ) = 0; + + virtual EVROverlayError ShowKeyboardForOverlay( VROverlayHandle_t ulOverlayHandle, EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, const char *pchDescription, uint32_t unCharMax, const char *pchExistingText, bool bUseMinimalMode, uint64_t uUserValue ) = 0; + + /** Get the text that was entered into the text input **/ + virtual uint32_t GetKeyboardText( VR_OUT_STRING() char *pchText, uint32_t cchText ) = 0; + + /** Hide the virtual keyboard **/ + virtual void HideKeyboard() = 0; + + /** Set the position of the keyboard in world space **/ + virtual void SetKeyboardTransformAbsolute( ETrackingUniverseOrigin eTrackingOrigin, const HmdMatrix34_t *pmatTrackingOriginToKeyboardTransform ) = 0; + + /** Set the position of the keyboard in overlay space by telling it to avoid a rectangle in the overlay. Rectangle coords have (0,0) in the bottom left **/ + virtual void SetKeyboardPositionForOverlay( VROverlayHandle_t ulOverlayHandle, HmdRect2_t avoidRect ) = 0; + + // --------------------------------------------- + // Overlay input methods + // --------------------------------------------- + + /** Sets a list of primitives to be used for controller ray intersection + * typically the size of the underlying UI in pixels (not in world space). */ + virtual EVROverlayError SetOverlayIntersectionMask( VROverlayHandle_t ulOverlayHandle, VROverlayIntersectionMaskPrimitive_t *pMaskPrimitives, uint32_t unNumMaskPrimitives, uint32_t unPrimitiveSize = sizeof( VROverlayIntersectionMaskPrimitive_t ) ) = 0; + + virtual EVROverlayError GetOverlayFlags( VROverlayHandle_t ulOverlayHandle, uint32_t *pFlags ) = 0; + + // --------------------------------------------- + // Message box methods + // --------------------------------------------- + + /** Show the message overlay. This will block and return you a result. **/ + virtual VRMessageOverlayResponse ShowMessageOverlay( const char* pchText, const char* pchCaption, const char* pchButton0Text, const char* pchButton1Text = nullptr, const char* pchButton2Text = nullptr, const char* pchButton3Text = nullptr ) = 0; + }; + + static const char * const IVROverlay_Version = "IVROverlay_016"; + +} // namespace vr + +// ivrrendermodels.h +namespace vr +{ + +static const char * const k_pch_Controller_Component_GDC2015 = "gdc2015"; // Canonical coordinate system of the gdc 2015 wired controller, provided for backwards compatibility +static const char * const k_pch_Controller_Component_Base = "base"; // For controllers with an unambiguous 'base'. +static const char * const k_pch_Controller_Component_Tip = "tip"; // For controllers with an unambiguous 'tip' (used for 'laser-pointing') +static const char * const k_pch_Controller_Component_HandGrip = "handgrip"; // Neutral, ambidextrous hand-pose when holding controller. On plane between neutrally posed index finger and thumb +static const char * const k_pch_Controller_Component_Status = "status"; // 1:1 aspect ratio status area, with canonical [0,1] uv mapping + +#pragma pack( push, 8 ) + +/** Errors that can occur with the VR compositor */ +enum EVRRenderModelError +{ + VRRenderModelError_None = 0, + VRRenderModelError_Loading = 100, + VRRenderModelError_NotSupported = 200, + VRRenderModelError_InvalidArg = 300, + VRRenderModelError_InvalidModel = 301, + VRRenderModelError_NoShapes = 302, + VRRenderModelError_MultipleShapes = 303, + VRRenderModelError_TooManyVertices = 304, + VRRenderModelError_MultipleTextures = 305, + VRRenderModelError_BufferTooSmall = 306, + VRRenderModelError_NotEnoughNormals = 307, + VRRenderModelError_NotEnoughTexCoords = 308, + + VRRenderModelError_InvalidTexture = 400, +}; + +typedef uint32_t VRComponentProperties; + +enum EVRComponentProperty +{ + VRComponentProperty_IsStatic = (1 << 0), + VRComponentProperty_IsVisible = (1 << 1), + VRComponentProperty_IsTouched = (1 << 2), + VRComponentProperty_IsPressed = (1 << 3), + VRComponentProperty_IsScrolled = (1 << 4), +}; + +/** Describes state information about a render-model component, including transforms and other dynamic properties */ +struct RenderModel_ComponentState_t +{ + HmdMatrix34_t mTrackingToComponentRenderModel; // Transform required when drawing the component render model + HmdMatrix34_t mTrackingToComponentLocal; // Transform available for attaching to a local component coordinate system (-Z out from surface ) + VRComponentProperties uProperties; +}; + +/** A single vertex in a render model */ +struct RenderModel_Vertex_t +{ + HmdVector3_t vPosition; // position in meters in device space + HmdVector3_t vNormal; + float rfTextureCoord[2]; +}; + +/** A texture map for use on a render model */ +#if defined(__linux__) || defined(__APPLE__) +// This structure was originally defined mis-packed on Linux, preserved for +// compatibility. +#pragma pack( push, 4 ) +#endif + +struct RenderModel_TextureMap_t +{ + uint16_t unWidth, unHeight; // width and height of the texture map in pixels + const uint8_t *rubTextureMapData; // Map texture data. All textures are RGBA with 8 bits per channel per pixel. Data size is width * height * 4ub +}; +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( pop ) +#endif + +/** Session unique texture identifier. Rendermodels which share the same texture will have the same id. +IDs <0 denote the texture is not present */ + +typedef int32_t TextureID_t; + +const TextureID_t INVALID_TEXTURE_ID = -1; + +#if defined(__linux__) || defined(__APPLE__) +// This structure was originally defined mis-packed on Linux, preserved for +// compatibility. +#pragma pack( push, 4 ) +#endif + +struct RenderModel_t +{ + const RenderModel_Vertex_t *rVertexData; // Vertex data for the mesh + uint32_t unVertexCount; // Number of vertices in the vertex data + const uint16_t *rIndexData; // Indices into the vertex data for each triangle + uint32_t unTriangleCount; // Number of triangles in the mesh. Index count is 3 * TriangleCount + TextureID_t diffuseTextureId; // Session unique texture identifier. Rendermodels which share the same texture will have the same id. <0 == texture not present +}; +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( pop ) +#endif + + +struct RenderModel_ControllerMode_State_t +{ + bool bScrollWheelVisible; // is this controller currently set to be in a scroll wheel mode +}; + +#pragma pack( pop ) + +class IVRRenderModels +{ +public: + + /** Loads and returns a render model for use in the application. pchRenderModelName should be a render model name + * from the Prop_RenderModelName_String property or an absolute path name to a render model on disk. + * + * The resulting render model is valid until VR_Shutdown() is called or until FreeRenderModel() is called. When the + * application is finished with the render model it should call FreeRenderModel() to free the memory associated + * with the model. + * + * The method returns VRRenderModelError_Loading while the render model is still being loaded. + * The method returns VRRenderModelError_None once loaded successfully, otherwise will return an error. */ + virtual EVRRenderModelError LoadRenderModel_Async( const char *pchRenderModelName, RenderModel_t **ppRenderModel ) = 0; + + /** Frees a previously returned render model + * It is safe to call this on a null ptr. */ + virtual void FreeRenderModel( RenderModel_t *pRenderModel ) = 0; + + /** Loads and returns a texture for use in the application. */ + virtual EVRRenderModelError LoadTexture_Async( TextureID_t textureId, RenderModel_TextureMap_t **ppTexture ) = 0; + + /** Frees a previously returned texture + * It is safe to call this on a null ptr. */ + virtual void FreeTexture( RenderModel_TextureMap_t *pTexture ) = 0; + + /** Creates a D3D11 texture and loads data into it. */ + virtual EVRRenderModelError LoadTextureD3D11_Async( TextureID_t textureId, void *pD3D11Device, void **ppD3D11Texture2D ) = 0; + + /** Helper function to copy the bits into an existing texture. */ + virtual EVRRenderModelError LoadIntoTextureD3D11_Async( TextureID_t textureId, void *pDstTexture ) = 0; + + /** Use this to free textures created with LoadTextureD3D11_Async instead of calling Release on them. */ + virtual void FreeTextureD3D11( void *pD3D11Texture2D ) = 0; + + /** Use this to get the names of available render models. Index does not correlate to a tracked device index, but + * is only used for iterating over all available render models. If the index is out of range, this function will return 0. + * Otherwise, it will return the size of the buffer required for the name. */ + virtual uint32_t GetRenderModelName( uint32_t unRenderModelIndex, VR_OUT_STRING() char *pchRenderModelName, uint32_t unRenderModelNameLen ) = 0; + + /** Returns the number of available render models. */ + virtual uint32_t GetRenderModelCount() = 0; + + + /** Returns the number of components of the specified render model. + * Components are useful when client application wish to draw, label, or otherwise interact with components of tracked objects. + * Examples controller components: + * renderable things such as triggers, buttons + * non-renderable things which include coordinate systems such as 'tip', 'base', a neutral controller agnostic hand-pose + * If all controller components are enumerated and rendered, it will be equivalent to drawing the traditional render model + * Returns 0 if components not supported, >0 otherwise */ + virtual uint32_t GetComponentCount( const char *pchRenderModelName ) = 0; + + /** Use this to get the names of available components. Index does not correlate to a tracked device index, but + * is only used for iterating over all available components. If the index is out of range, this function will return 0. + * Otherwise, it will return the size of the buffer required for the name. */ + virtual uint32_t GetComponentName( const char *pchRenderModelName, uint32_t unComponentIndex, VR_OUT_STRING( ) char *pchComponentName, uint32_t unComponentNameLen ) = 0; + + /** Get the button mask for all buttons associated with this component + * If no buttons (or axes) are associated with this component, return 0 + * Note: multiple components may be associated with the same button. Ex: two grip buttons on a single controller. + * Note: A single component may be associated with multiple buttons. Ex: A trackpad which also provides "D-pad" functionality */ + virtual uint64_t GetComponentButtonMask( const char *pchRenderModelName, const char *pchComponentName ) = 0; + + /** Use this to get the render model name for the specified rendermode/component combination, to be passed to LoadRenderModel. + * If the component name is out of range, this function will return 0. + * Otherwise, it will return the size of the buffer required for the name. */ + virtual uint32_t GetComponentRenderModelName( const char *pchRenderModelName, const char *pchComponentName, VR_OUT_STRING( ) char *pchComponentRenderModelName, uint32_t unComponentRenderModelNameLen ) = 0; + + /** Use this to query information about the component, as a function of the controller state. + * + * For dynamic controller components (ex: trigger) values will reflect component motions + * For static components this will return a consistent value independent of the VRControllerState_t + * + * If the pchRenderModelName or pchComponentName is invalid, this will return false (and transforms will be set to identity). + * Otherwise, return true + * Note: For dynamic objects, visibility may be dynamic. (I.e., true/false will be returned based on controller state and controller mode state ) */ + virtual bool GetComponentState( const char *pchRenderModelName, const char *pchComponentName, const vr::VRControllerState_t *pControllerState, const RenderModel_ControllerMode_State_t *pState, RenderModel_ComponentState_t *pComponentState ) = 0; + + /** Returns true if the render model has a component with the specified name */ + virtual bool RenderModelHasComponent( const char *pchRenderModelName, const char *pchComponentName ) = 0; + + /** Returns the URL of the thumbnail image for this rendermodel */ + virtual uint32_t GetRenderModelThumbnailURL( const char *pchRenderModelName, VR_OUT_STRING() char *pchThumbnailURL, uint32_t unThumbnailURLLen, vr::EVRRenderModelError *peError ) = 0; + + /** Provides a render model path that will load the unskinned model if the model name provided has been replace by the user. If the model + * hasn't been replaced the path value will still be a valid path to load the model. Pass this to LoadRenderModel_Async, etc. to load the + * model. */ + virtual uint32_t GetRenderModelOriginalPath( const char *pchRenderModelName, VR_OUT_STRING() char *pchOriginalPath, uint32_t unOriginalPathLen, vr::EVRRenderModelError *peError ) = 0; + + /** Returns a string for a render model error */ + virtual const char *GetRenderModelErrorNameFromEnum( vr::EVRRenderModelError error ) = 0; +}; + +static const char * const IVRRenderModels_Version = "IVRRenderModels_005"; + +} + + +// ivrextendeddisplay.h +namespace vr +{ + + /** NOTE: Use of this interface is not recommended in production applications. It will not work for displays which use + * direct-to-display mode. Creating our own window is also incompatible with the VR compositor and is not available when the compositor is running. */ + class IVRExtendedDisplay + { + public: + + /** Size and position that the window needs to be on the VR display. */ + virtual void GetWindowBounds( int32_t *pnX, int32_t *pnY, uint32_t *pnWidth, uint32_t *pnHeight ) = 0; + + /** Gets the viewport in the frame buffer to draw the output of the distortion into */ + virtual void GetEyeOutputViewport( EVREye eEye, uint32_t *pnX, uint32_t *pnY, uint32_t *pnWidth, uint32_t *pnHeight ) = 0; + + /** [D3D10/11 Only] + * Returns the adapter index and output index that the user should pass into EnumAdapters and EnumOutputs + * to create the device and swap chain in DX10 and DX11. If an error occurs both indices will be set to -1. + */ + virtual void GetDXGIOutputInfo( int32_t *pnAdapterIndex, int32_t *pnAdapterOutputIndex ) = 0; + + }; + + static const char * const IVRExtendedDisplay_Version = "IVRExtendedDisplay_001"; + +} + + +// ivrtrackedcamera.h +namespace vr +{ + +class IVRTrackedCamera +{ +public: + /** Returns a string for an error */ + virtual const char *GetCameraErrorNameFromEnum( vr::EVRTrackedCameraError eCameraError ) = 0; + + /** For convenience, same as tracked property request Prop_HasCamera_Bool */ + virtual vr::EVRTrackedCameraError HasCamera( vr::TrackedDeviceIndex_t nDeviceIndex, bool *pHasCamera ) = 0; + + /** Gets size of the image frame. */ + virtual vr::EVRTrackedCameraError GetCameraFrameSize( vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, uint32_t *pnWidth, uint32_t *pnHeight, uint32_t *pnFrameBufferSize ) = 0; + + virtual vr::EVRTrackedCameraError GetCameraIntrinsics( vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, vr::HmdVector2_t *pFocalLength, vr::HmdVector2_t *pCenter ) = 0; + + virtual vr::EVRTrackedCameraError GetCameraProjection( vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, float flZNear, float flZFar, vr::HmdMatrix44_t *pProjection ) = 0; + + /** Acquiring streaming service permits video streaming for the caller. Releasing hints the system that video services do not need to be maintained for this client. + * If the camera has not already been activated, a one time spin up may incur some auto exposure as well as initial streaming frame delays. + * The camera should be considered a global resource accessible for shared consumption but not exclusive to any caller. + * The camera may go inactive due to lack of active consumers or headset idleness. */ + virtual vr::EVRTrackedCameraError AcquireVideoStreamingService( vr::TrackedDeviceIndex_t nDeviceIndex, vr::TrackedCameraHandle_t *pHandle ) = 0; + virtual vr::EVRTrackedCameraError ReleaseVideoStreamingService( vr::TrackedCameraHandle_t hTrackedCamera ) = 0; + + /** Copies the image frame into a caller's provided buffer. The image data is currently provided as RGBA data, 4 bytes per pixel. + * A caller can provide null for the framebuffer or frameheader if not desired. Requesting the frame header first, followed by the frame buffer allows + * the caller to determine if the frame as advanced per the frame header sequence. + * If there is no frame available yet, due to initial camera spinup or re-activation, the error will be VRTrackedCameraError_NoFrameAvailable. + * Ideally a caller should be polling at ~16ms intervals */ + virtual vr::EVRTrackedCameraError GetVideoStreamFrameBuffer( vr::TrackedCameraHandle_t hTrackedCamera, vr::EVRTrackedCameraFrameType eFrameType, void *pFrameBuffer, uint32_t nFrameBufferSize, vr::CameraVideoStreamFrameHeader_t *pFrameHeader, uint32_t nFrameHeaderSize ) = 0; + + /** Gets size of the image frame. */ + virtual vr::EVRTrackedCameraError GetVideoStreamTextureSize( vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, vr::VRTextureBounds_t *pTextureBounds, uint32_t *pnWidth, uint32_t *pnHeight ) = 0; + + /** Access a shared D3D11 texture for the specified tracked camera stream. + * The camera frame type VRTrackedCameraFrameType_Undistorted is not supported directly as a shared texture. It is an interior subregion of the shared texture VRTrackedCameraFrameType_MaximumUndistorted. + * Instead, use GetVideoStreamTextureSize() with VRTrackedCameraFrameType_Undistorted to determine the proper interior subregion bounds along with GetVideoStreamTextureD3D11() with + * VRTrackedCameraFrameType_MaximumUndistorted to provide the texture. The VRTrackedCameraFrameType_MaximumUndistorted will yield an image where the invalid regions are decoded + * by the alpha channel having a zero component. The valid regions all have a non-zero alpha component. The subregion as described by VRTrackedCameraFrameType_Undistorted + * guarantees a rectangle where all pixels are valid. */ + virtual vr::EVRTrackedCameraError GetVideoStreamTextureD3D11( vr::TrackedCameraHandle_t hTrackedCamera, vr::EVRTrackedCameraFrameType eFrameType, void *pD3D11DeviceOrResource, void **ppD3D11ShaderResourceView, vr::CameraVideoStreamFrameHeader_t *pFrameHeader, uint32_t nFrameHeaderSize ) = 0; + + /** Access a shared GL texture for the specified tracked camera stream */ + virtual vr::EVRTrackedCameraError GetVideoStreamTextureGL( vr::TrackedCameraHandle_t hTrackedCamera, vr::EVRTrackedCameraFrameType eFrameType, vr::glUInt_t *pglTextureId, vr::CameraVideoStreamFrameHeader_t *pFrameHeader, uint32_t nFrameHeaderSize ) = 0; + virtual vr::EVRTrackedCameraError ReleaseVideoStreamTextureGL( vr::TrackedCameraHandle_t hTrackedCamera, vr::glUInt_t glTextureId ) = 0; +}; + +static const char * const IVRTrackedCamera_Version = "IVRTrackedCamera_003"; + +} // namespace vr + + +// ivrscreenshots.h +namespace vr +{ + +/** Errors that can occur with the VR compositor */ +enum EVRScreenshotError +{ + VRScreenshotError_None = 0, + VRScreenshotError_RequestFailed = 1, + VRScreenshotError_IncompatibleVersion = 100, + VRScreenshotError_NotFound = 101, + VRScreenshotError_BufferTooSmall = 102, + VRScreenshotError_ScreenshotAlreadyInProgress = 108, +}; + +/** Allows the application to generate screenshots */ +class IVRScreenshots +{ +public: + /** Request a screenshot of the requested type. + * A request of the VRScreenshotType_Stereo type will always + * work. Other types will depend on the underlying application + * support. + * The first file name is for the preview image and should be a + * regular screenshot (ideally from the left eye). The second + * is the VR screenshot in the correct format. They should be + * in the same aspect ratio. Formats per type: + * VRScreenshotType_Mono: the VR filename is ignored (can be + * nullptr), this is a normal flat single shot. + * VRScreenshotType_Stereo: The VR image should be a + * side-by-side with the left eye image on the left. + * VRScreenshotType_Cubemap: The VR image should be six square + * images composited horizontally. + * VRScreenshotType_StereoPanorama: above/below with left eye + * panorama being the above image. Image is typically square + * with the panorama being 2x horizontal. + * + * Note that the VR dashboard will call this function when + * the user presses the screenshot binding (currently System + * Button + Trigger). If Steam is running, the destination + * file names will be in %TEMP% and will be copied into + * Steam's screenshot library for the running application + * once SubmitScreenshot() is called. + * If Steam is not running, the paths will be in the user's + * documents folder under Documents\SteamVR\Screenshots. + * Other VR applications can call this to initiate a + * screenshot outside of user control. + * The destination file names do not need an extension, + * will be replaced with the correct one for the format + * which is currently .png. */ + virtual vr::EVRScreenshotError RequestScreenshot( vr::ScreenshotHandle_t *pOutScreenshotHandle, vr::EVRScreenshotType type, const char *pchPreviewFilename, const char *pchVRFilename ) = 0; + + /** Called by the running VR application to indicate that it + * wishes to be in charge of screenshots. If the + * application does not call this, the Compositor will only + * support VRScreenshotType_Stereo screenshots that will be + * captured without notification to the running app. + * Once hooked your application will receive a + * VREvent_RequestScreenshot event when the user presses the + * buttons to take a screenshot. */ + virtual vr::EVRScreenshotError HookScreenshot( VR_ARRAY_COUNT( numTypes ) const vr::EVRScreenshotType *pSupportedTypes, int numTypes ) = 0; + + /** When your application receives a + * VREvent_RequestScreenshot event, call these functions to get + * the details of the screenshot request. */ + virtual vr::EVRScreenshotType GetScreenshotPropertyType( vr::ScreenshotHandle_t screenshotHandle, vr::EVRScreenshotError *pError ) = 0; + + /** Get the filename for the preview or vr image (see + * vr::EScreenshotPropertyFilenames). The return value is + * the size of the string. */ + virtual uint32_t GetScreenshotPropertyFilename( vr::ScreenshotHandle_t screenshotHandle, vr::EVRScreenshotPropertyFilenames filenameType, VR_OUT_STRING() char *pchFilename, uint32_t cchFilename, vr::EVRScreenshotError *pError ) = 0; + + /** Call this if the application is taking the screen shot + * will take more than a few ms processing. This will result + * in an overlay being presented that shows a completion + * bar. */ + virtual vr::EVRScreenshotError UpdateScreenshotProgress( vr::ScreenshotHandle_t screenshotHandle, float flProgress ) = 0; + + /** Tells the compositor to take an internal screenshot of + * type VRScreenshotType_Stereo. It will take the current + * submitted scene textures of the running application and + * write them into the preview image and a side-by-side file + * for the VR image. + * This is similar to request screenshot, but doesn't ever + * talk to the application, just takes the shot and submits. */ + virtual vr::EVRScreenshotError TakeStereoScreenshot( vr::ScreenshotHandle_t *pOutScreenshotHandle, const char *pchPreviewFilename, const char *pchVRFilename ) = 0; + + /** Submit the completed screenshot. If Steam is running + * this will call into the Steam client and upload the + * screenshot to the screenshots section of the library for + * the running application. If Steam is not running, this + * function will display a notification to the user that the + * screenshot was taken. The paths should be full paths with + * extensions. + * File paths should be absolute including extensions. + * screenshotHandle can be k_unScreenshotHandleInvalid if this + * was a new shot taking by the app to be saved and not + * initiated by a user (achievement earned or something) */ + virtual vr::EVRScreenshotError SubmitScreenshot( vr::ScreenshotHandle_t screenshotHandle, vr::EVRScreenshotType type, const char *pchSourcePreviewFilename, const char *pchSourceVRFilename ) = 0; +}; + +static const char * const IVRScreenshots_Version = "IVRScreenshots_001"; + +} // namespace vr + + + +// ivrresources.h +namespace vr +{ + +class IVRResources +{ +public: + + // ------------------------------------ + // Shared Resource Methods + // ------------------------------------ + + /** Loads the specified resource into the provided buffer if large enough. + * Returns the size in bytes of the buffer required to hold the specified resource. */ + virtual uint32_t LoadSharedResource( const char *pchResourceName, char *pchBuffer, uint32_t unBufferLen ) = 0; + + /** Provides the full path to the specified resource. Resource names can include named directories for + * drivers and other things, and this resolves all of those and returns the actual physical path. + * pchResourceTypeDirectory is the subdirectory of resources to look in. */ + virtual uint32_t GetResourceFullPath( const char *pchResourceName, const char *pchResourceTypeDirectory, char *pchPathBuffer, uint32_t unBufferLen ) = 0; +}; + +static const char * const IVRResources_Version = "IVRResources_001"; + + +} +// ivrdrivermanager.h +namespace vr +{ + +class IVRDriverManager +{ +public: + virtual uint32_t GetDriverCount() const = 0; + + /** Returns the length of the number of bytes necessary to hold this string including the trailing null. */ + virtual uint32_t GetDriverName( vr::DriverId_t nDriver, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize ) = 0; +}; + +static const char * const IVRDriverManager_Version = "IVRDriverManager_001"; + +} // namespace vr + + +// End + +#endif // _OPENVR_API + + +namespace vr +{ + /** Finds the active installation of the VR API and initializes it. The provided path must be absolute + * or relative to the current working directory. These are the local install versions of the equivalent + * functions in steamvr.h and will work without a local Steam install. + * + * This path is to the "root" of the VR API install. That's the directory with + * the "drivers" directory and a platform (i.e. "win32") directory in it, not the directory with the DLL itself. + */ + inline IVRSystem *VR_Init( EVRInitError *peError, EVRApplicationType eApplicationType ); + + /** unloads vrclient.dll. Any interface pointers from the interface are + * invalid after this point */ + inline void VR_Shutdown(); + + /** Returns true if there is an HMD attached. This check is as lightweight as possible and + * can be called outside of VR_Init/VR_Shutdown. It should be used when an application wants + * to know if initializing VR is a possibility but isn't ready to take that step yet. + */ + VR_INTERFACE bool VR_CALLTYPE VR_IsHmdPresent(); + + /** Returns true if the OpenVR runtime is installed. */ + VR_INTERFACE bool VR_CALLTYPE VR_IsRuntimeInstalled(); + + /** Returns where the OpenVR runtime is installed. */ + VR_INTERFACE const char *VR_CALLTYPE VR_RuntimePath(); + + /** Returns the name of the enum value for an EVRInitError. This function may be called outside of VR_Init()/VR_Shutdown(). */ + VR_INTERFACE const char *VR_CALLTYPE VR_GetVRInitErrorAsSymbol( EVRInitError error ); + + /** Returns an English string for an EVRInitError. Applications should call VR_GetVRInitErrorAsSymbol instead and + * use that as a key to look up their own localized error message. This function may be called outside of VR_Init()/VR_Shutdown(). */ + VR_INTERFACE const char *VR_CALLTYPE VR_GetVRInitErrorAsEnglishDescription( EVRInitError error ); + + /** Returns the interface of the specified version. This method must be called after VR_Init. The + * pointer returned is valid until VR_Shutdown is called. + */ + VR_INTERFACE void *VR_CALLTYPE VR_GetGenericInterface( const char *pchInterfaceVersion, EVRInitError *peError ); + + /** Returns whether the interface of the specified version exists. + */ + VR_INTERFACE bool VR_CALLTYPE VR_IsInterfaceVersionValid( const char *pchInterfaceVersion ); + + /** Returns a token that represents whether the VR interface handles need to be reloaded */ + VR_INTERFACE uint32_t VR_CALLTYPE VR_GetInitToken(); + + // These typedefs allow old enum names from SDK 0.9.11 to be used in applications. + // They will go away in the future. + typedef EVRInitError HmdError; + typedef EVREye Hmd_Eye; + typedef EColorSpace ColorSpace; + typedef ETrackingResult HmdTrackingResult; + typedef ETrackedDeviceClass TrackedDeviceClass; + typedef ETrackingUniverseOrigin TrackingUniverseOrigin; + typedef ETrackedDeviceProperty TrackedDeviceProperty; + typedef ETrackedPropertyError TrackedPropertyError; + typedef EVRSubmitFlags VRSubmitFlags_t; + typedef EVRState VRState_t; + typedef ECollisionBoundsStyle CollisionBoundsStyle_t; + typedef EVROverlayError VROverlayError; + typedef EVRFirmwareError VRFirmwareError; + typedef EVRCompositorError VRCompositorError; + typedef EVRScreenshotError VRScreenshotsError; + + inline uint32_t &VRToken() + { + static uint32_t token; + return token; + } + + class COpenVRContext + { + public: + COpenVRContext() { Clear(); } + void Clear(); + + inline void CheckClear() + { + if ( VRToken() != VR_GetInitToken() ) + { + Clear(); + VRToken() = VR_GetInitToken(); + } + } + + IVRSystem *VRSystem() + { + CheckClear(); + if ( m_pVRSystem == nullptr ) + { + EVRInitError eError; + m_pVRSystem = ( IVRSystem * )VR_GetGenericInterface( IVRSystem_Version, &eError ); + } + return m_pVRSystem; + } + IVRChaperone *VRChaperone() + { + CheckClear(); + if ( m_pVRChaperone == nullptr ) + { + EVRInitError eError; + m_pVRChaperone = ( IVRChaperone * )VR_GetGenericInterface( IVRChaperone_Version, &eError ); + } + return m_pVRChaperone; + } + + IVRChaperoneSetup *VRChaperoneSetup() + { + CheckClear(); + if ( m_pVRChaperoneSetup == nullptr ) + { + EVRInitError eError; + m_pVRChaperoneSetup = ( IVRChaperoneSetup * )VR_GetGenericInterface( IVRChaperoneSetup_Version, &eError ); + } + return m_pVRChaperoneSetup; + } + + IVRCompositor *VRCompositor() + { + CheckClear(); + if ( m_pVRCompositor == nullptr ) + { + EVRInitError eError; + m_pVRCompositor = ( IVRCompositor * )VR_GetGenericInterface( IVRCompositor_Version, &eError ); + } + return m_pVRCompositor; + } + + IVROverlay *VROverlay() + { + CheckClear(); + if ( m_pVROverlay == nullptr ) + { + EVRInitError eError; + m_pVROverlay = ( IVROverlay * )VR_GetGenericInterface( IVROverlay_Version, &eError ); + } + return m_pVROverlay; + } + + IVRResources *VRResources() + { + CheckClear(); + if ( m_pVRResources == nullptr ) + { + EVRInitError eError; + m_pVRResources = (IVRResources *)VR_GetGenericInterface( IVRResources_Version, &eError ); + } + return m_pVRResources; + } + + IVRScreenshots *VRScreenshots() + { + CheckClear(); + if ( m_pVRScreenshots == nullptr ) + { + EVRInitError eError; + m_pVRScreenshots = ( IVRScreenshots * )VR_GetGenericInterface( IVRScreenshots_Version, &eError ); + } + return m_pVRScreenshots; + } + + IVRRenderModels *VRRenderModels() + { + CheckClear(); + if ( m_pVRRenderModels == nullptr ) + { + EVRInitError eError; + m_pVRRenderModels = ( IVRRenderModels * )VR_GetGenericInterface( IVRRenderModels_Version, &eError ); + } + return m_pVRRenderModels; + } + + IVRExtendedDisplay *VRExtendedDisplay() + { + CheckClear(); + if ( m_pVRExtendedDisplay == nullptr ) + { + EVRInitError eError; + m_pVRExtendedDisplay = ( IVRExtendedDisplay * )VR_GetGenericInterface( IVRExtendedDisplay_Version, &eError ); + } + return m_pVRExtendedDisplay; + } + + IVRSettings *VRSettings() + { + CheckClear(); + if ( m_pVRSettings == nullptr ) + { + EVRInitError eError; + m_pVRSettings = ( IVRSettings * )VR_GetGenericInterface( IVRSettings_Version, &eError ); + } + return m_pVRSettings; + } + + IVRApplications *VRApplications() + { + CheckClear(); + if ( m_pVRApplications == nullptr ) + { + EVRInitError eError; + m_pVRApplications = ( IVRApplications * )VR_GetGenericInterface( IVRApplications_Version, &eError ); + } + return m_pVRApplications; + } + + IVRTrackedCamera *VRTrackedCamera() + { + CheckClear(); + if ( m_pVRTrackedCamera == nullptr ) + { + EVRInitError eError; + m_pVRTrackedCamera = ( IVRTrackedCamera * )VR_GetGenericInterface( IVRTrackedCamera_Version, &eError ); + } + return m_pVRTrackedCamera; + } + + IVRDriverManager *VRDriverManager() + { + CheckClear(); + if ( !m_pVRDriverManager ) + { + EVRInitError eError; + m_pVRDriverManager = ( IVRDriverManager * )VR_GetGenericInterface( IVRDriverManager_Version, &eError ); + } + return m_pVRDriverManager; + } + + private: + IVRSystem *m_pVRSystem; + IVRChaperone *m_pVRChaperone; + IVRChaperoneSetup *m_pVRChaperoneSetup; + IVRCompositor *m_pVRCompositor; + IVROverlay *m_pVROverlay; + IVRResources *m_pVRResources; + IVRRenderModels *m_pVRRenderModels; + IVRExtendedDisplay *m_pVRExtendedDisplay; + IVRSettings *m_pVRSettings; + IVRApplications *m_pVRApplications; + IVRTrackedCamera *m_pVRTrackedCamera; + IVRScreenshots *m_pVRScreenshots; + IVRDriverManager *m_pVRDriverManager; + }; + + inline COpenVRContext &OpenVRInternal_ModuleContext() + { + static void *ctx[ sizeof( COpenVRContext ) / sizeof( void * ) ]; + return *( COpenVRContext * )ctx; // bypass zero-init constructor + } + + inline IVRSystem *VR_CALLTYPE VRSystem() { return OpenVRInternal_ModuleContext().VRSystem(); } + inline IVRChaperone *VR_CALLTYPE VRChaperone() { return OpenVRInternal_ModuleContext().VRChaperone(); } + inline IVRChaperoneSetup *VR_CALLTYPE VRChaperoneSetup() { return OpenVRInternal_ModuleContext().VRChaperoneSetup(); } + inline IVRCompositor *VR_CALLTYPE VRCompositor() { return OpenVRInternal_ModuleContext().VRCompositor(); } + inline IVROverlay *VR_CALLTYPE VROverlay() { return OpenVRInternal_ModuleContext().VROverlay(); } + inline IVRScreenshots *VR_CALLTYPE VRScreenshots() { return OpenVRInternal_ModuleContext().VRScreenshots(); } + inline IVRRenderModels *VR_CALLTYPE VRRenderModels() { return OpenVRInternal_ModuleContext().VRRenderModels(); } + inline IVRApplications *VR_CALLTYPE VRApplications() { return OpenVRInternal_ModuleContext().VRApplications(); } + inline IVRSettings *VR_CALLTYPE VRSettings() { return OpenVRInternal_ModuleContext().VRSettings(); } + inline IVRResources *VR_CALLTYPE VRResources() { return OpenVRInternal_ModuleContext().VRResources(); } + inline IVRExtendedDisplay *VR_CALLTYPE VRExtendedDisplay() { return OpenVRInternal_ModuleContext().VRExtendedDisplay(); } + inline IVRTrackedCamera *VR_CALLTYPE VRTrackedCamera() { return OpenVRInternal_ModuleContext().VRTrackedCamera(); } + inline IVRDriverManager *VR_CALLTYPE VRDriverManager() { return OpenVRInternal_ModuleContext().VRDriverManager(); } + + inline void COpenVRContext::Clear() + { + m_pVRSystem = nullptr; + m_pVRChaperone = nullptr; + m_pVRChaperoneSetup = nullptr; + m_pVRCompositor = nullptr; + m_pVROverlay = nullptr; + m_pVRRenderModels = nullptr; + m_pVRExtendedDisplay = nullptr; + m_pVRSettings = nullptr; + m_pVRApplications = nullptr; + m_pVRTrackedCamera = nullptr; + m_pVRResources = nullptr; + m_pVRScreenshots = nullptr; + m_pVRDriverManager = nullptr; + } + + VR_INTERFACE uint32_t VR_CALLTYPE VR_InitInternal( EVRInitError *peError, EVRApplicationType eApplicationType ); + VR_INTERFACE void VR_CALLTYPE VR_ShutdownInternal(); + + /** Finds the active installation of vrclient.dll and initializes it */ + inline IVRSystem *VR_Init( EVRInitError *peError, EVRApplicationType eApplicationType ) + { + IVRSystem *pVRSystem = nullptr; + + EVRInitError eError; + VRToken() = VR_InitInternal( &eError, eApplicationType ); + COpenVRContext &ctx = OpenVRInternal_ModuleContext(); + ctx.Clear(); + + if ( eError == VRInitError_None ) + { + if ( VR_IsInterfaceVersionValid( IVRSystem_Version ) ) + { + pVRSystem = VRSystem(); + } + else + { + VR_ShutdownInternal(); + eError = VRInitError_Init_InterfaceNotFound; + } + } + + if ( peError ) + *peError = eError; + return pVRSystem; + } + + /** unloads vrclient.dll. Any interface pointers from the interface are + * invalid after this point */ + inline void VR_Shutdown() + { + VR_ShutdownInternal(); + } +} diff --git a/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Headers/openvr_api.cs b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Headers/openvr_api.cs new file mode 100644 index 000000000..2596b3783 --- /dev/null +++ b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Headers/openvr_api.cs @@ -0,0 +1,4997 @@ +//======= Copyright (c) Valve Corporation, All rights reserved. =============== +// +// Purpose: This file contains C#/managed code bindings for the OpenVR interfaces +// This file is auto-generated, do not edit it. +// +//============================================================================= + +using System; +using System.Runtime.InteropServices; +using Valve.VR; + +namespace Valve.VR +{ + +[StructLayout(LayoutKind.Sequential)] +public struct IVRSystem +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetRecommendedRenderTargetSize(ref uint pnWidth, ref uint pnHeight); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetRecommendedRenderTargetSize GetRecommendedRenderTargetSize; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate HmdMatrix44_t _GetProjectionMatrix(EVREye eEye, float fNearZ, float fFarZ); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetProjectionMatrix GetProjectionMatrix; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetProjectionRaw(EVREye eEye, ref float pfLeft, ref float pfRight, ref float pfTop, ref float pfBottom); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetProjectionRaw GetProjectionRaw; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _ComputeDistortion(EVREye eEye, float fU, float fV, ref DistortionCoordinates_t pDistortionCoordinates); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ComputeDistortion ComputeDistortion; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate HmdMatrix34_t _GetEyeToHeadTransform(EVREye eEye); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetEyeToHeadTransform GetEyeToHeadTransform; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetTimeSinceLastVsync(ref float pfSecondsSinceLastVsync, ref ulong pulFrameCounter); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetTimeSinceLastVsync GetTimeSinceLastVsync; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate int _GetD3D9AdapterIndex(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetD3D9AdapterIndex GetD3D9AdapterIndex; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetDXGIOutputInfo(ref int pnAdapterIndex); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetDXGIOutputInfo GetDXGIOutputInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetOutputDevice(ref ulong pnDevice, ETextureType textureType); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOutputDevice GetOutputDevice; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsDisplayOnDesktop(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsDisplayOnDesktop IsDisplayOnDesktop; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _SetDisplayVisibility(bool bIsVisibleOnDesktop); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetDisplayVisibility SetDisplayVisibility; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetDeviceToAbsoluteTrackingPose(ETrackingUniverseOrigin eOrigin, float fPredictedSecondsToPhotonsFromNow, [In, Out] TrackedDevicePose_t[] pTrackedDevicePoseArray, uint unTrackedDevicePoseArrayCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetDeviceToAbsoluteTrackingPose GetDeviceToAbsoluteTrackingPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ResetSeatedZeroPose(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ResetSeatedZeroPose ResetSeatedZeroPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate HmdMatrix34_t _GetSeatedZeroPoseToStandingAbsoluteTrackingPose(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetSeatedZeroPoseToStandingAbsoluteTrackingPose GetSeatedZeroPoseToStandingAbsoluteTrackingPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate HmdMatrix34_t _GetRawZeroPoseToStandingAbsoluteTrackingPose(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetRawZeroPoseToStandingAbsoluteTrackingPose GetRawZeroPoseToStandingAbsoluteTrackingPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetSortedTrackedDeviceIndicesOfClass(ETrackedDeviceClass eTrackedDeviceClass, [In, Out] uint[] punTrackedDeviceIndexArray, uint unTrackedDeviceIndexArrayCount, uint unRelativeToTrackedDeviceIndex); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetSortedTrackedDeviceIndicesOfClass GetSortedTrackedDeviceIndicesOfClass; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EDeviceActivityLevel _GetTrackedDeviceActivityLevel(uint unDeviceId); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetTrackedDeviceActivityLevel GetTrackedDeviceActivityLevel; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ApplyTransform(ref TrackedDevicePose_t pOutputPose, ref TrackedDevicePose_t pTrackedDevicePose, ref HmdMatrix34_t pTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ApplyTransform ApplyTransform; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetTrackedDeviceIndexForControllerRole(ETrackedControllerRole unDeviceType); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetTrackedDeviceIndexForControllerRole GetTrackedDeviceIndexForControllerRole; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ETrackedControllerRole _GetControllerRoleForTrackedDeviceIndex(uint unDeviceIndex); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetControllerRoleForTrackedDeviceIndex GetControllerRoleForTrackedDeviceIndex; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ETrackedDeviceClass _GetTrackedDeviceClass(uint unDeviceIndex); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetTrackedDeviceClass GetTrackedDeviceClass; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsTrackedDeviceConnected(uint unDeviceIndex); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsTrackedDeviceConnected IsTrackedDeviceConnected; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetBoolTrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, ref ETrackedPropertyError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetBoolTrackedDeviceProperty GetBoolTrackedDeviceProperty; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate float _GetFloatTrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, ref ETrackedPropertyError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetFloatTrackedDeviceProperty GetFloatTrackedDeviceProperty; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate int _GetInt32TrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, ref ETrackedPropertyError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetInt32TrackedDeviceProperty GetInt32TrackedDeviceProperty; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ulong _GetUint64TrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, ref ETrackedPropertyError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetUint64TrackedDeviceProperty GetUint64TrackedDeviceProperty; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate HmdMatrix34_t _GetMatrix34TrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, ref ETrackedPropertyError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetMatrix34TrackedDeviceProperty GetMatrix34TrackedDeviceProperty; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetStringTrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, System.Text.StringBuilder pchValue, uint unBufferSize, ref ETrackedPropertyError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetStringTrackedDeviceProperty GetStringTrackedDeviceProperty; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetPropErrorNameFromEnum(ETrackedPropertyError error); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetPropErrorNameFromEnum GetPropErrorNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _PollNextEvent(ref VREvent_t pEvent, uint uncbVREvent); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _PollNextEvent PollNextEvent; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _PollNextEventWithPose(ETrackingUniverseOrigin eOrigin, ref VREvent_t pEvent, uint uncbVREvent, ref TrackedDevicePose_t pTrackedDevicePose); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _PollNextEventWithPose PollNextEventWithPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetEventTypeNameFromEnum(EVREventType eType); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetEventTypeNameFromEnum GetEventTypeNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate HiddenAreaMesh_t _GetHiddenAreaMesh(EVREye eEye, EHiddenAreaMeshType type); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetHiddenAreaMesh GetHiddenAreaMesh; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetControllerState(uint unControllerDeviceIndex, ref VRControllerState_t pControllerState, uint unControllerStateSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetControllerState GetControllerState; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetControllerStateWithPose(ETrackingUniverseOrigin eOrigin, uint unControllerDeviceIndex, ref VRControllerState_t pControllerState, uint unControllerStateSize, ref TrackedDevicePose_t pTrackedDevicePose); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetControllerStateWithPose GetControllerStateWithPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _TriggerHapticPulse(uint unControllerDeviceIndex, uint unAxisId, char usDurationMicroSec); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _TriggerHapticPulse TriggerHapticPulse; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetButtonIdNameFromEnum(EVRButtonId eButtonId); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetButtonIdNameFromEnum GetButtonIdNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetControllerAxisTypeNameFromEnum(EVRControllerAxisType eAxisType); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetControllerAxisTypeNameFromEnum GetControllerAxisTypeNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _CaptureInputFocus(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CaptureInputFocus CaptureInputFocus; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ReleaseInputFocus(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ReleaseInputFocus ReleaseInputFocus; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsInputFocusCapturedByAnotherProcess(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsInputFocusCapturedByAnotherProcess IsInputFocusCapturedByAnotherProcess; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _DriverDebugRequest(uint unDeviceIndex, string pchRequest, string pchResponseBuffer, uint unResponseBufferSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _DriverDebugRequest DriverDebugRequest; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRFirmwareError _PerformFirmwareUpdate(uint unDeviceIndex); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _PerformFirmwareUpdate PerformFirmwareUpdate; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _AcknowledgeQuit_Exiting(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _AcknowledgeQuit_Exiting AcknowledgeQuit_Exiting; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _AcknowledgeQuit_UserPrompt(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _AcknowledgeQuit_UserPrompt AcknowledgeQuit_UserPrompt; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRExtendedDisplay +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetWindowBounds(ref int pnX, ref int pnY, ref uint pnWidth, ref uint pnHeight); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetWindowBounds GetWindowBounds; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetEyeOutputViewport(EVREye eEye, ref uint pnX, ref uint pnY, ref uint pnWidth, ref uint pnHeight); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetEyeOutputViewport GetEyeOutputViewport; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetDXGIOutputInfo(ref int pnAdapterIndex, ref int pnAdapterOutputIndex); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetDXGIOutputInfo GetDXGIOutputInfo; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRTrackedCamera +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetCameraErrorNameFromEnum(EVRTrackedCameraError eCameraError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCameraErrorNameFromEnum GetCameraErrorNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _HasCamera(uint nDeviceIndex, ref bool pHasCamera); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _HasCamera HasCamera; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _GetCameraFrameSize(uint nDeviceIndex, EVRTrackedCameraFrameType eFrameType, ref uint pnWidth, ref uint pnHeight, ref uint pnFrameBufferSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCameraFrameSize GetCameraFrameSize; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _GetCameraIntrinsics(uint nDeviceIndex, EVRTrackedCameraFrameType eFrameType, ref HmdVector2_t pFocalLength, ref HmdVector2_t pCenter); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCameraIntrinsics GetCameraIntrinsics; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _GetCameraProjection(uint nDeviceIndex, EVRTrackedCameraFrameType eFrameType, float flZNear, float flZFar, ref HmdMatrix44_t pProjection); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCameraProjection GetCameraProjection; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _AcquireVideoStreamingService(uint nDeviceIndex, ref ulong pHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _AcquireVideoStreamingService AcquireVideoStreamingService; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _ReleaseVideoStreamingService(ulong hTrackedCamera); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ReleaseVideoStreamingService ReleaseVideoStreamingService; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _GetVideoStreamFrameBuffer(ulong hTrackedCamera, EVRTrackedCameraFrameType eFrameType, IntPtr pFrameBuffer, uint nFrameBufferSize, ref CameraVideoStreamFrameHeader_t pFrameHeader, uint nFrameHeaderSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetVideoStreamFrameBuffer GetVideoStreamFrameBuffer; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _GetVideoStreamTextureSize(uint nDeviceIndex, EVRTrackedCameraFrameType eFrameType, ref VRTextureBounds_t pTextureBounds, ref uint pnWidth, ref uint pnHeight); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetVideoStreamTextureSize GetVideoStreamTextureSize; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _GetVideoStreamTextureD3D11(ulong hTrackedCamera, EVRTrackedCameraFrameType eFrameType, IntPtr pD3D11DeviceOrResource, ref IntPtr ppD3D11ShaderResourceView, ref CameraVideoStreamFrameHeader_t pFrameHeader, uint nFrameHeaderSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetVideoStreamTextureD3D11 GetVideoStreamTextureD3D11; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _GetVideoStreamTextureGL(ulong hTrackedCamera, EVRTrackedCameraFrameType eFrameType, ref uint pglTextureId, ref CameraVideoStreamFrameHeader_t pFrameHeader, uint nFrameHeaderSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetVideoStreamTextureGL GetVideoStreamTextureGL; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _ReleaseVideoStreamTextureGL(ulong hTrackedCamera, uint glTextureId); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ReleaseVideoStreamTextureGL ReleaseVideoStreamTextureGL; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRApplications +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _AddApplicationManifest(string pchApplicationManifestFullPath, bool bTemporary); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _AddApplicationManifest AddApplicationManifest; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _RemoveApplicationManifest(string pchApplicationManifestFullPath); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _RemoveApplicationManifest RemoveApplicationManifest; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsApplicationInstalled(string pchAppKey); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsApplicationInstalled IsApplicationInstalled; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetApplicationCount(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationCount GetApplicationCount; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _GetApplicationKeyByIndex(uint unApplicationIndex, System.Text.StringBuilder pchAppKeyBuffer, uint unAppKeyBufferLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationKeyByIndex GetApplicationKeyByIndex; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _GetApplicationKeyByProcessId(uint unProcessId, string pchAppKeyBuffer, uint unAppKeyBufferLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationKeyByProcessId GetApplicationKeyByProcessId; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _LaunchApplication(string pchAppKey); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LaunchApplication LaunchApplication; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _LaunchTemplateApplication(string pchTemplateAppKey, string pchNewAppKey, [In, Out] AppOverrideKeys_t[] pKeys, uint unKeys); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LaunchTemplateApplication LaunchTemplateApplication; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _LaunchApplicationFromMimeType(string pchMimeType, string pchArgs); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LaunchApplicationFromMimeType LaunchApplicationFromMimeType; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _LaunchDashboardOverlay(string pchAppKey); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LaunchDashboardOverlay LaunchDashboardOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _CancelApplicationLaunch(string pchAppKey); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CancelApplicationLaunch CancelApplicationLaunch; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _IdentifyApplication(uint unProcessId, string pchAppKey); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IdentifyApplication IdentifyApplication; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetApplicationProcessId(string pchAppKey); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationProcessId GetApplicationProcessId; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetApplicationsErrorNameFromEnum(EVRApplicationError error); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationsErrorNameFromEnum GetApplicationsErrorNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetApplicationPropertyString(string pchAppKey, EVRApplicationProperty eProperty, System.Text.StringBuilder pchPropertyValueBuffer, uint unPropertyValueBufferLen, ref EVRApplicationError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationPropertyString GetApplicationPropertyString; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetApplicationPropertyBool(string pchAppKey, EVRApplicationProperty eProperty, ref EVRApplicationError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationPropertyBool GetApplicationPropertyBool; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ulong _GetApplicationPropertyUint64(string pchAppKey, EVRApplicationProperty eProperty, ref EVRApplicationError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationPropertyUint64 GetApplicationPropertyUint64; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _SetApplicationAutoLaunch(string pchAppKey, bool bAutoLaunch); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetApplicationAutoLaunch SetApplicationAutoLaunch; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetApplicationAutoLaunch(string pchAppKey); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationAutoLaunch GetApplicationAutoLaunch; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _SetDefaultApplicationForMimeType(string pchAppKey, string pchMimeType); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetDefaultApplicationForMimeType SetDefaultApplicationForMimeType; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetDefaultApplicationForMimeType(string pchMimeType, string pchAppKeyBuffer, uint unAppKeyBufferLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetDefaultApplicationForMimeType GetDefaultApplicationForMimeType; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetApplicationSupportedMimeTypes(string pchAppKey, string pchMimeTypesBuffer, uint unMimeTypesBuffer); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationSupportedMimeTypes GetApplicationSupportedMimeTypes; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetApplicationsThatSupportMimeType(string pchMimeType, string pchAppKeysThatSupportBuffer, uint unAppKeysThatSupportBuffer); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationsThatSupportMimeType GetApplicationsThatSupportMimeType; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetApplicationLaunchArguments(uint unHandle, string pchArgs, uint unArgs); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationLaunchArguments GetApplicationLaunchArguments; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _GetStartingApplication(string pchAppKeyBuffer, uint unAppKeyBufferLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetStartingApplication GetStartingApplication; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationTransitionState _GetTransitionState(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetTransitionState GetTransitionState; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _PerformApplicationPrelaunchCheck(string pchAppKey); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _PerformApplicationPrelaunchCheck PerformApplicationPrelaunchCheck; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetApplicationsTransitionStateNameFromEnum(EVRApplicationTransitionState state); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationsTransitionStateNameFromEnum GetApplicationsTransitionStateNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsQuitUserPromptRequested(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsQuitUserPromptRequested IsQuitUserPromptRequested; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _LaunchInternalProcess(string pchBinaryPath, string pchArguments, string pchWorkingDirectory); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LaunchInternalProcess LaunchInternalProcess; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetCurrentSceneProcessId(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCurrentSceneProcessId GetCurrentSceneProcessId; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRChaperone +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ChaperoneCalibrationState _GetCalibrationState(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCalibrationState GetCalibrationState; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetPlayAreaSize(ref float pSizeX, ref float pSizeZ); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetPlayAreaSize GetPlayAreaSize; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetPlayAreaRect(ref HmdQuad_t rect); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetPlayAreaRect GetPlayAreaRect; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ReloadInfo(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ReloadInfo ReloadInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetSceneColor(HmdColor_t color); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetSceneColor SetSceneColor; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetBoundsColor(ref HmdColor_t pOutputColorArray, int nNumOutputColors, float flCollisionBoundsFadeDistance, ref HmdColor_t pOutputCameraColor); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetBoundsColor GetBoundsColor; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _AreBoundsVisible(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _AreBoundsVisible AreBoundsVisible; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ForceBoundsVisible(bool bForce); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ForceBoundsVisible ForceBoundsVisible; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRChaperoneSetup +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _CommitWorkingCopy(EChaperoneConfigFile configFile); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CommitWorkingCopy CommitWorkingCopy; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _RevertWorkingCopy(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _RevertWorkingCopy RevertWorkingCopy; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetWorkingPlayAreaSize(ref float pSizeX, ref float pSizeZ); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetWorkingPlayAreaSize GetWorkingPlayAreaSize; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetWorkingPlayAreaRect(ref HmdQuad_t rect); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetWorkingPlayAreaRect GetWorkingPlayAreaRect; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetWorkingCollisionBoundsInfo([In, Out] HmdQuad_t[] pQuadsBuffer, ref uint punQuadsCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetWorkingCollisionBoundsInfo GetWorkingCollisionBoundsInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetLiveCollisionBoundsInfo([In, Out] HmdQuad_t[] pQuadsBuffer, ref uint punQuadsCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetLiveCollisionBoundsInfo GetLiveCollisionBoundsInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetWorkingSeatedZeroPoseToRawTrackingPose(ref HmdMatrix34_t pmatSeatedZeroPoseToRawTrackingPose); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetWorkingSeatedZeroPoseToRawTrackingPose GetWorkingSeatedZeroPoseToRawTrackingPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetWorkingStandingZeroPoseToRawTrackingPose(ref HmdMatrix34_t pmatStandingZeroPoseToRawTrackingPose); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetWorkingStandingZeroPoseToRawTrackingPose GetWorkingStandingZeroPoseToRawTrackingPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetWorkingPlayAreaSize(float sizeX, float sizeZ); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetWorkingPlayAreaSize SetWorkingPlayAreaSize; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetWorkingCollisionBoundsInfo([In, Out] HmdQuad_t[] pQuadsBuffer, uint unQuadsCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetWorkingCollisionBoundsInfo SetWorkingCollisionBoundsInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetWorkingSeatedZeroPoseToRawTrackingPose(ref HmdMatrix34_t pMatSeatedZeroPoseToRawTrackingPose); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetWorkingSeatedZeroPoseToRawTrackingPose SetWorkingSeatedZeroPoseToRawTrackingPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetWorkingStandingZeroPoseToRawTrackingPose(ref HmdMatrix34_t pMatStandingZeroPoseToRawTrackingPose); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetWorkingStandingZeroPoseToRawTrackingPose SetWorkingStandingZeroPoseToRawTrackingPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ReloadFromDisk(EChaperoneConfigFile configFile); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ReloadFromDisk ReloadFromDisk; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetLiveSeatedZeroPoseToRawTrackingPose(ref HmdMatrix34_t pmatSeatedZeroPoseToRawTrackingPose); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetLiveSeatedZeroPoseToRawTrackingPose GetLiveSeatedZeroPoseToRawTrackingPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetWorkingCollisionBoundsTagsInfo([In, Out] byte[] pTagsBuffer, uint unTagCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetWorkingCollisionBoundsTagsInfo SetWorkingCollisionBoundsTagsInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetLiveCollisionBoundsTagsInfo([In, Out] byte[] pTagsBuffer, ref uint punTagCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetLiveCollisionBoundsTagsInfo GetLiveCollisionBoundsTagsInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _SetWorkingPhysicalBoundsInfo([In, Out] HmdQuad_t[] pQuadsBuffer, uint unQuadsCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetWorkingPhysicalBoundsInfo SetWorkingPhysicalBoundsInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetLivePhysicalBoundsInfo([In, Out] HmdQuad_t[] pQuadsBuffer, ref uint punQuadsCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetLivePhysicalBoundsInfo GetLivePhysicalBoundsInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _ExportLiveToBuffer(System.Text.StringBuilder pBuffer, ref uint pnBufferLength); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ExportLiveToBuffer ExportLiveToBuffer; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _ImportFromBufferToWorking(string pBuffer, uint nImportFlags); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ImportFromBufferToWorking ImportFromBufferToWorking; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRCompositor +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetTrackingSpace(ETrackingUniverseOrigin eOrigin); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetTrackingSpace SetTrackingSpace; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ETrackingUniverseOrigin _GetTrackingSpace(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetTrackingSpace GetTrackingSpace; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRCompositorError _WaitGetPoses([In, Out] TrackedDevicePose_t[] pRenderPoseArray, uint unRenderPoseArrayCount, [In, Out] TrackedDevicePose_t[] pGamePoseArray, uint unGamePoseArrayCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _WaitGetPoses WaitGetPoses; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRCompositorError _GetLastPoses([In, Out] TrackedDevicePose_t[] pRenderPoseArray, uint unRenderPoseArrayCount, [In, Out] TrackedDevicePose_t[] pGamePoseArray, uint unGamePoseArrayCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetLastPoses GetLastPoses; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRCompositorError _GetLastPoseForTrackedDeviceIndex(uint unDeviceIndex, ref TrackedDevicePose_t pOutputPose, ref TrackedDevicePose_t pOutputGamePose); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetLastPoseForTrackedDeviceIndex GetLastPoseForTrackedDeviceIndex; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRCompositorError _Submit(EVREye eEye, ref Texture_t pTexture, ref VRTextureBounds_t pBounds, EVRSubmitFlags nSubmitFlags); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _Submit Submit; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ClearLastSubmittedFrame(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ClearLastSubmittedFrame ClearLastSubmittedFrame; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _PostPresentHandoff(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _PostPresentHandoff PostPresentHandoff; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetFrameTiming(ref Compositor_FrameTiming pTiming, uint unFramesAgo); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetFrameTiming GetFrameTiming; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetFrameTimings(ref Compositor_FrameTiming pTiming, uint nFrames); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetFrameTimings GetFrameTimings; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate float _GetFrameTimeRemaining(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetFrameTimeRemaining GetFrameTimeRemaining; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetCumulativeStats(ref Compositor_CumulativeStats pStats, uint nStatsSizeInBytes); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCumulativeStats GetCumulativeStats; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _FadeToColor(float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _FadeToColor FadeToColor; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate HmdColor_t _GetCurrentFadeColor(bool bBackground); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCurrentFadeColor GetCurrentFadeColor; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _FadeGrid(float fSeconds, bool bFadeIn); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _FadeGrid FadeGrid; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate float _GetCurrentGridAlpha(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCurrentGridAlpha GetCurrentGridAlpha; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRCompositorError _SetSkyboxOverride([In, Out] Texture_t[] pTextures, uint unTextureCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetSkyboxOverride SetSkyboxOverride; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ClearSkyboxOverride(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ClearSkyboxOverride ClearSkyboxOverride; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _CompositorBringToFront(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CompositorBringToFront CompositorBringToFront; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _CompositorGoToBack(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CompositorGoToBack CompositorGoToBack; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _CompositorQuit(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CompositorQuit CompositorQuit; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsFullscreen(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsFullscreen IsFullscreen; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetCurrentSceneFocusProcess(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCurrentSceneFocusProcess GetCurrentSceneFocusProcess; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetLastFrameRenderer(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetLastFrameRenderer GetLastFrameRenderer; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _CanRenderScene(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CanRenderScene CanRenderScene; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ShowMirrorWindow(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ShowMirrorWindow ShowMirrorWindow; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _HideMirrorWindow(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _HideMirrorWindow HideMirrorWindow; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsMirrorWindowVisible(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsMirrorWindowVisible IsMirrorWindowVisible; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _CompositorDumpImages(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CompositorDumpImages CompositorDumpImages; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _ShouldAppRenderWithLowResources(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ShouldAppRenderWithLowResources ShouldAppRenderWithLowResources; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ForceInterleavedReprojectionOn(bool bOverride); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ForceInterleavedReprojectionOn ForceInterleavedReprojectionOn; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ForceReconnectProcess(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ForceReconnectProcess ForceReconnectProcess; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SuspendRendering(bool bSuspend); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SuspendRendering SuspendRendering; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRCompositorError _GetMirrorTextureD3D11(EVREye eEye, IntPtr pD3D11DeviceOrResource, ref IntPtr ppD3D11ShaderResourceView); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetMirrorTextureD3D11 GetMirrorTextureD3D11; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ReleaseMirrorTextureD3D11(IntPtr pD3D11ShaderResourceView); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ReleaseMirrorTextureD3D11 ReleaseMirrorTextureD3D11; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRCompositorError _GetMirrorTextureGL(EVREye eEye, ref uint pglTextureId, IntPtr pglSharedTextureHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetMirrorTextureGL GetMirrorTextureGL; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _ReleaseSharedGLTexture(uint glTextureId, IntPtr glSharedTextureHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ReleaseSharedGLTexture ReleaseSharedGLTexture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _LockGLSharedTextureForAccess(IntPtr glSharedTextureHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LockGLSharedTextureForAccess LockGLSharedTextureForAccess; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _UnlockGLSharedTextureForAccess(IntPtr glSharedTextureHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _UnlockGLSharedTextureForAccess UnlockGLSharedTextureForAccess; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetVulkanInstanceExtensionsRequired(System.Text.StringBuilder pchValue, uint unBufferSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetVulkanInstanceExtensionsRequired GetVulkanInstanceExtensionsRequired; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetVulkanDeviceExtensionsRequired(IntPtr pPhysicalDevice, System.Text.StringBuilder pchValue, uint unBufferSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetVulkanDeviceExtensionsRequired GetVulkanDeviceExtensionsRequired; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVROverlay +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _FindOverlay(string pchOverlayKey, ref ulong pOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _FindOverlay FindOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _CreateOverlay(string pchOverlayKey, string pchOverlayName, ref ulong pOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CreateOverlay CreateOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _DestroyOverlay(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _DestroyOverlay DestroyOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetHighQualityOverlay(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetHighQualityOverlay SetHighQualityOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ulong _GetHighQualityOverlay(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetHighQualityOverlay GetHighQualityOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetOverlayKey(ulong ulOverlayHandle, System.Text.StringBuilder pchValue, uint unBufferSize, ref EVROverlayError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayKey GetOverlayKey; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetOverlayName(ulong ulOverlayHandle, System.Text.StringBuilder pchValue, uint unBufferSize, ref EVROverlayError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayName GetOverlayName; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayName(ulong ulOverlayHandle, string pchName); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayName SetOverlayName; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayImageData(ulong ulOverlayHandle, IntPtr pvBuffer, uint unBufferSize, ref uint punWidth, ref uint punHeight); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayImageData GetOverlayImageData; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetOverlayErrorNameFromEnum(EVROverlayError error); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayErrorNameFromEnum GetOverlayErrorNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayRenderingPid(ulong ulOverlayHandle, uint unPID); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayRenderingPid SetOverlayRenderingPid; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetOverlayRenderingPid(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayRenderingPid GetOverlayRenderingPid; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayFlag(ulong ulOverlayHandle, VROverlayFlags eOverlayFlag, bool bEnabled); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayFlag SetOverlayFlag; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayFlag(ulong ulOverlayHandle, VROverlayFlags eOverlayFlag, ref bool pbEnabled); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayFlag GetOverlayFlag; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayColor(ulong ulOverlayHandle, float fRed, float fGreen, float fBlue); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayColor SetOverlayColor; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayColor(ulong ulOverlayHandle, ref float pfRed, ref float pfGreen, ref float pfBlue); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayColor GetOverlayColor; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayAlpha(ulong ulOverlayHandle, float fAlpha); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayAlpha SetOverlayAlpha; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayAlpha(ulong ulOverlayHandle, ref float pfAlpha); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayAlpha GetOverlayAlpha; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayTexelAspect(ulong ulOverlayHandle, float fTexelAspect); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayTexelAspect SetOverlayTexelAspect; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTexelAspect(ulong ulOverlayHandle, ref float pfTexelAspect); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTexelAspect GetOverlayTexelAspect; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlaySortOrder(ulong ulOverlayHandle, uint unSortOrder); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlaySortOrder SetOverlaySortOrder; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlaySortOrder(ulong ulOverlayHandle, ref uint punSortOrder); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlaySortOrder GetOverlaySortOrder; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayWidthInMeters(ulong ulOverlayHandle, float fWidthInMeters); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayWidthInMeters SetOverlayWidthInMeters; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayWidthInMeters(ulong ulOverlayHandle, ref float pfWidthInMeters); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayWidthInMeters GetOverlayWidthInMeters; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayAutoCurveDistanceRangeInMeters(ulong ulOverlayHandle, float fMinDistanceInMeters, float fMaxDistanceInMeters); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayAutoCurveDistanceRangeInMeters SetOverlayAutoCurveDistanceRangeInMeters; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayAutoCurveDistanceRangeInMeters(ulong ulOverlayHandle, ref float pfMinDistanceInMeters, ref float pfMaxDistanceInMeters); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayAutoCurveDistanceRangeInMeters GetOverlayAutoCurveDistanceRangeInMeters; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayTextureColorSpace(ulong ulOverlayHandle, EColorSpace eTextureColorSpace); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayTextureColorSpace SetOverlayTextureColorSpace; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTextureColorSpace(ulong ulOverlayHandle, ref EColorSpace peTextureColorSpace); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTextureColorSpace GetOverlayTextureColorSpace; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayTextureBounds(ulong ulOverlayHandle, ref VRTextureBounds_t pOverlayTextureBounds); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayTextureBounds SetOverlayTextureBounds; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTextureBounds(ulong ulOverlayHandle, ref VRTextureBounds_t pOverlayTextureBounds); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTextureBounds GetOverlayTextureBounds; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetOverlayRenderModel(ulong ulOverlayHandle, string pchValue, uint unBufferSize, ref HmdColor_t pColor, ref EVROverlayError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayRenderModel GetOverlayRenderModel; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayRenderModel(ulong ulOverlayHandle, string pchRenderModel, ref HmdColor_t pColor); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayRenderModel SetOverlayRenderModel; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTransformType(ulong ulOverlayHandle, ref VROverlayTransformType peTransformType); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTransformType GetOverlayTransformType; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayTransformAbsolute(ulong ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, ref HmdMatrix34_t pmatTrackingOriginToOverlayTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayTransformAbsolute SetOverlayTransformAbsolute; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTransformAbsolute(ulong ulOverlayHandle, ref ETrackingUniverseOrigin peTrackingOrigin, ref HmdMatrix34_t pmatTrackingOriginToOverlayTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTransformAbsolute GetOverlayTransformAbsolute; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayTransformTrackedDeviceRelative(ulong ulOverlayHandle, uint unTrackedDevice, ref HmdMatrix34_t pmatTrackedDeviceToOverlayTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayTransformTrackedDeviceRelative SetOverlayTransformTrackedDeviceRelative; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTransformTrackedDeviceRelative(ulong ulOverlayHandle, ref uint punTrackedDevice, ref HmdMatrix34_t pmatTrackedDeviceToOverlayTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTransformTrackedDeviceRelative GetOverlayTransformTrackedDeviceRelative; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayTransformTrackedDeviceComponent(ulong ulOverlayHandle, uint unDeviceIndex, string pchComponentName); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayTransformTrackedDeviceComponent SetOverlayTransformTrackedDeviceComponent; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTransformTrackedDeviceComponent(ulong ulOverlayHandle, ref uint punDeviceIndex, string pchComponentName, uint unComponentNameSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTransformTrackedDeviceComponent GetOverlayTransformTrackedDeviceComponent; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTransformOverlayRelative(ulong ulOverlayHandle, ref ulong ulOverlayHandleParent, ref HmdMatrix34_t pmatParentOverlayToOverlayTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTransformOverlayRelative GetOverlayTransformOverlayRelative; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayTransformOverlayRelative(ulong ulOverlayHandle, ulong ulOverlayHandleParent, ref HmdMatrix34_t pmatParentOverlayToOverlayTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayTransformOverlayRelative SetOverlayTransformOverlayRelative; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _ShowOverlay(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ShowOverlay ShowOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _HideOverlay(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _HideOverlay HideOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsOverlayVisible(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsOverlayVisible IsOverlayVisible; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetTransformForOverlayCoordinates(ulong ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, HmdVector2_t coordinatesInOverlay, ref HmdMatrix34_t pmatTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetTransformForOverlayCoordinates GetTransformForOverlayCoordinates; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _PollNextOverlayEvent(ulong ulOverlayHandle, ref VREvent_t pEvent, uint uncbVREvent); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _PollNextOverlayEvent PollNextOverlayEvent; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayInputMethod(ulong ulOverlayHandle, ref VROverlayInputMethod peInputMethod); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayInputMethod GetOverlayInputMethod; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayInputMethod(ulong ulOverlayHandle, VROverlayInputMethod eInputMethod); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayInputMethod SetOverlayInputMethod; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayMouseScale(ulong ulOverlayHandle, ref HmdVector2_t pvecMouseScale); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayMouseScale GetOverlayMouseScale; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayMouseScale(ulong ulOverlayHandle, ref HmdVector2_t pvecMouseScale); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayMouseScale SetOverlayMouseScale; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _ComputeOverlayIntersection(ulong ulOverlayHandle, ref VROverlayIntersectionParams_t pParams, ref VROverlayIntersectionResults_t pResults); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ComputeOverlayIntersection ComputeOverlayIntersection; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _HandleControllerOverlayInteractionAsMouse(ulong ulOverlayHandle, uint unControllerDeviceIndex); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _HandleControllerOverlayInteractionAsMouse HandleControllerOverlayInteractionAsMouse; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsHoverTargetOverlay(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsHoverTargetOverlay IsHoverTargetOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ulong _GetGamepadFocusOverlay(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetGamepadFocusOverlay GetGamepadFocusOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetGamepadFocusOverlay(ulong ulNewFocusOverlay); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetGamepadFocusOverlay SetGamepadFocusOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayNeighbor(EOverlayDirection eDirection, ulong ulFrom, ulong ulTo); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayNeighbor SetOverlayNeighbor; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _MoveGamepadFocusToNeighbor(EOverlayDirection eDirection, ulong ulFrom); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _MoveGamepadFocusToNeighbor MoveGamepadFocusToNeighbor; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayTexture(ulong ulOverlayHandle, ref Texture_t pTexture); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayTexture SetOverlayTexture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _ClearOverlayTexture(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ClearOverlayTexture ClearOverlayTexture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayRaw(ulong ulOverlayHandle, IntPtr pvBuffer, uint unWidth, uint unHeight, uint unDepth); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayRaw SetOverlayRaw; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayFromFile(ulong ulOverlayHandle, string pchFilePath); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayFromFile SetOverlayFromFile; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTexture(ulong ulOverlayHandle, ref IntPtr pNativeTextureHandle, IntPtr pNativeTextureRef, ref uint pWidth, ref uint pHeight, ref uint pNativeFormat, ref ETextureType pAPIType, ref EColorSpace pColorSpace, ref VRTextureBounds_t pTextureBounds); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTexture GetOverlayTexture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _ReleaseNativeOverlayHandle(ulong ulOverlayHandle, IntPtr pNativeTextureHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ReleaseNativeOverlayHandle ReleaseNativeOverlayHandle; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTextureSize(ulong ulOverlayHandle, ref uint pWidth, ref uint pHeight); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTextureSize GetOverlayTextureSize; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _CreateDashboardOverlay(string pchOverlayKey, string pchOverlayFriendlyName, ref ulong pMainHandle, ref ulong pThumbnailHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CreateDashboardOverlay CreateDashboardOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsDashboardVisible(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsDashboardVisible IsDashboardVisible; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsActiveDashboardOverlay(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsActiveDashboardOverlay IsActiveDashboardOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetDashboardOverlaySceneProcess(ulong ulOverlayHandle, uint unProcessId); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetDashboardOverlaySceneProcess SetDashboardOverlaySceneProcess; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetDashboardOverlaySceneProcess(ulong ulOverlayHandle, ref uint punProcessId); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetDashboardOverlaySceneProcess GetDashboardOverlaySceneProcess; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ShowDashboard(string pchOverlayToShow); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ShowDashboard ShowDashboard; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetPrimaryDashboardDevice(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetPrimaryDashboardDevice GetPrimaryDashboardDevice; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _ShowKeyboard(int eInputMode, int eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText, bool bUseMinimalMode, ulong uUserValue); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ShowKeyboard ShowKeyboard; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _ShowKeyboardForOverlay(ulong ulOverlayHandle, int eInputMode, int eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText, bool bUseMinimalMode, ulong uUserValue); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ShowKeyboardForOverlay ShowKeyboardForOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetKeyboardText(System.Text.StringBuilder pchText, uint cchText); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetKeyboardText GetKeyboardText; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _HideKeyboard(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _HideKeyboard HideKeyboard; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetKeyboardTransformAbsolute(ETrackingUniverseOrigin eTrackingOrigin, ref HmdMatrix34_t pmatTrackingOriginToKeyboardTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetKeyboardTransformAbsolute SetKeyboardTransformAbsolute; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetKeyboardPositionForOverlay(ulong ulOverlayHandle, HmdRect2_t avoidRect); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetKeyboardPositionForOverlay SetKeyboardPositionForOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayIntersectionMask(ulong ulOverlayHandle, ref VROverlayIntersectionMaskPrimitive_t pMaskPrimitives, uint unNumMaskPrimitives, uint unPrimitiveSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayIntersectionMask SetOverlayIntersectionMask; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayFlags(ulong ulOverlayHandle, ref uint pFlags); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayFlags GetOverlayFlags; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate VRMessageOverlayResponse _ShowMessageOverlay(string pchText, string pchCaption, string pchButton0Text, string pchButton1Text, string pchButton2Text, string pchButton3Text); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ShowMessageOverlay ShowMessageOverlay; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRRenderModels +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRRenderModelError _LoadRenderModel_Async(string pchRenderModelName, ref IntPtr ppRenderModel); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LoadRenderModel_Async LoadRenderModel_Async; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _FreeRenderModel(IntPtr pRenderModel); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _FreeRenderModel FreeRenderModel; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRRenderModelError _LoadTexture_Async(int textureId, ref IntPtr ppTexture); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LoadTexture_Async LoadTexture_Async; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _FreeTexture(IntPtr pTexture); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _FreeTexture FreeTexture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRRenderModelError _LoadTextureD3D11_Async(int textureId, IntPtr pD3D11Device, ref IntPtr ppD3D11Texture2D); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LoadTextureD3D11_Async LoadTextureD3D11_Async; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRRenderModelError _LoadIntoTextureD3D11_Async(int textureId, IntPtr pDstTexture); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LoadIntoTextureD3D11_Async LoadIntoTextureD3D11_Async; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _FreeTextureD3D11(IntPtr pD3D11Texture2D); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _FreeTextureD3D11 FreeTextureD3D11; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetRenderModelName(uint unRenderModelIndex, System.Text.StringBuilder pchRenderModelName, uint unRenderModelNameLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetRenderModelName GetRenderModelName; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetRenderModelCount(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetRenderModelCount GetRenderModelCount; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetComponentCount(string pchRenderModelName); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetComponentCount GetComponentCount; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetComponentName(string pchRenderModelName, uint unComponentIndex, System.Text.StringBuilder pchComponentName, uint unComponentNameLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetComponentName GetComponentName; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ulong _GetComponentButtonMask(string pchRenderModelName, string pchComponentName); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetComponentButtonMask GetComponentButtonMask; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetComponentRenderModelName(string pchRenderModelName, string pchComponentName, System.Text.StringBuilder pchComponentRenderModelName, uint unComponentRenderModelNameLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetComponentRenderModelName GetComponentRenderModelName; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetComponentState(string pchRenderModelName, string pchComponentName, ref VRControllerState_t pControllerState, ref RenderModel_ControllerMode_State_t pState, ref RenderModel_ComponentState_t pComponentState); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetComponentState GetComponentState; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _RenderModelHasComponent(string pchRenderModelName, string pchComponentName); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _RenderModelHasComponent RenderModelHasComponent; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetRenderModelThumbnailURL(string pchRenderModelName, System.Text.StringBuilder pchThumbnailURL, uint unThumbnailURLLen, ref EVRRenderModelError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetRenderModelThumbnailURL GetRenderModelThumbnailURL; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetRenderModelOriginalPath(string pchRenderModelName, System.Text.StringBuilder pchOriginalPath, uint unOriginalPathLen, ref EVRRenderModelError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetRenderModelOriginalPath GetRenderModelOriginalPath; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetRenderModelErrorNameFromEnum(EVRRenderModelError error); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetRenderModelErrorNameFromEnum GetRenderModelErrorNameFromEnum; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRNotifications +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRNotificationError _CreateNotification(ulong ulOverlayHandle, ulong ulUserValue, EVRNotificationType type, string pchText, EVRNotificationStyle style, ref NotificationBitmap_t pImage, ref uint pNotificationId); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CreateNotification CreateNotification; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRNotificationError _RemoveNotification(uint notificationId); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _RemoveNotification RemoveNotification; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRSettings +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetSettingsErrorNameFromEnum(EVRSettingsError eError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetSettingsErrorNameFromEnum GetSettingsErrorNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _Sync(bool bForce, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _Sync Sync; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetBool(string pchSection, string pchSettingsKey, bool bValue, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetBool SetBool; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetInt32(string pchSection, string pchSettingsKey, int nValue, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetInt32 SetInt32; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetFloat(string pchSection, string pchSettingsKey, float flValue, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetFloat SetFloat; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetString(string pchSection, string pchSettingsKey, string pchValue, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetString SetString; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetBool(string pchSection, string pchSettingsKey, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetBool GetBool; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate int _GetInt32(string pchSection, string pchSettingsKey, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetInt32 GetInt32; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate float _GetFloat(string pchSection, string pchSettingsKey, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetFloat GetFloat; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetString(string pchSection, string pchSettingsKey, System.Text.StringBuilder pchValue, uint unValueLen, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetString GetString; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _RemoveSection(string pchSection, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _RemoveSection RemoveSection; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _RemoveKeyInSection(string pchSection, string pchSettingsKey, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _RemoveKeyInSection RemoveKeyInSection; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRScreenshots +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRScreenshotError _RequestScreenshot(ref uint pOutScreenshotHandle, EVRScreenshotType type, string pchPreviewFilename, string pchVRFilename); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _RequestScreenshot RequestScreenshot; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRScreenshotError _HookScreenshot([In, Out] EVRScreenshotType[] pSupportedTypes, int numTypes); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _HookScreenshot HookScreenshot; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRScreenshotType _GetScreenshotPropertyType(uint screenshotHandle, ref EVRScreenshotError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetScreenshotPropertyType GetScreenshotPropertyType; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetScreenshotPropertyFilename(uint screenshotHandle, EVRScreenshotPropertyFilenames filenameType, System.Text.StringBuilder pchFilename, uint cchFilename, ref EVRScreenshotError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetScreenshotPropertyFilename GetScreenshotPropertyFilename; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRScreenshotError _UpdateScreenshotProgress(uint screenshotHandle, float flProgress); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _UpdateScreenshotProgress UpdateScreenshotProgress; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRScreenshotError _TakeStereoScreenshot(ref uint pOutScreenshotHandle, string pchPreviewFilename, string pchVRFilename); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _TakeStereoScreenshot TakeStereoScreenshot; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRScreenshotError _SubmitScreenshot(uint screenshotHandle, EVRScreenshotType type, string pchSourcePreviewFilename, string pchSourceVRFilename); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SubmitScreenshot SubmitScreenshot; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRResources +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _LoadSharedResource(string pchResourceName, string pchBuffer, uint unBufferLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LoadSharedResource LoadSharedResource; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetResourceFullPath(string pchResourceName, string pchResourceTypeDirectory, string pchPathBuffer, uint unBufferLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetResourceFullPath GetResourceFullPath; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRDriverManager +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetDriverCount(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetDriverCount GetDriverCount; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetDriverName(uint nDriver, System.Text.StringBuilder pchValue, uint unBufferSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetDriverName GetDriverName; + +} + + +public class CVRSystem +{ + IVRSystem FnTable; + internal CVRSystem(IntPtr pInterface) + { + FnTable = (IVRSystem)Marshal.PtrToStructure(pInterface, typeof(IVRSystem)); + } + public void GetRecommendedRenderTargetSize(ref uint pnWidth,ref uint pnHeight) + { + pnWidth = 0; + pnHeight = 0; + FnTable.GetRecommendedRenderTargetSize(ref pnWidth,ref pnHeight); + } + public HmdMatrix44_t GetProjectionMatrix(EVREye eEye,float fNearZ,float fFarZ) + { + HmdMatrix44_t result = FnTable.GetProjectionMatrix(eEye,fNearZ,fFarZ); + return result; + } + public void GetProjectionRaw(EVREye eEye,ref float pfLeft,ref float pfRight,ref float pfTop,ref float pfBottom) + { + pfLeft = 0; + pfRight = 0; + pfTop = 0; + pfBottom = 0; + FnTable.GetProjectionRaw(eEye,ref pfLeft,ref pfRight,ref pfTop,ref pfBottom); + } + public bool ComputeDistortion(EVREye eEye,float fU,float fV,ref DistortionCoordinates_t pDistortionCoordinates) + { + bool result = FnTable.ComputeDistortion(eEye,fU,fV,ref pDistortionCoordinates); + return result; + } + public HmdMatrix34_t GetEyeToHeadTransform(EVREye eEye) + { + HmdMatrix34_t result = FnTable.GetEyeToHeadTransform(eEye); + return result; + } + public bool GetTimeSinceLastVsync(ref float pfSecondsSinceLastVsync,ref ulong pulFrameCounter) + { + pfSecondsSinceLastVsync = 0; + pulFrameCounter = 0; + bool result = FnTable.GetTimeSinceLastVsync(ref pfSecondsSinceLastVsync,ref pulFrameCounter); + return result; + } + public int GetD3D9AdapterIndex() + { + int result = FnTable.GetD3D9AdapterIndex(); + return result; + } + public void GetDXGIOutputInfo(ref int pnAdapterIndex) + { + pnAdapterIndex = 0; + FnTable.GetDXGIOutputInfo(ref pnAdapterIndex); + } + public void GetOutputDevice(ref ulong pnDevice,ETextureType textureType) + { + pnDevice = 0; + FnTable.GetOutputDevice(ref pnDevice,textureType); + } + public bool IsDisplayOnDesktop() + { + bool result = FnTable.IsDisplayOnDesktop(); + return result; + } + public bool SetDisplayVisibility(bool bIsVisibleOnDesktop) + { + bool result = FnTable.SetDisplayVisibility(bIsVisibleOnDesktop); + return result; + } + public void GetDeviceToAbsoluteTrackingPose(ETrackingUniverseOrigin eOrigin,float fPredictedSecondsToPhotonsFromNow,TrackedDevicePose_t [] pTrackedDevicePoseArray) + { + FnTable.GetDeviceToAbsoluteTrackingPose(eOrigin,fPredictedSecondsToPhotonsFromNow,pTrackedDevicePoseArray,(uint) pTrackedDevicePoseArray.Length); + } + public void ResetSeatedZeroPose() + { + FnTable.ResetSeatedZeroPose(); + } + public HmdMatrix34_t GetSeatedZeroPoseToStandingAbsoluteTrackingPose() + { + HmdMatrix34_t result = FnTable.GetSeatedZeroPoseToStandingAbsoluteTrackingPose(); + return result; + } + public HmdMatrix34_t GetRawZeroPoseToStandingAbsoluteTrackingPose() + { + HmdMatrix34_t result = FnTable.GetRawZeroPoseToStandingAbsoluteTrackingPose(); + return result; + } + public uint GetSortedTrackedDeviceIndicesOfClass(ETrackedDeviceClass eTrackedDeviceClass,uint [] punTrackedDeviceIndexArray,uint unRelativeToTrackedDeviceIndex) + { + uint result = FnTable.GetSortedTrackedDeviceIndicesOfClass(eTrackedDeviceClass,punTrackedDeviceIndexArray,(uint) punTrackedDeviceIndexArray.Length,unRelativeToTrackedDeviceIndex); + return result; + } + public EDeviceActivityLevel GetTrackedDeviceActivityLevel(uint unDeviceId) + { + EDeviceActivityLevel result = FnTable.GetTrackedDeviceActivityLevel(unDeviceId); + return result; + } + public void ApplyTransform(ref TrackedDevicePose_t pOutputPose,ref TrackedDevicePose_t pTrackedDevicePose,ref HmdMatrix34_t pTransform) + { + FnTable.ApplyTransform(ref pOutputPose,ref pTrackedDevicePose,ref pTransform); + } + public uint GetTrackedDeviceIndexForControllerRole(ETrackedControllerRole unDeviceType) + { + uint result = FnTable.GetTrackedDeviceIndexForControllerRole(unDeviceType); + return result; + } + public ETrackedControllerRole GetControllerRoleForTrackedDeviceIndex(uint unDeviceIndex) + { + ETrackedControllerRole result = FnTable.GetControllerRoleForTrackedDeviceIndex(unDeviceIndex); + return result; + } + public ETrackedDeviceClass GetTrackedDeviceClass(uint unDeviceIndex) + { + ETrackedDeviceClass result = FnTable.GetTrackedDeviceClass(unDeviceIndex); + return result; + } + public bool IsTrackedDeviceConnected(uint unDeviceIndex) + { + bool result = FnTable.IsTrackedDeviceConnected(unDeviceIndex); + return result; + } + public bool GetBoolTrackedDeviceProperty(uint unDeviceIndex,ETrackedDeviceProperty prop,ref ETrackedPropertyError pError) + { + bool result = FnTable.GetBoolTrackedDeviceProperty(unDeviceIndex,prop,ref pError); + return result; + } + public float GetFloatTrackedDeviceProperty(uint unDeviceIndex,ETrackedDeviceProperty prop,ref ETrackedPropertyError pError) + { + float result = FnTable.GetFloatTrackedDeviceProperty(unDeviceIndex,prop,ref pError); + return result; + } + public int GetInt32TrackedDeviceProperty(uint unDeviceIndex,ETrackedDeviceProperty prop,ref ETrackedPropertyError pError) + { + int result = FnTable.GetInt32TrackedDeviceProperty(unDeviceIndex,prop,ref pError); + return result; + } + public ulong GetUint64TrackedDeviceProperty(uint unDeviceIndex,ETrackedDeviceProperty prop,ref ETrackedPropertyError pError) + { + ulong result = FnTable.GetUint64TrackedDeviceProperty(unDeviceIndex,prop,ref pError); + return result; + } + public HmdMatrix34_t GetMatrix34TrackedDeviceProperty(uint unDeviceIndex,ETrackedDeviceProperty prop,ref ETrackedPropertyError pError) + { + HmdMatrix34_t result = FnTable.GetMatrix34TrackedDeviceProperty(unDeviceIndex,prop,ref pError); + return result; + } + public uint GetStringTrackedDeviceProperty(uint unDeviceIndex,ETrackedDeviceProperty prop,System.Text.StringBuilder pchValue,uint unBufferSize,ref ETrackedPropertyError pError) + { + uint result = FnTable.GetStringTrackedDeviceProperty(unDeviceIndex,prop,pchValue,unBufferSize,ref pError); + return result; + } + public string GetPropErrorNameFromEnum(ETrackedPropertyError error) + { + IntPtr result = FnTable.GetPropErrorNameFromEnum(error); + return Marshal.PtrToStringAnsi(result); + } +// This is a terrible hack to workaround the fact that VRControllerState_t and VREvent_t were +// originally mis-compiled with the wrong packing for Linux and OSX. + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _PollNextEventPacked(ref VREvent_t_Packed pEvent,uint uncbVREvent); + [StructLayout(LayoutKind.Explicit)] + struct PollNextEventUnion + { + [FieldOffset(0)] + public IVRSystem._PollNextEvent pPollNextEvent; + [FieldOffset(0)] + public _PollNextEventPacked pPollNextEventPacked; + } + public bool PollNextEvent(ref VREvent_t pEvent,uint uncbVREvent) + { + if ((System.Environment.OSVersion.Platform == System.PlatformID.MacOSX) || + (System.Environment.OSVersion.Platform == System.PlatformID.Unix)) + { + PollNextEventUnion u; + VREvent_t_Packed event_packed = new VREvent_t_Packed(); + u.pPollNextEventPacked = null; + u.pPollNextEvent = FnTable.PollNextEvent; + bool packed_result = u.pPollNextEventPacked(ref event_packed,(uint)System.Runtime.InteropServices.Marshal.SizeOf(typeof(VREvent_t_Packed))); + + event_packed.Unpack(ref pEvent); + return packed_result; + } + bool result = FnTable.PollNextEvent(ref pEvent,uncbVREvent); + return result; + } + public bool PollNextEventWithPose(ETrackingUniverseOrigin eOrigin,ref VREvent_t pEvent,uint uncbVREvent,ref TrackedDevicePose_t pTrackedDevicePose) + { + bool result = FnTable.PollNextEventWithPose(eOrigin,ref pEvent,uncbVREvent,ref pTrackedDevicePose); + return result; + } + public string GetEventTypeNameFromEnum(EVREventType eType) + { + IntPtr result = FnTable.GetEventTypeNameFromEnum(eType); + return Marshal.PtrToStringAnsi(result); + } + public HiddenAreaMesh_t GetHiddenAreaMesh(EVREye eEye,EHiddenAreaMeshType type) + { + HiddenAreaMesh_t result = FnTable.GetHiddenAreaMesh(eEye,type); + return result; + } +// This is a terrible hack to workaround the fact that VRControllerState_t and VREvent_t were +// originally mis-compiled with the wrong packing for Linux and OSX. + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetControllerStatePacked(uint unControllerDeviceIndex,ref VRControllerState_t_Packed pControllerState,uint unControllerStateSize); + [StructLayout(LayoutKind.Explicit)] + struct GetControllerStateUnion + { + [FieldOffset(0)] + public IVRSystem._GetControllerState pGetControllerState; + [FieldOffset(0)] + public _GetControllerStatePacked pGetControllerStatePacked; + } + public bool GetControllerState(uint unControllerDeviceIndex,ref VRControllerState_t pControllerState,uint unControllerStateSize) + { + if ((System.Environment.OSVersion.Platform == System.PlatformID.MacOSX) || + (System.Environment.OSVersion.Platform == System.PlatformID.Unix)) + { + GetControllerStateUnion u; + VRControllerState_t_Packed state_packed = new VRControllerState_t_Packed(pControllerState); + u.pGetControllerStatePacked = null; + u.pGetControllerState = FnTable.GetControllerState; + bool packed_result = u.pGetControllerStatePacked(unControllerDeviceIndex,ref state_packed,(uint)System.Runtime.InteropServices.Marshal.SizeOf(typeof(VRControllerState_t_Packed))); + + state_packed.Unpack(ref pControllerState); + return packed_result; + } + bool result = FnTable.GetControllerState(unControllerDeviceIndex,ref pControllerState,unControllerStateSize); + return result; + } +// This is a terrible hack to workaround the fact that VRControllerState_t and VREvent_t were +// originally mis-compiled with the wrong packing for Linux and OSX. + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetControllerStateWithPosePacked(ETrackingUniverseOrigin eOrigin,uint unControllerDeviceIndex,ref VRControllerState_t_Packed pControllerState,uint unControllerStateSize,ref TrackedDevicePose_t pTrackedDevicePose); + [StructLayout(LayoutKind.Explicit)] + struct GetControllerStateWithPoseUnion + { + [FieldOffset(0)] + public IVRSystem._GetControllerStateWithPose pGetControllerStateWithPose; + [FieldOffset(0)] + public _GetControllerStateWithPosePacked pGetControllerStateWithPosePacked; + } + public bool GetControllerStateWithPose(ETrackingUniverseOrigin eOrigin,uint unControllerDeviceIndex,ref VRControllerState_t pControllerState,uint unControllerStateSize,ref TrackedDevicePose_t pTrackedDevicePose) + { + if ((System.Environment.OSVersion.Platform == System.PlatformID.MacOSX) || + (System.Environment.OSVersion.Platform == System.PlatformID.Unix)) + { + GetControllerStateWithPoseUnion u; + VRControllerState_t_Packed state_packed = new VRControllerState_t_Packed(pControllerState); + u.pGetControllerStateWithPosePacked = null; + u.pGetControllerStateWithPose = FnTable.GetControllerStateWithPose; + bool packed_result = u.pGetControllerStateWithPosePacked(eOrigin,unControllerDeviceIndex,ref state_packed,(uint)System.Runtime.InteropServices.Marshal.SizeOf(typeof(VRControllerState_t_Packed)),ref pTrackedDevicePose); + + state_packed.Unpack(ref pControllerState); + return packed_result; + } + bool result = FnTable.GetControllerStateWithPose(eOrigin,unControllerDeviceIndex,ref pControllerState,unControllerStateSize,ref pTrackedDevicePose); + return result; + } + public void TriggerHapticPulse(uint unControllerDeviceIndex,uint unAxisId,char usDurationMicroSec) + { + FnTable.TriggerHapticPulse(unControllerDeviceIndex,unAxisId,usDurationMicroSec); + } + public string GetButtonIdNameFromEnum(EVRButtonId eButtonId) + { + IntPtr result = FnTable.GetButtonIdNameFromEnum(eButtonId); + return Marshal.PtrToStringAnsi(result); + } + public string GetControllerAxisTypeNameFromEnum(EVRControllerAxisType eAxisType) + { + IntPtr result = FnTable.GetControllerAxisTypeNameFromEnum(eAxisType); + return Marshal.PtrToStringAnsi(result); + } + public bool CaptureInputFocus() + { + bool result = FnTable.CaptureInputFocus(); + return result; + } + public void ReleaseInputFocus() + { + FnTable.ReleaseInputFocus(); + } + public bool IsInputFocusCapturedByAnotherProcess() + { + bool result = FnTable.IsInputFocusCapturedByAnotherProcess(); + return result; + } + public uint DriverDebugRequest(uint unDeviceIndex,string pchRequest,string pchResponseBuffer,uint unResponseBufferSize) + { + uint result = FnTable.DriverDebugRequest(unDeviceIndex,pchRequest,pchResponseBuffer,unResponseBufferSize); + return result; + } + public EVRFirmwareError PerformFirmwareUpdate(uint unDeviceIndex) + { + EVRFirmwareError result = FnTable.PerformFirmwareUpdate(unDeviceIndex); + return result; + } + public void AcknowledgeQuit_Exiting() + { + FnTable.AcknowledgeQuit_Exiting(); + } + public void AcknowledgeQuit_UserPrompt() + { + FnTable.AcknowledgeQuit_UserPrompt(); + } +} + + +public class CVRExtendedDisplay +{ + IVRExtendedDisplay FnTable; + internal CVRExtendedDisplay(IntPtr pInterface) + { + FnTable = (IVRExtendedDisplay)Marshal.PtrToStructure(pInterface, typeof(IVRExtendedDisplay)); + } + public void GetWindowBounds(ref int pnX,ref int pnY,ref uint pnWidth,ref uint pnHeight) + { + pnX = 0; + pnY = 0; + pnWidth = 0; + pnHeight = 0; + FnTable.GetWindowBounds(ref pnX,ref pnY,ref pnWidth,ref pnHeight); + } + public void GetEyeOutputViewport(EVREye eEye,ref uint pnX,ref uint pnY,ref uint pnWidth,ref uint pnHeight) + { + pnX = 0; + pnY = 0; + pnWidth = 0; + pnHeight = 0; + FnTable.GetEyeOutputViewport(eEye,ref pnX,ref pnY,ref pnWidth,ref pnHeight); + } + public void GetDXGIOutputInfo(ref int pnAdapterIndex,ref int pnAdapterOutputIndex) + { + pnAdapterIndex = 0; + pnAdapterOutputIndex = 0; + FnTable.GetDXGIOutputInfo(ref pnAdapterIndex,ref pnAdapterOutputIndex); + } +} + + +public class CVRTrackedCamera +{ + IVRTrackedCamera FnTable; + internal CVRTrackedCamera(IntPtr pInterface) + { + FnTable = (IVRTrackedCamera)Marshal.PtrToStructure(pInterface, typeof(IVRTrackedCamera)); + } + public string GetCameraErrorNameFromEnum(EVRTrackedCameraError eCameraError) + { + IntPtr result = FnTable.GetCameraErrorNameFromEnum(eCameraError); + return Marshal.PtrToStringAnsi(result); + } + public EVRTrackedCameraError HasCamera(uint nDeviceIndex,ref bool pHasCamera) + { + pHasCamera = false; + EVRTrackedCameraError result = FnTable.HasCamera(nDeviceIndex,ref pHasCamera); + return result; + } + public EVRTrackedCameraError GetCameraFrameSize(uint nDeviceIndex,EVRTrackedCameraFrameType eFrameType,ref uint pnWidth,ref uint pnHeight,ref uint pnFrameBufferSize) + { + pnWidth = 0; + pnHeight = 0; + pnFrameBufferSize = 0; + EVRTrackedCameraError result = FnTable.GetCameraFrameSize(nDeviceIndex,eFrameType,ref pnWidth,ref pnHeight,ref pnFrameBufferSize); + return result; + } + public EVRTrackedCameraError GetCameraIntrinsics(uint nDeviceIndex,EVRTrackedCameraFrameType eFrameType,ref HmdVector2_t pFocalLength,ref HmdVector2_t pCenter) + { + EVRTrackedCameraError result = FnTable.GetCameraIntrinsics(nDeviceIndex,eFrameType,ref pFocalLength,ref pCenter); + return result; + } + public EVRTrackedCameraError GetCameraProjection(uint nDeviceIndex,EVRTrackedCameraFrameType eFrameType,float flZNear,float flZFar,ref HmdMatrix44_t pProjection) + { + EVRTrackedCameraError result = FnTable.GetCameraProjection(nDeviceIndex,eFrameType,flZNear,flZFar,ref pProjection); + return result; + } + public EVRTrackedCameraError AcquireVideoStreamingService(uint nDeviceIndex,ref ulong pHandle) + { + pHandle = 0; + EVRTrackedCameraError result = FnTable.AcquireVideoStreamingService(nDeviceIndex,ref pHandle); + return result; + } + public EVRTrackedCameraError ReleaseVideoStreamingService(ulong hTrackedCamera) + { + EVRTrackedCameraError result = FnTable.ReleaseVideoStreamingService(hTrackedCamera); + return result; + } + public EVRTrackedCameraError GetVideoStreamFrameBuffer(ulong hTrackedCamera,EVRTrackedCameraFrameType eFrameType,IntPtr pFrameBuffer,uint nFrameBufferSize,ref CameraVideoStreamFrameHeader_t pFrameHeader,uint nFrameHeaderSize) + { + EVRTrackedCameraError result = FnTable.GetVideoStreamFrameBuffer(hTrackedCamera,eFrameType,pFrameBuffer,nFrameBufferSize,ref pFrameHeader,nFrameHeaderSize); + return result; + } + public EVRTrackedCameraError GetVideoStreamTextureSize(uint nDeviceIndex,EVRTrackedCameraFrameType eFrameType,ref VRTextureBounds_t pTextureBounds,ref uint pnWidth,ref uint pnHeight) + { + pnWidth = 0; + pnHeight = 0; + EVRTrackedCameraError result = FnTable.GetVideoStreamTextureSize(nDeviceIndex,eFrameType,ref pTextureBounds,ref pnWidth,ref pnHeight); + return result; + } + public EVRTrackedCameraError GetVideoStreamTextureD3D11(ulong hTrackedCamera,EVRTrackedCameraFrameType eFrameType,IntPtr pD3D11DeviceOrResource,ref IntPtr ppD3D11ShaderResourceView,ref CameraVideoStreamFrameHeader_t pFrameHeader,uint nFrameHeaderSize) + { + EVRTrackedCameraError result = FnTable.GetVideoStreamTextureD3D11(hTrackedCamera,eFrameType,pD3D11DeviceOrResource,ref ppD3D11ShaderResourceView,ref pFrameHeader,nFrameHeaderSize); + return result; + } + public EVRTrackedCameraError GetVideoStreamTextureGL(ulong hTrackedCamera,EVRTrackedCameraFrameType eFrameType,ref uint pglTextureId,ref CameraVideoStreamFrameHeader_t pFrameHeader,uint nFrameHeaderSize) + { + pglTextureId = 0; + EVRTrackedCameraError result = FnTable.GetVideoStreamTextureGL(hTrackedCamera,eFrameType,ref pglTextureId,ref pFrameHeader,nFrameHeaderSize); + return result; + } + public EVRTrackedCameraError ReleaseVideoStreamTextureGL(ulong hTrackedCamera,uint glTextureId) + { + EVRTrackedCameraError result = FnTable.ReleaseVideoStreamTextureGL(hTrackedCamera,glTextureId); + return result; + } +} + + +public class CVRApplications +{ + IVRApplications FnTable; + internal CVRApplications(IntPtr pInterface) + { + FnTable = (IVRApplications)Marshal.PtrToStructure(pInterface, typeof(IVRApplications)); + } + public EVRApplicationError AddApplicationManifest(string pchApplicationManifestFullPath,bool bTemporary) + { + EVRApplicationError result = FnTable.AddApplicationManifest(pchApplicationManifestFullPath,bTemporary); + return result; + } + public EVRApplicationError RemoveApplicationManifest(string pchApplicationManifestFullPath) + { + EVRApplicationError result = FnTable.RemoveApplicationManifest(pchApplicationManifestFullPath); + return result; + } + public bool IsApplicationInstalled(string pchAppKey) + { + bool result = FnTable.IsApplicationInstalled(pchAppKey); + return result; + } + public uint GetApplicationCount() + { + uint result = FnTable.GetApplicationCount(); + return result; + } + public EVRApplicationError GetApplicationKeyByIndex(uint unApplicationIndex,System.Text.StringBuilder pchAppKeyBuffer,uint unAppKeyBufferLen) + { + EVRApplicationError result = FnTable.GetApplicationKeyByIndex(unApplicationIndex,pchAppKeyBuffer,unAppKeyBufferLen); + return result; + } + public EVRApplicationError GetApplicationKeyByProcessId(uint unProcessId,string pchAppKeyBuffer,uint unAppKeyBufferLen) + { + EVRApplicationError result = FnTable.GetApplicationKeyByProcessId(unProcessId,pchAppKeyBuffer,unAppKeyBufferLen); + return result; + } + public EVRApplicationError LaunchApplication(string pchAppKey) + { + EVRApplicationError result = FnTable.LaunchApplication(pchAppKey); + return result; + } + public EVRApplicationError LaunchTemplateApplication(string pchTemplateAppKey,string pchNewAppKey,AppOverrideKeys_t [] pKeys) + { + EVRApplicationError result = FnTable.LaunchTemplateApplication(pchTemplateAppKey,pchNewAppKey,pKeys,(uint) pKeys.Length); + return result; + } + public EVRApplicationError LaunchApplicationFromMimeType(string pchMimeType,string pchArgs) + { + EVRApplicationError result = FnTable.LaunchApplicationFromMimeType(pchMimeType,pchArgs); + return result; + } + public EVRApplicationError LaunchDashboardOverlay(string pchAppKey) + { + EVRApplicationError result = FnTable.LaunchDashboardOverlay(pchAppKey); + return result; + } + public bool CancelApplicationLaunch(string pchAppKey) + { + bool result = FnTable.CancelApplicationLaunch(pchAppKey); + return result; + } + public EVRApplicationError IdentifyApplication(uint unProcessId,string pchAppKey) + { + EVRApplicationError result = FnTable.IdentifyApplication(unProcessId,pchAppKey); + return result; + } + public uint GetApplicationProcessId(string pchAppKey) + { + uint result = FnTable.GetApplicationProcessId(pchAppKey); + return result; + } + public string GetApplicationsErrorNameFromEnum(EVRApplicationError error) + { + IntPtr result = FnTable.GetApplicationsErrorNameFromEnum(error); + return Marshal.PtrToStringAnsi(result); + } + public uint GetApplicationPropertyString(string pchAppKey,EVRApplicationProperty eProperty,System.Text.StringBuilder pchPropertyValueBuffer,uint unPropertyValueBufferLen,ref EVRApplicationError peError) + { + uint result = FnTable.GetApplicationPropertyString(pchAppKey,eProperty,pchPropertyValueBuffer,unPropertyValueBufferLen,ref peError); + return result; + } + public bool GetApplicationPropertyBool(string pchAppKey,EVRApplicationProperty eProperty,ref EVRApplicationError peError) + { + bool result = FnTable.GetApplicationPropertyBool(pchAppKey,eProperty,ref peError); + return result; + } + public ulong GetApplicationPropertyUint64(string pchAppKey,EVRApplicationProperty eProperty,ref EVRApplicationError peError) + { + ulong result = FnTable.GetApplicationPropertyUint64(pchAppKey,eProperty,ref peError); + return result; + } + public EVRApplicationError SetApplicationAutoLaunch(string pchAppKey,bool bAutoLaunch) + { + EVRApplicationError result = FnTable.SetApplicationAutoLaunch(pchAppKey,bAutoLaunch); + return result; + } + public bool GetApplicationAutoLaunch(string pchAppKey) + { + bool result = FnTable.GetApplicationAutoLaunch(pchAppKey); + return result; + } + public EVRApplicationError SetDefaultApplicationForMimeType(string pchAppKey,string pchMimeType) + { + EVRApplicationError result = FnTable.SetDefaultApplicationForMimeType(pchAppKey,pchMimeType); + return result; + } + public bool GetDefaultApplicationForMimeType(string pchMimeType,string pchAppKeyBuffer,uint unAppKeyBufferLen) + { + bool result = FnTable.GetDefaultApplicationForMimeType(pchMimeType,pchAppKeyBuffer,unAppKeyBufferLen); + return result; + } + public bool GetApplicationSupportedMimeTypes(string pchAppKey,string pchMimeTypesBuffer,uint unMimeTypesBuffer) + { + bool result = FnTable.GetApplicationSupportedMimeTypes(pchAppKey,pchMimeTypesBuffer,unMimeTypesBuffer); + return result; + } + public uint GetApplicationsThatSupportMimeType(string pchMimeType,string pchAppKeysThatSupportBuffer,uint unAppKeysThatSupportBuffer) + { + uint result = FnTable.GetApplicationsThatSupportMimeType(pchMimeType,pchAppKeysThatSupportBuffer,unAppKeysThatSupportBuffer); + return result; + } + public uint GetApplicationLaunchArguments(uint unHandle,string pchArgs,uint unArgs) + { + uint result = FnTable.GetApplicationLaunchArguments(unHandle,pchArgs,unArgs); + return result; + } + public EVRApplicationError GetStartingApplication(string pchAppKeyBuffer,uint unAppKeyBufferLen) + { + EVRApplicationError result = FnTable.GetStartingApplication(pchAppKeyBuffer,unAppKeyBufferLen); + return result; + } + public EVRApplicationTransitionState GetTransitionState() + { + EVRApplicationTransitionState result = FnTable.GetTransitionState(); + return result; + } + public EVRApplicationError PerformApplicationPrelaunchCheck(string pchAppKey) + { + EVRApplicationError result = FnTable.PerformApplicationPrelaunchCheck(pchAppKey); + return result; + } + public string GetApplicationsTransitionStateNameFromEnum(EVRApplicationTransitionState state) + { + IntPtr result = FnTable.GetApplicationsTransitionStateNameFromEnum(state); + return Marshal.PtrToStringAnsi(result); + } + public bool IsQuitUserPromptRequested() + { + bool result = FnTable.IsQuitUserPromptRequested(); + return result; + } + public EVRApplicationError LaunchInternalProcess(string pchBinaryPath,string pchArguments,string pchWorkingDirectory) + { + EVRApplicationError result = FnTable.LaunchInternalProcess(pchBinaryPath,pchArguments,pchWorkingDirectory); + return result; + } + public uint GetCurrentSceneProcessId() + { + uint result = FnTable.GetCurrentSceneProcessId(); + return result; + } +} + + +public class CVRChaperone +{ + IVRChaperone FnTable; + internal CVRChaperone(IntPtr pInterface) + { + FnTable = (IVRChaperone)Marshal.PtrToStructure(pInterface, typeof(IVRChaperone)); + } + public ChaperoneCalibrationState GetCalibrationState() + { + ChaperoneCalibrationState result = FnTable.GetCalibrationState(); + return result; + } + public bool GetPlayAreaSize(ref float pSizeX,ref float pSizeZ) + { + pSizeX = 0; + pSizeZ = 0; + bool result = FnTable.GetPlayAreaSize(ref pSizeX,ref pSizeZ); + return result; + } + public bool GetPlayAreaRect(ref HmdQuad_t rect) + { + bool result = FnTable.GetPlayAreaRect(ref rect); + return result; + } + public void ReloadInfo() + { + FnTable.ReloadInfo(); + } + public void SetSceneColor(HmdColor_t color) + { + FnTable.SetSceneColor(color); + } + public void GetBoundsColor(ref HmdColor_t pOutputColorArray,int nNumOutputColors,float flCollisionBoundsFadeDistance,ref HmdColor_t pOutputCameraColor) + { + FnTable.GetBoundsColor(ref pOutputColorArray,nNumOutputColors,flCollisionBoundsFadeDistance,ref pOutputCameraColor); + } + public bool AreBoundsVisible() + { + bool result = FnTable.AreBoundsVisible(); + return result; + } + public void ForceBoundsVisible(bool bForce) + { + FnTable.ForceBoundsVisible(bForce); + } +} + + +public class CVRChaperoneSetup +{ + IVRChaperoneSetup FnTable; + internal CVRChaperoneSetup(IntPtr pInterface) + { + FnTable = (IVRChaperoneSetup)Marshal.PtrToStructure(pInterface, typeof(IVRChaperoneSetup)); + } + public bool CommitWorkingCopy(EChaperoneConfigFile configFile) + { + bool result = FnTable.CommitWorkingCopy(configFile); + return result; + } + public void RevertWorkingCopy() + { + FnTable.RevertWorkingCopy(); + } + public bool GetWorkingPlayAreaSize(ref float pSizeX,ref float pSizeZ) + { + pSizeX = 0; + pSizeZ = 0; + bool result = FnTable.GetWorkingPlayAreaSize(ref pSizeX,ref pSizeZ); + return result; + } + public bool GetWorkingPlayAreaRect(ref HmdQuad_t rect) + { + bool result = FnTable.GetWorkingPlayAreaRect(ref rect); + return result; + } + public bool GetWorkingCollisionBoundsInfo(out HmdQuad_t [] pQuadsBuffer) + { + uint punQuadsCount = 0; + bool result = FnTable.GetWorkingCollisionBoundsInfo(null,ref punQuadsCount); + pQuadsBuffer= new HmdQuad_t[punQuadsCount]; + result = FnTable.GetWorkingCollisionBoundsInfo(pQuadsBuffer,ref punQuadsCount); + return result; + } + public bool GetLiveCollisionBoundsInfo(out HmdQuad_t [] pQuadsBuffer) + { + uint punQuadsCount = 0; + bool result = FnTable.GetLiveCollisionBoundsInfo(null,ref punQuadsCount); + pQuadsBuffer= new HmdQuad_t[punQuadsCount]; + result = FnTable.GetLiveCollisionBoundsInfo(pQuadsBuffer,ref punQuadsCount); + return result; + } + public bool GetWorkingSeatedZeroPoseToRawTrackingPose(ref HmdMatrix34_t pmatSeatedZeroPoseToRawTrackingPose) + { + bool result = FnTable.GetWorkingSeatedZeroPoseToRawTrackingPose(ref pmatSeatedZeroPoseToRawTrackingPose); + return result; + } + public bool GetWorkingStandingZeroPoseToRawTrackingPose(ref HmdMatrix34_t pmatStandingZeroPoseToRawTrackingPose) + { + bool result = FnTable.GetWorkingStandingZeroPoseToRawTrackingPose(ref pmatStandingZeroPoseToRawTrackingPose); + return result; + } + public void SetWorkingPlayAreaSize(float sizeX,float sizeZ) + { + FnTable.SetWorkingPlayAreaSize(sizeX,sizeZ); + } + public void SetWorkingCollisionBoundsInfo(HmdQuad_t [] pQuadsBuffer) + { + FnTable.SetWorkingCollisionBoundsInfo(pQuadsBuffer,(uint) pQuadsBuffer.Length); + } + public void SetWorkingSeatedZeroPoseToRawTrackingPose(ref HmdMatrix34_t pMatSeatedZeroPoseToRawTrackingPose) + { + FnTable.SetWorkingSeatedZeroPoseToRawTrackingPose(ref pMatSeatedZeroPoseToRawTrackingPose); + } + public void SetWorkingStandingZeroPoseToRawTrackingPose(ref HmdMatrix34_t pMatStandingZeroPoseToRawTrackingPose) + { + FnTable.SetWorkingStandingZeroPoseToRawTrackingPose(ref pMatStandingZeroPoseToRawTrackingPose); + } + public void ReloadFromDisk(EChaperoneConfigFile configFile) + { + FnTable.ReloadFromDisk(configFile); + } + public bool GetLiveSeatedZeroPoseToRawTrackingPose(ref HmdMatrix34_t pmatSeatedZeroPoseToRawTrackingPose) + { + bool result = FnTable.GetLiveSeatedZeroPoseToRawTrackingPose(ref pmatSeatedZeroPoseToRawTrackingPose); + return result; + } + public void SetWorkingCollisionBoundsTagsInfo(byte [] pTagsBuffer) + { + FnTable.SetWorkingCollisionBoundsTagsInfo(pTagsBuffer,(uint) pTagsBuffer.Length); + } + public bool GetLiveCollisionBoundsTagsInfo(out byte [] pTagsBuffer) + { + uint punTagCount = 0; + bool result = FnTable.GetLiveCollisionBoundsTagsInfo(null,ref punTagCount); + pTagsBuffer= new byte[punTagCount]; + result = FnTable.GetLiveCollisionBoundsTagsInfo(pTagsBuffer,ref punTagCount); + return result; + } + public bool SetWorkingPhysicalBoundsInfo(HmdQuad_t [] pQuadsBuffer) + { + bool result = FnTable.SetWorkingPhysicalBoundsInfo(pQuadsBuffer,(uint) pQuadsBuffer.Length); + return result; + } + public bool GetLivePhysicalBoundsInfo(out HmdQuad_t [] pQuadsBuffer) + { + uint punQuadsCount = 0; + bool result = FnTable.GetLivePhysicalBoundsInfo(null,ref punQuadsCount); + pQuadsBuffer= new HmdQuad_t[punQuadsCount]; + result = FnTable.GetLivePhysicalBoundsInfo(pQuadsBuffer,ref punQuadsCount); + return result; + } + public bool ExportLiveToBuffer(System.Text.StringBuilder pBuffer,ref uint pnBufferLength) + { + pnBufferLength = 0; + bool result = FnTable.ExportLiveToBuffer(pBuffer,ref pnBufferLength); + return result; + } + public bool ImportFromBufferToWorking(string pBuffer,uint nImportFlags) + { + bool result = FnTable.ImportFromBufferToWorking(pBuffer,nImportFlags); + return result; + } +} + + +public class CVRCompositor +{ + IVRCompositor FnTable; + internal CVRCompositor(IntPtr pInterface) + { + FnTable = (IVRCompositor)Marshal.PtrToStructure(pInterface, typeof(IVRCompositor)); + } + public void SetTrackingSpace(ETrackingUniverseOrigin eOrigin) + { + FnTable.SetTrackingSpace(eOrigin); + } + public ETrackingUniverseOrigin GetTrackingSpace() + { + ETrackingUniverseOrigin result = FnTable.GetTrackingSpace(); + return result; + } + public EVRCompositorError WaitGetPoses(TrackedDevicePose_t [] pRenderPoseArray,TrackedDevicePose_t [] pGamePoseArray) + { + EVRCompositorError result = FnTable.WaitGetPoses(pRenderPoseArray,(uint) pRenderPoseArray.Length,pGamePoseArray,(uint) pGamePoseArray.Length); + return result; + } + public EVRCompositorError GetLastPoses(TrackedDevicePose_t [] pRenderPoseArray,TrackedDevicePose_t [] pGamePoseArray) + { + EVRCompositorError result = FnTable.GetLastPoses(pRenderPoseArray,(uint) pRenderPoseArray.Length,pGamePoseArray,(uint) pGamePoseArray.Length); + return result; + } + public EVRCompositorError GetLastPoseForTrackedDeviceIndex(uint unDeviceIndex,ref TrackedDevicePose_t pOutputPose,ref TrackedDevicePose_t pOutputGamePose) + { + EVRCompositorError result = FnTable.GetLastPoseForTrackedDeviceIndex(unDeviceIndex,ref pOutputPose,ref pOutputGamePose); + return result; + } + public EVRCompositorError Submit(EVREye eEye,ref Texture_t pTexture,ref VRTextureBounds_t pBounds,EVRSubmitFlags nSubmitFlags) + { + EVRCompositorError result = FnTable.Submit(eEye,ref pTexture,ref pBounds,nSubmitFlags); + return result; + } + public void ClearLastSubmittedFrame() + { + FnTable.ClearLastSubmittedFrame(); + } + public void PostPresentHandoff() + { + FnTable.PostPresentHandoff(); + } + public bool GetFrameTiming(ref Compositor_FrameTiming pTiming,uint unFramesAgo) + { + bool result = FnTable.GetFrameTiming(ref pTiming,unFramesAgo); + return result; + } + public uint GetFrameTimings(ref Compositor_FrameTiming pTiming,uint nFrames) + { + uint result = FnTable.GetFrameTimings(ref pTiming,nFrames); + return result; + } + public float GetFrameTimeRemaining() + { + float result = FnTable.GetFrameTimeRemaining(); + return result; + } + public void GetCumulativeStats(ref Compositor_CumulativeStats pStats,uint nStatsSizeInBytes) + { + FnTable.GetCumulativeStats(ref pStats,nStatsSizeInBytes); + } + public void FadeToColor(float fSeconds,float fRed,float fGreen,float fBlue,float fAlpha,bool bBackground) + { + FnTable.FadeToColor(fSeconds,fRed,fGreen,fBlue,fAlpha,bBackground); + } + public HmdColor_t GetCurrentFadeColor(bool bBackground) + { + HmdColor_t result = FnTable.GetCurrentFadeColor(bBackground); + return result; + } + public void FadeGrid(float fSeconds,bool bFadeIn) + { + FnTable.FadeGrid(fSeconds,bFadeIn); + } + public float GetCurrentGridAlpha() + { + float result = FnTable.GetCurrentGridAlpha(); + return result; + } + public EVRCompositorError SetSkyboxOverride(Texture_t [] pTextures) + { + EVRCompositorError result = FnTable.SetSkyboxOverride(pTextures,(uint) pTextures.Length); + return result; + } + public void ClearSkyboxOverride() + { + FnTable.ClearSkyboxOverride(); + } + public void CompositorBringToFront() + { + FnTable.CompositorBringToFront(); + } + public void CompositorGoToBack() + { + FnTable.CompositorGoToBack(); + } + public void CompositorQuit() + { + FnTable.CompositorQuit(); + } + public bool IsFullscreen() + { + bool result = FnTable.IsFullscreen(); + return result; + } + public uint GetCurrentSceneFocusProcess() + { + uint result = FnTable.GetCurrentSceneFocusProcess(); + return result; + } + public uint GetLastFrameRenderer() + { + uint result = FnTable.GetLastFrameRenderer(); + return result; + } + public bool CanRenderScene() + { + bool result = FnTable.CanRenderScene(); + return result; + } + public void ShowMirrorWindow() + { + FnTable.ShowMirrorWindow(); + } + public void HideMirrorWindow() + { + FnTable.HideMirrorWindow(); + } + public bool IsMirrorWindowVisible() + { + bool result = FnTable.IsMirrorWindowVisible(); + return result; + } + public void CompositorDumpImages() + { + FnTable.CompositorDumpImages(); + } + public bool ShouldAppRenderWithLowResources() + { + bool result = FnTable.ShouldAppRenderWithLowResources(); + return result; + } + public void ForceInterleavedReprojectionOn(bool bOverride) + { + FnTable.ForceInterleavedReprojectionOn(bOverride); + } + public void ForceReconnectProcess() + { + FnTable.ForceReconnectProcess(); + } + public void SuspendRendering(bool bSuspend) + { + FnTable.SuspendRendering(bSuspend); + } + public EVRCompositorError GetMirrorTextureD3D11(EVREye eEye,IntPtr pD3D11DeviceOrResource,ref IntPtr ppD3D11ShaderResourceView) + { + EVRCompositorError result = FnTable.GetMirrorTextureD3D11(eEye,pD3D11DeviceOrResource,ref ppD3D11ShaderResourceView); + return result; + } + public void ReleaseMirrorTextureD3D11(IntPtr pD3D11ShaderResourceView) + { + FnTable.ReleaseMirrorTextureD3D11(pD3D11ShaderResourceView); + } + public EVRCompositorError GetMirrorTextureGL(EVREye eEye,ref uint pglTextureId,IntPtr pglSharedTextureHandle) + { + pglTextureId = 0; + EVRCompositorError result = FnTable.GetMirrorTextureGL(eEye,ref pglTextureId,pglSharedTextureHandle); + return result; + } + public bool ReleaseSharedGLTexture(uint glTextureId,IntPtr glSharedTextureHandle) + { + bool result = FnTable.ReleaseSharedGLTexture(glTextureId,glSharedTextureHandle); + return result; + } + public void LockGLSharedTextureForAccess(IntPtr glSharedTextureHandle) + { + FnTable.LockGLSharedTextureForAccess(glSharedTextureHandle); + } + public void UnlockGLSharedTextureForAccess(IntPtr glSharedTextureHandle) + { + FnTable.UnlockGLSharedTextureForAccess(glSharedTextureHandle); + } + public uint GetVulkanInstanceExtensionsRequired(System.Text.StringBuilder pchValue,uint unBufferSize) + { + uint result = FnTable.GetVulkanInstanceExtensionsRequired(pchValue,unBufferSize); + return result; + } + public uint GetVulkanDeviceExtensionsRequired(IntPtr pPhysicalDevice,System.Text.StringBuilder pchValue,uint unBufferSize) + { + uint result = FnTable.GetVulkanDeviceExtensionsRequired(pPhysicalDevice,pchValue,unBufferSize); + return result; + } +} + + +public class CVROverlay +{ + IVROverlay FnTable; + internal CVROverlay(IntPtr pInterface) + { + FnTable = (IVROverlay)Marshal.PtrToStructure(pInterface, typeof(IVROverlay)); + } + public EVROverlayError FindOverlay(string pchOverlayKey,ref ulong pOverlayHandle) + { + pOverlayHandle = 0; + EVROverlayError result = FnTable.FindOverlay(pchOverlayKey,ref pOverlayHandle); + return result; + } + public EVROverlayError CreateOverlay(string pchOverlayKey,string pchOverlayName,ref ulong pOverlayHandle) + { + pOverlayHandle = 0; + EVROverlayError result = FnTable.CreateOverlay(pchOverlayKey,pchOverlayName,ref pOverlayHandle); + return result; + } + public EVROverlayError DestroyOverlay(ulong ulOverlayHandle) + { + EVROverlayError result = FnTable.DestroyOverlay(ulOverlayHandle); + return result; + } + public EVROverlayError SetHighQualityOverlay(ulong ulOverlayHandle) + { + EVROverlayError result = FnTable.SetHighQualityOverlay(ulOverlayHandle); + return result; + } + public ulong GetHighQualityOverlay() + { + ulong result = FnTable.GetHighQualityOverlay(); + return result; + } + public uint GetOverlayKey(ulong ulOverlayHandle,System.Text.StringBuilder pchValue,uint unBufferSize,ref EVROverlayError pError) + { + uint result = FnTable.GetOverlayKey(ulOverlayHandle,pchValue,unBufferSize,ref pError); + return result; + } + public uint GetOverlayName(ulong ulOverlayHandle,System.Text.StringBuilder pchValue,uint unBufferSize,ref EVROverlayError pError) + { + uint result = FnTable.GetOverlayName(ulOverlayHandle,pchValue,unBufferSize,ref pError); + return result; + } + public EVROverlayError SetOverlayName(ulong ulOverlayHandle,string pchName) + { + EVROverlayError result = FnTable.SetOverlayName(ulOverlayHandle,pchName); + return result; + } + public EVROverlayError GetOverlayImageData(ulong ulOverlayHandle,IntPtr pvBuffer,uint unBufferSize,ref uint punWidth,ref uint punHeight) + { + punWidth = 0; + punHeight = 0; + EVROverlayError result = FnTable.GetOverlayImageData(ulOverlayHandle,pvBuffer,unBufferSize,ref punWidth,ref punHeight); + return result; + } + public string GetOverlayErrorNameFromEnum(EVROverlayError error) + { + IntPtr result = FnTable.GetOverlayErrorNameFromEnum(error); + return Marshal.PtrToStringAnsi(result); + } + public EVROverlayError SetOverlayRenderingPid(ulong ulOverlayHandle,uint unPID) + { + EVROverlayError result = FnTable.SetOverlayRenderingPid(ulOverlayHandle,unPID); + return result; + } + public uint GetOverlayRenderingPid(ulong ulOverlayHandle) + { + uint result = FnTable.GetOverlayRenderingPid(ulOverlayHandle); + return result; + } + public EVROverlayError SetOverlayFlag(ulong ulOverlayHandle,VROverlayFlags eOverlayFlag,bool bEnabled) + { + EVROverlayError result = FnTable.SetOverlayFlag(ulOverlayHandle,eOverlayFlag,bEnabled); + return result; + } + public EVROverlayError GetOverlayFlag(ulong ulOverlayHandle,VROverlayFlags eOverlayFlag,ref bool pbEnabled) + { + pbEnabled = false; + EVROverlayError result = FnTable.GetOverlayFlag(ulOverlayHandle,eOverlayFlag,ref pbEnabled); + return result; + } + public EVROverlayError SetOverlayColor(ulong ulOverlayHandle,float fRed,float fGreen,float fBlue) + { + EVROverlayError result = FnTable.SetOverlayColor(ulOverlayHandle,fRed,fGreen,fBlue); + return result; + } + public EVROverlayError GetOverlayColor(ulong ulOverlayHandle,ref float pfRed,ref float pfGreen,ref float pfBlue) + { + pfRed = 0; + pfGreen = 0; + pfBlue = 0; + EVROverlayError result = FnTable.GetOverlayColor(ulOverlayHandle,ref pfRed,ref pfGreen,ref pfBlue); + return result; + } + public EVROverlayError SetOverlayAlpha(ulong ulOverlayHandle,float fAlpha) + { + EVROverlayError result = FnTable.SetOverlayAlpha(ulOverlayHandle,fAlpha); + return result; + } + public EVROverlayError GetOverlayAlpha(ulong ulOverlayHandle,ref float pfAlpha) + { + pfAlpha = 0; + EVROverlayError result = FnTable.GetOverlayAlpha(ulOverlayHandle,ref pfAlpha); + return result; + } + public EVROverlayError SetOverlayTexelAspect(ulong ulOverlayHandle,float fTexelAspect) + { + EVROverlayError result = FnTable.SetOverlayTexelAspect(ulOverlayHandle,fTexelAspect); + return result; + } + public EVROverlayError GetOverlayTexelAspect(ulong ulOverlayHandle,ref float pfTexelAspect) + { + pfTexelAspect = 0; + EVROverlayError result = FnTable.GetOverlayTexelAspect(ulOverlayHandle,ref pfTexelAspect); + return result; + } + public EVROverlayError SetOverlaySortOrder(ulong ulOverlayHandle,uint unSortOrder) + { + EVROverlayError result = FnTable.SetOverlaySortOrder(ulOverlayHandle,unSortOrder); + return result; + } + public EVROverlayError GetOverlaySortOrder(ulong ulOverlayHandle,ref uint punSortOrder) + { + punSortOrder = 0; + EVROverlayError result = FnTable.GetOverlaySortOrder(ulOverlayHandle,ref punSortOrder); + return result; + } + public EVROverlayError SetOverlayWidthInMeters(ulong ulOverlayHandle,float fWidthInMeters) + { + EVROverlayError result = FnTable.SetOverlayWidthInMeters(ulOverlayHandle,fWidthInMeters); + return result; + } + public EVROverlayError GetOverlayWidthInMeters(ulong ulOverlayHandle,ref float pfWidthInMeters) + { + pfWidthInMeters = 0; + EVROverlayError result = FnTable.GetOverlayWidthInMeters(ulOverlayHandle,ref pfWidthInMeters); + return result; + } + public EVROverlayError SetOverlayAutoCurveDistanceRangeInMeters(ulong ulOverlayHandle,float fMinDistanceInMeters,float fMaxDistanceInMeters) + { + EVROverlayError result = FnTable.SetOverlayAutoCurveDistanceRangeInMeters(ulOverlayHandle,fMinDistanceInMeters,fMaxDistanceInMeters); + return result; + } + public EVROverlayError GetOverlayAutoCurveDistanceRangeInMeters(ulong ulOverlayHandle,ref float pfMinDistanceInMeters,ref float pfMaxDistanceInMeters) + { + pfMinDistanceInMeters = 0; + pfMaxDistanceInMeters = 0; + EVROverlayError result = FnTable.GetOverlayAutoCurveDistanceRangeInMeters(ulOverlayHandle,ref pfMinDistanceInMeters,ref pfMaxDistanceInMeters); + return result; + } + public EVROverlayError SetOverlayTextureColorSpace(ulong ulOverlayHandle,EColorSpace eTextureColorSpace) + { + EVROverlayError result = FnTable.SetOverlayTextureColorSpace(ulOverlayHandle,eTextureColorSpace); + return result; + } + public EVROverlayError GetOverlayTextureColorSpace(ulong ulOverlayHandle,ref EColorSpace peTextureColorSpace) + { + EVROverlayError result = FnTable.GetOverlayTextureColorSpace(ulOverlayHandle,ref peTextureColorSpace); + return result; + } + public EVROverlayError SetOverlayTextureBounds(ulong ulOverlayHandle,ref VRTextureBounds_t pOverlayTextureBounds) + { + EVROverlayError result = FnTable.SetOverlayTextureBounds(ulOverlayHandle,ref pOverlayTextureBounds); + return result; + } + public EVROverlayError GetOverlayTextureBounds(ulong ulOverlayHandle,ref VRTextureBounds_t pOverlayTextureBounds) + { + EVROverlayError result = FnTable.GetOverlayTextureBounds(ulOverlayHandle,ref pOverlayTextureBounds); + return result; + } + public uint GetOverlayRenderModel(ulong ulOverlayHandle,string pchValue,uint unBufferSize,ref HmdColor_t pColor,ref EVROverlayError pError) + { + uint result = FnTable.GetOverlayRenderModel(ulOverlayHandle,pchValue,unBufferSize,ref pColor,ref pError); + return result; + } + public EVROverlayError SetOverlayRenderModel(ulong ulOverlayHandle,string pchRenderModel,ref HmdColor_t pColor) + { + EVROverlayError result = FnTable.SetOverlayRenderModel(ulOverlayHandle,pchRenderModel,ref pColor); + return result; + } + public EVROverlayError GetOverlayTransformType(ulong ulOverlayHandle,ref VROverlayTransformType peTransformType) + { + EVROverlayError result = FnTable.GetOverlayTransformType(ulOverlayHandle,ref peTransformType); + return result; + } + public EVROverlayError SetOverlayTransformAbsolute(ulong ulOverlayHandle,ETrackingUniverseOrigin eTrackingOrigin,ref HmdMatrix34_t pmatTrackingOriginToOverlayTransform) + { + EVROverlayError result = FnTable.SetOverlayTransformAbsolute(ulOverlayHandle,eTrackingOrigin,ref pmatTrackingOriginToOverlayTransform); + return result; + } + public EVROverlayError GetOverlayTransformAbsolute(ulong ulOverlayHandle,ref ETrackingUniverseOrigin peTrackingOrigin,ref HmdMatrix34_t pmatTrackingOriginToOverlayTransform) + { + EVROverlayError result = FnTable.GetOverlayTransformAbsolute(ulOverlayHandle,ref peTrackingOrigin,ref pmatTrackingOriginToOverlayTransform); + return result; + } + public EVROverlayError SetOverlayTransformTrackedDeviceRelative(ulong ulOverlayHandle,uint unTrackedDevice,ref HmdMatrix34_t pmatTrackedDeviceToOverlayTransform) + { + EVROverlayError result = FnTable.SetOverlayTransformTrackedDeviceRelative(ulOverlayHandle,unTrackedDevice,ref pmatTrackedDeviceToOverlayTransform); + return result; + } + public EVROverlayError GetOverlayTransformTrackedDeviceRelative(ulong ulOverlayHandle,ref uint punTrackedDevice,ref HmdMatrix34_t pmatTrackedDeviceToOverlayTransform) + { + punTrackedDevice = 0; + EVROverlayError result = FnTable.GetOverlayTransformTrackedDeviceRelative(ulOverlayHandle,ref punTrackedDevice,ref pmatTrackedDeviceToOverlayTransform); + return result; + } + public EVROverlayError SetOverlayTransformTrackedDeviceComponent(ulong ulOverlayHandle,uint unDeviceIndex,string pchComponentName) + { + EVROverlayError result = FnTable.SetOverlayTransformTrackedDeviceComponent(ulOverlayHandle,unDeviceIndex,pchComponentName); + return result; + } + public EVROverlayError GetOverlayTransformTrackedDeviceComponent(ulong ulOverlayHandle,ref uint punDeviceIndex,string pchComponentName,uint unComponentNameSize) + { + punDeviceIndex = 0; + EVROverlayError result = FnTable.GetOverlayTransformTrackedDeviceComponent(ulOverlayHandle,ref punDeviceIndex,pchComponentName,unComponentNameSize); + return result; + } + public EVROverlayError GetOverlayTransformOverlayRelative(ulong ulOverlayHandle,ref ulong ulOverlayHandleParent,ref HmdMatrix34_t pmatParentOverlayToOverlayTransform) + { + ulOverlayHandleParent = 0; + EVROverlayError result = FnTable.GetOverlayTransformOverlayRelative(ulOverlayHandle,ref ulOverlayHandleParent,ref pmatParentOverlayToOverlayTransform); + return result; + } + public EVROverlayError SetOverlayTransformOverlayRelative(ulong ulOverlayHandle,ulong ulOverlayHandleParent,ref HmdMatrix34_t pmatParentOverlayToOverlayTransform) + { + EVROverlayError result = FnTable.SetOverlayTransformOverlayRelative(ulOverlayHandle,ulOverlayHandleParent,ref pmatParentOverlayToOverlayTransform); + return result; + } + public EVROverlayError ShowOverlay(ulong ulOverlayHandle) + { + EVROverlayError result = FnTable.ShowOverlay(ulOverlayHandle); + return result; + } + public EVROverlayError HideOverlay(ulong ulOverlayHandle) + { + EVROverlayError result = FnTable.HideOverlay(ulOverlayHandle); + return result; + } + public bool IsOverlayVisible(ulong ulOverlayHandle) + { + bool result = FnTable.IsOverlayVisible(ulOverlayHandle); + return result; + } + public EVROverlayError GetTransformForOverlayCoordinates(ulong ulOverlayHandle,ETrackingUniverseOrigin eTrackingOrigin,HmdVector2_t coordinatesInOverlay,ref HmdMatrix34_t pmatTransform) + { + EVROverlayError result = FnTable.GetTransformForOverlayCoordinates(ulOverlayHandle,eTrackingOrigin,coordinatesInOverlay,ref pmatTransform); + return result; + } +// This is a terrible hack to workaround the fact that VRControllerState_t and VREvent_t were +// originally mis-compiled with the wrong packing for Linux and OSX. + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _PollNextOverlayEventPacked(ulong ulOverlayHandle,ref VREvent_t_Packed pEvent,uint uncbVREvent); + [StructLayout(LayoutKind.Explicit)] + struct PollNextOverlayEventUnion + { + [FieldOffset(0)] + public IVROverlay._PollNextOverlayEvent pPollNextOverlayEvent; + [FieldOffset(0)] + public _PollNextOverlayEventPacked pPollNextOverlayEventPacked; + } + public bool PollNextOverlayEvent(ulong ulOverlayHandle,ref VREvent_t pEvent,uint uncbVREvent) + { + if ((System.Environment.OSVersion.Platform == System.PlatformID.MacOSX) || + (System.Environment.OSVersion.Platform == System.PlatformID.Unix)) + { + PollNextOverlayEventUnion u; + VREvent_t_Packed event_packed = new VREvent_t_Packed(); + u.pPollNextOverlayEventPacked = null; + u.pPollNextOverlayEvent = FnTable.PollNextOverlayEvent; + bool packed_result = u.pPollNextOverlayEventPacked(ulOverlayHandle,ref event_packed,(uint)System.Runtime.InteropServices.Marshal.SizeOf(typeof(VREvent_t_Packed))); + + event_packed.Unpack(ref pEvent); + return packed_result; + } + bool result = FnTable.PollNextOverlayEvent(ulOverlayHandle,ref pEvent,uncbVREvent); + return result; + } + public EVROverlayError GetOverlayInputMethod(ulong ulOverlayHandle,ref VROverlayInputMethod peInputMethod) + { + EVROverlayError result = FnTable.GetOverlayInputMethod(ulOverlayHandle,ref peInputMethod); + return result; + } + public EVROverlayError SetOverlayInputMethod(ulong ulOverlayHandle,VROverlayInputMethod eInputMethod) + { + EVROverlayError result = FnTable.SetOverlayInputMethod(ulOverlayHandle,eInputMethod); + return result; + } + public EVROverlayError GetOverlayMouseScale(ulong ulOverlayHandle,ref HmdVector2_t pvecMouseScale) + { + EVROverlayError result = FnTable.GetOverlayMouseScale(ulOverlayHandle,ref pvecMouseScale); + return result; + } + public EVROverlayError SetOverlayMouseScale(ulong ulOverlayHandle,ref HmdVector2_t pvecMouseScale) + { + EVROverlayError result = FnTable.SetOverlayMouseScale(ulOverlayHandle,ref pvecMouseScale); + return result; + } + public bool ComputeOverlayIntersection(ulong ulOverlayHandle,ref VROverlayIntersectionParams_t pParams,ref VROverlayIntersectionResults_t pResults) + { + bool result = FnTable.ComputeOverlayIntersection(ulOverlayHandle,ref pParams,ref pResults); + return result; + } + public bool HandleControllerOverlayInteractionAsMouse(ulong ulOverlayHandle,uint unControllerDeviceIndex) + { + bool result = FnTable.HandleControllerOverlayInteractionAsMouse(ulOverlayHandle,unControllerDeviceIndex); + return result; + } + public bool IsHoverTargetOverlay(ulong ulOverlayHandle) + { + bool result = FnTable.IsHoverTargetOverlay(ulOverlayHandle); + return result; + } + public ulong GetGamepadFocusOverlay() + { + ulong result = FnTable.GetGamepadFocusOverlay(); + return result; + } + public EVROverlayError SetGamepadFocusOverlay(ulong ulNewFocusOverlay) + { + EVROverlayError result = FnTable.SetGamepadFocusOverlay(ulNewFocusOverlay); + return result; + } + public EVROverlayError SetOverlayNeighbor(EOverlayDirection eDirection,ulong ulFrom,ulong ulTo) + { + EVROverlayError result = FnTable.SetOverlayNeighbor(eDirection,ulFrom,ulTo); + return result; + } + public EVROverlayError MoveGamepadFocusToNeighbor(EOverlayDirection eDirection,ulong ulFrom) + { + EVROverlayError result = FnTable.MoveGamepadFocusToNeighbor(eDirection,ulFrom); + return result; + } + public EVROverlayError SetOverlayTexture(ulong ulOverlayHandle,ref Texture_t pTexture) + { + EVROverlayError result = FnTable.SetOverlayTexture(ulOverlayHandle,ref pTexture); + return result; + } + public EVROverlayError ClearOverlayTexture(ulong ulOverlayHandle) + { + EVROverlayError result = FnTable.ClearOverlayTexture(ulOverlayHandle); + return result; + } + public EVROverlayError SetOverlayRaw(ulong ulOverlayHandle,IntPtr pvBuffer,uint unWidth,uint unHeight,uint unDepth) + { + EVROverlayError result = FnTable.SetOverlayRaw(ulOverlayHandle,pvBuffer,unWidth,unHeight,unDepth); + return result; + } + public EVROverlayError SetOverlayFromFile(ulong ulOverlayHandle,string pchFilePath) + { + EVROverlayError result = FnTable.SetOverlayFromFile(ulOverlayHandle,pchFilePath); + return result; + } + public EVROverlayError GetOverlayTexture(ulong ulOverlayHandle,ref IntPtr pNativeTextureHandle,IntPtr pNativeTextureRef,ref uint pWidth,ref uint pHeight,ref uint pNativeFormat,ref ETextureType pAPIType,ref EColorSpace pColorSpace,ref VRTextureBounds_t pTextureBounds) + { + pWidth = 0; + pHeight = 0; + pNativeFormat = 0; + EVROverlayError result = FnTable.GetOverlayTexture(ulOverlayHandle,ref pNativeTextureHandle,pNativeTextureRef,ref pWidth,ref pHeight,ref pNativeFormat,ref pAPIType,ref pColorSpace,ref pTextureBounds); + return result; + } + public EVROverlayError ReleaseNativeOverlayHandle(ulong ulOverlayHandle,IntPtr pNativeTextureHandle) + { + EVROverlayError result = FnTable.ReleaseNativeOverlayHandle(ulOverlayHandle,pNativeTextureHandle); + return result; + } + public EVROverlayError GetOverlayTextureSize(ulong ulOverlayHandle,ref uint pWidth,ref uint pHeight) + { + pWidth = 0; + pHeight = 0; + EVROverlayError result = FnTable.GetOverlayTextureSize(ulOverlayHandle,ref pWidth,ref pHeight); + return result; + } + public EVROverlayError CreateDashboardOverlay(string pchOverlayKey,string pchOverlayFriendlyName,ref ulong pMainHandle,ref ulong pThumbnailHandle) + { + pMainHandle = 0; + pThumbnailHandle = 0; + EVROverlayError result = FnTable.CreateDashboardOverlay(pchOverlayKey,pchOverlayFriendlyName,ref pMainHandle,ref pThumbnailHandle); + return result; + } + public bool IsDashboardVisible() + { + bool result = FnTable.IsDashboardVisible(); + return result; + } + public bool IsActiveDashboardOverlay(ulong ulOverlayHandle) + { + bool result = FnTable.IsActiveDashboardOverlay(ulOverlayHandle); + return result; + } + public EVROverlayError SetDashboardOverlaySceneProcess(ulong ulOverlayHandle,uint unProcessId) + { + EVROverlayError result = FnTable.SetDashboardOverlaySceneProcess(ulOverlayHandle,unProcessId); + return result; + } + public EVROverlayError GetDashboardOverlaySceneProcess(ulong ulOverlayHandle,ref uint punProcessId) + { + punProcessId = 0; + EVROverlayError result = FnTable.GetDashboardOverlaySceneProcess(ulOverlayHandle,ref punProcessId); + return result; + } + public void ShowDashboard(string pchOverlayToShow) + { + FnTable.ShowDashboard(pchOverlayToShow); + } + public uint GetPrimaryDashboardDevice() + { + uint result = FnTable.GetPrimaryDashboardDevice(); + return result; + } + public EVROverlayError ShowKeyboard(int eInputMode,int eLineInputMode,string pchDescription,uint unCharMax,string pchExistingText,bool bUseMinimalMode,ulong uUserValue) + { + EVROverlayError result = FnTable.ShowKeyboard(eInputMode,eLineInputMode,pchDescription,unCharMax,pchExistingText,bUseMinimalMode,uUserValue); + return result; + } + public EVROverlayError ShowKeyboardForOverlay(ulong ulOverlayHandle,int eInputMode,int eLineInputMode,string pchDescription,uint unCharMax,string pchExistingText,bool bUseMinimalMode,ulong uUserValue) + { + EVROverlayError result = FnTable.ShowKeyboardForOverlay(ulOverlayHandle,eInputMode,eLineInputMode,pchDescription,unCharMax,pchExistingText,bUseMinimalMode,uUserValue); + return result; + } + public uint GetKeyboardText(System.Text.StringBuilder pchText,uint cchText) + { + uint result = FnTable.GetKeyboardText(pchText,cchText); + return result; + } + public void HideKeyboard() + { + FnTable.HideKeyboard(); + } + public void SetKeyboardTransformAbsolute(ETrackingUniverseOrigin eTrackingOrigin,ref HmdMatrix34_t pmatTrackingOriginToKeyboardTransform) + { + FnTable.SetKeyboardTransformAbsolute(eTrackingOrigin,ref pmatTrackingOriginToKeyboardTransform); + } + public void SetKeyboardPositionForOverlay(ulong ulOverlayHandle,HmdRect2_t avoidRect) + { + FnTable.SetKeyboardPositionForOverlay(ulOverlayHandle,avoidRect); + } + public EVROverlayError SetOverlayIntersectionMask(ulong ulOverlayHandle,ref VROverlayIntersectionMaskPrimitive_t pMaskPrimitives,uint unNumMaskPrimitives,uint unPrimitiveSize) + { + EVROverlayError result = FnTable.SetOverlayIntersectionMask(ulOverlayHandle,ref pMaskPrimitives,unNumMaskPrimitives,unPrimitiveSize); + return result; + } + public EVROverlayError GetOverlayFlags(ulong ulOverlayHandle,ref uint pFlags) + { + pFlags = 0; + EVROverlayError result = FnTable.GetOverlayFlags(ulOverlayHandle,ref pFlags); + return result; + } + public VRMessageOverlayResponse ShowMessageOverlay(string pchText,string pchCaption,string pchButton0Text,string pchButton1Text,string pchButton2Text,string pchButton3Text) + { + VRMessageOverlayResponse result = FnTable.ShowMessageOverlay(pchText,pchCaption,pchButton0Text,pchButton1Text,pchButton2Text,pchButton3Text); + return result; + } +} + + +public class CVRRenderModels +{ + IVRRenderModels FnTable; + internal CVRRenderModels(IntPtr pInterface) + { + FnTable = (IVRRenderModels)Marshal.PtrToStructure(pInterface, typeof(IVRRenderModels)); + } + public EVRRenderModelError LoadRenderModel_Async(string pchRenderModelName,ref IntPtr ppRenderModel) + { + EVRRenderModelError result = FnTable.LoadRenderModel_Async(pchRenderModelName,ref ppRenderModel); + return result; + } + public void FreeRenderModel(IntPtr pRenderModel) + { + FnTable.FreeRenderModel(pRenderModel); + } + public EVRRenderModelError LoadTexture_Async(int textureId,ref IntPtr ppTexture) + { + EVRRenderModelError result = FnTable.LoadTexture_Async(textureId,ref ppTexture); + return result; + } + public void FreeTexture(IntPtr pTexture) + { + FnTable.FreeTexture(pTexture); + } + public EVRRenderModelError LoadTextureD3D11_Async(int textureId,IntPtr pD3D11Device,ref IntPtr ppD3D11Texture2D) + { + EVRRenderModelError result = FnTable.LoadTextureD3D11_Async(textureId,pD3D11Device,ref ppD3D11Texture2D); + return result; + } + public EVRRenderModelError LoadIntoTextureD3D11_Async(int textureId,IntPtr pDstTexture) + { + EVRRenderModelError result = FnTable.LoadIntoTextureD3D11_Async(textureId,pDstTexture); + return result; + } + public void FreeTextureD3D11(IntPtr pD3D11Texture2D) + { + FnTable.FreeTextureD3D11(pD3D11Texture2D); + } + public uint GetRenderModelName(uint unRenderModelIndex,System.Text.StringBuilder pchRenderModelName,uint unRenderModelNameLen) + { + uint result = FnTable.GetRenderModelName(unRenderModelIndex,pchRenderModelName,unRenderModelNameLen); + return result; + } + public uint GetRenderModelCount() + { + uint result = FnTable.GetRenderModelCount(); + return result; + } + public uint GetComponentCount(string pchRenderModelName) + { + uint result = FnTable.GetComponentCount(pchRenderModelName); + return result; + } + public uint GetComponentName(string pchRenderModelName,uint unComponentIndex,System.Text.StringBuilder pchComponentName,uint unComponentNameLen) + { + uint result = FnTable.GetComponentName(pchRenderModelName,unComponentIndex,pchComponentName,unComponentNameLen); + return result; + } + public ulong GetComponentButtonMask(string pchRenderModelName,string pchComponentName) + { + ulong result = FnTable.GetComponentButtonMask(pchRenderModelName,pchComponentName); + return result; + } + public uint GetComponentRenderModelName(string pchRenderModelName,string pchComponentName,System.Text.StringBuilder pchComponentRenderModelName,uint unComponentRenderModelNameLen) + { + uint result = FnTable.GetComponentRenderModelName(pchRenderModelName,pchComponentName,pchComponentRenderModelName,unComponentRenderModelNameLen); + return result; + } +// This is a terrible hack to workaround the fact that VRControllerState_t and VREvent_t were +// originally mis-compiled with the wrong packing for Linux and OSX. + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetComponentStatePacked(string pchRenderModelName,string pchComponentName,ref VRControllerState_t_Packed pControllerState,ref RenderModel_ControllerMode_State_t pState,ref RenderModel_ComponentState_t pComponentState); + [StructLayout(LayoutKind.Explicit)] + struct GetComponentStateUnion + { + [FieldOffset(0)] + public IVRRenderModels._GetComponentState pGetComponentState; + [FieldOffset(0)] + public _GetComponentStatePacked pGetComponentStatePacked; + } + public bool GetComponentState(string pchRenderModelName,string pchComponentName,ref VRControllerState_t pControllerState,ref RenderModel_ControllerMode_State_t pState,ref RenderModel_ComponentState_t pComponentState) + { + if ((System.Environment.OSVersion.Platform == System.PlatformID.MacOSX) || + (System.Environment.OSVersion.Platform == System.PlatformID.Unix)) + { + GetComponentStateUnion u; + VRControllerState_t_Packed state_packed = new VRControllerState_t_Packed(pControllerState); + u.pGetComponentStatePacked = null; + u.pGetComponentState = FnTable.GetComponentState; + bool packed_result = u.pGetComponentStatePacked(pchRenderModelName,pchComponentName,ref state_packed,ref pState,ref pComponentState); + + state_packed.Unpack(ref pControllerState); + return packed_result; + } + bool result = FnTable.GetComponentState(pchRenderModelName,pchComponentName,ref pControllerState,ref pState,ref pComponentState); + return result; + } + public bool RenderModelHasComponent(string pchRenderModelName,string pchComponentName) + { + bool result = FnTable.RenderModelHasComponent(pchRenderModelName,pchComponentName); + return result; + } + public uint GetRenderModelThumbnailURL(string pchRenderModelName,System.Text.StringBuilder pchThumbnailURL,uint unThumbnailURLLen,ref EVRRenderModelError peError) + { + uint result = FnTable.GetRenderModelThumbnailURL(pchRenderModelName,pchThumbnailURL,unThumbnailURLLen,ref peError); + return result; + } + public uint GetRenderModelOriginalPath(string pchRenderModelName,System.Text.StringBuilder pchOriginalPath,uint unOriginalPathLen,ref EVRRenderModelError peError) + { + uint result = FnTable.GetRenderModelOriginalPath(pchRenderModelName,pchOriginalPath,unOriginalPathLen,ref peError); + return result; + } + public string GetRenderModelErrorNameFromEnum(EVRRenderModelError error) + { + IntPtr result = FnTable.GetRenderModelErrorNameFromEnum(error); + return Marshal.PtrToStringAnsi(result); + } +} + + +public class CVRNotifications +{ + IVRNotifications FnTable; + internal CVRNotifications(IntPtr pInterface) + { + FnTable = (IVRNotifications)Marshal.PtrToStructure(pInterface, typeof(IVRNotifications)); + } + public EVRNotificationError CreateNotification(ulong ulOverlayHandle,ulong ulUserValue,EVRNotificationType type,string pchText,EVRNotificationStyle style,ref NotificationBitmap_t pImage,ref uint pNotificationId) + { + pNotificationId = 0; + EVRNotificationError result = FnTable.CreateNotification(ulOverlayHandle,ulUserValue,type,pchText,style,ref pImage,ref pNotificationId); + return result; + } + public EVRNotificationError RemoveNotification(uint notificationId) + { + EVRNotificationError result = FnTable.RemoveNotification(notificationId); + return result; + } +} + + +public class CVRSettings +{ + IVRSettings FnTable; + internal CVRSettings(IntPtr pInterface) + { + FnTable = (IVRSettings)Marshal.PtrToStructure(pInterface, typeof(IVRSettings)); + } + public string GetSettingsErrorNameFromEnum(EVRSettingsError eError) + { + IntPtr result = FnTable.GetSettingsErrorNameFromEnum(eError); + return Marshal.PtrToStringAnsi(result); + } + public bool Sync(bool bForce,ref EVRSettingsError peError) + { + bool result = FnTable.Sync(bForce,ref peError); + return result; + } + public void SetBool(string pchSection,string pchSettingsKey,bool bValue,ref EVRSettingsError peError) + { + FnTable.SetBool(pchSection,pchSettingsKey,bValue,ref peError); + } + public void SetInt32(string pchSection,string pchSettingsKey,int nValue,ref EVRSettingsError peError) + { + FnTable.SetInt32(pchSection,pchSettingsKey,nValue,ref peError); + } + public void SetFloat(string pchSection,string pchSettingsKey,float flValue,ref EVRSettingsError peError) + { + FnTable.SetFloat(pchSection,pchSettingsKey,flValue,ref peError); + } + public void SetString(string pchSection,string pchSettingsKey,string pchValue,ref EVRSettingsError peError) + { + FnTable.SetString(pchSection,pchSettingsKey,pchValue,ref peError); + } + public bool GetBool(string pchSection,string pchSettingsKey,ref EVRSettingsError peError) + { + bool result = FnTable.GetBool(pchSection,pchSettingsKey,ref peError); + return result; + } + public int GetInt32(string pchSection,string pchSettingsKey,ref EVRSettingsError peError) + { + int result = FnTable.GetInt32(pchSection,pchSettingsKey,ref peError); + return result; + } + public float GetFloat(string pchSection,string pchSettingsKey,ref EVRSettingsError peError) + { + float result = FnTable.GetFloat(pchSection,pchSettingsKey,ref peError); + return result; + } + public void GetString(string pchSection,string pchSettingsKey,System.Text.StringBuilder pchValue,uint unValueLen,ref EVRSettingsError peError) + { + FnTable.GetString(pchSection,pchSettingsKey,pchValue,unValueLen,ref peError); + } + public void RemoveSection(string pchSection,ref EVRSettingsError peError) + { + FnTable.RemoveSection(pchSection,ref peError); + } + public void RemoveKeyInSection(string pchSection,string pchSettingsKey,ref EVRSettingsError peError) + { + FnTable.RemoveKeyInSection(pchSection,pchSettingsKey,ref peError); + } +} + + +public class CVRScreenshots +{ + IVRScreenshots FnTable; + internal CVRScreenshots(IntPtr pInterface) + { + FnTable = (IVRScreenshots)Marshal.PtrToStructure(pInterface, typeof(IVRScreenshots)); + } + public EVRScreenshotError RequestScreenshot(ref uint pOutScreenshotHandle,EVRScreenshotType type,string pchPreviewFilename,string pchVRFilename) + { + pOutScreenshotHandle = 0; + EVRScreenshotError result = FnTable.RequestScreenshot(ref pOutScreenshotHandle,type,pchPreviewFilename,pchVRFilename); + return result; + } + public EVRScreenshotError HookScreenshot(EVRScreenshotType [] pSupportedTypes) + { + EVRScreenshotError result = FnTable.HookScreenshot(pSupportedTypes,(int) pSupportedTypes.Length); + return result; + } + public EVRScreenshotType GetScreenshotPropertyType(uint screenshotHandle,ref EVRScreenshotError pError) + { + EVRScreenshotType result = FnTable.GetScreenshotPropertyType(screenshotHandle,ref pError); + return result; + } + public uint GetScreenshotPropertyFilename(uint screenshotHandle,EVRScreenshotPropertyFilenames filenameType,System.Text.StringBuilder pchFilename,uint cchFilename,ref EVRScreenshotError pError) + { + uint result = FnTable.GetScreenshotPropertyFilename(screenshotHandle,filenameType,pchFilename,cchFilename,ref pError); + return result; + } + public EVRScreenshotError UpdateScreenshotProgress(uint screenshotHandle,float flProgress) + { + EVRScreenshotError result = FnTable.UpdateScreenshotProgress(screenshotHandle,flProgress); + return result; + } + public EVRScreenshotError TakeStereoScreenshot(ref uint pOutScreenshotHandle,string pchPreviewFilename,string pchVRFilename) + { + pOutScreenshotHandle = 0; + EVRScreenshotError result = FnTable.TakeStereoScreenshot(ref pOutScreenshotHandle,pchPreviewFilename,pchVRFilename); + return result; + } + public EVRScreenshotError SubmitScreenshot(uint screenshotHandle,EVRScreenshotType type,string pchSourcePreviewFilename,string pchSourceVRFilename) + { + EVRScreenshotError result = FnTable.SubmitScreenshot(screenshotHandle,type,pchSourcePreviewFilename,pchSourceVRFilename); + return result; + } +} + + +public class CVRResources +{ + IVRResources FnTable; + internal CVRResources(IntPtr pInterface) + { + FnTable = (IVRResources)Marshal.PtrToStructure(pInterface, typeof(IVRResources)); + } + public uint LoadSharedResource(string pchResourceName,string pchBuffer,uint unBufferLen) + { + uint result = FnTable.LoadSharedResource(pchResourceName,pchBuffer,unBufferLen); + return result; + } + public uint GetResourceFullPath(string pchResourceName,string pchResourceTypeDirectory,string pchPathBuffer,uint unBufferLen) + { + uint result = FnTable.GetResourceFullPath(pchResourceName,pchResourceTypeDirectory,pchPathBuffer,unBufferLen); + return result; + } +} + + +public class CVRDriverManager +{ + IVRDriverManager FnTable; + internal CVRDriverManager(IntPtr pInterface) + { + FnTable = (IVRDriverManager)Marshal.PtrToStructure(pInterface, typeof(IVRDriverManager)); + } + public uint GetDriverCount() + { + uint result = FnTable.GetDriverCount(); + return result; + } + public uint GetDriverName(uint nDriver,System.Text.StringBuilder pchValue,uint unBufferSize) + { + uint result = FnTable.GetDriverName(nDriver,pchValue,unBufferSize); + return result; + } +} + + +public class OpenVRInterop +{ + [DllImportAttribute("openvr_api", EntryPoint = "VR_InitInternal", CallingConvention = CallingConvention.Cdecl)] + internal static extern uint InitInternal(ref EVRInitError peError, EVRApplicationType eApplicationType); + [DllImportAttribute("openvr_api", EntryPoint = "VR_ShutdownInternal", CallingConvention = CallingConvention.Cdecl)] + internal static extern void ShutdownInternal(); + [DllImportAttribute("openvr_api", EntryPoint = "VR_IsHmdPresent", CallingConvention = CallingConvention.Cdecl)] + internal static extern bool IsHmdPresent(); + [DllImportAttribute("openvr_api", EntryPoint = "VR_IsRuntimeInstalled", CallingConvention = CallingConvention.Cdecl)] + internal static extern bool IsRuntimeInstalled(); + [DllImportAttribute("openvr_api", EntryPoint = "VR_GetStringForHmdError", CallingConvention = CallingConvention.Cdecl)] + internal static extern IntPtr GetStringForHmdError(EVRInitError error); + [DllImportAttribute("openvr_api", EntryPoint = "VR_GetGenericInterface", CallingConvention = CallingConvention.Cdecl)] + internal static extern IntPtr GetGenericInterface([In, MarshalAs(UnmanagedType.LPStr)] string pchInterfaceVersion, ref EVRInitError peError); + [DllImportAttribute("openvr_api", EntryPoint = "VR_IsInterfaceVersionValid", CallingConvention = CallingConvention.Cdecl)] + internal static extern bool IsInterfaceVersionValid([In, MarshalAs(UnmanagedType.LPStr)] string pchInterfaceVersion); + [DllImportAttribute("openvr_api", EntryPoint = "VR_GetInitToken", CallingConvention = CallingConvention.Cdecl)] + internal static extern uint GetInitToken(); +} + + +public enum EVREye +{ + Eye_Left = 0, + Eye_Right = 1, +} +public enum ETextureType +{ + DirectX = 0, + OpenGL = 1, + Vulkan = 2, + IOSurface = 3, + DirectX12 = 4, +} +public enum EColorSpace +{ + Auto = 0, + Gamma = 1, + Linear = 2, +} +public enum ETrackingResult +{ + Uninitialized = 1, + Calibrating_InProgress = 100, + Calibrating_OutOfRange = 101, + Running_OK = 200, + Running_OutOfRange = 201, +} +public enum ETrackedDeviceClass +{ + Invalid = 0, + HMD = 1, + Controller = 2, + GenericTracker = 3, + TrackingReference = 4, + DisplayRedirect = 5, +} +public enum ETrackedControllerRole +{ + Invalid = 0, + LeftHand = 1, + RightHand = 2, +} +public enum ETrackingUniverseOrigin +{ + TrackingUniverseSeated = 0, + TrackingUniverseStanding = 1, + TrackingUniverseRawAndUncalibrated = 2, +} +public enum ETrackedDeviceProperty +{ + Prop_Invalid = 0, + Prop_TrackingSystemName_String = 1000, + Prop_ModelNumber_String = 1001, + Prop_SerialNumber_String = 1002, + Prop_RenderModelName_String = 1003, + Prop_WillDriftInYaw_Bool = 1004, + Prop_ManufacturerName_String = 1005, + Prop_TrackingFirmwareVersion_String = 1006, + Prop_HardwareRevision_String = 1007, + Prop_AllWirelessDongleDescriptions_String = 1008, + Prop_ConnectedWirelessDongle_String = 1009, + Prop_DeviceIsWireless_Bool = 1010, + Prop_DeviceIsCharging_Bool = 1011, + Prop_DeviceBatteryPercentage_Float = 1012, + Prop_StatusDisplayTransform_Matrix34 = 1013, + Prop_Firmware_UpdateAvailable_Bool = 1014, + Prop_Firmware_ManualUpdate_Bool = 1015, + Prop_Firmware_ManualUpdateURL_String = 1016, + Prop_HardwareRevision_Uint64 = 1017, + Prop_FirmwareVersion_Uint64 = 1018, + Prop_FPGAVersion_Uint64 = 1019, + Prop_VRCVersion_Uint64 = 1020, + Prop_RadioVersion_Uint64 = 1021, + Prop_DongleVersion_Uint64 = 1022, + Prop_BlockServerShutdown_Bool = 1023, + Prop_CanUnifyCoordinateSystemWithHmd_Bool = 1024, + Prop_ContainsProximitySensor_Bool = 1025, + Prop_DeviceProvidesBatteryStatus_Bool = 1026, + Prop_DeviceCanPowerOff_Bool = 1027, + Prop_Firmware_ProgrammingTarget_String = 1028, + Prop_DeviceClass_Int32 = 1029, + Prop_HasCamera_Bool = 1030, + Prop_DriverVersion_String = 1031, + Prop_Firmware_ForceUpdateRequired_Bool = 1032, + Prop_ViveSystemButtonFixRequired_Bool = 1033, + Prop_ParentDriver_Uint64 = 1034, + Prop_ResourceRoot_String = 1035, + Prop_ReportsTimeSinceVSync_Bool = 2000, + Prop_SecondsFromVsyncToPhotons_Float = 2001, + Prop_DisplayFrequency_Float = 2002, + Prop_UserIpdMeters_Float = 2003, + Prop_CurrentUniverseId_Uint64 = 2004, + Prop_PreviousUniverseId_Uint64 = 2005, + Prop_DisplayFirmwareVersion_Uint64 = 2006, + Prop_IsOnDesktop_Bool = 2007, + Prop_DisplayMCType_Int32 = 2008, + Prop_DisplayMCOffset_Float = 2009, + Prop_DisplayMCScale_Float = 2010, + Prop_EdidVendorID_Int32 = 2011, + Prop_DisplayMCImageLeft_String = 2012, + Prop_DisplayMCImageRight_String = 2013, + Prop_DisplayGCBlackClamp_Float = 2014, + Prop_EdidProductID_Int32 = 2015, + Prop_CameraToHeadTransform_Matrix34 = 2016, + Prop_DisplayGCType_Int32 = 2017, + Prop_DisplayGCOffset_Float = 2018, + Prop_DisplayGCScale_Float = 2019, + Prop_DisplayGCPrescale_Float = 2020, + Prop_DisplayGCImage_String = 2021, + Prop_LensCenterLeftU_Float = 2022, + Prop_LensCenterLeftV_Float = 2023, + Prop_LensCenterRightU_Float = 2024, + Prop_LensCenterRightV_Float = 2025, + Prop_UserHeadToEyeDepthMeters_Float = 2026, + Prop_CameraFirmwareVersion_Uint64 = 2027, + Prop_CameraFirmwareDescription_String = 2028, + Prop_DisplayFPGAVersion_Uint64 = 2029, + Prop_DisplayBootloaderVersion_Uint64 = 2030, + Prop_DisplayHardwareVersion_Uint64 = 2031, + Prop_AudioFirmwareVersion_Uint64 = 2032, + Prop_CameraCompatibilityMode_Int32 = 2033, + Prop_ScreenshotHorizontalFieldOfViewDegrees_Float = 2034, + Prop_ScreenshotVerticalFieldOfViewDegrees_Float = 2035, + Prop_DisplaySuppressed_Bool = 2036, + Prop_DisplayAllowNightMode_Bool = 2037, + Prop_DisplayMCImageWidth_Int32 = 2038, + Prop_DisplayMCImageHeight_Int32 = 2039, + Prop_DisplayMCImageNumChannels_Int32 = 2040, + Prop_DisplayMCImageData_Binary = 2041, + Prop_SecondsFromPhotonsToVblank_Float = 2042, + Prop_DriverDirectModeSendsVsyncEvents_Bool = 2043, + Prop_DisplayDebugMode_Bool = 2044, + Prop_GraphicsAdapterLuid_Uint64 = 2045, + Prop_AttachedDeviceId_String = 3000, + Prop_SupportedButtons_Uint64 = 3001, + Prop_Axis0Type_Int32 = 3002, + Prop_Axis1Type_Int32 = 3003, + Prop_Axis2Type_Int32 = 3004, + Prop_Axis3Type_Int32 = 3005, + Prop_Axis4Type_Int32 = 3006, + Prop_ControllerRoleHint_Int32 = 3007, + Prop_FieldOfViewLeftDegrees_Float = 4000, + Prop_FieldOfViewRightDegrees_Float = 4001, + Prop_FieldOfViewTopDegrees_Float = 4002, + Prop_FieldOfViewBottomDegrees_Float = 4003, + Prop_TrackingRangeMinimumMeters_Float = 4004, + Prop_TrackingRangeMaximumMeters_Float = 4005, + Prop_ModeLabel_String = 4006, + Prop_IconPathName_String = 5000, + Prop_NamedIconPathDeviceOff_String = 5001, + Prop_NamedIconPathDeviceSearching_String = 5002, + Prop_NamedIconPathDeviceSearchingAlert_String = 5003, + Prop_NamedIconPathDeviceReady_String = 5004, + Prop_NamedIconPathDeviceReadyAlert_String = 5005, + Prop_NamedIconPathDeviceNotReady_String = 5006, + Prop_NamedIconPathDeviceStandby_String = 5007, + Prop_NamedIconPathDeviceAlertLow_String = 5008, + Prop_DisplayHiddenArea_Binary_Start = 5100, + Prop_DisplayHiddenArea_Binary_End = 5150, + Prop_UserConfigPath_String = 6000, + Prop_InstallPath_String = 6001, + Prop_HasDisplayComponent_Bool = 6002, + Prop_HasControllerComponent_Bool = 6003, + Prop_HasCameraComponent_Bool = 6004, + Prop_HasDriverDirectModeComponent_Bool = 6005, + Prop_HasVirtualDisplayComponent_Bool = 6006, + Prop_VendorSpecific_Reserved_Start = 10000, + Prop_VendorSpecific_Reserved_End = 10999, +} +public enum ETrackedPropertyError +{ + TrackedProp_Success = 0, + TrackedProp_WrongDataType = 1, + TrackedProp_WrongDeviceClass = 2, + TrackedProp_BufferTooSmall = 3, + TrackedProp_UnknownProperty = 4, + TrackedProp_InvalidDevice = 5, + TrackedProp_CouldNotContactServer = 6, + TrackedProp_ValueNotProvidedByDevice = 7, + TrackedProp_StringExceedsMaximumLength = 8, + TrackedProp_NotYetAvailable = 9, + TrackedProp_PermissionDenied = 10, + TrackedProp_InvalidOperation = 11, +} +public enum EVRSubmitFlags +{ + Submit_Default = 0, + Submit_LensDistortionAlreadyApplied = 1, + Submit_GlRenderBuffer = 2, + Submit_Reserved = 4, +} +public enum EVRState +{ + Undefined = -1, + Off = 0, + Searching = 1, + Searching_Alert = 2, + Ready = 3, + Ready_Alert = 4, + NotReady = 5, + Standby = 6, + Ready_Alert_Low = 7, +} +public enum EVREventType +{ + VREvent_None = 0, + VREvent_TrackedDeviceActivated = 100, + VREvent_TrackedDeviceDeactivated = 101, + VREvent_TrackedDeviceUpdated = 102, + VREvent_TrackedDeviceUserInteractionStarted = 103, + VREvent_TrackedDeviceUserInteractionEnded = 104, + VREvent_IpdChanged = 105, + VREvent_EnterStandbyMode = 106, + VREvent_LeaveStandbyMode = 107, + VREvent_TrackedDeviceRoleChanged = 108, + VREvent_WatchdogWakeUpRequested = 109, + VREvent_LensDistortionChanged = 110, + VREvent_PropertyChanged = 111, + VREvent_ButtonPress = 200, + VREvent_ButtonUnpress = 201, + VREvent_ButtonTouch = 202, + VREvent_ButtonUntouch = 203, + VREvent_MouseMove = 300, + VREvent_MouseButtonDown = 301, + VREvent_MouseButtonUp = 302, + VREvent_FocusEnter = 303, + VREvent_FocusLeave = 304, + VREvent_Scroll = 305, + VREvent_TouchPadMove = 306, + VREvent_OverlayFocusChanged = 307, + VREvent_InputFocusCaptured = 400, + VREvent_InputFocusReleased = 401, + VREvent_SceneFocusLost = 402, + VREvent_SceneFocusGained = 403, + VREvent_SceneApplicationChanged = 404, + VREvent_SceneFocusChanged = 405, + VREvent_InputFocusChanged = 406, + VREvent_SceneApplicationSecondaryRenderingStarted = 407, + VREvent_HideRenderModels = 410, + VREvent_ShowRenderModels = 411, + VREvent_OverlayShown = 500, + VREvent_OverlayHidden = 501, + VREvent_DashboardActivated = 502, + VREvent_DashboardDeactivated = 503, + VREvent_DashboardThumbSelected = 504, + VREvent_DashboardRequested = 505, + VREvent_ResetDashboard = 506, + VREvent_RenderToast = 507, + VREvent_ImageLoaded = 508, + VREvent_ShowKeyboard = 509, + VREvent_HideKeyboard = 510, + VREvent_OverlayGamepadFocusGained = 511, + VREvent_OverlayGamepadFocusLost = 512, + VREvent_OverlaySharedTextureChanged = 513, + VREvent_DashboardGuideButtonDown = 514, + VREvent_DashboardGuideButtonUp = 515, + VREvent_ScreenshotTriggered = 516, + VREvent_ImageFailed = 517, + VREvent_DashboardOverlayCreated = 518, + VREvent_RequestScreenshot = 520, + VREvent_ScreenshotTaken = 521, + VREvent_ScreenshotFailed = 522, + VREvent_SubmitScreenshotToDashboard = 523, + VREvent_ScreenshotProgressToDashboard = 524, + VREvent_PrimaryDashboardDeviceChanged = 525, + VREvent_Notification_Shown = 600, + VREvent_Notification_Hidden = 601, + VREvent_Notification_BeginInteraction = 602, + VREvent_Notification_Destroyed = 603, + VREvent_Quit = 700, + VREvent_ProcessQuit = 701, + VREvent_QuitAborted_UserPrompt = 702, + VREvent_QuitAcknowledged = 703, + VREvent_DriverRequestedQuit = 704, + VREvent_ChaperoneDataHasChanged = 800, + VREvent_ChaperoneUniverseHasChanged = 801, + VREvent_ChaperoneTempDataHasChanged = 802, + VREvent_ChaperoneSettingsHaveChanged = 803, + VREvent_SeatedZeroPoseReset = 804, + VREvent_AudioSettingsHaveChanged = 820, + VREvent_BackgroundSettingHasChanged = 850, + VREvent_CameraSettingsHaveChanged = 851, + VREvent_ReprojectionSettingHasChanged = 852, + VREvent_ModelSkinSettingsHaveChanged = 853, + VREvent_EnvironmentSettingsHaveChanged = 854, + VREvent_PowerSettingsHaveChanged = 855, + VREvent_EnableHomeAppSettingsHaveChanged = 856, + VREvent_StatusUpdate = 900, + VREvent_MCImageUpdated = 1000, + VREvent_FirmwareUpdateStarted = 1100, + VREvent_FirmwareUpdateFinished = 1101, + VREvent_KeyboardClosed = 1200, + VREvent_KeyboardCharInput = 1201, + VREvent_KeyboardDone = 1202, + VREvent_ApplicationTransitionStarted = 1300, + VREvent_ApplicationTransitionAborted = 1301, + VREvent_ApplicationTransitionNewAppStarted = 1302, + VREvent_ApplicationListUpdated = 1303, + VREvent_ApplicationMimeTypeLoad = 1304, + VREvent_ApplicationTransitionNewAppLaunchComplete = 1305, + VREvent_ProcessConnected = 1306, + VREvent_ProcessDisconnected = 1307, + VREvent_Compositor_MirrorWindowShown = 1400, + VREvent_Compositor_MirrorWindowHidden = 1401, + VREvent_Compositor_ChaperoneBoundsShown = 1410, + VREvent_Compositor_ChaperoneBoundsHidden = 1411, + VREvent_TrackedCamera_StartVideoStream = 1500, + VREvent_TrackedCamera_StopVideoStream = 1501, + VREvent_TrackedCamera_PauseVideoStream = 1502, + VREvent_TrackedCamera_ResumeVideoStream = 1503, + VREvent_TrackedCamera_EditingSurface = 1550, + VREvent_PerformanceTest_EnableCapture = 1600, + VREvent_PerformanceTest_DisableCapture = 1601, + VREvent_PerformanceTest_FidelityLevel = 1602, + VREvent_MessageOverlay_Closed = 1650, + VREvent_VendorSpecific_Reserved_Start = 10000, + VREvent_VendorSpecific_Reserved_End = 19999, +} +public enum EDeviceActivityLevel +{ + k_EDeviceActivityLevel_Unknown = -1, + k_EDeviceActivityLevel_Idle = 0, + k_EDeviceActivityLevel_UserInteraction = 1, + k_EDeviceActivityLevel_UserInteraction_Timeout = 2, + k_EDeviceActivityLevel_Standby = 3, +} +public enum EVRButtonId +{ + k_EButton_System = 0, + k_EButton_ApplicationMenu = 1, + k_EButton_Grip = 2, + k_EButton_DPad_Left = 3, + k_EButton_DPad_Up = 4, + k_EButton_DPad_Right = 5, + k_EButton_DPad_Down = 6, + k_EButton_A = 7, + k_EButton_ProximitySensor = 31, + k_EButton_Axis0 = 32, + k_EButton_Axis1 = 33, + k_EButton_Axis2 = 34, + k_EButton_Axis3 = 35, + k_EButton_Axis4 = 36, + k_EButton_SteamVR_Touchpad = 32, + k_EButton_SteamVR_Trigger = 33, + k_EButton_Dashboard_Back = 2, + k_EButton_Max = 64, +} +public enum EVRMouseButton +{ + Left = 1, + Right = 2, + Middle = 4, +} +public enum EHiddenAreaMeshType +{ + k_eHiddenAreaMesh_Standard = 0, + k_eHiddenAreaMesh_Inverse = 1, + k_eHiddenAreaMesh_LineLoop = 2, + k_eHiddenAreaMesh_Max = 3, +} +public enum EVRControllerAxisType +{ + k_eControllerAxis_None = 0, + k_eControllerAxis_TrackPad = 1, + k_eControllerAxis_Joystick = 2, + k_eControllerAxis_Trigger = 3, +} +public enum EVRControllerEventOutputType +{ + ControllerEventOutput_OSEvents = 0, + ControllerEventOutput_VREvents = 1, +} +public enum ECollisionBoundsStyle +{ + COLLISION_BOUNDS_STYLE_BEGINNER = 0, + COLLISION_BOUNDS_STYLE_INTERMEDIATE = 1, + COLLISION_BOUNDS_STYLE_SQUARES = 2, + COLLISION_BOUNDS_STYLE_ADVANCED = 3, + COLLISION_BOUNDS_STYLE_NONE = 4, + COLLISION_BOUNDS_STYLE_COUNT = 5, +} +public enum EVROverlayError +{ + None = 0, + UnknownOverlay = 10, + InvalidHandle = 11, + PermissionDenied = 12, + OverlayLimitExceeded = 13, + WrongVisibilityType = 14, + KeyTooLong = 15, + NameTooLong = 16, + KeyInUse = 17, + WrongTransformType = 18, + InvalidTrackedDevice = 19, + InvalidParameter = 20, + ThumbnailCantBeDestroyed = 21, + ArrayTooSmall = 22, + RequestFailed = 23, + InvalidTexture = 24, + UnableToLoadFile = 25, + KeyboardAlreadyInUse = 26, + NoNeighbor = 27, + TooManyMaskPrimitives = 29, + BadMaskPrimitive = 30, +} +public enum EVRApplicationType +{ + VRApplication_Other = 0, + VRApplication_Scene = 1, + VRApplication_Overlay = 2, + VRApplication_Background = 3, + VRApplication_Utility = 4, + VRApplication_VRMonitor = 5, + VRApplication_SteamWatchdog = 6, + VRApplication_Bootstrapper = 7, + VRApplication_Max = 8, +} +public enum EVRFirmwareError +{ + None = 0, + Success = 1, + Fail = 2, +} +public enum EVRNotificationError +{ + OK = 0, + InvalidNotificationId = 100, + NotificationQueueFull = 101, + InvalidOverlayHandle = 102, + SystemWithUserValueAlreadyExists = 103, +} +public enum EVRInitError +{ + None = 0, + Unknown = 1, + Init_InstallationNotFound = 100, + Init_InstallationCorrupt = 101, + Init_VRClientDLLNotFound = 102, + Init_FileNotFound = 103, + Init_FactoryNotFound = 104, + Init_InterfaceNotFound = 105, + Init_InvalidInterface = 106, + Init_UserConfigDirectoryInvalid = 107, + Init_HmdNotFound = 108, + Init_NotInitialized = 109, + Init_PathRegistryNotFound = 110, + Init_NoConfigPath = 111, + Init_NoLogPath = 112, + Init_PathRegistryNotWritable = 113, + Init_AppInfoInitFailed = 114, + Init_Retry = 115, + Init_InitCanceledByUser = 116, + Init_AnotherAppLaunching = 117, + Init_SettingsInitFailed = 118, + Init_ShuttingDown = 119, + Init_TooManyObjects = 120, + Init_NoServerForBackgroundApp = 121, + Init_NotSupportedWithCompositor = 122, + Init_NotAvailableToUtilityApps = 123, + Init_Internal = 124, + Init_HmdDriverIdIsNone = 125, + Init_HmdNotFoundPresenceFailed = 126, + Init_VRMonitorNotFound = 127, + Init_VRMonitorStartupFailed = 128, + Init_LowPowerWatchdogNotSupported = 129, + Init_InvalidApplicationType = 130, + Init_NotAvailableToWatchdogApps = 131, + Init_WatchdogDisabledInSettings = 132, + Init_VRDashboardNotFound = 133, + Init_VRDashboardStartupFailed = 134, + Init_VRHomeNotFound = 135, + Init_VRHomeStartupFailed = 136, + Driver_Failed = 200, + Driver_Unknown = 201, + Driver_HmdUnknown = 202, + Driver_NotLoaded = 203, + Driver_RuntimeOutOfDate = 204, + Driver_HmdInUse = 205, + Driver_NotCalibrated = 206, + Driver_CalibrationInvalid = 207, + Driver_HmdDisplayNotFound = 208, + Driver_TrackedDeviceInterfaceUnknown = 209, + Driver_HmdDriverIdOutOfBounds = 211, + Driver_HmdDisplayMirrored = 212, + IPC_ServerInitFailed = 300, + IPC_ConnectFailed = 301, + IPC_SharedStateInitFailed = 302, + IPC_CompositorInitFailed = 303, + IPC_MutexInitFailed = 304, + IPC_Failed = 305, + IPC_CompositorConnectFailed = 306, + IPC_CompositorInvalidConnectResponse = 307, + IPC_ConnectFailedAfterMultipleAttempts = 308, + Compositor_Failed = 400, + Compositor_D3D11HardwareRequired = 401, + Compositor_FirmwareRequiresUpdate = 402, + Compositor_OverlayInitFailed = 403, + Compositor_ScreenshotsInitFailed = 404, + Compositor_UnableToCreateDevice = 405, + VendorSpecific_UnableToConnectToOculusRuntime = 1000, + VendorSpecific_HmdFound_CantOpenDevice = 1101, + VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102, + VendorSpecific_HmdFound_NoStoredConfig = 1103, + VendorSpecific_HmdFound_ConfigTooBig = 1104, + VendorSpecific_HmdFound_ConfigTooSmall = 1105, + VendorSpecific_HmdFound_UnableToInitZLib = 1106, + VendorSpecific_HmdFound_CantReadFirmwareVersion = 1107, + VendorSpecific_HmdFound_UnableToSendUserDataStart = 1108, + VendorSpecific_HmdFound_UnableToGetUserDataStart = 1109, + VendorSpecific_HmdFound_UnableToGetUserDataNext = 1110, + VendorSpecific_HmdFound_UserDataAddressRange = 1111, + VendorSpecific_HmdFound_UserDataError = 1112, + VendorSpecific_HmdFound_ConfigFailedSanityCheck = 1113, + Steam_SteamInstallationNotFound = 2000, +} +public enum EVRScreenshotType +{ + None = 0, + Mono = 1, + Stereo = 2, + Cubemap = 3, + MonoPanorama = 4, + StereoPanorama = 5, +} +public enum EVRScreenshotPropertyFilenames +{ + Preview = 0, + VR = 1, +} +public enum EVRTrackedCameraError +{ + None = 0, + OperationFailed = 100, + InvalidHandle = 101, + InvalidFrameHeaderVersion = 102, + OutOfHandles = 103, + IPCFailure = 104, + NotSupportedForThisDevice = 105, + SharedMemoryFailure = 106, + FrameBufferingFailure = 107, + StreamSetupFailure = 108, + InvalidGLTextureId = 109, + InvalidSharedTextureHandle = 110, + FailedToGetGLTextureId = 111, + SharedTextureFailure = 112, + NoFrameAvailable = 113, + InvalidArgument = 114, + InvalidFrameBufferSize = 115, +} +public enum EVRTrackedCameraFrameType +{ + Distorted = 0, + Undistorted = 1, + MaximumUndistorted = 2, + MAX_CAMERA_FRAME_TYPES = 3, +} +public enum EVRApplicationError +{ + None = 0, + AppKeyAlreadyExists = 100, + NoManifest = 101, + NoApplication = 102, + InvalidIndex = 103, + UnknownApplication = 104, + IPCFailed = 105, + ApplicationAlreadyRunning = 106, + InvalidManifest = 107, + InvalidApplication = 108, + LaunchFailed = 109, + ApplicationAlreadyStarting = 110, + LaunchInProgress = 111, + OldApplicationQuitting = 112, + TransitionAborted = 113, + IsTemplate = 114, + BufferTooSmall = 200, + PropertyNotSet = 201, + UnknownProperty = 202, + InvalidParameter = 203, +} +public enum EVRApplicationProperty +{ + Name_String = 0, + LaunchType_String = 11, + WorkingDirectory_String = 12, + BinaryPath_String = 13, + Arguments_String = 14, + URL_String = 15, + Description_String = 50, + NewsURL_String = 51, + ImagePath_String = 52, + Source_String = 53, + IsDashboardOverlay_Bool = 60, + IsTemplate_Bool = 61, + IsInstanced_Bool = 62, + IsInternal_Bool = 63, + LastLaunchTime_Uint64 = 70, +} +public enum EVRApplicationTransitionState +{ + VRApplicationTransition_None = 0, + VRApplicationTransition_OldAppQuitSent = 10, + VRApplicationTransition_WaitingForExternalLaunch = 11, + VRApplicationTransition_NewAppLaunched = 20, +} +public enum ChaperoneCalibrationState +{ + OK = 1, + Warning = 100, + Warning_BaseStationMayHaveMoved = 101, + Warning_BaseStationRemoved = 102, + Warning_SeatedBoundsInvalid = 103, + Error = 200, + Error_BaseStationUninitialized = 201, + Error_BaseStationConflict = 202, + Error_PlayAreaInvalid = 203, + Error_CollisionBoundsInvalid = 204, +} +public enum EChaperoneConfigFile +{ + Live = 1, + Temp = 2, +} +public enum EChaperoneImportFlags +{ + EChaperoneImport_BoundsOnly = 1, +} +public enum EVRCompositorError +{ + None = 0, + RequestFailed = 1, + IncompatibleVersion = 100, + DoNotHaveFocus = 101, + InvalidTexture = 102, + IsNotSceneApplication = 103, + TextureIsOnWrongDevice = 104, + TextureUsesUnsupportedFormat = 105, + SharedTexturesNotSupported = 106, + IndexOutOfRange = 107, + AlreadySubmitted = 108, +} +public enum VROverlayInputMethod +{ + None = 0, + Mouse = 1, +} +public enum VROverlayTransformType +{ + VROverlayTransform_Absolute = 0, + VROverlayTransform_TrackedDeviceRelative = 1, + VROverlayTransform_SystemOverlay = 2, + VROverlayTransform_TrackedComponent = 3, +} +public enum VROverlayFlags +{ + None = 0, + Curved = 1, + RGSS4X = 2, + NoDashboardTab = 3, + AcceptsGamepadEvents = 4, + ShowGamepadFocus = 5, + SendVRScrollEvents = 6, + SendVRTouchpadEvents = 7, + ShowTouchPadScrollWheel = 8, + TransferOwnershipToInternalProcess = 9, + SideBySide_Parallel = 10, + SideBySide_Crossed = 11, + Panorama = 12, + StereoPanorama = 13, + SortWithNonSceneOverlays = 14, + VisibleInDashboard = 15, +} +public enum VRMessageOverlayResponse +{ + ButtonPress_0 = 0, + ButtonPress_1 = 1, + ButtonPress_2 = 2, + ButtonPress_3 = 3, + CouldntFindSystemOverlay = 4, + CouldntFindOrCreateClientOverlay = 5, + ApplicationQuit = 6, +} +public enum EGamepadTextInputMode +{ + k_EGamepadTextInputModeNormal = 0, + k_EGamepadTextInputModePassword = 1, + k_EGamepadTextInputModeSubmit = 2, +} +public enum EGamepadTextInputLineMode +{ + k_EGamepadTextInputLineModeSingleLine = 0, + k_EGamepadTextInputLineModeMultipleLines = 1, +} +public enum EOverlayDirection +{ + Up = 0, + Down = 1, + Left = 2, + Right = 3, + Count = 4, +} +public enum EVROverlayIntersectionMaskPrimitiveType +{ + OverlayIntersectionPrimitiveType_Rectangle = 0, + OverlayIntersectionPrimitiveType_Circle = 1, +} +public enum EVRRenderModelError +{ + None = 0, + Loading = 100, + NotSupported = 200, + InvalidArg = 300, + InvalidModel = 301, + NoShapes = 302, + MultipleShapes = 303, + TooManyVertices = 304, + MultipleTextures = 305, + BufferTooSmall = 306, + NotEnoughNormals = 307, + NotEnoughTexCoords = 308, + InvalidTexture = 400, +} +public enum EVRComponentProperty +{ + IsStatic = 1, + IsVisible = 2, + IsTouched = 4, + IsPressed = 8, + IsScrolled = 16, +} +public enum EVRNotificationType +{ + Transient = 0, + Persistent = 1, + Transient_SystemWithUserValue = 2, +} +public enum EVRNotificationStyle +{ + None = 0, + Application = 100, + Contact_Disabled = 200, + Contact_Enabled = 201, + Contact_Active = 202, +} +public enum EVRSettingsError +{ + None = 0, + IPCFailed = 1, + WriteFailed = 2, + ReadFailed = 3, + JsonParseFailed = 4, + UnsetSettingHasNoDefault = 5, +} +public enum EVRScreenshotError +{ + None = 0, + RequestFailed = 1, + IncompatibleVersion = 100, + NotFound = 101, + BufferTooSmall = 102, + ScreenshotAlreadyInProgress = 108, +} + +[StructLayout(LayoutKind.Explicit)] public struct VREvent_Data_t +{ + [FieldOffset(0)] public VREvent_Reserved_t reserved; + [FieldOffset(0)] public VREvent_Controller_t controller; + [FieldOffset(0)] public VREvent_Mouse_t mouse; + [FieldOffset(0)] public VREvent_Scroll_t scroll; + [FieldOffset(0)] public VREvent_Process_t process; + [FieldOffset(0)] public VREvent_Notification_t notification; + [FieldOffset(0)] public VREvent_Overlay_t overlay; + [FieldOffset(0)] public VREvent_Status_t status; + [FieldOffset(0)] public VREvent_Ipd_t ipd; + [FieldOffset(0)] public VREvent_Chaperone_t chaperone; + [FieldOffset(0)] public VREvent_PerformanceTest_t performanceTest; + [FieldOffset(0)] public VREvent_TouchPadMove_t touchPadMove; + [FieldOffset(0)] public VREvent_SeatedZeroPoseReset_t seatedZeroPoseReset; + [FieldOffset(0)] public VREvent_Screenshot_t screenshot; + [FieldOffset(0)] public VREvent_ScreenshotProgress_t screenshotProgress; + [FieldOffset(0)] public VREvent_ApplicationLaunch_t applicationLaunch; + [FieldOffset(0)] public VREvent_EditingCameraSurface_t cameraSurface; + [FieldOffset(0)] public VREvent_MessageOverlay_t messageOverlay; + [FieldOffset(0)] public VREvent_Keyboard_t keyboard; // This has to be at the end due to a mono bug +} + + +[StructLayout(LayoutKind.Explicit)] public struct VROverlayIntersectionMaskPrimitive_Data_t +{ + [FieldOffset(0)] public IntersectionMaskRectangle_t m_Rectangle; + [FieldOffset(0)] public IntersectionMaskCircle_t m_Circle; +} + +[StructLayout(LayoutKind.Sequential)] public struct HmdMatrix34_t +{ + public float m0; //float[3][4] + public float m1; + public float m2; + public float m3; + public float m4; + public float m5; + public float m6; + public float m7; + public float m8; + public float m9; + public float m10; + public float m11; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdMatrix44_t +{ + public float m0; //float[4][4] + public float m1; + public float m2; + public float m3; + public float m4; + public float m5; + public float m6; + public float m7; + public float m8; + public float m9; + public float m10; + public float m11; + public float m12; + public float m13; + public float m14; + public float m15; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdVector3_t +{ + public float v0; //float[3] + public float v1; + public float v2; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdVector4_t +{ + public float v0; //float[4] + public float v1; + public float v2; + public float v3; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdVector3d_t +{ + public double v0; //double[3] + public double v1; + public double v2; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdVector2_t +{ + public float v0; //float[2] + public float v1; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdQuaternion_t +{ + public double w; + public double x; + public double y; + public double z; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdColor_t +{ + public float r; + public float g; + public float b; + public float a; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdQuad_t +{ + public HmdVector3_t vCorners0; //HmdVector3_t[4] + public HmdVector3_t vCorners1; + public HmdVector3_t vCorners2; + public HmdVector3_t vCorners3; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdRect2_t +{ + public HmdVector2_t vTopLeft; + public HmdVector2_t vBottomRight; +} +[StructLayout(LayoutKind.Sequential)] public struct DistortionCoordinates_t +{ + public float rfRed0; //float[2] + public float rfRed1; + public float rfGreen0; //float[2] + public float rfGreen1; + public float rfBlue0; //float[2] + public float rfBlue1; +} +[StructLayout(LayoutKind.Sequential)] public struct Texture_t +{ + public IntPtr handle; // void * + public ETextureType eType; + public EColorSpace eColorSpace; +} +[StructLayout(LayoutKind.Sequential)] public struct TrackedDevicePose_t +{ + public HmdMatrix34_t mDeviceToAbsoluteTracking; + public HmdVector3_t vVelocity; + public HmdVector3_t vAngularVelocity; + public ETrackingResult eTrackingResult; + [MarshalAs(UnmanagedType.I1)] + public bool bPoseIsValid; + [MarshalAs(UnmanagedType.I1)] + public bool bDeviceIsConnected; +} +[StructLayout(LayoutKind.Sequential)] public struct VRTextureBounds_t +{ + public float uMin; + public float vMin; + public float uMax; + public float vMax; +} +[StructLayout(LayoutKind.Sequential)] public struct VRVulkanTextureData_t +{ + public ulong m_nImage; + public IntPtr m_pDevice; // struct VkDevice_T * + public IntPtr m_pPhysicalDevice; // struct VkPhysicalDevice_T * + public IntPtr m_pInstance; // struct VkInstance_T * + public IntPtr m_pQueue; // struct VkQueue_T * + public uint m_nQueueFamilyIndex; + public uint m_nWidth; + public uint m_nHeight; + public uint m_nFormat; + public uint m_nSampleCount; +} +[StructLayout(LayoutKind.Sequential)] public struct D3D12TextureData_t +{ + public IntPtr m_pResource; // struct ID3D12Resource * + public IntPtr m_pCommandQueue; // struct ID3D12CommandQueue * + public uint m_nNodeMask; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Controller_t +{ + public uint button; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Mouse_t +{ + public float x; + public float y; + public uint button; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Scroll_t +{ + public float xdelta; + public float ydelta; + public uint repeatCount; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_TouchPadMove_t +{ + [MarshalAs(UnmanagedType.I1)] + public bool bFingerDown; + public float flSecondsFingerDown; + public float fValueXFirst; + public float fValueYFirst; + public float fValueXRaw; + public float fValueYRaw; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Notification_t +{ + public ulong ulUserValue; + public uint notificationId; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Process_t +{ + public uint pid; + public uint oldPid; + [MarshalAs(UnmanagedType.I1)] + public bool bForced; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Overlay_t +{ + public ulong overlayHandle; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Status_t +{ + public uint statusState; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Keyboard_t +{ + public byte cNewInput0,cNewInput1,cNewInput2,cNewInput3,cNewInput4,cNewInput5,cNewInput6,cNewInput7; + public ulong uUserValue; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Ipd_t +{ + public float ipdMeters; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Chaperone_t +{ + public ulong m_nPreviousUniverse; + public ulong m_nCurrentUniverse; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Reserved_t +{ + public ulong reserved0; + public ulong reserved1; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_PerformanceTest_t +{ + public uint m_nFidelityLevel; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_SeatedZeroPoseReset_t +{ + [MarshalAs(UnmanagedType.I1)] + public bool bResetBySystemMenu; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Screenshot_t +{ + public uint handle; + public uint type; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_ScreenshotProgress_t +{ + public float progress; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_ApplicationLaunch_t +{ + public uint pid; + public uint unArgsHandle; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_EditingCameraSurface_t +{ + public ulong overlayHandle; + public uint nVisualMode; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_MessageOverlay_t +{ + public uint unVRMessageOverlayResponse; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Property_t +{ + public ulong container; + public ETrackedDeviceProperty prop; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_t +{ + public uint eventType; + public uint trackedDeviceIndex; + public float eventAgeSeconds; + public VREvent_Data_t data; +} +// This structure is for backwards binary compatibility on Linux and OSX only +[StructLayout(LayoutKind.Sequential, Pack = 4)] public struct VREvent_t_Packed +{ + public uint eventType; + public uint trackedDeviceIndex; + public float eventAgeSeconds; + public VREvent_Data_t data; + public VREvent_t_Packed(VREvent_t unpacked) + { + this.eventType = unpacked.eventType; + this.trackedDeviceIndex = unpacked.trackedDeviceIndex; + this.eventAgeSeconds = unpacked.eventAgeSeconds; + this.data = unpacked.data; + } + public void Unpack(ref VREvent_t unpacked) + { + unpacked.eventType = this.eventType; + unpacked.trackedDeviceIndex = this.trackedDeviceIndex; + unpacked.eventAgeSeconds = this.eventAgeSeconds; + unpacked.data = this.data; + } +} +[StructLayout(LayoutKind.Sequential)] public struct HiddenAreaMesh_t +{ + public IntPtr pVertexData; // const struct vr::HmdVector2_t * + public uint unTriangleCount; +} +[StructLayout(LayoutKind.Sequential)] public struct VRControllerAxis_t +{ + public float x; + public float y; +} +[StructLayout(LayoutKind.Sequential)] public struct VRControllerState_t +{ + public uint unPacketNum; + public ulong ulButtonPressed; + public ulong ulButtonTouched; + public VRControllerAxis_t rAxis0; //VRControllerAxis_t[5] + public VRControllerAxis_t rAxis1; + public VRControllerAxis_t rAxis2; + public VRControllerAxis_t rAxis3; + public VRControllerAxis_t rAxis4; +} +// This structure is for backwards binary compatibility on Linux and OSX only +[StructLayout(LayoutKind.Sequential, Pack = 4)] public struct VRControllerState_t_Packed +{ + public uint unPacketNum; + public ulong ulButtonPressed; + public ulong ulButtonTouched; + public VRControllerAxis_t rAxis0; //VRControllerAxis_t[5] + public VRControllerAxis_t rAxis1; + public VRControllerAxis_t rAxis2; + public VRControllerAxis_t rAxis3; + public VRControllerAxis_t rAxis4; + public VRControllerState_t_Packed(VRControllerState_t unpacked) + { + this.unPacketNum = unpacked.unPacketNum; + this.ulButtonPressed = unpacked.ulButtonPressed; + this.ulButtonTouched = unpacked.ulButtonTouched; + this.rAxis0 = unpacked.rAxis0; + this.rAxis1 = unpacked.rAxis1; + this.rAxis2 = unpacked.rAxis2; + this.rAxis3 = unpacked.rAxis3; + this.rAxis4 = unpacked.rAxis4; + } + public void Unpack(ref VRControllerState_t unpacked) + { + unpacked.unPacketNum = this.unPacketNum; + unpacked.ulButtonPressed = this.ulButtonPressed; + unpacked.ulButtonTouched = this.ulButtonTouched; + unpacked.rAxis0 = this.rAxis0; + unpacked.rAxis1 = this.rAxis1; + unpacked.rAxis2 = this.rAxis2; + unpacked.rAxis3 = this.rAxis3; + unpacked.rAxis4 = this.rAxis4; + } +} +[StructLayout(LayoutKind.Sequential)] public struct Compositor_OverlaySettings +{ + public uint size; + [MarshalAs(UnmanagedType.I1)] + public bool curved; + [MarshalAs(UnmanagedType.I1)] + public bool antialias; + public float scale; + public float distance; + public float alpha; + public float uOffset; + public float vOffset; + public float uScale; + public float vScale; + public float gridDivs; + public float gridWidth; + public float gridScale; + public HmdMatrix44_t transform; +} +[StructLayout(LayoutKind.Sequential)] public struct CameraVideoStreamFrameHeader_t +{ + public EVRTrackedCameraFrameType eFrameType; + public uint nWidth; + public uint nHeight; + public uint nBytesPerPixel; + public uint nFrameSequence; + public TrackedDevicePose_t standingTrackedDevicePose; +} +[StructLayout(LayoutKind.Sequential)] public struct AppOverrideKeys_t +{ + public IntPtr pchKey; // const char * + public IntPtr pchValue; // const char * +} +[StructLayout(LayoutKind.Sequential)] public struct Compositor_FrameTiming +{ + public uint m_nSize; + public uint m_nFrameIndex; + public uint m_nNumFramePresents; + public uint m_nNumMisPresented; + public uint m_nNumDroppedFrames; + public uint m_nReprojectionFlags; + public double m_flSystemTimeInSeconds; + public float m_flPreSubmitGpuMs; + public float m_flPostSubmitGpuMs; + public float m_flTotalRenderGpuMs; + public float m_flCompositorRenderGpuMs; + public float m_flCompositorRenderCpuMs; + public float m_flCompositorIdleCpuMs; + public float m_flClientFrameIntervalMs; + public float m_flPresentCallCpuMs; + public float m_flWaitForPresentCpuMs; + public float m_flSubmitFrameMs; + public float m_flWaitGetPosesCalledMs; + public float m_flNewPosesReadyMs; + public float m_flNewFrameReadyMs; + public float m_flCompositorUpdateStartMs; + public float m_flCompositorUpdateEndMs; + public float m_flCompositorRenderStartMs; + public TrackedDevicePose_t m_HmdPose; +} +[StructLayout(LayoutKind.Sequential)] public struct Compositor_CumulativeStats +{ + public uint m_nPid; + public uint m_nNumFramePresents; + public uint m_nNumDroppedFrames; + public uint m_nNumReprojectedFrames; + public uint m_nNumFramePresentsOnStartup; + public uint m_nNumDroppedFramesOnStartup; + public uint m_nNumReprojectedFramesOnStartup; + public uint m_nNumLoading; + public uint m_nNumFramePresentsLoading; + public uint m_nNumDroppedFramesLoading; + public uint m_nNumReprojectedFramesLoading; + public uint m_nNumTimedOut; + public uint m_nNumFramePresentsTimedOut; + public uint m_nNumDroppedFramesTimedOut; + public uint m_nNumReprojectedFramesTimedOut; +} +[StructLayout(LayoutKind.Sequential)] public struct VROverlayIntersectionParams_t +{ + public HmdVector3_t vSource; + public HmdVector3_t vDirection; + public ETrackingUniverseOrigin eOrigin; +} +[StructLayout(LayoutKind.Sequential)] public struct VROverlayIntersectionResults_t +{ + public HmdVector3_t vPoint; + public HmdVector3_t vNormal; + public HmdVector2_t vUVs; + public float fDistance; +} +[StructLayout(LayoutKind.Sequential)] public struct IntersectionMaskRectangle_t +{ + public float m_flTopLeftX; + public float m_flTopLeftY; + public float m_flWidth; + public float m_flHeight; +} +[StructLayout(LayoutKind.Sequential)] public struct IntersectionMaskCircle_t +{ + public float m_flCenterX; + public float m_flCenterY; + public float m_flRadius; +} +[StructLayout(LayoutKind.Sequential)] public struct VROverlayIntersectionMaskPrimitive_t +{ + public EVROverlayIntersectionMaskPrimitiveType m_nPrimitiveType; + public VROverlayIntersectionMaskPrimitive_Data_t m_Primitive; +} +[StructLayout(LayoutKind.Sequential)] public struct RenderModel_ComponentState_t +{ + public HmdMatrix34_t mTrackingToComponentRenderModel; + public HmdMatrix34_t mTrackingToComponentLocal; + public uint uProperties; +} +[StructLayout(LayoutKind.Sequential)] public struct RenderModel_Vertex_t +{ + public HmdVector3_t vPosition; + public HmdVector3_t vNormal; + public float rfTextureCoord0; //float[2] + public float rfTextureCoord1; +} +[StructLayout(LayoutKind.Sequential)] public struct RenderModel_TextureMap_t +{ + public char unWidth; + public char unHeight; + public IntPtr rubTextureMapData; // const uint8_t * +} +// This structure is for backwards binary compatibility on Linux and OSX only +[StructLayout(LayoutKind.Sequential, Pack = 4)] public struct RenderModel_TextureMap_t_Packed +{ + public char unWidth; + public char unHeight; + public IntPtr rubTextureMapData; // const uint8_t * + public RenderModel_TextureMap_t_Packed(RenderModel_TextureMap_t unpacked) + { + this.unWidth = unpacked.unWidth; + this.unHeight = unpacked.unHeight; + this.rubTextureMapData = unpacked.rubTextureMapData; + } + public void Unpack(ref RenderModel_TextureMap_t unpacked) + { + unpacked.unWidth = this.unWidth; + unpacked.unHeight = this.unHeight; + unpacked.rubTextureMapData = this.rubTextureMapData; + } +} +[StructLayout(LayoutKind.Sequential)] public struct RenderModel_t +{ + public IntPtr rVertexData; // const struct vr::RenderModel_Vertex_t * + public uint unVertexCount; + public IntPtr rIndexData; // const uint16_t * + public uint unTriangleCount; + public int diffuseTextureId; +} +// This structure is for backwards binary compatibility on Linux and OSX only +[StructLayout(LayoutKind.Sequential, Pack = 4)] public struct RenderModel_t_Packed +{ + public IntPtr rVertexData; // const struct vr::RenderModel_Vertex_t * + public uint unVertexCount; + public IntPtr rIndexData; // const uint16_t * + public uint unTriangleCount; + public int diffuseTextureId; + public RenderModel_t_Packed(RenderModel_t unpacked) + { + this.rVertexData = unpacked.rVertexData; + this.unVertexCount = unpacked.unVertexCount; + this.rIndexData = unpacked.rIndexData; + this.unTriangleCount = unpacked.unTriangleCount; + this.diffuseTextureId = unpacked.diffuseTextureId; + } + public void Unpack(ref RenderModel_t unpacked) + { + unpacked.rVertexData = this.rVertexData; + unpacked.unVertexCount = this.unVertexCount; + unpacked.rIndexData = this.rIndexData; + unpacked.unTriangleCount = this.unTriangleCount; + unpacked.diffuseTextureId = this.diffuseTextureId; + } +} +[StructLayout(LayoutKind.Sequential)] public struct RenderModel_ControllerMode_State_t +{ + [MarshalAs(UnmanagedType.I1)] + public bool bScrollWheelVisible; +} +[StructLayout(LayoutKind.Sequential)] public struct NotificationBitmap_t +{ + public IntPtr m_pImageData; // void * + public int m_nWidth; + public int m_nHeight; + public int m_nBytesPerPixel; +} +[StructLayout(LayoutKind.Sequential)] public struct COpenVRContext +{ + public IntPtr m_pVRSystem; // class vr::IVRSystem * + public IntPtr m_pVRChaperone; // class vr::IVRChaperone * + public IntPtr m_pVRChaperoneSetup; // class vr::IVRChaperoneSetup * + public IntPtr m_pVRCompositor; // class vr::IVRCompositor * + public IntPtr m_pVROverlay; // class vr::IVROverlay * + public IntPtr m_pVRResources; // class vr::IVRResources * + public IntPtr m_pVRRenderModels; // class vr::IVRRenderModels * + public IntPtr m_pVRExtendedDisplay; // class vr::IVRExtendedDisplay * + public IntPtr m_pVRSettings; // class vr::IVRSettings * + public IntPtr m_pVRApplications; // class vr::IVRApplications * + public IntPtr m_pVRTrackedCamera; // class vr::IVRTrackedCamera * + public IntPtr m_pVRScreenshots; // class vr::IVRScreenshots * + public IntPtr m_pVRDriverManager; // class vr::IVRDriverManager * +} + +public class OpenVR +{ + + public static uint InitInternal(ref EVRInitError peError, EVRApplicationType eApplicationType) + { + return OpenVRInterop.InitInternal(ref peError, eApplicationType); + } + + public static void ShutdownInternal() + { + OpenVRInterop.ShutdownInternal(); + } + + public static bool IsHmdPresent() + { + return OpenVRInterop.IsHmdPresent(); + } + + public static bool IsRuntimeInstalled() + { + return OpenVRInterop.IsRuntimeInstalled(); + } + + public static string GetStringForHmdError(EVRInitError error) + { + return Marshal.PtrToStringAnsi(OpenVRInterop.GetStringForHmdError(error)); + } + + public static IntPtr GetGenericInterface(string pchInterfaceVersion, ref EVRInitError peError) + { + return OpenVRInterop.GetGenericInterface(pchInterfaceVersion, ref peError); + } + + public static bool IsInterfaceVersionValid(string pchInterfaceVersion) + { + return OpenVRInterop.IsInterfaceVersionValid(pchInterfaceVersion); + } + + public static uint GetInitToken() + { + return OpenVRInterop.GetInitToken(); + } + + public const uint k_nDriverNone = 4294967295; + public const uint k_unMaxDriverDebugResponseSize = 32768; + public const uint k_unTrackedDeviceIndex_Hmd = 0; + public const uint k_unMaxTrackedDeviceCount = 16; + public const uint k_unTrackedDeviceIndexOther = 4294967294; + public const uint k_unTrackedDeviceIndexInvalid = 4294967295; + public const ulong k_ulInvalidPropertyContainer = 0; + public const uint k_unInvalidPropertyTag = 0; + public const uint k_unFloatPropertyTag = 1; + public const uint k_unInt32PropertyTag = 2; + public const uint k_unUint64PropertyTag = 3; + public const uint k_unBoolPropertyTag = 4; + public const uint k_unStringPropertyTag = 5; + public const uint k_unHmdMatrix34PropertyTag = 20; + public const uint k_unHmdMatrix44PropertyTag = 21; + public const uint k_unHmdVector3PropertyTag = 22; + public const uint k_unHmdVector4PropertyTag = 23; + public const uint k_unHiddenAreaPropertyTag = 30; + public const uint k_unOpenVRInternalReserved_Start = 1000; + public const uint k_unOpenVRInternalReserved_End = 10000; + public const uint k_unMaxPropertyStringSize = 32768; + public const uint k_unControllerStateAxisCount = 5; + public const ulong k_ulOverlayHandleInvalid = 0; + public const uint k_unScreenshotHandleInvalid = 0; + public const string IVRSystem_Version = "IVRSystem_016"; + public const string IVRExtendedDisplay_Version = "IVRExtendedDisplay_001"; + public const string IVRTrackedCamera_Version = "IVRTrackedCamera_003"; + public const uint k_unMaxApplicationKeyLength = 128; + public const string k_pch_MimeType_HomeApp = "vr/home"; + public const string k_pch_MimeType_GameTheater = "vr/game_theater"; + public const string IVRApplications_Version = "IVRApplications_006"; + public const string IVRChaperone_Version = "IVRChaperone_003"; + public const string IVRChaperoneSetup_Version = "IVRChaperoneSetup_005"; + public const string IVRCompositor_Version = "IVRCompositor_020"; + public const uint k_unVROverlayMaxKeyLength = 128; + public const uint k_unVROverlayMaxNameLength = 128; + public const uint k_unMaxOverlayCount = 64; + public const uint k_unMaxOverlayIntersectionMaskPrimitivesCount = 32; + public const string IVROverlay_Version = "IVROverlay_016"; + public const string k_pch_Controller_Component_GDC2015 = "gdc2015"; + public const string k_pch_Controller_Component_Base = "base"; + public const string k_pch_Controller_Component_Tip = "tip"; + public const string k_pch_Controller_Component_HandGrip = "handgrip"; + public const string k_pch_Controller_Component_Status = "status"; + public const string IVRRenderModels_Version = "IVRRenderModels_005"; + public const uint k_unNotificationTextMaxSize = 256; + public const string IVRNotifications_Version = "IVRNotifications_002"; + public const uint k_unMaxSettingsKeyLength = 128; + public const string IVRSettings_Version = "IVRSettings_002"; + public const string k_pch_SteamVR_Section = "steamvr"; + public const string k_pch_SteamVR_RequireHmd_String = "requireHmd"; + public const string k_pch_SteamVR_ForcedDriverKey_String = "forcedDriver"; + public const string k_pch_SteamVR_ForcedHmdKey_String = "forcedHmd"; + public const string k_pch_SteamVR_DisplayDebug_Bool = "displayDebug"; + public const string k_pch_SteamVR_DebugProcessPipe_String = "debugProcessPipe"; + public const string k_pch_SteamVR_DisplayDebugX_Int32 = "displayDebugX"; + public const string k_pch_SteamVR_DisplayDebugY_Int32 = "displayDebugY"; + public const string k_pch_SteamVR_SendSystemButtonToAllApps_Bool = "sendSystemButtonToAllApps"; + public const string k_pch_SteamVR_LogLevel_Int32 = "loglevel"; + public const string k_pch_SteamVR_IPD_Float = "ipd"; + public const string k_pch_SteamVR_Background_String = "background"; + public const string k_pch_SteamVR_BackgroundUseDomeProjection_Bool = "backgroundUseDomeProjection"; + public const string k_pch_SteamVR_BackgroundCameraHeight_Float = "backgroundCameraHeight"; + public const string k_pch_SteamVR_BackgroundDomeRadius_Float = "backgroundDomeRadius"; + public const string k_pch_SteamVR_GridColor_String = "gridColor"; + public const string k_pch_SteamVR_PlayAreaColor_String = "playAreaColor"; + public const string k_pch_SteamVR_ShowStage_Bool = "showStage"; + public const string k_pch_SteamVR_ActivateMultipleDrivers_Bool = "activateMultipleDrivers"; + public const string k_pch_SteamVR_DirectMode_Bool = "directMode"; + public const string k_pch_SteamVR_DirectModeEdidVid_Int32 = "directModeEdidVid"; + public const string k_pch_SteamVR_DirectModeEdidPid_Int32 = "directModeEdidPid"; + public const string k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers"; + public const string k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees"; + public const string k_pch_SteamVR_BaseStationPowerManagement_Bool = "basestationPowerManagement"; + public const string k_pch_SteamVR_NeverKillProcesses_Bool = "neverKillProcesses"; + public const string k_pch_SteamVR_SupersampleScale_Float = "supersampleScale"; + public const string k_pch_SteamVR_AllowAsyncReprojection_Bool = "allowAsyncReprojection"; + public const string k_pch_SteamVR_AllowReprojection_Bool = "allowInterleavedReprojection"; + public const string k_pch_SteamVR_ForceReprojection_Bool = "forceReprojection"; + public const string k_pch_SteamVR_ForceFadeOnBadTracking_Bool = "forceFadeOnBadTracking"; + public const string k_pch_SteamVR_DefaultMirrorView_Int32 = "defaultMirrorView"; + public const string k_pch_SteamVR_ShowMirrorView_Bool = "showMirrorView"; + public const string k_pch_SteamVR_MirrorViewGeometry_String = "mirrorViewGeometry"; + public const string k_pch_SteamVR_StartMonitorFromAppLaunch = "startMonitorFromAppLaunch"; + public const string k_pch_SteamVR_StartCompositorFromAppLaunch_Bool = "startCompositorFromAppLaunch"; + public const string k_pch_SteamVR_StartDashboardFromAppLaunch_Bool = "startDashboardFromAppLaunch"; + public const string k_pch_SteamVR_StartOverlayAppsFromDashboard_Bool = "startOverlayAppsFromDashboard"; + public const string k_pch_SteamVR_EnableHomeApp = "enableHomeApp"; + public const string k_pch_SteamVR_CycleBackgroundImageTimeSec_Int32 = "CycleBackgroundImageTimeSec"; + public const string k_pch_SteamVR_RetailDemo_Bool = "retailDemo"; + public const string k_pch_SteamVR_IpdOffset_Float = "ipdOffset"; + public const string k_pch_SteamVR_AllowSupersampleFiltering_Bool = "allowSupersampleFiltering"; + public const string k_pch_Lighthouse_Section = "driver_lighthouse"; + public const string k_pch_Lighthouse_DisableIMU_Bool = "disableimu"; + public const string k_pch_Lighthouse_UseDisambiguation_String = "usedisambiguation"; + public const string k_pch_Lighthouse_DisambiguationDebug_Int32 = "disambiguationdebug"; + public const string k_pch_Lighthouse_PrimaryBasestation_Int32 = "primarybasestation"; + public const string k_pch_Lighthouse_DBHistory_Bool = "dbhistory"; + public const string k_pch_Null_Section = "driver_null"; + public const string k_pch_Null_SerialNumber_String = "serialNumber"; + public const string k_pch_Null_ModelNumber_String = "modelNumber"; + public const string k_pch_Null_WindowX_Int32 = "windowX"; + public const string k_pch_Null_WindowY_Int32 = "windowY"; + public const string k_pch_Null_WindowWidth_Int32 = "windowWidth"; + public const string k_pch_Null_WindowHeight_Int32 = "windowHeight"; + public const string k_pch_Null_RenderWidth_Int32 = "renderWidth"; + public const string k_pch_Null_RenderHeight_Int32 = "renderHeight"; + public const string k_pch_Null_SecondsFromVsyncToPhotons_Float = "secondsFromVsyncToPhotons"; + public const string k_pch_Null_DisplayFrequency_Float = "displayFrequency"; + public const string k_pch_UserInterface_Section = "userinterface"; + public const string k_pch_UserInterface_StatusAlwaysOnTop_Bool = "StatusAlwaysOnTop"; + public const string k_pch_UserInterface_MinimizeToTray_Bool = "MinimizeToTray"; + public const string k_pch_UserInterface_Screenshots_Bool = "screenshots"; + public const string k_pch_UserInterface_ScreenshotType_Int = "screenshotType"; + public const string k_pch_Notifications_Section = "notifications"; + public const string k_pch_Notifications_DoNotDisturb_Bool = "DoNotDisturb"; + public const string k_pch_Keyboard_Section = "keyboard"; + public const string k_pch_Keyboard_TutorialCompletions = "TutorialCompletions"; + public const string k_pch_Keyboard_ScaleX = "ScaleX"; + public const string k_pch_Keyboard_ScaleY = "ScaleY"; + public const string k_pch_Keyboard_OffsetLeftX = "OffsetLeftX"; + public const string k_pch_Keyboard_OffsetRightX = "OffsetRightX"; + public const string k_pch_Keyboard_OffsetY = "OffsetY"; + public const string k_pch_Keyboard_Smoothing = "Smoothing"; + public const string k_pch_Perf_Section = "perfcheck"; + public const string k_pch_Perf_HeuristicActive_Bool = "heuristicActive"; + public const string k_pch_Perf_NotifyInHMD_Bool = "warnInHMD"; + public const string k_pch_Perf_NotifyOnlyOnce_Bool = "warnOnlyOnce"; + public const string k_pch_Perf_AllowTimingStore_Bool = "allowTimingStore"; + public const string k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit"; + public const string k_pch_Perf_TestData_Float = "perfTestData"; + public const string k_pch_Perf_LinuxGPUProfiling_Bool = "linuxGPUProfiling"; + public const string k_pch_CollisionBounds_Section = "collisionBounds"; + public const string k_pch_CollisionBounds_Style_Int32 = "CollisionBoundsStyle"; + public const string k_pch_CollisionBounds_GroundPerimeterOn_Bool = "CollisionBoundsGroundPerimeterOn"; + public const string k_pch_CollisionBounds_CenterMarkerOn_Bool = "CollisionBoundsCenterMarkerOn"; + public const string k_pch_CollisionBounds_PlaySpaceOn_Bool = "CollisionBoundsPlaySpaceOn"; + public const string k_pch_CollisionBounds_FadeDistance_Float = "CollisionBoundsFadeDistance"; + public const string k_pch_CollisionBounds_ColorGammaR_Int32 = "CollisionBoundsColorGammaR"; + public const string k_pch_CollisionBounds_ColorGammaG_Int32 = "CollisionBoundsColorGammaG"; + public const string k_pch_CollisionBounds_ColorGammaB_Int32 = "CollisionBoundsColorGammaB"; + public const string k_pch_CollisionBounds_ColorGammaA_Int32 = "CollisionBoundsColorGammaA"; + public const string k_pch_Camera_Section = "camera"; + public const string k_pch_Camera_EnableCamera_Bool = "enableCamera"; + public const string k_pch_Camera_EnableCameraInDashboard_Bool = "enableCameraInDashboard"; + public const string k_pch_Camera_EnableCameraForCollisionBounds_Bool = "enableCameraForCollisionBounds"; + public const string k_pch_Camera_EnableCameraForRoomView_Bool = "enableCameraForRoomView"; + public const string k_pch_Camera_BoundsColorGammaR_Int32 = "cameraBoundsColorGammaR"; + public const string k_pch_Camera_BoundsColorGammaG_Int32 = "cameraBoundsColorGammaG"; + public const string k_pch_Camera_BoundsColorGammaB_Int32 = "cameraBoundsColorGammaB"; + public const string k_pch_Camera_BoundsColorGammaA_Int32 = "cameraBoundsColorGammaA"; + public const string k_pch_Camera_BoundsStrength_Int32 = "cameraBoundsStrength"; + public const string k_pch_audio_Section = "audio"; + public const string k_pch_audio_OnPlaybackDevice_String = "onPlaybackDevice"; + public const string k_pch_audio_OnRecordDevice_String = "onRecordDevice"; + public const string k_pch_audio_OnPlaybackMirrorDevice_String = "onPlaybackMirrorDevice"; + public const string k_pch_audio_OffPlaybackDevice_String = "offPlaybackDevice"; + public const string k_pch_audio_OffRecordDevice_String = "offRecordDevice"; + public const string k_pch_audio_VIVEHDMIGain = "viveHDMIGain"; + public const string k_pch_Power_Section = "power"; + public const string k_pch_Power_PowerOffOnExit_Bool = "powerOffOnExit"; + public const string k_pch_Power_TurnOffScreensTimeout_Float = "turnOffScreensTimeout"; + public const string k_pch_Power_TurnOffControllersTimeout_Float = "turnOffControllersTimeout"; + public const string k_pch_Power_ReturnToWatchdogTimeout_Float = "returnToWatchdogTimeout"; + public const string k_pch_Power_AutoLaunchSteamVROnButtonPress = "autoLaunchSteamVROnButtonPress"; + public const string k_pch_Dashboard_Section = "dashboard"; + public const string k_pch_Dashboard_EnableDashboard_Bool = "enableDashboard"; + public const string k_pch_Dashboard_ArcadeMode_Bool = "arcadeMode"; + public const string k_pch_modelskin_Section = "modelskins"; + public const string k_pch_Driver_Enable_Bool = "enable"; + public const string IVRScreenshots_Version = "IVRScreenshots_001"; + public const string IVRResources_Version = "IVRResources_001"; + public const string IVRDriverManager_Version = "IVRDriverManager_001"; + + static uint VRToken { get; set; } + + const string FnTable_Prefix = "FnTable:"; + + class COpenVRContext + { + public COpenVRContext() { Clear(); } + + public void Clear() + { + m_pVRSystem = null; + m_pVRChaperone = null; + m_pVRChaperoneSetup = null; + m_pVRCompositor = null; + m_pVROverlay = null; + m_pVRRenderModels = null; + m_pVRExtendedDisplay = null; + m_pVRSettings = null; + m_pVRApplications = null; + m_pVRScreenshots = null; + m_pVRTrackedCamera = null; + } + + void CheckClear() + { + if (VRToken != GetInitToken()) + { + Clear(); + VRToken = GetInitToken(); + } + } + + public CVRSystem VRSystem() + { + CheckClear(); + if (m_pVRSystem == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRSystem_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRSystem = new CVRSystem(pInterface); + } + return m_pVRSystem; + } + + public CVRChaperone VRChaperone() + { + CheckClear(); + if (m_pVRChaperone == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRChaperone_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRChaperone = new CVRChaperone(pInterface); + } + return m_pVRChaperone; + } + + public CVRChaperoneSetup VRChaperoneSetup() + { + CheckClear(); + if (m_pVRChaperoneSetup == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRChaperoneSetup_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRChaperoneSetup = new CVRChaperoneSetup(pInterface); + } + return m_pVRChaperoneSetup; + } + + public CVRCompositor VRCompositor() + { + CheckClear(); + if (m_pVRCompositor == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRCompositor_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRCompositor = new CVRCompositor(pInterface); + } + return m_pVRCompositor; + } + + public CVROverlay VROverlay() + { + CheckClear(); + if (m_pVROverlay == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVROverlay_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVROverlay = new CVROverlay(pInterface); + } + return m_pVROverlay; + } + + public CVRRenderModels VRRenderModels() + { + CheckClear(); + if (m_pVRRenderModels == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRRenderModels_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRRenderModels = new CVRRenderModels(pInterface); + } + return m_pVRRenderModels; + } + + public CVRExtendedDisplay VRExtendedDisplay() + { + CheckClear(); + if (m_pVRExtendedDisplay == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRExtendedDisplay_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRExtendedDisplay = new CVRExtendedDisplay(pInterface); + } + return m_pVRExtendedDisplay; + } + + public CVRSettings VRSettings() + { + CheckClear(); + if (m_pVRSettings == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRSettings_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRSettings = new CVRSettings(pInterface); + } + return m_pVRSettings; + } + + public CVRApplications VRApplications() + { + CheckClear(); + if (m_pVRApplications == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRApplications_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRApplications = new CVRApplications(pInterface); + } + return m_pVRApplications; + } + + public CVRScreenshots VRScreenshots() + { + CheckClear(); + if (m_pVRScreenshots == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRScreenshots_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRScreenshots = new CVRScreenshots(pInterface); + } + return m_pVRScreenshots; + } + + public CVRTrackedCamera VRTrackedCamera() + { + CheckClear(); + if (m_pVRTrackedCamera == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRTrackedCamera_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRTrackedCamera = new CVRTrackedCamera(pInterface); + } + return m_pVRTrackedCamera; + } + + private CVRSystem m_pVRSystem; + private CVRChaperone m_pVRChaperone; + private CVRChaperoneSetup m_pVRChaperoneSetup; + private CVRCompositor m_pVRCompositor; + private CVROverlay m_pVROverlay; + private CVRRenderModels m_pVRRenderModels; + private CVRExtendedDisplay m_pVRExtendedDisplay; + private CVRSettings m_pVRSettings; + private CVRApplications m_pVRApplications; + private CVRScreenshots m_pVRScreenshots; + private CVRTrackedCamera m_pVRTrackedCamera; + }; + + private static COpenVRContext _OpenVRInternal_ModuleContext = null; + static COpenVRContext OpenVRInternal_ModuleContext + { + get + { + if (_OpenVRInternal_ModuleContext == null) + _OpenVRInternal_ModuleContext = new COpenVRContext(); + return _OpenVRInternal_ModuleContext; + } + } + + public static CVRSystem System { get { return OpenVRInternal_ModuleContext.VRSystem(); } } + public static CVRChaperone Chaperone { get { return OpenVRInternal_ModuleContext.VRChaperone(); } } + public static CVRChaperoneSetup ChaperoneSetup { get { return OpenVRInternal_ModuleContext.VRChaperoneSetup(); } } + public static CVRCompositor Compositor { get { return OpenVRInternal_ModuleContext.VRCompositor(); } } + public static CVROverlay Overlay { get { return OpenVRInternal_ModuleContext.VROverlay(); } } + public static CVRRenderModels RenderModels { get { return OpenVRInternal_ModuleContext.VRRenderModels(); } } + public static CVRExtendedDisplay ExtendedDisplay { get { return OpenVRInternal_ModuleContext.VRExtendedDisplay(); } } + public static CVRSettings Settings { get { return OpenVRInternal_ModuleContext.VRSettings(); } } + public static CVRApplications Applications { get { return OpenVRInternal_ModuleContext.VRApplications(); } } + public static CVRScreenshots Screenshots { get { return OpenVRInternal_ModuleContext.VRScreenshots(); } } + public static CVRTrackedCamera TrackedCamera { get { return OpenVRInternal_ModuleContext.VRTrackedCamera(); } } + + /** Finds the active installation of vrclient.dll and initializes it */ + public static CVRSystem Init(ref EVRInitError peError, EVRApplicationType eApplicationType = EVRApplicationType.VRApplication_Scene) + { + VRToken = InitInternal(ref peError, eApplicationType); + OpenVRInternal_ModuleContext.Clear(); + + if (peError != EVRInitError.None) + return null; + + bool bInterfaceValid = IsInterfaceVersionValid(IVRSystem_Version); + if (!bInterfaceValid) + { + ShutdownInternal(); + peError = EVRInitError.Init_InterfaceNotFound; + return null; + } + + return OpenVR.System; + } + + /** unloads vrclient.dll. Any interface pointers from the interface are + * invalid after this point */ + public static void Shutdown() + { + ShutdownInternal(); + } + +} + + + +} + diff --git a/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Headers/openvr_api.json b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Headers/openvr_api.json new file mode 100644 index 000000000..bd76ded9f --- /dev/null +++ b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Headers/openvr_api.json @@ -0,0 +1,3887 @@ +{"typedefs":[{"typedef": "vr::glSharedTextureHandle_t","type": "void *"} +,{"typedef": "vr::glInt_t","type": "int32_t"} +,{"typedef": "vr::glUInt_t","type": "uint32_t"} +,{"typedef": "vr::SharedTextureHandle_t","type": "uint64_t"} +,{"typedef": "vr::DriverId_t","type": "uint32_t"} +,{"typedef": "vr::TrackedDeviceIndex_t","type": "uint32_t"} +,{"typedef": "vr::PropertyContainerHandle_t","type": "uint64_t"} +,{"typedef": "vr::PropertyTypeTag_t","type": "uint32_t"} +,{"typedef": "vr::VREvent_Data_t","type": "union VREvent_Data_t"} +,{"typedef": "vr::VRControllerState_t","type": "struct vr::VRControllerState001_t"} +,{"typedef": "vr::VROverlayHandle_t","type": "uint64_t"} +,{"typedef": "vr::TrackedCameraHandle_t","type": "uint64_t"} +,{"typedef": "vr::ScreenshotHandle_t","type": "uint32_t"} +,{"typedef": "vr::VROverlayIntersectionMaskPrimitive_Data_t","type": "union VROverlayIntersectionMaskPrimitive_Data_t"} +,{"typedef": "vr::VRComponentProperties","type": "uint32_t"} +,{"typedef": "vr::TextureID_t","type": "int32_t"} +,{"typedef": "vr::VRNotificationId","type": "uint32_t"} +,{"typedef": "vr::HmdError","type": "enum vr::EVRInitError"} +,{"typedef": "vr::Hmd_Eye","type": "enum vr::EVREye"} +,{"typedef": "vr::ColorSpace","type": "enum vr::EColorSpace"} +,{"typedef": "vr::HmdTrackingResult","type": "enum vr::ETrackingResult"} +,{"typedef": "vr::TrackedDeviceClass","type": "enum vr::ETrackedDeviceClass"} +,{"typedef": "vr::TrackingUniverseOrigin","type": "enum vr::ETrackingUniverseOrigin"} +,{"typedef": "vr::TrackedDeviceProperty","type": "enum vr::ETrackedDeviceProperty"} +,{"typedef": "vr::TrackedPropertyError","type": "enum vr::ETrackedPropertyError"} +,{"typedef": "vr::VRSubmitFlags_t","type": "enum vr::EVRSubmitFlags"} +,{"typedef": "vr::VRState_t","type": "enum vr::EVRState"} +,{"typedef": "vr::CollisionBoundsStyle_t","type": "enum vr::ECollisionBoundsStyle"} +,{"typedef": "vr::VROverlayError","type": "enum vr::EVROverlayError"} +,{"typedef": "vr::VRFirmwareError","type": "enum vr::EVRFirmwareError"} +,{"typedef": "vr::VRCompositorError","type": "enum vr::EVRCompositorError"} +,{"typedef": "vr::VRScreenshotsError","type": "enum vr::EVRScreenshotError"} +], +"enums":[ + {"enumname": "vr::EVREye","values": [ + {"name": "Eye_Left","value": "0"} + ,{"name": "Eye_Right","value": "1"} +]} +, {"enumname": "vr::ETextureType","values": [ + {"name": "TextureType_DirectX","value": "0"} + ,{"name": "TextureType_OpenGL","value": "1"} + ,{"name": "TextureType_Vulkan","value": "2"} + ,{"name": "TextureType_IOSurface","value": "3"} + ,{"name": "TextureType_DirectX12","value": "4"} +]} +, {"enumname": "vr::EColorSpace","values": [ + {"name": "ColorSpace_Auto","value": "0"} + ,{"name": "ColorSpace_Gamma","value": "1"} + ,{"name": "ColorSpace_Linear","value": "2"} +]} +, {"enumname": "vr::ETrackingResult","values": [ + {"name": "TrackingResult_Uninitialized","value": "1"} + ,{"name": "TrackingResult_Calibrating_InProgress","value": "100"} + ,{"name": "TrackingResult_Calibrating_OutOfRange","value": "101"} + ,{"name": "TrackingResult_Running_OK","value": "200"} + ,{"name": "TrackingResult_Running_OutOfRange","value": "201"} +]} +, {"enumname": "vr::ETrackedDeviceClass","values": [ + {"name": "TrackedDeviceClass_Invalid","value": "0"} + ,{"name": "TrackedDeviceClass_HMD","value": "1"} + ,{"name": "TrackedDeviceClass_Controller","value": "2"} + ,{"name": "TrackedDeviceClass_GenericTracker","value": "3"} + ,{"name": "TrackedDeviceClass_TrackingReference","value": "4"} + ,{"name": "TrackedDeviceClass_DisplayRedirect","value": "5"} +]} +, {"enumname": "vr::ETrackedControllerRole","values": [ + {"name": "TrackedControllerRole_Invalid","value": "0"} + ,{"name": "TrackedControllerRole_LeftHand","value": "1"} + ,{"name": "TrackedControllerRole_RightHand","value": "2"} +]} +, {"enumname": "vr::ETrackingUniverseOrigin","values": [ + {"name": "TrackingUniverseSeated","value": "0"} + ,{"name": "TrackingUniverseStanding","value": "1"} + ,{"name": "TrackingUniverseRawAndUncalibrated","value": "2"} +]} +, {"enumname": "vr::ETrackedDeviceProperty","values": [ + {"name": "Prop_Invalid","value": "0"} + ,{"name": "Prop_TrackingSystemName_String","value": "1000"} + ,{"name": "Prop_ModelNumber_String","value": "1001"} + ,{"name": "Prop_SerialNumber_String","value": "1002"} + ,{"name": "Prop_RenderModelName_String","value": "1003"} + ,{"name": "Prop_WillDriftInYaw_Bool","value": "1004"} + ,{"name": "Prop_ManufacturerName_String","value": "1005"} + ,{"name": "Prop_TrackingFirmwareVersion_String","value": "1006"} + ,{"name": "Prop_HardwareRevision_String","value": "1007"} + ,{"name": "Prop_AllWirelessDongleDescriptions_String","value": "1008"} + ,{"name": "Prop_ConnectedWirelessDongle_String","value": "1009"} + ,{"name": "Prop_DeviceIsWireless_Bool","value": "1010"} + ,{"name": "Prop_DeviceIsCharging_Bool","value": "1011"} + ,{"name": "Prop_DeviceBatteryPercentage_Float","value": "1012"} + ,{"name": "Prop_StatusDisplayTransform_Matrix34","value": "1013"} + ,{"name": "Prop_Firmware_UpdateAvailable_Bool","value": "1014"} + ,{"name": "Prop_Firmware_ManualUpdate_Bool","value": "1015"} + ,{"name": "Prop_Firmware_ManualUpdateURL_String","value": "1016"} + ,{"name": "Prop_HardwareRevision_Uint64","value": "1017"} + ,{"name": "Prop_FirmwareVersion_Uint64","value": "1018"} + ,{"name": "Prop_FPGAVersion_Uint64","value": "1019"} + ,{"name": "Prop_VRCVersion_Uint64","value": "1020"} + ,{"name": "Prop_RadioVersion_Uint64","value": "1021"} + ,{"name": "Prop_DongleVersion_Uint64","value": "1022"} + ,{"name": "Prop_BlockServerShutdown_Bool","value": "1023"} + ,{"name": "Prop_CanUnifyCoordinateSystemWithHmd_Bool","value": "1024"} + ,{"name": "Prop_ContainsProximitySensor_Bool","value": "1025"} + ,{"name": "Prop_DeviceProvidesBatteryStatus_Bool","value": "1026"} + ,{"name": "Prop_DeviceCanPowerOff_Bool","value": "1027"} + ,{"name": "Prop_Firmware_ProgrammingTarget_String","value": "1028"} + ,{"name": "Prop_DeviceClass_Int32","value": "1029"} + ,{"name": "Prop_HasCamera_Bool","value": "1030"} + ,{"name": "Prop_DriverVersion_String","value": "1031"} + ,{"name": "Prop_Firmware_ForceUpdateRequired_Bool","value": "1032"} + ,{"name": "Prop_ViveSystemButtonFixRequired_Bool","value": "1033"} + ,{"name": "Prop_ParentDriver_Uint64","value": "1034"} + ,{"name": "Prop_ResourceRoot_String","value": "1035"} + ,{"name": "Prop_ReportsTimeSinceVSync_Bool","value": "2000"} + ,{"name": "Prop_SecondsFromVsyncToPhotons_Float","value": "2001"} + ,{"name": "Prop_DisplayFrequency_Float","value": "2002"} + ,{"name": "Prop_UserIpdMeters_Float","value": "2003"} + ,{"name": "Prop_CurrentUniverseId_Uint64","value": "2004"} + ,{"name": "Prop_PreviousUniverseId_Uint64","value": "2005"} + ,{"name": "Prop_DisplayFirmwareVersion_Uint64","value": "2006"} + ,{"name": "Prop_IsOnDesktop_Bool","value": "2007"} + ,{"name": "Prop_DisplayMCType_Int32","value": "2008"} + ,{"name": "Prop_DisplayMCOffset_Float","value": "2009"} + ,{"name": "Prop_DisplayMCScale_Float","value": "2010"} + ,{"name": "Prop_EdidVendorID_Int32","value": "2011"} + ,{"name": "Prop_DisplayMCImageLeft_String","value": "2012"} + ,{"name": "Prop_DisplayMCImageRight_String","value": "2013"} + ,{"name": "Prop_DisplayGCBlackClamp_Float","value": "2014"} + ,{"name": "Prop_EdidProductID_Int32","value": "2015"} + ,{"name": "Prop_CameraToHeadTransform_Matrix34","value": "2016"} + ,{"name": "Prop_DisplayGCType_Int32","value": "2017"} + ,{"name": "Prop_DisplayGCOffset_Float","value": "2018"} + ,{"name": "Prop_DisplayGCScale_Float","value": "2019"} + ,{"name": "Prop_DisplayGCPrescale_Float","value": "2020"} + ,{"name": "Prop_DisplayGCImage_String","value": "2021"} + ,{"name": "Prop_LensCenterLeftU_Float","value": "2022"} + ,{"name": "Prop_LensCenterLeftV_Float","value": "2023"} + ,{"name": "Prop_LensCenterRightU_Float","value": "2024"} + ,{"name": "Prop_LensCenterRightV_Float","value": "2025"} + ,{"name": "Prop_UserHeadToEyeDepthMeters_Float","value": "2026"} + ,{"name": "Prop_CameraFirmwareVersion_Uint64","value": "2027"} + ,{"name": "Prop_CameraFirmwareDescription_String","value": "2028"} + ,{"name": "Prop_DisplayFPGAVersion_Uint64","value": "2029"} + ,{"name": "Prop_DisplayBootloaderVersion_Uint64","value": "2030"} + ,{"name": "Prop_DisplayHardwareVersion_Uint64","value": "2031"} + ,{"name": "Prop_AudioFirmwareVersion_Uint64","value": "2032"} + ,{"name": "Prop_CameraCompatibilityMode_Int32","value": "2033"} + ,{"name": "Prop_ScreenshotHorizontalFieldOfViewDegrees_Float","value": "2034"} + ,{"name": "Prop_ScreenshotVerticalFieldOfViewDegrees_Float","value": "2035"} + ,{"name": "Prop_DisplaySuppressed_Bool","value": "2036"} + ,{"name": "Prop_DisplayAllowNightMode_Bool","value": "2037"} + ,{"name": "Prop_DisplayMCImageWidth_Int32","value": "2038"} + ,{"name": "Prop_DisplayMCImageHeight_Int32","value": "2039"} + ,{"name": "Prop_DisplayMCImageNumChannels_Int32","value": "2040"} + ,{"name": "Prop_DisplayMCImageData_Binary","value": "2041"} + ,{"name": "Prop_SecondsFromPhotonsToVblank_Float","value": "2042"} + ,{"name": "Prop_DriverDirectModeSendsVsyncEvents_Bool","value": "2043"} + ,{"name": "Prop_DisplayDebugMode_Bool","value": "2044"} + ,{"name": "Prop_GraphicsAdapterLuid_Uint64","value": "2045"} + ,{"name": "Prop_AttachedDeviceId_String","value": "3000"} + ,{"name": "Prop_SupportedButtons_Uint64","value": "3001"} + ,{"name": "Prop_Axis0Type_Int32","value": "3002"} + ,{"name": "Prop_Axis1Type_Int32","value": "3003"} + ,{"name": "Prop_Axis2Type_Int32","value": "3004"} + ,{"name": "Prop_Axis3Type_Int32","value": "3005"} + ,{"name": "Prop_Axis4Type_Int32","value": "3006"} + ,{"name": "Prop_ControllerRoleHint_Int32","value": "3007"} + ,{"name": "Prop_FieldOfViewLeftDegrees_Float","value": "4000"} + ,{"name": "Prop_FieldOfViewRightDegrees_Float","value": "4001"} + ,{"name": "Prop_FieldOfViewTopDegrees_Float","value": "4002"} + ,{"name": "Prop_FieldOfViewBottomDegrees_Float","value": "4003"} + ,{"name": "Prop_TrackingRangeMinimumMeters_Float","value": "4004"} + ,{"name": "Prop_TrackingRangeMaximumMeters_Float","value": "4005"} + ,{"name": "Prop_ModeLabel_String","value": "4006"} + ,{"name": "Prop_IconPathName_String","value": "5000"} + ,{"name": "Prop_NamedIconPathDeviceOff_String","value": "5001"} + ,{"name": "Prop_NamedIconPathDeviceSearching_String","value": "5002"} + ,{"name": "Prop_NamedIconPathDeviceSearchingAlert_String","value": "5003"} + ,{"name": "Prop_NamedIconPathDeviceReady_String","value": "5004"} + ,{"name": "Prop_NamedIconPathDeviceReadyAlert_String","value": "5005"} + ,{"name": "Prop_NamedIconPathDeviceNotReady_String","value": "5006"} + ,{"name": "Prop_NamedIconPathDeviceStandby_String","value": "5007"} + ,{"name": "Prop_NamedIconPathDeviceAlertLow_String","value": "5008"} + ,{"name": "Prop_DisplayHiddenArea_Binary_Start","value": "5100"} + ,{"name": "Prop_DisplayHiddenArea_Binary_End","value": "5150"} + ,{"name": "Prop_UserConfigPath_String","value": "6000"} + ,{"name": "Prop_InstallPath_String","value": "6001"} + ,{"name": "Prop_HasDisplayComponent_Bool","value": "6002"} + ,{"name": "Prop_HasControllerComponent_Bool","value": "6003"} + ,{"name": "Prop_HasCameraComponent_Bool","value": "6004"} + ,{"name": "Prop_HasDriverDirectModeComponent_Bool","value": "6005"} + ,{"name": "Prop_HasVirtualDisplayComponent_Bool","value": "6006"} + ,{"name": "Prop_VendorSpecific_Reserved_Start","value": "10000"} + ,{"name": "Prop_VendorSpecific_Reserved_End","value": "10999"} +]} +, {"enumname": "vr::ETrackedPropertyError","values": [ + {"name": "TrackedProp_Success","value": "0"} + ,{"name": "TrackedProp_WrongDataType","value": "1"} + ,{"name": "TrackedProp_WrongDeviceClass","value": "2"} + ,{"name": "TrackedProp_BufferTooSmall","value": "3"} + ,{"name": "TrackedProp_UnknownProperty","value": "4"} + ,{"name": "TrackedProp_InvalidDevice","value": "5"} + ,{"name": "TrackedProp_CouldNotContactServer","value": "6"} + ,{"name": "TrackedProp_ValueNotProvidedByDevice","value": "7"} + ,{"name": "TrackedProp_StringExceedsMaximumLength","value": "8"} + ,{"name": "TrackedProp_NotYetAvailable","value": "9"} + ,{"name": "TrackedProp_PermissionDenied","value": "10"} + ,{"name": "TrackedProp_InvalidOperation","value": "11"} +]} +, {"enumname": "vr::EVRSubmitFlags","values": [ + {"name": "Submit_Default","value": "0"} + ,{"name": "Submit_LensDistortionAlreadyApplied","value": "1"} + ,{"name": "Submit_GlRenderBuffer","value": "2"} + ,{"name": "Submit_Reserved","value": "4"} +]} +, {"enumname": "vr::EVRState","values": [ + {"name": "VRState_Undefined","value": "-1"} + ,{"name": "VRState_Off","value": "0"} + ,{"name": "VRState_Searching","value": "1"} + ,{"name": "VRState_Searching_Alert","value": "2"} + ,{"name": "VRState_Ready","value": "3"} + ,{"name": "VRState_Ready_Alert","value": "4"} + ,{"name": "VRState_NotReady","value": "5"} + ,{"name": "VRState_Standby","value": "6"} + ,{"name": "VRState_Ready_Alert_Low","value": "7"} +]} +, {"enumname": "vr::EVREventType","values": [ + {"name": "VREvent_None","value": "0"} + ,{"name": "VREvent_TrackedDeviceActivated","value": "100"} + ,{"name": "VREvent_TrackedDeviceDeactivated","value": "101"} + ,{"name": "VREvent_TrackedDeviceUpdated","value": "102"} + ,{"name": "VREvent_TrackedDeviceUserInteractionStarted","value": "103"} + ,{"name": "VREvent_TrackedDeviceUserInteractionEnded","value": "104"} + ,{"name": "VREvent_IpdChanged","value": "105"} + ,{"name": "VREvent_EnterStandbyMode","value": "106"} + ,{"name": "VREvent_LeaveStandbyMode","value": "107"} + ,{"name": "VREvent_TrackedDeviceRoleChanged","value": "108"} + ,{"name": "VREvent_WatchdogWakeUpRequested","value": "109"} + ,{"name": "VREvent_LensDistortionChanged","value": "110"} + ,{"name": "VREvent_PropertyChanged","value": "111"} + ,{"name": "VREvent_ButtonPress","value": "200"} + ,{"name": "VREvent_ButtonUnpress","value": "201"} + ,{"name": "VREvent_ButtonTouch","value": "202"} + ,{"name": "VREvent_ButtonUntouch","value": "203"} + ,{"name": "VREvent_MouseMove","value": "300"} + ,{"name": "VREvent_MouseButtonDown","value": "301"} + ,{"name": "VREvent_MouseButtonUp","value": "302"} + ,{"name": "VREvent_FocusEnter","value": "303"} + ,{"name": "VREvent_FocusLeave","value": "304"} + ,{"name": "VREvent_Scroll","value": "305"} + ,{"name": "VREvent_TouchPadMove","value": "306"} + ,{"name": "VREvent_OverlayFocusChanged","value": "307"} + ,{"name": "VREvent_InputFocusCaptured","value": "400"} + ,{"name": "VREvent_InputFocusReleased","value": "401"} + ,{"name": "VREvent_SceneFocusLost","value": "402"} + ,{"name": "VREvent_SceneFocusGained","value": "403"} + ,{"name": "VREvent_SceneApplicationChanged","value": "404"} + ,{"name": "VREvent_SceneFocusChanged","value": "405"} + ,{"name": "VREvent_InputFocusChanged","value": "406"} + ,{"name": "VREvent_SceneApplicationSecondaryRenderingStarted","value": "407"} + ,{"name": "VREvent_HideRenderModels","value": "410"} + ,{"name": "VREvent_ShowRenderModels","value": "411"} + ,{"name": "VREvent_OverlayShown","value": "500"} + ,{"name": "VREvent_OverlayHidden","value": "501"} + ,{"name": "VREvent_DashboardActivated","value": "502"} + ,{"name": "VREvent_DashboardDeactivated","value": "503"} + ,{"name": "VREvent_DashboardThumbSelected","value": "504"} + ,{"name": "VREvent_DashboardRequested","value": "505"} + ,{"name": "VREvent_ResetDashboard","value": "506"} + ,{"name": "VREvent_RenderToast","value": "507"} + ,{"name": "VREvent_ImageLoaded","value": "508"} + ,{"name": "VREvent_ShowKeyboard","value": "509"} + ,{"name": "VREvent_HideKeyboard","value": "510"} + ,{"name": "VREvent_OverlayGamepadFocusGained","value": "511"} + ,{"name": "VREvent_OverlayGamepadFocusLost","value": "512"} + ,{"name": "VREvent_OverlaySharedTextureChanged","value": "513"} + ,{"name": "VREvent_DashboardGuideButtonDown","value": "514"} + ,{"name": "VREvent_DashboardGuideButtonUp","value": "515"} + ,{"name": "VREvent_ScreenshotTriggered","value": "516"} + ,{"name": "VREvent_ImageFailed","value": "517"} + ,{"name": "VREvent_DashboardOverlayCreated","value": "518"} + ,{"name": "VREvent_RequestScreenshot","value": "520"} + ,{"name": "VREvent_ScreenshotTaken","value": "521"} + ,{"name": "VREvent_ScreenshotFailed","value": "522"} + ,{"name": "VREvent_SubmitScreenshotToDashboard","value": "523"} + ,{"name": "VREvent_ScreenshotProgressToDashboard","value": "524"} + ,{"name": "VREvent_PrimaryDashboardDeviceChanged","value": "525"} + ,{"name": "VREvent_Notification_Shown","value": "600"} + ,{"name": "VREvent_Notification_Hidden","value": "601"} + ,{"name": "VREvent_Notification_BeginInteraction","value": "602"} + ,{"name": "VREvent_Notification_Destroyed","value": "603"} + ,{"name": "VREvent_Quit","value": "700"} + ,{"name": "VREvent_ProcessQuit","value": "701"} + ,{"name": "VREvent_QuitAborted_UserPrompt","value": "702"} + ,{"name": "VREvent_QuitAcknowledged","value": "703"} + ,{"name": "VREvent_DriverRequestedQuit","value": "704"} + ,{"name": "VREvent_ChaperoneDataHasChanged","value": "800"} + ,{"name": "VREvent_ChaperoneUniverseHasChanged","value": "801"} + ,{"name": "VREvent_ChaperoneTempDataHasChanged","value": "802"} + ,{"name": "VREvent_ChaperoneSettingsHaveChanged","value": "803"} + ,{"name": "VREvent_SeatedZeroPoseReset","value": "804"} + ,{"name": "VREvent_AudioSettingsHaveChanged","value": "820"} + ,{"name": "VREvent_BackgroundSettingHasChanged","value": "850"} + ,{"name": "VREvent_CameraSettingsHaveChanged","value": "851"} + ,{"name": "VREvent_ReprojectionSettingHasChanged","value": "852"} + ,{"name": "VREvent_ModelSkinSettingsHaveChanged","value": "853"} + ,{"name": "VREvent_EnvironmentSettingsHaveChanged","value": "854"} + ,{"name": "VREvent_PowerSettingsHaveChanged","value": "855"} + ,{"name": "VREvent_EnableHomeAppSettingsHaveChanged","value": "856"} + ,{"name": "VREvent_StatusUpdate","value": "900"} + ,{"name": "VREvent_MCImageUpdated","value": "1000"} + ,{"name": "VREvent_FirmwareUpdateStarted","value": "1100"} + ,{"name": "VREvent_FirmwareUpdateFinished","value": "1101"} + ,{"name": "VREvent_KeyboardClosed","value": "1200"} + ,{"name": "VREvent_KeyboardCharInput","value": "1201"} + ,{"name": "VREvent_KeyboardDone","value": "1202"} + ,{"name": "VREvent_ApplicationTransitionStarted","value": "1300"} + ,{"name": "VREvent_ApplicationTransitionAborted","value": "1301"} + ,{"name": "VREvent_ApplicationTransitionNewAppStarted","value": "1302"} + ,{"name": "VREvent_ApplicationListUpdated","value": "1303"} + ,{"name": "VREvent_ApplicationMimeTypeLoad","value": "1304"} + ,{"name": "VREvent_ApplicationTransitionNewAppLaunchComplete","value": "1305"} + ,{"name": "VREvent_ProcessConnected","value": "1306"} + ,{"name": "VREvent_ProcessDisconnected","value": "1307"} + ,{"name": "VREvent_Compositor_MirrorWindowShown","value": "1400"} + ,{"name": "VREvent_Compositor_MirrorWindowHidden","value": "1401"} + ,{"name": "VREvent_Compositor_ChaperoneBoundsShown","value": "1410"} + ,{"name": "VREvent_Compositor_ChaperoneBoundsHidden","value": "1411"} + ,{"name": "VREvent_TrackedCamera_StartVideoStream","value": "1500"} + ,{"name": "VREvent_TrackedCamera_StopVideoStream","value": "1501"} + ,{"name": "VREvent_TrackedCamera_PauseVideoStream","value": "1502"} + ,{"name": "VREvent_TrackedCamera_ResumeVideoStream","value": "1503"} + ,{"name": "VREvent_TrackedCamera_EditingSurface","value": "1550"} + ,{"name": "VREvent_PerformanceTest_EnableCapture","value": "1600"} + ,{"name": "VREvent_PerformanceTest_DisableCapture","value": "1601"} + ,{"name": "VREvent_PerformanceTest_FidelityLevel","value": "1602"} + ,{"name": "VREvent_MessageOverlay_Closed","value": "1650"} + ,{"name": "VREvent_VendorSpecific_Reserved_Start","value": "10000"} + ,{"name": "VREvent_VendorSpecific_Reserved_End","value": "19999"} +]} +, {"enumname": "vr::EDeviceActivityLevel","values": [ + {"name": "k_EDeviceActivityLevel_Unknown","value": "-1"} + ,{"name": "k_EDeviceActivityLevel_Idle","value": "0"} + ,{"name": "k_EDeviceActivityLevel_UserInteraction","value": "1"} + ,{"name": "k_EDeviceActivityLevel_UserInteraction_Timeout","value": "2"} + ,{"name": "k_EDeviceActivityLevel_Standby","value": "3"} +]} +, {"enumname": "vr::EVRButtonId","values": [ + {"name": "k_EButton_System","value": "0"} + ,{"name": "k_EButton_ApplicationMenu","value": "1"} + ,{"name": "k_EButton_Grip","value": "2"} + ,{"name": "k_EButton_DPad_Left","value": "3"} + ,{"name": "k_EButton_DPad_Up","value": "4"} + ,{"name": "k_EButton_DPad_Right","value": "5"} + ,{"name": "k_EButton_DPad_Down","value": "6"} + ,{"name": "k_EButton_A","value": "7"} + ,{"name": "k_EButton_ProximitySensor","value": "31"} + ,{"name": "k_EButton_Axis0","value": "32"} + ,{"name": "k_EButton_Axis1","value": "33"} + ,{"name": "k_EButton_Axis2","value": "34"} + ,{"name": "k_EButton_Axis3","value": "35"} + ,{"name": "k_EButton_Axis4","value": "36"} + ,{"name": "k_EButton_SteamVR_Touchpad","value": "32"} + ,{"name": "k_EButton_SteamVR_Trigger","value": "33"} + ,{"name": "k_EButton_Dashboard_Back","value": "2"} + ,{"name": "k_EButton_Max","value": "64"} +]} +, {"enumname": "vr::EVRMouseButton","values": [ + {"name": "VRMouseButton_Left","value": "1"} + ,{"name": "VRMouseButton_Right","value": "2"} + ,{"name": "VRMouseButton_Middle","value": "4"} +]} +, {"enumname": "vr::EHiddenAreaMeshType","values": [ + {"name": "k_eHiddenAreaMesh_Standard","value": "0"} + ,{"name": "k_eHiddenAreaMesh_Inverse","value": "1"} + ,{"name": "k_eHiddenAreaMesh_LineLoop","value": "2"} + ,{"name": "k_eHiddenAreaMesh_Max","value": "3"} +]} +, {"enumname": "vr::EVRControllerAxisType","values": [ + {"name": "k_eControllerAxis_None","value": "0"} + ,{"name": "k_eControllerAxis_TrackPad","value": "1"} + ,{"name": "k_eControllerAxis_Joystick","value": "2"} + ,{"name": "k_eControllerAxis_Trigger","value": "3"} +]} +, {"enumname": "vr::EVRControllerEventOutputType","values": [ + {"name": "ControllerEventOutput_OSEvents","value": "0"} + ,{"name": "ControllerEventOutput_VREvents","value": "1"} +]} +, {"enumname": "vr::ECollisionBoundsStyle","values": [ + {"name": "COLLISION_BOUNDS_STYLE_BEGINNER","value": "0"} + ,{"name": "COLLISION_BOUNDS_STYLE_INTERMEDIATE","value": "1"} + ,{"name": "COLLISION_BOUNDS_STYLE_SQUARES","value": "2"} + ,{"name": "COLLISION_BOUNDS_STYLE_ADVANCED","value": "3"} + ,{"name": "COLLISION_BOUNDS_STYLE_NONE","value": "4"} + ,{"name": "COLLISION_BOUNDS_STYLE_COUNT","value": "5"} +]} +, {"enumname": "vr::EVROverlayError","values": [ + {"name": "VROverlayError_None","value": "0"} + ,{"name": "VROverlayError_UnknownOverlay","value": "10"} + ,{"name": "VROverlayError_InvalidHandle","value": "11"} + ,{"name": "VROverlayError_PermissionDenied","value": "12"} + ,{"name": "VROverlayError_OverlayLimitExceeded","value": "13"} + ,{"name": "VROverlayError_WrongVisibilityType","value": "14"} + ,{"name": "VROverlayError_KeyTooLong","value": "15"} + ,{"name": "VROverlayError_NameTooLong","value": "16"} + ,{"name": "VROverlayError_KeyInUse","value": "17"} + ,{"name": "VROverlayError_WrongTransformType","value": "18"} + ,{"name": "VROverlayError_InvalidTrackedDevice","value": "19"} + ,{"name": "VROverlayError_InvalidParameter","value": "20"} + ,{"name": "VROverlayError_ThumbnailCantBeDestroyed","value": "21"} + ,{"name": "VROverlayError_ArrayTooSmall","value": "22"} + ,{"name": "VROverlayError_RequestFailed","value": "23"} + ,{"name": "VROverlayError_InvalidTexture","value": "24"} + ,{"name": "VROverlayError_UnableToLoadFile","value": "25"} + ,{"name": "VROverlayError_KeyboardAlreadyInUse","value": "26"} + ,{"name": "VROverlayError_NoNeighbor","value": "27"} + ,{"name": "VROverlayError_TooManyMaskPrimitives","value": "29"} + ,{"name": "VROverlayError_BadMaskPrimitive","value": "30"} +]} +, {"enumname": "vr::EVRApplicationType","values": [ + {"name": "VRApplication_Other","value": "0"} + ,{"name": "VRApplication_Scene","value": "1"} + ,{"name": "VRApplication_Overlay","value": "2"} + ,{"name": "VRApplication_Background","value": "3"} + ,{"name": "VRApplication_Utility","value": "4"} + ,{"name": "VRApplication_VRMonitor","value": "5"} + ,{"name": "VRApplication_SteamWatchdog","value": "6"} + ,{"name": "VRApplication_Bootstrapper","value": "7"} + ,{"name": "VRApplication_Max","value": "8"} +]} +, {"enumname": "vr::EVRFirmwareError","values": [ + {"name": "VRFirmwareError_None","value": "0"} + ,{"name": "VRFirmwareError_Success","value": "1"} + ,{"name": "VRFirmwareError_Fail","value": "2"} +]} +, {"enumname": "vr::EVRNotificationError","values": [ + {"name": "VRNotificationError_OK","value": "0"} + ,{"name": "VRNotificationError_InvalidNotificationId","value": "100"} + ,{"name": "VRNotificationError_NotificationQueueFull","value": "101"} + ,{"name": "VRNotificationError_InvalidOverlayHandle","value": "102"} + ,{"name": "VRNotificationError_SystemWithUserValueAlreadyExists","value": "103"} +]} +, {"enumname": "vr::EVRInitError","values": [ + {"name": "VRInitError_None","value": "0"} + ,{"name": "VRInitError_Unknown","value": "1"} + ,{"name": "VRInitError_Init_InstallationNotFound","value": "100"} + ,{"name": "VRInitError_Init_InstallationCorrupt","value": "101"} + ,{"name": "VRInitError_Init_VRClientDLLNotFound","value": "102"} + ,{"name": "VRInitError_Init_FileNotFound","value": "103"} + ,{"name": "VRInitError_Init_FactoryNotFound","value": "104"} + ,{"name": "VRInitError_Init_InterfaceNotFound","value": "105"} + ,{"name": "VRInitError_Init_InvalidInterface","value": "106"} + ,{"name": "VRInitError_Init_UserConfigDirectoryInvalid","value": "107"} + ,{"name": "VRInitError_Init_HmdNotFound","value": "108"} + ,{"name": "VRInitError_Init_NotInitialized","value": "109"} + ,{"name": "VRInitError_Init_PathRegistryNotFound","value": "110"} + ,{"name": "VRInitError_Init_NoConfigPath","value": "111"} + ,{"name": "VRInitError_Init_NoLogPath","value": "112"} + ,{"name": "VRInitError_Init_PathRegistryNotWritable","value": "113"} + ,{"name": "VRInitError_Init_AppInfoInitFailed","value": "114"} + ,{"name": "VRInitError_Init_Retry","value": "115"} + ,{"name": "VRInitError_Init_InitCanceledByUser","value": "116"} + ,{"name": "VRInitError_Init_AnotherAppLaunching","value": "117"} + ,{"name": "VRInitError_Init_SettingsInitFailed","value": "118"} + ,{"name": "VRInitError_Init_ShuttingDown","value": "119"} + ,{"name": "VRInitError_Init_TooManyObjects","value": "120"} + ,{"name": "VRInitError_Init_NoServerForBackgroundApp","value": "121"} + ,{"name": "VRInitError_Init_NotSupportedWithCompositor","value": "122"} + ,{"name": "VRInitError_Init_NotAvailableToUtilityApps","value": "123"} + ,{"name": "VRInitError_Init_Internal","value": "124"} + ,{"name": "VRInitError_Init_HmdDriverIdIsNone","value": "125"} + ,{"name": "VRInitError_Init_HmdNotFoundPresenceFailed","value": "126"} + ,{"name": "VRInitError_Init_VRMonitorNotFound","value": "127"} + ,{"name": "VRInitError_Init_VRMonitorStartupFailed","value": "128"} + ,{"name": "VRInitError_Init_LowPowerWatchdogNotSupported","value": "129"} + ,{"name": "VRInitError_Init_InvalidApplicationType","value": "130"} + ,{"name": "VRInitError_Init_NotAvailableToWatchdogApps","value": "131"} + ,{"name": "VRInitError_Init_WatchdogDisabledInSettings","value": "132"} + ,{"name": "VRInitError_Init_VRDashboardNotFound","value": "133"} + ,{"name": "VRInitError_Init_VRDashboardStartupFailed","value": "134"} + ,{"name": "VRInitError_Init_VRHomeNotFound","value": "135"} + ,{"name": "VRInitError_Init_VRHomeStartupFailed","value": "136"} + ,{"name": "VRInitError_Driver_Failed","value": "200"} + ,{"name": "VRInitError_Driver_Unknown","value": "201"} + ,{"name": "VRInitError_Driver_HmdUnknown","value": "202"} + ,{"name": "VRInitError_Driver_NotLoaded","value": "203"} + ,{"name": "VRInitError_Driver_RuntimeOutOfDate","value": "204"} + ,{"name": "VRInitError_Driver_HmdInUse","value": "205"} + ,{"name": "VRInitError_Driver_NotCalibrated","value": "206"} + ,{"name": "VRInitError_Driver_CalibrationInvalid","value": "207"} + ,{"name": "VRInitError_Driver_HmdDisplayNotFound","value": "208"} + ,{"name": "VRInitError_Driver_TrackedDeviceInterfaceUnknown","value": "209"} + ,{"name": "VRInitError_Driver_HmdDriverIdOutOfBounds","value": "211"} + ,{"name": "VRInitError_Driver_HmdDisplayMirrored","value": "212"} + ,{"name": "VRInitError_IPC_ServerInitFailed","value": "300"} + ,{"name": "VRInitError_IPC_ConnectFailed","value": "301"} + ,{"name": "VRInitError_IPC_SharedStateInitFailed","value": "302"} + ,{"name": "VRInitError_IPC_CompositorInitFailed","value": "303"} + ,{"name": "VRInitError_IPC_MutexInitFailed","value": "304"} + ,{"name": "VRInitError_IPC_Failed","value": "305"} + ,{"name": "VRInitError_IPC_CompositorConnectFailed","value": "306"} + ,{"name": "VRInitError_IPC_CompositorInvalidConnectResponse","value": "307"} + ,{"name": "VRInitError_IPC_ConnectFailedAfterMultipleAttempts","value": "308"} + ,{"name": "VRInitError_Compositor_Failed","value": "400"} + ,{"name": "VRInitError_Compositor_D3D11HardwareRequired","value": "401"} + ,{"name": "VRInitError_Compositor_FirmwareRequiresUpdate","value": "402"} + ,{"name": "VRInitError_Compositor_OverlayInitFailed","value": "403"} + ,{"name": "VRInitError_Compositor_ScreenshotsInitFailed","value": "404"} + ,{"name": "VRInitError_Compositor_UnableToCreateDevice","value": "405"} + ,{"name": "VRInitError_VendorSpecific_UnableToConnectToOculusRuntime","value": "1000"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_CantOpenDevice","value": "1101"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart","value": "1102"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_NoStoredConfig","value": "1103"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_ConfigTooBig","value": "1104"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_ConfigTooSmall","value": "1105"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_UnableToInitZLib","value": "1106"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_CantReadFirmwareVersion","value": "1107"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_UnableToSendUserDataStart","value": "1108"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataStart","value": "1109"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataNext","value": "1110"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_UserDataAddressRange","value": "1111"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_UserDataError","value": "1112"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck","value": "1113"} + ,{"name": "VRInitError_Steam_SteamInstallationNotFound","value": "2000"} +]} +, {"enumname": "vr::EVRScreenshotType","values": [ + {"name": "VRScreenshotType_None","value": "0"} + ,{"name": "VRScreenshotType_Mono","value": "1"} + ,{"name": "VRScreenshotType_Stereo","value": "2"} + ,{"name": "VRScreenshotType_Cubemap","value": "3"} + ,{"name": "VRScreenshotType_MonoPanorama","value": "4"} + ,{"name": "VRScreenshotType_StereoPanorama","value": "5"} +]} +, {"enumname": "vr::EVRScreenshotPropertyFilenames","values": [ + {"name": "VRScreenshotPropertyFilenames_Preview","value": "0"} + ,{"name": "VRScreenshotPropertyFilenames_VR","value": "1"} +]} +, {"enumname": "vr::EVRTrackedCameraError","values": [ + {"name": "VRTrackedCameraError_None","value": "0"} + ,{"name": "VRTrackedCameraError_OperationFailed","value": "100"} + ,{"name": "VRTrackedCameraError_InvalidHandle","value": "101"} + ,{"name": "VRTrackedCameraError_InvalidFrameHeaderVersion","value": "102"} + ,{"name": "VRTrackedCameraError_OutOfHandles","value": "103"} + ,{"name": "VRTrackedCameraError_IPCFailure","value": "104"} + ,{"name": "VRTrackedCameraError_NotSupportedForThisDevice","value": "105"} + ,{"name": "VRTrackedCameraError_SharedMemoryFailure","value": "106"} + ,{"name": "VRTrackedCameraError_FrameBufferingFailure","value": "107"} + ,{"name": "VRTrackedCameraError_StreamSetupFailure","value": "108"} + ,{"name": "VRTrackedCameraError_InvalidGLTextureId","value": "109"} + ,{"name": "VRTrackedCameraError_InvalidSharedTextureHandle","value": "110"} + ,{"name": "VRTrackedCameraError_FailedToGetGLTextureId","value": "111"} + ,{"name": "VRTrackedCameraError_SharedTextureFailure","value": "112"} + ,{"name": "VRTrackedCameraError_NoFrameAvailable","value": "113"} + ,{"name": "VRTrackedCameraError_InvalidArgument","value": "114"} + ,{"name": "VRTrackedCameraError_InvalidFrameBufferSize","value": "115"} +]} +, {"enumname": "vr::EVRTrackedCameraFrameType","values": [ + {"name": "VRTrackedCameraFrameType_Distorted","value": "0"} + ,{"name": "VRTrackedCameraFrameType_Undistorted","value": "1"} + ,{"name": "VRTrackedCameraFrameType_MaximumUndistorted","value": "2"} + ,{"name": "MAX_CAMERA_FRAME_TYPES","value": "3"} +]} +, {"enumname": "vr::EVRApplicationError","values": [ + {"name": "VRApplicationError_None","value": "0"} + ,{"name": "VRApplicationError_AppKeyAlreadyExists","value": "100"} + ,{"name": "VRApplicationError_NoManifest","value": "101"} + ,{"name": "VRApplicationError_NoApplication","value": "102"} + ,{"name": "VRApplicationError_InvalidIndex","value": "103"} + ,{"name": "VRApplicationError_UnknownApplication","value": "104"} + ,{"name": "VRApplicationError_IPCFailed","value": "105"} + ,{"name": "VRApplicationError_ApplicationAlreadyRunning","value": "106"} + ,{"name": "VRApplicationError_InvalidManifest","value": "107"} + ,{"name": "VRApplicationError_InvalidApplication","value": "108"} + ,{"name": "VRApplicationError_LaunchFailed","value": "109"} + ,{"name": "VRApplicationError_ApplicationAlreadyStarting","value": "110"} + ,{"name": "VRApplicationError_LaunchInProgress","value": "111"} + ,{"name": "VRApplicationError_OldApplicationQuitting","value": "112"} + ,{"name": "VRApplicationError_TransitionAborted","value": "113"} + ,{"name": "VRApplicationError_IsTemplate","value": "114"} + ,{"name": "VRApplicationError_BufferTooSmall","value": "200"} + ,{"name": "VRApplicationError_PropertyNotSet","value": "201"} + ,{"name": "VRApplicationError_UnknownProperty","value": "202"} + ,{"name": "VRApplicationError_InvalidParameter","value": "203"} +]} +, {"enumname": "vr::EVRApplicationProperty","values": [ + {"name": "VRApplicationProperty_Name_String","value": "0"} + ,{"name": "VRApplicationProperty_LaunchType_String","value": "11"} + ,{"name": "VRApplicationProperty_WorkingDirectory_String","value": "12"} + ,{"name": "VRApplicationProperty_BinaryPath_String","value": "13"} + ,{"name": "VRApplicationProperty_Arguments_String","value": "14"} + ,{"name": "VRApplicationProperty_URL_String","value": "15"} + ,{"name": "VRApplicationProperty_Description_String","value": "50"} + ,{"name": "VRApplicationProperty_NewsURL_String","value": "51"} + ,{"name": "VRApplicationProperty_ImagePath_String","value": "52"} + ,{"name": "VRApplicationProperty_Source_String","value": "53"} + ,{"name": "VRApplicationProperty_IsDashboardOverlay_Bool","value": "60"} + ,{"name": "VRApplicationProperty_IsTemplate_Bool","value": "61"} + ,{"name": "VRApplicationProperty_IsInstanced_Bool","value": "62"} + ,{"name": "VRApplicationProperty_IsInternal_Bool","value": "63"} + ,{"name": "VRApplicationProperty_LastLaunchTime_Uint64","value": "70"} +]} +, {"enumname": "vr::EVRApplicationTransitionState","values": [ + {"name": "VRApplicationTransition_None","value": "0"} + ,{"name": "VRApplicationTransition_OldAppQuitSent","value": "10"} + ,{"name": "VRApplicationTransition_WaitingForExternalLaunch","value": "11"} + ,{"name": "VRApplicationTransition_NewAppLaunched","value": "20"} +]} +, {"enumname": "vr::ChaperoneCalibrationState","values": [ + {"name": "ChaperoneCalibrationState_OK","value": "1"} + ,{"name": "ChaperoneCalibrationState_Warning","value": "100"} + ,{"name": "ChaperoneCalibrationState_Warning_BaseStationMayHaveMoved","value": "101"} + ,{"name": "ChaperoneCalibrationState_Warning_BaseStationRemoved","value": "102"} + ,{"name": "ChaperoneCalibrationState_Warning_SeatedBoundsInvalid","value": "103"} + ,{"name": "ChaperoneCalibrationState_Error","value": "200"} + ,{"name": "ChaperoneCalibrationState_Error_BaseStationUninitialized","value": "201"} + ,{"name": "ChaperoneCalibrationState_Error_BaseStationConflict","value": "202"} + ,{"name": "ChaperoneCalibrationState_Error_PlayAreaInvalid","value": "203"} + ,{"name": "ChaperoneCalibrationState_Error_CollisionBoundsInvalid","value": "204"} +]} +, {"enumname": "vr::EChaperoneConfigFile","values": [ + {"name": "EChaperoneConfigFile_Live","value": "1"} + ,{"name": "EChaperoneConfigFile_Temp","value": "2"} +]} +, {"enumname": "vr::EChaperoneImportFlags","values": [ + {"name": "EChaperoneImport_BoundsOnly","value": "1"} +]} +, {"enumname": "vr::EVRCompositorError","values": [ + {"name": "VRCompositorError_None","value": "0"} + ,{"name": "VRCompositorError_RequestFailed","value": "1"} + ,{"name": "VRCompositorError_IncompatibleVersion","value": "100"} + ,{"name": "VRCompositorError_DoNotHaveFocus","value": "101"} + ,{"name": "VRCompositorError_InvalidTexture","value": "102"} + ,{"name": "VRCompositorError_IsNotSceneApplication","value": "103"} + ,{"name": "VRCompositorError_TextureIsOnWrongDevice","value": "104"} + ,{"name": "VRCompositorError_TextureUsesUnsupportedFormat","value": "105"} + ,{"name": "VRCompositorError_SharedTexturesNotSupported","value": "106"} + ,{"name": "VRCompositorError_IndexOutOfRange","value": "107"} + ,{"name": "VRCompositorError_AlreadySubmitted","value": "108"} +]} +, {"enumname": "vr::VROverlayInputMethod","values": [ + {"name": "VROverlayInputMethod_None","value": "0"} + ,{"name": "VROverlayInputMethod_Mouse","value": "1"} +]} +, {"enumname": "vr::VROverlayTransformType","values": [ + {"name": "VROverlayTransform_Absolute","value": "0"} + ,{"name": "VROverlayTransform_TrackedDeviceRelative","value": "1"} + ,{"name": "VROverlayTransform_SystemOverlay","value": "2"} + ,{"name": "VROverlayTransform_TrackedComponent","value": "3"} +]} +, {"enumname": "vr::VROverlayFlags","values": [ + {"name": "VROverlayFlags_None","value": "0"} + ,{"name": "VROverlayFlags_Curved","value": "1"} + ,{"name": "VROverlayFlags_RGSS4X","value": "2"} + ,{"name": "VROverlayFlags_NoDashboardTab","value": "3"} + ,{"name": "VROverlayFlags_AcceptsGamepadEvents","value": "4"} + ,{"name": "VROverlayFlags_ShowGamepadFocus","value": "5"} + ,{"name": "VROverlayFlags_SendVRScrollEvents","value": "6"} + ,{"name": "VROverlayFlags_SendVRTouchpadEvents","value": "7"} + ,{"name": "VROverlayFlags_ShowTouchPadScrollWheel","value": "8"} + ,{"name": "VROverlayFlags_TransferOwnershipToInternalProcess","value": "9"} + ,{"name": "VROverlayFlags_SideBySide_Parallel","value": "10"} + ,{"name": "VROverlayFlags_SideBySide_Crossed","value": "11"} + ,{"name": "VROverlayFlags_Panorama","value": "12"} + ,{"name": "VROverlayFlags_StereoPanorama","value": "13"} + ,{"name": "VROverlayFlags_SortWithNonSceneOverlays","value": "14"} + ,{"name": "VROverlayFlags_VisibleInDashboard","value": "15"} +]} +, {"enumname": "vr::VRMessageOverlayResponse","values": [ + {"name": "VRMessageOverlayResponse_ButtonPress_0","value": "0"} + ,{"name": "VRMessageOverlayResponse_ButtonPress_1","value": "1"} + ,{"name": "VRMessageOverlayResponse_ButtonPress_2","value": "2"} + ,{"name": "VRMessageOverlayResponse_ButtonPress_3","value": "3"} + ,{"name": "VRMessageOverlayResponse_CouldntFindSystemOverlay","value": "4"} + ,{"name": "VRMessageOverlayResponse_CouldntFindOrCreateClientOverlay","value": "5"} + ,{"name": "VRMessageOverlayResponse_ApplicationQuit","value": "6"} +]} +, {"enumname": "vr::EGamepadTextInputMode","values": [ + {"name": "k_EGamepadTextInputModeNormal","value": "0"} + ,{"name": "k_EGamepadTextInputModePassword","value": "1"} + ,{"name": "k_EGamepadTextInputModeSubmit","value": "2"} +]} +, {"enumname": "vr::EGamepadTextInputLineMode","values": [ + {"name": "k_EGamepadTextInputLineModeSingleLine","value": "0"} + ,{"name": "k_EGamepadTextInputLineModeMultipleLines","value": "1"} +]} +, {"enumname": "vr::EOverlayDirection","values": [ + {"name": "OverlayDirection_Up","value": "0"} + ,{"name": "OverlayDirection_Down","value": "1"} + ,{"name": "OverlayDirection_Left","value": "2"} + ,{"name": "OverlayDirection_Right","value": "3"} + ,{"name": "OverlayDirection_Count","value": "4"} +]} +, {"enumname": "vr::EVROverlayIntersectionMaskPrimitiveType","values": [ + {"name": "OverlayIntersectionPrimitiveType_Rectangle","value": "0"} + ,{"name": "OverlayIntersectionPrimitiveType_Circle","value": "1"} +]} +, {"enumname": "vr::EVRRenderModelError","values": [ + {"name": "VRRenderModelError_None","value": "0"} + ,{"name": "VRRenderModelError_Loading","value": "100"} + ,{"name": "VRRenderModelError_NotSupported","value": "200"} + ,{"name": "VRRenderModelError_InvalidArg","value": "300"} + ,{"name": "VRRenderModelError_InvalidModel","value": "301"} + ,{"name": "VRRenderModelError_NoShapes","value": "302"} + ,{"name": "VRRenderModelError_MultipleShapes","value": "303"} + ,{"name": "VRRenderModelError_TooManyVertices","value": "304"} + ,{"name": "VRRenderModelError_MultipleTextures","value": "305"} + ,{"name": "VRRenderModelError_BufferTooSmall","value": "306"} + ,{"name": "VRRenderModelError_NotEnoughNormals","value": "307"} + ,{"name": "VRRenderModelError_NotEnoughTexCoords","value": "308"} + ,{"name": "VRRenderModelError_InvalidTexture","value": "400"} +]} +, {"enumname": "vr::EVRComponentProperty","values": [ + {"name": "VRComponentProperty_IsStatic","value": "1"} + ,{"name": "VRComponentProperty_IsVisible","value": "2"} + ,{"name": "VRComponentProperty_IsTouched","value": "4"} + ,{"name": "VRComponentProperty_IsPressed","value": "8"} + ,{"name": "VRComponentProperty_IsScrolled","value": "16"} +]} +, {"enumname": "vr::EVRNotificationType","values": [ + {"name": "EVRNotificationType_Transient","value": "0"} + ,{"name": "EVRNotificationType_Persistent","value": "1"} + ,{"name": "EVRNotificationType_Transient_SystemWithUserValue","value": "2"} +]} +, {"enumname": "vr::EVRNotificationStyle","values": [ + {"name": "EVRNotificationStyle_None","value": "0"} + ,{"name": "EVRNotificationStyle_Application","value": "100"} + ,{"name": "EVRNotificationStyle_Contact_Disabled","value": "200"} + ,{"name": "EVRNotificationStyle_Contact_Enabled","value": "201"} + ,{"name": "EVRNotificationStyle_Contact_Active","value": "202"} +]} +, {"enumname": "vr::EVRSettingsError","values": [ + {"name": "VRSettingsError_None","value": "0"} + ,{"name": "VRSettingsError_IPCFailed","value": "1"} + ,{"name": "VRSettingsError_WriteFailed","value": "2"} + ,{"name": "VRSettingsError_ReadFailed","value": "3"} + ,{"name": "VRSettingsError_JsonParseFailed","value": "4"} + ,{"name": "VRSettingsError_UnsetSettingHasNoDefault","value": "5"} +]} +, {"enumname": "vr::EVRScreenshotError","values": [ + {"name": "VRScreenshotError_None","value": "0"} + ,{"name": "VRScreenshotError_RequestFailed","value": "1"} + ,{"name": "VRScreenshotError_IncompatibleVersion","value": "100"} + ,{"name": "VRScreenshotError_NotFound","value": "101"} + ,{"name": "VRScreenshotError_BufferTooSmall","value": "102"} + ,{"name": "VRScreenshotError_ScreenshotAlreadyInProgress","value": "108"} +]} +], +"consts":[{ + "constname": "k_nDriverNone","consttype": "const uint32_t", "constval": "4294967295"} +,{ + "constname": "k_unMaxDriverDebugResponseSize","consttype": "const uint32_t", "constval": "32768"} +,{ + "constname": "k_unTrackedDeviceIndex_Hmd","consttype": "const uint32_t", "constval": "0"} +,{ + "constname": "k_unMaxTrackedDeviceCount","consttype": "const uint32_t", "constval": "16"} +,{ + "constname": "k_unTrackedDeviceIndexOther","consttype": "const uint32_t", "constval": "4294967294"} +,{ + "constname": "k_unTrackedDeviceIndexInvalid","consttype": "const uint32_t", "constval": "4294967295"} +,{ + "constname": "k_ulInvalidPropertyContainer","consttype": "const PropertyContainerHandle_t", "constval": "0"} +,{ + "constname": "k_unInvalidPropertyTag","consttype": "const PropertyTypeTag_t", "constval": "0"} +,{ + "constname": "k_unFloatPropertyTag","consttype": "const PropertyTypeTag_t", "constval": "1"} +,{ + "constname": "k_unInt32PropertyTag","consttype": "const PropertyTypeTag_t", "constval": "2"} +,{ + "constname": "k_unUint64PropertyTag","consttype": "const PropertyTypeTag_t", "constval": "3"} +,{ + "constname": "k_unBoolPropertyTag","consttype": "const PropertyTypeTag_t", "constval": "4"} +,{ + "constname": "k_unStringPropertyTag","consttype": "const PropertyTypeTag_t", "constval": "5"} +,{ + "constname": "k_unHmdMatrix34PropertyTag","consttype": "const PropertyTypeTag_t", "constval": "20"} +,{ + "constname": "k_unHmdMatrix44PropertyTag","consttype": "const PropertyTypeTag_t", "constval": "21"} +,{ + "constname": "k_unHmdVector3PropertyTag","consttype": "const PropertyTypeTag_t", "constval": "22"} +,{ + "constname": "k_unHmdVector4PropertyTag","consttype": "const PropertyTypeTag_t", "constval": "23"} +,{ + "constname": "k_unHiddenAreaPropertyTag","consttype": "const PropertyTypeTag_t", "constval": "30"} +,{ + "constname": "k_unOpenVRInternalReserved_Start","consttype": "const PropertyTypeTag_t", "constval": "1000"} +,{ + "constname": "k_unOpenVRInternalReserved_End","consttype": "const PropertyTypeTag_t", "constval": "10000"} +,{ + "constname": "k_unMaxPropertyStringSize","consttype": "const uint32_t", "constval": "32768"} +,{ + "constname": "k_unControllerStateAxisCount","consttype": "const uint32_t", "constval": "5"} +,{ + "constname": "k_ulOverlayHandleInvalid","consttype": "const VROverlayHandle_t", "constval": "0"} +,{ + "constname": "k_unScreenshotHandleInvalid","consttype": "const uint32_t", "constval": "0"} +,{ + "constname": "IVRSystem_Version","consttype": "const char *const", "constval": "IVRSystem_016"} +,{ + "constname": "IVRExtendedDisplay_Version","consttype": "const char *const", "constval": "IVRExtendedDisplay_001"} +,{ + "constname": "IVRTrackedCamera_Version","consttype": "const char *const", "constval": "IVRTrackedCamera_003"} +,{ + "constname": "k_unMaxApplicationKeyLength","consttype": "const uint32_t", "constval": "128"} +,{ + "constname": "k_pch_MimeType_HomeApp","consttype": "const char *const", "constval": "vr/home"} +,{ + "constname": "k_pch_MimeType_GameTheater","consttype": "const char *const", "constval": "vr/game_theater"} +,{ + "constname": "IVRApplications_Version","consttype": "const char *const", "constval": "IVRApplications_006"} +,{ + "constname": "IVRChaperone_Version","consttype": "const char *const", "constval": "IVRChaperone_003"} +,{ + "constname": "IVRChaperoneSetup_Version","consttype": "const char *const", "constval": "IVRChaperoneSetup_005"} +,{ + "constname": "IVRCompositor_Version","consttype": "const char *const", "constval": "IVRCompositor_020"} +,{ + "constname": "k_unVROverlayMaxKeyLength","consttype": "const uint32_t", "constval": "128"} +,{ + "constname": "k_unVROverlayMaxNameLength","consttype": "const uint32_t", "constval": "128"} +,{ + "constname": "k_unMaxOverlayCount","consttype": "const uint32_t", "constval": "64"} +,{ + "constname": "k_unMaxOverlayIntersectionMaskPrimitivesCount","consttype": "const uint32_t", "constval": "32"} +,{ + "constname": "IVROverlay_Version","consttype": "const char *const", "constval": "IVROverlay_016"} +,{ + "constname": "k_pch_Controller_Component_GDC2015","consttype": "const char *const", "constval": "gdc2015"} +,{ + "constname": "k_pch_Controller_Component_Base","consttype": "const char *const", "constval": "base"} +,{ + "constname": "k_pch_Controller_Component_Tip","consttype": "const char *const", "constval": "tip"} +,{ + "constname": "k_pch_Controller_Component_HandGrip","consttype": "const char *const", "constval": "handgrip"} +,{ + "constname": "k_pch_Controller_Component_Status","consttype": "const char *const", "constval": "status"} +,{ + "constname": "IVRRenderModels_Version","consttype": "const char *const", "constval": "IVRRenderModels_005"} +,{ + "constname": "k_unNotificationTextMaxSize","consttype": "const uint32_t", "constval": "256"} +,{ + "constname": "IVRNotifications_Version","consttype": "const char *const", "constval": "IVRNotifications_002"} +,{ + "constname": "k_unMaxSettingsKeyLength","consttype": "const uint32_t", "constval": "128"} +,{ + "constname": "IVRSettings_Version","consttype": "const char *const", "constval": "IVRSettings_002"} +,{ + "constname": "k_pch_SteamVR_Section","consttype": "const char *const", "constval": "steamvr"} +,{ + "constname": "k_pch_SteamVR_RequireHmd_String","consttype": "const char *const", "constval": "requireHmd"} +,{ + "constname": "k_pch_SteamVR_ForcedDriverKey_String","consttype": "const char *const", "constval": "forcedDriver"} +,{ + "constname": "k_pch_SteamVR_ForcedHmdKey_String","consttype": "const char *const", "constval": "forcedHmd"} +,{ + "constname": "k_pch_SteamVR_DisplayDebug_Bool","consttype": "const char *const", "constval": "displayDebug"} +,{ + "constname": "k_pch_SteamVR_DebugProcessPipe_String","consttype": "const char *const", "constval": "debugProcessPipe"} +,{ + "constname": "k_pch_SteamVR_DisplayDebugX_Int32","consttype": "const char *const", "constval": "displayDebugX"} +,{ + "constname": "k_pch_SteamVR_DisplayDebugY_Int32","consttype": "const char *const", "constval": "displayDebugY"} +,{ + "constname": "k_pch_SteamVR_SendSystemButtonToAllApps_Bool","consttype": "const char *const", "constval": "sendSystemButtonToAllApps"} +,{ + "constname": "k_pch_SteamVR_LogLevel_Int32","consttype": "const char *const", "constval": "loglevel"} +,{ + "constname": "k_pch_SteamVR_IPD_Float","consttype": "const char *const", "constval": "ipd"} +,{ + "constname": "k_pch_SteamVR_Background_String","consttype": "const char *const", "constval": "background"} +,{ + "constname": "k_pch_SteamVR_BackgroundUseDomeProjection_Bool","consttype": "const char *const", "constval": "backgroundUseDomeProjection"} +,{ + "constname": "k_pch_SteamVR_BackgroundCameraHeight_Float","consttype": "const char *const", "constval": "backgroundCameraHeight"} +,{ + "constname": "k_pch_SteamVR_BackgroundDomeRadius_Float","consttype": "const char *const", "constval": "backgroundDomeRadius"} +,{ + "constname": "k_pch_SteamVR_GridColor_String","consttype": "const char *const", "constval": "gridColor"} +,{ + "constname": "k_pch_SteamVR_PlayAreaColor_String","consttype": "const char *const", "constval": "playAreaColor"} +,{ + "constname": "k_pch_SteamVR_ShowStage_Bool","consttype": "const char *const", "constval": "showStage"} +,{ + "constname": "k_pch_SteamVR_ActivateMultipleDrivers_Bool","consttype": "const char *const", "constval": "activateMultipleDrivers"} +,{ + "constname": "k_pch_SteamVR_DirectMode_Bool","consttype": "const char *const", "constval": "directMode"} +,{ + "constname": "k_pch_SteamVR_DirectModeEdidVid_Int32","consttype": "const char *const", "constval": "directModeEdidVid"} +,{ + "constname": "k_pch_SteamVR_DirectModeEdidPid_Int32","consttype": "const char *const", "constval": "directModeEdidPid"} +,{ + "constname": "k_pch_SteamVR_UsingSpeakers_Bool","consttype": "const char *const", "constval": "usingSpeakers"} +,{ + "constname": "k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float","consttype": "const char *const", "constval": "speakersForwardYawOffsetDegrees"} +,{ + "constname": "k_pch_SteamVR_BaseStationPowerManagement_Bool","consttype": "const char *const", "constval": "basestationPowerManagement"} +,{ + "constname": "k_pch_SteamVR_NeverKillProcesses_Bool","consttype": "const char *const", "constval": "neverKillProcesses"} +,{ + "constname": "k_pch_SteamVR_SupersampleScale_Float","consttype": "const char *const", "constval": "supersampleScale"} +,{ + "constname": "k_pch_SteamVR_AllowAsyncReprojection_Bool","consttype": "const char *const", "constval": "allowAsyncReprojection"} +,{ + "constname": "k_pch_SteamVR_AllowReprojection_Bool","consttype": "const char *const", "constval": "allowInterleavedReprojection"} +,{ + "constname": "k_pch_SteamVR_ForceReprojection_Bool","consttype": "const char *const", "constval": "forceReprojection"} +,{ + "constname": "k_pch_SteamVR_ForceFadeOnBadTracking_Bool","consttype": "const char *const", "constval": "forceFadeOnBadTracking"} +,{ + "constname": "k_pch_SteamVR_DefaultMirrorView_Int32","consttype": "const char *const", "constval": "defaultMirrorView"} +,{ + "constname": "k_pch_SteamVR_ShowMirrorView_Bool","consttype": "const char *const", "constval": "showMirrorView"} +,{ + "constname": "k_pch_SteamVR_MirrorViewGeometry_String","consttype": "const char *const", "constval": "mirrorViewGeometry"} +,{ + "constname": "k_pch_SteamVR_StartMonitorFromAppLaunch","consttype": "const char *const", "constval": "startMonitorFromAppLaunch"} +,{ + "constname": "k_pch_SteamVR_StartCompositorFromAppLaunch_Bool","consttype": "const char *const", "constval": "startCompositorFromAppLaunch"} +,{ + "constname": "k_pch_SteamVR_StartDashboardFromAppLaunch_Bool","consttype": "const char *const", "constval": "startDashboardFromAppLaunch"} +,{ + "constname": "k_pch_SteamVR_StartOverlayAppsFromDashboard_Bool","consttype": "const char *const", "constval": "startOverlayAppsFromDashboard"} +,{ + "constname": "k_pch_SteamVR_EnableHomeApp","consttype": "const char *const", "constval": "enableHomeApp"} +,{ + "constname": "k_pch_SteamVR_CycleBackgroundImageTimeSec_Int32","consttype": "const char *const", "constval": "CycleBackgroundImageTimeSec"} +,{ + "constname": "k_pch_SteamVR_RetailDemo_Bool","consttype": "const char *const", "constval": "retailDemo"} +,{ + "constname": "k_pch_SteamVR_IpdOffset_Float","consttype": "const char *const", "constval": "ipdOffset"} +,{ + "constname": "k_pch_SteamVR_AllowSupersampleFiltering_Bool","consttype": "const char *const", "constval": "allowSupersampleFiltering"} +,{ + "constname": "k_pch_Lighthouse_Section","consttype": "const char *const", "constval": "driver_lighthouse"} +,{ + "constname": "k_pch_Lighthouse_DisableIMU_Bool","consttype": "const char *const", "constval": "disableimu"} +,{ + "constname": "k_pch_Lighthouse_UseDisambiguation_String","consttype": "const char *const", "constval": "usedisambiguation"} +,{ + "constname": "k_pch_Lighthouse_DisambiguationDebug_Int32","consttype": "const char *const", "constval": "disambiguationdebug"} +,{ + "constname": "k_pch_Lighthouse_PrimaryBasestation_Int32","consttype": "const char *const", "constval": "primarybasestation"} +,{ + "constname": "k_pch_Lighthouse_DBHistory_Bool","consttype": "const char *const", "constval": "dbhistory"} +,{ + "constname": "k_pch_Null_Section","consttype": "const char *const", "constval": "driver_null"} +,{ + "constname": "k_pch_Null_SerialNumber_String","consttype": "const char *const", "constval": "serialNumber"} +,{ + "constname": "k_pch_Null_ModelNumber_String","consttype": "const char *const", "constval": "modelNumber"} +,{ + "constname": "k_pch_Null_WindowX_Int32","consttype": "const char *const", "constval": "windowX"} +,{ + "constname": "k_pch_Null_WindowY_Int32","consttype": "const char *const", "constval": "windowY"} +,{ + "constname": "k_pch_Null_WindowWidth_Int32","consttype": "const char *const", "constval": "windowWidth"} +,{ + "constname": "k_pch_Null_WindowHeight_Int32","consttype": "const char *const", "constval": "windowHeight"} +,{ + "constname": "k_pch_Null_RenderWidth_Int32","consttype": "const char *const", "constval": "renderWidth"} +,{ + "constname": "k_pch_Null_RenderHeight_Int32","consttype": "const char *const", "constval": "renderHeight"} +,{ + "constname": "k_pch_Null_SecondsFromVsyncToPhotons_Float","consttype": "const char *const", "constval": "secondsFromVsyncToPhotons"} +,{ + "constname": "k_pch_Null_DisplayFrequency_Float","consttype": "const char *const", "constval": "displayFrequency"} +,{ + "constname": "k_pch_UserInterface_Section","consttype": "const char *const", "constval": "userinterface"} +,{ + "constname": "k_pch_UserInterface_StatusAlwaysOnTop_Bool","consttype": "const char *const", "constval": "StatusAlwaysOnTop"} +,{ + "constname": "k_pch_UserInterface_MinimizeToTray_Bool","consttype": "const char *const", "constval": "MinimizeToTray"} +,{ + "constname": "k_pch_UserInterface_Screenshots_Bool","consttype": "const char *const", "constval": "screenshots"} +,{ + "constname": "k_pch_UserInterface_ScreenshotType_Int","consttype": "const char *const", "constval": "screenshotType"} +,{ + "constname": "k_pch_Notifications_Section","consttype": "const char *const", "constval": "notifications"} +,{ + "constname": "k_pch_Notifications_DoNotDisturb_Bool","consttype": "const char *const", "constval": "DoNotDisturb"} +,{ + "constname": "k_pch_Keyboard_Section","consttype": "const char *const", "constval": "keyboard"} +,{ + "constname": "k_pch_Keyboard_TutorialCompletions","consttype": "const char *const", "constval": "TutorialCompletions"} +,{ + "constname": "k_pch_Keyboard_ScaleX","consttype": "const char *const", "constval": "ScaleX"} +,{ + "constname": "k_pch_Keyboard_ScaleY","consttype": "const char *const", "constval": "ScaleY"} +,{ + "constname": "k_pch_Keyboard_OffsetLeftX","consttype": "const char *const", "constval": "OffsetLeftX"} +,{ + "constname": "k_pch_Keyboard_OffsetRightX","consttype": "const char *const", "constval": "OffsetRightX"} +,{ + "constname": "k_pch_Keyboard_OffsetY","consttype": "const char *const", "constval": "OffsetY"} +,{ + "constname": "k_pch_Keyboard_Smoothing","consttype": "const char *const", "constval": "Smoothing"} +,{ + "constname": "k_pch_Perf_Section","consttype": "const char *const", "constval": "perfcheck"} +,{ + "constname": "k_pch_Perf_HeuristicActive_Bool","consttype": "const char *const", "constval": "heuristicActive"} +,{ + "constname": "k_pch_Perf_NotifyInHMD_Bool","consttype": "const char *const", "constval": "warnInHMD"} +,{ + "constname": "k_pch_Perf_NotifyOnlyOnce_Bool","consttype": "const char *const", "constval": "warnOnlyOnce"} +,{ + "constname": "k_pch_Perf_AllowTimingStore_Bool","consttype": "const char *const", "constval": "allowTimingStore"} +,{ + "constname": "k_pch_Perf_SaveTimingsOnExit_Bool","consttype": "const char *const", "constval": "saveTimingsOnExit"} +,{ + "constname": "k_pch_Perf_TestData_Float","consttype": "const char *const", "constval": "perfTestData"} +,{ + "constname": "k_pch_Perf_LinuxGPUProfiling_Bool","consttype": "const char *const", "constval": "linuxGPUProfiling"} +,{ + "constname": "k_pch_CollisionBounds_Section","consttype": "const char *const", "constval": "collisionBounds"} +,{ + "constname": "k_pch_CollisionBounds_Style_Int32","consttype": "const char *const", "constval": "CollisionBoundsStyle"} +,{ + "constname": "k_pch_CollisionBounds_GroundPerimeterOn_Bool","consttype": "const char *const", "constval": "CollisionBoundsGroundPerimeterOn"} +,{ + "constname": "k_pch_CollisionBounds_CenterMarkerOn_Bool","consttype": "const char *const", "constval": "CollisionBoundsCenterMarkerOn"} +,{ + "constname": "k_pch_CollisionBounds_PlaySpaceOn_Bool","consttype": "const char *const", "constval": "CollisionBoundsPlaySpaceOn"} +,{ + "constname": "k_pch_CollisionBounds_FadeDistance_Float","consttype": "const char *const", "constval": "CollisionBoundsFadeDistance"} +,{ + "constname": "k_pch_CollisionBounds_ColorGammaR_Int32","consttype": "const char *const", "constval": "CollisionBoundsColorGammaR"} +,{ + "constname": "k_pch_CollisionBounds_ColorGammaG_Int32","consttype": "const char *const", "constval": "CollisionBoundsColorGammaG"} +,{ + "constname": "k_pch_CollisionBounds_ColorGammaB_Int32","consttype": "const char *const", "constval": "CollisionBoundsColorGammaB"} +,{ + "constname": "k_pch_CollisionBounds_ColorGammaA_Int32","consttype": "const char *const", "constval": "CollisionBoundsColorGammaA"} +,{ + "constname": "k_pch_Camera_Section","consttype": "const char *const", "constval": "camera"} +,{ + "constname": "k_pch_Camera_EnableCamera_Bool","consttype": "const char *const", "constval": "enableCamera"} +,{ + "constname": "k_pch_Camera_EnableCameraInDashboard_Bool","consttype": "const char *const", "constval": "enableCameraInDashboard"} +,{ + "constname": "k_pch_Camera_EnableCameraForCollisionBounds_Bool","consttype": "const char *const", "constval": "enableCameraForCollisionBounds"} +,{ + "constname": "k_pch_Camera_EnableCameraForRoomView_Bool","consttype": "const char *const", "constval": "enableCameraForRoomView"} +,{ + "constname": "k_pch_Camera_BoundsColorGammaR_Int32","consttype": "const char *const", "constval": "cameraBoundsColorGammaR"} +,{ + "constname": "k_pch_Camera_BoundsColorGammaG_Int32","consttype": "const char *const", "constval": "cameraBoundsColorGammaG"} +,{ + "constname": "k_pch_Camera_BoundsColorGammaB_Int32","consttype": "const char *const", "constval": "cameraBoundsColorGammaB"} +,{ + "constname": "k_pch_Camera_BoundsColorGammaA_Int32","consttype": "const char *const", "constval": "cameraBoundsColorGammaA"} +,{ + "constname": "k_pch_Camera_BoundsStrength_Int32","consttype": "const char *const", "constval": "cameraBoundsStrength"} +,{ + "constname": "k_pch_audio_Section","consttype": "const char *const", "constval": "audio"} +,{ + "constname": "k_pch_audio_OnPlaybackDevice_String","consttype": "const char *const", "constval": "onPlaybackDevice"} +,{ + "constname": "k_pch_audio_OnRecordDevice_String","consttype": "const char *const", "constval": "onRecordDevice"} +,{ + "constname": "k_pch_audio_OnPlaybackMirrorDevice_String","consttype": "const char *const", "constval": "onPlaybackMirrorDevice"} +,{ + "constname": "k_pch_audio_OffPlaybackDevice_String","consttype": "const char *const", "constval": "offPlaybackDevice"} +,{ + "constname": "k_pch_audio_OffRecordDevice_String","consttype": "const char *const", "constval": "offRecordDevice"} +,{ + "constname": "k_pch_audio_VIVEHDMIGain","consttype": "const char *const", "constval": "viveHDMIGain"} +,{ + "constname": "k_pch_Power_Section","consttype": "const char *const", "constval": "power"} +,{ + "constname": "k_pch_Power_PowerOffOnExit_Bool","consttype": "const char *const", "constval": "powerOffOnExit"} +,{ + "constname": "k_pch_Power_TurnOffScreensTimeout_Float","consttype": "const char *const", "constval": "turnOffScreensTimeout"} +,{ + "constname": "k_pch_Power_TurnOffControllersTimeout_Float","consttype": "const char *const", "constval": "turnOffControllersTimeout"} +,{ + "constname": "k_pch_Power_ReturnToWatchdogTimeout_Float","consttype": "const char *const", "constval": "returnToWatchdogTimeout"} +,{ + "constname": "k_pch_Power_AutoLaunchSteamVROnButtonPress","consttype": "const char *const", "constval": "autoLaunchSteamVROnButtonPress"} +,{ + "constname": "k_pch_Dashboard_Section","consttype": "const char *const", "constval": "dashboard"} +,{ + "constname": "k_pch_Dashboard_EnableDashboard_Bool","consttype": "const char *const", "constval": "enableDashboard"} +,{ + "constname": "k_pch_Dashboard_ArcadeMode_Bool","consttype": "const char *const", "constval": "arcadeMode"} +,{ + "constname": "k_pch_modelskin_Section","consttype": "const char *const", "constval": "modelskins"} +,{ + "constname": "k_pch_Driver_Enable_Bool","consttype": "const char *const", "constval": "enable"} +,{ + "constname": "IVRScreenshots_Version","consttype": "const char *const", "constval": "IVRScreenshots_001"} +,{ + "constname": "IVRResources_Version","consttype": "const char *const", "constval": "IVRResources_001"} +,{ + "constname": "IVRDriverManager_Version","consttype": "const char *const", "constval": "IVRDriverManager_001"} +], +"structs":[{"struct": "vr::HmdMatrix34_t","fields": [ +{ "fieldname": "m", "fieldtype": "float [3][4]"}]} +,{"struct": "vr::HmdMatrix44_t","fields": [ +{ "fieldname": "m", "fieldtype": "float [4][4]"}]} +,{"struct": "vr::HmdVector3_t","fields": [ +{ "fieldname": "v", "fieldtype": "float [3]"}]} +,{"struct": "vr::HmdVector4_t","fields": [ +{ "fieldname": "v", "fieldtype": "float [4]"}]} +,{"struct": "vr::HmdVector3d_t","fields": [ +{ "fieldname": "v", "fieldtype": "double [3]"}]} +,{"struct": "vr::HmdVector2_t","fields": [ +{ "fieldname": "v", "fieldtype": "float [2]"}]} +,{"struct": "vr::HmdQuaternion_t","fields": [ +{ "fieldname": "w", "fieldtype": "double"}, +{ "fieldname": "x", "fieldtype": "double"}, +{ "fieldname": "y", "fieldtype": "double"}, +{ "fieldname": "z", "fieldtype": "double"}]} +,{"struct": "vr::HmdColor_t","fields": [ +{ "fieldname": "r", "fieldtype": "float"}, +{ "fieldname": "g", "fieldtype": "float"}, +{ "fieldname": "b", "fieldtype": "float"}, +{ "fieldname": "a", "fieldtype": "float"}]} +,{"struct": "vr::HmdQuad_t","fields": [ +{ "fieldname": "vCorners", "fieldtype": "struct vr::HmdVector3_t [4]"}]} +,{"struct": "vr::HmdRect2_t","fields": [ +{ "fieldname": "vTopLeft", "fieldtype": "struct vr::HmdVector2_t"}, +{ "fieldname": "vBottomRight", "fieldtype": "struct vr::HmdVector2_t"}]} +,{"struct": "vr::DistortionCoordinates_t","fields": [ +{ "fieldname": "rfRed", "fieldtype": "float [2]"}, +{ "fieldname": "rfGreen", "fieldtype": "float [2]"}, +{ "fieldname": "rfBlue", "fieldtype": "float [2]"}]} +,{"struct": "vr::Texture_t","fields": [ +{ "fieldname": "handle", "fieldtype": "void *"}, +{ "fieldname": "eType", "fieldtype": "enum vr::ETextureType"}, +{ "fieldname": "eColorSpace", "fieldtype": "enum vr::EColorSpace"}]} +,{"struct": "vr::TrackedDevicePose_t","fields": [ +{ "fieldname": "mDeviceToAbsoluteTracking", "fieldtype": "struct vr::HmdMatrix34_t"}, +{ "fieldname": "vVelocity", "fieldtype": "struct vr::HmdVector3_t"}, +{ "fieldname": "vAngularVelocity", "fieldtype": "struct vr::HmdVector3_t"}, +{ "fieldname": "eTrackingResult", "fieldtype": "enum vr::ETrackingResult"}, +{ "fieldname": "bPoseIsValid", "fieldtype": "_Bool"}, +{ "fieldname": "bDeviceIsConnected", "fieldtype": "_Bool"}]} +,{"struct": "vr::VRTextureBounds_t","fields": [ +{ "fieldname": "uMin", "fieldtype": "float"}, +{ "fieldname": "vMin", "fieldtype": "float"}, +{ "fieldname": "uMax", "fieldtype": "float"}, +{ "fieldname": "vMax", "fieldtype": "float"}]} +,{"struct": "vr::VRVulkanTextureData_t","fields": [ +{ "fieldname": "m_nImage", "fieldtype": "uint64_t"}, +{ "fieldname": "m_pDevice", "fieldtype": "struct VkDevice_T *"}, +{ "fieldname": "m_pPhysicalDevice", "fieldtype": "struct VkPhysicalDevice_T *"}, +{ "fieldname": "m_pInstance", "fieldtype": "struct VkInstance_T *"}, +{ "fieldname": "m_pQueue", "fieldtype": "struct VkQueue_T *"}, +{ "fieldname": "m_nQueueFamilyIndex", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nWidth", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nHeight", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nFormat", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nSampleCount", "fieldtype": "uint32_t"}]} +,{"struct": "vr::D3D12TextureData_t","fields": [ +{ "fieldname": "m_pResource", "fieldtype": "struct ID3D12Resource *"}, +{ "fieldname": "m_pCommandQueue", "fieldtype": "struct ID3D12CommandQueue *"}, +{ "fieldname": "m_nNodeMask", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_Controller_t","fields": [ +{ "fieldname": "button", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_Mouse_t","fields": [ +{ "fieldname": "x", "fieldtype": "float"}, +{ "fieldname": "y", "fieldtype": "float"}, +{ "fieldname": "button", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_Scroll_t","fields": [ +{ "fieldname": "xdelta", "fieldtype": "float"}, +{ "fieldname": "ydelta", "fieldtype": "float"}, +{ "fieldname": "repeatCount", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_TouchPadMove_t","fields": [ +{ "fieldname": "bFingerDown", "fieldtype": "_Bool"}, +{ "fieldname": "flSecondsFingerDown", "fieldtype": "float"}, +{ "fieldname": "fValueXFirst", "fieldtype": "float"}, +{ "fieldname": "fValueYFirst", "fieldtype": "float"}, +{ "fieldname": "fValueXRaw", "fieldtype": "float"}, +{ "fieldname": "fValueYRaw", "fieldtype": "float"}]} +,{"struct": "vr::VREvent_Notification_t","fields": [ +{ "fieldname": "ulUserValue", "fieldtype": "uint64_t"}, +{ "fieldname": "notificationId", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_Process_t","fields": [ +{ "fieldname": "pid", "fieldtype": "uint32_t"}, +{ "fieldname": "oldPid", "fieldtype": "uint32_t"}, +{ "fieldname": "bForced", "fieldtype": "_Bool"}]} +,{"struct": "vr::VREvent_Overlay_t","fields": [ +{ "fieldname": "overlayHandle", "fieldtype": "uint64_t"}]} +,{"struct": "vr::VREvent_Status_t","fields": [ +{ "fieldname": "statusState", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_Keyboard_t","fields": [ +{ "fieldname": "cNewInput", "fieldtype": "char [8]"}, +{ "fieldname": "uUserValue", "fieldtype": "uint64_t"}]} +,{"struct": "vr::VREvent_Ipd_t","fields": [ +{ "fieldname": "ipdMeters", "fieldtype": "float"}]} +,{"struct": "vr::VREvent_Chaperone_t","fields": [ +{ "fieldname": "m_nPreviousUniverse", "fieldtype": "uint64_t"}, +{ "fieldname": "m_nCurrentUniverse", "fieldtype": "uint64_t"}]} +,{"struct": "vr::VREvent_Reserved_t","fields": [ +{ "fieldname": "reserved0", "fieldtype": "uint64_t"}, +{ "fieldname": "reserved1", "fieldtype": "uint64_t"}]} +,{"struct": "vr::VREvent_PerformanceTest_t","fields": [ +{ "fieldname": "m_nFidelityLevel", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_SeatedZeroPoseReset_t","fields": [ +{ "fieldname": "bResetBySystemMenu", "fieldtype": "_Bool"}]} +,{"struct": "vr::VREvent_Screenshot_t","fields": [ +{ "fieldname": "handle", "fieldtype": "uint32_t"}, +{ "fieldname": "type", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_ScreenshotProgress_t","fields": [ +{ "fieldname": "progress", "fieldtype": "float"}]} +,{"struct": "vr::VREvent_ApplicationLaunch_t","fields": [ +{ "fieldname": "pid", "fieldtype": "uint32_t"}, +{ "fieldname": "unArgsHandle", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_EditingCameraSurface_t","fields": [ +{ "fieldname": "overlayHandle", "fieldtype": "uint64_t"}, +{ "fieldname": "nVisualMode", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_MessageOverlay_t","fields": [ +{ "fieldname": "unVRMessageOverlayResponse", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_Property_t","fields": [ +{ "fieldname": "container", "fieldtype": "PropertyContainerHandle_t"}, +{ "fieldname": "prop", "fieldtype": "enum vr::ETrackedDeviceProperty"}]} +,{"struct": "vr::(anonymous)","fields": [ +{ "fieldname": "reserved", "fieldtype": "struct vr::VREvent_Reserved_t"}, +{ "fieldname": "controller", "fieldtype": "struct vr::VREvent_Controller_t"}, +{ "fieldname": "mouse", "fieldtype": "struct vr::VREvent_Mouse_t"}, +{ "fieldname": "scroll", "fieldtype": "struct vr::VREvent_Scroll_t"}, +{ "fieldname": "process", "fieldtype": "struct vr::VREvent_Process_t"}, +{ "fieldname": "notification", "fieldtype": "struct vr::VREvent_Notification_t"}, +{ "fieldname": "overlay", "fieldtype": "struct vr::VREvent_Overlay_t"}, +{ "fieldname": "status", "fieldtype": "struct vr::VREvent_Status_t"}, +{ "fieldname": "keyboard", "fieldtype": "struct vr::VREvent_Keyboard_t"}, +{ "fieldname": "ipd", "fieldtype": "struct vr::VREvent_Ipd_t"}, +{ "fieldname": "chaperone", "fieldtype": "struct vr::VREvent_Chaperone_t"}, +{ "fieldname": "performanceTest", "fieldtype": "struct vr::VREvent_PerformanceTest_t"}, +{ "fieldname": "touchPadMove", "fieldtype": "struct vr::VREvent_TouchPadMove_t"}, +{ "fieldname": "seatedZeroPoseReset", "fieldtype": "struct vr::VREvent_SeatedZeroPoseReset_t"}, +{ "fieldname": "screenshot", "fieldtype": "struct vr::VREvent_Screenshot_t"}, +{ "fieldname": "screenshotProgress", "fieldtype": "struct vr::VREvent_ScreenshotProgress_t"}, +{ "fieldname": "applicationLaunch", "fieldtype": "struct vr::VREvent_ApplicationLaunch_t"}, +{ "fieldname": "cameraSurface", "fieldtype": "struct vr::VREvent_EditingCameraSurface_t"}, +{ "fieldname": "messageOverlay", "fieldtype": "struct vr::VREvent_MessageOverlay_t"}, +{ "fieldname": "property", "fieldtype": "struct vr::VREvent_Property_t"}]} +,{"struct": "vr::VREvent_t","fields": [ +{ "fieldname": "eventType", "fieldtype": "uint32_t"}, +{ "fieldname": "trackedDeviceIndex", "fieldtype": "TrackedDeviceIndex_t"}, +{ "fieldname": "eventAgeSeconds", "fieldtype": "float"}, +{ "fieldname": "data", "fieldtype": "VREvent_Data_t"}]} +,{"struct": "vr::HiddenAreaMesh_t","fields": [ +{ "fieldname": "pVertexData", "fieldtype": "const struct vr::HmdVector2_t *"}, +{ "fieldname": "unTriangleCount", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VRControllerAxis_t","fields": [ +{ "fieldname": "x", "fieldtype": "float"}, +{ "fieldname": "y", "fieldtype": "float"}]} +,{"struct": "vr::VRControllerState001_t","fields": [ +{ "fieldname": "unPacketNum", "fieldtype": "uint32_t"}, +{ "fieldname": "ulButtonPressed", "fieldtype": "uint64_t"}, +{ "fieldname": "ulButtonTouched", "fieldtype": "uint64_t"}, +{ "fieldname": "rAxis", "fieldtype": "struct vr::VRControllerAxis_t [5]"}]} +,{"struct": "vr::Compositor_OverlaySettings","fields": [ +{ "fieldname": "size", "fieldtype": "uint32_t"}, +{ "fieldname": "curved", "fieldtype": "_Bool"}, +{ "fieldname": "antialias", "fieldtype": "_Bool"}, +{ "fieldname": "scale", "fieldtype": "float"}, +{ "fieldname": "distance", "fieldtype": "float"}, +{ "fieldname": "alpha", "fieldtype": "float"}, +{ "fieldname": "uOffset", "fieldtype": "float"}, +{ "fieldname": "vOffset", "fieldtype": "float"}, +{ "fieldname": "uScale", "fieldtype": "float"}, +{ "fieldname": "vScale", "fieldtype": "float"}, +{ "fieldname": "gridDivs", "fieldtype": "float"}, +{ "fieldname": "gridWidth", "fieldtype": "float"}, +{ "fieldname": "gridScale", "fieldtype": "float"}, +{ "fieldname": "transform", "fieldtype": "struct vr::HmdMatrix44_t"}]} +,{"struct": "vr::CameraVideoStreamFrameHeader_t","fields": [ +{ "fieldname": "eFrameType", "fieldtype": "enum vr::EVRTrackedCameraFrameType"}, +{ "fieldname": "nWidth", "fieldtype": "uint32_t"}, +{ "fieldname": "nHeight", "fieldtype": "uint32_t"}, +{ "fieldname": "nBytesPerPixel", "fieldtype": "uint32_t"}, +{ "fieldname": "nFrameSequence", "fieldtype": "uint32_t"}, +{ "fieldname": "standingTrackedDevicePose", "fieldtype": "struct vr::TrackedDevicePose_t"}]} +,{"struct": "vr::AppOverrideKeys_t","fields": [ +{ "fieldname": "pchKey", "fieldtype": "const char *"}, +{ "fieldname": "pchValue", "fieldtype": "const char *"}]} +,{"struct": "vr::Compositor_FrameTiming","fields": [ +{ "fieldname": "m_nSize", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nFrameIndex", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumFramePresents", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumMisPresented", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumDroppedFrames", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nReprojectionFlags", "fieldtype": "uint32_t"}, +{ "fieldname": "m_flSystemTimeInSeconds", "fieldtype": "double"}, +{ "fieldname": "m_flPreSubmitGpuMs", "fieldtype": "float"}, +{ "fieldname": "m_flPostSubmitGpuMs", "fieldtype": "float"}, +{ "fieldname": "m_flTotalRenderGpuMs", "fieldtype": "float"}, +{ "fieldname": "m_flCompositorRenderGpuMs", "fieldtype": "float"}, +{ "fieldname": "m_flCompositorRenderCpuMs", "fieldtype": "float"}, +{ "fieldname": "m_flCompositorIdleCpuMs", "fieldtype": "float"}, +{ "fieldname": "m_flClientFrameIntervalMs", "fieldtype": "float"}, +{ "fieldname": "m_flPresentCallCpuMs", "fieldtype": "float"}, +{ "fieldname": "m_flWaitForPresentCpuMs", "fieldtype": "float"}, +{ "fieldname": "m_flSubmitFrameMs", "fieldtype": "float"}, +{ "fieldname": "m_flWaitGetPosesCalledMs", "fieldtype": "float"}, +{ "fieldname": "m_flNewPosesReadyMs", "fieldtype": "float"}, +{ "fieldname": "m_flNewFrameReadyMs", "fieldtype": "float"}, +{ "fieldname": "m_flCompositorUpdateStartMs", "fieldtype": "float"}, +{ "fieldname": "m_flCompositorUpdateEndMs", "fieldtype": "float"}, +{ "fieldname": "m_flCompositorRenderStartMs", "fieldtype": "float"}, +{ "fieldname": "m_HmdPose", "fieldtype": "vr::TrackedDevicePose_t"}]} +,{"struct": "vr::Compositor_CumulativeStats","fields": [ +{ "fieldname": "m_nPid", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumFramePresents", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumDroppedFrames", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumReprojectedFrames", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumFramePresentsOnStartup", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumDroppedFramesOnStartup", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumReprojectedFramesOnStartup", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumLoading", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumFramePresentsLoading", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumDroppedFramesLoading", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumReprojectedFramesLoading", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumTimedOut", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumFramePresentsTimedOut", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumDroppedFramesTimedOut", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumReprojectedFramesTimedOut", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VROverlayIntersectionParams_t","fields": [ +{ "fieldname": "vSource", "fieldtype": "struct vr::HmdVector3_t"}, +{ "fieldname": "vDirection", "fieldtype": "struct vr::HmdVector3_t"}, +{ "fieldname": "eOrigin", "fieldtype": "enum vr::ETrackingUniverseOrigin"}]} +,{"struct": "vr::VROverlayIntersectionResults_t","fields": [ +{ "fieldname": "vPoint", "fieldtype": "struct vr::HmdVector3_t"}, +{ "fieldname": "vNormal", "fieldtype": "struct vr::HmdVector3_t"}, +{ "fieldname": "vUVs", "fieldtype": "struct vr::HmdVector2_t"}, +{ "fieldname": "fDistance", "fieldtype": "float"}]} +,{"struct": "vr::IntersectionMaskRectangle_t","fields": [ +{ "fieldname": "m_flTopLeftX", "fieldtype": "float"}, +{ "fieldname": "m_flTopLeftY", "fieldtype": "float"}, +{ "fieldname": "m_flWidth", "fieldtype": "float"}, +{ "fieldname": "m_flHeight", "fieldtype": "float"}]} +,{"struct": "vr::IntersectionMaskCircle_t","fields": [ +{ "fieldname": "m_flCenterX", "fieldtype": "float"}, +{ "fieldname": "m_flCenterY", "fieldtype": "float"}, +{ "fieldname": "m_flRadius", "fieldtype": "float"}]} +,{"struct": "vr::(anonymous)","fields": [ +{ "fieldname": "m_Rectangle", "fieldtype": "struct vr::IntersectionMaskRectangle_t"}, +{ "fieldname": "m_Circle", "fieldtype": "struct vr::IntersectionMaskCircle_t"}]} +,{"struct": "vr::VROverlayIntersectionMaskPrimitive_t","fields": [ +{ "fieldname": "m_nPrimitiveType", "fieldtype": "enum vr::EVROverlayIntersectionMaskPrimitiveType"}, +{ "fieldname": "m_Primitive", "fieldtype": "VROverlayIntersectionMaskPrimitive_Data_t"}]} +,{"struct": "vr::RenderModel_ComponentState_t","fields": [ +{ "fieldname": "mTrackingToComponentRenderModel", "fieldtype": "struct vr::HmdMatrix34_t"}, +{ "fieldname": "mTrackingToComponentLocal", "fieldtype": "struct vr::HmdMatrix34_t"}, +{ "fieldname": "uProperties", "fieldtype": "VRComponentProperties"}]} +,{"struct": "vr::RenderModel_Vertex_t","fields": [ +{ "fieldname": "vPosition", "fieldtype": "struct vr::HmdVector3_t"}, +{ "fieldname": "vNormal", "fieldtype": "struct vr::HmdVector3_t"}, +{ "fieldname": "rfTextureCoord", "fieldtype": "float [2]"}]} +,{"struct": "vr::RenderModel_TextureMap_t","fields": [ +{ "fieldname": "unWidth", "fieldtype": "uint16_t"}, +{ "fieldname": "unHeight", "fieldtype": "uint16_t"}, +{ "fieldname": "rubTextureMapData", "fieldtype": "const uint8_t *"}]} +,{"struct": "vr::RenderModel_t","fields": [ +{ "fieldname": "rVertexData", "fieldtype": "const struct vr::RenderModel_Vertex_t *"}, +{ "fieldname": "unVertexCount", "fieldtype": "uint32_t"}, +{ "fieldname": "rIndexData", "fieldtype": "const uint16_t *"}, +{ "fieldname": "unTriangleCount", "fieldtype": "uint32_t"}, +{ "fieldname": "diffuseTextureId", "fieldtype": "TextureID_t"}]} +,{"struct": "vr::RenderModel_ControllerMode_State_t","fields": [ +{ "fieldname": "bScrollWheelVisible", "fieldtype": "_Bool"}]} +,{"struct": "vr::NotificationBitmap_t","fields": [ +{ "fieldname": "m_pImageData", "fieldtype": "void *"}, +{ "fieldname": "m_nWidth", "fieldtype": "int32_t"}, +{ "fieldname": "m_nHeight", "fieldtype": "int32_t"}, +{ "fieldname": "m_nBytesPerPixel", "fieldtype": "int32_t"}]} +,{"struct": "vr::COpenVRContext","fields": [ +{ "fieldname": "m_pVRSystem", "fieldtype": "class vr::IVRSystem *"}, +{ "fieldname": "m_pVRChaperone", "fieldtype": "class vr::IVRChaperone *"}, +{ "fieldname": "m_pVRChaperoneSetup", "fieldtype": "class vr::IVRChaperoneSetup *"}, +{ "fieldname": "m_pVRCompositor", "fieldtype": "class vr::IVRCompositor *"}, +{ "fieldname": "m_pVROverlay", "fieldtype": "class vr::IVROverlay *"}, +{ "fieldname": "m_pVRResources", "fieldtype": "class vr::IVRResources *"}, +{ "fieldname": "m_pVRRenderModels", "fieldtype": "class vr::IVRRenderModels *"}, +{ "fieldname": "m_pVRExtendedDisplay", "fieldtype": "class vr::IVRExtendedDisplay *"}, +{ "fieldname": "m_pVRSettings", "fieldtype": "class vr::IVRSettings *"}, +{ "fieldname": "m_pVRApplications", "fieldtype": "class vr::IVRApplications *"}, +{ "fieldname": "m_pVRTrackedCamera", "fieldtype": "class vr::IVRTrackedCamera *"}, +{ "fieldname": "m_pVRScreenshots", "fieldtype": "class vr::IVRScreenshots *"}, +{ "fieldname": "m_pVRDriverManager", "fieldtype": "class vr::IVRDriverManager *"}]} +], +"methods":[{ + "classname": "vr::IVRSystem", + "methodname": "GetRecommendedRenderTargetSize", + "returntype": "void", + "params": [ +{ "paramname": "pnWidth" ,"paramtype": "uint32_t *"}, +{ "paramname": "pnHeight" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetProjectionMatrix", + "returntype": "struct vr::HmdMatrix44_t", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"}, +{ "paramname": "fNearZ" ,"paramtype": "float"}, +{ "paramname": "fFarZ" ,"paramtype": "float"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetProjectionRaw", + "returntype": "void", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"}, +{ "paramname": "pfLeft" ,"paramtype": "float *"}, +{ "paramname": "pfRight" ,"paramtype": "float *"}, +{ "paramname": "pfTop" ,"paramtype": "float *"}, +{ "paramname": "pfBottom" ,"paramtype": "float *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "ComputeDistortion", + "returntype": "bool", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"}, +{ "paramname": "fU" ,"paramtype": "float"}, +{ "paramname": "fV" ,"paramtype": "float"}, +{ "paramname": "pDistortionCoordinates" ,"paramtype": "struct vr::DistortionCoordinates_t *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetEyeToHeadTransform", + "returntype": "struct vr::HmdMatrix34_t", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetTimeSinceLastVsync", + "returntype": "bool", + "params": [ +{ "paramname": "pfSecondsSinceLastVsync" ,"paramtype": "float *"}, +{ "paramname": "pulFrameCounter" ,"paramtype": "uint64_t *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetD3D9AdapterIndex", + "returntype": "int32_t" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetDXGIOutputInfo", + "returntype": "void", + "params": [ +{ "paramname": "pnAdapterIndex" ,"paramtype": "int32_t *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetOutputDevice", + "returntype": "void", + "params": [ +{ "paramname": "pnDevice" ,"paramtype": "uint64_t *"}, +{ "paramname": "textureType" ,"paramtype": "vr::ETextureType"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "IsDisplayOnDesktop", + "returntype": "bool" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "SetDisplayVisibility", + "returntype": "bool", + "params": [ +{ "paramname": "bIsVisibleOnDesktop" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetDeviceToAbsoluteTrackingPose", + "returntype": "void", + "params": [ +{ "paramname": "eOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin"}, +{ "paramname": "fPredictedSecondsToPhotonsFromNow" ,"paramtype": "float"}, +{ "paramname": "pTrackedDevicePoseArray" ,"array_count": "unTrackedDevicePoseArrayCount" ,"paramtype": "struct vr::TrackedDevicePose_t *"}, +{ "paramname": "unTrackedDevicePoseArrayCount" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "ResetSeatedZeroPose", + "returntype": "void" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetSeatedZeroPoseToStandingAbsoluteTrackingPose", + "returntype": "struct vr::HmdMatrix34_t" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetRawZeroPoseToStandingAbsoluteTrackingPose", + "returntype": "struct vr::HmdMatrix34_t" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetSortedTrackedDeviceIndicesOfClass", + "returntype": "uint32_t", + "params": [ +{ "paramname": "eTrackedDeviceClass" ,"paramtype": "vr::ETrackedDeviceClass"}, +{ "paramname": "punTrackedDeviceIndexArray" ,"array_count": "unTrackedDeviceIndexArrayCount" ,"paramtype": "vr::TrackedDeviceIndex_t *"}, +{ "paramname": "unTrackedDeviceIndexArrayCount" ,"paramtype": "uint32_t"}, +{ "paramname": "unRelativeToTrackedDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetTrackedDeviceActivityLevel", + "returntype": "vr::EDeviceActivityLevel", + "params": [ +{ "paramname": "unDeviceId" ,"paramtype": "vr::TrackedDeviceIndex_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "ApplyTransform", + "returntype": "void", + "params": [ +{ "paramname": "pOutputPose" ,"paramtype": "struct vr::TrackedDevicePose_t *"}, +{ "paramname": "pTrackedDevicePose" ,"paramtype": "const struct vr::TrackedDevicePose_t *"}, +{ "paramname": "pTransform" ,"paramtype": "const struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetTrackedDeviceIndexForControllerRole", + "returntype": "vr::TrackedDeviceIndex_t", + "params": [ +{ "paramname": "unDeviceType" ,"paramtype": "vr::ETrackedControllerRole"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetControllerRoleForTrackedDeviceIndex", + "returntype": "vr::ETrackedControllerRole", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetTrackedDeviceClass", + "returntype": "vr::ETrackedDeviceClass", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "IsTrackedDeviceConnected", + "returntype": "bool", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetBoolTrackedDeviceProperty", + "returntype": "bool", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "prop" ,"paramtype": "vr::ETrackedDeviceProperty"}, +{ "paramname": "pError" ,"paramtype": "vr::ETrackedPropertyError *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetFloatTrackedDeviceProperty", + "returntype": "float", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "prop" ,"paramtype": "vr::ETrackedDeviceProperty"}, +{ "paramname": "pError" ,"paramtype": "vr::ETrackedPropertyError *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetInt32TrackedDeviceProperty", + "returntype": "int32_t", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "prop" ,"paramtype": "vr::ETrackedDeviceProperty"}, +{ "paramname": "pError" ,"paramtype": "vr::ETrackedPropertyError *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetUint64TrackedDeviceProperty", + "returntype": "uint64_t", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "prop" ,"paramtype": "vr::ETrackedDeviceProperty"}, +{ "paramname": "pError" ,"paramtype": "vr::ETrackedPropertyError *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetMatrix34TrackedDeviceProperty", + "returntype": "struct vr::HmdMatrix34_t", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "prop" ,"paramtype": "vr::ETrackedDeviceProperty"}, +{ "paramname": "pError" ,"paramtype": "vr::ETrackedPropertyError *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetStringTrackedDeviceProperty", + "returntype": "uint32_t", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "prop" ,"paramtype": "vr::ETrackedDeviceProperty"}, +{ "paramname": "pchValue" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unBufferSize" ,"paramtype": "uint32_t"}, +{ "paramname": "pError" ,"paramtype": "vr::ETrackedPropertyError *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetPropErrorNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "error" ,"paramtype": "vr::ETrackedPropertyError"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "PollNextEvent", + "returntype": "bool", + "params": [ +{ "paramname": "pEvent" ,"paramtype": "struct vr::VREvent_t *"}, +{ "paramname": "uncbVREvent" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "PollNextEventWithPose", + "returntype": "bool", + "params": [ +{ "paramname": "eOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin"}, +{ "paramname": "pEvent" ,"paramtype": "struct vr::VREvent_t *"}, +{ "paramname": "uncbVREvent" ,"paramtype": "uint32_t"}, +{ "paramname": "pTrackedDevicePose" ,"paramtype": "vr::TrackedDevicePose_t *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetEventTypeNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "eType" ,"paramtype": "vr::EVREventType"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetHiddenAreaMesh", + "returntype": "struct vr::HiddenAreaMesh_t", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"}, +{ "paramname": "type" ,"paramtype": "vr::EHiddenAreaMeshType"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetControllerState", + "returntype": "bool", + "params": [ +{ "paramname": "unControllerDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "pControllerState" ,"paramtype": "vr::VRControllerState_t *"}, +{ "paramname": "unControllerStateSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetControllerStateWithPose", + "returntype": "bool", + "params": [ +{ "paramname": "eOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin"}, +{ "paramname": "unControllerDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "pControllerState" ,"paramtype": "vr::VRControllerState_t *"}, +{ "paramname": "unControllerStateSize" ,"paramtype": "uint32_t"}, +{ "paramname": "pTrackedDevicePose" ,"paramtype": "struct vr::TrackedDevicePose_t *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "TriggerHapticPulse", + "returntype": "void", + "params": [ +{ "paramname": "unControllerDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "unAxisId" ,"paramtype": "uint32_t"}, +{ "paramname": "usDurationMicroSec" ,"paramtype": "unsigned short"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetButtonIdNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "eButtonId" ,"paramtype": "vr::EVRButtonId"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetControllerAxisTypeNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "eAxisType" ,"paramtype": "vr::EVRControllerAxisType"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "CaptureInputFocus", + "returntype": "bool" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "ReleaseInputFocus", + "returntype": "void" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "IsInputFocusCapturedByAnotherProcess", + "returntype": "bool" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "DriverDebugRequest", + "returntype": "uint32_t", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "pchRequest" ,"paramtype": "const char *"}, +{ "paramname": "pchResponseBuffer" ,"paramtype": "char *"}, +{ "paramname": "unResponseBufferSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "PerformFirmwareUpdate", + "returntype": "vr::EVRFirmwareError", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "AcknowledgeQuit_Exiting", + "returntype": "void" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "AcknowledgeQuit_UserPrompt", + "returntype": "void" +} +,{ + "classname": "vr::IVRExtendedDisplay", + "methodname": "GetWindowBounds", + "returntype": "void", + "params": [ +{ "paramname": "pnX" ,"paramtype": "int32_t *"}, +{ "paramname": "pnY" ,"paramtype": "int32_t *"}, +{ "paramname": "pnWidth" ,"paramtype": "uint32_t *"}, +{ "paramname": "pnHeight" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRExtendedDisplay", + "methodname": "GetEyeOutputViewport", + "returntype": "void", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"}, +{ "paramname": "pnX" ,"paramtype": "uint32_t *"}, +{ "paramname": "pnY" ,"paramtype": "uint32_t *"}, +{ "paramname": "pnWidth" ,"paramtype": "uint32_t *"}, +{ "paramname": "pnHeight" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRExtendedDisplay", + "methodname": "GetDXGIOutputInfo", + "returntype": "void", + "params": [ +{ "paramname": "pnAdapterIndex" ,"paramtype": "int32_t *"}, +{ "paramname": "pnAdapterOutputIndex" ,"paramtype": "int32_t *"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "GetCameraErrorNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "eCameraError" ,"paramtype": "vr::EVRTrackedCameraError"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "HasCamera", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "nDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "pHasCamera" ,"paramtype": "bool *"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "GetCameraFrameSize", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "nDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "eFrameType" ,"paramtype": "vr::EVRTrackedCameraFrameType"}, +{ "paramname": "pnWidth" ,"paramtype": "uint32_t *"}, +{ "paramname": "pnHeight" ,"paramtype": "uint32_t *"}, +{ "paramname": "pnFrameBufferSize" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "GetCameraIntrinsics", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "nDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "eFrameType" ,"paramtype": "vr::EVRTrackedCameraFrameType"}, +{ "paramname": "pFocalLength" ,"paramtype": "vr::HmdVector2_t *"}, +{ "paramname": "pCenter" ,"paramtype": "vr::HmdVector2_t *"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "GetCameraProjection", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "nDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "eFrameType" ,"paramtype": "vr::EVRTrackedCameraFrameType"}, +{ "paramname": "flZNear" ,"paramtype": "float"}, +{ "paramname": "flZFar" ,"paramtype": "float"}, +{ "paramname": "pProjection" ,"paramtype": "vr::HmdMatrix44_t *"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "AcquireVideoStreamingService", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "nDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "pHandle" ,"paramtype": "vr::TrackedCameraHandle_t *"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "ReleaseVideoStreamingService", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "hTrackedCamera" ,"paramtype": "vr::TrackedCameraHandle_t"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "GetVideoStreamFrameBuffer", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "hTrackedCamera" ,"paramtype": "vr::TrackedCameraHandle_t"}, +{ "paramname": "eFrameType" ,"paramtype": "vr::EVRTrackedCameraFrameType"}, +{ "paramname": "pFrameBuffer" ,"paramtype": "void *"}, +{ "paramname": "nFrameBufferSize" ,"paramtype": "uint32_t"}, +{ "paramname": "pFrameHeader" ,"paramtype": "vr::CameraVideoStreamFrameHeader_t *"}, +{ "paramname": "nFrameHeaderSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "GetVideoStreamTextureSize", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "nDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "eFrameType" ,"paramtype": "vr::EVRTrackedCameraFrameType"}, +{ "paramname": "pTextureBounds" ,"paramtype": "vr::VRTextureBounds_t *"}, +{ "paramname": "pnWidth" ,"paramtype": "uint32_t *"}, +{ "paramname": "pnHeight" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "GetVideoStreamTextureD3D11", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "hTrackedCamera" ,"paramtype": "vr::TrackedCameraHandle_t"}, +{ "paramname": "eFrameType" ,"paramtype": "vr::EVRTrackedCameraFrameType"}, +{ "paramname": "pD3D11DeviceOrResource" ,"paramtype": "void *"}, +{ "paramname": "ppD3D11ShaderResourceView" ,"paramtype": "void **"}, +{ "paramname": "pFrameHeader" ,"paramtype": "vr::CameraVideoStreamFrameHeader_t *"}, +{ "paramname": "nFrameHeaderSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "GetVideoStreamTextureGL", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "hTrackedCamera" ,"paramtype": "vr::TrackedCameraHandle_t"}, +{ "paramname": "eFrameType" ,"paramtype": "vr::EVRTrackedCameraFrameType"}, +{ "paramname": "pglTextureId" ,"paramtype": "vr::glUInt_t *"}, +{ "paramname": "pFrameHeader" ,"paramtype": "vr::CameraVideoStreamFrameHeader_t *"}, +{ "paramname": "nFrameHeaderSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "ReleaseVideoStreamTextureGL", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "hTrackedCamera" ,"paramtype": "vr::TrackedCameraHandle_t"}, +{ "paramname": "glTextureId" ,"paramtype": "vr::glUInt_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "AddApplicationManifest", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchApplicationManifestFullPath" ,"paramtype": "const char *"}, +{ "paramname": "bTemporary" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "RemoveApplicationManifest", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchApplicationManifestFullPath" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "IsApplicationInstalled", + "returntype": "bool", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationCount", + "returntype": "uint32_t" +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationKeyByIndex", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "unApplicationIndex" ,"paramtype": "uint32_t"}, +{ "paramname": "pchAppKeyBuffer" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unAppKeyBufferLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationKeyByProcessId", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "unProcessId" ,"paramtype": "uint32_t"}, +{ "paramname": "pchAppKeyBuffer" ,"paramtype": "char *"}, +{ "paramname": "unAppKeyBufferLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "LaunchApplication", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "LaunchTemplateApplication", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchTemplateAppKey" ,"paramtype": "const char *"}, +{ "paramname": "pchNewAppKey" ,"paramtype": "const char *"}, +{ "paramname": "pKeys" ,"array_count": "unKeys" ,"paramtype": "const struct vr::AppOverrideKeys_t *"}, +{ "paramname": "unKeys" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "LaunchApplicationFromMimeType", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchMimeType" ,"paramtype": "const char *"}, +{ "paramname": "pchArgs" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "LaunchDashboardOverlay", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "CancelApplicationLaunch", + "returntype": "bool", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "IdentifyApplication", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "unProcessId" ,"paramtype": "uint32_t"}, +{ "paramname": "pchAppKey" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationProcessId", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationsErrorNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "error" ,"paramtype": "vr::EVRApplicationError"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationPropertyString", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"}, +{ "paramname": "eProperty" ,"paramtype": "vr::EVRApplicationProperty"}, +{ "paramname": "pchPropertyValueBuffer" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unPropertyValueBufferLen" ,"paramtype": "uint32_t"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRApplicationError *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationPropertyBool", + "returntype": "bool", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"}, +{ "paramname": "eProperty" ,"paramtype": "vr::EVRApplicationProperty"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRApplicationError *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationPropertyUint64", + "returntype": "uint64_t", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"}, +{ "paramname": "eProperty" ,"paramtype": "vr::EVRApplicationProperty"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRApplicationError *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "SetApplicationAutoLaunch", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"}, +{ "paramname": "bAutoLaunch" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationAutoLaunch", + "returntype": "bool", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "SetDefaultApplicationForMimeType", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"}, +{ "paramname": "pchMimeType" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetDefaultApplicationForMimeType", + "returntype": "bool", + "params": [ +{ "paramname": "pchMimeType" ,"paramtype": "const char *"}, +{ "paramname": "pchAppKeyBuffer" ,"paramtype": "char *"}, +{ "paramname": "unAppKeyBufferLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationSupportedMimeTypes", + "returntype": "bool", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"}, +{ "paramname": "pchMimeTypesBuffer" ,"paramtype": "char *"}, +{ "paramname": "unMimeTypesBuffer" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationsThatSupportMimeType", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchMimeType" ,"paramtype": "const char *"}, +{ "paramname": "pchAppKeysThatSupportBuffer" ,"paramtype": "char *"}, +{ "paramname": "unAppKeysThatSupportBuffer" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationLaunchArguments", + "returntype": "uint32_t", + "params": [ +{ "paramname": "unHandle" ,"paramtype": "uint32_t"}, +{ "paramname": "pchArgs" ,"paramtype": "char *"}, +{ "paramname": "unArgs" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetStartingApplication", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchAppKeyBuffer" ,"paramtype": "char *"}, +{ "paramname": "unAppKeyBufferLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetTransitionState", + "returntype": "vr::EVRApplicationTransitionState" +} +,{ + "classname": "vr::IVRApplications", + "methodname": "PerformApplicationPrelaunchCheck", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationsTransitionStateNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "state" ,"paramtype": "vr::EVRApplicationTransitionState"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "IsQuitUserPromptRequested", + "returntype": "bool" +} +,{ + "classname": "vr::IVRApplications", + "methodname": "LaunchInternalProcess", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchBinaryPath" ,"paramtype": "const char *"}, +{ "paramname": "pchArguments" ,"paramtype": "const char *"}, +{ "paramname": "pchWorkingDirectory" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetCurrentSceneProcessId", + "returntype": "uint32_t" +} +,{ + "classname": "vr::IVRChaperone", + "methodname": "GetCalibrationState", + "returntype": "vr::ChaperoneCalibrationState" +} +,{ + "classname": "vr::IVRChaperone", + "methodname": "GetPlayAreaSize", + "returntype": "bool", + "params": [ +{ "paramname": "pSizeX" ,"paramtype": "float *"}, +{ "paramname": "pSizeZ" ,"paramtype": "float *"} + ] +} +,{ + "classname": "vr::IVRChaperone", + "methodname": "GetPlayAreaRect", + "returntype": "bool", + "params": [ +{ "paramname": "rect" ,"paramtype": "struct vr::HmdQuad_t *"} + ] +} +,{ + "classname": "vr::IVRChaperone", + "methodname": "ReloadInfo", + "returntype": "void" +} +,{ + "classname": "vr::IVRChaperone", + "methodname": "SetSceneColor", + "returntype": "void", + "params": [ +{ "paramname": "color" ,"paramtype": "struct vr::HmdColor_t"} + ] +} +,{ + "classname": "vr::IVRChaperone", + "methodname": "GetBoundsColor", + "returntype": "void", + "params": [ +{ "paramname": "pOutputColorArray" ,"paramtype": "struct vr::HmdColor_t *"}, +{ "paramname": "nNumOutputColors" ,"paramtype": "int"}, +{ "paramname": "flCollisionBoundsFadeDistance" ,"paramtype": "float"}, +{ "paramname": "pOutputCameraColor" ,"paramtype": "struct vr::HmdColor_t *"} + ] +} +,{ + "classname": "vr::IVRChaperone", + "methodname": "AreBoundsVisible", + "returntype": "bool" +} +,{ + "classname": "vr::IVRChaperone", + "methodname": "ForceBoundsVisible", + "returntype": "void", + "params": [ +{ "paramname": "bForce" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "CommitWorkingCopy", + "returntype": "bool", + "params": [ +{ "paramname": "configFile" ,"paramtype": "vr::EChaperoneConfigFile"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "RevertWorkingCopy", + "returntype": "void" +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetWorkingPlayAreaSize", + "returntype": "bool", + "params": [ +{ "paramname": "pSizeX" ,"paramtype": "float *"}, +{ "paramname": "pSizeZ" ,"paramtype": "float *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetWorkingPlayAreaRect", + "returntype": "bool", + "params": [ +{ "paramname": "rect" ,"paramtype": "struct vr::HmdQuad_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetWorkingCollisionBoundsInfo", + "returntype": "bool", + "params": [ +{ "paramname": "pQuadsBuffer" ,"out_array_count": "punQuadsCount" ,"paramtype": "struct vr::HmdQuad_t *"}, +{ "paramname": "punQuadsCount" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetLiveCollisionBoundsInfo", + "returntype": "bool", + "params": [ +{ "paramname": "pQuadsBuffer" ,"out_array_count": "punQuadsCount" ,"paramtype": "struct vr::HmdQuad_t *"}, +{ "paramname": "punQuadsCount" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetWorkingSeatedZeroPoseToRawTrackingPose", + "returntype": "bool", + "params": [ +{ "paramname": "pmatSeatedZeroPoseToRawTrackingPose" ,"paramtype": "struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetWorkingStandingZeroPoseToRawTrackingPose", + "returntype": "bool", + "params": [ +{ "paramname": "pmatStandingZeroPoseToRawTrackingPose" ,"paramtype": "struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "SetWorkingPlayAreaSize", + "returntype": "void", + "params": [ +{ "paramname": "sizeX" ,"paramtype": "float"}, +{ "paramname": "sizeZ" ,"paramtype": "float"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "SetWorkingCollisionBoundsInfo", + "returntype": "void", + "params": [ +{ "paramname": "pQuadsBuffer" ,"array_count": "unQuadsCount" ,"paramtype": "struct vr::HmdQuad_t *"}, +{ "paramname": "unQuadsCount" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "SetWorkingSeatedZeroPoseToRawTrackingPose", + "returntype": "void", + "params": [ +{ "paramname": "pMatSeatedZeroPoseToRawTrackingPose" ,"paramtype": "const struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "SetWorkingStandingZeroPoseToRawTrackingPose", + "returntype": "void", + "params": [ +{ "paramname": "pMatStandingZeroPoseToRawTrackingPose" ,"paramtype": "const struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "ReloadFromDisk", + "returntype": "void", + "params": [ +{ "paramname": "configFile" ,"paramtype": "vr::EChaperoneConfigFile"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetLiveSeatedZeroPoseToRawTrackingPose", + "returntype": "bool", + "params": [ +{ "paramname": "pmatSeatedZeroPoseToRawTrackingPose" ,"paramtype": "struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "SetWorkingCollisionBoundsTagsInfo", + "returntype": "void", + "params": [ +{ "paramname": "pTagsBuffer" ,"array_count": "unTagCount" ,"paramtype": "uint8_t *"}, +{ "paramname": "unTagCount" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetLiveCollisionBoundsTagsInfo", + "returntype": "bool", + "params": [ +{ "paramname": "pTagsBuffer" ,"out_array_count": "punTagCount" ,"paramtype": "uint8_t *"}, +{ "paramname": "punTagCount" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "SetWorkingPhysicalBoundsInfo", + "returntype": "bool", + "params": [ +{ "paramname": "pQuadsBuffer" ,"array_count": "unQuadsCount" ,"paramtype": "struct vr::HmdQuad_t *"}, +{ "paramname": "unQuadsCount" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetLivePhysicalBoundsInfo", + "returntype": "bool", + "params": [ +{ "paramname": "pQuadsBuffer" ,"out_array_count": "punQuadsCount" ,"paramtype": "struct vr::HmdQuad_t *"}, +{ "paramname": "punQuadsCount" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "ExportLiveToBuffer", + "returntype": "bool", + "params": [ +{ "paramname": "pBuffer" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "pnBufferLength" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "ImportFromBufferToWorking", + "returntype": "bool", + "params": [ +{ "paramname": "pBuffer" ,"paramtype": "const char *"}, +{ "paramname": "nImportFlags" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "SetTrackingSpace", + "returntype": "void", + "params": [ +{ "paramname": "eOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetTrackingSpace", + "returntype": "vr::ETrackingUniverseOrigin" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "WaitGetPoses", + "returntype": "vr::EVRCompositorError", + "params": [ +{ "paramname": "pRenderPoseArray" ,"array_count": "unRenderPoseArrayCount" ,"paramtype": "struct vr::TrackedDevicePose_t *"}, +{ "paramname": "unRenderPoseArrayCount" ,"paramtype": "uint32_t"}, +{ "paramname": "pGamePoseArray" ,"array_count": "unGamePoseArrayCount" ,"paramtype": "struct vr::TrackedDevicePose_t *"}, +{ "paramname": "unGamePoseArrayCount" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetLastPoses", + "returntype": "vr::EVRCompositorError", + "params": [ +{ "paramname": "pRenderPoseArray" ,"array_count": "unRenderPoseArrayCount" ,"paramtype": "struct vr::TrackedDevicePose_t *"}, +{ "paramname": "unRenderPoseArrayCount" ,"paramtype": "uint32_t"}, +{ "paramname": "pGamePoseArray" ,"array_count": "unGamePoseArrayCount" ,"paramtype": "struct vr::TrackedDevicePose_t *"}, +{ "paramname": "unGamePoseArrayCount" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetLastPoseForTrackedDeviceIndex", + "returntype": "vr::EVRCompositorError", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "pOutputPose" ,"paramtype": "struct vr::TrackedDevicePose_t *"}, +{ "paramname": "pOutputGamePose" ,"paramtype": "struct vr::TrackedDevicePose_t *"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "Submit", + "returntype": "vr::EVRCompositorError", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"}, +{ "paramname": "pTexture" ,"paramtype": "const struct vr::Texture_t *"}, +{ "paramname": "pBounds" ,"paramtype": "const struct vr::VRTextureBounds_t *"}, +{ "paramname": "nSubmitFlags" ,"paramtype": "vr::EVRSubmitFlags"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "ClearLastSubmittedFrame", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "PostPresentHandoff", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetFrameTiming", + "returntype": "bool", + "params": [ +{ "paramname": "pTiming" ,"paramtype": "struct vr::Compositor_FrameTiming *"}, +{ "paramname": "unFramesAgo" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetFrameTimings", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pTiming" ,"paramtype": "struct vr::Compositor_FrameTiming *"}, +{ "paramname": "nFrames" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetFrameTimeRemaining", + "returntype": "float" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetCumulativeStats", + "returntype": "void", + "params": [ +{ "paramname": "pStats" ,"paramtype": "struct vr::Compositor_CumulativeStats *"}, +{ "paramname": "nStatsSizeInBytes" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "FadeToColor", + "returntype": "void", + "params": [ +{ "paramname": "fSeconds" ,"paramtype": "float"}, +{ "paramname": "fRed" ,"paramtype": "float"}, +{ "paramname": "fGreen" ,"paramtype": "float"}, +{ "paramname": "fBlue" ,"paramtype": "float"}, +{ "paramname": "fAlpha" ,"paramtype": "float"}, +{ "paramname": "bBackground" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetCurrentFadeColor", + "returntype": "struct vr::HmdColor_t", + "params": [ +{ "paramname": "bBackground" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "FadeGrid", + "returntype": "void", + "params": [ +{ "paramname": "fSeconds" ,"paramtype": "float"}, +{ "paramname": "bFadeIn" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetCurrentGridAlpha", + "returntype": "float" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "SetSkyboxOverride", + "returntype": "vr::EVRCompositorError", + "params": [ +{ "paramname": "pTextures" ,"array_count": "unTextureCount" ,"paramtype": "const struct vr::Texture_t *"}, +{ "paramname": "unTextureCount" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "ClearSkyboxOverride", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "CompositorBringToFront", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "CompositorGoToBack", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "CompositorQuit", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "IsFullscreen", + "returntype": "bool" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetCurrentSceneFocusProcess", + "returntype": "uint32_t" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetLastFrameRenderer", + "returntype": "uint32_t" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "CanRenderScene", + "returntype": "bool" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "ShowMirrorWindow", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "HideMirrorWindow", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "IsMirrorWindowVisible", + "returntype": "bool" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "CompositorDumpImages", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "ShouldAppRenderWithLowResources", + "returntype": "bool" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "ForceInterleavedReprojectionOn", + "returntype": "void", + "params": [ +{ "paramname": "bOverride" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "ForceReconnectProcess", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "SuspendRendering", + "returntype": "void", + "params": [ +{ "paramname": "bSuspend" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetMirrorTextureD3D11", + "returntype": "vr::EVRCompositorError", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"}, +{ "paramname": "pD3D11DeviceOrResource" ,"paramtype": "void *"}, +{ "paramname": "ppD3D11ShaderResourceView" ,"paramtype": "void **"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "ReleaseMirrorTextureD3D11", + "returntype": "void", + "params": [ +{ "paramname": "pD3D11ShaderResourceView" ,"paramtype": "void *"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetMirrorTextureGL", + "returntype": "vr::EVRCompositorError", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"}, +{ "paramname": "pglTextureId" ,"paramtype": "vr::glUInt_t *"}, +{ "paramname": "pglSharedTextureHandle" ,"paramtype": "vr::glSharedTextureHandle_t *"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "ReleaseSharedGLTexture", + "returntype": "bool", + "params": [ +{ "paramname": "glTextureId" ,"paramtype": "vr::glUInt_t"}, +{ "paramname": "glSharedTextureHandle" ,"paramtype": "vr::glSharedTextureHandle_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "LockGLSharedTextureForAccess", + "returntype": "void", + "params": [ +{ "paramname": "glSharedTextureHandle" ,"paramtype": "vr::glSharedTextureHandle_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "UnlockGLSharedTextureForAccess", + "returntype": "void", + "params": [ +{ "paramname": "glSharedTextureHandle" ,"paramtype": "vr::glSharedTextureHandle_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetVulkanInstanceExtensionsRequired", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchValue" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unBufferSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetVulkanDeviceExtensionsRequired", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pPhysicalDevice" ,"paramtype": "struct VkPhysicalDevice_T *"}, +{ "paramname": "pchValue" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unBufferSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "FindOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "pchOverlayKey" ,"paramtype": "const char *"}, +{ "paramname": "pOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "CreateOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "pchOverlayKey" ,"paramtype": "const char *"}, +{ "paramname": "pchOverlayName" ,"paramtype": "const char *"}, +{ "paramname": "pOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "DestroyOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetHighQualityOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetHighQualityOverlay", + "returntype": "vr::VROverlayHandle_t" +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayKey", + "returntype": "uint32_t", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pchValue" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unBufferSize" ,"paramtype": "uint32_t"}, +{ "paramname": "pError" ,"paramtype": "vr::EVROverlayError *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayName", + "returntype": "uint32_t", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pchValue" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unBufferSize" ,"paramtype": "uint32_t"}, +{ "paramname": "pError" ,"paramtype": "vr::EVROverlayError *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayName", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pchName" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayImageData", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pvBuffer" ,"paramtype": "void *"}, +{ "paramname": "unBufferSize" ,"paramtype": "uint32_t"}, +{ "paramname": "punWidth" ,"paramtype": "uint32_t *"}, +{ "paramname": "punHeight" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayErrorNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "error" ,"paramtype": "vr::EVROverlayError"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayRenderingPid", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "unPID" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayRenderingPid", + "returntype": "uint32_t", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayFlag", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "eOverlayFlag" ,"paramtype": "vr::VROverlayFlags"}, +{ "paramname": "bEnabled" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayFlag", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "eOverlayFlag" ,"paramtype": "vr::VROverlayFlags"}, +{ "paramname": "pbEnabled" ,"paramtype": "bool *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayColor", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "fRed" ,"paramtype": "float"}, +{ "paramname": "fGreen" ,"paramtype": "float"}, +{ "paramname": "fBlue" ,"paramtype": "float"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayColor", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pfRed" ,"paramtype": "float *"}, +{ "paramname": "pfGreen" ,"paramtype": "float *"}, +{ "paramname": "pfBlue" ,"paramtype": "float *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayAlpha", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "fAlpha" ,"paramtype": "float"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayAlpha", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pfAlpha" ,"paramtype": "float *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayTexelAspect", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "fTexelAspect" ,"paramtype": "float"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTexelAspect", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pfTexelAspect" ,"paramtype": "float *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlaySortOrder", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "unSortOrder" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlaySortOrder", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "punSortOrder" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayWidthInMeters", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "fWidthInMeters" ,"paramtype": "float"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayWidthInMeters", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pfWidthInMeters" ,"paramtype": "float *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayAutoCurveDistanceRangeInMeters", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "fMinDistanceInMeters" ,"paramtype": "float"}, +{ "paramname": "fMaxDistanceInMeters" ,"paramtype": "float"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayAutoCurveDistanceRangeInMeters", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pfMinDistanceInMeters" ,"paramtype": "float *"}, +{ "paramname": "pfMaxDistanceInMeters" ,"paramtype": "float *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayTextureColorSpace", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "eTextureColorSpace" ,"paramtype": "vr::EColorSpace"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTextureColorSpace", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "peTextureColorSpace" ,"paramtype": "vr::EColorSpace *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayTextureBounds", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pOverlayTextureBounds" ,"paramtype": "const struct vr::VRTextureBounds_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTextureBounds", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pOverlayTextureBounds" ,"paramtype": "struct vr::VRTextureBounds_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayRenderModel", + "returntype": "uint32_t", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pchValue" ,"paramtype": "char *"}, +{ "paramname": "unBufferSize" ,"paramtype": "uint32_t"}, +{ "paramname": "pColor" ,"paramtype": "struct vr::HmdColor_t *"}, +{ "paramname": "pError" ,"paramtype": "vr::EVROverlayError *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayRenderModel", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pchRenderModel" ,"paramtype": "const char *"}, +{ "paramname": "pColor" ,"paramtype": "const struct vr::HmdColor_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTransformType", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "peTransformType" ,"paramtype": "vr::VROverlayTransformType *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayTransformAbsolute", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "eTrackingOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin"}, +{ "paramname": "pmatTrackingOriginToOverlayTransform" ,"paramtype": "const struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTransformAbsolute", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "peTrackingOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin *"}, +{ "paramname": "pmatTrackingOriginToOverlayTransform" ,"paramtype": "struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayTransformTrackedDeviceRelative", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "unTrackedDevice" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "pmatTrackedDeviceToOverlayTransform" ,"paramtype": "const struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTransformTrackedDeviceRelative", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "punTrackedDevice" ,"paramtype": "vr::TrackedDeviceIndex_t *"}, +{ "paramname": "pmatTrackedDeviceToOverlayTransform" ,"paramtype": "struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayTransformTrackedDeviceComponent", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "pchComponentName" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTransformTrackedDeviceComponent", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "punDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t *"}, +{ "paramname": "pchComponentName" ,"paramtype": "char *"}, +{ "paramname": "unComponentNameSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTransformOverlayRelative", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "ulOverlayHandleParent" ,"paramtype": "vr::VROverlayHandle_t *"}, +{ "paramname": "pmatParentOverlayToOverlayTransform" ,"paramtype": "struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayTransformOverlayRelative", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "ulOverlayHandleParent" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pmatParentOverlayToOverlayTransform" ,"paramtype": "const struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "ShowOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "HideOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "IsOverlayVisible", + "returntype": "bool", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetTransformForOverlayCoordinates", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "eTrackingOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin"}, +{ "paramname": "coordinatesInOverlay" ,"paramtype": "struct vr::HmdVector2_t"}, +{ "paramname": "pmatTransform" ,"paramtype": "struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "PollNextOverlayEvent", + "returntype": "bool", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pEvent" ,"paramtype": "struct vr::VREvent_t *"}, +{ "paramname": "uncbVREvent" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayInputMethod", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "peInputMethod" ,"paramtype": "vr::VROverlayInputMethod *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayInputMethod", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "eInputMethod" ,"paramtype": "vr::VROverlayInputMethod"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayMouseScale", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pvecMouseScale" ,"paramtype": "struct vr::HmdVector2_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayMouseScale", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pvecMouseScale" ,"paramtype": "const struct vr::HmdVector2_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "ComputeOverlayIntersection", + "returntype": "bool", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pParams" ,"paramtype": "const struct vr::VROverlayIntersectionParams_t *"}, +{ "paramname": "pResults" ,"paramtype": "struct vr::VROverlayIntersectionResults_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "HandleControllerOverlayInteractionAsMouse", + "returntype": "bool", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "unControllerDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "IsHoverTargetOverlay", + "returntype": "bool", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetGamepadFocusOverlay", + "returntype": "vr::VROverlayHandle_t" +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetGamepadFocusOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulNewFocusOverlay" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayNeighbor", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "eDirection" ,"paramtype": "vr::EOverlayDirection"}, +{ "paramname": "ulFrom" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "ulTo" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "MoveGamepadFocusToNeighbor", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "eDirection" ,"paramtype": "vr::EOverlayDirection"}, +{ "paramname": "ulFrom" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayTexture", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pTexture" ,"paramtype": "const struct vr::Texture_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "ClearOverlayTexture", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayRaw", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pvBuffer" ,"paramtype": "void *"}, +{ "paramname": "unWidth" ,"paramtype": "uint32_t"}, +{ "paramname": "unHeight" ,"paramtype": "uint32_t"}, +{ "paramname": "unDepth" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayFromFile", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pchFilePath" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTexture", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pNativeTextureHandle" ,"paramtype": "void **"}, +{ "paramname": "pNativeTextureRef" ,"paramtype": "void *"}, +{ "paramname": "pWidth" ,"paramtype": "uint32_t *"}, +{ "paramname": "pHeight" ,"paramtype": "uint32_t *"}, +{ "paramname": "pNativeFormat" ,"paramtype": "uint32_t *"}, +{ "paramname": "pAPIType" ,"paramtype": "vr::ETextureType *"}, +{ "paramname": "pColorSpace" ,"paramtype": "vr::EColorSpace *"}, +{ "paramname": "pTextureBounds" ,"paramtype": "struct vr::VRTextureBounds_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "ReleaseNativeOverlayHandle", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pNativeTextureHandle" ,"paramtype": "void *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTextureSize", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pWidth" ,"paramtype": "uint32_t *"}, +{ "paramname": "pHeight" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "CreateDashboardOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "pchOverlayKey" ,"paramtype": "const char *"}, +{ "paramname": "pchOverlayFriendlyName" ,"paramtype": "const char *"}, +{ "paramname": "pMainHandle" ,"paramtype": "vr::VROverlayHandle_t *"}, +{ "paramname": "pThumbnailHandle" ,"paramtype": "vr::VROverlayHandle_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "IsDashboardVisible", + "returntype": "bool" +} +,{ + "classname": "vr::IVROverlay", + "methodname": "IsActiveDashboardOverlay", + "returntype": "bool", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetDashboardOverlaySceneProcess", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "unProcessId" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetDashboardOverlaySceneProcess", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "punProcessId" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "ShowDashboard", + "returntype": "void", + "params": [ +{ "paramname": "pchOverlayToShow" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetPrimaryDashboardDevice", + "returntype": "vr::TrackedDeviceIndex_t" +} +,{ + "classname": "vr::IVROverlay", + "methodname": "ShowKeyboard", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "eInputMode" ,"paramtype": "vr::EGamepadTextInputMode"}, +{ "paramname": "eLineInputMode" ,"paramtype": "vr::EGamepadTextInputLineMode"}, +{ "paramname": "pchDescription" ,"paramtype": "const char *"}, +{ "paramname": "unCharMax" ,"paramtype": "uint32_t"}, +{ "paramname": "pchExistingText" ,"paramtype": "const char *"}, +{ "paramname": "bUseMinimalMode" ,"paramtype": "bool"}, +{ "paramname": "uUserValue" ,"paramtype": "uint64_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "ShowKeyboardForOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "eInputMode" ,"paramtype": "vr::EGamepadTextInputMode"}, +{ "paramname": "eLineInputMode" ,"paramtype": "vr::EGamepadTextInputLineMode"}, +{ "paramname": "pchDescription" ,"paramtype": "const char *"}, +{ "paramname": "unCharMax" ,"paramtype": "uint32_t"}, +{ "paramname": "pchExistingText" ,"paramtype": "const char *"}, +{ "paramname": "bUseMinimalMode" ,"paramtype": "bool"}, +{ "paramname": "uUserValue" ,"paramtype": "uint64_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetKeyboardText", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchText" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "cchText" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "HideKeyboard", + "returntype": "void" +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetKeyboardTransformAbsolute", + "returntype": "void", + "params": [ +{ "paramname": "eTrackingOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin"}, +{ "paramname": "pmatTrackingOriginToKeyboardTransform" ,"paramtype": "const struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetKeyboardPositionForOverlay", + "returntype": "void", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "avoidRect" ,"paramtype": "struct vr::HmdRect2_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayIntersectionMask", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pMaskPrimitives" ,"paramtype": "struct vr::VROverlayIntersectionMaskPrimitive_t *"}, +{ "paramname": "unNumMaskPrimitives" ,"paramtype": "uint32_t"}, +{ "paramname": "unPrimitiveSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayFlags", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pFlags" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "ShowMessageOverlay", + "returntype": "vr::VRMessageOverlayResponse", + "params": [ +{ "paramname": "pchText" ,"paramtype": "const char *"}, +{ "paramname": "pchCaption" ,"paramtype": "const char *"}, +{ "paramname": "pchButton0Text" ,"paramtype": "const char *"}, +{ "paramname": "pchButton1Text" ,"paramtype": "const char *"}, +{ "paramname": "pchButton2Text" ,"paramtype": "const char *"}, +{ "paramname": "pchButton3Text" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "LoadRenderModel_Async", + "returntype": "vr::EVRRenderModelError", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"}, +{ "paramname": "ppRenderModel" ,"paramtype": "struct vr::RenderModel_t **"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "FreeRenderModel", + "returntype": "void", + "params": [ +{ "paramname": "pRenderModel" ,"paramtype": "struct vr::RenderModel_t *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "LoadTexture_Async", + "returntype": "vr::EVRRenderModelError", + "params": [ +{ "paramname": "textureId" ,"paramtype": "vr::TextureID_t"}, +{ "paramname": "ppTexture" ,"paramtype": "struct vr::RenderModel_TextureMap_t **"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "FreeTexture", + "returntype": "void", + "params": [ +{ "paramname": "pTexture" ,"paramtype": "struct vr::RenderModel_TextureMap_t *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "LoadTextureD3D11_Async", + "returntype": "vr::EVRRenderModelError", + "params": [ +{ "paramname": "textureId" ,"paramtype": "vr::TextureID_t"}, +{ "paramname": "pD3D11Device" ,"paramtype": "void *"}, +{ "paramname": "ppD3D11Texture2D" ,"paramtype": "void **"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "LoadIntoTextureD3D11_Async", + "returntype": "vr::EVRRenderModelError", + "params": [ +{ "paramname": "textureId" ,"paramtype": "vr::TextureID_t"}, +{ "paramname": "pDstTexture" ,"paramtype": "void *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "FreeTextureD3D11", + "returntype": "void", + "params": [ +{ "paramname": "pD3D11Texture2D" ,"paramtype": "void *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetRenderModelName", + "returntype": "uint32_t", + "params": [ +{ "paramname": "unRenderModelIndex" ,"paramtype": "uint32_t"}, +{ "paramname": "pchRenderModelName" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unRenderModelNameLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetRenderModelCount", + "returntype": "uint32_t" +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetComponentCount", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetComponentName", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"}, +{ "paramname": "unComponentIndex" ,"paramtype": "uint32_t"}, +{ "paramname": "pchComponentName" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unComponentNameLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetComponentButtonMask", + "returntype": "uint64_t", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"}, +{ "paramname": "pchComponentName" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetComponentRenderModelName", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"}, +{ "paramname": "pchComponentName" ,"paramtype": "const char *"}, +{ "paramname": "pchComponentRenderModelName" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unComponentRenderModelNameLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetComponentState", + "returntype": "bool", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"}, +{ "paramname": "pchComponentName" ,"paramtype": "const char *"}, +{ "paramname": "pControllerState" ,"paramtype": "const vr::VRControllerState_t *"}, +{ "paramname": "pState" ,"paramtype": "const struct vr::RenderModel_ControllerMode_State_t *"}, +{ "paramname": "pComponentState" ,"paramtype": "struct vr::RenderModel_ComponentState_t *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "RenderModelHasComponent", + "returntype": "bool", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"}, +{ "paramname": "pchComponentName" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetRenderModelThumbnailURL", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"}, +{ "paramname": "pchThumbnailURL" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unThumbnailURLLen" ,"paramtype": "uint32_t"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRRenderModelError *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetRenderModelOriginalPath", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"}, +{ "paramname": "pchOriginalPath" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unOriginalPathLen" ,"paramtype": "uint32_t"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRRenderModelError *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetRenderModelErrorNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "error" ,"paramtype": "vr::EVRRenderModelError"} + ] +} +,{ + "classname": "vr::IVRNotifications", + "methodname": "CreateNotification", + "returntype": "vr::EVRNotificationError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "ulUserValue" ,"paramtype": "uint64_t"}, +{ "paramname": "type" ,"paramtype": "vr::EVRNotificationType"}, +{ "paramname": "pchText" ,"paramtype": "const char *"}, +{ "paramname": "style" ,"paramtype": "vr::EVRNotificationStyle"}, +{ "paramname": "pImage" ,"paramtype": "const struct vr::NotificationBitmap_t *"}, +{ "paramname": "pNotificationId" ,"paramtype": "vr::VRNotificationId *"} + ] +} +,{ + "classname": "vr::IVRNotifications", + "methodname": "RemoveNotification", + "returntype": "vr::EVRNotificationError", + "params": [ +{ "paramname": "notificationId" ,"paramtype": "vr::VRNotificationId"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "GetSettingsErrorNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "eError" ,"paramtype": "vr::EVRSettingsError"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "Sync", + "returntype": "bool", + "params": [ +{ "paramname": "bForce" ,"paramtype": "bool"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "SetBool", + "returntype": "void", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "bValue" ,"paramtype": "bool"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "SetInt32", + "returntype": "void", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "nValue" ,"paramtype": "int32_t"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "SetFloat", + "returntype": "void", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "flValue" ,"paramtype": "float"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "SetString", + "returntype": "void", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "pchValue" ,"paramtype": "const char *"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "GetBool", + "returntype": "bool", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "GetInt32", + "returntype": "int32_t", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "GetFloat", + "returntype": "float", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "GetString", + "returntype": "void", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "pchValue" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unValueLen" ,"paramtype": "uint32_t"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "RemoveSection", + "returntype": "void", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "RemoveKeyInSection", + "returntype": "void", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRScreenshots", + "methodname": "RequestScreenshot", + "returntype": "vr::EVRScreenshotError", + "params": [ +{ "paramname": "pOutScreenshotHandle" ,"paramtype": "vr::ScreenshotHandle_t *"}, +{ "paramname": "type" ,"paramtype": "vr::EVRScreenshotType"}, +{ "paramname": "pchPreviewFilename" ,"paramtype": "const char *"}, +{ "paramname": "pchVRFilename" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRScreenshots", + "methodname": "HookScreenshot", + "returntype": "vr::EVRScreenshotError", + "params": [ +{ "paramname": "pSupportedTypes" ,"array_count": "numTypes" ,"paramtype": "const vr::EVRScreenshotType *"}, +{ "paramname": "numTypes" ,"paramtype": "int"} + ] +} +,{ + "classname": "vr::IVRScreenshots", + "methodname": "GetScreenshotPropertyType", + "returntype": "vr::EVRScreenshotType", + "params": [ +{ "paramname": "screenshotHandle" ,"paramtype": "vr::ScreenshotHandle_t"}, +{ "paramname": "pError" ,"paramtype": "vr::EVRScreenshotError *"} + ] +} +,{ + "classname": "vr::IVRScreenshots", + "methodname": "GetScreenshotPropertyFilename", + "returntype": "uint32_t", + "params": [ +{ "paramname": "screenshotHandle" ,"paramtype": "vr::ScreenshotHandle_t"}, +{ "paramname": "filenameType" ,"paramtype": "vr::EVRScreenshotPropertyFilenames"}, +{ "paramname": "pchFilename" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "cchFilename" ,"paramtype": "uint32_t"}, +{ "paramname": "pError" ,"paramtype": "vr::EVRScreenshotError *"} + ] +} +,{ + "classname": "vr::IVRScreenshots", + "methodname": "UpdateScreenshotProgress", + "returntype": "vr::EVRScreenshotError", + "params": [ +{ "paramname": "screenshotHandle" ,"paramtype": "vr::ScreenshotHandle_t"}, +{ "paramname": "flProgress" ,"paramtype": "float"} + ] +} +,{ + "classname": "vr::IVRScreenshots", + "methodname": "TakeStereoScreenshot", + "returntype": "vr::EVRScreenshotError", + "params": [ +{ "paramname": "pOutScreenshotHandle" ,"paramtype": "vr::ScreenshotHandle_t *"}, +{ "paramname": "pchPreviewFilename" ,"paramtype": "const char *"}, +{ "paramname": "pchVRFilename" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRScreenshots", + "methodname": "SubmitScreenshot", + "returntype": "vr::EVRScreenshotError", + "params": [ +{ "paramname": "screenshotHandle" ,"paramtype": "vr::ScreenshotHandle_t"}, +{ "paramname": "type" ,"paramtype": "vr::EVRScreenshotType"}, +{ "paramname": "pchSourcePreviewFilename" ,"paramtype": "const char *"}, +{ "paramname": "pchSourceVRFilename" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRResources", + "methodname": "LoadSharedResource", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchResourceName" ,"paramtype": "const char *"}, +{ "paramname": "pchBuffer" ,"paramtype": "char *"}, +{ "paramname": "unBufferLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRResources", + "methodname": "GetResourceFullPath", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchResourceName" ,"paramtype": "const char *"}, +{ "paramname": "pchResourceTypeDirectory" ,"paramtype": "const char *"}, +{ "paramname": "pchPathBuffer" ,"paramtype": "char *"}, +{ "paramname": "unBufferLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRDriverManager", + "methodname": "GetDriverCount", + "returntype": "uint32_t" +} +,{ + "classname": "vr::IVRDriverManager", + "methodname": "GetDriverName", + "returntype": "uint32_t", + "params": [ +{ "paramname": "nDriver" ,"paramtype": "vr::DriverId_t"}, +{ "paramname": "pchValue" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unBufferSize" ,"paramtype": "uint32_t"} + ] +} +] +} \ No newline at end of file diff --git a/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Headers/openvr_capi.h b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Headers/openvr_capi.h new file mode 100644 index 000000000..a6685e579 --- /dev/null +++ b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Headers/openvr_capi.h @@ -0,0 +1,1918 @@ +//======= Copyright (c) Valve Corporation, All rights reserved. =============== +// +// Purpose: Header for flatted SteamAPI. Use this for binding to other languages. +// This file is auto-generated, do not edit it. +// +//============================================================================= + +#ifndef __OPENVR_API_FLAT_H__ +#define __OPENVR_API_FLAT_H__ +#if defined( _WIN32 ) || defined( __clang__ ) +#pragma once +#endif + +#ifdef __cplusplus +#define EXTERN_C extern "C" +#else +#define EXTERN_C +#endif + +#if defined( _WIN32 ) +#define OPENVR_FNTABLE_CALLTYPE __stdcall +#else +#define OPENVR_FNTABLE_CALLTYPE +#endif + +// OPENVR API export macro +#if defined( _WIN32 ) && !defined( _X360 ) + #if defined( OPENVR_API_EXPORTS ) + #define S_API EXTERN_C __declspec( dllexport ) + #elif defined( OPENVR_API_NODLL ) + #define S_API EXTERN_C + #else + #define S_API extern "C" __declspec( dllimport ) + #endif // OPENVR_API_EXPORTS +#elif defined( __GNUC__ ) + #if defined( OPENVR_API_EXPORTS ) + #define S_API EXTERN_C __attribute__ ((visibility("default"))) + #else + #define S_API EXTERN_C + #endif // OPENVR_API_EXPORTS +#else // !WIN32 + #if defined( OPENVR_API_EXPORTS ) + #define S_API EXTERN_C + #else + #define S_API EXTERN_C + #endif // OPENVR_API_EXPORTS +#endif + +#include + +#if defined( __WIN32 ) +typedef char bool; +#else +#include +#endif + +typedef uint64_t PropertyContainerHandle_t; +typedef uint32_t PropertyTypeTag_t; + + +// OpenVR Constants + +static const unsigned int k_nDriverNone = 4294967295; +static const unsigned int k_unMaxDriverDebugResponseSize = 32768; +static const unsigned int k_unTrackedDeviceIndex_Hmd = 0; +static const unsigned int k_unMaxTrackedDeviceCount = 16; +static const unsigned int k_unTrackedDeviceIndexOther = 4294967294; +static const unsigned int k_unTrackedDeviceIndexInvalid = 4294967295; +static const unsigned long k_ulInvalidPropertyContainer = 0; +static const unsigned int k_unInvalidPropertyTag = 0; +static const unsigned int k_unFloatPropertyTag = 1; +static const unsigned int k_unInt32PropertyTag = 2; +static const unsigned int k_unUint64PropertyTag = 3; +static const unsigned int k_unBoolPropertyTag = 4; +static const unsigned int k_unStringPropertyTag = 5; +static const unsigned int k_unHmdMatrix34PropertyTag = 20; +static const unsigned int k_unHmdMatrix44PropertyTag = 21; +static const unsigned int k_unHmdVector3PropertyTag = 22; +static const unsigned int k_unHmdVector4PropertyTag = 23; +static const unsigned int k_unHiddenAreaPropertyTag = 30; +static const unsigned int k_unOpenVRInternalReserved_Start = 1000; +static const unsigned int k_unOpenVRInternalReserved_End = 10000; +static const unsigned int k_unMaxPropertyStringSize = 32768; +static const unsigned int k_unControllerStateAxisCount = 5; +static const unsigned long k_ulOverlayHandleInvalid = 0; +static const unsigned int k_unScreenshotHandleInvalid = 0; +static const char * IVRSystem_Version = "IVRSystem_016"; +static const char * IVRExtendedDisplay_Version = "IVRExtendedDisplay_001"; +static const char * IVRTrackedCamera_Version = "IVRTrackedCamera_003"; +static const unsigned int k_unMaxApplicationKeyLength = 128; +static const char * k_pch_MimeType_HomeApp = "vr/home"; +static const char * k_pch_MimeType_GameTheater = "vr/game_theater"; +static const char * IVRApplications_Version = "IVRApplications_006"; +static const char * IVRChaperone_Version = "IVRChaperone_003"; +static const char * IVRChaperoneSetup_Version = "IVRChaperoneSetup_005"; +static const char * IVRCompositor_Version = "IVRCompositor_020"; +static const unsigned int k_unVROverlayMaxKeyLength = 128; +static const unsigned int k_unVROverlayMaxNameLength = 128; +static const unsigned int k_unMaxOverlayCount = 64; +static const unsigned int k_unMaxOverlayIntersectionMaskPrimitivesCount = 32; +static const char * IVROverlay_Version = "IVROverlay_016"; +static const char * k_pch_Controller_Component_GDC2015 = "gdc2015"; +static const char * k_pch_Controller_Component_Base = "base"; +static const char * k_pch_Controller_Component_Tip = "tip"; +static const char * k_pch_Controller_Component_HandGrip = "handgrip"; +static const char * k_pch_Controller_Component_Status = "status"; +static const char * IVRRenderModels_Version = "IVRRenderModels_005"; +static const unsigned int k_unNotificationTextMaxSize = 256; +static const char * IVRNotifications_Version = "IVRNotifications_002"; +static const unsigned int k_unMaxSettingsKeyLength = 128; +static const char * IVRSettings_Version = "IVRSettings_002"; +static const char * k_pch_SteamVR_Section = "steamvr"; +static const char * k_pch_SteamVR_RequireHmd_String = "requireHmd"; +static const char * k_pch_SteamVR_ForcedDriverKey_String = "forcedDriver"; +static const char * k_pch_SteamVR_ForcedHmdKey_String = "forcedHmd"; +static const char * k_pch_SteamVR_DisplayDebug_Bool = "displayDebug"; +static const char * k_pch_SteamVR_DebugProcessPipe_String = "debugProcessPipe"; +static const char * k_pch_SteamVR_DisplayDebugX_Int32 = "displayDebugX"; +static const char * k_pch_SteamVR_DisplayDebugY_Int32 = "displayDebugY"; +static const char * k_pch_SteamVR_SendSystemButtonToAllApps_Bool = "sendSystemButtonToAllApps"; +static const char * k_pch_SteamVR_LogLevel_Int32 = "loglevel"; +static const char * k_pch_SteamVR_IPD_Float = "ipd"; +static const char * k_pch_SteamVR_Background_String = "background"; +static const char * k_pch_SteamVR_BackgroundUseDomeProjection_Bool = "backgroundUseDomeProjection"; +static const char * k_pch_SteamVR_BackgroundCameraHeight_Float = "backgroundCameraHeight"; +static const char * k_pch_SteamVR_BackgroundDomeRadius_Float = "backgroundDomeRadius"; +static const char * k_pch_SteamVR_GridColor_String = "gridColor"; +static const char * k_pch_SteamVR_PlayAreaColor_String = "playAreaColor"; +static const char * k_pch_SteamVR_ShowStage_Bool = "showStage"; +static const char * k_pch_SteamVR_ActivateMultipleDrivers_Bool = "activateMultipleDrivers"; +static const char * k_pch_SteamVR_DirectMode_Bool = "directMode"; +static const char * k_pch_SteamVR_DirectModeEdidVid_Int32 = "directModeEdidVid"; +static const char * k_pch_SteamVR_DirectModeEdidPid_Int32 = "directModeEdidPid"; +static const char * k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers"; +static const char * k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees"; +static const char * k_pch_SteamVR_BaseStationPowerManagement_Bool = "basestationPowerManagement"; +static const char * k_pch_SteamVR_NeverKillProcesses_Bool = "neverKillProcesses"; +static const char * k_pch_SteamVR_SupersampleScale_Float = "supersampleScale"; +static const char * k_pch_SteamVR_AllowAsyncReprojection_Bool = "allowAsyncReprojection"; +static const char * k_pch_SteamVR_AllowReprojection_Bool = "allowInterleavedReprojection"; +static const char * k_pch_SteamVR_ForceReprojection_Bool = "forceReprojection"; +static const char * k_pch_SteamVR_ForceFadeOnBadTracking_Bool = "forceFadeOnBadTracking"; +static const char * k_pch_SteamVR_DefaultMirrorView_Int32 = "defaultMirrorView"; +static const char * k_pch_SteamVR_ShowMirrorView_Bool = "showMirrorView"; +static const char * k_pch_SteamVR_MirrorViewGeometry_String = "mirrorViewGeometry"; +static const char * k_pch_SteamVR_StartMonitorFromAppLaunch = "startMonitorFromAppLaunch"; +static const char * k_pch_SteamVR_StartCompositorFromAppLaunch_Bool = "startCompositorFromAppLaunch"; +static const char * k_pch_SteamVR_StartDashboardFromAppLaunch_Bool = "startDashboardFromAppLaunch"; +static const char * k_pch_SteamVR_StartOverlayAppsFromDashboard_Bool = "startOverlayAppsFromDashboard"; +static const char * k_pch_SteamVR_EnableHomeApp = "enableHomeApp"; +static const char * k_pch_SteamVR_CycleBackgroundImageTimeSec_Int32 = "CycleBackgroundImageTimeSec"; +static const char * k_pch_SteamVR_RetailDemo_Bool = "retailDemo"; +static const char * k_pch_SteamVR_IpdOffset_Float = "ipdOffset"; +static const char * k_pch_SteamVR_AllowSupersampleFiltering_Bool = "allowSupersampleFiltering"; +static const char * k_pch_Lighthouse_Section = "driver_lighthouse"; +static const char * k_pch_Lighthouse_DisableIMU_Bool = "disableimu"; +static const char * k_pch_Lighthouse_UseDisambiguation_String = "usedisambiguation"; +static const char * k_pch_Lighthouse_DisambiguationDebug_Int32 = "disambiguationdebug"; +static const char * k_pch_Lighthouse_PrimaryBasestation_Int32 = "primarybasestation"; +static const char * k_pch_Lighthouse_DBHistory_Bool = "dbhistory"; +static const char * k_pch_Null_Section = "driver_null"; +static const char * k_pch_Null_SerialNumber_String = "serialNumber"; +static const char * k_pch_Null_ModelNumber_String = "modelNumber"; +static const char * k_pch_Null_WindowX_Int32 = "windowX"; +static const char * k_pch_Null_WindowY_Int32 = "windowY"; +static const char * k_pch_Null_WindowWidth_Int32 = "windowWidth"; +static const char * k_pch_Null_WindowHeight_Int32 = "windowHeight"; +static const char * k_pch_Null_RenderWidth_Int32 = "renderWidth"; +static const char * k_pch_Null_RenderHeight_Int32 = "renderHeight"; +static const char * k_pch_Null_SecondsFromVsyncToPhotons_Float = "secondsFromVsyncToPhotons"; +static const char * k_pch_Null_DisplayFrequency_Float = "displayFrequency"; +static const char * k_pch_UserInterface_Section = "userinterface"; +static const char * k_pch_UserInterface_StatusAlwaysOnTop_Bool = "StatusAlwaysOnTop"; +static const char * k_pch_UserInterface_MinimizeToTray_Bool = "MinimizeToTray"; +static const char * k_pch_UserInterface_Screenshots_Bool = "screenshots"; +static const char * k_pch_UserInterface_ScreenshotType_Int = "screenshotType"; +static const char * k_pch_Notifications_Section = "notifications"; +static const char * k_pch_Notifications_DoNotDisturb_Bool = "DoNotDisturb"; +static const char * k_pch_Keyboard_Section = "keyboard"; +static const char * k_pch_Keyboard_TutorialCompletions = "TutorialCompletions"; +static const char * k_pch_Keyboard_ScaleX = "ScaleX"; +static const char * k_pch_Keyboard_ScaleY = "ScaleY"; +static const char * k_pch_Keyboard_OffsetLeftX = "OffsetLeftX"; +static const char * k_pch_Keyboard_OffsetRightX = "OffsetRightX"; +static const char * k_pch_Keyboard_OffsetY = "OffsetY"; +static const char * k_pch_Keyboard_Smoothing = "Smoothing"; +static const char * k_pch_Perf_Section = "perfcheck"; +static const char * k_pch_Perf_HeuristicActive_Bool = "heuristicActive"; +static const char * k_pch_Perf_NotifyInHMD_Bool = "warnInHMD"; +static const char * k_pch_Perf_NotifyOnlyOnce_Bool = "warnOnlyOnce"; +static const char * k_pch_Perf_AllowTimingStore_Bool = "allowTimingStore"; +static const char * k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit"; +static const char * k_pch_Perf_TestData_Float = "perfTestData"; +static const char * k_pch_Perf_LinuxGPUProfiling_Bool = "linuxGPUProfiling"; +static const char * k_pch_CollisionBounds_Section = "collisionBounds"; +static const char * k_pch_CollisionBounds_Style_Int32 = "CollisionBoundsStyle"; +static const char * k_pch_CollisionBounds_GroundPerimeterOn_Bool = "CollisionBoundsGroundPerimeterOn"; +static const char * k_pch_CollisionBounds_CenterMarkerOn_Bool = "CollisionBoundsCenterMarkerOn"; +static const char * k_pch_CollisionBounds_PlaySpaceOn_Bool = "CollisionBoundsPlaySpaceOn"; +static const char * k_pch_CollisionBounds_FadeDistance_Float = "CollisionBoundsFadeDistance"; +static const char * k_pch_CollisionBounds_ColorGammaR_Int32 = "CollisionBoundsColorGammaR"; +static const char * k_pch_CollisionBounds_ColorGammaG_Int32 = "CollisionBoundsColorGammaG"; +static const char * k_pch_CollisionBounds_ColorGammaB_Int32 = "CollisionBoundsColorGammaB"; +static const char * k_pch_CollisionBounds_ColorGammaA_Int32 = "CollisionBoundsColorGammaA"; +static const char * k_pch_Camera_Section = "camera"; +static const char * k_pch_Camera_EnableCamera_Bool = "enableCamera"; +static const char * k_pch_Camera_EnableCameraInDashboard_Bool = "enableCameraInDashboard"; +static const char * k_pch_Camera_EnableCameraForCollisionBounds_Bool = "enableCameraForCollisionBounds"; +static const char * k_pch_Camera_EnableCameraForRoomView_Bool = "enableCameraForRoomView"; +static const char * k_pch_Camera_BoundsColorGammaR_Int32 = "cameraBoundsColorGammaR"; +static const char * k_pch_Camera_BoundsColorGammaG_Int32 = "cameraBoundsColorGammaG"; +static const char * k_pch_Camera_BoundsColorGammaB_Int32 = "cameraBoundsColorGammaB"; +static const char * k_pch_Camera_BoundsColorGammaA_Int32 = "cameraBoundsColorGammaA"; +static const char * k_pch_Camera_BoundsStrength_Int32 = "cameraBoundsStrength"; +static const char * k_pch_audio_Section = "audio"; +static const char * k_pch_audio_OnPlaybackDevice_String = "onPlaybackDevice"; +static const char * k_pch_audio_OnRecordDevice_String = "onRecordDevice"; +static const char * k_pch_audio_OnPlaybackMirrorDevice_String = "onPlaybackMirrorDevice"; +static const char * k_pch_audio_OffPlaybackDevice_String = "offPlaybackDevice"; +static const char * k_pch_audio_OffRecordDevice_String = "offRecordDevice"; +static const char * k_pch_audio_VIVEHDMIGain = "viveHDMIGain"; +static const char * k_pch_Power_Section = "power"; +static const char * k_pch_Power_PowerOffOnExit_Bool = "powerOffOnExit"; +static const char * k_pch_Power_TurnOffScreensTimeout_Float = "turnOffScreensTimeout"; +static const char * k_pch_Power_TurnOffControllersTimeout_Float = "turnOffControllersTimeout"; +static const char * k_pch_Power_ReturnToWatchdogTimeout_Float = "returnToWatchdogTimeout"; +static const char * k_pch_Power_AutoLaunchSteamVROnButtonPress = "autoLaunchSteamVROnButtonPress"; +static const char * k_pch_Dashboard_Section = "dashboard"; +static const char * k_pch_Dashboard_EnableDashboard_Bool = "enableDashboard"; +static const char * k_pch_Dashboard_ArcadeMode_Bool = "arcadeMode"; +static const char * k_pch_modelskin_Section = "modelskins"; +static const char * k_pch_Driver_Enable_Bool = "enable"; +static const char * IVRScreenshots_Version = "IVRScreenshots_001"; +static const char * IVRResources_Version = "IVRResources_001"; +static const char * IVRDriverManager_Version = "IVRDriverManager_001"; + +// OpenVR Enums + +typedef enum EVREye +{ + EVREye_Eye_Left = 0, + EVREye_Eye_Right = 1, +} EVREye; + +typedef enum ETextureType +{ + ETextureType_TextureType_DirectX = 0, + ETextureType_TextureType_OpenGL = 1, + ETextureType_TextureType_Vulkan = 2, + ETextureType_TextureType_IOSurface = 3, + ETextureType_TextureType_DirectX12 = 4, +} ETextureType; + +typedef enum EColorSpace +{ + EColorSpace_ColorSpace_Auto = 0, + EColorSpace_ColorSpace_Gamma = 1, + EColorSpace_ColorSpace_Linear = 2, +} EColorSpace; + +typedef enum ETrackingResult +{ + ETrackingResult_TrackingResult_Uninitialized = 1, + ETrackingResult_TrackingResult_Calibrating_InProgress = 100, + ETrackingResult_TrackingResult_Calibrating_OutOfRange = 101, + ETrackingResult_TrackingResult_Running_OK = 200, + ETrackingResult_TrackingResult_Running_OutOfRange = 201, +} ETrackingResult; + +typedef enum ETrackedDeviceClass +{ + ETrackedDeviceClass_TrackedDeviceClass_Invalid = 0, + ETrackedDeviceClass_TrackedDeviceClass_HMD = 1, + ETrackedDeviceClass_TrackedDeviceClass_Controller = 2, + ETrackedDeviceClass_TrackedDeviceClass_GenericTracker = 3, + ETrackedDeviceClass_TrackedDeviceClass_TrackingReference = 4, + ETrackedDeviceClass_TrackedDeviceClass_DisplayRedirect = 5, +} ETrackedDeviceClass; + +typedef enum ETrackedControllerRole +{ + ETrackedControllerRole_TrackedControllerRole_Invalid = 0, + ETrackedControllerRole_TrackedControllerRole_LeftHand = 1, + ETrackedControllerRole_TrackedControllerRole_RightHand = 2, +} ETrackedControllerRole; + +typedef enum ETrackingUniverseOrigin +{ + ETrackingUniverseOrigin_TrackingUniverseSeated = 0, + ETrackingUniverseOrigin_TrackingUniverseStanding = 1, + ETrackingUniverseOrigin_TrackingUniverseRawAndUncalibrated = 2, +} ETrackingUniverseOrigin; + +typedef enum ETrackedDeviceProperty +{ + ETrackedDeviceProperty_Prop_Invalid = 0, + ETrackedDeviceProperty_Prop_TrackingSystemName_String = 1000, + ETrackedDeviceProperty_Prop_ModelNumber_String = 1001, + ETrackedDeviceProperty_Prop_SerialNumber_String = 1002, + ETrackedDeviceProperty_Prop_RenderModelName_String = 1003, + ETrackedDeviceProperty_Prop_WillDriftInYaw_Bool = 1004, + ETrackedDeviceProperty_Prop_ManufacturerName_String = 1005, + ETrackedDeviceProperty_Prop_TrackingFirmwareVersion_String = 1006, + ETrackedDeviceProperty_Prop_HardwareRevision_String = 1007, + ETrackedDeviceProperty_Prop_AllWirelessDongleDescriptions_String = 1008, + ETrackedDeviceProperty_Prop_ConnectedWirelessDongle_String = 1009, + ETrackedDeviceProperty_Prop_DeviceIsWireless_Bool = 1010, + ETrackedDeviceProperty_Prop_DeviceIsCharging_Bool = 1011, + ETrackedDeviceProperty_Prop_DeviceBatteryPercentage_Float = 1012, + ETrackedDeviceProperty_Prop_StatusDisplayTransform_Matrix34 = 1013, + ETrackedDeviceProperty_Prop_Firmware_UpdateAvailable_Bool = 1014, + ETrackedDeviceProperty_Prop_Firmware_ManualUpdate_Bool = 1015, + ETrackedDeviceProperty_Prop_Firmware_ManualUpdateURL_String = 1016, + ETrackedDeviceProperty_Prop_HardwareRevision_Uint64 = 1017, + ETrackedDeviceProperty_Prop_FirmwareVersion_Uint64 = 1018, + ETrackedDeviceProperty_Prop_FPGAVersion_Uint64 = 1019, + ETrackedDeviceProperty_Prop_VRCVersion_Uint64 = 1020, + ETrackedDeviceProperty_Prop_RadioVersion_Uint64 = 1021, + ETrackedDeviceProperty_Prop_DongleVersion_Uint64 = 1022, + ETrackedDeviceProperty_Prop_BlockServerShutdown_Bool = 1023, + ETrackedDeviceProperty_Prop_CanUnifyCoordinateSystemWithHmd_Bool = 1024, + ETrackedDeviceProperty_Prop_ContainsProximitySensor_Bool = 1025, + ETrackedDeviceProperty_Prop_DeviceProvidesBatteryStatus_Bool = 1026, + ETrackedDeviceProperty_Prop_DeviceCanPowerOff_Bool = 1027, + ETrackedDeviceProperty_Prop_Firmware_ProgrammingTarget_String = 1028, + ETrackedDeviceProperty_Prop_DeviceClass_Int32 = 1029, + ETrackedDeviceProperty_Prop_HasCamera_Bool = 1030, + ETrackedDeviceProperty_Prop_DriverVersion_String = 1031, + ETrackedDeviceProperty_Prop_Firmware_ForceUpdateRequired_Bool = 1032, + ETrackedDeviceProperty_Prop_ViveSystemButtonFixRequired_Bool = 1033, + ETrackedDeviceProperty_Prop_ParentDriver_Uint64 = 1034, + ETrackedDeviceProperty_Prop_ResourceRoot_String = 1035, + ETrackedDeviceProperty_Prop_ReportsTimeSinceVSync_Bool = 2000, + ETrackedDeviceProperty_Prop_SecondsFromVsyncToPhotons_Float = 2001, + ETrackedDeviceProperty_Prop_DisplayFrequency_Float = 2002, + ETrackedDeviceProperty_Prop_UserIpdMeters_Float = 2003, + ETrackedDeviceProperty_Prop_CurrentUniverseId_Uint64 = 2004, + ETrackedDeviceProperty_Prop_PreviousUniverseId_Uint64 = 2005, + ETrackedDeviceProperty_Prop_DisplayFirmwareVersion_Uint64 = 2006, + ETrackedDeviceProperty_Prop_IsOnDesktop_Bool = 2007, + ETrackedDeviceProperty_Prop_DisplayMCType_Int32 = 2008, + ETrackedDeviceProperty_Prop_DisplayMCOffset_Float = 2009, + ETrackedDeviceProperty_Prop_DisplayMCScale_Float = 2010, + ETrackedDeviceProperty_Prop_EdidVendorID_Int32 = 2011, + ETrackedDeviceProperty_Prop_DisplayMCImageLeft_String = 2012, + ETrackedDeviceProperty_Prop_DisplayMCImageRight_String = 2013, + ETrackedDeviceProperty_Prop_DisplayGCBlackClamp_Float = 2014, + ETrackedDeviceProperty_Prop_EdidProductID_Int32 = 2015, + ETrackedDeviceProperty_Prop_CameraToHeadTransform_Matrix34 = 2016, + ETrackedDeviceProperty_Prop_DisplayGCType_Int32 = 2017, + ETrackedDeviceProperty_Prop_DisplayGCOffset_Float = 2018, + ETrackedDeviceProperty_Prop_DisplayGCScale_Float = 2019, + ETrackedDeviceProperty_Prop_DisplayGCPrescale_Float = 2020, + ETrackedDeviceProperty_Prop_DisplayGCImage_String = 2021, + ETrackedDeviceProperty_Prop_LensCenterLeftU_Float = 2022, + ETrackedDeviceProperty_Prop_LensCenterLeftV_Float = 2023, + ETrackedDeviceProperty_Prop_LensCenterRightU_Float = 2024, + ETrackedDeviceProperty_Prop_LensCenterRightV_Float = 2025, + ETrackedDeviceProperty_Prop_UserHeadToEyeDepthMeters_Float = 2026, + ETrackedDeviceProperty_Prop_CameraFirmwareVersion_Uint64 = 2027, + ETrackedDeviceProperty_Prop_CameraFirmwareDescription_String = 2028, + ETrackedDeviceProperty_Prop_DisplayFPGAVersion_Uint64 = 2029, + ETrackedDeviceProperty_Prop_DisplayBootloaderVersion_Uint64 = 2030, + ETrackedDeviceProperty_Prop_DisplayHardwareVersion_Uint64 = 2031, + ETrackedDeviceProperty_Prop_AudioFirmwareVersion_Uint64 = 2032, + ETrackedDeviceProperty_Prop_CameraCompatibilityMode_Int32 = 2033, + ETrackedDeviceProperty_Prop_ScreenshotHorizontalFieldOfViewDegrees_Float = 2034, + ETrackedDeviceProperty_Prop_ScreenshotVerticalFieldOfViewDegrees_Float = 2035, + ETrackedDeviceProperty_Prop_DisplaySuppressed_Bool = 2036, + ETrackedDeviceProperty_Prop_DisplayAllowNightMode_Bool = 2037, + ETrackedDeviceProperty_Prop_DisplayMCImageWidth_Int32 = 2038, + ETrackedDeviceProperty_Prop_DisplayMCImageHeight_Int32 = 2039, + ETrackedDeviceProperty_Prop_DisplayMCImageNumChannels_Int32 = 2040, + ETrackedDeviceProperty_Prop_DisplayMCImageData_Binary = 2041, + ETrackedDeviceProperty_Prop_SecondsFromPhotonsToVblank_Float = 2042, + ETrackedDeviceProperty_Prop_DriverDirectModeSendsVsyncEvents_Bool = 2043, + ETrackedDeviceProperty_Prop_DisplayDebugMode_Bool = 2044, + ETrackedDeviceProperty_Prop_GraphicsAdapterLuid_Uint64 = 2045, + ETrackedDeviceProperty_Prop_AttachedDeviceId_String = 3000, + ETrackedDeviceProperty_Prop_SupportedButtons_Uint64 = 3001, + ETrackedDeviceProperty_Prop_Axis0Type_Int32 = 3002, + ETrackedDeviceProperty_Prop_Axis1Type_Int32 = 3003, + ETrackedDeviceProperty_Prop_Axis2Type_Int32 = 3004, + ETrackedDeviceProperty_Prop_Axis3Type_Int32 = 3005, + ETrackedDeviceProperty_Prop_Axis4Type_Int32 = 3006, + ETrackedDeviceProperty_Prop_ControllerRoleHint_Int32 = 3007, + ETrackedDeviceProperty_Prop_FieldOfViewLeftDegrees_Float = 4000, + ETrackedDeviceProperty_Prop_FieldOfViewRightDegrees_Float = 4001, + ETrackedDeviceProperty_Prop_FieldOfViewTopDegrees_Float = 4002, + ETrackedDeviceProperty_Prop_FieldOfViewBottomDegrees_Float = 4003, + ETrackedDeviceProperty_Prop_TrackingRangeMinimumMeters_Float = 4004, + ETrackedDeviceProperty_Prop_TrackingRangeMaximumMeters_Float = 4005, + ETrackedDeviceProperty_Prop_ModeLabel_String = 4006, + ETrackedDeviceProperty_Prop_IconPathName_String = 5000, + ETrackedDeviceProperty_Prop_NamedIconPathDeviceOff_String = 5001, + ETrackedDeviceProperty_Prop_NamedIconPathDeviceSearching_String = 5002, + ETrackedDeviceProperty_Prop_NamedIconPathDeviceSearchingAlert_String = 5003, + ETrackedDeviceProperty_Prop_NamedIconPathDeviceReady_String = 5004, + ETrackedDeviceProperty_Prop_NamedIconPathDeviceReadyAlert_String = 5005, + ETrackedDeviceProperty_Prop_NamedIconPathDeviceNotReady_String = 5006, + ETrackedDeviceProperty_Prop_NamedIconPathDeviceStandby_String = 5007, + ETrackedDeviceProperty_Prop_NamedIconPathDeviceAlertLow_String = 5008, + ETrackedDeviceProperty_Prop_DisplayHiddenArea_Binary_Start = 5100, + ETrackedDeviceProperty_Prop_DisplayHiddenArea_Binary_End = 5150, + ETrackedDeviceProperty_Prop_UserConfigPath_String = 6000, + ETrackedDeviceProperty_Prop_InstallPath_String = 6001, + ETrackedDeviceProperty_Prop_HasDisplayComponent_Bool = 6002, + ETrackedDeviceProperty_Prop_HasControllerComponent_Bool = 6003, + ETrackedDeviceProperty_Prop_HasCameraComponent_Bool = 6004, + ETrackedDeviceProperty_Prop_HasDriverDirectModeComponent_Bool = 6005, + ETrackedDeviceProperty_Prop_HasVirtualDisplayComponent_Bool = 6006, + ETrackedDeviceProperty_Prop_VendorSpecific_Reserved_Start = 10000, + ETrackedDeviceProperty_Prop_VendorSpecific_Reserved_End = 10999, +} ETrackedDeviceProperty; + +typedef enum ETrackedPropertyError +{ + ETrackedPropertyError_TrackedProp_Success = 0, + ETrackedPropertyError_TrackedProp_WrongDataType = 1, + ETrackedPropertyError_TrackedProp_WrongDeviceClass = 2, + ETrackedPropertyError_TrackedProp_BufferTooSmall = 3, + ETrackedPropertyError_TrackedProp_UnknownProperty = 4, + ETrackedPropertyError_TrackedProp_InvalidDevice = 5, + ETrackedPropertyError_TrackedProp_CouldNotContactServer = 6, + ETrackedPropertyError_TrackedProp_ValueNotProvidedByDevice = 7, + ETrackedPropertyError_TrackedProp_StringExceedsMaximumLength = 8, + ETrackedPropertyError_TrackedProp_NotYetAvailable = 9, + ETrackedPropertyError_TrackedProp_PermissionDenied = 10, + ETrackedPropertyError_TrackedProp_InvalidOperation = 11, +} ETrackedPropertyError; + +typedef enum EVRSubmitFlags +{ + EVRSubmitFlags_Submit_Default = 0, + EVRSubmitFlags_Submit_LensDistortionAlreadyApplied = 1, + EVRSubmitFlags_Submit_GlRenderBuffer = 2, + EVRSubmitFlags_Submit_Reserved = 4, +} EVRSubmitFlags; + +typedef enum EVRState +{ + EVRState_VRState_Undefined = -1, + EVRState_VRState_Off = 0, + EVRState_VRState_Searching = 1, + EVRState_VRState_Searching_Alert = 2, + EVRState_VRState_Ready = 3, + EVRState_VRState_Ready_Alert = 4, + EVRState_VRState_NotReady = 5, + EVRState_VRState_Standby = 6, + EVRState_VRState_Ready_Alert_Low = 7, +} EVRState; + +typedef enum EVREventType +{ + EVREventType_VREvent_None = 0, + EVREventType_VREvent_TrackedDeviceActivated = 100, + EVREventType_VREvent_TrackedDeviceDeactivated = 101, + EVREventType_VREvent_TrackedDeviceUpdated = 102, + EVREventType_VREvent_TrackedDeviceUserInteractionStarted = 103, + EVREventType_VREvent_TrackedDeviceUserInteractionEnded = 104, + EVREventType_VREvent_IpdChanged = 105, + EVREventType_VREvent_EnterStandbyMode = 106, + EVREventType_VREvent_LeaveStandbyMode = 107, + EVREventType_VREvent_TrackedDeviceRoleChanged = 108, + EVREventType_VREvent_WatchdogWakeUpRequested = 109, + EVREventType_VREvent_LensDistortionChanged = 110, + EVREventType_VREvent_PropertyChanged = 111, + EVREventType_VREvent_ButtonPress = 200, + EVREventType_VREvent_ButtonUnpress = 201, + EVREventType_VREvent_ButtonTouch = 202, + EVREventType_VREvent_ButtonUntouch = 203, + EVREventType_VREvent_MouseMove = 300, + EVREventType_VREvent_MouseButtonDown = 301, + EVREventType_VREvent_MouseButtonUp = 302, + EVREventType_VREvent_FocusEnter = 303, + EVREventType_VREvent_FocusLeave = 304, + EVREventType_VREvent_Scroll = 305, + EVREventType_VREvent_TouchPadMove = 306, + EVREventType_VREvent_OverlayFocusChanged = 307, + EVREventType_VREvent_InputFocusCaptured = 400, + EVREventType_VREvent_InputFocusReleased = 401, + EVREventType_VREvent_SceneFocusLost = 402, + EVREventType_VREvent_SceneFocusGained = 403, + EVREventType_VREvent_SceneApplicationChanged = 404, + EVREventType_VREvent_SceneFocusChanged = 405, + EVREventType_VREvent_InputFocusChanged = 406, + EVREventType_VREvent_SceneApplicationSecondaryRenderingStarted = 407, + EVREventType_VREvent_HideRenderModels = 410, + EVREventType_VREvent_ShowRenderModels = 411, + EVREventType_VREvent_OverlayShown = 500, + EVREventType_VREvent_OverlayHidden = 501, + EVREventType_VREvent_DashboardActivated = 502, + EVREventType_VREvent_DashboardDeactivated = 503, + EVREventType_VREvent_DashboardThumbSelected = 504, + EVREventType_VREvent_DashboardRequested = 505, + EVREventType_VREvent_ResetDashboard = 506, + EVREventType_VREvent_RenderToast = 507, + EVREventType_VREvent_ImageLoaded = 508, + EVREventType_VREvent_ShowKeyboard = 509, + EVREventType_VREvent_HideKeyboard = 510, + EVREventType_VREvent_OverlayGamepadFocusGained = 511, + EVREventType_VREvent_OverlayGamepadFocusLost = 512, + EVREventType_VREvent_OverlaySharedTextureChanged = 513, + EVREventType_VREvent_DashboardGuideButtonDown = 514, + EVREventType_VREvent_DashboardGuideButtonUp = 515, + EVREventType_VREvent_ScreenshotTriggered = 516, + EVREventType_VREvent_ImageFailed = 517, + EVREventType_VREvent_DashboardOverlayCreated = 518, + EVREventType_VREvent_RequestScreenshot = 520, + EVREventType_VREvent_ScreenshotTaken = 521, + EVREventType_VREvent_ScreenshotFailed = 522, + EVREventType_VREvent_SubmitScreenshotToDashboard = 523, + EVREventType_VREvent_ScreenshotProgressToDashboard = 524, + EVREventType_VREvent_PrimaryDashboardDeviceChanged = 525, + EVREventType_VREvent_Notification_Shown = 600, + EVREventType_VREvent_Notification_Hidden = 601, + EVREventType_VREvent_Notification_BeginInteraction = 602, + EVREventType_VREvent_Notification_Destroyed = 603, + EVREventType_VREvent_Quit = 700, + EVREventType_VREvent_ProcessQuit = 701, + EVREventType_VREvent_QuitAborted_UserPrompt = 702, + EVREventType_VREvent_QuitAcknowledged = 703, + EVREventType_VREvent_DriverRequestedQuit = 704, + EVREventType_VREvent_ChaperoneDataHasChanged = 800, + EVREventType_VREvent_ChaperoneUniverseHasChanged = 801, + EVREventType_VREvent_ChaperoneTempDataHasChanged = 802, + EVREventType_VREvent_ChaperoneSettingsHaveChanged = 803, + EVREventType_VREvent_SeatedZeroPoseReset = 804, + EVREventType_VREvent_AudioSettingsHaveChanged = 820, + EVREventType_VREvent_BackgroundSettingHasChanged = 850, + EVREventType_VREvent_CameraSettingsHaveChanged = 851, + EVREventType_VREvent_ReprojectionSettingHasChanged = 852, + EVREventType_VREvent_ModelSkinSettingsHaveChanged = 853, + EVREventType_VREvent_EnvironmentSettingsHaveChanged = 854, + EVREventType_VREvent_PowerSettingsHaveChanged = 855, + EVREventType_VREvent_EnableHomeAppSettingsHaveChanged = 856, + EVREventType_VREvent_StatusUpdate = 900, + EVREventType_VREvent_MCImageUpdated = 1000, + EVREventType_VREvent_FirmwareUpdateStarted = 1100, + EVREventType_VREvent_FirmwareUpdateFinished = 1101, + EVREventType_VREvent_KeyboardClosed = 1200, + EVREventType_VREvent_KeyboardCharInput = 1201, + EVREventType_VREvent_KeyboardDone = 1202, + EVREventType_VREvent_ApplicationTransitionStarted = 1300, + EVREventType_VREvent_ApplicationTransitionAborted = 1301, + EVREventType_VREvent_ApplicationTransitionNewAppStarted = 1302, + EVREventType_VREvent_ApplicationListUpdated = 1303, + EVREventType_VREvent_ApplicationMimeTypeLoad = 1304, + EVREventType_VREvent_ApplicationTransitionNewAppLaunchComplete = 1305, + EVREventType_VREvent_ProcessConnected = 1306, + EVREventType_VREvent_ProcessDisconnected = 1307, + EVREventType_VREvent_Compositor_MirrorWindowShown = 1400, + EVREventType_VREvent_Compositor_MirrorWindowHidden = 1401, + EVREventType_VREvent_Compositor_ChaperoneBoundsShown = 1410, + EVREventType_VREvent_Compositor_ChaperoneBoundsHidden = 1411, + EVREventType_VREvent_TrackedCamera_StartVideoStream = 1500, + EVREventType_VREvent_TrackedCamera_StopVideoStream = 1501, + EVREventType_VREvent_TrackedCamera_PauseVideoStream = 1502, + EVREventType_VREvent_TrackedCamera_ResumeVideoStream = 1503, + EVREventType_VREvent_TrackedCamera_EditingSurface = 1550, + EVREventType_VREvent_PerformanceTest_EnableCapture = 1600, + EVREventType_VREvent_PerformanceTest_DisableCapture = 1601, + EVREventType_VREvent_PerformanceTest_FidelityLevel = 1602, + EVREventType_VREvent_MessageOverlay_Closed = 1650, + EVREventType_VREvent_VendorSpecific_Reserved_Start = 10000, + EVREventType_VREvent_VendorSpecific_Reserved_End = 19999, +} EVREventType; + +typedef enum EDeviceActivityLevel +{ + EDeviceActivityLevel_k_EDeviceActivityLevel_Unknown = -1, + EDeviceActivityLevel_k_EDeviceActivityLevel_Idle = 0, + EDeviceActivityLevel_k_EDeviceActivityLevel_UserInteraction = 1, + EDeviceActivityLevel_k_EDeviceActivityLevel_UserInteraction_Timeout = 2, + EDeviceActivityLevel_k_EDeviceActivityLevel_Standby = 3, +} EDeviceActivityLevel; + +typedef enum EVRButtonId +{ + EVRButtonId_k_EButton_System = 0, + EVRButtonId_k_EButton_ApplicationMenu = 1, + EVRButtonId_k_EButton_Grip = 2, + EVRButtonId_k_EButton_DPad_Left = 3, + EVRButtonId_k_EButton_DPad_Up = 4, + EVRButtonId_k_EButton_DPad_Right = 5, + EVRButtonId_k_EButton_DPad_Down = 6, + EVRButtonId_k_EButton_A = 7, + EVRButtonId_k_EButton_ProximitySensor = 31, + EVRButtonId_k_EButton_Axis0 = 32, + EVRButtonId_k_EButton_Axis1 = 33, + EVRButtonId_k_EButton_Axis2 = 34, + EVRButtonId_k_EButton_Axis3 = 35, + EVRButtonId_k_EButton_Axis4 = 36, + EVRButtonId_k_EButton_SteamVR_Touchpad = 32, + EVRButtonId_k_EButton_SteamVR_Trigger = 33, + EVRButtonId_k_EButton_Dashboard_Back = 2, + EVRButtonId_k_EButton_Max = 64, +} EVRButtonId; + +typedef enum EVRMouseButton +{ + EVRMouseButton_VRMouseButton_Left = 1, + EVRMouseButton_VRMouseButton_Right = 2, + EVRMouseButton_VRMouseButton_Middle = 4, +} EVRMouseButton; + +typedef enum EHiddenAreaMeshType +{ + EHiddenAreaMeshType_k_eHiddenAreaMesh_Standard = 0, + EHiddenAreaMeshType_k_eHiddenAreaMesh_Inverse = 1, + EHiddenAreaMeshType_k_eHiddenAreaMesh_LineLoop = 2, + EHiddenAreaMeshType_k_eHiddenAreaMesh_Max = 3, +} EHiddenAreaMeshType; + +typedef enum EVRControllerAxisType +{ + EVRControllerAxisType_k_eControllerAxis_None = 0, + EVRControllerAxisType_k_eControllerAxis_TrackPad = 1, + EVRControllerAxisType_k_eControllerAxis_Joystick = 2, + EVRControllerAxisType_k_eControllerAxis_Trigger = 3, +} EVRControllerAxisType; + +typedef enum EVRControllerEventOutputType +{ + EVRControllerEventOutputType_ControllerEventOutput_OSEvents = 0, + EVRControllerEventOutputType_ControllerEventOutput_VREvents = 1, +} EVRControllerEventOutputType; + +typedef enum ECollisionBoundsStyle +{ + ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_BEGINNER = 0, + ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_INTERMEDIATE = 1, + ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_SQUARES = 2, + ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_ADVANCED = 3, + ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_NONE = 4, + ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_COUNT = 5, +} ECollisionBoundsStyle; + +typedef enum EVROverlayError +{ + EVROverlayError_VROverlayError_None = 0, + EVROverlayError_VROverlayError_UnknownOverlay = 10, + EVROverlayError_VROverlayError_InvalidHandle = 11, + EVROverlayError_VROverlayError_PermissionDenied = 12, + EVROverlayError_VROverlayError_OverlayLimitExceeded = 13, + EVROverlayError_VROverlayError_WrongVisibilityType = 14, + EVROverlayError_VROverlayError_KeyTooLong = 15, + EVROverlayError_VROverlayError_NameTooLong = 16, + EVROverlayError_VROverlayError_KeyInUse = 17, + EVROverlayError_VROverlayError_WrongTransformType = 18, + EVROverlayError_VROverlayError_InvalidTrackedDevice = 19, + EVROverlayError_VROverlayError_InvalidParameter = 20, + EVROverlayError_VROverlayError_ThumbnailCantBeDestroyed = 21, + EVROverlayError_VROverlayError_ArrayTooSmall = 22, + EVROverlayError_VROverlayError_RequestFailed = 23, + EVROverlayError_VROverlayError_InvalidTexture = 24, + EVROverlayError_VROverlayError_UnableToLoadFile = 25, + EVROverlayError_VROverlayError_KeyboardAlreadyInUse = 26, + EVROverlayError_VROverlayError_NoNeighbor = 27, + EVROverlayError_VROverlayError_TooManyMaskPrimitives = 29, + EVROverlayError_VROverlayError_BadMaskPrimitive = 30, +} EVROverlayError; + +typedef enum EVRApplicationType +{ + EVRApplicationType_VRApplication_Other = 0, + EVRApplicationType_VRApplication_Scene = 1, + EVRApplicationType_VRApplication_Overlay = 2, + EVRApplicationType_VRApplication_Background = 3, + EVRApplicationType_VRApplication_Utility = 4, + EVRApplicationType_VRApplication_VRMonitor = 5, + EVRApplicationType_VRApplication_SteamWatchdog = 6, + EVRApplicationType_VRApplication_Bootstrapper = 7, + EVRApplicationType_VRApplication_Max = 8, +} EVRApplicationType; + +typedef enum EVRFirmwareError +{ + EVRFirmwareError_VRFirmwareError_None = 0, + EVRFirmwareError_VRFirmwareError_Success = 1, + EVRFirmwareError_VRFirmwareError_Fail = 2, +} EVRFirmwareError; + +typedef enum EVRNotificationError +{ + EVRNotificationError_VRNotificationError_OK = 0, + EVRNotificationError_VRNotificationError_InvalidNotificationId = 100, + EVRNotificationError_VRNotificationError_NotificationQueueFull = 101, + EVRNotificationError_VRNotificationError_InvalidOverlayHandle = 102, + EVRNotificationError_VRNotificationError_SystemWithUserValueAlreadyExists = 103, +} EVRNotificationError; + +typedef enum EVRInitError +{ + EVRInitError_VRInitError_None = 0, + EVRInitError_VRInitError_Unknown = 1, + EVRInitError_VRInitError_Init_InstallationNotFound = 100, + EVRInitError_VRInitError_Init_InstallationCorrupt = 101, + EVRInitError_VRInitError_Init_VRClientDLLNotFound = 102, + EVRInitError_VRInitError_Init_FileNotFound = 103, + EVRInitError_VRInitError_Init_FactoryNotFound = 104, + EVRInitError_VRInitError_Init_InterfaceNotFound = 105, + EVRInitError_VRInitError_Init_InvalidInterface = 106, + EVRInitError_VRInitError_Init_UserConfigDirectoryInvalid = 107, + EVRInitError_VRInitError_Init_HmdNotFound = 108, + EVRInitError_VRInitError_Init_NotInitialized = 109, + EVRInitError_VRInitError_Init_PathRegistryNotFound = 110, + EVRInitError_VRInitError_Init_NoConfigPath = 111, + EVRInitError_VRInitError_Init_NoLogPath = 112, + EVRInitError_VRInitError_Init_PathRegistryNotWritable = 113, + EVRInitError_VRInitError_Init_AppInfoInitFailed = 114, + EVRInitError_VRInitError_Init_Retry = 115, + EVRInitError_VRInitError_Init_InitCanceledByUser = 116, + EVRInitError_VRInitError_Init_AnotherAppLaunching = 117, + EVRInitError_VRInitError_Init_SettingsInitFailed = 118, + EVRInitError_VRInitError_Init_ShuttingDown = 119, + EVRInitError_VRInitError_Init_TooManyObjects = 120, + EVRInitError_VRInitError_Init_NoServerForBackgroundApp = 121, + EVRInitError_VRInitError_Init_NotSupportedWithCompositor = 122, + EVRInitError_VRInitError_Init_NotAvailableToUtilityApps = 123, + EVRInitError_VRInitError_Init_Internal = 124, + EVRInitError_VRInitError_Init_HmdDriverIdIsNone = 125, + EVRInitError_VRInitError_Init_HmdNotFoundPresenceFailed = 126, + EVRInitError_VRInitError_Init_VRMonitorNotFound = 127, + EVRInitError_VRInitError_Init_VRMonitorStartupFailed = 128, + EVRInitError_VRInitError_Init_LowPowerWatchdogNotSupported = 129, + EVRInitError_VRInitError_Init_InvalidApplicationType = 130, + EVRInitError_VRInitError_Init_NotAvailableToWatchdogApps = 131, + EVRInitError_VRInitError_Init_WatchdogDisabledInSettings = 132, + EVRInitError_VRInitError_Init_VRDashboardNotFound = 133, + EVRInitError_VRInitError_Init_VRDashboardStartupFailed = 134, + EVRInitError_VRInitError_Init_VRHomeNotFound = 135, + EVRInitError_VRInitError_Init_VRHomeStartupFailed = 136, + EVRInitError_VRInitError_Driver_Failed = 200, + EVRInitError_VRInitError_Driver_Unknown = 201, + EVRInitError_VRInitError_Driver_HmdUnknown = 202, + EVRInitError_VRInitError_Driver_NotLoaded = 203, + EVRInitError_VRInitError_Driver_RuntimeOutOfDate = 204, + EVRInitError_VRInitError_Driver_HmdInUse = 205, + EVRInitError_VRInitError_Driver_NotCalibrated = 206, + EVRInitError_VRInitError_Driver_CalibrationInvalid = 207, + EVRInitError_VRInitError_Driver_HmdDisplayNotFound = 208, + EVRInitError_VRInitError_Driver_TrackedDeviceInterfaceUnknown = 209, + EVRInitError_VRInitError_Driver_HmdDriverIdOutOfBounds = 211, + EVRInitError_VRInitError_Driver_HmdDisplayMirrored = 212, + EVRInitError_VRInitError_IPC_ServerInitFailed = 300, + EVRInitError_VRInitError_IPC_ConnectFailed = 301, + EVRInitError_VRInitError_IPC_SharedStateInitFailed = 302, + EVRInitError_VRInitError_IPC_CompositorInitFailed = 303, + EVRInitError_VRInitError_IPC_MutexInitFailed = 304, + EVRInitError_VRInitError_IPC_Failed = 305, + EVRInitError_VRInitError_IPC_CompositorConnectFailed = 306, + EVRInitError_VRInitError_IPC_CompositorInvalidConnectResponse = 307, + EVRInitError_VRInitError_IPC_ConnectFailedAfterMultipleAttempts = 308, + EVRInitError_VRInitError_Compositor_Failed = 400, + EVRInitError_VRInitError_Compositor_D3D11HardwareRequired = 401, + EVRInitError_VRInitError_Compositor_FirmwareRequiresUpdate = 402, + EVRInitError_VRInitError_Compositor_OverlayInitFailed = 403, + EVRInitError_VRInitError_Compositor_ScreenshotsInitFailed = 404, + EVRInitError_VRInitError_Compositor_UnableToCreateDevice = 405, + EVRInitError_VRInitError_VendorSpecific_UnableToConnectToOculusRuntime = 1000, + EVRInitError_VRInitError_VendorSpecific_HmdFound_CantOpenDevice = 1101, + EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102, + EVRInitError_VRInitError_VendorSpecific_HmdFound_NoStoredConfig = 1103, + EVRInitError_VRInitError_VendorSpecific_HmdFound_ConfigTooBig = 1104, + EVRInitError_VRInitError_VendorSpecific_HmdFound_ConfigTooSmall = 1105, + EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToInitZLib = 1106, + EVRInitError_VRInitError_VendorSpecific_HmdFound_CantReadFirmwareVersion = 1107, + EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToSendUserDataStart = 1108, + EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataStart = 1109, + EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataNext = 1110, + EVRInitError_VRInitError_VendorSpecific_HmdFound_UserDataAddressRange = 1111, + EVRInitError_VRInitError_VendorSpecific_HmdFound_UserDataError = 1112, + EVRInitError_VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck = 1113, + EVRInitError_VRInitError_Steam_SteamInstallationNotFound = 2000, +} EVRInitError; + +typedef enum EVRScreenshotType +{ + EVRScreenshotType_VRScreenshotType_None = 0, + EVRScreenshotType_VRScreenshotType_Mono = 1, + EVRScreenshotType_VRScreenshotType_Stereo = 2, + EVRScreenshotType_VRScreenshotType_Cubemap = 3, + EVRScreenshotType_VRScreenshotType_MonoPanorama = 4, + EVRScreenshotType_VRScreenshotType_StereoPanorama = 5, +} EVRScreenshotType; + +typedef enum EVRScreenshotPropertyFilenames +{ + EVRScreenshotPropertyFilenames_VRScreenshotPropertyFilenames_Preview = 0, + EVRScreenshotPropertyFilenames_VRScreenshotPropertyFilenames_VR = 1, +} EVRScreenshotPropertyFilenames; + +typedef enum EVRTrackedCameraError +{ + EVRTrackedCameraError_VRTrackedCameraError_None = 0, + EVRTrackedCameraError_VRTrackedCameraError_OperationFailed = 100, + EVRTrackedCameraError_VRTrackedCameraError_InvalidHandle = 101, + EVRTrackedCameraError_VRTrackedCameraError_InvalidFrameHeaderVersion = 102, + EVRTrackedCameraError_VRTrackedCameraError_OutOfHandles = 103, + EVRTrackedCameraError_VRTrackedCameraError_IPCFailure = 104, + EVRTrackedCameraError_VRTrackedCameraError_NotSupportedForThisDevice = 105, + EVRTrackedCameraError_VRTrackedCameraError_SharedMemoryFailure = 106, + EVRTrackedCameraError_VRTrackedCameraError_FrameBufferingFailure = 107, + EVRTrackedCameraError_VRTrackedCameraError_StreamSetupFailure = 108, + EVRTrackedCameraError_VRTrackedCameraError_InvalidGLTextureId = 109, + EVRTrackedCameraError_VRTrackedCameraError_InvalidSharedTextureHandle = 110, + EVRTrackedCameraError_VRTrackedCameraError_FailedToGetGLTextureId = 111, + EVRTrackedCameraError_VRTrackedCameraError_SharedTextureFailure = 112, + EVRTrackedCameraError_VRTrackedCameraError_NoFrameAvailable = 113, + EVRTrackedCameraError_VRTrackedCameraError_InvalidArgument = 114, + EVRTrackedCameraError_VRTrackedCameraError_InvalidFrameBufferSize = 115, +} EVRTrackedCameraError; + +typedef enum EVRTrackedCameraFrameType +{ + EVRTrackedCameraFrameType_VRTrackedCameraFrameType_Distorted = 0, + EVRTrackedCameraFrameType_VRTrackedCameraFrameType_Undistorted = 1, + EVRTrackedCameraFrameType_VRTrackedCameraFrameType_MaximumUndistorted = 2, + EVRTrackedCameraFrameType_MAX_CAMERA_FRAME_TYPES = 3, +} EVRTrackedCameraFrameType; + +typedef enum EVRApplicationError +{ + EVRApplicationError_VRApplicationError_None = 0, + EVRApplicationError_VRApplicationError_AppKeyAlreadyExists = 100, + EVRApplicationError_VRApplicationError_NoManifest = 101, + EVRApplicationError_VRApplicationError_NoApplication = 102, + EVRApplicationError_VRApplicationError_InvalidIndex = 103, + EVRApplicationError_VRApplicationError_UnknownApplication = 104, + EVRApplicationError_VRApplicationError_IPCFailed = 105, + EVRApplicationError_VRApplicationError_ApplicationAlreadyRunning = 106, + EVRApplicationError_VRApplicationError_InvalidManifest = 107, + EVRApplicationError_VRApplicationError_InvalidApplication = 108, + EVRApplicationError_VRApplicationError_LaunchFailed = 109, + EVRApplicationError_VRApplicationError_ApplicationAlreadyStarting = 110, + EVRApplicationError_VRApplicationError_LaunchInProgress = 111, + EVRApplicationError_VRApplicationError_OldApplicationQuitting = 112, + EVRApplicationError_VRApplicationError_TransitionAborted = 113, + EVRApplicationError_VRApplicationError_IsTemplate = 114, + EVRApplicationError_VRApplicationError_BufferTooSmall = 200, + EVRApplicationError_VRApplicationError_PropertyNotSet = 201, + EVRApplicationError_VRApplicationError_UnknownProperty = 202, + EVRApplicationError_VRApplicationError_InvalidParameter = 203, +} EVRApplicationError; + +typedef enum EVRApplicationProperty +{ + EVRApplicationProperty_VRApplicationProperty_Name_String = 0, + EVRApplicationProperty_VRApplicationProperty_LaunchType_String = 11, + EVRApplicationProperty_VRApplicationProperty_WorkingDirectory_String = 12, + EVRApplicationProperty_VRApplicationProperty_BinaryPath_String = 13, + EVRApplicationProperty_VRApplicationProperty_Arguments_String = 14, + EVRApplicationProperty_VRApplicationProperty_URL_String = 15, + EVRApplicationProperty_VRApplicationProperty_Description_String = 50, + EVRApplicationProperty_VRApplicationProperty_NewsURL_String = 51, + EVRApplicationProperty_VRApplicationProperty_ImagePath_String = 52, + EVRApplicationProperty_VRApplicationProperty_Source_String = 53, + EVRApplicationProperty_VRApplicationProperty_IsDashboardOverlay_Bool = 60, + EVRApplicationProperty_VRApplicationProperty_IsTemplate_Bool = 61, + EVRApplicationProperty_VRApplicationProperty_IsInstanced_Bool = 62, + EVRApplicationProperty_VRApplicationProperty_IsInternal_Bool = 63, + EVRApplicationProperty_VRApplicationProperty_LastLaunchTime_Uint64 = 70, +} EVRApplicationProperty; + +typedef enum EVRApplicationTransitionState +{ + EVRApplicationTransitionState_VRApplicationTransition_None = 0, + EVRApplicationTransitionState_VRApplicationTransition_OldAppQuitSent = 10, + EVRApplicationTransitionState_VRApplicationTransition_WaitingForExternalLaunch = 11, + EVRApplicationTransitionState_VRApplicationTransition_NewAppLaunched = 20, +} EVRApplicationTransitionState; + +typedef enum ChaperoneCalibrationState +{ + ChaperoneCalibrationState_OK = 1, + ChaperoneCalibrationState_Warning = 100, + ChaperoneCalibrationState_Warning_BaseStationMayHaveMoved = 101, + ChaperoneCalibrationState_Warning_BaseStationRemoved = 102, + ChaperoneCalibrationState_Warning_SeatedBoundsInvalid = 103, + ChaperoneCalibrationState_Error = 200, + ChaperoneCalibrationState_Error_BaseStationUninitialized = 201, + ChaperoneCalibrationState_Error_BaseStationConflict = 202, + ChaperoneCalibrationState_Error_PlayAreaInvalid = 203, + ChaperoneCalibrationState_Error_CollisionBoundsInvalid = 204, +} ChaperoneCalibrationState; + +typedef enum EChaperoneConfigFile +{ + EChaperoneConfigFile_Live = 1, + EChaperoneConfigFile_Temp = 2, +} EChaperoneConfigFile; + +typedef enum EChaperoneImportFlags +{ + EChaperoneImportFlags_EChaperoneImport_BoundsOnly = 1, +} EChaperoneImportFlags; + +typedef enum EVRCompositorError +{ + EVRCompositorError_VRCompositorError_None = 0, + EVRCompositorError_VRCompositorError_RequestFailed = 1, + EVRCompositorError_VRCompositorError_IncompatibleVersion = 100, + EVRCompositorError_VRCompositorError_DoNotHaveFocus = 101, + EVRCompositorError_VRCompositorError_InvalidTexture = 102, + EVRCompositorError_VRCompositorError_IsNotSceneApplication = 103, + EVRCompositorError_VRCompositorError_TextureIsOnWrongDevice = 104, + EVRCompositorError_VRCompositorError_TextureUsesUnsupportedFormat = 105, + EVRCompositorError_VRCompositorError_SharedTexturesNotSupported = 106, + EVRCompositorError_VRCompositorError_IndexOutOfRange = 107, + EVRCompositorError_VRCompositorError_AlreadySubmitted = 108, +} EVRCompositorError; + +typedef enum VROverlayInputMethod +{ + VROverlayInputMethod_None = 0, + VROverlayInputMethod_Mouse = 1, +} VROverlayInputMethod; + +typedef enum VROverlayTransformType +{ + VROverlayTransformType_VROverlayTransform_Absolute = 0, + VROverlayTransformType_VROverlayTransform_TrackedDeviceRelative = 1, + VROverlayTransformType_VROverlayTransform_SystemOverlay = 2, + VROverlayTransformType_VROverlayTransform_TrackedComponent = 3, +} VROverlayTransformType; + +typedef enum VROverlayFlags +{ + VROverlayFlags_None = 0, + VROverlayFlags_Curved = 1, + VROverlayFlags_RGSS4X = 2, + VROverlayFlags_NoDashboardTab = 3, + VROverlayFlags_AcceptsGamepadEvents = 4, + VROverlayFlags_ShowGamepadFocus = 5, + VROverlayFlags_SendVRScrollEvents = 6, + VROverlayFlags_SendVRTouchpadEvents = 7, + VROverlayFlags_ShowTouchPadScrollWheel = 8, + VROverlayFlags_TransferOwnershipToInternalProcess = 9, + VROverlayFlags_SideBySide_Parallel = 10, + VROverlayFlags_SideBySide_Crossed = 11, + VROverlayFlags_Panorama = 12, + VROverlayFlags_StereoPanorama = 13, + VROverlayFlags_SortWithNonSceneOverlays = 14, + VROverlayFlags_VisibleInDashboard = 15, +} VROverlayFlags; + +typedef enum VRMessageOverlayResponse +{ + VRMessageOverlayResponse_ButtonPress_0 = 0, + VRMessageOverlayResponse_ButtonPress_1 = 1, + VRMessageOverlayResponse_ButtonPress_2 = 2, + VRMessageOverlayResponse_ButtonPress_3 = 3, + VRMessageOverlayResponse_CouldntFindSystemOverlay = 4, + VRMessageOverlayResponse_CouldntFindOrCreateClientOverlay = 5, + VRMessageOverlayResponse_ApplicationQuit = 6, +} VRMessageOverlayResponse; + +typedef enum EGamepadTextInputMode +{ + EGamepadTextInputMode_k_EGamepadTextInputModeNormal = 0, + EGamepadTextInputMode_k_EGamepadTextInputModePassword = 1, + EGamepadTextInputMode_k_EGamepadTextInputModeSubmit = 2, +} EGamepadTextInputMode; + +typedef enum EGamepadTextInputLineMode +{ + EGamepadTextInputLineMode_k_EGamepadTextInputLineModeSingleLine = 0, + EGamepadTextInputLineMode_k_EGamepadTextInputLineModeMultipleLines = 1, +} EGamepadTextInputLineMode; + +typedef enum EOverlayDirection +{ + EOverlayDirection_OverlayDirection_Up = 0, + EOverlayDirection_OverlayDirection_Down = 1, + EOverlayDirection_OverlayDirection_Left = 2, + EOverlayDirection_OverlayDirection_Right = 3, + EOverlayDirection_OverlayDirection_Count = 4, +} EOverlayDirection; + +typedef enum EVROverlayIntersectionMaskPrimitiveType +{ + EVROverlayIntersectionMaskPrimitiveType_OverlayIntersectionPrimitiveType_Rectangle = 0, + EVROverlayIntersectionMaskPrimitiveType_OverlayIntersectionPrimitiveType_Circle = 1, +} EVROverlayIntersectionMaskPrimitiveType; + +typedef enum EVRRenderModelError +{ + EVRRenderModelError_VRRenderModelError_None = 0, + EVRRenderModelError_VRRenderModelError_Loading = 100, + EVRRenderModelError_VRRenderModelError_NotSupported = 200, + EVRRenderModelError_VRRenderModelError_InvalidArg = 300, + EVRRenderModelError_VRRenderModelError_InvalidModel = 301, + EVRRenderModelError_VRRenderModelError_NoShapes = 302, + EVRRenderModelError_VRRenderModelError_MultipleShapes = 303, + EVRRenderModelError_VRRenderModelError_TooManyVertices = 304, + EVRRenderModelError_VRRenderModelError_MultipleTextures = 305, + EVRRenderModelError_VRRenderModelError_BufferTooSmall = 306, + EVRRenderModelError_VRRenderModelError_NotEnoughNormals = 307, + EVRRenderModelError_VRRenderModelError_NotEnoughTexCoords = 308, + EVRRenderModelError_VRRenderModelError_InvalidTexture = 400, +} EVRRenderModelError; + +typedef enum EVRComponentProperty +{ + EVRComponentProperty_VRComponentProperty_IsStatic = 1, + EVRComponentProperty_VRComponentProperty_IsVisible = 2, + EVRComponentProperty_VRComponentProperty_IsTouched = 4, + EVRComponentProperty_VRComponentProperty_IsPressed = 8, + EVRComponentProperty_VRComponentProperty_IsScrolled = 16, +} EVRComponentProperty; + +typedef enum EVRNotificationType +{ + EVRNotificationType_Transient = 0, + EVRNotificationType_Persistent = 1, + EVRNotificationType_Transient_SystemWithUserValue = 2, +} EVRNotificationType; + +typedef enum EVRNotificationStyle +{ + EVRNotificationStyle_None = 0, + EVRNotificationStyle_Application = 100, + EVRNotificationStyle_Contact_Disabled = 200, + EVRNotificationStyle_Contact_Enabled = 201, + EVRNotificationStyle_Contact_Active = 202, +} EVRNotificationStyle; + +typedef enum EVRSettingsError +{ + EVRSettingsError_VRSettingsError_None = 0, + EVRSettingsError_VRSettingsError_IPCFailed = 1, + EVRSettingsError_VRSettingsError_WriteFailed = 2, + EVRSettingsError_VRSettingsError_ReadFailed = 3, + EVRSettingsError_VRSettingsError_JsonParseFailed = 4, + EVRSettingsError_VRSettingsError_UnsetSettingHasNoDefault = 5, +} EVRSettingsError; + +typedef enum EVRScreenshotError +{ + EVRScreenshotError_VRScreenshotError_None = 0, + EVRScreenshotError_VRScreenshotError_RequestFailed = 1, + EVRScreenshotError_VRScreenshotError_IncompatibleVersion = 100, + EVRScreenshotError_VRScreenshotError_NotFound = 101, + EVRScreenshotError_VRScreenshotError_BufferTooSmall = 102, + EVRScreenshotError_VRScreenshotError_ScreenshotAlreadyInProgress = 108, +} EVRScreenshotError; + + +// OpenVR typedefs + +typedef uint32_t TrackedDeviceIndex_t; +typedef uint32_t VRNotificationId; +typedef uint64_t VROverlayHandle_t; + +typedef void * glSharedTextureHandle_t; +typedef int32_t glInt_t; +typedef uint32_t glUInt_t; +typedef uint64_t SharedTextureHandle_t; +typedef uint32_t DriverId_t; +typedef uint32_t TrackedDeviceIndex_t; +typedef uint64_t PropertyContainerHandle_t; +typedef uint32_t PropertyTypeTag_t; +typedef uint64_t VROverlayHandle_t; +typedef uint64_t TrackedCameraHandle_t; +typedef uint32_t ScreenshotHandle_t; +typedef uint32_t VRComponentProperties; +typedef int32_t TextureID_t; +typedef uint32_t VRNotificationId; +typedef EVRInitError HmdError; +typedef EVREye Hmd_Eye; +typedef EColorSpace ColorSpace; +typedef ETrackingResult HmdTrackingResult; +typedef ETrackedDeviceClass TrackedDeviceClass; +typedef ETrackingUniverseOrigin TrackingUniverseOrigin; +typedef ETrackedDeviceProperty TrackedDeviceProperty; +typedef ETrackedPropertyError TrackedPropertyError; +typedef EVRSubmitFlags VRSubmitFlags_t; +typedef EVRState VRState_t; +typedef ECollisionBoundsStyle CollisionBoundsStyle_t; +typedef EVROverlayError VROverlayError; +typedef EVRFirmwareError VRFirmwareError; +typedef EVRCompositorError VRCompositorError; +typedef EVRScreenshotError VRScreenshotsError; + +// OpenVR Structs + +typedef struct HmdMatrix34_t +{ + float m[3][4]; //float[3][4] +} HmdMatrix34_t; + +typedef struct HmdMatrix44_t +{ + float m[4][4]; //float[4][4] +} HmdMatrix44_t; + +typedef struct HmdVector3_t +{ + float v[3]; //float[3] +} HmdVector3_t; + +typedef struct HmdVector4_t +{ + float v[4]; //float[4] +} HmdVector4_t; + +typedef struct HmdVector3d_t +{ + double v[3]; //double[3] +} HmdVector3d_t; + +typedef struct HmdVector2_t +{ + float v[2]; //float[2] +} HmdVector2_t; + +typedef struct HmdQuaternion_t +{ + double w; + double x; + double y; + double z; +} HmdQuaternion_t; + +typedef struct HmdColor_t +{ + float r; + float g; + float b; + float a; +} HmdColor_t; + +typedef struct HmdQuad_t +{ + struct HmdVector3_t vCorners[4]; //struct vr::HmdVector3_t[4] +} HmdQuad_t; + +typedef struct HmdRect2_t +{ + struct HmdVector2_t vTopLeft; + struct HmdVector2_t vBottomRight; +} HmdRect2_t; + +typedef struct DistortionCoordinates_t +{ + float rfRed[2]; //float[2] + float rfGreen[2]; //float[2] + float rfBlue[2]; //float[2] +} DistortionCoordinates_t; + +typedef struct Texture_t +{ + void * handle; // void * + enum ETextureType eType; + enum EColorSpace eColorSpace; +} Texture_t; + +typedef struct TrackedDevicePose_t +{ + struct HmdMatrix34_t mDeviceToAbsoluteTracking; + struct HmdVector3_t vVelocity; + struct HmdVector3_t vAngularVelocity; + enum ETrackingResult eTrackingResult; + bool bPoseIsValid; + bool bDeviceIsConnected; +} TrackedDevicePose_t; + +typedef struct VRTextureBounds_t +{ + float uMin; + float vMin; + float uMax; + float vMax; +} VRTextureBounds_t; + +typedef struct VRVulkanTextureData_t +{ + uint64_t m_nImage; + struct VkDevice_T * m_pDevice; // struct VkDevice_T * + struct VkPhysicalDevice_T * m_pPhysicalDevice; // struct VkPhysicalDevice_T * + struct VkInstance_T * m_pInstance; // struct VkInstance_T * + struct VkQueue_T * m_pQueue; // struct VkQueue_T * + uint32_t m_nQueueFamilyIndex; + uint32_t m_nWidth; + uint32_t m_nHeight; + uint32_t m_nFormat; + uint32_t m_nSampleCount; +} VRVulkanTextureData_t; + +typedef struct D3D12TextureData_t +{ + struct ID3D12Resource * m_pResource; // struct ID3D12Resource * + struct ID3D12CommandQueue * m_pCommandQueue; // struct ID3D12CommandQueue * + uint32_t m_nNodeMask; +} D3D12TextureData_t; + +typedef struct VREvent_Controller_t +{ + uint32_t button; +} VREvent_Controller_t; + +typedef struct VREvent_Mouse_t +{ + float x; + float y; + uint32_t button; +} VREvent_Mouse_t; + +typedef struct VREvent_Scroll_t +{ + float xdelta; + float ydelta; + uint32_t repeatCount; +} VREvent_Scroll_t; + +typedef struct VREvent_TouchPadMove_t +{ + bool bFingerDown; + float flSecondsFingerDown; + float fValueXFirst; + float fValueYFirst; + float fValueXRaw; + float fValueYRaw; +} VREvent_TouchPadMove_t; + +typedef struct VREvent_Notification_t +{ + uint64_t ulUserValue; + uint32_t notificationId; +} VREvent_Notification_t; + +typedef struct VREvent_Process_t +{ + uint32_t pid; + uint32_t oldPid; + bool bForced; +} VREvent_Process_t; + +typedef struct VREvent_Overlay_t +{ + uint64_t overlayHandle; +} VREvent_Overlay_t; + +typedef struct VREvent_Status_t +{ + uint32_t statusState; +} VREvent_Status_t; + +typedef struct VREvent_Keyboard_t +{ + char * cNewInput[8]; //char[8] + uint64_t uUserValue; +} VREvent_Keyboard_t; + +typedef struct VREvent_Ipd_t +{ + float ipdMeters; +} VREvent_Ipd_t; + +typedef struct VREvent_Chaperone_t +{ + uint64_t m_nPreviousUniverse; + uint64_t m_nCurrentUniverse; +} VREvent_Chaperone_t; + +typedef struct VREvent_Reserved_t +{ + uint64_t reserved0; + uint64_t reserved1; +} VREvent_Reserved_t; + +typedef struct VREvent_PerformanceTest_t +{ + uint32_t m_nFidelityLevel; +} VREvent_PerformanceTest_t; + +typedef struct VREvent_SeatedZeroPoseReset_t +{ + bool bResetBySystemMenu; +} VREvent_SeatedZeroPoseReset_t; + +typedef struct VREvent_Screenshot_t +{ + uint32_t handle; + uint32_t type; +} VREvent_Screenshot_t; + +typedef struct VREvent_ScreenshotProgress_t +{ + float progress; +} VREvent_ScreenshotProgress_t; + +typedef struct VREvent_ApplicationLaunch_t +{ + uint32_t pid; + uint32_t unArgsHandle; +} VREvent_ApplicationLaunch_t; + +typedef struct VREvent_EditingCameraSurface_t +{ + uint64_t overlayHandle; + uint32_t nVisualMode; +} VREvent_EditingCameraSurface_t; + +typedef struct VREvent_MessageOverlay_t +{ + uint32_t unVRMessageOverlayResponse; +} VREvent_MessageOverlay_t; + +typedef struct VREvent_Property_t +{ + PropertyContainerHandle_t container; + enum ETrackedDeviceProperty prop; +} VREvent_Property_t; + +typedef struct HiddenAreaMesh_t +{ + struct HmdVector2_t * pVertexData; // const struct vr::HmdVector2_t * + uint32_t unTriangleCount; +} HiddenAreaMesh_t; + +typedef struct VRControllerAxis_t +{ + float x; + float y; +} VRControllerAxis_t; + +typedef struct VRControllerState_t +{ + uint32_t unPacketNum; + uint64_t ulButtonPressed; + uint64_t ulButtonTouched; + struct VRControllerAxis_t rAxis[5]; //struct vr::VRControllerAxis_t[5] +} VRControllerState_t; + +typedef struct Compositor_OverlaySettings +{ + uint32_t size; + bool curved; + bool antialias; + float scale; + float distance; + float alpha; + float uOffset; + float vOffset; + float uScale; + float vScale; + float gridDivs; + float gridWidth; + float gridScale; + struct HmdMatrix44_t transform; +} Compositor_OverlaySettings; + +typedef struct CameraVideoStreamFrameHeader_t +{ + enum EVRTrackedCameraFrameType eFrameType; + uint32_t nWidth; + uint32_t nHeight; + uint32_t nBytesPerPixel; + uint32_t nFrameSequence; + struct TrackedDevicePose_t standingTrackedDevicePose; +} CameraVideoStreamFrameHeader_t; + +typedef struct AppOverrideKeys_t +{ + char * pchKey; // const char * + char * pchValue; // const char * +} AppOverrideKeys_t; + +typedef struct Compositor_FrameTiming +{ + uint32_t m_nSize; + uint32_t m_nFrameIndex; + uint32_t m_nNumFramePresents; + uint32_t m_nNumMisPresented; + uint32_t m_nNumDroppedFrames; + uint32_t m_nReprojectionFlags; + double m_flSystemTimeInSeconds; + float m_flPreSubmitGpuMs; + float m_flPostSubmitGpuMs; + float m_flTotalRenderGpuMs; + float m_flCompositorRenderGpuMs; + float m_flCompositorRenderCpuMs; + float m_flCompositorIdleCpuMs; + float m_flClientFrameIntervalMs; + float m_flPresentCallCpuMs; + float m_flWaitForPresentCpuMs; + float m_flSubmitFrameMs; + float m_flWaitGetPosesCalledMs; + float m_flNewPosesReadyMs; + float m_flNewFrameReadyMs; + float m_flCompositorUpdateStartMs; + float m_flCompositorUpdateEndMs; + float m_flCompositorRenderStartMs; + TrackedDevicePose_t m_HmdPose; +} Compositor_FrameTiming; + +typedef struct Compositor_CumulativeStats +{ + uint32_t m_nPid; + uint32_t m_nNumFramePresents; + uint32_t m_nNumDroppedFrames; + uint32_t m_nNumReprojectedFrames; + uint32_t m_nNumFramePresentsOnStartup; + uint32_t m_nNumDroppedFramesOnStartup; + uint32_t m_nNumReprojectedFramesOnStartup; + uint32_t m_nNumLoading; + uint32_t m_nNumFramePresentsLoading; + uint32_t m_nNumDroppedFramesLoading; + uint32_t m_nNumReprojectedFramesLoading; + uint32_t m_nNumTimedOut; + uint32_t m_nNumFramePresentsTimedOut; + uint32_t m_nNumDroppedFramesTimedOut; + uint32_t m_nNumReprojectedFramesTimedOut; +} Compositor_CumulativeStats; + +typedef struct VROverlayIntersectionParams_t +{ + struct HmdVector3_t vSource; + struct HmdVector3_t vDirection; + enum ETrackingUniverseOrigin eOrigin; +} VROverlayIntersectionParams_t; + +typedef struct VROverlayIntersectionResults_t +{ + struct HmdVector3_t vPoint; + struct HmdVector3_t vNormal; + struct HmdVector2_t vUVs; + float fDistance; +} VROverlayIntersectionResults_t; + +typedef struct IntersectionMaskRectangle_t +{ + float m_flTopLeftX; + float m_flTopLeftY; + float m_flWidth; + float m_flHeight; +} IntersectionMaskRectangle_t; + +typedef struct IntersectionMaskCircle_t +{ + float m_flCenterX; + float m_flCenterY; + float m_flRadius; +} IntersectionMaskCircle_t; + +typedef struct RenderModel_ComponentState_t +{ + struct HmdMatrix34_t mTrackingToComponentRenderModel; + struct HmdMatrix34_t mTrackingToComponentLocal; + VRComponentProperties uProperties; +} RenderModel_ComponentState_t; + +typedef struct RenderModel_Vertex_t +{ + struct HmdVector3_t vPosition; + struct HmdVector3_t vNormal; + float rfTextureCoord[2]; //float[2] +} RenderModel_Vertex_t; + +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( push, 4 ) +#endif +typedef struct RenderModel_TextureMap_t +{ + uint16_t unWidth; + uint16_t unHeight; + uint8_t * rubTextureMapData; // const uint8_t * +} RenderModel_TextureMap_t; + +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( pop ) +#endif +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( push, 4 ) +#endif +typedef struct RenderModel_t +{ + struct RenderModel_Vertex_t * rVertexData; // const struct vr::RenderModel_Vertex_t * + uint32_t unVertexCount; + uint16_t * rIndexData; // const uint16_t * + uint32_t unTriangleCount; + TextureID_t diffuseTextureId; +} RenderModel_t; + +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( pop ) +#endif +typedef struct RenderModel_ControllerMode_State_t +{ + bool bScrollWheelVisible; +} RenderModel_ControllerMode_State_t; + +typedef struct NotificationBitmap_t +{ + void * m_pImageData; // void * + int32_t m_nWidth; + int32_t m_nHeight; + int32_t m_nBytesPerPixel; +} NotificationBitmap_t; + +typedef struct COpenVRContext +{ + intptr_t m_pVRSystem; // class vr::IVRSystem * + intptr_t m_pVRChaperone; // class vr::IVRChaperone * + intptr_t m_pVRChaperoneSetup; // class vr::IVRChaperoneSetup * + intptr_t m_pVRCompositor; // class vr::IVRCompositor * + intptr_t m_pVROverlay; // class vr::IVROverlay * + intptr_t m_pVRResources; // class vr::IVRResources * + intptr_t m_pVRRenderModels; // class vr::IVRRenderModels * + intptr_t m_pVRExtendedDisplay; // class vr::IVRExtendedDisplay * + intptr_t m_pVRSettings; // class vr::IVRSettings * + intptr_t m_pVRApplications; // class vr::IVRApplications * + intptr_t m_pVRTrackedCamera; // class vr::IVRTrackedCamera * + intptr_t m_pVRScreenshots; // class vr::IVRScreenshots * + intptr_t m_pVRDriverManager; // class vr::IVRDriverManager * +} COpenVRContext; + + +typedef union +{ + VREvent_Reserved_t reserved; + VREvent_Controller_t controller; + VREvent_Mouse_t mouse; + VREvent_Scroll_t scroll; + VREvent_Process_t process; + VREvent_Notification_t notification; + VREvent_Overlay_t overlay; + VREvent_Status_t status; + VREvent_Keyboard_t keyboard; + VREvent_Ipd_t ipd; + VREvent_Chaperone_t chaperone; + VREvent_PerformanceTest_t performanceTest; + VREvent_TouchPadMove_t touchPadMove; + VREvent_SeatedZeroPoseReset_t seatedZeroPoseReset; +} VREvent_Data_t; + +/** An event posted by the server to all running applications */ +struct VREvent_t +{ + uint32_t eventType; // EVREventType enum + TrackedDeviceIndex_t trackedDeviceIndex; + float eventAgeSeconds; + // event data must be the end of the struct as its size is variable + VREvent_Data_t data; +}; + + +typedef union +{ + IntersectionMaskRectangle_t m_Rectangle; + IntersectionMaskCircle_t m_Circle; +} VROverlayIntersectionMaskPrimitive_Data_t; + +struct VROverlayIntersectionMaskPrimitive_t +{ + EVROverlayIntersectionMaskPrimitiveType m_nPrimitiveType; + VROverlayIntersectionMaskPrimitive_Data_t m_Primitive; +}; + + +// OpenVR Function Pointer Tables + +struct VR_IVRSystem_FnTable +{ + void (OPENVR_FNTABLE_CALLTYPE *GetRecommendedRenderTargetSize)(uint32_t * pnWidth, uint32_t * pnHeight); + struct HmdMatrix44_t (OPENVR_FNTABLE_CALLTYPE *GetProjectionMatrix)(EVREye eEye, float fNearZ, float fFarZ); + void (OPENVR_FNTABLE_CALLTYPE *GetProjectionRaw)(EVREye eEye, float * pfLeft, float * pfRight, float * pfTop, float * pfBottom); + bool (OPENVR_FNTABLE_CALLTYPE *ComputeDistortion)(EVREye eEye, float fU, float fV, struct DistortionCoordinates_t * pDistortionCoordinates); + struct HmdMatrix34_t (OPENVR_FNTABLE_CALLTYPE *GetEyeToHeadTransform)(EVREye eEye); + bool (OPENVR_FNTABLE_CALLTYPE *GetTimeSinceLastVsync)(float * pfSecondsSinceLastVsync, uint64_t * pulFrameCounter); + int32_t (OPENVR_FNTABLE_CALLTYPE *GetD3D9AdapterIndex)(); + void (OPENVR_FNTABLE_CALLTYPE *GetDXGIOutputInfo)(int32_t * pnAdapterIndex); + void (OPENVR_FNTABLE_CALLTYPE *GetOutputDevice)(uint64_t * pnDevice, ETextureType textureType); + bool (OPENVR_FNTABLE_CALLTYPE *IsDisplayOnDesktop)(); + bool (OPENVR_FNTABLE_CALLTYPE *SetDisplayVisibility)(bool bIsVisibleOnDesktop); + void (OPENVR_FNTABLE_CALLTYPE *GetDeviceToAbsoluteTrackingPose)(ETrackingUniverseOrigin eOrigin, float fPredictedSecondsToPhotonsFromNow, struct TrackedDevicePose_t * pTrackedDevicePoseArray, uint32_t unTrackedDevicePoseArrayCount); + void (OPENVR_FNTABLE_CALLTYPE *ResetSeatedZeroPose)(); + struct HmdMatrix34_t (OPENVR_FNTABLE_CALLTYPE *GetSeatedZeroPoseToStandingAbsoluteTrackingPose)(); + struct HmdMatrix34_t (OPENVR_FNTABLE_CALLTYPE *GetRawZeroPoseToStandingAbsoluteTrackingPose)(); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetSortedTrackedDeviceIndicesOfClass)(ETrackedDeviceClass eTrackedDeviceClass, TrackedDeviceIndex_t * punTrackedDeviceIndexArray, uint32_t unTrackedDeviceIndexArrayCount, TrackedDeviceIndex_t unRelativeToTrackedDeviceIndex); + EDeviceActivityLevel (OPENVR_FNTABLE_CALLTYPE *GetTrackedDeviceActivityLevel)(TrackedDeviceIndex_t unDeviceId); + void (OPENVR_FNTABLE_CALLTYPE *ApplyTransform)(struct TrackedDevicePose_t * pOutputPose, struct TrackedDevicePose_t * pTrackedDevicePose, struct HmdMatrix34_t * pTransform); + TrackedDeviceIndex_t (OPENVR_FNTABLE_CALLTYPE *GetTrackedDeviceIndexForControllerRole)(ETrackedControllerRole unDeviceType); + ETrackedControllerRole (OPENVR_FNTABLE_CALLTYPE *GetControllerRoleForTrackedDeviceIndex)(TrackedDeviceIndex_t unDeviceIndex); + ETrackedDeviceClass (OPENVR_FNTABLE_CALLTYPE *GetTrackedDeviceClass)(TrackedDeviceIndex_t unDeviceIndex); + bool (OPENVR_FNTABLE_CALLTYPE *IsTrackedDeviceConnected)(TrackedDeviceIndex_t unDeviceIndex); + bool (OPENVR_FNTABLE_CALLTYPE *GetBoolTrackedDeviceProperty)(TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError * pError); + float (OPENVR_FNTABLE_CALLTYPE *GetFloatTrackedDeviceProperty)(TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError * pError); + int32_t (OPENVR_FNTABLE_CALLTYPE *GetInt32TrackedDeviceProperty)(TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError * pError); + uint64_t (OPENVR_FNTABLE_CALLTYPE *GetUint64TrackedDeviceProperty)(TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError * pError); + struct HmdMatrix34_t (OPENVR_FNTABLE_CALLTYPE *GetMatrix34TrackedDeviceProperty)(TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError * pError); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetStringTrackedDeviceProperty)(TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, char * pchValue, uint32_t unBufferSize, ETrackedPropertyError * pError); + char * (OPENVR_FNTABLE_CALLTYPE *GetPropErrorNameFromEnum)(ETrackedPropertyError error); + bool (OPENVR_FNTABLE_CALLTYPE *PollNextEvent)(struct VREvent_t * pEvent, uint32_t uncbVREvent); + bool (OPENVR_FNTABLE_CALLTYPE *PollNextEventWithPose)(ETrackingUniverseOrigin eOrigin, struct VREvent_t * pEvent, uint32_t uncbVREvent, TrackedDevicePose_t * pTrackedDevicePose); + char * (OPENVR_FNTABLE_CALLTYPE *GetEventTypeNameFromEnum)(EVREventType eType); + struct HiddenAreaMesh_t (OPENVR_FNTABLE_CALLTYPE *GetHiddenAreaMesh)(EVREye eEye, EHiddenAreaMeshType type); + bool (OPENVR_FNTABLE_CALLTYPE *GetControllerState)(TrackedDeviceIndex_t unControllerDeviceIndex, VRControllerState_t * pControllerState, uint32_t unControllerStateSize); + bool (OPENVR_FNTABLE_CALLTYPE *GetControllerStateWithPose)(ETrackingUniverseOrigin eOrigin, TrackedDeviceIndex_t unControllerDeviceIndex, VRControllerState_t * pControllerState, uint32_t unControllerStateSize, struct TrackedDevicePose_t * pTrackedDevicePose); + void (OPENVR_FNTABLE_CALLTYPE *TriggerHapticPulse)(TrackedDeviceIndex_t unControllerDeviceIndex, uint32_t unAxisId, unsigned short usDurationMicroSec); + char * (OPENVR_FNTABLE_CALLTYPE *GetButtonIdNameFromEnum)(EVRButtonId eButtonId); + char * (OPENVR_FNTABLE_CALLTYPE *GetControllerAxisTypeNameFromEnum)(EVRControllerAxisType eAxisType); + bool (OPENVR_FNTABLE_CALLTYPE *CaptureInputFocus)(); + void (OPENVR_FNTABLE_CALLTYPE *ReleaseInputFocus)(); + bool (OPENVR_FNTABLE_CALLTYPE *IsInputFocusCapturedByAnotherProcess)(); + uint32_t (OPENVR_FNTABLE_CALLTYPE *DriverDebugRequest)(TrackedDeviceIndex_t unDeviceIndex, char * pchRequest, char * pchResponseBuffer, uint32_t unResponseBufferSize); + EVRFirmwareError (OPENVR_FNTABLE_CALLTYPE *PerformFirmwareUpdate)(TrackedDeviceIndex_t unDeviceIndex); + void (OPENVR_FNTABLE_CALLTYPE *AcknowledgeQuit_Exiting)(); + void (OPENVR_FNTABLE_CALLTYPE *AcknowledgeQuit_UserPrompt)(); +}; + +struct VR_IVRExtendedDisplay_FnTable +{ + void (OPENVR_FNTABLE_CALLTYPE *GetWindowBounds)(int32_t * pnX, int32_t * pnY, uint32_t * pnWidth, uint32_t * pnHeight); + void (OPENVR_FNTABLE_CALLTYPE *GetEyeOutputViewport)(EVREye eEye, uint32_t * pnX, uint32_t * pnY, uint32_t * pnWidth, uint32_t * pnHeight); + void (OPENVR_FNTABLE_CALLTYPE *GetDXGIOutputInfo)(int32_t * pnAdapterIndex, int32_t * pnAdapterOutputIndex); +}; + +struct VR_IVRTrackedCamera_FnTable +{ + char * (OPENVR_FNTABLE_CALLTYPE *GetCameraErrorNameFromEnum)(EVRTrackedCameraError eCameraError); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *HasCamera)(TrackedDeviceIndex_t nDeviceIndex, bool * pHasCamera); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *GetCameraFrameSize)(TrackedDeviceIndex_t nDeviceIndex, EVRTrackedCameraFrameType eFrameType, uint32_t * pnWidth, uint32_t * pnHeight, uint32_t * pnFrameBufferSize); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *GetCameraIntrinsics)(TrackedDeviceIndex_t nDeviceIndex, EVRTrackedCameraFrameType eFrameType, HmdVector2_t * pFocalLength, HmdVector2_t * pCenter); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *GetCameraProjection)(TrackedDeviceIndex_t nDeviceIndex, EVRTrackedCameraFrameType eFrameType, float flZNear, float flZFar, HmdMatrix44_t * pProjection); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *AcquireVideoStreamingService)(TrackedDeviceIndex_t nDeviceIndex, TrackedCameraHandle_t * pHandle); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *ReleaseVideoStreamingService)(TrackedCameraHandle_t hTrackedCamera); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *GetVideoStreamFrameBuffer)(TrackedCameraHandle_t hTrackedCamera, EVRTrackedCameraFrameType eFrameType, void * pFrameBuffer, uint32_t nFrameBufferSize, CameraVideoStreamFrameHeader_t * pFrameHeader, uint32_t nFrameHeaderSize); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *GetVideoStreamTextureSize)(TrackedDeviceIndex_t nDeviceIndex, EVRTrackedCameraFrameType eFrameType, VRTextureBounds_t * pTextureBounds, uint32_t * pnWidth, uint32_t * pnHeight); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *GetVideoStreamTextureD3D11)(TrackedCameraHandle_t hTrackedCamera, EVRTrackedCameraFrameType eFrameType, void * pD3D11DeviceOrResource, void ** ppD3D11ShaderResourceView, CameraVideoStreamFrameHeader_t * pFrameHeader, uint32_t nFrameHeaderSize); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *GetVideoStreamTextureGL)(TrackedCameraHandle_t hTrackedCamera, EVRTrackedCameraFrameType eFrameType, glUInt_t * pglTextureId, CameraVideoStreamFrameHeader_t * pFrameHeader, uint32_t nFrameHeaderSize); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *ReleaseVideoStreamTextureGL)(TrackedCameraHandle_t hTrackedCamera, glUInt_t glTextureId); +}; + +struct VR_IVRApplications_FnTable +{ + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *AddApplicationManifest)(char * pchApplicationManifestFullPath, bool bTemporary); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *RemoveApplicationManifest)(char * pchApplicationManifestFullPath); + bool (OPENVR_FNTABLE_CALLTYPE *IsApplicationInstalled)(char * pchAppKey); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetApplicationCount)(); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *GetApplicationKeyByIndex)(uint32_t unApplicationIndex, char * pchAppKeyBuffer, uint32_t unAppKeyBufferLen); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *GetApplicationKeyByProcessId)(uint32_t unProcessId, char * pchAppKeyBuffer, uint32_t unAppKeyBufferLen); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *LaunchApplication)(char * pchAppKey); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *LaunchTemplateApplication)(char * pchTemplateAppKey, char * pchNewAppKey, struct AppOverrideKeys_t * pKeys, uint32_t unKeys); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *LaunchApplicationFromMimeType)(char * pchMimeType, char * pchArgs); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *LaunchDashboardOverlay)(char * pchAppKey); + bool (OPENVR_FNTABLE_CALLTYPE *CancelApplicationLaunch)(char * pchAppKey); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *IdentifyApplication)(uint32_t unProcessId, char * pchAppKey); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetApplicationProcessId)(char * pchAppKey); + char * (OPENVR_FNTABLE_CALLTYPE *GetApplicationsErrorNameFromEnum)(EVRApplicationError error); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetApplicationPropertyString)(char * pchAppKey, EVRApplicationProperty eProperty, char * pchPropertyValueBuffer, uint32_t unPropertyValueBufferLen, EVRApplicationError * peError); + bool (OPENVR_FNTABLE_CALLTYPE *GetApplicationPropertyBool)(char * pchAppKey, EVRApplicationProperty eProperty, EVRApplicationError * peError); + uint64_t (OPENVR_FNTABLE_CALLTYPE *GetApplicationPropertyUint64)(char * pchAppKey, EVRApplicationProperty eProperty, EVRApplicationError * peError); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *SetApplicationAutoLaunch)(char * pchAppKey, bool bAutoLaunch); + bool (OPENVR_FNTABLE_CALLTYPE *GetApplicationAutoLaunch)(char * pchAppKey); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *SetDefaultApplicationForMimeType)(char * pchAppKey, char * pchMimeType); + bool (OPENVR_FNTABLE_CALLTYPE *GetDefaultApplicationForMimeType)(char * pchMimeType, char * pchAppKeyBuffer, uint32_t unAppKeyBufferLen); + bool (OPENVR_FNTABLE_CALLTYPE *GetApplicationSupportedMimeTypes)(char * pchAppKey, char * pchMimeTypesBuffer, uint32_t unMimeTypesBuffer); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetApplicationsThatSupportMimeType)(char * pchMimeType, char * pchAppKeysThatSupportBuffer, uint32_t unAppKeysThatSupportBuffer); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetApplicationLaunchArguments)(uint32_t unHandle, char * pchArgs, uint32_t unArgs); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *GetStartingApplication)(char * pchAppKeyBuffer, uint32_t unAppKeyBufferLen); + EVRApplicationTransitionState (OPENVR_FNTABLE_CALLTYPE *GetTransitionState)(); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *PerformApplicationPrelaunchCheck)(char * pchAppKey); + char * (OPENVR_FNTABLE_CALLTYPE *GetApplicationsTransitionStateNameFromEnum)(EVRApplicationTransitionState state); + bool (OPENVR_FNTABLE_CALLTYPE *IsQuitUserPromptRequested)(); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *LaunchInternalProcess)(char * pchBinaryPath, char * pchArguments, char * pchWorkingDirectory); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetCurrentSceneProcessId)(); +}; + +struct VR_IVRChaperone_FnTable +{ + ChaperoneCalibrationState (OPENVR_FNTABLE_CALLTYPE *GetCalibrationState)(); + bool (OPENVR_FNTABLE_CALLTYPE *GetPlayAreaSize)(float * pSizeX, float * pSizeZ); + bool (OPENVR_FNTABLE_CALLTYPE *GetPlayAreaRect)(struct HmdQuad_t * rect); + void (OPENVR_FNTABLE_CALLTYPE *ReloadInfo)(); + void (OPENVR_FNTABLE_CALLTYPE *SetSceneColor)(struct HmdColor_t color); + void (OPENVR_FNTABLE_CALLTYPE *GetBoundsColor)(struct HmdColor_t * pOutputColorArray, int nNumOutputColors, float flCollisionBoundsFadeDistance, struct HmdColor_t * pOutputCameraColor); + bool (OPENVR_FNTABLE_CALLTYPE *AreBoundsVisible)(); + void (OPENVR_FNTABLE_CALLTYPE *ForceBoundsVisible)(bool bForce); +}; + +struct VR_IVRChaperoneSetup_FnTable +{ + bool (OPENVR_FNTABLE_CALLTYPE *CommitWorkingCopy)(EChaperoneConfigFile configFile); + void (OPENVR_FNTABLE_CALLTYPE *RevertWorkingCopy)(); + bool (OPENVR_FNTABLE_CALLTYPE *GetWorkingPlayAreaSize)(float * pSizeX, float * pSizeZ); + bool (OPENVR_FNTABLE_CALLTYPE *GetWorkingPlayAreaRect)(struct HmdQuad_t * rect); + bool (OPENVR_FNTABLE_CALLTYPE *GetWorkingCollisionBoundsInfo)(struct HmdQuad_t * pQuadsBuffer, uint32_t * punQuadsCount); + bool (OPENVR_FNTABLE_CALLTYPE *GetLiveCollisionBoundsInfo)(struct HmdQuad_t * pQuadsBuffer, uint32_t * punQuadsCount); + bool (OPENVR_FNTABLE_CALLTYPE *GetWorkingSeatedZeroPoseToRawTrackingPose)(struct HmdMatrix34_t * pmatSeatedZeroPoseToRawTrackingPose); + bool (OPENVR_FNTABLE_CALLTYPE *GetWorkingStandingZeroPoseToRawTrackingPose)(struct HmdMatrix34_t * pmatStandingZeroPoseToRawTrackingPose); + void (OPENVR_FNTABLE_CALLTYPE *SetWorkingPlayAreaSize)(float sizeX, float sizeZ); + void (OPENVR_FNTABLE_CALLTYPE *SetWorkingCollisionBoundsInfo)(struct HmdQuad_t * pQuadsBuffer, uint32_t unQuadsCount); + void (OPENVR_FNTABLE_CALLTYPE *SetWorkingSeatedZeroPoseToRawTrackingPose)(struct HmdMatrix34_t * pMatSeatedZeroPoseToRawTrackingPose); + void (OPENVR_FNTABLE_CALLTYPE *SetWorkingStandingZeroPoseToRawTrackingPose)(struct HmdMatrix34_t * pMatStandingZeroPoseToRawTrackingPose); + void (OPENVR_FNTABLE_CALLTYPE *ReloadFromDisk)(EChaperoneConfigFile configFile); + bool (OPENVR_FNTABLE_CALLTYPE *GetLiveSeatedZeroPoseToRawTrackingPose)(struct HmdMatrix34_t * pmatSeatedZeroPoseToRawTrackingPose); + void (OPENVR_FNTABLE_CALLTYPE *SetWorkingCollisionBoundsTagsInfo)(uint8_t * pTagsBuffer, uint32_t unTagCount); + bool (OPENVR_FNTABLE_CALLTYPE *GetLiveCollisionBoundsTagsInfo)(uint8_t * pTagsBuffer, uint32_t * punTagCount); + bool (OPENVR_FNTABLE_CALLTYPE *SetWorkingPhysicalBoundsInfo)(struct HmdQuad_t * pQuadsBuffer, uint32_t unQuadsCount); + bool (OPENVR_FNTABLE_CALLTYPE *GetLivePhysicalBoundsInfo)(struct HmdQuad_t * pQuadsBuffer, uint32_t * punQuadsCount); + bool (OPENVR_FNTABLE_CALLTYPE *ExportLiveToBuffer)(char * pBuffer, uint32_t * pnBufferLength); + bool (OPENVR_FNTABLE_CALLTYPE *ImportFromBufferToWorking)(char * pBuffer, uint32_t nImportFlags); +}; + +struct VR_IVRCompositor_FnTable +{ + void (OPENVR_FNTABLE_CALLTYPE *SetTrackingSpace)(ETrackingUniverseOrigin eOrigin); + ETrackingUniverseOrigin (OPENVR_FNTABLE_CALLTYPE *GetTrackingSpace)(); + EVRCompositorError (OPENVR_FNTABLE_CALLTYPE *WaitGetPoses)(struct TrackedDevicePose_t * pRenderPoseArray, uint32_t unRenderPoseArrayCount, struct TrackedDevicePose_t * pGamePoseArray, uint32_t unGamePoseArrayCount); + EVRCompositorError (OPENVR_FNTABLE_CALLTYPE *GetLastPoses)(struct TrackedDevicePose_t * pRenderPoseArray, uint32_t unRenderPoseArrayCount, struct TrackedDevicePose_t * pGamePoseArray, uint32_t unGamePoseArrayCount); + EVRCompositorError (OPENVR_FNTABLE_CALLTYPE *GetLastPoseForTrackedDeviceIndex)(TrackedDeviceIndex_t unDeviceIndex, struct TrackedDevicePose_t * pOutputPose, struct TrackedDevicePose_t * pOutputGamePose); + EVRCompositorError (OPENVR_FNTABLE_CALLTYPE *Submit)(EVREye eEye, struct Texture_t * pTexture, struct VRTextureBounds_t * pBounds, EVRSubmitFlags nSubmitFlags); + void (OPENVR_FNTABLE_CALLTYPE *ClearLastSubmittedFrame)(); + void (OPENVR_FNTABLE_CALLTYPE *PostPresentHandoff)(); + bool (OPENVR_FNTABLE_CALLTYPE *GetFrameTiming)(struct Compositor_FrameTiming * pTiming, uint32_t unFramesAgo); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetFrameTimings)(struct Compositor_FrameTiming * pTiming, uint32_t nFrames); + float (OPENVR_FNTABLE_CALLTYPE *GetFrameTimeRemaining)(); + void (OPENVR_FNTABLE_CALLTYPE *GetCumulativeStats)(struct Compositor_CumulativeStats * pStats, uint32_t nStatsSizeInBytes); + void (OPENVR_FNTABLE_CALLTYPE *FadeToColor)(float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground); + struct HmdColor_t (OPENVR_FNTABLE_CALLTYPE *GetCurrentFadeColor)(bool bBackground); + void (OPENVR_FNTABLE_CALLTYPE *FadeGrid)(float fSeconds, bool bFadeIn); + float (OPENVR_FNTABLE_CALLTYPE *GetCurrentGridAlpha)(); + EVRCompositorError (OPENVR_FNTABLE_CALLTYPE *SetSkyboxOverride)(struct Texture_t * pTextures, uint32_t unTextureCount); + void (OPENVR_FNTABLE_CALLTYPE *ClearSkyboxOverride)(); + void (OPENVR_FNTABLE_CALLTYPE *CompositorBringToFront)(); + void (OPENVR_FNTABLE_CALLTYPE *CompositorGoToBack)(); + void (OPENVR_FNTABLE_CALLTYPE *CompositorQuit)(); + bool (OPENVR_FNTABLE_CALLTYPE *IsFullscreen)(); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetCurrentSceneFocusProcess)(); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetLastFrameRenderer)(); + bool (OPENVR_FNTABLE_CALLTYPE *CanRenderScene)(); + void (OPENVR_FNTABLE_CALLTYPE *ShowMirrorWindow)(); + void (OPENVR_FNTABLE_CALLTYPE *HideMirrorWindow)(); + bool (OPENVR_FNTABLE_CALLTYPE *IsMirrorWindowVisible)(); + void (OPENVR_FNTABLE_CALLTYPE *CompositorDumpImages)(); + bool (OPENVR_FNTABLE_CALLTYPE *ShouldAppRenderWithLowResources)(); + void (OPENVR_FNTABLE_CALLTYPE *ForceInterleavedReprojectionOn)(bool bOverride); + void (OPENVR_FNTABLE_CALLTYPE *ForceReconnectProcess)(); + void (OPENVR_FNTABLE_CALLTYPE *SuspendRendering)(bool bSuspend); + EVRCompositorError (OPENVR_FNTABLE_CALLTYPE *GetMirrorTextureD3D11)(EVREye eEye, void * pD3D11DeviceOrResource, void ** ppD3D11ShaderResourceView); + void (OPENVR_FNTABLE_CALLTYPE *ReleaseMirrorTextureD3D11)(void * pD3D11ShaderResourceView); + EVRCompositorError (OPENVR_FNTABLE_CALLTYPE *GetMirrorTextureGL)(EVREye eEye, glUInt_t * pglTextureId, glSharedTextureHandle_t * pglSharedTextureHandle); + bool (OPENVR_FNTABLE_CALLTYPE *ReleaseSharedGLTexture)(glUInt_t glTextureId, glSharedTextureHandle_t glSharedTextureHandle); + void (OPENVR_FNTABLE_CALLTYPE *LockGLSharedTextureForAccess)(glSharedTextureHandle_t glSharedTextureHandle); + void (OPENVR_FNTABLE_CALLTYPE *UnlockGLSharedTextureForAccess)(glSharedTextureHandle_t glSharedTextureHandle); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetVulkanInstanceExtensionsRequired)(char * pchValue, uint32_t unBufferSize); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetVulkanDeviceExtensionsRequired)(struct VkPhysicalDevice_T * pPhysicalDevice, char * pchValue, uint32_t unBufferSize); +}; + +struct VR_IVROverlay_FnTable +{ + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *FindOverlay)(char * pchOverlayKey, VROverlayHandle_t * pOverlayHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *CreateOverlay)(char * pchOverlayKey, char * pchOverlayName, VROverlayHandle_t * pOverlayHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *DestroyOverlay)(VROverlayHandle_t ulOverlayHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetHighQualityOverlay)(VROverlayHandle_t ulOverlayHandle); + VROverlayHandle_t (OPENVR_FNTABLE_CALLTYPE *GetHighQualityOverlay)(); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetOverlayKey)(VROverlayHandle_t ulOverlayHandle, char * pchValue, uint32_t unBufferSize, EVROverlayError * pError); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetOverlayName)(VROverlayHandle_t ulOverlayHandle, char * pchValue, uint32_t unBufferSize, EVROverlayError * pError); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayName)(VROverlayHandle_t ulOverlayHandle, char * pchName); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayImageData)(VROverlayHandle_t ulOverlayHandle, void * pvBuffer, uint32_t unBufferSize, uint32_t * punWidth, uint32_t * punHeight); + char * (OPENVR_FNTABLE_CALLTYPE *GetOverlayErrorNameFromEnum)(EVROverlayError error); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayRenderingPid)(VROverlayHandle_t ulOverlayHandle, uint32_t unPID); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetOverlayRenderingPid)(VROverlayHandle_t ulOverlayHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayFlag)(VROverlayHandle_t ulOverlayHandle, VROverlayFlags eOverlayFlag, bool bEnabled); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayFlag)(VROverlayHandle_t ulOverlayHandle, VROverlayFlags eOverlayFlag, bool * pbEnabled); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayColor)(VROverlayHandle_t ulOverlayHandle, float fRed, float fGreen, float fBlue); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayColor)(VROverlayHandle_t ulOverlayHandle, float * pfRed, float * pfGreen, float * pfBlue); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayAlpha)(VROverlayHandle_t ulOverlayHandle, float fAlpha); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayAlpha)(VROverlayHandle_t ulOverlayHandle, float * pfAlpha); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTexelAspect)(VROverlayHandle_t ulOverlayHandle, float fTexelAspect); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTexelAspect)(VROverlayHandle_t ulOverlayHandle, float * pfTexelAspect); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlaySortOrder)(VROverlayHandle_t ulOverlayHandle, uint32_t unSortOrder); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlaySortOrder)(VROverlayHandle_t ulOverlayHandle, uint32_t * punSortOrder); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayWidthInMeters)(VROverlayHandle_t ulOverlayHandle, float fWidthInMeters); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayWidthInMeters)(VROverlayHandle_t ulOverlayHandle, float * pfWidthInMeters); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayAutoCurveDistanceRangeInMeters)(VROverlayHandle_t ulOverlayHandle, float fMinDistanceInMeters, float fMaxDistanceInMeters); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayAutoCurveDistanceRangeInMeters)(VROverlayHandle_t ulOverlayHandle, float * pfMinDistanceInMeters, float * pfMaxDistanceInMeters); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTextureColorSpace)(VROverlayHandle_t ulOverlayHandle, EColorSpace eTextureColorSpace); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTextureColorSpace)(VROverlayHandle_t ulOverlayHandle, EColorSpace * peTextureColorSpace); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTextureBounds)(VROverlayHandle_t ulOverlayHandle, struct VRTextureBounds_t * pOverlayTextureBounds); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTextureBounds)(VROverlayHandle_t ulOverlayHandle, struct VRTextureBounds_t * pOverlayTextureBounds); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetOverlayRenderModel)(VROverlayHandle_t ulOverlayHandle, char * pchValue, uint32_t unBufferSize, struct HmdColor_t * pColor, EVROverlayError * pError); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayRenderModel)(VROverlayHandle_t ulOverlayHandle, char * pchRenderModel, struct HmdColor_t * pColor); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTransformType)(VROverlayHandle_t ulOverlayHandle, VROverlayTransformType * peTransformType); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTransformAbsolute)(VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, struct HmdMatrix34_t * pmatTrackingOriginToOverlayTransform); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTransformAbsolute)(VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin * peTrackingOrigin, struct HmdMatrix34_t * pmatTrackingOriginToOverlayTransform); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTransformTrackedDeviceRelative)(VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unTrackedDevice, struct HmdMatrix34_t * pmatTrackedDeviceToOverlayTransform); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTransformTrackedDeviceRelative)(VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t * punTrackedDevice, struct HmdMatrix34_t * pmatTrackedDeviceToOverlayTransform); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTransformTrackedDeviceComponent)(VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unDeviceIndex, char * pchComponentName); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTransformTrackedDeviceComponent)(VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t * punDeviceIndex, char * pchComponentName, uint32_t unComponentNameSize); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTransformOverlayRelative)(VROverlayHandle_t ulOverlayHandle, VROverlayHandle_t * ulOverlayHandleParent, struct HmdMatrix34_t * pmatParentOverlayToOverlayTransform); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTransformOverlayRelative)(VROverlayHandle_t ulOverlayHandle, VROverlayHandle_t ulOverlayHandleParent, struct HmdMatrix34_t * pmatParentOverlayToOverlayTransform); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *ShowOverlay)(VROverlayHandle_t ulOverlayHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *HideOverlay)(VROverlayHandle_t ulOverlayHandle); + bool (OPENVR_FNTABLE_CALLTYPE *IsOverlayVisible)(VROverlayHandle_t ulOverlayHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetTransformForOverlayCoordinates)(VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, struct HmdVector2_t coordinatesInOverlay, struct HmdMatrix34_t * pmatTransform); + bool (OPENVR_FNTABLE_CALLTYPE *PollNextOverlayEvent)(VROverlayHandle_t ulOverlayHandle, struct VREvent_t * pEvent, uint32_t uncbVREvent); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayInputMethod)(VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod * peInputMethod); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayInputMethod)(VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod eInputMethod); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayMouseScale)(VROverlayHandle_t ulOverlayHandle, struct HmdVector2_t * pvecMouseScale); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayMouseScale)(VROverlayHandle_t ulOverlayHandle, struct HmdVector2_t * pvecMouseScale); + bool (OPENVR_FNTABLE_CALLTYPE *ComputeOverlayIntersection)(VROverlayHandle_t ulOverlayHandle, struct VROverlayIntersectionParams_t * pParams, struct VROverlayIntersectionResults_t * pResults); + bool (OPENVR_FNTABLE_CALLTYPE *HandleControllerOverlayInteractionAsMouse)(VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unControllerDeviceIndex); + bool (OPENVR_FNTABLE_CALLTYPE *IsHoverTargetOverlay)(VROverlayHandle_t ulOverlayHandle); + VROverlayHandle_t (OPENVR_FNTABLE_CALLTYPE *GetGamepadFocusOverlay)(); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetGamepadFocusOverlay)(VROverlayHandle_t ulNewFocusOverlay); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayNeighbor)(EOverlayDirection eDirection, VROverlayHandle_t ulFrom, VROverlayHandle_t ulTo); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *MoveGamepadFocusToNeighbor)(EOverlayDirection eDirection, VROverlayHandle_t ulFrom); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTexture)(VROverlayHandle_t ulOverlayHandle, struct Texture_t * pTexture); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *ClearOverlayTexture)(VROverlayHandle_t ulOverlayHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayRaw)(VROverlayHandle_t ulOverlayHandle, void * pvBuffer, uint32_t unWidth, uint32_t unHeight, uint32_t unDepth); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayFromFile)(VROverlayHandle_t ulOverlayHandle, char * pchFilePath); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTexture)(VROverlayHandle_t ulOverlayHandle, void ** pNativeTextureHandle, void * pNativeTextureRef, uint32_t * pWidth, uint32_t * pHeight, uint32_t * pNativeFormat, ETextureType * pAPIType, EColorSpace * pColorSpace, struct VRTextureBounds_t * pTextureBounds); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *ReleaseNativeOverlayHandle)(VROverlayHandle_t ulOverlayHandle, void * pNativeTextureHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTextureSize)(VROverlayHandle_t ulOverlayHandle, uint32_t * pWidth, uint32_t * pHeight); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *CreateDashboardOverlay)(char * pchOverlayKey, char * pchOverlayFriendlyName, VROverlayHandle_t * pMainHandle, VROverlayHandle_t * pThumbnailHandle); + bool (OPENVR_FNTABLE_CALLTYPE *IsDashboardVisible)(); + bool (OPENVR_FNTABLE_CALLTYPE *IsActiveDashboardOverlay)(VROverlayHandle_t ulOverlayHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetDashboardOverlaySceneProcess)(VROverlayHandle_t ulOverlayHandle, uint32_t unProcessId); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetDashboardOverlaySceneProcess)(VROverlayHandle_t ulOverlayHandle, uint32_t * punProcessId); + void (OPENVR_FNTABLE_CALLTYPE *ShowDashboard)(char * pchOverlayToShow); + TrackedDeviceIndex_t (OPENVR_FNTABLE_CALLTYPE *GetPrimaryDashboardDevice)(); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *ShowKeyboard)(EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, char * pchDescription, uint32_t unCharMax, char * pchExistingText, bool bUseMinimalMode, uint64_t uUserValue); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *ShowKeyboardForOverlay)(VROverlayHandle_t ulOverlayHandle, EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, char * pchDescription, uint32_t unCharMax, char * pchExistingText, bool bUseMinimalMode, uint64_t uUserValue); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetKeyboardText)(char * pchText, uint32_t cchText); + void (OPENVR_FNTABLE_CALLTYPE *HideKeyboard)(); + void (OPENVR_FNTABLE_CALLTYPE *SetKeyboardTransformAbsolute)(ETrackingUniverseOrigin eTrackingOrigin, struct HmdMatrix34_t * pmatTrackingOriginToKeyboardTransform); + void (OPENVR_FNTABLE_CALLTYPE *SetKeyboardPositionForOverlay)(VROverlayHandle_t ulOverlayHandle, struct HmdRect2_t avoidRect); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayIntersectionMask)(VROverlayHandle_t ulOverlayHandle, struct VROverlayIntersectionMaskPrimitive_t * pMaskPrimitives, uint32_t unNumMaskPrimitives, uint32_t unPrimitiveSize); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayFlags)(VROverlayHandle_t ulOverlayHandle, uint32_t * pFlags); + VRMessageOverlayResponse (OPENVR_FNTABLE_CALLTYPE *ShowMessageOverlay)(char * pchText, char * pchCaption, char * pchButton0Text, char * pchButton1Text, char * pchButton2Text, char * pchButton3Text); +}; + +struct VR_IVRRenderModels_FnTable +{ + EVRRenderModelError (OPENVR_FNTABLE_CALLTYPE *LoadRenderModel_Async)(char * pchRenderModelName, struct RenderModel_t ** ppRenderModel); + void (OPENVR_FNTABLE_CALLTYPE *FreeRenderModel)(struct RenderModel_t * pRenderModel); + EVRRenderModelError (OPENVR_FNTABLE_CALLTYPE *LoadTexture_Async)(TextureID_t textureId, struct RenderModel_TextureMap_t ** ppTexture); + void (OPENVR_FNTABLE_CALLTYPE *FreeTexture)(struct RenderModel_TextureMap_t * pTexture); + EVRRenderModelError (OPENVR_FNTABLE_CALLTYPE *LoadTextureD3D11_Async)(TextureID_t textureId, void * pD3D11Device, void ** ppD3D11Texture2D); + EVRRenderModelError (OPENVR_FNTABLE_CALLTYPE *LoadIntoTextureD3D11_Async)(TextureID_t textureId, void * pDstTexture); + void (OPENVR_FNTABLE_CALLTYPE *FreeTextureD3D11)(void * pD3D11Texture2D); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetRenderModelName)(uint32_t unRenderModelIndex, char * pchRenderModelName, uint32_t unRenderModelNameLen); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetRenderModelCount)(); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetComponentCount)(char * pchRenderModelName); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetComponentName)(char * pchRenderModelName, uint32_t unComponentIndex, char * pchComponentName, uint32_t unComponentNameLen); + uint64_t (OPENVR_FNTABLE_CALLTYPE *GetComponentButtonMask)(char * pchRenderModelName, char * pchComponentName); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetComponentRenderModelName)(char * pchRenderModelName, char * pchComponentName, char * pchComponentRenderModelName, uint32_t unComponentRenderModelNameLen); + bool (OPENVR_FNTABLE_CALLTYPE *GetComponentState)(char * pchRenderModelName, char * pchComponentName, VRControllerState_t * pControllerState, struct RenderModel_ControllerMode_State_t * pState, struct RenderModel_ComponentState_t * pComponentState); + bool (OPENVR_FNTABLE_CALLTYPE *RenderModelHasComponent)(char * pchRenderModelName, char * pchComponentName); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetRenderModelThumbnailURL)(char * pchRenderModelName, char * pchThumbnailURL, uint32_t unThumbnailURLLen, EVRRenderModelError * peError); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetRenderModelOriginalPath)(char * pchRenderModelName, char * pchOriginalPath, uint32_t unOriginalPathLen, EVRRenderModelError * peError); + char * (OPENVR_FNTABLE_CALLTYPE *GetRenderModelErrorNameFromEnum)(EVRRenderModelError error); +}; + +struct VR_IVRNotifications_FnTable +{ + EVRNotificationError (OPENVR_FNTABLE_CALLTYPE *CreateNotification)(VROverlayHandle_t ulOverlayHandle, uint64_t ulUserValue, EVRNotificationType type, char * pchText, EVRNotificationStyle style, struct NotificationBitmap_t * pImage, VRNotificationId * pNotificationId); + EVRNotificationError (OPENVR_FNTABLE_CALLTYPE *RemoveNotification)(VRNotificationId notificationId); +}; + +struct VR_IVRSettings_FnTable +{ + char * (OPENVR_FNTABLE_CALLTYPE *GetSettingsErrorNameFromEnum)(EVRSettingsError eError); + bool (OPENVR_FNTABLE_CALLTYPE *Sync)(bool bForce, EVRSettingsError * peError); + void (OPENVR_FNTABLE_CALLTYPE *SetBool)(char * pchSection, char * pchSettingsKey, bool bValue, EVRSettingsError * peError); + void (OPENVR_FNTABLE_CALLTYPE *SetInt32)(char * pchSection, char * pchSettingsKey, int32_t nValue, EVRSettingsError * peError); + void (OPENVR_FNTABLE_CALLTYPE *SetFloat)(char * pchSection, char * pchSettingsKey, float flValue, EVRSettingsError * peError); + void (OPENVR_FNTABLE_CALLTYPE *SetString)(char * pchSection, char * pchSettingsKey, char * pchValue, EVRSettingsError * peError); + bool (OPENVR_FNTABLE_CALLTYPE *GetBool)(char * pchSection, char * pchSettingsKey, EVRSettingsError * peError); + int32_t (OPENVR_FNTABLE_CALLTYPE *GetInt32)(char * pchSection, char * pchSettingsKey, EVRSettingsError * peError); + float (OPENVR_FNTABLE_CALLTYPE *GetFloat)(char * pchSection, char * pchSettingsKey, EVRSettingsError * peError); + void (OPENVR_FNTABLE_CALLTYPE *GetString)(char * pchSection, char * pchSettingsKey, char * pchValue, uint32_t unValueLen, EVRSettingsError * peError); + void (OPENVR_FNTABLE_CALLTYPE *RemoveSection)(char * pchSection, EVRSettingsError * peError); + void (OPENVR_FNTABLE_CALLTYPE *RemoveKeyInSection)(char * pchSection, char * pchSettingsKey, EVRSettingsError * peError); +}; + +struct VR_IVRScreenshots_FnTable +{ + EVRScreenshotError (OPENVR_FNTABLE_CALLTYPE *RequestScreenshot)(ScreenshotHandle_t * pOutScreenshotHandle, EVRScreenshotType type, char * pchPreviewFilename, char * pchVRFilename); + EVRScreenshotError (OPENVR_FNTABLE_CALLTYPE *HookScreenshot)(EVRScreenshotType * pSupportedTypes, int numTypes); + EVRScreenshotType (OPENVR_FNTABLE_CALLTYPE *GetScreenshotPropertyType)(ScreenshotHandle_t screenshotHandle, EVRScreenshotError * pError); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetScreenshotPropertyFilename)(ScreenshotHandle_t screenshotHandle, EVRScreenshotPropertyFilenames filenameType, char * pchFilename, uint32_t cchFilename, EVRScreenshotError * pError); + EVRScreenshotError (OPENVR_FNTABLE_CALLTYPE *UpdateScreenshotProgress)(ScreenshotHandle_t screenshotHandle, float flProgress); + EVRScreenshotError (OPENVR_FNTABLE_CALLTYPE *TakeStereoScreenshot)(ScreenshotHandle_t * pOutScreenshotHandle, char * pchPreviewFilename, char * pchVRFilename); + EVRScreenshotError (OPENVR_FNTABLE_CALLTYPE *SubmitScreenshot)(ScreenshotHandle_t screenshotHandle, EVRScreenshotType type, char * pchSourcePreviewFilename, char * pchSourceVRFilename); +}; + +struct VR_IVRResources_FnTable +{ + uint32_t (OPENVR_FNTABLE_CALLTYPE *LoadSharedResource)(char * pchResourceName, char * pchBuffer, uint32_t unBufferLen); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetResourceFullPath)(char * pchResourceName, char * pchResourceTypeDirectory, char * pchPathBuffer, uint32_t unBufferLen); +}; + +struct VR_IVRDriverManager_FnTable +{ + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetDriverCount)(); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetDriverName)(DriverId_t nDriver, char * pchValue, uint32_t unBufferSize); +}; + + +#if 0 +// Global entry points +S_API intptr_t VR_InitInternal( EVRInitError *peError, EVRApplicationType eType ); +S_API void VR_ShutdownInternal(); +S_API bool VR_IsHmdPresent(); +S_API intptr_t VR_GetGenericInterface( const char *pchInterfaceVersion, EVRInitError *peError ); +S_API bool VR_IsRuntimeInstalled(); +S_API const char * VR_GetVRInitErrorAsSymbol( EVRInitError error ); +S_API const char * VR_GetVRInitErrorAsEnglishDescription( EVRInitError error ); +#endif + +#endif // __OPENVR_API_FLAT_H__ + + diff --git a/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Headers/openvr_driver.h b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Headers/openvr_driver.h new file mode 100644 index 000000000..bfe24c003 --- /dev/null +++ b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Headers/openvr_driver.h @@ -0,0 +1,2677 @@ +#pragma once + +// openvr_driver.h +//========= Copyright Valve Corporation ============// +// Dynamically generated file. Do not modify this file directly. + +#ifndef _OPENVR_DRIVER_API +#define _OPENVR_DRIVER_API + +#include + + + +// vrtypes.h +#ifndef _INCLUDE_VRTYPES_H +#define _INCLUDE_VRTYPES_H + +// Forward declarations to avoid requiring vulkan.h +struct VkDevice_T; +struct VkPhysicalDevice_T; +struct VkInstance_T; +struct VkQueue_T; + +// Forward declarations to avoid requiring d3d12.h +struct ID3D12Resource; +struct ID3D12CommandQueue; + +namespace vr +{ +#pragma pack( push, 8 ) + +typedef void* glSharedTextureHandle_t; +typedef int32_t glInt_t; +typedef uint32_t glUInt_t; + +// right-handed system +// +y is up +// +x is to the right +// -z is going away from you +// Distance unit is meters +struct HmdMatrix34_t +{ + float m[3][4]; +}; + +struct HmdMatrix44_t +{ + float m[4][4]; +}; + +struct HmdVector3_t +{ + float v[3]; +}; + +struct HmdVector4_t +{ + float v[4]; +}; + +struct HmdVector3d_t +{ + double v[3]; +}; + +struct HmdVector2_t +{ + float v[2]; +}; + +struct HmdQuaternion_t +{ + double w, x, y, z; +}; + +struct HmdColor_t +{ + float r, g, b, a; +}; + +struct HmdQuad_t +{ + HmdVector3_t vCorners[ 4 ]; +}; + +struct HmdRect2_t +{ + HmdVector2_t vTopLeft; + HmdVector2_t vBottomRight; +}; + +/** Used to return the post-distortion UVs for each color channel. +* UVs range from 0 to 1 with 0,0 in the upper left corner of the +* source render target. The 0,0 to 1,1 range covers a single eye. */ +struct DistortionCoordinates_t +{ + float rfRed[2]; + float rfGreen[2]; + float rfBlue[2]; +}; + +enum EVREye +{ + Eye_Left = 0, + Eye_Right = 1 +}; + +enum ETextureType +{ + TextureType_DirectX = 0, // Handle is an ID3D11Texture + TextureType_OpenGL = 1, // Handle is an OpenGL texture name or an OpenGL render buffer name, depending on submit flags + TextureType_Vulkan = 2, // Handle is a pointer to a VRVulkanTextureData_t structure + TextureType_IOSurface = 3, // Handle is a macOS cross-process-sharable IOSurfaceRef + TextureType_DirectX12 = 4, // Handle is a pointer to a D3D12TextureData_t structure +}; + +enum EColorSpace +{ + ColorSpace_Auto = 0, // Assumes 'gamma' for 8-bit per component formats, otherwise 'linear'. This mirrors the DXGI formats which have _SRGB variants. + ColorSpace_Gamma = 1, // Texture data can be displayed directly on the display without any conversion (a.k.a. display native format). + ColorSpace_Linear = 2, // Same as gamma but has been converted to a linear representation using DXGI's sRGB conversion algorithm. +}; + +struct Texture_t +{ + void* handle; // See ETextureType definition above + ETextureType eType; + EColorSpace eColorSpace; +}; + +// Handle to a shared texture (HANDLE on Windows obtained using OpenSharedResource). +typedef uint64_t SharedTextureHandle_t; +#define INVALID_SHARED_TEXTURE_HANDLE ((vr::SharedTextureHandle_t)0) + +enum ETrackingResult +{ + TrackingResult_Uninitialized = 1, + + TrackingResult_Calibrating_InProgress = 100, + TrackingResult_Calibrating_OutOfRange = 101, + + TrackingResult_Running_OK = 200, + TrackingResult_Running_OutOfRange = 201, +}; + +typedef uint32_t DriverId_t; +static const uint32_t k_nDriverNone = 0xFFFFFFFF; + +static const uint32_t k_unMaxDriverDebugResponseSize = 32768; + +/** Used to pass device IDs to API calls */ +typedef uint32_t TrackedDeviceIndex_t; +static const uint32_t k_unTrackedDeviceIndex_Hmd = 0; +static const uint32_t k_unMaxTrackedDeviceCount = 16; +static const uint32_t k_unTrackedDeviceIndexOther = 0xFFFFFFFE; +static const uint32_t k_unTrackedDeviceIndexInvalid = 0xFFFFFFFF; + +/** Describes what kind of object is being tracked at a given ID */ +enum ETrackedDeviceClass +{ + TrackedDeviceClass_Invalid = 0, // the ID was not valid. + TrackedDeviceClass_HMD = 1, // Head-Mounted Displays + TrackedDeviceClass_Controller = 2, // Tracked controllers + TrackedDeviceClass_GenericTracker = 3, // Generic trackers, similar to controllers + TrackedDeviceClass_TrackingReference = 4, // Camera and base stations that serve as tracking reference points + TrackedDeviceClass_DisplayRedirect = 5, // Accessories that aren't necessarily tracked themselves, but may redirect video output from other tracked devices +}; + + +/** Describes what specific role associated with a tracked device */ +enum ETrackedControllerRole +{ + TrackedControllerRole_Invalid = 0, // Invalid value for controller type + TrackedControllerRole_LeftHand = 1, // Tracked device associated with the left hand + TrackedControllerRole_RightHand = 2, // Tracked device associated with the right hand +}; + + +/** describes a single pose for a tracked object */ +struct TrackedDevicePose_t +{ + HmdMatrix34_t mDeviceToAbsoluteTracking; + HmdVector3_t vVelocity; // velocity in tracker space in m/s + HmdVector3_t vAngularVelocity; // angular velocity in radians/s (?) + ETrackingResult eTrackingResult; + bool bPoseIsValid; + + // This indicates that there is a device connected for this spot in the pose array. + // It could go from true to false if the user unplugs the device. + bool bDeviceIsConnected; +}; + +/** Identifies which style of tracking origin the application wants to use +* for the poses it is requesting */ +enum ETrackingUniverseOrigin +{ + TrackingUniverseSeated = 0, // Poses are provided relative to the seated zero pose + TrackingUniverseStanding = 1, // Poses are provided relative to the safe bounds configured by the user + TrackingUniverseRawAndUncalibrated = 2, // Poses are provided in the coordinate system defined by the driver. It has Y up and is unified for devices of the same driver. You usually don't want this one. +}; + +// Refers to a single container of properties +typedef uint64_t PropertyContainerHandle_t; +typedef uint32_t PropertyTypeTag_t; + +static const PropertyContainerHandle_t k_ulInvalidPropertyContainer = 0; +static const PropertyTypeTag_t k_unInvalidPropertyTag = 0; + +// Use these tags to set/get common types as struct properties +static const PropertyTypeTag_t k_unFloatPropertyTag = 1; +static const PropertyTypeTag_t k_unInt32PropertyTag = 2; +static const PropertyTypeTag_t k_unUint64PropertyTag = 3; +static const PropertyTypeTag_t k_unBoolPropertyTag = 4; +static const PropertyTypeTag_t k_unStringPropertyTag = 5; + +static const PropertyTypeTag_t k_unHmdMatrix34PropertyTag = 20; +static const PropertyTypeTag_t k_unHmdMatrix44PropertyTag = 21; +static const PropertyTypeTag_t k_unHmdVector3PropertyTag = 22; +static const PropertyTypeTag_t k_unHmdVector4PropertyTag = 23; + +static const PropertyTypeTag_t k_unHiddenAreaPropertyTag = 30; + +static const PropertyTypeTag_t k_unOpenVRInternalReserved_Start = 1000; +static const PropertyTypeTag_t k_unOpenVRInternalReserved_End = 10000; + + +/** Each entry in this enum represents a property that can be retrieved about a +* tracked device. Many fields are only valid for one ETrackedDeviceClass. */ +enum ETrackedDeviceProperty +{ + Prop_Invalid = 0, + + // general properties that apply to all device classes + Prop_TrackingSystemName_String = 1000, + Prop_ModelNumber_String = 1001, + Prop_SerialNumber_String = 1002, + Prop_RenderModelName_String = 1003, + Prop_WillDriftInYaw_Bool = 1004, + Prop_ManufacturerName_String = 1005, + Prop_TrackingFirmwareVersion_String = 1006, + Prop_HardwareRevision_String = 1007, + Prop_AllWirelessDongleDescriptions_String = 1008, + Prop_ConnectedWirelessDongle_String = 1009, + Prop_DeviceIsWireless_Bool = 1010, + Prop_DeviceIsCharging_Bool = 1011, + Prop_DeviceBatteryPercentage_Float = 1012, // 0 is empty, 1 is full + Prop_StatusDisplayTransform_Matrix34 = 1013, + Prop_Firmware_UpdateAvailable_Bool = 1014, + Prop_Firmware_ManualUpdate_Bool = 1015, + Prop_Firmware_ManualUpdateURL_String = 1016, + Prop_HardwareRevision_Uint64 = 1017, + Prop_FirmwareVersion_Uint64 = 1018, + Prop_FPGAVersion_Uint64 = 1019, + Prop_VRCVersion_Uint64 = 1020, + Prop_RadioVersion_Uint64 = 1021, + Prop_DongleVersion_Uint64 = 1022, + Prop_BlockServerShutdown_Bool = 1023, + Prop_CanUnifyCoordinateSystemWithHmd_Bool = 1024, + Prop_ContainsProximitySensor_Bool = 1025, + Prop_DeviceProvidesBatteryStatus_Bool = 1026, + Prop_DeviceCanPowerOff_Bool = 1027, + Prop_Firmware_ProgrammingTarget_String = 1028, + Prop_DeviceClass_Int32 = 1029, + Prop_HasCamera_Bool = 1030, + Prop_DriverVersion_String = 1031, + Prop_Firmware_ForceUpdateRequired_Bool = 1032, + Prop_ViveSystemButtonFixRequired_Bool = 1033, + Prop_ParentDriver_Uint64 = 1034, + Prop_ResourceRoot_String = 1035, + + // Properties that are unique to TrackedDeviceClass_HMD + Prop_ReportsTimeSinceVSync_Bool = 2000, + Prop_SecondsFromVsyncToPhotons_Float = 2001, + Prop_DisplayFrequency_Float = 2002, + Prop_UserIpdMeters_Float = 2003, + Prop_CurrentUniverseId_Uint64 = 2004, + Prop_PreviousUniverseId_Uint64 = 2005, + Prop_DisplayFirmwareVersion_Uint64 = 2006, + Prop_IsOnDesktop_Bool = 2007, + Prop_DisplayMCType_Int32 = 2008, + Prop_DisplayMCOffset_Float = 2009, + Prop_DisplayMCScale_Float = 2010, + Prop_EdidVendorID_Int32 = 2011, + Prop_DisplayMCImageLeft_String = 2012, + Prop_DisplayMCImageRight_String = 2013, + Prop_DisplayGCBlackClamp_Float = 2014, + Prop_EdidProductID_Int32 = 2015, + Prop_CameraToHeadTransform_Matrix34 = 2016, + Prop_DisplayGCType_Int32 = 2017, + Prop_DisplayGCOffset_Float = 2018, + Prop_DisplayGCScale_Float = 2019, + Prop_DisplayGCPrescale_Float = 2020, + Prop_DisplayGCImage_String = 2021, + Prop_LensCenterLeftU_Float = 2022, + Prop_LensCenterLeftV_Float = 2023, + Prop_LensCenterRightU_Float = 2024, + Prop_LensCenterRightV_Float = 2025, + Prop_UserHeadToEyeDepthMeters_Float = 2026, + Prop_CameraFirmwareVersion_Uint64 = 2027, + Prop_CameraFirmwareDescription_String = 2028, + Prop_DisplayFPGAVersion_Uint64 = 2029, + Prop_DisplayBootloaderVersion_Uint64 = 2030, + Prop_DisplayHardwareVersion_Uint64 = 2031, + Prop_AudioFirmwareVersion_Uint64 = 2032, + Prop_CameraCompatibilityMode_Int32 = 2033, + Prop_ScreenshotHorizontalFieldOfViewDegrees_Float = 2034, + Prop_ScreenshotVerticalFieldOfViewDegrees_Float = 2035, + Prop_DisplaySuppressed_Bool = 2036, + Prop_DisplayAllowNightMode_Bool = 2037, + Prop_DisplayMCImageWidth_Int32 = 2038, + Prop_DisplayMCImageHeight_Int32 = 2039, + Prop_DisplayMCImageNumChannels_Int32 = 2040, + Prop_DisplayMCImageData_Binary = 2041, + Prop_SecondsFromPhotonsToVblank_Float = 2042, + Prop_DriverDirectModeSendsVsyncEvents_Bool = 2043, + Prop_DisplayDebugMode_Bool = 2044, + Prop_GraphicsAdapterLuid_Uint64 = 2045, + + // Properties that are unique to TrackedDeviceClass_Controller + Prop_AttachedDeviceId_String = 3000, + Prop_SupportedButtons_Uint64 = 3001, + Prop_Axis0Type_Int32 = 3002, // Return value is of type EVRControllerAxisType + Prop_Axis1Type_Int32 = 3003, // Return value is of type EVRControllerAxisType + Prop_Axis2Type_Int32 = 3004, // Return value is of type EVRControllerAxisType + Prop_Axis3Type_Int32 = 3005, // Return value is of type EVRControllerAxisType + Prop_Axis4Type_Int32 = 3006, // Return value is of type EVRControllerAxisType + Prop_ControllerRoleHint_Int32 = 3007, // Return value is of type ETrackedControllerRole + + // Properties that are unique to TrackedDeviceClass_TrackingReference + Prop_FieldOfViewLeftDegrees_Float = 4000, + Prop_FieldOfViewRightDegrees_Float = 4001, + Prop_FieldOfViewTopDegrees_Float = 4002, + Prop_FieldOfViewBottomDegrees_Float = 4003, + Prop_TrackingRangeMinimumMeters_Float = 4004, + Prop_TrackingRangeMaximumMeters_Float = 4005, + Prop_ModeLabel_String = 4006, + + // Properties that are used for user interface like icons names + Prop_IconPathName_String = 5000, // DEPRECATED. Value not referenced. Now expected to be part of icon path properties. + Prop_NamedIconPathDeviceOff_String = 5001, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceSearching_String = 5002, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceSearchingAlert_String = 5003, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceReady_String = 5004, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceReadyAlert_String = 5005, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceNotReady_String = 5006, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceStandby_String = 5007, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceAlertLow_String = 5008, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + + // Properties that are used by helpers, but are opaque to applications + Prop_DisplayHiddenArea_Binary_Start = 5100, + Prop_DisplayHiddenArea_Binary_End = 5150, + + // Properties that are unique to drivers + Prop_UserConfigPath_String = 6000, + Prop_InstallPath_String = 6001, + Prop_HasDisplayComponent_Bool = 6002, + Prop_HasControllerComponent_Bool = 6003, + Prop_HasCameraComponent_Bool = 6004, + Prop_HasDriverDirectModeComponent_Bool = 6005, + Prop_HasVirtualDisplayComponent_Bool = 6006, + + // Vendors are free to expose private debug data in this reserved region + Prop_VendorSpecific_Reserved_Start = 10000, + Prop_VendorSpecific_Reserved_End = 10999, +}; + +/** No string property will ever be longer than this length */ +static const uint32_t k_unMaxPropertyStringSize = 32 * 1024; + +/** Used to return errors that occur when reading properties. */ +enum ETrackedPropertyError +{ + TrackedProp_Success = 0, + TrackedProp_WrongDataType = 1, + TrackedProp_WrongDeviceClass = 2, + TrackedProp_BufferTooSmall = 3, + TrackedProp_UnknownProperty = 4, // Driver has not set the property (and may not ever). + TrackedProp_InvalidDevice = 5, + TrackedProp_CouldNotContactServer = 6, + TrackedProp_ValueNotProvidedByDevice = 7, + TrackedProp_StringExceedsMaximumLength = 8, + TrackedProp_NotYetAvailable = 9, // The property value isn't known yet, but is expected soon. Call again later. + TrackedProp_PermissionDenied = 10, + TrackedProp_InvalidOperation = 11, +}; + +/** Allows the application to control what part of the provided texture will be used in the +* frame buffer. */ +struct VRTextureBounds_t +{ + float uMin, vMin; + float uMax, vMax; +}; + + +/** Allows the application to control how scene textures are used by the compositor when calling Submit. */ +enum EVRSubmitFlags +{ + // Simple render path. App submits rendered left and right eye images with no lens distortion correction applied. + Submit_Default = 0x00, + + // App submits final left and right eye images with lens distortion already applied (lens distortion makes the images appear + // barrel distorted with chromatic aberration correction applied). The app would have used the data returned by + // vr::IVRSystem::ComputeDistortion() to apply the correct distortion to the rendered images before calling Submit(). + Submit_LensDistortionAlreadyApplied = 0x01, + + // If the texture pointer passed in is actually a renderbuffer (e.g. for MSAA in OpenGL) then set this flag. + Submit_GlRenderBuffer = 0x02, + + // Do not use + Submit_Reserved = 0x04, +}; + +/** Data required for passing Vulkan textures to IVRCompositor::Submit. +* Be sure to call OpenVR_Shutdown before destroying these resources. */ +struct VRVulkanTextureData_t +{ + uint64_t m_nImage; // VkImage + VkDevice_T *m_pDevice; + VkPhysicalDevice_T *m_pPhysicalDevice; + VkInstance_T *m_pInstance; + VkQueue_T *m_pQueue; + uint32_t m_nQueueFamilyIndex; + uint32_t m_nWidth, m_nHeight, m_nFormat, m_nSampleCount; +}; + +/** Data required for passing D3D12 textures to IVRCompositor::Submit. +* Be sure to call OpenVR_Shutdown before destroying these resources. */ +struct D3D12TextureData_t +{ + ID3D12Resource *m_pResource; + ID3D12CommandQueue *m_pCommandQueue; + uint32_t m_nNodeMask; +}; + +/** Status of the overall system or tracked objects */ +enum EVRState +{ + VRState_Undefined = -1, + VRState_Off = 0, + VRState_Searching = 1, + VRState_Searching_Alert = 2, + VRState_Ready = 3, + VRState_Ready_Alert = 4, + VRState_NotReady = 5, + VRState_Standby = 6, + VRState_Ready_Alert_Low = 7, +}; + +/** The types of events that could be posted (and what the parameters mean for each event type) */ +enum EVREventType +{ + VREvent_None = 0, + + VREvent_TrackedDeviceActivated = 100, + VREvent_TrackedDeviceDeactivated = 101, + VREvent_TrackedDeviceUpdated = 102, + VREvent_TrackedDeviceUserInteractionStarted = 103, + VREvent_TrackedDeviceUserInteractionEnded = 104, + VREvent_IpdChanged = 105, + VREvent_EnterStandbyMode = 106, + VREvent_LeaveStandbyMode = 107, + VREvent_TrackedDeviceRoleChanged = 108, + VREvent_WatchdogWakeUpRequested = 109, + VREvent_LensDistortionChanged = 110, + VREvent_PropertyChanged = 111, + + VREvent_ButtonPress = 200, // data is controller + VREvent_ButtonUnpress = 201, // data is controller + VREvent_ButtonTouch = 202, // data is controller + VREvent_ButtonUntouch = 203, // data is controller + + VREvent_MouseMove = 300, // data is mouse + VREvent_MouseButtonDown = 301, // data is mouse + VREvent_MouseButtonUp = 302, // data is mouse + VREvent_FocusEnter = 303, // data is overlay + VREvent_FocusLeave = 304, // data is overlay + VREvent_Scroll = 305, // data is mouse + VREvent_TouchPadMove = 306, // data is mouse + VREvent_OverlayFocusChanged = 307, // data is overlay, global event + + VREvent_InputFocusCaptured = 400, // data is process DEPRECATED + VREvent_InputFocusReleased = 401, // data is process DEPRECATED + VREvent_SceneFocusLost = 402, // data is process + VREvent_SceneFocusGained = 403, // data is process + VREvent_SceneApplicationChanged = 404, // data is process - The App actually drawing the scene changed (usually to or from the compositor) + VREvent_SceneFocusChanged = 405, // data is process - New app got access to draw the scene + VREvent_InputFocusChanged = 406, // data is process + VREvent_SceneApplicationSecondaryRenderingStarted = 407, // data is process + + VREvent_HideRenderModels = 410, // Sent to the scene application to request hiding render models temporarily + VREvent_ShowRenderModels = 411, // Sent to the scene application to request restoring render model visibility + + VREvent_OverlayShown = 500, + VREvent_OverlayHidden = 501, + VREvent_DashboardActivated = 502, + VREvent_DashboardDeactivated = 503, + VREvent_DashboardThumbSelected = 504, // Sent to the overlay manager - data is overlay + VREvent_DashboardRequested = 505, // Sent to the overlay manager - data is overlay + VREvent_ResetDashboard = 506, // Send to the overlay manager + VREvent_RenderToast = 507, // Send to the dashboard to render a toast - data is the notification ID + VREvent_ImageLoaded = 508, // Sent to overlays when a SetOverlayRaw or SetOverlayFromFile call finishes loading + VREvent_ShowKeyboard = 509, // Sent to keyboard renderer in the dashboard to invoke it + VREvent_HideKeyboard = 510, // Sent to keyboard renderer in the dashboard to hide it + VREvent_OverlayGamepadFocusGained = 511, // Sent to an overlay when IVROverlay::SetFocusOverlay is called on it + VREvent_OverlayGamepadFocusLost = 512, // Send to an overlay when it previously had focus and IVROverlay::SetFocusOverlay is called on something else + VREvent_OverlaySharedTextureChanged = 513, + VREvent_DashboardGuideButtonDown = 514, + VREvent_DashboardGuideButtonUp = 515, + VREvent_ScreenshotTriggered = 516, // Screenshot button combo was pressed, Dashboard should request a screenshot + VREvent_ImageFailed = 517, // Sent to overlays when a SetOverlayRaw or SetOverlayfromFail fails to load + VREvent_DashboardOverlayCreated = 518, + + // Screenshot API + VREvent_RequestScreenshot = 520, // Sent by vrclient application to compositor to take a screenshot + VREvent_ScreenshotTaken = 521, // Sent by compositor to the application that the screenshot has been taken + VREvent_ScreenshotFailed = 522, // Sent by compositor to the application that the screenshot failed to be taken + VREvent_SubmitScreenshotToDashboard = 523, // Sent by compositor to the dashboard that a completed screenshot was submitted + VREvent_ScreenshotProgressToDashboard = 524, // Sent by compositor to the dashboard that a completed screenshot was submitted + + VREvent_PrimaryDashboardDeviceChanged = 525, + + VREvent_Notification_Shown = 600, + VREvent_Notification_Hidden = 601, + VREvent_Notification_BeginInteraction = 602, + VREvent_Notification_Destroyed = 603, + + VREvent_Quit = 700, // data is process + VREvent_ProcessQuit = 701, // data is process + VREvent_QuitAborted_UserPrompt = 702, // data is process + VREvent_QuitAcknowledged = 703, // data is process + VREvent_DriverRequestedQuit = 704, // The driver has requested that SteamVR shut down + + VREvent_ChaperoneDataHasChanged = 800, + VREvent_ChaperoneUniverseHasChanged = 801, + VREvent_ChaperoneTempDataHasChanged = 802, + VREvent_ChaperoneSettingsHaveChanged = 803, + VREvent_SeatedZeroPoseReset = 804, + + VREvent_AudioSettingsHaveChanged = 820, + + VREvent_BackgroundSettingHasChanged = 850, + VREvent_CameraSettingsHaveChanged = 851, + VREvent_ReprojectionSettingHasChanged = 852, + VREvent_ModelSkinSettingsHaveChanged = 853, + VREvent_EnvironmentSettingsHaveChanged = 854, + VREvent_PowerSettingsHaveChanged = 855, + VREvent_EnableHomeAppSettingsHaveChanged = 856, + + VREvent_StatusUpdate = 900, + + VREvent_MCImageUpdated = 1000, + + VREvent_FirmwareUpdateStarted = 1100, + VREvent_FirmwareUpdateFinished = 1101, + + VREvent_KeyboardClosed = 1200, + VREvent_KeyboardCharInput = 1201, + VREvent_KeyboardDone = 1202, // Sent when DONE button clicked on keyboard + + VREvent_ApplicationTransitionStarted = 1300, + VREvent_ApplicationTransitionAborted = 1301, + VREvent_ApplicationTransitionNewAppStarted = 1302, + VREvent_ApplicationListUpdated = 1303, + VREvent_ApplicationMimeTypeLoad = 1304, + VREvent_ApplicationTransitionNewAppLaunchComplete = 1305, + VREvent_ProcessConnected = 1306, + VREvent_ProcessDisconnected = 1307, + + VREvent_Compositor_MirrorWindowShown = 1400, + VREvent_Compositor_MirrorWindowHidden = 1401, + VREvent_Compositor_ChaperoneBoundsShown = 1410, + VREvent_Compositor_ChaperoneBoundsHidden = 1411, + + VREvent_TrackedCamera_StartVideoStream = 1500, + VREvent_TrackedCamera_StopVideoStream = 1501, + VREvent_TrackedCamera_PauseVideoStream = 1502, + VREvent_TrackedCamera_ResumeVideoStream = 1503, + VREvent_TrackedCamera_EditingSurface = 1550, + + VREvent_PerformanceTest_EnableCapture = 1600, + VREvent_PerformanceTest_DisableCapture = 1601, + VREvent_PerformanceTest_FidelityLevel = 1602, + + VREvent_MessageOverlay_Closed = 1650, + + // Vendors are free to expose private events in this reserved region + VREvent_VendorSpecific_Reserved_Start = 10000, + VREvent_VendorSpecific_Reserved_End = 19999, +}; + + +/** Level of Hmd activity */ +// UserInteraction_Timeout means the device is in the process of timing out. +// InUse = ( k_EDeviceActivityLevel_UserInteraction || k_EDeviceActivityLevel_UserInteraction_Timeout ) +// VREvent_TrackedDeviceUserInteractionStarted fires when the devices transitions from Standby -> UserInteraction or Idle -> UserInteraction. +// VREvent_TrackedDeviceUserInteractionEnded fires when the devices transitions from UserInteraction_Timeout -> Idle +enum EDeviceActivityLevel +{ + k_EDeviceActivityLevel_Unknown = -1, + k_EDeviceActivityLevel_Idle = 0, // No activity for the last 10 seconds + k_EDeviceActivityLevel_UserInteraction = 1, // Activity (movement or prox sensor) is happening now + k_EDeviceActivityLevel_UserInteraction_Timeout = 2, // No activity for the last 0.5 seconds + k_EDeviceActivityLevel_Standby = 3, // Idle for at least 5 seconds (configurable in Settings -> Power Management) +}; + + +/** VR controller button and axis IDs */ +enum EVRButtonId +{ + k_EButton_System = 0, + k_EButton_ApplicationMenu = 1, + k_EButton_Grip = 2, + k_EButton_DPad_Left = 3, + k_EButton_DPad_Up = 4, + k_EButton_DPad_Right = 5, + k_EButton_DPad_Down = 6, + k_EButton_A = 7, + + k_EButton_ProximitySensor = 31, + + k_EButton_Axis0 = 32, + k_EButton_Axis1 = 33, + k_EButton_Axis2 = 34, + k_EButton_Axis3 = 35, + k_EButton_Axis4 = 36, + + // aliases for well known controllers + k_EButton_SteamVR_Touchpad = k_EButton_Axis0, + k_EButton_SteamVR_Trigger = k_EButton_Axis1, + + k_EButton_Dashboard_Back = k_EButton_Grip, + + k_EButton_Max = 64 +}; + +inline uint64_t ButtonMaskFromId( EVRButtonId id ) { return 1ull << id; } + +/** used for controller button events */ +struct VREvent_Controller_t +{ + uint32_t button; // EVRButtonId enum +}; + + +/** used for simulated mouse events in overlay space */ +enum EVRMouseButton +{ + VRMouseButton_Left = 0x0001, + VRMouseButton_Right = 0x0002, + VRMouseButton_Middle = 0x0004, +}; + + +/** used for simulated mouse events in overlay space */ +struct VREvent_Mouse_t +{ + float x, y; // co-ords are in GL space, bottom left of the texture is 0,0 + uint32_t button; // EVRMouseButton enum +}; + +/** used for simulated mouse wheel scroll in overlay space */ +struct VREvent_Scroll_t +{ + float xdelta, ydelta; // movement in fraction of the pad traversed since last delta, 1.0 for a full swipe + uint32_t repeatCount; +}; + +/** when in mouse input mode you can receive data from the touchpad, these events are only sent if the users finger + is on the touchpad (or just released from it) +**/ +struct VREvent_TouchPadMove_t +{ + // true if the users finger is detected on the touch pad + bool bFingerDown; + + // How long the finger has been down in seconds + float flSecondsFingerDown; + + // These values indicate the starting finger position (so you can do some basic swipe stuff) + float fValueXFirst; + float fValueYFirst; + + // This is the raw sampled coordinate without deadzoning + float fValueXRaw; + float fValueYRaw; +}; + +/** notification related events. Details will still change at this point */ +struct VREvent_Notification_t +{ + uint64_t ulUserValue; + uint32_t notificationId; +}; + +/** Used for events about processes */ +struct VREvent_Process_t +{ + uint32_t pid; + uint32_t oldPid; + bool bForced; +}; + + +/** Used for a few events about overlays */ +struct VREvent_Overlay_t +{ + uint64_t overlayHandle; +}; + + +/** Used for a few events about overlays */ +struct VREvent_Status_t +{ + uint32_t statusState; // EVRState enum +}; + +/** Used for keyboard events **/ +struct VREvent_Keyboard_t +{ + char cNewInput[8]; // Up to 11 bytes of new input + uint64_t uUserValue; // Possible flags about the new input +}; + +struct VREvent_Ipd_t +{ + float ipdMeters; +}; + +struct VREvent_Chaperone_t +{ + uint64_t m_nPreviousUniverse; + uint64_t m_nCurrentUniverse; +}; + +/** Not actually used for any events */ +struct VREvent_Reserved_t +{ + uint64_t reserved0; + uint64_t reserved1; +}; + +struct VREvent_PerformanceTest_t +{ + uint32_t m_nFidelityLevel; +}; + +struct VREvent_SeatedZeroPoseReset_t +{ + bool bResetBySystemMenu; +}; + +struct VREvent_Screenshot_t +{ + uint32_t handle; + uint32_t type; +}; + +struct VREvent_ScreenshotProgress_t +{ + float progress; +}; + +struct VREvent_ApplicationLaunch_t +{ + uint32_t pid; + uint32_t unArgsHandle; +}; + +struct VREvent_EditingCameraSurface_t +{ + uint64_t overlayHandle; + uint32_t nVisualMode; +}; + +struct VREvent_MessageOverlay_t +{ + uint32_t unVRMessageOverlayResponse; // vr::VRMessageOverlayResponse enum +}; + +struct VREvent_Property_t +{ + PropertyContainerHandle_t container; + ETrackedDeviceProperty prop; +}; + +/** NOTE!!! If you change this you MUST manually update openvr_interop.cs.py */ +typedef union +{ + VREvent_Reserved_t reserved; + VREvent_Controller_t controller; + VREvent_Mouse_t mouse; + VREvent_Scroll_t scroll; + VREvent_Process_t process; + VREvent_Notification_t notification; + VREvent_Overlay_t overlay; + VREvent_Status_t status; + VREvent_Keyboard_t keyboard; + VREvent_Ipd_t ipd; + VREvent_Chaperone_t chaperone; + VREvent_PerformanceTest_t performanceTest; + VREvent_TouchPadMove_t touchPadMove; + VREvent_SeatedZeroPoseReset_t seatedZeroPoseReset; + VREvent_Screenshot_t screenshot; + VREvent_ScreenshotProgress_t screenshotProgress; + VREvent_ApplicationLaunch_t applicationLaunch; + VREvent_EditingCameraSurface_t cameraSurface; + VREvent_MessageOverlay_t messageOverlay; + VREvent_Property_t property; +} VREvent_Data_t; + + +#if defined(__linux__) || defined(__APPLE__) +// This structure was originally defined mis-packed on Linux, preserved for +// compatibility. +#pragma pack( push, 4 ) +#endif + +/** An event posted by the server to all running applications */ +struct VREvent_t +{ + uint32_t eventType; // EVREventType enum + TrackedDeviceIndex_t trackedDeviceIndex; + float eventAgeSeconds; + // event data must be the end of the struct as its size is variable + VREvent_Data_t data; +}; + +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( pop ) +#endif + +/** The mesh to draw into the stencil (or depth) buffer to perform +* early stencil (or depth) kills of pixels that will never appear on the HMD. +* This mesh draws on all the pixels that will be hidden after distortion. +* +* If the HMD does not provide a visible area mesh pVertexData will be +* NULL and unTriangleCount will be 0. */ +struct HiddenAreaMesh_t +{ + const HmdVector2_t *pVertexData; + uint32_t unTriangleCount; +}; + + +enum EHiddenAreaMeshType +{ + k_eHiddenAreaMesh_Standard = 0, + k_eHiddenAreaMesh_Inverse = 1, + k_eHiddenAreaMesh_LineLoop = 2, + + k_eHiddenAreaMesh_Max = 3, +}; + + +/** Identifies what kind of axis is on the controller at index n. Read this type +* with pVRSystem->Get( nControllerDeviceIndex, Prop_Axis0Type_Int32 + n ); +*/ +enum EVRControllerAxisType +{ + k_eControllerAxis_None = 0, + k_eControllerAxis_TrackPad = 1, + k_eControllerAxis_Joystick = 2, + k_eControllerAxis_Trigger = 3, // Analog trigger data is in the X axis +}; + + +/** contains information about one axis on the controller */ +struct VRControllerAxis_t +{ + float x; // Ranges from -1.0 to 1.0 for joysticks and track pads. Ranges from 0.0 to 1.0 for triggers were 0 is fully released. + float y; // Ranges from -1.0 to 1.0 for joysticks and track pads. Is always 0.0 for triggers. +}; + + +/** the number of axes in the controller state */ +static const uint32_t k_unControllerStateAxisCount = 5; + + +#if defined(__linux__) || defined(__APPLE__) +// This structure was originally defined mis-packed on Linux, preserved for +// compatibility. +#pragma pack( push, 4 ) +#endif + +/** Holds all the state of a controller at one moment in time. */ +struct VRControllerState001_t +{ + // If packet num matches that on your prior call, then the controller state hasn't been changed since + // your last call and there is no need to process it + uint32_t unPacketNum; + + // bit flags for each of the buttons. Use ButtonMaskFromId to turn an ID into a mask + uint64_t ulButtonPressed; + uint64_t ulButtonTouched; + + // Axis data for the controller's analog inputs + VRControllerAxis_t rAxis[ k_unControllerStateAxisCount ]; +}; +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( pop ) +#endif + + +typedef VRControllerState001_t VRControllerState_t; + + +/** determines how to provide output to the application of various event processing functions. */ +enum EVRControllerEventOutputType +{ + ControllerEventOutput_OSEvents = 0, + ControllerEventOutput_VREvents = 1, +}; + + + +/** Collision Bounds Style */ +enum ECollisionBoundsStyle +{ + COLLISION_BOUNDS_STYLE_BEGINNER = 0, + COLLISION_BOUNDS_STYLE_INTERMEDIATE, + COLLISION_BOUNDS_STYLE_SQUARES, + COLLISION_BOUNDS_STYLE_ADVANCED, + COLLISION_BOUNDS_STYLE_NONE, + + COLLISION_BOUNDS_STYLE_COUNT +}; + +/** Allows the application to customize how the overlay appears in the compositor */ +struct Compositor_OverlaySettings +{ + uint32_t size; // sizeof(Compositor_OverlaySettings) + bool curved, antialias; + float scale, distance, alpha; + float uOffset, vOffset, uScale, vScale; + float gridDivs, gridWidth, gridScale; + HmdMatrix44_t transform; +}; + +/** used to refer to a single VR overlay */ +typedef uint64_t VROverlayHandle_t; + +static const VROverlayHandle_t k_ulOverlayHandleInvalid = 0; + +/** Errors that can occur around VR overlays */ +enum EVROverlayError +{ + VROverlayError_None = 0, + + VROverlayError_UnknownOverlay = 10, + VROverlayError_InvalidHandle = 11, + VROverlayError_PermissionDenied = 12, + VROverlayError_OverlayLimitExceeded = 13, // No more overlays could be created because the maximum number already exist + VROverlayError_WrongVisibilityType = 14, + VROverlayError_KeyTooLong = 15, + VROverlayError_NameTooLong = 16, + VROverlayError_KeyInUse = 17, + VROverlayError_WrongTransformType = 18, + VROverlayError_InvalidTrackedDevice = 19, + VROverlayError_InvalidParameter = 20, + VROverlayError_ThumbnailCantBeDestroyed = 21, + VROverlayError_ArrayTooSmall = 22, + VROverlayError_RequestFailed = 23, + VROverlayError_InvalidTexture = 24, + VROverlayError_UnableToLoadFile = 25, + VROverlayError_KeyboardAlreadyInUse = 26, + VROverlayError_NoNeighbor = 27, + VROverlayError_TooManyMaskPrimitives = 29, + VROverlayError_BadMaskPrimitive = 30, +}; + +/** enum values to pass in to VR_Init to identify whether the application will +* draw a 3D scene. */ +enum EVRApplicationType +{ + VRApplication_Other = 0, // Some other kind of application that isn't covered by the other entries + VRApplication_Scene = 1, // Application will submit 3D frames + VRApplication_Overlay = 2, // Application only interacts with overlays + VRApplication_Background = 3, // Application should not start SteamVR if it's not already running, and should not + // keep it running if everything else quits. + VRApplication_Utility = 4, // Init should not try to load any drivers. The application needs access to utility + // interfaces (like IVRSettings and IVRApplications) but not hardware. + VRApplication_VRMonitor = 5, // Reserved for vrmonitor + VRApplication_SteamWatchdog = 6,// Reserved for Steam + VRApplication_Bootstrapper = 7, // Start up SteamVR + + VRApplication_Max +}; + + +/** error codes for firmware */ +enum EVRFirmwareError +{ + VRFirmwareError_None = 0, + VRFirmwareError_Success = 1, + VRFirmwareError_Fail = 2, +}; + + +/** error codes for notifications */ +enum EVRNotificationError +{ + VRNotificationError_OK = 0, + VRNotificationError_InvalidNotificationId = 100, + VRNotificationError_NotificationQueueFull = 101, + VRNotificationError_InvalidOverlayHandle = 102, + VRNotificationError_SystemWithUserValueAlreadyExists = 103, +}; + + +/** error codes returned by Vr_Init */ + +// Please add adequate error description to https://developer.valvesoftware.com/w/index.php?title=Category:SteamVRHelp +enum EVRInitError +{ + VRInitError_None = 0, + VRInitError_Unknown = 1, + + VRInitError_Init_InstallationNotFound = 100, + VRInitError_Init_InstallationCorrupt = 101, + VRInitError_Init_VRClientDLLNotFound = 102, + VRInitError_Init_FileNotFound = 103, + VRInitError_Init_FactoryNotFound = 104, + VRInitError_Init_InterfaceNotFound = 105, + VRInitError_Init_InvalidInterface = 106, + VRInitError_Init_UserConfigDirectoryInvalid = 107, + VRInitError_Init_HmdNotFound = 108, + VRInitError_Init_NotInitialized = 109, + VRInitError_Init_PathRegistryNotFound = 110, + VRInitError_Init_NoConfigPath = 111, + VRInitError_Init_NoLogPath = 112, + VRInitError_Init_PathRegistryNotWritable = 113, + VRInitError_Init_AppInfoInitFailed = 114, + VRInitError_Init_Retry = 115, // Used internally to cause retries to vrserver + VRInitError_Init_InitCanceledByUser = 116, // The calling application should silently exit. The user canceled app startup + VRInitError_Init_AnotherAppLaunching = 117, + VRInitError_Init_SettingsInitFailed = 118, + VRInitError_Init_ShuttingDown = 119, + VRInitError_Init_TooManyObjects = 120, + VRInitError_Init_NoServerForBackgroundApp = 121, + VRInitError_Init_NotSupportedWithCompositor = 122, + VRInitError_Init_NotAvailableToUtilityApps = 123, + VRInitError_Init_Internal = 124, + VRInitError_Init_HmdDriverIdIsNone = 125, + VRInitError_Init_HmdNotFoundPresenceFailed = 126, + VRInitError_Init_VRMonitorNotFound = 127, + VRInitError_Init_VRMonitorStartupFailed = 128, + VRInitError_Init_LowPowerWatchdogNotSupported = 129, + VRInitError_Init_InvalidApplicationType = 130, + VRInitError_Init_NotAvailableToWatchdogApps = 131, + VRInitError_Init_WatchdogDisabledInSettings = 132, + VRInitError_Init_VRDashboardNotFound = 133, + VRInitError_Init_VRDashboardStartupFailed = 134, + VRInitError_Init_VRHomeNotFound = 135, + VRInitError_Init_VRHomeStartupFailed = 136, + + VRInitError_Driver_Failed = 200, + VRInitError_Driver_Unknown = 201, + VRInitError_Driver_HmdUnknown = 202, + VRInitError_Driver_NotLoaded = 203, + VRInitError_Driver_RuntimeOutOfDate = 204, + VRInitError_Driver_HmdInUse = 205, + VRInitError_Driver_NotCalibrated = 206, + VRInitError_Driver_CalibrationInvalid = 207, + VRInitError_Driver_HmdDisplayNotFound = 208, + VRInitError_Driver_TrackedDeviceInterfaceUnknown = 209, + // VRInitError_Driver_HmdDisplayNotFoundAfterFix = 210, // not needed: here for historic reasons + VRInitError_Driver_HmdDriverIdOutOfBounds = 211, + VRInitError_Driver_HmdDisplayMirrored = 212, + + VRInitError_IPC_ServerInitFailed = 300, + VRInitError_IPC_ConnectFailed = 301, + VRInitError_IPC_SharedStateInitFailed = 302, + VRInitError_IPC_CompositorInitFailed = 303, + VRInitError_IPC_MutexInitFailed = 304, + VRInitError_IPC_Failed = 305, + VRInitError_IPC_CompositorConnectFailed = 306, + VRInitError_IPC_CompositorInvalidConnectResponse = 307, + VRInitError_IPC_ConnectFailedAfterMultipleAttempts = 308, + + VRInitError_Compositor_Failed = 400, + VRInitError_Compositor_D3D11HardwareRequired = 401, + VRInitError_Compositor_FirmwareRequiresUpdate = 402, + VRInitError_Compositor_OverlayInitFailed = 403, + VRInitError_Compositor_ScreenshotsInitFailed = 404, + VRInitError_Compositor_UnableToCreateDevice = 405, + + VRInitError_VendorSpecific_UnableToConnectToOculusRuntime = 1000, + + VRInitError_VendorSpecific_HmdFound_CantOpenDevice = 1101, + VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102, + VRInitError_VendorSpecific_HmdFound_NoStoredConfig = 1103, + VRInitError_VendorSpecific_HmdFound_ConfigTooBig = 1104, + VRInitError_VendorSpecific_HmdFound_ConfigTooSmall = 1105, + VRInitError_VendorSpecific_HmdFound_UnableToInitZLib = 1106, + VRInitError_VendorSpecific_HmdFound_CantReadFirmwareVersion = 1107, + VRInitError_VendorSpecific_HmdFound_UnableToSendUserDataStart = 1108, + VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataStart = 1109, + VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataNext = 1110, + VRInitError_VendorSpecific_HmdFound_UserDataAddressRange = 1111, + VRInitError_VendorSpecific_HmdFound_UserDataError = 1112, + VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck = 1113, + + VRInitError_Steam_SteamInstallationNotFound = 2000, +}; + +enum EVRScreenshotType +{ + VRScreenshotType_None = 0, + VRScreenshotType_Mono = 1, // left eye only + VRScreenshotType_Stereo = 2, + VRScreenshotType_Cubemap = 3, + VRScreenshotType_MonoPanorama = 4, + VRScreenshotType_StereoPanorama = 5 +}; + +enum EVRScreenshotPropertyFilenames +{ + VRScreenshotPropertyFilenames_Preview = 0, + VRScreenshotPropertyFilenames_VR = 1, +}; + +enum EVRTrackedCameraError +{ + VRTrackedCameraError_None = 0, + VRTrackedCameraError_OperationFailed = 100, + VRTrackedCameraError_InvalidHandle = 101, + VRTrackedCameraError_InvalidFrameHeaderVersion = 102, + VRTrackedCameraError_OutOfHandles = 103, + VRTrackedCameraError_IPCFailure = 104, + VRTrackedCameraError_NotSupportedForThisDevice = 105, + VRTrackedCameraError_SharedMemoryFailure = 106, + VRTrackedCameraError_FrameBufferingFailure = 107, + VRTrackedCameraError_StreamSetupFailure = 108, + VRTrackedCameraError_InvalidGLTextureId = 109, + VRTrackedCameraError_InvalidSharedTextureHandle = 110, + VRTrackedCameraError_FailedToGetGLTextureId = 111, + VRTrackedCameraError_SharedTextureFailure = 112, + VRTrackedCameraError_NoFrameAvailable = 113, + VRTrackedCameraError_InvalidArgument = 114, + VRTrackedCameraError_InvalidFrameBufferSize = 115, +}; + +enum EVRTrackedCameraFrameType +{ + VRTrackedCameraFrameType_Distorted = 0, // This is the camera video frame size in pixels, still distorted. + VRTrackedCameraFrameType_Undistorted, // In pixels, an undistorted inscribed rectangle region without invalid regions. This size is subject to changes shortly. + VRTrackedCameraFrameType_MaximumUndistorted, // In pixels, maximum undistorted with invalid regions. Non zero alpha component identifies valid regions. + MAX_CAMERA_FRAME_TYPES +}; + +typedef uint64_t TrackedCameraHandle_t; +#define INVALID_TRACKED_CAMERA_HANDLE ((vr::TrackedCameraHandle_t)0) + +struct CameraVideoStreamFrameHeader_t +{ + EVRTrackedCameraFrameType eFrameType; + + uint32_t nWidth; + uint32_t nHeight; + uint32_t nBytesPerPixel; + + uint32_t nFrameSequence; + + TrackedDevicePose_t standingTrackedDevicePose; +}; + +// Screenshot types +typedef uint32_t ScreenshotHandle_t; + +static const uint32_t k_unScreenshotHandleInvalid = 0; + +#pragma pack( pop ) + +// figure out how to import from the VR API dll +#if defined(_WIN32) + +#ifdef VR_API_EXPORT +#define VR_INTERFACE extern "C" __declspec( dllexport ) +#else +#define VR_INTERFACE extern "C" __declspec( dllimport ) +#endif + +#elif defined(__GNUC__) || defined(COMPILER_GCC) || defined(__APPLE__) + +#ifdef VR_API_EXPORT +#define VR_INTERFACE extern "C" __attribute__((visibility("default"))) +#else +#define VR_INTERFACE extern "C" +#endif + +#else +#error "Unsupported Platform." +#endif + + +#if defined( _WIN32 ) +#define VR_CALLTYPE __cdecl +#else +#define VR_CALLTYPE +#endif + +} // namespace vr + +#endif // _INCLUDE_VRTYPES_H + + +// vrannotation.h +#ifdef API_GEN +# define VR_CLANG_ATTR(ATTR) __attribute__((annotate( ATTR ))) +#else +# define VR_CLANG_ATTR(ATTR) +#endif + +#define VR_METHOD_DESC(DESC) VR_CLANG_ATTR( "desc:" #DESC ";" ) +#define VR_IGNOREATTR() VR_CLANG_ATTR( "ignore" ) +#define VR_OUT_STRUCT() VR_CLANG_ATTR( "out_struct: ;" ) +#define VR_OUT_STRING() VR_CLANG_ATTR( "out_string: ;" ) +#define VR_OUT_ARRAY_CALL(COUNTER,FUNCTION,PARAMS) VR_CLANG_ATTR( "out_array_call:" #COUNTER "," #FUNCTION "," #PARAMS ";" ) +#define VR_OUT_ARRAY_COUNT(COUNTER) VR_CLANG_ATTR( "out_array_count:" #COUNTER ";" ) +#define VR_ARRAY_COUNT(COUNTER) VR_CLANG_ATTR( "array_count:" #COUNTER ";" ) +#define VR_ARRAY_COUNT_D(COUNTER, DESC) VR_CLANG_ATTR( "array_count:" #COUNTER ";desc:" #DESC ) +#define VR_BUFFER_COUNT(COUNTER) VR_CLANG_ATTR( "buffer_count:" #COUNTER ";" ) +#define VR_OUT_BUFFER_COUNT(COUNTER) VR_CLANG_ATTR( "out_buffer_count:" #COUNTER ";" ) +#define VR_OUT_STRING_COUNT(COUNTER) VR_CLANG_ATTR( "out_string_count:" #COUNTER ";" ) + +// vrtrackedcameratypes.h +#ifndef _VRTRACKEDCAMERATYPES_H +#define _VRTRACKEDCAMERATYPES_H + +namespace vr +{ + +#pragma pack( push, 8 ) + +enum ECameraVideoStreamFormat +{ + CVS_FORMAT_UNKNOWN = 0, + CVS_FORMAT_RAW10 = 1, // 10 bits per pixel + CVS_FORMAT_NV12 = 2, // 12 bits per pixel + CVS_FORMAT_RGB24 = 3, // 24 bits per pixel + CVS_MAX_FORMATS +}; + +enum ECameraCompatibilityMode +{ + CAMERA_COMPAT_MODE_BULK_DEFAULT = 0, + CAMERA_COMPAT_MODE_BULK_64K_DMA, + CAMERA_COMPAT_MODE_BULK_16K_DMA, + CAMERA_COMPAT_MODE_BULK_8K_DMA, + CAMERA_COMPAT_MODE_ISO_52FPS, + CAMERA_COMPAT_MODE_ISO_50FPS, + CAMERA_COMPAT_MODE_ISO_48FPS, + CAMERA_COMPAT_MODE_ISO_46FPS, + CAMERA_COMPAT_MODE_ISO_44FPS, + CAMERA_COMPAT_MODE_ISO_42FPS, + CAMERA_COMPAT_MODE_ISO_40FPS, + CAMERA_COMPAT_MODE_ISO_35FPS, + CAMERA_COMPAT_MODE_ISO_30FPS, + MAX_CAMERA_COMPAT_MODES +}; + +#ifdef _MSC_VER +#define VR_CAMERA_DECL_ALIGN( x ) __declspec( align( x ) ) +#else +#define VR_CAMERA_DECL_ALIGN( x ) // +#endif + +#define MAX_CAMERA_FRAME_SHARED_HANDLES 4 + +VR_CAMERA_DECL_ALIGN( 8 ) struct CameraVideoStreamFrame_t +{ + ECameraVideoStreamFormat m_nStreamFormat; + + uint32_t m_nWidth; + uint32_t m_nHeight; + + uint32_t m_nImageDataSize; // Based on stream format, width, height + + uint32_t m_nFrameSequence; // Starts from 0 when stream starts. + + uint32_t m_nBufferIndex; // Identifies which buffer the image data is hosted + uint32_t m_nBufferCount; // Total number of configured buffers + + uint32_t m_nExposureTime; + + uint32_t m_nISPFrameTimeStamp; // Driver provided time stamp per driver centric time base + uint32_t m_nISPReferenceTimeStamp; + uint32_t m_nSyncCounter; + + uint32_t m_nCamSyncEvents; + uint32_t m_nISPSyncEvents; + + double m_flReferenceCamSyncTime; + + double m_flFrameElapsedTime; // Starts from 0 when stream starts. In seconds. + double m_flFrameDeliveryRate; + + double m_flFrameCaptureTime_DriverAbsolute; // In USB time, via AuxEvent + double m_flFrameCaptureTime_ServerRelative; // In System time within the server + uint64_t m_nFrameCaptureTicks_ServerAbsolute; // In system ticks within the server + double m_flFrameCaptureTime_ClientRelative; // At the client, relative to when the frame was exposed/captured. + + double m_flSyncMarkerError; + + TrackedDevicePose_t m_StandingTrackedDevicePose; // Supplied by HMD layer when used as a tracked camera + + uint64_t m_pImageData; +}; + +#pragma pack( pop ) + +} + +#endif // _VRTRACKEDCAMERATYPES_H +// ivrsettings.h +namespace vr +{ + enum EVRSettingsError + { + VRSettingsError_None = 0, + VRSettingsError_IPCFailed = 1, + VRSettingsError_WriteFailed = 2, + VRSettingsError_ReadFailed = 3, + VRSettingsError_JsonParseFailed = 4, + VRSettingsError_UnsetSettingHasNoDefault = 5, // This will be returned if the setting does not appear in the appropriate default file and has not been set + }; + + // The maximum length of a settings key + static const uint32_t k_unMaxSettingsKeyLength = 128; + + class IVRSettings + { + public: + virtual const char *GetSettingsErrorNameFromEnum( EVRSettingsError eError ) = 0; + + // Returns true if file sync occurred (force or settings dirty) + virtual bool Sync( bool bForce = false, EVRSettingsError *peError = nullptr ) = 0; + + virtual void SetBool( const char *pchSection, const char *pchSettingsKey, bool bValue, EVRSettingsError *peError = nullptr ) = 0; + virtual void SetInt32( const char *pchSection, const char *pchSettingsKey, int32_t nValue, EVRSettingsError *peError = nullptr ) = 0; + virtual void SetFloat( const char *pchSection, const char *pchSettingsKey, float flValue, EVRSettingsError *peError = nullptr ) = 0; + virtual void SetString( const char *pchSection, const char *pchSettingsKey, const char *pchValue, EVRSettingsError *peError = nullptr ) = 0; + + // Users of the system need to provide a proper default in default.vrsettings in the resources/settings/ directory + // of either the runtime or the driver_xxx directory. Otherwise the default will be false, 0, 0.0 or "" + virtual bool GetBool( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0; + virtual int32_t GetInt32( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0; + virtual float GetFloat( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0; + virtual void GetString( const char *pchSection, const char *pchSettingsKey, VR_OUT_STRING() char *pchValue, uint32_t unValueLen, EVRSettingsError *peError = nullptr ) = 0; + + virtual void RemoveSection( const char *pchSection, EVRSettingsError *peError = nullptr ) = 0; + virtual void RemoveKeyInSection( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0; + }; + + //----------------------------------------------------------------------------- + static const char * const IVRSettings_Version = "IVRSettings_002"; + + //----------------------------------------------------------------------------- + // steamvr keys + static const char * const k_pch_SteamVR_Section = "steamvr"; + static const char * const k_pch_SteamVR_RequireHmd_String = "requireHmd"; + static const char * const k_pch_SteamVR_ForcedDriverKey_String = "forcedDriver"; + static const char * const k_pch_SteamVR_ForcedHmdKey_String = "forcedHmd"; + static const char * const k_pch_SteamVR_DisplayDebug_Bool = "displayDebug"; + static const char * const k_pch_SteamVR_DebugProcessPipe_String = "debugProcessPipe"; + static const char * const k_pch_SteamVR_DisplayDebugX_Int32 = "displayDebugX"; + static const char * const k_pch_SteamVR_DisplayDebugY_Int32 = "displayDebugY"; + static const char * const k_pch_SteamVR_SendSystemButtonToAllApps_Bool= "sendSystemButtonToAllApps"; + static const char * const k_pch_SteamVR_LogLevel_Int32 = "loglevel"; + static const char * const k_pch_SteamVR_IPD_Float = "ipd"; + static const char * const k_pch_SteamVR_Background_String = "background"; + static const char * const k_pch_SteamVR_BackgroundUseDomeProjection_Bool = "backgroundUseDomeProjection"; + static const char * const k_pch_SteamVR_BackgroundCameraHeight_Float = "backgroundCameraHeight"; + static const char * const k_pch_SteamVR_BackgroundDomeRadius_Float = "backgroundDomeRadius"; + static const char * const k_pch_SteamVR_GridColor_String = "gridColor"; + static const char * const k_pch_SteamVR_PlayAreaColor_String = "playAreaColor"; + static const char * const k_pch_SteamVR_ShowStage_Bool = "showStage"; + static const char * const k_pch_SteamVR_ActivateMultipleDrivers_Bool = "activateMultipleDrivers"; + static const char * const k_pch_SteamVR_DirectMode_Bool = "directMode"; + static const char * const k_pch_SteamVR_DirectModeEdidVid_Int32 = "directModeEdidVid"; + static const char * const k_pch_SteamVR_DirectModeEdidPid_Int32 = "directModeEdidPid"; + static const char * const k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers"; + static const char * const k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees"; + static const char * const k_pch_SteamVR_BaseStationPowerManagement_Bool = "basestationPowerManagement"; + static const char * const k_pch_SteamVR_NeverKillProcesses_Bool = "neverKillProcesses"; + static const char * const k_pch_SteamVR_SupersampleScale_Float = "supersampleScale"; + static const char * const k_pch_SteamVR_AllowAsyncReprojection_Bool = "allowAsyncReprojection"; + static const char * const k_pch_SteamVR_AllowReprojection_Bool = "allowInterleavedReprojection"; + static const char * const k_pch_SteamVR_ForceReprojection_Bool = "forceReprojection"; + static const char * const k_pch_SteamVR_ForceFadeOnBadTracking_Bool = "forceFadeOnBadTracking"; + static const char * const k_pch_SteamVR_DefaultMirrorView_Int32 = "defaultMirrorView"; + static const char * const k_pch_SteamVR_ShowMirrorView_Bool = "showMirrorView"; + static const char * const k_pch_SteamVR_MirrorViewGeometry_String = "mirrorViewGeometry"; + static const char * const k_pch_SteamVR_StartMonitorFromAppLaunch = "startMonitorFromAppLaunch"; + static const char * const k_pch_SteamVR_StartCompositorFromAppLaunch_Bool = "startCompositorFromAppLaunch"; + static const char * const k_pch_SteamVR_StartDashboardFromAppLaunch_Bool = "startDashboardFromAppLaunch"; + static const char * const k_pch_SteamVR_StartOverlayAppsFromDashboard_Bool = "startOverlayAppsFromDashboard"; + static const char * const k_pch_SteamVR_EnableHomeApp = "enableHomeApp"; + static const char * const k_pch_SteamVR_CycleBackgroundImageTimeSec_Int32 = "CycleBackgroundImageTimeSec"; + static const char * const k_pch_SteamVR_RetailDemo_Bool = "retailDemo"; + static const char * const k_pch_SteamVR_IpdOffset_Float = "ipdOffset"; + static const char * const k_pch_SteamVR_AllowSupersampleFiltering_Bool = "allowSupersampleFiltering"; + + //----------------------------------------------------------------------------- + // lighthouse keys + static const char * const k_pch_Lighthouse_Section = "driver_lighthouse"; + static const char * const k_pch_Lighthouse_DisableIMU_Bool = "disableimu"; + static const char * const k_pch_Lighthouse_UseDisambiguation_String = "usedisambiguation"; + static const char * const k_pch_Lighthouse_DisambiguationDebug_Int32 = "disambiguationdebug"; + static const char * const k_pch_Lighthouse_PrimaryBasestation_Int32 = "primarybasestation"; + static const char * const k_pch_Lighthouse_DBHistory_Bool = "dbhistory"; + + //----------------------------------------------------------------------------- + // null keys + static const char * const k_pch_Null_Section = "driver_null"; + static const char * const k_pch_Null_SerialNumber_String = "serialNumber"; + static const char * const k_pch_Null_ModelNumber_String = "modelNumber"; + static const char * const k_pch_Null_WindowX_Int32 = "windowX"; + static const char * const k_pch_Null_WindowY_Int32 = "windowY"; + static const char * const k_pch_Null_WindowWidth_Int32 = "windowWidth"; + static const char * const k_pch_Null_WindowHeight_Int32 = "windowHeight"; + static const char * const k_pch_Null_RenderWidth_Int32 = "renderWidth"; + static const char * const k_pch_Null_RenderHeight_Int32 = "renderHeight"; + static const char * const k_pch_Null_SecondsFromVsyncToPhotons_Float = "secondsFromVsyncToPhotons"; + static const char * const k_pch_Null_DisplayFrequency_Float = "displayFrequency"; + + //----------------------------------------------------------------------------- + // user interface keys + static const char * const k_pch_UserInterface_Section = "userinterface"; + static const char * const k_pch_UserInterface_StatusAlwaysOnTop_Bool = "StatusAlwaysOnTop"; + static const char * const k_pch_UserInterface_MinimizeToTray_Bool = "MinimizeToTray"; + static const char * const k_pch_UserInterface_Screenshots_Bool = "screenshots"; + static const char * const k_pch_UserInterface_ScreenshotType_Int = "screenshotType"; + + //----------------------------------------------------------------------------- + // notification keys + static const char * const k_pch_Notifications_Section = "notifications"; + static const char * const k_pch_Notifications_DoNotDisturb_Bool = "DoNotDisturb"; + + //----------------------------------------------------------------------------- + // keyboard keys + static const char * const k_pch_Keyboard_Section = "keyboard"; + static const char * const k_pch_Keyboard_TutorialCompletions = "TutorialCompletions"; + static const char * const k_pch_Keyboard_ScaleX = "ScaleX"; + static const char * const k_pch_Keyboard_ScaleY = "ScaleY"; + static const char * const k_pch_Keyboard_OffsetLeftX = "OffsetLeftX"; + static const char * const k_pch_Keyboard_OffsetRightX = "OffsetRightX"; + static const char * const k_pch_Keyboard_OffsetY = "OffsetY"; + static const char * const k_pch_Keyboard_Smoothing = "Smoothing"; + + //----------------------------------------------------------------------------- + // perf keys + static const char * const k_pch_Perf_Section = "perfcheck"; + static const char * const k_pch_Perf_HeuristicActive_Bool = "heuristicActive"; + static const char * const k_pch_Perf_NotifyInHMD_Bool = "warnInHMD"; + static const char * const k_pch_Perf_NotifyOnlyOnce_Bool = "warnOnlyOnce"; + static const char * const k_pch_Perf_AllowTimingStore_Bool = "allowTimingStore"; + static const char * const k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit"; + static const char * const k_pch_Perf_TestData_Float = "perfTestData"; + static const char * const k_pch_Perf_LinuxGPUProfiling_Bool = "linuxGPUProfiling"; + + //----------------------------------------------------------------------------- + // collision bounds keys + static const char * const k_pch_CollisionBounds_Section = "collisionBounds"; + static const char * const k_pch_CollisionBounds_Style_Int32 = "CollisionBoundsStyle"; + static const char * const k_pch_CollisionBounds_GroundPerimeterOn_Bool = "CollisionBoundsGroundPerimeterOn"; + static const char * const k_pch_CollisionBounds_CenterMarkerOn_Bool = "CollisionBoundsCenterMarkerOn"; + static const char * const k_pch_CollisionBounds_PlaySpaceOn_Bool = "CollisionBoundsPlaySpaceOn"; + static const char * const k_pch_CollisionBounds_FadeDistance_Float = "CollisionBoundsFadeDistance"; + static const char * const k_pch_CollisionBounds_ColorGammaR_Int32 = "CollisionBoundsColorGammaR"; + static const char * const k_pch_CollisionBounds_ColorGammaG_Int32 = "CollisionBoundsColorGammaG"; + static const char * const k_pch_CollisionBounds_ColorGammaB_Int32 = "CollisionBoundsColorGammaB"; + static const char * const k_pch_CollisionBounds_ColorGammaA_Int32 = "CollisionBoundsColorGammaA"; + + //----------------------------------------------------------------------------- + // camera keys + static const char * const k_pch_Camera_Section = "camera"; + static const char * const k_pch_Camera_EnableCamera_Bool = "enableCamera"; + static const char * const k_pch_Camera_EnableCameraInDashboard_Bool = "enableCameraInDashboard"; + static const char * const k_pch_Camera_EnableCameraForCollisionBounds_Bool = "enableCameraForCollisionBounds"; + static const char * const k_pch_Camera_EnableCameraForRoomView_Bool = "enableCameraForRoomView"; + static const char * const k_pch_Camera_BoundsColorGammaR_Int32 = "cameraBoundsColorGammaR"; + static const char * const k_pch_Camera_BoundsColorGammaG_Int32 = "cameraBoundsColorGammaG"; + static const char * const k_pch_Camera_BoundsColorGammaB_Int32 = "cameraBoundsColorGammaB"; + static const char * const k_pch_Camera_BoundsColorGammaA_Int32 = "cameraBoundsColorGammaA"; + static const char * const k_pch_Camera_BoundsStrength_Int32 = "cameraBoundsStrength"; + + //----------------------------------------------------------------------------- + // audio keys + static const char * const k_pch_audio_Section = "audio"; + static const char * const k_pch_audio_OnPlaybackDevice_String = "onPlaybackDevice"; + static const char * const k_pch_audio_OnRecordDevice_String = "onRecordDevice"; + static const char * const k_pch_audio_OnPlaybackMirrorDevice_String = "onPlaybackMirrorDevice"; + static const char * const k_pch_audio_OffPlaybackDevice_String = "offPlaybackDevice"; + static const char * const k_pch_audio_OffRecordDevice_String = "offRecordDevice"; + static const char * const k_pch_audio_VIVEHDMIGain = "viveHDMIGain"; + + //----------------------------------------------------------------------------- + // power management keys + static const char * const k_pch_Power_Section = "power"; + static const char * const k_pch_Power_PowerOffOnExit_Bool = "powerOffOnExit"; + static const char * const k_pch_Power_TurnOffScreensTimeout_Float = "turnOffScreensTimeout"; + static const char * const k_pch_Power_TurnOffControllersTimeout_Float = "turnOffControllersTimeout"; + static const char * const k_pch_Power_ReturnToWatchdogTimeout_Float = "returnToWatchdogTimeout"; + static const char * const k_pch_Power_AutoLaunchSteamVROnButtonPress = "autoLaunchSteamVROnButtonPress"; + + //----------------------------------------------------------------------------- + // dashboard keys + static const char * const k_pch_Dashboard_Section = "dashboard"; + static const char * const k_pch_Dashboard_EnableDashboard_Bool = "enableDashboard"; + static const char * const k_pch_Dashboard_ArcadeMode_Bool = "arcadeMode"; + + //----------------------------------------------------------------------------- + // model skin keys + static const char * const k_pch_modelskin_Section = "modelskins"; + + //----------------------------------------------------------------------------- + // driver keys - These could be checked in any driver_ section + static const char * const k_pch_Driver_Enable_Bool = "enable"; + +} // namespace vr + +// iservertrackeddevicedriver.h +namespace vr +{ + + +struct DriverPoseQuaternion_t +{ + double w, x, y, z; +}; + +struct DriverPose_t +{ + /* Time offset of this pose, in seconds from the actual time of the pose, + * relative to the time of the PoseUpdated() call made by the driver. + */ + double poseTimeOffset; + + /* Generally, the pose maintained by a driver + * is in an inertial coordinate system different + * from the world system of x+ right, y+ up, z+ back. + * Also, the driver is not usually tracking the "head" position, + * but instead an internal IMU or another reference point in the HMD. + * The following two transforms transform positions and orientations + * to app world space from driver world space, + * and to HMD head space from driver local body space. + * + * We maintain the driver pose state in its internal coordinate system, + * so we can do the pose prediction math without having to + * use angular acceleration. A driver's angular acceleration is generally not measured, + * and is instead calculated from successive samples of angular velocity. + * This leads to a noisy angular acceleration values, which are also + * lagged due to the filtering required to reduce noise to an acceptable level. + */ + vr::HmdQuaternion_t qWorldFromDriverRotation; + double vecWorldFromDriverTranslation[ 3 ]; + + vr::HmdQuaternion_t qDriverFromHeadRotation; + double vecDriverFromHeadTranslation[ 3 ]; + + /* State of driver pose, in meters and radians. */ + /* Position of the driver tracking reference in driver world space + * +[0] (x) is right + * +[1] (y) is up + * -[2] (z) is forward + */ + double vecPosition[ 3 ]; + + /* Velocity of the pose in meters/second */ + double vecVelocity[ 3 ]; + + /* Acceleration of the pose in meters/second */ + double vecAcceleration[ 3 ]; + + /* Orientation of the tracker, represented as a quaternion */ + vr::HmdQuaternion_t qRotation; + + /* Angular velocity of the pose in axis-angle + * representation. The direction is the angle of + * rotation and the magnitude is the angle around + * that axis in radians/second. */ + double vecAngularVelocity[ 3 ]; + + /* Angular acceleration of the pose in axis-angle + * representation. The direction is the angle of + * rotation and the magnitude is the angle around + * that axis in radians/second^2. */ + double vecAngularAcceleration[ 3 ]; + + ETrackingResult result; + + bool poseIsValid; + bool willDriftInYaw; + bool shouldApplyHeadModel; + bool deviceIsConnected; +}; + + +// ---------------------------------------------------------------------------------------------- +// Purpose: Represents a single tracked device in a driver +// ---------------------------------------------------------------------------------------------- +class ITrackedDeviceServerDriver +{ +public: + + // ------------------------------------ + // Management Methods + // ------------------------------------ + /** This is called before an HMD is returned to the application. It will always be + * called before any display or tracking methods. Memory and processor use by the + * ITrackedDeviceServerDriver object should be kept to a minimum until it is activated. + * The pose listener is guaranteed to be valid until Deactivate is called, but + * should not be used after that point. */ + virtual EVRInitError Activate( uint32_t unObjectId ) = 0; + + /** This is called when The VR system is switching from this Hmd being the active display + * to another Hmd being the active display. The driver should clean whatever memory + * and thread use it can when it is deactivated */ + virtual void Deactivate() = 0; + + /** Handles a request from the system to put this device into standby mode. What that means is defined per-device. */ + virtual void EnterStandby() = 0; + + /** Requests a component interface of the driver for device-specific functionality. The driver should return NULL + * if the requested interface or version is not supported. */ + virtual void *GetComponent( const char *pchComponentNameAndVersion ) = 0; + + /** A VR Client has made this debug request of the driver. The set of valid requests is entirely + * up to the driver and the client to figure out, as is the format of the response. Responses that + * exceed the length of the supplied buffer should be truncated and null terminated */ + virtual void DebugRequest( const char *pchRequest, char *pchResponseBuffer, uint32_t unResponseBufferSize ) = 0; + + // ------------------------------------ + // Tracking Methods + // ------------------------------------ + virtual DriverPose_t GetPose() = 0; +}; + + + +static const char *ITrackedDeviceServerDriver_Version = "ITrackedDeviceServerDriver_005"; + +} +// ivrdisplaycomponent.h +namespace vr +{ + + + // ---------------------------------------------------------------------------------------------- + // Purpose: The display component on a single tracked device + // ---------------------------------------------------------------------------------------------- + class IVRDisplayComponent + { + public: + + // ------------------------------------ + // Display Methods + // ------------------------------------ + + /** Size and position that the window needs to be on the VR display. */ + virtual void GetWindowBounds( int32_t *pnX, int32_t *pnY, uint32_t *pnWidth, uint32_t *pnHeight ) = 0; + + /** Returns true if the display is extending the desktop. */ + virtual bool IsDisplayOnDesktop( ) = 0; + + /** Returns true if the display is real and not a fictional display. */ + virtual bool IsDisplayRealDisplay( ) = 0; + + /** Suggested size for the intermediate render target that the distortion pulls from. */ + virtual void GetRecommendedRenderTargetSize( uint32_t *pnWidth, uint32_t *pnHeight ) = 0; + + /** Gets the viewport in the frame buffer to draw the output of the distortion into */ + virtual void GetEyeOutputViewport( EVREye eEye, uint32_t *pnX, uint32_t *pnY, uint32_t *pnWidth, uint32_t *pnHeight ) = 0; + + /** The components necessary to build your own projection matrix in case your + * application is doing something fancy like infinite Z */ + virtual void GetProjectionRaw( EVREye eEye, float *pfLeft, float *pfRight, float *pfTop, float *pfBottom ) = 0; + + /** Returns the result of the distortion function for the specified eye and input UVs. UVs go from 0,0 in + * the upper left of that eye's viewport and 1,1 in the lower right of that eye's viewport. */ + virtual DistortionCoordinates_t ComputeDistortion( EVREye eEye, float fU, float fV ) = 0; + + }; + + static const char *IVRDisplayComponent_Version = "IVRDisplayComponent_002"; + +} + +// ivrdriverdirectmodecomponent.h +namespace vr +{ + + + // ---------------------------------------------------------------------------------------------- + // Purpose: This component is used for drivers that implement direct mode entirely on their own + // without allowing the VR Compositor to own the window/device. Chances are you don't + // need to implement this component in your driver. + // ---------------------------------------------------------------------------------------------- + class IVRDriverDirectModeComponent + { + public: + + // ----------------------------------- + // Direct mode methods + // ----------------------------------- + + /** Specific to Oculus compositor support, textures supplied must be created using this method. */ + virtual void CreateSwapTextureSet( uint32_t unPid, uint32_t unFormat, uint32_t unWidth, uint32_t unHeight, vr::SharedTextureHandle_t( *pSharedTextureHandles )[ 3 ] ) {} + + /** Used to textures created using CreateSwapTextureSet. Only one of the set's handles needs to be used to destroy the entire set. */ + virtual void DestroySwapTextureSet( vr::SharedTextureHandle_t sharedTextureHandle ) {} + + /** Used to purge all texture sets for a given process. */ + virtual void DestroyAllSwapTextureSets( uint32_t unPid ) {} + + /** After Present returns, calls this to get the next index to use for rendering. */ + virtual void GetNextSwapTextureSetIndex( vr::SharedTextureHandle_t sharedTextureHandles[ 2 ], uint32_t( *pIndices )[ 2 ] ) {} + + /** Call once per layer to draw for this frame. One shared texture handle per eye. Textures must be created + * using CreateSwapTextureSet and should be alternated per frame. Call Present once all layers have been submitted. */ + virtual void SubmitLayer( vr::SharedTextureHandle_t sharedTextureHandles[ 2 ], const vr::VRTextureBounds_t( &bounds )[ 2 ], const vr::HmdMatrix34_t *pPose ) {} + + /** Submits queued layers for display. */ + virtual void Present( vr::SharedTextureHandle_t syncTexture ) {} + + }; + + static const char *IVRDriverDirectModeComponent_Version = "IVRDriverDirectModeComponent_002"; + +} + +// ivrcontrollercomponent.h +namespace vr +{ + + + // ---------------------------------------------------------------------------------------------- + // Purpose: Controller access on a single tracked device. + // ---------------------------------------------------------------------------------------------- + class IVRControllerComponent + { + public: + + // ------------------------------------ + // Controller Methods + // ------------------------------------ + + /** Gets the current state of a controller. */ + virtual VRControllerState_t GetControllerState( ) = 0; + + /** Returns a uint64 property. If the property is not available this function will return 0. */ + virtual bool TriggerHapticPulse( uint32_t unAxisId, uint16_t usPulseDurationMicroseconds ) = 0; + + }; + + + + static const char *IVRControllerComponent_Version = "IVRControllerComponent_001"; + +} +// ivrcameracomponent.h +namespace vr +{ + //----------------------------------------------------------------------------- + //----------------------------------------------------------------------------- + class ICameraVideoSinkCallback + { + public: + virtual void OnCameraVideoSinkCallback() = 0; + }; + + // ---------------------------------------------------------------------------------------------- + // Purpose: The camera on a single tracked device + // ---------------------------------------------------------------------------------------------- + class IVRCameraComponent + { + public: + // ------------------------------------ + // Camera Methods + // ------------------------------------ + virtual bool GetCameraFrameDimensions( vr::ECameraVideoStreamFormat nVideoStreamFormat, uint32_t *pWidth, uint32_t *pHeight ) = 0; + virtual bool GetCameraFrameBufferingRequirements( int *pDefaultFrameQueueSize, uint32_t *pFrameBufferDataSize ) = 0; + virtual bool SetCameraFrameBuffering( int nFrameBufferCount, void **ppFrameBuffers, uint32_t nFrameBufferDataSize ) = 0; + virtual bool SetCameraVideoStreamFormat( vr::ECameraVideoStreamFormat nVideoStreamFormat ) = 0; + virtual vr::ECameraVideoStreamFormat GetCameraVideoStreamFormat() = 0; + virtual bool StartVideoStream() = 0; + virtual void StopVideoStream() = 0; + virtual bool IsVideoStreamActive( bool *pbPaused, float *pflElapsedTime ) = 0; + virtual const vr::CameraVideoStreamFrame_t *GetVideoStreamFrame() = 0; + virtual void ReleaseVideoStreamFrame( const vr::CameraVideoStreamFrame_t *pFrameImage ) = 0; + virtual bool SetAutoExposure( bool bEnable ) = 0; + virtual bool PauseVideoStream() = 0; + virtual bool ResumeVideoStream() = 0; + virtual bool GetCameraDistortion( float flInputU, float flInputV, float *pflOutputU, float *pflOutputV ) = 0; + virtual bool GetCameraProjection( vr::EVRTrackedCameraFrameType eFrameType, float flZNear, float flZFar, vr::HmdMatrix44_t *pProjection ) = 0; + virtual bool SetFrameRate( int nISPFrameRate, int nSensorFrameRate ) = 0; + virtual bool SetCameraVideoSinkCallback( vr::ICameraVideoSinkCallback *pCameraVideoSinkCallback ) = 0; + virtual bool GetCameraCompatibilityMode( vr::ECameraCompatibilityMode *pCameraCompatibilityMode ) = 0; + virtual bool SetCameraCompatibilityMode( vr::ECameraCompatibilityMode nCameraCompatibilityMode ) = 0; + virtual bool GetCameraFrameBounds( vr::EVRTrackedCameraFrameType eFrameType, uint32_t *pLeft, uint32_t *pTop, uint32_t *pWidth, uint32_t *pHeight ) = 0; + virtual bool GetCameraIntrinsics( vr::EVRTrackedCameraFrameType eFrameType, HmdVector2_t *pFocalLength, HmdVector2_t *pCenter ) = 0; + }; + + static const char *IVRCameraComponent_Version = "IVRCameraComponent_002"; +} +// itrackeddevicedriverprovider.h +namespace vr +{ + +class ITrackedDeviceServerDriver; +struct TrackedDeviceDriverInfo_t; +struct DriverPose_t; +typedef PropertyContainerHandle_t DriverHandle_t; + +/** This interface is provided by vrserver to allow the driver to notify +* the system when something changes about a device. These changes must +* not change the serial number or class of the device because those values +* are permanently associated with the device's index. */ +class IVRDriverContext +{ +public: + /** Returns the requested interface. If the interface was not available it will return NULL and fill + * out the error. */ + virtual void *GetGenericInterface( const char *pchInterfaceVersion, EVRInitError *peError = nullptr ) = 0; + + /** Returns the property container handle for this driver */ + virtual DriverHandle_t GetDriverHandle() = 0; +}; + + +/** This interface must be implemented in each driver. It will be loaded in vrserver.exe */ +class IServerTrackedDeviceProvider +{ +public: + /** initializes the driver. This will be called before any other methods are called. + * If Init returns anything other than VRInitError_None the driver DLL will be unloaded. + * + * pDriverHost will never be NULL, and will always be a pointer to a IServerDriverHost interface + * + * pchUserDriverConfigDir - The absolute path of the directory where the driver should store user + * config files. + * pchDriverInstallDir - The absolute path of the root directory for the driver. + */ + virtual EVRInitError Init( IVRDriverContext *pDriverContext ) = 0; + + /** cleans up the driver right before it is unloaded */ + virtual void Cleanup() = 0; + + /** Returns the version of the ITrackedDeviceServerDriver interface used by this driver */ + virtual const char * const *GetInterfaceVersions() = 0; + + /** Allows the driver do to some work in the main loop of the server. */ + virtual void RunFrame() = 0; + + + // ------------ Power State Functions ----------------------- // + + /** Returns true if the driver wants to block Standby mode. */ + virtual bool ShouldBlockStandbyMode() = 0; + + /** Called when the system is entering Standby mode. The driver should switch itself into whatever sort of low-power + * state it has. */ + virtual void EnterStandby() = 0; + + /** Called when the system is leaving Standby mode. The driver should switch itself back to + full operation. */ + virtual void LeaveStandby() = 0; + +}; + + +static const char *IServerTrackedDeviceProvider_Version = "IServerTrackedDeviceProvider_004"; + + + + +/** This interface must be implemented in each driver. It will be loaded in vrclient.dll */ +class IVRWatchdogProvider +{ +public: + /** initializes the driver in watchdog mode. */ + virtual EVRInitError Init( IVRDriverContext *pDriverContext ) = 0; + + /** cleans up the driver right before it is unloaded */ + virtual void Cleanup() = 0; +}; + +static const char *IVRWatchdogProvider_Version = "IVRWatchdogProvider_001"; + +} +// ivrproperties.h +#include + +namespace vr +{ + + enum EPropertyWriteType + { + PropertyWrite_Set = 0, + PropertyWrite_Erase = 1, + PropertyWrite_SetError = 2 + }; + + struct PropertyWrite_t + { + ETrackedDeviceProperty prop; + EPropertyWriteType writeType; + ETrackedPropertyError eSetError; + void *pvBuffer; + uint32_t unBufferSize; + PropertyTypeTag_t unTag; + ETrackedPropertyError eError; + }; + + struct PropertyRead_t + { + ETrackedDeviceProperty prop; + void *pvBuffer; + uint32_t unBufferSize; + PropertyTypeTag_t unTag; + uint32_t unRequiredBufferSize; + ETrackedPropertyError eError; + }; + + +class IVRProperties +{ +public: + + /** Reads a set of properties atomically. See the PropertyReadBatch_t struct for more information. */ + virtual ETrackedPropertyError ReadPropertyBatch( PropertyContainerHandle_t ulContainerHandle, PropertyRead_t *pBatch, uint32_t unBatchEntryCount ) = 0; + + /** Writes a set of properties atomically. See the PropertyWriteBatch_t struct for more information. */ + virtual ETrackedPropertyError WritePropertyBatch( PropertyContainerHandle_t ulContainerHandle, PropertyWrite_t *pBatch, uint32_t unBatchEntryCount ) = 0; + + /** returns a string that corresponds with the specified property error. The string will be the name + * of the error enum value for all valid error codes */ + virtual const char *GetPropErrorNameFromEnum( ETrackedPropertyError error ) = 0; + + /** Returns a container handle given a tracked device index */ + virtual PropertyContainerHandle_t TrackedDeviceToPropertyContainer( TrackedDeviceIndex_t nDevice ) = 0; + +}; + +static const char * const IVRProperties_Version = "IVRProperties_001"; + +class CVRPropertyHelpers +{ +public: + CVRPropertyHelpers( IVRProperties * pProperties ) : m_pProperties( pProperties ) {} + + /** Returns a scaler property. If the device index is not valid or the property value type does not match, + * this function will return false. */ + bool GetBoolProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ); + float GetFloatProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ); + int32_t GetInt32Property( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ); + uint64_t GetUint64Property( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ); + + /** Returns a single typed property. If the device index is not valid or the property is not a string type this function will + * return 0. Otherwise it returns the length of the number of bytes necessary to hold this string including the trailing + * null. Strings will always fit in buffers of k_unMaxPropertyStringSize characters. */ + uint32_t GetProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, VR_OUT_STRING() void *pvBuffer, uint32_t unBufferSize, PropertyTypeTag_t *punTag, ETrackedPropertyError *pError = 0L ); + + + /** Returns a string property. If the device index is not valid or the property is not a string type this function will + * return 0. Otherwise it returns the length of the number of bytes necessary to hold this string including the trailing + * null. Strings will always fit in buffers of k_unMaxPropertyStringSize characters. */ + uint32_t GetStringProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, ETrackedPropertyError *pError = 0L ); + + /** Returns a string property as a std::string. If the device index is not valid or the property is not a string type this function will + * return an empty string. */ + std::string GetStringProperty( vr::PropertyContainerHandle_t ulContainer, vr::ETrackedDeviceProperty prop, vr::ETrackedPropertyError *peError = nullptr ); + + /** Sets a scaler property. The new value will be returned on any subsequent call to get this property in any process. */ + ETrackedPropertyError SetBoolProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, bool bNewValue ); + ETrackedPropertyError SetFloatProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, float fNewValue ); + ETrackedPropertyError SetInt32Property( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, int32_t nNewValue ); + ETrackedPropertyError SetUint64Property( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, uint64_t ulNewValue ); + + /** Sets a string property. The new value will be returned on any subsequent call to get this property in any process. */ + ETrackedPropertyError SetStringProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, const char *pchNewValue ); + + /** Sets a single typed property. The new value will be returned on any subsequent call to get this property in any process. */ + ETrackedPropertyError SetProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, void *pvNewValue, uint32_t unNewValueSize, PropertyTypeTag_t unTag ); + + /** Sets the error return value for a property. This value will be returned on all subsequent requests to get the property */ + ETrackedPropertyError SetPropertyError( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError eError ); + + /** Clears any value or error set for the property. */ + ETrackedPropertyError EraseProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop ); + + /* Turns a device index into a property container handle. */ + PropertyContainerHandle_t TrackedDeviceToPropertyContainer( TrackedDeviceIndex_t nDevice ) { return m_pProperties->TrackedDeviceToPropertyContainer( nDevice ); } + +private: + template + T GetPropertyHelper( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError, T bDefault, PropertyTypeTag_t unTypeTag ); + + IVRProperties *m_pProperties; +}; + + +inline uint32_t CVRPropertyHelpers::GetProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, VR_OUT_STRING() void *pvBuffer, uint32_t unBufferSize, PropertyTypeTag_t *punTag, ETrackedPropertyError *pError ) +{ + PropertyRead_t batch; + batch.prop = prop; + batch.pvBuffer = pvBuffer; + batch.unBufferSize = unBufferSize; + + m_pProperties->ReadPropertyBatch( ulContainerHandle, &batch, 1 ); + + if ( pError ) + { + *pError = batch.eError; + } + + if ( punTag ) + { + *punTag = batch.unTag; + } + + return batch.unRequiredBufferSize; +} + + +/** Sets a single typed property. The new value will be returned on any subsequent call to get this property in any process. */ +inline ETrackedPropertyError CVRPropertyHelpers::SetProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, void *pvNewValue, uint32_t unNewValueSize, PropertyTypeTag_t unTag ) +{ + PropertyWrite_t batch; + batch.writeType = PropertyWrite_Set; + batch.prop = prop; + batch.pvBuffer = pvNewValue; + batch.unBufferSize = unNewValueSize; + batch.unTag = unTag; + + m_pProperties->WritePropertyBatch( ulContainerHandle, &batch, 1 ); + + return batch.eError; +} + + +/** Returns a string property. If the device index is not valid or the property is not a string type this function will +* return 0. Otherwise it returns the length of the number of bytes necessary to hold this string including the trailing +* null. Strings will always fit in buffers of k_unMaxPropertyStringSize characters. */ +inline uint32_t CVRPropertyHelpers::GetStringProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, ETrackedPropertyError *pError ) +{ + PropertyTypeTag_t unTag; + ETrackedPropertyError error; + uint32_t unRequiredSize = GetProperty( ulContainerHandle, prop, pchValue, unBufferSize, &unTag, &error ); + if ( unTag != k_unStringPropertyTag && error == TrackedProp_Success ) + { + error = TrackedProp_WrongDataType; + } + + if ( pError ) + { + *pError = error; + } + + if ( error != TrackedProp_Success ) + { + if ( pchValue && unBufferSize ) + { + *pchValue = '\0'; + } + } + + return unRequiredSize; +} + + +/** Returns a string property as a std::string. If the device index is not valid or the property is not a string type this function will +* return an empty string. */ +inline std::string CVRPropertyHelpers::GetStringProperty( vr::PropertyContainerHandle_t ulContainer, vr::ETrackedDeviceProperty prop, vr::ETrackedPropertyError *peError ) +{ + char buf[1024]; + vr::ETrackedPropertyError err; + uint32_t unRequiredBufferLen = GetStringProperty( ulContainer, prop, buf, sizeof(buf), &err ); + + std::string sResult; + + if ( err == TrackedProp_Success ) + { + sResult = buf; + } + else if ( err == TrackedProp_BufferTooSmall ) + { + char *pchBuffer = new char[unRequiredBufferLen]; + unRequiredBufferLen = GetStringProperty( ulContainer, prop, pchBuffer, unRequiredBufferLen, &err ); + sResult = pchBuffer; + delete[] pchBuffer; + } + + if ( peError ) + { + *peError = err; + } + + return sResult; +} + + +/** Sets a string property. The new value will be returned on any subsequent call to get this property in any process. */ +inline ETrackedPropertyError CVRPropertyHelpers::SetStringProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, const char *pchNewValue ) +{ + if ( !pchNewValue ) + return TrackedProp_InvalidOperation; + + // this is strlen without the dependency on string.h + const char *pchCurr = pchNewValue; + while ( *pchCurr ) + { + pchCurr++; + } + + return SetProperty( ulContainerHandle, prop, (void *)pchNewValue, (uint32_t)(pchCurr - pchNewValue) + 1, k_unStringPropertyTag ); +} + + +template +inline T CVRPropertyHelpers::GetPropertyHelper( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError, T bDefault, PropertyTypeTag_t unTypeTag ) +{ + T bValue; + ETrackedPropertyError eError; + PropertyTypeTag_t unReadTag; + GetProperty( ulContainerHandle, prop, &bValue, sizeof( bValue ), &unReadTag, &eError ); + if ( unReadTag != unTypeTag && eError == TrackedProp_Success ) + { + eError = TrackedProp_WrongDataType; + }; + + if ( pError ) + *pError = eError; + if ( eError != TrackedProp_Success ) + { + return bDefault; + } + else + { + return bValue; + } +} + + +inline bool CVRPropertyHelpers::GetBoolProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError ) +{ + return GetPropertyHelper( ulContainerHandle, prop, pError, false, k_unBoolPropertyTag ); +} + + +inline float CVRPropertyHelpers::GetFloatProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError ) +{ + return GetPropertyHelper( ulContainerHandle, prop, pError, 0.f, k_unFloatPropertyTag ); +} + +inline int32_t CVRPropertyHelpers::GetInt32Property( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError ) +{ + return GetPropertyHelper( ulContainerHandle, prop, pError, 0, k_unInt32PropertyTag ); +} + +inline uint64_t CVRPropertyHelpers::GetUint64Property( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError ) +{ + return GetPropertyHelper( ulContainerHandle, prop, pError, 0, k_unUint64PropertyTag ); +} + +inline ETrackedPropertyError CVRPropertyHelpers::SetBoolProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, bool bNewValue ) +{ + return SetProperty( ulContainerHandle, prop, &bNewValue, sizeof( bNewValue ), k_unBoolPropertyTag ); +} + +inline ETrackedPropertyError CVRPropertyHelpers::SetFloatProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, float fNewValue ) +{ + return SetProperty( ulContainerHandle, prop, &fNewValue, sizeof( fNewValue ), k_unFloatPropertyTag ); +} + +inline ETrackedPropertyError CVRPropertyHelpers::SetInt32Property( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, int32_t nNewValue ) +{ + return SetProperty( ulContainerHandle, prop, &nNewValue, sizeof( nNewValue ), k_unInt32PropertyTag ); +} + +inline ETrackedPropertyError CVRPropertyHelpers::SetUint64Property( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, uint64_t ulNewValue ) +{ + return SetProperty( ulContainerHandle, prop, &ulNewValue, sizeof( ulNewValue ), k_unUint64PropertyTag ); +} + +/** Sets the error return value for a property. This value will be returned on all subsequent requests to get the property */ +inline ETrackedPropertyError CVRPropertyHelpers::SetPropertyError( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError eError ) +{ + PropertyWrite_t batch; + batch.writeType = PropertyWrite_SetError; + batch.prop = prop; + batch.eSetError = eError; + + m_pProperties->WritePropertyBatch( ulContainerHandle, &batch, 1 ); + + return batch.eError; +} + +/** Clears any value or error set for the property. */ +inline ETrackedPropertyError CVRPropertyHelpers::EraseProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop ) +{ + PropertyWrite_t batch; + batch.writeType = PropertyWrite_Erase; + batch.prop = prop; + + m_pProperties->WritePropertyBatch( ulContainerHandle, &batch, 1 ); + + return batch.eError; + +} + +} + + +// ivrdriverlog.h +namespace vr +{ + +class IVRDriverLog +{ +public: + /** Writes a log message to the log file prefixed with the driver name */ + virtual void Log( const char *pchLogMessage ) = 0; +}; + + +static const char *IVRDriverLog_Version = "IVRDriverLog_001"; + +} +// ivrserverdriverhost.h +namespace vr +{ + +class ITrackedDeviceServerDriver; +struct TrackedDeviceDriverInfo_t; +struct DriverPose_t; + +/** This interface is provided by vrserver to allow the driver to notify +* the system when something changes about a device. These changes must +* not change the serial number or class of the device because those values +* are permanently associated with the device's index. */ +class IVRServerDriverHost +{ +public: + /** Notifies the server that a tracked device has been added. If this function returns true + * the server will call Activate on the device. If it returns false some kind of error + * has occurred and the device will not be activated. */ + virtual bool TrackedDeviceAdded( const char *pchDeviceSerialNumber, ETrackedDeviceClass eDeviceClass, ITrackedDeviceServerDriver *pDriver ) = 0; + + /** Notifies the server that a tracked device's pose has been updated */ + virtual void TrackedDevicePoseUpdated( uint32_t unWhichDevice, const DriverPose_t & newPose, uint32_t unPoseStructSize ) = 0; + + /** Notifies the server that vsync has occurred on the the display attached to the device. This is + * only permitted on devices of the HMD class. */ + virtual void VsyncEvent( double vsyncTimeOffsetSeconds ) = 0; + + /** notifies the server that the button was pressed */ + virtual void TrackedDeviceButtonPressed( uint32_t unWhichDevice, EVRButtonId eButtonId, double eventTimeOffset ) = 0; + + /** notifies the server that the button was unpressed */ + virtual void TrackedDeviceButtonUnpressed( uint32_t unWhichDevice, EVRButtonId eButtonId, double eventTimeOffset ) = 0; + + /** notifies the server that the button was pressed */ + virtual void TrackedDeviceButtonTouched( uint32_t unWhichDevice, EVRButtonId eButtonId, double eventTimeOffset ) = 0; + + /** notifies the server that the button was unpressed */ + virtual void TrackedDeviceButtonUntouched( uint32_t unWhichDevice, EVRButtonId eButtonId, double eventTimeOffset ) = 0; + + /** notifies the server than a controller axis changed */ + virtual void TrackedDeviceAxisUpdated( uint32_t unWhichDevice, uint32_t unWhichAxis, const VRControllerAxis_t & axisState ) = 0; + + /** Notifies the server that the proximity sensor on the specified device */ + virtual void ProximitySensorState( uint32_t unWhichDevice, bool bProximitySensorTriggered ) = 0; + + /** Sends a vendor specific event (VREvent_VendorSpecific_Reserved_Start..VREvent_VendorSpecific_Reserved_End */ + virtual void VendorSpecificEvent( uint32_t unWhichDevice, vr::EVREventType eventType, const VREvent_Data_t & eventData, double eventTimeOffset ) = 0; + + /** Returns true if SteamVR is exiting */ + virtual bool IsExiting() = 0; + + /** Returns true and fills the event with the next event on the queue if there is one. If there are no events + * this method returns false. uncbVREvent should be the size in bytes of the VREvent_t struct */ + virtual bool PollNextEvent( VREvent_t *pEvent, uint32_t uncbVREvent ) = 0; + + /** Provides access to device poses for drivers. Poses are in their "raw" tracking space which is uniquely + * defined by each driver providing poses for its devices. It is up to clients of this function to correlate + * poses across different drivers. Poses are indexed by their device id, and their associated driver and + * other properties can be looked up via IVRProperties. */ + virtual void GetRawTrackedDevicePoses( float fPredictedSecondsFromNow, TrackedDevicePose_t *pTrackedDevicePoseArray, uint32_t unTrackedDevicePoseArrayCount ) = 0; + + /** Notifies the server that a tracked device's display component transforms have been updated. */ + virtual void TrackedDeviceDisplayTransformUpdated( uint32_t unWhichDevice, HmdMatrix34_t eyeToHeadLeft, HmdMatrix34_t eyeToHeadRight ) = 0; +}; + +static const char *IVRServerDriverHost_Version = "IVRServerDriverHost_004"; + +} + +// ivrhiddenarea.h +namespace vr +{ + +class CVRHiddenAreaHelpers +{ +public: + CVRHiddenAreaHelpers( IVRProperties *pProperties ) : m_pProperties( pProperties ) {} + + /** Stores a hidden area mesh in a property */ + ETrackedPropertyError SetHiddenArea( EVREye eEye, EHiddenAreaMeshType type, HmdVector2_t *pVerts, uint32_t unVertCount ); + + /** retrieves a hidden area mesh from a property. Returns the vert count read out of the property. */ + uint32_t GetHiddenArea( EVREye eEye, EHiddenAreaMeshType type, HmdVector2_t *pVerts, uint32_t unVertCount, ETrackedPropertyError *peError ); + +private: + ETrackedDeviceProperty GetPropertyEnum( EVREye eEye, EHiddenAreaMeshType type ) + { + return (ETrackedDeviceProperty)(Prop_DisplayHiddenArea_Binary_Start + ((int)type * 2) + (int)eEye); + } + + IVRProperties *m_pProperties; +}; + + +inline ETrackedPropertyError CVRHiddenAreaHelpers::SetHiddenArea( EVREye eEye, EHiddenAreaMeshType type, HmdVector2_t *pVerts, uint32_t unVertCount ) +{ + ETrackedDeviceProperty prop = GetPropertyEnum( eEye, type ); + CVRPropertyHelpers propHelpers( m_pProperties ); + return propHelpers.SetProperty( propHelpers.TrackedDeviceToPropertyContainer( k_unTrackedDeviceIndex_Hmd ), prop, pVerts, sizeof( HmdVector2_t ) * unVertCount, k_unHiddenAreaPropertyTag ); +} + + +inline uint32_t CVRHiddenAreaHelpers::GetHiddenArea( EVREye eEye, EHiddenAreaMeshType type, HmdVector2_t *pVerts, uint32_t unVertCount, ETrackedPropertyError *peError ) +{ + ETrackedDeviceProperty prop = GetPropertyEnum( eEye, type ); + CVRPropertyHelpers propHelpers( m_pProperties ); + ETrackedPropertyError propError; + PropertyTypeTag_t unTag; + uint32_t unBytesNeeded = propHelpers.GetProperty( propHelpers.TrackedDeviceToPropertyContainer( k_unTrackedDeviceIndex_Hmd ), prop, pVerts, sizeof( HmdVector2_t )*unVertCount, &unTag, &propError ); + if ( propError == TrackedProp_Success && unTag != k_unHiddenAreaPropertyTag ) + { + propError = TrackedProp_WrongDataType; + unBytesNeeded = 0; + } + + if ( peError ) + { + *peError = propError; + } + + return unBytesNeeded / sizeof( HmdVector2_t ); +} + +} +// ivrwatchdoghost.h +namespace vr +{ + +/** This interface is provided by vrclient to allow the driver to make everything wake up */ +class IVRWatchdogHost +{ +public: + /** Client drivers in watchdog mode should call this when they have received a signal from hardware that should + * cause SteamVR to start */ + virtual void WatchdogWakeUp() = 0; +}; + +static const char *IVRWatchdogHost_Version = "IVRWatchdogHost_001"; + +}; + + + +// ivrvirtualdisplay.h +namespace vr +{ + // ---------------------------------------------------------------------------------------------- + // Purpose: This component is used for drivers that implement a virtual display (e.g. wireless). + // ---------------------------------------------------------------------------------------------- + class IVRVirtualDisplay + { + public: + + /** Submits final backbuffer for display. */ + virtual void Present( vr::SharedTextureHandle_t backbufferTextureHandle ) = 0; + + /** Block until the last presented buffer start scanning out. */ + virtual void WaitForPresent() = 0; + + /** Provides timing data for synchronizing with display. */ + virtual bool GetTimeSinceLastVsync( float *pfSecondsSinceLastVsync, uint64_t *pulFrameCounter ) = 0; + }; + + static const char *IVRVirtualDisplay_Version = "IVRVirtualDisplay_001"; + + /** Returns the current IVRVirtualDisplay pointer or NULL the interface could not be found. */ + VR_INTERFACE vr::IVRVirtualDisplay *VR_CALLTYPE VRVirtualDisplay(); +} + + +// ivrresources.h +namespace vr +{ + +class IVRResources +{ +public: + + // ------------------------------------ + // Shared Resource Methods + // ------------------------------------ + + /** Loads the specified resource into the provided buffer if large enough. + * Returns the size in bytes of the buffer required to hold the specified resource. */ + virtual uint32_t LoadSharedResource( const char *pchResourceName, char *pchBuffer, uint32_t unBufferLen ) = 0; + + /** Provides the full path to the specified resource. Resource names can include named directories for + * drivers and other things, and this resolves all of those and returns the actual physical path. + * pchResourceTypeDirectory is the subdirectory of resources to look in. */ + virtual uint32_t GetResourceFullPath( const char *pchResourceName, const char *pchResourceTypeDirectory, char *pchPathBuffer, uint32_t unBufferLen ) = 0; +}; + +static const char * const IVRResources_Version = "IVRResources_001"; + + +} +// ivrdrivermanager.h +namespace vr +{ + +class IVRDriverManager +{ +public: + virtual uint32_t GetDriverCount() const = 0; + + /** Returns the length of the number of bytes necessary to hold this string including the trailing null. */ + virtual uint32_t GetDriverName( vr::DriverId_t nDriver, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize ) = 0; +}; + +static const char * const IVRDriverManager_Version = "IVRDriverManager_001"; + +} // namespace vr + + + + + +namespace vr +{ + static const char * const k_InterfaceVersions[] = + { + IVRSettings_Version, + ITrackedDeviceServerDriver_Version, + IVRDisplayComponent_Version, + IVRDriverDirectModeComponent_Version, + IVRControllerComponent_Version, + IVRCameraComponent_Version, + IServerTrackedDeviceProvider_Version, + IVRWatchdogProvider_Version, + IVRVirtualDisplay_Version, + IVRDriverManager_Version, + IVRResources_Version, + nullptr + }; + + inline IVRDriverContext *&VRDriverContext() + { + static IVRDriverContext *pHost; + return pHost; + } + + class COpenVRDriverContext + { + public: + COpenVRDriverContext() : m_propertyHelpers(nullptr), m_hiddenAreaHelpers(nullptr) { Clear(); } + void Clear(); + + EVRInitError InitServer(); + EVRInitError InitWatchdog(); + + IVRSettings *VRSettings() + { + if ( m_pVRSettings == nullptr ) + { + EVRInitError eError; + m_pVRSettings = (IVRSettings *)VRDriverContext()->GetGenericInterface( IVRSettings_Version, &eError ); + } + return m_pVRSettings; + } + + IVRProperties *VRPropertiesRaw() + { + if ( m_pVRProperties == nullptr ) + { + EVRInitError eError; + m_pVRProperties = (IVRProperties *)VRDriverContext()->GetGenericInterface( IVRProperties_Version, &eError ); + m_propertyHelpers = CVRPropertyHelpers( m_pVRProperties ); + m_hiddenAreaHelpers = CVRHiddenAreaHelpers( m_pVRProperties ); + } + return m_pVRProperties; + } + + CVRPropertyHelpers *VRProperties() + { + VRPropertiesRaw(); + return &m_propertyHelpers; + } + + CVRHiddenAreaHelpers *VRHiddenArea() + { + VRPropertiesRaw(); + return &m_hiddenAreaHelpers; + } + + IVRServerDriverHost *VRServerDriverHost() + { + if ( m_pVRServerDriverHost == nullptr ) + { + EVRInitError eError; + m_pVRServerDriverHost = (IVRServerDriverHost *)VRDriverContext()->GetGenericInterface( IVRServerDriverHost_Version, &eError ); + } + return m_pVRServerDriverHost; + } + + IVRWatchdogHost *VRWatchdogHost() + { + if ( m_pVRWatchdogHost == nullptr ) + { + EVRInitError eError; + m_pVRWatchdogHost = (IVRWatchdogHost *)VRDriverContext()->GetGenericInterface( IVRWatchdogHost_Version, &eError ); + } + return m_pVRWatchdogHost; + } + + IVRDriverLog *VRDriverLog() + { + if ( m_pVRDriverLog == nullptr ) + { + EVRInitError eError; + m_pVRDriverLog = (IVRDriverLog *)VRDriverContext()->GetGenericInterface( IVRDriverLog_Version, &eError ); + } + return m_pVRDriverLog; + } + + DriverHandle_t VR_CALLTYPE VRDriverHandle() + { + return VRDriverContext()->GetDriverHandle(); + } + + IVRDriverManager *VRDriverManager() + { + if ( !m_pVRDriverManager ) + { + EVRInitError eError; + m_pVRDriverManager = (IVRDriverManager *)VRDriverContext()->GetGenericInterface( IVRDriverManager_Version, &eError ); + } + return m_pVRDriverManager; + } + + IVRResources *VRResources() + { + if ( !m_pVRResources ) + { + EVRInitError eError; + m_pVRResources = (IVRResources *)VRDriverContext()->GetGenericInterface( IVRResources_Version, &eError ); + } + return m_pVRResources; + } + + private: + CVRPropertyHelpers m_propertyHelpers; + CVRHiddenAreaHelpers m_hiddenAreaHelpers; + + IVRSettings *m_pVRSettings; + IVRProperties *m_pVRProperties; + IVRServerDriverHost *m_pVRServerDriverHost; + IVRWatchdogHost *m_pVRWatchdogHost; + IVRDriverLog *m_pVRDriverLog; + IVRDriverManager *m_pVRDriverManager; + IVRResources *m_pVRResources; + }; + + inline COpenVRDriverContext &OpenVRInternal_ModuleServerDriverContext() + { + static void *ctx[sizeof( COpenVRDriverContext ) / sizeof( void * )]; + return *(COpenVRDriverContext *)ctx; // bypass zero-init constructor + } + + inline IVRSettings *VR_CALLTYPE VRSettings() { return OpenVRInternal_ModuleServerDriverContext().VRSettings(); } + inline IVRProperties *VR_CALLTYPE VRPropertiesRaw() { return OpenVRInternal_ModuleServerDriverContext().VRPropertiesRaw(); } + inline CVRPropertyHelpers *VR_CALLTYPE VRProperties() { return OpenVRInternal_ModuleServerDriverContext().VRProperties(); } + inline CVRHiddenAreaHelpers *VR_CALLTYPE VRHiddenArea() { return OpenVRInternal_ModuleServerDriverContext().VRHiddenArea(); } + inline IVRDriverLog *VR_CALLTYPE VRDriverLog() { return OpenVRInternal_ModuleServerDriverContext().VRDriverLog(); } + inline IVRServerDriverHost *VR_CALLTYPE VRServerDriverHost() { return OpenVRInternal_ModuleServerDriverContext().VRServerDriverHost(); } + inline IVRWatchdogHost *VR_CALLTYPE VRWatchdogHost() { return OpenVRInternal_ModuleServerDriverContext().VRWatchdogHost(); } + inline DriverHandle_t VR_CALLTYPE VRDriverHandle() { return OpenVRInternal_ModuleServerDriverContext().VRDriverHandle(); } + inline IVRDriverManager *VR_CALLTYPE VRDriverManager() { return OpenVRInternal_ModuleServerDriverContext().VRDriverManager(); } + inline IVRResources *VR_CALLTYPE VRResources() { return OpenVRInternal_ModuleServerDriverContext().VRResources(); } + + inline void COpenVRDriverContext::Clear() + { + m_pVRSettings = nullptr; + m_pVRProperties = nullptr; + m_pVRServerDriverHost = nullptr; + m_pVRDriverLog = nullptr; + m_pVRWatchdogHost = nullptr; + m_pVRDriverManager = nullptr; + m_pVRResources = nullptr; + } + + inline EVRInitError COpenVRDriverContext::InitServer() + { + Clear(); + if ( !VRServerDriverHost() + || !VRSettings() + || !VRProperties() + || !VRDriverLog() + || !VRDriverManager() + || !VRResources() ) + return VRInitError_Init_InterfaceNotFound; + return VRInitError_None; + } + + inline EVRInitError COpenVRDriverContext::InitWatchdog() + { + Clear(); + if ( !VRWatchdogHost() + || !VRSettings() + || !VRDriverLog() ) + return VRInitError_Init_InterfaceNotFound; + return VRInitError_None; + } + + inline EVRInitError InitServerDriverContext( IVRDriverContext *pContext ) + { + VRDriverContext() = pContext; + return OpenVRInternal_ModuleServerDriverContext().InitServer(); + } + + inline EVRInitError InitWatchdogDriverContext( IVRDriverContext *pContext ) + { + VRDriverContext() = pContext; + return OpenVRInternal_ModuleServerDriverContext().InitWatchdog(); + } + + inline void CleanupDriverContext() + { + VRDriverContext() = nullptr; + OpenVRInternal_ModuleServerDriverContext().Clear(); + } + + #define VR_INIT_SERVER_DRIVER_CONTEXT( pContext ) \ + { \ + vr::EVRInitError eError = vr::InitServerDriverContext( pContext ); \ + if( eError != vr::VRInitError_None ) \ + return eError; \ + } + + #define VR_CLEANUP_SERVER_DRIVER_CONTEXT() \ + vr::CleanupDriverContext(); + + #define VR_INIT_WATCHDOG_DRIVER_CONTEXT( pContext ) \ + { \ + vr::EVRInitError eError = vr::InitWatchdogDriverContext( pContext ); \ + if( eError != vr::VRInitError_None ) \ + return eError; \ + } + + #define VR_CLEANUP_WATCHDOG_DRIVER_CONTEXT() \ + vr::CleanupDriverContext(); +} +// End + +#endif // _OPENVR_DRIVER_API + + diff --git a/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/OpenVR b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/OpenVR new file mode 100755 index 000000000..1609501c7 Binary files /dev/null and b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/OpenVR differ diff --git a/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Resources/Info.plist b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Resources/Info.plist new file mode 100644 index 000000000..50ff90a2c --- /dev/null +++ b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Resources/Info.plist @@ -0,0 +1,18 @@ + + + + + CFBundleIdentifier + com.valvesoftware.OpenVR.framework + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + OpenVR + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1.0 + + diff --git a/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/A/Headers/openvr.h b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/A/Headers/openvr.h new file mode 100644 index 000000000..79abf062a --- /dev/null +++ b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/A/Headers/openvr.h @@ -0,0 +1,3721 @@ +#pragma once + +// openvr.h +//========= Copyright Valve Corporation ============// +// Dynamically generated file. Do not modify this file directly. + +#ifndef _OPENVR_API +#define _OPENVR_API + +#include + + + +// vrtypes.h +#ifndef _INCLUDE_VRTYPES_H +#define _INCLUDE_VRTYPES_H + +// Forward declarations to avoid requiring vulkan.h +struct VkDevice_T; +struct VkPhysicalDevice_T; +struct VkInstance_T; +struct VkQueue_T; + +// Forward declarations to avoid requiring d3d12.h +struct ID3D12Resource; +struct ID3D12CommandQueue; + +namespace vr +{ +#pragma pack( push, 8 ) + +typedef void* glSharedTextureHandle_t; +typedef int32_t glInt_t; +typedef uint32_t glUInt_t; + +// right-handed system +// +y is up +// +x is to the right +// -z is going away from you +// Distance unit is meters +struct HmdMatrix34_t +{ + float m[3][4]; +}; + +struct HmdMatrix44_t +{ + float m[4][4]; +}; + +struct HmdVector3_t +{ + float v[3]; +}; + +struct HmdVector4_t +{ + float v[4]; +}; + +struct HmdVector3d_t +{ + double v[3]; +}; + +struct HmdVector2_t +{ + float v[2]; +}; + +struct HmdQuaternion_t +{ + double w, x, y, z; +}; + +struct HmdColor_t +{ + float r, g, b, a; +}; + +struct HmdQuad_t +{ + HmdVector3_t vCorners[ 4 ]; +}; + +struct HmdRect2_t +{ + HmdVector2_t vTopLeft; + HmdVector2_t vBottomRight; +}; + +/** Used to return the post-distortion UVs for each color channel. +* UVs range from 0 to 1 with 0,0 in the upper left corner of the +* source render target. The 0,0 to 1,1 range covers a single eye. */ +struct DistortionCoordinates_t +{ + float rfRed[2]; + float rfGreen[2]; + float rfBlue[2]; +}; + +enum EVREye +{ + Eye_Left = 0, + Eye_Right = 1 +}; + +enum ETextureType +{ + TextureType_DirectX = 0, // Handle is an ID3D11Texture + TextureType_OpenGL = 1, // Handle is an OpenGL texture name or an OpenGL render buffer name, depending on submit flags + TextureType_Vulkan = 2, // Handle is a pointer to a VRVulkanTextureData_t structure + TextureType_IOSurface = 3, // Handle is a macOS cross-process-sharable IOSurfaceRef + TextureType_DirectX12 = 4, // Handle is a pointer to a D3D12TextureData_t structure +}; + +enum EColorSpace +{ + ColorSpace_Auto = 0, // Assumes 'gamma' for 8-bit per component formats, otherwise 'linear'. This mirrors the DXGI formats which have _SRGB variants. + ColorSpace_Gamma = 1, // Texture data can be displayed directly on the display without any conversion (a.k.a. display native format). + ColorSpace_Linear = 2, // Same as gamma but has been converted to a linear representation using DXGI's sRGB conversion algorithm. +}; + +struct Texture_t +{ + void* handle; // See ETextureType definition above + ETextureType eType; + EColorSpace eColorSpace; +}; + +// Handle to a shared texture (HANDLE on Windows obtained using OpenSharedResource). +typedef uint64_t SharedTextureHandle_t; +#define INVALID_SHARED_TEXTURE_HANDLE ((vr::SharedTextureHandle_t)0) + +enum ETrackingResult +{ + TrackingResult_Uninitialized = 1, + + TrackingResult_Calibrating_InProgress = 100, + TrackingResult_Calibrating_OutOfRange = 101, + + TrackingResult_Running_OK = 200, + TrackingResult_Running_OutOfRange = 201, +}; + +typedef uint32_t DriverId_t; +static const uint32_t k_nDriverNone = 0xFFFFFFFF; + +static const uint32_t k_unMaxDriverDebugResponseSize = 32768; + +/** Used to pass device IDs to API calls */ +typedef uint32_t TrackedDeviceIndex_t; +static const uint32_t k_unTrackedDeviceIndex_Hmd = 0; +static const uint32_t k_unMaxTrackedDeviceCount = 16; +static const uint32_t k_unTrackedDeviceIndexOther = 0xFFFFFFFE; +static const uint32_t k_unTrackedDeviceIndexInvalid = 0xFFFFFFFF; + +/** Describes what kind of object is being tracked at a given ID */ +enum ETrackedDeviceClass +{ + TrackedDeviceClass_Invalid = 0, // the ID was not valid. + TrackedDeviceClass_HMD = 1, // Head-Mounted Displays + TrackedDeviceClass_Controller = 2, // Tracked controllers + TrackedDeviceClass_GenericTracker = 3, // Generic trackers, similar to controllers + TrackedDeviceClass_TrackingReference = 4, // Camera and base stations that serve as tracking reference points + TrackedDeviceClass_DisplayRedirect = 5, // Accessories that aren't necessarily tracked themselves, but may redirect video output from other tracked devices +}; + + +/** Describes what specific role associated with a tracked device */ +enum ETrackedControllerRole +{ + TrackedControllerRole_Invalid = 0, // Invalid value for controller type + TrackedControllerRole_LeftHand = 1, // Tracked device associated with the left hand + TrackedControllerRole_RightHand = 2, // Tracked device associated with the right hand +}; + + +/** describes a single pose for a tracked object */ +struct TrackedDevicePose_t +{ + HmdMatrix34_t mDeviceToAbsoluteTracking; + HmdVector3_t vVelocity; // velocity in tracker space in m/s + HmdVector3_t vAngularVelocity; // angular velocity in radians/s (?) + ETrackingResult eTrackingResult; + bool bPoseIsValid; + + // This indicates that there is a device connected for this spot in the pose array. + // It could go from true to false if the user unplugs the device. + bool bDeviceIsConnected; +}; + +/** Identifies which style of tracking origin the application wants to use +* for the poses it is requesting */ +enum ETrackingUniverseOrigin +{ + TrackingUniverseSeated = 0, // Poses are provided relative to the seated zero pose + TrackingUniverseStanding = 1, // Poses are provided relative to the safe bounds configured by the user + TrackingUniverseRawAndUncalibrated = 2, // Poses are provided in the coordinate system defined by the driver. It has Y up and is unified for devices of the same driver. You usually don't want this one. +}; + +// Refers to a single container of properties +typedef uint64_t PropertyContainerHandle_t; +typedef uint32_t PropertyTypeTag_t; + +static const PropertyContainerHandle_t k_ulInvalidPropertyContainer = 0; +static const PropertyTypeTag_t k_unInvalidPropertyTag = 0; + +// Use these tags to set/get common types as struct properties +static const PropertyTypeTag_t k_unFloatPropertyTag = 1; +static const PropertyTypeTag_t k_unInt32PropertyTag = 2; +static const PropertyTypeTag_t k_unUint64PropertyTag = 3; +static const PropertyTypeTag_t k_unBoolPropertyTag = 4; +static const PropertyTypeTag_t k_unStringPropertyTag = 5; + +static const PropertyTypeTag_t k_unHmdMatrix34PropertyTag = 20; +static const PropertyTypeTag_t k_unHmdMatrix44PropertyTag = 21; +static const PropertyTypeTag_t k_unHmdVector3PropertyTag = 22; +static const PropertyTypeTag_t k_unHmdVector4PropertyTag = 23; + +static const PropertyTypeTag_t k_unHiddenAreaPropertyTag = 30; + +static const PropertyTypeTag_t k_unOpenVRInternalReserved_Start = 1000; +static const PropertyTypeTag_t k_unOpenVRInternalReserved_End = 10000; + + +/** Each entry in this enum represents a property that can be retrieved about a +* tracked device. Many fields are only valid for one ETrackedDeviceClass. */ +enum ETrackedDeviceProperty +{ + Prop_Invalid = 0, + + // general properties that apply to all device classes + Prop_TrackingSystemName_String = 1000, + Prop_ModelNumber_String = 1001, + Prop_SerialNumber_String = 1002, + Prop_RenderModelName_String = 1003, + Prop_WillDriftInYaw_Bool = 1004, + Prop_ManufacturerName_String = 1005, + Prop_TrackingFirmwareVersion_String = 1006, + Prop_HardwareRevision_String = 1007, + Prop_AllWirelessDongleDescriptions_String = 1008, + Prop_ConnectedWirelessDongle_String = 1009, + Prop_DeviceIsWireless_Bool = 1010, + Prop_DeviceIsCharging_Bool = 1011, + Prop_DeviceBatteryPercentage_Float = 1012, // 0 is empty, 1 is full + Prop_StatusDisplayTransform_Matrix34 = 1013, + Prop_Firmware_UpdateAvailable_Bool = 1014, + Prop_Firmware_ManualUpdate_Bool = 1015, + Prop_Firmware_ManualUpdateURL_String = 1016, + Prop_HardwareRevision_Uint64 = 1017, + Prop_FirmwareVersion_Uint64 = 1018, + Prop_FPGAVersion_Uint64 = 1019, + Prop_VRCVersion_Uint64 = 1020, + Prop_RadioVersion_Uint64 = 1021, + Prop_DongleVersion_Uint64 = 1022, + Prop_BlockServerShutdown_Bool = 1023, + Prop_CanUnifyCoordinateSystemWithHmd_Bool = 1024, + Prop_ContainsProximitySensor_Bool = 1025, + Prop_DeviceProvidesBatteryStatus_Bool = 1026, + Prop_DeviceCanPowerOff_Bool = 1027, + Prop_Firmware_ProgrammingTarget_String = 1028, + Prop_DeviceClass_Int32 = 1029, + Prop_HasCamera_Bool = 1030, + Prop_DriverVersion_String = 1031, + Prop_Firmware_ForceUpdateRequired_Bool = 1032, + Prop_ViveSystemButtonFixRequired_Bool = 1033, + Prop_ParentDriver_Uint64 = 1034, + Prop_ResourceRoot_String = 1035, + + // Properties that are unique to TrackedDeviceClass_HMD + Prop_ReportsTimeSinceVSync_Bool = 2000, + Prop_SecondsFromVsyncToPhotons_Float = 2001, + Prop_DisplayFrequency_Float = 2002, + Prop_UserIpdMeters_Float = 2003, + Prop_CurrentUniverseId_Uint64 = 2004, + Prop_PreviousUniverseId_Uint64 = 2005, + Prop_DisplayFirmwareVersion_Uint64 = 2006, + Prop_IsOnDesktop_Bool = 2007, + Prop_DisplayMCType_Int32 = 2008, + Prop_DisplayMCOffset_Float = 2009, + Prop_DisplayMCScale_Float = 2010, + Prop_EdidVendorID_Int32 = 2011, + Prop_DisplayMCImageLeft_String = 2012, + Prop_DisplayMCImageRight_String = 2013, + Prop_DisplayGCBlackClamp_Float = 2014, + Prop_EdidProductID_Int32 = 2015, + Prop_CameraToHeadTransform_Matrix34 = 2016, + Prop_DisplayGCType_Int32 = 2017, + Prop_DisplayGCOffset_Float = 2018, + Prop_DisplayGCScale_Float = 2019, + Prop_DisplayGCPrescale_Float = 2020, + Prop_DisplayGCImage_String = 2021, + Prop_LensCenterLeftU_Float = 2022, + Prop_LensCenterLeftV_Float = 2023, + Prop_LensCenterRightU_Float = 2024, + Prop_LensCenterRightV_Float = 2025, + Prop_UserHeadToEyeDepthMeters_Float = 2026, + Prop_CameraFirmwareVersion_Uint64 = 2027, + Prop_CameraFirmwareDescription_String = 2028, + Prop_DisplayFPGAVersion_Uint64 = 2029, + Prop_DisplayBootloaderVersion_Uint64 = 2030, + Prop_DisplayHardwareVersion_Uint64 = 2031, + Prop_AudioFirmwareVersion_Uint64 = 2032, + Prop_CameraCompatibilityMode_Int32 = 2033, + Prop_ScreenshotHorizontalFieldOfViewDegrees_Float = 2034, + Prop_ScreenshotVerticalFieldOfViewDegrees_Float = 2035, + Prop_DisplaySuppressed_Bool = 2036, + Prop_DisplayAllowNightMode_Bool = 2037, + Prop_DisplayMCImageWidth_Int32 = 2038, + Prop_DisplayMCImageHeight_Int32 = 2039, + Prop_DisplayMCImageNumChannels_Int32 = 2040, + Prop_DisplayMCImageData_Binary = 2041, + Prop_SecondsFromPhotonsToVblank_Float = 2042, + Prop_DriverDirectModeSendsVsyncEvents_Bool = 2043, + Prop_DisplayDebugMode_Bool = 2044, + Prop_GraphicsAdapterLuid_Uint64 = 2045, + + // Properties that are unique to TrackedDeviceClass_Controller + Prop_AttachedDeviceId_String = 3000, + Prop_SupportedButtons_Uint64 = 3001, + Prop_Axis0Type_Int32 = 3002, // Return value is of type EVRControllerAxisType + Prop_Axis1Type_Int32 = 3003, // Return value is of type EVRControllerAxisType + Prop_Axis2Type_Int32 = 3004, // Return value is of type EVRControllerAxisType + Prop_Axis3Type_Int32 = 3005, // Return value is of type EVRControllerAxisType + Prop_Axis4Type_Int32 = 3006, // Return value is of type EVRControllerAxisType + Prop_ControllerRoleHint_Int32 = 3007, // Return value is of type ETrackedControllerRole + + // Properties that are unique to TrackedDeviceClass_TrackingReference + Prop_FieldOfViewLeftDegrees_Float = 4000, + Prop_FieldOfViewRightDegrees_Float = 4001, + Prop_FieldOfViewTopDegrees_Float = 4002, + Prop_FieldOfViewBottomDegrees_Float = 4003, + Prop_TrackingRangeMinimumMeters_Float = 4004, + Prop_TrackingRangeMaximumMeters_Float = 4005, + Prop_ModeLabel_String = 4006, + + // Properties that are used for user interface like icons names + Prop_IconPathName_String = 5000, // DEPRECATED. Value not referenced. Now expected to be part of icon path properties. + Prop_NamedIconPathDeviceOff_String = 5001, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceSearching_String = 5002, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceSearchingAlert_String = 5003, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceReady_String = 5004, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceReadyAlert_String = 5005, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceNotReady_String = 5006, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceStandby_String = 5007, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceAlertLow_String = 5008, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + + // Properties that are used by helpers, but are opaque to applications + Prop_DisplayHiddenArea_Binary_Start = 5100, + Prop_DisplayHiddenArea_Binary_End = 5150, + + // Properties that are unique to drivers + Prop_UserConfigPath_String = 6000, + Prop_InstallPath_String = 6001, + Prop_HasDisplayComponent_Bool = 6002, + Prop_HasControllerComponent_Bool = 6003, + Prop_HasCameraComponent_Bool = 6004, + Prop_HasDriverDirectModeComponent_Bool = 6005, + Prop_HasVirtualDisplayComponent_Bool = 6006, + + // Vendors are free to expose private debug data in this reserved region + Prop_VendorSpecific_Reserved_Start = 10000, + Prop_VendorSpecific_Reserved_End = 10999, +}; + +/** No string property will ever be longer than this length */ +static const uint32_t k_unMaxPropertyStringSize = 32 * 1024; + +/** Used to return errors that occur when reading properties. */ +enum ETrackedPropertyError +{ + TrackedProp_Success = 0, + TrackedProp_WrongDataType = 1, + TrackedProp_WrongDeviceClass = 2, + TrackedProp_BufferTooSmall = 3, + TrackedProp_UnknownProperty = 4, // Driver has not set the property (and may not ever). + TrackedProp_InvalidDevice = 5, + TrackedProp_CouldNotContactServer = 6, + TrackedProp_ValueNotProvidedByDevice = 7, + TrackedProp_StringExceedsMaximumLength = 8, + TrackedProp_NotYetAvailable = 9, // The property value isn't known yet, but is expected soon. Call again later. + TrackedProp_PermissionDenied = 10, + TrackedProp_InvalidOperation = 11, +}; + +/** Allows the application to control what part of the provided texture will be used in the +* frame buffer. */ +struct VRTextureBounds_t +{ + float uMin, vMin; + float uMax, vMax; +}; + + +/** Allows the application to control how scene textures are used by the compositor when calling Submit. */ +enum EVRSubmitFlags +{ + // Simple render path. App submits rendered left and right eye images with no lens distortion correction applied. + Submit_Default = 0x00, + + // App submits final left and right eye images with lens distortion already applied (lens distortion makes the images appear + // barrel distorted with chromatic aberration correction applied). The app would have used the data returned by + // vr::IVRSystem::ComputeDistortion() to apply the correct distortion to the rendered images before calling Submit(). + Submit_LensDistortionAlreadyApplied = 0x01, + + // If the texture pointer passed in is actually a renderbuffer (e.g. for MSAA in OpenGL) then set this flag. + Submit_GlRenderBuffer = 0x02, + + // Do not use + Submit_Reserved = 0x04, +}; + +/** Data required for passing Vulkan textures to IVRCompositor::Submit. +* Be sure to call OpenVR_Shutdown before destroying these resources. */ +struct VRVulkanTextureData_t +{ + uint64_t m_nImage; // VkImage + VkDevice_T *m_pDevice; + VkPhysicalDevice_T *m_pPhysicalDevice; + VkInstance_T *m_pInstance; + VkQueue_T *m_pQueue; + uint32_t m_nQueueFamilyIndex; + uint32_t m_nWidth, m_nHeight, m_nFormat, m_nSampleCount; +}; + +/** Data required for passing D3D12 textures to IVRCompositor::Submit. +* Be sure to call OpenVR_Shutdown before destroying these resources. */ +struct D3D12TextureData_t +{ + ID3D12Resource *m_pResource; + ID3D12CommandQueue *m_pCommandQueue; + uint32_t m_nNodeMask; +}; + +/** Status of the overall system or tracked objects */ +enum EVRState +{ + VRState_Undefined = -1, + VRState_Off = 0, + VRState_Searching = 1, + VRState_Searching_Alert = 2, + VRState_Ready = 3, + VRState_Ready_Alert = 4, + VRState_NotReady = 5, + VRState_Standby = 6, + VRState_Ready_Alert_Low = 7, +}; + +/** The types of events that could be posted (and what the parameters mean for each event type) */ +enum EVREventType +{ + VREvent_None = 0, + + VREvent_TrackedDeviceActivated = 100, + VREvent_TrackedDeviceDeactivated = 101, + VREvent_TrackedDeviceUpdated = 102, + VREvent_TrackedDeviceUserInteractionStarted = 103, + VREvent_TrackedDeviceUserInteractionEnded = 104, + VREvent_IpdChanged = 105, + VREvent_EnterStandbyMode = 106, + VREvent_LeaveStandbyMode = 107, + VREvent_TrackedDeviceRoleChanged = 108, + VREvent_WatchdogWakeUpRequested = 109, + VREvent_LensDistortionChanged = 110, + VREvent_PropertyChanged = 111, + + VREvent_ButtonPress = 200, // data is controller + VREvent_ButtonUnpress = 201, // data is controller + VREvent_ButtonTouch = 202, // data is controller + VREvent_ButtonUntouch = 203, // data is controller + + VREvent_MouseMove = 300, // data is mouse + VREvent_MouseButtonDown = 301, // data is mouse + VREvent_MouseButtonUp = 302, // data is mouse + VREvent_FocusEnter = 303, // data is overlay + VREvent_FocusLeave = 304, // data is overlay + VREvent_Scroll = 305, // data is mouse + VREvent_TouchPadMove = 306, // data is mouse + VREvent_OverlayFocusChanged = 307, // data is overlay, global event + + VREvent_InputFocusCaptured = 400, // data is process DEPRECATED + VREvent_InputFocusReleased = 401, // data is process DEPRECATED + VREvent_SceneFocusLost = 402, // data is process + VREvent_SceneFocusGained = 403, // data is process + VREvent_SceneApplicationChanged = 404, // data is process - The App actually drawing the scene changed (usually to or from the compositor) + VREvent_SceneFocusChanged = 405, // data is process - New app got access to draw the scene + VREvent_InputFocusChanged = 406, // data is process + VREvent_SceneApplicationSecondaryRenderingStarted = 407, // data is process + + VREvent_HideRenderModels = 410, // Sent to the scene application to request hiding render models temporarily + VREvent_ShowRenderModels = 411, // Sent to the scene application to request restoring render model visibility + + VREvent_OverlayShown = 500, + VREvent_OverlayHidden = 501, + VREvent_DashboardActivated = 502, + VREvent_DashboardDeactivated = 503, + VREvent_DashboardThumbSelected = 504, // Sent to the overlay manager - data is overlay + VREvent_DashboardRequested = 505, // Sent to the overlay manager - data is overlay + VREvent_ResetDashboard = 506, // Send to the overlay manager + VREvent_RenderToast = 507, // Send to the dashboard to render a toast - data is the notification ID + VREvent_ImageLoaded = 508, // Sent to overlays when a SetOverlayRaw or SetOverlayFromFile call finishes loading + VREvent_ShowKeyboard = 509, // Sent to keyboard renderer in the dashboard to invoke it + VREvent_HideKeyboard = 510, // Sent to keyboard renderer in the dashboard to hide it + VREvent_OverlayGamepadFocusGained = 511, // Sent to an overlay when IVROverlay::SetFocusOverlay is called on it + VREvent_OverlayGamepadFocusLost = 512, // Send to an overlay when it previously had focus and IVROverlay::SetFocusOverlay is called on something else + VREvent_OverlaySharedTextureChanged = 513, + VREvent_DashboardGuideButtonDown = 514, + VREvent_DashboardGuideButtonUp = 515, + VREvent_ScreenshotTriggered = 516, // Screenshot button combo was pressed, Dashboard should request a screenshot + VREvent_ImageFailed = 517, // Sent to overlays when a SetOverlayRaw or SetOverlayfromFail fails to load + VREvent_DashboardOverlayCreated = 518, + + // Screenshot API + VREvent_RequestScreenshot = 520, // Sent by vrclient application to compositor to take a screenshot + VREvent_ScreenshotTaken = 521, // Sent by compositor to the application that the screenshot has been taken + VREvent_ScreenshotFailed = 522, // Sent by compositor to the application that the screenshot failed to be taken + VREvent_SubmitScreenshotToDashboard = 523, // Sent by compositor to the dashboard that a completed screenshot was submitted + VREvent_ScreenshotProgressToDashboard = 524, // Sent by compositor to the dashboard that a completed screenshot was submitted + + VREvent_PrimaryDashboardDeviceChanged = 525, + + VREvent_Notification_Shown = 600, + VREvent_Notification_Hidden = 601, + VREvent_Notification_BeginInteraction = 602, + VREvent_Notification_Destroyed = 603, + + VREvent_Quit = 700, // data is process + VREvent_ProcessQuit = 701, // data is process + VREvent_QuitAborted_UserPrompt = 702, // data is process + VREvent_QuitAcknowledged = 703, // data is process + VREvent_DriverRequestedQuit = 704, // The driver has requested that SteamVR shut down + + VREvent_ChaperoneDataHasChanged = 800, + VREvent_ChaperoneUniverseHasChanged = 801, + VREvent_ChaperoneTempDataHasChanged = 802, + VREvent_ChaperoneSettingsHaveChanged = 803, + VREvent_SeatedZeroPoseReset = 804, + + VREvent_AudioSettingsHaveChanged = 820, + + VREvent_BackgroundSettingHasChanged = 850, + VREvent_CameraSettingsHaveChanged = 851, + VREvent_ReprojectionSettingHasChanged = 852, + VREvent_ModelSkinSettingsHaveChanged = 853, + VREvent_EnvironmentSettingsHaveChanged = 854, + VREvent_PowerSettingsHaveChanged = 855, + VREvent_EnableHomeAppSettingsHaveChanged = 856, + + VREvent_StatusUpdate = 900, + + VREvent_MCImageUpdated = 1000, + + VREvent_FirmwareUpdateStarted = 1100, + VREvent_FirmwareUpdateFinished = 1101, + + VREvent_KeyboardClosed = 1200, + VREvent_KeyboardCharInput = 1201, + VREvent_KeyboardDone = 1202, // Sent when DONE button clicked on keyboard + + VREvent_ApplicationTransitionStarted = 1300, + VREvent_ApplicationTransitionAborted = 1301, + VREvent_ApplicationTransitionNewAppStarted = 1302, + VREvent_ApplicationListUpdated = 1303, + VREvent_ApplicationMimeTypeLoad = 1304, + VREvent_ApplicationTransitionNewAppLaunchComplete = 1305, + VREvent_ProcessConnected = 1306, + VREvent_ProcessDisconnected = 1307, + + VREvent_Compositor_MirrorWindowShown = 1400, + VREvent_Compositor_MirrorWindowHidden = 1401, + VREvent_Compositor_ChaperoneBoundsShown = 1410, + VREvent_Compositor_ChaperoneBoundsHidden = 1411, + + VREvent_TrackedCamera_StartVideoStream = 1500, + VREvent_TrackedCamera_StopVideoStream = 1501, + VREvent_TrackedCamera_PauseVideoStream = 1502, + VREvent_TrackedCamera_ResumeVideoStream = 1503, + VREvent_TrackedCamera_EditingSurface = 1550, + + VREvent_PerformanceTest_EnableCapture = 1600, + VREvent_PerformanceTest_DisableCapture = 1601, + VREvent_PerformanceTest_FidelityLevel = 1602, + + VREvent_MessageOverlay_Closed = 1650, + + // Vendors are free to expose private events in this reserved region + VREvent_VendorSpecific_Reserved_Start = 10000, + VREvent_VendorSpecific_Reserved_End = 19999, +}; + + +/** Level of Hmd activity */ +// UserInteraction_Timeout means the device is in the process of timing out. +// InUse = ( k_EDeviceActivityLevel_UserInteraction || k_EDeviceActivityLevel_UserInteraction_Timeout ) +// VREvent_TrackedDeviceUserInteractionStarted fires when the devices transitions from Standby -> UserInteraction or Idle -> UserInteraction. +// VREvent_TrackedDeviceUserInteractionEnded fires when the devices transitions from UserInteraction_Timeout -> Idle +enum EDeviceActivityLevel +{ + k_EDeviceActivityLevel_Unknown = -1, + k_EDeviceActivityLevel_Idle = 0, // No activity for the last 10 seconds + k_EDeviceActivityLevel_UserInteraction = 1, // Activity (movement or prox sensor) is happening now + k_EDeviceActivityLevel_UserInteraction_Timeout = 2, // No activity for the last 0.5 seconds + k_EDeviceActivityLevel_Standby = 3, // Idle for at least 5 seconds (configurable in Settings -> Power Management) +}; + + +/** VR controller button and axis IDs */ +enum EVRButtonId +{ + k_EButton_System = 0, + k_EButton_ApplicationMenu = 1, + k_EButton_Grip = 2, + k_EButton_DPad_Left = 3, + k_EButton_DPad_Up = 4, + k_EButton_DPad_Right = 5, + k_EButton_DPad_Down = 6, + k_EButton_A = 7, + + k_EButton_ProximitySensor = 31, + + k_EButton_Axis0 = 32, + k_EButton_Axis1 = 33, + k_EButton_Axis2 = 34, + k_EButton_Axis3 = 35, + k_EButton_Axis4 = 36, + + // aliases for well known controllers + k_EButton_SteamVR_Touchpad = k_EButton_Axis0, + k_EButton_SteamVR_Trigger = k_EButton_Axis1, + + k_EButton_Dashboard_Back = k_EButton_Grip, + + k_EButton_Max = 64 +}; + +inline uint64_t ButtonMaskFromId( EVRButtonId id ) { return 1ull << id; } + +/** used for controller button events */ +struct VREvent_Controller_t +{ + uint32_t button; // EVRButtonId enum +}; + + +/** used for simulated mouse events in overlay space */ +enum EVRMouseButton +{ + VRMouseButton_Left = 0x0001, + VRMouseButton_Right = 0x0002, + VRMouseButton_Middle = 0x0004, +}; + + +/** used for simulated mouse events in overlay space */ +struct VREvent_Mouse_t +{ + float x, y; // co-ords are in GL space, bottom left of the texture is 0,0 + uint32_t button; // EVRMouseButton enum +}; + +/** used for simulated mouse wheel scroll in overlay space */ +struct VREvent_Scroll_t +{ + float xdelta, ydelta; // movement in fraction of the pad traversed since last delta, 1.0 for a full swipe + uint32_t repeatCount; +}; + +/** when in mouse input mode you can receive data from the touchpad, these events are only sent if the users finger + is on the touchpad (or just released from it) +**/ +struct VREvent_TouchPadMove_t +{ + // true if the users finger is detected on the touch pad + bool bFingerDown; + + // How long the finger has been down in seconds + float flSecondsFingerDown; + + // These values indicate the starting finger position (so you can do some basic swipe stuff) + float fValueXFirst; + float fValueYFirst; + + // This is the raw sampled coordinate without deadzoning + float fValueXRaw; + float fValueYRaw; +}; + +/** notification related events. Details will still change at this point */ +struct VREvent_Notification_t +{ + uint64_t ulUserValue; + uint32_t notificationId; +}; + +/** Used for events about processes */ +struct VREvent_Process_t +{ + uint32_t pid; + uint32_t oldPid; + bool bForced; +}; + + +/** Used for a few events about overlays */ +struct VREvent_Overlay_t +{ + uint64_t overlayHandle; +}; + + +/** Used for a few events about overlays */ +struct VREvent_Status_t +{ + uint32_t statusState; // EVRState enum +}; + +/** Used for keyboard events **/ +struct VREvent_Keyboard_t +{ + char cNewInput[8]; // Up to 11 bytes of new input + uint64_t uUserValue; // Possible flags about the new input +}; + +struct VREvent_Ipd_t +{ + float ipdMeters; +}; + +struct VREvent_Chaperone_t +{ + uint64_t m_nPreviousUniverse; + uint64_t m_nCurrentUniverse; +}; + +/** Not actually used for any events */ +struct VREvent_Reserved_t +{ + uint64_t reserved0; + uint64_t reserved1; +}; + +struct VREvent_PerformanceTest_t +{ + uint32_t m_nFidelityLevel; +}; + +struct VREvent_SeatedZeroPoseReset_t +{ + bool bResetBySystemMenu; +}; + +struct VREvent_Screenshot_t +{ + uint32_t handle; + uint32_t type; +}; + +struct VREvent_ScreenshotProgress_t +{ + float progress; +}; + +struct VREvent_ApplicationLaunch_t +{ + uint32_t pid; + uint32_t unArgsHandle; +}; + +struct VREvent_EditingCameraSurface_t +{ + uint64_t overlayHandle; + uint32_t nVisualMode; +}; + +struct VREvent_MessageOverlay_t +{ + uint32_t unVRMessageOverlayResponse; // vr::VRMessageOverlayResponse enum +}; + +struct VREvent_Property_t +{ + PropertyContainerHandle_t container; + ETrackedDeviceProperty prop; +}; + +/** NOTE!!! If you change this you MUST manually update openvr_interop.cs.py */ +typedef union +{ + VREvent_Reserved_t reserved; + VREvent_Controller_t controller; + VREvent_Mouse_t mouse; + VREvent_Scroll_t scroll; + VREvent_Process_t process; + VREvent_Notification_t notification; + VREvent_Overlay_t overlay; + VREvent_Status_t status; + VREvent_Keyboard_t keyboard; + VREvent_Ipd_t ipd; + VREvent_Chaperone_t chaperone; + VREvent_PerformanceTest_t performanceTest; + VREvent_TouchPadMove_t touchPadMove; + VREvent_SeatedZeroPoseReset_t seatedZeroPoseReset; + VREvent_Screenshot_t screenshot; + VREvent_ScreenshotProgress_t screenshotProgress; + VREvent_ApplicationLaunch_t applicationLaunch; + VREvent_EditingCameraSurface_t cameraSurface; + VREvent_MessageOverlay_t messageOverlay; + VREvent_Property_t property; +} VREvent_Data_t; + + +#if defined(__linux__) || defined(__APPLE__) +// This structure was originally defined mis-packed on Linux, preserved for +// compatibility. +#pragma pack( push, 4 ) +#endif + +/** An event posted by the server to all running applications */ +struct VREvent_t +{ + uint32_t eventType; // EVREventType enum + TrackedDeviceIndex_t trackedDeviceIndex; + float eventAgeSeconds; + // event data must be the end of the struct as its size is variable + VREvent_Data_t data; +}; + +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( pop ) +#endif + +/** The mesh to draw into the stencil (or depth) buffer to perform +* early stencil (or depth) kills of pixels that will never appear on the HMD. +* This mesh draws on all the pixels that will be hidden after distortion. +* +* If the HMD does not provide a visible area mesh pVertexData will be +* NULL and unTriangleCount will be 0. */ +struct HiddenAreaMesh_t +{ + const HmdVector2_t *pVertexData; + uint32_t unTriangleCount; +}; + + +enum EHiddenAreaMeshType +{ + k_eHiddenAreaMesh_Standard = 0, + k_eHiddenAreaMesh_Inverse = 1, + k_eHiddenAreaMesh_LineLoop = 2, + + k_eHiddenAreaMesh_Max = 3, +}; + + +/** Identifies what kind of axis is on the controller at index n. Read this type +* with pVRSystem->Get( nControllerDeviceIndex, Prop_Axis0Type_Int32 + n ); +*/ +enum EVRControllerAxisType +{ + k_eControllerAxis_None = 0, + k_eControllerAxis_TrackPad = 1, + k_eControllerAxis_Joystick = 2, + k_eControllerAxis_Trigger = 3, // Analog trigger data is in the X axis +}; + + +/** contains information about one axis on the controller */ +struct VRControllerAxis_t +{ + float x; // Ranges from -1.0 to 1.0 for joysticks and track pads. Ranges from 0.0 to 1.0 for triggers were 0 is fully released. + float y; // Ranges from -1.0 to 1.0 for joysticks and track pads. Is always 0.0 for triggers. +}; + + +/** the number of axes in the controller state */ +static const uint32_t k_unControllerStateAxisCount = 5; + + +#if defined(__linux__) || defined(__APPLE__) +// This structure was originally defined mis-packed on Linux, preserved for +// compatibility. +#pragma pack( push, 4 ) +#endif + +/** Holds all the state of a controller at one moment in time. */ +struct VRControllerState001_t +{ + // If packet num matches that on your prior call, then the controller state hasn't been changed since + // your last call and there is no need to process it + uint32_t unPacketNum; + + // bit flags for each of the buttons. Use ButtonMaskFromId to turn an ID into a mask + uint64_t ulButtonPressed; + uint64_t ulButtonTouched; + + // Axis data for the controller's analog inputs + VRControllerAxis_t rAxis[ k_unControllerStateAxisCount ]; +}; +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( pop ) +#endif + + +typedef VRControllerState001_t VRControllerState_t; + + +/** determines how to provide output to the application of various event processing functions. */ +enum EVRControllerEventOutputType +{ + ControllerEventOutput_OSEvents = 0, + ControllerEventOutput_VREvents = 1, +}; + + + +/** Collision Bounds Style */ +enum ECollisionBoundsStyle +{ + COLLISION_BOUNDS_STYLE_BEGINNER = 0, + COLLISION_BOUNDS_STYLE_INTERMEDIATE, + COLLISION_BOUNDS_STYLE_SQUARES, + COLLISION_BOUNDS_STYLE_ADVANCED, + COLLISION_BOUNDS_STYLE_NONE, + + COLLISION_BOUNDS_STYLE_COUNT +}; + +/** Allows the application to customize how the overlay appears in the compositor */ +struct Compositor_OverlaySettings +{ + uint32_t size; // sizeof(Compositor_OverlaySettings) + bool curved, antialias; + float scale, distance, alpha; + float uOffset, vOffset, uScale, vScale; + float gridDivs, gridWidth, gridScale; + HmdMatrix44_t transform; +}; + +/** used to refer to a single VR overlay */ +typedef uint64_t VROverlayHandle_t; + +static const VROverlayHandle_t k_ulOverlayHandleInvalid = 0; + +/** Errors that can occur around VR overlays */ +enum EVROverlayError +{ + VROverlayError_None = 0, + + VROverlayError_UnknownOverlay = 10, + VROverlayError_InvalidHandle = 11, + VROverlayError_PermissionDenied = 12, + VROverlayError_OverlayLimitExceeded = 13, // No more overlays could be created because the maximum number already exist + VROverlayError_WrongVisibilityType = 14, + VROverlayError_KeyTooLong = 15, + VROverlayError_NameTooLong = 16, + VROverlayError_KeyInUse = 17, + VROverlayError_WrongTransformType = 18, + VROverlayError_InvalidTrackedDevice = 19, + VROverlayError_InvalidParameter = 20, + VROverlayError_ThumbnailCantBeDestroyed = 21, + VROverlayError_ArrayTooSmall = 22, + VROverlayError_RequestFailed = 23, + VROverlayError_InvalidTexture = 24, + VROverlayError_UnableToLoadFile = 25, + VROverlayError_KeyboardAlreadyInUse = 26, + VROverlayError_NoNeighbor = 27, + VROverlayError_TooManyMaskPrimitives = 29, + VROverlayError_BadMaskPrimitive = 30, +}; + +/** enum values to pass in to VR_Init to identify whether the application will +* draw a 3D scene. */ +enum EVRApplicationType +{ + VRApplication_Other = 0, // Some other kind of application that isn't covered by the other entries + VRApplication_Scene = 1, // Application will submit 3D frames + VRApplication_Overlay = 2, // Application only interacts with overlays + VRApplication_Background = 3, // Application should not start SteamVR if it's not already running, and should not + // keep it running if everything else quits. + VRApplication_Utility = 4, // Init should not try to load any drivers. The application needs access to utility + // interfaces (like IVRSettings and IVRApplications) but not hardware. + VRApplication_VRMonitor = 5, // Reserved for vrmonitor + VRApplication_SteamWatchdog = 6,// Reserved for Steam + VRApplication_Bootstrapper = 7, // Start up SteamVR + + VRApplication_Max +}; + + +/** error codes for firmware */ +enum EVRFirmwareError +{ + VRFirmwareError_None = 0, + VRFirmwareError_Success = 1, + VRFirmwareError_Fail = 2, +}; + + +/** error codes for notifications */ +enum EVRNotificationError +{ + VRNotificationError_OK = 0, + VRNotificationError_InvalidNotificationId = 100, + VRNotificationError_NotificationQueueFull = 101, + VRNotificationError_InvalidOverlayHandle = 102, + VRNotificationError_SystemWithUserValueAlreadyExists = 103, +}; + + +/** error codes returned by Vr_Init */ + +// Please add adequate error description to https://developer.valvesoftware.com/w/index.php?title=Category:SteamVRHelp +enum EVRInitError +{ + VRInitError_None = 0, + VRInitError_Unknown = 1, + + VRInitError_Init_InstallationNotFound = 100, + VRInitError_Init_InstallationCorrupt = 101, + VRInitError_Init_VRClientDLLNotFound = 102, + VRInitError_Init_FileNotFound = 103, + VRInitError_Init_FactoryNotFound = 104, + VRInitError_Init_InterfaceNotFound = 105, + VRInitError_Init_InvalidInterface = 106, + VRInitError_Init_UserConfigDirectoryInvalid = 107, + VRInitError_Init_HmdNotFound = 108, + VRInitError_Init_NotInitialized = 109, + VRInitError_Init_PathRegistryNotFound = 110, + VRInitError_Init_NoConfigPath = 111, + VRInitError_Init_NoLogPath = 112, + VRInitError_Init_PathRegistryNotWritable = 113, + VRInitError_Init_AppInfoInitFailed = 114, + VRInitError_Init_Retry = 115, // Used internally to cause retries to vrserver + VRInitError_Init_InitCanceledByUser = 116, // The calling application should silently exit. The user canceled app startup + VRInitError_Init_AnotherAppLaunching = 117, + VRInitError_Init_SettingsInitFailed = 118, + VRInitError_Init_ShuttingDown = 119, + VRInitError_Init_TooManyObjects = 120, + VRInitError_Init_NoServerForBackgroundApp = 121, + VRInitError_Init_NotSupportedWithCompositor = 122, + VRInitError_Init_NotAvailableToUtilityApps = 123, + VRInitError_Init_Internal = 124, + VRInitError_Init_HmdDriverIdIsNone = 125, + VRInitError_Init_HmdNotFoundPresenceFailed = 126, + VRInitError_Init_VRMonitorNotFound = 127, + VRInitError_Init_VRMonitorStartupFailed = 128, + VRInitError_Init_LowPowerWatchdogNotSupported = 129, + VRInitError_Init_InvalidApplicationType = 130, + VRInitError_Init_NotAvailableToWatchdogApps = 131, + VRInitError_Init_WatchdogDisabledInSettings = 132, + VRInitError_Init_VRDashboardNotFound = 133, + VRInitError_Init_VRDashboardStartupFailed = 134, + VRInitError_Init_VRHomeNotFound = 135, + VRInitError_Init_VRHomeStartupFailed = 136, + + VRInitError_Driver_Failed = 200, + VRInitError_Driver_Unknown = 201, + VRInitError_Driver_HmdUnknown = 202, + VRInitError_Driver_NotLoaded = 203, + VRInitError_Driver_RuntimeOutOfDate = 204, + VRInitError_Driver_HmdInUse = 205, + VRInitError_Driver_NotCalibrated = 206, + VRInitError_Driver_CalibrationInvalid = 207, + VRInitError_Driver_HmdDisplayNotFound = 208, + VRInitError_Driver_TrackedDeviceInterfaceUnknown = 209, + // VRInitError_Driver_HmdDisplayNotFoundAfterFix = 210, // not needed: here for historic reasons + VRInitError_Driver_HmdDriverIdOutOfBounds = 211, + VRInitError_Driver_HmdDisplayMirrored = 212, + + VRInitError_IPC_ServerInitFailed = 300, + VRInitError_IPC_ConnectFailed = 301, + VRInitError_IPC_SharedStateInitFailed = 302, + VRInitError_IPC_CompositorInitFailed = 303, + VRInitError_IPC_MutexInitFailed = 304, + VRInitError_IPC_Failed = 305, + VRInitError_IPC_CompositorConnectFailed = 306, + VRInitError_IPC_CompositorInvalidConnectResponse = 307, + VRInitError_IPC_ConnectFailedAfterMultipleAttempts = 308, + + VRInitError_Compositor_Failed = 400, + VRInitError_Compositor_D3D11HardwareRequired = 401, + VRInitError_Compositor_FirmwareRequiresUpdate = 402, + VRInitError_Compositor_OverlayInitFailed = 403, + VRInitError_Compositor_ScreenshotsInitFailed = 404, + VRInitError_Compositor_UnableToCreateDevice = 405, + + VRInitError_VendorSpecific_UnableToConnectToOculusRuntime = 1000, + + VRInitError_VendorSpecific_HmdFound_CantOpenDevice = 1101, + VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102, + VRInitError_VendorSpecific_HmdFound_NoStoredConfig = 1103, + VRInitError_VendorSpecific_HmdFound_ConfigTooBig = 1104, + VRInitError_VendorSpecific_HmdFound_ConfigTooSmall = 1105, + VRInitError_VendorSpecific_HmdFound_UnableToInitZLib = 1106, + VRInitError_VendorSpecific_HmdFound_CantReadFirmwareVersion = 1107, + VRInitError_VendorSpecific_HmdFound_UnableToSendUserDataStart = 1108, + VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataStart = 1109, + VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataNext = 1110, + VRInitError_VendorSpecific_HmdFound_UserDataAddressRange = 1111, + VRInitError_VendorSpecific_HmdFound_UserDataError = 1112, + VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck = 1113, + + VRInitError_Steam_SteamInstallationNotFound = 2000, +}; + +enum EVRScreenshotType +{ + VRScreenshotType_None = 0, + VRScreenshotType_Mono = 1, // left eye only + VRScreenshotType_Stereo = 2, + VRScreenshotType_Cubemap = 3, + VRScreenshotType_MonoPanorama = 4, + VRScreenshotType_StereoPanorama = 5 +}; + +enum EVRScreenshotPropertyFilenames +{ + VRScreenshotPropertyFilenames_Preview = 0, + VRScreenshotPropertyFilenames_VR = 1, +}; + +enum EVRTrackedCameraError +{ + VRTrackedCameraError_None = 0, + VRTrackedCameraError_OperationFailed = 100, + VRTrackedCameraError_InvalidHandle = 101, + VRTrackedCameraError_InvalidFrameHeaderVersion = 102, + VRTrackedCameraError_OutOfHandles = 103, + VRTrackedCameraError_IPCFailure = 104, + VRTrackedCameraError_NotSupportedForThisDevice = 105, + VRTrackedCameraError_SharedMemoryFailure = 106, + VRTrackedCameraError_FrameBufferingFailure = 107, + VRTrackedCameraError_StreamSetupFailure = 108, + VRTrackedCameraError_InvalidGLTextureId = 109, + VRTrackedCameraError_InvalidSharedTextureHandle = 110, + VRTrackedCameraError_FailedToGetGLTextureId = 111, + VRTrackedCameraError_SharedTextureFailure = 112, + VRTrackedCameraError_NoFrameAvailable = 113, + VRTrackedCameraError_InvalidArgument = 114, + VRTrackedCameraError_InvalidFrameBufferSize = 115, +}; + +enum EVRTrackedCameraFrameType +{ + VRTrackedCameraFrameType_Distorted = 0, // This is the camera video frame size in pixels, still distorted. + VRTrackedCameraFrameType_Undistorted, // In pixels, an undistorted inscribed rectangle region without invalid regions. This size is subject to changes shortly. + VRTrackedCameraFrameType_MaximumUndistorted, // In pixels, maximum undistorted with invalid regions. Non zero alpha component identifies valid regions. + MAX_CAMERA_FRAME_TYPES +}; + +typedef uint64_t TrackedCameraHandle_t; +#define INVALID_TRACKED_CAMERA_HANDLE ((vr::TrackedCameraHandle_t)0) + +struct CameraVideoStreamFrameHeader_t +{ + EVRTrackedCameraFrameType eFrameType; + + uint32_t nWidth; + uint32_t nHeight; + uint32_t nBytesPerPixel; + + uint32_t nFrameSequence; + + TrackedDevicePose_t standingTrackedDevicePose; +}; + +// Screenshot types +typedef uint32_t ScreenshotHandle_t; + +static const uint32_t k_unScreenshotHandleInvalid = 0; + +#pragma pack( pop ) + +// figure out how to import from the VR API dll +#if defined(_WIN32) + +#ifdef VR_API_EXPORT +#define VR_INTERFACE extern "C" __declspec( dllexport ) +#else +#define VR_INTERFACE extern "C" __declspec( dllimport ) +#endif + +#elif defined(__GNUC__) || defined(COMPILER_GCC) || defined(__APPLE__) + +#ifdef VR_API_EXPORT +#define VR_INTERFACE extern "C" __attribute__((visibility("default"))) +#else +#define VR_INTERFACE extern "C" +#endif + +#else +#error "Unsupported Platform." +#endif + + +#if defined( _WIN32 ) +#define VR_CALLTYPE __cdecl +#else +#define VR_CALLTYPE +#endif + +} // namespace vr + +#endif // _INCLUDE_VRTYPES_H + + +// vrannotation.h +#ifdef API_GEN +# define VR_CLANG_ATTR(ATTR) __attribute__((annotate( ATTR ))) +#else +# define VR_CLANG_ATTR(ATTR) +#endif + +#define VR_METHOD_DESC(DESC) VR_CLANG_ATTR( "desc:" #DESC ";" ) +#define VR_IGNOREATTR() VR_CLANG_ATTR( "ignore" ) +#define VR_OUT_STRUCT() VR_CLANG_ATTR( "out_struct: ;" ) +#define VR_OUT_STRING() VR_CLANG_ATTR( "out_string: ;" ) +#define VR_OUT_ARRAY_CALL(COUNTER,FUNCTION,PARAMS) VR_CLANG_ATTR( "out_array_call:" #COUNTER "," #FUNCTION "," #PARAMS ";" ) +#define VR_OUT_ARRAY_COUNT(COUNTER) VR_CLANG_ATTR( "out_array_count:" #COUNTER ";" ) +#define VR_ARRAY_COUNT(COUNTER) VR_CLANG_ATTR( "array_count:" #COUNTER ";" ) +#define VR_ARRAY_COUNT_D(COUNTER, DESC) VR_CLANG_ATTR( "array_count:" #COUNTER ";desc:" #DESC ) +#define VR_BUFFER_COUNT(COUNTER) VR_CLANG_ATTR( "buffer_count:" #COUNTER ";" ) +#define VR_OUT_BUFFER_COUNT(COUNTER) VR_CLANG_ATTR( "out_buffer_count:" #COUNTER ";" ) +#define VR_OUT_STRING_COUNT(COUNTER) VR_CLANG_ATTR( "out_string_count:" #COUNTER ";" ) + +// ivrsystem.h +namespace vr +{ + +class IVRSystem +{ +public: + + + // ------------------------------------ + // Display Methods + // ------------------------------------ + + /** Suggested size for the intermediate render target that the distortion pulls from. */ + virtual void GetRecommendedRenderTargetSize( uint32_t *pnWidth, uint32_t *pnHeight ) = 0; + + /** The projection matrix for the specified eye */ + virtual HmdMatrix44_t GetProjectionMatrix( EVREye eEye, float fNearZ, float fFarZ ) = 0; + + /** The components necessary to build your own projection matrix in case your + * application is doing something fancy like infinite Z */ + virtual void GetProjectionRaw( EVREye eEye, float *pfLeft, float *pfRight, float *pfTop, float *pfBottom ) = 0; + + /** Gets the result of the distortion function for the specified eye and input UVs. UVs go from 0,0 in + * the upper left of that eye's viewport and 1,1 in the lower right of that eye's viewport. + * Returns true for success. Otherwise, returns false, and distortion coordinates are not suitable. */ + virtual bool ComputeDistortion( EVREye eEye, float fU, float fV, DistortionCoordinates_t *pDistortionCoordinates ) = 0; + + /** Returns the transform from eye space to the head space. Eye space is the per-eye flavor of head + * space that provides stereo disparity. Instead of Model * View * Projection the sequence is Model * View * Eye^-1 * Projection. + * Normally View and Eye^-1 will be multiplied together and treated as View in your application. + */ + virtual HmdMatrix34_t GetEyeToHeadTransform( EVREye eEye ) = 0; + + /** Returns the number of elapsed seconds since the last recorded vsync event. This + * will come from a vsync timer event in the timer if possible or from the application-reported + * time if that is not available. If no vsync times are available the function will + * return zero for vsync time and frame counter and return false from the method. */ + virtual bool GetTimeSinceLastVsync( float *pfSecondsSinceLastVsync, uint64_t *pulFrameCounter ) = 0; + + /** [D3D9 Only] + * Returns the adapter index that the user should pass into CreateDevice to set up D3D9 in such + * a way that it can go full screen exclusive on the HMD. Returns -1 if there was an error. + */ + virtual int32_t GetD3D9AdapterIndex() = 0; + + /** [D3D10/11 Only] + * Returns the adapter index that the user should pass into EnumAdapters to create the device + * and swap chain in DX10 and DX11. If an error occurs the index will be set to -1. + */ + virtual void GetDXGIOutputInfo( int32_t *pnAdapterIndex ) = 0; + + /** + * Returns platform- and texture-type specific adapter identification so that applications and the + * compositor are creating textures and swap chains on the same GPU. If an error occurs the device + * will be set to 0. + * [D3D10/11/12 Only (D3D9 Not Supported)] + * Returns the adapter LUID that identifies the GPU attached to the HMD. The user should + * enumerate all adapters using IDXGIFactory::EnumAdapters and IDXGIAdapter::GetDesc to find + * the adapter with the matching LUID, or use IDXGIFactory4::EnumAdapterByLuid. + * The discovered IDXGIAdapter should be used to create the device and swap chain. + * [Vulkan Only] + * Returns the vk::PhysicalDevice that should be used by the application. + * [macOS Only] + * Returns an id that should be used by the application. + */ + virtual void GetOutputDevice( uint64_t *pnDevice, ETextureType textureType ) = 0; + + // ------------------------------------ + // Display Mode methods + // ------------------------------------ + + /** Use to determine if the headset display is part of the desktop (i.e. extended) or hidden (i.e. direct mode). */ + virtual bool IsDisplayOnDesktop() = 0; + + /** Set the display visibility (true = extended, false = direct mode). Return value of true indicates that the change was successful. */ + virtual bool SetDisplayVisibility( bool bIsVisibleOnDesktop ) = 0; + + // ------------------------------------ + // Tracking Methods + // ------------------------------------ + + /** The pose that the tracker thinks that the HMD will be in at the specified number of seconds into the + * future. Pass 0 to get the state at the instant the method is called. Most of the time the application should + * calculate the time until the photons will be emitted from the display and pass that time into the method. + * + * This is roughly analogous to the inverse of the view matrix in most applications, though + * many games will need to do some additional rotation or translation on top of the rotation + * and translation provided by the head pose. + * + * For devices where bPoseIsValid is true the application can use the pose to position the device + * in question. The provided array can be any size up to k_unMaxTrackedDeviceCount. + * + * Seated experiences should call this method with TrackingUniverseSeated and receive poses relative + * to the seated zero pose. Standing experiences should call this method with TrackingUniverseStanding + * and receive poses relative to the Chaperone Play Area. TrackingUniverseRawAndUncalibrated should + * probably not be used unless the application is the Chaperone calibration tool itself, but will provide + * poses relative to the hardware-specific coordinate system in the driver. + */ + virtual void GetDeviceToAbsoluteTrackingPose( ETrackingUniverseOrigin eOrigin, float fPredictedSecondsToPhotonsFromNow, VR_ARRAY_COUNT(unTrackedDevicePoseArrayCount) TrackedDevicePose_t *pTrackedDevicePoseArray, uint32_t unTrackedDevicePoseArrayCount ) = 0; + + /** Sets the zero pose for the seated tracker coordinate system to the current position and yaw of the HMD. After + * ResetSeatedZeroPose all GetDeviceToAbsoluteTrackingPose calls that pass TrackingUniverseSeated as the origin + * will be relative to this new zero pose. The new zero coordinate system will not change the fact that the Y axis + * is up in the real world, so the next pose returned from GetDeviceToAbsoluteTrackingPose after a call to + * ResetSeatedZeroPose may not be exactly an identity matrix. + * + * NOTE: This function overrides the user's previously saved seated zero pose and should only be called as the result of a user action. + * Users are also able to set their seated zero pose via the OpenVR Dashboard. + **/ + virtual void ResetSeatedZeroPose() = 0; + + /** Returns the transform from the seated zero pose to the standing absolute tracking system. This allows + * applications to represent the seated origin to used or transform object positions from one coordinate + * system to the other. + * + * The seated origin may or may not be inside the Play Area or Collision Bounds returned by IVRChaperone. Its position + * depends on what the user has set from the Dashboard settings and previous calls to ResetSeatedZeroPose. */ + virtual HmdMatrix34_t GetSeatedZeroPoseToStandingAbsoluteTrackingPose() = 0; + + /** Returns the transform from the tracking origin to the standing absolute tracking system. This allows + * applications to convert from raw tracking space to the calibrated standing coordinate system. */ + virtual HmdMatrix34_t GetRawZeroPoseToStandingAbsoluteTrackingPose() = 0; + + /** Get a sorted array of device indices of a given class of tracked devices (e.g. controllers). Devices are sorted right to left + * relative to the specified tracked device (default: hmd -- pass in -1 for absolute tracking space). Returns the number of devices + * in the list, or the size of the array needed if not large enough. */ + virtual uint32_t GetSortedTrackedDeviceIndicesOfClass( ETrackedDeviceClass eTrackedDeviceClass, VR_ARRAY_COUNT(unTrackedDeviceIndexArrayCount) vr::TrackedDeviceIndex_t *punTrackedDeviceIndexArray, uint32_t unTrackedDeviceIndexArrayCount, vr::TrackedDeviceIndex_t unRelativeToTrackedDeviceIndex = k_unTrackedDeviceIndex_Hmd ) = 0; + + /** Returns the level of activity on the device. */ + virtual EDeviceActivityLevel GetTrackedDeviceActivityLevel( vr::TrackedDeviceIndex_t unDeviceId ) = 0; + + /** Convenience utility to apply the specified transform to the specified pose. + * This properly transforms all pose components, including velocity and angular velocity + */ + virtual void ApplyTransform( TrackedDevicePose_t *pOutputPose, const TrackedDevicePose_t *pTrackedDevicePose, const HmdMatrix34_t *pTransform ) = 0; + + /** Returns the device index associated with a specific role, for example the left hand or the right hand. */ + virtual vr::TrackedDeviceIndex_t GetTrackedDeviceIndexForControllerRole( vr::ETrackedControllerRole unDeviceType ) = 0; + + /** Returns the controller type associated with a device index. */ + virtual vr::ETrackedControllerRole GetControllerRoleForTrackedDeviceIndex( vr::TrackedDeviceIndex_t unDeviceIndex ) = 0; + + // ------------------------------------ + // Property methods + // ------------------------------------ + + /** Returns the device class of a tracked device. If there has not been a device connected in this slot + * since the application started this function will return TrackedDevice_Invalid. For previous detected + * devices the function will return the previously observed device class. + * + * To determine which devices exist on the system, just loop from 0 to k_unMaxTrackedDeviceCount and check + * the device class. Every device with something other than TrackedDevice_Invalid is associated with an + * actual tracked device. */ + virtual ETrackedDeviceClass GetTrackedDeviceClass( vr::TrackedDeviceIndex_t unDeviceIndex ) = 0; + + /** Returns true if there is a device connected in this slot. */ + virtual bool IsTrackedDeviceConnected( vr::TrackedDeviceIndex_t unDeviceIndex ) = 0; + + /** Returns a bool property. If the device index is not valid or the property is not a bool type this function will return false. */ + virtual bool GetBoolTrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ) = 0; + + /** Returns a float property. If the device index is not valid or the property is not a float type this function will return 0. */ + virtual float GetFloatTrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ) = 0; + + /** Returns an int property. If the device index is not valid or the property is not a int type this function will return 0. */ + virtual int32_t GetInt32TrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ) = 0; + + /** Returns a uint64 property. If the device index is not valid or the property is not a uint64 type this function will return 0. */ + virtual uint64_t GetUint64TrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ) = 0; + + /** Returns a matrix property. If the device index is not valid or the property is not a matrix type, this function will return identity. */ + virtual HmdMatrix34_t GetMatrix34TrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ) = 0; + + /** Returns a string property. If the device index is not valid or the property is not a string type this function will + * return 0. Otherwise it returns the length of the number of bytes necessary to hold this string including the trailing + * null. Strings will always fit in buffers of k_unMaxPropertyStringSize characters. */ + virtual uint32_t GetStringTrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, ETrackedPropertyError *pError = 0L ) = 0; + + /** returns a string that corresponds with the specified property error. The string will be the name + * of the error enum value for all valid error codes */ + virtual const char *GetPropErrorNameFromEnum( ETrackedPropertyError error ) = 0; + + // ------------------------------------ + // Event methods + // ------------------------------------ + + /** Returns true and fills the event with the next event on the queue if there is one. If there are no events + * this method returns false. uncbVREvent should be the size in bytes of the VREvent_t struct */ + virtual bool PollNextEvent( VREvent_t *pEvent, uint32_t uncbVREvent ) = 0; + + /** Returns true and fills the event with the next event on the queue if there is one. If there are no events + * this method returns false. Fills in the pose of the associated tracked device in the provided pose struct. + * This pose will always be older than the call to this function and should not be used to render the device. + uncbVREvent should be the size in bytes of the VREvent_t struct */ + virtual bool PollNextEventWithPose( ETrackingUniverseOrigin eOrigin, VREvent_t *pEvent, uint32_t uncbVREvent, vr::TrackedDevicePose_t *pTrackedDevicePose ) = 0; + + /** returns the name of an EVREvent enum value */ + virtual const char *GetEventTypeNameFromEnum( EVREventType eType ) = 0; + + // ------------------------------------ + // Rendering helper methods + // ------------------------------------ + + /** Returns the hidden area mesh for the current HMD. The pixels covered by this mesh will never be seen by the user after the lens distortion is + * applied based on visibility to the panels. If this HMD does not have a hidden area mesh, the vertex data and count will be NULL and 0 respectively. + * This mesh is meant to be rendered into the stencil buffer (or into the depth buffer setting nearz) before rendering each eye's view. + * This will improve performance by letting the GPU early-reject pixels the user will never see before running the pixel shader. + * NOTE: Render this mesh with backface culling disabled since the winding order of the vertices can be different per-HMD or per-eye. + * Setting the bInverse argument to true will produce the visible area mesh that is commonly used in place of full-screen quads. The visible area mesh covers all of the pixels the hidden area mesh does not cover. + * Setting the bLineLoop argument will return a line loop of vertices in HiddenAreaMesh_t->pVertexData with HiddenAreaMesh_t->unTriangleCount set to the number of vertices. + */ + virtual HiddenAreaMesh_t GetHiddenAreaMesh( EVREye eEye, EHiddenAreaMeshType type = k_eHiddenAreaMesh_Standard ) = 0; + + // ------------------------------------ + // Controller methods + // ------------------------------------ + + /** Fills the supplied struct with the current state of the controller. Returns false if the controller index + * is invalid. */ + virtual bool GetControllerState( vr::TrackedDeviceIndex_t unControllerDeviceIndex, vr::VRControllerState_t *pControllerState, uint32_t unControllerStateSize ) = 0; + + /** fills the supplied struct with the current state of the controller and the provided pose with the pose of + * the controller when the controller state was updated most recently. Use this form if you need a precise controller + * pose as input to your application when the user presses or releases a button. */ + virtual bool GetControllerStateWithPose( ETrackingUniverseOrigin eOrigin, vr::TrackedDeviceIndex_t unControllerDeviceIndex, vr::VRControllerState_t *pControllerState, uint32_t unControllerStateSize, TrackedDevicePose_t *pTrackedDevicePose ) = 0; + + /** Trigger a single haptic pulse on a controller. After this call the application may not trigger another haptic pulse on this controller + * and axis combination for 5ms. */ + virtual void TriggerHapticPulse( vr::TrackedDeviceIndex_t unControllerDeviceIndex, uint32_t unAxisId, unsigned short usDurationMicroSec ) = 0; + + /** returns the name of an EVRButtonId enum value */ + virtual const char *GetButtonIdNameFromEnum( EVRButtonId eButtonId ) = 0; + + /** returns the name of an EVRControllerAxisType enum value */ + virtual const char *GetControllerAxisTypeNameFromEnum( EVRControllerAxisType eAxisType ) = 0; + + /** Tells OpenVR that this process wants exclusive access to controller button states and button events. Other apps will be notified that + * they have lost input focus with a VREvent_InputFocusCaptured event. Returns false if input focus could not be captured for + * some reason. */ + virtual bool CaptureInputFocus() = 0; + + /** Tells OpenVR that this process no longer wants exclusive access to button states and button events. Other apps will be notified + * that input focus has been released with a VREvent_InputFocusReleased event. */ + virtual void ReleaseInputFocus() = 0; + + /** Returns true if input focus is captured by another process. */ + virtual bool IsInputFocusCapturedByAnotherProcess() = 0; + + // ------------------------------------ + // Debug Methods + // ------------------------------------ + + /** Sends a request to the driver for the specified device and returns the response. The maximum response size is 32k, + * but this method can be called with a smaller buffer. If the response exceeds the size of the buffer, it is truncated. + * The size of the response including its terminating null is returned. */ + virtual uint32_t DriverDebugRequest( vr::TrackedDeviceIndex_t unDeviceIndex, const char *pchRequest, char *pchResponseBuffer, uint32_t unResponseBufferSize ) = 0; + + // ------------------------------------ + // Firmware methods + // ------------------------------------ + + /** Performs the actual firmware update if applicable. + * The following events will be sent, if VRFirmwareError_None was returned: VREvent_FirmwareUpdateStarted, VREvent_FirmwareUpdateFinished + * Use the properties Prop_Firmware_UpdateAvailable_Bool, Prop_Firmware_ManualUpdate_Bool, and Prop_Firmware_ManualUpdateURL_String + * to figure our whether a firmware update is available, and to figure out whether its a manual update + * Prop_Firmware_ManualUpdateURL_String should point to an URL describing the manual update process */ + virtual vr::EVRFirmwareError PerformFirmwareUpdate( vr::TrackedDeviceIndex_t unDeviceIndex ) = 0; + + // ------------------------------------ + // Application life cycle methods + // ------------------------------------ + + /** Call this to acknowledge to the system that VREvent_Quit has been received and that the process is exiting. + * This extends the timeout until the process is killed. */ + virtual void AcknowledgeQuit_Exiting() = 0; + + /** Call this to tell the system that the user is being prompted to save data. This + * halts the timeout and dismisses the dashboard (if it was up). Applications should be sure to actually + * prompt the user to save and then exit afterward, otherwise the user will be left in a confusing state. */ + virtual void AcknowledgeQuit_UserPrompt() = 0; + +}; + +static const char * const IVRSystem_Version = "IVRSystem_016"; + +} + + +// ivrapplications.h +namespace vr +{ + + /** Used for all errors reported by the IVRApplications interface */ + enum EVRApplicationError + { + VRApplicationError_None = 0, + + VRApplicationError_AppKeyAlreadyExists = 100, // Only one application can use any given key + VRApplicationError_NoManifest = 101, // the running application does not have a manifest + VRApplicationError_NoApplication = 102, // No application is running + VRApplicationError_InvalidIndex = 103, + VRApplicationError_UnknownApplication = 104, // the application could not be found + VRApplicationError_IPCFailed = 105, // An IPC failure caused the request to fail + VRApplicationError_ApplicationAlreadyRunning = 106, + VRApplicationError_InvalidManifest = 107, + VRApplicationError_InvalidApplication = 108, + VRApplicationError_LaunchFailed = 109, // the process didn't start + VRApplicationError_ApplicationAlreadyStarting = 110, // the system was already starting the same application + VRApplicationError_LaunchInProgress = 111, // The system was already starting a different application + VRApplicationError_OldApplicationQuitting = 112, + VRApplicationError_TransitionAborted = 113, + VRApplicationError_IsTemplate = 114, // error when you try to call LaunchApplication() on a template type app (use LaunchTemplateApplication) + + VRApplicationError_BufferTooSmall = 200, // The provided buffer was too small to fit the requested data + VRApplicationError_PropertyNotSet = 201, // The requested property was not set + VRApplicationError_UnknownProperty = 202, + VRApplicationError_InvalidParameter = 203, + }; + + /** The maximum length of an application key */ + static const uint32_t k_unMaxApplicationKeyLength = 128; + + /** these are the properties available on applications. */ + enum EVRApplicationProperty + { + VRApplicationProperty_Name_String = 0, + + VRApplicationProperty_LaunchType_String = 11, + VRApplicationProperty_WorkingDirectory_String = 12, + VRApplicationProperty_BinaryPath_String = 13, + VRApplicationProperty_Arguments_String = 14, + VRApplicationProperty_URL_String = 15, + + VRApplicationProperty_Description_String = 50, + VRApplicationProperty_NewsURL_String = 51, + VRApplicationProperty_ImagePath_String = 52, + VRApplicationProperty_Source_String = 53, + + VRApplicationProperty_IsDashboardOverlay_Bool = 60, + VRApplicationProperty_IsTemplate_Bool = 61, + VRApplicationProperty_IsInstanced_Bool = 62, + VRApplicationProperty_IsInternal_Bool = 63, + + VRApplicationProperty_LastLaunchTime_Uint64 = 70, + }; + + /** These are states the scene application startup process will go through. */ + enum EVRApplicationTransitionState + { + VRApplicationTransition_None = 0, + + VRApplicationTransition_OldAppQuitSent = 10, + VRApplicationTransition_WaitingForExternalLaunch = 11, + + VRApplicationTransition_NewAppLaunched = 20, + }; + + struct AppOverrideKeys_t + { + const char *pchKey; + const char *pchValue; + }; + + /** Currently recognized mime types */ + static const char * const k_pch_MimeType_HomeApp = "vr/home"; + static const char * const k_pch_MimeType_GameTheater = "vr/game_theater"; + + class IVRApplications + { + public: + + // --------------- Application management --------------- // + + /** Adds an application manifest to the list to load when building the list of installed applications. + * Temporary manifests are not automatically loaded */ + virtual EVRApplicationError AddApplicationManifest( const char *pchApplicationManifestFullPath, bool bTemporary = false ) = 0; + + /** Removes an application manifest from the list to load when building the list of installed applications. */ + virtual EVRApplicationError RemoveApplicationManifest( const char *pchApplicationManifestFullPath ) = 0; + + /** Returns true if an application is installed */ + virtual bool IsApplicationInstalled( const char *pchAppKey ) = 0; + + /** Returns the number of applications available in the list */ + virtual uint32_t GetApplicationCount() = 0; + + /** Returns the key of the specified application. The index is at least 0 and is less than the return + * value of GetApplicationCount(). The buffer should be at least k_unMaxApplicationKeyLength in order to + * fit the key. */ + virtual EVRApplicationError GetApplicationKeyByIndex( uint32_t unApplicationIndex, VR_OUT_STRING() char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen ) = 0; + + /** Returns the key of the application for the specified Process Id. The buffer should be at least + * k_unMaxApplicationKeyLength in order to fit the key. */ + virtual EVRApplicationError GetApplicationKeyByProcessId( uint32_t unProcessId, char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen ) = 0; + + /** Launches the application. The existing scene application will exit and then the new application will start. + * This call is not valid for dashboard overlay applications. */ + virtual EVRApplicationError LaunchApplication( const char *pchAppKey ) = 0; + + /** Launches an instance of an application of type template, with its app key being pchNewAppKey (which must be unique) and optionally override sections + * from the manifest file via AppOverrideKeys_t + */ + virtual EVRApplicationError LaunchTemplateApplication( const char *pchTemplateAppKey, const char *pchNewAppKey, VR_ARRAY_COUNT( unKeys ) const AppOverrideKeys_t *pKeys, uint32_t unKeys ) = 0; + + /** launches the application currently associated with this mime type and passes it the option args, typically the filename or object name of the item being launched */ + virtual vr::EVRApplicationError LaunchApplicationFromMimeType( const char *pchMimeType, const char *pchArgs ) = 0; + + /** Launches the dashboard overlay application if it is not already running. This call is only valid for + * dashboard overlay applications. */ + virtual EVRApplicationError LaunchDashboardOverlay( const char *pchAppKey ) = 0; + + /** Cancel a pending launch for an application */ + virtual bool CancelApplicationLaunch( const char *pchAppKey ) = 0; + + /** Identifies a running application. OpenVR can't always tell which process started in response + * to a URL. This function allows a URL handler (or the process itself) to identify the app key + * for the now running application. Passing a process ID of 0 identifies the calling process. + * The application must be one that's known to the system via a call to AddApplicationManifest. */ + virtual EVRApplicationError IdentifyApplication( uint32_t unProcessId, const char *pchAppKey ) = 0; + + /** Returns the process ID for an application. Return 0 if the application was not found or is not running. */ + virtual uint32_t GetApplicationProcessId( const char *pchAppKey ) = 0; + + /** Returns a string for an applications error */ + virtual const char *GetApplicationsErrorNameFromEnum( EVRApplicationError error ) = 0; + + // --------------- Application properties --------------- // + + /** Returns a value for an application property. The required buffer size to fit this value will be returned. */ + virtual uint32_t GetApplicationPropertyString( const char *pchAppKey, EVRApplicationProperty eProperty, VR_OUT_STRING() char *pchPropertyValueBuffer, uint32_t unPropertyValueBufferLen, EVRApplicationError *peError = nullptr ) = 0; + + /** Returns a bool value for an application property. Returns false in all error cases. */ + virtual bool GetApplicationPropertyBool( const char *pchAppKey, EVRApplicationProperty eProperty, EVRApplicationError *peError = nullptr ) = 0; + + /** Returns a uint64 value for an application property. Returns 0 in all error cases. */ + virtual uint64_t GetApplicationPropertyUint64( const char *pchAppKey, EVRApplicationProperty eProperty, EVRApplicationError *peError = nullptr ) = 0; + + /** Sets the application auto-launch flag. This is only valid for applications which return true for VRApplicationProperty_IsDashboardOverlay_Bool. */ + virtual EVRApplicationError SetApplicationAutoLaunch( const char *pchAppKey, bool bAutoLaunch ) = 0; + + /** Gets the application auto-launch flag. This is only valid for applications which return true for VRApplicationProperty_IsDashboardOverlay_Bool. */ + virtual bool GetApplicationAutoLaunch( const char *pchAppKey ) = 0; + + /** Adds this mime-type to the list of supported mime types for this application*/ + virtual EVRApplicationError SetDefaultApplicationForMimeType( const char *pchAppKey, const char *pchMimeType ) = 0; + + /** return the app key that will open this mime type */ + virtual bool GetDefaultApplicationForMimeType( const char *pchMimeType, char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen ) = 0; + + /** Get the list of supported mime types for this application, comma-delimited */ + virtual bool GetApplicationSupportedMimeTypes( const char *pchAppKey, char *pchMimeTypesBuffer, uint32_t unMimeTypesBuffer ) = 0; + + /** Get the list of app-keys that support this mime type, comma-delimited, the return value is number of bytes you need to return the full string */ + virtual uint32_t GetApplicationsThatSupportMimeType( const char *pchMimeType, char *pchAppKeysThatSupportBuffer, uint32_t unAppKeysThatSupportBuffer ) = 0; + + /** Get the args list from an app launch that had the process already running, you call this when you get a VREvent_ApplicationMimeTypeLoad */ + virtual uint32_t GetApplicationLaunchArguments( uint32_t unHandle, char *pchArgs, uint32_t unArgs ) = 0; + + // --------------- Transition methods --------------- // + + /** Returns the app key for the application that is starting up */ + virtual EVRApplicationError GetStartingApplication( char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen ) = 0; + + /** Returns the application transition state */ + virtual EVRApplicationTransitionState GetTransitionState() = 0; + + /** Returns errors that would prevent the specified application from launching immediately. Calling this function will + * cause the current scene application to quit, so only call it when you are actually about to launch something else. + * What the caller should do about these failures depends on the failure: + * VRApplicationError_OldApplicationQuitting - An existing application has been told to quit. Wait for a VREvent_ProcessQuit + * and try again. + * VRApplicationError_ApplicationAlreadyStarting - This application is already starting. This is a permanent failure. + * VRApplicationError_LaunchInProgress - A different application is already starting. This is a permanent failure. + * VRApplicationError_None - Go ahead and launch. Everything is clear. + */ + virtual EVRApplicationError PerformApplicationPrelaunchCheck( const char *pchAppKey ) = 0; + + /** Returns a string for an application transition state */ + virtual const char *GetApplicationsTransitionStateNameFromEnum( EVRApplicationTransitionState state ) = 0; + + /** Returns true if the outgoing scene app has requested a save prompt before exiting */ + virtual bool IsQuitUserPromptRequested() = 0; + + /** Starts a subprocess within the calling application. This + * suppresses all application transition UI and automatically identifies the new executable + * as part of the same application. On success the calling process should exit immediately. + * If working directory is NULL or "" the directory portion of the binary path will be + * the working directory. */ + virtual EVRApplicationError LaunchInternalProcess( const char *pchBinaryPath, const char *pchArguments, const char *pchWorkingDirectory ) = 0; + + /** Returns the current scene process ID according to the application system. A scene process will get scene + * focus once it starts rendering, but it will appear here once it calls VR_Init with the Scene application + * type. */ + virtual uint32_t GetCurrentSceneProcessId() = 0; + }; + + static const char * const IVRApplications_Version = "IVRApplications_006"; + +} // namespace vr + +// ivrsettings.h +namespace vr +{ + enum EVRSettingsError + { + VRSettingsError_None = 0, + VRSettingsError_IPCFailed = 1, + VRSettingsError_WriteFailed = 2, + VRSettingsError_ReadFailed = 3, + VRSettingsError_JsonParseFailed = 4, + VRSettingsError_UnsetSettingHasNoDefault = 5, // This will be returned if the setting does not appear in the appropriate default file and has not been set + }; + + // The maximum length of a settings key + static const uint32_t k_unMaxSettingsKeyLength = 128; + + class IVRSettings + { + public: + virtual const char *GetSettingsErrorNameFromEnum( EVRSettingsError eError ) = 0; + + // Returns true if file sync occurred (force or settings dirty) + virtual bool Sync( bool bForce = false, EVRSettingsError *peError = nullptr ) = 0; + + virtual void SetBool( const char *pchSection, const char *pchSettingsKey, bool bValue, EVRSettingsError *peError = nullptr ) = 0; + virtual void SetInt32( const char *pchSection, const char *pchSettingsKey, int32_t nValue, EVRSettingsError *peError = nullptr ) = 0; + virtual void SetFloat( const char *pchSection, const char *pchSettingsKey, float flValue, EVRSettingsError *peError = nullptr ) = 0; + virtual void SetString( const char *pchSection, const char *pchSettingsKey, const char *pchValue, EVRSettingsError *peError = nullptr ) = 0; + + // Users of the system need to provide a proper default in default.vrsettings in the resources/settings/ directory + // of either the runtime or the driver_xxx directory. Otherwise the default will be false, 0, 0.0 or "" + virtual bool GetBool( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0; + virtual int32_t GetInt32( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0; + virtual float GetFloat( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0; + virtual void GetString( const char *pchSection, const char *pchSettingsKey, VR_OUT_STRING() char *pchValue, uint32_t unValueLen, EVRSettingsError *peError = nullptr ) = 0; + + virtual void RemoveSection( const char *pchSection, EVRSettingsError *peError = nullptr ) = 0; + virtual void RemoveKeyInSection( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0; + }; + + //----------------------------------------------------------------------------- + static const char * const IVRSettings_Version = "IVRSettings_002"; + + //----------------------------------------------------------------------------- + // steamvr keys + static const char * const k_pch_SteamVR_Section = "steamvr"; + static const char * const k_pch_SteamVR_RequireHmd_String = "requireHmd"; + static const char * const k_pch_SteamVR_ForcedDriverKey_String = "forcedDriver"; + static const char * const k_pch_SteamVR_ForcedHmdKey_String = "forcedHmd"; + static const char * const k_pch_SteamVR_DisplayDebug_Bool = "displayDebug"; + static const char * const k_pch_SteamVR_DebugProcessPipe_String = "debugProcessPipe"; + static const char * const k_pch_SteamVR_DisplayDebugX_Int32 = "displayDebugX"; + static const char * const k_pch_SteamVR_DisplayDebugY_Int32 = "displayDebugY"; + static const char * const k_pch_SteamVR_SendSystemButtonToAllApps_Bool= "sendSystemButtonToAllApps"; + static const char * const k_pch_SteamVR_LogLevel_Int32 = "loglevel"; + static const char * const k_pch_SteamVR_IPD_Float = "ipd"; + static const char * const k_pch_SteamVR_Background_String = "background"; + static const char * const k_pch_SteamVR_BackgroundUseDomeProjection_Bool = "backgroundUseDomeProjection"; + static const char * const k_pch_SteamVR_BackgroundCameraHeight_Float = "backgroundCameraHeight"; + static const char * const k_pch_SteamVR_BackgroundDomeRadius_Float = "backgroundDomeRadius"; + static const char * const k_pch_SteamVR_GridColor_String = "gridColor"; + static const char * const k_pch_SteamVR_PlayAreaColor_String = "playAreaColor"; + static const char * const k_pch_SteamVR_ShowStage_Bool = "showStage"; + static const char * const k_pch_SteamVR_ActivateMultipleDrivers_Bool = "activateMultipleDrivers"; + static const char * const k_pch_SteamVR_DirectMode_Bool = "directMode"; + static const char * const k_pch_SteamVR_DirectModeEdidVid_Int32 = "directModeEdidVid"; + static const char * const k_pch_SteamVR_DirectModeEdidPid_Int32 = "directModeEdidPid"; + static const char * const k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers"; + static const char * const k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees"; + static const char * const k_pch_SteamVR_BaseStationPowerManagement_Bool = "basestationPowerManagement"; + static const char * const k_pch_SteamVR_NeverKillProcesses_Bool = "neverKillProcesses"; + static const char * const k_pch_SteamVR_SupersampleScale_Float = "supersampleScale"; + static const char * const k_pch_SteamVR_AllowAsyncReprojection_Bool = "allowAsyncReprojection"; + static const char * const k_pch_SteamVR_AllowReprojection_Bool = "allowInterleavedReprojection"; + static const char * const k_pch_SteamVR_ForceReprojection_Bool = "forceReprojection"; + static const char * const k_pch_SteamVR_ForceFadeOnBadTracking_Bool = "forceFadeOnBadTracking"; + static const char * const k_pch_SteamVR_DefaultMirrorView_Int32 = "defaultMirrorView"; + static const char * const k_pch_SteamVR_ShowMirrorView_Bool = "showMirrorView"; + static const char * const k_pch_SteamVR_MirrorViewGeometry_String = "mirrorViewGeometry"; + static const char * const k_pch_SteamVR_StartMonitorFromAppLaunch = "startMonitorFromAppLaunch"; + static const char * const k_pch_SteamVR_StartCompositorFromAppLaunch_Bool = "startCompositorFromAppLaunch"; + static const char * const k_pch_SteamVR_StartDashboardFromAppLaunch_Bool = "startDashboardFromAppLaunch"; + static const char * const k_pch_SteamVR_StartOverlayAppsFromDashboard_Bool = "startOverlayAppsFromDashboard"; + static const char * const k_pch_SteamVR_EnableHomeApp = "enableHomeApp"; + static const char * const k_pch_SteamVR_CycleBackgroundImageTimeSec_Int32 = "CycleBackgroundImageTimeSec"; + static const char * const k_pch_SteamVR_RetailDemo_Bool = "retailDemo"; + static const char * const k_pch_SteamVR_IpdOffset_Float = "ipdOffset"; + static const char * const k_pch_SteamVR_AllowSupersampleFiltering_Bool = "allowSupersampleFiltering"; + + //----------------------------------------------------------------------------- + // lighthouse keys + static const char * const k_pch_Lighthouse_Section = "driver_lighthouse"; + static const char * const k_pch_Lighthouse_DisableIMU_Bool = "disableimu"; + static const char * const k_pch_Lighthouse_UseDisambiguation_String = "usedisambiguation"; + static const char * const k_pch_Lighthouse_DisambiguationDebug_Int32 = "disambiguationdebug"; + static const char * const k_pch_Lighthouse_PrimaryBasestation_Int32 = "primarybasestation"; + static const char * const k_pch_Lighthouse_DBHistory_Bool = "dbhistory"; + + //----------------------------------------------------------------------------- + // null keys + static const char * const k_pch_Null_Section = "driver_null"; + static const char * const k_pch_Null_SerialNumber_String = "serialNumber"; + static const char * const k_pch_Null_ModelNumber_String = "modelNumber"; + static const char * const k_pch_Null_WindowX_Int32 = "windowX"; + static const char * const k_pch_Null_WindowY_Int32 = "windowY"; + static const char * const k_pch_Null_WindowWidth_Int32 = "windowWidth"; + static const char * const k_pch_Null_WindowHeight_Int32 = "windowHeight"; + static const char * const k_pch_Null_RenderWidth_Int32 = "renderWidth"; + static const char * const k_pch_Null_RenderHeight_Int32 = "renderHeight"; + static const char * const k_pch_Null_SecondsFromVsyncToPhotons_Float = "secondsFromVsyncToPhotons"; + static const char * const k_pch_Null_DisplayFrequency_Float = "displayFrequency"; + + //----------------------------------------------------------------------------- + // user interface keys + static const char * const k_pch_UserInterface_Section = "userinterface"; + static const char * const k_pch_UserInterface_StatusAlwaysOnTop_Bool = "StatusAlwaysOnTop"; + static const char * const k_pch_UserInterface_MinimizeToTray_Bool = "MinimizeToTray"; + static const char * const k_pch_UserInterface_Screenshots_Bool = "screenshots"; + static const char * const k_pch_UserInterface_ScreenshotType_Int = "screenshotType"; + + //----------------------------------------------------------------------------- + // notification keys + static const char * const k_pch_Notifications_Section = "notifications"; + static const char * const k_pch_Notifications_DoNotDisturb_Bool = "DoNotDisturb"; + + //----------------------------------------------------------------------------- + // keyboard keys + static const char * const k_pch_Keyboard_Section = "keyboard"; + static const char * const k_pch_Keyboard_TutorialCompletions = "TutorialCompletions"; + static const char * const k_pch_Keyboard_ScaleX = "ScaleX"; + static const char * const k_pch_Keyboard_ScaleY = "ScaleY"; + static const char * const k_pch_Keyboard_OffsetLeftX = "OffsetLeftX"; + static const char * const k_pch_Keyboard_OffsetRightX = "OffsetRightX"; + static const char * const k_pch_Keyboard_OffsetY = "OffsetY"; + static const char * const k_pch_Keyboard_Smoothing = "Smoothing"; + + //----------------------------------------------------------------------------- + // perf keys + static const char * const k_pch_Perf_Section = "perfcheck"; + static const char * const k_pch_Perf_HeuristicActive_Bool = "heuristicActive"; + static const char * const k_pch_Perf_NotifyInHMD_Bool = "warnInHMD"; + static const char * const k_pch_Perf_NotifyOnlyOnce_Bool = "warnOnlyOnce"; + static const char * const k_pch_Perf_AllowTimingStore_Bool = "allowTimingStore"; + static const char * const k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit"; + static const char * const k_pch_Perf_TestData_Float = "perfTestData"; + static const char * const k_pch_Perf_LinuxGPUProfiling_Bool = "linuxGPUProfiling"; + + //----------------------------------------------------------------------------- + // collision bounds keys + static const char * const k_pch_CollisionBounds_Section = "collisionBounds"; + static const char * const k_pch_CollisionBounds_Style_Int32 = "CollisionBoundsStyle"; + static const char * const k_pch_CollisionBounds_GroundPerimeterOn_Bool = "CollisionBoundsGroundPerimeterOn"; + static const char * const k_pch_CollisionBounds_CenterMarkerOn_Bool = "CollisionBoundsCenterMarkerOn"; + static const char * const k_pch_CollisionBounds_PlaySpaceOn_Bool = "CollisionBoundsPlaySpaceOn"; + static const char * const k_pch_CollisionBounds_FadeDistance_Float = "CollisionBoundsFadeDistance"; + static const char * const k_pch_CollisionBounds_ColorGammaR_Int32 = "CollisionBoundsColorGammaR"; + static const char * const k_pch_CollisionBounds_ColorGammaG_Int32 = "CollisionBoundsColorGammaG"; + static const char * const k_pch_CollisionBounds_ColorGammaB_Int32 = "CollisionBoundsColorGammaB"; + static const char * const k_pch_CollisionBounds_ColorGammaA_Int32 = "CollisionBoundsColorGammaA"; + + //----------------------------------------------------------------------------- + // camera keys + static const char * const k_pch_Camera_Section = "camera"; + static const char * const k_pch_Camera_EnableCamera_Bool = "enableCamera"; + static const char * const k_pch_Camera_EnableCameraInDashboard_Bool = "enableCameraInDashboard"; + static const char * const k_pch_Camera_EnableCameraForCollisionBounds_Bool = "enableCameraForCollisionBounds"; + static const char * const k_pch_Camera_EnableCameraForRoomView_Bool = "enableCameraForRoomView"; + static const char * const k_pch_Camera_BoundsColorGammaR_Int32 = "cameraBoundsColorGammaR"; + static const char * const k_pch_Camera_BoundsColorGammaG_Int32 = "cameraBoundsColorGammaG"; + static const char * const k_pch_Camera_BoundsColorGammaB_Int32 = "cameraBoundsColorGammaB"; + static const char * const k_pch_Camera_BoundsColorGammaA_Int32 = "cameraBoundsColorGammaA"; + static const char * const k_pch_Camera_BoundsStrength_Int32 = "cameraBoundsStrength"; + + //----------------------------------------------------------------------------- + // audio keys + static const char * const k_pch_audio_Section = "audio"; + static const char * const k_pch_audio_OnPlaybackDevice_String = "onPlaybackDevice"; + static const char * const k_pch_audio_OnRecordDevice_String = "onRecordDevice"; + static const char * const k_pch_audio_OnPlaybackMirrorDevice_String = "onPlaybackMirrorDevice"; + static const char * const k_pch_audio_OffPlaybackDevice_String = "offPlaybackDevice"; + static const char * const k_pch_audio_OffRecordDevice_String = "offRecordDevice"; + static const char * const k_pch_audio_VIVEHDMIGain = "viveHDMIGain"; + + //----------------------------------------------------------------------------- + // power management keys + static const char * const k_pch_Power_Section = "power"; + static const char * const k_pch_Power_PowerOffOnExit_Bool = "powerOffOnExit"; + static const char * const k_pch_Power_TurnOffScreensTimeout_Float = "turnOffScreensTimeout"; + static const char * const k_pch_Power_TurnOffControllersTimeout_Float = "turnOffControllersTimeout"; + static const char * const k_pch_Power_ReturnToWatchdogTimeout_Float = "returnToWatchdogTimeout"; + static const char * const k_pch_Power_AutoLaunchSteamVROnButtonPress = "autoLaunchSteamVROnButtonPress"; + + //----------------------------------------------------------------------------- + // dashboard keys + static const char * const k_pch_Dashboard_Section = "dashboard"; + static const char * const k_pch_Dashboard_EnableDashboard_Bool = "enableDashboard"; + static const char * const k_pch_Dashboard_ArcadeMode_Bool = "arcadeMode"; + + //----------------------------------------------------------------------------- + // model skin keys + static const char * const k_pch_modelskin_Section = "modelskins"; + + //----------------------------------------------------------------------------- + // driver keys - These could be checked in any driver_ section + static const char * const k_pch_Driver_Enable_Bool = "enable"; + +} // namespace vr + +// ivrchaperone.h +namespace vr +{ + +#pragma pack( push, 8 ) + +enum ChaperoneCalibrationState +{ + // OK! + ChaperoneCalibrationState_OK = 1, // Chaperone is fully calibrated and working correctly + + // Warnings + ChaperoneCalibrationState_Warning = 100, + ChaperoneCalibrationState_Warning_BaseStationMayHaveMoved = 101, // A base station thinks that it might have moved + ChaperoneCalibrationState_Warning_BaseStationRemoved = 102, // There are less base stations than when calibrated + ChaperoneCalibrationState_Warning_SeatedBoundsInvalid = 103, // Seated bounds haven't been calibrated for the current tracking center + + // Errors + ChaperoneCalibrationState_Error = 200, // The UniverseID is invalid + ChaperoneCalibrationState_Error_BaseStationUninitialized = 201, // Tracking center hasn't be calibrated for at least one of the base stations + ChaperoneCalibrationState_Error_BaseStationConflict = 202, // Tracking center is calibrated, but base stations disagree on the tracking space + ChaperoneCalibrationState_Error_PlayAreaInvalid = 203, // Play Area hasn't been calibrated for the current tracking center + ChaperoneCalibrationState_Error_CollisionBoundsInvalid = 204, // Collision Bounds haven't been calibrated for the current tracking center +}; + + +/** HIGH LEVEL TRACKING SPACE ASSUMPTIONS: +* 0,0,0 is the preferred standing area center. +* 0Y is the floor height. +* -Z is the preferred forward facing direction. */ +class IVRChaperone +{ +public: + + /** Get the current state of Chaperone calibration. This state can change at any time during a session due to physical base station changes. **/ + virtual ChaperoneCalibrationState GetCalibrationState() = 0; + + /** Returns the width and depth of the Play Area (formerly named Soft Bounds) in X and Z. + * Tracking space center (0,0,0) is the center of the Play Area. **/ + virtual bool GetPlayAreaSize( float *pSizeX, float *pSizeZ ) = 0; + + /** Returns the 4 corner positions of the Play Area (formerly named Soft Bounds). + * Corners are in counter-clockwise order. + * Standing center (0,0,0) is the center of the Play Area. + * It's a rectangle. + * 2 sides are parallel to the X axis and 2 sides are parallel to the Z axis. + * Height of every corner is 0Y (on the floor). **/ + virtual bool GetPlayAreaRect( HmdQuad_t *rect ) = 0; + + /** Reload Chaperone data from the .vrchap file on disk. */ + virtual void ReloadInfo( void ) = 0; + + /** Optionally give the chaperone system a hit about the color and brightness in the scene **/ + virtual void SetSceneColor( HmdColor_t color ) = 0; + + /** Get the current chaperone bounds draw color and brightness **/ + virtual void GetBoundsColor( HmdColor_t *pOutputColorArray, int nNumOutputColors, float flCollisionBoundsFadeDistance, HmdColor_t *pOutputCameraColor ) = 0; + + /** Determine whether the bounds are showing right now **/ + virtual bool AreBoundsVisible() = 0; + + /** Force the bounds to show, mostly for utilities **/ + virtual void ForceBoundsVisible( bool bForce ) = 0; +}; + +static const char * const IVRChaperone_Version = "IVRChaperone_003"; + +#pragma pack( pop ) + +} + +// ivrchaperonesetup.h +namespace vr +{ + +enum EChaperoneConfigFile +{ + EChaperoneConfigFile_Live = 1, // The live chaperone config, used by most applications and games + EChaperoneConfigFile_Temp = 2, // The temporary chaperone config, used to live-preview collision bounds in room setup +}; + +enum EChaperoneImportFlags +{ + EChaperoneImport_BoundsOnly = 0x0001, +}; + +/** Manages the working copy of the chaperone info. By default this will be the same as the +* live copy. Any changes made with this interface will stay in the working copy until +* CommitWorkingCopy() is called, at which point the working copy and the live copy will be +* the same again. */ +class IVRChaperoneSetup +{ +public: + + /** Saves the current working copy to disk */ + virtual bool CommitWorkingCopy( EChaperoneConfigFile configFile ) = 0; + + /** Reverts the working copy to match the live chaperone calibration. + * To modify existing data this MUST be do WHILE getting a non-error ChaperoneCalibrationStatus. + * Only after this should you do gets and sets on the existing data. */ + virtual void RevertWorkingCopy() = 0; + + /** Returns the width and depth of the Play Area (formerly named Soft Bounds) in X and Z from the working copy. + * Tracking space center (0,0,0) is the center of the Play Area. */ + virtual bool GetWorkingPlayAreaSize( float *pSizeX, float *pSizeZ ) = 0; + + /** Returns the 4 corner positions of the Play Area (formerly named Soft Bounds) from the working copy. + * Corners are in clockwise order. + * Tracking space center (0,0,0) is the center of the Play Area. + * It's a rectangle. + * 2 sides are parallel to the X axis and 2 sides are parallel to the Z axis. + * Height of every corner is 0Y (on the floor). **/ + virtual bool GetWorkingPlayAreaRect( HmdQuad_t *rect ) = 0; + + /** Returns the number of Quads if the buffer points to null. Otherwise it returns Quads + * into the buffer up to the max specified from the working copy. */ + virtual bool GetWorkingCollisionBoundsInfo( VR_OUT_ARRAY_COUNT(punQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t* punQuadsCount ) = 0; + + /** Returns the number of Quads if the buffer points to null. Otherwise it returns Quads + * into the buffer up to the max specified. */ + virtual bool GetLiveCollisionBoundsInfo( VR_OUT_ARRAY_COUNT(punQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t* punQuadsCount ) = 0; + + /** Returns the preferred seated position from the working copy. */ + virtual bool GetWorkingSeatedZeroPoseToRawTrackingPose( HmdMatrix34_t *pmatSeatedZeroPoseToRawTrackingPose ) = 0; + + /** Returns the standing origin from the working copy. */ + virtual bool GetWorkingStandingZeroPoseToRawTrackingPose( HmdMatrix34_t *pmatStandingZeroPoseToRawTrackingPose ) = 0; + + /** Sets the Play Area in the working copy. */ + virtual void SetWorkingPlayAreaSize( float sizeX, float sizeZ ) = 0; + + /** Sets the Collision Bounds in the working copy. */ + virtual void SetWorkingCollisionBoundsInfo( VR_ARRAY_COUNT(unQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t unQuadsCount ) = 0; + + /** Sets the preferred seated position in the working copy. */ + virtual void SetWorkingSeatedZeroPoseToRawTrackingPose( const HmdMatrix34_t *pMatSeatedZeroPoseToRawTrackingPose ) = 0; + + /** Sets the preferred standing position in the working copy. */ + virtual void SetWorkingStandingZeroPoseToRawTrackingPose( const HmdMatrix34_t *pMatStandingZeroPoseToRawTrackingPose ) = 0; + + /** Tear everything down and reload it from the file on disk */ + virtual void ReloadFromDisk( EChaperoneConfigFile configFile ) = 0; + + /** Returns the preferred seated position. */ + virtual bool GetLiveSeatedZeroPoseToRawTrackingPose( HmdMatrix34_t *pmatSeatedZeroPoseToRawTrackingPose ) = 0; + + virtual void SetWorkingCollisionBoundsTagsInfo( VR_ARRAY_COUNT(unTagCount) uint8_t *pTagsBuffer, uint32_t unTagCount ) = 0; + virtual bool GetLiveCollisionBoundsTagsInfo( VR_OUT_ARRAY_COUNT(punTagCount) uint8_t *pTagsBuffer, uint32_t *punTagCount ) = 0; + + virtual bool SetWorkingPhysicalBoundsInfo( VR_ARRAY_COUNT(unQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t unQuadsCount ) = 0; + virtual bool GetLivePhysicalBoundsInfo( VR_OUT_ARRAY_COUNT(punQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t* punQuadsCount ) = 0; + + virtual bool ExportLiveToBuffer( VR_OUT_STRING() char *pBuffer, uint32_t *pnBufferLength ) = 0; + virtual bool ImportFromBufferToWorking( const char *pBuffer, uint32_t nImportFlags ) = 0; +}; + +static const char * const IVRChaperoneSetup_Version = "IVRChaperoneSetup_005"; + + +} + +// ivrcompositor.h +namespace vr +{ + +#pragma pack( push, 8 ) + +/** Errors that can occur with the VR compositor */ +enum EVRCompositorError +{ + VRCompositorError_None = 0, + VRCompositorError_RequestFailed = 1, + VRCompositorError_IncompatibleVersion = 100, + VRCompositorError_DoNotHaveFocus = 101, + VRCompositorError_InvalidTexture = 102, + VRCompositorError_IsNotSceneApplication = 103, + VRCompositorError_TextureIsOnWrongDevice = 104, + VRCompositorError_TextureUsesUnsupportedFormat = 105, + VRCompositorError_SharedTexturesNotSupported = 106, + VRCompositorError_IndexOutOfRange = 107, + VRCompositorError_AlreadySubmitted = 108, +}; + +const uint32_t VRCompositor_ReprojectionReason_Cpu = 0x01; +const uint32_t VRCompositor_ReprojectionReason_Gpu = 0x02; +const uint32_t VRCompositor_ReprojectionAsync = 0x04; // This flag indicates the async reprojection mode is active, + // but does not indicate if reprojection actually happened or not. + // Use the ReprojectionReason flags above to check if reprojection + // was actually applied (i.e. scene texture was reused). + // NumFramePresents > 1 also indicates the scene texture was reused, + // and also the number of times that it was presented in total. + +/** Provides a single frame's timing information to the app */ +struct Compositor_FrameTiming +{ + uint32_t m_nSize; // Set to sizeof( Compositor_FrameTiming ) + uint32_t m_nFrameIndex; + uint32_t m_nNumFramePresents; // number of times this frame was presented + uint32_t m_nNumMisPresented; // number of times this frame was presented on a vsync other than it was originally predicted to + uint32_t m_nNumDroppedFrames; // number of additional times previous frame was scanned out + uint32_t m_nReprojectionFlags; + + /** Absolute time reference for comparing frames. This aligns with the vsync that running start is relative to. */ + double m_flSystemTimeInSeconds; + + /** These times may include work from other processes due to OS scheduling. + * The fewer packets of work these are broken up into, the less likely this will happen. + * GPU work can be broken up by calling Flush. This can sometimes be useful to get the GPU started + * processing that work earlier in the frame. */ + float m_flPreSubmitGpuMs; // time spent rendering the scene (gpu work submitted between WaitGetPoses and second Submit) + float m_flPostSubmitGpuMs; // additional time spent rendering by application (e.g. companion window) + float m_flTotalRenderGpuMs; // time between work submitted immediately after present (ideally vsync) until the end of compositor submitted work + float m_flCompositorRenderGpuMs; // time spend performing distortion correction, rendering chaperone, overlays, etc. + float m_flCompositorRenderCpuMs; // time spent on cpu submitting the above work for this frame + float m_flCompositorIdleCpuMs; // time spent waiting for running start (application could have used this much more time) + + /** Miscellaneous measured intervals. */ + float m_flClientFrameIntervalMs; // time between calls to WaitGetPoses + float m_flPresentCallCpuMs; // time blocked on call to present (usually 0.0, but can go long) + float m_flWaitForPresentCpuMs; // time spent spin-waiting for frame index to change (not near-zero indicates wait object failure) + float m_flSubmitFrameMs; // time spent in IVRCompositor::Submit (not near-zero indicates driver issue) + + /** The following are all relative to this frame's SystemTimeInSeconds */ + float m_flWaitGetPosesCalledMs; + float m_flNewPosesReadyMs; + float m_flNewFrameReadyMs; // second call to IVRCompositor::Submit + float m_flCompositorUpdateStartMs; + float m_flCompositorUpdateEndMs; + float m_flCompositorRenderStartMs; + + vr::TrackedDevicePose_t m_HmdPose; // pose used by app to render this frame +}; + +/** Cumulative stats for current application. These are not cleared until a new app connects, +* but they do stop accumulating once the associated app disconnects. */ +struct Compositor_CumulativeStats +{ + uint32_t m_nPid; // Process id associated with these stats (may no longer be running). + uint32_t m_nNumFramePresents; // total number of times we called present (includes reprojected frames) + uint32_t m_nNumDroppedFrames; // total number of times an old frame was re-scanned out (without reprojection) + uint32_t m_nNumReprojectedFrames; // total number of times a frame was scanned out a second time (with reprojection) + + /** Values recorded at startup before application has fully faded in the first time. */ + uint32_t m_nNumFramePresentsOnStartup; + uint32_t m_nNumDroppedFramesOnStartup; + uint32_t m_nNumReprojectedFramesOnStartup; + + /** Applications may explicitly fade to the compositor. This is usually to handle level transitions, and loading often causes + * system wide hitches. The following stats are collected during this period. Does not include values recorded during startup. */ + uint32_t m_nNumLoading; + uint32_t m_nNumFramePresentsLoading; + uint32_t m_nNumDroppedFramesLoading; + uint32_t m_nNumReprojectedFramesLoading; + + /** If we don't get a new frame from the app in less than 2.5 frames, then we assume the app has hung and start + * fading back to the compositor. The following stats are a result of this, and are a subset of those recorded above. + * Does not include values recorded during start up or loading. */ + uint32_t m_nNumTimedOut; + uint32_t m_nNumFramePresentsTimedOut; + uint32_t m_nNumDroppedFramesTimedOut; + uint32_t m_nNumReprojectedFramesTimedOut; +}; + +#pragma pack( pop ) + +/** Allows the application to interact with the compositor */ +class IVRCompositor +{ +public: + /** Sets tracking space returned by WaitGetPoses */ + virtual void SetTrackingSpace( ETrackingUniverseOrigin eOrigin ) = 0; + + /** Gets current tracking space returned by WaitGetPoses */ + virtual ETrackingUniverseOrigin GetTrackingSpace() = 0; + + /** Scene applications should call this function to get poses to render with (and optionally poses predicted an additional frame out to use for gameplay). + * This function will block until "running start" milliseconds before the start of the frame, and should be called at the last moment before needing to + * start rendering. + * + * Return codes: + * - IsNotSceneApplication (make sure to call VR_Init with VRApplicaiton_Scene) + * - DoNotHaveFocus (some other app has taken focus - this will throttle the call to 10hz to reduce the impact on that app) + */ + virtual EVRCompositorError WaitGetPoses( VR_ARRAY_COUNT(unRenderPoseArrayCount) TrackedDevicePose_t* pRenderPoseArray, uint32_t unRenderPoseArrayCount, + VR_ARRAY_COUNT(unGamePoseArrayCount) TrackedDevicePose_t* pGamePoseArray, uint32_t unGamePoseArrayCount ) = 0; + + /** Get the last set of poses returned by WaitGetPoses. */ + virtual EVRCompositorError GetLastPoses( VR_ARRAY_COUNT( unRenderPoseArrayCount ) TrackedDevicePose_t* pRenderPoseArray, uint32_t unRenderPoseArrayCount, + VR_ARRAY_COUNT( unGamePoseArrayCount ) TrackedDevicePose_t* pGamePoseArray, uint32_t unGamePoseArrayCount ) = 0; + + /** Interface for accessing last set of poses returned by WaitGetPoses one at a time. + * Returns VRCompositorError_IndexOutOfRange if unDeviceIndex not less than k_unMaxTrackedDeviceCount otherwise VRCompositorError_None. + * It is okay to pass NULL for either pose if you only want one of the values. */ + virtual EVRCompositorError GetLastPoseForTrackedDeviceIndex( TrackedDeviceIndex_t unDeviceIndex, TrackedDevicePose_t *pOutputPose, TrackedDevicePose_t *pOutputGamePose ) = 0; + + /** Updated scene texture to display. If pBounds is NULL the entire texture will be used. If called from an OpenGL app, consider adding a glFlush after + * Submitting both frames to signal the driver to start processing, otherwise it may wait until the command buffer fills up, causing the app to miss frames. + * + * OpenGL dirty state: + * glBindTexture + * + * Return codes: + * - IsNotSceneApplication (make sure to call VR_Init with VRApplicaiton_Scene) + * - DoNotHaveFocus (some other app has taken focus) + * - TextureIsOnWrongDevice (application did not use proper AdapterIndex - see IVRSystem.GetDXGIOutputInfo) + * - SharedTexturesNotSupported (application needs to call CreateDXGIFactory1 or later before creating DX device) + * - TextureUsesUnsupportedFormat (scene textures must be compatible with DXGI sharing rules - e.g. uncompressed, no mips, etc.) + * - InvalidTexture (usually means bad arguments passed in) + * - AlreadySubmitted (app has submitted two left textures or two right textures in a single frame - i.e. before calling WaitGetPoses again) + */ + virtual EVRCompositorError Submit( EVREye eEye, const Texture_t *pTexture, const VRTextureBounds_t* pBounds = 0, EVRSubmitFlags nSubmitFlags = Submit_Default ) = 0; + + /** Clears the frame that was sent with the last call to Submit. This will cause the + * compositor to show the grid until Submit is called again. */ + virtual void ClearLastSubmittedFrame() = 0; + + /** Call immediately after presenting your app's window (i.e. companion window) to unblock the compositor. + * This is an optional call, which only needs to be used if you can't instead call WaitGetPoses immediately after Present. + * For example, if your engine's render and game loop are not on separate threads, or blocking the render thread until 3ms before the next vsync would + * introduce a deadlock of some sort. This function tells the compositor that you have finished all rendering after having Submitted buffers for both + * eyes, and it is free to start its rendering work. This should only be called from the same thread you are rendering on. */ + virtual void PostPresentHandoff() = 0; + + /** Returns true if timing data is filled it. Sets oldest timing info if nFramesAgo is larger than the stored history. + * Be sure to set timing.size = sizeof(Compositor_FrameTiming) on struct passed in before calling this function. */ + virtual bool GetFrameTiming( Compositor_FrameTiming *pTiming, uint32_t unFramesAgo = 0 ) = 0; + + /** Interface for copying a range of timing data. Frames are returned in ascending order (oldest to newest) with the last being the most recent frame. + * Only the first entry's m_nSize needs to be set, as the rest will be inferred from that. Returns total number of entries filled out. */ + virtual uint32_t GetFrameTimings( Compositor_FrameTiming *pTiming, uint32_t nFrames ) = 0; + + /** Returns the time in seconds left in the current (as identified by FrameTiming's frameIndex) frame. + * Due to "running start", this value may roll over to the next frame before ever reaching 0.0. */ + virtual float GetFrameTimeRemaining() = 0; + + /** Fills out stats accumulated for the last connected application. Pass in sizeof( Compositor_CumulativeStats ) as second parameter. */ + virtual void GetCumulativeStats( Compositor_CumulativeStats *pStats, uint32_t nStatsSizeInBytes ) = 0; + + /** Fades the view on the HMD to the specified color. The fade will take fSeconds, and the color values are between + * 0.0 and 1.0. This color is faded on top of the scene based on the alpha parameter. Removing the fade color instantly + * would be FadeToColor( 0.0, 0.0, 0.0, 0.0, 0.0 ). Values are in un-premultiplied alpha space. */ + virtual void FadeToColor( float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground = false ) = 0; + + /** Get current fade color value. */ + virtual HmdColor_t GetCurrentFadeColor( bool bBackground = false ) = 0; + + /** Fading the Grid in or out in fSeconds */ + virtual void FadeGrid( float fSeconds, bool bFadeIn ) = 0; + + /** Get current alpha value of grid. */ + virtual float GetCurrentGridAlpha() = 0; + + /** Override the skybox used in the compositor (e.g. for during level loads when the app can't feed scene images fast enough) + * Order is Front, Back, Left, Right, Top, Bottom. If only a single texture is passed, it is assumed in lat-long format. + * If two are passed, it is assumed a lat-long stereo pair. */ + virtual EVRCompositorError SetSkyboxOverride( VR_ARRAY_COUNT( unTextureCount ) const Texture_t *pTextures, uint32_t unTextureCount ) = 0; + + /** Resets compositor skybox back to defaults. */ + virtual void ClearSkyboxOverride() = 0; + + /** Brings the compositor window to the front. This is useful for covering any other window that may be on the HMD + * and is obscuring the compositor window. */ + virtual void CompositorBringToFront() = 0; + + /** Pushes the compositor window to the back. This is useful for allowing other applications to draw directly to the HMD. */ + virtual void CompositorGoToBack() = 0; + + /** Tells the compositor process to clean up and exit. You do not need to call this function at shutdown. Under normal + * circumstances the compositor will manage its own life cycle based on what applications are running. */ + virtual void CompositorQuit() = 0; + + /** Return whether the compositor is fullscreen */ + virtual bool IsFullscreen() = 0; + + /** Returns the process ID of the process that is currently rendering the scene */ + virtual uint32_t GetCurrentSceneFocusProcess() = 0; + + /** Returns the process ID of the process that rendered the last frame (or 0 if the compositor itself rendered the frame.) + * Returns 0 when fading out from an app and the app's process Id when fading into an app. */ + virtual uint32_t GetLastFrameRenderer() = 0; + + /** Returns true if the current process has the scene focus */ + virtual bool CanRenderScene() = 0; + + /** Creates a window on the primary monitor to display what is being shown in the headset. */ + virtual void ShowMirrorWindow() = 0; + + /** Closes the mirror window. */ + virtual void HideMirrorWindow() = 0; + + /** Returns true if the mirror window is shown. */ + virtual bool IsMirrorWindowVisible() = 0; + + /** Writes all images that the compositor knows about (including overlays) to a 'screenshots' folder in the SteamVR runtime root. */ + virtual void CompositorDumpImages() = 0; + + /** Let an app know it should be rendering with low resources. */ + virtual bool ShouldAppRenderWithLowResources() = 0; + + /** Override interleaved reprojection logic to force on. */ + virtual void ForceInterleavedReprojectionOn( bool bOverride ) = 0; + + /** Force reconnecting to the compositor process. */ + virtual void ForceReconnectProcess() = 0; + + /** Temporarily suspends rendering (useful for finer control over scene transitions). */ + virtual void SuspendRendering( bool bSuspend ) = 0; + + /** Opens a shared D3D11 texture with the undistorted composited image for each eye. Use ReleaseMirrorTextureD3D11 when finished + * instead of calling Release on the resource itself. */ + virtual vr::EVRCompositorError GetMirrorTextureD3D11( vr::EVREye eEye, void *pD3D11DeviceOrResource, void **ppD3D11ShaderResourceView ) = 0; + virtual void ReleaseMirrorTextureD3D11( void *pD3D11ShaderResourceView ) = 0; + + /** Access to mirror textures from OpenGL. */ + virtual vr::EVRCompositorError GetMirrorTextureGL( vr::EVREye eEye, vr::glUInt_t *pglTextureId, vr::glSharedTextureHandle_t *pglSharedTextureHandle ) = 0; + virtual bool ReleaseSharedGLTexture( vr::glUInt_t glTextureId, vr::glSharedTextureHandle_t glSharedTextureHandle ) = 0; + virtual void LockGLSharedTextureForAccess( vr::glSharedTextureHandle_t glSharedTextureHandle ) = 0; + virtual void UnlockGLSharedTextureForAccess( vr::glSharedTextureHandle_t glSharedTextureHandle ) = 0; + + /** [Vulkan Only] + * return 0. Otherwise it returns the length of the number of bytes necessary to hold this string including the trailing + * null. The string will be a space separated list of-required instance extensions to enable in VkCreateInstance */ + virtual uint32_t GetVulkanInstanceExtensionsRequired( VR_OUT_STRING() char *pchValue, uint32_t unBufferSize ) = 0; + + /** [Vulkan only] + * return 0. Otherwise it returns the length of the number of bytes necessary to hold this string including the trailing + * null. The string will be a space separated list of required device extensions to enable in VkCreateDevice */ + virtual uint32_t GetVulkanDeviceExtensionsRequired( VkPhysicalDevice_T *pPhysicalDevice, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize ) = 0; + +}; + +static const char * const IVRCompositor_Version = "IVRCompositor_020"; + +} // namespace vr + + + +// ivrnotifications.h +namespace vr +{ + +#pragma pack( push, 8 ) + +// Used for passing graphic data +struct NotificationBitmap_t +{ + NotificationBitmap_t() + : m_pImageData( nullptr ) + , m_nWidth( 0 ) + , m_nHeight( 0 ) + , m_nBytesPerPixel( 0 ) + { + }; + + void *m_pImageData; + int32_t m_nWidth; + int32_t m_nHeight; + int32_t m_nBytesPerPixel; +}; + + +/** Be aware that the notification type is used as 'priority' to pick the next notification */ +enum EVRNotificationType +{ + /** Transient notifications are automatically hidden after a period of time set by the user. + * They are used for things like information and chat messages that do not require user interaction. */ + EVRNotificationType_Transient = 0, + + /** Persistent notifications are shown to the user until they are hidden by calling RemoveNotification(). + * They are used for things like phone calls and alarms that require user interaction. */ + EVRNotificationType_Persistent = 1, + + /** System notifications are shown no matter what. It is expected, that the ulUserValue is used as ID. + * If there is already a system notification in the queue with that ID it is not accepted into the queue + * to prevent spamming with system notification */ + EVRNotificationType_Transient_SystemWithUserValue = 2, +}; + +enum EVRNotificationStyle +{ + /** Creates a notification with minimal external styling. */ + EVRNotificationStyle_None = 0, + + /** Used for notifications about overlay-level status. In Steam this is used for events like downloads completing. */ + EVRNotificationStyle_Application = 100, + + /** Used for notifications about contacts that are unknown or not available. In Steam this is used for friend invitations and offline friends. */ + EVRNotificationStyle_Contact_Disabled = 200, + + /** Used for notifications about contacts that are available but inactive. In Steam this is used for friends that are online but not playing a game. */ + EVRNotificationStyle_Contact_Enabled = 201, + + /** Used for notifications about contacts that are available and active. In Steam this is used for friends that are online and currently running a game. */ + EVRNotificationStyle_Contact_Active = 202, +}; + +static const uint32_t k_unNotificationTextMaxSize = 256; + +typedef uint32_t VRNotificationId; + + + +#pragma pack( pop ) + +/** Allows notification sources to interact with the VR system + This current interface is not yet implemented. Do not use yet. */ +class IVRNotifications +{ +public: + /** Create a notification and enqueue it to be shown to the user. + * An overlay handle is required to create a notification, as otherwise it would be impossible for a user to act on it. + * To create a two-line notification, use a line break ('\n') to split the text into two lines. + * The pImage argument may be NULL, in which case the specified overlay's icon will be used instead. */ + virtual EVRNotificationError CreateNotification( VROverlayHandle_t ulOverlayHandle, uint64_t ulUserValue, EVRNotificationType type, const char *pchText, EVRNotificationStyle style, const NotificationBitmap_t *pImage, /* out */ VRNotificationId *pNotificationId ) = 0; + + /** Destroy a notification, hiding it first if it currently shown to the user. */ + virtual EVRNotificationError RemoveNotification( VRNotificationId notificationId ) = 0; + +}; + +static const char * const IVRNotifications_Version = "IVRNotifications_002"; + +} // namespace vr + + + +// ivroverlay.h +namespace vr +{ + + /** The maximum length of an overlay key in bytes, counting the terminating null character. */ + static const uint32_t k_unVROverlayMaxKeyLength = 128; + + /** The maximum length of an overlay name in bytes, counting the terminating null character. */ + static const uint32_t k_unVROverlayMaxNameLength = 128; + + /** The maximum number of overlays that can exist in the system at one time. */ + static const uint32_t k_unMaxOverlayCount = 64; + + /** The maximum number of overlay intersection mask primitives per overlay */ + static const uint32_t k_unMaxOverlayIntersectionMaskPrimitivesCount = 32; + + /** Types of input supported by VR Overlays */ + enum VROverlayInputMethod + { + VROverlayInputMethod_None = 0, // No input events will be generated automatically for this overlay + VROverlayInputMethod_Mouse = 1, // Tracked controllers will get mouse events automatically + }; + + /** Allows the caller to figure out which overlay transform getter to call. */ + enum VROverlayTransformType + { + VROverlayTransform_Absolute = 0, + VROverlayTransform_TrackedDeviceRelative = 1, + VROverlayTransform_SystemOverlay = 2, + VROverlayTransform_TrackedComponent = 3, + }; + + /** Overlay control settings */ + enum VROverlayFlags + { + VROverlayFlags_None = 0, + + // The following only take effect when rendered using the high quality render path (see SetHighQualityOverlay). + VROverlayFlags_Curved = 1, + VROverlayFlags_RGSS4X = 2, + + // Set this flag on a dashboard overlay to prevent a tab from showing up for that overlay + VROverlayFlags_NoDashboardTab = 3, + + // Set this flag on a dashboard that is able to deal with gamepad focus events + VROverlayFlags_AcceptsGamepadEvents = 4, + + // Indicates that the overlay should dim/brighten to show gamepad focus + VROverlayFlags_ShowGamepadFocus = 5, + + // When in VROverlayInputMethod_Mouse you can optionally enable sending VRScroll_t + VROverlayFlags_SendVRScrollEvents = 6, + VROverlayFlags_SendVRTouchpadEvents = 7, + + // If set this will render a vertical scroll wheel on the primary controller, + // only needed if not using VROverlayFlags_SendVRScrollEvents but you still want to represent a scroll wheel + VROverlayFlags_ShowTouchPadScrollWheel = 8, + + // If this is set ownership and render access to the overlay are transferred + // to the new scene process on a call to IVRApplications::LaunchInternalProcess + VROverlayFlags_TransferOwnershipToInternalProcess = 9, + + // If set, renders 50% of the texture in each eye, side by side + VROverlayFlags_SideBySide_Parallel = 10, // Texture is left/right + VROverlayFlags_SideBySide_Crossed = 11, // Texture is crossed and right/left + + VROverlayFlags_Panorama = 12, // Texture is a panorama + VROverlayFlags_StereoPanorama = 13, // Texture is a stereo panorama + + // If this is set on an overlay owned by the scene application that overlay + // will be sorted with the "Other" overlays on top of all other scene overlays + VROverlayFlags_SortWithNonSceneOverlays = 14, + + // If set, the overlay will be shown in the dashboard, otherwise it will be hidden. + VROverlayFlags_VisibleInDashboard = 15, + }; + + enum VRMessageOverlayResponse + { + VRMessageOverlayResponse_ButtonPress_0 = 0, + VRMessageOverlayResponse_ButtonPress_1 = 1, + VRMessageOverlayResponse_ButtonPress_2 = 2, + VRMessageOverlayResponse_ButtonPress_3 = 3, + VRMessageOverlayResponse_CouldntFindSystemOverlay = 4, + VRMessageOverlayResponse_CouldntFindOrCreateClientOverlay= 5, + VRMessageOverlayResponse_ApplicationQuit = 6 + }; + + struct VROverlayIntersectionParams_t + { + HmdVector3_t vSource; + HmdVector3_t vDirection; + ETrackingUniverseOrigin eOrigin; + }; + + struct VROverlayIntersectionResults_t + { + HmdVector3_t vPoint; + HmdVector3_t vNormal; + HmdVector2_t vUVs; + float fDistance; + }; + + // Input modes for the Big Picture gamepad text entry + enum EGamepadTextInputMode + { + k_EGamepadTextInputModeNormal = 0, + k_EGamepadTextInputModePassword = 1, + k_EGamepadTextInputModeSubmit = 2, + }; + + // Controls number of allowed lines for the Big Picture gamepad text entry + enum EGamepadTextInputLineMode + { + k_EGamepadTextInputLineModeSingleLine = 0, + k_EGamepadTextInputLineModeMultipleLines = 1 + }; + + /** Directions for changing focus between overlays with the gamepad */ + enum EOverlayDirection + { + OverlayDirection_Up = 0, + OverlayDirection_Down = 1, + OverlayDirection_Left = 2, + OverlayDirection_Right = 3, + + OverlayDirection_Count = 4, + }; + + enum EVROverlayIntersectionMaskPrimitiveType + { + OverlayIntersectionPrimitiveType_Rectangle, + OverlayIntersectionPrimitiveType_Circle, + }; + + struct IntersectionMaskRectangle_t + { + float m_flTopLeftX; + float m_flTopLeftY; + float m_flWidth; + float m_flHeight; + }; + + struct IntersectionMaskCircle_t + { + float m_flCenterX; + float m_flCenterY; + float m_flRadius; + }; + + /** NOTE!!! If you change this you MUST manually update openvr_interop.cs.py and openvr_api_flat.h.py */ + typedef union + { + IntersectionMaskRectangle_t m_Rectangle; + IntersectionMaskCircle_t m_Circle; + } VROverlayIntersectionMaskPrimitive_Data_t; + + struct VROverlayIntersectionMaskPrimitive_t + { + EVROverlayIntersectionMaskPrimitiveType m_nPrimitiveType; + VROverlayIntersectionMaskPrimitive_Data_t m_Primitive; + }; + + class IVROverlay + { + public: + + // --------------------------------------------- + // Overlay management methods + // --------------------------------------------- + + /** Finds an existing overlay with the specified key. */ + virtual EVROverlayError FindOverlay( const char *pchOverlayKey, VROverlayHandle_t * pOverlayHandle ) = 0; + + /** Creates a new named overlay. All overlays start hidden and with default settings. */ + virtual EVROverlayError CreateOverlay( const char *pchOverlayKey, const char *pchOverlayName, VROverlayHandle_t * pOverlayHandle ) = 0; + + /** Destroys the specified overlay. When an application calls VR_Shutdown all overlays created by that app are + * automatically destroyed. */ + virtual EVROverlayError DestroyOverlay( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Specify which overlay to use the high quality render path. This overlay will be composited in during the distortion pass which + * results in it drawing on top of everything else, but also at a higher quality as it samples the source texture directly rather than + * rasterizing into each eye's render texture first. Because if this, only one of these is supported at any given time. It is most useful + * for overlays that are expected to take up most of the user's view (e.g. streaming video). + * This mode does not support mouse input to your overlay. */ + virtual EVROverlayError SetHighQualityOverlay( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Returns the overlay handle of the current overlay being rendered using the single high quality overlay render path. + * Otherwise it will return k_ulOverlayHandleInvalid. */ + virtual vr::VROverlayHandle_t GetHighQualityOverlay() = 0; + + /** Fills the provided buffer with the string key of the overlay. Returns the size of buffer required to store the key, including + * the terminating null character. k_unVROverlayMaxKeyLength will be enough bytes to fit the string. */ + virtual uint32_t GetOverlayKey( VROverlayHandle_t ulOverlayHandle, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, EVROverlayError *pError = 0L ) = 0; + + /** Fills the provided buffer with the friendly name of the overlay. Returns the size of buffer required to store the key, including + * the terminating null character. k_unVROverlayMaxNameLength will be enough bytes to fit the string. */ + virtual uint32_t GetOverlayName( VROverlayHandle_t ulOverlayHandle, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, EVROverlayError *pError = 0L ) = 0; + + /** set the name to use for this overlay */ + virtual EVROverlayError SetOverlayName( VROverlayHandle_t ulOverlayHandle, const char *pchName ) = 0; + + /** Gets the raw image data from an overlay. Overlay image data is always returned as RGBA data, 4 bytes per pixel. If the buffer is not large enough, width and height + * will be set and VROverlayError_ArrayTooSmall is returned. */ + virtual EVROverlayError GetOverlayImageData( VROverlayHandle_t ulOverlayHandle, void *pvBuffer, uint32_t unBufferSize, uint32_t *punWidth, uint32_t *punHeight ) = 0; + + /** returns a string that corresponds with the specified overlay error. The string will be the name + * of the error enum value for all valid error codes */ + virtual const char *GetOverlayErrorNameFromEnum( EVROverlayError error ) = 0; + + // --------------------------------------------- + // Overlay rendering methods + // --------------------------------------------- + + /** Sets the pid that is allowed to render to this overlay (the creator pid is always allow to render), + * by default this is the pid of the process that made the overlay */ + virtual EVROverlayError SetOverlayRenderingPid( VROverlayHandle_t ulOverlayHandle, uint32_t unPID ) = 0; + + /** Gets the pid that is allowed to render to this overlay */ + virtual uint32_t GetOverlayRenderingPid( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Specify flag setting for a given overlay */ + virtual EVROverlayError SetOverlayFlag( VROverlayHandle_t ulOverlayHandle, VROverlayFlags eOverlayFlag, bool bEnabled ) = 0; + + /** Sets flag setting for a given overlay */ + virtual EVROverlayError GetOverlayFlag( VROverlayHandle_t ulOverlayHandle, VROverlayFlags eOverlayFlag, bool *pbEnabled ) = 0; + + /** Sets the color tint of the overlay quad. Use 0.0 to 1.0 per channel. */ + virtual EVROverlayError SetOverlayColor( VROverlayHandle_t ulOverlayHandle, float fRed, float fGreen, float fBlue ) = 0; + + /** Gets the color tint of the overlay quad. */ + virtual EVROverlayError GetOverlayColor( VROverlayHandle_t ulOverlayHandle, float *pfRed, float *pfGreen, float *pfBlue ) = 0; + + /** Sets the alpha of the overlay quad. Use 1.0 for 100 percent opacity to 0.0 for 0 percent opacity. */ + virtual EVROverlayError SetOverlayAlpha( VROverlayHandle_t ulOverlayHandle, float fAlpha ) = 0; + + /** Gets the alpha of the overlay quad. By default overlays are rendering at 100 percent alpha (1.0). */ + virtual EVROverlayError GetOverlayAlpha( VROverlayHandle_t ulOverlayHandle, float *pfAlpha ) = 0; + + /** Sets the aspect ratio of the texels in the overlay. 1.0 means the texels are square. 2.0 means the texels + * are twice as wide as they are tall. Defaults to 1.0. */ + virtual EVROverlayError SetOverlayTexelAspect( VROverlayHandle_t ulOverlayHandle, float fTexelAspect ) = 0; + + /** Gets the aspect ratio of the texels in the overlay. Defaults to 1.0 */ + virtual EVROverlayError GetOverlayTexelAspect( VROverlayHandle_t ulOverlayHandle, float *pfTexelAspect ) = 0; + + /** Sets the rendering sort order for the overlay. Overlays are rendered this order: + * Overlays owned by the scene application + * Overlays owned by some other application + * + * Within a category overlays are rendered lowest sort order to highest sort order. Overlays with the same + * sort order are rendered back to front base on distance from the HMD. + * + * Sort order defaults to 0. */ + virtual EVROverlayError SetOverlaySortOrder( VROverlayHandle_t ulOverlayHandle, uint32_t unSortOrder ) = 0; + + /** Gets the sort order of the overlay. See SetOverlaySortOrder for how this works. */ + virtual EVROverlayError GetOverlaySortOrder( VROverlayHandle_t ulOverlayHandle, uint32_t *punSortOrder ) = 0; + + /** Sets the width of the overlay quad in meters. By default overlays are rendered on a quad that is 1 meter across */ + virtual EVROverlayError SetOverlayWidthInMeters( VROverlayHandle_t ulOverlayHandle, float fWidthInMeters ) = 0; + + /** Returns the width of the overlay quad in meters. By default overlays are rendered on a quad that is 1 meter across */ + virtual EVROverlayError GetOverlayWidthInMeters( VROverlayHandle_t ulOverlayHandle, float *pfWidthInMeters ) = 0; + + /** For high-quality curved overlays only, sets the distance range in meters from the overlay used to automatically curve + * the surface around the viewer. Min is distance is when the surface will be most curved. Max is when least curved. */ + virtual EVROverlayError SetOverlayAutoCurveDistanceRangeInMeters( VROverlayHandle_t ulOverlayHandle, float fMinDistanceInMeters, float fMaxDistanceInMeters ) = 0; + + /** For high-quality curved overlays only, gets the distance range in meters from the overlay used to automatically curve + * the surface around the viewer. Min is distance is when the surface will be most curved. Max is when least curved. */ + virtual EVROverlayError GetOverlayAutoCurveDistanceRangeInMeters( VROverlayHandle_t ulOverlayHandle, float *pfMinDistanceInMeters, float *pfMaxDistanceInMeters ) = 0; + + /** Sets the colorspace the overlay texture's data is in. Defaults to 'auto'. + * If the texture needs to be resolved, you should call SetOverlayTexture with the appropriate colorspace instead. */ + virtual EVROverlayError SetOverlayTextureColorSpace( VROverlayHandle_t ulOverlayHandle, EColorSpace eTextureColorSpace ) = 0; + + /** Gets the overlay's current colorspace setting. */ + virtual EVROverlayError GetOverlayTextureColorSpace( VROverlayHandle_t ulOverlayHandle, EColorSpace *peTextureColorSpace ) = 0; + + /** Sets the part of the texture to use for the overlay. UV Min is the upper left corner and UV Max is the lower right corner. */ + virtual EVROverlayError SetOverlayTextureBounds( VROverlayHandle_t ulOverlayHandle, const VRTextureBounds_t *pOverlayTextureBounds ) = 0; + + /** Gets the part of the texture to use for the overlay. UV Min is the upper left corner and UV Max is the lower right corner. */ + virtual EVROverlayError GetOverlayTextureBounds( VROverlayHandle_t ulOverlayHandle, VRTextureBounds_t *pOverlayTextureBounds ) = 0; + + /** Gets render model to draw behind this overlay */ + virtual uint32_t GetOverlayRenderModel( vr::VROverlayHandle_t ulOverlayHandle, char *pchValue, uint32_t unBufferSize, HmdColor_t *pColor, vr::EVROverlayError *pError ) = 0; + + /** Sets render model to draw behind this overlay and the vertex color to use, pass null for pColor to match the overlays vertex color. + The model is scaled by the same amount as the overlay, with a default of 1m. */ + virtual vr::EVROverlayError SetOverlayRenderModel( vr::VROverlayHandle_t ulOverlayHandle, const char *pchRenderModel, const HmdColor_t *pColor ) = 0; + + /** Returns the transform type of this overlay. */ + virtual EVROverlayError GetOverlayTransformType( VROverlayHandle_t ulOverlayHandle, VROverlayTransformType *peTransformType ) = 0; + + /** Sets the transform to absolute tracking origin. */ + virtual EVROverlayError SetOverlayTransformAbsolute( VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, const HmdMatrix34_t *pmatTrackingOriginToOverlayTransform ) = 0; + + /** Gets the transform if it is absolute. Returns an error if the transform is some other type. */ + virtual EVROverlayError GetOverlayTransformAbsolute( VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin *peTrackingOrigin, HmdMatrix34_t *pmatTrackingOriginToOverlayTransform ) = 0; + + /** Sets the transform to relative to the transform of the specified tracked device. */ + virtual EVROverlayError SetOverlayTransformTrackedDeviceRelative( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unTrackedDevice, const HmdMatrix34_t *pmatTrackedDeviceToOverlayTransform ) = 0; + + /** Gets the transform if it is relative to a tracked device. Returns an error if the transform is some other type. */ + virtual EVROverlayError GetOverlayTransformTrackedDeviceRelative( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t *punTrackedDevice, HmdMatrix34_t *pmatTrackedDeviceToOverlayTransform ) = 0; + + /** Sets the transform to draw the overlay on a rendermodel component mesh instead of a quad. This will only draw when the system is + * drawing the device. Overlays with this transform type cannot receive mouse events. */ + virtual EVROverlayError SetOverlayTransformTrackedDeviceComponent( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unDeviceIndex, const char *pchComponentName ) = 0; + + /** Gets the transform information when the overlay is rendering on a component. */ + virtual EVROverlayError GetOverlayTransformTrackedDeviceComponent( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t *punDeviceIndex, char *pchComponentName, uint32_t unComponentNameSize ) = 0; + + /** Gets the transform if it is relative to another overlay. Returns an error if the transform is some other type. */ + virtual vr::EVROverlayError GetOverlayTransformOverlayRelative( VROverlayHandle_t ulOverlayHandle, VROverlayHandle_t *ulOverlayHandleParent, HmdMatrix34_t *pmatParentOverlayToOverlayTransform ) = 0; + + /** Sets the transform to relative to the transform of the specified overlay. This overlays visibility will also track the parents visibility */ + virtual vr::EVROverlayError SetOverlayTransformOverlayRelative( VROverlayHandle_t ulOverlayHandle, VROverlayHandle_t ulOverlayHandleParent, const HmdMatrix34_t *pmatParentOverlayToOverlayTransform ) = 0; + + /** Shows the VR overlay. For dashboard overlays, only the Dashboard Manager is allowed to call this. */ + virtual EVROverlayError ShowOverlay( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Hides the VR overlay. For dashboard overlays, only the Dashboard Manager is allowed to call this. */ + virtual EVROverlayError HideOverlay( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Returns true if the overlay is visible. */ + virtual bool IsOverlayVisible( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Get the transform in 3d space associated with a specific 2d point in the overlay's coordinate space (where 0,0 is the lower left). -Z points out of the overlay */ + virtual EVROverlayError GetTransformForOverlayCoordinates( VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, HmdVector2_t coordinatesInOverlay, HmdMatrix34_t *pmatTransform ) = 0; + + // --------------------------------------------- + // Overlay input methods + // --------------------------------------------- + + /** Returns true and fills the event with the next event on the overlay's event queue, if there is one. + * If there are no events this method returns false. uncbVREvent should be the size in bytes of the VREvent_t struct */ + virtual bool PollNextOverlayEvent( VROverlayHandle_t ulOverlayHandle, VREvent_t *pEvent, uint32_t uncbVREvent ) = 0; + + /** Returns the current input settings for the specified overlay. */ + virtual EVROverlayError GetOverlayInputMethod( VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod *peInputMethod ) = 0; + + /** Sets the input settings for the specified overlay. */ + virtual EVROverlayError SetOverlayInputMethod( VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod eInputMethod ) = 0; + + /** Gets the mouse scaling factor that is used for mouse events. The actual texture may be a different size, but this is + * typically the size of the underlying UI in pixels. */ + virtual EVROverlayError GetOverlayMouseScale( VROverlayHandle_t ulOverlayHandle, HmdVector2_t *pvecMouseScale ) = 0; + + /** Sets the mouse scaling factor that is used for mouse events. The actual texture may be a different size, but this is + * typically the size of the underlying UI in pixels (not in world space). */ + virtual EVROverlayError SetOverlayMouseScale( VROverlayHandle_t ulOverlayHandle, const HmdVector2_t *pvecMouseScale ) = 0; + + /** Computes the overlay-space pixel coordinates of where the ray intersects the overlay with the + * specified settings. Returns false if there is no intersection. */ + virtual bool ComputeOverlayIntersection( VROverlayHandle_t ulOverlayHandle, const VROverlayIntersectionParams_t *pParams, VROverlayIntersectionResults_t *pResults ) = 0; + + /** Processes mouse input from the specified controller as though it were a mouse pointed at a compositor overlay with the + * specified settings. The controller is treated like a laser pointer on the -z axis. The point where the laser pointer would + * intersect with the overlay is the mouse position, the trigger is left mouse, and the track pad is right mouse. + * + * Return true if the controller is pointed at the overlay and an event was generated. */ + virtual bool HandleControllerOverlayInteractionAsMouse( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unControllerDeviceIndex ) = 0; + + /** Returns true if the specified overlay is the hover target. An overlay is the hover target when it is the last overlay "moused over" + * by the virtual mouse pointer */ + virtual bool IsHoverTargetOverlay( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Returns the current Gamepad focus overlay */ + virtual vr::VROverlayHandle_t GetGamepadFocusOverlay() = 0; + + /** Sets the current Gamepad focus overlay */ + virtual EVROverlayError SetGamepadFocusOverlay( VROverlayHandle_t ulNewFocusOverlay ) = 0; + + /** Sets an overlay's neighbor. This will also set the neighbor of the "to" overlay + * to point back to the "from" overlay. If an overlay's neighbor is set to invalid both + * ends will be cleared */ + virtual EVROverlayError SetOverlayNeighbor( EOverlayDirection eDirection, VROverlayHandle_t ulFrom, VROverlayHandle_t ulTo ) = 0; + + /** Changes the Gamepad focus from one overlay to one of its neighbors. Returns VROverlayError_NoNeighbor if there is no + * neighbor in that direction */ + virtual EVROverlayError MoveGamepadFocusToNeighbor( EOverlayDirection eDirection, VROverlayHandle_t ulFrom ) = 0; + + // --------------------------------------------- + // Overlay texture methods + // --------------------------------------------- + + /** Texture to draw for the overlay. This function can only be called by the overlay's creator or renderer process (see SetOverlayRenderingPid) . + * + * OpenGL dirty state: + * glBindTexture + */ + virtual EVROverlayError SetOverlayTexture( VROverlayHandle_t ulOverlayHandle, const Texture_t *pTexture ) = 0; + + /** Use this to tell the overlay system to release the texture set for this overlay. */ + virtual EVROverlayError ClearOverlayTexture( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Separate interface for providing the data as a stream of bytes, but there is an upper bound on data + * that can be sent. This function can only be called by the overlay's renderer process. */ + virtual EVROverlayError SetOverlayRaw( VROverlayHandle_t ulOverlayHandle, void *pvBuffer, uint32_t unWidth, uint32_t unHeight, uint32_t unDepth ) = 0; + + /** Separate interface for providing the image through a filename: can be png or jpg, and should not be bigger than 1920x1080. + * This function can only be called by the overlay's renderer process */ + virtual EVROverlayError SetOverlayFromFile( VROverlayHandle_t ulOverlayHandle, const char *pchFilePath ) = 0; + + /** Get the native texture handle/device for an overlay you have created. + * On windows this handle will be a ID3D11ShaderResourceView with a ID3D11Texture2D bound. + * + * The texture will always be sized to match the backing texture you supplied in SetOverlayTexture above. + * + * You MUST call ReleaseNativeOverlayHandle() with pNativeTextureHandle once you are done with this texture. + * + * pNativeTextureHandle is an OUTPUT, it will be a pointer to a ID3D11ShaderResourceView *. + * pNativeTextureRef is an INPUT and should be a ID3D11Resource *. The device used by pNativeTextureRef will be used to bind pNativeTextureHandle. + */ + virtual EVROverlayError GetOverlayTexture( VROverlayHandle_t ulOverlayHandle, void **pNativeTextureHandle, void *pNativeTextureRef, uint32_t *pWidth, uint32_t *pHeight, uint32_t *pNativeFormat, ETextureType *pAPIType, EColorSpace *pColorSpace, VRTextureBounds_t *pTextureBounds ) = 0; + + /** Release the pNativeTextureHandle provided from the GetOverlayTexture call, this allows the system to free the underlying GPU resources for this object, + * so only do it once you stop rendering this texture. + */ + virtual EVROverlayError ReleaseNativeOverlayHandle( VROverlayHandle_t ulOverlayHandle, void *pNativeTextureHandle ) = 0; + + /** Get the size of the overlay texture */ + virtual EVROverlayError GetOverlayTextureSize( VROverlayHandle_t ulOverlayHandle, uint32_t *pWidth, uint32_t *pHeight ) = 0; + + // ---------------------------------------------- + // Dashboard Overlay Methods + // ---------------------------------------------- + + /** Creates a dashboard overlay and returns its handle */ + virtual EVROverlayError CreateDashboardOverlay( const char *pchOverlayKey, const char *pchOverlayFriendlyName, VROverlayHandle_t * pMainHandle, VROverlayHandle_t *pThumbnailHandle ) = 0; + + /** Returns true if the dashboard is visible */ + virtual bool IsDashboardVisible() = 0; + + /** returns true if the dashboard is visible and the specified overlay is the active system Overlay */ + virtual bool IsActiveDashboardOverlay( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Sets the dashboard overlay to only appear when the specified process ID has scene focus */ + virtual EVROverlayError SetDashboardOverlaySceneProcess( VROverlayHandle_t ulOverlayHandle, uint32_t unProcessId ) = 0; + + /** Gets the process ID that this dashboard overlay requires to have scene focus */ + virtual EVROverlayError GetDashboardOverlaySceneProcess( VROverlayHandle_t ulOverlayHandle, uint32_t *punProcessId ) = 0; + + /** Shows the dashboard. */ + virtual void ShowDashboard( const char *pchOverlayToShow ) = 0; + + /** Returns the tracked device that has the laser pointer in the dashboard */ + virtual vr::TrackedDeviceIndex_t GetPrimaryDashboardDevice() = 0; + + // --------------------------------------------- + // Keyboard methods + // --------------------------------------------- + + /** Show the virtual keyboard to accept input **/ + virtual EVROverlayError ShowKeyboard( EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, const char *pchDescription, uint32_t unCharMax, const char *pchExistingText, bool bUseMinimalMode, uint64_t uUserValue ) = 0; + + virtual EVROverlayError ShowKeyboardForOverlay( VROverlayHandle_t ulOverlayHandle, EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, const char *pchDescription, uint32_t unCharMax, const char *pchExistingText, bool bUseMinimalMode, uint64_t uUserValue ) = 0; + + /** Get the text that was entered into the text input **/ + virtual uint32_t GetKeyboardText( VR_OUT_STRING() char *pchText, uint32_t cchText ) = 0; + + /** Hide the virtual keyboard **/ + virtual void HideKeyboard() = 0; + + /** Set the position of the keyboard in world space **/ + virtual void SetKeyboardTransformAbsolute( ETrackingUniverseOrigin eTrackingOrigin, const HmdMatrix34_t *pmatTrackingOriginToKeyboardTransform ) = 0; + + /** Set the position of the keyboard in overlay space by telling it to avoid a rectangle in the overlay. Rectangle coords have (0,0) in the bottom left **/ + virtual void SetKeyboardPositionForOverlay( VROverlayHandle_t ulOverlayHandle, HmdRect2_t avoidRect ) = 0; + + // --------------------------------------------- + // Overlay input methods + // --------------------------------------------- + + /** Sets a list of primitives to be used for controller ray intersection + * typically the size of the underlying UI in pixels (not in world space). */ + virtual EVROverlayError SetOverlayIntersectionMask( VROverlayHandle_t ulOverlayHandle, VROverlayIntersectionMaskPrimitive_t *pMaskPrimitives, uint32_t unNumMaskPrimitives, uint32_t unPrimitiveSize = sizeof( VROverlayIntersectionMaskPrimitive_t ) ) = 0; + + virtual EVROverlayError GetOverlayFlags( VROverlayHandle_t ulOverlayHandle, uint32_t *pFlags ) = 0; + + // --------------------------------------------- + // Message box methods + // --------------------------------------------- + + /** Show the message overlay. This will block and return you a result. **/ + virtual VRMessageOverlayResponse ShowMessageOverlay( const char* pchText, const char* pchCaption, const char* pchButton0Text, const char* pchButton1Text = nullptr, const char* pchButton2Text = nullptr, const char* pchButton3Text = nullptr ) = 0; + }; + + static const char * const IVROverlay_Version = "IVROverlay_016"; + +} // namespace vr + +// ivrrendermodels.h +namespace vr +{ + +static const char * const k_pch_Controller_Component_GDC2015 = "gdc2015"; // Canonical coordinate system of the gdc 2015 wired controller, provided for backwards compatibility +static const char * const k_pch_Controller_Component_Base = "base"; // For controllers with an unambiguous 'base'. +static const char * const k_pch_Controller_Component_Tip = "tip"; // For controllers with an unambiguous 'tip' (used for 'laser-pointing') +static const char * const k_pch_Controller_Component_HandGrip = "handgrip"; // Neutral, ambidextrous hand-pose when holding controller. On plane between neutrally posed index finger and thumb +static const char * const k_pch_Controller_Component_Status = "status"; // 1:1 aspect ratio status area, with canonical [0,1] uv mapping + +#pragma pack( push, 8 ) + +/** Errors that can occur with the VR compositor */ +enum EVRRenderModelError +{ + VRRenderModelError_None = 0, + VRRenderModelError_Loading = 100, + VRRenderModelError_NotSupported = 200, + VRRenderModelError_InvalidArg = 300, + VRRenderModelError_InvalidModel = 301, + VRRenderModelError_NoShapes = 302, + VRRenderModelError_MultipleShapes = 303, + VRRenderModelError_TooManyVertices = 304, + VRRenderModelError_MultipleTextures = 305, + VRRenderModelError_BufferTooSmall = 306, + VRRenderModelError_NotEnoughNormals = 307, + VRRenderModelError_NotEnoughTexCoords = 308, + + VRRenderModelError_InvalidTexture = 400, +}; + +typedef uint32_t VRComponentProperties; + +enum EVRComponentProperty +{ + VRComponentProperty_IsStatic = (1 << 0), + VRComponentProperty_IsVisible = (1 << 1), + VRComponentProperty_IsTouched = (1 << 2), + VRComponentProperty_IsPressed = (1 << 3), + VRComponentProperty_IsScrolled = (1 << 4), +}; + +/** Describes state information about a render-model component, including transforms and other dynamic properties */ +struct RenderModel_ComponentState_t +{ + HmdMatrix34_t mTrackingToComponentRenderModel; // Transform required when drawing the component render model + HmdMatrix34_t mTrackingToComponentLocal; // Transform available for attaching to a local component coordinate system (-Z out from surface ) + VRComponentProperties uProperties; +}; + +/** A single vertex in a render model */ +struct RenderModel_Vertex_t +{ + HmdVector3_t vPosition; // position in meters in device space + HmdVector3_t vNormal; + float rfTextureCoord[2]; +}; + +/** A texture map for use on a render model */ +#if defined(__linux__) || defined(__APPLE__) +// This structure was originally defined mis-packed on Linux, preserved for +// compatibility. +#pragma pack( push, 4 ) +#endif + +struct RenderModel_TextureMap_t +{ + uint16_t unWidth, unHeight; // width and height of the texture map in pixels + const uint8_t *rubTextureMapData; // Map texture data. All textures are RGBA with 8 bits per channel per pixel. Data size is width * height * 4ub +}; +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( pop ) +#endif + +/** Session unique texture identifier. Rendermodels which share the same texture will have the same id. +IDs <0 denote the texture is not present */ + +typedef int32_t TextureID_t; + +const TextureID_t INVALID_TEXTURE_ID = -1; + +#if defined(__linux__) || defined(__APPLE__) +// This structure was originally defined mis-packed on Linux, preserved for +// compatibility. +#pragma pack( push, 4 ) +#endif + +struct RenderModel_t +{ + const RenderModel_Vertex_t *rVertexData; // Vertex data for the mesh + uint32_t unVertexCount; // Number of vertices in the vertex data + const uint16_t *rIndexData; // Indices into the vertex data for each triangle + uint32_t unTriangleCount; // Number of triangles in the mesh. Index count is 3 * TriangleCount + TextureID_t diffuseTextureId; // Session unique texture identifier. Rendermodels which share the same texture will have the same id. <0 == texture not present +}; +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( pop ) +#endif + + +struct RenderModel_ControllerMode_State_t +{ + bool bScrollWheelVisible; // is this controller currently set to be in a scroll wheel mode +}; + +#pragma pack( pop ) + +class IVRRenderModels +{ +public: + + /** Loads and returns a render model for use in the application. pchRenderModelName should be a render model name + * from the Prop_RenderModelName_String property or an absolute path name to a render model on disk. + * + * The resulting render model is valid until VR_Shutdown() is called or until FreeRenderModel() is called. When the + * application is finished with the render model it should call FreeRenderModel() to free the memory associated + * with the model. + * + * The method returns VRRenderModelError_Loading while the render model is still being loaded. + * The method returns VRRenderModelError_None once loaded successfully, otherwise will return an error. */ + virtual EVRRenderModelError LoadRenderModel_Async( const char *pchRenderModelName, RenderModel_t **ppRenderModel ) = 0; + + /** Frees a previously returned render model + * It is safe to call this on a null ptr. */ + virtual void FreeRenderModel( RenderModel_t *pRenderModel ) = 0; + + /** Loads and returns a texture for use in the application. */ + virtual EVRRenderModelError LoadTexture_Async( TextureID_t textureId, RenderModel_TextureMap_t **ppTexture ) = 0; + + /** Frees a previously returned texture + * It is safe to call this on a null ptr. */ + virtual void FreeTexture( RenderModel_TextureMap_t *pTexture ) = 0; + + /** Creates a D3D11 texture and loads data into it. */ + virtual EVRRenderModelError LoadTextureD3D11_Async( TextureID_t textureId, void *pD3D11Device, void **ppD3D11Texture2D ) = 0; + + /** Helper function to copy the bits into an existing texture. */ + virtual EVRRenderModelError LoadIntoTextureD3D11_Async( TextureID_t textureId, void *pDstTexture ) = 0; + + /** Use this to free textures created with LoadTextureD3D11_Async instead of calling Release on them. */ + virtual void FreeTextureD3D11( void *pD3D11Texture2D ) = 0; + + /** Use this to get the names of available render models. Index does not correlate to a tracked device index, but + * is only used for iterating over all available render models. If the index is out of range, this function will return 0. + * Otherwise, it will return the size of the buffer required for the name. */ + virtual uint32_t GetRenderModelName( uint32_t unRenderModelIndex, VR_OUT_STRING() char *pchRenderModelName, uint32_t unRenderModelNameLen ) = 0; + + /** Returns the number of available render models. */ + virtual uint32_t GetRenderModelCount() = 0; + + + /** Returns the number of components of the specified render model. + * Components are useful when client application wish to draw, label, or otherwise interact with components of tracked objects. + * Examples controller components: + * renderable things such as triggers, buttons + * non-renderable things which include coordinate systems such as 'tip', 'base', a neutral controller agnostic hand-pose + * If all controller components are enumerated and rendered, it will be equivalent to drawing the traditional render model + * Returns 0 if components not supported, >0 otherwise */ + virtual uint32_t GetComponentCount( const char *pchRenderModelName ) = 0; + + /** Use this to get the names of available components. Index does not correlate to a tracked device index, but + * is only used for iterating over all available components. If the index is out of range, this function will return 0. + * Otherwise, it will return the size of the buffer required for the name. */ + virtual uint32_t GetComponentName( const char *pchRenderModelName, uint32_t unComponentIndex, VR_OUT_STRING( ) char *pchComponentName, uint32_t unComponentNameLen ) = 0; + + /** Get the button mask for all buttons associated with this component + * If no buttons (or axes) are associated with this component, return 0 + * Note: multiple components may be associated with the same button. Ex: two grip buttons on a single controller. + * Note: A single component may be associated with multiple buttons. Ex: A trackpad which also provides "D-pad" functionality */ + virtual uint64_t GetComponentButtonMask( const char *pchRenderModelName, const char *pchComponentName ) = 0; + + /** Use this to get the render model name for the specified rendermode/component combination, to be passed to LoadRenderModel. + * If the component name is out of range, this function will return 0. + * Otherwise, it will return the size of the buffer required for the name. */ + virtual uint32_t GetComponentRenderModelName( const char *pchRenderModelName, const char *pchComponentName, VR_OUT_STRING( ) char *pchComponentRenderModelName, uint32_t unComponentRenderModelNameLen ) = 0; + + /** Use this to query information about the component, as a function of the controller state. + * + * For dynamic controller components (ex: trigger) values will reflect component motions + * For static components this will return a consistent value independent of the VRControllerState_t + * + * If the pchRenderModelName or pchComponentName is invalid, this will return false (and transforms will be set to identity). + * Otherwise, return true + * Note: For dynamic objects, visibility may be dynamic. (I.e., true/false will be returned based on controller state and controller mode state ) */ + virtual bool GetComponentState( const char *pchRenderModelName, const char *pchComponentName, const vr::VRControllerState_t *pControllerState, const RenderModel_ControllerMode_State_t *pState, RenderModel_ComponentState_t *pComponentState ) = 0; + + /** Returns true if the render model has a component with the specified name */ + virtual bool RenderModelHasComponent( const char *pchRenderModelName, const char *pchComponentName ) = 0; + + /** Returns the URL of the thumbnail image for this rendermodel */ + virtual uint32_t GetRenderModelThumbnailURL( const char *pchRenderModelName, VR_OUT_STRING() char *pchThumbnailURL, uint32_t unThumbnailURLLen, vr::EVRRenderModelError *peError ) = 0; + + /** Provides a render model path that will load the unskinned model if the model name provided has been replace by the user. If the model + * hasn't been replaced the path value will still be a valid path to load the model. Pass this to LoadRenderModel_Async, etc. to load the + * model. */ + virtual uint32_t GetRenderModelOriginalPath( const char *pchRenderModelName, VR_OUT_STRING() char *pchOriginalPath, uint32_t unOriginalPathLen, vr::EVRRenderModelError *peError ) = 0; + + /** Returns a string for a render model error */ + virtual const char *GetRenderModelErrorNameFromEnum( vr::EVRRenderModelError error ) = 0; +}; + +static const char * const IVRRenderModels_Version = "IVRRenderModels_005"; + +} + + +// ivrextendeddisplay.h +namespace vr +{ + + /** NOTE: Use of this interface is not recommended in production applications. It will not work for displays which use + * direct-to-display mode. Creating our own window is also incompatible with the VR compositor and is not available when the compositor is running. */ + class IVRExtendedDisplay + { + public: + + /** Size and position that the window needs to be on the VR display. */ + virtual void GetWindowBounds( int32_t *pnX, int32_t *pnY, uint32_t *pnWidth, uint32_t *pnHeight ) = 0; + + /** Gets the viewport in the frame buffer to draw the output of the distortion into */ + virtual void GetEyeOutputViewport( EVREye eEye, uint32_t *pnX, uint32_t *pnY, uint32_t *pnWidth, uint32_t *pnHeight ) = 0; + + /** [D3D10/11 Only] + * Returns the adapter index and output index that the user should pass into EnumAdapters and EnumOutputs + * to create the device and swap chain in DX10 and DX11. If an error occurs both indices will be set to -1. + */ + virtual void GetDXGIOutputInfo( int32_t *pnAdapterIndex, int32_t *pnAdapterOutputIndex ) = 0; + + }; + + static const char * const IVRExtendedDisplay_Version = "IVRExtendedDisplay_001"; + +} + + +// ivrtrackedcamera.h +namespace vr +{ + +class IVRTrackedCamera +{ +public: + /** Returns a string for an error */ + virtual const char *GetCameraErrorNameFromEnum( vr::EVRTrackedCameraError eCameraError ) = 0; + + /** For convenience, same as tracked property request Prop_HasCamera_Bool */ + virtual vr::EVRTrackedCameraError HasCamera( vr::TrackedDeviceIndex_t nDeviceIndex, bool *pHasCamera ) = 0; + + /** Gets size of the image frame. */ + virtual vr::EVRTrackedCameraError GetCameraFrameSize( vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, uint32_t *pnWidth, uint32_t *pnHeight, uint32_t *pnFrameBufferSize ) = 0; + + virtual vr::EVRTrackedCameraError GetCameraIntrinsics( vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, vr::HmdVector2_t *pFocalLength, vr::HmdVector2_t *pCenter ) = 0; + + virtual vr::EVRTrackedCameraError GetCameraProjection( vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, float flZNear, float flZFar, vr::HmdMatrix44_t *pProjection ) = 0; + + /** Acquiring streaming service permits video streaming for the caller. Releasing hints the system that video services do not need to be maintained for this client. + * If the camera has not already been activated, a one time spin up may incur some auto exposure as well as initial streaming frame delays. + * The camera should be considered a global resource accessible for shared consumption but not exclusive to any caller. + * The camera may go inactive due to lack of active consumers or headset idleness. */ + virtual vr::EVRTrackedCameraError AcquireVideoStreamingService( vr::TrackedDeviceIndex_t nDeviceIndex, vr::TrackedCameraHandle_t *pHandle ) = 0; + virtual vr::EVRTrackedCameraError ReleaseVideoStreamingService( vr::TrackedCameraHandle_t hTrackedCamera ) = 0; + + /** Copies the image frame into a caller's provided buffer. The image data is currently provided as RGBA data, 4 bytes per pixel. + * A caller can provide null for the framebuffer or frameheader if not desired. Requesting the frame header first, followed by the frame buffer allows + * the caller to determine if the frame as advanced per the frame header sequence. + * If there is no frame available yet, due to initial camera spinup or re-activation, the error will be VRTrackedCameraError_NoFrameAvailable. + * Ideally a caller should be polling at ~16ms intervals */ + virtual vr::EVRTrackedCameraError GetVideoStreamFrameBuffer( vr::TrackedCameraHandle_t hTrackedCamera, vr::EVRTrackedCameraFrameType eFrameType, void *pFrameBuffer, uint32_t nFrameBufferSize, vr::CameraVideoStreamFrameHeader_t *pFrameHeader, uint32_t nFrameHeaderSize ) = 0; + + /** Gets size of the image frame. */ + virtual vr::EVRTrackedCameraError GetVideoStreamTextureSize( vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, vr::VRTextureBounds_t *pTextureBounds, uint32_t *pnWidth, uint32_t *pnHeight ) = 0; + + /** Access a shared D3D11 texture for the specified tracked camera stream. + * The camera frame type VRTrackedCameraFrameType_Undistorted is not supported directly as a shared texture. It is an interior subregion of the shared texture VRTrackedCameraFrameType_MaximumUndistorted. + * Instead, use GetVideoStreamTextureSize() with VRTrackedCameraFrameType_Undistorted to determine the proper interior subregion bounds along with GetVideoStreamTextureD3D11() with + * VRTrackedCameraFrameType_MaximumUndistorted to provide the texture. The VRTrackedCameraFrameType_MaximumUndistorted will yield an image where the invalid regions are decoded + * by the alpha channel having a zero component. The valid regions all have a non-zero alpha component. The subregion as described by VRTrackedCameraFrameType_Undistorted + * guarantees a rectangle where all pixels are valid. */ + virtual vr::EVRTrackedCameraError GetVideoStreamTextureD3D11( vr::TrackedCameraHandle_t hTrackedCamera, vr::EVRTrackedCameraFrameType eFrameType, void *pD3D11DeviceOrResource, void **ppD3D11ShaderResourceView, vr::CameraVideoStreamFrameHeader_t *pFrameHeader, uint32_t nFrameHeaderSize ) = 0; + + /** Access a shared GL texture for the specified tracked camera stream */ + virtual vr::EVRTrackedCameraError GetVideoStreamTextureGL( vr::TrackedCameraHandle_t hTrackedCamera, vr::EVRTrackedCameraFrameType eFrameType, vr::glUInt_t *pglTextureId, vr::CameraVideoStreamFrameHeader_t *pFrameHeader, uint32_t nFrameHeaderSize ) = 0; + virtual vr::EVRTrackedCameraError ReleaseVideoStreamTextureGL( vr::TrackedCameraHandle_t hTrackedCamera, vr::glUInt_t glTextureId ) = 0; +}; + +static const char * const IVRTrackedCamera_Version = "IVRTrackedCamera_003"; + +} // namespace vr + + +// ivrscreenshots.h +namespace vr +{ + +/** Errors that can occur with the VR compositor */ +enum EVRScreenshotError +{ + VRScreenshotError_None = 0, + VRScreenshotError_RequestFailed = 1, + VRScreenshotError_IncompatibleVersion = 100, + VRScreenshotError_NotFound = 101, + VRScreenshotError_BufferTooSmall = 102, + VRScreenshotError_ScreenshotAlreadyInProgress = 108, +}; + +/** Allows the application to generate screenshots */ +class IVRScreenshots +{ +public: + /** Request a screenshot of the requested type. + * A request of the VRScreenshotType_Stereo type will always + * work. Other types will depend on the underlying application + * support. + * The first file name is for the preview image and should be a + * regular screenshot (ideally from the left eye). The second + * is the VR screenshot in the correct format. They should be + * in the same aspect ratio. Formats per type: + * VRScreenshotType_Mono: the VR filename is ignored (can be + * nullptr), this is a normal flat single shot. + * VRScreenshotType_Stereo: The VR image should be a + * side-by-side with the left eye image on the left. + * VRScreenshotType_Cubemap: The VR image should be six square + * images composited horizontally. + * VRScreenshotType_StereoPanorama: above/below with left eye + * panorama being the above image. Image is typically square + * with the panorama being 2x horizontal. + * + * Note that the VR dashboard will call this function when + * the user presses the screenshot binding (currently System + * Button + Trigger). If Steam is running, the destination + * file names will be in %TEMP% and will be copied into + * Steam's screenshot library for the running application + * once SubmitScreenshot() is called. + * If Steam is not running, the paths will be in the user's + * documents folder under Documents\SteamVR\Screenshots. + * Other VR applications can call this to initiate a + * screenshot outside of user control. + * The destination file names do not need an extension, + * will be replaced with the correct one for the format + * which is currently .png. */ + virtual vr::EVRScreenshotError RequestScreenshot( vr::ScreenshotHandle_t *pOutScreenshotHandle, vr::EVRScreenshotType type, const char *pchPreviewFilename, const char *pchVRFilename ) = 0; + + /** Called by the running VR application to indicate that it + * wishes to be in charge of screenshots. If the + * application does not call this, the Compositor will only + * support VRScreenshotType_Stereo screenshots that will be + * captured without notification to the running app. + * Once hooked your application will receive a + * VREvent_RequestScreenshot event when the user presses the + * buttons to take a screenshot. */ + virtual vr::EVRScreenshotError HookScreenshot( VR_ARRAY_COUNT( numTypes ) const vr::EVRScreenshotType *pSupportedTypes, int numTypes ) = 0; + + /** When your application receives a + * VREvent_RequestScreenshot event, call these functions to get + * the details of the screenshot request. */ + virtual vr::EVRScreenshotType GetScreenshotPropertyType( vr::ScreenshotHandle_t screenshotHandle, vr::EVRScreenshotError *pError ) = 0; + + /** Get the filename for the preview or vr image (see + * vr::EScreenshotPropertyFilenames). The return value is + * the size of the string. */ + virtual uint32_t GetScreenshotPropertyFilename( vr::ScreenshotHandle_t screenshotHandle, vr::EVRScreenshotPropertyFilenames filenameType, VR_OUT_STRING() char *pchFilename, uint32_t cchFilename, vr::EVRScreenshotError *pError ) = 0; + + /** Call this if the application is taking the screen shot + * will take more than a few ms processing. This will result + * in an overlay being presented that shows a completion + * bar. */ + virtual vr::EVRScreenshotError UpdateScreenshotProgress( vr::ScreenshotHandle_t screenshotHandle, float flProgress ) = 0; + + /** Tells the compositor to take an internal screenshot of + * type VRScreenshotType_Stereo. It will take the current + * submitted scene textures of the running application and + * write them into the preview image and a side-by-side file + * for the VR image. + * This is similar to request screenshot, but doesn't ever + * talk to the application, just takes the shot and submits. */ + virtual vr::EVRScreenshotError TakeStereoScreenshot( vr::ScreenshotHandle_t *pOutScreenshotHandle, const char *pchPreviewFilename, const char *pchVRFilename ) = 0; + + /** Submit the completed screenshot. If Steam is running + * this will call into the Steam client and upload the + * screenshot to the screenshots section of the library for + * the running application. If Steam is not running, this + * function will display a notification to the user that the + * screenshot was taken. The paths should be full paths with + * extensions. + * File paths should be absolute including extensions. + * screenshotHandle can be k_unScreenshotHandleInvalid if this + * was a new shot taking by the app to be saved and not + * initiated by a user (achievement earned or something) */ + virtual vr::EVRScreenshotError SubmitScreenshot( vr::ScreenshotHandle_t screenshotHandle, vr::EVRScreenshotType type, const char *pchSourcePreviewFilename, const char *pchSourceVRFilename ) = 0; +}; + +static const char * const IVRScreenshots_Version = "IVRScreenshots_001"; + +} // namespace vr + + + +// ivrresources.h +namespace vr +{ + +class IVRResources +{ +public: + + // ------------------------------------ + // Shared Resource Methods + // ------------------------------------ + + /** Loads the specified resource into the provided buffer if large enough. + * Returns the size in bytes of the buffer required to hold the specified resource. */ + virtual uint32_t LoadSharedResource( const char *pchResourceName, char *pchBuffer, uint32_t unBufferLen ) = 0; + + /** Provides the full path to the specified resource. Resource names can include named directories for + * drivers and other things, and this resolves all of those and returns the actual physical path. + * pchResourceTypeDirectory is the subdirectory of resources to look in. */ + virtual uint32_t GetResourceFullPath( const char *pchResourceName, const char *pchResourceTypeDirectory, char *pchPathBuffer, uint32_t unBufferLen ) = 0; +}; + +static const char * const IVRResources_Version = "IVRResources_001"; + + +} +// ivrdrivermanager.h +namespace vr +{ + +class IVRDriverManager +{ +public: + virtual uint32_t GetDriverCount() const = 0; + + /** Returns the length of the number of bytes necessary to hold this string including the trailing null. */ + virtual uint32_t GetDriverName( vr::DriverId_t nDriver, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize ) = 0; +}; + +static const char * const IVRDriverManager_Version = "IVRDriverManager_001"; + +} // namespace vr + + +// End + +#endif // _OPENVR_API + + +namespace vr +{ + /** Finds the active installation of the VR API and initializes it. The provided path must be absolute + * or relative to the current working directory. These are the local install versions of the equivalent + * functions in steamvr.h and will work without a local Steam install. + * + * This path is to the "root" of the VR API install. That's the directory with + * the "drivers" directory and a platform (i.e. "win32") directory in it, not the directory with the DLL itself. + */ + inline IVRSystem *VR_Init( EVRInitError *peError, EVRApplicationType eApplicationType ); + + /** unloads vrclient.dll. Any interface pointers from the interface are + * invalid after this point */ + inline void VR_Shutdown(); + + /** Returns true if there is an HMD attached. This check is as lightweight as possible and + * can be called outside of VR_Init/VR_Shutdown. It should be used when an application wants + * to know if initializing VR is a possibility but isn't ready to take that step yet. + */ + VR_INTERFACE bool VR_CALLTYPE VR_IsHmdPresent(); + + /** Returns true if the OpenVR runtime is installed. */ + VR_INTERFACE bool VR_CALLTYPE VR_IsRuntimeInstalled(); + + /** Returns where the OpenVR runtime is installed. */ + VR_INTERFACE const char *VR_CALLTYPE VR_RuntimePath(); + + /** Returns the name of the enum value for an EVRInitError. This function may be called outside of VR_Init()/VR_Shutdown(). */ + VR_INTERFACE const char *VR_CALLTYPE VR_GetVRInitErrorAsSymbol( EVRInitError error ); + + /** Returns an English string for an EVRInitError. Applications should call VR_GetVRInitErrorAsSymbol instead and + * use that as a key to look up their own localized error message. This function may be called outside of VR_Init()/VR_Shutdown(). */ + VR_INTERFACE const char *VR_CALLTYPE VR_GetVRInitErrorAsEnglishDescription( EVRInitError error ); + + /** Returns the interface of the specified version. This method must be called after VR_Init. The + * pointer returned is valid until VR_Shutdown is called. + */ + VR_INTERFACE void *VR_CALLTYPE VR_GetGenericInterface( const char *pchInterfaceVersion, EVRInitError *peError ); + + /** Returns whether the interface of the specified version exists. + */ + VR_INTERFACE bool VR_CALLTYPE VR_IsInterfaceVersionValid( const char *pchInterfaceVersion ); + + /** Returns a token that represents whether the VR interface handles need to be reloaded */ + VR_INTERFACE uint32_t VR_CALLTYPE VR_GetInitToken(); + + // These typedefs allow old enum names from SDK 0.9.11 to be used in applications. + // They will go away in the future. + typedef EVRInitError HmdError; + typedef EVREye Hmd_Eye; + typedef EColorSpace ColorSpace; + typedef ETrackingResult HmdTrackingResult; + typedef ETrackedDeviceClass TrackedDeviceClass; + typedef ETrackingUniverseOrigin TrackingUniverseOrigin; + typedef ETrackedDeviceProperty TrackedDeviceProperty; + typedef ETrackedPropertyError TrackedPropertyError; + typedef EVRSubmitFlags VRSubmitFlags_t; + typedef EVRState VRState_t; + typedef ECollisionBoundsStyle CollisionBoundsStyle_t; + typedef EVROverlayError VROverlayError; + typedef EVRFirmwareError VRFirmwareError; + typedef EVRCompositorError VRCompositorError; + typedef EVRScreenshotError VRScreenshotsError; + + inline uint32_t &VRToken() + { + static uint32_t token; + return token; + } + + class COpenVRContext + { + public: + COpenVRContext() { Clear(); } + void Clear(); + + inline void CheckClear() + { + if ( VRToken() != VR_GetInitToken() ) + { + Clear(); + VRToken() = VR_GetInitToken(); + } + } + + IVRSystem *VRSystem() + { + CheckClear(); + if ( m_pVRSystem == nullptr ) + { + EVRInitError eError; + m_pVRSystem = ( IVRSystem * )VR_GetGenericInterface( IVRSystem_Version, &eError ); + } + return m_pVRSystem; + } + IVRChaperone *VRChaperone() + { + CheckClear(); + if ( m_pVRChaperone == nullptr ) + { + EVRInitError eError; + m_pVRChaperone = ( IVRChaperone * )VR_GetGenericInterface( IVRChaperone_Version, &eError ); + } + return m_pVRChaperone; + } + + IVRChaperoneSetup *VRChaperoneSetup() + { + CheckClear(); + if ( m_pVRChaperoneSetup == nullptr ) + { + EVRInitError eError; + m_pVRChaperoneSetup = ( IVRChaperoneSetup * )VR_GetGenericInterface( IVRChaperoneSetup_Version, &eError ); + } + return m_pVRChaperoneSetup; + } + + IVRCompositor *VRCompositor() + { + CheckClear(); + if ( m_pVRCompositor == nullptr ) + { + EVRInitError eError; + m_pVRCompositor = ( IVRCompositor * )VR_GetGenericInterface( IVRCompositor_Version, &eError ); + } + return m_pVRCompositor; + } + + IVROverlay *VROverlay() + { + CheckClear(); + if ( m_pVROverlay == nullptr ) + { + EVRInitError eError; + m_pVROverlay = ( IVROverlay * )VR_GetGenericInterface( IVROverlay_Version, &eError ); + } + return m_pVROverlay; + } + + IVRResources *VRResources() + { + CheckClear(); + if ( m_pVRResources == nullptr ) + { + EVRInitError eError; + m_pVRResources = (IVRResources *)VR_GetGenericInterface( IVRResources_Version, &eError ); + } + return m_pVRResources; + } + + IVRScreenshots *VRScreenshots() + { + CheckClear(); + if ( m_pVRScreenshots == nullptr ) + { + EVRInitError eError; + m_pVRScreenshots = ( IVRScreenshots * )VR_GetGenericInterface( IVRScreenshots_Version, &eError ); + } + return m_pVRScreenshots; + } + + IVRRenderModels *VRRenderModels() + { + CheckClear(); + if ( m_pVRRenderModels == nullptr ) + { + EVRInitError eError; + m_pVRRenderModels = ( IVRRenderModels * )VR_GetGenericInterface( IVRRenderModels_Version, &eError ); + } + return m_pVRRenderModels; + } + + IVRExtendedDisplay *VRExtendedDisplay() + { + CheckClear(); + if ( m_pVRExtendedDisplay == nullptr ) + { + EVRInitError eError; + m_pVRExtendedDisplay = ( IVRExtendedDisplay * )VR_GetGenericInterface( IVRExtendedDisplay_Version, &eError ); + } + return m_pVRExtendedDisplay; + } + + IVRSettings *VRSettings() + { + CheckClear(); + if ( m_pVRSettings == nullptr ) + { + EVRInitError eError; + m_pVRSettings = ( IVRSettings * )VR_GetGenericInterface( IVRSettings_Version, &eError ); + } + return m_pVRSettings; + } + + IVRApplications *VRApplications() + { + CheckClear(); + if ( m_pVRApplications == nullptr ) + { + EVRInitError eError; + m_pVRApplications = ( IVRApplications * )VR_GetGenericInterface( IVRApplications_Version, &eError ); + } + return m_pVRApplications; + } + + IVRTrackedCamera *VRTrackedCamera() + { + CheckClear(); + if ( m_pVRTrackedCamera == nullptr ) + { + EVRInitError eError; + m_pVRTrackedCamera = ( IVRTrackedCamera * )VR_GetGenericInterface( IVRTrackedCamera_Version, &eError ); + } + return m_pVRTrackedCamera; + } + + IVRDriverManager *VRDriverManager() + { + CheckClear(); + if ( !m_pVRDriverManager ) + { + EVRInitError eError; + m_pVRDriverManager = ( IVRDriverManager * )VR_GetGenericInterface( IVRDriverManager_Version, &eError ); + } + return m_pVRDriverManager; + } + + private: + IVRSystem *m_pVRSystem; + IVRChaperone *m_pVRChaperone; + IVRChaperoneSetup *m_pVRChaperoneSetup; + IVRCompositor *m_pVRCompositor; + IVROverlay *m_pVROverlay; + IVRResources *m_pVRResources; + IVRRenderModels *m_pVRRenderModels; + IVRExtendedDisplay *m_pVRExtendedDisplay; + IVRSettings *m_pVRSettings; + IVRApplications *m_pVRApplications; + IVRTrackedCamera *m_pVRTrackedCamera; + IVRScreenshots *m_pVRScreenshots; + IVRDriverManager *m_pVRDriverManager; + }; + + inline COpenVRContext &OpenVRInternal_ModuleContext() + { + static void *ctx[ sizeof( COpenVRContext ) / sizeof( void * ) ]; + return *( COpenVRContext * )ctx; // bypass zero-init constructor + } + + inline IVRSystem *VR_CALLTYPE VRSystem() { return OpenVRInternal_ModuleContext().VRSystem(); } + inline IVRChaperone *VR_CALLTYPE VRChaperone() { return OpenVRInternal_ModuleContext().VRChaperone(); } + inline IVRChaperoneSetup *VR_CALLTYPE VRChaperoneSetup() { return OpenVRInternal_ModuleContext().VRChaperoneSetup(); } + inline IVRCompositor *VR_CALLTYPE VRCompositor() { return OpenVRInternal_ModuleContext().VRCompositor(); } + inline IVROverlay *VR_CALLTYPE VROverlay() { return OpenVRInternal_ModuleContext().VROverlay(); } + inline IVRScreenshots *VR_CALLTYPE VRScreenshots() { return OpenVRInternal_ModuleContext().VRScreenshots(); } + inline IVRRenderModels *VR_CALLTYPE VRRenderModels() { return OpenVRInternal_ModuleContext().VRRenderModels(); } + inline IVRApplications *VR_CALLTYPE VRApplications() { return OpenVRInternal_ModuleContext().VRApplications(); } + inline IVRSettings *VR_CALLTYPE VRSettings() { return OpenVRInternal_ModuleContext().VRSettings(); } + inline IVRResources *VR_CALLTYPE VRResources() { return OpenVRInternal_ModuleContext().VRResources(); } + inline IVRExtendedDisplay *VR_CALLTYPE VRExtendedDisplay() { return OpenVRInternal_ModuleContext().VRExtendedDisplay(); } + inline IVRTrackedCamera *VR_CALLTYPE VRTrackedCamera() { return OpenVRInternal_ModuleContext().VRTrackedCamera(); } + inline IVRDriverManager *VR_CALLTYPE VRDriverManager() { return OpenVRInternal_ModuleContext().VRDriverManager(); } + + inline void COpenVRContext::Clear() + { + m_pVRSystem = nullptr; + m_pVRChaperone = nullptr; + m_pVRChaperoneSetup = nullptr; + m_pVRCompositor = nullptr; + m_pVROverlay = nullptr; + m_pVRRenderModels = nullptr; + m_pVRExtendedDisplay = nullptr; + m_pVRSettings = nullptr; + m_pVRApplications = nullptr; + m_pVRTrackedCamera = nullptr; + m_pVRResources = nullptr; + m_pVRScreenshots = nullptr; + m_pVRDriverManager = nullptr; + } + + VR_INTERFACE uint32_t VR_CALLTYPE VR_InitInternal( EVRInitError *peError, EVRApplicationType eApplicationType ); + VR_INTERFACE void VR_CALLTYPE VR_ShutdownInternal(); + + /** Finds the active installation of vrclient.dll and initializes it */ + inline IVRSystem *VR_Init( EVRInitError *peError, EVRApplicationType eApplicationType ) + { + IVRSystem *pVRSystem = nullptr; + + EVRInitError eError; + VRToken() = VR_InitInternal( &eError, eApplicationType ); + COpenVRContext &ctx = OpenVRInternal_ModuleContext(); + ctx.Clear(); + + if ( eError == VRInitError_None ) + { + if ( VR_IsInterfaceVersionValid( IVRSystem_Version ) ) + { + pVRSystem = VRSystem(); + } + else + { + VR_ShutdownInternal(); + eError = VRInitError_Init_InterfaceNotFound; + } + } + + if ( peError ) + *peError = eError; + return pVRSystem; + } + + /** unloads vrclient.dll. Any interface pointers from the interface are + * invalid after this point */ + inline void VR_Shutdown() + { + VR_ShutdownInternal(); + } +} diff --git a/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/A/Headers/openvr_api.cs b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/A/Headers/openvr_api.cs new file mode 100644 index 000000000..2596b3783 --- /dev/null +++ b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/A/Headers/openvr_api.cs @@ -0,0 +1,4997 @@ +//======= Copyright (c) Valve Corporation, All rights reserved. =============== +// +// Purpose: This file contains C#/managed code bindings for the OpenVR interfaces +// This file is auto-generated, do not edit it. +// +//============================================================================= + +using System; +using System.Runtime.InteropServices; +using Valve.VR; + +namespace Valve.VR +{ + +[StructLayout(LayoutKind.Sequential)] +public struct IVRSystem +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetRecommendedRenderTargetSize(ref uint pnWidth, ref uint pnHeight); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetRecommendedRenderTargetSize GetRecommendedRenderTargetSize; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate HmdMatrix44_t _GetProjectionMatrix(EVREye eEye, float fNearZ, float fFarZ); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetProjectionMatrix GetProjectionMatrix; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetProjectionRaw(EVREye eEye, ref float pfLeft, ref float pfRight, ref float pfTop, ref float pfBottom); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetProjectionRaw GetProjectionRaw; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _ComputeDistortion(EVREye eEye, float fU, float fV, ref DistortionCoordinates_t pDistortionCoordinates); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ComputeDistortion ComputeDistortion; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate HmdMatrix34_t _GetEyeToHeadTransform(EVREye eEye); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetEyeToHeadTransform GetEyeToHeadTransform; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetTimeSinceLastVsync(ref float pfSecondsSinceLastVsync, ref ulong pulFrameCounter); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetTimeSinceLastVsync GetTimeSinceLastVsync; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate int _GetD3D9AdapterIndex(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetD3D9AdapterIndex GetD3D9AdapterIndex; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetDXGIOutputInfo(ref int pnAdapterIndex); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetDXGIOutputInfo GetDXGIOutputInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetOutputDevice(ref ulong pnDevice, ETextureType textureType); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOutputDevice GetOutputDevice; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsDisplayOnDesktop(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsDisplayOnDesktop IsDisplayOnDesktop; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _SetDisplayVisibility(bool bIsVisibleOnDesktop); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetDisplayVisibility SetDisplayVisibility; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetDeviceToAbsoluteTrackingPose(ETrackingUniverseOrigin eOrigin, float fPredictedSecondsToPhotonsFromNow, [In, Out] TrackedDevicePose_t[] pTrackedDevicePoseArray, uint unTrackedDevicePoseArrayCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetDeviceToAbsoluteTrackingPose GetDeviceToAbsoluteTrackingPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ResetSeatedZeroPose(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ResetSeatedZeroPose ResetSeatedZeroPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate HmdMatrix34_t _GetSeatedZeroPoseToStandingAbsoluteTrackingPose(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetSeatedZeroPoseToStandingAbsoluteTrackingPose GetSeatedZeroPoseToStandingAbsoluteTrackingPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate HmdMatrix34_t _GetRawZeroPoseToStandingAbsoluteTrackingPose(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetRawZeroPoseToStandingAbsoluteTrackingPose GetRawZeroPoseToStandingAbsoluteTrackingPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetSortedTrackedDeviceIndicesOfClass(ETrackedDeviceClass eTrackedDeviceClass, [In, Out] uint[] punTrackedDeviceIndexArray, uint unTrackedDeviceIndexArrayCount, uint unRelativeToTrackedDeviceIndex); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetSortedTrackedDeviceIndicesOfClass GetSortedTrackedDeviceIndicesOfClass; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EDeviceActivityLevel _GetTrackedDeviceActivityLevel(uint unDeviceId); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetTrackedDeviceActivityLevel GetTrackedDeviceActivityLevel; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ApplyTransform(ref TrackedDevicePose_t pOutputPose, ref TrackedDevicePose_t pTrackedDevicePose, ref HmdMatrix34_t pTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ApplyTransform ApplyTransform; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetTrackedDeviceIndexForControllerRole(ETrackedControllerRole unDeviceType); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetTrackedDeviceIndexForControllerRole GetTrackedDeviceIndexForControllerRole; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ETrackedControllerRole _GetControllerRoleForTrackedDeviceIndex(uint unDeviceIndex); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetControllerRoleForTrackedDeviceIndex GetControllerRoleForTrackedDeviceIndex; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ETrackedDeviceClass _GetTrackedDeviceClass(uint unDeviceIndex); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetTrackedDeviceClass GetTrackedDeviceClass; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsTrackedDeviceConnected(uint unDeviceIndex); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsTrackedDeviceConnected IsTrackedDeviceConnected; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetBoolTrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, ref ETrackedPropertyError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetBoolTrackedDeviceProperty GetBoolTrackedDeviceProperty; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate float _GetFloatTrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, ref ETrackedPropertyError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetFloatTrackedDeviceProperty GetFloatTrackedDeviceProperty; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate int _GetInt32TrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, ref ETrackedPropertyError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetInt32TrackedDeviceProperty GetInt32TrackedDeviceProperty; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ulong _GetUint64TrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, ref ETrackedPropertyError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetUint64TrackedDeviceProperty GetUint64TrackedDeviceProperty; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate HmdMatrix34_t _GetMatrix34TrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, ref ETrackedPropertyError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetMatrix34TrackedDeviceProperty GetMatrix34TrackedDeviceProperty; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetStringTrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, System.Text.StringBuilder pchValue, uint unBufferSize, ref ETrackedPropertyError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetStringTrackedDeviceProperty GetStringTrackedDeviceProperty; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetPropErrorNameFromEnum(ETrackedPropertyError error); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetPropErrorNameFromEnum GetPropErrorNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _PollNextEvent(ref VREvent_t pEvent, uint uncbVREvent); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _PollNextEvent PollNextEvent; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _PollNextEventWithPose(ETrackingUniverseOrigin eOrigin, ref VREvent_t pEvent, uint uncbVREvent, ref TrackedDevicePose_t pTrackedDevicePose); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _PollNextEventWithPose PollNextEventWithPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetEventTypeNameFromEnum(EVREventType eType); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetEventTypeNameFromEnum GetEventTypeNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate HiddenAreaMesh_t _GetHiddenAreaMesh(EVREye eEye, EHiddenAreaMeshType type); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetHiddenAreaMesh GetHiddenAreaMesh; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetControllerState(uint unControllerDeviceIndex, ref VRControllerState_t pControllerState, uint unControllerStateSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetControllerState GetControllerState; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetControllerStateWithPose(ETrackingUniverseOrigin eOrigin, uint unControllerDeviceIndex, ref VRControllerState_t pControllerState, uint unControllerStateSize, ref TrackedDevicePose_t pTrackedDevicePose); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetControllerStateWithPose GetControllerStateWithPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _TriggerHapticPulse(uint unControllerDeviceIndex, uint unAxisId, char usDurationMicroSec); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _TriggerHapticPulse TriggerHapticPulse; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetButtonIdNameFromEnum(EVRButtonId eButtonId); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetButtonIdNameFromEnum GetButtonIdNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetControllerAxisTypeNameFromEnum(EVRControllerAxisType eAxisType); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetControllerAxisTypeNameFromEnum GetControllerAxisTypeNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _CaptureInputFocus(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CaptureInputFocus CaptureInputFocus; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ReleaseInputFocus(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ReleaseInputFocus ReleaseInputFocus; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsInputFocusCapturedByAnotherProcess(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsInputFocusCapturedByAnotherProcess IsInputFocusCapturedByAnotherProcess; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _DriverDebugRequest(uint unDeviceIndex, string pchRequest, string pchResponseBuffer, uint unResponseBufferSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _DriverDebugRequest DriverDebugRequest; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRFirmwareError _PerformFirmwareUpdate(uint unDeviceIndex); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _PerformFirmwareUpdate PerformFirmwareUpdate; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _AcknowledgeQuit_Exiting(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _AcknowledgeQuit_Exiting AcknowledgeQuit_Exiting; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _AcknowledgeQuit_UserPrompt(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _AcknowledgeQuit_UserPrompt AcknowledgeQuit_UserPrompt; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRExtendedDisplay +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetWindowBounds(ref int pnX, ref int pnY, ref uint pnWidth, ref uint pnHeight); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetWindowBounds GetWindowBounds; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetEyeOutputViewport(EVREye eEye, ref uint pnX, ref uint pnY, ref uint pnWidth, ref uint pnHeight); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetEyeOutputViewport GetEyeOutputViewport; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetDXGIOutputInfo(ref int pnAdapterIndex, ref int pnAdapterOutputIndex); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetDXGIOutputInfo GetDXGIOutputInfo; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRTrackedCamera +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetCameraErrorNameFromEnum(EVRTrackedCameraError eCameraError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCameraErrorNameFromEnum GetCameraErrorNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _HasCamera(uint nDeviceIndex, ref bool pHasCamera); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _HasCamera HasCamera; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _GetCameraFrameSize(uint nDeviceIndex, EVRTrackedCameraFrameType eFrameType, ref uint pnWidth, ref uint pnHeight, ref uint pnFrameBufferSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCameraFrameSize GetCameraFrameSize; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _GetCameraIntrinsics(uint nDeviceIndex, EVRTrackedCameraFrameType eFrameType, ref HmdVector2_t pFocalLength, ref HmdVector2_t pCenter); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCameraIntrinsics GetCameraIntrinsics; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _GetCameraProjection(uint nDeviceIndex, EVRTrackedCameraFrameType eFrameType, float flZNear, float flZFar, ref HmdMatrix44_t pProjection); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCameraProjection GetCameraProjection; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _AcquireVideoStreamingService(uint nDeviceIndex, ref ulong pHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _AcquireVideoStreamingService AcquireVideoStreamingService; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _ReleaseVideoStreamingService(ulong hTrackedCamera); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ReleaseVideoStreamingService ReleaseVideoStreamingService; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _GetVideoStreamFrameBuffer(ulong hTrackedCamera, EVRTrackedCameraFrameType eFrameType, IntPtr pFrameBuffer, uint nFrameBufferSize, ref CameraVideoStreamFrameHeader_t pFrameHeader, uint nFrameHeaderSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetVideoStreamFrameBuffer GetVideoStreamFrameBuffer; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _GetVideoStreamTextureSize(uint nDeviceIndex, EVRTrackedCameraFrameType eFrameType, ref VRTextureBounds_t pTextureBounds, ref uint pnWidth, ref uint pnHeight); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetVideoStreamTextureSize GetVideoStreamTextureSize; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _GetVideoStreamTextureD3D11(ulong hTrackedCamera, EVRTrackedCameraFrameType eFrameType, IntPtr pD3D11DeviceOrResource, ref IntPtr ppD3D11ShaderResourceView, ref CameraVideoStreamFrameHeader_t pFrameHeader, uint nFrameHeaderSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetVideoStreamTextureD3D11 GetVideoStreamTextureD3D11; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _GetVideoStreamTextureGL(ulong hTrackedCamera, EVRTrackedCameraFrameType eFrameType, ref uint pglTextureId, ref CameraVideoStreamFrameHeader_t pFrameHeader, uint nFrameHeaderSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetVideoStreamTextureGL GetVideoStreamTextureGL; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _ReleaseVideoStreamTextureGL(ulong hTrackedCamera, uint glTextureId); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ReleaseVideoStreamTextureGL ReleaseVideoStreamTextureGL; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRApplications +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _AddApplicationManifest(string pchApplicationManifestFullPath, bool bTemporary); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _AddApplicationManifest AddApplicationManifest; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _RemoveApplicationManifest(string pchApplicationManifestFullPath); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _RemoveApplicationManifest RemoveApplicationManifest; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsApplicationInstalled(string pchAppKey); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsApplicationInstalled IsApplicationInstalled; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetApplicationCount(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationCount GetApplicationCount; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _GetApplicationKeyByIndex(uint unApplicationIndex, System.Text.StringBuilder pchAppKeyBuffer, uint unAppKeyBufferLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationKeyByIndex GetApplicationKeyByIndex; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _GetApplicationKeyByProcessId(uint unProcessId, string pchAppKeyBuffer, uint unAppKeyBufferLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationKeyByProcessId GetApplicationKeyByProcessId; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _LaunchApplication(string pchAppKey); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LaunchApplication LaunchApplication; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _LaunchTemplateApplication(string pchTemplateAppKey, string pchNewAppKey, [In, Out] AppOverrideKeys_t[] pKeys, uint unKeys); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LaunchTemplateApplication LaunchTemplateApplication; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _LaunchApplicationFromMimeType(string pchMimeType, string pchArgs); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LaunchApplicationFromMimeType LaunchApplicationFromMimeType; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _LaunchDashboardOverlay(string pchAppKey); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LaunchDashboardOverlay LaunchDashboardOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _CancelApplicationLaunch(string pchAppKey); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CancelApplicationLaunch CancelApplicationLaunch; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _IdentifyApplication(uint unProcessId, string pchAppKey); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IdentifyApplication IdentifyApplication; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetApplicationProcessId(string pchAppKey); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationProcessId GetApplicationProcessId; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetApplicationsErrorNameFromEnum(EVRApplicationError error); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationsErrorNameFromEnum GetApplicationsErrorNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetApplicationPropertyString(string pchAppKey, EVRApplicationProperty eProperty, System.Text.StringBuilder pchPropertyValueBuffer, uint unPropertyValueBufferLen, ref EVRApplicationError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationPropertyString GetApplicationPropertyString; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetApplicationPropertyBool(string pchAppKey, EVRApplicationProperty eProperty, ref EVRApplicationError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationPropertyBool GetApplicationPropertyBool; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ulong _GetApplicationPropertyUint64(string pchAppKey, EVRApplicationProperty eProperty, ref EVRApplicationError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationPropertyUint64 GetApplicationPropertyUint64; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _SetApplicationAutoLaunch(string pchAppKey, bool bAutoLaunch); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetApplicationAutoLaunch SetApplicationAutoLaunch; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetApplicationAutoLaunch(string pchAppKey); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationAutoLaunch GetApplicationAutoLaunch; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _SetDefaultApplicationForMimeType(string pchAppKey, string pchMimeType); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetDefaultApplicationForMimeType SetDefaultApplicationForMimeType; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetDefaultApplicationForMimeType(string pchMimeType, string pchAppKeyBuffer, uint unAppKeyBufferLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetDefaultApplicationForMimeType GetDefaultApplicationForMimeType; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetApplicationSupportedMimeTypes(string pchAppKey, string pchMimeTypesBuffer, uint unMimeTypesBuffer); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationSupportedMimeTypes GetApplicationSupportedMimeTypes; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetApplicationsThatSupportMimeType(string pchMimeType, string pchAppKeysThatSupportBuffer, uint unAppKeysThatSupportBuffer); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationsThatSupportMimeType GetApplicationsThatSupportMimeType; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetApplicationLaunchArguments(uint unHandle, string pchArgs, uint unArgs); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationLaunchArguments GetApplicationLaunchArguments; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _GetStartingApplication(string pchAppKeyBuffer, uint unAppKeyBufferLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetStartingApplication GetStartingApplication; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationTransitionState _GetTransitionState(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetTransitionState GetTransitionState; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _PerformApplicationPrelaunchCheck(string pchAppKey); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _PerformApplicationPrelaunchCheck PerformApplicationPrelaunchCheck; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetApplicationsTransitionStateNameFromEnum(EVRApplicationTransitionState state); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationsTransitionStateNameFromEnum GetApplicationsTransitionStateNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsQuitUserPromptRequested(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsQuitUserPromptRequested IsQuitUserPromptRequested; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _LaunchInternalProcess(string pchBinaryPath, string pchArguments, string pchWorkingDirectory); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LaunchInternalProcess LaunchInternalProcess; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetCurrentSceneProcessId(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCurrentSceneProcessId GetCurrentSceneProcessId; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRChaperone +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ChaperoneCalibrationState _GetCalibrationState(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCalibrationState GetCalibrationState; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetPlayAreaSize(ref float pSizeX, ref float pSizeZ); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetPlayAreaSize GetPlayAreaSize; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetPlayAreaRect(ref HmdQuad_t rect); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetPlayAreaRect GetPlayAreaRect; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ReloadInfo(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ReloadInfo ReloadInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetSceneColor(HmdColor_t color); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetSceneColor SetSceneColor; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetBoundsColor(ref HmdColor_t pOutputColorArray, int nNumOutputColors, float flCollisionBoundsFadeDistance, ref HmdColor_t pOutputCameraColor); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetBoundsColor GetBoundsColor; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _AreBoundsVisible(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _AreBoundsVisible AreBoundsVisible; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ForceBoundsVisible(bool bForce); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ForceBoundsVisible ForceBoundsVisible; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRChaperoneSetup +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _CommitWorkingCopy(EChaperoneConfigFile configFile); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CommitWorkingCopy CommitWorkingCopy; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _RevertWorkingCopy(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _RevertWorkingCopy RevertWorkingCopy; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetWorkingPlayAreaSize(ref float pSizeX, ref float pSizeZ); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetWorkingPlayAreaSize GetWorkingPlayAreaSize; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetWorkingPlayAreaRect(ref HmdQuad_t rect); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetWorkingPlayAreaRect GetWorkingPlayAreaRect; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetWorkingCollisionBoundsInfo([In, Out] HmdQuad_t[] pQuadsBuffer, ref uint punQuadsCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetWorkingCollisionBoundsInfo GetWorkingCollisionBoundsInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetLiveCollisionBoundsInfo([In, Out] HmdQuad_t[] pQuadsBuffer, ref uint punQuadsCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetLiveCollisionBoundsInfo GetLiveCollisionBoundsInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetWorkingSeatedZeroPoseToRawTrackingPose(ref HmdMatrix34_t pmatSeatedZeroPoseToRawTrackingPose); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetWorkingSeatedZeroPoseToRawTrackingPose GetWorkingSeatedZeroPoseToRawTrackingPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetWorkingStandingZeroPoseToRawTrackingPose(ref HmdMatrix34_t pmatStandingZeroPoseToRawTrackingPose); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetWorkingStandingZeroPoseToRawTrackingPose GetWorkingStandingZeroPoseToRawTrackingPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetWorkingPlayAreaSize(float sizeX, float sizeZ); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetWorkingPlayAreaSize SetWorkingPlayAreaSize; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetWorkingCollisionBoundsInfo([In, Out] HmdQuad_t[] pQuadsBuffer, uint unQuadsCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetWorkingCollisionBoundsInfo SetWorkingCollisionBoundsInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetWorkingSeatedZeroPoseToRawTrackingPose(ref HmdMatrix34_t pMatSeatedZeroPoseToRawTrackingPose); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetWorkingSeatedZeroPoseToRawTrackingPose SetWorkingSeatedZeroPoseToRawTrackingPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetWorkingStandingZeroPoseToRawTrackingPose(ref HmdMatrix34_t pMatStandingZeroPoseToRawTrackingPose); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetWorkingStandingZeroPoseToRawTrackingPose SetWorkingStandingZeroPoseToRawTrackingPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ReloadFromDisk(EChaperoneConfigFile configFile); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ReloadFromDisk ReloadFromDisk; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetLiveSeatedZeroPoseToRawTrackingPose(ref HmdMatrix34_t pmatSeatedZeroPoseToRawTrackingPose); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetLiveSeatedZeroPoseToRawTrackingPose GetLiveSeatedZeroPoseToRawTrackingPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetWorkingCollisionBoundsTagsInfo([In, Out] byte[] pTagsBuffer, uint unTagCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetWorkingCollisionBoundsTagsInfo SetWorkingCollisionBoundsTagsInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetLiveCollisionBoundsTagsInfo([In, Out] byte[] pTagsBuffer, ref uint punTagCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetLiveCollisionBoundsTagsInfo GetLiveCollisionBoundsTagsInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _SetWorkingPhysicalBoundsInfo([In, Out] HmdQuad_t[] pQuadsBuffer, uint unQuadsCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetWorkingPhysicalBoundsInfo SetWorkingPhysicalBoundsInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetLivePhysicalBoundsInfo([In, Out] HmdQuad_t[] pQuadsBuffer, ref uint punQuadsCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetLivePhysicalBoundsInfo GetLivePhysicalBoundsInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _ExportLiveToBuffer(System.Text.StringBuilder pBuffer, ref uint pnBufferLength); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ExportLiveToBuffer ExportLiveToBuffer; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _ImportFromBufferToWorking(string pBuffer, uint nImportFlags); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ImportFromBufferToWorking ImportFromBufferToWorking; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRCompositor +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetTrackingSpace(ETrackingUniverseOrigin eOrigin); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetTrackingSpace SetTrackingSpace; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ETrackingUniverseOrigin _GetTrackingSpace(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetTrackingSpace GetTrackingSpace; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRCompositorError _WaitGetPoses([In, Out] TrackedDevicePose_t[] pRenderPoseArray, uint unRenderPoseArrayCount, [In, Out] TrackedDevicePose_t[] pGamePoseArray, uint unGamePoseArrayCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _WaitGetPoses WaitGetPoses; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRCompositorError _GetLastPoses([In, Out] TrackedDevicePose_t[] pRenderPoseArray, uint unRenderPoseArrayCount, [In, Out] TrackedDevicePose_t[] pGamePoseArray, uint unGamePoseArrayCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetLastPoses GetLastPoses; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRCompositorError _GetLastPoseForTrackedDeviceIndex(uint unDeviceIndex, ref TrackedDevicePose_t pOutputPose, ref TrackedDevicePose_t pOutputGamePose); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetLastPoseForTrackedDeviceIndex GetLastPoseForTrackedDeviceIndex; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRCompositorError _Submit(EVREye eEye, ref Texture_t pTexture, ref VRTextureBounds_t pBounds, EVRSubmitFlags nSubmitFlags); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _Submit Submit; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ClearLastSubmittedFrame(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ClearLastSubmittedFrame ClearLastSubmittedFrame; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _PostPresentHandoff(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _PostPresentHandoff PostPresentHandoff; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetFrameTiming(ref Compositor_FrameTiming pTiming, uint unFramesAgo); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetFrameTiming GetFrameTiming; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetFrameTimings(ref Compositor_FrameTiming pTiming, uint nFrames); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetFrameTimings GetFrameTimings; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate float _GetFrameTimeRemaining(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetFrameTimeRemaining GetFrameTimeRemaining; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetCumulativeStats(ref Compositor_CumulativeStats pStats, uint nStatsSizeInBytes); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCumulativeStats GetCumulativeStats; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _FadeToColor(float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _FadeToColor FadeToColor; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate HmdColor_t _GetCurrentFadeColor(bool bBackground); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCurrentFadeColor GetCurrentFadeColor; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _FadeGrid(float fSeconds, bool bFadeIn); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _FadeGrid FadeGrid; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate float _GetCurrentGridAlpha(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCurrentGridAlpha GetCurrentGridAlpha; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRCompositorError _SetSkyboxOverride([In, Out] Texture_t[] pTextures, uint unTextureCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetSkyboxOverride SetSkyboxOverride; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ClearSkyboxOverride(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ClearSkyboxOverride ClearSkyboxOverride; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _CompositorBringToFront(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CompositorBringToFront CompositorBringToFront; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _CompositorGoToBack(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CompositorGoToBack CompositorGoToBack; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _CompositorQuit(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CompositorQuit CompositorQuit; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsFullscreen(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsFullscreen IsFullscreen; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetCurrentSceneFocusProcess(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCurrentSceneFocusProcess GetCurrentSceneFocusProcess; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetLastFrameRenderer(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetLastFrameRenderer GetLastFrameRenderer; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _CanRenderScene(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CanRenderScene CanRenderScene; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ShowMirrorWindow(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ShowMirrorWindow ShowMirrorWindow; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _HideMirrorWindow(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _HideMirrorWindow HideMirrorWindow; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsMirrorWindowVisible(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsMirrorWindowVisible IsMirrorWindowVisible; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _CompositorDumpImages(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CompositorDumpImages CompositorDumpImages; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _ShouldAppRenderWithLowResources(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ShouldAppRenderWithLowResources ShouldAppRenderWithLowResources; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ForceInterleavedReprojectionOn(bool bOverride); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ForceInterleavedReprojectionOn ForceInterleavedReprojectionOn; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ForceReconnectProcess(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ForceReconnectProcess ForceReconnectProcess; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SuspendRendering(bool bSuspend); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SuspendRendering SuspendRendering; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRCompositorError _GetMirrorTextureD3D11(EVREye eEye, IntPtr pD3D11DeviceOrResource, ref IntPtr ppD3D11ShaderResourceView); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetMirrorTextureD3D11 GetMirrorTextureD3D11; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ReleaseMirrorTextureD3D11(IntPtr pD3D11ShaderResourceView); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ReleaseMirrorTextureD3D11 ReleaseMirrorTextureD3D11; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRCompositorError _GetMirrorTextureGL(EVREye eEye, ref uint pglTextureId, IntPtr pglSharedTextureHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetMirrorTextureGL GetMirrorTextureGL; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _ReleaseSharedGLTexture(uint glTextureId, IntPtr glSharedTextureHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ReleaseSharedGLTexture ReleaseSharedGLTexture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _LockGLSharedTextureForAccess(IntPtr glSharedTextureHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LockGLSharedTextureForAccess LockGLSharedTextureForAccess; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _UnlockGLSharedTextureForAccess(IntPtr glSharedTextureHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _UnlockGLSharedTextureForAccess UnlockGLSharedTextureForAccess; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetVulkanInstanceExtensionsRequired(System.Text.StringBuilder pchValue, uint unBufferSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetVulkanInstanceExtensionsRequired GetVulkanInstanceExtensionsRequired; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetVulkanDeviceExtensionsRequired(IntPtr pPhysicalDevice, System.Text.StringBuilder pchValue, uint unBufferSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetVulkanDeviceExtensionsRequired GetVulkanDeviceExtensionsRequired; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVROverlay +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _FindOverlay(string pchOverlayKey, ref ulong pOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _FindOverlay FindOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _CreateOverlay(string pchOverlayKey, string pchOverlayName, ref ulong pOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CreateOverlay CreateOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _DestroyOverlay(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _DestroyOverlay DestroyOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetHighQualityOverlay(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetHighQualityOverlay SetHighQualityOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ulong _GetHighQualityOverlay(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetHighQualityOverlay GetHighQualityOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetOverlayKey(ulong ulOverlayHandle, System.Text.StringBuilder pchValue, uint unBufferSize, ref EVROverlayError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayKey GetOverlayKey; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetOverlayName(ulong ulOverlayHandle, System.Text.StringBuilder pchValue, uint unBufferSize, ref EVROverlayError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayName GetOverlayName; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayName(ulong ulOverlayHandle, string pchName); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayName SetOverlayName; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayImageData(ulong ulOverlayHandle, IntPtr pvBuffer, uint unBufferSize, ref uint punWidth, ref uint punHeight); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayImageData GetOverlayImageData; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetOverlayErrorNameFromEnum(EVROverlayError error); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayErrorNameFromEnum GetOverlayErrorNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayRenderingPid(ulong ulOverlayHandle, uint unPID); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayRenderingPid SetOverlayRenderingPid; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetOverlayRenderingPid(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayRenderingPid GetOverlayRenderingPid; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayFlag(ulong ulOverlayHandle, VROverlayFlags eOverlayFlag, bool bEnabled); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayFlag SetOverlayFlag; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayFlag(ulong ulOverlayHandle, VROverlayFlags eOverlayFlag, ref bool pbEnabled); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayFlag GetOverlayFlag; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayColor(ulong ulOverlayHandle, float fRed, float fGreen, float fBlue); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayColor SetOverlayColor; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayColor(ulong ulOverlayHandle, ref float pfRed, ref float pfGreen, ref float pfBlue); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayColor GetOverlayColor; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayAlpha(ulong ulOverlayHandle, float fAlpha); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayAlpha SetOverlayAlpha; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayAlpha(ulong ulOverlayHandle, ref float pfAlpha); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayAlpha GetOverlayAlpha; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayTexelAspect(ulong ulOverlayHandle, float fTexelAspect); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayTexelAspect SetOverlayTexelAspect; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTexelAspect(ulong ulOverlayHandle, ref float pfTexelAspect); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTexelAspect GetOverlayTexelAspect; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlaySortOrder(ulong ulOverlayHandle, uint unSortOrder); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlaySortOrder SetOverlaySortOrder; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlaySortOrder(ulong ulOverlayHandle, ref uint punSortOrder); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlaySortOrder GetOverlaySortOrder; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayWidthInMeters(ulong ulOverlayHandle, float fWidthInMeters); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayWidthInMeters SetOverlayWidthInMeters; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayWidthInMeters(ulong ulOverlayHandle, ref float pfWidthInMeters); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayWidthInMeters GetOverlayWidthInMeters; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayAutoCurveDistanceRangeInMeters(ulong ulOverlayHandle, float fMinDistanceInMeters, float fMaxDistanceInMeters); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayAutoCurveDistanceRangeInMeters SetOverlayAutoCurveDistanceRangeInMeters; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayAutoCurveDistanceRangeInMeters(ulong ulOverlayHandle, ref float pfMinDistanceInMeters, ref float pfMaxDistanceInMeters); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayAutoCurveDistanceRangeInMeters GetOverlayAutoCurveDistanceRangeInMeters; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayTextureColorSpace(ulong ulOverlayHandle, EColorSpace eTextureColorSpace); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayTextureColorSpace SetOverlayTextureColorSpace; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTextureColorSpace(ulong ulOverlayHandle, ref EColorSpace peTextureColorSpace); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTextureColorSpace GetOverlayTextureColorSpace; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayTextureBounds(ulong ulOverlayHandle, ref VRTextureBounds_t pOverlayTextureBounds); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayTextureBounds SetOverlayTextureBounds; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTextureBounds(ulong ulOverlayHandle, ref VRTextureBounds_t pOverlayTextureBounds); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTextureBounds GetOverlayTextureBounds; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetOverlayRenderModel(ulong ulOverlayHandle, string pchValue, uint unBufferSize, ref HmdColor_t pColor, ref EVROverlayError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayRenderModel GetOverlayRenderModel; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayRenderModel(ulong ulOverlayHandle, string pchRenderModel, ref HmdColor_t pColor); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayRenderModel SetOverlayRenderModel; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTransformType(ulong ulOverlayHandle, ref VROverlayTransformType peTransformType); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTransformType GetOverlayTransformType; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayTransformAbsolute(ulong ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, ref HmdMatrix34_t pmatTrackingOriginToOverlayTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayTransformAbsolute SetOverlayTransformAbsolute; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTransformAbsolute(ulong ulOverlayHandle, ref ETrackingUniverseOrigin peTrackingOrigin, ref HmdMatrix34_t pmatTrackingOriginToOverlayTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTransformAbsolute GetOverlayTransformAbsolute; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayTransformTrackedDeviceRelative(ulong ulOverlayHandle, uint unTrackedDevice, ref HmdMatrix34_t pmatTrackedDeviceToOverlayTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayTransformTrackedDeviceRelative SetOverlayTransformTrackedDeviceRelative; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTransformTrackedDeviceRelative(ulong ulOverlayHandle, ref uint punTrackedDevice, ref HmdMatrix34_t pmatTrackedDeviceToOverlayTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTransformTrackedDeviceRelative GetOverlayTransformTrackedDeviceRelative; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayTransformTrackedDeviceComponent(ulong ulOverlayHandle, uint unDeviceIndex, string pchComponentName); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayTransformTrackedDeviceComponent SetOverlayTransformTrackedDeviceComponent; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTransformTrackedDeviceComponent(ulong ulOverlayHandle, ref uint punDeviceIndex, string pchComponentName, uint unComponentNameSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTransformTrackedDeviceComponent GetOverlayTransformTrackedDeviceComponent; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTransformOverlayRelative(ulong ulOverlayHandle, ref ulong ulOverlayHandleParent, ref HmdMatrix34_t pmatParentOverlayToOverlayTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTransformOverlayRelative GetOverlayTransformOverlayRelative; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayTransformOverlayRelative(ulong ulOverlayHandle, ulong ulOverlayHandleParent, ref HmdMatrix34_t pmatParentOverlayToOverlayTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayTransformOverlayRelative SetOverlayTransformOverlayRelative; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _ShowOverlay(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ShowOverlay ShowOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _HideOverlay(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _HideOverlay HideOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsOverlayVisible(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsOverlayVisible IsOverlayVisible; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetTransformForOverlayCoordinates(ulong ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, HmdVector2_t coordinatesInOverlay, ref HmdMatrix34_t pmatTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetTransformForOverlayCoordinates GetTransformForOverlayCoordinates; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _PollNextOverlayEvent(ulong ulOverlayHandle, ref VREvent_t pEvent, uint uncbVREvent); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _PollNextOverlayEvent PollNextOverlayEvent; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayInputMethod(ulong ulOverlayHandle, ref VROverlayInputMethod peInputMethod); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayInputMethod GetOverlayInputMethod; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayInputMethod(ulong ulOverlayHandle, VROverlayInputMethod eInputMethod); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayInputMethod SetOverlayInputMethod; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayMouseScale(ulong ulOverlayHandle, ref HmdVector2_t pvecMouseScale); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayMouseScale GetOverlayMouseScale; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayMouseScale(ulong ulOverlayHandle, ref HmdVector2_t pvecMouseScale); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayMouseScale SetOverlayMouseScale; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _ComputeOverlayIntersection(ulong ulOverlayHandle, ref VROverlayIntersectionParams_t pParams, ref VROverlayIntersectionResults_t pResults); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ComputeOverlayIntersection ComputeOverlayIntersection; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _HandleControllerOverlayInteractionAsMouse(ulong ulOverlayHandle, uint unControllerDeviceIndex); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _HandleControllerOverlayInteractionAsMouse HandleControllerOverlayInteractionAsMouse; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsHoverTargetOverlay(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsHoverTargetOverlay IsHoverTargetOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ulong _GetGamepadFocusOverlay(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetGamepadFocusOverlay GetGamepadFocusOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetGamepadFocusOverlay(ulong ulNewFocusOverlay); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetGamepadFocusOverlay SetGamepadFocusOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayNeighbor(EOverlayDirection eDirection, ulong ulFrom, ulong ulTo); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayNeighbor SetOverlayNeighbor; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _MoveGamepadFocusToNeighbor(EOverlayDirection eDirection, ulong ulFrom); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _MoveGamepadFocusToNeighbor MoveGamepadFocusToNeighbor; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayTexture(ulong ulOverlayHandle, ref Texture_t pTexture); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayTexture SetOverlayTexture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _ClearOverlayTexture(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ClearOverlayTexture ClearOverlayTexture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayRaw(ulong ulOverlayHandle, IntPtr pvBuffer, uint unWidth, uint unHeight, uint unDepth); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayRaw SetOverlayRaw; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayFromFile(ulong ulOverlayHandle, string pchFilePath); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayFromFile SetOverlayFromFile; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTexture(ulong ulOverlayHandle, ref IntPtr pNativeTextureHandle, IntPtr pNativeTextureRef, ref uint pWidth, ref uint pHeight, ref uint pNativeFormat, ref ETextureType pAPIType, ref EColorSpace pColorSpace, ref VRTextureBounds_t pTextureBounds); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTexture GetOverlayTexture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _ReleaseNativeOverlayHandle(ulong ulOverlayHandle, IntPtr pNativeTextureHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ReleaseNativeOverlayHandle ReleaseNativeOverlayHandle; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTextureSize(ulong ulOverlayHandle, ref uint pWidth, ref uint pHeight); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTextureSize GetOverlayTextureSize; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _CreateDashboardOverlay(string pchOverlayKey, string pchOverlayFriendlyName, ref ulong pMainHandle, ref ulong pThumbnailHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CreateDashboardOverlay CreateDashboardOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsDashboardVisible(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsDashboardVisible IsDashboardVisible; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsActiveDashboardOverlay(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsActiveDashboardOverlay IsActiveDashboardOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetDashboardOverlaySceneProcess(ulong ulOverlayHandle, uint unProcessId); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetDashboardOverlaySceneProcess SetDashboardOverlaySceneProcess; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetDashboardOverlaySceneProcess(ulong ulOverlayHandle, ref uint punProcessId); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetDashboardOverlaySceneProcess GetDashboardOverlaySceneProcess; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ShowDashboard(string pchOverlayToShow); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ShowDashboard ShowDashboard; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetPrimaryDashboardDevice(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetPrimaryDashboardDevice GetPrimaryDashboardDevice; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _ShowKeyboard(int eInputMode, int eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText, bool bUseMinimalMode, ulong uUserValue); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ShowKeyboard ShowKeyboard; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _ShowKeyboardForOverlay(ulong ulOverlayHandle, int eInputMode, int eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText, bool bUseMinimalMode, ulong uUserValue); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ShowKeyboardForOverlay ShowKeyboardForOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetKeyboardText(System.Text.StringBuilder pchText, uint cchText); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetKeyboardText GetKeyboardText; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _HideKeyboard(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _HideKeyboard HideKeyboard; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetKeyboardTransformAbsolute(ETrackingUniverseOrigin eTrackingOrigin, ref HmdMatrix34_t pmatTrackingOriginToKeyboardTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetKeyboardTransformAbsolute SetKeyboardTransformAbsolute; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetKeyboardPositionForOverlay(ulong ulOverlayHandle, HmdRect2_t avoidRect); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetKeyboardPositionForOverlay SetKeyboardPositionForOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayIntersectionMask(ulong ulOverlayHandle, ref VROverlayIntersectionMaskPrimitive_t pMaskPrimitives, uint unNumMaskPrimitives, uint unPrimitiveSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayIntersectionMask SetOverlayIntersectionMask; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayFlags(ulong ulOverlayHandle, ref uint pFlags); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayFlags GetOverlayFlags; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate VRMessageOverlayResponse _ShowMessageOverlay(string pchText, string pchCaption, string pchButton0Text, string pchButton1Text, string pchButton2Text, string pchButton3Text); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ShowMessageOverlay ShowMessageOverlay; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRRenderModels +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRRenderModelError _LoadRenderModel_Async(string pchRenderModelName, ref IntPtr ppRenderModel); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LoadRenderModel_Async LoadRenderModel_Async; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _FreeRenderModel(IntPtr pRenderModel); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _FreeRenderModel FreeRenderModel; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRRenderModelError _LoadTexture_Async(int textureId, ref IntPtr ppTexture); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LoadTexture_Async LoadTexture_Async; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _FreeTexture(IntPtr pTexture); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _FreeTexture FreeTexture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRRenderModelError _LoadTextureD3D11_Async(int textureId, IntPtr pD3D11Device, ref IntPtr ppD3D11Texture2D); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LoadTextureD3D11_Async LoadTextureD3D11_Async; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRRenderModelError _LoadIntoTextureD3D11_Async(int textureId, IntPtr pDstTexture); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LoadIntoTextureD3D11_Async LoadIntoTextureD3D11_Async; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _FreeTextureD3D11(IntPtr pD3D11Texture2D); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _FreeTextureD3D11 FreeTextureD3D11; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetRenderModelName(uint unRenderModelIndex, System.Text.StringBuilder pchRenderModelName, uint unRenderModelNameLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetRenderModelName GetRenderModelName; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetRenderModelCount(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetRenderModelCount GetRenderModelCount; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetComponentCount(string pchRenderModelName); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetComponentCount GetComponentCount; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetComponentName(string pchRenderModelName, uint unComponentIndex, System.Text.StringBuilder pchComponentName, uint unComponentNameLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetComponentName GetComponentName; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ulong _GetComponentButtonMask(string pchRenderModelName, string pchComponentName); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetComponentButtonMask GetComponentButtonMask; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetComponentRenderModelName(string pchRenderModelName, string pchComponentName, System.Text.StringBuilder pchComponentRenderModelName, uint unComponentRenderModelNameLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetComponentRenderModelName GetComponentRenderModelName; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetComponentState(string pchRenderModelName, string pchComponentName, ref VRControllerState_t pControllerState, ref RenderModel_ControllerMode_State_t pState, ref RenderModel_ComponentState_t pComponentState); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetComponentState GetComponentState; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _RenderModelHasComponent(string pchRenderModelName, string pchComponentName); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _RenderModelHasComponent RenderModelHasComponent; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetRenderModelThumbnailURL(string pchRenderModelName, System.Text.StringBuilder pchThumbnailURL, uint unThumbnailURLLen, ref EVRRenderModelError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetRenderModelThumbnailURL GetRenderModelThumbnailURL; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetRenderModelOriginalPath(string pchRenderModelName, System.Text.StringBuilder pchOriginalPath, uint unOriginalPathLen, ref EVRRenderModelError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetRenderModelOriginalPath GetRenderModelOriginalPath; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetRenderModelErrorNameFromEnum(EVRRenderModelError error); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetRenderModelErrorNameFromEnum GetRenderModelErrorNameFromEnum; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRNotifications +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRNotificationError _CreateNotification(ulong ulOverlayHandle, ulong ulUserValue, EVRNotificationType type, string pchText, EVRNotificationStyle style, ref NotificationBitmap_t pImage, ref uint pNotificationId); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CreateNotification CreateNotification; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRNotificationError _RemoveNotification(uint notificationId); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _RemoveNotification RemoveNotification; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRSettings +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetSettingsErrorNameFromEnum(EVRSettingsError eError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetSettingsErrorNameFromEnum GetSettingsErrorNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _Sync(bool bForce, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _Sync Sync; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetBool(string pchSection, string pchSettingsKey, bool bValue, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetBool SetBool; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetInt32(string pchSection, string pchSettingsKey, int nValue, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetInt32 SetInt32; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetFloat(string pchSection, string pchSettingsKey, float flValue, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetFloat SetFloat; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetString(string pchSection, string pchSettingsKey, string pchValue, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetString SetString; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetBool(string pchSection, string pchSettingsKey, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetBool GetBool; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate int _GetInt32(string pchSection, string pchSettingsKey, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetInt32 GetInt32; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate float _GetFloat(string pchSection, string pchSettingsKey, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetFloat GetFloat; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetString(string pchSection, string pchSettingsKey, System.Text.StringBuilder pchValue, uint unValueLen, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetString GetString; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _RemoveSection(string pchSection, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _RemoveSection RemoveSection; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _RemoveKeyInSection(string pchSection, string pchSettingsKey, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _RemoveKeyInSection RemoveKeyInSection; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRScreenshots +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRScreenshotError _RequestScreenshot(ref uint pOutScreenshotHandle, EVRScreenshotType type, string pchPreviewFilename, string pchVRFilename); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _RequestScreenshot RequestScreenshot; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRScreenshotError _HookScreenshot([In, Out] EVRScreenshotType[] pSupportedTypes, int numTypes); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _HookScreenshot HookScreenshot; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRScreenshotType _GetScreenshotPropertyType(uint screenshotHandle, ref EVRScreenshotError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetScreenshotPropertyType GetScreenshotPropertyType; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetScreenshotPropertyFilename(uint screenshotHandle, EVRScreenshotPropertyFilenames filenameType, System.Text.StringBuilder pchFilename, uint cchFilename, ref EVRScreenshotError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetScreenshotPropertyFilename GetScreenshotPropertyFilename; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRScreenshotError _UpdateScreenshotProgress(uint screenshotHandle, float flProgress); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _UpdateScreenshotProgress UpdateScreenshotProgress; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRScreenshotError _TakeStereoScreenshot(ref uint pOutScreenshotHandle, string pchPreviewFilename, string pchVRFilename); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _TakeStereoScreenshot TakeStereoScreenshot; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRScreenshotError _SubmitScreenshot(uint screenshotHandle, EVRScreenshotType type, string pchSourcePreviewFilename, string pchSourceVRFilename); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SubmitScreenshot SubmitScreenshot; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRResources +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _LoadSharedResource(string pchResourceName, string pchBuffer, uint unBufferLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LoadSharedResource LoadSharedResource; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetResourceFullPath(string pchResourceName, string pchResourceTypeDirectory, string pchPathBuffer, uint unBufferLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetResourceFullPath GetResourceFullPath; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRDriverManager +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetDriverCount(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetDriverCount GetDriverCount; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetDriverName(uint nDriver, System.Text.StringBuilder pchValue, uint unBufferSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetDriverName GetDriverName; + +} + + +public class CVRSystem +{ + IVRSystem FnTable; + internal CVRSystem(IntPtr pInterface) + { + FnTable = (IVRSystem)Marshal.PtrToStructure(pInterface, typeof(IVRSystem)); + } + public void GetRecommendedRenderTargetSize(ref uint pnWidth,ref uint pnHeight) + { + pnWidth = 0; + pnHeight = 0; + FnTable.GetRecommendedRenderTargetSize(ref pnWidth,ref pnHeight); + } + public HmdMatrix44_t GetProjectionMatrix(EVREye eEye,float fNearZ,float fFarZ) + { + HmdMatrix44_t result = FnTable.GetProjectionMatrix(eEye,fNearZ,fFarZ); + return result; + } + public void GetProjectionRaw(EVREye eEye,ref float pfLeft,ref float pfRight,ref float pfTop,ref float pfBottom) + { + pfLeft = 0; + pfRight = 0; + pfTop = 0; + pfBottom = 0; + FnTable.GetProjectionRaw(eEye,ref pfLeft,ref pfRight,ref pfTop,ref pfBottom); + } + public bool ComputeDistortion(EVREye eEye,float fU,float fV,ref DistortionCoordinates_t pDistortionCoordinates) + { + bool result = FnTable.ComputeDistortion(eEye,fU,fV,ref pDistortionCoordinates); + return result; + } + public HmdMatrix34_t GetEyeToHeadTransform(EVREye eEye) + { + HmdMatrix34_t result = FnTable.GetEyeToHeadTransform(eEye); + return result; + } + public bool GetTimeSinceLastVsync(ref float pfSecondsSinceLastVsync,ref ulong pulFrameCounter) + { + pfSecondsSinceLastVsync = 0; + pulFrameCounter = 0; + bool result = FnTable.GetTimeSinceLastVsync(ref pfSecondsSinceLastVsync,ref pulFrameCounter); + return result; + } + public int GetD3D9AdapterIndex() + { + int result = FnTable.GetD3D9AdapterIndex(); + return result; + } + public void GetDXGIOutputInfo(ref int pnAdapterIndex) + { + pnAdapterIndex = 0; + FnTable.GetDXGIOutputInfo(ref pnAdapterIndex); + } + public void GetOutputDevice(ref ulong pnDevice,ETextureType textureType) + { + pnDevice = 0; + FnTable.GetOutputDevice(ref pnDevice,textureType); + } + public bool IsDisplayOnDesktop() + { + bool result = FnTable.IsDisplayOnDesktop(); + return result; + } + public bool SetDisplayVisibility(bool bIsVisibleOnDesktop) + { + bool result = FnTable.SetDisplayVisibility(bIsVisibleOnDesktop); + return result; + } + public void GetDeviceToAbsoluteTrackingPose(ETrackingUniverseOrigin eOrigin,float fPredictedSecondsToPhotonsFromNow,TrackedDevicePose_t [] pTrackedDevicePoseArray) + { + FnTable.GetDeviceToAbsoluteTrackingPose(eOrigin,fPredictedSecondsToPhotonsFromNow,pTrackedDevicePoseArray,(uint) pTrackedDevicePoseArray.Length); + } + public void ResetSeatedZeroPose() + { + FnTable.ResetSeatedZeroPose(); + } + public HmdMatrix34_t GetSeatedZeroPoseToStandingAbsoluteTrackingPose() + { + HmdMatrix34_t result = FnTable.GetSeatedZeroPoseToStandingAbsoluteTrackingPose(); + return result; + } + public HmdMatrix34_t GetRawZeroPoseToStandingAbsoluteTrackingPose() + { + HmdMatrix34_t result = FnTable.GetRawZeroPoseToStandingAbsoluteTrackingPose(); + return result; + } + public uint GetSortedTrackedDeviceIndicesOfClass(ETrackedDeviceClass eTrackedDeviceClass,uint [] punTrackedDeviceIndexArray,uint unRelativeToTrackedDeviceIndex) + { + uint result = FnTable.GetSortedTrackedDeviceIndicesOfClass(eTrackedDeviceClass,punTrackedDeviceIndexArray,(uint) punTrackedDeviceIndexArray.Length,unRelativeToTrackedDeviceIndex); + return result; + } + public EDeviceActivityLevel GetTrackedDeviceActivityLevel(uint unDeviceId) + { + EDeviceActivityLevel result = FnTable.GetTrackedDeviceActivityLevel(unDeviceId); + return result; + } + public void ApplyTransform(ref TrackedDevicePose_t pOutputPose,ref TrackedDevicePose_t pTrackedDevicePose,ref HmdMatrix34_t pTransform) + { + FnTable.ApplyTransform(ref pOutputPose,ref pTrackedDevicePose,ref pTransform); + } + public uint GetTrackedDeviceIndexForControllerRole(ETrackedControllerRole unDeviceType) + { + uint result = FnTable.GetTrackedDeviceIndexForControllerRole(unDeviceType); + return result; + } + public ETrackedControllerRole GetControllerRoleForTrackedDeviceIndex(uint unDeviceIndex) + { + ETrackedControllerRole result = FnTable.GetControllerRoleForTrackedDeviceIndex(unDeviceIndex); + return result; + } + public ETrackedDeviceClass GetTrackedDeviceClass(uint unDeviceIndex) + { + ETrackedDeviceClass result = FnTable.GetTrackedDeviceClass(unDeviceIndex); + return result; + } + public bool IsTrackedDeviceConnected(uint unDeviceIndex) + { + bool result = FnTable.IsTrackedDeviceConnected(unDeviceIndex); + return result; + } + public bool GetBoolTrackedDeviceProperty(uint unDeviceIndex,ETrackedDeviceProperty prop,ref ETrackedPropertyError pError) + { + bool result = FnTable.GetBoolTrackedDeviceProperty(unDeviceIndex,prop,ref pError); + return result; + } + public float GetFloatTrackedDeviceProperty(uint unDeviceIndex,ETrackedDeviceProperty prop,ref ETrackedPropertyError pError) + { + float result = FnTable.GetFloatTrackedDeviceProperty(unDeviceIndex,prop,ref pError); + return result; + } + public int GetInt32TrackedDeviceProperty(uint unDeviceIndex,ETrackedDeviceProperty prop,ref ETrackedPropertyError pError) + { + int result = FnTable.GetInt32TrackedDeviceProperty(unDeviceIndex,prop,ref pError); + return result; + } + public ulong GetUint64TrackedDeviceProperty(uint unDeviceIndex,ETrackedDeviceProperty prop,ref ETrackedPropertyError pError) + { + ulong result = FnTable.GetUint64TrackedDeviceProperty(unDeviceIndex,prop,ref pError); + return result; + } + public HmdMatrix34_t GetMatrix34TrackedDeviceProperty(uint unDeviceIndex,ETrackedDeviceProperty prop,ref ETrackedPropertyError pError) + { + HmdMatrix34_t result = FnTable.GetMatrix34TrackedDeviceProperty(unDeviceIndex,prop,ref pError); + return result; + } + public uint GetStringTrackedDeviceProperty(uint unDeviceIndex,ETrackedDeviceProperty prop,System.Text.StringBuilder pchValue,uint unBufferSize,ref ETrackedPropertyError pError) + { + uint result = FnTable.GetStringTrackedDeviceProperty(unDeviceIndex,prop,pchValue,unBufferSize,ref pError); + return result; + } + public string GetPropErrorNameFromEnum(ETrackedPropertyError error) + { + IntPtr result = FnTable.GetPropErrorNameFromEnum(error); + return Marshal.PtrToStringAnsi(result); + } +// This is a terrible hack to workaround the fact that VRControllerState_t and VREvent_t were +// originally mis-compiled with the wrong packing for Linux and OSX. + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _PollNextEventPacked(ref VREvent_t_Packed pEvent,uint uncbVREvent); + [StructLayout(LayoutKind.Explicit)] + struct PollNextEventUnion + { + [FieldOffset(0)] + public IVRSystem._PollNextEvent pPollNextEvent; + [FieldOffset(0)] + public _PollNextEventPacked pPollNextEventPacked; + } + public bool PollNextEvent(ref VREvent_t pEvent,uint uncbVREvent) + { + if ((System.Environment.OSVersion.Platform == System.PlatformID.MacOSX) || + (System.Environment.OSVersion.Platform == System.PlatformID.Unix)) + { + PollNextEventUnion u; + VREvent_t_Packed event_packed = new VREvent_t_Packed(); + u.pPollNextEventPacked = null; + u.pPollNextEvent = FnTable.PollNextEvent; + bool packed_result = u.pPollNextEventPacked(ref event_packed,(uint)System.Runtime.InteropServices.Marshal.SizeOf(typeof(VREvent_t_Packed))); + + event_packed.Unpack(ref pEvent); + return packed_result; + } + bool result = FnTable.PollNextEvent(ref pEvent,uncbVREvent); + return result; + } + public bool PollNextEventWithPose(ETrackingUniverseOrigin eOrigin,ref VREvent_t pEvent,uint uncbVREvent,ref TrackedDevicePose_t pTrackedDevicePose) + { + bool result = FnTable.PollNextEventWithPose(eOrigin,ref pEvent,uncbVREvent,ref pTrackedDevicePose); + return result; + } + public string GetEventTypeNameFromEnum(EVREventType eType) + { + IntPtr result = FnTable.GetEventTypeNameFromEnum(eType); + return Marshal.PtrToStringAnsi(result); + } + public HiddenAreaMesh_t GetHiddenAreaMesh(EVREye eEye,EHiddenAreaMeshType type) + { + HiddenAreaMesh_t result = FnTable.GetHiddenAreaMesh(eEye,type); + return result; + } +// This is a terrible hack to workaround the fact that VRControllerState_t and VREvent_t were +// originally mis-compiled with the wrong packing for Linux and OSX. + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetControllerStatePacked(uint unControllerDeviceIndex,ref VRControllerState_t_Packed pControllerState,uint unControllerStateSize); + [StructLayout(LayoutKind.Explicit)] + struct GetControllerStateUnion + { + [FieldOffset(0)] + public IVRSystem._GetControllerState pGetControllerState; + [FieldOffset(0)] + public _GetControllerStatePacked pGetControllerStatePacked; + } + public bool GetControllerState(uint unControllerDeviceIndex,ref VRControllerState_t pControllerState,uint unControllerStateSize) + { + if ((System.Environment.OSVersion.Platform == System.PlatformID.MacOSX) || + (System.Environment.OSVersion.Platform == System.PlatformID.Unix)) + { + GetControllerStateUnion u; + VRControllerState_t_Packed state_packed = new VRControllerState_t_Packed(pControllerState); + u.pGetControllerStatePacked = null; + u.pGetControllerState = FnTable.GetControllerState; + bool packed_result = u.pGetControllerStatePacked(unControllerDeviceIndex,ref state_packed,(uint)System.Runtime.InteropServices.Marshal.SizeOf(typeof(VRControllerState_t_Packed))); + + state_packed.Unpack(ref pControllerState); + return packed_result; + } + bool result = FnTable.GetControllerState(unControllerDeviceIndex,ref pControllerState,unControllerStateSize); + return result; + } +// This is a terrible hack to workaround the fact that VRControllerState_t and VREvent_t were +// originally mis-compiled with the wrong packing for Linux and OSX. + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetControllerStateWithPosePacked(ETrackingUniverseOrigin eOrigin,uint unControllerDeviceIndex,ref VRControllerState_t_Packed pControllerState,uint unControllerStateSize,ref TrackedDevicePose_t pTrackedDevicePose); + [StructLayout(LayoutKind.Explicit)] + struct GetControllerStateWithPoseUnion + { + [FieldOffset(0)] + public IVRSystem._GetControllerStateWithPose pGetControllerStateWithPose; + [FieldOffset(0)] + public _GetControllerStateWithPosePacked pGetControllerStateWithPosePacked; + } + public bool GetControllerStateWithPose(ETrackingUniverseOrigin eOrigin,uint unControllerDeviceIndex,ref VRControllerState_t pControllerState,uint unControllerStateSize,ref TrackedDevicePose_t pTrackedDevicePose) + { + if ((System.Environment.OSVersion.Platform == System.PlatformID.MacOSX) || + (System.Environment.OSVersion.Platform == System.PlatformID.Unix)) + { + GetControllerStateWithPoseUnion u; + VRControllerState_t_Packed state_packed = new VRControllerState_t_Packed(pControllerState); + u.pGetControllerStateWithPosePacked = null; + u.pGetControllerStateWithPose = FnTable.GetControllerStateWithPose; + bool packed_result = u.pGetControllerStateWithPosePacked(eOrigin,unControllerDeviceIndex,ref state_packed,(uint)System.Runtime.InteropServices.Marshal.SizeOf(typeof(VRControllerState_t_Packed)),ref pTrackedDevicePose); + + state_packed.Unpack(ref pControllerState); + return packed_result; + } + bool result = FnTable.GetControllerStateWithPose(eOrigin,unControllerDeviceIndex,ref pControllerState,unControllerStateSize,ref pTrackedDevicePose); + return result; + } + public void TriggerHapticPulse(uint unControllerDeviceIndex,uint unAxisId,char usDurationMicroSec) + { + FnTable.TriggerHapticPulse(unControllerDeviceIndex,unAxisId,usDurationMicroSec); + } + public string GetButtonIdNameFromEnum(EVRButtonId eButtonId) + { + IntPtr result = FnTable.GetButtonIdNameFromEnum(eButtonId); + return Marshal.PtrToStringAnsi(result); + } + public string GetControllerAxisTypeNameFromEnum(EVRControllerAxisType eAxisType) + { + IntPtr result = FnTable.GetControllerAxisTypeNameFromEnum(eAxisType); + return Marshal.PtrToStringAnsi(result); + } + public bool CaptureInputFocus() + { + bool result = FnTable.CaptureInputFocus(); + return result; + } + public void ReleaseInputFocus() + { + FnTable.ReleaseInputFocus(); + } + public bool IsInputFocusCapturedByAnotherProcess() + { + bool result = FnTable.IsInputFocusCapturedByAnotherProcess(); + return result; + } + public uint DriverDebugRequest(uint unDeviceIndex,string pchRequest,string pchResponseBuffer,uint unResponseBufferSize) + { + uint result = FnTable.DriverDebugRequest(unDeviceIndex,pchRequest,pchResponseBuffer,unResponseBufferSize); + return result; + } + public EVRFirmwareError PerformFirmwareUpdate(uint unDeviceIndex) + { + EVRFirmwareError result = FnTable.PerformFirmwareUpdate(unDeviceIndex); + return result; + } + public void AcknowledgeQuit_Exiting() + { + FnTable.AcknowledgeQuit_Exiting(); + } + public void AcknowledgeQuit_UserPrompt() + { + FnTable.AcknowledgeQuit_UserPrompt(); + } +} + + +public class CVRExtendedDisplay +{ + IVRExtendedDisplay FnTable; + internal CVRExtendedDisplay(IntPtr pInterface) + { + FnTable = (IVRExtendedDisplay)Marshal.PtrToStructure(pInterface, typeof(IVRExtendedDisplay)); + } + public void GetWindowBounds(ref int pnX,ref int pnY,ref uint pnWidth,ref uint pnHeight) + { + pnX = 0; + pnY = 0; + pnWidth = 0; + pnHeight = 0; + FnTable.GetWindowBounds(ref pnX,ref pnY,ref pnWidth,ref pnHeight); + } + public void GetEyeOutputViewport(EVREye eEye,ref uint pnX,ref uint pnY,ref uint pnWidth,ref uint pnHeight) + { + pnX = 0; + pnY = 0; + pnWidth = 0; + pnHeight = 0; + FnTable.GetEyeOutputViewport(eEye,ref pnX,ref pnY,ref pnWidth,ref pnHeight); + } + public void GetDXGIOutputInfo(ref int pnAdapterIndex,ref int pnAdapterOutputIndex) + { + pnAdapterIndex = 0; + pnAdapterOutputIndex = 0; + FnTable.GetDXGIOutputInfo(ref pnAdapterIndex,ref pnAdapterOutputIndex); + } +} + + +public class CVRTrackedCamera +{ + IVRTrackedCamera FnTable; + internal CVRTrackedCamera(IntPtr pInterface) + { + FnTable = (IVRTrackedCamera)Marshal.PtrToStructure(pInterface, typeof(IVRTrackedCamera)); + } + public string GetCameraErrorNameFromEnum(EVRTrackedCameraError eCameraError) + { + IntPtr result = FnTable.GetCameraErrorNameFromEnum(eCameraError); + return Marshal.PtrToStringAnsi(result); + } + public EVRTrackedCameraError HasCamera(uint nDeviceIndex,ref bool pHasCamera) + { + pHasCamera = false; + EVRTrackedCameraError result = FnTable.HasCamera(nDeviceIndex,ref pHasCamera); + return result; + } + public EVRTrackedCameraError GetCameraFrameSize(uint nDeviceIndex,EVRTrackedCameraFrameType eFrameType,ref uint pnWidth,ref uint pnHeight,ref uint pnFrameBufferSize) + { + pnWidth = 0; + pnHeight = 0; + pnFrameBufferSize = 0; + EVRTrackedCameraError result = FnTable.GetCameraFrameSize(nDeviceIndex,eFrameType,ref pnWidth,ref pnHeight,ref pnFrameBufferSize); + return result; + } + public EVRTrackedCameraError GetCameraIntrinsics(uint nDeviceIndex,EVRTrackedCameraFrameType eFrameType,ref HmdVector2_t pFocalLength,ref HmdVector2_t pCenter) + { + EVRTrackedCameraError result = FnTable.GetCameraIntrinsics(nDeviceIndex,eFrameType,ref pFocalLength,ref pCenter); + return result; + } + public EVRTrackedCameraError GetCameraProjection(uint nDeviceIndex,EVRTrackedCameraFrameType eFrameType,float flZNear,float flZFar,ref HmdMatrix44_t pProjection) + { + EVRTrackedCameraError result = FnTable.GetCameraProjection(nDeviceIndex,eFrameType,flZNear,flZFar,ref pProjection); + return result; + } + public EVRTrackedCameraError AcquireVideoStreamingService(uint nDeviceIndex,ref ulong pHandle) + { + pHandle = 0; + EVRTrackedCameraError result = FnTable.AcquireVideoStreamingService(nDeviceIndex,ref pHandle); + return result; + } + public EVRTrackedCameraError ReleaseVideoStreamingService(ulong hTrackedCamera) + { + EVRTrackedCameraError result = FnTable.ReleaseVideoStreamingService(hTrackedCamera); + return result; + } + public EVRTrackedCameraError GetVideoStreamFrameBuffer(ulong hTrackedCamera,EVRTrackedCameraFrameType eFrameType,IntPtr pFrameBuffer,uint nFrameBufferSize,ref CameraVideoStreamFrameHeader_t pFrameHeader,uint nFrameHeaderSize) + { + EVRTrackedCameraError result = FnTable.GetVideoStreamFrameBuffer(hTrackedCamera,eFrameType,pFrameBuffer,nFrameBufferSize,ref pFrameHeader,nFrameHeaderSize); + return result; + } + public EVRTrackedCameraError GetVideoStreamTextureSize(uint nDeviceIndex,EVRTrackedCameraFrameType eFrameType,ref VRTextureBounds_t pTextureBounds,ref uint pnWidth,ref uint pnHeight) + { + pnWidth = 0; + pnHeight = 0; + EVRTrackedCameraError result = FnTable.GetVideoStreamTextureSize(nDeviceIndex,eFrameType,ref pTextureBounds,ref pnWidth,ref pnHeight); + return result; + } + public EVRTrackedCameraError GetVideoStreamTextureD3D11(ulong hTrackedCamera,EVRTrackedCameraFrameType eFrameType,IntPtr pD3D11DeviceOrResource,ref IntPtr ppD3D11ShaderResourceView,ref CameraVideoStreamFrameHeader_t pFrameHeader,uint nFrameHeaderSize) + { + EVRTrackedCameraError result = FnTable.GetVideoStreamTextureD3D11(hTrackedCamera,eFrameType,pD3D11DeviceOrResource,ref ppD3D11ShaderResourceView,ref pFrameHeader,nFrameHeaderSize); + return result; + } + public EVRTrackedCameraError GetVideoStreamTextureGL(ulong hTrackedCamera,EVRTrackedCameraFrameType eFrameType,ref uint pglTextureId,ref CameraVideoStreamFrameHeader_t pFrameHeader,uint nFrameHeaderSize) + { + pglTextureId = 0; + EVRTrackedCameraError result = FnTable.GetVideoStreamTextureGL(hTrackedCamera,eFrameType,ref pglTextureId,ref pFrameHeader,nFrameHeaderSize); + return result; + } + public EVRTrackedCameraError ReleaseVideoStreamTextureGL(ulong hTrackedCamera,uint glTextureId) + { + EVRTrackedCameraError result = FnTable.ReleaseVideoStreamTextureGL(hTrackedCamera,glTextureId); + return result; + } +} + + +public class CVRApplications +{ + IVRApplications FnTable; + internal CVRApplications(IntPtr pInterface) + { + FnTable = (IVRApplications)Marshal.PtrToStructure(pInterface, typeof(IVRApplications)); + } + public EVRApplicationError AddApplicationManifest(string pchApplicationManifestFullPath,bool bTemporary) + { + EVRApplicationError result = FnTable.AddApplicationManifest(pchApplicationManifestFullPath,bTemporary); + return result; + } + public EVRApplicationError RemoveApplicationManifest(string pchApplicationManifestFullPath) + { + EVRApplicationError result = FnTable.RemoveApplicationManifest(pchApplicationManifestFullPath); + return result; + } + public bool IsApplicationInstalled(string pchAppKey) + { + bool result = FnTable.IsApplicationInstalled(pchAppKey); + return result; + } + public uint GetApplicationCount() + { + uint result = FnTable.GetApplicationCount(); + return result; + } + public EVRApplicationError GetApplicationKeyByIndex(uint unApplicationIndex,System.Text.StringBuilder pchAppKeyBuffer,uint unAppKeyBufferLen) + { + EVRApplicationError result = FnTable.GetApplicationKeyByIndex(unApplicationIndex,pchAppKeyBuffer,unAppKeyBufferLen); + return result; + } + public EVRApplicationError GetApplicationKeyByProcessId(uint unProcessId,string pchAppKeyBuffer,uint unAppKeyBufferLen) + { + EVRApplicationError result = FnTable.GetApplicationKeyByProcessId(unProcessId,pchAppKeyBuffer,unAppKeyBufferLen); + return result; + } + public EVRApplicationError LaunchApplication(string pchAppKey) + { + EVRApplicationError result = FnTable.LaunchApplication(pchAppKey); + return result; + } + public EVRApplicationError LaunchTemplateApplication(string pchTemplateAppKey,string pchNewAppKey,AppOverrideKeys_t [] pKeys) + { + EVRApplicationError result = FnTable.LaunchTemplateApplication(pchTemplateAppKey,pchNewAppKey,pKeys,(uint) pKeys.Length); + return result; + } + public EVRApplicationError LaunchApplicationFromMimeType(string pchMimeType,string pchArgs) + { + EVRApplicationError result = FnTable.LaunchApplicationFromMimeType(pchMimeType,pchArgs); + return result; + } + public EVRApplicationError LaunchDashboardOverlay(string pchAppKey) + { + EVRApplicationError result = FnTable.LaunchDashboardOverlay(pchAppKey); + return result; + } + public bool CancelApplicationLaunch(string pchAppKey) + { + bool result = FnTable.CancelApplicationLaunch(pchAppKey); + return result; + } + public EVRApplicationError IdentifyApplication(uint unProcessId,string pchAppKey) + { + EVRApplicationError result = FnTable.IdentifyApplication(unProcessId,pchAppKey); + return result; + } + public uint GetApplicationProcessId(string pchAppKey) + { + uint result = FnTable.GetApplicationProcessId(pchAppKey); + return result; + } + public string GetApplicationsErrorNameFromEnum(EVRApplicationError error) + { + IntPtr result = FnTable.GetApplicationsErrorNameFromEnum(error); + return Marshal.PtrToStringAnsi(result); + } + public uint GetApplicationPropertyString(string pchAppKey,EVRApplicationProperty eProperty,System.Text.StringBuilder pchPropertyValueBuffer,uint unPropertyValueBufferLen,ref EVRApplicationError peError) + { + uint result = FnTable.GetApplicationPropertyString(pchAppKey,eProperty,pchPropertyValueBuffer,unPropertyValueBufferLen,ref peError); + return result; + } + public bool GetApplicationPropertyBool(string pchAppKey,EVRApplicationProperty eProperty,ref EVRApplicationError peError) + { + bool result = FnTable.GetApplicationPropertyBool(pchAppKey,eProperty,ref peError); + return result; + } + public ulong GetApplicationPropertyUint64(string pchAppKey,EVRApplicationProperty eProperty,ref EVRApplicationError peError) + { + ulong result = FnTable.GetApplicationPropertyUint64(pchAppKey,eProperty,ref peError); + return result; + } + public EVRApplicationError SetApplicationAutoLaunch(string pchAppKey,bool bAutoLaunch) + { + EVRApplicationError result = FnTable.SetApplicationAutoLaunch(pchAppKey,bAutoLaunch); + return result; + } + public bool GetApplicationAutoLaunch(string pchAppKey) + { + bool result = FnTable.GetApplicationAutoLaunch(pchAppKey); + return result; + } + public EVRApplicationError SetDefaultApplicationForMimeType(string pchAppKey,string pchMimeType) + { + EVRApplicationError result = FnTable.SetDefaultApplicationForMimeType(pchAppKey,pchMimeType); + return result; + } + public bool GetDefaultApplicationForMimeType(string pchMimeType,string pchAppKeyBuffer,uint unAppKeyBufferLen) + { + bool result = FnTable.GetDefaultApplicationForMimeType(pchMimeType,pchAppKeyBuffer,unAppKeyBufferLen); + return result; + } + public bool GetApplicationSupportedMimeTypes(string pchAppKey,string pchMimeTypesBuffer,uint unMimeTypesBuffer) + { + bool result = FnTable.GetApplicationSupportedMimeTypes(pchAppKey,pchMimeTypesBuffer,unMimeTypesBuffer); + return result; + } + public uint GetApplicationsThatSupportMimeType(string pchMimeType,string pchAppKeysThatSupportBuffer,uint unAppKeysThatSupportBuffer) + { + uint result = FnTable.GetApplicationsThatSupportMimeType(pchMimeType,pchAppKeysThatSupportBuffer,unAppKeysThatSupportBuffer); + return result; + } + public uint GetApplicationLaunchArguments(uint unHandle,string pchArgs,uint unArgs) + { + uint result = FnTable.GetApplicationLaunchArguments(unHandle,pchArgs,unArgs); + return result; + } + public EVRApplicationError GetStartingApplication(string pchAppKeyBuffer,uint unAppKeyBufferLen) + { + EVRApplicationError result = FnTable.GetStartingApplication(pchAppKeyBuffer,unAppKeyBufferLen); + return result; + } + public EVRApplicationTransitionState GetTransitionState() + { + EVRApplicationTransitionState result = FnTable.GetTransitionState(); + return result; + } + public EVRApplicationError PerformApplicationPrelaunchCheck(string pchAppKey) + { + EVRApplicationError result = FnTable.PerformApplicationPrelaunchCheck(pchAppKey); + return result; + } + public string GetApplicationsTransitionStateNameFromEnum(EVRApplicationTransitionState state) + { + IntPtr result = FnTable.GetApplicationsTransitionStateNameFromEnum(state); + return Marshal.PtrToStringAnsi(result); + } + public bool IsQuitUserPromptRequested() + { + bool result = FnTable.IsQuitUserPromptRequested(); + return result; + } + public EVRApplicationError LaunchInternalProcess(string pchBinaryPath,string pchArguments,string pchWorkingDirectory) + { + EVRApplicationError result = FnTable.LaunchInternalProcess(pchBinaryPath,pchArguments,pchWorkingDirectory); + return result; + } + public uint GetCurrentSceneProcessId() + { + uint result = FnTable.GetCurrentSceneProcessId(); + return result; + } +} + + +public class CVRChaperone +{ + IVRChaperone FnTable; + internal CVRChaperone(IntPtr pInterface) + { + FnTable = (IVRChaperone)Marshal.PtrToStructure(pInterface, typeof(IVRChaperone)); + } + public ChaperoneCalibrationState GetCalibrationState() + { + ChaperoneCalibrationState result = FnTable.GetCalibrationState(); + return result; + } + public bool GetPlayAreaSize(ref float pSizeX,ref float pSizeZ) + { + pSizeX = 0; + pSizeZ = 0; + bool result = FnTable.GetPlayAreaSize(ref pSizeX,ref pSizeZ); + return result; + } + public bool GetPlayAreaRect(ref HmdQuad_t rect) + { + bool result = FnTable.GetPlayAreaRect(ref rect); + return result; + } + public void ReloadInfo() + { + FnTable.ReloadInfo(); + } + public void SetSceneColor(HmdColor_t color) + { + FnTable.SetSceneColor(color); + } + public void GetBoundsColor(ref HmdColor_t pOutputColorArray,int nNumOutputColors,float flCollisionBoundsFadeDistance,ref HmdColor_t pOutputCameraColor) + { + FnTable.GetBoundsColor(ref pOutputColorArray,nNumOutputColors,flCollisionBoundsFadeDistance,ref pOutputCameraColor); + } + public bool AreBoundsVisible() + { + bool result = FnTable.AreBoundsVisible(); + return result; + } + public void ForceBoundsVisible(bool bForce) + { + FnTable.ForceBoundsVisible(bForce); + } +} + + +public class CVRChaperoneSetup +{ + IVRChaperoneSetup FnTable; + internal CVRChaperoneSetup(IntPtr pInterface) + { + FnTable = (IVRChaperoneSetup)Marshal.PtrToStructure(pInterface, typeof(IVRChaperoneSetup)); + } + public bool CommitWorkingCopy(EChaperoneConfigFile configFile) + { + bool result = FnTable.CommitWorkingCopy(configFile); + return result; + } + public void RevertWorkingCopy() + { + FnTable.RevertWorkingCopy(); + } + public bool GetWorkingPlayAreaSize(ref float pSizeX,ref float pSizeZ) + { + pSizeX = 0; + pSizeZ = 0; + bool result = FnTable.GetWorkingPlayAreaSize(ref pSizeX,ref pSizeZ); + return result; + } + public bool GetWorkingPlayAreaRect(ref HmdQuad_t rect) + { + bool result = FnTable.GetWorkingPlayAreaRect(ref rect); + return result; + } + public bool GetWorkingCollisionBoundsInfo(out HmdQuad_t [] pQuadsBuffer) + { + uint punQuadsCount = 0; + bool result = FnTable.GetWorkingCollisionBoundsInfo(null,ref punQuadsCount); + pQuadsBuffer= new HmdQuad_t[punQuadsCount]; + result = FnTable.GetWorkingCollisionBoundsInfo(pQuadsBuffer,ref punQuadsCount); + return result; + } + public bool GetLiveCollisionBoundsInfo(out HmdQuad_t [] pQuadsBuffer) + { + uint punQuadsCount = 0; + bool result = FnTable.GetLiveCollisionBoundsInfo(null,ref punQuadsCount); + pQuadsBuffer= new HmdQuad_t[punQuadsCount]; + result = FnTable.GetLiveCollisionBoundsInfo(pQuadsBuffer,ref punQuadsCount); + return result; + } + public bool GetWorkingSeatedZeroPoseToRawTrackingPose(ref HmdMatrix34_t pmatSeatedZeroPoseToRawTrackingPose) + { + bool result = FnTable.GetWorkingSeatedZeroPoseToRawTrackingPose(ref pmatSeatedZeroPoseToRawTrackingPose); + return result; + } + public bool GetWorkingStandingZeroPoseToRawTrackingPose(ref HmdMatrix34_t pmatStandingZeroPoseToRawTrackingPose) + { + bool result = FnTable.GetWorkingStandingZeroPoseToRawTrackingPose(ref pmatStandingZeroPoseToRawTrackingPose); + return result; + } + public void SetWorkingPlayAreaSize(float sizeX,float sizeZ) + { + FnTable.SetWorkingPlayAreaSize(sizeX,sizeZ); + } + public void SetWorkingCollisionBoundsInfo(HmdQuad_t [] pQuadsBuffer) + { + FnTable.SetWorkingCollisionBoundsInfo(pQuadsBuffer,(uint) pQuadsBuffer.Length); + } + public void SetWorkingSeatedZeroPoseToRawTrackingPose(ref HmdMatrix34_t pMatSeatedZeroPoseToRawTrackingPose) + { + FnTable.SetWorkingSeatedZeroPoseToRawTrackingPose(ref pMatSeatedZeroPoseToRawTrackingPose); + } + public void SetWorkingStandingZeroPoseToRawTrackingPose(ref HmdMatrix34_t pMatStandingZeroPoseToRawTrackingPose) + { + FnTable.SetWorkingStandingZeroPoseToRawTrackingPose(ref pMatStandingZeroPoseToRawTrackingPose); + } + public void ReloadFromDisk(EChaperoneConfigFile configFile) + { + FnTable.ReloadFromDisk(configFile); + } + public bool GetLiveSeatedZeroPoseToRawTrackingPose(ref HmdMatrix34_t pmatSeatedZeroPoseToRawTrackingPose) + { + bool result = FnTable.GetLiveSeatedZeroPoseToRawTrackingPose(ref pmatSeatedZeroPoseToRawTrackingPose); + return result; + } + public void SetWorkingCollisionBoundsTagsInfo(byte [] pTagsBuffer) + { + FnTable.SetWorkingCollisionBoundsTagsInfo(pTagsBuffer,(uint) pTagsBuffer.Length); + } + public bool GetLiveCollisionBoundsTagsInfo(out byte [] pTagsBuffer) + { + uint punTagCount = 0; + bool result = FnTable.GetLiveCollisionBoundsTagsInfo(null,ref punTagCount); + pTagsBuffer= new byte[punTagCount]; + result = FnTable.GetLiveCollisionBoundsTagsInfo(pTagsBuffer,ref punTagCount); + return result; + } + public bool SetWorkingPhysicalBoundsInfo(HmdQuad_t [] pQuadsBuffer) + { + bool result = FnTable.SetWorkingPhysicalBoundsInfo(pQuadsBuffer,(uint) pQuadsBuffer.Length); + return result; + } + public bool GetLivePhysicalBoundsInfo(out HmdQuad_t [] pQuadsBuffer) + { + uint punQuadsCount = 0; + bool result = FnTable.GetLivePhysicalBoundsInfo(null,ref punQuadsCount); + pQuadsBuffer= new HmdQuad_t[punQuadsCount]; + result = FnTable.GetLivePhysicalBoundsInfo(pQuadsBuffer,ref punQuadsCount); + return result; + } + public bool ExportLiveToBuffer(System.Text.StringBuilder pBuffer,ref uint pnBufferLength) + { + pnBufferLength = 0; + bool result = FnTable.ExportLiveToBuffer(pBuffer,ref pnBufferLength); + return result; + } + public bool ImportFromBufferToWorking(string pBuffer,uint nImportFlags) + { + bool result = FnTable.ImportFromBufferToWorking(pBuffer,nImportFlags); + return result; + } +} + + +public class CVRCompositor +{ + IVRCompositor FnTable; + internal CVRCompositor(IntPtr pInterface) + { + FnTable = (IVRCompositor)Marshal.PtrToStructure(pInterface, typeof(IVRCompositor)); + } + public void SetTrackingSpace(ETrackingUniverseOrigin eOrigin) + { + FnTable.SetTrackingSpace(eOrigin); + } + public ETrackingUniverseOrigin GetTrackingSpace() + { + ETrackingUniverseOrigin result = FnTable.GetTrackingSpace(); + return result; + } + public EVRCompositorError WaitGetPoses(TrackedDevicePose_t [] pRenderPoseArray,TrackedDevicePose_t [] pGamePoseArray) + { + EVRCompositorError result = FnTable.WaitGetPoses(pRenderPoseArray,(uint) pRenderPoseArray.Length,pGamePoseArray,(uint) pGamePoseArray.Length); + return result; + } + public EVRCompositorError GetLastPoses(TrackedDevicePose_t [] pRenderPoseArray,TrackedDevicePose_t [] pGamePoseArray) + { + EVRCompositorError result = FnTable.GetLastPoses(pRenderPoseArray,(uint) pRenderPoseArray.Length,pGamePoseArray,(uint) pGamePoseArray.Length); + return result; + } + public EVRCompositorError GetLastPoseForTrackedDeviceIndex(uint unDeviceIndex,ref TrackedDevicePose_t pOutputPose,ref TrackedDevicePose_t pOutputGamePose) + { + EVRCompositorError result = FnTable.GetLastPoseForTrackedDeviceIndex(unDeviceIndex,ref pOutputPose,ref pOutputGamePose); + return result; + } + public EVRCompositorError Submit(EVREye eEye,ref Texture_t pTexture,ref VRTextureBounds_t pBounds,EVRSubmitFlags nSubmitFlags) + { + EVRCompositorError result = FnTable.Submit(eEye,ref pTexture,ref pBounds,nSubmitFlags); + return result; + } + public void ClearLastSubmittedFrame() + { + FnTable.ClearLastSubmittedFrame(); + } + public void PostPresentHandoff() + { + FnTable.PostPresentHandoff(); + } + public bool GetFrameTiming(ref Compositor_FrameTiming pTiming,uint unFramesAgo) + { + bool result = FnTable.GetFrameTiming(ref pTiming,unFramesAgo); + return result; + } + public uint GetFrameTimings(ref Compositor_FrameTiming pTiming,uint nFrames) + { + uint result = FnTable.GetFrameTimings(ref pTiming,nFrames); + return result; + } + public float GetFrameTimeRemaining() + { + float result = FnTable.GetFrameTimeRemaining(); + return result; + } + public void GetCumulativeStats(ref Compositor_CumulativeStats pStats,uint nStatsSizeInBytes) + { + FnTable.GetCumulativeStats(ref pStats,nStatsSizeInBytes); + } + public void FadeToColor(float fSeconds,float fRed,float fGreen,float fBlue,float fAlpha,bool bBackground) + { + FnTable.FadeToColor(fSeconds,fRed,fGreen,fBlue,fAlpha,bBackground); + } + public HmdColor_t GetCurrentFadeColor(bool bBackground) + { + HmdColor_t result = FnTable.GetCurrentFadeColor(bBackground); + return result; + } + public void FadeGrid(float fSeconds,bool bFadeIn) + { + FnTable.FadeGrid(fSeconds,bFadeIn); + } + public float GetCurrentGridAlpha() + { + float result = FnTable.GetCurrentGridAlpha(); + return result; + } + public EVRCompositorError SetSkyboxOverride(Texture_t [] pTextures) + { + EVRCompositorError result = FnTable.SetSkyboxOverride(pTextures,(uint) pTextures.Length); + return result; + } + public void ClearSkyboxOverride() + { + FnTable.ClearSkyboxOverride(); + } + public void CompositorBringToFront() + { + FnTable.CompositorBringToFront(); + } + public void CompositorGoToBack() + { + FnTable.CompositorGoToBack(); + } + public void CompositorQuit() + { + FnTable.CompositorQuit(); + } + public bool IsFullscreen() + { + bool result = FnTable.IsFullscreen(); + return result; + } + public uint GetCurrentSceneFocusProcess() + { + uint result = FnTable.GetCurrentSceneFocusProcess(); + return result; + } + public uint GetLastFrameRenderer() + { + uint result = FnTable.GetLastFrameRenderer(); + return result; + } + public bool CanRenderScene() + { + bool result = FnTable.CanRenderScene(); + return result; + } + public void ShowMirrorWindow() + { + FnTable.ShowMirrorWindow(); + } + public void HideMirrorWindow() + { + FnTable.HideMirrorWindow(); + } + public bool IsMirrorWindowVisible() + { + bool result = FnTable.IsMirrorWindowVisible(); + return result; + } + public void CompositorDumpImages() + { + FnTable.CompositorDumpImages(); + } + public bool ShouldAppRenderWithLowResources() + { + bool result = FnTable.ShouldAppRenderWithLowResources(); + return result; + } + public void ForceInterleavedReprojectionOn(bool bOverride) + { + FnTable.ForceInterleavedReprojectionOn(bOverride); + } + public void ForceReconnectProcess() + { + FnTable.ForceReconnectProcess(); + } + public void SuspendRendering(bool bSuspend) + { + FnTable.SuspendRendering(bSuspend); + } + public EVRCompositorError GetMirrorTextureD3D11(EVREye eEye,IntPtr pD3D11DeviceOrResource,ref IntPtr ppD3D11ShaderResourceView) + { + EVRCompositorError result = FnTable.GetMirrorTextureD3D11(eEye,pD3D11DeviceOrResource,ref ppD3D11ShaderResourceView); + return result; + } + public void ReleaseMirrorTextureD3D11(IntPtr pD3D11ShaderResourceView) + { + FnTable.ReleaseMirrorTextureD3D11(pD3D11ShaderResourceView); + } + public EVRCompositorError GetMirrorTextureGL(EVREye eEye,ref uint pglTextureId,IntPtr pglSharedTextureHandle) + { + pglTextureId = 0; + EVRCompositorError result = FnTable.GetMirrorTextureGL(eEye,ref pglTextureId,pglSharedTextureHandle); + return result; + } + public bool ReleaseSharedGLTexture(uint glTextureId,IntPtr glSharedTextureHandle) + { + bool result = FnTable.ReleaseSharedGLTexture(glTextureId,glSharedTextureHandle); + return result; + } + public void LockGLSharedTextureForAccess(IntPtr glSharedTextureHandle) + { + FnTable.LockGLSharedTextureForAccess(glSharedTextureHandle); + } + public void UnlockGLSharedTextureForAccess(IntPtr glSharedTextureHandle) + { + FnTable.UnlockGLSharedTextureForAccess(glSharedTextureHandle); + } + public uint GetVulkanInstanceExtensionsRequired(System.Text.StringBuilder pchValue,uint unBufferSize) + { + uint result = FnTable.GetVulkanInstanceExtensionsRequired(pchValue,unBufferSize); + return result; + } + public uint GetVulkanDeviceExtensionsRequired(IntPtr pPhysicalDevice,System.Text.StringBuilder pchValue,uint unBufferSize) + { + uint result = FnTable.GetVulkanDeviceExtensionsRequired(pPhysicalDevice,pchValue,unBufferSize); + return result; + } +} + + +public class CVROverlay +{ + IVROverlay FnTable; + internal CVROverlay(IntPtr pInterface) + { + FnTable = (IVROverlay)Marshal.PtrToStructure(pInterface, typeof(IVROverlay)); + } + public EVROverlayError FindOverlay(string pchOverlayKey,ref ulong pOverlayHandle) + { + pOverlayHandle = 0; + EVROverlayError result = FnTable.FindOverlay(pchOverlayKey,ref pOverlayHandle); + return result; + } + public EVROverlayError CreateOverlay(string pchOverlayKey,string pchOverlayName,ref ulong pOverlayHandle) + { + pOverlayHandle = 0; + EVROverlayError result = FnTable.CreateOverlay(pchOverlayKey,pchOverlayName,ref pOverlayHandle); + return result; + } + public EVROverlayError DestroyOverlay(ulong ulOverlayHandle) + { + EVROverlayError result = FnTable.DestroyOverlay(ulOverlayHandle); + return result; + } + public EVROverlayError SetHighQualityOverlay(ulong ulOverlayHandle) + { + EVROverlayError result = FnTable.SetHighQualityOverlay(ulOverlayHandle); + return result; + } + public ulong GetHighQualityOverlay() + { + ulong result = FnTable.GetHighQualityOverlay(); + return result; + } + public uint GetOverlayKey(ulong ulOverlayHandle,System.Text.StringBuilder pchValue,uint unBufferSize,ref EVROverlayError pError) + { + uint result = FnTable.GetOverlayKey(ulOverlayHandle,pchValue,unBufferSize,ref pError); + return result; + } + public uint GetOverlayName(ulong ulOverlayHandle,System.Text.StringBuilder pchValue,uint unBufferSize,ref EVROverlayError pError) + { + uint result = FnTable.GetOverlayName(ulOverlayHandle,pchValue,unBufferSize,ref pError); + return result; + } + public EVROverlayError SetOverlayName(ulong ulOverlayHandle,string pchName) + { + EVROverlayError result = FnTable.SetOverlayName(ulOverlayHandle,pchName); + return result; + } + public EVROverlayError GetOverlayImageData(ulong ulOverlayHandle,IntPtr pvBuffer,uint unBufferSize,ref uint punWidth,ref uint punHeight) + { + punWidth = 0; + punHeight = 0; + EVROverlayError result = FnTable.GetOverlayImageData(ulOverlayHandle,pvBuffer,unBufferSize,ref punWidth,ref punHeight); + return result; + } + public string GetOverlayErrorNameFromEnum(EVROverlayError error) + { + IntPtr result = FnTable.GetOverlayErrorNameFromEnum(error); + return Marshal.PtrToStringAnsi(result); + } + public EVROverlayError SetOverlayRenderingPid(ulong ulOverlayHandle,uint unPID) + { + EVROverlayError result = FnTable.SetOverlayRenderingPid(ulOverlayHandle,unPID); + return result; + } + public uint GetOverlayRenderingPid(ulong ulOverlayHandle) + { + uint result = FnTable.GetOverlayRenderingPid(ulOverlayHandle); + return result; + } + public EVROverlayError SetOverlayFlag(ulong ulOverlayHandle,VROverlayFlags eOverlayFlag,bool bEnabled) + { + EVROverlayError result = FnTable.SetOverlayFlag(ulOverlayHandle,eOverlayFlag,bEnabled); + return result; + } + public EVROverlayError GetOverlayFlag(ulong ulOverlayHandle,VROverlayFlags eOverlayFlag,ref bool pbEnabled) + { + pbEnabled = false; + EVROverlayError result = FnTable.GetOverlayFlag(ulOverlayHandle,eOverlayFlag,ref pbEnabled); + return result; + } + public EVROverlayError SetOverlayColor(ulong ulOverlayHandle,float fRed,float fGreen,float fBlue) + { + EVROverlayError result = FnTable.SetOverlayColor(ulOverlayHandle,fRed,fGreen,fBlue); + return result; + } + public EVROverlayError GetOverlayColor(ulong ulOverlayHandle,ref float pfRed,ref float pfGreen,ref float pfBlue) + { + pfRed = 0; + pfGreen = 0; + pfBlue = 0; + EVROverlayError result = FnTable.GetOverlayColor(ulOverlayHandle,ref pfRed,ref pfGreen,ref pfBlue); + return result; + } + public EVROverlayError SetOverlayAlpha(ulong ulOverlayHandle,float fAlpha) + { + EVROverlayError result = FnTable.SetOverlayAlpha(ulOverlayHandle,fAlpha); + return result; + } + public EVROverlayError GetOverlayAlpha(ulong ulOverlayHandle,ref float pfAlpha) + { + pfAlpha = 0; + EVROverlayError result = FnTable.GetOverlayAlpha(ulOverlayHandle,ref pfAlpha); + return result; + } + public EVROverlayError SetOverlayTexelAspect(ulong ulOverlayHandle,float fTexelAspect) + { + EVROverlayError result = FnTable.SetOverlayTexelAspect(ulOverlayHandle,fTexelAspect); + return result; + } + public EVROverlayError GetOverlayTexelAspect(ulong ulOverlayHandle,ref float pfTexelAspect) + { + pfTexelAspect = 0; + EVROverlayError result = FnTable.GetOverlayTexelAspect(ulOverlayHandle,ref pfTexelAspect); + return result; + } + public EVROverlayError SetOverlaySortOrder(ulong ulOverlayHandle,uint unSortOrder) + { + EVROverlayError result = FnTable.SetOverlaySortOrder(ulOverlayHandle,unSortOrder); + return result; + } + public EVROverlayError GetOverlaySortOrder(ulong ulOverlayHandle,ref uint punSortOrder) + { + punSortOrder = 0; + EVROverlayError result = FnTable.GetOverlaySortOrder(ulOverlayHandle,ref punSortOrder); + return result; + } + public EVROverlayError SetOverlayWidthInMeters(ulong ulOverlayHandle,float fWidthInMeters) + { + EVROverlayError result = FnTable.SetOverlayWidthInMeters(ulOverlayHandle,fWidthInMeters); + return result; + } + public EVROverlayError GetOverlayWidthInMeters(ulong ulOverlayHandle,ref float pfWidthInMeters) + { + pfWidthInMeters = 0; + EVROverlayError result = FnTable.GetOverlayWidthInMeters(ulOverlayHandle,ref pfWidthInMeters); + return result; + } + public EVROverlayError SetOverlayAutoCurveDistanceRangeInMeters(ulong ulOverlayHandle,float fMinDistanceInMeters,float fMaxDistanceInMeters) + { + EVROverlayError result = FnTable.SetOverlayAutoCurveDistanceRangeInMeters(ulOverlayHandle,fMinDistanceInMeters,fMaxDistanceInMeters); + return result; + } + public EVROverlayError GetOverlayAutoCurveDistanceRangeInMeters(ulong ulOverlayHandle,ref float pfMinDistanceInMeters,ref float pfMaxDistanceInMeters) + { + pfMinDistanceInMeters = 0; + pfMaxDistanceInMeters = 0; + EVROverlayError result = FnTable.GetOverlayAutoCurveDistanceRangeInMeters(ulOverlayHandle,ref pfMinDistanceInMeters,ref pfMaxDistanceInMeters); + return result; + } + public EVROverlayError SetOverlayTextureColorSpace(ulong ulOverlayHandle,EColorSpace eTextureColorSpace) + { + EVROverlayError result = FnTable.SetOverlayTextureColorSpace(ulOverlayHandle,eTextureColorSpace); + return result; + } + public EVROverlayError GetOverlayTextureColorSpace(ulong ulOverlayHandle,ref EColorSpace peTextureColorSpace) + { + EVROverlayError result = FnTable.GetOverlayTextureColorSpace(ulOverlayHandle,ref peTextureColorSpace); + return result; + } + public EVROverlayError SetOverlayTextureBounds(ulong ulOverlayHandle,ref VRTextureBounds_t pOverlayTextureBounds) + { + EVROverlayError result = FnTable.SetOverlayTextureBounds(ulOverlayHandle,ref pOverlayTextureBounds); + return result; + } + public EVROverlayError GetOverlayTextureBounds(ulong ulOverlayHandle,ref VRTextureBounds_t pOverlayTextureBounds) + { + EVROverlayError result = FnTable.GetOverlayTextureBounds(ulOverlayHandle,ref pOverlayTextureBounds); + return result; + } + public uint GetOverlayRenderModel(ulong ulOverlayHandle,string pchValue,uint unBufferSize,ref HmdColor_t pColor,ref EVROverlayError pError) + { + uint result = FnTable.GetOverlayRenderModel(ulOverlayHandle,pchValue,unBufferSize,ref pColor,ref pError); + return result; + } + public EVROverlayError SetOverlayRenderModel(ulong ulOverlayHandle,string pchRenderModel,ref HmdColor_t pColor) + { + EVROverlayError result = FnTable.SetOverlayRenderModel(ulOverlayHandle,pchRenderModel,ref pColor); + return result; + } + public EVROverlayError GetOverlayTransformType(ulong ulOverlayHandle,ref VROverlayTransformType peTransformType) + { + EVROverlayError result = FnTable.GetOverlayTransformType(ulOverlayHandle,ref peTransformType); + return result; + } + public EVROverlayError SetOverlayTransformAbsolute(ulong ulOverlayHandle,ETrackingUniverseOrigin eTrackingOrigin,ref HmdMatrix34_t pmatTrackingOriginToOverlayTransform) + { + EVROverlayError result = FnTable.SetOverlayTransformAbsolute(ulOverlayHandle,eTrackingOrigin,ref pmatTrackingOriginToOverlayTransform); + return result; + } + public EVROverlayError GetOverlayTransformAbsolute(ulong ulOverlayHandle,ref ETrackingUniverseOrigin peTrackingOrigin,ref HmdMatrix34_t pmatTrackingOriginToOverlayTransform) + { + EVROverlayError result = FnTable.GetOverlayTransformAbsolute(ulOverlayHandle,ref peTrackingOrigin,ref pmatTrackingOriginToOverlayTransform); + return result; + } + public EVROverlayError SetOverlayTransformTrackedDeviceRelative(ulong ulOverlayHandle,uint unTrackedDevice,ref HmdMatrix34_t pmatTrackedDeviceToOverlayTransform) + { + EVROverlayError result = FnTable.SetOverlayTransformTrackedDeviceRelative(ulOverlayHandle,unTrackedDevice,ref pmatTrackedDeviceToOverlayTransform); + return result; + } + public EVROverlayError GetOverlayTransformTrackedDeviceRelative(ulong ulOverlayHandle,ref uint punTrackedDevice,ref HmdMatrix34_t pmatTrackedDeviceToOverlayTransform) + { + punTrackedDevice = 0; + EVROverlayError result = FnTable.GetOverlayTransformTrackedDeviceRelative(ulOverlayHandle,ref punTrackedDevice,ref pmatTrackedDeviceToOverlayTransform); + return result; + } + public EVROverlayError SetOverlayTransformTrackedDeviceComponent(ulong ulOverlayHandle,uint unDeviceIndex,string pchComponentName) + { + EVROverlayError result = FnTable.SetOverlayTransformTrackedDeviceComponent(ulOverlayHandle,unDeviceIndex,pchComponentName); + return result; + } + public EVROverlayError GetOverlayTransformTrackedDeviceComponent(ulong ulOverlayHandle,ref uint punDeviceIndex,string pchComponentName,uint unComponentNameSize) + { + punDeviceIndex = 0; + EVROverlayError result = FnTable.GetOverlayTransformTrackedDeviceComponent(ulOverlayHandle,ref punDeviceIndex,pchComponentName,unComponentNameSize); + return result; + } + public EVROverlayError GetOverlayTransformOverlayRelative(ulong ulOverlayHandle,ref ulong ulOverlayHandleParent,ref HmdMatrix34_t pmatParentOverlayToOverlayTransform) + { + ulOverlayHandleParent = 0; + EVROverlayError result = FnTable.GetOverlayTransformOverlayRelative(ulOverlayHandle,ref ulOverlayHandleParent,ref pmatParentOverlayToOverlayTransform); + return result; + } + public EVROverlayError SetOverlayTransformOverlayRelative(ulong ulOverlayHandle,ulong ulOverlayHandleParent,ref HmdMatrix34_t pmatParentOverlayToOverlayTransform) + { + EVROverlayError result = FnTable.SetOverlayTransformOverlayRelative(ulOverlayHandle,ulOverlayHandleParent,ref pmatParentOverlayToOverlayTransform); + return result; + } + public EVROverlayError ShowOverlay(ulong ulOverlayHandle) + { + EVROverlayError result = FnTable.ShowOverlay(ulOverlayHandle); + return result; + } + public EVROverlayError HideOverlay(ulong ulOverlayHandle) + { + EVROverlayError result = FnTable.HideOverlay(ulOverlayHandle); + return result; + } + public bool IsOverlayVisible(ulong ulOverlayHandle) + { + bool result = FnTable.IsOverlayVisible(ulOverlayHandle); + return result; + } + public EVROverlayError GetTransformForOverlayCoordinates(ulong ulOverlayHandle,ETrackingUniverseOrigin eTrackingOrigin,HmdVector2_t coordinatesInOverlay,ref HmdMatrix34_t pmatTransform) + { + EVROverlayError result = FnTable.GetTransformForOverlayCoordinates(ulOverlayHandle,eTrackingOrigin,coordinatesInOverlay,ref pmatTransform); + return result; + } +// This is a terrible hack to workaround the fact that VRControllerState_t and VREvent_t were +// originally mis-compiled with the wrong packing for Linux and OSX. + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _PollNextOverlayEventPacked(ulong ulOverlayHandle,ref VREvent_t_Packed pEvent,uint uncbVREvent); + [StructLayout(LayoutKind.Explicit)] + struct PollNextOverlayEventUnion + { + [FieldOffset(0)] + public IVROverlay._PollNextOverlayEvent pPollNextOverlayEvent; + [FieldOffset(0)] + public _PollNextOverlayEventPacked pPollNextOverlayEventPacked; + } + public bool PollNextOverlayEvent(ulong ulOverlayHandle,ref VREvent_t pEvent,uint uncbVREvent) + { + if ((System.Environment.OSVersion.Platform == System.PlatformID.MacOSX) || + (System.Environment.OSVersion.Platform == System.PlatformID.Unix)) + { + PollNextOverlayEventUnion u; + VREvent_t_Packed event_packed = new VREvent_t_Packed(); + u.pPollNextOverlayEventPacked = null; + u.pPollNextOverlayEvent = FnTable.PollNextOverlayEvent; + bool packed_result = u.pPollNextOverlayEventPacked(ulOverlayHandle,ref event_packed,(uint)System.Runtime.InteropServices.Marshal.SizeOf(typeof(VREvent_t_Packed))); + + event_packed.Unpack(ref pEvent); + return packed_result; + } + bool result = FnTable.PollNextOverlayEvent(ulOverlayHandle,ref pEvent,uncbVREvent); + return result; + } + public EVROverlayError GetOverlayInputMethod(ulong ulOverlayHandle,ref VROverlayInputMethod peInputMethod) + { + EVROverlayError result = FnTable.GetOverlayInputMethod(ulOverlayHandle,ref peInputMethod); + return result; + } + public EVROverlayError SetOverlayInputMethod(ulong ulOverlayHandle,VROverlayInputMethod eInputMethod) + { + EVROverlayError result = FnTable.SetOverlayInputMethod(ulOverlayHandle,eInputMethod); + return result; + } + public EVROverlayError GetOverlayMouseScale(ulong ulOverlayHandle,ref HmdVector2_t pvecMouseScale) + { + EVROverlayError result = FnTable.GetOverlayMouseScale(ulOverlayHandle,ref pvecMouseScale); + return result; + } + public EVROverlayError SetOverlayMouseScale(ulong ulOverlayHandle,ref HmdVector2_t pvecMouseScale) + { + EVROverlayError result = FnTable.SetOverlayMouseScale(ulOverlayHandle,ref pvecMouseScale); + return result; + } + public bool ComputeOverlayIntersection(ulong ulOverlayHandle,ref VROverlayIntersectionParams_t pParams,ref VROverlayIntersectionResults_t pResults) + { + bool result = FnTable.ComputeOverlayIntersection(ulOverlayHandle,ref pParams,ref pResults); + return result; + } + public bool HandleControllerOverlayInteractionAsMouse(ulong ulOverlayHandle,uint unControllerDeviceIndex) + { + bool result = FnTable.HandleControllerOverlayInteractionAsMouse(ulOverlayHandle,unControllerDeviceIndex); + return result; + } + public bool IsHoverTargetOverlay(ulong ulOverlayHandle) + { + bool result = FnTable.IsHoverTargetOverlay(ulOverlayHandle); + return result; + } + public ulong GetGamepadFocusOverlay() + { + ulong result = FnTable.GetGamepadFocusOverlay(); + return result; + } + public EVROverlayError SetGamepadFocusOverlay(ulong ulNewFocusOverlay) + { + EVROverlayError result = FnTable.SetGamepadFocusOverlay(ulNewFocusOverlay); + return result; + } + public EVROverlayError SetOverlayNeighbor(EOverlayDirection eDirection,ulong ulFrom,ulong ulTo) + { + EVROverlayError result = FnTable.SetOverlayNeighbor(eDirection,ulFrom,ulTo); + return result; + } + public EVROverlayError MoveGamepadFocusToNeighbor(EOverlayDirection eDirection,ulong ulFrom) + { + EVROverlayError result = FnTable.MoveGamepadFocusToNeighbor(eDirection,ulFrom); + return result; + } + public EVROverlayError SetOverlayTexture(ulong ulOverlayHandle,ref Texture_t pTexture) + { + EVROverlayError result = FnTable.SetOverlayTexture(ulOverlayHandle,ref pTexture); + return result; + } + public EVROverlayError ClearOverlayTexture(ulong ulOverlayHandle) + { + EVROverlayError result = FnTable.ClearOverlayTexture(ulOverlayHandle); + return result; + } + public EVROverlayError SetOverlayRaw(ulong ulOverlayHandle,IntPtr pvBuffer,uint unWidth,uint unHeight,uint unDepth) + { + EVROverlayError result = FnTable.SetOverlayRaw(ulOverlayHandle,pvBuffer,unWidth,unHeight,unDepth); + return result; + } + public EVROverlayError SetOverlayFromFile(ulong ulOverlayHandle,string pchFilePath) + { + EVROverlayError result = FnTable.SetOverlayFromFile(ulOverlayHandle,pchFilePath); + return result; + } + public EVROverlayError GetOverlayTexture(ulong ulOverlayHandle,ref IntPtr pNativeTextureHandle,IntPtr pNativeTextureRef,ref uint pWidth,ref uint pHeight,ref uint pNativeFormat,ref ETextureType pAPIType,ref EColorSpace pColorSpace,ref VRTextureBounds_t pTextureBounds) + { + pWidth = 0; + pHeight = 0; + pNativeFormat = 0; + EVROverlayError result = FnTable.GetOverlayTexture(ulOverlayHandle,ref pNativeTextureHandle,pNativeTextureRef,ref pWidth,ref pHeight,ref pNativeFormat,ref pAPIType,ref pColorSpace,ref pTextureBounds); + return result; + } + public EVROverlayError ReleaseNativeOverlayHandle(ulong ulOverlayHandle,IntPtr pNativeTextureHandle) + { + EVROverlayError result = FnTable.ReleaseNativeOverlayHandle(ulOverlayHandle,pNativeTextureHandle); + return result; + } + public EVROverlayError GetOverlayTextureSize(ulong ulOverlayHandle,ref uint pWidth,ref uint pHeight) + { + pWidth = 0; + pHeight = 0; + EVROverlayError result = FnTable.GetOverlayTextureSize(ulOverlayHandle,ref pWidth,ref pHeight); + return result; + } + public EVROverlayError CreateDashboardOverlay(string pchOverlayKey,string pchOverlayFriendlyName,ref ulong pMainHandle,ref ulong pThumbnailHandle) + { + pMainHandle = 0; + pThumbnailHandle = 0; + EVROverlayError result = FnTable.CreateDashboardOverlay(pchOverlayKey,pchOverlayFriendlyName,ref pMainHandle,ref pThumbnailHandle); + return result; + } + public bool IsDashboardVisible() + { + bool result = FnTable.IsDashboardVisible(); + return result; + } + public bool IsActiveDashboardOverlay(ulong ulOverlayHandle) + { + bool result = FnTable.IsActiveDashboardOverlay(ulOverlayHandle); + return result; + } + public EVROverlayError SetDashboardOverlaySceneProcess(ulong ulOverlayHandle,uint unProcessId) + { + EVROverlayError result = FnTable.SetDashboardOverlaySceneProcess(ulOverlayHandle,unProcessId); + return result; + } + public EVROverlayError GetDashboardOverlaySceneProcess(ulong ulOverlayHandle,ref uint punProcessId) + { + punProcessId = 0; + EVROverlayError result = FnTable.GetDashboardOverlaySceneProcess(ulOverlayHandle,ref punProcessId); + return result; + } + public void ShowDashboard(string pchOverlayToShow) + { + FnTable.ShowDashboard(pchOverlayToShow); + } + public uint GetPrimaryDashboardDevice() + { + uint result = FnTable.GetPrimaryDashboardDevice(); + return result; + } + public EVROverlayError ShowKeyboard(int eInputMode,int eLineInputMode,string pchDescription,uint unCharMax,string pchExistingText,bool bUseMinimalMode,ulong uUserValue) + { + EVROverlayError result = FnTable.ShowKeyboard(eInputMode,eLineInputMode,pchDescription,unCharMax,pchExistingText,bUseMinimalMode,uUserValue); + return result; + } + public EVROverlayError ShowKeyboardForOverlay(ulong ulOverlayHandle,int eInputMode,int eLineInputMode,string pchDescription,uint unCharMax,string pchExistingText,bool bUseMinimalMode,ulong uUserValue) + { + EVROverlayError result = FnTable.ShowKeyboardForOverlay(ulOverlayHandle,eInputMode,eLineInputMode,pchDescription,unCharMax,pchExistingText,bUseMinimalMode,uUserValue); + return result; + } + public uint GetKeyboardText(System.Text.StringBuilder pchText,uint cchText) + { + uint result = FnTable.GetKeyboardText(pchText,cchText); + return result; + } + public void HideKeyboard() + { + FnTable.HideKeyboard(); + } + public void SetKeyboardTransformAbsolute(ETrackingUniverseOrigin eTrackingOrigin,ref HmdMatrix34_t pmatTrackingOriginToKeyboardTransform) + { + FnTable.SetKeyboardTransformAbsolute(eTrackingOrigin,ref pmatTrackingOriginToKeyboardTransform); + } + public void SetKeyboardPositionForOverlay(ulong ulOverlayHandle,HmdRect2_t avoidRect) + { + FnTable.SetKeyboardPositionForOverlay(ulOverlayHandle,avoidRect); + } + public EVROverlayError SetOverlayIntersectionMask(ulong ulOverlayHandle,ref VROverlayIntersectionMaskPrimitive_t pMaskPrimitives,uint unNumMaskPrimitives,uint unPrimitiveSize) + { + EVROverlayError result = FnTable.SetOverlayIntersectionMask(ulOverlayHandle,ref pMaskPrimitives,unNumMaskPrimitives,unPrimitiveSize); + return result; + } + public EVROverlayError GetOverlayFlags(ulong ulOverlayHandle,ref uint pFlags) + { + pFlags = 0; + EVROverlayError result = FnTable.GetOverlayFlags(ulOverlayHandle,ref pFlags); + return result; + } + public VRMessageOverlayResponse ShowMessageOverlay(string pchText,string pchCaption,string pchButton0Text,string pchButton1Text,string pchButton2Text,string pchButton3Text) + { + VRMessageOverlayResponse result = FnTable.ShowMessageOverlay(pchText,pchCaption,pchButton0Text,pchButton1Text,pchButton2Text,pchButton3Text); + return result; + } +} + + +public class CVRRenderModels +{ + IVRRenderModels FnTable; + internal CVRRenderModels(IntPtr pInterface) + { + FnTable = (IVRRenderModels)Marshal.PtrToStructure(pInterface, typeof(IVRRenderModels)); + } + public EVRRenderModelError LoadRenderModel_Async(string pchRenderModelName,ref IntPtr ppRenderModel) + { + EVRRenderModelError result = FnTable.LoadRenderModel_Async(pchRenderModelName,ref ppRenderModel); + return result; + } + public void FreeRenderModel(IntPtr pRenderModel) + { + FnTable.FreeRenderModel(pRenderModel); + } + public EVRRenderModelError LoadTexture_Async(int textureId,ref IntPtr ppTexture) + { + EVRRenderModelError result = FnTable.LoadTexture_Async(textureId,ref ppTexture); + return result; + } + public void FreeTexture(IntPtr pTexture) + { + FnTable.FreeTexture(pTexture); + } + public EVRRenderModelError LoadTextureD3D11_Async(int textureId,IntPtr pD3D11Device,ref IntPtr ppD3D11Texture2D) + { + EVRRenderModelError result = FnTable.LoadTextureD3D11_Async(textureId,pD3D11Device,ref ppD3D11Texture2D); + return result; + } + public EVRRenderModelError LoadIntoTextureD3D11_Async(int textureId,IntPtr pDstTexture) + { + EVRRenderModelError result = FnTable.LoadIntoTextureD3D11_Async(textureId,pDstTexture); + return result; + } + public void FreeTextureD3D11(IntPtr pD3D11Texture2D) + { + FnTable.FreeTextureD3D11(pD3D11Texture2D); + } + public uint GetRenderModelName(uint unRenderModelIndex,System.Text.StringBuilder pchRenderModelName,uint unRenderModelNameLen) + { + uint result = FnTable.GetRenderModelName(unRenderModelIndex,pchRenderModelName,unRenderModelNameLen); + return result; + } + public uint GetRenderModelCount() + { + uint result = FnTable.GetRenderModelCount(); + return result; + } + public uint GetComponentCount(string pchRenderModelName) + { + uint result = FnTable.GetComponentCount(pchRenderModelName); + return result; + } + public uint GetComponentName(string pchRenderModelName,uint unComponentIndex,System.Text.StringBuilder pchComponentName,uint unComponentNameLen) + { + uint result = FnTable.GetComponentName(pchRenderModelName,unComponentIndex,pchComponentName,unComponentNameLen); + return result; + } + public ulong GetComponentButtonMask(string pchRenderModelName,string pchComponentName) + { + ulong result = FnTable.GetComponentButtonMask(pchRenderModelName,pchComponentName); + return result; + } + public uint GetComponentRenderModelName(string pchRenderModelName,string pchComponentName,System.Text.StringBuilder pchComponentRenderModelName,uint unComponentRenderModelNameLen) + { + uint result = FnTable.GetComponentRenderModelName(pchRenderModelName,pchComponentName,pchComponentRenderModelName,unComponentRenderModelNameLen); + return result; + } +// This is a terrible hack to workaround the fact that VRControllerState_t and VREvent_t were +// originally mis-compiled with the wrong packing for Linux and OSX. + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetComponentStatePacked(string pchRenderModelName,string pchComponentName,ref VRControllerState_t_Packed pControllerState,ref RenderModel_ControllerMode_State_t pState,ref RenderModel_ComponentState_t pComponentState); + [StructLayout(LayoutKind.Explicit)] + struct GetComponentStateUnion + { + [FieldOffset(0)] + public IVRRenderModels._GetComponentState pGetComponentState; + [FieldOffset(0)] + public _GetComponentStatePacked pGetComponentStatePacked; + } + public bool GetComponentState(string pchRenderModelName,string pchComponentName,ref VRControllerState_t pControllerState,ref RenderModel_ControllerMode_State_t pState,ref RenderModel_ComponentState_t pComponentState) + { + if ((System.Environment.OSVersion.Platform == System.PlatformID.MacOSX) || + (System.Environment.OSVersion.Platform == System.PlatformID.Unix)) + { + GetComponentStateUnion u; + VRControllerState_t_Packed state_packed = new VRControllerState_t_Packed(pControllerState); + u.pGetComponentStatePacked = null; + u.pGetComponentState = FnTable.GetComponentState; + bool packed_result = u.pGetComponentStatePacked(pchRenderModelName,pchComponentName,ref state_packed,ref pState,ref pComponentState); + + state_packed.Unpack(ref pControllerState); + return packed_result; + } + bool result = FnTable.GetComponentState(pchRenderModelName,pchComponentName,ref pControllerState,ref pState,ref pComponentState); + return result; + } + public bool RenderModelHasComponent(string pchRenderModelName,string pchComponentName) + { + bool result = FnTable.RenderModelHasComponent(pchRenderModelName,pchComponentName); + return result; + } + public uint GetRenderModelThumbnailURL(string pchRenderModelName,System.Text.StringBuilder pchThumbnailURL,uint unThumbnailURLLen,ref EVRRenderModelError peError) + { + uint result = FnTable.GetRenderModelThumbnailURL(pchRenderModelName,pchThumbnailURL,unThumbnailURLLen,ref peError); + return result; + } + public uint GetRenderModelOriginalPath(string pchRenderModelName,System.Text.StringBuilder pchOriginalPath,uint unOriginalPathLen,ref EVRRenderModelError peError) + { + uint result = FnTable.GetRenderModelOriginalPath(pchRenderModelName,pchOriginalPath,unOriginalPathLen,ref peError); + return result; + } + public string GetRenderModelErrorNameFromEnum(EVRRenderModelError error) + { + IntPtr result = FnTable.GetRenderModelErrorNameFromEnum(error); + return Marshal.PtrToStringAnsi(result); + } +} + + +public class CVRNotifications +{ + IVRNotifications FnTable; + internal CVRNotifications(IntPtr pInterface) + { + FnTable = (IVRNotifications)Marshal.PtrToStructure(pInterface, typeof(IVRNotifications)); + } + public EVRNotificationError CreateNotification(ulong ulOverlayHandle,ulong ulUserValue,EVRNotificationType type,string pchText,EVRNotificationStyle style,ref NotificationBitmap_t pImage,ref uint pNotificationId) + { + pNotificationId = 0; + EVRNotificationError result = FnTable.CreateNotification(ulOverlayHandle,ulUserValue,type,pchText,style,ref pImage,ref pNotificationId); + return result; + } + public EVRNotificationError RemoveNotification(uint notificationId) + { + EVRNotificationError result = FnTable.RemoveNotification(notificationId); + return result; + } +} + + +public class CVRSettings +{ + IVRSettings FnTable; + internal CVRSettings(IntPtr pInterface) + { + FnTable = (IVRSettings)Marshal.PtrToStructure(pInterface, typeof(IVRSettings)); + } + public string GetSettingsErrorNameFromEnum(EVRSettingsError eError) + { + IntPtr result = FnTable.GetSettingsErrorNameFromEnum(eError); + return Marshal.PtrToStringAnsi(result); + } + public bool Sync(bool bForce,ref EVRSettingsError peError) + { + bool result = FnTable.Sync(bForce,ref peError); + return result; + } + public void SetBool(string pchSection,string pchSettingsKey,bool bValue,ref EVRSettingsError peError) + { + FnTable.SetBool(pchSection,pchSettingsKey,bValue,ref peError); + } + public void SetInt32(string pchSection,string pchSettingsKey,int nValue,ref EVRSettingsError peError) + { + FnTable.SetInt32(pchSection,pchSettingsKey,nValue,ref peError); + } + public void SetFloat(string pchSection,string pchSettingsKey,float flValue,ref EVRSettingsError peError) + { + FnTable.SetFloat(pchSection,pchSettingsKey,flValue,ref peError); + } + public void SetString(string pchSection,string pchSettingsKey,string pchValue,ref EVRSettingsError peError) + { + FnTable.SetString(pchSection,pchSettingsKey,pchValue,ref peError); + } + public bool GetBool(string pchSection,string pchSettingsKey,ref EVRSettingsError peError) + { + bool result = FnTable.GetBool(pchSection,pchSettingsKey,ref peError); + return result; + } + public int GetInt32(string pchSection,string pchSettingsKey,ref EVRSettingsError peError) + { + int result = FnTable.GetInt32(pchSection,pchSettingsKey,ref peError); + return result; + } + public float GetFloat(string pchSection,string pchSettingsKey,ref EVRSettingsError peError) + { + float result = FnTable.GetFloat(pchSection,pchSettingsKey,ref peError); + return result; + } + public void GetString(string pchSection,string pchSettingsKey,System.Text.StringBuilder pchValue,uint unValueLen,ref EVRSettingsError peError) + { + FnTable.GetString(pchSection,pchSettingsKey,pchValue,unValueLen,ref peError); + } + public void RemoveSection(string pchSection,ref EVRSettingsError peError) + { + FnTable.RemoveSection(pchSection,ref peError); + } + public void RemoveKeyInSection(string pchSection,string pchSettingsKey,ref EVRSettingsError peError) + { + FnTable.RemoveKeyInSection(pchSection,pchSettingsKey,ref peError); + } +} + + +public class CVRScreenshots +{ + IVRScreenshots FnTable; + internal CVRScreenshots(IntPtr pInterface) + { + FnTable = (IVRScreenshots)Marshal.PtrToStructure(pInterface, typeof(IVRScreenshots)); + } + public EVRScreenshotError RequestScreenshot(ref uint pOutScreenshotHandle,EVRScreenshotType type,string pchPreviewFilename,string pchVRFilename) + { + pOutScreenshotHandle = 0; + EVRScreenshotError result = FnTable.RequestScreenshot(ref pOutScreenshotHandle,type,pchPreviewFilename,pchVRFilename); + return result; + } + public EVRScreenshotError HookScreenshot(EVRScreenshotType [] pSupportedTypes) + { + EVRScreenshotError result = FnTable.HookScreenshot(pSupportedTypes,(int) pSupportedTypes.Length); + return result; + } + public EVRScreenshotType GetScreenshotPropertyType(uint screenshotHandle,ref EVRScreenshotError pError) + { + EVRScreenshotType result = FnTable.GetScreenshotPropertyType(screenshotHandle,ref pError); + return result; + } + public uint GetScreenshotPropertyFilename(uint screenshotHandle,EVRScreenshotPropertyFilenames filenameType,System.Text.StringBuilder pchFilename,uint cchFilename,ref EVRScreenshotError pError) + { + uint result = FnTable.GetScreenshotPropertyFilename(screenshotHandle,filenameType,pchFilename,cchFilename,ref pError); + return result; + } + public EVRScreenshotError UpdateScreenshotProgress(uint screenshotHandle,float flProgress) + { + EVRScreenshotError result = FnTable.UpdateScreenshotProgress(screenshotHandle,flProgress); + return result; + } + public EVRScreenshotError TakeStereoScreenshot(ref uint pOutScreenshotHandle,string pchPreviewFilename,string pchVRFilename) + { + pOutScreenshotHandle = 0; + EVRScreenshotError result = FnTable.TakeStereoScreenshot(ref pOutScreenshotHandle,pchPreviewFilename,pchVRFilename); + return result; + } + public EVRScreenshotError SubmitScreenshot(uint screenshotHandle,EVRScreenshotType type,string pchSourcePreviewFilename,string pchSourceVRFilename) + { + EVRScreenshotError result = FnTable.SubmitScreenshot(screenshotHandle,type,pchSourcePreviewFilename,pchSourceVRFilename); + return result; + } +} + + +public class CVRResources +{ + IVRResources FnTable; + internal CVRResources(IntPtr pInterface) + { + FnTable = (IVRResources)Marshal.PtrToStructure(pInterface, typeof(IVRResources)); + } + public uint LoadSharedResource(string pchResourceName,string pchBuffer,uint unBufferLen) + { + uint result = FnTable.LoadSharedResource(pchResourceName,pchBuffer,unBufferLen); + return result; + } + public uint GetResourceFullPath(string pchResourceName,string pchResourceTypeDirectory,string pchPathBuffer,uint unBufferLen) + { + uint result = FnTable.GetResourceFullPath(pchResourceName,pchResourceTypeDirectory,pchPathBuffer,unBufferLen); + return result; + } +} + + +public class CVRDriverManager +{ + IVRDriverManager FnTable; + internal CVRDriverManager(IntPtr pInterface) + { + FnTable = (IVRDriverManager)Marshal.PtrToStructure(pInterface, typeof(IVRDriverManager)); + } + public uint GetDriverCount() + { + uint result = FnTable.GetDriverCount(); + return result; + } + public uint GetDriverName(uint nDriver,System.Text.StringBuilder pchValue,uint unBufferSize) + { + uint result = FnTable.GetDriverName(nDriver,pchValue,unBufferSize); + return result; + } +} + + +public class OpenVRInterop +{ + [DllImportAttribute("openvr_api", EntryPoint = "VR_InitInternal", CallingConvention = CallingConvention.Cdecl)] + internal static extern uint InitInternal(ref EVRInitError peError, EVRApplicationType eApplicationType); + [DllImportAttribute("openvr_api", EntryPoint = "VR_ShutdownInternal", CallingConvention = CallingConvention.Cdecl)] + internal static extern void ShutdownInternal(); + [DllImportAttribute("openvr_api", EntryPoint = "VR_IsHmdPresent", CallingConvention = CallingConvention.Cdecl)] + internal static extern bool IsHmdPresent(); + [DllImportAttribute("openvr_api", EntryPoint = "VR_IsRuntimeInstalled", CallingConvention = CallingConvention.Cdecl)] + internal static extern bool IsRuntimeInstalled(); + [DllImportAttribute("openvr_api", EntryPoint = "VR_GetStringForHmdError", CallingConvention = CallingConvention.Cdecl)] + internal static extern IntPtr GetStringForHmdError(EVRInitError error); + [DllImportAttribute("openvr_api", EntryPoint = "VR_GetGenericInterface", CallingConvention = CallingConvention.Cdecl)] + internal static extern IntPtr GetGenericInterface([In, MarshalAs(UnmanagedType.LPStr)] string pchInterfaceVersion, ref EVRInitError peError); + [DllImportAttribute("openvr_api", EntryPoint = "VR_IsInterfaceVersionValid", CallingConvention = CallingConvention.Cdecl)] + internal static extern bool IsInterfaceVersionValid([In, MarshalAs(UnmanagedType.LPStr)] string pchInterfaceVersion); + [DllImportAttribute("openvr_api", EntryPoint = "VR_GetInitToken", CallingConvention = CallingConvention.Cdecl)] + internal static extern uint GetInitToken(); +} + + +public enum EVREye +{ + Eye_Left = 0, + Eye_Right = 1, +} +public enum ETextureType +{ + DirectX = 0, + OpenGL = 1, + Vulkan = 2, + IOSurface = 3, + DirectX12 = 4, +} +public enum EColorSpace +{ + Auto = 0, + Gamma = 1, + Linear = 2, +} +public enum ETrackingResult +{ + Uninitialized = 1, + Calibrating_InProgress = 100, + Calibrating_OutOfRange = 101, + Running_OK = 200, + Running_OutOfRange = 201, +} +public enum ETrackedDeviceClass +{ + Invalid = 0, + HMD = 1, + Controller = 2, + GenericTracker = 3, + TrackingReference = 4, + DisplayRedirect = 5, +} +public enum ETrackedControllerRole +{ + Invalid = 0, + LeftHand = 1, + RightHand = 2, +} +public enum ETrackingUniverseOrigin +{ + TrackingUniverseSeated = 0, + TrackingUniverseStanding = 1, + TrackingUniverseRawAndUncalibrated = 2, +} +public enum ETrackedDeviceProperty +{ + Prop_Invalid = 0, + Prop_TrackingSystemName_String = 1000, + Prop_ModelNumber_String = 1001, + Prop_SerialNumber_String = 1002, + Prop_RenderModelName_String = 1003, + Prop_WillDriftInYaw_Bool = 1004, + Prop_ManufacturerName_String = 1005, + Prop_TrackingFirmwareVersion_String = 1006, + Prop_HardwareRevision_String = 1007, + Prop_AllWirelessDongleDescriptions_String = 1008, + Prop_ConnectedWirelessDongle_String = 1009, + Prop_DeviceIsWireless_Bool = 1010, + Prop_DeviceIsCharging_Bool = 1011, + Prop_DeviceBatteryPercentage_Float = 1012, + Prop_StatusDisplayTransform_Matrix34 = 1013, + Prop_Firmware_UpdateAvailable_Bool = 1014, + Prop_Firmware_ManualUpdate_Bool = 1015, + Prop_Firmware_ManualUpdateURL_String = 1016, + Prop_HardwareRevision_Uint64 = 1017, + Prop_FirmwareVersion_Uint64 = 1018, + Prop_FPGAVersion_Uint64 = 1019, + Prop_VRCVersion_Uint64 = 1020, + Prop_RadioVersion_Uint64 = 1021, + Prop_DongleVersion_Uint64 = 1022, + Prop_BlockServerShutdown_Bool = 1023, + Prop_CanUnifyCoordinateSystemWithHmd_Bool = 1024, + Prop_ContainsProximitySensor_Bool = 1025, + Prop_DeviceProvidesBatteryStatus_Bool = 1026, + Prop_DeviceCanPowerOff_Bool = 1027, + Prop_Firmware_ProgrammingTarget_String = 1028, + Prop_DeviceClass_Int32 = 1029, + Prop_HasCamera_Bool = 1030, + Prop_DriverVersion_String = 1031, + Prop_Firmware_ForceUpdateRequired_Bool = 1032, + Prop_ViveSystemButtonFixRequired_Bool = 1033, + Prop_ParentDriver_Uint64 = 1034, + Prop_ResourceRoot_String = 1035, + Prop_ReportsTimeSinceVSync_Bool = 2000, + Prop_SecondsFromVsyncToPhotons_Float = 2001, + Prop_DisplayFrequency_Float = 2002, + Prop_UserIpdMeters_Float = 2003, + Prop_CurrentUniverseId_Uint64 = 2004, + Prop_PreviousUniverseId_Uint64 = 2005, + Prop_DisplayFirmwareVersion_Uint64 = 2006, + Prop_IsOnDesktop_Bool = 2007, + Prop_DisplayMCType_Int32 = 2008, + Prop_DisplayMCOffset_Float = 2009, + Prop_DisplayMCScale_Float = 2010, + Prop_EdidVendorID_Int32 = 2011, + Prop_DisplayMCImageLeft_String = 2012, + Prop_DisplayMCImageRight_String = 2013, + Prop_DisplayGCBlackClamp_Float = 2014, + Prop_EdidProductID_Int32 = 2015, + Prop_CameraToHeadTransform_Matrix34 = 2016, + Prop_DisplayGCType_Int32 = 2017, + Prop_DisplayGCOffset_Float = 2018, + Prop_DisplayGCScale_Float = 2019, + Prop_DisplayGCPrescale_Float = 2020, + Prop_DisplayGCImage_String = 2021, + Prop_LensCenterLeftU_Float = 2022, + Prop_LensCenterLeftV_Float = 2023, + Prop_LensCenterRightU_Float = 2024, + Prop_LensCenterRightV_Float = 2025, + Prop_UserHeadToEyeDepthMeters_Float = 2026, + Prop_CameraFirmwareVersion_Uint64 = 2027, + Prop_CameraFirmwareDescription_String = 2028, + Prop_DisplayFPGAVersion_Uint64 = 2029, + Prop_DisplayBootloaderVersion_Uint64 = 2030, + Prop_DisplayHardwareVersion_Uint64 = 2031, + Prop_AudioFirmwareVersion_Uint64 = 2032, + Prop_CameraCompatibilityMode_Int32 = 2033, + Prop_ScreenshotHorizontalFieldOfViewDegrees_Float = 2034, + Prop_ScreenshotVerticalFieldOfViewDegrees_Float = 2035, + Prop_DisplaySuppressed_Bool = 2036, + Prop_DisplayAllowNightMode_Bool = 2037, + Prop_DisplayMCImageWidth_Int32 = 2038, + Prop_DisplayMCImageHeight_Int32 = 2039, + Prop_DisplayMCImageNumChannels_Int32 = 2040, + Prop_DisplayMCImageData_Binary = 2041, + Prop_SecondsFromPhotonsToVblank_Float = 2042, + Prop_DriverDirectModeSendsVsyncEvents_Bool = 2043, + Prop_DisplayDebugMode_Bool = 2044, + Prop_GraphicsAdapterLuid_Uint64 = 2045, + Prop_AttachedDeviceId_String = 3000, + Prop_SupportedButtons_Uint64 = 3001, + Prop_Axis0Type_Int32 = 3002, + Prop_Axis1Type_Int32 = 3003, + Prop_Axis2Type_Int32 = 3004, + Prop_Axis3Type_Int32 = 3005, + Prop_Axis4Type_Int32 = 3006, + Prop_ControllerRoleHint_Int32 = 3007, + Prop_FieldOfViewLeftDegrees_Float = 4000, + Prop_FieldOfViewRightDegrees_Float = 4001, + Prop_FieldOfViewTopDegrees_Float = 4002, + Prop_FieldOfViewBottomDegrees_Float = 4003, + Prop_TrackingRangeMinimumMeters_Float = 4004, + Prop_TrackingRangeMaximumMeters_Float = 4005, + Prop_ModeLabel_String = 4006, + Prop_IconPathName_String = 5000, + Prop_NamedIconPathDeviceOff_String = 5001, + Prop_NamedIconPathDeviceSearching_String = 5002, + Prop_NamedIconPathDeviceSearchingAlert_String = 5003, + Prop_NamedIconPathDeviceReady_String = 5004, + Prop_NamedIconPathDeviceReadyAlert_String = 5005, + Prop_NamedIconPathDeviceNotReady_String = 5006, + Prop_NamedIconPathDeviceStandby_String = 5007, + Prop_NamedIconPathDeviceAlertLow_String = 5008, + Prop_DisplayHiddenArea_Binary_Start = 5100, + Prop_DisplayHiddenArea_Binary_End = 5150, + Prop_UserConfigPath_String = 6000, + Prop_InstallPath_String = 6001, + Prop_HasDisplayComponent_Bool = 6002, + Prop_HasControllerComponent_Bool = 6003, + Prop_HasCameraComponent_Bool = 6004, + Prop_HasDriverDirectModeComponent_Bool = 6005, + Prop_HasVirtualDisplayComponent_Bool = 6006, + Prop_VendorSpecific_Reserved_Start = 10000, + Prop_VendorSpecific_Reserved_End = 10999, +} +public enum ETrackedPropertyError +{ + TrackedProp_Success = 0, + TrackedProp_WrongDataType = 1, + TrackedProp_WrongDeviceClass = 2, + TrackedProp_BufferTooSmall = 3, + TrackedProp_UnknownProperty = 4, + TrackedProp_InvalidDevice = 5, + TrackedProp_CouldNotContactServer = 6, + TrackedProp_ValueNotProvidedByDevice = 7, + TrackedProp_StringExceedsMaximumLength = 8, + TrackedProp_NotYetAvailable = 9, + TrackedProp_PermissionDenied = 10, + TrackedProp_InvalidOperation = 11, +} +public enum EVRSubmitFlags +{ + Submit_Default = 0, + Submit_LensDistortionAlreadyApplied = 1, + Submit_GlRenderBuffer = 2, + Submit_Reserved = 4, +} +public enum EVRState +{ + Undefined = -1, + Off = 0, + Searching = 1, + Searching_Alert = 2, + Ready = 3, + Ready_Alert = 4, + NotReady = 5, + Standby = 6, + Ready_Alert_Low = 7, +} +public enum EVREventType +{ + VREvent_None = 0, + VREvent_TrackedDeviceActivated = 100, + VREvent_TrackedDeviceDeactivated = 101, + VREvent_TrackedDeviceUpdated = 102, + VREvent_TrackedDeviceUserInteractionStarted = 103, + VREvent_TrackedDeviceUserInteractionEnded = 104, + VREvent_IpdChanged = 105, + VREvent_EnterStandbyMode = 106, + VREvent_LeaveStandbyMode = 107, + VREvent_TrackedDeviceRoleChanged = 108, + VREvent_WatchdogWakeUpRequested = 109, + VREvent_LensDistortionChanged = 110, + VREvent_PropertyChanged = 111, + VREvent_ButtonPress = 200, + VREvent_ButtonUnpress = 201, + VREvent_ButtonTouch = 202, + VREvent_ButtonUntouch = 203, + VREvent_MouseMove = 300, + VREvent_MouseButtonDown = 301, + VREvent_MouseButtonUp = 302, + VREvent_FocusEnter = 303, + VREvent_FocusLeave = 304, + VREvent_Scroll = 305, + VREvent_TouchPadMove = 306, + VREvent_OverlayFocusChanged = 307, + VREvent_InputFocusCaptured = 400, + VREvent_InputFocusReleased = 401, + VREvent_SceneFocusLost = 402, + VREvent_SceneFocusGained = 403, + VREvent_SceneApplicationChanged = 404, + VREvent_SceneFocusChanged = 405, + VREvent_InputFocusChanged = 406, + VREvent_SceneApplicationSecondaryRenderingStarted = 407, + VREvent_HideRenderModels = 410, + VREvent_ShowRenderModels = 411, + VREvent_OverlayShown = 500, + VREvent_OverlayHidden = 501, + VREvent_DashboardActivated = 502, + VREvent_DashboardDeactivated = 503, + VREvent_DashboardThumbSelected = 504, + VREvent_DashboardRequested = 505, + VREvent_ResetDashboard = 506, + VREvent_RenderToast = 507, + VREvent_ImageLoaded = 508, + VREvent_ShowKeyboard = 509, + VREvent_HideKeyboard = 510, + VREvent_OverlayGamepadFocusGained = 511, + VREvent_OverlayGamepadFocusLost = 512, + VREvent_OverlaySharedTextureChanged = 513, + VREvent_DashboardGuideButtonDown = 514, + VREvent_DashboardGuideButtonUp = 515, + VREvent_ScreenshotTriggered = 516, + VREvent_ImageFailed = 517, + VREvent_DashboardOverlayCreated = 518, + VREvent_RequestScreenshot = 520, + VREvent_ScreenshotTaken = 521, + VREvent_ScreenshotFailed = 522, + VREvent_SubmitScreenshotToDashboard = 523, + VREvent_ScreenshotProgressToDashboard = 524, + VREvent_PrimaryDashboardDeviceChanged = 525, + VREvent_Notification_Shown = 600, + VREvent_Notification_Hidden = 601, + VREvent_Notification_BeginInteraction = 602, + VREvent_Notification_Destroyed = 603, + VREvent_Quit = 700, + VREvent_ProcessQuit = 701, + VREvent_QuitAborted_UserPrompt = 702, + VREvent_QuitAcknowledged = 703, + VREvent_DriverRequestedQuit = 704, + VREvent_ChaperoneDataHasChanged = 800, + VREvent_ChaperoneUniverseHasChanged = 801, + VREvent_ChaperoneTempDataHasChanged = 802, + VREvent_ChaperoneSettingsHaveChanged = 803, + VREvent_SeatedZeroPoseReset = 804, + VREvent_AudioSettingsHaveChanged = 820, + VREvent_BackgroundSettingHasChanged = 850, + VREvent_CameraSettingsHaveChanged = 851, + VREvent_ReprojectionSettingHasChanged = 852, + VREvent_ModelSkinSettingsHaveChanged = 853, + VREvent_EnvironmentSettingsHaveChanged = 854, + VREvent_PowerSettingsHaveChanged = 855, + VREvent_EnableHomeAppSettingsHaveChanged = 856, + VREvent_StatusUpdate = 900, + VREvent_MCImageUpdated = 1000, + VREvent_FirmwareUpdateStarted = 1100, + VREvent_FirmwareUpdateFinished = 1101, + VREvent_KeyboardClosed = 1200, + VREvent_KeyboardCharInput = 1201, + VREvent_KeyboardDone = 1202, + VREvent_ApplicationTransitionStarted = 1300, + VREvent_ApplicationTransitionAborted = 1301, + VREvent_ApplicationTransitionNewAppStarted = 1302, + VREvent_ApplicationListUpdated = 1303, + VREvent_ApplicationMimeTypeLoad = 1304, + VREvent_ApplicationTransitionNewAppLaunchComplete = 1305, + VREvent_ProcessConnected = 1306, + VREvent_ProcessDisconnected = 1307, + VREvent_Compositor_MirrorWindowShown = 1400, + VREvent_Compositor_MirrorWindowHidden = 1401, + VREvent_Compositor_ChaperoneBoundsShown = 1410, + VREvent_Compositor_ChaperoneBoundsHidden = 1411, + VREvent_TrackedCamera_StartVideoStream = 1500, + VREvent_TrackedCamera_StopVideoStream = 1501, + VREvent_TrackedCamera_PauseVideoStream = 1502, + VREvent_TrackedCamera_ResumeVideoStream = 1503, + VREvent_TrackedCamera_EditingSurface = 1550, + VREvent_PerformanceTest_EnableCapture = 1600, + VREvent_PerformanceTest_DisableCapture = 1601, + VREvent_PerformanceTest_FidelityLevel = 1602, + VREvent_MessageOverlay_Closed = 1650, + VREvent_VendorSpecific_Reserved_Start = 10000, + VREvent_VendorSpecific_Reserved_End = 19999, +} +public enum EDeviceActivityLevel +{ + k_EDeviceActivityLevel_Unknown = -1, + k_EDeviceActivityLevel_Idle = 0, + k_EDeviceActivityLevel_UserInteraction = 1, + k_EDeviceActivityLevel_UserInteraction_Timeout = 2, + k_EDeviceActivityLevel_Standby = 3, +} +public enum EVRButtonId +{ + k_EButton_System = 0, + k_EButton_ApplicationMenu = 1, + k_EButton_Grip = 2, + k_EButton_DPad_Left = 3, + k_EButton_DPad_Up = 4, + k_EButton_DPad_Right = 5, + k_EButton_DPad_Down = 6, + k_EButton_A = 7, + k_EButton_ProximitySensor = 31, + k_EButton_Axis0 = 32, + k_EButton_Axis1 = 33, + k_EButton_Axis2 = 34, + k_EButton_Axis3 = 35, + k_EButton_Axis4 = 36, + k_EButton_SteamVR_Touchpad = 32, + k_EButton_SteamVR_Trigger = 33, + k_EButton_Dashboard_Back = 2, + k_EButton_Max = 64, +} +public enum EVRMouseButton +{ + Left = 1, + Right = 2, + Middle = 4, +} +public enum EHiddenAreaMeshType +{ + k_eHiddenAreaMesh_Standard = 0, + k_eHiddenAreaMesh_Inverse = 1, + k_eHiddenAreaMesh_LineLoop = 2, + k_eHiddenAreaMesh_Max = 3, +} +public enum EVRControllerAxisType +{ + k_eControllerAxis_None = 0, + k_eControllerAxis_TrackPad = 1, + k_eControllerAxis_Joystick = 2, + k_eControllerAxis_Trigger = 3, +} +public enum EVRControllerEventOutputType +{ + ControllerEventOutput_OSEvents = 0, + ControllerEventOutput_VREvents = 1, +} +public enum ECollisionBoundsStyle +{ + COLLISION_BOUNDS_STYLE_BEGINNER = 0, + COLLISION_BOUNDS_STYLE_INTERMEDIATE = 1, + COLLISION_BOUNDS_STYLE_SQUARES = 2, + COLLISION_BOUNDS_STYLE_ADVANCED = 3, + COLLISION_BOUNDS_STYLE_NONE = 4, + COLLISION_BOUNDS_STYLE_COUNT = 5, +} +public enum EVROverlayError +{ + None = 0, + UnknownOverlay = 10, + InvalidHandle = 11, + PermissionDenied = 12, + OverlayLimitExceeded = 13, + WrongVisibilityType = 14, + KeyTooLong = 15, + NameTooLong = 16, + KeyInUse = 17, + WrongTransformType = 18, + InvalidTrackedDevice = 19, + InvalidParameter = 20, + ThumbnailCantBeDestroyed = 21, + ArrayTooSmall = 22, + RequestFailed = 23, + InvalidTexture = 24, + UnableToLoadFile = 25, + KeyboardAlreadyInUse = 26, + NoNeighbor = 27, + TooManyMaskPrimitives = 29, + BadMaskPrimitive = 30, +} +public enum EVRApplicationType +{ + VRApplication_Other = 0, + VRApplication_Scene = 1, + VRApplication_Overlay = 2, + VRApplication_Background = 3, + VRApplication_Utility = 4, + VRApplication_VRMonitor = 5, + VRApplication_SteamWatchdog = 6, + VRApplication_Bootstrapper = 7, + VRApplication_Max = 8, +} +public enum EVRFirmwareError +{ + None = 0, + Success = 1, + Fail = 2, +} +public enum EVRNotificationError +{ + OK = 0, + InvalidNotificationId = 100, + NotificationQueueFull = 101, + InvalidOverlayHandle = 102, + SystemWithUserValueAlreadyExists = 103, +} +public enum EVRInitError +{ + None = 0, + Unknown = 1, + Init_InstallationNotFound = 100, + Init_InstallationCorrupt = 101, + Init_VRClientDLLNotFound = 102, + Init_FileNotFound = 103, + Init_FactoryNotFound = 104, + Init_InterfaceNotFound = 105, + Init_InvalidInterface = 106, + Init_UserConfigDirectoryInvalid = 107, + Init_HmdNotFound = 108, + Init_NotInitialized = 109, + Init_PathRegistryNotFound = 110, + Init_NoConfigPath = 111, + Init_NoLogPath = 112, + Init_PathRegistryNotWritable = 113, + Init_AppInfoInitFailed = 114, + Init_Retry = 115, + Init_InitCanceledByUser = 116, + Init_AnotherAppLaunching = 117, + Init_SettingsInitFailed = 118, + Init_ShuttingDown = 119, + Init_TooManyObjects = 120, + Init_NoServerForBackgroundApp = 121, + Init_NotSupportedWithCompositor = 122, + Init_NotAvailableToUtilityApps = 123, + Init_Internal = 124, + Init_HmdDriverIdIsNone = 125, + Init_HmdNotFoundPresenceFailed = 126, + Init_VRMonitorNotFound = 127, + Init_VRMonitorStartupFailed = 128, + Init_LowPowerWatchdogNotSupported = 129, + Init_InvalidApplicationType = 130, + Init_NotAvailableToWatchdogApps = 131, + Init_WatchdogDisabledInSettings = 132, + Init_VRDashboardNotFound = 133, + Init_VRDashboardStartupFailed = 134, + Init_VRHomeNotFound = 135, + Init_VRHomeStartupFailed = 136, + Driver_Failed = 200, + Driver_Unknown = 201, + Driver_HmdUnknown = 202, + Driver_NotLoaded = 203, + Driver_RuntimeOutOfDate = 204, + Driver_HmdInUse = 205, + Driver_NotCalibrated = 206, + Driver_CalibrationInvalid = 207, + Driver_HmdDisplayNotFound = 208, + Driver_TrackedDeviceInterfaceUnknown = 209, + Driver_HmdDriverIdOutOfBounds = 211, + Driver_HmdDisplayMirrored = 212, + IPC_ServerInitFailed = 300, + IPC_ConnectFailed = 301, + IPC_SharedStateInitFailed = 302, + IPC_CompositorInitFailed = 303, + IPC_MutexInitFailed = 304, + IPC_Failed = 305, + IPC_CompositorConnectFailed = 306, + IPC_CompositorInvalidConnectResponse = 307, + IPC_ConnectFailedAfterMultipleAttempts = 308, + Compositor_Failed = 400, + Compositor_D3D11HardwareRequired = 401, + Compositor_FirmwareRequiresUpdate = 402, + Compositor_OverlayInitFailed = 403, + Compositor_ScreenshotsInitFailed = 404, + Compositor_UnableToCreateDevice = 405, + VendorSpecific_UnableToConnectToOculusRuntime = 1000, + VendorSpecific_HmdFound_CantOpenDevice = 1101, + VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102, + VendorSpecific_HmdFound_NoStoredConfig = 1103, + VendorSpecific_HmdFound_ConfigTooBig = 1104, + VendorSpecific_HmdFound_ConfigTooSmall = 1105, + VendorSpecific_HmdFound_UnableToInitZLib = 1106, + VendorSpecific_HmdFound_CantReadFirmwareVersion = 1107, + VendorSpecific_HmdFound_UnableToSendUserDataStart = 1108, + VendorSpecific_HmdFound_UnableToGetUserDataStart = 1109, + VendorSpecific_HmdFound_UnableToGetUserDataNext = 1110, + VendorSpecific_HmdFound_UserDataAddressRange = 1111, + VendorSpecific_HmdFound_UserDataError = 1112, + VendorSpecific_HmdFound_ConfigFailedSanityCheck = 1113, + Steam_SteamInstallationNotFound = 2000, +} +public enum EVRScreenshotType +{ + None = 0, + Mono = 1, + Stereo = 2, + Cubemap = 3, + MonoPanorama = 4, + StereoPanorama = 5, +} +public enum EVRScreenshotPropertyFilenames +{ + Preview = 0, + VR = 1, +} +public enum EVRTrackedCameraError +{ + None = 0, + OperationFailed = 100, + InvalidHandle = 101, + InvalidFrameHeaderVersion = 102, + OutOfHandles = 103, + IPCFailure = 104, + NotSupportedForThisDevice = 105, + SharedMemoryFailure = 106, + FrameBufferingFailure = 107, + StreamSetupFailure = 108, + InvalidGLTextureId = 109, + InvalidSharedTextureHandle = 110, + FailedToGetGLTextureId = 111, + SharedTextureFailure = 112, + NoFrameAvailable = 113, + InvalidArgument = 114, + InvalidFrameBufferSize = 115, +} +public enum EVRTrackedCameraFrameType +{ + Distorted = 0, + Undistorted = 1, + MaximumUndistorted = 2, + MAX_CAMERA_FRAME_TYPES = 3, +} +public enum EVRApplicationError +{ + None = 0, + AppKeyAlreadyExists = 100, + NoManifest = 101, + NoApplication = 102, + InvalidIndex = 103, + UnknownApplication = 104, + IPCFailed = 105, + ApplicationAlreadyRunning = 106, + InvalidManifest = 107, + InvalidApplication = 108, + LaunchFailed = 109, + ApplicationAlreadyStarting = 110, + LaunchInProgress = 111, + OldApplicationQuitting = 112, + TransitionAborted = 113, + IsTemplate = 114, + BufferTooSmall = 200, + PropertyNotSet = 201, + UnknownProperty = 202, + InvalidParameter = 203, +} +public enum EVRApplicationProperty +{ + Name_String = 0, + LaunchType_String = 11, + WorkingDirectory_String = 12, + BinaryPath_String = 13, + Arguments_String = 14, + URL_String = 15, + Description_String = 50, + NewsURL_String = 51, + ImagePath_String = 52, + Source_String = 53, + IsDashboardOverlay_Bool = 60, + IsTemplate_Bool = 61, + IsInstanced_Bool = 62, + IsInternal_Bool = 63, + LastLaunchTime_Uint64 = 70, +} +public enum EVRApplicationTransitionState +{ + VRApplicationTransition_None = 0, + VRApplicationTransition_OldAppQuitSent = 10, + VRApplicationTransition_WaitingForExternalLaunch = 11, + VRApplicationTransition_NewAppLaunched = 20, +} +public enum ChaperoneCalibrationState +{ + OK = 1, + Warning = 100, + Warning_BaseStationMayHaveMoved = 101, + Warning_BaseStationRemoved = 102, + Warning_SeatedBoundsInvalid = 103, + Error = 200, + Error_BaseStationUninitialized = 201, + Error_BaseStationConflict = 202, + Error_PlayAreaInvalid = 203, + Error_CollisionBoundsInvalid = 204, +} +public enum EChaperoneConfigFile +{ + Live = 1, + Temp = 2, +} +public enum EChaperoneImportFlags +{ + EChaperoneImport_BoundsOnly = 1, +} +public enum EVRCompositorError +{ + None = 0, + RequestFailed = 1, + IncompatibleVersion = 100, + DoNotHaveFocus = 101, + InvalidTexture = 102, + IsNotSceneApplication = 103, + TextureIsOnWrongDevice = 104, + TextureUsesUnsupportedFormat = 105, + SharedTexturesNotSupported = 106, + IndexOutOfRange = 107, + AlreadySubmitted = 108, +} +public enum VROverlayInputMethod +{ + None = 0, + Mouse = 1, +} +public enum VROverlayTransformType +{ + VROverlayTransform_Absolute = 0, + VROverlayTransform_TrackedDeviceRelative = 1, + VROverlayTransform_SystemOverlay = 2, + VROverlayTransform_TrackedComponent = 3, +} +public enum VROverlayFlags +{ + None = 0, + Curved = 1, + RGSS4X = 2, + NoDashboardTab = 3, + AcceptsGamepadEvents = 4, + ShowGamepadFocus = 5, + SendVRScrollEvents = 6, + SendVRTouchpadEvents = 7, + ShowTouchPadScrollWheel = 8, + TransferOwnershipToInternalProcess = 9, + SideBySide_Parallel = 10, + SideBySide_Crossed = 11, + Panorama = 12, + StereoPanorama = 13, + SortWithNonSceneOverlays = 14, + VisibleInDashboard = 15, +} +public enum VRMessageOverlayResponse +{ + ButtonPress_0 = 0, + ButtonPress_1 = 1, + ButtonPress_2 = 2, + ButtonPress_3 = 3, + CouldntFindSystemOverlay = 4, + CouldntFindOrCreateClientOverlay = 5, + ApplicationQuit = 6, +} +public enum EGamepadTextInputMode +{ + k_EGamepadTextInputModeNormal = 0, + k_EGamepadTextInputModePassword = 1, + k_EGamepadTextInputModeSubmit = 2, +} +public enum EGamepadTextInputLineMode +{ + k_EGamepadTextInputLineModeSingleLine = 0, + k_EGamepadTextInputLineModeMultipleLines = 1, +} +public enum EOverlayDirection +{ + Up = 0, + Down = 1, + Left = 2, + Right = 3, + Count = 4, +} +public enum EVROverlayIntersectionMaskPrimitiveType +{ + OverlayIntersectionPrimitiveType_Rectangle = 0, + OverlayIntersectionPrimitiveType_Circle = 1, +} +public enum EVRRenderModelError +{ + None = 0, + Loading = 100, + NotSupported = 200, + InvalidArg = 300, + InvalidModel = 301, + NoShapes = 302, + MultipleShapes = 303, + TooManyVertices = 304, + MultipleTextures = 305, + BufferTooSmall = 306, + NotEnoughNormals = 307, + NotEnoughTexCoords = 308, + InvalidTexture = 400, +} +public enum EVRComponentProperty +{ + IsStatic = 1, + IsVisible = 2, + IsTouched = 4, + IsPressed = 8, + IsScrolled = 16, +} +public enum EVRNotificationType +{ + Transient = 0, + Persistent = 1, + Transient_SystemWithUserValue = 2, +} +public enum EVRNotificationStyle +{ + None = 0, + Application = 100, + Contact_Disabled = 200, + Contact_Enabled = 201, + Contact_Active = 202, +} +public enum EVRSettingsError +{ + None = 0, + IPCFailed = 1, + WriteFailed = 2, + ReadFailed = 3, + JsonParseFailed = 4, + UnsetSettingHasNoDefault = 5, +} +public enum EVRScreenshotError +{ + None = 0, + RequestFailed = 1, + IncompatibleVersion = 100, + NotFound = 101, + BufferTooSmall = 102, + ScreenshotAlreadyInProgress = 108, +} + +[StructLayout(LayoutKind.Explicit)] public struct VREvent_Data_t +{ + [FieldOffset(0)] public VREvent_Reserved_t reserved; + [FieldOffset(0)] public VREvent_Controller_t controller; + [FieldOffset(0)] public VREvent_Mouse_t mouse; + [FieldOffset(0)] public VREvent_Scroll_t scroll; + [FieldOffset(0)] public VREvent_Process_t process; + [FieldOffset(0)] public VREvent_Notification_t notification; + [FieldOffset(0)] public VREvent_Overlay_t overlay; + [FieldOffset(0)] public VREvent_Status_t status; + [FieldOffset(0)] public VREvent_Ipd_t ipd; + [FieldOffset(0)] public VREvent_Chaperone_t chaperone; + [FieldOffset(0)] public VREvent_PerformanceTest_t performanceTest; + [FieldOffset(0)] public VREvent_TouchPadMove_t touchPadMove; + [FieldOffset(0)] public VREvent_SeatedZeroPoseReset_t seatedZeroPoseReset; + [FieldOffset(0)] public VREvent_Screenshot_t screenshot; + [FieldOffset(0)] public VREvent_ScreenshotProgress_t screenshotProgress; + [FieldOffset(0)] public VREvent_ApplicationLaunch_t applicationLaunch; + [FieldOffset(0)] public VREvent_EditingCameraSurface_t cameraSurface; + [FieldOffset(0)] public VREvent_MessageOverlay_t messageOverlay; + [FieldOffset(0)] public VREvent_Keyboard_t keyboard; // This has to be at the end due to a mono bug +} + + +[StructLayout(LayoutKind.Explicit)] public struct VROverlayIntersectionMaskPrimitive_Data_t +{ + [FieldOffset(0)] public IntersectionMaskRectangle_t m_Rectangle; + [FieldOffset(0)] public IntersectionMaskCircle_t m_Circle; +} + +[StructLayout(LayoutKind.Sequential)] public struct HmdMatrix34_t +{ + public float m0; //float[3][4] + public float m1; + public float m2; + public float m3; + public float m4; + public float m5; + public float m6; + public float m7; + public float m8; + public float m9; + public float m10; + public float m11; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdMatrix44_t +{ + public float m0; //float[4][4] + public float m1; + public float m2; + public float m3; + public float m4; + public float m5; + public float m6; + public float m7; + public float m8; + public float m9; + public float m10; + public float m11; + public float m12; + public float m13; + public float m14; + public float m15; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdVector3_t +{ + public float v0; //float[3] + public float v1; + public float v2; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdVector4_t +{ + public float v0; //float[4] + public float v1; + public float v2; + public float v3; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdVector3d_t +{ + public double v0; //double[3] + public double v1; + public double v2; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdVector2_t +{ + public float v0; //float[2] + public float v1; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdQuaternion_t +{ + public double w; + public double x; + public double y; + public double z; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdColor_t +{ + public float r; + public float g; + public float b; + public float a; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdQuad_t +{ + public HmdVector3_t vCorners0; //HmdVector3_t[4] + public HmdVector3_t vCorners1; + public HmdVector3_t vCorners2; + public HmdVector3_t vCorners3; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdRect2_t +{ + public HmdVector2_t vTopLeft; + public HmdVector2_t vBottomRight; +} +[StructLayout(LayoutKind.Sequential)] public struct DistortionCoordinates_t +{ + public float rfRed0; //float[2] + public float rfRed1; + public float rfGreen0; //float[2] + public float rfGreen1; + public float rfBlue0; //float[2] + public float rfBlue1; +} +[StructLayout(LayoutKind.Sequential)] public struct Texture_t +{ + public IntPtr handle; // void * + public ETextureType eType; + public EColorSpace eColorSpace; +} +[StructLayout(LayoutKind.Sequential)] public struct TrackedDevicePose_t +{ + public HmdMatrix34_t mDeviceToAbsoluteTracking; + public HmdVector3_t vVelocity; + public HmdVector3_t vAngularVelocity; + public ETrackingResult eTrackingResult; + [MarshalAs(UnmanagedType.I1)] + public bool bPoseIsValid; + [MarshalAs(UnmanagedType.I1)] + public bool bDeviceIsConnected; +} +[StructLayout(LayoutKind.Sequential)] public struct VRTextureBounds_t +{ + public float uMin; + public float vMin; + public float uMax; + public float vMax; +} +[StructLayout(LayoutKind.Sequential)] public struct VRVulkanTextureData_t +{ + public ulong m_nImage; + public IntPtr m_pDevice; // struct VkDevice_T * + public IntPtr m_pPhysicalDevice; // struct VkPhysicalDevice_T * + public IntPtr m_pInstance; // struct VkInstance_T * + public IntPtr m_pQueue; // struct VkQueue_T * + public uint m_nQueueFamilyIndex; + public uint m_nWidth; + public uint m_nHeight; + public uint m_nFormat; + public uint m_nSampleCount; +} +[StructLayout(LayoutKind.Sequential)] public struct D3D12TextureData_t +{ + public IntPtr m_pResource; // struct ID3D12Resource * + public IntPtr m_pCommandQueue; // struct ID3D12CommandQueue * + public uint m_nNodeMask; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Controller_t +{ + public uint button; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Mouse_t +{ + public float x; + public float y; + public uint button; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Scroll_t +{ + public float xdelta; + public float ydelta; + public uint repeatCount; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_TouchPadMove_t +{ + [MarshalAs(UnmanagedType.I1)] + public bool bFingerDown; + public float flSecondsFingerDown; + public float fValueXFirst; + public float fValueYFirst; + public float fValueXRaw; + public float fValueYRaw; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Notification_t +{ + public ulong ulUserValue; + public uint notificationId; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Process_t +{ + public uint pid; + public uint oldPid; + [MarshalAs(UnmanagedType.I1)] + public bool bForced; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Overlay_t +{ + public ulong overlayHandle; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Status_t +{ + public uint statusState; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Keyboard_t +{ + public byte cNewInput0,cNewInput1,cNewInput2,cNewInput3,cNewInput4,cNewInput5,cNewInput6,cNewInput7; + public ulong uUserValue; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Ipd_t +{ + public float ipdMeters; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Chaperone_t +{ + public ulong m_nPreviousUniverse; + public ulong m_nCurrentUniverse; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Reserved_t +{ + public ulong reserved0; + public ulong reserved1; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_PerformanceTest_t +{ + public uint m_nFidelityLevel; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_SeatedZeroPoseReset_t +{ + [MarshalAs(UnmanagedType.I1)] + public bool bResetBySystemMenu; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Screenshot_t +{ + public uint handle; + public uint type; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_ScreenshotProgress_t +{ + public float progress; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_ApplicationLaunch_t +{ + public uint pid; + public uint unArgsHandle; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_EditingCameraSurface_t +{ + public ulong overlayHandle; + public uint nVisualMode; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_MessageOverlay_t +{ + public uint unVRMessageOverlayResponse; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Property_t +{ + public ulong container; + public ETrackedDeviceProperty prop; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_t +{ + public uint eventType; + public uint trackedDeviceIndex; + public float eventAgeSeconds; + public VREvent_Data_t data; +} +// This structure is for backwards binary compatibility on Linux and OSX only +[StructLayout(LayoutKind.Sequential, Pack = 4)] public struct VREvent_t_Packed +{ + public uint eventType; + public uint trackedDeviceIndex; + public float eventAgeSeconds; + public VREvent_Data_t data; + public VREvent_t_Packed(VREvent_t unpacked) + { + this.eventType = unpacked.eventType; + this.trackedDeviceIndex = unpacked.trackedDeviceIndex; + this.eventAgeSeconds = unpacked.eventAgeSeconds; + this.data = unpacked.data; + } + public void Unpack(ref VREvent_t unpacked) + { + unpacked.eventType = this.eventType; + unpacked.trackedDeviceIndex = this.trackedDeviceIndex; + unpacked.eventAgeSeconds = this.eventAgeSeconds; + unpacked.data = this.data; + } +} +[StructLayout(LayoutKind.Sequential)] public struct HiddenAreaMesh_t +{ + public IntPtr pVertexData; // const struct vr::HmdVector2_t * + public uint unTriangleCount; +} +[StructLayout(LayoutKind.Sequential)] public struct VRControllerAxis_t +{ + public float x; + public float y; +} +[StructLayout(LayoutKind.Sequential)] public struct VRControllerState_t +{ + public uint unPacketNum; + public ulong ulButtonPressed; + public ulong ulButtonTouched; + public VRControllerAxis_t rAxis0; //VRControllerAxis_t[5] + public VRControllerAxis_t rAxis1; + public VRControllerAxis_t rAxis2; + public VRControllerAxis_t rAxis3; + public VRControllerAxis_t rAxis4; +} +// This structure is for backwards binary compatibility on Linux and OSX only +[StructLayout(LayoutKind.Sequential, Pack = 4)] public struct VRControllerState_t_Packed +{ + public uint unPacketNum; + public ulong ulButtonPressed; + public ulong ulButtonTouched; + public VRControllerAxis_t rAxis0; //VRControllerAxis_t[5] + public VRControllerAxis_t rAxis1; + public VRControllerAxis_t rAxis2; + public VRControllerAxis_t rAxis3; + public VRControllerAxis_t rAxis4; + public VRControllerState_t_Packed(VRControllerState_t unpacked) + { + this.unPacketNum = unpacked.unPacketNum; + this.ulButtonPressed = unpacked.ulButtonPressed; + this.ulButtonTouched = unpacked.ulButtonTouched; + this.rAxis0 = unpacked.rAxis0; + this.rAxis1 = unpacked.rAxis1; + this.rAxis2 = unpacked.rAxis2; + this.rAxis3 = unpacked.rAxis3; + this.rAxis4 = unpacked.rAxis4; + } + public void Unpack(ref VRControllerState_t unpacked) + { + unpacked.unPacketNum = this.unPacketNum; + unpacked.ulButtonPressed = this.ulButtonPressed; + unpacked.ulButtonTouched = this.ulButtonTouched; + unpacked.rAxis0 = this.rAxis0; + unpacked.rAxis1 = this.rAxis1; + unpacked.rAxis2 = this.rAxis2; + unpacked.rAxis3 = this.rAxis3; + unpacked.rAxis4 = this.rAxis4; + } +} +[StructLayout(LayoutKind.Sequential)] public struct Compositor_OverlaySettings +{ + public uint size; + [MarshalAs(UnmanagedType.I1)] + public bool curved; + [MarshalAs(UnmanagedType.I1)] + public bool antialias; + public float scale; + public float distance; + public float alpha; + public float uOffset; + public float vOffset; + public float uScale; + public float vScale; + public float gridDivs; + public float gridWidth; + public float gridScale; + public HmdMatrix44_t transform; +} +[StructLayout(LayoutKind.Sequential)] public struct CameraVideoStreamFrameHeader_t +{ + public EVRTrackedCameraFrameType eFrameType; + public uint nWidth; + public uint nHeight; + public uint nBytesPerPixel; + public uint nFrameSequence; + public TrackedDevicePose_t standingTrackedDevicePose; +} +[StructLayout(LayoutKind.Sequential)] public struct AppOverrideKeys_t +{ + public IntPtr pchKey; // const char * + public IntPtr pchValue; // const char * +} +[StructLayout(LayoutKind.Sequential)] public struct Compositor_FrameTiming +{ + public uint m_nSize; + public uint m_nFrameIndex; + public uint m_nNumFramePresents; + public uint m_nNumMisPresented; + public uint m_nNumDroppedFrames; + public uint m_nReprojectionFlags; + public double m_flSystemTimeInSeconds; + public float m_flPreSubmitGpuMs; + public float m_flPostSubmitGpuMs; + public float m_flTotalRenderGpuMs; + public float m_flCompositorRenderGpuMs; + public float m_flCompositorRenderCpuMs; + public float m_flCompositorIdleCpuMs; + public float m_flClientFrameIntervalMs; + public float m_flPresentCallCpuMs; + public float m_flWaitForPresentCpuMs; + public float m_flSubmitFrameMs; + public float m_flWaitGetPosesCalledMs; + public float m_flNewPosesReadyMs; + public float m_flNewFrameReadyMs; + public float m_flCompositorUpdateStartMs; + public float m_flCompositorUpdateEndMs; + public float m_flCompositorRenderStartMs; + public TrackedDevicePose_t m_HmdPose; +} +[StructLayout(LayoutKind.Sequential)] public struct Compositor_CumulativeStats +{ + public uint m_nPid; + public uint m_nNumFramePresents; + public uint m_nNumDroppedFrames; + public uint m_nNumReprojectedFrames; + public uint m_nNumFramePresentsOnStartup; + public uint m_nNumDroppedFramesOnStartup; + public uint m_nNumReprojectedFramesOnStartup; + public uint m_nNumLoading; + public uint m_nNumFramePresentsLoading; + public uint m_nNumDroppedFramesLoading; + public uint m_nNumReprojectedFramesLoading; + public uint m_nNumTimedOut; + public uint m_nNumFramePresentsTimedOut; + public uint m_nNumDroppedFramesTimedOut; + public uint m_nNumReprojectedFramesTimedOut; +} +[StructLayout(LayoutKind.Sequential)] public struct VROverlayIntersectionParams_t +{ + public HmdVector3_t vSource; + public HmdVector3_t vDirection; + public ETrackingUniverseOrigin eOrigin; +} +[StructLayout(LayoutKind.Sequential)] public struct VROverlayIntersectionResults_t +{ + public HmdVector3_t vPoint; + public HmdVector3_t vNormal; + public HmdVector2_t vUVs; + public float fDistance; +} +[StructLayout(LayoutKind.Sequential)] public struct IntersectionMaskRectangle_t +{ + public float m_flTopLeftX; + public float m_flTopLeftY; + public float m_flWidth; + public float m_flHeight; +} +[StructLayout(LayoutKind.Sequential)] public struct IntersectionMaskCircle_t +{ + public float m_flCenterX; + public float m_flCenterY; + public float m_flRadius; +} +[StructLayout(LayoutKind.Sequential)] public struct VROverlayIntersectionMaskPrimitive_t +{ + public EVROverlayIntersectionMaskPrimitiveType m_nPrimitiveType; + public VROverlayIntersectionMaskPrimitive_Data_t m_Primitive; +} +[StructLayout(LayoutKind.Sequential)] public struct RenderModel_ComponentState_t +{ + public HmdMatrix34_t mTrackingToComponentRenderModel; + public HmdMatrix34_t mTrackingToComponentLocal; + public uint uProperties; +} +[StructLayout(LayoutKind.Sequential)] public struct RenderModel_Vertex_t +{ + public HmdVector3_t vPosition; + public HmdVector3_t vNormal; + public float rfTextureCoord0; //float[2] + public float rfTextureCoord1; +} +[StructLayout(LayoutKind.Sequential)] public struct RenderModel_TextureMap_t +{ + public char unWidth; + public char unHeight; + public IntPtr rubTextureMapData; // const uint8_t * +} +// This structure is for backwards binary compatibility on Linux and OSX only +[StructLayout(LayoutKind.Sequential, Pack = 4)] public struct RenderModel_TextureMap_t_Packed +{ + public char unWidth; + public char unHeight; + public IntPtr rubTextureMapData; // const uint8_t * + public RenderModel_TextureMap_t_Packed(RenderModel_TextureMap_t unpacked) + { + this.unWidth = unpacked.unWidth; + this.unHeight = unpacked.unHeight; + this.rubTextureMapData = unpacked.rubTextureMapData; + } + public void Unpack(ref RenderModel_TextureMap_t unpacked) + { + unpacked.unWidth = this.unWidth; + unpacked.unHeight = this.unHeight; + unpacked.rubTextureMapData = this.rubTextureMapData; + } +} +[StructLayout(LayoutKind.Sequential)] public struct RenderModel_t +{ + public IntPtr rVertexData; // const struct vr::RenderModel_Vertex_t * + public uint unVertexCount; + public IntPtr rIndexData; // const uint16_t * + public uint unTriangleCount; + public int diffuseTextureId; +} +// This structure is for backwards binary compatibility on Linux and OSX only +[StructLayout(LayoutKind.Sequential, Pack = 4)] public struct RenderModel_t_Packed +{ + public IntPtr rVertexData; // const struct vr::RenderModel_Vertex_t * + public uint unVertexCount; + public IntPtr rIndexData; // const uint16_t * + public uint unTriangleCount; + public int diffuseTextureId; + public RenderModel_t_Packed(RenderModel_t unpacked) + { + this.rVertexData = unpacked.rVertexData; + this.unVertexCount = unpacked.unVertexCount; + this.rIndexData = unpacked.rIndexData; + this.unTriangleCount = unpacked.unTriangleCount; + this.diffuseTextureId = unpacked.diffuseTextureId; + } + public void Unpack(ref RenderModel_t unpacked) + { + unpacked.rVertexData = this.rVertexData; + unpacked.unVertexCount = this.unVertexCount; + unpacked.rIndexData = this.rIndexData; + unpacked.unTriangleCount = this.unTriangleCount; + unpacked.diffuseTextureId = this.diffuseTextureId; + } +} +[StructLayout(LayoutKind.Sequential)] public struct RenderModel_ControllerMode_State_t +{ + [MarshalAs(UnmanagedType.I1)] + public bool bScrollWheelVisible; +} +[StructLayout(LayoutKind.Sequential)] public struct NotificationBitmap_t +{ + public IntPtr m_pImageData; // void * + public int m_nWidth; + public int m_nHeight; + public int m_nBytesPerPixel; +} +[StructLayout(LayoutKind.Sequential)] public struct COpenVRContext +{ + public IntPtr m_pVRSystem; // class vr::IVRSystem * + public IntPtr m_pVRChaperone; // class vr::IVRChaperone * + public IntPtr m_pVRChaperoneSetup; // class vr::IVRChaperoneSetup * + public IntPtr m_pVRCompositor; // class vr::IVRCompositor * + public IntPtr m_pVROverlay; // class vr::IVROverlay * + public IntPtr m_pVRResources; // class vr::IVRResources * + public IntPtr m_pVRRenderModels; // class vr::IVRRenderModels * + public IntPtr m_pVRExtendedDisplay; // class vr::IVRExtendedDisplay * + public IntPtr m_pVRSettings; // class vr::IVRSettings * + public IntPtr m_pVRApplications; // class vr::IVRApplications * + public IntPtr m_pVRTrackedCamera; // class vr::IVRTrackedCamera * + public IntPtr m_pVRScreenshots; // class vr::IVRScreenshots * + public IntPtr m_pVRDriverManager; // class vr::IVRDriverManager * +} + +public class OpenVR +{ + + public static uint InitInternal(ref EVRInitError peError, EVRApplicationType eApplicationType) + { + return OpenVRInterop.InitInternal(ref peError, eApplicationType); + } + + public static void ShutdownInternal() + { + OpenVRInterop.ShutdownInternal(); + } + + public static bool IsHmdPresent() + { + return OpenVRInterop.IsHmdPresent(); + } + + public static bool IsRuntimeInstalled() + { + return OpenVRInterop.IsRuntimeInstalled(); + } + + public static string GetStringForHmdError(EVRInitError error) + { + return Marshal.PtrToStringAnsi(OpenVRInterop.GetStringForHmdError(error)); + } + + public static IntPtr GetGenericInterface(string pchInterfaceVersion, ref EVRInitError peError) + { + return OpenVRInterop.GetGenericInterface(pchInterfaceVersion, ref peError); + } + + public static bool IsInterfaceVersionValid(string pchInterfaceVersion) + { + return OpenVRInterop.IsInterfaceVersionValid(pchInterfaceVersion); + } + + public static uint GetInitToken() + { + return OpenVRInterop.GetInitToken(); + } + + public const uint k_nDriverNone = 4294967295; + public const uint k_unMaxDriverDebugResponseSize = 32768; + public const uint k_unTrackedDeviceIndex_Hmd = 0; + public const uint k_unMaxTrackedDeviceCount = 16; + public const uint k_unTrackedDeviceIndexOther = 4294967294; + public const uint k_unTrackedDeviceIndexInvalid = 4294967295; + public const ulong k_ulInvalidPropertyContainer = 0; + public const uint k_unInvalidPropertyTag = 0; + public const uint k_unFloatPropertyTag = 1; + public const uint k_unInt32PropertyTag = 2; + public const uint k_unUint64PropertyTag = 3; + public const uint k_unBoolPropertyTag = 4; + public const uint k_unStringPropertyTag = 5; + public const uint k_unHmdMatrix34PropertyTag = 20; + public const uint k_unHmdMatrix44PropertyTag = 21; + public const uint k_unHmdVector3PropertyTag = 22; + public const uint k_unHmdVector4PropertyTag = 23; + public const uint k_unHiddenAreaPropertyTag = 30; + public const uint k_unOpenVRInternalReserved_Start = 1000; + public const uint k_unOpenVRInternalReserved_End = 10000; + public const uint k_unMaxPropertyStringSize = 32768; + public const uint k_unControllerStateAxisCount = 5; + public const ulong k_ulOverlayHandleInvalid = 0; + public const uint k_unScreenshotHandleInvalid = 0; + public const string IVRSystem_Version = "IVRSystem_016"; + public const string IVRExtendedDisplay_Version = "IVRExtendedDisplay_001"; + public const string IVRTrackedCamera_Version = "IVRTrackedCamera_003"; + public const uint k_unMaxApplicationKeyLength = 128; + public const string k_pch_MimeType_HomeApp = "vr/home"; + public const string k_pch_MimeType_GameTheater = "vr/game_theater"; + public const string IVRApplications_Version = "IVRApplications_006"; + public const string IVRChaperone_Version = "IVRChaperone_003"; + public const string IVRChaperoneSetup_Version = "IVRChaperoneSetup_005"; + public const string IVRCompositor_Version = "IVRCompositor_020"; + public const uint k_unVROverlayMaxKeyLength = 128; + public const uint k_unVROverlayMaxNameLength = 128; + public const uint k_unMaxOverlayCount = 64; + public const uint k_unMaxOverlayIntersectionMaskPrimitivesCount = 32; + public const string IVROverlay_Version = "IVROverlay_016"; + public const string k_pch_Controller_Component_GDC2015 = "gdc2015"; + public const string k_pch_Controller_Component_Base = "base"; + public const string k_pch_Controller_Component_Tip = "tip"; + public const string k_pch_Controller_Component_HandGrip = "handgrip"; + public const string k_pch_Controller_Component_Status = "status"; + public const string IVRRenderModels_Version = "IVRRenderModels_005"; + public const uint k_unNotificationTextMaxSize = 256; + public const string IVRNotifications_Version = "IVRNotifications_002"; + public const uint k_unMaxSettingsKeyLength = 128; + public const string IVRSettings_Version = "IVRSettings_002"; + public const string k_pch_SteamVR_Section = "steamvr"; + public const string k_pch_SteamVR_RequireHmd_String = "requireHmd"; + public const string k_pch_SteamVR_ForcedDriverKey_String = "forcedDriver"; + public const string k_pch_SteamVR_ForcedHmdKey_String = "forcedHmd"; + public const string k_pch_SteamVR_DisplayDebug_Bool = "displayDebug"; + public const string k_pch_SteamVR_DebugProcessPipe_String = "debugProcessPipe"; + public const string k_pch_SteamVR_DisplayDebugX_Int32 = "displayDebugX"; + public const string k_pch_SteamVR_DisplayDebugY_Int32 = "displayDebugY"; + public const string k_pch_SteamVR_SendSystemButtonToAllApps_Bool = "sendSystemButtonToAllApps"; + public const string k_pch_SteamVR_LogLevel_Int32 = "loglevel"; + public const string k_pch_SteamVR_IPD_Float = "ipd"; + public const string k_pch_SteamVR_Background_String = "background"; + public const string k_pch_SteamVR_BackgroundUseDomeProjection_Bool = "backgroundUseDomeProjection"; + public const string k_pch_SteamVR_BackgroundCameraHeight_Float = "backgroundCameraHeight"; + public const string k_pch_SteamVR_BackgroundDomeRadius_Float = "backgroundDomeRadius"; + public const string k_pch_SteamVR_GridColor_String = "gridColor"; + public const string k_pch_SteamVR_PlayAreaColor_String = "playAreaColor"; + public const string k_pch_SteamVR_ShowStage_Bool = "showStage"; + public const string k_pch_SteamVR_ActivateMultipleDrivers_Bool = "activateMultipleDrivers"; + public const string k_pch_SteamVR_DirectMode_Bool = "directMode"; + public const string k_pch_SteamVR_DirectModeEdidVid_Int32 = "directModeEdidVid"; + public const string k_pch_SteamVR_DirectModeEdidPid_Int32 = "directModeEdidPid"; + public const string k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers"; + public const string k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees"; + public const string k_pch_SteamVR_BaseStationPowerManagement_Bool = "basestationPowerManagement"; + public const string k_pch_SteamVR_NeverKillProcesses_Bool = "neverKillProcesses"; + public const string k_pch_SteamVR_SupersampleScale_Float = "supersampleScale"; + public const string k_pch_SteamVR_AllowAsyncReprojection_Bool = "allowAsyncReprojection"; + public const string k_pch_SteamVR_AllowReprojection_Bool = "allowInterleavedReprojection"; + public const string k_pch_SteamVR_ForceReprojection_Bool = "forceReprojection"; + public const string k_pch_SteamVR_ForceFadeOnBadTracking_Bool = "forceFadeOnBadTracking"; + public const string k_pch_SteamVR_DefaultMirrorView_Int32 = "defaultMirrorView"; + public const string k_pch_SteamVR_ShowMirrorView_Bool = "showMirrorView"; + public const string k_pch_SteamVR_MirrorViewGeometry_String = "mirrorViewGeometry"; + public const string k_pch_SteamVR_StartMonitorFromAppLaunch = "startMonitorFromAppLaunch"; + public const string k_pch_SteamVR_StartCompositorFromAppLaunch_Bool = "startCompositorFromAppLaunch"; + public const string k_pch_SteamVR_StartDashboardFromAppLaunch_Bool = "startDashboardFromAppLaunch"; + public const string k_pch_SteamVR_StartOverlayAppsFromDashboard_Bool = "startOverlayAppsFromDashboard"; + public const string k_pch_SteamVR_EnableHomeApp = "enableHomeApp"; + public const string k_pch_SteamVR_CycleBackgroundImageTimeSec_Int32 = "CycleBackgroundImageTimeSec"; + public const string k_pch_SteamVR_RetailDemo_Bool = "retailDemo"; + public const string k_pch_SteamVR_IpdOffset_Float = "ipdOffset"; + public const string k_pch_SteamVR_AllowSupersampleFiltering_Bool = "allowSupersampleFiltering"; + public const string k_pch_Lighthouse_Section = "driver_lighthouse"; + public const string k_pch_Lighthouse_DisableIMU_Bool = "disableimu"; + public const string k_pch_Lighthouse_UseDisambiguation_String = "usedisambiguation"; + public const string k_pch_Lighthouse_DisambiguationDebug_Int32 = "disambiguationdebug"; + public const string k_pch_Lighthouse_PrimaryBasestation_Int32 = "primarybasestation"; + public const string k_pch_Lighthouse_DBHistory_Bool = "dbhistory"; + public const string k_pch_Null_Section = "driver_null"; + public const string k_pch_Null_SerialNumber_String = "serialNumber"; + public const string k_pch_Null_ModelNumber_String = "modelNumber"; + public const string k_pch_Null_WindowX_Int32 = "windowX"; + public const string k_pch_Null_WindowY_Int32 = "windowY"; + public const string k_pch_Null_WindowWidth_Int32 = "windowWidth"; + public const string k_pch_Null_WindowHeight_Int32 = "windowHeight"; + public const string k_pch_Null_RenderWidth_Int32 = "renderWidth"; + public const string k_pch_Null_RenderHeight_Int32 = "renderHeight"; + public const string k_pch_Null_SecondsFromVsyncToPhotons_Float = "secondsFromVsyncToPhotons"; + public const string k_pch_Null_DisplayFrequency_Float = "displayFrequency"; + public const string k_pch_UserInterface_Section = "userinterface"; + public const string k_pch_UserInterface_StatusAlwaysOnTop_Bool = "StatusAlwaysOnTop"; + public const string k_pch_UserInterface_MinimizeToTray_Bool = "MinimizeToTray"; + public const string k_pch_UserInterface_Screenshots_Bool = "screenshots"; + public const string k_pch_UserInterface_ScreenshotType_Int = "screenshotType"; + public const string k_pch_Notifications_Section = "notifications"; + public const string k_pch_Notifications_DoNotDisturb_Bool = "DoNotDisturb"; + public const string k_pch_Keyboard_Section = "keyboard"; + public const string k_pch_Keyboard_TutorialCompletions = "TutorialCompletions"; + public const string k_pch_Keyboard_ScaleX = "ScaleX"; + public const string k_pch_Keyboard_ScaleY = "ScaleY"; + public const string k_pch_Keyboard_OffsetLeftX = "OffsetLeftX"; + public const string k_pch_Keyboard_OffsetRightX = "OffsetRightX"; + public const string k_pch_Keyboard_OffsetY = "OffsetY"; + public const string k_pch_Keyboard_Smoothing = "Smoothing"; + public const string k_pch_Perf_Section = "perfcheck"; + public const string k_pch_Perf_HeuristicActive_Bool = "heuristicActive"; + public const string k_pch_Perf_NotifyInHMD_Bool = "warnInHMD"; + public const string k_pch_Perf_NotifyOnlyOnce_Bool = "warnOnlyOnce"; + public const string k_pch_Perf_AllowTimingStore_Bool = "allowTimingStore"; + public const string k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit"; + public const string k_pch_Perf_TestData_Float = "perfTestData"; + public const string k_pch_Perf_LinuxGPUProfiling_Bool = "linuxGPUProfiling"; + public const string k_pch_CollisionBounds_Section = "collisionBounds"; + public const string k_pch_CollisionBounds_Style_Int32 = "CollisionBoundsStyle"; + public const string k_pch_CollisionBounds_GroundPerimeterOn_Bool = "CollisionBoundsGroundPerimeterOn"; + public const string k_pch_CollisionBounds_CenterMarkerOn_Bool = "CollisionBoundsCenterMarkerOn"; + public const string k_pch_CollisionBounds_PlaySpaceOn_Bool = "CollisionBoundsPlaySpaceOn"; + public const string k_pch_CollisionBounds_FadeDistance_Float = "CollisionBoundsFadeDistance"; + public const string k_pch_CollisionBounds_ColorGammaR_Int32 = "CollisionBoundsColorGammaR"; + public const string k_pch_CollisionBounds_ColorGammaG_Int32 = "CollisionBoundsColorGammaG"; + public const string k_pch_CollisionBounds_ColorGammaB_Int32 = "CollisionBoundsColorGammaB"; + public const string k_pch_CollisionBounds_ColorGammaA_Int32 = "CollisionBoundsColorGammaA"; + public const string k_pch_Camera_Section = "camera"; + public const string k_pch_Camera_EnableCamera_Bool = "enableCamera"; + public const string k_pch_Camera_EnableCameraInDashboard_Bool = "enableCameraInDashboard"; + public const string k_pch_Camera_EnableCameraForCollisionBounds_Bool = "enableCameraForCollisionBounds"; + public const string k_pch_Camera_EnableCameraForRoomView_Bool = "enableCameraForRoomView"; + public const string k_pch_Camera_BoundsColorGammaR_Int32 = "cameraBoundsColorGammaR"; + public const string k_pch_Camera_BoundsColorGammaG_Int32 = "cameraBoundsColorGammaG"; + public const string k_pch_Camera_BoundsColorGammaB_Int32 = "cameraBoundsColorGammaB"; + public const string k_pch_Camera_BoundsColorGammaA_Int32 = "cameraBoundsColorGammaA"; + public const string k_pch_Camera_BoundsStrength_Int32 = "cameraBoundsStrength"; + public const string k_pch_audio_Section = "audio"; + public const string k_pch_audio_OnPlaybackDevice_String = "onPlaybackDevice"; + public const string k_pch_audio_OnRecordDevice_String = "onRecordDevice"; + public const string k_pch_audio_OnPlaybackMirrorDevice_String = "onPlaybackMirrorDevice"; + public const string k_pch_audio_OffPlaybackDevice_String = "offPlaybackDevice"; + public const string k_pch_audio_OffRecordDevice_String = "offRecordDevice"; + public const string k_pch_audio_VIVEHDMIGain = "viveHDMIGain"; + public const string k_pch_Power_Section = "power"; + public const string k_pch_Power_PowerOffOnExit_Bool = "powerOffOnExit"; + public const string k_pch_Power_TurnOffScreensTimeout_Float = "turnOffScreensTimeout"; + public const string k_pch_Power_TurnOffControllersTimeout_Float = "turnOffControllersTimeout"; + public const string k_pch_Power_ReturnToWatchdogTimeout_Float = "returnToWatchdogTimeout"; + public const string k_pch_Power_AutoLaunchSteamVROnButtonPress = "autoLaunchSteamVROnButtonPress"; + public const string k_pch_Dashboard_Section = "dashboard"; + public const string k_pch_Dashboard_EnableDashboard_Bool = "enableDashboard"; + public const string k_pch_Dashboard_ArcadeMode_Bool = "arcadeMode"; + public const string k_pch_modelskin_Section = "modelskins"; + public const string k_pch_Driver_Enable_Bool = "enable"; + public const string IVRScreenshots_Version = "IVRScreenshots_001"; + public const string IVRResources_Version = "IVRResources_001"; + public const string IVRDriverManager_Version = "IVRDriverManager_001"; + + static uint VRToken { get; set; } + + const string FnTable_Prefix = "FnTable:"; + + class COpenVRContext + { + public COpenVRContext() { Clear(); } + + public void Clear() + { + m_pVRSystem = null; + m_pVRChaperone = null; + m_pVRChaperoneSetup = null; + m_pVRCompositor = null; + m_pVROverlay = null; + m_pVRRenderModels = null; + m_pVRExtendedDisplay = null; + m_pVRSettings = null; + m_pVRApplications = null; + m_pVRScreenshots = null; + m_pVRTrackedCamera = null; + } + + void CheckClear() + { + if (VRToken != GetInitToken()) + { + Clear(); + VRToken = GetInitToken(); + } + } + + public CVRSystem VRSystem() + { + CheckClear(); + if (m_pVRSystem == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRSystem_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRSystem = new CVRSystem(pInterface); + } + return m_pVRSystem; + } + + public CVRChaperone VRChaperone() + { + CheckClear(); + if (m_pVRChaperone == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRChaperone_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRChaperone = new CVRChaperone(pInterface); + } + return m_pVRChaperone; + } + + public CVRChaperoneSetup VRChaperoneSetup() + { + CheckClear(); + if (m_pVRChaperoneSetup == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRChaperoneSetup_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRChaperoneSetup = new CVRChaperoneSetup(pInterface); + } + return m_pVRChaperoneSetup; + } + + public CVRCompositor VRCompositor() + { + CheckClear(); + if (m_pVRCompositor == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRCompositor_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRCompositor = new CVRCompositor(pInterface); + } + return m_pVRCompositor; + } + + public CVROverlay VROverlay() + { + CheckClear(); + if (m_pVROverlay == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVROverlay_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVROverlay = new CVROverlay(pInterface); + } + return m_pVROverlay; + } + + public CVRRenderModels VRRenderModels() + { + CheckClear(); + if (m_pVRRenderModels == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRRenderModels_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRRenderModels = new CVRRenderModels(pInterface); + } + return m_pVRRenderModels; + } + + public CVRExtendedDisplay VRExtendedDisplay() + { + CheckClear(); + if (m_pVRExtendedDisplay == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRExtendedDisplay_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRExtendedDisplay = new CVRExtendedDisplay(pInterface); + } + return m_pVRExtendedDisplay; + } + + public CVRSettings VRSettings() + { + CheckClear(); + if (m_pVRSettings == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRSettings_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRSettings = new CVRSettings(pInterface); + } + return m_pVRSettings; + } + + public CVRApplications VRApplications() + { + CheckClear(); + if (m_pVRApplications == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRApplications_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRApplications = new CVRApplications(pInterface); + } + return m_pVRApplications; + } + + public CVRScreenshots VRScreenshots() + { + CheckClear(); + if (m_pVRScreenshots == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRScreenshots_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRScreenshots = new CVRScreenshots(pInterface); + } + return m_pVRScreenshots; + } + + public CVRTrackedCamera VRTrackedCamera() + { + CheckClear(); + if (m_pVRTrackedCamera == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRTrackedCamera_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRTrackedCamera = new CVRTrackedCamera(pInterface); + } + return m_pVRTrackedCamera; + } + + private CVRSystem m_pVRSystem; + private CVRChaperone m_pVRChaperone; + private CVRChaperoneSetup m_pVRChaperoneSetup; + private CVRCompositor m_pVRCompositor; + private CVROverlay m_pVROverlay; + private CVRRenderModels m_pVRRenderModels; + private CVRExtendedDisplay m_pVRExtendedDisplay; + private CVRSettings m_pVRSettings; + private CVRApplications m_pVRApplications; + private CVRScreenshots m_pVRScreenshots; + private CVRTrackedCamera m_pVRTrackedCamera; + }; + + private static COpenVRContext _OpenVRInternal_ModuleContext = null; + static COpenVRContext OpenVRInternal_ModuleContext + { + get + { + if (_OpenVRInternal_ModuleContext == null) + _OpenVRInternal_ModuleContext = new COpenVRContext(); + return _OpenVRInternal_ModuleContext; + } + } + + public static CVRSystem System { get { return OpenVRInternal_ModuleContext.VRSystem(); } } + public static CVRChaperone Chaperone { get { return OpenVRInternal_ModuleContext.VRChaperone(); } } + public static CVRChaperoneSetup ChaperoneSetup { get { return OpenVRInternal_ModuleContext.VRChaperoneSetup(); } } + public static CVRCompositor Compositor { get { return OpenVRInternal_ModuleContext.VRCompositor(); } } + public static CVROverlay Overlay { get { return OpenVRInternal_ModuleContext.VROverlay(); } } + public static CVRRenderModels RenderModels { get { return OpenVRInternal_ModuleContext.VRRenderModels(); } } + public static CVRExtendedDisplay ExtendedDisplay { get { return OpenVRInternal_ModuleContext.VRExtendedDisplay(); } } + public static CVRSettings Settings { get { return OpenVRInternal_ModuleContext.VRSettings(); } } + public static CVRApplications Applications { get { return OpenVRInternal_ModuleContext.VRApplications(); } } + public static CVRScreenshots Screenshots { get { return OpenVRInternal_ModuleContext.VRScreenshots(); } } + public static CVRTrackedCamera TrackedCamera { get { return OpenVRInternal_ModuleContext.VRTrackedCamera(); } } + + /** Finds the active installation of vrclient.dll and initializes it */ + public static CVRSystem Init(ref EVRInitError peError, EVRApplicationType eApplicationType = EVRApplicationType.VRApplication_Scene) + { + VRToken = InitInternal(ref peError, eApplicationType); + OpenVRInternal_ModuleContext.Clear(); + + if (peError != EVRInitError.None) + return null; + + bool bInterfaceValid = IsInterfaceVersionValid(IVRSystem_Version); + if (!bInterfaceValid) + { + ShutdownInternal(); + peError = EVRInitError.Init_InterfaceNotFound; + return null; + } + + return OpenVR.System; + } + + /** unloads vrclient.dll. Any interface pointers from the interface are + * invalid after this point */ + public static void Shutdown() + { + ShutdownInternal(); + } + +} + + + +} + diff --git a/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/A/Headers/openvr_api.json b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/A/Headers/openvr_api.json new file mode 100644 index 000000000..bd76ded9f --- /dev/null +++ b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/A/Headers/openvr_api.json @@ -0,0 +1,3887 @@ +{"typedefs":[{"typedef": "vr::glSharedTextureHandle_t","type": "void *"} +,{"typedef": "vr::glInt_t","type": "int32_t"} +,{"typedef": "vr::glUInt_t","type": "uint32_t"} +,{"typedef": "vr::SharedTextureHandle_t","type": "uint64_t"} +,{"typedef": "vr::DriverId_t","type": "uint32_t"} +,{"typedef": "vr::TrackedDeviceIndex_t","type": "uint32_t"} +,{"typedef": "vr::PropertyContainerHandle_t","type": "uint64_t"} +,{"typedef": "vr::PropertyTypeTag_t","type": "uint32_t"} +,{"typedef": "vr::VREvent_Data_t","type": "union VREvent_Data_t"} +,{"typedef": "vr::VRControllerState_t","type": "struct vr::VRControllerState001_t"} +,{"typedef": "vr::VROverlayHandle_t","type": "uint64_t"} +,{"typedef": "vr::TrackedCameraHandle_t","type": "uint64_t"} +,{"typedef": "vr::ScreenshotHandle_t","type": "uint32_t"} +,{"typedef": "vr::VROverlayIntersectionMaskPrimitive_Data_t","type": "union VROverlayIntersectionMaskPrimitive_Data_t"} +,{"typedef": "vr::VRComponentProperties","type": "uint32_t"} +,{"typedef": "vr::TextureID_t","type": "int32_t"} +,{"typedef": "vr::VRNotificationId","type": "uint32_t"} +,{"typedef": "vr::HmdError","type": "enum vr::EVRInitError"} +,{"typedef": "vr::Hmd_Eye","type": "enum vr::EVREye"} +,{"typedef": "vr::ColorSpace","type": "enum vr::EColorSpace"} +,{"typedef": "vr::HmdTrackingResult","type": "enum vr::ETrackingResult"} +,{"typedef": "vr::TrackedDeviceClass","type": "enum vr::ETrackedDeviceClass"} +,{"typedef": "vr::TrackingUniverseOrigin","type": "enum vr::ETrackingUniverseOrigin"} +,{"typedef": "vr::TrackedDeviceProperty","type": "enum vr::ETrackedDeviceProperty"} +,{"typedef": "vr::TrackedPropertyError","type": "enum vr::ETrackedPropertyError"} +,{"typedef": "vr::VRSubmitFlags_t","type": "enum vr::EVRSubmitFlags"} +,{"typedef": "vr::VRState_t","type": "enum vr::EVRState"} +,{"typedef": "vr::CollisionBoundsStyle_t","type": "enum vr::ECollisionBoundsStyle"} +,{"typedef": "vr::VROverlayError","type": "enum vr::EVROverlayError"} +,{"typedef": "vr::VRFirmwareError","type": "enum vr::EVRFirmwareError"} +,{"typedef": "vr::VRCompositorError","type": "enum vr::EVRCompositorError"} +,{"typedef": "vr::VRScreenshotsError","type": "enum vr::EVRScreenshotError"} +], +"enums":[ + {"enumname": "vr::EVREye","values": [ + {"name": "Eye_Left","value": "0"} + ,{"name": "Eye_Right","value": "1"} +]} +, {"enumname": "vr::ETextureType","values": [ + {"name": "TextureType_DirectX","value": "0"} + ,{"name": "TextureType_OpenGL","value": "1"} + ,{"name": "TextureType_Vulkan","value": "2"} + ,{"name": "TextureType_IOSurface","value": "3"} + ,{"name": "TextureType_DirectX12","value": "4"} +]} +, {"enumname": "vr::EColorSpace","values": [ + {"name": "ColorSpace_Auto","value": "0"} + ,{"name": "ColorSpace_Gamma","value": "1"} + ,{"name": "ColorSpace_Linear","value": "2"} +]} +, {"enumname": "vr::ETrackingResult","values": [ + {"name": "TrackingResult_Uninitialized","value": "1"} + ,{"name": "TrackingResult_Calibrating_InProgress","value": "100"} + ,{"name": "TrackingResult_Calibrating_OutOfRange","value": "101"} + ,{"name": "TrackingResult_Running_OK","value": "200"} + ,{"name": "TrackingResult_Running_OutOfRange","value": "201"} +]} +, {"enumname": "vr::ETrackedDeviceClass","values": [ + {"name": "TrackedDeviceClass_Invalid","value": "0"} + ,{"name": "TrackedDeviceClass_HMD","value": "1"} + ,{"name": "TrackedDeviceClass_Controller","value": "2"} + ,{"name": "TrackedDeviceClass_GenericTracker","value": "3"} + ,{"name": "TrackedDeviceClass_TrackingReference","value": "4"} + ,{"name": "TrackedDeviceClass_DisplayRedirect","value": "5"} +]} +, {"enumname": "vr::ETrackedControllerRole","values": [ + {"name": "TrackedControllerRole_Invalid","value": "0"} + ,{"name": "TrackedControllerRole_LeftHand","value": "1"} + ,{"name": "TrackedControllerRole_RightHand","value": "2"} +]} +, {"enumname": "vr::ETrackingUniverseOrigin","values": [ + {"name": "TrackingUniverseSeated","value": "0"} + ,{"name": "TrackingUniverseStanding","value": "1"} + ,{"name": "TrackingUniverseRawAndUncalibrated","value": "2"} +]} +, {"enumname": "vr::ETrackedDeviceProperty","values": [ + {"name": "Prop_Invalid","value": "0"} + ,{"name": "Prop_TrackingSystemName_String","value": "1000"} + ,{"name": "Prop_ModelNumber_String","value": "1001"} + ,{"name": "Prop_SerialNumber_String","value": "1002"} + ,{"name": "Prop_RenderModelName_String","value": "1003"} + ,{"name": "Prop_WillDriftInYaw_Bool","value": "1004"} + ,{"name": "Prop_ManufacturerName_String","value": "1005"} + ,{"name": "Prop_TrackingFirmwareVersion_String","value": "1006"} + ,{"name": "Prop_HardwareRevision_String","value": "1007"} + ,{"name": "Prop_AllWirelessDongleDescriptions_String","value": "1008"} + ,{"name": "Prop_ConnectedWirelessDongle_String","value": "1009"} + ,{"name": "Prop_DeviceIsWireless_Bool","value": "1010"} + ,{"name": "Prop_DeviceIsCharging_Bool","value": "1011"} + ,{"name": "Prop_DeviceBatteryPercentage_Float","value": "1012"} + ,{"name": "Prop_StatusDisplayTransform_Matrix34","value": "1013"} + ,{"name": "Prop_Firmware_UpdateAvailable_Bool","value": "1014"} + ,{"name": "Prop_Firmware_ManualUpdate_Bool","value": "1015"} + ,{"name": "Prop_Firmware_ManualUpdateURL_String","value": "1016"} + ,{"name": "Prop_HardwareRevision_Uint64","value": "1017"} + ,{"name": "Prop_FirmwareVersion_Uint64","value": "1018"} + ,{"name": "Prop_FPGAVersion_Uint64","value": "1019"} + ,{"name": "Prop_VRCVersion_Uint64","value": "1020"} + ,{"name": "Prop_RadioVersion_Uint64","value": "1021"} + ,{"name": "Prop_DongleVersion_Uint64","value": "1022"} + ,{"name": "Prop_BlockServerShutdown_Bool","value": "1023"} + ,{"name": "Prop_CanUnifyCoordinateSystemWithHmd_Bool","value": "1024"} + ,{"name": "Prop_ContainsProximitySensor_Bool","value": "1025"} + ,{"name": "Prop_DeviceProvidesBatteryStatus_Bool","value": "1026"} + ,{"name": "Prop_DeviceCanPowerOff_Bool","value": "1027"} + ,{"name": "Prop_Firmware_ProgrammingTarget_String","value": "1028"} + ,{"name": "Prop_DeviceClass_Int32","value": "1029"} + ,{"name": "Prop_HasCamera_Bool","value": "1030"} + ,{"name": "Prop_DriverVersion_String","value": "1031"} + ,{"name": "Prop_Firmware_ForceUpdateRequired_Bool","value": "1032"} + ,{"name": "Prop_ViveSystemButtonFixRequired_Bool","value": "1033"} + ,{"name": "Prop_ParentDriver_Uint64","value": "1034"} + ,{"name": "Prop_ResourceRoot_String","value": "1035"} + ,{"name": "Prop_ReportsTimeSinceVSync_Bool","value": "2000"} + ,{"name": "Prop_SecondsFromVsyncToPhotons_Float","value": "2001"} + ,{"name": "Prop_DisplayFrequency_Float","value": "2002"} + ,{"name": "Prop_UserIpdMeters_Float","value": "2003"} + ,{"name": "Prop_CurrentUniverseId_Uint64","value": "2004"} + ,{"name": "Prop_PreviousUniverseId_Uint64","value": "2005"} + ,{"name": "Prop_DisplayFirmwareVersion_Uint64","value": "2006"} + ,{"name": "Prop_IsOnDesktop_Bool","value": "2007"} + ,{"name": "Prop_DisplayMCType_Int32","value": "2008"} + ,{"name": "Prop_DisplayMCOffset_Float","value": "2009"} + ,{"name": "Prop_DisplayMCScale_Float","value": "2010"} + ,{"name": "Prop_EdidVendorID_Int32","value": "2011"} + ,{"name": "Prop_DisplayMCImageLeft_String","value": "2012"} + ,{"name": "Prop_DisplayMCImageRight_String","value": "2013"} + ,{"name": "Prop_DisplayGCBlackClamp_Float","value": "2014"} + ,{"name": "Prop_EdidProductID_Int32","value": "2015"} + ,{"name": "Prop_CameraToHeadTransform_Matrix34","value": "2016"} + ,{"name": "Prop_DisplayGCType_Int32","value": "2017"} + ,{"name": "Prop_DisplayGCOffset_Float","value": "2018"} + ,{"name": "Prop_DisplayGCScale_Float","value": "2019"} + ,{"name": "Prop_DisplayGCPrescale_Float","value": "2020"} + ,{"name": "Prop_DisplayGCImage_String","value": "2021"} + ,{"name": "Prop_LensCenterLeftU_Float","value": "2022"} + ,{"name": "Prop_LensCenterLeftV_Float","value": "2023"} + ,{"name": "Prop_LensCenterRightU_Float","value": "2024"} + ,{"name": "Prop_LensCenterRightV_Float","value": "2025"} + ,{"name": "Prop_UserHeadToEyeDepthMeters_Float","value": "2026"} + ,{"name": "Prop_CameraFirmwareVersion_Uint64","value": "2027"} + ,{"name": "Prop_CameraFirmwareDescription_String","value": "2028"} + ,{"name": "Prop_DisplayFPGAVersion_Uint64","value": "2029"} + ,{"name": "Prop_DisplayBootloaderVersion_Uint64","value": "2030"} + ,{"name": "Prop_DisplayHardwareVersion_Uint64","value": "2031"} + ,{"name": "Prop_AudioFirmwareVersion_Uint64","value": "2032"} + ,{"name": "Prop_CameraCompatibilityMode_Int32","value": "2033"} + ,{"name": "Prop_ScreenshotHorizontalFieldOfViewDegrees_Float","value": "2034"} + ,{"name": "Prop_ScreenshotVerticalFieldOfViewDegrees_Float","value": "2035"} + ,{"name": "Prop_DisplaySuppressed_Bool","value": "2036"} + ,{"name": "Prop_DisplayAllowNightMode_Bool","value": "2037"} + ,{"name": "Prop_DisplayMCImageWidth_Int32","value": "2038"} + ,{"name": "Prop_DisplayMCImageHeight_Int32","value": "2039"} + ,{"name": "Prop_DisplayMCImageNumChannels_Int32","value": "2040"} + ,{"name": "Prop_DisplayMCImageData_Binary","value": "2041"} + ,{"name": "Prop_SecondsFromPhotonsToVblank_Float","value": "2042"} + ,{"name": "Prop_DriverDirectModeSendsVsyncEvents_Bool","value": "2043"} + ,{"name": "Prop_DisplayDebugMode_Bool","value": "2044"} + ,{"name": "Prop_GraphicsAdapterLuid_Uint64","value": "2045"} + ,{"name": "Prop_AttachedDeviceId_String","value": "3000"} + ,{"name": "Prop_SupportedButtons_Uint64","value": "3001"} + ,{"name": "Prop_Axis0Type_Int32","value": "3002"} + ,{"name": "Prop_Axis1Type_Int32","value": "3003"} + ,{"name": "Prop_Axis2Type_Int32","value": "3004"} + ,{"name": "Prop_Axis3Type_Int32","value": "3005"} + ,{"name": "Prop_Axis4Type_Int32","value": "3006"} + ,{"name": "Prop_ControllerRoleHint_Int32","value": "3007"} + ,{"name": "Prop_FieldOfViewLeftDegrees_Float","value": "4000"} + ,{"name": "Prop_FieldOfViewRightDegrees_Float","value": "4001"} + ,{"name": "Prop_FieldOfViewTopDegrees_Float","value": "4002"} + ,{"name": "Prop_FieldOfViewBottomDegrees_Float","value": "4003"} + ,{"name": "Prop_TrackingRangeMinimumMeters_Float","value": "4004"} + ,{"name": "Prop_TrackingRangeMaximumMeters_Float","value": "4005"} + ,{"name": "Prop_ModeLabel_String","value": "4006"} + ,{"name": "Prop_IconPathName_String","value": "5000"} + ,{"name": "Prop_NamedIconPathDeviceOff_String","value": "5001"} + ,{"name": "Prop_NamedIconPathDeviceSearching_String","value": "5002"} + ,{"name": "Prop_NamedIconPathDeviceSearchingAlert_String","value": "5003"} + ,{"name": "Prop_NamedIconPathDeviceReady_String","value": "5004"} + ,{"name": "Prop_NamedIconPathDeviceReadyAlert_String","value": "5005"} + ,{"name": "Prop_NamedIconPathDeviceNotReady_String","value": "5006"} + ,{"name": "Prop_NamedIconPathDeviceStandby_String","value": "5007"} + ,{"name": "Prop_NamedIconPathDeviceAlertLow_String","value": "5008"} + ,{"name": "Prop_DisplayHiddenArea_Binary_Start","value": "5100"} + ,{"name": "Prop_DisplayHiddenArea_Binary_End","value": "5150"} + ,{"name": "Prop_UserConfigPath_String","value": "6000"} + ,{"name": "Prop_InstallPath_String","value": "6001"} + ,{"name": "Prop_HasDisplayComponent_Bool","value": "6002"} + ,{"name": "Prop_HasControllerComponent_Bool","value": "6003"} + ,{"name": "Prop_HasCameraComponent_Bool","value": "6004"} + ,{"name": "Prop_HasDriverDirectModeComponent_Bool","value": "6005"} + ,{"name": "Prop_HasVirtualDisplayComponent_Bool","value": "6006"} + ,{"name": "Prop_VendorSpecific_Reserved_Start","value": "10000"} + ,{"name": "Prop_VendorSpecific_Reserved_End","value": "10999"} +]} +, {"enumname": "vr::ETrackedPropertyError","values": [ + {"name": "TrackedProp_Success","value": "0"} + ,{"name": "TrackedProp_WrongDataType","value": "1"} + ,{"name": "TrackedProp_WrongDeviceClass","value": "2"} + ,{"name": "TrackedProp_BufferTooSmall","value": "3"} + ,{"name": "TrackedProp_UnknownProperty","value": "4"} + ,{"name": "TrackedProp_InvalidDevice","value": "5"} + ,{"name": "TrackedProp_CouldNotContactServer","value": "6"} + ,{"name": "TrackedProp_ValueNotProvidedByDevice","value": "7"} + ,{"name": "TrackedProp_StringExceedsMaximumLength","value": "8"} + ,{"name": "TrackedProp_NotYetAvailable","value": "9"} + ,{"name": "TrackedProp_PermissionDenied","value": "10"} + ,{"name": "TrackedProp_InvalidOperation","value": "11"} +]} +, {"enumname": "vr::EVRSubmitFlags","values": [ + {"name": "Submit_Default","value": "0"} + ,{"name": "Submit_LensDistortionAlreadyApplied","value": "1"} + ,{"name": "Submit_GlRenderBuffer","value": "2"} + ,{"name": "Submit_Reserved","value": "4"} +]} +, {"enumname": "vr::EVRState","values": [ + {"name": "VRState_Undefined","value": "-1"} + ,{"name": "VRState_Off","value": "0"} + ,{"name": "VRState_Searching","value": "1"} + ,{"name": "VRState_Searching_Alert","value": "2"} + ,{"name": "VRState_Ready","value": "3"} + ,{"name": "VRState_Ready_Alert","value": "4"} + ,{"name": "VRState_NotReady","value": "5"} + ,{"name": "VRState_Standby","value": "6"} + ,{"name": "VRState_Ready_Alert_Low","value": "7"} +]} +, {"enumname": "vr::EVREventType","values": [ + {"name": "VREvent_None","value": "0"} + ,{"name": "VREvent_TrackedDeviceActivated","value": "100"} + ,{"name": "VREvent_TrackedDeviceDeactivated","value": "101"} + ,{"name": "VREvent_TrackedDeviceUpdated","value": "102"} + ,{"name": "VREvent_TrackedDeviceUserInteractionStarted","value": "103"} + ,{"name": "VREvent_TrackedDeviceUserInteractionEnded","value": "104"} + ,{"name": "VREvent_IpdChanged","value": "105"} + ,{"name": "VREvent_EnterStandbyMode","value": "106"} + ,{"name": "VREvent_LeaveStandbyMode","value": "107"} + ,{"name": "VREvent_TrackedDeviceRoleChanged","value": "108"} + ,{"name": "VREvent_WatchdogWakeUpRequested","value": "109"} + ,{"name": "VREvent_LensDistortionChanged","value": "110"} + ,{"name": "VREvent_PropertyChanged","value": "111"} + ,{"name": "VREvent_ButtonPress","value": "200"} + ,{"name": "VREvent_ButtonUnpress","value": "201"} + ,{"name": "VREvent_ButtonTouch","value": "202"} + ,{"name": "VREvent_ButtonUntouch","value": "203"} + ,{"name": "VREvent_MouseMove","value": "300"} + ,{"name": "VREvent_MouseButtonDown","value": "301"} + ,{"name": "VREvent_MouseButtonUp","value": "302"} + ,{"name": "VREvent_FocusEnter","value": "303"} + ,{"name": "VREvent_FocusLeave","value": "304"} + ,{"name": "VREvent_Scroll","value": "305"} + ,{"name": "VREvent_TouchPadMove","value": "306"} + ,{"name": "VREvent_OverlayFocusChanged","value": "307"} + ,{"name": "VREvent_InputFocusCaptured","value": "400"} + ,{"name": "VREvent_InputFocusReleased","value": "401"} + ,{"name": "VREvent_SceneFocusLost","value": "402"} + ,{"name": "VREvent_SceneFocusGained","value": "403"} + ,{"name": "VREvent_SceneApplicationChanged","value": "404"} + ,{"name": "VREvent_SceneFocusChanged","value": "405"} + ,{"name": "VREvent_InputFocusChanged","value": "406"} + ,{"name": "VREvent_SceneApplicationSecondaryRenderingStarted","value": "407"} + ,{"name": "VREvent_HideRenderModels","value": "410"} + ,{"name": "VREvent_ShowRenderModels","value": "411"} + ,{"name": "VREvent_OverlayShown","value": "500"} + ,{"name": "VREvent_OverlayHidden","value": "501"} + ,{"name": "VREvent_DashboardActivated","value": "502"} + ,{"name": "VREvent_DashboardDeactivated","value": "503"} + ,{"name": "VREvent_DashboardThumbSelected","value": "504"} + ,{"name": "VREvent_DashboardRequested","value": "505"} + ,{"name": "VREvent_ResetDashboard","value": "506"} + ,{"name": "VREvent_RenderToast","value": "507"} + ,{"name": "VREvent_ImageLoaded","value": "508"} + ,{"name": "VREvent_ShowKeyboard","value": "509"} + ,{"name": "VREvent_HideKeyboard","value": "510"} + ,{"name": "VREvent_OverlayGamepadFocusGained","value": "511"} + ,{"name": "VREvent_OverlayGamepadFocusLost","value": "512"} + ,{"name": "VREvent_OverlaySharedTextureChanged","value": "513"} + ,{"name": "VREvent_DashboardGuideButtonDown","value": "514"} + ,{"name": "VREvent_DashboardGuideButtonUp","value": "515"} + ,{"name": "VREvent_ScreenshotTriggered","value": "516"} + ,{"name": "VREvent_ImageFailed","value": "517"} + ,{"name": "VREvent_DashboardOverlayCreated","value": "518"} + ,{"name": "VREvent_RequestScreenshot","value": "520"} + ,{"name": "VREvent_ScreenshotTaken","value": "521"} + ,{"name": "VREvent_ScreenshotFailed","value": "522"} + ,{"name": "VREvent_SubmitScreenshotToDashboard","value": "523"} + ,{"name": "VREvent_ScreenshotProgressToDashboard","value": "524"} + ,{"name": "VREvent_PrimaryDashboardDeviceChanged","value": "525"} + ,{"name": "VREvent_Notification_Shown","value": "600"} + ,{"name": "VREvent_Notification_Hidden","value": "601"} + ,{"name": "VREvent_Notification_BeginInteraction","value": "602"} + ,{"name": "VREvent_Notification_Destroyed","value": "603"} + ,{"name": "VREvent_Quit","value": "700"} + ,{"name": "VREvent_ProcessQuit","value": "701"} + ,{"name": "VREvent_QuitAborted_UserPrompt","value": "702"} + ,{"name": "VREvent_QuitAcknowledged","value": "703"} + ,{"name": "VREvent_DriverRequestedQuit","value": "704"} + ,{"name": "VREvent_ChaperoneDataHasChanged","value": "800"} + ,{"name": "VREvent_ChaperoneUniverseHasChanged","value": "801"} + ,{"name": "VREvent_ChaperoneTempDataHasChanged","value": "802"} + ,{"name": "VREvent_ChaperoneSettingsHaveChanged","value": "803"} + ,{"name": "VREvent_SeatedZeroPoseReset","value": "804"} + ,{"name": "VREvent_AudioSettingsHaveChanged","value": "820"} + ,{"name": "VREvent_BackgroundSettingHasChanged","value": "850"} + ,{"name": "VREvent_CameraSettingsHaveChanged","value": "851"} + ,{"name": "VREvent_ReprojectionSettingHasChanged","value": "852"} + ,{"name": "VREvent_ModelSkinSettingsHaveChanged","value": "853"} + ,{"name": "VREvent_EnvironmentSettingsHaveChanged","value": "854"} + ,{"name": "VREvent_PowerSettingsHaveChanged","value": "855"} + ,{"name": "VREvent_EnableHomeAppSettingsHaveChanged","value": "856"} + ,{"name": "VREvent_StatusUpdate","value": "900"} + ,{"name": "VREvent_MCImageUpdated","value": "1000"} + ,{"name": "VREvent_FirmwareUpdateStarted","value": "1100"} + ,{"name": "VREvent_FirmwareUpdateFinished","value": "1101"} + ,{"name": "VREvent_KeyboardClosed","value": "1200"} + ,{"name": "VREvent_KeyboardCharInput","value": "1201"} + ,{"name": "VREvent_KeyboardDone","value": "1202"} + ,{"name": "VREvent_ApplicationTransitionStarted","value": "1300"} + ,{"name": "VREvent_ApplicationTransitionAborted","value": "1301"} + ,{"name": "VREvent_ApplicationTransitionNewAppStarted","value": "1302"} + ,{"name": "VREvent_ApplicationListUpdated","value": "1303"} + ,{"name": "VREvent_ApplicationMimeTypeLoad","value": "1304"} + ,{"name": "VREvent_ApplicationTransitionNewAppLaunchComplete","value": "1305"} + ,{"name": "VREvent_ProcessConnected","value": "1306"} + ,{"name": "VREvent_ProcessDisconnected","value": "1307"} + ,{"name": "VREvent_Compositor_MirrorWindowShown","value": "1400"} + ,{"name": "VREvent_Compositor_MirrorWindowHidden","value": "1401"} + ,{"name": "VREvent_Compositor_ChaperoneBoundsShown","value": "1410"} + ,{"name": "VREvent_Compositor_ChaperoneBoundsHidden","value": "1411"} + ,{"name": "VREvent_TrackedCamera_StartVideoStream","value": "1500"} + ,{"name": "VREvent_TrackedCamera_StopVideoStream","value": "1501"} + ,{"name": "VREvent_TrackedCamera_PauseVideoStream","value": "1502"} + ,{"name": "VREvent_TrackedCamera_ResumeVideoStream","value": "1503"} + ,{"name": "VREvent_TrackedCamera_EditingSurface","value": "1550"} + ,{"name": "VREvent_PerformanceTest_EnableCapture","value": "1600"} + ,{"name": "VREvent_PerformanceTest_DisableCapture","value": "1601"} + ,{"name": "VREvent_PerformanceTest_FidelityLevel","value": "1602"} + ,{"name": "VREvent_MessageOverlay_Closed","value": "1650"} + ,{"name": "VREvent_VendorSpecific_Reserved_Start","value": "10000"} + ,{"name": "VREvent_VendorSpecific_Reserved_End","value": "19999"} +]} +, {"enumname": "vr::EDeviceActivityLevel","values": [ + {"name": "k_EDeviceActivityLevel_Unknown","value": "-1"} + ,{"name": "k_EDeviceActivityLevel_Idle","value": "0"} + ,{"name": "k_EDeviceActivityLevel_UserInteraction","value": "1"} + ,{"name": "k_EDeviceActivityLevel_UserInteraction_Timeout","value": "2"} + ,{"name": "k_EDeviceActivityLevel_Standby","value": "3"} +]} +, {"enumname": "vr::EVRButtonId","values": [ + {"name": "k_EButton_System","value": "0"} + ,{"name": "k_EButton_ApplicationMenu","value": "1"} + ,{"name": "k_EButton_Grip","value": "2"} + ,{"name": "k_EButton_DPad_Left","value": "3"} + ,{"name": "k_EButton_DPad_Up","value": "4"} + ,{"name": "k_EButton_DPad_Right","value": "5"} + ,{"name": "k_EButton_DPad_Down","value": "6"} + ,{"name": "k_EButton_A","value": "7"} + ,{"name": "k_EButton_ProximitySensor","value": "31"} + ,{"name": "k_EButton_Axis0","value": "32"} + ,{"name": "k_EButton_Axis1","value": "33"} + ,{"name": "k_EButton_Axis2","value": "34"} + ,{"name": "k_EButton_Axis3","value": "35"} + ,{"name": "k_EButton_Axis4","value": "36"} + ,{"name": "k_EButton_SteamVR_Touchpad","value": "32"} + ,{"name": "k_EButton_SteamVR_Trigger","value": "33"} + ,{"name": "k_EButton_Dashboard_Back","value": "2"} + ,{"name": "k_EButton_Max","value": "64"} +]} +, {"enumname": "vr::EVRMouseButton","values": [ + {"name": "VRMouseButton_Left","value": "1"} + ,{"name": "VRMouseButton_Right","value": "2"} + ,{"name": "VRMouseButton_Middle","value": "4"} +]} +, {"enumname": "vr::EHiddenAreaMeshType","values": [ + {"name": "k_eHiddenAreaMesh_Standard","value": "0"} + ,{"name": "k_eHiddenAreaMesh_Inverse","value": "1"} + ,{"name": "k_eHiddenAreaMesh_LineLoop","value": "2"} + ,{"name": "k_eHiddenAreaMesh_Max","value": "3"} +]} +, {"enumname": "vr::EVRControllerAxisType","values": [ + {"name": "k_eControllerAxis_None","value": "0"} + ,{"name": "k_eControllerAxis_TrackPad","value": "1"} + ,{"name": "k_eControllerAxis_Joystick","value": "2"} + ,{"name": "k_eControllerAxis_Trigger","value": "3"} +]} +, {"enumname": "vr::EVRControllerEventOutputType","values": [ + {"name": "ControllerEventOutput_OSEvents","value": "0"} + ,{"name": "ControllerEventOutput_VREvents","value": "1"} +]} +, {"enumname": "vr::ECollisionBoundsStyle","values": [ + {"name": "COLLISION_BOUNDS_STYLE_BEGINNER","value": "0"} + ,{"name": "COLLISION_BOUNDS_STYLE_INTERMEDIATE","value": "1"} + ,{"name": "COLLISION_BOUNDS_STYLE_SQUARES","value": "2"} + ,{"name": "COLLISION_BOUNDS_STYLE_ADVANCED","value": "3"} + ,{"name": "COLLISION_BOUNDS_STYLE_NONE","value": "4"} + ,{"name": "COLLISION_BOUNDS_STYLE_COUNT","value": "5"} +]} +, {"enumname": "vr::EVROverlayError","values": [ + {"name": "VROverlayError_None","value": "0"} + ,{"name": "VROverlayError_UnknownOverlay","value": "10"} + ,{"name": "VROverlayError_InvalidHandle","value": "11"} + ,{"name": "VROverlayError_PermissionDenied","value": "12"} + ,{"name": "VROverlayError_OverlayLimitExceeded","value": "13"} + ,{"name": "VROverlayError_WrongVisibilityType","value": "14"} + ,{"name": "VROverlayError_KeyTooLong","value": "15"} + ,{"name": "VROverlayError_NameTooLong","value": "16"} + ,{"name": "VROverlayError_KeyInUse","value": "17"} + ,{"name": "VROverlayError_WrongTransformType","value": "18"} + ,{"name": "VROverlayError_InvalidTrackedDevice","value": "19"} + ,{"name": "VROverlayError_InvalidParameter","value": "20"} + ,{"name": "VROverlayError_ThumbnailCantBeDestroyed","value": "21"} + ,{"name": "VROverlayError_ArrayTooSmall","value": "22"} + ,{"name": "VROverlayError_RequestFailed","value": "23"} + ,{"name": "VROverlayError_InvalidTexture","value": "24"} + ,{"name": "VROverlayError_UnableToLoadFile","value": "25"} + ,{"name": "VROverlayError_KeyboardAlreadyInUse","value": "26"} + ,{"name": "VROverlayError_NoNeighbor","value": "27"} + ,{"name": "VROverlayError_TooManyMaskPrimitives","value": "29"} + ,{"name": "VROverlayError_BadMaskPrimitive","value": "30"} +]} +, {"enumname": "vr::EVRApplicationType","values": [ + {"name": "VRApplication_Other","value": "0"} + ,{"name": "VRApplication_Scene","value": "1"} + ,{"name": "VRApplication_Overlay","value": "2"} + ,{"name": "VRApplication_Background","value": "3"} + ,{"name": "VRApplication_Utility","value": "4"} + ,{"name": "VRApplication_VRMonitor","value": "5"} + ,{"name": "VRApplication_SteamWatchdog","value": "6"} + ,{"name": "VRApplication_Bootstrapper","value": "7"} + ,{"name": "VRApplication_Max","value": "8"} +]} +, {"enumname": "vr::EVRFirmwareError","values": [ + {"name": "VRFirmwareError_None","value": "0"} + ,{"name": "VRFirmwareError_Success","value": "1"} + ,{"name": "VRFirmwareError_Fail","value": "2"} +]} +, {"enumname": "vr::EVRNotificationError","values": [ + {"name": "VRNotificationError_OK","value": "0"} + ,{"name": "VRNotificationError_InvalidNotificationId","value": "100"} + ,{"name": "VRNotificationError_NotificationQueueFull","value": "101"} + ,{"name": "VRNotificationError_InvalidOverlayHandle","value": "102"} + ,{"name": "VRNotificationError_SystemWithUserValueAlreadyExists","value": "103"} +]} +, {"enumname": "vr::EVRInitError","values": [ + {"name": "VRInitError_None","value": "0"} + ,{"name": "VRInitError_Unknown","value": "1"} + ,{"name": "VRInitError_Init_InstallationNotFound","value": "100"} + ,{"name": "VRInitError_Init_InstallationCorrupt","value": "101"} + ,{"name": "VRInitError_Init_VRClientDLLNotFound","value": "102"} + ,{"name": "VRInitError_Init_FileNotFound","value": "103"} + ,{"name": "VRInitError_Init_FactoryNotFound","value": "104"} + ,{"name": "VRInitError_Init_InterfaceNotFound","value": "105"} + ,{"name": "VRInitError_Init_InvalidInterface","value": "106"} + ,{"name": "VRInitError_Init_UserConfigDirectoryInvalid","value": "107"} + ,{"name": "VRInitError_Init_HmdNotFound","value": "108"} + ,{"name": "VRInitError_Init_NotInitialized","value": "109"} + ,{"name": "VRInitError_Init_PathRegistryNotFound","value": "110"} + ,{"name": "VRInitError_Init_NoConfigPath","value": "111"} + ,{"name": "VRInitError_Init_NoLogPath","value": "112"} + ,{"name": "VRInitError_Init_PathRegistryNotWritable","value": "113"} + ,{"name": "VRInitError_Init_AppInfoInitFailed","value": "114"} + ,{"name": "VRInitError_Init_Retry","value": "115"} + ,{"name": "VRInitError_Init_InitCanceledByUser","value": "116"} + ,{"name": "VRInitError_Init_AnotherAppLaunching","value": "117"} + ,{"name": "VRInitError_Init_SettingsInitFailed","value": "118"} + ,{"name": "VRInitError_Init_ShuttingDown","value": "119"} + ,{"name": "VRInitError_Init_TooManyObjects","value": "120"} + ,{"name": "VRInitError_Init_NoServerForBackgroundApp","value": "121"} + ,{"name": "VRInitError_Init_NotSupportedWithCompositor","value": "122"} + ,{"name": "VRInitError_Init_NotAvailableToUtilityApps","value": "123"} + ,{"name": "VRInitError_Init_Internal","value": "124"} + ,{"name": "VRInitError_Init_HmdDriverIdIsNone","value": "125"} + ,{"name": "VRInitError_Init_HmdNotFoundPresenceFailed","value": "126"} + ,{"name": "VRInitError_Init_VRMonitorNotFound","value": "127"} + ,{"name": "VRInitError_Init_VRMonitorStartupFailed","value": "128"} + ,{"name": "VRInitError_Init_LowPowerWatchdogNotSupported","value": "129"} + ,{"name": "VRInitError_Init_InvalidApplicationType","value": "130"} + ,{"name": "VRInitError_Init_NotAvailableToWatchdogApps","value": "131"} + ,{"name": "VRInitError_Init_WatchdogDisabledInSettings","value": "132"} + ,{"name": "VRInitError_Init_VRDashboardNotFound","value": "133"} + ,{"name": "VRInitError_Init_VRDashboardStartupFailed","value": "134"} + ,{"name": "VRInitError_Init_VRHomeNotFound","value": "135"} + ,{"name": "VRInitError_Init_VRHomeStartupFailed","value": "136"} + ,{"name": "VRInitError_Driver_Failed","value": "200"} + ,{"name": "VRInitError_Driver_Unknown","value": "201"} + ,{"name": "VRInitError_Driver_HmdUnknown","value": "202"} + ,{"name": "VRInitError_Driver_NotLoaded","value": "203"} + ,{"name": "VRInitError_Driver_RuntimeOutOfDate","value": "204"} + ,{"name": "VRInitError_Driver_HmdInUse","value": "205"} + ,{"name": "VRInitError_Driver_NotCalibrated","value": "206"} + ,{"name": "VRInitError_Driver_CalibrationInvalid","value": "207"} + ,{"name": "VRInitError_Driver_HmdDisplayNotFound","value": "208"} + ,{"name": "VRInitError_Driver_TrackedDeviceInterfaceUnknown","value": "209"} + ,{"name": "VRInitError_Driver_HmdDriverIdOutOfBounds","value": "211"} + ,{"name": "VRInitError_Driver_HmdDisplayMirrored","value": "212"} + ,{"name": "VRInitError_IPC_ServerInitFailed","value": "300"} + ,{"name": "VRInitError_IPC_ConnectFailed","value": "301"} + ,{"name": "VRInitError_IPC_SharedStateInitFailed","value": "302"} + ,{"name": "VRInitError_IPC_CompositorInitFailed","value": "303"} + ,{"name": "VRInitError_IPC_MutexInitFailed","value": "304"} + ,{"name": "VRInitError_IPC_Failed","value": "305"} + ,{"name": "VRInitError_IPC_CompositorConnectFailed","value": "306"} + ,{"name": "VRInitError_IPC_CompositorInvalidConnectResponse","value": "307"} + ,{"name": "VRInitError_IPC_ConnectFailedAfterMultipleAttempts","value": "308"} + ,{"name": "VRInitError_Compositor_Failed","value": "400"} + ,{"name": "VRInitError_Compositor_D3D11HardwareRequired","value": "401"} + ,{"name": "VRInitError_Compositor_FirmwareRequiresUpdate","value": "402"} + ,{"name": "VRInitError_Compositor_OverlayInitFailed","value": "403"} + ,{"name": "VRInitError_Compositor_ScreenshotsInitFailed","value": "404"} + ,{"name": "VRInitError_Compositor_UnableToCreateDevice","value": "405"} + ,{"name": "VRInitError_VendorSpecific_UnableToConnectToOculusRuntime","value": "1000"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_CantOpenDevice","value": "1101"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart","value": "1102"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_NoStoredConfig","value": "1103"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_ConfigTooBig","value": "1104"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_ConfigTooSmall","value": "1105"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_UnableToInitZLib","value": "1106"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_CantReadFirmwareVersion","value": "1107"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_UnableToSendUserDataStart","value": "1108"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataStart","value": "1109"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataNext","value": "1110"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_UserDataAddressRange","value": "1111"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_UserDataError","value": "1112"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck","value": "1113"} + ,{"name": "VRInitError_Steam_SteamInstallationNotFound","value": "2000"} +]} +, {"enumname": "vr::EVRScreenshotType","values": [ + {"name": "VRScreenshotType_None","value": "0"} + ,{"name": "VRScreenshotType_Mono","value": "1"} + ,{"name": "VRScreenshotType_Stereo","value": "2"} + ,{"name": "VRScreenshotType_Cubemap","value": "3"} + ,{"name": "VRScreenshotType_MonoPanorama","value": "4"} + ,{"name": "VRScreenshotType_StereoPanorama","value": "5"} +]} +, {"enumname": "vr::EVRScreenshotPropertyFilenames","values": [ + {"name": "VRScreenshotPropertyFilenames_Preview","value": "0"} + ,{"name": "VRScreenshotPropertyFilenames_VR","value": "1"} +]} +, {"enumname": "vr::EVRTrackedCameraError","values": [ + {"name": "VRTrackedCameraError_None","value": "0"} + ,{"name": "VRTrackedCameraError_OperationFailed","value": "100"} + ,{"name": "VRTrackedCameraError_InvalidHandle","value": "101"} + ,{"name": "VRTrackedCameraError_InvalidFrameHeaderVersion","value": "102"} + ,{"name": "VRTrackedCameraError_OutOfHandles","value": "103"} + ,{"name": "VRTrackedCameraError_IPCFailure","value": "104"} + ,{"name": "VRTrackedCameraError_NotSupportedForThisDevice","value": "105"} + ,{"name": "VRTrackedCameraError_SharedMemoryFailure","value": "106"} + ,{"name": "VRTrackedCameraError_FrameBufferingFailure","value": "107"} + ,{"name": "VRTrackedCameraError_StreamSetupFailure","value": "108"} + ,{"name": "VRTrackedCameraError_InvalidGLTextureId","value": "109"} + ,{"name": "VRTrackedCameraError_InvalidSharedTextureHandle","value": "110"} + ,{"name": "VRTrackedCameraError_FailedToGetGLTextureId","value": "111"} + ,{"name": "VRTrackedCameraError_SharedTextureFailure","value": "112"} + ,{"name": "VRTrackedCameraError_NoFrameAvailable","value": "113"} + ,{"name": "VRTrackedCameraError_InvalidArgument","value": "114"} + ,{"name": "VRTrackedCameraError_InvalidFrameBufferSize","value": "115"} +]} +, {"enumname": "vr::EVRTrackedCameraFrameType","values": [ + {"name": "VRTrackedCameraFrameType_Distorted","value": "0"} + ,{"name": "VRTrackedCameraFrameType_Undistorted","value": "1"} + ,{"name": "VRTrackedCameraFrameType_MaximumUndistorted","value": "2"} + ,{"name": "MAX_CAMERA_FRAME_TYPES","value": "3"} +]} +, {"enumname": "vr::EVRApplicationError","values": [ + {"name": "VRApplicationError_None","value": "0"} + ,{"name": "VRApplicationError_AppKeyAlreadyExists","value": "100"} + ,{"name": "VRApplicationError_NoManifest","value": "101"} + ,{"name": "VRApplicationError_NoApplication","value": "102"} + ,{"name": "VRApplicationError_InvalidIndex","value": "103"} + ,{"name": "VRApplicationError_UnknownApplication","value": "104"} + ,{"name": "VRApplicationError_IPCFailed","value": "105"} + ,{"name": "VRApplicationError_ApplicationAlreadyRunning","value": "106"} + ,{"name": "VRApplicationError_InvalidManifest","value": "107"} + ,{"name": "VRApplicationError_InvalidApplication","value": "108"} + ,{"name": "VRApplicationError_LaunchFailed","value": "109"} + ,{"name": "VRApplicationError_ApplicationAlreadyStarting","value": "110"} + ,{"name": "VRApplicationError_LaunchInProgress","value": "111"} + ,{"name": "VRApplicationError_OldApplicationQuitting","value": "112"} + ,{"name": "VRApplicationError_TransitionAborted","value": "113"} + ,{"name": "VRApplicationError_IsTemplate","value": "114"} + ,{"name": "VRApplicationError_BufferTooSmall","value": "200"} + ,{"name": "VRApplicationError_PropertyNotSet","value": "201"} + ,{"name": "VRApplicationError_UnknownProperty","value": "202"} + ,{"name": "VRApplicationError_InvalidParameter","value": "203"} +]} +, {"enumname": "vr::EVRApplicationProperty","values": [ + {"name": "VRApplicationProperty_Name_String","value": "0"} + ,{"name": "VRApplicationProperty_LaunchType_String","value": "11"} + ,{"name": "VRApplicationProperty_WorkingDirectory_String","value": "12"} + ,{"name": "VRApplicationProperty_BinaryPath_String","value": "13"} + ,{"name": "VRApplicationProperty_Arguments_String","value": "14"} + ,{"name": "VRApplicationProperty_URL_String","value": "15"} + ,{"name": "VRApplicationProperty_Description_String","value": "50"} + ,{"name": "VRApplicationProperty_NewsURL_String","value": "51"} + ,{"name": "VRApplicationProperty_ImagePath_String","value": "52"} + ,{"name": "VRApplicationProperty_Source_String","value": "53"} + ,{"name": "VRApplicationProperty_IsDashboardOverlay_Bool","value": "60"} + ,{"name": "VRApplicationProperty_IsTemplate_Bool","value": "61"} + ,{"name": "VRApplicationProperty_IsInstanced_Bool","value": "62"} + ,{"name": "VRApplicationProperty_IsInternal_Bool","value": "63"} + ,{"name": "VRApplicationProperty_LastLaunchTime_Uint64","value": "70"} +]} +, {"enumname": "vr::EVRApplicationTransitionState","values": [ + {"name": "VRApplicationTransition_None","value": "0"} + ,{"name": "VRApplicationTransition_OldAppQuitSent","value": "10"} + ,{"name": "VRApplicationTransition_WaitingForExternalLaunch","value": "11"} + ,{"name": "VRApplicationTransition_NewAppLaunched","value": "20"} +]} +, {"enumname": "vr::ChaperoneCalibrationState","values": [ + {"name": "ChaperoneCalibrationState_OK","value": "1"} + ,{"name": "ChaperoneCalibrationState_Warning","value": "100"} + ,{"name": "ChaperoneCalibrationState_Warning_BaseStationMayHaveMoved","value": "101"} + ,{"name": "ChaperoneCalibrationState_Warning_BaseStationRemoved","value": "102"} + ,{"name": "ChaperoneCalibrationState_Warning_SeatedBoundsInvalid","value": "103"} + ,{"name": "ChaperoneCalibrationState_Error","value": "200"} + ,{"name": "ChaperoneCalibrationState_Error_BaseStationUninitialized","value": "201"} + ,{"name": "ChaperoneCalibrationState_Error_BaseStationConflict","value": "202"} + ,{"name": "ChaperoneCalibrationState_Error_PlayAreaInvalid","value": "203"} + ,{"name": "ChaperoneCalibrationState_Error_CollisionBoundsInvalid","value": "204"} +]} +, {"enumname": "vr::EChaperoneConfigFile","values": [ + {"name": "EChaperoneConfigFile_Live","value": "1"} + ,{"name": "EChaperoneConfigFile_Temp","value": "2"} +]} +, {"enumname": "vr::EChaperoneImportFlags","values": [ + {"name": "EChaperoneImport_BoundsOnly","value": "1"} +]} +, {"enumname": "vr::EVRCompositorError","values": [ + {"name": "VRCompositorError_None","value": "0"} + ,{"name": "VRCompositorError_RequestFailed","value": "1"} + ,{"name": "VRCompositorError_IncompatibleVersion","value": "100"} + ,{"name": "VRCompositorError_DoNotHaveFocus","value": "101"} + ,{"name": "VRCompositorError_InvalidTexture","value": "102"} + ,{"name": "VRCompositorError_IsNotSceneApplication","value": "103"} + ,{"name": "VRCompositorError_TextureIsOnWrongDevice","value": "104"} + ,{"name": "VRCompositorError_TextureUsesUnsupportedFormat","value": "105"} + ,{"name": "VRCompositorError_SharedTexturesNotSupported","value": "106"} + ,{"name": "VRCompositorError_IndexOutOfRange","value": "107"} + ,{"name": "VRCompositorError_AlreadySubmitted","value": "108"} +]} +, {"enumname": "vr::VROverlayInputMethod","values": [ + {"name": "VROverlayInputMethod_None","value": "0"} + ,{"name": "VROverlayInputMethod_Mouse","value": "1"} +]} +, {"enumname": "vr::VROverlayTransformType","values": [ + {"name": "VROverlayTransform_Absolute","value": "0"} + ,{"name": "VROverlayTransform_TrackedDeviceRelative","value": "1"} + ,{"name": "VROverlayTransform_SystemOverlay","value": "2"} + ,{"name": "VROverlayTransform_TrackedComponent","value": "3"} +]} +, {"enumname": "vr::VROverlayFlags","values": [ + {"name": "VROverlayFlags_None","value": "0"} + ,{"name": "VROverlayFlags_Curved","value": "1"} + ,{"name": "VROverlayFlags_RGSS4X","value": "2"} + ,{"name": "VROverlayFlags_NoDashboardTab","value": "3"} + ,{"name": "VROverlayFlags_AcceptsGamepadEvents","value": "4"} + ,{"name": "VROverlayFlags_ShowGamepadFocus","value": "5"} + ,{"name": "VROverlayFlags_SendVRScrollEvents","value": "6"} + ,{"name": "VROverlayFlags_SendVRTouchpadEvents","value": "7"} + ,{"name": "VROverlayFlags_ShowTouchPadScrollWheel","value": "8"} + ,{"name": "VROverlayFlags_TransferOwnershipToInternalProcess","value": "9"} + ,{"name": "VROverlayFlags_SideBySide_Parallel","value": "10"} + ,{"name": "VROverlayFlags_SideBySide_Crossed","value": "11"} + ,{"name": "VROverlayFlags_Panorama","value": "12"} + ,{"name": "VROverlayFlags_StereoPanorama","value": "13"} + ,{"name": "VROverlayFlags_SortWithNonSceneOverlays","value": "14"} + ,{"name": "VROverlayFlags_VisibleInDashboard","value": "15"} +]} +, {"enumname": "vr::VRMessageOverlayResponse","values": [ + {"name": "VRMessageOverlayResponse_ButtonPress_0","value": "0"} + ,{"name": "VRMessageOverlayResponse_ButtonPress_1","value": "1"} + ,{"name": "VRMessageOverlayResponse_ButtonPress_2","value": "2"} + ,{"name": "VRMessageOverlayResponse_ButtonPress_3","value": "3"} + ,{"name": "VRMessageOverlayResponse_CouldntFindSystemOverlay","value": "4"} + ,{"name": "VRMessageOverlayResponse_CouldntFindOrCreateClientOverlay","value": "5"} + ,{"name": "VRMessageOverlayResponse_ApplicationQuit","value": "6"} +]} +, {"enumname": "vr::EGamepadTextInputMode","values": [ + {"name": "k_EGamepadTextInputModeNormal","value": "0"} + ,{"name": "k_EGamepadTextInputModePassword","value": "1"} + ,{"name": "k_EGamepadTextInputModeSubmit","value": "2"} +]} +, {"enumname": "vr::EGamepadTextInputLineMode","values": [ + {"name": "k_EGamepadTextInputLineModeSingleLine","value": "0"} + ,{"name": "k_EGamepadTextInputLineModeMultipleLines","value": "1"} +]} +, {"enumname": "vr::EOverlayDirection","values": [ + {"name": "OverlayDirection_Up","value": "0"} + ,{"name": "OverlayDirection_Down","value": "1"} + ,{"name": "OverlayDirection_Left","value": "2"} + ,{"name": "OverlayDirection_Right","value": "3"} + ,{"name": "OverlayDirection_Count","value": "4"} +]} +, {"enumname": "vr::EVROverlayIntersectionMaskPrimitiveType","values": [ + {"name": "OverlayIntersectionPrimitiveType_Rectangle","value": "0"} + ,{"name": "OverlayIntersectionPrimitiveType_Circle","value": "1"} +]} +, {"enumname": "vr::EVRRenderModelError","values": [ + {"name": "VRRenderModelError_None","value": "0"} + ,{"name": "VRRenderModelError_Loading","value": "100"} + ,{"name": "VRRenderModelError_NotSupported","value": "200"} + ,{"name": "VRRenderModelError_InvalidArg","value": "300"} + ,{"name": "VRRenderModelError_InvalidModel","value": "301"} + ,{"name": "VRRenderModelError_NoShapes","value": "302"} + ,{"name": "VRRenderModelError_MultipleShapes","value": "303"} + ,{"name": "VRRenderModelError_TooManyVertices","value": "304"} + ,{"name": "VRRenderModelError_MultipleTextures","value": "305"} + ,{"name": "VRRenderModelError_BufferTooSmall","value": "306"} + ,{"name": "VRRenderModelError_NotEnoughNormals","value": "307"} + ,{"name": "VRRenderModelError_NotEnoughTexCoords","value": "308"} + ,{"name": "VRRenderModelError_InvalidTexture","value": "400"} +]} +, {"enumname": "vr::EVRComponentProperty","values": [ + {"name": "VRComponentProperty_IsStatic","value": "1"} + ,{"name": "VRComponentProperty_IsVisible","value": "2"} + ,{"name": "VRComponentProperty_IsTouched","value": "4"} + ,{"name": "VRComponentProperty_IsPressed","value": "8"} + ,{"name": "VRComponentProperty_IsScrolled","value": "16"} +]} +, {"enumname": "vr::EVRNotificationType","values": [ + {"name": "EVRNotificationType_Transient","value": "0"} + ,{"name": "EVRNotificationType_Persistent","value": "1"} + ,{"name": "EVRNotificationType_Transient_SystemWithUserValue","value": "2"} +]} +, {"enumname": "vr::EVRNotificationStyle","values": [ + {"name": "EVRNotificationStyle_None","value": "0"} + ,{"name": "EVRNotificationStyle_Application","value": "100"} + ,{"name": "EVRNotificationStyle_Contact_Disabled","value": "200"} + ,{"name": "EVRNotificationStyle_Contact_Enabled","value": "201"} + ,{"name": "EVRNotificationStyle_Contact_Active","value": "202"} +]} +, {"enumname": "vr::EVRSettingsError","values": [ + {"name": "VRSettingsError_None","value": "0"} + ,{"name": "VRSettingsError_IPCFailed","value": "1"} + ,{"name": "VRSettingsError_WriteFailed","value": "2"} + ,{"name": "VRSettingsError_ReadFailed","value": "3"} + ,{"name": "VRSettingsError_JsonParseFailed","value": "4"} + ,{"name": "VRSettingsError_UnsetSettingHasNoDefault","value": "5"} +]} +, {"enumname": "vr::EVRScreenshotError","values": [ + {"name": "VRScreenshotError_None","value": "0"} + ,{"name": "VRScreenshotError_RequestFailed","value": "1"} + ,{"name": "VRScreenshotError_IncompatibleVersion","value": "100"} + ,{"name": "VRScreenshotError_NotFound","value": "101"} + ,{"name": "VRScreenshotError_BufferTooSmall","value": "102"} + ,{"name": "VRScreenshotError_ScreenshotAlreadyInProgress","value": "108"} +]} +], +"consts":[{ + "constname": "k_nDriverNone","consttype": "const uint32_t", "constval": "4294967295"} +,{ + "constname": "k_unMaxDriverDebugResponseSize","consttype": "const uint32_t", "constval": "32768"} +,{ + "constname": "k_unTrackedDeviceIndex_Hmd","consttype": "const uint32_t", "constval": "0"} +,{ + "constname": "k_unMaxTrackedDeviceCount","consttype": "const uint32_t", "constval": "16"} +,{ + "constname": "k_unTrackedDeviceIndexOther","consttype": "const uint32_t", "constval": "4294967294"} +,{ + "constname": "k_unTrackedDeviceIndexInvalid","consttype": "const uint32_t", "constval": "4294967295"} +,{ + "constname": "k_ulInvalidPropertyContainer","consttype": "const PropertyContainerHandle_t", "constval": "0"} +,{ + "constname": "k_unInvalidPropertyTag","consttype": "const PropertyTypeTag_t", "constval": "0"} +,{ + "constname": "k_unFloatPropertyTag","consttype": "const PropertyTypeTag_t", "constval": "1"} +,{ + "constname": "k_unInt32PropertyTag","consttype": "const PropertyTypeTag_t", "constval": "2"} +,{ + "constname": "k_unUint64PropertyTag","consttype": "const PropertyTypeTag_t", "constval": "3"} +,{ + "constname": "k_unBoolPropertyTag","consttype": "const PropertyTypeTag_t", "constval": "4"} +,{ + "constname": "k_unStringPropertyTag","consttype": "const PropertyTypeTag_t", "constval": "5"} +,{ + "constname": "k_unHmdMatrix34PropertyTag","consttype": "const PropertyTypeTag_t", "constval": "20"} +,{ + "constname": "k_unHmdMatrix44PropertyTag","consttype": "const PropertyTypeTag_t", "constval": "21"} +,{ + "constname": "k_unHmdVector3PropertyTag","consttype": "const PropertyTypeTag_t", "constval": "22"} +,{ + "constname": "k_unHmdVector4PropertyTag","consttype": "const PropertyTypeTag_t", "constval": "23"} +,{ + "constname": "k_unHiddenAreaPropertyTag","consttype": "const PropertyTypeTag_t", "constval": "30"} +,{ + "constname": "k_unOpenVRInternalReserved_Start","consttype": "const PropertyTypeTag_t", "constval": "1000"} +,{ + "constname": "k_unOpenVRInternalReserved_End","consttype": "const PropertyTypeTag_t", "constval": "10000"} +,{ + "constname": "k_unMaxPropertyStringSize","consttype": "const uint32_t", "constval": "32768"} +,{ + "constname": "k_unControllerStateAxisCount","consttype": "const uint32_t", "constval": "5"} +,{ + "constname": "k_ulOverlayHandleInvalid","consttype": "const VROverlayHandle_t", "constval": "0"} +,{ + "constname": "k_unScreenshotHandleInvalid","consttype": "const uint32_t", "constval": "0"} +,{ + "constname": "IVRSystem_Version","consttype": "const char *const", "constval": "IVRSystem_016"} +,{ + "constname": "IVRExtendedDisplay_Version","consttype": "const char *const", "constval": "IVRExtendedDisplay_001"} +,{ + "constname": "IVRTrackedCamera_Version","consttype": "const char *const", "constval": "IVRTrackedCamera_003"} +,{ + "constname": "k_unMaxApplicationKeyLength","consttype": "const uint32_t", "constval": "128"} +,{ + "constname": "k_pch_MimeType_HomeApp","consttype": "const char *const", "constval": "vr/home"} +,{ + "constname": "k_pch_MimeType_GameTheater","consttype": "const char *const", "constval": "vr/game_theater"} +,{ + "constname": "IVRApplications_Version","consttype": "const char *const", "constval": "IVRApplications_006"} +,{ + "constname": "IVRChaperone_Version","consttype": "const char *const", "constval": "IVRChaperone_003"} +,{ + "constname": "IVRChaperoneSetup_Version","consttype": "const char *const", "constval": "IVRChaperoneSetup_005"} +,{ + "constname": "IVRCompositor_Version","consttype": "const char *const", "constval": "IVRCompositor_020"} +,{ + "constname": "k_unVROverlayMaxKeyLength","consttype": "const uint32_t", "constval": "128"} +,{ + "constname": "k_unVROverlayMaxNameLength","consttype": "const uint32_t", "constval": "128"} +,{ + "constname": "k_unMaxOverlayCount","consttype": "const uint32_t", "constval": "64"} +,{ + "constname": "k_unMaxOverlayIntersectionMaskPrimitivesCount","consttype": "const uint32_t", "constval": "32"} +,{ + "constname": "IVROverlay_Version","consttype": "const char *const", "constval": "IVROverlay_016"} +,{ + "constname": "k_pch_Controller_Component_GDC2015","consttype": "const char *const", "constval": "gdc2015"} +,{ + "constname": "k_pch_Controller_Component_Base","consttype": "const char *const", "constval": "base"} +,{ + "constname": "k_pch_Controller_Component_Tip","consttype": "const char *const", "constval": "tip"} +,{ + "constname": "k_pch_Controller_Component_HandGrip","consttype": "const char *const", "constval": "handgrip"} +,{ + "constname": "k_pch_Controller_Component_Status","consttype": "const char *const", "constval": "status"} +,{ + "constname": "IVRRenderModels_Version","consttype": "const char *const", "constval": "IVRRenderModels_005"} +,{ + "constname": "k_unNotificationTextMaxSize","consttype": "const uint32_t", "constval": "256"} +,{ + "constname": "IVRNotifications_Version","consttype": "const char *const", "constval": "IVRNotifications_002"} +,{ + "constname": "k_unMaxSettingsKeyLength","consttype": "const uint32_t", "constval": "128"} +,{ + "constname": "IVRSettings_Version","consttype": "const char *const", "constval": "IVRSettings_002"} +,{ + "constname": "k_pch_SteamVR_Section","consttype": "const char *const", "constval": "steamvr"} +,{ + "constname": "k_pch_SteamVR_RequireHmd_String","consttype": "const char *const", "constval": "requireHmd"} +,{ + "constname": "k_pch_SteamVR_ForcedDriverKey_String","consttype": "const char *const", "constval": "forcedDriver"} +,{ + "constname": "k_pch_SteamVR_ForcedHmdKey_String","consttype": "const char *const", "constval": "forcedHmd"} +,{ + "constname": "k_pch_SteamVR_DisplayDebug_Bool","consttype": "const char *const", "constval": "displayDebug"} +,{ + "constname": "k_pch_SteamVR_DebugProcessPipe_String","consttype": "const char *const", "constval": "debugProcessPipe"} +,{ + "constname": "k_pch_SteamVR_DisplayDebugX_Int32","consttype": "const char *const", "constval": "displayDebugX"} +,{ + "constname": "k_pch_SteamVR_DisplayDebugY_Int32","consttype": "const char *const", "constval": "displayDebugY"} +,{ + "constname": "k_pch_SteamVR_SendSystemButtonToAllApps_Bool","consttype": "const char *const", "constval": "sendSystemButtonToAllApps"} +,{ + "constname": "k_pch_SteamVR_LogLevel_Int32","consttype": "const char *const", "constval": "loglevel"} +,{ + "constname": "k_pch_SteamVR_IPD_Float","consttype": "const char *const", "constval": "ipd"} +,{ + "constname": "k_pch_SteamVR_Background_String","consttype": "const char *const", "constval": "background"} +,{ + "constname": "k_pch_SteamVR_BackgroundUseDomeProjection_Bool","consttype": "const char *const", "constval": "backgroundUseDomeProjection"} +,{ + "constname": "k_pch_SteamVR_BackgroundCameraHeight_Float","consttype": "const char *const", "constval": "backgroundCameraHeight"} +,{ + "constname": "k_pch_SteamVR_BackgroundDomeRadius_Float","consttype": "const char *const", "constval": "backgroundDomeRadius"} +,{ + "constname": "k_pch_SteamVR_GridColor_String","consttype": "const char *const", "constval": "gridColor"} +,{ + "constname": "k_pch_SteamVR_PlayAreaColor_String","consttype": "const char *const", "constval": "playAreaColor"} +,{ + "constname": "k_pch_SteamVR_ShowStage_Bool","consttype": "const char *const", "constval": "showStage"} +,{ + "constname": "k_pch_SteamVR_ActivateMultipleDrivers_Bool","consttype": "const char *const", "constval": "activateMultipleDrivers"} +,{ + "constname": "k_pch_SteamVR_DirectMode_Bool","consttype": "const char *const", "constval": "directMode"} +,{ + "constname": "k_pch_SteamVR_DirectModeEdidVid_Int32","consttype": "const char *const", "constval": "directModeEdidVid"} +,{ + "constname": "k_pch_SteamVR_DirectModeEdidPid_Int32","consttype": "const char *const", "constval": "directModeEdidPid"} +,{ + "constname": "k_pch_SteamVR_UsingSpeakers_Bool","consttype": "const char *const", "constval": "usingSpeakers"} +,{ + "constname": "k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float","consttype": "const char *const", "constval": "speakersForwardYawOffsetDegrees"} +,{ + "constname": "k_pch_SteamVR_BaseStationPowerManagement_Bool","consttype": "const char *const", "constval": "basestationPowerManagement"} +,{ + "constname": "k_pch_SteamVR_NeverKillProcesses_Bool","consttype": "const char *const", "constval": "neverKillProcesses"} +,{ + "constname": "k_pch_SteamVR_SupersampleScale_Float","consttype": "const char *const", "constval": "supersampleScale"} +,{ + "constname": "k_pch_SteamVR_AllowAsyncReprojection_Bool","consttype": "const char *const", "constval": "allowAsyncReprojection"} +,{ + "constname": "k_pch_SteamVR_AllowReprojection_Bool","consttype": "const char *const", "constval": "allowInterleavedReprojection"} +,{ + "constname": "k_pch_SteamVR_ForceReprojection_Bool","consttype": "const char *const", "constval": "forceReprojection"} +,{ + "constname": "k_pch_SteamVR_ForceFadeOnBadTracking_Bool","consttype": "const char *const", "constval": "forceFadeOnBadTracking"} +,{ + "constname": "k_pch_SteamVR_DefaultMirrorView_Int32","consttype": "const char *const", "constval": "defaultMirrorView"} +,{ + "constname": "k_pch_SteamVR_ShowMirrorView_Bool","consttype": "const char *const", "constval": "showMirrorView"} +,{ + "constname": "k_pch_SteamVR_MirrorViewGeometry_String","consttype": "const char *const", "constval": "mirrorViewGeometry"} +,{ + "constname": "k_pch_SteamVR_StartMonitorFromAppLaunch","consttype": "const char *const", "constval": "startMonitorFromAppLaunch"} +,{ + "constname": "k_pch_SteamVR_StartCompositorFromAppLaunch_Bool","consttype": "const char *const", "constval": "startCompositorFromAppLaunch"} +,{ + "constname": "k_pch_SteamVR_StartDashboardFromAppLaunch_Bool","consttype": "const char *const", "constval": "startDashboardFromAppLaunch"} +,{ + "constname": "k_pch_SteamVR_StartOverlayAppsFromDashboard_Bool","consttype": "const char *const", "constval": "startOverlayAppsFromDashboard"} +,{ + "constname": "k_pch_SteamVR_EnableHomeApp","consttype": "const char *const", "constval": "enableHomeApp"} +,{ + "constname": "k_pch_SteamVR_CycleBackgroundImageTimeSec_Int32","consttype": "const char *const", "constval": "CycleBackgroundImageTimeSec"} +,{ + "constname": "k_pch_SteamVR_RetailDemo_Bool","consttype": "const char *const", "constval": "retailDemo"} +,{ + "constname": "k_pch_SteamVR_IpdOffset_Float","consttype": "const char *const", "constval": "ipdOffset"} +,{ + "constname": "k_pch_SteamVR_AllowSupersampleFiltering_Bool","consttype": "const char *const", "constval": "allowSupersampleFiltering"} +,{ + "constname": "k_pch_Lighthouse_Section","consttype": "const char *const", "constval": "driver_lighthouse"} +,{ + "constname": "k_pch_Lighthouse_DisableIMU_Bool","consttype": "const char *const", "constval": "disableimu"} +,{ + "constname": "k_pch_Lighthouse_UseDisambiguation_String","consttype": "const char *const", "constval": "usedisambiguation"} +,{ + "constname": "k_pch_Lighthouse_DisambiguationDebug_Int32","consttype": "const char *const", "constval": "disambiguationdebug"} +,{ + "constname": "k_pch_Lighthouse_PrimaryBasestation_Int32","consttype": "const char *const", "constval": "primarybasestation"} +,{ + "constname": "k_pch_Lighthouse_DBHistory_Bool","consttype": "const char *const", "constval": "dbhistory"} +,{ + "constname": "k_pch_Null_Section","consttype": "const char *const", "constval": "driver_null"} +,{ + "constname": "k_pch_Null_SerialNumber_String","consttype": "const char *const", "constval": "serialNumber"} +,{ + "constname": "k_pch_Null_ModelNumber_String","consttype": "const char *const", "constval": "modelNumber"} +,{ + "constname": "k_pch_Null_WindowX_Int32","consttype": "const char *const", "constval": "windowX"} +,{ + "constname": "k_pch_Null_WindowY_Int32","consttype": "const char *const", "constval": "windowY"} +,{ + "constname": "k_pch_Null_WindowWidth_Int32","consttype": "const char *const", "constval": "windowWidth"} +,{ + "constname": "k_pch_Null_WindowHeight_Int32","consttype": "const char *const", "constval": "windowHeight"} +,{ + "constname": "k_pch_Null_RenderWidth_Int32","consttype": "const char *const", "constval": "renderWidth"} +,{ + "constname": "k_pch_Null_RenderHeight_Int32","consttype": "const char *const", "constval": "renderHeight"} +,{ + "constname": "k_pch_Null_SecondsFromVsyncToPhotons_Float","consttype": "const char *const", "constval": "secondsFromVsyncToPhotons"} +,{ + "constname": "k_pch_Null_DisplayFrequency_Float","consttype": "const char *const", "constval": "displayFrequency"} +,{ + "constname": "k_pch_UserInterface_Section","consttype": "const char *const", "constval": "userinterface"} +,{ + "constname": "k_pch_UserInterface_StatusAlwaysOnTop_Bool","consttype": "const char *const", "constval": "StatusAlwaysOnTop"} +,{ + "constname": "k_pch_UserInterface_MinimizeToTray_Bool","consttype": "const char *const", "constval": "MinimizeToTray"} +,{ + "constname": "k_pch_UserInterface_Screenshots_Bool","consttype": "const char *const", "constval": "screenshots"} +,{ + "constname": "k_pch_UserInterface_ScreenshotType_Int","consttype": "const char *const", "constval": "screenshotType"} +,{ + "constname": "k_pch_Notifications_Section","consttype": "const char *const", "constval": "notifications"} +,{ + "constname": "k_pch_Notifications_DoNotDisturb_Bool","consttype": "const char *const", "constval": "DoNotDisturb"} +,{ + "constname": "k_pch_Keyboard_Section","consttype": "const char *const", "constval": "keyboard"} +,{ + "constname": "k_pch_Keyboard_TutorialCompletions","consttype": "const char *const", "constval": "TutorialCompletions"} +,{ + "constname": "k_pch_Keyboard_ScaleX","consttype": "const char *const", "constval": "ScaleX"} +,{ + "constname": "k_pch_Keyboard_ScaleY","consttype": "const char *const", "constval": "ScaleY"} +,{ + "constname": "k_pch_Keyboard_OffsetLeftX","consttype": "const char *const", "constval": "OffsetLeftX"} +,{ + "constname": "k_pch_Keyboard_OffsetRightX","consttype": "const char *const", "constval": "OffsetRightX"} +,{ + "constname": "k_pch_Keyboard_OffsetY","consttype": "const char *const", "constval": "OffsetY"} +,{ + "constname": "k_pch_Keyboard_Smoothing","consttype": "const char *const", "constval": "Smoothing"} +,{ + "constname": "k_pch_Perf_Section","consttype": "const char *const", "constval": "perfcheck"} +,{ + "constname": "k_pch_Perf_HeuristicActive_Bool","consttype": "const char *const", "constval": "heuristicActive"} +,{ + "constname": "k_pch_Perf_NotifyInHMD_Bool","consttype": "const char *const", "constval": "warnInHMD"} +,{ + "constname": "k_pch_Perf_NotifyOnlyOnce_Bool","consttype": "const char *const", "constval": "warnOnlyOnce"} +,{ + "constname": "k_pch_Perf_AllowTimingStore_Bool","consttype": "const char *const", "constval": "allowTimingStore"} +,{ + "constname": "k_pch_Perf_SaveTimingsOnExit_Bool","consttype": "const char *const", "constval": "saveTimingsOnExit"} +,{ + "constname": "k_pch_Perf_TestData_Float","consttype": "const char *const", "constval": "perfTestData"} +,{ + "constname": "k_pch_Perf_LinuxGPUProfiling_Bool","consttype": "const char *const", "constval": "linuxGPUProfiling"} +,{ + "constname": "k_pch_CollisionBounds_Section","consttype": "const char *const", "constval": "collisionBounds"} +,{ + "constname": "k_pch_CollisionBounds_Style_Int32","consttype": "const char *const", "constval": "CollisionBoundsStyle"} +,{ + "constname": "k_pch_CollisionBounds_GroundPerimeterOn_Bool","consttype": "const char *const", "constval": "CollisionBoundsGroundPerimeterOn"} +,{ + "constname": "k_pch_CollisionBounds_CenterMarkerOn_Bool","consttype": "const char *const", "constval": "CollisionBoundsCenterMarkerOn"} +,{ + "constname": "k_pch_CollisionBounds_PlaySpaceOn_Bool","consttype": "const char *const", "constval": "CollisionBoundsPlaySpaceOn"} +,{ + "constname": "k_pch_CollisionBounds_FadeDistance_Float","consttype": "const char *const", "constval": "CollisionBoundsFadeDistance"} +,{ + "constname": "k_pch_CollisionBounds_ColorGammaR_Int32","consttype": "const char *const", "constval": "CollisionBoundsColorGammaR"} +,{ + "constname": "k_pch_CollisionBounds_ColorGammaG_Int32","consttype": "const char *const", "constval": "CollisionBoundsColorGammaG"} +,{ + "constname": "k_pch_CollisionBounds_ColorGammaB_Int32","consttype": "const char *const", "constval": "CollisionBoundsColorGammaB"} +,{ + "constname": "k_pch_CollisionBounds_ColorGammaA_Int32","consttype": "const char *const", "constval": "CollisionBoundsColorGammaA"} +,{ + "constname": "k_pch_Camera_Section","consttype": "const char *const", "constval": "camera"} +,{ + "constname": "k_pch_Camera_EnableCamera_Bool","consttype": "const char *const", "constval": "enableCamera"} +,{ + "constname": "k_pch_Camera_EnableCameraInDashboard_Bool","consttype": "const char *const", "constval": "enableCameraInDashboard"} +,{ + "constname": "k_pch_Camera_EnableCameraForCollisionBounds_Bool","consttype": "const char *const", "constval": "enableCameraForCollisionBounds"} +,{ + "constname": "k_pch_Camera_EnableCameraForRoomView_Bool","consttype": "const char *const", "constval": "enableCameraForRoomView"} +,{ + "constname": "k_pch_Camera_BoundsColorGammaR_Int32","consttype": "const char *const", "constval": "cameraBoundsColorGammaR"} +,{ + "constname": "k_pch_Camera_BoundsColorGammaG_Int32","consttype": "const char *const", "constval": "cameraBoundsColorGammaG"} +,{ + "constname": "k_pch_Camera_BoundsColorGammaB_Int32","consttype": "const char *const", "constval": "cameraBoundsColorGammaB"} +,{ + "constname": "k_pch_Camera_BoundsColorGammaA_Int32","consttype": "const char *const", "constval": "cameraBoundsColorGammaA"} +,{ + "constname": "k_pch_Camera_BoundsStrength_Int32","consttype": "const char *const", "constval": "cameraBoundsStrength"} +,{ + "constname": "k_pch_audio_Section","consttype": "const char *const", "constval": "audio"} +,{ + "constname": "k_pch_audio_OnPlaybackDevice_String","consttype": "const char *const", "constval": "onPlaybackDevice"} +,{ + "constname": "k_pch_audio_OnRecordDevice_String","consttype": "const char *const", "constval": "onRecordDevice"} +,{ + "constname": "k_pch_audio_OnPlaybackMirrorDevice_String","consttype": "const char *const", "constval": "onPlaybackMirrorDevice"} +,{ + "constname": "k_pch_audio_OffPlaybackDevice_String","consttype": "const char *const", "constval": "offPlaybackDevice"} +,{ + "constname": "k_pch_audio_OffRecordDevice_String","consttype": "const char *const", "constval": "offRecordDevice"} +,{ + "constname": "k_pch_audio_VIVEHDMIGain","consttype": "const char *const", "constval": "viveHDMIGain"} +,{ + "constname": "k_pch_Power_Section","consttype": "const char *const", "constval": "power"} +,{ + "constname": "k_pch_Power_PowerOffOnExit_Bool","consttype": "const char *const", "constval": "powerOffOnExit"} +,{ + "constname": "k_pch_Power_TurnOffScreensTimeout_Float","consttype": "const char *const", "constval": "turnOffScreensTimeout"} +,{ + "constname": "k_pch_Power_TurnOffControllersTimeout_Float","consttype": "const char *const", "constval": "turnOffControllersTimeout"} +,{ + "constname": "k_pch_Power_ReturnToWatchdogTimeout_Float","consttype": "const char *const", "constval": "returnToWatchdogTimeout"} +,{ + "constname": "k_pch_Power_AutoLaunchSteamVROnButtonPress","consttype": "const char *const", "constval": "autoLaunchSteamVROnButtonPress"} +,{ + "constname": "k_pch_Dashboard_Section","consttype": "const char *const", "constval": "dashboard"} +,{ + "constname": "k_pch_Dashboard_EnableDashboard_Bool","consttype": "const char *const", "constval": "enableDashboard"} +,{ + "constname": "k_pch_Dashboard_ArcadeMode_Bool","consttype": "const char *const", "constval": "arcadeMode"} +,{ + "constname": "k_pch_modelskin_Section","consttype": "const char *const", "constval": "modelskins"} +,{ + "constname": "k_pch_Driver_Enable_Bool","consttype": "const char *const", "constval": "enable"} +,{ + "constname": "IVRScreenshots_Version","consttype": "const char *const", "constval": "IVRScreenshots_001"} +,{ + "constname": "IVRResources_Version","consttype": "const char *const", "constval": "IVRResources_001"} +,{ + "constname": "IVRDriverManager_Version","consttype": "const char *const", "constval": "IVRDriverManager_001"} +], +"structs":[{"struct": "vr::HmdMatrix34_t","fields": [ +{ "fieldname": "m", "fieldtype": "float [3][4]"}]} +,{"struct": "vr::HmdMatrix44_t","fields": [ +{ "fieldname": "m", "fieldtype": "float [4][4]"}]} +,{"struct": "vr::HmdVector3_t","fields": [ +{ "fieldname": "v", "fieldtype": "float [3]"}]} +,{"struct": "vr::HmdVector4_t","fields": [ +{ "fieldname": "v", "fieldtype": "float [4]"}]} +,{"struct": "vr::HmdVector3d_t","fields": [ +{ "fieldname": "v", "fieldtype": "double [3]"}]} +,{"struct": "vr::HmdVector2_t","fields": [ +{ "fieldname": "v", "fieldtype": "float [2]"}]} +,{"struct": "vr::HmdQuaternion_t","fields": [ +{ "fieldname": "w", "fieldtype": "double"}, +{ "fieldname": "x", "fieldtype": "double"}, +{ "fieldname": "y", "fieldtype": "double"}, +{ "fieldname": "z", "fieldtype": "double"}]} +,{"struct": "vr::HmdColor_t","fields": [ +{ "fieldname": "r", "fieldtype": "float"}, +{ "fieldname": "g", "fieldtype": "float"}, +{ "fieldname": "b", "fieldtype": "float"}, +{ "fieldname": "a", "fieldtype": "float"}]} +,{"struct": "vr::HmdQuad_t","fields": [ +{ "fieldname": "vCorners", "fieldtype": "struct vr::HmdVector3_t [4]"}]} +,{"struct": "vr::HmdRect2_t","fields": [ +{ "fieldname": "vTopLeft", "fieldtype": "struct vr::HmdVector2_t"}, +{ "fieldname": "vBottomRight", "fieldtype": "struct vr::HmdVector2_t"}]} +,{"struct": "vr::DistortionCoordinates_t","fields": [ +{ "fieldname": "rfRed", "fieldtype": "float [2]"}, +{ "fieldname": "rfGreen", "fieldtype": "float [2]"}, +{ "fieldname": "rfBlue", "fieldtype": "float [2]"}]} +,{"struct": "vr::Texture_t","fields": [ +{ "fieldname": "handle", "fieldtype": "void *"}, +{ "fieldname": "eType", "fieldtype": "enum vr::ETextureType"}, +{ "fieldname": "eColorSpace", "fieldtype": "enum vr::EColorSpace"}]} +,{"struct": "vr::TrackedDevicePose_t","fields": [ +{ "fieldname": "mDeviceToAbsoluteTracking", "fieldtype": "struct vr::HmdMatrix34_t"}, +{ "fieldname": "vVelocity", "fieldtype": "struct vr::HmdVector3_t"}, +{ "fieldname": "vAngularVelocity", "fieldtype": "struct vr::HmdVector3_t"}, +{ "fieldname": "eTrackingResult", "fieldtype": "enum vr::ETrackingResult"}, +{ "fieldname": "bPoseIsValid", "fieldtype": "_Bool"}, +{ "fieldname": "bDeviceIsConnected", "fieldtype": "_Bool"}]} +,{"struct": "vr::VRTextureBounds_t","fields": [ +{ "fieldname": "uMin", "fieldtype": "float"}, +{ "fieldname": "vMin", "fieldtype": "float"}, +{ "fieldname": "uMax", "fieldtype": "float"}, +{ "fieldname": "vMax", "fieldtype": "float"}]} +,{"struct": "vr::VRVulkanTextureData_t","fields": [ +{ "fieldname": "m_nImage", "fieldtype": "uint64_t"}, +{ "fieldname": "m_pDevice", "fieldtype": "struct VkDevice_T *"}, +{ "fieldname": "m_pPhysicalDevice", "fieldtype": "struct VkPhysicalDevice_T *"}, +{ "fieldname": "m_pInstance", "fieldtype": "struct VkInstance_T *"}, +{ "fieldname": "m_pQueue", "fieldtype": "struct VkQueue_T *"}, +{ "fieldname": "m_nQueueFamilyIndex", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nWidth", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nHeight", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nFormat", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nSampleCount", "fieldtype": "uint32_t"}]} +,{"struct": "vr::D3D12TextureData_t","fields": [ +{ "fieldname": "m_pResource", "fieldtype": "struct ID3D12Resource *"}, +{ "fieldname": "m_pCommandQueue", "fieldtype": "struct ID3D12CommandQueue *"}, +{ "fieldname": "m_nNodeMask", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_Controller_t","fields": [ +{ "fieldname": "button", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_Mouse_t","fields": [ +{ "fieldname": "x", "fieldtype": "float"}, +{ "fieldname": "y", "fieldtype": "float"}, +{ "fieldname": "button", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_Scroll_t","fields": [ +{ "fieldname": "xdelta", "fieldtype": "float"}, +{ "fieldname": "ydelta", "fieldtype": "float"}, +{ "fieldname": "repeatCount", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_TouchPadMove_t","fields": [ +{ "fieldname": "bFingerDown", "fieldtype": "_Bool"}, +{ "fieldname": "flSecondsFingerDown", "fieldtype": "float"}, +{ "fieldname": "fValueXFirst", "fieldtype": "float"}, +{ "fieldname": "fValueYFirst", "fieldtype": "float"}, +{ "fieldname": "fValueXRaw", "fieldtype": "float"}, +{ "fieldname": "fValueYRaw", "fieldtype": "float"}]} +,{"struct": "vr::VREvent_Notification_t","fields": [ +{ "fieldname": "ulUserValue", "fieldtype": "uint64_t"}, +{ "fieldname": "notificationId", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_Process_t","fields": [ +{ "fieldname": "pid", "fieldtype": "uint32_t"}, +{ "fieldname": "oldPid", "fieldtype": "uint32_t"}, +{ "fieldname": "bForced", "fieldtype": "_Bool"}]} +,{"struct": "vr::VREvent_Overlay_t","fields": [ +{ "fieldname": "overlayHandle", "fieldtype": "uint64_t"}]} +,{"struct": "vr::VREvent_Status_t","fields": [ +{ "fieldname": "statusState", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_Keyboard_t","fields": [ +{ "fieldname": "cNewInput", "fieldtype": "char [8]"}, +{ "fieldname": "uUserValue", "fieldtype": "uint64_t"}]} +,{"struct": "vr::VREvent_Ipd_t","fields": [ +{ "fieldname": "ipdMeters", "fieldtype": "float"}]} +,{"struct": "vr::VREvent_Chaperone_t","fields": [ +{ "fieldname": "m_nPreviousUniverse", "fieldtype": "uint64_t"}, +{ "fieldname": "m_nCurrentUniverse", "fieldtype": "uint64_t"}]} +,{"struct": "vr::VREvent_Reserved_t","fields": [ +{ "fieldname": "reserved0", "fieldtype": "uint64_t"}, +{ "fieldname": "reserved1", "fieldtype": "uint64_t"}]} +,{"struct": "vr::VREvent_PerformanceTest_t","fields": [ +{ "fieldname": "m_nFidelityLevel", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_SeatedZeroPoseReset_t","fields": [ +{ "fieldname": "bResetBySystemMenu", "fieldtype": "_Bool"}]} +,{"struct": "vr::VREvent_Screenshot_t","fields": [ +{ "fieldname": "handle", "fieldtype": "uint32_t"}, +{ "fieldname": "type", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_ScreenshotProgress_t","fields": [ +{ "fieldname": "progress", "fieldtype": "float"}]} +,{"struct": "vr::VREvent_ApplicationLaunch_t","fields": [ +{ "fieldname": "pid", "fieldtype": "uint32_t"}, +{ "fieldname": "unArgsHandle", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_EditingCameraSurface_t","fields": [ +{ "fieldname": "overlayHandle", "fieldtype": "uint64_t"}, +{ "fieldname": "nVisualMode", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_MessageOverlay_t","fields": [ +{ "fieldname": "unVRMessageOverlayResponse", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_Property_t","fields": [ +{ "fieldname": "container", "fieldtype": "PropertyContainerHandle_t"}, +{ "fieldname": "prop", "fieldtype": "enum vr::ETrackedDeviceProperty"}]} +,{"struct": "vr::(anonymous)","fields": [ +{ "fieldname": "reserved", "fieldtype": "struct vr::VREvent_Reserved_t"}, +{ "fieldname": "controller", "fieldtype": "struct vr::VREvent_Controller_t"}, +{ "fieldname": "mouse", "fieldtype": "struct vr::VREvent_Mouse_t"}, +{ "fieldname": "scroll", "fieldtype": "struct vr::VREvent_Scroll_t"}, +{ "fieldname": "process", "fieldtype": "struct vr::VREvent_Process_t"}, +{ "fieldname": "notification", "fieldtype": "struct vr::VREvent_Notification_t"}, +{ "fieldname": "overlay", "fieldtype": "struct vr::VREvent_Overlay_t"}, +{ "fieldname": "status", "fieldtype": "struct vr::VREvent_Status_t"}, +{ "fieldname": "keyboard", "fieldtype": "struct vr::VREvent_Keyboard_t"}, +{ "fieldname": "ipd", "fieldtype": "struct vr::VREvent_Ipd_t"}, +{ "fieldname": "chaperone", "fieldtype": "struct vr::VREvent_Chaperone_t"}, +{ "fieldname": "performanceTest", "fieldtype": "struct vr::VREvent_PerformanceTest_t"}, +{ "fieldname": "touchPadMove", "fieldtype": "struct vr::VREvent_TouchPadMove_t"}, +{ "fieldname": "seatedZeroPoseReset", "fieldtype": "struct vr::VREvent_SeatedZeroPoseReset_t"}, +{ "fieldname": "screenshot", "fieldtype": "struct vr::VREvent_Screenshot_t"}, +{ "fieldname": "screenshotProgress", "fieldtype": "struct vr::VREvent_ScreenshotProgress_t"}, +{ "fieldname": "applicationLaunch", "fieldtype": "struct vr::VREvent_ApplicationLaunch_t"}, +{ "fieldname": "cameraSurface", "fieldtype": "struct vr::VREvent_EditingCameraSurface_t"}, +{ "fieldname": "messageOverlay", "fieldtype": "struct vr::VREvent_MessageOverlay_t"}, +{ "fieldname": "property", "fieldtype": "struct vr::VREvent_Property_t"}]} +,{"struct": "vr::VREvent_t","fields": [ +{ "fieldname": "eventType", "fieldtype": "uint32_t"}, +{ "fieldname": "trackedDeviceIndex", "fieldtype": "TrackedDeviceIndex_t"}, +{ "fieldname": "eventAgeSeconds", "fieldtype": "float"}, +{ "fieldname": "data", "fieldtype": "VREvent_Data_t"}]} +,{"struct": "vr::HiddenAreaMesh_t","fields": [ +{ "fieldname": "pVertexData", "fieldtype": "const struct vr::HmdVector2_t *"}, +{ "fieldname": "unTriangleCount", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VRControllerAxis_t","fields": [ +{ "fieldname": "x", "fieldtype": "float"}, +{ "fieldname": "y", "fieldtype": "float"}]} +,{"struct": "vr::VRControllerState001_t","fields": [ +{ "fieldname": "unPacketNum", "fieldtype": "uint32_t"}, +{ "fieldname": "ulButtonPressed", "fieldtype": "uint64_t"}, +{ "fieldname": "ulButtonTouched", "fieldtype": "uint64_t"}, +{ "fieldname": "rAxis", "fieldtype": "struct vr::VRControllerAxis_t [5]"}]} +,{"struct": "vr::Compositor_OverlaySettings","fields": [ +{ "fieldname": "size", "fieldtype": "uint32_t"}, +{ "fieldname": "curved", "fieldtype": "_Bool"}, +{ "fieldname": "antialias", "fieldtype": "_Bool"}, +{ "fieldname": "scale", "fieldtype": "float"}, +{ "fieldname": "distance", "fieldtype": "float"}, +{ "fieldname": "alpha", "fieldtype": "float"}, +{ "fieldname": "uOffset", "fieldtype": "float"}, +{ "fieldname": "vOffset", "fieldtype": "float"}, +{ "fieldname": "uScale", "fieldtype": "float"}, +{ "fieldname": "vScale", "fieldtype": "float"}, +{ "fieldname": "gridDivs", "fieldtype": "float"}, +{ "fieldname": "gridWidth", "fieldtype": "float"}, +{ "fieldname": "gridScale", "fieldtype": "float"}, +{ "fieldname": "transform", "fieldtype": "struct vr::HmdMatrix44_t"}]} +,{"struct": "vr::CameraVideoStreamFrameHeader_t","fields": [ +{ "fieldname": "eFrameType", "fieldtype": "enum vr::EVRTrackedCameraFrameType"}, +{ "fieldname": "nWidth", "fieldtype": "uint32_t"}, +{ "fieldname": "nHeight", "fieldtype": "uint32_t"}, +{ "fieldname": "nBytesPerPixel", "fieldtype": "uint32_t"}, +{ "fieldname": "nFrameSequence", "fieldtype": "uint32_t"}, +{ "fieldname": "standingTrackedDevicePose", "fieldtype": "struct vr::TrackedDevicePose_t"}]} +,{"struct": "vr::AppOverrideKeys_t","fields": [ +{ "fieldname": "pchKey", "fieldtype": "const char *"}, +{ "fieldname": "pchValue", "fieldtype": "const char *"}]} +,{"struct": "vr::Compositor_FrameTiming","fields": [ +{ "fieldname": "m_nSize", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nFrameIndex", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumFramePresents", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumMisPresented", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumDroppedFrames", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nReprojectionFlags", "fieldtype": "uint32_t"}, +{ "fieldname": "m_flSystemTimeInSeconds", "fieldtype": "double"}, +{ "fieldname": "m_flPreSubmitGpuMs", "fieldtype": "float"}, +{ "fieldname": "m_flPostSubmitGpuMs", "fieldtype": "float"}, +{ "fieldname": "m_flTotalRenderGpuMs", "fieldtype": "float"}, +{ "fieldname": "m_flCompositorRenderGpuMs", "fieldtype": "float"}, +{ "fieldname": "m_flCompositorRenderCpuMs", "fieldtype": "float"}, +{ "fieldname": "m_flCompositorIdleCpuMs", "fieldtype": "float"}, +{ "fieldname": "m_flClientFrameIntervalMs", "fieldtype": "float"}, +{ "fieldname": "m_flPresentCallCpuMs", "fieldtype": "float"}, +{ "fieldname": "m_flWaitForPresentCpuMs", "fieldtype": "float"}, +{ "fieldname": "m_flSubmitFrameMs", "fieldtype": "float"}, +{ "fieldname": "m_flWaitGetPosesCalledMs", "fieldtype": "float"}, +{ "fieldname": "m_flNewPosesReadyMs", "fieldtype": "float"}, +{ "fieldname": "m_flNewFrameReadyMs", "fieldtype": "float"}, +{ "fieldname": "m_flCompositorUpdateStartMs", "fieldtype": "float"}, +{ "fieldname": "m_flCompositorUpdateEndMs", "fieldtype": "float"}, +{ "fieldname": "m_flCompositorRenderStartMs", "fieldtype": "float"}, +{ "fieldname": "m_HmdPose", "fieldtype": "vr::TrackedDevicePose_t"}]} +,{"struct": "vr::Compositor_CumulativeStats","fields": [ +{ "fieldname": "m_nPid", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumFramePresents", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumDroppedFrames", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumReprojectedFrames", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumFramePresentsOnStartup", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumDroppedFramesOnStartup", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumReprojectedFramesOnStartup", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumLoading", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumFramePresentsLoading", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumDroppedFramesLoading", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumReprojectedFramesLoading", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumTimedOut", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumFramePresentsTimedOut", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumDroppedFramesTimedOut", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumReprojectedFramesTimedOut", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VROverlayIntersectionParams_t","fields": [ +{ "fieldname": "vSource", "fieldtype": "struct vr::HmdVector3_t"}, +{ "fieldname": "vDirection", "fieldtype": "struct vr::HmdVector3_t"}, +{ "fieldname": "eOrigin", "fieldtype": "enum vr::ETrackingUniverseOrigin"}]} +,{"struct": "vr::VROverlayIntersectionResults_t","fields": [ +{ "fieldname": "vPoint", "fieldtype": "struct vr::HmdVector3_t"}, +{ "fieldname": "vNormal", "fieldtype": "struct vr::HmdVector3_t"}, +{ "fieldname": "vUVs", "fieldtype": "struct vr::HmdVector2_t"}, +{ "fieldname": "fDistance", "fieldtype": "float"}]} +,{"struct": "vr::IntersectionMaskRectangle_t","fields": [ +{ "fieldname": "m_flTopLeftX", "fieldtype": "float"}, +{ "fieldname": "m_flTopLeftY", "fieldtype": "float"}, +{ "fieldname": "m_flWidth", "fieldtype": "float"}, +{ "fieldname": "m_flHeight", "fieldtype": "float"}]} +,{"struct": "vr::IntersectionMaskCircle_t","fields": [ +{ "fieldname": "m_flCenterX", "fieldtype": "float"}, +{ "fieldname": "m_flCenterY", "fieldtype": "float"}, +{ "fieldname": "m_flRadius", "fieldtype": "float"}]} +,{"struct": "vr::(anonymous)","fields": [ +{ "fieldname": "m_Rectangle", "fieldtype": "struct vr::IntersectionMaskRectangle_t"}, +{ "fieldname": "m_Circle", "fieldtype": "struct vr::IntersectionMaskCircle_t"}]} +,{"struct": "vr::VROverlayIntersectionMaskPrimitive_t","fields": [ +{ "fieldname": "m_nPrimitiveType", "fieldtype": "enum vr::EVROverlayIntersectionMaskPrimitiveType"}, +{ "fieldname": "m_Primitive", "fieldtype": "VROverlayIntersectionMaskPrimitive_Data_t"}]} +,{"struct": "vr::RenderModel_ComponentState_t","fields": [ +{ "fieldname": "mTrackingToComponentRenderModel", "fieldtype": "struct vr::HmdMatrix34_t"}, +{ "fieldname": "mTrackingToComponentLocal", "fieldtype": "struct vr::HmdMatrix34_t"}, +{ "fieldname": "uProperties", "fieldtype": "VRComponentProperties"}]} +,{"struct": "vr::RenderModel_Vertex_t","fields": [ +{ "fieldname": "vPosition", "fieldtype": "struct vr::HmdVector3_t"}, +{ "fieldname": "vNormal", "fieldtype": "struct vr::HmdVector3_t"}, +{ "fieldname": "rfTextureCoord", "fieldtype": "float [2]"}]} +,{"struct": "vr::RenderModel_TextureMap_t","fields": [ +{ "fieldname": "unWidth", "fieldtype": "uint16_t"}, +{ "fieldname": "unHeight", "fieldtype": "uint16_t"}, +{ "fieldname": "rubTextureMapData", "fieldtype": "const uint8_t *"}]} +,{"struct": "vr::RenderModel_t","fields": [ +{ "fieldname": "rVertexData", "fieldtype": "const struct vr::RenderModel_Vertex_t *"}, +{ "fieldname": "unVertexCount", "fieldtype": "uint32_t"}, +{ "fieldname": "rIndexData", "fieldtype": "const uint16_t *"}, +{ "fieldname": "unTriangleCount", "fieldtype": "uint32_t"}, +{ "fieldname": "diffuseTextureId", "fieldtype": "TextureID_t"}]} +,{"struct": "vr::RenderModel_ControllerMode_State_t","fields": [ +{ "fieldname": "bScrollWheelVisible", "fieldtype": "_Bool"}]} +,{"struct": "vr::NotificationBitmap_t","fields": [ +{ "fieldname": "m_pImageData", "fieldtype": "void *"}, +{ "fieldname": "m_nWidth", "fieldtype": "int32_t"}, +{ "fieldname": "m_nHeight", "fieldtype": "int32_t"}, +{ "fieldname": "m_nBytesPerPixel", "fieldtype": "int32_t"}]} +,{"struct": "vr::COpenVRContext","fields": [ +{ "fieldname": "m_pVRSystem", "fieldtype": "class vr::IVRSystem *"}, +{ "fieldname": "m_pVRChaperone", "fieldtype": "class vr::IVRChaperone *"}, +{ "fieldname": "m_pVRChaperoneSetup", "fieldtype": "class vr::IVRChaperoneSetup *"}, +{ "fieldname": "m_pVRCompositor", "fieldtype": "class vr::IVRCompositor *"}, +{ "fieldname": "m_pVROverlay", "fieldtype": "class vr::IVROverlay *"}, +{ "fieldname": "m_pVRResources", "fieldtype": "class vr::IVRResources *"}, +{ "fieldname": "m_pVRRenderModels", "fieldtype": "class vr::IVRRenderModels *"}, +{ "fieldname": "m_pVRExtendedDisplay", "fieldtype": "class vr::IVRExtendedDisplay *"}, +{ "fieldname": "m_pVRSettings", "fieldtype": "class vr::IVRSettings *"}, +{ "fieldname": "m_pVRApplications", "fieldtype": "class vr::IVRApplications *"}, +{ "fieldname": "m_pVRTrackedCamera", "fieldtype": "class vr::IVRTrackedCamera *"}, +{ "fieldname": "m_pVRScreenshots", "fieldtype": "class vr::IVRScreenshots *"}, +{ "fieldname": "m_pVRDriverManager", "fieldtype": "class vr::IVRDriverManager *"}]} +], +"methods":[{ + "classname": "vr::IVRSystem", + "methodname": "GetRecommendedRenderTargetSize", + "returntype": "void", + "params": [ +{ "paramname": "pnWidth" ,"paramtype": "uint32_t *"}, +{ "paramname": "pnHeight" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetProjectionMatrix", + "returntype": "struct vr::HmdMatrix44_t", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"}, +{ "paramname": "fNearZ" ,"paramtype": "float"}, +{ "paramname": "fFarZ" ,"paramtype": "float"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetProjectionRaw", + "returntype": "void", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"}, +{ "paramname": "pfLeft" ,"paramtype": "float *"}, +{ "paramname": "pfRight" ,"paramtype": "float *"}, +{ "paramname": "pfTop" ,"paramtype": "float *"}, +{ "paramname": "pfBottom" ,"paramtype": "float *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "ComputeDistortion", + "returntype": "bool", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"}, +{ "paramname": "fU" ,"paramtype": "float"}, +{ "paramname": "fV" ,"paramtype": "float"}, +{ "paramname": "pDistortionCoordinates" ,"paramtype": "struct vr::DistortionCoordinates_t *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetEyeToHeadTransform", + "returntype": "struct vr::HmdMatrix34_t", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetTimeSinceLastVsync", + "returntype": "bool", + "params": [ +{ "paramname": "pfSecondsSinceLastVsync" ,"paramtype": "float *"}, +{ "paramname": "pulFrameCounter" ,"paramtype": "uint64_t *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetD3D9AdapterIndex", + "returntype": "int32_t" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetDXGIOutputInfo", + "returntype": "void", + "params": [ +{ "paramname": "pnAdapterIndex" ,"paramtype": "int32_t *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetOutputDevice", + "returntype": "void", + "params": [ +{ "paramname": "pnDevice" ,"paramtype": "uint64_t *"}, +{ "paramname": "textureType" ,"paramtype": "vr::ETextureType"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "IsDisplayOnDesktop", + "returntype": "bool" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "SetDisplayVisibility", + "returntype": "bool", + "params": [ +{ "paramname": "bIsVisibleOnDesktop" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetDeviceToAbsoluteTrackingPose", + "returntype": "void", + "params": [ +{ "paramname": "eOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin"}, +{ "paramname": "fPredictedSecondsToPhotonsFromNow" ,"paramtype": "float"}, +{ "paramname": "pTrackedDevicePoseArray" ,"array_count": "unTrackedDevicePoseArrayCount" ,"paramtype": "struct vr::TrackedDevicePose_t *"}, +{ "paramname": "unTrackedDevicePoseArrayCount" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "ResetSeatedZeroPose", + "returntype": "void" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetSeatedZeroPoseToStandingAbsoluteTrackingPose", + "returntype": "struct vr::HmdMatrix34_t" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetRawZeroPoseToStandingAbsoluteTrackingPose", + "returntype": "struct vr::HmdMatrix34_t" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetSortedTrackedDeviceIndicesOfClass", + "returntype": "uint32_t", + "params": [ +{ "paramname": "eTrackedDeviceClass" ,"paramtype": "vr::ETrackedDeviceClass"}, +{ "paramname": "punTrackedDeviceIndexArray" ,"array_count": "unTrackedDeviceIndexArrayCount" ,"paramtype": "vr::TrackedDeviceIndex_t *"}, +{ "paramname": "unTrackedDeviceIndexArrayCount" ,"paramtype": "uint32_t"}, +{ "paramname": "unRelativeToTrackedDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetTrackedDeviceActivityLevel", + "returntype": "vr::EDeviceActivityLevel", + "params": [ +{ "paramname": "unDeviceId" ,"paramtype": "vr::TrackedDeviceIndex_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "ApplyTransform", + "returntype": "void", + "params": [ +{ "paramname": "pOutputPose" ,"paramtype": "struct vr::TrackedDevicePose_t *"}, +{ "paramname": "pTrackedDevicePose" ,"paramtype": "const struct vr::TrackedDevicePose_t *"}, +{ "paramname": "pTransform" ,"paramtype": "const struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetTrackedDeviceIndexForControllerRole", + "returntype": "vr::TrackedDeviceIndex_t", + "params": [ +{ "paramname": "unDeviceType" ,"paramtype": "vr::ETrackedControllerRole"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetControllerRoleForTrackedDeviceIndex", + "returntype": "vr::ETrackedControllerRole", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetTrackedDeviceClass", + "returntype": "vr::ETrackedDeviceClass", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "IsTrackedDeviceConnected", + "returntype": "bool", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetBoolTrackedDeviceProperty", + "returntype": "bool", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "prop" ,"paramtype": "vr::ETrackedDeviceProperty"}, +{ "paramname": "pError" ,"paramtype": "vr::ETrackedPropertyError *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetFloatTrackedDeviceProperty", + "returntype": "float", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "prop" ,"paramtype": "vr::ETrackedDeviceProperty"}, +{ "paramname": "pError" ,"paramtype": "vr::ETrackedPropertyError *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetInt32TrackedDeviceProperty", + "returntype": "int32_t", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "prop" ,"paramtype": "vr::ETrackedDeviceProperty"}, +{ "paramname": "pError" ,"paramtype": "vr::ETrackedPropertyError *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetUint64TrackedDeviceProperty", + "returntype": "uint64_t", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "prop" ,"paramtype": "vr::ETrackedDeviceProperty"}, +{ "paramname": "pError" ,"paramtype": "vr::ETrackedPropertyError *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetMatrix34TrackedDeviceProperty", + "returntype": "struct vr::HmdMatrix34_t", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "prop" ,"paramtype": "vr::ETrackedDeviceProperty"}, +{ "paramname": "pError" ,"paramtype": "vr::ETrackedPropertyError *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetStringTrackedDeviceProperty", + "returntype": "uint32_t", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "prop" ,"paramtype": "vr::ETrackedDeviceProperty"}, +{ "paramname": "pchValue" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unBufferSize" ,"paramtype": "uint32_t"}, +{ "paramname": "pError" ,"paramtype": "vr::ETrackedPropertyError *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetPropErrorNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "error" ,"paramtype": "vr::ETrackedPropertyError"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "PollNextEvent", + "returntype": "bool", + "params": [ +{ "paramname": "pEvent" ,"paramtype": "struct vr::VREvent_t *"}, +{ "paramname": "uncbVREvent" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "PollNextEventWithPose", + "returntype": "bool", + "params": [ +{ "paramname": "eOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin"}, +{ "paramname": "pEvent" ,"paramtype": "struct vr::VREvent_t *"}, +{ "paramname": "uncbVREvent" ,"paramtype": "uint32_t"}, +{ "paramname": "pTrackedDevicePose" ,"paramtype": "vr::TrackedDevicePose_t *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetEventTypeNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "eType" ,"paramtype": "vr::EVREventType"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetHiddenAreaMesh", + "returntype": "struct vr::HiddenAreaMesh_t", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"}, +{ "paramname": "type" ,"paramtype": "vr::EHiddenAreaMeshType"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetControllerState", + "returntype": "bool", + "params": [ +{ "paramname": "unControllerDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "pControllerState" ,"paramtype": "vr::VRControllerState_t *"}, +{ "paramname": "unControllerStateSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetControllerStateWithPose", + "returntype": "bool", + "params": [ +{ "paramname": "eOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin"}, +{ "paramname": "unControllerDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "pControllerState" ,"paramtype": "vr::VRControllerState_t *"}, +{ "paramname": "unControllerStateSize" ,"paramtype": "uint32_t"}, +{ "paramname": "pTrackedDevicePose" ,"paramtype": "struct vr::TrackedDevicePose_t *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "TriggerHapticPulse", + "returntype": "void", + "params": [ +{ "paramname": "unControllerDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "unAxisId" ,"paramtype": "uint32_t"}, +{ "paramname": "usDurationMicroSec" ,"paramtype": "unsigned short"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetButtonIdNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "eButtonId" ,"paramtype": "vr::EVRButtonId"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetControllerAxisTypeNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "eAxisType" ,"paramtype": "vr::EVRControllerAxisType"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "CaptureInputFocus", + "returntype": "bool" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "ReleaseInputFocus", + "returntype": "void" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "IsInputFocusCapturedByAnotherProcess", + "returntype": "bool" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "DriverDebugRequest", + "returntype": "uint32_t", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "pchRequest" ,"paramtype": "const char *"}, +{ "paramname": "pchResponseBuffer" ,"paramtype": "char *"}, +{ "paramname": "unResponseBufferSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "PerformFirmwareUpdate", + "returntype": "vr::EVRFirmwareError", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "AcknowledgeQuit_Exiting", + "returntype": "void" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "AcknowledgeQuit_UserPrompt", + "returntype": "void" +} +,{ + "classname": "vr::IVRExtendedDisplay", + "methodname": "GetWindowBounds", + "returntype": "void", + "params": [ +{ "paramname": "pnX" ,"paramtype": "int32_t *"}, +{ "paramname": "pnY" ,"paramtype": "int32_t *"}, +{ "paramname": "pnWidth" ,"paramtype": "uint32_t *"}, +{ "paramname": "pnHeight" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRExtendedDisplay", + "methodname": "GetEyeOutputViewport", + "returntype": "void", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"}, +{ "paramname": "pnX" ,"paramtype": "uint32_t *"}, +{ "paramname": "pnY" ,"paramtype": "uint32_t *"}, +{ "paramname": "pnWidth" ,"paramtype": "uint32_t *"}, +{ "paramname": "pnHeight" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRExtendedDisplay", + "methodname": "GetDXGIOutputInfo", + "returntype": "void", + "params": [ +{ "paramname": "pnAdapterIndex" ,"paramtype": "int32_t *"}, +{ "paramname": "pnAdapterOutputIndex" ,"paramtype": "int32_t *"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "GetCameraErrorNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "eCameraError" ,"paramtype": "vr::EVRTrackedCameraError"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "HasCamera", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "nDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "pHasCamera" ,"paramtype": "bool *"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "GetCameraFrameSize", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "nDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "eFrameType" ,"paramtype": "vr::EVRTrackedCameraFrameType"}, +{ "paramname": "pnWidth" ,"paramtype": "uint32_t *"}, +{ "paramname": "pnHeight" ,"paramtype": "uint32_t *"}, +{ "paramname": "pnFrameBufferSize" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "GetCameraIntrinsics", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "nDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "eFrameType" ,"paramtype": "vr::EVRTrackedCameraFrameType"}, +{ "paramname": "pFocalLength" ,"paramtype": "vr::HmdVector2_t *"}, +{ "paramname": "pCenter" ,"paramtype": "vr::HmdVector2_t *"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "GetCameraProjection", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "nDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "eFrameType" ,"paramtype": "vr::EVRTrackedCameraFrameType"}, +{ "paramname": "flZNear" ,"paramtype": "float"}, +{ "paramname": "flZFar" ,"paramtype": "float"}, +{ "paramname": "pProjection" ,"paramtype": "vr::HmdMatrix44_t *"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "AcquireVideoStreamingService", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "nDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "pHandle" ,"paramtype": "vr::TrackedCameraHandle_t *"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "ReleaseVideoStreamingService", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "hTrackedCamera" ,"paramtype": "vr::TrackedCameraHandle_t"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "GetVideoStreamFrameBuffer", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "hTrackedCamera" ,"paramtype": "vr::TrackedCameraHandle_t"}, +{ "paramname": "eFrameType" ,"paramtype": "vr::EVRTrackedCameraFrameType"}, +{ "paramname": "pFrameBuffer" ,"paramtype": "void *"}, +{ "paramname": "nFrameBufferSize" ,"paramtype": "uint32_t"}, +{ "paramname": "pFrameHeader" ,"paramtype": "vr::CameraVideoStreamFrameHeader_t *"}, +{ "paramname": "nFrameHeaderSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "GetVideoStreamTextureSize", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "nDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "eFrameType" ,"paramtype": "vr::EVRTrackedCameraFrameType"}, +{ "paramname": "pTextureBounds" ,"paramtype": "vr::VRTextureBounds_t *"}, +{ "paramname": "pnWidth" ,"paramtype": "uint32_t *"}, +{ "paramname": "pnHeight" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "GetVideoStreamTextureD3D11", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "hTrackedCamera" ,"paramtype": "vr::TrackedCameraHandle_t"}, +{ "paramname": "eFrameType" ,"paramtype": "vr::EVRTrackedCameraFrameType"}, +{ "paramname": "pD3D11DeviceOrResource" ,"paramtype": "void *"}, +{ "paramname": "ppD3D11ShaderResourceView" ,"paramtype": "void **"}, +{ "paramname": "pFrameHeader" ,"paramtype": "vr::CameraVideoStreamFrameHeader_t *"}, +{ "paramname": "nFrameHeaderSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "GetVideoStreamTextureGL", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "hTrackedCamera" ,"paramtype": "vr::TrackedCameraHandle_t"}, +{ "paramname": "eFrameType" ,"paramtype": "vr::EVRTrackedCameraFrameType"}, +{ "paramname": "pglTextureId" ,"paramtype": "vr::glUInt_t *"}, +{ "paramname": "pFrameHeader" ,"paramtype": "vr::CameraVideoStreamFrameHeader_t *"}, +{ "paramname": "nFrameHeaderSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "ReleaseVideoStreamTextureGL", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "hTrackedCamera" ,"paramtype": "vr::TrackedCameraHandle_t"}, +{ "paramname": "glTextureId" ,"paramtype": "vr::glUInt_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "AddApplicationManifest", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchApplicationManifestFullPath" ,"paramtype": "const char *"}, +{ "paramname": "bTemporary" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "RemoveApplicationManifest", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchApplicationManifestFullPath" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "IsApplicationInstalled", + "returntype": "bool", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationCount", + "returntype": "uint32_t" +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationKeyByIndex", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "unApplicationIndex" ,"paramtype": "uint32_t"}, +{ "paramname": "pchAppKeyBuffer" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unAppKeyBufferLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationKeyByProcessId", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "unProcessId" ,"paramtype": "uint32_t"}, +{ "paramname": "pchAppKeyBuffer" ,"paramtype": "char *"}, +{ "paramname": "unAppKeyBufferLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "LaunchApplication", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "LaunchTemplateApplication", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchTemplateAppKey" ,"paramtype": "const char *"}, +{ "paramname": "pchNewAppKey" ,"paramtype": "const char *"}, +{ "paramname": "pKeys" ,"array_count": "unKeys" ,"paramtype": "const struct vr::AppOverrideKeys_t *"}, +{ "paramname": "unKeys" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "LaunchApplicationFromMimeType", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchMimeType" ,"paramtype": "const char *"}, +{ "paramname": "pchArgs" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "LaunchDashboardOverlay", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "CancelApplicationLaunch", + "returntype": "bool", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "IdentifyApplication", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "unProcessId" ,"paramtype": "uint32_t"}, +{ "paramname": "pchAppKey" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationProcessId", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationsErrorNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "error" ,"paramtype": "vr::EVRApplicationError"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationPropertyString", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"}, +{ "paramname": "eProperty" ,"paramtype": "vr::EVRApplicationProperty"}, +{ "paramname": "pchPropertyValueBuffer" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unPropertyValueBufferLen" ,"paramtype": "uint32_t"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRApplicationError *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationPropertyBool", + "returntype": "bool", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"}, +{ "paramname": "eProperty" ,"paramtype": "vr::EVRApplicationProperty"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRApplicationError *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationPropertyUint64", + "returntype": "uint64_t", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"}, +{ "paramname": "eProperty" ,"paramtype": "vr::EVRApplicationProperty"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRApplicationError *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "SetApplicationAutoLaunch", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"}, +{ "paramname": "bAutoLaunch" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationAutoLaunch", + "returntype": "bool", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "SetDefaultApplicationForMimeType", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"}, +{ "paramname": "pchMimeType" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetDefaultApplicationForMimeType", + "returntype": "bool", + "params": [ +{ "paramname": "pchMimeType" ,"paramtype": "const char *"}, +{ "paramname": "pchAppKeyBuffer" ,"paramtype": "char *"}, +{ "paramname": "unAppKeyBufferLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationSupportedMimeTypes", + "returntype": "bool", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"}, +{ "paramname": "pchMimeTypesBuffer" ,"paramtype": "char *"}, +{ "paramname": "unMimeTypesBuffer" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationsThatSupportMimeType", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchMimeType" ,"paramtype": "const char *"}, +{ "paramname": "pchAppKeysThatSupportBuffer" ,"paramtype": "char *"}, +{ "paramname": "unAppKeysThatSupportBuffer" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationLaunchArguments", + "returntype": "uint32_t", + "params": [ +{ "paramname": "unHandle" ,"paramtype": "uint32_t"}, +{ "paramname": "pchArgs" ,"paramtype": "char *"}, +{ "paramname": "unArgs" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetStartingApplication", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchAppKeyBuffer" ,"paramtype": "char *"}, +{ "paramname": "unAppKeyBufferLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetTransitionState", + "returntype": "vr::EVRApplicationTransitionState" +} +,{ + "classname": "vr::IVRApplications", + "methodname": "PerformApplicationPrelaunchCheck", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationsTransitionStateNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "state" ,"paramtype": "vr::EVRApplicationTransitionState"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "IsQuitUserPromptRequested", + "returntype": "bool" +} +,{ + "classname": "vr::IVRApplications", + "methodname": "LaunchInternalProcess", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchBinaryPath" ,"paramtype": "const char *"}, +{ "paramname": "pchArguments" ,"paramtype": "const char *"}, +{ "paramname": "pchWorkingDirectory" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetCurrentSceneProcessId", + "returntype": "uint32_t" +} +,{ + "classname": "vr::IVRChaperone", + "methodname": "GetCalibrationState", + "returntype": "vr::ChaperoneCalibrationState" +} +,{ + "classname": "vr::IVRChaperone", + "methodname": "GetPlayAreaSize", + "returntype": "bool", + "params": [ +{ "paramname": "pSizeX" ,"paramtype": "float *"}, +{ "paramname": "pSizeZ" ,"paramtype": "float *"} + ] +} +,{ + "classname": "vr::IVRChaperone", + "methodname": "GetPlayAreaRect", + "returntype": "bool", + "params": [ +{ "paramname": "rect" ,"paramtype": "struct vr::HmdQuad_t *"} + ] +} +,{ + "classname": "vr::IVRChaperone", + "methodname": "ReloadInfo", + "returntype": "void" +} +,{ + "classname": "vr::IVRChaperone", + "methodname": "SetSceneColor", + "returntype": "void", + "params": [ +{ "paramname": "color" ,"paramtype": "struct vr::HmdColor_t"} + ] +} +,{ + "classname": "vr::IVRChaperone", + "methodname": "GetBoundsColor", + "returntype": "void", + "params": [ +{ "paramname": "pOutputColorArray" ,"paramtype": "struct vr::HmdColor_t *"}, +{ "paramname": "nNumOutputColors" ,"paramtype": "int"}, +{ "paramname": "flCollisionBoundsFadeDistance" ,"paramtype": "float"}, +{ "paramname": "pOutputCameraColor" ,"paramtype": "struct vr::HmdColor_t *"} + ] +} +,{ + "classname": "vr::IVRChaperone", + "methodname": "AreBoundsVisible", + "returntype": "bool" +} +,{ + "classname": "vr::IVRChaperone", + "methodname": "ForceBoundsVisible", + "returntype": "void", + "params": [ +{ "paramname": "bForce" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "CommitWorkingCopy", + "returntype": "bool", + "params": [ +{ "paramname": "configFile" ,"paramtype": "vr::EChaperoneConfigFile"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "RevertWorkingCopy", + "returntype": "void" +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetWorkingPlayAreaSize", + "returntype": "bool", + "params": [ +{ "paramname": "pSizeX" ,"paramtype": "float *"}, +{ "paramname": "pSizeZ" ,"paramtype": "float *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetWorkingPlayAreaRect", + "returntype": "bool", + "params": [ +{ "paramname": "rect" ,"paramtype": "struct vr::HmdQuad_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetWorkingCollisionBoundsInfo", + "returntype": "bool", + "params": [ +{ "paramname": "pQuadsBuffer" ,"out_array_count": "punQuadsCount" ,"paramtype": "struct vr::HmdQuad_t *"}, +{ "paramname": "punQuadsCount" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetLiveCollisionBoundsInfo", + "returntype": "bool", + "params": [ +{ "paramname": "pQuadsBuffer" ,"out_array_count": "punQuadsCount" ,"paramtype": "struct vr::HmdQuad_t *"}, +{ "paramname": "punQuadsCount" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetWorkingSeatedZeroPoseToRawTrackingPose", + "returntype": "bool", + "params": [ +{ "paramname": "pmatSeatedZeroPoseToRawTrackingPose" ,"paramtype": "struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetWorkingStandingZeroPoseToRawTrackingPose", + "returntype": "bool", + "params": [ +{ "paramname": "pmatStandingZeroPoseToRawTrackingPose" ,"paramtype": "struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "SetWorkingPlayAreaSize", + "returntype": "void", + "params": [ +{ "paramname": "sizeX" ,"paramtype": "float"}, +{ "paramname": "sizeZ" ,"paramtype": "float"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "SetWorkingCollisionBoundsInfo", + "returntype": "void", + "params": [ +{ "paramname": "pQuadsBuffer" ,"array_count": "unQuadsCount" ,"paramtype": "struct vr::HmdQuad_t *"}, +{ "paramname": "unQuadsCount" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "SetWorkingSeatedZeroPoseToRawTrackingPose", + "returntype": "void", + "params": [ +{ "paramname": "pMatSeatedZeroPoseToRawTrackingPose" ,"paramtype": "const struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "SetWorkingStandingZeroPoseToRawTrackingPose", + "returntype": "void", + "params": [ +{ "paramname": "pMatStandingZeroPoseToRawTrackingPose" ,"paramtype": "const struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "ReloadFromDisk", + "returntype": "void", + "params": [ +{ "paramname": "configFile" ,"paramtype": "vr::EChaperoneConfigFile"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetLiveSeatedZeroPoseToRawTrackingPose", + "returntype": "bool", + "params": [ +{ "paramname": "pmatSeatedZeroPoseToRawTrackingPose" ,"paramtype": "struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "SetWorkingCollisionBoundsTagsInfo", + "returntype": "void", + "params": [ +{ "paramname": "pTagsBuffer" ,"array_count": "unTagCount" ,"paramtype": "uint8_t *"}, +{ "paramname": "unTagCount" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetLiveCollisionBoundsTagsInfo", + "returntype": "bool", + "params": [ +{ "paramname": "pTagsBuffer" ,"out_array_count": "punTagCount" ,"paramtype": "uint8_t *"}, +{ "paramname": "punTagCount" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "SetWorkingPhysicalBoundsInfo", + "returntype": "bool", + "params": [ +{ "paramname": "pQuadsBuffer" ,"array_count": "unQuadsCount" ,"paramtype": "struct vr::HmdQuad_t *"}, +{ "paramname": "unQuadsCount" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetLivePhysicalBoundsInfo", + "returntype": "bool", + "params": [ +{ "paramname": "pQuadsBuffer" ,"out_array_count": "punQuadsCount" ,"paramtype": "struct vr::HmdQuad_t *"}, +{ "paramname": "punQuadsCount" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "ExportLiveToBuffer", + "returntype": "bool", + "params": [ +{ "paramname": "pBuffer" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "pnBufferLength" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "ImportFromBufferToWorking", + "returntype": "bool", + "params": [ +{ "paramname": "pBuffer" ,"paramtype": "const char *"}, +{ "paramname": "nImportFlags" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "SetTrackingSpace", + "returntype": "void", + "params": [ +{ "paramname": "eOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetTrackingSpace", + "returntype": "vr::ETrackingUniverseOrigin" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "WaitGetPoses", + "returntype": "vr::EVRCompositorError", + "params": [ +{ "paramname": "pRenderPoseArray" ,"array_count": "unRenderPoseArrayCount" ,"paramtype": "struct vr::TrackedDevicePose_t *"}, +{ "paramname": "unRenderPoseArrayCount" ,"paramtype": "uint32_t"}, +{ "paramname": "pGamePoseArray" ,"array_count": "unGamePoseArrayCount" ,"paramtype": "struct vr::TrackedDevicePose_t *"}, +{ "paramname": "unGamePoseArrayCount" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetLastPoses", + "returntype": "vr::EVRCompositorError", + "params": [ +{ "paramname": "pRenderPoseArray" ,"array_count": "unRenderPoseArrayCount" ,"paramtype": "struct vr::TrackedDevicePose_t *"}, +{ "paramname": "unRenderPoseArrayCount" ,"paramtype": "uint32_t"}, +{ "paramname": "pGamePoseArray" ,"array_count": "unGamePoseArrayCount" ,"paramtype": "struct vr::TrackedDevicePose_t *"}, +{ "paramname": "unGamePoseArrayCount" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetLastPoseForTrackedDeviceIndex", + "returntype": "vr::EVRCompositorError", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "pOutputPose" ,"paramtype": "struct vr::TrackedDevicePose_t *"}, +{ "paramname": "pOutputGamePose" ,"paramtype": "struct vr::TrackedDevicePose_t *"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "Submit", + "returntype": "vr::EVRCompositorError", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"}, +{ "paramname": "pTexture" ,"paramtype": "const struct vr::Texture_t *"}, +{ "paramname": "pBounds" ,"paramtype": "const struct vr::VRTextureBounds_t *"}, +{ "paramname": "nSubmitFlags" ,"paramtype": "vr::EVRSubmitFlags"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "ClearLastSubmittedFrame", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "PostPresentHandoff", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetFrameTiming", + "returntype": "bool", + "params": [ +{ "paramname": "pTiming" ,"paramtype": "struct vr::Compositor_FrameTiming *"}, +{ "paramname": "unFramesAgo" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetFrameTimings", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pTiming" ,"paramtype": "struct vr::Compositor_FrameTiming *"}, +{ "paramname": "nFrames" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetFrameTimeRemaining", + "returntype": "float" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetCumulativeStats", + "returntype": "void", + "params": [ +{ "paramname": "pStats" ,"paramtype": "struct vr::Compositor_CumulativeStats *"}, +{ "paramname": "nStatsSizeInBytes" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "FadeToColor", + "returntype": "void", + "params": [ +{ "paramname": "fSeconds" ,"paramtype": "float"}, +{ "paramname": "fRed" ,"paramtype": "float"}, +{ "paramname": "fGreen" ,"paramtype": "float"}, +{ "paramname": "fBlue" ,"paramtype": "float"}, +{ "paramname": "fAlpha" ,"paramtype": "float"}, +{ "paramname": "bBackground" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetCurrentFadeColor", + "returntype": "struct vr::HmdColor_t", + "params": [ +{ "paramname": "bBackground" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "FadeGrid", + "returntype": "void", + "params": [ +{ "paramname": "fSeconds" ,"paramtype": "float"}, +{ "paramname": "bFadeIn" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetCurrentGridAlpha", + "returntype": "float" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "SetSkyboxOverride", + "returntype": "vr::EVRCompositorError", + "params": [ +{ "paramname": "pTextures" ,"array_count": "unTextureCount" ,"paramtype": "const struct vr::Texture_t *"}, +{ "paramname": "unTextureCount" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "ClearSkyboxOverride", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "CompositorBringToFront", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "CompositorGoToBack", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "CompositorQuit", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "IsFullscreen", + "returntype": "bool" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetCurrentSceneFocusProcess", + "returntype": "uint32_t" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetLastFrameRenderer", + "returntype": "uint32_t" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "CanRenderScene", + "returntype": "bool" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "ShowMirrorWindow", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "HideMirrorWindow", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "IsMirrorWindowVisible", + "returntype": "bool" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "CompositorDumpImages", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "ShouldAppRenderWithLowResources", + "returntype": "bool" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "ForceInterleavedReprojectionOn", + "returntype": "void", + "params": [ +{ "paramname": "bOverride" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "ForceReconnectProcess", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "SuspendRendering", + "returntype": "void", + "params": [ +{ "paramname": "bSuspend" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetMirrorTextureD3D11", + "returntype": "vr::EVRCompositorError", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"}, +{ "paramname": "pD3D11DeviceOrResource" ,"paramtype": "void *"}, +{ "paramname": "ppD3D11ShaderResourceView" ,"paramtype": "void **"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "ReleaseMirrorTextureD3D11", + "returntype": "void", + "params": [ +{ "paramname": "pD3D11ShaderResourceView" ,"paramtype": "void *"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetMirrorTextureGL", + "returntype": "vr::EVRCompositorError", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"}, +{ "paramname": "pglTextureId" ,"paramtype": "vr::glUInt_t *"}, +{ "paramname": "pglSharedTextureHandle" ,"paramtype": "vr::glSharedTextureHandle_t *"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "ReleaseSharedGLTexture", + "returntype": "bool", + "params": [ +{ "paramname": "glTextureId" ,"paramtype": "vr::glUInt_t"}, +{ "paramname": "glSharedTextureHandle" ,"paramtype": "vr::glSharedTextureHandle_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "LockGLSharedTextureForAccess", + "returntype": "void", + "params": [ +{ "paramname": "glSharedTextureHandle" ,"paramtype": "vr::glSharedTextureHandle_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "UnlockGLSharedTextureForAccess", + "returntype": "void", + "params": [ +{ "paramname": "glSharedTextureHandle" ,"paramtype": "vr::glSharedTextureHandle_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetVulkanInstanceExtensionsRequired", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchValue" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unBufferSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetVulkanDeviceExtensionsRequired", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pPhysicalDevice" ,"paramtype": "struct VkPhysicalDevice_T *"}, +{ "paramname": "pchValue" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unBufferSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "FindOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "pchOverlayKey" ,"paramtype": "const char *"}, +{ "paramname": "pOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "CreateOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "pchOverlayKey" ,"paramtype": "const char *"}, +{ "paramname": "pchOverlayName" ,"paramtype": "const char *"}, +{ "paramname": "pOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "DestroyOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetHighQualityOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetHighQualityOverlay", + "returntype": "vr::VROverlayHandle_t" +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayKey", + "returntype": "uint32_t", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pchValue" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unBufferSize" ,"paramtype": "uint32_t"}, +{ "paramname": "pError" ,"paramtype": "vr::EVROverlayError *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayName", + "returntype": "uint32_t", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pchValue" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unBufferSize" ,"paramtype": "uint32_t"}, +{ "paramname": "pError" ,"paramtype": "vr::EVROverlayError *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayName", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pchName" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayImageData", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pvBuffer" ,"paramtype": "void *"}, +{ "paramname": "unBufferSize" ,"paramtype": "uint32_t"}, +{ "paramname": "punWidth" ,"paramtype": "uint32_t *"}, +{ "paramname": "punHeight" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayErrorNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "error" ,"paramtype": "vr::EVROverlayError"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayRenderingPid", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "unPID" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayRenderingPid", + "returntype": "uint32_t", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayFlag", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "eOverlayFlag" ,"paramtype": "vr::VROverlayFlags"}, +{ "paramname": "bEnabled" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayFlag", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "eOverlayFlag" ,"paramtype": "vr::VROverlayFlags"}, +{ "paramname": "pbEnabled" ,"paramtype": "bool *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayColor", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "fRed" ,"paramtype": "float"}, +{ "paramname": "fGreen" ,"paramtype": "float"}, +{ "paramname": "fBlue" ,"paramtype": "float"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayColor", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pfRed" ,"paramtype": "float *"}, +{ "paramname": "pfGreen" ,"paramtype": "float *"}, +{ "paramname": "pfBlue" ,"paramtype": "float *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayAlpha", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "fAlpha" ,"paramtype": "float"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayAlpha", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pfAlpha" ,"paramtype": "float *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayTexelAspect", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "fTexelAspect" ,"paramtype": "float"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTexelAspect", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pfTexelAspect" ,"paramtype": "float *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlaySortOrder", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "unSortOrder" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlaySortOrder", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "punSortOrder" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayWidthInMeters", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "fWidthInMeters" ,"paramtype": "float"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayWidthInMeters", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pfWidthInMeters" ,"paramtype": "float *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayAutoCurveDistanceRangeInMeters", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "fMinDistanceInMeters" ,"paramtype": "float"}, +{ "paramname": "fMaxDistanceInMeters" ,"paramtype": "float"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayAutoCurveDistanceRangeInMeters", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pfMinDistanceInMeters" ,"paramtype": "float *"}, +{ "paramname": "pfMaxDistanceInMeters" ,"paramtype": "float *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayTextureColorSpace", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "eTextureColorSpace" ,"paramtype": "vr::EColorSpace"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTextureColorSpace", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "peTextureColorSpace" ,"paramtype": "vr::EColorSpace *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayTextureBounds", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pOverlayTextureBounds" ,"paramtype": "const struct vr::VRTextureBounds_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTextureBounds", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pOverlayTextureBounds" ,"paramtype": "struct vr::VRTextureBounds_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayRenderModel", + "returntype": "uint32_t", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pchValue" ,"paramtype": "char *"}, +{ "paramname": "unBufferSize" ,"paramtype": "uint32_t"}, +{ "paramname": "pColor" ,"paramtype": "struct vr::HmdColor_t *"}, +{ "paramname": "pError" ,"paramtype": "vr::EVROverlayError *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayRenderModel", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pchRenderModel" ,"paramtype": "const char *"}, +{ "paramname": "pColor" ,"paramtype": "const struct vr::HmdColor_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTransformType", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "peTransformType" ,"paramtype": "vr::VROverlayTransformType *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayTransformAbsolute", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "eTrackingOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin"}, +{ "paramname": "pmatTrackingOriginToOverlayTransform" ,"paramtype": "const struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTransformAbsolute", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "peTrackingOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin *"}, +{ "paramname": "pmatTrackingOriginToOverlayTransform" ,"paramtype": "struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayTransformTrackedDeviceRelative", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "unTrackedDevice" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "pmatTrackedDeviceToOverlayTransform" ,"paramtype": "const struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTransformTrackedDeviceRelative", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "punTrackedDevice" ,"paramtype": "vr::TrackedDeviceIndex_t *"}, +{ "paramname": "pmatTrackedDeviceToOverlayTransform" ,"paramtype": "struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayTransformTrackedDeviceComponent", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "pchComponentName" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTransformTrackedDeviceComponent", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "punDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t *"}, +{ "paramname": "pchComponentName" ,"paramtype": "char *"}, +{ "paramname": "unComponentNameSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTransformOverlayRelative", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "ulOverlayHandleParent" ,"paramtype": "vr::VROverlayHandle_t *"}, +{ "paramname": "pmatParentOverlayToOverlayTransform" ,"paramtype": "struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayTransformOverlayRelative", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "ulOverlayHandleParent" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pmatParentOverlayToOverlayTransform" ,"paramtype": "const struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "ShowOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "HideOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "IsOverlayVisible", + "returntype": "bool", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetTransformForOverlayCoordinates", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "eTrackingOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin"}, +{ "paramname": "coordinatesInOverlay" ,"paramtype": "struct vr::HmdVector2_t"}, +{ "paramname": "pmatTransform" ,"paramtype": "struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "PollNextOverlayEvent", + "returntype": "bool", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pEvent" ,"paramtype": "struct vr::VREvent_t *"}, +{ "paramname": "uncbVREvent" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayInputMethod", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "peInputMethod" ,"paramtype": "vr::VROverlayInputMethod *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayInputMethod", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "eInputMethod" ,"paramtype": "vr::VROverlayInputMethod"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayMouseScale", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pvecMouseScale" ,"paramtype": "struct vr::HmdVector2_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayMouseScale", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pvecMouseScale" ,"paramtype": "const struct vr::HmdVector2_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "ComputeOverlayIntersection", + "returntype": "bool", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pParams" ,"paramtype": "const struct vr::VROverlayIntersectionParams_t *"}, +{ "paramname": "pResults" ,"paramtype": "struct vr::VROverlayIntersectionResults_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "HandleControllerOverlayInteractionAsMouse", + "returntype": "bool", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "unControllerDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "IsHoverTargetOverlay", + "returntype": "bool", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetGamepadFocusOverlay", + "returntype": "vr::VROverlayHandle_t" +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetGamepadFocusOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulNewFocusOverlay" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayNeighbor", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "eDirection" ,"paramtype": "vr::EOverlayDirection"}, +{ "paramname": "ulFrom" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "ulTo" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "MoveGamepadFocusToNeighbor", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "eDirection" ,"paramtype": "vr::EOverlayDirection"}, +{ "paramname": "ulFrom" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayTexture", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pTexture" ,"paramtype": "const struct vr::Texture_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "ClearOverlayTexture", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayRaw", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pvBuffer" ,"paramtype": "void *"}, +{ "paramname": "unWidth" ,"paramtype": "uint32_t"}, +{ "paramname": "unHeight" ,"paramtype": "uint32_t"}, +{ "paramname": "unDepth" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayFromFile", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pchFilePath" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTexture", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pNativeTextureHandle" ,"paramtype": "void **"}, +{ "paramname": "pNativeTextureRef" ,"paramtype": "void *"}, +{ "paramname": "pWidth" ,"paramtype": "uint32_t *"}, +{ "paramname": "pHeight" ,"paramtype": "uint32_t *"}, +{ "paramname": "pNativeFormat" ,"paramtype": "uint32_t *"}, +{ "paramname": "pAPIType" ,"paramtype": "vr::ETextureType *"}, +{ "paramname": "pColorSpace" ,"paramtype": "vr::EColorSpace *"}, +{ "paramname": "pTextureBounds" ,"paramtype": "struct vr::VRTextureBounds_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "ReleaseNativeOverlayHandle", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pNativeTextureHandle" ,"paramtype": "void *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTextureSize", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pWidth" ,"paramtype": "uint32_t *"}, +{ "paramname": "pHeight" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "CreateDashboardOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "pchOverlayKey" ,"paramtype": "const char *"}, +{ "paramname": "pchOverlayFriendlyName" ,"paramtype": "const char *"}, +{ "paramname": "pMainHandle" ,"paramtype": "vr::VROverlayHandle_t *"}, +{ "paramname": "pThumbnailHandle" ,"paramtype": "vr::VROverlayHandle_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "IsDashboardVisible", + "returntype": "bool" +} +,{ + "classname": "vr::IVROverlay", + "methodname": "IsActiveDashboardOverlay", + "returntype": "bool", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetDashboardOverlaySceneProcess", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "unProcessId" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetDashboardOverlaySceneProcess", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "punProcessId" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "ShowDashboard", + "returntype": "void", + "params": [ +{ "paramname": "pchOverlayToShow" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetPrimaryDashboardDevice", + "returntype": "vr::TrackedDeviceIndex_t" +} +,{ + "classname": "vr::IVROverlay", + "methodname": "ShowKeyboard", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "eInputMode" ,"paramtype": "vr::EGamepadTextInputMode"}, +{ "paramname": "eLineInputMode" ,"paramtype": "vr::EGamepadTextInputLineMode"}, +{ "paramname": "pchDescription" ,"paramtype": "const char *"}, +{ "paramname": "unCharMax" ,"paramtype": "uint32_t"}, +{ "paramname": "pchExistingText" ,"paramtype": "const char *"}, +{ "paramname": "bUseMinimalMode" ,"paramtype": "bool"}, +{ "paramname": "uUserValue" ,"paramtype": "uint64_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "ShowKeyboardForOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "eInputMode" ,"paramtype": "vr::EGamepadTextInputMode"}, +{ "paramname": "eLineInputMode" ,"paramtype": "vr::EGamepadTextInputLineMode"}, +{ "paramname": "pchDescription" ,"paramtype": "const char *"}, +{ "paramname": "unCharMax" ,"paramtype": "uint32_t"}, +{ "paramname": "pchExistingText" ,"paramtype": "const char *"}, +{ "paramname": "bUseMinimalMode" ,"paramtype": "bool"}, +{ "paramname": "uUserValue" ,"paramtype": "uint64_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetKeyboardText", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchText" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "cchText" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "HideKeyboard", + "returntype": "void" +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetKeyboardTransformAbsolute", + "returntype": "void", + "params": [ +{ "paramname": "eTrackingOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin"}, +{ "paramname": "pmatTrackingOriginToKeyboardTransform" ,"paramtype": "const struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetKeyboardPositionForOverlay", + "returntype": "void", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "avoidRect" ,"paramtype": "struct vr::HmdRect2_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayIntersectionMask", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pMaskPrimitives" ,"paramtype": "struct vr::VROverlayIntersectionMaskPrimitive_t *"}, +{ "paramname": "unNumMaskPrimitives" ,"paramtype": "uint32_t"}, +{ "paramname": "unPrimitiveSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayFlags", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pFlags" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "ShowMessageOverlay", + "returntype": "vr::VRMessageOverlayResponse", + "params": [ +{ "paramname": "pchText" ,"paramtype": "const char *"}, +{ "paramname": "pchCaption" ,"paramtype": "const char *"}, +{ "paramname": "pchButton0Text" ,"paramtype": "const char *"}, +{ "paramname": "pchButton1Text" ,"paramtype": "const char *"}, +{ "paramname": "pchButton2Text" ,"paramtype": "const char *"}, +{ "paramname": "pchButton3Text" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "LoadRenderModel_Async", + "returntype": "vr::EVRRenderModelError", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"}, +{ "paramname": "ppRenderModel" ,"paramtype": "struct vr::RenderModel_t **"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "FreeRenderModel", + "returntype": "void", + "params": [ +{ "paramname": "pRenderModel" ,"paramtype": "struct vr::RenderModel_t *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "LoadTexture_Async", + "returntype": "vr::EVRRenderModelError", + "params": [ +{ "paramname": "textureId" ,"paramtype": "vr::TextureID_t"}, +{ "paramname": "ppTexture" ,"paramtype": "struct vr::RenderModel_TextureMap_t **"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "FreeTexture", + "returntype": "void", + "params": [ +{ "paramname": "pTexture" ,"paramtype": "struct vr::RenderModel_TextureMap_t *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "LoadTextureD3D11_Async", + "returntype": "vr::EVRRenderModelError", + "params": [ +{ "paramname": "textureId" ,"paramtype": "vr::TextureID_t"}, +{ "paramname": "pD3D11Device" ,"paramtype": "void *"}, +{ "paramname": "ppD3D11Texture2D" ,"paramtype": "void **"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "LoadIntoTextureD3D11_Async", + "returntype": "vr::EVRRenderModelError", + "params": [ +{ "paramname": "textureId" ,"paramtype": "vr::TextureID_t"}, +{ "paramname": "pDstTexture" ,"paramtype": "void *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "FreeTextureD3D11", + "returntype": "void", + "params": [ +{ "paramname": "pD3D11Texture2D" ,"paramtype": "void *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetRenderModelName", + "returntype": "uint32_t", + "params": [ +{ "paramname": "unRenderModelIndex" ,"paramtype": "uint32_t"}, +{ "paramname": "pchRenderModelName" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unRenderModelNameLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetRenderModelCount", + "returntype": "uint32_t" +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetComponentCount", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetComponentName", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"}, +{ "paramname": "unComponentIndex" ,"paramtype": "uint32_t"}, +{ "paramname": "pchComponentName" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unComponentNameLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetComponentButtonMask", + "returntype": "uint64_t", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"}, +{ "paramname": "pchComponentName" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetComponentRenderModelName", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"}, +{ "paramname": "pchComponentName" ,"paramtype": "const char *"}, +{ "paramname": "pchComponentRenderModelName" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unComponentRenderModelNameLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetComponentState", + "returntype": "bool", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"}, +{ "paramname": "pchComponentName" ,"paramtype": "const char *"}, +{ "paramname": "pControllerState" ,"paramtype": "const vr::VRControllerState_t *"}, +{ "paramname": "pState" ,"paramtype": "const struct vr::RenderModel_ControllerMode_State_t *"}, +{ "paramname": "pComponentState" ,"paramtype": "struct vr::RenderModel_ComponentState_t *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "RenderModelHasComponent", + "returntype": "bool", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"}, +{ "paramname": "pchComponentName" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetRenderModelThumbnailURL", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"}, +{ "paramname": "pchThumbnailURL" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unThumbnailURLLen" ,"paramtype": "uint32_t"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRRenderModelError *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetRenderModelOriginalPath", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"}, +{ "paramname": "pchOriginalPath" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unOriginalPathLen" ,"paramtype": "uint32_t"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRRenderModelError *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetRenderModelErrorNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "error" ,"paramtype": "vr::EVRRenderModelError"} + ] +} +,{ + "classname": "vr::IVRNotifications", + "methodname": "CreateNotification", + "returntype": "vr::EVRNotificationError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "ulUserValue" ,"paramtype": "uint64_t"}, +{ "paramname": "type" ,"paramtype": "vr::EVRNotificationType"}, +{ "paramname": "pchText" ,"paramtype": "const char *"}, +{ "paramname": "style" ,"paramtype": "vr::EVRNotificationStyle"}, +{ "paramname": "pImage" ,"paramtype": "const struct vr::NotificationBitmap_t *"}, +{ "paramname": "pNotificationId" ,"paramtype": "vr::VRNotificationId *"} + ] +} +,{ + "classname": "vr::IVRNotifications", + "methodname": "RemoveNotification", + "returntype": "vr::EVRNotificationError", + "params": [ +{ "paramname": "notificationId" ,"paramtype": "vr::VRNotificationId"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "GetSettingsErrorNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "eError" ,"paramtype": "vr::EVRSettingsError"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "Sync", + "returntype": "bool", + "params": [ +{ "paramname": "bForce" ,"paramtype": "bool"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "SetBool", + "returntype": "void", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "bValue" ,"paramtype": "bool"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "SetInt32", + "returntype": "void", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "nValue" ,"paramtype": "int32_t"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "SetFloat", + "returntype": "void", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "flValue" ,"paramtype": "float"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "SetString", + "returntype": "void", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "pchValue" ,"paramtype": "const char *"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "GetBool", + "returntype": "bool", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "GetInt32", + "returntype": "int32_t", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "GetFloat", + "returntype": "float", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "GetString", + "returntype": "void", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "pchValue" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unValueLen" ,"paramtype": "uint32_t"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "RemoveSection", + "returntype": "void", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "RemoveKeyInSection", + "returntype": "void", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRScreenshots", + "methodname": "RequestScreenshot", + "returntype": "vr::EVRScreenshotError", + "params": [ +{ "paramname": "pOutScreenshotHandle" ,"paramtype": "vr::ScreenshotHandle_t *"}, +{ "paramname": "type" ,"paramtype": "vr::EVRScreenshotType"}, +{ "paramname": "pchPreviewFilename" ,"paramtype": "const char *"}, +{ "paramname": "pchVRFilename" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRScreenshots", + "methodname": "HookScreenshot", + "returntype": "vr::EVRScreenshotError", + "params": [ +{ "paramname": "pSupportedTypes" ,"array_count": "numTypes" ,"paramtype": "const vr::EVRScreenshotType *"}, +{ "paramname": "numTypes" ,"paramtype": "int"} + ] +} +,{ + "classname": "vr::IVRScreenshots", + "methodname": "GetScreenshotPropertyType", + "returntype": "vr::EVRScreenshotType", + "params": [ +{ "paramname": "screenshotHandle" ,"paramtype": "vr::ScreenshotHandle_t"}, +{ "paramname": "pError" ,"paramtype": "vr::EVRScreenshotError *"} + ] +} +,{ + "classname": "vr::IVRScreenshots", + "methodname": "GetScreenshotPropertyFilename", + "returntype": "uint32_t", + "params": [ +{ "paramname": "screenshotHandle" ,"paramtype": "vr::ScreenshotHandle_t"}, +{ "paramname": "filenameType" ,"paramtype": "vr::EVRScreenshotPropertyFilenames"}, +{ "paramname": "pchFilename" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "cchFilename" ,"paramtype": "uint32_t"}, +{ "paramname": "pError" ,"paramtype": "vr::EVRScreenshotError *"} + ] +} +,{ + "classname": "vr::IVRScreenshots", + "methodname": "UpdateScreenshotProgress", + "returntype": "vr::EVRScreenshotError", + "params": [ +{ "paramname": "screenshotHandle" ,"paramtype": "vr::ScreenshotHandle_t"}, +{ "paramname": "flProgress" ,"paramtype": "float"} + ] +} +,{ + "classname": "vr::IVRScreenshots", + "methodname": "TakeStereoScreenshot", + "returntype": "vr::EVRScreenshotError", + "params": [ +{ "paramname": "pOutScreenshotHandle" ,"paramtype": "vr::ScreenshotHandle_t *"}, +{ "paramname": "pchPreviewFilename" ,"paramtype": "const char *"}, +{ "paramname": "pchVRFilename" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRScreenshots", + "methodname": "SubmitScreenshot", + "returntype": "vr::EVRScreenshotError", + "params": [ +{ "paramname": "screenshotHandle" ,"paramtype": "vr::ScreenshotHandle_t"}, +{ "paramname": "type" ,"paramtype": "vr::EVRScreenshotType"}, +{ "paramname": "pchSourcePreviewFilename" ,"paramtype": "const char *"}, +{ "paramname": "pchSourceVRFilename" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRResources", + "methodname": "LoadSharedResource", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchResourceName" ,"paramtype": "const char *"}, +{ "paramname": "pchBuffer" ,"paramtype": "char *"}, +{ "paramname": "unBufferLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRResources", + "methodname": "GetResourceFullPath", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchResourceName" ,"paramtype": "const char *"}, +{ "paramname": "pchResourceTypeDirectory" ,"paramtype": "const char *"}, +{ "paramname": "pchPathBuffer" ,"paramtype": "char *"}, +{ "paramname": "unBufferLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRDriverManager", + "methodname": "GetDriverCount", + "returntype": "uint32_t" +} +,{ + "classname": "vr::IVRDriverManager", + "methodname": "GetDriverName", + "returntype": "uint32_t", + "params": [ +{ "paramname": "nDriver" ,"paramtype": "vr::DriverId_t"}, +{ "paramname": "pchValue" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unBufferSize" ,"paramtype": "uint32_t"} + ] +} +] +} \ No newline at end of file diff --git a/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/A/Headers/openvr_capi.h b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/A/Headers/openvr_capi.h new file mode 100644 index 000000000..a6685e579 --- /dev/null +++ b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/A/Headers/openvr_capi.h @@ -0,0 +1,1918 @@ +//======= Copyright (c) Valve Corporation, All rights reserved. =============== +// +// Purpose: Header for flatted SteamAPI. Use this for binding to other languages. +// This file is auto-generated, do not edit it. +// +//============================================================================= + +#ifndef __OPENVR_API_FLAT_H__ +#define __OPENVR_API_FLAT_H__ +#if defined( _WIN32 ) || defined( __clang__ ) +#pragma once +#endif + +#ifdef __cplusplus +#define EXTERN_C extern "C" +#else +#define EXTERN_C +#endif + +#if defined( _WIN32 ) +#define OPENVR_FNTABLE_CALLTYPE __stdcall +#else +#define OPENVR_FNTABLE_CALLTYPE +#endif + +// OPENVR API export macro +#if defined( _WIN32 ) && !defined( _X360 ) + #if defined( OPENVR_API_EXPORTS ) + #define S_API EXTERN_C __declspec( dllexport ) + #elif defined( OPENVR_API_NODLL ) + #define S_API EXTERN_C + #else + #define S_API extern "C" __declspec( dllimport ) + #endif // OPENVR_API_EXPORTS +#elif defined( __GNUC__ ) + #if defined( OPENVR_API_EXPORTS ) + #define S_API EXTERN_C __attribute__ ((visibility("default"))) + #else + #define S_API EXTERN_C + #endif // OPENVR_API_EXPORTS +#else // !WIN32 + #if defined( OPENVR_API_EXPORTS ) + #define S_API EXTERN_C + #else + #define S_API EXTERN_C + #endif // OPENVR_API_EXPORTS +#endif + +#include + +#if defined( __WIN32 ) +typedef char bool; +#else +#include +#endif + +typedef uint64_t PropertyContainerHandle_t; +typedef uint32_t PropertyTypeTag_t; + + +// OpenVR Constants + +static const unsigned int k_nDriverNone = 4294967295; +static const unsigned int k_unMaxDriverDebugResponseSize = 32768; +static const unsigned int k_unTrackedDeviceIndex_Hmd = 0; +static const unsigned int k_unMaxTrackedDeviceCount = 16; +static const unsigned int k_unTrackedDeviceIndexOther = 4294967294; +static const unsigned int k_unTrackedDeviceIndexInvalid = 4294967295; +static const unsigned long k_ulInvalidPropertyContainer = 0; +static const unsigned int k_unInvalidPropertyTag = 0; +static const unsigned int k_unFloatPropertyTag = 1; +static const unsigned int k_unInt32PropertyTag = 2; +static const unsigned int k_unUint64PropertyTag = 3; +static const unsigned int k_unBoolPropertyTag = 4; +static const unsigned int k_unStringPropertyTag = 5; +static const unsigned int k_unHmdMatrix34PropertyTag = 20; +static const unsigned int k_unHmdMatrix44PropertyTag = 21; +static const unsigned int k_unHmdVector3PropertyTag = 22; +static const unsigned int k_unHmdVector4PropertyTag = 23; +static const unsigned int k_unHiddenAreaPropertyTag = 30; +static const unsigned int k_unOpenVRInternalReserved_Start = 1000; +static const unsigned int k_unOpenVRInternalReserved_End = 10000; +static const unsigned int k_unMaxPropertyStringSize = 32768; +static const unsigned int k_unControllerStateAxisCount = 5; +static const unsigned long k_ulOverlayHandleInvalid = 0; +static const unsigned int k_unScreenshotHandleInvalid = 0; +static const char * IVRSystem_Version = "IVRSystem_016"; +static const char * IVRExtendedDisplay_Version = "IVRExtendedDisplay_001"; +static const char * IVRTrackedCamera_Version = "IVRTrackedCamera_003"; +static const unsigned int k_unMaxApplicationKeyLength = 128; +static const char * k_pch_MimeType_HomeApp = "vr/home"; +static const char * k_pch_MimeType_GameTheater = "vr/game_theater"; +static const char * IVRApplications_Version = "IVRApplications_006"; +static const char * IVRChaperone_Version = "IVRChaperone_003"; +static const char * IVRChaperoneSetup_Version = "IVRChaperoneSetup_005"; +static const char * IVRCompositor_Version = "IVRCompositor_020"; +static const unsigned int k_unVROverlayMaxKeyLength = 128; +static const unsigned int k_unVROverlayMaxNameLength = 128; +static const unsigned int k_unMaxOverlayCount = 64; +static const unsigned int k_unMaxOverlayIntersectionMaskPrimitivesCount = 32; +static const char * IVROverlay_Version = "IVROverlay_016"; +static const char * k_pch_Controller_Component_GDC2015 = "gdc2015"; +static const char * k_pch_Controller_Component_Base = "base"; +static const char * k_pch_Controller_Component_Tip = "tip"; +static const char * k_pch_Controller_Component_HandGrip = "handgrip"; +static const char * k_pch_Controller_Component_Status = "status"; +static const char * IVRRenderModels_Version = "IVRRenderModels_005"; +static const unsigned int k_unNotificationTextMaxSize = 256; +static const char * IVRNotifications_Version = "IVRNotifications_002"; +static const unsigned int k_unMaxSettingsKeyLength = 128; +static const char * IVRSettings_Version = "IVRSettings_002"; +static const char * k_pch_SteamVR_Section = "steamvr"; +static const char * k_pch_SteamVR_RequireHmd_String = "requireHmd"; +static const char * k_pch_SteamVR_ForcedDriverKey_String = "forcedDriver"; +static const char * k_pch_SteamVR_ForcedHmdKey_String = "forcedHmd"; +static const char * k_pch_SteamVR_DisplayDebug_Bool = "displayDebug"; +static const char * k_pch_SteamVR_DebugProcessPipe_String = "debugProcessPipe"; +static const char * k_pch_SteamVR_DisplayDebugX_Int32 = "displayDebugX"; +static const char * k_pch_SteamVR_DisplayDebugY_Int32 = "displayDebugY"; +static const char * k_pch_SteamVR_SendSystemButtonToAllApps_Bool = "sendSystemButtonToAllApps"; +static const char * k_pch_SteamVR_LogLevel_Int32 = "loglevel"; +static const char * k_pch_SteamVR_IPD_Float = "ipd"; +static const char * k_pch_SteamVR_Background_String = "background"; +static const char * k_pch_SteamVR_BackgroundUseDomeProjection_Bool = "backgroundUseDomeProjection"; +static const char * k_pch_SteamVR_BackgroundCameraHeight_Float = "backgroundCameraHeight"; +static const char * k_pch_SteamVR_BackgroundDomeRadius_Float = "backgroundDomeRadius"; +static const char * k_pch_SteamVR_GridColor_String = "gridColor"; +static const char * k_pch_SteamVR_PlayAreaColor_String = "playAreaColor"; +static const char * k_pch_SteamVR_ShowStage_Bool = "showStage"; +static const char * k_pch_SteamVR_ActivateMultipleDrivers_Bool = "activateMultipleDrivers"; +static const char * k_pch_SteamVR_DirectMode_Bool = "directMode"; +static const char * k_pch_SteamVR_DirectModeEdidVid_Int32 = "directModeEdidVid"; +static const char * k_pch_SteamVR_DirectModeEdidPid_Int32 = "directModeEdidPid"; +static const char * k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers"; +static const char * k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees"; +static const char * k_pch_SteamVR_BaseStationPowerManagement_Bool = "basestationPowerManagement"; +static const char * k_pch_SteamVR_NeverKillProcesses_Bool = "neverKillProcesses"; +static const char * k_pch_SteamVR_SupersampleScale_Float = "supersampleScale"; +static const char * k_pch_SteamVR_AllowAsyncReprojection_Bool = "allowAsyncReprojection"; +static const char * k_pch_SteamVR_AllowReprojection_Bool = "allowInterleavedReprojection"; +static const char * k_pch_SteamVR_ForceReprojection_Bool = "forceReprojection"; +static const char * k_pch_SteamVR_ForceFadeOnBadTracking_Bool = "forceFadeOnBadTracking"; +static const char * k_pch_SteamVR_DefaultMirrorView_Int32 = "defaultMirrorView"; +static const char * k_pch_SteamVR_ShowMirrorView_Bool = "showMirrorView"; +static const char * k_pch_SteamVR_MirrorViewGeometry_String = "mirrorViewGeometry"; +static const char * k_pch_SteamVR_StartMonitorFromAppLaunch = "startMonitorFromAppLaunch"; +static const char * k_pch_SteamVR_StartCompositorFromAppLaunch_Bool = "startCompositorFromAppLaunch"; +static const char * k_pch_SteamVR_StartDashboardFromAppLaunch_Bool = "startDashboardFromAppLaunch"; +static const char * k_pch_SteamVR_StartOverlayAppsFromDashboard_Bool = "startOverlayAppsFromDashboard"; +static const char * k_pch_SteamVR_EnableHomeApp = "enableHomeApp"; +static const char * k_pch_SteamVR_CycleBackgroundImageTimeSec_Int32 = "CycleBackgroundImageTimeSec"; +static const char * k_pch_SteamVR_RetailDemo_Bool = "retailDemo"; +static const char * k_pch_SteamVR_IpdOffset_Float = "ipdOffset"; +static const char * k_pch_SteamVR_AllowSupersampleFiltering_Bool = "allowSupersampleFiltering"; +static const char * k_pch_Lighthouse_Section = "driver_lighthouse"; +static const char * k_pch_Lighthouse_DisableIMU_Bool = "disableimu"; +static const char * k_pch_Lighthouse_UseDisambiguation_String = "usedisambiguation"; +static const char * k_pch_Lighthouse_DisambiguationDebug_Int32 = "disambiguationdebug"; +static const char * k_pch_Lighthouse_PrimaryBasestation_Int32 = "primarybasestation"; +static const char * k_pch_Lighthouse_DBHistory_Bool = "dbhistory"; +static const char * k_pch_Null_Section = "driver_null"; +static const char * k_pch_Null_SerialNumber_String = "serialNumber"; +static const char * k_pch_Null_ModelNumber_String = "modelNumber"; +static const char * k_pch_Null_WindowX_Int32 = "windowX"; +static const char * k_pch_Null_WindowY_Int32 = "windowY"; +static const char * k_pch_Null_WindowWidth_Int32 = "windowWidth"; +static const char * k_pch_Null_WindowHeight_Int32 = "windowHeight"; +static const char * k_pch_Null_RenderWidth_Int32 = "renderWidth"; +static const char * k_pch_Null_RenderHeight_Int32 = "renderHeight"; +static const char * k_pch_Null_SecondsFromVsyncToPhotons_Float = "secondsFromVsyncToPhotons"; +static const char * k_pch_Null_DisplayFrequency_Float = "displayFrequency"; +static const char * k_pch_UserInterface_Section = "userinterface"; +static const char * k_pch_UserInterface_StatusAlwaysOnTop_Bool = "StatusAlwaysOnTop"; +static const char * k_pch_UserInterface_MinimizeToTray_Bool = "MinimizeToTray"; +static const char * k_pch_UserInterface_Screenshots_Bool = "screenshots"; +static const char * k_pch_UserInterface_ScreenshotType_Int = "screenshotType"; +static const char * k_pch_Notifications_Section = "notifications"; +static const char * k_pch_Notifications_DoNotDisturb_Bool = "DoNotDisturb"; +static const char * k_pch_Keyboard_Section = "keyboard"; +static const char * k_pch_Keyboard_TutorialCompletions = "TutorialCompletions"; +static const char * k_pch_Keyboard_ScaleX = "ScaleX"; +static const char * k_pch_Keyboard_ScaleY = "ScaleY"; +static const char * k_pch_Keyboard_OffsetLeftX = "OffsetLeftX"; +static const char * k_pch_Keyboard_OffsetRightX = "OffsetRightX"; +static const char * k_pch_Keyboard_OffsetY = "OffsetY"; +static const char * k_pch_Keyboard_Smoothing = "Smoothing"; +static const char * k_pch_Perf_Section = "perfcheck"; +static const char * k_pch_Perf_HeuristicActive_Bool = "heuristicActive"; +static const char * k_pch_Perf_NotifyInHMD_Bool = "warnInHMD"; +static const char * k_pch_Perf_NotifyOnlyOnce_Bool = "warnOnlyOnce"; +static const char * k_pch_Perf_AllowTimingStore_Bool = "allowTimingStore"; +static const char * k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit"; +static const char * k_pch_Perf_TestData_Float = "perfTestData"; +static const char * k_pch_Perf_LinuxGPUProfiling_Bool = "linuxGPUProfiling"; +static const char * k_pch_CollisionBounds_Section = "collisionBounds"; +static const char * k_pch_CollisionBounds_Style_Int32 = "CollisionBoundsStyle"; +static const char * k_pch_CollisionBounds_GroundPerimeterOn_Bool = "CollisionBoundsGroundPerimeterOn"; +static const char * k_pch_CollisionBounds_CenterMarkerOn_Bool = "CollisionBoundsCenterMarkerOn"; +static const char * k_pch_CollisionBounds_PlaySpaceOn_Bool = "CollisionBoundsPlaySpaceOn"; +static const char * k_pch_CollisionBounds_FadeDistance_Float = "CollisionBoundsFadeDistance"; +static const char * k_pch_CollisionBounds_ColorGammaR_Int32 = "CollisionBoundsColorGammaR"; +static const char * k_pch_CollisionBounds_ColorGammaG_Int32 = "CollisionBoundsColorGammaG"; +static const char * k_pch_CollisionBounds_ColorGammaB_Int32 = "CollisionBoundsColorGammaB"; +static const char * k_pch_CollisionBounds_ColorGammaA_Int32 = "CollisionBoundsColorGammaA"; +static const char * k_pch_Camera_Section = "camera"; +static const char * k_pch_Camera_EnableCamera_Bool = "enableCamera"; +static const char * k_pch_Camera_EnableCameraInDashboard_Bool = "enableCameraInDashboard"; +static const char * k_pch_Camera_EnableCameraForCollisionBounds_Bool = "enableCameraForCollisionBounds"; +static const char * k_pch_Camera_EnableCameraForRoomView_Bool = "enableCameraForRoomView"; +static const char * k_pch_Camera_BoundsColorGammaR_Int32 = "cameraBoundsColorGammaR"; +static const char * k_pch_Camera_BoundsColorGammaG_Int32 = "cameraBoundsColorGammaG"; +static const char * k_pch_Camera_BoundsColorGammaB_Int32 = "cameraBoundsColorGammaB"; +static const char * k_pch_Camera_BoundsColorGammaA_Int32 = "cameraBoundsColorGammaA"; +static const char * k_pch_Camera_BoundsStrength_Int32 = "cameraBoundsStrength"; +static const char * k_pch_audio_Section = "audio"; +static const char * k_pch_audio_OnPlaybackDevice_String = "onPlaybackDevice"; +static const char * k_pch_audio_OnRecordDevice_String = "onRecordDevice"; +static const char * k_pch_audio_OnPlaybackMirrorDevice_String = "onPlaybackMirrorDevice"; +static const char * k_pch_audio_OffPlaybackDevice_String = "offPlaybackDevice"; +static const char * k_pch_audio_OffRecordDevice_String = "offRecordDevice"; +static const char * k_pch_audio_VIVEHDMIGain = "viveHDMIGain"; +static const char * k_pch_Power_Section = "power"; +static const char * k_pch_Power_PowerOffOnExit_Bool = "powerOffOnExit"; +static const char * k_pch_Power_TurnOffScreensTimeout_Float = "turnOffScreensTimeout"; +static const char * k_pch_Power_TurnOffControllersTimeout_Float = "turnOffControllersTimeout"; +static const char * k_pch_Power_ReturnToWatchdogTimeout_Float = "returnToWatchdogTimeout"; +static const char * k_pch_Power_AutoLaunchSteamVROnButtonPress = "autoLaunchSteamVROnButtonPress"; +static const char * k_pch_Dashboard_Section = "dashboard"; +static const char * k_pch_Dashboard_EnableDashboard_Bool = "enableDashboard"; +static const char * k_pch_Dashboard_ArcadeMode_Bool = "arcadeMode"; +static const char * k_pch_modelskin_Section = "modelskins"; +static const char * k_pch_Driver_Enable_Bool = "enable"; +static const char * IVRScreenshots_Version = "IVRScreenshots_001"; +static const char * IVRResources_Version = "IVRResources_001"; +static const char * IVRDriverManager_Version = "IVRDriverManager_001"; + +// OpenVR Enums + +typedef enum EVREye +{ + EVREye_Eye_Left = 0, + EVREye_Eye_Right = 1, +} EVREye; + +typedef enum ETextureType +{ + ETextureType_TextureType_DirectX = 0, + ETextureType_TextureType_OpenGL = 1, + ETextureType_TextureType_Vulkan = 2, + ETextureType_TextureType_IOSurface = 3, + ETextureType_TextureType_DirectX12 = 4, +} ETextureType; + +typedef enum EColorSpace +{ + EColorSpace_ColorSpace_Auto = 0, + EColorSpace_ColorSpace_Gamma = 1, + EColorSpace_ColorSpace_Linear = 2, +} EColorSpace; + +typedef enum ETrackingResult +{ + ETrackingResult_TrackingResult_Uninitialized = 1, + ETrackingResult_TrackingResult_Calibrating_InProgress = 100, + ETrackingResult_TrackingResult_Calibrating_OutOfRange = 101, + ETrackingResult_TrackingResult_Running_OK = 200, + ETrackingResult_TrackingResult_Running_OutOfRange = 201, +} ETrackingResult; + +typedef enum ETrackedDeviceClass +{ + ETrackedDeviceClass_TrackedDeviceClass_Invalid = 0, + ETrackedDeviceClass_TrackedDeviceClass_HMD = 1, + ETrackedDeviceClass_TrackedDeviceClass_Controller = 2, + ETrackedDeviceClass_TrackedDeviceClass_GenericTracker = 3, + ETrackedDeviceClass_TrackedDeviceClass_TrackingReference = 4, + ETrackedDeviceClass_TrackedDeviceClass_DisplayRedirect = 5, +} ETrackedDeviceClass; + +typedef enum ETrackedControllerRole +{ + ETrackedControllerRole_TrackedControllerRole_Invalid = 0, + ETrackedControllerRole_TrackedControllerRole_LeftHand = 1, + ETrackedControllerRole_TrackedControllerRole_RightHand = 2, +} ETrackedControllerRole; + +typedef enum ETrackingUniverseOrigin +{ + ETrackingUniverseOrigin_TrackingUniverseSeated = 0, + ETrackingUniverseOrigin_TrackingUniverseStanding = 1, + ETrackingUniverseOrigin_TrackingUniverseRawAndUncalibrated = 2, +} ETrackingUniverseOrigin; + +typedef enum ETrackedDeviceProperty +{ + ETrackedDeviceProperty_Prop_Invalid = 0, + ETrackedDeviceProperty_Prop_TrackingSystemName_String = 1000, + ETrackedDeviceProperty_Prop_ModelNumber_String = 1001, + ETrackedDeviceProperty_Prop_SerialNumber_String = 1002, + ETrackedDeviceProperty_Prop_RenderModelName_String = 1003, + ETrackedDeviceProperty_Prop_WillDriftInYaw_Bool = 1004, + ETrackedDeviceProperty_Prop_ManufacturerName_String = 1005, + ETrackedDeviceProperty_Prop_TrackingFirmwareVersion_String = 1006, + ETrackedDeviceProperty_Prop_HardwareRevision_String = 1007, + ETrackedDeviceProperty_Prop_AllWirelessDongleDescriptions_String = 1008, + ETrackedDeviceProperty_Prop_ConnectedWirelessDongle_String = 1009, + ETrackedDeviceProperty_Prop_DeviceIsWireless_Bool = 1010, + ETrackedDeviceProperty_Prop_DeviceIsCharging_Bool = 1011, + ETrackedDeviceProperty_Prop_DeviceBatteryPercentage_Float = 1012, + ETrackedDeviceProperty_Prop_StatusDisplayTransform_Matrix34 = 1013, + ETrackedDeviceProperty_Prop_Firmware_UpdateAvailable_Bool = 1014, + ETrackedDeviceProperty_Prop_Firmware_ManualUpdate_Bool = 1015, + ETrackedDeviceProperty_Prop_Firmware_ManualUpdateURL_String = 1016, + ETrackedDeviceProperty_Prop_HardwareRevision_Uint64 = 1017, + ETrackedDeviceProperty_Prop_FirmwareVersion_Uint64 = 1018, + ETrackedDeviceProperty_Prop_FPGAVersion_Uint64 = 1019, + ETrackedDeviceProperty_Prop_VRCVersion_Uint64 = 1020, + ETrackedDeviceProperty_Prop_RadioVersion_Uint64 = 1021, + ETrackedDeviceProperty_Prop_DongleVersion_Uint64 = 1022, + ETrackedDeviceProperty_Prop_BlockServerShutdown_Bool = 1023, + ETrackedDeviceProperty_Prop_CanUnifyCoordinateSystemWithHmd_Bool = 1024, + ETrackedDeviceProperty_Prop_ContainsProximitySensor_Bool = 1025, + ETrackedDeviceProperty_Prop_DeviceProvidesBatteryStatus_Bool = 1026, + ETrackedDeviceProperty_Prop_DeviceCanPowerOff_Bool = 1027, + ETrackedDeviceProperty_Prop_Firmware_ProgrammingTarget_String = 1028, + ETrackedDeviceProperty_Prop_DeviceClass_Int32 = 1029, + ETrackedDeviceProperty_Prop_HasCamera_Bool = 1030, + ETrackedDeviceProperty_Prop_DriverVersion_String = 1031, + ETrackedDeviceProperty_Prop_Firmware_ForceUpdateRequired_Bool = 1032, + ETrackedDeviceProperty_Prop_ViveSystemButtonFixRequired_Bool = 1033, + ETrackedDeviceProperty_Prop_ParentDriver_Uint64 = 1034, + ETrackedDeviceProperty_Prop_ResourceRoot_String = 1035, + ETrackedDeviceProperty_Prop_ReportsTimeSinceVSync_Bool = 2000, + ETrackedDeviceProperty_Prop_SecondsFromVsyncToPhotons_Float = 2001, + ETrackedDeviceProperty_Prop_DisplayFrequency_Float = 2002, + ETrackedDeviceProperty_Prop_UserIpdMeters_Float = 2003, + ETrackedDeviceProperty_Prop_CurrentUniverseId_Uint64 = 2004, + ETrackedDeviceProperty_Prop_PreviousUniverseId_Uint64 = 2005, + ETrackedDeviceProperty_Prop_DisplayFirmwareVersion_Uint64 = 2006, + ETrackedDeviceProperty_Prop_IsOnDesktop_Bool = 2007, + ETrackedDeviceProperty_Prop_DisplayMCType_Int32 = 2008, + ETrackedDeviceProperty_Prop_DisplayMCOffset_Float = 2009, + ETrackedDeviceProperty_Prop_DisplayMCScale_Float = 2010, + ETrackedDeviceProperty_Prop_EdidVendorID_Int32 = 2011, + ETrackedDeviceProperty_Prop_DisplayMCImageLeft_String = 2012, + ETrackedDeviceProperty_Prop_DisplayMCImageRight_String = 2013, + ETrackedDeviceProperty_Prop_DisplayGCBlackClamp_Float = 2014, + ETrackedDeviceProperty_Prop_EdidProductID_Int32 = 2015, + ETrackedDeviceProperty_Prop_CameraToHeadTransform_Matrix34 = 2016, + ETrackedDeviceProperty_Prop_DisplayGCType_Int32 = 2017, + ETrackedDeviceProperty_Prop_DisplayGCOffset_Float = 2018, + ETrackedDeviceProperty_Prop_DisplayGCScale_Float = 2019, + ETrackedDeviceProperty_Prop_DisplayGCPrescale_Float = 2020, + ETrackedDeviceProperty_Prop_DisplayGCImage_String = 2021, + ETrackedDeviceProperty_Prop_LensCenterLeftU_Float = 2022, + ETrackedDeviceProperty_Prop_LensCenterLeftV_Float = 2023, + ETrackedDeviceProperty_Prop_LensCenterRightU_Float = 2024, + ETrackedDeviceProperty_Prop_LensCenterRightV_Float = 2025, + ETrackedDeviceProperty_Prop_UserHeadToEyeDepthMeters_Float = 2026, + ETrackedDeviceProperty_Prop_CameraFirmwareVersion_Uint64 = 2027, + ETrackedDeviceProperty_Prop_CameraFirmwareDescription_String = 2028, + ETrackedDeviceProperty_Prop_DisplayFPGAVersion_Uint64 = 2029, + ETrackedDeviceProperty_Prop_DisplayBootloaderVersion_Uint64 = 2030, + ETrackedDeviceProperty_Prop_DisplayHardwareVersion_Uint64 = 2031, + ETrackedDeviceProperty_Prop_AudioFirmwareVersion_Uint64 = 2032, + ETrackedDeviceProperty_Prop_CameraCompatibilityMode_Int32 = 2033, + ETrackedDeviceProperty_Prop_ScreenshotHorizontalFieldOfViewDegrees_Float = 2034, + ETrackedDeviceProperty_Prop_ScreenshotVerticalFieldOfViewDegrees_Float = 2035, + ETrackedDeviceProperty_Prop_DisplaySuppressed_Bool = 2036, + ETrackedDeviceProperty_Prop_DisplayAllowNightMode_Bool = 2037, + ETrackedDeviceProperty_Prop_DisplayMCImageWidth_Int32 = 2038, + ETrackedDeviceProperty_Prop_DisplayMCImageHeight_Int32 = 2039, + ETrackedDeviceProperty_Prop_DisplayMCImageNumChannels_Int32 = 2040, + ETrackedDeviceProperty_Prop_DisplayMCImageData_Binary = 2041, + ETrackedDeviceProperty_Prop_SecondsFromPhotonsToVblank_Float = 2042, + ETrackedDeviceProperty_Prop_DriverDirectModeSendsVsyncEvents_Bool = 2043, + ETrackedDeviceProperty_Prop_DisplayDebugMode_Bool = 2044, + ETrackedDeviceProperty_Prop_GraphicsAdapterLuid_Uint64 = 2045, + ETrackedDeviceProperty_Prop_AttachedDeviceId_String = 3000, + ETrackedDeviceProperty_Prop_SupportedButtons_Uint64 = 3001, + ETrackedDeviceProperty_Prop_Axis0Type_Int32 = 3002, + ETrackedDeviceProperty_Prop_Axis1Type_Int32 = 3003, + ETrackedDeviceProperty_Prop_Axis2Type_Int32 = 3004, + ETrackedDeviceProperty_Prop_Axis3Type_Int32 = 3005, + ETrackedDeviceProperty_Prop_Axis4Type_Int32 = 3006, + ETrackedDeviceProperty_Prop_ControllerRoleHint_Int32 = 3007, + ETrackedDeviceProperty_Prop_FieldOfViewLeftDegrees_Float = 4000, + ETrackedDeviceProperty_Prop_FieldOfViewRightDegrees_Float = 4001, + ETrackedDeviceProperty_Prop_FieldOfViewTopDegrees_Float = 4002, + ETrackedDeviceProperty_Prop_FieldOfViewBottomDegrees_Float = 4003, + ETrackedDeviceProperty_Prop_TrackingRangeMinimumMeters_Float = 4004, + ETrackedDeviceProperty_Prop_TrackingRangeMaximumMeters_Float = 4005, + ETrackedDeviceProperty_Prop_ModeLabel_String = 4006, + ETrackedDeviceProperty_Prop_IconPathName_String = 5000, + ETrackedDeviceProperty_Prop_NamedIconPathDeviceOff_String = 5001, + ETrackedDeviceProperty_Prop_NamedIconPathDeviceSearching_String = 5002, + ETrackedDeviceProperty_Prop_NamedIconPathDeviceSearchingAlert_String = 5003, + ETrackedDeviceProperty_Prop_NamedIconPathDeviceReady_String = 5004, + ETrackedDeviceProperty_Prop_NamedIconPathDeviceReadyAlert_String = 5005, + ETrackedDeviceProperty_Prop_NamedIconPathDeviceNotReady_String = 5006, + ETrackedDeviceProperty_Prop_NamedIconPathDeviceStandby_String = 5007, + ETrackedDeviceProperty_Prop_NamedIconPathDeviceAlertLow_String = 5008, + ETrackedDeviceProperty_Prop_DisplayHiddenArea_Binary_Start = 5100, + ETrackedDeviceProperty_Prop_DisplayHiddenArea_Binary_End = 5150, + ETrackedDeviceProperty_Prop_UserConfigPath_String = 6000, + ETrackedDeviceProperty_Prop_InstallPath_String = 6001, + ETrackedDeviceProperty_Prop_HasDisplayComponent_Bool = 6002, + ETrackedDeviceProperty_Prop_HasControllerComponent_Bool = 6003, + ETrackedDeviceProperty_Prop_HasCameraComponent_Bool = 6004, + ETrackedDeviceProperty_Prop_HasDriverDirectModeComponent_Bool = 6005, + ETrackedDeviceProperty_Prop_HasVirtualDisplayComponent_Bool = 6006, + ETrackedDeviceProperty_Prop_VendorSpecific_Reserved_Start = 10000, + ETrackedDeviceProperty_Prop_VendorSpecific_Reserved_End = 10999, +} ETrackedDeviceProperty; + +typedef enum ETrackedPropertyError +{ + ETrackedPropertyError_TrackedProp_Success = 0, + ETrackedPropertyError_TrackedProp_WrongDataType = 1, + ETrackedPropertyError_TrackedProp_WrongDeviceClass = 2, + ETrackedPropertyError_TrackedProp_BufferTooSmall = 3, + ETrackedPropertyError_TrackedProp_UnknownProperty = 4, + ETrackedPropertyError_TrackedProp_InvalidDevice = 5, + ETrackedPropertyError_TrackedProp_CouldNotContactServer = 6, + ETrackedPropertyError_TrackedProp_ValueNotProvidedByDevice = 7, + ETrackedPropertyError_TrackedProp_StringExceedsMaximumLength = 8, + ETrackedPropertyError_TrackedProp_NotYetAvailable = 9, + ETrackedPropertyError_TrackedProp_PermissionDenied = 10, + ETrackedPropertyError_TrackedProp_InvalidOperation = 11, +} ETrackedPropertyError; + +typedef enum EVRSubmitFlags +{ + EVRSubmitFlags_Submit_Default = 0, + EVRSubmitFlags_Submit_LensDistortionAlreadyApplied = 1, + EVRSubmitFlags_Submit_GlRenderBuffer = 2, + EVRSubmitFlags_Submit_Reserved = 4, +} EVRSubmitFlags; + +typedef enum EVRState +{ + EVRState_VRState_Undefined = -1, + EVRState_VRState_Off = 0, + EVRState_VRState_Searching = 1, + EVRState_VRState_Searching_Alert = 2, + EVRState_VRState_Ready = 3, + EVRState_VRState_Ready_Alert = 4, + EVRState_VRState_NotReady = 5, + EVRState_VRState_Standby = 6, + EVRState_VRState_Ready_Alert_Low = 7, +} EVRState; + +typedef enum EVREventType +{ + EVREventType_VREvent_None = 0, + EVREventType_VREvent_TrackedDeviceActivated = 100, + EVREventType_VREvent_TrackedDeviceDeactivated = 101, + EVREventType_VREvent_TrackedDeviceUpdated = 102, + EVREventType_VREvent_TrackedDeviceUserInteractionStarted = 103, + EVREventType_VREvent_TrackedDeviceUserInteractionEnded = 104, + EVREventType_VREvent_IpdChanged = 105, + EVREventType_VREvent_EnterStandbyMode = 106, + EVREventType_VREvent_LeaveStandbyMode = 107, + EVREventType_VREvent_TrackedDeviceRoleChanged = 108, + EVREventType_VREvent_WatchdogWakeUpRequested = 109, + EVREventType_VREvent_LensDistortionChanged = 110, + EVREventType_VREvent_PropertyChanged = 111, + EVREventType_VREvent_ButtonPress = 200, + EVREventType_VREvent_ButtonUnpress = 201, + EVREventType_VREvent_ButtonTouch = 202, + EVREventType_VREvent_ButtonUntouch = 203, + EVREventType_VREvent_MouseMove = 300, + EVREventType_VREvent_MouseButtonDown = 301, + EVREventType_VREvent_MouseButtonUp = 302, + EVREventType_VREvent_FocusEnter = 303, + EVREventType_VREvent_FocusLeave = 304, + EVREventType_VREvent_Scroll = 305, + EVREventType_VREvent_TouchPadMove = 306, + EVREventType_VREvent_OverlayFocusChanged = 307, + EVREventType_VREvent_InputFocusCaptured = 400, + EVREventType_VREvent_InputFocusReleased = 401, + EVREventType_VREvent_SceneFocusLost = 402, + EVREventType_VREvent_SceneFocusGained = 403, + EVREventType_VREvent_SceneApplicationChanged = 404, + EVREventType_VREvent_SceneFocusChanged = 405, + EVREventType_VREvent_InputFocusChanged = 406, + EVREventType_VREvent_SceneApplicationSecondaryRenderingStarted = 407, + EVREventType_VREvent_HideRenderModels = 410, + EVREventType_VREvent_ShowRenderModels = 411, + EVREventType_VREvent_OverlayShown = 500, + EVREventType_VREvent_OverlayHidden = 501, + EVREventType_VREvent_DashboardActivated = 502, + EVREventType_VREvent_DashboardDeactivated = 503, + EVREventType_VREvent_DashboardThumbSelected = 504, + EVREventType_VREvent_DashboardRequested = 505, + EVREventType_VREvent_ResetDashboard = 506, + EVREventType_VREvent_RenderToast = 507, + EVREventType_VREvent_ImageLoaded = 508, + EVREventType_VREvent_ShowKeyboard = 509, + EVREventType_VREvent_HideKeyboard = 510, + EVREventType_VREvent_OverlayGamepadFocusGained = 511, + EVREventType_VREvent_OverlayGamepadFocusLost = 512, + EVREventType_VREvent_OverlaySharedTextureChanged = 513, + EVREventType_VREvent_DashboardGuideButtonDown = 514, + EVREventType_VREvent_DashboardGuideButtonUp = 515, + EVREventType_VREvent_ScreenshotTriggered = 516, + EVREventType_VREvent_ImageFailed = 517, + EVREventType_VREvent_DashboardOverlayCreated = 518, + EVREventType_VREvent_RequestScreenshot = 520, + EVREventType_VREvent_ScreenshotTaken = 521, + EVREventType_VREvent_ScreenshotFailed = 522, + EVREventType_VREvent_SubmitScreenshotToDashboard = 523, + EVREventType_VREvent_ScreenshotProgressToDashboard = 524, + EVREventType_VREvent_PrimaryDashboardDeviceChanged = 525, + EVREventType_VREvent_Notification_Shown = 600, + EVREventType_VREvent_Notification_Hidden = 601, + EVREventType_VREvent_Notification_BeginInteraction = 602, + EVREventType_VREvent_Notification_Destroyed = 603, + EVREventType_VREvent_Quit = 700, + EVREventType_VREvent_ProcessQuit = 701, + EVREventType_VREvent_QuitAborted_UserPrompt = 702, + EVREventType_VREvent_QuitAcknowledged = 703, + EVREventType_VREvent_DriverRequestedQuit = 704, + EVREventType_VREvent_ChaperoneDataHasChanged = 800, + EVREventType_VREvent_ChaperoneUniverseHasChanged = 801, + EVREventType_VREvent_ChaperoneTempDataHasChanged = 802, + EVREventType_VREvent_ChaperoneSettingsHaveChanged = 803, + EVREventType_VREvent_SeatedZeroPoseReset = 804, + EVREventType_VREvent_AudioSettingsHaveChanged = 820, + EVREventType_VREvent_BackgroundSettingHasChanged = 850, + EVREventType_VREvent_CameraSettingsHaveChanged = 851, + EVREventType_VREvent_ReprojectionSettingHasChanged = 852, + EVREventType_VREvent_ModelSkinSettingsHaveChanged = 853, + EVREventType_VREvent_EnvironmentSettingsHaveChanged = 854, + EVREventType_VREvent_PowerSettingsHaveChanged = 855, + EVREventType_VREvent_EnableHomeAppSettingsHaveChanged = 856, + EVREventType_VREvent_StatusUpdate = 900, + EVREventType_VREvent_MCImageUpdated = 1000, + EVREventType_VREvent_FirmwareUpdateStarted = 1100, + EVREventType_VREvent_FirmwareUpdateFinished = 1101, + EVREventType_VREvent_KeyboardClosed = 1200, + EVREventType_VREvent_KeyboardCharInput = 1201, + EVREventType_VREvent_KeyboardDone = 1202, + EVREventType_VREvent_ApplicationTransitionStarted = 1300, + EVREventType_VREvent_ApplicationTransitionAborted = 1301, + EVREventType_VREvent_ApplicationTransitionNewAppStarted = 1302, + EVREventType_VREvent_ApplicationListUpdated = 1303, + EVREventType_VREvent_ApplicationMimeTypeLoad = 1304, + EVREventType_VREvent_ApplicationTransitionNewAppLaunchComplete = 1305, + EVREventType_VREvent_ProcessConnected = 1306, + EVREventType_VREvent_ProcessDisconnected = 1307, + EVREventType_VREvent_Compositor_MirrorWindowShown = 1400, + EVREventType_VREvent_Compositor_MirrorWindowHidden = 1401, + EVREventType_VREvent_Compositor_ChaperoneBoundsShown = 1410, + EVREventType_VREvent_Compositor_ChaperoneBoundsHidden = 1411, + EVREventType_VREvent_TrackedCamera_StartVideoStream = 1500, + EVREventType_VREvent_TrackedCamera_StopVideoStream = 1501, + EVREventType_VREvent_TrackedCamera_PauseVideoStream = 1502, + EVREventType_VREvent_TrackedCamera_ResumeVideoStream = 1503, + EVREventType_VREvent_TrackedCamera_EditingSurface = 1550, + EVREventType_VREvent_PerformanceTest_EnableCapture = 1600, + EVREventType_VREvent_PerformanceTest_DisableCapture = 1601, + EVREventType_VREvent_PerformanceTest_FidelityLevel = 1602, + EVREventType_VREvent_MessageOverlay_Closed = 1650, + EVREventType_VREvent_VendorSpecific_Reserved_Start = 10000, + EVREventType_VREvent_VendorSpecific_Reserved_End = 19999, +} EVREventType; + +typedef enum EDeviceActivityLevel +{ + EDeviceActivityLevel_k_EDeviceActivityLevel_Unknown = -1, + EDeviceActivityLevel_k_EDeviceActivityLevel_Idle = 0, + EDeviceActivityLevel_k_EDeviceActivityLevel_UserInteraction = 1, + EDeviceActivityLevel_k_EDeviceActivityLevel_UserInteraction_Timeout = 2, + EDeviceActivityLevel_k_EDeviceActivityLevel_Standby = 3, +} EDeviceActivityLevel; + +typedef enum EVRButtonId +{ + EVRButtonId_k_EButton_System = 0, + EVRButtonId_k_EButton_ApplicationMenu = 1, + EVRButtonId_k_EButton_Grip = 2, + EVRButtonId_k_EButton_DPad_Left = 3, + EVRButtonId_k_EButton_DPad_Up = 4, + EVRButtonId_k_EButton_DPad_Right = 5, + EVRButtonId_k_EButton_DPad_Down = 6, + EVRButtonId_k_EButton_A = 7, + EVRButtonId_k_EButton_ProximitySensor = 31, + EVRButtonId_k_EButton_Axis0 = 32, + EVRButtonId_k_EButton_Axis1 = 33, + EVRButtonId_k_EButton_Axis2 = 34, + EVRButtonId_k_EButton_Axis3 = 35, + EVRButtonId_k_EButton_Axis4 = 36, + EVRButtonId_k_EButton_SteamVR_Touchpad = 32, + EVRButtonId_k_EButton_SteamVR_Trigger = 33, + EVRButtonId_k_EButton_Dashboard_Back = 2, + EVRButtonId_k_EButton_Max = 64, +} EVRButtonId; + +typedef enum EVRMouseButton +{ + EVRMouseButton_VRMouseButton_Left = 1, + EVRMouseButton_VRMouseButton_Right = 2, + EVRMouseButton_VRMouseButton_Middle = 4, +} EVRMouseButton; + +typedef enum EHiddenAreaMeshType +{ + EHiddenAreaMeshType_k_eHiddenAreaMesh_Standard = 0, + EHiddenAreaMeshType_k_eHiddenAreaMesh_Inverse = 1, + EHiddenAreaMeshType_k_eHiddenAreaMesh_LineLoop = 2, + EHiddenAreaMeshType_k_eHiddenAreaMesh_Max = 3, +} EHiddenAreaMeshType; + +typedef enum EVRControllerAxisType +{ + EVRControllerAxisType_k_eControllerAxis_None = 0, + EVRControllerAxisType_k_eControllerAxis_TrackPad = 1, + EVRControllerAxisType_k_eControllerAxis_Joystick = 2, + EVRControllerAxisType_k_eControllerAxis_Trigger = 3, +} EVRControllerAxisType; + +typedef enum EVRControllerEventOutputType +{ + EVRControllerEventOutputType_ControllerEventOutput_OSEvents = 0, + EVRControllerEventOutputType_ControllerEventOutput_VREvents = 1, +} EVRControllerEventOutputType; + +typedef enum ECollisionBoundsStyle +{ + ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_BEGINNER = 0, + ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_INTERMEDIATE = 1, + ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_SQUARES = 2, + ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_ADVANCED = 3, + ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_NONE = 4, + ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_COUNT = 5, +} ECollisionBoundsStyle; + +typedef enum EVROverlayError +{ + EVROverlayError_VROverlayError_None = 0, + EVROverlayError_VROverlayError_UnknownOverlay = 10, + EVROverlayError_VROverlayError_InvalidHandle = 11, + EVROverlayError_VROverlayError_PermissionDenied = 12, + EVROverlayError_VROverlayError_OverlayLimitExceeded = 13, + EVROverlayError_VROverlayError_WrongVisibilityType = 14, + EVROverlayError_VROverlayError_KeyTooLong = 15, + EVROverlayError_VROverlayError_NameTooLong = 16, + EVROverlayError_VROverlayError_KeyInUse = 17, + EVROverlayError_VROverlayError_WrongTransformType = 18, + EVROverlayError_VROverlayError_InvalidTrackedDevice = 19, + EVROverlayError_VROverlayError_InvalidParameter = 20, + EVROverlayError_VROverlayError_ThumbnailCantBeDestroyed = 21, + EVROverlayError_VROverlayError_ArrayTooSmall = 22, + EVROverlayError_VROverlayError_RequestFailed = 23, + EVROverlayError_VROverlayError_InvalidTexture = 24, + EVROverlayError_VROverlayError_UnableToLoadFile = 25, + EVROverlayError_VROverlayError_KeyboardAlreadyInUse = 26, + EVROverlayError_VROverlayError_NoNeighbor = 27, + EVROverlayError_VROverlayError_TooManyMaskPrimitives = 29, + EVROverlayError_VROverlayError_BadMaskPrimitive = 30, +} EVROverlayError; + +typedef enum EVRApplicationType +{ + EVRApplicationType_VRApplication_Other = 0, + EVRApplicationType_VRApplication_Scene = 1, + EVRApplicationType_VRApplication_Overlay = 2, + EVRApplicationType_VRApplication_Background = 3, + EVRApplicationType_VRApplication_Utility = 4, + EVRApplicationType_VRApplication_VRMonitor = 5, + EVRApplicationType_VRApplication_SteamWatchdog = 6, + EVRApplicationType_VRApplication_Bootstrapper = 7, + EVRApplicationType_VRApplication_Max = 8, +} EVRApplicationType; + +typedef enum EVRFirmwareError +{ + EVRFirmwareError_VRFirmwareError_None = 0, + EVRFirmwareError_VRFirmwareError_Success = 1, + EVRFirmwareError_VRFirmwareError_Fail = 2, +} EVRFirmwareError; + +typedef enum EVRNotificationError +{ + EVRNotificationError_VRNotificationError_OK = 0, + EVRNotificationError_VRNotificationError_InvalidNotificationId = 100, + EVRNotificationError_VRNotificationError_NotificationQueueFull = 101, + EVRNotificationError_VRNotificationError_InvalidOverlayHandle = 102, + EVRNotificationError_VRNotificationError_SystemWithUserValueAlreadyExists = 103, +} EVRNotificationError; + +typedef enum EVRInitError +{ + EVRInitError_VRInitError_None = 0, + EVRInitError_VRInitError_Unknown = 1, + EVRInitError_VRInitError_Init_InstallationNotFound = 100, + EVRInitError_VRInitError_Init_InstallationCorrupt = 101, + EVRInitError_VRInitError_Init_VRClientDLLNotFound = 102, + EVRInitError_VRInitError_Init_FileNotFound = 103, + EVRInitError_VRInitError_Init_FactoryNotFound = 104, + EVRInitError_VRInitError_Init_InterfaceNotFound = 105, + EVRInitError_VRInitError_Init_InvalidInterface = 106, + EVRInitError_VRInitError_Init_UserConfigDirectoryInvalid = 107, + EVRInitError_VRInitError_Init_HmdNotFound = 108, + EVRInitError_VRInitError_Init_NotInitialized = 109, + EVRInitError_VRInitError_Init_PathRegistryNotFound = 110, + EVRInitError_VRInitError_Init_NoConfigPath = 111, + EVRInitError_VRInitError_Init_NoLogPath = 112, + EVRInitError_VRInitError_Init_PathRegistryNotWritable = 113, + EVRInitError_VRInitError_Init_AppInfoInitFailed = 114, + EVRInitError_VRInitError_Init_Retry = 115, + EVRInitError_VRInitError_Init_InitCanceledByUser = 116, + EVRInitError_VRInitError_Init_AnotherAppLaunching = 117, + EVRInitError_VRInitError_Init_SettingsInitFailed = 118, + EVRInitError_VRInitError_Init_ShuttingDown = 119, + EVRInitError_VRInitError_Init_TooManyObjects = 120, + EVRInitError_VRInitError_Init_NoServerForBackgroundApp = 121, + EVRInitError_VRInitError_Init_NotSupportedWithCompositor = 122, + EVRInitError_VRInitError_Init_NotAvailableToUtilityApps = 123, + EVRInitError_VRInitError_Init_Internal = 124, + EVRInitError_VRInitError_Init_HmdDriverIdIsNone = 125, + EVRInitError_VRInitError_Init_HmdNotFoundPresenceFailed = 126, + EVRInitError_VRInitError_Init_VRMonitorNotFound = 127, + EVRInitError_VRInitError_Init_VRMonitorStartupFailed = 128, + EVRInitError_VRInitError_Init_LowPowerWatchdogNotSupported = 129, + EVRInitError_VRInitError_Init_InvalidApplicationType = 130, + EVRInitError_VRInitError_Init_NotAvailableToWatchdogApps = 131, + EVRInitError_VRInitError_Init_WatchdogDisabledInSettings = 132, + EVRInitError_VRInitError_Init_VRDashboardNotFound = 133, + EVRInitError_VRInitError_Init_VRDashboardStartupFailed = 134, + EVRInitError_VRInitError_Init_VRHomeNotFound = 135, + EVRInitError_VRInitError_Init_VRHomeStartupFailed = 136, + EVRInitError_VRInitError_Driver_Failed = 200, + EVRInitError_VRInitError_Driver_Unknown = 201, + EVRInitError_VRInitError_Driver_HmdUnknown = 202, + EVRInitError_VRInitError_Driver_NotLoaded = 203, + EVRInitError_VRInitError_Driver_RuntimeOutOfDate = 204, + EVRInitError_VRInitError_Driver_HmdInUse = 205, + EVRInitError_VRInitError_Driver_NotCalibrated = 206, + EVRInitError_VRInitError_Driver_CalibrationInvalid = 207, + EVRInitError_VRInitError_Driver_HmdDisplayNotFound = 208, + EVRInitError_VRInitError_Driver_TrackedDeviceInterfaceUnknown = 209, + EVRInitError_VRInitError_Driver_HmdDriverIdOutOfBounds = 211, + EVRInitError_VRInitError_Driver_HmdDisplayMirrored = 212, + EVRInitError_VRInitError_IPC_ServerInitFailed = 300, + EVRInitError_VRInitError_IPC_ConnectFailed = 301, + EVRInitError_VRInitError_IPC_SharedStateInitFailed = 302, + EVRInitError_VRInitError_IPC_CompositorInitFailed = 303, + EVRInitError_VRInitError_IPC_MutexInitFailed = 304, + EVRInitError_VRInitError_IPC_Failed = 305, + EVRInitError_VRInitError_IPC_CompositorConnectFailed = 306, + EVRInitError_VRInitError_IPC_CompositorInvalidConnectResponse = 307, + EVRInitError_VRInitError_IPC_ConnectFailedAfterMultipleAttempts = 308, + EVRInitError_VRInitError_Compositor_Failed = 400, + EVRInitError_VRInitError_Compositor_D3D11HardwareRequired = 401, + EVRInitError_VRInitError_Compositor_FirmwareRequiresUpdate = 402, + EVRInitError_VRInitError_Compositor_OverlayInitFailed = 403, + EVRInitError_VRInitError_Compositor_ScreenshotsInitFailed = 404, + EVRInitError_VRInitError_Compositor_UnableToCreateDevice = 405, + EVRInitError_VRInitError_VendorSpecific_UnableToConnectToOculusRuntime = 1000, + EVRInitError_VRInitError_VendorSpecific_HmdFound_CantOpenDevice = 1101, + EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102, + EVRInitError_VRInitError_VendorSpecific_HmdFound_NoStoredConfig = 1103, + EVRInitError_VRInitError_VendorSpecific_HmdFound_ConfigTooBig = 1104, + EVRInitError_VRInitError_VendorSpecific_HmdFound_ConfigTooSmall = 1105, + EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToInitZLib = 1106, + EVRInitError_VRInitError_VendorSpecific_HmdFound_CantReadFirmwareVersion = 1107, + EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToSendUserDataStart = 1108, + EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataStart = 1109, + EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataNext = 1110, + EVRInitError_VRInitError_VendorSpecific_HmdFound_UserDataAddressRange = 1111, + EVRInitError_VRInitError_VendorSpecific_HmdFound_UserDataError = 1112, + EVRInitError_VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck = 1113, + EVRInitError_VRInitError_Steam_SteamInstallationNotFound = 2000, +} EVRInitError; + +typedef enum EVRScreenshotType +{ + EVRScreenshotType_VRScreenshotType_None = 0, + EVRScreenshotType_VRScreenshotType_Mono = 1, + EVRScreenshotType_VRScreenshotType_Stereo = 2, + EVRScreenshotType_VRScreenshotType_Cubemap = 3, + EVRScreenshotType_VRScreenshotType_MonoPanorama = 4, + EVRScreenshotType_VRScreenshotType_StereoPanorama = 5, +} EVRScreenshotType; + +typedef enum EVRScreenshotPropertyFilenames +{ + EVRScreenshotPropertyFilenames_VRScreenshotPropertyFilenames_Preview = 0, + EVRScreenshotPropertyFilenames_VRScreenshotPropertyFilenames_VR = 1, +} EVRScreenshotPropertyFilenames; + +typedef enum EVRTrackedCameraError +{ + EVRTrackedCameraError_VRTrackedCameraError_None = 0, + EVRTrackedCameraError_VRTrackedCameraError_OperationFailed = 100, + EVRTrackedCameraError_VRTrackedCameraError_InvalidHandle = 101, + EVRTrackedCameraError_VRTrackedCameraError_InvalidFrameHeaderVersion = 102, + EVRTrackedCameraError_VRTrackedCameraError_OutOfHandles = 103, + EVRTrackedCameraError_VRTrackedCameraError_IPCFailure = 104, + EVRTrackedCameraError_VRTrackedCameraError_NotSupportedForThisDevice = 105, + EVRTrackedCameraError_VRTrackedCameraError_SharedMemoryFailure = 106, + EVRTrackedCameraError_VRTrackedCameraError_FrameBufferingFailure = 107, + EVRTrackedCameraError_VRTrackedCameraError_StreamSetupFailure = 108, + EVRTrackedCameraError_VRTrackedCameraError_InvalidGLTextureId = 109, + EVRTrackedCameraError_VRTrackedCameraError_InvalidSharedTextureHandle = 110, + EVRTrackedCameraError_VRTrackedCameraError_FailedToGetGLTextureId = 111, + EVRTrackedCameraError_VRTrackedCameraError_SharedTextureFailure = 112, + EVRTrackedCameraError_VRTrackedCameraError_NoFrameAvailable = 113, + EVRTrackedCameraError_VRTrackedCameraError_InvalidArgument = 114, + EVRTrackedCameraError_VRTrackedCameraError_InvalidFrameBufferSize = 115, +} EVRTrackedCameraError; + +typedef enum EVRTrackedCameraFrameType +{ + EVRTrackedCameraFrameType_VRTrackedCameraFrameType_Distorted = 0, + EVRTrackedCameraFrameType_VRTrackedCameraFrameType_Undistorted = 1, + EVRTrackedCameraFrameType_VRTrackedCameraFrameType_MaximumUndistorted = 2, + EVRTrackedCameraFrameType_MAX_CAMERA_FRAME_TYPES = 3, +} EVRTrackedCameraFrameType; + +typedef enum EVRApplicationError +{ + EVRApplicationError_VRApplicationError_None = 0, + EVRApplicationError_VRApplicationError_AppKeyAlreadyExists = 100, + EVRApplicationError_VRApplicationError_NoManifest = 101, + EVRApplicationError_VRApplicationError_NoApplication = 102, + EVRApplicationError_VRApplicationError_InvalidIndex = 103, + EVRApplicationError_VRApplicationError_UnknownApplication = 104, + EVRApplicationError_VRApplicationError_IPCFailed = 105, + EVRApplicationError_VRApplicationError_ApplicationAlreadyRunning = 106, + EVRApplicationError_VRApplicationError_InvalidManifest = 107, + EVRApplicationError_VRApplicationError_InvalidApplication = 108, + EVRApplicationError_VRApplicationError_LaunchFailed = 109, + EVRApplicationError_VRApplicationError_ApplicationAlreadyStarting = 110, + EVRApplicationError_VRApplicationError_LaunchInProgress = 111, + EVRApplicationError_VRApplicationError_OldApplicationQuitting = 112, + EVRApplicationError_VRApplicationError_TransitionAborted = 113, + EVRApplicationError_VRApplicationError_IsTemplate = 114, + EVRApplicationError_VRApplicationError_BufferTooSmall = 200, + EVRApplicationError_VRApplicationError_PropertyNotSet = 201, + EVRApplicationError_VRApplicationError_UnknownProperty = 202, + EVRApplicationError_VRApplicationError_InvalidParameter = 203, +} EVRApplicationError; + +typedef enum EVRApplicationProperty +{ + EVRApplicationProperty_VRApplicationProperty_Name_String = 0, + EVRApplicationProperty_VRApplicationProperty_LaunchType_String = 11, + EVRApplicationProperty_VRApplicationProperty_WorkingDirectory_String = 12, + EVRApplicationProperty_VRApplicationProperty_BinaryPath_String = 13, + EVRApplicationProperty_VRApplicationProperty_Arguments_String = 14, + EVRApplicationProperty_VRApplicationProperty_URL_String = 15, + EVRApplicationProperty_VRApplicationProperty_Description_String = 50, + EVRApplicationProperty_VRApplicationProperty_NewsURL_String = 51, + EVRApplicationProperty_VRApplicationProperty_ImagePath_String = 52, + EVRApplicationProperty_VRApplicationProperty_Source_String = 53, + EVRApplicationProperty_VRApplicationProperty_IsDashboardOverlay_Bool = 60, + EVRApplicationProperty_VRApplicationProperty_IsTemplate_Bool = 61, + EVRApplicationProperty_VRApplicationProperty_IsInstanced_Bool = 62, + EVRApplicationProperty_VRApplicationProperty_IsInternal_Bool = 63, + EVRApplicationProperty_VRApplicationProperty_LastLaunchTime_Uint64 = 70, +} EVRApplicationProperty; + +typedef enum EVRApplicationTransitionState +{ + EVRApplicationTransitionState_VRApplicationTransition_None = 0, + EVRApplicationTransitionState_VRApplicationTransition_OldAppQuitSent = 10, + EVRApplicationTransitionState_VRApplicationTransition_WaitingForExternalLaunch = 11, + EVRApplicationTransitionState_VRApplicationTransition_NewAppLaunched = 20, +} EVRApplicationTransitionState; + +typedef enum ChaperoneCalibrationState +{ + ChaperoneCalibrationState_OK = 1, + ChaperoneCalibrationState_Warning = 100, + ChaperoneCalibrationState_Warning_BaseStationMayHaveMoved = 101, + ChaperoneCalibrationState_Warning_BaseStationRemoved = 102, + ChaperoneCalibrationState_Warning_SeatedBoundsInvalid = 103, + ChaperoneCalibrationState_Error = 200, + ChaperoneCalibrationState_Error_BaseStationUninitialized = 201, + ChaperoneCalibrationState_Error_BaseStationConflict = 202, + ChaperoneCalibrationState_Error_PlayAreaInvalid = 203, + ChaperoneCalibrationState_Error_CollisionBoundsInvalid = 204, +} ChaperoneCalibrationState; + +typedef enum EChaperoneConfigFile +{ + EChaperoneConfigFile_Live = 1, + EChaperoneConfigFile_Temp = 2, +} EChaperoneConfigFile; + +typedef enum EChaperoneImportFlags +{ + EChaperoneImportFlags_EChaperoneImport_BoundsOnly = 1, +} EChaperoneImportFlags; + +typedef enum EVRCompositorError +{ + EVRCompositorError_VRCompositorError_None = 0, + EVRCompositorError_VRCompositorError_RequestFailed = 1, + EVRCompositorError_VRCompositorError_IncompatibleVersion = 100, + EVRCompositorError_VRCompositorError_DoNotHaveFocus = 101, + EVRCompositorError_VRCompositorError_InvalidTexture = 102, + EVRCompositorError_VRCompositorError_IsNotSceneApplication = 103, + EVRCompositorError_VRCompositorError_TextureIsOnWrongDevice = 104, + EVRCompositorError_VRCompositorError_TextureUsesUnsupportedFormat = 105, + EVRCompositorError_VRCompositorError_SharedTexturesNotSupported = 106, + EVRCompositorError_VRCompositorError_IndexOutOfRange = 107, + EVRCompositorError_VRCompositorError_AlreadySubmitted = 108, +} EVRCompositorError; + +typedef enum VROverlayInputMethod +{ + VROverlayInputMethod_None = 0, + VROverlayInputMethod_Mouse = 1, +} VROverlayInputMethod; + +typedef enum VROverlayTransformType +{ + VROverlayTransformType_VROverlayTransform_Absolute = 0, + VROverlayTransformType_VROverlayTransform_TrackedDeviceRelative = 1, + VROverlayTransformType_VROverlayTransform_SystemOverlay = 2, + VROverlayTransformType_VROverlayTransform_TrackedComponent = 3, +} VROverlayTransformType; + +typedef enum VROverlayFlags +{ + VROverlayFlags_None = 0, + VROverlayFlags_Curved = 1, + VROverlayFlags_RGSS4X = 2, + VROverlayFlags_NoDashboardTab = 3, + VROverlayFlags_AcceptsGamepadEvents = 4, + VROverlayFlags_ShowGamepadFocus = 5, + VROverlayFlags_SendVRScrollEvents = 6, + VROverlayFlags_SendVRTouchpadEvents = 7, + VROverlayFlags_ShowTouchPadScrollWheel = 8, + VROverlayFlags_TransferOwnershipToInternalProcess = 9, + VROverlayFlags_SideBySide_Parallel = 10, + VROverlayFlags_SideBySide_Crossed = 11, + VROverlayFlags_Panorama = 12, + VROverlayFlags_StereoPanorama = 13, + VROverlayFlags_SortWithNonSceneOverlays = 14, + VROverlayFlags_VisibleInDashboard = 15, +} VROverlayFlags; + +typedef enum VRMessageOverlayResponse +{ + VRMessageOverlayResponse_ButtonPress_0 = 0, + VRMessageOverlayResponse_ButtonPress_1 = 1, + VRMessageOverlayResponse_ButtonPress_2 = 2, + VRMessageOverlayResponse_ButtonPress_3 = 3, + VRMessageOverlayResponse_CouldntFindSystemOverlay = 4, + VRMessageOverlayResponse_CouldntFindOrCreateClientOverlay = 5, + VRMessageOverlayResponse_ApplicationQuit = 6, +} VRMessageOverlayResponse; + +typedef enum EGamepadTextInputMode +{ + EGamepadTextInputMode_k_EGamepadTextInputModeNormal = 0, + EGamepadTextInputMode_k_EGamepadTextInputModePassword = 1, + EGamepadTextInputMode_k_EGamepadTextInputModeSubmit = 2, +} EGamepadTextInputMode; + +typedef enum EGamepadTextInputLineMode +{ + EGamepadTextInputLineMode_k_EGamepadTextInputLineModeSingleLine = 0, + EGamepadTextInputLineMode_k_EGamepadTextInputLineModeMultipleLines = 1, +} EGamepadTextInputLineMode; + +typedef enum EOverlayDirection +{ + EOverlayDirection_OverlayDirection_Up = 0, + EOverlayDirection_OverlayDirection_Down = 1, + EOverlayDirection_OverlayDirection_Left = 2, + EOverlayDirection_OverlayDirection_Right = 3, + EOverlayDirection_OverlayDirection_Count = 4, +} EOverlayDirection; + +typedef enum EVROverlayIntersectionMaskPrimitiveType +{ + EVROverlayIntersectionMaskPrimitiveType_OverlayIntersectionPrimitiveType_Rectangle = 0, + EVROverlayIntersectionMaskPrimitiveType_OverlayIntersectionPrimitiveType_Circle = 1, +} EVROverlayIntersectionMaskPrimitiveType; + +typedef enum EVRRenderModelError +{ + EVRRenderModelError_VRRenderModelError_None = 0, + EVRRenderModelError_VRRenderModelError_Loading = 100, + EVRRenderModelError_VRRenderModelError_NotSupported = 200, + EVRRenderModelError_VRRenderModelError_InvalidArg = 300, + EVRRenderModelError_VRRenderModelError_InvalidModel = 301, + EVRRenderModelError_VRRenderModelError_NoShapes = 302, + EVRRenderModelError_VRRenderModelError_MultipleShapes = 303, + EVRRenderModelError_VRRenderModelError_TooManyVertices = 304, + EVRRenderModelError_VRRenderModelError_MultipleTextures = 305, + EVRRenderModelError_VRRenderModelError_BufferTooSmall = 306, + EVRRenderModelError_VRRenderModelError_NotEnoughNormals = 307, + EVRRenderModelError_VRRenderModelError_NotEnoughTexCoords = 308, + EVRRenderModelError_VRRenderModelError_InvalidTexture = 400, +} EVRRenderModelError; + +typedef enum EVRComponentProperty +{ + EVRComponentProperty_VRComponentProperty_IsStatic = 1, + EVRComponentProperty_VRComponentProperty_IsVisible = 2, + EVRComponentProperty_VRComponentProperty_IsTouched = 4, + EVRComponentProperty_VRComponentProperty_IsPressed = 8, + EVRComponentProperty_VRComponentProperty_IsScrolled = 16, +} EVRComponentProperty; + +typedef enum EVRNotificationType +{ + EVRNotificationType_Transient = 0, + EVRNotificationType_Persistent = 1, + EVRNotificationType_Transient_SystemWithUserValue = 2, +} EVRNotificationType; + +typedef enum EVRNotificationStyle +{ + EVRNotificationStyle_None = 0, + EVRNotificationStyle_Application = 100, + EVRNotificationStyle_Contact_Disabled = 200, + EVRNotificationStyle_Contact_Enabled = 201, + EVRNotificationStyle_Contact_Active = 202, +} EVRNotificationStyle; + +typedef enum EVRSettingsError +{ + EVRSettingsError_VRSettingsError_None = 0, + EVRSettingsError_VRSettingsError_IPCFailed = 1, + EVRSettingsError_VRSettingsError_WriteFailed = 2, + EVRSettingsError_VRSettingsError_ReadFailed = 3, + EVRSettingsError_VRSettingsError_JsonParseFailed = 4, + EVRSettingsError_VRSettingsError_UnsetSettingHasNoDefault = 5, +} EVRSettingsError; + +typedef enum EVRScreenshotError +{ + EVRScreenshotError_VRScreenshotError_None = 0, + EVRScreenshotError_VRScreenshotError_RequestFailed = 1, + EVRScreenshotError_VRScreenshotError_IncompatibleVersion = 100, + EVRScreenshotError_VRScreenshotError_NotFound = 101, + EVRScreenshotError_VRScreenshotError_BufferTooSmall = 102, + EVRScreenshotError_VRScreenshotError_ScreenshotAlreadyInProgress = 108, +} EVRScreenshotError; + + +// OpenVR typedefs + +typedef uint32_t TrackedDeviceIndex_t; +typedef uint32_t VRNotificationId; +typedef uint64_t VROverlayHandle_t; + +typedef void * glSharedTextureHandle_t; +typedef int32_t glInt_t; +typedef uint32_t glUInt_t; +typedef uint64_t SharedTextureHandle_t; +typedef uint32_t DriverId_t; +typedef uint32_t TrackedDeviceIndex_t; +typedef uint64_t PropertyContainerHandle_t; +typedef uint32_t PropertyTypeTag_t; +typedef uint64_t VROverlayHandle_t; +typedef uint64_t TrackedCameraHandle_t; +typedef uint32_t ScreenshotHandle_t; +typedef uint32_t VRComponentProperties; +typedef int32_t TextureID_t; +typedef uint32_t VRNotificationId; +typedef EVRInitError HmdError; +typedef EVREye Hmd_Eye; +typedef EColorSpace ColorSpace; +typedef ETrackingResult HmdTrackingResult; +typedef ETrackedDeviceClass TrackedDeviceClass; +typedef ETrackingUniverseOrigin TrackingUniverseOrigin; +typedef ETrackedDeviceProperty TrackedDeviceProperty; +typedef ETrackedPropertyError TrackedPropertyError; +typedef EVRSubmitFlags VRSubmitFlags_t; +typedef EVRState VRState_t; +typedef ECollisionBoundsStyle CollisionBoundsStyle_t; +typedef EVROverlayError VROverlayError; +typedef EVRFirmwareError VRFirmwareError; +typedef EVRCompositorError VRCompositorError; +typedef EVRScreenshotError VRScreenshotsError; + +// OpenVR Structs + +typedef struct HmdMatrix34_t +{ + float m[3][4]; //float[3][4] +} HmdMatrix34_t; + +typedef struct HmdMatrix44_t +{ + float m[4][4]; //float[4][4] +} HmdMatrix44_t; + +typedef struct HmdVector3_t +{ + float v[3]; //float[3] +} HmdVector3_t; + +typedef struct HmdVector4_t +{ + float v[4]; //float[4] +} HmdVector4_t; + +typedef struct HmdVector3d_t +{ + double v[3]; //double[3] +} HmdVector3d_t; + +typedef struct HmdVector2_t +{ + float v[2]; //float[2] +} HmdVector2_t; + +typedef struct HmdQuaternion_t +{ + double w; + double x; + double y; + double z; +} HmdQuaternion_t; + +typedef struct HmdColor_t +{ + float r; + float g; + float b; + float a; +} HmdColor_t; + +typedef struct HmdQuad_t +{ + struct HmdVector3_t vCorners[4]; //struct vr::HmdVector3_t[4] +} HmdQuad_t; + +typedef struct HmdRect2_t +{ + struct HmdVector2_t vTopLeft; + struct HmdVector2_t vBottomRight; +} HmdRect2_t; + +typedef struct DistortionCoordinates_t +{ + float rfRed[2]; //float[2] + float rfGreen[2]; //float[2] + float rfBlue[2]; //float[2] +} DistortionCoordinates_t; + +typedef struct Texture_t +{ + void * handle; // void * + enum ETextureType eType; + enum EColorSpace eColorSpace; +} Texture_t; + +typedef struct TrackedDevicePose_t +{ + struct HmdMatrix34_t mDeviceToAbsoluteTracking; + struct HmdVector3_t vVelocity; + struct HmdVector3_t vAngularVelocity; + enum ETrackingResult eTrackingResult; + bool bPoseIsValid; + bool bDeviceIsConnected; +} TrackedDevicePose_t; + +typedef struct VRTextureBounds_t +{ + float uMin; + float vMin; + float uMax; + float vMax; +} VRTextureBounds_t; + +typedef struct VRVulkanTextureData_t +{ + uint64_t m_nImage; + struct VkDevice_T * m_pDevice; // struct VkDevice_T * + struct VkPhysicalDevice_T * m_pPhysicalDevice; // struct VkPhysicalDevice_T * + struct VkInstance_T * m_pInstance; // struct VkInstance_T * + struct VkQueue_T * m_pQueue; // struct VkQueue_T * + uint32_t m_nQueueFamilyIndex; + uint32_t m_nWidth; + uint32_t m_nHeight; + uint32_t m_nFormat; + uint32_t m_nSampleCount; +} VRVulkanTextureData_t; + +typedef struct D3D12TextureData_t +{ + struct ID3D12Resource * m_pResource; // struct ID3D12Resource * + struct ID3D12CommandQueue * m_pCommandQueue; // struct ID3D12CommandQueue * + uint32_t m_nNodeMask; +} D3D12TextureData_t; + +typedef struct VREvent_Controller_t +{ + uint32_t button; +} VREvent_Controller_t; + +typedef struct VREvent_Mouse_t +{ + float x; + float y; + uint32_t button; +} VREvent_Mouse_t; + +typedef struct VREvent_Scroll_t +{ + float xdelta; + float ydelta; + uint32_t repeatCount; +} VREvent_Scroll_t; + +typedef struct VREvent_TouchPadMove_t +{ + bool bFingerDown; + float flSecondsFingerDown; + float fValueXFirst; + float fValueYFirst; + float fValueXRaw; + float fValueYRaw; +} VREvent_TouchPadMove_t; + +typedef struct VREvent_Notification_t +{ + uint64_t ulUserValue; + uint32_t notificationId; +} VREvent_Notification_t; + +typedef struct VREvent_Process_t +{ + uint32_t pid; + uint32_t oldPid; + bool bForced; +} VREvent_Process_t; + +typedef struct VREvent_Overlay_t +{ + uint64_t overlayHandle; +} VREvent_Overlay_t; + +typedef struct VREvent_Status_t +{ + uint32_t statusState; +} VREvent_Status_t; + +typedef struct VREvent_Keyboard_t +{ + char * cNewInput[8]; //char[8] + uint64_t uUserValue; +} VREvent_Keyboard_t; + +typedef struct VREvent_Ipd_t +{ + float ipdMeters; +} VREvent_Ipd_t; + +typedef struct VREvent_Chaperone_t +{ + uint64_t m_nPreviousUniverse; + uint64_t m_nCurrentUniverse; +} VREvent_Chaperone_t; + +typedef struct VREvent_Reserved_t +{ + uint64_t reserved0; + uint64_t reserved1; +} VREvent_Reserved_t; + +typedef struct VREvent_PerformanceTest_t +{ + uint32_t m_nFidelityLevel; +} VREvent_PerformanceTest_t; + +typedef struct VREvent_SeatedZeroPoseReset_t +{ + bool bResetBySystemMenu; +} VREvent_SeatedZeroPoseReset_t; + +typedef struct VREvent_Screenshot_t +{ + uint32_t handle; + uint32_t type; +} VREvent_Screenshot_t; + +typedef struct VREvent_ScreenshotProgress_t +{ + float progress; +} VREvent_ScreenshotProgress_t; + +typedef struct VREvent_ApplicationLaunch_t +{ + uint32_t pid; + uint32_t unArgsHandle; +} VREvent_ApplicationLaunch_t; + +typedef struct VREvent_EditingCameraSurface_t +{ + uint64_t overlayHandle; + uint32_t nVisualMode; +} VREvent_EditingCameraSurface_t; + +typedef struct VREvent_MessageOverlay_t +{ + uint32_t unVRMessageOverlayResponse; +} VREvent_MessageOverlay_t; + +typedef struct VREvent_Property_t +{ + PropertyContainerHandle_t container; + enum ETrackedDeviceProperty prop; +} VREvent_Property_t; + +typedef struct HiddenAreaMesh_t +{ + struct HmdVector2_t * pVertexData; // const struct vr::HmdVector2_t * + uint32_t unTriangleCount; +} HiddenAreaMesh_t; + +typedef struct VRControllerAxis_t +{ + float x; + float y; +} VRControllerAxis_t; + +typedef struct VRControllerState_t +{ + uint32_t unPacketNum; + uint64_t ulButtonPressed; + uint64_t ulButtonTouched; + struct VRControllerAxis_t rAxis[5]; //struct vr::VRControllerAxis_t[5] +} VRControllerState_t; + +typedef struct Compositor_OverlaySettings +{ + uint32_t size; + bool curved; + bool antialias; + float scale; + float distance; + float alpha; + float uOffset; + float vOffset; + float uScale; + float vScale; + float gridDivs; + float gridWidth; + float gridScale; + struct HmdMatrix44_t transform; +} Compositor_OverlaySettings; + +typedef struct CameraVideoStreamFrameHeader_t +{ + enum EVRTrackedCameraFrameType eFrameType; + uint32_t nWidth; + uint32_t nHeight; + uint32_t nBytesPerPixel; + uint32_t nFrameSequence; + struct TrackedDevicePose_t standingTrackedDevicePose; +} CameraVideoStreamFrameHeader_t; + +typedef struct AppOverrideKeys_t +{ + char * pchKey; // const char * + char * pchValue; // const char * +} AppOverrideKeys_t; + +typedef struct Compositor_FrameTiming +{ + uint32_t m_nSize; + uint32_t m_nFrameIndex; + uint32_t m_nNumFramePresents; + uint32_t m_nNumMisPresented; + uint32_t m_nNumDroppedFrames; + uint32_t m_nReprojectionFlags; + double m_flSystemTimeInSeconds; + float m_flPreSubmitGpuMs; + float m_flPostSubmitGpuMs; + float m_flTotalRenderGpuMs; + float m_flCompositorRenderGpuMs; + float m_flCompositorRenderCpuMs; + float m_flCompositorIdleCpuMs; + float m_flClientFrameIntervalMs; + float m_flPresentCallCpuMs; + float m_flWaitForPresentCpuMs; + float m_flSubmitFrameMs; + float m_flWaitGetPosesCalledMs; + float m_flNewPosesReadyMs; + float m_flNewFrameReadyMs; + float m_flCompositorUpdateStartMs; + float m_flCompositorUpdateEndMs; + float m_flCompositorRenderStartMs; + TrackedDevicePose_t m_HmdPose; +} Compositor_FrameTiming; + +typedef struct Compositor_CumulativeStats +{ + uint32_t m_nPid; + uint32_t m_nNumFramePresents; + uint32_t m_nNumDroppedFrames; + uint32_t m_nNumReprojectedFrames; + uint32_t m_nNumFramePresentsOnStartup; + uint32_t m_nNumDroppedFramesOnStartup; + uint32_t m_nNumReprojectedFramesOnStartup; + uint32_t m_nNumLoading; + uint32_t m_nNumFramePresentsLoading; + uint32_t m_nNumDroppedFramesLoading; + uint32_t m_nNumReprojectedFramesLoading; + uint32_t m_nNumTimedOut; + uint32_t m_nNumFramePresentsTimedOut; + uint32_t m_nNumDroppedFramesTimedOut; + uint32_t m_nNumReprojectedFramesTimedOut; +} Compositor_CumulativeStats; + +typedef struct VROverlayIntersectionParams_t +{ + struct HmdVector3_t vSource; + struct HmdVector3_t vDirection; + enum ETrackingUniverseOrigin eOrigin; +} VROverlayIntersectionParams_t; + +typedef struct VROverlayIntersectionResults_t +{ + struct HmdVector3_t vPoint; + struct HmdVector3_t vNormal; + struct HmdVector2_t vUVs; + float fDistance; +} VROverlayIntersectionResults_t; + +typedef struct IntersectionMaskRectangle_t +{ + float m_flTopLeftX; + float m_flTopLeftY; + float m_flWidth; + float m_flHeight; +} IntersectionMaskRectangle_t; + +typedef struct IntersectionMaskCircle_t +{ + float m_flCenterX; + float m_flCenterY; + float m_flRadius; +} IntersectionMaskCircle_t; + +typedef struct RenderModel_ComponentState_t +{ + struct HmdMatrix34_t mTrackingToComponentRenderModel; + struct HmdMatrix34_t mTrackingToComponentLocal; + VRComponentProperties uProperties; +} RenderModel_ComponentState_t; + +typedef struct RenderModel_Vertex_t +{ + struct HmdVector3_t vPosition; + struct HmdVector3_t vNormal; + float rfTextureCoord[2]; //float[2] +} RenderModel_Vertex_t; + +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( push, 4 ) +#endif +typedef struct RenderModel_TextureMap_t +{ + uint16_t unWidth; + uint16_t unHeight; + uint8_t * rubTextureMapData; // const uint8_t * +} RenderModel_TextureMap_t; + +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( pop ) +#endif +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( push, 4 ) +#endif +typedef struct RenderModel_t +{ + struct RenderModel_Vertex_t * rVertexData; // const struct vr::RenderModel_Vertex_t * + uint32_t unVertexCount; + uint16_t * rIndexData; // const uint16_t * + uint32_t unTriangleCount; + TextureID_t diffuseTextureId; +} RenderModel_t; + +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( pop ) +#endif +typedef struct RenderModel_ControllerMode_State_t +{ + bool bScrollWheelVisible; +} RenderModel_ControllerMode_State_t; + +typedef struct NotificationBitmap_t +{ + void * m_pImageData; // void * + int32_t m_nWidth; + int32_t m_nHeight; + int32_t m_nBytesPerPixel; +} NotificationBitmap_t; + +typedef struct COpenVRContext +{ + intptr_t m_pVRSystem; // class vr::IVRSystem * + intptr_t m_pVRChaperone; // class vr::IVRChaperone * + intptr_t m_pVRChaperoneSetup; // class vr::IVRChaperoneSetup * + intptr_t m_pVRCompositor; // class vr::IVRCompositor * + intptr_t m_pVROverlay; // class vr::IVROverlay * + intptr_t m_pVRResources; // class vr::IVRResources * + intptr_t m_pVRRenderModels; // class vr::IVRRenderModels * + intptr_t m_pVRExtendedDisplay; // class vr::IVRExtendedDisplay * + intptr_t m_pVRSettings; // class vr::IVRSettings * + intptr_t m_pVRApplications; // class vr::IVRApplications * + intptr_t m_pVRTrackedCamera; // class vr::IVRTrackedCamera * + intptr_t m_pVRScreenshots; // class vr::IVRScreenshots * + intptr_t m_pVRDriverManager; // class vr::IVRDriverManager * +} COpenVRContext; + + +typedef union +{ + VREvent_Reserved_t reserved; + VREvent_Controller_t controller; + VREvent_Mouse_t mouse; + VREvent_Scroll_t scroll; + VREvent_Process_t process; + VREvent_Notification_t notification; + VREvent_Overlay_t overlay; + VREvent_Status_t status; + VREvent_Keyboard_t keyboard; + VREvent_Ipd_t ipd; + VREvent_Chaperone_t chaperone; + VREvent_PerformanceTest_t performanceTest; + VREvent_TouchPadMove_t touchPadMove; + VREvent_SeatedZeroPoseReset_t seatedZeroPoseReset; +} VREvent_Data_t; + +/** An event posted by the server to all running applications */ +struct VREvent_t +{ + uint32_t eventType; // EVREventType enum + TrackedDeviceIndex_t trackedDeviceIndex; + float eventAgeSeconds; + // event data must be the end of the struct as its size is variable + VREvent_Data_t data; +}; + + +typedef union +{ + IntersectionMaskRectangle_t m_Rectangle; + IntersectionMaskCircle_t m_Circle; +} VROverlayIntersectionMaskPrimitive_Data_t; + +struct VROverlayIntersectionMaskPrimitive_t +{ + EVROverlayIntersectionMaskPrimitiveType m_nPrimitiveType; + VROverlayIntersectionMaskPrimitive_Data_t m_Primitive; +}; + + +// OpenVR Function Pointer Tables + +struct VR_IVRSystem_FnTable +{ + void (OPENVR_FNTABLE_CALLTYPE *GetRecommendedRenderTargetSize)(uint32_t * pnWidth, uint32_t * pnHeight); + struct HmdMatrix44_t (OPENVR_FNTABLE_CALLTYPE *GetProjectionMatrix)(EVREye eEye, float fNearZ, float fFarZ); + void (OPENVR_FNTABLE_CALLTYPE *GetProjectionRaw)(EVREye eEye, float * pfLeft, float * pfRight, float * pfTop, float * pfBottom); + bool (OPENVR_FNTABLE_CALLTYPE *ComputeDistortion)(EVREye eEye, float fU, float fV, struct DistortionCoordinates_t * pDistortionCoordinates); + struct HmdMatrix34_t (OPENVR_FNTABLE_CALLTYPE *GetEyeToHeadTransform)(EVREye eEye); + bool (OPENVR_FNTABLE_CALLTYPE *GetTimeSinceLastVsync)(float * pfSecondsSinceLastVsync, uint64_t * pulFrameCounter); + int32_t (OPENVR_FNTABLE_CALLTYPE *GetD3D9AdapterIndex)(); + void (OPENVR_FNTABLE_CALLTYPE *GetDXGIOutputInfo)(int32_t * pnAdapterIndex); + void (OPENVR_FNTABLE_CALLTYPE *GetOutputDevice)(uint64_t * pnDevice, ETextureType textureType); + bool (OPENVR_FNTABLE_CALLTYPE *IsDisplayOnDesktop)(); + bool (OPENVR_FNTABLE_CALLTYPE *SetDisplayVisibility)(bool bIsVisibleOnDesktop); + void (OPENVR_FNTABLE_CALLTYPE *GetDeviceToAbsoluteTrackingPose)(ETrackingUniverseOrigin eOrigin, float fPredictedSecondsToPhotonsFromNow, struct TrackedDevicePose_t * pTrackedDevicePoseArray, uint32_t unTrackedDevicePoseArrayCount); + void (OPENVR_FNTABLE_CALLTYPE *ResetSeatedZeroPose)(); + struct HmdMatrix34_t (OPENVR_FNTABLE_CALLTYPE *GetSeatedZeroPoseToStandingAbsoluteTrackingPose)(); + struct HmdMatrix34_t (OPENVR_FNTABLE_CALLTYPE *GetRawZeroPoseToStandingAbsoluteTrackingPose)(); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetSortedTrackedDeviceIndicesOfClass)(ETrackedDeviceClass eTrackedDeviceClass, TrackedDeviceIndex_t * punTrackedDeviceIndexArray, uint32_t unTrackedDeviceIndexArrayCount, TrackedDeviceIndex_t unRelativeToTrackedDeviceIndex); + EDeviceActivityLevel (OPENVR_FNTABLE_CALLTYPE *GetTrackedDeviceActivityLevel)(TrackedDeviceIndex_t unDeviceId); + void (OPENVR_FNTABLE_CALLTYPE *ApplyTransform)(struct TrackedDevicePose_t * pOutputPose, struct TrackedDevicePose_t * pTrackedDevicePose, struct HmdMatrix34_t * pTransform); + TrackedDeviceIndex_t (OPENVR_FNTABLE_CALLTYPE *GetTrackedDeviceIndexForControllerRole)(ETrackedControllerRole unDeviceType); + ETrackedControllerRole (OPENVR_FNTABLE_CALLTYPE *GetControllerRoleForTrackedDeviceIndex)(TrackedDeviceIndex_t unDeviceIndex); + ETrackedDeviceClass (OPENVR_FNTABLE_CALLTYPE *GetTrackedDeviceClass)(TrackedDeviceIndex_t unDeviceIndex); + bool (OPENVR_FNTABLE_CALLTYPE *IsTrackedDeviceConnected)(TrackedDeviceIndex_t unDeviceIndex); + bool (OPENVR_FNTABLE_CALLTYPE *GetBoolTrackedDeviceProperty)(TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError * pError); + float (OPENVR_FNTABLE_CALLTYPE *GetFloatTrackedDeviceProperty)(TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError * pError); + int32_t (OPENVR_FNTABLE_CALLTYPE *GetInt32TrackedDeviceProperty)(TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError * pError); + uint64_t (OPENVR_FNTABLE_CALLTYPE *GetUint64TrackedDeviceProperty)(TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError * pError); + struct HmdMatrix34_t (OPENVR_FNTABLE_CALLTYPE *GetMatrix34TrackedDeviceProperty)(TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError * pError); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetStringTrackedDeviceProperty)(TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, char * pchValue, uint32_t unBufferSize, ETrackedPropertyError * pError); + char * (OPENVR_FNTABLE_CALLTYPE *GetPropErrorNameFromEnum)(ETrackedPropertyError error); + bool (OPENVR_FNTABLE_CALLTYPE *PollNextEvent)(struct VREvent_t * pEvent, uint32_t uncbVREvent); + bool (OPENVR_FNTABLE_CALLTYPE *PollNextEventWithPose)(ETrackingUniverseOrigin eOrigin, struct VREvent_t * pEvent, uint32_t uncbVREvent, TrackedDevicePose_t * pTrackedDevicePose); + char * (OPENVR_FNTABLE_CALLTYPE *GetEventTypeNameFromEnum)(EVREventType eType); + struct HiddenAreaMesh_t (OPENVR_FNTABLE_CALLTYPE *GetHiddenAreaMesh)(EVREye eEye, EHiddenAreaMeshType type); + bool (OPENVR_FNTABLE_CALLTYPE *GetControllerState)(TrackedDeviceIndex_t unControllerDeviceIndex, VRControllerState_t * pControllerState, uint32_t unControllerStateSize); + bool (OPENVR_FNTABLE_CALLTYPE *GetControllerStateWithPose)(ETrackingUniverseOrigin eOrigin, TrackedDeviceIndex_t unControllerDeviceIndex, VRControllerState_t * pControllerState, uint32_t unControllerStateSize, struct TrackedDevicePose_t * pTrackedDevicePose); + void (OPENVR_FNTABLE_CALLTYPE *TriggerHapticPulse)(TrackedDeviceIndex_t unControllerDeviceIndex, uint32_t unAxisId, unsigned short usDurationMicroSec); + char * (OPENVR_FNTABLE_CALLTYPE *GetButtonIdNameFromEnum)(EVRButtonId eButtonId); + char * (OPENVR_FNTABLE_CALLTYPE *GetControllerAxisTypeNameFromEnum)(EVRControllerAxisType eAxisType); + bool (OPENVR_FNTABLE_CALLTYPE *CaptureInputFocus)(); + void (OPENVR_FNTABLE_CALLTYPE *ReleaseInputFocus)(); + bool (OPENVR_FNTABLE_CALLTYPE *IsInputFocusCapturedByAnotherProcess)(); + uint32_t (OPENVR_FNTABLE_CALLTYPE *DriverDebugRequest)(TrackedDeviceIndex_t unDeviceIndex, char * pchRequest, char * pchResponseBuffer, uint32_t unResponseBufferSize); + EVRFirmwareError (OPENVR_FNTABLE_CALLTYPE *PerformFirmwareUpdate)(TrackedDeviceIndex_t unDeviceIndex); + void (OPENVR_FNTABLE_CALLTYPE *AcknowledgeQuit_Exiting)(); + void (OPENVR_FNTABLE_CALLTYPE *AcknowledgeQuit_UserPrompt)(); +}; + +struct VR_IVRExtendedDisplay_FnTable +{ + void (OPENVR_FNTABLE_CALLTYPE *GetWindowBounds)(int32_t * pnX, int32_t * pnY, uint32_t * pnWidth, uint32_t * pnHeight); + void (OPENVR_FNTABLE_CALLTYPE *GetEyeOutputViewport)(EVREye eEye, uint32_t * pnX, uint32_t * pnY, uint32_t * pnWidth, uint32_t * pnHeight); + void (OPENVR_FNTABLE_CALLTYPE *GetDXGIOutputInfo)(int32_t * pnAdapterIndex, int32_t * pnAdapterOutputIndex); +}; + +struct VR_IVRTrackedCamera_FnTable +{ + char * (OPENVR_FNTABLE_CALLTYPE *GetCameraErrorNameFromEnum)(EVRTrackedCameraError eCameraError); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *HasCamera)(TrackedDeviceIndex_t nDeviceIndex, bool * pHasCamera); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *GetCameraFrameSize)(TrackedDeviceIndex_t nDeviceIndex, EVRTrackedCameraFrameType eFrameType, uint32_t * pnWidth, uint32_t * pnHeight, uint32_t * pnFrameBufferSize); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *GetCameraIntrinsics)(TrackedDeviceIndex_t nDeviceIndex, EVRTrackedCameraFrameType eFrameType, HmdVector2_t * pFocalLength, HmdVector2_t * pCenter); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *GetCameraProjection)(TrackedDeviceIndex_t nDeviceIndex, EVRTrackedCameraFrameType eFrameType, float flZNear, float flZFar, HmdMatrix44_t * pProjection); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *AcquireVideoStreamingService)(TrackedDeviceIndex_t nDeviceIndex, TrackedCameraHandle_t * pHandle); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *ReleaseVideoStreamingService)(TrackedCameraHandle_t hTrackedCamera); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *GetVideoStreamFrameBuffer)(TrackedCameraHandle_t hTrackedCamera, EVRTrackedCameraFrameType eFrameType, void * pFrameBuffer, uint32_t nFrameBufferSize, CameraVideoStreamFrameHeader_t * pFrameHeader, uint32_t nFrameHeaderSize); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *GetVideoStreamTextureSize)(TrackedDeviceIndex_t nDeviceIndex, EVRTrackedCameraFrameType eFrameType, VRTextureBounds_t * pTextureBounds, uint32_t * pnWidth, uint32_t * pnHeight); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *GetVideoStreamTextureD3D11)(TrackedCameraHandle_t hTrackedCamera, EVRTrackedCameraFrameType eFrameType, void * pD3D11DeviceOrResource, void ** ppD3D11ShaderResourceView, CameraVideoStreamFrameHeader_t * pFrameHeader, uint32_t nFrameHeaderSize); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *GetVideoStreamTextureGL)(TrackedCameraHandle_t hTrackedCamera, EVRTrackedCameraFrameType eFrameType, glUInt_t * pglTextureId, CameraVideoStreamFrameHeader_t * pFrameHeader, uint32_t nFrameHeaderSize); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *ReleaseVideoStreamTextureGL)(TrackedCameraHandle_t hTrackedCamera, glUInt_t glTextureId); +}; + +struct VR_IVRApplications_FnTable +{ + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *AddApplicationManifest)(char * pchApplicationManifestFullPath, bool bTemporary); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *RemoveApplicationManifest)(char * pchApplicationManifestFullPath); + bool (OPENVR_FNTABLE_CALLTYPE *IsApplicationInstalled)(char * pchAppKey); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetApplicationCount)(); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *GetApplicationKeyByIndex)(uint32_t unApplicationIndex, char * pchAppKeyBuffer, uint32_t unAppKeyBufferLen); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *GetApplicationKeyByProcessId)(uint32_t unProcessId, char * pchAppKeyBuffer, uint32_t unAppKeyBufferLen); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *LaunchApplication)(char * pchAppKey); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *LaunchTemplateApplication)(char * pchTemplateAppKey, char * pchNewAppKey, struct AppOverrideKeys_t * pKeys, uint32_t unKeys); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *LaunchApplicationFromMimeType)(char * pchMimeType, char * pchArgs); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *LaunchDashboardOverlay)(char * pchAppKey); + bool (OPENVR_FNTABLE_CALLTYPE *CancelApplicationLaunch)(char * pchAppKey); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *IdentifyApplication)(uint32_t unProcessId, char * pchAppKey); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetApplicationProcessId)(char * pchAppKey); + char * (OPENVR_FNTABLE_CALLTYPE *GetApplicationsErrorNameFromEnum)(EVRApplicationError error); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetApplicationPropertyString)(char * pchAppKey, EVRApplicationProperty eProperty, char * pchPropertyValueBuffer, uint32_t unPropertyValueBufferLen, EVRApplicationError * peError); + bool (OPENVR_FNTABLE_CALLTYPE *GetApplicationPropertyBool)(char * pchAppKey, EVRApplicationProperty eProperty, EVRApplicationError * peError); + uint64_t (OPENVR_FNTABLE_CALLTYPE *GetApplicationPropertyUint64)(char * pchAppKey, EVRApplicationProperty eProperty, EVRApplicationError * peError); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *SetApplicationAutoLaunch)(char * pchAppKey, bool bAutoLaunch); + bool (OPENVR_FNTABLE_CALLTYPE *GetApplicationAutoLaunch)(char * pchAppKey); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *SetDefaultApplicationForMimeType)(char * pchAppKey, char * pchMimeType); + bool (OPENVR_FNTABLE_CALLTYPE *GetDefaultApplicationForMimeType)(char * pchMimeType, char * pchAppKeyBuffer, uint32_t unAppKeyBufferLen); + bool (OPENVR_FNTABLE_CALLTYPE *GetApplicationSupportedMimeTypes)(char * pchAppKey, char * pchMimeTypesBuffer, uint32_t unMimeTypesBuffer); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetApplicationsThatSupportMimeType)(char * pchMimeType, char * pchAppKeysThatSupportBuffer, uint32_t unAppKeysThatSupportBuffer); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetApplicationLaunchArguments)(uint32_t unHandle, char * pchArgs, uint32_t unArgs); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *GetStartingApplication)(char * pchAppKeyBuffer, uint32_t unAppKeyBufferLen); + EVRApplicationTransitionState (OPENVR_FNTABLE_CALLTYPE *GetTransitionState)(); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *PerformApplicationPrelaunchCheck)(char * pchAppKey); + char * (OPENVR_FNTABLE_CALLTYPE *GetApplicationsTransitionStateNameFromEnum)(EVRApplicationTransitionState state); + bool (OPENVR_FNTABLE_CALLTYPE *IsQuitUserPromptRequested)(); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *LaunchInternalProcess)(char * pchBinaryPath, char * pchArguments, char * pchWorkingDirectory); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetCurrentSceneProcessId)(); +}; + +struct VR_IVRChaperone_FnTable +{ + ChaperoneCalibrationState (OPENVR_FNTABLE_CALLTYPE *GetCalibrationState)(); + bool (OPENVR_FNTABLE_CALLTYPE *GetPlayAreaSize)(float * pSizeX, float * pSizeZ); + bool (OPENVR_FNTABLE_CALLTYPE *GetPlayAreaRect)(struct HmdQuad_t * rect); + void (OPENVR_FNTABLE_CALLTYPE *ReloadInfo)(); + void (OPENVR_FNTABLE_CALLTYPE *SetSceneColor)(struct HmdColor_t color); + void (OPENVR_FNTABLE_CALLTYPE *GetBoundsColor)(struct HmdColor_t * pOutputColorArray, int nNumOutputColors, float flCollisionBoundsFadeDistance, struct HmdColor_t * pOutputCameraColor); + bool (OPENVR_FNTABLE_CALLTYPE *AreBoundsVisible)(); + void (OPENVR_FNTABLE_CALLTYPE *ForceBoundsVisible)(bool bForce); +}; + +struct VR_IVRChaperoneSetup_FnTable +{ + bool (OPENVR_FNTABLE_CALLTYPE *CommitWorkingCopy)(EChaperoneConfigFile configFile); + void (OPENVR_FNTABLE_CALLTYPE *RevertWorkingCopy)(); + bool (OPENVR_FNTABLE_CALLTYPE *GetWorkingPlayAreaSize)(float * pSizeX, float * pSizeZ); + bool (OPENVR_FNTABLE_CALLTYPE *GetWorkingPlayAreaRect)(struct HmdQuad_t * rect); + bool (OPENVR_FNTABLE_CALLTYPE *GetWorkingCollisionBoundsInfo)(struct HmdQuad_t * pQuadsBuffer, uint32_t * punQuadsCount); + bool (OPENVR_FNTABLE_CALLTYPE *GetLiveCollisionBoundsInfo)(struct HmdQuad_t * pQuadsBuffer, uint32_t * punQuadsCount); + bool (OPENVR_FNTABLE_CALLTYPE *GetWorkingSeatedZeroPoseToRawTrackingPose)(struct HmdMatrix34_t * pmatSeatedZeroPoseToRawTrackingPose); + bool (OPENVR_FNTABLE_CALLTYPE *GetWorkingStandingZeroPoseToRawTrackingPose)(struct HmdMatrix34_t * pmatStandingZeroPoseToRawTrackingPose); + void (OPENVR_FNTABLE_CALLTYPE *SetWorkingPlayAreaSize)(float sizeX, float sizeZ); + void (OPENVR_FNTABLE_CALLTYPE *SetWorkingCollisionBoundsInfo)(struct HmdQuad_t * pQuadsBuffer, uint32_t unQuadsCount); + void (OPENVR_FNTABLE_CALLTYPE *SetWorkingSeatedZeroPoseToRawTrackingPose)(struct HmdMatrix34_t * pMatSeatedZeroPoseToRawTrackingPose); + void (OPENVR_FNTABLE_CALLTYPE *SetWorkingStandingZeroPoseToRawTrackingPose)(struct HmdMatrix34_t * pMatStandingZeroPoseToRawTrackingPose); + void (OPENVR_FNTABLE_CALLTYPE *ReloadFromDisk)(EChaperoneConfigFile configFile); + bool (OPENVR_FNTABLE_CALLTYPE *GetLiveSeatedZeroPoseToRawTrackingPose)(struct HmdMatrix34_t * pmatSeatedZeroPoseToRawTrackingPose); + void (OPENVR_FNTABLE_CALLTYPE *SetWorkingCollisionBoundsTagsInfo)(uint8_t * pTagsBuffer, uint32_t unTagCount); + bool (OPENVR_FNTABLE_CALLTYPE *GetLiveCollisionBoundsTagsInfo)(uint8_t * pTagsBuffer, uint32_t * punTagCount); + bool (OPENVR_FNTABLE_CALLTYPE *SetWorkingPhysicalBoundsInfo)(struct HmdQuad_t * pQuadsBuffer, uint32_t unQuadsCount); + bool (OPENVR_FNTABLE_CALLTYPE *GetLivePhysicalBoundsInfo)(struct HmdQuad_t * pQuadsBuffer, uint32_t * punQuadsCount); + bool (OPENVR_FNTABLE_CALLTYPE *ExportLiveToBuffer)(char * pBuffer, uint32_t * pnBufferLength); + bool (OPENVR_FNTABLE_CALLTYPE *ImportFromBufferToWorking)(char * pBuffer, uint32_t nImportFlags); +}; + +struct VR_IVRCompositor_FnTable +{ + void (OPENVR_FNTABLE_CALLTYPE *SetTrackingSpace)(ETrackingUniverseOrigin eOrigin); + ETrackingUniverseOrigin (OPENVR_FNTABLE_CALLTYPE *GetTrackingSpace)(); + EVRCompositorError (OPENVR_FNTABLE_CALLTYPE *WaitGetPoses)(struct TrackedDevicePose_t * pRenderPoseArray, uint32_t unRenderPoseArrayCount, struct TrackedDevicePose_t * pGamePoseArray, uint32_t unGamePoseArrayCount); + EVRCompositorError (OPENVR_FNTABLE_CALLTYPE *GetLastPoses)(struct TrackedDevicePose_t * pRenderPoseArray, uint32_t unRenderPoseArrayCount, struct TrackedDevicePose_t * pGamePoseArray, uint32_t unGamePoseArrayCount); + EVRCompositorError (OPENVR_FNTABLE_CALLTYPE *GetLastPoseForTrackedDeviceIndex)(TrackedDeviceIndex_t unDeviceIndex, struct TrackedDevicePose_t * pOutputPose, struct TrackedDevicePose_t * pOutputGamePose); + EVRCompositorError (OPENVR_FNTABLE_CALLTYPE *Submit)(EVREye eEye, struct Texture_t * pTexture, struct VRTextureBounds_t * pBounds, EVRSubmitFlags nSubmitFlags); + void (OPENVR_FNTABLE_CALLTYPE *ClearLastSubmittedFrame)(); + void (OPENVR_FNTABLE_CALLTYPE *PostPresentHandoff)(); + bool (OPENVR_FNTABLE_CALLTYPE *GetFrameTiming)(struct Compositor_FrameTiming * pTiming, uint32_t unFramesAgo); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetFrameTimings)(struct Compositor_FrameTiming * pTiming, uint32_t nFrames); + float (OPENVR_FNTABLE_CALLTYPE *GetFrameTimeRemaining)(); + void (OPENVR_FNTABLE_CALLTYPE *GetCumulativeStats)(struct Compositor_CumulativeStats * pStats, uint32_t nStatsSizeInBytes); + void (OPENVR_FNTABLE_CALLTYPE *FadeToColor)(float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground); + struct HmdColor_t (OPENVR_FNTABLE_CALLTYPE *GetCurrentFadeColor)(bool bBackground); + void (OPENVR_FNTABLE_CALLTYPE *FadeGrid)(float fSeconds, bool bFadeIn); + float (OPENVR_FNTABLE_CALLTYPE *GetCurrentGridAlpha)(); + EVRCompositorError (OPENVR_FNTABLE_CALLTYPE *SetSkyboxOverride)(struct Texture_t * pTextures, uint32_t unTextureCount); + void (OPENVR_FNTABLE_CALLTYPE *ClearSkyboxOverride)(); + void (OPENVR_FNTABLE_CALLTYPE *CompositorBringToFront)(); + void (OPENVR_FNTABLE_CALLTYPE *CompositorGoToBack)(); + void (OPENVR_FNTABLE_CALLTYPE *CompositorQuit)(); + bool (OPENVR_FNTABLE_CALLTYPE *IsFullscreen)(); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetCurrentSceneFocusProcess)(); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetLastFrameRenderer)(); + bool (OPENVR_FNTABLE_CALLTYPE *CanRenderScene)(); + void (OPENVR_FNTABLE_CALLTYPE *ShowMirrorWindow)(); + void (OPENVR_FNTABLE_CALLTYPE *HideMirrorWindow)(); + bool (OPENVR_FNTABLE_CALLTYPE *IsMirrorWindowVisible)(); + void (OPENVR_FNTABLE_CALLTYPE *CompositorDumpImages)(); + bool (OPENVR_FNTABLE_CALLTYPE *ShouldAppRenderWithLowResources)(); + void (OPENVR_FNTABLE_CALLTYPE *ForceInterleavedReprojectionOn)(bool bOverride); + void (OPENVR_FNTABLE_CALLTYPE *ForceReconnectProcess)(); + void (OPENVR_FNTABLE_CALLTYPE *SuspendRendering)(bool bSuspend); + EVRCompositorError (OPENVR_FNTABLE_CALLTYPE *GetMirrorTextureD3D11)(EVREye eEye, void * pD3D11DeviceOrResource, void ** ppD3D11ShaderResourceView); + void (OPENVR_FNTABLE_CALLTYPE *ReleaseMirrorTextureD3D11)(void * pD3D11ShaderResourceView); + EVRCompositorError (OPENVR_FNTABLE_CALLTYPE *GetMirrorTextureGL)(EVREye eEye, glUInt_t * pglTextureId, glSharedTextureHandle_t * pglSharedTextureHandle); + bool (OPENVR_FNTABLE_CALLTYPE *ReleaseSharedGLTexture)(glUInt_t glTextureId, glSharedTextureHandle_t glSharedTextureHandle); + void (OPENVR_FNTABLE_CALLTYPE *LockGLSharedTextureForAccess)(glSharedTextureHandle_t glSharedTextureHandle); + void (OPENVR_FNTABLE_CALLTYPE *UnlockGLSharedTextureForAccess)(glSharedTextureHandle_t glSharedTextureHandle); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetVulkanInstanceExtensionsRequired)(char * pchValue, uint32_t unBufferSize); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetVulkanDeviceExtensionsRequired)(struct VkPhysicalDevice_T * pPhysicalDevice, char * pchValue, uint32_t unBufferSize); +}; + +struct VR_IVROverlay_FnTable +{ + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *FindOverlay)(char * pchOverlayKey, VROverlayHandle_t * pOverlayHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *CreateOverlay)(char * pchOverlayKey, char * pchOverlayName, VROverlayHandle_t * pOverlayHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *DestroyOverlay)(VROverlayHandle_t ulOverlayHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetHighQualityOverlay)(VROverlayHandle_t ulOverlayHandle); + VROverlayHandle_t (OPENVR_FNTABLE_CALLTYPE *GetHighQualityOverlay)(); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetOverlayKey)(VROverlayHandle_t ulOverlayHandle, char * pchValue, uint32_t unBufferSize, EVROverlayError * pError); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetOverlayName)(VROverlayHandle_t ulOverlayHandle, char * pchValue, uint32_t unBufferSize, EVROverlayError * pError); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayName)(VROverlayHandle_t ulOverlayHandle, char * pchName); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayImageData)(VROverlayHandle_t ulOverlayHandle, void * pvBuffer, uint32_t unBufferSize, uint32_t * punWidth, uint32_t * punHeight); + char * (OPENVR_FNTABLE_CALLTYPE *GetOverlayErrorNameFromEnum)(EVROverlayError error); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayRenderingPid)(VROverlayHandle_t ulOverlayHandle, uint32_t unPID); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetOverlayRenderingPid)(VROverlayHandle_t ulOverlayHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayFlag)(VROverlayHandle_t ulOverlayHandle, VROverlayFlags eOverlayFlag, bool bEnabled); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayFlag)(VROverlayHandle_t ulOverlayHandle, VROverlayFlags eOverlayFlag, bool * pbEnabled); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayColor)(VROverlayHandle_t ulOverlayHandle, float fRed, float fGreen, float fBlue); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayColor)(VROverlayHandle_t ulOverlayHandle, float * pfRed, float * pfGreen, float * pfBlue); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayAlpha)(VROverlayHandle_t ulOverlayHandle, float fAlpha); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayAlpha)(VROverlayHandle_t ulOverlayHandle, float * pfAlpha); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTexelAspect)(VROverlayHandle_t ulOverlayHandle, float fTexelAspect); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTexelAspect)(VROverlayHandle_t ulOverlayHandle, float * pfTexelAspect); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlaySortOrder)(VROverlayHandle_t ulOverlayHandle, uint32_t unSortOrder); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlaySortOrder)(VROverlayHandle_t ulOverlayHandle, uint32_t * punSortOrder); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayWidthInMeters)(VROverlayHandle_t ulOverlayHandle, float fWidthInMeters); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayWidthInMeters)(VROverlayHandle_t ulOverlayHandle, float * pfWidthInMeters); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayAutoCurveDistanceRangeInMeters)(VROverlayHandle_t ulOverlayHandle, float fMinDistanceInMeters, float fMaxDistanceInMeters); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayAutoCurveDistanceRangeInMeters)(VROverlayHandle_t ulOverlayHandle, float * pfMinDistanceInMeters, float * pfMaxDistanceInMeters); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTextureColorSpace)(VROverlayHandle_t ulOverlayHandle, EColorSpace eTextureColorSpace); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTextureColorSpace)(VROverlayHandle_t ulOverlayHandle, EColorSpace * peTextureColorSpace); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTextureBounds)(VROverlayHandle_t ulOverlayHandle, struct VRTextureBounds_t * pOverlayTextureBounds); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTextureBounds)(VROverlayHandle_t ulOverlayHandle, struct VRTextureBounds_t * pOverlayTextureBounds); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetOverlayRenderModel)(VROverlayHandle_t ulOverlayHandle, char * pchValue, uint32_t unBufferSize, struct HmdColor_t * pColor, EVROverlayError * pError); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayRenderModel)(VROverlayHandle_t ulOverlayHandle, char * pchRenderModel, struct HmdColor_t * pColor); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTransformType)(VROverlayHandle_t ulOverlayHandle, VROverlayTransformType * peTransformType); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTransformAbsolute)(VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, struct HmdMatrix34_t * pmatTrackingOriginToOverlayTransform); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTransformAbsolute)(VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin * peTrackingOrigin, struct HmdMatrix34_t * pmatTrackingOriginToOverlayTransform); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTransformTrackedDeviceRelative)(VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unTrackedDevice, struct HmdMatrix34_t * pmatTrackedDeviceToOverlayTransform); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTransformTrackedDeviceRelative)(VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t * punTrackedDevice, struct HmdMatrix34_t * pmatTrackedDeviceToOverlayTransform); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTransformTrackedDeviceComponent)(VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unDeviceIndex, char * pchComponentName); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTransformTrackedDeviceComponent)(VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t * punDeviceIndex, char * pchComponentName, uint32_t unComponentNameSize); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTransformOverlayRelative)(VROverlayHandle_t ulOverlayHandle, VROverlayHandle_t * ulOverlayHandleParent, struct HmdMatrix34_t * pmatParentOverlayToOverlayTransform); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTransformOverlayRelative)(VROverlayHandle_t ulOverlayHandle, VROverlayHandle_t ulOverlayHandleParent, struct HmdMatrix34_t * pmatParentOverlayToOverlayTransform); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *ShowOverlay)(VROverlayHandle_t ulOverlayHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *HideOverlay)(VROverlayHandle_t ulOverlayHandle); + bool (OPENVR_FNTABLE_CALLTYPE *IsOverlayVisible)(VROverlayHandle_t ulOverlayHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetTransformForOverlayCoordinates)(VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, struct HmdVector2_t coordinatesInOverlay, struct HmdMatrix34_t * pmatTransform); + bool (OPENVR_FNTABLE_CALLTYPE *PollNextOverlayEvent)(VROverlayHandle_t ulOverlayHandle, struct VREvent_t * pEvent, uint32_t uncbVREvent); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayInputMethod)(VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod * peInputMethod); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayInputMethod)(VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod eInputMethod); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayMouseScale)(VROverlayHandle_t ulOverlayHandle, struct HmdVector2_t * pvecMouseScale); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayMouseScale)(VROverlayHandle_t ulOverlayHandle, struct HmdVector2_t * pvecMouseScale); + bool (OPENVR_FNTABLE_CALLTYPE *ComputeOverlayIntersection)(VROverlayHandle_t ulOverlayHandle, struct VROverlayIntersectionParams_t * pParams, struct VROverlayIntersectionResults_t * pResults); + bool (OPENVR_FNTABLE_CALLTYPE *HandleControllerOverlayInteractionAsMouse)(VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unControllerDeviceIndex); + bool (OPENVR_FNTABLE_CALLTYPE *IsHoverTargetOverlay)(VROverlayHandle_t ulOverlayHandle); + VROverlayHandle_t (OPENVR_FNTABLE_CALLTYPE *GetGamepadFocusOverlay)(); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetGamepadFocusOverlay)(VROverlayHandle_t ulNewFocusOverlay); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayNeighbor)(EOverlayDirection eDirection, VROverlayHandle_t ulFrom, VROverlayHandle_t ulTo); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *MoveGamepadFocusToNeighbor)(EOverlayDirection eDirection, VROverlayHandle_t ulFrom); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTexture)(VROverlayHandle_t ulOverlayHandle, struct Texture_t * pTexture); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *ClearOverlayTexture)(VROverlayHandle_t ulOverlayHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayRaw)(VROverlayHandle_t ulOverlayHandle, void * pvBuffer, uint32_t unWidth, uint32_t unHeight, uint32_t unDepth); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayFromFile)(VROverlayHandle_t ulOverlayHandle, char * pchFilePath); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTexture)(VROverlayHandle_t ulOverlayHandle, void ** pNativeTextureHandle, void * pNativeTextureRef, uint32_t * pWidth, uint32_t * pHeight, uint32_t * pNativeFormat, ETextureType * pAPIType, EColorSpace * pColorSpace, struct VRTextureBounds_t * pTextureBounds); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *ReleaseNativeOverlayHandle)(VROverlayHandle_t ulOverlayHandle, void * pNativeTextureHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTextureSize)(VROverlayHandle_t ulOverlayHandle, uint32_t * pWidth, uint32_t * pHeight); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *CreateDashboardOverlay)(char * pchOverlayKey, char * pchOverlayFriendlyName, VROverlayHandle_t * pMainHandle, VROverlayHandle_t * pThumbnailHandle); + bool (OPENVR_FNTABLE_CALLTYPE *IsDashboardVisible)(); + bool (OPENVR_FNTABLE_CALLTYPE *IsActiveDashboardOverlay)(VROverlayHandle_t ulOverlayHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetDashboardOverlaySceneProcess)(VROverlayHandle_t ulOverlayHandle, uint32_t unProcessId); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetDashboardOverlaySceneProcess)(VROverlayHandle_t ulOverlayHandle, uint32_t * punProcessId); + void (OPENVR_FNTABLE_CALLTYPE *ShowDashboard)(char * pchOverlayToShow); + TrackedDeviceIndex_t (OPENVR_FNTABLE_CALLTYPE *GetPrimaryDashboardDevice)(); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *ShowKeyboard)(EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, char * pchDescription, uint32_t unCharMax, char * pchExistingText, bool bUseMinimalMode, uint64_t uUserValue); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *ShowKeyboardForOverlay)(VROverlayHandle_t ulOverlayHandle, EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, char * pchDescription, uint32_t unCharMax, char * pchExistingText, bool bUseMinimalMode, uint64_t uUserValue); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetKeyboardText)(char * pchText, uint32_t cchText); + void (OPENVR_FNTABLE_CALLTYPE *HideKeyboard)(); + void (OPENVR_FNTABLE_CALLTYPE *SetKeyboardTransformAbsolute)(ETrackingUniverseOrigin eTrackingOrigin, struct HmdMatrix34_t * pmatTrackingOriginToKeyboardTransform); + void (OPENVR_FNTABLE_CALLTYPE *SetKeyboardPositionForOverlay)(VROverlayHandle_t ulOverlayHandle, struct HmdRect2_t avoidRect); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayIntersectionMask)(VROverlayHandle_t ulOverlayHandle, struct VROverlayIntersectionMaskPrimitive_t * pMaskPrimitives, uint32_t unNumMaskPrimitives, uint32_t unPrimitiveSize); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayFlags)(VROverlayHandle_t ulOverlayHandle, uint32_t * pFlags); + VRMessageOverlayResponse (OPENVR_FNTABLE_CALLTYPE *ShowMessageOverlay)(char * pchText, char * pchCaption, char * pchButton0Text, char * pchButton1Text, char * pchButton2Text, char * pchButton3Text); +}; + +struct VR_IVRRenderModels_FnTable +{ + EVRRenderModelError (OPENVR_FNTABLE_CALLTYPE *LoadRenderModel_Async)(char * pchRenderModelName, struct RenderModel_t ** ppRenderModel); + void (OPENVR_FNTABLE_CALLTYPE *FreeRenderModel)(struct RenderModel_t * pRenderModel); + EVRRenderModelError (OPENVR_FNTABLE_CALLTYPE *LoadTexture_Async)(TextureID_t textureId, struct RenderModel_TextureMap_t ** ppTexture); + void (OPENVR_FNTABLE_CALLTYPE *FreeTexture)(struct RenderModel_TextureMap_t * pTexture); + EVRRenderModelError (OPENVR_FNTABLE_CALLTYPE *LoadTextureD3D11_Async)(TextureID_t textureId, void * pD3D11Device, void ** ppD3D11Texture2D); + EVRRenderModelError (OPENVR_FNTABLE_CALLTYPE *LoadIntoTextureD3D11_Async)(TextureID_t textureId, void * pDstTexture); + void (OPENVR_FNTABLE_CALLTYPE *FreeTextureD3D11)(void * pD3D11Texture2D); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetRenderModelName)(uint32_t unRenderModelIndex, char * pchRenderModelName, uint32_t unRenderModelNameLen); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetRenderModelCount)(); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetComponentCount)(char * pchRenderModelName); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetComponentName)(char * pchRenderModelName, uint32_t unComponentIndex, char * pchComponentName, uint32_t unComponentNameLen); + uint64_t (OPENVR_FNTABLE_CALLTYPE *GetComponentButtonMask)(char * pchRenderModelName, char * pchComponentName); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetComponentRenderModelName)(char * pchRenderModelName, char * pchComponentName, char * pchComponentRenderModelName, uint32_t unComponentRenderModelNameLen); + bool (OPENVR_FNTABLE_CALLTYPE *GetComponentState)(char * pchRenderModelName, char * pchComponentName, VRControllerState_t * pControllerState, struct RenderModel_ControllerMode_State_t * pState, struct RenderModel_ComponentState_t * pComponentState); + bool (OPENVR_FNTABLE_CALLTYPE *RenderModelHasComponent)(char * pchRenderModelName, char * pchComponentName); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetRenderModelThumbnailURL)(char * pchRenderModelName, char * pchThumbnailURL, uint32_t unThumbnailURLLen, EVRRenderModelError * peError); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetRenderModelOriginalPath)(char * pchRenderModelName, char * pchOriginalPath, uint32_t unOriginalPathLen, EVRRenderModelError * peError); + char * (OPENVR_FNTABLE_CALLTYPE *GetRenderModelErrorNameFromEnum)(EVRRenderModelError error); +}; + +struct VR_IVRNotifications_FnTable +{ + EVRNotificationError (OPENVR_FNTABLE_CALLTYPE *CreateNotification)(VROverlayHandle_t ulOverlayHandle, uint64_t ulUserValue, EVRNotificationType type, char * pchText, EVRNotificationStyle style, struct NotificationBitmap_t * pImage, VRNotificationId * pNotificationId); + EVRNotificationError (OPENVR_FNTABLE_CALLTYPE *RemoveNotification)(VRNotificationId notificationId); +}; + +struct VR_IVRSettings_FnTable +{ + char * (OPENVR_FNTABLE_CALLTYPE *GetSettingsErrorNameFromEnum)(EVRSettingsError eError); + bool (OPENVR_FNTABLE_CALLTYPE *Sync)(bool bForce, EVRSettingsError * peError); + void (OPENVR_FNTABLE_CALLTYPE *SetBool)(char * pchSection, char * pchSettingsKey, bool bValue, EVRSettingsError * peError); + void (OPENVR_FNTABLE_CALLTYPE *SetInt32)(char * pchSection, char * pchSettingsKey, int32_t nValue, EVRSettingsError * peError); + void (OPENVR_FNTABLE_CALLTYPE *SetFloat)(char * pchSection, char * pchSettingsKey, float flValue, EVRSettingsError * peError); + void (OPENVR_FNTABLE_CALLTYPE *SetString)(char * pchSection, char * pchSettingsKey, char * pchValue, EVRSettingsError * peError); + bool (OPENVR_FNTABLE_CALLTYPE *GetBool)(char * pchSection, char * pchSettingsKey, EVRSettingsError * peError); + int32_t (OPENVR_FNTABLE_CALLTYPE *GetInt32)(char * pchSection, char * pchSettingsKey, EVRSettingsError * peError); + float (OPENVR_FNTABLE_CALLTYPE *GetFloat)(char * pchSection, char * pchSettingsKey, EVRSettingsError * peError); + void (OPENVR_FNTABLE_CALLTYPE *GetString)(char * pchSection, char * pchSettingsKey, char * pchValue, uint32_t unValueLen, EVRSettingsError * peError); + void (OPENVR_FNTABLE_CALLTYPE *RemoveSection)(char * pchSection, EVRSettingsError * peError); + void (OPENVR_FNTABLE_CALLTYPE *RemoveKeyInSection)(char * pchSection, char * pchSettingsKey, EVRSettingsError * peError); +}; + +struct VR_IVRScreenshots_FnTable +{ + EVRScreenshotError (OPENVR_FNTABLE_CALLTYPE *RequestScreenshot)(ScreenshotHandle_t * pOutScreenshotHandle, EVRScreenshotType type, char * pchPreviewFilename, char * pchVRFilename); + EVRScreenshotError (OPENVR_FNTABLE_CALLTYPE *HookScreenshot)(EVRScreenshotType * pSupportedTypes, int numTypes); + EVRScreenshotType (OPENVR_FNTABLE_CALLTYPE *GetScreenshotPropertyType)(ScreenshotHandle_t screenshotHandle, EVRScreenshotError * pError); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetScreenshotPropertyFilename)(ScreenshotHandle_t screenshotHandle, EVRScreenshotPropertyFilenames filenameType, char * pchFilename, uint32_t cchFilename, EVRScreenshotError * pError); + EVRScreenshotError (OPENVR_FNTABLE_CALLTYPE *UpdateScreenshotProgress)(ScreenshotHandle_t screenshotHandle, float flProgress); + EVRScreenshotError (OPENVR_FNTABLE_CALLTYPE *TakeStereoScreenshot)(ScreenshotHandle_t * pOutScreenshotHandle, char * pchPreviewFilename, char * pchVRFilename); + EVRScreenshotError (OPENVR_FNTABLE_CALLTYPE *SubmitScreenshot)(ScreenshotHandle_t screenshotHandle, EVRScreenshotType type, char * pchSourcePreviewFilename, char * pchSourceVRFilename); +}; + +struct VR_IVRResources_FnTable +{ + uint32_t (OPENVR_FNTABLE_CALLTYPE *LoadSharedResource)(char * pchResourceName, char * pchBuffer, uint32_t unBufferLen); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetResourceFullPath)(char * pchResourceName, char * pchResourceTypeDirectory, char * pchPathBuffer, uint32_t unBufferLen); +}; + +struct VR_IVRDriverManager_FnTable +{ + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetDriverCount)(); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetDriverName)(DriverId_t nDriver, char * pchValue, uint32_t unBufferSize); +}; + + +#if 0 +// Global entry points +S_API intptr_t VR_InitInternal( EVRInitError *peError, EVRApplicationType eType ); +S_API void VR_ShutdownInternal(); +S_API bool VR_IsHmdPresent(); +S_API intptr_t VR_GetGenericInterface( const char *pchInterfaceVersion, EVRInitError *peError ); +S_API bool VR_IsRuntimeInstalled(); +S_API const char * VR_GetVRInitErrorAsSymbol( EVRInitError error ); +S_API const char * VR_GetVRInitErrorAsEnglishDescription( EVRInitError error ); +#endif + +#endif // __OPENVR_API_FLAT_H__ + + diff --git a/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/A/Headers/openvr_driver.h b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/A/Headers/openvr_driver.h new file mode 100644 index 000000000..bfe24c003 --- /dev/null +++ b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/A/Headers/openvr_driver.h @@ -0,0 +1,2677 @@ +#pragma once + +// openvr_driver.h +//========= Copyright Valve Corporation ============// +// Dynamically generated file. Do not modify this file directly. + +#ifndef _OPENVR_DRIVER_API +#define _OPENVR_DRIVER_API + +#include + + + +// vrtypes.h +#ifndef _INCLUDE_VRTYPES_H +#define _INCLUDE_VRTYPES_H + +// Forward declarations to avoid requiring vulkan.h +struct VkDevice_T; +struct VkPhysicalDevice_T; +struct VkInstance_T; +struct VkQueue_T; + +// Forward declarations to avoid requiring d3d12.h +struct ID3D12Resource; +struct ID3D12CommandQueue; + +namespace vr +{ +#pragma pack( push, 8 ) + +typedef void* glSharedTextureHandle_t; +typedef int32_t glInt_t; +typedef uint32_t glUInt_t; + +// right-handed system +// +y is up +// +x is to the right +// -z is going away from you +// Distance unit is meters +struct HmdMatrix34_t +{ + float m[3][4]; +}; + +struct HmdMatrix44_t +{ + float m[4][4]; +}; + +struct HmdVector3_t +{ + float v[3]; +}; + +struct HmdVector4_t +{ + float v[4]; +}; + +struct HmdVector3d_t +{ + double v[3]; +}; + +struct HmdVector2_t +{ + float v[2]; +}; + +struct HmdQuaternion_t +{ + double w, x, y, z; +}; + +struct HmdColor_t +{ + float r, g, b, a; +}; + +struct HmdQuad_t +{ + HmdVector3_t vCorners[ 4 ]; +}; + +struct HmdRect2_t +{ + HmdVector2_t vTopLeft; + HmdVector2_t vBottomRight; +}; + +/** Used to return the post-distortion UVs for each color channel. +* UVs range from 0 to 1 with 0,0 in the upper left corner of the +* source render target. The 0,0 to 1,1 range covers a single eye. */ +struct DistortionCoordinates_t +{ + float rfRed[2]; + float rfGreen[2]; + float rfBlue[2]; +}; + +enum EVREye +{ + Eye_Left = 0, + Eye_Right = 1 +}; + +enum ETextureType +{ + TextureType_DirectX = 0, // Handle is an ID3D11Texture + TextureType_OpenGL = 1, // Handle is an OpenGL texture name or an OpenGL render buffer name, depending on submit flags + TextureType_Vulkan = 2, // Handle is a pointer to a VRVulkanTextureData_t structure + TextureType_IOSurface = 3, // Handle is a macOS cross-process-sharable IOSurfaceRef + TextureType_DirectX12 = 4, // Handle is a pointer to a D3D12TextureData_t structure +}; + +enum EColorSpace +{ + ColorSpace_Auto = 0, // Assumes 'gamma' for 8-bit per component formats, otherwise 'linear'. This mirrors the DXGI formats which have _SRGB variants. + ColorSpace_Gamma = 1, // Texture data can be displayed directly on the display without any conversion (a.k.a. display native format). + ColorSpace_Linear = 2, // Same as gamma but has been converted to a linear representation using DXGI's sRGB conversion algorithm. +}; + +struct Texture_t +{ + void* handle; // See ETextureType definition above + ETextureType eType; + EColorSpace eColorSpace; +}; + +// Handle to a shared texture (HANDLE on Windows obtained using OpenSharedResource). +typedef uint64_t SharedTextureHandle_t; +#define INVALID_SHARED_TEXTURE_HANDLE ((vr::SharedTextureHandle_t)0) + +enum ETrackingResult +{ + TrackingResult_Uninitialized = 1, + + TrackingResult_Calibrating_InProgress = 100, + TrackingResult_Calibrating_OutOfRange = 101, + + TrackingResult_Running_OK = 200, + TrackingResult_Running_OutOfRange = 201, +}; + +typedef uint32_t DriverId_t; +static const uint32_t k_nDriverNone = 0xFFFFFFFF; + +static const uint32_t k_unMaxDriverDebugResponseSize = 32768; + +/** Used to pass device IDs to API calls */ +typedef uint32_t TrackedDeviceIndex_t; +static const uint32_t k_unTrackedDeviceIndex_Hmd = 0; +static const uint32_t k_unMaxTrackedDeviceCount = 16; +static const uint32_t k_unTrackedDeviceIndexOther = 0xFFFFFFFE; +static const uint32_t k_unTrackedDeviceIndexInvalid = 0xFFFFFFFF; + +/** Describes what kind of object is being tracked at a given ID */ +enum ETrackedDeviceClass +{ + TrackedDeviceClass_Invalid = 0, // the ID was not valid. + TrackedDeviceClass_HMD = 1, // Head-Mounted Displays + TrackedDeviceClass_Controller = 2, // Tracked controllers + TrackedDeviceClass_GenericTracker = 3, // Generic trackers, similar to controllers + TrackedDeviceClass_TrackingReference = 4, // Camera and base stations that serve as tracking reference points + TrackedDeviceClass_DisplayRedirect = 5, // Accessories that aren't necessarily tracked themselves, but may redirect video output from other tracked devices +}; + + +/** Describes what specific role associated with a tracked device */ +enum ETrackedControllerRole +{ + TrackedControllerRole_Invalid = 0, // Invalid value for controller type + TrackedControllerRole_LeftHand = 1, // Tracked device associated with the left hand + TrackedControllerRole_RightHand = 2, // Tracked device associated with the right hand +}; + + +/** describes a single pose for a tracked object */ +struct TrackedDevicePose_t +{ + HmdMatrix34_t mDeviceToAbsoluteTracking; + HmdVector3_t vVelocity; // velocity in tracker space in m/s + HmdVector3_t vAngularVelocity; // angular velocity in radians/s (?) + ETrackingResult eTrackingResult; + bool bPoseIsValid; + + // This indicates that there is a device connected for this spot in the pose array. + // It could go from true to false if the user unplugs the device. + bool bDeviceIsConnected; +}; + +/** Identifies which style of tracking origin the application wants to use +* for the poses it is requesting */ +enum ETrackingUniverseOrigin +{ + TrackingUniverseSeated = 0, // Poses are provided relative to the seated zero pose + TrackingUniverseStanding = 1, // Poses are provided relative to the safe bounds configured by the user + TrackingUniverseRawAndUncalibrated = 2, // Poses are provided in the coordinate system defined by the driver. It has Y up and is unified for devices of the same driver. You usually don't want this one. +}; + +// Refers to a single container of properties +typedef uint64_t PropertyContainerHandle_t; +typedef uint32_t PropertyTypeTag_t; + +static const PropertyContainerHandle_t k_ulInvalidPropertyContainer = 0; +static const PropertyTypeTag_t k_unInvalidPropertyTag = 0; + +// Use these tags to set/get common types as struct properties +static const PropertyTypeTag_t k_unFloatPropertyTag = 1; +static const PropertyTypeTag_t k_unInt32PropertyTag = 2; +static const PropertyTypeTag_t k_unUint64PropertyTag = 3; +static const PropertyTypeTag_t k_unBoolPropertyTag = 4; +static const PropertyTypeTag_t k_unStringPropertyTag = 5; + +static const PropertyTypeTag_t k_unHmdMatrix34PropertyTag = 20; +static const PropertyTypeTag_t k_unHmdMatrix44PropertyTag = 21; +static const PropertyTypeTag_t k_unHmdVector3PropertyTag = 22; +static const PropertyTypeTag_t k_unHmdVector4PropertyTag = 23; + +static const PropertyTypeTag_t k_unHiddenAreaPropertyTag = 30; + +static const PropertyTypeTag_t k_unOpenVRInternalReserved_Start = 1000; +static const PropertyTypeTag_t k_unOpenVRInternalReserved_End = 10000; + + +/** Each entry in this enum represents a property that can be retrieved about a +* tracked device. Many fields are only valid for one ETrackedDeviceClass. */ +enum ETrackedDeviceProperty +{ + Prop_Invalid = 0, + + // general properties that apply to all device classes + Prop_TrackingSystemName_String = 1000, + Prop_ModelNumber_String = 1001, + Prop_SerialNumber_String = 1002, + Prop_RenderModelName_String = 1003, + Prop_WillDriftInYaw_Bool = 1004, + Prop_ManufacturerName_String = 1005, + Prop_TrackingFirmwareVersion_String = 1006, + Prop_HardwareRevision_String = 1007, + Prop_AllWirelessDongleDescriptions_String = 1008, + Prop_ConnectedWirelessDongle_String = 1009, + Prop_DeviceIsWireless_Bool = 1010, + Prop_DeviceIsCharging_Bool = 1011, + Prop_DeviceBatteryPercentage_Float = 1012, // 0 is empty, 1 is full + Prop_StatusDisplayTransform_Matrix34 = 1013, + Prop_Firmware_UpdateAvailable_Bool = 1014, + Prop_Firmware_ManualUpdate_Bool = 1015, + Prop_Firmware_ManualUpdateURL_String = 1016, + Prop_HardwareRevision_Uint64 = 1017, + Prop_FirmwareVersion_Uint64 = 1018, + Prop_FPGAVersion_Uint64 = 1019, + Prop_VRCVersion_Uint64 = 1020, + Prop_RadioVersion_Uint64 = 1021, + Prop_DongleVersion_Uint64 = 1022, + Prop_BlockServerShutdown_Bool = 1023, + Prop_CanUnifyCoordinateSystemWithHmd_Bool = 1024, + Prop_ContainsProximitySensor_Bool = 1025, + Prop_DeviceProvidesBatteryStatus_Bool = 1026, + Prop_DeviceCanPowerOff_Bool = 1027, + Prop_Firmware_ProgrammingTarget_String = 1028, + Prop_DeviceClass_Int32 = 1029, + Prop_HasCamera_Bool = 1030, + Prop_DriverVersion_String = 1031, + Prop_Firmware_ForceUpdateRequired_Bool = 1032, + Prop_ViveSystemButtonFixRequired_Bool = 1033, + Prop_ParentDriver_Uint64 = 1034, + Prop_ResourceRoot_String = 1035, + + // Properties that are unique to TrackedDeviceClass_HMD + Prop_ReportsTimeSinceVSync_Bool = 2000, + Prop_SecondsFromVsyncToPhotons_Float = 2001, + Prop_DisplayFrequency_Float = 2002, + Prop_UserIpdMeters_Float = 2003, + Prop_CurrentUniverseId_Uint64 = 2004, + Prop_PreviousUniverseId_Uint64 = 2005, + Prop_DisplayFirmwareVersion_Uint64 = 2006, + Prop_IsOnDesktop_Bool = 2007, + Prop_DisplayMCType_Int32 = 2008, + Prop_DisplayMCOffset_Float = 2009, + Prop_DisplayMCScale_Float = 2010, + Prop_EdidVendorID_Int32 = 2011, + Prop_DisplayMCImageLeft_String = 2012, + Prop_DisplayMCImageRight_String = 2013, + Prop_DisplayGCBlackClamp_Float = 2014, + Prop_EdidProductID_Int32 = 2015, + Prop_CameraToHeadTransform_Matrix34 = 2016, + Prop_DisplayGCType_Int32 = 2017, + Prop_DisplayGCOffset_Float = 2018, + Prop_DisplayGCScale_Float = 2019, + Prop_DisplayGCPrescale_Float = 2020, + Prop_DisplayGCImage_String = 2021, + Prop_LensCenterLeftU_Float = 2022, + Prop_LensCenterLeftV_Float = 2023, + Prop_LensCenterRightU_Float = 2024, + Prop_LensCenterRightV_Float = 2025, + Prop_UserHeadToEyeDepthMeters_Float = 2026, + Prop_CameraFirmwareVersion_Uint64 = 2027, + Prop_CameraFirmwareDescription_String = 2028, + Prop_DisplayFPGAVersion_Uint64 = 2029, + Prop_DisplayBootloaderVersion_Uint64 = 2030, + Prop_DisplayHardwareVersion_Uint64 = 2031, + Prop_AudioFirmwareVersion_Uint64 = 2032, + Prop_CameraCompatibilityMode_Int32 = 2033, + Prop_ScreenshotHorizontalFieldOfViewDegrees_Float = 2034, + Prop_ScreenshotVerticalFieldOfViewDegrees_Float = 2035, + Prop_DisplaySuppressed_Bool = 2036, + Prop_DisplayAllowNightMode_Bool = 2037, + Prop_DisplayMCImageWidth_Int32 = 2038, + Prop_DisplayMCImageHeight_Int32 = 2039, + Prop_DisplayMCImageNumChannels_Int32 = 2040, + Prop_DisplayMCImageData_Binary = 2041, + Prop_SecondsFromPhotonsToVblank_Float = 2042, + Prop_DriverDirectModeSendsVsyncEvents_Bool = 2043, + Prop_DisplayDebugMode_Bool = 2044, + Prop_GraphicsAdapterLuid_Uint64 = 2045, + + // Properties that are unique to TrackedDeviceClass_Controller + Prop_AttachedDeviceId_String = 3000, + Prop_SupportedButtons_Uint64 = 3001, + Prop_Axis0Type_Int32 = 3002, // Return value is of type EVRControllerAxisType + Prop_Axis1Type_Int32 = 3003, // Return value is of type EVRControllerAxisType + Prop_Axis2Type_Int32 = 3004, // Return value is of type EVRControllerAxisType + Prop_Axis3Type_Int32 = 3005, // Return value is of type EVRControllerAxisType + Prop_Axis4Type_Int32 = 3006, // Return value is of type EVRControllerAxisType + Prop_ControllerRoleHint_Int32 = 3007, // Return value is of type ETrackedControllerRole + + // Properties that are unique to TrackedDeviceClass_TrackingReference + Prop_FieldOfViewLeftDegrees_Float = 4000, + Prop_FieldOfViewRightDegrees_Float = 4001, + Prop_FieldOfViewTopDegrees_Float = 4002, + Prop_FieldOfViewBottomDegrees_Float = 4003, + Prop_TrackingRangeMinimumMeters_Float = 4004, + Prop_TrackingRangeMaximumMeters_Float = 4005, + Prop_ModeLabel_String = 4006, + + // Properties that are used for user interface like icons names + Prop_IconPathName_String = 5000, // DEPRECATED. Value not referenced. Now expected to be part of icon path properties. + Prop_NamedIconPathDeviceOff_String = 5001, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceSearching_String = 5002, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceSearchingAlert_String = 5003, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceReady_String = 5004, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceReadyAlert_String = 5005, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceNotReady_String = 5006, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceStandby_String = 5007, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceAlertLow_String = 5008, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + + // Properties that are used by helpers, but are opaque to applications + Prop_DisplayHiddenArea_Binary_Start = 5100, + Prop_DisplayHiddenArea_Binary_End = 5150, + + // Properties that are unique to drivers + Prop_UserConfigPath_String = 6000, + Prop_InstallPath_String = 6001, + Prop_HasDisplayComponent_Bool = 6002, + Prop_HasControllerComponent_Bool = 6003, + Prop_HasCameraComponent_Bool = 6004, + Prop_HasDriverDirectModeComponent_Bool = 6005, + Prop_HasVirtualDisplayComponent_Bool = 6006, + + // Vendors are free to expose private debug data in this reserved region + Prop_VendorSpecific_Reserved_Start = 10000, + Prop_VendorSpecific_Reserved_End = 10999, +}; + +/** No string property will ever be longer than this length */ +static const uint32_t k_unMaxPropertyStringSize = 32 * 1024; + +/** Used to return errors that occur when reading properties. */ +enum ETrackedPropertyError +{ + TrackedProp_Success = 0, + TrackedProp_WrongDataType = 1, + TrackedProp_WrongDeviceClass = 2, + TrackedProp_BufferTooSmall = 3, + TrackedProp_UnknownProperty = 4, // Driver has not set the property (and may not ever). + TrackedProp_InvalidDevice = 5, + TrackedProp_CouldNotContactServer = 6, + TrackedProp_ValueNotProvidedByDevice = 7, + TrackedProp_StringExceedsMaximumLength = 8, + TrackedProp_NotYetAvailable = 9, // The property value isn't known yet, but is expected soon. Call again later. + TrackedProp_PermissionDenied = 10, + TrackedProp_InvalidOperation = 11, +}; + +/** Allows the application to control what part of the provided texture will be used in the +* frame buffer. */ +struct VRTextureBounds_t +{ + float uMin, vMin; + float uMax, vMax; +}; + + +/** Allows the application to control how scene textures are used by the compositor when calling Submit. */ +enum EVRSubmitFlags +{ + // Simple render path. App submits rendered left and right eye images with no lens distortion correction applied. + Submit_Default = 0x00, + + // App submits final left and right eye images with lens distortion already applied (lens distortion makes the images appear + // barrel distorted with chromatic aberration correction applied). The app would have used the data returned by + // vr::IVRSystem::ComputeDistortion() to apply the correct distortion to the rendered images before calling Submit(). + Submit_LensDistortionAlreadyApplied = 0x01, + + // If the texture pointer passed in is actually a renderbuffer (e.g. for MSAA in OpenGL) then set this flag. + Submit_GlRenderBuffer = 0x02, + + // Do not use + Submit_Reserved = 0x04, +}; + +/** Data required for passing Vulkan textures to IVRCompositor::Submit. +* Be sure to call OpenVR_Shutdown before destroying these resources. */ +struct VRVulkanTextureData_t +{ + uint64_t m_nImage; // VkImage + VkDevice_T *m_pDevice; + VkPhysicalDevice_T *m_pPhysicalDevice; + VkInstance_T *m_pInstance; + VkQueue_T *m_pQueue; + uint32_t m_nQueueFamilyIndex; + uint32_t m_nWidth, m_nHeight, m_nFormat, m_nSampleCount; +}; + +/** Data required for passing D3D12 textures to IVRCompositor::Submit. +* Be sure to call OpenVR_Shutdown before destroying these resources. */ +struct D3D12TextureData_t +{ + ID3D12Resource *m_pResource; + ID3D12CommandQueue *m_pCommandQueue; + uint32_t m_nNodeMask; +}; + +/** Status of the overall system or tracked objects */ +enum EVRState +{ + VRState_Undefined = -1, + VRState_Off = 0, + VRState_Searching = 1, + VRState_Searching_Alert = 2, + VRState_Ready = 3, + VRState_Ready_Alert = 4, + VRState_NotReady = 5, + VRState_Standby = 6, + VRState_Ready_Alert_Low = 7, +}; + +/** The types of events that could be posted (and what the parameters mean for each event type) */ +enum EVREventType +{ + VREvent_None = 0, + + VREvent_TrackedDeviceActivated = 100, + VREvent_TrackedDeviceDeactivated = 101, + VREvent_TrackedDeviceUpdated = 102, + VREvent_TrackedDeviceUserInteractionStarted = 103, + VREvent_TrackedDeviceUserInteractionEnded = 104, + VREvent_IpdChanged = 105, + VREvent_EnterStandbyMode = 106, + VREvent_LeaveStandbyMode = 107, + VREvent_TrackedDeviceRoleChanged = 108, + VREvent_WatchdogWakeUpRequested = 109, + VREvent_LensDistortionChanged = 110, + VREvent_PropertyChanged = 111, + + VREvent_ButtonPress = 200, // data is controller + VREvent_ButtonUnpress = 201, // data is controller + VREvent_ButtonTouch = 202, // data is controller + VREvent_ButtonUntouch = 203, // data is controller + + VREvent_MouseMove = 300, // data is mouse + VREvent_MouseButtonDown = 301, // data is mouse + VREvent_MouseButtonUp = 302, // data is mouse + VREvent_FocusEnter = 303, // data is overlay + VREvent_FocusLeave = 304, // data is overlay + VREvent_Scroll = 305, // data is mouse + VREvent_TouchPadMove = 306, // data is mouse + VREvent_OverlayFocusChanged = 307, // data is overlay, global event + + VREvent_InputFocusCaptured = 400, // data is process DEPRECATED + VREvent_InputFocusReleased = 401, // data is process DEPRECATED + VREvent_SceneFocusLost = 402, // data is process + VREvent_SceneFocusGained = 403, // data is process + VREvent_SceneApplicationChanged = 404, // data is process - The App actually drawing the scene changed (usually to or from the compositor) + VREvent_SceneFocusChanged = 405, // data is process - New app got access to draw the scene + VREvent_InputFocusChanged = 406, // data is process + VREvent_SceneApplicationSecondaryRenderingStarted = 407, // data is process + + VREvent_HideRenderModels = 410, // Sent to the scene application to request hiding render models temporarily + VREvent_ShowRenderModels = 411, // Sent to the scene application to request restoring render model visibility + + VREvent_OverlayShown = 500, + VREvent_OverlayHidden = 501, + VREvent_DashboardActivated = 502, + VREvent_DashboardDeactivated = 503, + VREvent_DashboardThumbSelected = 504, // Sent to the overlay manager - data is overlay + VREvent_DashboardRequested = 505, // Sent to the overlay manager - data is overlay + VREvent_ResetDashboard = 506, // Send to the overlay manager + VREvent_RenderToast = 507, // Send to the dashboard to render a toast - data is the notification ID + VREvent_ImageLoaded = 508, // Sent to overlays when a SetOverlayRaw or SetOverlayFromFile call finishes loading + VREvent_ShowKeyboard = 509, // Sent to keyboard renderer in the dashboard to invoke it + VREvent_HideKeyboard = 510, // Sent to keyboard renderer in the dashboard to hide it + VREvent_OverlayGamepadFocusGained = 511, // Sent to an overlay when IVROverlay::SetFocusOverlay is called on it + VREvent_OverlayGamepadFocusLost = 512, // Send to an overlay when it previously had focus and IVROverlay::SetFocusOverlay is called on something else + VREvent_OverlaySharedTextureChanged = 513, + VREvent_DashboardGuideButtonDown = 514, + VREvent_DashboardGuideButtonUp = 515, + VREvent_ScreenshotTriggered = 516, // Screenshot button combo was pressed, Dashboard should request a screenshot + VREvent_ImageFailed = 517, // Sent to overlays when a SetOverlayRaw or SetOverlayfromFail fails to load + VREvent_DashboardOverlayCreated = 518, + + // Screenshot API + VREvent_RequestScreenshot = 520, // Sent by vrclient application to compositor to take a screenshot + VREvent_ScreenshotTaken = 521, // Sent by compositor to the application that the screenshot has been taken + VREvent_ScreenshotFailed = 522, // Sent by compositor to the application that the screenshot failed to be taken + VREvent_SubmitScreenshotToDashboard = 523, // Sent by compositor to the dashboard that a completed screenshot was submitted + VREvent_ScreenshotProgressToDashboard = 524, // Sent by compositor to the dashboard that a completed screenshot was submitted + + VREvent_PrimaryDashboardDeviceChanged = 525, + + VREvent_Notification_Shown = 600, + VREvent_Notification_Hidden = 601, + VREvent_Notification_BeginInteraction = 602, + VREvent_Notification_Destroyed = 603, + + VREvent_Quit = 700, // data is process + VREvent_ProcessQuit = 701, // data is process + VREvent_QuitAborted_UserPrompt = 702, // data is process + VREvent_QuitAcknowledged = 703, // data is process + VREvent_DriverRequestedQuit = 704, // The driver has requested that SteamVR shut down + + VREvent_ChaperoneDataHasChanged = 800, + VREvent_ChaperoneUniverseHasChanged = 801, + VREvent_ChaperoneTempDataHasChanged = 802, + VREvent_ChaperoneSettingsHaveChanged = 803, + VREvent_SeatedZeroPoseReset = 804, + + VREvent_AudioSettingsHaveChanged = 820, + + VREvent_BackgroundSettingHasChanged = 850, + VREvent_CameraSettingsHaveChanged = 851, + VREvent_ReprojectionSettingHasChanged = 852, + VREvent_ModelSkinSettingsHaveChanged = 853, + VREvent_EnvironmentSettingsHaveChanged = 854, + VREvent_PowerSettingsHaveChanged = 855, + VREvent_EnableHomeAppSettingsHaveChanged = 856, + + VREvent_StatusUpdate = 900, + + VREvent_MCImageUpdated = 1000, + + VREvent_FirmwareUpdateStarted = 1100, + VREvent_FirmwareUpdateFinished = 1101, + + VREvent_KeyboardClosed = 1200, + VREvent_KeyboardCharInput = 1201, + VREvent_KeyboardDone = 1202, // Sent when DONE button clicked on keyboard + + VREvent_ApplicationTransitionStarted = 1300, + VREvent_ApplicationTransitionAborted = 1301, + VREvent_ApplicationTransitionNewAppStarted = 1302, + VREvent_ApplicationListUpdated = 1303, + VREvent_ApplicationMimeTypeLoad = 1304, + VREvent_ApplicationTransitionNewAppLaunchComplete = 1305, + VREvent_ProcessConnected = 1306, + VREvent_ProcessDisconnected = 1307, + + VREvent_Compositor_MirrorWindowShown = 1400, + VREvent_Compositor_MirrorWindowHidden = 1401, + VREvent_Compositor_ChaperoneBoundsShown = 1410, + VREvent_Compositor_ChaperoneBoundsHidden = 1411, + + VREvent_TrackedCamera_StartVideoStream = 1500, + VREvent_TrackedCamera_StopVideoStream = 1501, + VREvent_TrackedCamera_PauseVideoStream = 1502, + VREvent_TrackedCamera_ResumeVideoStream = 1503, + VREvent_TrackedCamera_EditingSurface = 1550, + + VREvent_PerformanceTest_EnableCapture = 1600, + VREvent_PerformanceTest_DisableCapture = 1601, + VREvent_PerformanceTest_FidelityLevel = 1602, + + VREvent_MessageOverlay_Closed = 1650, + + // Vendors are free to expose private events in this reserved region + VREvent_VendorSpecific_Reserved_Start = 10000, + VREvent_VendorSpecific_Reserved_End = 19999, +}; + + +/** Level of Hmd activity */ +// UserInteraction_Timeout means the device is in the process of timing out. +// InUse = ( k_EDeviceActivityLevel_UserInteraction || k_EDeviceActivityLevel_UserInteraction_Timeout ) +// VREvent_TrackedDeviceUserInteractionStarted fires when the devices transitions from Standby -> UserInteraction or Idle -> UserInteraction. +// VREvent_TrackedDeviceUserInteractionEnded fires when the devices transitions from UserInteraction_Timeout -> Idle +enum EDeviceActivityLevel +{ + k_EDeviceActivityLevel_Unknown = -1, + k_EDeviceActivityLevel_Idle = 0, // No activity for the last 10 seconds + k_EDeviceActivityLevel_UserInteraction = 1, // Activity (movement or prox sensor) is happening now + k_EDeviceActivityLevel_UserInteraction_Timeout = 2, // No activity for the last 0.5 seconds + k_EDeviceActivityLevel_Standby = 3, // Idle for at least 5 seconds (configurable in Settings -> Power Management) +}; + + +/** VR controller button and axis IDs */ +enum EVRButtonId +{ + k_EButton_System = 0, + k_EButton_ApplicationMenu = 1, + k_EButton_Grip = 2, + k_EButton_DPad_Left = 3, + k_EButton_DPad_Up = 4, + k_EButton_DPad_Right = 5, + k_EButton_DPad_Down = 6, + k_EButton_A = 7, + + k_EButton_ProximitySensor = 31, + + k_EButton_Axis0 = 32, + k_EButton_Axis1 = 33, + k_EButton_Axis2 = 34, + k_EButton_Axis3 = 35, + k_EButton_Axis4 = 36, + + // aliases for well known controllers + k_EButton_SteamVR_Touchpad = k_EButton_Axis0, + k_EButton_SteamVR_Trigger = k_EButton_Axis1, + + k_EButton_Dashboard_Back = k_EButton_Grip, + + k_EButton_Max = 64 +}; + +inline uint64_t ButtonMaskFromId( EVRButtonId id ) { return 1ull << id; } + +/** used for controller button events */ +struct VREvent_Controller_t +{ + uint32_t button; // EVRButtonId enum +}; + + +/** used for simulated mouse events in overlay space */ +enum EVRMouseButton +{ + VRMouseButton_Left = 0x0001, + VRMouseButton_Right = 0x0002, + VRMouseButton_Middle = 0x0004, +}; + + +/** used for simulated mouse events in overlay space */ +struct VREvent_Mouse_t +{ + float x, y; // co-ords are in GL space, bottom left of the texture is 0,0 + uint32_t button; // EVRMouseButton enum +}; + +/** used for simulated mouse wheel scroll in overlay space */ +struct VREvent_Scroll_t +{ + float xdelta, ydelta; // movement in fraction of the pad traversed since last delta, 1.0 for a full swipe + uint32_t repeatCount; +}; + +/** when in mouse input mode you can receive data from the touchpad, these events are only sent if the users finger + is on the touchpad (or just released from it) +**/ +struct VREvent_TouchPadMove_t +{ + // true if the users finger is detected on the touch pad + bool bFingerDown; + + // How long the finger has been down in seconds + float flSecondsFingerDown; + + // These values indicate the starting finger position (so you can do some basic swipe stuff) + float fValueXFirst; + float fValueYFirst; + + // This is the raw sampled coordinate without deadzoning + float fValueXRaw; + float fValueYRaw; +}; + +/** notification related events. Details will still change at this point */ +struct VREvent_Notification_t +{ + uint64_t ulUserValue; + uint32_t notificationId; +}; + +/** Used for events about processes */ +struct VREvent_Process_t +{ + uint32_t pid; + uint32_t oldPid; + bool bForced; +}; + + +/** Used for a few events about overlays */ +struct VREvent_Overlay_t +{ + uint64_t overlayHandle; +}; + + +/** Used for a few events about overlays */ +struct VREvent_Status_t +{ + uint32_t statusState; // EVRState enum +}; + +/** Used for keyboard events **/ +struct VREvent_Keyboard_t +{ + char cNewInput[8]; // Up to 11 bytes of new input + uint64_t uUserValue; // Possible flags about the new input +}; + +struct VREvent_Ipd_t +{ + float ipdMeters; +}; + +struct VREvent_Chaperone_t +{ + uint64_t m_nPreviousUniverse; + uint64_t m_nCurrentUniverse; +}; + +/** Not actually used for any events */ +struct VREvent_Reserved_t +{ + uint64_t reserved0; + uint64_t reserved1; +}; + +struct VREvent_PerformanceTest_t +{ + uint32_t m_nFidelityLevel; +}; + +struct VREvent_SeatedZeroPoseReset_t +{ + bool bResetBySystemMenu; +}; + +struct VREvent_Screenshot_t +{ + uint32_t handle; + uint32_t type; +}; + +struct VREvent_ScreenshotProgress_t +{ + float progress; +}; + +struct VREvent_ApplicationLaunch_t +{ + uint32_t pid; + uint32_t unArgsHandle; +}; + +struct VREvent_EditingCameraSurface_t +{ + uint64_t overlayHandle; + uint32_t nVisualMode; +}; + +struct VREvent_MessageOverlay_t +{ + uint32_t unVRMessageOverlayResponse; // vr::VRMessageOverlayResponse enum +}; + +struct VREvent_Property_t +{ + PropertyContainerHandle_t container; + ETrackedDeviceProperty prop; +}; + +/** NOTE!!! If you change this you MUST manually update openvr_interop.cs.py */ +typedef union +{ + VREvent_Reserved_t reserved; + VREvent_Controller_t controller; + VREvent_Mouse_t mouse; + VREvent_Scroll_t scroll; + VREvent_Process_t process; + VREvent_Notification_t notification; + VREvent_Overlay_t overlay; + VREvent_Status_t status; + VREvent_Keyboard_t keyboard; + VREvent_Ipd_t ipd; + VREvent_Chaperone_t chaperone; + VREvent_PerformanceTest_t performanceTest; + VREvent_TouchPadMove_t touchPadMove; + VREvent_SeatedZeroPoseReset_t seatedZeroPoseReset; + VREvent_Screenshot_t screenshot; + VREvent_ScreenshotProgress_t screenshotProgress; + VREvent_ApplicationLaunch_t applicationLaunch; + VREvent_EditingCameraSurface_t cameraSurface; + VREvent_MessageOverlay_t messageOverlay; + VREvent_Property_t property; +} VREvent_Data_t; + + +#if defined(__linux__) || defined(__APPLE__) +// This structure was originally defined mis-packed on Linux, preserved for +// compatibility. +#pragma pack( push, 4 ) +#endif + +/** An event posted by the server to all running applications */ +struct VREvent_t +{ + uint32_t eventType; // EVREventType enum + TrackedDeviceIndex_t trackedDeviceIndex; + float eventAgeSeconds; + // event data must be the end of the struct as its size is variable + VREvent_Data_t data; +}; + +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( pop ) +#endif + +/** The mesh to draw into the stencil (or depth) buffer to perform +* early stencil (or depth) kills of pixels that will never appear on the HMD. +* This mesh draws on all the pixels that will be hidden after distortion. +* +* If the HMD does not provide a visible area mesh pVertexData will be +* NULL and unTriangleCount will be 0. */ +struct HiddenAreaMesh_t +{ + const HmdVector2_t *pVertexData; + uint32_t unTriangleCount; +}; + + +enum EHiddenAreaMeshType +{ + k_eHiddenAreaMesh_Standard = 0, + k_eHiddenAreaMesh_Inverse = 1, + k_eHiddenAreaMesh_LineLoop = 2, + + k_eHiddenAreaMesh_Max = 3, +}; + + +/** Identifies what kind of axis is on the controller at index n. Read this type +* with pVRSystem->Get( nControllerDeviceIndex, Prop_Axis0Type_Int32 + n ); +*/ +enum EVRControllerAxisType +{ + k_eControllerAxis_None = 0, + k_eControllerAxis_TrackPad = 1, + k_eControllerAxis_Joystick = 2, + k_eControllerAxis_Trigger = 3, // Analog trigger data is in the X axis +}; + + +/** contains information about one axis on the controller */ +struct VRControllerAxis_t +{ + float x; // Ranges from -1.0 to 1.0 for joysticks and track pads. Ranges from 0.0 to 1.0 for triggers were 0 is fully released. + float y; // Ranges from -1.0 to 1.0 for joysticks and track pads. Is always 0.0 for triggers. +}; + + +/** the number of axes in the controller state */ +static const uint32_t k_unControllerStateAxisCount = 5; + + +#if defined(__linux__) || defined(__APPLE__) +// This structure was originally defined mis-packed on Linux, preserved for +// compatibility. +#pragma pack( push, 4 ) +#endif + +/** Holds all the state of a controller at one moment in time. */ +struct VRControllerState001_t +{ + // If packet num matches that on your prior call, then the controller state hasn't been changed since + // your last call and there is no need to process it + uint32_t unPacketNum; + + // bit flags for each of the buttons. Use ButtonMaskFromId to turn an ID into a mask + uint64_t ulButtonPressed; + uint64_t ulButtonTouched; + + // Axis data for the controller's analog inputs + VRControllerAxis_t rAxis[ k_unControllerStateAxisCount ]; +}; +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( pop ) +#endif + + +typedef VRControllerState001_t VRControllerState_t; + + +/** determines how to provide output to the application of various event processing functions. */ +enum EVRControllerEventOutputType +{ + ControllerEventOutput_OSEvents = 0, + ControllerEventOutput_VREvents = 1, +}; + + + +/** Collision Bounds Style */ +enum ECollisionBoundsStyle +{ + COLLISION_BOUNDS_STYLE_BEGINNER = 0, + COLLISION_BOUNDS_STYLE_INTERMEDIATE, + COLLISION_BOUNDS_STYLE_SQUARES, + COLLISION_BOUNDS_STYLE_ADVANCED, + COLLISION_BOUNDS_STYLE_NONE, + + COLLISION_BOUNDS_STYLE_COUNT +}; + +/** Allows the application to customize how the overlay appears in the compositor */ +struct Compositor_OverlaySettings +{ + uint32_t size; // sizeof(Compositor_OverlaySettings) + bool curved, antialias; + float scale, distance, alpha; + float uOffset, vOffset, uScale, vScale; + float gridDivs, gridWidth, gridScale; + HmdMatrix44_t transform; +}; + +/** used to refer to a single VR overlay */ +typedef uint64_t VROverlayHandle_t; + +static const VROverlayHandle_t k_ulOverlayHandleInvalid = 0; + +/** Errors that can occur around VR overlays */ +enum EVROverlayError +{ + VROverlayError_None = 0, + + VROverlayError_UnknownOverlay = 10, + VROverlayError_InvalidHandle = 11, + VROverlayError_PermissionDenied = 12, + VROverlayError_OverlayLimitExceeded = 13, // No more overlays could be created because the maximum number already exist + VROverlayError_WrongVisibilityType = 14, + VROverlayError_KeyTooLong = 15, + VROverlayError_NameTooLong = 16, + VROverlayError_KeyInUse = 17, + VROverlayError_WrongTransformType = 18, + VROverlayError_InvalidTrackedDevice = 19, + VROverlayError_InvalidParameter = 20, + VROverlayError_ThumbnailCantBeDestroyed = 21, + VROverlayError_ArrayTooSmall = 22, + VROverlayError_RequestFailed = 23, + VROverlayError_InvalidTexture = 24, + VROverlayError_UnableToLoadFile = 25, + VROverlayError_KeyboardAlreadyInUse = 26, + VROverlayError_NoNeighbor = 27, + VROverlayError_TooManyMaskPrimitives = 29, + VROverlayError_BadMaskPrimitive = 30, +}; + +/** enum values to pass in to VR_Init to identify whether the application will +* draw a 3D scene. */ +enum EVRApplicationType +{ + VRApplication_Other = 0, // Some other kind of application that isn't covered by the other entries + VRApplication_Scene = 1, // Application will submit 3D frames + VRApplication_Overlay = 2, // Application only interacts with overlays + VRApplication_Background = 3, // Application should not start SteamVR if it's not already running, and should not + // keep it running if everything else quits. + VRApplication_Utility = 4, // Init should not try to load any drivers. The application needs access to utility + // interfaces (like IVRSettings and IVRApplications) but not hardware. + VRApplication_VRMonitor = 5, // Reserved for vrmonitor + VRApplication_SteamWatchdog = 6,// Reserved for Steam + VRApplication_Bootstrapper = 7, // Start up SteamVR + + VRApplication_Max +}; + + +/** error codes for firmware */ +enum EVRFirmwareError +{ + VRFirmwareError_None = 0, + VRFirmwareError_Success = 1, + VRFirmwareError_Fail = 2, +}; + + +/** error codes for notifications */ +enum EVRNotificationError +{ + VRNotificationError_OK = 0, + VRNotificationError_InvalidNotificationId = 100, + VRNotificationError_NotificationQueueFull = 101, + VRNotificationError_InvalidOverlayHandle = 102, + VRNotificationError_SystemWithUserValueAlreadyExists = 103, +}; + + +/** error codes returned by Vr_Init */ + +// Please add adequate error description to https://developer.valvesoftware.com/w/index.php?title=Category:SteamVRHelp +enum EVRInitError +{ + VRInitError_None = 0, + VRInitError_Unknown = 1, + + VRInitError_Init_InstallationNotFound = 100, + VRInitError_Init_InstallationCorrupt = 101, + VRInitError_Init_VRClientDLLNotFound = 102, + VRInitError_Init_FileNotFound = 103, + VRInitError_Init_FactoryNotFound = 104, + VRInitError_Init_InterfaceNotFound = 105, + VRInitError_Init_InvalidInterface = 106, + VRInitError_Init_UserConfigDirectoryInvalid = 107, + VRInitError_Init_HmdNotFound = 108, + VRInitError_Init_NotInitialized = 109, + VRInitError_Init_PathRegistryNotFound = 110, + VRInitError_Init_NoConfigPath = 111, + VRInitError_Init_NoLogPath = 112, + VRInitError_Init_PathRegistryNotWritable = 113, + VRInitError_Init_AppInfoInitFailed = 114, + VRInitError_Init_Retry = 115, // Used internally to cause retries to vrserver + VRInitError_Init_InitCanceledByUser = 116, // The calling application should silently exit. The user canceled app startup + VRInitError_Init_AnotherAppLaunching = 117, + VRInitError_Init_SettingsInitFailed = 118, + VRInitError_Init_ShuttingDown = 119, + VRInitError_Init_TooManyObjects = 120, + VRInitError_Init_NoServerForBackgroundApp = 121, + VRInitError_Init_NotSupportedWithCompositor = 122, + VRInitError_Init_NotAvailableToUtilityApps = 123, + VRInitError_Init_Internal = 124, + VRInitError_Init_HmdDriverIdIsNone = 125, + VRInitError_Init_HmdNotFoundPresenceFailed = 126, + VRInitError_Init_VRMonitorNotFound = 127, + VRInitError_Init_VRMonitorStartupFailed = 128, + VRInitError_Init_LowPowerWatchdogNotSupported = 129, + VRInitError_Init_InvalidApplicationType = 130, + VRInitError_Init_NotAvailableToWatchdogApps = 131, + VRInitError_Init_WatchdogDisabledInSettings = 132, + VRInitError_Init_VRDashboardNotFound = 133, + VRInitError_Init_VRDashboardStartupFailed = 134, + VRInitError_Init_VRHomeNotFound = 135, + VRInitError_Init_VRHomeStartupFailed = 136, + + VRInitError_Driver_Failed = 200, + VRInitError_Driver_Unknown = 201, + VRInitError_Driver_HmdUnknown = 202, + VRInitError_Driver_NotLoaded = 203, + VRInitError_Driver_RuntimeOutOfDate = 204, + VRInitError_Driver_HmdInUse = 205, + VRInitError_Driver_NotCalibrated = 206, + VRInitError_Driver_CalibrationInvalid = 207, + VRInitError_Driver_HmdDisplayNotFound = 208, + VRInitError_Driver_TrackedDeviceInterfaceUnknown = 209, + // VRInitError_Driver_HmdDisplayNotFoundAfterFix = 210, // not needed: here for historic reasons + VRInitError_Driver_HmdDriverIdOutOfBounds = 211, + VRInitError_Driver_HmdDisplayMirrored = 212, + + VRInitError_IPC_ServerInitFailed = 300, + VRInitError_IPC_ConnectFailed = 301, + VRInitError_IPC_SharedStateInitFailed = 302, + VRInitError_IPC_CompositorInitFailed = 303, + VRInitError_IPC_MutexInitFailed = 304, + VRInitError_IPC_Failed = 305, + VRInitError_IPC_CompositorConnectFailed = 306, + VRInitError_IPC_CompositorInvalidConnectResponse = 307, + VRInitError_IPC_ConnectFailedAfterMultipleAttempts = 308, + + VRInitError_Compositor_Failed = 400, + VRInitError_Compositor_D3D11HardwareRequired = 401, + VRInitError_Compositor_FirmwareRequiresUpdate = 402, + VRInitError_Compositor_OverlayInitFailed = 403, + VRInitError_Compositor_ScreenshotsInitFailed = 404, + VRInitError_Compositor_UnableToCreateDevice = 405, + + VRInitError_VendorSpecific_UnableToConnectToOculusRuntime = 1000, + + VRInitError_VendorSpecific_HmdFound_CantOpenDevice = 1101, + VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102, + VRInitError_VendorSpecific_HmdFound_NoStoredConfig = 1103, + VRInitError_VendorSpecific_HmdFound_ConfigTooBig = 1104, + VRInitError_VendorSpecific_HmdFound_ConfigTooSmall = 1105, + VRInitError_VendorSpecific_HmdFound_UnableToInitZLib = 1106, + VRInitError_VendorSpecific_HmdFound_CantReadFirmwareVersion = 1107, + VRInitError_VendorSpecific_HmdFound_UnableToSendUserDataStart = 1108, + VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataStart = 1109, + VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataNext = 1110, + VRInitError_VendorSpecific_HmdFound_UserDataAddressRange = 1111, + VRInitError_VendorSpecific_HmdFound_UserDataError = 1112, + VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck = 1113, + + VRInitError_Steam_SteamInstallationNotFound = 2000, +}; + +enum EVRScreenshotType +{ + VRScreenshotType_None = 0, + VRScreenshotType_Mono = 1, // left eye only + VRScreenshotType_Stereo = 2, + VRScreenshotType_Cubemap = 3, + VRScreenshotType_MonoPanorama = 4, + VRScreenshotType_StereoPanorama = 5 +}; + +enum EVRScreenshotPropertyFilenames +{ + VRScreenshotPropertyFilenames_Preview = 0, + VRScreenshotPropertyFilenames_VR = 1, +}; + +enum EVRTrackedCameraError +{ + VRTrackedCameraError_None = 0, + VRTrackedCameraError_OperationFailed = 100, + VRTrackedCameraError_InvalidHandle = 101, + VRTrackedCameraError_InvalidFrameHeaderVersion = 102, + VRTrackedCameraError_OutOfHandles = 103, + VRTrackedCameraError_IPCFailure = 104, + VRTrackedCameraError_NotSupportedForThisDevice = 105, + VRTrackedCameraError_SharedMemoryFailure = 106, + VRTrackedCameraError_FrameBufferingFailure = 107, + VRTrackedCameraError_StreamSetupFailure = 108, + VRTrackedCameraError_InvalidGLTextureId = 109, + VRTrackedCameraError_InvalidSharedTextureHandle = 110, + VRTrackedCameraError_FailedToGetGLTextureId = 111, + VRTrackedCameraError_SharedTextureFailure = 112, + VRTrackedCameraError_NoFrameAvailable = 113, + VRTrackedCameraError_InvalidArgument = 114, + VRTrackedCameraError_InvalidFrameBufferSize = 115, +}; + +enum EVRTrackedCameraFrameType +{ + VRTrackedCameraFrameType_Distorted = 0, // This is the camera video frame size in pixels, still distorted. + VRTrackedCameraFrameType_Undistorted, // In pixels, an undistorted inscribed rectangle region without invalid regions. This size is subject to changes shortly. + VRTrackedCameraFrameType_MaximumUndistorted, // In pixels, maximum undistorted with invalid regions. Non zero alpha component identifies valid regions. + MAX_CAMERA_FRAME_TYPES +}; + +typedef uint64_t TrackedCameraHandle_t; +#define INVALID_TRACKED_CAMERA_HANDLE ((vr::TrackedCameraHandle_t)0) + +struct CameraVideoStreamFrameHeader_t +{ + EVRTrackedCameraFrameType eFrameType; + + uint32_t nWidth; + uint32_t nHeight; + uint32_t nBytesPerPixel; + + uint32_t nFrameSequence; + + TrackedDevicePose_t standingTrackedDevicePose; +}; + +// Screenshot types +typedef uint32_t ScreenshotHandle_t; + +static const uint32_t k_unScreenshotHandleInvalid = 0; + +#pragma pack( pop ) + +// figure out how to import from the VR API dll +#if defined(_WIN32) + +#ifdef VR_API_EXPORT +#define VR_INTERFACE extern "C" __declspec( dllexport ) +#else +#define VR_INTERFACE extern "C" __declspec( dllimport ) +#endif + +#elif defined(__GNUC__) || defined(COMPILER_GCC) || defined(__APPLE__) + +#ifdef VR_API_EXPORT +#define VR_INTERFACE extern "C" __attribute__((visibility("default"))) +#else +#define VR_INTERFACE extern "C" +#endif + +#else +#error "Unsupported Platform." +#endif + + +#if defined( _WIN32 ) +#define VR_CALLTYPE __cdecl +#else +#define VR_CALLTYPE +#endif + +} // namespace vr + +#endif // _INCLUDE_VRTYPES_H + + +// vrannotation.h +#ifdef API_GEN +# define VR_CLANG_ATTR(ATTR) __attribute__((annotate( ATTR ))) +#else +# define VR_CLANG_ATTR(ATTR) +#endif + +#define VR_METHOD_DESC(DESC) VR_CLANG_ATTR( "desc:" #DESC ";" ) +#define VR_IGNOREATTR() VR_CLANG_ATTR( "ignore" ) +#define VR_OUT_STRUCT() VR_CLANG_ATTR( "out_struct: ;" ) +#define VR_OUT_STRING() VR_CLANG_ATTR( "out_string: ;" ) +#define VR_OUT_ARRAY_CALL(COUNTER,FUNCTION,PARAMS) VR_CLANG_ATTR( "out_array_call:" #COUNTER "," #FUNCTION "," #PARAMS ";" ) +#define VR_OUT_ARRAY_COUNT(COUNTER) VR_CLANG_ATTR( "out_array_count:" #COUNTER ";" ) +#define VR_ARRAY_COUNT(COUNTER) VR_CLANG_ATTR( "array_count:" #COUNTER ";" ) +#define VR_ARRAY_COUNT_D(COUNTER, DESC) VR_CLANG_ATTR( "array_count:" #COUNTER ";desc:" #DESC ) +#define VR_BUFFER_COUNT(COUNTER) VR_CLANG_ATTR( "buffer_count:" #COUNTER ";" ) +#define VR_OUT_BUFFER_COUNT(COUNTER) VR_CLANG_ATTR( "out_buffer_count:" #COUNTER ";" ) +#define VR_OUT_STRING_COUNT(COUNTER) VR_CLANG_ATTR( "out_string_count:" #COUNTER ";" ) + +// vrtrackedcameratypes.h +#ifndef _VRTRACKEDCAMERATYPES_H +#define _VRTRACKEDCAMERATYPES_H + +namespace vr +{ + +#pragma pack( push, 8 ) + +enum ECameraVideoStreamFormat +{ + CVS_FORMAT_UNKNOWN = 0, + CVS_FORMAT_RAW10 = 1, // 10 bits per pixel + CVS_FORMAT_NV12 = 2, // 12 bits per pixel + CVS_FORMAT_RGB24 = 3, // 24 bits per pixel + CVS_MAX_FORMATS +}; + +enum ECameraCompatibilityMode +{ + CAMERA_COMPAT_MODE_BULK_DEFAULT = 0, + CAMERA_COMPAT_MODE_BULK_64K_DMA, + CAMERA_COMPAT_MODE_BULK_16K_DMA, + CAMERA_COMPAT_MODE_BULK_8K_DMA, + CAMERA_COMPAT_MODE_ISO_52FPS, + CAMERA_COMPAT_MODE_ISO_50FPS, + CAMERA_COMPAT_MODE_ISO_48FPS, + CAMERA_COMPAT_MODE_ISO_46FPS, + CAMERA_COMPAT_MODE_ISO_44FPS, + CAMERA_COMPAT_MODE_ISO_42FPS, + CAMERA_COMPAT_MODE_ISO_40FPS, + CAMERA_COMPAT_MODE_ISO_35FPS, + CAMERA_COMPAT_MODE_ISO_30FPS, + MAX_CAMERA_COMPAT_MODES +}; + +#ifdef _MSC_VER +#define VR_CAMERA_DECL_ALIGN( x ) __declspec( align( x ) ) +#else +#define VR_CAMERA_DECL_ALIGN( x ) // +#endif + +#define MAX_CAMERA_FRAME_SHARED_HANDLES 4 + +VR_CAMERA_DECL_ALIGN( 8 ) struct CameraVideoStreamFrame_t +{ + ECameraVideoStreamFormat m_nStreamFormat; + + uint32_t m_nWidth; + uint32_t m_nHeight; + + uint32_t m_nImageDataSize; // Based on stream format, width, height + + uint32_t m_nFrameSequence; // Starts from 0 when stream starts. + + uint32_t m_nBufferIndex; // Identifies which buffer the image data is hosted + uint32_t m_nBufferCount; // Total number of configured buffers + + uint32_t m_nExposureTime; + + uint32_t m_nISPFrameTimeStamp; // Driver provided time stamp per driver centric time base + uint32_t m_nISPReferenceTimeStamp; + uint32_t m_nSyncCounter; + + uint32_t m_nCamSyncEvents; + uint32_t m_nISPSyncEvents; + + double m_flReferenceCamSyncTime; + + double m_flFrameElapsedTime; // Starts from 0 when stream starts. In seconds. + double m_flFrameDeliveryRate; + + double m_flFrameCaptureTime_DriverAbsolute; // In USB time, via AuxEvent + double m_flFrameCaptureTime_ServerRelative; // In System time within the server + uint64_t m_nFrameCaptureTicks_ServerAbsolute; // In system ticks within the server + double m_flFrameCaptureTime_ClientRelative; // At the client, relative to when the frame was exposed/captured. + + double m_flSyncMarkerError; + + TrackedDevicePose_t m_StandingTrackedDevicePose; // Supplied by HMD layer when used as a tracked camera + + uint64_t m_pImageData; +}; + +#pragma pack( pop ) + +} + +#endif // _VRTRACKEDCAMERATYPES_H +// ivrsettings.h +namespace vr +{ + enum EVRSettingsError + { + VRSettingsError_None = 0, + VRSettingsError_IPCFailed = 1, + VRSettingsError_WriteFailed = 2, + VRSettingsError_ReadFailed = 3, + VRSettingsError_JsonParseFailed = 4, + VRSettingsError_UnsetSettingHasNoDefault = 5, // This will be returned if the setting does not appear in the appropriate default file and has not been set + }; + + // The maximum length of a settings key + static const uint32_t k_unMaxSettingsKeyLength = 128; + + class IVRSettings + { + public: + virtual const char *GetSettingsErrorNameFromEnum( EVRSettingsError eError ) = 0; + + // Returns true if file sync occurred (force or settings dirty) + virtual bool Sync( bool bForce = false, EVRSettingsError *peError = nullptr ) = 0; + + virtual void SetBool( const char *pchSection, const char *pchSettingsKey, bool bValue, EVRSettingsError *peError = nullptr ) = 0; + virtual void SetInt32( const char *pchSection, const char *pchSettingsKey, int32_t nValue, EVRSettingsError *peError = nullptr ) = 0; + virtual void SetFloat( const char *pchSection, const char *pchSettingsKey, float flValue, EVRSettingsError *peError = nullptr ) = 0; + virtual void SetString( const char *pchSection, const char *pchSettingsKey, const char *pchValue, EVRSettingsError *peError = nullptr ) = 0; + + // Users of the system need to provide a proper default in default.vrsettings in the resources/settings/ directory + // of either the runtime or the driver_xxx directory. Otherwise the default will be false, 0, 0.0 or "" + virtual bool GetBool( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0; + virtual int32_t GetInt32( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0; + virtual float GetFloat( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0; + virtual void GetString( const char *pchSection, const char *pchSettingsKey, VR_OUT_STRING() char *pchValue, uint32_t unValueLen, EVRSettingsError *peError = nullptr ) = 0; + + virtual void RemoveSection( const char *pchSection, EVRSettingsError *peError = nullptr ) = 0; + virtual void RemoveKeyInSection( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0; + }; + + //----------------------------------------------------------------------------- + static const char * const IVRSettings_Version = "IVRSettings_002"; + + //----------------------------------------------------------------------------- + // steamvr keys + static const char * const k_pch_SteamVR_Section = "steamvr"; + static const char * const k_pch_SteamVR_RequireHmd_String = "requireHmd"; + static const char * const k_pch_SteamVR_ForcedDriverKey_String = "forcedDriver"; + static const char * const k_pch_SteamVR_ForcedHmdKey_String = "forcedHmd"; + static const char * const k_pch_SteamVR_DisplayDebug_Bool = "displayDebug"; + static const char * const k_pch_SteamVR_DebugProcessPipe_String = "debugProcessPipe"; + static const char * const k_pch_SteamVR_DisplayDebugX_Int32 = "displayDebugX"; + static const char * const k_pch_SteamVR_DisplayDebugY_Int32 = "displayDebugY"; + static const char * const k_pch_SteamVR_SendSystemButtonToAllApps_Bool= "sendSystemButtonToAllApps"; + static const char * const k_pch_SteamVR_LogLevel_Int32 = "loglevel"; + static const char * const k_pch_SteamVR_IPD_Float = "ipd"; + static const char * const k_pch_SteamVR_Background_String = "background"; + static const char * const k_pch_SteamVR_BackgroundUseDomeProjection_Bool = "backgroundUseDomeProjection"; + static const char * const k_pch_SteamVR_BackgroundCameraHeight_Float = "backgroundCameraHeight"; + static const char * const k_pch_SteamVR_BackgroundDomeRadius_Float = "backgroundDomeRadius"; + static const char * const k_pch_SteamVR_GridColor_String = "gridColor"; + static const char * const k_pch_SteamVR_PlayAreaColor_String = "playAreaColor"; + static const char * const k_pch_SteamVR_ShowStage_Bool = "showStage"; + static const char * const k_pch_SteamVR_ActivateMultipleDrivers_Bool = "activateMultipleDrivers"; + static const char * const k_pch_SteamVR_DirectMode_Bool = "directMode"; + static const char * const k_pch_SteamVR_DirectModeEdidVid_Int32 = "directModeEdidVid"; + static const char * const k_pch_SteamVR_DirectModeEdidPid_Int32 = "directModeEdidPid"; + static const char * const k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers"; + static const char * const k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees"; + static const char * const k_pch_SteamVR_BaseStationPowerManagement_Bool = "basestationPowerManagement"; + static const char * const k_pch_SteamVR_NeverKillProcesses_Bool = "neverKillProcesses"; + static const char * const k_pch_SteamVR_SupersampleScale_Float = "supersampleScale"; + static const char * const k_pch_SteamVR_AllowAsyncReprojection_Bool = "allowAsyncReprojection"; + static const char * const k_pch_SteamVR_AllowReprojection_Bool = "allowInterleavedReprojection"; + static const char * const k_pch_SteamVR_ForceReprojection_Bool = "forceReprojection"; + static const char * const k_pch_SteamVR_ForceFadeOnBadTracking_Bool = "forceFadeOnBadTracking"; + static const char * const k_pch_SteamVR_DefaultMirrorView_Int32 = "defaultMirrorView"; + static const char * const k_pch_SteamVR_ShowMirrorView_Bool = "showMirrorView"; + static const char * const k_pch_SteamVR_MirrorViewGeometry_String = "mirrorViewGeometry"; + static const char * const k_pch_SteamVR_StartMonitorFromAppLaunch = "startMonitorFromAppLaunch"; + static const char * const k_pch_SteamVR_StartCompositorFromAppLaunch_Bool = "startCompositorFromAppLaunch"; + static const char * const k_pch_SteamVR_StartDashboardFromAppLaunch_Bool = "startDashboardFromAppLaunch"; + static const char * const k_pch_SteamVR_StartOverlayAppsFromDashboard_Bool = "startOverlayAppsFromDashboard"; + static const char * const k_pch_SteamVR_EnableHomeApp = "enableHomeApp"; + static const char * const k_pch_SteamVR_CycleBackgroundImageTimeSec_Int32 = "CycleBackgroundImageTimeSec"; + static const char * const k_pch_SteamVR_RetailDemo_Bool = "retailDemo"; + static const char * const k_pch_SteamVR_IpdOffset_Float = "ipdOffset"; + static const char * const k_pch_SteamVR_AllowSupersampleFiltering_Bool = "allowSupersampleFiltering"; + + //----------------------------------------------------------------------------- + // lighthouse keys + static const char * const k_pch_Lighthouse_Section = "driver_lighthouse"; + static const char * const k_pch_Lighthouse_DisableIMU_Bool = "disableimu"; + static const char * const k_pch_Lighthouse_UseDisambiguation_String = "usedisambiguation"; + static const char * const k_pch_Lighthouse_DisambiguationDebug_Int32 = "disambiguationdebug"; + static const char * const k_pch_Lighthouse_PrimaryBasestation_Int32 = "primarybasestation"; + static const char * const k_pch_Lighthouse_DBHistory_Bool = "dbhistory"; + + //----------------------------------------------------------------------------- + // null keys + static const char * const k_pch_Null_Section = "driver_null"; + static const char * const k_pch_Null_SerialNumber_String = "serialNumber"; + static const char * const k_pch_Null_ModelNumber_String = "modelNumber"; + static const char * const k_pch_Null_WindowX_Int32 = "windowX"; + static const char * const k_pch_Null_WindowY_Int32 = "windowY"; + static const char * const k_pch_Null_WindowWidth_Int32 = "windowWidth"; + static const char * const k_pch_Null_WindowHeight_Int32 = "windowHeight"; + static const char * const k_pch_Null_RenderWidth_Int32 = "renderWidth"; + static const char * const k_pch_Null_RenderHeight_Int32 = "renderHeight"; + static const char * const k_pch_Null_SecondsFromVsyncToPhotons_Float = "secondsFromVsyncToPhotons"; + static const char * const k_pch_Null_DisplayFrequency_Float = "displayFrequency"; + + //----------------------------------------------------------------------------- + // user interface keys + static const char * const k_pch_UserInterface_Section = "userinterface"; + static const char * const k_pch_UserInterface_StatusAlwaysOnTop_Bool = "StatusAlwaysOnTop"; + static const char * const k_pch_UserInterface_MinimizeToTray_Bool = "MinimizeToTray"; + static const char * const k_pch_UserInterface_Screenshots_Bool = "screenshots"; + static const char * const k_pch_UserInterface_ScreenshotType_Int = "screenshotType"; + + //----------------------------------------------------------------------------- + // notification keys + static const char * const k_pch_Notifications_Section = "notifications"; + static const char * const k_pch_Notifications_DoNotDisturb_Bool = "DoNotDisturb"; + + //----------------------------------------------------------------------------- + // keyboard keys + static const char * const k_pch_Keyboard_Section = "keyboard"; + static const char * const k_pch_Keyboard_TutorialCompletions = "TutorialCompletions"; + static const char * const k_pch_Keyboard_ScaleX = "ScaleX"; + static const char * const k_pch_Keyboard_ScaleY = "ScaleY"; + static const char * const k_pch_Keyboard_OffsetLeftX = "OffsetLeftX"; + static const char * const k_pch_Keyboard_OffsetRightX = "OffsetRightX"; + static const char * const k_pch_Keyboard_OffsetY = "OffsetY"; + static const char * const k_pch_Keyboard_Smoothing = "Smoothing"; + + //----------------------------------------------------------------------------- + // perf keys + static const char * const k_pch_Perf_Section = "perfcheck"; + static const char * const k_pch_Perf_HeuristicActive_Bool = "heuristicActive"; + static const char * const k_pch_Perf_NotifyInHMD_Bool = "warnInHMD"; + static const char * const k_pch_Perf_NotifyOnlyOnce_Bool = "warnOnlyOnce"; + static const char * const k_pch_Perf_AllowTimingStore_Bool = "allowTimingStore"; + static const char * const k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit"; + static const char * const k_pch_Perf_TestData_Float = "perfTestData"; + static const char * const k_pch_Perf_LinuxGPUProfiling_Bool = "linuxGPUProfiling"; + + //----------------------------------------------------------------------------- + // collision bounds keys + static const char * const k_pch_CollisionBounds_Section = "collisionBounds"; + static const char * const k_pch_CollisionBounds_Style_Int32 = "CollisionBoundsStyle"; + static const char * const k_pch_CollisionBounds_GroundPerimeterOn_Bool = "CollisionBoundsGroundPerimeterOn"; + static const char * const k_pch_CollisionBounds_CenterMarkerOn_Bool = "CollisionBoundsCenterMarkerOn"; + static const char * const k_pch_CollisionBounds_PlaySpaceOn_Bool = "CollisionBoundsPlaySpaceOn"; + static const char * const k_pch_CollisionBounds_FadeDistance_Float = "CollisionBoundsFadeDistance"; + static const char * const k_pch_CollisionBounds_ColorGammaR_Int32 = "CollisionBoundsColorGammaR"; + static const char * const k_pch_CollisionBounds_ColorGammaG_Int32 = "CollisionBoundsColorGammaG"; + static const char * const k_pch_CollisionBounds_ColorGammaB_Int32 = "CollisionBoundsColorGammaB"; + static const char * const k_pch_CollisionBounds_ColorGammaA_Int32 = "CollisionBoundsColorGammaA"; + + //----------------------------------------------------------------------------- + // camera keys + static const char * const k_pch_Camera_Section = "camera"; + static const char * const k_pch_Camera_EnableCamera_Bool = "enableCamera"; + static const char * const k_pch_Camera_EnableCameraInDashboard_Bool = "enableCameraInDashboard"; + static const char * const k_pch_Camera_EnableCameraForCollisionBounds_Bool = "enableCameraForCollisionBounds"; + static const char * const k_pch_Camera_EnableCameraForRoomView_Bool = "enableCameraForRoomView"; + static const char * const k_pch_Camera_BoundsColorGammaR_Int32 = "cameraBoundsColorGammaR"; + static const char * const k_pch_Camera_BoundsColorGammaG_Int32 = "cameraBoundsColorGammaG"; + static const char * const k_pch_Camera_BoundsColorGammaB_Int32 = "cameraBoundsColorGammaB"; + static const char * const k_pch_Camera_BoundsColorGammaA_Int32 = "cameraBoundsColorGammaA"; + static const char * const k_pch_Camera_BoundsStrength_Int32 = "cameraBoundsStrength"; + + //----------------------------------------------------------------------------- + // audio keys + static const char * const k_pch_audio_Section = "audio"; + static const char * const k_pch_audio_OnPlaybackDevice_String = "onPlaybackDevice"; + static const char * const k_pch_audio_OnRecordDevice_String = "onRecordDevice"; + static const char * const k_pch_audio_OnPlaybackMirrorDevice_String = "onPlaybackMirrorDevice"; + static const char * const k_pch_audio_OffPlaybackDevice_String = "offPlaybackDevice"; + static const char * const k_pch_audio_OffRecordDevice_String = "offRecordDevice"; + static const char * const k_pch_audio_VIVEHDMIGain = "viveHDMIGain"; + + //----------------------------------------------------------------------------- + // power management keys + static const char * const k_pch_Power_Section = "power"; + static const char * const k_pch_Power_PowerOffOnExit_Bool = "powerOffOnExit"; + static const char * const k_pch_Power_TurnOffScreensTimeout_Float = "turnOffScreensTimeout"; + static const char * const k_pch_Power_TurnOffControllersTimeout_Float = "turnOffControllersTimeout"; + static const char * const k_pch_Power_ReturnToWatchdogTimeout_Float = "returnToWatchdogTimeout"; + static const char * const k_pch_Power_AutoLaunchSteamVROnButtonPress = "autoLaunchSteamVROnButtonPress"; + + //----------------------------------------------------------------------------- + // dashboard keys + static const char * const k_pch_Dashboard_Section = "dashboard"; + static const char * const k_pch_Dashboard_EnableDashboard_Bool = "enableDashboard"; + static const char * const k_pch_Dashboard_ArcadeMode_Bool = "arcadeMode"; + + //----------------------------------------------------------------------------- + // model skin keys + static const char * const k_pch_modelskin_Section = "modelskins"; + + //----------------------------------------------------------------------------- + // driver keys - These could be checked in any driver_ section + static const char * const k_pch_Driver_Enable_Bool = "enable"; + +} // namespace vr + +// iservertrackeddevicedriver.h +namespace vr +{ + + +struct DriverPoseQuaternion_t +{ + double w, x, y, z; +}; + +struct DriverPose_t +{ + /* Time offset of this pose, in seconds from the actual time of the pose, + * relative to the time of the PoseUpdated() call made by the driver. + */ + double poseTimeOffset; + + /* Generally, the pose maintained by a driver + * is in an inertial coordinate system different + * from the world system of x+ right, y+ up, z+ back. + * Also, the driver is not usually tracking the "head" position, + * but instead an internal IMU or another reference point in the HMD. + * The following two transforms transform positions and orientations + * to app world space from driver world space, + * and to HMD head space from driver local body space. + * + * We maintain the driver pose state in its internal coordinate system, + * so we can do the pose prediction math without having to + * use angular acceleration. A driver's angular acceleration is generally not measured, + * and is instead calculated from successive samples of angular velocity. + * This leads to a noisy angular acceleration values, which are also + * lagged due to the filtering required to reduce noise to an acceptable level. + */ + vr::HmdQuaternion_t qWorldFromDriverRotation; + double vecWorldFromDriverTranslation[ 3 ]; + + vr::HmdQuaternion_t qDriverFromHeadRotation; + double vecDriverFromHeadTranslation[ 3 ]; + + /* State of driver pose, in meters and radians. */ + /* Position of the driver tracking reference in driver world space + * +[0] (x) is right + * +[1] (y) is up + * -[2] (z) is forward + */ + double vecPosition[ 3 ]; + + /* Velocity of the pose in meters/second */ + double vecVelocity[ 3 ]; + + /* Acceleration of the pose in meters/second */ + double vecAcceleration[ 3 ]; + + /* Orientation of the tracker, represented as a quaternion */ + vr::HmdQuaternion_t qRotation; + + /* Angular velocity of the pose in axis-angle + * representation. The direction is the angle of + * rotation and the magnitude is the angle around + * that axis in radians/second. */ + double vecAngularVelocity[ 3 ]; + + /* Angular acceleration of the pose in axis-angle + * representation. The direction is the angle of + * rotation and the magnitude is the angle around + * that axis in radians/second^2. */ + double vecAngularAcceleration[ 3 ]; + + ETrackingResult result; + + bool poseIsValid; + bool willDriftInYaw; + bool shouldApplyHeadModel; + bool deviceIsConnected; +}; + + +// ---------------------------------------------------------------------------------------------- +// Purpose: Represents a single tracked device in a driver +// ---------------------------------------------------------------------------------------------- +class ITrackedDeviceServerDriver +{ +public: + + // ------------------------------------ + // Management Methods + // ------------------------------------ + /** This is called before an HMD is returned to the application. It will always be + * called before any display or tracking methods. Memory and processor use by the + * ITrackedDeviceServerDriver object should be kept to a minimum until it is activated. + * The pose listener is guaranteed to be valid until Deactivate is called, but + * should not be used after that point. */ + virtual EVRInitError Activate( uint32_t unObjectId ) = 0; + + /** This is called when The VR system is switching from this Hmd being the active display + * to another Hmd being the active display. The driver should clean whatever memory + * and thread use it can when it is deactivated */ + virtual void Deactivate() = 0; + + /** Handles a request from the system to put this device into standby mode. What that means is defined per-device. */ + virtual void EnterStandby() = 0; + + /** Requests a component interface of the driver for device-specific functionality. The driver should return NULL + * if the requested interface or version is not supported. */ + virtual void *GetComponent( const char *pchComponentNameAndVersion ) = 0; + + /** A VR Client has made this debug request of the driver. The set of valid requests is entirely + * up to the driver and the client to figure out, as is the format of the response. Responses that + * exceed the length of the supplied buffer should be truncated and null terminated */ + virtual void DebugRequest( const char *pchRequest, char *pchResponseBuffer, uint32_t unResponseBufferSize ) = 0; + + // ------------------------------------ + // Tracking Methods + // ------------------------------------ + virtual DriverPose_t GetPose() = 0; +}; + + + +static const char *ITrackedDeviceServerDriver_Version = "ITrackedDeviceServerDriver_005"; + +} +// ivrdisplaycomponent.h +namespace vr +{ + + + // ---------------------------------------------------------------------------------------------- + // Purpose: The display component on a single tracked device + // ---------------------------------------------------------------------------------------------- + class IVRDisplayComponent + { + public: + + // ------------------------------------ + // Display Methods + // ------------------------------------ + + /** Size and position that the window needs to be on the VR display. */ + virtual void GetWindowBounds( int32_t *pnX, int32_t *pnY, uint32_t *pnWidth, uint32_t *pnHeight ) = 0; + + /** Returns true if the display is extending the desktop. */ + virtual bool IsDisplayOnDesktop( ) = 0; + + /** Returns true if the display is real and not a fictional display. */ + virtual bool IsDisplayRealDisplay( ) = 0; + + /** Suggested size for the intermediate render target that the distortion pulls from. */ + virtual void GetRecommendedRenderTargetSize( uint32_t *pnWidth, uint32_t *pnHeight ) = 0; + + /** Gets the viewport in the frame buffer to draw the output of the distortion into */ + virtual void GetEyeOutputViewport( EVREye eEye, uint32_t *pnX, uint32_t *pnY, uint32_t *pnWidth, uint32_t *pnHeight ) = 0; + + /** The components necessary to build your own projection matrix in case your + * application is doing something fancy like infinite Z */ + virtual void GetProjectionRaw( EVREye eEye, float *pfLeft, float *pfRight, float *pfTop, float *pfBottom ) = 0; + + /** Returns the result of the distortion function for the specified eye and input UVs. UVs go from 0,0 in + * the upper left of that eye's viewport and 1,1 in the lower right of that eye's viewport. */ + virtual DistortionCoordinates_t ComputeDistortion( EVREye eEye, float fU, float fV ) = 0; + + }; + + static const char *IVRDisplayComponent_Version = "IVRDisplayComponent_002"; + +} + +// ivrdriverdirectmodecomponent.h +namespace vr +{ + + + // ---------------------------------------------------------------------------------------------- + // Purpose: This component is used for drivers that implement direct mode entirely on their own + // without allowing the VR Compositor to own the window/device. Chances are you don't + // need to implement this component in your driver. + // ---------------------------------------------------------------------------------------------- + class IVRDriverDirectModeComponent + { + public: + + // ----------------------------------- + // Direct mode methods + // ----------------------------------- + + /** Specific to Oculus compositor support, textures supplied must be created using this method. */ + virtual void CreateSwapTextureSet( uint32_t unPid, uint32_t unFormat, uint32_t unWidth, uint32_t unHeight, vr::SharedTextureHandle_t( *pSharedTextureHandles )[ 3 ] ) {} + + /** Used to textures created using CreateSwapTextureSet. Only one of the set's handles needs to be used to destroy the entire set. */ + virtual void DestroySwapTextureSet( vr::SharedTextureHandle_t sharedTextureHandle ) {} + + /** Used to purge all texture sets for a given process. */ + virtual void DestroyAllSwapTextureSets( uint32_t unPid ) {} + + /** After Present returns, calls this to get the next index to use for rendering. */ + virtual void GetNextSwapTextureSetIndex( vr::SharedTextureHandle_t sharedTextureHandles[ 2 ], uint32_t( *pIndices )[ 2 ] ) {} + + /** Call once per layer to draw for this frame. One shared texture handle per eye. Textures must be created + * using CreateSwapTextureSet and should be alternated per frame. Call Present once all layers have been submitted. */ + virtual void SubmitLayer( vr::SharedTextureHandle_t sharedTextureHandles[ 2 ], const vr::VRTextureBounds_t( &bounds )[ 2 ], const vr::HmdMatrix34_t *pPose ) {} + + /** Submits queued layers for display. */ + virtual void Present( vr::SharedTextureHandle_t syncTexture ) {} + + }; + + static const char *IVRDriverDirectModeComponent_Version = "IVRDriverDirectModeComponent_002"; + +} + +// ivrcontrollercomponent.h +namespace vr +{ + + + // ---------------------------------------------------------------------------------------------- + // Purpose: Controller access on a single tracked device. + // ---------------------------------------------------------------------------------------------- + class IVRControllerComponent + { + public: + + // ------------------------------------ + // Controller Methods + // ------------------------------------ + + /** Gets the current state of a controller. */ + virtual VRControllerState_t GetControllerState( ) = 0; + + /** Returns a uint64 property. If the property is not available this function will return 0. */ + virtual bool TriggerHapticPulse( uint32_t unAxisId, uint16_t usPulseDurationMicroseconds ) = 0; + + }; + + + + static const char *IVRControllerComponent_Version = "IVRControllerComponent_001"; + +} +// ivrcameracomponent.h +namespace vr +{ + //----------------------------------------------------------------------------- + //----------------------------------------------------------------------------- + class ICameraVideoSinkCallback + { + public: + virtual void OnCameraVideoSinkCallback() = 0; + }; + + // ---------------------------------------------------------------------------------------------- + // Purpose: The camera on a single tracked device + // ---------------------------------------------------------------------------------------------- + class IVRCameraComponent + { + public: + // ------------------------------------ + // Camera Methods + // ------------------------------------ + virtual bool GetCameraFrameDimensions( vr::ECameraVideoStreamFormat nVideoStreamFormat, uint32_t *pWidth, uint32_t *pHeight ) = 0; + virtual bool GetCameraFrameBufferingRequirements( int *pDefaultFrameQueueSize, uint32_t *pFrameBufferDataSize ) = 0; + virtual bool SetCameraFrameBuffering( int nFrameBufferCount, void **ppFrameBuffers, uint32_t nFrameBufferDataSize ) = 0; + virtual bool SetCameraVideoStreamFormat( vr::ECameraVideoStreamFormat nVideoStreamFormat ) = 0; + virtual vr::ECameraVideoStreamFormat GetCameraVideoStreamFormat() = 0; + virtual bool StartVideoStream() = 0; + virtual void StopVideoStream() = 0; + virtual bool IsVideoStreamActive( bool *pbPaused, float *pflElapsedTime ) = 0; + virtual const vr::CameraVideoStreamFrame_t *GetVideoStreamFrame() = 0; + virtual void ReleaseVideoStreamFrame( const vr::CameraVideoStreamFrame_t *pFrameImage ) = 0; + virtual bool SetAutoExposure( bool bEnable ) = 0; + virtual bool PauseVideoStream() = 0; + virtual bool ResumeVideoStream() = 0; + virtual bool GetCameraDistortion( float flInputU, float flInputV, float *pflOutputU, float *pflOutputV ) = 0; + virtual bool GetCameraProjection( vr::EVRTrackedCameraFrameType eFrameType, float flZNear, float flZFar, vr::HmdMatrix44_t *pProjection ) = 0; + virtual bool SetFrameRate( int nISPFrameRate, int nSensorFrameRate ) = 0; + virtual bool SetCameraVideoSinkCallback( vr::ICameraVideoSinkCallback *pCameraVideoSinkCallback ) = 0; + virtual bool GetCameraCompatibilityMode( vr::ECameraCompatibilityMode *pCameraCompatibilityMode ) = 0; + virtual bool SetCameraCompatibilityMode( vr::ECameraCompatibilityMode nCameraCompatibilityMode ) = 0; + virtual bool GetCameraFrameBounds( vr::EVRTrackedCameraFrameType eFrameType, uint32_t *pLeft, uint32_t *pTop, uint32_t *pWidth, uint32_t *pHeight ) = 0; + virtual bool GetCameraIntrinsics( vr::EVRTrackedCameraFrameType eFrameType, HmdVector2_t *pFocalLength, HmdVector2_t *pCenter ) = 0; + }; + + static const char *IVRCameraComponent_Version = "IVRCameraComponent_002"; +} +// itrackeddevicedriverprovider.h +namespace vr +{ + +class ITrackedDeviceServerDriver; +struct TrackedDeviceDriverInfo_t; +struct DriverPose_t; +typedef PropertyContainerHandle_t DriverHandle_t; + +/** This interface is provided by vrserver to allow the driver to notify +* the system when something changes about a device. These changes must +* not change the serial number or class of the device because those values +* are permanently associated with the device's index. */ +class IVRDriverContext +{ +public: + /** Returns the requested interface. If the interface was not available it will return NULL and fill + * out the error. */ + virtual void *GetGenericInterface( const char *pchInterfaceVersion, EVRInitError *peError = nullptr ) = 0; + + /** Returns the property container handle for this driver */ + virtual DriverHandle_t GetDriverHandle() = 0; +}; + + +/** This interface must be implemented in each driver. It will be loaded in vrserver.exe */ +class IServerTrackedDeviceProvider +{ +public: + /** initializes the driver. This will be called before any other methods are called. + * If Init returns anything other than VRInitError_None the driver DLL will be unloaded. + * + * pDriverHost will never be NULL, and will always be a pointer to a IServerDriverHost interface + * + * pchUserDriverConfigDir - The absolute path of the directory where the driver should store user + * config files. + * pchDriverInstallDir - The absolute path of the root directory for the driver. + */ + virtual EVRInitError Init( IVRDriverContext *pDriverContext ) = 0; + + /** cleans up the driver right before it is unloaded */ + virtual void Cleanup() = 0; + + /** Returns the version of the ITrackedDeviceServerDriver interface used by this driver */ + virtual const char * const *GetInterfaceVersions() = 0; + + /** Allows the driver do to some work in the main loop of the server. */ + virtual void RunFrame() = 0; + + + // ------------ Power State Functions ----------------------- // + + /** Returns true if the driver wants to block Standby mode. */ + virtual bool ShouldBlockStandbyMode() = 0; + + /** Called when the system is entering Standby mode. The driver should switch itself into whatever sort of low-power + * state it has. */ + virtual void EnterStandby() = 0; + + /** Called when the system is leaving Standby mode. The driver should switch itself back to + full operation. */ + virtual void LeaveStandby() = 0; + +}; + + +static const char *IServerTrackedDeviceProvider_Version = "IServerTrackedDeviceProvider_004"; + + + + +/** This interface must be implemented in each driver. It will be loaded in vrclient.dll */ +class IVRWatchdogProvider +{ +public: + /** initializes the driver in watchdog mode. */ + virtual EVRInitError Init( IVRDriverContext *pDriverContext ) = 0; + + /** cleans up the driver right before it is unloaded */ + virtual void Cleanup() = 0; +}; + +static const char *IVRWatchdogProvider_Version = "IVRWatchdogProvider_001"; + +} +// ivrproperties.h +#include + +namespace vr +{ + + enum EPropertyWriteType + { + PropertyWrite_Set = 0, + PropertyWrite_Erase = 1, + PropertyWrite_SetError = 2 + }; + + struct PropertyWrite_t + { + ETrackedDeviceProperty prop; + EPropertyWriteType writeType; + ETrackedPropertyError eSetError; + void *pvBuffer; + uint32_t unBufferSize; + PropertyTypeTag_t unTag; + ETrackedPropertyError eError; + }; + + struct PropertyRead_t + { + ETrackedDeviceProperty prop; + void *pvBuffer; + uint32_t unBufferSize; + PropertyTypeTag_t unTag; + uint32_t unRequiredBufferSize; + ETrackedPropertyError eError; + }; + + +class IVRProperties +{ +public: + + /** Reads a set of properties atomically. See the PropertyReadBatch_t struct for more information. */ + virtual ETrackedPropertyError ReadPropertyBatch( PropertyContainerHandle_t ulContainerHandle, PropertyRead_t *pBatch, uint32_t unBatchEntryCount ) = 0; + + /** Writes a set of properties atomically. See the PropertyWriteBatch_t struct for more information. */ + virtual ETrackedPropertyError WritePropertyBatch( PropertyContainerHandle_t ulContainerHandle, PropertyWrite_t *pBatch, uint32_t unBatchEntryCount ) = 0; + + /** returns a string that corresponds with the specified property error. The string will be the name + * of the error enum value for all valid error codes */ + virtual const char *GetPropErrorNameFromEnum( ETrackedPropertyError error ) = 0; + + /** Returns a container handle given a tracked device index */ + virtual PropertyContainerHandle_t TrackedDeviceToPropertyContainer( TrackedDeviceIndex_t nDevice ) = 0; + +}; + +static const char * const IVRProperties_Version = "IVRProperties_001"; + +class CVRPropertyHelpers +{ +public: + CVRPropertyHelpers( IVRProperties * pProperties ) : m_pProperties( pProperties ) {} + + /** Returns a scaler property. If the device index is not valid or the property value type does not match, + * this function will return false. */ + bool GetBoolProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ); + float GetFloatProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ); + int32_t GetInt32Property( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ); + uint64_t GetUint64Property( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ); + + /** Returns a single typed property. If the device index is not valid or the property is not a string type this function will + * return 0. Otherwise it returns the length of the number of bytes necessary to hold this string including the trailing + * null. Strings will always fit in buffers of k_unMaxPropertyStringSize characters. */ + uint32_t GetProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, VR_OUT_STRING() void *pvBuffer, uint32_t unBufferSize, PropertyTypeTag_t *punTag, ETrackedPropertyError *pError = 0L ); + + + /** Returns a string property. If the device index is not valid or the property is not a string type this function will + * return 0. Otherwise it returns the length of the number of bytes necessary to hold this string including the trailing + * null. Strings will always fit in buffers of k_unMaxPropertyStringSize characters. */ + uint32_t GetStringProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, ETrackedPropertyError *pError = 0L ); + + /** Returns a string property as a std::string. If the device index is not valid or the property is not a string type this function will + * return an empty string. */ + std::string GetStringProperty( vr::PropertyContainerHandle_t ulContainer, vr::ETrackedDeviceProperty prop, vr::ETrackedPropertyError *peError = nullptr ); + + /** Sets a scaler property. The new value will be returned on any subsequent call to get this property in any process. */ + ETrackedPropertyError SetBoolProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, bool bNewValue ); + ETrackedPropertyError SetFloatProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, float fNewValue ); + ETrackedPropertyError SetInt32Property( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, int32_t nNewValue ); + ETrackedPropertyError SetUint64Property( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, uint64_t ulNewValue ); + + /** Sets a string property. The new value will be returned on any subsequent call to get this property in any process. */ + ETrackedPropertyError SetStringProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, const char *pchNewValue ); + + /** Sets a single typed property. The new value will be returned on any subsequent call to get this property in any process. */ + ETrackedPropertyError SetProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, void *pvNewValue, uint32_t unNewValueSize, PropertyTypeTag_t unTag ); + + /** Sets the error return value for a property. This value will be returned on all subsequent requests to get the property */ + ETrackedPropertyError SetPropertyError( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError eError ); + + /** Clears any value or error set for the property. */ + ETrackedPropertyError EraseProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop ); + + /* Turns a device index into a property container handle. */ + PropertyContainerHandle_t TrackedDeviceToPropertyContainer( TrackedDeviceIndex_t nDevice ) { return m_pProperties->TrackedDeviceToPropertyContainer( nDevice ); } + +private: + template + T GetPropertyHelper( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError, T bDefault, PropertyTypeTag_t unTypeTag ); + + IVRProperties *m_pProperties; +}; + + +inline uint32_t CVRPropertyHelpers::GetProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, VR_OUT_STRING() void *pvBuffer, uint32_t unBufferSize, PropertyTypeTag_t *punTag, ETrackedPropertyError *pError ) +{ + PropertyRead_t batch; + batch.prop = prop; + batch.pvBuffer = pvBuffer; + batch.unBufferSize = unBufferSize; + + m_pProperties->ReadPropertyBatch( ulContainerHandle, &batch, 1 ); + + if ( pError ) + { + *pError = batch.eError; + } + + if ( punTag ) + { + *punTag = batch.unTag; + } + + return batch.unRequiredBufferSize; +} + + +/** Sets a single typed property. The new value will be returned on any subsequent call to get this property in any process. */ +inline ETrackedPropertyError CVRPropertyHelpers::SetProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, void *pvNewValue, uint32_t unNewValueSize, PropertyTypeTag_t unTag ) +{ + PropertyWrite_t batch; + batch.writeType = PropertyWrite_Set; + batch.prop = prop; + batch.pvBuffer = pvNewValue; + batch.unBufferSize = unNewValueSize; + batch.unTag = unTag; + + m_pProperties->WritePropertyBatch( ulContainerHandle, &batch, 1 ); + + return batch.eError; +} + + +/** Returns a string property. If the device index is not valid or the property is not a string type this function will +* return 0. Otherwise it returns the length of the number of bytes necessary to hold this string including the trailing +* null. Strings will always fit in buffers of k_unMaxPropertyStringSize characters. */ +inline uint32_t CVRPropertyHelpers::GetStringProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, ETrackedPropertyError *pError ) +{ + PropertyTypeTag_t unTag; + ETrackedPropertyError error; + uint32_t unRequiredSize = GetProperty( ulContainerHandle, prop, pchValue, unBufferSize, &unTag, &error ); + if ( unTag != k_unStringPropertyTag && error == TrackedProp_Success ) + { + error = TrackedProp_WrongDataType; + } + + if ( pError ) + { + *pError = error; + } + + if ( error != TrackedProp_Success ) + { + if ( pchValue && unBufferSize ) + { + *pchValue = '\0'; + } + } + + return unRequiredSize; +} + + +/** Returns a string property as a std::string. If the device index is not valid or the property is not a string type this function will +* return an empty string. */ +inline std::string CVRPropertyHelpers::GetStringProperty( vr::PropertyContainerHandle_t ulContainer, vr::ETrackedDeviceProperty prop, vr::ETrackedPropertyError *peError ) +{ + char buf[1024]; + vr::ETrackedPropertyError err; + uint32_t unRequiredBufferLen = GetStringProperty( ulContainer, prop, buf, sizeof(buf), &err ); + + std::string sResult; + + if ( err == TrackedProp_Success ) + { + sResult = buf; + } + else if ( err == TrackedProp_BufferTooSmall ) + { + char *pchBuffer = new char[unRequiredBufferLen]; + unRequiredBufferLen = GetStringProperty( ulContainer, prop, pchBuffer, unRequiredBufferLen, &err ); + sResult = pchBuffer; + delete[] pchBuffer; + } + + if ( peError ) + { + *peError = err; + } + + return sResult; +} + + +/** Sets a string property. The new value will be returned on any subsequent call to get this property in any process. */ +inline ETrackedPropertyError CVRPropertyHelpers::SetStringProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, const char *pchNewValue ) +{ + if ( !pchNewValue ) + return TrackedProp_InvalidOperation; + + // this is strlen without the dependency on string.h + const char *pchCurr = pchNewValue; + while ( *pchCurr ) + { + pchCurr++; + } + + return SetProperty( ulContainerHandle, prop, (void *)pchNewValue, (uint32_t)(pchCurr - pchNewValue) + 1, k_unStringPropertyTag ); +} + + +template +inline T CVRPropertyHelpers::GetPropertyHelper( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError, T bDefault, PropertyTypeTag_t unTypeTag ) +{ + T bValue; + ETrackedPropertyError eError; + PropertyTypeTag_t unReadTag; + GetProperty( ulContainerHandle, prop, &bValue, sizeof( bValue ), &unReadTag, &eError ); + if ( unReadTag != unTypeTag && eError == TrackedProp_Success ) + { + eError = TrackedProp_WrongDataType; + }; + + if ( pError ) + *pError = eError; + if ( eError != TrackedProp_Success ) + { + return bDefault; + } + else + { + return bValue; + } +} + + +inline bool CVRPropertyHelpers::GetBoolProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError ) +{ + return GetPropertyHelper( ulContainerHandle, prop, pError, false, k_unBoolPropertyTag ); +} + + +inline float CVRPropertyHelpers::GetFloatProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError ) +{ + return GetPropertyHelper( ulContainerHandle, prop, pError, 0.f, k_unFloatPropertyTag ); +} + +inline int32_t CVRPropertyHelpers::GetInt32Property( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError ) +{ + return GetPropertyHelper( ulContainerHandle, prop, pError, 0, k_unInt32PropertyTag ); +} + +inline uint64_t CVRPropertyHelpers::GetUint64Property( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError ) +{ + return GetPropertyHelper( ulContainerHandle, prop, pError, 0, k_unUint64PropertyTag ); +} + +inline ETrackedPropertyError CVRPropertyHelpers::SetBoolProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, bool bNewValue ) +{ + return SetProperty( ulContainerHandle, prop, &bNewValue, sizeof( bNewValue ), k_unBoolPropertyTag ); +} + +inline ETrackedPropertyError CVRPropertyHelpers::SetFloatProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, float fNewValue ) +{ + return SetProperty( ulContainerHandle, prop, &fNewValue, sizeof( fNewValue ), k_unFloatPropertyTag ); +} + +inline ETrackedPropertyError CVRPropertyHelpers::SetInt32Property( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, int32_t nNewValue ) +{ + return SetProperty( ulContainerHandle, prop, &nNewValue, sizeof( nNewValue ), k_unInt32PropertyTag ); +} + +inline ETrackedPropertyError CVRPropertyHelpers::SetUint64Property( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, uint64_t ulNewValue ) +{ + return SetProperty( ulContainerHandle, prop, &ulNewValue, sizeof( ulNewValue ), k_unUint64PropertyTag ); +} + +/** Sets the error return value for a property. This value will be returned on all subsequent requests to get the property */ +inline ETrackedPropertyError CVRPropertyHelpers::SetPropertyError( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError eError ) +{ + PropertyWrite_t batch; + batch.writeType = PropertyWrite_SetError; + batch.prop = prop; + batch.eSetError = eError; + + m_pProperties->WritePropertyBatch( ulContainerHandle, &batch, 1 ); + + return batch.eError; +} + +/** Clears any value or error set for the property. */ +inline ETrackedPropertyError CVRPropertyHelpers::EraseProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop ) +{ + PropertyWrite_t batch; + batch.writeType = PropertyWrite_Erase; + batch.prop = prop; + + m_pProperties->WritePropertyBatch( ulContainerHandle, &batch, 1 ); + + return batch.eError; + +} + +} + + +// ivrdriverlog.h +namespace vr +{ + +class IVRDriverLog +{ +public: + /** Writes a log message to the log file prefixed with the driver name */ + virtual void Log( const char *pchLogMessage ) = 0; +}; + + +static const char *IVRDriverLog_Version = "IVRDriverLog_001"; + +} +// ivrserverdriverhost.h +namespace vr +{ + +class ITrackedDeviceServerDriver; +struct TrackedDeviceDriverInfo_t; +struct DriverPose_t; + +/** This interface is provided by vrserver to allow the driver to notify +* the system when something changes about a device. These changes must +* not change the serial number or class of the device because those values +* are permanently associated with the device's index. */ +class IVRServerDriverHost +{ +public: + /** Notifies the server that a tracked device has been added. If this function returns true + * the server will call Activate on the device. If it returns false some kind of error + * has occurred and the device will not be activated. */ + virtual bool TrackedDeviceAdded( const char *pchDeviceSerialNumber, ETrackedDeviceClass eDeviceClass, ITrackedDeviceServerDriver *pDriver ) = 0; + + /** Notifies the server that a tracked device's pose has been updated */ + virtual void TrackedDevicePoseUpdated( uint32_t unWhichDevice, const DriverPose_t & newPose, uint32_t unPoseStructSize ) = 0; + + /** Notifies the server that vsync has occurred on the the display attached to the device. This is + * only permitted on devices of the HMD class. */ + virtual void VsyncEvent( double vsyncTimeOffsetSeconds ) = 0; + + /** notifies the server that the button was pressed */ + virtual void TrackedDeviceButtonPressed( uint32_t unWhichDevice, EVRButtonId eButtonId, double eventTimeOffset ) = 0; + + /** notifies the server that the button was unpressed */ + virtual void TrackedDeviceButtonUnpressed( uint32_t unWhichDevice, EVRButtonId eButtonId, double eventTimeOffset ) = 0; + + /** notifies the server that the button was pressed */ + virtual void TrackedDeviceButtonTouched( uint32_t unWhichDevice, EVRButtonId eButtonId, double eventTimeOffset ) = 0; + + /** notifies the server that the button was unpressed */ + virtual void TrackedDeviceButtonUntouched( uint32_t unWhichDevice, EVRButtonId eButtonId, double eventTimeOffset ) = 0; + + /** notifies the server than a controller axis changed */ + virtual void TrackedDeviceAxisUpdated( uint32_t unWhichDevice, uint32_t unWhichAxis, const VRControllerAxis_t & axisState ) = 0; + + /** Notifies the server that the proximity sensor on the specified device */ + virtual void ProximitySensorState( uint32_t unWhichDevice, bool bProximitySensorTriggered ) = 0; + + /** Sends a vendor specific event (VREvent_VendorSpecific_Reserved_Start..VREvent_VendorSpecific_Reserved_End */ + virtual void VendorSpecificEvent( uint32_t unWhichDevice, vr::EVREventType eventType, const VREvent_Data_t & eventData, double eventTimeOffset ) = 0; + + /** Returns true if SteamVR is exiting */ + virtual bool IsExiting() = 0; + + /** Returns true and fills the event with the next event on the queue if there is one. If there are no events + * this method returns false. uncbVREvent should be the size in bytes of the VREvent_t struct */ + virtual bool PollNextEvent( VREvent_t *pEvent, uint32_t uncbVREvent ) = 0; + + /** Provides access to device poses for drivers. Poses are in their "raw" tracking space which is uniquely + * defined by each driver providing poses for its devices. It is up to clients of this function to correlate + * poses across different drivers. Poses are indexed by their device id, and their associated driver and + * other properties can be looked up via IVRProperties. */ + virtual void GetRawTrackedDevicePoses( float fPredictedSecondsFromNow, TrackedDevicePose_t *pTrackedDevicePoseArray, uint32_t unTrackedDevicePoseArrayCount ) = 0; + + /** Notifies the server that a tracked device's display component transforms have been updated. */ + virtual void TrackedDeviceDisplayTransformUpdated( uint32_t unWhichDevice, HmdMatrix34_t eyeToHeadLeft, HmdMatrix34_t eyeToHeadRight ) = 0; +}; + +static const char *IVRServerDriverHost_Version = "IVRServerDriverHost_004"; + +} + +// ivrhiddenarea.h +namespace vr +{ + +class CVRHiddenAreaHelpers +{ +public: + CVRHiddenAreaHelpers( IVRProperties *pProperties ) : m_pProperties( pProperties ) {} + + /** Stores a hidden area mesh in a property */ + ETrackedPropertyError SetHiddenArea( EVREye eEye, EHiddenAreaMeshType type, HmdVector2_t *pVerts, uint32_t unVertCount ); + + /** retrieves a hidden area mesh from a property. Returns the vert count read out of the property. */ + uint32_t GetHiddenArea( EVREye eEye, EHiddenAreaMeshType type, HmdVector2_t *pVerts, uint32_t unVertCount, ETrackedPropertyError *peError ); + +private: + ETrackedDeviceProperty GetPropertyEnum( EVREye eEye, EHiddenAreaMeshType type ) + { + return (ETrackedDeviceProperty)(Prop_DisplayHiddenArea_Binary_Start + ((int)type * 2) + (int)eEye); + } + + IVRProperties *m_pProperties; +}; + + +inline ETrackedPropertyError CVRHiddenAreaHelpers::SetHiddenArea( EVREye eEye, EHiddenAreaMeshType type, HmdVector2_t *pVerts, uint32_t unVertCount ) +{ + ETrackedDeviceProperty prop = GetPropertyEnum( eEye, type ); + CVRPropertyHelpers propHelpers( m_pProperties ); + return propHelpers.SetProperty( propHelpers.TrackedDeviceToPropertyContainer( k_unTrackedDeviceIndex_Hmd ), prop, pVerts, sizeof( HmdVector2_t ) * unVertCount, k_unHiddenAreaPropertyTag ); +} + + +inline uint32_t CVRHiddenAreaHelpers::GetHiddenArea( EVREye eEye, EHiddenAreaMeshType type, HmdVector2_t *pVerts, uint32_t unVertCount, ETrackedPropertyError *peError ) +{ + ETrackedDeviceProperty prop = GetPropertyEnum( eEye, type ); + CVRPropertyHelpers propHelpers( m_pProperties ); + ETrackedPropertyError propError; + PropertyTypeTag_t unTag; + uint32_t unBytesNeeded = propHelpers.GetProperty( propHelpers.TrackedDeviceToPropertyContainer( k_unTrackedDeviceIndex_Hmd ), prop, pVerts, sizeof( HmdVector2_t )*unVertCount, &unTag, &propError ); + if ( propError == TrackedProp_Success && unTag != k_unHiddenAreaPropertyTag ) + { + propError = TrackedProp_WrongDataType; + unBytesNeeded = 0; + } + + if ( peError ) + { + *peError = propError; + } + + return unBytesNeeded / sizeof( HmdVector2_t ); +} + +} +// ivrwatchdoghost.h +namespace vr +{ + +/** This interface is provided by vrclient to allow the driver to make everything wake up */ +class IVRWatchdogHost +{ +public: + /** Client drivers in watchdog mode should call this when they have received a signal from hardware that should + * cause SteamVR to start */ + virtual void WatchdogWakeUp() = 0; +}; + +static const char *IVRWatchdogHost_Version = "IVRWatchdogHost_001"; + +}; + + + +// ivrvirtualdisplay.h +namespace vr +{ + // ---------------------------------------------------------------------------------------------- + // Purpose: This component is used for drivers that implement a virtual display (e.g. wireless). + // ---------------------------------------------------------------------------------------------- + class IVRVirtualDisplay + { + public: + + /** Submits final backbuffer for display. */ + virtual void Present( vr::SharedTextureHandle_t backbufferTextureHandle ) = 0; + + /** Block until the last presented buffer start scanning out. */ + virtual void WaitForPresent() = 0; + + /** Provides timing data for synchronizing with display. */ + virtual bool GetTimeSinceLastVsync( float *pfSecondsSinceLastVsync, uint64_t *pulFrameCounter ) = 0; + }; + + static const char *IVRVirtualDisplay_Version = "IVRVirtualDisplay_001"; + + /** Returns the current IVRVirtualDisplay pointer or NULL the interface could not be found. */ + VR_INTERFACE vr::IVRVirtualDisplay *VR_CALLTYPE VRVirtualDisplay(); +} + + +// ivrresources.h +namespace vr +{ + +class IVRResources +{ +public: + + // ------------------------------------ + // Shared Resource Methods + // ------------------------------------ + + /** Loads the specified resource into the provided buffer if large enough. + * Returns the size in bytes of the buffer required to hold the specified resource. */ + virtual uint32_t LoadSharedResource( const char *pchResourceName, char *pchBuffer, uint32_t unBufferLen ) = 0; + + /** Provides the full path to the specified resource. Resource names can include named directories for + * drivers and other things, and this resolves all of those and returns the actual physical path. + * pchResourceTypeDirectory is the subdirectory of resources to look in. */ + virtual uint32_t GetResourceFullPath( const char *pchResourceName, const char *pchResourceTypeDirectory, char *pchPathBuffer, uint32_t unBufferLen ) = 0; +}; + +static const char * const IVRResources_Version = "IVRResources_001"; + + +} +// ivrdrivermanager.h +namespace vr +{ + +class IVRDriverManager +{ +public: + virtual uint32_t GetDriverCount() const = 0; + + /** Returns the length of the number of bytes necessary to hold this string including the trailing null. */ + virtual uint32_t GetDriverName( vr::DriverId_t nDriver, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize ) = 0; +}; + +static const char * const IVRDriverManager_Version = "IVRDriverManager_001"; + +} // namespace vr + + + + + +namespace vr +{ + static const char * const k_InterfaceVersions[] = + { + IVRSettings_Version, + ITrackedDeviceServerDriver_Version, + IVRDisplayComponent_Version, + IVRDriverDirectModeComponent_Version, + IVRControllerComponent_Version, + IVRCameraComponent_Version, + IServerTrackedDeviceProvider_Version, + IVRWatchdogProvider_Version, + IVRVirtualDisplay_Version, + IVRDriverManager_Version, + IVRResources_Version, + nullptr + }; + + inline IVRDriverContext *&VRDriverContext() + { + static IVRDriverContext *pHost; + return pHost; + } + + class COpenVRDriverContext + { + public: + COpenVRDriverContext() : m_propertyHelpers(nullptr), m_hiddenAreaHelpers(nullptr) { Clear(); } + void Clear(); + + EVRInitError InitServer(); + EVRInitError InitWatchdog(); + + IVRSettings *VRSettings() + { + if ( m_pVRSettings == nullptr ) + { + EVRInitError eError; + m_pVRSettings = (IVRSettings *)VRDriverContext()->GetGenericInterface( IVRSettings_Version, &eError ); + } + return m_pVRSettings; + } + + IVRProperties *VRPropertiesRaw() + { + if ( m_pVRProperties == nullptr ) + { + EVRInitError eError; + m_pVRProperties = (IVRProperties *)VRDriverContext()->GetGenericInterface( IVRProperties_Version, &eError ); + m_propertyHelpers = CVRPropertyHelpers( m_pVRProperties ); + m_hiddenAreaHelpers = CVRHiddenAreaHelpers( m_pVRProperties ); + } + return m_pVRProperties; + } + + CVRPropertyHelpers *VRProperties() + { + VRPropertiesRaw(); + return &m_propertyHelpers; + } + + CVRHiddenAreaHelpers *VRHiddenArea() + { + VRPropertiesRaw(); + return &m_hiddenAreaHelpers; + } + + IVRServerDriverHost *VRServerDriverHost() + { + if ( m_pVRServerDriverHost == nullptr ) + { + EVRInitError eError; + m_pVRServerDriverHost = (IVRServerDriverHost *)VRDriverContext()->GetGenericInterface( IVRServerDriverHost_Version, &eError ); + } + return m_pVRServerDriverHost; + } + + IVRWatchdogHost *VRWatchdogHost() + { + if ( m_pVRWatchdogHost == nullptr ) + { + EVRInitError eError; + m_pVRWatchdogHost = (IVRWatchdogHost *)VRDriverContext()->GetGenericInterface( IVRWatchdogHost_Version, &eError ); + } + return m_pVRWatchdogHost; + } + + IVRDriverLog *VRDriverLog() + { + if ( m_pVRDriverLog == nullptr ) + { + EVRInitError eError; + m_pVRDriverLog = (IVRDriverLog *)VRDriverContext()->GetGenericInterface( IVRDriverLog_Version, &eError ); + } + return m_pVRDriverLog; + } + + DriverHandle_t VR_CALLTYPE VRDriverHandle() + { + return VRDriverContext()->GetDriverHandle(); + } + + IVRDriverManager *VRDriverManager() + { + if ( !m_pVRDriverManager ) + { + EVRInitError eError; + m_pVRDriverManager = (IVRDriverManager *)VRDriverContext()->GetGenericInterface( IVRDriverManager_Version, &eError ); + } + return m_pVRDriverManager; + } + + IVRResources *VRResources() + { + if ( !m_pVRResources ) + { + EVRInitError eError; + m_pVRResources = (IVRResources *)VRDriverContext()->GetGenericInterface( IVRResources_Version, &eError ); + } + return m_pVRResources; + } + + private: + CVRPropertyHelpers m_propertyHelpers; + CVRHiddenAreaHelpers m_hiddenAreaHelpers; + + IVRSettings *m_pVRSettings; + IVRProperties *m_pVRProperties; + IVRServerDriverHost *m_pVRServerDriverHost; + IVRWatchdogHost *m_pVRWatchdogHost; + IVRDriverLog *m_pVRDriverLog; + IVRDriverManager *m_pVRDriverManager; + IVRResources *m_pVRResources; + }; + + inline COpenVRDriverContext &OpenVRInternal_ModuleServerDriverContext() + { + static void *ctx[sizeof( COpenVRDriverContext ) / sizeof( void * )]; + return *(COpenVRDriverContext *)ctx; // bypass zero-init constructor + } + + inline IVRSettings *VR_CALLTYPE VRSettings() { return OpenVRInternal_ModuleServerDriverContext().VRSettings(); } + inline IVRProperties *VR_CALLTYPE VRPropertiesRaw() { return OpenVRInternal_ModuleServerDriverContext().VRPropertiesRaw(); } + inline CVRPropertyHelpers *VR_CALLTYPE VRProperties() { return OpenVRInternal_ModuleServerDriverContext().VRProperties(); } + inline CVRHiddenAreaHelpers *VR_CALLTYPE VRHiddenArea() { return OpenVRInternal_ModuleServerDriverContext().VRHiddenArea(); } + inline IVRDriverLog *VR_CALLTYPE VRDriverLog() { return OpenVRInternal_ModuleServerDriverContext().VRDriverLog(); } + inline IVRServerDriverHost *VR_CALLTYPE VRServerDriverHost() { return OpenVRInternal_ModuleServerDriverContext().VRServerDriverHost(); } + inline IVRWatchdogHost *VR_CALLTYPE VRWatchdogHost() { return OpenVRInternal_ModuleServerDriverContext().VRWatchdogHost(); } + inline DriverHandle_t VR_CALLTYPE VRDriverHandle() { return OpenVRInternal_ModuleServerDriverContext().VRDriverHandle(); } + inline IVRDriverManager *VR_CALLTYPE VRDriverManager() { return OpenVRInternal_ModuleServerDriverContext().VRDriverManager(); } + inline IVRResources *VR_CALLTYPE VRResources() { return OpenVRInternal_ModuleServerDriverContext().VRResources(); } + + inline void COpenVRDriverContext::Clear() + { + m_pVRSettings = nullptr; + m_pVRProperties = nullptr; + m_pVRServerDriverHost = nullptr; + m_pVRDriverLog = nullptr; + m_pVRWatchdogHost = nullptr; + m_pVRDriverManager = nullptr; + m_pVRResources = nullptr; + } + + inline EVRInitError COpenVRDriverContext::InitServer() + { + Clear(); + if ( !VRServerDriverHost() + || !VRSettings() + || !VRProperties() + || !VRDriverLog() + || !VRDriverManager() + || !VRResources() ) + return VRInitError_Init_InterfaceNotFound; + return VRInitError_None; + } + + inline EVRInitError COpenVRDriverContext::InitWatchdog() + { + Clear(); + if ( !VRWatchdogHost() + || !VRSettings() + || !VRDriverLog() ) + return VRInitError_Init_InterfaceNotFound; + return VRInitError_None; + } + + inline EVRInitError InitServerDriverContext( IVRDriverContext *pContext ) + { + VRDriverContext() = pContext; + return OpenVRInternal_ModuleServerDriverContext().InitServer(); + } + + inline EVRInitError InitWatchdogDriverContext( IVRDriverContext *pContext ) + { + VRDriverContext() = pContext; + return OpenVRInternal_ModuleServerDriverContext().InitWatchdog(); + } + + inline void CleanupDriverContext() + { + VRDriverContext() = nullptr; + OpenVRInternal_ModuleServerDriverContext().Clear(); + } + + #define VR_INIT_SERVER_DRIVER_CONTEXT( pContext ) \ + { \ + vr::EVRInitError eError = vr::InitServerDriverContext( pContext ); \ + if( eError != vr::VRInitError_None ) \ + return eError; \ + } + + #define VR_CLEANUP_SERVER_DRIVER_CONTEXT() \ + vr::CleanupDriverContext(); + + #define VR_INIT_WATCHDOG_DRIVER_CONTEXT( pContext ) \ + { \ + vr::EVRInitError eError = vr::InitWatchdogDriverContext( pContext ); \ + if( eError != vr::VRInitError_None ) \ + return eError; \ + } + + #define VR_CLEANUP_WATCHDOG_DRIVER_CONTEXT() \ + vr::CleanupDriverContext(); +} +// End + +#endif // _OPENVR_DRIVER_API + + diff --git a/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/A/OpenVR b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/A/OpenVR new file mode 100755 index 000000000..1609501c7 Binary files /dev/null and b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/A/OpenVR differ diff --git a/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/A/Resources/Info.plist b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/A/Resources/Info.plist new file mode 100644 index 000000000..50ff90a2c --- /dev/null +++ b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/A/Resources/Info.plist @@ -0,0 +1,18 @@ + + + + + CFBundleIdentifier + com.valvesoftware.OpenVR.framework + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + OpenVR + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1.0 + + diff --git a/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/Current/Headers/openvr.h b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/Current/Headers/openvr.h new file mode 100644 index 000000000..79abf062a --- /dev/null +++ b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/Current/Headers/openvr.h @@ -0,0 +1,3721 @@ +#pragma once + +// openvr.h +//========= Copyright Valve Corporation ============// +// Dynamically generated file. Do not modify this file directly. + +#ifndef _OPENVR_API +#define _OPENVR_API + +#include + + + +// vrtypes.h +#ifndef _INCLUDE_VRTYPES_H +#define _INCLUDE_VRTYPES_H + +// Forward declarations to avoid requiring vulkan.h +struct VkDevice_T; +struct VkPhysicalDevice_T; +struct VkInstance_T; +struct VkQueue_T; + +// Forward declarations to avoid requiring d3d12.h +struct ID3D12Resource; +struct ID3D12CommandQueue; + +namespace vr +{ +#pragma pack( push, 8 ) + +typedef void* glSharedTextureHandle_t; +typedef int32_t glInt_t; +typedef uint32_t glUInt_t; + +// right-handed system +// +y is up +// +x is to the right +// -z is going away from you +// Distance unit is meters +struct HmdMatrix34_t +{ + float m[3][4]; +}; + +struct HmdMatrix44_t +{ + float m[4][4]; +}; + +struct HmdVector3_t +{ + float v[3]; +}; + +struct HmdVector4_t +{ + float v[4]; +}; + +struct HmdVector3d_t +{ + double v[3]; +}; + +struct HmdVector2_t +{ + float v[2]; +}; + +struct HmdQuaternion_t +{ + double w, x, y, z; +}; + +struct HmdColor_t +{ + float r, g, b, a; +}; + +struct HmdQuad_t +{ + HmdVector3_t vCorners[ 4 ]; +}; + +struct HmdRect2_t +{ + HmdVector2_t vTopLeft; + HmdVector2_t vBottomRight; +}; + +/** Used to return the post-distortion UVs for each color channel. +* UVs range from 0 to 1 with 0,0 in the upper left corner of the +* source render target. The 0,0 to 1,1 range covers a single eye. */ +struct DistortionCoordinates_t +{ + float rfRed[2]; + float rfGreen[2]; + float rfBlue[2]; +}; + +enum EVREye +{ + Eye_Left = 0, + Eye_Right = 1 +}; + +enum ETextureType +{ + TextureType_DirectX = 0, // Handle is an ID3D11Texture + TextureType_OpenGL = 1, // Handle is an OpenGL texture name or an OpenGL render buffer name, depending on submit flags + TextureType_Vulkan = 2, // Handle is a pointer to a VRVulkanTextureData_t structure + TextureType_IOSurface = 3, // Handle is a macOS cross-process-sharable IOSurfaceRef + TextureType_DirectX12 = 4, // Handle is a pointer to a D3D12TextureData_t structure +}; + +enum EColorSpace +{ + ColorSpace_Auto = 0, // Assumes 'gamma' for 8-bit per component formats, otherwise 'linear'. This mirrors the DXGI formats which have _SRGB variants. + ColorSpace_Gamma = 1, // Texture data can be displayed directly on the display without any conversion (a.k.a. display native format). + ColorSpace_Linear = 2, // Same as gamma but has been converted to a linear representation using DXGI's sRGB conversion algorithm. +}; + +struct Texture_t +{ + void* handle; // See ETextureType definition above + ETextureType eType; + EColorSpace eColorSpace; +}; + +// Handle to a shared texture (HANDLE on Windows obtained using OpenSharedResource). +typedef uint64_t SharedTextureHandle_t; +#define INVALID_SHARED_TEXTURE_HANDLE ((vr::SharedTextureHandle_t)0) + +enum ETrackingResult +{ + TrackingResult_Uninitialized = 1, + + TrackingResult_Calibrating_InProgress = 100, + TrackingResult_Calibrating_OutOfRange = 101, + + TrackingResult_Running_OK = 200, + TrackingResult_Running_OutOfRange = 201, +}; + +typedef uint32_t DriverId_t; +static const uint32_t k_nDriverNone = 0xFFFFFFFF; + +static const uint32_t k_unMaxDriverDebugResponseSize = 32768; + +/** Used to pass device IDs to API calls */ +typedef uint32_t TrackedDeviceIndex_t; +static const uint32_t k_unTrackedDeviceIndex_Hmd = 0; +static const uint32_t k_unMaxTrackedDeviceCount = 16; +static const uint32_t k_unTrackedDeviceIndexOther = 0xFFFFFFFE; +static const uint32_t k_unTrackedDeviceIndexInvalid = 0xFFFFFFFF; + +/** Describes what kind of object is being tracked at a given ID */ +enum ETrackedDeviceClass +{ + TrackedDeviceClass_Invalid = 0, // the ID was not valid. + TrackedDeviceClass_HMD = 1, // Head-Mounted Displays + TrackedDeviceClass_Controller = 2, // Tracked controllers + TrackedDeviceClass_GenericTracker = 3, // Generic trackers, similar to controllers + TrackedDeviceClass_TrackingReference = 4, // Camera and base stations that serve as tracking reference points + TrackedDeviceClass_DisplayRedirect = 5, // Accessories that aren't necessarily tracked themselves, but may redirect video output from other tracked devices +}; + + +/** Describes what specific role associated with a tracked device */ +enum ETrackedControllerRole +{ + TrackedControllerRole_Invalid = 0, // Invalid value for controller type + TrackedControllerRole_LeftHand = 1, // Tracked device associated with the left hand + TrackedControllerRole_RightHand = 2, // Tracked device associated with the right hand +}; + + +/** describes a single pose for a tracked object */ +struct TrackedDevicePose_t +{ + HmdMatrix34_t mDeviceToAbsoluteTracking; + HmdVector3_t vVelocity; // velocity in tracker space in m/s + HmdVector3_t vAngularVelocity; // angular velocity in radians/s (?) + ETrackingResult eTrackingResult; + bool bPoseIsValid; + + // This indicates that there is a device connected for this spot in the pose array. + // It could go from true to false if the user unplugs the device. + bool bDeviceIsConnected; +}; + +/** Identifies which style of tracking origin the application wants to use +* for the poses it is requesting */ +enum ETrackingUniverseOrigin +{ + TrackingUniverseSeated = 0, // Poses are provided relative to the seated zero pose + TrackingUniverseStanding = 1, // Poses are provided relative to the safe bounds configured by the user + TrackingUniverseRawAndUncalibrated = 2, // Poses are provided in the coordinate system defined by the driver. It has Y up and is unified for devices of the same driver. You usually don't want this one. +}; + +// Refers to a single container of properties +typedef uint64_t PropertyContainerHandle_t; +typedef uint32_t PropertyTypeTag_t; + +static const PropertyContainerHandle_t k_ulInvalidPropertyContainer = 0; +static const PropertyTypeTag_t k_unInvalidPropertyTag = 0; + +// Use these tags to set/get common types as struct properties +static const PropertyTypeTag_t k_unFloatPropertyTag = 1; +static const PropertyTypeTag_t k_unInt32PropertyTag = 2; +static const PropertyTypeTag_t k_unUint64PropertyTag = 3; +static const PropertyTypeTag_t k_unBoolPropertyTag = 4; +static const PropertyTypeTag_t k_unStringPropertyTag = 5; + +static const PropertyTypeTag_t k_unHmdMatrix34PropertyTag = 20; +static const PropertyTypeTag_t k_unHmdMatrix44PropertyTag = 21; +static const PropertyTypeTag_t k_unHmdVector3PropertyTag = 22; +static const PropertyTypeTag_t k_unHmdVector4PropertyTag = 23; + +static const PropertyTypeTag_t k_unHiddenAreaPropertyTag = 30; + +static const PropertyTypeTag_t k_unOpenVRInternalReserved_Start = 1000; +static const PropertyTypeTag_t k_unOpenVRInternalReserved_End = 10000; + + +/** Each entry in this enum represents a property that can be retrieved about a +* tracked device. Many fields are only valid for one ETrackedDeviceClass. */ +enum ETrackedDeviceProperty +{ + Prop_Invalid = 0, + + // general properties that apply to all device classes + Prop_TrackingSystemName_String = 1000, + Prop_ModelNumber_String = 1001, + Prop_SerialNumber_String = 1002, + Prop_RenderModelName_String = 1003, + Prop_WillDriftInYaw_Bool = 1004, + Prop_ManufacturerName_String = 1005, + Prop_TrackingFirmwareVersion_String = 1006, + Prop_HardwareRevision_String = 1007, + Prop_AllWirelessDongleDescriptions_String = 1008, + Prop_ConnectedWirelessDongle_String = 1009, + Prop_DeviceIsWireless_Bool = 1010, + Prop_DeviceIsCharging_Bool = 1011, + Prop_DeviceBatteryPercentage_Float = 1012, // 0 is empty, 1 is full + Prop_StatusDisplayTransform_Matrix34 = 1013, + Prop_Firmware_UpdateAvailable_Bool = 1014, + Prop_Firmware_ManualUpdate_Bool = 1015, + Prop_Firmware_ManualUpdateURL_String = 1016, + Prop_HardwareRevision_Uint64 = 1017, + Prop_FirmwareVersion_Uint64 = 1018, + Prop_FPGAVersion_Uint64 = 1019, + Prop_VRCVersion_Uint64 = 1020, + Prop_RadioVersion_Uint64 = 1021, + Prop_DongleVersion_Uint64 = 1022, + Prop_BlockServerShutdown_Bool = 1023, + Prop_CanUnifyCoordinateSystemWithHmd_Bool = 1024, + Prop_ContainsProximitySensor_Bool = 1025, + Prop_DeviceProvidesBatteryStatus_Bool = 1026, + Prop_DeviceCanPowerOff_Bool = 1027, + Prop_Firmware_ProgrammingTarget_String = 1028, + Prop_DeviceClass_Int32 = 1029, + Prop_HasCamera_Bool = 1030, + Prop_DriverVersion_String = 1031, + Prop_Firmware_ForceUpdateRequired_Bool = 1032, + Prop_ViveSystemButtonFixRequired_Bool = 1033, + Prop_ParentDriver_Uint64 = 1034, + Prop_ResourceRoot_String = 1035, + + // Properties that are unique to TrackedDeviceClass_HMD + Prop_ReportsTimeSinceVSync_Bool = 2000, + Prop_SecondsFromVsyncToPhotons_Float = 2001, + Prop_DisplayFrequency_Float = 2002, + Prop_UserIpdMeters_Float = 2003, + Prop_CurrentUniverseId_Uint64 = 2004, + Prop_PreviousUniverseId_Uint64 = 2005, + Prop_DisplayFirmwareVersion_Uint64 = 2006, + Prop_IsOnDesktop_Bool = 2007, + Prop_DisplayMCType_Int32 = 2008, + Prop_DisplayMCOffset_Float = 2009, + Prop_DisplayMCScale_Float = 2010, + Prop_EdidVendorID_Int32 = 2011, + Prop_DisplayMCImageLeft_String = 2012, + Prop_DisplayMCImageRight_String = 2013, + Prop_DisplayGCBlackClamp_Float = 2014, + Prop_EdidProductID_Int32 = 2015, + Prop_CameraToHeadTransform_Matrix34 = 2016, + Prop_DisplayGCType_Int32 = 2017, + Prop_DisplayGCOffset_Float = 2018, + Prop_DisplayGCScale_Float = 2019, + Prop_DisplayGCPrescale_Float = 2020, + Prop_DisplayGCImage_String = 2021, + Prop_LensCenterLeftU_Float = 2022, + Prop_LensCenterLeftV_Float = 2023, + Prop_LensCenterRightU_Float = 2024, + Prop_LensCenterRightV_Float = 2025, + Prop_UserHeadToEyeDepthMeters_Float = 2026, + Prop_CameraFirmwareVersion_Uint64 = 2027, + Prop_CameraFirmwareDescription_String = 2028, + Prop_DisplayFPGAVersion_Uint64 = 2029, + Prop_DisplayBootloaderVersion_Uint64 = 2030, + Prop_DisplayHardwareVersion_Uint64 = 2031, + Prop_AudioFirmwareVersion_Uint64 = 2032, + Prop_CameraCompatibilityMode_Int32 = 2033, + Prop_ScreenshotHorizontalFieldOfViewDegrees_Float = 2034, + Prop_ScreenshotVerticalFieldOfViewDegrees_Float = 2035, + Prop_DisplaySuppressed_Bool = 2036, + Prop_DisplayAllowNightMode_Bool = 2037, + Prop_DisplayMCImageWidth_Int32 = 2038, + Prop_DisplayMCImageHeight_Int32 = 2039, + Prop_DisplayMCImageNumChannels_Int32 = 2040, + Prop_DisplayMCImageData_Binary = 2041, + Prop_SecondsFromPhotonsToVblank_Float = 2042, + Prop_DriverDirectModeSendsVsyncEvents_Bool = 2043, + Prop_DisplayDebugMode_Bool = 2044, + Prop_GraphicsAdapterLuid_Uint64 = 2045, + + // Properties that are unique to TrackedDeviceClass_Controller + Prop_AttachedDeviceId_String = 3000, + Prop_SupportedButtons_Uint64 = 3001, + Prop_Axis0Type_Int32 = 3002, // Return value is of type EVRControllerAxisType + Prop_Axis1Type_Int32 = 3003, // Return value is of type EVRControllerAxisType + Prop_Axis2Type_Int32 = 3004, // Return value is of type EVRControllerAxisType + Prop_Axis3Type_Int32 = 3005, // Return value is of type EVRControllerAxisType + Prop_Axis4Type_Int32 = 3006, // Return value is of type EVRControllerAxisType + Prop_ControllerRoleHint_Int32 = 3007, // Return value is of type ETrackedControllerRole + + // Properties that are unique to TrackedDeviceClass_TrackingReference + Prop_FieldOfViewLeftDegrees_Float = 4000, + Prop_FieldOfViewRightDegrees_Float = 4001, + Prop_FieldOfViewTopDegrees_Float = 4002, + Prop_FieldOfViewBottomDegrees_Float = 4003, + Prop_TrackingRangeMinimumMeters_Float = 4004, + Prop_TrackingRangeMaximumMeters_Float = 4005, + Prop_ModeLabel_String = 4006, + + // Properties that are used for user interface like icons names + Prop_IconPathName_String = 5000, // DEPRECATED. Value not referenced. Now expected to be part of icon path properties. + Prop_NamedIconPathDeviceOff_String = 5001, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceSearching_String = 5002, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceSearchingAlert_String = 5003, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceReady_String = 5004, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceReadyAlert_String = 5005, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceNotReady_String = 5006, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceStandby_String = 5007, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceAlertLow_String = 5008, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + + // Properties that are used by helpers, but are opaque to applications + Prop_DisplayHiddenArea_Binary_Start = 5100, + Prop_DisplayHiddenArea_Binary_End = 5150, + + // Properties that are unique to drivers + Prop_UserConfigPath_String = 6000, + Prop_InstallPath_String = 6001, + Prop_HasDisplayComponent_Bool = 6002, + Prop_HasControllerComponent_Bool = 6003, + Prop_HasCameraComponent_Bool = 6004, + Prop_HasDriverDirectModeComponent_Bool = 6005, + Prop_HasVirtualDisplayComponent_Bool = 6006, + + // Vendors are free to expose private debug data in this reserved region + Prop_VendorSpecific_Reserved_Start = 10000, + Prop_VendorSpecific_Reserved_End = 10999, +}; + +/** No string property will ever be longer than this length */ +static const uint32_t k_unMaxPropertyStringSize = 32 * 1024; + +/** Used to return errors that occur when reading properties. */ +enum ETrackedPropertyError +{ + TrackedProp_Success = 0, + TrackedProp_WrongDataType = 1, + TrackedProp_WrongDeviceClass = 2, + TrackedProp_BufferTooSmall = 3, + TrackedProp_UnknownProperty = 4, // Driver has not set the property (and may not ever). + TrackedProp_InvalidDevice = 5, + TrackedProp_CouldNotContactServer = 6, + TrackedProp_ValueNotProvidedByDevice = 7, + TrackedProp_StringExceedsMaximumLength = 8, + TrackedProp_NotYetAvailable = 9, // The property value isn't known yet, but is expected soon. Call again later. + TrackedProp_PermissionDenied = 10, + TrackedProp_InvalidOperation = 11, +}; + +/** Allows the application to control what part of the provided texture will be used in the +* frame buffer. */ +struct VRTextureBounds_t +{ + float uMin, vMin; + float uMax, vMax; +}; + + +/** Allows the application to control how scene textures are used by the compositor when calling Submit. */ +enum EVRSubmitFlags +{ + // Simple render path. App submits rendered left and right eye images with no lens distortion correction applied. + Submit_Default = 0x00, + + // App submits final left and right eye images with lens distortion already applied (lens distortion makes the images appear + // barrel distorted with chromatic aberration correction applied). The app would have used the data returned by + // vr::IVRSystem::ComputeDistortion() to apply the correct distortion to the rendered images before calling Submit(). + Submit_LensDistortionAlreadyApplied = 0x01, + + // If the texture pointer passed in is actually a renderbuffer (e.g. for MSAA in OpenGL) then set this flag. + Submit_GlRenderBuffer = 0x02, + + // Do not use + Submit_Reserved = 0x04, +}; + +/** Data required for passing Vulkan textures to IVRCompositor::Submit. +* Be sure to call OpenVR_Shutdown before destroying these resources. */ +struct VRVulkanTextureData_t +{ + uint64_t m_nImage; // VkImage + VkDevice_T *m_pDevice; + VkPhysicalDevice_T *m_pPhysicalDevice; + VkInstance_T *m_pInstance; + VkQueue_T *m_pQueue; + uint32_t m_nQueueFamilyIndex; + uint32_t m_nWidth, m_nHeight, m_nFormat, m_nSampleCount; +}; + +/** Data required for passing D3D12 textures to IVRCompositor::Submit. +* Be sure to call OpenVR_Shutdown before destroying these resources. */ +struct D3D12TextureData_t +{ + ID3D12Resource *m_pResource; + ID3D12CommandQueue *m_pCommandQueue; + uint32_t m_nNodeMask; +}; + +/** Status of the overall system or tracked objects */ +enum EVRState +{ + VRState_Undefined = -1, + VRState_Off = 0, + VRState_Searching = 1, + VRState_Searching_Alert = 2, + VRState_Ready = 3, + VRState_Ready_Alert = 4, + VRState_NotReady = 5, + VRState_Standby = 6, + VRState_Ready_Alert_Low = 7, +}; + +/** The types of events that could be posted (and what the parameters mean for each event type) */ +enum EVREventType +{ + VREvent_None = 0, + + VREvent_TrackedDeviceActivated = 100, + VREvent_TrackedDeviceDeactivated = 101, + VREvent_TrackedDeviceUpdated = 102, + VREvent_TrackedDeviceUserInteractionStarted = 103, + VREvent_TrackedDeviceUserInteractionEnded = 104, + VREvent_IpdChanged = 105, + VREvent_EnterStandbyMode = 106, + VREvent_LeaveStandbyMode = 107, + VREvent_TrackedDeviceRoleChanged = 108, + VREvent_WatchdogWakeUpRequested = 109, + VREvent_LensDistortionChanged = 110, + VREvent_PropertyChanged = 111, + + VREvent_ButtonPress = 200, // data is controller + VREvent_ButtonUnpress = 201, // data is controller + VREvent_ButtonTouch = 202, // data is controller + VREvent_ButtonUntouch = 203, // data is controller + + VREvent_MouseMove = 300, // data is mouse + VREvent_MouseButtonDown = 301, // data is mouse + VREvent_MouseButtonUp = 302, // data is mouse + VREvent_FocusEnter = 303, // data is overlay + VREvent_FocusLeave = 304, // data is overlay + VREvent_Scroll = 305, // data is mouse + VREvent_TouchPadMove = 306, // data is mouse + VREvent_OverlayFocusChanged = 307, // data is overlay, global event + + VREvent_InputFocusCaptured = 400, // data is process DEPRECATED + VREvent_InputFocusReleased = 401, // data is process DEPRECATED + VREvent_SceneFocusLost = 402, // data is process + VREvent_SceneFocusGained = 403, // data is process + VREvent_SceneApplicationChanged = 404, // data is process - The App actually drawing the scene changed (usually to or from the compositor) + VREvent_SceneFocusChanged = 405, // data is process - New app got access to draw the scene + VREvent_InputFocusChanged = 406, // data is process + VREvent_SceneApplicationSecondaryRenderingStarted = 407, // data is process + + VREvent_HideRenderModels = 410, // Sent to the scene application to request hiding render models temporarily + VREvent_ShowRenderModels = 411, // Sent to the scene application to request restoring render model visibility + + VREvent_OverlayShown = 500, + VREvent_OverlayHidden = 501, + VREvent_DashboardActivated = 502, + VREvent_DashboardDeactivated = 503, + VREvent_DashboardThumbSelected = 504, // Sent to the overlay manager - data is overlay + VREvent_DashboardRequested = 505, // Sent to the overlay manager - data is overlay + VREvent_ResetDashboard = 506, // Send to the overlay manager + VREvent_RenderToast = 507, // Send to the dashboard to render a toast - data is the notification ID + VREvent_ImageLoaded = 508, // Sent to overlays when a SetOverlayRaw or SetOverlayFromFile call finishes loading + VREvent_ShowKeyboard = 509, // Sent to keyboard renderer in the dashboard to invoke it + VREvent_HideKeyboard = 510, // Sent to keyboard renderer in the dashboard to hide it + VREvent_OverlayGamepadFocusGained = 511, // Sent to an overlay when IVROverlay::SetFocusOverlay is called on it + VREvent_OverlayGamepadFocusLost = 512, // Send to an overlay when it previously had focus and IVROverlay::SetFocusOverlay is called on something else + VREvent_OverlaySharedTextureChanged = 513, + VREvent_DashboardGuideButtonDown = 514, + VREvent_DashboardGuideButtonUp = 515, + VREvent_ScreenshotTriggered = 516, // Screenshot button combo was pressed, Dashboard should request a screenshot + VREvent_ImageFailed = 517, // Sent to overlays when a SetOverlayRaw or SetOverlayfromFail fails to load + VREvent_DashboardOverlayCreated = 518, + + // Screenshot API + VREvent_RequestScreenshot = 520, // Sent by vrclient application to compositor to take a screenshot + VREvent_ScreenshotTaken = 521, // Sent by compositor to the application that the screenshot has been taken + VREvent_ScreenshotFailed = 522, // Sent by compositor to the application that the screenshot failed to be taken + VREvent_SubmitScreenshotToDashboard = 523, // Sent by compositor to the dashboard that a completed screenshot was submitted + VREvent_ScreenshotProgressToDashboard = 524, // Sent by compositor to the dashboard that a completed screenshot was submitted + + VREvent_PrimaryDashboardDeviceChanged = 525, + + VREvent_Notification_Shown = 600, + VREvent_Notification_Hidden = 601, + VREvent_Notification_BeginInteraction = 602, + VREvent_Notification_Destroyed = 603, + + VREvent_Quit = 700, // data is process + VREvent_ProcessQuit = 701, // data is process + VREvent_QuitAborted_UserPrompt = 702, // data is process + VREvent_QuitAcknowledged = 703, // data is process + VREvent_DriverRequestedQuit = 704, // The driver has requested that SteamVR shut down + + VREvent_ChaperoneDataHasChanged = 800, + VREvent_ChaperoneUniverseHasChanged = 801, + VREvent_ChaperoneTempDataHasChanged = 802, + VREvent_ChaperoneSettingsHaveChanged = 803, + VREvent_SeatedZeroPoseReset = 804, + + VREvent_AudioSettingsHaveChanged = 820, + + VREvent_BackgroundSettingHasChanged = 850, + VREvent_CameraSettingsHaveChanged = 851, + VREvent_ReprojectionSettingHasChanged = 852, + VREvent_ModelSkinSettingsHaveChanged = 853, + VREvent_EnvironmentSettingsHaveChanged = 854, + VREvent_PowerSettingsHaveChanged = 855, + VREvent_EnableHomeAppSettingsHaveChanged = 856, + + VREvent_StatusUpdate = 900, + + VREvent_MCImageUpdated = 1000, + + VREvent_FirmwareUpdateStarted = 1100, + VREvent_FirmwareUpdateFinished = 1101, + + VREvent_KeyboardClosed = 1200, + VREvent_KeyboardCharInput = 1201, + VREvent_KeyboardDone = 1202, // Sent when DONE button clicked on keyboard + + VREvent_ApplicationTransitionStarted = 1300, + VREvent_ApplicationTransitionAborted = 1301, + VREvent_ApplicationTransitionNewAppStarted = 1302, + VREvent_ApplicationListUpdated = 1303, + VREvent_ApplicationMimeTypeLoad = 1304, + VREvent_ApplicationTransitionNewAppLaunchComplete = 1305, + VREvent_ProcessConnected = 1306, + VREvent_ProcessDisconnected = 1307, + + VREvent_Compositor_MirrorWindowShown = 1400, + VREvent_Compositor_MirrorWindowHidden = 1401, + VREvent_Compositor_ChaperoneBoundsShown = 1410, + VREvent_Compositor_ChaperoneBoundsHidden = 1411, + + VREvent_TrackedCamera_StartVideoStream = 1500, + VREvent_TrackedCamera_StopVideoStream = 1501, + VREvent_TrackedCamera_PauseVideoStream = 1502, + VREvent_TrackedCamera_ResumeVideoStream = 1503, + VREvent_TrackedCamera_EditingSurface = 1550, + + VREvent_PerformanceTest_EnableCapture = 1600, + VREvent_PerformanceTest_DisableCapture = 1601, + VREvent_PerformanceTest_FidelityLevel = 1602, + + VREvent_MessageOverlay_Closed = 1650, + + // Vendors are free to expose private events in this reserved region + VREvent_VendorSpecific_Reserved_Start = 10000, + VREvent_VendorSpecific_Reserved_End = 19999, +}; + + +/** Level of Hmd activity */ +// UserInteraction_Timeout means the device is in the process of timing out. +// InUse = ( k_EDeviceActivityLevel_UserInteraction || k_EDeviceActivityLevel_UserInteraction_Timeout ) +// VREvent_TrackedDeviceUserInteractionStarted fires when the devices transitions from Standby -> UserInteraction or Idle -> UserInteraction. +// VREvent_TrackedDeviceUserInteractionEnded fires when the devices transitions from UserInteraction_Timeout -> Idle +enum EDeviceActivityLevel +{ + k_EDeviceActivityLevel_Unknown = -1, + k_EDeviceActivityLevel_Idle = 0, // No activity for the last 10 seconds + k_EDeviceActivityLevel_UserInteraction = 1, // Activity (movement or prox sensor) is happening now + k_EDeviceActivityLevel_UserInteraction_Timeout = 2, // No activity for the last 0.5 seconds + k_EDeviceActivityLevel_Standby = 3, // Idle for at least 5 seconds (configurable in Settings -> Power Management) +}; + + +/** VR controller button and axis IDs */ +enum EVRButtonId +{ + k_EButton_System = 0, + k_EButton_ApplicationMenu = 1, + k_EButton_Grip = 2, + k_EButton_DPad_Left = 3, + k_EButton_DPad_Up = 4, + k_EButton_DPad_Right = 5, + k_EButton_DPad_Down = 6, + k_EButton_A = 7, + + k_EButton_ProximitySensor = 31, + + k_EButton_Axis0 = 32, + k_EButton_Axis1 = 33, + k_EButton_Axis2 = 34, + k_EButton_Axis3 = 35, + k_EButton_Axis4 = 36, + + // aliases for well known controllers + k_EButton_SteamVR_Touchpad = k_EButton_Axis0, + k_EButton_SteamVR_Trigger = k_EButton_Axis1, + + k_EButton_Dashboard_Back = k_EButton_Grip, + + k_EButton_Max = 64 +}; + +inline uint64_t ButtonMaskFromId( EVRButtonId id ) { return 1ull << id; } + +/** used for controller button events */ +struct VREvent_Controller_t +{ + uint32_t button; // EVRButtonId enum +}; + + +/** used for simulated mouse events in overlay space */ +enum EVRMouseButton +{ + VRMouseButton_Left = 0x0001, + VRMouseButton_Right = 0x0002, + VRMouseButton_Middle = 0x0004, +}; + + +/** used for simulated mouse events in overlay space */ +struct VREvent_Mouse_t +{ + float x, y; // co-ords are in GL space, bottom left of the texture is 0,0 + uint32_t button; // EVRMouseButton enum +}; + +/** used for simulated mouse wheel scroll in overlay space */ +struct VREvent_Scroll_t +{ + float xdelta, ydelta; // movement in fraction of the pad traversed since last delta, 1.0 for a full swipe + uint32_t repeatCount; +}; + +/** when in mouse input mode you can receive data from the touchpad, these events are only sent if the users finger + is on the touchpad (or just released from it) +**/ +struct VREvent_TouchPadMove_t +{ + // true if the users finger is detected on the touch pad + bool bFingerDown; + + // How long the finger has been down in seconds + float flSecondsFingerDown; + + // These values indicate the starting finger position (so you can do some basic swipe stuff) + float fValueXFirst; + float fValueYFirst; + + // This is the raw sampled coordinate without deadzoning + float fValueXRaw; + float fValueYRaw; +}; + +/** notification related events. Details will still change at this point */ +struct VREvent_Notification_t +{ + uint64_t ulUserValue; + uint32_t notificationId; +}; + +/** Used for events about processes */ +struct VREvent_Process_t +{ + uint32_t pid; + uint32_t oldPid; + bool bForced; +}; + + +/** Used for a few events about overlays */ +struct VREvent_Overlay_t +{ + uint64_t overlayHandle; +}; + + +/** Used for a few events about overlays */ +struct VREvent_Status_t +{ + uint32_t statusState; // EVRState enum +}; + +/** Used for keyboard events **/ +struct VREvent_Keyboard_t +{ + char cNewInput[8]; // Up to 11 bytes of new input + uint64_t uUserValue; // Possible flags about the new input +}; + +struct VREvent_Ipd_t +{ + float ipdMeters; +}; + +struct VREvent_Chaperone_t +{ + uint64_t m_nPreviousUniverse; + uint64_t m_nCurrentUniverse; +}; + +/** Not actually used for any events */ +struct VREvent_Reserved_t +{ + uint64_t reserved0; + uint64_t reserved1; +}; + +struct VREvent_PerformanceTest_t +{ + uint32_t m_nFidelityLevel; +}; + +struct VREvent_SeatedZeroPoseReset_t +{ + bool bResetBySystemMenu; +}; + +struct VREvent_Screenshot_t +{ + uint32_t handle; + uint32_t type; +}; + +struct VREvent_ScreenshotProgress_t +{ + float progress; +}; + +struct VREvent_ApplicationLaunch_t +{ + uint32_t pid; + uint32_t unArgsHandle; +}; + +struct VREvent_EditingCameraSurface_t +{ + uint64_t overlayHandle; + uint32_t nVisualMode; +}; + +struct VREvent_MessageOverlay_t +{ + uint32_t unVRMessageOverlayResponse; // vr::VRMessageOverlayResponse enum +}; + +struct VREvent_Property_t +{ + PropertyContainerHandle_t container; + ETrackedDeviceProperty prop; +}; + +/** NOTE!!! If you change this you MUST manually update openvr_interop.cs.py */ +typedef union +{ + VREvent_Reserved_t reserved; + VREvent_Controller_t controller; + VREvent_Mouse_t mouse; + VREvent_Scroll_t scroll; + VREvent_Process_t process; + VREvent_Notification_t notification; + VREvent_Overlay_t overlay; + VREvent_Status_t status; + VREvent_Keyboard_t keyboard; + VREvent_Ipd_t ipd; + VREvent_Chaperone_t chaperone; + VREvent_PerformanceTest_t performanceTest; + VREvent_TouchPadMove_t touchPadMove; + VREvent_SeatedZeroPoseReset_t seatedZeroPoseReset; + VREvent_Screenshot_t screenshot; + VREvent_ScreenshotProgress_t screenshotProgress; + VREvent_ApplicationLaunch_t applicationLaunch; + VREvent_EditingCameraSurface_t cameraSurface; + VREvent_MessageOverlay_t messageOverlay; + VREvent_Property_t property; +} VREvent_Data_t; + + +#if defined(__linux__) || defined(__APPLE__) +// This structure was originally defined mis-packed on Linux, preserved for +// compatibility. +#pragma pack( push, 4 ) +#endif + +/** An event posted by the server to all running applications */ +struct VREvent_t +{ + uint32_t eventType; // EVREventType enum + TrackedDeviceIndex_t trackedDeviceIndex; + float eventAgeSeconds; + // event data must be the end of the struct as its size is variable + VREvent_Data_t data; +}; + +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( pop ) +#endif + +/** The mesh to draw into the stencil (or depth) buffer to perform +* early stencil (or depth) kills of pixels that will never appear on the HMD. +* This mesh draws on all the pixels that will be hidden after distortion. +* +* If the HMD does not provide a visible area mesh pVertexData will be +* NULL and unTriangleCount will be 0. */ +struct HiddenAreaMesh_t +{ + const HmdVector2_t *pVertexData; + uint32_t unTriangleCount; +}; + + +enum EHiddenAreaMeshType +{ + k_eHiddenAreaMesh_Standard = 0, + k_eHiddenAreaMesh_Inverse = 1, + k_eHiddenAreaMesh_LineLoop = 2, + + k_eHiddenAreaMesh_Max = 3, +}; + + +/** Identifies what kind of axis is on the controller at index n. Read this type +* with pVRSystem->Get( nControllerDeviceIndex, Prop_Axis0Type_Int32 + n ); +*/ +enum EVRControllerAxisType +{ + k_eControllerAxis_None = 0, + k_eControllerAxis_TrackPad = 1, + k_eControllerAxis_Joystick = 2, + k_eControllerAxis_Trigger = 3, // Analog trigger data is in the X axis +}; + + +/** contains information about one axis on the controller */ +struct VRControllerAxis_t +{ + float x; // Ranges from -1.0 to 1.0 for joysticks and track pads. Ranges from 0.0 to 1.0 for triggers were 0 is fully released. + float y; // Ranges from -1.0 to 1.0 for joysticks and track pads. Is always 0.0 for triggers. +}; + + +/** the number of axes in the controller state */ +static const uint32_t k_unControllerStateAxisCount = 5; + + +#if defined(__linux__) || defined(__APPLE__) +// This structure was originally defined mis-packed on Linux, preserved for +// compatibility. +#pragma pack( push, 4 ) +#endif + +/** Holds all the state of a controller at one moment in time. */ +struct VRControllerState001_t +{ + // If packet num matches that on your prior call, then the controller state hasn't been changed since + // your last call and there is no need to process it + uint32_t unPacketNum; + + // bit flags for each of the buttons. Use ButtonMaskFromId to turn an ID into a mask + uint64_t ulButtonPressed; + uint64_t ulButtonTouched; + + // Axis data for the controller's analog inputs + VRControllerAxis_t rAxis[ k_unControllerStateAxisCount ]; +}; +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( pop ) +#endif + + +typedef VRControllerState001_t VRControllerState_t; + + +/** determines how to provide output to the application of various event processing functions. */ +enum EVRControllerEventOutputType +{ + ControllerEventOutput_OSEvents = 0, + ControllerEventOutput_VREvents = 1, +}; + + + +/** Collision Bounds Style */ +enum ECollisionBoundsStyle +{ + COLLISION_BOUNDS_STYLE_BEGINNER = 0, + COLLISION_BOUNDS_STYLE_INTERMEDIATE, + COLLISION_BOUNDS_STYLE_SQUARES, + COLLISION_BOUNDS_STYLE_ADVANCED, + COLLISION_BOUNDS_STYLE_NONE, + + COLLISION_BOUNDS_STYLE_COUNT +}; + +/** Allows the application to customize how the overlay appears in the compositor */ +struct Compositor_OverlaySettings +{ + uint32_t size; // sizeof(Compositor_OverlaySettings) + bool curved, antialias; + float scale, distance, alpha; + float uOffset, vOffset, uScale, vScale; + float gridDivs, gridWidth, gridScale; + HmdMatrix44_t transform; +}; + +/** used to refer to a single VR overlay */ +typedef uint64_t VROverlayHandle_t; + +static const VROverlayHandle_t k_ulOverlayHandleInvalid = 0; + +/** Errors that can occur around VR overlays */ +enum EVROverlayError +{ + VROverlayError_None = 0, + + VROverlayError_UnknownOverlay = 10, + VROverlayError_InvalidHandle = 11, + VROverlayError_PermissionDenied = 12, + VROverlayError_OverlayLimitExceeded = 13, // No more overlays could be created because the maximum number already exist + VROverlayError_WrongVisibilityType = 14, + VROverlayError_KeyTooLong = 15, + VROverlayError_NameTooLong = 16, + VROverlayError_KeyInUse = 17, + VROverlayError_WrongTransformType = 18, + VROverlayError_InvalidTrackedDevice = 19, + VROverlayError_InvalidParameter = 20, + VROverlayError_ThumbnailCantBeDestroyed = 21, + VROverlayError_ArrayTooSmall = 22, + VROverlayError_RequestFailed = 23, + VROverlayError_InvalidTexture = 24, + VROverlayError_UnableToLoadFile = 25, + VROverlayError_KeyboardAlreadyInUse = 26, + VROverlayError_NoNeighbor = 27, + VROverlayError_TooManyMaskPrimitives = 29, + VROverlayError_BadMaskPrimitive = 30, +}; + +/** enum values to pass in to VR_Init to identify whether the application will +* draw a 3D scene. */ +enum EVRApplicationType +{ + VRApplication_Other = 0, // Some other kind of application that isn't covered by the other entries + VRApplication_Scene = 1, // Application will submit 3D frames + VRApplication_Overlay = 2, // Application only interacts with overlays + VRApplication_Background = 3, // Application should not start SteamVR if it's not already running, and should not + // keep it running if everything else quits. + VRApplication_Utility = 4, // Init should not try to load any drivers. The application needs access to utility + // interfaces (like IVRSettings and IVRApplications) but not hardware. + VRApplication_VRMonitor = 5, // Reserved for vrmonitor + VRApplication_SteamWatchdog = 6,// Reserved for Steam + VRApplication_Bootstrapper = 7, // Start up SteamVR + + VRApplication_Max +}; + + +/** error codes for firmware */ +enum EVRFirmwareError +{ + VRFirmwareError_None = 0, + VRFirmwareError_Success = 1, + VRFirmwareError_Fail = 2, +}; + + +/** error codes for notifications */ +enum EVRNotificationError +{ + VRNotificationError_OK = 0, + VRNotificationError_InvalidNotificationId = 100, + VRNotificationError_NotificationQueueFull = 101, + VRNotificationError_InvalidOverlayHandle = 102, + VRNotificationError_SystemWithUserValueAlreadyExists = 103, +}; + + +/** error codes returned by Vr_Init */ + +// Please add adequate error description to https://developer.valvesoftware.com/w/index.php?title=Category:SteamVRHelp +enum EVRInitError +{ + VRInitError_None = 0, + VRInitError_Unknown = 1, + + VRInitError_Init_InstallationNotFound = 100, + VRInitError_Init_InstallationCorrupt = 101, + VRInitError_Init_VRClientDLLNotFound = 102, + VRInitError_Init_FileNotFound = 103, + VRInitError_Init_FactoryNotFound = 104, + VRInitError_Init_InterfaceNotFound = 105, + VRInitError_Init_InvalidInterface = 106, + VRInitError_Init_UserConfigDirectoryInvalid = 107, + VRInitError_Init_HmdNotFound = 108, + VRInitError_Init_NotInitialized = 109, + VRInitError_Init_PathRegistryNotFound = 110, + VRInitError_Init_NoConfigPath = 111, + VRInitError_Init_NoLogPath = 112, + VRInitError_Init_PathRegistryNotWritable = 113, + VRInitError_Init_AppInfoInitFailed = 114, + VRInitError_Init_Retry = 115, // Used internally to cause retries to vrserver + VRInitError_Init_InitCanceledByUser = 116, // The calling application should silently exit. The user canceled app startup + VRInitError_Init_AnotherAppLaunching = 117, + VRInitError_Init_SettingsInitFailed = 118, + VRInitError_Init_ShuttingDown = 119, + VRInitError_Init_TooManyObjects = 120, + VRInitError_Init_NoServerForBackgroundApp = 121, + VRInitError_Init_NotSupportedWithCompositor = 122, + VRInitError_Init_NotAvailableToUtilityApps = 123, + VRInitError_Init_Internal = 124, + VRInitError_Init_HmdDriverIdIsNone = 125, + VRInitError_Init_HmdNotFoundPresenceFailed = 126, + VRInitError_Init_VRMonitorNotFound = 127, + VRInitError_Init_VRMonitorStartupFailed = 128, + VRInitError_Init_LowPowerWatchdogNotSupported = 129, + VRInitError_Init_InvalidApplicationType = 130, + VRInitError_Init_NotAvailableToWatchdogApps = 131, + VRInitError_Init_WatchdogDisabledInSettings = 132, + VRInitError_Init_VRDashboardNotFound = 133, + VRInitError_Init_VRDashboardStartupFailed = 134, + VRInitError_Init_VRHomeNotFound = 135, + VRInitError_Init_VRHomeStartupFailed = 136, + + VRInitError_Driver_Failed = 200, + VRInitError_Driver_Unknown = 201, + VRInitError_Driver_HmdUnknown = 202, + VRInitError_Driver_NotLoaded = 203, + VRInitError_Driver_RuntimeOutOfDate = 204, + VRInitError_Driver_HmdInUse = 205, + VRInitError_Driver_NotCalibrated = 206, + VRInitError_Driver_CalibrationInvalid = 207, + VRInitError_Driver_HmdDisplayNotFound = 208, + VRInitError_Driver_TrackedDeviceInterfaceUnknown = 209, + // VRInitError_Driver_HmdDisplayNotFoundAfterFix = 210, // not needed: here for historic reasons + VRInitError_Driver_HmdDriverIdOutOfBounds = 211, + VRInitError_Driver_HmdDisplayMirrored = 212, + + VRInitError_IPC_ServerInitFailed = 300, + VRInitError_IPC_ConnectFailed = 301, + VRInitError_IPC_SharedStateInitFailed = 302, + VRInitError_IPC_CompositorInitFailed = 303, + VRInitError_IPC_MutexInitFailed = 304, + VRInitError_IPC_Failed = 305, + VRInitError_IPC_CompositorConnectFailed = 306, + VRInitError_IPC_CompositorInvalidConnectResponse = 307, + VRInitError_IPC_ConnectFailedAfterMultipleAttempts = 308, + + VRInitError_Compositor_Failed = 400, + VRInitError_Compositor_D3D11HardwareRequired = 401, + VRInitError_Compositor_FirmwareRequiresUpdate = 402, + VRInitError_Compositor_OverlayInitFailed = 403, + VRInitError_Compositor_ScreenshotsInitFailed = 404, + VRInitError_Compositor_UnableToCreateDevice = 405, + + VRInitError_VendorSpecific_UnableToConnectToOculusRuntime = 1000, + + VRInitError_VendorSpecific_HmdFound_CantOpenDevice = 1101, + VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102, + VRInitError_VendorSpecific_HmdFound_NoStoredConfig = 1103, + VRInitError_VendorSpecific_HmdFound_ConfigTooBig = 1104, + VRInitError_VendorSpecific_HmdFound_ConfigTooSmall = 1105, + VRInitError_VendorSpecific_HmdFound_UnableToInitZLib = 1106, + VRInitError_VendorSpecific_HmdFound_CantReadFirmwareVersion = 1107, + VRInitError_VendorSpecific_HmdFound_UnableToSendUserDataStart = 1108, + VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataStart = 1109, + VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataNext = 1110, + VRInitError_VendorSpecific_HmdFound_UserDataAddressRange = 1111, + VRInitError_VendorSpecific_HmdFound_UserDataError = 1112, + VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck = 1113, + + VRInitError_Steam_SteamInstallationNotFound = 2000, +}; + +enum EVRScreenshotType +{ + VRScreenshotType_None = 0, + VRScreenshotType_Mono = 1, // left eye only + VRScreenshotType_Stereo = 2, + VRScreenshotType_Cubemap = 3, + VRScreenshotType_MonoPanorama = 4, + VRScreenshotType_StereoPanorama = 5 +}; + +enum EVRScreenshotPropertyFilenames +{ + VRScreenshotPropertyFilenames_Preview = 0, + VRScreenshotPropertyFilenames_VR = 1, +}; + +enum EVRTrackedCameraError +{ + VRTrackedCameraError_None = 0, + VRTrackedCameraError_OperationFailed = 100, + VRTrackedCameraError_InvalidHandle = 101, + VRTrackedCameraError_InvalidFrameHeaderVersion = 102, + VRTrackedCameraError_OutOfHandles = 103, + VRTrackedCameraError_IPCFailure = 104, + VRTrackedCameraError_NotSupportedForThisDevice = 105, + VRTrackedCameraError_SharedMemoryFailure = 106, + VRTrackedCameraError_FrameBufferingFailure = 107, + VRTrackedCameraError_StreamSetupFailure = 108, + VRTrackedCameraError_InvalidGLTextureId = 109, + VRTrackedCameraError_InvalidSharedTextureHandle = 110, + VRTrackedCameraError_FailedToGetGLTextureId = 111, + VRTrackedCameraError_SharedTextureFailure = 112, + VRTrackedCameraError_NoFrameAvailable = 113, + VRTrackedCameraError_InvalidArgument = 114, + VRTrackedCameraError_InvalidFrameBufferSize = 115, +}; + +enum EVRTrackedCameraFrameType +{ + VRTrackedCameraFrameType_Distorted = 0, // This is the camera video frame size in pixels, still distorted. + VRTrackedCameraFrameType_Undistorted, // In pixels, an undistorted inscribed rectangle region without invalid regions. This size is subject to changes shortly. + VRTrackedCameraFrameType_MaximumUndistorted, // In pixels, maximum undistorted with invalid regions. Non zero alpha component identifies valid regions. + MAX_CAMERA_FRAME_TYPES +}; + +typedef uint64_t TrackedCameraHandle_t; +#define INVALID_TRACKED_CAMERA_HANDLE ((vr::TrackedCameraHandle_t)0) + +struct CameraVideoStreamFrameHeader_t +{ + EVRTrackedCameraFrameType eFrameType; + + uint32_t nWidth; + uint32_t nHeight; + uint32_t nBytesPerPixel; + + uint32_t nFrameSequence; + + TrackedDevicePose_t standingTrackedDevicePose; +}; + +// Screenshot types +typedef uint32_t ScreenshotHandle_t; + +static const uint32_t k_unScreenshotHandleInvalid = 0; + +#pragma pack( pop ) + +// figure out how to import from the VR API dll +#if defined(_WIN32) + +#ifdef VR_API_EXPORT +#define VR_INTERFACE extern "C" __declspec( dllexport ) +#else +#define VR_INTERFACE extern "C" __declspec( dllimport ) +#endif + +#elif defined(__GNUC__) || defined(COMPILER_GCC) || defined(__APPLE__) + +#ifdef VR_API_EXPORT +#define VR_INTERFACE extern "C" __attribute__((visibility("default"))) +#else +#define VR_INTERFACE extern "C" +#endif + +#else +#error "Unsupported Platform." +#endif + + +#if defined( _WIN32 ) +#define VR_CALLTYPE __cdecl +#else +#define VR_CALLTYPE +#endif + +} // namespace vr + +#endif // _INCLUDE_VRTYPES_H + + +// vrannotation.h +#ifdef API_GEN +# define VR_CLANG_ATTR(ATTR) __attribute__((annotate( ATTR ))) +#else +# define VR_CLANG_ATTR(ATTR) +#endif + +#define VR_METHOD_DESC(DESC) VR_CLANG_ATTR( "desc:" #DESC ";" ) +#define VR_IGNOREATTR() VR_CLANG_ATTR( "ignore" ) +#define VR_OUT_STRUCT() VR_CLANG_ATTR( "out_struct: ;" ) +#define VR_OUT_STRING() VR_CLANG_ATTR( "out_string: ;" ) +#define VR_OUT_ARRAY_CALL(COUNTER,FUNCTION,PARAMS) VR_CLANG_ATTR( "out_array_call:" #COUNTER "," #FUNCTION "," #PARAMS ";" ) +#define VR_OUT_ARRAY_COUNT(COUNTER) VR_CLANG_ATTR( "out_array_count:" #COUNTER ";" ) +#define VR_ARRAY_COUNT(COUNTER) VR_CLANG_ATTR( "array_count:" #COUNTER ";" ) +#define VR_ARRAY_COUNT_D(COUNTER, DESC) VR_CLANG_ATTR( "array_count:" #COUNTER ";desc:" #DESC ) +#define VR_BUFFER_COUNT(COUNTER) VR_CLANG_ATTR( "buffer_count:" #COUNTER ";" ) +#define VR_OUT_BUFFER_COUNT(COUNTER) VR_CLANG_ATTR( "out_buffer_count:" #COUNTER ";" ) +#define VR_OUT_STRING_COUNT(COUNTER) VR_CLANG_ATTR( "out_string_count:" #COUNTER ";" ) + +// ivrsystem.h +namespace vr +{ + +class IVRSystem +{ +public: + + + // ------------------------------------ + // Display Methods + // ------------------------------------ + + /** Suggested size for the intermediate render target that the distortion pulls from. */ + virtual void GetRecommendedRenderTargetSize( uint32_t *pnWidth, uint32_t *pnHeight ) = 0; + + /** The projection matrix for the specified eye */ + virtual HmdMatrix44_t GetProjectionMatrix( EVREye eEye, float fNearZ, float fFarZ ) = 0; + + /** The components necessary to build your own projection matrix in case your + * application is doing something fancy like infinite Z */ + virtual void GetProjectionRaw( EVREye eEye, float *pfLeft, float *pfRight, float *pfTop, float *pfBottom ) = 0; + + /** Gets the result of the distortion function for the specified eye and input UVs. UVs go from 0,0 in + * the upper left of that eye's viewport and 1,1 in the lower right of that eye's viewport. + * Returns true for success. Otherwise, returns false, and distortion coordinates are not suitable. */ + virtual bool ComputeDistortion( EVREye eEye, float fU, float fV, DistortionCoordinates_t *pDistortionCoordinates ) = 0; + + /** Returns the transform from eye space to the head space. Eye space is the per-eye flavor of head + * space that provides stereo disparity. Instead of Model * View * Projection the sequence is Model * View * Eye^-1 * Projection. + * Normally View and Eye^-1 will be multiplied together and treated as View in your application. + */ + virtual HmdMatrix34_t GetEyeToHeadTransform( EVREye eEye ) = 0; + + /** Returns the number of elapsed seconds since the last recorded vsync event. This + * will come from a vsync timer event in the timer if possible or from the application-reported + * time if that is not available. If no vsync times are available the function will + * return zero for vsync time and frame counter and return false from the method. */ + virtual bool GetTimeSinceLastVsync( float *pfSecondsSinceLastVsync, uint64_t *pulFrameCounter ) = 0; + + /** [D3D9 Only] + * Returns the adapter index that the user should pass into CreateDevice to set up D3D9 in such + * a way that it can go full screen exclusive on the HMD. Returns -1 if there was an error. + */ + virtual int32_t GetD3D9AdapterIndex() = 0; + + /** [D3D10/11 Only] + * Returns the adapter index that the user should pass into EnumAdapters to create the device + * and swap chain in DX10 and DX11. If an error occurs the index will be set to -1. + */ + virtual void GetDXGIOutputInfo( int32_t *pnAdapterIndex ) = 0; + + /** + * Returns platform- and texture-type specific adapter identification so that applications and the + * compositor are creating textures and swap chains on the same GPU. If an error occurs the device + * will be set to 0. + * [D3D10/11/12 Only (D3D9 Not Supported)] + * Returns the adapter LUID that identifies the GPU attached to the HMD. The user should + * enumerate all adapters using IDXGIFactory::EnumAdapters and IDXGIAdapter::GetDesc to find + * the adapter with the matching LUID, or use IDXGIFactory4::EnumAdapterByLuid. + * The discovered IDXGIAdapter should be used to create the device and swap chain. + * [Vulkan Only] + * Returns the vk::PhysicalDevice that should be used by the application. + * [macOS Only] + * Returns an id that should be used by the application. + */ + virtual void GetOutputDevice( uint64_t *pnDevice, ETextureType textureType ) = 0; + + // ------------------------------------ + // Display Mode methods + // ------------------------------------ + + /** Use to determine if the headset display is part of the desktop (i.e. extended) or hidden (i.e. direct mode). */ + virtual bool IsDisplayOnDesktop() = 0; + + /** Set the display visibility (true = extended, false = direct mode). Return value of true indicates that the change was successful. */ + virtual bool SetDisplayVisibility( bool bIsVisibleOnDesktop ) = 0; + + // ------------------------------------ + // Tracking Methods + // ------------------------------------ + + /** The pose that the tracker thinks that the HMD will be in at the specified number of seconds into the + * future. Pass 0 to get the state at the instant the method is called. Most of the time the application should + * calculate the time until the photons will be emitted from the display and pass that time into the method. + * + * This is roughly analogous to the inverse of the view matrix in most applications, though + * many games will need to do some additional rotation or translation on top of the rotation + * and translation provided by the head pose. + * + * For devices where bPoseIsValid is true the application can use the pose to position the device + * in question. The provided array can be any size up to k_unMaxTrackedDeviceCount. + * + * Seated experiences should call this method with TrackingUniverseSeated and receive poses relative + * to the seated zero pose. Standing experiences should call this method with TrackingUniverseStanding + * and receive poses relative to the Chaperone Play Area. TrackingUniverseRawAndUncalibrated should + * probably not be used unless the application is the Chaperone calibration tool itself, but will provide + * poses relative to the hardware-specific coordinate system in the driver. + */ + virtual void GetDeviceToAbsoluteTrackingPose( ETrackingUniverseOrigin eOrigin, float fPredictedSecondsToPhotonsFromNow, VR_ARRAY_COUNT(unTrackedDevicePoseArrayCount) TrackedDevicePose_t *pTrackedDevicePoseArray, uint32_t unTrackedDevicePoseArrayCount ) = 0; + + /** Sets the zero pose for the seated tracker coordinate system to the current position and yaw of the HMD. After + * ResetSeatedZeroPose all GetDeviceToAbsoluteTrackingPose calls that pass TrackingUniverseSeated as the origin + * will be relative to this new zero pose. The new zero coordinate system will not change the fact that the Y axis + * is up in the real world, so the next pose returned from GetDeviceToAbsoluteTrackingPose after a call to + * ResetSeatedZeroPose may not be exactly an identity matrix. + * + * NOTE: This function overrides the user's previously saved seated zero pose and should only be called as the result of a user action. + * Users are also able to set their seated zero pose via the OpenVR Dashboard. + **/ + virtual void ResetSeatedZeroPose() = 0; + + /** Returns the transform from the seated zero pose to the standing absolute tracking system. This allows + * applications to represent the seated origin to used or transform object positions from one coordinate + * system to the other. + * + * The seated origin may or may not be inside the Play Area or Collision Bounds returned by IVRChaperone. Its position + * depends on what the user has set from the Dashboard settings and previous calls to ResetSeatedZeroPose. */ + virtual HmdMatrix34_t GetSeatedZeroPoseToStandingAbsoluteTrackingPose() = 0; + + /** Returns the transform from the tracking origin to the standing absolute tracking system. This allows + * applications to convert from raw tracking space to the calibrated standing coordinate system. */ + virtual HmdMatrix34_t GetRawZeroPoseToStandingAbsoluteTrackingPose() = 0; + + /** Get a sorted array of device indices of a given class of tracked devices (e.g. controllers). Devices are sorted right to left + * relative to the specified tracked device (default: hmd -- pass in -1 for absolute tracking space). Returns the number of devices + * in the list, or the size of the array needed if not large enough. */ + virtual uint32_t GetSortedTrackedDeviceIndicesOfClass( ETrackedDeviceClass eTrackedDeviceClass, VR_ARRAY_COUNT(unTrackedDeviceIndexArrayCount) vr::TrackedDeviceIndex_t *punTrackedDeviceIndexArray, uint32_t unTrackedDeviceIndexArrayCount, vr::TrackedDeviceIndex_t unRelativeToTrackedDeviceIndex = k_unTrackedDeviceIndex_Hmd ) = 0; + + /** Returns the level of activity on the device. */ + virtual EDeviceActivityLevel GetTrackedDeviceActivityLevel( vr::TrackedDeviceIndex_t unDeviceId ) = 0; + + /** Convenience utility to apply the specified transform to the specified pose. + * This properly transforms all pose components, including velocity and angular velocity + */ + virtual void ApplyTransform( TrackedDevicePose_t *pOutputPose, const TrackedDevicePose_t *pTrackedDevicePose, const HmdMatrix34_t *pTransform ) = 0; + + /** Returns the device index associated with a specific role, for example the left hand or the right hand. */ + virtual vr::TrackedDeviceIndex_t GetTrackedDeviceIndexForControllerRole( vr::ETrackedControllerRole unDeviceType ) = 0; + + /** Returns the controller type associated with a device index. */ + virtual vr::ETrackedControllerRole GetControllerRoleForTrackedDeviceIndex( vr::TrackedDeviceIndex_t unDeviceIndex ) = 0; + + // ------------------------------------ + // Property methods + // ------------------------------------ + + /** Returns the device class of a tracked device. If there has not been a device connected in this slot + * since the application started this function will return TrackedDevice_Invalid. For previous detected + * devices the function will return the previously observed device class. + * + * To determine which devices exist on the system, just loop from 0 to k_unMaxTrackedDeviceCount and check + * the device class. Every device with something other than TrackedDevice_Invalid is associated with an + * actual tracked device. */ + virtual ETrackedDeviceClass GetTrackedDeviceClass( vr::TrackedDeviceIndex_t unDeviceIndex ) = 0; + + /** Returns true if there is a device connected in this slot. */ + virtual bool IsTrackedDeviceConnected( vr::TrackedDeviceIndex_t unDeviceIndex ) = 0; + + /** Returns a bool property. If the device index is not valid or the property is not a bool type this function will return false. */ + virtual bool GetBoolTrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ) = 0; + + /** Returns a float property. If the device index is not valid or the property is not a float type this function will return 0. */ + virtual float GetFloatTrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ) = 0; + + /** Returns an int property. If the device index is not valid or the property is not a int type this function will return 0. */ + virtual int32_t GetInt32TrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ) = 0; + + /** Returns a uint64 property. If the device index is not valid or the property is not a uint64 type this function will return 0. */ + virtual uint64_t GetUint64TrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ) = 0; + + /** Returns a matrix property. If the device index is not valid or the property is not a matrix type, this function will return identity. */ + virtual HmdMatrix34_t GetMatrix34TrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ) = 0; + + /** Returns a string property. If the device index is not valid or the property is not a string type this function will + * return 0. Otherwise it returns the length of the number of bytes necessary to hold this string including the trailing + * null. Strings will always fit in buffers of k_unMaxPropertyStringSize characters. */ + virtual uint32_t GetStringTrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, ETrackedPropertyError *pError = 0L ) = 0; + + /** returns a string that corresponds with the specified property error. The string will be the name + * of the error enum value for all valid error codes */ + virtual const char *GetPropErrorNameFromEnum( ETrackedPropertyError error ) = 0; + + // ------------------------------------ + // Event methods + // ------------------------------------ + + /** Returns true and fills the event with the next event on the queue if there is one. If there are no events + * this method returns false. uncbVREvent should be the size in bytes of the VREvent_t struct */ + virtual bool PollNextEvent( VREvent_t *pEvent, uint32_t uncbVREvent ) = 0; + + /** Returns true and fills the event with the next event on the queue if there is one. If there are no events + * this method returns false. Fills in the pose of the associated tracked device in the provided pose struct. + * This pose will always be older than the call to this function and should not be used to render the device. + uncbVREvent should be the size in bytes of the VREvent_t struct */ + virtual bool PollNextEventWithPose( ETrackingUniverseOrigin eOrigin, VREvent_t *pEvent, uint32_t uncbVREvent, vr::TrackedDevicePose_t *pTrackedDevicePose ) = 0; + + /** returns the name of an EVREvent enum value */ + virtual const char *GetEventTypeNameFromEnum( EVREventType eType ) = 0; + + // ------------------------------------ + // Rendering helper methods + // ------------------------------------ + + /** Returns the hidden area mesh for the current HMD. The pixels covered by this mesh will never be seen by the user after the lens distortion is + * applied based on visibility to the panels. If this HMD does not have a hidden area mesh, the vertex data and count will be NULL and 0 respectively. + * This mesh is meant to be rendered into the stencil buffer (or into the depth buffer setting nearz) before rendering each eye's view. + * This will improve performance by letting the GPU early-reject pixels the user will never see before running the pixel shader. + * NOTE: Render this mesh with backface culling disabled since the winding order of the vertices can be different per-HMD or per-eye. + * Setting the bInverse argument to true will produce the visible area mesh that is commonly used in place of full-screen quads. The visible area mesh covers all of the pixels the hidden area mesh does not cover. + * Setting the bLineLoop argument will return a line loop of vertices in HiddenAreaMesh_t->pVertexData with HiddenAreaMesh_t->unTriangleCount set to the number of vertices. + */ + virtual HiddenAreaMesh_t GetHiddenAreaMesh( EVREye eEye, EHiddenAreaMeshType type = k_eHiddenAreaMesh_Standard ) = 0; + + // ------------------------------------ + // Controller methods + // ------------------------------------ + + /** Fills the supplied struct with the current state of the controller. Returns false if the controller index + * is invalid. */ + virtual bool GetControllerState( vr::TrackedDeviceIndex_t unControllerDeviceIndex, vr::VRControllerState_t *pControllerState, uint32_t unControllerStateSize ) = 0; + + /** fills the supplied struct with the current state of the controller and the provided pose with the pose of + * the controller when the controller state was updated most recently. Use this form if you need a precise controller + * pose as input to your application when the user presses or releases a button. */ + virtual bool GetControllerStateWithPose( ETrackingUniverseOrigin eOrigin, vr::TrackedDeviceIndex_t unControllerDeviceIndex, vr::VRControllerState_t *pControllerState, uint32_t unControllerStateSize, TrackedDevicePose_t *pTrackedDevicePose ) = 0; + + /** Trigger a single haptic pulse on a controller. After this call the application may not trigger another haptic pulse on this controller + * and axis combination for 5ms. */ + virtual void TriggerHapticPulse( vr::TrackedDeviceIndex_t unControllerDeviceIndex, uint32_t unAxisId, unsigned short usDurationMicroSec ) = 0; + + /** returns the name of an EVRButtonId enum value */ + virtual const char *GetButtonIdNameFromEnum( EVRButtonId eButtonId ) = 0; + + /** returns the name of an EVRControllerAxisType enum value */ + virtual const char *GetControllerAxisTypeNameFromEnum( EVRControllerAxisType eAxisType ) = 0; + + /** Tells OpenVR that this process wants exclusive access to controller button states and button events. Other apps will be notified that + * they have lost input focus with a VREvent_InputFocusCaptured event. Returns false if input focus could not be captured for + * some reason. */ + virtual bool CaptureInputFocus() = 0; + + /** Tells OpenVR that this process no longer wants exclusive access to button states and button events. Other apps will be notified + * that input focus has been released with a VREvent_InputFocusReleased event. */ + virtual void ReleaseInputFocus() = 0; + + /** Returns true if input focus is captured by another process. */ + virtual bool IsInputFocusCapturedByAnotherProcess() = 0; + + // ------------------------------------ + // Debug Methods + // ------------------------------------ + + /** Sends a request to the driver for the specified device and returns the response. The maximum response size is 32k, + * but this method can be called with a smaller buffer. If the response exceeds the size of the buffer, it is truncated. + * The size of the response including its terminating null is returned. */ + virtual uint32_t DriverDebugRequest( vr::TrackedDeviceIndex_t unDeviceIndex, const char *pchRequest, char *pchResponseBuffer, uint32_t unResponseBufferSize ) = 0; + + // ------------------------------------ + // Firmware methods + // ------------------------------------ + + /** Performs the actual firmware update if applicable. + * The following events will be sent, if VRFirmwareError_None was returned: VREvent_FirmwareUpdateStarted, VREvent_FirmwareUpdateFinished + * Use the properties Prop_Firmware_UpdateAvailable_Bool, Prop_Firmware_ManualUpdate_Bool, and Prop_Firmware_ManualUpdateURL_String + * to figure our whether a firmware update is available, and to figure out whether its a manual update + * Prop_Firmware_ManualUpdateURL_String should point to an URL describing the manual update process */ + virtual vr::EVRFirmwareError PerformFirmwareUpdate( vr::TrackedDeviceIndex_t unDeviceIndex ) = 0; + + // ------------------------------------ + // Application life cycle methods + // ------------------------------------ + + /** Call this to acknowledge to the system that VREvent_Quit has been received and that the process is exiting. + * This extends the timeout until the process is killed. */ + virtual void AcknowledgeQuit_Exiting() = 0; + + /** Call this to tell the system that the user is being prompted to save data. This + * halts the timeout and dismisses the dashboard (if it was up). Applications should be sure to actually + * prompt the user to save and then exit afterward, otherwise the user will be left in a confusing state. */ + virtual void AcknowledgeQuit_UserPrompt() = 0; + +}; + +static const char * const IVRSystem_Version = "IVRSystem_016"; + +} + + +// ivrapplications.h +namespace vr +{ + + /** Used for all errors reported by the IVRApplications interface */ + enum EVRApplicationError + { + VRApplicationError_None = 0, + + VRApplicationError_AppKeyAlreadyExists = 100, // Only one application can use any given key + VRApplicationError_NoManifest = 101, // the running application does not have a manifest + VRApplicationError_NoApplication = 102, // No application is running + VRApplicationError_InvalidIndex = 103, + VRApplicationError_UnknownApplication = 104, // the application could not be found + VRApplicationError_IPCFailed = 105, // An IPC failure caused the request to fail + VRApplicationError_ApplicationAlreadyRunning = 106, + VRApplicationError_InvalidManifest = 107, + VRApplicationError_InvalidApplication = 108, + VRApplicationError_LaunchFailed = 109, // the process didn't start + VRApplicationError_ApplicationAlreadyStarting = 110, // the system was already starting the same application + VRApplicationError_LaunchInProgress = 111, // The system was already starting a different application + VRApplicationError_OldApplicationQuitting = 112, + VRApplicationError_TransitionAborted = 113, + VRApplicationError_IsTemplate = 114, // error when you try to call LaunchApplication() on a template type app (use LaunchTemplateApplication) + + VRApplicationError_BufferTooSmall = 200, // The provided buffer was too small to fit the requested data + VRApplicationError_PropertyNotSet = 201, // The requested property was not set + VRApplicationError_UnknownProperty = 202, + VRApplicationError_InvalidParameter = 203, + }; + + /** The maximum length of an application key */ + static const uint32_t k_unMaxApplicationKeyLength = 128; + + /** these are the properties available on applications. */ + enum EVRApplicationProperty + { + VRApplicationProperty_Name_String = 0, + + VRApplicationProperty_LaunchType_String = 11, + VRApplicationProperty_WorkingDirectory_String = 12, + VRApplicationProperty_BinaryPath_String = 13, + VRApplicationProperty_Arguments_String = 14, + VRApplicationProperty_URL_String = 15, + + VRApplicationProperty_Description_String = 50, + VRApplicationProperty_NewsURL_String = 51, + VRApplicationProperty_ImagePath_String = 52, + VRApplicationProperty_Source_String = 53, + + VRApplicationProperty_IsDashboardOverlay_Bool = 60, + VRApplicationProperty_IsTemplate_Bool = 61, + VRApplicationProperty_IsInstanced_Bool = 62, + VRApplicationProperty_IsInternal_Bool = 63, + + VRApplicationProperty_LastLaunchTime_Uint64 = 70, + }; + + /** These are states the scene application startup process will go through. */ + enum EVRApplicationTransitionState + { + VRApplicationTransition_None = 0, + + VRApplicationTransition_OldAppQuitSent = 10, + VRApplicationTransition_WaitingForExternalLaunch = 11, + + VRApplicationTransition_NewAppLaunched = 20, + }; + + struct AppOverrideKeys_t + { + const char *pchKey; + const char *pchValue; + }; + + /** Currently recognized mime types */ + static const char * const k_pch_MimeType_HomeApp = "vr/home"; + static const char * const k_pch_MimeType_GameTheater = "vr/game_theater"; + + class IVRApplications + { + public: + + // --------------- Application management --------------- // + + /** Adds an application manifest to the list to load when building the list of installed applications. + * Temporary manifests are not automatically loaded */ + virtual EVRApplicationError AddApplicationManifest( const char *pchApplicationManifestFullPath, bool bTemporary = false ) = 0; + + /** Removes an application manifest from the list to load when building the list of installed applications. */ + virtual EVRApplicationError RemoveApplicationManifest( const char *pchApplicationManifestFullPath ) = 0; + + /** Returns true if an application is installed */ + virtual bool IsApplicationInstalled( const char *pchAppKey ) = 0; + + /** Returns the number of applications available in the list */ + virtual uint32_t GetApplicationCount() = 0; + + /** Returns the key of the specified application. The index is at least 0 and is less than the return + * value of GetApplicationCount(). The buffer should be at least k_unMaxApplicationKeyLength in order to + * fit the key. */ + virtual EVRApplicationError GetApplicationKeyByIndex( uint32_t unApplicationIndex, VR_OUT_STRING() char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen ) = 0; + + /** Returns the key of the application for the specified Process Id. The buffer should be at least + * k_unMaxApplicationKeyLength in order to fit the key. */ + virtual EVRApplicationError GetApplicationKeyByProcessId( uint32_t unProcessId, char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen ) = 0; + + /** Launches the application. The existing scene application will exit and then the new application will start. + * This call is not valid for dashboard overlay applications. */ + virtual EVRApplicationError LaunchApplication( const char *pchAppKey ) = 0; + + /** Launches an instance of an application of type template, with its app key being pchNewAppKey (which must be unique) and optionally override sections + * from the manifest file via AppOverrideKeys_t + */ + virtual EVRApplicationError LaunchTemplateApplication( const char *pchTemplateAppKey, const char *pchNewAppKey, VR_ARRAY_COUNT( unKeys ) const AppOverrideKeys_t *pKeys, uint32_t unKeys ) = 0; + + /** launches the application currently associated with this mime type and passes it the option args, typically the filename or object name of the item being launched */ + virtual vr::EVRApplicationError LaunchApplicationFromMimeType( const char *pchMimeType, const char *pchArgs ) = 0; + + /** Launches the dashboard overlay application if it is not already running. This call is only valid for + * dashboard overlay applications. */ + virtual EVRApplicationError LaunchDashboardOverlay( const char *pchAppKey ) = 0; + + /** Cancel a pending launch for an application */ + virtual bool CancelApplicationLaunch( const char *pchAppKey ) = 0; + + /** Identifies a running application. OpenVR can't always tell which process started in response + * to a URL. This function allows a URL handler (or the process itself) to identify the app key + * for the now running application. Passing a process ID of 0 identifies the calling process. + * The application must be one that's known to the system via a call to AddApplicationManifest. */ + virtual EVRApplicationError IdentifyApplication( uint32_t unProcessId, const char *pchAppKey ) = 0; + + /** Returns the process ID for an application. Return 0 if the application was not found or is not running. */ + virtual uint32_t GetApplicationProcessId( const char *pchAppKey ) = 0; + + /** Returns a string for an applications error */ + virtual const char *GetApplicationsErrorNameFromEnum( EVRApplicationError error ) = 0; + + // --------------- Application properties --------------- // + + /** Returns a value for an application property. The required buffer size to fit this value will be returned. */ + virtual uint32_t GetApplicationPropertyString( const char *pchAppKey, EVRApplicationProperty eProperty, VR_OUT_STRING() char *pchPropertyValueBuffer, uint32_t unPropertyValueBufferLen, EVRApplicationError *peError = nullptr ) = 0; + + /** Returns a bool value for an application property. Returns false in all error cases. */ + virtual bool GetApplicationPropertyBool( const char *pchAppKey, EVRApplicationProperty eProperty, EVRApplicationError *peError = nullptr ) = 0; + + /** Returns a uint64 value for an application property. Returns 0 in all error cases. */ + virtual uint64_t GetApplicationPropertyUint64( const char *pchAppKey, EVRApplicationProperty eProperty, EVRApplicationError *peError = nullptr ) = 0; + + /** Sets the application auto-launch flag. This is only valid for applications which return true for VRApplicationProperty_IsDashboardOverlay_Bool. */ + virtual EVRApplicationError SetApplicationAutoLaunch( const char *pchAppKey, bool bAutoLaunch ) = 0; + + /** Gets the application auto-launch flag. This is only valid for applications which return true for VRApplicationProperty_IsDashboardOverlay_Bool. */ + virtual bool GetApplicationAutoLaunch( const char *pchAppKey ) = 0; + + /** Adds this mime-type to the list of supported mime types for this application*/ + virtual EVRApplicationError SetDefaultApplicationForMimeType( const char *pchAppKey, const char *pchMimeType ) = 0; + + /** return the app key that will open this mime type */ + virtual bool GetDefaultApplicationForMimeType( const char *pchMimeType, char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen ) = 0; + + /** Get the list of supported mime types for this application, comma-delimited */ + virtual bool GetApplicationSupportedMimeTypes( const char *pchAppKey, char *pchMimeTypesBuffer, uint32_t unMimeTypesBuffer ) = 0; + + /** Get the list of app-keys that support this mime type, comma-delimited, the return value is number of bytes you need to return the full string */ + virtual uint32_t GetApplicationsThatSupportMimeType( const char *pchMimeType, char *pchAppKeysThatSupportBuffer, uint32_t unAppKeysThatSupportBuffer ) = 0; + + /** Get the args list from an app launch that had the process already running, you call this when you get a VREvent_ApplicationMimeTypeLoad */ + virtual uint32_t GetApplicationLaunchArguments( uint32_t unHandle, char *pchArgs, uint32_t unArgs ) = 0; + + // --------------- Transition methods --------------- // + + /** Returns the app key for the application that is starting up */ + virtual EVRApplicationError GetStartingApplication( char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen ) = 0; + + /** Returns the application transition state */ + virtual EVRApplicationTransitionState GetTransitionState() = 0; + + /** Returns errors that would prevent the specified application from launching immediately. Calling this function will + * cause the current scene application to quit, so only call it when you are actually about to launch something else. + * What the caller should do about these failures depends on the failure: + * VRApplicationError_OldApplicationQuitting - An existing application has been told to quit. Wait for a VREvent_ProcessQuit + * and try again. + * VRApplicationError_ApplicationAlreadyStarting - This application is already starting. This is a permanent failure. + * VRApplicationError_LaunchInProgress - A different application is already starting. This is a permanent failure. + * VRApplicationError_None - Go ahead and launch. Everything is clear. + */ + virtual EVRApplicationError PerformApplicationPrelaunchCheck( const char *pchAppKey ) = 0; + + /** Returns a string for an application transition state */ + virtual const char *GetApplicationsTransitionStateNameFromEnum( EVRApplicationTransitionState state ) = 0; + + /** Returns true if the outgoing scene app has requested a save prompt before exiting */ + virtual bool IsQuitUserPromptRequested() = 0; + + /** Starts a subprocess within the calling application. This + * suppresses all application transition UI and automatically identifies the new executable + * as part of the same application. On success the calling process should exit immediately. + * If working directory is NULL or "" the directory portion of the binary path will be + * the working directory. */ + virtual EVRApplicationError LaunchInternalProcess( const char *pchBinaryPath, const char *pchArguments, const char *pchWorkingDirectory ) = 0; + + /** Returns the current scene process ID according to the application system. A scene process will get scene + * focus once it starts rendering, but it will appear here once it calls VR_Init with the Scene application + * type. */ + virtual uint32_t GetCurrentSceneProcessId() = 0; + }; + + static const char * const IVRApplications_Version = "IVRApplications_006"; + +} // namespace vr + +// ivrsettings.h +namespace vr +{ + enum EVRSettingsError + { + VRSettingsError_None = 0, + VRSettingsError_IPCFailed = 1, + VRSettingsError_WriteFailed = 2, + VRSettingsError_ReadFailed = 3, + VRSettingsError_JsonParseFailed = 4, + VRSettingsError_UnsetSettingHasNoDefault = 5, // This will be returned if the setting does not appear in the appropriate default file and has not been set + }; + + // The maximum length of a settings key + static const uint32_t k_unMaxSettingsKeyLength = 128; + + class IVRSettings + { + public: + virtual const char *GetSettingsErrorNameFromEnum( EVRSettingsError eError ) = 0; + + // Returns true if file sync occurred (force or settings dirty) + virtual bool Sync( bool bForce = false, EVRSettingsError *peError = nullptr ) = 0; + + virtual void SetBool( const char *pchSection, const char *pchSettingsKey, bool bValue, EVRSettingsError *peError = nullptr ) = 0; + virtual void SetInt32( const char *pchSection, const char *pchSettingsKey, int32_t nValue, EVRSettingsError *peError = nullptr ) = 0; + virtual void SetFloat( const char *pchSection, const char *pchSettingsKey, float flValue, EVRSettingsError *peError = nullptr ) = 0; + virtual void SetString( const char *pchSection, const char *pchSettingsKey, const char *pchValue, EVRSettingsError *peError = nullptr ) = 0; + + // Users of the system need to provide a proper default in default.vrsettings in the resources/settings/ directory + // of either the runtime or the driver_xxx directory. Otherwise the default will be false, 0, 0.0 or "" + virtual bool GetBool( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0; + virtual int32_t GetInt32( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0; + virtual float GetFloat( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0; + virtual void GetString( const char *pchSection, const char *pchSettingsKey, VR_OUT_STRING() char *pchValue, uint32_t unValueLen, EVRSettingsError *peError = nullptr ) = 0; + + virtual void RemoveSection( const char *pchSection, EVRSettingsError *peError = nullptr ) = 0; + virtual void RemoveKeyInSection( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0; + }; + + //----------------------------------------------------------------------------- + static const char * const IVRSettings_Version = "IVRSettings_002"; + + //----------------------------------------------------------------------------- + // steamvr keys + static const char * const k_pch_SteamVR_Section = "steamvr"; + static const char * const k_pch_SteamVR_RequireHmd_String = "requireHmd"; + static const char * const k_pch_SteamVR_ForcedDriverKey_String = "forcedDriver"; + static const char * const k_pch_SteamVR_ForcedHmdKey_String = "forcedHmd"; + static const char * const k_pch_SteamVR_DisplayDebug_Bool = "displayDebug"; + static const char * const k_pch_SteamVR_DebugProcessPipe_String = "debugProcessPipe"; + static const char * const k_pch_SteamVR_DisplayDebugX_Int32 = "displayDebugX"; + static const char * const k_pch_SteamVR_DisplayDebugY_Int32 = "displayDebugY"; + static const char * const k_pch_SteamVR_SendSystemButtonToAllApps_Bool= "sendSystemButtonToAllApps"; + static const char * const k_pch_SteamVR_LogLevel_Int32 = "loglevel"; + static const char * const k_pch_SteamVR_IPD_Float = "ipd"; + static const char * const k_pch_SteamVR_Background_String = "background"; + static const char * const k_pch_SteamVR_BackgroundUseDomeProjection_Bool = "backgroundUseDomeProjection"; + static const char * const k_pch_SteamVR_BackgroundCameraHeight_Float = "backgroundCameraHeight"; + static const char * const k_pch_SteamVR_BackgroundDomeRadius_Float = "backgroundDomeRadius"; + static const char * const k_pch_SteamVR_GridColor_String = "gridColor"; + static const char * const k_pch_SteamVR_PlayAreaColor_String = "playAreaColor"; + static const char * const k_pch_SteamVR_ShowStage_Bool = "showStage"; + static const char * const k_pch_SteamVR_ActivateMultipleDrivers_Bool = "activateMultipleDrivers"; + static const char * const k_pch_SteamVR_DirectMode_Bool = "directMode"; + static const char * const k_pch_SteamVR_DirectModeEdidVid_Int32 = "directModeEdidVid"; + static const char * const k_pch_SteamVR_DirectModeEdidPid_Int32 = "directModeEdidPid"; + static const char * const k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers"; + static const char * const k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees"; + static const char * const k_pch_SteamVR_BaseStationPowerManagement_Bool = "basestationPowerManagement"; + static const char * const k_pch_SteamVR_NeverKillProcesses_Bool = "neverKillProcesses"; + static const char * const k_pch_SteamVR_SupersampleScale_Float = "supersampleScale"; + static const char * const k_pch_SteamVR_AllowAsyncReprojection_Bool = "allowAsyncReprojection"; + static const char * const k_pch_SteamVR_AllowReprojection_Bool = "allowInterleavedReprojection"; + static const char * const k_pch_SteamVR_ForceReprojection_Bool = "forceReprojection"; + static const char * const k_pch_SteamVR_ForceFadeOnBadTracking_Bool = "forceFadeOnBadTracking"; + static const char * const k_pch_SteamVR_DefaultMirrorView_Int32 = "defaultMirrorView"; + static const char * const k_pch_SteamVR_ShowMirrorView_Bool = "showMirrorView"; + static const char * const k_pch_SteamVR_MirrorViewGeometry_String = "mirrorViewGeometry"; + static const char * const k_pch_SteamVR_StartMonitorFromAppLaunch = "startMonitorFromAppLaunch"; + static const char * const k_pch_SteamVR_StartCompositorFromAppLaunch_Bool = "startCompositorFromAppLaunch"; + static const char * const k_pch_SteamVR_StartDashboardFromAppLaunch_Bool = "startDashboardFromAppLaunch"; + static const char * const k_pch_SteamVR_StartOverlayAppsFromDashboard_Bool = "startOverlayAppsFromDashboard"; + static const char * const k_pch_SteamVR_EnableHomeApp = "enableHomeApp"; + static const char * const k_pch_SteamVR_CycleBackgroundImageTimeSec_Int32 = "CycleBackgroundImageTimeSec"; + static const char * const k_pch_SteamVR_RetailDemo_Bool = "retailDemo"; + static const char * const k_pch_SteamVR_IpdOffset_Float = "ipdOffset"; + static const char * const k_pch_SteamVR_AllowSupersampleFiltering_Bool = "allowSupersampleFiltering"; + + //----------------------------------------------------------------------------- + // lighthouse keys + static const char * const k_pch_Lighthouse_Section = "driver_lighthouse"; + static const char * const k_pch_Lighthouse_DisableIMU_Bool = "disableimu"; + static const char * const k_pch_Lighthouse_UseDisambiguation_String = "usedisambiguation"; + static const char * const k_pch_Lighthouse_DisambiguationDebug_Int32 = "disambiguationdebug"; + static const char * const k_pch_Lighthouse_PrimaryBasestation_Int32 = "primarybasestation"; + static const char * const k_pch_Lighthouse_DBHistory_Bool = "dbhistory"; + + //----------------------------------------------------------------------------- + // null keys + static const char * const k_pch_Null_Section = "driver_null"; + static const char * const k_pch_Null_SerialNumber_String = "serialNumber"; + static const char * const k_pch_Null_ModelNumber_String = "modelNumber"; + static const char * const k_pch_Null_WindowX_Int32 = "windowX"; + static const char * const k_pch_Null_WindowY_Int32 = "windowY"; + static const char * const k_pch_Null_WindowWidth_Int32 = "windowWidth"; + static const char * const k_pch_Null_WindowHeight_Int32 = "windowHeight"; + static const char * const k_pch_Null_RenderWidth_Int32 = "renderWidth"; + static const char * const k_pch_Null_RenderHeight_Int32 = "renderHeight"; + static const char * const k_pch_Null_SecondsFromVsyncToPhotons_Float = "secondsFromVsyncToPhotons"; + static const char * const k_pch_Null_DisplayFrequency_Float = "displayFrequency"; + + //----------------------------------------------------------------------------- + // user interface keys + static const char * const k_pch_UserInterface_Section = "userinterface"; + static const char * const k_pch_UserInterface_StatusAlwaysOnTop_Bool = "StatusAlwaysOnTop"; + static const char * const k_pch_UserInterface_MinimizeToTray_Bool = "MinimizeToTray"; + static const char * const k_pch_UserInterface_Screenshots_Bool = "screenshots"; + static const char * const k_pch_UserInterface_ScreenshotType_Int = "screenshotType"; + + //----------------------------------------------------------------------------- + // notification keys + static const char * const k_pch_Notifications_Section = "notifications"; + static const char * const k_pch_Notifications_DoNotDisturb_Bool = "DoNotDisturb"; + + //----------------------------------------------------------------------------- + // keyboard keys + static const char * const k_pch_Keyboard_Section = "keyboard"; + static const char * const k_pch_Keyboard_TutorialCompletions = "TutorialCompletions"; + static const char * const k_pch_Keyboard_ScaleX = "ScaleX"; + static const char * const k_pch_Keyboard_ScaleY = "ScaleY"; + static const char * const k_pch_Keyboard_OffsetLeftX = "OffsetLeftX"; + static const char * const k_pch_Keyboard_OffsetRightX = "OffsetRightX"; + static const char * const k_pch_Keyboard_OffsetY = "OffsetY"; + static const char * const k_pch_Keyboard_Smoothing = "Smoothing"; + + //----------------------------------------------------------------------------- + // perf keys + static const char * const k_pch_Perf_Section = "perfcheck"; + static const char * const k_pch_Perf_HeuristicActive_Bool = "heuristicActive"; + static const char * const k_pch_Perf_NotifyInHMD_Bool = "warnInHMD"; + static const char * const k_pch_Perf_NotifyOnlyOnce_Bool = "warnOnlyOnce"; + static const char * const k_pch_Perf_AllowTimingStore_Bool = "allowTimingStore"; + static const char * const k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit"; + static const char * const k_pch_Perf_TestData_Float = "perfTestData"; + static const char * const k_pch_Perf_LinuxGPUProfiling_Bool = "linuxGPUProfiling"; + + //----------------------------------------------------------------------------- + // collision bounds keys + static const char * const k_pch_CollisionBounds_Section = "collisionBounds"; + static const char * const k_pch_CollisionBounds_Style_Int32 = "CollisionBoundsStyle"; + static const char * const k_pch_CollisionBounds_GroundPerimeterOn_Bool = "CollisionBoundsGroundPerimeterOn"; + static const char * const k_pch_CollisionBounds_CenterMarkerOn_Bool = "CollisionBoundsCenterMarkerOn"; + static const char * const k_pch_CollisionBounds_PlaySpaceOn_Bool = "CollisionBoundsPlaySpaceOn"; + static const char * const k_pch_CollisionBounds_FadeDistance_Float = "CollisionBoundsFadeDistance"; + static const char * const k_pch_CollisionBounds_ColorGammaR_Int32 = "CollisionBoundsColorGammaR"; + static const char * const k_pch_CollisionBounds_ColorGammaG_Int32 = "CollisionBoundsColorGammaG"; + static const char * const k_pch_CollisionBounds_ColorGammaB_Int32 = "CollisionBoundsColorGammaB"; + static const char * const k_pch_CollisionBounds_ColorGammaA_Int32 = "CollisionBoundsColorGammaA"; + + //----------------------------------------------------------------------------- + // camera keys + static const char * const k_pch_Camera_Section = "camera"; + static const char * const k_pch_Camera_EnableCamera_Bool = "enableCamera"; + static const char * const k_pch_Camera_EnableCameraInDashboard_Bool = "enableCameraInDashboard"; + static const char * const k_pch_Camera_EnableCameraForCollisionBounds_Bool = "enableCameraForCollisionBounds"; + static const char * const k_pch_Camera_EnableCameraForRoomView_Bool = "enableCameraForRoomView"; + static const char * const k_pch_Camera_BoundsColorGammaR_Int32 = "cameraBoundsColorGammaR"; + static const char * const k_pch_Camera_BoundsColorGammaG_Int32 = "cameraBoundsColorGammaG"; + static const char * const k_pch_Camera_BoundsColorGammaB_Int32 = "cameraBoundsColorGammaB"; + static const char * const k_pch_Camera_BoundsColorGammaA_Int32 = "cameraBoundsColorGammaA"; + static const char * const k_pch_Camera_BoundsStrength_Int32 = "cameraBoundsStrength"; + + //----------------------------------------------------------------------------- + // audio keys + static const char * const k_pch_audio_Section = "audio"; + static const char * const k_pch_audio_OnPlaybackDevice_String = "onPlaybackDevice"; + static const char * const k_pch_audio_OnRecordDevice_String = "onRecordDevice"; + static const char * const k_pch_audio_OnPlaybackMirrorDevice_String = "onPlaybackMirrorDevice"; + static const char * const k_pch_audio_OffPlaybackDevice_String = "offPlaybackDevice"; + static const char * const k_pch_audio_OffRecordDevice_String = "offRecordDevice"; + static const char * const k_pch_audio_VIVEHDMIGain = "viveHDMIGain"; + + //----------------------------------------------------------------------------- + // power management keys + static const char * const k_pch_Power_Section = "power"; + static const char * const k_pch_Power_PowerOffOnExit_Bool = "powerOffOnExit"; + static const char * const k_pch_Power_TurnOffScreensTimeout_Float = "turnOffScreensTimeout"; + static const char * const k_pch_Power_TurnOffControllersTimeout_Float = "turnOffControllersTimeout"; + static const char * const k_pch_Power_ReturnToWatchdogTimeout_Float = "returnToWatchdogTimeout"; + static const char * const k_pch_Power_AutoLaunchSteamVROnButtonPress = "autoLaunchSteamVROnButtonPress"; + + //----------------------------------------------------------------------------- + // dashboard keys + static const char * const k_pch_Dashboard_Section = "dashboard"; + static const char * const k_pch_Dashboard_EnableDashboard_Bool = "enableDashboard"; + static const char * const k_pch_Dashboard_ArcadeMode_Bool = "arcadeMode"; + + //----------------------------------------------------------------------------- + // model skin keys + static const char * const k_pch_modelskin_Section = "modelskins"; + + //----------------------------------------------------------------------------- + // driver keys - These could be checked in any driver_ section + static const char * const k_pch_Driver_Enable_Bool = "enable"; + +} // namespace vr + +// ivrchaperone.h +namespace vr +{ + +#pragma pack( push, 8 ) + +enum ChaperoneCalibrationState +{ + // OK! + ChaperoneCalibrationState_OK = 1, // Chaperone is fully calibrated and working correctly + + // Warnings + ChaperoneCalibrationState_Warning = 100, + ChaperoneCalibrationState_Warning_BaseStationMayHaveMoved = 101, // A base station thinks that it might have moved + ChaperoneCalibrationState_Warning_BaseStationRemoved = 102, // There are less base stations than when calibrated + ChaperoneCalibrationState_Warning_SeatedBoundsInvalid = 103, // Seated bounds haven't been calibrated for the current tracking center + + // Errors + ChaperoneCalibrationState_Error = 200, // The UniverseID is invalid + ChaperoneCalibrationState_Error_BaseStationUninitialized = 201, // Tracking center hasn't be calibrated for at least one of the base stations + ChaperoneCalibrationState_Error_BaseStationConflict = 202, // Tracking center is calibrated, but base stations disagree on the tracking space + ChaperoneCalibrationState_Error_PlayAreaInvalid = 203, // Play Area hasn't been calibrated for the current tracking center + ChaperoneCalibrationState_Error_CollisionBoundsInvalid = 204, // Collision Bounds haven't been calibrated for the current tracking center +}; + + +/** HIGH LEVEL TRACKING SPACE ASSUMPTIONS: +* 0,0,0 is the preferred standing area center. +* 0Y is the floor height. +* -Z is the preferred forward facing direction. */ +class IVRChaperone +{ +public: + + /** Get the current state of Chaperone calibration. This state can change at any time during a session due to physical base station changes. **/ + virtual ChaperoneCalibrationState GetCalibrationState() = 0; + + /** Returns the width and depth of the Play Area (formerly named Soft Bounds) in X and Z. + * Tracking space center (0,0,0) is the center of the Play Area. **/ + virtual bool GetPlayAreaSize( float *pSizeX, float *pSizeZ ) = 0; + + /** Returns the 4 corner positions of the Play Area (formerly named Soft Bounds). + * Corners are in counter-clockwise order. + * Standing center (0,0,0) is the center of the Play Area. + * It's a rectangle. + * 2 sides are parallel to the X axis and 2 sides are parallel to the Z axis. + * Height of every corner is 0Y (on the floor). **/ + virtual bool GetPlayAreaRect( HmdQuad_t *rect ) = 0; + + /** Reload Chaperone data from the .vrchap file on disk. */ + virtual void ReloadInfo( void ) = 0; + + /** Optionally give the chaperone system a hit about the color and brightness in the scene **/ + virtual void SetSceneColor( HmdColor_t color ) = 0; + + /** Get the current chaperone bounds draw color and brightness **/ + virtual void GetBoundsColor( HmdColor_t *pOutputColorArray, int nNumOutputColors, float flCollisionBoundsFadeDistance, HmdColor_t *pOutputCameraColor ) = 0; + + /** Determine whether the bounds are showing right now **/ + virtual bool AreBoundsVisible() = 0; + + /** Force the bounds to show, mostly for utilities **/ + virtual void ForceBoundsVisible( bool bForce ) = 0; +}; + +static const char * const IVRChaperone_Version = "IVRChaperone_003"; + +#pragma pack( pop ) + +} + +// ivrchaperonesetup.h +namespace vr +{ + +enum EChaperoneConfigFile +{ + EChaperoneConfigFile_Live = 1, // The live chaperone config, used by most applications and games + EChaperoneConfigFile_Temp = 2, // The temporary chaperone config, used to live-preview collision bounds in room setup +}; + +enum EChaperoneImportFlags +{ + EChaperoneImport_BoundsOnly = 0x0001, +}; + +/** Manages the working copy of the chaperone info. By default this will be the same as the +* live copy. Any changes made with this interface will stay in the working copy until +* CommitWorkingCopy() is called, at which point the working copy and the live copy will be +* the same again. */ +class IVRChaperoneSetup +{ +public: + + /** Saves the current working copy to disk */ + virtual bool CommitWorkingCopy( EChaperoneConfigFile configFile ) = 0; + + /** Reverts the working copy to match the live chaperone calibration. + * To modify existing data this MUST be do WHILE getting a non-error ChaperoneCalibrationStatus. + * Only after this should you do gets and sets on the existing data. */ + virtual void RevertWorkingCopy() = 0; + + /** Returns the width and depth of the Play Area (formerly named Soft Bounds) in X and Z from the working copy. + * Tracking space center (0,0,0) is the center of the Play Area. */ + virtual bool GetWorkingPlayAreaSize( float *pSizeX, float *pSizeZ ) = 0; + + /** Returns the 4 corner positions of the Play Area (formerly named Soft Bounds) from the working copy. + * Corners are in clockwise order. + * Tracking space center (0,0,0) is the center of the Play Area. + * It's a rectangle. + * 2 sides are parallel to the X axis and 2 sides are parallel to the Z axis. + * Height of every corner is 0Y (on the floor). **/ + virtual bool GetWorkingPlayAreaRect( HmdQuad_t *rect ) = 0; + + /** Returns the number of Quads if the buffer points to null. Otherwise it returns Quads + * into the buffer up to the max specified from the working copy. */ + virtual bool GetWorkingCollisionBoundsInfo( VR_OUT_ARRAY_COUNT(punQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t* punQuadsCount ) = 0; + + /** Returns the number of Quads if the buffer points to null. Otherwise it returns Quads + * into the buffer up to the max specified. */ + virtual bool GetLiveCollisionBoundsInfo( VR_OUT_ARRAY_COUNT(punQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t* punQuadsCount ) = 0; + + /** Returns the preferred seated position from the working copy. */ + virtual bool GetWorkingSeatedZeroPoseToRawTrackingPose( HmdMatrix34_t *pmatSeatedZeroPoseToRawTrackingPose ) = 0; + + /** Returns the standing origin from the working copy. */ + virtual bool GetWorkingStandingZeroPoseToRawTrackingPose( HmdMatrix34_t *pmatStandingZeroPoseToRawTrackingPose ) = 0; + + /** Sets the Play Area in the working copy. */ + virtual void SetWorkingPlayAreaSize( float sizeX, float sizeZ ) = 0; + + /** Sets the Collision Bounds in the working copy. */ + virtual void SetWorkingCollisionBoundsInfo( VR_ARRAY_COUNT(unQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t unQuadsCount ) = 0; + + /** Sets the preferred seated position in the working copy. */ + virtual void SetWorkingSeatedZeroPoseToRawTrackingPose( const HmdMatrix34_t *pMatSeatedZeroPoseToRawTrackingPose ) = 0; + + /** Sets the preferred standing position in the working copy. */ + virtual void SetWorkingStandingZeroPoseToRawTrackingPose( const HmdMatrix34_t *pMatStandingZeroPoseToRawTrackingPose ) = 0; + + /** Tear everything down and reload it from the file on disk */ + virtual void ReloadFromDisk( EChaperoneConfigFile configFile ) = 0; + + /** Returns the preferred seated position. */ + virtual bool GetLiveSeatedZeroPoseToRawTrackingPose( HmdMatrix34_t *pmatSeatedZeroPoseToRawTrackingPose ) = 0; + + virtual void SetWorkingCollisionBoundsTagsInfo( VR_ARRAY_COUNT(unTagCount) uint8_t *pTagsBuffer, uint32_t unTagCount ) = 0; + virtual bool GetLiveCollisionBoundsTagsInfo( VR_OUT_ARRAY_COUNT(punTagCount) uint8_t *pTagsBuffer, uint32_t *punTagCount ) = 0; + + virtual bool SetWorkingPhysicalBoundsInfo( VR_ARRAY_COUNT(unQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t unQuadsCount ) = 0; + virtual bool GetLivePhysicalBoundsInfo( VR_OUT_ARRAY_COUNT(punQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t* punQuadsCount ) = 0; + + virtual bool ExportLiveToBuffer( VR_OUT_STRING() char *pBuffer, uint32_t *pnBufferLength ) = 0; + virtual bool ImportFromBufferToWorking( const char *pBuffer, uint32_t nImportFlags ) = 0; +}; + +static const char * const IVRChaperoneSetup_Version = "IVRChaperoneSetup_005"; + + +} + +// ivrcompositor.h +namespace vr +{ + +#pragma pack( push, 8 ) + +/** Errors that can occur with the VR compositor */ +enum EVRCompositorError +{ + VRCompositorError_None = 0, + VRCompositorError_RequestFailed = 1, + VRCompositorError_IncompatibleVersion = 100, + VRCompositorError_DoNotHaveFocus = 101, + VRCompositorError_InvalidTexture = 102, + VRCompositorError_IsNotSceneApplication = 103, + VRCompositorError_TextureIsOnWrongDevice = 104, + VRCompositorError_TextureUsesUnsupportedFormat = 105, + VRCompositorError_SharedTexturesNotSupported = 106, + VRCompositorError_IndexOutOfRange = 107, + VRCompositorError_AlreadySubmitted = 108, +}; + +const uint32_t VRCompositor_ReprojectionReason_Cpu = 0x01; +const uint32_t VRCompositor_ReprojectionReason_Gpu = 0x02; +const uint32_t VRCompositor_ReprojectionAsync = 0x04; // This flag indicates the async reprojection mode is active, + // but does not indicate if reprojection actually happened or not. + // Use the ReprojectionReason flags above to check if reprojection + // was actually applied (i.e. scene texture was reused). + // NumFramePresents > 1 also indicates the scene texture was reused, + // and also the number of times that it was presented in total. + +/** Provides a single frame's timing information to the app */ +struct Compositor_FrameTiming +{ + uint32_t m_nSize; // Set to sizeof( Compositor_FrameTiming ) + uint32_t m_nFrameIndex; + uint32_t m_nNumFramePresents; // number of times this frame was presented + uint32_t m_nNumMisPresented; // number of times this frame was presented on a vsync other than it was originally predicted to + uint32_t m_nNumDroppedFrames; // number of additional times previous frame was scanned out + uint32_t m_nReprojectionFlags; + + /** Absolute time reference for comparing frames. This aligns with the vsync that running start is relative to. */ + double m_flSystemTimeInSeconds; + + /** These times may include work from other processes due to OS scheduling. + * The fewer packets of work these are broken up into, the less likely this will happen. + * GPU work can be broken up by calling Flush. This can sometimes be useful to get the GPU started + * processing that work earlier in the frame. */ + float m_flPreSubmitGpuMs; // time spent rendering the scene (gpu work submitted between WaitGetPoses and second Submit) + float m_flPostSubmitGpuMs; // additional time spent rendering by application (e.g. companion window) + float m_flTotalRenderGpuMs; // time between work submitted immediately after present (ideally vsync) until the end of compositor submitted work + float m_flCompositorRenderGpuMs; // time spend performing distortion correction, rendering chaperone, overlays, etc. + float m_flCompositorRenderCpuMs; // time spent on cpu submitting the above work for this frame + float m_flCompositorIdleCpuMs; // time spent waiting for running start (application could have used this much more time) + + /** Miscellaneous measured intervals. */ + float m_flClientFrameIntervalMs; // time between calls to WaitGetPoses + float m_flPresentCallCpuMs; // time blocked on call to present (usually 0.0, but can go long) + float m_flWaitForPresentCpuMs; // time spent spin-waiting for frame index to change (not near-zero indicates wait object failure) + float m_flSubmitFrameMs; // time spent in IVRCompositor::Submit (not near-zero indicates driver issue) + + /** The following are all relative to this frame's SystemTimeInSeconds */ + float m_flWaitGetPosesCalledMs; + float m_flNewPosesReadyMs; + float m_flNewFrameReadyMs; // second call to IVRCompositor::Submit + float m_flCompositorUpdateStartMs; + float m_flCompositorUpdateEndMs; + float m_flCompositorRenderStartMs; + + vr::TrackedDevicePose_t m_HmdPose; // pose used by app to render this frame +}; + +/** Cumulative stats for current application. These are not cleared until a new app connects, +* but they do stop accumulating once the associated app disconnects. */ +struct Compositor_CumulativeStats +{ + uint32_t m_nPid; // Process id associated with these stats (may no longer be running). + uint32_t m_nNumFramePresents; // total number of times we called present (includes reprojected frames) + uint32_t m_nNumDroppedFrames; // total number of times an old frame was re-scanned out (without reprojection) + uint32_t m_nNumReprojectedFrames; // total number of times a frame was scanned out a second time (with reprojection) + + /** Values recorded at startup before application has fully faded in the first time. */ + uint32_t m_nNumFramePresentsOnStartup; + uint32_t m_nNumDroppedFramesOnStartup; + uint32_t m_nNumReprojectedFramesOnStartup; + + /** Applications may explicitly fade to the compositor. This is usually to handle level transitions, and loading often causes + * system wide hitches. The following stats are collected during this period. Does not include values recorded during startup. */ + uint32_t m_nNumLoading; + uint32_t m_nNumFramePresentsLoading; + uint32_t m_nNumDroppedFramesLoading; + uint32_t m_nNumReprojectedFramesLoading; + + /** If we don't get a new frame from the app in less than 2.5 frames, then we assume the app has hung and start + * fading back to the compositor. The following stats are a result of this, and are a subset of those recorded above. + * Does not include values recorded during start up or loading. */ + uint32_t m_nNumTimedOut; + uint32_t m_nNumFramePresentsTimedOut; + uint32_t m_nNumDroppedFramesTimedOut; + uint32_t m_nNumReprojectedFramesTimedOut; +}; + +#pragma pack( pop ) + +/** Allows the application to interact with the compositor */ +class IVRCompositor +{ +public: + /** Sets tracking space returned by WaitGetPoses */ + virtual void SetTrackingSpace( ETrackingUniverseOrigin eOrigin ) = 0; + + /** Gets current tracking space returned by WaitGetPoses */ + virtual ETrackingUniverseOrigin GetTrackingSpace() = 0; + + /** Scene applications should call this function to get poses to render with (and optionally poses predicted an additional frame out to use for gameplay). + * This function will block until "running start" milliseconds before the start of the frame, and should be called at the last moment before needing to + * start rendering. + * + * Return codes: + * - IsNotSceneApplication (make sure to call VR_Init with VRApplicaiton_Scene) + * - DoNotHaveFocus (some other app has taken focus - this will throttle the call to 10hz to reduce the impact on that app) + */ + virtual EVRCompositorError WaitGetPoses( VR_ARRAY_COUNT(unRenderPoseArrayCount) TrackedDevicePose_t* pRenderPoseArray, uint32_t unRenderPoseArrayCount, + VR_ARRAY_COUNT(unGamePoseArrayCount) TrackedDevicePose_t* pGamePoseArray, uint32_t unGamePoseArrayCount ) = 0; + + /** Get the last set of poses returned by WaitGetPoses. */ + virtual EVRCompositorError GetLastPoses( VR_ARRAY_COUNT( unRenderPoseArrayCount ) TrackedDevicePose_t* pRenderPoseArray, uint32_t unRenderPoseArrayCount, + VR_ARRAY_COUNT( unGamePoseArrayCount ) TrackedDevicePose_t* pGamePoseArray, uint32_t unGamePoseArrayCount ) = 0; + + /** Interface for accessing last set of poses returned by WaitGetPoses one at a time. + * Returns VRCompositorError_IndexOutOfRange if unDeviceIndex not less than k_unMaxTrackedDeviceCount otherwise VRCompositorError_None. + * It is okay to pass NULL for either pose if you only want one of the values. */ + virtual EVRCompositorError GetLastPoseForTrackedDeviceIndex( TrackedDeviceIndex_t unDeviceIndex, TrackedDevicePose_t *pOutputPose, TrackedDevicePose_t *pOutputGamePose ) = 0; + + /** Updated scene texture to display. If pBounds is NULL the entire texture will be used. If called from an OpenGL app, consider adding a glFlush after + * Submitting both frames to signal the driver to start processing, otherwise it may wait until the command buffer fills up, causing the app to miss frames. + * + * OpenGL dirty state: + * glBindTexture + * + * Return codes: + * - IsNotSceneApplication (make sure to call VR_Init with VRApplicaiton_Scene) + * - DoNotHaveFocus (some other app has taken focus) + * - TextureIsOnWrongDevice (application did not use proper AdapterIndex - see IVRSystem.GetDXGIOutputInfo) + * - SharedTexturesNotSupported (application needs to call CreateDXGIFactory1 or later before creating DX device) + * - TextureUsesUnsupportedFormat (scene textures must be compatible with DXGI sharing rules - e.g. uncompressed, no mips, etc.) + * - InvalidTexture (usually means bad arguments passed in) + * - AlreadySubmitted (app has submitted two left textures or two right textures in a single frame - i.e. before calling WaitGetPoses again) + */ + virtual EVRCompositorError Submit( EVREye eEye, const Texture_t *pTexture, const VRTextureBounds_t* pBounds = 0, EVRSubmitFlags nSubmitFlags = Submit_Default ) = 0; + + /** Clears the frame that was sent with the last call to Submit. This will cause the + * compositor to show the grid until Submit is called again. */ + virtual void ClearLastSubmittedFrame() = 0; + + /** Call immediately after presenting your app's window (i.e. companion window) to unblock the compositor. + * This is an optional call, which only needs to be used if you can't instead call WaitGetPoses immediately after Present. + * For example, if your engine's render and game loop are not on separate threads, or blocking the render thread until 3ms before the next vsync would + * introduce a deadlock of some sort. This function tells the compositor that you have finished all rendering after having Submitted buffers for both + * eyes, and it is free to start its rendering work. This should only be called from the same thread you are rendering on. */ + virtual void PostPresentHandoff() = 0; + + /** Returns true if timing data is filled it. Sets oldest timing info if nFramesAgo is larger than the stored history. + * Be sure to set timing.size = sizeof(Compositor_FrameTiming) on struct passed in before calling this function. */ + virtual bool GetFrameTiming( Compositor_FrameTiming *pTiming, uint32_t unFramesAgo = 0 ) = 0; + + /** Interface for copying a range of timing data. Frames are returned in ascending order (oldest to newest) with the last being the most recent frame. + * Only the first entry's m_nSize needs to be set, as the rest will be inferred from that. Returns total number of entries filled out. */ + virtual uint32_t GetFrameTimings( Compositor_FrameTiming *pTiming, uint32_t nFrames ) = 0; + + /** Returns the time in seconds left in the current (as identified by FrameTiming's frameIndex) frame. + * Due to "running start", this value may roll over to the next frame before ever reaching 0.0. */ + virtual float GetFrameTimeRemaining() = 0; + + /** Fills out stats accumulated for the last connected application. Pass in sizeof( Compositor_CumulativeStats ) as second parameter. */ + virtual void GetCumulativeStats( Compositor_CumulativeStats *pStats, uint32_t nStatsSizeInBytes ) = 0; + + /** Fades the view on the HMD to the specified color. The fade will take fSeconds, and the color values are between + * 0.0 and 1.0. This color is faded on top of the scene based on the alpha parameter. Removing the fade color instantly + * would be FadeToColor( 0.0, 0.0, 0.0, 0.0, 0.0 ). Values are in un-premultiplied alpha space. */ + virtual void FadeToColor( float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground = false ) = 0; + + /** Get current fade color value. */ + virtual HmdColor_t GetCurrentFadeColor( bool bBackground = false ) = 0; + + /** Fading the Grid in or out in fSeconds */ + virtual void FadeGrid( float fSeconds, bool bFadeIn ) = 0; + + /** Get current alpha value of grid. */ + virtual float GetCurrentGridAlpha() = 0; + + /** Override the skybox used in the compositor (e.g. for during level loads when the app can't feed scene images fast enough) + * Order is Front, Back, Left, Right, Top, Bottom. If only a single texture is passed, it is assumed in lat-long format. + * If two are passed, it is assumed a lat-long stereo pair. */ + virtual EVRCompositorError SetSkyboxOverride( VR_ARRAY_COUNT( unTextureCount ) const Texture_t *pTextures, uint32_t unTextureCount ) = 0; + + /** Resets compositor skybox back to defaults. */ + virtual void ClearSkyboxOverride() = 0; + + /** Brings the compositor window to the front. This is useful for covering any other window that may be on the HMD + * and is obscuring the compositor window. */ + virtual void CompositorBringToFront() = 0; + + /** Pushes the compositor window to the back. This is useful for allowing other applications to draw directly to the HMD. */ + virtual void CompositorGoToBack() = 0; + + /** Tells the compositor process to clean up and exit. You do not need to call this function at shutdown. Under normal + * circumstances the compositor will manage its own life cycle based on what applications are running. */ + virtual void CompositorQuit() = 0; + + /** Return whether the compositor is fullscreen */ + virtual bool IsFullscreen() = 0; + + /** Returns the process ID of the process that is currently rendering the scene */ + virtual uint32_t GetCurrentSceneFocusProcess() = 0; + + /** Returns the process ID of the process that rendered the last frame (or 0 if the compositor itself rendered the frame.) + * Returns 0 when fading out from an app and the app's process Id when fading into an app. */ + virtual uint32_t GetLastFrameRenderer() = 0; + + /** Returns true if the current process has the scene focus */ + virtual bool CanRenderScene() = 0; + + /** Creates a window on the primary monitor to display what is being shown in the headset. */ + virtual void ShowMirrorWindow() = 0; + + /** Closes the mirror window. */ + virtual void HideMirrorWindow() = 0; + + /** Returns true if the mirror window is shown. */ + virtual bool IsMirrorWindowVisible() = 0; + + /** Writes all images that the compositor knows about (including overlays) to a 'screenshots' folder in the SteamVR runtime root. */ + virtual void CompositorDumpImages() = 0; + + /** Let an app know it should be rendering with low resources. */ + virtual bool ShouldAppRenderWithLowResources() = 0; + + /** Override interleaved reprojection logic to force on. */ + virtual void ForceInterleavedReprojectionOn( bool bOverride ) = 0; + + /** Force reconnecting to the compositor process. */ + virtual void ForceReconnectProcess() = 0; + + /** Temporarily suspends rendering (useful for finer control over scene transitions). */ + virtual void SuspendRendering( bool bSuspend ) = 0; + + /** Opens a shared D3D11 texture with the undistorted composited image for each eye. Use ReleaseMirrorTextureD3D11 when finished + * instead of calling Release on the resource itself. */ + virtual vr::EVRCompositorError GetMirrorTextureD3D11( vr::EVREye eEye, void *pD3D11DeviceOrResource, void **ppD3D11ShaderResourceView ) = 0; + virtual void ReleaseMirrorTextureD3D11( void *pD3D11ShaderResourceView ) = 0; + + /** Access to mirror textures from OpenGL. */ + virtual vr::EVRCompositorError GetMirrorTextureGL( vr::EVREye eEye, vr::glUInt_t *pglTextureId, vr::glSharedTextureHandle_t *pglSharedTextureHandle ) = 0; + virtual bool ReleaseSharedGLTexture( vr::glUInt_t glTextureId, vr::glSharedTextureHandle_t glSharedTextureHandle ) = 0; + virtual void LockGLSharedTextureForAccess( vr::glSharedTextureHandle_t glSharedTextureHandle ) = 0; + virtual void UnlockGLSharedTextureForAccess( vr::glSharedTextureHandle_t glSharedTextureHandle ) = 0; + + /** [Vulkan Only] + * return 0. Otherwise it returns the length of the number of bytes necessary to hold this string including the trailing + * null. The string will be a space separated list of-required instance extensions to enable in VkCreateInstance */ + virtual uint32_t GetVulkanInstanceExtensionsRequired( VR_OUT_STRING() char *pchValue, uint32_t unBufferSize ) = 0; + + /** [Vulkan only] + * return 0. Otherwise it returns the length of the number of bytes necessary to hold this string including the trailing + * null. The string will be a space separated list of required device extensions to enable in VkCreateDevice */ + virtual uint32_t GetVulkanDeviceExtensionsRequired( VkPhysicalDevice_T *pPhysicalDevice, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize ) = 0; + +}; + +static const char * const IVRCompositor_Version = "IVRCompositor_020"; + +} // namespace vr + + + +// ivrnotifications.h +namespace vr +{ + +#pragma pack( push, 8 ) + +// Used for passing graphic data +struct NotificationBitmap_t +{ + NotificationBitmap_t() + : m_pImageData( nullptr ) + , m_nWidth( 0 ) + , m_nHeight( 0 ) + , m_nBytesPerPixel( 0 ) + { + }; + + void *m_pImageData; + int32_t m_nWidth; + int32_t m_nHeight; + int32_t m_nBytesPerPixel; +}; + + +/** Be aware that the notification type is used as 'priority' to pick the next notification */ +enum EVRNotificationType +{ + /** Transient notifications are automatically hidden after a period of time set by the user. + * They are used for things like information and chat messages that do not require user interaction. */ + EVRNotificationType_Transient = 0, + + /** Persistent notifications are shown to the user until they are hidden by calling RemoveNotification(). + * They are used for things like phone calls and alarms that require user interaction. */ + EVRNotificationType_Persistent = 1, + + /** System notifications are shown no matter what. It is expected, that the ulUserValue is used as ID. + * If there is already a system notification in the queue with that ID it is not accepted into the queue + * to prevent spamming with system notification */ + EVRNotificationType_Transient_SystemWithUserValue = 2, +}; + +enum EVRNotificationStyle +{ + /** Creates a notification with minimal external styling. */ + EVRNotificationStyle_None = 0, + + /** Used for notifications about overlay-level status. In Steam this is used for events like downloads completing. */ + EVRNotificationStyle_Application = 100, + + /** Used for notifications about contacts that are unknown or not available. In Steam this is used for friend invitations and offline friends. */ + EVRNotificationStyle_Contact_Disabled = 200, + + /** Used for notifications about contacts that are available but inactive. In Steam this is used for friends that are online but not playing a game. */ + EVRNotificationStyle_Contact_Enabled = 201, + + /** Used for notifications about contacts that are available and active. In Steam this is used for friends that are online and currently running a game. */ + EVRNotificationStyle_Contact_Active = 202, +}; + +static const uint32_t k_unNotificationTextMaxSize = 256; + +typedef uint32_t VRNotificationId; + + + +#pragma pack( pop ) + +/** Allows notification sources to interact with the VR system + This current interface is not yet implemented. Do not use yet. */ +class IVRNotifications +{ +public: + /** Create a notification and enqueue it to be shown to the user. + * An overlay handle is required to create a notification, as otherwise it would be impossible for a user to act on it. + * To create a two-line notification, use a line break ('\n') to split the text into two lines. + * The pImage argument may be NULL, in which case the specified overlay's icon will be used instead. */ + virtual EVRNotificationError CreateNotification( VROverlayHandle_t ulOverlayHandle, uint64_t ulUserValue, EVRNotificationType type, const char *pchText, EVRNotificationStyle style, const NotificationBitmap_t *pImage, /* out */ VRNotificationId *pNotificationId ) = 0; + + /** Destroy a notification, hiding it first if it currently shown to the user. */ + virtual EVRNotificationError RemoveNotification( VRNotificationId notificationId ) = 0; + +}; + +static const char * const IVRNotifications_Version = "IVRNotifications_002"; + +} // namespace vr + + + +// ivroverlay.h +namespace vr +{ + + /** The maximum length of an overlay key in bytes, counting the terminating null character. */ + static const uint32_t k_unVROverlayMaxKeyLength = 128; + + /** The maximum length of an overlay name in bytes, counting the terminating null character. */ + static const uint32_t k_unVROverlayMaxNameLength = 128; + + /** The maximum number of overlays that can exist in the system at one time. */ + static const uint32_t k_unMaxOverlayCount = 64; + + /** The maximum number of overlay intersection mask primitives per overlay */ + static const uint32_t k_unMaxOverlayIntersectionMaskPrimitivesCount = 32; + + /** Types of input supported by VR Overlays */ + enum VROverlayInputMethod + { + VROverlayInputMethod_None = 0, // No input events will be generated automatically for this overlay + VROverlayInputMethod_Mouse = 1, // Tracked controllers will get mouse events automatically + }; + + /** Allows the caller to figure out which overlay transform getter to call. */ + enum VROverlayTransformType + { + VROverlayTransform_Absolute = 0, + VROverlayTransform_TrackedDeviceRelative = 1, + VROverlayTransform_SystemOverlay = 2, + VROverlayTransform_TrackedComponent = 3, + }; + + /** Overlay control settings */ + enum VROverlayFlags + { + VROverlayFlags_None = 0, + + // The following only take effect when rendered using the high quality render path (see SetHighQualityOverlay). + VROverlayFlags_Curved = 1, + VROverlayFlags_RGSS4X = 2, + + // Set this flag on a dashboard overlay to prevent a tab from showing up for that overlay + VROverlayFlags_NoDashboardTab = 3, + + // Set this flag on a dashboard that is able to deal with gamepad focus events + VROverlayFlags_AcceptsGamepadEvents = 4, + + // Indicates that the overlay should dim/brighten to show gamepad focus + VROverlayFlags_ShowGamepadFocus = 5, + + // When in VROverlayInputMethod_Mouse you can optionally enable sending VRScroll_t + VROverlayFlags_SendVRScrollEvents = 6, + VROverlayFlags_SendVRTouchpadEvents = 7, + + // If set this will render a vertical scroll wheel on the primary controller, + // only needed if not using VROverlayFlags_SendVRScrollEvents but you still want to represent a scroll wheel + VROverlayFlags_ShowTouchPadScrollWheel = 8, + + // If this is set ownership and render access to the overlay are transferred + // to the new scene process on a call to IVRApplications::LaunchInternalProcess + VROverlayFlags_TransferOwnershipToInternalProcess = 9, + + // If set, renders 50% of the texture in each eye, side by side + VROverlayFlags_SideBySide_Parallel = 10, // Texture is left/right + VROverlayFlags_SideBySide_Crossed = 11, // Texture is crossed and right/left + + VROverlayFlags_Panorama = 12, // Texture is a panorama + VROverlayFlags_StereoPanorama = 13, // Texture is a stereo panorama + + // If this is set on an overlay owned by the scene application that overlay + // will be sorted with the "Other" overlays on top of all other scene overlays + VROverlayFlags_SortWithNonSceneOverlays = 14, + + // If set, the overlay will be shown in the dashboard, otherwise it will be hidden. + VROverlayFlags_VisibleInDashboard = 15, + }; + + enum VRMessageOverlayResponse + { + VRMessageOverlayResponse_ButtonPress_0 = 0, + VRMessageOverlayResponse_ButtonPress_1 = 1, + VRMessageOverlayResponse_ButtonPress_2 = 2, + VRMessageOverlayResponse_ButtonPress_3 = 3, + VRMessageOverlayResponse_CouldntFindSystemOverlay = 4, + VRMessageOverlayResponse_CouldntFindOrCreateClientOverlay= 5, + VRMessageOverlayResponse_ApplicationQuit = 6 + }; + + struct VROverlayIntersectionParams_t + { + HmdVector3_t vSource; + HmdVector3_t vDirection; + ETrackingUniverseOrigin eOrigin; + }; + + struct VROverlayIntersectionResults_t + { + HmdVector3_t vPoint; + HmdVector3_t vNormal; + HmdVector2_t vUVs; + float fDistance; + }; + + // Input modes for the Big Picture gamepad text entry + enum EGamepadTextInputMode + { + k_EGamepadTextInputModeNormal = 0, + k_EGamepadTextInputModePassword = 1, + k_EGamepadTextInputModeSubmit = 2, + }; + + // Controls number of allowed lines for the Big Picture gamepad text entry + enum EGamepadTextInputLineMode + { + k_EGamepadTextInputLineModeSingleLine = 0, + k_EGamepadTextInputLineModeMultipleLines = 1 + }; + + /** Directions for changing focus between overlays with the gamepad */ + enum EOverlayDirection + { + OverlayDirection_Up = 0, + OverlayDirection_Down = 1, + OverlayDirection_Left = 2, + OverlayDirection_Right = 3, + + OverlayDirection_Count = 4, + }; + + enum EVROverlayIntersectionMaskPrimitiveType + { + OverlayIntersectionPrimitiveType_Rectangle, + OverlayIntersectionPrimitiveType_Circle, + }; + + struct IntersectionMaskRectangle_t + { + float m_flTopLeftX; + float m_flTopLeftY; + float m_flWidth; + float m_flHeight; + }; + + struct IntersectionMaskCircle_t + { + float m_flCenterX; + float m_flCenterY; + float m_flRadius; + }; + + /** NOTE!!! If you change this you MUST manually update openvr_interop.cs.py and openvr_api_flat.h.py */ + typedef union + { + IntersectionMaskRectangle_t m_Rectangle; + IntersectionMaskCircle_t m_Circle; + } VROverlayIntersectionMaskPrimitive_Data_t; + + struct VROverlayIntersectionMaskPrimitive_t + { + EVROverlayIntersectionMaskPrimitiveType m_nPrimitiveType; + VROverlayIntersectionMaskPrimitive_Data_t m_Primitive; + }; + + class IVROverlay + { + public: + + // --------------------------------------------- + // Overlay management methods + // --------------------------------------------- + + /** Finds an existing overlay with the specified key. */ + virtual EVROverlayError FindOverlay( const char *pchOverlayKey, VROverlayHandle_t * pOverlayHandle ) = 0; + + /** Creates a new named overlay. All overlays start hidden and with default settings. */ + virtual EVROverlayError CreateOverlay( const char *pchOverlayKey, const char *pchOverlayName, VROverlayHandle_t * pOverlayHandle ) = 0; + + /** Destroys the specified overlay. When an application calls VR_Shutdown all overlays created by that app are + * automatically destroyed. */ + virtual EVROverlayError DestroyOverlay( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Specify which overlay to use the high quality render path. This overlay will be composited in during the distortion pass which + * results in it drawing on top of everything else, but also at a higher quality as it samples the source texture directly rather than + * rasterizing into each eye's render texture first. Because if this, only one of these is supported at any given time. It is most useful + * for overlays that are expected to take up most of the user's view (e.g. streaming video). + * This mode does not support mouse input to your overlay. */ + virtual EVROverlayError SetHighQualityOverlay( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Returns the overlay handle of the current overlay being rendered using the single high quality overlay render path. + * Otherwise it will return k_ulOverlayHandleInvalid. */ + virtual vr::VROverlayHandle_t GetHighQualityOverlay() = 0; + + /** Fills the provided buffer with the string key of the overlay. Returns the size of buffer required to store the key, including + * the terminating null character. k_unVROverlayMaxKeyLength will be enough bytes to fit the string. */ + virtual uint32_t GetOverlayKey( VROverlayHandle_t ulOverlayHandle, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, EVROverlayError *pError = 0L ) = 0; + + /** Fills the provided buffer with the friendly name of the overlay. Returns the size of buffer required to store the key, including + * the terminating null character. k_unVROverlayMaxNameLength will be enough bytes to fit the string. */ + virtual uint32_t GetOverlayName( VROverlayHandle_t ulOverlayHandle, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, EVROverlayError *pError = 0L ) = 0; + + /** set the name to use for this overlay */ + virtual EVROverlayError SetOverlayName( VROverlayHandle_t ulOverlayHandle, const char *pchName ) = 0; + + /** Gets the raw image data from an overlay. Overlay image data is always returned as RGBA data, 4 bytes per pixel. If the buffer is not large enough, width and height + * will be set and VROverlayError_ArrayTooSmall is returned. */ + virtual EVROverlayError GetOverlayImageData( VROverlayHandle_t ulOverlayHandle, void *pvBuffer, uint32_t unBufferSize, uint32_t *punWidth, uint32_t *punHeight ) = 0; + + /** returns a string that corresponds with the specified overlay error. The string will be the name + * of the error enum value for all valid error codes */ + virtual const char *GetOverlayErrorNameFromEnum( EVROverlayError error ) = 0; + + // --------------------------------------------- + // Overlay rendering methods + // --------------------------------------------- + + /** Sets the pid that is allowed to render to this overlay (the creator pid is always allow to render), + * by default this is the pid of the process that made the overlay */ + virtual EVROverlayError SetOverlayRenderingPid( VROverlayHandle_t ulOverlayHandle, uint32_t unPID ) = 0; + + /** Gets the pid that is allowed to render to this overlay */ + virtual uint32_t GetOverlayRenderingPid( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Specify flag setting for a given overlay */ + virtual EVROverlayError SetOverlayFlag( VROverlayHandle_t ulOverlayHandle, VROverlayFlags eOverlayFlag, bool bEnabled ) = 0; + + /** Sets flag setting for a given overlay */ + virtual EVROverlayError GetOverlayFlag( VROverlayHandle_t ulOverlayHandle, VROverlayFlags eOverlayFlag, bool *pbEnabled ) = 0; + + /** Sets the color tint of the overlay quad. Use 0.0 to 1.0 per channel. */ + virtual EVROverlayError SetOverlayColor( VROverlayHandle_t ulOverlayHandle, float fRed, float fGreen, float fBlue ) = 0; + + /** Gets the color tint of the overlay quad. */ + virtual EVROverlayError GetOverlayColor( VROverlayHandle_t ulOverlayHandle, float *pfRed, float *pfGreen, float *pfBlue ) = 0; + + /** Sets the alpha of the overlay quad. Use 1.0 for 100 percent opacity to 0.0 for 0 percent opacity. */ + virtual EVROverlayError SetOverlayAlpha( VROverlayHandle_t ulOverlayHandle, float fAlpha ) = 0; + + /** Gets the alpha of the overlay quad. By default overlays are rendering at 100 percent alpha (1.0). */ + virtual EVROverlayError GetOverlayAlpha( VROverlayHandle_t ulOverlayHandle, float *pfAlpha ) = 0; + + /** Sets the aspect ratio of the texels in the overlay. 1.0 means the texels are square. 2.0 means the texels + * are twice as wide as they are tall. Defaults to 1.0. */ + virtual EVROverlayError SetOverlayTexelAspect( VROverlayHandle_t ulOverlayHandle, float fTexelAspect ) = 0; + + /** Gets the aspect ratio of the texels in the overlay. Defaults to 1.0 */ + virtual EVROverlayError GetOverlayTexelAspect( VROverlayHandle_t ulOverlayHandle, float *pfTexelAspect ) = 0; + + /** Sets the rendering sort order for the overlay. Overlays are rendered this order: + * Overlays owned by the scene application + * Overlays owned by some other application + * + * Within a category overlays are rendered lowest sort order to highest sort order. Overlays with the same + * sort order are rendered back to front base on distance from the HMD. + * + * Sort order defaults to 0. */ + virtual EVROverlayError SetOverlaySortOrder( VROverlayHandle_t ulOverlayHandle, uint32_t unSortOrder ) = 0; + + /** Gets the sort order of the overlay. See SetOverlaySortOrder for how this works. */ + virtual EVROverlayError GetOverlaySortOrder( VROverlayHandle_t ulOverlayHandle, uint32_t *punSortOrder ) = 0; + + /** Sets the width of the overlay quad in meters. By default overlays are rendered on a quad that is 1 meter across */ + virtual EVROverlayError SetOverlayWidthInMeters( VROverlayHandle_t ulOverlayHandle, float fWidthInMeters ) = 0; + + /** Returns the width of the overlay quad in meters. By default overlays are rendered on a quad that is 1 meter across */ + virtual EVROverlayError GetOverlayWidthInMeters( VROverlayHandle_t ulOverlayHandle, float *pfWidthInMeters ) = 0; + + /** For high-quality curved overlays only, sets the distance range in meters from the overlay used to automatically curve + * the surface around the viewer. Min is distance is when the surface will be most curved. Max is when least curved. */ + virtual EVROverlayError SetOverlayAutoCurveDistanceRangeInMeters( VROverlayHandle_t ulOverlayHandle, float fMinDistanceInMeters, float fMaxDistanceInMeters ) = 0; + + /** For high-quality curved overlays only, gets the distance range in meters from the overlay used to automatically curve + * the surface around the viewer. Min is distance is when the surface will be most curved. Max is when least curved. */ + virtual EVROverlayError GetOverlayAutoCurveDistanceRangeInMeters( VROverlayHandle_t ulOverlayHandle, float *pfMinDistanceInMeters, float *pfMaxDistanceInMeters ) = 0; + + /** Sets the colorspace the overlay texture's data is in. Defaults to 'auto'. + * If the texture needs to be resolved, you should call SetOverlayTexture with the appropriate colorspace instead. */ + virtual EVROverlayError SetOverlayTextureColorSpace( VROverlayHandle_t ulOverlayHandle, EColorSpace eTextureColorSpace ) = 0; + + /** Gets the overlay's current colorspace setting. */ + virtual EVROverlayError GetOverlayTextureColorSpace( VROverlayHandle_t ulOverlayHandle, EColorSpace *peTextureColorSpace ) = 0; + + /** Sets the part of the texture to use for the overlay. UV Min is the upper left corner and UV Max is the lower right corner. */ + virtual EVROverlayError SetOverlayTextureBounds( VROverlayHandle_t ulOverlayHandle, const VRTextureBounds_t *pOverlayTextureBounds ) = 0; + + /** Gets the part of the texture to use for the overlay. UV Min is the upper left corner and UV Max is the lower right corner. */ + virtual EVROverlayError GetOverlayTextureBounds( VROverlayHandle_t ulOverlayHandle, VRTextureBounds_t *pOverlayTextureBounds ) = 0; + + /** Gets render model to draw behind this overlay */ + virtual uint32_t GetOverlayRenderModel( vr::VROverlayHandle_t ulOverlayHandle, char *pchValue, uint32_t unBufferSize, HmdColor_t *pColor, vr::EVROverlayError *pError ) = 0; + + /** Sets render model to draw behind this overlay and the vertex color to use, pass null for pColor to match the overlays vertex color. + The model is scaled by the same amount as the overlay, with a default of 1m. */ + virtual vr::EVROverlayError SetOverlayRenderModel( vr::VROverlayHandle_t ulOverlayHandle, const char *pchRenderModel, const HmdColor_t *pColor ) = 0; + + /** Returns the transform type of this overlay. */ + virtual EVROverlayError GetOverlayTransformType( VROverlayHandle_t ulOverlayHandle, VROverlayTransformType *peTransformType ) = 0; + + /** Sets the transform to absolute tracking origin. */ + virtual EVROverlayError SetOverlayTransformAbsolute( VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, const HmdMatrix34_t *pmatTrackingOriginToOverlayTransform ) = 0; + + /** Gets the transform if it is absolute. Returns an error if the transform is some other type. */ + virtual EVROverlayError GetOverlayTransformAbsolute( VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin *peTrackingOrigin, HmdMatrix34_t *pmatTrackingOriginToOverlayTransform ) = 0; + + /** Sets the transform to relative to the transform of the specified tracked device. */ + virtual EVROverlayError SetOverlayTransformTrackedDeviceRelative( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unTrackedDevice, const HmdMatrix34_t *pmatTrackedDeviceToOverlayTransform ) = 0; + + /** Gets the transform if it is relative to a tracked device. Returns an error if the transform is some other type. */ + virtual EVROverlayError GetOverlayTransformTrackedDeviceRelative( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t *punTrackedDevice, HmdMatrix34_t *pmatTrackedDeviceToOverlayTransform ) = 0; + + /** Sets the transform to draw the overlay on a rendermodel component mesh instead of a quad. This will only draw when the system is + * drawing the device. Overlays with this transform type cannot receive mouse events. */ + virtual EVROverlayError SetOverlayTransformTrackedDeviceComponent( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unDeviceIndex, const char *pchComponentName ) = 0; + + /** Gets the transform information when the overlay is rendering on a component. */ + virtual EVROverlayError GetOverlayTransformTrackedDeviceComponent( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t *punDeviceIndex, char *pchComponentName, uint32_t unComponentNameSize ) = 0; + + /** Gets the transform if it is relative to another overlay. Returns an error if the transform is some other type. */ + virtual vr::EVROverlayError GetOverlayTransformOverlayRelative( VROverlayHandle_t ulOverlayHandle, VROverlayHandle_t *ulOverlayHandleParent, HmdMatrix34_t *pmatParentOverlayToOverlayTransform ) = 0; + + /** Sets the transform to relative to the transform of the specified overlay. This overlays visibility will also track the parents visibility */ + virtual vr::EVROverlayError SetOverlayTransformOverlayRelative( VROverlayHandle_t ulOverlayHandle, VROverlayHandle_t ulOverlayHandleParent, const HmdMatrix34_t *pmatParentOverlayToOverlayTransform ) = 0; + + /** Shows the VR overlay. For dashboard overlays, only the Dashboard Manager is allowed to call this. */ + virtual EVROverlayError ShowOverlay( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Hides the VR overlay. For dashboard overlays, only the Dashboard Manager is allowed to call this. */ + virtual EVROverlayError HideOverlay( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Returns true if the overlay is visible. */ + virtual bool IsOverlayVisible( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Get the transform in 3d space associated with a specific 2d point in the overlay's coordinate space (where 0,0 is the lower left). -Z points out of the overlay */ + virtual EVROverlayError GetTransformForOverlayCoordinates( VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, HmdVector2_t coordinatesInOverlay, HmdMatrix34_t *pmatTransform ) = 0; + + // --------------------------------------------- + // Overlay input methods + // --------------------------------------------- + + /** Returns true and fills the event with the next event on the overlay's event queue, if there is one. + * If there are no events this method returns false. uncbVREvent should be the size in bytes of the VREvent_t struct */ + virtual bool PollNextOverlayEvent( VROverlayHandle_t ulOverlayHandle, VREvent_t *pEvent, uint32_t uncbVREvent ) = 0; + + /** Returns the current input settings for the specified overlay. */ + virtual EVROverlayError GetOverlayInputMethod( VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod *peInputMethod ) = 0; + + /** Sets the input settings for the specified overlay. */ + virtual EVROverlayError SetOverlayInputMethod( VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod eInputMethod ) = 0; + + /** Gets the mouse scaling factor that is used for mouse events. The actual texture may be a different size, but this is + * typically the size of the underlying UI in pixels. */ + virtual EVROverlayError GetOverlayMouseScale( VROverlayHandle_t ulOverlayHandle, HmdVector2_t *pvecMouseScale ) = 0; + + /** Sets the mouse scaling factor that is used for mouse events. The actual texture may be a different size, but this is + * typically the size of the underlying UI in pixels (not in world space). */ + virtual EVROverlayError SetOverlayMouseScale( VROverlayHandle_t ulOverlayHandle, const HmdVector2_t *pvecMouseScale ) = 0; + + /** Computes the overlay-space pixel coordinates of where the ray intersects the overlay with the + * specified settings. Returns false if there is no intersection. */ + virtual bool ComputeOverlayIntersection( VROverlayHandle_t ulOverlayHandle, const VROverlayIntersectionParams_t *pParams, VROverlayIntersectionResults_t *pResults ) = 0; + + /** Processes mouse input from the specified controller as though it were a mouse pointed at a compositor overlay with the + * specified settings. The controller is treated like a laser pointer on the -z axis. The point where the laser pointer would + * intersect with the overlay is the mouse position, the trigger is left mouse, and the track pad is right mouse. + * + * Return true if the controller is pointed at the overlay and an event was generated. */ + virtual bool HandleControllerOverlayInteractionAsMouse( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unControllerDeviceIndex ) = 0; + + /** Returns true if the specified overlay is the hover target. An overlay is the hover target when it is the last overlay "moused over" + * by the virtual mouse pointer */ + virtual bool IsHoverTargetOverlay( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Returns the current Gamepad focus overlay */ + virtual vr::VROverlayHandle_t GetGamepadFocusOverlay() = 0; + + /** Sets the current Gamepad focus overlay */ + virtual EVROverlayError SetGamepadFocusOverlay( VROverlayHandle_t ulNewFocusOverlay ) = 0; + + /** Sets an overlay's neighbor. This will also set the neighbor of the "to" overlay + * to point back to the "from" overlay. If an overlay's neighbor is set to invalid both + * ends will be cleared */ + virtual EVROverlayError SetOverlayNeighbor( EOverlayDirection eDirection, VROverlayHandle_t ulFrom, VROverlayHandle_t ulTo ) = 0; + + /** Changes the Gamepad focus from one overlay to one of its neighbors. Returns VROverlayError_NoNeighbor if there is no + * neighbor in that direction */ + virtual EVROverlayError MoveGamepadFocusToNeighbor( EOverlayDirection eDirection, VROverlayHandle_t ulFrom ) = 0; + + // --------------------------------------------- + // Overlay texture methods + // --------------------------------------------- + + /** Texture to draw for the overlay. This function can only be called by the overlay's creator or renderer process (see SetOverlayRenderingPid) . + * + * OpenGL dirty state: + * glBindTexture + */ + virtual EVROverlayError SetOverlayTexture( VROverlayHandle_t ulOverlayHandle, const Texture_t *pTexture ) = 0; + + /** Use this to tell the overlay system to release the texture set for this overlay. */ + virtual EVROverlayError ClearOverlayTexture( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Separate interface for providing the data as a stream of bytes, but there is an upper bound on data + * that can be sent. This function can only be called by the overlay's renderer process. */ + virtual EVROverlayError SetOverlayRaw( VROverlayHandle_t ulOverlayHandle, void *pvBuffer, uint32_t unWidth, uint32_t unHeight, uint32_t unDepth ) = 0; + + /** Separate interface for providing the image through a filename: can be png or jpg, and should not be bigger than 1920x1080. + * This function can only be called by the overlay's renderer process */ + virtual EVROverlayError SetOverlayFromFile( VROverlayHandle_t ulOverlayHandle, const char *pchFilePath ) = 0; + + /** Get the native texture handle/device for an overlay you have created. + * On windows this handle will be a ID3D11ShaderResourceView with a ID3D11Texture2D bound. + * + * The texture will always be sized to match the backing texture you supplied in SetOverlayTexture above. + * + * You MUST call ReleaseNativeOverlayHandle() with pNativeTextureHandle once you are done with this texture. + * + * pNativeTextureHandle is an OUTPUT, it will be a pointer to a ID3D11ShaderResourceView *. + * pNativeTextureRef is an INPUT and should be a ID3D11Resource *. The device used by pNativeTextureRef will be used to bind pNativeTextureHandle. + */ + virtual EVROverlayError GetOverlayTexture( VROverlayHandle_t ulOverlayHandle, void **pNativeTextureHandle, void *pNativeTextureRef, uint32_t *pWidth, uint32_t *pHeight, uint32_t *pNativeFormat, ETextureType *pAPIType, EColorSpace *pColorSpace, VRTextureBounds_t *pTextureBounds ) = 0; + + /** Release the pNativeTextureHandle provided from the GetOverlayTexture call, this allows the system to free the underlying GPU resources for this object, + * so only do it once you stop rendering this texture. + */ + virtual EVROverlayError ReleaseNativeOverlayHandle( VROverlayHandle_t ulOverlayHandle, void *pNativeTextureHandle ) = 0; + + /** Get the size of the overlay texture */ + virtual EVROverlayError GetOverlayTextureSize( VROverlayHandle_t ulOverlayHandle, uint32_t *pWidth, uint32_t *pHeight ) = 0; + + // ---------------------------------------------- + // Dashboard Overlay Methods + // ---------------------------------------------- + + /** Creates a dashboard overlay and returns its handle */ + virtual EVROverlayError CreateDashboardOverlay( const char *pchOverlayKey, const char *pchOverlayFriendlyName, VROverlayHandle_t * pMainHandle, VROverlayHandle_t *pThumbnailHandle ) = 0; + + /** Returns true if the dashboard is visible */ + virtual bool IsDashboardVisible() = 0; + + /** returns true if the dashboard is visible and the specified overlay is the active system Overlay */ + virtual bool IsActiveDashboardOverlay( VROverlayHandle_t ulOverlayHandle ) = 0; + + /** Sets the dashboard overlay to only appear when the specified process ID has scene focus */ + virtual EVROverlayError SetDashboardOverlaySceneProcess( VROverlayHandle_t ulOverlayHandle, uint32_t unProcessId ) = 0; + + /** Gets the process ID that this dashboard overlay requires to have scene focus */ + virtual EVROverlayError GetDashboardOverlaySceneProcess( VROverlayHandle_t ulOverlayHandle, uint32_t *punProcessId ) = 0; + + /** Shows the dashboard. */ + virtual void ShowDashboard( const char *pchOverlayToShow ) = 0; + + /** Returns the tracked device that has the laser pointer in the dashboard */ + virtual vr::TrackedDeviceIndex_t GetPrimaryDashboardDevice() = 0; + + // --------------------------------------------- + // Keyboard methods + // --------------------------------------------- + + /** Show the virtual keyboard to accept input **/ + virtual EVROverlayError ShowKeyboard( EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, const char *pchDescription, uint32_t unCharMax, const char *pchExistingText, bool bUseMinimalMode, uint64_t uUserValue ) = 0; + + virtual EVROverlayError ShowKeyboardForOverlay( VROverlayHandle_t ulOverlayHandle, EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, const char *pchDescription, uint32_t unCharMax, const char *pchExistingText, bool bUseMinimalMode, uint64_t uUserValue ) = 0; + + /** Get the text that was entered into the text input **/ + virtual uint32_t GetKeyboardText( VR_OUT_STRING() char *pchText, uint32_t cchText ) = 0; + + /** Hide the virtual keyboard **/ + virtual void HideKeyboard() = 0; + + /** Set the position of the keyboard in world space **/ + virtual void SetKeyboardTransformAbsolute( ETrackingUniverseOrigin eTrackingOrigin, const HmdMatrix34_t *pmatTrackingOriginToKeyboardTransform ) = 0; + + /** Set the position of the keyboard in overlay space by telling it to avoid a rectangle in the overlay. Rectangle coords have (0,0) in the bottom left **/ + virtual void SetKeyboardPositionForOverlay( VROverlayHandle_t ulOverlayHandle, HmdRect2_t avoidRect ) = 0; + + // --------------------------------------------- + // Overlay input methods + // --------------------------------------------- + + /** Sets a list of primitives to be used for controller ray intersection + * typically the size of the underlying UI in pixels (not in world space). */ + virtual EVROverlayError SetOverlayIntersectionMask( VROverlayHandle_t ulOverlayHandle, VROverlayIntersectionMaskPrimitive_t *pMaskPrimitives, uint32_t unNumMaskPrimitives, uint32_t unPrimitiveSize = sizeof( VROverlayIntersectionMaskPrimitive_t ) ) = 0; + + virtual EVROverlayError GetOverlayFlags( VROverlayHandle_t ulOverlayHandle, uint32_t *pFlags ) = 0; + + // --------------------------------------------- + // Message box methods + // --------------------------------------------- + + /** Show the message overlay. This will block and return you a result. **/ + virtual VRMessageOverlayResponse ShowMessageOverlay( const char* pchText, const char* pchCaption, const char* pchButton0Text, const char* pchButton1Text = nullptr, const char* pchButton2Text = nullptr, const char* pchButton3Text = nullptr ) = 0; + }; + + static const char * const IVROverlay_Version = "IVROverlay_016"; + +} // namespace vr + +// ivrrendermodels.h +namespace vr +{ + +static const char * const k_pch_Controller_Component_GDC2015 = "gdc2015"; // Canonical coordinate system of the gdc 2015 wired controller, provided for backwards compatibility +static const char * const k_pch_Controller_Component_Base = "base"; // For controllers with an unambiguous 'base'. +static const char * const k_pch_Controller_Component_Tip = "tip"; // For controllers with an unambiguous 'tip' (used for 'laser-pointing') +static const char * const k_pch_Controller_Component_HandGrip = "handgrip"; // Neutral, ambidextrous hand-pose when holding controller. On plane between neutrally posed index finger and thumb +static const char * const k_pch_Controller_Component_Status = "status"; // 1:1 aspect ratio status area, with canonical [0,1] uv mapping + +#pragma pack( push, 8 ) + +/** Errors that can occur with the VR compositor */ +enum EVRRenderModelError +{ + VRRenderModelError_None = 0, + VRRenderModelError_Loading = 100, + VRRenderModelError_NotSupported = 200, + VRRenderModelError_InvalidArg = 300, + VRRenderModelError_InvalidModel = 301, + VRRenderModelError_NoShapes = 302, + VRRenderModelError_MultipleShapes = 303, + VRRenderModelError_TooManyVertices = 304, + VRRenderModelError_MultipleTextures = 305, + VRRenderModelError_BufferTooSmall = 306, + VRRenderModelError_NotEnoughNormals = 307, + VRRenderModelError_NotEnoughTexCoords = 308, + + VRRenderModelError_InvalidTexture = 400, +}; + +typedef uint32_t VRComponentProperties; + +enum EVRComponentProperty +{ + VRComponentProperty_IsStatic = (1 << 0), + VRComponentProperty_IsVisible = (1 << 1), + VRComponentProperty_IsTouched = (1 << 2), + VRComponentProperty_IsPressed = (1 << 3), + VRComponentProperty_IsScrolled = (1 << 4), +}; + +/** Describes state information about a render-model component, including transforms and other dynamic properties */ +struct RenderModel_ComponentState_t +{ + HmdMatrix34_t mTrackingToComponentRenderModel; // Transform required when drawing the component render model + HmdMatrix34_t mTrackingToComponentLocal; // Transform available for attaching to a local component coordinate system (-Z out from surface ) + VRComponentProperties uProperties; +}; + +/** A single vertex in a render model */ +struct RenderModel_Vertex_t +{ + HmdVector3_t vPosition; // position in meters in device space + HmdVector3_t vNormal; + float rfTextureCoord[2]; +}; + +/** A texture map for use on a render model */ +#if defined(__linux__) || defined(__APPLE__) +// This structure was originally defined mis-packed on Linux, preserved for +// compatibility. +#pragma pack( push, 4 ) +#endif + +struct RenderModel_TextureMap_t +{ + uint16_t unWidth, unHeight; // width and height of the texture map in pixels + const uint8_t *rubTextureMapData; // Map texture data. All textures are RGBA with 8 bits per channel per pixel. Data size is width * height * 4ub +}; +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( pop ) +#endif + +/** Session unique texture identifier. Rendermodels which share the same texture will have the same id. +IDs <0 denote the texture is not present */ + +typedef int32_t TextureID_t; + +const TextureID_t INVALID_TEXTURE_ID = -1; + +#if defined(__linux__) || defined(__APPLE__) +// This structure was originally defined mis-packed on Linux, preserved for +// compatibility. +#pragma pack( push, 4 ) +#endif + +struct RenderModel_t +{ + const RenderModel_Vertex_t *rVertexData; // Vertex data for the mesh + uint32_t unVertexCount; // Number of vertices in the vertex data + const uint16_t *rIndexData; // Indices into the vertex data for each triangle + uint32_t unTriangleCount; // Number of triangles in the mesh. Index count is 3 * TriangleCount + TextureID_t diffuseTextureId; // Session unique texture identifier. Rendermodels which share the same texture will have the same id. <0 == texture not present +}; +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( pop ) +#endif + + +struct RenderModel_ControllerMode_State_t +{ + bool bScrollWheelVisible; // is this controller currently set to be in a scroll wheel mode +}; + +#pragma pack( pop ) + +class IVRRenderModels +{ +public: + + /** Loads and returns a render model for use in the application. pchRenderModelName should be a render model name + * from the Prop_RenderModelName_String property or an absolute path name to a render model on disk. + * + * The resulting render model is valid until VR_Shutdown() is called or until FreeRenderModel() is called. When the + * application is finished with the render model it should call FreeRenderModel() to free the memory associated + * with the model. + * + * The method returns VRRenderModelError_Loading while the render model is still being loaded. + * The method returns VRRenderModelError_None once loaded successfully, otherwise will return an error. */ + virtual EVRRenderModelError LoadRenderModel_Async( const char *pchRenderModelName, RenderModel_t **ppRenderModel ) = 0; + + /** Frees a previously returned render model + * It is safe to call this on a null ptr. */ + virtual void FreeRenderModel( RenderModel_t *pRenderModel ) = 0; + + /** Loads and returns a texture for use in the application. */ + virtual EVRRenderModelError LoadTexture_Async( TextureID_t textureId, RenderModel_TextureMap_t **ppTexture ) = 0; + + /** Frees a previously returned texture + * It is safe to call this on a null ptr. */ + virtual void FreeTexture( RenderModel_TextureMap_t *pTexture ) = 0; + + /** Creates a D3D11 texture and loads data into it. */ + virtual EVRRenderModelError LoadTextureD3D11_Async( TextureID_t textureId, void *pD3D11Device, void **ppD3D11Texture2D ) = 0; + + /** Helper function to copy the bits into an existing texture. */ + virtual EVRRenderModelError LoadIntoTextureD3D11_Async( TextureID_t textureId, void *pDstTexture ) = 0; + + /** Use this to free textures created with LoadTextureD3D11_Async instead of calling Release on them. */ + virtual void FreeTextureD3D11( void *pD3D11Texture2D ) = 0; + + /** Use this to get the names of available render models. Index does not correlate to a tracked device index, but + * is only used for iterating over all available render models. If the index is out of range, this function will return 0. + * Otherwise, it will return the size of the buffer required for the name. */ + virtual uint32_t GetRenderModelName( uint32_t unRenderModelIndex, VR_OUT_STRING() char *pchRenderModelName, uint32_t unRenderModelNameLen ) = 0; + + /** Returns the number of available render models. */ + virtual uint32_t GetRenderModelCount() = 0; + + + /** Returns the number of components of the specified render model. + * Components are useful when client application wish to draw, label, or otherwise interact with components of tracked objects. + * Examples controller components: + * renderable things such as triggers, buttons + * non-renderable things which include coordinate systems such as 'tip', 'base', a neutral controller agnostic hand-pose + * If all controller components are enumerated and rendered, it will be equivalent to drawing the traditional render model + * Returns 0 if components not supported, >0 otherwise */ + virtual uint32_t GetComponentCount( const char *pchRenderModelName ) = 0; + + /** Use this to get the names of available components. Index does not correlate to a tracked device index, but + * is only used for iterating over all available components. If the index is out of range, this function will return 0. + * Otherwise, it will return the size of the buffer required for the name. */ + virtual uint32_t GetComponentName( const char *pchRenderModelName, uint32_t unComponentIndex, VR_OUT_STRING( ) char *pchComponentName, uint32_t unComponentNameLen ) = 0; + + /** Get the button mask for all buttons associated with this component + * If no buttons (or axes) are associated with this component, return 0 + * Note: multiple components may be associated with the same button. Ex: two grip buttons on a single controller. + * Note: A single component may be associated with multiple buttons. Ex: A trackpad which also provides "D-pad" functionality */ + virtual uint64_t GetComponentButtonMask( const char *pchRenderModelName, const char *pchComponentName ) = 0; + + /** Use this to get the render model name for the specified rendermode/component combination, to be passed to LoadRenderModel. + * If the component name is out of range, this function will return 0. + * Otherwise, it will return the size of the buffer required for the name. */ + virtual uint32_t GetComponentRenderModelName( const char *pchRenderModelName, const char *pchComponentName, VR_OUT_STRING( ) char *pchComponentRenderModelName, uint32_t unComponentRenderModelNameLen ) = 0; + + /** Use this to query information about the component, as a function of the controller state. + * + * For dynamic controller components (ex: trigger) values will reflect component motions + * For static components this will return a consistent value independent of the VRControllerState_t + * + * If the pchRenderModelName or pchComponentName is invalid, this will return false (and transforms will be set to identity). + * Otherwise, return true + * Note: For dynamic objects, visibility may be dynamic. (I.e., true/false will be returned based on controller state and controller mode state ) */ + virtual bool GetComponentState( const char *pchRenderModelName, const char *pchComponentName, const vr::VRControllerState_t *pControllerState, const RenderModel_ControllerMode_State_t *pState, RenderModel_ComponentState_t *pComponentState ) = 0; + + /** Returns true if the render model has a component with the specified name */ + virtual bool RenderModelHasComponent( const char *pchRenderModelName, const char *pchComponentName ) = 0; + + /** Returns the URL of the thumbnail image for this rendermodel */ + virtual uint32_t GetRenderModelThumbnailURL( const char *pchRenderModelName, VR_OUT_STRING() char *pchThumbnailURL, uint32_t unThumbnailURLLen, vr::EVRRenderModelError *peError ) = 0; + + /** Provides a render model path that will load the unskinned model if the model name provided has been replace by the user. If the model + * hasn't been replaced the path value will still be a valid path to load the model. Pass this to LoadRenderModel_Async, etc. to load the + * model. */ + virtual uint32_t GetRenderModelOriginalPath( const char *pchRenderModelName, VR_OUT_STRING() char *pchOriginalPath, uint32_t unOriginalPathLen, vr::EVRRenderModelError *peError ) = 0; + + /** Returns a string for a render model error */ + virtual const char *GetRenderModelErrorNameFromEnum( vr::EVRRenderModelError error ) = 0; +}; + +static const char * const IVRRenderModels_Version = "IVRRenderModels_005"; + +} + + +// ivrextendeddisplay.h +namespace vr +{ + + /** NOTE: Use of this interface is not recommended in production applications. It will not work for displays which use + * direct-to-display mode. Creating our own window is also incompatible with the VR compositor and is not available when the compositor is running. */ + class IVRExtendedDisplay + { + public: + + /** Size and position that the window needs to be on the VR display. */ + virtual void GetWindowBounds( int32_t *pnX, int32_t *pnY, uint32_t *pnWidth, uint32_t *pnHeight ) = 0; + + /** Gets the viewport in the frame buffer to draw the output of the distortion into */ + virtual void GetEyeOutputViewport( EVREye eEye, uint32_t *pnX, uint32_t *pnY, uint32_t *pnWidth, uint32_t *pnHeight ) = 0; + + /** [D3D10/11 Only] + * Returns the adapter index and output index that the user should pass into EnumAdapters and EnumOutputs + * to create the device and swap chain in DX10 and DX11. If an error occurs both indices will be set to -1. + */ + virtual void GetDXGIOutputInfo( int32_t *pnAdapterIndex, int32_t *pnAdapterOutputIndex ) = 0; + + }; + + static const char * const IVRExtendedDisplay_Version = "IVRExtendedDisplay_001"; + +} + + +// ivrtrackedcamera.h +namespace vr +{ + +class IVRTrackedCamera +{ +public: + /** Returns a string for an error */ + virtual const char *GetCameraErrorNameFromEnum( vr::EVRTrackedCameraError eCameraError ) = 0; + + /** For convenience, same as tracked property request Prop_HasCamera_Bool */ + virtual vr::EVRTrackedCameraError HasCamera( vr::TrackedDeviceIndex_t nDeviceIndex, bool *pHasCamera ) = 0; + + /** Gets size of the image frame. */ + virtual vr::EVRTrackedCameraError GetCameraFrameSize( vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, uint32_t *pnWidth, uint32_t *pnHeight, uint32_t *pnFrameBufferSize ) = 0; + + virtual vr::EVRTrackedCameraError GetCameraIntrinsics( vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, vr::HmdVector2_t *pFocalLength, vr::HmdVector2_t *pCenter ) = 0; + + virtual vr::EVRTrackedCameraError GetCameraProjection( vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, float flZNear, float flZFar, vr::HmdMatrix44_t *pProjection ) = 0; + + /** Acquiring streaming service permits video streaming for the caller. Releasing hints the system that video services do not need to be maintained for this client. + * If the camera has not already been activated, a one time spin up may incur some auto exposure as well as initial streaming frame delays. + * The camera should be considered a global resource accessible for shared consumption but not exclusive to any caller. + * The camera may go inactive due to lack of active consumers or headset idleness. */ + virtual vr::EVRTrackedCameraError AcquireVideoStreamingService( vr::TrackedDeviceIndex_t nDeviceIndex, vr::TrackedCameraHandle_t *pHandle ) = 0; + virtual vr::EVRTrackedCameraError ReleaseVideoStreamingService( vr::TrackedCameraHandle_t hTrackedCamera ) = 0; + + /** Copies the image frame into a caller's provided buffer. The image data is currently provided as RGBA data, 4 bytes per pixel. + * A caller can provide null for the framebuffer or frameheader if not desired. Requesting the frame header first, followed by the frame buffer allows + * the caller to determine if the frame as advanced per the frame header sequence. + * If there is no frame available yet, due to initial camera spinup or re-activation, the error will be VRTrackedCameraError_NoFrameAvailable. + * Ideally a caller should be polling at ~16ms intervals */ + virtual vr::EVRTrackedCameraError GetVideoStreamFrameBuffer( vr::TrackedCameraHandle_t hTrackedCamera, vr::EVRTrackedCameraFrameType eFrameType, void *pFrameBuffer, uint32_t nFrameBufferSize, vr::CameraVideoStreamFrameHeader_t *pFrameHeader, uint32_t nFrameHeaderSize ) = 0; + + /** Gets size of the image frame. */ + virtual vr::EVRTrackedCameraError GetVideoStreamTextureSize( vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, vr::VRTextureBounds_t *pTextureBounds, uint32_t *pnWidth, uint32_t *pnHeight ) = 0; + + /** Access a shared D3D11 texture for the specified tracked camera stream. + * The camera frame type VRTrackedCameraFrameType_Undistorted is not supported directly as a shared texture. It is an interior subregion of the shared texture VRTrackedCameraFrameType_MaximumUndistorted. + * Instead, use GetVideoStreamTextureSize() with VRTrackedCameraFrameType_Undistorted to determine the proper interior subregion bounds along with GetVideoStreamTextureD3D11() with + * VRTrackedCameraFrameType_MaximumUndistorted to provide the texture. The VRTrackedCameraFrameType_MaximumUndistorted will yield an image where the invalid regions are decoded + * by the alpha channel having a zero component. The valid regions all have a non-zero alpha component. The subregion as described by VRTrackedCameraFrameType_Undistorted + * guarantees a rectangle where all pixels are valid. */ + virtual vr::EVRTrackedCameraError GetVideoStreamTextureD3D11( vr::TrackedCameraHandle_t hTrackedCamera, vr::EVRTrackedCameraFrameType eFrameType, void *pD3D11DeviceOrResource, void **ppD3D11ShaderResourceView, vr::CameraVideoStreamFrameHeader_t *pFrameHeader, uint32_t nFrameHeaderSize ) = 0; + + /** Access a shared GL texture for the specified tracked camera stream */ + virtual vr::EVRTrackedCameraError GetVideoStreamTextureGL( vr::TrackedCameraHandle_t hTrackedCamera, vr::EVRTrackedCameraFrameType eFrameType, vr::glUInt_t *pglTextureId, vr::CameraVideoStreamFrameHeader_t *pFrameHeader, uint32_t nFrameHeaderSize ) = 0; + virtual vr::EVRTrackedCameraError ReleaseVideoStreamTextureGL( vr::TrackedCameraHandle_t hTrackedCamera, vr::glUInt_t glTextureId ) = 0; +}; + +static const char * const IVRTrackedCamera_Version = "IVRTrackedCamera_003"; + +} // namespace vr + + +// ivrscreenshots.h +namespace vr +{ + +/** Errors that can occur with the VR compositor */ +enum EVRScreenshotError +{ + VRScreenshotError_None = 0, + VRScreenshotError_RequestFailed = 1, + VRScreenshotError_IncompatibleVersion = 100, + VRScreenshotError_NotFound = 101, + VRScreenshotError_BufferTooSmall = 102, + VRScreenshotError_ScreenshotAlreadyInProgress = 108, +}; + +/** Allows the application to generate screenshots */ +class IVRScreenshots +{ +public: + /** Request a screenshot of the requested type. + * A request of the VRScreenshotType_Stereo type will always + * work. Other types will depend on the underlying application + * support. + * The first file name is for the preview image and should be a + * regular screenshot (ideally from the left eye). The second + * is the VR screenshot in the correct format. They should be + * in the same aspect ratio. Formats per type: + * VRScreenshotType_Mono: the VR filename is ignored (can be + * nullptr), this is a normal flat single shot. + * VRScreenshotType_Stereo: The VR image should be a + * side-by-side with the left eye image on the left. + * VRScreenshotType_Cubemap: The VR image should be six square + * images composited horizontally. + * VRScreenshotType_StereoPanorama: above/below with left eye + * panorama being the above image. Image is typically square + * with the panorama being 2x horizontal. + * + * Note that the VR dashboard will call this function when + * the user presses the screenshot binding (currently System + * Button + Trigger). If Steam is running, the destination + * file names will be in %TEMP% and will be copied into + * Steam's screenshot library for the running application + * once SubmitScreenshot() is called. + * If Steam is not running, the paths will be in the user's + * documents folder under Documents\SteamVR\Screenshots. + * Other VR applications can call this to initiate a + * screenshot outside of user control. + * The destination file names do not need an extension, + * will be replaced with the correct one for the format + * which is currently .png. */ + virtual vr::EVRScreenshotError RequestScreenshot( vr::ScreenshotHandle_t *pOutScreenshotHandle, vr::EVRScreenshotType type, const char *pchPreviewFilename, const char *pchVRFilename ) = 0; + + /** Called by the running VR application to indicate that it + * wishes to be in charge of screenshots. If the + * application does not call this, the Compositor will only + * support VRScreenshotType_Stereo screenshots that will be + * captured without notification to the running app. + * Once hooked your application will receive a + * VREvent_RequestScreenshot event when the user presses the + * buttons to take a screenshot. */ + virtual vr::EVRScreenshotError HookScreenshot( VR_ARRAY_COUNT( numTypes ) const vr::EVRScreenshotType *pSupportedTypes, int numTypes ) = 0; + + /** When your application receives a + * VREvent_RequestScreenshot event, call these functions to get + * the details of the screenshot request. */ + virtual vr::EVRScreenshotType GetScreenshotPropertyType( vr::ScreenshotHandle_t screenshotHandle, vr::EVRScreenshotError *pError ) = 0; + + /** Get the filename for the preview or vr image (see + * vr::EScreenshotPropertyFilenames). The return value is + * the size of the string. */ + virtual uint32_t GetScreenshotPropertyFilename( vr::ScreenshotHandle_t screenshotHandle, vr::EVRScreenshotPropertyFilenames filenameType, VR_OUT_STRING() char *pchFilename, uint32_t cchFilename, vr::EVRScreenshotError *pError ) = 0; + + /** Call this if the application is taking the screen shot + * will take more than a few ms processing. This will result + * in an overlay being presented that shows a completion + * bar. */ + virtual vr::EVRScreenshotError UpdateScreenshotProgress( vr::ScreenshotHandle_t screenshotHandle, float flProgress ) = 0; + + /** Tells the compositor to take an internal screenshot of + * type VRScreenshotType_Stereo. It will take the current + * submitted scene textures of the running application and + * write them into the preview image and a side-by-side file + * for the VR image. + * This is similar to request screenshot, but doesn't ever + * talk to the application, just takes the shot and submits. */ + virtual vr::EVRScreenshotError TakeStereoScreenshot( vr::ScreenshotHandle_t *pOutScreenshotHandle, const char *pchPreviewFilename, const char *pchVRFilename ) = 0; + + /** Submit the completed screenshot. If Steam is running + * this will call into the Steam client and upload the + * screenshot to the screenshots section of the library for + * the running application. If Steam is not running, this + * function will display a notification to the user that the + * screenshot was taken. The paths should be full paths with + * extensions. + * File paths should be absolute including extensions. + * screenshotHandle can be k_unScreenshotHandleInvalid if this + * was a new shot taking by the app to be saved and not + * initiated by a user (achievement earned or something) */ + virtual vr::EVRScreenshotError SubmitScreenshot( vr::ScreenshotHandle_t screenshotHandle, vr::EVRScreenshotType type, const char *pchSourcePreviewFilename, const char *pchSourceVRFilename ) = 0; +}; + +static const char * const IVRScreenshots_Version = "IVRScreenshots_001"; + +} // namespace vr + + + +// ivrresources.h +namespace vr +{ + +class IVRResources +{ +public: + + // ------------------------------------ + // Shared Resource Methods + // ------------------------------------ + + /** Loads the specified resource into the provided buffer if large enough. + * Returns the size in bytes of the buffer required to hold the specified resource. */ + virtual uint32_t LoadSharedResource( const char *pchResourceName, char *pchBuffer, uint32_t unBufferLen ) = 0; + + /** Provides the full path to the specified resource. Resource names can include named directories for + * drivers and other things, and this resolves all of those and returns the actual physical path. + * pchResourceTypeDirectory is the subdirectory of resources to look in. */ + virtual uint32_t GetResourceFullPath( const char *pchResourceName, const char *pchResourceTypeDirectory, char *pchPathBuffer, uint32_t unBufferLen ) = 0; +}; + +static const char * const IVRResources_Version = "IVRResources_001"; + + +} +// ivrdrivermanager.h +namespace vr +{ + +class IVRDriverManager +{ +public: + virtual uint32_t GetDriverCount() const = 0; + + /** Returns the length of the number of bytes necessary to hold this string including the trailing null. */ + virtual uint32_t GetDriverName( vr::DriverId_t nDriver, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize ) = 0; +}; + +static const char * const IVRDriverManager_Version = "IVRDriverManager_001"; + +} // namespace vr + + +// End + +#endif // _OPENVR_API + + +namespace vr +{ + /** Finds the active installation of the VR API and initializes it. The provided path must be absolute + * or relative to the current working directory. These are the local install versions of the equivalent + * functions in steamvr.h and will work without a local Steam install. + * + * This path is to the "root" of the VR API install. That's the directory with + * the "drivers" directory and a platform (i.e. "win32") directory in it, not the directory with the DLL itself. + */ + inline IVRSystem *VR_Init( EVRInitError *peError, EVRApplicationType eApplicationType ); + + /** unloads vrclient.dll. Any interface pointers from the interface are + * invalid after this point */ + inline void VR_Shutdown(); + + /** Returns true if there is an HMD attached. This check is as lightweight as possible and + * can be called outside of VR_Init/VR_Shutdown. It should be used when an application wants + * to know if initializing VR is a possibility but isn't ready to take that step yet. + */ + VR_INTERFACE bool VR_CALLTYPE VR_IsHmdPresent(); + + /** Returns true if the OpenVR runtime is installed. */ + VR_INTERFACE bool VR_CALLTYPE VR_IsRuntimeInstalled(); + + /** Returns where the OpenVR runtime is installed. */ + VR_INTERFACE const char *VR_CALLTYPE VR_RuntimePath(); + + /** Returns the name of the enum value for an EVRInitError. This function may be called outside of VR_Init()/VR_Shutdown(). */ + VR_INTERFACE const char *VR_CALLTYPE VR_GetVRInitErrorAsSymbol( EVRInitError error ); + + /** Returns an English string for an EVRInitError. Applications should call VR_GetVRInitErrorAsSymbol instead and + * use that as a key to look up their own localized error message. This function may be called outside of VR_Init()/VR_Shutdown(). */ + VR_INTERFACE const char *VR_CALLTYPE VR_GetVRInitErrorAsEnglishDescription( EVRInitError error ); + + /** Returns the interface of the specified version. This method must be called after VR_Init. The + * pointer returned is valid until VR_Shutdown is called. + */ + VR_INTERFACE void *VR_CALLTYPE VR_GetGenericInterface( const char *pchInterfaceVersion, EVRInitError *peError ); + + /** Returns whether the interface of the specified version exists. + */ + VR_INTERFACE bool VR_CALLTYPE VR_IsInterfaceVersionValid( const char *pchInterfaceVersion ); + + /** Returns a token that represents whether the VR interface handles need to be reloaded */ + VR_INTERFACE uint32_t VR_CALLTYPE VR_GetInitToken(); + + // These typedefs allow old enum names from SDK 0.9.11 to be used in applications. + // They will go away in the future. + typedef EVRInitError HmdError; + typedef EVREye Hmd_Eye; + typedef EColorSpace ColorSpace; + typedef ETrackingResult HmdTrackingResult; + typedef ETrackedDeviceClass TrackedDeviceClass; + typedef ETrackingUniverseOrigin TrackingUniverseOrigin; + typedef ETrackedDeviceProperty TrackedDeviceProperty; + typedef ETrackedPropertyError TrackedPropertyError; + typedef EVRSubmitFlags VRSubmitFlags_t; + typedef EVRState VRState_t; + typedef ECollisionBoundsStyle CollisionBoundsStyle_t; + typedef EVROverlayError VROverlayError; + typedef EVRFirmwareError VRFirmwareError; + typedef EVRCompositorError VRCompositorError; + typedef EVRScreenshotError VRScreenshotsError; + + inline uint32_t &VRToken() + { + static uint32_t token; + return token; + } + + class COpenVRContext + { + public: + COpenVRContext() { Clear(); } + void Clear(); + + inline void CheckClear() + { + if ( VRToken() != VR_GetInitToken() ) + { + Clear(); + VRToken() = VR_GetInitToken(); + } + } + + IVRSystem *VRSystem() + { + CheckClear(); + if ( m_pVRSystem == nullptr ) + { + EVRInitError eError; + m_pVRSystem = ( IVRSystem * )VR_GetGenericInterface( IVRSystem_Version, &eError ); + } + return m_pVRSystem; + } + IVRChaperone *VRChaperone() + { + CheckClear(); + if ( m_pVRChaperone == nullptr ) + { + EVRInitError eError; + m_pVRChaperone = ( IVRChaperone * )VR_GetGenericInterface( IVRChaperone_Version, &eError ); + } + return m_pVRChaperone; + } + + IVRChaperoneSetup *VRChaperoneSetup() + { + CheckClear(); + if ( m_pVRChaperoneSetup == nullptr ) + { + EVRInitError eError; + m_pVRChaperoneSetup = ( IVRChaperoneSetup * )VR_GetGenericInterface( IVRChaperoneSetup_Version, &eError ); + } + return m_pVRChaperoneSetup; + } + + IVRCompositor *VRCompositor() + { + CheckClear(); + if ( m_pVRCompositor == nullptr ) + { + EVRInitError eError; + m_pVRCompositor = ( IVRCompositor * )VR_GetGenericInterface( IVRCompositor_Version, &eError ); + } + return m_pVRCompositor; + } + + IVROverlay *VROverlay() + { + CheckClear(); + if ( m_pVROverlay == nullptr ) + { + EVRInitError eError; + m_pVROverlay = ( IVROverlay * )VR_GetGenericInterface( IVROverlay_Version, &eError ); + } + return m_pVROverlay; + } + + IVRResources *VRResources() + { + CheckClear(); + if ( m_pVRResources == nullptr ) + { + EVRInitError eError; + m_pVRResources = (IVRResources *)VR_GetGenericInterface( IVRResources_Version, &eError ); + } + return m_pVRResources; + } + + IVRScreenshots *VRScreenshots() + { + CheckClear(); + if ( m_pVRScreenshots == nullptr ) + { + EVRInitError eError; + m_pVRScreenshots = ( IVRScreenshots * )VR_GetGenericInterface( IVRScreenshots_Version, &eError ); + } + return m_pVRScreenshots; + } + + IVRRenderModels *VRRenderModels() + { + CheckClear(); + if ( m_pVRRenderModels == nullptr ) + { + EVRInitError eError; + m_pVRRenderModels = ( IVRRenderModels * )VR_GetGenericInterface( IVRRenderModels_Version, &eError ); + } + return m_pVRRenderModels; + } + + IVRExtendedDisplay *VRExtendedDisplay() + { + CheckClear(); + if ( m_pVRExtendedDisplay == nullptr ) + { + EVRInitError eError; + m_pVRExtendedDisplay = ( IVRExtendedDisplay * )VR_GetGenericInterface( IVRExtendedDisplay_Version, &eError ); + } + return m_pVRExtendedDisplay; + } + + IVRSettings *VRSettings() + { + CheckClear(); + if ( m_pVRSettings == nullptr ) + { + EVRInitError eError; + m_pVRSettings = ( IVRSettings * )VR_GetGenericInterface( IVRSettings_Version, &eError ); + } + return m_pVRSettings; + } + + IVRApplications *VRApplications() + { + CheckClear(); + if ( m_pVRApplications == nullptr ) + { + EVRInitError eError; + m_pVRApplications = ( IVRApplications * )VR_GetGenericInterface( IVRApplications_Version, &eError ); + } + return m_pVRApplications; + } + + IVRTrackedCamera *VRTrackedCamera() + { + CheckClear(); + if ( m_pVRTrackedCamera == nullptr ) + { + EVRInitError eError; + m_pVRTrackedCamera = ( IVRTrackedCamera * )VR_GetGenericInterface( IVRTrackedCamera_Version, &eError ); + } + return m_pVRTrackedCamera; + } + + IVRDriverManager *VRDriverManager() + { + CheckClear(); + if ( !m_pVRDriverManager ) + { + EVRInitError eError; + m_pVRDriverManager = ( IVRDriverManager * )VR_GetGenericInterface( IVRDriverManager_Version, &eError ); + } + return m_pVRDriverManager; + } + + private: + IVRSystem *m_pVRSystem; + IVRChaperone *m_pVRChaperone; + IVRChaperoneSetup *m_pVRChaperoneSetup; + IVRCompositor *m_pVRCompositor; + IVROverlay *m_pVROverlay; + IVRResources *m_pVRResources; + IVRRenderModels *m_pVRRenderModels; + IVRExtendedDisplay *m_pVRExtendedDisplay; + IVRSettings *m_pVRSettings; + IVRApplications *m_pVRApplications; + IVRTrackedCamera *m_pVRTrackedCamera; + IVRScreenshots *m_pVRScreenshots; + IVRDriverManager *m_pVRDriverManager; + }; + + inline COpenVRContext &OpenVRInternal_ModuleContext() + { + static void *ctx[ sizeof( COpenVRContext ) / sizeof( void * ) ]; + return *( COpenVRContext * )ctx; // bypass zero-init constructor + } + + inline IVRSystem *VR_CALLTYPE VRSystem() { return OpenVRInternal_ModuleContext().VRSystem(); } + inline IVRChaperone *VR_CALLTYPE VRChaperone() { return OpenVRInternal_ModuleContext().VRChaperone(); } + inline IVRChaperoneSetup *VR_CALLTYPE VRChaperoneSetup() { return OpenVRInternal_ModuleContext().VRChaperoneSetup(); } + inline IVRCompositor *VR_CALLTYPE VRCompositor() { return OpenVRInternal_ModuleContext().VRCompositor(); } + inline IVROverlay *VR_CALLTYPE VROverlay() { return OpenVRInternal_ModuleContext().VROverlay(); } + inline IVRScreenshots *VR_CALLTYPE VRScreenshots() { return OpenVRInternal_ModuleContext().VRScreenshots(); } + inline IVRRenderModels *VR_CALLTYPE VRRenderModels() { return OpenVRInternal_ModuleContext().VRRenderModels(); } + inline IVRApplications *VR_CALLTYPE VRApplications() { return OpenVRInternal_ModuleContext().VRApplications(); } + inline IVRSettings *VR_CALLTYPE VRSettings() { return OpenVRInternal_ModuleContext().VRSettings(); } + inline IVRResources *VR_CALLTYPE VRResources() { return OpenVRInternal_ModuleContext().VRResources(); } + inline IVRExtendedDisplay *VR_CALLTYPE VRExtendedDisplay() { return OpenVRInternal_ModuleContext().VRExtendedDisplay(); } + inline IVRTrackedCamera *VR_CALLTYPE VRTrackedCamera() { return OpenVRInternal_ModuleContext().VRTrackedCamera(); } + inline IVRDriverManager *VR_CALLTYPE VRDriverManager() { return OpenVRInternal_ModuleContext().VRDriverManager(); } + + inline void COpenVRContext::Clear() + { + m_pVRSystem = nullptr; + m_pVRChaperone = nullptr; + m_pVRChaperoneSetup = nullptr; + m_pVRCompositor = nullptr; + m_pVROverlay = nullptr; + m_pVRRenderModels = nullptr; + m_pVRExtendedDisplay = nullptr; + m_pVRSettings = nullptr; + m_pVRApplications = nullptr; + m_pVRTrackedCamera = nullptr; + m_pVRResources = nullptr; + m_pVRScreenshots = nullptr; + m_pVRDriverManager = nullptr; + } + + VR_INTERFACE uint32_t VR_CALLTYPE VR_InitInternal( EVRInitError *peError, EVRApplicationType eApplicationType ); + VR_INTERFACE void VR_CALLTYPE VR_ShutdownInternal(); + + /** Finds the active installation of vrclient.dll and initializes it */ + inline IVRSystem *VR_Init( EVRInitError *peError, EVRApplicationType eApplicationType ) + { + IVRSystem *pVRSystem = nullptr; + + EVRInitError eError; + VRToken() = VR_InitInternal( &eError, eApplicationType ); + COpenVRContext &ctx = OpenVRInternal_ModuleContext(); + ctx.Clear(); + + if ( eError == VRInitError_None ) + { + if ( VR_IsInterfaceVersionValid( IVRSystem_Version ) ) + { + pVRSystem = VRSystem(); + } + else + { + VR_ShutdownInternal(); + eError = VRInitError_Init_InterfaceNotFound; + } + } + + if ( peError ) + *peError = eError; + return pVRSystem; + } + + /** unloads vrclient.dll. Any interface pointers from the interface are + * invalid after this point */ + inline void VR_Shutdown() + { + VR_ShutdownInternal(); + } +} diff --git a/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/Current/Headers/openvr_api.cs b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/Current/Headers/openvr_api.cs new file mode 100644 index 000000000..2596b3783 --- /dev/null +++ b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/Current/Headers/openvr_api.cs @@ -0,0 +1,4997 @@ +//======= Copyright (c) Valve Corporation, All rights reserved. =============== +// +// Purpose: This file contains C#/managed code bindings for the OpenVR interfaces +// This file is auto-generated, do not edit it. +// +//============================================================================= + +using System; +using System.Runtime.InteropServices; +using Valve.VR; + +namespace Valve.VR +{ + +[StructLayout(LayoutKind.Sequential)] +public struct IVRSystem +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetRecommendedRenderTargetSize(ref uint pnWidth, ref uint pnHeight); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetRecommendedRenderTargetSize GetRecommendedRenderTargetSize; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate HmdMatrix44_t _GetProjectionMatrix(EVREye eEye, float fNearZ, float fFarZ); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetProjectionMatrix GetProjectionMatrix; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetProjectionRaw(EVREye eEye, ref float pfLeft, ref float pfRight, ref float pfTop, ref float pfBottom); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetProjectionRaw GetProjectionRaw; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _ComputeDistortion(EVREye eEye, float fU, float fV, ref DistortionCoordinates_t pDistortionCoordinates); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ComputeDistortion ComputeDistortion; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate HmdMatrix34_t _GetEyeToHeadTransform(EVREye eEye); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetEyeToHeadTransform GetEyeToHeadTransform; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetTimeSinceLastVsync(ref float pfSecondsSinceLastVsync, ref ulong pulFrameCounter); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetTimeSinceLastVsync GetTimeSinceLastVsync; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate int _GetD3D9AdapterIndex(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetD3D9AdapterIndex GetD3D9AdapterIndex; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetDXGIOutputInfo(ref int pnAdapterIndex); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetDXGIOutputInfo GetDXGIOutputInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetOutputDevice(ref ulong pnDevice, ETextureType textureType); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOutputDevice GetOutputDevice; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsDisplayOnDesktop(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsDisplayOnDesktop IsDisplayOnDesktop; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _SetDisplayVisibility(bool bIsVisibleOnDesktop); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetDisplayVisibility SetDisplayVisibility; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetDeviceToAbsoluteTrackingPose(ETrackingUniverseOrigin eOrigin, float fPredictedSecondsToPhotonsFromNow, [In, Out] TrackedDevicePose_t[] pTrackedDevicePoseArray, uint unTrackedDevicePoseArrayCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetDeviceToAbsoluteTrackingPose GetDeviceToAbsoluteTrackingPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ResetSeatedZeroPose(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ResetSeatedZeroPose ResetSeatedZeroPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate HmdMatrix34_t _GetSeatedZeroPoseToStandingAbsoluteTrackingPose(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetSeatedZeroPoseToStandingAbsoluteTrackingPose GetSeatedZeroPoseToStandingAbsoluteTrackingPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate HmdMatrix34_t _GetRawZeroPoseToStandingAbsoluteTrackingPose(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetRawZeroPoseToStandingAbsoluteTrackingPose GetRawZeroPoseToStandingAbsoluteTrackingPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetSortedTrackedDeviceIndicesOfClass(ETrackedDeviceClass eTrackedDeviceClass, [In, Out] uint[] punTrackedDeviceIndexArray, uint unTrackedDeviceIndexArrayCount, uint unRelativeToTrackedDeviceIndex); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetSortedTrackedDeviceIndicesOfClass GetSortedTrackedDeviceIndicesOfClass; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EDeviceActivityLevel _GetTrackedDeviceActivityLevel(uint unDeviceId); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetTrackedDeviceActivityLevel GetTrackedDeviceActivityLevel; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ApplyTransform(ref TrackedDevicePose_t pOutputPose, ref TrackedDevicePose_t pTrackedDevicePose, ref HmdMatrix34_t pTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ApplyTransform ApplyTransform; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetTrackedDeviceIndexForControllerRole(ETrackedControllerRole unDeviceType); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetTrackedDeviceIndexForControllerRole GetTrackedDeviceIndexForControllerRole; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ETrackedControllerRole _GetControllerRoleForTrackedDeviceIndex(uint unDeviceIndex); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetControllerRoleForTrackedDeviceIndex GetControllerRoleForTrackedDeviceIndex; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ETrackedDeviceClass _GetTrackedDeviceClass(uint unDeviceIndex); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetTrackedDeviceClass GetTrackedDeviceClass; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsTrackedDeviceConnected(uint unDeviceIndex); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsTrackedDeviceConnected IsTrackedDeviceConnected; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetBoolTrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, ref ETrackedPropertyError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetBoolTrackedDeviceProperty GetBoolTrackedDeviceProperty; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate float _GetFloatTrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, ref ETrackedPropertyError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetFloatTrackedDeviceProperty GetFloatTrackedDeviceProperty; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate int _GetInt32TrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, ref ETrackedPropertyError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetInt32TrackedDeviceProperty GetInt32TrackedDeviceProperty; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ulong _GetUint64TrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, ref ETrackedPropertyError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetUint64TrackedDeviceProperty GetUint64TrackedDeviceProperty; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate HmdMatrix34_t _GetMatrix34TrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, ref ETrackedPropertyError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetMatrix34TrackedDeviceProperty GetMatrix34TrackedDeviceProperty; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetStringTrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, System.Text.StringBuilder pchValue, uint unBufferSize, ref ETrackedPropertyError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetStringTrackedDeviceProperty GetStringTrackedDeviceProperty; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetPropErrorNameFromEnum(ETrackedPropertyError error); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetPropErrorNameFromEnum GetPropErrorNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _PollNextEvent(ref VREvent_t pEvent, uint uncbVREvent); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _PollNextEvent PollNextEvent; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _PollNextEventWithPose(ETrackingUniverseOrigin eOrigin, ref VREvent_t pEvent, uint uncbVREvent, ref TrackedDevicePose_t pTrackedDevicePose); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _PollNextEventWithPose PollNextEventWithPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetEventTypeNameFromEnum(EVREventType eType); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetEventTypeNameFromEnum GetEventTypeNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate HiddenAreaMesh_t _GetHiddenAreaMesh(EVREye eEye, EHiddenAreaMeshType type); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetHiddenAreaMesh GetHiddenAreaMesh; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetControllerState(uint unControllerDeviceIndex, ref VRControllerState_t pControllerState, uint unControllerStateSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetControllerState GetControllerState; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetControllerStateWithPose(ETrackingUniverseOrigin eOrigin, uint unControllerDeviceIndex, ref VRControllerState_t pControllerState, uint unControllerStateSize, ref TrackedDevicePose_t pTrackedDevicePose); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetControllerStateWithPose GetControllerStateWithPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _TriggerHapticPulse(uint unControllerDeviceIndex, uint unAxisId, char usDurationMicroSec); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _TriggerHapticPulse TriggerHapticPulse; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetButtonIdNameFromEnum(EVRButtonId eButtonId); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetButtonIdNameFromEnum GetButtonIdNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetControllerAxisTypeNameFromEnum(EVRControllerAxisType eAxisType); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetControllerAxisTypeNameFromEnum GetControllerAxisTypeNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _CaptureInputFocus(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CaptureInputFocus CaptureInputFocus; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ReleaseInputFocus(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ReleaseInputFocus ReleaseInputFocus; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsInputFocusCapturedByAnotherProcess(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsInputFocusCapturedByAnotherProcess IsInputFocusCapturedByAnotherProcess; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _DriverDebugRequest(uint unDeviceIndex, string pchRequest, string pchResponseBuffer, uint unResponseBufferSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _DriverDebugRequest DriverDebugRequest; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRFirmwareError _PerformFirmwareUpdate(uint unDeviceIndex); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _PerformFirmwareUpdate PerformFirmwareUpdate; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _AcknowledgeQuit_Exiting(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _AcknowledgeQuit_Exiting AcknowledgeQuit_Exiting; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _AcknowledgeQuit_UserPrompt(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _AcknowledgeQuit_UserPrompt AcknowledgeQuit_UserPrompt; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRExtendedDisplay +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetWindowBounds(ref int pnX, ref int pnY, ref uint pnWidth, ref uint pnHeight); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetWindowBounds GetWindowBounds; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetEyeOutputViewport(EVREye eEye, ref uint pnX, ref uint pnY, ref uint pnWidth, ref uint pnHeight); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetEyeOutputViewport GetEyeOutputViewport; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetDXGIOutputInfo(ref int pnAdapterIndex, ref int pnAdapterOutputIndex); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetDXGIOutputInfo GetDXGIOutputInfo; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRTrackedCamera +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetCameraErrorNameFromEnum(EVRTrackedCameraError eCameraError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCameraErrorNameFromEnum GetCameraErrorNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _HasCamera(uint nDeviceIndex, ref bool pHasCamera); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _HasCamera HasCamera; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _GetCameraFrameSize(uint nDeviceIndex, EVRTrackedCameraFrameType eFrameType, ref uint pnWidth, ref uint pnHeight, ref uint pnFrameBufferSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCameraFrameSize GetCameraFrameSize; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _GetCameraIntrinsics(uint nDeviceIndex, EVRTrackedCameraFrameType eFrameType, ref HmdVector2_t pFocalLength, ref HmdVector2_t pCenter); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCameraIntrinsics GetCameraIntrinsics; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _GetCameraProjection(uint nDeviceIndex, EVRTrackedCameraFrameType eFrameType, float flZNear, float flZFar, ref HmdMatrix44_t pProjection); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCameraProjection GetCameraProjection; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _AcquireVideoStreamingService(uint nDeviceIndex, ref ulong pHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _AcquireVideoStreamingService AcquireVideoStreamingService; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _ReleaseVideoStreamingService(ulong hTrackedCamera); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ReleaseVideoStreamingService ReleaseVideoStreamingService; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _GetVideoStreamFrameBuffer(ulong hTrackedCamera, EVRTrackedCameraFrameType eFrameType, IntPtr pFrameBuffer, uint nFrameBufferSize, ref CameraVideoStreamFrameHeader_t pFrameHeader, uint nFrameHeaderSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetVideoStreamFrameBuffer GetVideoStreamFrameBuffer; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _GetVideoStreamTextureSize(uint nDeviceIndex, EVRTrackedCameraFrameType eFrameType, ref VRTextureBounds_t pTextureBounds, ref uint pnWidth, ref uint pnHeight); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetVideoStreamTextureSize GetVideoStreamTextureSize; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _GetVideoStreamTextureD3D11(ulong hTrackedCamera, EVRTrackedCameraFrameType eFrameType, IntPtr pD3D11DeviceOrResource, ref IntPtr ppD3D11ShaderResourceView, ref CameraVideoStreamFrameHeader_t pFrameHeader, uint nFrameHeaderSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetVideoStreamTextureD3D11 GetVideoStreamTextureD3D11; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _GetVideoStreamTextureGL(ulong hTrackedCamera, EVRTrackedCameraFrameType eFrameType, ref uint pglTextureId, ref CameraVideoStreamFrameHeader_t pFrameHeader, uint nFrameHeaderSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetVideoStreamTextureGL GetVideoStreamTextureGL; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRTrackedCameraError _ReleaseVideoStreamTextureGL(ulong hTrackedCamera, uint glTextureId); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ReleaseVideoStreamTextureGL ReleaseVideoStreamTextureGL; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRApplications +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _AddApplicationManifest(string pchApplicationManifestFullPath, bool bTemporary); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _AddApplicationManifest AddApplicationManifest; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _RemoveApplicationManifest(string pchApplicationManifestFullPath); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _RemoveApplicationManifest RemoveApplicationManifest; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsApplicationInstalled(string pchAppKey); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsApplicationInstalled IsApplicationInstalled; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetApplicationCount(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationCount GetApplicationCount; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _GetApplicationKeyByIndex(uint unApplicationIndex, System.Text.StringBuilder pchAppKeyBuffer, uint unAppKeyBufferLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationKeyByIndex GetApplicationKeyByIndex; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _GetApplicationKeyByProcessId(uint unProcessId, string pchAppKeyBuffer, uint unAppKeyBufferLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationKeyByProcessId GetApplicationKeyByProcessId; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _LaunchApplication(string pchAppKey); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LaunchApplication LaunchApplication; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _LaunchTemplateApplication(string pchTemplateAppKey, string pchNewAppKey, [In, Out] AppOverrideKeys_t[] pKeys, uint unKeys); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LaunchTemplateApplication LaunchTemplateApplication; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _LaunchApplicationFromMimeType(string pchMimeType, string pchArgs); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LaunchApplicationFromMimeType LaunchApplicationFromMimeType; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _LaunchDashboardOverlay(string pchAppKey); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LaunchDashboardOverlay LaunchDashboardOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _CancelApplicationLaunch(string pchAppKey); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CancelApplicationLaunch CancelApplicationLaunch; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _IdentifyApplication(uint unProcessId, string pchAppKey); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IdentifyApplication IdentifyApplication; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetApplicationProcessId(string pchAppKey); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationProcessId GetApplicationProcessId; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetApplicationsErrorNameFromEnum(EVRApplicationError error); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationsErrorNameFromEnum GetApplicationsErrorNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetApplicationPropertyString(string pchAppKey, EVRApplicationProperty eProperty, System.Text.StringBuilder pchPropertyValueBuffer, uint unPropertyValueBufferLen, ref EVRApplicationError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationPropertyString GetApplicationPropertyString; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetApplicationPropertyBool(string pchAppKey, EVRApplicationProperty eProperty, ref EVRApplicationError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationPropertyBool GetApplicationPropertyBool; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ulong _GetApplicationPropertyUint64(string pchAppKey, EVRApplicationProperty eProperty, ref EVRApplicationError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationPropertyUint64 GetApplicationPropertyUint64; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _SetApplicationAutoLaunch(string pchAppKey, bool bAutoLaunch); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetApplicationAutoLaunch SetApplicationAutoLaunch; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetApplicationAutoLaunch(string pchAppKey); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationAutoLaunch GetApplicationAutoLaunch; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _SetDefaultApplicationForMimeType(string pchAppKey, string pchMimeType); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetDefaultApplicationForMimeType SetDefaultApplicationForMimeType; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetDefaultApplicationForMimeType(string pchMimeType, string pchAppKeyBuffer, uint unAppKeyBufferLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetDefaultApplicationForMimeType GetDefaultApplicationForMimeType; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetApplicationSupportedMimeTypes(string pchAppKey, string pchMimeTypesBuffer, uint unMimeTypesBuffer); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationSupportedMimeTypes GetApplicationSupportedMimeTypes; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetApplicationsThatSupportMimeType(string pchMimeType, string pchAppKeysThatSupportBuffer, uint unAppKeysThatSupportBuffer); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationsThatSupportMimeType GetApplicationsThatSupportMimeType; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetApplicationLaunchArguments(uint unHandle, string pchArgs, uint unArgs); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationLaunchArguments GetApplicationLaunchArguments; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _GetStartingApplication(string pchAppKeyBuffer, uint unAppKeyBufferLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetStartingApplication GetStartingApplication; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationTransitionState _GetTransitionState(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetTransitionState GetTransitionState; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _PerformApplicationPrelaunchCheck(string pchAppKey); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _PerformApplicationPrelaunchCheck PerformApplicationPrelaunchCheck; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetApplicationsTransitionStateNameFromEnum(EVRApplicationTransitionState state); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetApplicationsTransitionStateNameFromEnum GetApplicationsTransitionStateNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsQuitUserPromptRequested(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsQuitUserPromptRequested IsQuitUserPromptRequested; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRApplicationError _LaunchInternalProcess(string pchBinaryPath, string pchArguments, string pchWorkingDirectory); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LaunchInternalProcess LaunchInternalProcess; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetCurrentSceneProcessId(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCurrentSceneProcessId GetCurrentSceneProcessId; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRChaperone +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ChaperoneCalibrationState _GetCalibrationState(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCalibrationState GetCalibrationState; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetPlayAreaSize(ref float pSizeX, ref float pSizeZ); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetPlayAreaSize GetPlayAreaSize; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetPlayAreaRect(ref HmdQuad_t rect); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetPlayAreaRect GetPlayAreaRect; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ReloadInfo(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ReloadInfo ReloadInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetSceneColor(HmdColor_t color); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetSceneColor SetSceneColor; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetBoundsColor(ref HmdColor_t pOutputColorArray, int nNumOutputColors, float flCollisionBoundsFadeDistance, ref HmdColor_t pOutputCameraColor); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetBoundsColor GetBoundsColor; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _AreBoundsVisible(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _AreBoundsVisible AreBoundsVisible; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ForceBoundsVisible(bool bForce); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ForceBoundsVisible ForceBoundsVisible; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRChaperoneSetup +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _CommitWorkingCopy(EChaperoneConfigFile configFile); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CommitWorkingCopy CommitWorkingCopy; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _RevertWorkingCopy(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _RevertWorkingCopy RevertWorkingCopy; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetWorkingPlayAreaSize(ref float pSizeX, ref float pSizeZ); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetWorkingPlayAreaSize GetWorkingPlayAreaSize; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetWorkingPlayAreaRect(ref HmdQuad_t rect); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetWorkingPlayAreaRect GetWorkingPlayAreaRect; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetWorkingCollisionBoundsInfo([In, Out] HmdQuad_t[] pQuadsBuffer, ref uint punQuadsCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetWorkingCollisionBoundsInfo GetWorkingCollisionBoundsInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetLiveCollisionBoundsInfo([In, Out] HmdQuad_t[] pQuadsBuffer, ref uint punQuadsCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetLiveCollisionBoundsInfo GetLiveCollisionBoundsInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetWorkingSeatedZeroPoseToRawTrackingPose(ref HmdMatrix34_t pmatSeatedZeroPoseToRawTrackingPose); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetWorkingSeatedZeroPoseToRawTrackingPose GetWorkingSeatedZeroPoseToRawTrackingPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetWorkingStandingZeroPoseToRawTrackingPose(ref HmdMatrix34_t pmatStandingZeroPoseToRawTrackingPose); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetWorkingStandingZeroPoseToRawTrackingPose GetWorkingStandingZeroPoseToRawTrackingPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetWorkingPlayAreaSize(float sizeX, float sizeZ); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetWorkingPlayAreaSize SetWorkingPlayAreaSize; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetWorkingCollisionBoundsInfo([In, Out] HmdQuad_t[] pQuadsBuffer, uint unQuadsCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetWorkingCollisionBoundsInfo SetWorkingCollisionBoundsInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetWorkingSeatedZeroPoseToRawTrackingPose(ref HmdMatrix34_t pMatSeatedZeroPoseToRawTrackingPose); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetWorkingSeatedZeroPoseToRawTrackingPose SetWorkingSeatedZeroPoseToRawTrackingPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetWorkingStandingZeroPoseToRawTrackingPose(ref HmdMatrix34_t pMatStandingZeroPoseToRawTrackingPose); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetWorkingStandingZeroPoseToRawTrackingPose SetWorkingStandingZeroPoseToRawTrackingPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ReloadFromDisk(EChaperoneConfigFile configFile); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ReloadFromDisk ReloadFromDisk; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetLiveSeatedZeroPoseToRawTrackingPose(ref HmdMatrix34_t pmatSeatedZeroPoseToRawTrackingPose); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetLiveSeatedZeroPoseToRawTrackingPose GetLiveSeatedZeroPoseToRawTrackingPose; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetWorkingCollisionBoundsTagsInfo([In, Out] byte[] pTagsBuffer, uint unTagCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetWorkingCollisionBoundsTagsInfo SetWorkingCollisionBoundsTagsInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetLiveCollisionBoundsTagsInfo([In, Out] byte[] pTagsBuffer, ref uint punTagCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetLiveCollisionBoundsTagsInfo GetLiveCollisionBoundsTagsInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _SetWorkingPhysicalBoundsInfo([In, Out] HmdQuad_t[] pQuadsBuffer, uint unQuadsCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetWorkingPhysicalBoundsInfo SetWorkingPhysicalBoundsInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetLivePhysicalBoundsInfo([In, Out] HmdQuad_t[] pQuadsBuffer, ref uint punQuadsCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetLivePhysicalBoundsInfo GetLivePhysicalBoundsInfo; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _ExportLiveToBuffer(System.Text.StringBuilder pBuffer, ref uint pnBufferLength); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ExportLiveToBuffer ExportLiveToBuffer; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _ImportFromBufferToWorking(string pBuffer, uint nImportFlags); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ImportFromBufferToWorking ImportFromBufferToWorking; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRCompositor +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetTrackingSpace(ETrackingUniverseOrigin eOrigin); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetTrackingSpace SetTrackingSpace; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ETrackingUniverseOrigin _GetTrackingSpace(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetTrackingSpace GetTrackingSpace; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRCompositorError _WaitGetPoses([In, Out] TrackedDevicePose_t[] pRenderPoseArray, uint unRenderPoseArrayCount, [In, Out] TrackedDevicePose_t[] pGamePoseArray, uint unGamePoseArrayCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _WaitGetPoses WaitGetPoses; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRCompositorError _GetLastPoses([In, Out] TrackedDevicePose_t[] pRenderPoseArray, uint unRenderPoseArrayCount, [In, Out] TrackedDevicePose_t[] pGamePoseArray, uint unGamePoseArrayCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetLastPoses GetLastPoses; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRCompositorError _GetLastPoseForTrackedDeviceIndex(uint unDeviceIndex, ref TrackedDevicePose_t pOutputPose, ref TrackedDevicePose_t pOutputGamePose); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetLastPoseForTrackedDeviceIndex GetLastPoseForTrackedDeviceIndex; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRCompositorError _Submit(EVREye eEye, ref Texture_t pTexture, ref VRTextureBounds_t pBounds, EVRSubmitFlags nSubmitFlags); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _Submit Submit; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ClearLastSubmittedFrame(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ClearLastSubmittedFrame ClearLastSubmittedFrame; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _PostPresentHandoff(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _PostPresentHandoff PostPresentHandoff; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetFrameTiming(ref Compositor_FrameTiming pTiming, uint unFramesAgo); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetFrameTiming GetFrameTiming; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetFrameTimings(ref Compositor_FrameTiming pTiming, uint nFrames); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetFrameTimings GetFrameTimings; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate float _GetFrameTimeRemaining(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetFrameTimeRemaining GetFrameTimeRemaining; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetCumulativeStats(ref Compositor_CumulativeStats pStats, uint nStatsSizeInBytes); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCumulativeStats GetCumulativeStats; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _FadeToColor(float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _FadeToColor FadeToColor; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate HmdColor_t _GetCurrentFadeColor(bool bBackground); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCurrentFadeColor GetCurrentFadeColor; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _FadeGrid(float fSeconds, bool bFadeIn); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _FadeGrid FadeGrid; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate float _GetCurrentGridAlpha(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCurrentGridAlpha GetCurrentGridAlpha; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRCompositorError _SetSkyboxOverride([In, Out] Texture_t[] pTextures, uint unTextureCount); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetSkyboxOverride SetSkyboxOverride; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ClearSkyboxOverride(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ClearSkyboxOverride ClearSkyboxOverride; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _CompositorBringToFront(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CompositorBringToFront CompositorBringToFront; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _CompositorGoToBack(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CompositorGoToBack CompositorGoToBack; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _CompositorQuit(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CompositorQuit CompositorQuit; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsFullscreen(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsFullscreen IsFullscreen; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetCurrentSceneFocusProcess(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetCurrentSceneFocusProcess GetCurrentSceneFocusProcess; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetLastFrameRenderer(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetLastFrameRenderer GetLastFrameRenderer; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _CanRenderScene(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CanRenderScene CanRenderScene; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ShowMirrorWindow(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ShowMirrorWindow ShowMirrorWindow; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _HideMirrorWindow(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _HideMirrorWindow HideMirrorWindow; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsMirrorWindowVisible(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsMirrorWindowVisible IsMirrorWindowVisible; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _CompositorDumpImages(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CompositorDumpImages CompositorDumpImages; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _ShouldAppRenderWithLowResources(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ShouldAppRenderWithLowResources ShouldAppRenderWithLowResources; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ForceInterleavedReprojectionOn(bool bOverride); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ForceInterleavedReprojectionOn ForceInterleavedReprojectionOn; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ForceReconnectProcess(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ForceReconnectProcess ForceReconnectProcess; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SuspendRendering(bool bSuspend); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SuspendRendering SuspendRendering; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRCompositorError _GetMirrorTextureD3D11(EVREye eEye, IntPtr pD3D11DeviceOrResource, ref IntPtr ppD3D11ShaderResourceView); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetMirrorTextureD3D11 GetMirrorTextureD3D11; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ReleaseMirrorTextureD3D11(IntPtr pD3D11ShaderResourceView); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ReleaseMirrorTextureD3D11 ReleaseMirrorTextureD3D11; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRCompositorError _GetMirrorTextureGL(EVREye eEye, ref uint pglTextureId, IntPtr pglSharedTextureHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetMirrorTextureGL GetMirrorTextureGL; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _ReleaseSharedGLTexture(uint glTextureId, IntPtr glSharedTextureHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ReleaseSharedGLTexture ReleaseSharedGLTexture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _LockGLSharedTextureForAccess(IntPtr glSharedTextureHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LockGLSharedTextureForAccess LockGLSharedTextureForAccess; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _UnlockGLSharedTextureForAccess(IntPtr glSharedTextureHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _UnlockGLSharedTextureForAccess UnlockGLSharedTextureForAccess; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetVulkanInstanceExtensionsRequired(System.Text.StringBuilder pchValue, uint unBufferSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetVulkanInstanceExtensionsRequired GetVulkanInstanceExtensionsRequired; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetVulkanDeviceExtensionsRequired(IntPtr pPhysicalDevice, System.Text.StringBuilder pchValue, uint unBufferSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetVulkanDeviceExtensionsRequired GetVulkanDeviceExtensionsRequired; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVROverlay +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _FindOverlay(string pchOverlayKey, ref ulong pOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _FindOverlay FindOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _CreateOverlay(string pchOverlayKey, string pchOverlayName, ref ulong pOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CreateOverlay CreateOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _DestroyOverlay(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _DestroyOverlay DestroyOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetHighQualityOverlay(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetHighQualityOverlay SetHighQualityOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ulong _GetHighQualityOverlay(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetHighQualityOverlay GetHighQualityOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetOverlayKey(ulong ulOverlayHandle, System.Text.StringBuilder pchValue, uint unBufferSize, ref EVROverlayError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayKey GetOverlayKey; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetOverlayName(ulong ulOverlayHandle, System.Text.StringBuilder pchValue, uint unBufferSize, ref EVROverlayError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayName GetOverlayName; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayName(ulong ulOverlayHandle, string pchName); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayName SetOverlayName; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayImageData(ulong ulOverlayHandle, IntPtr pvBuffer, uint unBufferSize, ref uint punWidth, ref uint punHeight); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayImageData GetOverlayImageData; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetOverlayErrorNameFromEnum(EVROverlayError error); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayErrorNameFromEnum GetOverlayErrorNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayRenderingPid(ulong ulOverlayHandle, uint unPID); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayRenderingPid SetOverlayRenderingPid; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetOverlayRenderingPid(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayRenderingPid GetOverlayRenderingPid; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayFlag(ulong ulOverlayHandle, VROverlayFlags eOverlayFlag, bool bEnabled); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayFlag SetOverlayFlag; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayFlag(ulong ulOverlayHandle, VROverlayFlags eOverlayFlag, ref bool pbEnabled); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayFlag GetOverlayFlag; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayColor(ulong ulOverlayHandle, float fRed, float fGreen, float fBlue); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayColor SetOverlayColor; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayColor(ulong ulOverlayHandle, ref float pfRed, ref float pfGreen, ref float pfBlue); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayColor GetOverlayColor; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayAlpha(ulong ulOverlayHandle, float fAlpha); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayAlpha SetOverlayAlpha; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayAlpha(ulong ulOverlayHandle, ref float pfAlpha); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayAlpha GetOverlayAlpha; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayTexelAspect(ulong ulOverlayHandle, float fTexelAspect); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayTexelAspect SetOverlayTexelAspect; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTexelAspect(ulong ulOverlayHandle, ref float pfTexelAspect); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTexelAspect GetOverlayTexelAspect; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlaySortOrder(ulong ulOverlayHandle, uint unSortOrder); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlaySortOrder SetOverlaySortOrder; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlaySortOrder(ulong ulOverlayHandle, ref uint punSortOrder); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlaySortOrder GetOverlaySortOrder; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayWidthInMeters(ulong ulOverlayHandle, float fWidthInMeters); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayWidthInMeters SetOverlayWidthInMeters; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayWidthInMeters(ulong ulOverlayHandle, ref float pfWidthInMeters); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayWidthInMeters GetOverlayWidthInMeters; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayAutoCurveDistanceRangeInMeters(ulong ulOverlayHandle, float fMinDistanceInMeters, float fMaxDistanceInMeters); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayAutoCurveDistanceRangeInMeters SetOverlayAutoCurveDistanceRangeInMeters; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayAutoCurveDistanceRangeInMeters(ulong ulOverlayHandle, ref float pfMinDistanceInMeters, ref float pfMaxDistanceInMeters); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayAutoCurveDistanceRangeInMeters GetOverlayAutoCurveDistanceRangeInMeters; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayTextureColorSpace(ulong ulOverlayHandle, EColorSpace eTextureColorSpace); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayTextureColorSpace SetOverlayTextureColorSpace; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTextureColorSpace(ulong ulOverlayHandle, ref EColorSpace peTextureColorSpace); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTextureColorSpace GetOverlayTextureColorSpace; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayTextureBounds(ulong ulOverlayHandle, ref VRTextureBounds_t pOverlayTextureBounds); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayTextureBounds SetOverlayTextureBounds; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTextureBounds(ulong ulOverlayHandle, ref VRTextureBounds_t pOverlayTextureBounds); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTextureBounds GetOverlayTextureBounds; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetOverlayRenderModel(ulong ulOverlayHandle, string pchValue, uint unBufferSize, ref HmdColor_t pColor, ref EVROverlayError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayRenderModel GetOverlayRenderModel; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayRenderModel(ulong ulOverlayHandle, string pchRenderModel, ref HmdColor_t pColor); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayRenderModel SetOverlayRenderModel; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTransformType(ulong ulOverlayHandle, ref VROverlayTransformType peTransformType); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTransformType GetOverlayTransformType; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayTransformAbsolute(ulong ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, ref HmdMatrix34_t pmatTrackingOriginToOverlayTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayTransformAbsolute SetOverlayTransformAbsolute; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTransformAbsolute(ulong ulOverlayHandle, ref ETrackingUniverseOrigin peTrackingOrigin, ref HmdMatrix34_t pmatTrackingOriginToOverlayTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTransformAbsolute GetOverlayTransformAbsolute; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayTransformTrackedDeviceRelative(ulong ulOverlayHandle, uint unTrackedDevice, ref HmdMatrix34_t pmatTrackedDeviceToOverlayTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayTransformTrackedDeviceRelative SetOverlayTransformTrackedDeviceRelative; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTransformTrackedDeviceRelative(ulong ulOverlayHandle, ref uint punTrackedDevice, ref HmdMatrix34_t pmatTrackedDeviceToOverlayTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTransformTrackedDeviceRelative GetOverlayTransformTrackedDeviceRelative; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayTransformTrackedDeviceComponent(ulong ulOverlayHandle, uint unDeviceIndex, string pchComponentName); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayTransformTrackedDeviceComponent SetOverlayTransformTrackedDeviceComponent; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTransformTrackedDeviceComponent(ulong ulOverlayHandle, ref uint punDeviceIndex, string pchComponentName, uint unComponentNameSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTransformTrackedDeviceComponent GetOverlayTransformTrackedDeviceComponent; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTransformOverlayRelative(ulong ulOverlayHandle, ref ulong ulOverlayHandleParent, ref HmdMatrix34_t pmatParentOverlayToOverlayTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTransformOverlayRelative GetOverlayTransformOverlayRelative; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayTransformOverlayRelative(ulong ulOverlayHandle, ulong ulOverlayHandleParent, ref HmdMatrix34_t pmatParentOverlayToOverlayTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayTransformOverlayRelative SetOverlayTransformOverlayRelative; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _ShowOverlay(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ShowOverlay ShowOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _HideOverlay(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _HideOverlay HideOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsOverlayVisible(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsOverlayVisible IsOverlayVisible; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetTransformForOverlayCoordinates(ulong ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, HmdVector2_t coordinatesInOverlay, ref HmdMatrix34_t pmatTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetTransformForOverlayCoordinates GetTransformForOverlayCoordinates; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _PollNextOverlayEvent(ulong ulOverlayHandle, ref VREvent_t pEvent, uint uncbVREvent); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _PollNextOverlayEvent PollNextOverlayEvent; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayInputMethod(ulong ulOverlayHandle, ref VROverlayInputMethod peInputMethod); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayInputMethod GetOverlayInputMethod; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayInputMethod(ulong ulOverlayHandle, VROverlayInputMethod eInputMethod); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayInputMethod SetOverlayInputMethod; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayMouseScale(ulong ulOverlayHandle, ref HmdVector2_t pvecMouseScale); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayMouseScale GetOverlayMouseScale; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayMouseScale(ulong ulOverlayHandle, ref HmdVector2_t pvecMouseScale); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayMouseScale SetOverlayMouseScale; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _ComputeOverlayIntersection(ulong ulOverlayHandle, ref VROverlayIntersectionParams_t pParams, ref VROverlayIntersectionResults_t pResults); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ComputeOverlayIntersection ComputeOverlayIntersection; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _HandleControllerOverlayInteractionAsMouse(ulong ulOverlayHandle, uint unControllerDeviceIndex); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _HandleControllerOverlayInteractionAsMouse HandleControllerOverlayInteractionAsMouse; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsHoverTargetOverlay(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsHoverTargetOverlay IsHoverTargetOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ulong _GetGamepadFocusOverlay(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetGamepadFocusOverlay GetGamepadFocusOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetGamepadFocusOverlay(ulong ulNewFocusOverlay); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetGamepadFocusOverlay SetGamepadFocusOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayNeighbor(EOverlayDirection eDirection, ulong ulFrom, ulong ulTo); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayNeighbor SetOverlayNeighbor; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _MoveGamepadFocusToNeighbor(EOverlayDirection eDirection, ulong ulFrom); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _MoveGamepadFocusToNeighbor MoveGamepadFocusToNeighbor; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayTexture(ulong ulOverlayHandle, ref Texture_t pTexture); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayTexture SetOverlayTexture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _ClearOverlayTexture(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ClearOverlayTexture ClearOverlayTexture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayRaw(ulong ulOverlayHandle, IntPtr pvBuffer, uint unWidth, uint unHeight, uint unDepth); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayRaw SetOverlayRaw; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayFromFile(ulong ulOverlayHandle, string pchFilePath); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayFromFile SetOverlayFromFile; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTexture(ulong ulOverlayHandle, ref IntPtr pNativeTextureHandle, IntPtr pNativeTextureRef, ref uint pWidth, ref uint pHeight, ref uint pNativeFormat, ref ETextureType pAPIType, ref EColorSpace pColorSpace, ref VRTextureBounds_t pTextureBounds); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTexture GetOverlayTexture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _ReleaseNativeOverlayHandle(ulong ulOverlayHandle, IntPtr pNativeTextureHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ReleaseNativeOverlayHandle ReleaseNativeOverlayHandle; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayTextureSize(ulong ulOverlayHandle, ref uint pWidth, ref uint pHeight); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayTextureSize GetOverlayTextureSize; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _CreateDashboardOverlay(string pchOverlayKey, string pchOverlayFriendlyName, ref ulong pMainHandle, ref ulong pThumbnailHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CreateDashboardOverlay CreateDashboardOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsDashboardVisible(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsDashboardVisible IsDashboardVisible; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _IsActiveDashboardOverlay(ulong ulOverlayHandle); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _IsActiveDashboardOverlay IsActiveDashboardOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetDashboardOverlaySceneProcess(ulong ulOverlayHandle, uint unProcessId); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetDashboardOverlaySceneProcess SetDashboardOverlaySceneProcess; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetDashboardOverlaySceneProcess(ulong ulOverlayHandle, ref uint punProcessId); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetDashboardOverlaySceneProcess GetDashboardOverlaySceneProcess; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _ShowDashboard(string pchOverlayToShow); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ShowDashboard ShowDashboard; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetPrimaryDashboardDevice(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetPrimaryDashboardDevice GetPrimaryDashboardDevice; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _ShowKeyboard(int eInputMode, int eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText, bool bUseMinimalMode, ulong uUserValue); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ShowKeyboard ShowKeyboard; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _ShowKeyboardForOverlay(ulong ulOverlayHandle, int eInputMode, int eLineInputMode, string pchDescription, uint unCharMax, string pchExistingText, bool bUseMinimalMode, ulong uUserValue); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ShowKeyboardForOverlay ShowKeyboardForOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetKeyboardText(System.Text.StringBuilder pchText, uint cchText); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetKeyboardText GetKeyboardText; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _HideKeyboard(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _HideKeyboard HideKeyboard; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetKeyboardTransformAbsolute(ETrackingUniverseOrigin eTrackingOrigin, ref HmdMatrix34_t pmatTrackingOriginToKeyboardTransform); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetKeyboardTransformAbsolute SetKeyboardTransformAbsolute; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetKeyboardPositionForOverlay(ulong ulOverlayHandle, HmdRect2_t avoidRect); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetKeyboardPositionForOverlay SetKeyboardPositionForOverlay; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _SetOverlayIntersectionMask(ulong ulOverlayHandle, ref VROverlayIntersectionMaskPrimitive_t pMaskPrimitives, uint unNumMaskPrimitives, uint unPrimitiveSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetOverlayIntersectionMask SetOverlayIntersectionMask; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVROverlayError _GetOverlayFlags(ulong ulOverlayHandle, ref uint pFlags); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOverlayFlags GetOverlayFlags; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate VRMessageOverlayResponse _ShowMessageOverlay(string pchText, string pchCaption, string pchButton0Text, string pchButton1Text, string pchButton2Text, string pchButton3Text); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _ShowMessageOverlay ShowMessageOverlay; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRRenderModels +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRRenderModelError _LoadRenderModel_Async(string pchRenderModelName, ref IntPtr ppRenderModel); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LoadRenderModel_Async LoadRenderModel_Async; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _FreeRenderModel(IntPtr pRenderModel); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _FreeRenderModel FreeRenderModel; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRRenderModelError _LoadTexture_Async(int textureId, ref IntPtr ppTexture); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LoadTexture_Async LoadTexture_Async; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _FreeTexture(IntPtr pTexture); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _FreeTexture FreeTexture; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRRenderModelError _LoadTextureD3D11_Async(int textureId, IntPtr pD3D11Device, ref IntPtr ppD3D11Texture2D); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LoadTextureD3D11_Async LoadTextureD3D11_Async; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRRenderModelError _LoadIntoTextureD3D11_Async(int textureId, IntPtr pDstTexture); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LoadIntoTextureD3D11_Async LoadIntoTextureD3D11_Async; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _FreeTextureD3D11(IntPtr pD3D11Texture2D); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _FreeTextureD3D11 FreeTextureD3D11; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetRenderModelName(uint unRenderModelIndex, System.Text.StringBuilder pchRenderModelName, uint unRenderModelNameLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetRenderModelName GetRenderModelName; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetRenderModelCount(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetRenderModelCount GetRenderModelCount; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetComponentCount(string pchRenderModelName); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetComponentCount GetComponentCount; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetComponentName(string pchRenderModelName, uint unComponentIndex, System.Text.StringBuilder pchComponentName, uint unComponentNameLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetComponentName GetComponentName; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate ulong _GetComponentButtonMask(string pchRenderModelName, string pchComponentName); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetComponentButtonMask GetComponentButtonMask; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetComponentRenderModelName(string pchRenderModelName, string pchComponentName, System.Text.StringBuilder pchComponentRenderModelName, uint unComponentRenderModelNameLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetComponentRenderModelName GetComponentRenderModelName; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetComponentState(string pchRenderModelName, string pchComponentName, ref VRControllerState_t pControllerState, ref RenderModel_ControllerMode_State_t pState, ref RenderModel_ComponentState_t pComponentState); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetComponentState GetComponentState; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _RenderModelHasComponent(string pchRenderModelName, string pchComponentName); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _RenderModelHasComponent RenderModelHasComponent; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetRenderModelThumbnailURL(string pchRenderModelName, System.Text.StringBuilder pchThumbnailURL, uint unThumbnailURLLen, ref EVRRenderModelError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetRenderModelThumbnailURL GetRenderModelThumbnailURL; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetRenderModelOriginalPath(string pchRenderModelName, System.Text.StringBuilder pchOriginalPath, uint unOriginalPathLen, ref EVRRenderModelError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetRenderModelOriginalPath GetRenderModelOriginalPath; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetRenderModelErrorNameFromEnum(EVRRenderModelError error); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetRenderModelErrorNameFromEnum GetRenderModelErrorNameFromEnum; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRNotifications +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRNotificationError _CreateNotification(ulong ulOverlayHandle, ulong ulUserValue, EVRNotificationType type, string pchText, EVRNotificationStyle style, ref NotificationBitmap_t pImage, ref uint pNotificationId); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _CreateNotification CreateNotification; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRNotificationError _RemoveNotification(uint notificationId); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _RemoveNotification RemoveNotification; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRSettings +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate IntPtr _GetSettingsErrorNameFromEnum(EVRSettingsError eError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetSettingsErrorNameFromEnum GetSettingsErrorNameFromEnum; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _Sync(bool bForce, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _Sync Sync; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetBool(string pchSection, string pchSettingsKey, bool bValue, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetBool SetBool; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetInt32(string pchSection, string pchSettingsKey, int nValue, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetInt32 SetInt32; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetFloat(string pchSection, string pchSettingsKey, float flValue, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetFloat SetFloat; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _SetString(string pchSection, string pchSettingsKey, string pchValue, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SetString SetString; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetBool(string pchSection, string pchSettingsKey, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetBool GetBool; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate int _GetInt32(string pchSection, string pchSettingsKey, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetInt32 GetInt32; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate float _GetFloat(string pchSection, string pchSettingsKey, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetFloat GetFloat; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetString(string pchSection, string pchSettingsKey, System.Text.StringBuilder pchValue, uint unValueLen, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetString GetString; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _RemoveSection(string pchSection, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _RemoveSection RemoveSection; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _RemoveKeyInSection(string pchSection, string pchSettingsKey, ref EVRSettingsError peError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _RemoveKeyInSection RemoveKeyInSection; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRScreenshots +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRScreenshotError _RequestScreenshot(ref uint pOutScreenshotHandle, EVRScreenshotType type, string pchPreviewFilename, string pchVRFilename); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _RequestScreenshot RequestScreenshot; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRScreenshotError _HookScreenshot([In, Out] EVRScreenshotType[] pSupportedTypes, int numTypes); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _HookScreenshot HookScreenshot; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRScreenshotType _GetScreenshotPropertyType(uint screenshotHandle, ref EVRScreenshotError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetScreenshotPropertyType GetScreenshotPropertyType; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetScreenshotPropertyFilename(uint screenshotHandle, EVRScreenshotPropertyFilenames filenameType, System.Text.StringBuilder pchFilename, uint cchFilename, ref EVRScreenshotError pError); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetScreenshotPropertyFilename GetScreenshotPropertyFilename; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRScreenshotError _UpdateScreenshotProgress(uint screenshotHandle, float flProgress); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _UpdateScreenshotProgress UpdateScreenshotProgress; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRScreenshotError _TakeStereoScreenshot(ref uint pOutScreenshotHandle, string pchPreviewFilename, string pchVRFilename); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _TakeStereoScreenshot TakeStereoScreenshot; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate EVRScreenshotError _SubmitScreenshot(uint screenshotHandle, EVRScreenshotType type, string pchSourcePreviewFilename, string pchSourceVRFilename); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _SubmitScreenshot SubmitScreenshot; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRResources +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _LoadSharedResource(string pchResourceName, string pchBuffer, uint unBufferLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _LoadSharedResource LoadSharedResource; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetResourceFullPath(string pchResourceName, string pchResourceTypeDirectory, string pchPathBuffer, uint unBufferLen); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetResourceFullPath GetResourceFullPath; + +} + +[StructLayout(LayoutKind.Sequential)] +public struct IVRDriverManager +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetDriverCount(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetDriverCount GetDriverCount; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetDriverName(uint nDriver, System.Text.StringBuilder pchValue, uint unBufferSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetDriverName GetDriverName; + +} + + +public class CVRSystem +{ + IVRSystem FnTable; + internal CVRSystem(IntPtr pInterface) + { + FnTable = (IVRSystem)Marshal.PtrToStructure(pInterface, typeof(IVRSystem)); + } + public void GetRecommendedRenderTargetSize(ref uint pnWidth,ref uint pnHeight) + { + pnWidth = 0; + pnHeight = 0; + FnTable.GetRecommendedRenderTargetSize(ref pnWidth,ref pnHeight); + } + public HmdMatrix44_t GetProjectionMatrix(EVREye eEye,float fNearZ,float fFarZ) + { + HmdMatrix44_t result = FnTable.GetProjectionMatrix(eEye,fNearZ,fFarZ); + return result; + } + public void GetProjectionRaw(EVREye eEye,ref float pfLeft,ref float pfRight,ref float pfTop,ref float pfBottom) + { + pfLeft = 0; + pfRight = 0; + pfTop = 0; + pfBottom = 0; + FnTable.GetProjectionRaw(eEye,ref pfLeft,ref pfRight,ref pfTop,ref pfBottom); + } + public bool ComputeDistortion(EVREye eEye,float fU,float fV,ref DistortionCoordinates_t pDistortionCoordinates) + { + bool result = FnTable.ComputeDistortion(eEye,fU,fV,ref pDistortionCoordinates); + return result; + } + public HmdMatrix34_t GetEyeToHeadTransform(EVREye eEye) + { + HmdMatrix34_t result = FnTable.GetEyeToHeadTransform(eEye); + return result; + } + public bool GetTimeSinceLastVsync(ref float pfSecondsSinceLastVsync,ref ulong pulFrameCounter) + { + pfSecondsSinceLastVsync = 0; + pulFrameCounter = 0; + bool result = FnTable.GetTimeSinceLastVsync(ref pfSecondsSinceLastVsync,ref pulFrameCounter); + return result; + } + public int GetD3D9AdapterIndex() + { + int result = FnTable.GetD3D9AdapterIndex(); + return result; + } + public void GetDXGIOutputInfo(ref int pnAdapterIndex) + { + pnAdapterIndex = 0; + FnTable.GetDXGIOutputInfo(ref pnAdapterIndex); + } + public void GetOutputDevice(ref ulong pnDevice,ETextureType textureType) + { + pnDevice = 0; + FnTable.GetOutputDevice(ref pnDevice,textureType); + } + public bool IsDisplayOnDesktop() + { + bool result = FnTable.IsDisplayOnDesktop(); + return result; + } + public bool SetDisplayVisibility(bool bIsVisibleOnDesktop) + { + bool result = FnTable.SetDisplayVisibility(bIsVisibleOnDesktop); + return result; + } + public void GetDeviceToAbsoluteTrackingPose(ETrackingUniverseOrigin eOrigin,float fPredictedSecondsToPhotonsFromNow,TrackedDevicePose_t [] pTrackedDevicePoseArray) + { + FnTable.GetDeviceToAbsoluteTrackingPose(eOrigin,fPredictedSecondsToPhotonsFromNow,pTrackedDevicePoseArray,(uint) pTrackedDevicePoseArray.Length); + } + public void ResetSeatedZeroPose() + { + FnTable.ResetSeatedZeroPose(); + } + public HmdMatrix34_t GetSeatedZeroPoseToStandingAbsoluteTrackingPose() + { + HmdMatrix34_t result = FnTable.GetSeatedZeroPoseToStandingAbsoluteTrackingPose(); + return result; + } + public HmdMatrix34_t GetRawZeroPoseToStandingAbsoluteTrackingPose() + { + HmdMatrix34_t result = FnTable.GetRawZeroPoseToStandingAbsoluteTrackingPose(); + return result; + } + public uint GetSortedTrackedDeviceIndicesOfClass(ETrackedDeviceClass eTrackedDeviceClass,uint [] punTrackedDeviceIndexArray,uint unRelativeToTrackedDeviceIndex) + { + uint result = FnTable.GetSortedTrackedDeviceIndicesOfClass(eTrackedDeviceClass,punTrackedDeviceIndexArray,(uint) punTrackedDeviceIndexArray.Length,unRelativeToTrackedDeviceIndex); + return result; + } + public EDeviceActivityLevel GetTrackedDeviceActivityLevel(uint unDeviceId) + { + EDeviceActivityLevel result = FnTable.GetTrackedDeviceActivityLevel(unDeviceId); + return result; + } + public void ApplyTransform(ref TrackedDevicePose_t pOutputPose,ref TrackedDevicePose_t pTrackedDevicePose,ref HmdMatrix34_t pTransform) + { + FnTable.ApplyTransform(ref pOutputPose,ref pTrackedDevicePose,ref pTransform); + } + public uint GetTrackedDeviceIndexForControllerRole(ETrackedControllerRole unDeviceType) + { + uint result = FnTable.GetTrackedDeviceIndexForControllerRole(unDeviceType); + return result; + } + public ETrackedControllerRole GetControllerRoleForTrackedDeviceIndex(uint unDeviceIndex) + { + ETrackedControllerRole result = FnTable.GetControllerRoleForTrackedDeviceIndex(unDeviceIndex); + return result; + } + public ETrackedDeviceClass GetTrackedDeviceClass(uint unDeviceIndex) + { + ETrackedDeviceClass result = FnTable.GetTrackedDeviceClass(unDeviceIndex); + return result; + } + public bool IsTrackedDeviceConnected(uint unDeviceIndex) + { + bool result = FnTable.IsTrackedDeviceConnected(unDeviceIndex); + return result; + } + public bool GetBoolTrackedDeviceProperty(uint unDeviceIndex,ETrackedDeviceProperty prop,ref ETrackedPropertyError pError) + { + bool result = FnTable.GetBoolTrackedDeviceProperty(unDeviceIndex,prop,ref pError); + return result; + } + public float GetFloatTrackedDeviceProperty(uint unDeviceIndex,ETrackedDeviceProperty prop,ref ETrackedPropertyError pError) + { + float result = FnTable.GetFloatTrackedDeviceProperty(unDeviceIndex,prop,ref pError); + return result; + } + public int GetInt32TrackedDeviceProperty(uint unDeviceIndex,ETrackedDeviceProperty prop,ref ETrackedPropertyError pError) + { + int result = FnTable.GetInt32TrackedDeviceProperty(unDeviceIndex,prop,ref pError); + return result; + } + public ulong GetUint64TrackedDeviceProperty(uint unDeviceIndex,ETrackedDeviceProperty prop,ref ETrackedPropertyError pError) + { + ulong result = FnTable.GetUint64TrackedDeviceProperty(unDeviceIndex,prop,ref pError); + return result; + } + public HmdMatrix34_t GetMatrix34TrackedDeviceProperty(uint unDeviceIndex,ETrackedDeviceProperty prop,ref ETrackedPropertyError pError) + { + HmdMatrix34_t result = FnTable.GetMatrix34TrackedDeviceProperty(unDeviceIndex,prop,ref pError); + return result; + } + public uint GetStringTrackedDeviceProperty(uint unDeviceIndex,ETrackedDeviceProperty prop,System.Text.StringBuilder pchValue,uint unBufferSize,ref ETrackedPropertyError pError) + { + uint result = FnTable.GetStringTrackedDeviceProperty(unDeviceIndex,prop,pchValue,unBufferSize,ref pError); + return result; + } + public string GetPropErrorNameFromEnum(ETrackedPropertyError error) + { + IntPtr result = FnTable.GetPropErrorNameFromEnum(error); + return Marshal.PtrToStringAnsi(result); + } +// This is a terrible hack to workaround the fact that VRControllerState_t and VREvent_t were +// originally mis-compiled with the wrong packing for Linux and OSX. + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _PollNextEventPacked(ref VREvent_t_Packed pEvent,uint uncbVREvent); + [StructLayout(LayoutKind.Explicit)] + struct PollNextEventUnion + { + [FieldOffset(0)] + public IVRSystem._PollNextEvent pPollNextEvent; + [FieldOffset(0)] + public _PollNextEventPacked pPollNextEventPacked; + } + public bool PollNextEvent(ref VREvent_t pEvent,uint uncbVREvent) + { + if ((System.Environment.OSVersion.Platform == System.PlatformID.MacOSX) || + (System.Environment.OSVersion.Platform == System.PlatformID.Unix)) + { + PollNextEventUnion u; + VREvent_t_Packed event_packed = new VREvent_t_Packed(); + u.pPollNextEventPacked = null; + u.pPollNextEvent = FnTable.PollNextEvent; + bool packed_result = u.pPollNextEventPacked(ref event_packed,(uint)System.Runtime.InteropServices.Marshal.SizeOf(typeof(VREvent_t_Packed))); + + event_packed.Unpack(ref pEvent); + return packed_result; + } + bool result = FnTable.PollNextEvent(ref pEvent,uncbVREvent); + return result; + } + public bool PollNextEventWithPose(ETrackingUniverseOrigin eOrigin,ref VREvent_t pEvent,uint uncbVREvent,ref TrackedDevicePose_t pTrackedDevicePose) + { + bool result = FnTable.PollNextEventWithPose(eOrigin,ref pEvent,uncbVREvent,ref pTrackedDevicePose); + return result; + } + public string GetEventTypeNameFromEnum(EVREventType eType) + { + IntPtr result = FnTable.GetEventTypeNameFromEnum(eType); + return Marshal.PtrToStringAnsi(result); + } + public HiddenAreaMesh_t GetHiddenAreaMesh(EVREye eEye,EHiddenAreaMeshType type) + { + HiddenAreaMesh_t result = FnTable.GetHiddenAreaMesh(eEye,type); + return result; + } +// This is a terrible hack to workaround the fact that VRControllerState_t and VREvent_t were +// originally mis-compiled with the wrong packing for Linux and OSX. + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetControllerStatePacked(uint unControllerDeviceIndex,ref VRControllerState_t_Packed pControllerState,uint unControllerStateSize); + [StructLayout(LayoutKind.Explicit)] + struct GetControllerStateUnion + { + [FieldOffset(0)] + public IVRSystem._GetControllerState pGetControllerState; + [FieldOffset(0)] + public _GetControllerStatePacked pGetControllerStatePacked; + } + public bool GetControllerState(uint unControllerDeviceIndex,ref VRControllerState_t pControllerState,uint unControllerStateSize) + { + if ((System.Environment.OSVersion.Platform == System.PlatformID.MacOSX) || + (System.Environment.OSVersion.Platform == System.PlatformID.Unix)) + { + GetControllerStateUnion u; + VRControllerState_t_Packed state_packed = new VRControllerState_t_Packed(pControllerState); + u.pGetControllerStatePacked = null; + u.pGetControllerState = FnTable.GetControllerState; + bool packed_result = u.pGetControllerStatePacked(unControllerDeviceIndex,ref state_packed,(uint)System.Runtime.InteropServices.Marshal.SizeOf(typeof(VRControllerState_t_Packed))); + + state_packed.Unpack(ref pControllerState); + return packed_result; + } + bool result = FnTable.GetControllerState(unControllerDeviceIndex,ref pControllerState,unControllerStateSize); + return result; + } +// This is a terrible hack to workaround the fact that VRControllerState_t and VREvent_t were +// originally mis-compiled with the wrong packing for Linux and OSX. + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetControllerStateWithPosePacked(ETrackingUniverseOrigin eOrigin,uint unControllerDeviceIndex,ref VRControllerState_t_Packed pControllerState,uint unControllerStateSize,ref TrackedDevicePose_t pTrackedDevicePose); + [StructLayout(LayoutKind.Explicit)] + struct GetControllerStateWithPoseUnion + { + [FieldOffset(0)] + public IVRSystem._GetControllerStateWithPose pGetControllerStateWithPose; + [FieldOffset(0)] + public _GetControllerStateWithPosePacked pGetControllerStateWithPosePacked; + } + public bool GetControllerStateWithPose(ETrackingUniverseOrigin eOrigin,uint unControllerDeviceIndex,ref VRControllerState_t pControllerState,uint unControllerStateSize,ref TrackedDevicePose_t pTrackedDevicePose) + { + if ((System.Environment.OSVersion.Platform == System.PlatformID.MacOSX) || + (System.Environment.OSVersion.Platform == System.PlatformID.Unix)) + { + GetControllerStateWithPoseUnion u; + VRControllerState_t_Packed state_packed = new VRControllerState_t_Packed(pControllerState); + u.pGetControllerStateWithPosePacked = null; + u.pGetControllerStateWithPose = FnTable.GetControllerStateWithPose; + bool packed_result = u.pGetControllerStateWithPosePacked(eOrigin,unControllerDeviceIndex,ref state_packed,(uint)System.Runtime.InteropServices.Marshal.SizeOf(typeof(VRControllerState_t_Packed)),ref pTrackedDevicePose); + + state_packed.Unpack(ref pControllerState); + return packed_result; + } + bool result = FnTable.GetControllerStateWithPose(eOrigin,unControllerDeviceIndex,ref pControllerState,unControllerStateSize,ref pTrackedDevicePose); + return result; + } + public void TriggerHapticPulse(uint unControllerDeviceIndex,uint unAxisId,char usDurationMicroSec) + { + FnTable.TriggerHapticPulse(unControllerDeviceIndex,unAxisId,usDurationMicroSec); + } + public string GetButtonIdNameFromEnum(EVRButtonId eButtonId) + { + IntPtr result = FnTable.GetButtonIdNameFromEnum(eButtonId); + return Marshal.PtrToStringAnsi(result); + } + public string GetControllerAxisTypeNameFromEnum(EVRControllerAxisType eAxisType) + { + IntPtr result = FnTable.GetControllerAxisTypeNameFromEnum(eAxisType); + return Marshal.PtrToStringAnsi(result); + } + public bool CaptureInputFocus() + { + bool result = FnTable.CaptureInputFocus(); + return result; + } + public void ReleaseInputFocus() + { + FnTable.ReleaseInputFocus(); + } + public bool IsInputFocusCapturedByAnotherProcess() + { + bool result = FnTable.IsInputFocusCapturedByAnotherProcess(); + return result; + } + public uint DriverDebugRequest(uint unDeviceIndex,string pchRequest,string pchResponseBuffer,uint unResponseBufferSize) + { + uint result = FnTable.DriverDebugRequest(unDeviceIndex,pchRequest,pchResponseBuffer,unResponseBufferSize); + return result; + } + public EVRFirmwareError PerformFirmwareUpdate(uint unDeviceIndex) + { + EVRFirmwareError result = FnTable.PerformFirmwareUpdate(unDeviceIndex); + return result; + } + public void AcknowledgeQuit_Exiting() + { + FnTable.AcknowledgeQuit_Exiting(); + } + public void AcknowledgeQuit_UserPrompt() + { + FnTable.AcknowledgeQuit_UserPrompt(); + } +} + + +public class CVRExtendedDisplay +{ + IVRExtendedDisplay FnTable; + internal CVRExtendedDisplay(IntPtr pInterface) + { + FnTable = (IVRExtendedDisplay)Marshal.PtrToStructure(pInterface, typeof(IVRExtendedDisplay)); + } + public void GetWindowBounds(ref int pnX,ref int pnY,ref uint pnWidth,ref uint pnHeight) + { + pnX = 0; + pnY = 0; + pnWidth = 0; + pnHeight = 0; + FnTable.GetWindowBounds(ref pnX,ref pnY,ref pnWidth,ref pnHeight); + } + public void GetEyeOutputViewport(EVREye eEye,ref uint pnX,ref uint pnY,ref uint pnWidth,ref uint pnHeight) + { + pnX = 0; + pnY = 0; + pnWidth = 0; + pnHeight = 0; + FnTable.GetEyeOutputViewport(eEye,ref pnX,ref pnY,ref pnWidth,ref pnHeight); + } + public void GetDXGIOutputInfo(ref int pnAdapterIndex,ref int pnAdapterOutputIndex) + { + pnAdapterIndex = 0; + pnAdapterOutputIndex = 0; + FnTable.GetDXGIOutputInfo(ref pnAdapterIndex,ref pnAdapterOutputIndex); + } +} + + +public class CVRTrackedCamera +{ + IVRTrackedCamera FnTable; + internal CVRTrackedCamera(IntPtr pInterface) + { + FnTable = (IVRTrackedCamera)Marshal.PtrToStructure(pInterface, typeof(IVRTrackedCamera)); + } + public string GetCameraErrorNameFromEnum(EVRTrackedCameraError eCameraError) + { + IntPtr result = FnTable.GetCameraErrorNameFromEnum(eCameraError); + return Marshal.PtrToStringAnsi(result); + } + public EVRTrackedCameraError HasCamera(uint nDeviceIndex,ref bool pHasCamera) + { + pHasCamera = false; + EVRTrackedCameraError result = FnTable.HasCamera(nDeviceIndex,ref pHasCamera); + return result; + } + public EVRTrackedCameraError GetCameraFrameSize(uint nDeviceIndex,EVRTrackedCameraFrameType eFrameType,ref uint pnWidth,ref uint pnHeight,ref uint pnFrameBufferSize) + { + pnWidth = 0; + pnHeight = 0; + pnFrameBufferSize = 0; + EVRTrackedCameraError result = FnTable.GetCameraFrameSize(nDeviceIndex,eFrameType,ref pnWidth,ref pnHeight,ref pnFrameBufferSize); + return result; + } + public EVRTrackedCameraError GetCameraIntrinsics(uint nDeviceIndex,EVRTrackedCameraFrameType eFrameType,ref HmdVector2_t pFocalLength,ref HmdVector2_t pCenter) + { + EVRTrackedCameraError result = FnTable.GetCameraIntrinsics(nDeviceIndex,eFrameType,ref pFocalLength,ref pCenter); + return result; + } + public EVRTrackedCameraError GetCameraProjection(uint nDeviceIndex,EVRTrackedCameraFrameType eFrameType,float flZNear,float flZFar,ref HmdMatrix44_t pProjection) + { + EVRTrackedCameraError result = FnTable.GetCameraProjection(nDeviceIndex,eFrameType,flZNear,flZFar,ref pProjection); + return result; + } + public EVRTrackedCameraError AcquireVideoStreamingService(uint nDeviceIndex,ref ulong pHandle) + { + pHandle = 0; + EVRTrackedCameraError result = FnTable.AcquireVideoStreamingService(nDeviceIndex,ref pHandle); + return result; + } + public EVRTrackedCameraError ReleaseVideoStreamingService(ulong hTrackedCamera) + { + EVRTrackedCameraError result = FnTable.ReleaseVideoStreamingService(hTrackedCamera); + return result; + } + public EVRTrackedCameraError GetVideoStreamFrameBuffer(ulong hTrackedCamera,EVRTrackedCameraFrameType eFrameType,IntPtr pFrameBuffer,uint nFrameBufferSize,ref CameraVideoStreamFrameHeader_t pFrameHeader,uint nFrameHeaderSize) + { + EVRTrackedCameraError result = FnTable.GetVideoStreamFrameBuffer(hTrackedCamera,eFrameType,pFrameBuffer,nFrameBufferSize,ref pFrameHeader,nFrameHeaderSize); + return result; + } + public EVRTrackedCameraError GetVideoStreamTextureSize(uint nDeviceIndex,EVRTrackedCameraFrameType eFrameType,ref VRTextureBounds_t pTextureBounds,ref uint pnWidth,ref uint pnHeight) + { + pnWidth = 0; + pnHeight = 0; + EVRTrackedCameraError result = FnTable.GetVideoStreamTextureSize(nDeviceIndex,eFrameType,ref pTextureBounds,ref pnWidth,ref pnHeight); + return result; + } + public EVRTrackedCameraError GetVideoStreamTextureD3D11(ulong hTrackedCamera,EVRTrackedCameraFrameType eFrameType,IntPtr pD3D11DeviceOrResource,ref IntPtr ppD3D11ShaderResourceView,ref CameraVideoStreamFrameHeader_t pFrameHeader,uint nFrameHeaderSize) + { + EVRTrackedCameraError result = FnTable.GetVideoStreamTextureD3D11(hTrackedCamera,eFrameType,pD3D11DeviceOrResource,ref ppD3D11ShaderResourceView,ref pFrameHeader,nFrameHeaderSize); + return result; + } + public EVRTrackedCameraError GetVideoStreamTextureGL(ulong hTrackedCamera,EVRTrackedCameraFrameType eFrameType,ref uint pglTextureId,ref CameraVideoStreamFrameHeader_t pFrameHeader,uint nFrameHeaderSize) + { + pglTextureId = 0; + EVRTrackedCameraError result = FnTable.GetVideoStreamTextureGL(hTrackedCamera,eFrameType,ref pglTextureId,ref pFrameHeader,nFrameHeaderSize); + return result; + } + public EVRTrackedCameraError ReleaseVideoStreamTextureGL(ulong hTrackedCamera,uint glTextureId) + { + EVRTrackedCameraError result = FnTable.ReleaseVideoStreamTextureGL(hTrackedCamera,glTextureId); + return result; + } +} + + +public class CVRApplications +{ + IVRApplications FnTable; + internal CVRApplications(IntPtr pInterface) + { + FnTable = (IVRApplications)Marshal.PtrToStructure(pInterface, typeof(IVRApplications)); + } + public EVRApplicationError AddApplicationManifest(string pchApplicationManifestFullPath,bool bTemporary) + { + EVRApplicationError result = FnTable.AddApplicationManifest(pchApplicationManifestFullPath,bTemporary); + return result; + } + public EVRApplicationError RemoveApplicationManifest(string pchApplicationManifestFullPath) + { + EVRApplicationError result = FnTable.RemoveApplicationManifest(pchApplicationManifestFullPath); + return result; + } + public bool IsApplicationInstalled(string pchAppKey) + { + bool result = FnTable.IsApplicationInstalled(pchAppKey); + return result; + } + public uint GetApplicationCount() + { + uint result = FnTable.GetApplicationCount(); + return result; + } + public EVRApplicationError GetApplicationKeyByIndex(uint unApplicationIndex,System.Text.StringBuilder pchAppKeyBuffer,uint unAppKeyBufferLen) + { + EVRApplicationError result = FnTable.GetApplicationKeyByIndex(unApplicationIndex,pchAppKeyBuffer,unAppKeyBufferLen); + return result; + } + public EVRApplicationError GetApplicationKeyByProcessId(uint unProcessId,string pchAppKeyBuffer,uint unAppKeyBufferLen) + { + EVRApplicationError result = FnTable.GetApplicationKeyByProcessId(unProcessId,pchAppKeyBuffer,unAppKeyBufferLen); + return result; + } + public EVRApplicationError LaunchApplication(string pchAppKey) + { + EVRApplicationError result = FnTable.LaunchApplication(pchAppKey); + return result; + } + public EVRApplicationError LaunchTemplateApplication(string pchTemplateAppKey,string pchNewAppKey,AppOverrideKeys_t [] pKeys) + { + EVRApplicationError result = FnTable.LaunchTemplateApplication(pchTemplateAppKey,pchNewAppKey,pKeys,(uint) pKeys.Length); + return result; + } + public EVRApplicationError LaunchApplicationFromMimeType(string pchMimeType,string pchArgs) + { + EVRApplicationError result = FnTable.LaunchApplicationFromMimeType(pchMimeType,pchArgs); + return result; + } + public EVRApplicationError LaunchDashboardOverlay(string pchAppKey) + { + EVRApplicationError result = FnTable.LaunchDashboardOverlay(pchAppKey); + return result; + } + public bool CancelApplicationLaunch(string pchAppKey) + { + bool result = FnTable.CancelApplicationLaunch(pchAppKey); + return result; + } + public EVRApplicationError IdentifyApplication(uint unProcessId,string pchAppKey) + { + EVRApplicationError result = FnTable.IdentifyApplication(unProcessId,pchAppKey); + return result; + } + public uint GetApplicationProcessId(string pchAppKey) + { + uint result = FnTable.GetApplicationProcessId(pchAppKey); + return result; + } + public string GetApplicationsErrorNameFromEnum(EVRApplicationError error) + { + IntPtr result = FnTable.GetApplicationsErrorNameFromEnum(error); + return Marshal.PtrToStringAnsi(result); + } + public uint GetApplicationPropertyString(string pchAppKey,EVRApplicationProperty eProperty,System.Text.StringBuilder pchPropertyValueBuffer,uint unPropertyValueBufferLen,ref EVRApplicationError peError) + { + uint result = FnTable.GetApplicationPropertyString(pchAppKey,eProperty,pchPropertyValueBuffer,unPropertyValueBufferLen,ref peError); + return result; + } + public bool GetApplicationPropertyBool(string pchAppKey,EVRApplicationProperty eProperty,ref EVRApplicationError peError) + { + bool result = FnTable.GetApplicationPropertyBool(pchAppKey,eProperty,ref peError); + return result; + } + public ulong GetApplicationPropertyUint64(string pchAppKey,EVRApplicationProperty eProperty,ref EVRApplicationError peError) + { + ulong result = FnTable.GetApplicationPropertyUint64(pchAppKey,eProperty,ref peError); + return result; + } + public EVRApplicationError SetApplicationAutoLaunch(string pchAppKey,bool bAutoLaunch) + { + EVRApplicationError result = FnTable.SetApplicationAutoLaunch(pchAppKey,bAutoLaunch); + return result; + } + public bool GetApplicationAutoLaunch(string pchAppKey) + { + bool result = FnTable.GetApplicationAutoLaunch(pchAppKey); + return result; + } + public EVRApplicationError SetDefaultApplicationForMimeType(string pchAppKey,string pchMimeType) + { + EVRApplicationError result = FnTable.SetDefaultApplicationForMimeType(pchAppKey,pchMimeType); + return result; + } + public bool GetDefaultApplicationForMimeType(string pchMimeType,string pchAppKeyBuffer,uint unAppKeyBufferLen) + { + bool result = FnTable.GetDefaultApplicationForMimeType(pchMimeType,pchAppKeyBuffer,unAppKeyBufferLen); + return result; + } + public bool GetApplicationSupportedMimeTypes(string pchAppKey,string pchMimeTypesBuffer,uint unMimeTypesBuffer) + { + bool result = FnTable.GetApplicationSupportedMimeTypes(pchAppKey,pchMimeTypesBuffer,unMimeTypesBuffer); + return result; + } + public uint GetApplicationsThatSupportMimeType(string pchMimeType,string pchAppKeysThatSupportBuffer,uint unAppKeysThatSupportBuffer) + { + uint result = FnTable.GetApplicationsThatSupportMimeType(pchMimeType,pchAppKeysThatSupportBuffer,unAppKeysThatSupportBuffer); + return result; + } + public uint GetApplicationLaunchArguments(uint unHandle,string pchArgs,uint unArgs) + { + uint result = FnTable.GetApplicationLaunchArguments(unHandle,pchArgs,unArgs); + return result; + } + public EVRApplicationError GetStartingApplication(string pchAppKeyBuffer,uint unAppKeyBufferLen) + { + EVRApplicationError result = FnTable.GetStartingApplication(pchAppKeyBuffer,unAppKeyBufferLen); + return result; + } + public EVRApplicationTransitionState GetTransitionState() + { + EVRApplicationTransitionState result = FnTable.GetTransitionState(); + return result; + } + public EVRApplicationError PerformApplicationPrelaunchCheck(string pchAppKey) + { + EVRApplicationError result = FnTable.PerformApplicationPrelaunchCheck(pchAppKey); + return result; + } + public string GetApplicationsTransitionStateNameFromEnum(EVRApplicationTransitionState state) + { + IntPtr result = FnTable.GetApplicationsTransitionStateNameFromEnum(state); + return Marshal.PtrToStringAnsi(result); + } + public bool IsQuitUserPromptRequested() + { + bool result = FnTable.IsQuitUserPromptRequested(); + return result; + } + public EVRApplicationError LaunchInternalProcess(string pchBinaryPath,string pchArguments,string pchWorkingDirectory) + { + EVRApplicationError result = FnTable.LaunchInternalProcess(pchBinaryPath,pchArguments,pchWorkingDirectory); + return result; + } + public uint GetCurrentSceneProcessId() + { + uint result = FnTable.GetCurrentSceneProcessId(); + return result; + } +} + + +public class CVRChaperone +{ + IVRChaperone FnTable; + internal CVRChaperone(IntPtr pInterface) + { + FnTable = (IVRChaperone)Marshal.PtrToStructure(pInterface, typeof(IVRChaperone)); + } + public ChaperoneCalibrationState GetCalibrationState() + { + ChaperoneCalibrationState result = FnTable.GetCalibrationState(); + return result; + } + public bool GetPlayAreaSize(ref float pSizeX,ref float pSizeZ) + { + pSizeX = 0; + pSizeZ = 0; + bool result = FnTable.GetPlayAreaSize(ref pSizeX,ref pSizeZ); + return result; + } + public bool GetPlayAreaRect(ref HmdQuad_t rect) + { + bool result = FnTable.GetPlayAreaRect(ref rect); + return result; + } + public void ReloadInfo() + { + FnTable.ReloadInfo(); + } + public void SetSceneColor(HmdColor_t color) + { + FnTable.SetSceneColor(color); + } + public void GetBoundsColor(ref HmdColor_t pOutputColorArray,int nNumOutputColors,float flCollisionBoundsFadeDistance,ref HmdColor_t pOutputCameraColor) + { + FnTable.GetBoundsColor(ref pOutputColorArray,nNumOutputColors,flCollisionBoundsFadeDistance,ref pOutputCameraColor); + } + public bool AreBoundsVisible() + { + bool result = FnTable.AreBoundsVisible(); + return result; + } + public void ForceBoundsVisible(bool bForce) + { + FnTable.ForceBoundsVisible(bForce); + } +} + + +public class CVRChaperoneSetup +{ + IVRChaperoneSetup FnTable; + internal CVRChaperoneSetup(IntPtr pInterface) + { + FnTable = (IVRChaperoneSetup)Marshal.PtrToStructure(pInterface, typeof(IVRChaperoneSetup)); + } + public bool CommitWorkingCopy(EChaperoneConfigFile configFile) + { + bool result = FnTable.CommitWorkingCopy(configFile); + return result; + } + public void RevertWorkingCopy() + { + FnTable.RevertWorkingCopy(); + } + public bool GetWorkingPlayAreaSize(ref float pSizeX,ref float pSizeZ) + { + pSizeX = 0; + pSizeZ = 0; + bool result = FnTable.GetWorkingPlayAreaSize(ref pSizeX,ref pSizeZ); + return result; + } + public bool GetWorkingPlayAreaRect(ref HmdQuad_t rect) + { + bool result = FnTable.GetWorkingPlayAreaRect(ref rect); + return result; + } + public bool GetWorkingCollisionBoundsInfo(out HmdQuad_t [] pQuadsBuffer) + { + uint punQuadsCount = 0; + bool result = FnTable.GetWorkingCollisionBoundsInfo(null,ref punQuadsCount); + pQuadsBuffer= new HmdQuad_t[punQuadsCount]; + result = FnTable.GetWorkingCollisionBoundsInfo(pQuadsBuffer,ref punQuadsCount); + return result; + } + public bool GetLiveCollisionBoundsInfo(out HmdQuad_t [] pQuadsBuffer) + { + uint punQuadsCount = 0; + bool result = FnTable.GetLiveCollisionBoundsInfo(null,ref punQuadsCount); + pQuadsBuffer= new HmdQuad_t[punQuadsCount]; + result = FnTable.GetLiveCollisionBoundsInfo(pQuadsBuffer,ref punQuadsCount); + return result; + } + public bool GetWorkingSeatedZeroPoseToRawTrackingPose(ref HmdMatrix34_t pmatSeatedZeroPoseToRawTrackingPose) + { + bool result = FnTable.GetWorkingSeatedZeroPoseToRawTrackingPose(ref pmatSeatedZeroPoseToRawTrackingPose); + return result; + } + public bool GetWorkingStandingZeroPoseToRawTrackingPose(ref HmdMatrix34_t pmatStandingZeroPoseToRawTrackingPose) + { + bool result = FnTable.GetWorkingStandingZeroPoseToRawTrackingPose(ref pmatStandingZeroPoseToRawTrackingPose); + return result; + } + public void SetWorkingPlayAreaSize(float sizeX,float sizeZ) + { + FnTable.SetWorkingPlayAreaSize(sizeX,sizeZ); + } + public void SetWorkingCollisionBoundsInfo(HmdQuad_t [] pQuadsBuffer) + { + FnTable.SetWorkingCollisionBoundsInfo(pQuadsBuffer,(uint) pQuadsBuffer.Length); + } + public void SetWorkingSeatedZeroPoseToRawTrackingPose(ref HmdMatrix34_t pMatSeatedZeroPoseToRawTrackingPose) + { + FnTable.SetWorkingSeatedZeroPoseToRawTrackingPose(ref pMatSeatedZeroPoseToRawTrackingPose); + } + public void SetWorkingStandingZeroPoseToRawTrackingPose(ref HmdMatrix34_t pMatStandingZeroPoseToRawTrackingPose) + { + FnTable.SetWorkingStandingZeroPoseToRawTrackingPose(ref pMatStandingZeroPoseToRawTrackingPose); + } + public void ReloadFromDisk(EChaperoneConfigFile configFile) + { + FnTable.ReloadFromDisk(configFile); + } + public bool GetLiveSeatedZeroPoseToRawTrackingPose(ref HmdMatrix34_t pmatSeatedZeroPoseToRawTrackingPose) + { + bool result = FnTable.GetLiveSeatedZeroPoseToRawTrackingPose(ref pmatSeatedZeroPoseToRawTrackingPose); + return result; + } + public void SetWorkingCollisionBoundsTagsInfo(byte [] pTagsBuffer) + { + FnTable.SetWorkingCollisionBoundsTagsInfo(pTagsBuffer,(uint) pTagsBuffer.Length); + } + public bool GetLiveCollisionBoundsTagsInfo(out byte [] pTagsBuffer) + { + uint punTagCount = 0; + bool result = FnTable.GetLiveCollisionBoundsTagsInfo(null,ref punTagCount); + pTagsBuffer= new byte[punTagCount]; + result = FnTable.GetLiveCollisionBoundsTagsInfo(pTagsBuffer,ref punTagCount); + return result; + } + public bool SetWorkingPhysicalBoundsInfo(HmdQuad_t [] pQuadsBuffer) + { + bool result = FnTable.SetWorkingPhysicalBoundsInfo(pQuadsBuffer,(uint) pQuadsBuffer.Length); + return result; + } + public bool GetLivePhysicalBoundsInfo(out HmdQuad_t [] pQuadsBuffer) + { + uint punQuadsCount = 0; + bool result = FnTable.GetLivePhysicalBoundsInfo(null,ref punQuadsCount); + pQuadsBuffer= new HmdQuad_t[punQuadsCount]; + result = FnTable.GetLivePhysicalBoundsInfo(pQuadsBuffer,ref punQuadsCount); + return result; + } + public bool ExportLiveToBuffer(System.Text.StringBuilder pBuffer,ref uint pnBufferLength) + { + pnBufferLength = 0; + bool result = FnTable.ExportLiveToBuffer(pBuffer,ref pnBufferLength); + return result; + } + public bool ImportFromBufferToWorking(string pBuffer,uint nImportFlags) + { + bool result = FnTable.ImportFromBufferToWorking(pBuffer,nImportFlags); + return result; + } +} + + +public class CVRCompositor +{ + IVRCompositor FnTable; + internal CVRCompositor(IntPtr pInterface) + { + FnTable = (IVRCompositor)Marshal.PtrToStructure(pInterface, typeof(IVRCompositor)); + } + public void SetTrackingSpace(ETrackingUniverseOrigin eOrigin) + { + FnTable.SetTrackingSpace(eOrigin); + } + public ETrackingUniverseOrigin GetTrackingSpace() + { + ETrackingUniverseOrigin result = FnTable.GetTrackingSpace(); + return result; + } + public EVRCompositorError WaitGetPoses(TrackedDevicePose_t [] pRenderPoseArray,TrackedDevicePose_t [] pGamePoseArray) + { + EVRCompositorError result = FnTable.WaitGetPoses(pRenderPoseArray,(uint) pRenderPoseArray.Length,pGamePoseArray,(uint) pGamePoseArray.Length); + return result; + } + public EVRCompositorError GetLastPoses(TrackedDevicePose_t [] pRenderPoseArray,TrackedDevicePose_t [] pGamePoseArray) + { + EVRCompositorError result = FnTable.GetLastPoses(pRenderPoseArray,(uint) pRenderPoseArray.Length,pGamePoseArray,(uint) pGamePoseArray.Length); + return result; + } + public EVRCompositorError GetLastPoseForTrackedDeviceIndex(uint unDeviceIndex,ref TrackedDevicePose_t pOutputPose,ref TrackedDevicePose_t pOutputGamePose) + { + EVRCompositorError result = FnTable.GetLastPoseForTrackedDeviceIndex(unDeviceIndex,ref pOutputPose,ref pOutputGamePose); + return result; + } + public EVRCompositorError Submit(EVREye eEye,ref Texture_t pTexture,ref VRTextureBounds_t pBounds,EVRSubmitFlags nSubmitFlags) + { + EVRCompositorError result = FnTable.Submit(eEye,ref pTexture,ref pBounds,nSubmitFlags); + return result; + } + public void ClearLastSubmittedFrame() + { + FnTable.ClearLastSubmittedFrame(); + } + public void PostPresentHandoff() + { + FnTable.PostPresentHandoff(); + } + public bool GetFrameTiming(ref Compositor_FrameTiming pTiming,uint unFramesAgo) + { + bool result = FnTable.GetFrameTiming(ref pTiming,unFramesAgo); + return result; + } + public uint GetFrameTimings(ref Compositor_FrameTiming pTiming,uint nFrames) + { + uint result = FnTable.GetFrameTimings(ref pTiming,nFrames); + return result; + } + public float GetFrameTimeRemaining() + { + float result = FnTable.GetFrameTimeRemaining(); + return result; + } + public void GetCumulativeStats(ref Compositor_CumulativeStats pStats,uint nStatsSizeInBytes) + { + FnTable.GetCumulativeStats(ref pStats,nStatsSizeInBytes); + } + public void FadeToColor(float fSeconds,float fRed,float fGreen,float fBlue,float fAlpha,bool bBackground) + { + FnTable.FadeToColor(fSeconds,fRed,fGreen,fBlue,fAlpha,bBackground); + } + public HmdColor_t GetCurrentFadeColor(bool bBackground) + { + HmdColor_t result = FnTable.GetCurrentFadeColor(bBackground); + return result; + } + public void FadeGrid(float fSeconds,bool bFadeIn) + { + FnTable.FadeGrid(fSeconds,bFadeIn); + } + public float GetCurrentGridAlpha() + { + float result = FnTable.GetCurrentGridAlpha(); + return result; + } + public EVRCompositorError SetSkyboxOverride(Texture_t [] pTextures) + { + EVRCompositorError result = FnTable.SetSkyboxOverride(pTextures,(uint) pTextures.Length); + return result; + } + public void ClearSkyboxOverride() + { + FnTable.ClearSkyboxOverride(); + } + public void CompositorBringToFront() + { + FnTable.CompositorBringToFront(); + } + public void CompositorGoToBack() + { + FnTable.CompositorGoToBack(); + } + public void CompositorQuit() + { + FnTable.CompositorQuit(); + } + public bool IsFullscreen() + { + bool result = FnTable.IsFullscreen(); + return result; + } + public uint GetCurrentSceneFocusProcess() + { + uint result = FnTable.GetCurrentSceneFocusProcess(); + return result; + } + public uint GetLastFrameRenderer() + { + uint result = FnTable.GetLastFrameRenderer(); + return result; + } + public bool CanRenderScene() + { + bool result = FnTable.CanRenderScene(); + return result; + } + public void ShowMirrorWindow() + { + FnTable.ShowMirrorWindow(); + } + public void HideMirrorWindow() + { + FnTable.HideMirrorWindow(); + } + public bool IsMirrorWindowVisible() + { + bool result = FnTable.IsMirrorWindowVisible(); + return result; + } + public void CompositorDumpImages() + { + FnTable.CompositorDumpImages(); + } + public bool ShouldAppRenderWithLowResources() + { + bool result = FnTable.ShouldAppRenderWithLowResources(); + return result; + } + public void ForceInterleavedReprojectionOn(bool bOverride) + { + FnTable.ForceInterleavedReprojectionOn(bOverride); + } + public void ForceReconnectProcess() + { + FnTable.ForceReconnectProcess(); + } + public void SuspendRendering(bool bSuspend) + { + FnTable.SuspendRendering(bSuspend); + } + public EVRCompositorError GetMirrorTextureD3D11(EVREye eEye,IntPtr pD3D11DeviceOrResource,ref IntPtr ppD3D11ShaderResourceView) + { + EVRCompositorError result = FnTable.GetMirrorTextureD3D11(eEye,pD3D11DeviceOrResource,ref ppD3D11ShaderResourceView); + return result; + } + public void ReleaseMirrorTextureD3D11(IntPtr pD3D11ShaderResourceView) + { + FnTable.ReleaseMirrorTextureD3D11(pD3D11ShaderResourceView); + } + public EVRCompositorError GetMirrorTextureGL(EVREye eEye,ref uint pglTextureId,IntPtr pglSharedTextureHandle) + { + pglTextureId = 0; + EVRCompositorError result = FnTable.GetMirrorTextureGL(eEye,ref pglTextureId,pglSharedTextureHandle); + return result; + } + public bool ReleaseSharedGLTexture(uint glTextureId,IntPtr glSharedTextureHandle) + { + bool result = FnTable.ReleaseSharedGLTexture(glTextureId,glSharedTextureHandle); + return result; + } + public void LockGLSharedTextureForAccess(IntPtr glSharedTextureHandle) + { + FnTable.LockGLSharedTextureForAccess(glSharedTextureHandle); + } + public void UnlockGLSharedTextureForAccess(IntPtr glSharedTextureHandle) + { + FnTable.UnlockGLSharedTextureForAccess(glSharedTextureHandle); + } + public uint GetVulkanInstanceExtensionsRequired(System.Text.StringBuilder pchValue,uint unBufferSize) + { + uint result = FnTable.GetVulkanInstanceExtensionsRequired(pchValue,unBufferSize); + return result; + } + public uint GetVulkanDeviceExtensionsRequired(IntPtr pPhysicalDevice,System.Text.StringBuilder pchValue,uint unBufferSize) + { + uint result = FnTable.GetVulkanDeviceExtensionsRequired(pPhysicalDevice,pchValue,unBufferSize); + return result; + } +} + + +public class CVROverlay +{ + IVROverlay FnTable; + internal CVROverlay(IntPtr pInterface) + { + FnTable = (IVROverlay)Marshal.PtrToStructure(pInterface, typeof(IVROverlay)); + } + public EVROverlayError FindOverlay(string pchOverlayKey,ref ulong pOverlayHandle) + { + pOverlayHandle = 0; + EVROverlayError result = FnTable.FindOverlay(pchOverlayKey,ref pOverlayHandle); + return result; + } + public EVROverlayError CreateOverlay(string pchOverlayKey,string pchOverlayName,ref ulong pOverlayHandle) + { + pOverlayHandle = 0; + EVROverlayError result = FnTable.CreateOverlay(pchOverlayKey,pchOverlayName,ref pOverlayHandle); + return result; + } + public EVROverlayError DestroyOverlay(ulong ulOverlayHandle) + { + EVROverlayError result = FnTable.DestroyOverlay(ulOverlayHandle); + return result; + } + public EVROverlayError SetHighQualityOverlay(ulong ulOverlayHandle) + { + EVROverlayError result = FnTable.SetHighQualityOverlay(ulOverlayHandle); + return result; + } + public ulong GetHighQualityOverlay() + { + ulong result = FnTable.GetHighQualityOverlay(); + return result; + } + public uint GetOverlayKey(ulong ulOverlayHandle,System.Text.StringBuilder pchValue,uint unBufferSize,ref EVROverlayError pError) + { + uint result = FnTable.GetOverlayKey(ulOverlayHandle,pchValue,unBufferSize,ref pError); + return result; + } + public uint GetOverlayName(ulong ulOverlayHandle,System.Text.StringBuilder pchValue,uint unBufferSize,ref EVROverlayError pError) + { + uint result = FnTable.GetOverlayName(ulOverlayHandle,pchValue,unBufferSize,ref pError); + return result; + } + public EVROverlayError SetOverlayName(ulong ulOverlayHandle,string pchName) + { + EVROverlayError result = FnTable.SetOverlayName(ulOverlayHandle,pchName); + return result; + } + public EVROverlayError GetOverlayImageData(ulong ulOverlayHandle,IntPtr pvBuffer,uint unBufferSize,ref uint punWidth,ref uint punHeight) + { + punWidth = 0; + punHeight = 0; + EVROverlayError result = FnTable.GetOverlayImageData(ulOverlayHandle,pvBuffer,unBufferSize,ref punWidth,ref punHeight); + return result; + } + public string GetOverlayErrorNameFromEnum(EVROverlayError error) + { + IntPtr result = FnTable.GetOverlayErrorNameFromEnum(error); + return Marshal.PtrToStringAnsi(result); + } + public EVROverlayError SetOverlayRenderingPid(ulong ulOverlayHandle,uint unPID) + { + EVROverlayError result = FnTable.SetOverlayRenderingPid(ulOverlayHandle,unPID); + return result; + } + public uint GetOverlayRenderingPid(ulong ulOverlayHandle) + { + uint result = FnTable.GetOverlayRenderingPid(ulOverlayHandle); + return result; + } + public EVROverlayError SetOverlayFlag(ulong ulOverlayHandle,VROverlayFlags eOverlayFlag,bool bEnabled) + { + EVROverlayError result = FnTable.SetOverlayFlag(ulOverlayHandle,eOverlayFlag,bEnabled); + return result; + } + public EVROverlayError GetOverlayFlag(ulong ulOverlayHandle,VROverlayFlags eOverlayFlag,ref bool pbEnabled) + { + pbEnabled = false; + EVROverlayError result = FnTable.GetOverlayFlag(ulOverlayHandle,eOverlayFlag,ref pbEnabled); + return result; + } + public EVROverlayError SetOverlayColor(ulong ulOverlayHandle,float fRed,float fGreen,float fBlue) + { + EVROverlayError result = FnTable.SetOverlayColor(ulOverlayHandle,fRed,fGreen,fBlue); + return result; + } + public EVROverlayError GetOverlayColor(ulong ulOverlayHandle,ref float pfRed,ref float pfGreen,ref float pfBlue) + { + pfRed = 0; + pfGreen = 0; + pfBlue = 0; + EVROverlayError result = FnTable.GetOverlayColor(ulOverlayHandle,ref pfRed,ref pfGreen,ref pfBlue); + return result; + } + public EVROverlayError SetOverlayAlpha(ulong ulOverlayHandle,float fAlpha) + { + EVROverlayError result = FnTable.SetOverlayAlpha(ulOverlayHandle,fAlpha); + return result; + } + public EVROverlayError GetOverlayAlpha(ulong ulOverlayHandle,ref float pfAlpha) + { + pfAlpha = 0; + EVROverlayError result = FnTable.GetOverlayAlpha(ulOverlayHandle,ref pfAlpha); + return result; + } + public EVROverlayError SetOverlayTexelAspect(ulong ulOverlayHandle,float fTexelAspect) + { + EVROverlayError result = FnTable.SetOverlayTexelAspect(ulOverlayHandle,fTexelAspect); + return result; + } + public EVROverlayError GetOverlayTexelAspect(ulong ulOverlayHandle,ref float pfTexelAspect) + { + pfTexelAspect = 0; + EVROverlayError result = FnTable.GetOverlayTexelAspect(ulOverlayHandle,ref pfTexelAspect); + return result; + } + public EVROverlayError SetOverlaySortOrder(ulong ulOverlayHandle,uint unSortOrder) + { + EVROverlayError result = FnTable.SetOverlaySortOrder(ulOverlayHandle,unSortOrder); + return result; + } + public EVROverlayError GetOverlaySortOrder(ulong ulOverlayHandle,ref uint punSortOrder) + { + punSortOrder = 0; + EVROverlayError result = FnTable.GetOverlaySortOrder(ulOverlayHandle,ref punSortOrder); + return result; + } + public EVROverlayError SetOverlayWidthInMeters(ulong ulOverlayHandle,float fWidthInMeters) + { + EVROverlayError result = FnTable.SetOverlayWidthInMeters(ulOverlayHandle,fWidthInMeters); + return result; + } + public EVROverlayError GetOverlayWidthInMeters(ulong ulOverlayHandle,ref float pfWidthInMeters) + { + pfWidthInMeters = 0; + EVROverlayError result = FnTable.GetOverlayWidthInMeters(ulOverlayHandle,ref pfWidthInMeters); + return result; + } + public EVROverlayError SetOverlayAutoCurveDistanceRangeInMeters(ulong ulOverlayHandle,float fMinDistanceInMeters,float fMaxDistanceInMeters) + { + EVROverlayError result = FnTable.SetOverlayAutoCurveDistanceRangeInMeters(ulOverlayHandle,fMinDistanceInMeters,fMaxDistanceInMeters); + return result; + } + public EVROverlayError GetOverlayAutoCurveDistanceRangeInMeters(ulong ulOverlayHandle,ref float pfMinDistanceInMeters,ref float pfMaxDistanceInMeters) + { + pfMinDistanceInMeters = 0; + pfMaxDistanceInMeters = 0; + EVROverlayError result = FnTable.GetOverlayAutoCurveDistanceRangeInMeters(ulOverlayHandle,ref pfMinDistanceInMeters,ref pfMaxDistanceInMeters); + return result; + } + public EVROverlayError SetOverlayTextureColorSpace(ulong ulOverlayHandle,EColorSpace eTextureColorSpace) + { + EVROverlayError result = FnTable.SetOverlayTextureColorSpace(ulOverlayHandle,eTextureColorSpace); + return result; + } + public EVROverlayError GetOverlayTextureColorSpace(ulong ulOverlayHandle,ref EColorSpace peTextureColorSpace) + { + EVROverlayError result = FnTable.GetOverlayTextureColorSpace(ulOverlayHandle,ref peTextureColorSpace); + return result; + } + public EVROverlayError SetOverlayTextureBounds(ulong ulOverlayHandle,ref VRTextureBounds_t pOverlayTextureBounds) + { + EVROverlayError result = FnTable.SetOverlayTextureBounds(ulOverlayHandle,ref pOverlayTextureBounds); + return result; + } + public EVROverlayError GetOverlayTextureBounds(ulong ulOverlayHandle,ref VRTextureBounds_t pOverlayTextureBounds) + { + EVROverlayError result = FnTable.GetOverlayTextureBounds(ulOverlayHandle,ref pOverlayTextureBounds); + return result; + } + public uint GetOverlayRenderModel(ulong ulOverlayHandle,string pchValue,uint unBufferSize,ref HmdColor_t pColor,ref EVROverlayError pError) + { + uint result = FnTable.GetOverlayRenderModel(ulOverlayHandle,pchValue,unBufferSize,ref pColor,ref pError); + return result; + } + public EVROverlayError SetOverlayRenderModel(ulong ulOverlayHandle,string pchRenderModel,ref HmdColor_t pColor) + { + EVROverlayError result = FnTable.SetOverlayRenderModel(ulOverlayHandle,pchRenderModel,ref pColor); + return result; + } + public EVROverlayError GetOverlayTransformType(ulong ulOverlayHandle,ref VROverlayTransformType peTransformType) + { + EVROverlayError result = FnTable.GetOverlayTransformType(ulOverlayHandle,ref peTransformType); + return result; + } + public EVROverlayError SetOverlayTransformAbsolute(ulong ulOverlayHandle,ETrackingUniverseOrigin eTrackingOrigin,ref HmdMatrix34_t pmatTrackingOriginToOverlayTransform) + { + EVROverlayError result = FnTable.SetOverlayTransformAbsolute(ulOverlayHandle,eTrackingOrigin,ref pmatTrackingOriginToOverlayTransform); + return result; + } + public EVROverlayError GetOverlayTransformAbsolute(ulong ulOverlayHandle,ref ETrackingUniverseOrigin peTrackingOrigin,ref HmdMatrix34_t pmatTrackingOriginToOverlayTransform) + { + EVROverlayError result = FnTable.GetOverlayTransformAbsolute(ulOverlayHandle,ref peTrackingOrigin,ref pmatTrackingOriginToOverlayTransform); + return result; + } + public EVROverlayError SetOverlayTransformTrackedDeviceRelative(ulong ulOverlayHandle,uint unTrackedDevice,ref HmdMatrix34_t pmatTrackedDeviceToOverlayTransform) + { + EVROverlayError result = FnTable.SetOverlayTransformTrackedDeviceRelative(ulOverlayHandle,unTrackedDevice,ref pmatTrackedDeviceToOverlayTransform); + return result; + } + public EVROverlayError GetOverlayTransformTrackedDeviceRelative(ulong ulOverlayHandle,ref uint punTrackedDevice,ref HmdMatrix34_t pmatTrackedDeviceToOverlayTransform) + { + punTrackedDevice = 0; + EVROverlayError result = FnTable.GetOverlayTransformTrackedDeviceRelative(ulOverlayHandle,ref punTrackedDevice,ref pmatTrackedDeviceToOverlayTransform); + return result; + } + public EVROverlayError SetOverlayTransformTrackedDeviceComponent(ulong ulOverlayHandle,uint unDeviceIndex,string pchComponentName) + { + EVROverlayError result = FnTable.SetOverlayTransformTrackedDeviceComponent(ulOverlayHandle,unDeviceIndex,pchComponentName); + return result; + } + public EVROverlayError GetOverlayTransformTrackedDeviceComponent(ulong ulOverlayHandle,ref uint punDeviceIndex,string pchComponentName,uint unComponentNameSize) + { + punDeviceIndex = 0; + EVROverlayError result = FnTable.GetOverlayTransformTrackedDeviceComponent(ulOverlayHandle,ref punDeviceIndex,pchComponentName,unComponentNameSize); + return result; + } + public EVROverlayError GetOverlayTransformOverlayRelative(ulong ulOverlayHandle,ref ulong ulOverlayHandleParent,ref HmdMatrix34_t pmatParentOverlayToOverlayTransform) + { + ulOverlayHandleParent = 0; + EVROverlayError result = FnTable.GetOverlayTransformOverlayRelative(ulOverlayHandle,ref ulOverlayHandleParent,ref pmatParentOverlayToOverlayTransform); + return result; + } + public EVROverlayError SetOverlayTransformOverlayRelative(ulong ulOverlayHandle,ulong ulOverlayHandleParent,ref HmdMatrix34_t pmatParentOverlayToOverlayTransform) + { + EVROverlayError result = FnTable.SetOverlayTransformOverlayRelative(ulOverlayHandle,ulOverlayHandleParent,ref pmatParentOverlayToOverlayTransform); + return result; + } + public EVROverlayError ShowOverlay(ulong ulOverlayHandle) + { + EVROverlayError result = FnTable.ShowOverlay(ulOverlayHandle); + return result; + } + public EVROverlayError HideOverlay(ulong ulOverlayHandle) + { + EVROverlayError result = FnTable.HideOverlay(ulOverlayHandle); + return result; + } + public bool IsOverlayVisible(ulong ulOverlayHandle) + { + bool result = FnTable.IsOverlayVisible(ulOverlayHandle); + return result; + } + public EVROverlayError GetTransformForOverlayCoordinates(ulong ulOverlayHandle,ETrackingUniverseOrigin eTrackingOrigin,HmdVector2_t coordinatesInOverlay,ref HmdMatrix34_t pmatTransform) + { + EVROverlayError result = FnTable.GetTransformForOverlayCoordinates(ulOverlayHandle,eTrackingOrigin,coordinatesInOverlay,ref pmatTransform); + return result; + } +// This is a terrible hack to workaround the fact that VRControllerState_t and VREvent_t were +// originally mis-compiled with the wrong packing for Linux and OSX. + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _PollNextOverlayEventPacked(ulong ulOverlayHandle,ref VREvent_t_Packed pEvent,uint uncbVREvent); + [StructLayout(LayoutKind.Explicit)] + struct PollNextOverlayEventUnion + { + [FieldOffset(0)] + public IVROverlay._PollNextOverlayEvent pPollNextOverlayEvent; + [FieldOffset(0)] + public _PollNextOverlayEventPacked pPollNextOverlayEventPacked; + } + public bool PollNextOverlayEvent(ulong ulOverlayHandle,ref VREvent_t pEvent,uint uncbVREvent) + { + if ((System.Environment.OSVersion.Platform == System.PlatformID.MacOSX) || + (System.Environment.OSVersion.Platform == System.PlatformID.Unix)) + { + PollNextOverlayEventUnion u; + VREvent_t_Packed event_packed = new VREvent_t_Packed(); + u.pPollNextOverlayEventPacked = null; + u.pPollNextOverlayEvent = FnTable.PollNextOverlayEvent; + bool packed_result = u.pPollNextOverlayEventPacked(ulOverlayHandle,ref event_packed,(uint)System.Runtime.InteropServices.Marshal.SizeOf(typeof(VREvent_t_Packed))); + + event_packed.Unpack(ref pEvent); + return packed_result; + } + bool result = FnTable.PollNextOverlayEvent(ulOverlayHandle,ref pEvent,uncbVREvent); + return result; + } + public EVROverlayError GetOverlayInputMethod(ulong ulOverlayHandle,ref VROverlayInputMethod peInputMethod) + { + EVROverlayError result = FnTable.GetOverlayInputMethod(ulOverlayHandle,ref peInputMethod); + return result; + } + public EVROverlayError SetOverlayInputMethod(ulong ulOverlayHandle,VROverlayInputMethod eInputMethod) + { + EVROverlayError result = FnTable.SetOverlayInputMethod(ulOverlayHandle,eInputMethod); + return result; + } + public EVROverlayError GetOverlayMouseScale(ulong ulOverlayHandle,ref HmdVector2_t pvecMouseScale) + { + EVROverlayError result = FnTable.GetOverlayMouseScale(ulOverlayHandle,ref pvecMouseScale); + return result; + } + public EVROverlayError SetOverlayMouseScale(ulong ulOverlayHandle,ref HmdVector2_t pvecMouseScale) + { + EVROverlayError result = FnTable.SetOverlayMouseScale(ulOverlayHandle,ref pvecMouseScale); + return result; + } + public bool ComputeOverlayIntersection(ulong ulOverlayHandle,ref VROverlayIntersectionParams_t pParams,ref VROverlayIntersectionResults_t pResults) + { + bool result = FnTable.ComputeOverlayIntersection(ulOverlayHandle,ref pParams,ref pResults); + return result; + } + public bool HandleControllerOverlayInteractionAsMouse(ulong ulOverlayHandle,uint unControllerDeviceIndex) + { + bool result = FnTable.HandleControllerOverlayInteractionAsMouse(ulOverlayHandle,unControllerDeviceIndex); + return result; + } + public bool IsHoverTargetOverlay(ulong ulOverlayHandle) + { + bool result = FnTable.IsHoverTargetOverlay(ulOverlayHandle); + return result; + } + public ulong GetGamepadFocusOverlay() + { + ulong result = FnTable.GetGamepadFocusOverlay(); + return result; + } + public EVROverlayError SetGamepadFocusOverlay(ulong ulNewFocusOverlay) + { + EVROverlayError result = FnTable.SetGamepadFocusOverlay(ulNewFocusOverlay); + return result; + } + public EVROverlayError SetOverlayNeighbor(EOverlayDirection eDirection,ulong ulFrom,ulong ulTo) + { + EVROverlayError result = FnTable.SetOverlayNeighbor(eDirection,ulFrom,ulTo); + return result; + } + public EVROverlayError MoveGamepadFocusToNeighbor(EOverlayDirection eDirection,ulong ulFrom) + { + EVROverlayError result = FnTable.MoveGamepadFocusToNeighbor(eDirection,ulFrom); + return result; + } + public EVROverlayError SetOverlayTexture(ulong ulOverlayHandle,ref Texture_t pTexture) + { + EVROverlayError result = FnTable.SetOverlayTexture(ulOverlayHandle,ref pTexture); + return result; + } + public EVROverlayError ClearOverlayTexture(ulong ulOverlayHandle) + { + EVROverlayError result = FnTable.ClearOverlayTexture(ulOverlayHandle); + return result; + } + public EVROverlayError SetOverlayRaw(ulong ulOverlayHandle,IntPtr pvBuffer,uint unWidth,uint unHeight,uint unDepth) + { + EVROverlayError result = FnTable.SetOverlayRaw(ulOverlayHandle,pvBuffer,unWidth,unHeight,unDepth); + return result; + } + public EVROverlayError SetOverlayFromFile(ulong ulOverlayHandle,string pchFilePath) + { + EVROverlayError result = FnTable.SetOverlayFromFile(ulOverlayHandle,pchFilePath); + return result; + } + public EVROverlayError GetOverlayTexture(ulong ulOverlayHandle,ref IntPtr pNativeTextureHandle,IntPtr pNativeTextureRef,ref uint pWidth,ref uint pHeight,ref uint pNativeFormat,ref ETextureType pAPIType,ref EColorSpace pColorSpace,ref VRTextureBounds_t pTextureBounds) + { + pWidth = 0; + pHeight = 0; + pNativeFormat = 0; + EVROverlayError result = FnTable.GetOverlayTexture(ulOverlayHandle,ref pNativeTextureHandle,pNativeTextureRef,ref pWidth,ref pHeight,ref pNativeFormat,ref pAPIType,ref pColorSpace,ref pTextureBounds); + return result; + } + public EVROverlayError ReleaseNativeOverlayHandle(ulong ulOverlayHandle,IntPtr pNativeTextureHandle) + { + EVROverlayError result = FnTable.ReleaseNativeOverlayHandle(ulOverlayHandle,pNativeTextureHandle); + return result; + } + public EVROverlayError GetOverlayTextureSize(ulong ulOverlayHandle,ref uint pWidth,ref uint pHeight) + { + pWidth = 0; + pHeight = 0; + EVROverlayError result = FnTable.GetOverlayTextureSize(ulOverlayHandle,ref pWidth,ref pHeight); + return result; + } + public EVROverlayError CreateDashboardOverlay(string pchOverlayKey,string pchOverlayFriendlyName,ref ulong pMainHandle,ref ulong pThumbnailHandle) + { + pMainHandle = 0; + pThumbnailHandle = 0; + EVROverlayError result = FnTable.CreateDashboardOverlay(pchOverlayKey,pchOverlayFriendlyName,ref pMainHandle,ref pThumbnailHandle); + return result; + } + public bool IsDashboardVisible() + { + bool result = FnTable.IsDashboardVisible(); + return result; + } + public bool IsActiveDashboardOverlay(ulong ulOverlayHandle) + { + bool result = FnTable.IsActiveDashboardOverlay(ulOverlayHandle); + return result; + } + public EVROverlayError SetDashboardOverlaySceneProcess(ulong ulOverlayHandle,uint unProcessId) + { + EVROverlayError result = FnTable.SetDashboardOverlaySceneProcess(ulOverlayHandle,unProcessId); + return result; + } + public EVROverlayError GetDashboardOverlaySceneProcess(ulong ulOverlayHandle,ref uint punProcessId) + { + punProcessId = 0; + EVROverlayError result = FnTable.GetDashboardOverlaySceneProcess(ulOverlayHandle,ref punProcessId); + return result; + } + public void ShowDashboard(string pchOverlayToShow) + { + FnTable.ShowDashboard(pchOverlayToShow); + } + public uint GetPrimaryDashboardDevice() + { + uint result = FnTable.GetPrimaryDashboardDevice(); + return result; + } + public EVROverlayError ShowKeyboard(int eInputMode,int eLineInputMode,string pchDescription,uint unCharMax,string pchExistingText,bool bUseMinimalMode,ulong uUserValue) + { + EVROverlayError result = FnTable.ShowKeyboard(eInputMode,eLineInputMode,pchDescription,unCharMax,pchExistingText,bUseMinimalMode,uUserValue); + return result; + } + public EVROverlayError ShowKeyboardForOverlay(ulong ulOverlayHandle,int eInputMode,int eLineInputMode,string pchDescription,uint unCharMax,string pchExistingText,bool bUseMinimalMode,ulong uUserValue) + { + EVROverlayError result = FnTable.ShowKeyboardForOverlay(ulOverlayHandle,eInputMode,eLineInputMode,pchDescription,unCharMax,pchExistingText,bUseMinimalMode,uUserValue); + return result; + } + public uint GetKeyboardText(System.Text.StringBuilder pchText,uint cchText) + { + uint result = FnTable.GetKeyboardText(pchText,cchText); + return result; + } + public void HideKeyboard() + { + FnTable.HideKeyboard(); + } + public void SetKeyboardTransformAbsolute(ETrackingUniverseOrigin eTrackingOrigin,ref HmdMatrix34_t pmatTrackingOriginToKeyboardTransform) + { + FnTable.SetKeyboardTransformAbsolute(eTrackingOrigin,ref pmatTrackingOriginToKeyboardTransform); + } + public void SetKeyboardPositionForOverlay(ulong ulOverlayHandle,HmdRect2_t avoidRect) + { + FnTable.SetKeyboardPositionForOverlay(ulOverlayHandle,avoidRect); + } + public EVROverlayError SetOverlayIntersectionMask(ulong ulOverlayHandle,ref VROverlayIntersectionMaskPrimitive_t pMaskPrimitives,uint unNumMaskPrimitives,uint unPrimitiveSize) + { + EVROverlayError result = FnTable.SetOverlayIntersectionMask(ulOverlayHandle,ref pMaskPrimitives,unNumMaskPrimitives,unPrimitiveSize); + return result; + } + public EVROverlayError GetOverlayFlags(ulong ulOverlayHandle,ref uint pFlags) + { + pFlags = 0; + EVROverlayError result = FnTable.GetOverlayFlags(ulOverlayHandle,ref pFlags); + return result; + } + public VRMessageOverlayResponse ShowMessageOverlay(string pchText,string pchCaption,string pchButton0Text,string pchButton1Text,string pchButton2Text,string pchButton3Text) + { + VRMessageOverlayResponse result = FnTable.ShowMessageOverlay(pchText,pchCaption,pchButton0Text,pchButton1Text,pchButton2Text,pchButton3Text); + return result; + } +} + + +public class CVRRenderModels +{ + IVRRenderModels FnTable; + internal CVRRenderModels(IntPtr pInterface) + { + FnTable = (IVRRenderModels)Marshal.PtrToStructure(pInterface, typeof(IVRRenderModels)); + } + public EVRRenderModelError LoadRenderModel_Async(string pchRenderModelName,ref IntPtr ppRenderModel) + { + EVRRenderModelError result = FnTable.LoadRenderModel_Async(pchRenderModelName,ref ppRenderModel); + return result; + } + public void FreeRenderModel(IntPtr pRenderModel) + { + FnTable.FreeRenderModel(pRenderModel); + } + public EVRRenderModelError LoadTexture_Async(int textureId,ref IntPtr ppTexture) + { + EVRRenderModelError result = FnTable.LoadTexture_Async(textureId,ref ppTexture); + return result; + } + public void FreeTexture(IntPtr pTexture) + { + FnTable.FreeTexture(pTexture); + } + public EVRRenderModelError LoadTextureD3D11_Async(int textureId,IntPtr pD3D11Device,ref IntPtr ppD3D11Texture2D) + { + EVRRenderModelError result = FnTable.LoadTextureD3D11_Async(textureId,pD3D11Device,ref ppD3D11Texture2D); + return result; + } + public EVRRenderModelError LoadIntoTextureD3D11_Async(int textureId,IntPtr pDstTexture) + { + EVRRenderModelError result = FnTable.LoadIntoTextureD3D11_Async(textureId,pDstTexture); + return result; + } + public void FreeTextureD3D11(IntPtr pD3D11Texture2D) + { + FnTable.FreeTextureD3D11(pD3D11Texture2D); + } + public uint GetRenderModelName(uint unRenderModelIndex,System.Text.StringBuilder pchRenderModelName,uint unRenderModelNameLen) + { + uint result = FnTable.GetRenderModelName(unRenderModelIndex,pchRenderModelName,unRenderModelNameLen); + return result; + } + public uint GetRenderModelCount() + { + uint result = FnTable.GetRenderModelCount(); + return result; + } + public uint GetComponentCount(string pchRenderModelName) + { + uint result = FnTable.GetComponentCount(pchRenderModelName); + return result; + } + public uint GetComponentName(string pchRenderModelName,uint unComponentIndex,System.Text.StringBuilder pchComponentName,uint unComponentNameLen) + { + uint result = FnTable.GetComponentName(pchRenderModelName,unComponentIndex,pchComponentName,unComponentNameLen); + return result; + } + public ulong GetComponentButtonMask(string pchRenderModelName,string pchComponentName) + { + ulong result = FnTable.GetComponentButtonMask(pchRenderModelName,pchComponentName); + return result; + } + public uint GetComponentRenderModelName(string pchRenderModelName,string pchComponentName,System.Text.StringBuilder pchComponentRenderModelName,uint unComponentRenderModelNameLen) + { + uint result = FnTable.GetComponentRenderModelName(pchRenderModelName,pchComponentName,pchComponentRenderModelName,unComponentRenderModelNameLen); + return result; + } +// This is a terrible hack to workaround the fact that VRControllerState_t and VREvent_t were +// originally mis-compiled with the wrong packing for Linux and OSX. + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate bool _GetComponentStatePacked(string pchRenderModelName,string pchComponentName,ref VRControllerState_t_Packed pControllerState,ref RenderModel_ControllerMode_State_t pState,ref RenderModel_ComponentState_t pComponentState); + [StructLayout(LayoutKind.Explicit)] + struct GetComponentStateUnion + { + [FieldOffset(0)] + public IVRRenderModels._GetComponentState pGetComponentState; + [FieldOffset(0)] + public _GetComponentStatePacked pGetComponentStatePacked; + } + public bool GetComponentState(string pchRenderModelName,string pchComponentName,ref VRControllerState_t pControllerState,ref RenderModel_ControllerMode_State_t pState,ref RenderModel_ComponentState_t pComponentState) + { + if ((System.Environment.OSVersion.Platform == System.PlatformID.MacOSX) || + (System.Environment.OSVersion.Platform == System.PlatformID.Unix)) + { + GetComponentStateUnion u; + VRControllerState_t_Packed state_packed = new VRControllerState_t_Packed(pControllerState); + u.pGetComponentStatePacked = null; + u.pGetComponentState = FnTable.GetComponentState; + bool packed_result = u.pGetComponentStatePacked(pchRenderModelName,pchComponentName,ref state_packed,ref pState,ref pComponentState); + + state_packed.Unpack(ref pControllerState); + return packed_result; + } + bool result = FnTable.GetComponentState(pchRenderModelName,pchComponentName,ref pControllerState,ref pState,ref pComponentState); + return result; + } + public bool RenderModelHasComponent(string pchRenderModelName,string pchComponentName) + { + bool result = FnTable.RenderModelHasComponent(pchRenderModelName,pchComponentName); + return result; + } + public uint GetRenderModelThumbnailURL(string pchRenderModelName,System.Text.StringBuilder pchThumbnailURL,uint unThumbnailURLLen,ref EVRRenderModelError peError) + { + uint result = FnTable.GetRenderModelThumbnailURL(pchRenderModelName,pchThumbnailURL,unThumbnailURLLen,ref peError); + return result; + } + public uint GetRenderModelOriginalPath(string pchRenderModelName,System.Text.StringBuilder pchOriginalPath,uint unOriginalPathLen,ref EVRRenderModelError peError) + { + uint result = FnTable.GetRenderModelOriginalPath(pchRenderModelName,pchOriginalPath,unOriginalPathLen,ref peError); + return result; + } + public string GetRenderModelErrorNameFromEnum(EVRRenderModelError error) + { + IntPtr result = FnTable.GetRenderModelErrorNameFromEnum(error); + return Marshal.PtrToStringAnsi(result); + } +} + + +public class CVRNotifications +{ + IVRNotifications FnTable; + internal CVRNotifications(IntPtr pInterface) + { + FnTable = (IVRNotifications)Marshal.PtrToStructure(pInterface, typeof(IVRNotifications)); + } + public EVRNotificationError CreateNotification(ulong ulOverlayHandle,ulong ulUserValue,EVRNotificationType type,string pchText,EVRNotificationStyle style,ref NotificationBitmap_t pImage,ref uint pNotificationId) + { + pNotificationId = 0; + EVRNotificationError result = FnTable.CreateNotification(ulOverlayHandle,ulUserValue,type,pchText,style,ref pImage,ref pNotificationId); + return result; + } + public EVRNotificationError RemoveNotification(uint notificationId) + { + EVRNotificationError result = FnTable.RemoveNotification(notificationId); + return result; + } +} + + +public class CVRSettings +{ + IVRSettings FnTable; + internal CVRSettings(IntPtr pInterface) + { + FnTable = (IVRSettings)Marshal.PtrToStructure(pInterface, typeof(IVRSettings)); + } + public string GetSettingsErrorNameFromEnum(EVRSettingsError eError) + { + IntPtr result = FnTable.GetSettingsErrorNameFromEnum(eError); + return Marshal.PtrToStringAnsi(result); + } + public bool Sync(bool bForce,ref EVRSettingsError peError) + { + bool result = FnTable.Sync(bForce,ref peError); + return result; + } + public void SetBool(string pchSection,string pchSettingsKey,bool bValue,ref EVRSettingsError peError) + { + FnTable.SetBool(pchSection,pchSettingsKey,bValue,ref peError); + } + public void SetInt32(string pchSection,string pchSettingsKey,int nValue,ref EVRSettingsError peError) + { + FnTable.SetInt32(pchSection,pchSettingsKey,nValue,ref peError); + } + public void SetFloat(string pchSection,string pchSettingsKey,float flValue,ref EVRSettingsError peError) + { + FnTable.SetFloat(pchSection,pchSettingsKey,flValue,ref peError); + } + public void SetString(string pchSection,string pchSettingsKey,string pchValue,ref EVRSettingsError peError) + { + FnTable.SetString(pchSection,pchSettingsKey,pchValue,ref peError); + } + public bool GetBool(string pchSection,string pchSettingsKey,ref EVRSettingsError peError) + { + bool result = FnTable.GetBool(pchSection,pchSettingsKey,ref peError); + return result; + } + public int GetInt32(string pchSection,string pchSettingsKey,ref EVRSettingsError peError) + { + int result = FnTable.GetInt32(pchSection,pchSettingsKey,ref peError); + return result; + } + public float GetFloat(string pchSection,string pchSettingsKey,ref EVRSettingsError peError) + { + float result = FnTable.GetFloat(pchSection,pchSettingsKey,ref peError); + return result; + } + public void GetString(string pchSection,string pchSettingsKey,System.Text.StringBuilder pchValue,uint unValueLen,ref EVRSettingsError peError) + { + FnTable.GetString(pchSection,pchSettingsKey,pchValue,unValueLen,ref peError); + } + public void RemoveSection(string pchSection,ref EVRSettingsError peError) + { + FnTable.RemoveSection(pchSection,ref peError); + } + public void RemoveKeyInSection(string pchSection,string pchSettingsKey,ref EVRSettingsError peError) + { + FnTable.RemoveKeyInSection(pchSection,pchSettingsKey,ref peError); + } +} + + +public class CVRScreenshots +{ + IVRScreenshots FnTable; + internal CVRScreenshots(IntPtr pInterface) + { + FnTable = (IVRScreenshots)Marshal.PtrToStructure(pInterface, typeof(IVRScreenshots)); + } + public EVRScreenshotError RequestScreenshot(ref uint pOutScreenshotHandle,EVRScreenshotType type,string pchPreviewFilename,string pchVRFilename) + { + pOutScreenshotHandle = 0; + EVRScreenshotError result = FnTable.RequestScreenshot(ref pOutScreenshotHandle,type,pchPreviewFilename,pchVRFilename); + return result; + } + public EVRScreenshotError HookScreenshot(EVRScreenshotType [] pSupportedTypes) + { + EVRScreenshotError result = FnTable.HookScreenshot(pSupportedTypes,(int) pSupportedTypes.Length); + return result; + } + public EVRScreenshotType GetScreenshotPropertyType(uint screenshotHandle,ref EVRScreenshotError pError) + { + EVRScreenshotType result = FnTable.GetScreenshotPropertyType(screenshotHandle,ref pError); + return result; + } + public uint GetScreenshotPropertyFilename(uint screenshotHandle,EVRScreenshotPropertyFilenames filenameType,System.Text.StringBuilder pchFilename,uint cchFilename,ref EVRScreenshotError pError) + { + uint result = FnTable.GetScreenshotPropertyFilename(screenshotHandle,filenameType,pchFilename,cchFilename,ref pError); + return result; + } + public EVRScreenshotError UpdateScreenshotProgress(uint screenshotHandle,float flProgress) + { + EVRScreenshotError result = FnTable.UpdateScreenshotProgress(screenshotHandle,flProgress); + return result; + } + public EVRScreenshotError TakeStereoScreenshot(ref uint pOutScreenshotHandle,string pchPreviewFilename,string pchVRFilename) + { + pOutScreenshotHandle = 0; + EVRScreenshotError result = FnTable.TakeStereoScreenshot(ref pOutScreenshotHandle,pchPreviewFilename,pchVRFilename); + return result; + } + public EVRScreenshotError SubmitScreenshot(uint screenshotHandle,EVRScreenshotType type,string pchSourcePreviewFilename,string pchSourceVRFilename) + { + EVRScreenshotError result = FnTable.SubmitScreenshot(screenshotHandle,type,pchSourcePreviewFilename,pchSourceVRFilename); + return result; + } +} + + +public class CVRResources +{ + IVRResources FnTable; + internal CVRResources(IntPtr pInterface) + { + FnTable = (IVRResources)Marshal.PtrToStructure(pInterface, typeof(IVRResources)); + } + public uint LoadSharedResource(string pchResourceName,string pchBuffer,uint unBufferLen) + { + uint result = FnTable.LoadSharedResource(pchResourceName,pchBuffer,unBufferLen); + return result; + } + public uint GetResourceFullPath(string pchResourceName,string pchResourceTypeDirectory,string pchPathBuffer,uint unBufferLen) + { + uint result = FnTable.GetResourceFullPath(pchResourceName,pchResourceTypeDirectory,pchPathBuffer,unBufferLen); + return result; + } +} + + +public class CVRDriverManager +{ + IVRDriverManager FnTable; + internal CVRDriverManager(IntPtr pInterface) + { + FnTable = (IVRDriverManager)Marshal.PtrToStructure(pInterface, typeof(IVRDriverManager)); + } + public uint GetDriverCount() + { + uint result = FnTable.GetDriverCount(); + return result; + } + public uint GetDriverName(uint nDriver,System.Text.StringBuilder pchValue,uint unBufferSize) + { + uint result = FnTable.GetDriverName(nDriver,pchValue,unBufferSize); + return result; + } +} + + +public class OpenVRInterop +{ + [DllImportAttribute("openvr_api", EntryPoint = "VR_InitInternal", CallingConvention = CallingConvention.Cdecl)] + internal static extern uint InitInternal(ref EVRInitError peError, EVRApplicationType eApplicationType); + [DllImportAttribute("openvr_api", EntryPoint = "VR_ShutdownInternal", CallingConvention = CallingConvention.Cdecl)] + internal static extern void ShutdownInternal(); + [DllImportAttribute("openvr_api", EntryPoint = "VR_IsHmdPresent", CallingConvention = CallingConvention.Cdecl)] + internal static extern bool IsHmdPresent(); + [DllImportAttribute("openvr_api", EntryPoint = "VR_IsRuntimeInstalled", CallingConvention = CallingConvention.Cdecl)] + internal static extern bool IsRuntimeInstalled(); + [DllImportAttribute("openvr_api", EntryPoint = "VR_GetStringForHmdError", CallingConvention = CallingConvention.Cdecl)] + internal static extern IntPtr GetStringForHmdError(EVRInitError error); + [DllImportAttribute("openvr_api", EntryPoint = "VR_GetGenericInterface", CallingConvention = CallingConvention.Cdecl)] + internal static extern IntPtr GetGenericInterface([In, MarshalAs(UnmanagedType.LPStr)] string pchInterfaceVersion, ref EVRInitError peError); + [DllImportAttribute("openvr_api", EntryPoint = "VR_IsInterfaceVersionValid", CallingConvention = CallingConvention.Cdecl)] + internal static extern bool IsInterfaceVersionValid([In, MarshalAs(UnmanagedType.LPStr)] string pchInterfaceVersion); + [DllImportAttribute("openvr_api", EntryPoint = "VR_GetInitToken", CallingConvention = CallingConvention.Cdecl)] + internal static extern uint GetInitToken(); +} + + +public enum EVREye +{ + Eye_Left = 0, + Eye_Right = 1, +} +public enum ETextureType +{ + DirectX = 0, + OpenGL = 1, + Vulkan = 2, + IOSurface = 3, + DirectX12 = 4, +} +public enum EColorSpace +{ + Auto = 0, + Gamma = 1, + Linear = 2, +} +public enum ETrackingResult +{ + Uninitialized = 1, + Calibrating_InProgress = 100, + Calibrating_OutOfRange = 101, + Running_OK = 200, + Running_OutOfRange = 201, +} +public enum ETrackedDeviceClass +{ + Invalid = 0, + HMD = 1, + Controller = 2, + GenericTracker = 3, + TrackingReference = 4, + DisplayRedirect = 5, +} +public enum ETrackedControllerRole +{ + Invalid = 0, + LeftHand = 1, + RightHand = 2, +} +public enum ETrackingUniverseOrigin +{ + TrackingUniverseSeated = 0, + TrackingUniverseStanding = 1, + TrackingUniverseRawAndUncalibrated = 2, +} +public enum ETrackedDeviceProperty +{ + Prop_Invalid = 0, + Prop_TrackingSystemName_String = 1000, + Prop_ModelNumber_String = 1001, + Prop_SerialNumber_String = 1002, + Prop_RenderModelName_String = 1003, + Prop_WillDriftInYaw_Bool = 1004, + Prop_ManufacturerName_String = 1005, + Prop_TrackingFirmwareVersion_String = 1006, + Prop_HardwareRevision_String = 1007, + Prop_AllWirelessDongleDescriptions_String = 1008, + Prop_ConnectedWirelessDongle_String = 1009, + Prop_DeviceIsWireless_Bool = 1010, + Prop_DeviceIsCharging_Bool = 1011, + Prop_DeviceBatteryPercentage_Float = 1012, + Prop_StatusDisplayTransform_Matrix34 = 1013, + Prop_Firmware_UpdateAvailable_Bool = 1014, + Prop_Firmware_ManualUpdate_Bool = 1015, + Prop_Firmware_ManualUpdateURL_String = 1016, + Prop_HardwareRevision_Uint64 = 1017, + Prop_FirmwareVersion_Uint64 = 1018, + Prop_FPGAVersion_Uint64 = 1019, + Prop_VRCVersion_Uint64 = 1020, + Prop_RadioVersion_Uint64 = 1021, + Prop_DongleVersion_Uint64 = 1022, + Prop_BlockServerShutdown_Bool = 1023, + Prop_CanUnifyCoordinateSystemWithHmd_Bool = 1024, + Prop_ContainsProximitySensor_Bool = 1025, + Prop_DeviceProvidesBatteryStatus_Bool = 1026, + Prop_DeviceCanPowerOff_Bool = 1027, + Prop_Firmware_ProgrammingTarget_String = 1028, + Prop_DeviceClass_Int32 = 1029, + Prop_HasCamera_Bool = 1030, + Prop_DriverVersion_String = 1031, + Prop_Firmware_ForceUpdateRequired_Bool = 1032, + Prop_ViveSystemButtonFixRequired_Bool = 1033, + Prop_ParentDriver_Uint64 = 1034, + Prop_ResourceRoot_String = 1035, + Prop_ReportsTimeSinceVSync_Bool = 2000, + Prop_SecondsFromVsyncToPhotons_Float = 2001, + Prop_DisplayFrequency_Float = 2002, + Prop_UserIpdMeters_Float = 2003, + Prop_CurrentUniverseId_Uint64 = 2004, + Prop_PreviousUniverseId_Uint64 = 2005, + Prop_DisplayFirmwareVersion_Uint64 = 2006, + Prop_IsOnDesktop_Bool = 2007, + Prop_DisplayMCType_Int32 = 2008, + Prop_DisplayMCOffset_Float = 2009, + Prop_DisplayMCScale_Float = 2010, + Prop_EdidVendorID_Int32 = 2011, + Prop_DisplayMCImageLeft_String = 2012, + Prop_DisplayMCImageRight_String = 2013, + Prop_DisplayGCBlackClamp_Float = 2014, + Prop_EdidProductID_Int32 = 2015, + Prop_CameraToHeadTransform_Matrix34 = 2016, + Prop_DisplayGCType_Int32 = 2017, + Prop_DisplayGCOffset_Float = 2018, + Prop_DisplayGCScale_Float = 2019, + Prop_DisplayGCPrescale_Float = 2020, + Prop_DisplayGCImage_String = 2021, + Prop_LensCenterLeftU_Float = 2022, + Prop_LensCenterLeftV_Float = 2023, + Prop_LensCenterRightU_Float = 2024, + Prop_LensCenterRightV_Float = 2025, + Prop_UserHeadToEyeDepthMeters_Float = 2026, + Prop_CameraFirmwareVersion_Uint64 = 2027, + Prop_CameraFirmwareDescription_String = 2028, + Prop_DisplayFPGAVersion_Uint64 = 2029, + Prop_DisplayBootloaderVersion_Uint64 = 2030, + Prop_DisplayHardwareVersion_Uint64 = 2031, + Prop_AudioFirmwareVersion_Uint64 = 2032, + Prop_CameraCompatibilityMode_Int32 = 2033, + Prop_ScreenshotHorizontalFieldOfViewDegrees_Float = 2034, + Prop_ScreenshotVerticalFieldOfViewDegrees_Float = 2035, + Prop_DisplaySuppressed_Bool = 2036, + Prop_DisplayAllowNightMode_Bool = 2037, + Prop_DisplayMCImageWidth_Int32 = 2038, + Prop_DisplayMCImageHeight_Int32 = 2039, + Prop_DisplayMCImageNumChannels_Int32 = 2040, + Prop_DisplayMCImageData_Binary = 2041, + Prop_SecondsFromPhotonsToVblank_Float = 2042, + Prop_DriverDirectModeSendsVsyncEvents_Bool = 2043, + Prop_DisplayDebugMode_Bool = 2044, + Prop_GraphicsAdapterLuid_Uint64 = 2045, + Prop_AttachedDeviceId_String = 3000, + Prop_SupportedButtons_Uint64 = 3001, + Prop_Axis0Type_Int32 = 3002, + Prop_Axis1Type_Int32 = 3003, + Prop_Axis2Type_Int32 = 3004, + Prop_Axis3Type_Int32 = 3005, + Prop_Axis4Type_Int32 = 3006, + Prop_ControllerRoleHint_Int32 = 3007, + Prop_FieldOfViewLeftDegrees_Float = 4000, + Prop_FieldOfViewRightDegrees_Float = 4001, + Prop_FieldOfViewTopDegrees_Float = 4002, + Prop_FieldOfViewBottomDegrees_Float = 4003, + Prop_TrackingRangeMinimumMeters_Float = 4004, + Prop_TrackingRangeMaximumMeters_Float = 4005, + Prop_ModeLabel_String = 4006, + Prop_IconPathName_String = 5000, + Prop_NamedIconPathDeviceOff_String = 5001, + Prop_NamedIconPathDeviceSearching_String = 5002, + Prop_NamedIconPathDeviceSearchingAlert_String = 5003, + Prop_NamedIconPathDeviceReady_String = 5004, + Prop_NamedIconPathDeviceReadyAlert_String = 5005, + Prop_NamedIconPathDeviceNotReady_String = 5006, + Prop_NamedIconPathDeviceStandby_String = 5007, + Prop_NamedIconPathDeviceAlertLow_String = 5008, + Prop_DisplayHiddenArea_Binary_Start = 5100, + Prop_DisplayHiddenArea_Binary_End = 5150, + Prop_UserConfigPath_String = 6000, + Prop_InstallPath_String = 6001, + Prop_HasDisplayComponent_Bool = 6002, + Prop_HasControllerComponent_Bool = 6003, + Prop_HasCameraComponent_Bool = 6004, + Prop_HasDriverDirectModeComponent_Bool = 6005, + Prop_HasVirtualDisplayComponent_Bool = 6006, + Prop_VendorSpecific_Reserved_Start = 10000, + Prop_VendorSpecific_Reserved_End = 10999, +} +public enum ETrackedPropertyError +{ + TrackedProp_Success = 0, + TrackedProp_WrongDataType = 1, + TrackedProp_WrongDeviceClass = 2, + TrackedProp_BufferTooSmall = 3, + TrackedProp_UnknownProperty = 4, + TrackedProp_InvalidDevice = 5, + TrackedProp_CouldNotContactServer = 6, + TrackedProp_ValueNotProvidedByDevice = 7, + TrackedProp_StringExceedsMaximumLength = 8, + TrackedProp_NotYetAvailable = 9, + TrackedProp_PermissionDenied = 10, + TrackedProp_InvalidOperation = 11, +} +public enum EVRSubmitFlags +{ + Submit_Default = 0, + Submit_LensDistortionAlreadyApplied = 1, + Submit_GlRenderBuffer = 2, + Submit_Reserved = 4, +} +public enum EVRState +{ + Undefined = -1, + Off = 0, + Searching = 1, + Searching_Alert = 2, + Ready = 3, + Ready_Alert = 4, + NotReady = 5, + Standby = 6, + Ready_Alert_Low = 7, +} +public enum EVREventType +{ + VREvent_None = 0, + VREvent_TrackedDeviceActivated = 100, + VREvent_TrackedDeviceDeactivated = 101, + VREvent_TrackedDeviceUpdated = 102, + VREvent_TrackedDeviceUserInteractionStarted = 103, + VREvent_TrackedDeviceUserInteractionEnded = 104, + VREvent_IpdChanged = 105, + VREvent_EnterStandbyMode = 106, + VREvent_LeaveStandbyMode = 107, + VREvent_TrackedDeviceRoleChanged = 108, + VREvent_WatchdogWakeUpRequested = 109, + VREvent_LensDistortionChanged = 110, + VREvent_PropertyChanged = 111, + VREvent_ButtonPress = 200, + VREvent_ButtonUnpress = 201, + VREvent_ButtonTouch = 202, + VREvent_ButtonUntouch = 203, + VREvent_MouseMove = 300, + VREvent_MouseButtonDown = 301, + VREvent_MouseButtonUp = 302, + VREvent_FocusEnter = 303, + VREvent_FocusLeave = 304, + VREvent_Scroll = 305, + VREvent_TouchPadMove = 306, + VREvent_OverlayFocusChanged = 307, + VREvent_InputFocusCaptured = 400, + VREvent_InputFocusReleased = 401, + VREvent_SceneFocusLost = 402, + VREvent_SceneFocusGained = 403, + VREvent_SceneApplicationChanged = 404, + VREvent_SceneFocusChanged = 405, + VREvent_InputFocusChanged = 406, + VREvent_SceneApplicationSecondaryRenderingStarted = 407, + VREvent_HideRenderModels = 410, + VREvent_ShowRenderModels = 411, + VREvent_OverlayShown = 500, + VREvent_OverlayHidden = 501, + VREvent_DashboardActivated = 502, + VREvent_DashboardDeactivated = 503, + VREvent_DashboardThumbSelected = 504, + VREvent_DashboardRequested = 505, + VREvent_ResetDashboard = 506, + VREvent_RenderToast = 507, + VREvent_ImageLoaded = 508, + VREvent_ShowKeyboard = 509, + VREvent_HideKeyboard = 510, + VREvent_OverlayGamepadFocusGained = 511, + VREvent_OverlayGamepadFocusLost = 512, + VREvent_OverlaySharedTextureChanged = 513, + VREvent_DashboardGuideButtonDown = 514, + VREvent_DashboardGuideButtonUp = 515, + VREvent_ScreenshotTriggered = 516, + VREvent_ImageFailed = 517, + VREvent_DashboardOverlayCreated = 518, + VREvent_RequestScreenshot = 520, + VREvent_ScreenshotTaken = 521, + VREvent_ScreenshotFailed = 522, + VREvent_SubmitScreenshotToDashboard = 523, + VREvent_ScreenshotProgressToDashboard = 524, + VREvent_PrimaryDashboardDeviceChanged = 525, + VREvent_Notification_Shown = 600, + VREvent_Notification_Hidden = 601, + VREvent_Notification_BeginInteraction = 602, + VREvent_Notification_Destroyed = 603, + VREvent_Quit = 700, + VREvent_ProcessQuit = 701, + VREvent_QuitAborted_UserPrompt = 702, + VREvent_QuitAcknowledged = 703, + VREvent_DriverRequestedQuit = 704, + VREvent_ChaperoneDataHasChanged = 800, + VREvent_ChaperoneUniverseHasChanged = 801, + VREvent_ChaperoneTempDataHasChanged = 802, + VREvent_ChaperoneSettingsHaveChanged = 803, + VREvent_SeatedZeroPoseReset = 804, + VREvent_AudioSettingsHaveChanged = 820, + VREvent_BackgroundSettingHasChanged = 850, + VREvent_CameraSettingsHaveChanged = 851, + VREvent_ReprojectionSettingHasChanged = 852, + VREvent_ModelSkinSettingsHaveChanged = 853, + VREvent_EnvironmentSettingsHaveChanged = 854, + VREvent_PowerSettingsHaveChanged = 855, + VREvent_EnableHomeAppSettingsHaveChanged = 856, + VREvent_StatusUpdate = 900, + VREvent_MCImageUpdated = 1000, + VREvent_FirmwareUpdateStarted = 1100, + VREvent_FirmwareUpdateFinished = 1101, + VREvent_KeyboardClosed = 1200, + VREvent_KeyboardCharInput = 1201, + VREvent_KeyboardDone = 1202, + VREvent_ApplicationTransitionStarted = 1300, + VREvent_ApplicationTransitionAborted = 1301, + VREvent_ApplicationTransitionNewAppStarted = 1302, + VREvent_ApplicationListUpdated = 1303, + VREvent_ApplicationMimeTypeLoad = 1304, + VREvent_ApplicationTransitionNewAppLaunchComplete = 1305, + VREvent_ProcessConnected = 1306, + VREvent_ProcessDisconnected = 1307, + VREvent_Compositor_MirrorWindowShown = 1400, + VREvent_Compositor_MirrorWindowHidden = 1401, + VREvent_Compositor_ChaperoneBoundsShown = 1410, + VREvent_Compositor_ChaperoneBoundsHidden = 1411, + VREvent_TrackedCamera_StartVideoStream = 1500, + VREvent_TrackedCamera_StopVideoStream = 1501, + VREvent_TrackedCamera_PauseVideoStream = 1502, + VREvent_TrackedCamera_ResumeVideoStream = 1503, + VREvent_TrackedCamera_EditingSurface = 1550, + VREvent_PerformanceTest_EnableCapture = 1600, + VREvent_PerformanceTest_DisableCapture = 1601, + VREvent_PerformanceTest_FidelityLevel = 1602, + VREvent_MessageOverlay_Closed = 1650, + VREvent_VendorSpecific_Reserved_Start = 10000, + VREvent_VendorSpecific_Reserved_End = 19999, +} +public enum EDeviceActivityLevel +{ + k_EDeviceActivityLevel_Unknown = -1, + k_EDeviceActivityLevel_Idle = 0, + k_EDeviceActivityLevel_UserInteraction = 1, + k_EDeviceActivityLevel_UserInteraction_Timeout = 2, + k_EDeviceActivityLevel_Standby = 3, +} +public enum EVRButtonId +{ + k_EButton_System = 0, + k_EButton_ApplicationMenu = 1, + k_EButton_Grip = 2, + k_EButton_DPad_Left = 3, + k_EButton_DPad_Up = 4, + k_EButton_DPad_Right = 5, + k_EButton_DPad_Down = 6, + k_EButton_A = 7, + k_EButton_ProximitySensor = 31, + k_EButton_Axis0 = 32, + k_EButton_Axis1 = 33, + k_EButton_Axis2 = 34, + k_EButton_Axis3 = 35, + k_EButton_Axis4 = 36, + k_EButton_SteamVR_Touchpad = 32, + k_EButton_SteamVR_Trigger = 33, + k_EButton_Dashboard_Back = 2, + k_EButton_Max = 64, +} +public enum EVRMouseButton +{ + Left = 1, + Right = 2, + Middle = 4, +} +public enum EHiddenAreaMeshType +{ + k_eHiddenAreaMesh_Standard = 0, + k_eHiddenAreaMesh_Inverse = 1, + k_eHiddenAreaMesh_LineLoop = 2, + k_eHiddenAreaMesh_Max = 3, +} +public enum EVRControllerAxisType +{ + k_eControllerAxis_None = 0, + k_eControllerAxis_TrackPad = 1, + k_eControllerAxis_Joystick = 2, + k_eControllerAxis_Trigger = 3, +} +public enum EVRControllerEventOutputType +{ + ControllerEventOutput_OSEvents = 0, + ControllerEventOutput_VREvents = 1, +} +public enum ECollisionBoundsStyle +{ + COLLISION_BOUNDS_STYLE_BEGINNER = 0, + COLLISION_BOUNDS_STYLE_INTERMEDIATE = 1, + COLLISION_BOUNDS_STYLE_SQUARES = 2, + COLLISION_BOUNDS_STYLE_ADVANCED = 3, + COLLISION_BOUNDS_STYLE_NONE = 4, + COLLISION_BOUNDS_STYLE_COUNT = 5, +} +public enum EVROverlayError +{ + None = 0, + UnknownOverlay = 10, + InvalidHandle = 11, + PermissionDenied = 12, + OverlayLimitExceeded = 13, + WrongVisibilityType = 14, + KeyTooLong = 15, + NameTooLong = 16, + KeyInUse = 17, + WrongTransformType = 18, + InvalidTrackedDevice = 19, + InvalidParameter = 20, + ThumbnailCantBeDestroyed = 21, + ArrayTooSmall = 22, + RequestFailed = 23, + InvalidTexture = 24, + UnableToLoadFile = 25, + KeyboardAlreadyInUse = 26, + NoNeighbor = 27, + TooManyMaskPrimitives = 29, + BadMaskPrimitive = 30, +} +public enum EVRApplicationType +{ + VRApplication_Other = 0, + VRApplication_Scene = 1, + VRApplication_Overlay = 2, + VRApplication_Background = 3, + VRApplication_Utility = 4, + VRApplication_VRMonitor = 5, + VRApplication_SteamWatchdog = 6, + VRApplication_Bootstrapper = 7, + VRApplication_Max = 8, +} +public enum EVRFirmwareError +{ + None = 0, + Success = 1, + Fail = 2, +} +public enum EVRNotificationError +{ + OK = 0, + InvalidNotificationId = 100, + NotificationQueueFull = 101, + InvalidOverlayHandle = 102, + SystemWithUserValueAlreadyExists = 103, +} +public enum EVRInitError +{ + None = 0, + Unknown = 1, + Init_InstallationNotFound = 100, + Init_InstallationCorrupt = 101, + Init_VRClientDLLNotFound = 102, + Init_FileNotFound = 103, + Init_FactoryNotFound = 104, + Init_InterfaceNotFound = 105, + Init_InvalidInterface = 106, + Init_UserConfigDirectoryInvalid = 107, + Init_HmdNotFound = 108, + Init_NotInitialized = 109, + Init_PathRegistryNotFound = 110, + Init_NoConfigPath = 111, + Init_NoLogPath = 112, + Init_PathRegistryNotWritable = 113, + Init_AppInfoInitFailed = 114, + Init_Retry = 115, + Init_InitCanceledByUser = 116, + Init_AnotherAppLaunching = 117, + Init_SettingsInitFailed = 118, + Init_ShuttingDown = 119, + Init_TooManyObjects = 120, + Init_NoServerForBackgroundApp = 121, + Init_NotSupportedWithCompositor = 122, + Init_NotAvailableToUtilityApps = 123, + Init_Internal = 124, + Init_HmdDriverIdIsNone = 125, + Init_HmdNotFoundPresenceFailed = 126, + Init_VRMonitorNotFound = 127, + Init_VRMonitorStartupFailed = 128, + Init_LowPowerWatchdogNotSupported = 129, + Init_InvalidApplicationType = 130, + Init_NotAvailableToWatchdogApps = 131, + Init_WatchdogDisabledInSettings = 132, + Init_VRDashboardNotFound = 133, + Init_VRDashboardStartupFailed = 134, + Init_VRHomeNotFound = 135, + Init_VRHomeStartupFailed = 136, + Driver_Failed = 200, + Driver_Unknown = 201, + Driver_HmdUnknown = 202, + Driver_NotLoaded = 203, + Driver_RuntimeOutOfDate = 204, + Driver_HmdInUse = 205, + Driver_NotCalibrated = 206, + Driver_CalibrationInvalid = 207, + Driver_HmdDisplayNotFound = 208, + Driver_TrackedDeviceInterfaceUnknown = 209, + Driver_HmdDriverIdOutOfBounds = 211, + Driver_HmdDisplayMirrored = 212, + IPC_ServerInitFailed = 300, + IPC_ConnectFailed = 301, + IPC_SharedStateInitFailed = 302, + IPC_CompositorInitFailed = 303, + IPC_MutexInitFailed = 304, + IPC_Failed = 305, + IPC_CompositorConnectFailed = 306, + IPC_CompositorInvalidConnectResponse = 307, + IPC_ConnectFailedAfterMultipleAttempts = 308, + Compositor_Failed = 400, + Compositor_D3D11HardwareRequired = 401, + Compositor_FirmwareRequiresUpdate = 402, + Compositor_OverlayInitFailed = 403, + Compositor_ScreenshotsInitFailed = 404, + Compositor_UnableToCreateDevice = 405, + VendorSpecific_UnableToConnectToOculusRuntime = 1000, + VendorSpecific_HmdFound_CantOpenDevice = 1101, + VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102, + VendorSpecific_HmdFound_NoStoredConfig = 1103, + VendorSpecific_HmdFound_ConfigTooBig = 1104, + VendorSpecific_HmdFound_ConfigTooSmall = 1105, + VendorSpecific_HmdFound_UnableToInitZLib = 1106, + VendorSpecific_HmdFound_CantReadFirmwareVersion = 1107, + VendorSpecific_HmdFound_UnableToSendUserDataStart = 1108, + VendorSpecific_HmdFound_UnableToGetUserDataStart = 1109, + VendorSpecific_HmdFound_UnableToGetUserDataNext = 1110, + VendorSpecific_HmdFound_UserDataAddressRange = 1111, + VendorSpecific_HmdFound_UserDataError = 1112, + VendorSpecific_HmdFound_ConfigFailedSanityCheck = 1113, + Steam_SteamInstallationNotFound = 2000, +} +public enum EVRScreenshotType +{ + None = 0, + Mono = 1, + Stereo = 2, + Cubemap = 3, + MonoPanorama = 4, + StereoPanorama = 5, +} +public enum EVRScreenshotPropertyFilenames +{ + Preview = 0, + VR = 1, +} +public enum EVRTrackedCameraError +{ + None = 0, + OperationFailed = 100, + InvalidHandle = 101, + InvalidFrameHeaderVersion = 102, + OutOfHandles = 103, + IPCFailure = 104, + NotSupportedForThisDevice = 105, + SharedMemoryFailure = 106, + FrameBufferingFailure = 107, + StreamSetupFailure = 108, + InvalidGLTextureId = 109, + InvalidSharedTextureHandle = 110, + FailedToGetGLTextureId = 111, + SharedTextureFailure = 112, + NoFrameAvailable = 113, + InvalidArgument = 114, + InvalidFrameBufferSize = 115, +} +public enum EVRTrackedCameraFrameType +{ + Distorted = 0, + Undistorted = 1, + MaximumUndistorted = 2, + MAX_CAMERA_FRAME_TYPES = 3, +} +public enum EVRApplicationError +{ + None = 0, + AppKeyAlreadyExists = 100, + NoManifest = 101, + NoApplication = 102, + InvalidIndex = 103, + UnknownApplication = 104, + IPCFailed = 105, + ApplicationAlreadyRunning = 106, + InvalidManifest = 107, + InvalidApplication = 108, + LaunchFailed = 109, + ApplicationAlreadyStarting = 110, + LaunchInProgress = 111, + OldApplicationQuitting = 112, + TransitionAborted = 113, + IsTemplate = 114, + BufferTooSmall = 200, + PropertyNotSet = 201, + UnknownProperty = 202, + InvalidParameter = 203, +} +public enum EVRApplicationProperty +{ + Name_String = 0, + LaunchType_String = 11, + WorkingDirectory_String = 12, + BinaryPath_String = 13, + Arguments_String = 14, + URL_String = 15, + Description_String = 50, + NewsURL_String = 51, + ImagePath_String = 52, + Source_String = 53, + IsDashboardOverlay_Bool = 60, + IsTemplate_Bool = 61, + IsInstanced_Bool = 62, + IsInternal_Bool = 63, + LastLaunchTime_Uint64 = 70, +} +public enum EVRApplicationTransitionState +{ + VRApplicationTransition_None = 0, + VRApplicationTransition_OldAppQuitSent = 10, + VRApplicationTransition_WaitingForExternalLaunch = 11, + VRApplicationTransition_NewAppLaunched = 20, +} +public enum ChaperoneCalibrationState +{ + OK = 1, + Warning = 100, + Warning_BaseStationMayHaveMoved = 101, + Warning_BaseStationRemoved = 102, + Warning_SeatedBoundsInvalid = 103, + Error = 200, + Error_BaseStationUninitialized = 201, + Error_BaseStationConflict = 202, + Error_PlayAreaInvalid = 203, + Error_CollisionBoundsInvalid = 204, +} +public enum EChaperoneConfigFile +{ + Live = 1, + Temp = 2, +} +public enum EChaperoneImportFlags +{ + EChaperoneImport_BoundsOnly = 1, +} +public enum EVRCompositorError +{ + None = 0, + RequestFailed = 1, + IncompatibleVersion = 100, + DoNotHaveFocus = 101, + InvalidTexture = 102, + IsNotSceneApplication = 103, + TextureIsOnWrongDevice = 104, + TextureUsesUnsupportedFormat = 105, + SharedTexturesNotSupported = 106, + IndexOutOfRange = 107, + AlreadySubmitted = 108, +} +public enum VROverlayInputMethod +{ + None = 0, + Mouse = 1, +} +public enum VROverlayTransformType +{ + VROverlayTransform_Absolute = 0, + VROverlayTransform_TrackedDeviceRelative = 1, + VROverlayTransform_SystemOverlay = 2, + VROverlayTransform_TrackedComponent = 3, +} +public enum VROverlayFlags +{ + None = 0, + Curved = 1, + RGSS4X = 2, + NoDashboardTab = 3, + AcceptsGamepadEvents = 4, + ShowGamepadFocus = 5, + SendVRScrollEvents = 6, + SendVRTouchpadEvents = 7, + ShowTouchPadScrollWheel = 8, + TransferOwnershipToInternalProcess = 9, + SideBySide_Parallel = 10, + SideBySide_Crossed = 11, + Panorama = 12, + StereoPanorama = 13, + SortWithNonSceneOverlays = 14, + VisibleInDashboard = 15, +} +public enum VRMessageOverlayResponse +{ + ButtonPress_0 = 0, + ButtonPress_1 = 1, + ButtonPress_2 = 2, + ButtonPress_3 = 3, + CouldntFindSystemOverlay = 4, + CouldntFindOrCreateClientOverlay = 5, + ApplicationQuit = 6, +} +public enum EGamepadTextInputMode +{ + k_EGamepadTextInputModeNormal = 0, + k_EGamepadTextInputModePassword = 1, + k_EGamepadTextInputModeSubmit = 2, +} +public enum EGamepadTextInputLineMode +{ + k_EGamepadTextInputLineModeSingleLine = 0, + k_EGamepadTextInputLineModeMultipleLines = 1, +} +public enum EOverlayDirection +{ + Up = 0, + Down = 1, + Left = 2, + Right = 3, + Count = 4, +} +public enum EVROverlayIntersectionMaskPrimitiveType +{ + OverlayIntersectionPrimitiveType_Rectangle = 0, + OverlayIntersectionPrimitiveType_Circle = 1, +} +public enum EVRRenderModelError +{ + None = 0, + Loading = 100, + NotSupported = 200, + InvalidArg = 300, + InvalidModel = 301, + NoShapes = 302, + MultipleShapes = 303, + TooManyVertices = 304, + MultipleTextures = 305, + BufferTooSmall = 306, + NotEnoughNormals = 307, + NotEnoughTexCoords = 308, + InvalidTexture = 400, +} +public enum EVRComponentProperty +{ + IsStatic = 1, + IsVisible = 2, + IsTouched = 4, + IsPressed = 8, + IsScrolled = 16, +} +public enum EVRNotificationType +{ + Transient = 0, + Persistent = 1, + Transient_SystemWithUserValue = 2, +} +public enum EVRNotificationStyle +{ + None = 0, + Application = 100, + Contact_Disabled = 200, + Contact_Enabled = 201, + Contact_Active = 202, +} +public enum EVRSettingsError +{ + None = 0, + IPCFailed = 1, + WriteFailed = 2, + ReadFailed = 3, + JsonParseFailed = 4, + UnsetSettingHasNoDefault = 5, +} +public enum EVRScreenshotError +{ + None = 0, + RequestFailed = 1, + IncompatibleVersion = 100, + NotFound = 101, + BufferTooSmall = 102, + ScreenshotAlreadyInProgress = 108, +} + +[StructLayout(LayoutKind.Explicit)] public struct VREvent_Data_t +{ + [FieldOffset(0)] public VREvent_Reserved_t reserved; + [FieldOffset(0)] public VREvent_Controller_t controller; + [FieldOffset(0)] public VREvent_Mouse_t mouse; + [FieldOffset(0)] public VREvent_Scroll_t scroll; + [FieldOffset(0)] public VREvent_Process_t process; + [FieldOffset(0)] public VREvent_Notification_t notification; + [FieldOffset(0)] public VREvent_Overlay_t overlay; + [FieldOffset(0)] public VREvent_Status_t status; + [FieldOffset(0)] public VREvent_Ipd_t ipd; + [FieldOffset(0)] public VREvent_Chaperone_t chaperone; + [FieldOffset(0)] public VREvent_PerformanceTest_t performanceTest; + [FieldOffset(0)] public VREvent_TouchPadMove_t touchPadMove; + [FieldOffset(0)] public VREvent_SeatedZeroPoseReset_t seatedZeroPoseReset; + [FieldOffset(0)] public VREvent_Screenshot_t screenshot; + [FieldOffset(0)] public VREvent_ScreenshotProgress_t screenshotProgress; + [FieldOffset(0)] public VREvent_ApplicationLaunch_t applicationLaunch; + [FieldOffset(0)] public VREvent_EditingCameraSurface_t cameraSurface; + [FieldOffset(0)] public VREvent_MessageOverlay_t messageOverlay; + [FieldOffset(0)] public VREvent_Keyboard_t keyboard; // This has to be at the end due to a mono bug +} + + +[StructLayout(LayoutKind.Explicit)] public struct VROverlayIntersectionMaskPrimitive_Data_t +{ + [FieldOffset(0)] public IntersectionMaskRectangle_t m_Rectangle; + [FieldOffset(0)] public IntersectionMaskCircle_t m_Circle; +} + +[StructLayout(LayoutKind.Sequential)] public struct HmdMatrix34_t +{ + public float m0; //float[3][4] + public float m1; + public float m2; + public float m3; + public float m4; + public float m5; + public float m6; + public float m7; + public float m8; + public float m9; + public float m10; + public float m11; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdMatrix44_t +{ + public float m0; //float[4][4] + public float m1; + public float m2; + public float m3; + public float m4; + public float m5; + public float m6; + public float m7; + public float m8; + public float m9; + public float m10; + public float m11; + public float m12; + public float m13; + public float m14; + public float m15; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdVector3_t +{ + public float v0; //float[3] + public float v1; + public float v2; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdVector4_t +{ + public float v0; //float[4] + public float v1; + public float v2; + public float v3; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdVector3d_t +{ + public double v0; //double[3] + public double v1; + public double v2; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdVector2_t +{ + public float v0; //float[2] + public float v1; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdQuaternion_t +{ + public double w; + public double x; + public double y; + public double z; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdColor_t +{ + public float r; + public float g; + public float b; + public float a; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdQuad_t +{ + public HmdVector3_t vCorners0; //HmdVector3_t[4] + public HmdVector3_t vCorners1; + public HmdVector3_t vCorners2; + public HmdVector3_t vCorners3; +} +[StructLayout(LayoutKind.Sequential)] public struct HmdRect2_t +{ + public HmdVector2_t vTopLeft; + public HmdVector2_t vBottomRight; +} +[StructLayout(LayoutKind.Sequential)] public struct DistortionCoordinates_t +{ + public float rfRed0; //float[2] + public float rfRed1; + public float rfGreen0; //float[2] + public float rfGreen1; + public float rfBlue0; //float[2] + public float rfBlue1; +} +[StructLayout(LayoutKind.Sequential)] public struct Texture_t +{ + public IntPtr handle; // void * + public ETextureType eType; + public EColorSpace eColorSpace; +} +[StructLayout(LayoutKind.Sequential)] public struct TrackedDevicePose_t +{ + public HmdMatrix34_t mDeviceToAbsoluteTracking; + public HmdVector3_t vVelocity; + public HmdVector3_t vAngularVelocity; + public ETrackingResult eTrackingResult; + [MarshalAs(UnmanagedType.I1)] + public bool bPoseIsValid; + [MarshalAs(UnmanagedType.I1)] + public bool bDeviceIsConnected; +} +[StructLayout(LayoutKind.Sequential)] public struct VRTextureBounds_t +{ + public float uMin; + public float vMin; + public float uMax; + public float vMax; +} +[StructLayout(LayoutKind.Sequential)] public struct VRVulkanTextureData_t +{ + public ulong m_nImage; + public IntPtr m_pDevice; // struct VkDevice_T * + public IntPtr m_pPhysicalDevice; // struct VkPhysicalDevice_T * + public IntPtr m_pInstance; // struct VkInstance_T * + public IntPtr m_pQueue; // struct VkQueue_T * + public uint m_nQueueFamilyIndex; + public uint m_nWidth; + public uint m_nHeight; + public uint m_nFormat; + public uint m_nSampleCount; +} +[StructLayout(LayoutKind.Sequential)] public struct D3D12TextureData_t +{ + public IntPtr m_pResource; // struct ID3D12Resource * + public IntPtr m_pCommandQueue; // struct ID3D12CommandQueue * + public uint m_nNodeMask; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Controller_t +{ + public uint button; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Mouse_t +{ + public float x; + public float y; + public uint button; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Scroll_t +{ + public float xdelta; + public float ydelta; + public uint repeatCount; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_TouchPadMove_t +{ + [MarshalAs(UnmanagedType.I1)] + public bool bFingerDown; + public float flSecondsFingerDown; + public float fValueXFirst; + public float fValueYFirst; + public float fValueXRaw; + public float fValueYRaw; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Notification_t +{ + public ulong ulUserValue; + public uint notificationId; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Process_t +{ + public uint pid; + public uint oldPid; + [MarshalAs(UnmanagedType.I1)] + public bool bForced; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Overlay_t +{ + public ulong overlayHandle; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Status_t +{ + public uint statusState; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Keyboard_t +{ + public byte cNewInput0,cNewInput1,cNewInput2,cNewInput3,cNewInput4,cNewInput5,cNewInput6,cNewInput7; + public ulong uUserValue; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Ipd_t +{ + public float ipdMeters; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Chaperone_t +{ + public ulong m_nPreviousUniverse; + public ulong m_nCurrentUniverse; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Reserved_t +{ + public ulong reserved0; + public ulong reserved1; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_PerformanceTest_t +{ + public uint m_nFidelityLevel; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_SeatedZeroPoseReset_t +{ + [MarshalAs(UnmanagedType.I1)] + public bool bResetBySystemMenu; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Screenshot_t +{ + public uint handle; + public uint type; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_ScreenshotProgress_t +{ + public float progress; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_ApplicationLaunch_t +{ + public uint pid; + public uint unArgsHandle; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_EditingCameraSurface_t +{ + public ulong overlayHandle; + public uint nVisualMode; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_MessageOverlay_t +{ + public uint unVRMessageOverlayResponse; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_Property_t +{ + public ulong container; + public ETrackedDeviceProperty prop; +} +[StructLayout(LayoutKind.Sequential)] public struct VREvent_t +{ + public uint eventType; + public uint trackedDeviceIndex; + public float eventAgeSeconds; + public VREvent_Data_t data; +} +// This structure is for backwards binary compatibility on Linux and OSX only +[StructLayout(LayoutKind.Sequential, Pack = 4)] public struct VREvent_t_Packed +{ + public uint eventType; + public uint trackedDeviceIndex; + public float eventAgeSeconds; + public VREvent_Data_t data; + public VREvent_t_Packed(VREvent_t unpacked) + { + this.eventType = unpacked.eventType; + this.trackedDeviceIndex = unpacked.trackedDeviceIndex; + this.eventAgeSeconds = unpacked.eventAgeSeconds; + this.data = unpacked.data; + } + public void Unpack(ref VREvent_t unpacked) + { + unpacked.eventType = this.eventType; + unpacked.trackedDeviceIndex = this.trackedDeviceIndex; + unpacked.eventAgeSeconds = this.eventAgeSeconds; + unpacked.data = this.data; + } +} +[StructLayout(LayoutKind.Sequential)] public struct HiddenAreaMesh_t +{ + public IntPtr pVertexData; // const struct vr::HmdVector2_t * + public uint unTriangleCount; +} +[StructLayout(LayoutKind.Sequential)] public struct VRControllerAxis_t +{ + public float x; + public float y; +} +[StructLayout(LayoutKind.Sequential)] public struct VRControllerState_t +{ + public uint unPacketNum; + public ulong ulButtonPressed; + public ulong ulButtonTouched; + public VRControllerAxis_t rAxis0; //VRControllerAxis_t[5] + public VRControllerAxis_t rAxis1; + public VRControllerAxis_t rAxis2; + public VRControllerAxis_t rAxis3; + public VRControllerAxis_t rAxis4; +} +// This structure is for backwards binary compatibility on Linux and OSX only +[StructLayout(LayoutKind.Sequential, Pack = 4)] public struct VRControllerState_t_Packed +{ + public uint unPacketNum; + public ulong ulButtonPressed; + public ulong ulButtonTouched; + public VRControllerAxis_t rAxis0; //VRControllerAxis_t[5] + public VRControllerAxis_t rAxis1; + public VRControllerAxis_t rAxis2; + public VRControllerAxis_t rAxis3; + public VRControllerAxis_t rAxis4; + public VRControllerState_t_Packed(VRControllerState_t unpacked) + { + this.unPacketNum = unpacked.unPacketNum; + this.ulButtonPressed = unpacked.ulButtonPressed; + this.ulButtonTouched = unpacked.ulButtonTouched; + this.rAxis0 = unpacked.rAxis0; + this.rAxis1 = unpacked.rAxis1; + this.rAxis2 = unpacked.rAxis2; + this.rAxis3 = unpacked.rAxis3; + this.rAxis4 = unpacked.rAxis4; + } + public void Unpack(ref VRControllerState_t unpacked) + { + unpacked.unPacketNum = this.unPacketNum; + unpacked.ulButtonPressed = this.ulButtonPressed; + unpacked.ulButtonTouched = this.ulButtonTouched; + unpacked.rAxis0 = this.rAxis0; + unpacked.rAxis1 = this.rAxis1; + unpacked.rAxis2 = this.rAxis2; + unpacked.rAxis3 = this.rAxis3; + unpacked.rAxis4 = this.rAxis4; + } +} +[StructLayout(LayoutKind.Sequential)] public struct Compositor_OverlaySettings +{ + public uint size; + [MarshalAs(UnmanagedType.I1)] + public bool curved; + [MarshalAs(UnmanagedType.I1)] + public bool antialias; + public float scale; + public float distance; + public float alpha; + public float uOffset; + public float vOffset; + public float uScale; + public float vScale; + public float gridDivs; + public float gridWidth; + public float gridScale; + public HmdMatrix44_t transform; +} +[StructLayout(LayoutKind.Sequential)] public struct CameraVideoStreamFrameHeader_t +{ + public EVRTrackedCameraFrameType eFrameType; + public uint nWidth; + public uint nHeight; + public uint nBytesPerPixel; + public uint nFrameSequence; + public TrackedDevicePose_t standingTrackedDevicePose; +} +[StructLayout(LayoutKind.Sequential)] public struct AppOverrideKeys_t +{ + public IntPtr pchKey; // const char * + public IntPtr pchValue; // const char * +} +[StructLayout(LayoutKind.Sequential)] public struct Compositor_FrameTiming +{ + public uint m_nSize; + public uint m_nFrameIndex; + public uint m_nNumFramePresents; + public uint m_nNumMisPresented; + public uint m_nNumDroppedFrames; + public uint m_nReprojectionFlags; + public double m_flSystemTimeInSeconds; + public float m_flPreSubmitGpuMs; + public float m_flPostSubmitGpuMs; + public float m_flTotalRenderGpuMs; + public float m_flCompositorRenderGpuMs; + public float m_flCompositorRenderCpuMs; + public float m_flCompositorIdleCpuMs; + public float m_flClientFrameIntervalMs; + public float m_flPresentCallCpuMs; + public float m_flWaitForPresentCpuMs; + public float m_flSubmitFrameMs; + public float m_flWaitGetPosesCalledMs; + public float m_flNewPosesReadyMs; + public float m_flNewFrameReadyMs; + public float m_flCompositorUpdateStartMs; + public float m_flCompositorUpdateEndMs; + public float m_flCompositorRenderStartMs; + public TrackedDevicePose_t m_HmdPose; +} +[StructLayout(LayoutKind.Sequential)] public struct Compositor_CumulativeStats +{ + public uint m_nPid; + public uint m_nNumFramePresents; + public uint m_nNumDroppedFrames; + public uint m_nNumReprojectedFrames; + public uint m_nNumFramePresentsOnStartup; + public uint m_nNumDroppedFramesOnStartup; + public uint m_nNumReprojectedFramesOnStartup; + public uint m_nNumLoading; + public uint m_nNumFramePresentsLoading; + public uint m_nNumDroppedFramesLoading; + public uint m_nNumReprojectedFramesLoading; + public uint m_nNumTimedOut; + public uint m_nNumFramePresentsTimedOut; + public uint m_nNumDroppedFramesTimedOut; + public uint m_nNumReprojectedFramesTimedOut; +} +[StructLayout(LayoutKind.Sequential)] public struct VROverlayIntersectionParams_t +{ + public HmdVector3_t vSource; + public HmdVector3_t vDirection; + public ETrackingUniverseOrigin eOrigin; +} +[StructLayout(LayoutKind.Sequential)] public struct VROverlayIntersectionResults_t +{ + public HmdVector3_t vPoint; + public HmdVector3_t vNormal; + public HmdVector2_t vUVs; + public float fDistance; +} +[StructLayout(LayoutKind.Sequential)] public struct IntersectionMaskRectangle_t +{ + public float m_flTopLeftX; + public float m_flTopLeftY; + public float m_flWidth; + public float m_flHeight; +} +[StructLayout(LayoutKind.Sequential)] public struct IntersectionMaskCircle_t +{ + public float m_flCenterX; + public float m_flCenterY; + public float m_flRadius; +} +[StructLayout(LayoutKind.Sequential)] public struct VROverlayIntersectionMaskPrimitive_t +{ + public EVROverlayIntersectionMaskPrimitiveType m_nPrimitiveType; + public VROverlayIntersectionMaskPrimitive_Data_t m_Primitive; +} +[StructLayout(LayoutKind.Sequential)] public struct RenderModel_ComponentState_t +{ + public HmdMatrix34_t mTrackingToComponentRenderModel; + public HmdMatrix34_t mTrackingToComponentLocal; + public uint uProperties; +} +[StructLayout(LayoutKind.Sequential)] public struct RenderModel_Vertex_t +{ + public HmdVector3_t vPosition; + public HmdVector3_t vNormal; + public float rfTextureCoord0; //float[2] + public float rfTextureCoord1; +} +[StructLayout(LayoutKind.Sequential)] public struct RenderModel_TextureMap_t +{ + public char unWidth; + public char unHeight; + public IntPtr rubTextureMapData; // const uint8_t * +} +// This structure is for backwards binary compatibility on Linux and OSX only +[StructLayout(LayoutKind.Sequential, Pack = 4)] public struct RenderModel_TextureMap_t_Packed +{ + public char unWidth; + public char unHeight; + public IntPtr rubTextureMapData; // const uint8_t * + public RenderModel_TextureMap_t_Packed(RenderModel_TextureMap_t unpacked) + { + this.unWidth = unpacked.unWidth; + this.unHeight = unpacked.unHeight; + this.rubTextureMapData = unpacked.rubTextureMapData; + } + public void Unpack(ref RenderModel_TextureMap_t unpacked) + { + unpacked.unWidth = this.unWidth; + unpacked.unHeight = this.unHeight; + unpacked.rubTextureMapData = this.rubTextureMapData; + } +} +[StructLayout(LayoutKind.Sequential)] public struct RenderModel_t +{ + public IntPtr rVertexData; // const struct vr::RenderModel_Vertex_t * + public uint unVertexCount; + public IntPtr rIndexData; // const uint16_t * + public uint unTriangleCount; + public int diffuseTextureId; +} +// This structure is for backwards binary compatibility on Linux and OSX only +[StructLayout(LayoutKind.Sequential, Pack = 4)] public struct RenderModel_t_Packed +{ + public IntPtr rVertexData; // const struct vr::RenderModel_Vertex_t * + public uint unVertexCount; + public IntPtr rIndexData; // const uint16_t * + public uint unTriangleCount; + public int diffuseTextureId; + public RenderModel_t_Packed(RenderModel_t unpacked) + { + this.rVertexData = unpacked.rVertexData; + this.unVertexCount = unpacked.unVertexCount; + this.rIndexData = unpacked.rIndexData; + this.unTriangleCount = unpacked.unTriangleCount; + this.diffuseTextureId = unpacked.diffuseTextureId; + } + public void Unpack(ref RenderModel_t unpacked) + { + unpacked.rVertexData = this.rVertexData; + unpacked.unVertexCount = this.unVertexCount; + unpacked.rIndexData = this.rIndexData; + unpacked.unTriangleCount = this.unTriangleCount; + unpacked.diffuseTextureId = this.diffuseTextureId; + } +} +[StructLayout(LayoutKind.Sequential)] public struct RenderModel_ControllerMode_State_t +{ + [MarshalAs(UnmanagedType.I1)] + public bool bScrollWheelVisible; +} +[StructLayout(LayoutKind.Sequential)] public struct NotificationBitmap_t +{ + public IntPtr m_pImageData; // void * + public int m_nWidth; + public int m_nHeight; + public int m_nBytesPerPixel; +} +[StructLayout(LayoutKind.Sequential)] public struct COpenVRContext +{ + public IntPtr m_pVRSystem; // class vr::IVRSystem * + public IntPtr m_pVRChaperone; // class vr::IVRChaperone * + public IntPtr m_pVRChaperoneSetup; // class vr::IVRChaperoneSetup * + public IntPtr m_pVRCompositor; // class vr::IVRCompositor * + public IntPtr m_pVROverlay; // class vr::IVROverlay * + public IntPtr m_pVRResources; // class vr::IVRResources * + public IntPtr m_pVRRenderModels; // class vr::IVRRenderModels * + public IntPtr m_pVRExtendedDisplay; // class vr::IVRExtendedDisplay * + public IntPtr m_pVRSettings; // class vr::IVRSettings * + public IntPtr m_pVRApplications; // class vr::IVRApplications * + public IntPtr m_pVRTrackedCamera; // class vr::IVRTrackedCamera * + public IntPtr m_pVRScreenshots; // class vr::IVRScreenshots * + public IntPtr m_pVRDriverManager; // class vr::IVRDriverManager * +} + +public class OpenVR +{ + + public static uint InitInternal(ref EVRInitError peError, EVRApplicationType eApplicationType) + { + return OpenVRInterop.InitInternal(ref peError, eApplicationType); + } + + public static void ShutdownInternal() + { + OpenVRInterop.ShutdownInternal(); + } + + public static bool IsHmdPresent() + { + return OpenVRInterop.IsHmdPresent(); + } + + public static bool IsRuntimeInstalled() + { + return OpenVRInterop.IsRuntimeInstalled(); + } + + public static string GetStringForHmdError(EVRInitError error) + { + return Marshal.PtrToStringAnsi(OpenVRInterop.GetStringForHmdError(error)); + } + + public static IntPtr GetGenericInterface(string pchInterfaceVersion, ref EVRInitError peError) + { + return OpenVRInterop.GetGenericInterface(pchInterfaceVersion, ref peError); + } + + public static bool IsInterfaceVersionValid(string pchInterfaceVersion) + { + return OpenVRInterop.IsInterfaceVersionValid(pchInterfaceVersion); + } + + public static uint GetInitToken() + { + return OpenVRInterop.GetInitToken(); + } + + public const uint k_nDriverNone = 4294967295; + public const uint k_unMaxDriverDebugResponseSize = 32768; + public const uint k_unTrackedDeviceIndex_Hmd = 0; + public const uint k_unMaxTrackedDeviceCount = 16; + public const uint k_unTrackedDeviceIndexOther = 4294967294; + public const uint k_unTrackedDeviceIndexInvalid = 4294967295; + public const ulong k_ulInvalidPropertyContainer = 0; + public const uint k_unInvalidPropertyTag = 0; + public const uint k_unFloatPropertyTag = 1; + public const uint k_unInt32PropertyTag = 2; + public const uint k_unUint64PropertyTag = 3; + public const uint k_unBoolPropertyTag = 4; + public const uint k_unStringPropertyTag = 5; + public const uint k_unHmdMatrix34PropertyTag = 20; + public const uint k_unHmdMatrix44PropertyTag = 21; + public const uint k_unHmdVector3PropertyTag = 22; + public const uint k_unHmdVector4PropertyTag = 23; + public const uint k_unHiddenAreaPropertyTag = 30; + public const uint k_unOpenVRInternalReserved_Start = 1000; + public const uint k_unOpenVRInternalReserved_End = 10000; + public const uint k_unMaxPropertyStringSize = 32768; + public const uint k_unControllerStateAxisCount = 5; + public const ulong k_ulOverlayHandleInvalid = 0; + public const uint k_unScreenshotHandleInvalid = 0; + public const string IVRSystem_Version = "IVRSystem_016"; + public const string IVRExtendedDisplay_Version = "IVRExtendedDisplay_001"; + public const string IVRTrackedCamera_Version = "IVRTrackedCamera_003"; + public const uint k_unMaxApplicationKeyLength = 128; + public const string k_pch_MimeType_HomeApp = "vr/home"; + public const string k_pch_MimeType_GameTheater = "vr/game_theater"; + public const string IVRApplications_Version = "IVRApplications_006"; + public const string IVRChaperone_Version = "IVRChaperone_003"; + public const string IVRChaperoneSetup_Version = "IVRChaperoneSetup_005"; + public const string IVRCompositor_Version = "IVRCompositor_020"; + public const uint k_unVROverlayMaxKeyLength = 128; + public const uint k_unVROverlayMaxNameLength = 128; + public const uint k_unMaxOverlayCount = 64; + public const uint k_unMaxOverlayIntersectionMaskPrimitivesCount = 32; + public const string IVROverlay_Version = "IVROverlay_016"; + public const string k_pch_Controller_Component_GDC2015 = "gdc2015"; + public const string k_pch_Controller_Component_Base = "base"; + public const string k_pch_Controller_Component_Tip = "tip"; + public const string k_pch_Controller_Component_HandGrip = "handgrip"; + public const string k_pch_Controller_Component_Status = "status"; + public const string IVRRenderModels_Version = "IVRRenderModels_005"; + public const uint k_unNotificationTextMaxSize = 256; + public const string IVRNotifications_Version = "IVRNotifications_002"; + public const uint k_unMaxSettingsKeyLength = 128; + public const string IVRSettings_Version = "IVRSettings_002"; + public const string k_pch_SteamVR_Section = "steamvr"; + public const string k_pch_SteamVR_RequireHmd_String = "requireHmd"; + public const string k_pch_SteamVR_ForcedDriverKey_String = "forcedDriver"; + public const string k_pch_SteamVR_ForcedHmdKey_String = "forcedHmd"; + public const string k_pch_SteamVR_DisplayDebug_Bool = "displayDebug"; + public const string k_pch_SteamVR_DebugProcessPipe_String = "debugProcessPipe"; + public const string k_pch_SteamVR_DisplayDebugX_Int32 = "displayDebugX"; + public const string k_pch_SteamVR_DisplayDebugY_Int32 = "displayDebugY"; + public const string k_pch_SteamVR_SendSystemButtonToAllApps_Bool = "sendSystemButtonToAllApps"; + public const string k_pch_SteamVR_LogLevel_Int32 = "loglevel"; + public const string k_pch_SteamVR_IPD_Float = "ipd"; + public const string k_pch_SteamVR_Background_String = "background"; + public const string k_pch_SteamVR_BackgroundUseDomeProjection_Bool = "backgroundUseDomeProjection"; + public const string k_pch_SteamVR_BackgroundCameraHeight_Float = "backgroundCameraHeight"; + public const string k_pch_SteamVR_BackgroundDomeRadius_Float = "backgroundDomeRadius"; + public const string k_pch_SteamVR_GridColor_String = "gridColor"; + public const string k_pch_SteamVR_PlayAreaColor_String = "playAreaColor"; + public const string k_pch_SteamVR_ShowStage_Bool = "showStage"; + public const string k_pch_SteamVR_ActivateMultipleDrivers_Bool = "activateMultipleDrivers"; + public const string k_pch_SteamVR_DirectMode_Bool = "directMode"; + public const string k_pch_SteamVR_DirectModeEdidVid_Int32 = "directModeEdidVid"; + public const string k_pch_SteamVR_DirectModeEdidPid_Int32 = "directModeEdidPid"; + public const string k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers"; + public const string k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees"; + public const string k_pch_SteamVR_BaseStationPowerManagement_Bool = "basestationPowerManagement"; + public const string k_pch_SteamVR_NeverKillProcesses_Bool = "neverKillProcesses"; + public const string k_pch_SteamVR_SupersampleScale_Float = "supersampleScale"; + public const string k_pch_SteamVR_AllowAsyncReprojection_Bool = "allowAsyncReprojection"; + public const string k_pch_SteamVR_AllowReprojection_Bool = "allowInterleavedReprojection"; + public const string k_pch_SteamVR_ForceReprojection_Bool = "forceReprojection"; + public const string k_pch_SteamVR_ForceFadeOnBadTracking_Bool = "forceFadeOnBadTracking"; + public const string k_pch_SteamVR_DefaultMirrorView_Int32 = "defaultMirrorView"; + public const string k_pch_SteamVR_ShowMirrorView_Bool = "showMirrorView"; + public const string k_pch_SteamVR_MirrorViewGeometry_String = "mirrorViewGeometry"; + public const string k_pch_SteamVR_StartMonitorFromAppLaunch = "startMonitorFromAppLaunch"; + public const string k_pch_SteamVR_StartCompositorFromAppLaunch_Bool = "startCompositorFromAppLaunch"; + public const string k_pch_SteamVR_StartDashboardFromAppLaunch_Bool = "startDashboardFromAppLaunch"; + public const string k_pch_SteamVR_StartOverlayAppsFromDashboard_Bool = "startOverlayAppsFromDashboard"; + public const string k_pch_SteamVR_EnableHomeApp = "enableHomeApp"; + public const string k_pch_SteamVR_CycleBackgroundImageTimeSec_Int32 = "CycleBackgroundImageTimeSec"; + public const string k_pch_SteamVR_RetailDemo_Bool = "retailDemo"; + public const string k_pch_SteamVR_IpdOffset_Float = "ipdOffset"; + public const string k_pch_SteamVR_AllowSupersampleFiltering_Bool = "allowSupersampleFiltering"; + public const string k_pch_Lighthouse_Section = "driver_lighthouse"; + public const string k_pch_Lighthouse_DisableIMU_Bool = "disableimu"; + public const string k_pch_Lighthouse_UseDisambiguation_String = "usedisambiguation"; + public const string k_pch_Lighthouse_DisambiguationDebug_Int32 = "disambiguationdebug"; + public const string k_pch_Lighthouse_PrimaryBasestation_Int32 = "primarybasestation"; + public const string k_pch_Lighthouse_DBHistory_Bool = "dbhistory"; + public const string k_pch_Null_Section = "driver_null"; + public const string k_pch_Null_SerialNumber_String = "serialNumber"; + public const string k_pch_Null_ModelNumber_String = "modelNumber"; + public const string k_pch_Null_WindowX_Int32 = "windowX"; + public const string k_pch_Null_WindowY_Int32 = "windowY"; + public const string k_pch_Null_WindowWidth_Int32 = "windowWidth"; + public const string k_pch_Null_WindowHeight_Int32 = "windowHeight"; + public const string k_pch_Null_RenderWidth_Int32 = "renderWidth"; + public const string k_pch_Null_RenderHeight_Int32 = "renderHeight"; + public const string k_pch_Null_SecondsFromVsyncToPhotons_Float = "secondsFromVsyncToPhotons"; + public const string k_pch_Null_DisplayFrequency_Float = "displayFrequency"; + public const string k_pch_UserInterface_Section = "userinterface"; + public const string k_pch_UserInterface_StatusAlwaysOnTop_Bool = "StatusAlwaysOnTop"; + public const string k_pch_UserInterface_MinimizeToTray_Bool = "MinimizeToTray"; + public const string k_pch_UserInterface_Screenshots_Bool = "screenshots"; + public const string k_pch_UserInterface_ScreenshotType_Int = "screenshotType"; + public const string k_pch_Notifications_Section = "notifications"; + public const string k_pch_Notifications_DoNotDisturb_Bool = "DoNotDisturb"; + public const string k_pch_Keyboard_Section = "keyboard"; + public const string k_pch_Keyboard_TutorialCompletions = "TutorialCompletions"; + public const string k_pch_Keyboard_ScaleX = "ScaleX"; + public const string k_pch_Keyboard_ScaleY = "ScaleY"; + public const string k_pch_Keyboard_OffsetLeftX = "OffsetLeftX"; + public const string k_pch_Keyboard_OffsetRightX = "OffsetRightX"; + public const string k_pch_Keyboard_OffsetY = "OffsetY"; + public const string k_pch_Keyboard_Smoothing = "Smoothing"; + public const string k_pch_Perf_Section = "perfcheck"; + public const string k_pch_Perf_HeuristicActive_Bool = "heuristicActive"; + public const string k_pch_Perf_NotifyInHMD_Bool = "warnInHMD"; + public const string k_pch_Perf_NotifyOnlyOnce_Bool = "warnOnlyOnce"; + public const string k_pch_Perf_AllowTimingStore_Bool = "allowTimingStore"; + public const string k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit"; + public const string k_pch_Perf_TestData_Float = "perfTestData"; + public const string k_pch_Perf_LinuxGPUProfiling_Bool = "linuxGPUProfiling"; + public const string k_pch_CollisionBounds_Section = "collisionBounds"; + public const string k_pch_CollisionBounds_Style_Int32 = "CollisionBoundsStyle"; + public const string k_pch_CollisionBounds_GroundPerimeterOn_Bool = "CollisionBoundsGroundPerimeterOn"; + public const string k_pch_CollisionBounds_CenterMarkerOn_Bool = "CollisionBoundsCenterMarkerOn"; + public const string k_pch_CollisionBounds_PlaySpaceOn_Bool = "CollisionBoundsPlaySpaceOn"; + public const string k_pch_CollisionBounds_FadeDistance_Float = "CollisionBoundsFadeDistance"; + public const string k_pch_CollisionBounds_ColorGammaR_Int32 = "CollisionBoundsColorGammaR"; + public const string k_pch_CollisionBounds_ColorGammaG_Int32 = "CollisionBoundsColorGammaG"; + public const string k_pch_CollisionBounds_ColorGammaB_Int32 = "CollisionBoundsColorGammaB"; + public const string k_pch_CollisionBounds_ColorGammaA_Int32 = "CollisionBoundsColorGammaA"; + public const string k_pch_Camera_Section = "camera"; + public const string k_pch_Camera_EnableCamera_Bool = "enableCamera"; + public const string k_pch_Camera_EnableCameraInDashboard_Bool = "enableCameraInDashboard"; + public const string k_pch_Camera_EnableCameraForCollisionBounds_Bool = "enableCameraForCollisionBounds"; + public const string k_pch_Camera_EnableCameraForRoomView_Bool = "enableCameraForRoomView"; + public const string k_pch_Camera_BoundsColorGammaR_Int32 = "cameraBoundsColorGammaR"; + public const string k_pch_Camera_BoundsColorGammaG_Int32 = "cameraBoundsColorGammaG"; + public const string k_pch_Camera_BoundsColorGammaB_Int32 = "cameraBoundsColorGammaB"; + public const string k_pch_Camera_BoundsColorGammaA_Int32 = "cameraBoundsColorGammaA"; + public const string k_pch_Camera_BoundsStrength_Int32 = "cameraBoundsStrength"; + public const string k_pch_audio_Section = "audio"; + public const string k_pch_audio_OnPlaybackDevice_String = "onPlaybackDevice"; + public const string k_pch_audio_OnRecordDevice_String = "onRecordDevice"; + public const string k_pch_audio_OnPlaybackMirrorDevice_String = "onPlaybackMirrorDevice"; + public const string k_pch_audio_OffPlaybackDevice_String = "offPlaybackDevice"; + public const string k_pch_audio_OffRecordDevice_String = "offRecordDevice"; + public const string k_pch_audio_VIVEHDMIGain = "viveHDMIGain"; + public const string k_pch_Power_Section = "power"; + public const string k_pch_Power_PowerOffOnExit_Bool = "powerOffOnExit"; + public const string k_pch_Power_TurnOffScreensTimeout_Float = "turnOffScreensTimeout"; + public const string k_pch_Power_TurnOffControllersTimeout_Float = "turnOffControllersTimeout"; + public const string k_pch_Power_ReturnToWatchdogTimeout_Float = "returnToWatchdogTimeout"; + public const string k_pch_Power_AutoLaunchSteamVROnButtonPress = "autoLaunchSteamVROnButtonPress"; + public const string k_pch_Dashboard_Section = "dashboard"; + public const string k_pch_Dashboard_EnableDashboard_Bool = "enableDashboard"; + public const string k_pch_Dashboard_ArcadeMode_Bool = "arcadeMode"; + public const string k_pch_modelskin_Section = "modelskins"; + public const string k_pch_Driver_Enable_Bool = "enable"; + public const string IVRScreenshots_Version = "IVRScreenshots_001"; + public const string IVRResources_Version = "IVRResources_001"; + public const string IVRDriverManager_Version = "IVRDriverManager_001"; + + static uint VRToken { get; set; } + + const string FnTable_Prefix = "FnTable:"; + + class COpenVRContext + { + public COpenVRContext() { Clear(); } + + public void Clear() + { + m_pVRSystem = null; + m_pVRChaperone = null; + m_pVRChaperoneSetup = null; + m_pVRCompositor = null; + m_pVROverlay = null; + m_pVRRenderModels = null; + m_pVRExtendedDisplay = null; + m_pVRSettings = null; + m_pVRApplications = null; + m_pVRScreenshots = null; + m_pVRTrackedCamera = null; + } + + void CheckClear() + { + if (VRToken != GetInitToken()) + { + Clear(); + VRToken = GetInitToken(); + } + } + + public CVRSystem VRSystem() + { + CheckClear(); + if (m_pVRSystem == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRSystem_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRSystem = new CVRSystem(pInterface); + } + return m_pVRSystem; + } + + public CVRChaperone VRChaperone() + { + CheckClear(); + if (m_pVRChaperone == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRChaperone_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRChaperone = new CVRChaperone(pInterface); + } + return m_pVRChaperone; + } + + public CVRChaperoneSetup VRChaperoneSetup() + { + CheckClear(); + if (m_pVRChaperoneSetup == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRChaperoneSetup_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRChaperoneSetup = new CVRChaperoneSetup(pInterface); + } + return m_pVRChaperoneSetup; + } + + public CVRCompositor VRCompositor() + { + CheckClear(); + if (m_pVRCompositor == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRCompositor_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRCompositor = new CVRCompositor(pInterface); + } + return m_pVRCompositor; + } + + public CVROverlay VROverlay() + { + CheckClear(); + if (m_pVROverlay == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVROverlay_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVROverlay = new CVROverlay(pInterface); + } + return m_pVROverlay; + } + + public CVRRenderModels VRRenderModels() + { + CheckClear(); + if (m_pVRRenderModels == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRRenderModels_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRRenderModels = new CVRRenderModels(pInterface); + } + return m_pVRRenderModels; + } + + public CVRExtendedDisplay VRExtendedDisplay() + { + CheckClear(); + if (m_pVRExtendedDisplay == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRExtendedDisplay_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRExtendedDisplay = new CVRExtendedDisplay(pInterface); + } + return m_pVRExtendedDisplay; + } + + public CVRSettings VRSettings() + { + CheckClear(); + if (m_pVRSettings == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRSettings_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRSettings = new CVRSettings(pInterface); + } + return m_pVRSettings; + } + + public CVRApplications VRApplications() + { + CheckClear(); + if (m_pVRApplications == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRApplications_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRApplications = new CVRApplications(pInterface); + } + return m_pVRApplications; + } + + public CVRScreenshots VRScreenshots() + { + CheckClear(); + if (m_pVRScreenshots == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRScreenshots_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRScreenshots = new CVRScreenshots(pInterface); + } + return m_pVRScreenshots; + } + + public CVRTrackedCamera VRTrackedCamera() + { + CheckClear(); + if (m_pVRTrackedCamera == null) + { + var eError = EVRInitError.None; + var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRTrackedCamera_Version, ref eError); + if (pInterface != IntPtr.Zero && eError == EVRInitError.None) + m_pVRTrackedCamera = new CVRTrackedCamera(pInterface); + } + return m_pVRTrackedCamera; + } + + private CVRSystem m_pVRSystem; + private CVRChaperone m_pVRChaperone; + private CVRChaperoneSetup m_pVRChaperoneSetup; + private CVRCompositor m_pVRCompositor; + private CVROverlay m_pVROverlay; + private CVRRenderModels m_pVRRenderModels; + private CVRExtendedDisplay m_pVRExtendedDisplay; + private CVRSettings m_pVRSettings; + private CVRApplications m_pVRApplications; + private CVRScreenshots m_pVRScreenshots; + private CVRTrackedCamera m_pVRTrackedCamera; + }; + + private static COpenVRContext _OpenVRInternal_ModuleContext = null; + static COpenVRContext OpenVRInternal_ModuleContext + { + get + { + if (_OpenVRInternal_ModuleContext == null) + _OpenVRInternal_ModuleContext = new COpenVRContext(); + return _OpenVRInternal_ModuleContext; + } + } + + public static CVRSystem System { get { return OpenVRInternal_ModuleContext.VRSystem(); } } + public static CVRChaperone Chaperone { get { return OpenVRInternal_ModuleContext.VRChaperone(); } } + public static CVRChaperoneSetup ChaperoneSetup { get { return OpenVRInternal_ModuleContext.VRChaperoneSetup(); } } + public static CVRCompositor Compositor { get { return OpenVRInternal_ModuleContext.VRCompositor(); } } + public static CVROverlay Overlay { get { return OpenVRInternal_ModuleContext.VROverlay(); } } + public static CVRRenderModels RenderModels { get { return OpenVRInternal_ModuleContext.VRRenderModels(); } } + public static CVRExtendedDisplay ExtendedDisplay { get { return OpenVRInternal_ModuleContext.VRExtendedDisplay(); } } + public static CVRSettings Settings { get { return OpenVRInternal_ModuleContext.VRSettings(); } } + public static CVRApplications Applications { get { return OpenVRInternal_ModuleContext.VRApplications(); } } + public static CVRScreenshots Screenshots { get { return OpenVRInternal_ModuleContext.VRScreenshots(); } } + public static CVRTrackedCamera TrackedCamera { get { return OpenVRInternal_ModuleContext.VRTrackedCamera(); } } + + /** Finds the active installation of vrclient.dll and initializes it */ + public static CVRSystem Init(ref EVRInitError peError, EVRApplicationType eApplicationType = EVRApplicationType.VRApplication_Scene) + { + VRToken = InitInternal(ref peError, eApplicationType); + OpenVRInternal_ModuleContext.Clear(); + + if (peError != EVRInitError.None) + return null; + + bool bInterfaceValid = IsInterfaceVersionValid(IVRSystem_Version); + if (!bInterfaceValid) + { + ShutdownInternal(); + peError = EVRInitError.Init_InterfaceNotFound; + return null; + } + + return OpenVR.System; + } + + /** unloads vrclient.dll. Any interface pointers from the interface are + * invalid after this point */ + public static void Shutdown() + { + ShutdownInternal(); + } + +} + + + +} + diff --git a/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/Current/Headers/openvr_api.json b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/Current/Headers/openvr_api.json new file mode 100644 index 000000000..bd76ded9f --- /dev/null +++ b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/Current/Headers/openvr_api.json @@ -0,0 +1,3887 @@ +{"typedefs":[{"typedef": "vr::glSharedTextureHandle_t","type": "void *"} +,{"typedef": "vr::glInt_t","type": "int32_t"} +,{"typedef": "vr::glUInt_t","type": "uint32_t"} +,{"typedef": "vr::SharedTextureHandle_t","type": "uint64_t"} +,{"typedef": "vr::DriverId_t","type": "uint32_t"} +,{"typedef": "vr::TrackedDeviceIndex_t","type": "uint32_t"} +,{"typedef": "vr::PropertyContainerHandle_t","type": "uint64_t"} +,{"typedef": "vr::PropertyTypeTag_t","type": "uint32_t"} +,{"typedef": "vr::VREvent_Data_t","type": "union VREvent_Data_t"} +,{"typedef": "vr::VRControllerState_t","type": "struct vr::VRControllerState001_t"} +,{"typedef": "vr::VROverlayHandle_t","type": "uint64_t"} +,{"typedef": "vr::TrackedCameraHandle_t","type": "uint64_t"} +,{"typedef": "vr::ScreenshotHandle_t","type": "uint32_t"} +,{"typedef": "vr::VROverlayIntersectionMaskPrimitive_Data_t","type": "union VROverlayIntersectionMaskPrimitive_Data_t"} +,{"typedef": "vr::VRComponentProperties","type": "uint32_t"} +,{"typedef": "vr::TextureID_t","type": "int32_t"} +,{"typedef": "vr::VRNotificationId","type": "uint32_t"} +,{"typedef": "vr::HmdError","type": "enum vr::EVRInitError"} +,{"typedef": "vr::Hmd_Eye","type": "enum vr::EVREye"} +,{"typedef": "vr::ColorSpace","type": "enum vr::EColorSpace"} +,{"typedef": "vr::HmdTrackingResult","type": "enum vr::ETrackingResult"} +,{"typedef": "vr::TrackedDeviceClass","type": "enum vr::ETrackedDeviceClass"} +,{"typedef": "vr::TrackingUniverseOrigin","type": "enum vr::ETrackingUniverseOrigin"} +,{"typedef": "vr::TrackedDeviceProperty","type": "enum vr::ETrackedDeviceProperty"} +,{"typedef": "vr::TrackedPropertyError","type": "enum vr::ETrackedPropertyError"} +,{"typedef": "vr::VRSubmitFlags_t","type": "enum vr::EVRSubmitFlags"} +,{"typedef": "vr::VRState_t","type": "enum vr::EVRState"} +,{"typedef": "vr::CollisionBoundsStyle_t","type": "enum vr::ECollisionBoundsStyle"} +,{"typedef": "vr::VROverlayError","type": "enum vr::EVROverlayError"} +,{"typedef": "vr::VRFirmwareError","type": "enum vr::EVRFirmwareError"} +,{"typedef": "vr::VRCompositorError","type": "enum vr::EVRCompositorError"} +,{"typedef": "vr::VRScreenshotsError","type": "enum vr::EVRScreenshotError"} +], +"enums":[ + {"enumname": "vr::EVREye","values": [ + {"name": "Eye_Left","value": "0"} + ,{"name": "Eye_Right","value": "1"} +]} +, {"enumname": "vr::ETextureType","values": [ + {"name": "TextureType_DirectX","value": "0"} + ,{"name": "TextureType_OpenGL","value": "1"} + ,{"name": "TextureType_Vulkan","value": "2"} + ,{"name": "TextureType_IOSurface","value": "3"} + ,{"name": "TextureType_DirectX12","value": "4"} +]} +, {"enumname": "vr::EColorSpace","values": [ + {"name": "ColorSpace_Auto","value": "0"} + ,{"name": "ColorSpace_Gamma","value": "1"} + ,{"name": "ColorSpace_Linear","value": "2"} +]} +, {"enumname": "vr::ETrackingResult","values": [ + {"name": "TrackingResult_Uninitialized","value": "1"} + ,{"name": "TrackingResult_Calibrating_InProgress","value": "100"} + ,{"name": "TrackingResult_Calibrating_OutOfRange","value": "101"} + ,{"name": "TrackingResult_Running_OK","value": "200"} + ,{"name": "TrackingResult_Running_OutOfRange","value": "201"} +]} +, {"enumname": "vr::ETrackedDeviceClass","values": [ + {"name": "TrackedDeviceClass_Invalid","value": "0"} + ,{"name": "TrackedDeviceClass_HMD","value": "1"} + ,{"name": "TrackedDeviceClass_Controller","value": "2"} + ,{"name": "TrackedDeviceClass_GenericTracker","value": "3"} + ,{"name": "TrackedDeviceClass_TrackingReference","value": "4"} + ,{"name": "TrackedDeviceClass_DisplayRedirect","value": "5"} +]} +, {"enumname": "vr::ETrackedControllerRole","values": [ + {"name": "TrackedControllerRole_Invalid","value": "0"} + ,{"name": "TrackedControllerRole_LeftHand","value": "1"} + ,{"name": "TrackedControllerRole_RightHand","value": "2"} +]} +, {"enumname": "vr::ETrackingUniverseOrigin","values": [ + {"name": "TrackingUniverseSeated","value": "0"} + ,{"name": "TrackingUniverseStanding","value": "1"} + ,{"name": "TrackingUniverseRawAndUncalibrated","value": "2"} +]} +, {"enumname": "vr::ETrackedDeviceProperty","values": [ + {"name": "Prop_Invalid","value": "0"} + ,{"name": "Prop_TrackingSystemName_String","value": "1000"} + ,{"name": "Prop_ModelNumber_String","value": "1001"} + ,{"name": "Prop_SerialNumber_String","value": "1002"} + ,{"name": "Prop_RenderModelName_String","value": "1003"} + ,{"name": "Prop_WillDriftInYaw_Bool","value": "1004"} + ,{"name": "Prop_ManufacturerName_String","value": "1005"} + ,{"name": "Prop_TrackingFirmwareVersion_String","value": "1006"} + ,{"name": "Prop_HardwareRevision_String","value": "1007"} + ,{"name": "Prop_AllWirelessDongleDescriptions_String","value": "1008"} + ,{"name": "Prop_ConnectedWirelessDongle_String","value": "1009"} + ,{"name": "Prop_DeviceIsWireless_Bool","value": "1010"} + ,{"name": "Prop_DeviceIsCharging_Bool","value": "1011"} + ,{"name": "Prop_DeviceBatteryPercentage_Float","value": "1012"} + ,{"name": "Prop_StatusDisplayTransform_Matrix34","value": "1013"} + ,{"name": "Prop_Firmware_UpdateAvailable_Bool","value": "1014"} + ,{"name": "Prop_Firmware_ManualUpdate_Bool","value": "1015"} + ,{"name": "Prop_Firmware_ManualUpdateURL_String","value": "1016"} + ,{"name": "Prop_HardwareRevision_Uint64","value": "1017"} + ,{"name": "Prop_FirmwareVersion_Uint64","value": "1018"} + ,{"name": "Prop_FPGAVersion_Uint64","value": "1019"} + ,{"name": "Prop_VRCVersion_Uint64","value": "1020"} + ,{"name": "Prop_RadioVersion_Uint64","value": "1021"} + ,{"name": "Prop_DongleVersion_Uint64","value": "1022"} + ,{"name": "Prop_BlockServerShutdown_Bool","value": "1023"} + ,{"name": "Prop_CanUnifyCoordinateSystemWithHmd_Bool","value": "1024"} + ,{"name": "Prop_ContainsProximitySensor_Bool","value": "1025"} + ,{"name": "Prop_DeviceProvidesBatteryStatus_Bool","value": "1026"} + ,{"name": "Prop_DeviceCanPowerOff_Bool","value": "1027"} + ,{"name": "Prop_Firmware_ProgrammingTarget_String","value": "1028"} + ,{"name": "Prop_DeviceClass_Int32","value": "1029"} + ,{"name": "Prop_HasCamera_Bool","value": "1030"} + ,{"name": "Prop_DriverVersion_String","value": "1031"} + ,{"name": "Prop_Firmware_ForceUpdateRequired_Bool","value": "1032"} + ,{"name": "Prop_ViveSystemButtonFixRequired_Bool","value": "1033"} + ,{"name": "Prop_ParentDriver_Uint64","value": "1034"} + ,{"name": "Prop_ResourceRoot_String","value": "1035"} + ,{"name": "Prop_ReportsTimeSinceVSync_Bool","value": "2000"} + ,{"name": "Prop_SecondsFromVsyncToPhotons_Float","value": "2001"} + ,{"name": "Prop_DisplayFrequency_Float","value": "2002"} + ,{"name": "Prop_UserIpdMeters_Float","value": "2003"} + ,{"name": "Prop_CurrentUniverseId_Uint64","value": "2004"} + ,{"name": "Prop_PreviousUniverseId_Uint64","value": "2005"} + ,{"name": "Prop_DisplayFirmwareVersion_Uint64","value": "2006"} + ,{"name": "Prop_IsOnDesktop_Bool","value": "2007"} + ,{"name": "Prop_DisplayMCType_Int32","value": "2008"} + ,{"name": "Prop_DisplayMCOffset_Float","value": "2009"} + ,{"name": "Prop_DisplayMCScale_Float","value": "2010"} + ,{"name": "Prop_EdidVendorID_Int32","value": "2011"} + ,{"name": "Prop_DisplayMCImageLeft_String","value": "2012"} + ,{"name": "Prop_DisplayMCImageRight_String","value": "2013"} + ,{"name": "Prop_DisplayGCBlackClamp_Float","value": "2014"} + ,{"name": "Prop_EdidProductID_Int32","value": "2015"} + ,{"name": "Prop_CameraToHeadTransform_Matrix34","value": "2016"} + ,{"name": "Prop_DisplayGCType_Int32","value": "2017"} + ,{"name": "Prop_DisplayGCOffset_Float","value": "2018"} + ,{"name": "Prop_DisplayGCScale_Float","value": "2019"} + ,{"name": "Prop_DisplayGCPrescale_Float","value": "2020"} + ,{"name": "Prop_DisplayGCImage_String","value": "2021"} + ,{"name": "Prop_LensCenterLeftU_Float","value": "2022"} + ,{"name": "Prop_LensCenterLeftV_Float","value": "2023"} + ,{"name": "Prop_LensCenterRightU_Float","value": "2024"} + ,{"name": "Prop_LensCenterRightV_Float","value": "2025"} + ,{"name": "Prop_UserHeadToEyeDepthMeters_Float","value": "2026"} + ,{"name": "Prop_CameraFirmwareVersion_Uint64","value": "2027"} + ,{"name": "Prop_CameraFirmwareDescription_String","value": "2028"} + ,{"name": "Prop_DisplayFPGAVersion_Uint64","value": "2029"} + ,{"name": "Prop_DisplayBootloaderVersion_Uint64","value": "2030"} + ,{"name": "Prop_DisplayHardwareVersion_Uint64","value": "2031"} + ,{"name": "Prop_AudioFirmwareVersion_Uint64","value": "2032"} + ,{"name": "Prop_CameraCompatibilityMode_Int32","value": "2033"} + ,{"name": "Prop_ScreenshotHorizontalFieldOfViewDegrees_Float","value": "2034"} + ,{"name": "Prop_ScreenshotVerticalFieldOfViewDegrees_Float","value": "2035"} + ,{"name": "Prop_DisplaySuppressed_Bool","value": "2036"} + ,{"name": "Prop_DisplayAllowNightMode_Bool","value": "2037"} + ,{"name": "Prop_DisplayMCImageWidth_Int32","value": "2038"} + ,{"name": "Prop_DisplayMCImageHeight_Int32","value": "2039"} + ,{"name": "Prop_DisplayMCImageNumChannels_Int32","value": "2040"} + ,{"name": "Prop_DisplayMCImageData_Binary","value": "2041"} + ,{"name": "Prop_SecondsFromPhotonsToVblank_Float","value": "2042"} + ,{"name": "Prop_DriverDirectModeSendsVsyncEvents_Bool","value": "2043"} + ,{"name": "Prop_DisplayDebugMode_Bool","value": "2044"} + ,{"name": "Prop_GraphicsAdapterLuid_Uint64","value": "2045"} + ,{"name": "Prop_AttachedDeviceId_String","value": "3000"} + ,{"name": "Prop_SupportedButtons_Uint64","value": "3001"} + ,{"name": "Prop_Axis0Type_Int32","value": "3002"} + ,{"name": "Prop_Axis1Type_Int32","value": "3003"} + ,{"name": "Prop_Axis2Type_Int32","value": "3004"} + ,{"name": "Prop_Axis3Type_Int32","value": "3005"} + ,{"name": "Prop_Axis4Type_Int32","value": "3006"} + ,{"name": "Prop_ControllerRoleHint_Int32","value": "3007"} + ,{"name": "Prop_FieldOfViewLeftDegrees_Float","value": "4000"} + ,{"name": "Prop_FieldOfViewRightDegrees_Float","value": "4001"} + ,{"name": "Prop_FieldOfViewTopDegrees_Float","value": "4002"} + ,{"name": "Prop_FieldOfViewBottomDegrees_Float","value": "4003"} + ,{"name": "Prop_TrackingRangeMinimumMeters_Float","value": "4004"} + ,{"name": "Prop_TrackingRangeMaximumMeters_Float","value": "4005"} + ,{"name": "Prop_ModeLabel_String","value": "4006"} + ,{"name": "Prop_IconPathName_String","value": "5000"} + ,{"name": "Prop_NamedIconPathDeviceOff_String","value": "5001"} + ,{"name": "Prop_NamedIconPathDeviceSearching_String","value": "5002"} + ,{"name": "Prop_NamedIconPathDeviceSearchingAlert_String","value": "5003"} + ,{"name": "Prop_NamedIconPathDeviceReady_String","value": "5004"} + ,{"name": "Prop_NamedIconPathDeviceReadyAlert_String","value": "5005"} + ,{"name": "Prop_NamedIconPathDeviceNotReady_String","value": "5006"} + ,{"name": "Prop_NamedIconPathDeviceStandby_String","value": "5007"} + ,{"name": "Prop_NamedIconPathDeviceAlertLow_String","value": "5008"} + ,{"name": "Prop_DisplayHiddenArea_Binary_Start","value": "5100"} + ,{"name": "Prop_DisplayHiddenArea_Binary_End","value": "5150"} + ,{"name": "Prop_UserConfigPath_String","value": "6000"} + ,{"name": "Prop_InstallPath_String","value": "6001"} + ,{"name": "Prop_HasDisplayComponent_Bool","value": "6002"} + ,{"name": "Prop_HasControllerComponent_Bool","value": "6003"} + ,{"name": "Prop_HasCameraComponent_Bool","value": "6004"} + ,{"name": "Prop_HasDriverDirectModeComponent_Bool","value": "6005"} + ,{"name": "Prop_HasVirtualDisplayComponent_Bool","value": "6006"} + ,{"name": "Prop_VendorSpecific_Reserved_Start","value": "10000"} + ,{"name": "Prop_VendorSpecific_Reserved_End","value": "10999"} +]} +, {"enumname": "vr::ETrackedPropertyError","values": [ + {"name": "TrackedProp_Success","value": "0"} + ,{"name": "TrackedProp_WrongDataType","value": "1"} + ,{"name": "TrackedProp_WrongDeviceClass","value": "2"} + ,{"name": "TrackedProp_BufferTooSmall","value": "3"} + ,{"name": "TrackedProp_UnknownProperty","value": "4"} + ,{"name": "TrackedProp_InvalidDevice","value": "5"} + ,{"name": "TrackedProp_CouldNotContactServer","value": "6"} + ,{"name": "TrackedProp_ValueNotProvidedByDevice","value": "7"} + ,{"name": "TrackedProp_StringExceedsMaximumLength","value": "8"} + ,{"name": "TrackedProp_NotYetAvailable","value": "9"} + ,{"name": "TrackedProp_PermissionDenied","value": "10"} + ,{"name": "TrackedProp_InvalidOperation","value": "11"} +]} +, {"enumname": "vr::EVRSubmitFlags","values": [ + {"name": "Submit_Default","value": "0"} + ,{"name": "Submit_LensDistortionAlreadyApplied","value": "1"} + ,{"name": "Submit_GlRenderBuffer","value": "2"} + ,{"name": "Submit_Reserved","value": "4"} +]} +, {"enumname": "vr::EVRState","values": [ + {"name": "VRState_Undefined","value": "-1"} + ,{"name": "VRState_Off","value": "0"} + ,{"name": "VRState_Searching","value": "1"} + ,{"name": "VRState_Searching_Alert","value": "2"} + ,{"name": "VRState_Ready","value": "3"} + ,{"name": "VRState_Ready_Alert","value": "4"} + ,{"name": "VRState_NotReady","value": "5"} + ,{"name": "VRState_Standby","value": "6"} + ,{"name": "VRState_Ready_Alert_Low","value": "7"} +]} +, {"enumname": "vr::EVREventType","values": [ + {"name": "VREvent_None","value": "0"} + ,{"name": "VREvent_TrackedDeviceActivated","value": "100"} + ,{"name": "VREvent_TrackedDeviceDeactivated","value": "101"} + ,{"name": "VREvent_TrackedDeviceUpdated","value": "102"} + ,{"name": "VREvent_TrackedDeviceUserInteractionStarted","value": "103"} + ,{"name": "VREvent_TrackedDeviceUserInteractionEnded","value": "104"} + ,{"name": "VREvent_IpdChanged","value": "105"} + ,{"name": "VREvent_EnterStandbyMode","value": "106"} + ,{"name": "VREvent_LeaveStandbyMode","value": "107"} + ,{"name": "VREvent_TrackedDeviceRoleChanged","value": "108"} + ,{"name": "VREvent_WatchdogWakeUpRequested","value": "109"} + ,{"name": "VREvent_LensDistortionChanged","value": "110"} + ,{"name": "VREvent_PropertyChanged","value": "111"} + ,{"name": "VREvent_ButtonPress","value": "200"} + ,{"name": "VREvent_ButtonUnpress","value": "201"} + ,{"name": "VREvent_ButtonTouch","value": "202"} + ,{"name": "VREvent_ButtonUntouch","value": "203"} + ,{"name": "VREvent_MouseMove","value": "300"} + ,{"name": "VREvent_MouseButtonDown","value": "301"} + ,{"name": "VREvent_MouseButtonUp","value": "302"} + ,{"name": "VREvent_FocusEnter","value": "303"} + ,{"name": "VREvent_FocusLeave","value": "304"} + ,{"name": "VREvent_Scroll","value": "305"} + ,{"name": "VREvent_TouchPadMove","value": "306"} + ,{"name": "VREvent_OverlayFocusChanged","value": "307"} + ,{"name": "VREvent_InputFocusCaptured","value": "400"} + ,{"name": "VREvent_InputFocusReleased","value": "401"} + ,{"name": "VREvent_SceneFocusLost","value": "402"} + ,{"name": "VREvent_SceneFocusGained","value": "403"} + ,{"name": "VREvent_SceneApplicationChanged","value": "404"} + ,{"name": "VREvent_SceneFocusChanged","value": "405"} + ,{"name": "VREvent_InputFocusChanged","value": "406"} + ,{"name": "VREvent_SceneApplicationSecondaryRenderingStarted","value": "407"} + ,{"name": "VREvent_HideRenderModels","value": "410"} + ,{"name": "VREvent_ShowRenderModels","value": "411"} + ,{"name": "VREvent_OverlayShown","value": "500"} + ,{"name": "VREvent_OverlayHidden","value": "501"} + ,{"name": "VREvent_DashboardActivated","value": "502"} + ,{"name": "VREvent_DashboardDeactivated","value": "503"} + ,{"name": "VREvent_DashboardThumbSelected","value": "504"} + ,{"name": "VREvent_DashboardRequested","value": "505"} + ,{"name": "VREvent_ResetDashboard","value": "506"} + ,{"name": "VREvent_RenderToast","value": "507"} + ,{"name": "VREvent_ImageLoaded","value": "508"} + ,{"name": "VREvent_ShowKeyboard","value": "509"} + ,{"name": "VREvent_HideKeyboard","value": "510"} + ,{"name": "VREvent_OverlayGamepadFocusGained","value": "511"} + ,{"name": "VREvent_OverlayGamepadFocusLost","value": "512"} + ,{"name": "VREvent_OverlaySharedTextureChanged","value": "513"} + ,{"name": "VREvent_DashboardGuideButtonDown","value": "514"} + ,{"name": "VREvent_DashboardGuideButtonUp","value": "515"} + ,{"name": "VREvent_ScreenshotTriggered","value": "516"} + ,{"name": "VREvent_ImageFailed","value": "517"} + ,{"name": "VREvent_DashboardOverlayCreated","value": "518"} + ,{"name": "VREvent_RequestScreenshot","value": "520"} + ,{"name": "VREvent_ScreenshotTaken","value": "521"} + ,{"name": "VREvent_ScreenshotFailed","value": "522"} + ,{"name": "VREvent_SubmitScreenshotToDashboard","value": "523"} + ,{"name": "VREvent_ScreenshotProgressToDashboard","value": "524"} + ,{"name": "VREvent_PrimaryDashboardDeviceChanged","value": "525"} + ,{"name": "VREvent_Notification_Shown","value": "600"} + ,{"name": "VREvent_Notification_Hidden","value": "601"} + ,{"name": "VREvent_Notification_BeginInteraction","value": "602"} + ,{"name": "VREvent_Notification_Destroyed","value": "603"} + ,{"name": "VREvent_Quit","value": "700"} + ,{"name": "VREvent_ProcessQuit","value": "701"} + ,{"name": "VREvent_QuitAborted_UserPrompt","value": "702"} + ,{"name": "VREvent_QuitAcknowledged","value": "703"} + ,{"name": "VREvent_DriverRequestedQuit","value": "704"} + ,{"name": "VREvent_ChaperoneDataHasChanged","value": "800"} + ,{"name": "VREvent_ChaperoneUniverseHasChanged","value": "801"} + ,{"name": "VREvent_ChaperoneTempDataHasChanged","value": "802"} + ,{"name": "VREvent_ChaperoneSettingsHaveChanged","value": "803"} + ,{"name": "VREvent_SeatedZeroPoseReset","value": "804"} + ,{"name": "VREvent_AudioSettingsHaveChanged","value": "820"} + ,{"name": "VREvent_BackgroundSettingHasChanged","value": "850"} + ,{"name": "VREvent_CameraSettingsHaveChanged","value": "851"} + ,{"name": "VREvent_ReprojectionSettingHasChanged","value": "852"} + ,{"name": "VREvent_ModelSkinSettingsHaveChanged","value": "853"} + ,{"name": "VREvent_EnvironmentSettingsHaveChanged","value": "854"} + ,{"name": "VREvent_PowerSettingsHaveChanged","value": "855"} + ,{"name": "VREvent_EnableHomeAppSettingsHaveChanged","value": "856"} + ,{"name": "VREvent_StatusUpdate","value": "900"} + ,{"name": "VREvent_MCImageUpdated","value": "1000"} + ,{"name": "VREvent_FirmwareUpdateStarted","value": "1100"} + ,{"name": "VREvent_FirmwareUpdateFinished","value": "1101"} + ,{"name": "VREvent_KeyboardClosed","value": "1200"} + ,{"name": "VREvent_KeyboardCharInput","value": "1201"} + ,{"name": "VREvent_KeyboardDone","value": "1202"} + ,{"name": "VREvent_ApplicationTransitionStarted","value": "1300"} + ,{"name": "VREvent_ApplicationTransitionAborted","value": "1301"} + ,{"name": "VREvent_ApplicationTransitionNewAppStarted","value": "1302"} + ,{"name": "VREvent_ApplicationListUpdated","value": "1303"} + ,{"name": "VREvent_ApplicationMimeTypeLoad","value": "1304"} + ,{"name": "VREvent_ApplicationTransitionNewAppLaunchComplete","value": "1305"} + ,{"name": "VREvent_ProcessConnected","value": "1306"} + ,{"name": "VREvent_ProcessDisconnected","value": "1307"} + ,{"name": "VREvent_Compositor_MirrorWindowShown","value": "1400"} + ,{"name": "VREvent_Compositor_MirrorWindowHidden","value": "1401"} + ,{"name": "VREvent_Compositor_ChaperoneBoundsShown","value": "1410"} + ,{"name": "VREvent_Compositor_ChaperoneBoundsHidden","value": "1411"} + ,{"name": "VREvent_TrackedCamera_StartVideoStream","value": "1500"} + ,{"name": "VREvent_TrackedCamera_StopVideoStream","value": "1501"} + ,{"name": "VREvent_TrackedCamera_PauseVideoStream","value": "1502"} + ,{"name": "VREvent_TrackedCamera_ResumeVideoStream","value": "1503"} + ,{"name": "VREvent_TrackedCamera_EditingSurface","value": "1550"} + ,{"name": "VREvent_PerformanceTest_EnableCapture","value": "1600"} + ,{"name": "VREvent_PerformanceTest_DisableCapture","value": "1601"} + ,{"name": "VREvent_PerformanceTest_FidelityLevel","value": "1602"} + ,{"name": "VREvent_MessageOverlay_Closed","value": "1650"} + ,{"name": "VREvent_VendorSpecific_Reserved_Start","value": "10000"} + ,{"name": "VREvent_VendorSpecific_Reserved_End","value": "19999"} +]} +, {"enumname": "vr::EDeviceActivityLevel","values": [ + {"name": "k_EDeviceActivityLevel_Unknown","value": "-1"} + ,{"name": "k_EDeviceActivityLevel_Idle","value": "0"} + ,{"name": "k_EDeviceActivityLevel_UserInteraction","value": "1"} + ,{"name": "k_EDeviceActivityLevel_UserInteraction_Timeout","value": "2"} + ,{"name": "k_EDeviceActivityLevel_Standby","value": "3"} +]} +, {"enumname": "vr::EVRButtonId","values": [ + {"name": "k_EButton_System","value": "0"} + ,{"name": "k_EButton_ApplicationMenu","value": "1"} + ,{"name": "k_EButton_Grip","value": "2"} + ,{"name": "k_EButton_DPad_Left","value": "3"} + ,{"name": "k_EButton_DPad_Up","value": "4"} + ,{"name": "k_EButton_DPad_Right","value": "5"} + ,{"name": "k_EButton_DPad_Down","value": "6"} + ,{"name": "k_EButton_A","value": "7"} + ,{"name": "k_EButton_ProximitySensor","value": "31"} + ,{"name": "k_EButton_Axis0","value": "32"} + ,{"name": "k_EButton_Axis1","value": "33"} + ,{"name": "k_EButton_Axis2","value": "34"} + ,{"name": "k_EButton_Axis3","value": "35"} + ,{"name": "k_EButton_Axis4","value": "36"} + ,{"name": "k_EButton_SteamVR_Touchpad","value": "32"} + ,{"name": "k_EButton_SteamVR_Trigger","value": "33"} + ,{"name": "k_EButton_Dashboard_Back","value": "2"} + ,{"name": "k_EButton_Max","value": "64"} +]} +, {"enumname": "vr::EVRMouseButton","values": [ + {"name": "VRMouseButton_Left","value": "1"} + ,{"name": "VRMouseButton_Right","value": "2"} + ,{"name": "VRMouseButton_Middle","value": "4"} +]} +, {"enumname": "vr::EHiddenAreaMeshType","values": [ + {"name": "k_eHiddenAreaMesh_Standard","value": "0"} + ,{"name": "k_eHiddenAreaMesh_Inverse","value": "1"} + ,{"name": "k_eHiddenAreaMesh_LineLoop","value": "2"} + ,{"name": "k_eHiddenAreaMesh_Max","value": "3"} +]} +, {"enumname": "vr::EVRControllerAxisType","values": [ + {"name": "k_eControllerAxis_None","value": "0"} + ,{"name": "k_eControllerAxis_TrackPad","value": "1"} + ,{"name": "k_eControllerAxis_Joystick","value": "2"} + ,{"name": "k_eControllerAxis_Trigger","value": "3"} +]} +, {"enumname": "vr::EVRControllerEventOutputType","values": [ + {"name": "ControllerEventOutput_OSEvents","value": "0"} + ,{"name": "ControllerEventOutput_VREvents","value": "1"} +]} +, {"enumname": "vr::ECollisionBoundsStyle","values": [ + {"name": "COLLISION_BOUNDS_STYLE_BEGINNER","value": "0"} + ,{"name": "COLLISION_BOUNDS_STYLE_INTERMEDIATE","value": "1"} + ,{"name": "COLLISION_BOUNDS_STYLE_SQUARES","value": "2"} + ,{"name": "COLLISION_BOUNDS_STYLE_ADVANCED","value": "3"} + ,{"name": "COLLISION_BOUNDS_STYLE_NONE","value": "4"} + ,{"name": "COLLISION_BOUNDS_STYLE_COUNT","value": "5"} +]} +, {"enumname": "vr::EVROverlayError","values": [ + {"name": "VROverlayError_None","value": "0"} + ,{"name": "VROverlayError_UnknownOverlay","value": "10"} + ,{"name": "VROverlayError_InvalidHandle","value": "11"} + ,{"name": "VROverlayError_PermissionDenied","value": "12"} + ,{"name": "VROverlayError_OverlayLimitExceeded","value": "13"} + ,{"name": "VROverlayError_WrongVisibilityType","value": "14"} + ,{"name": "VROverlayError_KeyTooLong","value": "15"} + ,{"name": "VROverlayError_NameTooLong","value": "16"} + ,{"name": "VROverlayError_KeyInUse","value": "17"} + ,{"name": "VROverlayError_WrongTransformType","value": "18"} + ,{"name": "VROverlayError_InvalidTrackedDevice","value": "19"} + ,{"name": "VROverlayError_InvalidParameter","value": "20"} + ,{"name": "VROverlayError_ThumbnailCantBeDestroyed","value": "21"} + ,{"name": "VROverlayError_ArrayTooSmall","value": "22"} + ,{"name": "VROverlayError_RequestFailed","value": "23"} + ,{"name": "VROverlayError_InvalidTexture","value": "24"} + ,{"name": "VROverlayError_UnableToLoadFile","value": "25"} + ,{"name": "VROverlayError_KeyboardAlreadyInUse","value": "26"} + ,{"name": "VROverlayError_NoNeighbor","value": "27"} + ,{"name": "VROverlayError_TooManyMaskPrimitives","value": "29"} + ,{"name": "VROverlayError_BadMaskPrimitive","value": "30"} +]} +, {"enumname": "vr::EVRApplicationType","values": [ + {"name": "VRApplication_Other","value": "0"} + ,{"name": "VRApplication_Scene","value": "1"} + ,{"name": "VRApplication_Overlay","value": "2"} + ,{"name": "VRApplication_Background","value": "3"} + ,{"name": "VRApplication_Utility","value": "4"} + ,{"name": "VRApplication_VRMonitor","value": "5"} + ,{"name": "VRApplication_SteamWatchdog","value": "6"} + ,{"name": "VRApplication_Bootstrapper","value": "7"} + ,{"name": "VRApplication_Max","value": "8"} +]} +, {"enumname": "vr::EVRFirmwareError","values": [ + {"name": "VRFirmwareError_None","value": "0"} + ,{"name": "VRFirmwareError_Success","value": "1"} + ,{"name": "VRFirmwareError_Fail","value": "2"} +]} +, {"enumname": "vr::EVRNotificationError","values": [ + {"name": "VRNotificationError_OK","value": "0"} + ,{"name": "VRNotificationError_InvalidNotificationId","value": "100"} + ,{"name": "VRNotificationError_NotificationQueueFull","value": "101"} + ,{"name": "VRNotificationError_InvalidOverlayHandle","value": "102"} + ,{"name": "VRNotificationError_SystemWithUserValueAlreadyExists","value": "103"} +]} +, {"enumname": "vr::EVRInitError","values": [ + {"name": "VRInitError_None","value": "0"} + ,{"name": "VRInitError_Unknown","value": "1"} + ,{"name": "VRInitError_Init_InstallationNotFound","value": "100"} + ,{"name": "VRInitError_Init_InstallationCorrupt","value": "101"} + ,{"name": "VRInitError_Init_VRClientDLLNotFound","value": "102"} + ,{"name": "VRInitError_Init_FileNotFound","value": "103"} + ,{"name": "VRInitError_Init_FactoryNotFound","value": "104"} + ,{"name": "VRInitError_Init_InterfaceNotFound","value": "105"} + ,{"name": "VRInitError_Init_InvalidInterface","value": "106"} + ,{"name": "VRInitError_Init_UserConfigDirectoryInvalid","value": "107"} + ,{"name": "VRInitError_Init_HmdNotFound","value": "108"} + ,{"name": "VRInitError_Init_NotInitialized","value": "109"} + ,{"name": "VRInitError_Init_PathRegistryNotFound","value": "110"} + ,{"name": "VRInitError_Init_NoConfigPath","value": "111"} + ,{"name": "VRInitError_Init_NoLogPath","value": "112"} + ,{"name": "VRInitError_Init_PathRegistryNotWritable","value": "113"} + ,{"name": "VRInitError_Init_AppInfoInitFailed","value": "114"} + ,{"name": "VRInitError_Init_Retry","value": "115"} + ,{"name": "VRInitError_Init_InitCanceledByUser","value": "116"} + ,{"name": "VRInitError_Init_AnotherAppLaunching","value": "117"} + ,{"name": "VRInitError_Init_SettingsInitFailed","value": "118"} + ,{"name": "VRInitError_Init_ShuttingDown","value": "119"} + ,{"name": "VRInitError_Init_TooManyObjects","value": "120"} + ,{"name": "VRInitError_Init_NoServerForBackgroundApp","value": "121"} + ,{"name": "VRInitError_Init_NotSupportedWithCompositor","value": "122"} + ,{"name": "VRInitError_Init_NotAvailableToUtilityApps","value": "123"} + ,{"name": "VRInitError_Init_Internal","value": "124"} + ,{"name": "VRInitError_Init_HmdDriverIdIsNone","value": "125"} + ,{"name": "VRInitError_Init_HmdNotFoundPresenceFailed","value": "126"} + ,{"name": "VRInitError_Init_VRMonitorNotFound","value": "127"} + ,{"name": "VRInitError_Init_VRMonitorStartupFailed","value": "128"} + ,{"name": "VRInitError_Init_LowPowerWatchdogNotSupported","value": "129"} + ,{"name": "VRInitError_Init_InvalidApplicationType","value": "130"} + ,{"name": "VRInitError_Init_NotAvailableToWatchdogApps","value": "131"} + ,{"name": "VRInitError_Init_WatchdogDisabledInSettings","value": "132"} + ,{"name": "VRInitError_Init_VRDashboardNotFound","value": "133"} + ,{"name": "VRInitError_Init_VRDashboardStartupFailed","value": "134"} + ,{"name": "VRInitError_Init_VRHomeNotFound","value": "135"} + ,{"name": "VRInitError_Init_VRHomeStartupFailed","value": "136"} + ,{"name": "VRInitError_Driver_Failed","value": "200"} + ,{"name": "VRInitError_Driver_Unknown","value": "201"} + ,{"name": "VRInitError_Driver_HmdUnknown","value": "202"} + ,{"name": "VRInitError_Driver_NotLoaded","value": "203"} + ,{"name": "VRInitError_Driver_RuntimeOutOfDate","value": "204"} + ,{"name": "VRInitError_Driver_HmdInUse","value": "205"} + ,{"name": "VRInitError_Driver_NotCalibrated","value": "206"} + ,{"name": "VRInitError_Driver_CalibrationInvalid","value": "207"} + ,{"name": "VRInitError_Driver_HmdDisplayNotFound","value": "208"} + ,{"name": "VRInitError_Driver_TrackedDeviceInterfaceUnknown","value": "209"} + ,{"name": "VRInitError_Driver_HmdDriverIdOutOfBounds","value": "211"} + ,{"name": "VRInitError_Driver_HmdDisplayMirrored","value": "212"} + ,{"name": "VRInitError_IPC_ServerInitFailed","value": "300"} + ,{"name": "VRInitError_IPC_ConnectFailed","value": "301"} + ,{"name": "VRInitError_IPC_SharedStateInitFailed","value": "302"} + ,{"name": "VRInitError_IPC_CompositorInitFailed","value": "303"} + ,{"name": "VRInitError_IPC_MutexInitFailed","value": "304"} + ,{"name": "VRInitError_IPC_Failed","value": "305"} + ,{"name": "VRInitError_IPC_CompositorConnectFailed","value": "306"} + ,{"name": "VRInitError_IPC_CompositorInvalidConnectResponse","value": "307"} + ,{"name": "VRInitError_IPC_ConnectFailedAfterMultipleAttempts","value": "308"} + ,{"name": "VRInitError_Compositor_Failed","value": "400"} + ,{"name": "VRInitError_Compositor_D3D11HardwareRequired","value": "401"} + ,{"name": "VRInitError_Compositor_FirmwareRequiresUpdate","value": "402"} + ,{"name": "VRInitError_Compositor_OverlayInitFailed","value": "403"} + ,{"name": "VRInitError_Compositor_ScreenshotsInitFailed","value": "404"} + ,{"name": "VRInitError_Compositor_UnableToCreateDevice","value": "405"} + ,{"name": "VRInitError_VendorSpecific_UnableToConnectToOculusRuntime","value": "1000"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_CantOpenDevice","value": "1101"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart","value": "1102"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_NoStoredConfig","value": "1103"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_ConfigTooBig","value": "1104"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_ConfigTooSmall","value": "1105"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_UnableToInitZLib","value": "1106"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_CantReadFirmwareVersion","value": "1107"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_UnableToSendUserDataStart","value": "1108"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataStart","value": "1109"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataNext","value": "1110"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_UserDataAddressRange","value": "1111"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_UserDataError","value": "1112"} + ,{"name": "VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck","value": "1113"} + ,{"name": "VRInitError_Steam_SteamInstallationNotFound","value": "2000"} +]} +, {"enumname": "vr::EVRScreenshotType","values": [ + {"name": "VRScreenshotType_None","value": "0"} + ,{"name": "VRScreenshotType_Mono","value": "1"} + ,{"name": "VRScreenshotType_Stereo","value": "2"} + ,{"name": "VRScreenshotType_Cubemap","value": "3"} + ,{"name": "VRScreenshotType_MonoPanorama","value": "4"} + ,{"name": "VRScreenshotType_StereoPanorama","value": "5"} +]} +, {"enumname": "vr::EVRScreenshotPropertyFilenames","values": [ + {"name": "VRScreenshotPropertyFilenames_Preview","value": "0"} + ,{"name": "VRScreenshotPropertyFilenames_VR","value": "1"} +]} +, {"enumname": "vr::EVRTrackedCameraError","values": [ + {"name": "VRTrackedCameraError_None","value": "0"} + ,{"name": "VRTrackedCameraError_OperationFailed","value": "100"} + ,{"name": "VRTrackedCameraError_InvalidHandle","value": "101"} + ,{"name": "VRTrackedCameraError_InvalidFrameHeaderVersion","value": "102"} + ,{"name": "VRTrackedCameraError_OutOfHandles","value": "103"} + ,{"name": "VRTrackedCameraError_IPCFailure","value": "104"} + ,{"name": "VRTrackedCameraError_NotSupportedForThisDevice","value": "105"} + ,{"name": "VRTrackedCameraError_SharedMemoryFailure","value": "106"} + ,{"name": "VRTrackedCameraError_FrameBufferingFailure","value": "107"} + ,{"name": "VRTrackedCameraError_StreamSetupFailure","value": "108"} + ,{"name": "VRTrackedCameraError_InvalidGLTextureId","value": "109"} + ,{"name": "VRTrackedCameraError_InvalidSharedTextureHandle","value": "110"} + ,{"name": "VRTrackedCameraError_FailedToGetGLTextureId","value": "111"} + ,{"name": "VRTrackedCameraError_SharedTextureFailure","value": "112"} + ,{"name": "VRTrackedCameraError_NoFrameAvailable","value": "113"} + ,{"name": "VRTrackedCameraError_InvalidArgument","value": "114"} + ,{"name": "VRTrackedCameraError_InvalidFrameBufferSize","value": "115"} +]} +, {"enumname": "vr::EVRTrackedCameraFrameType","values": [ + {"name": "VRTrackedCameraFrameType_Distorted","value": "0"} + ,{"name": "VRTrackedCameraFrameType_Undistorted","value": "1"} + ,{"name": "VRTrackedCameraFrameType_MaximumUndistorted","value": "2"} + ,{"name": "MAX_CAMERA_FRAME_TYPES","value": "3"} +]} +, {"enumname": "vr::EVRApplicationError","values": [ + {"name": "VRApplicationError_None","value": "0"} + ,{"name": "VRApplicationError_AppKeyAlreadyExists","value": "100"} + ,{"name": "VRApplicationError_NoManifest","value": "101"} + ,{"name": "VRApplicationError_NoApplication","value": "102"} + ,{"name": "VRApplicationError_InvalidIndex","value": "103"} + ,{"name": "VRApplicationError_UnknownApplication","value": "104"} + ,{"name": "VRApplicationError_IPCFailed","value": "105"} + ,{"name": "VRApplicationError_ApplicationAlreadyRunning","value": "106"} + ,{"name": "VRApplicationError_InvalidManifest","value": "107"} + ,{"name": "VRApplicationError_InvalidApplication","value": "108"} + ,{"name": "VRApplicationError_LaunchFailed","value": "109"} + ,{"name": "VRApplicationError_ApplicationAlreadyStarting","value": "110"} + ,{"name": "VRApplicationError_LaunchInProgress","value": "111"} + ,{"name": "VRApplicationError_OldApplicationQuitting","value": "112"} + ,{"name": "VRApplicationError_TransitionAborted","value": "113"} + ,{"name": "VRApplicationError_IsTemplate","value": "114"} + ,{"name": "VRApplicationError_BufferTooSmall","value": "200"} + ,{"name": "VRApplicationError_PropertyNotSet","value": "201"} + ,{"name": "VRApplicationError_UnknownProperty","value": "202"} + ,{"name": "VRApplicationError_InvalidParameter","value": "203"} +]} +, {"enumname": "vr::EVRApplicationProperty","values": [ + {"name": "VRApplicationProperty_Name_String","value": "0"} + ,{"name": "VRApplicationProperty_LaunchType_String","value": "11"} + ,{"name": "VRApplicationProperty_WorkingDirectory_String","value": "12"} + ,{"name": "VRApplicationProperty_BinaryPath_String","value": "13"} + ,{"name": "VRApplicationProperty_Arguments_String","value": "14"} + ,{"name": "VRApplicationProperty_URL_String","value": "15"} + ,{"name": "VRApplicationProperty_Description_String","value": "50"} + ,{"name": "VRApplicationProperty_NewsURL_String","value": "51"} + ,{"name": "VRApplicationProperty_ImagePath_String","value": "52"} + ,{"name": "VRApplicationProperty_Source_String","value": "53"} + ,{"name": "VRApplicationProperty_IsDashboardOverlay_Bool","value": "60"} + ,{"name": "VRApplicationProperty_IsTemplate_Bool","value": "61"} + ,{"name": "VRApplicationProperty_IsInstanced_Bool","value": "62"} + ,{"name": "VRApplicationProperty_IsInternal_Bool","value": "63"} + ,{"name": "VRApplicationProperty_LastLaunchTime_Uint64","value": "70"} +]} +, {"enumname": "vr::EVRApplicationTransitionState","values": [ + {"name": "VRApplicationTransition_None","value": "0"} + ,{"name": "VRApplicationTransition_OldAppQuitSent","value": "10"} + ,{"name": "VRApplicationTransition_WaitingForExternalLaunch","value": "11"} + ,{"name": "VRApplicationTransition_NewAppLaunched","value": "20"} +]} +, {"enumname": "vr::ChaperoneCalibrationState","values": [ + {"name": "ChaperoneCalibrationState_OK","value": "1"} + ,{"name": "ChaperoneCalibrationState_Warning","value": "100"} + ,{"name": "ChaperoneCalibrationState_Warning_BaseStationMayHaveMoved","value": "101"} + ,{"name": "ChaperoneCalibrationState_Warning_BaseStationRemoved","value": "102"} + ,{"name": "ChaperoneCalibrationState_Warning_SeatedBoundsInvalid","value": "103"} + ,{"name": "ChaperoneCalibrationState_Error","value": "200"} + ,{"name": "ChaperoneCalibrationState_Error_BaseStationUninitialized","value": "201"} + ,{"name": "ChaperoneCalibrationState_Error_BaseStationConflict","value": "202"} + ,{"name": "ChaperoneCalibrationState_Error_PlayAreaInvalid","value": "203"} + ,{"name": "ChaperoneCalibrationState_Error_CollisionBoundsInvalid","value": "204"} +]} +, {"enumname": "vr::EChaperoneConfigFile","values": [ + {"name": "EChaperoneConfigFile_Live","value": "1"} + ,{"name": "EChaperoneConfigFile_Temp","value": "2"} +]} +, {"enumname": "vr::EChaperoneImportFlags","values": [ + {"name": "EChaperoneImport_BoundsOnly","value": "1"} +]} +, {"enumname": "vr::EVRCompositorError","values": [ + {"name": "VRCompositorError_None","value": "0"} + ,{"name": "VRCompositorError_RequestFailed","value": "1"} + ,{"name": "VRCompositorError_IncompatibleVersion","value": "100"} + ,{"name": "VRCompositorError_DoNotHaveFocus","value": "101"} + ,{"name": "VRCompositorError_InvalidTexture","value": "102"} + ,{"name": "VRCompositorError_IsNotSceneApplication","value": "103"} + ,{"name": "VRCompositorError_TextureIsOnWrongDevice","value": "104"} + ,{"name": "VRCompositorError_TextureUsesUnsupportedFormat","value": "105"} + ,{"name": "VRCompositorError_SharedTexturesNotSupported","value": "106"} + ,{"name": "VRCompositorError_IndexOutOfRange","value": "107"} + ,{"name": "VRCompositorError_AlreadySubmitted","value": "108"} +]} +, {"enumname": "vr::VROverlayInputMethod","values": [ + {"name": "VROverlayInputMethod_None","value": "0"} + ,{"name": "VROverlayInputMethod_Mouse","value": "1"} +]} +, {"enumname": "vr::VROverlayTransformType","values": [ + {"name": "VROverlayTransform_Absolute","value": "0"} + ,{"name": "VROverlayTransform_TrackedDeviceRelative","value": "1"} + ,{"name": "VROverlayTransform_SystemOverlay","value": "2"} + ,{"name": "VROverlayTransform_TrackedComponent","value": "3"} +]} +, {"enumname": "vr::VROverlayFlags","values": [ + {"name": "VROverlayFlags_None","value": "0"} + ,{"name": "VROverlayFlags_Curved","value": "1"} + ,{"name": "VROverlayFlags_RGSS4X","value": "2"} + ,{"name": "VROverlayFlags_NoDashboardTab","value": "3"} + ,{"name": "VROverlayFlags_AcceptsGamepadEvents","value": "4"} + ,{"name": "VROverlayFlags_ShowGamepadFocus","value": "5"} + ,{"name": "VROverlayFlags_SendVRScrollEvents","value": "6"} + ,{"name": "VROverlayFlags_SendVRTouchpadEvents","value": "7"} + ,{"name": "VROverlayFlags_ShowTouchPadScrollWheel","value": "8"} + ,{"name": "VROverlayFlags_TransferOwnershipToInternalProcess","value": "9"} + ,{"name": "VROverlayFlags_SideBySide_Parallel","value": "10"} + ,{"name": "VROverlayFlags_SideBySide_Crossed","value": "11"} + ,{"name": "VROverlayFlags_Panorama","value": "12"} + ,{"name": "VROverlayFlags_StereoPanorama","value": "13"} + ,{"name": "VROverlayFlags_SortWithNonSceneOverlays","value": "14"} + ,{"name": "VROverlayFlags_VisibleInDashboard","value": "15"} +]} +, {"enumname": "vr::VRMessageOverlayResponse","values": [ + {"name": "VRMessageOverlayResponse_ButtonPress_0","value": "0"} + ,{"name": "VRMessageOverlayResponse_ButtonPress_1","value": "1"} + ,{"name": "VRMessageOverlayResponse_ButtonPress_2","value": "2"} + ,{"name": "VRMessageOverlayResponse_ButtonPress_3","value": "3"} + ,{"name": "VRMessageOverlayResponse_CouldntFindSystemOverlay","value": "4"} + ,{"name": "VRMessageOverlayResponse_CouldntFindOrCreateClientOverlay","value": "5"} + ,{"name": "VRMessageOverlayResponse_ApplicationQuit","value": "6"} +]} +, {"enumname": "vr::EGamepadTextInputMode","values": [ + {"name": "k_EGamepadTextInputModeNormal","value": "0"} + ,{"name": "k_EGamepadTextInputModePassword","value": "1"} + ,{"name": "k_EGamepadTextInputModeSubmit","value": "2"} +]} +, {"enumname": "vr::EGamepadTextInputLineMode","values": [ + {"name": "k_EGamepadTextInputLineModeSingleLine","value": "0"} + ,{"name": "k_EGamepadTextInputLineModeMultipleLines","value": "1"} +]} +, {"enumname": "vr::EOverlayDirection","values": [ + {"name": "OverlayDirection_Up","value": "0"} + ,{"name": "OverlayDirection_Down","value": "1"} + ,{"name": "OverlayDirection_Left","value": "2"} + ,{"name": "OverlayDirection_Right","value": "3"} + ,{"name": "OverlayDirection_Count","value": "4"} +]} +, {"enumname": "vr::EVROverlayIntersectionMaskPrimitiveType","values": [ + {"name": "OverlayIntersectionPrimitiveType_Rectangle","value": "0"} + ,{"name": "OverlayIntersectionPrimitiveType_Circle","value": "1"} +]} +, {"enumname": "vr::EVRRenderModelError","values": [ + {"name": "VRRenderModelError_None","value": "0"} + ,{"name": "VRRenderModelError_Loading","value": "100"} + ,{"name": "VRRenderModelError_NotSupported","value": "200"} + ,{"name": "VRRenderModelError_InvalidArg","value": "300"} + ,{"name": "VRRenderModelError_InvalidModel","value": "301"} + ,{"name": "VRRenderModelError_NoShapes","value": "302"} + ,{"name": "VRRenderModelError_MultipleShapes","value": "303"} + ,{"name": "VRRenderModelError_TooManyVertices","value": "304"} + ,{"name": "VRRenderModelError_MultipleTextures","value": "305"} + ,{"name": "VRRenderModelError_BufferTooSmall","value": "306"} + ,{"name": "VRRenderModelError_NotEnoughNormals","value": "307"} + ,{"name": "VRRenderModelError_NotEnoughTexCoords","value": "308"} + ,{"name": "VRRenderModelError_InvalidTexture","value": "400"} +]} +, {"enumname": "vr::EVRComponentProperty","values": [ + {"name": "VRComponentProperty_IsStatic","value": "1"} + ,{"name": "VRComponentProperty_IsVisible","value": "2"} + ,{"name": "VRComponentProperty_IsTouched","value": "4"} + ,{"name": "VRComponentProperty_IsPressed","value": "8"} + ,{"name": "VRComponentProperty_IsScrolled","value": "16"} +]} +, {"enumname": "vr::EVRNotificationType","values": [ + {"name": "EVRNotificationType_Transient","value": "0"} + ,{"name": "EVRNotificationType_Persistent","value": "1"} + ,{"name": "EVRNotificationType_Transient_SystemWithUserValue","value": "2"} +]} +, {"enumname": "vr::EVRNotificationStyle","values": [ + {"name": "EVRNotificationStyle_None","value": "0"} + ,{"name": "EVRNotificationStyle_Application","value": "100"} + ,{"name": "EVRNotificationStyle_Contact_Disabled","value": "200"} + ,{"name": "EVRNotificationStyle_Contact_Enabled","value": "201"} + ,{"name": "EVRNotificationStyle_Contact_Active","value": "202"} +]} +, {"enumname": "vr::EVRSettingsError","values": [ + {"name": "VRSettingsError_None","value": "0"} + ,{"name": "VRSettingsError_IPCFailed","value": "1"} + ,{"name": "VRSettingsError_WriteFailed","value": "2"} + ,{"name": "VRSettingsError_ReadFailed","value": "3"} + ,{"name": "VRSettingsError_JsonParseFailed","value": "4"} + ,{"name": "VRSettingsError_UnsetSettingHasNoDefault","value": "5"} +]} +, {"enumname": "vr::EVRScreenshotError","values": [ + {"name": "VRScreenshotError_None","value": "0"} + ,{"name": "VRScreenshotError_RequestFailed","value": "1"} + ,{"name": "VRScreenshotError_IncompatibleVersion","value": "100"} + ,{"name": "VRScreenshotError_NotFound","value": "101"} + ,{"name": "VRScreenshotError_BufferTooSmall","value": "102"} + ,{"name": "VRScreenshotError_ScreenshotAlreadyInProgress","value": "108"} +]} +], +"consts":[{ + "constname": "k_nDriverNone","consttype": "const uint32_t", "constval": "4294967295"} +,{ + "constname": "k_unMaxDriverDebugResponseSize","consttype": "const uint32_t", "constval": "32768"} +,{ + "constname": "k_unTrackedDeviceIndex_Hmd","consttype": "const uint32_t", "constval": "0"} +,{ + "constname": "k_unMaxTrackedDeviceCount","consttype": "const uint32_t", "constval": "16"} +,{ + "constname": "k_unTrackedDeviceIndexOther","consttype": "const uint32_t", "constval": "4294967294"} +,{ + "constname": "k_unTrackedDeviceIndexInvalid","consttype": "const uint32_t", "constval": "4294967295"} +,{ + "constname": "k_ulInvalidPropertyContainer","consttype": "const PropertyContainerHandle_t", "constval": "0"} +,{ + "constname": "k_unInvalidPropertyTag","consttype": "const PropertyTypeTag_t", "constval": "0"} +,{ + "constname": "k_unFloatPropertyTag","consttype": "const PropertyTypeTag_t", "constval": "1"} +,{ + "constname": "k_unInt32PropertyTag","consttype": "const PropertyTypeTag_t", "constval": "2"} +,{ + "constname": "k_unUint64PropertyTag","consttype": "const PropertyTypeTag_t", "constval": "3"} +,{ + "constname": "k_unBoolPropertyTag","consttype": "const PropertyTypeTag_t", "constval": "4"} +,{ + "constname": "k_unStringPropertyTag","consttype": "const PropertyTypeTag_t", "constval": "5"} +,{ + "constname": "k_unHmdMatrix34PropertyTag","consttype": "const PropertyTypeTag_t", "constval": "20"} +,{ + "constname": "k_unHmdMatrix44PropertyTag","consttype": "const PropertyTypeTag_t", "constval": "21"} +,{ + "constname": "k_unHmdVector3PropertyTag","consttype": "const PropertyTypeTag_t", "constval": "22"} +,{ + "constname": "k_unHmdVector4PropertyTag","consttype": "const PropertyTypeTag_t", "constval": "23"} +,{ + "constname": "k_unHiddenAreaPropertyTag","consttype": "const PropertyTypeTag_t", "constval": "30"} +,{ + "constname": "k_unOpenVRInternalReserved_Start","consttype": "const PropertyTypeTag_t", "constval": "1000"} +,{ + "constname": "k_unOpenVRInternalReserved_End","consttype": "const PropertyTypeTag_t", "constval": "10000"} +,{ + "constname": "k_unMaxPropertyStringSize","consttype": "const uint32_t", "constval": "32768"} +,{ + "constname": "k_unControllerStateAxisCount","consttype": "const uint32_t", "constval": "5"} +,{ + "constname": "k_ulOverlayHandleInvalid","consttype": "const VROverlayHandle_t", "constval": "0"} +,{ + "constname": "k_unScreenshotHandleInvalid","consttype": "const uint32_t", "constval": "0"} +,{ + "constname": "IVRSystem_Version","consttype": "const char *const", "constval": "IVRSystem_016"} +,{ + "constname": "IVRExtendedDisplay_Version","consttype": "const char *const", "constval": "IVRExtendedDisplay_001"} +,{ + "constname": "IVRTrackedCamera_Version","consttype": "const char *const", "constval": "IVRTrackedCamera_003"} +,{ + "constname": "k_unMaxApplicationKeyLength","consttype": "const uint32_t", "constval": "128"} +,{ + "constname": "k_pch_MimeType_HomeApp","consttype": "const char *const", "constval": "vr/home"} +,{ + "constname": "k_pch_MimeType_GameTheater","consttype": "const char *const", "constval": "vr/game_theater"} +,{ + "constname": "IVRApplications_Version","consttype": "const char *const", "constval": "IVRApplications_006"} +,{ + "constname": "IVRChaperone_Version","consttype": "const char *const", "constval": "IVRChaperone_003"} +,{ + "constname": "IVRChaperoneSetup_Version","consttype": "const char *const", "constval": "IVRChaperoneSetup_005"} +,{ + "constname": "IVRCompositor_Version","consttype": "const char *const", "constval": "IVRCompositor_020"} +,{ + "constname": "k_unVROverlayMaxKeyLength","consttype": "const uint32_t", "constval": "128"} +,{ + "constname": "k_unVROverlayMaxNameLength","consttype": "const uint32_t", "constval": "128"} +,{ + "constname": "k_unMaxOverlayCount","consttype": "const uint32_t", "constval": "64"} +,{ + "constname": "k_unMaxOverlayIntersectionMaskPrimitivesCount","consttype": "const uint32_t", "constval": "32"} +,{ + "constname": "IVROverlay_Version","consttype": "const char *const", "constval": "IVROverlay_016"} +,{ + "constname": "k_pch_Controller_Component_GDC2015","consttype": "const char *const", "constval": "gdc2015"} +,{ + "constname": "k_pch_Controller_Component_Base","consttype": "const char *const", "constval": "base"} +,{ + "constname": "k_pch_Controller_Component_Tip","consttype": "const char *const", "constval": "tip"} +,{ + "constname": "k_pch_Controller_Component_HandGrip","consttype": "const char *const", "constval": "handgrip"} +,{ + "constname": "k_pch_Controller_Component_Status","consttype": "const char *const", "constval": "status"} +,{ + "constname": "IVRRenderModels_Version","consttype": "const char *const", "constval": "IVRRenderModels_005"} +,{ + "constname": "k_unNotificationTextMaxSize","consttype": "const uint32_t", "constval": "256"} +,{ + "constname": "IVRNotifications_Version","consttype": "const char *const", "constval": "IVRNotifications_002"} +,{ + "constname": "k_unMaxSettingsKeyLength","consttype": "const uint32_t", "constval": "128"} +,{ + "constname": "IVRSettings_Version","consttype": "const char *const", "constval": "IVRSettings_002"} +,{ + "constname": "k_pch_SteamVR_Section","consttype": "const char *const", "constval": "steamvr"} +,{ + "constname": "k_pch_SteamVR_RequireHmd_String","consttype": "const char *const", "constval": "requireHmd"} +,{ + "constname": "k_pch_SteamVR_ForcedDriverKey_String","consttype": "const char *const", "constval": "forcedDriver"} +,{ + "constname": "k_pch_SteamVR_ForcedHmdKey_String","consttype": "const char *const", "constval": "forcedHmd"} +,{ + "constname": "k_pch_SteamVR_DisplayDebug_Bool","consttype": "const char *const", "constval": "displayDebug"} +,{ + "constname": "k_pch_SteamVR_DebugProcessPipe_String","consttype": "const char *const", "constval": "debugProcessPipe"} +,{ + "constname": "k_pch_SteamVR_DisplayDebugX_Int32","consttype": "const char *const", "constval": "displayDebugX"} +,{ + "constname": "k_pch_SteamVR_DisplayDebugY_Int32","consttype": "const char *const", "constval": "displayDebugY"} +,{ + "constname": "k_pch_SteamVR_SendSystemButtonToAllApps_Bool","consttype": "const char *const", "constval": "sendSystemButtonToAllApps"} +,{ + "constname": "k_pch_SteamVR_LogLevel_Int32","consttype": "const char *const", "constval": "loglevel"} +,{ + "constname": "k_pch_SteamVR_IPD_Float","consttype": "const char *const", "constval": "ipd"} +,{ + "constname": "k_pch_SteamVR_Background_String","consttype": "const char *const", "constval": "background"} +,{ + "constname": "k_pch_SteamVR_BackgroundUseDomeProjection_Bool","consttype": "const char *const", "constval": "backgroundUseDomeProjection"} +,{ + "constname": "k_pch_SteamVR_BackgroundCameraHeight_Float","consttype": "const char *const", "constval": "backgroundCameraHeight"} +,{ + "constname": "k_pch_SteamVR_BackgroundDomeRadius_Float","consttype": "const char *const", "constval": "backgroundDomeRadius"} +,{ + "constname": "k_pch_SteamVR_GridColor_String","consttype": "const char *const", "constval": "gridColor"} +,{ + "constname": "k_pch_SteamVR_PlayAreaColor_String","consttype": "const char *const", "constval": "playAreaColor"} +,{ + "constname": "k_pch_SteamVR_ShowStage_Bool","consttype": "const char *const", "constval": "showStage"} +,{ + "constname": "k_pch_SteamVR_ActivateMultipleDrivers_Bool","consttype": "const char *const", "constval": "activateMultipleDrivers"} +,{ + "constname": "k_pch_SteamVR_DirectMode_Bool","consttype": "const char *const", "constval": "directMode"} +,{ + "constname": "k_pch_SteamVR_DirectModeEdidVid_Int32","consttype": "const char *const", "constval": "directModeEdidVid"} +,{ + "constname": "k_pch_SteamVR_DirectModeEdidPid_Int32","consttype": "const char *const", "constval": "directModeEdidPid"} +,{ + "constname": "k_pch_SteamVR_UsingSpeakers_Bool","consttype": "const char *const", "constval": "usingSpeakers"} +,{ + "constname": "k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float","consttype": "const char *const", "constval": "speakersForwardYawOffsetDegrees"} +,{ + "constname": "k_pch_SteamVR_BaseStationPowerManagement_Bool","consttype": "const char *const", "constval": "basestationPowerManagement"} +,{ + "constname": "k_pch_SteamVR_NeverKillProcesses_Bool","consttype": "const char *const", "constval": "neverKillProcesses"} +,{ + "constname": "k_pch_SteamVR_SupersampleScale_Float","consttype": "const char *const", "constval": "supersampleScale"} +,{ + "constname": "k_pch_SteamVR_AllowAsyncReprojection_Bool","consttype": "const char *const", "constval": "allowAsyncReprojection"} +,{ + "constname": "k_pch_SteamVR_AllowReprojection_Bool","consttype": "const char *const", "constval": "allowInterleavedReprojection"} +,{ + "constname": "k_pch_SteamVR_ForceReprojection_Bool","consttype": "const char *const", "constval": "forceReprojection"} +,{ + "constname": "k_pch_SteamVR_ForceFadeOnBadTracking_Bool","consttype": "const char *const", "constval": "forceFadeOnBadTracking"} +,{ + "constname": "k_pch_SteamVR_DefaultMirrorView_Int32","consttype": "const char *const", "constval": "defaultMirrorView"} +,{ + "constname": "k_pch_SteamVR_ShowMirrorView_Bool","consttype": "const char *const", "constval": "showMirrorView"} +,{ + "constname": "k_pch_SteamVR_MirrorViewGeometry_String","consttype": "const char *const", "constval": "mirrorViewGeometry"} +,{ + "constname": "k_pch_SteamVR_StartMonitorFromAppLaunch","consttype": "const char *const", "constval": "startMonitorFromAppLaunch"} +,{ + "constname": "k_pch_SteamVR_StartCompositorFromAppLaunch_Bool","consttype": "const char *const", "constval": "startCompositorFromAppLaunch"} +,{ + "constname": "k_pch_SteamVR_StartDashboardFromAppLaunch_Bool","consttype": "const char *const", "constval": "startDashboardFromAppLaunch"} +,{ + "constname": "k_pch_SteamVR_StartOverlayAppsFromDashboard_Bool","consttype": "const char *const", "constval": "startOverlayAppsFromDashboard"} +,{ + "constname": "k_pch_SteamVR_EnableHomeApp","consttype": "const char *const", "constval": "enableHomeApp"} +,{ + "constname": "k_pch_SteamVR_CycleBackgroundImageTimeSec_Int32","consttype": "const char *const", "constval": "CycleBackgroundImageTimeSec"} +,{ + "constname": "k_pch_SteamVR_RetailDemo_Bool","consttype": "const char *const", "constval": "retailDemo"} +,{ + "constname": "k_pch_SteamVR_IpdOffset_Float","consttype": "const char *const", "constval": "ipdOffset"} +,{ + "constname": "k_pch_SteamVR_AllowSupersampleFiltering_Bool","consttype": "const char *const", "constval": "allowSupersampleFiltering"} +,{ + "constname": "k_pch_Lighthouse_Section","consttype": "const char *const", "constval": "driver_lighthouse"} +,{ + "constname": "k_pch_Lighthouse_DisableIMU_Bool","consttype": "const char *const", "constval": "disableimu"} +,{ + "constname": "k_pch_Lighthouse_UseDisambiguation_String","consttype": "const char *const", "constval": "usedisambiguation"} +,{ + "constname": "k_pch_Lighthouse_DisambiguationDebug_Int32","consttype": "const char *const", "constval": "disambiguationdebug"} +,{ + "constname": "k_pch_Lighthouse_PrimaryBasestation_Int32","consttype": "const char *const", "constval": "primarybasestation"} +,{ + "constname": "k_pch_Lighthouse_DBHistory_Bool","consttype": "const char *const", "constval": "dbhistory"} +,{ + "constname": "k_pch_Null_Section","consttype": "const char *const", "constval": "driver_null"} +,{ + "constname": "k_pch_Null_SerialNumber_String","consttype": "const char *const", "constval": "serialNumber"} +,{ + "constname": "k_pch_Null_ModelNumber_String","consttype": "const char *const", "constval": "modelNumber"} +,{ + "constname": "k_pch_Null_WindowX_Int32","consttype": "const char *const", "constval": "windowX"} +,{ + "constname": "k_pch_Null_WindowY_Int32","consttype": "const char *const", "constval": "windowY"} +,{ + "constname": "k_pch_Null_WindowWidth_Int32","consttype": "const char *const", "constval": "windowWidth"} +,{ + "constname": "k_pch_Null_WindowHeight_Int32","consttype": "const char *const", "constval": "windowHeight"} +,{ + "constname": "k_pch_Null_RenderWidth_Int32","consttype": "const char *const", "constval": "renderWidth"} +,{ + "constname": "k_pch_Null_RenderHeight_Int32","consttype": "const char *const", "constval": "renderHeight"} +,{ + "constname": "k_pch_Null_SecondsFromVsyncToPhotons_Float","consttype": "const char *const", "constval": "secondsFromVsyncToPhotons"} +,{ + "constname": "k_pch_Null_DisplayFrequency_Float","consttype": "const char *const", "constval": "displayFrequency"} +,{ + "constname": "k_pch_UserInterface_Section","consttype": "const char *const", "constval": "userinterface"} +,{ + "constname": "k_pch_UserInterface_StatusAlwaysOnTop_Bool","consttype": "const char *const", "constval": "StatusAlwaysOnTop"} +,{ + "constname": "k_pch_UserInterface_MinimizeToTray_Bool","consttype": "const char *const", "constval": "MinimizeToTray"} +,{ + "constname": "k_pch_UserInterface_Screenshots_Bool","consttype": "const char *const", "constval": "screenshots"} +,{ + "constname": "k_pch_UserInterface_ScreenshotType_Int","consttype": "const char *const", "constval": "screenshotType"} +,{ + "constname": "k_pch_Notifications_Section","consttype": "const char *const", "constval": "notifications"} +,{ + "constname": "k_pch_Notifications_DoNotDisturb_Bool","consttype": "const char *const", "constval": "DoNotDisturb"} +,{ + "constname": "k_pch_Keyboard_Section","consttype": "const char *const", "constval": "keyboard"} +,{ + "constname": "k_pch_Keyboard_TutorialCompletions","consttype": "const char *const", "constval": "TutorialCompletions"} +,{ + "constname": "k_pch_Keyboard_ScaleX","consttype": "const char *const", "constval": "ScaleX"} +,{ + "constname": "k_pch_Keyboard_ScaleY","consttype": "const char *const", "constval": "ScaleY"} +,{ + "constname": "k_pch_Keyboard_OffsetLeftX","consttype": "const char *const", "constval": "OffsetLeftX"} +,{ + "constname": "k_pch_Keyboard_OffsetRightX","consttype": "const char *const", "constval": "OffsetRightX"} +,{ + "constname": "k_pch_Keyboard_OffsetY","consttype": "const char *const", "constval": "OffsetY"} +,{ + "constname": "k_pch_Keyboard_Smoothing","consttype": "const char *const", "constval": "Smoothing"} +,{ + "constname": "k_pch_Perf_Section","consttype": "const char *const", "constval": "perfcheck"} +,{ + "constname": "k_pch_Perf_HeuristicActive_Bool","consttype": "const char *const", "constval": "heuristicActive"} +,{ + "constname": "k_pch_Perf_NotifyInHMD_Bool","consttype": "const char *const", "constval": "warnInHMD"} +,{ + "constname": "k_pch_Perf_NotifyOnlyOnce_Bool","consttype": "const char *const", "constval": "warnOnlyOnce"} +,{ + "constname": "k_pch_Perf_AllowTimingStore_Bool","consttype": "const char *const", "constval": "allowTimingStore"} +,{ + "constname": "k_pch_Perf_SaveTimingsOnExit_Bool","consttype": "const char *const", "constval": "saveTimingsOnExit"} +,{ + "constname": "k_pch_Perf_TestData_Float","consttype": "const char *const", "constval": "perfTestData"} +,{ + "constname": "k_pch_Perf_LinuxGPUProfiling_Bool","consttype": "const char *const", "constval": "linuxGPUProfiling"} +,{ + "constname": "k_pch_CollisionBounds_Section","consttype": "const char *const", "constval": "collisionBounds"} +,{ + "constname": "k_pch_CollisionBounds_Style_Int32","consttype": "const char *const", "constval": "CollisionBoundsStyle"} +,{ + "constname": "k_pch_CollisionBounds_GroundPerimeterOn_Bool","consttype": "const char *const", "constval": "CollisionBoundsGroundPerimeterOn"} +,{ + "constname": "k_pch_CollisionBounds_CenterMarkerOn_Bool","consttype": "const char *const", "constval": "CollisionBoundsCenterMarkerOn"} +,{ + "constname": "k_pch_CollisionBounds_PlaySpaceOn_Bool","consttype": "const char *const", "constval": "CollisionBoundsPlaySpaceOn"} +,{ + "constname": "k_pch_CollisionBounds_FadeDistance_Float","consttype": "const char *const", "constval": "CollisionBoundsFadeDistance"} +,{ + "constname": "k_pch_CollisionBounds_ColorGammaR_Int32","consttype": "const char *const", "constval": "CollisionBoundsColorGammaR"} +,{ + "constname": "k_pch_CollisionBounds_ColorGammaG_Int32","consttype": "const char *const", "constval": "CollisionBoundsColorGammaG"} +,{ + "constname": "k_pch_CollisionBounds_ColorGammaB_Int32","consttype": "const char *const", "constval": "CollisionBoundsColorGammaB"} +,{ + "constname": "k_pch_CollisionBounds_ColorGammaA_Int32","consttype": "const char *const", "constval": "CollisionBoundsColorGammaA"} +,{ + "constname": "k_pch_Camera_Section","consttype": "const char *const", "constval": "camera"} +,{ + "constname": "k_pch_Camera_EnableCamera_Bool","consttype": "const char *const", "constval": "enableCamera"} +,{ + "constname": "k_pch_Camera_EnableCameraInDashboard_Bool","consttype": "const char *const", "constval": "enableCameraInDashboard"} +,{ + "constname": "k_pch_Camera_EnableCameraForCollisionBounds_Bool","consttype": "const char *const", "constval": "enableCameraForCollisionBounds"} +,{ + "constname": "k_pch_Camera_EnableCameraForRoomView_Bool","consttype": "const char *const", "constval": "enableCameraForRoomView"} +,{ + "constname": "k_pch_Camera_BoundsColorGammaR_Int32","consttype": "const char *const", "constval": "cameraBoundsColorGammaR"} +,{ + "constname": "k_pch_Camera_BoundsColorGammaG_Int32","consttype": "const char *const", "constval": "cameraBoundsColorGammaG"} +,{ + "constname": "k_pch_Camera_BoundsColorGammaB_Int32","consttype": "const char *const", "constval": "cameraBoundsColorGammaB"} +,{ + "constname": "k_pch_Camera_BoundsColorGammaA_Int32","consttype": "const char *const", "constval": "cameraBoundsColorGammaA"} +,{ + "constname": "k_pch_Camera_BoundsStrength_Int32","consttype": "const char *const", "constval": "cameraBoundsStrength"} +,{ + "constname": "k_pch_audio_Section","consttype": "const char *const", "constval": "audio"} +,{ + "constname": "k_pch_audio_OnPlaybackDevice_String","consttype": "const char *const", "constval": "onPlaybackDevice"} +,{ + "constname": "k_pch_audio_OnRecordDevice_String","consttype": "const char *const", "constval": "onRecordDevice"} +,{ + "constname": "k_pch_audio_OnPlaybackMirrorDevice_String","consttype": "const char *const", "constval": "onPlaybackMirrorDevice"} +,{ + "constname": "k_pch_audio_OffPlaybackDevice_String","consttype": "const char *const", "constval": "offPlaybackDevice"} +,{ + "constname": "k_pch_audio_OffRecordDevice_String","consttype": "const char *const", "constval": "offRecordDevice"} +,{ + "constname": "k_pch_audio_VIVEHDMIGain","consttype": "const char *const", "constval": "viveHDMIGain"} +,{ + "constname": "k_pch_Power_Section","consttype": "const char *const", "constval": "power"} +,{ + "constname": "k_pch_Power_PowerOffOnExit_Bool","consttype": "const char *const", "constval": "powerOffOnExit"} +,{ + "constname": "k_pch_Power_TurnOffScreensTimeout_Float","consttype": "const char *const", "constval": "turnOffScreensTimeout"} +,{ + "constname": "k_pch_Power_TurnOffControllersTimeout_Float","consttype": "const char *const", "constval": "turnOffControllersTimeout"} +,{ + "constname": "k_pch_Power_ReturnToWatchdogTimeout_Float","consttype": "const char *const", "constval": "returnToWatchdogTimeout"} +,{ + "constname": "k_pch_Power_AutoLaunchSteamVROnButtonPress","consttype": "const char *const", "constval": "autoLaunchSteamVROnButtonPress"} +,{ + "constname": "k_pch_Dashboard_Section","consttype": "const char *const", "constval": "dashboard"} +,{ + "constname": "k_pch_Dashboard_EnableDashboard_Bool","consttype": "const char *const", "constval": "enableDashboard"} +,{ + "constname": "k_pch_Dashboard_ArcadeMode_Bool","consttype": "const char *const", "constval": "arcadeMode"} +,{ + "constname": "k_pch_modelskin_Section","consttype": "const char *const", "constval": "modelskins"} +,{ + "constname": "k_pch_Driver_Enable_Bool","consttype": "const char *const", "constval": "enable"} +,{ + "constname": "IVRScreenshots_Version","consttype": "const char *const", "constval": "IVRScreenshots_001"} +,{ + "constname": "IVRResources_Version","consttype": "const char *const", "constval": "IVRResources_001"} +,{ + "constname": "IVRDriverManager_Version","consttype": "const char *const", "constval": "IVRDriverManager_001"} +], +"structs":[{"struct": "vr::HmdMatrix34_t","fields": [ +{ "fieldname": "m", "fieldtype": "float [3][4]"}]} +,{"struct": "vr::HmdMatrix44_t","fields": [ +{ "fieldname": "m", "fieldtype": "float [4][4]"}]} +,{"struct": "vr::HmdVector3_t","fields": [ +{ "fieldname": "v", "fieldtype": "float [3]"}]} +,{"struct": "vr::HmdVector4_t","fields": [ +{ "fieldname": "v", "fieldtype": "float [4]"}]} +,{"struct": "vr::HmdVector3d_t","fields": [ +{ "fieldname": "v", "fieldtype": "double [3]"}]} +,{"struct": "vr::HmdVector2_t","fields": [ +{ "fieldname": "v", "fieldtype": "float [2]"}]} +,{"struct": "vr::HmdQuaternion_t","fields": [ +{ "fieldname": "w", "fieldtype": "double"}, +{ "fieldname": "x", "fieldtype": "double"}, +{ "fieldname": "y", "fieldtype": "double"}, +{ "fieldname": "z", "fieldtype": "double"}]} +,{"struct": "vr::HmdColor_t","fields": [ +{ "fieldname": "r", "fieldtype": "float"}, +{ "fieldname": "g", "fieldtype": "float"}, +{ "fieldname": "b", "fieldtype": "float"}, +{ "fieldname": "a", "fieldtype": "float"}]} +,{"struct": "vr::HmdQuad_t","fields": [ +{ "fieldname": "vCorners", "fieldtype": "struct vr::HmdVector3_t [4]"}]} +,{"struct": "vr::HmdRect2_t","fields": [ +{ "fieldname": "vTopLeft", "fieldtype": "struct vr::HmdVector2_t"}, +{ "fieldname": "vBottomRight", "fieldtype": "struct vr::HmdVector2_t"}]} +,{"struct": "vr::DistortionCoordinates_t","fields": [ +{ "fieldname": "rfRed", "fieldtype": "float [2]"}, +{ "fieldname": "rfGreen", "fieldtype": "float [2]"}, +{ "fieldname": "rfBlue", "fieldtype": "float [2]"}]} +,{"struct": "vr::Texture_t","fields": [ +{ "fieldname": "handle", "fieldtype": "void *"}, +{ "fieldname": "eType", "fieldtype": "enum vr::ETextureType"}, +{ "fieldname": "eColorSpace", "fieldtype": "enum vr::EColorSpace"}]} +,{"struct": "vr::TrackedDevicePose_t","fields": [ +{ "fieldname": "mDeviceToAbsoluteTracking", "fieldtype": "struct vr::HmdMatrix34_t"}, +{ "fieldname": "vVelocity", "fieldtype": "struct vr::HmdVector3_t"}, +{ "fieldname": "vAngularVelocity", "fieldtype": "struct vr::HmdVector3_t"}, +{ "fieldname": "eTrackingResult", "fieldtype": "enum vr::ETrackingResult"}, +{ "fieldname": "bPoseIsValid", "fieldtype": "_Bool"}, +{ "fieldname": "bDeviceIsConnected", "fieldtype": "_Bool"}]} +,{"struct": "vr::VRTextureBounds_t","fields": [ +{ "fieldname": "uMin", "fieldtype": "float"}, +{ "fieldname": "vMin", "fieldtype": "float"}, +{ "fieldname": "uMax", "fieldtype": "float"}, +{ "fieldname": "vMax", "fieldtype": "float"}]} +,{"struct": "vr::VRVulkanTextureData_t","fields": [ +{ "fieldname": "m_nImage", "fieldtype": "uint64_t"}, +{ "fieldname": "m_pDevice", "fieldtype": "struct VkDevice_T *"}, +{ "fieldname": "m_pPhysicalDevice", "fieldtype": "struct VkPhysicalDevice_T *"}, +{ "fieldname": "m_pInstance", "fieldtype": "struct VkInstance_T *"}, +{ "fieldname": "m_pQueue", "fieldtype": "struct VkQueue_T *"}, +{ "fieldname": "m_nQueueFamilyIndex", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nWidth", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nHeight", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nFormat", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nSampleCount", "fieldtype": "uint32_t"}]} +,{"struct": "vr::D3D12TextureData_t","fields": [ +{ "fieldname": "m_pResource", "fieldtype": "struct ID3D12Resource *"}, +{ "fieldname": "m_pCommandQueue", "fieldtype": "struct ID3D12CommandQueue *"}, +{ "fieldname": "m_nNodeMask", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_Controller_t","fields": [ +{ "fieldname": "button", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_Mouse_t","fields": [ +{ "fieldname": "x", "fieldtype": "float"}, +{ "fieldname": "y", "fieldtype": "float"}, +{ "fieldname": "button", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_Scroll_t","fields": [ +{ "fieldname": "xdelta", "fieldtype": "float"}, +{ "fieldname": "ydelta", "fieldtype": "float"}, +{ "fieldname": "repeatCount", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_TouchPadMove_t","fields": [ +{ "fieldname": "bFingerDown", "fieldtype": "_Bool"}, +{ "fieldname": "flSecondsFingerDown", "fieldtype": "float"}, +{ "fieldname": "fValueXFirst", "fieldtype": "float"}, +{ "fieldname": "fValueYFirst", "fieldtype": "float"}, +{ "fieldname": "fValueXRaw", "fieldtype": "float"}, +{ "fieldname": "fValueYRaw", "fieldtype": "float"}]} +,{"struct": "vr::VREvent_Notification_t","fields": [ +{ "fieldname": "ulUserValue", "fieldtype": "uint64_t"}, +{ "fieldname": "notificationId", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_Process_t","fields": [ +{ "fieldname": "pid", "fieldtype": "uint32_t"}, +{ "fieldname": "oldPid", "fieldtype": "uint32_t"}, +{ "fieldname": "bForced", "fieldtype": "_Bool"}]} +,{"struct": "vr::VREvent_Overlay_t","fields": [ +{ "fieldname": "overlayHandle", "fieldtype": "uint64_t"}]} +,{"struct": "vr::VREvent_Status_t","fields": [ +{ "fieldname": "statusState", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_Keyboard_t","fields": [ +{ "fieldname": "cNewInput", "fieldtype": "char [8]"}, +{ "fieldname": "uUserValue", "fieldtype": "uint64_t"}]} +,{"struct": "vr::VREvent_Ipd_t","fields": [ +{ "fieldname": "ipdMeters", "fieldtype": "float"}]} +,{"struct": "vr::VREvent_Chaperone_t","fields": [ +{ "fieldname": "m_nPreviousUniverse", "fieldtype": "uint64_t"}, +{ "fieldname": "m_nCurrentUniverse", "fieldtype": "uint64_t"}]} +,{"struct": "vr::VREvent_Reserved_t","fields": [ +{ "fieldname": "reserved0", "fieldtype": "uint64_t"}, +{ "fieldname": "reserved1", "fieldtype": "uint64_t"}]} +,{"struct": "vr::VREvent_PerformanceTest_t","fields": [ +{ "fieldname": "m_nFidelityLevel", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_SeatedZeroPoseReset_t","fields": [ +{ "fieldname": "bResetBySystemMenu", "fieldtype": "_Bool"}]} +,{"struct": "vr::VREvent_Screenshot_t","fields": [ +{ "fieldname": "handle", "fieldtype": "uint32_t"}, +{ "fieldname": "type", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_ScreenshotProgress_t","fields": [ +{ "fieldname": "progress", "fieldtype": "float"}]} +,{"struct": "vr::VREvent_ApplicationLaunch_t","fields": [ +{ "fieldname": "pid", "fieldtype": "uint32_t"}, +{ "fieldname": "unArgsHandle", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_EditingCameraSurface_t","fields": [ +{ "fieldname": "overlayHandle", "fieldtype": "uint64_t"}, +{ "fieldname": "nVisualMode", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_MessageOverlay_t","fields": [ +{ "fieldname": "unVRMessageOverlayResponse", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VREvent_Property_t","fields": [ +{ "fieldname": "container", "fieldtype": "PropertyContainerHandle_t"}, +{ "fieldname": "prop", "fieldtype": "enum vr::ETrackedDeviceProperty"}]} +,{"struct": "vr::(anonymous)","fields": [ +{ "fieldname": "reserved", "fieldtype": "struct vr::VREvent_Reserved_t"}, +{ "fieldname": "controller", "fieldtype": "struct vr::VREvent_Controller_t"}, +{ "fieldname": "mouse", "fieldtype": "struct vr::VREvent_Mouse_t"}, +{ "fieldname": "scroll", "fieldtype": "struct vr::VREvent_Scroll_t"}, +{ "fieldname": "process", "fieldtype": "struct vr::VREvent_Process_t"}, +{ "fieldname": "notification", "fieldtype": "struct vr::VREvent_Notification_t"}, +{ "fieldname": "overlay", "fieldtype": "struct vr::VREvent_Overlay_t"}, +{ "fieldname": "status", "fieldtype": "struct vr::VREvent_Status_t"}, +{ "fieldname": "keyboard", "fieldtype": "struct vr::VREvent_Keyboard_t"}, +{ "fieldname": "ipd", "fieldtype": "struct vr::VREvent_Ipd_t"}, +{ "fieldname": "chaperone", "fieldtype": "struct vr::VREvent_Chaperone_t"}, +{ "fieldname": "performanceTest", "fieldtype": "struct vr::VREvent_PerformanceTest_t"}, +{ "fieldname": "touchPadMove", "fieldtype": "struct vr::VREvent_TouchPadMove_t"}, +{ "fieldname": "seatedZeroPoseReset", "fieldtype": "struct vr::VREvent_SeatedZeroPoseReset_t"}, +{ "fieldname": "screenshot", "fieldtype": "struct vr::VREvent_Screenshot_t"}, +{ "fieldname": "screenshotProgress", "fieldtype": "struct vr::VREvent_ScreenshotProgress_t"}, +{ "fieldname": "applicationLaunch", "fieldtype": "struct vr::VREvent_ApplicationLaunch_t"}, +{ "fieldname": "cameraSurface", "fieldtype": "struct vr::VREvent_EditingCameraSurface_t"}, +{ "fieldname": "messageOverlay", "fieldtype": "struct vr::VREvent_MessageOverlay_t"}, +{ "fieldname": "property", "fieldtype": "struct vr::VREvent_Property_t"}]} +,{"struct": "vr::VREvent_t","fields": [ +{ "fieldname": "eventType", "fieldtype": "uint32_t"}, +{ "fieldname": "trackedDeviceIndex", "fieldtype": "TrackedDeviceIndex_t"}, +{ "fieldname": "eventAgeSeconds", "fieldtype": "float"}, +{ "fieldname": "data", "fieldtype": "VREvent_Data_t"}]} +,{"struct": "vr::HiddenAreaMesh_t","fields": [ +{ "fieldname": "pVertexData", "fieldtype": "const struct vr::HmdVector2_t *"}, +{ "fieldname": "unTriangleCount", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VRControllerAxis_t","fields": [ +{ "fieldname": "x", "fieldtype": "float"}, +{ "fieldname": "y", "fieldtype": "float"}]} +,{"struct": "vr::VRControllerState001_t","fields": [ +{ "fieldname": "unPacketNum", "fieldtype": "uint32_t"}, +{ "fieldname": "ulButtonPressed", "fieldtype": "uint64_t"}, +{ "fieldname": "ulButtonTouched", "fieldtype": "uint64_t"}, +{ "fieldname": "rAxis", "fieldtype": "struct vr::VRControllerAxis_t [5]"}]} +,{"struct": "vr::Compositor_OverlaySettings","fields": [ +{ "fieldname": "size", "fieldtype": "uint32_t"}, +{ "fieldname": "curved", "fieldtype": "_Bool"}, +{ "fieldname": "antialias", "fieldtype": "_Bool"}, +{ "fieldname": "scale", "fieldtype": "float"}, +{ "fieldname": "distance", "fieldtype": "float"}, +{ "fieldname": "alpha", "fieldtype": "float"}, +{ "fieldname": "uOffset", "fieldtype": "float"}, +{ "fieldname": "vOffset", "fieldtype": "float"}, +{ "fieldname": "uScale", "fieldtype": "float"}, +{ "fieldname": "vScale", "fieldtype": "float"}, +{ "fieldname": "gridDivs", "fieldtype": "float"}, +{ "fieldname": "gridWidth", "fieldtype": "float"}, +{ "fieldname": "gridScale", "fieldtype": "float"}, +{ "fieldname": "transform", "fieldtype": "struct vr::HmdMatrix44_t"}]} +,{"struct": "vr::CameraVideoStreamFrameHeader_t","fields": [ +{ "fieldname": "eFrameType", "fieldtype": "enum vr::EVRTrackedCameraFrameType"}, +{ "fieldname": "nWidth", "fieldtype": "uint32_t"}, +{ "fieldname": "nHeight", "fieldtype": "uint32_t"}, +{ "fieldname": "nBytesPerPixel", "fieldtype": "uint32_t"}, +{ "fieldname": "nFrameSequence", "fieldtype": "uint32_t"}, +{ "fieldname": "standingTrackedDevicePose", "fieldtype": "struct vr::TrackedDevicePose_t"}]} +,{"struct": "vr::AppOverrideKeys_t","fields": [ +{ "fieldname": "pchKey", "fieldtype": "const char *"}, +{ "fieldname": "pchValue", "fieldtype": "const char *"}]} +,{"struct": "vr::Compositor_FrameTiming","fields": [ +{ "fieldname": "m_nSize", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nFrameIndex", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumFramePresents", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumMisPresented", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumDroppedFrames", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nReprojectionFlags", "fieldtype": "uint32_t"}, +{ "fieldname": "m_flSystemTimeInSeconds", "fieldtype": "double"}, +{ "fieldname": "m_flPreSubmitGpuMs", "fieldtype": "float"}, +{ "fieldname": "m_flPostSubmitGpuMs", "fieldtype": "float"}, +{ "fieldname": "m_flTotalRenderGpuMs", "fieldtype": "float"}, +{ "fieldname": "m_flCompositorRenderGpuMs", "fieldtype": "float"}, +{ "fieldname": "m_flCompositorRenderCpuMs", "fieldtype": "float"}, +{ "fieldname": "m_flCompositorIdleCpuMs", "fieldtype": "float"}, +{ "fieldname": "m_flClientFrameIntervalMs", "fieldtype": "float"}, +{ "fieldname": "m_flPresentCallCpuMs", "fieldtype": "float"}, +{ "fieldname": "m_flWaitForPresentCpuMs", "fieldtype": "float"}, +{ "fieldname": "m_flSubmitFrameMs", "fieldtype": "float"}, +{ "fieldname": "m_flWaitGetPosesCalledMs", "fieldtype": "float"}, +{ "fieldname": "m_flNewPosesReadyMs", "fieldtype": "float"}, +{ "fieldname": "m_flNewFrameReadyMs", "fieldtype": "float"}, +{ "fieldname": "m_flCompositorUpdateStartMs", "fieldtype": "float"}, +{ "fieldname": "m_flCompositorUpdateEndMs", "fieldtype": "float"}, +{ "fieldname": "m_flCompositorRenderStartMs", "fieldtype": "float"}, +{ "fieldname": "m_HmdPose", "fieldtype": "vr::TrackedDevicePose_t"}]} +,{"struct": "vr::Compositor_CumulativeStats","fields": [ +{ "fieldname": "m_nPid", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumFramePresents", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumDroppedFrames", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumReprojectedFrames", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumFramePresentsOnStartup", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumDroppedFramesOnStartup", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumReprojectedFramesOnStartup", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumLoading", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumFramePresentsLoading", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumDroppedFramesLoading", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumReprojectedFramesLoading", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumTimedOut", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumFramePresentsTimedOut", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumDroppedFramesTimedOut", "fieldtype": "uint32_t"}, +{ "fieldname": "m_nNumReprojectedFramesTimedOut", "fieldtype": "uint32_t"}]} +,{"struct": "vr::VROverlayIntersectionParams_t","fields": [ +{ "fieldname": "vSource", "fieldtype": "struct vr::HmdVector3_t"}, +{ "fieldname": "vDirection", "fieldtype": "struct vr::HmdVector3_t"}, +{ "fieldname": "eOrigin", "fieldtype": "enum vr::ETrackingUniverseOrigin"}]} +,{"struct": "vr::VROverlayIntersectionResults_t","fields": [ +{ "fieldname": "vPoint", "fieldtype": "struct vr::HmdVector3_t"}, +{ "fieldname": "vNormal", "fieldtype": "struct vr::HmdVector3_t"}, +{ "fieldname": "vUVs", "fieldtype": "struct vr::HmdVector2_t"}, +{ "fieldname": "fDistance", "fieldtype": "float"}]} +,{"struct": "vr::IntersectionMaskRectangle_t","fields": [ +{ "fieldname": "m_flTopLeftX", "fieldtype": "float"}, +{ "fieldname": "m_flTopLeftY", "fieldtype": "float"}, +{ "fieldname": "m_flWidth", "fieldtype": "float"}, +{ "fieldname": "m_flHeight", "fieldtype": "float"}]} +,{"struct": "vr::IntersectionMaskCircle_t","fields": [ +{ "fieldname": "m_flCenterX", "fieldtype": "float"}, +{ "fieldname": "m_flCenterY", "fieldtype": "float"}, +{ "fieldname": "m_flRadius", "fieldtype": "float"}]} +,{"struct": "vr::(anonymous)","fields": [ +{ "fieldname": "m_Rectangle", "fieldtype": "struct vr::IntersectionMaskRectangle_t"}, +{ "fieldname": "m_Circle", "fieldtype": "struct vr::IntersectionMaskCircle_t"}]} +,{"struct": "vr::VROverlayIntersectionMaskPrimitive_t","fields": [ +{ "fieldname": "m_nPrimitiveType", "fieldtype": "enum vr::EVROverlayIntersectionMaskPrimitiveType"}, +{ "fieldname": "m_Primitive", "fieldtype": "VROverlayIntersectionMaskPrimitive_Data_t"}]} +,{"struct": "vr::RenderModel_ComponentState_t","fields": [ +{ "fieldname": "mTrackingToComponentRenderModel", "fieldtype": "struct vr::HmdMatrix34_t"}, +{ "fieldname": "mTrackingToComponentLocal", "fieldtype": "struct vr::HmdMatrix34_t"}, +{ "fieldname": "uProperties", "fieldtype": "VRComponentProperties"}]} +,{"struct": "vr::RenderModel_Vertex_t","fields": [ +{ "fieldname": "vPosition", "fieldtype": "struct vr::HmdVector3_t"}, +{ "fieldname": "vNormal", "fieldtype": "struct vr::HmdVector3_t"}, +{ "fieldname": "rfTextureCoord", "fieldtype": "float [2]"}]} +,{"struct": "vr::RenderModel_TextureMap_t","fields": [ +{ "fieldname": "unWidth", "fieldtype": "uint16_t"}, +{ "fieldname": "unHeight", "fieldtype": "uint16_t"}, +{ "fieldname": "rubTextureMapData", "fieldtype": "const uint8_t *"}]} +,{"struct": "vr::RenderModel_t","fields": [ +{ "fieldname": "rVertexData", "fieldtype": "const struct vr::RenderModel_Vertex_t *"}, +{ "fieldname": "unVertexCount", "fieldtype": "uint32_t"}, +{ "fieldname": "rIndexData", "fieldtype": "const uint16_t *"}, +{ "fieldname": "unTriangleCount", "fieldtype": "uint32_t"}, +{ "fieldname": "diffuseTextureId", "fieldtype": "TextureID_t"}]} +,{"struct": "vr::RenderModel_ControllerMode_State_t","fields": [ +{ "fieldname": "bScrollWheelVisible", "fieldtype": "_Bool"}]} +,{"struct": "vr::NotificationBitmap_t","fields": [ +{ "fieldname": "m_pImageData", "fieldtype": "void *"}, +{ "fieldname": "m_nWidth", "fieldtype": "int32_t"}, +{ "fieldname": "m_nHeight", "fieldtype": "int32_t"}, +{ "fieldname": "m_nBytesPerPixel", "fieldtype": "int32_t"}]} +,{"struct": "vr::COpenVRContext","fields": [ +{ "fieldname": "m_pVRSystem", "fieldtype": "class vr::IVRSystem *"}, +{ "fieldname": "m_pVRChaperone", "fieldtype": "class vr::IVRChaperone *"}, +{ "fieldname": "m_pVRChaperoneSetup", "fieldtype": "class vr::IVRChaperoneSetup *"}, +{ "fieldname": "m_pVRCompositor", "fieldtype": "class vr::IVRCompositor *"}, +{ "fieldname": "m_pVROverlay", "fieldtype": "class vr::IVROverlay *"}, +{ "fieldname": "m_pVRResources", "fieldtype": "class vr::IVRResources *"}, +{ "fieldname": "m_pVRRenderModels", "fieldtype": "class vr::IVRRenderModels *"}, +{ "fieldname": "m_pVRExtendedDisplay", "fieldtype": "class vr::IVRExtendedDisplay *"}, +{ "fieldname": "m_pVRSettings", "fieldtype": "class vr::IVRSettings *"}, +{ "fieldname": "m_pVRApplications", "fieldtype": "class vr::IVRApplications *"}, +{ "fieldname": "m_pVRTrackedCamera", "fieldtype": "class vr::IVRTrackedCamera *"}, +{ "fieldname": "m_pVRScreenshots", "fieldtype": "class vr::IVRScreenshots *"}, +{ "fieldname": "m_pVRDriverManager", "fieldtype": "class vr::IVRDriverManager *"}]} +], +"methods":[{ + "classname": "vr::IVRSystem", + "methodname": "GetRecommendedRenderTargetSize", + "returntype": "void", + "params": [ +{ "paramname": "pnWidth" ,"paramtype": "uint32_t *"}, +{ "paramname": "pnHeight" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetProjectionMatrix", + "returntype": "struct vr::HmdMatrix44_t", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"}, +{ "paramname": "fNearZ" ,"paramtype": "float"}, +{ "paramname": "fFarZ" ,"paramtype": "float"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetProjectionRaw", + "returntype": "void", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"}, +{ "paramname": "pfLeft" ,"paramtype": "float *"}, +{ "paramname": "pfRight" ,"paramtype": "float *"}, +{ "paramname": "pfTop" ,"paramtype": "float *"}, +{ "paramname": "pfBottom" ,"paramtype": "float *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "ComputeDistortion", + "returntype": "bool", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"}, +{ "paramname": "fU" ,"paramtype": "float"}, +{ "paramname": "fV" ,"paramtype": "float"}, +{ "paramname": "pDistortionCoordinates" ,"paramtype": "struct vr::DistortionCoordinates_t *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetEyeToHeadTransform", + "returntype": "struct vr::HmdMatrix34_t", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetTimeSinceLastVsync", + "returntype": "bool", + "params": [ +{ "paramname": "pfSecondsSinceLastVsync" ,"paramtype": "float *"}, +{ "paramname": "pulFrameCounter" ,"paramtype": "uint64_t *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetD3D9AdapterIndex", + "returntype": "int32_t" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetDXGIOutputInfo", + "returntype": "void", + "params": [ +{ "paramname": "pnAdapterIndex" ,"paramtype": "int32_t *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetOutputDevice", + "returntype": "void", + "params": [ +{ "paramname": "pnDevice" ,"paramtype": "uint64_t *"}, +{ "paramname": "textureType" ,"paramtype": "vr::ETextureType"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "IsDisplayOnDesktop", + "returntype": "bool" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "SetDisplayVisibility", + "returntype": "bool", + "params": [ +{ "paramname": "bIsVisibleOnDesktop" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetDeviceToAbsoluteTrackingPose", + "returntype": "void", + "params": [ +{ "paramname": "eOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin"}, +{ "paramname": "fPredictedSecondsToPhotonsFromNow" ,"paramtype": "float"}, +{ "paramname": "pTrackedDevicePoseArray" ,"array_count": "unTrackedDevicePoseArrayCount" ,"paramtype": "struct vr::TrackedDevicePose_t *"}, +{ "paramname": "unTrackedDevicePoseArrayCount" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "ResetSeatedZeroPose", + "returntype": "void" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetSeatedZeroPoseToStandingAbsoluteTrackingPose", + "returntype": "struct vr::HmdMatrix34_t" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetRawZeroPoseToStandingAbsoluteTrackingPose", + "returntype": "struct vr::HmdMatrix34_t" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetSortedTrackedDeviceIndicesOfClass", + "returntype": "uint32_t", + "params": [ +{ "paramname": "eTrackedDeviceClass" ,"paramtype": "vr::ETrackedDeviceClass"}, +{ "paramname": "punTrackedDeviceIndexArray" ,"array_count": "unTrackedDeviceIndexArrayCount" ,"paramtype": "vr::TrackedDeviceIndex_t *"}, +{ "paramname": "unTrackedDeviceIndexArrayCount" ,"paramtype": "uint32_t"}, +{ "paramname": "unRelativeToTrackedDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetTrackedDeviceActivityLevel", + "returntype": "vr::EDeviceActivityLevel", + "params": [ +{ "paramname": "unDeviceId" ,"paramtype": "vr::TrackedDeviceIndex_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "ApplyTransform", + "returntype": "void", + "params": [ +{ "paramname": "pOutputPose" ,"paramtype": "struct vr::TrackedDevicePose_t *"}, +{ "paramname": "pTrackedDevicePose" ,"paramtype": "const struct vr::TrackedDevicePose_t *"}, +{ "paramname": "pTransform" ,"paramtype": "const struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetTrackedDeviceIndexForControllerRole", + "returntype": "vr::TrackedDeviceIndex_t", + "params": [ +{ "paramname": "unDeviceType" ,"paramtype": "vr::ETrackedControllerRole"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetControllerRoleForTrackedDeviceIndex", + "returntype": "vr::ETrackedControllerRole", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetTrackedDeviceClass", + "returntype": "vr::ETrackedDeviceClass", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "IsTrackedDeviceConnected", + "returntype": "bool", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetBoolTrackedDeviceProperty", + "returntype": "bool", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "prop" ,"paramtype": "vr::ETrackedDeviceProperty"}, +{ "paramname": "pError" ,"paramtype": "vr::ETrackedPropertyError *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetFloatTrackedDeviceProperty", + "returntype": "float", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "prop" ,"paramtype": "vr::ETrackedDeviceProperty"}, +{ "paramname": "pError" ,"paramtype": "vr::ETrackedPropertyError *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetInt32TrackedDeviceProperty", + "returntype": "int32_t", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "prop" ,"paramtype": "vr::ETrackedDeviceProperty"}, +{ "paramname": "pError" ,"paramtype": "vr::ETrackedPropertyError *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetUint64TrackedDeviceProperty", + "returntype": "uint64_t", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "prop" ,"paramtype": "vr::ETrackedDeviceProperty"}, +{ "paramname": "pError" ,"paramtype": "vr::ETrackedPropertyError *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetMatrix34TrackedDeviceProperty", + "returntype": "struct vr::HmdMatrix34_t", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "prop" ,"paramtype": "vr::ETrackedDeviceProperty"}, +{ "paramname": "pError" ,"paramtype": "vr::ETrackedPropertyError *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetStringTrackedDeviceProperty", + "returntype": "uint32_t", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "prop" ,"paramtype": "vr::ETrackedDeviceProperty"}, +{ "paramname": "pchValue" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unBufferSize" ,"paramtype": "uint32_t"}, +{ "paramname": "pError" ,"paramtype": "vr::ETrackedPropertyError *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetPropErrorNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "error" ,"paramtype": "vr::ETrackedPropertyError"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "PollNextEvent", + "returntype": "bool", + "params": [ +{ "paramname": "pEvent" ,"paramtype": "struct vr::VREvent_t *"}, +{ "paramname": "uncbVREvent" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "PollNextEventWithPose", + "returntype": "bool", + "params": [ +{ "paramname": "eOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin"}, +{ "paramname": "pEvent" ,"paramtype": "struct vr::VREvent_t *"}, +{ "paramname": "uncbVREvent" ,"paramtype": "uint32_t"}, +{ "paramname": "pTrackedDevicePose" ,"paramtype": "vr::TrackedDevicePose_t *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetEventTypeNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "eType" ,"paramtype": "vr::EVREventType"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetHiddenAreaMesh", + "returntype": "struct vr::HiddenAreaMesh_t", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"}, +{ "paramname": "type" ,"paramtype": "vr::EHiddenAreaMeshType"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetControllerState", + "returntype": "bool", + "params": [ +{ "paramname": "unControllerDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "pControllerState" ,"paramtype": "vr::VRControllerState_t *"}, +{ "paramname": "unControllerStateSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetControllerStateWithPose", + "returntype": "bool", + "params": [ +{ "paramname": "eOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin"}, +{ "paramname": "unControllerDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "pControllerState" ,"paramtype": "vr::VRControllerState_t *"}, +{ "paramname": "unControllerStateSize" ,"paramtype": "uint32_t"}, +{ "paramname": "pTrackedDevicePose" ,"paramtype": "struct vr::TrackedDevicePose_t *"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "TriggerHapticPulse", + "returntype": "void", + "params": [ +{ "paramname": "unControllerDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "unAxisId" ,"paramtype": "uint32_t"}, +{ "paramname": "usDurationMicroSec" ,"paramtype": "unsigned short"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetButtonIdNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "eButtonId" ,"paramtype": "vr::EVRButtonId"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "GetControllerAxisTypeNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "eAxisType" ,"paramtype": "vr::EVRControllerAxisType"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "CaptureInputFocus", + "returntype": "bool" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "ReleaseInputFocus", + "returntype": "void" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "IsInputFocusCapturedByAnotherProcess", + "returntype": "bool" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "DriverDebugRequest", + "returntype": "uint32_t", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "pchRequest" ,"paramtype": "const char *"}, +{ "paramname": "pchResponseBuffer" ,"paramtype": "char *"}, +{ "paramname": "unResponseBufferSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "PerformFirmwareUpdate", + "returntype": "vr::EVRFirmwareError", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"} + ] +} +,{ + "classname": "vr::IVRSystem", + "methodname": "AcknowledgeQuit_Exiting", + "returntype": "void" +} +,{ + "classname": "vr::IVRSystem", + "methodname": "AcknowledgeQuit_UserPrompt", + "returntype": "void" +} +,{ + "classname": "vr::IVRExtendedDisplay", + "methodname": "GetWindowBounds", + "returntype": "void", + "params": [ +{ "paramname": "pnX" ,"paramtype": "int32_t *"}, +{ "paramname": "pnY" ,"paramtype": "int32_t *"}, +{ "paramname": "pnWidth" ,"paramtype": "uint32_t *"}, +{ "paramname": "pnHeight" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRExtendedDisplay", + "methodname": "GetEyeOutputViewport", + "returntype": "void", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"}, +{ "paramname": "pnX" ,"paramtype": "uint32_t *"}, +{ "paramname": "pnY" ,"paramtype": "uint32_t *"}, +{ "paramname": "pnWidth" ,"paramtype": "uint32_t *"}, +{ "paramname": "pnHeight" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRExtendedDisplay", + "methodname": "GetDXGIOutputInfo", + "returntype": "void", + "params": [ +{ "paramname": "pnAdapterIndex" ,"paramtype": "int32_t *"}, +{ "paramname": "pnAdapterOutputIndex" ,"paramtype": "int32_t *"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "GetCameraErrorNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "eCameraError" ,"paramtype": "vr::EVRTrackedCameraError"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "HasCamera", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "nDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "pHasCamera" ,"paramtype": "bool *"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "GetCameraFrameSize", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "nDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "eFrameType" ,"paramtype": "vr::EVRTrackedCameraFrameType"}, +{ "paramname": "pnWidth" ,"paramtype": "uint32_t *"}, +{ "paramname": "pnHeight" ,"paramtype": "uint32_t *"}, +{ "paramname": "pnFrameBufferSize" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "GetCameraIntrinsics", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "nDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "eFrameType" ,"paramtype": "vr::EVRTrackedCameraFrameType"}, +{ "paramname": "pFocalLength" ,"paramtype": "vr::HmdVector2_t *"}, +{ "paramname": "pCenter" ,"paramtype": "vr::HmdVector2_t *"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "GetCameraProjection", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "nDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "eFrameType" ,"paramtype": "vr::EVRTrackedCameraFrameType"}, +{ "paramname": "flZNear" ,"paramtype": "float"}, +{ "paramname": "flZFar" ,"paramtype": "float"}, +{ "paramname": "pProjection" ,"paramtype": "vr::HmdMatrix44_t *"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "AcquireVideoStreamingService", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "nDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "pHandle" ,"paramtype": "vr::TrackedCameraHandle_t *"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "ReleaseVideoStreamingService", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "hTrackedCamera" ,"paramtype": "vr::TrackedCameraHandle_t"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "GetVideoStreamFrameBuffer", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "hTrackedCamera" ,"paramtype": "vr::TrackedCameraHandle_t"}, +{ "paramname": "eFrameType" ,"paramtype": "vr::EVRTrackedCameraFrameType"}, +{ "paramname": "pFrameBuffer" ,"paramtype": "void *"}, +{ "paramname": "nFrameBufferSize" ,"paramtype": "uint32_t"}, +{ "paramname": "pFrameHeader" ,"paramtype": "vr::CameraVideoStreamFrameHeader_t *"}, +{ "paramname": "nFrameHeaderSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "GetVideoStreamTextureSize", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "nDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "eFrameType" ,"paramtype": "vr::EVRTrackedCameraFrameType"}, +{ "paramname": "pTextureBounds" ,"paramtype": "vr::VRTextureBounds_t *"}, +{ "paramname": "pnWidth" ,"paramtype": "uint32_t *"}, +{ "paramname": "pnHeight" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "GetVideoStreamTextureD3D11", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "hTrackedCamera" ,"paramtype": "vr::TrackedCameraHandle_t"}, +{ "paramname": "eFrameType" ,"paramtype": "vr::EVRTrackedCameraFrameType"}, +{ "paramname": "pD3D11DeviceOrResource" ,"paramtype": "void *"}, +{ "paramname": "ppD3D11ShaderResourceView" ,"paramtype": "void **"}, +{ "paramname": "pFrameHeader" ,"paramtype": "vr::CameraVideoStreamFrameHeader_t *"}, +{ "paramname": "nFrameHeaderSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "GetVideoStreamTextureGL", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "hTrackedCamera" ,"paramtype": "vr::TrackedCameraHandle_t"}, +{ "paramname": "eFrameType" ,"paramtype": "vr::EVRTrackedCameraFrameType"}, +{ "paramname": "pglTextureId" ,"paramtype": "vr::glUInt_t *"}, +{ "paramname": "pFrameHeader" ,"paramtype": "vr::CameraVideoStreamFrameHeader_t *"}, +{ "paramname": "nFrameHeaderSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRTrackedCamera", + "methodname": "ReleaseVideoStreamTextureGL", + "returntype": "vr::EVRTrackedCameraError", + "params": [ +{ "paramname": "hTrackedCamera" ,"paramtype": "vr::TrackedCameraHandle_t"}, +{ "paramname": "glTextureId" ,"paramtype": "vr::glUInt_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "AddApplicationManifest", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchApplicationManifestFullPath" ,"paramtype": "const char *"}, +{ "paramname": "bTemporary" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "RemoveApplicationManifest", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchApplicationManifestFullPath" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "IsApplicationInstalled", + "returntype": "bool", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationCount", + "returntype": "uint32_t" +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationKeyByIndex", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "unApplicationIndex" ,"paramtype": "uint32_t"}, +{ "paramname": "pchAppKeyBuffer" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unAppKeyBufferLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationKeyByProcessId", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "unProcessId" ,"paramtype": "uint32_t"}, +{ "paramname": "pchAppKeyBuffer" ,"paramtype": "char *"}, +{ "paramname": "unAppKeyBufferLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "LaunchApplication", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "LaunchTemplateApplication", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchTemplateAppKey" ,"paramtype": "const char *"}, +{ "paramname": "pchNewAppKey" ,"paramtype": "const char *"}, +{ "paramname": "pKeys" ,"array_count": "unKeys" ,"paramtype": "const struct vr::AppOverrideKeys_t *"}, +{ "paramname": "unKeys" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "LaunchApplicationFromMimeType", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchMimeType" ,"paramtype": "const char *"}, +{ "paramname": "pchArgs" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "LaunchDashboardOverlay", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "CancelApplicationLaunch", + "returntype": "bool", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "IdentifyApplication", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "unProcessId" ,"paramtype": "uint32_t"}, +{ "paramname": "pchAppKey" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationProcessId", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationsErrorNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "error" ,"paramtype": "vr::EVRApplicationError"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationPropertyString", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"}, +{ "paramname": "eProperty" ,"paramtype": "vr::EVRApplicationProperty"}, +{ "paramname": "pchPropertyValueBuffer" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unPropertyValueBufferLen" ,"paramtype": "uint32_t"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRApplicationError *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationPropertyBool", + "returntype": "bool", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"}, +{ "paramname": "eProperty" ,"paramtype": "vr::EVRApplicationProperty"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRApplicationError *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationPropertyUint64", + "returntype": "uint64_t", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"}, +{ "paramname": "eProperty" ,"paramtype": "vr::EVRApplicationProperty"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRApplicationError *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "SetApplicationAutoLaunch", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"}, +{ "paramname": "bAutoLaunch" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationAutoLaunch", + "returntype": "bool", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "SetDefaultApplicationForMimeType", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"}, +{ "paramname": "pchMimeType" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetDefaultApplicationForMimeType", + "returntype": "bool", + "params": [ +{ "paramname": "pchMimeType" ,"paramtype": "const char *"}, +{ "paramname": "pchAppKeyBuffer" ,"paramtype": "char *"}, +{ "paramname": "unAppKeyBufferLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationSupportedMimeTypes", + "returntype": "bool", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"}, +{ "paramname": "pchMimeTypesBuffer" ,"paramtype": "char *"}, +{ "paramname": "unMimeTypesBuffer" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationsThatSupportMimeType", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchMimeType" ,"paramtype": "const char *"}, +{ "paramname": "pchAppKeysThatSupportBuffer" ,"paramtype": "char *"}, +{ "paramname": "unAppKeysThatSupportBuffer" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationLaunchArguments", + "returntype": "uint32_t", + "params": [ +{ "paramname": "unHandle" ,"paramtype": "uint32_t"}, +{ "paramname": "pchArgs" ,"paramtype": "char *"}, +{ "paramname": "unArgs" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetStartingApplication", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchAppKeyBuffer" ,"paramtype": "char *"}, +{ "paramname": "unAppKeyBufferLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetTransitionState", + "returntype": "vr::EVRApplicationTransitionState" +} +,{ + "classname": "vr::IVRApplications", + "methodname": "PerformApplicationPrelaunchCheck", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchAppKey" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetApplicationsTransitionStateNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "state" ,"paramtype": "vr::EVRApplicationTransitionState"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "IsQuitUserPromptRequested", + "returntype": "bool" +} +,{ + "classname": "vr::IVRApplications", + "methodname": "LaunchInternalProcess", + "returntype": "vr::EVRApplicationError", + "params": [ +{ "paramname": "pchBinaryPath" ,"paramtype": "const char *"}, +{ "paramname": "pchArguments" ,"paramtype": "const char *"}, +{ "paramname": "pchWorkingDirectory" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRApplications", + "methodname": "GetCurrentSceneProcessId", + "returntype": "uint32_t" +} +,{ + "classname": "vr::IVRChaperone", + "methodname": "GetCalibrationState", + "returntype": "vr::ChaperoneCalibrationState" +} +,{ + "classname": "vr::IVRChaperone", + "methodname": "GetPlayAreaSize", + "returntype": "bool", + "params": [ +{ "paramname": "pSizeX" ,"paramtype": "float *"}, +{ "paramname": "pSizeZ" ,"paramtype": "float *"} + ] +} +,{ + "classname": "vr::IVRChaperone", + "methodname": "GetPlayAreaRect", + "returntype": "bool", + "params": [ +{ "paramname": "rect" ,"paramtype": "struct vr::HmdQuad_t *"} + ] +} +,{ + "classname": "vr::IVRChaperone", + "methodname": "ReloadInfo", + "returntype": "void" +} +,{ + "classname": "vr::IVRChaperone", + "methodname": "SetSceneColor", + "returntype": "void", + "params": [ +{ "paramname": "color" ,"paramtype": "struct vr::HmdColor_t"} + ] +} +,{ + "classname": "vr::IVRChaperone", + "methodname": "GetBoundsColor", + "returntype": "void", + "params": [ +{ "paramname": "pOutputColorArray" ,"paramtype": "struct vr::HmdColor_t *"}, +{ "paramname": "nNumOutputColors" ,"paramtype": "int"}, +{ "paramname": "flCollisionBoundsFadeDistance" ,"paramtype": "float"}, +{ "paramname": "pOutputCameraColor" ,"paramtype": "struct vr::HmdColor_t *"} + ] +} +,{ + "classname": "vr::IVRChaperone", + "methodname": "AreBoundsVisible", + "returntype": "bool" +} +,{ + "classname": "vr::IVRChaperone", + "methodname": "ForceBoundsVisible", + "returntype": "void", + "params": [ +{ "paramname": "bForce" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "CommitWorkingCopy", + "returntype": "bool", + "params": [ +{ "paramname": "configFile" ,"paramtype": "vr::EChaperoneConfigFile"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "RevertWorkingCopy", + "returntype": "void" +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetWorkingPlayAreaSize", + "returntype": "bool", + "params": [ +{ "paramname": "pSizeX" ,"paramtype": "float *"}, +{ "paramname": "pSizeZ" ,"paramtype": "float *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetWorkingPlayAreaRect", + "returntype": "bool", + "params": [ +{ "paramname": "rect" ,"paramtype": "struct vr::HmdQuad_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetWorkingCollisionBoundsInfo", + "returntype": "bool", + "params": [ +{ "paramname": "pQuadsBuffer" ,"out_array_count": "punQuadsCount" ,"paramtype": "struct vr::HmdQuad_t *"}, +{ "paramname": "punQuadsCount" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetLiveCollisionBoundsInfo", + "returntype": "bool", + "params": [ +{ "paramname": "pQuadsBuffer" ,"out_array_count": "punQuadsCount" ,"paramtype": "struct vr::HmdQuad_t *"}, +{ "paramname": "punQuadsCount" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetWorkingSeatedZeroPoseToRawTrackingPose", + "returntype": "bool", + "params": [ +{ "paramname": "pmatSeatedZeroPoseToRawTrackingPose" ,"paramtype": "struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetWorkingStandingZeroPoseToRawTrackingPose", + "returntype": "bool", + "params": [ +{ "paramname": "pmatStandingZeroPoseToRawTrackingPose" ,"paramtype": "struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "SetWorkingPlayAreaSize", + "returntype": "void", + "params": [ +{ "paramname": "sizeX" ,"paramtype": "float"}, +{ "paramname": "sizeZ" ,"paramtype": "float"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "SetWorkingCollisionBoundsInfo", + "returntype": "void", + "params": [ +{ "paramname": "pQuadsBuffer" ,"array_count": "unQuadsCount" ,"paramtype": "struct vr::HmdQuad_t *"}, +{ "paramname": "unQuadsCount" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "SetWorkingSeatedZeroPoseToRawTrackingPose", + "returntype": "void", + "params": [ +{ "paramname": "pMatSeatedZeroPoseToRawTrackingPose" ,"paramtype": "const struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "SetWorkingStandingZeroPoseToRawTrackingPose", + "returntype": "void", + "params": [ +{ "paramname": "pMatStandingZeroPoseToRawTrackingPose" ,"paramtype": "const struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "ReloadFromDisk", + "returntype": "void", + "params": [ +{ "paramname": "configFile" ,"paramtype": "vr::EChaperoneConfigFile"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetLiveSeatedZeroPoseToRawTrackingPose", + "returntype": "bool", + "params": [ +{ "paramname": "pmatSeatedZeroPoseToRawTrackingPose" ,"paramtype": "struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "SetWorkingCollisionBoundsTagsInfo", + "returntype": "void", + "params": [ +{ "paramname": "pTagsBuffer" ,"array_count": "unTagCount" ,"paramtype": "uint8_t *"}, +{ "paramname": "unTagCount" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetLiveCollisionBoundsTagsInfo", + "returntype": "bool", + "params": [ +{ "paramname": "pTagsBuffer" ,"out_array_count": "punTagCount" ,"paramtype": "uint8_t *"}, +{ "paramname": "punTagCount" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "SetWorkingPhysicalBoundsInfo", + "returntype": "bool", + "params": [ +{ "paramname": "pQuadsBuffer" ,"array_count": "unQuadsCount" ,"paramtype": "struct vr::HmdQuad_t *"}, +{ "paramname": "unQuadsCount" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "GetLivePhysicalBoundsInfo", + "returntype": "bool", + "params": [ +{ "paramname": "pQuadsBuffer" ,"out_array_count": "punQuadsCount" ,"paramtype": "struct vr::HmdQuad_t *"}, +{ "paramname": "punQuadsCount" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "ExportLiveToBuffer", + "returntype": "bool", + "params": [ +{ "paramname": "pBuffer" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "pnBufferLength" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVRChaperoneSetup", + "methodname": "ImportFromBufferToWorking", + "returntype": "bool", + "params": [ +{ "paramname": "pBuffer" ,"paramtype": "const char *"}, +{ "paramname": "nImportFlags" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "SetTrackingSpace", + "returntype": "void", + "params": [ +{ "paramname": "eOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetTrackingSpace", + "returntype": "vr::ETrackingUniverseOrigin" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "WaitGetPoses", + "returntype": "vr::EVRCompositorError", + "params": [ +{ "paramname": "pRenderPoseArray" ,"array_count": "unRenderPoseArrayCount" ,"paramtype": "struct vr::TrackedDevicePose_t *"}, +{ "paramname": "unRenderPoseArrayCount" ,"paramtype": "uint32_t"}, +{ "paramname": "pGamePoseArray" ,"array_count": "unGamePoseArrayCount" ,"paramtype": "struct vr::TrackedDevicePose_t *"}, +{ "paramname": "unGamePoseArrayCount" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetLastPoses", + "returntype": "vr::EVRCompositorError", + "params": [ +{ "paramname": "pRenderPoseArray" ,"array_count": "unRenderPoseArrayCount" ,"paramtype": "struct vr::TrackedDevicePose_t *"}, +{ "paramname": "unRenderPoseArrayCount" ,"paramtype": "uint32_t"}, +{ "paramname": "pGamePoseArray" ,"array_count": "unGamePoseArrayCount" ,"paramtype": "struct vr::TrackedDevicePose_t *"}, +{ "paramname": "unGamePoseArrayCount" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetLastPoseForTrackedDeviceIndex", + "returntype": "vr::EVRCompositorError", + "params": [ +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "pOutputPose" ,"paramtype": "struct vr::TrackedDevicePose_t *"}, +{ "paramname": "pOutputGamePose" ,"paramtype": "struct vr::TrackedDevicePose_t *"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "Submit", + "returntype": "vr::EVRCompositorError", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"}, +{ "paramname": "pTexture" ,"paramtype": "const struct vr::Texture_t *"}, +{ "paramname": "pBounds" ,"paramtype": "const struct vr::VRTextureBounds_t *"}, +{ "paramname": "nSubmitFlags" ,"paramtype": "vr::EVRSubmitFlags"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "ClearLastSubmittedFrame", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "PostPresentHandoff", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetFrameTiming", + "returntype": "bool", + "params": [ +{ "paramname": "pTiming" ,"paramtype": "struct vr::Compositor_FrameTiming *"}, +{ "paramname": "unFramesAgo" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetFrameTimings", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pTiming" ,"paramtype": "struct vr::Compositor_FrameTiming *"}, +{ "paramname": "nFrames" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetFrameTimeRemaining", + "returntype": "float" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetCumulativeStats", + "returntype": "void", + "params": [ +{ "paramname": "pStats" ,"paramtype": "struct vr::Compositor_CumulativeStats *"}, +{ "paramname": "nStatsSizeInBytes" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "FadeToColor", + "returntype": "void", + "params": [ +{ "paramname": "fSeconds" ,"paramtype": "float"}, +{ "paramname": "fRed" ,"paramtype": "float"}, +{ "paramname": "fGreen" ,"paramtype": "float"}, +{ "paramname": "fBlue" ,"paramtype": "float"}, +{ "paramname": "fAlpha" ,"paramtype": "float"}, +{ "paramname": "bBackground" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetCurrentFadeColor", + "returntype": "struct vr::HmdColor_t", + "params": [ +{ "paramname": "bBackground" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "FadeGrid", + "returntype": "void", + "params": [ +{ "paramname": "fSeconds" ,"paramtype": "float"}, +{ "paramname": "bFadeIn" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetCurrentGridAlpha", + "returntype": "float" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "SetSkyboxOverride", + "returntype": "vr::EVRCompositorError", + "params": [ +{ "paramname": "pTextures" ,"array_count": "unTextureCount" ,"paramtype": "const struct vr::Texture_t *"}, +{ "paramname": "unTextureCount" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "ClearSkyboxOverride", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "CompositorBringToFront", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "CompositorGoToBack", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "CompositorQuit", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "IsFullscreen", + "returntype": "bool" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetCurrentSceneFocusProcess", + "returntype": "uint32_t" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetLastFrameRenderer", + "returntype": "uint32_t" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "CanRenderScene", + "returntype": "bool" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "ShowMirrorWindow", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "HideMirrorWindow", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "IsMirrorWindowVisible", + "returntype": "bool" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "CompositorDumpImages", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "ShouldAppRenderWithLowResources", + "returntype": "bool" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "ForceInterleavedReprojectionOn", + "returntype": "void", + "params": [ +{ "paramname": "bOverride" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "ForceReconnectProcess", + "returntype": "void" +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "SuspendRendering", + "returntype": "void", + "params": [ +{ "paramname": "bSuspend" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetMirrorTextureD3D11", + "returntype": "vr::EVRCompositorError", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"}, +{ "paramname": "pD3D11DeviceOrResource" ,"paramtype": "void *"}, +{ "paramname": "ppD3D11ShaderResourceView" ,"paramtype": "void **"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "ReleaseMirrorTextureD3D11", + "returntype": "void", + "params": [ +{ "paramname": "pD3D11ShaderResourceView" ,"paramtype": "void *"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetMirrorTextureGL", + "returntype": "vr::EVRCompositorError", + "params": [ +{ "paramname": "eEye" ,"paramtype": "vr::EVREye"}, +{ "paramname": "pglTextureId" ,"paramtype": "vr::glUInt_t *"}, +{ "paramname": "pglSharedTextureHandle" ,"paramtype": "vr::glSharedTextureHandle_t *"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "ReleaseSharedGLTexture", + "returntype": "bool", + "params": [ +{ "paramname": "glTextureId" ,"paramtype": "vr::glUInt_t"}, +{ "paramname": "glSharedTextureHandle" ,"paramtype": "vr::glSharedTextureHandle_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "LockGLSharedTextureForAccess", + "returntype": "void", + "params": [ +{ "paramname": "glSharedTextureHandle" ,"paramtype": "vr::glSharedTextureHandle_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "UnlockGLSharedTextureForAccess", + "returntype": "void", + "params": [ +{ "paramname": "glSharedTextureHandle" ,"paramtype": "vr::glSharedTextureHandle_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetVulkanInstanceExtensionsRequired", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchValue" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unBufferSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRCompositor", + "methodname": "GetVulkanDeviceExtensionsRequired", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pPhysicalDevice" ,"paramtype": "struct VkPhysicalDevice_T *"}, +{ "paramname": "pchValue" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unBufferSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "FindOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "pchOverlayKey" ,"paramtype": "const char *"}, +{ "paramname": "pOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "CreateOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "pchOverlayKey" ,"paramtype": "const char *"}, +{ "paramname": "pchOverlayName" ,"paramtype": "const char *"}, +{ "paramname": "pOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "DestroyOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetHighQualityOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetHighQualityOverlay", + "returntype": "vr::VROverlayHandle_t" +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayKey", + "returntype": "uint32_t", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pchValue" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unBufferSize" ,"paramtype": "uint32_t"}, +{ "paramname": "pError" ,"paramtype": "vr::EVROverlayError *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayName", + "returntype": "uint32_t", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pchValue" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unBufferSize" ,"paramtype": "uint32_t"}, +{ "paramname": "pError" ,"paramtype": "vr::EVROverlayError *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayName", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pchName" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayImageData", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pvBuffer" ,"paramtype": "void *"}, +{ "paramname": "unBufferSize" ,"paramtype": "uint32_t"}, +{ "paramname": "punWidth" ,"paramtype": "uint32_t *"}, +{ "paramname": "punHeight" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayErrorNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "error" ,"paramtype": "vr::EVROverlayError"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayRenderingPid", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "unPID" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayRenderingPid", + "returntype": "uint32_t", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayFlag", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "eOverlayFlag" ,"paramtype": "vr::VROverlayFlags"}, +{ "paramname": "bEnabled" ,"paramtype": "bool"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayFlag", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "eOverlayFlag" ,"paramtype": "vr::VROverlayFlags"}, +{ "paramname": "pbEnabled" ,"paramtype": "bool *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayColor", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "fRed" ,"paramtype": "float"}, +{ "paramname": "fGreen" ,"paramtype": "float"}, +{ "paramname": "fBlue" ,"paramtype": "float"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayColor", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pfRed" ,"paramtype": "float *"}, +{ "paramname": "pfGreen" ,"paramtype": "float *"}, +{ "paramname": "pfBlue" ,"paramtype": "float *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayAlpha", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "fAlpha" ,"paramtype": "float"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayAlpha", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pfAlpha" ,"paramtype": "float *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayTexelAspect", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "fTexelAspect" ,"paramtype": "float"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTexelAspect", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pfTexelAspect" ,"paramtype": "float *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlaySortOrder", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "unSortOrder" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlaySortOrder", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "punSortOrder" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayWidthInMeters", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "fWidthInMeters" ,"paramtype": "float"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayWidthInMeters", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pfWidthInMeters" ,"paramtype": "float *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayAutoCurveDistanceRangeInMeters", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "fMinDistanceInMeters" ,"paramtype": "float"}, +{ "paramname": "fMaxDistanceInMeters" ,"paramtype": "float"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayAutoCurveDistanceRangeInMeters", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pfMinDistanceInMeters" ,"paramtype": "float *"}, +{ "paramname": "pfMaxDistanceInMeters" ,"paramtype": "float *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayTextureColorSpace", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "eTextureColorSpace" ,"paramtype": "vr::EColorSpace"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTextureColorSpace", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "peTextureColorSpace" ,"paramtype": "vr::EColorSpace *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayTextureBounds", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pOverlayTextureBounds" ,"paramtype": "const struct vr::VRTextureBounds_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTextureBounds", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pOverlayTextureBounds" ,"paramtype": "struct vr::VRTextureBounds_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayRenderModel", + "returntype": "uint32_t", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pchValue" ,"paramtype": "char *"}, +{ "paramname": "unBufferSize" ,"paramtype": "uint32_t"}, +{ "paramname": "pColor" ,"paramtype": "struct vr::HmdColor_t *"}, +{ "paramname": "pError" ,"paramtype": "vr::EVROverlayError *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayRenderModel", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pchRenderModel" ,"paramtype": "const char *"}, +{ "paramname": "pColor" ,"paramtype": "const struct vr::HmdColor_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTransformType", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "peTransformType" ,"paramtype": "vr::VROverlayTransformType *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayTransformAbsolute", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "eTrackingOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin"}, +{ "paramname": "pmatTrackingOriginToOverlayTransform" ,"paramtype": "const struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTransformAbsolute", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "peTrackingOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin *"}, +{ "paramname": "pmatTrackingOriginToOverlayTransform" ,"paramtype": "struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayTransformTrackedDeviceRelative", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "unTrackedDevice" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "pmatTrackedDeviceToOverlayTransform" ,"paramtype": "const struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTransformTrackedDeviceRelative", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "punTrackedDevice" ,"paramtype": "vr::TrackedDeviceIndex_t *"}, +{ "paramname": "pmatTrackedDeviceToOverlayTransform" ,"paramtype": "struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayTransformTrackedDeviceComponent", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"}, +{ "paramname": "pchComponentName" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTransformTrackedDeviceComponent", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "punDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t *"}, +{ "paramname": "pchComponentName" ,"paramtype": "char *"}, +{ "paramname": "unComponentNameSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTransformOverlayRelative", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "ulOverlayHandleParent" ,"paramtype": "vr::VROverlayHandle_t *"}, +{ "paramname": "pmatParentOverlayToOverlayTransform" ,"paramtype": "struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayTransformOverlayRelative", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "ulOverlayHandleParent" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pmatParentOverlayToOverlayTransform" ,"paramtype": "const struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "ShowOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "HideOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "IsOverlayVisible", + "returntype": "bool", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetTransformForOverlayCoordinates", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "eTrackingOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin"}, +{ "paramname": "coordinatesInOverlay" ,"paramtype": "struct vr::HmdVector2_t"}, +{ "paramname": "pmatTransform" ,"paramtype": "struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "PollNextOverlayEvent", + "returntype": "bool", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pEvent" ,"paramtype": "struct vr::VREvent_t *"}, +{ "paramname": "uncbVREvent" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayInputMethod", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "peInputMethod" ,"paramtype": "vr::VROverlayInputMethod *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayInputMethod", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "eInputMethod" ,"paramtype": "vr::VROverlayInputMethod"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayMouseScale", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pvecMouseScale" ,"paramtype": "struct vr::HmdVector2_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayMouseScale", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pvecMouseScale" ,"paramtype": "const struct vr::HmdVector2_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "ComputeOverlayIntersection", + "returntype": "bool", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pParams" ,"paramtype": "const struct vr::VROverlayIntersectionParams_t *"}, +{ "paramname": "pResults" ,"paramtype": "struct vr::VROverlayIntersectionResults_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "HandleControllerOverlayInteractionAsMouse", + "returntype": "bool", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "unControllerDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "IsHoverTargetOverlay", + "returntype": "bool", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetGamepadFocusOverlay", + "returntype": "vr::VROverlayHandle_t" +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetGamepadFocusOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulNewFocusOverlay" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayNeighbor", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "eDirection" ,"paramtype": "vr::EOverlayDirection"}, +{ "paramname": "ulFrom" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "ulTo" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "MoveGamepadFocusToNeighbor", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "eDirection" ,"paramtype": "vr::EOverlayDirection"}, +{ "paramname": "ulFrom" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayTexture", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pTexture" ,"paramtype": "const struct vr::Texture_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "ClearOverlayTexture", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayRaw", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pvBuffer" ,"paramtype": "void *"}, +{ "paramname": "unWidth" ,"paramtype": "uint32_t"}, +{ "paramname": "unHeight" ,"paramtype": "uint32_t"}, +{ "paramname": "unDepth" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayFromFile", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pchFilePath" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTexture", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pNativeTextureHandle" ,"paramtype": "void **"}, +{ "paramname": "pNativeTextureRef" ,"paramtype": "void *"}, +{ "paramname": "pWidth" ,"paramtype": "uint32_t *"}, +{ "paramname": "pHeight" ,"paramtype": "uint32_t *"}, +{ "paramname": "pNativeFormat" ,"paramtype": "uint32_t *"}, +{ "paramname": "pAPIType" ,"paramtype": "vr::ETextureType *"}, +{ "paramname": "pColorSpace" ,"paramtype": "vr::EColorSpace *"}, +{ "paramname": "pTextureBounds" ,"paramtype": "struct vr::VRTextureBounds_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "ReleaseNativeOverlayHandle", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pNativeTextureHandle" ,"paramtype": "void *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayTextureSize", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pWidth" ,"paramtype": "uint32_t *"}, +{ "paramname": "pHeight" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "CreateDashboardOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "pchOverlayKey" ,"paramtype": "const char *"}, +{ "paramname": "pchOverlayFriendlyName" ,"paramtype": "const char *"}, +{ "paramname": "pMainHandle" ,"paramtype": "vr::VROverlayHandle_t *"}, +{ "paramname": "pThumbnailHandle" ,"paramtype": "vr::VROverlayHandle_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "IsDashboardVisible", + "returntype": "bool" +} +,{ + "classname": "vr::IVROverlay", + "methodname": "IsActiveDashboardOverlay", + "returntype": "bool", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetDashboardOverlaySceneProcess", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "unProcessId" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetDashboardOverlaySceneProcess", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "punProcessId" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "ShowDashboard", + "returntype": "void", + "params": [ +{ "paramname": "pchOverlayToShow" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetPrimaryDashboardDevice", + "returntype": "vr::TrackedDeviceIndex_t" +} +,{ + "classname": "vr::IVROverlay", + "methodname": "ShowKeyboard", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "eInputMode" ,"paramtype": "vr::EGamepadTextInputMode"}, +{ "paramname": "eLineInputMode" ,"paramtype": "vr::EGamepadTextInputLineMode"}, +{ "paramname": "pchDescription" ,"paramtype": "const char *"}, +{ "paramname": "unCharMax" ,"paramtype": "uint32_t"}, +{ "paramname": "pchExistingText" ,"paramtype": "const char *"}, +{ "paramname": "bUseMinimalMode" ,"paramtype": "bool"}, +{ "paramname": "uUserValue" ,"paramtype": "uint64_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "ShowKeyboardForOverlay", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "eInputMode" ,"paramtype": "vr::EGamepadTextInputMode"}, +{ "paramname": "eLineInputMode" ,"paramtype": "vr::EGamepadTextInputLineMode"}, +{ "paramname": "pchDescription" ,"paramtype": "const char *"}, +{ "paramname": "unCharMax" ,"paramtype": "uint32_t"}, +{ "paramname": "pchExistingText" ,"paramtype": "const char *"}, +{ "paramname": "bUseMinimalMode" ,"paramtype": "bool"}, +{ "paramname": "uUserValue" ,"paramtype": "uint64_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetKeyboardText", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchText" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "cchText" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "HideKeyboard", + "returntype": "void" +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetKeyboardTransformAbsolute", + "returntype": "void", + "params": [ +{ "paramname": "eTrackingOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin"}, +{ "paramname": "pmatTrackingOriginToKeyboardTransform" ,"paramtype": "const struct vr::HmdMatrix34_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetKeyboardPositionForOverlay", + "returntype": "void", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "avoidRect" ,"paramtype": "struct vr::HmdRect2_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "SetOverlayIntersectionMask", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pMaskPrimitives" ,"paramtype": "struct vr::VROverlayIntersectionMaskPrimitive_t *"}, +{ "paramname": "unNumMaskPrimitives" ,"paramtype": "uint32_t"}, +{ "paramname": "unPrimitiveSize" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "GetOverlayFlags", + "returntype": "vr::EVROverlayError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "pFlags" ,"paramtype": "uint32_t *"} + ] +} +,{ + "classname": "vr::IVROverlay", + "methodname": "ShowMessageOverlay", + "returntype": "vr::VRMessageOverlayResponse", + "params": [ +{ "paramname": "pchText" ,"paramtype": "const char *"}, +{ "paramname": "pchCaption" ,"paramtype": "const char *"}, +{ "paramname": "pchButton0Text" ,"paramtype": "const char *"}, +{ "paramname": "pchButton1Text" ,"paramtype": "const char *"}, +{ "paramname": "pchButton2Text" ,"paramtype": "const char *"}, +{ "paramname": "pchButton3Text" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "LoadRenderModel_Async", + "returntype": "vr::EVRRenderModelError", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"}, +{ "paramname": "ppRenderModel" ,"paramtype": "struct vr::RenderModel_t **"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "FreeRenderModel", + "returntype": "void", + "params": [ +{ "paramname": "pRenderModel" ,"paramtype": "struct vr::RenderModel_t *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "LoadTexture_Async", + "returntype": "vr::EVRRenderModelError", + "params": [ +{ "paramname": "textureId" ,"paramtype": "vr::TextureID_t"}, +{ "paramname": "ppTexture" ,"paramtype": "struct vr::RenderModel_TextureMap_t **"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "FreeTexture", + "returntype": "void", + "params": [ +{ "paramname": "pTexture" ,"paramtype": "struct vr::RenderModel_TextureMap_t *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "LoadTextureD3D11_Async", + "returntype": "vr::EVRRenderModelError", + "params": [ +{ "paramname": "textureId" ,"paramtype": "vr::TextureID_t"}, +{ "paramname": "pD3D11Device" ,"paramtype": "void *"}, +{ "paramname": "ppD3D11Texture2D" ,"paramtype": "void **"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "LoadIntoTextureD3D11_Async", + "returntype": "vr::EVRRenderModelError", + "params": [ +{ "paramname": "textureId" ,"paramtype": "vr::TextureID_t"}, +{ "paramname": "pDstTexture" ,"paramtype": "void *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "FreeTextureD3D11", + "returntype": "void", + "params": [ +{ "paramname": "pD3D11Texture2D" ,"paramtype": "void *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetRenderModelName", + "returntype": "uint32_t", + "params": [ +{ "paramname": "unRenderModelIndex" ,"paramtype": "uint32_t"}, +{ "paramname": "pchRenderModelName" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unRenderModelNameLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetRenderModelCount", + "returntype": "uint32_t" +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetComponentCount", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetComponentName", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"}, +{ "paramname": "unComponentIndex" ,"paramtype": "uint32_t"}, +{ "paramname": "pchComponentName" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unComponentNameLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetComponentButtonMask", + "returntype": "uint64_t", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"}, +{ "paramname": "pchComponentName" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetComponentRenderModelName", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"}, +{ "paramname": "pchComponentName" ,"paramtype": "const char *"}, +{ "paramname": "pchComponentRenderModelName" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unComponentRenderModelNameLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetComponentState", + "returntype": "bool", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"}, +{ "paramname": "pchComponentName" ,"paramtype": "const char *"}, +{ "paramname": "pControllerState" ,"paramtype": "const vr::VRControllerState_t *"}, +{ "paramname": "pState" ,"paramtype": "const struct vr::RenderModel_ControllerMode_State_t *"}, +{ "paramname": "pComponentState" ,"paramtype": "struct vr::RenderModel_ComponentState_t *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "RenderModelHasComponent", + "returntype": "bool", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"}, +{ "paramname": "pchComponentName" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetRenderModelThumbnailURL", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"}, +{ "paramname": "pchThumbnailURL" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unThumbnailURLLen" ,"paramtype": "uint32_t"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRRenderModelError *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetRenderModelOriginalPath", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchRenderModelName" ,"paramtype": "const char *"}, +{ "paramname": "pchOriginalPath" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unOriginalPathLen" ,"paramtype": "uint32_t"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRRenderModelError *"} + ] +} +,{ + "classname": "vr::IVRRenderModels", + "methodname": "GetRenderModelErrorNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "error" ,"paramtype": "vr::EVRRenderModelError"} + ] +} +,{ + "classname": "vr::IVRNotifications", + "methodname": "CreateNotification", + "returntype": "vr::EVRNotificationError", + "params": [ +{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"}, +{ "paramname": "ulUserValue" ,"paramtype": "uint64_t"}, +{ "paramname": "type" ,"paramtype": "vr::EVRNotificationType"}, +{ "paramname": "pchText" ,"paramtype": "const char *"}, +{ "paramname": "style" ,"paramtype": "vr::EVRNotificationStyle"}, +{ "paramname": "pImage" ,"paramtype": "const struct vr::NotificationBitmap_t *"}, +{ "paramname": "pNotificationId" ,"paramtype": "vr::VRNotificationId *"} + ] +} +,{ + "classname": "vr::IVRNotifications", + "methodname": "RemoveNotification", + "returntype": "vr::EVRNotificationError", + "params": [ +{ "paramname": "notificationId" ,"paramtype": "vr::VRNotificationId"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "GetSettingsErrorNameFromEnum", + "returntype": "const char *", + "params": [ +{ "paramname": "eError" ,"paramtype": "vr::EVRSettingsError"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "Sync", + "returntype": "bool", + "params": [ +{ "paramname": "bForce" ,"paramtype": "bool"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "SetBool", + "returntype": "void", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "bValue" ,"paramtype": "bool"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "SetInt32", + "returntype": "void", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "nValue" ,"paramtype": "int32_t"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "SetFloat", + "returntype": "void", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "flValue" ,"paramtype": "float"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "SetString", + "returntype": "void", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "pchValue" ,"paramtype": "const char *"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "GetBool", + "returntype": "bool", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "GetInt32", + "returntype": "int32_t", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "GetFloat", + "returntype": "float", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "GetString", + "returntype": "void", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "pchValue" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unValueLen" ,"paramtype": "uint32_t"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "RemoveSection", + "returntype": "void", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRSettings", + "methodname": "RemoveKeyInSection", + "returntype": "void", + "params": [ +{ "paramname": "pchSection" ,"paramtype": "const char *"}, +{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"}, +{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"} + ] +} +,{ + "classname": "vr::IVRScreenshots", + "methodname": "RequestScreenshot", + "returntype": "vr::EVRScreenshotError", + "params": [ +{ "paramname": "pOutScreenshotHandle" ,"paramtype": "vr::ScreenshotHandle_t *"}, +{ "paramname": "type" ,"paramtype": "vr::EVRScreenshotType"}, +{ "paramname": "pchPreviewFilename" ,"paramtype": "const char *"}, +{ "paramname": "pchVRFilename" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRScreenshots", + "methodname": "HookScreenshot", + "returntype": "vr::EVRScreenshotError", + "params": [ +{ "paramname": "pSupportedTypes" ,"array_count": "numTypes" ,"paramtype": "const vr::EVRScreenshotType *"}, +{ "paramname": "numTypes" ,"paramtype": "int"} + ] +} +,{ + "classname": "vr::IVRScreenshots", + "methodname": "GetScreenshotPropertyType", + "returntype": "vr::EVRScreenshotType", + "params": [ +{ "paramname": "screenshotHandle" ,"paramtype": "vr::ScreenshotHandle_t"}, +{ "paramname": "pError" ,"paramtype": "vr::EVRScreenshotError *"} + ] +} +,{ + "classname": "vr::IVRScreenshots", + "methodname": "GetScreenshotPropertyFilename", + "returntype": "uint32_t", + "params": [ +{ "paramname": "screenshotHandle" ,"paramtype": "vr::ScreenshotHandle_t"}, +{ "paramname": "filenameType" ,"paramtype": "vr::EVRScreenshotPropertyFilenames"}, +{ "paramname": "pchFilename" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "cchFilename" ,"paramtype": "uint32_t"}, +{ "paramname": "pError" ,"paramtype": "vr::EVRScreenshotError *"} + ] +} +,{ + "classname": "vr::IVRScreenshots", + "methodname": "UpdateScreenshotProgress", + "returntype": "vr::EVRScreenshotError", + "params": [ +{ "paramname": "screenshotHandle" ,"paramtype": "vr::ScreenshotHandle_t"}, +{ "paramname": "flProgress" ,"paramtype": "float"} + ] +} +,{ + "classname": "vr::IVRScreenshots", + "methodname": "TakeStereoScreenshot", + "returntype": "vr::EVRScreenshotError", + "params": [ +{ "paramname": "pOutScreenshotHandle" ,"paramtype": "vr::ScreenshotHandle_t *"}, +{ "paramname": "pchPreviewFilename" ,"paramtype": "const char *"}, +{ "paramname": "pchVRFilename" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRScreenshots", + "methodname": "SubmitScreenshot", + "returntype": "vr::EVRScreenshotError", + "params": [ +{ "paramname": "screenshotHandle" ,"paramtype": "vr::ScreenshotHandle_t"}, +{ "paramname": "type" ,"paramtype": "vr::EVRScreenshotType"}, +{ "paramname": "pchSourcePreviewFilename" ,"paramtype": "const char *"}, +{ "paramname": "pchSourceVRFilename" ,"paramtype": "const char *"} + ] +} +,{ + "classname": "vr::IVRResources", + "methodname": "LoadSharedResource", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchResourceName" ,"paramtype": "const char *"}, +{ "paramname": "pchBuffer" ,"paramtype": "char *"}, +{ "paramname": "unBufferLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRResources", + "methodname": "GetResourceFullPath", + "returntype": "uint32_t", + "params": [ +{ "paramname": "pchResourceName" ,"paramtype": "const char *"}, +{ "paramname": "pchResourceTypeDirectory" ,"paramtype": "const char *"}, +{ "paramname": "pchPathBuffer" ,"paramtype": "char *"}, +{ "paramname": "unBufferLen" ,"paramtype": "uint32_t"} + ] +} +,{ + "classname": "vr::IVRDriverManager", + "methodname": "GetDriverCount", + "returntype": "uint32_t" +} +,{ + "classname": "vr::IVRDriverManager", + "methodname": "GetDriverName", + "returntype": "uint32_t", + "params": [ +{ "paramname": "nDriver" ,"paramtype": "vr::DriverId_t"}, +{ "paramname": "pchValue" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unBufferSize" ,"paramtype": "uint32_t"} + ] +} +] +} \ No newline at end of file diff --git a/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/Current/Headers/openvr_capi.h b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/Current/Headers/openvr_capi.h new file mode 100644 index 000000000..a6685e579 --- /dev/null +++ b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/Current/Headers/openvr_capi.h @@ -0,0 +1,1918 @@ +//======= Copyright (c) Valve Corporation, All rights reserved. =============== +// +// Purpose: Header for flatted SteamAPI. Use this for binding to other languages. +// This file is auto-generated, do not edit it. +// +//============================================================================= + +#ifndef __OPENVR_API_FLAT_H__ +#define __OPENVR_API_FLAT_H__ +#if defined( _WIN32 ) || defined( __clang__ ) +#pragma once +#endif + +#ifdef __cplusplus +#define EXTERN_C extern "C" +#else +#define EXTERN_C +#endif + +#if defined( _WIN32 ) +#define OPENVR_FNTABLE_CALLTYPE __stdcall +#else +#define OPENVR_FNTABLE_CALLTYPE +#endif + +// OPENVR API export macro +#if defined( _WIN32 ) && !defined( _X360 ) + #if defined( OPENVR_API_EXPORTS ) + #define S_API EXTERN_C __declspec( dllexport ) + #elif defined( OPENVR_API_NODLL ) + #define S_API EXTERN_C + #else + #define S_API extern "C" __declspec( dllimport ) + #endif // OPENVR_API_EXPORTS +#elif defined( __GNUC__ ) + #if defined( OPENVR_API_EXPORTS ) + #define S_API EXTERN_C __attribute__ ((visibility("default"))) + #else + #define S_API EXTERN_C + #endif // OPENVR_API_EXPORTS +#else // !WIN32 + #if defined( OPENVR_API_EXPORTS ) + #define S_API EXTERN_C + #else + #define S_API EXTERN_C + #endif // OPENVR_API_EXPORTS +#endif + +#include + +#if defined( __WIN32 ) +typedef char bool; +#else +#include +#endif + +typedef uint64_t PropertyContainerHandle_t; +typedef uint32_t PropertyTypeTag_t; + + +// OpenVR Constants + +static const unsigned int k_nDriverNone = 4294967295; +static const unsigned int k_unMaxDriverDebugResponseSize = 32768; +static const unsigned int k_unTrackedDeviceIndex_Hmd = 0; +static const unsigned int k_unMaxTrackedDeviceCount = 16; +static const unsigned int k_unTrackedDeviceIndexOther = 4294967294; +static const unsigned int k_unTrackedDeviceIndexInvalid = 4294967295; +static const unsigned long k_ulInvalidPropertyContainer = 0; +static const unsigned int k_unInvalidPropertyTag = 0; +static const unsigned int k_unFloatPropertyTag = 1; +static const unsigned int k_unInt32PropertyTag = 2; +static const unsigned int k_unUint64PropertyTag = 3; +static const unsigned int k_unBoolPropertyTag = 4; +static const unsigned int k_unStringPropertyTag = 5; +static const unsigned int k_unHmdMatrix34PropertyTag = 20; +static const unsigned int k_unHmdMatrix44PropertyTag = 21; +static const unsigned int k_unHmdVector3PropertyTag = 22; +static const unsigned int k_unHmdVector4PropertyTag = 23; +static const unsigned int k_unHiddenAreaPropertyTag = 30; +static const unsigned int k_unOpenVRInternalReserved_Start = 1000; +static const unsigned int k_unOpenVRInternalReserved_End = 10000; +static const unsigned int k_unMaxPropertyStringSize = 32768; +static const unsigned int k_unControllerStateAxisCount = 5; +static const unsigned long k_ulOverlayHandleInvalid = 0; +static const unsigned int k_unScreenshotHandleInvalid = 0; +static const char * IVRSystem_Version = "IVRSystem_016"; +static const char * IVRExtendedDisplay_Version = "IVRExtendedDisplay_001"; +static const char * IVRTrackedCamera_Version = "IVRTrackedCamera_003"; +static const unsigned int k_unMaxApplicationKeyLength = 128; +static const char * k_pch_MimeType_HomeApp = "vr/home"; +static const char * k_pch_MimeType_GameTheater = "vr/game_theater"; +static const char * IVRApplications_Version = "IVRApplications_006"; +static const char * IVRChaperone_Version = "IVRChaperone_003"; +static const char * IVRChaperoneSetup_Version = "IVRChaperoneSetup_005"; +static const char * IVRCompositor_Version = "IVRCompositor_020"; +static const unsigned int k_unVROverlayMaxKeyLength = 128; +static const unsigned int k_unVROverlayMaxNameLength = 128; +static const unsigned int k_unMaxOverlayCount = 64; +static const unsigned int k_unMaxOverlayIntersectionMaskPrimitivesCount = 32; +static const char * IVROverlay_Version = "IVROverlay_016"; +static const char * k_pch_Controller_Component_GDC2015 = "gdc2015"; +static const char * k_pch_Controller_Component_Base = "base"; +static const char * k_pch_Controller_Component_Tip = "tip"; +static const char * k_pch_Controller_Component_HandGrip = "handgrip"; +static const char * k_pch_Controller_Component_Status = "status"; +static const char * IVRRenderModels_Version = "IVRRenderModels_005"; +static const unsigned int k_unNotificationTextMaxSize = 256; +static const char * IVRNotifications_Version = "IVRNotifications_002"; +static const unsigned int k_unMaxSettingsKeyLength = 128; +static const char * IVRSettings_Version = "IVRSettings_002"; +static const char * k_pch_SteamVR_Section = "steamvr"; +static const char * k_pch_SteamVR_RequireHmd_String = "requireHmd"; +static const char * k_pch_SteamVR_ForcedDriverKey_String = "forcedDriver"; +static const char * k_pch_SteamVR_ForcedHmdKey_String = "forcedHmd"; +static const char * k_pch_SteamVR_DisplayDebug_Bool = "displayDebug"; +static const char * k_pch_SteamVR_DebugProcessPipe_String = "debugProcessPipe"; +static const char * k_pch_SteamVR_DisplayDebugX_Int32 = "displayDebugX"; +static const char * k_pch_SteamVR_DisplayDebugY_Int32 = "displayDebugY"; +static const char * k_pch_SteamVR_SendSystemButtonToAllApps_Bool = "sendSystemButtonToAllApps"; +static const char * k_pch_SteamVR_LogLevel_Int32 = "loglevel"; +static const char * k_pch_SteamVR_IPD_Float = "ipd"; +static const char * k_pch_SteamVR_Background_String = "background"; +static const char * k_pch_SteamVR_BackgroundUseDomeProjection_Bool = "backgroundUseDomeProjection"; +static const char * k_pch_SteamVR_BackgroundCameraHeight_Float = "backgroundCameraHeight"; +static const char * k_pch_SteamVR_BackgroundDomeRadius_Float = "backgroundDomeRadius"; +static const char * k_pch_SteamVR_GridColor_String = "gridColor"; +static const char * k_pch_SteamVR_PlayAreaColor_String = "playAreaColor"; +static const char * k_pch_SteamVR_ShowStage_Bool = "showStage"; +static const char * k_pch_SteamVR_ActivateMultipleDrivers_Bool = "activateMultipleDrivers"; +static const char * k_pch_SteamVR_DirectMode_Bool = "directMode"; +static const char * k_pch_SteamVR_DirectModeEdidVid_Int32 = "directModeEdidVid"; +static const char * k_pch_SteamVR_DirectModeEdidPid_Int32 = "directModeEdidPid"; +static const char * k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers"; +static const char * k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees"; +static const char * k_pch_SteamVR_BaseStationPowerManagement_Bool = "basestationPowerManagement"; +static const char * k_pch_SteamVR_NeverKillProcesses_Bool = "neverKillProcesses"; +static const char * k_pch_SteamVR_SupersampleScale_Float = "supersampleScale"; +static const char * k_pch_SteamVR_AllowAsyncReprojection_Bool = "allowAsyncReprojection"; +static const char * k_pch_SteamVR_AllowReprojection_Bool = "allowInterleavedReprojection"; +static const char * k_pch_SteamVR_ForceReprojection_Bool = "forceReprojection"; +static const char * k_pch_SteamVR_ForceFadeOnBadTracking_Bool = "forceFadeOnBadTracking"; +static const char * k_pch_SteamVR_DefaultMirrorView_Int32 = "defaultMirrorView"; +static const char * k_pch_SteamVR_ShowMirrorView_Bool = "showMirrorView"; +static const char * k_pch_SteamVR_MirrorViewGeometry_String = "mirrorViewGeometry"; +static const char * k_pch_SteamVR_StartMonitorFromAppLaunch = "startMonitorFromAppLaunch"; +static const char * k_pch_SteamVR_StartCompositorFromAppLaunch_Bool = "startCompositorFromAppLaunch"; +static const char * k_pch_SteamVR_StartDashboardFromAppLaunch_Bool = "startDashboardFromAppLaunch"; +static const char * k_pch_SteamVR_StartOverlayAppsFromDashboard_Bool = "startOverlayAppsFromDashboard"; +static const char * k_pch_SteamVR_EnableHomeApp = "enableHomeApp"; +static const char * k_pch_SteamVR_CycleBackgroundImageTimeSec_Int32 = "CycleBackgroundImageTimeSec"; +static const char * k_pch_SteamVR_RetailDemo_Bool = "retailDemo"; +static const char * k_pch_SteamVR_IpdOffset_Float = "ipdOffset"; +static const char * k_pch_SteamVR_AllowSupersampleFiltering_Bool = "allowSupersampleFiltering"; +static const char * k_pch_Lighthouse_Section = "driver_lighthouse"; +static const char * k_pch_Lighthouse_DisableIMU_Bool = "disableimu"; +static const char * k_pch_Lighthouse_UseDisambiguation_String = "usedisambiguation"; +static const char * k_pch_Lighthouse_DisambiguationDebug_Int32 = "disambiguationdebug"; +static const char * k_pch_Lighthouse_PrimaryBasestation_Int32 = "primarybasestation"; +static const char * k_pch_Lighthouse_DBHistory_Bool = "dbhistory"; +static const char * k_pch_Null_Section = "driver_null"; +static const char * k_pch_Null_SerialNumber_String = "serialNumber"; +static const char * k_pch_Null_ModelNumber_String = "modelNumber"; +static const char * k_pch_Null_WindowX_Int32 = "windowX"; +static const char * k_pch_Null_WindowY_Int32 = "windowY"; +static const char * k_pch_Null_WindowWidth_Int32 = "windowWidth"; +static const char * k_pch_Null_WindowHeight_Int32 = "windowHeight"; +static const char * k_pch_Null_RenderWidth_Int32 = "renderWidth"; +static const char * k_pch_Null_RenderHeight_Int32 = "renderHeight"; +static const char * k_pch_Null_SecondsFromVsyncToPhotons_Float = "secondsFromVsyncToPhotons"; +static const char * k_pch_Null_DisplayFrequency_Float = "displayFrequency"; +static const char * k_pch_UserInterface_Section = "userinterface"; +static const char * k_pch_UserInterface_StatusAlwaysOnTop_Bool = "StatusAlwaysOnTop"; +static const char * k_pch_UserInterface_MinimizeToTray_Bool = "MinimizeToTray"; +static const char * k_pch_UserInterface_Screenshots_Bool = "screenshots"; +static const char * k_pch_UserInterface_ScreenshotType_Int = "screenshotType"; +static const char * k_pch_Notifications_Section = "notifications"; +static const char * k_pch_Notifications_DoNotDisturb_Bool = "DoNotDisturb"; +static const char * k_pch_Keyboard_Section = "keyboard"; +static const char * k_pch_Keyboard_TutorialCompletions = "TutorialCompletions"; +static const char * k_pch_Keyboard_ScaleX = "ScaleX"; +static const char * k_pch_Keyboard_ScaleY = "ScaleY"; +static const char * k_pch_Keyboard_OffsetLeftX = "OffsetLeftX"; +static const char * k_pch_Keyboard_OffsetRightX = "OffsetRightX"; +static const char * k_pch_Keyboard_OffsetY = "OffsetY"; +static const char * k_pch_Keyboard_Smoothing = "Smoothing"; +static const char * k_pch_Perf_Section = "perfcheck"; +static const char * k_pch_Perf_HeuristicActive_Bool = "heuristicActive"; +static const char * k_pch_Perf_NotifyInHMD_Bool = "warnInHMD"; +static const char * k_pch_Perf_NotifyOnlyOnce_Bool = "warnOnlyOnce"; +static const char * k_pch_Perf_AllowTimingStore_Bool = "allowTimingStore"; +static const char * k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit"; +static const char * k_pch_Perf_TestData_Float = "perfTestData"; +static const char * k_pch_Perf_LinuxGPUProfiling_Bool = "linuxGPUProfiling"; +static const char * k_pch_CollisionBounds_Section = "collisionBounds"; +static const char * k_pch_CollisionBounds_Style_Int32 = "CollisionBoundsStyle"; +static const char * k_pch_CollisionBounds_GroundPerimeterOn_Bool = "CollisionBoundsGroundPerimeterOn"; +static const char * k_pch_CollisionBounds_CenterMarkerOn_Bool = "CollisionBoundsCenterMarkerOn"; +static const char * k_pch_CollisionBounds_PlaySpaceOn_Bool = "CollisionBoundsPlaySpaceOn"; +static const char * k_pch_CollisionBounds_FadeDistance_Float = "CollisionBoundsFadeDistance"; +static const char * k_pch_CollisionBounds_ColorGammaR_Int32 = "CollisionBoundsColorGammaR"; +static const char * k_pch_CollisionBounds_ColorGammaG_Int32 = "CollisionBoundsColorGammaG"; +static const char * k_pch_CollisionBounds_ColorGammaB_Int32 = "CollisionBoundsColorGammaB"; +static const char * k_pch_CollisionBounds_ColorGammaA_Int32 = "CollisionBoundsColorGammaA"; +static const char * k_pch_Camera_Section = "camera"; +static const char * k_pch_Camera_EnableCamera_Bool = "enableCamera"; +static const char * k_pch_Camera_EnableCameraInDashboard_Bool = "enableCameraInDashboard"; +static const char * k_pch_Camera_EnableCameraForCollisionBounds_Bool = "enableCameraForCollisionBounds"; +static const char * k_pch_Camera_EnableCameraForRoomView_Bool = "enableCameraForRoomView"; +static const char * k_pch_Camera_BoundsColorGammaR_Int32 = "cameraBoundsColorGammaR"; +static const char * k_pch_Camera_BoundsColorGammaG_Int32 = "cameraBoundsColorGammaG"; +static const char * k_pch_Camera_BoundsColorGammaB_Int32 = "cameraBoundsColorGammaB"; +static const char * k_pch_Camera_BoundsColorGammaA_Int32 = "cameraBoundsColorGammaA"; +static const char * k_pch_Camera_BoundsStrength_Int32 = "cameraBoundsStrength"; +static const char * k_pch_audio_Section = "audio"; +static const char * k_pch_audio_OnPlaybackDevice_String = "onPlaybackDevice"; +static const char * k_pch_audio_OnRecordDevice_String = "onRecordDevice"; +static const char * k_pch_audio_OnPlaybackMirrorDevice_String = "onPlaybackMirrorDevice"; +static const char * k_pch_audio_OffPlaybackDevice_String = "offPlaybackDevice"; +static const char * k_pch_audio_OffRecordDevice_String = "offRecordDevice"; +static const char * k_pch_audio_VIVEHDMIGain = "viveHDMIGain"; +static const char * k_pch_Power_Section = "power"; +static const char * k_pch_Power_PowerOffOnExit_Bool = "powerOffOnExit"; +static const char * k_pch_Power_TurnOffScreensTimeout_Float = "turnOffScreensTimeout"; +static const char * k_pch_Power_TurnOffControllersTimeout_Float = "turnOffControllersTimeout"; +static const char * k_pch_Power_ReturnToWatchdogTimeout_Float = "returnToWatchdogTimeout"; +static const char * k_pch_Power_AutoLaunchSteamVROnButtonPress = "autoLaunchSteamVROnButtonPress"; +static const char * k_pch_Dashboard_Section = "dashboard"; +static const char * k_pch_Dashboard_EnableDashboard_Bool = "enableDashboard"; +static const char * k_pch_Dashboard_ArcadeMode_Bool = "arcadeMode"; +static const char * k_pch_modelskin_Section = "modelskins"; +static const char * k_pch_Driver_Enable_Bool = "enable"; +static const char * IVRScreenshots_Version = "IVRScreenshots_001"; +static const char * IVRResources_Version = "IVRResources_001"; +static const char * IVRDriverManager_Version = "IVRDriverManager_001"; + +// OpenVR Enums + +typedef enum EVREye +{ + EVREye_Eye_Left = 0, + EVREye_Eye_Right = 1, +} EVREye; + +typedef enum ETextureType +{ + ETextureType_TextureType_DirectX = 0, + ETextureType_TextureType_OpenGL = 1, + ETextureType_TextureType_Vulkan = 2, + ETextureType_TextureType_IOSurface = 3, + ETextureType_TextureType_DirectX12 = 4, +} ETextureType; + +typedef enum EColorSpace +{ + EColorSpace_ColorSpace_Auto = 0, + EColorSpace_ColorSpace_Gamma = 1, + EColorSpace_ColorSpace_Linear = 2, +} EColorSpace; + +typedef enum ETrackingResult +{ + ETrackingResult_TrackingResult_Uninitialized = 1, + ETrackingResult_TrackingResult_Calibrating_InProgress = 100, + ETrackingResult_TrackingResult_Calibrating_OutOfRange = 101, + ETrackingResult_TrackingResult_Running_OK = 200, + ETrackingResult_TrackingResult_Running_OutOfRange = 201, +} ETrackingResult; + +typedef enum ETrackedDeviceClass +{ + ETrackedDeviceClass_TrackedDeviceClass_Invalid = 0, + ETrackedDeviceClass_TrackedDeviceClass_HMD = 1, + ETrackedDeviceClass_TrackedDeviceClass_Controller = 2, + ETrackedDeviceClass_TrackedDeviceClass_GenericTracker = 3, + ETrackedDeviceClass_TrackedDeviceClass_TrackingReference = 4, + ETrackedDeviceClass_TrackedDeviceClass_DisplayRedirect = 5, +} ETrackedDeviceClass; + +typedef enum ETrackedControllerRole +{ + ETrackedControllerRole_TrackedControllerRole_Invalid = 0, + ETrackedControllerRole_TrackedControllerRole_LeftHand = 1, + ETrackedControllerRole_TrackedControllerRole_RightHand = 2, +} ETrackedControllerRole; + +typedef enum ETrackingUniverseOrigin +{ + ETrackingUniverseOrigin_TrackingUniverseSeated = 0, + ETrackingUniverseOrigin_TrackingUniverseStanding = 1, + ETrackingUniverseOrigin_TrackingUniverseRawAndUncalibrated = 2, +} ETrackingUniverseOrigin; + +typedef enum ETrackedDeviceProperty +{ + ETrackedDeviceProperty_Prop_Invalid = 0, + ETrackedDeviceProperty_Prop_TrackingSystemName_String = 1000, + ETrackedDeviceProperty_Prop_ModelNumber_String = 1001, + ETrackedDeviceProperty_Prop_SerialNumber_String = 1002, + ETrackedDeviceProperty_Prop_RenderModelName_String = 1003, + ETrackedDeviceProperty_Prop_WillDriftInYaw_Bool = 1004, + ETrackedDeviceProperty_Prop_ManufacturerName_String = 1005, + ETrackedDeviceProperty_Prop_TrackingFirmwareVersion_String = 1006, + ETrackedDeviceProperty_Prop_HardwareRevision_String = 1007, + ETrackedDeviceProperty_Prop_AllWirelessDongleDescriptions_String = 1008, + ETrackedDeviceProperty_Prop_ConnectedWirelessDongle_String = 1009, + ETrackedDeviceProperty_Prop_DeviceIsWireless_Bool = 1010, + ETrackedDeviceProperty_Prop_DeviceIsCharging_Bool = 1011, + ETrackedDeviceProperty_Prop_DeviceBatteryPercentage_Float = 1012, + ETrackedDeviceProperty_Prop_StatusDisplayTransform_Matrix34 = 1013, + ETrackedDeviceProperty_Prop_Firmware_UpdateAvailable_Bool = 1014, + ETrackedDeviceProperty_Prop_Firmware_ManualUpdate_Bool = 1015, + ETrackedDeviceProperty_Prop_Firmware_ManualUpdateURL_String = 1016, + ETrackedDeviceProperty_Prop_HardwareRevision_Uint64 = 1017, + ETrackedDeviceProperty_Prop_FirmwareVersion_Uint64 = 1018, + ETrackedDeviceProperty_Prop_FPGAVersion_Uint64 = 1019, + ETrackedDeviceProperty_Prop_VRCVersion_Uint64 = 1020, + ETrackedDeviceProperty_Prop_RadioVersion_Uint64 = 1021, + ETrackedDeviceProperty_Prop_DongleVersion_Uint64 = 1022, + ETrackedDeviceProperty_Prop_BlockServerShutdown_Bool = 1023, + ETrackedDeviceProperty_Prop_CanUnifyCoordinateSystemWithHmd_Bool = 1024, + ETrackedDeviceProperty_Prop_ContainsProximitySensor_Bool = 1025, + ETrackedDeviceProperty_Prop_DeviceProvidesBatteryStatus_Bool = 1026, + ETrackedDeviceProperty_Prop_DeviceCanPowerOff_Bool = 1027, + ETrackedDeviceProperty_Prop_Firmware_ProgrammingTarget_String = 1028, + ETrackedDeviceProperty_Prop_DeviceClass_Int32 = 1029, + ETrackedDeviceProperty_Prop_HasCamera_Bool = 1030, + ETrackedDeviceProperty_Prop_DriverVersion_String = 1031, + ETrackedDeviceProperty_Prop_Firmware_ForceUpdateRequired_Bool = 1032, + ETrackedDeviceProperty_Prop_ViveSystemButtonFixRequired_Bool = 1033, + ETrackedDeviceProperty_Prop_ParentDriver_Uint64 = 1034, + ETrackedDeviceProperty_Prop_ResourceRoot_String = 1035, + ETrackedDeviceProperty_Prop_ReportsTimeSinceVSync_Bool = 2000, + ETrackedDeviceProperty_Prop_SecondsFromVsyncToPhotons_Float = 2001, + ETrackedDeviceProperty_Prop_DisplayFrequency_Float = 2002, + ETrackedDeviceProperty_Prop_UserIpdMeters_Float = 2003, + ETrackedDeviceProperty_Prop_CurrentUniverseId_Uint64 = 2004, + ETrackedDeviceProperty_Prop_PreviousUniverseId_Uint64 = 2005, + ETrackedDeviceProperty_Prop_DisplayFirmwareVersion_Uint64 = 2006, + ETrackedDeviceProperty_Prop_IsOnDesktop_Bool = 2007, + ETrackedDeviceProperty_Prop_DisplayMCType_Int32 = 2008, + ETrackedDeviceProperty_Prop_DisplayMCOffset_Float = 2009, + ETrackedDeviceProperty_Prop_DisplayMCScale_Float = 2010, + ETrackedDeviceProperty_Prop_EdidVendorID_Int32 = 2011, + ETrackedDeviceProperty_Prop_DisplayMCImageLeft_String = 2012, + ETrackedDeviceProperty_Prop_DisplayMCImageRight_String = 2013, + ETrackedDeviceProperty_Prop_DisplayGCBlackClamp_Float = 2014, + ETrackedDeviceProperty_Prop_EdidProductID_Int32 = 2015, + ETrackedDeviceProperty_Prop_CameraToHeadTransform_Matrix34 = 2016, + ETrackedDeviceProperty_Prop_DisplayGCType_Int32 = 2017, + ETrackedDeviceProperty_Prop_DisplayGCOffset_Float = 2018, + ETrackedDeviceProperty_Prop_DisplayGCScale_Float = 2019, + ETrackedDeviceProperty_Prop_DisplayGCPrescale_Float = 2020, + ETrackedDeviceProperty_Prop_DisplayGCImage_String = 2021, + ETrackedDeviceProperty_Prop_LensCenterLeftU_Float = 2022, + ETrackedDeviceProperty_Prop_LensCenterLeftV_Float = 2023, + ETrackedDeviceProperty_Prop_LensCenterRightU_Float = 2024, + ETrackedDeviceProperty_Prop_LensCenterRightV_Float = 2025, + ETrackedDeviceProperty_Prop_UserHeadToEyeDepthMeters_Float = 2026, + ETrackedDeviceProperty_Prop_CameraFirmwareVersion_Uint64 = 2027, + ETrackedDeviceProperty_Prop_CameraFirmwareDescription_String = 2028, + ETrackedDeviceProperty_Prop_DisplayFPGAVersion_Uint64 = 2029, + ETrackedDeviceProperty_Prop_DisplayBootloaderVersion_Uint64 = 2030, + ETrackedDeviceProperty_Prop_DisplayHardwareVersion_Uint64 = 2031, + ETrackedDeviceProperty_Prop_AudioFirmwareVersion_Uint64 = 2032, + ETrackedDeviceProperty_Prop_CameraCompatibilityMode_Int32 = 2033, + ETrackedDeviceProperty_Prop_ScreenshotHorizontalFieldOfViewDegrees_Float = 2034, + ETrackedDeviceProperty_Prop_ScreenshotVerticalFieldOfViewDegrees_Float = 2035, + ETrackedDeviceProperty_Prop_DisplaySuppressed_Bool = 2036, + ETrackedDeviceProperty_Prop_DisplayAllowNightMode_Bool = 2037, + ETrackedDeviceProperty_Prop_DisplayMCImageWidth_Int32 = 2038, + ETrackedDeviceProperty_Prop_DisplayMCImageHeight_Int32 = 2039, + ETrackedDeviceProperty_Prop_DisplayMCImageNumChannels_Int32 = 2040, + ETrackedDeviceProperty_Prop_DisplayMCImageData_Binary = 2041, + ETrackedDeviceProperty_Prop_SecondsFromPhotonsToVblank_Float = 2042, + ETrackedDeviceProperty_Prop_DriverDirectModeSendsVsyncEvents_Bool = 2043, + ETrackedDeviceProperty_Prop_DisplayDebugMode_Bool = 2044, + ETrackedDeviceProperty_Prop_GraphicsAdapterLuid_Uint64 = 2045, + ETrackedDeviceProperty_Prop_AttachedDeviceId_String = 3000, + ETrackedDeviceProperty_Prop_SupportedButtons_Uint64 = 3001, + ETrackedDeviceProperty_Prop_Axis0Type_Int32 = 3002, + ETrackedDeviceProperty_Prop_Axis1Type_Int32 = 3003, + ETrackedDeviceProperty_Prop_Axis2Type_Int32 = 3004, + ETrackedDeviceProperty_Prop_Axis3Type_Int32 = 3005, + ETrackedDeviceProperty_Prop_Axis4Type_Int32 = 3006, + ETrackedDeviceProperty_Prop_ControllerRoleHint_Int32 = 3007, + ETrackedDeviceProperty_Prop_FieldOfViewLeftDegrees_Float = 4000, + ETrackedDeviceProperty_Prop_FieldOfViewRightDegrees_Float = 4001, + ETrackedDeviceProperty_Prop_FieldOfViewTopDegrees_Float = 4002, + ETrackedDeviceProperty_Prop_FieldOfViewBottomDegrees_Float = 4003, + ETrackedDeviceProperty_Prop_TrackingRangeMinimumMeters_Float = 4004, + ETrackedDeviceProperty_Prop_TrackingRangeMaximumMeters_Float = 4005, + ETrackedDeviceProperty_Prop_ModeLabel_String = 4006, + ETrackedDeviceProperty_Prop_IconPathName_String = 5000, + ETrackedDeviceProperty_Prop_NamedIconPathDeviceOff_String = 5001, + ETrackedDeviceProperty_Prop_NamedIconPathDeviceSearching_String = 5002, + ETrackedDeviceProperty_Prop_NamedIconPathDeviceSearchingAlert_String = 5003, + ETrackedDeviceProperty_Prop_NamedIconPathDeviceReady_String = 5004, + ETrackedDeviceProperty_Prop_NamedIconPathDeviceReadyAlert_String = 5005, + ETrackedDeviceProperty_Prop_NamedIconPathDeviceNotReady_String = 5006, + ETrackedDeviceProperty_Prop_NamedIconPathDeviceStandby_String = 5007, + ETrackedDeviceProperty_Prop_NamedIconPathDeviceAlertLow_String = 5008, + ETrackedDeviceProperty_Prop_DisplayHiddenArea_Binary_Start = 5100, + ETrackedDeviceProperty_Prop_DisplayHiddenArea_Binary_End = 5150, + ETrackedDeviceProperty_Prop_UserConfigPath_String = 6000, + ETrackedDeviceProperty_Prop_InstallPath_String = 6001, + ETrackedDeviceProperty_Prop_HasDisplayComponent_Bool = 6002, + ETrackedDeviceProperty_Prop_HasControllerComponent_Bool = 6003, + ETrackedDeviceProperty_Prop_HasCameraComponent_Bool = 6004, + ETrackedDeviceProperty_Prop_HasDriverDirectModeComponent_Bool = 6005, + ETrackedDeviceProperty_Prop_HasVirtualDisplayComponent_Bool = 6006, + ETrackedDeviceProperty_Prop_VendorSpecific_Reserved_Start = 10000, + ETrackedDeviceProperty_Prop_VendorSpecific_Reserved_End = 10999, +} ETrackedDeviceProperty; + +typedef enum ETrackedPropertyError +{ + ETrackedPropertyError_TrackedProp_Success = 0, + ETrackedPropertyError_TrackedProp_WrongDataType = 1, + ETrackedPropertyError_TrackedProp_WrongDeviceClass = 2, + ETrackedPropertyError_TrackedProp_BufferTooSmall = 3, + ETrackedPropertyError_TrackedProp_UnknownProperty = 4, + ETrackedPropertyError_TrackedProp_InvalidDevice = 5, + ETrackedPropertyError_TrackedProp_CouldNotContactServer = 6, + ETrackedPropertyError_TrackedProp_ValueNotProvidedByDevice = 7, + ETrackedPropertyError_TrackedProp_StringExceedsMaximumLength = 8, + ETrackedPropertyError_TrackedProp_NotYetAvailable = 9, + ETrackedPropertyError_TrackedProp_PermissionDenied = 10, + ETrackedPropertyError_TrackedProp_InvalidOperation = 11, +} ETrackedPropertyError; + +typedef enum EVRSubmitFlags +{ + EVRSubmitFlags_Submit_Default = 0, + EVRSubmitFlags_Submit_LensDistortionAlreadyApplied = 1, + EVRSubmitFlags_Submit_GlRenderBuffer = 2, + EVRSubmitFlags_Submit_Reserved = 4, +} EVRSubmitFlags; + +typedef enum EVRState +{ + EVRState_VRState_Undefined = -1, + EVRState_VRState_Off = 0, + EVRState_VRState_Searching = 1, + EVRState_VRState_Searching_Alert = 2, + EVRState_VRState_Ready = 3, + EVRState_VRState_Ready_Alert = 4, + EVRState_VRState_NotReady = 5, + EVRState_VRState_Standby = 6, + EVRState_VRState_Ready_Alert_Low = 7, +} EVRState; + +typedef enum EVREventType +{ + EVREventType_VREvent_None = 0, + EVREventType_VREvent_TrackedDeviceActivated = 100, + EVREventType_VREvent_TrackedDeviceDeactivated = 101, + EVREventType_VREvent_TrackedDeviceUpdated = 102, + EVREventType_VREvent_TrackedDeviceUserInteractionStarted = 103, + EVREventType_VREvent_TrackedDeviceUserInteractionEnded = 104, + EVREventType_VREvent_IpdChanged = 105, + EVREventType_VREvent_EnterStandbyMode = 106, + EVREventType_VREvent_LeaveStandbyMode = 107, + EVREventType_VREvent_TrackedDeviceRoleChanged = 108, + EVREventType_VREvent_WatchdogWakeUpRequested = 109, + EVREventType_VREvent_LensDistortionChanged = 110, + EVREventType_VREvent_PropertyChanged = 111, + EVREventType_VREvent_ButtonPress = 200, + EVREventType_VREvent_ButtonUnpress = 201, + EVREventType_VREvent_ButtonTouch = 202, + EVREventType_VREvent_ButtonUntouch = 203, + EVREventType_VREvent_MouseMove = 300, + EVREventType_VREvent_MouseButtonDown = 301, + EVREventType_VREvent_MouseButtonUp = 302, + EVREventType_VREvent_FocusEnter = 303, + EVREventType_VREvent_FocusLeave = 304, + EVREventType_VREvent_Scroll = 305, + EVREventType_VREvent_TouchPadMove = 306, + EVREventType_VREvent_OverlayFocusChanged = 307, + EVREventType_VREvent_InputFocusCaptured = 400, + EVREventType_VREvent_InputFocusReleased = 401, + EVREventType_VREvent_SceneFocusLost = 402, + EVREventType_VREvent_SceneFocusGained = 403, + EVREventType_VREvent_SceneApplicationChanged = 404, + EVREventType_VREvent_SceneFocusChanged = 405, + EVREventType_VREvent_InputFocusChanged = 406, + EVREventType_VREvent_SceneApplicationSecondaryRenderingStarted = 407, + EVREventType_VREvent_HideRenderModels = 410, + EVREventType_VREvent_ShowRenderModels = 411, + EVREventType_VREvent_OverlayShown = 500, + EVREventType_VREvent_OverlayHidden = 501, + EVREventType_VREvent_DashboardActivated = 502, + EVREventType_VREvent_DashboardDeactivated = 503, + EVREventType_VREvent_DashboardThumbSelected = 504, + EVREventType_VREvent_DashboardRequested = 505, + EVREventType_VREvent_ResetDashboard = 506, + EVREventType_VREvent_RenderToast = 507, + EVREventType_VREvent_ImageLoaded = 508, + EVREventType_VREvent_ShowKeyboard = 509, + EVREventType_VREvent_HideKeyboard = 510, + EVREventType_VREvent_OverlayGamepadFocusGained = 511, + EVREventType_VREvent_OverlayGamepadFocusLost = 512, + EVREventType_VREvent_OverlaySharedTextureChanged = 513, + EVREventType_VREvent_DashboardGuideButtonDown = 514, + EVREventType_VREvent_DashboardGuideButtonUp = 515, + EVREventType_VREvent_ScreenshotTriggered = 516, + EVREventType_VREvent_ImageFailed = 517, + EVREventType_VREvent_DashboardOverlayCreated = 518, + EVREventType_VREvent_RequestScreenshot = 520, + EVREventType_VREvent_ScreenshotTaken = 521, + EVREventType_VREvent_ScreenshotFailed = 522, + EVREventType_VREvent_SubmitScreenshotToDashboard = 523, + EVREventType_VREvent_ScreenshotProgressToDashboard = 524, + EVREventType_VREvent_PrimaryDashboardDeviceChanged = 525, + EVREventType_VREvent_Notification_Shown = 600, + EVREventType_VREvent_Notification_Hidden = 601, + EVREventType_VREvent_Notification_BeginInteraction = 602, + EVREventType_VREvent_Notification_Destroyed = 603, + EVREventType_VREvent_Quit = 700, + EVREventType_VREvent_ProcessQuit = 701, + EVREventType_VREvent_QuitAborted_UserPrompt = 702, + EVREventType_VREvent_QuitAcknowledged = 703, + EVREventType_VREvent_DriverRequestedQuit = 704, + EVREventType_VREvent_ChaperoneDataHasChanged = 800, + EVREventType_VREvent_ChaperoneUniverseHasChanged = 801, + EVREventType_VREvent_ChaperoneTempDataHasChanged = 802, + EVREventType_VREvent_ChaperoneSettingsHaveChanged = 803, + EVREventType_VREvent_SeatedZeroPoseReset = 804, + EVREventType_VREvent_AudioSettingsHaveChanged = 820, + EVREventType_VREvent_BackgroundSettingHasChanged = 850, + EVREventType_VREvent_CameraSettingsHaveChanged = 851, + EVREventType_VREvent_ReprojectionSettingHasChanged = 852, + EVREventType_VREvent_ModelSkinSettingsHaveChanged = 853, + EVREventType_VREvent_EnvironmentSettingsHaveChanged = 854, + EVREventType_VREvent_PowerSettingsHaveChanged = 855, + EVREventType_VREvent_EnableHomeAppSettingsHaveChanged = 856, + EVREventType_VREvent_StatusUpdate = 900, + EVREventType_VREvent_MCImageUpdated = 1000, + EVREventType_VREvent_FirmwareUpdateStarted = 1100, + EVREventType_VREvent_FirmwareUpdateFinished = 1101, + EVREventType_VREvent_KeyboardClosed = 1200, + EVREventType_VREvent_KeyboardCharInput = 1201, + EVREventType_VREvent_KeyboardDone = 1202, + EVREventType_VREvent_ApplicationTransitionStarted = 1300, + EVREventType_VREvent_ApplicationTransitionAborted = 1301, + EVREventType_VREvent_ApplicationTransitionNewAppStarted = 1302, + EVREventType_VREvent_ApplicationListUpdated = 1303, + EVREventType_VREvent_ApplicationMimeTypeLoad = 1304, + EVREventType_VREvent_ApplicationTransitionNewAppLaunchComplete = 1305, + EVREventType_VREvent_ProcessConnected = 1306, + EVREventType_VREvent_ProcessDisconnected = 1307, + EVREventType_VREvent_Compositor_MirrorWindowShown = 1400, + EVREventType_VREvent_Compositor_MirrorWindowHidden = 1401, + EVREventType_VREvent_Compositor_ChaperoneBoundsShown = 1410, + EVREventType_VREvent_Compositor_ChaperoneBoundsHidden = 1411, + EVREventType_VREvent_TrackedCamera_StartVideoStream = 1500, + EVREventType_VREvent_TrackedCamera_StopVideoStream = 1501, + EVREventType_VREvent_TrackedCamera_PauseVideoStream = 1502, + EVREventType_VREvent_TrackedCamera_ResumeVideoStream = 1503, + EVREventType_VREvent_TrackedCamera_EditingSurface = 1550, + EVREventType_VREvent_PerformanceTest_EnableCapture = 1600, + EVREventType_VREvent_PerformanceTest_DisableCapture = 1601, + EVREventType_VREvent_PerformanceTest_FidelityLevel = 1602, + EVREventType_VREvent_MessageOverlay_Closed = 1650, + EVREventType_VREvent_VendorSpecific_Reserved_Start = 10000, + EVREventType_VREvent_VendorSpecific_Reserved_End = 19999, +} EVREventType; + +typedef enum EDeviceActivityLevel +{ + EDeviceActivityLevel_k_EDeviceActivityLevel_Unknown = -1, + EDeviceActivityLevel_k_EDeviceActivityLevel_Idle = 0, + EDeviceActivityLevel_k_EDeviceActivityLevel_UserInteraction = 1, + EDeviceActivityLevel_k_EDeviceActivityLevel_UserInteraction_Timeout = 2, + EDeviceActivityLevel_k_EDeviceActivityLevel_Standby = 3, +} EDeviceActivityLevel; + +typedef enum EVRButtonId +{ + EVRButtonId_k_EButton_System = 0, + EVRButtonId_k_EButton_ApplicationMenu = 1, + EVRButtonId_k_EButton_Grip = 2, + EVRButtonId_k_EButton_DPad_Left = 3, + EVRButtonId_k_EButton_DPad_Up = 4, + EVRButtonId_k_EButton_DPad_Right = 5, + EVRButtonId_k_EButton_DPad_Down = 6, + EVRButtonId_k_EButton_A = 7, + EVRButtonId_k_EButton_ProximitySensor = 31, + EVRButtonId_k_EButton_Axis0 = 32, + EVRButtonId_k_EButton_Axis1 = 33, + EVRButtonId_k_EButton_Axis2 = 34, + EVRButtonId_k_EButton_Axis3 = 35, + EVRButtonId_k_EButton_Axis4 = 36, + EVRButtonId_k_EButton_SteamVR_Touchpad = 32, + EVRButtonId_k_EButton_SteamVR_Trigger = 33, + EVRButtonId_k_EButton_Dashboard_Back = 2, + EVRButtonId_k_EButton_Max = 64, +} EVRButtonId; + +typedef enum EVRMouseButton +{ + EVRMouseButton_VRMouseButton_Left = 1, + EVRMouseButton_VRMouseButton_Right = 2, + EVRMouseButton_VRMouseButton_Middle = 4, +} EVRMouseButton; + +typedef enum EHiddenAreaMeshType +{ + EHiddenAreaMeshType_k_eHiddenAreaMesh_Standard = 0, + EHiddenAreaMeshType_k_eHiddenAreaMesh_Inverse = 1, + EHiddenAreaMeshType_k_eHiddenAreaMesh_LineLoop = 2, + EHiddenAreaMeshType_k_eHiddenAreaMesh_Max = 3, +} EHiddenAreaMeshType; + +typedef enum EVRControllerAxisType +{ + EVRControllerAxisType_k_eControllerAxis_None = 0, + EVRControllerAxisType_k_eControllerAxis_TrackPad = 1, + EVRControllerAxisType_k_eControllerAxis_Joystick = 2, + EVRControllerAxisType_k_eControllerAxis_Trigger = 3, +} EVRControllerAxisType; + +typedef enum EVRControllerEventOutputType +{ + EVRControllerEventOutputType_ControllerEventOutput_OSEvents = 0, + EVRControllerEventOutputType_ControllerEventOutput_VREvents = 1, +} EVRControllerEventOutputType; + +typedef enum ECollisionBoundsStyle +{ + ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_BEGINNER = 0, + ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_INTERMEDIATE = 1, + ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_SQUARES = 2, + ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_ADVANCED = 3, + ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_NONE = 4, + ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_COUNT = 5, +} ECollisionBoundsStyle; + +typedef enum EVROverlayError +{ + EVROverlayError_VROverlayError_None = 0, + EVROverlayError_VROverlayError_UnknownOverlay = 10, + EVROverlayError_VROverlayError_InvalidHandle = 11, + EVROverlayError_VROverlayError_PermissionDenied = 12, + EVROverlayError_VROverlayError_OverlayLimitExceeded = 13, + EVROverlayError_VROverlayError_WrongVisibilityType = 14, + EVROverlayError_VROverlayError_KeyTooLong = 15, + EVROverlayError_VROverlayError_NameTooLong = 16, + EVROverlayError_VROverlayError_KeyInUse = 17, + EVROverlayError_VROverlayError_WrongTransformType = 18, + EVROverlayError_VROverlayError_InvalidTrackedDevice = 19, + EVROverlayError_VROverlayError_InvalidParameter = 20, + EVROverlayError_VROverlayError_ThumbnailCantBeDestroyed = 21, + EVROverlayError_VROverlayError_ArrayTooSmall = 22, + EVROverlayError_VROverlayError_RequestFailed = 23, + EVROverlayError_VROverlayError_InvalidTexture = 24, + EVROverlayError_VROverlayError_UnableToLoadFile = 25, + EVROverlayError_VROverlayError_KeyboardAlreadyInUse = 26, + EVROverlayError_VROverlayError_NoNeighbor = 27, + EVROverlayError_VROverlayError_TooManyMaskPrimitives = 29, + EVROverlayError_VROverlayError_BadMaskPrimitive = 30, +} EVROverlayError; + +typedef enum EVRApplicationType +{ + EVRApplicationType_VRApplication_Other = 0, + EVRApplicationType_VRApplication_Scene = 1, + EVRApplicationType_VRApplication_Overlay = 2, + EVRApplicationType_VRApplication_Background = 3, + EVRApplicationType_VRApplication_Utility = 4, + EVRApplicationType_VRApplication_VRMonitor = 5, + EVRApplicationType_VRApplication_SteamWatchdog = 6, + EVRApplicationType_VRApplication_Bootstrapper = 7, + EVRApplicationType_VRApplication_Max = 8, +} EVRApplicationType; + +typedef enum EVRFirmwareError +{ + EVRFirmwareError_VRFirmwareError_None = 0, + EVRFirmwareError_VRFirmwareError_Success = 1, + EVRFirmwareError_VRFirmwareError_Fail = 2, +} EVRFirmwareError; + +typedef enum EVRNotificationError +{ + EVRNotificationError_VRNotificationError_OK = 0, + EVRNotificationError_VRNotificationError_InvalidNotificationId = 100, + EVRNotificationError_VRNotificationError_NotificationQueueFull = 101, + EVRNotificationError_VRNotificationError_InvalidOverlayHandle = 102, + EVRNotificationError_VRNotificationError_SystemWithUserValueAlreadyExists = 103, +} EVRNotificationError; + +typedef enum EVRInitError +{ + EVRInitError_VRInitError_None = 0, + EVRInitError_VRInitError_Unknown = 1, + EVRInitError_VRInitError_Init_InstallationNotFound = 100, + EVRInitError_VRInitError_Init_InstallationCorrupt = 101, + EVRInitError_VRInitError_Init_VRClientDLLNotFound = 102, + EVRInitError_VRInitError_Init_FileNotFound = 103, + EVRInitError_VRInitError_Init_FactoryNotFound = 104, + EVRInitError_VRInitError_Init_InterfaceNotFound = 105, + EVRInitError_VRInitError_Init_InvalidInterface = 106, + EVRInitError_VRInitError_Init_UserConfigDirectoryInvalid = 107, + EVRInitError_VRInitError_Init_HmdNotFound = 108, + EVRInitError_VRInitError_Init_NotInitialized = 109, + EVRInitError_VRInitError_Init_PathRegistryNotFound = 110, + EVRInitError_VRInitError_Init_NoConfigPath = 111, + EVRInitError_VRInitError_Init_NoLogPath = 112, + EVRInitError_VRInitError_Init_PathRegistryNotWritable = 113, + EVRInitError_VRInitError_Init_AppInfoInitFailed = 114, + EVRInitError_VRInitError_Init_Retry = 115, + EVRInitError_VRInitError_Init_InitCanceledByUser = 116, + EVRInitError_VRInitError_Init_AnotherAppLaunching = 117, + EVRInitError_VRInitError_Init_SettingsInitFailed = 118, + EVRInitError_VRInitError_Init_ShuttingDown = 119, + EVRInitError_VRInitError_Init_TooManyObjects = 120, + EVRInitError_VRInitError_Init_NoServerForBackgroundApp = 121, + EVRInitError_VRInitError_Init_NotSupportedWithCompositor = 122, + EVRInitError_VRInitError_Init_NotAvailableToUtilityApps = 123, + EVRInitError_VRInitError_Init_Internal = 124, + EVRInitError_VRInitError_Init_HmdDriverIdIsNone = 125, + EVRInitError_VRInitError_Init_HmdNotFoundPresenceFailed = 126, + EVRInitError_VRInitError_Init_VRMonitorNotFound = 127, + EVRInitError_VRInitError_Init_VRMonitorStartupFailed = 128, + EVRInitError_VRInitError_Init_LowPowerWatchdogNotSupported = 129, + EVRInitError_VRInitError_Init_InvalidApplicationType = 130, + EVRInitError_VRInitError_Init_NotAvailableToWatchdogApps = 131, + EVRInitError_VRInitError_Init_WatchdogDisabledInSettings = 132, + EVRInitError_VRInitError_Init_VRDashboardNotFound = 133, + EVRInitError_VRInitError_Init_VRDashboardStartupFailed = 134, + EVRInitError_VRInitError_Init_VRHomeNotFound = 135, + EVRInitError_VRInitError_Init_VRHomeStartupFailed = 136, + EVRInitError_VRInitError_Driver_Failed = 200, + EVRInitError_VRInitError_Driver_Unknown = 201, + EVRInitError_VRInitError_Driver_HmdUnknown = 202, + EVRInitError_VRInitError_Driver_NotLoaded = 203, + EVRInitError_VRInitError_Driver_RuntimeOutOfDate = 204, + EVRInitError_VRInitError_Driver_HmdInUse = 205, + EVRInitError_VRInitError_Driver_NotCalibrated = 206, + EVRInitError_VRInitError_Driver_CalibrationInvalid = 207, + EVRInitError_VRInitError_Driver_HmdDisplayNotFound = 208, + EVRInitError_VRInitError_Driver_TrackedDeviceInterfaceUnknown = 209, + EVRInitError_VRInitError_Driver_HmdDriverIdOutOfBounds = 211, + EVRInitError_VRInitError_Driver_HmdDisplayMirrored = 212, + EVRInitError_VRInitError_IPC_ServerInitFailed = 300, + EVRInitError_VRInitError_IPC_ConnectFailed = 301, + EVRInitError_VRInitError_IPC_SharedStateInitFailed = 302, + EVRInitError_VRInitError_IPC_CompositorInitFailed = 303, + EVRInitError_VRInitError_IPC_MutexInitFailed = 304, + EVRInitError_VRInitError_IPC_Failed = 305, + EVRInitError_VRInitError_IPC_CompositorConnectFailed = 306, + EVRInitError_VRInitError_IPC_CompositorInvalidConnectResponse = 307, + EVRInitError_VRInitError_IPC_ConnectFailedAfterMultipleAttempts = 308, + EVRInitError_VRInitError_Compositor_Failed = 400, + EVRInitError_VRInitError_Compositor_D3D11HardwareRequired = 401, + EVRInitError_VRInitError_Compositor_FirmwareRequiresUpdate = 402, + EVRInitError_VRInitError_Compositor_OverlayInitFailed = 403, + EVRInitError_VRInitError_Compositor_ScreenshotsInitFailed = 404, + EVRInitError_VRInitError_Compositor_UnableToCreateDevice = 405, + EVRInitError_VRInitError_VendorSpecific_UnableToConnectToOculusRuntime = 1000, + EVRInitError_VRInitError_VendorSpecific_HmdFound_CantOpenDevice = 1101, + EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102, + EVRInitError_VRInitError_VendorSpecific_HmdFound_NoStoredConfig = 1103, + EVRInitError_VRInitError_VendorSpecific_HmdFound_ConfigTooBig = 1104, + EVRInitError_VRInitError_VendorSpecific_HmdFound_ConfigTooSmall = 1105, + EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToInitZLib = 1106, + EVRInitError_VRInitError_VendorSpecific_HmdFound_CantReadFirmwareVersion = 1107, + EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToSendUserDataStart = 1108, + EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataStart = 1109, + EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataNext = 1110, + EVRInitError_VRInitError_VendorSpecific_HmdFound_UserDataAddressRange = 1111, + EVRInitError_VRInitError_VendorSpecific_HmdFound_UserDataError = 1112, + EVRInitError_VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck = 1113, + EVRInitError_VRInitError_Steam_SteamInstallationNotFound = 2000, +} EVRInitError; + +typedef enum EVRScreenshotType +{ + EVRScreenshotType_VRScreenshotType_None = 0, + EVRScreenshotType_VRScreenshotType_Mono = 1, + EVRScreenshotType_VRScreenshotType_Stereo = 2, + EVRScreenshotType_VRScreenshotType_Cubemap = 3, + EVRScreenshotType_VRScreenshotType_MonoPanorama = 4, + EVRScreenshotType_VRScreenshotType_StereoPanorama = 5, +} EVRScreenshotType; + +typedef enum EVRScreenshotPropertyFilenames +{ + EVRScreenshotPropertyFilenames_VRScreenshotPropertyFilenames_Preview = 0, + EVRScreenshotPropertyFilenames_VRScreenshotPropertyFilenames_VR = 1, +} EVRScreenshotPropertyFilenames; + +typedef enum EVRTrackedCameraError +{ + EVRTrackedCameraError_VRTrackedCameraError_None = 0, + EVRTrackedCameraError_VRTrackedCameraError_OperationFailed = 100, + EVRTrackedCameraError_VRTrackedCameraError_InvalidHandle = 101, + EVRTrackedCameraError_VRTrackedCameraError_InvalidFrameHeaderVersion = 102, + EVRTrackedCameraError_VRTrackedCameraError_OutOfHandles = 103, + EVRTrackedCameraError_VRTrackedCameraError_IPCFailure = 104, + EVRTrackedCameraError_VRTrackedCameraError_NotSupportedForThisDevice = 105, + EVRTrackedCameraError_VRTrackedCameraError_SharedMemoryFailure = 106, + EVRTrackedCameraError_VRTrackedCameraError_FrameBufferingFailure = 107, + EVRTrackedCameraError_VRTrackedCameraError_StreamSetupFailure = 108, + EVRTrackedCameraError_VRTrackedCameraError_InvalidGLTextureId = 109, + EVRTrackedCameraError_VRTrackedCameraError_InvalidSharedTextureHandle = 110, + EVRTrackedCameraError_VRTrackedCameraError_FailedToGetGLTextureId = 111, + EVRTrackedCameraError_VRTrackedCameraError_SharedTextureFailure = 112, + EVRTrackedCameraError_VRTrackedCameraError_NoFrameAvailable = 113, + EVRTrackedCameraError_VRTrackedCameraError_InvalidArgument = 114, + EVRTrackedCameraError_VRTrackedCameraError_InvalidFrameBufferSize = 115, +} EVRTrackedCameraError; + +typedef enum EVRTrackedCameraFrameType +{ + EVRTrackedCameraFrameType_VRTrackedCameraFrameType_Distorted = 0, + EVRTrackedCameraFrameType_VRTrackedCameraFrameType_Undistorted = 1, + EVRTrackedCameraFrameType_VRTrackedCameraFrameType_MaximumUndistorted = 2, + EVRTrackedCameraFrameType_MAX_CAMERA_FRAME_TYPES = 3, +} EVRTrackedCameraFrameType; + +typedef enum EVRApplicationError +{ + EVRApplicationError_VRApplicationError_None = 0, + EVRApplicationError_VRApplicationError_AppKeyAlreadyExists = 100, + EVRApplicationError_VRApplicationError_NoManifest = 101, + EVRApplicationError_VRApplicationError_NoApplication = 102, + EVRApplicationError_VRApplicationError_InvalidIndex = 103, + EVRApplicationError_VRApplicationError_UnknownApplication = 104, + EVRApplicationError_VRApplicationError_IPCFailed = 105, + EVRApplicationError_VRApplicationError_ApplicationAlreadyRunning = 106, + EVRApplicationError_VRApplicationError_InvalidManifest = 107, + EVRApplicationError_VRApplicationError_InvalidApplication = 108, + EVRApplicationError_VRApplicationError_LaunchFailed = 109, + EVRApplicationError_VRApplicationError_ApplicationAlreadyStarting = 110, + EVRApplicationError_VRApplicationError_LaunchInProgress = 111, + EVRApplicationError_VRApplicationError_OldApplicationQuitting = 112, + EVRApplicationError_VRApplicationError_TransitionAborted = 113, + EVRApplicationError_VRApplicationError_IsTemplate = 114, + EVRApplicationError_VRApplicationError_BufferTooSmall = 200, + EVRApplicationError_VRApplicationError_PropertyNotSet = 201, + EVRApplicationError_VRApplicationError_UnknownProperty = 202, + EVRApplicationError_VRApplicationError_InvalidParameter = 203, +} EVRApplicationError; + +typedef enum EVRApplicationProperty +{ + EVRApplicationProperty_VRApplicationProperty_Name_String = 0, + EVRApplicationProperty_VRApplicationProperty_LaunchType_String = 11, + EVRApplicationProperty_VRApplicationProperty_WorkingDirectory_String = 12, + EVRApplicationProperty_VRApplicationProperty_BinaryPath_String = 13, + EVRApplicationProperty_VRApplicationProperty_Arguments_String = 14, + EVRApplicationProperty_VRApplicationProperty_URL_String = 15, + EVRApplicationProperty_VRApplicationProperty_Description_String = 50, + EVRApplicationProperty_VRApplicationProperty_NewsURL_String = 51, + EVRApplicationProperty_VRApplicationProperty_ImagePath_String = 52, + EVRApplicationProperty_VRApplicationProperty_Source_String = 53, + EVRApplicationProperty_VRApplicationProperty_IsDashboardOverlay_Bool = 60, + EVRApplicationProperty_VRApplicationProperty_IsTemplate_Bool = 61, + EVRApplicationProperty_VRApplicationProperty_IsInstanced_Bool = 62, + EVRApplicationProperty_VRApplicationProperty_IsInternal_Bool = 63, + EVRApplicationProperty_VRApplicationProperty_LastLaunchTime_Uint64 = 70, +} EVRApplicationProperty; + +typedef enum EVRApplicationTransitionState +{ + EVRApplicationTransitionState_VRApplicationTransition_None = 0, + EVRApplicationTransitionState_VRApplicationTransition_OldAppQuitSent = 10, + EVRApplicationTransitionState_VRApplicationTransition_WaitingForExternalLaunch = 11, + EVRApplicationTransitionState_VRApplicationTransition_NewAppLaunched = 20, +} EVRApplicationTransitionState; + +typedef enum ChaperoneCalibrationState +{ + ChaperoneCalibrationState_OK = 1, + ChaperoneCalibrationState_Warning = 100, + ChaperoneCalibrationState_Warning_BaseStationMayHaveMoved = 101, + ChaperoneCalibrationState_Warning_BaseStationRemoved = 102, + ChaperoneCalibrationState_Warning_SeatedBoundsInvalid = 103, + ChaperoneCalibrationState_Error = 200, + ChaperoneCalibrationState_Error_BaseStationUninitialized = 201, + ChaperoneCalibrationState_Error_BaseStationConflict = 202, + ChaperoneCalibrationState_Error_PlayAreaInvalid = 203, + ChaperoneCalibrationState_Error_CollisionBoundsInvalid = 204, +} ChaperoneCalibrationState; + +typedef enum EChaperoneConfigFile +{ + EChaperoneConfigFile_Live = 1, + EChaperoneConfigFile_Temp = 2, +} EChaperoneConfigFile; + +typedef enum EChaperoneImportFlags +{ + EChaperoneImportFlags_EChaperoneImport_BoundsOnly = 1, +} EChaperoneImportFlags; + +typedef enum EVRCompositorError +{ + EVRCompositorError_VRCompositorError_None = 0, + EVRCompositorError_VRCompositorError_RequestFailed = 1, + EVRCompositorError_VRCompositorError_IncompatibleVersion = 100, + EVRCompositorError_VRCompositorError_DoNotHaveFocus = 101, + EVRCompositorError_VRCompositorError_InvalidTexture = 102, + EVRCompositorError_VRCompositorError_IsNotSceneApplication = 103, + EVRCompositorError_VRCompositorError_TextureIsOnWrongDevice = 104, + EVRCompositorError_VRCompositorError_TextureUsesUnsupportedFormat = 105, + EVRCompositorError_VRCompositorError_SharedTexturesNotSupported = 106, + EVRCompositorError_VRCompositorError_IndexOutOfRange = 107, + EVRCompositorError_VRCompositorError_AlreadySubmitted = 108, +} EVRCompositorError; + +typedef enum VROverlayInputMethod +{ + VROverlayInputMethod_None = 0, + VROverlayInputMethod_Mouse = 1, +} VROverlayInputMethod; + +typedef enum VROverlayTransformType +{ + VROverlayTransformType_VROverlayTransform_Absolute = 0, + VROverlayTransformType_VROverlayTransform_TrackedDeviceRelative = 1, + VROverlayTransformType_VROverlayTransform_SystemOverlay = 2, + VROverlayTransformType_VROverlayTransform_TrackedComponent = 3, +} VROverlayTransformType; + +typedef enum VROverlayFlags +{ + VROverlayFlags_None = 0, + VROverlayFlags_Curved = 1, + VROverlayFlags_RGSS4X = 2, + VROverlayFlags_NoDashboardTab = 3, + VROverlayFlags_AcceptsGamepadEvents = 4, + VROverlayFlags_ShowGamepadFocus = 5, + VROverlayFlags_SendVRScrollEvents = 6, + VROverlayFlags_SendVRTouchpadEvents = 7, + VROverlayFlags_ShowTouchPadScrollWheel = 8, + VROverlayFlags_TransferOwnershipToInternalProcess = 9, + VROverlayFlags_SideBySide_Parallel = 10, + VROverlayFlags_SideBySide_Crossed = 11, + VROverlayFlags_Panorama = 12, + VROverlayFlags_StereoPanorama = 13, + VROverlayFlags_SortWithNonSceneOverlays = 14, + VROverlayFlags_VisibleInDashboard = 15, +} VROverlayFlags; + +typedef enum VRMessageOverlayResponse +{ + VRMessageOverlayResponse_ButtonPress_0 = 0, + VRMessageOverlayResponse_ButtonPress_1 = 1, + VRMessageOverlayResponse_ButtonPress_2 = 2, + VRMessageOverlayResponse_ButtonPress_3 = 3, + VRMessageOverlayResponse_CouldntFindSystemOverlay = 4, + VRMessageOverlayResponse_CouldntFindOrCreateClientOverlay = 5, + VRMessageOverlayResponse_ApplicationQuit = 6, +} VRMessageOverlayResponse; + +typedef enum EGamepadTextInputMode +{ + EGamepadTextInputMode_k_EGamepadTextInputModeNormal = 0, + EGamepadTextInputMode_k_EGamepadTextInputModePassword = 1, + EGamepadTextInputMode_k_EGamepadTextInputModeSubmit = 2, +} EGamepadTextInputMode; + +typedef enum EGamepadTextInputLineMode +{ + EGamepadTextInputLineMode_k_EGamepadTextInputLineModeSingleLine = 0, + EGamepadTextInputLineMode_k_EGamepadTextInputLineModeMultipleLines = 1, +} EGamepadTextInputLineMode; + +typedef enum EOverlayDirection +{ + EOverlayDirection_OverlayDirection_Up = 0, + EOverlayDirection_OverlayDirection_Down = 1, + EOverlayDirection_OverlayDirection_Left = 2, + EOverlayDirection_OverlayDirection_Right = 3, + EOverlayDirection_OverlayDirection_Count = 4, +} EOverlayDirection; + +typedef enum EVROverlayIntersectionMaskPrimitiveType +{ + EVROverlayIntersectionMaskPrimitiveType_OverlayIntersectionPrimitiveType_Rectangle = 0, + EVROverlayIntersectionMaskPrimitiveType_OverlayIntersectionPrimitiveType_Circle = 1, +} EVROverlayIntersectionMaskPrimitiveType; + +typedef enum EVRRenderModelError +{ + EVRRenderModelError_VRRenderModelError_None = 0, + EVRRenderModelError_VRRenderModelError_Loading = 100, + EVRRenderModelError_VRRenderModelError_NotSupported = 200, + EVRRenderModelError_VRRenderModelError_InvalidArg = 300, + EVRRenderModelError_VRRenderModelError_InvalidModel = 301, + EVRRenderModelError_VRRenderModelError_NoShapes = 302, + EVRRenderModelError_VRRenderModelError_MultipleShapes = 303, + EVRRenderModelError_VRRenderModelError_TooManyVertices = 304, + EVRRenderModelError_VRRenderModelError_MultipleTextures = 305, + EVRRenderModelError_VRRenderModelError_BufferTooSmall = 306, + EVRRenderModelError_VRRenderModelError_NotEnoughNormals = 307, + EVRRenderModelError_VRRenderModelError_NotEnoughTexCoords = 308, + EVRRenderModelError_VRRenderModelError_InvalidTexture = 400, +} EVRRenderModelError; + +typedef enum EVRComponentProperty +{ + EVRComponentProperty_VRComponentProperty_IsStatic = 1, + EVRComponentProperty_VRComponentProperty_IsVisible = 2, + EVRComponentProperty_VRComponentProperty_IsTouched = 4, + EVRComponentProperty_VRComponentProperty_IsPressed = 8, + EVRComponentProperty_VRComponentProperty_IsScrolled = 16, +} EVRComponentProperty; + +typedef enum EVRNotificationType +{ + EVRNotificationType_Transient = 0, + EVRNotificationType_Persistent = 1, + EVRNotificationType_Transient_SystemWithUserValue = 2, +} EVRNotificationType; + +typedef enum EVRNotificationStyle +{ + EVRNotificationStyle_None = 0, + EVRNotificationStyle_Application = 100, + EVRNotificationStyle_Contact_Disabled = 200, + EVRNotificationStyle_Contact_Enabled = 201, + EVRNotificationStyle_Contact_Active = 202, +} EVRNotificationStyle; + +typedef enum EVRSettingsError +{ + EVRSettingsError_VRSettingsError_None = 0, + EVRSettingsError_VRSettingsError_IPCFailed = 1, + EVRSettingsError_VRSettingsError_WriteFailed = 2, + EVRSettingsError_VRSettingsError_ReadFailed = 3, + EVRSettingsError_VRSettingsError_JsonParseFailed = 4, + EVRSettingsError_VRSettingsError_UnsetSettingHasNoDefault = 5, +} EVRSettingsError; + +typedef enum EVRScreenshotError +{ + EVRScreenshotError_VRScreenshotError_None = 0, + EVRScreenshotError_VRScreenshotError_RequestFailed = 1, + EVRScreenshotError_VRScreenshotError_IncompatibleVersion = 100, + EVRScreenshotError_VRScreenshotError_NotFound = 101, + EVRScreenshotError_VRScreenshotError_BufferTooSmall = 102, + EVRScreenshotError_VRScreenshotError_ScreenshotAlreadyInProgress = 108, +} EVRScreenshotError; + + +// OpenVR typedefs + +typedef uint32_t TrackedDeviceIndex_t; +typedef uint32_t VRNotificationId; +typedef uint64_t VROverlayHandle_t; + +typedef void * glSharedTextureHandle_t; +typedef int32_t glInt_t; +typedef uint32_t glUInt_t; +typedef uint64_t SharedTextureHandle_t; +typedef uint32_t DriverId_t; +typedef uint32_t TrackedDeviceIndex_t; +typedef uint64_t PropertyContainerHandle_t; +typedef uint32_t PropertyTypeTag_t; +typedef uint64_t VROverlayHandle_t; +typedef uint64_t TrackedCameraHandle_t; +typedef uint32_t ScreenshotHandle_t; +typedef uint32_t VRComponentProperties; +typedef int32_t TextureID_t; +typedef uint32_t VRNotificationId; +typedef EVRInitError HmdError; +typedef EVREye Hmd_Eye; +typedef EColorSpace ColorSpace; +typedef ETrackingResult HmdTrackingResult; +typedef ETrackedDeviceClass TrackedDeviceClass; +typedef ETrackingUniverseOrigin TrackingUniverseOrigin; +typedef ETrackedDeviceProperty TrackedDeviceProperty; +typedef ETrackedPropertyError TrackedPropertyError; +typedef EVRSubmitFlags VRSubmitFlags_t; +typedef EVRState VRState_t; +typedef ECollisionBoundsStyle CollisionBoundsStyle_t; +typedef EVROverlayError VROverlayError; +typedef EVRFirmwareError VRFirmwareError; +typedef EVRCompositorError VRCompositorError; +typedef EVRScreenshotError VRScreenshotsError; + +// OpenVR Structs + +typedef struct HmdMatrix34_t +{ + float m[3][4]; //float[3][4] +} HmdMatrix34_t; + +typedef struct HmdMatrix44_t +{ + float m[4][4]; //float[4][4] +} HmdMatrix44_t; + +typedef struct HmdVector3_t +{ + float v[3]; //float[3] +} HmdVector3_t; + +typedef struct HmdVector4_t +{ + float v[4]; //float[4] +} HmdVector4_t; + +typedef struct HmdVector3d_t +{ + double v[3]; //double[3] +} HmdVector3d_t; + +typedef struct HmdVector2_t +{ + float v[2]; //float[2] +} HmdVector2_t; + +typedef struct HmdQuaternion_t +{ + double w; + double x; + double y; + double z; +} HmdQuaternion_t; + +typedef struct HmdColor_t +{ + float r; + float g; + float b; + float a; +} HmdColor_t; + +typedef struct HmdQuad_t +{ + struct HmdVector3_t vCorners[4]; //struct vr::HmdVector3_t[4] +} HmdQuad_t; + +typedef struct HmdRect2_t +{ + struct HmdVector2_t vTopLeft; + struct HmdVector2_t vBottomRight; +} HmdRect2_t; + +typedef struct DistortionCoordinates_t +{ + float rfRed[2]; //float[2] + float rfGreen[2]; //float[2] + float rfBlue[2]; //float[2] +} DistortionCoordinates_t; + +typedef struct Texture_t +{ + void * handle; // void * + enum ETextureType eType; + enum EColorSpace eColorSpace; +} Texture_t; + +typedef struct TrackedDevicePose_t +{ + struct HmdMatrix34_t mDeviceToAbsoluteTracking; + struct HmdVector3_t vVelocity; + struct HmdVector3_t vAngularVelocity; + enum ETrackingResult eTrackingResult; + bool bPoseIsValid; + bool bDeviceIsConnected; +} TrackedDevicePose_t; + +typedef struct VRTextureBounds_t +{ + float uMin; + float vMin; + float uMax; + float vMax; +} VRTextureBounds_t; + +typedef struct VRVulkanTextureData_t +{ + uint64_t m_nImage; + struct VkDevice_T * m_pDevice; // struct VkDevice_T * + struct VkPhysicalDevice_T * m_pPhysicalDevice; // struct VkPhysicalDevice_T * + struct VkInstance_T * m_pInstance; // struct VkInstance_T * + struct VkQueue_T * m_pQueue; // struct VkQueue_T * + uint32_t m_nQueueFamilyIndex; + uint32_t m_nWidth; + uint32_t m_nHeight; + uint32_t m_nFormat; + uint32_t m_nSampleCount; +} VRVulkanTextureData_t; + +typedef struct D3D12TextureData_t +{ + struct ID3D12Resource * m_pResource; // struct ID3D12Resource * + struct ID3D12CommandQueue * m_pCommandQueue; // struct ID3D12CommandQueue * + uint32_t m_nNodeMask; +} D3D12TextureData_t; + +typedef struct VREvent_Controller_t +{ + uint32_t button; +} VREvent_Controller_t; + +typedef struct VREvent_Mouse_t +{ + float x; + float y; + uint32_t button; +} VREvent_Mouse_t; + +typedef struct VREvent_Scroll_t +{ + float xdelta; + float ydelta; + uint32_t repeatCount; +} VREvent_Scroll_t; + +typedef struct VREvent_TouchPadMove_t +{ + bool bFingerDown; + float flSecondsFingerDown; + float fValueXFirst; + float fValueYFirst; + float fValueXRaw; + float fValueYRaw; +} VREvent_TouchPadMove_t; + +typedef struct VREvent_Notification_t +{ + uint64_t ulUserValue; + uint32_t notificationId; +} VREvent_Notification_t; + +typedef struct VREvent_Process_t +{ + uint32_t pid; + uint32_t oldPid; + bool bForced; +} VREvent_Process_t; + +typedef struct VREvent_Overlay_t +{ + uint64_t overlayHandle; +} VREvent_Overlay_t; + +typedef struct VREvent_Status_t +{ + uint32_t statusState; +} VREvent_Status_t; + +typedef struct VREvent_Keyboard_t +{ + char * cNewInput[8]; //char[8] + uint64_t uUserValue; +} VREvent_Keyboard_t; + +typedef struct VREvent_Ipd_t +{ + float ipdMeters; +} VREvent_Ipd_t; + +typedef struct VREvent_Chaperone_t +{ + uint64_t m_nPreviousUniverse; + uint64_t m_nCurrentUniverse; +} VREvent_Chaperone_t; + +typedef struct VREvent_Reserved_t +{ + uint64_t reserved0; + uint64_t reserved1; +} VREvent_Reserved_t; + +typedef struct VREvent_PerformanceTest_t +{ + uint32_t m_nFidelityLevel; +} VREvent_PerformanceTest_t; + +typedef struct VREvent_SeatedZeroPoseReset_t +{ + bool bResetBySystemMenu; +} VREvent_SeatedZeroPoseReset_t; + +typedef struct VREvent_Screenshot_t +{ + uint32_t handle; + uint32_t type; +} VREvent_Screenshot_t; + +typedef struct VREvent_ScreenshotProgress_t +{ + float progress; +} VREvent_ScreenshotProgress_t; + +typedef struct VREvent_ApplicationLaunch_t +{ + uint32_t pid; + uint32_t unArgsHandle; +} VREvent_ApplicationLaunch_t; + +typedef struct VREvent_EditingCameraSurface_t +{ + uint64_t overlayHandle; + uint32_t nVisualMode; +} VREvent_EditingCameraSurface_t; + +typedef struct VREvent_MessageOverlay_t +{ + uint32_t unVRMessageOverlayResponse; +} VREvent_MessageOverlay_t; + +typedef struct VREvent_Property_t +{ + PropertyContainerHandle_t container; + enum ETrackedDeviceProperty prop; +} VREvent_Property_t; + +typedef struct HiddenAreaMesh_t +{ + struct HmdVector2_t * pVertexData; // const struct vr::HmdVector2_t * + uint32_t unTriangleCount; +} HiddenAreaMesh_t; + +typedef struct VRControllerAxis_t +{ + float x; + float y; +} VRControllerAxis_t; + +typedef struct VRControllerState_t +{ + uint32_t unPacketNum; + uint64_t ulButtonPressed; + uint64_t ulButtonTouched; + struct VRControllerAxis_t rAxis[5]; //struct vr::VRControllerAxis_t[5] +} VRControllerState_t; + +typedef struct Compositor_OverlaySettings +{ + uint32_t size; + bool curved; + bool antialias; + float scale; + float distance; + float alpha; + float uOffset; + float vOffset; + float uScale; + float vScale; + float gridDivs; + float gridWidth; + float gridScale; + struct HmdMatrix44_t transform; +} Compositor_OverlaySettings; + +typedef struct CameraVideoStreamFrameHeader_t +{ + enum EVRTrackedCameraFrameType eFrameType; + uint32_t nWidth; + uint32_t nHeight; + uint32_t nBytesPerPixel; + uint32_t nFrameSequence; + struct TrackedDevicePose_t standingTrackedDevicePose; +} CameraVideoStreamFrameHeader_t; + +typedef struct AppOverrideKeys_t +{ + char * pchKey; // const char * + char * pchValue; // const char * +} AppOverrideKeys_t; + +typedef struct Compositor_FrameTiming +{ + uint32_t m_nSize; + uint32_t m_nFrameIndex; + uint32_t m_nNumFramePresents; + uint32_t m_nNumMisPresented; + uint32_t m_nNumDroppedFrames; + uint32_t m_nReprojectionFlags; + double m_flSystemTimeInSeconds; + float m_flPreSubmitGpuMs; + float m_flPostSubmitGpuMs; + float m_flTotalRenderGpuMs; + float m_flCompositorRenderGpuMs; + float m_flCompositorRenderCpuMs; + float m_flCompositorIdleCpuMs; + float m_flClientFrameIntervalMs; + float m_flPresentCallCpuMs; + float m_flWaitForPresentCpuMs; + float m_flSubmitFrameMs; + float m_flWaitGetPosesCalledMs; + float m_flNewPosesReadyMs; + float m_flNewFrameReadyMs; + float m_flCompositorUpdateStartMs; + float m_flCompositorUpdateEndMs; + float m_flCompositorRenderStartMs; + TrackedDevicePose_t m_HmdPose; +} Compositor_FrameTiming; + +typedef struct Compositor_CumulativeStats +{ + uint32_t m_nPid; + uint32_t m_nNumFramePresents; + uint32_t m_nNumDroppedFrames; + uint32_t m_nNumReprojectedFrames; + uint32_t m_nNumFramePresentsOnStartup; + uint32_t m_nNumDroppedFramesOnStartup; + uint32_t m_nNumReprojectedFramesOnStartup; + uint32_t m_nNumLoading; + uint32_t m_nNumFramePresentsLoading; + uint32_t m_nNumDroppedFramesLoading; + uint32_t m_nNumReprojectedFramesLoading; + uint32_t m_nNumTimedOut; + uint32_t m_nNumFramePresentsTimedOut; + uint32_t m_nNumDroppedFramesTimedOut; + uint32_t m_nNumReprojectedFramesTimedOut; +} Compositor_CumulativeStats; + +typedef struct VROverlayIntersectionParams_t +{ + struct HmdVector3_t vSource; + struct HmdVector3_t vDirection; + enum ETrackingUniverseOrigin eOrigin; +} VROverlayIntersectionParams_t; + +typedef struct VROverlayIntersectionResults_t +{ + struct HmdVector3_t vPoint; + struct HmdVector3_t vNormal; + struct HmdVector2_t vUVs; + float fDistance; +} VROverlayIntersectionResults_t; + +typedef struct IntersectionMaskRectangle_t +{ + float m_flTopLeftX; + float m_flTopLeftY; + float m_flWidth; + float m_flHeight; +} IntersectionMaskRectangle_t; + +typedef struct IntersectionMaskCircle_t +{ + float m_flCenterX; + float m_flCenterY; + float m_flRadius; +} IntersectionMaskCircle_t; + +typedef struct RenderModel_ComponentState_t +{ + struct HmdMatrix34_t mTrackingToComponentRenderModel; + struct HmdMatrix34_t mTrackingToComponentLocal; + VRComponentProperties uProperties; +} RenderModel_ComponentState_t; + +typedef struct RenderModel_Vertex_t +{ + struct HmdVector3_t vPosition; + struct HmdVector3_t vNormal; + float rfTextureCoord[2]; //float[2] +} RenderModel_Vertex_t; + +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( push, 4 ) +#endif +typedef struct RenderModel_TextureMap_t +{ + uint16_t unWidth; + uint16_t unHeight; + uint8_t * rubTextureMapData; // const uint8_t * +} RenderModel_TextureMap_t; + +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( pop ) +#endif +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( push, 4 ) +#endif +typedef struct RenderModel_t +{ + struct RenderModel_Vertex_t * rVertexData; // const struct vr::RenderModel_Vertex_t * + uint32_t unVertexCount; + uint16_t * rIndexData; // const uint16_t * + uint32_t unTriangleCount; + TextureID_t diffuseTextureId; +} RenderModel_t; + +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( pop ) +#endif +typedef struct RenderModel_ControllerMode_State_t +{ + bool bScrollWheelVisible; +} RenderModel_ControllerMode_State_t; + +typedef struct NotificationBitmap_t +{ + void * m_pImageData; // void * + int32_t m_nWidth; + int32_t m_nHeight; + int32_t m_nBytesPerPixel; +} NotificationBitmap_t; + +typedef struct COpenVRContext +{ + intptr_t m_pVRSystem; // class vr::IVRSystem * + intptr_t m_pVRChaperone; // class vr::IVRChaperone * + intptr_t m_pVRChaperoneSetup; // class vr::IVRChaperoneSetup * + intptr_t m_pVRCompositor; // class vr::IVRCompositor * + intptr_t m_pVROverlay; // class vr::IVROverlay * + intptr_t m_pVRResources; // class vr::IVRResources * + intptr_t m_pVRRenderModels; // class vr::IVRRenderModels * + intptr_t m_pVRExtendedDisplay; // class vr::IVRExtendedDisplay * + intptr_t m_pVRSettings; // class vr::IVRSettings * + intptr_t m_pVRApplications; // class vr::IVRApplications * + intptr_t m_pVRTrackedCamera; // class vr::IVRTrackedCamera * + intptr_t m_pVRScreenshots; // class vr::IVRScreenshots * + intptr_t m_pVRDriverManager; // class vr::IVRDriverManager * +} COpenVRContext; + + +typedef union +{ + VREvent_Reserved_t reserved; + VREvent_Controller_t controller; + VREvent_Mouse_t mouse; + VREvent_Scroll_t scroll; + VREvent_Process_t process; + VREvent_Notification_t notification; + VREvent_Overlay_t overlay; + VREvent_Status_t status; + VREvent_Keyboard_t keyboard; + VREvent_Ipd_t ipd; + VREvent_Chaperone_t chaperone; + VREvent_PerformanceTest_t performanceTest; + VREvent_TouchPadMove_t touchPadMove; + VREvent_SeatedZeroPoseReset_t seatedZeroPoseReset; +} VREvent_Data_t; + +/** An event posted by the server to all running applications */ +struct VREvent_t +{ + uint32_t eventType; // EVREventType enum + TrackedDeviceIndex_t trackedDeviceIndex; + float eventAgeSeconds; + // event data must be the end of the struct as its size is variable + VREvent_Data_t data; +}; + + +typedef union +{ + IntersectionMaskRectangle_t m_Rectangle; + IntersectionMaskCircle_t m_Circle; +} VROverlayIntersectionMaskPrimitive_Data_t; + +struct VROverlayIntersectionMaskPrimitive_t +{ + EVROverlayIntersectionMaskPrimitiveType m_nPrimitiveType; + VROverlayIntersectionMaskPrimitive_Data_t m_Primitive; +}; + + +// OpenVR Function Pointer Tables + +struct VR_IVRSystem_FnTable +{ + void (OPENVR_FNTABLE_CALLTYPE *GetRecommendedRenderTargetSize)(uint32_t * pnWidth, uint32_t * pnHeight); + struct HmdMatrix44_t (OPENVR_FNTABLE_CALLTYPE *GetProjectionMatrix)(EVREye eEye, float fNearZ, float fFarZ); + void (OPENVR_FNTABLE_CALLTYPE *GetProjectionRaw)(EVREye eEye, float * pfLeft, float * pfRight, float * pfTop, float * pfBottom); + bool (OPENVR_FNTABLE_CALLTYPE *ComputeDistortion)(EVREye eEye, float fU, float fV, struct DistortionCoordinates_t * pDistortionCoordinates); + struct HmdMatrix34_t (OPENVR_FNTABLE_CALLTYPE *GetEyeToHeadTransform)(EVREye eEye); + bool (OPENVR_FNTABLE_CALLTYPE *GetTimeSinceLastVsync)(float * pfSecondsSinceLastVsync, uint64_t * pulFrameCounter); + int32_t (OPENVR_FNTABLE_CALLTYPE *GetD3D9AdapterIndex)(); + void (OPENVR_FNTABLE_CALLTYPE *GetDXGIOutputInfo)(int32_t * pnAdapterIndex); + void (OPENVR_FNTABLE_CALLTYPE *GetOutputDevice)(uint64_t * pnDevice, ETextureType textureType); + bool (OPENVR_FNTABLE_CALLTYPE *IsDisplayOnDesktop)(); + bool (OPENVR_FNTABLE_CALLTYPE *SetDisplayVisibility)(bool bIsVisibleOnDesktop); + void (OPENVR_FNTABLE_CALLTYPE *GetDeviceToAbsoluteTrackingPose)(ETrackingUniverseOrigin eOrigin, float fPredictedSecondsToPhotonsFromNow, struct TrackedDevicePose_t * pTrackedDevicePoseArray, uint32_t unTrackedDevicePoseArrayCount); + void (OPENVR_FNTABLE_CALLTYPE *ResetSeatedZeroPose)(); + struct HmdMatrix34_t (OPENVR_FNTABLE_CALLTYPE *GetSeatedZeroPoseToStandingAbsoluteTrackingPose)(); + struct HmdMatrix34_t (OPENVR_FNTABLE_CALLTYPE *GetRawZeroPoseToStandingAbsoluteTrackingPose)(); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetSortedTrackedDeviceIndicesOfClass)(ETrackedDeviceClass eTrackedDeviceClass, TrackedDeviceIndex_t * punTrackedDeviceIndexArray, uint32_t unTrackedDeviceIndexArrayCount, TrackedDeviceIndex_t unRelativeToTrackedDeviceIndex); + EDeviceActivityLevel (OPENVR_FNTABLE_CALLTYPE *GetTrackedDeviceActivityLevel)(TrackedDeviceIndex_t unDeviceId); + void (OPENVR_FNTABLE_CALLTYPE *ApplyTransform)(struct TrackedDevicePose_t * pOutputPose, struct TrackedDevicePose_t * pTrackedDevicePose, struct HmdMatrix34_t * pTransform); + TrackedDeviceIndex_t (OPENVR_FNTABLE_CALLTYPE *GetTrackedDeviceIndexForControllerRole)(ETrackedControllerRole unDeviceType); + ETrackedControllerRole (OPENVR_FNTABLE_CALLTYPE *GetControllerRoleForTrackedDeviceIndex)(TrackedDeviceIndex_t unDeviceIndex); + ETrackedDeviceClass (OPENVR_FNTABLE_CALLTYPE *GetTrackedDeviceClass)(TrackedDeviceIndex_t unDeviceIndex); + bool (OPENVR_FNTABLE_CALLTYPE *IsTrackedDeviceConnected)(TrackedDeviceIndex_t unDeviceIndex); + bool (OPENVR_FNTABLE_CALLTYPE *GetBoolTrackedDeviceProperty)(TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError * pError); + float (OPENVR_FNTABLE_CALLTYPE *GetFloatTrackedDeviceProperty)(TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError * pError); + int32_t (OPENVR_FNTABLE_CALLTYPE *GetInt32TrackedDeviceProperty)(TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError * pError); + uint64_t (OPENVR_FNTABLE_CALLTYPE *GetUint64TrackedDeviceProperty)(TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError * pError); + struct HmdMatrix34_t (OPENVR_FNTABLE_CALLTYPE *GetMatrix34TrackedDeviceProperty)(TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError * pError); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetStringTrackedDeviceProperty)(TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, char * pchValue, uint32_t unBufferSize, ETrackedPropertyError * pError); + char * (OPENVR_FNTABLE_CALLTYPE *GetPropErrorNameFromEnum)(ETrackedPropertyError error); + bool (OPENVR_FNTABLE_CALLTYPE *PollNextEvent)(struct VREvent_t * pEvent, uint32_t uncbVREvent); + bool (OPENVR_FNTABLE_CALLTYPE *PollNextEventWithPose)(ETrackingUniverseOrigin eOrigin, struct VREvent_t * pEvent, uint32_t uncbVREvent, TrackedDevicePose_t * pTrackedDevicePose); + char * (OPENVR_FNTABLE_CALLTYPE *GetEventTypeNameFromEnum)(EVREventType eType); + struct HiddenAreaMesh_t (OPENVR_FNTABLE_CALLTYPE *GetHiddenAreaMesh)(EVREye eEye, EHiddenAreaMeshType type); + bool (OPENVR_FNTABLE_CALLTYPE *GetControllerState)(TrackedDeviceIndex_t unControllerDeviceIndex, VRControllerState_t * pControllerState, uint32_t unControllerStateSize); + bool (OPENVR_FNTABLE_CALLTYPE *GetControllerStateWithPose)(ETrackingUniverseOrigin eOrigin, TrackedDeviceIndex_t unControllerDeviceIndex, VRControllerState_t * pControllerState, uint32_t unControllerStateSize, struct TrackedDevicePose_t * pTrackedDevicePose); + void (OPENVR_FNTABLE_CALLTYPE *TriggerHapticPulse)(TrackedDeviceIndex_t unControllerDeviceIndex, uint32_t unAxisId, unsigned short usDurationMicroSec); + char * (OPENVR_FNTABLE_CALLTYPE *GetButtonIdNameFromEnum)(EVRButtonId eButtonId); + char * (OPENVR_FNTABLE_CALLTYPE *GetControllerAxisTypeNameFromEnum)(EVRControllerAxisType eAxisType); + bool (OPENVR_FNTABLE_CALLTYPE *CaptureInputFocus)(); + void (OPENVR_FNTABLE_CALLTYPE *ReleaseInputFocus)(); + bool (OPENVR_FNTABLE_CALLTYPE *IsInputFocusCapturedByAnotherProcess)(); + uint32_t (OPENVR_FNTABLE_CALLTYPE *DriverDebugRequest)(TrackedDeviceIndex_t unDeviceIndex, char * pchRequest, char * pchResponseBuffer, uint32_t unResponseBufferSize); + EVRFirmwareError (OPENVR_FNTABLE_CALLTYPE *PerformFirmwareUpdate)(TrackedDeviceIndex_t unDeviceIndex); + void (OPENVR_FNTABLE_CALLTYPE *AcknowledgeQuit_Exiting)(); + void (OPENVR_FNTABLE_CALLTYPE *AcknowledgeQuit_UserPrompt)(); +}; + +struct VR_IVRExtendedDisplay_FnTable +{ + void (OPENVR_FNTABLE_CALLTYPE *GetWindowBounds)(int32_t * pnX, int32_t * pnY, uint32_t * pnWidth, uint32_t * pnHeight); + void (OPENVR_FNTABLE_CALLTYPE *GetEyeOutputViewport)(EVREye eEye, uint32_t * pnX, uint32_t * pnY, uint32_t * pnWidth, uint32_t * pnHeight); + void (OPENVR_FNTABLE_CALLTYPE *GetDXGIOutputInfo)(int32_t * pnAdapterIndex, int32_t * pnAdapterOutputIndex); +}; + +struct VR_IVRTrackedCamera_FnTable +{ + char * (OPENVR_FNTABLE_CALLTYPE *GetCameraErrorNameFromEnum)(EVRTrackedCameraError eCameraError); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *HasCamera)(TrackedDeviceIndex_t nDeviceIndex, bool * pHasCamera); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *GetCameraFrameSize)(TrackedDeviceIndex_t nDeviceIndex, EVRTrackedCameraFrameType eFrameType, uint32_t * pnWidth, uint32_t * pnHeight, uint32_t * pnFrameBufferSize); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *GetCameraIntrinsics)(TrackedDeviceIndex_t nDeviceIndex, EVRTrackedCameraFrameType eFrameType, HmdVector2_t * pFocalLength, HmdVector2_t * pCenter); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *GetCameraProjection)(TrackedDeviceIndex_t nDeviceIndex, EVRTrackedCameraFrameType eFrameType, float flZNear, float flZFar, HmdMatrix44_t * pProjection); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *AcquireVideoStreamingService)(TrackedDeviceIndex_t nDeviceIndex, TrackedCameraHandle_t * pHandle); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *ReleaseVideoStreamingService)(TrackedCameraHandle_t hTrackedCamera); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *GetVideoStreamFrameBuffer)(TrackedCameraHandle_t hTrackedCamera, EVRTrackedCameraFrameType eFrameType, void * pFrameBuffer, uint32_t nFrameBufferSize, CameraVideoStreamFrameHeader_t * pFrameHeader, uint32_t nFrameHeaderSize); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *GetVideoStreamTextureSize)(TrackedDeviceIndex_t nDeviceIndex, EVRTrackedCameraFrameType eFrameType, VRTextureBounds_t * pTextureBounds, uint32_t * pnWidth, uint32_t * pnHeight); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *GetVideoStreamTextureD3D11)(TrackedCameraHandle_t hTrackedCamera, EVRTrackedCameraFrameType eFrameType, void * pD3D11DeviceOrResource, void ** ppD3D11ShaderResourceView, CameraVideoStreamFrameHeader_t * pFrameHeader, uint32_t nFrameHeaderSize); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *GetVideoStreamTextureGL)(TrackedCameraHandle_t hTrackedCamera, EVRTrackedCameraFrameType eFrameType, glUInt_t * pglTextureId, CameraVideoStreamFrameHeader_t * pFrameHeader, uint32_t nFrameHeaderSize); + EVRTrackedCameraError (OPENVR_FNTABLE_CALLTYPE *ReleaseVideoStreamTextureGL)(TrackedCameraHandle_t hTrackedCamera, glUInt_t glTextureId); +}; + +struct VR_IVRApplications_FnTable +{ + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *AddApplicationManifest)(char * pchApplicationManifestFullPath, bool bTemporary); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *RemoveApplicationManifest)(char * pchApplicationManifestFullPath); + bool (OPENVR_FNTABLE_CALLTYPE *IsApplicationInstalled)(char * pchAppKey); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetApplicationCount)(); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *GetApplicationKeyByIndex)(uint32_t unApplicationIndex, char * pchAppKeyBuffer, uint32_t unAppKeyBufferLen); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *GetApplicationKeyByProcessId)(uint32_t unProcessId, char * pchAppKeyBuffer, uint32_t unAppKeyBufferLen); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *LaunchApplication)(char * pchAppKey); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *LaunchTemplateApplication)(char * pchTemplateAppKey, char * pchNewAppKey, struct AppOverrideKeys_t * pKeys, uint32_t unKeys); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *LaunchApplicationFromMimeType)(char * pchMimeType, char * pchArgs); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *LaunchDashboardOverlay)(char * pchAppKey); + bool (OPENVR_FNTABLE_CALLTYPE *CancelApplicationLaunch)(char * pchAppKey); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *IdentifyApplication)(uint32_t unProcessId, char * pchAppKey); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetApplicationProcessId)(char * pchAppKey); + char * (OPENVR_FNTABLE_CALLTYPE *GetApplicationsErrorNameFromEnum)(EVRApplicationError error); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetApplicationPropertyString)(char * pchAppKey, EVRApplicationProperty eProperty, char * pchPropertyValueBuffer, uint32_t unPropertyValueBufferLen, EVRApplicationError * peError); + bool (OPENVR_FNTABLE_CALLTYPE *GetApplicationPropertyBool)(char * pchAppKey, EVRApplicationProperty eProperty, EVRApplicationError * peError); + uint64_t (OPENVR_FNTABLE_CALLTYPE *GetApplicationPropertyUint64)(char * pchAppKey, EVRApplicationProperty eProperty, EVRApplicationError * peError); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *SetApplicationAutoLaunch)(char * pchAppKey, bool bAutoLaunch); + bool (OPENVR_FNTABLE_CALLTYPE *GetApplicationAutoLaunch)(char * pchAppKey); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *SetDefaultApplicationForMimeType)(char * pchAppKey, char * pchMimeType); + bool (OPENVR_FNTABLE_CALLTYPE *GetDefaultApplicationForMimeType)(char * pchMimeType, char * pchAppKeyBuffer, uint32_t unAppKeyBufferLen); + bool (OPENVR_FNTABLE_CALLTYPE *GetApplicationSupportedMimeTypes)(char * pchAppKey, char * pchMimeTypesBuffer, uint32_t unMimeTypesBuffer); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetApplicationsThatSupportMimeType)(char * pchMimeType, char * pchAppKeysThatSupportBuffer, uint32_t unAppKeysThatSupportBuffer); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetApplicationLaunchArguments)(uint32_t unHandle, char * pchArgs, uint32_t unArgs); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *GetStartingApplication)(char * pchAppKeyBuffer, uint32_t unAppKeyBufferLen); + EVRApplicationTransitionState (OPENVR_FNTABLE_CALLTYPE *GetTransitionState)(); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *PerformApplicationPrelaunchCheck)(char * pchAppKey); + char * (OPENVR_FNTABLE_CALLTYPE *GetApplicationsTransitionStateNameFromEnum)(EVRApplicationTransitionState state); + bool (OPENVR_FNTABLE_CALLTYPE *IsQuitUserPromptRequested)(); + EVRApplicationError (OPENVR_FNTABLE_CALLTYPE *LaunchInternalProcess)(char * pchBinaryPath, char * pchArguments, char * pchWorkingDirectory); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetCurrentSceneProcessId)(); +}; + +struct VR_IVRChaperone_FnTable +{ + ChaperoneCalibrationState (OPENVR_FNTABLE_CALLTYPE *GetCalibrationState)(); + bool (OPENVR_FNTABLE_CALLTYPE *GetPlayAreaSize)(float * pSizeX, float * pSizeZ); + bool (OPENVR_FNTABLE_CALLTYPE *GetPlayAreaRect)(struct HmdQuad_t * rect); + void (OPENVR_FNTABLE_CALLTYPE *ReloadInfo)(); + void (OPENVR_FNTABLE_CALLTYPE *SetSceneColor)(struct HmdColor_t color); + void (OPENVR_FNTABLE_CALLTYPE *GetBoundsColor)(struct HmdColor_t * pOutputColorArray, int nNumOutputColors, float flCollisionBoundsFadeDistance, struct HmdColor_t * pOutputCameraColor); + bool (OPENVR_FNTABLE_CALLTYPE *AreBoundsVisible)(); + void (OPENVR_FNTABLE_CALLTYPE *ForceBoundsVisible)(bool bForce); +}; + +struct VR_IVRChaperoneSetup_FnTable +{ + bool (OPENVR_FNTABLE_CALLTYPE *CommitWorkingCopy)(EChaperoneConfigFile configFile); + void (OPENVR_FNTABLE_CALLTYPE *RevertWorkingCopy)(); + bool (OPENVR_FNTABLE_CALLTYPE *GetWorkingPlayAreaSize)(float * pSizeX, float * pSizeZ); + bool (OPENVR_FNTABLE_CALLTYPE *GetWorkingPlayAreaRect)(struct HmdQuad_t * rect); + bool (OPENVR_FNTABLE_CALLTYPE *GetWorkingCollisionBoundsInfo)(struct HmdQuad_t * pQuadsBuffer, uint32_t * punQuadsCount); + bool (OPENVR_FNTABLE_CALLTYPE *GetLiveCollisionBoundsInfo)(struct HmdQuad_t * pQuadsBuffer, uint32_t * punQuadsCount); + bool (OPENVR_FNTABLE_CALLTYPE *GetWorkingSeatedZeroPoseToRawTrackingPose)(struct HmdMatrix34_t * pmatSeatedZeroPoseToRawTrackingPose); + bool (OPENVR_FNTABLE_CALLTYPE *GetWorkingStandingZeroPoseToRawTrackingPose)(struct HmdMatrix34_t * pmatStandingZeroPoseToRawTrackingPose); + void (OPENVR_FNTABLE_CALLTYPE *SetWorkingPlayAreaSize)(float sizeX, float sizeZ); + void (OPENVR_FNTABLE_CALLTYPE *SetWorkingCollisionBoundsInfo)(struct HmdQuad_t * pQuadsBuffer, uint32_t unQuadsCount); + void (OPENVR_FNTABLE_CALLTYPE *SetWorkingSeatedZeroPoseToRawTrackingPose)(struct HmdMatrix34_t * pMatSeatedZeroPoseToRawTrackingPose); + void (OPENVR_FNTABLE_CALLTYPE *SetWorkingStandingZeroPoseToRawTrackingPose)(struct HmdMatrix34_t * pMatStandingZeroPoseToRawTrackingPose); + void (OPENVR_FNTABLE_CALLTYPE *ReloadFromDisk)(EChaperoneConfigFile configFile); + bool (OPENVR_FNTABLE_CALLTYPE *GetLiveSeatedZeroPoseToRawTrackingPose)(struct HmdMatrix34_t * pmatSeatedZeroPoseToRawTrackingPose); + void (OPENVR_FNTABLE_CALLTYPE *SetWorkingCollisionBoundsTagsInfo)(uint8_t * pTagsBuffer, uint32_t unTagCount); + bool (OPENVR_FNTABLE_CALLTYPE *GetLiveCollisionBoundsTagsInfo)(uint8_t * pTagsBuffer, uint32_t * punTagCount); + bool (OPENVR_FNTABLE_CALLTYPE *SetWorkingPhysicalBoundsInfo)(struct HmdQuad_t * pQuadsBuffer, uint32_t unQuadsCount); + bool (OPENVR_FNTABLE_CALLTYPE *GetLivePhysicalBoundsInfo)(struct HmdQuad_t * pQuadsBuffer, uint32_t * punQuadsCount); + bool (OPENVR_FNTABLE_CALLTYPE *ExportLiveToBuffer)(char * pBuffer, uint32_t * pnBufferLength); + bool (OPENVR_FNTABLE_CALLTYPE *ImportFromBufferToWorking)(char * pBuffer, uint32_t nImportFlags); +}; + +struct VR_IVRCompositor_FnTable +{ + void (OPENVR_FNTABLE_CALLTYPE *SetTrackingSpace)(ETrackingUniverseOrigin eOrigin); + ETrackingUniverseOrigin (OPENVR_FNTABLE_CALLTYPE *GetTrackingSpace)(); + EVRCompositorError (OPENVR_FNTABLE_CALLTYPE *WaitGetPoses)(struct TrackedDevicePose_t * pRenderPoseArray, uint32_t unRenderPoseArrayCount, struct TrackedDevicePose_t * pGamePoseArray, uint32_t unGamePoseArrayCount); + EVRCompositorError (OPENVR_FNTABLE_CALLTYPE *GetLastPoses)(struct TrackedDevicePose_t * pRenderPoseArray, uint32_t unRenderPoseArrayCount, struct TrackedDevicePose_t * pGamePoseArray, uint32_t unGamePoseArrayCount); + EVRCompositorError (OPENVR_FNTABLE_CALLTYPE *GetLastPoseForTrackedDeviceIndex)(TrackedDeviceIndex_t unDeviceIndex, struct TrackedDevicePose_t * pOutputPose, struct TrackedDevicePose_t * pOutputGamePose); + EVRCompositorError (OPENVR_FNTABLE_CALLTYPE *Submit)(EVREye eEye, struct Texture_t * pTexture, struct VRTextureBounds_t * pBounds, EVRSubmitFlags nSubmitFlags); + void (OPENVR_FNTABLE_CALLTYPE *ClearLastSubmittedFrame)(); + void (OPENVR_FNTABLE_CALLTYPE *PostPresentHandoff)(); + bool (OPENVR_FNTABLE_CALLTYPE *GetFrameTiming)(struct Compositor_FrameTiming * pTiming, uint32_t unFramesAgo); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetFrameTimings)(struct Compositor_FrameTiming * pTiming, uint32_t nFrames); + float (OPENVR_FNTABLE_CALLTYPE *GetFrameTimeRemaining)(); + void (OPENVR_FNTABLE_CALLTYPE *GetCumulativeStats)(struct Compositor_CumulativeStats * pStats, uint32_t nStatsSizeInBytes); + void (OPENVR_FNTABLE_CALLTYPE *FadeToColor)(float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground); + struct HmdColor_t (OPENVR_FNTABLE_CALLTYPE *GetCurrentFadeColor)(bool bBackground); + void (OPENVR_FNTABLE_CALLTYPE *FadeGrid)(float fSeconds, bool bFadeIn); + float (OPENVR_FNTABLE_CALLTYPE *GetCurrentGridAlpha)(); + EVRCompositorError (OPENVR_FNTABLE_CALLTYPE *SetSkyboxOverride)(struct Texture_t * pTextures, uint32_t unTextureCount); + void (OPENVR_FNTABLE_CALLTYPE *ClearSkyboxOverride)(); + void (OPENVR_FNTABLE_CALLTYPE *CompositorBringToFront)(); + void (OPENVR_FNTABLE_CALLTYPE *CompositorGoToBack)(); + void (OPENVR_FNTABLE_CALLTYPE *CompositorQuit)(); + bool (OPENVR_FNTABLE_CALLTYPE *IsFullscreen)(); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetCurrentSceneFocusProcess)(); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetLastFrameRenderer)(); + bool (OPENVR_FNTABLE_CALLTYPE *CanRenderScene)(); + void (OPENVR_FNTABLE_CALLTYPE *ShowMirrorWindow)(); + void (OPENVR_FNTABLE_CALLTYPE *HideMirrorWindow)(); + bool (OPENVR_FNTABLE_CALLTYPE *IsMirrorWindowVisible)(); + void (OPENVR_FNTABLE_CALLTYPE *CompositorDumpImages)(); + bool (OPENVR_FNTABLE_CALLTYPE *ShouldAppRenderWithLowResources)(); + void (OPENVR_FNTABLE_CALLTYPE *ForceInterleavedReprojectionOn)(bool bOverride); + void (OPENVR_FNTABLE_CALLTYPE *ForceReconnectProcess)(); + void (OPENVR_FNTABLE_CALLTYPE *SuspendRendering)(bool bSuspend); + EVRCompositorError (OPENVR_FNTABLE_CALLTYPE *GetMirrorTextureD3D11)(EVREye eEye, void * pD3D11DeviceOrResource, void ** ppD3D11ShaderResourceView); + void (OPENVR_FNTABLE_CALLTYPE *ReleaseMirrorTextureD3D11)(void * pD3D11ShaderResourceView); + EVRCompositorError (OPENVR_FNTABLE_CALLTYPE *GetMirrorTextureGL)(EVREye eEye, glUInt_t * pglTextureId, glSharedTextureHandle_t * pglSharedTextureHandle); + bool (OPENVR_FNTABLE_CALLTYPE *ReleaseSharedGLTexture)(glUInt_t glTextureId, glSharedTextureHandle_t glSharedTextureHandle); + void (OPENVR_FNTABLE_CALLTYPE *LockGLSharedTextureForAccess)(glSharedTextureHandle_t glSharedTextureHandle); + void (OPENVR_FNTABLE_CALLTYPE *UnlockGLSharedTextureForAccess)(glSharedTextureHandle_t glSharedTextureHandle); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetVulkanInstanceExtensionsRequired)(char * pchValue, uint32_t unBufferSize); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetVulkanDeviceExtensionsRequired)(struct VkPhysicalDevice_T * pPhysicalDevice, char * pchValue, uint32_t unBufferSize); +}; + +struct VR_IVROverlay_FnTable +{ + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *FindOverlay)(char * pchOverlayKey, VROverlayHandle_t * pOverlayHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *CreateOverlay)(char * pchOverlayKey, char * pchOverlayName, VROverlayHandle_t * pOverlayHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *DestroyOverlay)(VROverlayHandle_t ulOverlayHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetHighQualityOverlay)(VROverlayHandle_t ulOverlayHandle); + VROverlayHandle_t (OPENVR_FNTABLE_CALLTYPE *GetHighQualityOverlay)(); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetOverlayKey)(VROverlayHandle_t ulOverlayHandle, char * pchValue, uint32_t unBufferSize, EVROverlayError * pError); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetOverlayName)(VROverlayHandle_t ulOverlayHandle, char * pchValue, uint32_t unBufferSize, EVROverlayError * pError); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayName)(VROverlayHandle_t ulOverlayHandle, char * pchName); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayImageData)(VROverlayHandle_t ulOverlayHandle, void * pvBuffer, uint32_t unBufferSize, uint32_t * punWidth, uint32_t * punHeight); + char * (OPENVR_FNTABLE_CALLTYPE *GetOverlayErrorNameFromEnum)(EVROverlayError error); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayRenderingPid)(VROverlayHandle_t ulOverlayHandle, uint32_t unPID); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetOverlayRenderingPid)(VROverlayHandle_t ulOverlayHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayFlag)(VROverlayHandle_t ulOverlayHandle, VROverlayFlags eOverlayFlag, bool bEnabled); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayFlag)(VROverlayHandle_t ulOverlayHandle, VROverlayFlags eOverlayFlag, bool * pbEnabled); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayColor)(VROverlayHandle_t ulOverlayHandle, float fRed, float fGreen, float fBlue); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayColor)(VROverlayHandle_t ulOverlayHandle, float * pfRed, float * pfGreen, float * pfBlue); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayAlpha)(VROverlayHandle_t ulOverlayHandle, float fAlpha); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayAlpha)(VROverlayHandle_t ulOverlayHandle, float * pfAlpha); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTexelAspect)(VROverlayHandle_t ulOverlayHandle, float fTexelAspect); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTexelAspect)(VROverlayHandle_t ulOverlayHandle, float * pfTexelAspect); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlaySortOrder)(VROverlayHandle_t ulOverlayHandle, uint32_t unSortOrder); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlaySortOrder)(VROverlayHandle_t ulOverlayHandle, uint32_t * punSortOrder); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayWidthInMeters)(VROverlayHandle_t ulOverlayHandle, float fWidthInMeters); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayWidthInMeters)(VROverlayHandle_t ulOverlayHandle, float * pfWidthInMeters); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayAutoCurveDistanceRangeInMeters)(VROverlayHandle_t ulOverlayHandle, float fMinDistanceInMeters, float fMaxDistanceInMeters); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayAutoCurveDistanceRangeInMeters)(VROverlayHandle_t ulOverlayHandle, float * pfMinDistanceInMeters, float * pfMaxDistanceInMeters); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTextureColorSpace)(VROverlayHandle_t ulOverlayHandle, EColorSpace eTextureColorSpace); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTextureColorSpace)(VROverlayHandle_t ulOverlayHandle, EColorSpace * peTextureColorSpace); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTextureBounds)(VROverlayHandle_t ulOverlayHandle, struct VRTextureBounds_t * pOverlayTextureBounds); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTextureBounds)(VROverlayHandle_t ulOverlayHandle, struct VRTextureBounds_t * pOverlayTextureBounds); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetOverlayRenderModel)(VROverlayHandle_t ulOverlayHandle, char * pchValue, uint32_t unBufferSize, struct HmdColor_t * pColor, EVROverlayError * pError); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayRenderModel)(VROverlayHandle_t ulOverlayHandle, char * pchRenderModel, struct HmdColor_t * pColor); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTransformType)(VROverlayHandle_t ulOverlayHandle, VROverlayTransformType * peTransformType); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTransformAbsolute)(VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, struct HmdMatrix34_t * pmatTrackingOriginToOverlayTransform); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTransformAbsolute)(VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin * peTrackingOrigin, struct HmdMatrix34_t * pmatTrackingOriginToOverlayTransform); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTransformTrackedDeviceRelative)(VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unTrackedDevice, struct HmdMatrix34_t * pmatTrackedDeviceToOverlayTransform); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTransformTrackedDeviceRelative)(VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t * punTrackedDevice, struct HmdMatrix34_t * pmatTrackedDeviceToOverlayTransform); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTransformTrackedDeviceComponent)(VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unDeviceIndex, char * pchComponentName); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTransformTrackedDeviceComponent)(VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t * punDeviceIndex, char * pchComponentName, uint32_t unComponentNameSize); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTransformOverlayRelative)(VROverlayHandle_t ulOverlayHandle, VROverlayHandle_t * ulOverlayHandleParent, struct HmdMatrix34_t * pmatParentOverlayToOverlayTransform); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTransformOverlayRelative)(VROverlayHandle_t ulOverlayHandle, VROverlayHandle_t ulOverlayHandleParent, struct HmdMatrix34_t * pmatParentOverlayToOverlayTransform); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *ShowOverlay)(VROverlayHandle_t ulOverlayHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *HideOverlay)(VROverlayHandle_t ulOverlayHandle); + bool (OPENVR_FNTABLE_CALLTYPE *IsOverlayVisible)(VROverlayHandle_t ulOverlayHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetTransformForOverlayCoordinates)(VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, struct HmdVector2_t coordinatesInOverlay, struct HmdMatrix34_t * pmatTransform); + bool (OPENVR_FNTABLE_CALLTYPE *PollNextOverlayEvent)(VROverlayHandle_t ulOverlayHandle, struct VREvent_t * pEvent, uint32_t uncbVREvent); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayInputMethod)(VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod * peInputMethod); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayInputMethod)(VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod eInputMethod); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayMouseScale)(VROverlayHandle_t ulOverlayHandle, struct HmdVector2_t * pvecMouseScale); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayMouseScale)(VROverlayHandle_t ulOverlayHandle, struct HmdVector2_t * pvecMouseScale); + bool (OPENVR_FNTABLE_CALLTYPE *ComputeOverlayIntersection)(VROverlayHandle_t ulOverlayHandle, struct VROverlayIntersectionParams_t * pParams, struct VROverlayIntersectionResults_t * pResults); + bool (OPENVR_FNTABLE_CALLTYPE *HandleControllerOverlayInteractionAsMouse)(VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unControllerDeviceIndex); + bool (OPENVR_FNTABLE_CALLTYPE *IsHoverTargetOverlay)(VROverlayHandle_t ulOverlayHandle); + VROverlayHandle_t (OPENVR_FNTABLE_CALLTYPE *GetGamepadFocusOverlay)(); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetGamepadFocusOverlay)(VROverlayHandle_t ulNewFocusOverlay); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayNeighbor)(EOverlayDirection eDirection, VROverlayHandle_t ulFrom, VROverlayHandle_t ulTo); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *MoveGamepadFocusToNeighbor)(EOverlayDirection eDirection, VROverlayHandle_t ulFrom); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTexture)(VROverlayHandle_t ulOverlayHandle, struct Texture_t * pTexture); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *ClearOverlayTexture)(VROverlayHandle_t ulOverlayHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayRaw)(VROverlayHandle_t ulOverlayHandle, void * pvBuffer, uint32_t unWidth, uint32_t unHeight, uint32_t unDepth); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayFromFile)(VROverlayHandle_t ulOverlayHandle, char * pchFilePath); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTexture)(VROverlayHandle_t ulOverlayHandle, void ** pNativeTextureHandle, void * pNativeTextureRef, uint32_t * pWidth, uint32_t * pHeight, uint32_t * pNativeFormat, ETextureType * pAPIType, EColorSpace * pColorSpace, struct VRTextureBounds_t * pTextureBounds); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *ReleaseNativeOverlayHandle)(VROverlayHandle_t ulOverlayHandle, void * pNativeTextureHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTextureSize)(VROverlayHandle_t ulOverlayHandle, uint32_t * pWidth, uint32_t * pHeight); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *CreateDashboardOverlay)(char * pchOverlayKey, char * pchOverlayFriendlyName, VROverlayHandle_t * pMainHandle, VROverlayHandle_t * pThumbnailHandle); + bool (OPENVR_FNTABLE_CALLTYPE *IsDashboardVisible)(); + bool (OPENVR_FNTABLE_CALLTYPE *IsActiveDashboardOverlay)(VROverlayHandle_t ulOverlayHandle); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetDashboardOverlaySceneProcess)(VROverlayHandle_t ulOverlayHandle, uint32_t unProcessId); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetDashboardOverlaySceneProcess)(VROverlayHandle_t ulOverlayHandle, uint32_t * punProcessId); + void (OPENVR_FNTABLE_CALLTYPE *ShowDashboard)(char * pchOverlayToShow); + TrackedDeviceIndex_t (OPENVR_FNTABLE_CALLTYPE *GetPrimaryDashboardDevice)(); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *ShowKeyboard)(EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, char * pchDescription, uint32_t unCharMax, char * pchExistingText, bool bUseMinimalMode, uint64_t uUserValue); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *ShowKeyboardForOverlay)(VROverlayHandle_t ulOverlayHandle, EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, char * pchDescription, uint32_t unCharMax, char * pchExistingText, bool bUseMinimalMode, uint64_t uUserValue); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetKeyboardText)(char * pchText, uint32_t cchText); + void (OPENVR_FNTABLE_CALLTYPE *HideKeyboard)(); + void (OPENVR_FNTABLE_CALLTYPE *SetKeyboardTransformAbsolute)(ETrackingUniverseOrigin eTrackingOrigin, struct HmdMatrix34_t * pmatTrackingOriginToKeyboardTransform); + void (OPENVR_FNTABLE_CALLTYPE *SetKeyboardPositionForOverlay)(VROverlayHandle_t ulOverlayHandle, struct HmdRect2_t avoidRect); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayIntersectionMask)(VROverlayHandle_t ulOverlayHandle, struct VROverlayIntersectionMaskPrimitive_t * pMaskPrimitives, uint32_t unNumMaskPrimitives, uint32_t unPrimitiveSize); + EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayFlags)(VROverlayHandle_t ulOverlayHandle, uint32_t * pFlags); + VRMessageOverlayResponse (OPENVR_FNTABLE_CALLTYPE *ShowMessageOverlay)(char * pchText, char * pchCaption, char * pchButton0Text, char * pchButton1Text, char * pchButton2Text, char * pchButton3Text); +}; + +struct VR_IVRRenderModels_FnTable +{ + EVRRenderModelError (OPENVR_FNTABLE_CALLTYPE *LoadRenderModel_Async)(char * pchRenderModelName, struct RenderModel_t ** ppRenderModel); + void (OPENVR_FNTABLE_CALLTYPE *FreeRenderModel)(struct RenderModel_t * pRenderModel); + EVRRenderModelError (OPENVR_FNTABLE_CALLTYPE *LoadTexture_Async)(TextureID_t textureId, struct RenderModel_TextureMap_t ** ppTexture); + void (OPENVR_FNTABLE_CALLTYPE *FreeTexture)(struct RenderModel_TextureMap_t * pTexture); + EVRRenderModelError (OPENVR_FNTABLE_CALLTYPE *LoadTextureD3D11_Async)(TextureID_t textureId, void * pD3D11Device, void ** ppD3D11Texture2D); + EVRRenderModelError (OPENVR_FNTABLE_CALLTYPE *LoadIntoTextureD3D11_Async)(TextureID_t textureId, void * pDstTexture); + void (OPENVR_FNTABLE_CALLTYPE *FreeTextureD3D11)(void * pD3D11Texture2D); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetRenderModelName)(uint32_t unRenderModelIndex, char * pchRenderModelName, uint32_t unRenderModelNameLen); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetRenderModelCount)(); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetComponentCount)(char * pchRenderModelName); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetComponentName)(char * pchRenderModelName, uint32_t unComponentIndex, char * pchComponentName, uint32_t unComponentNameLen); + uint64_t (OPENVR_FNTABLE_CALLTYPE *GetComponentButtonMask)(char * pchRenderModelName, char * pchComponentName); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetComponentRenderModelName)(char * pchRenderModelName, char * pchComponentName, char * pchComponentRenderModelName, uint32_t unComponentRenderModelNameLen); + bool (OPENVR_FNTABLE_CALLTYPE *GetComponentState)(char * pchRenderModelName, char * pchComponentName, VRControllerState_t * pControllerState, struct RenderModel_ControllerMode_State_t * pState, struct RenderModel_ComponentState_t * pComponentState); + bool (OPENVR_FNTABLE_CALLTYPE *RenderModelHasComponent)(char * pchRenderModelName, char * pchComponentName); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetRenderModelThumbnailURL)(char * pchRenderModelName, char * pchThumbnailURL, uint32_t unThumbnailURLLen, EVRRenderModelError * peError); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetRenderModelOriginalPath)(char * pchRenderModelName, char * pchOriginalPath, uint32_t unOriginalPathLen, EVRRenderModelError * peError); + char * (OPENVR_FNTABLE_CALLTYPE *GetRenderModelErrorNameFromEnum)(EVRRenderModelError error); +}; + +struct VR_IVRNotifications_FnTable +{ + EVRNotificationError (OPENVR_FNTABLE_CALLTYPE *CreateNotification)(VROverlayHandle_t ulOverlayHandle, uint64_t ulUserValue, EVRNotificationType type, char * pchText, EVRNotificationStyle style, struct NotificationBitmap_t * pImage, VRNotificationId * pNotificationId); + EVRNotificationError (OPENVR_FNTABLE_CALLTYPE *RemoveNotification)(VRNotificationId notificationId); +}; + +struct VR_IVRSettings_FnTable +{ + char * (OPENVR_FNTABLE_CALLTYPE *GetSettingsErrorNameFromEnum)(EVRSettingsError eError); + bool (OPENVR_FNTABLE_CALLTYPE *Sync)(bool bForce, EVRSettingsError * peError); + void (OPENVR_FNTABLE_CALLTYPE *SetBool)(char * pchSection, char * pchSettingsKey, bool bValue, EVRSettingsError * peError); + void (OPENVR_FNTABLE_CALLTYPE *SetInt32)(char * pchSection, char * pchSettingsKey, int32_t nValue, EVRSettingsError * peError); + void (OPENVR_FNTABLE_CALLTYPE *SetFloat)(char * pchSection, char * pchSettingsKey, float flValue, EVRSettingsError * peError); + void (OPENVR_FNTABLE_CALLTYPE *SetString)(char * pchSection, char * pchSettingsKey, char * pchValue, EVRSettingsError * peError); + bool (OPENVR_FNTABLE_CALLTYPE *GetBool)(char * pchSection, char * pchSettingsKey, EVRSettingsError * peError); + int32_t (OPENVR_FNTABLE_CALLTYPE *GetInt32)(char * pchSection, char * pchSettingsKey, EVRSettingsError * peError); + float (OPENVR_FNTABLE_CALLTYPE *GetFloat)(char * pchSection, char * pchSettingsKey, EVRSettingsError * peError); + void (OPENVR_FNTABLE_CALLTYPE *GetString)(char * pchSection, char * pchSettingsKey, char * pchValue, uint32_t unValueLen, EVRSettingsError * peError); + void (OPENVR_FNTABLE_CALLTYPE *RemoveSection)(char * pchSection, EVRSettingsError * peError); + void (OPENVR_FNTABLE_CALLTYPE *RemoveKeyInSection)(char * pchSection, char * pchSettingsKey, EVRSettingsError * peError); +}; + +struct VR_IVRScreenshots_FnTable +{ + EVRScreenshotError (OPENVR_FNTABLE_CALLTYPE *RequestScreenshot)(ScreenshotHandle_t * pOutScreenshotHandle, EVRScreenshotType type, char * pchPreviewFilename, char * pchVRFilename); + EVRScreenshotError (OPENVR_FNTABLE_CALLTYPE *HookScreenshot)(EVRScreenshotType * pSupportedTypes, int numTypes); + EVRScreenshotType (OPENVR_FNTABLE_CALLTYPE *GetScreenshotPropertyType)(ScreenshotHandle_t screenshotHandle, EVRScreenshotError * pError); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetScreenshotPropertyFilename)(ScreenshotHandle_t screenshotHandle, EVRScreenshotPropertyFilenames filenameType, char * pchFilename, uint32_t cchFilename, EVRScreenshotError * pError); + EVRScreenshotError (OPENVR_FNTABLE_CALLTYPE *UpdateScreenshotProgress)(ScreenshotHandle_t screenshotHandle, float flProgress); + EVRScreenshotError (OPENVR_FNTABLE_CALLTYPE *TakeStereoScreenshot)(ScreenshotHandle_t * pOutScreenshotHandle, char * pchPreviewFilename, char * pchVRFilename); + EVRScreenshotError (OPENVR_FNTABLE_CALLTYPE *SubmitScreenshot)(ScreenshotHandle_t screenshotHandle, EVRScreenshotType type, char * pchSourcePreviewFilename, char * pchSourceVRFilename); +}; + +struct VR_IVRResources_FnTable +{ + uint32_t (OPENVR_FNTABLE_CALLTYPE *LoadSharedResource)(char * pchResourceName, char * pchBuffer, uint32_t unBufferLen); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetResourceFullPath)(char * pchResourceName, char * pchResourceTypeDirectory, char * pchPathBuffer, uint32_t unBufferLen); +}; + +struct VR_IVRDriverManager_FnTable +{ + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetDriverCount)(); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetDriverName)(DriverId_t nDriver, char * pchValue, uint32_t unBufferSize); +}; + + +#if 0 +// Global entry points +S_API intptr_t VR_InitInternal( EVRInitError *peError, EVRApplicationType eType ); +S_API void VR_ShutdownInternal(); +S_API bool VR_IsHmdPresent(); +S_API intptr_t VR_GetGenericInterface( const char *pchInterfaceVersion, EVRInitError *peError ); +S_API bool VR_IsRuntimeInstalled(); +S_API const char * VR_GetVRInitErrorAsSymbol( EVRInitError error ); +S_API const char * VR_GetVRInitErrorAsEnglishDescription( EVRInitError error ); +#endif + +#endif // __OPENVR_API_FLAT_H__ + + diff --git a/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/Current/Headers/openvr_driver.h b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/Current/Headers/openvr_driver.h new file mode 100644 index 000000000..bfe24c003 --- /dev/null +++ b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/Current/Headers/openvr_driver.h @@ -0,0 +1,2677 @@ +#pragma once + +// openvr_driver.h +//========= Copyright Valve Corporation ============// +// Dynamically generated file. Do not modify this file directly. + +#ifndef _OPENVR_DRIVER_API +#define _OPENVR_DRIVER_API + +#include + + + +// vrtypes.h +#ifndef _INCLUDE_VRTYPES_H +#define _INCLUDE_VRTYPES_H + +// Forward declarations to avoid requiring vulkan.h +struct VkDevice_T; +struct VkPhysicalDevice_T; +struct VkInstance_T; +struct VkQueue_T; + +// Forward declarations to avoid requiring d3d12.h +struct ID3D12Resource; +struct ID3D12CommandQueue; + +namespace vr +{ +#pragma pack( push, 8 ) + +typedef void* glSharedTextureHandle_t; +typedef int32_t glInt_t; +typedef uint32_t glUInt_t; + +// right-handed system +// +y is up +// +x is to the right +// -z is going away from you +// Distance unit is meters +struct HmdMatrix34_t +{ + float m[3][4]; +}; + +struct HmdMatrix44_t +{ + float m[4][4]; +}; + +struct HmdVector3_t +{ + float v[3]; +}; + +struct HmdVector4_t +{ + float v[4]; +}; + +struct HmdVector3d_t +{ + double v[3]; +}; + +struct HmdVector2_t +{ + float v[2]; +}; + +struct HmdQuaternion_t +{ + double w, x, y, z; +}; + +struct HmdColor_t +{ + float r, g, b, a; +}; + +struct HmdQuad_t +{ + HmdVector3_t vCorners[ 4 ]; +}; + +struct HmdRect2_t +{ + HmdVector2_t vTopLeft; + HmdVector2_t vBottomRight; +}; + +/** Used to return the post-distortion UVs for each color channel. +* UVs range from 0 to 1 with 0,0 in the upper left corner of the +* source render target. The 0,0 to 1,1 range covers a single eye. */ +struct DistortionCoordinates_t +{ + float rfRed[2]; + float rfGreen[2]; + float rfBlue[2]; +}; + +enum EVREye +{ + Eye_Left = 0, + Eye_Right = 1 +}; + +enum ETextureType +{ + TextureType_DirectX = 0, // Handle is an ID3D11Texture + TextureType_OpenGL = 1, // Handle is an OpenGL texture name or an OpenGL render buffer name, depending on submit flags + TextureType_Vulkan = 2, // Handle is a pointer to a VRVulkanTextureData_t structure + TextureType_IOSurface = 3, // Handle is a macOS cross-process-sharable IOSurfaceRef + TextureType_DirectX12 = 4, // Handle is a pointer to a D3D12TextureData_t structure +}; + +enum EColorSpace +{ + ColorSpace_Auto = 0, // Assumes 'gamma' for 8-bit per component formats, otherwise 'linear'. This mirrors the DXGI formats which have _SRGB variants. + ColorSpace_Gamma = 1, // Texture data can be displayed directly on the display without any conversion (a.k.a. display native format). + ColorSpace_Linear = 2, // Same as gamma but has been converted to a linear representation using DXGI's sRGB conversion algorithm. +}; + +struct Texture_t +{ + void* handle; // See ETextureType definition above + ETextureType eType; + EColorSpace eColorSpace; +}; + +// Handle to a shared texture (HANDLE on Windows obtained using OpenSharedResource). +typedef uint64_t SharedTextureHandle_t; +#define INVALID_SHARED_TEXTURE_HANDLE ((vr::SharedTextureHandle_t)0) + +enum ETrackingResult +{ + TrackingResult_Uninitialized = 1, + + TrackingResult_Calibrating_InProgress = 100, + TrackingResult_Calibrating_OutOfRange = 101, + + TrackingResult_Running_OK = 200, + TrackingResult_Running_OutOfRange = 201, +}; + +typedef uint32_t DriverId_t; +static const uint32_t k_nDriverNone = 0xFFFFFFFF; + +static const uint32_t k_unMaxDriverDebugResponseSize = 32768; + +/** Used to pass device IDs to API calls */ +typedef uint32_t TrackedDeviceIndex_t; +static const uint32_t k_unTrackedDeviceIndex_Hmd = 0; +static const uint32_t k_unMaxTrackedDeviceCount = 16; +static const uint32_t k_unTrackedDeviceIndexOther = 0xFFFFFFFE; +static const uint32_t k_unTrackedDeviceIndexInvalid = 0xFFFFFFFF; + +/** Describes what kind of object is being tracked at a given ID */ +enum ETrackedDeviceClass +{ + TrackedDeviceClass_Invalid = 0, // the ID was not valid. + TrackedDeviceClass_HMD = 1, // Head-Mounted Displays + TrackedDeviceClass_Controller = 2, // Tracked controllers + TrackedDeviceClass_GenericTracker = 3, // Generic trackers, similar to controllers + TrackedDeviceClass_TrackingReference = 4, // Camera and base stations that serve as tracking reference points + TrackedDeviceClass_DisplayRedirect = 5, // Accessories that aren't necessarily tracked themselves, but may redirect video output from other tracked devices +}; + + +/** Describes what specific role associated with a tracked device */ +enum ETrackedControllerRole +{ + TrackedControllerRole_Invalid = 0, // Invalid value for controller type + TrackedControllerRole_LeftHand = 1, // Tracked device associated with the left hand + TrackedControllerRole_RightHand = 2, // Tracked device associated with the right hand +}; + + +/** describes a single pose for a tracked object */ +struct TrackedDevicePose_t +{ + HmdMatrix34_t mDeviceToAbsoluteTracking; + HmdVector3_t vVelocity; // velocity in tracker space in m/s + HmdVector3_t vAngularVelocity; // angular velocity in radians/s (?) + ETrackingResult eTrackingResult; + bool bPoseIsValid; + + // This indicates that there is a device connected for this spot in the pose array. + // It could go from true to false if the user unplugs the device. + bool bDeviceIsConnected; +}; + +/** Identifies which style of tracking origin the application wants to use +* for the poses it is requesting */ +enum ETrackingUniverseOrigin +{ + TrackingUniverseSeated = 0, // Poses are provided relative to the seated zero pose + TrackingUniverseStanding = 1, // Poses are provided relative to the safe bounds configured by the user + TrackingUniverseRawAndUncalibrated = 2, // Poses are provided in the coordinate system defined by the driver. It has Y up and is unified for devices of the same driver. You usually don't want this one. +}; + +// Refers to a single container of properties +typedef uint64_t PropertyContainerHandle_t; +typedef uint32_t PropertyTypeTag_t; + +static const PropertyContainerHandle_t k_ulInvalidPropertyContainer = 0; +static const PropertyTypeTag_t k_unInvalidPropertyTag = 0; + +// Use these tags to set/get common types as struct properties +static const PropertyTypeTag_t k_unFloatPropertyTag = 1; +static const PropertyTypeTag_t k_unInt32PropertyTag = 2; +static const PropertyTypeTag_t k_unUint64PropertyTag = 3; +static const PropertyTypeTag_t k_unBoolPropertyTag = 4; +static const PropertyTypeTag_t k_unStringPropertyTag = 5; + +static const PropertyTypeTag_t k_unHmdMatrix34PropertyTag = 20; +static const PropertyTypeTag_t k_unHmdMatrix44PropertyTag = 21; +static const PropertyTypeTag_t k_unHmdVector3PropertyTag = 22; +static const PropertyTypeTag_t k_unHmdVector4PropertyTag = 23; + +static const PropertyTypeTag_t k_unHiddenAreaPropertyTag = 30; + +static const PropertyTypeTag_t k_unOpenVRInternalReserved_Start = 1000; +static const PropertyTypeTag_t k_unOpenVRInternalReserved_End = 10000; + + +/** Each entry in this enum represents a property that can be retrieved about a +* tracked device. Many fields are only valid for one ETrackedDeviceClass. */ +enum ETrackedDeviceProperty +{ + Prop_Invalid = 0, + + // general properties that apply to all device classes + Prop_TrackingSystemName_String = 1000, + Prop_ModelNumber_String = 1001, + Prop_SerialNumber_String = 1002, + Prop_RenderModelName_String = 1003, + Prop_WillDriftInYaw_Bool = 1004, + Prop_ManufacturerName_String = 1005, + Prop_TrackingFirmwareVersion_String = 1006, + Prop_HardwareRevision_String = 1007, + Prop_AllWirelessDongleDescriptions_String = 1008, + Prop_ConnectedWirelessDongle_String = 1009, + Prop_DeviceIsWireless_Bool = 1010, + Prop_DeviceIsCharging_Bool = 1011, + Prop_DeviceBatteryPercentage_Float = 1012, // 0 is empty, 1 is full + Prop_StatusDisplayTransform_Matrix34 = 1013, + Prop_Firmware_UpdateAvailable_Bool = 1014, + Prop_Firmware_ManualUpdate_Bool = 1015, + Prop_Firmware_ManualUpdateURL_String = 1016, + Prop_HardwareRevision_Uint64 = 1017, + Prop_FirmwareVersion_Uint64 = 1018, + Prop_FPGAVersion_Uint64 = 1019, + Prop_VRCVersion_Uint64 = 1020, + Prop_RadioVersion_Uint64 = 1021, + Prop_DongleVersion_Uint64 = 1022, + Prop_BlockServerShutdown_Bool = 1023, + Prop_CanUnifyCoordinateSystemWithHmd_Bool = 1024, + Prop_ContainsProximitySensor_Bool = 1025, + Prop_DeviceProvidesBatteryStatus_Bool = 1026, + Prop_DeviceCanPowerOff_Bool = 1027, + Prop_Firmware_ProgrammingTarget_String = 1028, + Prop_DeviceClass_Int32 = 1029, + Prop_HasCamera_Bool = 1030, + Prop_DriverVersion_String = 1031, + Prop_Firmware_ForceUpdateRequired_Bool = 1032, + Prop_ViveSystemButtonFixRequired_Bool = 1033, + Prop_ParentDriver_Uint64 = 1034, + Prop_ResourceRoot_String = 1035, + + // Properties that are unique to TrackedDeviceClass_HMD + Prop_ReportsTimeSinceVSync_Bool = 2000, + Prop_SecondsFromVsyncToPhotons_Float = 2001, + Prop_DisplayFrequency_Float = 2002, + Prop_UserIpdMeters_Float = 2003, + Prop_CurrentUniverseId_Uint64 = 2004, + Prop_PreviousUniverseId_Uint64 = 2005, + Prop_DisplayFirmwareVersion_Uint64 = 2006, + Prop_IsOnDesktop_Bool = 2007, + Prop_DisplayMCType_Int32 = 2008, + Prop_DisplayMCOffset_Float = 2009, + Prop_DisplayMCScale_Float = 2010, + Prop_EdidVendorID_Int32 = 2011, + Prop_DisplayMCImageLeft_String = 2012, + Prop_DisplayMCImageRight_String = 2013, + Prop_DisplayGCBlackClamp_Float = 2014, + Prop_EdidProductID_Int32 = 2015, + Prop_CameraToHeadTransform_Matrix34 = 2016, + Prop_DisplayGCType_Int32 = 2017, + Prop_DisplayGCOffset_Float = 2018, + Prop_DisplayGCScale_Float = 2019, + Prop_DisplayGCPrescale_Float = 2020, + Prop_DisplayGCImage_String = 2021, + Prop_LensCenterLeftU_Float = 2022, + Prop_LensCenterLeftV_Float = 2023, + Prop_LensCenterRightU_Float = 2024, + Prop_LensCenterRightV_Float = 2025, + Prop_UserHeadToEyeDepthMeters_Float = 2026, + Prop_CameraFirmwareVersion_Uint64 = 2027, + Prop_CameraFirmwareDescription_String = 2028, + Prop_DisplayFPGAVersion_Uint64 = 2029, + Prop_DisplayBootloaderVersion_Uint64 = 2030, + Prop_DisplayHardwareVersion_Uint64 = 2031, + Prop_AudioFirmwareVersion_Uint64 = 2032, + Prop_CameraCompatibilityMode_Int32 = 2033, + Prop_ScreenshotHorizontalFieldOfViewDegrees_Float = 2034, + Prop_ScreenshotVerticalFieldOfViewDegrees_Float = 2035, + Prop_DisplaySuppressed_Bool = 2036, + Prop_DisplayAllowNightMode_Bool = 2037, + Prop_DisplayMCImageWidth_Int32 = 2038, + Prop_DisplayMCImageHeight_Int32 = 2039, + Prop_DisplayMCImageNumChannels_Int32 = 2040, + Prop_DisplayMCImageData_Binary = 2041, + Prop_SecondsFromPhotonsToVblank_Float = 2042, + Prop_DriverDirectModeSendsVsyncEvents_Bool = 2043, + Prop_DisplayDebugMode_Bool = 2044, + Prop_GraphicsAdapterLuid_Uint64 = 2045, + + // Properties that are unique to TrackedDeviceClass_Controller + Prop_AttachedDeviceId_String = 3000, + Prop_SupportedButtons_Uint64 = 3001, + Prop_Axis0Type_Int32 = 3002, // Return value is of type EVRControllerAxisType + Prop_Axis1Type_Int32 = 3003, // Return value is of type EVRControllerAxisType + Prop_Axis2Type_Int32 = 3004, // Return value is of type EVRControllerAxisType + Prop_Axis3Type_Int32 = 3005, // Return value is of type EVRControllerAxisType + Prop_Axis4Type_Int32 = 3006, // Return value is of type EVRControllerAxisType + Prop_ControllerRoleHint_Int32 = 3007, // Return value is of type ETrackedControllerRole + + // Properties that are unique to TrackedDeviceClass_TrackingReference + Prop_FieldOfViewLeftDegrees_Float = 4000, + Prop_FieldOfViewRightDegrees_Float = 4001, + Prop_FieldOfViewTopDegrees_Float = 4002, + Prop_FieldOfViewBottomDegrees_Float = 4003, + Prop_TrackingRangeMinimumMeters_Float = 4004, + Prop_TrackingRangeMaximumMeters_Float = 4005, + Prop_ModeLabel_String = 4006, + + // Properties that are used for user interface like icons names + Prop_IconPathName_String = 5000, // DEPRECATED. Value not referenced. Now expected to be part of icon path properties. + Prop_NamedIconPathDeviceOff_String = 5001, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceSearching_String = 5002, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceSearchingAlert_String = 5003, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceReady_String = 5004, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceReadyAlert_String = 5005, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceNotReady_String = 5006, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceStandby_String = 5007, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceAlertLow_String = 5008, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + + // Properties that are used by helpers, but are opaque to applications + Prop_DisplayHiddenArea_Binary_Start = 5100, + Prop_DisplayHiddenArea_Binary_End = 5150, + + // Properties that are unique to drivers + Prop_UserConfigPath_String = 6000, + Prop_InstallPath_String = 6001, + Prop_HasDisplayComponent_Bool = 6002, + Prop_HasControllerComponent_Bool = 6003, + Prop_HasCameraComponent_Bool = 6004, + Prop_HasDriverDirectModeComponent_Bool = 6005, + Prop_HasVirtualDisplayComponent_Bool = 6006, + + // Vendors are free to expose private debug data in this reserved region + Prop_VendorSpecific_Reserved_Start = 10000, + Prop_VendorSpecific_Reserved_End = 10999, +}; + +/** No string property will ever be longer than this length */ +static const uint32_t k_unMaxPropertyStringSize = 32 * 1024; + +/** Used to return errors that occur when reading properties. */ +enum ETrackedPropertyError +{ + TrackedProp_Success = 0, + TrackedProp_WrongDataType = 1, + TrackedProp_WrongDeviceClass = 2, + TrackedProp_BufferTooSmall = 3, + TrackedProp_UnknownProperty = 4, // Driver has not set the property (and may not ever). + TrackedProp_InvalidDevice = 5, + TrackedProp_CouldNotContactServer = 6, + TrackedProp_ValueNotProvidedByDevice = 7, + TrackedProp_StringExceedsMaximumLength = 8, + TrackedProp_NotYetAvailable = 9, // The property value isn't known yet, but is expected soon. Call again later. + TrackedProp_PermissionDenied = 10, + TrackedProp_InvalidOperation = 11, +}; + +/** Allows the application to control what part of the provided texture will be used in the +* frame buffer. */ +struct VRTextureBounds_t +{ + float uMin, vMin; + float uMax, vMax; +}; + + +/** Allows the application to control how scene textures are used by the compositor when calling Submit. */ +enum EVRSubmitFlags +{ + // Simple render path. App submits rendered left and right eye images with no lens distortion correction applied. + Submit_Default = 0x00, + + // App submits final left and right eye images with lens distortion already applied (lens distortion makes the images appear + // barrel distorted with chromatic aberration correction applied). The app would have used the data returned by + // vr::IVRSystem::ComputeDistortion() to apply the correct distortion to the rendered images before calling Submit(). + Submit_LensDistortionAlreadyApplied = 0x01, + + // If the texture pointer passed in is actually a renderbuffer (e.g. for MSAA in OpenGL) then set this flag. + Submit_GlRenderBuffer = 0x02, + + // Do not use + Submit_Reserved = 0x04, +}; + +/** Data required for passing Vulkan textures to IVRCompositor::Submit. +* Be sure to call OpenVR_Shutdown before destroying these resources. */ +struct VRVulkanTextureData_t +{ + uint64_t m_nImage; // VkImage + VkDevice_T *m_pDevice; + VkPhysicalDevice_T *m_pPhysicalDevice; + VkInstance_T *m_pInstance; + VkQueue_T *m_pQueue; + uint32_t m_nQueueFamilyIndex; + uint32_t m_nWidth, m_nHeight, m_nFormat, m_nSampleCount; +}; + +/** Data required for passing D3D12 textures to IVRCompositor::Submit. +* Be sure to call OpenVR_Shutdown before destroying these resources. */ +struct D3D12TextureData_t +{ + ID3D12Resource *m_pResource; + ID3D12CommandQueue *m_pCommandQueue; + uint32_t m_nNodeMask; +}; + +/** Status of the overall system or tracked objects */ +enum EVRState +{ + VRState_Undefined = -1, + VRState_Off = 0, + VRState_Searching = 1, + VRState_Searching_Alert = 2, + VRState_Ready = 3, + VRState_Ready_Alert = 4, + VRState_NotReady = 5, + VRState_Standby = 6, + VRState_Ready_Alert_Low = 7, +}; + +/** The types of events that could be posted (and what the parameters mean for each event type) */ +enum EVREventType +{ + VREvent_None = 0, + + VREvent_TrackedDeviceActivated = 100, + VREvent_TrackedDeviceDeactivated = 101, + VREvent_TrackedDeviceUpdated = 102, + VREvent_TrackedDeviceUserInteractionStarted = 103, + VREvent_TrackedDeviceUserInteractionEnded = 104, + VREvent_IpdChanged = 105, + VREvent_EnterStandbyMode = 106, + VREvent_LeaveStandbyMode = 107, + VREvent_TrackedDeviceRoleChanged = 108, + VREvent_WatchdogWakeUpRequested = 109, + VREvent_LensDistortionChanged = 110, + VREvent_PropertyChanged = 111, + + VREvent_ButtonPress = 200, // data is controller + VREvent_ButtonUnpress = 201, // data is controller + VREvent_ButtonTouch = 202, // data is controller + VREvent_ButtonUntouch = 203, // data is controller + + VREvent_MouseMove = 300, // data is mouse + VREvent_MouseButtonDown = 301, // data is mouse + VREvent_MouseButtonUp = 302, // data is mouse + VREvent_FocusEnter = 303, // data is overlay + VREvent_FocusLeave = 304, // data is overlay + VREvent_Scroll = 305, // data is mouse + VREvent_TouchPadMove = 306, // data is mouse + VREvent_OverlayFocusChanged = 307, // data is overlay, global event + + VREvent_InputFocusCaptured = 400, // data is process DEPRECATED + VREvent_InputFocusReleased = 401, // data is process DEPRECATED + VREvent_SceneFocusLost = 402, // data is process + VREvent_SceneFocusGained = 403, // data is process + VREvent_SceneApplicationChanged = 404, // data is process - The App actually drawing the scene changed (usually to or from the compositor) + VREvent_SceneFocusChanged = 405, // data is process - New app got access to draw the scene + VREvent_InputFocusChanged = 406, // data is process + VREvent_SceneApplicationSecondaryRenderingStarted = 407, // data is process + + VREvent_HideRenderModels = 410, // Sent to the scene application to request hiding render models temporarily + VREvent_ShowRenderModels = 411, // Sent to the scene application to request restoring render model visibility + + VREvent_OverlayShown = 500, + VREvent_OverlayHidden = 501, + VREvent_DashboardActivated = 502, + VREvent_DashboardDeactivated = 503, + VREvent_DashboardThumbSelected = 504, // Sent to the overlay manager - data is overlay + VREvent_DashboardRequested = 505, // Sent to the overlay manager - data is overlay + VREvent_ResetDashboard = 506, // Send to the overlay manager + VREvent_RenderToast = 507, // Send to the dashboard to render a toast - data is the notification ID + VREvent_ImageLoaded = 508, // Sent to overlays when a SetOverlayRaw or SetOverlayFromFile call finishes loading + VREvent_ShowKeyboard = 509, // Sent to keyboard renderer in the dashboard to invoke it + VREvent_HideKeyboard = 510, // Sent to keyboard renderer in the dashboard to hide it + VREvent_OverlayGamepadFocusGained = 511, // Sent to an overlay when IVROverlay::SetFocusOverlay is called on it + VREvent_OverlayGamepadFocusLost = 512, // Send to an overlay when it previously had focus and IVROverlay::SetFocusOverlay is called on something else + VREvent_OverlaySharedTextureChanged = 513, + VREvent_DashboardGuideButtonDown = 514, + VREvent_DashboardGuideButtonUp = 515, + VREvent_ScreenshotTriggered = 516, // Screenshot button combo was pressed, Dashboard should request a screenshot + VREvent_ImageFailed = 517, // Sent to overlays when a SetOverlayRaw or SetOverlayfromFail fails to load + VREvent_DashboardOverlayCreated = 518, + + // Screenshot API + VREvent_RequestScreenshot = 520, // Sent by vrclient application to compositor to take a screenshot + VREvent_ScreenshotTaken = 521, // Sent by compositor to the application that the screenshot has been taken + VREvent_ScreenshotFailed = 522, // Sent by compositor to the application that the screenshot failed to be taken + VREvent_SubmitScreenshotToDashboard = 523, // Sent by compositor to the dashboard that a completed screenshot was submitted + VREvent_ScreenshotProgressToDashboard = 524, // Sent by compositor to the dashboard that a completed screenshot was submitted + + VREvent_PrimaryDashboardDeviceChanged = 525, + + VREvent_Notification_Shown = 600, + VREvent_Notification_Hidden = 601, + VREvent_Notification_BeginInteraction = 602, + VREvent_Notification_Destroyed = 603, + + VREvent_Quit = 700, // data is process + VREvent_ProcessQuit = 701, // data is process + VREvent_QuitAborted_UserPrompt = 702, // data is process + VREvent_QuitAcknowledged = 703, // data is process + VREvent_DriverRequestedQuit = 704, // The driver has requested that SteamVR shut down + + VREvent_ChaperoneDataHasChanged = 800, + VREvent_ChaperoneUniverseHasChanged = 801, + VREvent_ChaperoneTempDataHasChanged = 802, + VREvent_ChaperoneSettingsHaveChanged = 803, + VREvent_SeatedZeroPoseReset = 804, + + VREvent_AudioSettingsHaveChanged = 820, + + VREvent_BackgroundSettingHasChanged = 850, + VREvent_CameraSettingsHaveChanged = 851, + VREvent_ReprojectionSettingHasChanged = 852, + VREvent_ModelSkinSettingsHaveChanged = 853, + VREvent_EnvironmentSettingsHaveChanged = 854, + VREvent_PowerSettingsHaveChanged = 855, + VREvent_EnableHomeAppSettingsHaveChanged = 856, + + VREvent_StatusUpdate = 900, + + VREvent_MCImageUpdated = 1000, + + VREvent_FirmwareUpdateStarted = 1100, + VREvent_FirmwareUpdateFinished = 1101, + + VREvent_KeyboardClosed = 1200, + VREvent_KeyboardCharInput = 1201, + VREvent_KeyboardDone = 1202, // Sent when DONE button clicked on keyboard + + VREvent_ApplicationTransitionStarted = 1300, + VREvent_ApplicationTransitionAborted = 1301, + VREvent_ApplicationTransitionNewAppStarted = 1302, + VREvent_ApplicationListUpdated = 1303, + VREvent_ApplicationMimeTypeLoad = 1304, + VREvent_ApplicationTransitionNewAppLaunchComplete = 1305, + VREvent_ProcessConnected = 1306, + VREvent_ProcessDisconnected = 1307, + + VREvent_Compositor_MirrorWindowShown = 1400, + VREvent_Compositor_MirrorWindowHidden = 1401, + VREvent_Compositor_ChaperoneBoundsShown = 1410, + VREvent_Compositor_ChaperoneBoundsHidden = 1411, + + VREvent_TrackedCamera_StartVideoStream = 1500, + VREvent_TrackedCamera_StopVideoStream = 1501, + VREvent_TrackedCamera_PauseVideoStream = 1502, + VREvent_TrackedCamera_ResumeVideoStream = 1503, + VREvent_TrackedCamera_EditingSurface = 1550, + + VREvent_PerformanceTest_EnableCapture = 1600, + VREvent_PerformanceTest_DisableCapture = 1601, + VREvent_PerformanceTest_FidelityLevel = 1602, + + VREvent_MessageOverlay_Closed = 1650, + + // Vendors are free to expose private events in this reserved region + VREvent_VendorSpecific_Reserved_Start = 10000, + VREvent_VendorSpecific_Reserved_End = 19999, +}; + + +/** Level of Hmd activity */ +// UserInteraction_Timeout means the device is in the process of timing out. +// InUse = ( k_EDeviceActivityLevel_UserInteraction || k_EDeviceActivityLevel_UserInteraction_Timeout ) +// VREvent_TrackedDeviceUserInteractionStarted fires when the devices transitions from Standby -> UserInteraction or Idle -> UserInteraction. +// VREvent_TrackedDeviceUserInteractionEnded fires when the devices transitions from UserInteraction_Timeout -> Idle +enum EDeviceActivityLevel +{ + k_EDeviceActivityLevel_Unknown = -1, + k_EDeviceActivityLevel_Idle = 0, // No activity for the last 10 seconds + k_EDeviceActivityLevel_UserInteraction = 1, // Activity (movement or prox sensor) is happening now + k_EDeviceActivityLevel_UserInteraction_Timeout = 2, // No activity for the last 0.5 seconds + k_EDeviceActivityLevel_Standby = 3, // Idle for at least 5 seconds (configurable in Settings -> Power Management) +}; + + +/** VR controller button and axis IDs */ +enum EVRButtonId +{ + k_EButton_System = 0, + k_EButton_ApplicationMenu = 1, + k_EButton_Grip = 2, + k_EButton_DPad_Left = 3, + k_EButton_DPad_Up = 4, + k_EButton_DPad_Right = 5, + k_EButton_DPad_Down = 6, + k_EButton_A = 7, + + k_EButton_ProximitySensor = 31, + + k_EButton_Axis0 = 32, + k_EButton_Axis1 = 33, + k_EButton_Axis2 = 34, + k_EButton_Axis3 = 35, + k_EButton_Axis4 = 36, + + // aliases for well known controllers + k_EButton_SteamVR_Touchpad = k_EButton_Axis0, + k_EButton_SteamVR_Trigger = k_EButton_Axis1, + + k_EButton_Dashboard_Back = k_EButton_Grip, + + k_EButton_Max = 64 +}; + +inline uint64_t ButtonMaskFromId( EVRButtonId id ) { return 1ull << id; } + +/** used for controller button events */ +struct VREvent_Controller_t +{ + uint32_t button; // EVRButtonId enum +}; + + +/** used for simulated mouse events in overlay space */ +enum EVRMouseButton +{ + VRMouseButton_Left = 0x0001, + VRMouseButton_Right = 0x0002, + VRMouseButton_Middle = 0x0004, +}; + + +/** used for simulated mouse events in overlay space */ +struct VREvent_Mouse_t +{ + float x, y; // co-ords are in GL space, bottom left of the texture is 0,0 + uint32_t button; // EVRMouseButton enum +}; + +/** used for simulated mouse wheel scroll in overlay space */ +struct VREvent_Scroll_t +{ + float xdelta, ydelta; // movement in fraction of the pad traversed since last delta, 1.0 for a full swipe + uint32_t repeatCount; +}; + +/** when in mouse input mode you can receive data from the touchpad, these events are only sent if the users finger + is on the touchpad (or just released from it) +**/ +struct VREvent_TouchPadMove_t +{ + // true if the users finger is detected on the touch pad + bool bFingerDown; + + // How long the finger has been down in seconds + float flSecondsFingerDown; + + // These values indicate the starting finger position (so you can do some basic swipe stuff) + float fValueXFirst; + float fValueYFirst; + + // This is the raw sampled coordinate without deadzoning + float fValueXRaw; + float fValueYRaw; +}; + +/** notification related events. Details will still change at this point */ +struct VREvent_Notification_t +{ + uint64_t ulUserValue; + uint32_t notificationId; +}; + +/** Used for events about processes */ +struct VREvent_Process_t +{ + uint32_t pid; + uint32_t oldPid; + bool bForced; +}; + + +/** Used for a few events about overlays */ +struct VREvent_Overlay_t +{ + uint64_t overlayHandle; +}; + + +/** Used for a few events about overlays */ +struct VREvent_Status_t +{ + uint32_t statusState; // EVRState enum +}; + +/** Used for keyboard events **/ +struct VREvent_Keyboard_t +{ + char cNewInput[8]; // Up to 11 bytes of new input + uint64_t uUserValue; // Possible flags about the new input +}; + +struct VREvent_Ipd_t +{ + float ipdMeters; +}; + +struct VREvent_Chaperone_t +{ + uint64_t m_nPreviousUniverse; + uint64_t m_nCurrentUniverse; +}; + +/** Not actually used for any events */ +struct VREvent_Reserved_t +{ + uint64_t reserved0; + uint64_t reserved1; +}; + +struct VREvent_PerformanceTest_t +{ + uint32_t m_nFidelityLevel; +}; + +struct VREvent_SeatedZeroPoseReset_t +{ + bool bResetBySystemMenu; +}; + +struct VREvent_Screenshot_t +{ + uint32_t handle; + uint32_t type; +}; + +struct VREvent_ScreenshotProgress_t +{ + float progress; +}; + +struct VREvent_ApplicationLaunch_t +{ + uint32_t pid; + uint32_t unArgsHandle; +}; + +struct VREvent_EditingCameraSurface_t +{ + uint64_t overlayHandle; + uint32_t nVisualMode; +}; + +struct VREvent_MessageOverlay_t +{ + uint32_t unVRMessageOverlayResponse; // vr::VRMessageOverlayResponse enum +}; + +struct VREvent_Property_t +{ + PropertyContainerHandle_t container; + ETrackedDeviceProperty prop; +}; + +/** NOTE!!! If you change this you MUST manually update openvr_interop.cs.py */ +typedef union +{ + VREvent_Reserved_t reserved; + VREvent_Controller_t controller; + VREvent_Mouse_t mouse; + VREvent_Scroll_t scroll; + VREvent_Process_t process; + VREvent_Notification_t notification; + VREvent_Overlay_t overlay; + VREvent_Status_t status; + VREvent_Keyboard_t keyboard; + VREvent_Ipd_t ipd; + VREvent_Chaperone_t chaperone; + VREvent_PerformanceTest_t performanceTest; + VREvent_TouchPadMove_t touchPadMove; + VREvent_SeatedZeroPoseReset_t seatedZeroPoseReset; + VREvent_Screenshot_t screenshot; + VREvent_ScreenshotProgress_t screenshotProgress; + VREvent_ApplicationLaunch_t applicationLaunch; + VREvent_EditingCameraSurface_t cameraSurface; + VREvent_MessageOverlay_t messageOverlay; + VREvent_Property_t property; +} VREvent_Data_t; + + +#if defined(__linux__) || defined(__APPLE__) +// This structure was originally defined mis-packed on Linux, preserved for +// compatibility. +#pragma pack( push, 4 ) +#endif + +/** An event posted by the server to all running applications */ +struct VREvent_t +{ + uint32_t eventType; // EVREventType enum + TrackedDeviceIndex_t trackedDeviceIndex; + float eventAgeSeconds; + // event data must be the end of the struct as its size is variable + VREvent_Data_t data; +}; + +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( pop ) +#endif + +/** The mesh to draw into the stencil (or depth) buffer to perform +* early stencil (or depth) kills of pixels that will never appear on the HMD. +* This mesh draws on all the pixels that will be hidden after distortion. +* +* If the HMD does not provide a visible area mesh pVertexData will be +* NULL and unTriangleCount will be 0. */ +struct HiddenAreaMesh_t +{ + const HmdVector2_t *pVertexData; + uint32_t unTriangleCount; +}; + + +enum EHiddenAreaMeshType +{ + k_eHiddenAreaMesh_Standard = 0, + k_eHiddenAreaMesh_Inverse = 1, + k_eHiddenAreaMesh_LineLoop = 2, + + k_eHiddenAreaMesh_Max = 3, +}; + + +/** Identifies what kind of axis is on the controller at index n. Read this type +* with pVRSystem->Get( nControllerDeviceIndex, Prop_Axis0Type_Int32 + n ); +*/ +enum EVRControllerAxisType +{ + k_eControllerAxis_None = 0, + k_eControllerAxis_TrackPad = 1, + k_eControllerAxis_Joystick = 2, + k_eControllerAxis_Trigger = 3, // Analog trigger data is in the X axis +}; + + +/** contains information about one axis on the controller */ +struct VRControllerAxis_t +{ + float x; // Ranges from -1.0 to 1.0 for joysticks and track pads. Ranges from 0.0 to 1.0 for triggers were 0 is fully released. + float y; // Ranges from -1.0 to 1.0 for joysticks and track pads. Is always 0.0 for triggers. +}; + + +/** the number of axes in the controller state */ +static const uint32_t k_unControllerStateAxisCount = 5; + + +#if defined(__linux__) || defined(__APPLE__) +// This structure was originally defined mis-packed on Linux, preserved for +// compatibility. +#pragma pack( push, 4 ) +#endif + +/** Holds all the state of a controller at one moment in time. */ +struct VRControllerState001_t +{ + // If packet num matches that on your prior call, then the controller state hasn't been changed since + // your last call and there is no need to process it + uint32_t unPacketNum; + + // bit flags for each of the buttons. Use ButtonMaskFromId to turn an ID into a mask + uint64_t ulButtonPressed; + uint64_t ulButtonTouched; + + // Axis data for the controller's analog inputs + VRControllerAxis_t rAxis[ k_unControllerStateAxisCount ]; +}; +#if defined(__linux__) || defined(__APPLE__) +#pragma pack( pop ) +#endif + + +typedef VRControllerState001_t VRControllerState_t; + + +/** determines how to provide output to the application of various event processing functions. */ +enum EVRControllerEventOutputType +{ + ControllerEventOutput_OSEvents = 0, + ControllerEventOutput_VREvents = 1, +}; + + + +/** Collision Bounds Style */ +enum ECollisionBoundsStyle +{ + COLLISION_BOUNDS_STYLE_BEGINNER = 0, + COLLISION_BOUNDS_STYLE_INTERMEDIATE, + COLLISION_BOUNDS_STYLE_SQUARES, + COLLISION_BOUNDS_STYLE_ADVANCED, + COLLISION_BOUNDS_STYLE_NONE, + + COLLISION_BOUNDS_STYLE_COUNT +}; + +/** Allows the application to customize how the overlay appears in the compositor */ +struct Compositor_OverlaySettings +{ + uint32_t size; // sizeof(Compositor_OverlaySettings) + bool curved, antialias; + float scale, distance, alpha; + float uOffset, vOffset, uScale, vScale; + float gridDivs, gridWidth, gridScale; + HmdMatrix44_t transform; +}; + +/** used to refer to a single VR overlay */ +typedef uint64_t VROverlayHandle_t; + +static const VROverlayHandle_t k_ulOverlayHandleInvalid = 0; + +/** Errors that can occur around VR overlays */ +enum EVROverlayError +{ + VROverlayError_None = 0, + + VROverlayError_UnknownOverlay = 10, + VROverlayError_InvalidHandle = 11, + VROverlayError_PermissionDenied = 12, + VROverlayError_OverlayLimitExceeded = 13, // No more overlays could be created because the maximum number already exist + VROverlayError_WrongVisibilityType = 14, + VROverlayError_KeyTooLong = 15, + VROverlayError_NameTooLong = 16, + VROverlayError_KeyInUse = 17, + VROverlayError_WrongTransformType = 18, + VROverlayError_InvalidTrackedDevice = 19, + VROverlayError_InvalidParameter = 20, + VROverlayError_ThumbnailCantBeDestroyed = 21, + VROverlayError_ArrayTooSmall = 22, + VROverlayError_RequestFailed = 23, + VROverlayError_InvalidTexture = 24, + VROverlayError_UnableToLoadFile = 25, + VROverlayError_KeyboardAlreadyInUse = 26, + VROverlayError_NoNeighbor = 27, + VROverlayError_TooManyMaskPrimitives = 29, + VROverlayError_BadMaskPrimitive = 30, +}; + +/** enum values to pass in to VR_Init to identify whether the application will +* draw a 3D scene. */ +enum EVRApplicationType +{ + VRApplication_Other = 0, // Some other kind of application that isn't covered by the other entries + VRApplication_Scene = 1, // Application will submit 3D frames + VRApplication_Overlay = 2, // Application only interacts with overlays + VRApplication_Background = 3, // Application should not start SteamVR if it's not already running, and should not + // keep it running if everything else quits. + VRApplication_Utility = 4, // Init should not try to load any drivers. The application needs access to utility + // interfaces (like IVRSettings and IVRApplications) but not hardware. + VRApplication_VRMonitor = 5, // Reserved for vrmonitor + VRApplication_SteamWatchdog = 6,// Reserved for Steam + VRApplication_Bootstrapper = 7, // Start up SteamVR + + VRApplication_Max +}; + + +/** error codes for firmware */ +enum EVRFirmwareError +{ + VRFirmwareError_None = 0, + VRFirmwareError_Success = 1, + VRFirmwareError_Fail = 2, +}; + + +/** error codes for notifications */ +enum EVRNotificationError +{ + VRNotificationError_OK = 0, + VRNotificationError_InvalidNotificationId = 100, + VRNotificationError_NotificationQueueFull = 101, + VRNotificationError_InvalidOverlayHandle = 102, + VRNotificationError_SystemWithUserValueAlreadyExists = 103, +}; + + +/** error codes returned by Vr_Init */ + +// Please add adequate error description to https://developer.valvesoftware.com/w/index.php?title=Category:SteamVRHelp +enum EVRInitError +{ + VRInitError_None = 0, + VRInitError_Unknown = 1, + + VRInitError_Init_InstallationNotFound = 100, + VRInitError_Init_InstallationCorrupt = 101, + VRInitError_Init_VRClientDLLNotFound = 102, + VRInitError_Init_FileNotFound = 103, + VRInitError_Init_FactoryNotFound = 104, + VRInitError_Init_InterfaceNotFound = 105, + VRInitError_Init_InvalidInterface = 106, + VRInitError_Init_UserConfigDirectoryInvalid = 107, + VRInitError_Init_HmdNotFound = 108, + VRInitError_Init_NotInitialized = 109, + VRInitError_Init_PathRegistryNotFound = 110, + VRInitError_Init_NoConfigPath = 111, + VRInitError_Init_NoLogPath = 112, + VRInitError_Init_PathRegistryNotWritable = 113, + VRInitError_Init_AppInfoInitFailed = 114, + VRInitError_Init_Retry = 115, // Used internally to cause retries to vrserver + VRInitError_Init_InitCanceledByUser = 116, // The calling application should silently exit. The user canceled app startup + VRInitError_Init_AnotherAppLaunching = 117, + VRInitError_Init_SettingsInitFailed = 118, + VRInitError_Init_ShuttingDown = 119, + VRInitError_Init_TooManyObjects = 120, + VRInitError_Init_NoServerForBackgroundApp = 121, + VRInitError_Init_NotSupportedWithCompositor = 122, + VRInitError_Init_NotAvailableToUtilityApps = 123, + VRInitError_Init_Internal = 124, + VRInitError_Init_HmdDriverIdIsNone = 125, + VRInitError_Init_HmdNotFoundPresenceFailed = 126, + VRInitError_Init_VRMonitorNotFound = 127, + VRInitError_Init_VRMonitorStartupFailed = 128, + VRInitError_Init_LowPowerWatchdogNotSupported = 129, + VRInitError_Init_InvalidApplicationType = 130, + VRInitError_Init_NotAvailableToWatchdogApps = 131, + VRInitError_Init_WatchdogDisabledInSettings = 132, + VRInitError_Init_VRDashboardNotFound = 133, + VRInitError_Init_VRDashboardStartupFailed = 134, + VRInitError_Init_VRHomeNotFound = 135, + VRInitError_Init_VRHomeStartupFailed = 136, + + VRInitError_Driver_Failed = 200, + VRInitError_Driver_Unknown = 201, + VRInitError_Driver_HmdUnknown = 202, + VRInitError_Driver_NotLoaded = 203, + VRInitError_Driver_RuntimeOutOfDate = 204, + VRInitError_Driver_HmdInUse = 205, + VRInitError_Driver_NotCalibrated = 206, + VRInitError_Driver_CalibrationInvalid = 207, + VRInitError_Driver_HmdDisplayNotFound = 208, + VRInitError_Driver_TrackedDeviceInterfaceUnknown = 209, + // VRInitError_Driver_HmdDisplayNotFoundAfterFix = 210, // not needed: here for historic reasons + VRInitError_Driver_HmdDriverIdOutOfBounds = 211, + VRInitError_Driver_HmdDisplayMirrored = 212, + + VRInitError_IPC_ServerInitFailed = 300, + VRInitError_IPC_ConnectFailed = 301, + VRInitError_IPC_SharedStateInitFailed = 302, + VRInitError_IPC_CompositorInitFailed = 303, + VRInitError_IPC_MutexInitFailed = 304, + VRInitError_IPC_Failed = 305, + VRInitError_IPC_CompositorConnectFailed = 306, + VRInitError_IPC_CompositorInvalidConnectResponse = 307, + VRInitError_IPC_ConnectFailedAfterMultipleAttempts = 308, + + VRInitError_Compositor_Failed = 400, + VRInitError_Compositor_D3D11HardwareRequired = 401, + VRInitError_Compositor_FirmwareRequiresUpdate = 402, + VRInitError_Compositor_OverlayInitFailed = 403, + VRInitError_Compositor_ScreenshotsInitFailed = 404, + VRInitError_Compositor_UnableToCreateDevice = 405, + + VRInitError_VendorSpecific_UnableToConnectToOculusRuntime = 1000, + + VRInitError_VendorSpecific_HmdFound_CantOpenDevice = 1101, + VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102, + VRInitError_VendorSpecific_HmdFound_NoStoredConfig = 1103, + VRInitError_VendorSpecific_HmdFound_ConfigTooBig = 1104, + VRInitError_VendorSpecific_HmdFound_ConfigTooSmall = 1105, + VRInitError_VendorSpecific_HmdFound_UnableToInitZLib = 1106, + VRInitError_VendorSpecific_HmdFound_CantReadFirmwareVersion = 1107, + VRInitError_VendorSpecific_HmdFound_UnableToSendUserDataStart = 1108, + VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataStart = 1109, + VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataNext = 1110, + VRInitError_VendorSpecific_HmdFound_UserDataAddressRange = 1111, + VRInitError_VendorSpecific_HmdFound_UserDataError = 1112, + VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck = 1113, + + VRInitError_Steam_SteamInstallationNotFound = 2000, +}; + +enum EVRScreenshotType +{ + VRScreenshotType_None = 0, + VRScreenshotType_Mono = 1, // left eye only + VRScreenshotType_Stereo = 2, + VRScreenshotType_Cubemap = 3, + VRScreenshotType_MonoPanorama = 4, + VRScreenshotType_StereoPanorama = 5 +}; + +enum EVRScreenshotPropertyFilenames +{ + VRScreenshotPropertyFilenames_Preview = 0, + VRScreenshotPropertyFilenames_VR = 1, +}; + +enum EVRTrackedCameraError +{ + VRTrackedCameraError_None = 0, + VRTrackedCameraError_OperationFailed = 100, + VRTrackedCameraError_InvalidHandle = 101, + VRTrackedCameraError_InvalidFrameHeaderVersion = 102, + VRTrackedCameraError_OutOfHandles = 103, + VRTrackedCameraError_IPCFailure = 104, + VRTrackedCameraError_NotSupportedForThisDevice = 105, + VRTrackedCameraError_SharedMemoryFailure = 106, + VRTrackedCameraError_FrameBufferingFailure = 107, + VRTrackedCameraError_StreamSetupFailure = 108, + VRTrackedCameraError_InvalidGLTextureId = 109, + VRTrackedCameraError_InvalidSharedTextureHandle = 110, + VRTrackedCameraError_FailedToGetGLTextureId = 111, + VRTrackedCameraError_SharedTextureFailure = 112, + VRTrackedCameraError_NoFrameAvailable = 113, + VRTrackedCameraError_InvalidArgument = 114, + VRTrackedCameraError_InvalidFrameBufferSize = 115, +}; + +enum EVRTrackedCameraFrameType +{ + VRTrackedCameraFrameType_Distorted = 0, // This is the camera video frame size in pixels, still distorted. + VRTrackedCameraFrameType_Undistorted, // In pixels, an undistorted inscribed rectangle region without invalid regions. This size is subject to changes shortly. + VRTrackedCameraFrameType_MaximumUndistorted, // In pixels, maximum undistorted with invalid regions. Non zero alpha component identifies valid regions. + MAX_CAMERA_FRAME_TYPES +}; + +typedef uint64_t TrackedCameraHandle_t; +#define INVALID_TRACKED_CAMERA_HANDLE ((vr::TrackedCameraHandle_t)0) + +struct CameraVideoStreamFrameHeader_t +{ + EVRTrackedCameraFrameType eFrameType; + + uint32_t nWidth; + uint32_t nHeight; + uint32_t nBytesPerPixel; + + uint32_t nFrameSequence; + + TrackedDevicePose_t standingTrackedDevicePose; +}; + +// Screenshot types +typedef uint32_t ScreenshotHandle_t; + +static const uint32_t k_unScreenshotHandleInvalid = 0; + +#pragma pack( pop ) + +// figure out how to import from the VR API dll +#if defined(_WIN32) + +#ifdef VR_API_EXPORT +#define VR_INTERFACE extern "C" __declspec( dllexport ) +#else +#define VR_INTERFACE extern "C" __declspec( dllimport ) +#endif + +#elif defined(__GNUC__) || defined(COMPILER_GCC) || defined(__APPLE__) + +#ifdef VR_API_EXPORT +#define VR_INTERFACE extern "C" __attribute__((visibility("default"))) +#else +#define VR_INTERFACE extern "C" +#endif + +#else +#error "Unsupported Platform." +#endif + + +#if defined( _WIN32 ) +#define VR_CALLTYPE __cdecl +#else +#define VR_CALLTYPE +#endif + +} // namespace vr + +#endif // _INCLUDE_VRTYPES_H + + +// vrannotation.h +#ifdef API_GEN +# define VR_CLANG_ATTR(ATTR) __attribute__((annotate( ATTR ))) +#else +# define VR_CLANG_ATTR(ATTR) +#endif + +#define VR_METHOD_DESC(DESC) VR_CLANG_ATTR( "desc:" #DESC ";" ) +#define VR_IGNOREATTR() VR_CLANG_ATTR( "ignore" ) +#define VR_OUT_STRUCT() VR_CLANG_ATTR( "out_struct: ;" ) +#define VR_OUT_STRING() VR_CLANG_ATTR( "out_string: ;" ) +#define VR_OUT_ARRAY_CALL(COUNTER,FUNCTION,PARAMS) VR_CLANG_ATTR( "out_array_call:" #COUNTER "," #FUNCTION "," #PARAMS ";" ) +#define VR_OUT_ARRAY_COUNT(COUNTER) VR_CLANG_ATTR( "out_array_count:" #COUNTER ";" ) +#define VR_ARRAY_COUNT(COUNTER) VR_CLANG_ATTR( "array_count:" #COUNTER ";" ) +#define VR_ARRAY_COUNT_D(COUNTER, DESC) VR_CLANG_ATTR( "array_count:" #COUNTER ";desc:" #DESC ) +#define VR_BUFFER_COUNT(COUNTER) VR_CLANG_ATTR( "buffer_count:" #COUNTER ";" ) +#define VR_OUT_BUFFER_COUNT(COUNTER) VR_CLANG_ATTR( "out_buffer_count:" #COUNTER ";" ) +#define VR_OUT_STRING_COUNT(COUNTER) VR_CLANG_ATTR( "out_string_count:" #COUNTER ";" ) + +// vrtrackedcameratypes.h +#ifndef _VRTRACKEDCAMERATYPES_H +#define _VRTRACKEDCAMERATYPES_H + +namespace vr +{ + +#pragma pack( push, 8 ) + +enum ECameraVideoStreamFormat +{ + CVS_FORMAT_UNKNOWN = 0, + CVS_FORMAT_RAW10 = 1, // 10 bits per pixel + CVS_FORMAT_NV12 = 2, // 12 bits per pixel + CVS_FORMAT_RGB24 = 3, // 24 bits per pixel + CVS_MAX_FORMATS +}; + +enum ECameraCompatibilityMode +{ + CAMERA_COMPAT_MODE_BULK_DEFAULT = 0, + CAMERA_COMPAT_MODE_BULK_64K_DMA, + CAMERA_COMPAT_MODE_BULK_16K_DMA, + CAMERA_COMPAT_MODE_BULK_8K_DMA, + CAMERA_COMPAT_MODE_ISO_52FPS, + CAMERA_COMPAT_MODE_ISO_50FPS, + CAMERA_COMPAT_MODE_ISO_48FPS, + CAMERA_COMPAT_MODE_ISO_46FPS, + CAMERA_COMPAT_MODE_ISO_44FPS, + CAMERA_COMPAT_MODE_ISO_42FPS, + CAMERA_COMPAT_MODE_ISO_40FPS, + CAMERA_COMPAT_MODE_ISO_35FPS, + CAMERA_COMPAT_MODE_ISO_30FPS, + MAX_CAMERA_COMPAT_MODES +}; + +#ifdef _MSC_VER +#define VR_CAMERA_DECL_ALIGN( x ) __declspec( align( x ) ) +#else +#define VR_CAMERA_DECL_ALIGN( x ) // +#endif + +#define MAX_CAMERA_FRAME_SHARED_HANDLES 4 + +VR_CAMERA_DECL_ALIGN( 8 ) struct CameraVideoStreamFrame_t +{ + ECameraVideoStreamFormat m_nStreamFormat; + + uint32_t m_nWidth; + uint32_t m_nHeight; + + uint32_t m_nImageDataSize; // Based on stream format, width, height + + uint32_t m_nFrameSequence; // Starts from 0 when stream starts. + + uint32_t m_nBufferIndex; // Identifies which buffer the image data is hosted + uint32_t m_nBufferCount; // Total number of configured buffers + + uint32_t m_nExposureTime; + + uint32_t m_nISPFrameTimeStamp; // Driver provided time stamp per driver centric time base + uint32_t m_nISPReferenceTimeStamp; + uint32_t m_nSyncCounter; + + uint32_t m_nCamSyncEvents; + uint32_t m_nISPSyncEvents; + + double m_flReferenceCamSyncTime; + + double m_flFrameElapsedTime; // Starts from 0 when stream starts. In seconds. + double m_flFrameDeliveryRate; + + double m_flFrameCaptureTime_DriverAbsolute; // In USB time, via AuxEvent + double m_flFrameCaptureTime_ServerRelative; // In System time within the server + uint64_t m_nFrameCaptureTicks_ServerAbsolute; // In system ticks within the server + double m_flFrameCaptureTime_ClientRelative; // At the client, relative to when the frame was exposed/captured. + + double m_flSyncMarkerError; + + TrackedDevicePose_t m_StandingTrackedDevicePose; // Supplied by HMD layer when used as a tracked camera + + uint64_t m_pImageData; +}; + +#pragma pack( pop ) + +} + +#endif // _VRTRACKEDCAMERATYPES_H +// ivrsettings.h +namespace vr +{ + enum EVRSettingsError + { + VRSettingsError_None = 0, + VRSettingsError_IPCFailed = 1, + VRSettingsError_WriteFailed = 2, + VRSettingsError_ReadFailed = 3, + VRSettingsError_JsonParseFailed = 4, + VRSettingsError_UnsetSettingHasNoDefault = 5, // This will be returned if the setting does not appear in the appropriate default file and has not been set + }; + + // The maximum length of a settings key + static const uint32_t k_unMaxSettingsKeyLength = 128; + + class IVRSettings + { + public: + virtual const char *GetSettingsErrorNameFromEnum( EVRSettingsError eError ) = 0; + + // Returns true if file sync occurred (force or settings dirty) + virtual bool Sync( bool bForce = false, EVRSettingsError *peError = nullptr ) = 0; + + virtual void SetBool( const char *pchSection, const char *pchSettingsKey, bool bValue, EVRSettingsError *peError = nullptr ) = 0; + virtual void SetInt32( const char *pchSection, const char *pchSettingsKey, int32_t nValue, EVRSettingsError *peError = nullptr ) = 0; + virtual void SetFloat( const char *pchSection, const char *pchSettingsKey, float flValue, EVRSettingsError *peError = nullptr ) = 0; + virtual void SetString( const char *pchSection, const char *pchSettingsKey, const char *pchValue, EVRSettingsError *peError = nullptr ) = 0; + + // Users of the system need to provide a proper default in default.vrsettings in the resources/settings/ directory + // of either the runtime or the driver_xxx directory. Otherwise the default will be false, 0, 0.0 or "" + virtual bool GetBool( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0; + virtual int32_t GetInt32( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0; + virtual float GetFloat( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0; + virtual void GetString( const char *pchSection, const char *pchSettingsKey, VR_OUT_STRING() char *pchValue, uint32_t unValueLen, EVRSettingsError *peError = nullptr ) = 0; + + virtual void RemoveSection( const char *pchSection, EVRSettingsError *peError = nullptr ) = 0; + virtual void RemoveKeyInSection( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) = 0; + }; + + //----------------------------------------------------------------------------- + static const char * const IVRSettings_Version = "IVRSettings_002"; + + //----------------------------------------------------------------------------- + // steamvr keys + static const char * const k_pch_SteamVR_Section = "steamvr"; + static const char * const k_pch_SteamVR_RequireHmd_String = "requireHmd"; + static const char * const k_pch_SteamVR_ForcedDriverKey_String = "forcedDriver"; + static const char * const k_pch_SteamVR_ForcedHmdKey_String = "forcedHmd"; + static const char * const k_pch_SteamVR_DisplayDebug_Bool = "displayDebug"; + static const char * const k_pch_SteamVR_DebugProcessPipe_String = "debugProcessPipe"; + static const char * const k_pch_SteamVR_DisplayDebugX_Int32 = "displayDebugX"; + static const char * const k_pch_SteamVR_DisplayDebugY_Int32 = "displayDebugY"; + static const char * const k_pch_SteamVR_SendSystemButtonToAllApps_Bool= "sendSystemButtonToAllApps"; + static const char * const k_pch_SteamVR_LogLevel_Int32 = "loglevel"; + static const char * const k_pch_SteamVR_IPD_Float = "ipd"; + static const char * const k_pch_SteamVR_Background_String = "background"; + static const char * const k_pch_SteamVR_BackgroundUseDomeProjection_Bool = "backgroundUseDomeProjection"; + static const char * const k_pch_SteamVR_BackgroundCameraHeight_Float = "backgroundCameraHeight"; + static const char * const k_pch_SteamVR_BackgroundDomeRadius_Float = "backgroundDomeRadius"; + static const char * const k_pch_SteamVR_GridColor_String = "gridColor"; + static const char * const k_pch_SteamVR_PlayAreaColor_String = "playAreaColor"; + static const char * const k_pch_SteamVR_ShowStage_Bool = "showStage"; + static const char * const k_pch_SteamVR_ActivateMultipleDrivers_Bool = "activateMultipleDrivers"; + static const char * const k_pch_SteamVR_DirectMode_Bool = "directMode"; + static const char * const k_pch_SteamVR_DirectModeEdidVid_Int32 = "directModeEdidVid"; + static const char * const k_pch_SteamVR_DirectModeEdidPid_Int32 = "directModeEdidPid"; + static const char * const k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers"; + static const char * const k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees"; + static const char * const k_pch_SteamVR_BaseStationPowerManagement_Bool = "basestationPowerManagement"; + static const char * const k_pch_SteamVR_NeverKillProcesses_Bool = "neverKillProcesses"; + static const char * const k_pch_SteamVR_SupersampleScale_Float = "supersampleScale"; + static const char * const k_pch_SteamVR_AllowAsyncReprojection_Bool = "allowAsyncReprojection"; + static const char * const k_pch_SteamVR_AllowReprojection_Bool = "allowInterleavedReprojection"; + static const char * const k_pch_SteamVR_ForceReprojection_Bool = "forceReprojection"; + static const char * const k_pch_SteamVR_ForceFadeOnBadTracking_Bool = "forceFadeOnBadTracking"; + static const char * const k_pch_SteamVR_DefaultMirrorView_Int32 = "defaultMirrorView"; + static const char * const k_pch_SteamVR_ShowMirrorView_Bool = "showMirrorView"; + static const char * const k_pch_SteamVR_MirrorViewGeometry_String = "mirrorViewGeometry"; + static const char * const k_pch_SteamVR_StartMonitorFromAppLaunch = "startMonitorFromAppLaunch"; + static const char * const k_pch_SteamVR_StartCompositorFromAppLaunch_Bool = "startCompositorFromAppLaunch"; + static const char * const k_pch_SteamVR_StartDashboardFromAppLaunch_Bool = "startDashboardFromAppLaunch"; + static const char * const k_pch_SteamVR_StartOverlayAppsFromDashboard_Bool = "startOverlayAppsFromDashboard"; + static const char * const k_pch_SteamVR_EnableHomeApp = "enableHomeApp"; + static const char * const k_pch_SteamVR_CycleBackgroundImageTimeSec_Int32 = "CycleBackgroundImageTimeSec"; + static const char * const k_pch_SteamVR_RetailDemo_Bool = "retailDemo"; + static const char * const k_pch_SteamVR_IpdOffset_Float = "ipdOffset"; + static const char * const k_pch_SteamVR_AllowSupersampleFiltering_Bool = "allowSupersampleFiltering"; + + //----------------------------------------------------------------------------- + // lighthouse keys + static const char * const k_pch_Lighthouse_Section = "driver_lighthouse"; + static const char * const k_pch_Lighthouse_DisableIMU_Bool = "disableimu"; + static const char * const k_pch_Lighthouse_UseDisambiguation_String = "usedisambiguation"; + static const char * const k_pch_Lighthouse_DisambiguationDebug_Int32 = "disambiguationdebug"; + static const char * const k_pch_Lighthouse_PrimaryBasestation_Int32 = "primarybasestation"; + static const char * const k_pch_Lighthouse_DBHistory_Bool = "dbhistory"; + + //----------------------------------------------------------------------------- + // null keys + static const char * const k_pch_Null_Section = "driver_null"; + static const char * const k_pch_Null_SerialNumber_String = "serialNumber"; + static const char * const k_pch_Null_ModelNumber_String = "modelNumber"; + static const char * const k_pch_Null_WindowX_Int32 = "windowX"; + static const char * const k_pch_Null_WindowY_Int32 = "windowY"; + static const char * const k_pch_Null_WindowWidth_Int32 = "windowWidth"; + static const char * const k_pch_Null_WindowHeight_Int32 = "windowHeight"; + static const char * const k_pch_Null_RenderWidth_Int32 = "renderWidth"; + static const char * const k_pch_Null_RenderHeight_Int32 = "renderHeight"; + static const char * const k_pch_Null_SecondsFromVsyncToPhotons_Float = "secondsFromVsyncToPhotons"; + static const char * const k_pch_Null_DisplayFrequency_Float = "displayFrequency"; + + //----------------------------------------------------------------------------- + // user interface keys + static const char * const k_pch_UserInterface_Section = "userinterface"; + static const char * const k_pch_UserInterface_StatusAlwaysOnTop_Bool = "StatusAlwaysOnTop"; + static const char * const k_pch_UserInterface_MinimizeToTray_Bool = "MinimizeToTray"; + static const char * const k_pch_UserInterface_Screenshots_Bool = "screenshots"; + static const char * const k_pch_UserInterface_ScreenshotType_Int = "screenshotType"; + + //----------------------------------------------------------------------------- + // notification keys + static const char * const k_pch_Notifications_Section = "notifications"; + static const char * const k_pch_Notifications_DoNotDisturb_Bool = "DoNotDisturb"; + + //----------------------------------------------------------------------------- + // keyboard keys + static const char * const k_pch_Keyboard_Section = "keyboard"; + static const char * const k_pch_Keyboard_TutorialCompletions = "TutorialCompletions"; + static const char * const k_pch_Keyboard_ScaleX = "ScaleX"; + static const char * const k_pch_Keyboard_ScaleY = "ScaleY"; + static const char * const k_pch_Keyboard_OffsetLeftX = "OffsetLeftX"; + static const char * const k_pch_Keyboard_OffsetRightX = "OffsetRightX"; + static const char * const k_pch_Keyboard_OffsetY = "OffsetY"; + static const char * const k_pch_Keyboard_Smoothing = "Smoothing"; + + //----------------------------------------------------------------------------- + // perf keys + static const char * const k_pch_Perf_Section = "perfcheck"; + static const char * const k_pch_Perf_HeuristicActive_Bool = "heuristicActive"; + static const char * const k_pch_Perf_NotifyInHMD_Bool = "warnInHMD"; + static const char * const k_pch_Perf_NotifyOnlyOnce_Bool = "warnOnlyOnce"; + static const char * const k_pch_Perf_AllowTimingStore_Bool = "allowTimingStore"; + static const char * const k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit"; + static const char * const k_pch_Perf_TestData_Float = "perfTestData"; + static const char * const k_pch_Perf_LinuxGPUProfiling_Bool = "linuxGPUProfiling"; + + //----------------------------------------------------------------------------- + // collision bounds keys + static const char * const k_pch_CollisionBounds_Section = "collisionBounds"; + static const char * const k_pch_CollisionBounds_Style_Int32 = "CollisionBoundsStyle"; + static const char * const k_pch_CollisionBounds_GroundPerimeterOn_Bool = "CollisionBoundsGroundPerimeterOn"; + static const char * const k_pch_CollisionBounds_CenterMarkerOn_Bool = "CollisionBoundsCenterMarkerOn"; + static const char * const k_pch_CollisionBounds_PlaySpaceOn_Bool = "CollisionBoundsPlaySpaceOn"; + static const char * const k_pch_CollisionBounds_FadeDistance_Float = "CollisionBoundsFadeDistance"; + static const char * const k_pch_CollisionBounds_ColorGammaR_Int32 = "CollisionBoundsColorGammaR"; + static const char * const k_pch_CollisionBounds_ColorGammaG_Int32 = "CollisionBoundsColorGammaG"; + static const char * const k_pch_CollisionBounds_ColorGammaB_Int32 = "CollisionBoundsColorGammaB"; + static const char * const k_pch_CollisionBounds_ColorGammaA_Int32 = "CollisionBoundsColorGammaA"; + + //----------------------------------------------------------------------------- + // camera keys + static const char * const k_pch_Camera_Section = "camera"; + static const char * const k_pch_Camera_EnableCamera_Bool = "enableCamera"; + static const char * const k_pch_Camera_EnableCameraInDashboard_Bool = "enableCameraInDashboard"; + static const char * const k_pch_Camera_EnableCameraForCollisionBounds_Bool = "enableCameraForCollisionBounds"; + static const char * const k_pch_Camera_EnableCameraForRoomView_Bool = "enableCameraForRoomView"; + static const char * const k_pch_Camera_BoundsColorGammaR_Int32 = "cameraBoundsColorGammaR"; + static const char * const k_pch_Camera_BoundsColorGammaG_Int32 = "cameraBoundsColorGammaG"; + static const char * const k_pch_Camera_BoundsColorGammaB_Int32 = "cameraBoundsColorGammaB"; + static const char * const k_pch_Camera_BoundsColorGammaA_Int32 = "cameraBoundsColorGammaA"; + static const char * const k_pch_Camera_BoundsStrength_Int32 = "cameraBoundsStrength"; + + //----------------------------------------------------------------------------- + // audio keys + static const char * const k_pch_audio_Section = "audio"; + static const char * const k_pch_audio_OnPlaybackDevice_String = "onPlaybackDevice"; + static const char * const k_pch_audio_OnRecordDevice_String = "onRecordDevice"; + static const char * const k_pch_audio_OnPlaybackMirrorDevice_String = "onPlaybackMirrorDevice"; + static const char * const k_pch_audio_OffPlaybackDevice_String = "offPlaybackDevice"; + static const char * const k_pch_audio_OffRecordDevice_String = "offRecordDevice"; + static const char * const k_pch_audio_VIVEHDMIGain = "viveHDMIGain"; + + //----------------------------------------------------------------------------- + // power management keys + static const char * const k_pch_Power_Section = "power"; + static const char * const k_pch_Power_PowerOffOnExit_Bool = "powerOffOnExit"; + static const char * const k_pch_Power_TurnOffScreensTimeout_Float = "turnOffScreensTimeout"; + static const char * const k_pch_Power_TurnOffControllersTimeout_Float = "turnOffControllersTimeout"; + static const char * const k_pch_Power_ReturnToWatchdogTimeout_Float = "returnToWatchdogTimeout"; + static const char * const k_pch_Power_AutoLaunchSteamVROnButtonPress = "autoLaunchSteamVROnButtonPress"; + + //----------------------------------------------------------------------------- + // dashboard keys + static const char * const k_pch_Dashboard_Section = "dashboard"; + static const char * const k_pch_Dashboard_EnableDashboard_Bool = "enableDashboard"; + static const char * const k_pch_Dashboard_ArcadeMode_Bool = "arcadeMode"; + + //----------------------------------------------------------------------------- + // model skin keys + static const char * const k_pch_modelskin_Section = "modelskins"; + + //----------------------------------------------------------------------------- + // driver keys - These could be checked in any driver_ section + static const char * const k_pch_Driver_Enable_Bool = "enable"; + +} // namespace vr + +// iservertrackeddevicedriver.h +namespace vr +{ + + +struct DriverPoseQuaternion_t +{ + double w, x, y, z; +}; + +struct DriverPose_t +{ + /* Time offset of this pose, in seconds from the actual time of the pose, + * relative to the time of the PoseUpdated() call made by the driver. + */ + double poseTimeOffset; + + /* Generally, the pose maintained by a driver + * is in an inertial coordinate system different + * from the world system of x+ right, y+ up, z+ back. + * Also, the driver is not usually tracking the "head" position, + * but instead an internal IMU or another reference point in the HMD. + * The following two transforms transform positions and orientations + * to app world space from driver world space, + * and to HMD head space from driver local body space. + * + * We maintain the driver pose state in its internal coordinate system, + * so we can do the pose prediction math without having to + * use angular acceleration. A driver's angular acceleration is generally not measured, + * and is instead calculated from successive samples of angular velocity. + * This leads to a noisy angular acceleration values, which are also + * lagged due to the filtering required to reduce noise to an acceptable level. + */ + vr::HmdQuaternion_t qWorldFromDriverRotation; + double vecWorldFromDriverTranslation[ 3 ]; + + vr::HmdQuaternion_t qDriverFromHeadRotation; + double vecDriverFromHeadTranslation[ 3 ]; + + /* State of driver pose, in meters and radians. */ + /* Position of the driver tracking reference in driver world space + * +[0] (x) is right + * +[1] (y) is up + * -[2] (z) is forward + */ + double vecPosition[ 3 ]; + + /* Velocity of the pose in meters/second */ + double vecVelocity[ 3 ]; + + /* Acceleration of the pose in meters/second */ + double vecAcceleration[ 3 ]; + + /* Orientation of the tracker, represented as a quaternion */ + vr::HmdQuaternion_t qRotation; + + /* Angular velocity of the pose in axis-angle + * representation. The direction is the angle of + * rotation and the magnitude is the angle around + * that axis in radians/second. */ + double vecAngularVelocity[ 3 ]; + + /* Angular acceleration of the pose in axis-angle + * representation. The direction is the angle of + * rotation and the magnitude is the angle around + * that axis in radians/second^2. */ + double vecAngularAcceleration[ 3 ]; + + ETrackingResult result; + + bool poseIsValid; + bool willDriftInYaw; + bool shouldApplyHeadModel; + bool deviceIsConnected; +}; + + +// ---------------------------------------------------------------------------------------------- +// Purpose: Represents a single tracked device in a driver +// ---------------------------------------------------------------------------------------------- +class ITrackedDeviceServerDriver +{ +public: + + // ------------------------------------ + // Management Methods + // ------------------------------------ + /** This is called before an HMD is returned to the application. It will always be + * called before any display or tracking methods. Memory and processor use by the + * ITrackedDeviceServerDriver object should be kept to a minimum until it is activated. + * The pose listener is guaranteed to be valid until Deactivate is called, but + * should not be used after that point. */ + virtual EVRInitError Activate( uint32_t unObjectId ) = 0; + + /** This is called when The VR system is switching from this Hmd being the active display + * to another Hmd being the active display. The driver should clean whatever memory + * and thread use it can when it is deactivated */ + virtual void Deactivate() = 0; + + /** Handles a request from the system to put this device into standby mode. What that means is defined per-device. */ + virtual void EnterStandby() = 0; + + /** Requests a component interface of the driver for device-specific functionality. The driver should return NULL + * if the requested interface or version is not supported. */ + virtual void *GetComponent( const char *pchComponentNameAndVersion ) = 0; + + /** A VR Client has made this debug request of the driver. The set of valid requests is entirely + * up to the driver and the client to figure out, as is the format of the response. Responses that + * exceed the length of the supplied buffer should be truncated and null terminated */ + virtual void DebugRequest( const char *pchRequest, char *pchResponseBuffer, uint32_t unResponseBufferSize ) = 0; + + // ------------------------------------ + // Tracking Methods + // ------------------------------------ + virtual DriverPose_t GetPose() = 0; +}; + + + +static const char *ITrackedDeviceServerDriver_Version = "ITrackedDeviceServerDriver_005"; + +} +// ivrdisplaycomponent.h +namespace vr +{ + + + // ---------------------------------------------------------------------------------------------- + // Purpose: The display component on a single tracked device + // ---------------------------------------------------------------------------------------------- + class IVRDisplayComponent + { + public: + + // ------------------------------------ + // Display Methods + // ------------------------------------ + + /** Size and position that the window needs to be on the VR display. */ + virtual void GetWindowBounds( int32_t *pnX, int32_t *pnY, uint32_t *pnWidth, uint32_t *pnHeight ) = 0; + + /** Returns true if the display is extending the desktop. */ + virtual bool IsDisplayOnDesktop( ) = 0; + + /** Returns true if the display is real and not a fictional display. */ + virtual bool IsDisplayRealDisplay( ) = 0; + + /** Suggested size for the intermediate render target that the distortion pulls from. */ + virtual void GetRecommendedRenderTargetSize( uint32_t *pnWidth, uint32_t *pnHeight ) = 0; + + /** Gets the viewport in the frame buffer to draw the output of the distortion into */ + virtual void GetEyeOutputViewport( EVREye eEye, uint32_t *pnX, uint32_t *pnY, uint32_t *pnWidth, uint32_t *pnHeight ) = 0; + + /** The components necessary to build your own projection matrix in case your + * application is doing something fancy like infinite Z */ + virtual void GetProjectionRaw( EVREye eEye, float *pfLeft, float *pfRight, float *pfTop, float *pfBottom ) = 0; + + /** Returns the result of the distortion function for the specified eye and input UVs. UVs go from 0,0 in + * the upper left of that eye's viewport and 1,1 in the lower right of that eye's viewport. */ + virtual DistortionCoordinates_t ComputeDistortion( EVREye eEye, float fU, float fV ) = 0; + + }; + + static const char *IVRDisplayComponent_Version = "IVRDisplayComponent_002"; + +} + +// ivrdriverdirectmodecomponent.h +namespace vr +{ + + + // ---------------------------------------------------------------------------------------------- + // Purpose: This component is used for drivers that implement direct mode entirely on their own + // without allowing the VR Compositor to own the window/device. Chances are you don't + // need to implement this component in your driver. + // ---------------------------------------------------------------------------------------------- + class IVRDriverDirectModeComponent + { + public: + + // ----------------------------------- + // Direct mode methods + // ----------------------------------- + + /** Specific to Oculus compositor support, textures supplied must be created using this method. */ + virtual void CreateSwapTextureSet( uint32_t unPid, uint32_t unFormat, uint32_t unWidth, uint32_t unHeight, vr::SharedTextureHandle_t( *pSharedTextureHandles )[ 3 ] ) {} + + /** Used to textures created using CreateSwapTextureSet. Only one of the set's handles needs to be used to destroy the entire set. */ + virtual void DestroySwapTextureSet( vr::SharedTextureHandle_t sharedTextureHandle ) {} + + /** Used to purge all texture sets for a given process. */ + virtual void DestroyAllSwapTextureSets( uint32_t unPid ) {} + + /** After Present returns, calls this to get the next index to use for rendering. */ + virtual void GetNextSwapTextureSetIndex( vr::SharedTextureHandle_t sharedTextureHandles[ 2 ], uint32_t( *pIndices )[ 2 ] ) {} + + /** Call once per layer to draw for this frame. One shared texture handle per eye. Textures must be created + * using CreateSwapTextureSet and should be alternated per frame. Call Present once all layers have been submitted. */ + virtual void SubmitLayer( vr::SharedTextureHandle_t sharedTextureHandles[ 2 ], const vr::VRTextureBounds_t( &bounds )[ 2 ], const vr::HmdMatrix34_t *pPose ) {} + + /** Submits queued layers for display. */ + virtual void Present( vr::SharedTextureHandle_t syncTexture ) {} + + }; + + static const char *IVRDriverDirectModeComponent_Version = "IVRDriverDirectModeComponent_002"; + +} + +// ivrcontrollercomponent.h +namespace vr +{ + + + // ---------------------------------------------------------------------------------------------- + // Purpose: Controller access on a single tracked device. + // ---------------------------------------------------------------------------------------------- + class IVRControllerComponent + { + public: + + // ------------------------------------ + // Controller Methods + // ------------------------------------ + + /** Gets the current state of a controller. */ + virtual VRControllerState_t GetControllerState( ) = 0; + + /** Returns a uint64 property. If the property is not available this function will return 0. */ + virtual bool TriggerHapticPulse( uint32_t unAxisId, uint16_t usPulseDurationMicroseconds ) = 0; + + }; + + + + static const char *IVRControllerComponent_Version = "IVRControllerComponent_001"; + +} +// ivrcameracomponent.h +namespace vr +{ + //----------------------------------------------------------------------------- + //----------------------------------------------------------------------------- + class ICameraVideoSinkCallback + { + public: + virtual void OnCameraVideoSinkCallback() = 0; + }; + + // ---------------------------------------------------------------------------------------------- + // Purpose: The camera on a single tracked device + // ---------------------------------------------------------------------------------------------- + class IVRCameraComponent + { + public: + // ------------------------------------ + // Camera Methods + // ------------------------------------ + virtual bool GetCameraFrameDimensions( vr::ECameraVideoStreamFormat nVideoStreamFormat, uint32_t *pWidth, uint32_t *pHeight ) = 0; + virtual bool GetCameraFrameBufferingRequirements( int *pDefaultFrameQueueSize, uint32_t *pFrameBufferDataSize ) = 0; + virtual bool SetCameraFrameBuffering( int nFrameBufferCount, void **ppFrameBuffers, uint32_t nFrameBufferDataSize ) = 0; + virtual bool SetCameraVideoStreamFormat( vr::ECameraVideoStreamFormat nVideoStreamFormat ) = 0; + virtual vr::ECameraVideoStreamFormat GetCameraVideoStreamFormat() = 0; + virtual bool StartVideoStream() = 0; + virtual void StopVideoStream() = 0; + virtual bool IsVideoStreamActive( bool *pbPaused, float *pflElapsedTime ) = 0; + virtual const vr::CameraVideoStreamFrame_t *GetVideoStreamFrame() = 0; + virtual void ReleaseVideoStreamFrame( const vr::CameraVideoStreamFrame_t *pFrameImage ) = 0; + virtual bool SetAutoExposure( bool bEnable ) = 0; + virtual bool PauseVideoStream() = 0; + virtual bool ResumeVideoStream() = 0; + virtual bool GetCameraDistortion( float flInputU, float flInputV, float *pflOutputU, float *pflOutputV ) = 0; + virtual bool GetCameraProjection( vr::EVRTrackedCameraFrameType eFrameType, float flZNear, float flZFar, vr::HmdMatrix44_t *pProjection ) = 0; + virtual bool SetFrameRate( int nISPFrameRate, int nSensorFrameRate ) = 0; + virtual bool SetCameraVideoSinkCallback( vr::ICameraVideoSinkCallback *pCameraVideoSinkCallback ) = 0; + virtual bool GetCameraCompatibilityMode( vr::ECameraCompatibilityMode *pCameraCompatibilityMode ) = 0; + virtual bool SetCameraCompatibilityMode( vr::ECameraCompatibilityMode nCameraCompatibilityMode ) = 0; + virtual bool GetCameraFrameBounds( vr::EVRTrackedCameraFrameType eFrameType, uint32_t *pLeft, uint32_t *pTop, uint32_t *pWidth, uint32_t *pHeight ) = 0; + virtual bool GetCameraIntrinsics( vr::EVRTrackedCameraFrameType eFrameType, HmdVector2_t *pFocalLength, HmdVector2_t *pCenter ) = 0; + }; + + static const char *IVRCameraComponent_Version = "IVRCameraComponent_002"; +} +// itrackeddevicedriverprovider.h +namespace vr +{ + +class ITrackedDeviceServerDriver; +struct TrackedDeviceDriverInfo_t; +struct DriverPose_t; +typedef PropertyContainerHandle_t DriverHandle_t; + +/** This interface is provided by vrserver to allow the driver to notify +* the system when something changes about a device. These changes must +* not change the serial number or class of the device because those values +* are permanently associated with the device's index. */ +class IVRDriverContext +{ +public: + /** Returns the requested interface. If the interface was not available it will return NULL and fill + * out the error. */ + virtual void *GetGenericInterface( const char *pchInterfaceVersion, EVRInitError *peError = nullptr ) = 0; + + /** Returns the property container handle for this driver */ + virtual DriverHandle_t GetDriverHandle() = 0; +}; + + +/** This interface must be implemented in each driver. It will be loaded in vrserver.exe */ +class IServerTrackedDeviceProvider +{ +public: + /** initializes the driver. This will be called before any other methods are called. + * If Init returns anything other than VRInitError_None the driver DLL will be unloaded. + * + * pDriverHost will never be NULL, and will always be a pointer to a IServerDriverHost interface + * + * pchUserDriverConfigDir - The absolute path of the directory where the driver should store user + * config files. + * pchDriverInstallDir - The absolute path of the root directory for the driver. + */ + virtual EVRInitError Init( IVRDriverContext *pDriverContext ) = 0; + + /** cleans up the driver right before it is unloaded */ + virtual void Cleanup() = 0; + + /** Returns the version of the ITrackedDeviceServerDriver interface used by this driver */ + virtual const char * const *GetInterfaceVersions() = 0; + + /** Allows the driver do to some work in the main loop of the server. */ + virtual void RunFrame() = 0; + + + // ------------ Power State Functions ----------------------- // + + /** Returns true if the driver wants to block Standby mode. */ + virtual bool ShouldBlockStandbyMode() = 0; + + /** Called when the system is entering Standby mode. The driver should switch itself into whatever sort of low-power + * state it has. */ + virtual void EnterStandby() = 0; + + /** Called when the system is leaving Standby mode. The driver should switch itself back to + full operation. */ + virtual void LeaveStandby() = 0; + +}; + + +static const char *IServerTrackedDeviceProvider_Version = "IServerTrackedDeviceProvider_004"; + + + + +/** This interface must be implemented in each driver. It will be loaded in vrclient.dll */ +class IVRWatchdogProvider +{ +public: + /** initializes the driver in watchdog mode. */ + virtual EVRInitError Init( IVRDriverContext *pDriverContext ) = 0; + + /** cleans up the driver right before it is unloaded */ + virtual void Cleanup() = 0; +}; + +static const char *IVRWatchdogProvider_Version = "IVRWatchdogProvider_001"; + +} +// ivrproperties.h +#include + +namespace vr +{ + + enum EPropertyWriteType + { + PropertyWrite_Set = 0, + PropertyWrite_Erase = 1, + PropertyWrite_SetError = 2 + }; + + struct PropertyWrite_t + { + ETrackedDeviceProperty prop; + EPropertyWriteType writeType; + ETrackedPropertyError eSetError; + void *pvBuffer; + uint32_t unBufferSize; + PropertyTypeTag_t unTag; + ETrackedPropertyError eError; + }; + + struct PropertyRead_t + { + ETrackedDeviceProperty prop; + void *pvBuffer; + uint32_t unBufferSize; + PropertyTypeTag_t unTag; + uint32_t unRequiredBufferSize; + ETrackedPropertyError eError; + }; + + +class IVRProperties +{ +public: + + /** Reads a set of properties atomically. See the PropertyReadBatch_t struct for more information. */ + virtual ETrackedPropertyError ReadPropertyBatch( PropertyContainerHandle_t ulContainerHandle, PropertyRead_t *pBatch, uint32_t unBatchEntryCount ) = 0; + + /** Writes a set of properties atomically. See the PropertyWriteBatch_t struct for more information. */ + virtual ETrackedPropertyError WritePropertyBatch( PropertyContainerHandle_t ulContainerHandle, PropertyWrite_t *pBatch, uint32_t unBatchEntryCount ) = 0; + + /** returns a string that corresponds with the specified property error. The string will be the name + * of the error enum value for all valid error codes */ + virtual const char *GetPropErrorNameFromEnum( ETrackedPropertyError error ) = 0; + + /** Returns a container handle given a tracked device index */ + virtual PropertyContainerHandle_t TrackedDeviceToPropertyContainer( TrackedDeviceIndex_t nDevice ) = 0; + +}; + +static const char * const IVRProperties_Version = "IVRProperties_001"; + +class CVRPropertyHelpers +{ +public: + CVRPropertyHelpers( IVRProperties * pProperties ) : m_pProperties( pProperties ) {} + + /** Returns a scaler property. If the device index is not valid or the property value type does not match, + * this function will return false. */ + bool GetBoolProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ); + float GetFloatProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ); + int32_t GetInt32Property( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ); + uint64_t GetUint64Property( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ); + + /** Returns a single typed property. If the device index is not valid or the property is not a string type this function will + * return 0. Otherwise it returns the length of the number of bytes necessary to hold this string including the trailing + * null. Strings will always fit in buffers of k_unMaxPropertyStringSize characters. */ + uint32_t GetProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, VR_OUT_STRING() void *pvBuffer, uint32_t unBufferSize, PropertyTypeTag_t *punTag, ETrackedPropertyError *pError = 0L ); + + + /** Returns a string property. If the device index is not valid or the property is not a string type this function will + * return 0. Otherwise it returns the length of the number of bytes necessary to hold this string including the trailing + * null. Strings will always fit in buffers of k_unMaxPropertyStringSize characters. */ + uint32_t GetStringProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, ETrackedPropertyError *pError = 0L ); + + /** Returns a string property as a std::string. If the device index is not valid or the property is not a string type this function will + * return an empty string. */ + std::string GetStringProperty( vr::PropertyContainerHandle_t ulContainer, vr::ETrackedDeviceProperty prop, vr::ETrackedPropertyError *peError = nullptr ); + + /** Sets a scaler property. The new value will be returned on any subsequent call to get this property in any process. */ + ETrackedPropertyError SetBoolProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, bool bNewValue ); + ETrackedPropertyError SetFloatProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, float fNewValue ); + ETrackedPropertyError SetInt32Property( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, int32_t nNewValue ); + ETrackedPropertyError SetUint64Property( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, uint64_t ulNewValue ); + + /** Sets a string property. The new value will be returned on any subsequent call to get this property in any process. */ + ETrackedPropertyError SetStringProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, const char *pchNewValue ); + + /** Sets a single typed property. The new value will be returned on any subsequent call to get this property in any process. */ + ETrackedPropertyError SetProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, void *pvNewValue, uint32_t unNewValueSize, PropertyTypeTag_t unTag ); + + /** Sets the error return value for a property. This value will be returned on all subsequent requests to get the property */ + ETrackedPropertyError SetPropertyError( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError eError ); + + /** Clears any value or error set for the property. */ + ETrackedPropertyError EraseProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop ); + + /* Turns a device index into a property container handle. */ + PropertyContainerHandle_t TrackedDeviceToPropertyContainer( TrackedDeviceIndex_t nDevice ) { return m_pProperties->TrackedDeviceToPropertyContainer( nDevice ); } + +private: + template + T GetPropertyHelper( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError, T bDefault, PropertyTypeTag_t unTypeTag ); + + IVRProperties *m_pProperties; +}; + + +inline uint32_t CVRPropertyHelpers::GetProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, VR_OUT_STRING() void *pvBuffer, uint32_t unBufferSize, PropertyTypeTag_t *punTag, ETrackedPropertyError *pError ) +{ + PropertyRead_t batch; + batch.prop = prop; + batch.pvBuffer = pvBuffer; + batch.unBufferSize = unBufferSize; + + m_pProperties->ReadPropertyBatch( ulContainerHandle, &batch, 1 ); + + if ( pError ) + { + *pError = batch.eError; + } + + if ( punTag ) + { + *punTag = batch.unTag; + } + + return batch.unRequiredBufferSize; +} + + +/** Sets a single typed property. The new value will be returned on any subsequent call to get this property in any process. */ +inline ETrackedPropertyError CVRPropertyHelpers::SetProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, void *pvNewValue, uint32_t unNewValueSize, PropertyTypeTag_t unTag ) +{ + PropertyWrite_t batch; + batch.writeType = PropertyWrite_Set; + batch.prop = prop; + batch.pvBuffer = pvNewValue; + batch.unBufferSize = unNewValueSize; + batch.unTag = unTag; + + m_pProperties->WritePropertyBatch( ulContainerHandle, &batch, 1 ); + + return batch.eError; +} + + +/** Returns a string property. If the device index is not valid or the property is not a string type this function will +* return 0. Otherwise it returns the length of the number of bytes necessary to hold this string including the trailing +* null. Strings will always fit in buffers of k_unMaxPropertyStringSize characters. */ +inline uint32_t CVRPropertyHelpers::GetStringProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, ETrackedPropertyError *pError ) +{ + PropertyTypeTag_t unTag; + ETrackedPropertyError error; + uint32_t unRequiredSize = GetProperty( ulContainerHandle, prop, pchValue, unBufferSize, &unTag, &error ); + if ( unTag != k_unStringPropertyTag && error == TrackedProp_Success ) + { + error = TrackedProp_WrongDataType; + } + + if ( pError ) + { + *pError = error; + } + + if ( error != TrackedProp_Success ) + { + if ( pchValue && unBufferSize ) + { + *pchValue = '\0'; + } + } + + return unRequiredSize; +} + + +/** Returns a string property as a std::string. If the device index is not valid or the property is not a string type this function will +* return an empty string. */ +inline std::string CVRPropertyHelpers::GetStringProperty( vr::PropertyContainerHandle_t ulContainer, vr::ETrackedDeviceProperty prop, vr::ETrackedPropertyError *peError ) +{ + char buf[1024]; + vr::ETrackedPropertyError err; + uint32_t unRequiredBufferLen = GetStringProperty( ulContainer, prop, buf, sizeof(buf), &err ); + + std::string sResult; + + if ( err == TrackedProp_Success ) + { + sResult = buf; + } + else if ( err == TrackedProp_BufferTooSmall ) + { + char *pchBuffer = new char[unRequiredBufferLen]; + unRequiredBufferLen = GetStringProperty( ulContainer, prop, pchBuffer, unRequiredBufferLen, &err ); + sResult = pchBuffer; + delete[] pchBuffer; + } + + if ( peError ) + { + *peError = err; + } + + return sResult; +} + + +/** Sets a string property. The new value will be returned on any subsequent call to get this property in any process. */ +inline ETrackedPropertyError CVRPropertyHelpers::SetStringProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, const char *pchNewValue ) +{ + if ( !pchNewValue ) + return TrackedProp_InvalidOperation; + + // this is strlen without the dependency on string.h + const char *pchCurr = pchNewValue; + while ( *pchCurr ) + { + pchCurr++; + } + + return SetProperty( ulContainerHandle, prop, (void *)pchNewValue, (uint32_t)(pchCurr - pchNewValue) + 1, k_unStringPropertyTag ); +} + + +template +inline T CVRPropertyHelpers::GetPropertyHelper( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError, T bDefault, PropertyTypeTag_t unTypeTag ) +{ + T bValue; + ETrackedPropertyError eError; + PropertyTypeTag_t unReadTag; + GetProperty( ulContainerHandle, prop, &bValue, sizeof( bValue ), &unReadTag, &eError ); + if ( unReadTag != unTypeTag && eError == TrackedProp_Success ) + { + eError = TrackedProp_WrongDataType; + }; + + if ( pError ) + *pError = eError; + if ( eError != TrackedProp_Success ) + { + return bDefault; + } + else + { + return bValue; + } +} + + +inline bool CVRPropertyHelpers::GetBoolProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError ) +{ + return GetPropertyHelper( ulContainerHandle, prop, pError, false, k_unBoolPropertyTag ); +} + + +inline float CVRPropertyHelpers::GetFloatProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError ) +{ + return GetPropertyHelper( ulContainerHandle, prop, pError, 0.f, k_unFloatPropertyTag ); +} + +inline int32_t CVRPropertyHelpers::GetInt32Property( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError ) +{ + return GetPropertyHelper( ulContainerHandle, prop, pError, 0, k_unInt32PropertyTag ); +} + +inline uint64_t CVRPropertyHelpers::GetUint64Property( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError *pError ) +{ + return GetPropertyHelper( ulContainerHandle, prop, pError, 0, k_unUint64PropertyTag ); +} + +inline ETrackedPropertyError CVRPropertyHelpers::SetBoolProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, bool bNewValue ) +{ + return SetProperty( ulContainerHandle, prop, &bNewValue, sizeof( bNewValue ), k_unBoolPropertyTag ); +} + +inline ETrackedPropertyError CVRPropertyHelpers::SetFloatProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, float fNewValue ) +{ + return SetProperty( ulContainerHandle, prop, &fNewValue, sizeof( fNewValue ), k_unFloatPropertyTag ); +} + +inline ETrackedPropertyError CVRPropertyHelpers::SetInt32Property( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, int32_t nNewValue ) +{ + return SetProperty( ulContainerHandle, prop, &nNewValue, sizeof( nNewValue ), k_unInt32PropertyTag ); +} + +inline ETrackedPropertyError CVRPropertyHelpers::SetUint64Property( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, uint64_t ulNewValue ) +{ + return SetProperty( ulContainerHandle, prop, &ulNewValue, sizeof( ulNewValue ), k_unUint64PropertyTag ); +} + +/** Sets the error return value for a property. This value will be returned on all subsequent requests to get the property */ +inline ETrackedPropertyError CVRPropertyHelpers::SetPropertyError( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop, ETrackedPropertyError eError ) +{ + PropertyWrite_t batch; + batch.writeType = PropertyWrite_SetError; + batch.prop = prop; + batch.eSetError = eError; + + m_pProperties->WritePropertyBatch( ulContainerHandle, &batch, 1 ); + + return batch.eError; +} + +/** Clears any value or error set for the property. */ +inline ETrackedPropertyError CVRPropertyHelpers::EraseProperty( PropertyContainerHandle_t ulContainerHandle, ETrackedDeviceProperty prop ) +{ + PropertyWrite_t batch; + batch.writeType = PropertyWrite_Erase; + batch.prop = prop; + + m_pProperties->WritePropertyBatch( ulContainerHandle, &batch, 1 ); + + return batch.eError; + +} + +} + + +// ivrdriverlog.h +namespace vr +{ + +class IVRDriverLog +{ +public: + /** Writes a log message to the log file prefixed with the driver name */ + virtual void Log( const char *pchLogMessage ) = 0; +}; + + +static const char *IVRDriverLog_Version = "IVRDriverLog_001"; + +} +// ivrserverdriverhost.h +namespace vr +{ + +class ITrackedDeviceServerDriver; +struct TrackedDeviceDriverInfo_t; +struct DriverPose_t; + +/** This interface is provided by vrserver to allow the driver to notify +* the system when something changes about a device. These changes must +* not change the serial number or class of the device because those values +* are permanently associated with the device's index. */ +class IVRServerDriverHost +{ +public: + /** Notifies the server that a tracked device has been added. If this function returns true + * the server will call Activate on the device. If it returns false some kind of error + * has occurred and the device will not be activated. */ + virtual bool TrackedDeviceAdded( const char *pchDeviceSerialNumber, ETrackedDeviceClass eDeviceClass, ITrackedDeviceServerDriver *pDriver ) = 0; + + /** Notifies the server that a tracked device's pose has been updated */ + virtual void TrackedDevicePoseUpdated( uint32_t unWhichDevice, const DriverPose_t & newPose, uint32_t unPoseStructSize ) = 0; + + /** Notifies the server that vsync has occurred on the the display attached to the device. This is + * only permitted on devices of the HMD class. */ + virtual void VsyncEvent( double vsyncTimeOffsetSeconds ) = 0; + + /** notifies the server that the button was pressed */ + virtual void TrackedDeviceButtonPressed( uint32_t unWhichDevice, EVRButtonId eButtonId, double eventTimeOffset ) = 0; + + /** notifies the server that the button was unpressed */ + virtual void TrackedDeviceButtonUnpressed( uint32_t unWhichDevice, EVRButtonId eButtonId, double eventTimeOffset ) = 0; + + /** notifies the server that the button was pressed */ + virtual void TrackedDeviceButtonTouched( uint32_t unWhichDevice, EVRButtonId eButtonId, double eventTimeOffset ) = 0; + + /** notifies the server that the button was unpressed */ + virtual void TrackedDeviceButtonUntouched( uint32_t unWhichDevice, EVRButtonId eButtonId, double eventTimeOffset ) = 0; + + /** notifies the server than a controller axis changed */ + virtual void TrackedDeviceAxisUpdated( uint32_t unWhichDevice, uint32_t unWhichAxis, const VRControllerAxis_t & axisState ) = 0; + + /** Notifies the server that the proximity sensor on the specified device */ + virtual void ProximitySensorState( uint32_t unWhichDevice, bool bProximitySensorTriggered ) = 0; + + /** Sends a vendor specific event (VREvent_VendorSpecific_Reserved_Start..VREvent_VendorSpecific_Reserved_End */ + virtual void VendorSpecificEvent( uint32_t unWhichDevice, vr::EVREventType eventType, const VREvent_Data_t & eventData, double eventTimeOffset ) = 0; + + /** Returns true if SteamVR is exiting */ + virtual bool IsExiting() = 0; + + /** Returns true and fills the event with the next event on the queue if there is one. If there are no events + * this method returns false. uncbVREvent should be the size in bytes of the VREvent_t struct */ + virtual bool PollNextEvent( VREvent_t *pEvent, uint32_t uncbVREvent ) = 0; + + /** Provides access to device poses for drivers. Poses are in their "raw" tracking space which is uniquely + * defined by each driver providing poses for its devices. It is up to clients of this function to correlate + * poses across different drivers. Poses are indexed by their device id, and their associated driver and + * other properties can be looked up via IVRProperties. */ + virtual void GetRawTrackedDevicePoses( float fPredictedSecondsFromNow, TrackedDevicePose_t *pTrackedDevicePoseArray, uint32_t unTrackedDevicePoseArrayCount ) = 0; + + /** Notifies the server that a tracked device's display component transforms have been updated. */ + virtual void TrackedDeviceDisplayTransformUpdated( uint32_t unWhichDevice, HmdMatrix34_t eyeToHeadLeft, HmdMatrix34_t eyeToHeadRight ) = 0; +}; + +static const char *IVRServerDriverHost_Version = "IVRServerDriverHost_004"; + +} + +// ivrhiddenarea.h +namespace vr +{ + +class CVRHiddenAreaHelpers +{ +public: + CVRHiddenAreaHelpers( IVRProperties *pProperties ) : m_pProperties( pProperties ) {} + + /** Stores a hidden area mesh in a property */ + ETrackedPropertyError SetHiddenArea( EVREye eEye, EHiddenAreaMeshType type, HmdVector2_t *pVerts, uint32_t unVertCount ); + + /** retrieves a hidden area mesh from a property. Returns the vert count read out of the property. */ + uint32_t GetHiddenArea( EVREye eEye, EHiddenAreaMeshType type, HmdVector2_t *pVerts, uint32_t unVertCount, ETrackedPropertyError *peError ); + +private: + ETrackedDeviceProperty GetPropertyEnum( EVREye eEye, EHiddenAreaMeshType type ) + { + return (ETrackedDeviceProperty)(Prop_DisplayHiddenArea_Binary_Start + ((int)type * 2) + (int)eEye); + } + + IVRProperties *m_pProperties; +}; + + +inline ETrackedPropertyError CVRHiddenAreaHelpers::SetHiddenArea( EVREye eEye, EHiddenAreaMeshType type, HmdVector2_t *pVerts, uint32_t unVertCount ) +{ + ETrackedDeviceProperty prop = GetPropertyEnum( eEye, type ); + CVRPropertyHelpers propHelpers( m_pProperties ); + return propHelpers.SetProperty( propHelpers.TrackedDeviceToPropertyContainer( k_unTrackedDeviceIndex_Hmd ), prop, pVerts, sizeof( HmdVector2_t ) * unVertCount, k_unHiddenAreaPropertyTag ); +} + + +inline uint32_t CVRHiddenAreaHelpers::GetHiddenArea( EVREye eEye, EHiddenAreaMeshType type, HmdVector2_t *pVerts, uint32_t unVertCount, ETrackedPropertyError *peError ) +{ + ETrackedDeviceProperty prop = GetPropertyEnum( eEye, type ); + CVRPropertyHelpers propHelpers( m_pProperties ); + ETrackedPropertyError propError; + PropertyTypeTag_t unTag; + uint32_t unBytesNeeded = propHelpers.GetProperty( propHelpers.TrackedDeviceToPropertyContainer( k_unTrackedDeviceIndex_Hmd ), prop, pVerts, sizeof( HmdVector2_t )*unVertCount, &unTag, &propError ); + if ( propError == TrackedProp_Success && unTag != k_unHiddenAreaPropertyTag ) + { + propError = TrackedProp_WrongDataType; + unBytesNeeded = 0; + } + + if ( peError ) + { + *peError = propError; + } + + return unBytesNeeded / sizeof( HmdVector2_t ); +} + +} +// ivrwatchdoghost.h +namespace vr +{ + +/** This interface is provided by vrclient to allow the driver to make everything wake up */ +class IVRWatchdogHost +{ +public: + /** Client drivers in watchdog mode should call this when they have received a signal from hardware that should + * cause SteamVR to start */ + virtual void WatchdogWakeUp() = 0; +}; + +static const char *IVRWatchdogHost_Version = "IVRWatchdogHost_001"; + +}; + + + +// ivrvirtualdisplay.h +namespace vr +{ + // ---------------------------------------------------------------------------------------------- + // Purpose: This component is used for drivers that implement a virtual display (e.g. wireless). + // ---------------------------------------------------------------------------------------------- + class IVRVirtualDisplay + { + public: + + /** Submits final backbuffer for display. */ + virtual void Present( vr::SharedTextureHandle_t backbufferTextureHandle ) = 0; + + /** Block until the last presented buffer start scanning out. */ + virtual void WaitForPresent() = 0; + + /** Provides timing data for synchronizing with display. */ + virtual bool GetTimeSinceLastVsync( float *pfSecondsSinceLastVsync, uint64_t *pulFrameCounter ) = 0; + }; + + static const char *IVRVirtualDisplay_Version = "IVRVirtualDisplay_001"; + + /** Returns the current IVRVirtualDisplay pointer or NULL the interface could not be found. */ + VR_INTERFACE vr::IVRVirtualDisplay *VR_CALLTYPE VRVirtualDisplay(); +} + + +// ivrresources.h +namespace vr +{ + +class IVRResources +{ +public: + + // ------------------------------------ + // Shared Resource Methods + // ------------------------------------ + + /** Loads the specified resource into the provided buffer if large enough. + * Returns the size in bytes of the buffer required to hold the specified resource. */ + virtual uint32_t LoadSharedResource( const char *pchResourceName, char *pchBuffer, uint32_t unBufferLen ) = 0; + + /** Provides the full path to the specified resource. Resource names can include named directories for + * drivers and other things, and this resolves all of those and returns the actual physical path. + * pchResourceTypeDirectory is the subdirectory of resources to look in. */ + virtual uint32_t GetResourceFullPath( const char *pchResourceName, const char *pchResourceTypeDirectory, char *pchPathBuffer, uint32_t unBufferLen ) = 0; +}; + +static const char * const IVRResources_Version = "IVRResources_001"; + + +} +// ivrdrivermanager.h +namespace vr +{ + +class IVRDriverManager +{ +public: + virtual uint32_t GetDriverCount() const = 0; + + /** Returns the length of the number of bytes necessary to hold this string including the trailing null. */ + virtual uint32_t GetDriverName( vr::DriverId_t nDriver, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize ) = 0; +}; + +static const char * const IVRDriverManager_Version = "IVRDriverManager_001"; + +} // namespace vr + + + + + +namespace vr +{ + static const char * const k_InterfaceVersions[] = + { + IVRSettings_Version, + ITrackedDeviceServerDriver_Version, + IVRDisplayComponent_Version, + IVRDriverDirectModeComponent_Version, + IVRControllerComponent_Version, + IVRCameraComponent_Version, + IServerTrackedDeviceProvider_Version, + IVRWatchdogProvider_Version, + IVRVirtualDisplay_Version, + IVRDriverManager_Version, + IVRResources_Version, + nullptr + }; + + inline IVRDriverContext *&VRDriverContext() + { + static IVRDriverContext *pHost; + return pHost; + } + + class COpenVRDriverContext + { + public: + COpenVRDriverContext() : m_propertyHelpers(nullptr), m_hiddenAreaHelpers(nullptr) { Clear(); } + void Clear(); + + EVRInitError InitServer(); + EVRInitError InitWatchdog(); + + IVRSettings *VRSettings() + { + if ( m_pVRSettings == nullptr ) + { + EVRInitError eError; + m_pVRSettings = (IVRSettings *)VRDriverContext()->GetGenericInterface( IVRSettings_Version, &eError ); + } + return m_pVRSettings; + } + + IVRProperties *VRPropertiesRaw() + { + if ( m_pVRProperties == nullptr ) + { + EVRInitError eError; + m_pVRProperties = (IVRProperties *)VRDriverContext()->GetGenericInterface( IVRProperties_Version, &eError ); + m_propertyHelpers = CVRPropertyHelpers( m_pVRProperties ); + m_hiddenAreaHelpers = CVRHiddenAreaHelpers( m_pVRProperties ); + } + return m_pVRProperties; + } + + CVRPropertyHelpers *VRProperties() + { + VRPropertiesRaw(); + return &m_propertyHelpers; + } + + CVRHiddenAreaHelpers *VRHiddenArea() + { + VRPropertiesRaw(); + return &m_hiddenAreaHelpers; + } + + IVRServerDriverHost *VRServerDriverHost() + { + if ( m_pVRServerDriverHost == nullptr ) + { + EVRInitError eError; + m_pVRServerDriverHost = (IVRServerDriverHost *)VRDriverContext()->GetGenericInterface( IVRServerDriverHost_Version, &eError ); + } + return m_pVRServerDriverHost; + } + + IVRWatchdogHost *VRWatchdogHost() + { + if ( m_pVRWatchdogHost == nullptr ) + { + EVRInitError eError; + m_pVRWatchdogHost = (IVRWatchdogHost *)VRDriverContext()->GetGenericInterface( IVRWatchdogHost_Version, &eError ); + } + return m_pVRWatchdogHost; + } + + IVRDriverLog *VRDriverLog() + { + if ( m_pVRDriverLog == nullptr ) + { + EVRInitError eError; + m_pVRDriverLog = (IVRDriverLog *)VRDriverContext()->GetGenericInterface( IVRDriverLog_Version, &eError ); + } + return m_pVRDriverLog; + } + + DriverHandle_t VR_CALLTYPE VRDriverHandle() + { + return VRDriverContext()->GetDriverHandle(); + } + + IVRDriverManager *VRDriverManager() + { + if ( !m_pVRDriverManager ) + { + EVRInitError eError; + m_pVRDriverManager = (IVRDriverManager *)VRDriverContext()->GetGenericInterface( IVRDriverManager_Version, &eError ); + } + return m_pVRDriverManager; + } + + IVRResources *VRResources() + { + if ( !m_pVRResources ) + { + EVRInitError eError; + m_pVRResources = (IVRResources *)VRDriverContext()->GetGenericInterface( IVRResources_Version, &eError ); + } + return m_pVRResources; + } + + private: + CVRPropertyHelpers m_propertyHelpers; + CVRHiddenAreaHelpers m_hiddenAreaHelpers; + + IVRSettings *m_pVRSettings; + IVRProperties *m_pVRProperties; + IVRServerDriverHost *m_pVRServerDriverHost; + IVRWatchdogHost *m_pVRWatchdogHost; + IVRDriverLog *m_pVRDriverLog; + IVRDriverManager *m_pVRDriverManager; + IVRResources *m_pVRResources; + }; + + inline COpenVRDriverContext &OpenVRInternal_ModuleServerDriverContext() + { + static void *ctx[sizeof( COpenVRDriverContext ) / sizeof( void * )]; + return *(COpenVRDriverContext *)ctx; // bypass zero-init constructor + } + + inline IVRSettings *VR_CALLTYPE VRSettings() { return OpenVRInternal_ModuleServerDriverContext().VRSettings(); } + inline IVRProperties *VR_CALLTYPE VRPropertiesRaw() { return OpenVRInternal_ModuleServerDriverContext().VRPropertiesRaw(); } + inline CVRPropertyHelpers *VR_CALLTYPE VRProperties() { return OpenVRInternal_ModuleServerDriverContext().VRProperties(); } + inline CVRHiddenAreaHelpers *VR_CALLTYPE VRHiddenArea() { return OpenVRInternal_ModuleServerDriverContext().VRHiddenArea(); } + inline IVRDriverLog *VR_CALLTYPE VRDriverLog() { return OpenVRInternal_ModuleServerDriverContext().VRDriverLog(); } + inline IVRServerDriverHost *VR_CALLTYPE VRServerDriverHost() { return OpenVRInternal_ModuleServerDriverContext().VRServerDriverHost(); } + inline IVRWatchdogHost *VR_CALLTYPE VRWatchdogHost() { return OpenVRInternal_ModuleServerDriverContext().VRWatchdogHost(); } + inline DriverHandle_t VR_CALLTYPE VRDriverHandle() { return OpenVRInternal_ModuleServerDriverContext().VRDriverHandle(); } + inline IVRDriverManager *VR_CALLTYPE VRDriverManager() { return OpenVRInternal_ModuleServerDriverContext().VRDriverManager(); } + inline IVRResources *VR_CALLTYPE VRResources() { return OpenVRInternal_ModuleServerDriverContext().VRResources(); } + + inline void COpenVRDriverContext::Clear() + { + m_pVRSettings = nullptr; + m_pVRProperties = nullptr; + m_pVRServerDriverHost = nullptr; + m_pVRDriverLog = nullptr; + m_pVRWatchdogHost = nullptr; + m_pVRDriverManager = nullptr; + m_pVRResources = nullptr; + } + + inline EVRInitError COpenVRDriverContext::InitServer() + { + Clear(); + if ( !VRServerDriverHost() + || !VRSettings() + || !VRProperties() + || !VRDriverLog() + || !VRDriverManager() + || !VRResources() ) + return VRInitError_Init_InterfaceNotFound; + return VRInitError_None; + } + + inline EVRInitError COpenVRDriverContext::InitWatchdog() + { + Clear(); + if ( !VRWatchdogHost() + || !VRSettings() + || !VRDriverLog() ) + return VRInitError_Init_InterfaceNotFound; + return VRInitError_None; + } + + inline EVRInitError InitServerDriverContext( IVRDriverContext *pContext ) + { + VRDriverContext() = pContext; + return OpenVRInternal_ModuleServerDriverContext().InitServer(); + } + + inline EVRInitError InitWatchdogDriverContext( IVRDriverContext *pContext ) + { + VRDriverContext() = pContext; + return OpenVRInternal_ModuleServerDriverContext().InitWatchdog(); + } + + inline void CleanupDriverContext() + { + VRDriverContext() = nullptr; + OpenVRInternal_ModuleServerDriverContext().Clear(); + } + + #define VR_INIT_SERVER_DRIVER_CONTEXT( pContext ) \ + { \ + vr::EVRInitError eError = vr::InitServerDriverContext( pContext ); \ + if( eError != vr::VRInitError_None ) \ + return eError; \ + } + + #define VR_CLEANUP_SERVER_DRIVER_CONTEXT() \ + vr::CleanupDriverContext(); + + #define VR_INIT_WATCHDOG_DRIVER_CONTEXT( pContext ) \ + { \ + vr::EVRInitError eError = vr::InitWatchdogDriverContext( pContext ); \ + if( eError != vr::VRInitError_None ) \ + return eError; \ + } + + #define VR_CLEANUP_WATCHDOG_DRIVER_CONTEXT() \ + vr::CleanupDriverContext(); +} +// End + +#endif // _OPENVR_DRIVER_API + + diff --git a/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/Current/OpenVR b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/Current/OpenVR new file mode 100755 index 000000000..1609501c7 Binary files /dev/null and b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/Current/OpenVR differ diff --git a/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/Current/Resources/Info.plist b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/Current/Resources/Info.plist new file mode 100644 index 000000000..50ff90a2c --- /dev/null +++ b/examples/ThirdPartyLibs/openvr/bin/osx64/OpenVR.framework/Versions/Current/Resources/Info.plist @@ -0,0 +1,18 @@ + + + + + CFBundleIdentifier + com.valvesoftware.OpenVR.framework + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + OpenVR + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1.0 + + diff --git a/examples/ThirdPartyLibs/openvr/bin/osx64/libopenvr_api.a b/examples/ThirdPartyLibs/openvr/bin/osx64/libopenvr_api.a new file mode 100644 index 000000000..12210366b Binary files /dev/null and b/examples/ThirdPartyLibs/openvr/bin/osx64/libopenvr_api.a differ diff --git a/examples/ThirdPartyLibs/openvr/headers/openvr.h b/examples/ThirdPartyLibs/openvr/headers/openvr.h index 2020e9d3a..98410f163 100644 --- a/examples/ThirdPartyLibs/openvr/headers/openvr.h +++ b/examples/ThirdPartyLibs/openvr/headers/openvr.h @@ -143,6 +143,9 @@ enum ETrackingResult TrackingResult_Running_OutOfRange = 201, }; +typedef uint32_t DriverId_t; +static const uint32_t k_nDriverNone = 0xFFFFFFFF; + static const uint32_t k_unMaxDriverDebugResponseSize = 32768; /** Used to pass device IDs to API calls */ @@ -309,6 +312,10 @@ enum ETrackedDeviceProperty Prop_DisplayMCImageNumChannels_Int32 = 2040, Prop_DisplayMCImageData_Binary = 2041, Prop_SecondsFromPhotonsToVblank_Float = 2042, + Prop_DriverDirectModeSendsVsyncEvents_Bool = 2043, + Prop_DisplayDebugMode_Bool = 2044, + Prop_GraphicsAdapterLuid_Uint64 = 2045, + Prop_DriverProvidedChaperonePath_String = 2048, // Properties that are unique to TrackedDeviceClass_Controller Prop_AttachedDeviceId_String = 3000, @@ -330,15 +337,15 @@ enum ETrackedDeviceProperty Prop_ModeLabel_String = 4006, // Properties that are used for user interface like icons names - Prop_IconPathName_String = 5000, // usually a directory named "icons" - Prop_NamedIconPathDeviceOff_String = 5001, // PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others - Prop_NamedIconPathDeviceSearching_String = 5002, // PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others - Prop_NamedIconPathDeviceSearchingAlert_String = 5003, // PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others - Prop_NamedIconPathDeviceReady_String = 5004, // PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others - Prop_NamedIconPathDeviceReadyAlert_String = 5005, // PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others - Prop_NamedIconPathDeviceNotReady_String = 5006, // PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others - Prop_NamedIconPathDeviceStandby_String = 5007, // PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others - Prop_NamedIconPathDeviceAlertLow_String = 5008, // PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_IconPathName_String = 5000, // DEPRECATED. Value not referenced. Now expected to be part of icon path properties. + Prop_NamedIconPathDeviceOff_String = 5001, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceSearching_String = 5002, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceSearchingAlert_String = 5003, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceReady_String = 5004, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceReadyAlert_String = 5005, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceNotReady_String = 5006, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceStandby_String = 5007, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceAlertLow_String = 5008, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others // Properties that are used by helpers, but are opaque to applications Prop_DisplayHiddenArea_Binary_Start = 5100, @@ -458,6 +465,8 @@ enum EVREventType VREvent_WatchdogWakeUpRequested = 109, VREvent_LensDistortionChanged = 110, VREvent_PropertyChanged = 111, + VREvent_WirelessDisconnect = 112, + VREvent_WirelessReconnect = 113, VREvent_ButtonPress = 200, // data is controller VREvent_ButtonUnpress = 201, // data is controller @@ -539,6 +548,7 @@ enum EVREventType VREvent_ModelSkinSettingsHaveChanged = 853, VREvent_EnvironmentSettingsHaveChanged = 854, VREvent_PowerSettingsHaveChanged = 855, + VREvent_EnableHomeAppSettingsHaveChanged = 856, VREvent_StatusUpdate = 900, @@ -1044,6 +1054,8 @@ enum EVRInitError VRInitError_Init_WatchdogDisabledInSettings = 132, VRInitError_Init_VRDashboardNotFound = 133, VRInitError_Init_VRDashboardStartupFailed = 134, + VRInitError_Init_VRHomeNotFound = 135, + VRInitError_Init_VRHomeStartupFailed = 136, VRInitError_Driver_Failed = 200, VRInitError_Driver_Unknown = 201, @@ -1074,6 +1086,7 @@ enum EVRInitError VRInitError_Compositor_FirmwareRequiresUpdate = 402, VRInitError_Compositor_OverlayInitFailed = 403, VRInitError_Compositor_ScreenshotsInitFailed = 404, + VRInitError_Compositor_UnableToCreateDevice = 405, VRInitError_VendorSpecific_UnableToConnectToOculusRuntime = 1000, @@ -1265,6 +1278,22 @@ public: * and swap chain in DX10 and DX11. If an error occurs the index will be set to -1. */ virtual void GetDXGIOutputInfo( int32_t *pnAdapterIndex ) = 0; + + /** + * Returns platform- and texture-type specific adapter identification so that applications and the + * compositor are creating textures and swap chains on the same GPU. If an error occurs the device + * will be set to 0. + * [D3D10/11/12 Only (D3D9 Not Supported)] + * Returns the adapter LUID that identifies the GPU attached to the HMD. The user should + * enumerate all adapters using IDXGIFactory::EnumAdapters and IDXGIAdapter::GetDesc to find + * the adapter with the matching LUID, or use IDXGIFactory4::EnumAdapterByLuid. + * The discovered IDXGIAdapter should be used to create the device and swap chain. + * [Vulkan Only] + * Returns the vk::PhysicalDevice that should be used by the application. + * [macOS Only] + * Returns an id that should be used by the application. + */ + virtual void GetOutputDevice( uint64_t *pnDevice, ETextureType textureType ) = 0; // ------------------------------------ // Display Mode methods @@ -1482,7 +1511,7 @@ public: }; -static const char * const IVRSystem_Version = "IVRSystem_015"; +static const char * const IVRSystem_Version = "IVRSystem_016"; } @@ -1511,6 +1540,7 @@ namespace vr VRApplicationError_OldApplicationQuitting = 112, VRApplicationError_TransitionAborted = 113, VRApplicationError_IsTemplate = 114, // error when you try to call LaunchApplication() on a template type app (use LaunchTemplateApplication) + VRApplicationError_SteamVRIsExiting = 115, VRApplicationError_BufferTooSmall = 200, // The provided buffer was too small to fit the requested data VRApplicationError_PropertyNotSet = 201, // The requested property was not set @@ -1541,6 +1571,7 @@ namespace vr VRApplicationProperty_IsTemplate_Bool = 61, VRApplicationProperty_IsInstanced_Bool = 62, VRApplicationProperty_IsInternal_Bool = 63, + VRApplicationProperty_WantsCompositorPauseInStandby_Bool = 64, VRApplicationProperty_LastLaunchTime_Uint64 = 70, }; @@ -1770,7 +1801,7 @@ namespace vr static const char * const k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees"; static const char * const k_pch_SteamVR_BaseStationPowerManagement_Bool = "basestationPowerManagement"; static const char * const k_pch_SteamVR_NeverKillProcesses_Bool = "neverKillProcesses"; - static const char * const k_pch_SteamVR_RenderTargetMultiplier_Float = "renderTargetMultiplier"; + static const char * const k_pch_SteamVR_SupersampleScale_Float = "supersampleScale"; static const char * const k_pch_SteamVR_AllowAsyncReprojection_Bool = "allowAsyncReprojection"; static const char * const k_pch_SteamVR_AllowReprojection_Bool = "allowInterleavedReprojection"; static const char * const k_pch_SteamVR_ForceReprojection_Bool = "forceReprojection"; @@ -1783,10 +1814,10 @@ namespace vr static const char * const k_pch_SteamVR_StartDashboardFromAppLaunch_Bool = "startDashboardFromAppLaunch"; static const char * const k_pch_SteamVR_StartOverlayAppsFromDashboard_Bool = "startOverlayAppsFromDashboard"; static const char * const k_pch_SteamVR_EnableHomeApp = "enableHomeApp"; - static const char * const k_pch_SteamVR_SetInitialDefaultHomeApp = "setInitialDefaultHomeApp"; static const char * const k_pch_SteamVR_CycleBackgroundImageTimeSec_Int32 = "CycleBackgroundImageTimeSec"; static const char * const k_pch_SteamVR_RetailDemo_Bool = "retailDemo"; static const char * const k_pch_SteamVR_IpdOffset_Float = "ipdOffset"; + static const char * const k_pch_SteamVR_AllowSupersampleFiltering_Bool = "allowSupersampleFiltering"; //----------------------------------------------------------------------------- // lighthouse keys @@ -1844,6 +1875,7 @@ namespace vr static const char * const k_pch_Perf_AllowTimingStore_Bool = "allowTimingStore"; static const char * const k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit"; static const char * const k_pch_Perf_TestData_Float = "perfTestData"; + static const char * const k_pch_Perf_LinuxGPUProfiling_Bool = "linuxGPUProfiling"; //----------------------------------------------------------------------------- // collision bounds keys @@ -1889,6 +1921,7 @@ namespace vr static const char * const k_pch_Power_TurnOffControllersTimeout_Float = "turnOffControllersTimeout"; static const char * const k_pch_Power_ReturnToWatchdogTimeout_Float = "returnToWatchdogTimeout"; static const char * const k_pch_Power_AutoLaunchSteamVROnButtonPress = "autoLaunchSteamVROnButtonPress"; + static const char * const k_pch_Power_PauseCompositorOnStandby_Bool = "pauseCompositorOnStandby"; //----------------------------------------------------------------------------- // dashboard keys @@ -2087,6 +2120,7 @@ enum EVRCompositorError VRCompositorError_SharedTexturesNotSupported = 106, VRCompositorError_IndexOutOfRange = 107, VRCompositorError_AlreadySubmitted = 108, + VRCompositorError_InvalidBounds = 109, }; const uint32_t VRCompositor_ReprojectionReason_Cpu = 0x01; @@ -3350,7 +3384,26 @@ public: static const char * const IVRResources_Version = "IVRResources_001"; -}// End +} +// ivrdrivermanager.h +namespace vr +{ + +class IVRDriverManager +{ +public: + virtual uint32_t GetDriverCount() const = 0; + + /** Returns the length of the number of bytes necessary to hold this string including the trailing null. */ + virtual uint32_t GetDriverName( vr::DriverId_t nDriver, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize ) = 0; +}; + +static const char * const IVRDriverManager_Version = "IVRDriverManager_001"; + +} // namespace vr + + +// End #endif // _OPENVR_API @@ -3571,6 +3624,17 @@ namespace vr return m_pVRTrackedCamera; } + IVRDriverManager *VRDriverManager() + { + CheckClear(); + if ( !m_pVRDriverManager ) + { + EVRInitError eError; + m_pVRDriverManager = ( IVRDriverManager * )VR_GetGenericInterface( IVRDriverManager_Version, &eError ); + } + return m_pVRDriverManager; + } + private: IVRSystem *m_pVRSystem; IVRChaperone *m_pVRChaperone; @@ -3584,6 +3648,7 @@ namespace vr IVRApplications *m_pVRApplications; IVRTrackedCamera *m_pVRTrackedCamera; IVRScreenshots *m_pVRScreenshots; + IVRDriverManager *m_pVRDriverManager; }; inline COpenVRContext &OpenVRInternal_ModuleContext() @@ -3604,6 +3669,7 @@ namespace vr inline IVRResources *VR_CALLTYPE VRResources() { return OpenVRInternal_ModuleContext().VRResources(); } inline IVRExtendedDisplay *VR_CALLTYPE VRExtendedDisplay() { return OpenVRInternal_ModuleContext().VRExtendedDisplay(); } inline IVRTrackedCamera *VR_CALLTYPE VRTrackedCamera() { return OpenVRInternal_ModuleContext().VRTrackedCamera(); } + inline IVRDriverManager *VR_CALLTYPE VRDriverManager() { return OpenVRInternal_ModuleContext().VRDriverManager(); } inline void COpenVRContext::Clear() { @@ -3619,6 +3685,7 @@ namespace vr m_pVRTrackedCamera = nullptr; m_pVRResources = nullptr; m_pVRScreenshots = nullptr; + m_pVRDriverManager = nullptr; } VR_INTERFACE uint32_t VR_CALLTYPE VR_InitInternal( EVRInitError *peError, EVRApplicationType eApplicationType ); diff --git a/examples/ThirdPartyLibs/openvr/headers/openvr_api.cs b/examples/ThirdPartyLibs/openvr/headers/openvr_api.cs index 377d91a65..e08047829 100644 --- a/examples/ThirdPartyLibs/openvr/headers/openvr_api.cs +++ b/examples/ThirdPartyLibs/openvr/headers/openvr_api.cs @@ -55,6 +55,11 @@ public struct IVRSystem [MarshalAs(UnmanagedType.FunctionPtr)] internal _GetDXGIOutputInfo GetDXGIOutputInfo; + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate void _GetOutputDevice(ref ulong pnDevice, ETextureType textureType); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetOutputDevice GetOutputDevice; + [UnmanagedFunctionPointer(CallingConvention.StdCall)] internal delegate bool _IsDisplayOnDesktop(); [MarshalAs(UnmanagedType.FunctionPtr)] @@ -1477,6 +1482,21 @@ public struct IVRResources } +[StructLayout(LayoutKind.Sequential)] +public struct IVRDriverManager +{ + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetDriverCount(); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetDriverCount GetDriverCount; + + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + internal delegate uint _GetDriverName(uint nDriver, System.Text.StringBuilder pchValue, uint unBufferSize); + [MarshalAs(UnmanagedType.FunctionPtr)] + internal _GetDriverName GetDriverName; + +} + public class CVRSystem { @@ -1531,6 +1551,11 @@ public class CVRSystem pnAdapterIndex = 0; FnTable.GetDXGIOutputInfo(ref pnAdapterIndex); } + public void GetOutputDevice(ref ulong pnDevice,ETextureType textureType) + { + pnDevice = 0; + FnTable.GetOutputDevice(ref pnDevice,textureType); + } public bool IsDisplayOnDesktop() { bool result = FnTable.IsDisplayOnDesktop(); @@ -1642,6 +1667,7 @@ public class CVRSystem } public bool PollNextEvent(ref VREvent_t pEvent,uint uncbVREvent) { +#if !UNITY_METRO if ((System.Environment.OSVersion.Platform == System.PlatformID.MacOSX) || (System.Environment.OSVersion.Platform == System.PlatformID.Unix)) { @@ -1654,6 +1680,7 @@ public class CVRSystem event_packed.Unpack(ref pEvent); return packed_result; } +#endif bool result = FnTable.PollNextEvent(ref pEvent,uncbVREvent); return result; } @@ -1686,6 +1713,7 @@ public class CVRSystem } public bool GetControllerState(uint unControllerDeviceIndex,ref VRControllerState_t pControllerState,uint unControllerStateSize) { +#if !UNITY_METRO if ((System.Environment.OSVersion.Platform == System.PlatformID.MacOSX) || (System.Environment.OSVersion.Platform == System.PlatformID.Unix)) { @@ -1698,6 +1726,7 @@ public class CVRSystem state_packed.Unpack(ref pControllerState); return packed_result; } +#endif bool result = FnTable.GetControllerState(unControllerDeviceIndex,ref pControllerState,unControllerStateSize); return result; } @@ -1715,6 +1744,7 @@ public class CVRSystem } public bool GetControllerStateWithPose(ETrackingUniverseOrigin eOrigin,uint unControllerDeviceIndex,ref VRControllerState_t pControllerState,uint unControllerStateSize,ref TrackedDevicePose_t pTrackedDevicePose) { +#if !UNITY_METRO if ((System.Environment.OSVersion.Platform == System.PlatformID.MacOSX) || (System.Environment.OSVersion.Platform == System.PlatformID.Unix)) { @@ -1727,6 +1757,7 @@ public class CVRSystem state_packed.Unpack(ref pControllerState); return packed_result; } +#endif bool result = FnTable.GetControllerStateWithPose(eOrigin,unControllerDeviceIndex,ref pControllerState,unControllerStateSize,ref pTrackedDevicePose); return result; } @@ -2680,6 +2711,7 @@ public class CVROverlay } public bool PollNextOverlayEvent(ulong ulOverlayHandle,ref VREvent_t pEvent,uint uncbVREvent) { +#if !UNITY_METRO if ((System.Environment.OSVersion.Platform == System.PlatformID.MacOSX) || (System.Environment.OSVersion.Platform == System.PlatformID.Unix)) { @@ -2692,6 +2724,7 @@ public class CVROverlay event_packed.Unpack(ref pEvent); return packed_result; } +#endif bool result = FnTable.PollNextOverlayEvent(ulOverlayHandle,ref pEvent,uncbVREvent); return result; } @@ -2956,6 +2989,7 @@ public class CVRRenderModels } public bool GetComponentState(string pchRenderModelName,string pchComponentName,ref VRControllerState_t pControllerState,ref RenderModel_ControllerMode_State_t pState,ref RenderModel_ComponentState_t pComponentState) { +#if !UNITY_METRO if ((System.Environment.OSVersion.Platform == System.PlatformID.MacOSX) || (System.Environment.OSVersion.Platform == System.PlatformID.Unix)) { @@ -2968,6 +3002,7 @@ public class CVRRenderModels state_packed.Unpack(ref pControllerState); return packed_result; } +#endif bool result = FnTable.GetComponentState(pchRenderModelName,pchComponentName,ref pControllerState,ref pState,ref pComponentState); return result; } @@ -3145,6 +3180,26 @@ public class CVRResources } +public class CVRDriverManager +{ + IVRDriverManager FnTable; + internal CVRDriverManager(IntPtr pInterface) + { + FnTable = (IVRDriverManager)Marshal.PtrToStructure(pInterface, typeof(IVRDriverManager)); + } + public uint GetDriverCount() + { + uint result = FnTable.GetDriverCount(); + return result; + } + public uint GetDriverName(uint nDriver,System.Text.StringBuilder pchValue,uint unBufferSize) + { + uint result = FnTable.GetDriverName(nDriver,pchValue,unBufferSize); + return result; + } +} + + public class OpenVRInterop { [DllImportAttribute("openvr_api", EntryPoint = "VR_InitInternal", CallingConvention = CallingConvention.Cdecl)] @@ -3296,6 +3351,10 @@ public enum ETrackedDeviceProperty Prop_DisplayMCImageNumChannels_Int32 = 2040, Prop_DisplayMCImageData_Binary = 2041, Prop_SecondsFromPhotonsToVblank_Float = 2042, + Prop_DriverDirectModeSendsVsyncEvents_Bool = 2043, + Prop_DisplayDebugMode_Bool = 2044, + Prop_GraphicsAdapterLuid_Uint64 = 2045, + Prop_DriverProvidedChaperonePath_String = 2048, Prop_AttachedDeviceId_String = 3000, Prop_SupportedButtons_Uint64 = 3001, Prop_Axis0Type_Int32 = 3002, @@ -3381,6 +3440,8 @@ public enum EVREventType VREvent_WatchdogWakeUpRequested = 109, VREvent_LensDistortionChanged = 110, VREvent_PropertyChanged = 111, + VREvent_WirelessDisconnect = 112, + VREvent_WirelessReconnect = 113, VREvent_ButtonPress = 200, VREvent_ButtonUnpress = 201, VREvent_ButtonTouch = 202, @@ -3449,6 +3510,7 @@ public enum EVREventType VREvent_ModelSkinSettingsHaveChanged = 853, VREvent_EnvironmentSettingsHaveChanged = 854, VREvent_PowerSettingsHaveChanged = 855, + VREvent_EnableHomeAppSettingsHaveChanged = 856, VREvent_StatusUpdate = 900, VREvent_MCImageUpdated = 1000, VREvent_FirmwareUpdateStarted = 1100, @@ -3632,6 +3694,8 @@ public enum EVRInitError Init_WatchdogDisabledInSettings = 132, Init_VRDashboardNotFound = 133, Init_VRDashboardStartupFailed = 134, + Init_VRHomeNotFound = 135, + Init_VRHomeStartupFailed = 136, Driver_Failed = 200, Driver_Unknown = 201, Driver_HmdUnknown = 202, @@ -3658,6 +3722,7 @@ public enum EVRInitError Compositor_FirmwareRequiresUpdate = 402, Compositor_OverlayInitFailed = 403, Compositor_ScreenshotsInitFailed = 404, + Compositor_UnableToCreateDevice = 405, VendorSpecific_UnableToConnectToOculusRuntime = 1000, VendorSpecific_HmdFound_CantOpenDevice = 1101, VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102, @@ -3733,6 +3798,7 @@ public enum EVRApplicationError OldApplicationQuitting = 112, TransitionAborted = 113, IsTemplate = 114, + SteamVRIsExiting = 115, BufferTooSmall = 200, PropertyNotSet = 201, UnknownProperty = 202, @@ -3754,6 +3820,7 @@ public enum EVRApplicationProperty IsTemplate_Bool = 61, IsInstanced_Bool = 62, IsInternal_Bool = 63, + WantsCompositorPauseInStandby_Bool = 64, LastLaunchTime_Uint64 = 70, } public enum EVRApplicationTransitionState @@ -3798,6 +3865,7 @@ public enum EVRCompositorError SharedTexturesNotSupported = 106, IndexOutOfRange = 107, AlreadySubmitted = 108, + InvalidBounds = 109, } public enum VROverlayInputMethod { @@ -4479,6 +4547,7 @@ public enum EVRScreenshotError public IntPtr m_pVRApplications; // class vr::IVRApplications * public IntPtr m_pVRTrackedCamera; // class vr::IVRTrackedCamera * public IntPtr m_pVRScreenshots; // class vr::IVRScreenshots * + public IntPtr m_pVRDriverManager; // class vr::IVRDriverManager * } public class OpenVR @@ -4524,6 +4593,7 @@ public class OpenVR return OpenVRInterop.GetInitToken(); } + public const uint k_nDriverNone = 4294967295; public const uint k_unMaxDriverDebugResponseSize = 32768; public const uint k_unTrackedDeviceIndex_Hmd = 0; public const uint k_unMaxTrackedDeviceCount = 16; @@ -4547,7 +4617,7 @@ public class OpenVR public const uint k_unControllerStateAxisCount = 5; public const ulong k_ulOverlayHandleInvalid = 0; public const uint k_unScreenshotHandleInvalid = 0; - public const string IVRSystem_Version = "IVRSystem_015"; + public const string IVRSystem_Version = "IVRSystem_016"; public const string IVRExtendedDisplay_Version = "IVRExtendedDisplay_001"; public const string IVRTrackedCamera_Version = "IVRTrackedCamera_003"; public const uint k_unMaxApplicationKeyLength = 128; @@ -4598,7 +4668,7 @@ public class OpenVR public const string k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees"; public const string k_pch_SteamVR_BaseStationPowerManagement_Bool = "basestationPowerManagement"; public const string k_pch_SteamVR_NeverKillProcesses_Bool = "neverKillProcesses"; - public const string k_pch_SteamVR_RenderTargetMultiplier_Float = "renderTargetMultiplier"; + public const string k_pch_SteamVR_SupersampleScale_Float = "supersampleScale"; public const string k_pch_SteamVR_AllowAsyncReprojection_Bool = "allowAsyncReprojection"; public const string k_pch_SteamVR_AllowReprojection_Bool = "allowInterleavedReprojection"; public const string k_pch_SteamVR_ForceReprojection_Bool = "forceReprojection"; @@ -4611,10 +4681,10 @@ public class OpenVR public const string k_pch_SteamVR_StartDashboardFromAppLaunch_Bool = "startDashboardFromAppLaunch"; public const string k_pch_SteamVR_StartOverlayAppsFromDashboard_Bool = "startOverlayAppsFromDashboard"; public const string k_pch_SteamVR_EnableHomeApp = "enableHomeApp"; - public const string k_pch_SteamVR_SetInitialDefaultHomeApp = "setInitialDefaultHomeApp"; public const string k_pch_SteamVR_CycleBackgroundImageTimeSec_Int32 = "CycleBackgroundImageTimeSec"; public const string k_pch_SteamVR_RetailDemo_Bool = "retailDemo"; public const string k_pch_SteamVR_IpdOffset_Float = "ipdOffset"; + public const string k_pch_SteamVR_AllowSupersampleFiltering_Bool = "allowSupersampleFiltering"; public const string k_pch_Lighthouse_Section = "driver_lighthouse"; public const string k_pch_Lighthouse_DisableIMU_Bool = "disableimu"; public const string k_pch_Lighthouse_UseDisambiguation_String = "usedisambiguation"; @@ -4654,6 +4724,7 @@ public class OpenVR public const string k_pch_Perf_AllowTimingStore_Bool = "allowTimingStore"; public const string k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit"; public const string k_pch_Perf_TestData_Float = "perfTestData"; + public const string k_pch_Perf_LinuxGPUProfiling_Bool = "linuxGPUProfiling"; public const string k_pch_CollisionBounds_Section = "collisionBounds"; public const string k_pch_CollisionBounds_Style_Int32 = "CollisionBoundsStyle"; public const string k_pch_CollisionBounds_GroundPerimeterOn_Bool = "CollisionBoundsGroundPerimeterOn"; @@ -4687,6 +4758,7 @@ public class OpenVR public const string k_pch_Power_TurnOffControllersTimeout_Float = "turnOffControllersTimeout"; public const string k_pch_Power_ReturnToWatchdogTimeout_Float = "returnToWatchdogTimeout"; public const string k_pch_Power_AutoLaunchSteamVROnButtonPress = "autoLaunchSteamVROnButtonPress"; + public const string k_pch_Power_PauseCompositorOnStandby_Bool = "pauseCompositorOnStandby"; public const string k_pch_Dashboard_Section = "dashboard"; public const string k_pch_Dashboard_EnableDashboard_Bool = "enableDashboard"; public const string k_pch_Dashboard_ArcadeMode_Bool = "arcadeMode"; @@ -4694,6 +4766,7 @@ public class OpenVR public const string k_pch_Driver_Enable_Bool = "enable"; public const string IVRScreenshots_Version = "IVRScreenshots_001"; public const string IVRResources_Version = "IVRResources_001"; + public const string IVRDriverManager_Version = "IVRDriverManager_001"; static uint VRToken { get; set; } diff --git a/examples/ThirdPartyLibs/openvr/headers/openvr_api.json b/examples/ThirdPartyLibs/openvr/headers/openvr_api.json index 43c3bf958..f4fab7478 100644 --- a/examples/ThirdPartyLibs/openvr/headers/openvr_api.json +++ b/examples/ThirdPartyLibs/openvr/headers/openvr_api.json @@ -2,6 +2,7 @@ ,{"typedef": "vr::glInt_t","type": "int32_t"} ,{"typedef": "vr::glUInt_t","type": "uint32_t"} ,{"typedef": "vr::SharedTextureHandle_t","type": "uint64_t"} +,{"typedef": "vr::DriverId_t","type": "uint32_t"} ,{"typedef": "vr::TrackedDeviceIndex_t","type": "uint32_t"} ,{"typedef": "vr::PropertyContainerHandle_t","type": "uint64_t"} ,{"typedef": "vr::PropertyTypeTag_t","type": "uint32_t"} @@ -153,6 +154,10 @@ ,{"name": "Prop_DisplayMCImageNumChannels_Int32","value": "2040"} ,{"name": "Prop_DisplayMCImageData_Binary","value": "2041"} ,{"name": "Prop_SecondsFromPhotonsToVblank_Float","value": "2042"} + ,{"name": "Prop_DriverDirectModeSendsVsyncEvents_Bool","value": "2043"} + ,{"name": "Prop_DisplayDebugMode_Bool","value": "2044"} + ,{"name": "Prop_GraphicsAdapterLuid_Uint64","value": "2045"} + ,{"name": "Prop_DriverProvidedChaperonePath_String","value": "2048"} ,{"name": "Prop_AttachedDeviceId_String","value": "3000"} ,{"name": "Prop_SupportedButtons_Uint64","value": "3001"} ,{"name": "Prop_Axis0Type_Int32","value": "3002"} @@ -234,6 +239,8 @@ ,{"name": "VREvent_WatchdogWakeUpRequested","value": "109"} ,{"name": "VREvent_LensDistortionChanged","value": "110"} ,{"name": "VREvent_PropertyChanged","value": "111"} + ,{"name": "VREvent_WirelessDisconnect","value": "112"} + ,{"name": "VREvent_WirelessReconnect","value": "113"} ,{"name": "VREvent_ButtonPress","value": "200"} ,{"name": "VREvent_ButtonUnpress","value": "201"} ,{"name": "VREvent_ButtonTouch","value": "202"} @@ -302,6 +309,7 @@ ,{"name": "VREvent_ModelSkinSettingsHaveChanged","value": "853"} ,{"name": "VREvent_EnvironmentSettingsHaveChanged","value": "854"} ,{"name": "VREvent_PowerSettingsHaveChanged","value": "855"} + ,{"name": "VREvent_EnableHomeAppSettingsHaveChanged","value": "856"} ,{"name": "VREvent_StatusUpdate","value": "900"} ,{"name": "VREvent_MCImageUpdated","value": "1000"} ,{"name": "VREvent_FirmwareUpdateStarted","value": "1100"} @@ -473,6 +481,8 @@ ,{"name": "VRInitError_Init_WatchdogDisabledInSettings","value": "132"} ,{"name": "VRInitError_Init_VRDashboardNotFound","value": "133"} ,{"name": "VRInitError_Init_VRDashboardStartupFailed","value": "134"} + ,{"name": "VRInitError_Init_VRHomeNotFound","value": "135"} + ,{"name": "VRInitError_Init_VRHomeStartupFailed","value": "136"} ,{"name": "VRInitError_Driver_Failed","value": "200"} ,{"name": "VRInitError_Driver_Unknown","value": "201"} ,{"name": "VRInitError_Driver_HmdUnknown","value": "202"} @@ -499,6 +509,7 @@ ,{"name": "VRInitError_Compositor_FirmwareRequiresUpdate","value": "402"} ,{"name": "VRInitError_Compositor_OverlayInitFailed","value": "403"} ,{"name": "VRInitError_Compositor_ScreenshotsInitFailed","value": "404"} + ,{"name": "VRInitError_Compositor_UnableToCreateDevice","value": "405"} ,{"name": "VRInitError_VendorSpecific_UnableToConnectToOculusRuntime","value": "1000"} ,{"name": "VRInitError_VendorSpecific_HmdFound_CantOpenDevice","value": "1101"} ,{"name": "VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart","value": "1102"} @@ -569,6 +580,7 @@ ,{"name": "VRApplicationError_OldApplicationQuitting","value": "112"} ,{"name": "VRApplicationError_TransitionAborted","value": "113"} ,{"name": "VRApplicationError_IsTemplate","value": "114"} + ,{"name": "VRApplicationError_SteamVRIsExiting","value": "115"} ,{"name": "VRApplicationError_BufferTooSmall","value": "200"} ,{"name": "VRApplicationError_PropertyNotSet","value": "201"} ,{"name": "VRApplicationError_UnknownProperty","value": "202"} @@ -589,6 +601,7 @@ ,{"name": "VRApplicationProperty_IsTemplate_Bool","value": "61"} ,{"name": "VRApplicationProperty_IsInstanced_Bool","value": "62"} ,{"name": "VRApplicationProperty_IsInternal_Bool","value": "63"} + ,{"name": "VRApplicationProperty_WantsCompositorPauseInStandby_Bool","value": "64"} ,{"name": "VRApplicationProperty_LastLaunchTime_Uint64","value": "70"} ]} , {"enumname": "vr::EVRApplicationTransitionState","values": [ @@ -628,6 +641,7 @@ ,{"name": "VRCompositorError_SharedTexturesNotSupported","value": "106"} ,{"name": "VRCompositorError_IndexOutOfRange","value": "107"} ,{"name": "VRCompositorError_AlreadySubmitted","value": "108"} + ,{"name": "VRCompositorError_InvalidBounds","value": "109"} ]} , {"enumname": "vr::VROverlayInputMethod","values": [ {"name": "VROverlayInputMethod_None","value": "0"} @@ -738,6 +752,8 @@ ]} ], "consts":[{ + "constname": "k_nDriverNone","consttype": "const uint32_t", "constval": "4294967295"} +,{ "constname": "k_unMaxDriverDebugResponseSize","consttype": "const uint32_t", "constval": "32768"} ,{ "constname": "k_unTrackedDeviceIndex_Hmd","consttype": "const uint32_t", "constval": "0"} @@ -784,7 +800,7 @@ ,{ "constname": "k_unScreenshotHandleInvalid","consttype": "const uint32_t", "constval": "0"} ,{ - "constname": "IVRSystem_Version","consttype": "const char *const", "constval": "IVRSystem_015"} + "constname": "IVRSystem_Version","consttype": "const char *const", "constval": "IVRSystem_016"} ,{ "constname": "IVRExtendedDisplay_Version","consttype": "const char *const", "constval": "IVRExtendedDisplay_001"} ,{ @@ -886,7 +902,7 @@ ,{ "constname": "k_pch_SteamVR_NeverKillProcesses_Bool","consttype": "const char *const", "constval": "neverKillProcesses"} ,{ - "constname": "k_pch_SteamVR_RenderTargetMultiplier_Float","consttype": "const char *const", "constval": "renderTargetMultiplier"} + "constname": "k_pch_SteamVR_SupersampleScale_Float","consttype": "const char *const", "constval": "supersampleScale"} ,{ "constname": "k_pch_SteamVR_AllowAsyncReprojection_Bool","consttype": "const char *const", "constval": "allowAsyncReprojection"} ,{ @@ -911,14 +927,14 @@ "constname": "k_pch_SteamVR_StartOverlayAppsFromDashboard_Bool","consttype": "const char *const", "constval": "startOverlayAppsFromDashboard"} ,{ "constname": "k_pch_SteamVR_EnableHomeApp","consttype": "const char *const", "constval": "enableHomeApp"} -,{ - "constname": "k_pch_SteamVR_SetInitialDefaultHomeApp","consttype": "const char *const", "constval": "setInitialDefaultHomeApp"} ,{ "constname": "k_pch_SteamVR_CycleBackgroundImageTimeSec_Int32","consttype": "const char *const", "constval": "CycleBackgroundImageTimeSec"} ,{ "constname": "k_pch_SteamVR_RetailDemo_Bool","consttype": "const char *const", "constval": "retailDemo"} ,{ "constname": "k_pch_SteamVR_IpdOffset_Float","consttype": "const char *const", "constval": "ipdOffset"} +,{ + "constname": "k_pch_SteamVR_AllowSupersampleFiltering_Bool","consttype": "const char *const", "constval": "allowSupersampleFiltering"} ,{ "constname": "k_pch_Lighthouse_Section","consttype": "const char *const", "constval": "driver_lighthouse"} ,{ @@ -997,6 +1013,8 @@ "constname": "k_pch_Perf_SaveTimingsOnExit_Bool","consttype": "const char *const", "constval": "saveTimingsOnExit"} ,{ "constname": "k_pch_Perf_TestData_Float","consttype": "const char *const", "constval": "perfTestData"} +,{ + "constname": "k_pch_Perf_LinuxGPUProfiling_Bool","consttype": "const char *const", "constval": "linuxGPUProfiling"} ,{ "constname": "k_pch_CollisionBounds_Section","consttype": "const char *const", "constval": "collisionBounds"} ,{ @@ -1063,6 +1081,8 @@ "constname": "k_pch_Power_ReturnToWatchdogTimeout_Float","consttype": "const char *const", "constval": "returnToWatchdogTimeout"} ,{ "constname": "k_pch_Power_AutoLaunchSteamVROnButtonPress","consttype": "const char *const", "constval": "autoLaunchSteamVROnButtonPress"} +,{ + "constname": "k_pch_Power_PauseCompositorOnStandby_Bool","consttype": "const char *const", "constval": "pauseCompositorOnStandby"} ,{ "constname": "k_pch_Dashboard_Section","consttype": "const char *const", "constval": "dashboard"} ,{ @@ -1077,6 +1097,8 @@ "constname": "IVRScreenshots_Version","consttype": "const char *const", "constval": "IVRScreenshots_001"} ,{ "constname": "IVRResources_Version","consttype": "const char *const", "constval": "IVRResources_001"} +,{ + "constname": "IVRDriverManager_Version","consttype": "const char *const", "constval": "IVRDriverManager_001"} ], "structs":[{"struct": "vr::HmdMatrix34_t","fields": [ { "fieldname": "m", "fieldtype": "float [3][4]"}]} @@ -1363,7 +1385,8 @@ { "fieldname": "m_pVRSettings", "fieldtype": "class vr::IVRSettings *"}, { "fieldname": "m_pVRApplications", "fieldtype": "class vr::IVRApplications *"}, { "fieldname": "m_pVRTrackedCamera", "fieldtype": "class vr::IVRTrackedCamera *"}, -{ "fieldname": "m_pVRScreenshots", "fieldtype": "class vr::IVRScreenshots *"}]} +{ "fieldname": "m_pVRScreenshots", "fieldtype": "class vr::IVRScreenshots *"}, +{ "fieldname": "m_pVRDriverManager", "fieldtype": "class vr::IVRDriverManager *"}]} ], "methods":[{ "classname": "vr::IVRSystem", @@ -1437,6 +1460,15 @@ { "paramname": "pnAdapterIndex" ,"paramtype": "int32_t *"} ] } +,{ + "classname": "vr::IVRSystem", + "methodname": "GetOutputDevice", + "returntype": "void", + "params": [ +{ "paramname": "pnDevice" ,"paramtype": "uint64_t *"}, +{ "paramname": "textureType" ,"paramtype": "vr::ETextureType"} + ] +} ,{ "classname": "vr::IVRSystem", "methodname": "IsDisplayOnDesktop", @@ -3844,5 +3876,20 @@ { "paramname": "unBufferLen" ,"paramtype": "uint32_t"} ] } +,{ + "classname": "vr::IVRDriverManager", + "methodname": "GetDriverCount", + "returntype": "uint32_t" +} +,{ + "classname": "vr::IVRDriverManager", + "methodname": "GetDriverName", + "returntype": "uint32_t", + "params": [ +{ "paramname": "nDriver" ,"paramtype": "vr::DriverId_t"}, +{ "paramname": "pchValue" ,"out_string": " " ,"paramtype": "char *"}, +{ "paramname": "unBufferSize" ,"paramtype": "uint32_t"} + ] +} ] } \ No newline at end of file diff --git a/examples/ThirdPartyLibs/openvr/headers/openvr_capi.h b/examples/ThirdPartyLibs/openvr/headers/openvr_capi.h index f89566817..24d277876 100644 --- a/examples/ThirdPartyLibs/openvr/headers/openvr_capi.h +++ b/examples/ThirdPartyLibs/openvr/headers/openvr_capi.h @@ -60,6 +60,7 @@ typedef uint32_t PropertyTypeTag_t; // OpenVR Constants +static const unsigned int k_nDriverNone = 4294967295; static const unsigned int k_unMaxDriverDebugResponseSize = 32768; static const unsigned int k_unTrackedDeviceIndex_Hmd = 0; static const unsigned int k_unMaxTrackedDeviceCount = 16; @@ -83,7 +84,7 @@ static const unsigned int k_unMaxPropertyStringSize = 32768; static const unsigned int k_unControllerStateAxisCount = 5; static const unsigned long k_ulOverlayHandleInvalid = 0; static const unsigned int k_unScreenshotHandleInvalid = 0; -static const char * IVRSystem_Version = "IVRSystem_015"; +static const char * IVRSystem_Version = "IVRSystem_016"; static const char * IVRExtendedDisplay_Version = "IVRExtendedDisplay_001"; static const char * IVRTrackedCamera_Version = "IVRTrackedCamera_003"; static const unsigned int k_unMaxApplicationKeyLength = 128; @@ -134,7 +135,7 @@ static const char * k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers"; static const char * k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees"; static const char * k_pch_SteamVR_BaseStationPowerManagement_Bool = "basestationPowerManagement"; static const char * k_pch_SteamVR_NeverKillProcesses_Bool = "neverKillProcesses"; -static const char * k_pch_SteamVR_RenderTargetMultiplier_Float = "renderTargetMultiplier"; +static const char * k_pch_SteamVR_SupersampleScale_Float = "supersampleScale"; static const char * k_pch_SteamVR_AllowAsyncReprojection_Bool = "allowAsyncReprojection"; static const char * k_pch_SteamVR_AllowReprojection_Bool = "allowInterleavedReprojection"; static const char * k_pch_SteamVR_ForceReprojection_Bool = "forceReprojection"; @@ -147,10 +148,10 @@ static const char * k_pch_SteamVR_StartCompositorFromAppLaunch_Bool = "startComp static const char * k_pch_SteamVR_StartDashboardFromAppLaunch_Bool = "startDashboardFromAppLaunch"; static const char * k_pch_SteamVR_StartOverlayAppsFromDashboard_Bool = "startOverlayAppsFromDashboard"; static const char * k_pch_SteamVR_EnableHomeApp = "enableHomeApp"; -static const char * k_pch_SteamVR_SetInitialDefaultHomeApp = "setInitialDefaultHomeApp"; static const char * k_pch_SteamVR_CycleBackgroundImageTimeSec_Int32 = "CycleBackgroundImageTimeSec"; static const char * k_pch_SteamVR_RetailDemo_Bool = "retailDemo"; static const char * k_pch_SteamVR_IpdOffset_Float = "ipdOffset"; +static const char * k_pch_SteamVR_AllowSupersampleFiltering_Bool = "allowSupersampleFiltering"; static const char * k_pch_Lighthouse_Section = "driver_lighthouse"; static const char * k_pch_Lighthouse_DisableIMU_Bool = "disableimu"; static const char * k_pch_Lighthouse_UseDisambiguation_String = "usedisambiguation"; @@ -190,6 +191,7 @@ static const char * k_pch_Perf_NotifyOnlyOnce_Bool = "warnOnlyOnce"; static const char * k_pch_Perf_AllowTimingStore_Bool = "allowTimingStore"; static const char * k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit"; static const char * k_pch_Perf_TestData_Float = "perfTestData"; +static const char * k_pch_Perf_LinuxGPUProfiling_Bool = "linuxGPUProfiling"; static const char * k_pch_CollisionBounds_Section = "collisionBounds"; static const char * k_pch_CollisionBounds_Style_Int32 = "CollisionBoundsStyle"; static const char * k_pch_CollisionBounds_GroundPerimeterOn_Bool = "CollisionBoundsGroundPerimeterOn"; @@ -223,6 +225,7 @@ static const char * k_pch_Power_TurnOffScreensTimeout_Float = "turnOffScreensTim static const char * k_pch_Power_TurnOffControllersTimeout_Float = "turnOffControllersTimeout"; static const char * k_pch_Power_ReturnToWatchdogTimeout_Float = "returnToWatchdogTimeout"; static const char * k_pch_Power_AutoLaunchSteamVROnButtonPress = "autoLaunchSteamVROnButtonPress"; +static const char * k_pch_Power_PauseCompositorOnStandby_Bool = "pauseCompositorOnStandby"; static const char * k_pch_Dashboard_Section = "dashboard"; static const char * k_pch_Dashboard_EnableDashboard_Bool = "enableDashboard"; static const char * k_pch_Dashboard_ArcadeMode_Bool = "arcadeMode"; @@ -230,6 +233,7 @@ static const char * k_pch_modelskin_Section = "modelskins"; static const char * k_pch_Driver_Enable_Bool = "enable"; static const char * IVRScreenshots_Version = "IVRScreenshots_001"; static const char * IVRResources_Version = "IVRResources_001"; +static const char * IVRDriverManager_Version = "IVRDriverManager_001"; // OpenVR Enums @@ -370,6 +374,10 @@ typedef enum ETrackedDeviceProperty ETrackedDeviceProperty_Prop_DisplayMCImageNumChannels_Int32 = 2040, ETrackedDeviceProperty_Prop_DisplayMCImageData_Binary = 2041, ETrackedDeviceProperty_Prop_SecondsFromPhotonsToVblank_Float = 2042, + ETrackedDeviceProperty_Prop_DriverDirectModeSendsVsyncEvents_Bool = 2043, + ETrackedDeviceProperty_Prop_DisplayDebugMode_Bool = 2044, + ETrackedDeviceProperty_Prop_GraphicsAdapterLuid_Uint64 = 2045, + ETrackedDeviceProperty_Prop_DriverProvidedChaperonePath_String = 2048, ETrackedDeviceProperty_Prop_AttachedDeviceId_String = 3000, ETrackedDeviceProperty_Prop_SupportedButtons_Uint64 = 3001, ETrackedDeviceProperty_Prop_Axis0Type_Int32 = 3002, @@ -459,6 +467,8 @@ typedef enum EVREventType EVREventType_VREvent_WatchdogWakeUpRequested = 109, EVREventType_VREvent_LensDistortionChanged = 110, EVREventType_VREvent_PropertyChanged = 111, + EVREventType_VREvent_WirelessDisconnect = 112, + EVREventType_VREvent_WirelessReconnect = 113, EVREventType_VREvent_ButtonPress = 200, EVREventType_VREvent_ButtonUnpress = 201, EVREventType_VREvent_ButtonTouch = 202, @@ -527,6 +537,7 @@ typedef enum EVREventType EVREventType_VREvent_ModelSkinSettingsHaveChanged = 853, EVREventType_VREvent_EnvironmentSettingsHaveChanged = 854, EVREventType_VREvent_PowerSettingsHaveChanged = 855, + EVREventType_VREvent_EnableHomeAppSettingsHaveChanged = 856, EVREventType_VREvent_StatusUpdate = 900, EVREventType_VREvent_MCImageUpdated = 1000, EVREventType_VREvent_FirmwareUpdateStarted = 1100, @@ -722,6 +733,8 @@ typedef enum EVRInitError EVRInitError_VRInitError_Init_WatchdogDisabledInSettings = 132, EVRInitError_VRInitError_Init_VRDashboardNotFound = 133, EVRInitError_VRInitError_Init_VRDashboardStartupFailed = 134, + EVRInitError_VRInitError_Init_VRHomeNotFound = 135, + EVRInitError_VRInitError_Init_VRHomeStartupFailed = 136, EVRInitError_VRInitError_Driver_Failed = 200, EVRInitError_VRInitError_Driver_Unknown = 201, EVRInitError_VRInitError_Driver_HmdUnknown = 202, @@ -748,6 +761,7 @@ typedef enum EVRInitError EVRInitError_VRInitError_Compositor_FirmwareRequiresUpdate = 402, EVRInitError_VRInitError_Compositor_OverlayInitFailed = 403, EVRInitError_VRInitError_Compositor_ScreenshotsInitFailed = 404, + EVRInitError_VRInitError_Compositor_UnableToCreateDevice = 405, EVRInitError_VRInitError_VendorSpecific_UnableToConnectToOculusRuntime = 1000, EVRInitError_VRInitError_VendorSpecific_HmdFound_CantOpenDevice = 1101, EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102, @@ -828,6 +842,7 @@ typedef enum EVRApplicationError EVRApplicationError_VRApplicationError_OldApplicationQuitting = 112, EVRApplicationError_VRApplicationError_TransitionAborted = 113, EVRApplicationError_VRApplicationError_IsTemplate = 114, + EVRApplicationError_VRApplicationError_SteamVRIsExiting = 115, EVRApplicationError_VRApplicationError_BufferTooSmall = 200, EVRApplicationError_VRApplicationError_PropertyNotSet = 201, EVRApplicationError_VRApplicationError_UnknownProperty = 202, @@ -850,6 +865,7 @@ typedef enum EVRApplicationProperty EVRApplicationProperty_VRApplicationProperty_IsTemplate_Bool = 61, EVRApplicationProperty_VRApplicationProperty_IsInstanced_Bool = 62, EVRApplicationProperty_VRApplicationProperty_IsInternal_Bool = 63, + EVRApplicationProperty_VRApplicationProperty_WantsCompositorPauseInStandby_Bool = 64, EVRApplicationProperty_VRApplicationProperty_LastLaunchTime_Uint64 = 70, } EVRApplicationProperty; @@ -899,6 +915,7 @@ typedef enum EVRCompositorError EVRCompositorError_VRCompositorError_SharedTexturesNotSupported = 106, EVRCompositorError_VRCompositorError_IndexOutOfRange = 107, EVRCompositorError_VRCompositorError_AlreadySubmitted = 108, + EVRCompositorError_VRCompositorError_InvalidBounds = 109, } EVRCompositorError; typedef enum VROverlayInputMethod @@ -1047,6 +1064,7 @@ typedef void * glSharedTextureHandle_t; typedef int32_t glInt_t; typedef uint32_t glUInt_t; typedef uint64_t SharedTextureHandle_t; +typedef uint32_t DriverId_t; typedef uint32_t TrackedDeviceIndex_t; typedef uint64_t PropertyContainerHandle_t; typedef uint32_t PropertyTypeTag_t; @@ -1503,6 +1521,7 @@ typedef struct COpenVRContext intptr_t m_pVRApplications; // class vr::IVRApplications * intptr_t m_pVRTrackedCamera; // class vr::IVRTrackedCamera * intptr_t m_pVRScreenshots; // class vr::IVRScreenshots * + intptr_t m_pVRDriverManager; // class vr::IVRDriverManager * } COpenVRContext; @@ -1560,6 +1579,7 @@ struct VR_IVRSystem_FnTable bool (OPENVR_FNTABLE_CALLTYPE *GetTimeSinceLastVsync)(float * pfSecondsSinceLastVsync, uint64_t * pulFrameCounter); int32_t (OPENVR_FNTABLE_CALLTYPE *GetD3D9AdapterIndex)(); void (OPENVR_FNTABLE_CALLTYPE *GetDXGIOutputInfo)(int32_t * pnAdapterIndex); + void (OPENVR_FNTABLE_CALLTYPE *GetOutputDevice)(uint64_t * pnDevice, ETextureType textureType); bool (OPENVR_FNTABLE_CALLTYPE *IsDisplayOnDesktop)(); bool (OPENVR_FNTABLE_CALLTYPE *SetDisplayVisibility)(bool bIsVisibleOnDesktop); void (OPENVR_FNTABLE_CALLTYPE *GetDeviceToAbsoluteTrackingPose)(ETrackingUniverseOrigin eOrigin, float fPredictedSecondsToPhotonsFromNow, struct TrackedDevicePose_t * pTrackedDevicePoseArray, uint32_t unTrackedDevicePoseArrayCount); @@ -1882,6 +1902,12 @@ struct VR_IVRResources_FnTable uint32_t (OPENVR_FNTABLE_CALLTYPE *GetResourceFullPath)(char * pchResourceName, char * pchResourceTypeDirectory, char * pchPathBuffer, uint32_t unBufferLen); }; +struct VR_IVRDriverManager_FnTable +{ + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetDriverCount)(); + uint32_t (OPENVR_FNTABLE_CALLTYPE *GetDriverName)(DriverId_t nDriver, char * pchValue, uint32_t unBufferSize); +}; + #if 0 // Global entry points diff --git a/examples/ThirdPartyLibs/openvr/headers/openvr_driver.h b/examples/ThirdPartyLibs/openvr/headers/openvr_driver.h index e0732a0f5..7e1d64596 100644 --- a/examples/ThirdPartyLibs/openvr/headers/openvr_driver.h +++ b/examples/ThirdPartyLibs/openvr/headers/openvr_driver.h @@ -143,6 +143,9 @@ enum ETrackingResult TrackingResult_Running_OutOfRange = 201, }; +typedef uint32_t DriverId_t; +static const uint32_t k_nDriverNone = 0xFFFFFFFF; + static const uint32_t k_unMaxDriverDebugResponseSize = 32768; /** Used to pass device IDs to API calls */ @@ -309,6 +312,10 @@ enum ETrackedDeviceProperty Prop_DisplayMCImageNumChannels_Int32 = 2040, Prop_DisplayMCImageData_Binary = 2041, Prop_SecondsFromPhotonsToVblank_Float = 2042, + Prop_DriverDirectModeSendsVsyncEvents_Bool = 2043, + Prop_DisplayDebugMode_Bool = 2044, + Prop_GraphicsAdapterLuid_Uint64 = 2045, + Prop_DriverProvidedChaperonePath_String = 2048, // Properties that are unique to TrackedDeviceClass_Controller Prop_AttachedDeviceId_String = 3000, @@ -330,15 +337,15 @@ enum ETrackedDeviceProperty Prop_ModeLabel_String = 4006, // Properties that are used for user interface like icons names - Prop_IconPathName_String = 5000, // usually a directory named "icons" - Prop_NamedIconPathDeviceOff_String = 5001, // PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others - Prop_NamedIconPathDeviceSearching_String = 5002, // PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others - Prop_NamedIconPathDeviceSearchingAlert_String = 5003, // PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others - Prop_NamedIconPathDeviceReady_String = 5004, // PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others - Prop_NamedIconPathDeviceReadyAlert_String = 5005, // PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others - Prop_NamedIconPathDeviceNotReady_String = 5006, // PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others - Prop_NamedIconPathDeviceStandby_String = 5007, // PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others - Prop_NamedIconPathDeviceAlertLow_String = 5008, // PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_IconPathName_String = 5000, // DEPRECATED. Value not referenced. Now expected to be part of icon path properties. + Prop_NamedIconPathDeviceOff_String = 5001, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceSearching_String = 5002, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceSearchingAlert_String = 5003, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceReady_String = 5004, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceReadyAlert_String = 5005, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceNotReady_String = 5006, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceStandby_String = 5007, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others + Prop_NamedIconPathDeviceAlertLow_String = 5008, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others // Properties that are used by helpers, but are opaque to applications Prop_DisplayHiddenArea_Binary_Start = 5100, @@ -458,6 +465,8 @@ enum EVREventType VREvent_WatchdogWakeUpRequested = 109, VREvent_LensDistortionChanged = 110, VREvent_PropertyChanged = 111, + VREvent_WirelessDisconnect = 112, + VREvent_WirelessReconnect = 113, VREvent_ButtonPress = 200, // data is controller VREvent_ButtonUnpress = 201, // data is controller @@ -539,6 +548,7 @@ enum EVREventType VREvent_ModelSkinSettingsHaveChanged = 853, VREvent_EnvironmentSettingsHaveChanged = 854, VREvent_PowerSettingsHaveChanged = 855, + VREvent_EnableHomeAppSettingsHaveChanged = 856, VREvent_StatusUpdate = 900, @@ -1044,6 +1054,8 @@ enum EVRInitError VRInitError_Init_WatchdogDisabledInSettings = 132, VRInitError_Init_VRDashboardNotFound = 133, VRInitError_Init_VRDashboardStartupFailed = 134, + VRInitError_Init_VRHomeNotFound = 135, + VRInitError_Init_VRHomeStartupFailed = 136, VRInitError_Driver_Failed = 200, VRInitError_Driver_Unknown = 201, @@ -1074,6 +1086,7 @@ enum EVRInitError VRInitError_Compositor_FirmwareRequiresUpdate = 402, VRInitError_Compositor_OverlayInitFailed = 403, VRInitError_Compositor_ScreenshotsInitFailed = 404, + VRInitError_Compositor_UnableToCreateDevice = 405, VRInitError_VendorSpecific_UnableToConnectToOculusRuntime = 1000, @@ -1374,7 +1387,7 @@ namespace vr static const char * const k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees"; static const char * const k_pch_SteamVR_BaseStationPowerManagement_Bool = "basestationPowerManagement"; static const char * const k_pch_SteamVR_NeverKillProcesses_Bool = "neverKillProcesses"; - static const char * const k_pch_SteamVR_RenderTargetMultiplier_Float = "renderTargetMultiplier"; + static const char * const k_pch_SteamVR_SupersampleScale_Float = "supersampleScale"; static const char * const k_pch_SteamVR_AllowAsyncReprojection_Bool = "allowAsyncReprojection"; static const char * const k_pch_SteamVR_AllowReprojection_Bool = "allowInterleavedReprojection"; static const char * const k_pch_SteamVR_ForceReprojection_Bool = "forceReprojection"; @@ -1387,10 +1400,10 @@ namespace vr static const char * const k_pch_SteamVR_StartDashboardFromAppLaunch_Bool = "startDashboardFromAppLaunch"; static const char * const k_pch_SteamVR_StartOverlayAppsFromDashboard_Bool = "startOverlayAppsFromDashboard"; static const char * const k_pch_SteamVR_EnableHomeApp = "enableHomeApp"; - static const char * const k_pch_SteamVR_SetInitialDefaultHomeApp = "setInitialDefaultHomeApp"; static const char * const k_pch_SteamVR_CycleBackgroundImageTimeSec_Int32 = "CycleBackgroundImageTimeSec"; static const char * const k_pch_SteamVR_RetailDemo_Bool = "retailDemo"; static const char * const k_pch_SteamVR_IpdOffset_Float = "ipdOffset"; + static const char * const k_pch_SteamVR_AllowSupersampleFiltering_Bool = "allowSupersampleFiltering"; //----------------------------------------------------------------------------- // lighthouse keys @@ -1448,6 +1461,7 @@ namespace vr static const char * const k_pch_Perf_AllowTimingStore_Bool = "allowTimingStore"; static const char * const k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit"; static const char * const k_pch_Perf_TestData_Float = "perfTestData"; + static const char * const k_pch_Perf_LinuxGPUProfiling_Bool = "linuxGPUProfiling"; //----------------------------------------------------------------------------- // collision bounds keys @@ -1493,6 +1507,7 @@ namespace vr static const char * const k_pch_Power_TurnOffControllersTimeout_Float = "turnOffControllersTimeout"; static const char * const k_pch_Power_ReturnToWatchdogTimeout_Float = "returnToWatchdogTimeout"; static const char * const k_pch_Power_AutoLaunchSteamVROnButtonPress = "autoLaunchSteamVROnButtonPress"; + static const char * const k_pch_Power_PauseCompositorOnStandby_Bool = "pauseCompositorOnStandby"; //----------------------------------------------------------------------------- // dashboard keys @@ -2278,6 +2293,9 @@ public: * poses across different drivers. Poses are indexed by their device id, and their associated driver and * other properties can be looked up via IVRProperties. */ virtual void GetRawTrackedDevicePoses( float fPredictedSecondsFromNow, TrackedDevicePose_t *pTrackedDevicePoseArray, uint32_t unTrackedDevicePoseArrayCount ) = 0; + + /** Notifies the server that a tracked device's display component transforms have been updated. */ + virtual void TrackedDeviceDisplayTransformUpdated( uint32_t unWhichDevice, HmdMatrix34_t eyeToHeadLeft, HmdMatrix34_t eyeToHeadRight ) = 0; }; static const char *IVRServerDriverHost_Version = "IVRServerDriverHost_004"; @@ -2385,6 +2403,49 @@ namespace vr } +// ivrresources.h +namespace vr +{ + +class IVRResources +{ +public: + + // ------------------------------------ + // Shared Resource Methods + // ------------------------------------ + + /** Loads the specified resource into the provided buffer if large enough. + * Returns the size in bytes of the buffer required to hold the specified resource. */ + virtual uint32_t LoadSharedResource( const char *pchResourceName, char *pchBuffer, uint32_t unBufferLen ) = 0; + + /** Provides the full path to the specified resource. Resource names can include named directories for + * drivers and other things, and this resolves all of those and returns the actual physical path. + * pchResourceTypeDirectory is the subdirectory of resources to look in. */ + virtual uint32_t GetResourceFullPath( const char *pchResourceName, const char *pchResourceTypeDirectory, char *pchPathBuffer, uint32_t unBufferLen ) = 0; +}; + +static const char * const IVRResources_Version = "IVRResources_001"; + + +} +// ivrdrivermanager.h +namespace vr +{ + +class IVRDriverManager +{ +public: + virtual uint32_t GetDriverCount() const = 0; + + /** Returns the length of the number of bytes necessary to hold this string including the trailing null. */ + virtual uint32_t GetDriverName( vr::DriverId_t nDriver, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize ) = 0; +}; + +static const char * const IVRDriverManager_Version = "IVRDriverManager_001"; + +} // namespace vr + @@ -2402,6 +2463,8 @@ namespace vr IServerTrackedDeviceProvider_Version, IVRWatchdogProvider_Version, IVRVirtualDisplay_Version, + IVRDriverManager_Version, + IVRResources_Version, nullptr }; @@ -2489,14 +2552,37 @@ namespace vr return VRDriverContext()->GetDriverHandle(); } + IVRDriverManager *VRDriverManager() + { + if ( !m_pVRDriverManager ) + { + EVRInitError eError; + m_pVRDriverManager = (IVRDriverManager *)VRDriverContext()->GetGenericInterface( IVRDriverManager_Version, &eError ); + } + return m_pVRDriverManager; + } + + IVRResources *VRResources() + { + if ( !m_pVRResources ) + { + EVRInitError eError; + m_pVRResources = (IVRResources *)VRDriverContext()->GetGenericInterface( IVRResources_Version, &eError ); + } + return m_pVRResources; + } + private: - IVRSettings *m_pVRSettings; - IVRProperties *m_pVRProperties; - CVRPropertyHelpers m_propertyHelpers; + CVRPropertyHelpers m_propertyHelpers; CVRHiddenAreaHelpers m_hiddenAreaHelpers; - IVRServerDriverHost *m_pVRServerDriverHost; - IVRWatchdogHost *m_pVRWatchdogHost; - IVRDriverLog *m_pVRDriverLog; + + IVRSettings *m_pVRSettings; + IVRProperties *m_pVRProperties; + IVRServerDriverHost *m_pVRServerDriverHost; + IVRWatchdogHost *m_pVRWatchdogHost; + IVRDriverLog *m_pVRDriverLog; + IVRDriverManager *m_pVRDriverManager; + IVRResources *m_pVRResources; }; inline COpenVRDriverContext &OpenVRInternal_ModuleServerDriverContext() @@ -2513,6 +2599,9 @@ namespace vr inline IVRServerDriverHost *VR_CALLTYPE VRServerDriverHost() { return OpenVRInternal_ModuleServerDriverContext().VRServerDriverHost(); } inline IVRWatchdogHost *VR_CALLTYPE VRWatchdogHost() { return OpenVRInternal_ModuleServerDriverContext().VRWatchdogHost(); } inline DriverHandle_t VR_CALLTYPE VRDriverHandle() { return OpenVRInternal_ModuleServerDriverContext().VRDriverHandle(); } + inline IVRDriverManager *VR_CALLTYPE VRDriverManager() { return OpenVRInternal_ModuleServerDriverContext().VRDriverManager(); } + inline IVRResources *VR_CALLTYPE VRResources() { return OpenVRInternal_ModuleServerDriverContext().VRResources(); } + inline void COpenVRDriverContext::Clear() { m_pVRSettings = nullptr; @@ -2520,6 +2609,8 @@ namespace vr m_pVRServerDriverHost = nullptr; m_pVRDriverLog = nullptr; m_pVRWatchdogHost = nullptr; + m_pVRDriverManager = nullptr; + m_pVRResources = nullptr; } inline EVRInitError COpenVRDriverContext::InitServer() @@ -2528,7 +2619,9 @@ namespace vr if ( !VRServerDriverHost() || !VRSettings() || !VRProperties() - || !VRDriverLog() ) + || !VRDriverLog() + || !VRDriverManager() + || !VRResources() ) return VRInitError_Init_InterfaceNotFound; return VRInitError_None; } diff --git a/examples/ThirdPartyLibs/openvr/lib/linux32/libopenvr_api.so b/examples/ThirdPartyLibs/openvr/lib/linux32/libopenvr_api.so old mode 100644 new mode 100755 index ccfeabae6..5d8b92e62 Binary files a/examples/ThirdPartyLibs/openvr/lib/linux32/libopenvr_api.so and b/examples/ThirdPartyLibs/openvr/lib/linux32/libopenvr_api.so differ diff --git a/examples/ThirdPartyLibs/openvr/lib/linux64/libopenvr_api.so b/examples/ThirdPartyLibs/openvr/lib/linux64/libopenvr_api.so index d83a610fc..3dd79ce2e 100644 Binary files a/examples/ThirdPartyLibs/openvr/lib/linux64/libopenvr_api.so and b/examples/ThirdPartyLibs/openvr/lib/linux64/libopenvr_api.so differ diff --git a/examples/ThirdPartyLibs/openvr/lib/win32/openvr_api.lib b/examples/ThirdPartyLibs/openvr/lib/win32/openvr_api.lib index 130bad031..bf79ff397 100644 Binary files a/examples/ThirdPartyLibs/openvr/lib/win32/openvr_api.lib and b/examples/ThirdPartyLibs/openvr/lib/win32/openvr_api.lib differ diff --git a/examples/ThirdPartyLibs/openvr/lib/win64/openvr_api.lib b/examples/ThirdPartyLibs/openvr/lib/win64/openvr_api.lib index e8d9abf0e..0afa05caf 100644 Binary files a/examples/ThirdPartyLibs/openvr/lib/win64/openvr_api.lib and b/examples/ThirdPartyLibs/openvr/lib/win64/openvr_api.lib differ diff --git a/examples/ThirdPartyLibs/openvr/samples/shared/pathtools.cpp b/examples/ThirdPartyLibs/openvr/samples/shared/pathtools.cpp index 2ea352406..da2e8ce78 100644 --- a/examples/ThirdPartyLibs/openvr/samples/shared/pathtools.cpp +++ b/examples/ThirdPartyLibs/openvr/samples/shared/pathtools.cpp @@ -4,11 +4,12 @@ #include "pathtools.h" #if defined( _WIN32) -#include +#include #include -#include -#include -#include +#include +#include +#include +#include #undef GetEnvironmentVariable #else diff --git a/examples/ThirdPartyLibs/openvr/samples/shared/strtools.h b/examples/ThirdPartyLibs/openvr/samples/shared/strtools.h index b69ef15dc..57e62714d 100644 --- a/examples/ThirdPartyLibs/openvr/samples/shared/strtools.h +++ b/examples/ThirdPartyLibs/openvr/samples/shared/strtools.h @@ -37,13 +37,15 @@ std::string StringToLower( const std::string & sString ); // we stricmp (from WIN) but it isn't POSIX - OSX/LINUX have strcasecmp so just inline bridge to it #if defined( OSX ) || defined( LINUX ) -#include -inline int stricmp(const char *pStr1, const char *pStr2) { return strcasecmp(pStr1,pStr2); } -#ifndef _stricmp -#define _stricmp stricmp +#ifndef __THROW // If __THROW is defined, these will clash with throw() versions on gcc + #include + inline int stricmp(const char *pStr1, const char *pStr2) { return strcasecmp(pStr1,pStr2); } + #ifndef _stricmp + #define _stricmp stricmp + #endif + inline int strnicmp( const char *pStr1, const char *pStr2, size_t unBufferLen ) { return strncasecmp( pStr1,pStr2, unBufferLen ); } + #define _strnicmp strnicmp #endif -inline int strnicmp( const char *pStr1, const char *pStr2, size_t unBufferLen ) { return strncasecmp( pStr1,pStr2, unBufferLen ); } -#define _strnicmp strnicmp #ifndef _vsnprintf_s #define _vsnprintf_s vsnprintf @@ -51,7 +53,7 @@ inline int strnicmp( const char *pStr1, const char *pStr2, size_t unBufferLen ) #define _TRUNCATE ((size_t)-1) -#endif +#endif // defined( OSX ) || defined( LINUX ) #if defined( OSX ) // behaviors ensure NULL-termination at least as well as _TRUNCATE does, but diff --git a/examples/OpenGLWindow/stb_image_write.h b/examples/ThirdPartyLibs/stb_image/stb_image_write.h similarity index 100% rename from examples/OpenGLWindow/stb_image_write.h rename to examples/ThirdPartyLibs/stb_image/stb_image_write.h diff --git a/examples/OpenGLWindow/stb_truetype.h b/examples/ThirdPartyLibs/stb_image/stb_truetype.h similarity index 100% rename from examples/OpenGLWindow/stb_truetype.h rename to examples/ThirdPartyLibs/stb_image/stb_truetype.h diff --git a/examples/TinyRenderer/TinyRenderer.cpp b/examples/TinyRenderer/TinyRenderer.cpp index db7bcbb35..a2ea07307 100644 --- a/examples/TinyRenderer/TinyRenderer.cpp +++ b/examples/TinyRenderer/TinyRenderer.cpp @@ -38,6 +38,9 @@ struct DepthShader : public IShader { m_lightModelView(lightModelView), m_lightDistance(lightDistance) { + m_nearPlane = m_projectionMat.col(3)[2]/(m_projectionMat.col(2)[2]-1); + m_farPlane = m_projectionMat.col(3)[2]/(m_projectionMat.col(2)[2]+1); + m_invModelMat = m_modelMat.invert_transpose(); } virtual Vec4f vertex(int iface, int nthvert) { @@ -91,7 +94,8 @@ struct Shader : public IShader { mat<4,3,float> varying_tri_light_view; mat<3,3,float> varying_nrm; // normal per vertex to be interpolated by FS mat<4,3,float> world_tri; // model triangle coordinates in the world space used for backface culling, written by VS - + + Shader(Model* model, Vec3f light_dir_local, Vec3f light_color, Matrix& modelView, Matrix& lightModelView, Matrix& projectionMat, Matrix& modelMat, Matrix& viewportMat, Vec3f localScaling, const Vec4f& colorRGBA, int width, int height, b3AlignedObjectArray* shadowBuffer, float ambient_coefficient=0.6, float diffuse_coefficient=0.35, float specular_coefficient=0.05) :m_model(model), m_light_dir_local(light_dir_local), @@ -112,12 +116,15 @@ struct Shader : public IShader { m_height(height) { + m_nearPlane = m_projectionMat.col(3)[2]/(m_projectionMat.col(2)[2]-1); + m_farPlane = m_projectionMat.col(3)[2]/(m_projectionMat.col(2)[2]+1); + //printf("near=%f, far=%f\n", m_nearPlane, m_farPlane); m_invModelMat = m_modelMat.invert_transpose(); m_projectionModelViewMat = m_projectionMat*m_modelView1; m_projectionLightViewMat = m_projectionMat*m_lightModelView; } virtual Vec4f vertex(int iface, int nthvert) { - B3_PROFILE("vertex"); + //B3_PROFILE("vertex"); Vec2f uv = m_model->uv(iface, nthvert); varying_uv.set_col(nthvert, uv); varying_nrm.set_col(nthvert, proj<3>(m_invModelMat*embed<4>(m_model->normal(iface, nthvert), 0.f))); @@ -135,7 +142,7 @@ struct Shader : public IShader { } virtual bool fragment(Vec3f bar, TGAColor &color) { - B3_PROFILE("fragment"); + //B3_PROFILE("fragment"); Vec4f p = m_viewportMat*(varying_tri_light_view*bar); float depth = p[2]; p = p/p[3]; @@ -478,6 +485,7 @@ static bool clipTriangleAgainstNearplane(const mat<4,3,float>& triangleIn, b3Ali void TinyRenderer::renderObject(TinyRenderObjectData& renderData) { + B3_PROFILE("renderObject"); int width = renderData.m_rgbColorBuffer.get_width(); int height = renderData.m_rgbColorBuffer.get_height(); @@ -510,10 +518,11 @@ void TinyRenderer::renderObject(TinyRenderObjectData& renderData) Shader shader(model, light_dir_local, light_color, modelViewMatrix, lightModelViewMatrix, renderData.m_projectionMatrix,renderData.m_modelMatrix, renderData.m_viewportMatrix, localScaling, model->getColorRGBA(), width, height, shadowBufferPtr, renderData.m_lightAmbientCoeff, renderData.m_lightDiffuseCoeff, renderData.m_lightSpecularCoeff); - + { + B3_PROFILE("face"); + for (int i=0; infaces(); i++) { - B3_PROFILE("face"); for (int j=0; j<3; j++) { shader.vertex(i, j); } @@ -545,6 +554,7 @@ void TinyRenderer::renderObject(TinyRenderObjectData& renderData) triangle(shader.varying_tri, shader, frame, &zbuffer[0], segmentationMaskBufferPtr, renderData.m_viewportMatrix, renderData.m_objectIndex); } } + } } } @@ -576,7 +586,6 @@ void TinyRenderer::renderObjectDepth(TinyRenderObjectData& renderData) Vec3f localScaling(renderData.m_localScaling[0],renderData.m_localScaling[1],renderData.m_localScaling[2]); DepthShader shader(model, lightModelViewMatrix, lightViewProjectionMatrix,renderData.m_modelMatrix, localScaling, light_distance); - for (int i=0; infaces(); i++) { for (int j=0; j<3; j++) { diff --git a/examples/TinyRenderer/our_gl.cpp b/examples/TinyRenderer/our_gl.cpp index ea570386d..a47bfe2cb 100644 --- a/examples/TinyRenderer/our_gl.cpp +++ b/examples/TinyRenderer/our_gl.cpp @@ -180,6 +180,11 @@ void triangle(mat<4,3,float> &clipc, IShader &shader, TGAImage &image, float *zb zbuffer[P.x+P.y*image.get_width()]>frag_depth) continue; bool discard = shader.fragment(bc_clip, color); + if (frag_depth<-shader.m_farPlane) + discard=true; + if (frag_depth>-shader.m_nearPlane) + discard=true; + if (!discard) { zbuffer[P.x+P.y*image.get_width()] = frag_depth; if (segmentationMaskBuffer) diff --git a/examples/TinyRenderer/our_gl.h b/examples/TinyRenderer/our_gl.h index 17403764c..6a18cf1ae 100644 --- a/examples/TinyRenderer/our_gl.h +++ b/examples/TinyRenderer/our_gl.h @@ -11,6 +11,8 @@ Matrix projection(float coeff=0.f); // coeff = -1/c Matrix lookat(Vec3f eye, Vec3f center, Vec3f up); struct IShader { + float m_nearPlane; + float m_farPlane; virtual ~IShader(); virtual Vec4f vertex(int iface, int nthvert) = 0; virtual bool fragment(Vec3f bar, TGAColor &color) = 0; diff --git a/examples/Tutorial/Dof6ConstraintTutorial.cpp b/examples/Tutorial/Dof6ConstraintTutorial.cpp index 7e3cfcf64..125fd4e61 100644 --- a/examples/Tutorial/Dof6ConstraintTutorial.cpp +++ b/examples/Tutorial/Dof6ConstraintTutorial.cpp @@ -56,10 +56,10 @@ struct Dof6ConstraintTutorial : public CommonRigidBodyBase virtual void resetCamera() { float dist = 5; - float pitch = 722; - float yaw = 35; + float pitch = -35; + float yaw = 722; float targetPos[3]={4,2,-11}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } }; diff --git a/examples/Tutorial/Tutorial.cpp b/examples/Tutorial/Tutorial.cpp index 59888e875..8d43daac2 100644 --- a/examples/Tutorial/Tutorial.cpp +++ b/examples/Tutorial/Tutorial.cpp @@ -300,7 +300,6 @@ public: int numBodies = 1; m_app->setUpAxis(1); - m_app->m_renderer->enableBlend(true); switch (m_tutorialIndex) { @@ -405,7 +404,7 @@ public: { int width,height,n; - const char* filename = "data/cube.png"; + const char* filename = "data/checker_huge.gif"; const unsigned char* image=0; const char* prefix[]={"./","../","../../","../../../","../../../../"}; @@ -426,15 +425,23 @@ public: } // int boxId = m_app->registerCubeShape(1,1,1,textureIndex); - int boxId = m_app->registerGraphicsUnitSphereShape(SPHERE_LOD_HIGH, textureIndex); - b3Vector4 color = b3MakeVector4(1,1,1,0.8); + int sphereTransparent = m_app->registerGraphicsUnitSphereShape(SPHERE_LOD_HIGH, textureIndex); + int sphereOpaque= m_app->registerGraphicsUnitSphereShape(SPHERE_LOD_HIGH, textureIndex); + b3Vector3 scaling = b3MakeVector3(SPHERE_RADIUS,SPHERE_RADIUS,SPHERE_RADIUS); for (int i=0;im_collisionShape.m_sphere.m_radius = SPHERE_RADIUS; m_bodies[i]->m_collisionShape.m_type = LW_SPHERE_TYPE; - m_bodies[i]->m_graphicsIndex = m_app->m_renderer->registerGraphicsInstance(boxId,m_bodies[i]->m_worldPose.m_position, m_bodies[i]->m_worldPose.m_orientation,color,scaling); + m_bodies[i]->m_graphicsIndex = m_app->m_renderer->registerGraphicsInstance(gfxShape,m_bodies[i]->m_worldPose.m_position, m_bodies[i]->m_worldPose.m_orientation,color,scaling); m_app->m_renderer->writeSingleInstanceTransformToCPU(m_bodies[i]->m_worldPose.m_position, m_bodies[i]->m_worldPose.m_orientation, m_bodies[i]->m_graphicsIndex); } } @@ -467,7 +474,6 @@ public: m_timeSeriesCanvas0 = 0; m_timeSeriesCanvas1 = 0; - m_app->m_renderer->enableBlend(false); } @@ -614,8 +620,8 @@ public: virtual void resetCamera() { float dist = 10.5; - float pitch = 136; - float yaw = 32; + float pitch = -32; + float yaw = 136; float targetPos[3]={0,0,0}; if (m_app->m_renderer && m_app->m_renderer->getActiveCamera()) { diff --git a/examples/Utils/ChromeTraceUtil.cpp b/examples/Utils/ChromeTraceUtil.cpp index 80139719f..fefa9171c 100644 --- a/examples/Utils/ChromeTraceUtil.cpp +++ b/examples/Utils/ChromeTraceUtil.cpp @@ -184,7 +184,7 @@ void MyEnterProfileZoneFunc(const char* msg) return; #ifndef BT_NO_PROFILE int threadId = btQuickprofGetCurrentThreadIndex2(); - if (threadId<0) + if (threadId<0 || threadId >= BT_QUICKPROF_MAX_THREAD_COUNT) return; if (gStackDepths[threadId] >= MAX_NESTING) @@ -208,8 +208,8 @@ void MyLeaveProfileZoneFunc() return; #ifndef BT_NO_PROFILE int threadId = btQuickprofGetCurrentThreadIndex2(); - if (threadId<0) - return; + if (threadId<0 || threadId >= BT_QUICKPROF_MAX_THREAD_COUNT) + return; if (gStackDepths[threadId] <= 0) { @@ -250,18 +250,25 @@ void b3ChromeUtilsStopTimingsAndWriteJsonFile(const char* fileNamePrefix) static int fileCounter = 0; sprintf(fileName,"%s_%d.json",fileNamePrefix, fileCounter++); gTimingFile = fopen(fileName,"w"); - fprintf(gTimingFile,"{\"traceEvents\":[\n"); - //dump the content to file - for (int i=0;imStartTime.QuadPart = 0; +#else + #ifdef __CELLOS_LV2__ + m_data->mStartTime = 0; + #else + m_data->mStartTime = (struct timeval){0}; + #endif +#endif + + } else + { #ifdef B3_USE_WINDOWS_TIMERS QueryPerformanceCounter(&m_data->mStartTime); - m_data->mStartTick = GetTickCount(); #else #ifdef __CELLOS_LV2__ @@ -105,6 +117,7 @@ void b3Clock::reset() gettimeofday(&m_data->mStartTime, 0); #endif #endif + } } /// Returns the time in ms since the last call to reset or since diff --git a/examples/Utils/b3Clock.h b/examples/Utils/b3Clock.h index 10a36686a..1cdd28847 100644 --- a/examples/Utils/b3Clock.h +++ b/examples/Utils/b3Clock.h @@ -13,8 +13,8 @@ public: ~b3Clock(); - /// Resets the initial reference time. - void reset(); + /// Resets the initial reference time. If zeroReference is true, will set reference to absolute 0. + void reset(bool zeroReference=false); /// Returns the time in ms since the last call to reset or since /// the b3Clock was created. diff --git a/examples/Utils/b3ResourcePath.cpp b/examples/Utils/b3ResourcePath.cpp index bc50ef5cb..e95aa9569 100644 --- a/examples/Utils/b3ResourcePath.cpp +++ b/examples/Utils/b3ResourcePath.cpp @@ -53,11 +53,31 @@ int b3ResourcePath::getExePath(char* path, int maxPathLenInBytes) return numBytes; } -int b3ResourcePath::findResourcePath(const char* resourceName, char* resourcePath, int resourcePathMaxNumBytes) +struct TempResourcePath +{ + char* m_path; + TempResourcePath(int len) + { + m_path = (char*)malloc(len); + memset(m_path,0,len); + } + virtual ~TempResourcePath() + { + free(m_path); + } +}; + +int b3ResourcePath::findResourcePath(const char* resourceName, char* resourcePathOut, int resourcePathMaxNumBytes) { //first find in a resource/ location, then in various folders within 'data' using b3FileUtils char exePath[B3_MAX_EXE_PATH_LEN]; + bool res = b3FileUtils::findFile(resourceName, resourcePathOut, resourcePathMaxNumBytes); + if (res) + { + return strlen(resourcePathOut); + } + int l = b3ResourcePath::getExePath(exePath, B3_MAX_EXE_PATH_LEN); if (l) { @@ -66,33 +86,31 @@ int b3ResourcePath::findResourcePath(const char* resourceName, char* resourcePat int exeNamePos = b3FileUtils::extractPath(exePath,pathToExe,B3_MAX_EXE_PATH_LEN); if (exeNamePos) { - sprintf(resourcePath,"%s../data/%s",pathToExe,resourceName); + TempResourcePath tmpPath(resourcePathMaxNumBytes+1024); + char* resourcePathIn = tmpPath.m_path; + sprintf(resourcePathIn,"%s../data/%s",pathToExe,resourceName); //printf("try resource at %s\n", resourcePath); - if (b3FileUtils::findFile(resourcePath, resourcePath, resourcePathMaxNumBytes)) + if (b3FileUtils::findFile(resourcePathIn, resourcePathOut, resourcePathMaxNumBytes)) { - return strlen(resourcePath); + return strlen(resourcePathOut); } - sprintf(resourcePath,"%s../resources/%s/%s",pathToExe,&exePath[exeNamePos],resourceName); + sprintf(resourcePathIn,"%s../resources/%s/%s",pathToExe,&exePath[exeNamePos],resourceName); //printf("try resource at %s\n", resourcePath); - if (b3FileUtils::findFile(resourcePath, resourcePath, resourcePathMaxNumBytes)) + if (b3FileUtils::findFile(resourcePathIn, resourcePathOut, resourcePathMaxNumBytes)) { - return strlen(resourcePath); + return strlen(resourcePathOut); } - sprintf(resourcePath,"%s.runfiles/google3/third_party/bullet/data/%s",exePath,resourceName); + sprintf(resourcePathIn,"%s.runfiles/google3/third_party/bullet/data/%s",exePath,resourceName); //printf("try resource at %s\n", resourcePath); - if (b3FileUtils::findFile(resourcePath, resourcePath, resourcePathMaxNumBytes)) + if (b3FileUtils::findFile(resourcePathIn, resourcePathOut, resourcePathMaxNumBytes)) { - return strlen(resourcePath); + return strlen(resourcePathOut); } } } - bool res = b3FileUtils::findFile(resourceName, resourcePath, resourcePathMaxNumBytes); - if (res) - { - return strlen(resourcePath); - } + return 0; } diff --git a/examples/Vehicles/Hinge2Vehicle.cpp b/examples/Vehicles/Hinge2Vehicle.cpp index 6ea9a179a..a7ecb07af 100644 --- a/examples/Vehicles/Hinge2Vehicle.cpp +++ b/examples/Vehicles/Hinge2Vehicle.cpp @@ -121,10 +121,10 @@ class Hinge2Vehicle : public CommonRigidBodyBase virtual void resetCamera() { float dist = 8; - float pitch = -45; - float yaw = 32; + float pitch = -32; + float yaw = -45; float targetPos[3]={-0.33,-0.72,4.5}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } /*static DemoApplication* Create() diff --git a/examples/VoronoiFracture/VoronoiFractureDemo.cpp b/examples/VoronoiFracture/VoronoiFractureDemo.cpp index e9d097bb4..5e7212919 100644 --- a/examples/VoronoiFracture/VoronoiFractureDemo.cpp +++ b/examples/VoronoiFracture/VoronoiFractureDemo.cpp @@ -108,10 +108,10 @@ class VoronoiFractureDemo : public CommonRigidBodyBase virtual void resetCamera() { float dist = 18; - float pitch = 129; - float yaw = 30; + float pitch = -30; + float yaw = 129; float targetPos[3]={-1.5,4.7,-2}; - m_guiHelper->resetCamera(dist,pitch,yaw,targetPos[0],targetPos[1],targetPos[2]); + m_guiHelper->resetCamera(dist,yaw,pitch,targetPos[0],targetPos[1],targetPos[2]); } diff --git a/examples/pybullet/CMakeLists.txt b/examples/pybullet/CMakeLists.txt index f828ad7ea..c2f9fd49f 100644 --- a/examples/pybullet/CMakeLists.txt +++ b/examples/pybullet/CMakeLists.txt @@ -33,6 +33,7 @@ SET(pybullet_SRCS ../../examples/SharedMemory/PhysicsServer.cpp ../../examples/SharedMemory/PhysicsServer.h ../../examples/SharedMemory/PhysicsServerExample.cpp + ../../examples/SharedMemory/PhysicsServerExampleBullet2.cpp ../../examples/SharedMemory/SharedMemoryInProcessPhysicsC_API.cpp ../../examples/SharedMemory/PhysicsServerSharedMemory.cpp ../../examples/SharedMemory/PhysicsServerSharedMemory.h diff --git a/examples/pybullet/examples/changeTexture.py b/examples/pybullet/examples/changeTexture.py new file mode 100644 index 000000000..c9e592f88 --- /dev/null +++ b/examples/pybullet/examples/changeTexture.py @@ -0,0 +1,43 @@ +import pybullet as p +import time +p.connect(p.GUI) +planeUidA = p.loadURDF("plane_transparent.urdf",[0,0,0]) +planeUid = p.loadURDF("plane_transparent.urdf",[0,0,-1]) + +texUid = p.loadTexture("tex256.png") + +p.changeVisualShape(planeUidA,-1,rgbaColor=[1,1,1,0.5]) +p.changeVisualShape(planeUid,-1,rgbaColor=[1,1,1,0.5]) +p.changeVisualShape(planeUid,-1, textureUniqueId = texUid) + +width = 256 +height = 256 +pixels = [255]*width*height*3 +colorR = 0 +colorG = 0 +colorB = 0 + + +#p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,0) +#p.configureDebugVisualizer(p.COV_ENABLE_GUI,0) + +blue=0 +logId = p.startStateLogging(p.STATE_LOGGING_PROFILE_TIMINGS, "renderbench.json") +for i in range (100000): + p.stepSimulation() + for i in range (width): + for j in range(height): + pixels[(i+j*width)*3+0]=i + pixels[(i+j*width)*3+1]=(j+blue)%256 + pixels[(i+j*width)*3+2]=blue + blue=blue+1 + p.changeTexture(texUid, pixels,width,height) + start = time.time() + p.getCameraImage(300,300,renderer=p.ER_BULLET_HARDWARE_OPENGL) + end = time.time() + print("rendering duraction") + print(end-start) +p.stopStateLogging(logId) +#p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,1) +#p.configureDebugVisualizer(p.COV_ENABLE_GUI,1) + diff --git a/examples/pybullet/examples/createMultiBodyLinks.py b/examples/pybullet/examples/createMultiBodyLinks.py new file mode 100644 index 000000000..bdb7f6739 --- /dev/null +++ b/examples/pybullet/examples/createMultiBodyLinks.py @@ -0,0 +1,56 @@ +import pybullet as p +import time + + +p.connect(p.GUI) +p.createCollisionShape(p.GEOM_PLANE) +p.createMultiBody(0,0) + +sphereRadius = 0.05 +colSphereId = p.createCollisionShape(p.GEOM_SPHERE,radius=sphereRadius) +colBoxId = p.createCollisionShape(p.GEOM_BOX,halfExtents=[sphereRadius,sphereRadius,sphereRadius]) + +mass = 1 +visualShapeId = -1 + + + +link_Masses=[1] +linkCollisionShapeIndices=[colBoxId] +linkVisualShapeIndices=[-1] +linkPositions=[[0,0,0.11]] +linkOrientations=[[0,0,0,1]] +linkInertialFramePositions=[[0,0,0]] +linkInertialFrameOrientations=[[0,0,0,1]] +indices=[0] +jointTypes=[p.JOINT_REVOLUTE] +axis=[[0,0,1]] + +for i in range (3): + for j in range (3): + for k in range (3): + basePosition = [1+i*5*sphereRadius,1+j*5*sphereRadius,1+k*5*sphereRadius+1] + baseOrientation = [0,0,0,1] + if (k&2): + sphereUid = p.createMultiBody(mass,colSphereId,visualShapeId,basePosition,baseOrientation) + else: + sphereUid = p.createMultiBody(mass,colBoxId,visualShapeId,basePosition,baseOrientation,linkMasses=link_Masses,linkCollisionShapeIndices=linkCollisionShapeIndices,linkVisualShapeIndices=linkVisualShapeIndices,linkPositions=linkPositions,linkOrientations=linkOrientations,linkInertialFramePositions=linkInertialFramePositions, linkInertialFrameOrientations=linkInertialFrameOrientations,linkParentIndices=indices,linkJointTypes=jointTypes,linkJointAxis=axis) + + p.changeDynamics(sphereUid,-1,spinningFriction=0.001, rollingFriction=0.001,linearDamping=0.0) + for joint in range (p.getNumJoints(sphereUid)): + p.setJointMotorControl2(sphereUid,joint,p.VELOCITY_CONTROL,targetVelocity=1,force=10) + + +p.setGravity(0,0,-10) +p.setRealTimeSimulation(1) + +p.getNumJoints(sphereUid) +for i in range (p.getNumJoints(sphereUid)): + p.getJointInfo(sphereUid,i) + +while (1): + keys = p.getKeyboardEvents() + print(keys) + + time.sleep(0.01) + \ No newline at end of file diff --git a/examples/pybullet/examples/createObstacleCourse.py b/examples/pybullet/examples/createObstacleCourse.py new file mode 100644 index 000000000..6baa636ff --- /dev/null +++ b/examples/pybullet/examples/createObstacleCourse.py @@ -0,0 +1,93 @@ +import pybullet as p +import time +import math + +p.connect(p.GUI) +#don't create a ground plane, to allow for gaps etc +p.resetSimulation() +#p.createCollisionShape(p.GEOM_PLANE) +#p.createMultiBody(0,0) +#p.resetDebugVisualizerCamera(5,75,-26,[0,0,1]); +p.resetDebugVisualizerCamera(15,-346,-16,[-15,0,1]); + +p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,0) + +sphereRadius = 0.05 +colSphereId = p.createCollisionShape(p.GEOM_SPHERE,radius=sphereRadius) +stoneId = p.createCollisionShape(p.GEOM_MESH,fileName="stone.obj") + +boxHalfLength = 0.5 +boxHalfWidth = 2.5 +boxHalfHeight = 0.1 +segmentLength = 5 + +colBoxId = p.createCollisionShape(p.GEOM_BOX,halfExtents=[boxHalfLength,boxHalfWidth,boxHalfHeight]) + +mass = 1 +visualShapeId = -1 + +segmentStart = 0 + +for i in range (segmentLength): + p.createMultiBody(baseMass=0,baseCollisionShapeIndex = colBoxId,basePosition = [segmentStart,0,-0.1]) + segmentStart=segmentStart-1 + +for i in range (segmentLength): + height = 0 + if (i%2): + height=1 + p.createMultiBody(baseMass=0,baseCollisionShapeIndex = colBoxId,basePosition = [segmentStart,0,-0.1+height]) + segmentStart=segmentStart-1 + +baseOrientation = p.getQuaternionFromEuler([math.pi/2.,0,math.pi/2.]) + +for i in range (segmentLength): + p.createMultiBody(baseMass=0,baseCollisionShapeIndex = colBoxId,basePosition = [segmentStart,0,-0.1]) + segmentStart=segmentStart-1 + if (i%2): + p.createMultiBody(baseMass=0,baseCollisionShapeIndex = colBoxId,basePosition = [segmentStart,i%3,-0.1+height+boxHalfWidth],baseOrientation=baseOrientation) + +for i in range (segmentLength): + p.createMultiBody(baseMass=0,baseCollisionShapeIndex = colBoxId,basePosition = [segmentStart,0,-0.1]) + width=4 + for j in range (width): + p.createMultiBody(baseMass=0,baseCollisionShapeIndex = stoneId,basePosition = [segmentStart,0.5*(i%2)+j-width/2.,0]) + segmentStart=segmentStart-1 + + +link_Masses=[1] +linkCollisionShapeIndices=[colBoxId] +linkVisualShapeIndices=[-1] +linkPositions=[[0,0,0]] +linkOrientations=[[0,0,0,1]] +linkInertialFramePositions=[[0,0,0]] +linkInertialFrameOrientations=[[0,0,0,1]] +indices=[0] +jointTypes=[p.JOINT_REVOLUTE] +axis=[[1,0,0]] + +baseOrientation = [0,0,0,1] +for i in range (segmentLength): + boxId = p.createMultiBody(0,colSphereId,-1,[segmentStart,0,-0.1],baseOrientation,linkMasses=link_Masses,linkCollisionShapeIndices=linkCollisionShapeIndices,linkVisualShapeIndices=linkVisualShapeIndices,linkPositions=linkPositions,linkOrientations=linkOrientations,linkInertialFramePositions=linkInertialFramePositions, linkInertialFrameOrientations=linkInertialFrameOrientations,linkParentIndices=indices,linkJointTypes=jointTypes,linkJointAxis=axis) + p.changeDynamics(boxId,-1,spinningFriction=0.001, rollingFriction=0.001,linearDamping=0.0) + print(p.getNumJoints(boxId)) + for joint in range (p.getNumJoints(boxId)): + targetVelocity = 1 + if (i%2): + targetVelocity =-1 + p.setJointMotorControl2(boxId,joint,p.VELOCITY_CONTROL,targetVelocity=targetVelocity,force=10) + segmentStart=segmentStart-1.1 + + + +p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,1) +while (1): + camData = p.getDebugVisualizerCamera() + viewMat = camData[2] + projMat = camData[3] + p.getCameraImage(256,256,viewMatrix=viewMat, projectionMatrix=projMat, renderer=p.ER_BULLET_HARDWARE_OPENGL) + keys = p.getKeyboardEvents() + p.stepSimulation() + #print(keys) + time.sleep(0.01) + diff --git a/examples/pybullet/examples/createSphereMultiBodies.py b/examples/pybullet/examples/createSphereMultiBodies.py new file mode 100644 index 000000000..f2b0fb59e --- /dev/null +++ b/examples/pybullet/examples/createSphereMultiBodies.py @@ -0,0 +1,38 @@ +import pybullet as p +import time + +useMaximalCoordinates = 0 + +p.connect(p.GUI) +#p.loadSDF("stadium.sdf",useMaximalCoordinates=useMaximalCoordinates) +monastryId = concaveEnv =p.createCollisionShape(p.GEOM_MESH,fileName="samurai_monastry.obj",flags=p.GEOM_FORCE_CONCAVE_TRIMESH) +orn = p.getQuaternionFromEuler([1.5707963,0,0]) +p.createMultiBody (0,monastryId, baseOrientation=orn) + +sphereRadius = 0.05 +colSphereId = p.createCollisionShape(p.GEOM_SPHERE,radius=sphereRadius) +colBoxId = p.createCollisionShape(p.GEOM_BOX,halfExtents=[sphereRadius,sphereRadius,sphereRadius]) + +mass = 1 +visualShapeId = -1 + + +for i in range (5): + for j in range (5): + for k in range (5): + if (k&2): + sphereUid = p.createMultiBody(mass,colSphereId,visualShapeId,[-i*2*sphereRadius,j*2*sphereRadius,k*2*sphereRadius+1],useMaximalCoordinates=useMaximalCoordinates) + else: + sphereUid = p.createMultiBody(mass,colBoxId,visualShapeId,[-i*2*sphereRadius,j*2*sphereRadius,k*2*sphereRadius+1], useMaximalCoordinates=useMaximalCoordinates) + p.changeDynamics(sphereUid,-1,spinningFriction=0.001, rollingFriction=0.001,linearDamping=0.0) + + + +p.setGravity(0,0,-10) +p.setRealTimeSimulation(1) + +while (1): + keys = p.getKeyboardEvents() + #print(keys) + time.sleep(0.01) + \ No newline at end of file diff --git a/examples/pybullet/examples/data/block_grasp_log.bin b/examples/pybullet/examples/data/block_grasp_log.bin new file mode 100644 index 000000000..1bf3d5050 Binary files /dev/null and b/examples/pybullet/examples/data/block_grasp_log.bin differ diff --git a/examples/pybullet/examples/debugDrawItems.py b/examples/pybullet/examples/debugDrawItems.py new file mode 100644 index 000000000..3aa1e44ae --- /dev/null +++ b/examples/pybullet/examples/debugDrawItems.py @@ -0,0 +1,16 @@ +import pybullet as p +import time +p.connect(p.GUI) +p.loadURDF("plane.urdf") +kuka = p.loadURDF("kuka_iiwa/model.urdf") +p.addUserDebugText("tip", [0,0,0.1],textColorRGB=[1,0,0],textSize=1.5,parentObjectUniqueId=kuka, parentLinkIndex=6) +p.addUserDebugLine([0,0,0],[0.1,0,0],[1,0,0],parentObjectUniqueId=kuka, parentLinkIndex=6) +p.addUserDebugLine([0,0,0],[0,0.1,0],[0,1,0],parentObjectUniqueId=kuka, parentLinkIndex=6) +p.addUserDebugLine([0,0,0],[0,0,0.1],[0,0,1],parentObjectUniqueId=kuka, parentLinkIndex=6) +p.setRealTimeSimulation(0) +angle=0 +while (True): + time.sleep(0.01) + p.resetJointState(kuka,2,angle) + p.resetJointState(kuka,3,angle) + angle+=0.01 \ No newline at end of file diff --git a/examples/pybullet/examples/getAABB.py b/examples/pybullet/examples/getAABB.py new file mode 100644 index 000000000..ef1d3ee3f --- /dev/null +++ b/examples/pybullet/examples/getAABB.py @@ -0,0 +1,77 @@ +import pybullet as p +draw=1 +printtext = 0 + +if (draw): + p.connect(p.GUI) +else: + p.connect(p.DIRECT) +r2d2 = p.loadURDF("r2d2.urdf") + +def drawAABB(aabb): + f = [aabbMin[0],aabbMin[1],aabbMin[2]] + t = [aabbMax[0],aabbMin[1],aabbMin[2]] + p.addUserDebugLine(f,t,[1,0,0]) + f = [aabbMin[0],aabbMin[1],aabbMin[2]] + t = [aabbMin[0],aabbMax[1],aabbMin[2]] + p.addUserDebugLine(f,t,[0,1,0]) + f = [aabbMin[0],aabbMin[1],aabbMin[2]] + t = [aabbMin[0],aabbMin[1],aabbMax[2]] + p.addUserDebugLine(f,t,[0,0,1]) + + f = [aabbMin[0],aabbMin[1],aabbMax[2]] + t = [aabbMin[0],aabbMax[1],aabbMax[2]] + p.addUserDebugLine(f,t,[1,1,1]) + + f = [aabbMin[0],aabbMin[1],aabbMax[2]] + t = [aabbMax[0],aabbMin[1],aabbMax[2]] + p.addUserDebugLine(f,t,[1,1,1]) + + f = [aabbMax[0],aabbMin[1],aabbMin[2]] + t = [aabbMax[0],aabbMin[1],aabbMax[2]] + p.addUserDebugLine(f,t,[1,1,1]) + + f = [aabbMax[0],aabbMin[1],aabbMin[2]] + t = [aabbMax[0],aabbMax[1],aabbMin[2]] + p.addUserDebugLine(f,t,[1,1,1]) + + f = [aabbMax[0],aabbMax[1],aabbMin[2]] + t = [aabbMin[0],aabbMax[1],aabbMin[2]] + p.addUserDebugLine(f,t,[1,1,1]) + + f = [aabbMin[0],aabbMax[1],aabbMin[2]] + t = [aabbMin[0],aabbMax[1],aabbMax[2]] + p.addUserDebugLine(f,t,[1,1,1]) + + f = [aabbMax[0],aabbMax[1],aabbMax[2]] + t = [aabbMin[0],aabbMax[1],aabbMax[2]] + p.addUserDebugLine(f,t,[1.0,0.5,0.5]) + f = [aabbMax[0],aabbMax[1],aabbMax[2]] + t = [aabbMax[0],aabbMin[1],aabbMax[2]] + p.addUserDebugLine(f,t,[1,1,1]) + f = [aabbMax[0],aabbMax[1],aabbMax[2]] + t = [aabbMax[0],aabbMax[1],aabbMin[2]] + p.addUserDebugLine(f,t,[1,1,1]) + +aabb = p.getAABB(r2d2) +aabbMin = aabb[0] +aabbMax = aabb[1] +if (printtext): + print(aabbMin) + print(aabbMax) +if (draw==1): + drawAABB(aabb) + +for i in range (p.getNumJoints(r2d2)): + aabb = p.getAABB(r2d2,i) + aabbMin = aabb[0] + aabbMax = aabb[1] + if (printtext): + print(aabbMin) + print(aabbMax) + if (draw==1): + drawAABB(aabb) + + +while(1): + a=0 \ No newline at end of file diff --git a/examples/pybullet/examples/humanoid_knee_position_control.py b/examples/pybullet/examples/humanoid_knee_position_control.py new file mode 100644 index 000000000..b62bd76a1 --- /dev/null +++ b/examples/pybullet/examples/humanoid_knee_position_control.py @@ -0,0 +1,46 @@ +import pybullet as p +import time + +cid = p.connect(p.SHARED_MEMORY) +if (cid<0): + cid = p.connect(p.GUI) + +p.resetSimulation() + +useRealTime = 0 + +p.setRealTimeSimulation(useRealTime) + +p.setGravity(0,0,-10) + +p.loadSDF("stadium.sdf") + +obUids = p.loadMJCF("mjcf/humanoid_fixed.xml") +human = obUids[0] + + + +for i in range (p.getNumJoints(human)): + p.setJointMotorControl2(human,i,p.POSITION_CONTROL,targetPosition=0,force=500) + +kneeAngleTargetId = p.addUserDebugParameter("kneeAngle",-4,4,-1) +maxForceId = p.addUserDebugParameter("maxForce",0,500,10) + +kneeAngleTargetLeftId = p.addUserDebugParameter("kneeAngleL",-4,4,-1) +maxForceLeftId = p.addUserDebugParameter("maxForceL",0,500,10) + + +kneeJointIndex=11 +kneeJointIndexLeft=18 + +while (1): + time.sleep(0.01) + kneeAngleTarget = p.readUserDebugParameter(kneeAngleTargetId) + maxForce = p.readUserDebugParameter(maxForceId) + p.setJointMotorControl2(human,kneeJointIndex,p.POSITION_CONTROL,targetPosition=kneeAngleTarget,force=maxForce) + kneeAngleTargetLeft = p.readUserDebugParameter(kneeAngleTargetLeftId) + maxForceLeft = p.readUserDebugParameter(maxForceLeftId) + p.setJointMotorControl2(human,kneeJointIndexLeft,p.POSITION_CONTROL,targetPosition=kneeAngleTargetLeft,force=maxForceLeft) + + if (useRealTime==0): + p.stepSimulation() \ No newline at end of file diff --git a/examples/pybullet/examples/inverse_kinematics.py b/examples/pybullet/examples/inverse_kinematics.py index 4c85ec48c..0dba11bf9 100644 --- a/examples/pybullet/examples/inverse_kinematics.py +++ b/examples/pybullet/examples/inverse_kinematics.py @@ -3,8 +3,9 @@ import time import math from datetime import datetime -#clid = p.connect(p.SHARED_MEMORY) -p.connect(p.GUI) +clid = p.connect(p.SHARED_MEMORY) +if (clid<0): + p.connect(p.GUI) p.loadURDF("plane.urdf",[0,0,-0.3]) kukaId = p.loadURDF("kuka_iiwa/model.urdf",[0,0,0]) p.resetBasePositionAndOrientation(kukaId,[0,0,0],[0,0,0,1]) diff --git a/examples/pybullet/examples/kuka_grasp_block_playback.py b/examples/pybullet/examples/kuka_grasp_block_playback.py new file mode 100644 index 000000000..6a786ad0d --- /dev/null +++ b/examples/pybullet/examples/kuka_grasp_block_playback.py @@ -0,0 +1,83 @@ +import pybullet as p +import struct + + +def readLogFile(filename, verbose = True): + f = open(filename, 'rb') + + print('Opened'), + print(filename) + + keys = f.readline().decode('utf8').rstrip('\n').split(',') + fmt = f.readline().decode('utf8').rstrip('\n') + + # The byte number of one record + sz = struct.calcsize(fmt) + # The type number of one record + ncols = len(fmt) + + if verbose: + print('Keys:'), + print(keys) + print('Format:'), + print(fmt) + print('Size:'), + print(sz) + print('Columns:'), + print(ncols) + + # Read data + wholeFile = f.read() + # split by alignment word + chunks = wholeFile.split(b'\xaa\xbb') + log = list() + for chunk in chunks: + if len(chunk) == sz: + values = struct.unpack(fmt, chunk) + record = list() + for i in range(ncols): + record.append(values[i]) + log.append(record) + + return log + +#clid = p.connect(p.SHARED_MEMORY) +p.connect(p.GUI) +p.loadSDF("kuka_iiwa/kuka_with_gripper.sdf") +p.loadURDF("tray/tray.urdf",[0,0,0]) +p.loadURDF("block.urdf",[0,0,2]) + +log = readLogFile("data/block_grasp_log.bin") + +recordNum = len(log) +itemNum = len(log[0]) +objectNum = p.getNumBodies() + +print('record num:'), +print(recordNum) +print('item num:'), +print(itemNum) + +def Step(stepIndex): + for objectId in range(objectNum): + record = log[stepIndex*objectNum+objectId] + Id = record[2] + pos = [record[3],record[4],record[5]] + orn = [record[6],record[7],record[8],record[9]] + p.resetBasePositionAndOrientation(Id,pos,orn) + numJoints = p.getNumJoints(Id) + for i in range (numJoints): + jointInfo = p.getJointInfo(Id,i) + qIndex = jointInfo[3] + if qIndex > -1: + p.resetJointState(Id,i,record[qIndex-7+17]) + + +stepIndexId = p.addUserDebugParameter("stepIndex",0,recordNum/objectNum-1,0) + +while True: + stepIndex = int(p.readUserDebugParameter(stepIndexId)) + Step(stepIndex) + p.stepSimulation() + Step(stepIndex) + diff --git a/examples/pybullet/examples/kuka_with_cube.py b/examples/pybullet/examples/kuka_with_cube.py index a4668dd49..4f52978e3 100644 --- a/examples/pybullet/examples/kuka_with_cube.py +++ b/examples/pybullet/examples/kuka_with_cube.py @@ -50,8 +50,8 @@ trailDuration = 15 logId1 = p.startStateLogging(p.STATE_LOGGING_GENERIC_ROBOT,"LOG0001.txt",[0,1,2]) logId2 = p.startStateLogging(p.STATE_LOGGING_CONTACT_POINTS,"LOG0002.txt",bodyUniqueIdA=2) -for i in xrange(5): - print "Body %d's name is %s." % (i, p.getBodyInfo(i)[1]) +for i in range(5): + print ("Body %d's name is %s." % (i, p.getBodyInfo(i)[1])) while 1: if (useRealTimeSimulation): diff --git a/examples/pybullet/examples/kuka_with_cube_playback.py b/examples/pybullet/examples/kuka_with_cube_playback.py index f84fbc45c..5b02f1b72 100644 --- a/examples/pybullet/examples/kuka_with_cube_playback.py +++ b/examples/pybullet/examples/kuka_with_cube_playback.py @@ -52,7 +52,7 @@ def readLogFile(filename, verbose = True): #clid = p.connect(p.SHARED_MEMORY) p.connect(p.GUI) p.loadURDF("plane.urdf",[0,0,-0.3]) -p.loadURDF("kuka_iiwa/model.urdf",[0,0,0]) +p.loadURDF("kuka_iiwa/model.urdf",[0,0,1]) p.loadURDF("cube.urdf",[2,2,5]) p.loadURDF("cube.urdf",[-2,-2,5]) p.loadURDF("cube.urdf",[2,-2,5]) @@ -77,4 +77,4 @@ for record in log: qIndex = jointInfo[3] if qIndex > -1: p.resetJointState(Id,i,record[qIndex-7+17]) - sleep(0.0005) \ No newline at end of file + sleep(0.0005) diff --git a/examples/pybullet/examples/loadingBench.py b/examples/pybullet/examples/loadingBench.py new file mode 100644 index 000000000..e576e2afe --- /dev/null +++ b/examples/pybullet/examples/loadingBench.py @@ -0,0 +1,28 @@ +import pybullet as p +import time +p.connect(p.GUI) + +p.resetSimulation() +timinglog = p.startStateLogging(p.STATE_LOGGING_PROFILE_TIMINGS, "loadingBenchVR.json") +p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,0) +print("load plane.urdf") +p.loadURDF("plane.urdf") +print("load r2d2.urdf") + +p.loadURDF("r2d2.urdf",0,0,1) +print("load kitchen/1.sdf") +p.loadSDF("kitchens/1.sdf") +print("load 100 times plate.urdf") +for i in range (100): + p.loadURDF("dinnerware/plate.urdf",0,i,1) + +p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,1) + +p.stopStateLogging(timinglog) +print("stopped state logging") +p.getCameraImage(320,200) + +while (1): + p.stepSimulation() + + diff --git a/examples/pybullet/examples/mimicJointConstraint.py b/examples/pybullet/examples/mimicJointConstraint.py new file mode 100644 index 000000000..60a0625d9 --- /dev/null +++ b/examples/pybullet/examples/mimicJointConstraint.py @@ -0,0 +1,28 @@ +#a mimic joint can act as a gear between two joints +#you can control the gear ratio in magnitude and sign (>0 reverses direction) + +import pybullet as p +import time +p.connect(p.GUI) +p.loadURDF("plane.urdf",0,0,-2) +wheelA = p.loadURDF("differential/diff_ring.urdf",[0,0,0]) +for i in range(p.getNumJoints(wheelA)): + print(p.getJointInfo(wheelA,i)) + p.setJointMotorControl2(wheelA,i,p.VELOCITY_CONTROL,targetVelocity=0,force=0) + + +c = p.createConstraint(wheelA,1,wheelA,3,jointType=p.JOINT_GEAR,jointAxis =[0,1,0],parentFramePosition=[0,0,0],childFramePosition=[0,0,0]) +p.changeConstraint(c,gearRatio=1, maxForce=10000) + +c = p.createConstraint(wheelA,2,wheelA,4,jointType=p.JOINT_GEAR,jointAxis =[0,1,0],parentFramePosition=[0,0,0],childFramePosition=[0,0,0]) +p.changeConstraint(c,gearRatio=-1, maxForce=10000) + +c = p.createConstraint(wheelA,1,wheelA,4,jointType=p.JOINT_GEAR,jointAxis =[0,1,0],parentFramePosition=[0,0,0],childFramePosition=[0,0,0]) +p.changeConstraint(c,gearRatio=-1, maxForce=10000) + + +p.setRealTimeSimulation(1) +while(1): + time.sleep(0.01) +#p.removeConstraint(c) + \ No newline at end of file diff --git a/examples/pybullet/examples/racecar.py b/examples/pybullet/examples/racecar.py new file mode 100644 index 000000000..d09f83a4b --- /dev/null +++ b/examples/pybullet/examples/racecar.py @@ -0,0 +1,49 @@ +import pybullet as p +import time + +cid = p.connect(p.SHARED_MEMORY) +if (cid<0): + p.connect(p.GUI) + +p.resetSimulation() +p.setGravity(0,0,-10) + +useRealTimeSim = 1 + +#for video recording (works best on Mac and Linux, not well on Windows) +#p.startStateLogging(p.STATE_LOGGING_VIDEO_MP4, "racecar.mp4") +p.setRealTimeSimulation(useRealTimeSim) # either this +#p.loadURDF("plane.urdf") +p.loadSDF("stadium.sdf") + +car = p.loadURDF("racecar/racecar.urdf") +for i in range (p.getNumJoints(car)): + print (p.getJointInfo(car,i)) + +inactive_wheels = [3,5,7] +wheels = [2] + +for wheel in inactive_wheels: + p.setJointMotorControl2(car,wheel,p.VELOCITY_CONTROL,targetVelocity=0,force=0) + +steering = [4,6] + +targetVelocitySlider = p.addUserDebugParameter("wheelVelocity",-10,10,0) +maxForceSlider = p.addUserDebugParameter("maxForce",0,10,10) +steeringSlider = p.addUserDebugParameter("steering",-0.5,0.5,0) +while (True): + maxForce = p.readUserDebugParameter(maxForceSlider) + targetVelocity = p.readUserDebugParameter(targetVelocitySlider) + steeringAngle = p.readUserDebugParameter(steeringSlider) + #print(targetVelocity) + + for wheel in wheels: + p.setJointMotorControl2(car,wheel,p.VELOCITY_CONTROL,targetVelocity=targetVelocity,force=maxForce) + + for steer in steering: + p.setJointMotorControl2(car,steer,p.POSITION_CONTROL,targetPosition=steeringAngle) + + steering + if (useRealTimeSim==0): + p.stepSimulation() + time.sleep(0.01) diff --git a/examples/pybullet/examples/racecar_differential.py b/examples/pybullet/examples/racecar_differential.py new file mode 100644 index 000000000..9abab35df --- /dev/null +++ b/examples/pybullet/examples/racecar_differential.py @@ -0,0 +1,74 @@ +import pybullet as p +import time + +cid = p.connect(p.SHARED_MEMORY) +if (cid<0): + p.connect(p.GUI) + +p.resetSimulation() +p.setGravity(0,0,-10) +useRealTimeSim = 1 + +#for video recording (works best on Mac and Linux, not well on Windows) +#p.startStateLogging(p.STATE_LOGGING_VIDEO_MP4, "racecar.mp4") +p.setRealTimeSimulation(useRealTimeSim) # either this +p.loadURDF("plane.urdf") +#p.loadSDF("stadium.sdf") + +car = p.loadURDF("racecar/racecar_differential.urdf") #, [0,0,2],useFixedBase=True) +for i in range (p.getNumJoints(car)): + print (p.getJointInfo(car,i)) +for wheel in range(p.getNumJoints(car)): + p.setJointMotorControl2(car,wheel,p.VELOCITY_CONTROL,targetVelocity=0,force=0) + p.getJointInfo(car,wheel) + +wheels = [8,15] +print("----------------") + +#p.setJointMotorControl2(car,10,p.VELOCITY_CONTROL,targetVelocity=1,force=10) +c = p.createConstraint(car,9,car,11,jointType=p.JOINT_GEAR,jointAxis =[0,1,0],parentFramePosition=[0,0,0],childFramePosition=[0,0,0]) +p.changeConstraint(c,gearRatio=1, maxForce=10000) + +c = p.createConstraint(car,10,car,13,jointType=p.JOINT_GEAR,jointAxis =[0,1,0],parentFramePosition=[0,0,0],childFramePosition=[0,0,0]) +p.changeConstraint(c,gearRatio=-1, maxForce=10000) + +c = p.createConstraint(car,9,car,13,jointType=p.JOINT_GEAR,jointAxis =[0,1,0],parentFramePosition=[0,0,0],childFramePosition=[0,0,0]) +p.changeConstraint(c,gearRatio=-1, maxForce=10000) + +c = p.createConstraint(car,16,car,18,jointType=p.JOINT_GEAR,jointAxis =[0,1,0],parentFramePosition=[0,0,0],childFramePosition=[0,0,0]) +p.changeConstraint(c,gearRatio=1, maxForce=10000) + + +c = p.createConstraint(car,16,car,19,jointType=p.JOINT_GEAR,jointAxis =[0,1,0],parentFramePosition=[0,0,0],childFramePosition=[0,0,0]) +p.changeConstraint(c,gearRatio=-1, maxForce=10000) + +c = p.createConstraint(car,17,car,19,jointType=p.JOINT_GEAR,jointAxis =[0,1,0],parentFramePosition=[0,0,0],childFramePosition=[0,0,0]) +p.changeConstraint(c,gearRatio=-1, maxForce=10000) + +c = p.createConstraint(car,1,car,18,jointType=p.JOINT_GEAR,jointAxis =[0,1,0],parentFramePosition=[0,0,0],childFramePosition=[0,0,0]) +p.changeConstraint(c,gearRatio=-1, gearAuxLink = 15, maxForce=10000) +c = p.createConstraint(car,3,car,19,jointType=p.JOINT_GEAR,jointAxis =[0,1,0],parentFramePosition=[0,0,0],childFramePosition=[0,0,0]) +p.changeConstraint(c,gearRatio=-1, gearAuxLink = 15,maxForce=10000) + + +steering = [0,2] + +targetVelocitySlider = p.addUserDebugParameter("wheelVelocity",-50,50,0) +maxForceSlider = p.addUserDebugParameter("maxForce",0,50,20) +steeringSlider = p.addUserDebugParameter("steering",-1,1,0) +while (True): + maxForce = p.readUserDebugParameter(maxForceSlider) + targetVelocity = p.readUserDebugParameter(targetVelocitySlider) + steeringAngle = p.readUserDebugParameter(steeringSlider) + #print(targetVelocity) + + for wheel in wheels: + p.setJointMotorControl2(car,wheel,p.VELOCITY_CONTROL,targetVelocity=targetVelocity,force=maxForce) + + for steer in steering: + p.setJointMotorControl2(car,steer,p.POSITION_CONTROL,targetPosition=-steeringAngle) + + steering + if (useRealTimeSim==0): + p.stepSimulation() + time.sleep(0.01) diff --git a/examples/pybullet/examples/reset_dynamic_info.py b/examples/pybullet/examples/reset_dynamic_info.py index 0158f2e17..78d476a27 100644 --- a/examples/pybullet/examples/reset_dynamic_info.py +++ b/examples/pybullet/examples/reset_dynamic_info.py @@ -6,15 +6,15 @@ p.connect(p.GUI) planeId = p.loadURDF(fileName="plane.urdf",baseOrientation=[0.25882,0,0,0.96593]) p.loadURDF(fileName="cube.urdf",baseOrientation=[0.25882,0,0,0.96593],basePosition=[0,0,2]) cubeId = p.loadURDF(fileName="cube.urdf",baseOrientation=[0,0,0,1],basePosition=[0,0,4]) -p.changeDynamicsInfo(bodyUniqueId=2,linkIndex=-1,mass=0.1) -#p.changeDynamicsInfo(bodyUniqueId=2,linkIndex=-1,mass=100.0) +#p.changeDynamics(bodyUniqueId=2,linkIndex=-1,mass=0.1) +p.changeDynamics(bodyUniqueId=2,linkIndex=-1,mass=100.0) p.setGravity(0,0,-10) p.setRealTimeSimulation(0) t=0 while 1: t=t+1 if t > 400: - p.changeDynamicsInfo(bodyUniqueId=0,linkIndex=-1,lateralFriction=0.01) + p.changeDynamics(bodyUniqueId=0,linkIndex=-1,lateralFriction=0.01) mass1,frictionCoeff1=p.getDynamicsInfo(bodyUniqueId=planeId,linkIndex=-1) mass2,frictionCoeff2=p.getDynamicsInfo(bodyUniqueId=cubeId,linkIndex=-1) print mass1,frictionCoeff1 diff --git a/examples/pybullet/examples/restitution.py b/examples/pybullet/examples/restitution.py new file mode 100644 index 000000000..3b12185a8 --- /dev/null +++ b/examples/pybullet/examples/restitution.py @@ -0,0 +1,40 @@ +#you can set the restitution (bouncyness) of an object in the URDF file +#or using changeDynamics + +import pybullet as p +import time + +cid = p.connect(p.SHARED_MEMORY) +if (cid<0): + cid = p.connect(p.GUI) +restitutionId = p.addUserDebugParameter("restitution",0,1,1) +restitutionVelocityThresholdId = p.addUserDebugParameter("res. vel. threshold",0,3,0.2) + +lateralFrictionId = p.addUserDebugParameter("lateral friction",0,1,0.5) +spinningFrictionId = p.addUserDebugParameter("spinning friction",0,1,0.03) +rollingFrictionId = p.addUserDebugParameter("rolling friction",0,1,0.03) + +plane = p.loadURDF("plane_with_restitution.urdf") +sphere = p.loadURDF("sphere_with_restitution.urdf",[0,0,2]) + +p.setRealTimeSimulation(1) +p.setGravity(0,0,-10) +while (1): + restitution = p.readUserDebugParameter(restitutionId) + restitutionVelocityThreshold = p.readUserDebugParameter(restitutionVelocityThresholdId) + p.setPhysicsEngineParameter(restitutionVelocityThreshold=restitutionVelocityThreshold) + + lateralFriction = p.readUserDebugParameter(lateralFrictionId) + spinningFriction = p.readUserDebugParameter(spinningFrictionId) + rollingFriction = p.readUserDebugParameter(rollingFrictionId) + p.changeDynamics(plane,-1,lateralFriction=1) + p.changeDynamics(sphere,-1,lateralFriction=lateralFriction) + p.changeDynamics(sphere,-1,spinningFriction=spinningFriction) + p.changeDynamics(sphere,-1,rollingFriction=rollingFriction) + + p.changeDynamics(plane,-1,restitution=restitution) + p.changeDynamics(sphere,-1,restitution=restitution) + pos,orn=p.getBasePositionAndOrientation(sphere) + #print("pos=") + #print(pos) + time.sleep(0.01) \ No newline at end of file diff --git a/examples/pybullet/examples/transparent.py b/examples/pybullet/examples/transparent.py new file mode 100644 index 000000000..5c6cc09c6 --- /dev/null +++ b/examples/pybullet/examples/transparent.py @@ -0,0 +1,18 @@ +import pybullet as p +import time +p.connect(p.GUI) +p.loadURDF("plane.urdf") +sphereUid = p.loadURDF("sphere_transparent.urdf",[0,0,2]) + +redSlider = p.addUserDebugParameter("red",0,1,1) +greenSlider = p.addUserDebugParameter("green",0,1,0) +blueSlider = p.addUserDebugParameter("blue",0,1,0) +alphaSlider = p.addUserDebugParameter("alpha",0,1,0.5) + +while (1): + red = p.readUserDebugParameter(redSlider) + green = p.readUserDebugParameter(greenSlider) + blue = p.readUserDebugParameter(blueSlider) + alpha = p.readUserDebugParameter(alphaSlider) + p.changeVisualShape(sphereUid,-1,rgbaColor=[red,green,blue,alpha]) + time.sleep(0.01) \ No newline at end of file diff --git a/examples/pybullet/examples/vr_racecar_differential.py b/examples/pybullet/examples/vr_racecar_differential.py new file mode 100644 index 000000000..5cdb8dc95 --- /dev/null +++ b/examples/pybullet/examples/vr_racecar_differential.py @@ -0,0 +1,93 @@ +import pybullet as p +import time +CONTROLLER_ID = 0 +POSITION=1 +ORIENTATION=2 +BUTTONS=6 + + +cid = p.connect(p.SHARED_MEMORY) +if (cid<0): + p.connect(p.GUI) + +p.resetSimulation() +p.setGravity(0,0,-10) +useRealTimeSim = 1 + +#for video recording (works best on Mac and Linux, not well on Windows) +#p.startStateLogging(p.STATE_LOGGING_VIDEO_MP4, "racecar.mp4") +p.setRealTimeSimulation(useRealTimeSim) # either this +p.loadURDF("plane.urdf") +#p.loadSDF("stadium.sdf") + +car = p.loadURDF("racecar/racecar_differential.urdf") #, [0,0,2],useFixedBase=True) +for i in range (p.getNumJoints(car)): + print (p.getJointInfo(car,i)) +for wheel in range(p.getNumJoints(car)): + p.setJointMotorControl2(car,wheel,p.VELOCITY_CONTROL,targetVelocity=0,force=0) + p.getJointInfo(car,wheel) + +wheels = [8,15] +print("----------------") + +#p.setJointMotorControl2(car,10,p.VELOCITY_CONTROL,targetVelocity=1,force=10) +c = p.createConstraint(car,9,car,11,jointType=p.JOINT_GEAR,jointAxis =[0,1,0],parentFramePosition=[0,0,0],childFramePosition=[0,0,0]) +p.changeConstraint(c,gearRatio=1, maxForce=10000) + +c = p.createConstraint(car,10,car,13,jointType=p.JOINT_GEAR,jointAxis =[0,1,0],parentFramePosition=[0,0,0],childFramePosition=[0,0,0]) +p.changeConstraint(c,gearRatio=-1, maxForce=10000) + +c = p.createConstraint(car,9,car,13,jointType=p.JOINT_GEAR,jointAxis =[0,1,0],parentFramePosition=[0,0,0],childFramePosition=[0,0,0]) +p.changeConstraint(c,gearRatio=-1, maxForce=10000) + +c = p.createConstraint(car,16,car,18,jointType=p.JOINT_GEAR,jointAxis =[0,1,0],parentFramePosition=[0,0,0],childFramePosition=[0,0,0]) +p.changeConstraint(c,gearRatio=1, maxForce=10000) + + +c = p.createConstraint(car,16,car,19,jointType=p.JOINT_GEAR,jointAxis =[0,1,0],parentFramePosition=[0,0,0],childFramePosition=[0,0,0]) +p.changeConstraint(c,gearRatio=-1, maxForce=10000) + +c = p.createConstraint(car,17,car,19,jointType=p.JOINT_GEAR,jointAxis =[0,1,0],parentFramePosition=[0,0,0],childFramePosition=[0,0,0]) +p.changeConstraint(c,gearRatio=-1, maxForce=10000) + +c = p.createConstraint(car,1,car,18,jointType=p.JOINT_GEAR,jointAxis =[0,1,0],parentFramePosition=[0,0,0],childFramePosition=[0,0,0]) +p.changeConstraint(c,gearRatio=-1, gearAuxLink = 15, maxForce=10000) +c = p.createConstraint(car,3,car,19,jointType=p.JOINT_GEAR,jointAxis =[0,1,0],parentFramePosition=[0,0,0],childFramePosition=[0,0,0]) +p.changeConstraint(c,gearRatio=-1, gearAuxLink = 15,maxForce=10000) + + +steering = [0,2] + +targetVelocitySlider = p.addUserDebugParameter("wheelVelocity",-50,50,0) +maxForceSlider = p.addUserDebugParameter("maxForce",0,50,20) +steeringSlider = p.addUserDebugParameter("steering",-1,1,0) +activeController = -1 + +while (True): + + + maxForce = p.readUserDebugParameter(maxForceSlider) + targetVelocity = p.readUserDebugParameter(targetVelocitySlider) + steeringAngle = p.readUserDebugParameter(steeringSlider) + #print(targetVelocity) + events = p.getVREvents() + for e in events: + if (e[BUTTONS][33]&p.VR_BUTTON_WAS_TRIGGERED): + activeController = e[CONTROLLER_ID] + if (activeController == e[CONTROLLER_ID]): + orn = e[2] + eul = p.getEulerFromQuaternion(orn) + steeringAngle=eul[0] + + targetVelocity = 20.0*e[3] + + for wheel in wheels: + p.setJointMotorControl2(car,wheel,p.VELOCITY_CONTROL,targetVelocity=targetVelocity,force=maxForce) + + for steer in steering: + p.setJointMotorControl2(car,steer,p.POSITION_CONTROL,targetPosition=-steeringAngle) + + steering + if (useRealTimeSim==0): + p.stepSimulation() + time.sleep(0.01) diff --git a/examples/pybullet/examples/widows.py b/examples/pybullet/examples/widows.py new file mode 100644 index 000000000..aa1af8cb5 --- /dev/null +++ b/examples/pybullet/examples/widows.py @@ -0,0 +1,21 @@ +import pybullet as p +import time + +p.connect(p.GUI) +p.loadURDF("table/table.urdf", 0.5000000,0.00000,-.820000,0.000000,0.000000,0.0,1.0) +p.setGravity(0,0,-10) +arm = p.loadURDF("widowx/widowx.urdf",useFixedBase=True) + +p.resetBasePositionAndOrientation(arm,[-0.098612,-0.000726,-0.194018],[0.000000,0.000000,0.000000,1.000000]) + + +while (1): + p.stepSimulation() + time.sleep(0.01) + #p.saveWorld("test.py") + viewMat = p.getDebugVisualizerCamera()[2] + #projMatrix = [0.7499999403953552, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0000200271606445, -1.0, 0.0, 0.0, -0.02000020071864128, 0.0] + projMatrix = p.getDebugVisualizerCamera()[3] + width=640 + height=480 + img_arr = p.getCameraImage(width=width,height=height,viewMatrix=viewMat,projectionMatrix=projMatrix) diff --git a/examples/pybullet/gym/agents/actor_net.py b/examples/pybullet/gym/agents/actor_net.py new file mode 100644 index 000000000..ac6aaff8a --- /dev/null +++ b/examples/pybullet/gym/agents/actor_net.py @@ -0,0 +1,21 @@ +"""An actor network.""" +import tensorflow as tf +import sonnet as snt + +class ActorNetwork(snt.AbstractModule): + """An actor network as a sonnet Module.""" + + def __init__(self, layer_sizes, action_size, name='target_actor'): + super(ActorNetwork, self).__init__(name=name) + self._layer_sizes = layer_sizes + self._action_size = action_size + + def _build(self, inputs): + state = inputs + for output_size in self._layer_sizes: + state = snt.Linear(output_size)(state) + state = tf.nn.relu(state) + + action = tf.tanh( + snt.Linear(self._action_size, name='action')(state)) + return action diff --git a/examples/pybullet/gym/agents/simplerAgent.py b/examples/pybullet/gym/agents/simpleAgent.py similarity index 92% rename from examples/pybullet/gym/agents/simplerAgent.py rename to examples/pybullet/gym/agents/simpleAgent.py index 4f12f04db..8f399566c 100644 --- a/examples/pybullet/gym/agents/simplerAgent.py +++ b/examples/pybullet/gym/agents/simpleAgent.py @@ -10,12 +10,13 @@ import numpy as np import tensorflow as tf import pdb -class SimplerAgent(): +class SimpleAgent(): def __init__( self, session, ckpt_path, - observation_dim=31 + actor_layer_size, + observation_dim=28 ): self._ckpt_path = ckpt_path self._session = session diff --git a/examples/pybullet/gym/agents/simpleAgentWithSonnet.py b/examples/pybullet/gym/agents/simpleAgentWithSonnet.py new file mode 100644 index 000000000..6af4be61d --- /dev/null +++ b/examples/pybullet/gym/agents/simpleAgentWithSonnet.py @@ -0,0 +1,46 @@ +"""Loads a DDPG agent without too much external dependencies +""" +from __future__ import absolute_import +from __future__ import division +from __future__ import print_function + +import os +import collections +import numpy as np +import tensorflow as tf + +import sonnet as snt +from agents import actor_net + +class SimpleAgent(): + def __init__( + self, + session, + ckpt_path, + actor_layer_size, + observation_size=(28,), + action_size=8, + ): + self._ckpt_path = ckpt_path + self._actor_layer_size = actor_layer_size + self._observation_size = observation_size + self._action_size = action_size + self._session = session + self._build() + + def _build(self): + self._agent_net = actor_net.ActorNetwork(self._actor_layer_size, self._action_size) + self._obs = tf.placeholder(tf.float32, self._observation_size) + with tf.name_scope('Act'): + batch_obs = snt.nest.pack_iterable_as(self._obs, + snt.nest.map(lambda x: tf.expand_dims(x, 0), + snt.nest.flatten_iterable(self._obs))) + self._action = self._agent_net(batch_obs) + saver = tf.train.Saver() + saver.restore( + sess=self._session, + save_path=self._ckpt_path) + + def __call__(self, observation): + out_action = self._session.run(self._action, feed_dict={self._obs: observation}) + return out_action[0] diff --git a/examples/pybullet/gym/data/agent/tf_graph_data/checkpoint b/examples/pybullet/gym/data/agent/tf_graph_data/checkpoint deleted file mode 100644 index 72cc2c323..000000000 --- a/examples/pybullet/gym/data/agent/tf_graph_data/checkpoint +++ /dev/null @@ -1,2 +0,0 @@ -model_checkpoint_path: "tf_graph_data_converted.ckpt-0" -all_model_checkpoint_paths: "tf_graph_data_converted.ckpt-0" diff --git a/examples/pybullet/gym/data/agent/tf_graph_data/tf_graph_data_converted.ckpt-0.data-00000-of-00001 b/examples/pybullet/gym/data/agent/tf_graph_data/tf_graph_data_converted.ckpt-0.data-00000-of-00001 index 4d4eb02c3..d0d344013 100644 Binary files a/examples/pybullet/gym/data/agent/tf_graph_data/tf_graph_data_converted.ckpt-0.data-00000-of-00001 and b/examples/pybullet/gym/data/agent/tf_graph_data/tf_graph_data_converted.ckpt-0.data-00000-of-00001 differ diff --git a/examples/pybullet/gym/data/agent/tf_graph_data/tf_graph_data_converted.ckpt-0.index b/examples/pybullet/gym/data/agent/tf_graph_data/tf_graph_data_converted.ckpt-0.index index 9f923be82..85feb951c 100644 Binary files a/examples/pybullet/gym/data/agent/tf_graph_data/tf_graph_data_converted.ckpt-0.index and b/examples/pybullet/gym/data/agent/tf_graph_data/tf_graph_data_converted.ckpt-0.index differ diff --git a/examples/pybullet/gym/data/agent/tf_graph_data/tf_graph_data_converted.ckpt-0.meta b/examples/pybullet/gym/data/agent/tf_graph_data/tf_graph_data_converted.ckpt-0.meta index 2a70ea383..b9484d825 100644 Binary files a/examples/pybullet/gym/data/agent/tf_graph_data/tf_graph_data_converted.ckpt-0.meta and b/examples/pybullet/gym/data/agent/tf_graph_data/tf_graph_data_converted.ckpt-0.meta differ diff --git a/examples/pybullet/gym/enjoy_TF_AntBulletEnv_v0_2017may.py b/examples/pybullet/gym/enjoy_TF_AntBulletEnv_v0_2017may.py new file mode 100644 index 000000000..9af65cc3c --- /dev/null +++ b/examples/pybullet/gym/enjoy_TF_AntBulletEnv_v0_2017may.py @@ -0,0 +1,307 @@ +import gym +import numpy as np +import pybullet as p +import envs +import time + +def relu(x): + return np.maximum(x, 0) + +class SmallReactivePolicy: + "Simple multi-layer perceptron policy, no internal state" + def __init__(self, observation_space, action_space): + assert weights_dense1_w.shape == (observation_space.shape[0], 128) + assert weights_dense2_w.shape == (128, 64) + assert weights_final_w.shape == (64, action_space.shape[0]) + + def act(self, ob): + x = ob + x = relu(np.dot(x, weights_dense1_w) + weights_dense1_b) + x = relu(np.dot(x, weights_dense2_w) + weights_dense2_b) + x = np.dot(x, weights_final_w) + weights_final_b + return x + +def demo_run(): + env = gym.make("AntBulletEnv-v0") + + cid = p.connect(p.GUI) + p.configureDebugVisualizer(p.COV_ENABLE_GUI,0) + pi = SmallReactivePolicy(env.observation_space, env.action_space) + + p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,0) + env.reset() + p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,1) + torsoId = -1 + for i in range (p.getNumBodies()): + print(p.getBodyInfo(i)) + if (p.getBodyInfo(i)[0].decode() == "torso"): + torsoId=i + print("found torso") + + while 1: + frame = 0 + score = 0 + restart_delay = 0 + p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,0) + obs = env.reset() + p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,1) + + while 1: + time.sleep(0.001) + a = pi.act(obs) + obs, r, done, _ = env.step(a) + score += r + frame += 1 + distance=5 + yaw = 0 + humanPos, humanOrn = p.getBasePositionAndOrientation(torsoId) + p.resetDebugVisualizerCamera(distance,yaw,-20,humanPos); + + still_open = env.render("human") + if still_open==False: + return + if not done: continue + if restart_delay==0: + print("score=%0.2f in %i frames" % (score, frame)) + restart_delay = 60*2 # 2 sec at 60 fps + else: + restart_delay -= 1 + if restart_delay==0: break + +weights_dense1_w = np.array([ +[ +0.2856, -0.4091, +0.3380, -0.1083, +0.1049, -0.0806, -0.0827, +0.0402, +0.2415, +0.0927, +0.1812, +0.5455, +0.3157, +0.1043, +0.0527, +0.3768, -0.2083, +0.1218, -0.0633, +0.3236, +0.2198, +0.0513, +0.3505, -0.1165, -0.1732, +0.2760, +0.0006, +0.0249, +0.5887, -0.2324, +0.1503, -0.0108, +0.1220, +0.2527, +0.0984, +0.5360, -0.0579, -0.0847, +0.1649, +0.0589, -0.2046, +0.5981, -0.1063, -0.1088, +0.3424, +0.3479, -0.1751, +0.2924, -0.0610, +0.0807, +0.3291, +0.0059, +0.0339, -0.2823, +0.2533, +0.3156, +0.1679, +0.2417, +0.1265, +0.0024, +0.0802, +0.2531, -0.2576, +0.3894, +0.3206, +0.2015, +0.3482, +0.1042, -0.2418, -0.0002, +0.1277, +0.1811, +0.1551, +0.5460, +0.1714, +0.1021, -0.1252, +0.0609, -0.0372, -0.0351, +0.1216, +0.0023, -0.2448, +0.0077, +0.0584, +0.2389, -0.0848, +0.3542, +0.3065, -0.2268, +0.2387, +0.3303, +0.4184, -0.1619, +0.2230, +0.2829, +0.3884, +0.1262, +0.6383, -0.1629, +0.3087, +0.0554, +0.2294, +0.0280, +0.4139, -0.1484, +0.1358, +0.3153, -0.2652, +0.2637, -0.1563, +0.0706, +0.4192, +0.2381, -0.3540, +0.2789, +0.2647, +0.0931, +0.1439, +0.3415, -0.2445, +0.1039, -0.3692, +0.5095, +0.0010, +0.0777, +0.3382, -0.1100], +[ +0.0820, +0.6327, +1.0135, -0.1423, -0.0275, +0.0396, -0.5933, +0.3027, -0.2220, +0.1476, -0.0591, -0.7910, -0.0776, +0.2565, +0.0241, -1.1300, +0.1324, +0.9079, +0.2318, +0.5574, +1.0162, +0.1408, +0.7525, +0.3612, +0.6088, -0.2541, +0.8134, +0.1348, -0.1265, +0.7991, -0.2304, -0.4826, -0.4123, +0.2831, -0.5457, -0.3518, -0.9733, -0.1654, +0.2409, +0.3971, +0.6624, +0.0728, +0.2200, -0.2126, -0.5299, -0.1858, -0.3467, -0.2776, -0.2004, -0.7567, +0.4417, -0.4378, -0.6799, +0.3789, +0.2937, -0.1247, +0.5540, -1.0124, -0.5759, +0.0308, +0.2971, +1.1300, -0.1185, +0.5303, +0.0527, +0.3392, +0.7436, -0.3578, -0.0559, +0.2165, -0.5860, +0.9427, -0.2522, -0.0805, +0.9314, +1.4173, +0.6216, +0.6923, +0.6592, -0.0457, +0.5152, -0.3523, -0.5135, +0.6466, -0.4804, +0.0006, +0.3223, -0.1548, +1.5508, +0.6204, +0.2618, -0.0392, -0.6208, +0.0237, +0.0577, -0.2913, -0.3893, -0.1459, -0.1103, +0.7485, -0.0045, +0.0640, +0.0726, -0.0966, +0.0452, +0.2741, -0.3389, +0.8830, +0.9819, +0.3915, -0.1127, -0.2653, -0.6842, +0.2389, -0.4349, +1.4013, -0.4442, +1.1846, -0.7550, +0.5812, -0.2940, +0.7046, +0.4730, -0.2155, +0.1432, +0.1518, +0.5336, -0.0827], +[ -0.2503, +0.2354, -0.0468, +0.1318, -0.0161, +0.1235, -0.1649, -0.1380, -0.1816, -0.0953, -0.0303, -0.4337, +0.0159, -0.2893, -0.1178, -0.1779, +0.0557, -0.0788, -0.1745, -0.1349, +0.1942, +0.1707, -0.3289, +0.1177, -0.3084, +0.0423, +0.0006, -0.1240, -0.2685, -0.0578, +0.3282, -0.3570, +0.0039, +0.3399, -0.3599, -0.3346, -0.2273, -0.0044, -0.0425, -0.2483, -0.2284, -0.5528, -0.2406, -0.0144, -0.0306, +0.1037, +0.0497, -0.3302, +0.0505, +0.0054, -0.2037, -0.0112, +0.1068, -0.1273, +0.1019, -0.0463, -0.0527, -0.0015, -0.1546, -0.2187, +0.0633, -0.1969, -0.0954, -0.0111, -0.5329, +0.1480, -0.1007, +0.1115, -0.0692, -0.3348, +0.1361, -0.1606, -0.1103, -0.3221, -0.2678, -0.1543, -0.4900, -0.2455, -0.0798, -0.0545, +0.0848, +0.0149, -0.1908, +0.1721, +0.0687, -0.2002, -0.1194, +0.1023, -0.3005, -0.2030, -0.0681, -0.2440, -0.2892, -0.4305, -0.2357, +0.0932, -0.4055, -0.0629, -0.1043, -0.5354, -0.1120, -0.1867, -0.1219, -0.2403, -0.5562, -0.1247, -0.5158, -0.0720, -0.2935, -0.2138, +0.1382, +0.3068, -0.1444, +0.0100, -0.3312, -0.6305, +0.0030, -0.2372, -0.0005, -0.3775, +0.1123, +0.0166, -0.0000, -0.0605, -0.5071, +0.0482, -0.1440, -0.0311], +[ -0.2697, +0.0706, +0.3032, -0.1729, +0.3361, -0.0424, -0.1621, -0.1890, +0.0724, -0.4940, +0.0174, +0.2439, -0.4449, +0.2452, -0.2110, +0.2058, -0.3416, -0.0957, +0.0431, +0.2706, +0.0075, -0.2335, -0.4697, -0.4996, -0.0722, -0.2389, -0.0721, -0.2428, +0.4497, +0.1403, +0.0491, +0.3252, -0.3800, -0.2324, +0.2014, +0.4212, +0.4495, -0.2843, +0.2277, +0.0246, -0.6231, -0.1313, -0.5353, -0.3726, -0.1220, -0.6917, -0.2465, -0.1089, -0.2945, +0.5820, -0.2255, +0.0518, +0.1999, +0.0492, +0.1157, -0.0289, -0.7021, +0.2170, +0.2487, -0.1803, -0.0788, -0.7116, +0.2452, +0.0250, +0.5466, -0.6420, -0.0797, -0.5767, -0.1020, +0.3390, -0.1549, +0.4149, +0.1835, +0.8112, -0.3514, +0.3155, -0.6475, -0.2191, +0.1377, +0.0273, -0.0859, +0.0621, -0.9109, -0.3396, +0.3122, -0.2752, -0.3375, -0.2920, +0.1554, -0.6032, -0.3321, +0.1136, -0.0712, -0.3951, +0.2268, -0.2402, +0.4850, +0.1052, +0.5524, -0.4844, +0.5053, +0.0377, -0.1097, +0.2861, -0.1864, -0.3226, -0.0154, -0.2144, -0.6764, -1.0064, -0.2201, -0.3494, -0.1009, -0.0346, +0.0222, -0.4648, -0.6888, +0.0936, -0.7490, +0.2389, -0.0461, -0.0490, -0.4350, -0.5020, -0.6949, +0.3147, +0.3905, -0.4302], +[ -0.5894, -0.0462, -0.0671, +0.1779, -0.2985, -0.0093, +0.1025, -0.2851, -0.5022, +0.4617, -0.0050, -0.4186, -0.4120, +0.5342, -0.4466, -0.5710, -0.0778, +0.5455, +0.4230, -0.1727, +0.0248, +0.6199, -0.0249, -0.0536, -0.2538, -0.0548, -0.5637, +0.1861, -0.3756, +0.6562, -0.0309, -0.7059, -0.5196, -0.6593, -0.0786, -0.4255, -0.2951, -0.3396, +0.2999, +0.2590, +0.5004, +0.3659, -0.1944, -0.5518, -0.0093, +0.3915, -0.0654, +0.7140, -0.0118, -0.3306, +0.4059, -0.5650, -0.4346, +0.8268, -0.2418, -0.6769, -0.1529, -0.1019, -0.0935, -0.4321, +0.3257, -0.2702, -0.0989, +0.2711, -0.6210, +0.4389, +0.3887, -0.1652, -0.0982, +0.0433, -0.1120, +0.2608, +0.1155, -0.3326, -0.5094, +0.0474, +0.1239, -0.2204, -0.1056, -0.6978, +0.1862, -0.2300, -0.1165, +0.1509, +0.7566, -0.5543, +0.3839, -0.5120, +0.3099, -0.2034, +0.7276, +0.2385, -0.7288, -0.1266, -0.2343, -0.5672, -0.0057, -0.0186, -0.3665, -1.2855, +0.6746, -0.1203, -0.3309, -0.8603, +0.4811, -0.1538, +0.5446, +0.0038, +0.1556, +0.5776, -0.1994, -0.3110, -0.4141, +0.0772, +0.1195, +0.4368, +0.3796, +0.3990, -0.3452, +0.0268, -0.0037, -0.2803, +0.7420, -0.5205, +0.7103, +0.0814, +0.0917, +0.5727], +[ +0.9108, -1.2019, -0.8828, -0.0571, +0.4640, -0.4255, -0.3412, -0.1130, +0.5679, -0.0657, +0.0851, -0.4367, -0.3447, -1.0903, -0.1277, +0.0440, +0.1664, +0.3279, -0.1176, -0.2553, -0.5594, -0.1823, +0.0093, -0.1161, +0.0341, -0.9688, -0.2799, +0.7136, +0.4686, -0.7197, -0.0798, -0.4068, -0.2519, +0.3220, +0.6010, +0.6546, -0.5138, +0.6600, -0.2747, -0.6502, +1.1478, +0.7705, -0.8645, -0.7124, +0.4578, -0.1423, -0.6454, -0.6139, -0.2964, -0.3525, +0.2287, -0.5368, -1.0776, -0.0507, -0.3517, -0.5014, -0.1767, -0.5016, +0.8044, -0.3985, +0.2099, +0.2479, -1.3310, +0.1198, +0.9254, -0.4103, +0.0248, -0.3546, +0.2374, +0.7145, -0.2494, -0.2125, -0.3934, +0.2301, -0.7252, +0.0734, +0.2172, +0.1852, -0.4918, -0.6549, +0.3549, +0.9117, -0.2437, +0.4721, +0.7126, +0.5653, +0.4648, -0.0169, -0.1650, +1.1287, +0.2412, +1.1366, +0.9122, +0.2840, -0.7930, +0.6158, -1.0912, +0.2805, +1.1295, -0.4873, +1.0141, -0.5452, +0.2255, +0.9590, +0.4029, -1.3217, +0.1508, +0.8827, -0.8346, +0.1531, -0.9785, -0.1839, +1.2149, +1.0538, +0.3230, +0.0808, -0.1425, -1.4677, +0.1845, +0.6411, -0.8535, +1.3519, -0.1753, +0.4364, -0.1985, -0.2911, +0.2662, -0.9084], +[ +0.0887, -0.7902, -0.1326, +0.2560, +0.5971, +0.1597, +0.6151, -0.2445, -0.1579, +0.3995, +0.6582, +0.6882, +0.6858, -0.0499, +0.7302, -0.0497, -0.6517, +0.3105, -0.5837, +0.0370, -0.2824, +0.2725, +0.0053, -0.0114, +0.4586, +0.0917, -0.0565, -0.1905, +0.8068, -0.0370, +0.1055, -0.5045, +0.0999, +0.4123, +0.0117, -0.2204, -0.2399, -0.4052, -0.1977, -0.2043, -0.3355, -0.0034, +0.5239, -0.0669, -0.4476, +0.5272, +0.1968, -0.0636, -0.0077, +0.0786, +0.4349, +0.8252, -0.1576, -0.3040, +0.4199, +0.6836, +0.0844, -0.2492, +0.2916, -0.5348, +0.6261, -0.2533, +0.4726, +0.3358, -0.4089, +0.3682, -0.2293, +0.3252, +0.1088, -0.0533, +0.3884, -0.1629, +0.2775, -0.3031, -0.0119, +0.5219, -0.3374, -0.1560, +0.0500, +0.3756, +0.5114, -0.2009, +0.1710, -0.4174, +0.2280, -0.2902, +0.4603, +0.2395, -0.0964, +0.2353, -0.0310, -0.4563, -0.4219, -0.1862, -0.6264, -0.6686, +0.2240, +0.1773, +0.2184, -0.3676, +0.7615, +0.0471, +0.3136, -0.1120, -0.1764, -0.5694, +0.7293, -0.0837, +0.0061, -0.3985, -0.5278, -0.2859, +0.0929, -0.1284, -0.0300, -0.0944, -0.0390, +0.2991, -0.1451, +0.1105, -0.4419, -0.7432, -0.2460, -0.5057, +0.6673, +1.0114, +0.1792, +0.3065], +[ -0.6564, +0.6125, -0.3640, +0.1619, -0.2321, +0.5720, +0.6131, -0.5911, +0.5526, +0.3226, -0.1944, -0.1839, +0.3572, +0.4781, +0.3407, +0.1641, +0.3172, -0.0047, -0.5162, -0.1206, -0.3861, +0.1791, -0.3154, +0.2562, -0.3293, +0.0456, +0.4672, -0.3446, -0.1234, +0.3884, +0.1968, -0.0986, +1.2169, +0.3088, +0.1092, -0.5128, -0.1868, +0.1527, -1.0628, +0.2786, +0.8325, +0.4390, +0.7205, +1.3926, +0.7260, +0.1448, +1.1186, -0.5237, +0.7353, +0.2267, -0.2913, +0.6712, -0.2731, +0.4048, +0.2022, +0.2905, -0.1395, +0.1775, +0.3433, +1.9090, -0.5115, -0.0573, +0.3704, -0.0411, -0.9364, -0.3512, -0.2041, +0.1542, +0.2627, -0.5482, +0.0865, +0.1783, -0.2311, -1.5702, -0.0176, +0.8767, -0.4654, -0.1130, -0.1795, +0.6021, +0.3102, -0.4057, +0.4632, -0.0942, +0.4566, +0.0989, -0.5076, -0.3882, +0.3039, +0.5014, -0.5293, -0.0868, -0.4451, -0.5433, -0.0461, -0.2973, +0.3207, -0.6808, -1.2056, +0.7728, +0.4685, +0.2351, +0.2659, -0.2359, -0.9062, +0.7528, -0.1476, +0.6847, +0.1755, -0.0489, +0.6044, +0.9700, -0.9183, +0.1199, +0.1771, -0.5627, -0.3509, -0.0693, +0.4640, -0.0557, +1.0644, -0.7226, +0.1818, -1.0610, -0.7919, +1.0787, -0.1449, +0.6288], +[ -0.2821, +0.1942, +0.0717, -0.1533, +0.2884, +0.0299, -0.4759, +0.1094, +0.0928, -0.5330, -0.4834, +0.1220, +0.4441, +0.0950, -0.2181, -0.3184, -0.1734, +0.2083, -0.0679, +0.0449, +0.1293, -0.2203, -0.4006, +0.1973, +0.4127, -0.1489, +0.2313, +0.1979, -0.3278, -0.0182, +0.1668, +0.5720, +0.0830, -0.4511, -0.0183, +0.3112, -0.1480, +0.4522, -0.4363, -0.0033, +0.0456, -0.3984, -0.1388, -0.1651, -0.5918, +0.5272, -0.3076, +0.3667, -0.1151, +0.8332, +0.0800, -0.0647, -0.0477, -0.1672, -0.2390, +0.3837, -0.0609, +0.1687, +0.2350, +0.0576, +0.1809, -0.9367, +0.5738, +0.5234, +0.0063, +0.5833, -0.1264, -0.1810, +0.2093, +0.3804, +0.4890, +0.1374, -0.3955, -0.2193, -0.3411, -0.2258, +0.3689, -0.2886, +0.1800, +0.2246, -0.3125, +0.5031, -0.1732, +0.4497, -0.2867, +0.1692, +0.2127, +0.2622, -0.1449, +0.4516, +0.3948, -0.5770, -0.2663, +0.1198, -0.4118, -0.2319, +0.0458, +0.7989, -0.2666, +0.5099, +0.1698, -0.2164, -0.1695, -0.3694, +0.4706, +0.2198, +0.2426, +0.3539, +0.2527, -0.1951, -0.3628, +0.2259, +0.2184, +0.3123, +0.1581, -0.4492, -0.1066, +0.1484, +0.3531, +0.0580, +0.1617, +0.3627, -0.7292, -0.4043, -0.6717, +0.4356, -0.2808, -0.2858], +[ -0.3475, -0.0438, +0.3943, -0.9454, -0.0676, +0.5420, +0.0486, -0.3051, -1.0394, -0.5628, +0.1000, +0.4686, +0.1047, +0.6092, -0.0295, -0.0841, -0.6189, -0.2652, +0.6656, +0.4027, -0.3481, +0.0851, +0.0883, +0.2802, -0.2617, -0.4973, +1.1301, -0.8747, -0.0359, +0.0684, -0.3017, -0.3851, +0.0739, +0.0212, -0.1619, -0.4641, -0.3448, -0.2891, -0.1347, -0.4114, +0.0257, -0.1971, -0.7760, -0.0600, -0.7219, -0.2177, -0.7149, -1.4175, +0.4650, +0.2970, +0.2164, +0.1605, +0.2960, -0.0941, -0.6133, -0.3279, +0.2995, -0.7627, -0.4375, -0.2131, +0.5522, -0.1457, +0.3077, +0.3471, +0.2723, -0.3329, +0.6586, -0.2858, -0.9763, -0.1005, +0.4768, -0.2830, +0.3709, +0.2231, -0.2970, -0.0227, +0.4660, +0.0485, -0.1268, +0.2986, -0.1887, -0.2624, +0.6477, -0.3838, +0.2028, +0.1874, -0.1547, -0.7356, -0.2964, -0.5112, +0.5242, -0.2078, -0.3975, -0.0907, +0.5330, +0.1397, -0.5146, +0.2458, +0.5131, +0.2961, -0.1090, -0.0372, +0.2060, -0.2964, +0.8767, +0.3651, +0.5461, +0.7021, -0.7075, -0.3400, -0.9134, -0.0393, +0.3066, +0.0670, -0.2127, -0.0001, -0.0257, +0.0683, +0.1032, -0.4013, +0.4372, +0.7734, -1.0677, -0.5434, +0.0179, +0.1156, +0.5057, -0.7392], +[ +0.6845, -0.4383, +0.4872, +0.0337, -0.5214, +0.3372, -0.2544, +0.3252, +0.1244, -0.0537, +0.3436, +0.0441, -0.1664, -0.1286, +0.9051, +0.6243, +0.1279, -0.3978, -0.4463, -0.6320, -0.4879, -0.0646, -0.0833, -0.0981, -0.1637, -0.0102, -0.5135, -0.3484, -0.3294, +0.1523, +0.7086, +0.1241, +0.1427, -0.1268, -0.2152, -0.4389, -0.3871, -0.2253, +0.2274, +0.1638, +0.3830, +0.0758, +0.2766, -0.4313, -0.3447, +0.5139, +0.0702, -0.7301, +0.2489, -0.2315, +0.4823, -0.1761, +0.1126, -0.2033, +0.6136, +0.1210, +0.4397, +0.2120, -0.3228, -0.0294, +0.0316, -0.0530, -0.5844, +0.1468, +0.5722, +0.5126, -0.3906, +0.1985, +0.4183, -0.4121, +0.5311, -0.0552, +0.1256, +0.5112, -0.1565, +0.4151, -0.0674, -0.7475, -0.0087, +0.4671, -0.3835, -0.8014, -0.0984, -0.4115, +0.4680, -0.4746, +0.0263, +0.2254, -0.4636, -0.0526, +0.0329, -0.6224, +0.1628, +0.1484, +0.2757, +0.1010, -0.0662, +0.1431, +0.3350, -0.0244, -0.0363, -0.2423, +0.2825, +0.4420, +1.0574, -0.5121, -0.1705, +0.4002, +0.0021, -0.4088, -0.0184, +0.1179, +0.4331, -0.3388, -0.2149, +0.5182, +0.7147, +0.2308, -0.2920, +0.2585, -0.0006, +0.2654, -0.0136, +0.3788, -0.3258, +0.4393, +0.1283, +0.1638], +[ -0.3958, -0.1723, +0.0041, -0.1713, +0.1163, +0.9317, +0.1024, +0.3821, -0.5272, -0.1965, -1.2950, -0.0896, -0.0509, +0.4697, -0.9789, +0.9504, +0.9781, +0.1087, +0.3547, +0.1490, -0.6933, +0.0642, -0.2842, -0.4972, -0.3845, +0.2326, -0.2337, -0.7827, -0.0600, +0.5650, +0.8874, -0.3840, -0.6595, -0.6787, -0.4388, -0.8687, -0.2893, -1.0843, +0.3562, +0.1733, +0.4882, -0.2395, +0.3340, +0.3259, +0.0118, +0.3943, -0.1122, +0.0261, +0.2895, -0.1793, -0.6270, +1.0038, -0.4197, +0.1312, +0.5332, +0.2492, +0.1200, +0.6193, +0.0708, -0.0898, -0.4113, -0.2571, -0.3703, +1.3534, +0.3064, -0.3420, +0.0751, -0.2390, +0.4730, -0.0710, -0.6082, -0.0621, -0.7128, +0.0342, -0.2973, +1.0688, +0.5756, -0.4482, -0.7317, +0.6677, -0.2893, -1.0595, +0.5063, +0.2384, -0.0241, -0.0483, +0.5890, +0.4075, +0.2774, -0.3506, -0.3246, -0.1290, -0.4692, -0.5019, -0.5848, -0.3720, +0.3620, -0.2611, +0.8221, +0.1117, +0.1067, +0.5905, -0.3737, +0.1316, +0.4962, -0.1595, +0.1623, +1.0253, +0.4063, -0.3844, +0.5407, +0.2100, -0.2984, +0.8594, -0.7372, -0.1105, +0.5597, +0.1740, -0.9340, -0.2020, -0.1063, +0.4312, +0.1656, -0.8614, +0.0234, +0.4053, +0.2024, +0.0626], +[ +0.3669, +0.3593, -0.0679, +0.3940, -0.9204, +0.1025, -0.1689, +0.6320, +0.3582, -0.2730, -0.3401, +0.5420, +0.1045, -0.1997, -0.4225, +0.5526, +0.3061, -0.3005, +0.1425, +0.2908, +0.0791, +0.3145, -0.3164, -0.2949, -0.2283, -0.5429, +0.1733, +0.1975, +0.1159, +0.3973, -0.5349, +0.1466, -0.2287, -0.4473, -0.4484, -0.1103, +0.4081, -0.2773, +0.3694, -0.6277, -0.0604, -0.2044, +0.2405, -0.8861, -1.1240, +0.0556, +0.0223, +0.0884, -0.6452, +0.0812, +0.2555, -0.5136, -0.2579, -0.0254, +0.4603, -0.3547, +0.2863, +0.0858, -0.2448, -0.1999, -0.3094, -0.7570, -0.1114, -0.0045, +0.6206, -0.2205, -0.0834, -0.5264, +0.5787, +0.2510, +0.3055, +0.6086, +0.1200, +0.0357, -0.1737, -0.1313, +0.4764, -0.3230, -0.3782, +0.3621, -0.2281, -0.4303, +0.5640, +0.5459, -0.0745, -0.2958, +0.1598, -0.2153, +0.2673, +0.4034, +0.0226, +0.1286, -0.3545, -0.4070, -0.2406, -0.1634, -0.0783, +0.6329, +0.3980, -0.2605, +0.2381, -0.2010, -0.1000, +0.3910, +0.0025, -0.2878, +0.0189, +0.2230, +0.4205, +0.1812, +0.0964, -0.6297, +0.2513, -0.2243, +0.0616, +0.2949, -0.8054, -0.0157, -0.1560, -0.4856, +0.1065, -0.3170, -0.3207, -0.4832, -0.1724, -0.1985, +0.1615, -0.5231], +[ +0.1502, +0.1263, +0.3691, -0.2445, -0.2294, +0.1696, +0.4260, -0.4073, -0.3526, -0.0995, +0.0118, -0.2520, -0.5770, +0.1645, -0.5140, -0.1315, -0.4054, +0.4050, +0.4091, +0.4156, +0.1958, -0.0018, +0.4402, +0.0407, -0.1550, +0.3260, -0.5984, -0.5423, -0.0081, +0.3311, -0.2417, -0.2983, -0.0229, -0.5054, +0.0148, +0.1414, -0.1635, +0.6437, +0.9040, -0.1526, +0.6908, +1.2097, -0.1414, -0.5378, -0.4508, +0.0576, -0.5288, -0.6764, +0.9012, +0.1000, -0.2793, -0.2411, -0.0810, +0.6758, +0.3308, -0.5293, -0.2459, -0.0823, +0.0820, -0.7715, +0.5418, -0.5643, -0.3646, +0.4732, -0.0883, -0.0692, +0.3908, -0.3652, -0.4002, -0.3069, +0.2307, -0.3974, -0.2452, -0.6176, +0.1380, +0.2980, +0.6655, -0.2056, +0.0333, -0.3240, -1.2843, -0.1259, +1.1622, +0.3627, -0.1679, +0.6800, -0.2267, +0.2362, -0.0507, -0.1413, +0.2503, -0.5978, -0.9194, +0.2369, +0.5321, -0.4427, +0.2876, +0.3368, +0.5545, -0.4450, +0.2571, +0.4898, +0.6034, +0.2236, +0.0011, -0.4392, +0.3809, -0.2146, -0.1374, +0.0637, -0.4852, -0.0325, +0.5547, -0.5392, +0.3382, -0.0263, +0.1119, -0.5638, +0.8715, -0.2044, -0.7598, +0.6241, +0.2881, -0.3804, +0.4588, +0.2541, +0.3476, -0.0141], +[ +0.2340, -0.3097, +0.1328, +0.1492, +0.2735, -0.7588, -0.2059, +0.2854, -1.0919, +0.3341, -0.1496, -0.0754, -0.6094, +0.2697, -0.2989, -0.3690, +0.1993, +0.2189, +0.1199, +0.0099, -0.1689, +0.2214, -0.1943, +0.1307, -0.3045, +0.3797, +0.0547, +0.6835, -0.9322, -0.0897, -0.3947, +0.2783, -0.2957, -0.8735, -0.0857, -0.5275, +0.5872, +0.1125, +0.3264, +0.1085, -0.2542, -0.1712, -0.1670, -0.0907, -0.4145, -0.1559, -0.1683, +0.1396, -0.0608, -0.4183, +0.1501, -0.0744, +0.6009, -0.3488, +0.0600, -0.1671, -0.9331, -0.2067, +0.2982, -0.4334, -0.9677, +0.1867, -0.0084, -0.4228, -0.2115, +0.3280, +0.2394, +0.0311, -0.0103, +0.2755, +0.4475, -0.1920, +0.1652, +0.1196, -0.1093, -0.4222, +1.0664, +0.1558, +0.3881, -1.4208, -0.6818, -0.0486, -0.0218, +0.2288, -0.5064, +0.1701, +0.3040, -0.0079, -0.0437, -0.1605, -0.6087, -0.2500, +0.0799, +0.5584, +0.6784, +0.2731, -0.2145, +0.2343, +0.2560, +0.1749, -0.3732, +0.0208, -0.7439, -0.0895, +0.2646, -0.2037, -0.6270, -0.9166, +0.4650, +0.0876, +0.4140, -0.5085, +0.6740, -0.9125, +0.2592, +0.8056, +0.2206, -0.2435, +0.0648, +0.0790, +0.0676, +0.6078, +0.1500, +0.2579, +0.6270, -0.4166, +0.2167, +0.2587], +[ -0.6869, -1.2532, +0.5147, +1.2637, -0.2554, +0.8228, +0.2481, -0.5951, -1.2476, +0.6364, +1.5374, -0.0955, +0.0997, -0.6819, +0.2029, -0.6230, +0.1415, -0.0057, -0.6143, +0.8542, -0.9662, -0.2502, -0.4263, +0.7339, -0.6119, +1.3317, -0.3264, -0.2859, +0.8607, +0.4652, +0.7761, -0.1911, +0.9349, -1.2767, -0.3979, -0.1446, +0.3565, +0.0987, +0.4651, +0.4175, -0.8598, -0.0698, +0.2101, -1.0191, +0.3386, -0.8061, +0.1306, +0.2496, +0.1610, -0.3182, -0.3485, -0.2170, -0.8648, -0.7257, -0.7880, -1.0330, -0.2050, +1.1819, +0.0586, -1.4075, -0.5363, -0.6277, +0.4401, +0.1976, -0.0799, +0.4374, +0.0549, -0.8748, +0.3757, +0.2235, +0.1204, +0.4534, +1.1956, +0.6497, -0.8471, -0.0833, -0.2274, +0.3909, +0.5884, -0.2598, -0.0392, +0.1970, +0.5909, -0.7688, +0.3490, +0.6633, +2.0425, +0.4622, -0.8812, -0.4726, +0.9418, -0.1776, -1.1585, -0.3635, +0.7697, +0.4182, +0.2191, -0.2996, -0.8620, -0.4153, -0.2173, -0.8207, +0.5243, -0.5698, +0.0565, +0.2763, -0.4199, +0.2476, +0.6535, -0.4769, -0.4259, +0.2979, -0.1168, -0.3108, +0.1613, +0.3998, +0.5336, -0.4033, +0.0084, +0.9511, -0.1251, -0.2039, -0.2658, -0.5147, +0.3438, -0.3128, -0.2120, +0.4101], +[ +0.2121, +0.0458, +0.0966, -0.1909, -0.1630, -0.2852, +0.0075, -0.2155, -0.0629, +0.1217, +0.0489, +0.2674, -0.1357, +0.7580, +0.0394, +0.1849, +0.2186, +0.0919, -0.0582, +0.0811, -0.2470, +0.4404, +0.4534, -0.0258, +0.4894, +0.1105, +0.1572, +0.1051, -0.2135, +0.1338, -0.2483, +0.2294, +0.4080, -0.2635, -0.6115, -0.6237, -0.1793, +0.5117, -0.2792, +0.0733, +0.5426, -0.2688, -0.4095, -0.1793, -0.0157, +0.0190, +0.4212, -0.0357, +0.6304, -0.3873, +0.3924, -0.0861, +0.6672, -0.4723, -0.1297, -0.3288, -0.6972, -0.1781, -0.4545, +0.5582, -0.1303, -0.0516, +0.7788, +0.0142, -0.2343, +0.6808, -0.0081, -0.2134, -0.0809, -0.2294, -0.1111, -0.6365, -0.1107, +0.3189, -0.5341, -0.0996, +0.0316, -0.5004, +0.1849, +0.3280, +0.0008, -0.3973, +0.4816, +0.1103, +0.1240, -0.4628, +0.1310, -0.6613, -0.3732, -0.1561, -0.3627, -0.1388, +0.1114, +0.2950, +0.0092, -0.1535, -0.2932, +0.0699, -0.0546, -0.1053, +0.4289, -0.2362, -0.2584, -0.1726, -0.0949, -0.0362, +0.2322, +0.3950, +0.4641, +0.7640, +0.3092, +0.4914, +0.2736, +0.3157, +0.5094, -0.2677, -0.0304, +0.5290, -0.1541, +0.4361, +0.7528, +0.1171, -0.4145, -0.6882, +0.3426, +0.0556, -0.4773, -0.3244], +[ +0.1956, +0.1411, -0.1178, -0.4152, -0.4311, +0.8176, +0.0779, -0.3809, -0.4114, +0.4712, -0.4344, -0.2139, -0.1640, -0.2804, -0.1627, +0.4153, +0.1441, -0.0034, +1.2698, +0.6388, +0.6887, +0.3232, +0.6699, -0.4265, -0.2310, -0.4578, -0.1124, -0.0999, +0.6439, +0.2424, -0.8201, -0.9492, +0.3796, +0.0581, -0.4657, -0.2927, +0.2837, +0.1804, -0.1202, +0.3552, +0.3751, +0.1974, +0.2472, +0.4008, +0.0195, +0.3877, -0.0637, +0.2603, -0.3156, -0.2780, -0.4614, -0.3423, +0.5843, -0.4884, -0.2875, +0.1293, -0.0482, +0.3154, -0.1461, -0.2471, +0.6120, +0.0867, +0.4732, -0.1967, -0.2645, +0.9138, -0.5977, -0.2765, -0.4727, -0.5815, +0.0225, -0.0835, -0.2688, +0.4517, -0.5937, +0.0246, +0.6287, -0.0022, -0.3399, -0.3237, -0.2632, -0.5175, +0.3992, +0.0535, +0.0226, +0.2662, +0.1523, -0.6824, -0.3497, -0.1999, +0.1842, +0.1421, -0.1967, -0.4185, -0.2236, +0.0956, -0.2740, -0.0225, +0.0631, +0.6854, -0.0791, -0.0231, -0.4041, -0.1458, -0.1564, +0.6051, +0.9266, +0.4423, -0.0485, +0.1817, +0.0502, -0.4416, +0.3662, -0.0397, +0.1136, +0.4185, -0.9586, +0.5222, +0.4192, +0.7460, -0.1631, -0.1646, -0.0479, -0.3892, -0.2540, +0.9087, -0.0765, +1.2772], +[ +0.4488, -0.3346, +0.8797, +0.4681, +0.1887, +0.1747, +0.6390, +0.4812, -0.2087, +0.0780, +0.1529, +0.4104, -0.1816, +0.3295, +0.0669, +0.2162, -0.0938, +0.2174, -0.1737, -0.1142, -0.4596, -0.8221, +0.1460, -0.0529, +0.0091, +0.2910, -0.0069, +0.0269, +0.3302, +0.2057, -0.2453, -0.1601, -0.3126, -0.1870, +0.4375, +0.1843, -0.1943, -0.3884, -0.3279, +0.2304, -0.4774, -0.2126, -0.0953, -0.2638, -0.2560, +0.3985, -0.4843, +0.0108, -0.3235, +0.4747, +0.0984, +0.4887, -0.0731, -0.1361, -0.2360, +0.5858, +0.6585, -0.1947, +0.3593, -0.1992, +0.1642, -0.1906, +0.5165, +0.3017, +0.1850, +0.4195, -0.5015, +0.4992, +0.1888, +0.2433, -0.0199, +0.2201, +0.2489, -0.0059, +0.3244, +0.0615, -0.0830, +0.0901, +0.0987, -0.1308, -0.2390, +0.3367, +0.1630, -0.0879, -0.5759, -0.3706, +0.1402, +0.1441, -0.6210, +0.4549, +0.3207, -0.0909, -0.3474, +0.0062, -0.2868, +0.4860, +0.3282, -0.0616, +0.0435, -0.1916, -0.1337, +0.1767, -0.0441, +0.1377, -0.0714, -0.2422, +0.4145, -0.2775, +0.3438, -0.2590, +0.2416, +0.0796, +0.2678, -0.5077, -0.0722, +0.0602, +0.2200, +0.3370, -0.1364, +0.3795, +0.2717, -0.1259, +0.3194, +0.0890, +0.4020, -0.6233, +0.4707, -0.2599], +[ +0.4315, -0.5242, +0.2993, +0.2586, -0.4536, +0.7252, +1.0447, +0.6436, +0.6565, -0.0306, -0.3917, +0.0166, -0.8798, -0.1608, -0.4328, +0.0445, +0.3390, +1.2367, +0.9440, +0.9838, -0.4572, -0.4492, +0.4107, -0.0530, -0.4856, +1.1638, -0.2589, +0.6477, -0.5231, -0.0183, -0.4494, -0.6078, +0.3157, +0.0966, +0.4945, +0.7510, +0.4720, -0.5626, -0.6421, +0.6448, -0.5423, +0.1364, -0.0387, -0.2223, -0.0231, -0.6804, +0.2425, -0.1449, -0.0750, +0.4714, -0.4510, +0.8352, +0.1629, +0.0985, -0.1184, +1.0701, +0.6010, -0.6381, -0.3502, -0.5364, -0.7213, +0.3615, +0.7297, -0.7086, +0.6527, +0.3366, -0.2960, -0.8704, +0.0380, -0.8244, -0.6834, -0.2081, -0.4857, -0.8519, -0.2393, -0.3309, -0.3599, +0.1116, -0.4067, +0.5794, -0.5252, +0.2352, +0.2287, -1.0552, -0.2218, -0.3554, -0.1419, -0.6236, -0.2989, -1.2390, -0.2218, +0.4722, -0.1092, +0.3008, -0.0389, -0.3754, +1.4747, -0.2283, +0.4314, -1.1489, -0.7093, +0.6276, +0.1810, +0.5491, -0.5756, +0.3173, +0.6483, +0.8906, -0.4209, -0.5796, +1.0200, -0.6163, -0.1214, -0.1258, +0.5805, +0.2950, +0.2307, +0.4381, +0.4400, -0.1583, +0.5816, -0.2036, -0.5437, -0.4232, +0.0940, -0.2808, +0.3216, -0.2525], +[ +0.0742, +0.4380, -0.1123, +0.1466, -0.2904, +0.2372, -0.0534, +0.1450, +0.4487, +0.1276, +0.2094, +0.2912, -0.4848, -0.1227, -0.0124, +0.1027, -0.2706, -0.4136, +0.2279, +0.3685, +0.5077, +0.4813, -0.2295, -0.0581, -0.2173, +0.0079, -0.4921, +0.0092, +0.3458, +0.6057, -0.5006, -0.2395, +0.5917, +0.1108, +0.2833, +0.2301, +0.1825, +0.1964, -0.0255, -0.0449, -0.0345, -1.0167, +0.0476, -0.2173, +0.0279, +0.0429, +0.2997, +0.1938, -0.3537, -0.2747, +0.2032, -0.2481, -0.0964, -0.7288, -0.4086, -0.3281, -0.5330, -0.0353, +0.0908, -0.0745, -0.3914, -0.0477, +0.3210, -0.4763, +0.4682, +0.1382, -0.1023, -0.4761, -0.3149, +0.2353, -0.5013, +0.3278, +0.7215, +0.5220, +0.2365, +0.0376, +0.0850, +0.0728, -0.5511, -0.2774, +0.3453, +0.5757, -0.4881, +0.1291, +0.3019, -0.5095, -0.3132, -0.0783, +0.3169, +0.1090, -0.2678, +0.0573, +0.0323, +0.4465, +0.2120, +0.1226, -0.2121, -0.5436, -0.3721, -0.2470, +0.2039, -0.2365, -0.2653, -0.6544, +0.2113, +0.0409, -0.2423, -0.0809, -0.3150, +0.4188, +0.2396, +0.0892, -0.3252, +0.0785, -0.0765, +0.0001, -0.1093, +0.0154, +0.2728, -0.3279, -0.5862, -0.3453, +0.3352, +0.2447, +0.1718, -0.0457, +0.1011, +0.0055], +[ +0.0624, +0.4458, +0.4019, +0.8994, -0.6486, -0.1769, +0.4868, +0.9355, -0.2429, +0.7262, +0.6965, -0.0365, -0.6536, +0.3626, -0.2547, -0.1860, +0.2543, +0.4959, -0.6441, +0.2759, +0.4728, -0.7154, +0.4143, -0.5522, +0.4175, -0.4754, -0.2388, +0.6940, +0.1767, -0.0695, -0.5299, -0.7597, +0.2607, +0.0011, -0.2511, +0.2057, -0.2618, +0.8556, -0.0538, +0.6507, -0.0294, +0.0506, +0.5690, +0.9084, +0.3703, +0.3960, +0.6274, -0.2553, -0.3905, -0.4587, +0.6875, -0.7533, +0.2636, +0.0411, +0.0147, -0.4051, -0.2924, +0.0527, -0.6806, -0.0558, +0.3568, +0.0074, +0.7132, +0.3295, -0.4066, +0.7340, +0.1515, -0.5188, -0.5649, -0.2111, +0.0307, +0.4785, +0.1403, +0.3972, +0.3874, -0.6252, -0.7443, +0.3098, -0.0559, -0.4157, +0.0956, -0.5464, +0.1054, -0.0222, -0.2876, -0.7069, -0.7060, -0.5730, -0.3187, -0.3308, +1.0375, -0.8244, -0.9502, -0.0767, +0.5329, +0.1996, -0.0616, -0.7486, -0.3553, +0.6040, -0.8704, +0.2485, +0.7603, -0.7057, -0.1106, -0.2849, -0.3432, -0.4080, -0.3912, -0.0188, -0.3057, +0.2499, -0.1263, -0.1666, -0.1307, -0.1352, +0.0337, -0.4882, -0.0702, +0.1477, -0.0856, -0.2110, +0.4851, +0.0950, -0.1593, -0.0592, +0.3819, -0.2539], +[ -0.3277, +0.1814, -0.3611, -0.3536, +0.9558, -0.1371, -0.9228, +0.7332, -0.1135, -0.3220, +0.4618, +0.0046, -0.1908, -0.1740, -0.2697, +0.1673, -0.0277, +0.2209, -0.2079, +0.5537, +0.3612, +0.2695, +0.3291, -0.8728, +0.4467, -0.2909, -0.1597, -0.6550, -0.0407, -0.5847, +0.3041, +0.4567, -0.0534, -0.3562, -0.6015, +0.5992, +0.5897, +0.2154, -0.2170, +0.1209, +0.2172, -0.0841, +0.0595, -0.2743, +0.2453, -0.0516, +0.6076, -0.1599, -0.1639, +0.6758, -0.6129, -0.4856, -0.1665, +0.2961, +0.1685, -0.2497, +0.7368, -0.1308, -0.0867, +0.2630, -0.8968, -0.5963, -0.3214, +0.1025, +0.1405, +0.1901, +0.5998, -0.3181, -0.4843, +0.5493, -0.0508, +0.0764, -0.4598, +0.1588, +0.5656, -0.4946, +0.2046, -0.3919, +0.0494, -0.1187, -0.3681, +0.2047, +0.0572, -0.0279, +0.3694, -0.2163, +0.1243, -0.1322, +0.1684, -0.2716, -0.2936, -0.1226, +0.3318, +0.5098, +0.5054, +0.6682, -0.1864, -0.6823, -0.1102, -0.2002, -0.3101, -0.4739, +0.7084, +0.2078, -0.0477, +0.5757, +0.2804, -0.0118, -0.1011, -0.4933, +0.1299, +0.0906, +0.1697, +0.1583, +0.2360, -0.0804, +0.8859, -0.2989, +0.0533, +0.2189, -0.4457, +0.3204, -0.3140, +0.0131, -0.1737, +0.2181, -0.4677, -0.1006], +[ -0.8126, +0.1990, +0.5124, -0.6074, +0.1914, +0.0813, -0.4273, -0.9015, -0.6596, -0.7723, +0.0850, +0.8301, +0.3937, -0.0051, -0.4537, +0.0449, +1.8714, -0.9737, -0.6382, +0.9047, +0.4053, +0.6448, -0.6425, -0.2780, -0.5496, -0.7814, +0.1890, -0.0449, +0.3741, -0.3408, -0.0122, +0.0116, -0.5959, +0.1219, -0.5759, -0.1331, -0.4107, -0.0134, -0.3225, +0.2390, -0.2296, +0.9920, -0.1071, +0.3630, +0.8198, +0.0303, +0.3771, -0.8828, +0.6714, -0.1488, +0.0408, -0.3381, +0.3740, +0.6765, +0.2284, +0.1534, +0.0127, -1.0164, +0.2159, +0.3989, -0.0969, +0.4181, -0.6163, +0.2185, +0.5617, -0.5112, +0.2564, -0.2430, +0.2221, +0.7438, +0.2085, -0.2271, -0.7645, +0.2447, +0.0580, -0.2986, -0.3843, +0.4457, +1.1948, +0.3098, +0.4203, +0.1285, +0.1100, +0.0654, +0.1632, -0.1969, +0.4257, -0.2921, -0.4148, -0.6491, +0.0640, +1.0732, +0.3787, -0.8488, +0.7749, -0.6143, -0.3522, -0.6646, -0.0218, -0.4335, +0.1399, +0.6476, -1.1843, -0.2402, -0.4294, +0.9316, -0.2125, -0.4109, +1.2925, +0.3828, +0.3296, -0.0682, -0.3338, +0.6236, +0.5535, -0.7328, +0.2679, -1.2653, +0.4066, +1.0549, +0.7709, +0.1907, -0.0912, -0.5897, +0.4094, -0.2027, -0.7482, +0.0041], +[ +0.0151, -0.3742, +0.0016, +0.2834, +0.1383, +0.0585, -0.7797, +0.2568, -0.2497, +0.0606, +0.1941, +0.1929, +0.0807, -0.0506, +0.0821, +0.2228, +0.0671, -0.3058, +0.1571, +0.0677, -0.2029, +0.2194, -0.2530, +0.0500, -0.4600, -0.2309, -0.0687, -0.3576, +0.0130, -0.0976, -0.0143, +0.1618, -0.3840, -0.0062, +0.1015, +0.2622, +0.0436, -0.2084, -0.3667, -0.0176, +0.3798, -0.1638, +0.3623, +0.0450, +0.1132, -0.2585, +0.3003, +0.0910, -0.3317, -0.3344, -0.0952, -0.2291, +0.2999, -0.0652, +0.2557, -0.3650, +0.0745, +0.0989, +0.1088, +0.2606, -0.3433, -0.2269, +0.1071, -0.4127, +0.0438, -0.0027, -0.4558, -0.8596, -0.0528, -0.3395, +0.2788, -0.0144, -0.5132, -0.1118, +0.1520, +0.1987, -0.6925, -0.3463, -0.5606, +0.2373, -0.0452, -0.1289, +0.4662, -0.3166, +0.0866, +0.2533, +0.4591, -0.0308, -0.3316, +0.1370, -0.1116, -0.1013, -0.0797, +0.1959, -0.4299, -0.1954, +0.2309, +0.2581, -0.0489, +0.1615, +0.6893, +0.1740, +0.1636, -0.1154, +0.3753, +0.0447, +0.0770, +0.1540, -0.2353, +0.2607, -0.1375, +0.2752, +0.0977, -0.1261, +0.6568, +0.0207, +0.1612, +0.2390, -0.7583, -0.0295, -0.1044, -0.3573, -0.0536, +0.1232, -0.4262, +0.0862, -0.0726, +0.3601], +[ -0.5548, -0.1920, -0.1439, -0.2483, -0.2082, +0.2122, +0.2975, -0.0369, +0.1039, +0.1244, -0.2222, -0.4510, -0.0367, -0.3843, +0.0420, -0.0774, -0.4945, -0.1076, +0.0751, -0.3280, +0.1379, -0.3938, -0.3873, +0.3270, +0.0236, +0.0715, +0.0896, +0.1184, -0.2641, +0.0510, -0.3702, +0.0130, +0.3300, +0.0556, +0.2294, +0.1442, -0.1642, +0.2728, -0.2139, +0.0856, +0.2201, -0.1087, +0.3973, -0.1710, -0.3188, -0.2484, -0.2577, +0.4702, -0.4588, -0.1338, -0.0958, -0.1490, -0.0467, +0.2776, -0.1214, +0.0956, -0.2453, -0.1851, -0.6091, -0.2544, -0.0672, +0.0316, -0.2612, -0.1510, +0.0608, -0.4044, -0.5566, -0.3592, -0.5053, -0.2740, -0.5723, -0.2479, -0.3828, -0.0039, +0.2360, -0.3965, +0.2531, -0.2019, -0.5607, +0.1221, -0.0773, -0.0489, -0.4456, -0.0804, +0.0646, +0.2497, -0.4190, +0.0741, -0.6103, -0.4852, +0.0652, +0.1799, +0.2872, -0.4064, +0.1900, +0.0633, +0.0661, +0.0996, -0.2651, -0.0885, -0.2680, -0.5878, -0.1839, +0.2367, +0.3337, +0.1498, -0.3725, +0.3615, -0.5109, -0.1843, -0.1727, -0.1397, +0.1574, +0.0561, +0.3344, +0.0321, +0.0132, +0.0869, -0.2513, +0.2337, -0.2482, -0.0790, +0.1544, -0.3034, -0.1849, +0.0757, -0.2174, -0.5574], +[ +0.5490, -0.4549, -0.1807, -0.1592, -0.3788, -0.5189, -0.3193, -0.2197, +0.1731, +0.0376, -0.0203, +0.1929, +0.2335, -0.1647, -0.1995, +0.0219, +0.0582, +0.4244, -0.5565, +0.0563, -0.1738, +0.0395, +0.3419, -0.4511, +0.3530, -0.0868, +0.1509, -0.3145, +0.1942, -0.5813, -0.5611, -0.2145, +0.3324, -0.1938, -0.1914, -0.1679, +0.1673, +0.0441, -0.1303, -0.0111, -0.5023, -0.2911, +0.2364, -0.0646, -0.0100, -0.0791, +0.2281, -0.1580, +0.5276, -0.0730, +0.3710, -0.0632, -0.2827, -0.4295, -0.9110, -0.0882, -0.0346, -0.1583, -0.7173, -0.1413, -0.6280, +0.1766, -0.2437, -0.3187, -0.2748, -0.1086, -0.2328, +0.3354, -0.3041, -0.0570, +0.1021, -0.3893, +0.0137, -0.1443, +0.2737, -0.0007, -0.3881, +0.1483, +0.5163, -0.3890, -0.2129, -0.0672, +0.0883, +0.3756, -0.5196, -0.0377, +0.3687, +0.0005, -0.0266, -0.5761, -0.1695, -0.3244, +0.2822, +0.5312, -0.4635, +0.0570, +0.1477, -0.0760, -0.0655, -0.0777, -0.3997, -0.6029, +0.0564, -0.4778, -0.3137, -0.5685, -0.1534, -0.1205, -0.1739, +0.3745, +0.1266, -0.1687, -0.7521, +0.1720, -0.6872, +0.2064, -0.1344, +0.1887, -0.1305, +0.2296, -0.2478, +0.1684, -0.0571, -0.0419, -0.3555, +0.0154, -0.3511, -0.0239], +[ -0.3780, -0.0914, -0.1854, -0.0867, +0.0707, -0.0432, +0.1008, -1.0046, +0.1248, +0.0778, -0.0427, +0.2416, +0.0008, -0.0101, -0.4476, -0.5558, +0.0581, -0.6113, -0.2540, -0.6178, -0.4318, -0.3423, +0.3608, -0.1651, -0.3607, +0.1386, -0.3745, +0.0981, -0.4823, +0.0222, +0.2264, -0.2605, +0.3376, +0.3309, -0.2458, -0.4256, -0.2320, -0.1249, +0.0601, +0.4954, +0.0609, -0.0214, -0.5550, -0.5377, -0.1116, +0.3434, +0.2198, -0.2050, -0.1425, -0.1160, -0.1088, +0.3296, -0.1532, -0.1229, -0.1750, -0.2386, +0.2166, +0.1215, +0.1890, -0.4310, -0.2282, -0.0927, -0.1166, +0.1719, -0.4427, +0.0348, -0.3925, -0.0549, -0.1108, +0.1640, +0.1764, +0.2961, +0.4874, -0.5198, -0.1629, -0.1281, +0.0984, +0.2756, -0.3100, +0.4790, -0.1045, -0.1158, -0.1894, -0.0491, +0.2014, -0.1137, -0.3516, -0.3540, -0.2153, +0.1554, -0.2093, -0.7217, -0.0483, -0.1205, -0.0052, +0.0623, -0.9125, -0.2332, -0.4875, +0.5284, +0.3595, +0.2822, +0.0158, -0.4752, -0.1192, +0.2230, -0.0346, -0.7476, +0.1063, +0.2522, -0.4063, -0.1613, -0.0444, -0.1514, -0.1480, -0.0707, -0.0311, -0.6826, +0.0449, -0.0401, -0.0937, -0.1488, -0.0981, -0.3116, +0.5926, -0.7581, +0.4659, -0.1110] +]) + +weights_dense1_b = np.array([ -0.0148, -0.0390, -0.2168, -0.0866, -0.0677, -0.1575, +0.0077, -0.1385, -0.0953, -0.2318, -0.1402, -0.0267, -0.0565, -0.1655, -0.0944, -0.1856, +0.1183, -0.0606, -0.1517, -0.1972, -0.0256, -0.1761, -0.2543, -0.1125, -0.1902, -0.1462, +0.0160, -0.2130, -0.1644, +0.0530, -0.0384, -0.1030, -0.1822, -0.0219, -0.1597, -0.1946, -0.1177, -0.1970, -0.1569, -0.2162, -0.0256, -0.2618, -0.2127, -0.0910, -0.1862, -0.0517, -0.0811, -0.2137, +0.0810, -0.2098, -0.2763, -0.0980, -0.0986, -0.0983, -0.2186, -0.1723, -0.0822, -0.1072, -0.1466, -0.3015, +0.2120, -0.0178, +0.0700, -0.1122, -0.2641, -0.1767, -0.0722, +0.0859, -0.3453, -0.2988, -0.0838, -0.1928, -0.0916, -0.1749, -0.0969, -0.2420, -0.0859, -0.1487, -0.0692, -0.0028, -0.0989, -0.1322, -0.0582, -0.2906, -0.1255, -0.0026, +0.0352, -0.2485, -0.0592, -0.0695, -0.1047, -0.1616, -0.2268, -0.1474, -0.2683, +0.1161, -0.1794, -0.1011, -0.1924, +0.0348, -0.0169, -0.3281, -0.2085, -0.2750, -0.3329, -0.1793, -0.2296, -0.2289, -0.1589, -0.3225, +0.0159, -0.2951, -0.0156, -0.0544, -0.1193, -0.1563, -0.1691, -0.1292, +0.0228, -0.2741, -0.0235, -0.0564, +0.1007, -0.0648, -0.1383, -0.0235, -0.0557, -0.0005]) + +weights_dense2_w = np.array([ +[ +0.0547, +0.0221, +0.0159, -0.3500, +0.1057, -0.3978, -0.4751, -0.2686, -0.2984, -0.3477, -0.7638, +0.3041, -0.9283, +0.3769, +0.3866, +0.1042, -0.5446, -1.0826, -0.3685, +0.0957, -1.1452, +0.4594, -0.2719, -0.5546, -0.4310, +0.4055, +0.3174, -0.6414, +0.4058, +0.0122, -0.6446, +0.0312, -0.2846, +0.3681, -0.2635, +0.4684, -0.0438, -0.1535, +0.0279, -0.3398, +0.0489, +0.2915, -0.2513, -1.0484, +0.1129, -0.7923, +0.1379, -0.2217, +0.1685, -0.0273, +0.2727, -0.1051, -0.3335, +0.4067, +0.1543, -0.0099, -0.2005, -0.5140, -0.1314, -0.0537, -0.6073, -0.2714, +0.4734, +0.0307], +[ +0.1983, -0.4372, +0.2649, -0.6106, -0.5667, +0.2295, +0.2821, -0.1570, +0.1007, +0.0072, +0.1053, +0.1223, +0.5393, +0.0445, +0.4042, +0.1218, +0.1946, +0.3514, +0.6725, +0.3489, -0.2839, -0.3705, +0.2665, +0.2710, +0.2836, +0.1292, -0.2779, -0.3549, -0.6220, -0.0934, -0.6794, +0.2522, -0.0012, -0.7044, +0.0819, -0.1884, -0.5545, +0.2331, +0.0573, +0.1692, +0.3610, -0.5304, +0.0751, +0.4747, -0.1379, +0.1396, -0.1418, +0.2756, -0.3771, -0.5534, -0.7892, -0.5082, -0.4949, -0.5125, +0.3863, -0.4106, -0.3488, +0.3701, -0.0261, -0.2519, +0.3600, -0.0131, -0.5443, -0.2148], +[ -0.4168, +0.0202, -0.3568, +0.3985, +0.0842, -0.1247, -0.1143, +0.3105, +0.0295, +0.1222, -0.9825, +0.2732, +0.1502, -0.1901, +0.2854, -0.0271, +0.2689, +0.2394, -0.0163, +0.3020, +0.1345, +0.2447, -0.1126, -0.5997, -0.1411, +0.3111, +0.1018, -0.1057, -0.2686, -0.0710, -0.2928, -0.0877, -0.5635, -0.0538, +0.0074, +0.0630, -0.9421, -0.1443, -0.7025, -0.5890, -0.2607, -0.3678, -0.9102, -0.0042, -0.0763, -0.2665, +0.2550, -0.1257, -0.0960, -0.4207, -0.3315, +0.3159, -0.1579, +0.6020, +0.1635, -0.1936, +0.1230, -0.0245, -0.1494, -0.1828, -0.1856, -1.0757, -0.9589, -0.2000], +[ +0.3752, -0.3057, +0.3341, -0.2068, +0.3930, -0.3313, -0.3786, +0.2107, +0.0767, +0.2396, +0.4759, +0.4447, -0.0988, -0.3320, -0.3001, +0.1111, -0.3114, -0.0926, +0.5017, -0.0114, -0.2243, -0.0705, -0.2502, +0.1573, -0.5134, -0.0888, +0.3586, +0.1723, +0.1582, +0.3832, -0.4192, -0.3290, +0.1729, +0.0234, +0.3742, +0.2108, +0.0021, +0.1886, +0.4553, -0.0405, -0.2013, +0.0391, +0.0099, -0.3560, -0.2403, -0.5404, -0.0850, -1.1031, +0.2303, +0.2130, -0.0970, -0.0781, -0.1787, +0.0094, +0.0652, +0.0435, +0.1182, -0.3572, -0.1822, +0.3167, -0.4896, -0.3626, -0.1668, -0.2644], +[ -0.3002, -0.1710, +0.0482, -0.2977, +0.6775, +0.2932, +0.3891, -0.1426, -0.3008, +0.1301, -0.6758, -0.1576, +0.1714, +0.3555, -0.6530, +0.2284, -0.5148, -0.2974, +0.1985, -0.0305, +0.5279, -0.3357, -0.4142, -0.2472, -0.0224, -0.1873, +0.1376, -0.4045, +0.1122, +0.2617, +0.4392, -0.1154, -0.2372, -0.0144, +0.0885, -0.4898, +0.1629, +0.2722, -0.4575, -0.2204, +0.5557, -0.3414, +0.1573, -0.0259, +0.0639, -0.1291, -0.6438, -0.6169, +0.2151, -0.0527, +0.1338, +0.1200, +0.0151, -0.4535, +0.3047, -0.4136, -0.0690, -0.8133, -0.3369, -0.2327, +0.3387, -0.6738, -0.2590, -0.2750], +[ -0.5166, -0.2531, -0.5999, -0.0659, -0.0589, -0.1377, -0.0247, -0.3631, -0.1956, +0.2281, +0.0912, +0.2150, -0.0213, -0.2618, -0.3139, -0.6331, +0.2083, +0.0745, -0.0525, +0.4477, +0.2109, -0.1076, +0.3572, +0.4534, -0.2742, -0.0868, -0.4000, +0.3491, +0.0116, +0.1590, -0.0994, +0.0526, -0.3198, -0.2717, -0.1091, +0.2476, -0.6484, -0.0838, +0.1230, -1.4295, -0.4766, -0.0778, -0.5194, -1.0485, -0.4056, +0.5590, +0.1986, +0.0920, -0.2564, -0.0405, +0.1153, +0.0622, +0.1561, +0.6891, -0.2484, +0.3777, +0.4026, +0.4245, +0.5501, -0.2535, +0.1263, -0.5236, -0.3086, -0.4384], +[ +0.0267, +0.4426, -0.1992, +0.0821, -0.9791, -0.3588, -0.4260, -0.1455, -0.0490, -0.1547, -0.2543, -0.3684, +0.3642, -0.0006, -0.3487, -0.0551, +0.0879, +0.1316, -0.5557, +0.5368, -0.0159, +0.3170, -0.1802, -0.6798, +0.0029, -0.2864, -0.0650, +0.1866, +0.0697, +0.5808, -0.1085, -0.2594, +0.3730, -0.0222, +0.0780, -0.1649, -0.7503, +0.2781, +0.2997, -0.6883, -0.2393, -0.9101, -0.3439, -0.0368, +0.2190, -0.1207, +0.1521, -0.6376, +0.5755, -0.2450, +0.2238, -0.3727, +0.0233, +0.0576, -0.1159, +0.4381, +0.1958, +0.0134, +0.3485, -0.4711, +0.2344, +0.0854, -1.0917, +0.3356], +[ +0.3785, +0.3636, -0.3251, +0.3122, +0.2442, -0.5955, -0.0093, -0.3778, -0.2082, -0.1958, -0.8252, +0.1736, +0.1166, +0.8199, +0.3367, -0.1289, +0.4549, +0.2460, +0.1128, +0.3572, -0.2274, -0.2742, -0.5444, -0.1523, +0.0356, +0.3113, +0.0246, -0.5069, -0.3344, +0.1946, +0.0670, +0.1407, +0.7479, +0.3682, +0.8027, +0.2609, -0.4183, -0.1806, +0.1140, +0.2086, +0.0652, +0.0760, +0.2543, -0.7174, -0.5935, -0.2738, +0.1096, -0.4978, +0.4936, -0.2776, +0.6209, +0.1223, -0.4159, -0.2111, +0.2914, -0.3457, -0.2449, +0.0895, +0.0807, +0.5205, -0.2385, -0.1925, +0.1622, +0.0880], +[ -0.2673, -0.3082, +0.5204, +0.3821, +0.2027, -0.0957, +0.3922, -0.0725, +0.0775, -0.1621, +0.1395, -0.0934, -0.5586, +0.4102, +0.4102, -0.0876, -0.8250, -0.3138, +0.0615, +0.0265, -0.8760, +0.3662, +0.3313, -0.0017, +0.2562, +0.0531, +0.0796, +0.0291, +0.1880, -0.2079, -1.4376, +0.0385, -0.4895, +0.4806, -0.4420, -0.4066, +0.1672, +0.0695, -1.0768, +0.0349, -0.5809, +0.0600, +0.0560, -0.1884, +0.1944, -0.4875, -0.2761, -0.1072, -0.5009, +0.2840, +0.0430, -0.4216, -0.5786, +0.0545, +0.1343, +0.3776, +0.3305, +0.4333, +0.0847, +0.4369, -0.0030, +0.0307, +0.3003, +0.2691], +[ +0.0893, -0.4704, -0.2054, +0.3949, -0.2963, -0.2947, -0.3435, +0.3517, -0.8073, +0.0914, +0.2846, +0.0485, -0.1339, +0.1669, -0.2241, -0.7245, -0.5583, -0.0823, -0.3668, +0.0645, -0.1111, -0.3214, -0.3099, +0.1846, +0.3734, +0.0287, -0.2115, +0.0354, +0.3143, -0.1244, +0.0086, -0.0529, +0.2437, -0.3184, +0.4261, +0.0090, -0.1972, -0.2668, -0.0503, -0.3085, +0.0711, +0.0746, +0.0209, -0.2126, -0.0542, -0.0856, -0.0140, -0.5341, +0.3074, +0.6249, -0.0955, +0.1454, -0.0128, +0.1829, -0.3874, -1.1490, +0.3613, -0.0753, +0.2431, +0.0126, -0.4169, +0.4549, -0.2987, +0.1634], +[ +0.2796, -0.8066, -0.1895, +0.0652, +0.0235, -0.0806, -0.6463, +0.2801, -0.1388, +0.2654, +0.1312, +0.2453, -0.3954, -0.6161, -0.0602, +0.0419, +0.1494, +0.2994, +0.2134, -0.1138, -0.1966, -0.3912, -0.4885, -0.4361, +0.0082, +0.2686, +0.5057, +0.2438, +0.2241, +0.2533, +0.0221, +0.2056, -0.3449, +0.1963, -0.1053, +0.1093, +0.2248, -0.1142, +0.3292, -0.0353, -0.1378, -0.4590, +0.1552, -0.6599, -0.4846, -0.2242, +0.7134, -1.2819, -0.2578, +0.0916, +0.4744, -0.1979, -0.2302, +0.0517, +0.1801, -0.0128, +0.2979, -0.6418, -0.4409, -0.1068, -0.3446, +0.0824, +0.1677, -0.2113], +[ +0.0620, +0.0141, +0.8828, +0.1967, -0.2820, -0.3151, -0.4239, -0.0684, +0.2535, -0.1108, -0.4921, +0.1686, -0.1226, +0.0875, -0.4216, +0.2957, +0.2862, +0.0746, -0.1089, +0.0779, +0.0448, -0.1151, +0.2984, -0.2249, -0.1200, -0.1098, +0.4338, -0.3360, +0.0512, -0.1089, -0.1694, -0.0086, +0.2826, -0.0504, +0.0745, +0.1197, -0.1845, -0.0413, +0.0941, +0.1136, -0.7052, -0.9186, -0.2386, -0.1812, -0.0689, -0.7612, -0.4205, +0.2777, +0.5319, -0.3707, -0.2872, +0.0674, +0.1655, +0.3701, -0.4204, -0.0941, +0.0053, +0.1772, -0.8221, +0.3939, +0.0265, -0.0402, -0.4258, -0.4838], +[ +0.0312, +0.4064, -0.0163, -0.3321, +0.2323, -0.2347, +0.1756, -0.1976, +0.0030, -0.3264, +0.1410, -0.8448, -0.1253, -0.1722, +0.0647, -0.6614, +0.0124, -0.5357, -0.2659, -0.5198, -0.1104, +0.0036, +0.5971, +0.2923, +0.2818, -0.3823, +0.1973, -0.0398, +0.5571, +0.1238, +0.2223, -0.1846, +0.0045, +0.2834, +0.2652, -0.5670, +0.1025, +0.0954, -0.6847, +0.2716, -0.1995, +0.2227, -0.0417, -0.5204, -0.4656, +0.0143, +0.1697, +0.2654, -0.0200, +0.0227, -0.1669, +0.0093, +0.1622, -1.0894, +0.3023, -0.0433, -0.8114, -0.3466, -0.0044, -0.4344, +0.5942, -0.2995, +0.2493, -0.2656], +[ +0.0884, -0.1168, +0.2659, -0.2658, -0.0894, -0.3646, +0.0123, -0.2345, -0.1249, -0.5543, -0.4367, +0.0704, +0.1846, -0.5260, -0.0185, -0.1435, -0.0243, +0.2774, -0.1795, -0.2214, +0.0297, +0.1819, +0.0135, +0.0257, +0.1465, +0.5108, -0.0764, -0.2536, +0.1924, -0.3582, -0.1813, -0.2825, +0.1625, -0.4450, +0.1806, +0.2287, +0.1214, -0.2687, +0.1684, -0.4179, -0.1748, -1.4161, +0.0182, +0.3509, +0.2804, +0.1512, -0.4392, +0.1313, +0.0852, -0.6827, +0.0465, -0.1457, +0.0937, +0.4504, -0.2384, -0.2387, -0.5351, -0.4227, +0.2521, -0.1205, +0.3281, -0.4157, -0.0388, -0.0779], +[ -0.4328, +0.1671, -0.2333, +0.3447, +0.2475, -0.0963, -0.0289, -0.1134, -0.6314, -0.0779, -0.0052, -0.5183, +0.1591, -0.1890, -0.1690, -1.2456, +0.1215, -0.7981, -0.7112, -0.1237, -0.4438, +0.2475, +0.2704, -0.3184, +0.0800, -0.3449, +0.1936, -0.2232, +0.0352, -0.0664, -0.0191, +0.1109, -0.1613, +0.1971, -0.2887, -0.6279, +0.4588, +0.2611, +0.0068, -0.1602, +0.1105, +0.1328, +0.2169, +0.0899, -0.4866, -0.2267, +0.0581, -0.2022, -0.7508, +0.0740, -0.6069, +0.5649, +0.0207, +0.1216, -0.1130, -0.8590, +0.0055, -0.0647, +0.3094, -0.3780, -0.2064, +0.4434, -0.4378, +0.2624], +[ -0.1505, +0.4615, -0.9363, +0.1984, -0.2306, +0.1047, +0.2547, -0.4131, -0.2132, -0.6349, +0.0660, -0.0981, +0.3538, +0.5521, -0.1076, -0.4321, -0.2629, -0.2857, -0.1064, +0.1612, -0.5917, +0.1856, +0.2716, -0.6279, +0.2015, +0.0297, +0.1344, -0.6113, +0.1501, -0.0768, +0.3218, +0.5261, +0.0611, +0.1559, +0.5267, +0.0392, -0.4469, -0.3359, +0.3373, +0.1011, +0.0721, -0.0051, -0.3831, -1.0682, +0.3176, +0.0177, +0.1255, -0.0222, +0.2602, -0.0707, +0.6271, +0.0442, -0.7024, +0.3064, -0.6523, -0.1607, -0.1061, +0.6141, +0.2525, +0.4590, -0.1475, -0.2303, -0.1497, +0.1568], +[ -0.6547, +0.1965, +0.5732, +0.0585, -0.7985, +0.2784, +0.1409, +0.3753, +0.5077, -0.2973, +0.4522, -0.0481, -0.0250, -0.1732, -0.0189, +0.1741, +0.1811, -0.5026, +0.3383, -0.2984, -0.1815, -0.2687, +0.1435, -0.5299, -0.5446, +0.2488, +0.0848, +0.2456, -0.6651, -0.4723, -0.2933, -0.2168, +0.1354, -0.1201, +0.7322, +0.3879, -0.5529, +0.0442, +0.1429, +0.2459, -0.3643, -1.2003, -0.0014, -0.0881, -0.2888, -0.1497, -0.4499, +0.2563, +0.1399, +0.3984, -0.3034, -0.2152, -0.1062, -0.0971, +0.4006, -0.2250, -0.3419, -0.2266, -0.3736, +0.5701, -0.6925, -0.0455, -0.0159, -0.5060], +[ +0.2558, +0.0784, +0.5193, +0.1619, +0.2345, -0.3461, +0.1533, +0.0035, -0.6782, -0.8183, -0.9718, +0.4590, +0.1314, +0.2691, +0.0578, +0.3015, +0.1275, -0.2170, -0.1059, -0.3437, +0.2150, -0.0420, -0.1466, -0.3230, -0.2263, -0.2463, +0.3428, -0.2851, -0.1670, +0.8334, -0.3321, -0.5703, +0.4210, -0.3807, +0.5608, +0.1184, +0.0216, +0.3875, -0.0818, -0.3773, +0.2697, +0.0836, -0.5769, +0.1107, +0.2502, +0.1319, +0.1555, -0.5250, -0.0333, -0.2451, -0.0840, -0.2520, -0.5473, +0.5264, -0.2354, -0.4220, -0.0929, -1.0100, -0.2290, +0.3894, +0.1722, +0.2778, +0.2404, +0.5252], +[ +0.3719, -0.1570, +0.0631, -0.1366, -0.0117, +0.1695, +0.2635, -0.5559, -0.5966, +0.0401, +0.4796, -0.0389, +0.4392, -0.1852, +0.4559, +0.0249, +0.1135, +0.1914, -0.0850, +0.8742, +0.3766, -1.2051, +0.1491, +0.3556, -0.6834, -0.6127, -0.3816, -0.2803, -0.9287, -0.6655, +0.4073, -0.1513, +0.3072, -0.1859, -0.6259, -0.1803, +0.0372, +0.0066, +0.0768, +0.3041, +0.4044, +0.2719, +0.0495, -0.4712, -0.0753, -0.1619, +0.4040, +0.3667, -1.2573, -0.0153, +0.2433, -0.4797, -0.1008, +0.2793, -0.5162, +0.0750, -0.1875, +0.6019, +0.2983, -0.2629, +0.3859, -0.1606, -0.0607, +0.2640], +[ -0.7689, +0.1244, -0.0722, +0.1658, +0.0536, +0.0774, -0.0666, -0.3190, +0.3863, +0.0221, +0.3311, -0.0757, +0.2848, -0.4570, +0.1558, +0.1559, +0.1904, +0.2411, -0.0255, +0.2793, +0.2985, -0.3438, +0.0476, -0.4403, -0.5639, +0.1262, -0.2366, -0.5360, -0.0511, +0.1175, -0.2260, -0.4008, -0.3002, -0.7550, -0.7351, -0.0725, -0.3370, +0.5923, -0.2017, +0.1863, +0.3965, -0.3253, -0.0685, +0.0485, -0.0183, +0.1959, +0.2554, -0.1661, -0.9667, +0.1877, -0.1062, -0.4295, -0.2307, +0.0769, +0.1511, -0.7353, -0.4450, +0.2015, -0.3559, +0.6302, +0.1058, +0.3851, +0.0694, -0.5665], +[ +0.2654, -0.7518, +0.1643, -0.0339, -0.0219, -0.0515, +0.4850, +0.1158, -0.3727, +0.1568, -0.2977, +0.3162, +0.0700, -0.4247, +0.2545, +0.2225, -0.0498, +0.4013, -0.1575, -0.3545, -0.2154, -0.9544, -0.0608, +0.2827, +0.2211, +0.1790, -0.0234, -0.1396, -1.2595, -0.1827, +0.2853, +0.0978, +0.1027, -0.2280, -0.5227, -0.5996, +0.2517, +0.3419, +0.4186, +0.4399, +0.4078, -0.3085, +0.1905, +0.3559, -0.1620, +0.3125, -0.0422, +0.1617, -0.0414, +0.4358, -0.4426, -0.4533, -0.7251, -0.4293, +0.0632, +0.0825, +0.1159, +0.6398, +0.2352, +0.3725, +0.3426, +0.1757, -0.2817, -0.5600], +[ +0.0965, +0.1435, -0.0668, -0.0310, +0.0492, +0.3276, +0.0812, +0.1402, +0.0513, -1.0857, -0.1374, -1.0262, -0.7472, +0.1752, +0.1458, -0.3731, -0.2896, +0.1206, +0.2268, -0.4120, +0.2665, -0.4842, -0.0096, -0.3069, -0.0961, -0.1954, +0.3195, -0.4060, -0.2027, +0.1026, +0.3581, +0.0684, +0.2964, -0.3857, +0.3346, +0.2853, -0.1779, +0.6816, -0.1396, -0.1068, +0.0874, +0.2093, +0.0690, -0.1075, +0.3425, +0.0184, +0.5206, +0.3363, +0.2432, +0.1155, -0.4405, -0.4702, +0.0007, -0.6360, -0.1712, +0.0258, +0.1292, +0.1699, +0.0017, +0.1035, -0.0856, +0.3821, +0.0642, -0.1730], +[ -0.2957, -1.8336, +0.0635, -0.1502, -0.3054, -0.0347, +0.4553, -1.5017, -0.1386, +0.2204, -1.5949, -0.1060, +0.0207, -0.3453, +0.1805, +0.1862, +0.1077, +0.0503, +0.4847, +0.0824, -0.1334, +0.1013, -0.0132, -0.2091, -0.0147, +0.3173, -0.5393, -0.1905, -0.6108, -0.4315, +0.1379, +0.3715, +0.4988, +0.0204, -1.0445, -0.7534, +0.3054, +0.1166, -0.2072, +0.2696, -0.0510, -0.2593, -0.1224, -0.7100, -0.0739, -0.4827, +0.2711, -0.1706, +0.3453, +0.2951, +0.0905, -0.7676, +0.3072, +0.4110, -0.7400, -0.0282, +0.3160, +0.0045, +0.3315, -0.1876, -0.5153, -0.0300, +0.0528, -0.0902], +[ -0.0392, -0.2831, -0.8638, +0.0181, -0.1839, +0.1190, +0.1256, +0.0349, +0.0335, +0.3621, +0.0015, -0.0992, -0.2544, -0.6373, -0.5993, +0.3642, +0.0229, -1.3911, +0.0442, +0.3622, -0.0907, +0.0980, -0.1975, +0.2308, -1.1896, -0.4979, +0.1135, -0.0943, +0.0679, -0.0002, -0.0083, -0.8543, +0.2544, -0.0756, -0.9005, -0.0970, -0.0499, +0.2011, -0.0504, -0.4152, -0.1189, +0.0047, +0.1132, +0.1040, -0.0365, -0.1372, +0.0665, -0.3832, -0.3141, +0.0644, -0.0858, -0.2961, +0.2374, +0.3307, +0.2823, -0.0944, -0.1386, -0.1009, +0.1643, -0.8802, -0.2065, +0.2246, +0.1913, -0.0572], +[ -0.1170, -0.4247, +0.2971, -0.0218, +0.2794, -0.3040, +0.1894, -0.0772, -0.4478, +0.0155, -0.8504, -0.2509, -0.0805, +0.0955, +0.2145, +0.3553, -0.4790, +0.0649, -0.0476, -0.0949, -0.0201, +0.0573, +0.1713, +0.0237, -0.1585, +0.2141, -0.3027, -0.2567, -0.1553, +0.1717, -0.2864, +0.1060, -0.0100, -0.7441, -0.0440, -0.5248, +0.4325, +0.0117, -0.0124, +0.4722, +0.3972, +0.3061, -0.0881, +0.0888, +0.1247, +0.0465, -0.3472, +0.0608, +0.1640, +0.0900, +0.0040, -0.2854, -0.3570, -0.2206, +0.4373, -0.0944, -0.0799, -1.0422, +0.0771, -0.6116, +0.5273, -0.0734, +0.0059, +0.0125], +[ -0.1478, -0.0775, -0.4148, +0.2235, +0.0244, -0.4050, -0.1933, -0.1451, +0.3546, +0.4780, -0.0377, +0.3747, -0.2634, +0.1820, -0.2871, -0.0375, -0.1472, -1.0087, +0.3116, +0.0882, +0.1714, -0.1267, +0.0243, +0.1244, -0.6763, +0.3206, +0.1243, +0.3372, +0.0311, +0.2017, -0.1272, +0.1254, +0.2171, +0.1646, -0.3122, -0.2863, -0.0401, +0.0408, +0.2649, -0.9490, +0.1101, +0.0612, +0.0200, +0.0067, -0.1735, +0.4192, +0.5672, -0.4306, -0.2337, +0.1219, -0.0581, -0.6563, +0.2676, +0.0907, +0.0774, +0.3393, +0.3514, -0.5195, +0.2571, -1.0322, -0.3714, +0.1705, -0.2050, -0.1214], +[ +0.2841, +0.2037, +0.0734, -0.3167, -0.2534, +0.3772, +0.3707, -0.0807, +0.2971, +0.1787, +0.0742, -0.7424, +0.0534, -0.6033, -0.2538, -0.1693, -0.0417, +0.1408, -0.0786, +0.0125, -0.2959, +0.3026, +0.1068, +0.3710, -0.0259, -0.2119, +0.2311, +0.1579, +0.4271, -0.1637, -0.1047, -1.4823, +0.1537, -0.6320, +0.0265, -0.3799, +0.2478, -0.5812, -0.1404, -0.0219, -0.1906, -0.0507, +0.1606, +0.3727, +0.2747, +0.0747, -0.1603, +0.3651, +0.0592, -0.2988, +0.1446, -0.4449, +0.0282, +0.1628, +0.1572, -0.9307, -0.5926, +0.0564, +0.4344, -0.2915, -0.0055, -0.0388, -0.2319, +0.0708], +[ -0.1260, -1.1956, -0.3519, -0.1696, -0.5884, -0.3108, -0.2285, +0.2627, +0.3962, +0.0449, +0.0626, +0.2328, +0.0144, +0.1303, +0.3914, -0.8420, +0.4524, -0.4737, -0.5874, -0.2379, -0.0688, -0.0159, +0.1504, -0.8424, -0.3590, -0.3149, -0.3955, -0.0819, -0.2932, +0.1551, -0.0380, -0.3986, -0.0895, -1.1964, +0.2346, +0.0107, -0.5550, +0.0978, -0.2178, -0.0702, +0.0130, -0.0487, +0.1236, +0.2701, -0.0855, -0.6003, +0.0025, -0.4898, -0.4901, +0.3732, -0.1348, -0.0001, +0.0022, +0.4124, -0.2319, -0.8846, +0.1981, +0.3517, +0.3260, +0.2913, -0.6865, -0.1172, -0.1017, -0.2988], +[ -0.1994, -0.0318, -0.6611, +0.0667, +0.0348, -0.2005, -0.0708, -0.8554, -0.2964, +0.1114, +0.2106, -0.3456, +0.0631, -0.6458, -0.4482, +0.4112, +0.4312, +0.0396, -0.8510, +0.3383, -0.3657, -0.3998, -0.0279, -0.3247, +0.2809, +0.0671, -0.1980, -0.3156, -0.1614, +0.1241, +0.1267, +0.0882, -0.8523, +0.3680, -0.1008, +0.3258, +0.7330, -0.0226, +0.2324, +0.2983, -0.4784, -0.0821, -0.3784, -0.5416, -0.0020, +0.0128, -0.1557, +0.1735, -0.0400, +0.3065, +0.0703, -0.1273, +0.3064, -0.0101, -0.5155, +0.1910, +0.0411, +0.2573, -0.3383, +0.1305, +0.0244, -0.0700, -0.5478, -0.2243], +[ +0.6525, -0.1060, +0.0967, -0.2523, -0.0679, -0.2359, -0.1002, -0.1302, -0.2785, -0.0323, -0.2069, -0.4863, +0.4068, -0.2921, +0.0689, +0.0659, +0.3440, +0.0730, -0.2341, +0.1442, +0.0321, -0.4033, +0.3169, +0.2174, -0.3649, -0.3458, -0.0410, +0.1900, -0.3263, +0.0535, +0.2253, -0.0717, +0.2190, -0.3860, +0.4562, -0.0471, -0.6580, +0.1243, +0.0968, -0.0801, +0.2969, -0.1420, +0.0635, +0.3387, -0.0512, +0.0064, +0.3651, -0.0423, +0.0007, -0.5414, -0.1172, -0.1081, -0.1545, -0.0802, -0.9081, +0.1538, -0.0143, +0.0015, -0.2125, -0.1439, +0.3589, -0.6707, -0.6915, +0.2103], +[ +0.1954, +0.0473, +0.0005, -0.2376, +0.2730, -0.2364, +0.1537, -0.3518, -0.2333, -0.6985, +0.1143, -0.4291, -0.4548, -0.0803, -0.5521, -0.4564, -0.5651, -1.0630, +0.1796, -0.0002, +0.0015, -0.3317, -0.7872, -0.0555, -0.0872, -0.0989, -0.2793, +0.2904, -0.2892, +0.2572, +0.2525, -0.3601, +0.1851, -0.3061, +0.4080, -0.9798, -0.0559, -0.0152, -0.2210, -0.2351, -1.2633, -1.3520, +0.1842, -0.8754, -0.3290, -0.2398, -0.1657, -0.3064, +0.4170, -0.1810, +0.3617, -0.0774, +0.1052, -1.0043, -0.0412, +0.1861, -0.0364, -0.0832, -0.3337, -0.0208, -0.4717, +0.2991, +0.5363, -0.7141], +[ -0.2813, -0.3716, -0.0886, -0.5633, +0.1087, +0.1772, -0.0322, -0.1692, +0.3300, -1.0514, -0.1952, -0.5817, +0.1098, +0.2299, +0.1408, -0.8174, -1.5817, -0.0897, +0.4067, -0.8538, +0.2466, -0.2321, -0.0760, +0.3167, +0.1953, -0.0280, +0.1107, -0.1015, +0.1602, -0.1283, +0.0893, +0.2528, +0.3058, +0.4486, +0.0661, -0.6155, +0.1135, -0.0380, -0.1616, -0.2837, +0.0692, +0.0797, -0.0934, +0.1645, -0.6896, -0.1260, +0.0314, -0.0450, -0.2893, -0.1417, -0.0603, -0.3250, +0.2633, -0.4442, -0.2169, +0.0100, -1.6046, -0.8446, +0.0547, -0.2022, +0.1854, +0.2163, +0.1098, -0.4998], +[ -0.2718, +0.0985, +0.1143, +0.5034, +0.1062, -0.2774, +0.0928, +0.4507, -0.2889, +0.1647, +0.1606, -0.5096, +0.0797, +0.2081, +0.1015, -0.0662, -0.5561, +0.0133, -0.1913, +0.4173, -0.2062, -0.0683, -0.0707, -0.3881, -0.1940, -0.1059, +0.1708, -0.0068, +0.4992, +0.1805, -0.0863, -0.1116, +0.2974, +0.6512, +0.2988, -0.7671, -0.3240, -0.2382, -0.3154, -0.4172, -0.0090, +0.3568, +0.0629, -0.4475, +0.0085, +0.3164, +0.8345, -0.9105, +0.4016, +0.0489, +0.1487, -0.1455, -0.0914, +0.3481, -0.0170, -0.2977, +0.0686, -0.3068, +0.4279, +0.1365, +0.0191, +0.3697, +0.2504, -0.2336], +[ -0.4281, -0.1639, -0.6842, -0.0854, -0.3867, +0.1215, +0.2188, -0.0905, -0.0237, +0.3002, -0.1625, -0.0496, +0.2249, +0.0999, -0.0021, -0.0105, +0.0438, -0.2453, -0.7972, -0.0544, -0.6363, +0.4864, +0.1242, +0.0230, +0.3307, -0.4536, -0.1405, +0.2291, -0.3801, -0.1614, -0.0584, +0.2719, -0.2294, +0.1266, -0.7109, -0.3877, +0.3089, -0.3075, -0.5052, +0.2617, -0.8302, -0.1543, +0.4105, -0.1404, -0.2835, -0.1752, -0.3642, +0.1386, -0.1469, +0.3241, +0.0407, +0.1294, +0.0788, -0.0815, -0.7150, +0.2538, +0.5408, +0.5778, +0.2923, -0.3580, -0.0519, +0.2803, +0.0072, +0.1857], +[ +0.1413, -0.4943, -0.6837, +0.2482, -0.1298, -0.2851, -0.0800, -0.9522, -0.0827, -0.4602, +0.1367, +0.2338, +0.4496, +0.0029, -0.6388, -0.3566, -0.1129, -0.2587, +0.1929, +0.2315, -0.1974, +0.1578, +0.2540, +0.2304, +0.0193, -0.2805, -0.0064, -0.3831, +0.2310, +0.2366, -0.0409, +0.0743, -0.6095, +0.3397, -0.5128, -0.0056, +0.3138, +0.4122, +0.0952, -0.1192, -0.1181, -0.1224, +0.3857, -0.1165, -0.0761, -0.5138, -0.4998, -0.1310, -1.3272, -0.0823, +0.2054, +0.3836, +0.1094, -0.1651, +0.1319, +0.0349, +0.0455, +0.3051, -0.2890, -0.3378, +0.4504, -0.4409, +0.0342, +0.2857], +[ -0.6909, -0.2404, -0.5480, +0.1982, +0.7179, -0.1566, +0.5150, -0.3021, -0.1896, +0.3692, -0.2610, +0.1676, +0.2646, -0.0779, -0.6376, -0.4375, +0.0814, -0.0594, +0.1491, +0.6636, -0.0098, -0.4666, -0.5695, -0.4680, +0.3753, -0.2631, -0.3479, -1.0949, -0.1768, -0.0397, -0.2667, +0.2302, -0.3895, +0.2984, -0.1895, -0.1393, -0.1342, +0.5137, +0.0543, -0.1336, -0.0678, -0.9658, -0.4799, +0.4449, -0.0855, -0.0889, +0.0750, -0.0107, -0.8546, -0.1215, -0.0314, +0.0430, +0.4070, -0.4824, +0.0688, +0.3415, +0.0656, +0.0570, +0.0387, +0.4817, +0.1426, +0.0509, +0.0760, -0.4065], +[ +0.4383, +0.1584, -0.0754, +0.1745, +0.0786, +0.2143, +0.1374, +0.0865, +0.4707, -0.6604, +0.4382, +0.2705, -0.0253, +0.2995, -0.4382, -0.0289, -0.4109, +0.0659, -0.0184, +0.3955, -0.0828, -0.7735, -0.0186, -0.3625, -0.3181, -0.1457, +0.3396, -0.2431, -0.1825, +0.1364, +0.1260, +0.0534, +0.2614, -0.0357, +0.2487, +0.1936, +0.4056, +0.2736, +0.3650, +0.2727, +0.3510, +0.0828, +0.1987, +0.0946, -0.3942, +0.2064, +0.1439, +0.1201, -0.4372, +0.2936, +0.1877, +0.1580, -0.2083, -0.2638, +0.0890, -0.4047, +0.0004, -0.0605, -0.2715, +0.0797, +0.1276, +0.4446, -0.2733, +0.2584], +[ -0.5070, -0.6084, +0.1098, +0.2952, +0.3233, +0.1273, -0.1590, +0.4029, -0.0075, -0.2986, -0.0453, -0.0251, +0.0636, -0.3285, +0.3005, +0.4278, -1.2692, -0.3260, -0.3904, -0.4674, -0.1919, +0.1708, -0.2957, -0.3654, +0.0608, +0.3880, -0.3380, -0.0002, -0.1227, +0.0483, -0.3408, +0.2696, -0.2904, -0.8352, +0.2176, -0.8516, +0.1110, -0.0138, -0.6308, -0.2065, +0.5916, -0.0596, -0.0420, +0.4001, +0.1048, -0.1863, +0.2619, +0.0696, +0.2273, -0.1749, -0.4023, +0.4499, -1.5990, -0.4454, -0.0222, -0.4018, -0.3324, +0.1569, -0.0777, +0.0774, -0.2870, +0.2780, +0.1298, -0.5494], +[ +0.4041, +0.2116, +0.1746, +0.3060, +0.3644, +0.2566, -0.2467, +0.0528, -0.1645, -0.2514, +0.3191, -0.0146, -0.2756, -0.1343, -0.1539, -0.4656, -0.0026, -0.0629, -0.3565, -0.7495, -0.6157, -0.2922, +0.0272, +0.3853, -0.3030, +0.1152, +0.6219, +0.0596, +0.2660, +0.3633, +0.3082, +0.4234, +0.1700, -0.7490, +0.6056, +0.0380, -0.1250, +0.1593, -0.0863, -0.3877, -0.0154, -0.6906, -0.1813, -0.1751, -0.0309, +0.0954, -0.0752, +0.1333, -0.3153, +0.0735, +0.2958, -0.0313, -0.0686, -0.0086, -0.3676, +0.4638, -0.0175, +0.0595, +0.4441, +0.0093, +0.2578, +0.1221, +0.0885, +0.2014], +[ -0.5199, +0.6037, +0.1349, +0.0017, +0.1035, -0.1073, +0.4821, -0.2727, -0.7271, +0.4909, -0.4462, +0.0574, +0.2442, -0.4101, +0.2368, -0.0281, +0.1593, +0.2608, -0.1477, -0.0326, +0.1544, -0.2897, -0.3711, -1.0289, -0.1497, +0.3172, -0.6857, +0.1492, -0.0524, +0.1699, +0.0543, -0.1961, +0.0100, -0.5156, -0.5196, +0.0112, -0.3831, -0.2663, -0.4071, -0.5762, -0.4060, -0.1983, +0.4095, +0.0808, +0.1072, +0.2126, +0.1083, -0.3055, +0.4092, +0.0916, -0.0140, +0.0065, -0.2017, -0.8640, +0.0456, -0.0038, +0.2211, -0.3172, +0.0554, -0.1270, -0.1246, -0.0759, -0.3650, -0.3657], +[ -0.3915, -0.5535, -0.1423, -0.3716, -0.7515, +0.3826, +0.1549, -0.0311, +0.1627, -0.5930, +0.5855, -0.1633, -0.5803, -0.2441, +0.4444, -0.0405, +0.5196, +0.3439, -0.7971, +0.3043, -0.1354, -0.3644, +0.4925, +0.1056, +0.1867, +0.3991, -0.6626, +0.1049, -0.0140, -0.8950, +0.1062, -0.0186, +0.0854, -0.2033, +0.1403, -0.3018, -0.6041, -0.4544, +0.3293, -1.0832, +0.0505, +0.1097, -0.4619, -0.3131, +0.5037, -1.0137, -0.3421, +0.1212, -1.0994, +0.0358, +0.4906, -0.0352, -0.1116, -0.1726, -1.1999, -0.4828, +0.3461, -0.2870, -0.1895, +0.0537, +0.0167, +0.0602, -0.2372, -0.1231], +[ -0.2542, +0.8363, -0.2559, +0.0872, -0.1544, +0.1869, +0.4374, -0.4973, +0.3678, -0.8425, -0.9891, +0.1042, +0.1624, -0.0964, -0.1170, +0.2177, +0.1344, -0.3417, +0.5302, -0.3181, -0.8319, -0.0489, -0.3692, +0.3340, -0.1902, -0.0889, -0.0784, -0.2664, -1.1404, +0.2895, +0.0599, +0.0680, +0.4447, -0.1955, -0.2036, +0.1605, -0.4091, +0.3005, +0.4971, +0.0056, -1.0584, -0.9754, +0.4259, -0.4642, +0.3212, -1.0444, -0.4395, +0.1104, -0.2354, -0.2754, -0.1138, -0.1852, +0.5298, -0.1715, -0.6177, -0.5564, -0.5845, -0.9398, -0.5432, -0.4941, -0.5598, -0.2745, -0.7410, +0.0811], +[ +0.3484, +0.2363, -0.2313, +0.2903, +0.0599, +0.1981, +0.0264, +0.0365, -0.6788, +0.5058, +0.5024, -0.1606, -0.1466, +0.0896, -0.1695, -1.3626, +0.2203, -0.0972, -0.0547, -0.2063, +0.3971, -0.3022, -0.0741, +0.4433, +0.0614, +0.0450, -0.2246, -0.3360, -0.5529, +0.0350, -0.2026, -0.1587, -0.1705, +0.0967, -0.3402, +0.2256, +0.0723, +0.2559, +0.2409, +0.0809, +0.2522, +0.1735, +0.2135, -1.4875, -0.6041, +0.3822, -0.0542, -0.7500, +0.2439, +0.2342, -0.2002, +0.2322, -0.7495, +0.1338, +0.0136, -0.5508, +0.0944, +0.1229, -0.3225, +0.2776, -0.0289, +0.0075, +0.1089, +0.4093], +[ -0.4983, -0.0860, -0.6441, +0.0981, -0.1997, -0.1528, -0.3994, -0.0600, -0.1746, -0.2651, -0.2522, +0.0370, -0.0651, -0.1543, -0.0061, -0.1030, -0.8072, -0.5816, -0.1532, -0.4045, +0.0006, +0.2646, +0.4261, +0.3321, +0.1915, -0.0374, -0.2416, +0.2430, +0.2274, +0.1678, -0.1648, +0.5931, -0.3600, -0.0454, -0.2038, +0.3763, +0.1858, -0.1298, -0.5252, +0.4314, +0.3626, -0.6726, -0.1011, +0.0262, -0.1636, +0.1911, -0.8712, +0.5409, +0.0053, +0.4764, -0.5827, +0.2690, +0.1905, -0.2930, -0.5309, +0.0933, +0.6593, +0.0569, +0.1535, -0.0866, -0.2559, -0.1172, -0.7115, -0.0318], +[ -0.3941, +0.2379, -0.7244, -0.5779, -0.1544, +0.0214, +0.1138, -0.0033, +0.2314, -0.5746, +0.1439, -0.2131, -0.3561, -0.9263, -0.4184, -0.0513, +0.5047, -0.0148, +0.2949, -0.4070, +0.2619, +0.0486, -0.9044, -0.0877, +0.1956, -0.2011, -0.4901, +0.6367, -0.1576, -0.2315, +0.0778, -0.3715, +0.2394, -0.0715, -0.0091, +0.3945, +0.1454, +0.2826, +0.2854, +0.0383, -0.7265, -0.4513, -0.0195, +0.1877, +0.1825, -0.1004, +0.0741, -0.5238, -0.7622, +0.4092, +0.4336, +0.1936, +0.3382, +0.3516, +0.2307, -1.4502, +0.5835, -0.5750, -0.7338, +0.2978, -0.5406, +0.0339, -0.3202, +0.2325], +[ -0.0698, -0.8776, -0.9628, -0.2211, +0.0842, +0.2107, +0.0941, -0.2500, -0.3662, +0.0578, -0.4750, -0.2181, -0.1686, -0.2689, +0.1411, -0.8256, +0.3186, -0.3517, -0.4490, +0.0117, +0.2536, -0.0792, +0.0725, +0.0385, +0.2386, +0.0666, -0.2312, +0.0256, +0.1604, -0.0002, -0.0714, -0.6004, -0.1841, -1.4967, -0.5932, +0.2548, -1.1410, -0.4043, -0.5033, -0.2187, -0.7987, +0.5275, +0.0285, -0.8600, -0.2614, +0.0639, +0.3257, +0.4107, +0.2087, -0.1072, -0.1157, +0.0467, -0.6435, -1.0427, -0.5286, +0.0459, +0.1097, -0.2149, +0.0394, -0.3587, +0.1313, -0.6886, -0.1345, -0.5884], +[ +0.5300, -0.3907, -0.0105, -0.7121, -0.3486, +0.0401, +0.2562, +0.3037, +0.2092, -0.0210, +0.3676, -0.0227, -0.1761, -0.1304, +0.0840, -0.1310, +0.2111, +0.0926, -0.2739, -0.3635, -0.5617, -0.1553, +0.0314, -0.4018, +0.4185, +0.0401, -0.1099, +0.2949, +0.2019, -0.1762, -0.3477, +0.3448, +0.3568, +0.0361, +0.3788, -0.1996, +0.1723, -0.1428, +0.0066, +0.3473, -0.3308, +0.4851, +0.1993, +0.2379, -0.1148, -0.1366, +0.1673, +0.0433, +0.4188, +0.1589, +0.1478, -0.2602, -0.3324, +0.4604, -0.4275, -0.1584, +0.1039, +0.1074, -0.4238, +0.7423, -0.3097, +0.4578, +0.0754, -0.2779], +[ +0.1529, -0.1575, +0.0819, +0.0579, +0.4000, -0.2372, +0.2025, +0.3456, +0.4460, +0.6892, -0.3688, +0.0596, +0.7114, +0.0582, +0.2526, +0.0559, -0.3033, -0.2083, -0.2725, +0.2148, +0.6348, -0.0939, -0.3589, +0.3578, -0.0897, -0.4104, -0.2510, -0.1750, -0.0342, +0.2579, -0.2709, +0.1463, -0.2980, +0.6216, -0.3951, +0.2358, +0.5241, -0.1989, +0.0439, +0.2978, +0.2848, +0.4379, -0.1006, +0.4004, -1.3318, +0.0721, -0.7419, -0.4410, +0.1182, -0.1377, -0.3649, +0.3684, -0.1349, -0.3452, +0.1427, -0.3848, -0.1854, -0.2795, -0.0527, -0.1123, -0.0352, -0.5523, -0.0433, +0.5344], +[ -0.5747, +0.6322, -0.8440, -0.1528, -0.1161, +0.0448, -0.2353, +0.6576, +0.3179, +0.1904, -0.5284, +0.1620, -0.6215, -0.2991, +0.1852, +0.0115, -0.2674, -0.6372, +0.3602, -0.1317, +0.0330, +0.0931, -0.0091, -0.2444, -0.1673, +0.1395, -0.2460, +0.0833, -0.0209, -0.5390, -0.1847, -0.3628, +0.1574, -0.2920, -0.2394, +0.4293, -0.0784, +0.5356, +0.2715, -0.2624, -0.5728, -1.0559, -0.2006, +0.4380, +0.2419, -0.1679, +0.5417, +0.1381, -0.2034, -0.0121, +0.3109, +0.4409, +0.6114, -0.1056, -0.5598, -0.3813, -0.1363, +0.0551, +0.4501, -0.1133, +0.0976, +0.4507, +0.5136, -0.4507], +[ -0.9244, -0.6286, -0.3487, +0.3031, +0.5490, -0.0417, +0.1368, +0.0454, +0.1623, -0.2627, +0.1115, +0.2481, +0.1029, -0.8995, -0.2601, +0.0153, -0.1716, +0.2178, +0.1816, +0.4099, +0.3247, -0.5553, -0.6924, -0.0171, +0.0062, -0.1994, -0.2239, -0.0970, +0.4365, -0.2650, +0.0827, -0.5745, -0.1020, +0.0077, -0.2992, -0.2860, -0.3540, +0.1319, -0.2205, -0.1654, -0.6664, +0.3699, +0.5765, +0.4030, -0.1225, -0.0918, +0.0005, +0.2558, -0.2505, +0.2503, -0.3338, -0.0020, +0.1167, -0.9499, -0.1115, +0.1646, +0.2288, -0.6132, -0.0171, -0.6352, +0.3016, -0.8156, -0.0234, -0.1960], +[ -0.1446, -0.0614, -0.5054, +0.0903, -0.6342, -0.3637, -0.4531, +0.3534, -0.3720, +0.1497, -0.0799, -0.4266, -0.4212, -0.0637, +0.2497, -0.2035, +0.0224, -0.2292, -0.4062, -0.1081, -0.8317, +0.3876, -0.1462, +0.3375, -0.2768, +0.2942, -0.0415, -0.0010, +0.1652, +0.3646, -0.4710, -0.3447, -0.3278, +0.2597, -0.1056, -0.2106, +0.0542, -0.0294, +0.2012, +0.2639, -0.1646, -0.0958, +0.7079, +0.1167, +0.3802, -0.3459, -0.1004, +0.3548, +0.3814, +0.1147, -0.0515, +0.0656, +0.0187, +0.4013, -0.4644, +0.3470, +0.0240, +0.0587, +0.3188, +0.3168, +0.0652, -0.1883, -0.1926, -0.2713], +[ -0.5894, -0.5153, -1.0262, -0.2579, -0.1002, +0.0868, -0.2158, -0.5245, +0.1173, -0.5855, +0.1135, +0.1471, -0.1395, +0.0561, -0.7122, -0.1065, -0.0323, -0.7822, -0.1447, -0.0733, +0.2652, +0.0712, +0.3987, +0.2479, -0.0321, +0.0163, -0.4509, +0.5805, +0.4090, +0.0009, +0.0661, -0.2575, +0.4356, +0.1165, -0.4437, -0.0218, -0.0202, -0.0969, -0.0273, -0.3226, -0.0146, -1.0215, -0.2444, -0.3282, +0.1432, +0.1515, -0.0272, -0.5475, -0.0752, -0.0464, +0.3280, +0.2803, +0.4469, -0.1728, +0.1299, -0.3028, +0.1950, -0.1140, +0.1167, -0.7595, +0.0355, -0.3649, +0.0557, +0.3914], +[ -0.0846, -0.1685, +0.2284, -0.2308, -0.2823, -0.1744, -0.4141, +0.2608, -0.0387, -0.3320, -0.1776, +0.1127, +0.2196, +0.2047, +0.1583, -0.4179, -1.1789, -0.2604, +0.2216, -0.2943, -0.1386, +0.2381, +0.2102, -0.9876, +0.2734, +0.2302, +0.0747, -0.0731, +0.3148, -0.7059, -0.0752, +0.2228, +0.2243, -0.0902, +0.1300, +0.1532, -0.0828, -0.4113, -0.3630, +0.1029, +0.1319, +0.2420, +0.0834, +0.2050, -0.1922, -0.2458, -0.1244, +0.1475, +0.0999, +0.3175, +0.0888, +0.5254, +0.1428, +0.1467, -0.4229, -0.7336, -0.1727, -0.0493, +0.3679, +0.1458, -0.1008, -0.0171, -0.2563, -0.1038], +[ +0.1402, -0.1713, +0.0748, -0.1560, -0.2416, +0.4341, +0.6550, -0.3423, +0.0628, +0.1346, +0.4624, +0.2883, -0.0514, -0.4130, -0.5822, +0.5217, -0.1437, +0.3471, +0.2181, -0.2431, -0.5769, -0.0424, +0.2626, +0.4983, +0.2075, -0.1028, +0.0161, +0.1407, -0.0833, +0.2390, +0.0417, +0.2823, +0.5103, -0.6378, -0.0536, -0.0393, -0.0651, +0.2310, +0.1614, +0.3542, -0.9074, -0.6099, -0.6084, -0.2096, +0.3871, -0.4172, -0.3355, -0.0663, +0.0204, -0.2276, +0.0557, -0.4072, -0.0672, -0.5691, -0.0667, +0.1840, +0.0315, -0.5422, +0.2810, -0.6101, +0.0672, +0.2098, +0.2070, -0.0607], +[ +0.1965, -0.2065, +0.3365, -0.2497, -0.0590, +0.0630, +0.3852, -0.0385, -0.2316, +0.1742, +0.0175, +0.3616, +0.0664, +0.0959, -0.4834, -0.0115, -0.3736, -0.6134, +0.4486, -0.6497, -0.4091, -0.2319, +0.4347, -0.1304, -0.3359, -0.1652, +0.2525, +0.0212, +0.0533, +0.2644, -0.4857, +0.0716, +0.1842, -1.0370, +0.2084, +0.3405, -0.5086, +0.0427, -0.5776, -0.2903, -0.2391, -0.2570, -0.3302, -0.4522, +0.1341, +0.1451, -0.6259, +0.3231, +0.1005, -0.7788, +0.2834, +0.4262, -0.6278, -0.2713, -0.7403, +0.0574, +0.0764, -0.7498, -0.2167, -0.2668, +0.2389, +0.3858, +0.4294, -0.1692], +[ -0.6005, -0.3342, -0.0341, -0.0976, -0.1294, -0.0055, +0.1565, +0.1378, -0.4799, -0.0769, +0.0385, +0.4254, +0.0979, +0.2879, -0.3212, +0.7339, -0.2134, -0.3846, -0.1997, +0.0673, +0.5370, -0.2301, +0.1499, +0.2798, +0.3384, +0.1293, -0.2867, -0.4863, +0.3093, +0.1156, -0.3691, -0.0511, -0.6717, +0.2799, +0.1184, +0.7869, +0.0988, +0.2327, -0.3219, -0.3663, -0.1863, -0.2751, -0.6367, +0.1387, -1.2061, +0.5445, -0.2497, -0.6187, -0.3262, +0.2336, +0.0923, +0.4471, +0.4191, +0.5987, +0.5211, -0.2479, -0.0383, -0.0975, +0.0296, -0.6031, +0.2865, -0.6888, -0.4697, +0.3444], +[ -0.8969, -0.3619, -0.2047, -0.1343, -0.3042, -0.1042, -0.0415, -0.1624, -0.2147, -0.1016, -0.7889, +0.3418, +0.0868, -0.4342, -0.2084, +0.3734, +0.4318, -0.1115, +0.2490, +0.4559, -0.2937, -0.5159, -1.1121, -0.0804, +0.1388, -0.4097, +0.1953, -0.0861, +0.0755, +0.0578, -0.0600, -0.0519, +0.2378, -0.7286, -0.8340, -0.9214, -0.1790, -1.2709, -0.5294, +0.0270, -0.4837, +0.1236, +0.3863, -0.3191, +0.1822, -0.1040, -0.3779, +0.1810, -0.0920, -0.1269, +0.5072, -0.3267, +0.3822, -1.1616, +0.2350, +0.4796, +0.1842, -0.1957, +0.0444, -0.6974, -0.4900, -0.4579, -0.1375, -0.5128], +[ +0.4125, +0.1846, -0.2687, +0.4047, +0.2415, -0.3568, -0.5222, +0.0550, -0.2090, -0.3538, +0.4196, -0.2383, -0.2984, +0.0796, -0.2891, -0.0922, -0.4071, -0.5568, -0.2258, -0.0513, +0.3008, -0.4999, -0.0981, +0.2177, +0.4061, +0.3386, +0.0729, +0.2200, +0.0887, +0.2734, +0.1983, -0.3363, -0.0570, +0.0283, +0.4889, +0.5389, -0.4052, -0.5635, +0.3627, -0.2224, -0.0141, -0.0919, +0.2747, -0.1352, -0.0483, +0.2405, -0.1205, +0.1157, +0.1593, -0.6906, +0.3747, +0.0316, -0.3510, -0.0224, -0.1504, +0.2385, +0.2176, -0.6219, +0.0703, +0.6161, +0.1639, -0.3518, +0.0277, +0.5706], +[ +0.2870, -0.7338, -0.1045, -0.0942, +0.0845, +0.3805, +0.0079, -0.7205, +0.0955, -0.4537, +0.0731, +0.1386, +0.2017, +0.2059, -0.3269, -0.5290, -0.8150, -0.6405, +0.1613, -0.1068, +0.1682, +0.0145, +0.0655, -0.0025, -0.2245, +0.4070, +0.1686, -0.8228, +0.2429, -0.0431, +0.0035, +0.0513, -0.0154, +0.1894, +0.2753, +0.2020, -0.0720, -0.1562, -0.2747, -0.1583, -0.9408, -0.8700, -0.2165, +0.0506, -1.3863, -0.0658, -0.3209, -0.3702, -0.6101, -0.0353, +0.1048, +0.1970, +0.2671, -0.3384, +0.1256, -0.2245, -0.4526, -0.0493, -0.3827, +0.0560, +0.0338, -0.1525, -0.2141, -0.0425], +[ -0.1422, +0.1337, -0.9957, -0.5735, -0.2927, -0.4815, +0.4319, +0.0342, +0.0668, +0.3405, -0.0740, -0.1619, +0.5172, -0.4340, +0.1856, +0.2209, -0.4643, +0.6153, +0.4239, -0.9462, +0.2372, +0.1935, +0.0449, +0.0913, +0.5925, +0.0728, -0.3116, +0.3045, -0.1049, -0.3677, -0.2878, -0.2252, +0.1939, -1.5561, +0.0153, -0.1803, -0.6259, -0.3834, -0.6172, -0.0133, -0.2826, -0.2731, +0.3053, +0.0552, -0.0550, -0.5861, -0.2372, +0.1009, +0.2500, -0.4699, +0.0561, -0.2214, +0.3366, +0.1667, -0.0716, -0.0938, +0.0177, -0.9000, +0.1185, -0.3892, +0.1251, -0.1854, +0.1612, -0.2577], +[ +0.4538, -0.9701, +0.1504, +0.4843, -0.9331, +0.1328, -0.3539, -0.5484, +0.2910, -0.1758, +0.1974, -0.1809, -0.3994, -1.0207, +0.1626, -0.3537, +0.3522, +0.3263, -1.0539, +0.1426, -0.8538, -0.0698, +0.1850, +0.7717, +0.4812, -0.0657, +0.8718, -0.6112, +0.0877, -0.4540, +0.5209, +0.2496, -0.1358, -0.2268, +0.1259, -0.3139, -0.2353, -1.0745, +0.4902, +0.3386, -0.7974, -1.2774, +0.0222, -0.0120, +0.3418, +0.0277, -0.1518, +0.1329, -0.2840, -0.6863, -0.1258, +0.0503, +0.6224, -0.9175, -0.4380, +0.0616, -0.2948, -0.1367, -0.7437, -0.5496, -0.0115, -0.2441, -1.3192, +0.0898], +[ -0.8492, +0.2324, -1.0937, -0.0072, -0.5556, +0.1550, -0.0198, +0.2518, -0.2527, -0.4283, +0.0591, -0.5192, +0.1214, -0.0950, +0.0202, +0.4282, +0.2584, -0.7877, -0.8089, +0.0275, -0.5099, +0.3571, +0.0930, +0.0660, -0.0577, -0.3545, +0.0622, +0.5885, +0.3251, -0.6699, +0.4005, +0.1462, -0.1288, -0.8976, -0.5042, +0.1200, +0.1997, -0.0740, +0.0969, +0.2668, -0.6573, -0.0003, +0.3727, +0.0478, +0.1457, -0.9810, -0.1764, +0.1550, -0.2832, +0.4197, -0.4164, -0.1324, +0.0982, +0.3429, +0.1463, +0.0178, +0.2783, +0.1799, +0.4229, +0.0707, -1.0676, +0.0656, -0.2406, +0.1123], +[ -0.2739, +0.4278, +0.5050, +0.4886, +0.0866, -0.6754, -0.2957, -0.7517, -0.1715, -0.0754, -0.0733, +0.0049, +0.4403, -0.5811, +0.1439, -0.1410, -0.4331, +0.0514, -0.1729, +0.4406, +0.0236, +0.1144, +0.3210, -0.0241, -0.1087, -0.7359, +0.4433, -0.1967, +0.4850, -0.3577, -0.2777, -0.1381, +0.0488, +0.4510, +0.0785, -0.1526, -0.0759, +0.3004, -0.0124, -0.3421, -0.3625, -0.2688, -0.6088, +0.1834, -0.1742, -0.3992, -0.0729, -0.0954, +0.1403, +0.2244, -1.0269, +0.0389, +0.0357, +0.2483, -0.0966, -0.1649, +0.0946, +0.0789, -0.8485, +0.8510, -0.2052, +0.0063, +0.3289, -0.2707], +[ -0.0008, -0.1527, +0.1871, +0.0008, -0.5502, +0.1705, -0.0862, -1.7449, -0.4099, -1.2881, -0.2889, -0.6813, -0.1696, -0.3554, -0.0171, -0.1756, +0.0394, -0.0584, +0.0541, +0.2665, +0.2842, +0.7106, -0.1510, +0.1608, -0.0213, +0.4420, -0.5489, -0.2275, +0.2123, +0.2702, +0.1270, +0.1165, +0.0307, -0.9451, +0.5018, -0.7310, +0.4341, -0.0568, -0.1530, +0.3782, -0.8706, -0.1489, -0.3021, -0.3795, +0.0077, +0.3951, +0.0642, +0.0071, +0.0698, -0.6238, -0.0427, +0.0675, +0.0150, -0.3453, -0.6300, +0.1152, +0.0628, -0.1176, +0.1059, -0.3573, -0.0405, -0.4776, -0.3119, -0.1392], +[ -0.1531, +0.2170, +0.1452, +0.3291, -0.1676, +0.4282, +0.6817, -1.1171, -0.0246, -0.1068, -0.1326, +0.0996, +0.5856, +0.0621, -0.4004, -1.4584, +0.1328, +0.2980, +0.6669, +0.2422, -0.5000, -0.0695, +0.0159, -0.5761, -0.2003, +0.1373, -0.1083, -0.7715, -0.4855, +0.1736, +0.1171, +0.1248, -0.9882, -0.0027, +0.1430, +0.2150, +0.0139, +0.3390, +0.2071, +0.0626, -0.3002, -0.4146, -0.2301, +0.1151, -0.3078, -0.7258, -0.1942, +0.0928, +0.4019, -0.5398, -0.1712, +0.3604, -0.0307, +0.5086, +0.1574, +0.1295, -0.1964, +0.2544, -0.4195, -0.1106, +0.1878, -0.7051, -0.3494, -0.2784], +[ -0.1671, +0.2359, -0.3504, -0.0875, -0.0657, -0.0707, -0.2190, +0.3783, +0.0052, +0.3745, -0.5688, +0.2605, -0.3190, +0.5080, +0.4697, -0.0987, +0.2703, +0.1677, -0.6767, -0.3178, +0.4836, +0.5635, -0.7103, -0.0746, +0.1034, +0.2430, -0.4251, -0.1090, -0.5547, +0.2012, -0.3403, -0.3141, +0.1168, -0.2846, -0.3791, -0.6774, -0.1252, -0.2180, -0.0656, +0.0353, -0.7226, +0.2728, -0.1778, -0.3260, +0.3339, +0.0653, +0.3684, -0.1632, +0.2573, -0.2883, +0.0009, +0.1928, -1.0397, -0.7210, -0.8038, -0.2165, +0.1618, -0.0957, +0.2977, +0.2513, +0.0480, -0.4479, -0.0804, -0.1824], +[ +0.3119, +0.0566, +0.0424, -0.4121, +0.2908, -0.0512, +0.0101, -0.2033, -0.0291, -0.4058, +0.1809, -0.3684, -0.1681, +0.3278, -0.1494, +0.3727, -0.5309, +0.2718, +0.3946, -0.6974, -0.1518, -1.1048, +0.0306, +0.2203, +0.1070, +0.4206, +0.2177, -0.0350, -0.2504, -0.1273, +0.2011, -0.3807, -0.0330, -0.0830, +0.0246, +0.2361, +0.2504, -0.0618, -0.4662, +0.1870, -0.0266, -0.7132, -0.1990, +0.2201, +0.2257, +0.2032, +0.5247, +0.0135, -0.5164, -0.4449, -0.1256, -0.2228, -0.3297, -0.0180, -0.4429, -1.1518, -0.6446, +0.0484, -0.0231, -0.1286, +0.2235, +0.4159, -0.4084, +0.1132], +[ +0.2173, -0.4447, +0.0845, -0.0702, +0.1410, +0.0165, -0.2067, -0.0764, +0.2809, +0.1371, -0.6168, +0.0406, -0.4437, -0.1373, -0.0030, -0.3000, -0.3696, -0.3191, -0.1415, +0.2761, -0.0324, +0.0190, -0.1383, +0.0778, -0.5184, +0.1510, -0.0283, -0.6965, +0.3637, -0.2210, -0.0611, -0.0446, +0.1991, -0.0131, +0.3577, -0.5313, +0.0258, -0.5449, -0.6727, -0.1732, +0.1289, -0.2922, -0.2036, -0.2062, -0.5262, +0.2311, -0.5273, -0.3758, +0.0734, +0.2520, +0.5800, +0.1337, -0.0203, +0.2392, +0.4818, +0.1183, -0.2960, -1.3139, -0.3598, -0.4217, +0.5906, +0.3120, +0.0842, -0.0189], +[ -0.2034, -0.2470, +0.0815, +0.3712, -0.2452, -0.2641, -0.4384, -0.0659, -0.1397, -0.0294, +0.5793, +0.4600, -0.6904, +0.1172, -0.3046, +0.3242, +0.0302, -1.3304, +0.3182, -0.1053, +0.3679, -0.3855, -0.2545, -0.2798, -0.2702, +0.0962, -0.3428, +0.1185, +0.0799, -0.1985, -0.7122, -0.1967, -0.1748, +0.0686, +0.5070, +0.2390, -0.3882, -0.1285, +0.1746, +0.0770, -0.7113, -0.3933, +0.0402, -0.5497, +0.1689, -0.0035, -0.1905, -0.4365, +0.1926, -0.0179, +0.2188, +0.1091, +0.2962, -0.0157, -0.1560, -0.1427, -0.3535, +0.3942, -0.8826, -0.0166, +0.1164, -0.8110, +0.5112, -0.4452], +[ +0.1235, -0.1364, +0.0059, -0.1658, +0.1140, +0.2574, +0.0619, -0.0737, +0.2568, -0.1101, -0.0517, +0.0775, +0.3710, -0.3755, -0.5272, -0.1628, +0.0063, -0.2183, +0.3528, +0.3519, -0.0413, -0.1653, -0.1039, +0.1532, -0.0121, +0.0628, +0.1186, -0.0342, +0.6432, +0.2785, +0.1194, -0.1340, -0.0801, +0.5283, +0.0979, +0.1328, -0.0234, +0.0730, -0.2662, +0.3805, +0.2164, -0.5923, +0.2952, -0.1686, +0.0913, +0.4924, -0.6039, -0.2342, +0.0168, -0.4053, -0.1432, +0.1093, -0.5354, -0.1532, -0.0843, -0.2759, -0.5059, -0.5240, +0.2169, +0.1137, +0.1778, -0.8917, -0.0479, -0.4231], +[ -0.0225, +0.2392, +0.2313, +0.2092, -0.2090, +0.5269, -0.2119, -0.6104, +0.2067, +0.1138, -0.0775, +0.2780, -0.3904, +0.2525, -0.5334, -0.0438, +0.3420, -0.1981, +0.3290, -0.3555, -0.2135, -0.1317, +0.2700, -0.0619, -0.6285, +0.2862, +0.3542, -0.6501, +0.2822, +0.1852, +0.2532, -0.0958, +0.2226, +0.0876, +0.0229, +0.0259, -0.1851, -0.2623, +0.0520, +0.1087, -0.1129, +0.4673, +0.0371, -0.5383, -0.2881, -0.3649, -0.2050, +0.0659, -0.1629, -0.2505, +0.2957, +0.1168, +0.1865, +0.3650, -0.2477, +0.2141, +0.1328, -0.3441, -0.4943, -0.1007, +0.2719, -0.2334, -0.0244, +0.2138], +[ +0.0426, +0.2374, -0.6527, +0.2165, -0.0192, -0.2015, +0.1225, +0.4667, -0.2282, -0.1058, +0.1764, +0.3174, +0.1419, -0.2757, +0.1073, +0.0635, +0.0248, -0.3573, -0.4414, -0.0629, -0.3135, -1.3118, +0.1522, -0.0582, +0.0370, +0.4431, +0.3450, -0.1012, -0.5598, +0.1954, -0.0399, +0.1511, +0.3362, +0.0511, +0.0086, +0.6763, -0.3848, +0.3133, -0.4143, +0.0054, -0.2434, -0.0314, +0.4777, -0.2695, +0.1945, -0.4941, +0.2321, -0.2950, -0.2499, -0.7564, +0.2191, +0.0811, -0.6030, +0.0595, +0.2227, +0.1896, +0.1723, +0.0892, -0.2741, +0.4445, +0.3701, -0.4163, -0.3526, +0.0082], +[ +0.2931, -0.0836, +0.1128, -0.2699, -0.1293, -0.9413, -0.3849, -0.0243, -0.1199, -0.0149, -0.1323, +0.1631, -0.3434, -0.7035, -0.4271, -0.0106, +0.5124, +0.3303, -0.4026, +0.1950, -0.1408, -0.3412, +0.0869, -0.3608, -0.4225, +0.1374, +0.1295, +0.2215, +0.6199, +0.5064, -0.0815, +0.1034, -0.2661, +0.2258, -0.0738, +0.1143, +0.2495, +0.2205, +0.1754, -0.4842, -0.1246, -0.2890, +0.3604, -0.9065, -0.3236, -0.1017, +0.2657, +0.2487, +0.1089, -0.1155, +0.3416, +0.0721, -0.0109, -0.0288, -0.1186, +0.2537, +0.2910, -0.2570, -0.4873, -0.0378, +0.4349, +0.1140, -0.8302, +0.1782], +[ +0.1030, +0.1304, -0.0909, -0.2364, -0.2500, -0.3028, -0.0546, -0.6416, -0.1898, -0.3917, -0.2705, -0.3312, +0.3570, -0.2017, -0.0537, -0.6308, +0.0019, -0.1418, +0.2843, -0.0999, -0.5335, +0.1763, -0.3687, +0.1857, +0.0332, +0.4558, +0.2883, -0.0218, -0.2059, +0.4931, +0.4608, +0.0538, -0.5530, -0.1249, +0.1417, -0.6702, -0.2335, -0.7719, +0.2778, +0.0543, -0.0728, +0.1623, +0.4363, -0.3137, -1.1796, +0.3349, -0.1091, -0.1050, -1.2196, +0.1470, -0.3972, +0.5019, +0.1066, +0.4256, -0.1710, -1.0880, -0.0445, +0.2020, +0.0078, +0.2894, -0.1972, -0.4168, -0.5523, +0.0526], +[ -0.1724, -0.1460, -0.4037, +0.0507, +0.3517, -0.1470, +0.2463, -0.9503, -0.5646, +0.2897, -0.3478, +0.0671, -0.0199, -0.2202, -0.1675, -0.9212, +0.4622, +0.1569, -0.0368, +0.1945, -0.0634, -0.9858, +0.0529, -0.0555, +0.1661, -0.0465, -0.0869, -0.0138, +0.0404, -0.7938, +0.0083, +0.3436, -1.1259, +0.1878, -0.5468, +0.0276, -0.1077, +0.5194, -0.1782, +0.1574, +0.3799, +0.0166, +0.1506, -0.2308, -0.5062, -0.6700, +0.0766, -0.2727, -0.5081, +0.0889, +0.0337, -0.0512, +0.2099, -0.3992, +0.2682, -0.1567, +0.1432, +0.1219, -0.1049, +0.2016, -0.2421, +0.3822, -0.3316, -0.0221], +[ -0.0998, +0.3567, -0.9238, +0.2816, -0.0369, +0.3637, -0.1214, -0.4277, -0.4980, -0.0801, +0.1680, -0.4083, -0.4140, -0.1989, +0.1607, -0.4560, +0.1918, -0.2292, -0.0623, -0.3424, -0.1217, -0.0239, +0.3148, +0.0673, +0.4032, +0.2976, -0.1841, +0.4275, -0.3250, -0.3160, +0.0484, +0.3713, +0.3938, +0.0258, -0.2029, -0.0053, -0.4931, +0.2625, -0.3302, -0.0181, -0.8182, -0.2774, -0.1506, -1.1460, -0.4011, -0.2439, +0.0196, +0.2232, +0.8174, -0.0484, +0.1209, -0.0140, -0.3340, +0.3268, +0.0327, -0.1059, +0.1514, +0.3105, -0.0121, -0.3407, -0.1831, -0.1004, +0.3739, +0.1763], +[ +0.4708, -0.0521, +0.0590, -0.1178, +0.0997, +0.5031, -0.3283, -0.4129, -0.0462, -0.9110, -0.1623, -0.7761, -0.0343, -0.1479, -0.2679, -1.0075, +0.4896, -0.2684, +0.1089, -0.5597, -0.1109, -0.1651, +0.4689, +0.6028, -0.6288, -0.0128, -0.3020, +0.0826, -0.0618, +0.5606, +0.6067, -0.0180, +0.4340, -0.4646, +0.2367, -0.1164, -0.5773, -0.0936, -1.4304, -0.2006, +0.2534, +0.1214, +0.4082, +0.4421, -0.0296, +0.7033, +0.4593, +0.0166, -0.3860, -0.4448, +0.0253, +0.3424, +0.1747, +0.4142, -0.5072, +0.0198, -0.2323, +0.2584, -0.5340, -0.2674, +0.3111, +0.0950, -1.2430, -0.3871], +[ -0.3554, -0.4261, -0.3969, +0.1330, +0.3218, -0.1343, +0.3053, -0.5123, -0.0876, -0.1438, +0.1724, +0.4915, +0.3161, -0.6318, +0.0695, -0.0161, -0.0747, -0.1576, +0.2199, +0.0535, +0.3710, -0.1703, +0.0093, -0.2971, -0.3412, +0.0165, +0.1949, -0.2908, +0.1133, -0.0025, -0.0251, -0.3991, -0.5825, +0.1080, -0.5219, +0.3805, -0.0868, -0.0036, -0.4767, +0.3711, -0.0467, -0.3188, +0.3101, -0.4350, -0.5693, +0.0831, -0.0943, +0.0603, -0.3070, +0.1510, -0.3361, -0.3525, -0.0654, -0.2628, +0.0655, -0.3440, +0.0953, -0.0180, -0.3156, -0.1640, -0.2534, +0.2776, -0.5039, +0.4039], +[ +0.1528, -0.4957, -0.3149, -0.6788, +0.5233, +0.3255, +0.7413, +0.1437, +0.7073, -0.1607, -0.0156, +0.8259, -0.4460, -0.4434, -0.0353, +0.1706, +0.0603, -0.2323, +0.3872, -0.2852, +0.1093, +0.5235, -0.4943, -0.0429, +0.0298, +0.3845, -0.4493, -0.5962, +0.2980, +0.1263, +0.4735, +0.3274, +0.2746, -0.2191, +0.0693, -0.1408, +0.3724, -0.1717, -0.4673, +0.0807, -0.3967, -0.4441, +0.1146, +0.3469, +0.0416, +0.4874, +0.2353, -0.2750, -0.2053, +0.3934, +0.3132, +0.5396, +0.7412, -0.6986, +0.2424, -0.2640, -0.4363, -1.1939, -0.1710, +0.2154, -0.1753, +0.0985, +0.2595, +0.2793], +[ -0.0573, +0.0183, -0.8290, -0.3792, -0.4697, +0.1927, +0.2986, +0.0933, +0.6088, -0.0466, +0.0604, +0.2636, -0.2967, +0.7121, -0.3530, +0.4662, -0.1525, -1.1248, +0.1679, +0.1166, -0.1709, -0.0463, +0.2697, -0.1441, +0.1371, -0.8555, -0.7195, -0.0514, -0.1252, -0.2504, -0.1861, -0.2676, +0.3947, +0.2097, +0.1032, -0.1152, -0.6395, +0.0102, -0.3397, +0.9433, -1.0032, +0.3374, +0.3034, -0.5279, +0.2076, -0.2374, -0.2158, +0.6702, +0.3128, -0.0549, +0.0874, -0.4102, +0.1829, -0.4387, -0.5966, +0.2051, +0.4078, +0.1916, -0.1082, -0.0840, +0.0112, +0.2095, +0.4739, +0.0592], +[ +0.0712, -0.1285, -0.3152, -0.2810, +0.1589, -0.5851, +0.2913, +0.4122, +0.3443, +0.1250, +0.3089, -0.6933, -0.1485, -0.2361, +0.0330, -0.0679, +0.5881, +0.0105, -0.6269, -0.3111, -0.0086, +0.3774, +0.1192, +0.3908, +0.2166, +0.0512, +0.0148, +0.1214, +0.0431, +0.3745, +0.1041, +0.1479, +0.0928, +0.2105, -0.2576, +0.1054, +0.1603, -0.0741, -0.9277, +0.0946, -0.4804, -0.8540, +0.2943, -0.2224, -0.3795, -0.2643, -0.3990, +0.1907, -0.0094, +0.2209, -0.3091, -0.3027, -0.2061, -0.0633, +0.1596, -0.0254, +0.0329, +0.1977, -0.0670, -0.0397, -0.2621, +0.1125, -0.3700, +0.0390], +[ +0.3480, -0.7664, -0.4568, +0.1871, +0.5560, -0.1744, +0.3469, -0.2509, +0.2379, -0.0506, +0.2119, +0.3410, +0.2622, -0.6715, +0.1367, -0.4652, -1.4492, +0.2345, -0.0107, +0.3638, +0.1392, +0.1721, +0.1263, -0.4381, -0.1557, -0.0970, +0.4355, -0.3398, +0.3974, +0.1136, -0.1181, -0.0664, -0.0990, +0.2637, +0.0006, +0.1281, +0.0642, +0.4717, -0.3359, +0.0537, -0.0195, -0.3825, +0.1724, +0.3125, -0.4619, -0.2560, -0.1729, +0.0146, -0.9450, -0.0293, -0.1295, -0.1973, +0.3303, -0.4519, +0.3595, +0.2745, +0.0131, +0.0422, -0.5244, +0.0894, +0.1912, -0.3745, +0.1748, +0.0928], +[ -0.1506, +0.2073, +0.2138, -0.2598, -1.1459, +0.2474, +0.2124, +0.2297, +0.0995, +0.4783, +0.1605, -0.6660, -0.4947, -0.1636, -1.4091, +0.2500, -0.1069, +0.0376, -0.2405, +0.1701, +0.1519, -0.4186, +0.4935, -0.8247, +0.1552, +0.1344, -0.1138, -0.3214, +0.1920, -0.6936, -0.3714, -0.1434, +0.1774, +0.1123, +0.1861, +0.7214, -0.0433, -0.1770, +0.2506, -0.5951, -0.0325, -0.2234, -0.4408, -0.5731, +0.4697, -0.0485, -0.2623, +0.3801, -0.2302, -0.4792, -0.0723, -0.8690, +0.4120, +0.0801, -0.5035, +0.6318, -0.4286, -1.7760, -0.1839, +0.1031, +0.0964, +0.2205, +0.1453, +0.1327], +[ +0.0565, +0.1102, +0.0555, -0.3907, +0.3093, +0.6011, -0.1821, -0.8135, -0.3734, -0.4417, +0.3651, -0.3520, -0.6925, +0.0480, +0.4059, -0.0637, +0.1310, +0.1907, +0.1613, -0.2027, +0.1738, -0.4830, +0.4008, -0.2709, +0.0293, +0.2790, -0.2094, -0.3615, +0.1121, -0.3976, +0.2432, +0.1350, -0.3801, +0.0290, -0.3612, -0.1686, -0.2163, -0.2304, -0.6177, +0.3902, -0.3066, +0.2993, +0.0292, +0.3404, -0.0150, -0.1280, -0.2364, +0.1865, +0.0298, -0.2680, -0.1932, -0.1310, -0.2946, -0.9964, -0.4285, -0.4160, -0.1354, +0.2941, +0.0927, -0.1026, -0.1780, +0.1622, +0.0649, -0.8204], +[ +0.1894, -0.0970, -0.2627, -0.2888, -0.1052, -0.0090, +0.1697, +0.1585, +0.0807, +0.2906, -0.1213, -0.4320, -0.3194, +0.4379, -0.3009, +0.2913, -0.0138, -0.2332, -0.2100, -0.0920, +0.0030, -0.1944, -0.1362, -0.0683, +0.1916, +0.2277, +0.0020, +0.0376, -0.2581, +0.0203, +0.0945, -0.0273, -0.1834, -0.1477, +0.3891, -0.8760, -0.7327, -0.3924, -0.7739, -0.2062, -0.9386, +0.0510, +0.1158, -0.5032, +0.0522, +0.0838, -0.2942, +0.0945, -0.2562, -0.2678, +0.0716, +0.1929, -0.2012, -0.6123, -0.3913, +0.0878, +0.4618, +0.3128, +0.2354, -0.1198, +0.2178, +0.4765, -0.2785, -0.1888], +[ -0.2206, +0.3318, +0.2938, +0.4148, -0.0502, +0.6339, +0.1075, +0.0466, -0.0205, -0.0399, +0.1343, -0.1876, +0.1697, -0.1137, -0.3068, -1.2581, -0.4032, -0.2526, -0.0501, -0.4212, +0.2251, -0.1790, -0.4869, +0.6200, -0.5371, -0.5877, +0.0569, -0.3732, +0.1879, -0.5597, +0.3479, -0.6712, +0.2906, -0.3752, -0.3008, -0.0225, -0.0610, -0.1636, +0.4039, +0.1432, +0.2402, -0.0871, +0.1529, +0.0566, +0.1538, +0.1572, +0.1036, -0.0355, -0.7213, +0.2796, +0.1821, +0.1483, +0.2256, -0.2517, +0.2175, -1.6318, -0.3699, +0.0168, +0.1499, -0.2434, +0.4927, +0.3871, +0.4436, +0.3241], +[ -0.3785, +0.3710, +0.5153, -0.2213, +0.1006, +0.0343, -0.3430, -1.3048, +0.2934, -1.1390, +0.0764, -0.4633, -0.3503, -0.1963, -0.6778, +0.1066, +0.3581, -0.4359, +0.2323, -0.0946, +0.3556, +0.0036, +0.1852, -0.4234, -0.7639, +0.1503, +0.5572, -0.0908, -0.0304, +0.3589, +0.4023, +0.2161, -0.3031, -0.5656, +0.4415, -0.2330, -0.2778, -0.1847, -0.4498, -0.1618, +0.0821, -0.0945, -0.2184, -0.4628, +0.4103, +0.3438, -0.2311, -0.2477, +0.3549, +0.3910, +0.1714, +0.2460, -0.5765, -0.3045, -0.0702, -0.1728, -0.4134, -0.1338, -1.0295, +0.2805, -0.6990, +0.7314, +0.2259, -0.0369], +[ -0.7765, -0.8213, +0.0711, +0.2292, +0.2640, -0.1111, +0.0706, -0.9447, -0.0118, +0.0427, +0.2097, -0.0662, -0.2773, -0.4894, -0.7694, -0.3649, +0.1166, -0.3336, +0.3578, +0.0796, -0.1630, -0.1352, -0.0720, +0.1224, -0.3877, +0.1955, -0.1440, -0.0612, +0.1912, -0.1973, -0.0973, -0.0560, -0.7027, +0.2532, -0.3607, -0.1223, +0.0162, -0.0028, +0.4377, -0.0581, -0.3754, -0.2387, +0.0088, -0.0455, -0.1477, +0.4253, -0.0914, -0.7833, -0.1639, -0.0433, +0.0863, +0.2265, -0.0409, +0.0313, +0.1362, +0.4949, -0.0978, -0.5833, +0.0432, -0.4087, -0.1731, -0.0662, +0.4147, +0.1439], +[ +0.0350, +0.1548, +0.0131, +0.0115, -0.3387, +0.2374, +0.3363, -0.5082, +0.5767, -1.2487, +0.1592, +0.1192, -0.9356, +0.0592, +0.4122, -0.4330, -0.3213, -1.4197, +0.3280, -0.2136, -0.4984, +0.2073, -0.0745, -0.2410, -0.2374, -0.0251, +0.2538, +0.2056, +0.0789, -0.5060, +0.3261, +0.2714, -0.3186, -0.1567, -0.0758, +0.2377, +0.1467, +0.5026, -0.3973, +0.9726, -0.0972, -0.0295, +0.0114, -0.3803, +0.2799, -0.3394, +0.1301, +0.0501, -0.1194, +0.3699, +0.0053, -0.4543, +0.2368, -0.1180, -0.0139, -0.3556, -0.1657, +0.2425, +0.1212, +0.0460, -0.3302, +0.0835, +0.1524, +0.2809], +[ +0.5912, +0.3751, -0.7060, -0.6319, -0.0354, +0.0242, +0.0191, +0.1079, -0.2649, +0.3621, +0.0965, -0.0276, -1.0230, -0.3146, +0.2075, -0.6826, -0.3492, -0.0961, -0.5934, -0.6186, +0.0199, +0.2130, -0.7184, +0.4223, +0.0614, +0.1626, +0.2471, +0.2255, -0.2649, +0.1865, +0.2010, -0.0649, -0.7986, +0.3571, -0.7812, +0.0793, -1.1885, -0.7985, -0.4967, -0.0632, +0.1954, -0.3144, +0.1585, -0.2425, +0.0907, +0.0252, -0.9084, +0.3666, -0.5707, -0.5022, +0.2995, +0.2105, +0.5991, +0.0387, +0.0628, +0.1833, -0.1081, -0.6146, -1.9594, +0.3486, +0.4696, -0.0909, +0.2579, -0.8427], +[ +0.0336, -0.4557, -0.6614, +0.4449, +0.0964, +0.1173, -0.4679, +0.3083, -0.3942, +0.2012, +0.0582, -1.3162, +0.0455, -0.5111, -0.6087, +0.2155, -0.0063, -0.1217, -0.0372, +0.0719, +0.3264, +0.4321, -0.5644, +0.4457, +0.6958, +0.3130, +0.1354, -0.0940, +0.1247, -0.1034, -0.3069, -0.5462, -0.3833, -0.2013, +0.0727, -0.2046, -0.6196, -0.2577, +0.1981, +0.0947, +0.2343, +0.2706, -0.0317, -0.4985, +0.2393, +0.2797, -0.0232, -0.4649, +0.6968, +0.1224, -0.0383, -0.5945, -0.5035, +0.0959, -0.3727, +0.7081, -0.1661, +0.1211, -0.1007, -0.2776, +0.2769, +0.3188, -0.8125, -0.2640], +[ -0.2121, +0.1708, -0.0225, -0.0678, -0.0867, -0.0663, +0.2636, +0.2387, +0.2040, -0.2074, -0.4069, -0.1904, -0.0885, -0.4112, -0.5617, +0.3723, +0.4653, -0.2569, -0.3289, +0.4304, -0.0073, +0.0809, -0.0856, -0.0631, -0.2508, -0.3386, -0.8901, +0.1858, -0.1145, -0.0091, -0.0037, +0.3607, -0.0357, -0.7050, -0.2968, +0.3616, +0.2470, +0.2633, -0.0279, +0.0722, -0.4222, -0.1375, -0.4831, -0.2887, +0.0935, -0.0073, -0.4007, -0.1702, -0.2263, +0.3825, +0.1574, +0.6085, -0.1626, -1.7196, +0.3131, +0.2672, -0.1385, +0.3224, +0.3787, -0.0462, -0.3012, -0.5527, -0.4602, +0.1942], +[ -0.6093, -0.9537, +0.1757, -0.3976, -0.0383, +0.7251, +0.3466, +0.4402, -0.0774, -0.4007, +0.0816, -0.0457, -0.1168, +0.2660, +0.1250, -0.5599, +0.2008, +0.8158, -0.4430, +0.4986, -0.5222, +0.3090, +0.0151, -0.1805, +0.1431, -0.1892, -0.6358, -0.2858, -0.2296, -0.1724, -0.4177, +0.0810, +0.0851, -0.0888, +0.2480, -0.2108, +0.2010, +0.0679, +0.0160, +0.1122, -0.5618, +0.0329, -0.1360, -0.5033, -0.3957, -0.2492, +0.5305, -0.7473, -0.2721, -0.0429, -0.0304, +0.0405, +0.6790, -0.1740, +0.3304, -0.0981, -0.4455, -0.0456, -0.1221, +0.2468, -0.6452, +0.0697, +0.3481, -0.0379], +[ -0.1121, -0.5130, -0.5136, +0.3138, +0.2760, -0.3535, -0.3125, +0.3587, -0.4589, -0.1302, -0.3529, +0.4531, +0.1770, +0.2400, -0.0107, -0.2273, -0.0549, -0.1933, +0.0799, +0.0211, +0.0974, -0.3228, -0.1341, -0.5369, +0.2466, -0.2529, -0.0108, -0.3154, -0.0725, -0.1345, -0.2088, -0.0873, -0.3675, +0.0120, +0.0838, -0.1347, +0.2473, +0.4509, +0.4634, +0.1623, +0.0152, +0.4995, +0.4125, -0.0801, -0.9684, -1.0005, +0.1577, +0.3948, -0.1291, +0.1197, -0.0382, +0.1272, -0.4528, -0.1108, -0.2218, -1.0994, -0.0977, -0.3832, +0.1989, +0.3940, +0.2129, -0.1267, +0.2891, -0.4566], +[ +0.2013, -0.4966, +0.3134, +0.2968, +0.4050, +0.3077, -0.0970, +0.0265, -0.6194, -0.4650, +0.2879, -0.5189, +0.0415, -0.0279, -0.2265, +0.2703, -0.0049, -0.1062, +0.0758, +0.5811, -0.4047, -0.4008, -0.5073, -0.1825, +0.3934, +0.1870, +0.0549, +0.2662, -0.1832, +0.0716, -0.5844, +0.0985, +0.1388, -0.4097, +0.3492, +0.3050, -0.3009, -0.3748, -0.0855, -0.2690, +0.0865, +0.0847, -0.2502, +0.4930, -0.4957, -0.0679, +0.2032, -0.5270, -0.0298, -0.6239, -0.3869, +0.1205, +0.2789, -0.4187, -0.4100, -1.3293, +0.0339, -1.2127, -0.4629, -0.4488, -0.3622, +0.3658, -0.1273, -0.9988], +[ +0.0618, -0.6976, -0.2739, -0.4951, +0.3629, -0.0572, -0.0423, -0.1126, -0.0084, +0.0039, -1.1347, +0.0766, +0.5972, -0.2661, -0.1608, -0.1188, -0.5734, +0.2740, -0.1348, -0.0046, -0.2420, +0.4932, -0.3493, +0.0077, -0.2928, +0.1936, -0.4306, +0.0672, -0.2478, +0.2933, +0.4783, +0.1112, +0.0508, +0.5279, -0.0602, -0.6082, +0.0254, -0.1455, +0.0860, -0.0137, +0.2181, +0.4595, -0.1020, +0.2738, -0.3845, +0.1527, +0.0903, +0.2459, -0.1028, -0.0204, +0.3592, -0.1899, +0.0156, -0.3667, +0.2428, -0.2370, +0.4264, -0.1857, +0.1354, -0.1368, +0.1373, +0.3646, -0.1913, -0.2312], +[ -0.1679, -0.2973, +0.3421, +0.2689, -0.0877, +0.2735, -0.1347, -0.2523, -0.0631, +0.1108, +0.2597, +0.4530, +0.1214, -0.1416, -0.5936, -0.1322, -0.2734, -0.7423, +0.1697, +0.0126, -0.2423, -0.0829, +0.4345, +0.2280, +0.1167, +0.0169, -0.1051, +0.4623, +0.1274, +0.1364, -0.7264, +0.2868, +0.2049, +0.0837, -0.6358, +0.0789, +0.1073, +0.5686, +0.3086, -0.5808, +0.7224, -0.5558, -0.5012, -0.0334, +0.1128, -0.4420, +0.0341, -0.0761, -0.6116, -0.1187, -0.0079, +0.1517, +0.1157, -0.0825, +0.0421, -0.4036, +0.2306, -0.1724, +0.0817, +0.0796, +0.2520, -0.0839, -0.1000, +0.2560], +[ -0.1568, +0.1256, +0.2687, +0.5304, +0.0616, +0.2620, -0.1174, -0.0828, +0.2457, -0.7009, -0.2341, +0.1980, -0.1387, +0.0767, -0.1147, -0.3794, -0.0804, -0.9129, +0.4222, -0.0307, -0.4511, +0.0235, +0.2063, -0.0281, -0.6208, -0.3369, -0.2876, -0.1240, +0.0289, -0.1814, -0.0107, -0.6183, -0.0970, -0.1725, +0.0277, -0.2143, +0.4770, -0.3520, +0.2918, -0.2149, +0.0670, +0.2961, +0.0475, -0.2314, +0.4138, -0.6241, -0.5202, +0.6909, -0.1022, -1.0779, +0.0202, +0.3129, -0.1340, +0.0622, -0.1117, -0.2848, +0.1219, -0.2674, +0.2004, -0.4155, -0.0463, +0.1513, -0.0398, +0.3006], +[ -0.6542, +0.7595, -1.3221, +0.0988, -0.3465, +0.4240, -0.0449, -0.8170, +0.0414, +0.1441, -0.6610, +0.0711, +0.1398, +0.6336, +0.0080, -0.0566, -0.0857, +0.1501, -0.0995, +0.1385, +0.2677, +0.0367, +0.1083, -0.0359, -0.1822, +0.1932, -0.1764, -0.4851, -0.0244, -0.3504, -0.0213, -0.1195, -0.2686, -0.5418, -0.4927, +0.3825, -0.0737, +0.0830, -0.2684, +0.2176, +0.1968, -0.2227, -0.3244, -0.6385, +0.1551, -0.2165, -0.0925, +0.1828, +0.4494, -0.1357, -0.0456, -0.0027, +0.1056, +0.3863, -0.1894, +0.0876, -0.1854, +0.1973, +0.3061, +0.0674, +0.6454, -0.2473, +0.2778, +0.3394], +[ +0.1184, +0.0655, -0.4564, +0.1047, +0.0245, -0.3896, -0.4310, +0.2791, -0.4074, -0.2665, -0.4304, +0.6561, -0.6748, +0.1907, +0.5614, -1.5843, -0.0335, +0.1814, +0.3863, -0.3579, +0.0952, -0.3241, +0.0511, +0.4439, +0.5712, -0.4604, +0.1338, +0.7400, +0.2259, -0.5242, -0.5329, -0.4611, -0.1593, +0.0052, +0.1623, -0.3202, -0.5784, +0.0174, -0.8842, -0.4272, +0.3299, -0.2110, +0.0281, +0.4345, -0.0094, +0.4800, +0.0468, -0.1435, -0.1890, +0.4818, +0.3842, +0.5413, +0.0015, -0.1571, -0.0965, -0.2082, +0.3220, -0.4657, -0.2957, -0.4660, +0.1112, +0.0833, -1.0452, +0.2931], +[ -0.1050, -0.3930, -0.8470, -0.1539, +0.0283, +0.0506, -0.2962, +0.1335, +0.1858, +0.2597, +0.1192, +0.0226, -1.1154, +0.4943, -0.2086, +0.3223, -0.2796, -0.7304, -0.3808, -0.2430, +0.1130, -1.4927, -0.0413, +0.1508, +0.2756, -0.1085, +0.0958, -0.0511, -0.1654, -0.5590, +0.4892, +0.3117, -0.4354, -0.5566, -0.2910, +0.1871, -0.3210, +0.0707, -1.4751, -0.0064, -0.3395, +0.1091, -0.3423, -0.1070, +0.6077, -0.6818, +0.0364, +0.1810, -0.2418, -0.4348, +0.2138, -0.4457, +0.1850, +0.1663, -0.4589, -0.0590, +0.0140, -1.0031, +0.1671, +0.3095, -0.1959, -0.2354, +0.1129, -0.0914], +[ +0.1642, +0.1094, +0.3448, -0.0749, -0.0180, +0.2558, +0.4060, +0.3335, +0.4197, -0.1441, -0.2556, +0.6254, -0.3226, -0.6062, -0.2805, -0.1570, -0.3601, -0.3835, -0.2042, -0.0328, +0.1023, +0.0759, +0.2519, -0.1706, -0.0075, -0.4085, -0.3140, -0.1070, +0.0632, +0.0191, -0.4709, -0.2254, +0.0114, +0.3076, +0.2059, +0.5133, -0.2243, +0.2795, +0.3773, +0.0803, -0.4325, -0.9119, -0.1979, -0.6436, -0.2572, -0.3237, -0.4447, +0.5916, -0.3867, +0.0101, +0.1406, -0.1133, +0.2802, -0.6540, -0.3323, +0.4628, -0.0367, -0.2508, +0.2539, -0.3993, -0.5283, -0.2690, -0.3873, -0.3024], +[ -0.1436, -0.5517, -0.4431, +0.5327, -0.2588, +0.0900, -0.4125, -0.2162, -0.1184, +0.2474, -0.1347, +0.1252, -0.0133, +0.0987, -0.4174, +0.3728, -0.1239, -0.2282, +0.0385, -0.1100, +0.6123, -0.4759, -0.3614, -0.0685, +0.3599, -0.0198, +0.1704, -0.0608, -0.0503, +0.4438, -0.7307, +0.3350, +0.1720, +0.4469, -0.0751, +0.0401, +0.3470, -0.0172, +0.0262, -0.0346, +0.1317, -0.1553, +0.2946, -0.2742, +0.2364, -0.0640, +0.2536, -1.0183, +0.0773, -0.2492, +0.0397, -0.3045, -0.3429, -0.3352, -0.5485, +0.3430, +0.1481, -0.4997, +0.0928, -0.2616, -0.1770, +0.5925, +0.1034, +0.1339], +[ -0.2951, +0.0378, +0.0823, +0.0307, +0.0271, +0.3036, -0.0292, -0.2978, +0.0779, +0.1428, -0.4928, +0.2944, +0.2024, +0.1920, -1.0302, +0.3304, +0.0657, +0.0634, +0.3791, +0.0085, +0.0081, +0.2927, -0.0241, -0.2411, -0.7849, -0.1806, -0.0433, +0.3816, -0.0558, -0.1094, -0.0139, +0.1603, +0.4586, -0.7991, +0.1147, -0.5045, +0.0183, -0.3893, -0.0443, -0.1665, +0.0342, -0.2120, -0.1391, -0.4926, +0.1438, +0.1863, -0.7227, +0.3673, -0.1077, -0.9778, +0.7210, +0.3733, +0.0778, -0.4336, -0.3407, -0.0074, +0.0330, -0.4428, +0.1380, -0.8513, +0.0357, +0.4141, +0.1583, +0.2167], +[ +0.2654, +0.0174, +0.2618, +0.1341, -0.1338, -0.1338, -0.2252, -0.1168, -0.0680, -0.1107, -0.7590, +0.0632, -0.0997, +0.2548, -0.8639, -0.7354, +0.2814, -0.4214, +0.2266, +0.0072, +0.1706, +0.3742, +0.2437, -0.5361, -0.2646, -0.3248, +0.1836, -1.9472, -0.0832, -0.0410, +0.4056, -0.4654, -0.3995, -0.4292, -0.4182, -0.4856, -0.8076, -0.7141, -0.2657, +0.0958, +0.0713, -0.2720, -0.2588, -0.5835, +0.4793, -0.4319, -0.1098, -0.3144, +0.4965, -0.4547, +0.3820, +0.4288, +0.0844, +0.5179, -0.0320, -0.8708, -0.0751, +0.1578, +0.0879, -0.4416, +0.1729, -0.1362, -0.5350, -0.3401], +[ -0.2118, +0.3834, +0.3130, +0.3395, -0.3651, -0.0606, +0.4956, +0.0693, -0.0051, -1.4244, +0.1108, +0.0637, +0.1052, -0.0301, -0.0014, +0.0911, -0.8848, +0.1114, +0.0666, +0.3995, +0.4920, -0.5034, -0.3851, +0.1373, -0.1200, +0.3886, +0.0684, -0.0183, -0.4282, -0.0734, -0.1273, -0.4760, +0.1408, +0.5883, -0.0509, -0.2998, -0.3337, +0.1388, -0.2568, -0.1320, +0.1283, -0.5020, +0.1919, +0.1973, +0.3350, -0.0218, +0.7082, -0.2393, +0.0386, -0.9842, -0.6694, -0.5423, +0.0867, -0.8208, -0.1974, +0.3153, -0.2347, -0.7509, +0.1957, -0.2120, -0.1423, +0.0256, -0.5109, -0.5835], +[ -1.1792, -0.6405, -0.2588, -0.0688, -0.5575, +0.2734, -0.2927, -0.9779, +0.3497, -0.7755, -0.3234, -0.2550, +0.3339, -0.4122, -0.0858, +0.3816, +0.4377, -0.9395, -0.0228, +0.2162, -0.0766, -0.2358, -1.2153, -0.0550, -0.0737, +0.2427, -0.2674, +0.1653, -0.3603, +0.2592, -0.3009, +0.0850, -0.1091, -0.6973, -0.4073, -0.6798, -0.0625, -0.3739, -0.0816, +0.0060, +0.1769, +0.5716, -0.2536, -0.3430, +0.1475, +0.0754, -0.1260, +0.2230, +0.0758, -0.1088, -0.0445, +0.2242, +0.1145, +0.4178, -0.6738, -0.2665, -0.0909, -0.7142, -0.1012, -0.4404, +0.0002, -0.0546, -0.3006, -0.0512], +[ -0.9125, +0.3809, -0.2227, +0.1087, -0.3885, +0.2956, +0.2774, -0.5007, -0.3132, +0.0619, -0.1097, +0.1279, -0.0931, +0.1050, -0.3562, -1.4404, -0.4041, -0.1452, +0.2098, -0.3736, +0.4604, +0.3447, +0.3285, -0.4358, -0.0095, -1.4794, +0.1615, -0.3714, -0.1101, +0.2171, -0.2488, -0.5689, -0.0069, -0.3341, +0.4860, +0.1670, -0.5619, -0.2339, -0.4304, -0.1604, -0.1719, -0.1354, -0.1688, +0.5730, +0.0874, +0.9201, +0.4451, -0.1082, +0.5830, -0.5734, +0.8476, +0.1526, -0.0611, +0.0482, +0.4043, +0.1631, +0.0934, +0.5185, -0.4728, -0.7169, +0.2903, -0.1128, +0.1467, +0.0853], +[ +0.2255, -0.1422, +0.6191, -0.5573, -0.4242, +0.6153, -0.0805, -0.6878, +0.0707, +0.1314, -1.1376, -0.4014, +0.0828, -0.1102, +0.4117, +0.1082, -0.1197, -0.0014, +0.2616, -0.4504, -0.1758, -0.5121, +0.4080, -0.7097, -1.0162, -0.0971, -0.1583, -0.4393, +0.2060, -0.2875, -0.0826, +0.0484, +0.1807, -1.0531, +0.1788, -0.2329, -1.2088, -1.2534, -0.3840, -0.3139, +0.1190, -0.4243, -0.3891, -0.1715, +0.2351, -0.0939, -0.1855, -0.4761, +0.4378, +0.1383, -0.0800, +0.1091, -0.3985, +0.0516, -0.1441, +0.0286, -1.0542, +0.4448, -0.8192, +0.4307, -0.2630, -0.6092, -0.0993, -0.1385], +[ +0.1763, -0.3222, +0.2001, -0.5100, -0.0191, +0.3838, -0.2628, +0.4131, -0.3282, +0.5341, +0.1770, -0.3993, -0.4334, +0.3543, +0.4917, -0.3028, -0.5898, +0.2188, +0.4483, -0.4407, -0.1927, +0.0154, +0.1614, -0.7020, +0.3948, +0.1950, +0.0146, +0.4208, +0.3840, -0.2642, +0.7406, -0.1180, -0.0369, -0.8693, +0.2694, -0.0968, +0.0402, -0.1230, -0.2885, +0.0380, -0.4557, +0.2529, -0.1008, -0.1731, -0.8810, -0.2787, +0.4076, +0.1796, +0.4104, +0.3133, -0.5395, +0.0393, -0.2067, +0.7584, -0.3746, +0.0869, +0.6750, +0.3594, -0.3354, +0.2386, -0.1971, +0.0392, -0.0169, -0.1902], +[ +0.2144, -0.3314, +0.2725, -0.0827, -0.0906, +0.0674, +0.1273, -0.4302, +0.2808, -0.8198, -0.0832, +0.3300, +0.4027, +0.0423, +0.2126, +0.1215, +0.1076, -0.3192, -0.0130, +0.2427, -0.1374, +0.1292, +0.1993, -0.5142, -0.1865, +0.0820, +0.0993, +0.1877, -0.3977, +0.0706, -0.7814, +0.2711, +0.4268, -0.1433, +0.4873, +0.5543, +0.0717, +0.2401, -0.0935, -0.2784, +0.2711, +0.2732, -0.8383, -0.2575, -0.0303, +0.0535, +0.1117, -0.3160, +0.2767, +0.1754, +0.0219, -0.0515, +0.0079, -0.7837, +0.1359, +0.0749, -0.2690, +0.1145, -0.1394, +0.2234, -0.8230, +0.2444, -0.5010, -0.0515], +[ -0.7577, -0.1246, -0.6416, -0.1292, +0.1269, -0.1601, -0.7096, +0.5698, +0.1452, +0.2287, -0.1673, +0.1212, -0.0779, -0.3946, -0.6451, -1.1095, -0.7062, -0.0777, +0.1132, -0.2283, +0.0272, -0.0535, -0.0579, +0.3027, +0.3611, -0.0492, +0.0490, +0.1978, -0.1055, +0.1079, +0.2022, +0.1964, -0.3552, +0.0624, -0.2604, -0.3808, +0.0454, +0.3496, +0.1034, -0.1317, +0.2831, -0.8189, +0.2068, -0.0665, -0.2932, -0.3625, +0.1067, -0.3037, +0.3838, +0.0383, +0.1815, +0.2562, -0.0403, -0.0175, -0.1908, -0.7806, +0.1274, +0.1829, -0.1783, +0.2590, -0.4242, -0.0020, +0.2163, -0.7718], +[ -0.1172, -0.2910, +0.1343, +0.1023, +0.2716, +0.2049, -0.6185, +0.2182, -0.1194, -0.0311, -0.4619, +0.2636, +0.2120, -0.2086, +0.0149, +0.0339, +0.2969, -0.3070, -0.2462, -0.1908, -0.2441, +0.3313, +0.6891, +0.1639, -1.0531, -0.1253, -0.2737, +0.2814, +0.1508, +0.1255, +0.4555, -0.0806, -0.0359, +0.0192, -0.0501, +0.3172, +0.0013, -0.8248, -0.1446, -0.1389, +0.3792, +0.3625, -0.2145, +0.0517, +0.2897, +0.0143, +0.0080, +0.1945, -0.4495, -0.0941, +0.5322, +0.2886, -0.0868, -1.5349, +0.0948, -0.7860, +0.5374, -0.5335, -0.0638, -0.1858, +0.0161, -0.2840, -0.3180, +0.3528], +[ -0.3348, +0.2055, -0.9754, -0.4012, +0.4188, -0.2831, +0.1521, +0.1827, +0.1194, +0.0318, -0.0500, -0.4176, -0.3061, +0.0976, -0.0334, -0.0595, -1.2187, -0.2892, -0.0487, -0.3854, -0.0304, +0.1867, -0.0166, +0.2530, +0.2887, -0.2363, -0.1904, +0.2580, +0.0583, +0.3023, -0.0038, -0.3527, +0.3573, -0.0487, -0.0710, -0.4197, +0.1109, +0.1214, -0.5087, +0.3008, -1.3029, -0.4291, -0.0687, +0.1112, +0.1664, +0.4177, +0.0462, +0.0217, +0.3115, +0.2880, +0.1207, -0.1077, +0.1978, +0.0262, +0.2084, -0.4996, +0.0478, +0.3084, -0.0012, -0.2354, -0.5644, +0.1193, +0.0854, -0.5877], +[ -0.3103, -0.3814, +0.1322, -0.1447, -0.2558, +0.0371, +0.0856, +0.1248, +0.2103, -0.2475, -0.2205, +0.3099, +0.3163, -0.1651, +0.2838, +0.2346, -0.3855, -0.2486, -0.3396, -0.0437, +0.3671, -0.0069, +0.4828, -0.6932, -0.7277, +0.3441, -0.8020, +0.4863, +0.1061, -0.2418, -0.2396, -0.0053, -0.1668, -0.2948, -0.0782, -0.0149, +0.3159, +0.2116, +0.2267, -0.2058, +0.1034, -0.0827, +0.0529, +0.0069, +0.1822, +0.0000, +0.0525, +0.2258, -0.2335, -0.0016, -0.1231, +0.8993, -0.6615, -0.8643, -0.1698, -0.1447, +0.0801, -1.4432, -0.2538, +0.1848, +0.1005, +0.3882, +0.0458, +0.0405], +[ +0.3984, +0.1613, +0.5291, +0.1697, -0.2074, -0.4148, -0.3233, -0.3691, -0.1697, -0.0608, -1.2200, +0.2840, -0.7305, -0.2600, +0.2990, +0.0959, -0.0343, +0.2958, +0.1014, -0.2986, -0.6878, +0.1185, -0.4202, -0.5000, -0.2732, +0.0477, +0.0419, -0.4453, -0.3634, -0.2955, +0.1807, +0.2088, -0.1500, -0.1789, -0.2411, -0.3513, -0.2156, +0.1619, -0.7682, -0.2928, +0.2605, +0.4007, +0.1044, -0.7360, +0.1440, -0.4713, -0.2737, -0.5854, +0.0717, +0.5728, +0.3894, +0.1652, -0.5978, +0.2093, +0.2174, -0.3677, -0.2305, -0.1676, -1.2163, -0.3159, -0.5652, -0.1905, -0.1668, +0.2184], +[ -0.0008, -1.0383, +1.1172, -0.3757, +0.1185, +0.2778, +0.1407, -0.1279, -0.5174, -0.4343, +0.0887, -0.0483, -0.0541, -0.3713, -0.3302, +0.4045, +0.4483, -0.6313, +0.0040, +0.1367, +0.2285, -0.2697, -1.1601, +0.0076, +0.1744, +0.1132, -0.1431, -0.3811, -0.6136, +0.2844, -0.1848, -0.5152, -1.0414, -0.4109, -0.7278, -0.0349, +0.1370, -0.1978, +0.5068, +0.1623, -0.2598, -0.5556, +0.2846, -0.1811, -1.5462, -0.2162, +0.5351, -0.2391, -0.1035, -0.2865, -0.1122, +0.4251, -0.2923, -0.8803, +0.1712, +0.1824, +0.2363, -0.6512, +0.2178, -0.4485, -0.3429, -0.1578, +0.1009, -0.1692], +[ +0.0041, +0.4229, +0.0388, +0.5734, +0.1830, -0.5990, +0.0260, -0.4107, -0.1851, -0.2277, -0.0275, -0.2505, +0.4437, +0.3490, +0.2597, -0.1346, -0.5125, -0.1878, -0.4422, +0.0793, +0.0946, +0.1463, +0.3695, +0.4150, +0.2463, -0.4557, +0.4123, +0.2879, +0.6034, -0.5302, -0.7214, -0.2835, -0.0240, +0.2951, +0.3102, -0.2566, -0.0515, -0.1121, -0.5604, -0.3810, +0.4285, +0.9055, -0.2602, +0.2380, -0.3954, -0.0396, +0.6154, +0.0981, +0.4571, +0.0322, +0.2965, +0.1396, -0.0881, -0.0175, +0.3386, -0.0699, +0.1114, +0.3103, +0.0885, -0.2483, +0.3396, -0.5895, -0.4524, +0.4458], +[ -0.7421, -0.1838, +0.0929, +0.1654, -0.1778, +0.1589, +0.1777, +0.1539, +0.6931, -0.0002, +0.0366, -0.2482, +0.3404, -0.6776, -0.0599, -0.9906, -0.1703, -0.2741, -0.2623, +0.2435, +0.1282, -0.2218, -0.4463, -0.0515, -0.1126, +0.5793, -0.4053, +0.3077, -0.2113, -0.1654, -0.4019, +0.3054, -0.2755, -0.0359, -1.3564, +0.7528, +0.0788, +0.2060, +0.1633, -0.4355, +0.2035, -0.2194, -0.0381, -0.1512, -0.7473, +0.2736, -0.0204, -0.4578, -0.4144, +0.0076, -0.6070, +0.0851, +0.4764, -0.3511, -0.1171, -0.8141, +0.1976, +0.2906, +0.0918, +0.2261, +0.2769, +0.1746, +0.5881, -0.8917], +[ -0.3276, -0.1296, +0.3245, -0.0630, +0.1080, -0.0923, -0.0555, -0.4351, -0.4805, +0.1625, -0.7317, +0.0232, -0.0290, -1.2621, +0.0074, +0.6063, -0.0992, +0.2137, -0.0525, -0.1596, +0.2326, +0.7151, -0.2879, -0.9427, +0.0728, +0.3451, -1.3029, -0.1453, -0.0766, -0.1260, +0.2174, +0.2524, -0.0272, -0.9901, -0.2757, -0.0532, +0.0768, -0.6334, +0.2368, +0.1227, -0.6449, -0.0662, +0.3466, -0.1741, +0.1209, +0.4601, +0.1192, -0.0727, -0.3973, -0.2250, +0.1601, +0.1562, -0.2805, -0.0830, -0.0274, -0.4325, +0.0951, -0.1183, +0.1025, +0.0261, -0.6047, -0.0146, -0.1957, +0.0218], +[ +0.1081, +0.3138, +0.3278, -0.7791, +0.1543, -0.1908, +0.3635, +0.0070, +0.3577, -0.0404, -0.8582, -0.4834, +0.3016, -0.6306, -0.4563, +0.1801, -0.2791, -0.6206, +0.0517, +0.5410, +0.1347, +0.4778, +0.0558, -0.0759, -0.0772, +0.1917, -0.7159, -0.0643, -0.1721, -0.5170, -0.3511, -0.3017, +0.1299, -0.7527, -0.1136, -0.3605, -0.3682, -0.0709, +0.0723, -0.2196, -0.9063, -0.3520, -0.3413, +0.2594, +0.1649, -0.5071, -0.1584, +0.1231, +0.0057, -0.4875, +0.2410, -0.2405, +0.3705, -1.0071, +0.3241, +0.0207, -0.4803, -0.4314, +0.1130, -0.0724, +0.2252, -0.2790, +0.0415, +0.0660], +[ -1.0239, +0.0612, -0.1775, +0.0616, +0.3968, +0.1192, -0.0637, -1.3325, +0.0141, -0.3692, -0.2163, +0.1634, +0.1818, +0.1767, -0.3110, -0.5755, -0.2020, -0.1910, +0.4489, -0.0309, +0.2252, +0.0045, +0.0525, -0.9357, +0.0912, -0.2257, +0.2897, +0.4927, +0.0509, -0.3725, +0.2843, -0.8260, -0.1409, -1.0330, -0.1377, +0.2625, +0.0637, -0.5822, -1.0901, +0.2305, -0.0809, -0.4811, -0.2776, +0.1618, -0.6189, +0.1608, +0.2586, -0.4005, -0.0048, -0.4438, -0.0799, +0.1356, +0.0141, -0.1191, +0.3150, -0.4819, -0.2142, +0.1938, +0.2875, -0.5401, +0.0929, -0.3865, -0.0821, -0.5999], +[ +0.4043, -0.0639, -0.3917, +0.0908, +0.0894, -0.4655, -0.2022, +0.3332, -0.2707, +0.0466, +0.1355, +0.1318, -0.3180, -0.3957, -0.0124, -0.7214, -0.2792, +0.3177, -0.5455, -0.5225, -0.2927, -0.2688, +0.0192, +0.3940, +0.0514, +0.2258, -0.3504, -0.0024, +0.0145, -0.2194, -0.0040, +0.2842, -0.0667, -0.4815, +0.2162, +0.1778, -0.7473, +0.4520, +0.1720, -0.5224, -0.0490, -0.5519, -0.3571, +0.4386, -0.1868, -0.2627, -0.3350, -0.7849, -0.1009, +0.1432, -0.2389, +0.1923, -0.4800, +0.0100, -0.0507, +0.0151, +0.3257, +0.0299, +0.0118, +0.2283, -0.2633, +0.2229, -0.7595, +0.1507], +[ +0.2797, -0.2386, -0.0121, +0.2439, -0.0317, -0.0390, +0.0581, -0.8813, -0.5392, -0.2527, -0.4720, +0.4787, +0.3710, +0.0434, +0.0702, -1.0678, -0.0195, -0.6846, -0.7418, +0.0543, -0.3187, -0.1510, -0.3590, -0.0902, +0.2195, +0.0943, -0.0384, -0.7203, +0.0316, -0.0647, +0.1894, +0.2490, -1.3374, +0.3883, +0.1207, +0.4036, +0.3255, +0.3757, +0.2444, +0.2612, -1.5274, +0.1092, +0.5718, -0.1929, -0.1531, -0.2330, +0.0539, +0.2055, -0.8240, +0.1292, -0.4835, +0.5281, +0.1944, -0.3389, -0.3689, +0.4941, +0.0330, +0.0938, +0.4999, -0.2465, -0.2547, +0.3286, -0.2172, +0.4791], +[ +0.4580, +0.6728, +0.1603, -0.5751, -0.8616, +0.0422, -0.3104, -0.2042, +0.4133, +0.3150, -0.8036, -0.5332, +0.5432, +0.2999, +0.1480, -0.2845, -0.9013, -0.0924, -0.6048, -0.1631, -0.1127, -0.3833, -0.5830, -1.1764, -1.2800, -0.0174, -0.2561, +0.1081, +0.3352, +0.1175, +0.3419, +0.7590, +0.4220, -0.8411, +0.0312, +0.3287, +0.2295, -0.0867, -0.6239, +0.0633, +0.3005, -0.0838, -0.4589, -0.2385, +0.2734, -0.2946, -0.2759, -0.4446, +0.0052, -0.3499, -0.3503, +0.1211, -0.1839, -0.2803, +0.0158, +0.2441, +0.4413, -0.4929, +0.3714, +0.5445, -0.0731, -0.3297, -0.5428, +0.4811], +[ -0.3528, +0.2554, +0.1195, +0.2853, -0.0731, -0.0237, -0.0755, +0.3719, -0.5900, +0.3071, +0.1961, -0.3822, -0.3113, +0.3011, +0.1113, -0.1598, -0.0299, +0.6281, +0.1811, +0.1312, +0.1971, -0.4736, +0.7463, -0.0154, +0.4255, -0.3671, +0.3200, -0.1815, -0.4259, +0.1115, +0.4232, -0.3993, +0.0706, -0.1901, +0.1188, -0.6964, -0.5131, -0.5996, -0.0103, +0.1504, +0.0713, -0.0430, -0.8008, +0.1890, -0.2637, +0.1984, +0.0119, +0.1025, -0.9490, -0.0255, +0.2795, +0.2354, -0.1830, +0.1894, -0.1928, -0.8840, +0.3929, +0.1748, +0.1588, +0.4326, -0.0759, +0.1664, +0.2102, -0.3707], +[ +0.0479, -0.0155, -0.3830, +0.0390, -0.0793, -0.1159, -0.0263, -0.3720, -0.9581, +0.2546, -0.4353, +0.2756, -0.0628, +0.0360, +0.1591, -0.7122, +0.1463, -0.1078, -0.5880, +0.1476, -0.0437, -0.6911, -0.0355, +0.2766, -0.3426, +0.2286, -0.2323, -0.2819, -0.0887, +0.5000, -0.0338, -0.1563, -0.0168, +0.0500, -0.1077, +0.4968, -1.1365, +0.1814, -0.1388, -0.1080, +0.0761, -0.4107, +0.3764, +0.3308, +0.0905, -0.2821, -0.2366, -0.2618, +0.2762, -0.2521, +0.1400, -0.1133, +0.0411, -0.0475, -0.4804, +0.4348, -0.1652, +0.0103, +0.2100, -0.3716, +0.1860, -0.3946, -0.1734, +0.2052], +[ -0.0266, -0.2590, -0.1527, +0.2632, -0.1506, -0.0040, -0.3828, -0.7623, -0.1620, -0.1641, +0.0927, +0.1030, -0.1890, +0.2110, +0.1634, -1.4356, +0.1170, -0.7333, -0.3429, -0.3402, +0.5740, +0.2288, +0.0264, -0.0770, +0.0611, +0.2538, +0.5611, -0.0635, -0.0885, -0.0698, +0.2153, +0.0752, -0.2368, +0.2113, -0.8473, -0.7176, -0.3615, -0.2906, +0.0310, +0.0041, -0.3076, +0.1850, +0.0959, -0.1510, +0.1042, +0.0781, +0.1000, -0.0701, -0.0252, +0.6513, +0.1680, +0.3624, -0.5958, -0.6897, +0.1336, -0.0600, +0.0437, -0.2525, +0.1216, -0.2053, +0.0452, +0.8903, -0.0487, -0.0072] +]) + +weights_dense2_b = np.array([ +0.2226, +0.0124, +0.0027, +0.2335, +0.0952, +0.0250, +0.1087, +0.1225, +0.0476, +0.1535, +0.0940, +0.0421, +0.0967, +0.0431, -0.2867, -0.1520, -0.0796, +0.0041, +0.0599, +0.0139, -0.0608, -0.0695, +0.0222, +0.0420, -0.0988, +0.0851, +0.2547, +0.0361, +0.0341, +0.0986, +0.1827, -0.1344, +0.1575, +0.0374, +0.0497, -0.1436, +0.1622, +0.2187, +0.0257, +0.0680, -0.0228, +0.0215, +0.1596, -0.0594, -0.0886, -0.0006, -0.0940, +0.1568, +0.0610, +0.1915, +0.1162, +0.0765, -0.1731, -0.0258, +0.0896, -0.2285, +0.0948, +0.0286, +0.1174, +0.0382, +0.2536, +0.3435, +0.0281, +0.2328]) + +weights_final_w = np.array([ +[ -0.0133, +0.0628, -0.6441, +0.2383, +0.4270, +0.1927, -0.3628, +0.3698], +[ -0.0089, +0.0614, +0.0522, -0.3912, -0.1872, -0.7369, +0.0852, -0.1505], +[ +0.2779, +0.7024, -0.3493, -0.2124, -0.0220, +0.0741, +0.0670, -0.1029], +[ -0.0519, +0.2775, -0.3879, -0.0335, +0.1150, +0.0789, -0.1963, +0.1992], +[ +0.0241, +0.2946, +0.2777, -0.2040, +0.4150, +0.0810, -0.0170, -0.0202], +[ -0.2781, +0.0243, -0.0485, +0.1249, -0.0354, -0.0327, +0.2284, -0.3674], +[ -0.1843, +0.1452, -0.0728, +0.2894, +0.1892, +0.0013, +0.1527, -0.3815], +[ +0.4556, -0.1760, +0.0188, -0.2475, -0.3291, -0.3527, -0.6556, -0.5543], +[ +0.0309, +0.3396, +0.0626, -0.0045, +0.2597, -0.2234, +0.3634, -0.1476], +[ -0.3221, +0.4484, +0.0538, +0.2543, -0.3213, +0.4323, -0.2503, +0.0654], +[ +0.5351, -0.2229, -0.1097, +0.1062, -0.5535, +0.4454, +0.1802, +0.1971], +[ +0.1813, +0.0778, +0.1647, -0.1118, +0.4696, -0.3322, -0.2033, -0.0201], +[ +0.1423, +0.2278, +0.0263, +0.1439, +0.0134, -0.5282, +0.1236, -0.0416], +[ +0.1217, +0.1197, -0.5194, +0.4029, -0.1307, -0.4352, -0.0514, -0.2256], +[ +0.1484, +0.0685, +0.4156, +0.1887, -0.7306, +0.1027, -0.4018, +0.0134], +[ +0.2326, +0.0218, +0.0390, +0.0010, -0.5719, +0.0264, -0.4600, -0.3220], +[ -0.0586, -0.3066, +0.2050, +0.1253, +0.4542, +0.1711, -0.6051, +0.0061], +[ +0.0108, -0.5588, -0.3976, +0.3375, +0.3065, +0.2118, -0.4879, +0.1444], +[ -0.1443, -0.2895, -0.3992, +0.0409, +0.3109, -0.0295, -0.2016, -0.3679], +[ -0.2630, +0.2348, +0.2592, +0.1778, -0.1501, -0.2856, +0.3477, +0.1416], +[ -0.3078, -0.3138, +0.2040, -0.3254, +0.2891, +0.0228, -0.3580, +0.2438], +[ -0.0035, -0.1374, +0.9035, +0.1420, +0.1437, -0.1159, -0.1822, +0.2037], +[ +0.2533, -0.0089, -0.1549, +0.1085, -0.5376, -0.0639, +0.3232, +0.0673], +[ -0.1033, +0.2733, +0.1426, +0.4075, -0.1140, +0.1152, +0.2189, +0.7337], +[ +0.0682, -0.1010, +0.2224, +0.4526, +0.0599, +0.1290, -0.5523, +0.0333], +[ +0.1089, -0.1139, -0.0310, -0.2661, +0.0781, -0.1955, -0.2610, +0.1017], +[ +0.0011, +0.4399, -0.2365, -0.1523, -0.1508, +0.2314, +0.1414, +0.1116], +[ +0.0014, -0.0973, +0.6542, -0.0039, -0.2656, -0.1597, +0.0158, -0.0201], +[ -0.1700, +0.0102, +0.1321, -0.1934, -0.2208, +0.0057, +0.1504, +0.3798], +[ +0.1586, +0.0557, +0.1042, -0.4201, +0.0613, -0.0152, -0.3855, +0.1035], +[ -0.0969, -0.0936, +0.1289, -0.4031, +0.1148, +0.3258, +0.2017, -0.2499], +[ +0.5422, -0.3985, -0.0758, -0.0241, +0.1124, +0.0043, -0.0495, -0.1127], +[ +0.1679, -0.1337, -0.2102, -0.0678, +0.0768, -0.5881, +0.0327, -0.1429], +[ +0.2756, -0.1772, -0.3729, -0.0931, +0.6402, -0.0739, -0.1221, +0.5423], +[ -0.2310, -0.6409, -0.0729, -0.2143, +0.0735, -0.3279, -0.1317, -0.2060], +[ -0.0864, +0.0344, -0.5635, +0.3137, -0.0566, -0.3874, -0.0119, +0.0187], +[ +0.4066, +0.1192, +0.2065, +0.0546, +0.2182, +0.6743, +0.2802, -0.0638], +[ +0.2526, +0.6688, -0.0943, -0.2531, +0.1259, +0.1115, +0.0581, -0.0340], +[ +0.1820, +0.2927, -0.2457, +0.0310, -0.3335, -0.5889, +0.0088, +0.3045], +[ +0.0072, -0.0702, +0.1246, +0.0875, +0.0488, +0.2379, -0.1760, -0.5422], +[ +0.1416, +0.1796, -0.7311, +0.0016, -0.4996, +0.0724, -0.4854, +0.2310], +[ -0.5525, +0.1246, +0.8667, +0.3521, -0.7227, +0.4473, +0.0805, -0.1707], +[ -0.3557, +0.0798, +0.5322, -0.0827, +0.1836, +0.2784, -0.1676, -0.1012], +[ -0.6738, +0.5545, -0.3111, +0.2171, -0.3377, -0.2039, -0.1205, +0.1212], +[ -0.2249, -0.1037, -0.4715, -0.3616, +0.2250, +0.0999, +0.4772, -0.0679], +[ -0.4895, -0.2557, +0.0892, -0.0000, -0.4443, +0.2913, -0.0450, -0.3303], +[ -0.2729, +0.0973, +0.2516, -0.4313, -0.1743, -0.2386, -0.1142, -0.0440], +[ -0.6820, +0.2449, -0.1079, +0.3047, +0.0325, -0.0980, +0.1868, -0.1600], +[ -0.2085, -0.2897, -0.4539, -0.0506, +0.1225, +0.1976, -0.2360, +0.6553], +[ +0.5299, +0.2876, +0.2354, -0.0884, -0.1821, +0.3841, -0.0701, +0.0278], +[ -0.1594, -0.4837, +0.1483, -0.1280, +0.0962, -0.1932, +0.1730, +0.0544], +[ +0.2879, -0.1846, +0.1474, -0.3383, +0.1483, +0.1159, +0.3761, +0.2326], +[ -0.0960, -0.0727, -0.3099, +0.0548, +0.2339, -0.2232, +0.6066, +0.3826], +[ -0.0171, +0.1490, -0.3324, -0.0231, +0.0700, -0.6364, -0.1944, +0.3094], +[ +0.0804, -0.0278, +0.0182, -0.3807, -0.3628, -0.3564, +0.2279, -0.0226], +[ +0.4219, +0.0741, +0.1299, +0.4700, +0.1927, +0.0849, -0.1574, +0.5607], +[ +0.0810, -0.0815, +0.1356, +0.2048, -0.1404, -0.0222, -0.2464, +0.4991], +[ +0.3000, +0.0862, -0.3917, +0.4117, +0.0306, +0.0788, -0.0403, -0.6423], +[ -0.2445, +0.4847, +0.0478, -0.2170, -0.3700, +0.0189, +0.0001, -0.0335], +[ +0.3710, -0.0115, -0.4207, -0.4245, +0.2041, -0.0875, -0.2369, -0.6424], +[ -0.3608, +0.0539, -0.3928, -0.0352, +0.2832, +0.1003, -0.0082, +0.3201], +[ +0.2221, -0.0399, +0.2092, -0.1670, -0.5146, +0.2273, +0.3011, -0.2879], +[ +0.1500, +0.3236, +0.1295, -0.0763, -0.2708, +0.6542, +0.1379, -0.0646], +[ +0.1291, +0.0417, +0.1386, +0.0166, +0.1373, +0.1956, +0.4986, +0.5690] +]) + +weights_final_b = np.array([ -0.0680, +0.1401, -0.0628, -0.1317, +0.1489, +0.1844, -0.1147, +0.0137]) + +if __name__=="__main__": + demo_run() diff --git a/examples/pybullet/gym/enjoy_TF_HalfCheetahBulletEnv_v0_2017may.py b/examples/pybullet/gym/enjoy_TF_HalfCheetahBulletEnv_v0_2017may.py new file mode 100644 index 000000000..bf8efd4da --- /dev/null +++ b/examples/pybullet/gym/enjoy_TF_HalfCheetahBulletEnv_v0_2017may.py @@ -0,0 +1,308 @@ +import gym +import numpy as np +import pybullet as p +import envs +import time + +def relu(x): + return np.maximum(x, 0) + +class SmallReactivePolicy: + "Simple multi-layer perceptron policy, no internal state" + def __init__(self, observation_space, action_space): + assert weights_dense1_w.shape == (observation_space.shape[0], 128) + assert weights_dense2_w.shape == (128, 64) + assert weights_final_w.shape == (64, action_space.shape[0]) + + def act(self, ob): + x = ob + x = relu(np.dot(x, weights_dense1_w) + weights_dense1_b) + x = relu(np.dot(x, weights_dense2_w) + weights_dense2_b) + x = np.dot(x, weights_final_w) + weights_final_b + return x + +def demo_run(): + env = gym.make("HalfCheetahBulletEnv-v0") + + cid = p.connect(p.GUI) + + pi = SmallReactivePolicy(env.observation_space, env.action_space) + #disable rendering during reset, makes loading much faster + p.configureDebugVisualizer(p.COV_ENABLE_GUI,0) + p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,0) + env.reset() + p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,1) + torsoId = -1 + for i in range (p.getNumBodies()): + print(p.getBodyInfo(i)) + if (p.getBodyInfo(i)[1].decode() == "cheetah"): + torsoId=i + print("found torso") + print(p.getNumJoints(torsoId)) + for j in range (p.getNumJoints(torsoId)): + print(p.getJointInfo(torsoId,j))#LinkState(torsoId,j)) + + while 1: + frame = 0 + score = 0 + restart_delay = 0 + p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,0) + obs = env.reset() + p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,1) + + while 1: + time.sleep(0.001) + a = pi.act(obs) + obs, r, done, _ = env.step(a) + score += r + frame += 1 + distance=5 + yaw = 0 + humanPos = p.getLinkState(torsoId,4)[0] + p.resetDebugVisualizerCamera(distance,yaw,-20,humanPos); + still_open = env.render("human") + if still_open==False: + return + if not done: continue + if restart_delay==0: + print("score=%0.2f in %i frames" % (score, frame)) + restart_delay = 60*2 # 2 sec at 60 fps + else: + restart_delay -= 1 + if restart_delay==0: break + +weights_dense1_w = np.array([ +[ -0.4105, +0.5540, +0.2791, +0.4953, -0.0309, +0.8480, +0.1630, +0.0630, +0.7107, +0.0597, +0.2675, -0.1931, -0.2436, +0.2909, +0.3563, +0.4564, -0.0445, -0.2228, +0.7005, +0.8368, +0.3631, +0.7365, +0.2453, +0.4687, +0.4819, +0.4940, +0.5096, +0.5929, +0.5504, +0.2265, +0.4118, +0.5993, +0.2402, -0.5087, -0.0756, +0.7520, -0.0086, -0.0648, +0.0564, -0.0812, -0.0093, +0.8482, +0.7333, +0.4401, -0.1273, -0.2974, +0.1284, -0.4948, +0.1120, +0.7938, +0.1297, +1.0807, +0.2480, +0.2444, +0.4258, +0.1515, -0.0126, +0.3098, -0.2786, +0.4913, +0.3065, +0.3356, +0.6884, +0.3117, +0.3163, +0.4234, +0.1172, +0.8810, +0.3574, -0.3993, -0.5597, +0.2233, +0.8058, +0.3391, -0.1113, +0.1884, +0.1324, +0.0503, +0.1807, +0.0441, -0.2065, +0.1978, +0.0852, -0.3531, +0.2180, +0.7946, -0.0318, +0.0650, -0.3174, -0.1715, -0.0486, +0.2131, -0.3901, +0.1995, +0.8593, +0.1786, +0.3595, +0.7852, +0.3491, -0.4206, +0.6117, -0.1991, +0.1876, -0.3114, -0.2007, -0.2738, -0.0388, +0.0465, +0.2726, -0.5321, +0.4720, -0.0555, +0.3415, +0.1447, -0.1132, -0.2958, -0.6729, -0.5003, -0.4960, -0.2600, -0.4158, -0.4476, -0.8244, -0.0574, +0.2194, +0.0541, -0.3526, -0.1131], +[ -0.2662, +0.1763, +0.0520, +0.3624, +0.0564, +0.2756, +0.0743, +0.0155, +0.1861, -0.5311, +0.2181, -0.3643, +0.1433, +0.1801, -0.1781, -0.3576, -0.2487, +0.0588, +0.3906, -0.3994, +0.1343, +0.2701, +0.1613, +0.1962, -0.0277, +0.0303, +0.0845, -0.1033, -0.1092, -0.1026, -0.2261, +0.3324, +0.1881, -0.2780, -0.0865, -0.2131, -0.1238, -0.1727, +0.1086, +0.1383, +0.1794, +0.0677, -0.0582, -0.0758, +0.0834, +0.0847, +0.0945, +0.1888, -0.0696, +0.0111, -0.0028, +0.0439, -0.3847, -0.1564, -0.2226, +0.0002, +0.0926, -0.2819, -0.0868, +0.2233, +0.0738, +0.1671, -0.0326, +0.3784, -0.0117, +0.0836, +0.0285, +0.0376, +0.0157, +0.1297, +0.0556, -0.0533, -0.0103, +0.0740, -0.1825, -0.2399, -0.0609, -0.0030, +0.1811, -0.2784, -0.2249, +0.3637, +0.1895, +0.3102, -0.0767, +0.1143, -0.0840, +0.2981, -0.3040, +0.0135, +0.2495, +0.0036, -0.1493, -0.1144, -0.0006, +0.1195, +0.0961, -0.4227, -0.3022, +0.2102, +0.2024, -0.2111, +0.1507, +0.2948, -0.1822, +0.2263, -0.3213, +0.0380, -0.1188, +0.1237, +0.0731, +0.0044, -0.1637, -0.3173, +0.0895, -0.0130, +0.0703, -0.2186, +0.1401, +0.1191, +0.0225, -0.3208, -0.0578, -0.3113, +0.1041, -0.1957, -0.3054, -0.0797], +[ +0.3485, -0.3161, -0.4092, +0.1190, -0.5706, -0.3627, +0.0576, -0.1068, +0.1367, +0.1686, +0.0284, -0.1694, -0.0496, -0.1647, +0.0111, -0.1897, -0.4613, -0.5996, -0.0601, -0.1417, -0.0236, -0.0898, +0.1239, -0.2693, -0.1709, +0.3592, -0.1284, -0.0376, -0.1308, -0.1832, -0.0538, -0.0467, -0.1181, -0.0994, -0.3281, +0.0527, -0.4579, -0.1062, -0.1058, -0.4459, -0.0901, -0.0246, -0.1125, +0.1228, -0.3428, -0.3385, +0.0366, -0.0988, +0.1345, +0.0299, +0.2921, -0.1347, +0.1688, -0.1350, -0.0888, +0.0734, -0.0936, -0.2695, +0.0154, +0.0237, -0.1334, -0.3247, -0.1856, -0.0449, -0.0772, +0.0176, -0.0856, -0.1746, -0.1575, -0.2365, -0.0741, -0.1638, +0.0864, -0.0243, -0.0472, +0.0423, -0.2962, -0.2523, -0.1430, +0.1470, -0.1122, -0.1843, -0.1437, -0.1895, +0.1110, -0.2572, -0.3307, -0.2597, -0.4706, -0.2441, -0.2988, -0.5409, -0.1696, +0.0810, -0.2336, -0.0925, +0.4226, +0.1162, -0.3211, -0.2118, -0.3100, -0.1384, +0.1625, +0.0005, -0.1936, +0.2836, +0.1660, -0.2154, +0.1341, -0.2413, -0.1203, -0.3427, +0.0863, +0.1393, -0.3580, +0.1443, -0.2158, -0.4703, -0.2687, -0.0573, +0.1099, -0.2551, -0.0506, -0.3351, -0.2325, -0.0119, -0.0907, -0.0628], +[ +0.0565, +0.2158, +0.1461, +0.1045, -0.3548, -0.2816, -0.0124, -0.0931, +0.1249, +0.0093, -0.3325, -0.1646, +0.3022, -0.0509, -0.1403, +0.3703, +0.2642, +0.0835, +0.1347, +0.1734, -0.0112, +0.3162, -0.0076, +0.1258, -0.2059, +0.2387, +0.0775, -0.1653, -0.3899, -0.1205, -0.2263, +0.2800, -0.1979, +0.1708, +0.0505, -0.0998, +0.1838, -0.1314, -0.1932, -0.1897, -0.3157, -0.0113, -0.3488, +0.1534, -0.3546, -0.1098, +0.0652, -0.1327, -0.0131, +0.3698, -0.0927, +0.1735, -0.4869, +0.1768, -0.0187, -0.1069, -0.2118, -0.2557, -0.1380, -0.0579, -0.2147, +0.3389, -0.1801, +0.1954, -0.2856, +0.0825, +0.1846, -0.2102, +0.4063, -0.0422, +0.1645, -0.2313, -0.2017, -0.2554, +0.1597, -0.1198, +0.4493, +0.1135, +0.1556, -0.0380, +0.0527, -0.0505, -0.5094, -0.4410, +0.2543, +0.2891, -0.0031, -0.0863, +0.2982, +0.1069, -0.4814, +0.0295, -0.0547, +0.0518, -0.4326, -0.0295, -0.3795, +0.0399, +0.0363, +0.1623, +0.4509, +0.2852, -0.4404, +0.0109, -0.0394, +0.0092, -0.1684, +0.4728, -0.1317, +0.0575, -0.3862, -0.1313, +0.0676, +0.1321, -0.2816, -0.0500, -0.0027, +0.0906, +0.0297, -0.1476, +0.0337, +0.0911, -0.1591, +0.2816, -0.0435, -0.3437, -0.0732, -0.4545], +[ -0.2090, -0.1890, -0.4459, +0.0942, +0.2823, -0.0085, -0.1576, -0.5515, +0.1211, -0.0689, +0.2807, +0.1457, +0.2009, -0.2739, +0.0296, -0.0511, -0.1048, -0.1275, +0.2358, +0.3103, +0.2239, +0.2028, -0.0858, +0.0520, -0.1453, +0.2013, -0.2131, -0.0596, -0.0469, -0.0934, -0.2082, +0.2071, -0.5051, +0.1719, -0.1380, -0.2781, -0.0598, -0.1636, +0.2784, -0.0144, +0.0655, -0.1932, +0.1421, -0.0840, -0.0277, -0.2310, -0.0509, +0.0870, +0.0721, -0.1785, +0.1514, -0.1485, -0.1158, +0.1124, -0.1155, -0.4105, -0.1765, +0.0103, -0.1695, +0.0521, -0.1132, -0.1209, -0.1313, -0.0419, +0.1828, -0.1026, +0.0564, +0.0095, -0.0414, +0.1264, +0.1588, -0.2200, +0.1928, -0.2098, +0.4256, -0.3453, -0.3882, -0.2238, -0.1347, +0.2160, +0.4278, -0.2666, -0.1046, +0.2501, +0.0238, +0.2802, -0.3955, +0.1452, +0.1773, -0.0727, -0.3603, -0.2480, -0.0412, +0.2462, +0.2148, -0.2819, +0.0982, -0.0102, +0.0310, +0.0147, +0.0597, +0.0514, -0.0032, +0.1320, -0.0606, -0.0637, +0.0398, +0.1367, +0.0646, -0.0435, +0.0527, +0.1258, -0.2075, -0.1816, -0.2129, -0.1253, +0.2394, -0.2325, -0.1115, -0.4115, -0.1196, -0.2855, +0.3805, -0.2741, -0.0278, -0.3461, +0.0139, -0.0499], +[ -0.6025, +0.2692, +0.5276, +0.3615, -0.3196, +0.3828, +0.1312, -1.1323, -0.0073, -0.1227, -0.0831, +0.0605, -1.0515, -0.1917, -0.2510, +0.2964, -1.1074, -0.1708, -0.4475, -0.1189, +0.3345, +0.5101, +0.4628, +1.1872, +0.5829, +0.0234, +0.0306, +0.0021, -0.1827, -0.0257, -0.2993, +0.0083, -0.9032, -0.0311, +0.0045, +0.6173, +0.3095, -0.1490, -0.2561, +0.2011, -0.1550, -0.1936, +0.0729, +0.7613, -0.9194, +0.1954, +0.0306, +0.2292, +0.1529, -0.1161, -0.0182, -0.2625, -0.3142, -0.9182, +0.2761, +0.3656, +0.3537, +1.0318, -0.4273, +0.1703, -0.2378, -0.4640, +0.6184, +0.3686, -0.3043, -0.4850, -0.2155, -0.6656, +0.1921, -0.2552, -0.8096, +0.8593, -0.3583, -0.0332, -0.5619, +0.2977, -0.3425, -0.7839, -0.4299, -0.2358, +0.0526, -0.0752, -0.6535, +0.0501, -0.4043, +0.8261, -0.4269, -0.1165, +0.3480, -0.2337, -0.3269, -0.2775, +0.7307, +0.5863, -0.1005, -0.3421, +0.1591, +0.4530, -0.1228, -1.0896, +0.6218, -0.0610, -0.1239, -1.5883, -0.1711, -0.4331, -0.3553, +0.0773, +0.3669, -0.5690, +0.7117, -0.2021, -0.1426, -0.1125, +0.0364, +0.2397, -0.1739, -0.3131, -0.9135, -0.7713, -0.0638, -0.3219, +0.0353, +0.3407, -0.0035, -0.1492, -0.1118, -0.4841], +[ -0.0175, -0.3710, +0.0894, +0.2056, -0.2250, +0.0982, +0.0039, -0.2128, -0.0479, +0.3049, +0.2228, -0.1747, -0.0936, +0.1146, +0.1377, +0.0127, +0.0014, +0.1374, +0.1557, -0.1890, -0.2396, +0.2248, +0.1710, -0.2916, +0.4568, -0.0645, -0.0760, -0.2067, -0.3900, +0.0276, -0.3171, -0.0148, +0.2019, -0.1335, -0.0731, -0.3224, +0.0859, +0.2299, +0.0602, +0.0499, -0.2686, +0.1028, +0.1204, +0.0321, +0.0636, -0.1350, -0.1789, -0.0529, -0.2255, +0.1867, +0.1258, +0.1392, -0.2657, +0.1478, +0.1961, -0.0687, +0.1878, +0.2016, -0.2413, +0.0050, -0.0666, -0.0226, -0.0185, +0.4750, -0.1661, +0.0637, -0.2668, +0.1875, +0.0032, +0.1176, +0.1844, -0.1665, -0.1806, -0.3208, +0.0606, -0.0122, +0.2792, +0.1867, +0.1424, +0.2775, +0.1074, -0.2996, +0.0562, -0.1864, +0.1985, +0.1356, -0.3013, -0.0824, -0.1534, -0.0795, -0.0086, -0.0490, -0.0861, -0.0986, +0.3499, -0.0630, +0.0028, -0.1540, +0.0377, -0.1057, +0.1303, +0.1379, -0.1257, -0.2578, -0.0744, -0.1304, +0.0411, -0.1635, +0.0535, +0.0271, +0.1674, +0.1309, -0.0397, -0.1127, -0.2217, +0.0548, -0.5178, +0.1170, +0.4857, +0.1134, +0.0598, +0.1467, +0.1405, -0.1152, +0.1825, -0.0382, +0.1325, +0.2708], +[ -0.1185, -1.2480, -0.6130, -0.9105, +0.1073, -0.7702, -1.2908, +0.6513, -0.3928, -0.7365, -0.2977, +0.7845, +0.3186, +0.2207, -1.1391, -0.9353, +1.1582, -0.7291, +0.2077, +0.2808, -0.5894, +0.4805, -0.2316, -0.8861, -0.4102, -1.1704, +0.9183, -0.0637, -0.1935, -0.2971, -0.6144, +0.6113, +0.1596, -0.2931, +0.3199, -0.2938, -0.2098, +0.3615, -0.3433, +0.0334, +0.2148, -1.9070, -0.0655, -0.5875, +0.5659, +0.0436, +0.5074, +0.5399, -0.2164, -0.7224, -0.1556, -1.3397, +0.5629, +0.1272, -0.1749, -1.2117, +0.9305, -0.9436, -0.9450, -0.4745, -0.9840, -0.5153, -0.1703, -0.5252, -0.0291, +0.3351, +1.0137, -1.4468, +0.1594, +0.4054, +0.9667, -0.3279, -1.2628, -0.6361, -0.1322, -0.4219, -0.8181, +0.1316, +0.3924, +0.4478, +0.5855, -0.0547, -1.4541, +0.1199, -0.2794, -0.9176, +0.8841, +0.2706, -0.1612, +0.7667, -0.3909, -1.6514, +0.1562, -0.3166, -0.2654, +1.0692, -0.1898, -1.3619, +0.0357, +0.6267, -0.0957, -0.5473, -0.9002, +0.4248, +0.7671, +0.6034, +0.1176, +0.4126, -0.4076, +0.5846, -0.4275, +0.0146, +0.5074, +0.4825, +0.3414, -0.0289, +0.5663, +0.9628, +0.9791, -0.1043, +1.2530, +1.3600, +1.6041, +0.4200, -0.2415, -0.4470, +0.6965, +0.2395], +[ +1.2479, -0.0619, -0.4174, -0.2800, +0.2902, +0.2310, +0.0858, -0.0805, +0.2556, +0.8018, -0.1018, +0.9876, +0.2342, +0.3219, +0.3031, -0.1343, +0.0737, +0.2219, -0.6479, -0.4475, +0.3711, +0.4780, -0.8735, +0.6208, -0.3031, +0.1480, +0.4935, +0.9053, +0.0797, -0.3932, +0.0853, -0.4709, -0.6192, +1.1604, -0.0924, -0.2548, +0.5836, +0.0325, -0.2435, -0.1506, -0.1754, -0.2248, -0.8059, -0.1997, +0.7772, +0.1456, -0.1463, -0.0360, -0.0240, -0.1852, -0.1289, +0.9165, -0.2434, +0.7580, +0.3838, -0.0338, +0.1199, -0.1700, -0.4038, -0.1863, +0.0925, -0.2396, +0.4659, +0.1810, +0.6990, +0.2880, +0.0641, -0.3991, +0.6049, -0.5948, -0.1894, -0.7874, -0.6910, +0.0824, +0.5111, -0.2513, +0.4632, +0.7014, -0.6793, +0.0562, -0.0800, +0.2665, -0.0270, +0.1830, +0.8184, +0.5293, -0.3352, +0.1144, +0.7672, -0.0924, +0.2099, -0.0854, -0.1534, +0.2607, -0.1140, -0.1163, +0.0403, +0.2623, +0.4065, +0.9303, +0.4008, -0.1773, +0.0368, +0.4014, -0.6941, +0.0333, +0.3245, +0.0262, +0.7663, +0.3834, +0.4088, +0.0289, -0.6102, +0.5717, -0.0787, +0.2367, +0.2061, -0.3039, -0.0797, +0.0814, +1.2009, +0.4369, +0.0788, +0.2358, +0.9926, +0.5428, -0.5656, -0.2758], +[ +0.3487, +0.2086, -0.0813, +0.4360, -0.2904, +0.4395, +0.1773, +0.0481, +0.4503, +0.4991, +0.3741, +0.1866, -0.2241, -0.3511, +0.2302, +0.5140, +0.5208, +0.5968, +0.5189, +0.2814, +0.3372, +0.3461, +0.0298, +0.0069, -0.1004, +0.5782, -0.2609, +0.1167, -0.5090, -0.3220, +0.0509, +0.4076, -0.1667, +0.2021, -0.0495, +0.2189, -0.0504, -0.3792, -0.4321, +0.0364, -0.0175, -0.0359, +0.0965, +0.3641, -0.2778, -0.1170, +0.7745, -0.2177, +0.1121, +0.0240, +0.6502, +0.1845, -0.0903, +0.3065, +0.0884, +0.4046, -0.2021, -0.3310, +0.0056, -0.2555, +0.0209, +0.5952, -0.1765, +0.0503, -0.0449, +0.2059, +0.2699, -0.2488, -0.6611, +0.2942, -0.4384, +0.3329, +0.4411, -0.1499, -0.0820, +0.5042, +0.2737, -0.3949, +0.4931, +0.0065, -0.8717, -0.4590, +0.1508, +0.3686, +0.1564, -0.2887, -0.3002, -0.0485, +0.0003, -0.4201, -0.0104, +0.2674, +0.1690, +0.1299, -0.0258, -0.0109, +0.6633, +0.3255, -0.0330, +0.4770, +0.3560, +0.1506, +0.3608, +0.4205, +0.0090, -0.3770, +0.2320, -0.2200, +0.0256, -0.2081, -0.1292, +0.0661, -0.3286, +0.1211, +0.1542, +0.5790, +0.0675, -0.1831, -0.0903, +0.0403, +0.1506, -0.2725, +0.1505, -0.3582, -0.2939, -0.3307, -0.2906, -0.1859], +[ +0.6120, +0.3881, -0.2144, +0.0539, +0.2717, +0.0574, -0.6547, -1.1043, -0.4978, +1.0026, -0.2662, -0.3964, -0.4590, +0.5876, +0.3651, +0.2121, -0.3029, +0.4225, -0.2654, -0.0867, -0.0286, +0.4754, +0.5950, -0.0923, +0.5628, -0.1033, -0.1225, -0.5554, -0.9027, -0.3767, -0.7881, -0.0124, -0.6633, -0.7063, +0.4806, -1.2205, -0.1279, +0.0321, +0.3928, +0.0134, +0.3143, -0.5378, +0.0553, +0.1611, +0.0254, -0.4512, +0.7660, +0.4550, +0.6917, +0.0186, +0.1970, -0.4484, +0.4214, +0.5640, +0.7182, -0.6329, +0.3644, -0.5340, -0.0268, -0.3028, +0.4847, -0.1190, -0.3030, +0.4755, +0.1916, -0.1579, -0.1899, -0.1830, +0.2239, -0.8405, -0.0194, -0.4524, -0.6924, +1.0233, -0.1682, -1.0005, -0.1989, +0.0655, -0.5738, +0.3489, -0.2032, -0.5767, +0.2677, -0.2104, +0.9164, -0.6995, +0.3138, +0.2631, +0.4646, -0.7949, -0.4088, +0.0390, +0.5322, +0.8076, +0.3327, -0.8003, -0.4473, +0.2003, -0.0771, +0.9627, -0.5091, +0.5703, -0.3930, +0.3132, +0.9709, +0.2298, +0.2046, -0.4682, -0.4135, +0.8331, -0.0837, -0.2126, -0.2461, -0.6451, -0.3118, +0.1340, +0.3047, -0.3990, +0.8511, -0.0305, +0.7664, +0.2561, +0.5513, +0.2083, -0.7912, -0.5125, -0.5167, -0.5089], +[ +0.2836, +0.6191, -0.2299, +0.4317, +0.1775, -0.6181, +0.0461, +0.0362, +0.0559, +0.7882, -0.1351, -0.3722, +0.1090, +0.0281, +0.1148, +0.7799, -0.2107, -0.3900, -0.2063, -0.3643, +0.7287, -0.2938, +0.1283, -0.1046, +0.0992, -0.1031, +0.6297, -0.8027, -0.0918, +0.2503, +0.5527, +0.3296, -0.0083, -0.1686, +0.0065, +0.2643, +0.1768, -0.4890, +0.0692, +0.5517, +0.6225, -0.0423, -1.0015, -0.5841, -0.2217, -0.6242, -0.1942, -0.3841, +0.7571, +0.4939, -0.2331, +0.1612, +0.0843, +1.2429, -0.2966, -0.5344, +1.0299, -0.7019, -0.1317, -0.0856, +0.2293, -0.0003, -0.0487, -0.5326, +0.0300, +0.5683, +0.2054, -0.3269, +0.6114, -0.5650, -0.1812, -0.8703, +0.0364, +0.6392, -0.7844, +0.0227, +0.6228, +0.5272, -0.8685, -0.4089, -0.3416, -0.1562, +0.1535, -0.0063, +0.6183, -0.5915, -0.1640, -0.2188, +0.4079, -0.3470, +0.5118, +0.4866, -0.9074, -0.0650, +0.3942, -0.1759, -0.3695, +0.1913, +0.9200, +0.2702, -0.2663, +0.1217, -0.1575, -0.2490, +0.1515, -0.7135, +0.4985, +0.1606, -0.1133, -0.2688, -0.4154, -0.5524, -0.0633, -0.0389, +0.4926, -0.0719, -0.3427, -0.6053, -0.1829, -0.5910, +0.1137, +0.0312, +0.4532, +0.1142, +0.3834, -0.0407, -0.5945, -0.6180], +[ +0.0362, -0.5185, -0.3235, +0.0613, +0.3283, +0.6853, -0.3136, +0.4028, +0.2535, +0.0223, +0.1985, -0.9784, +0.8819, -0.4328, -0.1815, +0.2478, -0.1824, -0.0182, +0.3654, -0.2296, +0.3019, -0.1017, +0.5535, +0.2589, -0.4000, +0.0137, -0.4569, +0.4085, +0.3198, +0.1833, -0.2268, +0.1447, +0.3493, +0.4606, -0.2277, -0.0773, -0.6224, +0.8234, +0.0221, +0.5623, -0.1428, -0.5706, +0.5371, +0.8732, -0.5540, -0.0395, +0.8031, +0.3599, +0.5903, +0.0713, -0.1844, +0.5461, +0.1745, +0.1545, -0.2652, -0.0803, +0.2160, -0.4186, -0.3271, +1.0229, -0.0675, +0.0257, +0.3415, +0.1843, -0.4467, +0.0753, +0.3914, -0.0426, +0.2589, -0.2688, -0.2011, -0.0360, -0.2472, -0.4691, +0.1115, -0.3416, +0.1560, -0.1638, -0.3131, -0.3056, +0.1102, +0.0386, -0.0213, +0.0334, +0.5400, +0.3385, +0.0520, +0.2917, +0.0586, +0.3761, -0.2422, -0.4576, -0.0317, +0.2312, +0.7176, +0.2603, -0.1864, -0.3297, -0.3581, +0.3024, +0.4191, +0.1382, -0.4671, -0.1097, +0.3002, +0.1556, +0.3214, +0.0859, +0.2674, -0.0762, +0.1793, +0.8109, +0.5113, +0.0960, +0.2222, +0.2567, -0.0165, +0.8895, -0.0689, -0.1649, +0.5046, +0.1555, +0.2201, -0.2468, -0.5657, -0.5523, -0.7054, -0.2129], +[ +0.0779, -0.1795, -0.3084, +0.0991, +0.0959, -0.0223, +0.3783, +0.3527, -0.2872, +0.3394, +0.0425, -0.0484, -0.2041, +0.9751, -0.2537, +0.0812, +0.2257, +0.4729, +0.4647, +0.4171, +0.0146, -0.1489, +0.5499, +0.4513, -0.2661, -0.8428, +0.3146, -0.1790, +0.0097, -0.1133, +0.0693, +0.3234, +0.0583, -0.6285, -0.7520, -0.2485, -0.5776, +0.6696, -0.2599, -0.0951, -0.2328, -0.5490, +0.5175, +0.0767, -0.3109, -0.2104, +0.1518, -0.5617, +0.0181, +0.2775, +0.0589, +0.3021, -0.8439, -0.0653, -0.4131, -0.4757, +0.6912, -0.0174, -0.3354, +0.5238, -0.2113, +0.0943, -0.1804, +0.0211, +0.5478, +0.5479, +0.3961, +0.0754, +0.0795, -0.2051, -0.1059, -0.2414, +0.0145, +0.6187, +0.1991, +0.1538, -0.5956, -0.0687, -0.1066, +0.5816, +0.3722, -0.3560, +0.4422, +0.4901, +0.5202, -0.1284, +0.6292, +0.8110, +0.5204, -0.2698, -0.1241, -0.0359, -0.0064, -0.3268, +0.7780, -0.3028, +0.1004, -0.0382, -0.4620, +0.2837, -0.8406, -0.2417, +0.2056, +0.0777, -0.2286, +0.0642, +0.5493, -0.8877, -0.1941, +0.3304, +0.4645, -0.4799, -0.2487, +0.2221, +0.7077, +0.2539, -0.1791, +0.2926, +0.1322, +0.0905, +0.1544, -0.2086, +0.3299, -0.0308, -0.0567, +0.1242, -0.0968, +0.4553], +[ -0.2603, -0.4800, +0.0541, -0.8000, -0.6535, -0.8949, -0.3607, -0.0667, -0.7336, -0.3965, +0.3150, +0.1505, -0.3550, -0.1260, +0.3011, -0.0821, -0.3796, -0.1918, -0.3090, +0.0550, +0.1061, -0.3667, -0.8571, -0.4193, -0.4680, -0.3205, +0.2565, -0.3090, -0.2638, +0.1026, -0.1909, -0.5068, +0.0748, -0.4648, +0.0748, -0.2874, +0.2573, -0.1646, -0.1574, +0.1782, -0.2502, +0.1568, -0.1522, -0.5577, +0.5309, +0.1850, -0.1607, +0.2624, +0.0171, +0.2342, -0.8137, +0.2716, -0.1085, -0.4303, -0.5537, -0.0020, -0.0393, -0.3333, +0.2081, -0.0905, -0.6573, +0.1222, -0.4209, -0.3416, -0.2223, +0.5376, -0.0664, +0.2956, +0.4846, +0.5470, +0.3633, -0.2415, -0.6977, -0.4417, -0.1011, -0.4229, -0.1614, -0.0722, -0.4239, -0.2685, +0.4363, +0.1485, -0.0346, -0.1507, +0.0344, -0.0586, -0.1486, +0.1647, -0.0353, +0.3965, +0.1495, -0.1808, -0.3812, -0.3466, -0.6642, -0.1044, -0.6627, -0.3414, -0.3478, -0.0244, -0.0663, -0.2007, -0.3840, -0.6573, -0.4302, +0.0623, +0.0473, -0.1558, -0.5837, +0.1068, -0.1332, -0.0385, -0.0638, -0.7497, -0.1423, -0.3235, -0.2541, -0.2405, +0.3238, -0.1456, +0.2076, +0.1714, +0.0112, +0.3124, +0.0782, +0.1887, +0.3277, +0.1156], +[ -1.0948, -0.2236, +0.1540, -0.6062, -0.2097, -0.2825, -0.4756, +0.3731, -0.5436, -0.3209, -0.3609, -0.1703, -0.6188, +0.0140, -0.0252, +0.5627, +0.0186, +0.1253, -0.0046, +0.0767, -0.2195, +0.3782, -0.1052, -0.1369, +0.3583, -0.5566, +0.6542, -0.3200, +0.2563, -0.1301, +0.0185, -0.8119, +0.5848, +0.4946, -0.0112, +0.1033, +0.1308, -0.1700, +0.1149, +0.3101, -0.3001, +0.2433, +0.2101, +0.1298, -0.1548, +0.1310, -0.2388, +0.3923, +0.9332, +0.5030, -1.0263, -0.1072, +0.1241, -0.0134, -0.0806, -0.3525, +0.5211, -0.0752, +0.0334, +0.2871, -0.4669, -0.2720, -0.0067, +0.1326, -0.4609, -0.0674, -0.6579, -0.2538, +0.2333, +0.4456, +0.5642, -0.1694, -0.3706, +0.5684, -0.7867, -0.4995, +0.3289, -0.6711, -0.1191, -0.8581, +0.3775, +0.8927, +0.5052, -0.0896, +0.0121, +0.6358, +0.1183, +0.5200, +0.7512, +0.0846, -0.1086, -0.0426, -0.0155, +0.6603, +0.0812, +0.4987, +0.0256, +0.0992, +0.2730, -0.0697, +0.2773, -0.7570, -0.7726, -0.3871, -0.3158, -0.3692, -0.7297, -0.0744, -0.5920, +0.6132, -0.0072, +0.1400, -0.1782, -0.0227, +0.1123, -0.6036, -0.6343, +0.5520, +0.3165, -0.4080, -0.0338, -0.1839, -0.0071, +0.3603, -0.3050, +0.4097, -0.5939, -0.1245], +[ -0.3346, -0.2795, +0.2751, +0.2150, +0.4031, +0.5422, +0.3587, +0.5206, -0.6544, +0.1672, -1.0438, -0.3010, +0.6246, +1.1339, -0.6914, -0.1198, +0.0050, -0.8139, -0.1150, +0.9000, -1.1849, +1.0507, -0.2149, -0.3482, -0.7118, +0.3377, +0.2528, +0.2764, +0.2596, -0.4997, -0.8768, +0.4370, -0.0810, +0.1831, -0.0584, +0.0562, +0.4426, -0.4548, -0.6110, -0.3985, -0.0168, -0.5126, +0.5279, -0.4445, +0.0281, +0.3755, -0.0337, -0.7288, -0.4249, +0.6200, -0.1673, -0.4617, +0.0127, -0.1385, +0.6653, -0.1985, +0.4186, -0.5372, -0.5204, +0.8371, +0.2907, -0.7418, +0.0020, +0.4483, +0.1869, +0.6499, +0.1529, +0.4740, +0.6753, +0.6005, +0.7086, -0.3005, +0.5440, +0.3387, +0.2046, +0.4181, -0.8759, -0.7487, -0.1262, -0.0293, +0.8712, +0.0119, -0.7947, -1.2465, -0.0061, -0.0503, -0.2992, +0.5275, -0.3151, +0.1889, -1.5430, +0.5531, +0.2559, -0.2591, -0.2807, -0.1324, -0.7027, -0.4375, +0.1984, -0.3944, -0.0467, -0.3111, -0.6493, -0.2939, -0.0617, +0.2605, -0.9876, -0.0857, -0.6928, +0.7228, -1.2047, +0.3026, -0.7448, +0.4988, -0.3507, -0.7106, -0.7583, +0.3245, +0.2599, -1.4422, +0.4198, -0.6388, -1.3088, +0.9680, -0.0616, -0.4120, -0.3508, +0.1672], +[ -0.5261, +0.4924, +0.1685, -0.2603, +0.3052, +0.3751, -0.8492, -0.1073, +0.1541, +0.1367, +0.1658, +0.0405, -0.0968, -0.0074, -0.3535, -0.4133, +0.0255, -0.6547, -0.0838, +0.2996, +0.1273, -0.1657, +0.0394, +0.4691, +0.0353, -0.2699, +0.1696, +0.5037, +0.0277, -0.1267, -0.3741, +0.2501, +0.1612, -0.3687, -0.0763, -0.2902, +0.3456, +0.1048, +0.0277, +0.1918, -0.6208, +0.1135, -0.1049, -0.0283, +0.0202, +0.0171, +0.0822, -0.2369, +0.1969, +0.5290, -0.0731, +0.4711, -0.2303, -0.0833, -0.3602, -0.1438, -0.0070, -0.5158, -0.3721, +0.0134, +0.4545, -0.0207, +0.2113, -0.0665, -0.2343, +0.2490, -0.2058, +0.1182, +0.0765, +0.3709, +0.3816, -0.1490, -0.1526, -0.0174, +0.6291, +0.4946, -0.3356, -0.0425, -0.0716, -0.6482, +0.4502, +0.0332, -0.2189, -0.6447, +0.1329, +0.4471, -0.0323, -0.0798, -0.1390, +0.1446, -0.2377, +0.4462, -0.2870, -0.2893, -0.0998, +0.1104, -0.1755, +0.2786, +0.3976, -0.6894, -0.4004, -0.3018, -0.2645, +0.0620, +0.0661, +0.1230, -0.3739, +0.0862, -0.2077, -0.1822, +0.0729, +0.0871, -0.2029, +0.0181, +0.3299, -0.5234, +0.0010, +0.1996, +0.0403, -0.6255, +0.1214, +0.0402, -0.3186, +0.1235, +0.0944, +0.2717, +0.1232, -0.3457], +[ -0.1970, -0.3969, -0.2225, +0.1993, +0.1553, -0.0254, -0.1890, -0.3057, +0.4549, -0.0170, -0.5648, -0.4915, -0.0502, -0.2149, +0.2144, -0.5744, -0.1044, -0.4353, +0.0233, -0.0785, -0.3143, -0.3626, +0.0585, -0.3341, -0.0893, -0.4231, -0.0378, +0.0274, -0.4611, +0.0728, -0.1463, -0.2042, +0.0172, -0.4561, -0.0206, -0.1719, -0.0000, -0.4023, +0.0364, -0.1958, -0.5589, -0.0532, +0.0099, -0.0872, +0.0206, -0.0009, -0.3550, -0.3123, -0.0938, -0.2254, -0.1686, -0.2615, -0.2844, +0.0994, +0.0554, +0.1692, -0.2632, -0.1443, -0.1879, -0.1459, -0.6597, -0.3367, -0.1862, -0.3134, +0.1299, -0.0695, +0.2293, +0.0609, +0.2819, -0.1567, -0.2090, -0.1359, +0.3011, -0.2784, -0.2469, +0.0022, -0.1715, -0.1446, -0.2693, -0.3637, -0.1232, -0.2147, -0.2098, +0.0446, +0.1409, -0.0058, +0.0383, -0.1855, -0.1377, +0.0460, -0.2215, +0.3805, -0.2653, -0.1465, -0.4812, -0.0015, +0.0714, +0.0472, -0.2914, -0.2133, -0.1082, -0.8207, +0.1838, -0.1654, -0.6285, -0.5248, +0.0549, -0.1583, -0.5096, +0.1266, -0.5755, -0.3374, +0.0946, -0.3824, -0.4274, +0.1813, -0.3312, +0.1190, -0.2241, +0.0402, +0.2119, +0.1831, -0.0826, -0.1367, -0.2986, -0.4726, -0.5516, -0.0995], +[ -0.5413, +0.2330, +0.8049, -0.1323, +0.1069, +0.8225, +0.5138, +0.5381, +0.4208, +0.0392, -0.8431, +0.4248, -0.0927, +0.0971, -0.1803, -0.9058, +0.8480, -0.3816, -0.6984, -0.3827, -0.2599, +0.2374, -0.1889, -0.3184, -0.3037, +0.2556, -0.3310, -0.0797, -0.0166, -0.8056, +0.5743, +0.3340, -0.3261, -1.1856, -0.1586, -0.2816, -0.4614, -0.8387, -0.8821, -0.2603, -0.3087, -0.4192, +0.0168, -0.2696, +0.2092, -0.2967, -0.3088, +0.1593, -0.3350, +0.7112, +0.6204, +0.1440, -0.1400, +0.4595, +0.6284, -0.4182, +0.4677, +0.4245, -0.2426, +0.4360, +0.5265, +0.4846, +1.0185, -0.5593, +0.9728, +0.4769, +0.7221, +0.6885, -0.0294, +0.2469, +0.0124, +0.5220, -0.4949, -0.1693, +0.6676, +0.7299, -0.0920, +0.5961, -0.4980, -0.3700, +0.4610, -0.0052, -1.1549, -0.2259, -0.7090, +0.0568, +0.5237, -0.4150, +0.3867, -0.0865, -0.0347, +0.2796, -0.3372, +0.4407, +0.4653, +0.4029, +0.0542, -0.4820, +0.5448, +0.0841, +0.3830, -0.5634, +0.3101, -0.3656, +0.5915, +0.5094, +0.0265, +0.3061, -0.1867, +0.4472, +0.0831, -1.4864, +0.6205, -0.7317, +0.0345, +0.0241, -0.4189, +0.2699, -0.0454, +0.1761, +0.1418, +1.0411, -0.1500, -0.5850, +0.4274, -0.2819, -0.0049, -0.0539], +[ +0.3625, +0.0194, -0.3223, -0.1543, -0.3422, +0.1361, -0.1979, +0.1716, +0.1964, +0.1080, -0.2562, +0.5515, -0.6231, +0.0645, -0.2820, -0.4138, -0.3513, -0.1298, +0.1236, -0.1571, +0.0996, -0.4628, -0.0855, +0.6111, +0.2735, +0.1079, +0.0759, -0.8790, +0.2145, -0.6007, -0.0575, +0.4727, -0.0139, -0.2520, -0.1913, -0.1010, +0.0459, +0.2930, -0.5473, -0.6486, +0.0525, -0.9643, +0.0756, -0.0343, -0.3489, +0.2362, +0.5423, -0.2968, -0.0831, -0.4753, -0.2939, +0.1316, -0.6055, +0.3439, -0.4793, -0.9334, -0.0404, -0.0067, -0.1639, -0.2048, +0.2024, +0.0257, -0.7722, +0.3862, +0.3280, -1.2964, +0.3508, -0.4320, -0.0618, +0.0669, -0.1487, +0.0590, -0.0657, -0.5083, -0.3131, -0.3795, -0.3027, -0.7377, -0.2656, -0.1819, +0.0315, -0.1914, -0.3061, -0.0285, +0.1491, -0.3607, -0.6081, +0.3564, +0.2935, -0.1484, +0.1152, -0.5023, +0.1752, -1.5863, +0.1823, -0.3487, +0.3613, +0.0175, -0.2217, -0.1352, -0.5851, +0.1753, -0.0871, +0.5474, +0.3244, -0.8566, -0.3348, -0.0279, +0.5935, +0.2750, +0.0797, +0.1091, -0.8979, +0.7681, +0.3679, +0.3083, +0.2425, +0.1221, +0.3024, +0.4512, +0.0880, -0.0056, -0.1940, +0.3921, +0.4914, -0.7178, -0.2134, +0.1143], +[ +0.0679, -0.0794, -0.3814, +0.2536, -0.1512, +0.1385, -0.1787, -0.1347, -0.1905, +0.0860, +0.1867, -0.0860, +0.0923, +0.1577, +0.1129, +0.2066, +0.2144, +0.0983, +0.1848, +0.3214, -0.3866, +0.1045, -0.0303, -0.2351, -0.1582, -0.0153, -0.1058, +0.0740, -0.0575, -0.1356, +0.0975, +0.2816, +0.0862, -0.2179, -0.4657, -0.2575, -0.1307, -0.1683, -0.0066, +0.0145, +0.2131, -0.0987, +0.2698, +0.1188, +0.0539, +0.3335, -0.0699, -0.1512, -0.0397, +0.0569, +0.0859, +0.2909, +0.0149, -0.0338, +0.3416, +0.0462, -0.0262, +0.3987, -0.1117, +0.0869, +0.2025, +0.0820, +0.0110, -0.0663, -0.0989, +0.0121, +0.2080, +0.2500, -0.2012, -0.0425, -0.3801, +0.2980, -0.1070, -0.2112, -0.2358, -0.0148, +0.0342, +0.1877, -0.0190, -0.3003, -0.0384, +0.3230, +0.0058, +0.1883, +0.1429, -0.0525, -0.0369, +0.1965, +0.4171, -0.2498, +0.3534, +0.1377, -0.1843, -0.0786, -0.0334, -0.2252, -0.2525, -0.4377, +0.0970, -0.0632, -0.1115, +0.1151, -0.2193, +0.4269, +0.0589, +0.2567, -0.0083, -0.1317, -0.0140, -0.2162, +0.1460, +0.2144, -0.2364, +0.2052, +0.1361, +0.3009, -0.0415, +0.0753, +0.1605, -0.0008, +0.1161, -0.0075, +0.1132, -0.1271, +0.5005, +0.0962, +0.0963, +0.2632], +[ -0.0499, -0.1868, +0.0577, +0.1447, +0.1636, -0.3556, -0.1492, +0.0388, -0.1583, -0.0774, +0.0437, +0.0230, -0.1318, +0.0701, +0.3213, -0.0902, -0.1691, +0.0205, +0.0912, -0.0380, +0.0704, -0.0709, -0.0177, -0.1689, -0.3108, +0.0728, -0.2808, -0.0876, -0.0702, -0.4691, +0.3010, +0.2589, -0.1658, -0.3264, +0.1423, +0.0444, -0.0579, +0.0883, -0.1900, -0.3669, +0.0899, +0.0842, +0.1387, +0.0023, +0.0807, -0.1238, +0.1961, +0.0881, -0.0594, -0.1222, -0.2213, +0.2254, +0.0348, -0.1841, -0.1994, -0.4183, +0.0770, -0.2080, -0.0388, +0.0821, +0.0289, +0.0999, -0.0389, +0.0711, -0.2250, -0.0025, -0.2014, +0.2883, +0.3065, -0.1356, -0.0597, -0.1037, -0.0451, -0.1849, +0.0913, -0.0457, +0.0217, -0.0981, +0.0654, -0.1176, +0.1646, +0.2142, -0.3388, -0.5200, -0.2313, -0.1905, +0.0708, -0.0961, -0.1217, -0.1662, -0.1982, +0.1837, -0.0128, +0.0935, +0.0200, +0.1873, -0.2688, +0.2296, +0.2719, -0.2736, +0.2598, +0.1866, +0.1070, -0.0368, -0.0790, +0.3079, -0.1966, +0.0417, -0.2708, +0.0273, +0.3073, +0.2085, -0.1423, -0.1677, -0.2092, -0.3405, +0.1060, -0.3134, -0.1067, +0.0272, +0.1868, -0.2262, +0.2388, -0.4858, -0.0006, +0.3641, -0.0149, +0.1635], +[ -0.0293, -0.6816, +0.0207, -0.3203, +0.5807, +0.2284, +0.0608, -0.0782, -0.7455, +0.0780, +0.1824, +0.2558, +0.6335, +0.3215, -0.1083, -0.4061, +0.2560, -0.2431, -0.9005, -0.7526, +0.0429, +0.0809, +0.3405, -0.1655, +0.1869, -0.4230, +0.1290, -0.0598, -0.8880, -1.3204, -0.6279, +0.1188, -0.1528, +0.1304, +0.3002, -0.2851, -0.4151, +0.1325, +0.0967, -1.1975, -1.4119, -0.1437, +0.1030, +0.1688, +0.1357, +0.5681, +0.1686, -0.6273, -0.0961, -0.1940, -0.4501, -0.3292, -0.4322, -0.0958, -0.1608, +0.0745, -0.2823, +0.1386, -0.3401, -0.0044, +0.1450, -0.9192, +0.1943, -1.0786, -0.3468, -0.2210, -0.8898, +0.2841, -0.1573, +0.0027, +0.5140, +0.2573, -0.2886, -0.1363, +0.0590, -0.0752, -0.5069, +0.4482, -0.2980, -0.0193, +0.0242, -0.1357, +0.3524, -0.0679, -0.4083, -0.1631, -0.0261, +0.0079, +0.4069, +0.0506, +0.0312, +0.1185, +0.3524, -0.1431, -1.3855, +0.2428, -0.4439, +0.2224, -0.6006, +0.1477, -0.1597, -0.4273, -0.1280, +0.4005, +0.2949, +0.1104, -0.0679, +0.3744, +0.6098, -0.5700, +0.1008, +0.2341, -0.4750, -0.3084, -0.2798, -0.7803, +0.6083, -0.0650, +0.0205, -0.1667, +0.0401, -0.1926, +0.4924, +0.1119, -0.8171, +0.2006, +0.3861, -1.1334], +[ +0.3379, -0.0630, -0.3660, +0.3327, +0.0593, -0.1086, +0.5011, +0.1324, -0.2487, -0.0698, +0.1031, -0.1188, +0.2941, +0.0543, -0.0504, -0.1540, -0.0798, +0.2290, +0.2369, -0.0698, +0.1134, +0.4617, +0.1530, -0.3301, -0.2881, -0.2488, +0.0245, -0.0285, -0.2306, -0.1149, -0.0003, -0.0923, -0.1315, +0.0210, -0.1870, +0.0622, -0.0506, -0.0135, -0.1995, -0.0287, +0.0711, -0.0130, +0.3577, -0.1441, -0.1204, -0.3320, -0.2458, -0.0879, +0.0139, +0.2201, -0.3011, +0.0393, +0.2918, -0.0472, -0.1514, -0.1190, -0.0056, +0.2567, -0.3284, -0.5337, -0.0050, -0.1086, -0.1834, -0.3311, -0.1851, +0.1848, -0.0175, -0.1277, -0.1361, +0.1587, +0.0424, +0.0936, +0.1683, -0.0294, +0.1407, -0.0313, -0.0279, +0.2524, +0.1912, +0.1002, +0.1337, +0.0550, +0.1725, +0.0323, +0.1961, +0.2280, +0.4421, +0.1152, +0.0211, +0.1519, -0.0487, -0.0903, +0.1088, -0.1067, -0.1932, +0.0741, -0.1907, -0.1498, +0.3873, -0.1806, -0.1683, +0.1372, +0.0304, +0.0863, -0.1042, -0.0114, +0.1071, +0.1654, +0.2195, -0.1274, -0.2964, +0.1572, +0.1514, +0.0736, +0.1129, +0.1630, -0.0438, +0.2270, -0.0895, +0.2149, +0.2307, +0.0664, +0.0300, +0.3303, +0.0999, +0.3439, +0.0904, +0.1683], +[ +0.0340, -0.0989, -0.0451, +0.2294, +0.2241, +0.2625, -0.1814, +0.0073, -0.3025, +0.3027, -0.3313, -0.0211, +0.0333, +0.1126, -0.0768, -0.1360, -0.3812, +0.2599, -0.2655, -0.0163, +0.2248, -0.1354, +0.1735, -0.1578, -0.0827, +0.1191, +0.1209, -0.2733, +0.2359, -0.2004, -0.0624, +0.2381, -0.0092, -0.0115, +0.0134, -0.2366, +0.2267, -0.3574, -0.0541, -0.3561, -0.0686, -0.0024, -0.0964, -0.0168, +0.0758, +0.1287, +0.0970, +0.2117, +0.4078, +0.2125, -0.1938, +0.0866, -0.2325, -0.0116, -0.2797, -0.2403, +0.1878, -0.2757, -0.2458, +0.2984, -0.0047, +0.1370, -0.3392, -0.1224, +0.2413, +0.1075, +0.3686, +0.2316, -0.0368, +0.0658, +0.0282, +0.2231, -0.1776, +0.0984, +0.2372, +0.2452, +0.0692, -0.0771, +0.2522, +0.2017, +0.1455, +0.2602, +0.1297, -0.0145, -0.1484, +0.0469, -0.0616, +0.2906, +0.1185, +0.2783, +0.0614, +0.0493, -0.2796, +0.1048, -0.2029, +0.1820, -0.2846, +0.0042, +0.0699, +0.2208, +0.1126, -0.0028, -0.0612, -0.0730, -0.0883, +0.1355, -0.2635, -0.4806, +0.1522, -0.5489, -0.1904, -0.2650, +0.1945, -0.0204, -0.0391, +0.2104, +0.2261, +0.2982, -0.5277, +0.0563, -0.0652, -0.0232, +0.0058, +0.0107, +0.1389, -0.1388, +0.3945, +0.1338] +]) + +weights_dense1_b = np.array([ +0.0484, -0.2398, -0.1357, +0.0298, -0.3778, -0.2392, -0.0211, -0.1728, +0.0154, -0.1052, -0.0235, -0.0825, -0.0137, -0.1951, +0.1408, -0.2835, -0.4597, -0.2002, -0.1659, -0.2736, -0.0233, -0.2472, -0.0697, -0.1892, -0.1340, -0.0051, -0.1712, -0.1986, -0.1902, -0.1213, -0.1363, -0.2731, -0.0609, +0.0803, -0.1623, +0.0661, -0.0660, -0.1206, -0.2835, -0.1281, -0.1008, -0.2377, -0.1436, -0.1027, -0.1816, -0.1699, -0.2476, -0.0886, -0.1582, -0.1714, -0.1558, -0.2484, -0.1255, -0.1657, -0.0830, -0.0800, -0.1293, -0.0594, +0.0174, +0.1097, -0.1769, -0.1648, -0.1995, -0.1082, -0.1761, +0.0342, -0.1445, -0.0106, -0.2021, -0.1352, -0.2769, -0.1503, +0.1171, -0.2275, -0.1514, -0.1064, -0.1877, +0.0308, -0.1081, -0.0229, -0.1273, -0.0516, -0.0789, -0.1148, -0.0308, -0.1946, -0.3185, -0.1215, -0.0605, -0.1876, -0.1192, -0.1545, -0.0148, -0.0218, -0.3640, -0.2230, +0.1549, +0.0196, -0.2555, -0.1814, -0.3217, -0.1741, +0.0117, -0.1752, -0.2445, -0.0863, +0.0041, +0.0058, -0.0948, -0.1010, -0.0595, +0.0182, -0.0761, -0.0141, -0.1886, -0.0474, +0.0057, -0.1247, -0.3390, +0.0672, -0.0612, -0.1059, +0.0219, -0.1802, -0.1265, -0.1287, +0.0565, -0.0502]) + +weights_dense2_w = np.array([ +[ +0.4072, -0.1577, +0.0300, -0.0725, +0.6609, -0.5568, +0.0820, -0.2073, +0.3434, +0.0637, +0.0899, -0.1563, +0.1371, +0.7268, -0.4818, +0.0706, -0.1386, +0.4026, +0.2577, -0.4374, +0.4362, +0.2120, +0.0860, +0.0373, -0.5472, -0.4427, +0.0769, +0.3067, +0.3401, -0.0008, -0.7384, +0.0566, -0.0583, -0.3481, -0.2953, -0.1032, -0.7956, -0.6262, -0.0733, -0.6908, -0.4126, -0.2014, +0.6791, -0.5321, +0.5106, -0.1055, +0.0604, -0.5233, -0.8984, -0.4227, -1.3192, +0.3693, +0.2789, -0.2774, +0.0132, -0.1824, -0.0690, -1.6134, -0.2901, -0.1739, -0.5780, -0.3432, +0.0980, -0.3106], +[ -0.3167, -0.2520, +0.1710, +0.1912, +0.0268, -0.1353, +0.0637, -0.3158, +0.3448, +0.4247, -0.2795, -0.6464, -0.5002, +0.1116, -0.0497, -0.7619, -0.1402, +0.0142, -0.0314, -0.0418, -0.6087, +0.1742, -0.2843, -0.3738, +0.0595, +0.2382, +0.7762, +0.4531, -0.8817, -0.0971, -0.4319, +0.0168, -0.7739, -0.6792, +0.3594, -0.2188, -0.7423, +0.2473, -0.2793, +0.0149, -0.2970, -0.0695, +0.6082, -0.5475, -0.5990, +0.6079, +0.2662, +0.2195, -0.5335, -0.1782, -0.1657, +0.0951, -0.1763, -0.3554, -0.1032, +0.3347, -0.2818, -0.6144, -0.2387, -0.3771, -0.0378, +0.0776, -1.4711, -0.1353], +[ -0.2935, -0.8083, -0.1306, +0.1952, -0.1178, -0.4799, +0.0777, -0.4029, -0.5699, -0.1755, -0.0172, +0.1791, -0.0261, -0.2480, +0.0181, -1.0284, -0.2705, +0.4318, +0.1634, -0.2889, -0.0075, -0.1050, +0.0859, +0.0544, -1.0494, +0.0273, -0.1991, -0.2565, -0.3891, -0.1883, -0.4818, -0.2458, +0.2761, +0.1295, -0.2284, -0.0114, +0.2609, -0.1632, -0.0384, +0.0558, -0.2330, -0.3149, -0.1879, -0.0787, +0.2492, -0.1629, +0.3027, +0.5257, -0.4112, -0.2063, -0.0745, +0.0864, -0.1151, -0.3392, +0.2214, +0.2084, -0.1933, +0.0103, -0.0245, +0.0280, +0.0170, -0.1814, +0.0239, -0.6701], +[ +0.0470, -0.1471, -0.3533, -0.2277, +0.2617, -0.2955, -0.2491, -0.1937, +0.2634, +0.0681, -0.2869, -0.1950, +0.1615, +0.2557, -0.0025, +0.2327, -1.0104, +0.3358, +0.2386, -0.6202, -0.0829, +0.3342, +0.0617, -0.0119, -0.6297, -0.2430, +0.2088, +0.0102, +0.3480, -0.0119, -0.3172, +0.1668, -0.2217, +0.1130, -0.0817, +0.0391, -0.0480, -0.1680, -0.1306, -0.4677, -0.1638, -0.3569, -0.1594, +0.2110, +0.3875, -0.1732, -0.0210, -0.3070, -0.7983, +0.2381, -0.0294, -0.2019, +0.1801, +0.2116, +0.2506, -0.0342, -0.7177, -0.6430, +0.3333, -0.7577, -0.3507, -1.0563, -0.4578, +0.0739], +[ +0.0584, +0.2110, +0.2883, +0.4496, -1.4306, -0.3233, +0.1243, -0.5887, +0.1677, -0.1064, -0.3807, -0.0439, -0.8551, -1.2286, +0.2521, -0.0060, +0.6236, -0.1993, +0.3985, -0.2662, -0.0002, +0.0486, -0.2869, -0.6390, -0.1125, -1.3003, +0.1867, -0.3180, -0.7481, +0.1080, +0.3788, -0.3003, -0.1799, -0.4549, -0.0974, -0.0827, +0.3762, +0.2356, -0.2579, +0.4377, -0.1295, -0.3391, -0.7046, -0.1904, -0.1341, -0.0194, -0.2193, -0.3140, -0.1927, -0.3742, +0.2955, +0.1099, -0.5704, +0.0968, -0.0678, -0.1847, -0.0211, -0.3002, -0.4862, +0.4810, -0.0444, +0.4728, +0.1298, -0.0902], +[ +0.0349, +0.9685, -1.9391, -0.3447, -0.1261, -0.3633, -0.0598, -0.6471, -0.8648, -0.7718, -0.4766, -0.8915, -0.5728, -0.5278, +0.5933, -0.3178, +0.0116, +0.3050, +0.3750, -1.1527, -0.0571, -0.2033, +0.4198, +0.2105, -0.7927, -0.6716, -1.0696, -0.7200, -0.5883, -0.6538, -0.4865, -0.8737, +0.0426, +0.2175, -0.2165, -0.0444, -0.1326, -0.0308, -0.1097, +0.0105, -0.1852, -0.3861, -0.2117, -0.5265, +0.0367, -0.0218, +0.2472, -0.2354, -1.1444, -0.3036, -1.6033, +0.1154, -0.3195, +0.3943, -0.8171, -0.0495, -0.0950, -0.3764, -0.1523, -0.8749, +0.2594, +0.2451, -0.1734, -0.0927], +[ +0.4523, +0.0513, -0.0013, +0.1556, +0.2430, -1.2187, -0.3108, -0.7597, -0.7845, -0.6297, -0.0224, +0.3207, +0.2222, -0.2645, +0.1510, +0.1624, -0.0568, -0.8426, -0.3564, +0.0187, +0.2791, +0.0447, -0.1822, -0.2627, +0.0078, -0.9392, +0.0805, +0.0339, +0.3228, -0.0153, -1.4823, -0.0994, +0.2658, -0.0138, -0.1071, +0.2001, -0.3299, -0.5982, -0.2859, -0.1269, +0.0496, -0.0371, +0.3491, -0.3822, +0.1167, -0.2964, -0.4635, +0.0549, -0.6313, -0.4994, -0.2447, +0.0584, +0.2663, -0.0663, -0.1714, -0.1748, -0.5364, -0.3646, +0.1584, +0.0349, +0.1420, -0.6877, -0.3539, +0.2209], +[ -1.2158, -0.7080, +0.1037, -0.1613, +0.0811, -0.9051, -0.4186, -0.6072, -0.6212, +0.0362, -0.3524, +0.2563, -0.7313, -0.2856, +0.0658, -0.1271, -0.1249, -0.6959, -0.4723, +0.4467, -0.1244, -0.0056, +0.5042, -0.5181, +0.0475, +0.2931, +0.3883, -0.2017, -0.0388, +0.0403, +0.1562, -0.9404, +0.0620, -0.5598, -0.5657, +0.0578, +0.0086, -0.5689, -0.9304, +0.3161, -0.1303, -0.4087, -0.5053, -0.1267, +0.0123, -0.6312, -0.6991, -0.0800, -0.8634, +0.2347, +0.1449, +0.3955, +0.4396, -0.0684, +0.2644, -0.7668, -0.1511, +0.0324, +0.0823, -0.3579, +0.0592, +0.0904, +0.2380, +0.0873], +[ -0.6992, +0.1539, +0.4253, -0.2513, +0.1882, +0.6842, -0.6867, -0.2942, -0.3434, +0.2486, -0.4180, -0.6950, +0.2628, +0.7324, -0.2667, -0.1330, -1.3123, +0.0990, -0.1324, -0.0016, -0.0310, +0.0778, -0.1325, +0.2886, -0.2052, +0.0094, +0.1791, +0.1105, +0.4348, -0.6778, -0.3301, +0.1438, +0.1093, +0.0140, -0.1957, -0.1226, +0.0676, +0.9343, -0.1993, +0.1818, -0.1565, +0.3443, -0.1359, -0.5234, +0.2591, +0.3769, +0.4966, -0.6424, -0.0288, +0.0357, -0.3554, -0.1676, -0.2453, -0.4502, -0.3745, -0.1692, -0.2449, -0.2132, -0.0001, +0.0087, +0.3669, +0.3835, +0.0003, +0.6565], +[ +0.2329, -0.0695, +0.4082, -0.0004, +0.0059, +0.1418, +0.1081, -0.3141, +0.2218, -0.0538, -0.0670, +0.0018, -0.1211, -0.0491, -0.3059, -0.4239, -0.1665, +0.0700, +0.4327, -0.5063, +0.3045, +0.7774, +0.4464, +0.2276, -0.3467, +0.5197, +0.1607, -0.1339, -0.1663, +0.0881, +0.0232, -0.3337, +0.0157, -1.1305, -0.1427, -0.7464, -0.3650, +0.2386, +0.2734, +0.5966, -0.4067, +0.3709, +0.2986, -0.3682, -0.1436, +0.3259, +0.3393, -1.2748, -0.5180, +0.1099, -0.0843, +0.0421, +0.1176, +0.0935, +0.3649, +0.1282, +0.2074, -0.4244, -0.3379, -0.8103, -0.1238, -0.6615, -0.5262, -0.9899], +[ +0.2683, +0.0401, -0.2063, -0.0863, -1.1390, -0.1614, +0.4551, -0.2386, -0.9135, -0.1037, +0.3364, +0.0943, +0.3665, -0.2748, +0.2592, -0.0339, +0.4767, -0.1381, -0.2326, +0.0600, +0.1522, -0.3524, +0.4203, -0.4977, -0.2533, -0.4959, +0.1211, -0.1722, +0.0681, -0.2369, +0.2398, +0.2182, +0.0582, +0.4106, -0.2708, +0.1474, +0.3402, +0.3310, +0.1319, -0.2479, +0.1749, +0.3886, -0.1866, +0.0482, +0.2373, -0.4678, -0.1560, +0.4025, -0.3261, +0.6000, -1.2795, +0.2571, -0.0926, -0.2927, +0.2793, -0.4958, +0.0614, -0.0140, -0.1622, -0.4095, -0.1560, -0.2754, +0.1172, -0.1319], +[ -0.5295, -0.0999, +0.0220, +0.3271, +0.2059, -0.4296, +0.3921, -0.0843, -0.4874, +0.3199, +0.4602, -0.8274, +0.2366, +0.6108, -0.3201, +0.1853, +0.3175, +0.0078, -0.4971, +0.7472, +0.1544, -0.3018, +0.2934, -0.2034, +0.3348, +0.3705, -1.3035, +0.2084, +0.4699, +0.0053, -0.3233, -0.8634, -0.4203, -0.6225, -0.2153, +0.5059, +0.1571, -0.7581, -0.9790, +0.1196, -0.6516, +0.1740, +0.3164, -0.0439, -0.7366, -0.0850, +0.4464, -0.9298, +0.3098, +0.6134, +0.0513, -0.1314, -0.7751, -0.4632, +0.2998, -0.2841, -0.1156, +0.2272, -0.6840, +0.2023, +0.2771, +0.0181, +0.3241, +0.0077], +[ -0.0280, -1.3387, -0.3547, -0.0743, +0.1483, -0.0627, -0.3067, -0.3430, +0.0588, +0.0807, +0.4038, +0.4257, +0.4200, -0.1636, -0.6085, +0.0772, +0.3777, -0.0100, -0.5085, -0.4027, +0.1783, +0.3648, +0.2458, -0.6546, -0.3100, -0.0142, +0.5146, +0.5179, +0.3174, -0.0085, -0.5655, +0.6930, -0.0170, -0.0840, -0.4820, +0.3951, +0.2091, -0.1006, -0.1043, -0.1592, +0.5631, +0.0762, +0.0353, +0.3549, -0.5710, +0.6521, -0.5372, +0.5439, -0.6006, -0.3861, -0.9696, +0.3836, +0.0144, -0.0445, +0.2625, +0.0893, +0.3533, -0.0816, +0.3946, -0.1645, -1.0470, +0.4605, +0.2646, -0.0709], +[ +0.1597, -0.1930, +0.1695, +0.0883, +0.3863, -0.0690, -0.3626, -0.0751, -0.2489, -0.2651, +0.3078, -0.0279, +0.0915, -0.3568, +0.0135, +0.0301, +0.1845, +0.0936, +0.1046, -1.0295, -0.4317, +0.0053, +0.3181, +0.1241, +0.1828, -0.1518, +0.3664, -0.0194, -0.0056, -0.9545, -0.3588, +0.5326, -0.9760, -0.2063, +0.4710, -0.7108, -0.0157, -1.2469, -0.3011, -0.2258, -0.1896, +0.0305, +0.1823, +0.2524, +0.0734, -0.0195, +0.2741, +0.0458, -0.0258, -0.1458, -0.0499, +0.2720, +0.2632, -0.1566, -0.3169, +0.4742, -0.1019, -0.1814, +0.3763, +0.2875, +0.4905, -0.4019, +0.2122, -0.9641], +[ +0.3189, +0.1388, -0.3550, -0.3842, +0.0898, +0.0547, -0.7110, -0.1182, +0.0259, +0.0704, +0.1494, -0.1821, -0.1159, +0.0213, +0.2096, -0.4418, -0.6512, +0.1241, +0.0305, -0.1008, +0.0562, +0.0968, +0.0081, +0.1199, +0.1381, -0.2673, -0.2059, -0.0357, +0.3140, +0.2211, -1.0964, +0.1492, +0.1469, -0.5406, -0.0557, +0.3461, -0.0567, +0.2042, +0.1409, -0.1752, -0.5634, -0.7240, -0.0985, +0.4507, -0.0405, +0.1548, -0.0590, +0.2785, +0.0398, -0.0766, +0.3026, -0.3093, -0.0211, +0.3418, -0.0372, +0.1007, -0.1287, -0.1216, +0.1111, +0.0391, -0.4399, -0.1719, -0.7748, +0.0015], +[ -0.8898, +0.1587, -0.1158, -0.2147, +0.1854, +0.0673, -1.6078, +0.3145, +0.1855, +0.0176, -0.6532, +0.1946, -0.2744, -0.2392, +0.0001, -0.5411, -0.3275, -0.6474, -0.3419, +0.0351, -0.2511, +0.2090, -0.1401, -1.2570, -0.3467, -0.1794, -0.0238, -0.3511, +0.0885, +0.2340, -0.2762, +0.2349, -0.0718, -0.1801, -0.5107, +0.1164, +0.2997, -0.1047, +0.1091, +0.1830, -0.0604, -0.5492, +0.0451, +0.5144, -0.1682, -0.2848, -0.3148, -0.0800, -0.6753, +0.8912, -0.3167, +0.1553, -0.1064, +0.4668, -0.1185, +0.0205, +0.2634, -1.4268, -1.4053, +0.1865, -1.1680, -0.5715, -0.1411, -0.0048], +[ -1.1451, -0.8007, -0.7188, +0.2194, +0.0224, -0.3902, -1.0708, +0.1315, -0.4508, -0.0171, -0.1646, -0.8523, +0.0246, -0.2483, +0.2628, -0.0709, +0.1284, -0.0332, +0.2452, +0.6453, +0.0372, +0.0580, -0.4814, -0.0367, -0.6464, -0.1864, -0.0876, -0.3798, -0.1084, -0.2326, +0.3449, -1.0821, +0.3558, -0.2093, -0.1611, +0.0181, -0.1593, -0.7092, -0.5308, +0.3392, -0.2771, -0.8510, -0.0332, +0.1636, -0.1288, -0.1509, -0.0123, -0.3427, -0.2880, -0.9719, -1.0379, -0.2061, -1.2064, +0.0703, +0.0296, -0.5942, +0.1367, +0.2798, -0.9892, +0.2638, +0.6593, +0.3467, +0.2717, -0.2685], +[ -0.2935, -0.2457, -0.1847, -0.1120, +0.2738, -0.1316, -0.1218, +0.1977, +0.2899, -0.2914, -0.9864, +0.4904, -0.1894, -0.0953, +0.0076, -0.0067, -0.6684, -0.0314, +0.0872, +0.4462, +0.2811, -0.1232, -0.3337, -0.7796, -0.7328, +0.0966, -0.1373, +0.4435, +0.1715, +0.1189, -0.3743, +0.3548, -0.0802, -0.5682, -1.3086, -0.0364, -0.2844, -0.3369, +0.3544, -0.0662, -0.1867, -0.3540, -0.2038, -0.4980, +0.3799, -0.1018, -0.9164, +0.3697, -0.0067, -0.5775, -0.1818, +0.0175, -0.1748, +0.4688, -0.5308, -0.4231, +0.1482, -0.5617, -1.2285, +0.3348, +0.2546, +0.3433, -0.0552, -0.4434], +[ -0.5986, -0.0456, -0.0579, +0.0098, +0.5195, +0.2289, -0.0547, +0.0712, +0.3579, +0.0200, -0.3965, +0.3115, -0.3113, -0.2659, +0.2821, -0.0527, -0.1284, -0.5430, -0.6974, +0.0659, -0.4766, -0.1915, -0.1467, -1.0685, -0.5390, +0.4510, +0.3700, +0.1105, -0.1987, -0.0297, +0.0635, +0.2345, +0.1594, -0.0839, -0.1305, -0.1000, +0.2680, +0.1591, -0.5661, +0.1602, -0.0069, -0.1623, -1.4309, -0.1520, -0.0090, -0.3502, -0.6969, -0.0949, +0.0562, -0.0869, -0.2017, +0.0475, +0.5724, +0.1771, -0.0398, -0.7070, -0.1830, -0.0220, -0.1941, -0.9674, +0.0262, -0.1637, -0.0094, +0.4634], +[ -0.0007, -0.1887, +0.2479, +0.0483, +0.2260, -0.1202, -0.2455, -0.5935, -0.0951, +0.2204, +0.2221, +0.3503, +0.0909, -0.2512, +0.0191, -1.0021, -0.2003, +0.6241, +0.2894, -0.0605, -0.4665, -0.2199, -0.1427, -1.2488, -0.1763, +0.3383, +0.4418, +0.2648, -0.9742, +0.2356, +0.1240, +0.1305, -0.4167, +0.0351, +0.3759, -0.2039, +0.0351, -0.6693, -0.8583, +0.0616, +0.2169, -0.4452, -0.4786, -0.0808, +0.0579, -0.1770, +0.1975, -0.3272, -0.0747, -0.3015, -0.0030, -0.3779, -0.1084, +0.0285, +0.2040, +0.0064, -0.6207, +0.1540, +0.2691, -0.4465, +0.3775, -0.7416, +0.0563, -0.0898], +[ +0.1254, +0.4967, +0.1999, -0.2316, +0.2500, -0.0650, +0.5256, -0.4156, -0.2651, +0.1705, +0.0690, -0.0314, -0.6562, +0.0699, -0.8152, +0.1149, +0.0980, +0.6136, +0.2356, -0.4453, +0.3604, +0.4151, +0.1505, -0.3277, -0.2119, +0.0359, -0.1290, -0.1692, -0.0831, -0.0644, -0.1416, -0.0558, +0.0298, -0.0870, -0.1409, -0.5095, -0.3006, -0.0250, +0.4266, -0.3381, -0.3222, +0.3626, -0.0441, +0.2182, -0.1688, +0.0500, +0.2828, -0.2694, -0.0921, +0.1291, -0.7688, +0.2200, +0.1006, -0.3204, -0.1588, -0.5138, -0.6525, -0.3203, +0.5614, +0.1583, -0.3336, -0.6822, -0.0527, -0.0729], +[ +0.2401, -1.5531, -1.1594, +0.0219, -0.1680, -0.0307, -0.1397, -0.4195, +0.2302, +0.2705, +0.0780, -0.3434, +0.2748, -0.1826, -0.4300, -1.2819, -2.0983, +0.2545, +0.3414, +0.1059, +0.1937, +0.0885, +0.3678, +0.0745, -0.2122, -0.2374, +0.2199, +0.1136, +0.0291, -1.5077, -0.6176, +0.0825, +0.0813, -0.2417, -0.3546, +0.2231, +0.3004, +0.0066, -0.0259, +0.5017, -0.6783, -0.5061, +0.0575, -0.1790, -0.4460, -0.6383, -0.1353, -0.1327, +0.0067, +0.2322, -0.0208, +0.2877, +0.1562, -0.5431, +0.0227, -0.1356, +0.0365, -0.2004, -0.1343, +0.1730, -0.5527, +0.1656, +0.1991, -0.8294], +[ +0.4524, +0.7614, -0.1415, -0.0766, +0.1568, +0.0408, +0.0539, -0.2856, +0.1050, -0.1615, -0.8484, +0.5459, +0.1695, +0.2730, -0.0014, +0.6478, +0.1634, -0.0715, -0.0612, -0.1463, -0.1214, -0.1158, +0.1563, +0.2598, +0.0758, -0.4645, -0.2913, -0.3810, -0.7767, -0.3182, +0.1396, +0.1954, -0.0150, -0.1029, -0.2936, -0.5085, -0.0514, +0.1485, -0.1216, -0.1714, -0.1193, +0.4209, +0.0558, -0.4255, +0.2840, -0.5583, -0.3015, -0.2423, +0.0089, -0.4503, +0.3085, +0.2502, +0.2749, +0.2995, -0.7768, -0.3364, -0.5740, +0.0843, -0.2877, -0.5731, -0.3221, -0.2253, -0.3227, -0.0065], +[ +0.0540, -0.0224, -0.3116, -0.5707, -0.0632, -1.4873, +0.2964, -0.4894, -0.2578, +0.2032, +0.0937, -0.4259, -0.0588, +0.4007, +0.1099, -0.2633, -0.3422, +0.1973, -0.0170, +0.0451, +0.1670, +0.4853, +0.2068, +0.2066, -0.1544, +0.0191, -0.0957, -0.9554, -0.6965, -0.6022, +0.1666, +0.0026, +0.5176, -0.0584, -0.9679, -0.2898, +0.2451, +0.2050, -0.2909, +0.0002, -0.0763, -0.2100, -0.1929, +0.0985, -0.2612, -0.3684, +0.3190, -0.5681, +0.2765, -0.1663, +0.0422, +0.3252, +0.2741, -0.2385, -0.1602, +0.2504, -0.2370, +0.0891, -0.2204, +0.1525, +0.0444, +0.0188, +0.3538, -0.0313], +[ +0.0984, +0.2622, +0.1601, -0.3252, -0.2292, -0.0494, +0.2185, +0.2202, +0.4945, -0.3545, -0.1730, -0.6882, -0.6645, -0.1178, -0.2491, +0.2497, -0.1072, -0.2019, -0.0944, +0.2118, -0.2281, +0.2338, +0.0924, +0.1178, +0.0920, +0.0422, +0.3113, -1.1795, -0.8658, -0.6011, +0.0714, +0.0290, -0.5830, +0.2370, +0.3508, -0.0178, -0.6966, +0.2269, -0.2966, -0.6947, +0.1769, +0.1461, -1.0021, +0.0781, -0.3731, -0.0153, -0.2721, +0.0699, -0.2057, +0.0791, -0.2055, -0.4152, +0.2414, +0.0939, -0.4560, -0.3566, -0.0381, +0.1090, -0.5755, -0.4283, +0.2504, +0.0863, -0.6288, -0.9822], +[ -0.0122, -1.0238, +0.0346, -0.2412, -0.7928, -0.3765, -0.2889, -0.0948, +0.1003, +0.7268, +0.2033, -0.6144, +0.4689, +0.2045, +0.0799, +0.2687, -0.3528, +0.0560, +0.0682, +0.0874, -0.1901, -0.0082, +0.3474, -1.0391, -0.4695, -0.0233, -0.0259, -0.0901, -0.1084, -1.4681, +0.0081, -0.3583, -0.2599, -0.1273, -0.6221, +0.2186, -0.1878, +0.4510, +0.0409, -0.1692, +0.1495, -0.3093, -0.0192, -0.1835, -0.5964, +0.0327, -0.5086, +0.2446, -0.5980, +0.1981, +0.0441, -0.1232, -0.4881, -0.6698, -0.0519, -0.0831, -0.6186, -0.6176, +0.0503, +0.2250, +0.0662, -0.8334, -0.0077, -0.7196], +[ -0.2566, -0.7118, +0.2935, -0.1195, -0.1146, -0.0123, +0.1455, +0.1784, -0.2927, +0.3859, +0.2592, -0.0991, -0.6787, -0.2469, +0.1925, +0.0359, +0.2956, +0.2008, +0.0844, -0.3478, -0.2671, -0.0078, +0.3483, -0.0814, +0.5766, +0.2134, +0.0878, +0.3362, -0.1537, +0.3245, +0.2214, -0.2824, +0.1635, -0.5485, -0.1898, -0.1885, -0.0076, -0.2640, -0.2163, +0.4214, -0.2781, +0.1793, -0.1132, -0.3325, -0.3830, +0.1018, +0.0151, -0.7901, +0.1946, +0.3539, -0.4104, -0.1557, +0.3991, -0.0178, +0.1242, +0.4661, -0.0344, -0.4815, +0.1843, +0.6808, -0.0437, -0.3225, +0.2147, -0.4555], +[ -0.0638, -0.3322, -0.2387, +0.2534, -0.5326, -0.8410, -0.2301, -0.8189, -1.0886, +0.2326, -0.6260, -0.4507, -0.1068, -0.7282, +0.5187, +0.1134, +0.2561, +0.1038, +0.3431, -1.1889, +0.6843, -0.7160, -0.6177, -0.2679, -0.0451, +0.0572, +0.0807, +0.6884, +0.5089, +0.5436, +0.3386, -0.4832, +0.4377, +0.4794, -0.4475, -0.6358, -0.0388, +0.3861, +0.1041, +0.0640, -0.0701, +0.0340, +0.1640, -0.4543, -0.4830, -0.4003, -0.2349, +0.1010, -0.9351, -0.2592, -0.2928, -0.1271, -1.0826, -0.1847, +0.1704, -0.4475, -0.2948, +0.2068, -0.5627, -0.0093, +0.0881, -0.2164, -0.0049, +0.1603], +[ +0.1574, -0.0650, -0.2662, +0.1164, +0.4237, -0.6874, +0.4308, +0.4112, -0.0215, -0.0763, +0.2667, -0.3433, -0.4008, +0.2368, +0.1596, -0.1390, -0.4850, -0.0810, +0.1081, -0.1730, -0.8641, -0.3173, -0.2085, +0.1296, +0.2189, -0.4631, -0.3093, +0.0174, -0.0811, -0.4710, +0.0884, -0.5081, -0.2918, -0.0430, -0.1509, +0.4783, -0.1912, -0.7071, -0.3763, +0.0781, +0.1794, -0.3923, -0.9474, +0.3877, -0.2204, -0.2234, -0.0250, -0.3792, -0.6236, +0.1750, -1.4279, -0.4849, -0.6417, +0.1128, -0.2395, -0.1343, -0.5671, -0.1158, -0.1158, -0.3690, -0.1078, -0.2042, -0.3332, -0.2509], +[ +0.0333, -0.2800, -0.1392, +0.0001, +0.0705, -0.1369, -0.1756, +0.1453, +0.3505, +0.3330, -0.1388, -0.7255, -0.4376, -0.0105, +0.0049, -0.8412, -0.3385, -0.1028, -0.3672, -0.8725, -0.3093, -0.0453, +0.0416, -0.1510, +0.3841, -0.2103, +0.0864, +0.1017, -0.3006, -0.0184, +0.4379, +0.4946, +0.1351, +0.2742, -0.1733, +0.1185, +0.0766, -0.7874, +0.3184, -0.5364, +0.1065, +0.1258, -0.2782, +0.2434, +0.3819, -0.2390, +0.2471, +0.1067, +0.1810, +0.0401, -0.4542, +0.1356, +0.1049, -0.1339, -0.1564, -0.0183, +0.1957, -0.1304, -0.0602, -1.1445, -0.1470, -0.0536, -0.0504, +0.3606], +[ -0.4758, +0.1761, -0.4846, -1.0187, -0.1317, +0.4057, -0.7446, -0.0029, -0.1074, +0.3271, +0.2986, -0.2398, -0.1716, +0.0999, -0.3667, -0.3235, +0.0859, -0.2204, -0.0886, -0.3845, -0.1990, -0.4520, -0.0453, +0.0367, +0.4391, -0.5058, -0.5205, +0.0438, +0.0949, -0.2365, +0.0034, -0.0972, +0.2460, -0.3402, +0.2640, +0.1962, +1.0076, -0.0240, -0.0881, +0.3680, +0.1796, -0.1007, -0.7938, +0.1620, -0.2244, +0.1086, +0.0835, -0.6081, -0.0907, -0.2010, +0.1411, -0.1199, +0.1650, +0.0291, -0.1783, -0.2652, -0.1174, -0.4219, -0.2506, +0.0413, +0.0460, -0.6699, -1.2885, +0.1545], +[ +0.1129, -0.1235, -0.0860, -0.3039, +0.0470, +0.1649, -0.6282, -0.0529, -0.0862, +0.2638, -0.0880, -0.9592, +0.3736, -0.1045, +0.3156, -0.3239, -0.0977, +0.1138, +0.1028, +0.0075, -0.4383, +0.0055, +0.1644, -0.5601, +0.0328, +0.2353, -0.1457, +0.0268, -0.1316, +0.1369, +0.1295, -0.0454, -0.0704, -0.6862, -0.1434, +0.1058, -0.0882, -0.2573, -0.1518, -0.0106, -0.1371, +0.3189, +0.4066, -0.2663, -0.5477, +0.3918, +0.0601, -1.2816, +0.0213, -1.0473, +0.2741, -0.0658, -0.3203, +0.0561, +0.2982, -0.0264, +0.3706, +0.3083, +0.4189, -0.3125, +0.2324, -0.0699, -0.0653, +0.3647], +[ -0.0693, +0.4631, +0.0902, +0.3558, -0.1712, +0.1079, -0.0386, +0.1094, -0.3096, -0.2886, -0.2315, -0.2787, -0.5874, -0.6247, +0.5268, -0.1084, +0.7058, +0.1418, -0.5504, +0.0670, -0.0498, +0.1770, -0.1857, -0.0256, +0.0751, +0.1447, +0.1853, -0.1040, +0.0456, -0.5765, +0.0473, +0.1485, +0.3068, -0.2301, -0.2385, +0.2792, -0.8568, -0.5057, -0.0070, +0.0129, +0.4641, -0.2125, -0.6467, +0.0405, +0.0443, +0.0706, -1.0480, -0.2147, +0.1343, +0.1673, +0.0443, +0.1780, -0.3776, +0.3203, -1.0370, -0.5205, -0.0960, +0.4009, +0.2349, +0.1341, +0.0472, -0.1244, -0.1439, +0.0556], +[ +0.1598, -1.2782, +0.6361, -0.5370, -0.1456, -0.8548, -1.0428, -0.8559, -0.2116, -0.3637, -0.4516, -0.0612, +0.0129, +0.0675, -0.5432, +0.1841, -0.3792, +0.2158, +0.0596, -0.6030, +0.8449, +0.4651, -0.2557, -1.2864, -0.2594, -0.0408, -0.4892, +0.3451, +0.3054, +0.3925, -0.1913, -0.4430, -0.0513, +0.2399, -0.3757, +0.4300, -0.5091, +0.3864, -0.5291, -0.4042, +0.1954, +0.5566, +0.5156, +0.3129, -0.0074, -0.5308, -0.0965, +0.4685, -0.6602, -0.5140, -0.0500, -0.0512, -0.0719, -0.2983, -0.0757, -1.4385, -0.3450, -0.5004, -0.8424, +0.3685, -0.4302, -0.3252, +0.2352, -0.2397], +[ +0.2517, -0.0510, -0.8445, -0.0101, -0.2960, +0.3604, -0.0354, -0.2369, +0.4843, -0.2510, -0.0606, -0.0558, +0.1601, +0.1233, -0.0533, -0.6993, -0.1938, -0.0681, +0.1999, +0.1705, -0.3202, -0.0766, +0.2753, -0.4941, +0.2154, +0.1077, +0.2094, -0.0723, -0.1037, -0.0066, +0.0075, -0.0346, +0.2195, +0.1334, -0.1074, +0.0879, -0.2654, +0.2319, -0.1298, -0.3219, +0.3351, -0.6852, -0.5198, -0.2214, -0.0373, +0.2662, -0.2757, +0.0667, +0.1171, +0.1987, +0.4252, -0.5109, -0.5771, -0.2238, -0.0016, -0.1032, +0.2942, -0.4498, -0.1209, +0.0526, +0.0681, -0.0631, -0.2249, -0.5044], +[ +0.1015, -0.1221, -0.0457, -0.1632, +0.1805, -0.4646, +0.1515, +0.3582, +0.0226, -0.1206, -1.2033, -0.5519, -0.7632, +0.1745, +0.2149, -0.3880, +0.8417, +0.0764, +0.3466, -0.0296, -0.1456, +0.0030, -0.4206, -0.6899, +0.1030, -0.4873, -0.1851, +0.2350, -0.5323, -0.7947, -0.1631, -0.0664, -0.7279, +0.2869, -0.1196, +0.3290, -0.3650, -0.2667, +0.0680, +0.0420, +0.0880, +0.0988, -0.7243, +0.2308, +0.6681, -0.4614, -0.2574, +0.1210, +0.1116, -0.0749, -0.8760, -0.2902, -0.0932, -0.0302, -0.4676, -0.0909, -0.0998, -0.1058, -0.1159, -0.0889, +0.1690, +0.0106, -0.1399, -0.6091], +[ -0.3936, -0.2924, -0.0566, +0.0908, +0.1229, -0.4908, +0.2100, +0.3042, -0.1919, -0.2383, -0.1356, -0.2715, +0.5147, -0.0937, -0.2436, +0.2805, -0.4522, +0.1256, +0.0199, -0.2870, -0.1586, -0.1113, -0.4221, +0.5571, +0.4612, +0.0522, +0.0469, +0.1000, -0.3156, -0.2255, +0.0661, -0.8530, -0.1866, -0.0146, -0.2175, -0.5078, -0.2589, -0.0452, -0.0606, -0.1495, -0.0759, -0.0676, -0.4239, +0.1552, -0.3918, +0.2913, -0.1573, -0.1386, +0.4216, +0.3134, -0.2761, -0.0822, +0.4101, -0.4691, -0.3533, -0.4907, -0.6454, -0.6846, -0.5219, +0.2845, +0.0990, +0.5448, +0.0043, -0.1068], +[ +0.2038, +0.3592, -0.0381, -0.3525, -0.4154, -0.0967, +0.1296, +0.0537, -0.0668, +0.1384, -0.3061, -0.3796, -0.0676, +0.2463, +0.0337, +0.2712, +0.2327, +0.2747, -0.0390, -0.4290, -0.1667, -0.2714, +0.0036, -0.2474, -0.0108, -0.5544, -0.3588, -1.0251, -0.1637, -0.6376, +0.1074, -0.2695, -0.2931, +0.2847, -0.3638, +0.2679, +0.3571, +0.3164, +0.0257, -0.1720, +0.0306, -0.0424, -1.3316, -0.2671, +0.1664, -0.6751, -1.3701, -0.1609, -0.5226, +0.2046, -0.2826, +0.0329, -0.1094, +0.0457, +0.2797, -0.3022, -0.2398, -0.1309, +0.1237, -0.6917, -0.1042, -0.5504, +0.0599, -0.0993], +[ +0.2578, +0.2448, -0.3515, +0.2550, -0.4556, -0.1521, -0.0937, +0.1082, +0.0064, -0.1935, -0.0986, -0.4707, -0.8805, +0.0902, -0.2753, -0.1709, -0.0610, -0.5028, -0.2642, -0.5600, +0.0068, +0.3170, +0.3340, -0.3805, +0.2661, -0.6105, -0.0338, -0.3294, -0.5872, -1.0930, -0.0021, +0.0525, -0.4677, +0.2302, +0.2422, +0.0805, -0.8454, -0.1925, +0.3445, -0.0826, +0.1550, -0.1808, -0.9067, +0.1723, +0.0365, -0.2956, -0.0784, +0.2945, +0.0641, +0.0239, -0.0561, +0.0630, -0.1646, +0.0403, -0.9467, -0.6385, +0.1264, -0.2964, -0.1579, +0.2373, -0.0417, +0.1332, +0.4347, -0.2901], +[ -0.1863, -0.0242, -1.3175, -0.0210, +0.7122, -0.0967, +0.2298, -0.2379, +0.0625, -1.0683, -0.5156, -0.2993, +0.3003, +0.2490, -0.2035, +0.1202, -0.0714, -0.2515, +0.1050, -0.0244, -0.0323, -0.0142, -0.3243, -1.0355, -0.1945, -0.6769, -0.1482, -0.6095, -1.2543, -0.1212, +0.2109, +0.1281, -0.5586, -0.1869, -0.0505, +0.3053, -1.4947, -0.4599, +0.3102, -0.0713, +0.0294, -0.3146, +0.3229, +0.0378, +0.5098, +0.3752, -1.1693, +0.2510, +0.5305, +0.0346, +0.4966, +0.1118, -0.1061, -0.2008, -0.8236, -0.3700, +0.0883, -0.3168, -0.6185, +0.7089, -0.7464, +0.0953, +0.5762, -0.1075], +[ -0.0649, +0.0128, -0.1768, -0.6602, -0.1332, +0.2819, +0.2196, -0.5156, +0.3175, +0.1690, +0.2806, -0.4787, -0.6439, +0.2791, -0.2997, +0.1521, -0.1161, -0.0450, +0.3153, +0.2059, -0.0687, +0.1672, +0.1408, +0.1332, -0.0993, +0.3110, +0.0697, +0.1563, +0.1029, -0.9687, -0.0195, +0.2097, -0.1263, +0.0773, +0.0347, +0.1860, -0.0304, -0.2414, -0.8054, +0.1562, +0.2249, -0.9248, -0.8415, +0.3590, -0.1355, +0.3704, -0.4522, -0.3624, -0.7113, +0.2271, -1.0906, -0.5597, +0.2343, -0.3852, -1.1641, -0.2844, +0.3131, +0.0553, +0.1024, -1.8251, -0.7928, +0.1100, -0.1679, -0.9488], +[ -0.2144, -0.1724, -0.3429, +0.4875, +0.1602, +0.3609, +0.2947, -0.0800, -0.1385, +0.1008, +0.0328, -0.4782, -0.0638, +0.1748, +0.1134, -1.1389, -0.3115, -0.5365, -0.6607, -0.4707, -0.7305, +0.1676, -0.0230, +0.2286, -0.6695, +0.0748, +0.1772, -0.2285, -0.4459, +0.1489, -0.3056, -0.2268, -0.1158, +0.2677, -0.5665, +0.2966, -0.1029, +0.0172, +0.5579, +0.2357, -0.2072, -0.3823, -0.7458, +0.2185, -0.7836, -0.2562, -0.5589, -0.0523, -0.5152, +0.1166, +0.2566, -0.4698, +0.1755, +0.2976, -0.2948, -0.0285, -1.5112, +0.1225, -0.0690, -0.0911, +0.1124, -0.3546, +0.0632, +0.4610], +[ -0.1956, +0.0370, -0.0308, -0.1817, +0.1882, -0.1052, -0.0503, +0.3709, -0.2240, -0.0828, -0.8304, +0.0044, +0.0459, +0.0761, +0.0206, +0.1419, +0.4986, -0.0567, -0.3287, -0.7981, -0.2592, -0.7543, -0.4157, -0.0182, -0.0886, -0.7827, +0.0057, -0.0465, -0.3869, -1.4567, +0.2595, +0.0849, -0.8865, +0.0156, -0.1862, +0.2267, +0.4277, +0.2811, -0.8963, -0.2927, +0.1019, -0.1663, -0.8428, -0.2191, +0.4336, -0.9808, -0.8575, +0.1630, +0.0028, -0.4473, +0.5544, -0.2155, +0.0422, +0.1349, -0.3771, -0.0671, -0.0194, +0.2140, -0.3160, -0.5825, +0.3150, -0.0496, -0.0514, -0.2068], +[ +0.2710, +0.2079, -0.7397, -0.5588, -0.3865, -0.3099, +0.3502, -0.0669, -0.0064, +0.1037, -0.8617, -0.3000, -0.2977, +0.2392, -1.4580, +0.3477, +0.0329, -0.5653, -0.6458, -0.2955, +0.1288, +0.1199, -0.5390, +0.1431, +0.1088, -0.5537, -0.0880, -0.3841, +0.0801, -1.8213, -0.5604, -0.9688, +0.3403, +0.7033, +0.7676, -0.0232, +0.1272, -0.0812, +0.0785, -0.0681, +0.3825, -0.1818, +0.0268, +0.0546, +0.0451, -0.4763, -0.0513, -0.3287, +0.5841, -0.1963, +0.1147, +0.1113, -0.5448, -0.3498, -0.0750, -0.0585, -0.5094, +0.0116, +0.6219, -0.1440, -0.0742, -0.1261, +0.0572, +0.4366], +[ +0.0369, -0.3345, -0.0768, +0.4205, -0.1390, -0.2384, -0.1629, +0.0786, +0.6107, -0.2725, +0.0444, +0.2727, +0.3295, +0.3000, -0.4049, +0.1150, -0.7289, -0.5964, +0.1346, +0.0574, -0.1202, -0.2461, -0.1504, -0.1282, +0.5685, -0.3631, +0.4576, +0.6880, +0.2554, -0.1782, -0.2704, -0.5299, +0.0232, -0.4567, -0.1116, -0.2672, +0.4286, -0.0448, +0.2230, +0.0236, -0.0343, -0.0985, +0.8088, +0.2633, -0.7682, -0.0642, +0.0384, +0.0750, +0.0595, +0.1717, +0.5152, +0.2972, +0.0325, +0.0450, +0.2534, -0.1186, +0.1540, -0.0107, -1.5430, -0.1050, +0.4161, +0.0592, +0.0044, +0.0843], +[ +0.1402, +0.1111, +0.4706, +0.3944, -0.1486, +0.1623, -0.1863, +0.0468, -0.4898, -0.0224, +0.2583, +0.1336, -0.1123, +0.0581, -0.0853, -0.0288, +0.0372, -0.1358, -0.0016, -0.5055, -0.2581, -0.3232, +0.0418, -0.5329, +0.0167, -0.1626, +0.0284, -0.8795, +0.1812, +0.1044, +0.3439, -0.3482, -0.1301, +0.1099, -0.3284, -0.3683, -0.0479, -0.2303, -0.2175, +0.2400, +0.4435, +0.0818, +0.3271, -0.0304, -0.4587, -0.3401, +0.1851, +0.1210, +0.0699, +0.2149, +0.3445, -0.3352, -1.0872, +0.1455, +0.2182, -0.7787, -0.4760, +0.0306, -0.2152, +0.1286, +0.1384, -0.0821, +0.1290, -0.0055], +[ -0.3143, -0.1360, -0.4878, +0.1358, +0.5162, -0.0948, -0.1355, +0.0911, +0.3592, +0.3475, -0.5666, -0.1593, +0.1584, +0.3172, -0.0814, -0.1594, +0.1179, -0.6127, -0.3628, +0.1970, -0.6501, +0.1911, +0.4294, -0.2048, +0.3984, -0.0478, +0.1101, -0.5869, +0.4901, +0.2732, +0.1232, +0.4142, -0.1033, -0.7990, -0.2998, -0.2509, +0.2344, -0.2567, -0.0217, -0.0533, +0.0065, +0.2979, +0.1800, -0.0104, +0.1369, -0.0922, +0.0936, -0.7170, -0.0760, +0.8108, -0.5491, +0.6483, -0.2240, +0.3839, +0.1498, -0.3039, -0.1461, +0.6054, -0.2897, -0.0078, -0.5547, -0.2711, +0.0759, +0.3237], +[ +0.5616, +0.6020, +0.1514, -0.0995, -0.2372, +0.0439, +0.1131, -0.4839, -0.0951, +0.0364, -0.5441, +0.4846, -1.2297, +0.0283, +0.0222, -0.0880, -0.2479, -0.9553, -0.3495, -0.2920, +0.1952, +0.1342, -0.0358, +0.0231, +0.2965, +0.1285, -0.6684, -0.1393, +0.0285, -0.2817, +0.4368, +0.2012, -0.2838, +0.4132, +0.1914, +0.0013, -1.7082, -0.0351, -0.4860, +0.7094, -0.2159, -0.1761, -1.0276, -0.1694, -0.3221, +0.0570, -0.4394, -0.2167, +0.4231, -0.1657, +0.6024, -0.2707, -0.8380, -0.3110, -0.2727, -0.0000, +0.0231, -0.1633, -0.1836, -0.2276, -0.4032, +0.1383, -0.1814, +0.0089], +[ -0.5613, +0.4738, -0.0094, +0.1051, -0.1535, +0.4020, +0.1245, -0.2956, -0.3178, +0.2353, -0.1440, -0.4745, +0.5712, -0.6119, -0.2502, +0.1111, -0.2901, +0.1149, -0.2184, +0.0947, -0.2306, +0.0607, +0.5822, +0.1520, +0.3781, +0.1310, -0.1419, -0.3509, -0.0049, -0.1097, -0.0186, +0.1534, +0.0022, -0.0835, +0.1862, -0.2482, -0.1495, +0.1222, +0.4941, +0.1029, -0.7218, -0.3025, +0.1426, +0.5004, -0.0558, +0.2425, +0.0040, +0.1861, +0.2947, +0.1472, -0.1007, +0.4316, +0.2087, +0.1794, -0.3261, +0.3879, +0.3172, -0.1491, -0.2332, -0.1210, +0.1350, -0.6219, -0.1570, -0.3347], +[ -0.3358, -0.0382, -0.7346, +0.4532, +0.1010, +0.1139, +0.2213, -0.1050, -0.0101, +0.3208, -0.0250, -0.7625, -0.2357, -0.4067, +0.3186, -0.9441, -0.0734, +0.0728, +0.0527, -0.0968, -0.0641, +0.2877, -0.0233, +0.0247, -0.1409, +0.1281, +0.0714, -0.0970, -0.4026, -0.3684, +0.3176, -0.1875, +0.5452, +0.0015, -0.0651, +0.1397, +0.1550, -0.2029, +0.1350, +0.5028, -0.4886, +0.0630, +0.1046, +0.5003, -0.5631, -0.1724, +0.2490, -0.0635, +0.2186, -0.6167, +0.2855, -0.0579, -0.3821, +0.0562, +0.3526, +0.1313, -0.1232, +0.5154, +0.2603, -0.0256, -0.0428, -0.4523, +0.1544, +0.4509], +[ +0.4364, +0.1492, -0.8081, -0.7765, +0.6166, -0.1982, -1.1432, +0.1429, -0.2398, +0.5563, +0.6239, -0.5039, +0.5798, +0.2796, -0.1920, +1.1087, -1.2430, +0.3100, -0.1673, -0.2110, -0.1677, -0.2675, -0.6310, +0.4756, -0.9587, +0.2184, -0.4932, +0.1294, +0.3719, -0.4294, -0.5482, -0.0035, -0.8373, -0.8548, -0.3245, -0.0418, -0.0565, +0.1039, +0.0908, -0.7536, -0.2366, +0.3019, +0.2688, -0.5386, +0.1596, -0.1945, +0.6900, -0.8411, -0.2744, -1.1320, +0.0096, +0.0270, +0.4991, -0.1475, -0.0282, -0.0996, -0.1922, +0.1317, +0.0331, -0.1740, +0.0127, -0.5657, -0.0071, +0.3783], +[ -0.9835, -0.0852, +0.0673, +0.3608, -0.5972, -0.6473, +0.2292, -0.8121, -0.2935, +0.3361, +0.1431, -0.9612, -0.4476, -0.3111, -1.0042, -0.3003, +0.0550, -0.4980, -0.1894, -0.2824, +0.2057, +0.4801, +0.2026, -0.0641, -0.5990, +0.2153, +0.1995, +0.2198, -0.3514, -0.0224, -0.1561, -0.9427, +0.5208, +0.2935, +0.3871, -0.1506, -0.0125, +0.6396, -0.0254, +0.4302, -0.3523, +0.0043, -0.0100, +0.3120, -0.1009, -0.9246, +0.0267, -0.1770, -1.4509, +0.0446, -0.3987, -0.0527, -0.3977, -0.8643, +0.0371, -0.2630, -0.0853, +0.1048, +0.0452, -0.5723, -0.0805, -0.0452, -0.0489, +0.3637], +[ -0.1134, +0.1550, -0.0273, -0.5159, -0.1409, -0.0753, +0.3230, -0.4589, +0.2979, +0.1357, +0.1507, -0.9132, -0.9848, -0.0549, -0.1922, +0.1292, -0.2662, -0.0223, +0.1236, -0.1861, +0.1619, +0.3042, +0.2029, -0.1568, +0.1171, +0.2165, +0.3397, +0.4358, -0.0830, -1.0290, +0.2147, +0.1445, -0.0959, +0.4696, +0.1496, +0.2696, -1.2499, +0.0610, -0.7221, -0.5853, +0.1479, -0.7158, -0.9965, +0.4685, +0.1279, +0.2654, -0.2122, -0.2593, -0.0377, +0.1686, +0.2055, -0.4425, -0.3739, -0.5889, -0.2026, +0.0867, +0.1399, -0.2259, -0.1120, -0.7030, -0.2465, +0.1833, -0.4158, +0.2191], +[ -0.3483, +0.1839, +0.0828, -1.1050, -0.1233, +0.1977, +0.1525, +0.4061, +0.5995, +0.0719, +0.2548, -0.7088, +0.0960, +0.8649, -0.4205, +0.0785, -1.6571, +0.3270, +0.1325, -0.3489, -0.1474, +0.4878, +0.6677, +0.1169, +0.0927, -0.7217, +0.2176, +0.4076, +0.2830, +0.1905, +0.2715, +0.0414, +0.0528, +0.2191, -0.0137, -0.6578, +0.0925, -0.0096, -0.0277, +0.3254, -0.1541, -0.1264, +0.3611, +0.4325, -0.5513, +0.5342, +0.5277, +0.0938, +0.1011, -0.3802, -0.3093, -0.3772, +0.2394, -0.0069, +0.2487, -0.0366, -0.2062, -0.4031, +0.1757, +0.1664, -0.6083, -0.4812, +0.3686, -1.8912], +[ +0.4638, -0.6215, -0.9444, -0.2262, -0.0024, -0.1107, +0.2688, -0.8943, +0.2925, +0.0938, -0.2213, -0.0040, +0.5671, +0.1933, -0.1180, +0.8275, -0.4667, +0.4134, +0.2031, -0.7823, -0.2169, -0.0449, -0.0460, +0.2337, -0.6242, +0.1746, +0.1719, -0.3266, -0.0035, -2.0916, -0.9540, -0.4786, +0.1893, +0.0484, -0.2314, +0.0707, +0.6548, +0.1558, -1.5931, -0.1063, -0.0078, -0.1189, +0.2243, -0.4626, +0.9811, +0.0963, +0.3128, +0.2263, -0.1932, +0.2922, -0.8837, +0.4654, +0.3331, -0.7873, -0.1036, +0.1652, -0.3548, -0.6482, -0.3590, -0.4473, -0.5732, -0.6507, +0.0124, +0.3495], +[ +0.2305, -0.0983, -0.6019, +0.0341, -0.0379, -0.3943, +0.2129, -0.1420, -0.4793, +0.1007, +0.0970, -1.2953, +0.1626, +0.1505, -0.0289, -0.0156, -0.8020, -0.5636, -0.3583, -0.5833, -0.0779, +0.0571, -0.6464, -0.3262, -0.0799, +0.1420, -0.2370, +0.2553, -0.0499, +0.0923, -0.0051, +0.1285, +0.3178, +0.4984, -0.8847, +0.0226, -0.0542, +0.0218, +0.1203, -0.3696, -0.1743, +0.2263, -0.2901, +0.2136, -0.1456, -0.1032, -0.3173, +0.2449, +0.3368, -0.0686, +0.2705, -0.3874, -0.0087, +0.1807, +0.1054, -0.5347, -0.4611, -0.0363, +0.3767, -0.4282, +0.2581, -0.1649, +0.2136, +0.2720], +[ +0.0920, -0.0227, +0.2435, -0.0693, -0.1166, +0.4459, +0.0340, +0.1341, +0.0651, -0.4839, -1.2283, -0.3406, -0.0625, -0.1543, -0.5159, -0.1331, -0.1011, +0.1511, +0.1291, -0.3677, +0.1103, +0.3123, -0.0555, +0.0921, +0.2083, -1.2922, +0.4564, +0.2563, -0.3195, -1.2801, +0.2871, -0.2701, -1.0224, -0.4784, +0.2698, +0.0970, -0.3113, -0.2468, -0.5107, -0.1610, -0.0608, -0.5730, +0.0112, -0.3562, +0.0284, +0.3547, -0.1682, -0.4646, -0.5916, +0.0556, -0.4088, +0.3740, +0.1835, +0.2922, -0.2365, -0.0748, +0.3475, -0.1332, -0.0565, -0.6135, -0.2440, -0.0980, +0.0177, +0.2084], +[ +0.5078, +0.2882, -0.1070, -0.2375, +0.1945, -0.1556, -0.1868, +0.4579, -0.1407, -0.3003, +0.5034, -0.1413, -0.1191, +0.5198, -0.0995, +0.2052, -0.6323, +0.3269, +0.1478, -0.9499, -0.0894, -0.5471, -1.0356, -1.0237, +0.1626, +0.0408, -1.5120, +0.5972, -0.2106, -0.1963, -0.2037, +0.4696, +0.0170, +0.3471, +0.6302, +0.3234, +0.0171, +0.2163, -0.2019, -0.8498, -0.7691, +0.0792, +0.1790, -0.2880, +0.1583, -0.2802, +0.3539, -0.2478, +0.2920, -0.8338, +0.3591, -0.6136, -0.0626, +0.5065, +0.3065, -0.3856, -0.7768, +1.0600, -0.3624, +0.4283, +0.6014, -0.2987, -0.5462, +0.5388], +[ -0.1657, +0.2175, +0.1502, +0.1590, +0.2511, -0.1747, +0.0322, +0.0047, -0.1304, +0.1304, -0.2217, +0.2689, -0.0998, +0.0495, +0.5198, -0.4353, +0.3513, -0.3965, -0.7116, +0.1963, -0.2455, +0.1669, +0.0317, +0.0209, -0.9937, +0.0478, -0.1112, +0.0802, -0.0946, +0.2395, -0.4575, +0.2455, -0.0041, +0.2040, -0.1288, +0.4845, -0.0935, +0.1073, -0.1772, -0.0717, +0.1100, -1.2535, -0.4555, +0.1200, +0.0925, +0.2260, -0.3057, +0.1682, -0.7064, +0.0541, +0.2077, -0.6310, +0.1636, +0.4050, +0.0783, -0.2254, -0.5860, +0.0542, -0.1233, +0.0088, -0.1021, -0.4150, -0.5846, +0.0780], +[ +0.0137, +0.1261, +0.2534, +0.0314, +0.1516, +0.2854, -0.2887, -0.0637, -0.1735, +0.0230, -0.2352, -0.2550, -0.4087, -0.1375, +0.5831, -0.4667, -0.1422, -0.0267, -0.1625, -0.4943, +0.0660, -0.0611, -0.2226, -0.1747, +0.2218, +0.0342, -0.0662, -0.5225, -0.2543, -0.3675, +0.2921, -0.5501, -0.6124, -1.0240, -0.0340, +0.3921, +0.0436, -0.1442, +0.1874, +0.3041, -0.1329, +0.0904, -0.4785, -0.1100, +0.7130, -0.9416, -0.3120, -0.3972, -0.0667, -0.2238, +0.5337, +0.2120, -0.3086, +0.1386, +0.0945, -0.0784, +0.0060, +0.3076, +0.1153, -0.8886, +0.2775, -0.3114, +0.1672, +0.2318], +[ +0.0146, -0.1282, -1.1506, +0.1754, +0.0246, -0.4277, +0.1070, -0.5093, -0.0829, -0.9763, -1.5423, +0.0999, +0.1235, -0.5906, -0.0747, +0.0536, -0.0421, +0.0307, +0.2496, +0.1554, -0.0956, +0.2644, +0.0617, -0.0836, -0.8209, +0.2670, -0.0349, -0.7920, -0.0636, -0.5876, -0.5698, -0.2682, -0.3274, +0.2240, -0.0315, -0.3318, -0.1250, -0.1955, -0.2965, +0.2306, -0.0729, -0.2693, -0.2185, +0.1496, +0.1656, +0.2526, -0.3052, -0.1906, -0.3483, -1.2051, +0.3049, -0.1922, -0.3015, -0.4155, -0.3547, +0.0109, -0.4658, -0.7525, -0.4770, -0.5124, +0.1414, -0.1773, -0.5394, +0.0918], +[ -0.9757, +0.5451, -0.1582, -0.0760, +0.2780, +0.0088, -0.5886, +0.7647, +0.0055, +0.2014, +0.2445, -1.4211, -0.0321, +0.2212, +0.4337, -0.5242, -0.2517, +0.1777, -0.0283, -0.4325, -0.0527, -0.3353, -0.1614, -0.7283, +0.6176, -0.4128, -0.2551, +0.1218, -0.2137, -0.5500, +0.2138, -0.5199, +0.1999, +0.5070, +0.8055, +0.4022, -0.0963, -0.0710, -0.6852, -0.1077, +0.1993, -0.0105, +0.1279, +0.0083, -0.2906, -0.6892, -0.5177, -0.5738, -0.0834, -0.1992, -0.2419, +0.5335, -0.1230, +0.1839, -0.2993, +0.4106, -0.7241, +0.3990, +0.1751, +0.2938, +0.0499, -1.0744, -0.2422, -0.4619], +[ -0.4866, -0.3855, -0.1042, -0.1423, +0.2359, +0.2600, -0.1206, -0.1596, -0.0135, -0.7623, +0.8498, -0.4058, -0.2221, -0.2718, -0.2202, -0.0022, -0.3595, -0.5880, -0.2412, -0.0803, +0.2923, +0.0932, -0.0245, +0.0494, -0.0914, +0.0065, -0.1044, +0.2288, -0.2645, +0.1512, -0.7647, +0.4264, +0.5612, -0.1165, +0.0498, +0.2486, -0.4278, -0.5425, +0.2555, -0.2089, +0.1553, +0.2537, +0.6342, -0.6339, -0.3252, +0.4005, +0.3177, -1.0503, -0.0484, -0.6869, -1.2052, +0.0518, -0.2127, +0.6565, +0.1174, -0.0542, +0.0330, -0.3769, -0.8160, -0.3341, +0.5011, -0.2296, -0.0582, +0.2720], +[ -0.2740, -0.4031, +0.1220, +0.2121, -0.2756, -1.1033, -0.7286, -0.1866, +0.3279, +0.2347, -0.6916, +0.0782, -0.3519, +0.5791, -0.0632, -1.1896, -0.5604, -0.2738, +0.2529, +0.0344, -0.0932, -0.1923, -0.1518, -0.0706, +0.1075, +0.2185, -0.3537, -0.3668, -0.5451, +0.7531, -0.2921, +0.9216, -0.6654, -0.4376, +0.0435, -0.4269, +0.0265, -0.4000, -0.5693, -0.2149, +0.0681, -0.1618, -0.1684, -0.1539, -0.0432, +0.0356, +0.1934, +0.1132, -0.8665, -0.2111, -0.0802, +0.0847, +0.2886, -0.2710, -0.1154, -0.1229, +0.0220, -0.2838, -0.2988, +0.2642, -0.1269, +0.0378, -0.0577, +0.2332], +[ -0.0167, -0.2866, -0.5837, -0.3393, -0.2001, -0.2052, -0.0069, -0.0557, +0.0957, -0.0296, -1.2254, +0.6089, -0.7623, +0.2794, -0.1563, -0.5299, -0.2602, +0.3578, +0.2024, -1.1151, -0.7019, -0.3572, -0.2302, -0.0681, +0.1533, -0.3679, +0.3212, -0.0854, -0.3797, -1.4589, +0.2442, -0.7591, -0.5560, -0.1719, -0.4811, +0.0760, +0.2026, -0.0090, +0.3387, +0.5250, -0.3101, -0.5067, +0.6807, -0.2780, +0.1402, +0.0732, -0.0141, -0.5621, -0.5418, -0.1793, -0.1043, -0.1398, -0.2086, +0.0398, +0.5175, -0.0853, +0.2001, +0.0463, +0.0370, -0.1317, -0.5319, +0.1052, -0.3744, -0.0245], +[ -0.2261, +0.1322, +0.2244, +0.0686, +0.6216, +0.2085, -0.2037, -0.6063, -0.1096, -0.3126, +0.4351, +0.3109, -0.1477, -0.0571, +0.4007, -0.3581, +0.3124, +0.2700, +0.3172, -0.5340, +0.2530, +0.1908, +0.0630, +0.4039, +0.2531, +0.1035, +0.5428, +1.0849, -0.6678, -0.1461, +0.1677, +0.6444, -0.1607, +0.0921, +0.0428, -0.4171, +0.0052, -0.6449, +0.5795, +0.3778, -0.2117, +0.6219, +0.4147, -0.2854, +0.0800, +0.2086, +0.1057, +0.0211, +0.1335, +0.0754, -1.0412, +0.3630, -0.3308, -0.0163, +0.3209, +0.6749, +0.1818, +0.0622, +0.0631, -0.0780, -0.2003, +0.0502, -0.1801, +0.1226], +[ -0.5705, -0.4520, -0.2005, -0.1099, +0.0716, +0.1710, -0.5488, -0.0350, +0.3769, +0.5694, +0.2142, -0.2680, +0.3770, +0.0675, +0.1544, -0.1849, -0.1091, -0.8965, +0.2643, +0.0145, -0.1163, +0.0022, +0.0120, +0.4676, +0.0786, +0.0047, -0.0236, +0.2523, -0.0296, -0.1272, -0.1784, -0.0316, -0.1040, -0.0833, -0.5759, +0.1137, +0.1781, -0.1794, -0.7452, +0.2339, -0.2118, -0.0421, +0.1374, -0.7774, +0.0419, +0.2437, -0.1457, -0.3050, -0.5618, -0.8883, +0.3731, +0.1214, +0.2160, -0.2766, +0.2474, -0.0136, -0.0689, +0.2249, +0.4861, +0.3022, +0.0187, +0.4610, +0.0144, -0.0760], +[ +0.0452, -0.0096, +0.0093, +0.3166, +0.0104, -0.8211, +0.0320, -0.9130, -0.9762, +0.3912, +0.0517, -0.0086, -0.1364, -0.5440, +0.3999, -0.8466, +0.1587, +0.3064, -0.0849, -1.0372, -0.3295, -0.0011, +0.0702, +0.0558, -0.3068, -0.0579, +0.1683, +0.1862, -0.3232, +0.0126, -0.0197, +0.3761, +0.3451, +0.1456, -0.1702, +0.3671, +0.2129, +0.1910, -0.4390, -0.2298, +0.2539, -0.2647, -0.0812, +0.1049, +0.0182, +0.0124, +0.1412, +0.7550, +0.1466, +0.0842, -0.2089, -0.1244, -0.1409, -0.0448, +0.4329, +0.2906, +0.1276, +0.0849, +0.1483, -0.1114, +0.1040, -0.1841, +0.0504, +0.0628], +[ -0.7229, -0.2299, +0.3797, +0.2634, +0.1779, +0.1996, -0.0516, +0.1889, -0.0321, -0.0180, +0.1005, -0.1224, -0.7053, -0.1657, +0.2718, -0.1325, -0.3542, -0.0817, +0.0660, -0.3473, -0.1094, +0.3669, +0.0287, +0.4202, +0.5254, +0.3843, +0.2454, -0.1032, -0.2225, +0.1151, +0.2620, -0.2615, +0.1377, -0.0886, +0.1253, -0.2241, +0.2043, -0.6399, -0.0001, +0.2756, -0.5004, +0.0097, +0.1577, +0.1704, -0.4630, +0.0586, +0.1950, -0.2765, +0.3850, +0.1792, -0.0390, +0.0853, +0.0609, +0.3052, +0.1366, +0.4978, -0.0320, -0.0238, -0.2433, +0.1354, -0.3672, +0.1638, +0.3015, +0.0190], +[ -0.5652, -0.5404, +0.3047, +0.2983, +0.0327, -0.2695, +0.3298, +0.0245, -0.8883, -0.2214, +0.0148, +0.2319, -0.4585, -0.4131, +0.1738, -0.0687, +0.2266, -0.0930, -0.0778, +0.0594, -0.7182, -0.5207, -0.1110, -0.6784, +0.1840, +0.4566, +0.0854, -0.0213, -0.4181, +0.1902, +0.3848, -0.3574, +0.0339, +0.0642, +0.2140, +0.2387, +0.1925, -0.4425, -0.1289, +0.0003, +0.4367, -0.1658, -0.6550, +0.0966, -0.2929, -0.0290, +0.0821, +0.0917, +0.0588, +0.0215, +0.2516, -0.6177, -0.3127, +0.1305, +0.1058, -0.2301, -0.1769, +0.3145, +0.0931, +0.0435, +0.2786, +0.4412, +0.1732, -0.1200], +[ -0.0996, -0.6608, -0.0364, +0.3340, +0.0165, +0.3010, +0.0927, +0.1056, -0.2970, -0.1835, +0.0571, +0.2240, +0.0030, -0.6368, +0.2202, -0.1890, +0.4696, -0.0632, -0.0631, +0.0907, -0.1202, -0.3129, -0.0065, -0.2858, +0.5460, +0.2200, +0.2605, +0.0594, -0.2014, +0.3389, +0.3456, -0.0752, +0.0585, -0.0157, +0.0157, +0.0445, +0.3628, -0.4249, -0.3869, -0.0149, +0.3033, -0.2029, +0.3068, +0.2245, -0.3317, +0.5013, +0.2260, +0.0021, +0.5501, +0.0470, +0.0281, -0.4652, -0.5074, +0.0623, +0.2559, +0.1474, +0.3211, +0.3766, -0.0389, +0.3026, +0.0087, +0.4048, +0.4947, -0.1758], +[ +0.1554, -0.1069, +0.0311, +0.1231, +0.1511, -0.5720, -0.2430, +0.0702, -0.3883, +0.0351, -0.4604, +0.2486, -0.1264, +0.0224, -0.4056, -0.0509, -0.2476, +0.4460, +0.3992, -1.0177, -0.4811, -0.0661, -0.4349, +0.0118, -0.3434, -0.0266, -0.4486, -0.2416, -0.2670, -0.2086, -0.6751, +0.0134, -0.0306, +0.1693, -0.1759, +0.2342, +0.0876, +0.0606, +0.5759, -0.6247, -0.0825, +0.8001, -0.4028, -0.3971, +0.4740, -0.7486, -0.1452, +0.0966, -1.1183, -1.7440, +0.3747, -0.2859, -0.4128, +0.0351, -0.1834, +0.2799, -0.5416, +0.1614, -0.1525, +0.5196, +0.1470, +0.2015, -0.0209, +0.4493], +[ +0.4452, +0.3101, -0.1846, -0.2601, +0.0557, -0.1652, +0.2796, -0.2789, -0.3574, +0.7659, -0.0928, -0.1773, +0.2040, +0.3471, +0.0277, +0.1219, +0.1127, +0.2735, -0.0420, -0.3129, -0.8266, -0.0287, -0.1716, +0.0738, -1.1224, -0.2538, -0.1206, +0.4969, +0.5520, -0.9201, -0.4422, -0.4078, -0.2800, +0.0784, -0.1056, -0.1181, -0.6464, +0.1835, -0.1094, -0.0400, +0.3895, -0.4687, +0.7645, +0.1850, +0.8089, -0.0632, +0.3379, -0.1370, -1.2702, -0.1647, -0.0076, -0.3014, +0.5104, -0.8770, -0.1667, +0.0547, -0.9042, -0.7874, +0.4112, -0.6015, +0.1230, -0.3193, -0.3689, +0.7722], +[ -0.1760, +0.0806, +0.0633, +0.1495, -0.2089, -0.1720, +0.3683, -0.7910, -0.1092, -0.0286, -0.2381, -0.3570, -0.3146, -0.4156, -0.4463, +0.2495, +0.1315, -0.4987, -0.0444, -0.3366, +0.4729, +0.5814, +0.2111, +0.5879, -0.4906, -0.2095, +0.1884, -0.8830, +0.0099, -0.5141, -0.0253, +0.0638, -0.5014, -0.6889, +0.4109, -0.3437, -0.5957, -0.3521, +0.4051, +0.1513, +0.0929, +0.2743, -0.5853, -0.0101, +0.0543, +0.0796, +0.0171, -0.1006, -0.8329, +0.3093, -0.7488, -0.1443, +0.4323, -0.3448, -0.6281, +0.4770, +0.4202, -0.8632, -0.3805, -1.1830, -0.7543, -0.5576, -0.5449, +0.2612], +[ -0.7124, +0.0296, -0.0180, +0.1221, +0.3492, -0.1979, +0.1803, -0.6664, -0.4365, +0.0834, +0.0055, +0.2783, +0.2842, -0.3726, -0.1905, -0.3562, +0.4659, +0.5841, +0.2670, +0.3766, +0.2223, -0.2560, -1.2231, +0.3688, -0.6143, -0.4259, -0.0066, -0.6308, -0.0026, -0.4631, -0.1651, -0.3861, +0.1432, +0.3695, +0.3812, +0.1687, -0.0687, +0.6742, -0.1006, -0.0740, +0.3388, -0.1572, +0.3848, +0.1060, -0.3427, -0.0441, +0.1701, -0.9669, -0.6756, -0.7418, -0.4919, +0.1873, -0.0749, -0.0006, -0.2966, -0.3439, +0.1329, +0.1904, -0.4898, -0.7065, +0.3420, -0.1842, +0.2152, -0.0524], +[ -0.0034, +0.0550, -1.2687, -0.0799, +0.3824, -0.1359, +0.2033, -0.0635, -0.1804, -0.0437, +0.1483, -0.5138, -0.7083, -0.4176, +0.4133, -0.9608, -0.1535, +0.2607, +0.1512, +0.0048, +0.1409, +0.0624, -0.2070, -0.6507, -0.1054, -0.1554, -0.9355, +0.1028, +0.6517, -0.1690, -0.0253, -0.6379, -0.4949, -0.0544, -0.0154, +0.2114, -0.2261, +0.6168, +0.0140, +0.0834, +0.2390, -0.4280, -0.5701, -0.3384, +0.3953, -0.0290, -0.0415, +0.1204, +0.0763, -0.5635, -0.6979, -0.2972, +0.1168, +0.0858, +0.5719, +0.0460, -0.1850, +0.3278, +0.2367, -0.1745, +0.3339, +0.2345, -0.7674, +0.2316], +[ -0.7640, +0.4325, -0.7808, -0.8599, +0.0685, +0.1389, -0.4254, +0.1816, +0.5504, +0.5307, -0.3181, -0.6939, -0.4922, +0.2190, -0.0280, +0.0948, -0.0696, +0.2561, -0.3489, +0.1103, +0.2562, -0.0775, -0.4995, -0.3639, +0.4419, -0.0798, +0.1815, -0.4532, +0.0092, -0.3042, -0.5383, +0.2354, -0.0964, -0.3795, +0.6289, -0.0032, +0.8141, +0.1504, +0.3532, +0.4816, -0.4394, -0.2215, -0.2689, +0.6740, -0.1720, +0.0399, -1.3940, -0.0466, -0.6636, -0.7952, +0.2715, +0.1412, +0.1164, +0.1355, -0.4197, -0.1231, +0.0225, +0.1704, -0.6381, -0.1786, +0.1951, +0.7547, +0.0585, -0.9978], +[ +0.2424, +0.1429, -0.5942, -0.8311, -0.4039, +0.0123, -0.5286, -0.1538, +0.1444, -0.2057, +0.1541, +0.3277, +0.0325, -0.1216, -0.2855, -0.3571, -1.2245, +0.5472, +0.8566, -0.4063, -0.0020, +0.0161, -0.0828, +0.1365, -0.3165, +0.1856, +0.4180, +0.3827, +0.4085, +0.1363, -0.5951, +0.2136, +0.4635, -0.3175, -0.0179, -0.1298, +0.3717, +0.3155, +0.7539, -0.3723, -0.9288, -0.0145, +0.2546, -0.1112, +0.0629, +0.1843, +0.3677, -0.3291, -0.4158, -0.4757, -0.6994, +0.1739, +0.2550, -0.2444, +0.1263, +0.2426, +0.2999, -0.1290, -0.3900, +0.3528, +0.1145, +0.2559, -0.0819, -0.4488], +[ -0.4228, -0.1394, -0.2091, -0.0344, +0.4417, -0.0600, -0.5085, +0.2543, -0.0523, +0.3243, +0.0854, +0.2292, +0.0820, -0.0431, +0.0678, -0.0514, -0.0348, -0.0160, +0.5653, +0.1224, +0.2047, -0.1892, -0.9762, -1.0318, -0.9600, +0.2571, +0.0527, +0.2796, -0.0836, +0.0239, -0.6415, +0.2080, +0.3183, +0.1883, -1.2626, +0.2661, +0.1099, -0.3269, -0.3931, -0.2218, -0.0774, -0.1932, -0.2984, -0.2962, -0.0536, -0.4651, -0.2370, -0.1265, -0.1956, -0.5390, -0.5313, -0.4435, -0.0816, +0.1992, -0.2242, -0.5927, -0.0626, +0.1441, +0.0228, -0.1464, +0.1223, -0.0883, +0.2199, +0.1578], +[ +0.3977, +0.0629, -0.0984, -0.4987, +0.4269, -0.1940, -0.1254, +0.2561, +0.2799, -0.2491, -0.1810, +0.2404, +0.5219, +0.0879, -0.2920, +0.3293, +0.0132, +0.0919, -0.1286, +0.5001, +0.1045, -0.1544, -0.5092, -0.2277, +0.1893, -0.6046, +0.1304, +0.9889, +0.1189, +0.2228, -0.3941, -0.0629, -0.3580, -1.2052, -0.3574, -0.5456, -0.2044, -0.3054, -0.0874, -0.7163, +0.0782, +0.4724, +0.4832, -1.0618, +0.2777, -0.3273, +0.0845, +0.0028, +0.1905, +0.3128, +0.1351, +0.1499, -0.1993, +0.0798, +0.0308, -0.8532, +0.0118, -0.2095, -0.0387, +0.1203, +0.1096, -0.0137, +0.1436, -0.2861], +[ -0.2417, -0.0439, +0.1189, +0.2369, -0.2781, +0.3031, +0.0773, +0.6085, +0.0232, -0.1423, -0.6961, -0.8309, -0.6136, -0.2563, +0.0283, -0.1212, -0.4166, -0.0050, +0.0318, +0.0260, -0.2687, -0.1907, -0.2317, -0.6242, +0.4980, -0.2121, -0.2454, -0.8505, -0.6092, -1.1722, +0.5666, +0.1006, -0.1905, -0.0702, +0.0700, +0.0617, +0.1817, -0.2282, +0.0176, -0.2242, +0.1264, -0.2623, -0.7171, -0.1821, -0.3619, -0.1819, -0.2828, -0.2249, -0.0303, +0.0185, +0.2609, -0.0549, -0.0996, +0.4723, -0.3633, +0.0846, +0.0765, +0.3280, -0.2451, +0.1041, -0.0034, +0.2080, +0.1936, -0.4749], +[ -0.4080, +0.0101, +0.4896, +0.2650, -0.0713, -0.4852, -0.4725, -0.1664, +0.1746, -0.1745, +0.1742, +0.0886, -0.0533, -0.2693, -0.1717, -0.1211, -0.5343, -0.2970, -0.2407, -0.0890, +0.2510, +0.1665, -0.0280, -0.5085, -0.0720, +0.0815, +0.0286, -1.0586, -0.0480, +0.6197, -0.1686, -0.0971, -0.0590, -0.0530, -0.5561, +0.2351, -0.8316, -0.4513, -0.0833, +0.3241, -0.2440, +0.0885, -0.0566, -0.0628, +0.0390, +0.0530, +0.1303, +0.2249, +0.3535, -0.1897, -0.0028, -0.4503, -0.4608, -0.4771, +0.0547, +0.1368, -0.0396, -0.0574, -0.7205, -0.0545, +0.3713, -0.1449, +0.0460, -0.2573], +[ +0.1729, +0.3328, -0.0483, +0.3430, -0.8166, -0.7130, -0.1524, -0.8914, -0.0284, +0.3845, +0.3261, -0.2930, -0.1704, -0.0667, -0.0761, -1.0040, +0.5002, +0.0138, +0.0480, -0.1500, -0.1398, +0.1682, +0.4195, -0.2878, -0.4181, -0.5565, +0.1091, -0.2138, -0.0314, -0.9147, -0.2513, +0.0348, -0.1134, -0.1961, +0.5464, +0.2765, +0.0357, -0.5474, -0.6593, -0.0637, -0.5578, +0.0965, -0.3782, -0.0283, +0.1986, -0.7640, -0.2243, +0.1620, -0.4975, +0.4370, -0.0027, -0.4728, -0.5417, +0.1895, +0.4871, -0.7267, -0.0884, -0.4895, -0.3184, -0.2400, +0.5365, -0.6006, -0.0316, -0.2627], +[ -0.1250, -0.2274, -0.4734, -0.8212, -0.8737, -0.2582, -0.1367, +0.0765, +0.1154, -0.0014, +0.1208, -0.0270, -0.0425, +0.3288, -0.1526, +0.3159, -0.3454, +0.3237, +0.0894, -0.5365, +0.1782, -1.0302, +0.0365, -0.2069, +0.1498, -0.5999, -0.2724, -0.1894, +0.4306, -0.3260, -0.3904, -0.0550, -0.2776, -0.2343, +0.4672, -0.1577, -0.2296, +0.2996, -0.6247, -0.2263, -0.4007, -0.2281, -0.0291, -0.6503, +0.3853, -0.7961, +0.3894, -0.0580, -1.3425, -0.2164, -0.1007, +0.1227, -0.4520, +0.1167, +0.1217, +0.1238, +0.0792, -1.1752, +0.1036, +0.0568, -0.3924, +0.0349, -0.5209, +0.3545], +[ +0.0287, -0.3782, +0.1962, -0.1268, +0.3571, -0.0019, -0.0362, -0.0845, +0.3061, +0.2659, -0.5059, -0.1129, -0.4579, +0.2661, +0.0929, +0.0436, +0.0056, +0.2657, +0.3845, -0.5530, +0.1714, +0.4608, +0.2531, +0.3154, +0.0426, +0.5664, +0.2775, -0.1081, +0.2637, -0.1573, -0.2128, +0.0684, -0.4874, -0.0263, -0.0327, -0.0933, -0.1256, -0.7359, -0.0188, +0.5449, -0.1793, +0.2461, +0.1168, +0.1503, +0.4420, +0.0875, -0.4102, +0.0356, -0.2893, +0.2913, -0.8194, +0.4889, +0.0413, +0.3302, -0.2903, +0.0952, +0.0212, +0.3041, +0.1542, -0.4005, -0.2331, -1.3377, +0.1470, -0.7202], +[ -0.9282, -0.1059, -0.0082, -0.1766, -1.3977, -1.3125, +0.3087, -0.3368, -0.6917, +0.0534, +0.0881, -0.7281, -0.4862, +0.0312, -0.8796, -0.0374, -0.0516, -0.3584, -0.9422, -0.8726, +0.0645, +0.0442, -0.2800, -0.3980, -0.1358, +0.4521, +0.1079, -0.1224, +0.1390, -0.5237, -0.2044, -0.8309, +0.2561, +0.4951, -0.7866, -0.1615, -0.2310, -0.2373, +0.0514, +0.2622, -0.4641, -0.1833, -0.1839, -0.0406, -0.3321, -0.2933, -0.0421, +0.1813, -0.2127, -0.1382, -0.0012, -0.6567, -1.4080, -0.3627, +0.3178, -1.2242, -0.9392, -0.1510, +0.2459, -0.0221, +0.4568, -0.4586, -0.0793, +0.3680], +[ -0.3041, +0.2604, -0.2652, +0.6025, +0.0916, +0.0136, -0.2971, +0.3269, +0.0725, -0.2456, -0.3518, +0.2903, +0.1801, -0.6663, +0.3020, +0.1644, +0.3541, -0.2844, -0.5166, -0.1280, -0.0661, +0.5309, +0.2226, +0.0688, -0.1076, -0.0739, +0.1466, +0.5006, -0.0508, -0.1852, +0.0641, +0.0069, -0.6020, -0.2326, -0.1071, -0.1683, +0.1069, +0.3673, -0.1795, -0.3418, -0.0471, +0.2649, +0.0608, -0.9008, +0.1314, +0.0451, -0.4691, -0.1016, -0.5714, +0.0841, +0.1224, +0.1867, -0.0598, -0.1693, -0.3963, +0.0738, +0.5359, +0.3494, +0.1235, +0.4378, -0.0009, +0.5538, +0.4332, -0.0908], +[ -0.5524, +0.2589, +0.1305, -0.4090, -0.0750, +0.1026, +0.5287, +0.2289, +0.4169, -0.0428, -0.3602, -0.1625, +0.0370, -0.4344, -0.2947, -0.0240, +0.1273, -0.0985, -1.3586, -0.7712, -0.2291, -0.4270, +0.4181, +0.3414, +0.1665, +0.0272, +0.3223, -0.1411, -0.0644, -0.7001, +0.1848, +0.3318, -0.4295, -0.7952, -0.0880, -0.4895, +0.2159, -0.1718, -0.3125, +0.0386, -0.6332, -0.3036, -0.5912, -0.4327, -0.0451, -0.5203, -0.0132, -0.1439, -0.1113, +0.0051, +0.0134, -0.0185, -0.0601, -0.0629, -0.2407, -0.4088, +0.0155, -0.2293, -1.0280, +0.0067, +0.1398, -0.1448, +0.3806, +0.2182], +[ +0.0648, -0.0437, -0.0942, -0.2744, -0.4381, -0.2502, +0.1999, -0.1825, +0.3736, -0.5487, -0.2808, -0.8762, -0.0995, -0.7099, -0.1731, -0.0471, +0.0135, +0.3748, -0.4082, -0.2058, +0.5860, +0.4465, +0.2315, +0.1135, -0.3129, -0.8307, +0.1438, -0.6274, +0.0895, -0.1950, -0.0484, -0.2457, +0.1510, -0.8775, -0.9142, -0.1708, -0.0972, -0.6048, +0.2905, +0.5451, -0.2202, -0.3213, -0.0398, -0.3397, +0.0215, -0.1846, +0.1132, -0.0441, -0.4064, -0.2330, -0.5510, +0.4083, +0.0116, -0.1033, -0.0460, +0.1744, +0.1322, -0.7649, -0.5508, +0.6277, +0.0331, -0.4214, +0.2977, +0.3355], +[ -0.1351, -0.2439, +0.3468, +0.2800, -0.0715, +0.0273, +0.0259, +0.2220, -0.1142, -0.2086, +0.1733, -0.3081, -0.0993, +0.0308, -0.8777, +0.2663, -0.0156, -0.0179, +0.3093, +0.2105, -0.1656, -0.3246, -0.0365, -0.4435, +0.3391, -0.0303, +0.2684, -0.6413, -0.0021, -0.7990, +0.1877, -0.3394, +0.2103, +0.0907, +0.0610, +0.0687, +0.2747, -0.3606, +0.1065, +0.0569, +0.2614, +0.1773, -0.8595, +0.0669, -0.1244, -0.4618, -0.3705, -0.0510, +0.2129, +0.1995, +0.0395, -0.0747, -0.2724, +0.1117, -0.3345, -0.3311, +0.0042, +0.3678, +0.3423, +0.2525, -0.0849, +0.3778, +0.4023, -0.1001], +[ +0.1241, -0.0503, -0.0182, -0.2132, -0.2386, -0.3724, -0.2412, -0.1737, -0.1700, +0.3160, -0.0092, +0.2899, -1.5977, +0.1411, -0.7268, -0.0835, +0.5029, +0.1386, -0.0634, -0.4580, +0.1020, -0.4675, +0.5110, -0.2398, +0.3636, -0.5651, -0.1730, +0.1509, +0.3955, -1.8248, -0.0228, -0.4183, -0.2963, +0.1007, +0.4309, +0.0637, -0.0066, -0.0472, -0.1385, +0.0819, +0.0202, -0.3139, -0.0896, +0.5357, -0.7048, -0.0429, -0.1733, -0.6343, -0.2395, +0.2319, +0.1909, -0.3611, -0.0093, +0.0513, +0.2180, -0.2943, +0.1112, -0.1285, -0.6500, +0.4892, +0.0203, -1.1220, -0.0724, +0.4504], +[ +0.1112, -0.0448, -0.6431, +0.1884, +0.3960, -0.1572, +0.1121, -0.1994, -0.0486, -0.2115, -0.0936, -1.5022, -0.2118, -0.6693, +0.3676, -0.2709, -0.3703, +0.3534, -0.0593, +0.2411, -0.3764, +0.2110, +0.2070, -0.3406, -0.2990, +0.4268, -0.0408, +0.1984, -0.3161, +0.3869, -0.3141, -0.4338, +0.0395, -0.3092, +0.2746, -0.2975, -1.0016, +0.0616, -0.2120, +0.0863, -0.0899, -0.3227, -0.1391, +0.2368, -0.5746, +0.3478, +0.0162, +0.8646, -0.4043, -1.0257, +0.3557, -0.1569, +0.1722, -0.1626, +0.2160, +0.4056, -0.7633, -0.3259, -0.2412, -0.0411, -0.0130, -0.1054, -0.6206, -0.3220], +[ +0.4052, -1.3239, +0.1395, +0.1058, -0.1199, -0.1038, +0.1456, +0.3265, -0.3059, -0.7138, -0.0618, +0.3480, +0.5171, +0.0254, -0.2988, +0.2774, +0.0976, -1.0849, +0.3354, -0.0790, +0.2007, -0.1853, -0.5298, +0.0797, -0.0231, -0.7360, +0.0341, -0.2407, -0.0900, -0.2925, -0.3616, +0.1548, -0.2782, -0.0473, +0.0645, -0.1320, +0.1575, +0.0137, +0.1537, -0.3346, -0.0175, +0.1294, +0.2803, +0.2576, -0.1722, -0.4272, +0.1171, +0.0722, +0.1484, -0.6063, +0.0117, -0.1859, -0.8487, +0.4184, -0.0151, +0.1533, +0.1805, +0.0843, -0.2879, +0.1382, -0.2115, -0.0440, +0.0444, -0.0504], +[ +0.2015, -0.0965, -0.1258, +0.1679, -0.1030, -0.0350, -0.6746, -0.3363, +0.0040, -0.4968, -0.5428, +0.0732, +0.1692, -0.2251, -0.1405, -0.8176, -0.8816, -0.2601, -1.5304, +0.1403, +0.0187, +0.2748, -0.3534, -0.5089, -0.3561, +0.0367, -0.1690, -0.1544, +0.0946, -0.2731, -1.0779, -0.0782, +0.0202, +0.2626, -0.1983, -0.0035, +0.0846, +0.2907, +0.3259, -0.2063, -0.2135, -2.0981, -0.0221, +0.0993, +0.0145, +0.1018, -1.0300, +0.1958, -0.4191, -0.1791, -1.3965, -0.0060, -0.2669, +0.1638, -0.2012, +0.1843, +0.0784, +0.2943, -0.7675, +0.2927, -1.4470, +0.0775, -0.3201, -0.3827], +[ +0.0769, +0.5498, -1.0880, -0.2418, -0.2665, -0.2998, -0.1256, -0.6255, -0.3412, -1.4133, -0.0203, -0.0106, -0.3917, -0.8333, +0.4150, -0.3510, -0.5165, -0.4994, -0.7379, +0.3555, -0.0781, +0.0691, +0.6025, -0.1950, -0.5176, -1.1022, -0.2531, +0.1358, -0.7036, -0.2015, -0.3584, -1.2470, -0.1838, -0.2505, -0.1474, -0.4272, +0.2569, -0.5964, -0.9194, -0.0551, +0.3572, -0.0710, +0.1742, -0.4531, -0.3903, -0.3115, -0.1155, -0.2580, -0.7872, +0.2532, -0.1176, -0.1610, -0.7792, -0.6183, -0.4232, +0.3920, -0.2407, -0.8548, +0.3624, +0.3435, -0.8205, -0.2136, -0.2942, -0.8762], +[ -0.0060, -0.1489, -0.0067, -0.0177, +0.2215, -0.0389, -0.5227, -0.2337, -0.2741, +0.0386, -0.3261, -0.0032, -1.0200, -0.1971, -0.2788, +0.1595, -0.2238, +0.0137, -0.0144, -0.2236, -0.2323, +0.2903, +0.3488, -0.2384, +0.1007, +0.2121, +0.3509, -0.4017, +0.0860, -0.7740, +0.0739, -0.8059, -0.0612, -0.0426, +0.2213, +0.2794, -0.1782, -0.0981, +0.0738, -0.1360, +0.0495, +0.1766, -1.0368, +0.0651, -0.1478, -0.3529, +0.6294, -0.0024, +0.0441, -0.2223, +0.2321, +0.5418, -0.3990, -0.1180, +0.2173, +0.0073, +0.0535, +0.0381, +0.0572, +0.1349, +0.1543, -0.0255, -0.0671, -0.3958], +[ +0.0025, +0.2615, +0.2055, -0.3618, +0.2058, -0.0355, +0.2262, +0.1584, -0.2848, +0.3526, -0.1021, +0.4582, -0.2301, +0.8823, -0.3449, +0.7340, -0.2356, -0.1065, -0.1333, +0.1678, +0.0023, -0.5715, +0.0944, -0.2364, -0.0328, -0.1789, -0.7771, +0.0033, +0.6611, +0.1509, -0.0369, -0.1838, -0.0900, +0.0302, +0.4032, +0.3461, -0.3497, +0.3714, -0.2241, +0.3681, -0.1810, +0.1401, +0.4326, -0.3580, +0.1228, -0.5266, +0.1445, -0.1295, -0.7390, -0.0307, +0.2383, -0.3647, +0.8082, -0.2832, -0.1272, -0.6293, -0.0267, +0.0772, +0.5436, -0.4430, +0.2039, -0.0094, -0.4602, +0.3507], +[ +0.4441, -0.5284, -0.3247, -0.1185, +0.1127, +0.2549, -0.1608, +0.0508, -0.1256, +0.1456, +0.0630, -0.3331, +0.2147, -0.1859, -0.1065, -0.8297, -0.8537, -0.5747, -0.2079, -0.2383, -0.0755, +0.2487, +0.4479, +0.2179, -0.4586, -0.0045, +0.0736, +0.0240, -0.1013, +0.1411, -0.3923, +0.0215, -0.2443, -0.9218, -0.0136, +0.2523, -0.3079, +0.2825, +0.4820, -0.0487, -0.4192, +0.3460, +0.2341, -0.1544, -0.1730, +0.1748, +0.4015, -0.0670, -0.4138, -0.7546, -0.0984, -0.1398, -0.1484, +0.2143, +0.3287, +0.3576, -0.1715, -0.4426, -0.1114, +0.2873, -0.1759, -0.2131, -0.3125, +0.2399], +[ -0.3040, -0.7858, -0.0431, +0.2444, -0.4689, +0.5505, -0.0415, -0.2255, +0.4772, -0.9782, -1.3075, -0.7475, -0.2918, -0.4632, -0.4139, -0.2807, -0.9729, +0.0464, +0.2641, -0.0045, +0.2904, +0.2615, -0.4323, -0.2294, +0.4595, -0.4169, +0.2735, -0.7092, -0.8494, -0.9467, +0.0363, -1.6053, -0.0743, +0.1101, +0.2005, -0.1111, -0.2316, +0.3037, -0.0224, +0.4787, -0.1178, -0.2842, -0.1521, +0.0089, +0.0149, +0.2476, -0.3097, +0.4197, -0.0513, -0.3052, -0.1770, +0.0698, -0.0028, -0.7217, -0.0423, +0.0789, +0.0522, -0.4582, -0.0321, +0.8307, +0.2203, -0.0733, +0.3136, +0.0570], +[ +0.1303, +0.0891, -1.0181, -1.4978, +0.0734, +0.1124, +0.2199, +0.0153, +0.4390, -0.4317, -0.5141, -0.4691, +0.0737, +0.3579, -0.1853, -0.0772, -0.8077, -0.6385, -0.4633, +0.4321, +0.5496, +0.2986, -0.1555, -0.1559, +0.0699, -0.3715, -0.2052, -0.2325, +0.3984, -0.4306, -0.6361, -0.3066, -0.4227, -0.7002, -0.5833, -0.0950, -0.2275, -0.2462, -0.2574, +0.3585, -0.2933, -0.1192, +0.4343, -0.5342, +0.1994, +0.3493, -0.7433, +0.0396, -0.2139, -0.7354, -1.5901, +0.2998, +0.2103, -0.2378, -0.3848, -0.1763, +0.5698, -0.8950, -1.7041, +0.2384, -0.1701, +0.1376, +0.3842, -0.8876], +[ -0.1219, +0.3198, -0.2701, +0.1497, -0.1258, +0.3358, -0.4570, -0.4552, +0.5140, -0.1106, -0.5427, -1.0853, -0.1620, +0.1679, -0.7057, -0.5208, -1.5624, -0.6301, -0.6283, +0.0699, -0.1598, -0.1935, +0.0253, +0.1096, +0.0912, -0.0082, +0.0710, -0.9496, -0.0222, -0.3077, -0.4092, -0.1090, -0.1891, -0.0032, +0.4414, -0.4561, -1.1972, +0.4971, -0.0040, +0.0863, -1.3692, -0.1463, -0.1298, +0.3283, -0.2834, -0.0431, +0.0177, +0.0811, -0.2410, -0.0614, +0.2315, +0.3008, -0.6321, -0.8940, -1.5395, -0.6845, -0.5164, +0.5963, -0.1694, +0.0239, +0.3146, +0.5295, -0.1202, -0.2046], +[ -0.4515, -0.5445, -0.4470, +0.1876, -0.0639, -0.2497, +0.2629, +0.2056, +0.4504, +0.1000, -0.1992, -0.1178, +0.5982, +0.1020, +0.2526, -0.5141, -0.3257, +0.2873, +0.2843, +0.0204, -0.0355, +0.4963, -0.0575, -0.2666, -0.6928, -0.0279, -0.4045, +0.4385, -0.1725, +0.2043, -1.0905, +0.3458, +0.2299, -0.1574, -0.6403, +0.4463, -0.4436, -0.0591, -0.8299, -0.2485, +0.3504, -0.2333, +0.1834, +0.0245, +0.0756, -0.0047, -1.1088, -0.0788, -1.0611, -0.2504, +0.2807, +0.1821, -0.1618, +0.0871, -0.1961, -0.0566, -0.8393, -0.2867, -0.5395, -0.7387, -0.9088, +0.1558, -0.0021, +0.1817], +[ +0.2262, -0.0991, -0.7318, +0.0777, +0.0829, +0.1066, +0.0909, +0.0586, -0.1002, +0.2647, +0.3763, +0.2981, +0.2813, +0.1898, +0.2196, +0.1406, -0.2669, -0.0615, -0.4188, -0.3941, -0.2429, -0.2700, -0.6246, +0.0977, -0.0156, -0.6503, -0.3818, +0.2284, +0.2446, -0.2068, -0.0891, +0.1039, -0.5602, -0.0217, -0.0608, -0.0454, +0.0959, +0.4183, +0.2183, -0.3189, +0.1210, -0.0680, +0.1768, -0.3043, -0.2762, -0.8097, +0.4302, +0.1414, -0.6430, -0.1104, -0.3396, -0.4695, +0.4050, -0.1201, +0.0801, -0.1988, -0.0255, +0.1783, -0.0352, -0.4146, +0.1602, +0.0232, -0.4713, +0.2315], +[ -0.2409, -0.2534, +0.3787, +0.8244, +0.0585, -0.1560, +0.3867, +0.4848, +0.0786, +0.3797, -0.4736, +0.1127, -0.1765, +0.4122, -0.0028, -0.0079, +0.4908, -0.2022, +0.0382, +0.3820, +0.1218, +0.4168, +0.0748, -0.0767, +0.1911, +0.1314, -0.3224, +0.2587, +0.2849, +0.3945, +0.0604, +0.0050, -0.3590, -0.7451, -0.3942, +0.2198, +0.2039, +0.2079, -0.3846, -0.0248, -0.4721, +0.1699, -0.0122, -1.2120, +0.4807, +0.0437, -0.1432, -0.0937, +0.3850, +0.0717, -0.6115, -0.1069, -0.3580, -0.7625, -0.1524, -0.5527, +0.0189, +0.2040, +0.1220, +0.4873, -0.3443, +0.1473, +0.2942, -1.2750], +[ -0.0321, +0.0938, -0.1564, +0.0153, -0.0956, +0.0683, -0.1992, -0.8894, +0.0980, -0.0950, -0.5909, +0.1010, +0.0940, -0.7160, +0.0752, +0.5469, -0.6442, -0.0053, +0.2000, +0.3000, -0.3391, -0.1122, +0.3253, +0.1063, +0.1491, -0.0684, -0.0410, -0.3039, -0.6195, +0.2862, -0.1455, -0.8795, -0.3885, +0.0299, -0.0195, -0.1107, +0.0015, +0.4024, -0.9457, -0.4620, +0.0877, -0.2296, -0.0326, +0.2932, -0.2720, +0.4663, -0.0610, +0.1745, +0.1352, -0.5966, -0.1366, +0.2271, -0.4483, -0.4548, +0.0057, +0.2810, -0.4279, +0.0572, -0.8984, +0.1419, -0.1966, +0.0214, -0.5856, -0.4380], +[ -0.2850, -0.4454, -0.0200, +0.1379, +0.1279, +0.1286, +0.5722, -0.0797, +0.1775, +0.0054, +0.3466, -1.1324, +0.0630, -0.0436, -0.9319, +0.0692, +0.1615, -0.1780, +0.1783, +0.0662, +0.2824, -0.0309, -0.1921, +0.2110, -0.2472, +0.0026, +0.3590, -0.1833, -0.0167, -0.6163, -0.1092, +0.2120, +0.4458, +0.0250, -0.8406, -0.0331, +0.3448, -0.5886, -0.0235, +0.0602, +0.3971, +0.4033, +0.3516, -0.1472, -0.2371, -0.8047, +0.1336, -0.1083, -0.5510, +0.3792, -0.4230, -0.1216, -0.7740, -0.4497, -0.2848, -0.3698, -0.0160, +0.5724, -0.4150, +0.3254, -0.2344, +0.4417, +0.0460, -0.0463], +[ -0.1091, -0.0947, -0.3343, -0.8910, -0.0137, +0.1534, -0.3422, -0.5111, +0.0206, +0.2841, +0.2981, +0.3313, +0.2598, -0.0501, -0.5783, +0.3304, -0.2725, +0.1159, -0.2722, -0.5441, +0.2231, -0.0244, +0.3478, +0.1623, -0.2798, -0.0695, +0.3506, -0.1275, +0.2209, -0.3317, -0.2965, +0.4564, -0.2473, -0.3701, +0.4166, -0.1918, +0.0488, +0.5048, +0.4159, -0.1447, +0.0998, +0.0424, +0.0734, -0.3713, +0.3236, -0.4136, -0.2221, +0.1728, -0.6407, +0.2623, -0.4332, +0.4175, +0.2960, -0.3424, -0.5264, -0.5679, +0.2437, -0.6032, -0.5213, -0.0424, -0.5911, -0.0611, -0.1877, +0.2423], +[ -0.0360, -0.4567, -0.1493, -0.0765, -0.2676, +0.1338, +0.1486, +0.3867, +0.2451, -0.2054, -0.1088, -1.5518, +0.2254, +0.0175, -0.1154, -0.3777, -0.6173, -0.8897, -0.1523, +0.1594, -0.1772, -0.3349, -0.1155, -1.1580, +0.2605, +0.0570, +0.1894, -0.0755, +0.2382, -0.1726, -0.0400, +0.4391, +0.2241, +0.0551, -0.1106, +0.0817, +0.0128, -0.1330, -0.0162, -0.3872, -0.2613, -0.2073, +0.0483, +0.0026, -0.1008, -0.0389, -0.6723, -0.0657, +0.1532, -0.0627, -0.2517, -0.1961, -0.0313, -0.2694, +0.1040, +0.2662, -0.3370, +0.2086, -0.2202, +0.2812, -0.9275, -0.0331, +0.1384, -0.4651], +[ -0.0323, +0.5816, +0.2069, +0.1766, +0.8736, -0.1321, -0.5366, +0.4362, -0.9437, +0.5586, +0.8281, +0.1417, +0.4988, +0.2451, -0.1327, +0.3295, +0.1639, +0.2168, -0.5869, -0.9139, +0.3259, -1.2364, +0.0104, -0.4723, -0.2869, -0.0693, -0.1767, +0.0528, +0.3629, +0.0766, -0.2554, +0.7631, +0.0007, +0.3657, +0.2479, +0.0949, -0.1070, +0.2789, -0.6009, +0.3627, -0.1986, +0.3212, +0.5274, +0.2307, +0.1055, -0.8864, +0.4670, +0.0430, -0.2485, +0.0445, -0.0792, +0.0362, -0.7101, -0.1554, +0.4530, -0.5127, -1.0097, -0.4877, +0.1803, +0.1016, +0.2774, -0.7071, -0.2316, +0.1476], +[ +0.0676, -0.2920, +0.4224, -0.1409, +0.0856, -0.0969, +0.2461, -0.7079, -0.4348, -0.8510, -0.2213, -0.0541, -0.0461, -0.2451, +0.2312, -0.0496, +0.3432, -0.1916, +0.1832, +0.4089, +0.1642, -0.0928, +0.1869, +0.2472, -0.9379, -0.0356, -0.2276, -0.1867, -0.1108, +0.3021, -0.7620, -0.0141, +0.3072, -0.0326, -0.1854, -0.0535, +0.3489, -0.3910, -0.8369, +0.5177, +0.3154, +0.6535, -0.4463, -0.4381, -0.2189, +0.2761, +0.1655, +0.1010, -0.0769, -0.5381, -0.4710, +0.1980, -0.0818, -0.3762, +0.0076, +0.1753, -0.0984, -0.5887, -0.0019, -0.4983, +0.2914, -0.7693, +0.1656, -0.6165], +[ +0.2126, -0.3435, -0.2802, +0.0979, -0.9373, -0.7181, +0.2063, -0.2545, +0.3562, +0.0894, +0.5294, -0.3816, +0.5833, -0.2488, -0.4786, +0.2132, -0.3223, +0.2189, +0.2034, +0.0680, +0.3741, -0.2337, -0.2645, -0.2871, -0.3461, +0.3580, -0.7551, -0.4948, -0.4941, -0.1607, -0.0062, +0.3991, +0.5354, -0.1153, +0.4384, +0.2346, +0.0923, +0.6214, +0.2485, -0.2547, -0.2755, +0.3398, +0.2522, +0.0409, +0.1309, -1.1476, +0.4321, -1.6605, -0.6035, -0.5415, -0.0799, -0.1754, -0.5326, -0.1910, +0.1372, -0.4079, -0.3110, +0.0060, +0.0015, -0.7618, +0.5021, -0.3054, -0.1895, +0.4327], +[ +0.1316, +0.1998, +0.0677, +0.2773, -0.2720, -0.8087, -0.0022, -0.2622, -1.0104, -0.4908, +0.4249, +0.0597, -0.5553, -0.4698, -0.0096, -0.1893, +0.1355, -0.6921, +0.0211, +0.3253, -0.0769, +0.0565, -0.6166, -0.7295, +0.0477, -0.0101, -0.5214, -0.6498, -0.7418, -0.8979, +0.0792, -0.1958, -0.5255, +0.1953, -0.6446, -0.0748, -0.3183, +0.1582, -0.3667, +0.2170, +0.2665, -0.0075, +0.0740, +0.2708, -0.1289, +0.0462, -0.6262, -0.4190, -0.1797, +0.3994, -0.8803, -0.4579, -0.3235, +0.2903, -1.3589, -0.5549, -0.6767, +0.0308, +0.0491, -0.3117, +0.2053, +0.1075, +0.2042, -0.4537], +[ -0.9114, +0.3823, -0.2137, -0.0383, +0.0891, -0.5047, -0.3632, -0.0115, -0.3604, +0.2107, -0.4123, -0.1508, -0.3897, -0.1566, -0.3869, +0.0458, -0.3594, -0.6799, -1.0821, -0.2322, +0.1464, +0.2626, -0.1674, -0.5577, +0.0910, -0.1279, +0.4003, -0.1568, +0.0907, -0.1528, -0.0554, +0.4973, +0.3610, +0.3540, +0.3717, -0.2353, +0.1743, +0.2026, +0.8891, -0.5409, -0.3690, +0.1897, -1.1785, -0.0244, +0.0283, +0.0709, -0.9182, -0.1485, +0.3410, -0.3562, +0.1126, +0.3459, +0.0190, +0.4073, -0.0685, -0.0834, +0.1817, +0.3957, +0.3428, +0.2351, -0.2072, -0.2002, +0.0579, +0.2585], +[ +0.0476, -0.7260, -0.2175, -0.8305, +0.3673, -0.1075, -0.7324, +0.1022, -0.1264, +0.0679, -0.2494, +0.2647, -0.7667, +0.1632, -0.1487, -0.1800, -0.4566, -0.4716, +0.3124, +0.4227, -0.2557, +0.1477, -0.0946, +0.0803, +0.0136, +0.0699, -0.6304, +0.5944, +0.1812, -0.0072, -1.2447, +0.7503, -0.7340, -0.6389, -0.0202, +0.1716, -0.0661, -0.7511, -0.6451, +0.4344, +0.2398, +0.9628, -0.2201, +0.1901, +0.6633, -0.0529, -0.3787, +0.3837, -0.4481, +0.1792, -0.2828, +0.7377, +0.6304, -0.9296, +0.1690, +0.5375, +0.3884, -0.3548, +0.0788, -0.7348, +0.2273, -0.5028, -0.4739, +0.1150], +[ +0.1521, -0.0100, -0.1015, +0.1975, -0.5804, -0.0891, +0.4443, -0.0275, -0.3218, -0.3674, -1.0237, -0.9589, +0.1408, +0.1039, -0.4158, -0.3465, -0.2163, +0.3031, -0.0905, -1.1000, +0.0028, +0.1196, +0.1130, +0.4777, -0.0803, -0.3295, -1.5273, -0.4059, -0.2642, -0.6425, +0.1149, -0.0094, +0.1067, -0.6440, -0.0806, +0.2513, +0.2070, -0.0682, -0.0854, -0.4654, +0.0119, -0.2918, +0.0766, -0.0766, +0.0621, -0.5751, -0.7636, -0.4295, -0.1413, +0.0667, -0.0193, +0.0210, +0.1867, +0.1727, -0.0391, -0.5251, -0.0746, +0.0615, -0.0581, -0.4284, -0.2977, -0.0883, -0.1302, +0.1829], +[ -0.1256, +0.0829, -0.5799, -1.0012, +0.3669, +0.2700, +0.2691, -0.2078, +0.6662, +0.4342, -0.7014, +0.1332, +0.0736, +0.5960, +0.1266, +0.4412, -0.3859, +0.0702, -0.7489, -0.1285, +0.1080, -0.0248, -0.0614, -0.2922, -0.1791, +0.2619, -0.2986, +0.1326, -0.1112, -0.4128, -0.3499, -0.2148, +0.0886, -0.3239, +0.1767, +0.2782, -0.1033, -0.1350, +0.0324, -0.2402, +0.2440, +0.2858, +0.0111, -0.6319, +0.3694, -0.5569, +0.0758, -0.5506, -0.8423, -0.6073, -0.0642, +0.0559, +0.3943, -0.1092, -0.3964, +0.0705, -0.3753, +0.2106, -0.0118, -0.2122, -0.0904, +0.3428, -0.2614, -0.0007], +[ +0.3415, +0.4062, -0.4667, +0.2757, -0.5389, -0.1429, -0.0005, +0.1749, -0.1646, -0.9262, +0.1978, -0.3748, +0.3384, +0.1757, -0.0899, +0.1567, +0.3043, -0.0828, -0.7369, +0.2833, +0.2871, -0.0150, -0.0895, +0.2181, -0.3692, -0.2344, -0.3813, -0.4984, +0.2426, +0.3936, -0.3995, -0.0257, -0.2650, -0.5329, -0.6254, +0.0492, -0.0428, +0.3595, -0.1242, -0.3341, -0.1174, +0.2283, +0.3051, -0.0794, -0.0715, +0.2324, +0.1567, -0.4121, +0.0756, -0.6483, -0.7294, -0.0235, -0.5082, -0.1506, -0.0962, +0.1123, +0.1990, -0.5521, -0.8837, +0.2634, -0.6452, +0.0470, +0.0747, +0.0456], +[ -1.2951, +0.1232, -0.8490, +0.2284, +0.3593, -0.9968, +0.1914, +0.3673, +0.1287, +0.0485, -0.6153, -0.6149, -0.2634, -0.7023, +0.2006, +0.2657, -0.0201, -0.6250, -0.1045, -0.5447, -0.2495, -0.0712, -0.2281, -0.1573, -0.0079, -0.4966, -0.5428, -1.5871, -0.0332, -0.3754, +0.0438, -0.2096, -0.0341, -0.2111, -0.1953, -0.1146, +0.0260, -0.0840, -0.9739, +0.0693, +0.1628, -0.6525, -0.9299, +0.1602, -0.0673, -1.1183, -1.1446, -0.0575, +0.0123, +0.0463, +0.0683, +0.0192, -0.7718, -0.1055, -0.1894, +0.3897, -0.8589, +0.2829, +0.0774, -0.1157, +0.0772, +0.0168, +0.3460, +0.2657], +[ -0.3160, +0.3029, +0.2132, -0.2024, -0.0573, +0.2263, +0.3686, -0.2059, +0.2531, -0.4922, -0.4110, -0.0881, -0.0267, -0.3069, +0.2496, -0.2458, -0.0348, -0.4285, +0.0564, +0.5539, +0.3510, +0.0755, +0.2656, +0.5299, -0.0647, +0.0431, +0.3277, +0.0192, -0.3490, +0.2500, +0.2519, +0.2055, +0.2462, -0.2927, +0.2902, -0.1451, -0.0611, -0.3940, -0.6985, +0.0295, -0.1272, -0.0507, +0.0030, -0.0484, -0.4220, +0.3042, -0.1346, -0.4380, +0.0247, -0.2205, -0.1549, -0.7229, -0.1487, -0.1124, +0.2539, +0.1274, +0.6169, +0.3346, -0.1577, +0.4318, +0.1469, -0.0689, +0.0982, -0.3816], +[ +0.4151, +0.1020, -0.3973, -0.1940, -0.0893, -0.5294, -0.0714, +0.1221, +0.2081, -0.1500, +0.0839, +0.0651, +0.1602, +0.1521, +0.3755, +0.4533, -0.0749, -0.1498, +0.0048, +0.2987, +0.3013, -0.2483, -0.8249, +0.1123, -0.2657, -0.0776, -0.8314, -0.0567, +0.4846, +0.1280, -0.4166, +0.2149, -0.5095, -0.2219, -0.6757, +0.5484, +0.2117, +0.1901, -0.3840, -0.0860, -0.0527, -0.8445, +0.1747, -0.7124, +0.3261, -0.0172, -0.4794, +0.2829, -0.9583, -0.3825, -0.2641, -0.1610, +0.0921, +0.0395, -0.7542, -0.4747, +0.0891, -0.5037, +0.4109, +0.2718, -0.1609, +0.3680, -0.2975, +0.0092], +[ -0.2679, -0.2103, +0.1004, +0.2703, +0.0541, +0.4900, +0.1016, +0.0008, -0.0075, +0.0959, -0.2459, -0.4452, +0.1211, -0.0521, -0.5468, +0.2349, -0.0690, +0.0936, -0.3218, -0.0093, +0.0644, +0.4158, +0.1109, +0.2373, +0.3008, -0.2570, +0.2886, -0.1720, +0.3146, -0.6991, +0.2565, -0.1762, -0.0239, -0.6296, -0.8216, -0.8141, +0.0871, -0.5981, +0.2595, +0.2109, -0.3252, -0.2758, +0.2662, -0.1662, +0.0087, -0.3265, +0.2910, -0.3716, +0.3225, +0.0907, +0.0550, +0.4069, +0.3731, -0.0367, -0.0844, -0.7320, +0.3318, +0.0839, +0.1493, -0.1054, -0.4476, +0.0671, +0.3858, -0.3728], +[ -0.0163, +0.4856, -0.1412, -0.0100, -0.2343, +0.1223, -0.5244, -0.4046, +0.1738, -0.0262, +0.0922, -0.6767, +0.2672, +0.1770, -0.4969, +0.3919, -0.1103, -0.3749, +0.2580, -0.0209, -0.2500, -0.1089, +0.0587, +0.4735, +0.2116, +0.0299, +0.1709, +0.0804, +0.8460, +0.1637, +0.1775, -0.3955, +0.2403, -0.1843, +0.0579, -0.3362, +0.1129, +0.2148, -0.0079, -0.0662, -0.1286, +0.1830, +0.0437, +0.0167, -0.0824, -0.1148, +0.2380, -0.3372, -0.0684, -0.3226, +0.2914, +0.0994, -0.1599, +0.0130, +0.1584, +0.0975, +0.2723, +0.1877, -0.4828, +0.1463, -0.2304, +0.3497, +0.0522, -0.0404], +[ +0.3846, +0.3960, +0.0721, -0.5932, -0.6720, +0.3994, -1.1131, +0.0500, -0.0433, -0.5014, -0.2795, +0.0226, -0.0276, -0.3389, -0.1971, +0.3228, -0.3439, +0.5770, +0.5260, -0.2861, +0.3810, -0.0225, +0.3133, +0.1716, +0.0778, -0.1298, +0.0765, -0.1700, +0.5689, +0.2767, -0.5815, +0.2572, -0.7600, -0.1481, +0.2901, -0.4648, +0.1381, +0.2972, -0.4802, -0.6701, -0.6240, -0.0784, -0.0330, -0.5339, +0.1989, +0.2422, +0.0886, -0.1819, -0.2638, +0.0189, -0.1023, +0.3559, +0.2563, +0.0272, -0.1343, +0.2034, +0.6096, -0.2862, -0.2925, +0.1162, -0.5740, -0.4293, -0.1544, -0.3657], +[ -0.1666, -0.5683, +0.3239, +0.0008, -0.0790, +0.0108, +0.1210, +0.2313, -0.0242, -0.3114, +0.1546, -0.0983, -0.1095, -0.5754, +0.1360, -0.7269, +0.0714, -0.9205, +0.2401, +0.0983, +0.1060, +0.0410, +0.2889, -0.7942, +0.3511, +0.1338, +0.1118, +0.1873, -0.4490, +0.2648, -0.1163, +0.1410, -0.0005, -0.0627, +0.2816, -0.0261, +0.0111, -0.3929, -0.3200, +0.3405, +0.1021, -0.0294, +0.2000, -0.2919, -0.2395, +0.1867, +0.1548, -0.0702, +0.0021, +0.5599, -0.2662, -0.4859, -0.1809, +0.2777, +0.2588, +0.1977, +0.0975, -0.3367, -0.1211, +0.1057, -0.0247, +0.4044, +0.4802, -0.4940], +[ -0.3074, +0.2169, +0.0655, -0.3575, +0.2765, -1.0735, +0.3228, -0.7085, -0.1075, -0.1250, +0.1302, -0.2700, -0.6832, -0.0223, -0.5448, +0.3824, -0.5548, +0.2615, -0.4700, +1.0847, -0.0443, -0.9753, +0.1278, +1.0526, +0.7114, +0.2395, +0.1612, -0.3276, +0.3154, +0.4751, -0.3890, -0.2353, +0.6575, -0.1306, -0.4566, -0.3303, +0.6051, -0.1868, -0.9390, -0.3405, +0.3341, +0.5198, +0.0939, -0.6396, -0.0410, -0.0942, -0.4784, -0.6260, -0.0983, -0.3750, -0.1402, -0.0351, +0.0890, -0.5765, +0.3816, -0.5375, +0.6580, +0.0448, -0.3544, +0.1669, +0.0808, -0.4698, +0.0085, +0.5292], +[ -0.1747, -0.5134, +0.1257, +0.6530, +0.3251, +0.0013, +0.8608, -0.6414, +0.3327, -0.3861, +0.5066, -0.8033, +0.1957, -0.2380, -0.1649, -0.0760, -0.3093, -0.3283, +0.0661, -0.1066, +0.3787, -0.3254, +0.5536, -0.4949, +0.1560, +0.1118, +0.1465, +0.3107, +0.5213, +0.1194, +0.2602, +0.0551, -0.0612, +0.1378, -0.1037, +0.5086, -0.3383, -0.2024, -0.1786, -0.2193, -0.3955, -0.0600, +0.4502, -0.0450, -0.3765, -0.9599, +0.2312, +0.0751, -0.1329, +0.1573, -0.2891, -0.0944, -0.4619, +0.3256, +0.2486, -0.2238, +0.2054, -0.1677, -1.2201, +0.2986, +0.5681, +0.0700, -0.0916, +0.3844], +[ +0.5860, +0.1473, -0.3536, +0.1924, -0.1819, +0.3126, -0.3094, +0.4127, -0.3403, -0.3101, +0.4899, +0.3310, +0.3136, -0.1343, +0.1557, +0.0007, +0.0431, -0.0531, -0.3300, +0.3820, -0.3771, -0.6818, -0.4023, -0.1221, -0.0995, +0.1512, -0.2698, -0.0544, +0.0406, +0.0104, +0.2382, +0.0113, +0.5360, +0.3837, +0.0947, +0.4839, +0.0278, -0.4629, -0.1912, -0.7728, -0.0162, +0.5847, +0.1752, +0.1536, -0.3113, -0.4624, -0.2032, -0.2410, -0.0095, -0.3411, -0.2375, -0.3024, -0.0689, +0.0134, -0.2987, +0.2678, +0.1053, +0.3568, -0.3776, -0.0956, +0.1105, +0.1802, +0.3608, +0.2763], +[ -0.0126, -0.1275, +0.1721, -0.1653, +0.0189, -0.0586, +0.1487, +0.2661, -0.0924, -0.1733, +0.0411, +0.1124, -0.0426, -0.0405, +0.0713, -0.1322, +0.1053, +0.2013, +0.2442, -0.4979, +0.3654, -0.2099, +0.0049, -0.6743, -0.1063, -0.1213, +0.2036, +0.2109, -0.2639, +0.1839, +0.3105, -0.0961, +0.3935, +0.1186, -0.0959, +0.5348, -0.3605, -0.6159, -0.3268, +0.1327, +0.5812, -0.4447, -1.8573, +0.1350, -0.0151, +0.1569, +0.0348, +0.2221, -0.6421, -0.2810, +0.1918, -0.1290, +0.0505, +0.0517, +0.0313, -0.0781, +0.1746, +0.0713, +0.2894, -1.0579, -0.1106, +0.3800, -0.6895, -1.1236] +]) + +weights_dense2_b = np.array([ +0.1534, -0.0356, +0.0392, +0.0272, +0.0733, +0.2141, -0.0432, -0.0479, -0.1264, +0.1456, +0.2103, -0.0233, +0.2320, -0.0525, +0.1808, +0.1565, -0.0347, -0.0719, -0.2635, -0.1948, -0.1301, +0.0453, -0.0722, +0.0875, +0.3780, +0.1023, +0.1012, +0.3150, +0.1801, +0.1941, +0.2014, +0.1381, +0.1411, -0.0371, -0.0987, +0.1987, +0.1015, -0.2282, +0.0072, -0.0800, +0.0323, +0.1198, +0.2822, +0.0090, -0.1950, +0.0864, +0.2694, -0.0746, +0.2193, +0.1658, +0.0712, -0.1185, +0.1351, +0.1331, +0.3542, +0.1543, +0.1557, -0.0575, +0.0659, -0.0090, -0.1502, +0.0665, +0.1853, -0.0413]) + +weights_final_w = np.array([ +[ +0.5409, +0.1061, +0.1214, +0.0961, -0.0304, +0.2028], +[ +0.3719, +0.0252, -0.1683, +0.1448, +0.0874, -0.0254], +[ -0.1174, +0.2622, -0.1514, -0.2936, -0.1060, -0.5701], +[ +0.0623, +0.0379, -0.0004, -0.3542, -0.0684, -0.2670], +[ +0.0487, +0.0638, -0.5099, -0.1448, -0.0639, +0.1894], +[ -0.3975, -0.1887, +0.2938, -0.0159, +0.1679, +0.5848], +[ +0.1560, -0.0012, -0.0360, -0.2195, -0.3875, +0.0259], +[ -0.0942, -0.0268, -0.1722, -0.0594, -0.0527, +0.5528], +[ +0.1087, -0.3823, -0.1868, -0.0919, +0.2626, +0.2375], +[ +0.0054, -0.1016, -0.3405, +0.4056, +0.0899, +0.0129], +[ -0.0055, +0.1361, +0.2055, +0.6780, +0.0250, -0.0961], +[ +0.0586, +0.7423, -0.0014, +0.1401, +0.4564, +0.5103], +[ -0.1461, +0.1129, +0.2607, +0.3828, +0.2286, +0.0225], +[ -0.0789, +0.0790, -0.1576, +0.3564, +0.4390, +0.2671], +[ +0.2657, +0.0888, -0.2312, -0.1819, -0.1583, -0.1158], +[ -0.0429, +0.1533, -0.0649, +0.1670, +0.5324, +0.2681], +[ +0.1750, +0.0582, -0.1742, +0.7826, -0.0295, -0.0646], +[ +0.1563, +0.0241, -0.4052, +0.5419, +0.0212, -0.1529], +[ +0.1667, -0.0708, +0.0750, +0.0286, +0.2312, -0.2932], +[ -0.0755, +0.3814, -0.3422, -0.3412, +0.0820, -0.6145], +[ -0.0485, -0.1721, -0.1366, -0.0866, +0.0972, +0.4096], +[ -0.0026, -0.3586, -0.0705, -0.0509, +0.0127, +0.3078], +[ +0.1658, -0.2918, -0.4419, -0.1099, -0.1852, -0.0318], +[ +0.3883, -0.1925, -0.3671, -0.3079, -0.1405, -0.6695], +[ -0.3967, -0.1212, +0.2062, -0.4248, +0.2445, +0.5061], +[ +0.2296, +0.0054, +0.1389, +0.1225, -0.2944, -0.3264], +[ -0.3366, -0.1053, +0.1004, +0.0522, -0.2441, -0.1599], +[ +0.3214, +0.3230, -0.3416, +0.1735, -0.0354, +0.0172], +[ -0.0715, -0.0971, +0.2212, +0.0870, +0.4960, +0.0409], +[ +0.6941, +0.1916, +0.4534, -0.3305, -0.1206, +0.2755], +[ -0.0466, +0.2676, -0.2066, -0.2910, +0.0603, +0.1708], +[ +0.3716, +0.1599, -0.1473, +0.0362, -0.0572, +0.4125], +[ +0.0225, -0.1431, +0.3085, -0.1022, -0.3053, -0.3167], +[ +0.1484, +0.3096, +0.2186, -0.2676, +0.2821, -0.0416], +[ +0.2600, -0.1355, +0.1571, -0.4409, +0.1009, +0.1011], +[ +0.2334, +0.3423, -0.0794, +0.0448, -0.0112, -0.0245], +[ -0.3402, +0.1981, -0.0945, +0.1727, -0.0363, -0.1486], +[ -0.4074, -0.1319, +0.0434, +0.4359, -0.2658, -0.3302], +[ +0.2756, -0.2130, -0.2856, -0.1436, -0.4224, +0.1142], +[ -0.1194, +0.2529, -0.2741, -0.0691, -0.2947, -0.0033], +[ -0.0449, +0.4437, -0.0389, +0.1377, +0.1102, -0.1049], +[ +0.4368, +0.1699, +0.3433, -0.4160, -0.3043, +0.1180], +[ -0.1328, -0.6681, +0.4017, +0.3457, +0.1843, -0.0134], +[ +0.0630, +0.2032, +0.2331, -0.1384, -0.1024, +0.3183], +[ +0.1946, +0.1460, -0.1598, -0.2830, +0.2411, +0.3073], +[ +0.4296, -0.2071, +0.3769, +0.0840, -0.0062, -0.1579], +[ -0.0790, -0.1186, +0.0962, +0.4871, -0.2901, +0.6272], +[ -0.2573, +0.3325, +0.1097, -0.2340, -0.0787, +0.1208], +[ -0.4469, -0.3637, -0.1740, -0.4408, +0.0512, +0.5575], +[ +0.1426, -0.3975, -0.0685, -0.0452, -0.4517, +0.4320], +[ -0.5925, +0.3324, -0.1968, -0.2537, +0.6491, -0.2922], +[ -0.2201, -0.3118, -0.3722, +0.0216, +0.1670, -0.1343], +[ +0.0638, -0.2374, -0.1480, +0.4090, +0.2347, +0.1456], +[ -0.0656, +0.1516, -0.3281, -0.2661, +0.0645, +0.0550], +[ +0.3725, +0.2281, +0.3031, +0.0774, -0.3138, +0.0967], +[ +0.3016, +0.0322, +0.0556, -0.0571, -0.1177, -0.2442], +[ -0.2769, -0.5119, -0.0336, -0.1588, +0.0503, -0.2331], +[ +0.1518, +0.4363, +0.0093, -0.3960, -0.1347, +0.2931], +[ +0.1897, -0.0655, +0.1977, +0.4321, +0.6998, -0.0863], +[ +0.0391, -0.0305, +0.3576, -0.4996, -0.0640, -0.0039], +[ +0.2922, +0.3815, +0.2834, +0.1990, -0.0568, +0.2077], +[ -0.5371, +0.2796, +0.2952, +0.1182, +0.0523, -0.2151], +[ -0.5111, +0.2231, -0.1034, +0.0479, -0.0543, +0.0605], +[ +0.0822, -0.4530, -0.0345, +0.1621, -0.2487, +0.1516] +]) + +weights_final_b = np.array([ +0.1367, +0.1107, -0.0148, +0.1158, -0.0820, +0.3047]) + +if __name__=="__main__": + demo_run() diff --git a/examples/pybullet/gym/enjoy_TF_HopperBulletEnv_v0_2017may.py b/examples/pybullet/gym/enjoy_TF_HopperBulletEnv_v0_2017may.py new file mode 100644 index 000000000..fef4a281a --- /dev/null +++ b/examples/pybullet/gym/enjoy_TF_HopperBulletEnv_v0_2017may.py @@ -0,0 +1,297 @@ +import gym +import numpy as np +import pybullet as p +import envs +import time + +def relu(x): + return np.maximum(x, 0) + +class SmallReactivePolicy: + """ + Simple multi-layer perceptron policy, no internal state + """ + def __init__(self, observation_space, action_space): + assert weights_dense1_w.shape == (observation_space.shape[0], 128) + assert weights_dense2_w.shape == (128, 64) + assert weights_final_w.shape == (64, action_space.shape[0]) + + def act(self, ob): + x = ob + x = relu(np.dot(x, weights_dense1_w) + weights_dense1_b) + x = relu(np.dot(x, weights_dense2_w) + weights_dense2_b) + x = np.dot(x, weights_final_w) + weights_final_b + return x + +def demo_run(): + env = gym.make("HopperBulletEnv-v0") + + cid = p.connect(p.GUI) + p.configureDebugVisualizer(p.COV_ENABLE_GUI,0) + pi = SmallReactivePolicy(env.observation_space, env.action_space) + p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,0) + env.reset() + p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,1) + for i in range (p.getNumBodies()): + print(p.getBodyInfo(i)) + if (p.getBodyInfo(i)[1].decode() == "hopper"): + torsoId=i + print("found torso") + print(p.getNumJoints(torsoId)) + for j in range (p.getNumJoints(torsoId)): + print(p.getJointInfo(torsoId,j))#LinkState(torsoId,j)) + while 1: + frame = 0 + score = 0 + restart_delay = 0 + #disable rendering during reset, makes loading much faster + p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,0) + obs = env.reset() + p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,1) + + while 1: + time.sleep(0.001) + a = pi.act(obs) + obs, r, done, _ = env.step(a) + score += r + frame += 1 + distance=5 + yaw = 0 + humanPos = p.getLinkState(torsoId,4)[0] + p.resetDebugVisualizerCamera(distance,yaw,-20,humanPos); + + still_open = env.render("human") + if still_open==False: + return + if not done: continue + if restart_delay==0: + print("score=%0.2f in %i frames" % (score, frame)) + restart_delay = 60*2 # 2 sec at 60 fps + else: + restart_delay -= 1 + if restart_delay==0: break + +weights_dense1_w = np.array([ +[ +0.6734, +1.1364, +0.6117, +0.5185, +0.5099, -0.2038, -0.0045, -0.1448, +0.5081, +1.1685, -0.7904, -0.4623, +0.0027, -0.0473, -0.1144, +0.5095, -0.1913, +0.2021, +0.3485, +0.1104, -0.4992, +0.5207, -0.1013, -0.6947, +0.1624, +0.3533, -0.2485, -0.0012, +0.1674, +0.1253, +1.5485, +0.3576, +0.8236, +0.7361, +0.6604, -0.0834, +0.1212, -0.8404, -0.8337, +0.3709, -0.4218, -0.1011, -1.1418, -0.0554, +0.6676, +0.4739, -0.2105, +0.3187, -0.4321, -0.7018, +0.1845, +0.2525, +0.0205, +0.9391, +0.6123, +0.6868, +0.5116, +0.3483, +0.1148, +0.6747, -0.1590, +0.1879, +0.4836, +0.1997, +0.5105, -0.2695, +0.0645, +0.5566, +0.0502, +0.2292, -0.4234, -0.3778, -0.7639, -0.6084, -0.0375, -0.4799, +0.6465, -0.4097, +0.1091, -0.0681, -0.1813, +0.3625, +0.6067, +0.1837, +0.1600, -0.1706, +0.0531, -0.3710, +0.1320, +0.5035, +0.1106, +0.9955, -0.2657, +0.6051, -0.2525, -0.9118, -0.6031, +0.2025, -0.2774, +0.3985, -0.0809, +0.3601, -0.0410, -0.5067, +0.4987, +0.4126, -0.1393, -0.6596, +0.8182, -0.2352, -0.9337, +0.1438, +0.3871, -0.1844, -0.4010, -0.3338, +0.1597, +0.2381, -0.4403, +0.5105, +1.0354, -0.1503, +0.2731, +0.6555, +0.2048, +0.4932, -0.0067, +0.0413], +[ -0.0031, -0.2183, +0.2275, -0.4836, +0.1347, +0.3581, +0.0921, +0.1900, -0.1721, +0.0150, -0.2146, +0.5346, +0.2407, -0.0791, +0.5115, -0.0763, +0.2025, +0.2792, +0.4087, +0.2082, +0.0086, -0.2742, +0.3703, +0.4297, -0.3141, -0.3896, +0.4101, -0.3967, -0.2173, -0.0532, +0.2521, +0.3938, -0.3727, +0.6136, +0.0902, -0.4617, -0.3266, -0.2273, +0.0031, +0.4605, +0.1221, +0.3603, -0.1018, +0.1839, +0.3198, -0.1404, -0.1751, -0.1030, -0.5847, +0.2526, -0.1280, +0.1644, +0.2988, -0.1793, -0.2120, +0.3398, -0.4582, +0.0758, -0.2848, -0.1537, -0.2718, -0.2207, +0.0109, +0.1374, -0.0281, -0.0494, -0.0093, +0.0098, +0.2691, +0.1589, +0.2483, +0.1394, +0.2531, +0.3884, +0.0740, -0.4444, +0.1441, +0.0768, +0.2154, +0.4015, -0.2109, -0.0985, -0.1066, -0.0167, -0.0204, -0.2345, +0.3131, +0.1026, +0.1873, +0.2644, +0.2253, -0.0173, +0.1014, +0.0781, +0.0455, -0.0489, -0.3541, -0.1257, -0.1248, +0.4402, -0.0682, -0.3045, +0.1751, +0.0397, -0.3392, -0.2758, +0.1542, -0.0460, -0.0622, +0.2255, +0.2442, +0.2070, +0.3175, -0.0913, -0.2772, +0.7036, -0.0876, +0.0907, +0.3794, +0.4784, -0.5111, +0.0982, -0.0145, +0.0397, -0.3429, -0.2727, -0.1384, +0.0512], +[ +0.2192, +0.0688, -0.1092, +0.1436, -0.2598, -0.0012, -0.2220, -0.2450, -0.0783, -0.0078, +0.3065, +0.1604, -0.0593, -0.0759, -0.4101, -0.1819, +0.4160, +0.0141, +0.0059, -0.2494, -0.0616, -0.3100, -0.3231, -0.3935, +0.1965, -0.0352, -0.0119, +0.3883, -0.5905, -0.0536, -0.0617, -0.2884, +0.1134, +0.1539, +0.2002, -0.3158, -0.5476, -0.4131, -0.1966, +0.1083, -0.3329, +0.1219, +0.2977, -0.7132, -0.1963, -0.2359, -0.4734, +0.0130, -0.1034, -0.1376, -0.1824, +0.1999, -0.3775, -0.0697, +0.1875, -0.0673, -0.0673, -0.0555, -0.3243, +0.2020, +0.1416, +0.1995, -0.1931, -0.6125, -0.3465, +0.0640, +0.3529, -0.4684, +0.2335, -0.0449, -0.1216, +0.1921, +0.0636, -0.0420, +0.1371, -0.1246, -0.2963, +0.0264, +0.3962, -0.3106, -0.2107, -0.2983, +0.0386, -0.0458, -0.3277, -0.1686, -0.3064, +0.2433, +0.3454, +0.0046, +0.0885, -0.2479, +0.2886, -0.0804, +0.0110, -0.1369, -0.1210, +0.1901, +0.0001, -0.1155, +0.2887, -0.0943, -0.1167, +0.1746, +0.0379, +0.0964, -0.2615, -0.0209, -0.0680, +0.0031, -0.0905, -0.0618, -0.5630, -0.0664, -0.1976, -0.2367, -0.2360, -0.2243, +0.2448, +0.2446, -0.0012, -0.6920, -0.0880, -0.4630, -0.5512, +0.0312, +0.1522, -0.1278], +[ -0.2378, +0.2783, +0.0848, -0.3973, -0.5359, +0.2541, +0.1616, +0.1856, +0.6054, +0.0894, +0.2599, -0.0082, -0.5433, -0.3567, -0.1134, -0.2706, -0.9177, +0.1949, +0.4099, -0.3198, +0.3856, -0.0285, -0.0692, +0.0882, -0.1052, -0.0122, -0.0271, -0.4122, -0.0921, -0.2014, +0.0314, -0.0638, -0.0986, +0.1912, +0.6157, -0.0856, +0.0450, +0.3492, -0.0958, -0.1261, +0.1242, +0.0930, +0.1372, -0.1914, +0.4377, +0.0586, +0.2271, -0.1985, -0.1012, -0.2074, +0.2934, -0.2271, -0.4235, -0.0077, -0.2304, -1.1012, -0.1832, -0.1528, -0.4307, -0.4059, -0.4289, +0.1290, -0.1688, -0.0446, +0.2036, -0.5397, -0.3280, +0.3672, -0.3012, -0.1896, +0.0923, +0.1472, -0.0703, -0.0328, -0.1597, -0.3102, -0.4221, +0.3261, +0.4840, +0.0083, +0.2617, -0.2548, -0.5314, -0.4192, +0.6303, +0.2605, -0.6675, -0.0837, -0.8402, -0.4546, +0.2169, +0.0480, +0.2543, +0.0004, +0.2982, -0.2037, -0.4812, +0.0583, -0.8738, +0.0586, -0.3745, -0.5477, -0.2971, -0.1551, -0.4880, -0.1060, +0.2188, -0.4043, -0.0349, -0.1349, -0.4093, -0.4371, +0.3101, +0.5219, -0.0655, -0.2546, -0.6408, +0.2019, +0.1351, +0.0971, -0.4105, +0.1299, -0.6688, -0.0550, -0.2388, -0.4246, +0.1126, -0.5573], +[ +0.3232, -0.0110, -0.0201, -0.2022, +0.1144, -0.2510, -0.3709, +0.4360, -0.4248, +0.1316, -0.5286, -0.0186, +0.2077, +0.2049, +0.2458, -0.3234, -0.0890, +0.2950, +0.0363, +0.0579, -0.0995, +0.1529, -0.0182, -0.2339, +0.0239, -0.3706, +0.2179, +0.1782, +0.1137, +0.3492, -0.1769, +0.1565, +0.2168, -0.0898, +0.4457, +0.4303, +0.3227, +0.1329, -0.0832, +0.0037, -0.1080, -0.1041, +0.0529, +0.2101, -0.1206, +0.1770, -0.1607, -0.2222, -0.3057, +0.0691, -0.1493, -0.1024, +0.1907, +0.0748, +0.3616, -0.5097, -0.4243, +0.1401, -0.4711, -0.4066, -0.4260, -0.3973, -0.3461, +0.2407, +0.1542, -0.3836, -0.2245, -0.0567, +0.3746, -0.3234, +0.4039, +0.0513, -0.1164, +0.3607, -0.1126, +0.0400, +0.2217, +0.1035, +0.0252, -0.1768, -0.4746, -0.3228, -0.3284, -0.0242, +0.0163, -0.2037, +0.0809, -0.0400, -0.0311, +0.3103, -0.1519, +0.0303, +0.3008, +0.1998, -0.1943, +0.2562, +0.5656, -0.0671, +0.3937, +0.4006, +0.3835, -0.0457, +0.5424, +0.2108, -0.0296, -0.1178, -0.0066, -0.5670, -0.1310, +0.2254, +0.0798, +0.0547, -0.0507, -0.2947, +0.0727, -0.4834, +0.0126, +0.2459, +0.2963, +0.2442, +0.1020, +0.0645, +0.6951, -0.4037, -0.1358, +0.4485, -0.1978, -0.0996], +[ +0.3579, +0.4973, -0.5223, +0.4582, -0.3209, -0.1405, -0.3946, +0.4934, -0.2217, +0.4501, +0.2339, -0.5480, +0.0177, -0.7866, -0.0221, +0.0816, -0.6471, +0.2561, -0.0114, +0.7428, -0.0908, +0.1886, -0.0973, +0.3981, -0.2908, +0.3556, -1.2527, -0.7678, -0.1662, -0.0463, +0.8122, -0.7603, +0.8625, -0.3672, -0.0821, +0.4161, +0.6106, +0.3156, -0.3068, +0.9691, +0.4397, +0.2930, -0.3802, -0.0977, -0.2970, -0.5699, +0.3788, +1.1378, -0.6848, -1.0195, +0.2025, +1.3364, -0.0277, -0.2723, -0.5642, +0.3973, -0.1903, +0.6823, -0.2150, +0.6972, -0.0855, -0.1414, +0.7036, -1.0000, -0.1264, -0.1947, +0.9226, +0.1346, -0.4493, -0.3550, -1.0708, +0.2620, +0.0332, -0.3827, -1.0002, +0.9836, +0.2433, -1.1610, +0.3742, -0.0695, -0.5658, -0.2597, +0.3667, +1.2486, -0.5875, -0.1238, +0.9558, +0.6116, -0.4355, +0.3359, -1.2784, +0.1217, -0.0572, -0.4791, -0.5930, -1.4577, -0.6798, +0.6478, -0.4734, +1.3337, +0.0625, -0.1462, -0.4832, -0.2721, -0.3731, +1.0106, -0.5080, -0.7930, +0.3208, -0.5621, +0.3719, +0.0714, +0.1665, +0.0678, -0.0667, -0.0222, +0.3113, -0.8660, +0.9910, -0.3596, -0.9364, -0.2329, -0.0983, -0.0231, -0.9173, -0.4387, -0.1335, +0.0457], +[ +0.3956, -0.3152, +0.2209, +0.5020, -0.1946, +0.1046, +0.2062, +0.3388, +0.0394, -0.3347, +0.0989, -0.3360, -0.5885, -0.2084, -0.0802, +0.1041, +0.4200, -0.5033, +0.2403, +0.3485, -0.1897, +0.1247, -0.3015, -0.5448, -0.2833, -0.2345, +0.3037, -0.0964, -0.0418, +0.4569, +0.5159, +0.1612, -0.1066, -0.1735, +0.1562, -0.1419, +0.0397, -0.5056, +0.5741, +0.1335, -0.5054, +0.2876, +0.2772, -0.4229, +0.3375, +0.1689, -0.0673, -0.1658, -0.0537, +0.0839, +0.0286, +0.2321, +0.0324, -0.3339, +0.3598, +0.2639, -0.1830, +0.0786, +0.0150, -0.5155, -0.2999, -0.3272, -0.1231, +0.0314, -0.2119, -0.2094, +0.1294, -0.1965, +0.0588, -0.6383, -0.0198, -0.1309, +0.5456, +0.1369, +0.5467, +0.1478, +0.0873, +0.0337, -0.1971, -0.4118, +0.2234, +0.3570, -0.0030, -0.4428, +0.2950, +0.0275, -0.0361, -0.2056, +0.1671, -0.5099, +0.1179, -0.0046, -0.3599, +0.2915, -0.1620, -0.4229, +0.0425, -0.2419, +0.5708, +0.2975, +0.2598, -0.5877, -0.2703, -0.1468, -0.5714, +0.1464, -0.3119, -0.0598, +0.4885, -0.0556, -0.2712, +0.1269, -0.3214, -0.2681, -0.1313, -0.0982, -0.1379, -0.0300, -0.1540, -0.3185, -0.0519, -0.2397, -0.0479, -0.2774, +0.3924, -0.2064, -0.1053, +0.4871], +[ -0.1492, +0.3323, -0.4775, -0.5605, -0.8677, +0.7841, +0.7171, +0.8697, +0.2130, +0.4039, +0.9357, -0.8427, +0.0227, +0.2223, -0.4140, -0.7540, -0.2611, +0.5574, +0.2121, -0.3201, +0.0518, +0.3469, +0.3044, +0.6718, +0.4063, +0.9037, +0.2910, -0.5208, +0.2262, +0.5543, -0.1615, -0.2219, -0.7828, +0.0647, +0.2140, +0.9491, +0.0749, +0.2561, +0.2599, -0.2359, +0.4074, -0.2257, +0.0635, +0.1117, +0.5031, -0.2702, -0.0526, +0.1067, -0.1765, +0.0509, +0.2734, -0.2659, -1.0558, -0.3635, +0.4609, +0.0294, -0.6205, +1.3626, -0.1060, +0.2375, -0.4266, +0.6304, -0.9487, -0.2076, +0.3588, -0.2924, +0.2451, +0.5756, -0.1227, +0.1409, -0.2573, +0.8268, -0.3649, +0.7991, -0.2339, -0.2500, -0.2263, +0.0482, +0.9563, -0.2986, +0.5015, +0.2141, -0.3226, +0.3428, +1.1022, +0.3828, -0.1544, +0.4925, -0.0866, +0.2472, -0.0740, -0.0906, +0.6950, +0.4435, -0.2513, +0.0544, +0.1793, +0.9038, +0.3841, -0.3180, -0.2950, +0.0953, +0.4973, -0.3028, -0.0141, +0.0051, +0.9349, +0.0603, -0.1071, +0.2711, +0.0975, +0.6570, +0.1094, +0.1404, +0.9337, -0.2258, -0.5518, +0.0847, +0.8611, +0.0640, -0.3152, +0.3464, -0.2628, +0.2387, -0.1313, -0.3580, +1.7605, -0.7844], +[ -0.1598, -0.0421, -0.4126, -0.4364, -0.2147, +0.4256, -0.0339, -0.3245, -0.4184, +0.0827, -0.5233, -0.3281, -0.3892, -0.5833, -0.0462, -0.5472, +0.0374, +0.0243, -0.3826, -0.1234, -0.6757, -0.2869, -0.2674, +0.0504, +0.2552, +0.0059, -0.0716, -0.0678, -0.2011, +0.1214, -0.0007, +0.2210, -0.3461, +0.0562, -0.5642, +0.1014, -0.5826, -0.1434, -0.1884, -0.4357, -0.0456, -0.1590, -0.3123, -0.1467, -0.2865, +0.2239, -0.1522, -0.4315, -0.0772, +0.2507, -0.6389, -0.3853, -0.1505, +0.5287, +0.1969, +0.3432, +0.1255, +0.3163, -0.3674, +0.3488, +0.0463, +0.2907, -0.2616, -0.1169, -0.0705, +0.3281, +0.0255, +0.2221, -0.0777, -0.3293, -0.3078, -0.6078, -0.1859, -0.2359, -0.1811, -0.3349, -0.1777, -0.0656, -0.6531, -0.3420, -0.3709, -0.1240, -0.2513, +0.1877, +0.0152, +0.0720, +0.1846, -0.1148, -0.1539, +0.0653, +0.0752, -0.7600, -0.0605, +0.0614, -0.5569, -0.2471, -0.0556, -0.6890, -0.2103, -0.2875, -0.2620, +0.0966, -0.4809, +0.2514, +0.0813, -0.4869, -0.1030, -0.3295, -0.0645, -0.3906, -0.0294, +0.0987, -0.0403, -0.8376, -0.4490, -0.1942, -0.0488, -0.6031, -0.2849, -0.3964, +0.3836, -0.2380, -0.0565, -0.0857, +0.3379, -0.1756, +0.1558, -0.0667], +[ -0.6008, -0.1594, -1.3237, -0.1536, +1.9008, -0.6173, -0.1694, -0.5906, -0.9055, +0.0241, -0.5906, +1.1458, +0.2310, +0.1497, -0.8268, +0.4505, +1.4660, -0.6533, +0.7903, -0.0505, -0.3790, -0.1951, -0.2461, +0.1151, +1.0092, -0.2464, -0.0728, +1.2368, -0.0530, -0.4323, -0.4228, -0.4808, +0.1259, +0.3584, -0.7628, +0.4720, +0.0326, +0.3357, +0.5799, +0.0110, -0.6230, -0.9810, +0.2532, +0.7874, -0.8300, +0.0061, +0.0040, -0.0170, +0.2485, +0.8276, +0.6964, +0.1540, +0.0615, +0.7226, -0.6115, +0.6827, +0.5075, +1.0073, +0.5858, -0.6826, -0.1033, -0.0188, -0.6122, -0.7580, +0.2348, +1.5513, -0.0221, -0.2869, -0.2070, -0.4511, -0.2812, -1.5290, +1.2652, -0.6644, +0.8840, +0.9897, -0.4561, -0.0053, -1.3338, +0.8146, -0.2168, -0.1642, -0.3823, -0.7818, -0.6392, -0.1877, -0.4944, -0.4896, -0.7634, +0.5820, +0.4216, -0.8257, -0.0432, -0.1807, -0.3475, -0.4825, +1.3182, -1.1372, -1.3308, +0.4233, +0.5569, +0.2234, +0.0889, +0.9940, +0.4986, -1.1977, -0.5440, +1.1946, +0.1312, +0.2419, +0.2770, +0.3172, +0.8566, +0.4982, -1.1142, +0.5097, -0.2901, -0.5129, -0.4256, +0.1067, +0.6052, +0.0384, +0.4465, +0.5017, +0.0892, +0.0556, -0.3456, +0.6560], +[ +0.3583, +1.0694, +1.0793, +0.1956, +0.9347, -0.1516, +0.2906, -0.0810, +1.0637, +0.6084, -0.5063, -0.0255, +1.2826, +0.2770, -0.5689, +0.2976, +0.7089, +0.1910, -0.3054, +0.9237, -0.8452, +0.5122, -0.0839, -0.9952, -0.5889, +0.8015, +0.0731, -0.2068, +0.3829, +0.3838, +0.4355, +0.2167, +0.3566, -0.2521, +0.9746, -0.8775, +0.1110, -1.1838, -0.8276, -0.4934, -1.3759, -0.0209, -1.5168, -0.3727, +0.1119, +1.3367, +0.4088, +0.3294, -0.5456, +0.2210, +0.6118, +0.2596, -1.0670, +1.3099, +1.0417, +0.9949, +0.8502, +0.9434, -0.2738, +0.4274, +0.4289, +0.2027, +1.1081, +0.1081, +1.6702, +0.4582, +0.2781, -0.2702, -0.3890, -0.4782, -0.3262, -0.6193, +0.4284, -0.8390, +0.1704, -0.8469, -0.1431, +0.8059, +0.0640, -1.1101, +1.0580, +1.1130, +1.0080, -0.0662, +0.9241, -0.1041, +0.1315, -0.4465, +0.2591, +0.2863, +0.1199, -0.2631, +0.3084, +0.8540, +0.2204, -0.7237, -0.2178, +0.6342, -0.0101, +0.5942, -0.5495, +0.3994, +0.5621, -0.2694, +0.9952, +0.0877, +0.0722, +0.6375, -0.4122, -0.2261, +0.2578, -0.1989, +0.4453, +0.0418, -0.6586, -0.0630, +0.1367, +0.0375, -0.3982, +0.6956, +0.4349, +0.7847, +0.9856, -0.2118, -0.1211, +0.2099, +0.6343, -0.2238], +[ +0.2576, +0.1708, +0.5942, -0.8994, -0.0868, +0.7046, +0.8070, +0.3142, +0.4562, +0.5703, -0.5525, +0.0864, +0.2016, -0.9636, +0.7642, -0.4136, +0.3538, +0.0215, -0.0008, -0.4398, +0.5139, +0.4963, -0.8291, +0.6681, +0.2463, +0.1906, -0.0195, -0.1146, -0.0489, -1.0220, +0.3947, +0.0897, +0.3557, -0.0899, +0.7004, +0.0732, +0.4142, -0.5701, -0.1690, +0.0402, -0.3416, -0.9773, +0.0455, -0.1412, -0.8012, -0.3097, -0.9837, +0.4047, -0.7972, -0.2902, -0.3245, +0.0464, -0.2058, +0.6175, +0.9464, +0.2569, -0.5419, -0.0480, +0.4761, +0.4906, -1.0051, -0.0336, +0.1762, +0.7865, +0.5313, +0.2276, +0.3898, -0.5483, -0.7494, -0.5172, -0.6968, -0.7780, +0.6258, -0.1979, -0.3625, +0.0796, -0.5390, -0.2714, +0.4319, -0.9952, +0.1555, +0.7258, +0.3754, -0.5892, -0.0937, +0.9012, +1.3195, -0.2689, -1.6369, +0.4650, +0.1741, -0.2305, -0.7181, -0.3967, +1.0093, +0.1660, +0.0568, +0.1924, +0.0595, +0.4189, -1.1472, -0.9761, -0.4957, +0.0854, +0.8852, +0.2884, +0.2345, -0.1550, +0.9522, -0.1306, -0.1394, -1.3291, +0.0207, +0.3611, -0.0699, -0.0948, +1.7921, +0.1665, -0.5039, -0.4613, -0.1789, +0.4391, -0.5099, -0.5557, -0.2059, +0.1237, +0.0259, -0.1886], +[ +0.2817, -0.0454, +0.1386, -0.1673, +0.2426, -0.0467, -0.1203, +0.3156, -0.0052, +0.3391, +0.1706, +0.1125, -0.1778, -0.5539, +0.2748, -0.0129, -0.2321, +0.5550, +0.1019, -0.9796, -0.2074, -1.3227, -0.7212, +0.4632, +0.0566, -0.4680, -0.5681, -0.5756, -1.4594, -0.3052, +0.2753, -0.6632, +0.0368, +0.2291, -0.0578, +0.3663, -0.1122, +0.0024, +0.5366, -0.3653, +0.2721, -0.0873, -0.1185, -0.3832, -0.5141, -0.0425, -0.0007, +0.2201, -0.0954, -0.4895, -0.3387, +0.5406, +0.1037, +0.0756, -0.2258, +0.1772, +0.1323, +0.2892, -0.5137, +0.2084, -0.1640, -0.7629, +0.4224, +0.3344, -0.5014, +0.1077, -0.4575, +0.3734, +0.2012, -0.2691, -0.3532, +0.5112, +0.2323, +0.2361, -0.6075, +0.0756, -0.6252, -0.2803, +0.1436, +0.1922, +0.1045, +0.2936, +0.0511, +0.0997, +0.1260, -0.7201, +0.2040, -0.6068, -0.2572, -1.1220, -0.4336, +0.1953, +0.2289, +0.0583, -0.0825, +0.0174, +0.2520, +0.3962, +0.1735, -0.1254, -0.2769, -0.0927, -0.8869, +0.2688, +0.0637, -0.0104, +0.1743, +0.6607, +0.3604, +0.0411, +0.6830, -0.2192, +0.6120, +0.5902, -0.0692, +0.0640, -0.4776, -0.3384, +0.3360, -0.2106, -0.2018, -0.1111, +0.4084, -1.0131, +0.1918, +0.1225, +0.1328, -0.1810], +[ -0.5625, +0.6491, -0.2732, +0.4952, -0.1584, +0.2908, -0.6854, -0.4982, -0.0942, -0.2324, +0.2329, +0.3380, +0.4047, +0.8220, +0.1344, +0.2586, -0.2234, +0.1572, -0.5163, +0.5888, +0.3405, -0.3463, +0.9772, +0.1675, -0.6181, +0.4957, +0.6584, -0.1368, -0.1735, +0.4557, +0.6991, -0.0403, +0.2271, +0.2258, +0.2296, -0.0160, -0.4586, -0.4367, +0.5504, +0.5095, -0.0341, +0.4141, +0.0418, -0.2047, +0.3971, +0.3569, +0.6946, +0.1311, +0.3614, -0.0544, +0.7212, +0.0162, +0.0360, -0.3230, +0.4143, -0.2461, +0.1784, -0.2672, -0.7151, +0.0920, +0.2453, -0.1601, -0.1728, +0.0921, +0.3203, +0.1281, +0.7218, -0.2275, +0.6779, -0.4679, +0.2388, -0.2174, +0.1108, -0.2124, +0.1118, +0.1878, +0.6509, -0.2355, -0.3070, -0.1175, -0.8563, +0.7712, +0.7216, +0.2705, -0.3359, +0.0834, +0.3364, -0.9102, -0.0050, -0.2038, -0.3887, -0.0003, +0.3009, +0.5568, +0.4128, -0.1470, -0.4033, +0.4556, -0.0164, +0.6296, -0.6479, -0.6349, -0.4118, -0.1700, +0.5044, +0.6149, +0.5285, +0.2198, -0.5983, +1.1778, +0.1033, -0.1016, +0.5921, -0.3015, -0.4725, -0.1732, -0.0215, +0.7037, +0.5043, -0.7740, -0.4181, -0.1432, +0.4241, +0.5390, -0.8923, +0.8941, -0.2442, -0.1354], +[ -0.3359, -0.1083, -0.8409, +0.2590, +0.3363, +0.1838, -0.3840, +0.3864, +0.2034, -0.3445, +0.0949, -0.1383, +0.3539, -0.5850, -0.0659, +0.4438, +0.3457, -0.7643, +0.0728, -0.0271, +0.1040, -0.1681, +0.3348, +0.5446, -0.6685, +0.4041, -0.0872, -0.2793, +0.2181, +0.0853, -0.0353, -0.5413, -0.1816, -0.1187, +0.1640, -0.2443, +0.1492, -0.2037, -0.0081, +0.0258, +0.2739, +0.0343, -0.1295, +0.0078, +0.0392, +0.4218, +0.3354, +0.6948, +0.0345, -0.7231, +0.8704, +0.1680, -0.1541, -0.5035, -0.0281, +0.0994, +0.3783, +0.2794, -0.4267, -0.6257, -0.2330, -0.3536, -0.1162, -0.0411, +0.1763, +0.1975, +0.1464, +0.0609, -0.2487, +0.3408, -0.7077, +0.0542, -0.3465, +0.0497, +0.1247, +0.1681, -0.4003, -0.2574, +0.1809, -0.0013, -0.1649, -0.3992, +0.3628, +0.0089, +0.3263, -0.3100, +0.2304, -0.2072, -0.2944, -0.4202, -0.0603, -0.0752, -0.2653, +0.2389, +0.6501, +0.0928, -0.8089, +0.1342, +0.3140, -0.2359, -0.3699, +0.0832, -0.4305, -0.5970, +0.3982, +0.7136, +0.3347, -0.1750, -0.5559, +0.1141, +0.0591, -0.1708, -0.3083, -0.4088, +0.5476, -0.0705, -0.1452, +0.2297, +0.1725, -0.4675, -0.2641, +0.2952, +0.2449, -0.3262, -0.2343, -0.2551, +0.2011, +0.3487] +]) + +weights_dense1_b = np.array([ +0.0032, +0.0591, +0.1871, -0.0873, +0.0194, -0.1684, -0.0091, +0.0135, -0.0694, -0.3312, +0.0673, -0.1489, +0.1365, +0.0575, -0.1155, -0.0904, -0.1321, +0.0492, -0.2257, -0.2418, -0.0204, -0.1910, -0.0512, -0.0482, -0.2969, -0.3574, -0.1852, -0.1644, -0.2957, -0.1906, -0.0170, -0.0760, +0.0006, -0.1286, -0.0746, +0.0039, -0.1005, -0.0535, +0.0375, -0.2162, -0.1251, -0.0368, +0.0101, -0.3220, -0.1152, -0.3656, -0.2491, +0.0638, -0.0312, +0.0054, -0.2318, -0.2900, -0.1189, -0.0725, +0.0490, -0.0679, +0.0117, +0.0926, -0.0824, +0.0479, +0.0756, -0.0462, +0.1529, +0.0081, -0.0984, -0.1227, -0.0247, -0.1277, -0.0633, -0.1953, +0.1023, +0.1582, -0.0400, -0.1115, -0.1625, -0.2216, -0.0195, -0.0650, +0.0701, -0.1573, -0.1187, -0.0801, -0.1424, +0.1873, -0.2309, -0.1815, -0.0408, -0.1173, +0.0185, -0.1408, -0.0938, -0.2810, +0.2447, -0.4046, -0.1790, -0.0165, +0.1334, +0.0500, +0.0283, -0.0321, -0.2388, -0.0726, -0.3444, -0.3250, -0.1338, -0.0579, -0.1647, -0.0691, -0.0835, +0.0734, +0.1667, -0.1478, -0.2212, -0.0899, -0.0050, -0.2379, +0.0709, +0.0464, +0.1569, -0.2669, -0.2181, -0.4331, +0.0534, -0.0648, -0.1026, -0.1509, -0.2278, -0.0437]) + +weights_dense2_w = np.array([ +[ -0.5294, -0.0896, +0.1998, -1.0655, -1.0578, -0.2702, +0.0052, +0.1819, -0.2272, -1.3830, +0.0185, +0.0236, +0.0611, +0.3201, -0.1723, +0.2887, -0.4885, +0.3460, -0.0437, -0.4517, +0.1636, +0.0027, -0.5574, -0.4712, -0.2482, +0.1202, +0.6143, -0.6510, -0.5672, -0.7578, -0.2628, -0.5118, +0.2114, +0.3419, +0.3262, -0.1558, +0.4818, -0.4314, -0.4611, -0.3294, +0.2443, -0.4138, +0.2451, -0.2765, -0.4818, +0.0854, -0.0011, +0.0080, -0.3759, -0.1235, -0.2526, +0.3319, -0.7957, -0.3891, +0.6225, +0.7334, -0.3936, -0.2982, +0.2974, -0.2766, +0.0199, -1.0206, -0.4054, -0.0960], +[ -0.5329, -0.7876, -0.4974, +0.3381, +0.3092, +0.0208, -0.2402, -0.3306, -0.7425, +0.1489, +0.0271, -0.1945, +0.0315, +0.1836, +0.2294, -0.6615, -0.1362, +0.2090, -0.5984, -0.0163, +0.0886, +0.0679, +0.3041, -0.0070, -0.0550, +0.3623, -0.0483, -0.2679, +0.2927, +0.2728, +0.2955, -0.0641, +0.2888, +0.0278, +0.1980, +0.0714, +0.1605, +0.1879, +0.0666, -0.0505, +0.3625, +0.3155, -0.1965, -0.0301, +0.1697, -0.0102, -0.4709, -0.4190, +0.0265, -1.0402, -0.0718, +0.3172, -0.1062, -0.2538, -0.4556, -0.2825, -0.0534, -0.1540, +0.0872, +0.1585, -0.4927, -0.0311, +0.2163, -0.8230], +[ -0.0620, -0.4689, -0.0407, -1.5569, -0.1551, -0.2028, -0.3836, -0.0306, -0.0718, -0.9097, -0.1025, +0.1040, +0.1657, +0.1093, -0.2807, +0.3353, -0.6893, +0.6661, +0.1312, -0.8763, -1.5289, -1.4383, +0.1129, +0.2337, -0.0876, -0.8757, +0.0550, -0.3456, +0.1468, -0.6056, -0.8811, -0.3539, +0.6850, +0.1739, +0.0344, -0.0354, -0.2883, -0.1680, -0.3950, -0.7221, -1.8289, -0.2404, -0.2498, +0.1401, +0.3679, -0.1029, -0.2085, -0.9932, -0.1101, -0.4335, -0.1423, -0.3566, -0.4630, +0.1845, +0.3527, -0.4799, -1.7876, +0.3755, +0.2791, +0.1744, -0.3218, -0.4807, -0.2936, +0.2639], +[ -0.1966, +0.5649, -0.2069, +0.3588, -0.8745, +0.8721, +0.0814, +0.1852, +0.1873, -0.0432, -0.7933, -0.2585, -0.1218, -0.4980, +0.3300, +0.3064, -1.0648, -0.6760, +0.0998, +0.6166, -0.2364, +0.0741, -1.5132, -1.1618, -0.0384, +0.1799, -0.5393, +0.2645, -0.2358, +0.0418, +0.3921, -0.8185, +0.5272, +0.4155, -0.2473, +0.0026, -0.4362, -0.1113, -0.1036, -1.0282, -0.2206, +0.5201, -0.1124, +0.3642, +0.0213, +0.1247, +0.0868, +0.3541, -0.0376, -0.0735, +0.4899, -0.5098, -0.7578, -0.3030, +0.2886, -0.7427, -0.4035, +0.0161, -0.4715, +0.0235, +0.5217, -0.2785, +0.0707, -0.2289], +[ -0.7238, +0.4670, -0.0149, +0.2279, -0.1295, +0.0670, -0.2468, +0.4984, +0.6797, +0.2095, -0.2371, -1.1373, -0.0913, -0.6137, -0.1067, +0.0817, -0.4967, -0.3839, -0.0531, -0.3020, -0.2330, -0.1719, -0.2915, -0.3750, -0.1896, -0.0480, -0.2671, +0.5401, -0.0648, -0.8036, +0.2070, -0.9393, +0.1914, +0.2418, -0.0981, -0.4760, -0.0516, -0.8327, +0.1371, -0.7785, -0.1945, -0.6666, -0.0209, +0.0864, -0.7345, -0.3576, -0.2442, +0.3027, -0.4184, +0.2634, +0.2169, +1.1403, -0.4589, +0.0943, -0.0657, -0.2680, -0.6890, -1.2024, -0.2191, -0.1494, -0.0415, -0.9274, +0.3765, +0.2284], +[ +0.0721, +0.2423, +0.2696, -0.8249, -0.0644, -0.3427, -0.2876, -0.2066, +0.2195, +0.1008, +0.1247, +0.2757, -0.1372, -0.0132, +0.1199, -0.1206, +0.1263, +0.0607, -0.1235, -0.3237, +0.5096, -0.0538, +0.4292, -0.2570, -0.2744, -0.1671, +0.0643, +0.2648, -0.1993, +0.0420, +0.1681, +0.3126, -0.3654, -0.2719, +0.3103, +0.2754, +0.0040, -0.4387, -0.0634, +0.2868, +0.0613, -0.1423, +0.0911, -0.6027, -0.2560, -0.0131, -0.5504, -0.6812, +0.0176, +0.1782, -0.0082, -0.2754, +0.1471, +0.2872, -0.5940, +0.1319, +0.0220, +0.3727, +0.2380, +0.0558, +0.1206, +0.2882, +0.0155, +0.2597], +[ -0.1229, -0.7953, -0.2690, -0.8715, -0.8578, +0.0133, +0.2098, -0.0996, -0.0174, +0.5429, -0.3021, -0.1241, +0.0091, -1.2123, +0.0488, -0.4687, -0.6124, -0.7139, -0.2042, -0.4138, -0.3101, -0.1909, +0.1478, -0.5427, -0.2557, -0.1813, +0.4605, -0.6159, -0.1311, -0.3425, -0.9877, -1.2896, -0.4583, +0.2293, -1.0717, +0.0631, +0.0908, -0.1255, -0.8500, +0.0157, +0.1026, -0.6678, -0.4511, -0.1720, -0.1051, -0.0788, -1.1285, -0.7684, -0.5400, -0.0879, -1.3907, +0.8072, +0.3826, +0.5732, -0.6696, +0.3482, -0.2598, -0.9451, +0.0000, +0.1565, -0.9628, -0.5438, -0.2299, +0.0864], +[ -0.3683, +0.2445, -0.6280, -0.6619, -0.3666, -0.4500, -0.5599, -0.6186, +0.0152, -0.2720, +0.0609, -0.3384, -0.0136, +0.1575, +0.3848, -0.5577, +0.7921, -0.4193, +0.0182, +0.3805, +0.0310, +0.2653, -0.0866, +0.3095, -0.2329, -0.1241, +0.1641, -0.2871, +0.0675, -0.2960, +0.1917, -0.3727, +0.0599, +0.4283, -0.7127, -0.0708, -0.0144, +0.3581, -0.7382, -0.1784, -0.3748, -0.1627, -0.5114, -0.2711, +0.0602, -0.2263, -0.1847, -0.1914, -0.2189, -0.3361, +0.0516, -1.3228, +0.0331, +0.3685, +0.2941, -0.4427, +0.2907, -0.7059, -0.1141, -0.0540, +0.0532, -0.1200, +0.0966, -0.0749], +[ -1.1537, -0.0967, -0.3476, -0.2341, +0.5311, -0.1617, -0.3381, +0.1348, +0.2100, -1.0730, -0.0577, -0.0237, -0.0373, -0.5123, +0.2998, -0.3247, +0.5258, +0.3037, -0.0538, +0.3679, -0.3760, +0.0351, +0.5999, +0.4626, -0.1599, -1.1580, -0.1344, +0.6217, -0.2474, -0.6322, -0.7804, -0.2596, +0.6680, -0.1191, -0.0805, +0.2087, -0.1946, -0.2961, -0.2653, -0.1915, +0.1113, -0.6597, +0.0847, -0.0599, +0.6311, -0.8174, -0.8733, -0.5911, +0.1962, -0.1327, -0.1959, +0.7040, +0.6005, +0.1157, -0.4948, -0.5988, +0.4162, -0.3101, +0.0050, +0.6379, +0.0811, -0.0415, +0.2975, +0.4097], +[ -0.0605, -1.4543, +0.3715, +0.0582, -0.1646, +0.0919, -0.8151, -0.0222, -0.5294, -0.4140, -0.4782, -0.0889, -0.2930, -0.7260, -0.1270, -0.2699, -0.2068, -0.4855, -0.0244, +0.5308, +0.2588, +0.0277, +0.1398, -0.0020, -0.0209, +0.4305, +0.5735, -0.4727, -0.1810, -0.1060, +0.1201, +0.2439, -0.2472, -0.0717, +0.1351, +0.3603, +0.3060, -0.3795, -0.2812, -0.2544, +0.1106, -0.0701, +0.2985, -0.1396, -0.2122, +0.4243, -0.2770, -0.5565, -0.2525, +0.0816, -0.4047, -0.2782, -0.7214, -0.1042, -0.1084, +0.1894, +0.8661, -0.1578, +0.3679, +0.2941, +0.0799, -0.3008, -0.1891, -0.4522], +[ -0.1581, -0.8760, -0.6871, +0.1299, -0.4920, -0.2449, +0.2764, -1.4836, -0.7051, +0.3574, -0.2647, -0.2578, -0.0707, +0.1505, -0.0393, -0.5107, +0.0504, +0.2922, -0.1558, +0.0842, -0.0566, +0.0806, +0.2948, +0.1275, +0.0113, +0.0670, +0.5678, +0.0579, -0.0082, -0.0575, +0.2882, +0.0579, +0.1669, -0.5888, -0.1277, -0.1875, -0.2031, +0.2563, -0.4510, +0.1176, -0.6062, +0.0932, -0.4625, +0.0489, -0.4213, +0.1625, +0.0889, +0.3401, -0.4626, -0.1120, -0.3998, -0.3627, +0.5388, +0.3221, +0.0293, +0.4626, -0.4754, -0.7499, -0.5847, -0.3559, +0.3759, +0.6087, -0.6434, -0.3520], +[ +0.2500, +0.1920, -0.0041, +0.3031, +0.1244, +0.2579, -0.3249, +0.6266, +0.0798, -0.6341, +0.1762, -0.0811, -0.2604, -0.4294, -0.1638, -0.0724, -0.2681, -0.0688, -0.1879, +0.4750, +0.4832, +0.2947, +0.2664, +0.2740, -0.0683, +0.2160, -0.1307, +0.1062, +0.0801, -1.2182, +0.3045, +0.1882, -0.0800, -0.3235, -0.5861, -0.2444, -0.0772, +0.1528, -0.1473, +0.0380, -0.0192, -0.1198, +0.1908, -0.5856, -0.3644, -0.0235, +0.4902, -0.6515, -0.3490, +0.0620, +0.2643, +0.1549, -0.0580, -0.1879, +0.1547, -0.5689, +0.2646, +0.2184, -0.1865, -0.6921, +0.3484, -0.0395, -0.0506, +0.0883], +[ +0.3222, -0.6081, -0.8570, +0.1662, -1.6457, -0.1301, +0.4362, -0.3683, -1.2053, +0.0051, +0.4562, +0.1176, +0.0681, +0.0442, +0.0929, -0.1070, +0.0833, -0.9221, -0.1152, -1.3000, +0.1766, +0.5323, -1.3052, -0.8361, -0.1032, +0.1584, -0.3473, -0.1487, -0.5833, -0.0997, -0.1513, +0.0293, +0.3824, -0.0470, -0.3443, -0.4211, -0.2198, -0.0394, -0.7857, +0.6342, -0.0022, -0.2827, -1.2328, +0.8836, -0.1748, +0.0327, -0.2512, -0.3752, -0.1145, -0.8466, -0.6688, -0.2503, +0.0641, -0.0112, -0.5286, -0.6550, -0.8791, +0.1105, -0.4148, +0.6753, +0.4758, -0.0569, +0.0966, -0.9476], +[ -0.4199, -0.6072, -0.4537, -0.4169, -0.8892, +0.2855, +0.5756, -0.0186, -0.5130, -0.1059, -0.7573, -0.0568, -0.0684, -0.6527, -0.0938, -0.0042, -0.3279, -0.4445, +0.0217, +0.0967, -0.7654, -0.2576, -1.3607, -0.5645, +0.1616, +0.0616, -0.7005, -0.2452, +0.2257, -0.5849, +0.6963, -1.0530, -1.3240, -0.1119, -0.9036, -0.0479, -0.4890, +0.5005, -1.4962, +0.2961, -1.2472, -0.2179, +0.0196, +0.5316, -0.0054, -0.0947, -0.6427, -0.0188, -0.4429, +0.5082, -0.0946, -0.4850, +0.3228, +0.1117, +0.3974, +0.0178, -0.0763, -1.3113, -0.5316, +0.0163, -0.2001, -0.2488, +0.3841, -0.1722], +[ -0.1212, -0.3952, +0.0911, -0.5135, -0.2093, -0.7678, +0.1495, +0.0407, +0.3257, +0.0601, -0.2006, +0.3888, -0.1896, +0.1708, -0.2838, -0.6900, +0.0937, +0.2306, +0.0376, -0.3426, -0.2854, -0.3829, +0.4875, +0.0551, +0.0143, -0.2186, +0.0469, -0.8389, -0.7003, +0.2505, -0.5086, +0.1452, -0.3577, -0.5950, -0.1434, -0.3216, -0.7059, +0.1497, -0.1612, +0.4857, -0.2867, -0.1537, -0.2302, -0.6386, +0.3762, +0.2766, +0.1610, -0.6457, +0.4320, -0.3433, +0.0201, -0.1067, +0.2527, +0.2581, -0.0995, -0.1953, -0.0237, +0.8414, +0.4549, -0.1515, -0.1875, -0.1065, -0.2381, -0.4321], +[ -0.3393, -0.3520, -0.9045, +0.6000, +0.5172, -0.1926, -0.1635, +0.1719, -0.6527, +0.2668, +0.3255, -0.0443, +0.0438, -0.4045, -0.2399, -0.4114, -0.7029, -0.0357, -0.4091, -0.0354, -0.1053, +0.0729, -0.6477, -0.2433, -0.0480, +0.2689, +0.2895, +0.0905, -0.3754, -0.9434, +0.5497, -0.0091, +0.2105, -0.1584, +0.0904, -0.3422, +0.2668, -0.1983, +0.4242, -0.2503, -0.4326, -0.3479, -0.4545, +0.8625, -0.3452, +0.6519, +0.1031, +0.3487, -0.3660, -0.0598, +0.2381, +0.8141, -0.2223, -0.1759, -0.0212, -0.0058, -0.2119, +0.0731, -0.0786, -0.3202, -0.2608, -0.7982, +0.4981, +0.1286], +[ -0.5110, +0.3147, +0.1463, -0.0389, -0.3521, +0.3138, -0.4345, -0.1397, +0.4069, +0.4113, -0.1701, +0.0171, -0.0710, -0.0741, -0.1748, +0.1410, +0.1965, -0.9863, -0.1121, +0.2325, -0.0745, +0.0503, -0.3608, -1.0871, -0.1174, +0.2476, -1.4639, +0.1530, +0.3929, +0.2179, -0.1187, -0.2966, -0.0866, +0.1865, -0.9683, -0.2727, -0.0255, -0.4145, +0.1239, -0.0952, -0.0126, +0.2078, +0.0525, -1.2549, -0.4354, -0.1329, -0.1288, -0.0279, -0.1269, +0.0084, +0.4687, +0.1488, -0.3704, +0.3366, +0.1487, -0.7377, -0.4681, -0.2716, -0.2919, +0.0930, -0.2879, -0.4733, -0.1250, +0.3180], +[ -0.2212, -0.1165, +0.0573, -0.0257, +0.4105, -0.3042, -0.2197, +0.1105, -0.0834, -0.3845, +0.0174, +0.0070, +0.0297, +0.0073, -0.5144, +0.3017, +0.1921, +0.4018, -0.2265, -0.2572, +0.2103, -0.5301, -0.0210, +0.7838, +0.1188, +0.0774, +0.4195, -0.8113, +0.3870, +0.2450, -0.8158, +0.7872, +0.0218, +0.1636, -0.1837, +0.0628, +0.4486, -0.0948, +0.1513, -0.8843, -0.5782, -0.1950, +0.2832, -0.2192, +0.6143, -0.0574, +0.2811, -0.4833, +0.1312, +0.2647, -0.0071, +0.3059, -0.0858, -0.6766, +0.1089, +0.3099, -0.2368, +0.2549, +0.4027, -0.1061, -1.1896, -0.6198, -0.3528, +0.1676], +[ +0.0035, -0.4849, -0.7783, -0.0504, +0.2348, -0.0571, +0.4417, +0.0601, -0.8799, +0.1450, -0.0952, -0.3266, +0.0411, -0.7422, +0.0060, -0.2092, -0.1885, -1.2113, -0.0374, +0.0568, +0.1130, -0.0895, +0.0957, +0.1047, +0.1396, -0.0320, -0.2089, +0.1098, -0.4008, +0.0389, +0.0482, -0.2914, -0.9251, +0.4323, +0.1206, +0.0567, +0.0699, +0.0587, +0.0422, +0.2053, +0.0602, -0.7918, +0.1464, +0.3530, -1.2250, -0.2547, +0.3194, -0.8625, -0.4735, +0.4783, +0.0043, +0.1931, +0.1671, +0.0328, -0.0747, +0.6361, +0.2269, -0.5492, +0.1361, -0.1751, -0.0100, -0.2549, -1.0106, -0.9024], +[ +0.2591, -1.0195, -0.4721, -0.9731, +0.0299, +0.2645, +0.3216, -0.1474, -0.4643, -0.0471, -0.2468, +0.2281, +0.0187, -0.0859, +0.0399, +0.0137, -0.4151, -0.7058, -0.4788, +0.3670, -0.3171, -0.5478, -0.3702, -0.2157, +0.0541, -1.3574, -0.5394, -0.1754, +0.4716, -0.3429, +0.6257, -0.6191, -0.0252, -0.3959, +0.5052, +0.1172, -0.0161, +0.0461, -0.3518, -0.6841, +0.0599, +0.7104, -1.4835, +0.2076, -0.3105, -0.2433, -0.0676, +0.2361, +0.1693, -0.5076, -0.1233, -0.1134, -0.2816, -0.5818, +0.0513, -0.9941, +0.4563, -0.2065, -0.7186, -0.5165, -0.6421, -0.1892, +0.1439, -0.2584], +[ +0.0525, +0.2656, -0.3646, -0.8030, -0.2153, -0.0913, -0.3868, +0.3407, -0.1766, +0.4419, -0.3384, +0.2972, -0.0482, +0.2394, +0.2429, -0.1640, +0.4954, -0.0242, -0.5130, +0.2863, +0.6940, +0.1821, +0.3729, -0.3485, -0.2009, +0.4411, +0.0800, +0.1678, -0.6286, -0.4632, -0.0660, +0.1633, -0.7075, -0.4767, +0.0660, +0.3576, -0.1382, +0.4100, -0.1458, +0.2652, +0.0179, -0.2446, -0.6880, -0.2835, -0.6586, +0.3138, -0.0370, -0.5427, -0.0139, +0.0475, +0.0476, +0.2838, +0.1937, +0.0958, -0.6775, -0.0984, -0.4858, +0.2718, +0.0920, -0.1442, -0.3254, +0.4006, +0.3794, -0.1053], +[ -0.7993, +0.2057, -0.0825, -0.5901, +0.4015, +0.7778, +0.2741, +0.3809, -0.0990, -0.1496, +0.4271, +0.2286, +0.1506, -0.0415, +0.5997, -0.6465, +0.0393, +0.3040, +0.2443, -0.2178, -1.3364, -0.4051, +0.3383, -0.0159, +0.1492, +0.0452, -0.1428, -0.2160, +0.2785, +0.6410, -0.6244, +0.3319, -0.4489, -0.1197, -1.1882, +0.3110, +0.5941, +0.1675, +0.2606, -0.9117, +0.3474, -0.4273, +0.6581, -0.0334, -0.5226, -1.0439, -2.6607, -0.2681, +0.5722, -0.1204, -0.8560, -0.5789, -0.4583, +0.1208, -1.2444, -0.3378, -0.9704, -0.0412, +0.1563, -0.1445, -1.2344, -0.5351, -0.2627, -0.0315], +[ -0.2311, +0.0027, -0.9287, -0.1228, -0.8419, +0.1478, -0.3367, -0.2493, -0.1044, -0.0661, -0.5176, +0.1812, -0.1505, +0.3252, +0.0689, -0.1895, -0.6359, +0.3539, +0.0074, +0.2096, -0.1721, -0.6680, -0.1181, +0.0884, -0.1903, -0.3968, +0.2160, -0.8183, -0.1148, -0.5661, +0.1892, -1.3805, +0.4477, -0.0261, +0.0525, +0.2808, -0.5591, +0.5135, -0.3758, +0.1060, +0.6081, -0.3552, -1.2404, +0.0532, +0.2700, +0.0979, -0.6299, -0.0514, +0.3286, +0.1688, -0.4352, -0.8093, -0.0033, +0.2607, +0.2893, -0.3395, -0.5950, +0.0470, -0.4043, -0.8434, -0.4925, -0.6462, -0.3282, -0.0198], +[ +0.3055, +0.4763, +0.3049, -0.9238, +0.2499, -0.8889, +0.0817, +0.1527, +0.3570, -1.2277, +0.5060, +0.5231, -0.0977, +0.7970, -0.3972, -0.0988, +0.7831, -0.4279, +0.0235, +0.3373, +0.6341, +0.2142, -0.1506, +0.6003, -0.3704, -0.0476, +0.2141, -0.4490, -0.3270, -0.4279, -0.2669, +1.0325, -0.7446, -0.5226, +0.2484, -0.3719, +0.0762, -0.2644, +0.4603, +0.3430, +0.0474, +0.0505, -0.0625, -0.1566, -1.0823, +0.0666, +0.1685, -1.7572, +0.5213, -0.0229, +0.4925, -0.9132, +0.2729, -0.0375, -0.0308, -0.0809, -0.0612, +0.5318, -0.3841, -0.3973, +0.0513, +0.3254, +0.0226, +0.0897], +[ -0.4901, +0.4057, +0.4243, -0.1017, -0.5561, +0.0413, -0.1884, +0.0115, +0.3556, +0.4905, +0.4599, +0.3225, -0.2060, -1.0437, -0.1747, +0.4379, -0.2705, -0.4107, -0.2775, +0.2060, +0.1902, +0.1741, -0.0650, -0.7355, -0.0770, -0.1194, -0.3411, -0.3670, -0.3807, +0.3297, -0.3163, +0.2963, +0.5599, +0.6562, -0.2402, -0.0244, +0.2263, -0.0590, +0.2397, +0.4873, +0.0771, +0.5808, +0.4708, -0.1900, -0.6152, +0.4273, +0.5762, -0.3754, -0.2344, +0.3123, -0.1155, -0.3437, -1.0409, -0.1489, -0.1104, +0.3270, +0.3800, +0.3680, +0.2113, -0.5376, +0.1063, +0.0841, -0.5439, -0.1957], +[ -1.9974, -0.0211, -0.2446, -0.3544, -0.7249, -0.3924, -0.5035, -0.2175, -0.1627, -0.8428, -0.1119, -0.0274, -0.0418, -0.1262, +0.3002, -0.1632, -0.2389, +0.3389, +0.0569, +0.0202, -1.0143, +0.3537, -0.1440, +0.3140, -0.1313, -0.3848, +0.7528, -0.6598, -1.0451, +0.5417, -0.0634, +0.1701, -0.6359, +0.3913, +0.9036, +0.8082, -0.6004, -0.0083, -0.8911, -0.0479, +0.1066, -0.4130, +0.2471, +0.5112, +0.3424, +0.2349, +0.2216, -0.1641, +0.0944, -0.3781, -0.2863, +0.2887, -0.1032, +0.2387, +0.1109, -0.1010, +0.6019, -0.6929, -1.1630, +0.1658, -0.0167, -0.2142, +0.3414, -0.6920], +[ +0.6931, +0.0145, +0.3552, -0.1500, -0.6177, +0.2065, +0.1103, -0.1340, +0.5208, +0.3153, -0.4249, +0.2061, -0.1484, -0.2901, +0.2288, -0.3281, -1.4010, -0.6546, -0.0633, +0.1697, -0.6311, -0.4404, -0.1730, -0.9839, -0.0577, +0.3237, -0.0267, -0.2236, +0.3860, +0.3659, +0.2307, +0.5690, -1.0721, -1.0289, +0.3124, -0.4391, -1.4334, +0.3776, -0.7681, -0.3304, +0.0015, +0.0868, -2.1094, -1.2462, +0.0804, +0.1231, -0.2476, -0.5150, -0.3384, -0.1315, -0.3313, +0.2172, +0.3345, +0.0750, +0.0769, +0.7963, -0.0705, +0.0998, +0.0840, -0.3474, -0.0533, +0.1124, -0.0993, -0.2206], +[ +0.0738, +0.4493, +0.0851, -0.2606, -0.4232, +0.1632, +0.0389, +0.0128, +0.3265, -0.1896, +0.3890, +0.2983, -0.1198, -1.0363, -0.0076, +0.2032, -0.7419, -1.0515, -0.1930, -0.0945, -0.0872, -0.1580, -0.2602, -1.4956, -0.1525, +0.4170, -0.9875, +0.3425, +0.3709, +0.1006, +0.0766, +0.0740, -0.3491, +0.1276, -0.2520, -0.0348, -0.6866, +0.0363, +0.4659, -0.2804, -0.3475, -0.1448, +0.0616, -0.8020, -0.2784, +0.2680, +0.3337, -0.0333, -0.5948, +0.4099, +0.2169, -0.4844, -0.6288, -0.1061, +0.1890, -0.2980, +0.0414, +0.2023, +0.0107, -0.6235, -0.0916, -0.2670, -0.2182, -0.4410], +[ +0.3507, +0.5252, -0.1627, -1.4898, +0.2313, +0.5587, +0.2386, +0.3379, +0.0982, +0.0413, +0.3709, +0.4906, +0.0007, -0.4149, +0.4735, -0.1098, -0.5601, +0.2028, +0.3657, -0.4582, -1.6526, -0.4622, +0.3676, -0.5300, +0.1754, +0.0149, +0.1038, -0.2189, +0.1419, +0.4394, -0.3616, +0.2069, -0.7841, -0.3796, -0.7757, +0.5907, +0.1856, +0.1489, +0.4881, -1.1035, +0.0189, -0.1605, +0.6046, -0.6840, -0.5543, -0.0317, -1.1382, +0.0052, +0.3898, +0.5780, -0.1522, -0.3236, -0.4997, +0.1208, +0.3768, +0.5135, -0.2755, -0.1092, +0.2018, -0.2345, -1.4905, -0.1996, -0.2652, -0.1369], +[ -0.0105, +0.5400, +0.0687, +0.3213, -0.9347, +0.3641, -0.1674, -0.4105, +0.1847, -0.2406, -0.4423, -0.6186, -0.1456, -0.2169, +0.3144, -0.1460, +0.1520, +0.2036, +0.1390, +0.0801, -0.5625, -0.1819, -0.3711, -0.2140, -0.2649, -0.0028, +0.4067, -0.8796, -0.1423, -0.3487, -0.1759, -0.5259, -0.4894, +0.2141, -0.0896, +0.6119, +0.2727, +0.4561, -0.0039, -0.5774, -0.9105, -0.0751, +0.9462, +0.2550, +0.2783, -0.2219, -0.1080, -0.2208, -0.6883, +0.1096, -0.7935, -0.3954, +0.1652, +0.1019, -0.4601, +0.4553, -0.6417, -0.1358, -0.4737, +0.3128, -0.3267, -0.0540, -0.0633, +0.0747], +[ -0.2253, -1.2597, -0.2355, +0.7981, +0.4423, -0.6973, +0.1781, -0.4507, -0.4586, -0.6728, -0.0542, -0.9978, -0.0401, -0.1790, +0.0617, -1.1232, -0.1113, +0.1408, +0.1287, -0.2249, +0.2728, +0.4372, +0.1111, +0.0541, +0.0471, +0.6102, -0.1691, +0.0115, +0.4568, +0.0321, -0.8153, -0.2889, +0.2773, -0.3295, +0.4547, +0.0681, +0.3247, +0.0053, -0.2419, -0.1754, +0.4957, -0.6494, -0.1602, -0.1358, +0.2751, -1.3709, -0.3958, -1.4701, -0.0427, -1.6050, -0.3034, +0.2151, -0.6053, -1.0677, -0.5643, -0.7845, +0.3169, -0.8565, -0.3574, +0.2891, +0.1122, -0.2884, +0.0601, -0.4517], +[ +0.5794, +0.2631, +0.0298, -0.1887, -0.6058, +0.4974, +0.0394, +0.2606, -0.0979, +0.2046, -0.1194, +0.2263, -0.2702, -0.1877, +0.2569, -0.2315, -0.9000, -0.3146, -0.0264, +0.4439, -0.2352, -0.9247, +0.1092, -0.2865, +0.1680, +0.1662, -0.0617, +0.2461, +0.3578, +0.3580, +0.0366, +0.3635, -0.5039, -0.2711, +0.0653, +0.0065, -1.0248, -0.0090, +0.2204, -0.5041, -0.0247, -0.2344, -0.6278, -0.8120, -0.0303, +0.3207, -0.2989, +0.1933, -0.1498, +0.0319, +0.1813, -0.8244, -0.5803, +0.2969, +0.0516, -0.7916, +0.2017, +0.0585, +0.1980, -0.1696, +0.3148, +0.1424, -1.3858, -0.2667], +[ -0.1941, -0.6240, -2.0568, -0.4370, -0.2328, -0.0722, +0.1253, +0.2146, -0.3976, +0.1229, -0.1581, -0.0012, +0.1981, -0.0432, +0.3407, -0.6734, +0.3886, +0.6251, -0.5550, -0.1302, +0.4913, +0.2797, -0.5856, -0.5146, +0.0478, -0.3227, -1.5350, -0.0298, -0.0659, +0.3368, +0.3931, -0.0328, -0.9625, -0.2308, +0.2069, -0.8179, -0.0210, -0.2816, -0.0345, -1.0297, +0.2480, +0.3974, -0.8667, +0.1481, +0.3191, +0.2165, -0.3631, -0.5387, -0.0522, -0.0564, +0.2433, +0.3049, -1.3699, -0.0584, -0.2832, -0.6592, +0.0884, -0.2148, +0.0559, -0.9336, -0.2033, -0.4094, +0.3269, -0.4964], +[ +0.0753, +0.1742, +0.0289, +0.2070, +0.1448, -0.2884, -0.3095, +0.1798, +0.0199, -0.2820, +0.1938, -0.3718, -0.3645, -0.3529, -0.3720, -0.0512, +0.0513, +0.2669, -0.2589, +0.1347, -0.1360, +0.0911, +0.3276, +0.1716, -0.2404, +0.1529, +0.1362, -0.5175, -0.2299, -0.7689, -0.3936, +0.5067, +0.1310, -0.1135, -0.3412, +0.1108, +0.1786, +0.0673, -0.0204, -0.3017, -0.2068, -0.0664, +0.4354, -0.2405, -0.2007, -0.0767, +0.2006, -0.2971, -0.1813, +0.1541, +0.2968, -0.1119, +0.0695, -0.1098, -0.1175, +0.0256, -0.3372, +0.1161, -0.0643, -0.0223, -0.1124, +0.0984, -0.2127, +0.2459], +[ -1.0418, -0.7575, -0.4414, -0.7391, +0.5002, -0.1492, -0.4713, -0.9001, -0.1078, -0.1626, +0.1688, -0.3508, -0.0691, +0.0143, +0.4832, -0.5588, +0.1924, +0.2538, -0.1200, -0.0766, -0.5754, -0.1720, +0.6831, -0.3890, -0.0020, -0.6173, +0.5652, -0.2394, +0.5254, +0.6080, -0.6162, -1.4693, +0.4980, +0.4190, +0.0770, +0.7358, -0.1511, -0.4138, -0.0947, +0.1821, +0.0477, -0.9686, -0.0194, -0.2626, +0.6581, -0.2775, -0.4984, -0.2816, +0.4898, -0.7165, -0.2212, +0.3316, +0.3437, -0.3604, -1.0851, -1.0551, -0.5356, -0.8371, +0.0848, -0.4796, -0.3950, +0.3524, +0.6147, +0.0963], +[ -0.1117, +0.0358, +0.3472, -0.1657, -0.6318, -0.5969, +0.4199, -0.1558, +0.0856, -0.3948, -0.8222, -0.4227, -0.0461, -0.0458, -0.4246, -0.1711, -0.0217, +0.0392, -0.2153, +0.5657, +0.5179, +0.1690, -1.1408, -0.8345, -0.0868, +0.5821, +0.0440, -0.6810, -0.2952, +0.3344, +0.1719, -0.2792, -0.0611, -0.4510, -0.2232, -1.1814, -0.3142, +0.1828, -0.1726, -0.0683, +0.0175, +0.4286, -0.1024, +0.0233, -1.0238, +0.4454, +0.2450, +0.1602, -0.6960, -0.7975, -0.1214, -0.0340, -0.4455, +0.1809, -0.8249, +0.1098, -0.5579, +0.3200, +0.1753, -0.1689, +0.0027, +0.0572, +0.0126, -0.2266], +[ -0.1541, +0.2923, -0.2675, +0.0141, -0.2878, -0.2558, -0.6803, -0.4920, -0.0482, +0.2163, -0.2285, -0.1143, +0.1724, -0.2392, +0.0384, -0.7696, -0.5254, -0.2088, +0.4050, +0.1970, -0.2508, +0.1567, -0.1317, +0.2986, +0.1892, -0.7880, -0.0051, -0.1918, +0.1953, -0.0103, +0.2693, -0.5871, -0.7306, -0.0499, +0.0851, -0.5956, +0.4699, -0.0072, -0.1728, +0.1598, +0.0234, -1.2646, -0.1123, +0.0051, -0.0769, -1.4065, -0.1744, -0.0151, -0.2550, -0.1064, +0.1078, +0.0256, -0.4517, +0.2327, -0.0821, -0.1661, +0.0991, -0.4721, +0.2160, +0.3123, -0.2508, -0.8949, -0.6991, +0.3514], +[ +0.0703, -0.1692, -1.4867, -0.0076, -0.2931, -0.1692, +0.2276, +0.2554, +0.4607, -0.0033, -0.5308, -0.1111, -0.2342, -1.2702, -0.0528, +0.0717, -0.3220, -1.3547, +0.1024, +0.0170, +0.4253, +0.2123, -0.1259, -0.3122, -0.0105, -0.1530, -0.0172, +0.1871, -0.2647, -0.4114, -0.3456, +0.0040, -0.6042, -0.3889, -0.4615, -0.4490, +0.2165, +0.5019, +0.1494, +0.4083, -0.3297, -0.4118, -0.4185, -0.1609, -1.2773, -0.6846, +0.5723, -0.8063, -1.1917, +0.1809, +0.1200, +0.3350, -0.3911, -0.6569, -0.5049, -0.2564, +0.2318, -0.2522, +0.4132, -0.0193, +0.2003, +0.4302, -0.8441, -0.4850], +[ -0.0068, +0.1774, +0.0754, -0.1137, +0.1380, -0.1756, +0.0479, +0.1636, -0.0450, -0.0059, +0.0132, +0.0796, -0.0633, +0.1532, -0.5575, +0.0712, +0.3744, +0.0354, -0.0290, +0.4456, +0.2901, +0.4112, +0.3827, +0.4580, -0.1335, +0.3195, +0.4608, +0.6066, -0.3994, -0.8452, -0.9019, +0.8846, -0.7821, -0.3973, -0.7044, -0.5552, +0.1131, +0.1128, +0.2313, -0.0934, -0.1934, -0.2593, -0.1353, -0.4150, -0.3226, +0.3543, -0.1122, -0.7826, -0.3823, -0.1661, +0.3273, -0.2386, +0.3994, +0.2439, -0.1369, +0.1377, +0.6842, -0.1323, -0.1286, -0.7267, -0.1476, +0.2956, -1.1468, -1.1240], +[ +0.4587, -0.7120, -1.2147, +0.4533, +0.2276, +0.1187, +0.0242, -0.1101, -0.4575, +0.4281, -0.1702, +0.4025, -0.3204, -0.3382, +0.0152, -0.3671, +0.5063, +0.0993, -0.5994, +0.7286, -0.1769, +0.0241, -0.1544, -1.1380, -0.0154, -0.1003, +0.2631, -0.3019, -0.4871, -0.4790, +0.1549, +0.0706, -0.4589, +0.1127, +0.0359, -1.3804, +0.1469, +0.2458, +0.1503, -0.8209, +0.2133, +0.3083, -0.9755, -0.1969, +0.7787, +0.3313, +0.1551, -0.1931, +0.1911, -0.5686, +0.1347, +0.0831, -0.1930, +0.1631, -0.2833, -0.7028, -0.1118, +0.1533, -0.3999, -0.4258, -0.9083, -0.2582, +0.1941, +0.0233], +[ +0.0318, -0.8817, -1.4912, -0.0615, -0.2420, -1.2041, +0.2243, +0.0201, -0.4026, -0.0492, -1.1668, -0.4146, -0.1817, -0.3084, -0.1083, +0.1698, +0.2102, +0.4088, -0.0380, +0.1766, +0.1979, +0.1506, -0.0227, -0.3307, +0.0935, +0.1202, +0.1487, +0.3542, -0.3225, -0.8973, -0.2828, +0.2174, +0.0593, -0.3961, +0.5630, -0.6109, -0.2253, +0.4927, -1.3722, +0.5185, -0.2207, +0.0805, -0.4203, -0.4720, -0.6695, +0.5880, +0.2328, -0.2068, -0.6150, -0.2285, -0.7370, -0.7668, +0.3113, +0.2548, -0.5908, +0.0268, +0.0115, -0.6208, -0.2927, -0.3607, +0.1788, +0.1785, +0.3288, -0.2640], +[ +0.3848, -0.7088, -0.5749, +0.1465, -1.2500, +0.0894, +0.0777, +0.1599, -0.1955, +0.1559, -0.7550, +0.0516, -0.1624, +0.1289, -0.0537, -0.6007, -0.3695, -0.0942, -0.0091, +0.1988, +0.3324, -0.2406, -0.5028, -0.7058, -0.0122, +0.1081, +0.2517, +0.1361, -0.5815, +0.0485, +0.0734, +0.0126, +0.1104, +0.3183, +0.3643, -0.0232, +0.1123, +0.0566, -0.0732, -1.0371, -0.2023, -0.3095, -0.0496, +0.2435, +0.0358, +0.1252, -0.0470, +0.1997, +0.1537, +0.2705, -0.1455, -0.4738, -0.1437, -0.2477, -0.0010, +0.1878, -0.3148, +0.3925, +0.0561, -0.6492, +0.2474, +0.0362, -0.0897, -0.0669], +[ +0.4270, +0.3770, +0.1042, -0.1881, -0.1886, -0.3124, -0.1310, +0.4075, +0.1730, +0.1946, +0.0432, +0.4997, -0.2206, +0.0528, -0.2293, +0.0143, +0.3952, +0.0471, -0.4042, +0.2191, +0.2432, +0.2490, +0.3498, +0.1874, -0.1504, +0.4387, +0.1808, +0.4898, -0.3061, -0.3669, -0.6956, +0.2347, -0.3228, -0.6154, +0.1517, -0.1794, -0.5862, +0.2166, -0.0318, +0.1555, -0.5109, -0.2037, -0.0856, -0.7037, -0.3461, +0.5705, +0.3204, -0.3547, -0.2938, +0.1567, +0.1097, -0.0829, +0.1561, +0.1868, -0.1200, +0.0785, +0.3374, +0.6903, +0.3010, -0.6605, +0.1897, +0.5542, -0.3416, -0.4434], +[ +0.0792, -0.0354, +0.1346, -0.0867, -0.3061, -0.1105, -0.1961, +0.3380, +0.2322, +0.1389, +0.3620, +0.1611, +0.1719, +0.1811, -0.2072, +0.0334, -0.3774, -0.2193, +0.2164, +0.1568, +0.0684, +0.2052, +0.0536, -0.1594, +0.0561, +0.2893, -0.5556, +0.3248, -0.6442, -0.5264, -0.0596, +0.3401, -0.4276, -0.0385, -0.1273, +0.0564, +0.0775, +0.3581, -0.1403, +0.1570, -0.0367, -0.1462, +0.1820, -0.0586, -2.0140, +0.2617, +0.2951, -0.0837, -0.2212, +0.1362, -0.1088, +0.5008, -0.5582, +0.0823, -0.2323, -1.4969, +0.0935, +0.1385, +0.2140, -0.0230, -0.1270, -0.1048, +0.0824, +0.2496], +[ +0.2433, -0.2738, -0.6610, -0.0505, -0.2477, +0.3417, +0.5587, -0.5406, -1.0247, -0.2288, +0.3152, +0.1982, +0.0772, +0.1352, -0.4929, +0.2685, -0.2318, +0.0696, +0.0467, -0.2719, -0.2102, +0.3232, +0.6245, -0.0790, -0.0616, +0.0617, -0.1172, -0.1969, -0.2093, -0.2784, +0.6245, +0.0007, +0.4830, -0.2599, +0.4948, +0.6130, -1.0589, +0.6332, -0.0488, +0.2545, -1.2056, -0.5316, -0.0954, +0.3171, -0.2520, +0.2887, +0.0818, -0.1944, -0.2920, -0.1329, -0.5170, -0.2719, +0.0334, -0.2360, +0.4558, +0.3121, +0.4630, -0.5016, +0.2215, -0.5113, +0.4688, +0.3660, +0.3881, -0.0949], +[ -0.2656, +0.3331, +0.1076, +0.4581, -0.1431, -0.3597, -0.5184, +0.3444, -0.1091, -0.8341, +0.1024, -0.4100, -0.1841, -0.2893, +0.2359, -0.1603, +0.1739, +0.0252, -0.2123, -0.0169, -0.5213, +0.0193, +0.4833, -0.1353, -0.0798, -0.3748, +0.0164, -0.6037, -0.1706, -1.1654, +0.0855, -0.3299, +0.1365, -0.0167, +0.1727, +0.2777, -0.2126, -0.2516, -0.4917, -0.4254, -0.5338, +0.2868, +0.4736, +0.4043, +0.1799, +0.5764, -0.4045, +0.4918, +0.0200, +0.2983, +0.1779, +0.1119, -0.0803, +0.0530, -0.0388, -0.0848, -1.1362, -0.7623, -0.6830, +0.2258, -0.3375, -0.5304, -0.0166, -0.0452], +[ +0.3656, -0.0786, -1.3351, +0.4419, -1.4259, +0.3107, +0.1254, -0.3197, -1.0404, -0.0778, -0.7287, -0.8611, -0.0762, -0.8058, -0.1075, +0.0800, -0.3792, +0.0459, -0.0407, -0.0736, -0.0587, +0.0415, +0.0496, -0.1451, -0.0132, -0.0385, +0.1978, -0.3532, -0.2219, -0.6179, +0.8095, -0.9253, -0.0623, -0.8459, -0.2542, +0.1622, -0.5230, +0.4588, -0.5261, -0.4698, -0.3448, -0.7056, +0.0831, +0.5875, -0.4304, -1.2342, +0.1449, +0.3140, -0.8756, -0.6573, +0.2131, -0.5328, -0.0440, -0.2245, +0.0357, +0.4620, -0.5595, -0.3738, -0.7502, +0.1694, -0.1364, +0.0650, +0.0636, +0.0344], +[ -0.0606, +0.0726, +0.0580, -0.7201, +0.0616, -0.2663, -0.5110, -0.3657, -0.3247, +0.2932, +0.0176, -0.2670, +0.0671, +0.0998, +0.4772, -1.4650, -0.3015, -0.4687, -0.4883, +0.2534, +0.3658, +0.0559, -0.4296, -0.1036, -0.0094, -0.2585, +0.0756, +0.2631, +0.2918, -0.1307, -0.0181, +0.0034, -0.2567, -0.5368, +0.2606, -0.3876, +0.5663, -0.4215, +0.2809, +0.0201, +0.4246, +0.1693, -1.1285, -0.0438, -1.0839, -0.1515, -0.0892, -0.7921, -0.0792, +0.4657, +0.4911, +0.0949, +0.0362, +0.2820, -1.4115, -0.3908, +0.0311, -1.3656, -0.6728, +0.2379, -0.1602, -0.6410, +0.6788, -0.0510], +[ -0.5191, +0.3638, +0.0075, -0.0052, +0.3951, +0.1660, -0.0268, -0.1166, +0.8735, +0.3597, -0.3420, +0.1475, +0.2089, -0.2733, -0.1302, +0.0650, -0.1682, -0.6237, -0.1886, +0.1425, +0.1127, -0.0607, -0.8113, -0.4995, +0.0277, -0.1803, -0.2508, +0.0372, -0.3036, -0.4915, +0.1037, +0.0229, -0.2382, -0.2354, -0.1711, +0.1846, -0.8776, -0.0200, -0.4414, -0.1533, +0.0448, -0.2010, +0.0688, -0.3020, -0.0526, +0.1589, +0.3231, +0.2847, -0.8578, +0.2167, +0.0969, -0.2852, -0.6027, +0.1368, +0.1651, -0.2152, +0.1624, +0.3639, +0.1221, -0.4960, +0.1362, -0.0557, -0.4168, -0.2864], +[ +0.6175, +0.2864, -0.3944, -1.0445, -0.5126, +0.4037, +0.2065, +0.1380, +0.2727, +0.3778, +0.0995, +0.2318, -0.0628, +0.3280, -0.0223, +0.0671, -0.7848, +0.3413, +0.1067, -0.3424, -0.6270, -0.2365, -0.3945, -0.1812, -0.0288, -0.4210, -0.2331, +0.4286, +0.9716, +0.3043, -0.3778, +0.2830, -0.3521, +0.2004, +0.2613, -0.1126, -0.5060, -0.5227, -0.0945, -0.8172, -0.5810, +0.3176, -0.0357, -0.6075, -0.5641, -0.2488, -0.0749, -0.1395, +0.5087, +0.4870, +0.3374, -0.4190, -0.2451, +0.4110, +0.3360, -0.0793, +0.2368, +0.1880, +0.1418, -0.5637, -0.6581, -0.2530, -1.2775, -0.5173], +[ +0.2575, +0.5610, -0.5591, +0.4868, -0.6510, -0.4951, -0.1665, -0.7622, -0.4095, +0.0202, -0.4084, +0.7634, +0.0548, -0.1287, -0.5385, -0.5446, -1.2329, -0.5231, +0.0580, +0.1868, -0.5969, -0.4468, -0.3048, -0.6629, -0.0188, -0.4573, -0.2831, -1.3261, -0.3051, -0.4240, +0.2223, -1.0709, +0.0737, -0.0383, +0.1114, +0.4315, -0.8949, +0.2700, -0.0884, -0.0519, +0.1506, -0.5043, -0.9217, +0.1245, -1.1364, +0.3721, -0.0370, +0.0862, -0.4580, -0.1029, +0.0867, -0.1142, -0.1955, +0.2370, -0.1568, -0.8279, -0.0199, -0.5395, +0.0016, -0.5594, +0.1911, -0.2403, +0.4911, -1.0443], +[ -1.3302, -0.9338, +0.3871, -1.1495, -0.3531, -0.1944, -0.8389, -0.8362, -0.3735, -0.1939, -0.3993, -1.1031, -0.2929, -0.3900, +0.1848, -0.8209, -0.7968, -0.8029, -0.1552, -0.2470, -0.0961, -0.9054, -0.8644, -0.2718, +0.1205, -0.7466, +0.5260, -0.8186, +0.2249, -0.1852, +0.1637, +0.2386, -0.3861, -0.1152, +0.7676, -0.3567, +0.2007, -0.0614, +0.1410, +0.2211, -0.2671, +0.0567, +0.1667, -0.3056, -0.5998, -1.5851, -0.1660, -0.1601, +0.2225, +0.6939, +0.1670, +0.4183, +0.0228, +0.5104, -0.9676, -0.6234, +0.1827, -0.2717, -0.2918, +0.1188, -0.0111, -0.6147, +0.4209, +0.0278], +[ +0.1161, +0.2482, +0.2554, +0.4476, +0.0995, -0.4997, +0.2332, +0.9127, +0.3242, -0.8211, +0.0737, -0.1947, -0.1772, -0.6136, -0.5493, +0.2106, +0.1126, -0.3909, -0.0581, -0.0024, +0.1720, -0.2446, -0.1968, -0.1427, -0.1429, +0.2843, -0.5226, +0.4872, -0.0392, -0.2645, -0.6053, -0.5143, +0.4939, -0.1568, -0.1001, -1.0052, -0.5236, -0.1548, -0.4120, +0.2023, -0.5504, -0.2983, +0.0447, -1.5144, -0.1567, +0.2201, +0.1278, -0.2537, +0.1308, -0.1034, +0.6555, -1.3159, -0.5089, -0.1758, -0.3958, -0.5218, -0.1935, +0.2361, +0.2255, -0.7272, -0.0587, -0.2821, -0.3442, -0.7232], +[ -0.3517, -0.0203, -0.3070, -1.2829, +0.3473, +0.4040, -0.1731, -0.2593, +0.0120, -1.7168, +0.0700, +0.0111, -0.0112, +0.0938, -0.2550, -0.0387, -0.9967, -0.0670, -0.1163, -0.0396, -0.6377, -0.9166, +0.1814, -0.1000, -0.2425, -0.0557, -0.3294, +0.4148, +0.3240, +0.1026, -0.1858, -0.0817, -0.0452, +0.2382, -0.6017, +0.0693, +0.1167, -0.9697, +0.0599, -1.1097, -0.0638, +0.7294, +0.2900, -0.6312, -0.5011, +0.2075, +0.0598, -0.4969, -0.1090, -0.1907, +0.0369, +0.0796, -1.7630, -0.1289, +0.1517, -1.3118, -0.8149, -0.2056, +0.1837, -0.0746, -0.6321, -0.6908, -0.0132, +0.0751], +[ -0.6365, -0.6129, -0.0568, -0.9972, -0.1083, -0.5357, -0.1754, -0.4249, -0.3845, -0.4516, +0.1213, +0.6502, +0.1079, +0.2016, -0.2369, +0.2815, -0.3741, -0.0515, +0.1369, -0.3568, +0.1390, -0.7787, -0.1987, -1.0299, +0.1383, +0.1656, -0.7985, -0.6206, +0.3338, +0.0575, -0.7736, -0.2891, +0.1845, -0.3902, -0.4144, +0.4074, +0.1418, -0.3710, +0.2686, +0.0234, -0.2382, -0.4719, -0.0803, -0.5591, +0.3811, -1.2136, -0.8015, -0.3746, -0.0117, -1.8425, +0.0330, -0.2085, +0.1446, -0.1752, -0.5046, -1.0435, +0.1141, -0.0602, +0.4022, +0.4310, +0.2164, -0.1623, -0.1944, -0.1913], +[ -0.5695, -0.3372, -0.2433, -1.2988, -0.6181, +0.0353, +0.4011, -0.3847, -0.0820, +0.1582, -0.4111, +0.0552, +0.0906, +0.0849, +0.0692, +0.1922, -0.0549, -1.7126, -0.2257, +0.1049, +0.0016, -0.6541, -1.0900, -0.2897, -0.2057, -0.7505, -0.7495, +0.1641, +0.3909, -0.1974, +0.1989, -0.0289, -0.6525, +0.2379, +0.2185, -0.7424, +0.3704, -1.3808, -0.4839, -0.1950, -0.3002, -0.1963, +0.0819, -1.7138, -0.7822, -1.4837, -0.1470, +0.0372, -0.0416, +0.0395, -0.2169, +0.4130, +0.1063, +0.7070, -0.0286, -1.1673, -0.3685, -0.7736, +0.0467, +0.2205, +0.0719, -0.5629, -0.1000, -0.7227], +[ -0.0742, +0.2908, +0.0301, +0.2182, -0.0747, -0.1263, -0.1355, +0.2109, -0.2850, -0.5664, +0.1393, -0.3777, -0.1310, +0.1102, +0.3325, -0.1378, -0.0709, +0.1402, +0.0943, -0.0407, -0.3467, +0.0916, +0.2023, -0.1731, -0.1292, +0.1054, -0.0246, -0.2775, +0.0886, +0.3904, +0.0465, -0.5304, -0.0224, +0.1768, -0.2666, +0.2306, +0.1383, -0.7646, +0.0099, -1.2146, -0.9118, -0.5281, +0.1534, +0.3789, -0.0579, -0.1973, -0.1614, +0.6662, -0.3768, +0.3651, +0.4518, +0.1664, -0.1549, +0.1844, +0.1412, +0.0283, -0.7128, -0.8330, -1.7285, -0.1793, -0.2031, -0.1453, +0.2164, +0.2915], +[ -0.4528, +0.3647, +0.1067, -0.1699, -0.5783, +0.1129, -0.1196, -1.6987, +0.2552, +0.0092, -0.2868, -0.1119, -0.0707, -0.0441, +0.3715, +0.1826, -0.7670, -0.7732, +0.0356, -0.3435, -0.8718, -1.0227, -0.6381, -0.2767, -0.1146, -0.9304, -0.2226, +0.4722, +0.2540, -0.7784, +0.5070, +0.1428, -0.6285, -0.1488, -0.6175, +0.2040, +0.2312, -0.1978, +0.0764, -0.3868, +0.9002, +0.2344, -0.5108, -0.2623, -0.8658, -0.6194, +0.1982, -0.6725, -1.8083, +0.2282, +0.1429, +0.3556, -0.0452, +0.3160, -0.3793, -0.6729, +0.7203, +0.1603, -0.3994, -0.2190, -0.7442, -0.0352, -0.7935, -0.1473], +[ -0.8168, -0.0091, -0.0508, -0.4927, -0.6616, +0.4340, -0.2432, +0.4167, +0.3489, +0.8354, +0.2251, +0.0112, -0.0185, -0.6260, -0.2298, -0.0221, -0.6862, -0.2349, +0.2170, +0.1041, -0.6343, -0.8665, +0.1858, -1.4852, -0.0523, -0.8654, -0.5574, -0.3615, -0.3560, -0.3082, -1.4751, -0.5826, +0.1229, +0.0924, -0.1141, -0.0477, +0.1553, -0.3143, -0.5285, -0.7833, +0.2824, -0.4220, +0.1819, -0.2719, -0.0280, -0.6713, -0.8150, -0.5180, -0.1413, +0.2325, -0.3501, +0.0866, -0.2519, +0.3551, -0.4227, -0.1018, -0.9312, -0.2401, +0.4466, -0.2421, -0.4953, -0.9608, -0.3090, +0.0437], +[ -0.3678, -0.0514, +0.8817, -0.7280, -0.1600, +0.8120, -0.4446, -0.1063, -0.5102, +0.1453, -0.0061, -0.1726, +0.0986, +0.2938, +0.1933, +0.3513, +0.5222, +0.1550, -0.0421, +0.1425, -0.1413, +0.1639, -0.8166, -0.1317, -0.4997, -0.0874, -0.3524, -0.8873, -0.9856, +0.6431, +0.1933, +0.0048, -0.0601, +1.0241, +0.3887, -0.7046, +0.4948, -0.7165, +0.0877, +0.0682, +0.6019, +0.5806, +0.3123, -0.1842, -0.1036, +0.3439, -0.4009, -0.4758, +0.2913, +0.0956, +0.6178, -1.4622, -0.1621, -0.7775, -0.0004, +0.2367, -0.2088, -0.9526, -0.1860, +0.1470, +0.1572, -0.1658, +0.1708, +0.5259], +[ -0.2214, +0.1985, -0.1847, +0.5871, -0.3763, +0.0672, -0.1033, -0.0671, +0.1542, +0.0275, -0.5201, +0.1248, +0.1134, -0.3788, +0.0484, -0.5302, -0.0118, -0.8965, +0.0713, +0.0392, +0.1628, -0.0572, -1.8384, -0.3889, -0.2469, +0.4550, -0.0606, +0.0431, -0.0217, -0.4960, +0.1855, -0.1257, +0.2440, +0.0600, +0.2227, -0.6121, -0.2051, +0.0859, -0.4757, -0.2172, -0.1453, +0.1773, -0.3348, +0.1459, +0.1331, -0.0931, +0.0132, +0.2765, -0.3224, -0.7257, -0.0038, -0.1957, -0.6276, -0.1183, +0.0673, +0.3088, -0.0822, +0.1390, +0.4112, +0.0519, +0.3311, +0.2228, -0.4378, -0.5721], +[ -0.0147, -0.0421, +0.0189, -0.4632, -0.1887, +0.1763, +0.2966, -0.2942, -0.1684, +0.0008, +0.3991, -0.1310, +0.2420, +0.3445, +0.0718, -0.2459, -0.4664, -0.7893, +0.0726, -1.0375, -0.7542, -0.5141, +0.3281, -0.5370, -0.4788, -0.4261, +0.1905, +0.0993, +0.4738, +0.1131, +0.1462, -0.1149, -0.8987, -0.3439, -0.0783, +0.3170, +0.2363, -0.2870, -0.1533, -0.1604, +0.2246, -0.9061, -0.3147, +0.0034, -0.0893, -0.1349, -0.3582, +0.0769, +0.3767, -0.1624, -0.3113, -0.3842, +0.2768, +0.5184, +0.1937, +0.6202, +0.2389, +0.0061, +0.2531, -0.1111, -0.3178, -0.1828, -0.2073, -0.2022], +[ -0.1047, -0.1899, -0.0452, -1.5021, -0.0903, -0.5365, -0.7039, -0.8838, +0.0651, -0.0976, -0.5219, -0.2925, +0.1947, -0.0408, +0.0430, -0.5362, -0.3390, -0.2032, -0.3870, -1.5461, -0.4847, -0.8721, +0.0815, +0.0294, +0.0019, -0.1992, -0.0342, -0.7489, +0.3711, -0.1925, -0.3552, -0.0407, -0.0402, -0.4258, -0.1176, -0.6723, +0.4815, -0.2728, +0.1984, -0.4091, -0.3322, -0.0223, -0.4487, -0.6132, -0.7094, -0.5729, -0.3616, -1.4608, -0.1466, -0.2963, -0.1808, +1.0996, -1.1116, +0.0384, +0.1127, -1.0002, -0.3117, -0.4126, +0.1461, -0.2834, +0.1687, -1.2180, +0.8404, +0.3414], +[ -0.2871, -0.2753, +0.3318, -0.0631, -0.0329, -0.2655, +0.1154, +0.1341, -0.3528, -0.4633, -0.4270, +0.1776, +0.1154, -0.0745, -0.3922, +0.0375, +0.0055, +0.4779, -0.1397, -0.5729, -0.1113, +0.0881, -0.0655, -0.4586, -0.0322, +0.1184, -0.5583, -0.4987, -0.0660, -0.1451, +0.1862, -0.8150, +0.8184, -0.0894, -0.3762, -0.5304, -0.5791, +0.0317, -0.2269, +0.2771, -0.1284, -0.3164, -0.5405, +0.1469, -0.8860, +0.4223, +0.1829, -0.3194, -0.4208, +0.4972, -0.7205, -0.7719, -0.3450, +0.5980, -0.1395, -0.3528, -0.1897, +0.1412, +0.1881, -0.0785, +0.3184, -0.3845, -0.3870, -0.1074], +[ -0.0549, -0.1759, -1.4543, -0.4064, -0.4019, +0.0416, +0.2107, -0.9047, -0.5796, +0.0453, -0.2060, +0.7131, +0.1083, +0.0712, +0.0948, -0.7550, -1.0484, -0.1334, -0.3905, +0.3899, -0.6879, -0.9365, +0.3175, -0.2515, -0.0216, -0.6523, -0.5432, -0.3200, +0.2436, +0.4666, +0.2695, +0.6725, -0.3633, -0.4047, +0.0874, +0.2482, +0.0669, +0.0321, -0.0457, +0.2833, +0.4448, -0.1799, +0.0688, +0.0473, +0.0295, +0.4890, -0.1082, -0.2163, +0.2725, -0.0772, -0.0288, +0.4464, -0.2413, +0.0908, +0.3795, -0.7329, +0.0918, -0.0568, +0.4359, -0.1642, -0.4720, -0.6958, +0.3310, -0.9285], +[ -0.3428, +0.3394, +0.2910, +0.0395, +0.1968, -0.3811, -0.3117, +0.2441, +0.2823, -0.4930, +0.1645, +0.1595, -0.2763, +0.2406, -0.3192, -0.4154, -0.2809, +0.0606, -0.1039, +0.2498, -0.4704, -0.1710, -0.3512, -0.0781, -0.1085, -0.2105, -0.1707, +0.1695, +0.2557, -0.8382, -0.4814, -0.3560, +0.0130, -0.0411, -0.5253, +0.1622, +0.0977, -0.3241, +0.3357, -1.1972, -1.0786, +0.0531, -0.0801, -0.1700, -0.1637, -0.3555, +0.0159, +0.3452, -0.2490, -0.0398, +0.3255, +0.0474, -0.2646, +0.2222, -0.0094, -0.4791, -0.7316, -0.1143, -0.5465, -0.2249, -0.4003, -0.4671, -0.0495, +0.1696], +[ -0.4032, -0.7569, -0.6099, -0.1711, -0.8909, +0.2922, +0.1176, -0.3625, -1.0356, +0.2123, -0.6401, +0.1968, -0.3508, +0.1569, -0.0021, -0.8648, -0.0136, +0.0362, -0.4099, +0.0140, -0.3279, +0.0350, +0.1094, -0.4495, -0.1535, -0.8482, -0.3956, +0.0348, -0.8475, -0.1615, +0.4068, +0.2318, -0.3285, -0.4544, +0.3332, +0.4241, -0.1228, +0.1105, +0.2951, -0.1227, -0.0585, -0.1504, +0.0110, -0.4835, +0.0051, +0.2351, -0.7890, -0.3031, -0.1653, -0.0390, -0.2326, -0.3724, +0.1074, +0.0847, -0.0288, -0.0392, +0.1232, +0.3832, -0.0923, +0.2702, -0.0836, -0.6782, +0.1941, -0.5479], +[ -0.0042, -0.1946, -0.1632, +0.2652, -0.3281, -0.5539, +0.1933, -0.5138, -0.7291, -0.0916, +0.0651, -0.0960, -0.0087, -0.6420, -0.1012, -1.2801, +0.0314, +0.3125, -0.1892, +0.0743, -0.2332, +0.0198, +0.1641, +0.1603, +0.0527, -0.1782, +0.2653, -0.9144, -0.2789, +0.2436, -0.0685, +0.8306, -0.1436, -0.3050, -0.1886, +0.1350, -1.0503, -0.2253, -0.2741, +0.2681, -0.4613, -0.7832, +0.5836, +0.0801, -0.5491, +0.1075, +0.3780, +0.3248, -0.2623, +0.0749, +0.1353, -0.6015, +0.3448, -0.0809, +0.0375, +0.2001, -0.2588, -0.2804, -0.2702, +0.2283, +0.1124, +0.4594, -0.4324, +0.1485], +[ +0.1532, +0.2848, -0.2427, +0.4166, +0.0042, -0.3085, +0.1124, +0.2537, +0.1375, -0.2485, -0.0234, -0.0071, -0.0783, -0.2518, +0.1560, -0.5850, +0.1183, -0.0517, -0.1053, +0.3356, +0.3028, +0.2722, +0.1897, +0.2332, -0.3597, +0.5258, -0.0684, -0.0984, -0.2643, -0.5880, +0.1289, +0.0015, -0.1563, -1.0911, -0.2512, -0.4506, +0.0817, +0.1627, -1.0543, +0.6363, -0.2562, -0.5514, -0.2316, +0.0717, -0.1111, -0.1945, +0.1628, -0.0464, -0.4399, -0.2649, +0.1594, +0.0358, -0.1435, +0.1108, +0.1648, +0.4697, -0.0951, +0.1059, -0.5489, -0.4333, -0.0550, -0.2629, -0.9481, -0.0023], +[ -0.1565, +0.0574, -0.2594, +0.1234, +0.1356, -0.2661, +0.3433, +0.2905, -0.1498, -0.0338, +0.3885, -0.0082, +0.0051, -0.8434, +0.2996, -0.1082, -0.2098, -0.4112, -0.1268, -0.1134, +0.2039, +0.0491, -0.0465, -0.5719, -0.1081, -0.0628, -0.5965, +0.3252, -0.0130, -0.3893, -0.0323, +0.1651, -0.5723, +0.4407, +0.0223, -0.1040, -0.2432, +0.0811, -0.1804, +0.2986, +0.0872, -0.0198, +0.1289, -0.7460, -0.4659, +0.3831, -0.0848, -0.8659, -0.4278, +0.1593, -0.2717, -0.2745, -0.4147, -0.4569, -0.4038, -0.3464, +0.0218, -0.1718, +0.2309, +0.1343, +0.2253, -0.1355, -0.4830, -0.4628], +[ +0.0450, -0.7682, -0.5959, +0.1884, -0.3429, -0.2553, +0.7554, -0.1022, +0.4099, -0.1219, -0.2093, -0.0878, +0.0561, -0.5284, +0.0385, -0.7532, +0.5020, -0.9372, -0.1928, -0.3592, -0.0536, -0.1005, -0.1540, -0.2265, -0.1188, +0.1608, +0.1528, +0.2769, +0.5073, -0.1996, -0.1063, +0.1040, -0.8756, -0.0927, -0.0733, -0.4302, -0.4747, +0.4669, -1.0292, -0.2093, -1.6550, -0.7398, -0.0037, -0.0352, -0.7409, +0.0588, +0.1492, +0.1683, -0.3111, +0.1539, -0.2438, -0.8038, +0.1800, +0.0742, +0.2182, +0.2555, +0.1701, -0.2382, -0.0567, -0.2451, -0.3627, -0.0496, -0.0007, +0.0642], +[ -0.0198, -0.7084, -1.7288, +0.0023, -0.6159, -0.3045, +0.2740, -0.6177, -0.9246, -0.7641, -0.0082, -0.1067, -0.1914, -0.1873, +0.3149, -0.3414, +0.2478, +0.5272, +0.0465, -0.2181, +0.2295, +0.1319, -0.0236, -0.2259, -0.3665, +0.1407, +0.5191, -0.2611, -0.0468, +0.2089, -0.1337, -1.2692, +0.2063, -0.2235, +0.2870, -1.0765, +0.2921, +0.0708, -0.8893, +0.1605, -0.4512, -0.1917, -0.1650, -0.1710, +0.2144, -0.1577, -0.0188, -0.2185, -0.2129, -0.3773, -1.1166, -0.8290, +0.2877, +0.1461, -0.1932, +0.4364, -0.2597, -0.6060, +0.3258, -0.1753, +0.3740, +0.1653, +0.3116, +0.1972], +[ -0.5676, -0.1738, +0.0645, -1.0766, +0.5088, -0.2353, +0.1632, +0.0342, +0.6782, -0.1393, -0.1100, -0.4369, +0.1336, +0.2995, -0.5347, +0.4146, -0.0427, -0.2986, -0.0927, +0.0586, +0.5212, -0.0742, -0.0939, -0.4191, -0.0830, -0.0546, -0.3702, +0.6367, +0.0227, -0.0992, -0.2374, -0.0286, -0.3807, +0.0304, -0.2574, +0.0564, +0.0096, +0.1621, +0.1392, -0.3874, -0.0431, +0.2932, +0.3008, -0.3351, -1.0291, +0.9737, +0.1879, +0.4559, -0.2085, +0.1174, +0.6974, +0.1809, -1.4216, -0.7912, -1.2257, +0.1453, -0.2233, +0.3229, +0.4583, +0.0773, -0.7117, -0.3845, +0.1082, +0.0987], +[ +0.0781, -0.0814, +0.8480, +0.2264, -0.4587, -0.3083, +0.1459, +0.4196, +0.3756, -0.1326, +0.0951, -0.2471, -0.1196, -0.8551, +0.0014, -0.2029, +0.2577, +0.2734, -0.0681, -0.4470, +0.5168, +0.1951, +0.0949, -1.0213, -0.0389, +0.2296, +0.4116, +0.1783, -0.4069, -0.2838, -0.1370, +0.0335, -0.0403, -0.0137, +0.4868, +0.1037, +0.3783, +0.1564, -0.1589, +0.3586, +0.0252, -0.2580, +0.1670, -0.4183, -0.0371, +0.0142, +0.2253, -1.0320, -0.2583, -0.1020, -0.2032, -1.3460, +0.5840, -0.0893, -0.6009, +0.5548, -0.0857, -0.0794, +0.3571, +0.0167, +0.0949, +0.1082, -0.2736, -0.3984], +[ +0.1488, +0.0836, -0.1156, -0.0946, -0.6624, +0.3870, +0.1203, +0.2345, +0.5957, -0.0864, +0.0939, +0.3911, -0.3770, -0.7077, -0.1206, -0.2049, -0.5693, -1.1134, -0.1524, +0.1622, -0.1211, -0.6374, -0.6248, -1.2622, +0.0899, -0.1572, -0.2152, +0.6604, +0.7116, -0.3532, +0.2550, +0.6011, -0.1052, +0.2644, -0.0520, -0.2045, -1.3817, +0.4718, +0.1422, -0.1959, -0.4853, +0.3969, -0.1666, -1.0437, -0.2013, -0.4767, -0.2118, +0.4010, -0.4163, +0.5423, -0.0842, -0.4901, -0.3661, +0.3607, +0.4009, +0.0245, +0.2585, +0.3218, +0.3151, -0.4333, -0.9903, -0.3832, -0.6528, -0.9357], +[ +0.2625, -0.3163, -0.7011, -0.4750, -0.2169, -0.4875, -0.7199, +0.4407, +0.0992, +0.3363, -0.3765, +0.1178, -0.1361, +0.0589, -0.2783, -0.0918, +0.8017, -0.1301, -0.0942, +0.5582, +0.3169, -0.1525, -1.0656, -0.9893, +0.0477, +0.0623, -0.8920, +0.7155, +0.1733, +0.6024, -0.1510, -0.2588, -0.9339, +0.0646, +0.1528, -1.4100, -0.4579, +0.1205, +0.1494, -0.5505, +0.2527, +0.6798, -0.0354, +0.1972, -0.0864, -0.0724, +0.4457, -0.1612, -0.0747, -0.8515, +0.5947, +0.0358, -1.5359, -0.0754, +0.1504, +0.1272, -0.2733, -0.6504, +0.1311, -0.6455, +0.3241, -0.7097, -0.2899, +0.1537], +[ -1.1608, -0.5298, -0.8712, +0.1991, -0.3332, +0.3643, +0.0401, -0.4816, +0.3851, +0.2349, -0.6814, +0.1716, -0.2337, -0.0912, +0.4335, -0.1547, -0.4001, +0.3222, -0.1337, +0.3072, +0.2498, -0.2764, -0.8538, -0.2515, -0.0439, +0.1265, -0.5853, +0.0693, -0.4379, +0.1737, +0.3439, -0.7150, +0.3867, +0.3087, +0.4529, -0.6548, -0.2920, -0.0996, -0.9976, -0.3262, +0.7263, +0.7688, -0.9637, +0.0227, +0.3281, +0.2599, -0.6599, -0.0804, +0.2021, -0.4105, -0.8758, +0.5409, -0.3671, -0.0064, +0.3239, -0.5062, -0.1013, +0.0167, -0.2186, -0.4367, -1.0176, -0.3509, -0.0338, -0.1166], +[ -0.2009, -0.0097, -0.3805, +0.5547, +0.0211, -0.1902, +0.2175, +0.2475, -0.1842, -0.5084, +0.4752, +0.4515, -0.0791, -0.5530, -0.1438, +0.0275, +0.0589, +0.2926, +0.0454, -0.1496, +0.1475, -0.1997, +0.1834, -0.5198, +0.0427, -0.2978, -0.2438, +0.0810, +0.3660, +0.0816, -0.5628, -0.0037, +0.4582, +0.5978, -0.0285, +0.1455, -0.7267, -0.5732, -0.0079, -0.0751, -0.8395, -1.2686, +0.2954, -0.2310, +0.4056, -0.0743, -0.2228, +0.0327, +0.2061, +0.2131, -0.2174, +0.1368, -0.5607, -0.1470, +0.2396, -0.4317, +0.5534, -0.3621, -0.1064, -1.2382, +0.3209, -0.1634, -0.9480, +0.3144], +[ -0.1292, -0.5636, -0.0849, +0.2092, -0.1442, -0.2223, +0.1724, -0.6844, -0.8701, -0.3775, -0.3263, -0.2123, +0.0666, -0.6740, +0.4411, -0.6332, +0.3243, +0.2527, -0.0565, +0.1122, +0.4365, +0.2004, +0.5247, +0.2099, -0.0063, +0.1774, +0.5491, -0.4683, -0.0755, +0.6953, +0.0733, -0.6102, +0.1488, -0.2186, +0.4960, +0.2464, -0.2218, -0.2068, -0.5311, +0.4264, +0.5527, +0.2815, -0.3011, -0.2885, +0.1760, -0.4510, +0.2082, -0.3399, -0.2715, -0.2917, -0.4012, -0.6663, +0.6144, +0.3065, -0.6742, +0.2289, +0.0560, -0.6837, +0.0275, -0.1482, +0.6406, +0.1464, +0.0440, +0.3607], +[ -0.2100, -0.3766, -0.3248, -0.0815, -0.0021, -0.0053, +0.1080, +0.1588, -0.0212, +0.0710, -0.1382, +0.0091, +0.0343, -0.8511, -1.4211, +0.4568, -0.2851, -0.6204, +0.1094, -0.5432, -0.0860, -0.2730, -0.6808, -0.3779, -0.1227, -0.1347, +0.0673, +0.0427, -0.4947, -0.0973, -0.3803, -0.1468, +0.1988, -0.2611, -0.6531, -0.1605, -0.9337, +0.5437, +0.0989, +0.1534, -0.4737, -0.8900, -0.6949, -0.1503, -0.9317, +0.3230, +0.2311, -0.3696, -0.4520, -0.7193, +0.6298, -0.2834, +0.5434, -0.5763, +0.3341, -0.1008, +0.2521, -0.1212, -0.2856, +0.0286, +0.1565, -0.1973, -0.9579, +0.2266], +[ -0.3733, -0.5246, -1.0401, -1.1247, +0.5040, +0.1447, -0.3600, -0.5734, -0.9212, -0.3597, +0.2485, -0.3560, -0.0752, -0.8746, +0.4507, -0.5267, +0.1474, +0.3419, +0.0363, -0.7705, -1.6857, -1.1070, +0.2625, -1.0731, +0.1143, +0.1023, -0.9064, -0.5451, -0.5312, +0.0702, -0.2498, -1.3055, +0.1746, +0.5512, -1.0339, +0.1665, -0.0061, +0.3917, +0.3936, -0.0938, -0.3131, -0.5685, +0.1470, -0.5130, +0.4499, -0.3169, -0.1906, -0.3272, +0.1276, +0.3542, -0.8497, +0.0924, +0.2336, +0.0205, +0.5533, -0.6078, -0.0380, -0.9867, +0.3744, -0.4039, -0.2097, -0.6184, -0.4652, +0.0281], +[ -0.7440, -1.0423, +0.2391, -0.7264, +0.6529, +0.1477, -0.6196, -0.4762, +0.0692, -0.4353, +0.6195, -0.3501, +0.0457, +0.5445, +0.3201, +0.5907, +0.1408, +0.5189, +0.2457, -0.1996, -0.0750, -0.8873, -0.3630, -0.2106, -0.0367, +0.3119, -0.3941, -0.7667, +0.2979, -0.1940, -1.1527, -0.7601, +0.3334, +0.7463, +0.0006, +0.5900, +0.4330, -0.2191, +0.1961, -0.1740, -0.0606, -1.9663, -0.0980, -0.3602, +0.2108, -0.8138, +0.2321, -0.0849, +0.5843, -0.1114, +0.1376, +0.0711, -0.2334, -0.4425, -0.4017, -0.9668, -0.2785, -1.0386, +0.1323, -0.3491, -0.1183, -0.1991, +0.1755, +0.2324], +[ -1.6279, -0.5764, -0.5582, -0.1969, -0.2668, +0.0346, -0.5277, -0.4330, -0.3943, +0.3645, -0.1540, +0.0062, -0.0567, -0.0784, +0.1743, -0.9562, -0.4454, +0.0533, -0.1731, +0.1988, +0.1024, +0.5358, -0.4556, -1.0002, -0.1435, -0.2930, -0.4634, -0.2278, -0.3642, +0.3626, +0.5493, +0.1137, -0.1669, -0.4225, +0.0216, +0.4361, -0.1621, -0.1015, -0.0550, -0.3966, +0.5804, +0.1967, -0.3464, +0.0925, +0.3493, +0.1171, -0.3405, -0.0503, +0.1499, -0.3313, -0.0033, +0.0960, -0.6710, +0.2601, -0.1169, -1.5937, -0.0615, -0.1506, -0.2239, +0.1024, -0.2309, -0.4043, +0.4463, -1.0894], +[ -0.2373, -1.4598, -0.1174, -0.1045, +0.4946, -0.5140, +0.0110, -0.6460, -1.3452, +0.4370, -1.0515, -0.7801, -0.2640, +0.0359, -0.0097, -0.4043, +0.1002, -0.0268, -0.0773, -0.0390, +0.0679, -0.2875, -0.9561, -0.2837, -0.1344, +0.1141, +0.2607, -0.1805, -0.2482, +0.4783, -0.0732, -0.3817, +0.3229, -0.1179, +0.3825, -0.3490, +0.6231, -0.3663, -0.2762, +0.1450, -0.0651, +0.3529, -0.6646, -0.0485, +0.6340, -0.1721, -0.0388, +0.1370, +0.3559, -0.1751, -0.3544, -0.2360, +0.1969, -0.0265, -0.5621, +0.1465, -0.5286, -0.0378, -0.3572, -0.2107, +0.1881, -0.3776, -0.1373, -0.2395], +[ -0.0932, -0.1324, -0.7774, +0.7236, -0.0517, +0.2264, -0.0171, -0.3843, -1.8551, -0.2552, +0.2186, -0.1668, -0.0405, -0.7226, +0.3290, -0.4577, +0.6845, +0.2283, +0.0772, +0.3389, -0.1607, +0.2051, +0.2808, -0.1648, -0.1542, -0.1327, +0.3047, -0.1349, -0.3720, +0.5004, +0.1875, -0.3262, +0.7620, +0.2608, -0.6428, +0.5077, -0.8593, +0.1150, -0.6590, +0.5739, -0.3998, -0.2555, +0.4572, +0.5381, +0.2333, -0.3406, +0.3267, -0.2062, -0.4765, +0.0695, -0.7520, +0.3144, +0.2924, +0.0593, -0.2462, -0.2207, +0.1864, -0.6530, +0.3565, -0.2062, -0.0916, +0.1603, -0.1901, +0.0146], +[ +0.5634, +0.0527, -0.4892, +0.2440, -0.1720, +0.2785, -0.4833, +0.1367, -0.1087, -0.1074, -0.2101, +0.2272, -0.2405, +0.2242, +0.4896, -0.5147, +0.1469, +0.2632, -0.2786, -0.5737, -0.2000, -0.3146, +0.1852, -1.6770, -0.0606, -0.6669, -0.6540, +0.3910, +0.1855, +0.2526, -0.2044, +0.2109, -0.5512, -0.2409, +0.1259, +0.5317, -0.5607, -0.0788, +0.0273, -0.1690, +0.1662, +0.0275, -0.4170, -0.7013, -0.0454, +0.4406, -0.5298, -0.3473, +0.0638, -0.3749, +0.2545, +0.5678, +0.5063, +0.3236, -0.7996, +0.3285, -0.1605, +0.6192, +0.1014, +0.1821, -0.5310, -0.5324, +0.1416, -0.3316], +[ -1.1046, -0.7047, -0.2575, -0.7403, -0.7298, -0.2453, -0.3595, -0.4102, -0.3522, +0.5069, -0.3525, +0.0370, +0.0301, +0.2036, +0.1020, -0.2437, +0.2750, +0.4183, -0.0769, -0.2143, +0.4041, -0.1546, -0.3924, -0.4053, -0.1305, -1.6502, -0.5113, -0.4471, -1.4570, +0.0472, +0.2965, +0.2012, -1.2503, -0.4947, +0.0608, +0.0305, +0.2824, -0.0230, -0.5519, +0.3479, +0.1785, -0.3687, -0.1119, -0.2599, -0.3071, -0.4963, -0.8701, +0.0014, +0.2138, -0.1607, -0.7962, -0.3856, +0.0298, +0.2767, -0.5021, -0.8125, +0.1187, -0.2955, +0.0602, +0.2604, +0.1913, -0.7938, +0.4153, -0.4320], +[ -0.1053, -0.4955, -0.7817, +0.4661, -0.5876, -0.0594, +0.3703, +0.0458, -0.2497, +0.1020, +0.4331, -0.1484, -0.1813, -0.4629, +0.4557, +0.1618, -0.1633, -0.0155, -0.0498, +0.2643, +0.4639, +0.2317, +0.0692, +0.2114, +0.0785, +0.3615, +0.3779, -0.1974, -0.2165, +0.0856, +0.0563, +0.1860, -0.7703, +0.0791, +0.0535, +0.1625, +0.1107, +0.1564, +0.0604, +0.5328, +0.2965, -0.4956, -0.0350, -0.8169, -0.1578, -0.3033, +0.3697, -0.2652, -0.0895, +0.2893, -1.2192, -0.3056, -0.5532, -0.6461, -0.9112, -0.5628, +0.5037, +0.0736, +0.1086, +0.0716, +0.5142, +0.1312, -1.4517, -0.9905], +[ -0.9468, -0.7466, -0.6471, -0.1362, -0.8800, +0.5892, +0.5213, -0.6689, +0.2229, -1.6990, -0.1504, -0.1068, +0.0205, +0.2356, +0.5575, -0.4093, -0.0981, -0.9981, +0.0432, -0.6207, -0.0574, -0.1144, -1.5140, -0.3693, -0.1618, +0.3839, -0.1877, -0.2322, +0.0598, +0.2673, +0.3659, -1.0235, +0.0875, +0.3404, -1.0691, -1.6803, -0.2115, -0.6276, -0.5968, -0.7992, +0.0821, -0.6022, -0.0708, +0.2164, +0.5098, -0.1063, -0.2642, +0.3782, +0.3025, -0.7081, +0.1065, -0.5805, -1.1473, -0.4245, +0.3123, +0.2769, +0.4162, -0.4652, -0.7961, +0.0205, +0.1451, -0.4086, -0.1521, -0.2852], +[ -0.7144, -0.0732, -0.2513, -0.5200, +0.2989, +1.0393, -0.0999, +0.6432, -0.2806, -0.3070, +0.5141, -0.0163, -0.0070, -0.5330, +0.1894, -0.1748, -0.2329, +0.3600, +0.4255, -0.6582, -1.3598, -0.8585, +0.1014, -0.4106, -0.0970, +0.1253, -0.1873, -0.3545, +0.2180, +0.3920, -0.5099, +0.0616, -0.3497, +0.2023, -0.8214, -0.1101, +0.6518, -0.4036, +0.1847, -1.2271, +0.2813, -1.0571, +0.6299, +0.2067, -0.6461, -0.6766, -1.4846, +0.0878, +0.6149, -0.1618, -0.3680, -0.4017, -0.7612, -0.2911, -3.0760, -0.0799, -0.6366, -0.2699, +0.3534, +0.0080, -1.2127, -0.5772, -0.8138, -0.3230], +[ +0.0332, +0.2400, -0.4718, +0.1539, +0.1194, -0.0690, +0.2228, +0.1942, +0.1187, +0.2018, +0.4571, +0.3205, -0.2239, -0.5064, +0.1089, -0.1322, -0.4595, -0.4284, -0.1388, -0.0142, -0.0337, -0.1693, +0.3553, -0.6581, -0.0025, -0.1231, -0.4583, +0.2712, +0.1195, +0.1075, -0.1298, +0.1162, +0.2405, +0.1785, -0.0615, -0.0789, -0.5330, -0.1870, -0.0264, -0.0452, -0.1919, -0.0952, +0.3738, -0.2498, -0.2696, +0.4355, +0.1340, -0.4136, -0.2625, +0.1043, +0.2227, -0.2964, +0.0329, -0.0459, +0.3446, -0.3150, -0.0285, -0.1389, -0.0620, -0.3741, -0.0209, +0.0344, -0.4535, +0.3100], +[ -0.3163, -0.4723, -0.0250, -0.0141, +0.4464, -0.1986, -0.6116, -0.0829, -0.1127, -0.1741, +0.3716, -0.5599, -0.0702, +0.4810, +0.2091, -0.0865, +0.1534, -0.2891, -0.3830, -0.1924, -0.0542, -0.0241, -0.1366, +0.0385, -0.1856, +0.5328, -0.4052, -0.5755, -0.2612, +0.0013, -0.0076, -0.2590, +0.3901, -0.4172, -0.1419, +0.0362, +0.1212, -0.3479, -0.1679, -0.0086, -0.1725, +0.0736, +0.0087, +0.1469, +0.0006, +0.1689, -0.3634, -0.1821, +0.3467, -0.2033, -0.1277, +0.1919, +0.1260, -0.1244, -0.2993, -0.0904, -0.1687, +0.3754, +0.2097, -0.5879, -0.0770, +0.0359, +0.2110, -0.1712], +[ -0.3661, -0.2717, +0.1113, +0.2665, -0.0972, -0.5824, +0.2890, -0.1308, -0.0929, -0.0011, +0.2813, -0.1148, +0.0119, -0.0529, -0.0646, -1.4966, +0.4980, +0.0945, +0.1389, -0.4049, -0.2027, -0.0673, +0.1332, +0.7332, +0.1248, -0.0770, +0.6605, -0.8541, -0.0439, -0.1973, -0.4820, -0.0423, -0.2129, -0.0853, -0.6524, -0.0321, -0.0372, +0.3873, +0.0421, -0.4772, -0.5575, -0.5932, +0.1917, +0.2110, +0.1637, -0.3029, -0.2104, -0.0282, -0.7481, +0.0828, +0.0379, +0.2106, -0.0853, -0.2235, -0.1073, +0.5198, -0.2518, -1.3097, -0.3292, +0.1675, +0.0255, -0.1867, -0.6809, -0.4100], +[ +0.3530, -0.2818, -0.8931, -0.6490, -0.0029, -0.0079, +0.6413, -0.4325, -0.2703, -0.5681, +0.2736, -0.2060, -0.2772, +0.0567, -0.1602, +0.0456, -0.2931, +0.1224, +0.0146, +0.6612, +0.0332, -0.2383, -0.3551, -0.4960, +0.0080, +0.0682, +0.2126, +0.0375, -0.1039, +0.2998, -0.4285, +0.1969, +0.2692, +0.2157, +0.1096, +0.1654, -0.6327, +0.4191, -1.3065, +0.1224, +0.5497, +0.2013, +0.1524, +0.0798, -0.0325, -0.2407, -0.2019, -0.7491, -0.3803, -0.1791, -1.0558, +0.3998, -0.2989, +0.1077, -0.4348, +0.0519, -0.2329, -0.1133, +0.0053, +0.2635, -0.4516, -0.0578, -0.3698, -0.1016], +[ +0.6371, -0.1203, +0.0076, -0.8131, -0.0454, -0.8196, -0.9530, +0.0536, -0.0904, -0.6379, +0.0735, +0.4852, -0.0525, +0.5745, +0.1264, -0.3008, -0.7915, -0.0787, +0.1571, +0.1630, -0.3364, -0.1717, +0.5771, -0.6814, -0.2517, -0.3498, -0.3729, -0.4342, -0.5237, -0.6116, -0.1791, -0.0410, +0.0610, -0.2450, -0.8010, +0.5793, -0.5352, +0.1076, -0.1877, -0.1534, +0.3871, +0.0020, +0.1915, -0.3309, +0.0250, -0.5323, -1.2959, -0.9239, +0.2443, +0.0734, -0.2273, +0.0469, +0.2829, +0.2647, -0.5502, -0.4885, -1.0957, +0.1740, +0.1821, -0.6767, -0.2402, -0.3386, +0.1601, +0.3032], +[ -0.9192, +0.1419, -0.0422, -0.8396, -1.4337, -0.4047, +0.4867, -0.1729, +0.0987, +0.2949, -0.1027, +0.1376, +0.0276, -0.3454, +0.1000, +0.1415, +0.1384, -0.4045, -0.3747, -0.0164, +0.2935, -0.1466, -0.1396, +0.0236, -0.0539, +0.1790, -0.2958, +0.2800, -0.6574, +0.0546, -0.3582, -1.0463, +0.1917, +0.1586, -1.2121, -0.7189, -0.4901, +0.6121, -0.2627, +0.1610, -0.0404, +0.1463, -0.2310, -0.3012, +0.1397, +0.8620, -0.0025, -0.9045, -0.4128, -0.1460, +0.3187, -2.0256, -0.4127, +0.2568, +0.7488, -0.0511, -0.1044, +0.0262, +0.2524, +0.0832, +0.2267, +0.2748, -0.4902, +0.3688], +[ +0.1430, +0.0566, +0.6816, -0.3206, -1.4961, +0.1194, +0.6902, +0.0898, -0.2031, +0.1232, +0.0439, +0.1807, -0.0578, -0.0846, -0.1607, +0.0681, -0.0610, -0.5653, +0.0072, -0.5820, -0.0853, -0.3235, -0.4972, +0.0032, -0.2038, -0.2900, -0.1359, +0.0540, -0.0303, -0.6849, -0.9005, -0.1212, +0.0606, +0.1388, -0.4231, -1.0739, +0.1928, +0.0319, +0.0958, +0.0125, -0.1298, -0.2588, +0.1088, -0.5559, -0.3151, +0.0548, +0.3297, -0.5271, -0.7640, -0.0341, +0.1411, -0.4929, -0.1423, -0.0565, +0.2080, +0.0836, -0.3868, -0.1338, +0.1035, -1.4365, +0.1114, -0.2450, -0.7043, +0.3546], +[ +0.2535, -0.0369, +0.4675, +0.1631, -1.1942, -0.2561, -0.0358, -1.2841, -0.7228, -0.7758, -1.0097, -0.9734, +0.0736, +0.0120, +0.2161, -0.4861, +0.1287, +0.5726, -0.1021, +0.0230, +0.2227, +0.0172, -0.3978, +0.2238, -0.0154, -0.0980, +0.2639, +0.4450, -0.1750, +0.1290, +0.3401, +0.0108, +0.3784, -0.5999, +0.7053, -0.2275, -0.1755, -0.8104, +0.1894, +0.4153, +0.3092, +0.1734, -0.3326, -0.1536, -0.1178, -0.6143, -0.1548, -0.2079, +0.0667, +0.1950, -0.4622, -0.4300, +0.4255, -0.0521, -1.0740, -0.2555, -0.3026, -1.4444, -0.7026, +0.3971, +0.2106, +0.2773, -0.1475, +0.1711], +[ -0.7103, -0.2924, -0.1677, +0.5409, -0.8698, +0.1309, +0.1154, -0.6516, -0.9558, -0.9140, -0.0917, +0.0043, -0.1487, +0.0357, +0.3957, -0.1346, +0.6243, +0.0267, -0.1561, -0.9322, +0.5103, -0.2402, +0.2321, -1.1931, -0.1977, +0.0085, -1.2352, +0.2785, -0.5084, +0.3258, +0.3364, +0.2619, -0.0041, -0.1554, -0.0281, -0.4433, +0.2035, -0.0982, -0.0065, +0.4423, +0.2874, -0.4494, -0.0345, -0.3386, -0.4039, -0.8893, -0.1554, -0.2474, -0.1889, -0.1272, +0.2077, -1.2152, +0.4811, +0.1376, +0.1043, +0.3282, +0.0409, +0.0068, +0.1769, +0.1182, +0.4116, -0.3562, +0.0513, -0.5300], +[ -0.1572, -1.5188, -1.5678, -0.4130, -0.4267, -0.1431, +0.1554, -0.3178, -0.7728, +0.2314, -0.2010, +0.2888, +0.1788, -0.1780, +0.0944, -0.9144, +0.5334, +0.2888, -0.2076, +0.1253, +0.2449, +0.1610, -0.2281, +0.0742, -0.0978, +0.2734, -0.3029, -0.2320, +0.1220, +0.0550, +0.1580, -0.1043, -0.2656, -0.0400, +0.2219, -0.6095, +0.1252, -0.1372, +0.3713, -0.5300, +0.1172, +0.2025, -0.4247, +0.0746, +0.1929, +0.0514, +0.2209, -0.5462, -0.2288, -0.7486, +0.2197, +0.1359, -0.7125, -0.8333, -0.5579, -0.8019, -0.5522, -0.2105, +0.1643, -1.0014, -0.4503, -0.6657, +0.4036, -0.0555], +[ -0.0590, -0.3719, -0.5114, +0.2530, -0.7208, -0.0563, +0.3854, +0.3026, +0.0735, +0.3427, +0.6002, -0.1396, -0.1402, +0.1080, +0.1864, +0.3067, -1.0581, -1.9660, -0.2471, -0.0337, +0.0124, -0.2047, -0.6474, -0.8498, +0.0491, +0.0070, -0.1226, +0.0656, -0.2951, +0.0360, -0.9327, -0.2177, -1.0216, +0.6137, -0.5219, -0.3685, -0.0321, -0.2387, +0.6478, -0.0755, -0.0629, -0.7876, +0.2509, -0.3656, -0.1480, +0.1127, +0.5233, -1.2403, +0.1726, +0.3162, +0.3171, -0.6025, -0.6811, -0.9313, -0.1579, -0.1299, +0.1423, -0.1796, +0.2760, -0.4841, +0.1697, -0.1206, -1.3476, -0.4628], +[ -0.3120, -0.7815, -0.7293, +0.2830, -1.2078, +0.3774, +0.5226, -0.7750, -0.7630, +0.6087, +0.6374, +0.2126, -0.1801, -0.1649, -0.0703, +0.0150, -0.5099, -0.8238, +0.2890, -0.5040, +0.0895, -0.2675, -1.6283, -0.6663, +0.1520, +0.1787, -0.1078, +0.0191, +0.2750, -0.6022, -0.2075, +0.1815, -0.0741, +0.4324, -1.1463, -0.3964, +0.4130, -0.8703, -0.1329, -0.4860, -0.3910, +0.1145, +0.1338, -0.1027, +0.2230, +0.2237, +0.0151, +0.3517, -0.5960, -0.1026, +0.0241, +0.0157, -0.3517, -0.0960, +0.2909, +0.2758, -0.2046, -0.0833, -0.1670, -0.4800, +0.3463, -0.9654, -0.4277, -0.4589], +[ -0.1478, +0.1582, -0.2973, -0.1952, -0.1098, +0.5831, +0.6361, +0.3629, -0.1146, -0.6157, +0.5632, +0.4363, +0.0612, -0.9039, +0.1119, -0.5786, -0.5540, +0.0398, +0.1752, -0.5577, -0.6667, -0.2905, +0.2213, -0.0194, +0.3635, -0.6965, +0.0050, +0.0740, +0.1895, +0.1548, -0.5477, +0.4813, -0.6568, +0.7340, -1.0991, +0.0799, +0.1582, +0.0278, +0.5434, -0.1960, +0.4060, -0.6551, -0.0725, -0.4377, -0.7184, +0.1424, -0.8283, +0.7254, +0.4389, +0.5734, +0.2364, -0.5897, -0.0238, -0.0007, +0.3947, -0.0760, +0.1847, +0.1770, +0.0928, +0.3543, -0.4835, -0.3019, -0.9959, +0.0583], +[ +0.1443, +0.2220, +0.1527, -0.3340, +0.2000, -0.1948, -0.2900, +0.3642, +0.1534, -0.0776, +0.1768, -0.1703, -0.2562, -0.2758, -0.4396, +0.0234, -0.1917, +0.1102, -0.2345, -0.1229, +0.0281, +0.0845, +0.1131, +0.4417, +0.0569, -0.3473, +0.0394, -0.0056, +0.0946, +0.0011, -0.7753, +0.1805, -0.1408, +0.1301, +0.0846, -0.4318, -0.3021, +0.0477, +0.0908, +0.0013, -0.3767, +0.2696, +0.4063, -0.3381, -0.7599, +0.1141, +0.3743, -1.1590, +0.0345, +0.2245, +0.2459, -0.2822, -0.4002, -0.7271, -0.1023, -0.3171, -0.1637, +0.2897, +0.1085, -0.4487, -0.0477, +0.1013, +0.0479, +0.0018], +[ -1.0487, -0.2101, +0.2740, +0.0018, -0.1096, -0.8838, -0.4168, -0.3155, -0.2515, -0.1041, -0.0137, +0.3740, -0.1076, +0.2306, -0.4726, +0.0436, -0.3551, +0.3825, -0.2449, +0.4380, -0.7459, +0.2044, -0.5208, -0.7803, -0.0959, -0.2527, +0.0630, -0.9097, -0.0458, -1.0599, +0.3440, -0.3823, +0.0603, -0.7298, +0.3327, +0.3867, -0.2603, +0.0369, +0.6102, -0.0971, -0.0400, -0.2093, -0.3939, +0.2720, +0.4138, +0.0643, -1.0037, -0.2460, +0.1148, -0.3138, -0.1753, -0.0530, -0.8875, +0.3475, -0.3792, -0.8626, -0.3554, -0.2610, +0.0977, -0.1185, -0.3172, -0.0645, +0.0849, +0.3102], +[ +0.6196, -0.2248, +0.3701, +0.3871, +0.1780, -0.8845, -1.1825, -0.2375, -0.3429, +0.1191, +0.4072, -0.4555, -0.1496, +0.1067, +0.0234, -0.8369, -0.0937, -0.0319, -0.2486, +0.0657, -0.6954, +0.2187, +0.3412, +0.2551, -0.3422, -0.0815, -0.2930, -0.2226, -1.1675, +0.5878, -0.5601, +0.1259, -0.0683, -0.2040, -0.0079, -0.1074, -0.1578, -0.1415, -0.1203, -0.9654, +0.7452, +0.0246, -0.3484, -0.0277, +0.1140, +0.1730, -1.0210, -0.5052, +0.3313, -0.2379, +0.1376, +0.1366, +0.3220, +0.2231, -0.7424, -0.1786, -1.4978, -1.3279, -0.3878, -0.0794, -1.7559, -0.0926, +0.2841, +0.0046], +[ -0.0346, +0.2532, +0.3598, -0.0466, +0.0500, +0.0986, -0.4646, -0.2297, -0.4361, -1.7196, +0.2609, -0.4030, -0.2188, -0.2671, -0.1898, +0.1210, +0.6077, +0.1553, +0.0702, +0.1467, -0.2473, +0.1862, +0.3394, +0.2467, -0.4418, -0.1372, +0.5745, -0.3004, +0.1039, +0.1269, -0.4942, +0.1940, +0.5131, -0.2525, -0.7989, +0.2016, +0.3945, -0.1058, -0.6304, -0.6872, -0.1522, +0.6897, -0.0695, +0.1169, -0.0974, +0.0709, -0.2866, +0.2668, -0.0795, +0.3041, -0.1889, +0.1018, +0.2852, +0.4602, -0.1846, +0.5833, -0.1721, +0.6602, -0.6977, -0.2847, -0.0483, +0.0897, -0.0469, +0.1863], +[ -0.0781, -0.3706, +0.2251, +0.2849, +0.0941, -0.2094, +0.6678, -0.0101, +0.0424, -0.0293, +0.2295, -0.1194, +0.0675, +0.0213, -0.1025, +0.3390, +0.1805, -0.2866, +0.2053, +0.2851, +0.4197, -0.1941, -0.4910, +0.2821, -0.2832, -0.1295, -0.0805, +0.1562, +0.2949, -0.3321, -0.7247, -0.4742, +0.3879, +0.2745, -0.3844, -0.6716, -0.3245, +0.4906, -0.2705, -0.2982, -0.1698, -0.7898, +0.1142, -0.1942, -0.3603, -0.1740, +0.3400, -0.0506, -0.3486, -0.2486, -0.0503, -0.3264, -0.5077, -0.0445, +0.1496, +0.2111, -0.6167, -0.3732, -0.9418, -0.7983, +0.0077, -0.2045, -0.7608, +0.1405], +[ +0.2049, +0.1535, +0.2128, -0.4164, -0.2544, -0.6106, -0.7504, -0.3578, -0.2596, -1.0701, +0.0292, -0.1886, -0.1032, -0.5208, +0.0134, -0.3110, -0.7516, +0.4388, +0.0340, +0.0624, +0.0834, -0.0516, -0.1133, -0.7225, -0.2224, -0.5351, -0.0026, -0.6803, -0.0265, -0.1342, -0.2246, +0.2535, -0.5135, -0.4462, +0.3514, -0.0025, +0.1148, -0.5111, -0.2767, -0.1291, +0.2889, +0.1646, +0.4116, -0.5003, -0.1414, +0.4581, -0.0032, +0.2815, -0.1550, -0.1487, -0.2589, -0.7931, -1.5351, +0.6082, -0.8509, -0.5817, +0.3463, +0.1935, +0.4886, +0.3674, -0.1345, -0.5708, -0.5943, -1.0342], +[ -0.4535, -0.7263, +0.1911, -0.1976, -0.0240, -0.2905, -0.3329, -0.2344, +0.1119, -0.7598, +0.2671, -0.0547, +0.0231, -0.1666, -0.1475, -0.9600, -0.2575, -0.5557, -0.0586, +0.1305, -0.7248, -0.1328, -0.0749, -0.1792, -0.0993, +0.0632, +0.0370, -0.0350, -0.2100, -1.0003, -0.2526, +0.4889, -0.0268, -1.0811, -1.0744, -0.2632, +0.6099, +0.1728, -0.3989, -0.4078, +0.4547, -2.1630, +0.0652, -0.1967, +0.0211, -0.7390, -1.2135, -0.2196, -0.0140, -0.4225, -0.0909, +0.3659, +0.2051, +0.1075, -0.2806, -0.2124, -0.0317, +0.0040, -1.0535, -0.0977, -0.0551, -0.4167, -0.4222, -0.5449], +[ -0.5821, +0.1573, +0.3883, -0.0208, +0.0267, -0.1548, +0.0036, +0.0238, +0.2573, -0.2390, +0.1001, -0.4440, +0.1714, +0.4488, -0.0916, -0.0133, +0.0881, +0.1937, +0.0243, +0.0557, -0.0183, -0.3184, -0.0971, +0.1885, -0.1141, -0.0808, +0.2792, +0.3806, +0.1167, -0.0970, -1.1862, -0.3819, -0.0736, -0.2230, -0.2072, -0.4767, +0.3344, -0.4753, +0.4085, -0.9508, -1.3361, -0.5341, -0.2721, -0.2227, -0.2407, -0.2488, +0.0815, +0.0050, -0.0188, +0.1103, +0.3057, -0.1838, +0.1879, +0.0258, -0.0092, +0.2777, -2.1384, -0.0154, -0.0746, +0.1013, -0.0875, -0.4639, -0.1884, +0.3613], +[ -0.3665, -0.1782, +0.0419, -0.2690, -0.3408, +0.7867, +0.3313, -0.9157, +0.4388, -0.4855, -1.2508, -0.4405, -0.2233, +0.0522, +0.4611, -0.3997, -0.5933, -1.3610, -0.3253, -0.1574, +0.0802, -0.4449, -0.6778, -0.3988, -0.2578, -0.7707, -0.7587, -0.0789, -0.0164, +1.0809, +0.1280, -0.4027, -1.1598, +0.7488, -0.6504, +0.0912, +0.5017, -0.1733, -0.5198, -0.7894, -0.0064, -1.4117, +0.1238, -1.8378, -0.0063, +0.7132, -0.0657, -0.0301, +1.1850, -0.3432, -0.5329, +0.2786, -0.8299, -0.5956, +0.0208, -0.4721, +0.2628, -0.3157, +0.1742, -0.8047, +0.0856, +0.2113, -0.6971, -0.1566], +[ -0.6693, -0.1809, +0.0884, -0.1358, +0.5172, -0.0687, -0.0120, -0.3826, -0.5306, -0.0103, +0.8560, -0.3482, +0.0860, +0.3675, -0.5334, -0.0405, +0.2357, -0.2945, -0.4034, +0.3049, -0.6580, -0.2272, -0.5667, -0.0805, -0.0008, +0.3024, -0.2402, -0.5567, +0.2349, -0.4490, -0.3248, +0.3113, -0.0458, +0.5295, -0.8893, -0.1700, +0.1197, -0.0317, +0.2407, -0.3567, -0.3077, -0.4958, +0.3886, +0.4175, -0.0700, -0.4049, +0.3392, -0.1947, +0.7443, +0.2133, +0.3215, +0.0441, -0.5935, -0.3116, -0.0350, -0.7650, -0.6026, -0.3508, -0.1284, -0.9857, -0.1828, -0.2976, -0.2231, -1.0016], +[ +0.0507, -0.0567, +0.2445, -0.0756, -0.0082, +0.4970, -0.0516, -0.0301, +0.3676, -0.1720, +0.0047, -0.3551, -0.0340, -0.0532, -0.4424, -0.3569, -0.0102, -0.1321, +0.1088, -0.2266, -0.8376, -0.6879, +0.5277, +0.1749, +0.0183, -1.0760, -0.5535, +0.1199, +0.0335, -0.4466, +0.0450, -0.9575, -0.7582, +0.5908, -0.6280, +0.5010, -0.0937, +0.4709, +0.1345, -0.1088, -0.4050, -0.9498, +0.1079, -0.0437, -0.1768, -0.8175, +0.3442, -0.0402, -1.4693, +0.2791, +0.1296, -0.0762, +0.0142, -0.9085, +0.3446, +0.1278, -0.0685, -0.5707, +0.4476, +0.0823, -0.4022, -0.5325, -0.5841, -0.2564], +[ +0.0898, -1.1540, -0.9679, -0.3278, +0.1902, -0.3525, +0.0045, -0.2419, -0.9443, +0.2821, -0.4016, -0.3287, -0.0096, -0.2795, +0.3097, -0.2414, +0.1993, -0.0236, -0.2561, -0.1521, +0.1322, +0.0188, +0.2566, -0.7166, -0.0330, +0.1491, -0.1133, +0.1535, -0.2132, -0.2450, -0.3134, -0.0497, -0.4828, -0.0163, +0.0998, -0.0427, +0.0128, +0.4167, -0.4010, +0.3123, +0.1781, -0.0243, -0.1447, -0.4638, -0.6196, +0.1720, -0.1308, -0.7977, -0.4340, -0.3038, -0.9074, -0.1848, +0.1264, +0.0249, -0.5808, -0.0785, -0.1180, -0.6689, +0.4223, -0.0547, +0.3043, +0.1254, +0.2954, -0.2502], +[ +0.0870, +0.0780, -0.0389, +0.1600, -0.0364, +0.2506, +0.0564, +0.2378, +0.0033, -0.1340, -0.1532, +0.3440, -0.4366, -0.1984, +0.0098, +0.1903, +0.0752, -0.1213, +0.0378, -0.1293, +0.0029, -0.1710, +0.1367, -0.0665, -0.0351, -0.1341, -0.1123, -0.2100, -0.0160, -0.0597, -0.2886, +0.1219, -0.0732, +0.2243, -0.3820, -0.1373, -0.0118, +0.0217, +0.2059, +0.0855, -0.0949, -0.0514, -0.0669, -0.3338, -0.4548, -0.0133, +0.0292, -0.0179, +0.1236, +0.2291, +0.2861, -0.2900, -0.0856, -0.2934, +0.0034, -0.3797, +0.0143, +0.0729, +0.0875, +0.2393, -0.0385, -0.1214, +0.0479, -0.0652], +[ -0.7501, -1.1375, -0.2978, -0.8633, -0.8919, +0.2189, -0.5857, -0.2409, +0.0604, -0.0567, -0.1097, +0.2126, +0.0844, -0.3906, +0.3503, -0.9469, +0.0383, -0.3880, +0.1532, -0.7949, +0.2010, -0.3122, -0.3812, -1.0744, -0.0195, -0.4764, +0.2610, -0.7452, +0.1366, +0.2796, +0.2770, -0.2790, -0.7372, -0.2902, -0.7949, -0.1160, -0.1794, -0.6606, -0.0722, -0.1698, +0.1217, +0.2441, +0.2072, -0.3946, +0.1858, -0.1417, -0.9906, -0.2096, -0.0386, -0.3452, +0.3401, -0.3946, -0.0491, +0.0953, -0.5440, -0.9668, -1.4922, +0.0952, +0.2255, -0.0070, -0.0929, -0.6225, +0.2984, -0.1608], +[ +0.0875, -0.8502, +0.2431, -1.4256, -0.0134, -0.5211, +0.1531, -0.3139, -0.2330, -0.0786, -0.0809, -0.1122, -0.1306, -0.0140, +0.4723, -0.6809, -1.0225, +0.1196, +0.1491, -0.2224, -1.9714, -1.6552, -0.0284, -0.6446, +0.1878, -0.0111, +0.2549, -0.5032, +0.2373, -0.2167, +0.0885, -0.0815, -0.8509, -0.9426, -0.4842, +0.2617, +0.0947, +0.8169, -0.0459, +0.1221, -0.0595, -0.5754, -0.5843, -1.3281, +0.1531, -1.3252, -0.7069, -0.5561, +0.1954, +0.0952, -0.5631, +0.2066, +0.7464, +0.1565, -1.3679, -0.5306, +0.1436, -0.5271, -0.1679, -0.0539, +0.5787, -0.2023, +0.3189, -0.4968], +[ +0.0315, -1.1600, -0.1894, +0.1841, -0.0069, -0.9793, -0.0278, -0.9642, -1.0357, +0.5406, -0.1473, +0.2056, -0.3358, +0.3904, -0.0970, -1.3872, +0.2364, +0.2908, +0.0140, -0.1797, -0.0895, +0.1147, +0.0184, +0.2090, -0.2029, -0.0183, +0.3583, -0.6774, -0.3236, +0.4919, +0.1323, -0.3519, +0.2735, -0.4859, +0.1274, +0.0592, +0.0293, -0.0612, -0.2484, +0.0962, -0.4288, +0.5136, -0.6259, +0.2224, +0.2347, +0.0524, -0.0633, +0.0179, +0.0616, -0.9062, -0.1752, -0.0501, +0.3795, +0.4146, +0.0351, +0.3203, -0.0841, -1.0873, -1.3012, -0.3519, +0.3106, +0.3838, +0.1764, -0.1131], +[ -0.0067, +0.0395, -0.7516, -0.2958, -0.1750, +0.4141, -0.3325, -0.3768, -0.4620, +0.8233, +0.3492, -0.0237, +0.0106, -0.8323, +0.3937, -0.1977, -0.4075, -0.2006, -0.0474, +0.3061, +0.0789, -0.2584, -0.0647, +0.1114, +0.0884, +0.4178, -0.6012, -0.1629, +0.4286, +0.4013, -0.9800, -0.6920, +0.3876, +0.7810, -0.7333, -0.0620, -0.2162, -0.4436, -0.1308, +0.0799, -0.0925, -1.3182, +0.3494, -0.7913, +0.1979, +0.5827, +0.2238, +0.0280, +0.0497, -0.0354, -0.0631, +0.8220, -0.1120, -0.2673, +0.1897, -0.6081, -0.1298, -0.7712, -0.2133, -0.6315, -0.3532, -0.9268, +0.2826, +0.2492], +[ -0.6092, -0.1699, +0.0756, -1.0743, +0.7791, -0.0013, +0.0261, +0.0341, +0.0039, -1.3614, +0.0474, +0.1043, -0.1149, -0.3031, -0.1387, -0.2534, -0.1865, -0.0783, +0.0465, +0.1722, +0.0714, -0.3566, -0.3526, -0.3374, -0.2516, +0.0578, -1.6820, +0.6733, +0.1903, +0.3942, +0.0378, -0.0427, -0.0685, +0.2141, -0.7520, -0.5861, -0.1980, -0.8542, -0.2299, -0.4345, -0.1855, -0.1432, +0.3582, -0.4741, -0.5136, +0.3023, -0.0360, -0.0623, +0.1555, -0.1655, +0.2128, -0.4508, -1.2209, -0.0260, +0.0659, -1.1528, +0.2362, -0.5791, -0.2722, -0.1899, -0.1704, +0.0203, -0.7536, +0.2306], +[ -0.1456, +0.4228, -0.2169, -0.1864, +0.2956, +0.0975, -0.4902, -0.4168, -0.0061, -0.0129, +0.5856, +0.0718, -0.1802, -0.3765, +0.3940, -0.0377, -0.1783, +0.1068, +0.1506, +0.1025, -0.4088, +0.1379, +0.4524, -0.2770, +0.0499, +0.0828, +0.0832, +0.1792, -0.0652, +0.3557, +0.1142, +0.1000, +0.5156, -0.0644, -0.2629, -0.4445, +0.2076, +0.1216, +0.3907, +0.0722, -0.0435, -0.1319, +0.2939, +0.1871, -0.1707, -0.1241, +0.0260, -0.0176, +0.7158, +0.0326, +0.2360, -0.0155, -0.2790, -0.0850, -0.0872, +0.0258, +0.1475, -0.2429, -0.3992, -0.5970, -0.0884, +0.0104, +0.2510, -0.3747], +[ -0.1019, +0.0217, +0.0604, +0.2556, +0.0670, -0.2470, -0.0896, +0.0972, -0.5061, -0.0539, -0.1494, -0.6850, -0.1314, +0.4489, +0.3238, -0.1830, -0.3250, -0.4818, +0.1131, +0.0809, -0.1849, +0.0768, -0.4203, -0.1073, +0.0289, +0.0777, -0.2676, -0.1635, +0.2819, -1.1156, +0.4612, -0.5983, +0.2212, -0.2626, -0.3611, -0.8076, +0.0604, +0.1751, -0.1189, -0.8877, +0.1995, -0.5779, +0.1674, +0.1556, -0.4025, -0.7868, -0.6574, -0.0562, -0.3712, -0.0835, +0.2261, -0.0039, -0.0864, +0.1381, -0.2375, -0.1138, +0.0788, -0.7128, -2.4133, +0.2474, -0.5965, +0.0887, -0.3717, +0.1583], +[ -0.0173, -0.8841, -0.1036, -0.4535, -0.0171, -0.5824, -0.0683, -0.1105, -0.6359, +0.0860, -0.4490, +0.1697, -0.1639, +0.2569, +0.2831, +0.2610, -0.6809, -0.4909, -0.5067, -0.2111, +0.0006, -0.9312, -0.1564, -0.0030, -0.4018, -1.0880, -0.2422, -0.5496, +0.4572, -0.2074, +0.5928, -0.6699, +0.2007, -0.1501, +0.6496, +0.0006, -0.8182, +0.1627, -0.9395, -0.1071, -0.1078, +0.5001, -0.9152, -0.0298, +0.2665, -0.2468, +0.3327, +0.1171, +0.2442, -0.4903, -0.3593, +0.0516, -0.2479, +0.0401, +0.2455, +0.1927, +0.4553, -0.4156, +0.4963, -0.4824, -0.7662, +0.1025, -0.1231, -0.0549], +[ -0.5653, -0.0579, +0.0711, +0.1978, +0.1483, -0.2487, +0.5816, -0.2505, -1.0865, -0.3124, +0.4662, +0.3429, +0.1187, +0.3957, -0.3051, -0.2266, -0.5454, -0.4433, +0.1236, -0.2226, +0.1168, -0.1802, -0.2434, -1.0033, -0.3189, +0.1394, -0.7433, +0.5946, +0.1073, -0.4106, -0.5485, -0.5361, +0.3073, +0.3227, -0.6396, -0.2144, +0.3187, -1.2617, +0.1526, -0.4829, +0.1673, -0.4504, +0.3942, -0.6261, +0.1535, +0.1946, -0.2928, -1.2917, -0.4011, +0.0209, -0.2192, +0.1189, -0.2842, -0.3277, -0.0050, +0.1858, -0.7773, -0.1619, -0.2147, -0.6281, +0.3831, -0.8085, -0.6315, +0.4716], +[ -0.8026, -0.3107, +0.0903, +0.0076, +0.4653, +0.2245, +0.1581, +0.3757, +0.3310, -1.2516, -0.1040, -0.6431, +0.0373, +0.0716, +0.1643, -0.6158, -0.0895, +0.2540, -0.1583, -0.0699, +0.1837, +0.4705, -0.9086, -0.0468, -0.2022, +0.2916, -0.3869, +0.1620, -0.2646, -0.1511, -0.2067, -0.3882, -0.6044, -0.1775, -0.8657, +0.2309, +0.3567, +0.0654, +0.5363, +0.0686, -0.0198, -0.9192, -0.1272, +0.5987, -0.0621, -0.3943, -0.0519, -0.5483, +0.0777, -0.5409, -0.0296, +0.0010, +0.2560, -0.1014, -0.8840, -0.4932, -0.2339, -1.0472, -0.4789, -0.2379, -0.6807, -0.0958, +0.2527, -0.5875], +[ +0.0894, +0.2394, +0.4565, +0.5095, -0.9334, -1.2892, -0.8885, +0.0167, +1.0713, -0.3041, -0.7280, +0.2223, -0.5221, -0.0032, -0.0743, +0.1534, +0.5751, -0.1298, -0.1282, -0.4674, +0.5752, +0.2239, +0.4114, +0.3252, -0.1642, +0.2532, +0.3494, -0.8035, -0.2348, +0.3177, -0.5218, +0.0481, -0.3052, -0.9177, +0.1627, +0.6603, -0.7468, +0.0274, +0.0626, +0.0355, -0.2757, +0.2697, +0.4732, -0.2061, -0.0190, +0.5470, -0.5898, -0.8168, -0.0884, -0.4522, -0.1064, -0.8207, +0.2726, +0.1109, -0.2514, +0.1580, +0.6825, +0.7124, +0.8108, +0.2258, -0.1274, +0.2130, -0.3830, -0.9575], +[ +0.0671, +0.2013, -0.4460, -1.0518, -0.0167, +0.1024, +0.0547, +0.3296, +0.0516, +0.0503, +0.1956, -0.0536, +0.0108, -0.2160, +0.1852, -0.0177, -0.4770, -0.2327, -0.2887, +0.2862, -0.0357, +0.0026, -0.6428, -0.5677, -0.0354, -0.0304, -0.1272, +0.1630, -0.1319, -0.1122, +0.3381, +0.0000, -1.0265, +0.1319, -0.2374, -0.1598, -0.0059, +0.1722, +0.2300, +0.1748, -0.0167, -0.0891, +0.0350, -0.4563, -0.5325, +0.0078, -0.2475, +0.1184, +0.0133, +0.2512, +0.3639, -1.5981, -0.5117, -0.2703, +0.0222, -0.5620, -0.1466, -0.1626, -0.3288, -0.0070, +0.0508, -0.3687, -0.4245, -0.2751] +]) + +weights_dense2_b = np.array([ +0.0266, +0.3395, +0.0968, +0.0097, +0.0443, -0.1722, -0.2537, +0.1501, +0.0233, -0.0174, +0.1783, -0.0513, -0.1531, -0.2145, +0.0299, -0.1589, +0.1143, +0.1132, -0.2700, -0.0481, +0.2876, +0.1824, +0.2418, +0.1009, -0.1451, +0.1637, +0.1703, +0.0336, -0.1405, -0.0162, -0.1158, +0.1691, -0.0223, -0.1828, +0.2352, +0.0209, -0.1362, -0.2636, +0.1271, -0.0936, -0.1436, +0.0606, +0.1311, -0.0989, -0.2877, +0.2593, +0.0781, -0.1118, -0.1264, +0.2478, +0.2398, -0.1515, +0.0959, -0.0821, -0.1740, +0.1116, -0.0682, +0.1743, +0.1746, -0.1950, -0.0951, +0.2190, -0.0294, +0.1950]) + +weights_final_w = np.array([ +[ -0.6826, +0.0812, +0.5225], +[ -0.2533, +0.7043, +0.6677], +[ +0.0684, +0.6807, +0.4726], +[ +0.4605, +0.3736, -0.3187], +[ +0.4913, +0.0049, +0.4186], +[ +0.3066, +0.3756, -0.3588], +[ -0.3078, +0.3643, -0.0335], +[ -0.5433, +0.5926, -0.1254], +[ -0.2532, +0.7950, -0.1380], +[ -0.6121, -0.3012, +0.0149], +[ +0.3181, +0.0973, +0.1705], +[ +0.2236, -0.1020, +0.3147], +[ -0.0038, -0.3193, +0.1068], +[ +0.3799, -0.0215, -0.0715], +[ +0.3440, -0.2333, -0.1001], +[ +0.1852, +0.7445, +0.4295], +[ +0.4888, -0.0469, -0.1287], +[ +0.0297, -0.3913, -0.5198], +[ -0.0092, -0.1013, +0.2193], +[ +0.2590, +0.0846, +0.0886], +[ +0.0744, +0.4771, -0.3553], +[ +0.2019, +0.1670, -0.1630], +[ -0.4549, -0.6127, +0.5951], +[ -0.2582, -0.6401, -0.6541], +[ +0.0248, +0.0646, +0.1598], +[ +0.2109, -0.0794, -0.2444], +[ +0.2435, -0.4159, -0.2927], +[ -0.0713, +0.2441, -0.4683], +[ -0.0737, +0.2075, +0.4609], +[ +0.3240, -0.4084, -0.4554], +[ +0.3463, +0.4490, -0.2689], +[ +0.5252, -0.3714, +0.2808], +[ +0.5561, +0.1137, -0.0258], +[ +0.6168, +0.0587, -0.1059], +[ -0.0737, -0.6782, -0.4729], +[ -0.6030, -0.2577, +0.4194], +[ +0.4061, -0.1966, +0.2603], +[ -0.1265, +0.3940, +0.0447], +[ +0.2460, +0.3328, +0.1654], +[ -0.1878, +0.6672, +0.0333], +[ +0.5618, -0.1013, -0.2911], +[ +0.8250, -0.0788, -0.3731], +[ +0.2661, -0.2775, +0.2854], +[ -0.1036, +0.2179, -0.6408], +[ -0.5371, -0.7837, +0.1141], +[ +0.4754, -0.0923, +0.1714], +[ +0.0448, +0.4901, -0.1578], +[ +0.8797, +0.3316, +0.4349], +[ +0.1514, -0.4129, -0.3333], +[ +0.2847, +0.2285, +0.1408], +[ +0.0045, +0.3333, +0.0694], +[ +0.1553, -0.5147, +0.0549], +[ -1.0765, -0.5130, +0.1472], +[ +0.0808, -0.2612, +0.2591], +[ +0.5104, +0.3062, +0.3979], +[ -0.0758, -0.4512, -0.4422], +[ +0.3236, +0.4479, -0.1759], +[ +0.2181, -0.0028, +0.5615], +[ -0.0254, -0.1924, +0.4608], +[ -0.1566, +0.5634, -0.2498], +[ -0.0042, +0.5403, +0.0272], +[ +0.1206, +0.3941, -1.1469], +[ +0.7642, -1.0114, +0.4905], +[ +0.5071, +0.2270, +0.0046] +]) + +weights_final_b = np.array([ +0.4868, -0.0987, -0.0946]) + +if __name__=="__main__": + demo_run() diff --git a/examples/pybullet/gym/enjoy_TF_HumanoidBulletEnv_v0_2017may.py b/examples/pybullet/gym/enjoy_TF_HumanoidBulletEnv_v0_2017may.py new file mode 100644 index 000000000..e6efee53a --- /dev/null +++ b/examples/pybullet/gym/enjoy_TF_HumanoidBulletEnv_v0_2017may.py @@ -0,0 +1,514 @@ +import gym +import numpy as np +import pybullet as p +import envs +import time + +def relu(x): + return np.maximum(x, 0) + +class SmallReactivePolicy: + "Simple multi-layer perceptron policy, no internal state" + def __init__(self, observation_space, action_space): + assert weights_dense1_w.shape == (observation_space.shape[0], 256) + assert weights_dense2_w.shape == (256, 128) + assert weights_final_w.shape == (128, action_space.shape[0]) + + def act(self, ob): + ob[0] += -1.4 + 0.8 + x = ob + x = relu(np.dot(x, weights_dense1_w) + weights_dense1_b) + x = relu(np.dot(x, weights_dense2_w) + weights_dense2_b) + x = np.dot(x, weights_final_w) + weights_final_b + return x + +def demo_run(): + env = gym.make("HumanoidBulletEnv-v0") + + cid = p.connect(p.GUI) + p.configureDebugVisualizer(p.COV_ENABLE_GUI,0) + pi = SmallReactivePolicy(env.observation_space, env.action_space) + p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,0) + env.reset() + p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,1) + torsoId = -1 + for i in range (p.getNumBodies()): + print(p.getBodyInfo(i)) + if (p.getBodyInfo(i)[0].decode() == "torso"): + torsoId=i + print("found humanoid torso") + while 1: + frame = 0 + score = 0 + restart_delay = 0 + p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,0) + obs = env.reset() + p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,1) + + while 1: + time.sleep(0.001) + a = pi.act(obs) + obs, r, done, _ = env.step(a) + score += r + frame += 1 + distance=5 + yaw = 0 + humanPos, humanOrn = p.getBasePositionAndOrientation(torsoId) + p.resetDebugVisualizerCamera(distance,yaw,-20,humanPos); + + still_open = env.render("human") + if still_open==False: + return + if not done: continue + if restart_delay==0: + print("score=%0.2f in %i frames" % (score, frame)) + restart_delay = 60*2 # 2 sec at 60 fps + else: + restart_delay -= 1 + if restart_delay==0: break + +weights_dense1_w = np.array([ +[ +0.2289, +0.2584, +0.2595, +0.0173, +0.1293, -0.2980, +0.1410, +0.0982, +0.0216, +0.3724, +0.2204, -0.0734, -0.2420, -0.3443, -0.2738, -0.3825, +0.1504, -0.0930, -0.2680, +0.0685, +0.1592, +0.2534, -0.0787, -0.0426, +0.2591, +0.2134, -0.1631, +0.5168, +0.1444, +0.2736, +0.3623, -0.3472, +0.0393, -0.3056, +0.3850, -0.5231, +0.4511, +0.4223, -0.0905, +0.2265, +0.1662, +0.1092, +0.0426, -0.0209, +0.3260, -0.1788, +0.5045, -0.0254, +0.6684, +0.4659, +0.2193, +0.6121, -0.1771, +0.3024, +0.3233, -0.3380, +0.1834, +0.1947, +0.2840, -0.0212, +0.0610, +0.0254, -0.0687, +0.3342, -0.2010, +0.4851, -0.5739, -0.3228, -0.2242, +0.6149, +0.2704, -0.1006, +0.3950, -0.2684, +0.0090, -0.2419, +0.1112, -0.0795, +0.0021, -0.0317, +0.1345, -0.2847, +0.2323, +0.5374, -0.0119, -0.2098, +0.2074, +0.1693, +0.4537, -0.1453, +0.2661, -0.2997, +0.1043, -0.2340, +0.4472, -0.0415, +0.6437, +0.0279, +0.1609, +0.3353, -0.2240, -0.5433, -0.0053, +0.1863, +0.1038, +0.3337, +0.3889, +0.4159, -0.0836, -0.0826, +0.0872, -0.1362, +0.0061, -0.2982, -0.0074, -0.1452, -0.0655, -0.1369, -0.0493, -0.1082, -0.4080, +0.4732, +0.1229, +0.3087, -0.1222, +0.3846, +0.0719, -0.4536, +0.1202, -0.3903, -0.0445, +0.4052, +0.2922, +0.1095, +0.0317, +0.0974, +0.1149, -0.3794, +0.4364, -0.1597, +0.2889, +0.2431, +0.6867, +0.5117, -0.2517, +0.2835, -0.0365, +0.3303, +0.2569, +0.3636, -0.0945, +0.1853, -0.1341, +0.2595, -0.0174, -0.3227, +0.1999, +0.2348, +0.5826, -0.0480, +0.1449, +0.3866, +0.4740, +0.2486, +0.5011, -0.0334, +0.0953, +0.1072, -0.0901, -0.3235, +0.3258, +0.3003, +0.1229, -0.2257, -0.1920, -0.2025, -0.2022, +0.0843, +0.4563, -0.2654, +0.3158, -0.3102, +0.1105, -0.1171, +0.0465, -0.0692, +0.2824, +0.2598, -0.0289, -0.7774, +0.3501, -0.0635, +0.2257, -0.1644, +0.4091, -0.1967, +0.1614, +0.5468, +0.1365, +0.5054, +0.1986, +0.1368, +0.0886, -0.1305, +0.4297, +0.2482, -0.1914, -0.2909, +0.1784, +0.0690, +0.0224, +0.0378, +0.4991, -0.3410, +0.4281, -0.4574, +0.1952, -0.0444, -0.1939, +0.1637, +0.2385, +0.1354, +0.1817, -0.3849, +0.1909, +0.6585, +0.0997, +0.1376, +0.3598, +0.0611, +0.0124, -0.1492, -0.0659, -0.2671, -0.3925, +0.2333, +0.4184, -0.1364, -0.0361, -0.5937, -0.0327, -0.1142, -0.3334, +0.2963, +0.2350, -0.2600, +0.2784, -0.0720, -0.1594, -0.2652, +0.3922, +0.7291, -0.1830, +0.2253, +0.1965, +0.1972], +[ +0.2244, +0.6008, -0.2907, -0.1769, -0.1935, +0.0902, +0.3499, +0.0213, +0.1343, -0.4925, -0.0996, -0.2332, -0.0739, -0.3686, -0.8946, +0.0956, +0.0229, -0.1700, -0.1541, -0.1738, -0.2712, +0.2399, -0.9785, +0.0332, -0.1472, +0.2317, -0.2498, -0.5549, +0.2247, +0.1835, +0.3699, +0.4326, +1.0277, +0.5037, +0.1917, -0.0519, +0.6952, +0.0699, +0.5892, -0.2437, +0.4122, +0.8816, +0.1263, -0.2072, +0.7932, +0.1292, -0.0770, +0.0025, +0.5216, -0.0476, +0.1862, +0.5225, -0.1914, +0.2424, +0.9420, +0.3432, +0.0285, +0.1507, +0.1983, -0.3111, -0.2958, -0.3750, -0.3894, +0.4764, -0.0933, -0.1671, -0.3327, -0.1734, +0.3197, -0.2884, +0.0234, -0.3527, -0.4019, +0.4847, +0.8950, +0.1055, +0.1383, +0.2209, -0.0691, +0.6060, +0.3265, -0.0979, -0.2110, +0.6802, -0.4336, -0.6381, -0.1507, +0.4082, -0.1635, -0.0835, -0.0082, +0.5745, -0.2450, +0.7778, -0.2730, -0.6112, -0.0839, -0.0785, -0.6745, -0.1420, +0.4217, +0.3215, -0.2859, +0.3225, +0.0936, +0.0283, -0.1876, +0.4980, -0.4691, -0.0344, +0.1162, +0.1886, -0.1320, +0.4492, +0.0019, -0.0631, +0.2038, -0.3549, +0.2250, -0.2285, -0.0618, -0.0311, +0.7220, +0.0530, -0.3637, +0.2023, -0.3015, +0.1247, +0.2858, -0.2926, +0.2305, +0.2896, +0.1855, -0.3343, -0.1031, -0.3579, -0.6165, -0.3269, +0.0746, +0.2497, -0.3880, -0.5785, -0.7582, -0.1729, -0.3449, -0.1357, -0.5979, -0.7973, +0.1202, +0.6009, -0.0103, -0.0233, -0.0987, +0.4404, +0.4355, -0.0934, -0.0910, -0.0382, -0.0268, +0.0425, +0.0329, +0.7613, +0.1151, +0.1962, +0.3848, +0.6449, +0.0600, +0.8192, +0.2580, +0.4444, -0.5772, -0.1268, -0.0429, +0.0785, +0.1237, +0.5161, -0.3665, +0.0825, +0.1226, +0.4157, +0.4844, -0.5870, -0.6568, +0.1661, +0.0846, +0.9718, +0.8856, +0.4171, -0.4568, -0.0714, +0.0394, -0.1495, +0.1462, -0.1572, +1.3937, +0.1682, +0.4968, -0.3699, +0.0710, +0.2328, +0.4747, -0.4286, +0.4434, -0.0531, +0.8446, +0.0101, -0.4317, -0.2297, +0.4299, -0.1323, +0.4804, -0.2152, +0.0161, +0.0560, -0.3013, +0.2911, +0.3542, +0.3124, +0.3897, +0.1082, +0.2437, +0.0183, +0.2230, +0.0093, +0.1507, -0.3895, -0.2750, +0.0991, +0.1170, -0.5877, +0.4045, +1.0306, -0.1141, -0.0084, +0.3079, +0.4545, +0.0084, +0.1517, -0.0344, +0.4704, -0.2666, -0.0728, -0.0447, +0.4098, -0.4524, -0.4638, -0.4063, -0.2521, -0.2830, +0.1845, -0.3146, +0.4381, -0.0215, +0.2613, -0.1182, +0.4527], +[ +0.1845, -0.1290, +0.0236, -0.1312, +0.0155, -0.6011, -0.0454, +0.0183, -0.0613, -0.1651, +0.0204, -0.2374, +0.1045, -0.2035, -0.2268, +0.2069, +0.0483, -0.3226, -0.2196, +0.0847, +0.1314, +0.0426, -0.4253, -0.0748, -0.1497, -0.1902, +0.3815, +0.1306, +0.0276, -0.2593, -0.0081, +0.1098, -0.0062, -0.1922, -0.0409, -0.2615, +0.1296, +0.0267, -0.1602, -0.4755, +0.0039, +0.2688, -0.0225, -0.1433, -0.0383, -0.0131, +0.0675, +0.1684, +0.1298, +0.3818, -0.0260, +0.1636, -0.2338, +0.0062, +0.1756, -0.1825, +0.1473, -0.2689, -0.1376, -0.0224, +0.2016, -0.2086, +0.0723, +0.2100, -0.3345, +0.1170, -0.4292, -0.1302, -0.1132, +0.0030, -0.3599, -0.1974, -0.4807, +0.0184, -0.0768, -0.0310, -0.2677, -0.0838, -0.0072, -0.1049, -0.2841, -0.2426, +0.2338, +0.0917, -0.1451, -0.3906, -0.0315, +0.1058, -0.0429, +0.1218, +0.0590, +0.0446, -0.0043, -0.0168, -0.0899, -0.3793, -0.3134, +0.0907, -0.5332, -0.0995, -0.0256, -0.2710, -0.0487, -0.0059, +0.0274, -0.1885, +0.3208, +0.0437, -0.0411, -0.3716, -0.5700, +0.0576, +0.0903, -0.1064, -0.1600, +0.1009, -0.1957, -0.0539, -0.2426, -0.5847, -0.2240, +0.0023, -0.2533, -0.2903, -0.0328, +0.1289, +0.0927, -0.2596, +0.2300, -0.4833, -0.1772, +0.3817, -0.1000, -0.2391, -0.2917, -0.3748, +0.0640, +0.0005, +0.1664, +0.0173, +0.2214, -0.2440, +0.0039, +0.2924, +0.3009, +0.0540, -0.3460, +0.1538, +0.3727, -0.0801, +0.0130, -0.0963, -0.0172, +0.0524, -0.1681, +0.1478, -0.1827, +0.2902, +0.2376, +0.0703, -0.3115, -0.0634, +0.0512, +0.1366, +0.0646, -0.0811, -0.1668, +0.1052, -0.1976, -0.1411, -0.1401, +0.0263, -0.0454, -0.0315, -0.1376, +0.0403, +0.1526, -0.0385, +0.0782, -0.1382, +0.0399, -0.1812, -0.3915, -0.1615, -0.0648, -0.3724, +0.1436, -0.1380, -0.4987, -0.1783, +0.2295, -0.4115, -0.2025, -0.3245, -0.3584, -0.1729, -0.0822, -0.0460, -0.1321, -0.3484, -0.4094, -0.1418, +0.0986, -0.2276, -0.0267, -0.1027, -0.1794, -0.1338, -0.2575, -0.2837, -0.0241, -0.2849, -0.2569, -0.0871, -0.0534, +0.1427, +0.1857, -0.1384, -0.3600, -0.1343, -0.0075, +0.1601, +0.1113, -0.1131, -0.1716, -0.2434, +0.1357, -0.1294, -0.2366, -0.0562, -0.1674, -0.0974, -0.1556, -0.5273, -0.1928, -0.0431, +0.1909, +0.0233, +0.2048, -0.2176, -0.1908, +0.0150, +0.1610, +0.0468, -0.1319, +0.0579, +0.4051, -0.2020, +0.0208, -0.5383, +0.1756, +0.0117, -0.2675, -0.1795, -0.1730, -0.1394], +[ -0.5736, -0.8805, -0.0769, -0.0851, -0.5427, +0.1977, +0.0607, -0.3635, +0.5918, +0.1243, -0.0683, -0.5963, +0.2201, -0.1754, -0.1193, +0.2689, +0.2383, -0.1014, +0.2498, +0.0947, -0.3494, -0.0848, -0.3292, +0.0194, -0.1043, +0.4501, +0.5483, -0.0839, +0.2682, +0.5032, -0.0208, -0.0950, +0.2171, +0.2045, -0.3694, +0.3404, -0.0883, +0.2092, -0.2164, -0.1036, +0.2583, -0.0949, +0.0715, -0.3988, +0.0751, -0.1982, +0.5441, +0.0172, +0.3297, -0.6622, -0.1357, -0.5829, -0.2161, -0.6473, -0.0565, +0.6117, -0.0156, +0.6255, -0.1497, -0.1722, +0.1335, +0.6251, +0.3700, -0.5719, -0.2368, -0.0315, +0.0146, -0.8732, -0.2498, -0.1137, +0.2604, -0.1385, -0.8775, -0.5170, -0.2435, -0.3753, +0.2906, +0.0193, -0.5174, -0.3639, -0.2548, -0.5402, -0.8794, -0.5529, -0.0559, -0.1246, -0.0725, -0.0145, -0.7285, -0.0017, -0.1507, +0.3688, -0.1245, -0.3651, +0.3866, -0.1138, -0.0853, +0.0368, -0.4360, -0.1958, -0.1419, +0.1774, +0.0723, -0.3591, -0.4659, +0.3450, +0.3742, -0.1436, +0.0044, +0.2917, -0.5689, -0.5904, +0.1288, -0.4701, -0.2539, -0.6716, +0.2295, -0.4429, -0.0556, -0.0518, +0.2292, -1.7909, +0.1799, -0.1646, +0.3310, +0.0519, -0.1858, +0.0612, +0.0647, +0.1269, +0.1987, -0.0585, -0.2811, -0.8582, -0.6569, -0.3871, +0.1939, +0.1120, -0.0105, -0.3577, -0.0086, -0.2489, +0.4663, -0.1103, +0.0332, -0.6252, -0.2411, -0.0892, -0.4744, +0.1257, +0.1445, +0.1788, +0.0429, -0.2699, +0.4812, +0.4112, +0.2460, -0.0158, -0.6195, -0.7866, +0.7380, -0.1607, -0.9005, -0.3402, +0.1250, +0.0292, -0.5294, +0.2517, -0.1519, +0.6130, -0.3528, -0.4301, -0.2510, +0.5858, +0.0060, +0.0751, +0.0733, +0.2363, -0.6337, -0.0453, -0.3818, -0.0374, -0.0048, -0.4378, -0.0780, -0.1101, +0.1504, +0.4377, -0.3238, +0.2260, -0.4677, +0.1361, -0.0218, +0.2108, -0.0987, +0.3155, +0.6500, +0.2126, -0.2016, +0.3768, +0.6421, +0.2673, +0.1952, +0.0513, -0.0657, +0.2197, +0.2465, +0.2605, +0.3151, +0.0719, -0.6572, +0.4819, +0.2985, -0.1793, -0.1759, -0.3330, -0.5562, +0.1846, -0.1096, -0.5457, -0.6485, -0.4409, -0.4658, -0.0819, +0.1681, -0.3892, +0.4901, -0.3008, -0.7256, +0.1596, +0.0896, -0.3508, +0.4520, -0.5112, -0.3458, -0.6592, -0.9615, +0.1979, +0.2483, +0.1385, -0.0924, -0.2448, +0.4041, +0.5250, +0.1655, -0.5895, -0.4537, +0.3295, -0.4612, -0.1340, -0.5730, -0.2680, +0.4814, +0.0250, -1.0258, +0.1863], +[ -1.0573, +0.3035, -1.0110, +0.1281, -0.5940, -0.0072, +0.4667, +0.7137, +0.0810, -0.8921, -0.1219, -1.0541, -0.7295, +0.7648, +0.1772, -0.1785, -1.0871, -0.1349, +0.3227, +0.6328, -0.8310, +0.8725, -0.4619, -0.3077, +0.8552, -0.3231, -0.1156, -0.5372, -0.4023, +0.8194, -0.8025, -0.5804, +0.5964, -0.0932, +0.5116, -0.2766, +0.1760, -0.1303, +0.6465, -0.0711, -0.1220, -0.5499, +0.1202, +0.1071, +0.2686, -0.1856, -0.2504, +0.0925, -0.4784, +0.9105, -1.1430, -0.5899, -0.1242, +0.5508, +0.7145, +0.2748, -0.3478, -0.7003, +0.4850, +0.1385, +0.3943, +0.2670, -0.4550, +0.0036, -0.5703, -0.8350, -1.1953, -0.0970, +0.3308, +0.7714, +0.1061, +2.0960, +0.0376, -0.7406, +0.0789, +1.5258, +0.9057, +0.4235, -0.5466, +0.1064, +0.2408, +0.7252, -0.2936, +0.4144, -0.3486, -0.7981, +0.0240, -0.1555, +0.9355, -0.4706, -0.7375, +0.9309, +0.7671, -0.0113, -0.2764, -0.0366, +0.2126, +0.6469, -0.4462, -0.2112, +0.6839, +0.4796, -0.1490, +0.8926, -0.2453, +0.0598, -0.0021, +0.3849, +0.4954, -0.1375, -0.1142, +0.8535, +0.8888, -0.3101, +0.7679, -0.5564, -0.2071, -0.3134, -0.0526, -0.1788, +0.3544, +0.6677, +0.3217, -0.6103, -0.0902, +0.3894, +0.8153, -0.5409, -0.0261, +0.7648, +0.3098, +0.5138, -0.1609, +0.3192, +0.4370, -0.1330, -0.0368, +0.8144, -0.1377, +0.9899, +0.2202, +0.5290, +0.4051, +0.0875, +0.4018, -0.0897, +0.4689, +0.1784, +1.2015, -0.2091, +0.3738, +0.7411, -0.1037, -0.2531, +0.3753, +0.1518, -0.1351, +0.3109, +0.2514, +0.2564, -0.2295, +0.5837, +0.1827, -0.1766, +0.1354, -0.0895, +0.8237, +0.4432, -0.3878, -0.0831, +0.7593, -0.9360, -0.4304, +0.0854, -0.9559, +0.1652, +0.2593, +0.3457, -0.5038, -0.1274, +0.4108, -0.0822, -0.1254, +0.4618, -0.0763, -0.4831, -0.4356, +0.5051, -0.4981, +0.2556, -0.1951, +0.5189, +0.0342, +0.2521, +0.1616, -0.0889, -0.0898, +0.3080, +0.2350, -0.2451, +0.2174, +0.3621, +0.7812, +0.8774, +0.7318, +0.1353, +0.0450, -0.8271, +0.5002, -0.7626, +1.3003, +0.4312, -0.6138, -0.1886, -0.2482, -0.5597, -0.0913, +0.0901, -0.3340, +0.4610, -0.7099, +0.3496, +0.3531, +0.2044, -0.1057, +0.8731, -0.6409, +0.5075, +1.0426, -0.7513, -0.3445, +0.1368, -0.0996, +0.4420, +0.2574, +0.2526, +0.2479, +1.3376, -0.0922, +0.2117, -0.1829, -0.0796, +1.4092, -0.2412, +0.0230, +0.3997, -0.3151, +0.0822, -0.7801, -0.5236, +0.0178, -0.9243, -0.5063, +0.5279, -0.2153, +0.6347], +[ +1.4703, +1.2982, -0.0402, -0.2425, +0.2475, -0.0634, +0.4494, -0.7865, -1.3634, -0.1417, -0.2296, -0.4785, -0.1649, -0.8603, +0.2584, +0.1614, -0.3570, -0.9330, +0.6203, -0.0622, +0.7080, +0.0465, +0.0007, -0.3840, -0.0692, +0.8238, -0.9584, +0.8456, -0.8160, +0.4813, +0.3511, -0.0667, +0.7182, -0.5514, +0.3622, -2.3828, +0.6020, +0.0268, +0.3220, -0.4798, -0.1588, -0.6060, +0.0455, -0.1433, -0.5643, -0.4139, +1.0605, -0.3742, +2.4072, +1.2664, +0.1790, +0.8069, -0.1647, +0.2396, +0.6662, -1.2914, -0.2594, +0.4644, +0.3116, -0.1614, -0.7359, -0.9930, -0.4012, +0.1121, -1.4436, -0.0692, -0.3936, -0.4506, -0.8123, +1.3841, +1.2088, +0.9410, +0.1766, -0.7999, +0.2004, +0.2158, -0.4015, -0.0484, -0.3474, +0.0076, -0.7156, -0.5177, +0.8020, -0.1543, +0.0434, -0.2892, +0.1293, +0.5121, +1.2537, -0.1804, +0.2232, -0.3681, -0.4471, -0.5221, +0.0472, -0.4809, +0.5478, -0.3337, +0.0365, -0.6143, +0.7588, -0.4842, +0.1022, +0.4930, +0.5103, +0.7343, +1.5783, +0.8545, -0.9636, -0.3476, +0.5063, +0.0514, +0.3894, -0.8884, +0.0449, +0.5949, -0.2352, +0.4529, +0.2948, +0.0390, -0.7291, +0.1560, +0.0583, -0.0293, +0.0597, +0.1500, +0.7947, -1.3192, -0.1611, -1.8176, +0.9184, -0.4718, +0.7685, -0.1878, -0.3281, -0.4007, -1.2232, -1.0534, +0.7252, -0.6923, +0.3817, +0.7918, +0.4028, +0.9145, -0.0126, +0.1591, -0.2679, +1.3580, +0.0393, +0.1672, -0.4754, +1.0527, -1.0403, +0.6002, +0.1479, +0.5369, -0.1762, +0.2856, +0.3766, +0.0768, -0.3013, +1.0575, +0.6036, +0.1491, +0.6333, -0.2535, +0.1049, +1.1164, -0.3730, -1.5166, +0.5125, +0.1594, +1.6473, -0.6655, +0.4091, +0.3638, -0.5117, -0.2984, +0.3496, -0.3595, -0.3811, -0.7337, -0.0616, +0.0449, -0.2416, -0.0535, -1.3687, +0.3001, +0.0840, -1.5971, +0.7260, -0.0056, +0.3636, -0.3623, +0.2754, -0.6047, -1.2724, +0.5213, -0.0817, +1.6422, -0.2038, +0.5006, +0.7695, +0.9680, +0.4044, +0.9807, -0.1294, -0.6531, -0.7634, +0.1569, +1.2350, +1.2254, +0.7556, -0.2483, +0.0008, +0.2024, +1.1261, +0.0476, -0.1030, +0.8195, -0.2271, +0.2323, +0.3329, -0.5824, -0.1342, +1.5237, +1.2337, -0.8420, -0.3239, -0.1192, -0.3712, -0.4645, -1.4312, -0.8121, -1.2723, -0.3935, -0.0198, -0.0735, +0.7791, -1.3631, -0.8079, +0.0497, -1.1443, +0.1149, -1.0024, -0.7783, +0.5146, -0.0900, +0.2533, -0.3197, +0.8769, +0.6185, -0.4478, -0.2109, +0.9331, +0.1720], +[ +0.1914, +0.2367, -0.1629, -0.2121, -0.4821, +0.2042, -0.6208, -0.6690, -0.5308, +0.2751, +0.0058, +0.7246, +0.5435, -0.0560, -0.5556, -0.0165, +0.6507, +0.2775, +0.0431, -0.1270, +0.5966, +0.0977, +0.2673, -0.3136, -0.6983, +0.5473, -0.4528, -0.0306, +0.1088, -0.0717, +0.8475, +1.1961, +0.2308, -0.5281, -0.0913, +0.1937, +0.9934, -0.0981, -0.0031, +0.0337, +0.2783, -0.9124, +0.4286, -0.3317, +0.1689, +0.1181, +0.3386, +0.0006, -0.3645, -0.7711, -0.0095, +0.3991, -0.1333, -0.6688, +0.4254, +0.0559, +0.2671, +0.5579, -0.9046, -0.2728, -0.4878, -0.5582, +0.2866, -0.2315, +0.2442, +0.7093, +0.4266, +0.2287, +0.1558, -0.3636, +0.5561, -1.4425, -0.1192, +0.6250, -0.3334, -0.3746, -0.1556, -0.0636, +0.1641, +0.2846, +0.2501, -0.3944, -0.4040, -0.1150, -0.6399, +0.1609, +0.5772, +0.5262, -0.0361, +0.7536, +0.2497, -0.7278, +0.1851, -0.0259, -0.7170, -0.3231, -0.2127, -0.1993, -0.2452, +0.3888, +0.2922, -0.4279, -0.3269, +0.0756, +0.1988, -0.1777, -0.0172, -0.0312, -0.1341, +0.0269, +0.1057, -0.1237, -0.6615, +0.2952, +0.0767, -0.0778, -0.5447, +0.0285, +0.6785, -0.1794, +0.0174, -0.1047, -0.1765, +0.5859, -0.0837, -0.5167, -0.4280, +0.1787, +0.1762, -0.3390, +0.6731, +0.3160, +1.4737, -0.6632, +0.2942, -0.0664, -0.2121, -0.3356, -0.5989, +0.4079, -0.2348, +0.1857, -0.9283, +0.1377, -0.0273, +0.2580, +0.9982, -0.2876, -0.4685, +0.2032, +0.2644, -0.0163, -0.6819, -0.9446, -1.0937, +0.3750, -0.1436, -0.7771, +0.1031, -0.7357, -0.2943, +0.1850, -0.7978, -0.0747, +0.1661, +1.1391, -0.7675, -0.0677, +0.3038, +0.0354, -0.4304, +0.3333, +0.1617, +0.3656, +1.2621, -0.3526, +0.0040, +0.2239, +0.4336, -0.3180, +0.1273, +0.0488, -0.3459, -0.8226, +0.1833, +0.2386, -0.0214, +0.4261, -0.1491, +0.0678, -0.3771, -0.3311, +0.1703, +0.2722, +0.1684, +0.0372, -0.3637, -0.0246, -0.1785, +0.1548, -0.7042, -0.2042, -0.3849, +0.1776, -0.0536, -0.1493, -0.6161, +0.1739, -0.1201, +0.2798, +0.4395, -0.3635, +0.2738, +0.3116, -0.3052, +0.5248, +0.4516, -0.4132, -0.0536, -0.2435, +0.3823, +0.0218, +0.8631, -0.2524, +0.4060, -0.9034, +0.8162, -0.0182, -0.6250, +1.1502, +0.3362, +0.2115, -0.3169, -0.6787, -0.3379, +0.1962, -0.0973, -0.4042, -0.7209, +0.4764, -0.3201, -0.6573, -0.3488, -0.4370, -0.4269, +0.1515, +0.6850, -0.0542, +0.4701, +0.4224, -0.1287, +0.2937, +0.3044, +0.0041, +0.2738, -0.7350], +[ -0.5305, -1.0649, -0.0954, -0.2799, -0.3787, +0.9727, -0.0627, -0.2684, +0.5308, -0.2507, -0.2276, -0.2753, +0.7152, -0.1676, -0.6453, +0.2848, -0.5792, -0.4101, +0.4678, +0.5229, -0.5333, +0.2654, -0.1755, -0.2015, -0.1202, +0.7424, -0.0436, -0.7146, -0.3689, +0.3063, -0.0962, -0.5648, +0.3302, +0.8726, +0.4133, +0.3269, -0.3124, -0.3711, +0.0620, +0.1089, +0.7904, -0.6871, +0.1509, -0.6424, +0.6935, +0.1535, -0.2352, +0.2431, +0.2551, -0.9536, -0.6756, -0.5438, +0.5175, +0.0297, +0.3081, +0.7367, -0.5743, +0.5190, -0.6644, -0.2655, -0.8614, +0.5008, +0.1180, -0.6145, +0.0548, -0.0824, +0.1499, -0.4286, -0.2922, +0.1617, +0.4914, -0.1181, -0.0810, -0.5932, -0.1382, +0.2021, -0.2492, +0.4315, -0.3313, -0.7047, -0.1362, -0.6261, -0.8227, -0.2876, -0.3360, -0.0240, +0.4826, -0.3108, -1.4351, -0.0640, -0.0199, +0.5721, +0.2496, -0.3540, -0.6179, -0.1694, +0.3353, -0.1535, -0.2695, +0.0006, -0.0797, +0.6059, -0.0136, -0.1401, -0.1369, +0.5776, -0.3561, -0.7428, +0.1167, -0.2765, +0.2429, -0.5045, +0.2792, -0.3781, +0.1033, -0.2574, -0.1043, -0.2264, +0.4170, +0.4963, +0.1617, -1.0455, +0.0243, +0.7325, +0.1549, +0.2681, -0.0576, +0.7945, -0.1418, +0.9368, -0.4814, -0.5513, -0.3667, -0.9507, -0.5204, +0.1824, -0.0299, -0.3973, -0.1318, +0.1508, +0.6482, -0.3319, +0.3144, -0.0892, -0.4015, -0.1038, -0.0171, -0.1544, +0.0384, +0.0638, +0.1878, +0.4846, +0.3388, -0.2064, +0.0282, +0.0187, -0.2866, +0.2655, +0.1010, -0.3126, +0.2875, -0.2012, -0.5520, -0.7519, -0.0311, -0.4679, -0.2289, -0.1862, -0.6687, -0.0894, -0.4530, -0.4726, +0.2286, +0.4884, +0.2238, -0.4041, +0.4382, +0.0763, +0.2040, +0.1290, -0.1270, -0.3557, -0.3726, +0.2727, +0.1078, -0.3465, -0.1650, +0.1213, +0.1463, +0.4907, -0.6272, +0.2849, -0.1256, -0.0692, -0.1280, +0.6426, +0.8455, -0.2999, +0.2388, +0.3314, +0.0211, +0.1282, +0.7080, +0.2266, -0.4417, -0.5596, +0.0456, +0.0472, -0.0761, +0.3607, +0.0925, +0.5921, +0.5351, -0.1387, -0.0664, +0.0244, +0.0458, -0.1461, +0.4734, -0.3399, +0.1727, -0.3891, -0.2727, +0.1968, +0.3090, -0.2189, +0.0718, -0.4483, -0.5429, -0.1845, -0.6284, +0.1738, +0.0977, +0.1842, +0.1739, -0.5167, -1.2017, +0.1491, +0.6558, +0.4300, +0.8097, +0.0739, -0.3018, -0.1147, +0.2953, +0.2045, -0.2690, -0.2379, -0.3909, -0.1637, -1.1258, -0.3999, +0.3399, +0.0625, -1.1293, +0.3265], +[ +0.2985, -0.6516, +0.4775, -0.0140, -0.4299, -0.1279, -0.3789, -0.8213, -0.0525, +0.0010, +0.0503, -0.2211, +0.0995, +0.1976, -0.4291, +0.0379, +0.2930, +0.3705, -0.2469, -0.0770, +0.4237, +0.4334, +0.2506, -0.2329, -0.4291, +0.1146, +0.0874, +0.3548, +0.0268, +0.0869, +0.3078, +0.0402, -0.4679, +0.8574, -0.3867, +0.0835, +0.6660, -0.4280, -0.6492, -0.1042, -0.6310, -0.0259, -0.0944, +0.1484, +0.0317, -0.0098, -0.0450, +0.5161, +0.0257, +0.0005, -0.0494, +0.0465, -0.2364, +0.1916, +0.5391, +0.0028, +0.9037, -0.0930, +0.2142, +0.1406, -0.1165, -0.0293, +0.3984, -0.4787, -0.0384, +0.1164, +0.1826, -0.3080, +0.0997, +0.6248, -0.1437, -0.1716, -0.3102, -0.0448, -0.3595, +0.9930, -0.2071, +0.9864, +0.3101, +0.1298, -0.1277, -0.2569, -0.3749, -0.5782, -0.2509, +0.3860, +0.4451, +0.1810, -0.1763, +0.1142, -0.1178, +0.6319, +0.5940, +0.3328, -0.0479, -0.4712, -0.1765, -0.1778, -0.2369, +0.2725, -0.2929, -0.2874, -0.1177, +1.2907, +0.3847, -0.2287, +0.2036, +0.0735, +0.3001, -0.2437, +0.2036, -0.3419, +0.4514, +0.2280, -0.2737, +0.3508, -0.1208, -0.4684, +0.0684, +0.0490, +0.3631, -0.3185, +0.0020, -0.1861, -0.0268, -0.1274, -0.0160, -0.1210, +0.1408, +0.4183, -0.3518, -0.4569, +0.1282, -0.2319, +0.2512, -0.3592, +0.0540, -0.6120, -0.1856, -0.0308, +0.1304, -0.3050, +0.4704, +0.3629, +0.4371, -0.0915, -0.2140, -0.1166, +0.2194, +0.2926, -0.3646, -0.5791, +0.3207, -0.0810, +0.1578, -0.3067, -0.3441, +0.4426, +0.1421, -0.4309, +0.1017, -0.1754, +0.3775, +0.0048, -0.1489, +0.2823, +0.4104, +0.5312, -0.4843, -0.3423, -0.7578, -0.0118, +0.0645, +0.2197, +0.3624, -0.0137, +0.5216, -0.4339, +0.1736, +0.3054, +0.5684, +0.4813, +0.2408, +0.0112, -0.0637, -0.1112, +0.4575, -0.4203, -0.2375, -0.1869, -0.1914, +0.5073, -0.2876, +0.2371, +0.3740, +0.8589, +0.1326, +0.0220, -0.0639, +0.1505, -0.3579, -0.1986, +0.6998, +0.1042, -0.2976, -0.0343, -0.2863, -0.0873, -0.3928, -0.3351, +0.0212, +0.3023, -0.1197, +0.1894, +0.1328, -0.0621, +0.5685, +0.1133, +0.0837, -0.2829, -0.4764, +0.0455, +0.7453, +0.1416, +0.3608, +0.1513, +0.8440, +0.1792, +0.6390, +0.0493, +0.4155, -0.2832, -0.0157, +0.0372, +0.0957, +0.8445, -0.2723, +0.3604, -0.4921, +0.8836, +0.2896, -0.0577, -0.4621, +0.1412, +0.1202, -0.1868, -0.0938, +0.0032, +0.4614, -0.0066, +0.1586, +0.0146, +0.0698, +0.1539, -0.3187, +0.2030], +[ +0.1593, +0.0673, -0.2547, -0.4164, -0.7417, -0.0947, -0.0055, -0.3648, +0.1302, +0.0556, +0.3797, -0.0956, -0.3993, +0.4257, +0.0176, +0.1360, +0.1971, +0.2499, -0.1564, -0.1776, -0.3742, +0.1572, +0.1570, -0.1127, -0.4366, -0.0255, -0.0662, -0.2298, +0.5912, +0.0107, -0.5855, +0.8709, +0.0119, -0.4277, +0.4122, -0.0525, +0.1397, -0.3018, +0.6338, -0.1003, -0.1246, +0.1427, -0.1638, -0.2808, +0.1959, +0.7202, +0.1200, -0.2316, +0.1650, +0.2782, +0.4346, +0.0802, -0.2768, +0.4015, +0.4213, -0.2252, +0.2750, -0.4314, +0.0254, +0.3742, -0.3016, -0.2429, -0.6429, +0.3386, -0.0971, +0.1080, -0.2511, +0.2752, +0.6792, +0.0080, +0.2215, +0.0504, -0.7341, -0.1637, +0.0300, +0.3588, -0.3274, +0.1918, +0.3612, +0.5223, +0.1182, +0.6870, -0.3318, -0.2261, +0.2921, -0.4550, +0.1582, +0.2888, -0.2669, +0.1638, -0.6216, +0.6262, -0.6351, +0.4334, +0.0973, -0.1839, +0.0321, -0.5037, -0.2649, -0.0552, -0.1270, -0.2993, +0.6138, +0.4850, +0.3384, -0.5962, -0.6860, +0.0256, -0.2307, -0.2724, -0.1256, +0.6033, +0.2383, -0.0195, -0.0630, -0.4518, -0.3697, +0.8157, -0.5800, +0.7963, -0.3184, +0.0568, -0.3475, -1.0642, +0.7602, +0.5601, -0.0858, +0.3643, -0.4833, -0.2227, +0.5590, -0.0992, -0.6019, -0.1924, -0.1267, -0.0245, -0.5970, -0.4330, +0.1239, -1.0436, -0.3711, -0.3417, -0.1319, +0.4664, +0.2170, -0.1831, +0.2072, -0.1819, -0.1112, +0.5897, +0.4138, -0.1745, +0.0069, +0.5481, -0.2551, -0.1321, +0.3068, +0.1709, -0.3829, +0.3386, +0.0268, -0.1402, +0.2465, +0.6522, -0.6667, +0.5380, +0.8128, +0.0613, -0.6277, +0.2254, +0.0309, -0.1557, +0.0074, +0.0135, -0.5031, +1.1359, +0.0562, -0.6937, +0.1323, +0.5053, +0.0667, -0.5712, -0.3070, +0.7015, +0.2751, -0.2162, -0.2375, -0.5178, +0.6995, -0.2979, +0.2039, -0.2180, +0.6633, +1.0514, +0.7916, +0.4500, +0.3561, -0.2985, -0.7077, +0.0663, -0.6082, -0.4968, +0.0381, -0.3695, -0.1673, -0.1879, +0.3407, -0.1239, -0.4802, -0.1217, +0.5713, +0.3748, +0.0324, -0.2357, +0.1038, +0.2317, -0.2465, -0.1541, +0.0306, -0.1631, -0.6562, -0.1803, -0.1607, -0.1324, +0.2002, +0.0519, +0.1840, +0.2045, +0.1503, -0.2435, -0.1554, -0.1546, +0.1199, -0.7402, +0.5261, -0.2881, -0.7153, +0.8782, -0.2197, +0.3991, +0.1447, +0.2319, +0.2099, +0.3708, +0.1532, +0.0936, -0.0373, +0.3127, -0.0938, -0.2230, +0.3024, -0.2431, +0.1687, +0.5369, -0.6572, +0.0691], +[ -0.9205, -0.6407, -0.3495, -0.1292, -0.2954, -0.2824, -0.5187, -0.1155, +0.1093, +0.0234, -0.0082, +0.0037, +0.4904, -0.0225, +0.5050, +0.2188, +0.4062, +0.0352, -0.0210, -0.7050, +0.1355, +0.6423, -0.6829, -0.3672, -0.2787, +1.0915, +0.0694, -0.4533, +0.6736, +0.2396, +0.0699, -0.7669, -0.8898, -0.5430, -0.6663, +0.1795, -0.8685, -1.0686, +0.1690, -0.0744, -0.2449, +0.3012, -0.1798, -0.3383, +0.4449, -0.8733, +0.0579, -0.1487, +0.4444, -0.7043, +0.0664, -0.0857, +0.0319, -0.1203, -0.7229, +0.1748, -0.2829, +0.8293, +0.1026, -0.2243, +0.3540, -0.1479, -0.5573, +0.2202, +0.1052, +0.1821, +0.2858, -0.2647, +0.0733, -0.5249, +0.9333, +0.1392, -0.4069, +0.2683, -0.0897, -0.1305, -0.2437, -0.2181, -0.2209, +0.0429, -0.1205, +0.1112, -0.1993, -0.0594, -0.0557, -0.3577, -1.1923, +0.0014, -0.6420, +0.1696, -0.9703, +0.7222, -0.0252, +0.1879, +0.3040, +0.2103, +0.0601, +0.0977, -0.2715, +0.2625, -0.7554, -0.0208, +0.0804, +0.1709, -0.0788, +0.2233, +0.1557, -0.4419, -0.1501, -0.1374, -0.0640, -0.0173, +0.5292, -0.3886, +0.8104, +0.1731, +0.4099, +0.0172, +0.2222, +0.4837, -0.1392, -0.2487, -0.3176, +0.9001, +0.5629, -0.0966, -0.7590, +0.7981, -0.3387, +0.1281, -0.0880, -0.1736, -0.4041, +0.2927, +0.2257, -0.2617, +0.0081, -0.0981, -0.3232, -0.8960, -0.4555, -1.0944, +0.2450, -0.6488, -0.3626, +0.3229, -0.7959, -0.9218, -0.1168, -0.0386, -0.0772, -0.3662, -0.2033, +0.5171, -0.2605, +0.2099, +0.0587, -0.1684, +0.5608, -0.2795, +0.4050, -0.2488, -0.0009, -0.3548, +0.2713, +0.2540, +0.4301, +0.1538, +0.5952, +0.0035, -0.0855, +0.1828, +0.5056, -0.0285, -0.2480, +0.3974, -0.1071, +0.7901, -0.1271, +0.0085, +0.0022, -0.0033, -0.5544, -0.3821, -0.4543, +0.5065, -0.2156, +0.4301, -0.0898, +0.0038, -0.3771, -0.1299, +0.3414, +0.2850, +0.2536, +0.2735, -0.2499, +0.1810, -0.8185, +0.2789, +0.0172, +0.1249, +0.5116, -0.3276, +0.0151, -0.1496, -0.3928, +0.0160, +0.1973, +0.6946, -1.0572, +0.2596, +0.5213, +0.1074, +0.0397, +0.0158, -0.1003, +0.0849, -0.6143, +0.0286, +0.1211, -0.3642, -0.2030, -1.3791, -0.2391, -0.0444, -0.2008, -0.4846, +0.4913, -0.1766, -0.7605, -0.6237, +0.0567, -0.2466, +0.8322, +0.1745, -0.5219, -0.2627, -0.0347, +0.0840, +0.8085, -0.8310, -0.2293, -0.5016, +0.3874, -0.3295, -1.6434, -0.0489, -0.2061, +0.2168, -0.8213, -0.3119, +0.3437, -0.3040, +0.2633, -0.6758], +[ -0.1224, +0.1807, +0.0476, -0.1733, -0.2275, -0.6607, +0.5602, +0.2290, +0.4946, -0.3229, +0.2211, +0.5021, +0.2795, -0.4379, -0.4183, +0.0239, -0.0520, -0.3631, +0.5901, -0.8528, -0.3056, -0.0029, -0.2342, -0.2650, -0.0214, +0.1637, +0.3739, -0.1126, -0.0839, -0.1313, +0.0461, -0.5930, +0.2383, +0.3599, -0.3978, -0.2775, +0.1222, -0.6615, +0.1524, -0.2367, -0.3254, -0.1699, -0.2446, +0.0040, -0.2987, -0.0853, +0.0497, -0.1563, -0.0894, -0.0426, +0.3357, -0.5865, -0.3145, -0.2334, +0.4475, +0.6045, -0.1532, -0.5043, -0.3072, -0.2198, +0.1998, -0.1104, +0.1984, -0.0500, -0.1988, -0.0554, +0.6667, +0.2950, +0.4560, +0.0905, +0.8948, +0.4141, +0.0889, +0.2876, +0.8547, +0.0443, +0.4713, +0.0125, +0.4692, +0.0556, +0.3437, -0.2034, +0.0493, +0.0987, -0.5343, -0.5624, +0.5240, +0.6423, +0.0898, -0.3092, -0.3829, +0.4628, -0.3896, -0.2335, +0.4425, +0.1577, -0.3808, +0.7042, -0.1099, +0.2177, -0.4898, -0.2984, +0.2604, -0.0835, -0.5402, +0.0921, -0.1487, +0.1235, -0.0274, +0.1865, -0.3032, +0.1477, -0.8785, +0.2594, +0.2667, +0.1290, +0.4497, -0.5279, +0.2041, -0.2774, -0.2247, +0.1755, +0.2179, +0.2883, -0.2374, -0.2710, -0.6661, +0.2488, -0.2718, +0.3415, -0.0217, +0.1544, +0.2134, +0.0385, -0.3567, +0.1695, +0.3289, +0.5405, -0.1381, -0.5697, -0.1969, -0.0151, -0.4153, -0.3042, -0.4061, -0.9120, -0.3237, -0.4619, -0.2990, -0.3770, -0.1387, +0.0114, -0.7310, +0.1120, +0.1241, -0.2797, +0.0220, -0.0135, +0.3210, -0.6078, -0.4427, -0.1668, +0.0040, -0.6242, +0.8404, -0.5844, +0.6519, +0.2185, -0.0381, -0.3671, +0.4789, +0.0554, +0.1012, +0.0864, -0.0963, -0.3227, -0.1091, +0.5487, -0.5835, +0.2718, +0.6050, -0.0901, -0.1951, -0.1213, -0.1814, -0.2178, -0.2861, -0.3037, -0.0871, -0.4600, +0.2746, -0.5300, -0.5216, +0.7110, +0.1588, +0.0332, -0.7698, +0.7929, +0.4748, -0.0828, -0.1833, +0.0244, -0.4698, -0.2932, +0.7227, +0.3943, +0.6195, -0.4069, +0.5510, +0.4044, -0.0376, +0.1132, +0.2594, +0.2696, -0.0090, -0.5220, +0.3694, +0.2535, +0.2949, -0.3292, +0.1338, -0.1614, -0.4826, -0.6461, -0.0891, +0.6627, -0.4489, +0.1577, +0.7618, +0.4944, -0.3768, -0.0778, +0.0620, -0.2107, +0.0132, -0.1325, -0.0489, +0.2153, -0.2410, +0.1829, +0.1007, -0.1304, -0.2355, -0.7770, +0.3267, -0.3735, -0.2366, +0.1976, -0.1219, +0.3927, +0.2558, -0.0528, +0.6828, +0.6081, -0.0640, -0.1716], +[ +0.5773, +0.4005, +0.2367, -0.2554, -0.0570, -0.3491, -0.1217, +0.1797, +0.2174, +0.2224, +0.1831, +0.3781, -0.1077, -0.4088, -0.3937, +0.1849, +0.6256, +0.1961, -0.3727, -0.1188, -0.2571, -1.0813, +0.1191, -0.0072, +0.3410, -0.1113, +0.0178, +0.0221, -0.2449, +0.1956, +0.4295, +0.0470, -1.0544, +0.3908, -0.2403, +0.0338, +0.1049, -0.1989, -0.6795, +0.1352, +0.3580, -0.0550, +0.1559, +0.1566, -0.2989, +0.3722, +0.3373, +0.1194, -0.0818, +0.0315, +0.2551, +0.0579, +0.0571, +0.2316, -0.0330, -0.4553, -0.3433, -0.1070, -0.3248, +0.3737, -1.0162, -0.2596, -0.5808, +0.0423, -0.0359, -0.5898, +0.0525, +0.4582, +0.0296, -0.4855, +0.1305, -0.5326, +0.1646, +0.2046, -0.6652, -0.1011, +0.0367, +0.0979, -0.1058, -0.8457, -0.1656, -0.5374, +0.7134, -0.6131, +0.0588, -0.5346, -0.4256, +0.2006, +0.5099, -0.5682, -0.3149, -0.1147, -0.9188, -0.0958, -0.2129, -0.6066, -0.0144, -0.2814, +0.0966, -0.1576, +0.1431, -0.1485, +0.2355, -0.1664, -0.0622, -0.0011, -0.0136, +0.1440, -0.6193, -0.1540, -0.1121, -0.2571, +0.0337, +0.5311, -0.7750, +0.2000, +0.1121, -0.1559, -0.5731, +0.3587, -0.0157, +0.0921, +0.2889, -0.0086, -0.1163, -0.1031, +0.4536, +0.0260, +0.4147, -0.0971, -0.6322, -0.1779, +0.1588, +0.1106, -0.6539, -0.1867, -0.0918, -0.4986, +0.1861, -0.8405, +0.0673, +0.1445, -0.2178, +0.0211, -0.3776, -0.2325, -0.7193, -0.2383, +0.1055, -0.3297, -0.6075, -0.0166, -0.0599, +0.3519, +0.2016, -0.1683, -0.0618, +0.0966, +0.4444, +0.0336, -0.0360, -0.0038, -0.0901, +0.0575, +0.1595, +0.0420, +0.3149, +0.1565, -0.5973, +0.0455, -0.2269, +0.7422, -0.1403, +0.1556, -0.5552, -0.1018, -0.1478, -0.1449, -0.3502, -0.3411, -0.6673, +0.1856, -0.1387, -0.0826, +0.2279, +0.3411, +0.3251, -0.8518, +0.4285, -0.3885, +0.0961, +0.2770, +0.5029, +0.0081, -0.0688, +0.2335, -0.2451, +0.0313, -0.1630, +0.4845, -0.1214, -1.0611, -0.9483, -0.0859, +0.7039, -0.0264, +0.1340, -0.3957, -0.1174, +0.1597, -0.1261, +0.0289, +0.1340, +0.1144, -0.1680, +0.3226, -0.1484, -0.3115, +0.0072, -0.3260, +0.4108, +0.1639, -0.9366, +0.4429, -0.1095, -0.2999, -0.0186, -0.5972, -0.1980, -0.2521, +0.2721, +0.2089, +0.1511, -0.1393, -0.4629, -0.8785, +0.0836, -0.2853, -0.3804, -0.4894, +0.1630, -0.3580, -0.0938, +0.3543, -0.1880, +0.4280, -0.0910, -0.1145, -0.4794, -0.0023, +0.0837, +0.2889, -0.0548, -0.1878, -0.2514, +0.2941], +[ +0.1971, +0.1297, +0.3127, -0.1900, +0.2138, -0.5950, -0.0518, +0.5522, +0.7271, -0.4612, +0.0603, -0.0771, +0.0421, +0.2994, -0.7150, -0.6847, +0.4128, +0.2148, +0.7659, -0.1203, +0.0513, -0.6664, -0.4696, -0.1599, -0.0016, -0.2961, +0.0878, +0.1158, +0.3799, +0.1267, +0.2748, -0.7240, -0.1967, +0.8070, -0.4856, +0.2131, +0.4358, -0.0098, -0.1944, +0.7715, +0.0676, +0.2041, -1.1034, -0.3384, +0.6977, +0.1520, +0.3113, -0.3375, +0.1434, +0.0769, +0.4804, -0.4066, -0.1047, +0.1328, -0.6792, +0.1742, +0.1389, -0.0741, -0.2742, +0.1880, -0.7640, -0.3254, +0.0108, -0.5652, -0.7209, -0.2656, +0.4557, +0.1764, -0.2182, -0.3519, -0.1209, +0.1609, +0.2707, -0.0814, -0.2446, -0.1418, +0.0642, -0.4075, -0.3181, +0.1488, -0.3156, -0.0194, -0.1112, -0.0664, +0.8506, +0.0797, +0.0967, +0.0589, +0.2103, -0.1941, -0.0901, -0.1765, +0.2050, -0.5338, +0.2230, +0.0117, +0.4295, -0.6978, -0.2315, -0.1358, -0.1298, +0.1919, +0.7137, +0.4695, -0.2569, +0.3268, -0.1098, -0.6414, -0.3317, -0.5824, +0.3109, +0.5197, +0.0289, +0.2862, -0.1670, -1.1588, -0.5376, +0.7066, -0.4736, -0.6062, +0.0383, +0.4817, +0.3675, -0.2474, -0.1373, +0.6097, +0.1162, +0.0026, +0.5885, +0.5167, +0.1943, -0.2286, -0.0977, -0.0914, -0.2177, -0.4933, -0.2152, +0.3393, +0.4035, +0.4174, -0.0249, -0.1241, +0.2562, +0.2692, -0.4636, +0.2140, -0.2008, -0.2862, -0.0860, -0.3197, -0.2499, +0.4412, -0.1225, -0.0678, -0.5300, +0.0226, +0.5928, +0.4112, +0.3408, +0.3258, +0.3220, +0.6597, -0.3444, +0.3276, -0.3681, -0.4247, -0.2516, +0.2093, -0.5528, +0.0715, +0.3478, +0.5149, +0.7822, -0.1180, +0.3608, -0.1642, +0.1633, -0.3586, +0.3944, -0.3117, +0.3464, +0.2220, -0.1847, +0.2722, -0.1410, +0.6442, +0.2111, -0.5102, +0.0657, -0.0787, +0.1314, +0.1596, +0.3922, +0.4387, +0.3768, +0.0938, -0.2301, -0.4222, -0.2457, +0.1377, +0.0971, -1.0034, -0.6783, -0.2950, +0.6848, +0.3718, -0.0991, +0.3351, +0.4113, -0.0339, -0.0272, +0.1386, +0.1174, +0.5951, -1.3231, +0.1352, -0.0537, -0.0648, -0.0348, -0.3936, +0.4308, -0.5901, +0.3274, +0.4185, +0.2364, -0.0838, +0.1790, -0.2632, -0.5750, -0.3647, -0.7477, -0.3476, +0.6007, +0.2378, -0.2952, -0.8994, +0.0876, +0.5734, -0.1559, +0.1650, +0.4103, -0.0516, -0.4388, +0.6463, -0.4788, +0.0584, +0.0616, +0.1933, -0.1242, -0.5378, -0.0676, +0.5118, +0.2571, +0.5174, +0.5873, -0.0766], +[ +0.0258, +0.0557, +0.0314, -0.1428, +0.1264, +0.2882, +0.1731, +0.0442, -0.6218, -0.1942, -0.3289, +0.2295, -0.1792, -0.3100, -0.3131, -0.3692, -0.1941, +0.5551, +0.0759, +0.0739, -0.2385, -0.4435, -0.1647, +0.3799, +0.1403, -0.2910, -0.1646, -0.1996, -0.0809, -0.3370, +0.1309, -0.1390, +0.1873, -0.1753, -0.1671, +0.0357, +0.0419, +0.1547, -0.2335, +0.3820, +0.0704, +0.1450, +0.3619, -0.4785, +0.0094, +0.2105, -0.0015, -0.4892, +0.0153, +0.1744, +0.6894, +0.0375, -0.2539, +0.3752, -0.0939, +0.0410, -0.0005, +0.0414, -0.5551, +0.0786, +0.2726, -0.2081, +0.1608, +0.0056, -0.3801, +0.2772, -0.0787, -0.3693, -0.1018, +0.1075, +0.0577, +0.1752, +0.2847, +0.1793, -0.2131, +0.1969, +0.0438, +0.0763, -0.2106, +0.1562, -0.0079, -0.0419, -0.6081, -0.3683, -0.0284, +0.0196, +0.2458, +0.0486, +0.3165, -0.1404, +0.0881, -0.2001, +0.0943, -0.2257, +0.1904, -0.2215, -0.0143, +0.1636, -0.1493, +0.0209, -0.3232, -0.1058, +0.1450, +0.2953, -0.0649, -0.1792, -0.4404, +0.0648, -0.0782, -0.0980, -0.1962, +0.0114, -0.4174, +0.1230, +0.2255, -0.4465, +0.0099, -0.0002, -0.0327, -0.2182, -0.0044, +0.1385, +0.2404, -0.1530, -0.2449, -0.1187, -0.1197, -0.0196, +0.0636, +0.2732, -0.0020, -0.3308, -0.2261, -0.2961, -0.0110, +0.1877, -0.1727, -0.0579, +0.3186, -0.1244, +0.4831, -0.3772, +0.2442, -0.5991, -0.0244, -0.0651, +0.3005, +0.2811, -0.1175, -0.1017, +0.0363, +0.1163, -0.1070, +0.2171, -0.2766, -0.1591, -0.2473, +0.2177, -0.5437, +0.2643, +0.1680, -0.2968, -0.1783, -0.3845, -0.2310, -0.1699, +0.1597, +0.0023, +0.0930, +0.3626, +0.1183, +0.3463, +0.1107, +0.1850, +0.1242, -0.0231, -0.2174, -0.2698, -0.5214, -0.3067, +0.0808, +0.6624, -0.0719, +0.0046, +0.2116, -0.0666, +0.1001, -1.0531, +0.4140, -0.6715, -0.0883, -0.2107, +0.1025, -0.2391, +0.0068, +0.5813, +0.0922, -0.7574, +0.1401, +0.1576, -0.0085, -0.2051, +0.2217, +0.0145, +0.0643, +0.2933, -0.1660, -0.0310, +0.3889, +0.2739, +0.0619, -0.0057, -0.0851, -0.3741, -0.0350, +0.0032, -0.1186, +0.3271, -0.7010, -0.0641, -0.2619, +0.2942, +0.0946, -0.2396, -0.0092, +0.2894, +0.4296, -0.1338, +0.4397, -0.3429, +0.5862, +0.2123, -0.0220, +0.0683, -0.0801, -0.2240, +0.1695, -0.0177, +0.1851, -0.2303, +0.1154, -0.0554, -0.1827, +0.0404, +0.5515, -0.3435, +0.1356, -0.6155, +0.0421, +0.4062, -0.1319, -0.1664, +0.2044, -0.3144, +0.3057, +0.5167], +[ +0.2190, +0.5299, +0.0416, -0.0133, +0.2273, +0.1847, +0.2117, -0.3650, +0.1088, +0.7693, +0.2472, -0.1210, -0.3569, -0.1793, -0.3154, +0.2999, +0.6809, +1.1643, -0.4968, -0.0260, -0.3963, +0.2722, -0.2396, +0.0662, -0.1695, -0.3343, -0.4404, +0.2240, -0.2892, +0.3186, +0.0070, -0.3156, +0.5497, +0.1461, +0.4193, +0.5595, -0.1487, +0.2295, -0.1106, +0.8187, +0.2716, -0.3308, -0.2466, +0.7375, -0.5231, -0.8374, -0.1546, +0.8101, +0.0305, +0.4414, +0.9101, -0.0790, -0.7719, -0.1223, +0.2108, -0.3328, -0.1319, +0.0044, -0.7621, -0.2411, -0.3317, -0.3602, +0.3811, -0.5627, -0.3574, +0.1514, -0.1217, +0.1223, -0.3627, -0.3312, +0.0908, +0.3559, -0.2127, +0.4198, -0.1993, +0.5076, +0.6647, +0.6660, -0.3889, +0.3641, +0.0583, +0.6410, +0.3024, +0.7780, -0.0566, -0.0725, +0.0005, -0.6199, +0.1416, -0.1018, +0.1975, +0.0407, -0.6696, +0.1270, +0.2403, -0.0984, +0.1143, -0.1629, +0.5482, -0.5193, -0.0165, +0.5192, +0.7334, -0.1055, -0.0946, -0.2747, -0.9139, +0.5439, -0.0660, -0.1288, +0.0253, -0.3988, -0.4482, +0.7088, +0.5435, -0.5111, +0.0793, +0.0429, -0.4865, +0.4337, +0.3207, -0.1065, +0.5435, +0.0121, +0.0708, +0.4475, +0.0082, -0.0752, +0.5082, +0.5027, -0.4079, -0.1469, -0.0291, -0.2024, +0.4415, +0.6201, +0.0561, +0.7860, -0.0309, -0.4140, -0.4525, -0.0112, -0.2588, -0.1160, -0.1658, -0.3977, -0.1903, +0.0040, +0.5195, -0.5027, +0.1395, +0.3001, -0.0364, -0.0070, -0.1940, -0.0794, -0.7707, +0.0793, +0.2436, -0.2028, +0.7458, -0.4411, +0.3906, -0.3629, -0.3652, -0.1732, +0.0129, -0.1646, +0.1341, +0.3027, +0.3714, +0.8555, +0.0846, -0.1275, +0.1576, -0.5475, +0.2914, -0.4467, -1.0526, +0.4156, +0.1801, +0.5511, -0.2876, -0.3708, +0.4191, -0.5156, -0.5698, -0.2032, -0.3767, +0.9636, +0.0591, -0.2111, -0.2921, +0.2434, +0.1629, +0.5713, -0.0247, -0.3819, -0.0096, +0.1990, +0.1771, +0.1748, -0.6692, +0.6622, +0.8074, +0.1628, -0.0205, +0.2880, -0.4322, +0.2115, -0.7574, +0.6190, +0.0132, -0.2705, -0.5313, -0.2903, +0.6175, -0.2226, -0.1388, -0.5078, -0.6529, +0.2888, +0.2174, +0.3050, -0.2648, -0.1298, +0.0513, +0.0026, +0.2277, +0.6358, -0.3906, -0.3793, +0.6255, -0.4248, -0.5383, +0.2805, +0.1700, +0.1024, -0.2525, +0.0197, +0.0756, +0.2159, -0.4651, -0.3313, -0.4396, +0.4773, -0.5920, -0.1574, -0.0513, -0.7548, +0.1198, +0.6633, -0.0992, +0.4179, +0.5154, +0.1625], +[ +0.4234, +0.4392, -0.2747, -0.2705, -0.6422, -0.0934, +0.0052, -0.0935, +0.0754, +0.1551, -0.0347, +0.1696, +0.2298, +0.1517, -0.1544, -0.7179, +0.3967, -0.4788, +0.2861, -0.2384, +0.3171, +0.3328, -0.2257, -0.2352, +0.3594, +0.1360, -0.1726, -0.0534, -0.3732, +0.4586, +0.6655, +0.1862, -0.0504, -0.5245, -0.2335, -0.1044, +0.1731, -0.4958, +0.3857, +0.1822, -0.2132, +0.2401, -0.1770, -0.3829, -0.1447, +0.0365, +0.1743, -0.0582, +0.1387, +0.1938, -0.4010, +0.2540, -0.1261, -0.1798, -0.1797, -0.3228, -0.1266, -0.0110, +0.4102, +0.1474, -0.3089, -0.3147, -0.4659, +0.7590, -0.0920, -0.0002, -0.4629, -0.1343, -0.1630, -0.1713, +0.0623, +0.1539, -0.2611, +0.2111, +0.0032, +0.0254, -0.1147, -0.5070, +0.2582, +0.4978, -0.2704, +0.2963, -0.2424, -0.2377, +0.0542, -0.5813, -0.3314, +0.0234, +0.1353, +0.1885, -0.4818, +0.4946, -0.3437, -0.0408, -0.3601, +0.1318, +0.2486, -0.3088, -0.4411, +0.5277, -0.1257, -0.4646, -0.4539, -0.0095, +0.6496, -0.1052, -0.6746, +0.3025, -0.0855, -0.1113, +0.1304, -0.2482, +0.0107, -0.3439, -0.1315, -0.2316, +0.1768, -0.2268, -0.1223, -0.5271, +0.3784, -0.5252, -0.2377, +0.1388, -0.3378, +0.2181, -0.0689, +0.2941, +0.0044, +0.1891, -0.0509, +0.0914, +0.2977, -0.1663, -0.3623, -0.0772, +0.0197, -0.2234, -0.3112, -0.0609, -0.1381, +0.0890, +0.0460, +0.0142, -0.4865, -0.1751, +0.2371, -0.1852, -0.6088, +0.0152, -0.0823, -0.1289, -0.2044, -0.7310, -0.2056, +0.1072, +0.0079, -0.1789, +0.1253, -0.2312, -0.3431, -0.1412, -0.0953, -0.3622, +0.3766, +0.3203, +0.1998, -0.1852, -0.4630, +0.1017, +0.0380, -0.3577, +0.0552, -0.0491, +0.0620, -0.2254, +0.5100, +0.3085, -0.9197, +0.0245, +0.1613, -0.2888, -0.3367, -0.7743, +0.2930, +0.5275, +0.2395, +0.3260, -0.4876, +0.1441, +0.1083, -0.2077, -0.0162, -0.0100, -0.0559, -0.0036, +0.1453, +0.0042, +0.2518, -0.2407, +0.1021, +0.0405, -0.2128, +0.0866, +0.2753, -0.2614, -0.0256, -0.6157, -0.2181, -0.3962, +0.5585, -0.2790, -0.3463, -0.2301, -0.3256, +0.1199, +0.3906, -0.2450, +0.2601, +0.2751, +0.2546, +0.3675, -0.1279, -0.3002, -0.2151, -0.3924, -0.6061, +0.0396, -0.2452, -0.3420, +0.0579, +0.4261, -0.2200, -0.0324, -0.2346, -0.5050, -0.0047, -0.1375, -0.6326, -0.2100, +0.2774, +0.0850, +0.1070, -0.2795, +0.2149, -0.4067, +0.2429, -0.1144, +0.4880, +0.0949, +0.3567, +0.0152, +0.0013, -0.2505, -0.1949, +0.0630], +[ -0.1723, -0.1557, -0.4950, -0.3447, +0.3134, -0.3579, -0.0001, +0.0962, -0.5796, -0.4150, -0.5110, +0.4075, +0.0227, +0.0725, -0.9421, +0.6107, +0.2790, +0.1984, +0.2337, +0.5453, -0.0340, +0.3049, -0.1807, -0.1085, +0.4351, +0.4050, -0.1805, -0.2090, +0.3533, -0.0195, -0.0786, +0.8944, -0.2721, +0.7169, -0.2861, -0.1510, -0.2619, -0.3671, -0.2015, +0.2595, +0.0351, +0.2994, -0.3666, +0.2408, +0.3073, -0.0179, +0.0976, -0.3664, +0.1841, +0.0979, -0.1209, +0.2309, -0.2827, +0.3789, +0.4197, -0.0155, +0.1979, +0.2720, -0.1160, +0.4626, -0.5456, +0.0007, -0.2535, -0.1234, +0.1810, +0.1973, -0.3088, -0.1346, +0.3206, -0.1146, +0.2446, -0.3067, -0.4639, +0.1647, -0.2162, +0.3796, +0.0619, +0.6112, +0.1175, +0.5665, +0.1142, +0.3709, -0.1419, +0.1321, +0.0650, +0.1952, -0.3417, +0.3802, -0.6273, -0.0162, +0.1213, +0.0823, -0.5304, +0.9111, +0.5029, +0.8862, +0.2029, +0.2394, +0.4913, -0.2721, -0.0655, -0.0001, +0.0483, -0.5096, -0.0732, -0.4347, -0.4974, +0.0450, +0.2935, -0.1081, +0.7021, -1.1752, +0.0609, -0.9516, -0.4281, +0.0092, +0.2223, -0.7367, +0.0107, -0.5940, -0.1206, -0.0405, -0.2688, +0.0516, -0.1647, +1.0320, -0.6207, -0.2238, +0.2180, -0.1574, -0.0412, +0.1640, -0.8342, +0.5910, +0.5872, -0.1396, +0.0310, -0.4284, -0.1957, -0.5202, -0.4918, +0.1178, +0.1810, +0.2900, +0.3115, +0.0185, +0.0360, -0.0422, -0.0245, +0.0866, -0.1750, -0.2731, -0.2825, -0.5676, -0.1056, +0.3177, +0.3432, +0.2608, +0.3884, +0.5627, -0.2243, -0.0137, -0.1918, -1.0110, -0.2613, -0.0348, +0.3585, -0.6610, +0.5136, -0.0330, +0.3686, -0.6808, +0.2505, +0.3316, +0.7917, -0.1283, +0.9045, +0.1989, -0.5997, -0.9126, +0.2693, +0.3214, -0.7779, -0.7518, -0.2985, +0.6057, +0.1136, +0.2035, +0.2291, +0.2812, -0.0236, -0.9562, +0.1740, -0.0238, +0.7070, +0.0373, -0.2822, +0.1867, +0.0245, -0.3107, -0.4408, -0.2246, -0.3152, +0.5446, -0.2249, -0.4331, -0.3255, -0.4219, -0.5227, -0.0210, +0.0635, -0.2103, -0.5634, +0.8767, +0.2529, -0.1215, -0.3635, -0.1327, -0.3813, +0.4531, -0.6627, +0.1316, +0.2156, +0.1508, -0.2161, -0.1154, -0.6417, +0.8709, -0.2289, +0.0605, -0.4046, +0.3373, -0.1148, -0.6212, +0.0371, -0.1410, -0.2213, +0.8599, -0.4573, +0.6222, +0.3107, -0.1569, +0.4160, -0.0845, +0.1652, +0.0080, +0.1743, -0.0456, +0.3639, +0.2093, -0.1005, +0.0093, -0.2168, -0.7153, -0.1972, +0.7276], +[ +0.1697, -0.3885, +0.1069, -0.0617, +0.5131, -0.1418, +0.1427, -0.5709, +0.0191, -0.0495, -0.3026, -0.1129, +0.1109, -0.0662, +0.3090, +0.3430, -0.2976, +0.1814, -0.4145, -0.1168, -0.1641, -0.3613, +0.2260, -0.3825, -0.1149, +0.5480, +0.3160, +0.1604, -0.1252, -0.1538, -0.2604, +0.2282, -0.2813, +0.1356, -0.5893, -0.1053, -0.1946, -0.7235, +0.2499, -0.6875, +0.0987, +0.0351, -0.1473, +0.0171, -0.3876, -0.1652, -0.0297, +0.1009, -0.1188, -1.0803, +0.0354, -0.3797, -0.0477, +0.2496, +0.1565, +0.0354, -1.0098, -0.0470, -0.0345, -0.2341, +0.0760, -0.0247, -0.4161, -0.0920, +0.3157, +0.5730, -0.1212, +0.0573, +0.1007, +0.1926, +0.4577, -0.2041, -0.1005, +0.1324, +0.2268, -0.3710, -0.0038, -0.2247, +0.3495, -0.3643, -0.2977, -0.5127, -0.0201, +0.1074, +0.4485, -0.2529, -0.1624, -0.2576, -0.0633, +0.5198, +0.4709, +0.2370, -0.1645, +0.0109, -0.1159, -0.1174, +0.2032, -0.2863, -0.1481, +0.0215, -0.3431, -0.7387, +0.0869, +0.2565, -0.7215, -0.2867, -0.2441, -1.6201, -0.1918, -0.1217, +0.1225, -0.1834, -0.4723, +0.2542, +0.0229, +0.2454, -0.2479, -0.0542, +0.2266, +0.0513, -0.1715, +0.3481, -0.0674, +0.0048, +0.0435, -0.0930, -0.0589, -0.1182, -0.2407, +0.1002, +0.1340, +0.5007, -0.1613, -0.1241, -0.3080, +0.1454, +0.3897, -0.2256, -0.0927, +0.1028, -0.4274, -0.2913, -0.3130, -0.9492, +0.2260, -0.4201, +0.1871, -0.0975, -0.8489, +0.7287, -0.4117, +0.1555, -0.2486, -0.6040, +0.4002, -0.2970, -0.1902, +0.1478, +0.3497, +0.0713, -0.0653, -0.5390, -0.3187, +0.2181, +0.2413, +0.5533, -0.3434, -0.1390, -0.2986, +0.1452, -0.7319, +0.0479, -0.4350, +0.2009, +0.0184, -0.5783, -0.1971, -0.0501, +0.1205, -0.6514, -0.4555, -0.1106, -0.0623, -0.1877, -0.2276, +0.0869, +0.5072, -0.1449, +0.1115, -0.3480, -0.8555, +0.0199, -0.3390, +0.2017, -0.1187, -0.3836, +0.2586, +0.0085, -0.1478, -0.1012, +0.0896, +0.4176, +0.5783, -0.2789, -0.3044, +0.0019, -0.0417, -0.0133, -0.1092, +0.0913, -0.0325, +0.2607, -0.0013, -0.0174, +0.1431, -0.1434, -0.1505, -0.0888, +0.3194, +0.0493, -0.1195, +0.3872, +0.0543, +0.6214, -1.1019, -0.3721, -0.3201, +0.3204, -0.1039, -0.0099, +0.0641, -0.3761, +0.2542, -0.1680, +0.3555, -0.0990, -0.6406, +0.2056, -0.5322, +0.1438, +0.1698, -0.4285, +0.2757, -0.2258, -0.0983, +0.1210, -0.2695, -0.0074, -0.0644, -0.0990, -1.3496, +0.1073, +0.3525, -0.0115, +0.0264, -0.2596], +[ +0.2747, +0.5628, +0.4431, -0.4808, +0.1649, +0.5614, +0.3499, +0.3167, -0.4618, -0.0132, -0.3237, -0.2952, +0.4245, -0.1691, +0.1089, +0.1352, -0.2851, +0.1287, -0.6465, -0.2492, +0.4377, +0.2717, +0.4748, -0.5543, -0.4054, +0.1491, +0.2907, +0.6462, +0.2216, -0.4695, -0.0424, +0.2164, -0.2030, -0.4614, -0.1250, +0.0055, -0.0856, -0.1442, +0.4880, -0.2420, -0.4811, +0.1583, -0.4418, +0.9357, +0.0392, -0.6858, -0.0939, +0.5365, -0.1688, -0.7388, -0.0071, -0.3334, +0.1075, +0.2025, -0.3026, +0.3052, -0.2410, -0.0626, +0.2712, -0.0920, -0.0153, +0.2765, -0.0545, +0.2745, +0.0655, +0.3442, +0.3462, +0.3263, +0.2914, -0.5316, +0.3494, +0.0859, -0.2454, +0.2092, -0.1163, +0.3634, +0.2525, +0.5571, +0.2256, -0.5412, -0.0111, +0.0994, -0.0691, +0.3054, +0.2804, -0.0680, -0.1856, -0.1495, +0.4269, +0.2529, +0.2101, -0.0740, -0.8437, +0.3873, -0.1279, +0.0644, -0.4079, -0.5276, -0.3977, -0.4074, -0.4552, -0.3181, +0.1966, +0.1559, +0.0435, -0.1219, -0.1680, +0.0140, -0.4742, -0.2062, +0.2468, +0.0087, -0.2799, -0.2163, +0.1322, +0.1842, -0.3525, +0.1758, +0.4053, -0.0979, -0.2324, +0.4251, +0.0993, +0.1651, -0.2595, +0.1306, -0.0781, +0.1477, -0.4104, -0.1264, +0.1643, +0.3303, -0.1632, -0.5046, +0.0847, -0.0272, +0.3258, +0.0115, -0.2498, -0.0496, -0.0365, +0.2946, -0.2972, -0.5459, +0.3055, -0.0819, -0.1421, +0.1174, -0.3425, -0.0407, +0.1862, -0.0683, -0.3621, -0.1234, +0.1474, +0.0456, +0.2276, -0.2268, +0.7288, +0.0816, +0.1983, +0.1715, -0.1798, -0.5754, +0.1822, -0.1222, +0.3782, +0.1634, -0.3839, -0.1345, -0.1396, -0.4157, +0.7586, +0.0151, +0.2993, +0.6449, -0.2801, +0.0825, +0.0071, -0.2395, -0.2420, +0.3180, -0.6414, +0.1926, -0.3371, -0.2227, -0.1492, -0.2123, -0.0785, +0.4464, -0.6735, +0.7092, +0.2349, +0.2622, +0.2318, +0.2083, +0.2080, -0.6163, +0.5206, -0.2141, -0.1516, +0.3485, +0.2487, -0.3222, +0.2153, +0.4927, +0.0316, -0.0842, +0.2031, +0.4124, +0.0955, +0.2378, +0.1805, -0.3313, -0.0765, -0.2072, +0.1117, +0.4379, +0.4960, +0.1179, +0.5476, -0.4134, +0.1773, +0.3737, -0.0206, -0.3819, +0.0122, -0.3059, -0.3299, +0.1291, -0.2483, -0.0893, -0.0693, -0.1249, +0.3299, -0.4633, +0.3046, +0.1212, -0.1704, +0.2537, -0.1089, +0.1156, -0.0764, -0.1748, +0.4580, +0.2688, -0.0216, -0.3047, +0.0361, +0.0442, -0.4634, -0.0529, +0.7424, +0.0897, -0.4915, -0.2530], +[ -0.2950, +0.4745, -0.2429, +0.2752, -0.4050, -0.0669, -0.1100, -0.2696, +0.5789, -0.3232, -0.6611, +0.0717, -0.5163, +0.1445, -0.0622, -0.0038, -0.2640, +0.3361, +0.1008, +0.4852, -0.5955, -0.1323, +0.3321, +0.3346, -0.3011, -0.0732, -1.1028, +0.0692, -1.0819, +1.2074, -1.0188, -0.2155, +0.2934, +0.0449, +0.0060, -0.8519, -0.2445, +0.3793, -0.2954, -0.1761, +0.1100, -0.1667, +0.1866, +0.0724, +0.1035, -0.1747, +0.1722, -0.3217, +0.8777, +0.5600, -0.4940, +0.0429, +0.2103, -0.0161, +0.0652, -0.0538, -0.6381, +0.0505, -0.2626, -0.8758, -0.8780, -0.3226, +0.3723, -0.0063, +0.3529, -0.2120, -0.8369, -0.4227, +0.0098, +0.6233, -0.0428, -0.0706, +0.0185, -1.4554, -0.2413, +0.1361, -0.0933, -0.2917, -0.7164, -0.2296, +0.2872, -0.6325, -0.4693, +0.5704, +0.2275, +0.1236, +0.0047, +0.2918, +0.3270, -0.3250, -0.6201, -0.2348, +0.3860, -0.0198, +0.7052, -0.5551, +0.8388, -0.0369, -0.5169, -0.3586, +0.3014, -0.1938, +0.2685, -0.0955, -0.1103, +0.2058, -0.3227, +1.0233, -0.4240, +0.1558, +0.2731, +0.0126, +0.5597, -0.0101, -0.1268, -0.3800, +0.1101, +0.2421, -0.2984, -0.2336, +0.1988, +0.3700, -0.4579, -0.0235, -0.1603, -0.7767, +0.2749, -0.5447, +0.0028, +0.0438, -0.4079, +0.1064, -0.2033, -0.1493, -0.2249, +0.2252, -0.2091, -0.2542, -0.7724, +0.2091, +0.0220, -0.2310, -0.1476, -0.3213, +0.1362, -0.2202, +0.3902, -0.1610, -1.1772, -0.2014, +0.3702, +0.0760, -0.3432, +0.2867, -0.4002, -0.5128, +0.6702, -0.3667, -0.0299, +0.1372, -0.4944, +0.3034, +0.3064, -0.1679, +0.2280, -0.5870, -0.2718, -0.5096, -0.2144, -0.9115, -0.4486, -0.0969, -0.1706, -0.2283, +0.0728, -0.0999, +0.4275, -0.0496, +0.2265, +0.6409, +0.5212, -0.2511, -0.0128, -0.5112, +0.7315, -0.6277, -0.8890, +0.1119, -0.0329, -0.4842, +0.3657, -0.0832, -0.0453, -0.4431, -0.7345, -0.4028, -0.6844, +0.2773, -0.0776, +0.5961, +0.2588, -0.1628, -0.2956, +0.6240, -0.0442, -0.1976, -0.0601, +0.0487, +0.1059, -0.4802, +0.2312, +0.1878, -0.1641, -0.3063, +0.0779, -0.5947, +0.3276, -0.1574, +0.0518, -0.8603, -0.6282, +0.0159, +0.2217, -0.0711, +0.4798, +0.0434, -0.2916, -0.1463, +0.0058, -0.0726, -0.1971, -0.1869, -0.6205, -0.2644, -0.8322, +0.5034, -0.0311, +0.2060, -0.2229, -0.0838, -0.4383, -1.3797, +0.0462, +0.3815, -0.6875, -0.0992, -0.1150, +0.5152, -0.9405, -0.1500, -0.1374, +0.1917, -0.5055, -0.9638, -0.3250, -0.2241], +[ -0.1536, -0.3932, -0.1488, +0.0040, -0.1288, -0.1545, -0.9172, -0.2805, +0.3230, +0.1461, -0.1107, +0.2029, +0.1632, -0.2643, +0.2472, +0.3046, +0.2814, -0.1184, -0.5096, +0.0984, -0.3366, +0.2242, -0.0239, +0.4157, +0.2858, +0.1108, -0.0776, -0.1283, -0.2030, +0.1134, -0.0902, -0.1824, +0.0418, +0.3266, +0.4316, -0.2477, +0.2924, -0.0527, +0.1449, +0.2986, +0.2485, +0.1540, +0.0001, -0.8476, -0.0689, -0.1016, +0.3742, -0.1236, +0.2377, +0.3154, +0.1240, +0.2560, +0.5795, -0.3371, +0.3826, -0.2159, -0.3485, +0.1224, -0.7865, -0.3446, -0.2398, -0.2691, -0.0612, -0.2650, +0.4368, -0.7490, +0.1430, -0.6888, -0.1218, +0.1478, -0.1616, -0.4055, -0.0134, -0.2593, -0.5647, +0.1908, -0.6317, +0.7954, +0.0961, -0.5094, +0.5672, +0.1861, -0.0810, +0.6770, +0.5015, +0.6221, -0.4789, +0.2531, +0.1142, -0.3287, -0.0953, +0.1372, +0.4031, +0.0750, -0.0161, -0.2726, +0.5245, +0.3697, -0.6535, -0.4510, +0.0919, +0.0658, -0.4687, -0.0160, -1.0360, +0.3085, +0.1988, -0.0155, -0.0580, +0.6356, +0.4824, -0.0580, -0.6040, +0.1401, -0.5050, -0.3169, -0.0570, +0.2261, -0.2034, +0.2546, +0.1917, -0.2450, -0.5480, -0.0658, +0.4291, -0.0303, -0.4937, -0.4524, -0.0388, +0.3961, +0.4950, +0.0312, -0.2034, +0.5666, -0.1002, -0.5486, +0.0753, +0.0175, -0.7026, +0.3155, -0.0880, +0.2177, +0.0881, +0.2664, +0.0051, -0.2471, +0.4793, -0.2982, +0.1036, +0.1263, +0.0034, -0.4423, +0.0933, +0.3059, +0.4064, -0.3276, +0.0026, +0.0185, -0.6529, -0.6750, -0.5380, +0.1447, +0.1747, +0.3788, +0.1551, -0.0605, -0.6776, +0.2446, +0.5547, -0.0101, +0.1820, +0.1259, -0.0514, +0.0479, -0.2650, -0.1059, -0.1688, -0.1912, -0.3360, +0.2134, +0.0543, +0.5636, +0.3412, -0.5392, +0.0621, +0.4772, -0.3313, -0.4376, +0.0272, +0.1554, +0.3807, +0.4939, +0.3175, -0.4498, +0.5755, -0.0546, +0.0159, +0.0351, +0.0451, +0.3587, +0.0944, -0.0031, -0.0826, +0.2568, +0.5953, -0.6936, +0.1513, +0.0973, -0.0282, +0.1344, +0.1280, +0.0350, +0.2338, -0.0971, +0.2113, +0.0762, -0.6498, -0.7180, +0.6955, -0.6532, +0.2342, +0.3941, +0.3652, +0.0793, -0.0786, -0.0365, -0.0705, +0.3362, +0.0218, +0.3218, +0.1325, +0.0795, +0.0799, -0.3366, -0.0008, -0.7087, +0.1497, +0.1490, +0.2054, -0.3338, +0.2178, -0.5476, +0.0694, -0.3220, -0.2363, -0.6905, -0.0137, -0.0039, -0.3057, -0.0075, -0.2926, +0.3981, +0.1954, -0.6497, -0.6387, -0.5863], +[ -0.0360, +0.2954, -0.0415, -0.1861, -0.1073, -0.0619, +0.0758, +0.2595, -0.1324, +0.0786, -0.4354, -0.2461, -0.1916, -0.2344, -0.1291, +0.2328, +0.3387, -0.0731, -0.6766, +0.1840, +0.0911, -0.1266, -0.0519, +0.1181, +0.1365, -0.0523, -0.1781, +0.2005, +0.1115, +0.1210, +0.0721, -0.1915, +0.0981, +0.0564, -0.4853, +0.2200, +0.1986, +0.2435, -0.0983, +0.2328, +0.0097, +0.2252, -0.3074, -0.2446, -0.1512, +0.0477, -0.1672, -0.1571, -0.3081, -0.0384, +0.1514, -0.0964, -0.1442, -0.3555, -0.4037, -0.3527, +0.2746, +0.0331, +0.3087, -0.4382, -0.1313, +0.1540, -0.2501, -0.0540, -0.0858, -0.3254, +0.2537, +0.1154, +0.3133, +0.2732, +0.0159, -0.0697, +0.3618, -0.2276, +0.0914, -0.6782, +0.1307, -0.1598, +0.1400, -0.3742, -0.2462, -0.1944, -0.0343, +0.4345, +0.1273, -0.2421, +0.1062, -0.0204, +0.0289, +0.3268, -0.1223, +0.1921, -0.0763, +0.2320, -0.0406, +0.2471, -0.1578, -0.3309, +0.3415, +0.1961, +0.2112, -0.1143, +0.1991, +0.0273, +0.0975, +0.2010, -0.0719, +0.1204, +0.1723, +0.1155, -0.0569, -0.1840, +0.2899, -0.0957, +0.2138, -0.0352, -0.7646, -0.4011, +0.5825, -0.0675, -0.2865, +0.2258, -0.0888, +0.4040, +0.5791, -0.3169, +0.1193, -0.2115, +0.1814, +0.2504, -0.1733, +0.0491, +0.0677, +0.2845, +0.0169, +0.0868, -0.0024, -0.0365, -0.2270, -0.4361, +0.3346, +0.2319, -0.0769, +0.2725, -0.2883, -0.1010, +0.0275, -0.1357, +0.1794, -0.2117, +0.2064, +0.1074, -0.1082, +0.0635, +0.0389, -0.7832, +0.1141, +0.1320, +0.0181, -0.1715, +0.1375, +0.4326, +0.1225, -0.0650, -0.0209, -0.2055, -0.3685, -0.2018, +0.0845, -0.1548, +0.0742, -0.0552, -0.5630, -0.0593, -0.6809, -0.0612, -0.1252, +0.0674, +0.3169, +0.2488, -0.0968, -0.2377, -0.0607, +0.3838, -0.2299, -0.5658, -0.3862, +0.3168, -0.3866, +0.0213, +0.4963, -0.6488, -0.5193, +0.5468, +0.1999, -0.2567, -0.1807, +0.1057, -0.1875, -0.1282, +0.0276, +0.4583, -0.4058, -0.0258, -0.3120, -0.1087, -0.2016, +0.1688, -0.1348, +0.2886, -0.7916, +0.0877, +0.1170, -0.3574, -0.6124, +0.2224, +0.4414, +0.0925, -0.2001, -0.0743, -0.0906, +0.0475, -0.1264, +0.2501, -0.1218, +0.1349, +0.1751, -0.2361, +0.5184, -0.1585, +0.1610, +0.1194, -0.0824, -0.1333, +0.1845, -0.4864, -0.1342, -0.0673, -0.1059, -0.1255, +0.1713, -0.2342, +0.1031, +0.0191, +0.0026, -0.0553, -0.1135, +0.2985, +0.2850, +0.4020, -0.1087, +0.0884, -0.3541, +0.3092, +0.0849, -0.2151], +[ +0.2371, -0.0086, -0.2611, +0.5156, +0.0931, +0.0796, +0.1728, +0.0679, -0.5360, -0.0178, -0.4290, +0.0138, -0.1435, -0.2081, -0.2986, +0.6750, +0.3418, +0.3486, -0.2263, +0.1717, -0.2510, -0.3704, +0.1700, +0.7958, +0.2257, +0.0034, -0.4423, -0.0504, -1.1018, -0.4064, -0.4251, +0.1119, -0.6379, +0.4920, +0.8266, +0.0255, +0.3594, +0.4602, +0.3663, -0.0724, -0.1700, -0.3765, +0.3345, -0.3255, -0.0887, +0.9938, -0.3264, -0.0687, -0.1137, -0.0124, -0.0392, -0.0047, +0.5795, -0.4190, +0.4339, +0.0758, -0.0027, -0.1153, +0.1485, +0.4894, +0.1099, -0.2054, +0.6032, -0.0731, -0.2392, +0.1160, -0.1188, -0.0067, +0.2892, -0.4823, -0.0291, +0.4673, -0.3526, -0.0929, +1.1909, +0.2589, -0.0504, -0.3820, -0.1289, +0.3804, +0.1888, +0.2932, -0.2874, -0.2412, -0.0845, +0.2648, -0.0194, +0.1119, +0.0614, +0.5552, -0.3978, +0.3185, -0.9749, +0.1223, -0.1325, +0.0353, -0.3382, -0.4137, -0.2405, -0.2323, +1.0141, -0.4834, +0.3897, -0.1186, -0.0549, -0.2652, -0.0160, +0.8072, +0.3652, -0.5397, +1.1077, -0.4531, +0.0320, +0.7525, +0.3837, -0.1597, -0.5915, -1.0873, +0.2604, -0.1406, +0.0787, +0.4561, +0.0474, -0.1794, +0.3019, +0.3779, +0.0220, +0.2327, -0.7537, +0.1829, -0.2856, +0.0857, -1.0650, -0.3748, -0.2974, -0.7783, +0.8731, -0.1243, -0.1016, +0.1358, -0.3743, +0.9547, -0.7992, -0.6159, -0.1482, -0.3578, +0.1896, +0.5530, +0.4486, +0.4260, +0.5332, -0.0449, +0.2954, +0.1244, +0.3628, -0.2508, -0.7484, -0.8054, -0.0311, -0.1260, +0.7015, -0.0675, -0.0999, -0.0363, -0.0300, -0.4767, -0.1877, -0.4087, -0.0022, -0.7186, -0.5304, +0.5916, +0.5709, +0.0832, -0.7458, +0.5229, +0.4158, -0.0808, -0.0479, -0.1827, -0.0359, +0.1044, -0.6888, +0.3843, +0.3503, -0.0043, -0.0708, +0.2169, -0.2123, +0.0380, +0.1926, -0.5396, +0.0643, +0.1430, +0.2271, -0.5528, +0.0703, +0.1330, +0.2271, -0.2817, -0.5850, +0.4538, -0.2435, -0.1733, +0.7802, +0.4799, -0.4109, +0.5072, -0.3197, +0.6073, +0.6545, +0.1636, +0.0254, +0.6118, -0.3745, +0.7355, -0.5632, -0.6298, -0.0379, +0.4363, -0.5521, +0.6507, -0.0700, +0.1930, -0.8462, -0.1050, -0.3672, +0.1103, +0.2060, -0.7312, -0.6317, +0.1302, +0.0955, -0.5235, +0.3899, -0.0225, -0.0077, +0.4365, +0.2099, +0.2631, -0.2255, -0.6623, +0.1293, -0.6884, -0.2619, -0.1395, -0.1443, +0.6374, +0.8680, +0.8132, +0.7087, -0.2445, +0.4986, -0.0446, -0.0006, -0.8373], +[ -0.4495, +0.0435, +0.4813, +0.1369, -0.3641, -0.2529, +0.4496, -0.0242, -0.2999, -0.3478, -0.2722, -0.0916, +0.1491, -0.1968, -0.2539, +0.1463, -0.2696, +0.2267, +0.2962, +0.5283, +0.0416, +0.7199, -0.0238, +0.0954, -0.2894, +0.1260, +0.2921, +0.6348, -0.8794, -0.3574, +0.1670, -0.2380, -0.7382, -0.1575, -0.0566, -0.2299, -0.0549, -0.1437, +0.2151, +0.1275, +0.0698, +0.1757, -0.2951, -0.4897, +0.0375, +0.5689, +0.0023, -0.0353, -0.0830, +0.0415, -0.1865, +0.5987, +0.3522, -0.3112, -0.5514, -0.3481, -0.1245, +0.6629, -1.5164, -1.5245, -0.1184, +0.2531, +0.2720, -0.2686, -0.9922, -0.4516, -0.0557, +0.0438, -0.1536, -0.1301, -0.0277, -0.2421, -0.9948, +0.5539, -0.6173, +0.3850, +0.2736, -0.0939, +0.1821, +0.6746, -0.3509, -0.0593, -0.0309, +0.1863, -0.4364, +0.8391, +0.0684, -0.6878, +0.0378, +0.0772, +0.2807, -0.2284, -0.0043, -0.1348, -0.0927, +0.4267, -0.3053, +0.4963, +0.5246, +0.7464, +0.0170, +0.0081, +0.1008, +0.3554, -0.1083, +0.0900, -0.0259, +0.2350, +0.2738, -0.0943, +0.1602, -0.8808, -0.3479, +0.1440, -0.2565, -0.8828, -0.4877, +0.1551, -0.4075, +0.1506, -0.1975, +0.2705, +0.4446, +0.1308, -0.4963, +0.5065, +0.4221, -0.3242, +0.3413, -0.4956, +0.1187, +0.1829, -0.3531, +0.1247, +0.1899, +0.3358, -0.3549, -0.4318, -0.2254, +0.1786, +0.0941, -0.6469, -0.2490, +0.3554, -0.5808, -0.0775, -0.6145, -1.3435, +0.1474, +0.0131, -0.6835, +0.6978, +0.1364, -0.6990, -0.0145, -1.0213, -1.1805, +0.7311, +0.1982, -0.4777, -0.1177, -0.2967, -0.1379, -0.9473, -0.2823, -0.1279, -0.2873, -0.5012, -0.1892, -1.1920, -0.6524, -0.3917, +0.2036, +0.4123, -1.2438, -0.5606, -0.2587, +0.1305, +0.2363, +0.1463, -0.0899, -0.5979, +0.4246, -0.1457, -0.1571, +0.2682, -0.3809, -0.3298, +0.5987, +0.2087, +0.0190, -0.5439, -0.1221, +0.0441, +0.4264, +0.1032, -0.3863, +0.0826, -0.5298, +0.1179, +0.4471, -0.0058, +0.1359, -0.5553, -0.2015, +0.0624, +0.5981, -0.0567, +0.3412, -0.2411, +0.1909, -0.4750, +0.3180, -0.3431, -0.4751, +0.2987, +0.6077, +0.4846, +0.0018, -0.0260, -0.5347, -0.2805, -0.1223, -0.2192, +0.1721, +0.2594, -0.4876, -0.5535, +0.0242, +0.6930, -0.7116, +0.1902, -0.1624, -0.0507, -0.7388, -0.0348, -0.1045, -0.5571, -0.1837, +0.2429, +0.2504, -0.4475, -0.1865, +0.0849, +0.3409, +0.8343, +0.2234, -0.5084, -0.1988, -0.7860, -0.5043, -0.0522, +0.2207, -0.1742, +0.0785, +0.3266], +[ -0.1545, -0.2636, +0.7711, +0.5888, +0.8420, -0.3952, +0.4993, +0.0223, +0.1174, -0.1090, -0.1476, +0.3352, +0.5241, -0.6029, -0.3128, -0.1732, -0.4034, +0.0029, -0.0042, +0.2734, +0.4653, +0.4844, +0.7529, -0.0139, -0.0961, +0.1176, +0.3521, +0.0775, +0.0548, -0.1762, +0.3629, -0.1580, -0.1869, -0.0555, +0.6377, +0.0195, +0.0749, +0.2786, +0.0565, +0.7454, +0.4380, -0.2898, -0.6027, +0.3066, +0.3890, -0.2317, +0.1276, -0.3984, -0.0154, -0.1493, -0.1296, -0.2045, -0.2730, -0.1757, +0.2943, +0.2368, +0.2421, +0.4279, -0.0585, -0.5660, -0.0633, +0.5286, +0.4202, -0.0919, -0.2269, +0.1888, +0.2327, -0.0919, -0.2479, +0.3121, +0.0653, -0.6794, +0.7241, -0.1175, -0.2181, -0.0647, +0.1438, -0.1630, -0.1400, +0.4939, +0.2837, -0.1447, -0.0997, -0.5197, -0.1330, -0.0634, -0.6257, +0.0281, -0.3211, +0.2312, -0.1216, -0.3033, -0.1893, +0.7291, -0.0157, -0.3289, -0.4493, -0.5517, -0.1759, +0.6222, -0.4931, +0.2985, -0.4296, -0.2574, -0.2905, +0.0091, -0.5682, +0.0978, +0.1111, -0.0548, +0.2864, -0.4165, +0.8250, -0.1752, -0.0190, -0.1323, +0.2348, -0.6032, -0.2997, +0.5765, -0.1065, -0.1482, +0.5952, +0.1394, +0.1673, -0.2770, +0.4918, -0.2861, +0.6747, +0.0634, -0.6803, +0.1890, +0.1198, -0.3153, +0.2313, +0.0112, +0.0932, -0.1102, -0.2010, -0.3737, -0.5680, -0.4689, +0.5138, +0.2031, -0.6002, -0.1868, +0.3376, -0.2676, -0.9375, -0.2736, -0.2545, -0.0246, +0.0679, -0.0150, -0.0617, -0.2441, +0.4709, +0.0774, +0.5169, -0.3557, +0.0490, +0.7436, +0.6572, +0.0357, -0.0924, -0.4672, -0.1624, -0.7978, -0.3220, +0.0738, +0.7238, -0.2530, +0.5674, +0.4540, -0.7096, -0.0164, -0.1263, +0.9431, -0.5657, +0.2935, -0.2642, -0.2049, -0.0366, +0.8266, -0.1993, +0.2611, -0.1295, -0.6901, -0.2303, -0.0508, +0.0599, +0.2460, -0.5177, -0.4144, -0.2723, +0.3891, -0.3817, -0.0499, -0.2704, +0.2270, +0.3747, -0.1594, -0.2215, +0.7694, -0.0915, +0.0059, -0.6710, -0.3997, -0.0833, +0.2102, +0.4514, -0.3927, +0.2041, -0.8319, -0.4655, -0.2734, -0.1729, -0.2223, -0.2689, +0.6059, -0.5239, -0.2485, -0.3970, +0.3389, -0.3576, +0.2457, +0.1344, -0.0006, +0.2879, +0.0049, +0.2234, -0.2334, -0.1920, -0.1798, -0.2480, -0.2451, +0.1456, -0.1634, -0.0665, +0.5494, +0.2914, +0.2998, -0.0831, -0.1296, +0.3089, +0.1795, -0.1477, -0.0371, -0.8516, -0.1523, -0.1577, -0.0086, +0.0418, -0.7372, +0.2951, +0.0362], +[ -0.4565, +0.1782, +0.1290, -0.5322, -0.2860, -0.2451, -0.3503, -0.1212, -0.6014, +0.2923, -0.2355, -0.4092, -0.3082, +0.6207, -0.6511, -0.1271, -0.3121, -0.6387, -0.1085, -0.3078, +0.0726, -0.1056, -0.7585, +0.0335, -0.1210, +0.2206, +0.5102, -0.4960, -0.3887, +0.0633, -0.2038, -0.0613, -0.1608, -0.4403, +0.1844, +0.2427, -0.0712, +0.1452, -0.3168, +0.2375, +0.5895, -0.3812, +0.4553, -0.3796, +0.0759, +0.0808, -0.0043, -0.1435, -0.1343, +0.4849, -0.4057, +0.0537, -0.3170, -0.5482, -0.0744, -0.2475, +0.2786, +0.0103, +0.1002, +0.2105, +0.0228, +0.2931, -0.1969, -0.5573, -0.5076, +0.3885, +0.2231, -0.7409, -0.3342, +0.1119, +0.1228, +0.3823, -0.4331, +0.0602, +0.0816, -0.3968, -0.1841, +0.2059, +0.3797, +0.0335, -0.0525, -0.1171, -0.4932, +0.0667, -0.3642, +0.2155, -0.2907, -0.0247, -0.8014, +0.1727, +0.2656, -0.3467, -0.1870, -0.0004, +0.2753, +0.0611, -0.0361, +0.0040, +0.3672, -0.6810, +0.3802, +0.1425, -0.1164, +0.0589, -0.3594, +0.1147, -0.0726, +0.1166, +0.1405, -0.8273, -0.1676, -0.0557, -0.2434, +0.1277, +0.5011, -0.1945, -0.3558, -0.3259, +0.0800, -0.1651, +0.5381, +0.0205, +0.0540, +0.3779, -0.3028, -0.0529, -0.6128, +0.1707, -0.3605, -0.0364, -0.3162, -0.0557, -0.1434, -0.3231, -0.3164, -0.7789, +0.0809, +0.0999, -0.0837, -0.1528, +0.2895, -0.0212, -0.0732, +0.2575, -0.1690, -0.2843, +0.0976, -0.0577, +0.0625, +0.5292, -0.2402, -0.4092, -0.0631, -0.0600, +0.1563, -0.0879, -0.1808, +0.0164, -0.1146, -0.5358, -0.1802, +0.0685, +0.2012, +0.2354, -0.1941, -0.2628, +0.2707, +0.0396, -0.2286, +0.1113, -0.3468, +0.2619, +0.0130, -0.2485, -0.1131, +0.1862, +0.0415, -0.6855, -0.1715, -0.3101, +0.2030, -0.4367, +0.3013, +0.0863, -0.5386, +0.0915, +0.2793, -0.1328, -0.0632, -0.1778, +0.0966, -0.0656, +0.1870, -0.4183, +0.2612, -0.3949, -0.2119, -0.7062, -0.1619, +0.1240, +0.5384, +0.0755, +0.2566, +0.0666, +0.1773, -0.0047, +0.2708, -0.0026, +0.0031, +0.2468, -0.0893, +0.3492, -0.1193, -0.7335, +0.3597, -0.9848, -0.3577, -0.0779, -0.3795, -0.3974, +0.0866, +0.3102, -0.5583, -0.7425, +0.1512, +0.1052, -0.1454, +0.2425, -0.1251, +0.1301, -0.5012, -0.6570, +0.7020, -0.1142, -0.0283, +0.1393, +0.1112, +0.1435, -0.3354, -0.2273, +0.4505, -0.0457, -0.2140, -0.4433, -0.4714, -0.0525, -0.0225, +0.1967, -0.0158, +0.1003, +0.0867, -0.9314, -0.2636, +0.3661, -0.5848, +0.0565], +[ -0.1112, -0.4525, +0.1614, +0.0399, +0.5304, -0.3198, -0.4914, -0.2721, -0.0057, +0.1912, +0.3123, +0.1551, +0.3333, -0.0465, -0.1155, +0.1781, +0.0136, -0.4149, +0.1566, -0.5089, -0.0009, -0.0626, -0.1944, -0.1314, -0.1063, -0.2397, +0.2927, -0.6858, +0.3245, +0.2261, -0.2639, -0.0988, -0.2489, +0.0032, +0.2910, +0.1492, -0.3025, +0.0991, +0.2780, +0.3589, -0.2876, -0.0963, +0.1392, -0.5810, -0.7109, +0.6384, +0.0976, -0.5051, +0.0422, +0.6395, +0.2289, -0.6906, +0.6869, -0.2494, +0.0840, +0.5636, +0.4438, +0.0787, +0.3340, +0.0412, +0.3545, -0.4366, -0.4846, +0.0560, -0.0517, +0.2010, +0.1060, -0.5708, +0.4587, +0.0208, +0.0620, -0.2796, +0.5296, -0.2107, +0.3797, -0.3168, +0.6043, +0.1749, +0.4162, +0.4593, -0.7969, +0.6965, +0.4833, +0.1571, -0.1353, -0.0926, -0.0610, +0.0594, -0.8100, -0.3465, -0.8444, +0.1071, -0.1125, -0.1348, +0.1900, -0.3160, -0.0849, -0.5535, +0.2228, -0.0280, -0.2032, -0.5068, -0.1945, -0.4944, -0.3757, +0.2530, +0.2590, +0.0177, -0.3995, +0.1453, +0.4474, -0.2493, -0.1195, +0.1928, +0.9237, +0.0135, -0.6365, +0.1230, -0.3276, -0.0830, +0.2579, -0.3146, -0.1939, +0.4047, -0.0049, -0.3189, -0.0661, +0.1790, -0.2341, +0.1557, +0.2112, +0.1689, +0.1799, +0.0173, -0.3950, -0.5424, +0.0521, -0.3810, +0.1368, +0.1286, -0.4210, +0.4710, +0.0680, +0.2577, -0.2847, +0.2011, -0.0889, -0.3098, +0.3893, +0.1595, -0.2627, -0.1097, +0.1000, +0.1536, +0.3436, -0.1249, -0.4113, +0.2356, -0.0156, +0.1952, -0.0951, -0.3113, -0.3086, +0.4344, +0.0703, -0.2342, -0.3115, -0.1909, +0.4157, -0.3784, -0.1582, +0.1850, -0.2052, +0.1344, -0.0284, -0.4493, +0.0625, -0.1307, +0.3509, -0.0012, +0.8178, -0.2761, +0.7609, +0.1238, +0.0534, -0.2405, -0.2435, -0.1970, +0.0690, +0.4685, +1.0030, +0.6136, +0.6953, +0.0036, +0.5347, -0.4444, -0.1588, -0.4121, -0.3876, +0.3125, +0.2208, -0.0865, -0.2455, +0.0981, +0.4245, -0.5058, +0.2232, +0.1998, +0.1941, -0.2040, -0.0108, +0.2213, +0.0371, -0.3715, -0.4102, -0.1646, -0.1220, +0.6978, -0.2699, +0.1139, +0.0043, -0.2600, +0.4152, -0.2855, -0.2182, +0.7740, +0.1168, +0.1696, +0.1662, -0.4700, -0.0897, -0.5900, +0.0786, +0.2272, -0.1016, +0.3904, -0.3343, -0.1979, -0.2305, -0.0750, -0.1703, -0.4604, +0.2909, -0.3099, +0.1186, -0.3282, +0.2542, +0.0348, -0.2425, +0.4281, +0.1888, -0.6300, -0.0389, -0.2371, -0.1128, +0.1885], +[ +0.6639, +0.0702, -0.1304, -0.4967, +0.3758, -0.1061, -0.0523, -0.2161, +0.0816, -0.3597, +0.0542, +0.0536, -0.3311, -0.1367, -0.5922, -0.3262, -0.3618, -0.8526, -0.5574, -0.1029, +0.1654, -0.3574, -0.5698, -0.0729, -0.4110, +0.1946, -0.5148, -0.2157, +0.0880, -0.4988, +0.1084, -0.2813, +0.4106, -0.0524, -0.1673, -0.7740, +0.1078, +0.1820, -0.5635, -0.0145, -0.1669, +0.0116, -0.1952, +0.1940, +0.2119, -0.0359, +0.3704, +0.2859, +0.1880, -0.0113, +0.0125, +0.4600, -0.2778, +0.0657, +0.7902, -0.1208, +0.1688, -0.1355, +0.3225, +0.4388, -0.2043, -0.5396, +0.0596, -0.6605, -0.4528, -0.4741, -0.3760, +0.4426, -1.1438, -0.0723, +0.2735, -0.1089, -0.3427, -0.0726, +0.0420, -0.2223, -0.7000, -0.2843, -0.4384, +0.2913, -0.1338, -0.5119, +0.5250, -0.0908, +0.5554, +0.1226, -0.0437, +0.2352, -0.2992, -0.2623, +0.3665, -0.0842, +0.0260, +0.0963, -0.6214, -0.3901, +0.0785, -0.0952, -0.0248, -0.3269, -0.1007, +0.0385, -0.1838, -0.4408, +0.0586, +0.3316, +0.2261, +0.1234, -0.1497, -0.8627, -0.2077, -0.0247, -0.3589, -0.2200, -0.0796, -0.3080, +0.0493, +0.1684, -0.0319, -0.4871, -1.0854, +0.0254, -0.3065, -0.1966, -0.3679, +0.1414, -0.0580, -0.2385, +0.2040, +0.0429, +0.1307, -0.8378, -0.1806, -0.4079, +0.4829, -0.5028, -0.1583, -0.4943, -0.0458, -0.1000, -0.5349, +0.2198, -0.1819, +0.4630, -0.0457, +0.0766, +0.3230, +0.6088, -0.0285, -0.3704, -0.3567, -0.3936, -0.1021, +0.4362, -0.1535, -0.1291, +0.0761, -0.3656, -0.3966, -0.4077, +0.6730, -0.0519, -0.6391, +0.2173, -0.2885, +0.2854, -0.2147, +0.1787, +0.2168, -0.4785, +0.1279, -0.0088, -0.4949, -0.8904, -0.6216, -0.1224, -0.2990, -0.4242, +0.3770, -0.3137, +0.0934, -0.5931, -0.2990, +0.3737, -0.6431, -0.1939, -0.2330, -0.1893, -0.2435, -0.1946, -0.0799, -0.1570, -0.5438, +0.0471, +0.2994, +0.2884, +0.2453, -0.6113, +0.4730, +0.2125, -0.6701, +0.0616, -0.2903, -0.2056, +0.2428, -0.1759, -0.8047, -0.2883, -0.6022, -0.4987, -0.2738, +0.1943, +0.2759, -0.3151, -0.3028, -0.0858, -0.6176, -0.4943, -0.2982, +0.3932, -0.3796, -0.1953, -0.3258, +0.0818, +0.1012, +0.0787, +0.3576, -0.5450, -0.2397, +0.1890, +0.4258, +0.1003, -0.4817, +0.3342, -0.1117, -0.1249, -0.0892, -0.1996, +0.0142, -0.0099, +0.0581, -0.7400, -1.2277, +0.0064, +0.0318, -0.4549, -0.0940, -0.0705, -0.0682, -0.2008, +0.1345, +0.5597, -0.2645, -0.0604, -0.3416, -0.2864], +[ -0.0028, -0.0898, -0.4007, +0.4676, -0.1535, +0.2170, +0.0180, -0.0810, +0.5363, +0.0032, +0.3269, -0.1136, -0.1009, -0.2048, -0.3535, +0.4315, +0.1272, -0.1089, -0.5999, +0.0208, +0.0936, -0.1613, +0.4883, +0.1000, -0.2159, +0.4113, -0.0223, +0.6549, -0.3449, +0.0485, +0.2421, -0.4096, +0.0556, -0.4409, -0.4039, +0.0445, +0.3850, +0.0889, +0.0026, -0.1220, +0.3864, +0.3739, +0.1646, +0.5352, -0.0789, -0.0276, +0.2423, -0.3945, +0.1482, -0.0888, -0.1047, +0.6800, -1.1911, -0.7345, +0.5066, +0.0200, -0.0569, -0.0783, +0.1944, +0.4563, +0.1254, +0.3341, +0.8698, +0.3332, +0.4348, -0.3389, -0.4066, +0.2644, -0.2798, -0.0424, +0.1193, +0.0831, -0.7383, -0.0038, +0.2701, -0.0101, -0.6089, +0.1930, -0.1343, +0.5417, -0.3725, +0.0902, -0.1180, +0.3325, +0.3892, +0.1325, +0.9921, -0.0492, +0.2405, +0.2264, +0.2860, +0.0994, +0.0847, +0.9777, +0.0296, +0.4773, -0.1188, +0.6873, +0.5104, +0.0378, -0.2487, +0.3510, -0.3927, -0.0066, -0.3028, +0.1421, +0.0103, -0.0162, -0.2787, -0.3621, +0.7588, -0.1543, -0.1931, -0.2935, +0.1967, +0.2697, +0.4855, +0.5111, +0.1222, -0.3406, -0.2549, +0.1323, -0.0580, -0.1195, -0.1470, +0.6529, +0.2743, -0.0332, +0.1778, +0.2766, +1.1343, -0.3576, -0.6760, -0.2872, -0.8008, -0.0279, -0.0802, -0.0202, -0.1213, -0.5831, -0.2366, -0.4305, +0.3012, -0.1903, +0.2265, -1.0208, -0.1138, -0.1229, -0.7328, +0.1313, -0.1682, -0.7280, -0.4280, +0.6649, -0.3497, +0.2514, -0.2782, -0.0772, -0.4907, -0.0475, +0.0505, +0.6654, -0.5389, -0.2224, +0.0454, +0.0665, -0.2657, -0.1661, +0.3128, +0.5484, +0.2041, -0.0153, -0.5880, +0.1951, -0.1350, +0.2217, +0.2999, -0.1773, -0.1246, +0.2815, +0.3207, -0.3308, -0.0356, -0.2777, -0.1428, -0.4047, -0.1064, -0.0044, +0.4314, +0.0760, -0.0951, -0.1282, -0.0204, -0.0225, -0.4182, +0.3567, -0.0197, -0.3210, +0.7637, +0.2886, -0.3230, +0.0109, +0.3165, +0.0088, -0.3390, +0.6050, +0.0018, +0.0298, -0.2559, -0.2123, +0.1931, +0.0521, +0.1330, +0.2284, -0.4433, -0.2233, +0.6624, -0.0413, -0.5773, +0.0100, +0.0626, -0.5787, +0.5139, -0.7480, -0.1786, +0.2617, -0.1276, -0.0327, +0.3131, +0.2643, -0.0968, +0.1409, -0.3147, +0.6659, -0.4285, -0.2072, -0.0548, +0.1973, +0.0799, +0.4575, +0.3171, -0.2175, -0.2405, -0.0591, -0.2228, +0.1632, -0.0162, -0.1352, -0.2736, -0.6039, -0.5106, +0.1240, +0.3908, +0.0334, -0.1636, -0.2803], +[ +0.0894, -0.1313, -0.5267, -0.3037, +0.0560, -0.0589, -0.0811, +0.2186, -0.0574, -0.2032, +0.4292, +0.1375, -0.1661, +0.1344, +0.1416, -0.2339, -0.1400, -0.1990, -0.2908, +0.0187, -0.1002, -0.5780, +0.0609, -0.2537, -0.2208, -0.0817, -0.0625, +0.3360, +0.3056, -0.0835, +0.0158, +0.1561, -0.5691, -0.0537, -0.0060, +0.0156, -0.0768, +0.1259, +0.0801, -0.3652, -0.2935, -0.0957, -0.3882, -0.0806, -0.1767, -0.1223, -0.2980, -0.0602, +0.0748, +0.1073, -0.2273, -0.0432, +0.0205, -0.1205, +0.0701, +0.2412, -0.0545, +0.4093, +0.1213, -0.1339, +0.2695, -0.1651, -0.3032, +0.2259, +0.2772, -0.4091, -0.2053, +0.1683, +0.3017, +0.0795, -0.0465, -0.1519, +0.1913, -0.0878, -0.3027, -0.1999, -0.1650, +0.0766, +0.3527, +0.0193, -0.0428, -0.3020, +0.1492, +0.0307, -0.0845, -0.3916, +0.2446, -0.2790, -0.1062, +0.0129, -0.0355, -0.0179, +0.0488, -0.1491, -0.1360, -0.5012, -0.1146, -0.6466, -0.0591, -0.2473, -0.0138, -0.0251, -0.3729, -0.4206, +0.0316, +0.4263, +0.1346, +0.0591, -0.0302, -0.3306, +0.2092, +0.1464, -0.2104, -0.0266, -0.5471, +0.3618, -0.0120, -0.0801, -0.6509, -0.1565, +0.2461, -0.2794, +0.1373, -0.3501, -0.0141, -0.3659, -0.0823, +0.0433, -0.4913, +0.1867, -0.1787, -0.2530, -0.0858, +0.0631, +0.4656, -0.0758, +0.1346, +0.3409, -0.0766, +0.1549, -0.1865, +0.0163, +0.1177, -0.1294, -0.0539, -0.1648, -0.3973, -0.0093, +0.0441, +0.2224, +0.2009, -0.1244, +0.2471, -0.1195, +0.2794, -0.1653, -0.0777, +0.2899, -0.0727, -0.0180, -0.1459, +0.1405, +0.2990, -0.3099, -0.0493, -0.0159, -0.3430, +0.2833, -0.0530, -0.1604, -0.0790, -0.0641, +0.4894, +0.1193, +0.0302, +0.0596, -0.3592, -0.0790, -0.3708, +0.1281, -0.1684, -0.1438, +0.1309, -0.1472, +0.0636, +0.0655, -0.2718, -0.3099, -0.2452, -0.3439, -0.2408, -0.2503, +0.0348, +0.1378, -0.1481, +0.0495, -0.0593, -0.2129, -0.1782, -0.1991, -0.0801, -0.0231, -0.2544, +0.3121, -0.6851, +0.1245, +0.1280, +0.0607, +0.1181, +0.2037, -0.0248, -0.0015, +0.2572, +0.1095, -0.4549, +0.0161, -0.0200, -0.3575, -0.3766, -0.1733, -0.1862, -0.2414, -0.4685, -0.1836, -0.3641, -0.1041, +0.0687, -0.1580, +0.1813, -0.0349, +0.2789, +0.1194, -0.2338, +0.3210, +0.0017, -0.4004, +0.2656, +0.2545, -0.2993, +0.1564, -0.3086, +0.0336, +0.0466, -0.0968, -0.2550, +0.2261, -0.0329, -0.1153, -0.1083, -0.2512, +0.0684, -0.1142, +0.1333, -0.0650, +0.2348, +0.3584], +[ +0.4732, -0.1606, +0.6582, -0.2787, -0.4086, +0.4893, -0.4595, +0.1070, -0.2998, -0.3381, +0.4717, +0.0695, +0.0694, -0.1232, -0.3385, +0.5312, -0.7533, -0.6750, +0.5398, -0.0136, -1.7436, -0.4604, +0.1915, -0.0144, -0.8186, +0.6056, -1.0079, -0.6666, -0.5122, +0.1853, +0.3952, +0.3490, -0.4289, -0.8478, -0.7121, -0.3623, -1.4662, +0.2201, +0.5418, -0.3230, -0.6259, +0.1299, -0.6091, -0.0094, +1.4666, -0.0719, -0.9252, +0.3602, +0.1149, +0.3030, -0.2658, -0.4848, -0.1590, -0.5769, +0.0430, +0.2988, +0.0350, +0.5103, +0.7586, +0.2644, -0.0157, -0.6312, -0.2371, +0.1164, -0.9660, -0.9717, -0.1487, -0.1394, -0.5667, +0.3729, -0.3456, +0.3801, +0.4136, +0.3297, +0.6520, +0.3534, +0.5755, +0.4200, +0.3596, -0.0550, +0.0103, -0.2814, +0.1925, -0.1471, +0.2325, -0.1932, +0.2907, +0.9803, +0.4304, -0.2703, +0.4069, +0.0140, +0.3637, -0.1827, +0.2379, -0.0605, +0.1779, -1.0385, -0.3431, +0.3169, +0.8508, -0.5855, +0.4819, -0.2676, -0.2594, +2.1076, -1.0596, +0.4236, -0.3660, +0.6359, +0.4310, -1.0984, -0.9941, +0.8232, +0.0712, +0.3779, -0.7529, +0.0185, +0.2977, -0.6670, +1.1753, +0.0192, -0.2653, -0.9421, -0.1875, -0.4444, +0.2785, +0.6543, -0.0886, +0.1154, -0.7106, -0.5924, -1.0759, -0.0793, -0.5093, +0.2754, +0.4661, +0.6569, -0.0456, +0.8637, -1.5313, -0.3027, +0.2600, -0.4001, -0.0731, -0.9646, -1.3496, -0.5664, +0.6005, +0.7289, +1.0823, +1.0336, -1.1099, -1.7396, -0.0138, -0.7396, -0.4744, +0.5657, -0.4586, +0.7394, +0.3641, +0.1860, -0.2638, -0.0889, -0.1331, -0.8559, -0.1339, +1.0111, -0.7366, -0.8960, +0.9621, -0.2681, +0.3126, +0.2824, +0.1901, +0.1823, +0.1325, -0.3736, -0.2325, +0.3365, +0.2287, -0.0605, +0.2358, +0.0979, +0.5472, -0.2089, -0.0947, -0.2847, -0.4178, -0.4625, +0.9301, -0.4498, -0.1724, +0.1641, -0.2897, +0.7335, +0.1285, +0.5672, +0.0944, -1.2222, -0.4112, +0.0133, -0.3927, +0.7011, +0.1873, -0.9979, -0.6419, +0.0528, +0.2162, -0.9908, -0.0299, -0.0079, -0.1600, +0.4196, -0.5376, -0.5944, +0.5843, -1.4553, -0.3420, -0.0111, -0.3172, -0.7095, +0.3238, -1.5251, -0.6495, +0.1290, +0.5290, +0.8379, -0.0186, +0.3914, +0.6254, -0.9157, +0.5162, -0.7548, +0.2652, -0.1713, +0.6144, +0.3886, -1.0187, +0.4616, -0.1282, +0.1885, +0.4676, -0.5539, -1.3952, +0.1609, -1.3798, -0.9262, -0.0862, +0.4384, +0.1909, +0.6169, -0.2354, +0.0560, -0.4729, +0.5102], +[ -0.2623, -0.5500, -0.8934, -0.5827, -0.3098, +0.0409, -0.5424, +0.1890, +0.2709, -0.4536, -0.2234, -0.0921, -0.0883, -0.1581, -0.2704, +0.1434, +0.5878, -0.1153, +0.3998, -0.5189, -0.0398, -0.8323, -0.2917, -0.3440, +0.1746, +0.1797, -0.0405, +0.1575, -0.4795, -0.0746, -0.0424, -0.3207, +0.5470, +0.0724, +0.6805, -0.1680, +0.8424, -0.1252, -0.9788, +0.5110, -0.3236, -0.0378, -0.3926, +0.3545, +0.6891, +0.0941, -0.4593, +0.3817, -0.4011, -0.1867, +0.1241, -0.0399, +0.0399, +0.4695, +0.0817, +0.2802, -0.2934, +0.1742, +0.2839, -0.6293, -0.0622, -0.3654, +0.3869, +0.0138, +0.3932, +0.3312, +0.0329, -0.5800, -0.2554, -0.0443, -0.1353, +0.3262, -0.1477, +0.3355, +0.4989, +1.0883, -0.1484, -0.0356, -0.1507, +0.0998, +1.0423, +0.8652, +0.0962, -0.7090, +0.0557, +0.4462, -0.5165, +0.3132, -0.1200, -0.7751, -0.2078, +0.0040, +0.1418, +0.0903, +0.1258, -0.7325, -0.0397, +0.2254, -0.0790, +0.6261, -0.1110, +0.0273, -0.3680, -0.6284, -0.5848, -0.0510, -0.3352, -0.4350, +0.7128, -0.0535, -0.3427, +0.1700, -0.1675, +0.5452, -0.0314, +0.0352, +0.0463, -0.2302, +0.2769, -0.1505, -0.0960, -0.1267, +0.0688, -0.3363, -0.3650, +0.1264, -0.6723, -0.1585, -0.3805, -0.5702, +0.3047, +0.0726, -0.1396, +0.5884, -0.5775, -0.3510, +0.4869, -0.2920, +0.2757, -0.7034, -0.5380, +0.2403, +0.4119, +0.0880, +0.4356, -0.1930, +0.0740, -0.1306, -0.5824, -0.1174, +0.3561, +0.0697, +0.1986, -0.1393, +0.6282, -0.6205, -0.1164, +0.2631, +0.2449, +1.0627, -0.6674, +0.7347, -0.0015, -0.2780, +0.0399, +0.2840, -0.5423, -0.3100, -0.2520, -0.5139, +0.2372, +0.0145, -0.3361, +0.2923, +0.0887, +0.0496, +0.1057, +0.5594, -0.0216, +0.0017, -0.0902, -1.1624, +0.2974, -0.0896, +0.0014, -0.1058, -0.2326, -0.4239, -0.6721, -0.1929, -0.0481, +0.2104, +0.4768, +0.2210, -0.2804, -0.0495, -0.2478, +0.0522, -0.0218, -0.0644, +0.2885, -0.2548, +0.0693, -0.4215, -0.0662, -0.4346, +0.2659, +0.0776, -0.1521, -0.4458, -0.0882, -0.0582, +0.8444, -0.5577, -0.3347, -0.0834, -0.6310, +0.3409, -0.3974, -0.6091, +0.3574, +0.2273, -0.4237, +0.1367, -0.1327, +0.0987, -0.9152, +0.5622, -0.0676, -0.6499, +0.3606, +0.4399, -0.3099, -0.6367, +0.3527, +0.0088, -0.2020, -0.1820, +0.0846, -0.6191, +0.1769, +0.3711, -0.1939, -0.3972, +0.0426, +0.0640, +0.5209, +0.2030, +0.3277, -0.5862, +0.1393, -0.2087, +0.5449, +0.1910, +0.0607, -0.1638], +[ +0.3326, -0.2192, -0.1261, -0.7672, -0.0726, +0.0749, +0.1123, +0.2187, +0.0284, +0.2690, -1.0084, +0.3601, -1.6456, +0.1946, +0.3244, -0.8317, +0.0052, +0.3999, -0.0599, -0.2789, +0.4927, -0.0105, +0.6244, +0.6483, +0.2249, +0.2885, -0.0790, +0.6272, +0.2172, +0.7959, -0.3381, -0.4279, +0.1254, +0.8320, -0.3991, -0.4147, +0.0855, -0.0195, -1.0794, -0.2158, +0.6702, +1.1494, +0.5560, +0.2204, +0.5365, -0.4700, +0.1475, +1.1094, -0.3511, +0.0416, -0.2719, +0.1314, +0.6246, +0.5698, -0.1744, +0.2456, -0.5748, +0.2735, +0.2794, -0.3873, -0.3518, -0.4836, -0.9445, -0.7092, -0.1050, -0.5319, -0.0415, -0.4103, -0.8021, -0.4810, -0.3130, +0.2015, -0.2658, +0.7122, -0.9539, -0.1401, +0.3261, -0.1090, +0.1664, +0.8160, +0.8901, -0.4834, -0.9219, +0.2213, +0.7483, -0.0979, +0.4085, +0.6627, -0.0915, -0.1968, -0.3771, +0.0993, +0.7787, +0.2916, -0.1056, -0.9319, -0.6357, -0.2824, -0.2307, -0.0626, +0.4354, +0.1002, -0.4637, -0.6664, -0.5818, +0.3427, -0.1501, -0.4927, +0.1051, +0.9686, +0.4639, +1.0309, +0.4054, +0.5349, -0.5620, +0.0207, -0.0858, -0.6535, +0.4465, -0.0544, +0.4589, -0.3666, +0.5363, -0.2222, -0.2747, +0.3050, -1.1584, +0.1305, +0.3800, +0.8084, +0.6366, +0.2893, +0.1092, -0.0087, +0.9411, -0.5530, -0.4102, +0.2868, +0.3403, +0.1751, -0.2593, -0.2496, +0.0389, +0.9976, -0.4269, +0.1595, +0.6351, +0.2016, -0.0273, +0.3620, +0.8245, +0.5060, -0.2563, +0.2884, -0.3763, -0.3475, -0.6837, +0.1288, -0.4847, +0.2518, -0.6590, +0.4302, +0.0284, -0.3004, +0.1761, +0.0353, -0.3861, +0.6957, +0.1880, -0.5363, +0.7874, -0.0366, -0.1364, +0.5343, +0.6380, +1.6283, +0.0523, +0.5491, +0.3073, +0.7776, -0.5433, -1.0954, -0.4400, +0.3572, +0.4507, +0.2235, +0.4191, -0.0030, +0.2167, +0.0241, -0.2959, -0.1926, -0.0548, +0.6186, +0.1567, +0.0447, -0.1605, -1.2927, -0.0799, -0.8015, +1.0467, +0.1503, -0.1165, -0.3578, +0.0835, +0.3518, +0.6534, -1.6320, -0.4974, -1.2648, +0.0539, -0.7212, -0.4364, -0.5707, -0.3332, +0.8711, -0.2449, +0.2042, +0.1523, +0.2714, -0.1228, -0.3889, -0.8836, -0.0737, -0.1996, +0.3627, +0.1584, +1.3699, +0.5986, +0.4335, +0.7518, +0.4746, -0.6336, -0.6632, -0.1306, -0.2863, -1.0185, -0.5354, +0.0729, -0.2683, +0.2188, +0.0261, -0.3163, -0.0834, +0.0905, +0.2801, +0.6009, -0.2417, -0.5704, -0.4598, -0.5413, -0.0954, -0.1351, +0.9718, +0.4152, -0.8522], +[ -0.1711, -0.1063, +0.0715, -0.3206, +0.1503, +0.3791, -0.1802, -0.0566, +0.2265, -0.1800, -0.0480, -0.3589, +0.0047, +0.2423, +0.3973, -0.1336, -0.1008, -0.2685, -0.0073, -0.0393, -0.1822, -0.3134, +0.3055, +0.2837, +0.2647, +0.0811, -0.0392, +0.1127, -0.1816, +0.1328, +0.0866, -0.1994, +0.0885, +0.0459, +0.6323, -0.0745, -0.1675, -0.1628, -0.2264, +0.2328, +0.2803, +0.3329, -0.0857, -0.0834, +0.0058, +0.2387, -0.0153, +0.1075, -0.1300, -0.0398, +0.0271, -0.0736, +0.0525, -0.3868, +0.1940, -0.4156, -0.0022, +0.0494, -0.0423, -0.2591, -0.0749, +0.0908, -0.0273, +0.1700, -0.1291, +0.1797, -0.2058, -0.1395, -0.4264, -0.2898, -0.1726, -0.0213, +0.1089, +0.0923, -0.0280, +0.2194, +0.0694, +0.4390, -0.0365, +0.2571, +0.0334, -0.0207, -0.0985, +0.0378, +0.0380, -0.0329, +0.3669, -0.1063, -0.1286, -0.0433, +0.1327, -0.0711, +0.4962, -0.2371, -0.1473, -0.0841, -0.1811, +0.0358, +0.1089, -0.1886, -0.1936, -0.2577, -0.0633, +0.4586, -0.1914, +0.2095, -0.1539, +0.0479, +0.2096, -0.0109, +0.4658, +0.1918, -0.1946, -0.4688, +0.0825, -0.0409, -0.0128, +0.0776, +0.0104, -0.1060, +0.0913, +0.1380, -0.3030, +0.2420, -0.1261, +0.0273, +0.2801, +0.1011, -0.2845, -0.0056, +0.0449, -0.2219, -0.3166, -0.0995, +0.3312, +0.0378, +0.3752, +0.1273, -0.0218, +0.1467, +0.7130, -0.1773, -0.0020, +0.0221, -0.2904, -0.3301, -0.0714, -0.3943, -0.2730, -0.3627, +0.0126, +0.1011, +0.0552, -0.0592, +0.1397, +0.4257, -0.5063, -0.1791, +0.3605, -0.0214, +0.0775, +0.3434, -0.4018, -0.1175, +0.0876, -0.2879, +0.1134, +0.4348, -0.0254, +0.0863, +0.1131, +0.1835, +0.2308, +0.3229, +0.3254, +0.4667, -0.3888, -0.1415, +0.0981, +0.0166, -0.1201, +0.2934, +0.3937, +0.2242, -0.5198, -0.3040, -0.0367, +0.1663, -0.3662, +0.1434, -0.2027, +0.0861, +0.0767, +0.2295, -0.0056, +0.0315, +0.0541, +0.2837, -0.1139, +0.0808, -0.0422, +0.0673, +0.1571, -0.3419, -0.1489, -0.1222, -0.0932, -0.1747, -0.2475, +0.2277, -0.2570, -0.1233, +0.2159, +0.0146, +0.0969, +0.0559, +0.2020, -0.1456, +0.4296, -0.3832, +0.5871, +0.3385, +0.1100, -0.1362, -0.0197, -0.1770, -0.1053, -0.1967, +0.1094, -0.1991, +0.4991, -0.0012, -0.1015, -0.0932, -0.3859, +0.1861, -0.2871, +0.4395, -0.2905, +0.3829, -0.1480, -0.0701, +0.1316, +0.0267, +0.1225, +0.2529, -0.2509, -0.2783, +0.1156, +0.1564, -0.0783, -0.0978, +0.2723, +0.2160, -0.1469, +0.3120], +[ +0.0315, -0.2696, -0.0547, +0.1758, -0.2117, +0.4463, +0.8609, -0.1051, -0.0676, -0.3982, +0.9245, -0.1324, -0.1016, +0.6617, -0.2366, -0.4399, +0.3019, +0.1689, -0.0158, -0.1818, -0.4215, +0.0936, +0.5601, -0.0098, -0.1283, -0.0398, -0.0200, +0.2282, +0.1735, +0.0721, -0.2770, -0.0388, +0.0866, -0.0641, -0.3395, -0.0183, -0.2307, +0.2022, -0.0453, +0.1410, +0.1753, -0.2238, -0.0288, +0.3948, +0.1377, -0.2461, -0.2781, +0.1382, +0.0858, +0.0087, -0.2323, +0.0826, +0.3201, +0.0201, +0.1398, +0.4103, +0.1346, +0.1654, -0.2246, +0.4345, -0.0825, +0.0604, -0.4920, -0.1070, -0.2675, +0.0284, -0.6419, -0.0281, -0.1501, -0.1668, -0.0765, +0.0647, -0.0766, +0.1001, -0.1794, +0.2516, +0.4290, -0.7728, +0.2099, +0.0732, -0.2205, -0.5481, +0.1747, +0.2618, -0.1887, +0.2324, +0.3140, -0.0721, +0.0421, -0.0456, +0.0669, -0.3454, -0.0662, +0.4177, -0.1038, +0.2780, +0.0996, -0.5959, -0.5961, -0.4114, +0.2390, -0.3022, -0.1677, -0.3278, -0.3484, -0.1997, -0.0566, -0.0892, +0.7018, +0.6478, +0.1005, -0.5961, +0.1566, +0.0825, +0.2346, -0.3356, -0.3185, +0.0755, +0.0411, -0.0793, +0.3258, -0.1396, +0.1283, +0.1896, -0.5171, +0.1120, -0.1224, +0.0367, +0.0743, +0.1430, +0.0132, +0.0149, +0.1147, -0.4125, -0.2080, +0.1968, +0.8142, -0.0721, +0.3152, -0.2247, +0.3908, +0.0971, -0.1424, +0.1374, +0.2706, -0.3770, +0.1096, -0.0568, +0.3264, +0.4506, -0.4569, +0.1727, -0.2381, +0.4214, +0.1191, -0.3278, +0.1992, -0.2243, -0.4143, +0.8708, -0.2386, +0.7603, -0.1501, +0.0901, +0.4924, -0.2237, -0.3817, +0.1332, +0.1977, +0.2710, +0.2726, -0.0557, +0.0365, -0.2051, +0.4295, -0.0173, -0.0251, -0.2283, -0.5470, +0.2785, +0.4134, +0.1839, -0.2030, -0.0077, -0.3212, +0.1286, -0.2258, -0.2953, -0.3600, +0.0362, -0.2548, +0.1616, -0.2418, +0.2031, +0.1168, +0.1147, -0.0406, -0.0521, -0.8852, -0.2120, -0.0571, +0.0538, +0.2702, -0.2204, -0.2196, +0.0400, +0.1007, -0.4083, -0.1119, +0.3729, +0.3893, -0.2311, +0.3263, +0.3975, +0.2199, +0.1641, +0.7579, -0.3420, +0.3819, +0.0741, +0.7023, -0.1790, +0.3570, +0.1058, -0.1609, -0.0125, +0.1419, -0.2185, +0.1101, +0.2555, -0.5080, -0.2319, -0.0974, -0.4406, +0.3373, +0.7219, -0.2865, +0.0826, -0.1259, +0.1188, -0.0105, -0.1039, -0.0604, +0.3308, +0.0726, +0.0293, +0.4745, -0.6289, -0.2740, -0.5608, +0.1218, -0.0781, +0.0437, +0.1166, -0.0665, +0.7765], +[ +0.1900, +0.1304, +0.1306, +0.1685, +0.0547, -0.1907, -0.0987, +0.3965, +0.0377, +0.3136, +0.3067, +0.0101, -0.0786, -0.2354, +0.2159, +0.2700, +0.1332, +0.0464, +0.0145, -0.3109, -0.1940, +0.3194, -0.0398, -0.0600, -0.1790, +0.0580, +0.3900, +0.3714, -0.3819, +0.1061, +0.0045, -0.2275, +0.0156, +0.1695, +0.1446, +0.0291, +0.2628, -0.0779, +0.2689, +0.1189, +0.4291, +0.3251, -0.2835, -0.1831, +0.5168, +0.2814, -0.2532, +0.1688, -0.0255, +0.0595, -0.0628, -0.0292, +0.4426, +0.0847, -0.0432, +0.1771, -0.1106, +0.0703, -0.0249, +0.0689, -0.0916, -0.0069, -0.0343, -0.1095, -0.0536, +0.0074, -0.0784, -0.1075, -0.2998, -0.0088, +0.1853, +0.0493, -0.1932, +0.0370, +0.2847, -0.0820, -0.1846, -0.0661, -0.3196, +0.3797, -0.0899, +0.5101, +0.0220, +0.4859, +0.3703, -0.0893, +0.0720, +0.0627, +0.0008, +0.2151, +0.2527, -0.0721, +0.2133, +0.1272, +0.2210, -0.2012, +0.1135, +0.8663, +0.3867, +0.5365, +0.1263, +0.2323, -0.0163, -0.1178, +0.4859, +0.1277, -0.5319, +0.0241, +0.1482, -0.2447, +0.1440, -0.1298, -0.0774, +0.1329, +0.2049, -0.1232, +0.0122, +0.2751, -0.1623, -0.0355, +0.2232, +0.1650, +0.0788, +0.3453, +0.3085, -0.0324, +0.2696, -0.1154, -0.0087, +0.0087, -0.0158, -0.0721, -0.2802, +0.6397, +0.1834, +0.1206, +0.1670, -0.0771, +0.3098, +0.0817, -0.2540, -0.1481, +0.3749, -0.1109, -0.1901, +0.0763, +0.0562, -0.0834, +0.4640, +0.2060, -0.0520, +0.2273, -0.5758, +0.0613, -0.3936, +0.4325, +0.3668, +0.6940, +0.0661, +0.1322, +0.0727, -0.1327, -0.2523, -0.0368, +0.3519, +0.0042, -0.1765, -0.0588, +0.0173, +0.3305, -0.0382, -0.0072, +0.1676, +0.4529, +0.1004, +0.0037, +0.4982, -0.1013, -0.1774, -0.1828, +0.0592, -0.0361, +0.1937, -0.3102, -0.0329, +0.7132, +0.1081, +0.1713, -0.1541, -0.1572, +0.0455, +0.0631, -0.3422, -0.0472, +0.0655, -0.1291, +0.1069, +0.3075, +0.2226, -0.1803, -0.1247, -0.0509, -0.1519, -0.1252, +0.2028, +0.1468, -0.0986, +0.0458, +0.0799, +0.2962, -0.2362, +0.1770, -0.0585, +0.1376, -0.1471, -0.0011, +0.3521, +0.1243, -0.4805, -0.2684, +0.2582, +0.5082, +0.1511, +0.5160, -0.3806, +0.1276, +0.1041, -0.3635, +0.0573, +0.0853, -0.1572, +0.2395, -0.0647, +0.1263, +0.2338, +0.2568, +0.0774, +0.3536, +0.4368, +0.1272, +0.1465, +0.0028, +0.2233, -0.0329, -0.0857, +0.0750, +0.1408, +0.3485, -0.0137, +0.1533, -0.1600, -0.1337, -0.0974, -0.0299, -0.0323, +0.0912], +[ -0.3504, +0.3179, -1.0918, -0.3050, +0.9112, +0.5211, +0.6364, -0.0960, -0.5305, +2.3346, -0.7544, +0.0837, -1.0392, +0.7178, -0.1126, +0.7165, +0.7288, +0.6258, +0.0957, -1.2260, -0.3948, +0.3753, -0.4606, -1.5339, -0.2479, +0.2242, +0.6865, +0.0099, -0.0191, +0.2671, -1.2197, +0.0032, +0.1167, +0.3508, +0.8007, -0.7487, -0.4238, -0.6390, +0.5996, +1.5764, +1.4712, -0.0523, +0.3140, -0.9890, +0.3494, +0.4810, +0.6032, +0.9013, +0.8956, +0.0639, -0.6232, -0.0639, +1.3263, -0.6084, -0.2796, -0.4429, -0.1116, +1.2581, -0.3688, +0.4144, +0.1753, -0.8812, +0.1593, +1.7526, +0.2204, +0.7330, +0.7426, -0.1957, -0.5876, +0.3344, -0.8807, -0.3715, -0.2438, +0.2862, +0.1338, -0.8705, +1.3052, -0.7570, -0.9733, +0.0851, -0.1355, +0.7726, +0.9775, +1.8582, +0.4909, +0.2100, +0.6480, -0.9390, -0.0109, +0.8414, -0.0162, +0.1212, -0.3045, +1.2366, +0.6475, +0.0346, -0.5155, -0.4277, -0.3017, -1.3542, +0.5016, +0.3839, +1.0181, -0.2053, +1.2256, +0.6403, +0.2995, +0.1694, +1.1001, -1.2428, -0.6839, -0.0096, +0.2364, +0.6608, -0.0468, +1.1051, -0.4258, +0.2412, -0.0888, +0.4045, -0.8473, -0.3771, +0.0673, -0.7719, +2.2755, +0.1519, +0.2434, -0.3192, +1.2985, +0.1204, -1.2696, +0.5239, +0.3562, +1.0429, +0.1553, -1.0302, -0.3452, +0.4931, -0.8529, -0.2207, -1.4133, -0.7739, -0.9373, -0.0316, -0.0720, -0.3610, -0.9920, -0.2442, +0.1684, +0.8980, -0.3976, +0.5449, -1.5636, -0.8419, -0.1692, +1.3491, +0.0253, +1.9946, +0.3635, +0.5639, +0.1305, -1.3483, +0.7867, -0.0294, +1.3528, -0.4485, +0.0917, -0.0045, -0.8327, +0.2827, +0.4188, -0.2105, +0.3741, +0.7789, +0.7423, +0.3054, +0.5409, -0.3485, +0.2274, +0.8441, +0.2397, +0.5060, +0.4379, +0.3308, -0.3921, +0.2715, -1.0825, -0.5958, +1.3096, +0.7103, +0.1227, +0.1876, +0.7009, +0.2243, +0.6355, -0.1630, +0.2463, +0.1666, -0.3954, -0.5123, -0.7415, -0.0754, +0.2274, -0.2862, +0.2964, +0.0954, +1.1562, -0.3559, +0.4572, +0.9555, -0.5453, +0.1497, +0.0105, -1.4956, +1.3926, +0.0228, -0.3674, -0.1625, -0.9157, +0.7016, -0.6211, +0.5463, +0.3265, +0.9720, -0.3992, -0.4322, -0.4880, -1.3482, +0.7272, -0.0962, +0.1547, +0.6783, +0.1496, -0.0992, +0.4034, +0.1924, -0.1571, -0.0865, +2.5906, +1.2446, -0.5539, -0.0809, +0.5130, -0.0844, +0.9177, -1.3037, -0.0150, -0.6602, -0.0371, +0.3352, -0.4679, -0.8509, -0.6062, +1.6027, -0.5644, -1.3218], +[ +0.2795, +0.0642, -0.4321, +0.1457, +0.0121, -0.6645, +0.5804, +0.1799, +0.0117, +0.5672, -0.3526, +1.0581, +0.0324, +0.3915, +0.1572, +0.0034, +0.2864, +0.1973, -0.4619, +0.3294, -0.0396, -0.3446, -0.0199, -0.4083, -0.5971, +0.0460, +0.5415, +0.6182, +0.2403, -0.1356, -0.1049, +0.4659, -0.2931, -0.2250, -0.6128, +0.4385, -0.0995, +0.3239, +0.6134, +0.3091, +0.2143, +0.1731, +0.0841, +0.1188, -0.3338, +0.3281, +0.2010, +0.5196, -0.1062, +0.2815, +0.2324, -0.1379, +0.0957, -0.2191, +0.1873, +0.2349, -0.1210, -0.0056, +0.0639, +0.0467, +0.4666, -0.0640, +0.1107, -0.0418, -0.2104, +0.1299, +0.4768, -0.1160, -0.0516, -0.1398, +0.3253, -0.0154, -0.2684, -0.1671, +0.4381, +0.1137, +0.2647, -0.2082, -0.5011, +0.0124, +0.2318, -0.0503, +0.0276, +0.8962, +0.2799, +0.3159, -0.6777, -0.0680, +0.1874, +0.1644, +0.1518, +0.1808, +0.0803, -0.2494, +0.5158, -0.2165, +0.3377, +0.8342, +0.0527, -0.6154, +0.1771, -0.1781, -0.0620, -0.7147, -0.3531, +0.2948, +0.0663, +0.3923, +0.6540, +0.0174, +0.6028, -0.1087, +0.4604, -0.0161, +0.2117, +0.3383, -0.2849, +0.9566, -0.4082, +0.2355, +0.0818, -0.0087, -0.1493, +0.1262, +0.5054, -0.1072, -0.1005, +0.2100, +0.2903, +0.3424, -0.1168, +0.1297, -0.4548, -0.4380, +0.6081, -0.8408, +0.4011, -0.0471, +0.3515, -0.2566, +0.8423, +0.1594, +0.1761, -0.0926, -0.3069, +0.2977, +0.0840, +0.2581, -0.1953, +0.2386, +0.2111, +0.4178, -0.1321, -0.0219, +0.5732, -0.0419, -0.2215, -0.5132, +0.3878, +0.0862, -0.3056, +0.3618, +0.7162, -0.0857, +0.1711, -0.1898, +0.2286, +0.6806, +0.3809, +0.2188, +0.2804, -0.2275, +0.6766, +0.1952, +0.0073, -0.3949, -0.1420, +0.3417, -0.3001, +0.1640, -0.1118, -0.5296, -0.0676, -0.1672, +0.2324, -0.0308, +0.0786, +0.9096, +0.7681, -0.2398, +0.0431, -0.1578, +0.3719, -0.3167, +0.8528, -0.0046, -0.0758, +0.2415, -0.2559, -0.1975, +0.2967, -0.1169, +0.0701, +0.1372, -0.0018, +0.2277, -0.2830, -0.1139, +0.4305, -0.3147, -0.3947, -0.2646, -0.1233, +0.6040, +0.2712, +0.5285, -0.3873, +0.1587, -0.0579, -0.4679, -0.2148, -0.1199, -0.3221, +0.0139, +0.2610, -0.2710, -0.0914, -0.3749, +0.8469, -0.0296, +0.0442, +0.4900, +0.0576, +0.9743, +0.1762, -0.1878, -0.2236, +0.2311, -0.1199, -1.0481, -0.3038, -0.3667, +0.0169, -0.1208, +0.0286, +0.1759, +0.1569, +0.1607, +0.8348, +0.0245, +0.1323, -0.3582, +0.6256, -0.2299, +0.2870, +0.0372], +[ +0.4222, -0.0573, +0.5081, -0.3760, +0.7451, -0.3354, +0.9356, +0.3947, +0.3637, -0.1050, -0.9781, +0.0794, -0.0114, -0.2344, +0.9890, +0.2250, +0.6542, +1.0132, +0.4594, +0.1899, -0.5553, -1.0695, -0.0464, -1.0895, -1.4412, -0.4980, +0.1758, +0.2815, +0.6579, -0.0964, -0.0780, +0.3784, -0.4967, -0.2489, -0.4366, +0.4137, +0.5941, +0.9789, +0.0680, -0.1903, +0.4329, -1.2772, -0.2180, +0.1931, -0.5630, -0.7352, +1.4870, -0.7178, -0.2086, +0.0265, -0.1702, +0.1937, -0.0929, -0.7027, +0.1547, +0.8569, -0.3356, +0.3963, +0.7436, +0.5573, -0.0482, +0.1243, +0.5669, +1.2589, -0.1877, -0.2490, +0.0755, +0.6648, -0.4557, -0.9240, +0.0784, +0.3344, -0.4727, -0.2906, +0.2908, -0.0087, -0.8507, +0.9188, -1.0174, -0.3030, -0.1066, -0.1418, +0.6422, -0.4228, +0.8031, -0.0486, +0.0789, +0.0159, +0.4195, +0.7959, -0.4948, +1.0052, -0.4370, -0.3082, +0.4453, -0.8982, +0.1833, -0.0529, -0.2152, -0.6723, -0.5515, -0.5945, +0.1152, +0.2134, -0.1846, -0.0981, +0.0175, +0.3448, -0.5466, -0.3407, +0.8680, -0.2085, +0.9641, -0.1393, -0.2101, -0.2797, +0.4820, -0.4386, -0.8097, +0.0695, +0.3653, +0.4081, -0.0723, +0.6429, -1.1749, +0.0525, -0.3654, -0.7180, +0.1074, -0.2005, +0.3934, -0.5641, -0.3977, -0.7490, -0.7064, -0.2359, +0.3631, -0.7209, +0.4213, +0.5278, +0.1775, -0.0226, +0.2676, -0.8443, +0.6325, -0.6958, -0.0446, +0.0145, +0.6466, +0.4083, +0.2505, -0.3254, -1.3595, -0.2900, +0.3684, +0.2849, -0.0168, -0.9716, +0.0890, +0.1455, +0.1932, -0.2316, -0.2257, +0.1177, +0.1743, -0.0457, -0.7849, +0.7017, -0.4356, +0.1590, +0.2895, -0.5398, +0.2746, -0.1955, -0.9924, +0.4579, +0.0071, -0.0746, +0.2151, -0.1827, +0.5044, -0.5401, -0.4354, +0.1411, -0.2633, +0.7402, +0.0019, -0.0907, +0.3447, -0.6141, -0.2552, +0.5652, +0.2047, -0.5309, +0.2966, +0.0315, +0.2328, -0.1916, -0.2069, -0.1830, +0.6357, +0.4643, -0.5741, +0.4861, +0.7827, -0.0479, -0.3617, -0.1293, -0.0768, -0.3499, +0.2789, -0.1915, +0.0334, +0.0698, -0.1463, +0.4034, -0.1668, +0.9289, -0.9585, -0.4268, -0.3682, +0.1801, -0.8269, -0.3515, +0.3098, +0.1076, +0.6027, -0.1172, +0.0588, +0.7357, -0.0441, -0.1213, +0.2665, -0.4022, -0.2895, -0.3017, -0.3352, -0.3031, -0.1225, -0.1627, -0.6134, -0.3426, +0.4558, -0.3361, +0.5679, +0.5502, -0.0751, -0.7189, +0.6709, +0.5030, +0.3367, -0.7531, +0.9245, -0.8705, +0.2312, +0.0640], +[ -0.0035, -0.0034, -0.2528, -0.3608, +0.3682, -0.2742, -0.0113, -0.3332, +0.0137, -0.0303, -0.0216, +0.0627, +0.1116, +0.0642, -0.3810, +0.0072, -0.0297, -0.1337, +0.2035, -0.1883, +0.0202, -0.0721, +0.1509, -0.2001, +0.5420, -0.1128, -0.1005, +0.1079, +0.1587, +0.0785, -0.0149, -0.0047, +0.3506, +0.3381, -0.1188, +0.1962, -0.0130, -0.0012, -0.2426, +0.1351, +0.1945, +0.1089, +0.2607, +0.0582, -0.2137, +0.6271, +0.1350, +0.0122, -0.1709, -0.2135, -0.1653, +0.0632, +0.4087, -0.0052, +0.6810, +0.0148, -0.0323, +0.3402, +0.0679, +0.1630, -0.0387, -0.0974, -0.0687, -0.0846, +0.1532, +0.1129, -0.0719, +0.0268, -0.1528, +0.0340, -0.0595, +0.3099, +0.0794, -0.0118, +0.0639, -0.3403, +0.0216, +0.0587, +0.1669, +0.1529, -0.0114, -0.5345, -0.0442, -0.2288, +0.4265, -0.3686, +0.1109, +0.0872, +0.1012, +0.1267, -0.0799, +0.0821, +0.1215, -0.1414, +0.1897, +0.3936, +0.1082, +0.0621, +0.4993, +0.1550, +0.0853, -0.1830, -0.0109, +0.2747, +0.0066, -0.0596, -0.0209, -0.1222, +0.6425, +0.0010, -0.1389, +0.2046, -0.0143, -0.1457, +0.2317, -0.3896, +0.1399, +0.0099, -0.0574, +0.3197, -0.2081, +0.1138, +0.0407, -0.0042, +0.0752, +0.0459, -0.2480, +0.0822, -0.3238, +0.0392, +0.3801, +0.1197, +0.2401, -0.4082, +0.0690, +0.1263, +0.1912, +0.2382, +0.0859, -0.4645, +0.1211, +0.0598, -0.1411, +0.2445, -0.0240, +0.1098, +0.1856, +0.2397, -0.0041, +0.1188, -0.0047, +0.0424, +0.5290, +0.3475, +0.1254, +0.0685, +0.0748, -0.0148, +0.1090, -0.0598, -0.0045, -0.2743, +0.1616, +0.1719, -0.1873, -0.0924, -0.0310, -0.1332, -0.1907, +0.1881, -0.4096, +0.1428, +0.2975, -0.0189, +0.2020, +0.2217, -0.0367, +0.3606, +0.4407, -0.2666, +0.0850, -0.0286, -0.1606, +0.1058, +0.0790, +0.1514, -0.0547, +0.1220, -0.2964, +0.1235, +0.4847, +0.0590, +0.0304, +0.2212, +0.2509, -0.1166, +0.0666, -0.1935, +0.0430, -0.1518, +0.3587, +0.0948, +0.2795, +0.4758, +0.0747, -0.1021, +0.3524, +0.0737, +0.1654, +0.6264, -0.0327, -0.1234, +0.0612, -0.0495, -0.2775, -0.2223, -0.0795, -0.0540, +0.4101, +0.0887, +0.6357, -0.0557, +1.0091, +0.3728, -0.2812, +0.0505, -0.2041, -0.0258, -0.0876, +0.0441, +0.0864, -0.0484, +0.3001, +0.3026, +0.0090, -0.2822, -0.1953, -0.2267, -0.2283, -0.0550, +0.4666, -0.2008, -0.1510, -0.0588, +0.0770, +0.3002, +0.0200, +0.1235, -0.0181, +0.1489, +0.1830, -0.0221, +0.2327, -0.2378, -0.1699, +0.4160], +[ -0.1059, +0.1515, +0.0140, +0.1541, +0.3425, -0.3510, +0.1152, -0.0096, +0.0941, +0.2030, -0.5814, +0.1163, -0.1798, +0.2130, -0.0308, -0.2670, -0.0307, +1.1302, -0.5876, -0.1339, +0.0085, -0.4369, -0.0089, +0.2912, -0.0841, -0.0179, +0.0648, -0.2874, -0.3967, +0.1606, +0.4970, +0.0788, +0.1305, +0.6643, +0.8430, +0.0646, +0.0448, -0.3034, -0.1129, -0.3283, +0.0435, +0.5129, -0.1075, -0.1883, +0.4669, -0.3403, -0.1316, +0.3523, -0.0285, -0.1050, -0.0914, -0.0981, +1.3083, -0.3445, -0.5618, +0.0772, +0.1022, -0.0018, -0.1475, -0.3236, +0.1725, -0.3069, +0.1140, -0.1664, +0.1786, -0.4218, +0.2003, +0.1524, +0.2598, +0.0738, +0.0487, +0.4012, -0.3416, +0.1218, -0.1210, +0.9181, +0.6536, +0.4306, +0.0462, +0.6724, +0.0628, -0.5143, +0.2787, +0.1601, +0.2327, -0.0700, -0.0750, -0.2287, +0.2918, -0.3260, +0.0710, +0.0433, -0.6924, +1.1640, +0.4052, +0.4894, -0.0450, +0.6232, +0.1674, -0.1411, -0.1690, -0.3918, -0.5933, +0.4397, +0.5854, +0.6074, -0.2093, -0.2082, -0.2854, -0.2730, +0.4739, -0.1440, -0.0470, +0.3595, +0.0505, +0.0261, +0.2556, +0.1997, +0.1467, -0.6146, -0.1772, +0.3620, +0.2029, -0.1267, -0.5105, +0.2807, -0.7753, +0.0937, -0.0990, -0.0566, +0.1463, +0.4945, -0.4445, +0.2097, -0.4238, +0.3291, +0.4771, -0.0934, +0.3328, +0.0125, +0.2216, +0.1743, -0.1884, -0.1027, +0.1037, +0.9080, +0.7220, +0.3006, -0.4461, +0.2261, +0.3679, -0.0083, +0.1107, -0.2835, -0.2122, +0.9465, +0.2494, +0.2009, +0.3854, +0.3620, -0.0232, +0.7130, +0.5914, +0.2367, -0.1907, +0.0126, -0.4836, -0.7799, +0.1886, +0.7844, +0.0632, -0.1651, +0.5767, -0.3709, +0.2219, -0.4823, -0.4274, +0.1896, -0.2534, +0.2759, -0.0053, +0.3047, +0.0830, -0.0579, -0.5030, -0.3829, +0.2817, -0.4349, -0.1430, +0.1322, +0.3572, +0.0090, -0.5643, +0.1411, -0.4972, -0.3413, -0.1593, +0.0419, -0.3883, +0.0232, -0.1065, -0.0463, +0.3074, +0.6826, +0.1211, +0.1497, -0.0864, +0.0145, +0.6440, -0.1601, +0.2847, +0.4424, +0.1406, +0.3737, -0.0508, -0.0550, +0.2662, -0.1365, -0.2198, -0.1154, +0.1846, +0.3939, -0.1867, +0.2783, +0.0214, -0.2052, +0.2852, +0.4517, -0.0070, +0.9497, -0.0211, -0.5972, +0.0932, -0.0961, +0.0633, +0.5786, -0.2438, -0.1156, +0.1324, -0.0539, +0.1527, +0.5762, -0.0996, +0.2633, -0.0446, +0.2198, -0.1069, -0.1196, -0.3112, +0.2806, -0.0446, -0.3673, -0.3333, -0.5466, -0.6300, -0.0539], +[ +0.0886, -0.1736, +0.2303, +0.7947, +0.0393, -0.2798, -0.5487, -0.2241, -0.5310, +0.5406, -0.0532, -0.0064, +0.2742, -0.3217, -0.2300, +0.1303, -0.2625, -0.4393, +0.0598, -0.2584, +0.0027, +0.2343, +0.3005, -0.3532, -0.7355, -0.1263, -0.0904, +0.0143, +0.0917, +0.3467, -0.1259, +0.0210, -0.0186, -0.0360, -0.4055, +0.0844, +0.3825, +0.1753, +0.3408, +0.2307, +0.4749, +0.1994, +0.1054, +0.3573, -0.2327, +0.0036, -0.2009, -0.1823, +0.0889, -0.0884, -0.2532, +0.3909, -0.2113, -0.2426, +0.1061, +0.2335, +0.3052, +0.1240, -0.2379, -0.0317, +0.0107, -0.3895, -0.0050, -0.0169, +0.1984, -0.1232, -0.2768, +0.4420, +0.0246, +0.3070, -0.1335, +0.2652, -1.1367, +0.2838, +0.3087, -0.5247, +0.1373, -0.5731, +0.0517, -0.8331, +0.0370, +0.0661, -0.1572, +0.1051, -0.4990, -0.9321, +0.2448, +0.2690, +0.2054, -0.4378, +0.0132, -0.3105, -0.1545, -0.3607, +0.4425, -0.1347, +0.2146, +0.2794, -0.1716, -0.0498, +0.0685, +0.4673, -0.5200, +0.4520, -0.0439, +0.0930, -0.0961, -0.2375, +0.2483, -0.1084, +0.0855, +0.3815, +0.1763, -0.2518, -0.0570, -0.2764, -0.9503, +0.4452, -0.2262, +0.2897, +0.2107, -0.2425, -0.2231, +0.1219, -0.2070, -0.3488, -0.2947, +0.0958, +0.0930, +0.1411, +0.3361, -0.2040, +0.2504, -0.7070, +0.2827, -0.1822, -0.1630, -0.0348, +0.0428, +0.0818, -0.1700, +0.0074, +0.1539, +0.0177, +0.3407, -0.0548, +0.5441, -0.1306, -0.4407, +0.0646, -0.3218, -0.0806, +0.1349, -0.2540, -0.0872, +0.4692, -0.4425, -0.5095, -1.0056, +0.4027, -0.0200, -0.1376, +0.0475, -0.7649, -0.3253, -0.6835, -0.0361, +0.1053, -0.0829, +0.3581, +0.3582, +0.2497, +0.0393, +0.5963, +0.3694, -0.2755, -0.4194, +0.3549, +0.2054, +0.2459, -0.3597, -0.1185, +0.0509, +0.6428, -0.3443, +0.2562, +0.0889, +0.3400, -0.6770, -0.0713, -0.2477, +0.2696, -0.1843, +0.4073, -0.2708, -0.0514, +0.2385, +0.0235, -0.1136, +0.4380, -0.0392, +0.0524, -0.4062, +0.1885, -0.7391, +0.2537, +0.0709, -0.3841, -0.6341, +0.1817, -0.4291, -0.5313, -0.9104, +0.3972, +0.0307, +0.2267, -0.0018, +0.2399, -0.1271, -0.1045, +0.1824, -0.9698, +0.0084, -0.2353, -0.0986, -0.3136, -0.0781, -0.0959, -0.3397, -0.8343, -0.6744, +0.2505, +0.0941, +0.0670, +0.2594, -0.5116, -0.1491, +0.4280, +0.3119, +0.6404, +0.1156, +0.2095, -0.0151, -0.0291, +0.0717, -0.2272, -0.3254, +0.0794, +0.0487, +0.1850, -0.2387, -0.0572, -0.2224, -0.4618, -0.5881, -0.0762], +[ +0.1613, -0.0121, -0.6823, +0.4505, +0.0159, -0.6711, -0.4259, -0.0010, -0.1023, -0.0402, +0.1031, -0.1431, -0.0213, +0.4424, -0.1080, -0.2636, -0.0149, -0.1129, -0.4833, +0.1006, -0.8493, -0.2696, +0.3725, +0.1174, +0.3757, +0.0964, -0.1318, +0.1640, +0.0253, +0.2252, -0.1748, -0.0377, -0.0120, +0.1607, +0.0376, +0.0201, +0.0198, -0.3454, -0.2380, +0.4885, -0.2846, -0.3210, -0.3668, +0.1292, +0.0733, -0.1518, -0.1435, +0.7051, +0.0440, -0.3134, +0.1986, -0.0950, -0.2036, -0.5937, -0.5377, +0.0555, +0.1399, -0.1929, -0.1455, -0.0545, -0.5609, +0.4115, -0.3768, -0.6463, +0.4130, -0.0706, +0.1245, +0.2189, -0.1688, -0.4369, -0.0189, -0.1132, +0.0900, -0.0476, -0.3192, -0.0721, +0.3550, +0.0791, -0.1973, +0.2124, -0.3421, -0.2505, -0.4525, -0.3532, -0.4306, +0.0726, -0.1936, +0.3790, +0.0773, +0.1141, +0.3051, -0.1605, -0.1697, -0.3239, -0.0387, +0.0490, +0.4097, -0.1983, -0.3103, -0.1348, +0.0983, -0.1906, -1.0984, -0.3224, +0.1721, +0.0596, -0.0802, +0.1193, +0.5012, +0.4600, +0.1982, -1.2366, -0.3397, +0.0045, +0.0963, +0.0420, +0.0534, -0.6935, -0.1704, +0.2974, -0.5040, -0.4112, +0.1151, -0.3827, -0.6324, +0.1939, -0.0368, +0.1991, -0.2959, +0.1311, +0.0653, -0.1839, -0.3214, +0.2320, +0.2095, +0.0678, +0.0375, -0.1832, +0.4512, +0.2901, -0.4755, +0.2493, +0.2288, +0.0834, -0.3465, +0.4282, +0.0664, -0.2354, +0.3027, +0.2787, +0.2102, +0.1778, -0.2229, +0.2759, -0.2128, +0.5151, -0.0355, -0.2695, +0.0498, -0.6670, -0.2849, -0.1452, +0.4245, +0.4908, +0.4679, +0.0071, +0.3998, +0.0380, -0.1295, -0.2110, -0.0502, +0.0330, +0.5156, +0.2586, -0.1972, +0.1425, -0.5514, -0.1277, +0.3379, -0.1527, -0.0876, -0.1846, +0.3335, -0.2494, -0.1005, +0.0055, +0.1809, +0.2810, -0.2826, +0.1018, -0.1270, +0.2189, +0.2438, +0.0231, -0.0637, -0.4122, -0.1142, +0.0933, -0.0771, +0.0415, -0.0525, +0.1933, +0.5861, +0.1639, -0.0109, -0.1786, -0.3391, -0.0341, +0.4664, +0.3602, -0.2455, -0.1581, +0.0035, -0.6658, -0.4299, +0.0850, -1.0917, -0.1338, +0.4143, +0.0696, -0.3031, +0.3610, +0.2661, +0.1521, +0.6565, +0.1507, -0.1110, +0.1716, +0.2436, -0.5497, -0.6088, -0.4964, +0.0426, -0.4534, -0.0126, -0.2565, -0.2301, +0.0974, +0.1669, +0.5493, +0.0544, +0.2104, +0.0747, +0.2049, +0.2100, +0.1637, -0.5843, +0.3274, -0.4244, +0.4082, +0.2544, +0.0823, +0.2458, +0.1169, +0.1472, +0.0367] +]) + +weights_dense1_b = np.array([ +0.1494, +0.0039, -0.0527, -0.0962, +0.0315, -0.1903, -0.0055, -0.0615, -0.0553, -0.1921, -0.1072, -0.0451, -0.1178, -0.0108, -0.0561, -0.1273, -0.1139, -0.0796, -0.0175, -0.0684, -0.0933, -0.1067, -0.1255, +0.0234, -0.0703, -0.2935, -0.1144, -0.1077, -0.1229, -0.1456, -0.1558, +0.0667, +0.0781, -0.0370, -0.1065, -0.0846, -0.0311, +0.0140, -0.1026, -0.1604, -0.1456, -0.2161, -0.0539, -0.1573, -0.0612, -0.0970, -0.2703, -0.1411, -0.2202, +0.1398, -0.0699, -0.1028, -0.0294, -0.1635, +0.1305, -0.1769, +0.1233, -0.3288, +0.0167, +0.0028, -0.0550, -0.1999, +0.0864, +0.0176, -0.0370, +0.0562, -0.0984, +0.0783, +0.0478, -0.1250, -0.2548, -0.1360, -0.0914, -0.0499, -0.0393, +0.0658, -0.1763, -0.1398, -0.0844, -0.1208, -0.0743, -0.1800, +0.0300, -0.0678, -0.0124, -0.0126, -0.0269, -0.1089, -0.0306, -0.0458, -0.0984, -0.0951, -0.0395, +0.0311, -0.1592, -0.1021, -0.3524, -0.1006, -0.1488, -0.2021, -0.0736, -0.1389, -0.0688, +0.0139, +0.0820, -0.1823, -0.0241, -0.0035, -0.0373, +0.0326, -0.0615, +0.0254, -0.0134, +0.0239, -0.1209, -0.0289, -0.1025, -0.1184, -0.1214, -0.0290, -0.0975, +0.0992, -0.0952, -0.1083, -0.1422, -0.0548, -0.0305, -0.2508, -0.0206, -0.2072, -0.0452, +0.0112, -0.0011, +0.0417, +0.0035, +0.0200, -0.1942, -0.0485, -0.1137, +0.0025, +0.0786, +0.0299, -0.1345, +0.1579, -0.0281, -0.0762, -0.0884, +0.0861, -0.0782, -0.1839, -0.0320, -0.2262, +0.0617, -0.1688, -0.2112, -0.1037, -0.1056, -0.0510, -0.0038, +0.0895, -0.2475, -0.0174, -0.1610, +0.0683, -0.2035, -0.0045, -0.1483, +0.0695, -0.1126, -0.1221, +0.0023, -0.0862, -0.1456, -0.1136, -0.0341, +0.0209, -0.0928, -0.0567, +0.0725, -0.0127, -0.0353, -0.1072, -0.0613, -0.1992, +0.0168, -0.1877, -0.1331, -0.1073, -0.1444, +0.0069, +0.0563, -0.1909, -0.1581, -0.0970, -0.0138, -0.0487, -0.1580, -0.1599, -0.0073, -0.2733, -0.1690, -0.2064, +0.0071, -0.2040, -0.1194, -0.0529, -0.1376, -0.1651, -0.0822, -0.1775, -0.1370, -0.2621, -0.1093, -0.0536, -0.0812, +0.0422, +0.0078, -0.0437, -0.2098, -0.1435, +0.0691, -0.1066, -0.1223, +0.0092, -0.0332, -0.0460, +0.0013, -0.0559, -0.1134, -0.1300, -0.0909, +0.0010, -0.2052, -0.1058, -0.0746, +0.0049, +0.0770, -0.0889, +0.0130, -0.1252, -0.2867, -0.0034, +0.0268, -0.0217, -0.0712, -0.0839, +0.0532, -0.1541, +0.0243, -0.2173, +0.0914, -0.1751, -0.1907, -0.0940, -0.0697, -0.1361]) + +weights_dense2_w = np.array([ +[ -0.0446, -0.0941, -0.3955, -0.1329, +0.3261, -0.2340, +0.1304, +0.1444, -0.0064, +0.4035, +0.5651, +0.2906, -0.2569, -0.1496, -0.6781, +0.3623, +0.3923, -0.5059, +0.0361, -0.2793, -0.3257, -0.5450, +0.1372, -0.3239, +0.1807, +0.4815, -0.5801, +0.0871, +0.0759, -0.4970, +0.1630, -0.2405, +0.1363, -0.2391, -0.3084, -0.1048, -0.4797, +0.1461, -0.4725, -0.4272, -0.1229, -0.3213, -0.3729, -0.2070, -0.2260, +0.0191, +0.4376, +0.2038, +0.4303, -0.3538, -0.3511, -0.0173, -0.0621, +0.1285, -0.0412, -0.4655, -0.5779, -0.1277, -0.0267, -0.3498, +0.1073, +0.0636, -0.7525, +0.1612, +0.3821, -0.1038, -0.8780, +0.3191, +0.2394, -0.0068, +0.0812, -0.2313, -0.2938, -0.3093, -0.3838, -0.0023, -0.5775, +0.4613, +0.3519, -0.1342, -0.4099, +0.0764, -0.2711, -0.0370, +0.0079, +0.0552, +0.4197, -0.9073, -0.2105, +0.2615, -1.1096, +0.0082, +0.4138, +0.2725, +0.0815, +0.3513, -0.7101, -0.1694, -0.0091, +0.2357, -0.2003, +0.3896, -0.0686, -0.6690, -0.0813, +0.2245, +0.2243, -0.3500, +0.3599, +0.0891, -0.5524, -0.1980, -0.3951, +0.0085, +0.0538, +0.6534, -0.8200, +0.1080, -0.3786, +0.1675, -0.0115, +0.1537, +0.4711, -0.0807, -0.1799, +0.0223, +0.2167, +0.2362], +[ -0.2444, -0.6241, -0.1147, -0.2118, +0.0857, -0.3879, +0.3546, -0.0733, -1.0193, +0.1459, +0.0498, -0.2553, -0.2879, -0.5408, -0.3574, +0.4237, -0.7382, -0.2695, +0.0282, -0.2548, -0.2155, -0.2600, -0.1573, -0.3413, -0.6334, +0.0929, -0.0176, -0.3606, +0.2845, -0.0617, -0.3122, +0.1209, -0.2462, +0.3425, +0.2171, +0.5273, -0.1572, -0.1532, +0.5552, -0.0139, +0.1994, +0.0812, -1.0411, +0.3236, -0.2614, -0.3478, -0.1349, +0.1892, +0.3215, -0.2034, -0.0209, +0.2062, -0.3500, +0.1164, +0.1389, +0.2095, +0.2791, -0.1504, +0.1044, +0.4266, -0.7286, +0.2604, -0.2693, -0.1244, +0.1317, +0.3252, -0.7114, +0.5549, -0.1956, -0.1914, -0.4135, -0.3006, -0.4114, +0.0110, -0.3341, -0.3824, -0.2613, -0.7747, +0.5477, -0.0026, -0.2780, +0.3150, -0.3447, -0.0708, -0.1666, +0.1757, +0.2413, -0.0522, -0.1630, -0.1557, +0.2338, -0.4316, +0.0440, -0.3387, +0.2614, -0.2280, +0.0125, -0.0967, -0.1448, +0.3245, +0.1507, -0.2703, -0.2256, -0.3510, -0.5730, -0.6961, +0.3662, -0.3726, +0.3866, +0.1329, -0.7782, +0.0877, -0.5175, -0.0080, -0.4061, +0.0042, -0.0629, -0.0861, +0.1035, +0.3153, -0.1609, -0.0586, +0.1450, +0.0041, +0.1466, -0.6496, +0.0201, +0.0129], +[ +0.1386, -0.0945, +0.2795, -0.0256, -0.0028, -0.0133, -0.4415, -0.1106, +0.1377, +0.3588, -0.4300, +0.3529, +0.2544, +0.1488, +0.4599, +0.3566, +0.1138, -0.4420, -0.1201, +0.1293, -0.5788, -0.0978, -0.1088, +0.1153, -0.4146, +0.1100, +0.0620, +0.1854, -0.7047, -0.0504, +0.2937, +0.0530, +0.0955, -0.0370, +0.0178, +0.1662, -0.2216, -0.0763, -0.4237, -0.5979, +0.0670, -0.0144, +0.0355, -0.5579, +0.2910, +0.2649, +0.0297, -0.4149, -0.2434, -0.2470, -0.2179, +0.1319, -0.1494, +0.3073, -0.3072, -0.3915, +0.3447, +0.2100, -0.4788, -0.0824, +0.2316, -0.0760, -0.2466, +0.0284, -0.0477, -0.0012, -0.7704, +0.3028, -0.8417, +0.0159, +0.6322, +0.0871, +0.1442, -0.0744, -0.0640, +0.3171, +0.0569, -0.0746, -0.0438, -0.2017, -0.2061, +0.0221, -1.0163, -0.3438, -0.0295, +0.1516, -0.2567, -0.4551, +0.1802, +0.2473, -0.3067, -0.0302, -0.2944, +0.0247, +0.1530, -0.4357, -0.2943, -0.1051, -0.3184, -0.0940, +0.1110, -0.2013, +0.1567, +0.4995, -0.6288, +0.5756, +0.0462, -0.0036, -0.8926, -0.1855, +0.0631, -0.7486, +0.0764, +0.2724, -0.3770, -0.4466, +0.1047, +0.2308, +0.1856, -0.3025, -0.2538, -0.0370, -0.6129, -0.6437, +0.0648, +0.0632, +0.1569, -0.5954], +[ -0.2110, -0.4682, +0.1521, -0.2096, +0.0752, -0.2327, -0.3026, +0.0227, +0.1361, +0.1600, -0.0204, -0.5653, +0.3198, -0.2031, -0.5835, +0.0099, -0.0005, -0.0378, +0.1420, +0.2448, -0.1970, -0.6869, +0.1893, -0.3542, +0.3116, +0.1331, +0.2216, -0.0751, +0.0818, -0.0981, -0.4190, +0.5141, -0.0763, +0.0360, -0.1761, +0.0261, -0.5464, -0.7008, -0.2040, -0.1353, +0.2963, -0.1157, +0.0362, -0.5863, -0.8737, -0.3414, +0.0769, +0.1460, -0.1560, -0.0128, +0.2671, +0.3803, +0.2876, -0.1158, +0.0046, -0.1798, -0.0418, -0.2737, -0.4797, -0.4231, -0.1860, -0.5159, -0.8221, +0.3182, -0.7719, +0.1197, +0.1327, -0.3147, -0.1979, -0.3086, +0.1928, -0.0266, -0.2050, -0.0781, +0.4301, -0.0320, +0.5265, -0.2464, +0.3842, -0.1679, +0.0903, -0.0991, +0.5649, -0.2095, -0.3192, +0.5082, +0.2163, -0.1517, +0.3231, -0.0450, -0.6572, -0.2979, +0.5014, -0.6241, -0.1478, -0.3796, +0.0776, +0.0567, -0.2926, +0.2549, -0.4551, -0.1126, -0.3430, +0.0577, -0.0678, -0.6104, +0.1488, +0.0124, -0.0232, +0.1021, +0.4954, +0.0608, -0.2865, -0.1660, +0.3615, +0.2145, +0.0863, -0.0482, +0.1043, -0.0310, +0.1584, -0.1514, -0.2689, -0.2622, +0.2389, -0.0352, +0.0505, -0.4725], +[ -0.0229, -0.4313, +0.0184, -0.8077, +0.5455, +0.2926, +0.1833, -0.1669, -0.3142, -0.2872, -0.1973, +0.1569, -0.0577, +0.2992, +0.0187, -0.3197, +0.1143, +0.3957, -0.0845, -0.0656, -0.6643, -0.1391, -0.3222, +0.7873, +0.0598, +0.3911, +0.0200, +0.1554, +0.2937, -0.4432, -0.2098, -0.5019, +0.2838, +0.1635, -0.0923, -0.3384, -0.3427, +0.3220, +0.4029, -0.3257, +0.1441, -0.0432, -0.3495, -0.5423, +0.2564, -0.0237, +0.4511, +0.0765, -0.0877, -0.0430, +0.3376, -0.2686, +0.3190, +0.0444, -0.0437, +0.1836, -0.0036, -0.1122, -0.5164, -0.0967, -0.0943, -0.0267, -0.2884, +0.1110, -0.0452, -0.5358, -0.9480, -0.0428, +0.0632, +0.5967, -0.5697, -0.5430, -0.3233, -0.1837, -0.3865, -0.1141, -0.3161, -0.3135, -0.1826, -0.2103, +0.1367, +0.0738, -0.4706, -0.2797, +0.2463, +0.0844, +0.1632, +0.2067, +0.2860, -0.1431, -0.1538, -0.4689, +0.1815, -0.7608, -0.5361, +0.0924, -0.0427, +0.0261, +0.1086, +0.0071, -0.0351, +0.1962, -0.5212, -0.2708, -0.0387, -0.4651, -0.1066, +0.1502, -0.0507, -0.4060, +0.0178, +0.1007, -0.3050, -0.3290, -0.7691, -0.2058, +0.2255, -0.4308, +0.1231, +0.2162, +0.3136, +0.1682, +0.0186, -0.2181, +0.1038, -0.7105, +0.0725, +0.1498], +[ +0.2957, +0.3931, +0.5196, +0.0034, -0.1459, -0.4853, +0.0045, +0.3441, -0.6762, +0.3599, -0.2657, -0.0656, +0.2883, +0.2954, -0.3889, +0.5849, +0.0604, +0.2256, -0.7857, +0.0923, +0.1446, -0.4545, -0.0598, -0.0619, +0.0932, -0.0672, +0.1070, +0.2962, +0.1364, -0.0010, +0.0422, +0.1428, -0.0486, -0.6373, -0.1726, +0.1041, +0.0355, +0.1551, -0.8913, -0.6888, -0.1694, -0.7115, +0.2172, -0.7797, +0.2613, -0.6847, -0.3206, -0.0662, -0.1301, -0.2691, -0.3250, -0.5412, +0.3733, -0.6999, -0.1384, +0.2234, -0.6276, -0.6873, -0.1056, -0.2576, -0.3469, -0.0035, -0.3412, -0.4947, -0.2108, +0.2637, -0.4840, -0.7649, +0.0512, -0.5292, -0.1976, -0.3880, -0.1312, -0.2244, -0.5623, +0.1554, -0.0144, +0.1044, -0.3046, -0.0893, +0.0786, +0.1556, -2.0057, -0.2783, +0.2209, -0.6801, +0.1200, -0.0627, -0.1416, +0.0931, -0.1593, +0.6807, -0.0833, -0.3581, -0.1243, -0.2332, +0.0648, -0.2536, +0.0485, -0.3385, -0.3248, -0.2046, -0.0735, +0.1252, -0.0138, -0.2593, +0.3831, -0.2624, -0.0680, +0.1553, -0.6539, -0.3949, -0.2072, -0.3056, +0.0470, -0.2456, -0.2607, -0.1460, +0.1578, -0.4485, -0.1730, +0.0905, -0.5966, +0.1038, +0.4146, +0.0169, -0.2569, +0.0757], +[ -0.0059, +0.2504, -1.8223, +0.0071, +0.0843, +0.0531, +0.0537, -0.4270, -0.0225, +0.0206, +0.1877, -0.0539, -0.1275, -0.1903, -0.2041, +0.1867, -0.2453, +0.0968, -0.7747, -0.0996, -0.1644, -0.2217, -0.0222, -0.0323, +0.1196, -0.4662, -0.0733, -0.2897, -0.0650, +0.1710, +0.3257, -0.6486, +0.1965, +0.4933, -0.1914, -0.7322, -0.7016, -0.2255, +0.0376, +0.2672, -0.5327, +0.2688, -0.0806, -0.2247, -0.1833, -0.4959, -0.7814, -0.6611, +0.1856, -0.1662, -0.0610, +0.4234, +0.1225, +0.0887, +0.1060, +0.1328, +0.1165, -0.3699, -0.3317, +0.1403, +0.1845, +0.0305, -0.2385, -0.0139, +0.2337, -0.0865, -0.4594, +0.0413, -0.3618, +0.1392, +0.0640, +0.3269, -0.4006, +0.6018, -0.1011, +0.1064, +0.0764, -0.7746, -0.2271, -0.8182, -0.1293, -0.5567, -0.3629, -0.6294, +0.1535, -0.5792, +0.0733, -0.1860, +0.3598, -0.0287, +0.3026, -0.4029, +0.0910, +0.3008, +0.3386, +0.0652, +0.1527, +0.2761, +0.2965, -0.4328, -0.1331, -0.0883, +0.1920, -0.2682, +0.2188, -0.3514, -0.2600, -0.0027, -0.9167, -0.3502, +0.6296, +0.1959, +0.0535, +0.2855, +0.1944, +0.6012, -0.8331, +0.3115, +0.3111, +0.0916, -0.1444, -0.0131, -0.2425, +0.2020, -0.2527, +0.2171, +0.0902, +0.2377], +[ +0.1734, -0.3360, +0.0102, -0.1136, +0.0421, +0.0059, +0.0081, -0.1179, -0.2811, -0.3038, -0.0654, -0.0284, +0.1823, -0.5043, -0.0641, +0.3135, +0.2485, -0.1943, -0.7957, -0.4855, +0.3363, -0.3024, +0.0201, -0.0095, -0.2435, -0.3528, +0.1311, -0.1494, -0.2564, +0.0214, +0.0812, -0.0815, -0.3220, +0.0243, +0.1589, +0.2596, +0.0788, -0.1100, -0.0409, -0.0636, +0.0915, -0.0302, -0.1303, +0.2093, -0.7333, -0.4362, -0.0231, +0.1416, -0.0775, -0.6113, +0.1495, +0.1520, +0.1515, -0.2184, +0.2908, -0.4809, +0.1760, -0.5343, +0.0255, +0.3853, -0.6806, -0.0456, -0.0844, -0.2962, -0.2281, +0.2654, -1.0656, +0.0755, -0.1765, +0.1391, +0.1288, +0.2546, -0.0349, +0.0460, +0.0746, -0.3408, -0.1496, -0.7456, -0.2263, -0.1545, -0.3210, -0.1699, -0.0215, -0.0136, +0.3570, +0.2186, +0.0431, -0.2374, -0.1237, -0.0502, +0.3524, -0.3504, -0.8003, -0.1479, -0.1306, -0.1243, -0.0349, +0.0689, -0.1313, -0.1078, -0.0253, -0.0653, -0.0671, -0.4589, +0.1150, -0.2785, -0.4662, -0.0127, -0.2129, +0.2506, -0.3115, +0.3973, -0.0523, +0.1712, -0.0820, +0.0759, -0.0481, -0.0596, +0.1819, -0.3091, +0.1873, +0.2186, -0.5450, +0.0715, +0.1790, -0.2883, +0.0226, +0.1730], +[ -0.2602, -0.3215, -0.0906, +0.1177, -0.1313, -0.5380, -0.4104, -0.4251, -0.0429, +0.1910, +0.2934, -0.0522, -0.0154, +0.0940, -0.7726, -0.0532, -0.1507, -0.4646, +0.0155, -0.1635, +0.4168, +0.3530, -0.0973, -0.0352, -0.1655, -0.2412, +0.1004, +0.3036, -0.0438, -0.6966, -0.3239, -0.8388, +0.0405, -0.0482, -0.4399, +0.5633, -0.0991, +0.0878, -0.4014, -0.3725, -0.1872, +0.1927, -0.0272, +0.2497, -0.3443, +0.0991, -0.2369, +0.2886, +0.0404, -0.3542, -0.3079, -0.3784, -0.1192, -0.5404, +0.1479, +0.1591, +0.2231, +0.2725, -0.1559, +0.2966, +0.0741, +0.0748, +0.3326, -0.7224, -0.0826, -0.0814, +0.0424, -0.4582, +0.3849, -0.0785, -0.1042, +0.1102, -0.2348, -0.0806, -0.0245, -0.1454, +0.3831, -0.0851, -0.6094, -0.4785, -0.1979, -0.2312, -0.3423, -0.1665, +0.3068, -0.6060, +0.1745, -1.2672, -0.3371, +0.0945, -0.0562, -0.6999, -0.2454, -0.1074, +0.2825, -0.3700, +0.3908, -0.1738, +0.0191, -0.5917, -0.0799, -0.4251, -0.9711, +0.0096, -0.7487, -0.1138, +0.2945, -0.4373, +0.1421, -0.1377, +0.2897, -0.0829, +0.2462, +0.1447, +0.0142, -1.0093, -1.0673, -0.6900, -0.2250, +0.1916, -0.8061, -0.3221, +0.1838, +0.0782, +0.0042, +0.0976, +0.4808, -0.2449], +[ -0.0186, +0.0312, -1.1666, +0.4912, +0.0535, -0.0724, +0.4590, +0.5356, -0.2967, +0.0945, +0.3760, +0.1753, +0.5287, -0.3805, -0.8444, -0.1378, -0.2789, -0.0429, +0.5450, -0.0904, +0.0773, -0.4917, -0.7371, +0.0729, +0.1716, +0.0492, +0.2712, -0.4112, +0.4279, -0.2601, +0.1060, -0.1974, -0.0752, -0.0291, +0.0424, -0.3498, +0.3540, +0.4572, -0.0620, -0.1689, -0.7175, -0.0296, +0.0981, -0.0719, +0.1335, -0.0579, -0.7234, +0.5031, +0.0332, +0.2731, -0.3885, -1.1700, +0.2232, +0.1357, -0.1256, -0.3946, +0.1373, +0.2081, +0.0855, -0.5177, -0.0246, +0.2997, -0.5857, -0.3490, +0.1922, -0.6260, -0.2010, -0.0540, -0.5983, -0.1169, -0.0199, +0.2142, -0.0344, -0.0711, +0.2242, +0.0118, +0.1590, +0.1529, +0.1587, -0.7301, +0.1030, -0.2880, +0.2163, -0.2043, -0.0016, -0.0082, +0.1785, -0.6902, -0.1381, -0.1248, +0.3989, -0.1963, +0.4378, -0.0211, +0.2309, -0.5025, +0.1148, +0.0732, +0.0534, +0.0736, -0.3570, +0.1016, +0.0007, -0.0154, -0.2812, +0.4252, +0.0808, +0.3596, +0.2169, -0.2200, -0.8553, -0.7431, -0.0798, -0.5308, +0.0099, +0.1634, +0.1090, +0.0750, +0.0094, -0.3583, -0.2442, -0.0193, +0.1221, +0.2039, -0.4970, -0.4103, -0.2623, +0.1852], +[ +0.0035, -0.2371, -0.0652, -0.5765, +0.2370, +0.1303, -0.1977, -0.6236, +0.1144, -0.1280, +0.0588, -0.0054, -0.1472, -0.2433, -1.1024, +0.2071, -0.1101, +0.7363, -0.0024, +0.2096, +0.0864, -0.2140, +0.1191, -0.1789, +0.2744, -0.5595, -0.4182, +0.0468, -0.2223, +0.1140, -0.0006, -0.4948, -0.2110, +0.2943, -0.0723, -0.0925, -0.4041, +0.2033, -0.5595, +0.0529, +0.1126, -0.8388, -0.2227, -0.0921, -0.2104, -0.0412, +0.1017, +0.0853, +0.2641, +0.0581, +0.2180, -1.8387, +0.3215, +0.2269, -0.1205, -0.0315, +0.0466, -0.4390, -0.9485, -0.9049, +0.1571, -0.1657, -0.1598, -0.6076, +0.3959, -0.1420, +0.0664, -0.0393, +0.2893, -0.4381, +0.0649, -0.0343, +0.1189, -0.3135, +0.0619, +0.0534, -0.0150, -0.0847, -0.3386, -0.4189, -0.2144, -0.5014, -0.4263, -0.3158, -1.1655, +0.4229, +0.1088, -0.0160, +0.0623, -0.1086, +0.0452, -0.1172, +0.0235, -0.4329, +0.0315, -0.2861, -1.8719, +0.1323, -0.1785, +0.0296, +0.0625, +0.1258, -0.2638, -0.2692, +0.2976, +0.0126, -0.5463, -0.4668, -0.1375, +0.0925, -0.1242, -0.8335, +0.1498, -0.4909, +0.0150, +0.1882, -0.3309, +0.3453, -0.0746, +0.1613, -0.0352, +0.4158, -0.6152, -0.1984, +0.3839, -0.3962, -0.0498, -0.8401], +[ -0.2221, +0.4577, -0.3264, +0.0867, +0.2288, -0.6050, +0.0765, -0.0253, +0.0234, -0.1089, +0.2742, +0.0977, -0.2987, +0.3709, -0.6876, -0.0137, +0.2326, +0.1873, -0.0458, +0.4263, -0.1981, -0.1495, -0.2254, +0.1243, +0.2372, +0.0684, +0.0282, +0.0340, +0.2636, -0.1085, +0.1307, +0.0005, +0.2727, -0.3159, -0.0499, -0.5526, -0.4607, -0.1653, -0.1389, -0.2559, -0.3343, -0.1751, +0.0961, -0.1130, -0.3663, +0.1649, -0.0549, +0.1994, +0.3338, +0.2785, +0.3672, +0.1056, +0.3413, +0.2041, +0.2421, -0.4176, +0.0595, -0.7157, -0.8599, -0.2813, -0.5280, -0.2340, -0.3723, +0.3193, -0.0203, -0.7509, -0.4940, -0.0868, -0.0221, +0.0788, -0.0377, +0.1623, +0.0788, -0.0519, -0.2508, -0.3549, +0.2371, -0.4721, +0.5425, +0.5633, +0.0457, -0.0053, -0.4628, -0.2514, -0.1613, -0.2032, +0.0440, +0.3368, +0.0844, -0.1580, -0.7842, +0.1071, +0.0913, +0.2130, -0.3305, +0.1332, +0.1810, -0.1177, +0.2646, -0.4359, -0.3863, -0.0371, +0.2614, -0.1002, +0.1836, -0.2881, +0.4521, -0.1639, -0.0507, +0.1292, -0.2386, -0.2004, -0.0219, -0.9069, +0.2525, -0.0051, +0.5764, +0.1496, +0.2575, -0.1619, +0.1981, -0.0817, -0.0992, +0.1743, -0.1275, -0.2257, -0.0344, +0.1149], +[ +0.0552, -0.1676, +0.0500, +0.0371, +0.2764, -0.2129, -0.2672, +0.3881, +0.3348, +0.1618, -0.0235, -0.2225, +0.0011, +0.3560, +0.2559, -0.2586, -0.0630, -0.0616, +0.2104, +0.1421, +0.0131, -0.5461, -0.1410, -0.2444, -0.3954, +0.2889, -0.1876, +0.5588, -0.2274, +0.0884, -0.4838, +0.0815, -0.4368, -0.0366, -0.0305, -0.2435, +0.1682, -0.1123, -0.6352, -0.1180, -0.1304, -0.3762, -0.1200, -0.0787, +0.1968, +0.0229, +0.6007, +0.3058, +0.0111, +0.0071, -0.3882, -0.4516, +0.0657, -0.4349, -0.0312, -0.3833, +0.3771, +0.5473, -1.1309, -0.2844, -0.2990, -0.3114, -0.2003, +0.1692, -0.5216, -0.2573, +0.2162, +0.4196, +0.0645, +0.1814, -0.1180, -0.1903, +0.1395, +0.3146, -0.0503, -0.0129, +0.1173, -0.1289, -0.7010, +0.1966, -0.1170, +0.1836, -0.5466, +0.2949, +0.1268, +0.2523, +0.1339, +0.2687, -0.1148, -0.9586, -0.3372, +0.0221, -0.3042, +0.1392, -0.1978, -0.4729, +0.0023, -0.0018, -0.3816, -0.2387, +0.0710, +0.0402, +0.3025, -0.0422, +0.2517, -0.1266, +0.2964, -0.0651, -0.1329, +0.0103, +0.4835, -0.1226, +0.0643, -0.1345, +0.0647, -0.3269, -0.4923, +0.2875, +0.1877, -0.1526, -0.0785, -0.0118, -0.0353, -0.6584, +0.3742, -0.1663, +0.2500, +0.0618], +[ +0.2997, +0.2519, -0.4286, -0.7198, -0.2245, -0.1805, -0.4405, -0.4680, -0.1060, -0.3217, +0.1738, -0.2077, +0.1985, -0.3943, -0.3274, -0.5616, -0.5938, +0.0370, -0.0538, +0.2143, -0.3124, -0.3561, +0.3302, -0.2428, -0.1921, +0.0271, -0.0047, -0.2883, +0.0238, -0.2252, -0.2254, +0.1708, -0.2050, +0.2460, +0.0141, +0.0999, -0.1220, -0.1217, -0.1450, -0.0053, -0.4942, -0.4115, +0.1852, -0.1231, +0.1924, -0.3888, -0.2041, -0.4723, -0.4349, +0.0732, -0.6097, -0.3690, +0.1171, +0.1377, -0.3710, +0.4654, -0.1571, -0.8847, +0.0086, -0.0884, +0.3293, -0.5117, +0.0098, +0.2000, -0.2808, +0.0643, +0.1971, -0.0608, -0.4650, -0.3024, +0.1653, -0.0648, +0.2489, -0.1785, -0.1707, +0.3948, -0.3938, -0.6172, -0.2203, -0.7173, +0.0293, -0.3072, -0.0620, -0.2389, -0.0896, +0.1239, +0.2999, -0.0323, -0.5117, -0.0260, -0.3110, -0.1003, -0.5293, -0.0664, +0.2057, +0.1447, -0.3164, -0.0746, -0.6058, +0.1389, +0.1527, -0.2403, -0.0355, -0.1622, -0.0819, +0.2913, +0.2429, -0.0298, +0.0585, -0.0653, +0.1618, -0.0336, -0.6792, +0.3777, +0.0029, -0.2496, +0.3963, -0.0700, +0.4383, -0.4798, +0.2028, +0.1346, -0.6482, -0.1837, +0.0233, -0.0848, +0.0192, +0.2274], +[ -0.7703, +0.3597, +0.2273, -0.0120, -0.6104, -0.3715, -1.1547, -0.8693, -0.0804, -0.3563, -0.2710, +0.1459, +0.0653, +0.0391, -1.0880, +0.1807, +0.3675, -0.1739, -0.1623, +0.1400, -0.1035, +0.1792, +0.6849, -0.7708, -0.4373, +0.1885, -0.2048, +0.0541, +0.1565, -0.4325, -0.5115, -0.0447, +0.3524, +0.1776, +0.2972, -0.0688, -0.4532, -0.0173, -0.0426, -0.1938, +0.1425, -0.4570, +0.0673, -0.0495, -0.3246, +0.2467, +0.3304, -0.1078, +0.3719, -0.0125, -0.0105, -0.1284, +0.3591, -0.3257, +0.2117, -0.3518, +0.2448, -0.5693, +0.4628, -0.4708, -0.0589, +0.2012, +0.1599, -0.3289, -0.1241, -0.8050, -1.0541, +0.2217, +0.0578, -0.0257, +0.4239, -0.3047, -0.4532, +0.5791, -0.0018, -0.1231, -0.1040, -0.2046, -0.0637, -0.1778, -0.1759, +0.3343, -0.4349, -0.6581, -0.0120, -0.3806, -0.6405, -0.1362, +0.1076, -0.9756, -1.0895, -0.5013, +0.1329, -1.0341, -0.1451, -0.0347, -0.0139, -0.2391, -0.3683, +0.0724, +0.3231, -0.7633, -0.1369, +0.0740, -0.0623, -0.0497, -0.1996, +0.0780, +0.2873, -0.2659, -0.3895, -0.6219, +0.2696, +0.4523, -0.3043, -0.2205, +0.2472, -1.0548, -0.3012, -0.6168, -0.6512, -0.2143, -0.5998, -0.2672, +0.1359, -0.0752, +0.0370, +0.0627], +[ -0.1791, -0.2279, -0.0998, +0.1783, +0.1553, +0.0612, -0.2220, +0.1551, -0.2240, -0.0159, +0.0010, -0.0103, +0.1007, -0.3934, -0.5397, -0.2077, +0.0963, -0.1834, -0.2112, -0.0267, -0.3809, -0.2319, +0.2167, +0.0076, +0.0075, -0.0750, +0.0607, +0.1455, +0.0941, -0.0205, -0.2981, -0.0061, +0.4115, -0.4933, +0.2443, -0.9828, -0.3445, -0.2593, -0.3871, +0.0736, -0.8643, -0.0187, +0.1316, -0.2119, +0.3713, +0.0419, -0.5368, +0.1741, -0.1143, +0.0186, -0.2846, -0.4499, -0.2979, -0.0987, -0.1089, -0.1469, +0.1726, -0.4902, +0.3746, -0.1956, -0.6684, -0.1877, -0.4473, +0.3690, +0.1347, -0.1845, -1.4047, -0.1341, -0.0740, -0.0375, -0.1693, -0.3976, -0.6494, -0.0323, -0.2126, +0.3526, -0.2334, -0.3229, +0.4134, +0.0701, +0.2353, +0.4844, +0.0562, +0.3268, -0.1159, -0.1046, -0.0269, -0.0188, -0.1613, -0.2217, -0.2000, -0.0957, -0.2712, +0.3059, +0.1249, -0.1035, +0.0004, +0.3311, +0.1874, +0.3168, +0.0562, +0.1328, +0.1546, -0.1332, -0.0177, +0.2608, -0.1027, -0.4310, -0.5956, +0.0371, +0.0779, -0.1145, +0.0611, +0.1766, +0.2322, +0.3979, -0.1862, +0.3387, -0.6133, +0.0790, +0.0620, -0.1411, -0.0586, -0.0211, -0.1644, -0.4890, -0.0665, +0.2908], +[ -0.1590, +0.3465, -0.7111, +0.0057, +0.2907, -0.4929, +0.1248, -0.0589, -0.0498, -0.3394, +0.3763, +0.2212, -0.0642, +0.4740, -0.3273, -0.3461, +0.1982, -0.4864, +0.3201, +0.1274, +0.2486, +0.0471, -0.0542, +0.2365, +0.4782, -0.9680, -0.0935, -0.0158, -0.1450, -0.3454, -0.2127, -0.2524, +0.1208, -0.0273, +0.3810, -0.0663, +0.0663, -0.2722, -0.6524, -0.3031, +0.1824, -0.5041, +0.0428, +0.3808, -0.4099, +0.1713, -0.2006, +0.3985, -0.1635, -0.0436, -0.8630, +0.0073, -0.0152, +0.2548, +0.3976, +0.2089, -0.0484, +0.0710, +0.0378, -0.0727, -0.3489, -0.2270, +0.2633, +0.0113, +0.3312, +0.0097, -0.5475, +0.1103, +0.0917, -0.2627, -0.5849, +0.1446, -0.8225, -0.3470, -0.0024, -0.2059, -0.4963, +0.0666, -1.5108, -0.2249, +0.1441, -0.2078, -0.2021, -0.2921, -0.3632, +0.0481, +0.0159, -0.3559, -0.3166, +0.2004, -0.4084, -0.3994, +0.1976, +0.0868, +0.1715, +0.0243, -0.0022, +0.3939, +0.0631, -0.5910, -0.0901, +0.0470, -0.1276, +0.0298, +0.0838, +0.2862, -0.7131, -0.1051, -0.4813, +0.1589, -0.1359, +0.1241, -0.0412, +0.1048, +0.1344, -0.3297, -0.0250, +0.1921, +0.0646, +0.1873, -0.3154, +0.1462, -0.1932, +0.4339, -0.4673, +0.1966, -0.2193, +0.1271], +[ -0.4045, -0.4693, -0.2753, -0.0697, -0.7086, -0.1363, +0.0742, +0.5169, -0.9451, +0.0164, +0.7178, +0.4367, -0.5113, -0.0481, -0.3382, +0.3882, -0.6975, +0.3492, +0.6143, +0.2262, -0.3421, -0.1838, +0.5108, +0.2796, +0.3800, +0.0532, -0.4792, -0.4716, +0.0690, -0.0716, +0.2828, -0.7554, +0.1276, -0.2303, +0.0311, -0.2633, +0.0998, +0.2469, +0.1871, +0.6439, -0.4219, -0.2035, -0.4298, +0.0361, +0.1351, +0.2658, -0.2374, -0.1598, -0.5585, -0.0315, -0.9313, +0.2618, +0.2350, -0.0825, +0.0885, +0.1367, +0.3425, +0.0241, -0.4690, -0.1568, -0.2416, -0.2253, -0.0125, -0.1595, +0.0867, +0.4414, -0.8874, +0.0626, -0.3080, +0.5134, +0.4091, -0.2617, -0.1513, -0.1776, +0.0203, +0.2636, +0.0000, -0.4166, -0.0429, +0.2566, -0.3680, -0.1859, -0.6129, +0.4622, -0.1716, -0.0095, -0.1997, +0.3254, +0.4619, -0.4222, +0.0490, +0.2444, -0.0382, -0.0066, +0.0251, -0.7795, +0.6492, -0.4009, +0.0306, -0.6512, +0.0904, -0.5018, +0.2744, +0.6262, -0.0631, -0.7705, -0.3628, -0.0445, +0.1403, -0.3503, +0.3548, -0.4655, +0.6479, -0.2118, +0.2087, -0.8546, +0.7755, -0.2266, +0.2387, -0.6748, +0.1535, -0.3294, +0.3806, +0.1586, -0.1722, -0.2350, +0.1667, +0.3890], +[ +0.2363, +0.0062, -0.4151, -0.2195, -0.1890, +0.1727, -0.1118, -0.2844, +0.1809, -0.2691, -0.1235, -0.1263, +0.3011, -0.5891, +0.4425, -0.1007, -0.1312, -0.2862, +0.1523, +0.0050, -0.0170, -0.3431, -0.2285, +0.0159, +0.1520, -0.6582, +0.1684, -0.4045, -0.2205, +0.1423, +0.0978, -0.0692, -0.6432, +0.2055, -0.0115, +0.0345, +0.0718, -0.1850, -0.3148, -0.0285, +0.4103, +0.3684, +0.0221, -0.9018, -0.4790, -0.2507, -0.0904, +0.3063, +0.1512, -0.0405, -0.5723, -0.7270, -0.0956, +0.1412, -0.0119, -0.3245, +0.2918, -0.4344, +0.1103, +0.2323, -0.3513, +0.3947, +0.3163, -0.3286, +0.0400, -0.4976, -0.0799, +0.1862, -0.4608, -0.4698, -0.3919, -0.1890, +0.3467, -0.4846, +0.1217, -0.4737, -0.0228, -0.0274, -0.7486, -0.7364, +0.0778, +0.1966, -0.0731, -0.7374, -0.3736, -0.5404, -0.0662, -0.2419, +0.1435, +0.1261, -0.8224, -0.2903, +0.1371, +0.0677, +0.1414, -0.7651, -0.2402, -0.2509, +0.3953, -1.0583, -0.4834, +0.1641, -0.4187, -0.3944, -0.3237, -0.2496, -0.3212, -0.0233, -0.0451, +0.0084, +0.0396, -0.5585, +0.0647, -0.7654, +0.0435, +0.2010, -0.7568, -0.0416, -0.7364, -0.1277, -0.3532, +0.1159, +0.1172, -0.0711, +0.1222, +0.1614, +0.2695, -0.1347], +[ +0.2645, +0.1945, -0.1109, -0.0107, +0.4603, -0.0164, -0.6991, +0.0160, -0.2493, -0.0361, +0.0486, +0.1446, +0.1816, -0.3309, -0.5692, +0.3186, +0.0398, +0.1935, +0.0052, +0.1339, -0.6104, -0.0547, -0.0493, +0.1449, -0.0981, -0.4863, -0.0619, -0.0866, -0.2730, -0.0892, -0.5666, +0.0349, -0.1451, -0.0458, +0.0709, -0.0688, -0.3157, -0.1346, +0.0223, +0.1968, -0.3147, -0.2957, +0.0356, -0.4077, -0.0574, +0.1900, -0.2019, -0.4952, -0.4156, -0.2254, +0.3388, -0.1667, -0.0230, +0.0165, -0.1358, -0.0144, +0.0272, -0.2540, -0.0612, -0.0324, -0.0505, +0.1923, -0.3608, +0.3274, -0.5640, +0.2636, +0.2367, -0.1310, +0.0460, +0.0487, +0.0208, -0.3474, +0.1411, +0.2065, +0.6770, -0.1130, -0.0721, -0.6301, -0.0159, -0.0925, +0.1345, +0.1874, -0.4512, -0.2718, +0.0344, -0.2044, +0.1453, -0.0164, -0.1500, +0.3967, +0.0505, -0.0252, +0.2409, -0.4191, +0.0563, +0.0028, +0.1797, -0.6223, +0.3218, -0.3501, -0.1397, -0.3705, -0.0733, +0.2525, +0.1673, +0.2652, +0.3524, +0.2129, +0.0589, +0.0883, +0.4070, +0.3489, +0.0569, -0.1190, +0.4708, -0.2421, +0.2813, +0.1846, +0.2897, -0.2035, +0.2092, +0.1079, +0.3770, -0.0807, -0.2196, +0.1587, +0.0665, +0.1521], +[ -0.0032, -0.5900, +0.3245, +0.2203, -0.4119, +0.0732, -0.1448, -0.2840, -0.5423, +0.4369, +0.1149, -0.1663, -0.0846, -0.4860, -0.7153, +0.2717, +0.3148, +0.0577, +0.0600, +0.1907, +0.0226, -0.8129, -0.0191, -0.1380, -0.3814, -0.2589, +0.1204, -0.1775, -0.4343, -0.3241, -0.4191, +0.2309, -0.1817, +0.1551, +0.1934, -0.6179, -0.3449, -0.3706, -0.1836, -0.0723, +0.1246, -0.1750, +0.0323, +0.0048, +0.1908, -0.0128, -0.2133, +0.2548, +0.2636, +0.2050, -0.5303, +0.2526, +0.0808, -0.5870, -0.2439, +0.2156, -0.4137, -0.7845, -0.0266, -0.1659, -0.0701, -0.0901, +0.4030, -0.2117, -0.3111, +0.2580, -0.3229, +0.2362, +0.5040, -0.0254, +0.1128, +0.0537, +0.0629, +0.0724, -0.0315, +0.3396, +0.0600, +0.2878, +0.1927, +0.0392, -0.4752, -0.1950, -0.1491, -0.4002, +0.2534, +0.0002, -0.0474, +0.3546, +0.3228, +0.4452, -0.0011, +0.0549, -0.0518, +0.2764, +0.2517, +0.2436, -0.4300, +0.2737, +0.3223, +0.0856, +0.1481, -1.0614, -0.0964, -0.6597, -0.1409, -0.1445, -0.1676, -0.5498, +0.7005, +0.3196, +0.2127, -0.0677, -0.2303, -0.2276, -0.1833, -0.2009, -0.0879, -0.1477, +0.2008, -0.1563, +0.0598, -0.0930, +0.1721, -0.2699, -0.2913, +0.0134, -0.2100, -0.2508], +[ +0.0078, -0.1145, +0.0566, +0.2845, +0.3333, +0.0245, +0.5178, -0.2139, -0.5225, +0.1092, +0.3087, -0.2633, -0.4887, +0.5600, -0.3808, -0.4829, +0.3219, +0.3766, +0.0972, +0.4930, -0.2441, -0.2812, -0.2231, -0.0461, -0.6873, -0.0303, -0.0595, +0.1965, +0.1405, +0.2027, +0.1398, -0.5602, -0.5044, +0.3049, -0.8612, -0.0465, +0.4593, -0.1495, +0.4121, +0.3910, +0.1221, -0.3441, -0.1128, -0.3937, -0.0790, -0.2019, -0.5485, +0.1180, +0.0659, -0.0949, -0.1865, +0.8964, +0.1803, +0.2051, -0.3293, -0.3495, -0.2919, +0.1497, -0.0474, -1.0231, +0.0527, -0.4692, -0.0999, +0.0488, -0.1689, +0.1371, -0.1849, +0.1495, -1.0595, +0.4409, -0.1860, +0.3221, -0.4063, +0.2084, +0.3131, -0.0811, -0.0254, +1.0520, +0.2568, -0.1223, -0.6538, -0.3910, +0.0634, -0.1927, +0.0842, -0.5116, +0.0424, +0.0742, +0.0284, -0.9449, -0.2828, -0.2224, +0.1159, -0.0119, -0.0894, -0.2882, -0.3089, +0.2021, -0.1726, -0.1260, -0.2500, -0.0621, -0.6379, +0.2073, +0.3437, +0.2344, +0.1052, +0.0429, -0.1970, +0.7690, -0.2105, -0.6152, +0.1540, -0.1216, -0.1457, -0.0201, -0.7810, -0.5367, -0.1856, -0.3119, -0.6950, -0.0800, +0.1553, +0.7838, -0.4806, -0.7120, -1.0775, +0.4206], +[ -0.8158, -0.0751, +0.4568, +0.1936, -0.0115, +0.0016, +0.1775, -0.3664, +0.2353, -0.1059, -0.0433, -0.2364, -0.0069, -0.0294, -0.3629, +0.4730, -0.3616, +0.2660, +0.4088, -0.0482, +0.2876, -0.0399, +0.1708, +0.3116, +0.0624, +0.1124, +0.2188, -0.1548, +0.0379, +0.2865, +0.0004, -0.3470, -0.4660, -0.1543, -0.6684, +0.3219, +0.7255, +0.2310, -0.2165, +0.0654, -0.5981, -0.2871, -0.4359, -0.0235, -0.4874, -0.6068, -0.1394, +0.0140, +0.1378, +0.0300, -0.3226, -0.1644, +0.0784, -0.3535, +0.4106, +0.3939, +0.4227, -0.2622, -0.0644, -0.7142, -0.6646, -0.3376, -0.0979, -0.1231, -0.2758, -0.7267, -0.0163, -0.3791, +0.2953, -0.0657, +0.0056, -0.4484, -1.0532, +0.5263, -1.1149, -0.1071, -0.5389, -0.0615, -0.0329, +0.1728, -0.0696, -0.3026, -0.0906, -0.1880, +0.1664, -0.4204, +0.2661, -0.6305, -0.2993, -0.1241, -0.2866, -0.1463, +0.4917, +0.1292, -0.4802, +0.3295, -0.7186, -0.1402, -0.0365, +0.0668, +0.1496, -0.3388, -0.0329, -0.2554, +0.1411, -0.6357, -0.1040, +0.1403, +0.1908, -0.7587, -0.5095, +0.2143, +0.2150, +0.2288, +0.2723, -0.8710, +0.1903, +0.0446, -0.7277, -0.1252, -0.0186, +0.2522, -0.4735, -0.0302, -0.3595, -0.3273, +0.2083, +0.0594], +[ -0.2945, +0.3638, +0.1284, -0.5290, -0.1601, +0.1974, +0.1350, -0.3181, +0.1355, -0.1144, -0.8185, +0.3295, +0.0454, -0.2519, +0.0312, -0.0144, +0.0092, +0.1483, +0.0112, +0.1281, +0.2530, +0.0103, -0.2943, +0.0510, +0.2044, +0.0298, +0.2082, -0.0052, +0.1255, +0.1062, -0.6600, -0.0876, +0.0886, -0.1130, -0.4472, -0.0706, -0.2610, -0.4739, -0.3537, +0.0546, -0.3391, -0.5774, -0.1172, +0.1768, +0.3232, +0.0907, -0.5683, -0.6098, +0.1459, +0.3442, -0.3454, +0.0279, +0.1736, -0.1270, +0.1902, +0.0658, -0.0248, -0.2342, +0.1925, +0.1986, +0.1576, -0.6727, -0.3078, +0.1383, -0.2497, -0.1600, +0.2205, -0.3507, +0.1797, +0.5265, -0.3245, +0.0958, -0.1797, +0.0096, +0.3309, -0.2368, +0.0322, -0.2754, +0.1351, +0.5305, +0.1616, +0.5841, -0.7230, -0.3630, -0.0726, -0.5375, -0.2105, -0.1580, +0.1014, +0.1227, +0.0446, +0.0279, +0.5773, -0.5343, +0.2156, -0.0660, -0.3511, -0.0986, -0.2209, +0.1967, +0.0479, +0.4054, -0.4945, +0.2346, -0.4003, +0.1255, +0.0379, -0.3276, -0.3174, -0.1166, +0.1421, -0.3541, +0.0644, -0.2061, -0.0139, +0.1682, -0.2627, +0.0623, +0.3165, -0.2602, +0.3458, +0.2270, -0.4983, -0.1965, -0.1811, +0.1990, -0.0536, -0.3008], +[ +0.2861, +0.2465, +0.5445, -0.6241, -0.3810, -0.2431, +0.0899, +0.0009, +0.0287, -0.2860, +0.4379, +0.1100, -0.0060, -0.0688, +0.3326, +0.4050, -0.0543, -0.3589, -0.4444, -0.1794, +0.0463, -0.4859, +0.5408, +0.1241, -0.1452, +0.1877, +0.3102, -0.5119, -0.4563, +0.2339, +0.0762, -0.0091, -0.2146, +0.0441, -0.8371, +0.1044, +0.3922, +0.0952, +0.2457, -0.1154, +0.2800, +0.0238, -0.1393, +0.1442, -0.6630, +0.3521, -0.2741, -0.0738, -0.0247, -0.0797, -0.2095, +0.5173, -1.1573, +0.4417, +0.2038, -0.2982, -0.2218, -0.0335, -0.0754, +0.0173, -0.1934, -0.7999, -0.7296, -0.1534, +0.0536, -0.5079, +0.3942, +0.1031, +0.0451, +0.3108, +0.0228, -0.5315, -0.5942, +0.1103, -0.1635, -0.0243, -0.3393, -0.2886, +0.1906, +0.0561, -0.1120, -0.2488, -0.2236, -0.3785, -0.0452, +0.2679, +0.2678, +0.4436, -0.8340, +0.0203, +0.6116, -0.3027, +0.1799, -0.2438, +0.1136, -0.2686, -0.0847, +0.0744, +0.0928, +0.2443, +0.0078, -0.0683, -0.4921, -0.0881, -0.1307, +0.3243, -0.4150, +0.0227, -0.5241, -0.5408, +0.2310, +0.2375, -0.0665, +0.2242, -0.2104, +0.2351, -0.1965, -0.3067, +0.0265, -0.1175, -0.3326, -0.3971, -0.4137, -0.0187, -0.4536, -0.0317, -0.2076, +0.1488], +[ +0.3728, -0.0547, +0.3402, +0.0846, -0.2939, -0.4488, -0.3421, +0.3539, +0.2334, -0.1906, +0.2732, +0.2161, -0.4480, +0.1510, -0.4346, -0.0497, +0.2783, -0.1186, +0.0806, -0.0484, +0.1960, +0.2053, -0.0394, +0.0148, -0.0442, +0.1445, -0.2074, +0.2616, -0.0416, +0.2471, -0.3292, +0.2827, +0.1714, -0.0269, -0.1959, -0.3425, +0.3473, -0.2343, -0.3136, +0.2331, -0.0308, +0.1485, +0.4697, -0.1206, +0.3913, -0.1763, -0.3010, -0.2376, +0.5187, +0.1515, -0.2541, -0.0851, -0.5678, +0.1875, -0.0576, +0.2598, -0.0535, +0.0647, -0.2367, -0.5131, -0.6636, +0.0245, +0.1720, -0.1660, +0.0015, -0.5347, +0.0851, -0.1086, -0.0278, +0.3490, -0.3233, -0.1908, +0.2611, +0.2172, -0.0438, +0.1540, +0.0241, +0.3071, -0.2689, +0.0820, +0.3680, -0.1333, -0.4390, -0.0022, -0.1614, -0.2464, -0.5837, -0.1894, +0.0748, +0.2046, -0.1179, -0.3081, -0.2560, +0.0728, -0.0119, +0.1377, -0.2225, -0.1516, -0.0038, +0.0417, +0.3232, -0.1597, +0.0374, -0.2734, -0.0756, +0.2224, -0.1316, -0.1672, +0.1052, +0.1462, +0.3924, -0.1192, -0.2089, -0.0764, -0.0825, -0.1494, -0.2589, +0.1217, -0.2977, -0.2204, -0.2216, -0.3703, -0.3574, -0.1172, -0.2267, +0.2539, -0.0252, +0.0847], +[ +0.1868, -0.6792, -0.0882, -0.4607, -0.0270, +0.1324, +0.2618, -0.6255, -0.0388, +0.3012, +0.1471, -0.1281, -0.3204, -0.1431, -0.3314, -0.0240, -0.1630, -0.2548, +0.1775, -0.1358, -0.2844, +0.0252, -0.4802, -0.0492, -0.2956, +0.0343, +0.2928, +0.2291, -0.0586, +0.1699, +0.2495, -0.0260, +0.1860, -0.0989, +0.0219, +0.0784, -0.1875, +0.2573, -0.1494, -0.0104, +0.1539, +0.3493, -0.1276, +0.2420, +0.2307, -0.1657, -0.3181, +0.0017, -0.2638, +0.1521, +0.2645, -0.9728, -0.0588, -0.3231, +0.2092, -0.3449, +0.4395, +0.2772, +0.0681, -0.0655, +0.0825, +0.0245, +0.6292, +0.1525, -0.3409, -0.0468, -0.3370, +0.1332, -0.0825, +0.1383, +0.0434, +0.3655, +0.1437, -0.2284, -0.1684, -0.0226, +0.4623, +0.1211, -0.1569, +0.0185, +0.3112, +0.1661, +0.0546, +0.2685, +0.1671, +0.0382, +0.1157, +0.2854, +0.2848, +0.0935, +0.3446, -0.3609, -0.2390, +0.1744, -0.7724, +0.0076, -0.3620, +0.4923, -0.0388, -0.1553, +0.2411, -0.0320, +0.4227, +0.2251, -0.2288, -0.6397, -0.1282, +0.4254, +0.0105, +0.2636, -0.0833, -0.0003, +0.1051, -0.0291, -0.3264, -0.0814, +0.1735, -0.0074, -0.4138, -0.0254, -0.0859, +0.0787, -0.1913, +0.1291, +0.1845, -0.0069, +0.0697, +0.1905], +[ +0.2668, +0.0176, -0.6247, +0.0919, -0.4115, -0.2334, +0.0598, +0.1609, +0.5839, +0.1131, +0.2215, -0.2243, +0.1482, -0.3540, -0.9145, +0.0116, -0.0904, -0.3873, -0.0561, -0.1550, -0.2506, +0.1287, -0.0165, -0.3660, -0.1245, -0.5657, -0.2736, -0.4638, +0.3541, -0.0719, +0.2303, -0.2123, +0.1793, +0.1374, +0.4679, -0.3017, -0.2900, -0.0085, -0.0199, -0.0094, -0.0539, -0.4537, -0.1137, +0.1031, -0.2512, -0.5477, -0.3711, +0.0679, -0.0909, -0.4900, -0.0460, +0.1870, +0.5657, +0.0770, -0.1924, +0.5013, +0.1926, +0.4636, -0.2005, -0.6079, -0.0038, -0.3662, -0.1998, +0.2434, -0.1351, -0.1438, +0.4540, +0.3861, -0.5414, +0.1765, +0.5507, +0.0502, -0.2789, +0.0302, -0.4437, +0.1469, +0.0083, -0.0509, +0.0401, +0.0566, -0.3248, -0.1318, -1.5129, -0.6188, -0.1140, -1.1974, +0.2079, -0.1738, +0.2441, -0.8853, +0.0682, +0.0367, +0.2440, -0.6512, +0.0619, +0.2182, +0.1542, +0.2227, -0.4152, +0.4476, -0.4592, +0.6061, -0.5287, +0.5690, -0.5691, +0.0677, -0.2069, +0.0190, -0.1155, +0.5428, +0.4470, +0.0292, +0.3965, +0.0130, +0.4818, -0.6723, -0.6049, +0.1751, -0.0091, -0.0193, -0.4040, +0.1776, -0.0811, +0.5117, +0.1059, +0.2048, +0.3580, +0.0120], +[ -0.1210, +0.0283, -0.2150, -0.8675, -0.1966, -0.1280, -0.3534, +0.1179, -0.5637, -0.0615, -0.2321, +0.0095, +0.1918, +0.0317, -0.2031, -0.1552, +0.3155, +0.4319, +0.2815, -0.0709, -0.6060, -0.0318, -0.6541, -0.3911, +0.0916, +0.1339, +0.3901, -0.0215, +0.3117, +0.3603, +0.3742, -0.2424, -0.2102, -0.0055, -0.1783, +0.2992, -0.0213, +0.2737, +0.3640, -0.0041, -0.0435, +0.1138, -0.0185, -0.0374, +0.0415, +0.4626, +0.3861, -0.2194, -0.6983, +0.1617, +0.1974, -0.0364, +0.4909, +0.1799, +0.2560, +0.0741, +0.0866, +0.0264, -0.4130, -0.0046, -0.5335, -0.0196, +0.3220, -0.0230, +0.2521, +0.1357, -0.2103, +0.1343, +0.1675, +0.0260, -0.1268, +0.2371, +0.0360, +0.2276, +0.1925, +0.2276, +0.0839, +0.1985, -0.0862, +0.1063, -0.1310, +0.1342, +0.1287, -0.1455, -0.3308, -0.1680, -0.5989, -0.5364, -0.0396, -0.4750, -0.0452, +0.2292, -0.0566, +0.3250, -0.0889, -0.1587, +0.0793, -0.2573, +0.3200, +0.4030, -0.0636, +0.4392, +0.1043, +0.0802, +0.0769, +0.4630, +0.1506, +0.0572, +0.0029, -0.3777, -1.6826, -0.0892, -0.7466, -0.1378, +0.3277, +0.1467, -0.0098, +0.0221, -0.1759, -0.7071, +0.0824, -0.0311, -0.2508, -0.0275, -0.7920, -0.3872, +0.1502, +0.2264], +[ +0.6120, +0.3405, +0.2589, +0.0686, -0.1953, +0.6403, -0.1969, +0.0595, +0.1195, +0.2618, +0.1715, +0.0922, +0.1265, -0.1682, +0.0085, -0.0564, -0.2752, -0.2192, +0.0928, -0.1574, +0.1297, +0.1780, +0.2758, +0.0059, +0.2249, -0.2070, -0.2551, +0.0703, +0.0269, -0.2630, +0.0450, +0.2389, +0.2634, -0.2034, -0.4609, +0.4847, +0.5883, -0.3472, +0.2286, +0.0655, -0.6584, +0.3056, +0.2531, -0.0975, -0.1207, -0.1381, -0.5765, +0.4057, -0.2481, +0.1628, -0.0124, +0.1207, -0.4008, -0.1172, -0.2151, -0.0345, +0.0495, +0.0189, +0.3476, +0.0653, +0.0872, -0.1548, -0.0870, -0.5931, -0.1480, -0.0160, +0.3780, -0.0113, -0.1431, -0.2628, -0.0559, -0.4389, +0.2481, +0.0285, +0.2956, -0.2034, -0.1550, +0.0492, -0.0950, -0.1279, +0.0670, -0.2606, -0.0781, +0.1651, -0.6137, -0.2109, +0.0098, -0.4534, +0.0486, +0.1961, -0.4423, +0.1798, -0.1662, -0.1309, +0.2564, -0.3861, -0.0668, -0.2116, -0.3516, -0.0911, +0.1962, -0.6550, -0.3101, -0.1711, -0.3370, -0.2917, +0.2500, +0.2666, -0.0542, -0.4167, -0.3549, -0.0180, +0.2593, +0.0414, -0.1374, +0.3264, +0.0359, -0.4018, -0.1284, -0.0707, +0.3961, -0.3629, +0.5779, +0.3261, -0.1960, +0.0196, +0.1802, +0.1772], +[ +0.3321, -0.0043, +0.0059, +0.1838, -0.0379, -0.6290, -0.2934, -0.0023, +0.4021, +0.1333, +0.3395, +0.3662, -0.5307, +0.4866, +0.1920, +0.1895, +0.1353, -0.0677, +0.0010, -0.1776, +0.0715, +0.1955, +0.1733, +0.0839, +0.1278, +0.0549, -0.1681, -0.0210, +0.0268, -0.2156, -0.0524, +0.0486, +0.1273, +0.0394, +0.4595, +0.1428, -0.4473, -0.1574, -0.5620, +0.0088, -0.1087, -0.3781, +0.0653, +0.0713, +0.0020, +0.1512, -0.0755, -0.1028, -0.0136, -0.0456, -0.3270, -0.0032, +0.2283, +0.2919, +0.3500, -0.5352, -0.1475, +0.2793, -0.7237, -0.3808, -1.2308, -0.2369, -0.1346, -0.1291, +0.4355, -0.2403, -0.3712, +0.0012, +0.2265, +0.4574, +0.0566, +0.5269, +0.3710, +0.5246, -0.0498, -0.3951, -0.4347, -0.3339, -0.4218, +0.0127, -0.0504, +0.2275, -0.2729, +0.2287, +0.0500, +0.2769, -0.1740, -0.3289, +0.0437, -0.1089, -0.1714, -0.3370, +0.1238, -0.2227, -0.2236, -0.0241, +0.0526, -0.1371, +0.0734, +0.1850, +0.1059, -0.1044, +0.1228, -0.1843, +0.1778, +0.1081, +0.2087, -0.7055, +0.0547, +0.0166, +0.0231, -0.1416, +0.3223, -0.1833, +0.1695, -0.2619, +0.1388, +0.2318, +0.0007, -0.1106, -0.0560, +0.1814, -0.1111, -0.2346, +0.2086, -0.1681, -0.4507, -0.2912], +[ -0.0355, +0.2780, -0.0415, -0.6060, +0.1641, -0.1634, -0.1836, -0.2687, -0.2778, +0.3303, -0.5843, +0.2118, -0.0916, +0.1060, +0.0583, +0.0854, +0.2461, -0.2423, +0.4740, +0.3551, -0.3546, +0.0514, -0.1922, -0.8780, -0.1073, +0.0772, +0.1236, -0.2780, +0.1447, -0.6879, +0.0313, +0.2184, -0.2200, -0.0125, +0.0931, -0.1300, -0.1865, -0.4454, -0.8373, -0.0907, -0.3115, +0.0840, -0.2306, -0.1615, -0.3491, +0.2386, +0.1848, -0.5184, -0.1454, -0.2316, +0.2788, -0.0251, -0.0211, +0.0219, +0.1418, +0.0277, -0.2427, -1.2938, -0.1140, -0.2718, -0.6272, -0.0525, +0.1877, +0.2890, +0.3268, -0.0594, +0.1912, +0.4100, -0.2659, -0.0808, -0.8520, -0.7808, -0.2231, +0.4269, +0.1724, +0.3903, -0.4007, -0.3331, -0.1801, -0.3650, +0.0508, +0.4958, +0.2926, -0.2167, -0.2007, -0.0711, +0.2235, +0.0508, -0.0419, +0.2554, +0.0702, +0.0802, -0.0612, -0.0652, +0.3999, +0.4148, +0.6440, -0.1218, -0.4333, -0.2390, -0.2230, +0.0354, +0.1575, +0.0190, -0.2055, +0.1771, -0.7678, -0.2000, +0.1853, +0.1183, +0.0925, -0.2047, -0.4217, -0.0655, -0.0234, +0.2635, +0.0828, +0.2193, -0.6872, -0.3432, -0.2302, +0.1799, -0.2867, +0.0938, -0.1178, -0.0551, -0.4497, -0.1970], +[ -0.5875, +0.3584, +0.1795, -0.4308, +0.3049, +0.3270, +0.3174, -0.1452, -0.1415, +0.2994, -1.2432, -0.3681, +0.0554, +0.1826, +0.1509, +0.6676, +0.7488, +0.0322, -0.9482, -0.0708, -0.1230, +0.3096, +0.0785, -0.0805, -0.6251, +0.1364, -0.3964, -0.9179, +0.4554, +0.0184, +0.5066, +0.1493, +0.0249, -0.5184, -1.4056, +0.0259, +0.3481, -0.4445, +0.1686, -0.0919, -0.1951, -1.3686, -0.3031, -0.7120, -0.1386, +0.3186, +0.4143, +0.1699, +0.3723, -0.5573, +0.0541, +0.7135, -0.1683, +0.3588, +0.2727, -0.5074, -0.7353, -1.2056, +0.1675, -0.3630, -0.0839, +0.2155, +0.3176, +0.2199, +0.0528, +0.1867, -0.1459, -0.1960, -0.5922, -0.1418, +0.1251, -0.2371, -0.0244, -0.3642, -0.0267, -0.3112, +0.0506, +0.2327, -0.0061, +0.0202, +0.0529, -0.1410, -0.5588, -0.3405, -0.1945, +0.0048, -0.2415, -0.0087, +0.0536, -0.2444, -0.3201, -0.0885, +0.4312, -0.0041, -0.2366, +0.2506, +0.0255, -0.4700, -0.0447, +0.1439, +0.3104, +0.1605, +0.0736, +0.1862, -0.0253, -0.1050, +0.5843, +0.0937, -0.3332, -0.2927, -0.3305, +0.0606, +0.3630, -0.0441, +0.3914, +0.1469, -0.3773, -0.1831, -0.4460, -0.2917, -0.5101, +0.5178, +0.0635, -0.3741, +0.0059, -0.3863, -0.0546, +0.2805], +[ +0.0601, -0.3253, +0.0195, -0.1363, +0.3744, +0.0671, -0.1641, -0.4333, +0.4887, +0.2348, -0.1369, -0.2670, +0.1986, -0.5604, -1.0478, -0.3187, -0.4200, -0.2033, -0.5111, +0.1593, +0.0223, -0.2550, -0.0922, -0.2716, +0.3623, -0.1694, -0.0972, +0.1189, -0.6272, -0.0722, +0.1894, -0.6329, -0.3364, -0.7210, -0.8415, -0.3291, +0.0917, -0.4014, +0.2275, -0.3271, -0.2019, -0.3149, +0.5368, -0.0693, +0.5510, -0.1304, -0.2988, -0.1306, +0.0359, +0.1579, -0.6640, +0.1081, -1.5365, -0.1597, +0.2577, -0.0664, +0.0757, +0.1524, -0.0956, -0.1541, -0.4604, -0.4904, +0.0975, +0.2428, -0.1907, -0.7102, +0.6586, -0.1683, -0.0257, -0.3399, -0.1199, -0.0780, +0.0957, -0.2709, +0.1472, +0.0477, +0.0115, -0.1198, +0.3382, +0.4367, +0.0999, -0.6750, -0.8398, +0.0322, +0.0039, -0.3979, -0.1288, -0.5003, -0.2096, -1.1291, -0.4065, -0.3172, +0.1936, -0.6337, -0.6576, +0.0531, +0.4156, -0.9388, -0.0643, -0.7279, -0.5641, -0.3065, +0.4290, +0.0895, -0.1019, -0.3363, +0.1544, -0.0767, +0.0565, -0.7275, -0.0629, -0.8995, -0.0352, -0.0069, -0.2988, -0.5636, +0.5480, -0.3188, -0.7048, -0.3809, -0.1963, +0.3920, +0.1438, +0.1053, -0.2073, +0.2638, -0.1706, +0.0799], +[ -0.2158, +0.0953, +0.2846, -0.2392, -0.2678, +0.0783, +0.3179, -0.2224, +0.6093, -0.5543, -0.1057, -0.2840, -0.3915, -0.2513, +0.1723, -0.3655, +0.0223, -0.4514, +0.0781, -0.3668, -0.0650, -0.2735, -1.0161, -0.0027, -0.3664, -0.0702, -0.1575, -0.2282, +0.0369, -0.0807, +0.1153, -0.0076, -0.1323, +0.4017, +0.1480, +0.2383, -0.4470, +0.1887, -0.1691, +0.3031, +0.1124, -0.5467, +0.0554, +0.0814, -0.4822, +0.0195, -0.3758, +0.4181, -0.4839, -0.3081, +0.4140, +0.1578, +0.1257, +0.2257, -0.5583, -0.5895, -0.8581, -0.3002, +0.0568, -0.3166, -0.8867, -0.0909, -0.5856, -0.1936, -0.4399, +0.1872, -0.2999, +0.4525, -0.1103, +0.1011, -0.1481, -0.0094, -0.2643, -0.3380, +0.5789, -0.2954, -0.4386, -0.7334, +0.3065, +0.4677, -0.0934, +0.2365, +0.2516, +0.3897, -0.0673, -0.0134, -0.0030, +0.1351, -0.4304, +0.0894, +0.1702, -0.1998, -0.1700, -0.1687, +0.1565, -0.3954, -0.4844, -0.3194, -0.5078, +0.0651, +0.1964, +0.0848, -0.1559, -0.1095, -0.3068, -0.0296, -0.3526, -0.5551, -0.2015, -0.3554, -0.0166, -0.0325, -0.3315, +0.6864, +0.1491, +0.4219, +0.4374, -0.1169, -0.2291, +0.5127, -0.3610, -0.4966, +0.4471, +0.0802, -0.5580, -0.5791, -0.1772, +0.2302], +[ -0.1076, +0.1499, -0.0961, -0.2042, +0.2166, -0.2431, +0.0062, -0.7276, -0.1863, -0.3058, -0.2379, +0.1921, -0.4037, +0.0759, -0.1372, -0.1939, -0.2092, -0.7652, -0.0190, +0.3077, -0.0457, -0.0271, -0.5684, +0.0415, +0.0116, -0.8223, +0.3359, -0.1225, +0.1816, +0.2140, +0.1602, -0.1146, -0.1266, -0.0036, -0.7904, -0.2256, -0.1559, -0.2645, +0.0860, -0.0661, -0.2869, -0.6140, -0.0998, +0.2239, -0.1742, +0.2176, +0.3107, +0.0136, -0.1963, +0.5052, +0.0713, -0.3807, +0.2308, -0.5190, +0.1811, -0.1509, +0.1385, -0.0837, +0.1361, -0.2535, +0.1506, -0.3724, +0.0996, +0.1964, +0.1111, -0.0517, -0.0306, +0.1187, +0.1788, -0.0407, -0.1487, -0.0854, +0.2843, -0.0753, -0.0068, -0.0077, -0.3471, +0.0351, -0.6159, -0.4226, +0.5148, +0.0071, -0.7155, +0.2349, -0.0137, +0.1020, -0.0478, -0.0962, -0.3094, +0.0115, +0.0320, +0.1118, -0.0642, -0.6710, -0.0404, +0.2625, -0.1370, +0.0298, -0.0184, -0.1681, +0.0445, +0.0099, +0.0830, +0.2498, +0.3416, -0.2665, +0.1916, +0.0037, -0.6989, -0.3035, -0.5451, -0.0226, +0.1792, +0.2112, +0.1199, -0.4196, +0.3648, +0.1852, +0.1674, +0.3833, +0.4238, +0.2341, -0.1482, -0.0028, +0.1002, -0.2465, +0.0602, +0.2140], +[ +0.0213, +0.1944, -0.1501, -0.7898, -0.0269, -0.1696, -0.1227, +0.3991, +0.3180, -0.0466, +0.5871, +0.0320, +0.3256, +0.0336, -0.3113, -0.0198, -0.1346, -0.6108, -0.1094, -0.5958, -0.0453, -0.5481, -0.1500, -0.0589, +0.0894, +0.1282, -0.6472, -0.0027, -0.2055, +0.2224, +0.1027, +0.1256, -0.0334, -0.1769, -0.0391, -0.3949, +0.1055, +0.2503, -0.1800, -0.3791, -0.2318, -0.0518, -0.1476, +0.1280, +0.0072, -0.0926, -0.0673, +0.2434, -0.3668, -0.9051, -0.1701, +0.0967, +0.0836, -0.0320, +0.0400, +0.0664, -0.2545, -0.2088, +0.0896, -0.3086, -0.1286, -0.1372, +0.3918, +0.2618, -0.1957, -0.2447, -0.3575, -0.3319, +0.6881, -0.1629, +0.0188, -0.3465, -0.1682, +0.2730, -0.1074, -0.0268, -0.2431, +0.0457, +0.4783, +0.2920, -0.8347, +0.0237, +0.0183, +0.2163, +0.2028, +0.0512, +0.3901, +0.3220, +0.1953, +0.2893, +0.1298, +0.1812, -0.4022, -0.2563, -0.1943, +0.0630, -0.3236, +0.3854, -0.0505, +0.0693, +0.0277, -0.5653, -0.0168, +0.0141, -0.2540, -0.5629, -0.0544, -0.1690, +0.2695, -0.5674, +0.4644, +0.5105, -0.0195, -0.4197, +0.0466, -0.3659, +0.3466, -0.1359, -0.2359, -0.3740, +0.2405, +0.1225, -0.5024, +0.0566, -0.8196, -0.1433, +0.0337, +0.0528], +[ -0.6809, +0.2662, -0.5515, +0.0274, +0.4504, +0.3657, -0.0369, -0.0298, +0.0075, -0.1811, +0.1554, -0.5186, +0.5404, -0.3754, -0.3679, -0.0857, +0.0986, -0.5003, +0.1381, -0.2794, -0.4324, +0.0690, -0.3677, +0.0815, -0.0896, -0.6115, +0.3429, -0.1858, -0.1057, -0.4543, +0.1465, -0.1958, +0.0853, -0.1470, +0.1513, -0.2316, +0.2884, -0.4537, -0.3710, -0.0103, +0.2550, -0.1489, -0.2394, -0.2326, +0.0281, -0.1502, +0.0989, +0.2860, -0.1225, -0.4216, +0.3528, -0.2252, +0.0390, -0.5138, -0.2122, -0.0263, +0.1364, -0.4858, +0.3086, +0.1359, +0.3356, -0.6935, -0.6898, +0.2928, -0.2900, +0.4967, +0.1789, +0.0129, -0.0865, +0.1469, +0.1938, +0.3798, +0.1427, -0.3017, +0.5246, -0.0486, -0.5537, -0.0919, -0.1737, +0.0380, -0.0290, -0.3807, -0.6776, -0.2915, -0.0784, -0.2607, +0.0507, -0.0996, -0.0567, +0.3834, -0.0326, +0.1360, +0.0460, -0.1078, +0.4804, +0.2062, +0.3488, -0.1236, +0.3503, +0.0557, -0.0188, +0.2796, -0.0616, -0.0295, -0.3695, +0.1613, -0.2866, +0.3682, -0.1529, -0.0211, -0.8208, -0.5679, +0.3730, +0.2508, -0.0373, -0.5967, +0.2355, -0.0826, -0.1477, -0.4036, +0.0439, +0.3214, -0.0763, +0.1182, -0.1230, -0.0080, +0.0365, -0.3488], +[ +0.1278, +0.3544, -0.0588, -0.9237, +0.1073, +0.2965, +0.5606, +0.1852, -0.4272, -0.6675, -0.2859, -0.7539, +0.0184, +0.0534, -0.8694, -0.1548, +0.2093, +0.0162, -0.2391, -0.3411, +0.2604, -1.3084, +0.3698, -0.0768, -0.0322, +0.0754, -0.0044, +0.1771, -0.1628, +0.4309, +0.0774, -0.0721, -0.2629, -0.0708, -0.3502, -0.0600, +0.1463, -0.5095, -1.0829, -0.9172, +0.2253, +0.1346, -0.1799, -0.0397, -0.1397, +0.0269, -0.2786, +0.1675, -0.3110, +0.0059, +0.3807, +0.1454, +0.0373, -0.0626, -0.0482, +0.3647, -0.1477, +0.4116, +0.1811, -0.3096, +0.1492, -0.0770, -0.1550, +0.3186, -0.5793, -0.0217, +0.1216, +0.0893, -1.0605, -0.0276, -0.3422, +0.0822, -0.4680, +0.2439, -0.3746, +0.0006, -0.2558, +0.1921, -0.0572, -0.0718, -0.5186, +0.0136, -0.7412, -0.2912, -0.1026, -0.3082, -0.0322, -0.1574, +0.0616, +0.1399, -0.5695, -0.5556, -0.1188, +0.0646, -0.4050, +0.3945, +0.4077, +0.1311, -0.8293, -0.0814, -0.7487, +0.0789, +0.2741, +0.1798, +0.1800, +0.0221, +0.2849, +0.1241, +0.0981, -0.0291, +0.0349, -0.2348, -1.1890, +0.2165, -0.2498, +0.3480, -0.1510, -0.0254, +0.4350, -0.2413, -0.2154, +0.1620, +0.3549, +0.1094, +0.3039, -0.1670, -0.5215, +0.2193], +[ -0.5056, -0.2717, -0.0887, +0.1180, +0.2221, -0.0533, +0.3635, +0.0107, -0.0155, -0.3851, -0.0780, +0.4512, -0.0052, -0.2470, -0.0436, -0.3644, +0.2348, -0.3132, -0.1388, -0.3696, -0.2221, -0.1212, -0.1152, +0.1401, +0.2334, -0.2287, -0.0463, +0.0870, -0.1798, +0.0395, -0.8861, -0.8117, +0.0519, -0.0148, -0.1086, +0.2235, -0.2144, -0.2035, +0.3049, +0.2782, -0.0790, -0.3271, +0.1502, +0.0752, +0.1874, -0.2961, -0.1831, -0.1052, -0.1899, -0.1599, -0.2232, -0.0929, +0.1634, +0.2954, +0.1783, +0.1850, +0.0323, +0.1821, -0.1331, -0.0664, +0.2822, -0.3062, -0.2497, -1.2594, -0.3746, +0.1056, +0.2596, +0.0462, +0.2250, -0.5202, -0.2983, -0.3262, -0.2862, -0.4389, +0.1809, +0.1076, +0.2707, +0.4548, -0.0305, -0.0603, +0.0805, -0.3495, -0.3292, -0.4320, +0.2417, +0.1606, +0.3576, -0.0476, -0.3210, +0.1739, +0.3417, -0.2769, -0.1329, +0.6614, +0.1064, -0.5903, +0.3824, -0.0035, -0.1594, -1.0897, +0.1392, -0.0113, -0.0069, +0.3172, +0.1027, -0.1457, -1.0550, +0.2104, -0.8771, +0.1007, -0.3465, +0.3272, +0.0404, +0.0174, +0.3485, -0.2760, +0.0764, -0.0402, +0.1597, +0.4512, +0.4985, -0.8222, -0.5071, +0.0934, -0.1479, -0.6469, -0.1912, +0.2672], +[ +0.5416, -0.0218, -0.0531, +0.0453, +0.1252, -0.1311, +0.2916, -0.0341, +0.3304, +0.0958, +0.0507, -0.2015, -0.2878, -0.5418, -0.0068, +0.0552, +0.0864, +0.4119, +0.0150, -0.0622, +0.0781, -0.4440, -0.5189, +0.0631, +0.0681, -0.0632, -0.1314, -0.0119, -0.0225, -0.1634, -0.3359, +0.1974, -0.2654, -0.1948, -0.0087, +0.0303, +0.4607, +0.1021, +0.0181, -0.0214, +0.1044, +0.0861, +0.3070, -0.2432, +0.1628, +0.0187, -0.9277, +0.1928, -0.6063, +0.3662, -0.1792, -0.0239, -0.0632, -0.6483, +0.3550, -0.1499, -0.0971, +0.2099, +0.2688, -0.0530, +0.1171, +0.5035, -0.8688, -0.3405, -0.2476, +0.4547, -0.4105, -0.1177, -0.3137, +0.1011, +0.0825, -0.3973, +0.1754, +0.2616, -0.1194, -0.0725, -0.2332, -0.5832, -0.1741, -0.4962, +0.1793, -0.3603, +0.5548, -0.2168, -0.4409, +0.2611, -0.1732, -0.2258, +0.4478, +0.2887, -0.6937, +0.4469, -0.1434, +0.2411, -0.0069, -0.8774, -0.2686, -0.0973, +0.1061, -0.0011, -0.0416, -0.2424, +0.1575, +0.1909, -0.6973, -0.0013, -0.0070, -0.2964, +0.1380, +0.5137, -0.0704, -0.2486, -0.1062, +0.1285, -0.3033, +0.0060, -0.1700, -0.0587, +0.1942, +0.3036, +0.2824, -0.8177, -0.6379, +0.4813, +0.0342, -0.1333, +0.0801, +0.4477], +[ -0.0211, +0.2675, +0.3353, -0.3372, -0.1233, +0.2106, +0.0731, -0.1431, -0.1459, +0.2807, -0.2799, -0.2038, -0.1239, -0.4392, +0.2931, +0.4137, -0.2620, -0.1753, +0.4271, -0.1496, -0.3291, +0.3312, +0.1065, +0.1967, +0.3853, -0.0131, +0.3213, -0.1285, -0.6470, -0.2297, -0.1128, +0.3138, -0.2046, -0.0544, +0.2242, -0.1240, +0.2349, -0.4463, -0.3117, -0.1976, -0.5940, +0.5098, +0.0314, +0.1411, -0.1443, -1.3227, -0.0915, +0.0622, +0.3047, -0.6741, -0.0068, +0.1571, +0.0197, +0.3689, +0.2350, -0.7219, -0.3110, -0.3136, +0.1014, +0.1670, -0.0109, -0.1335, -0.1780, +0.2741, -0.5067, -0.0343, -0.2735, -0.1306, +0.0644, -0.0421, -0.3508, -0.0239, -0.0895, +0.7201, -0.4332, -0.2279, +0.3636, +0.4006, +0.0258, +0.0039, +0.0240, +0.0969, +0.1108, -0.3942, -0.0191, -0.0833, -0.0460, -0.0104, -0.3314, -0.3009, -0.2580, -0.0891, -0.4601, +0.0273, -0.6587, +0.0187, +0.1647, +0.2728, -0.3057, -0.6602, +0.2252, +0.0499, +0.0645, -0.3887, +0.0085, +0.2773, -0.2943, +0.0106, -0.1876, +0.1680, +0.4481, -0.6070, -0.3804, +0.0686, -0.1384, +0.0941, -0.2830, -0.3419, +0.5389, +0.0071, +0.0309, +0.3877, -0.2346, -0.2765, +0.3154, +0.5432, +0.1597, -0.0707], +[ -0.3307, +0.0719, -0.4069, -0.4818, -0.0336, +0.2526, +0.0127, +0.1715, +0.1634, -0.1317, -0.0556, -0.6635, +0.0385, -0.1778, -0.6021, +0.0995, -0.3965, +0.5307, +0.2085, +0.0421, -0.2732, -0.4179, -0.3875, -0.2914, +0.0900, +0.1833, +0.2219, -0.4152, +0.4455, -0.3731, -0.2920, -0.0412, +0.0676, -0.4575, -0.5457, -0.3103, -0.1316, -0.6066, -0.0151, -0.2290, -0.5575, +0.4713, +0.0446, +0.1031, -0.0860, +0.1306, -0.5180, -0.0828, -0.0814, -0.0137, -1.1862, -0.0610, -0.0665, -0.4811, +0.0875, -0.1226, -0.1726, +0.1026, +0.2877, -0.2522, -0.8006, +0.0242, -0.6489, -0.1083, +0.1570, -0.0922, -0.5692, +0.2164, -0.0050, +0.0594, +0.3049, -0.1859, -0.8103, -0.2647, -0.1506, -0.3981, -0.0826, +0.2345, +0.3153, -0.3429, +0.0491, -0.1324, -0.2087, -0.0861, -0.8154, -0.0180, +0.2558, -0.2299, +0.0994, +0.0263, -0.8396, +0.1073, +0.1554, -0.3760, +0.0870, -0.0737, -0.3097, -0.1488, -0.0324, -0.2025, +0.3044, +0.1957, -0.0953, -0.1347, -0.6328, +0.0435, -0.3573, -0.6667, -0.0919, -1.0430, -0.0192, -0.1639, +0.4036, -0.1974, -0.5038, -0.0258, +0.2064, +0.2843, +0.0147, -0.0562, -0.1918, -0.3606, -0.4848, -0.1829, -0.3000, +0.0925, -0.2469, -0.0005], +[ -0.1075, +0.0796, -0.0946, -0.4344, +0.2005, -0.1093, -0.0906, -0.3207, -0.2558, -0.0439, +0.5002, -0.5107, -0.3569, -0.2400, -0.9696, +0.1216, +0.1939, -0.0901, +0.0303, -0.5634, -0.0879, -0.0478, -0.6500, -0.1287, -0.0194, -0.4115, +0.1487, -0.3913, +0.2391, +0.2528, +0.1589, +0.1568, -0.2328, -0.3401, -0.3910, -0.4641, -0.3274, -0.2689, -0.5790, -0.2490, -0.3726, +0.1373, -0.3168, +0.1565, +0.0834, -0.1442, +0.0261, +0.0699, -0.5031, +0.1383, -0.3060, +0.0458, -0.1907, -0.1535, -0.0182, -0.2781, -0.0593, -0.3813, +0.2376, +0.0838, +0.0307, +0.1134, +0.0186, +0.0102, +0.0446, -0.0612, +0.2964, +0.0673, +0.4004, -0.1744, +0.2707, -0.0061, +0.3257, -0.8955, -0.0757, -0.6494, -0.1417, -0.2841, +0.1827, +0.0669, -0.2435, +0.0048, -0.3185, -0.2073, +0.2819, +0.0463, -0.2587, +0.1456, -0.1462, -0.1835, -0.3942, +0.1628, +0.4768, -0.3747, +0.0178, +0.1807, -0.1081, +0.0570, -0.1036, +0.3498, -0.3699, +0.1021, -0.5282, -1.1311, -0.1090, +0.3226, -0.4719, -0.1089, -0.4208, +0.4415, -0.5734, -0.4619, +0.3115, +0.3256, +0.1768, -0.3252, -0.7296, +0.6043, -0.3889, +0.1948, -0.1121, -0.3825, -0.3001, +0.0001, -0.3872, -0.0690, +0.2413, +0.2725], +[ -0.1956, +0.4824, +0.0299, +0.0923, -0.1255, -0.0784, +0.1399, -0.0119, +0.2045, +0.1789, -0.0844, +0.0612, +0.0869, -0.1022, +0.1522, +0.1175, -0.3761, -0.8891, +0.1135, -0.1164, -0.0650, -0.4960, -0.0575, +0.3796, -0.4186, +0.5628, -0.0502, -0.2575, -1.6787, -0.1565, -0.3031, +0.2404, -1.0437, -0.0959, -0.1703, +0.1407, +0.1496, +0.1953, -0.0319, +0.3103, +0.1761, +0.0003, -0.5419, -0.6587, +0.0537, +0.2545, -0.3464, +0.0076, -0.1283, -0.4792, +0.1090, -0.2502, +0.0810, +0.5328, -0.2368, -0.2101, -0.0410, -0.0465, -0.0782, -0.0789, -0.1115, +0.0534, -0.0064, -1.3387, +0.2155, -0.0807, -0.3716, -0.1701, +0.0104, +0.0665, -0.0696, -0.6764, -0.0896, +0.1293, +0.2936, -0.2979, +0.1135, +0.1420, +0.2191, +0.0649, -1.5397, +0.0106, -0.0295, +0.0041, +0.1493, +0.2680, -0.1745, +0.0864, +0.0223, +0.1098, +0.1272, +0.1090, -0.3073, +0.0846, -0.1849, +0.2400, +0.0479, -0.1117, -0.3259, +0.2560, -0.8979, -0.2436, -0.2723, +0.0895, +0.2896, +0.5229, +0.3580, +0.2622, +0.1865, -0.0928, -0.1333, -0.0331, -0.2025, +0.0284, +0.0933, -0.4256, +0.1458, -0.0047, +0.2814, -0.5681, -0.1660, -0.0740, -0.3705, -0.1294, -0.2887, -0.1671, -0.3191, +0.0041], +[ -0.0429, -0.2979, -0.8061, +0.0274, +0.1359, -0.0807, +0.2634, -0.1513, -0.1274, -0.0166, -0.2593, -0.0043, -0.3913, -0.4622, -1.0735, -0.2252, -0.3954, -0.2352, +0.1754, -0.3066, -0.5369, -0.2073, -0.0621, -0.2404, +0.1481, +0.1076, -0.2903, +0.0644, +0.3461, -0.8494, -0.2225, -0.4445, +0.0074, +0.1606, -0.2494, +0.1894, -0.4898, +0.2003, -0.8726, +0.1727, +0.4279, +0.0250, -0.2323, -0.4568, -0.9386, +0.4602, -0.0544, -0.6053, -0.3673, -0.2031, -0.2869, -0.0142, -0.1154, -0.0311, +0.3106, -0.1357, -0.0287, -0.6635, +0.0821, -0.7078, -0.8762, -0.4313, -1.1641, +0.1237, -0.2846, -0.7949, -0.8328, +0.1506, +0.3018, -0.0569, +0.3055, -0.2692, -0.8944, -0.6283, +0.0082, +0.1982, +0.2366, -0.2263, +0.1205, -0.3662, -0.0564, -0.8527, -0.0458, -0.2136, -0.8190, +0.3705, +0.1591, +0.0972, +0.1972, +0.1188, +0.1552, -0.0021, -0.3104, -0.0915, +0.0861, -0.0970, -0.1669, -0.2250, +0.1361, -0.2040, -0.1728, +0.0874, -0.4176, -0.0232, +0.2895, -0.3241, -0.2774, -0.6778, +0.0860, -0.1810, -0.2635, -0.3905, +0.2894, -0.5524, -0.5900, +0.0042, -0.1872, +0.0342, -0.1982, -0.3431, -0.2942, -0.1713, -0.3947, -0.0634, -0.2148, -0.3236, -0.6599, -0.4746], +[ +0.1139, +0.0650, -0.2456, -0.1315, +0.1407, +0.0788, -0.1801, +0.4116, +0.0631, +0.3614, +0.1779, +0.2011, +0.1047, +0.1695, +0.0276, -0.1528, -0.1153, -0.3329, +0.1846, -0.2067, -0.1040, -0.3134, -0.0784, -0.0427, +0.2053, +0.1852, -0.2523, +0.0244, -0.1028, -0.4057, -0.4726, -0.4021, +0.1813, -0.1851, +0.1457, -0.4243, +0.2401, -0.1664, +0.4241, +0.1109, +0.0009, +0.4179, -0.0435, +0.0391, -0.1372, +0.1172, -0.4394, +0.2111, -0.4688, +0.0953, -0.8070, -0.0438, -0.1590, -0.5387, -0.0352, +0.1419, +0.3123, +0.4866, -0.3642, -0.1444, +0.2279, +0.1875, +0.2849, -0.0600, +0.4420, +0.3253, -0.2210, +0.0820, +0.0518, +0.2397, -0.6165, +0.2275, -0.0655, -0.5054, +0.1406, +0.0747, -0.2759, +0.2004, +0.2437, -0.9419, +0.1028, +0.0414, +0.1167, +0.0623, +0.2964, -0.1441, -0.2434, -0.0737, -0.0669, +0.4142, -0.3767, -0.4335, -0.2037, -0.4858, +0.1892, -0.0506, +0.1072, +0.0308, -0.0045, +0.1688, +0.0354, -0.1328, -0.0729, +0.1582, -0.7064, -0.2073, +0.1505, +0.1551, -0.4480, +0.3366, -0.0612, -0.4353, +0.0585, +0.0633, -0.0932, -0.0445, +0.0806, +0.1299, -0.0159, +0.3052, +0.2307, -0.1101, -0.0202, +0.0697, -0.5824, -0.0746, +0.4108, -0.0447], +[ +0.0791, +0.1980, -0.7039, +0.0263, +0.2395, +0.6237, +0.2502, -0.5161, +0.2494, -0.2117, +0.1475, +0.0525, -0.4173, -0.3249, +0.2539, -0.1223, -0.0348, -0.2279, +0.2262, +0.0258, -0.3077, +0.2887, +0.3885, +0.1906, +0.2463, +0.3811, -0.6282, +0.0522, +0.5306, -0.4458, -0.1445, -0.3747, -0.0662, +0.2248, -0.1537, -0.2953, +0.0561, -0.2883, -0.5619, +0.0355, -0.2044, +0.1899, -0.0981, -0.2455, +0.0141, +0.0599, -0.0083, +0.0112, -0.2022, -0.2484, -0.4551, -0.3796, +0.0054, +0.0155, -0.1069, -0.0031, -0.4725, +0.2876, +0.0632, -0.6091, +0.0202, +0.0060, +0.4156, -0.3036, -0.0778, +0.2482, -0.8074, +0.2175, -0.2130, +0.2723, +0.1917, -0.1859, +0.3197, -0.1314, -0.1503, +0.1386, +0.1615, -0.5322, -0.4531, -0.2186, -0.0994, -0.4077, +0.4061, -0.0434, -0.2415, -0.6183, -0.0757, -0.2556, -0.2224, +0.0449, +0.4767, -0.0516, -0.1578, -0.5435, -0.3362, +0.5258, -0.0355, -0.0297, +0.3339, +0.0571, -0.1741, +0.4465, +0.2506, -0.6265, -0.4877, +0.2635, -0.1913, -0.0469, +0.2758, -0.1095, +0.1190, -0.0785, +0.0585, +0.3044, -0.4372, -0.4773, -0.4492, +0.2806, -0.5223, +0.4161, -0.3399, +0.0181, +0.0459, +0.0355, -0.2409, +0.3043, -0.5086, -0.3526], +[ +0.3889, -0.1236, +0.3455, +0.0586, +0.1031, -0.0423, +0.2450, +0.3118, -0.0065, -0.2184, -0.1482, -0.3720, +0.2949, +0.2279, -0.0590, -0.1256, +0.0081, -0.0231, -0.0424, -0.0446, -0.0472, -0.0739, +0.0330, +0.2615, +0.0390, +0.0315, -0.8050, -0.0950, -0.0147, -0.0005, -0.4977, +0.1281, -0.4847, -0.0590, +0.2566, +0.0080, +0.3070, +0.0687, -0.3527, -0.0516, -0.0147, -0.1813, +0.3453, -0.0237, +0.1650, -0.5538, -0.2602, -0.4506, +0.0339, -0.2247, +0.0678, +0.3342, -0.1982, -0.0218, +0.1906, +0.1715, +0.0353, -0.0505, +0.3488, +0.1096, +0.1575, -0.1131, -0.0731, +0.0549, +0.2869, +0.0115, +0.5333, -0.3713, -0.3464, +0.1477, -0.0973, -0.5280, +0.0714, +0.2884, +0.1430, +0.1944, +0.2250, +0.2365, +0.3119, +0.0493, -0.2922, +0.2082, -0.2683, -0.2334, -0.0036, -0.1826, +0.0553, +0.0514, +0.0699, +0.4359, -0.0839, -0.1283, -0.5059, +0.0360, +0.4593, -0.2900, +0.3191, -0.0913, -0.0334, -0.0426, -0.2070, -0.0938, +0.1743, -0.0897, +0.0871, +0.0905, -0.4720, -0.0107, +0.3723, -0.0417, -0.1012, -0.0172, -0.3901, -0.3876, +0.1151, +0.0425, -0.3587, +0.0249, +0.0674, -0.2577, +0.1353, -0.1724, +0.1267, -0.2325, +0.0940, +0.4211, +0.2862, -0.4374], +[ -0.3170, +0.3755, -0.0338, -0.6477, -0.1268, +0.4264, -0.2412, -0.3584, -0.4816, -0.0234, -0.4274, -0.0597, +0.4883, -0.4695, -0.0844, +0.2464, -0.1324, -0.1116, +0.3023, +0.2658, +0.1502, +0.0145, -0.1165, +0.0199, +0.0481, +0.2250, +0.2717, +0.0514, -0.5709, -0.8578, -0.5535, -0.1945, -0.1825, -1.0669, -0.0163, +0.2724, -0.1275, +0.4192, -0.0253, -0.0427, -0.1992, +0.2067, +0.3362, +0.0737, -0.8661, -0.2856, -0.2030, +0.0765, -0.1862, -0.7112, +0.0424, +0.3103, -0.0769, +0.2623, +0.1757, +0.0937, +0.2951, +0.0081, -0.2650, +0.4250, -0.0401, +0.0961, +0.4578, -0.1580, +0.2566, -0.1072, +0.0640, -0.2257, +0.1407, -0.2923, -0.0112, -0.3022, -0.2181, -1.1515, +0.5188, +0.1174, +0.2920, -0.1971, +0.0040, +0.0855, -1.0107, -0.2752, -0.3839, -0.2948, -0.0194, +0.2019, -0.4102, -0.3485, -0.4294, +0.1244, -0.0475, +0.0760, -0.0122, +0.0635, -0.4242, +0.1172, -0.1831, +0.2975, -0.0734, +0.0206, -0.6166, +1.0285, -0.8004, +0.2025, -0.3087, +0.0608, -0.0776, +0.4676, -0.6982, +0.0874, +0.3236, -0.1107, -0.2018, +0.0993, -0.1123, +0.5077, -0.2170, -0.8204, -0.2160, -0.1872, +0.6235, +0.2099, +0.0830, +0.5081, -0.3071, -0.3446, -0.2227, -0.3825], +[ -0.1874, -0.1186, -0.6802, +0.0035, +0.1394, -0.3427, +0.1561, -0.0044, -0.4163, -0.6432, +0.0009, +0.0743, +0.0019, +0.3348, -0.1833, +0.0599, -0.0237, -0.8147, -0.5931, +0.0681, +0.3820, -0.4131, -0.5803, +0.5772, -0.1047, -0.1667, -0.0174, -0.4283, -0.0115, -0.2094, +0.3176, -0.4656, +0.1398, -0.2553, +0.3680, -0.2766, -0.0749, +0.3381, +0.6150, -0.5616, +0.5847, -0.2923, -0.0928, +0.2362, -0.4309, +0.2479, +0.3509, +0.0306, -0.0601, -0.0772, -0.4807, -0.0940, +0.0597, +0.2288, -0.2230, -0.1378, -0.0027, +0.1361, +0.1256, -0.0968, -0.4223, -0.1213, -0.0766, -0.3987, +0.4523, +0.1027, +0.0623, +0.1629, +0.0932, -0.1068, -0.0629, -0.2282, -0.1594, -0.2082, -0.4811, +0.2055, +0.3540, +0.0748, +0.1092, -0.3655, -0.1293, +0.5093, +0.2215, -0.3072, +0.2241, -0.0072, -0.2497, -1.0213, +0.1769, -0.1960, -0.5724, -0.1859, +0.2190, -0.4151, +0.4209, -0.1399, -0.2326, +0.1927, +0.1507, -0.3548, -0.2342, +0.3334, -0.4695, -0.0160, +0.0182, -0.0142, +0.0374, -0.4114, -0.7137, -0.0206, -0.9733, -0.2071, +0.1435, +0.0653, -0.2332, -0.5594, -0.0698, +0.1158, +0.3619, +0.0128, -0.1712, +0.5550, -0.0249, -0.2328, -1.0144, +0.0697, +0.2297, -0.0154], +[ +0.1416, +0.2309, +0.1272, +0.3941, -0.1264, +0.0519, +0.0873, +0.1319, +0.2100, +0.5420, +0.0346, +0.1919, -0.0527, +0.2655, -0.0654, +0.0043, +0.3115, +0.4582, +0.3955, +0.0363, -0.3897, +0.2471, -0.1910, -0.3071, +0.0255, +0.1280, -0.0897, +0.4849, +0.1039, -0.2925, -0.0640, +0.1888, +0.1011, -0.2415, +0.3240, -0.7261, +0.4590, -0.3333, +0.2433, +0.1094, -0.1727, -0.0460, -0.2958, -0.1053, -0.0891, -0.0464, +0.0229, -0.1550, -0.2716, +0.0343, +0.0671, +0.0667, -0.4367, +0.2242, +0.0838, +0.1480, -0.1503, +0.1468, -0.0787, +0.1684, +0.5497, +0.3268, +0.0520, -0.3957, +0.3271, +0.0407, -0.0103, -0.6582, -0.4209, +0.2281, +0.2063, +0.1261, -0.0853, +0.1172, +0.2424, +0.2464, -0.3707, +0.2101, +0.1751, +0.1536, -0.3106, -0.2551, -0.3719, -0.4328, -0.5526, +0.3865, -0.0679, +0.4122, +0.0144, +0.5162, +0.3118, -0.0527, -0.5021, -0.0328, -0.0653, +0.2858, +0.3345, -0.1361, +0.2132, +0.0117, +0.1889, -0.1802, -0.0858, +0.2928, -0.3164, +0.0148, -0.3775, -0.1734, +0.0018, +0.2143, +0.2750, -0.4583, -0.3690, +0.0197, -0.0628, -0.0013, -0.3150, -0.0254, +0.1141, +0.1115, -0.0689, +0.2310, -0.3745, -0.1398, -0.5079, +0.0076, +0.1439, -0.2340], +[ -0.0705, +0.2175, -0.3332, -0.1569, -0.1880, -0.0037, +0.1646, +0.1630, -0.6191, -0.8408, -0.3053, -0.1745, +0.0026, +0.4307, -0.4499, -0.1112, -0.0265, +0.2433, -0.0564, +0.2633, -0.2392, -0.0076, -0.3069, -0.4411, +0.1402, -0.6455, +0.3210, +0.0260, -0.3119, +0.5672, -0.0835, -0.5722, -0.6016, +0.1153, +0.1611, -0.7369, -1.3666, +0.0773, -0.0642, -1.0518, +0.0271, +0.1978, -0.2372, +0.6399, +0.0095, -0.1786, -0.8306, +0.1600, +0.0155, -0.0362, -0.3337, -0.6398, -0.5897, -0.0730, +0.2387, -0.2654, +0.2886, -0.0430, -0.1995, +0.8904, +0.4374, -0.5649, -0.1457, +0.4233, +0.5757, -0.1515, -0.6817, +0.2119, -1.2438, +0.0547, -0.8169, -0.2639, +0.0272, -0.0893, +0.2654, -0.0196, +0.2261, -0.5399, +0.5351, -0.0945, -0.2289, -0.8261, +0.4079, +0.3965, -0.3613, -0.3296, -0.1655, -0.3622, +0.4279, -0.0974, -0.6180, -0.2898, +0.2287, -1.0311, +0.5108, -0.5468, -0.5000, -0.0666, +0.6999, +0.0559, +0.0413, -0.5421, -0.3508, +0.6266, -0.4022, -0.8094, -0.6987, -0.0470, -0.2295, -0.0360, +0.0580, -0.6328, -0.5165, -0.6991, -0.1251, -0.3032, -0.8044, -0.0751, +0.1579, +0.2006, +0.4040, -0.0811, +0.3109, -0.0211, -0.1546, +0.1875, -0.0905, +0.0186], +[ -0.1124, -0.0259, -1.0389, -0.2415, -0.1909, -0.0094, +0.1439, -0.2701, -0.2011, +0.1145, +0.1781, +0.0553, -0.2120, -0.2954, +0.3016, -0.0922, -0.3145, +0.2040, +0.0703, -0.2844, -0.0642, +0.4545, +0.0644, -0.1845, -0.0994, -0.8798, -0.1192, -0.5188, +0.0076, -0.2705, +0.1672, +0.4707, -0.0896, +0.3602, -0.4464, -0.1122, +0.1324, -0.1451, +0.1014, +0.0307, -0.9547, +0.0565, -0.1124, -1.5838, +0.0327, -1.1211, -0.2453, +0.1526, -0.2564, -0.0585, +0.2328, +0.0004, +0.0644, +0.4235, +0.3800, -0.0384, +0.0893, +0.0122, -0.4679, -0.2261, -0.4993, +0.4685, -0.0971, -0.1161, -0.1099, -0.1286, -0.3552, -0.5843, +0.0891, -0.7263, -0.2820, -0.0843, -0.2338, +0.0958, -0.4697, -0.1636, +0.2075, -0.1443, -0.0772, +0.1051, -0.6447, -0.6946, -0.6446, +0.1869, -0.0377, +0.2761, +0.2183, -0.2731, +0.4264, -0.0304, -0.3574, -0.1569, +0.0530, -0.2232, +0.5197, -0.2320, +0.1347, +0.2012, +0.4305, +0.5680, +0.0232, +0.0364, -0.0573, -0.0205, +0.2564, +0.1661, -0.2184, -0.0759, -0.1445, -0.0086, -0.0486, -0.3832, -0.5249, +0.3752, -0.1400, -0.4232, -0.5390, +0.1935, -0.4422, +0.5784, +0.2731, -0.1560, -0.2261, -0.1864, -0.3307, -0.4695, +0.1852, -0.3265], +[ -0.6703, +0.0926, -0.5231, -0.0533, -0.1457, -0.4545, +0.1801, +0.3127, -0.2343, +0.3361, +0.3834, -0.7315, +0.0778, -0.3351, +0.4405, -0.4576, -0.5709, +0.2803, +0.0452, +0.0133, -0.2356, -0.6245, -0.0676, -0.2523, +0.0208, -0.5238, -0.9113, -0.2605, -0.4297, -0.5623, +0.4107, -0.0113, +0.1714, -0.4200, -0.5485, -0.0135, -0.5424, -0.9021, +0.4813, -0.0478, -0.0835, +0.2108, +0.1599, -0.2998, -0.1875, -0.1832, +0.2381, -0.3613, +0.0165, +0.2614, -0.0388, +0.0995, +0.0900, -0.3565, -0.0507, -0.4172, -0.4961, -0.0002, -0.2006, +0.3034, +0.1398, +0.3606, +0.1704, +0.0951, -0.8070, -0.0367, -0.2107, +0.3901, -0.2230, -0.1858, +0.0469, +0.3347, -1.5453, +0.0425, +0.3040, +0.7134, -0.7763, -0.1766, -0.3002, -0.5227, +0.0830, -0.1727, -0.4539, -0.1433, -0.0327, +0.4274, +0.6077, -0.0714, -0.0844, -0.1670, -0.1059, -0.1060, +0.2655, +0.3415, -0.0698, +0.0529, -0.6991, -0.0675, +0.2832, -1.2297, +0.1104, -0.1522, -0.0114, +0.0321, -0.8254, +0.2382, -0.1540, -0.4243, -0.5772, +0.2560, +0.0717, +0.5933, +0.1687, +0.5182, -0.2102, +0.0605, -0.0974, -0.6947, -0.5887, -0.1060, +0.1320, -0.5905, -0.0760, +0.1181, +0.3569, -1.1210, -0.1727, -0.3395], +[ -0.1772, +0.3237, -0.4493, -0.3765, -0.0837, -0.1910, +0.0285, +0.0285, -0.0667, -0.3530, -0.4776, +0.1161, +0.1717, +0.0996, -0.2512, +0.1541, +0.1372, -0.4701, +0.3240, +0.2725, +0.3984, +0.2341, -0.1772, -0.0638, -0.9732, -0.2302, +0.1441, +0.2924, -0.0501, -0.1822, +0.2711, -0.4964, -0.2970, -0.0056, -0.3456, -0.2073, +0.2572, +0.1298, -1.3292, +0.1337, +0.3027, +0.1671, +0.4342, -0.2896, +0.1945, -0.0109, -0.0791, +0.4136, -0.3764, +0.1054, -0.0079, -0.9551, +0.1080, +0.1019, +0.0474, -0.6121, +0.0449, +0.0598, -1.1097, +0.0250, -0.1256, -0.1458, -0.2722, +0.1970, +0.0081, +0.0660, -0.1319, +0.2402, +0.1193, -0.2687, +0.1651, -0.0789, -0.0503, +0.1427, +0.1901, -0.4159, -0.1638, +0.0628, -0.3589, -0.0816, +0.2290, +0.0615, -0.0529, +0.5482, -0.2030, -0.1866, -0.1962, +0.1167, -0.0306, -0.0570, -0.5030, +0.2395, -0.0310, +0.1479, -0.4245, +0.1024, -0.1648, +0.0096, +0.4198, -0.0484, -0.4378, -0.1204, +0.0451, -0.1932, +0.1844, +0.0525, -0.2658, +0.2161, +0.0031, +0.0196, -0.4107, -0.0498, +0.0715, +0.0926, -0.4154, -0.8397, -0.0224, -0.0883, +0.0899, -0.2138, +0.3100, +0.0488, +0.1945, -0.2503, +0.1935, -0.2487, +0.1230, +0.1808], +[ +0.0978, +0.2190, -0.0593, -0.2084, +0.1471, +0.2789, +0.1923, +0.0510, -0.1054, +0.0873, -0.3996, -0.3414, -0.1372, +0.4061, +0.4627, -0.3202, -0.4714, -0.9601, -0.4819, -0.0822, +0.2082, +0.4049, -0.3494, -0.2458, +0.1077, +0.0142, +0.2404, -0.2345, -0.1056, -0.2140, -0.2043, -0.0387, +0.2045, +0.0874, -0.2327, -0.2445, -0.2904, -0.5968, -0.2412, -0.0058, -0.2166, -1.6990, +0.0953, -0.4337, +0.2621, +0.0671, +0.2875, +0.2830, -0.0937, -0.1816, -0.1853, -0.2221, -0.1232, -0.2037, -0.5923, -0.1751, -0.5312, +0.0452, +0.0293, -0.1305, -0.6181, +0.3799, +0.0910, +0.2810, -0.1294, -0.3590, -0.0479, +0.5384, +0.4292, +0.2362, +0.0533, +0.3635, +0.1747, -0.0539, +0.2116, +0.1162, -0.1256, -0.1487, +0.3834, -0.1898, -0.6399, +0.3572, -0.2274, -0.3151, -0.5312, +0.2602, +0.4891, +0.5756, +0.1359, +0.0022, -0.0719, +0.1784, -0.1273, -0.1417, +0.0633, -0.0857, -0.0686, -0.1350, +0.0348, +0.0844, -0.3420, +0.4479, +0.0563, +0.3900, -0.0671, -0.2740, -0.4127, +0.2551, -0.1971, -0.2538, -0.7251, +0.1549, -0.4616, +0.0078, -0.1966, -0.2291, +0.4462, -0.0231, +0.1826, -0.2767, +0.2035, +0.2113, +0.2010, -0.1224, +0.0935, +0.0749, +0.5143, -0.2320], +[ +0.4054, +0.2429, -0.0183, -0.0671, +0.0756, -0.3977, -0.0052, +0.3820, +0.1232, -0.6040, +0.1117, +0.1694, +0.0706, -0.0372, -0.3751, -0.1524, +0.1442, +0.2963, +0.3444, -0.1264, -0.2681, +0.2256, -0.1735, +0.1759, -0.1471, -0.0931, -0.1282, -0.0297, -0.4555, +0.1279, -0.3330, -0.0396, -0.2031, +0.0297, -0.2009, -0.4507, +0.1667, -0.0241, +0.0708, -0.0017, +0.4077, -0.4664, +0.1849, +0.2298, +0.0304, -0.1883, -0.1395, -0.4955, -0.3710, -0.1001, +0.2081, -0.1213, +0.1483, -0.0164, -0.0292, -0.2213, +0.0290, -0.1306, -0.7133, -0.2339, +0.0027, +0.3779, -0.1889, -0.4761, +0.0219, -0.3321, -0.0823, -0.3801, -0.4626, +0.0792, -0.1393, +0.0571, +0.2609, +0.5688, +0.1841, -0.1736, +0.4979, -0.2646, -0.1537, -0.0628, +0.4625, +0.1443, +0.0340, -0.2156, -0.1324, +0.1748, -0.0408, +0.2963, -0.0362, -0.0399, -0.2844, -0.1848, +0.0143, +0.2672, +0.0449, -0.0820, +0.2961, +0.0566, +0.1471, +0.0741, -0.1360, -0.3407, +0.1218, +0.2081, +0.3921, -0.1527, -0.3588, +0.1095, +0.5187, +0.1537, +0.3488, +0.1492, +0.1520, +0.0071, +0.0351, -0.4850, +0.0759, -0.1150, +0.1143, -0.2452, +0.1051, -0.3250, +0.3133, +0.1014, +0.4137, +0.0760, -0.0911, -0.1412], +[ +0.2362, +0.1948, -0.0234, -0.3180, -0.3947, -0.4324, +0.0409, +0.3256, +0.3289, +0.2192, +0.5133, -0.0905, -0.1503, -0.2234, -0.1854, -0.1960, +0.3640, +0.5452, -0.2586, -0.2272, -0.4349, -0.4656, -0.1711, -0.6232, -0.0941, -0.0505, -0.0344, +0.4293, +0.0385, +0.5727, +0.1007, +0.5269, -0.1729, -0.1460, +0.0340, +0.0289, -0.1339, -0.5340, -0.2329, +0.0951, -0.0265, +0.0880, -0.1202, -0.2510, +0.5979, -0.3229, +0.1184, +0.0523, -0.4103, -0.3743, -0.0977, -1.0859, -0.6775, +0.3640, -0.8403, +0.0808, +0.1736, -1.3813, -0.3318, -0.0426, +0.0144, -0.0157, +0.3430, -0.2677, -0.9526, -0.1665, -0.5873, +0.5943, -0.0056, +0.1360, -0.6386, -0.0068, -0.3385, +0.3513, -0.3315, +0.2062, -0.0138, -0.0954, +0.3514, -0.2501, -0.1372, +0.1850, +0.3187, +0.2417, -0.0165, -0.0188, -0.4274, -0.6362, -0.0069, -0.2832, +0.2678, +0.1463, -0.2544, +0.1819, -0.1543, +0.5009, -0.0178, -0.3187, +0.2966, +0.2476, +0.2248, +0.1764, -0.3332, -0.4743, -0.0223, -0.1946, +0.3361, +0.3132, -0.4011, -0.0480, -0.2854, +0.0791, +0.3655, -0.0550, -0.3133, -0.0224, +0.3137, +0.0587, -0.0012, -0.0146, -0.9586, -0.4508, -0.3847, +0.7080, -0.1266, -0.0618, +0.2187, +0.1620], +[ -0.2008, +0.1522, -0.5955, +0.6051, +0.1620, +0.0268, +0.1630, +0.2391, +0.0104, +0.1939, +0.0231, -0.2313, +0.0025, +0.1624, -0.3330, -1.0833, +0.0795, +0.4136, -0.1967, -0.1655, -0.4112, -0.5563, +0.0014, +0.2210, +0.0668, +0.0035, +0.0021, -0.3850, +0.0200, -0.1434, +0.2206, +0.4751, -0.2284, -0.3879, -0.4084, -0.3560, -0.4632, -0.4490, +0.4050, -0.1352, +0.6847, -0.1648, -0.0965, -0.1461, -0.4165, +0.1370, +0.1259, +0.4660, -0.2856, -0.2612, -0.0582, -0.3693, -0.1022, +0.2008, +0.0215, -0.0236, +0.1790, -0.6251, -0.2491, -0.3790, -0.3333, -0.4391, +0.3633, -0.2411, +0.1885, +0.4584, +0.0208, +0.1701, +0.1982, -0.0979, +0.4661, +0.0457, +0.1591, +0.1819, +0.0283, +0.4571, -0.5580, -0.1806, -0.3569, -1.1665, +0.0674, -0.2786, -0.2875, +0.4527, -1.1245, +0.3730, +0.1160, +0.1188, -0.2990, +0.0239, -0.6229, -0.2620, -0.3014, -0.4404, -0.0490, -0.3869, -0.6526, -0.5756, -0.8867, -0.7128, -0.0526, +0.0577, -0.3834, +0.0532, -0.0304, +0.0433, +0.1128, -0.6711, +0.4782, -0.0905, -0.5573, -0.4746, -0.2918, +0.4604, +0.6131, -0.1770, -0.2956, +0.3240, -0.4591, +0.0128, -1.1714, -0.1943, -0.0942, -0.0663, +0.0099, +0.3937, +0.0239, +0.2766], +[ +0.0170, +0.1780, -0.4973, -0.0716, -0.2169, +0.4612, -0.1626, -0.4549, +0.0101, -0.2997, -0.1466, -0.4529, +0.4533, -0.2593, -0.1703, -0.0386, -0.1084, +0.2293, +0.2698, +0.1456, +0.4082, +0.0162, -0.2304, -0.1280, -0.6106, +0.1895, +0.3912, +0.1475, +0.0724, -0.0967, -0.0013, -0.5470, +0.2986, -0.1856, +0.2783, -0.0052, -0.0829, +0.4755, -0.0281, -0.3022, -0.3180, -0.2155, -0.0571, -0.4241, +0.2273, -0.1250, -0.2180, -0.1371, +0.2904, -0.1918, +0.0821, -0.0508, +0.0111, +0.4068, -0.2078, -0.2357, +0.1265, -0.3957, -0.2841, -0.1312, +0.0499, -0.1635, +0.5007, -0.1800, -0.1760, -0.2792, +0.3352, +0.2681, +0.0224, +0.0703, +0.0863, +0.4539, +0.3918, -0.2057, -0.0448, +0.4148, -0.4861, +0.0167, -0.2710, +0.2207, -0.0376, +0.1143, -0.0410, +0.2689, +0.2591, -0.1383, +0.0083, -0.0713, +0.4651, -0.0582, -0.8496, -0.5416, -0.0562, +0.0845, +0.3523, +0.0582, -0.0935, -0.9280, +0.2553, -0.1722, -0.1497, -0.0048, +0.1228, -0.0553, -0.0358, -0.0211, -0.2331, -0.0881, +0.6748, +0.1664, -0.2651, -0.3012, +0.0718, +0.2363, -0.2371, +0.2396, +0.0795, +0.1391, +0.0848, -1.2251, -0.2978, -0.3685, -0.2829, -0.2450, +0.3609, +0.3417, +0.1501, +0.3238], +[ +0.0900, -0.2040, -0.3442, -0.0759, -0.0008, -0.1255, -0.4207, -0.1525, +0.0554, -0.0316, -0.0605, +0.0019, -0.1811, -0.4385, +0.2662, -0.0091, -0.2444, +0.4792, -0.1383, -0.0188, +0.0034, +0.0720, +0.0144, -0.0678, -0.1145, -0.3357, +0.0574, -0.0022, -0.2551, +0.2565, -0.2532, -0.5748, +0.0039, +0.2820, +0.0501, -0.2402, +0.2779, -0.3452, +0.0553, +0.2286, +0.1530, -0.2965, -0.0433, +0.2779, +0.2508, +0.2410, -0.4465, -0.3985, +0.3084, +0.3646, -0.1586, -0.2752, -0.1026, -0.1534, +0.0080, -0.1443, +0.0291, -0.0555, +0.4796, -0.3250, +0.0324, -1.3958, -0.1115, -0.4174, -0.8049, -0.1630, -0.0525, -0.1305, +0.0095, -0.0867, +0.6708, -0.0000, -0.0843, -0.0231, +0.0889, +0.3775, +0.0640, -0.2378, -0.5108, +0.5505, +0.2033, -0.0100, -0.6312, +0.2917, -0.0302, -0.6544, -0.0306, -0.1413, +0.0555, +0.0217, +0.0254, +0.1307, -0.3287, -0.2562, -0.5944, +0.1274, -0.2151, +0.1284, -0.1192, -0.0702, +0.0741, -0.4227, +0.3265, +0.4678, +0.3035, +0.0018, +0.3776, -0.1378, -0.1743, +0.3270, +0.2135, +0.1307, +0.3493, +0.0399, -0.0457, -0.2329, +0.0670, +0.1151, +0.1365, -0.0620, -0.2110, +0.3270, -0.0685, -0.1888, +0.2463, +0.0731, +0.2472, -0.1711], +[ -0.6258, +0.0343, -0.4289, -0.0230, +0.1648, -0.2181, -0.0405, +0.2619, -0.3522, +0.2752, -0.2303, -0.8017, +0.0875, -0.5309, -0.0828, +0.0963, -0.0591, -0.1077, -0.5009, +0.0188, -0.3606, +0.1645, -0.4699, -0.0852, -0.0179, +0.1350, -0.1510, -0.3459, -0.0844, -0.3181, +0.2630, -0.4920, +0.0747, +0.1878, +0.1468, -0.1660, +0.3766, -0.7024, -0.1669, -0.3311, -0.0016, -0.4786, -0.0991, -0.1425, -0.0974, -0.2058, -0.1966, +0.2934, -0.3269, -0.3688, +0.1155, -0.1031, -0.1258, -0.4646, +0.2674, +0.1911, +0.4869, -0.1837, -0.5085, -0.5208, -0.1521, -0.0067, -0.0239, -0.2621, -0.3033, -0.5556, +0.1006, -0.0904, -0.0944, +0.0145, +0.3106, +0.1368, -0.0789, +0.0792, +0.2908, +0.2396, +0.3105, -0.6561, +0.1680, -0.1279, -0.2308, -0.2565, +0.4570, +0.5447, -0.2268, +0.1352, -0.3080, -0.1836, +0.4647, -0.3035, +0.0227, -0.0715, -0.0236, -0.2222, +0.0024, +0.1746, +0.5088, -0.3626, +0.1088, -0.4604, -0.1205, -0.0737, +0.2408, -0.4081, -0.2848, -0.0930, +0.6972, -0.6394, -0.3911, +0.3077, +0.1641, -0.2980, +0.3526, +0.4996, +0.4259, -0.4143, -0.0722, -0.0489, -1.0649, +0.1243, -0.1063, -0.2763, -0.3938, +0.0349, -0.2978, -0.1311, -0.1644, -0.2178], +[ +0.2228, -0.1594, -0.1861, -0.4351, -0.3284, -0.3570, -0.1520, -0.3707, -0.2458, +0.1899, +0.1590, -0.4710, -0.3044, +0.2631, +0.4542, +0.5799, +0.1573, -0.0166, -0.3127, -0.2947, +0.2246, -0.2435, +0.3069, -0.2311, -0.5902, +0.4220, +0.2568, +0.1050, +0.0542, -0.3542, -0.2701, -0.0067, +0.1571, +0.0236, +0.0788, -0.3256, -0.4584, -0.2293, -0.2716, -0.0985, -0.3065, -0.1393, +0.3065, -0.2204, -0.2763, +0.5014, +0.5428, -0.3151, -0.0117, -0.5099, +0.5324, -0.0418, +0.1083, +0.2712, +0.1853, -0.0178, +0.1567, -0.8271, -0.0563, -0.0500, +0.1297, -0.0225, -0.3542, -0.0787, -0.1147, -0.0703, -0.3248, +0.2742, -0.0758, -0.5295, -0.8132, -0.0120, -0.2870, +0.3596, -0.4447, +0.1253, +0.3223, +0.0799, -0.2196, -0.1284, -0.3209, +0.6268, +0.3135, -0.3077, +0.5631, +0.0843, -0.1243, +0.3294, +0.2224, -0.3047, -0.3792, -0.5224, -0.0835, -0.0596, -0.4145, -0.4059, +0.2051, -0.5110, -0.2352, -0.1687, +0.3791, -1.1113, +0.0344, -0.5561, -0.0971, -0.1956, -0.9917, +0.0974, +0.4424, +0.2190, -0.5096, +0.1050, -0.1065, +0.1762, -0.2220, -0.3448, -0.0259, +0.0306, +0.3688, +0.0888, +0.5377, -0.0213, +0.0768, +0.1048, -0.2878, -0.1735, -0.0799, -0.3435], +[ -0.2558, -0.1894, -0.4240, -0.1683, +0.2696, -0.6537, -0.4097, -0.8188, +0.0788, -0.0674, +0.0466, -0.1045, -0.3688, +0.1775, +0.0076, +0.0276, -0.0015, -0.2355, -0.0081, +0.3447, +0.3784, -0.5474, +0.1801, -0.1660, +0.3446, +0.4288, +0.2730, -0.1667, +0.3351, +0.1431, +0.3574, -0.8036, +0.2580, -0.0009, -0.2548, +0.2669, -0.0010, +0.2673, -0.0481, +0.2498, -0.1628, +0.0913, +0.3274, +0.1052, -0.1022, +0.4280, -0.1549, -0.4395, +0.1083, +0.3907, -0.2138, +0.2467, -0.8071, +0.2845, +0.2277, +0.0958, +0.1499, +0.0426, -1.0645, +0.2627, -1.0988, +0.0073, -0.2371, -0.1110, -0.0370, +0.1322, +0.1908, -0.0820, -0.0871, -0.0927, -0.2126, -0.1933, -0.5629, -0.0014, -0.1545, +0.4580, -0.1378, +0.0316, -0.5284, +0.1727, -0.1004, -0.2099, +0.0290, +0.1137, +0.0408, -0.1891, -0.2607, -0.5103, -0.0073, -0.3733, -0.2262, -0.5160, +0.2817, -0.1558, +0.0888, +0.3333, +0.6985, -0.2266, -0.3598, +0.1534, +0.2226, +0.2616, -1.3961, +0.2103, +0.2918, +0.1863, -0.1366, -0.0886, +0.0040, -0.1006, -0.2855, -0.3092, +0.0798, +0.0321, -0.0850, +0.1356, +0.1690, -0.0924, +0.1542, -0.1020, -0.4774, -0.2607, -0.0833, -0.1287, +0.0672, +0.2268, -0.1807, -0.0932], +[ -0.2405, -0.3201, +0.7086, -0.1859, -0.1761, -0.2028, -0.2184, -0.1675, -0.1567, +0.0830, -0.6260, -0.0593, -0.4650, +0.2506, -0.0680, +0.4262, -0.2814, -0.5134, +0.0255, +0.1273, -0.2961, +0.1498, -0.3338, +0.0174, -0.2212, +0.3174, -0.1205, +0.4797, +0.0533, -0.0115, +0.2920, +0.2266, -0.1898, +0.1149, -0.1576, -0.2620, +0.1099, -0.3745, -0.0760, +0.0467, -0.3250, +0.1586, +0.0099, -0.2494, -0.7048, -0.4182, +0.5150, +0.5745, -0.1478, -0.2727, -0.2478, -0.2406, -0.2523, +0.1856, -0.0971, -0.6087, -0.0432, -0.9908, +0.1931, -0.1341, +0.2256, +0.3962, +0.7869, +0.0154, -0.2696, -0.0954, -0.3696, -0.0110, -0.1052, -0.0975, +0.1781, +0.1258, -0.0776, +0.0353, -0.2180, +0.1670, -0.0379, +0.3439, +0.0207, -0.1833, +0.2566, -0.0464, +0.2096, +0.4449, +0.0416, +0.1547, +0.3403, +0.0345, +0.4687, -0.2652, -0.0801, -0.0020, +0.2610, -0.1122, +0.3909, +0.0769, -0.4641, +0.0736, -0.1571, -0.3774, +0.2008, +0.0973, +0.0370, +0.2582, +0.1885, -0.1066, -0.2197, -0.4079, -0.0710, -0.4423, -0.4312, -0.0751, -0.1196, +0.3101, -0.0285, +0.5479, -0.1970, -0.2913, -0.4369, +0.5454, -0.6903, -0.8019, +0.0506, -0.1360, +0.0087, +0.0290, -0.2148, -0.1939], +[ -0.4610, -0.2473, -0.0072, +0.1139, -0.0247, -0.0270, +0.1747, +0.2458, +0.0063, -0.0531, -0.0759, +0.0047, +0.0364, -0.5022, -0.1617, -0.7361, -0.6447, -0.2081, +0.2924, +0.2775, -0.2411, -0.0804, +0.0894, +0.2635, +0.5808, +0.0442, +0.0549, +0.3769, -0.2544, +0.1273, +0.2322, -0.0005, +0.0571, -0.2578, -0.3183, -0.0808, -0.0843, -0.4059, +0.5397, +0.4067, +0.1236, +0.0372, -0.0280, +0.3330, -0.0433, -0.6466, +0.1857, -0.0144, -0.3054, +0.4676, +0.0957, -0.0832, +0.0522, +0.1565, +0.1035, -0.1486, -0.0411, +0.1708, -0.6490, +0.2695, -1.4983, -0.0924, +0.0861, -0.3205, +0.1533, -0.5704, -0.1770, +0.0457, -0.2784, +0.1999, -0.5306, -0.3039, +0.0315, -0.0714, -0.2366, +0.2338, -0.0119, -0.1229, -0.4881, -0.1953, -0.0109, +0.3970, +0.0111, +0.0094, +0.2245, -0.3690, -0.2375, -0.5421, +0.3655, -0.1213, -0.1289, +0.4099, -0.2984, +0.2335, -1.0059, +0.3213, -0.1308, +0.0610, -0.4671, +0.1776, -0.2169, +0.0928, +0.4206, +0.0827, -0.0566, -0.1113, -0.2543, +0.0759, +0.2825, +0.0447, -0.4559, -0.0657, +0.1503, +0.0488, -0.2538, -0.1964, +0.1072, -0.1280, +0.6441, -0.4528, +0.3117, +0.2581, -0.4013, -0.0773, -0.0911, -0.3778, +0.0242, +0.0215], +[ -0.3375, -0.5719, -0.6334, -0.0649, -0.0854, +0.0065, +0.0112, -0.8870, +0.3573, +0.4600, +0.1725, -0.0770, -0.3685, -0.0545, -0.5765, +0.0273, -0.1385, +0.2495, +0.2816, +0.2096, -0.1360, -1.0331, +0.0761, -0.2855, -0.0729, -0.2590, -0.1185, -0.2533, +0.1765, -0.4079, +0.2194, -0.5630, +0.2157, +0.2393, +0.1017, -0.7140, +0.0217, -0.4780, +0.1821, +0.2813, -0.3911, -0.3134, +0.0405, -0.0632, -0.1073, -0.1237, -0.2487, +0.6443, +0.2270, -0.2456, -0.1470, -0.4370, -0.2383, +0.1560, +0.1944, -0.4339, +0.1600, +0.2022, +0.0125, -0.9087, -0.2564, -0.1490, -0.3016, -0.3584, -0.4661, -0.1902, -0.7473, +0.2934, +0.5054, -0.0753, +0.3913, +0.2743, -0.0716, -0.0532, -0.1229, +0.3036, +0.0937, -0.6381, +0.3031, +0.0587, -0.3400, -0.0665, +0.0558, +0.1511, +0.1622, +0.1003, -0.2812, -0.1361, -0.2708, +0.2619, -0.0755, -0.3061, -0.1715, +0.0845, +0.0100, +0.0034, -0.5785, +0.1349, -0.1744, -0.2035, +0.4662, +0.1399, -0.3066, -0.4236, -0.0472, -0.2843, -0.2385, -0.5794, +0.1820, +0.3557, -0.0862, +0.3738, +0.1450, +0.1000, +0.5473, +0.1507, -0.5443, +0.0914, -0.3537, +0.3741, -0.1891, +0.3546, +0.3191, -0.5246, +0.4230, -0.5878, -0.1751, -0.0542], +[ +0.0213, -0.1471, +0.3261, -0.4587, -0.1803, +0.3454, -0.4453, -0.3145, -0.3858, -0.2512, -0.1947, -0.1724, +0.0583, +0.0332, +0.3049, -0.2802, -0.1356, -0.1136, -0.2123, +0.5089, +0.2820, -0.1252, +0.0767, +0.0704, -0.4895, +0.2362, -0.1172, +0.0923, +0.1067, +0.3615, -0.0697, +0.2067, -0.5127, +0.0913, -0.3579, +0.2358, -0.3798, +0.0920, +0.1841, -0.2430, -0.0443, -0.0572, +0.0997, +0.1046, +0.1505, +0.4334, +0.0064, +0.1389, -0.1436, -0.1635, +0.0277, -0.1091, -0.0032, +0.2427, +0.2126, +0.1951, -0.1043, -0.4167, +0.0660, +0.3166, -0.0735, +0.4281, -0.0680, +0.2983, +0.2509, +0.0579, -0.1808, +0.2992, +0.4224, +0.1334, -0.3825, +0.2144, -0.3767, +0.0435, +0.2921, +0.3553, -0.6511, -0.4253, +0.0686, -0.3102, -0.0320, +0.1272, -0.0162, +0.3658, -0.0617, +0.2804, +0.0475, +0.2362, -0.3137, -0.3116, -0.0363, -0.0645, -0.3065, -0.0121, -0.1316, -0.1926, +0.2697, -0.3122, -0.1086, -0.2185, +0.0241, +0.1630, +0.1691, -0.2266, +0.0638, -0.3642, +0.0405, +0.0430, -0.3574, -0.2212, -0.1512, +0.2038, -0.5828, -0.2209, -0.0242, +0.2462, +0.1717, -0.0077, -0.0030, -0.0895, +0.1574, +0.4435, -0.0056, -0.1508, +0.2267, -0.9727, +0.0261, -0.1215], +[ -0.3160, -0.1400, +0.4377, -0.3019, +0.3067, +0.2706, -0.0765, -0.0643, +0.2614, -0.2829, -0.0770, -0.4608, +0.0010, -0.7371, +0.1481, +0.0234, +0.2131, +0.5582, -0.5795, -0.1648, -0.3535, +0.2181, -0.3191, +0.0782, +0.0203, -0.1470, -0.3755, -0.2801, +0.4999, +0.1431, +0.3485, -0.0319, -0.2214, -0.5425, -0.4827, +0.0720, +0.0499, +0.0915, +0.1852, +0.4811, -0.2475, +0.3030, +0.1523, -0.8120, +0.1666, -0.1881, -0.2929, -1.0035, +0.1171, -0.1081, -0.2652, +0.2682, +0.2016, -0.1875, +0.1921, +0.1625, -0.2025, -0.6555, -0.4698, -0.6763, -0.0720, +0.0744, +0.0735, -0.2397, -0.7100, -0.0878, -0.2742, -0.0971, +0.3277, -0.0065, -0.1009, -0.2990, +0.0095, -0.1290, +0.1047, +0.2795, -0.0224, -0.1167, +0.1958, +0.0617, +0.0240, -0.1795, -0.1911, -0.3702, -0.1098, +0.0642, -0.1415, +0.2290, +0.2341, -0.1400, -0.3408, -0.1841, +0.0148, +0.1168, +0.3008, -0.3096, +0.1196, -0.4468, +0.1721, +0.1640, -0.0977, -0.0530, +0.0229, +0.1476, -0.1028, -0.1261, -0.1420, +0.1022, +0.3167, -0.6265, +0.1797, -0.0936, +0.0511, -0.1893, -0.0957, +0.6811, +0.1573, -0.2752, +0.1701, -0.2201, -0.5291, -0.2507, +0.3921, -0.1902, +0.0837, -0.0864, +0.2542, -0.3904], +[ +0.3549, -0.3863, +0.0507, +0.2643, -0.5068, +0.0091, -0.1987, +0.2044, +0.1588, -0.1687, +0.3042, -0.2765, -0.1975, +0.3145, -0.3224, +0.0269, +0.1342, +0.1690, -0.3698, +0.0475, +0.2741, +0.1402, -0.3399, +0.1895, -0.3704, +0.0448, -0.6119, -0.4312, -0.1161, +0.1789, -0.2738, -0.0005, -0.1235, -0.1129, -0.1537, -0.4127, +0.3147, -0.4615, -0.1564, +0.1232, -0.0074, +0.4090, +0.1535, +0.1611, -0.0459, +0.0316, -0.0453, +0.2114, +0.2703, -0.1030, +0.2373, -0.1695, +0.1394, +0.2881, +0.1062, +0.2914, -0.0610, -0.0085, -0.2375, -0.0314, -0.0266, +0.0097, -0.1276, +0.2307, +0.3851, -0.0813, +0.0323, +0.3472, -0.1466, -0.0722, -0.2811, +0.1014, +0.1024, -0.0211, +0.1074, -0.0008, -0.1776, +0.2776, -0.2850, +0.1980, +0.3691, -0.0283, +0.1396, +0.1274, -0.1716, -0.1685, -0.4215, +0.0225, +0.0786, -0.1001, +0.4591, -0.0575, -0.3971, +0.1456, -0.2183, +0.0558, -0.0271, +0.3083, +0.0568, +0.2462, -0.1597, -0.0232, +0.1730, -0.3045, +0.0611, -0.0139, +0.0820, +0.1426, +0.2030, +0.1218, -0.0595, -0.0221, -0.1941, -0.2436, +0.0602, +0.3822, -0.0739, +0.3550, -0.2108, -0.1007, +0.0043, -0.1852, +0.0749, -0.1664, +0.1066, -0.0244, +0.1905, -0.0022], +[ -0.4225, +0.0205, +0.2343, +0.6412, -0.1847, -0.3596, +0.0700, -0.0939, -0.0499, -0.0930, -0.0358, -0.8865, -0.0728, -0.0062, -0.0464, -0.0181, +0.2364, -0.0239, +0.5704, -0.0628, -0.1030, -0.4086, +0.5106, +0.1740, +0.0949, -0.1879, +0.1340, -0.0541, +0.3082, -0.0291, +0.3116, +0.0689, -0.1211, -0.1224, +0.0628, -0.4648, +0.2210, +0.0961, -0.2342, +0.0106, +0.0186, +0.0873, -1.5674, +0.2819, -0.2889, -0.2208, -0.5178, +0.4684, +0.0253, -0.4241, +0.1826, -0.1348, +0.2715, +0.2436, +0.2658, +0.2304, +0.1359, -0.0806, -0.5793, +0.3441, +0.2264, -0.2614, -0.1882, -0.3382, +0.1948, +0.4520, -0.9745, +0.1227, -0.3187, +0.1561, +0.1611, -0.2133, -0.1997, -0.4954, -0.2462, +0.1609, +0.1442, +0.1312, +0.1740, -0.3870, -0.4074, -0.3078, -0.0300, +0.2480, +0.2126, +0.2092, -0.8827, -0.5479, +0.1335, -0.3101, -0.0703, +0.0903, -0.2329, -0.1830, +0.4569, -1.1144, -0.0159, +0.6270, +0.1413, +0.3254, -0.0640, -0.9923, -0.2731, -0.8292, +0.3298, -0.3924, -0.2309, +0.2209, -0.1428, +0.1210, +0.3638, +0.0533, -0.2677, -0.4959, +0.0251, -0.2504, -0.0507, -0.0921, +0.1597, +0.1228, +0.0347, +0.1019, -0.0810, -0.1491, +0.0628, +0.2191, -0.4947, +0.0954], +[ +0.1637, +0.0948, -0.4648, +0.3582, +0.0854, +0.0058, +0.1979, -0.5683, +0.2024, +0.6277, -0.1446, +0.1466, -0.3083, -0.0088, +0.2004, -0.5835, -0.0979, -0.4047, +0.1741, +0.2211, -0.1131, -0.9463, -0.0805, +0.2657, +0.1303, +0.3516, +0.1750, +0.1509, +0.2827, +0.0082, -0.0395, -0.2700, -0.9032, +0.0319, +0.1324, +0.1078, -0.5541, +0.7263, +0.3923, -0.0758, -0.7597, -0.5127, +0.1942, -0.2357, -0.5484, -0.1027, +0.3685, -0.3620, +0.3254, -0.2113, -0.8554, +0.4961, +0.1886, +0.2338, +0.1664, -0.5808, -0.0672, +0.1681, +0.1266, +0.0296, -1.1437, -1.3080, -0.7877, -0.2797, +0.0179, -0.3475, +0.2645, +0.2776, +0.2837, +0.3169, +0.2472, -0.0013, -0.1141, -0.0726, -0.1195, +0.2691, -1.2304, -0.3329, -0.7756, +0.3802, -0.1996, +0.2079, -0.1404, +0.2316, +0.4997, +0.1979, +0.1014, +0.0706, -0.3750, -0.8870, +0.1731, +0.3022, -0.2311, -0.2704, -0.1208, -0.1827, -0.9557, +0.1715, -0.3653, +0.2939, -0.6981, +0.2919, -0.4313, -0.3437, -0.0768, +0.0977, -0.3232, -0.3931, -0.2694, -0.2122, -0.0491, -0.3902, +0.2010, -0.4833, -0.4078, -0.0292, -0.0444, -0.3722, -0.1701, -0.0076, -0.7189, -0.1509, -0.0553, -0.9382, -0.0043, -0.5509, -0.0923, +0.0345], +[ +0.1160, -0.2954, -0.3315, -0.1049, -0.1665, -0.6713, +0.2705, +0.2416, -0.1831, -0.4300, +0.1659, +0.0535, -0.3640, +0.4983, +0.1289, +0.1666, -0.3206, -0.0546, +0.1964, -0.0279, +0.0947, +0.0797, -0.3268, +0.1590, -0.2458, +0.0288, +0.2251, -0.3009, -0.1476, +0.2927, +0.1510, -0.0044, -0.3690, +0.3700, +0.2042, -0.3515, -0.4181, +0.0056, -0.0933, -0.4424, +0.3104, -0.0206, -0.7065, +0.4244, +0.0692, +0.0821, -0.0387, +0.0745, +0.1301, -0.1519, -0.0195, +0.0234, +0.1581, +0.2883, +0.0212, -0.4560, -0.5068, -0.5831, +0.4690, -0.1566, -0.0208, +0.1124, +0.0008, -0.3741, -0.2130, -0.2332, -0.3150, +0.0841, -0.0527, -0.1880, -0.0400, -0.1145, +0.2574, +0.1251, -1.0734, -0.2387, -0.1422, -0.2481, +0.0069, +0.0068, +0.0484, -0.0377, +0.3183, -0.2792, +0.2541, -0.2930, -0.0113, -0.1120, +0.0407, -0.0675, -1.0289, +0.2839, +0.2054, +0.0621, -0.1725, -0.6597, +0.2531, -0.1362, -0.1612, +0.2407, -0.2504, +0.0369, +0.2115, -0.4549, -0.1791, +0.1713, -0.2896, -0.1486, +0.2133, +0.0461, -0.3307, +0.0050, -0.4137, +0.2785, -0.4291, -0.0957, +0.2633, -0.0458, -0.0116, +0.2395, +0.0834, -0.1063, -0.5765, -0.1646, -0.0355, -0.6641, -0.4030, +0.1182], +[ -0.1603, +0.1595, -0.8431, -0.6778, +0.1075, -0.2351, -0.1148, +0.0481, +0.0980, +0.1509, -0.4538, -0.6482, +0.3181, -0.7497, -0.6013, +0.1111, +0.0616, -0.1351, -0.0651, +0.3321, -0.0197, -0.1127, -0.0341, +0.3115, -0.3223, +0.0818, +0.1163, -0.0377, +0.1245, -0.3289, -0.0432, +0.1208, -0.1961, +0.0422, -0.0774, -0.0120, -0.3441, +0.5444, -0.2227, +0.0064, -0.4028, -0.0151, -0.3354, +0.3311, -0.0559, +0.0867, +0.4502, +0.0128, +0.0003, -0.1244, +0.7798, +0.5170, -0.0804, +0.6044, -0.3152, +0.0484, -0.1151, +0.5629, -0.6603, -0.2273, -0.1492, -0.2242, -0.0485, -0.5484, -0.2776, -0.5286, -0.0948, +0.0538, -0.1728, -0.2477, +0.0368, -0.0486, -0.1006, +0.0436, -0.1171, +0.5106, +0.2599, -0.2541, -0.3214, +0.0887, +0.1058, -0.0414, +0.7731, +0.4503, -0.3084, -0.3069, -0.8430, -0.2717, +0.0244, -0.0623, +0.4468, -0.0700, -0.6146, -0.4785, +0.1428, +0.0444, +0.8492, +0.0297, +0.1108, -0.1313, -0.2234, +0.0726, +0.1076, -0.1348, +0.2932, -0.8258, +0.1431, -0.2649, +0.3067, +0.1376, +0.4508, +0.1335, +0.4536, +0.1607, +0.4285, -0.0105, +0.1935, +0.0985, -0.4130, -0.3155, -0.9062, -0.3534, +0.1880, -0.5299, -0.3446, -0.2847, -0.5438, +0.2116], +[ +0.5761, -0.3813, -0.3865, +0.1568, -0.1607, -0.2502, +0.0219, -0.8582, -0.5226, +0.5144, -0.1524, +0.0812, -0.4727, -0.3335, -0.1110, +0.3647, +0.0783, -0.5708, -0.3820, -0.3120, -0.3096, -0.0256, -0.4717, +0.1317, +0.5989, +0.4897, -0.0469, +0.0568, -0.2580, -0.2221, -0.4452, -0.2594, -0.9505, +0.4975, -0.5212, +0.2497, -0.0509, +0.1511, -0.6159, +0.0438, -0.1114, +0.2150, -0.0859, +0.2133, -0.0728, -0.3740, -0.4002, +0.4732, +0.4738, +0.5238, -0.0480, -0.2455, -0.0934, -0.2782, -0.2165, -0.1058, -0.0855, +0.5160, -0.1801, +0.0536, +0.3633, -0.2925, -0.7053, +0.0379, +0.2051, -0.0552, -0.7254, +0.1808, -0.8717, -0.2988, -0.3500, -0.4196, -0.1360, -0.3550, +0.3361, -0.4210, -0.1077, -0.4150, +0.3904, -0.2485, -0.3365, +0.2199, -0.6205, +0.1837, -0.1190, -0.3000, -0.3884, +0.2614, +0.0790, -0.0139, -0.3965, +0.3965, -0.4885, +0.4306, +0.1003, -0.0760, +0.4036, +0.0463, +0.3266, -0.2110, -0.5959, -0.4129, -0.0650, +0.3431, -0.6494, +0.2506, -0.3991, -0.1680, -0.1170, -0.0935, +0.0483, -0.0313, +0.1041, -0.5254, -0.1478, -0.0523, +0.0539, +0.0581, -0.3135, +0.4106, -0.0569, -0.1274, -0.7759, -0.1341, +0.1121, -0.2227, -0.3384, +0.2073], +[ -0.0015, -0.0050, +0.0626, -0.2167, -0.1618, -0.1563, +0.0808, +0.3984, +0.3761, -0.7672, -0.0743, +0.1242, +0.2863, +0.0726, +0.2476, -0.2723, -0.0107, +0.0697, -0.2586, +0.0376, -0.5399, -0.5003, +0.2620, +0.0800, -0.1510, -0.3301, -0.0241, +0.2990, -0.3245, +0.4816, +0.1996, +0.1130, -0.8881, +0.3102, +0.0306, +0.0916, -0.5965, -0.4686, +0.0940, +0.0700, -0.4971, +0.3605, +0.0462, -0.3902, +0.1146, -0.5735, -0.6344, -0.9496, -0.5057, -0.1810, -0.0559, -0.2218, -0.0443, -0.2366, +0.0693, -0.4752, +0.1593, -0.3631, +0.3647, +0.1596, +0.1076, -0.1984, -0.4186, +0.3248, +0.1609, +0.2158, +0.1010, +0.2301, +0.1915, -0.1493, -0.8783, +0.0871, -0.1188, -0.2275, -0.0359, +0.3421, +0.0802, -0.6345, -0.1397, -0.1732, +0.0109, -0.1552, -1.1050, +0.0960, +0.2679, +0.0425, +0.3679, -0.4878, +0.4553, -0.8658, +0.0454, -0.6804, -0.1970, -0.4404, -0.0434, -0.3961, -0.1004, +0.2561, -0.4153, +0.1440, -0.0352, +0.4118, -0.2326, -0.0680, +0.0416, -0.2793, +0.2123, +0.1383, -0.1678, +0.1839, -0.2010, +0.2858, -0.3092, +0.2992, -0.2234, -0.2068, +0.1857, -0.2247, +0.1250, +0.0474, +0.1694, -0.3829, -0.3199, -0.0096, -0.0066, -0.4101, +0.2096, +0.1492], +[ -1.0530, -0.1616, +0.1781, -0.2967, -0.3292, -0.1714, -0.1484, +0.0427, +0.3548, -0.0519, -0.2956, -0.8272, +0.0106, +0.5496, -0.5411, -0.0851, +0.2586, -0.2523, +0.0898, -0.3291, -0.4361, +0.2933, -0.3067, -0.1003, +0.4732, +0.3920, +0.2250, +0.2445, +0.2729, +0.6164, +0.1556, -0.6162, +0.1678, +0.1554, -0.0462, -1.0487, -0.0951, +0.0250, -0.0550, -0.0011, -0.0247, -0.4949, +0.3541, +0.2239, -0.3604, +0.2358, -0.9694, -0.5448, -0.6723, -0.5508, -0.0862, -0.5063, -0.2174, -0.2356, -0.2273, +0.0797, -0.3075, -0.0495, +0.1235, -0.1639, -0.3079, -0.1264, -0.4438, +0.3899, -0.1129, -0.5128, -0.6813, -0.1342, -0.1244, +0.0879, +0.5020, +0.0280, +0.3070, +0.2640, -0.4427, +0.1822, +0.0034, +0.2847, -0.2542, -0.4012, +0.0463, -0.4115, -0.5966, -0.3262, -0.0476, -0.5559, -0.2575, +0.2801, -0.2403, +0.2426, -0.1122, -0.0639, -0.0933, +0.3127, -0.4744, -0.1973, -0.7071, -0.2202, -1.0998, -0.1894, -0.2028, -0.2228, -0.1441, -0.4315, -0.8790, +0.1403, -0.3170, -0.1493, -0.3308, -0.5001, +0.2890, -0.4068, -0.1283, -0.4281, +0.2751, +0.1483, +0.4841, -0.3758, +0.4211, -0.1636, -0.0437, -0.1343, -1.0156, +0.2221, +0.1052, -0.5406, -0.4152, +0.0602], +[ -0.2308, -0.2978, +0.0745, -0.2628, -0.3429, -0.0427, +0.0573, +0.1858, -0.2774, -0.2777, -0.0013, -0.1791, +0.0037, -0.0213, +0.0925, -0.0212, -0.2492, +0.0183, +0.3678, -0.0179, -0.0583, +0.0586, -0.0014, +0.1517, +0.3286, +0.6509, +0.2159, -0.3924, +0.0795, +0.2268, -0.1243, +0.2543, -0.0295, +0.0129, -0.0151, +0.1521, -0.5144, +0.1643, -0.5641, +0.0363, +0.4261, +0.0787, -0.0144, +0.2405, +0.1561, +0.1014, -0.0883, -0.1637, +0.1274, +0.0933, -0.2461, -0.2536, +0.2394, +0.4473, -0.3484, +0.1002, -0.3076, +0.0268, +0.0668, -0.0877, -0.2816, -0.6566, +0.1330, -0.3667, +0.3127, -0.1171, +0.2557, +0.3192, +0.3922, +0.2430, -0.8649, -0.3526, +0.4035, -0.0499, +0.1406, +0.1930, -0.1427, +0.1748, +0.1786, +0.0764, +0.3115, +0.2849, -0.0117, +0.0284, +0.1940, -0.5640, +0.2338, +0.2769, -0.2405, -0.4534, -0.4668, -0.0395, +0.2209, +0.0711, -0.0354, +0.4161, -0.0014, -0.2474, -0.1787, +0.2895, +0.2003, +0.0210, +0.1707, -0.1632, -0.1909, -0.0915, -0.2660, +0.0307, +0.0622, +0.0725, +0.3364, -0.0440, -0.0147, -0.4324, -0.4612, +0.2892, -0.0327, +0.0708, -0.2288, -0.6771, +0.1125, +0.4182, -0.4915, -0.2478, +0.1810, -0.4989, -0.3241, -0.0827], +[ +0.0611, +0.2865, -0.1639, -0.5949, -0.6014, -0.0413, +0.4919, -0.1920, +0.1659, -0.4057, -0.0116, +0.1717, -1.8083, +0.3695, +0.1806, -0.4881, +0.5887, -1.2683, -0.1151, -0.5173, +0.2263, +0.2536, +0.2895, -0.4869, -0.1181, +0.0537, +0.2262, +0.1881, -0.1279, -0.7002, -0.3557, -0.0005, -0.2306, -0.8433, -0.0015, -0.1687, +0.2881, +0.0146, -1.0380, +0.0755, +0.3358, +0.1864, -0.3233, +0.3758, -0.1901, +0.0065, -0.3992, -0.3306, +0.1113, -0.2037, -0.1552, -0.3460, +0.3272, -0.2249, -0.8292, -0.1383, -0.2892, -0.1736, -0.3339, +0.0082, -0.5588, -0.0003, -1.3892, +0.1160, -0.3565, -0.0793, -0.3037, +0.1453, -0.2012, +0.1600, -0.0894, +0.1147, -0.2503, -1.0418, -0.1991, +0.0348, -0.6366, +0.1861, +0.0672, -0.4284, -0.0243, +0.1470, -1.0503, -0.4545, +0.1642, +0.5413, -0.2965, +0.4746, +0.0497, -0.0846, +0.3373, +0.1835, -0.3656, -0.9899, -0.7913, +0.2604, -0.4761, -0.3113, -0.3797, +0.0733, +0.0392, +0.0518, -0.3743, -0.1053, -0.2166, +0.0327, +0.0788, +0.2358, -0.1864, -0.4050, +0.1921, -0.8714, -0.6943, -0.1009, -0.2309, +0.0990, +0.0303, -0.2281, -0.6570, +0.1796, -0.2536, -0.7205, +0.0996, +0.1210, -0.2807, -0.0518, -0.1800, +0.1282], +[ -0.7158, -0.0248, -0.1820, -1.0689, -0.8583, +0.1329, -0.2660, +0.0176, +0.0568, +0.3375, +0.2250, -0.0206, -0.4120, -0.8021, +0.2371, +0.1026, -0.3022, -0.1062, -0.1898, +0.0673, -0.1232, +0.2277, -0.0368, -0.0241, -0.1203, -0.3597, -0.2682, -0.0838, +0.1016, +0.0101, +0.1256, +0.0478, -0.5503, -0.0960, -0.6214, -0.3078, -0.1974, -0.4763, -0.4231, -0.8695, -0.2724, +0.1457, +0.1207, -0.3700, -0.0486, +0.1690, -0.0181, -0.2192, -0.0046, -0.3685, -0.0330, +0.2796, +0.1762, -0.2772, -0.0359, -0.2993, -0.1015, -0.1635, +0.2030, -0.1603, +0.2134, -0.1556, -0.5028, -0.4694, +0.3322, -0.0483, -0.7822, -0.8137, -0.7079, +0.0925, +0.1491, -0.1615, +0.3602, -0.5017, -0.0455, +0.1418, -0.0643, -0.2456, -0.1544, -0.3930, -0.7707, -0.1255, -0.5566, +0.3966, -0.1460, +0.0126, +0.0630, -0.1355, +0.0769, +0.2010, -0.6037, -0.2071, -0.1490, +0.2603, -0.0213, +0.0620, +0.1688, +0.1827, +0.4220, +0.3981, +0.2312, -0.3357, -0.1231, +0.1700, -0.1651, +0.0388, -0.1009, -0.2646, +0.1996, -0.3023, +0.1891, -0.4615, -0.3505, +0.1069, -0.1581, -0.0312, -0.8901, +0.0545, -0.6672, -0.5027, +0.2211, +0.1013, -0.7583, -0.1434, -0.6627, -0.2156, +0.2614, +0.3662], +[ -0.2563, -0.0474, -0.2365, -0.1934, -0.3914, -0.0048, -0.2730, -0.2007, -0.1603, -0.2423, -0.5630, -0.3473, +0.0258, -0.9864, +0.4544, -0.4950, +0.0337, -0.0502, +0.2225, -0.7403, -0.9425, -0.4985, -0.1403, +0.0626, +0.3485, +0.2418, -0.0540, -0.7098, +0.0510, +0.0277, +0.1600, -0.1689, -0.1595, +0.1059, -0.0557, +0.0532, -0.0278, -0.5567, -0.2592, -0.5742, -1.0013, +0.1918, -0.0463, +0.1362, -0.1924, +0.3461, -0.5660, +0.1042, +0.0646, -0.1462, -0.3421, +0.2529, +0.0525, -0.2629, -0.1130, -0.6224, -0.2830, +0.3472, +0.3616, -0.1641, -0.5444, -0.3770, +0.4742, -0.3860, -0.5951, -0.1638, -0.7594, +0.1544, -0.2297, -0.5665, -0.4948, +0.2582, -0.1000, -0.1965, +0.0185, +0.1803, +0.5790, -1.2134, -0.1435, +0.2652, -0.1434, -0.3791, +0.3301, -0.7856, +0.2785, -1.0229, +0.0838, -0.2758, -0.3962, -0.4106, -0.6214, -0.1216, +0.0602, +0.0587, +0.0879, -0.9288, -0.1678, -0.5674, +0.1685, -0.4010, -0.0188, -0.1108, -0.1286, -0.1027, +0.4474, -0.5951, +0.6017, -0.6050, -0.0316, -0.1669, -0.1520, -0.0173, -0.6195, -0.0047, -0.5535, +0.2926, -0.2384, +0.1254, -0.4349, +0.1235, -0.5216, -0.7084, -0.1835, -0.1166, -0.5433, -1.7441, +0.1094, +0.0133], +[ -0.1527, +0.2050, +0.0983, -0.1605, -0.1750, -0.1275, +0.0175, -0.4205, -0.2100, +0.0893, +0.2032, +0.0399, -0.4218, +0.0874, -0.6308, +0.2939, +0.0782, +0.0255, +0.0107, -0.2254, -0.9162, +0.2254, -0.3521, +0.2638, -0.1499, -0.1506, -0.2354, +0.2721, +0.5795, -0.3090, +0.1415, -0.3314, +0.0392, -0.5504, +0.1330, -0.2533, -0.0513, -0.5682, +0.1356, -0.7459, -0.7628, -0.0834, -0.3449, +0.3160, +0.0946, +0.3228, +0.0644, +0.1491, +0.0060, -0.3167, -0.3146, -0.8460, -0.3023, +0.2308, +0.1187, -0.5089, +0.0434, -0.0090, -0.5630, +0.0231, +0.1602, -0.2552, -0.5270, -0.7234, +0.5465, -0.4352, -0.7148, -0.3853, +0.4611, +0.4006, -0.6137, +0.4332, -0.2807, +0.0564, +0.1006, -0.2015, -0.0501, -0.1992, +0.0239, -0.0428, -0.2136, +0.0181, +0.0028, -0.2133, +0.4164, +0.0994, +0.1958, +0.0943, -0.3896, -0.1137, -0.0743, -0.0451, +0.0772, -0.2562, +0.3917, -0.2452, +0.5537, -0.0203, +0.3696, +0.1016, -0.3851, -0.0034, -0.3018, -0.4717, +0.1248, -0.0375, +0.0164, -0.2870, -0.2551, -0.3909, +0.2639, -0.5118, +0.2163, -0.1475, -0.2449, -0.1022, -0.3885, -1.1527, +0.3727, +0.3782, +0.1173, +0.4259, -0.0340, -0.0485, +0.1656, +0.2814, +0.0839, -0.5007], +[ +0.4765, -0.1649, -0.1024, +0.0055, -0.1214, +0.1782, -0.2572, -0.4435, -0.7717, -0.1426, -0.3608, -0.7833, +0.1269, -0.0235, +0.1364, +0.3735, -0.2381, -0.0663, -0.1387, -0.4519, -0.6952, -0.2574, +0.3000, -0.3859, -0.0087, -0.0432, -0.1001, -0.3128, -0.0270, -0.3285, -0.1081, +0.1883, -0.8374, -1.1177, +0.2704, +0.1830, +0.1482, +0.4163, +0.2134, -0.7739, +0.4174, -0.3978, -0.5230, +0.2132, -0.2400, -0.1015, +0.3938, +0.6610, -0.2333, -0.0563, +0.0737, -0.3698, -0.4550, -0.2412, +0.3110, +0.0754, -0.1881, -0.1304, -0.3407, +0.2422, -0.1928, -0.6068, -0.4171, -0.1750, -0.4661, +0.1497, -0.8435, +0.4782, -0.0119, +0.0284, -1.0337, -0.0165, -0.0950, +0.4089, -0.3840, -0.0563, -0.5054, +0.0379, +0.3352, -0.1341, +0.0938, -0.8643, -0.1014, +0.0840, -0.5156, -0.1637, +0.0072, +0.3067, -0.0884, -0.7413, +0.5943, -0.0905, -0.2211, -0.5878, +0.3823, -0.3302, -0.3392, -0.5429, +0.1319, -1.0519, +0.3625, +0.3302, -0.0129, -0.1716, -0.5146, -0.0158, -0.3191, -0.2978, +0.0817, +0.1130, +0.0154, +0.6382, -0.3736, +0.2939, +0.2334, +0.2609, +0.2365, +0.2562, +0.2581, +0.3822, -0.3219, +0.0573, +0.2748, -0.0081, +0.1287, -0.5954, -0.5557, +0.3334], +[ -0.1244, -0.0739, -0.1773, -0.0051, -0.2568, +0.0253, -0.3943, +0.4885, -1.2380, +0.1550, -0.0180, +0.0387, -0.1563, -0.0694, +0.3956, -0.1860, +0.2417, -0.0104, +0.1181, -0.1433, -0.1424, -0.2395, +0.1543, +0.0020, +0.3424, -0.8965, +0.2261, -0.0223, -0.0491, -0.1797, -0.7054, +0.0414, +0.1474, -0.0349, -0.0832, -0.0827, +0.0572, +0.2952, -0.0980, -0.5059, -0.3756, -0.3521, +0.3812, -0.2648, +0.1227, +0.5788, -0.1290, +0.1006, -0.6027, +0.0324, -0.1361, +0.1538, +0.1624, -0.4140, -0.2818, +0.2475, -0.3697, +0.0158, +0.0414, -0.4090, +0.1862, +0.3428, +0.3250, -0.2630, +0.1261, +0.2009, +0.3502, -0.0755, -0.2826, +0.1526, -0.2166, -0.2248, -0.4648, -0.6940, +0.2055, -0.2284, -0.0808, -0.1773, +0.4859, -0.8962, -0.0136, -0.5233, -0.4861, -0.1999, -0.0792, +0.6809, -0.4605, -0.0301, +0.1620, -0.5748, -0.1882, +0.2918, +0.2180, -0.0636, -0.3878, -0.0864, +0.1710, +0.1606, -0.0546, -0.3337, -0.6139, +0.1103, +0.0151, +0.0350, +0.1895, +0.3184, +0.3794, +0.0449, -0.1940, +0.1791, -0.2073, +0.1471, -0.5927, +0.0492, +0.1733, -1.0351, -0.3525, +0.2772, -0.0317, -0.9995, -0.0498, -0.1881, +0.5443, +0.2347, +0.5254, -0.3914, -0.0550, -0.1160], +[ -0.0967, +0.3455, -0.2238, +0.2009, +0.1764, +0.0967, -0.0590, +0.3214, -0.0303, -0.2983, -0.4011, -0.5049, -0.1646, -0.0277, -0.4578, +0.7766, +0.0177, -0.6196, -0.1869, -0.7060, -0.7281, -0.3773, +0.3006, +0.1190, -0.1093, -0.3381, +0.3843, +0.2368, -0.0337, -0.1140, -0.3126, -0.4312, +0.5474, -0.4514, +0.0049, +0.3787, -0.1660, +0.7759, -0.3546, +0.0536, -0.1700, +0.0265, -0.1812, -0.2721, +0.0742, -0.2028, -0.3201, +0.1234, -0.4013, +0.1645, -0.7290, -0.1574, -0.2551, -0.6970, -0.3877, -0.3200, +0.1977, -0.8099, -0.0750, -0.0673, -0.2181, -1.0244, -0.3877, +0.0909, -0.3593, -0.5187, -0.2553, +0.0355, -0.3642, +0.0107, +0.1705, +0.4053, -0.2568, +0.1740, -0.2911, -0.1625, +0.2549, +0.0840, +0.3694, -0.6590, -0.3594, -0.1929, +0.2237, -0.1976, +0.1534, -0.3068, +0.1278, +0.4571, -0.2539, +0.2164, -0.5471, -0.0529, +0.0369, +0.4208, -0.0814, +0.3714, -0.5938, -0.3710, +0.3114, +0.6259, +0.0059, +0.0130, -0.5826, +0.0877, -0.2332, +0.0354, -0.8047, +0.1317, -0.9597, +0.1143, -0.2499, +0.1294, -0.0472, -0.5513, +0.0643, +0.1936, -0.1909, +0.1698, +0.0858, -0.1199, -0.6053, +0.0864, +0.0556, -0.3210, -0.3413, +0.0078, +0.1152, -0.4971], +[ -0.0527, -0.0277, -0.5070, +0.1096, +0.2826, +0.3327, -0.0866, +0.0629, -0.1437, +0.2578, +0.0404, -0.3073, +0.3690, -0.3613, -0.2037, -0.5715, -0.1269, +0.1994, -0.0578, -0.1329, -0.0046, -0.6498, -0.1521, -0.2816, -0.1446, -0.0221, +0.0810, -0.3729, +0.4460, +0.6792, +0.1963, -0.0118, -0.3029, -1.0091, -0.5706, +0.1085, -0.6219, -0.3816, -0.8965, +0.4163, -0.0812, -0.1559, +0.0440, -0.2807, -1.0406, -0.2695, -0.0474, -0.1721, +0.2909, +0.2715, -1.6228, -0.3200, -0.1958, +0.0388, +0.1530, -0.9646, +0.2767, +0.4320, -0.1137, -0.6233, +0.1335, -0.2247, +0.4663, +0.0214, -0.2247, +0.3232, -0.7008, +0.4906, +0.3080, -0.0374, -0.6051, +0.2417, -0.3725, +0.4420, +0.2252, -0.3977, -0.4043, +0.1437, +0.5895, -0.9664, -0.1180, +0.5082, +0.0914, +0.3361, -0.7208, -0.5858, -0.5050, -0.0817, +0.2920, +0.0912, +0.4496, -0.2410, -0.3415, +0.1653, -0.1557, +0.7604, -0.5723, -0.5638, -0.3500, -0.8521, -0.2054, +0.0974, +0.2551, -0.2385, -0.0929, -0.0650, -0.0434, -0.3776, +0.4589, +0.2075, -0.4577, -0.0888, +0.0540, -0.3768, -0.3778, -1.2187, -0.2733, -0.3868, -0.5227, +0.5560, +0.1831, +0.1179, -0.4877, -0.1921, -0.2940, -0.1083, +0.1321, +0.0658], +[ +0.0851, +0.1237, +0.3079, -0.3762, -0.2870, +0.1797, +0.1528, +0.1408, -0.0854, +0.2107, -0.0888, +0.1461, +0.0396, +0.0078, +0.2542, -0.0276, +0.1926, +0.0659, -0.1361, +0.0434, +0.3480, -0.0129, -0.0772, +0.0886, -0.0437, -0.0188, -0.4141, +0.1342, -0.2803, -0.0198, -0.2619, +0.0503, -0.3024, -0.1624, -0.0729, +0.0999, +0.2488, -0.5538, -0.5757, +0.0182, +0.1508, +0.0242, +0.1205, +0.0480, +0.0230, +0.0396, +0.5233, -0.4589, +0.3359, -0.2505, +0.0021, +0.1641, -0.1351, -0.2552, -0.2580, +0.0780, -0.2114, -0.0661, +0.1573, -0.0167, +0.4415, -0.1601, +0.1631, +0.2454, -0.1081, +0.0016, -0.4957, -0.0726, +0.0853, +0.2539, -0.4234, -0.0471, +0.2212, -0.2625, +0.1045, +0.1269, +0.1261, +0.1722, +0.1526, -0.1199, -0.1990, -0.3317, -0.3490, -0.1991, -0.8123, -0.1331, -0.2023, -0.4781, -0.0670, +0.1621, -0.4527, -0.0136, -0.5296, +0.1699, -0.2776, -0.4615, +0.0328, +0.3221, +0.0832, +0.0988, +0.0501, +0.0616, -0.1198, +0.0369, -0.2673, +0.1644, -0.1164, -0.7414, +0.2164, -0.2900, -0.2164, +0.1668, -0.2093, +0.0993, -0.1886, -0.3224, -0.3970, +0.1618, -0.2486, -0.5561, -0.2513, +0.0465, -0.0900, +0.0689, -0.3624, -0.5229, +0.0975, -0.1538], +[ -0.2350, -0.0645, -0.3615, -0.0227, -0.5530, +0.1408, -0.0817, -0.2408, -0.1138, -0.1513, +0.3608, +0.4338, -0.1659, +0.6428, -0.0378, +0.3013, -0.1392, -0.3619, -0.8423, +0.3682, +0.3757, -0.0121, +0.4504, +0.0619, -0.6040, -0.6458, -0.5900, -0.1712, +0.4316, +0.0350, +0.3142, -0.7079, +0.0091, +0.4126, -0.4210, -0.0609, -0.1032, -0.3058, -0.1821, +0.3230, -0.3882, -0.9278, +0.0894, -0.0269, -0.6832, -0.7596, +0.3437, -0.7062, -0.6884, -0.2122, -0.0652, +0.1604, -0.0175, +0.3662, +0.4354, +0.3192, -0.2377, +0.1625, +0.1337, +0.0469, -0.0486, +0.2694, -0.5156, +0.0278, +0.2552, -0.4929, -0.9727, -0.1039, -0.1098, -1.2475, +0.1701, -0.2273, -0.7669, -0.5180, +0.1835, +0.1097, -0.4413, -0.4020, -0.3054, -0.3705, -0.8869, +0.2093, -0.3340, -0.1148, -0.3528, -0.1682, -0.1487, -0.4372, -0.4378, +0.1359, -0.0848, -0.7216, -0.6878, -0.2174, -0.4028, -0.2557, +0.0784, -0.1654, -0.1174, +0.3619, -0.1810, -0.0099, -1.1576, -0.0002, -1.0263, -0.3744, +0.2061, -0.8543, -0.8111, -0.4431, +0.1512, +0.2831, +0.1916, +0.4312, +0.5064, +0.0385, -0.0675, -0.1375, +0.2126, +0.0130, +0.4966, +0.2362, +0.0904, -0.7148, +0.0392, -0.1645, +0.1844, -0.7697], +[ +0.0220, -0.0428, +0.0276, +0.3503, +0.2144, -0.1321, +0.3869, -0.1202, -0.1374, +0.0744, -0.4690, -0.1239, -1.0280, +0.3670, -0.1420, -0.1227, +0.1930, -0.1847, +0.3942, +0.2043, -0.5067, -0.1962, -0.6377, -0.3575, -0.0448, +0.1373, +0.0288, +0.3011, -0.0772, +0.0266, -0.2126, +0.4098, +0.0688, +0.2684, +0.0468, -0.7170, +0.5634, -0.1395, +0.4975, -0.1992, +0.0157, -0.3145, +0.1247, -0.2183, +0.1947, -0.0192, +0.0535, -0.2897, +0.2576, -0.0970, +0.0374, +0.1809, -0.2987, -0.1980, -0.0604, -0.2548, +0.3602, -0.0131, +0.2217, -0.4366, +0.3172, -0.4558, +0.3201, -0.6872, +0.1945, +0.1090, +0.0402, +0.0382, -0.1878, -0.1224, -0.0817, +0.1835, -0.9401, +0.0475, -0.0883, +0.2037, -0.0891, +0.1447, -0.2684, +0.1187, +0.2925, +0.0545, -0.6845, +0.1526, -0.1610, -0.2451, +0.0026, +0.1057, +0.0704, +0.1843, -0.2590, -0.0985, -0.2079, -0.7211, +0.0775, +0.2452, -0.3347, +0.2375, -0.0090, -0.2547, +0.1042, -0.0516, -0.0689, +0.3129, +0.1685, +0.0748, -0.2181, -0.3170, -0.1933, -0.0852, +0.5291, +0.0392, -0.0554, -0.1644, -0.2692, -0.2711, +0.1414, +0.2713, -0.4879, +0.0969, -0.1078, -0.0405, -0.4846, -0.1335, +0.0573, +0.0358, +0.1098, -0.1402], +[ -0.1117, +0.1986, -0.7761, -0.3040, +0.3357, -0.3474, +0.1743, +0.1902, +0.3739, -0.2314, +0.0653, -0.1791, -0.2269, -0.5653, +0.2996, +0.1259, -0.2694, +0.2773, -0.1439, -0.1760, -0.1470, -0.2581, -0.4101, +0.0351, -0.3246, +0.2160, +0.1913, +0.2079, +0.2030, -0.0556, +0.3580, +0.0021, +0.1484, +0.2643, +0.1736, -0.2415, +0.0955, +0.0201, -0.0134, -0.0322, +0.3084, -0.4807, +0.1081, -0.5020, +0.2811, +0.0917, -0.2092, +0.0043, +0.1168, +0.4111, -0.0706, -0.2049, +0.0966, -0.2413, -0.0175, +0.3128, -0.3217, -0.5673, -0.1846, -0.2971, -0.1817, -0.2797, -0.3498, +0.0397, +0.3490, +0.0587, +0.0955, -0.1578, -0.4743, +0.1826, +0.4050, +0.3482, +0.1023, +0.0652, -0.1641, -0.2173, -0.4869, +0.0762, -0.0708, +0.2776, +0.0441, +0.3667, -0.5101, -0.5287, -0.2622, -0.2233, +0.1004, +0.2117, +0.1264, -0.0336, +0.0162, +0.4209, +0.3222, +0.3265, -0.3533, +0.1657, -0.3463, -0.7502, -0.2849, +0.1964, +0.2663, +0.1315, -0.0235, -0.1738, -0.3701, +0.1235, -0.3071, -0.1384, +0.1270, +0.5121, +0.2657, -0.4361, -0.0806, +0.3179, +0.2078, +0.1773, -0.0158, +0.4612, -0.0097, +0.0344, +0.4431, -0.0293, +0.2263, -0.3492, +0.0373, +0.3111, -0.3341, +0.3314], +[ -0.2234, +0.3046, +0.0611, -0.2822, +0.0183, +0.0652, -0.4832, +0.2223, -0.1448, +0.0276, +0.1012, +0.3600, -0.1284, -0.6043, -1.2978, -0.8725, -0.0866, +0.1470, +0.4283, +0.0699, +0.0635, +0.5191, -0.0263, +0.0685, -0.0539, +0.3351, -0.1752, +0.3458, -0.4523, -0.2304, -0.1956, -0.0134, -0.1779, -0.1767, -0.1972, -0.1104, -0.0667, -0.2914, -0.9693, +0.2018, +0.0919, -0.3138, +0.0910, +0.2717, +0.1102, +0.0138, -0.5037, +0.0832, +0.0590, -0.3267, -0.0313, +0.1724, -0.3492, +0.2826, -0.0482, +0.0152, +0.1023, -0.7773, -0.0515, -0.2389, +0.0211, -0.0255, -0.0368, +0.5986, +0.0725, -0.2325, -0.5902, -0.1262, -0.0356, +0.1307, -0.4985, -0.1194, -0.1714, +0.0975, -0.3656, +0.3823, +0.0281, +0.0863, -0.1686, -0.2519, +0.2029, -0.0693, +0.0241, +0.4671, -0.0035, +0.1302, -0.6907, -0.2194, +0.1807, -0.7022, -0.1678, -0.0593, -1.0474, -0.3847, -0.3561, +0.0089, +0.3198, +0.1647, +0.1293, +0.0437, +0.2253, -0.0569, +0.3280, -0.3060, +0.3071, -0.0946, +0.2558, +0.1250, -0.3373, -0.7435, +0.0748, -0.1516, -0.1449, +0.2877, -0.1991, +0.0102, +0.2082, +0.3499, -0.3268, +0.1190, +0.3183, +0.0166, +0.3925, +0.3659, -1.3411, +0.3606, -0.0859, +0.1691], +[ -0.4373, +0.5870, -0.2470, -0.4369, -0.5017, -0.7323, -1.2199, -0.2451, -0.2447, -0.1360, +0.2145, -0.4427, -0.3696, +0.1239, +0.3161, -0.1466, +0.0734, -0.0463, +0.0277, -0.3268, -0.1238, +0.0240, +0.0479, -0.0531, -0.3103, +0.4964, +0.0494, -0.0860, -0.5420, -0.1102, -0.5141, +0.2544, +0.0141, +0.1847, -0.3437, +0.2420, -0.0345, -0.1352, -0.2411, +0.0601, -0.1543, +0.2220, -0.0458, -0.0342, +0.0031, +0.3370, -0.0459, -0.3162, +0.3164, -0.2459, -0.3363, +0.0468, -0.0645, +0.5785, -1.0524, +0.0431, -0.2120, -0.1114, +0.1165, -0.0978, +0.0010, +0.1229, +0.0559, -0.4454, +0.6569, -0.1128, +0.0485, -0.3288, -0.1035, -0.1959, -0.6063, +0.2157, -0.1107, -0.0526, -0.0856, -0.6510, +0.1339, +0.5464, -0.2989, +0.5216, -1.2263, -0.0108, +0.2021, -0.1379, +0.7368, -0.3330, -0.1118, +0.0816, -0.3946, -0.7703, +0.1186, +0.0387, -0.2798, -0.4680, -0.1312, +0.5733, +0.0175, -0.8109, -0.7925, +0.2221, -0.3326, +0.1711, -0.3284, +0.5274, -0.6371, +0.3497, -0.2010, +0.3155, -0.2545, -0.1489, +0.3425, +0.1253, +0.4334, -0.4114, +0.0696, +0.1568, -0.1666, +0.3577, +0.0306, -0.6268, -0.6966, -1.0236, -0.4172, -0.5622, -0.1003, -0.5679, +0.1524, -0.3371], +[ -0.2767, +0.0972, -0.5547, -0.2201, -0.1170, -0.1576, -0.1602, +0.1382, -0.0808, +0.2028, -0.3989, +0.0158, -0.1357, -0.3024, -0.2257, -1.2166, -0.2502, -0.5230, -0.4460, -0.1411, -0.1846, -0.4805, -0.0032, -0.4232, -0.4742, -0.5456, -0.1574, -0.3298, +0.0333, -0.0440, -0.2283, +0.0253, -1.1936, +0.2652, -0.0474, -0.0169, -0.0632, +0.3591, -0.2793, +0.0314, -0.6320, -0.8212, -0.1199, -0.3018, +0.1836, -0.1475, -0.8715, -0.3799, +0.1702, -0.2543, -0.5776, -0.0772, +0.3332, +0.2767, -0.2859, +0.2075, -0.7332, +0.4793, -1.5267, +0.1474, -0.2003, +0.0032, -0.0866, -0.4733, -0.2157, -0.5489, -0.8860, +0.0229, -0.3014, +0.0358, -0.0763, -0.0744, +0.0927, -0.5832, +0.2188, +0.1248, -0.2539, -0.6919, -0.0873, -0.4554, +0.0821, +0.2124, +0.0322, -0.0390, -0.2129, +0.2774, +0.2383, -0.2737, -0.2540, -0.8198, +0.1893, -0.2351, -0.0728, +0.4741, -0.4950, -0.3812, +0.1700, -0.8968, +0.0391, +0.3027, -0.0014, +0.0654, -0.2479, +0.0851, +0.1058, +0.4011, -0.0536, -0.6038, -0.2781, -0.0519, +0.2117, -0.4242, -0.4415, -0.3171, +0.1510, -0.0039, -0.4738, -0.1233, -1.2393, -0.0213, -0.1457, +0.0515, -0.2666, +0.0735, +0.3065, -0.2219, -0.3103, +0.1352], +[ -0.1894, -0.3178, -0.2146, -0.0917, -0.3281, +0.3759, -0.3827, +0.2162, -0.2736, -0.5178, +0.1408, -0.1238, -0.0214, -0.0124, -0.3949, -0.3133, -0.1027, +0.0348, +0.2293, -0.1680, -0.6537, -0.2278, -0.2112, +0.2586, +0.1426, +0.0794, +0.0601, +0.1368, -0.2424, +0.1392, +0.0391, +0.1776, +0.3126, -0.4101, +0.1359, +0.2845, +0.2675, +0.1771, -0.1543, -0.3432, +0.1683, +0.2882, -0.1131, -0.1933, +0.1945, -0.3527, -0.2665, -0.0031, -0.8195, +0.0226, +0.0603, -0.0813, +0.2884, -0.1688, -0.1183, +0.3030, +0.2942, +0.2613, +0.0640, +0.1961, +0.0728, -0.1439, -0.3157, -0.0657, +0.1147, +0.2127, -0.5807, -0.3566, +0.2828, -0.3506, +0.0159, -0.3167, +0.1337, +0.1766, +0.2469, -0.0833, +0.2147, -0.1919, +0.2639, -0.0558, -0.4039, +0.1532, -0.2222, +0.2294, -0.1847, +0.1543, +0.0267, +0.3783, +0.4722, +0.1427, +0.2415, +0.4090, -0.4329, -0.2182, -0.1861, +0.4997, +0.0788, -0.5247, +0.1604, -0.1814, -0.3566, +0.2227, -0.0276, -0.1325, -0.4941, -0.2409, +0.1634, +0.2456, +0.3919, +0.1564, -0.3376, -0.0926, -0.0169, +0.0950, -0.1314, +0.0283, -0.3400, -0.4327, +0.0396, -0.1139, -0.0001, +0.0763, -0.4060, +0.3790, -0.1646, -0.7353, +0.0369, -0.0515], +[ -0.2086, -0.1809, -0.0925, -0.3050, -0.2023, -0.3849, +0.0063, +0.3838, -0.0679, -0.4047, +0.1106, -0.2605, -0.1714, -0.0836, +0.3509, -0.1618, -0.6817, -0.5073, +0.0951, +0.0166, -0.0730, -0.3489, +0.4669, +0.0451, +0.0663, +0.3284, -0.0380, -0.3944, -0.4299, -0.1957, -0.6752, +0.1119, -0.4006, +0.0351, +0.0977, +0.3906, +0.3201, -0.3789, +0.4969, +0.0857, -1.0318, -0.0316, +0.0653, +0.1053, -0.4342, -0.5321, +0.2690, +0.2056, +0.2295, -0.0461, -0.1716, -0.9352, +0.0156, +0.0124, -0.4358, -0.0842, -0.1229, +0.5391, -0.3714, -0.0735, -0.2581, -0.2032, -0.3048, -0.4434, -0.3753, +0.4077, +0.4080, +0.0238, +0.0651, +0.1965, +0.5052, -0.2532, +0.1327, -0.5991, -0.3155, +0.1131, -0.3228, -0.1098, -0.4889, -0.3557, +0.0582, -0.8156, +0.0351, +0.0854, +0.1539, -0.0416, +0.0878, +0.5755, -0.1741, +0.3042, +0.3049, -0.1249, -0.0155, -0.0495, -0.1473, -0.0890, +0.0657, -0.4408, -0.2135, +0.1564, +0.1787, -0.3268, -0.1219, +0.1648, +0.3581, -0.0800, -0.4765, +0.2241, -0.3060, +0.1448, -0.6599, +0.1232, -0.5561, +0.2646, -0.1117, -0.0416, -0.2256, -0.0567, +0.2988, -0.1756, -0.2153, -0.2089, -0.1916, -0.1445, +0.4029, +0.5686, -0.8428, -0.3141], +[ +0.4546, -0.2401, -0.8765, +0.1447, -0.3474, +0.2069, +0.0291, -0.3461, -0.5166, -0.2007, +0.2375, +0.0309, +0.1591, +0.2316, -0.3278, +0.0879, -0.1175, +0.1829, -0.3574, -0.0183, +0.0943, -0.8221, -0.0635, +0.1241, +0.2995, -0.4990, -0.1297, -0.0750, +0.0564, +0.3013, -0.3528, -0.0187, -0.6252, -0.0760, -0.0297, -0.3231, +0.2837, +0.0155, -0.1604, -0.0188, -0.0737, +0.1051, +0.2268, -0.8192, +0.0854, -0.4684, -0.0896, -0.1865, -0.2881, +0.2112, +0.1710, +0.1251, -0.1999, -0.2006, +0.0150, +0.2386, -0.2525, -0.2776, +0.0791, -0.1655, +0.2221, -0.6359, -0.4413, +0.0507, +0.0245, -0.1480, +0.0307, -0.4909, -0.2057, -0.5612, -0.2967, +0.0754, +0.0988, -0.4456, +0.4071, -0.3079, -0.5466, +0.1572, -0.0346, -0.5972, -0.1862, +0.0957, -0.8404, +0.3361, -0.0397, +0.1259, -0.0430, +0.4487, -0.1305, -0.0816, -0.4018, +0.0301, +0.0845, -0.3938, +0.0034, -0.1890, +0.1008, -0.2038, -0.0580, +0.0037, -0.3044, -0.2627, +0.2022, +0.0591, -0.0465, -0.3806, +0.5580, +0.0273, +0.3072, -0.0389, -0.3435, -0.2277, +0.1378, -0.0317, -0.0693, +0.2321, +0.4751, -0.1210, +0.2986, +0.1641, +0.0845, +0.1088, -0.0719, +0.0558, -0.0499, +0.1624, +0.3028, -0.0444], +[ +0.3694, -0.0619, -0.0750, -0.4331, -0.4578, -0.2562, -0.2689, +0.2755, -0.2460, -0.0051, -0.7781, -1.0708, +0.2076, +0.3512, +0.2633, -0.0265, -0.3566, -0.2862, -0.6983, -0.1114, +0.1958, +0.0863, -0.6004, +0.1575, +0.3171, -0.1933, +0.0496, +0.6272, +0.0932, +0.2021, +0.1328, -0.5198, -0.6713, -0.0838, -0.3921, -0.2568, -0.3613, -0.1204, +0.0601, -0.6830, +0.4960, -0.2160, -0.0535, -0.3319, -0.3293, +0.2971, +0.3285, -0.0228, +0.0649, -0.4740, +0.7016, -0.4892, -0.2840, +0.2251, -0.2327, -0.8171, +0.4519, -0.1815, -0.1825, -0.7546, -0.5589, -0.1238, -0.1216, +0.0837, -0.2976, -1.7269, -1.0251, +0.1344, +0.4895, +0.1124, +0.0124, -0.6756, -0.1620, +0.1031, -0.2471, -0.6356, +0.5671, +0.4402, -0.5158, +0.0154, -0.2029, +0.3559, +0.4752, +0.4763, -0.0111, -0.0330, -0.1440, -0.5386, -0.0265, -0.8968, +0.1154, -0.2805, -0.3890, -0.5239, -0.0655, -0.3710, -0.1921, -0.2713, +0.3029, -0.0201, +0.0902, +0.0504, -0.2419, +0.3148, +0.7004, +0.0841, +0.5304, -0.1880, +0.2689, +0.0060, -0.7380, +0.2010, -0.0502, -0.4943, -0.0261, +0.1489, -0.6708, -0.1913, -0.7632, +0.0502, -0.3367, +0.1165, +0.0408, +0.1340, -0.4637, -0.4536, -0.9485, -0.3013], +[ -0.1725, -0.1858, +0.0331, +0.3456, -0.1368, +0.2509, +0.2902, -0.2707, +0.3620, -0.4504, +0.2074, -0.3254, -0.3116, +0.1972, -0.2880, -1.5750, +0.1065, +0.2296, -0.3981, -0.6005, -0.0860, -0.1587, +0.1138, -0.0057, +0.1169, +0.1022, +0.0771, -0.5353, +0.2160, +0.2135, +0.0991, -0.0715, -0.2361, -0.5277, -0.3601, +0.1271, -0.8232, -0.9594, -0.1746, +0.2128, -1.2460, +0.0310, -0.3488, +0.0794, -0.8006, -0.0880, +0.2133, +0.1811, -0.1658, -0.1150, -0.9967, +0.0063, +0.0494, -0.8586, -0.2293, -0.2535, +0.0954, +0.3826, -0.7305, -0.5031, -0.1241, -0.4392, -0.9065, -0.0479, -0.2143, -0.5246, -0.2355, -0.4192, -0.0020, -0.1630, +0.0590, -0.1096, -0.0354, +0.1383, -0.4181, -0.1156, -0.9471, -0.5348, -0.0057, -0.9101, -0.0550, -0.8399, +0.2349, +0.0682, +0.1741, +0.3622, -0.2623, -0.3513, +0.1216, -0.1540, +0.0167, +0.0928, +0.2289, -0.5268, -0.5032, -0.5759, -0.2395, +0.1103, -0.2771, -0.3320, -0.1327, +0.0540, -0.1549, +0.5291, -0.0706, +0.0489, -0.3762, +0.0153, -0.0167, -0.4286, -0.6423, +0.8254, +0.0893, -0.5137, -0.0482, -0.1103, +0.0620, -0.0734, -0.2348, -0.2156, -0.4396, +0.8179, -0.1603, -0.0299, -0.6343, -0.8946, -0.3538, -0.3519], +[ -0.2354, -0.0994, -0.0970, -0.1210, -0.5758, +0.2825, +0.0853, -0.0817, +0.3374, +0.3253, -0.1718, +0.2518, -0.1108, -0.4627, +0.1909, +0.0746, -0.1913, -0.4916, -0.1558, -0.2477, +0.2525, -0.0559, +0.0598, +0.0704, -0.1778, +0.2072, -0.1712, -0.0083, -0.2989, -0.1084, +0.0435, -0.2145, +0.0225, +0.6034, +0.1502, +0.1591, -0.3021, -1.0728, -0.5351, +0.0799, +0.1981, -0.0034, +0.6635, -0.2042, -0.0471, +0.2838, +0.1760, -0.4701, +0.4796, +0.1516, +0.0430, +0.6459, +0.0252, -0.3035, -0.6315, -0.1916, -0.2847, -0.6922, +0.2426, -0.2787, +0.1770, +0.1493, -0.4729, +0.3312, -0.8047, -0.3841, +0.4028, -0.1849, +0.0628, +0.1960, +0.1757, -0.1554, -0.1836, -0.2858, +0.2676, +0.2611, +0.0566, -0.9536, -0.0094, +0.0276, -0.0257, -0.1097, +0.0644, +0.1793, +0.0124, +0.0730, -0.1807, +0.0420, -0.2505, +0.2622, +0.1184, -0.5243, +0.2392, -0.2308, +0.1152, -0.2640, -0.3274, -0.0795, +0.3790, +0.3166, +0.0136, -0.4956, -0.1574, +0.2242, -0.0071, +0.1597, -0.1925, -0.3563, -0.0431, +0.4689, -0.5352, +0.1372, +0.0079, -0.4182, +0.0542, +0.0660, +0.1484, -0.0518, +0.3963, -0.1329, -0.9245, -0.2170, +0.8141, -0.2753, +0.1995, -0.8927, +0.2048, -0.9033], +[ +0.1385, +0.2524, +0.2341, -0.0525, +0.0286, -0.1349, +0.1474, +0.1847, -0.0895, -0.2732, -0.0785, -0.3748, +0.4309, -0.1217, -0.1987, +0.1887, -0.1932, +0.0054, +0.0628, +0.3407, +0.3116, -0.1444, +0.0419, -0.1252, +0.2750, +0.1297, +0.0635, -0.2700, +0.3252, -0.4535, +0.1030, +0.0394, -0.4224, -0.1120, -0.3679, +0.0162, -0.2485, -0.2971, -0.0216, +0.1285, -0.2827, +0.0020, -0.0438, +0.0292, +0.1771, +0.1373, -0.0630, -0.4031, -0.1995, -0.0976, +0.1109, +0.2382, -0.1350, -0.0708, -0.3023, +0.0379, +0.2145, -0.2867, -0.5431, -0.0735, -0.3522, -0.4424, -0.4257, -0.7687, -0.1674, +0.3218, -0.2861, -0.5267, -0.1729, -0.4813, -0.4816, -0.4595, -0.2712, -0.2190, +0.2677, -0.1222, -0.3066, -0.1060, +0.2256, -0.0821, +0.0364, -0.5062, +0.0821, +0.1147, +0.1934, -0.4142, -0.1493, +0.2036, -0.3093, -0.0189, -0.2693, +0.2322, +0.1105, -0.3197, +0.2832, -0.1993, -0.2103, -0.6401, -0.2555, +0.1762, +0.1250, -0.1426, +0.0233, -0.0284, -0.0694, +0.2206, -0.0664, +0.3228, +0.1130, -0.2081, +0.1334, +0.0279, -0.2022, +0.3889, +0.1545, -0.3145, -0.6417, -0.2156, -0.0909, +0.1342, -0.0219, -0.5034, -0.4547, +0.0030, +0.2268, -0.6860, +0.0075, +0.1278], +[ -0.2374, +0.0805, +0.2663, +0.1124, +0.0258, -0.3193, +0.3090, -0.0598, +0.3276, +0.0092, -0.5305, -0.0264, -0.1383, -0.3224, -0.0795, -1.0162, -0.1734, +0.0706, +0.3049, -0.4068, +0.1737, -0.7058, +0.2571, +0.1217, -0.2815, -0.5398, +0.1680, -0.3644, -0.5849, +0.1535, -0.2410, -0.0299, +0.4319, -0.4040, +0.1864, -0.4186, +0.1141, -0.0188, -0.8473, -0.4871, +0.0764, -0.6763, -0.4378, -0.3592, +0.1187, +0.4060, -0.2282, -0.0395, +0.1306, -0.0833, -0.3435, +0.0764, -0.5312, -0.0791, +0.1757, +0.0578, -0.5238, -0.0140, -0.5122, -0.2480, -0.7816, -0.6827, -0.5802, +0.1869, +0.2833, +0.2551, -0.6782, -0.1467, -0.3754, -0.0426, +0.5844, -0.3302, -0.5216, -0.1696, +0.3585, +0.1013, -0.0017, +0.1690, -0.0158, +0.1443, -0.0728, -0.2636, +0.0779, -0.3160, +0.0778, -0.0808, +0.0080, -0.0362, -0.2650, +0.0755, -0.0979, +0.3609, -0.3260, +0.0995, -0.3250, -0.4137, -0.2061, -0.5269, -0.1452, +0.2401, -0.2095, +0.0808, -0.2633, +0.0889, +0.2723, -0.3161, +0.1089, +0.2698, -0.3279, +0.2626, -0.0076, -0.2605, +0.2754, +0.1855, +0.4763, -0.1059, +0.0752, +0.0249, +0.4125, -0.4099, -0.5385, -0.0468, +0.1375, +0.1461, -0.1498, +0.0242, -0.6608, +0.2718], +[ +0.3181, -0.0578, +0.2270, +0.2960, +0.3759, -0.0994, -0.0301, +0.0580, +0.0580, -0.1176, -0.0211, -0.1902, +0.0512, -0.2255, -0.8401, +0.0308, -0.1803, +0.0669, -0.0963, +0.4547, -0.1982, -0.0926, +0.4024, +0.3177, -0.3376, -0.2049, +0.0444, -0.3649, +0.2239, -0.0188, -0.1576, +0.0524, +0.3666, -0.1009, +0.0668, +0.0819, -0.1313, +0.4450, -0.6085, -0.3848, -0.6414, +0.2856, -0.1182, +0.0912, +0.0397, -0.5215, +0.3353, -0.2102, -0.5109, +0.0882, +0.1674, +0.0885, -0.3224, +0.0901, +0.3159, +0.4244, -0.4800, +0.1526, +0.0061, +0.1857, -0.0979, -0.2406, +0.0730, +0.1405, -0.0050, +0.1824, -0.0160, -0.2087, -0.1628, -0.2413, +0.2396, +0.6054, -0.6268, -0.0734, -0.1073, -0.1242, +0.2214, -0.4174, -0.5380, +0.4581, +0.1509, -0.7234, -0.9114, -0.0332, -0.2386, -0.0100, -0.2586, -0.2640, +0.0461, +0.1833, +0.1354, -0.3236, +0.1699, +0.1157, -0.0966, -0.5738, +0.1736, -0.4470, -0.5721, +0.3542, +0.4103, -0.3574, +0.4307, +0.0229, -0.1325, +0.3490, -0.0651, +0.1874, -0.2291, +0.0530, +0.3738, +0.1955, +0.1027, +0.1591, +0.2077, +0.2210, +0.1001, -0.3243, +0.2351, -0.3068, -0.1417, -0.0853, -0.3813, -0.3430, +0.1111, -0.3707, -0.4524, +0.3608], +[ +0.0381, -0.3280, -1.5348, -0.2310, +0.1609, +0.2576, -0.2199, +0.1194, +0.1368, +0.5134, -0.6136, +0.5420, -0.0032, +0.0184, +0.0213, -0.6279, -0.6801, +0.2122, -0.1931, +0.0708, -0.4318, -0.1370, -0.2482, -0.0169, -0.4338, -0.1085, +0.6117, -0.1325, -0.1302, +0.4041, +0.3929, -0.0002, +0.1998, +0.0515, -0.3162, +0.4465, -0.1745, -0.3913, -0.5087, -0.1100, -0.2249, -0.2461, -0.2671, +0.1915, +0.0139, +0.0838, -0.3395, -0.1856, +0.2210, -0.0315, +0.2527, -0.0433, -0.1347, +0.2930, -0.2082, +0.2286, +0.0255, -0.2495, -0.3158, -0.3498, +0.3091, -0.0525, -0.1256, -0.3423, -0.0553, -0.0529, +0.1197, -0.7197, +0.7501, +0.0290, -0.0370, -0.6256, +0.0000, +0.0983, -0.4345, +0.0663, +0.1609, +0.0146, +0.2122, +0.1216, +0.1759, +0.0309, -0.4094, +0.2527, +0.0841, +0.4982, -0.1519, -0.1223, +0.0607, -0.1248, +0.2532, +0.1901, +0.1263, -0.2375, -0.1312, -0.2293, -0.2532, +0.5176, -0.2599, -0.0855, -0.1362, -0.5210, +0.0224, +0.3870, +0.2114, +0.3244, +0.4654, -0.7012, -0.0922, -0.9771, -0.2505, +0.5230, -0.5313, -0.5063, -0.0315, -0.5956, +0.0800, -0.0199, -0.1976, -0.9358, -0.4071, -0.1917, +0.1467, -0.2294, -0.1170, +0.0695, +0.1403, -0.4278], +[ +0.1029, +0.1445, +0.3256, -0.0877, +0.5028, -0.2229, -0.0061, +0.0184, -0.3173, -0.1645, +0.6963, -0.0568, -0.6695, -0.3263, -0.1246, -0.6652, -0.0307, -0.2701, -0.3961, +0.3665, -1.0864, +0.1994, +0.3494, +0.1447, +0.2856, +0.1528, +0.2521, +0.0676, -0.0895, -0.1963, +0.1029, -0.0675, +0.0657, -0.0773, -0.4179, +0.1854, -0.9043, -0.3480, +0.0186, -0.0853, -0.3580, -0.6232, +0.1994, -0.3973, +0.1558, -0.2424, -0.6349, +0.2492, +0.0654, -0.4719, -0.6174, +0.2362, -0.4908, -0.0194, -0.0402, -0.0680, -0.0284, -0.0382, -0.3183, +0.0208, -0.7145, +0.0223, +0.0710, -0.5593, +0.3360, -0.0591, -0.3271, -0.2059, +0.4912, +0.3903, -0.0288, +0.5235, +0.3245, +0.0820, -0.1104, +0.0020, -0.2973, -0.7333, +0.1925, -0.1251, +0.1177, +0.4494, +0.1400, -0.5209, -0.1851, +0.0925, +0.1926, +0.3427, -0.2087, +0.1852, -0.5303, -0.7136, -0.2598, -0.3725, +0.3738, +0.6966, -0.7630, -0.4744, +0.1341, -0.0536, -0.2411, +0.4594, +0.1060, +0.2383, -0.1521, -0.0214, -0.0980, +0.0557, +0.4497, +0.1257, +0.0278, -0.0656, -0.5980, -0.0110, +0.0955, +0.4506, -0.4515, +0.1015, +0.1491, +0.0256, +0.0409, -0.2116, -0.1528, +0.1721, +0.4331, -0.5740, -0.1334, -0.1490], +[ +0.2384, +0.1767, +0.1947, +0.0587, +0.0436, -0.4647, +0.0460, -0.3978, +0.3851, -0.6429, -0.0757, +0.0771, +0.3342, -0.5142, -0.0504, -0.0614, +0.1761, +0.2849, -0.0273, -0.2299, -0.0279, -0.1199, -0.2008, +0.3238, +0.1584, +0.2584, +0.0005, -0.0247, +0.1486, -0.0961, -0.2141, +0.0457, +0.2077, -0.4971, +0.2886, -0.0251, +0.2316, -0.0343, +0.2933, +0.2489, +0.1717, +0.3198, +0.1717, -0.0490, +0.0506, -0.7074, -0.2308, -0.2186, +0.1620, +0.0328, +0.1614, +0.1332, -0.0487, -0.3712, -0.2751, -0.1583, +0.2474, +0.0419, -0.4341, -0.2045, +0.1139, -0.0188, -0.3290, -0.0657, +0.0096, -0.2058, -0.4276, -0.1128, -0.2121, +0.3103, -0.1906, +0.0304, +0.1177, -0.0511, +0.1057, -0.7063, +0.3458, -0.2067, -0.0213, +0.1076, +0.0151, -0.1120, -0.2189, +0.1475, -0.0077, -0.3843, -0.2418, -0.6991, +0.1953, -0.4116, -0.1400, +0.1521, -0.5215, -0.1150, -0.0251, +0.0277, -0.0684, -0.0070, +0.2457, +0.2435, -0.0386, -0.0929, -0.0177, -0.2300, +0.0347, +0.1269, -0.1599, +0.2427, -0.3234, +0.0156, -0.2406, -0.1611, -0.2369, +0.1289, -0.1268, -0.1186, -0.2554, +0.1911, +0.3922, -0.7103, -0.2174, -0.3823, +0.1010, +0.1203, +0.4065, -0.1545, +0.3333, -0.1270], +[ +0.0320, +0.3374, -0.2328, -0.5468, +0.3057, +0.0867, +0.1920, +0.3238, +0.0958, +0.0865, -0.0978, -0.9149, +0.3992, -0.7304, -0.7107, +0.1157, +0.3527, +0.1362, -0.1631, -0.1291, -0.1038, +0.0851, +0.2969, -0.1787, -0.1327, -0.0016, -0.3977, -0.2473, -0.1113, -0.3001, +0.5036, -0.0856, +0.1597, -1.0896, +0.3766, +0.1266, +0.0147, -0.7126, +0.2683, -0.3971, -0.2376, +0.1728, +0.0654, +0.0889, -0.2988, +0.0767, +0.1215, -0.4817, -0.0649, -0.0350, -0.6930, -0.2363, -1.2543, -0.0226, -0.2209, +0.0390, +0.2717, -0.1385, -0.3073, -0.1550, -0.5586, -0.4812, +0.2852, -0.0278, -0.2483, +0.0254, +0.4223, -0.1026, -0.3841, -0.1561, +0.2930, +0.3772, -0.0625, -0.0882, +0.2467, +0.1206, -0.0632, +0.2479, -0.1358, +0.0352, -0.0730, +0.1995, +0.1430, +0.0082, -0.1685, -1.1753, -0.7206, -0.2929, -0.0186, -0.2444, +0.4176, -0.7420, -0.0811, +0.1876, -0.1151, +0.1599, -0.1971, -0.5971, -0.1488, +0.1225, +0.0460, -0.0519, -0.1219, -0.1250, -0.1093, -0.2462, -0.2120, +0.1604, +0.1361, +0.2755, +0.0633, +0.2230, +0.6084, +0.2955, +0.1139, +0.0836, -0.5077, +0.2327, +0.0441, -0.7536, -0.2307, +0.0111, +0.2659, -0.3169, -0.3589, -0.0047, -0.0293, -0.1917], +[ +0.1849, +0.4786, +0.1204, -0.3298, +0.2282, +0.3278, -0.1501, -0.0854, -0.0439, -0.2816, -0.5327, +0.3156, +0.3149, -0.0344, -0.1886, -0.4860, -0.1034, +0.0903, +0.0569, +0.1075, +0.0721, +0.1677, -0.0501, +0.3348, -0.2958, -0.5643, -0.5416, -0.0616, +0.0486, -0.2416, +0.0556, -0.1499, -0.1884, +0.0063, -0.0879, +0.2615, +0.2102, -0.0322, +0.5728, -0.7324, -0.6729, -0.1240, -0.0435, -0.2956, +0.3191, -0.2177, -0.0368, -0.0261, -0.0666, -1.2822, -0.0419, -0.2362, -0.0318, +0.3002, +0.0324, -0.0798, +0.2130, +0.1350, +0.0346, +0.2781, +0.3518, +0.3837, -0.2617, -0.9864, -0.1951, +0.0896, +0.1452, -0.0149, -0.4673, -0.2097, +0.2540, -0.3603, -0.2436, -0.5239, +0.0675, -0.2038, -0.4511, -0.9040, +0.2373, +0.2649, -0.7154, -0.0777, -0.2655, +0.0074, -0.6301, +0.3651, -0.2757, +0.0316, -0.1454, -0.0407, -0.5047, -0.4833, -0.3325, +0.1745, +0.2487, +0.3029, +0.5754, +0.1331, +0.2339, -0.5040, -0.7949, +0.3252, -0.3651, -0.0125, -0.1580, +0.0285, -0.0523, -0.2012, -0.0764, -0.1872, +0.4235, -0.7683, +0.5005, +0.1516, -0.1920, +0.3039, -0.3789, -0.1149, -0.4491, +0.1532, -0.0276, -0.5430, -0.1058, +0.0728, -0.0873, -0.0693, -0.2627, -0.4874], +[ +0.1766, +0.2027, +0.2184, -0.2155, +0.2002, -0.0767, +0.0247, +0.0769, +0.1097, -0.5324, +0.0716, -0.6547, +0.1549, -0.3553, -0.1583, -0.6442, +0.2656, -0.0242, -0.2430, +0.2241, +0.1981, +0.1088, +0.0831, -0.5510, +0.1084, -0.6368, +0.1111, -0.5365, -0.3738, +0.3743, -0.1497, +0.1148, -0.3921, +0.0518, -0.0321, -0.2311, +0.2755, -0.7492, -0.4376, -0.2182, -0.6939, -0.8483, -0.2843, -0.1963, -0.2650, -0.1096, -0.1861, +0.0298, +0.0037, +0.1153, -0.3358, -0.3163, +0.0478, -0.3209, -0.0710, +0.3083, -0.2630, -0.1924, -0.1803, -0.1369, -0.3061, -0.1886, -0.0521, -0.0039, -0.4548, -0.3571, +0.1289, +0.0565, -0.3850, -0.1660, +0.3697, +0.0093, +0.1096, -0.7151, -0.5122, -0.1048, -0.0407, +0.1807, -0.2780, -1.1252, -0.0171, -0.0800, -0.1387, -0.5066, -0.1341, -0.4523, +0.2285, +0.1949, +0.2985, -0.3676, -0.0402, +0.3106, -0.1804, -0.1138, -0.1518, +0.0386, -0.1846, +0.4102, +0.1630, -0.3054, +0.1310, -0.0050, +0.1931, +0.2023, -0.4601, -0.4869, -0.1454, -0.7915, -0.8167, -0.1141, -0.0829, -0.5105, -0.2998, +0.1506, +0.1659, -0.0161, +0.1262, -0.2265, -0.0906, -0.1643, -0.0997, -0.7213, -0.4537, -0.1466, -0.3031, -0.1776, -0.3410, +0.3465], +[ -0.0680, -0.5316, -0.5061, -0.0773, -0.3060, -0.2216, -0.6029, -0.1825, -0.1359, +0.2300, +0.0623, +0.0920, +0.0022, -0.1120, -0.1106, -1.1256, +0.0279, -0.3801, +0.0112, +0.1688, +0.1709, -0.5387, -0.0696, -0.3568, -0.4497, +0.4913, -0.0399, -1.3545, -0.2932, +0.1045, +0.3458, -0.4757, -0.0703, -0.1544, -0.6656, +0.3997, -0.0279, +0.2120, -1.2224, -0.6230, -0.4677, -0.1049, +0.2119, -0.1797, -0.4644, -0.1679, +0.2749, -0.1451, -0.4456, +0.3104, -0.4102, +0.3043, +0.5440, -0.1511, +0.1171, +0.3151, -0.0670, -0.1808, -0.5695, -0.5017, +0.0862, -0.3984, +0.0258, -0.5704, +0.1754, -0.0489, +0.0302, +0.4248, -0.1910, -0.5007, -0.2559, -0.0414, -0.1863, +0.1481, -0.0454, -0.3999, +0.0606, +0.1871, +0.1180, -0.0014, -0.4116, -0.8299, +0.6789, +0.0242, -0.2057, -0.3620, +0.0898, +0.4069, +0.0505, +0.1478, -0.2953, -0.1294, +0.3536, -0.2027, -0.1965, +0.2124, -0.0305, -0.1242, +0.3511, +0.0112, -0.1523, -0.2483, +0.1767, +0.0946, -0.0883, -0.2642, -0.1009, -0.1412, -0.1936, -0.0337, -0.0854, +0.1496, +0.1209, +0.1613, -0.2123, -0.5184, -0.5626, -0.1087, -0.1012, -0.6158, -0.7041, -0.4685, -0.8154, +0.2760, -0.2103, -0.1968, +0.0849, -0.3954], +[ +0.2532, +0.4208, -0.3291, -0.5551, -0.1859, -0.1518, -0.2786, +0.0658, -0.6929, -0.2819, -0.2395, +0.1718, +0.0343, +0.0182, +0.0734, -0.8299, -0.2525, +0.1285, +0.0562, -0.1593, -0.2454, -0.1303, -0.2009, -0.2577, +0.2121, -0.4224, -0.4803, -0.2205, +0.4951, -0.0603, -0.0738, -0.0561, +0.2528, -0.7239, +0.2362, -0.1281, -0.2817, -0.0915, -0.3098, -0.3482, -0.1657, +0.1685, +0.0365, -0.1210, -0.4351, +0.1768, -0.2815, -0.2552, -0.8653, +0.2226, +0.4609, -0.5362, -0.1000, -0.5827, -0.6283, -0.1828, -0.5187, -0.4818, -0.2862, -0.3698, -0.4264, +0.5897, +0.3011, +0.1451, +0.1300, -0.6738, +0.1766, +0.4159, -0.1141, +0.4150, -0.2877, -0.4758, +0.0208, +0.0290, -0.1260, -0.2702, -0.7108, -0.0338, +0.2733, +0.0843, -0.0556, -0.0368, +0.0105, -0.3436, +0.0248, -0.1892, -0.2123, -0.0928, +0.2068, -0.3971, +0.1089, +0.3620, -0.1929, -0.5377, -0.1463, -0.1753, -0.1031, -0.2935, +0.4052, +0.0367, +0.0097, -0.5875, +0.1436, -0.4216, -0.0872, -0.2351, -0.3716, -0.1434, -1.0513, +0.2828, -0.1845, +0.1664, -0.1173, +0.2712, +0.0878, -0.7084, -0.6339, -0.4937, +0.1035, -0.2160, -0.4060, -0.2531, -0.6691, +0.1202, +0.2531, -0.0490, +0.5874, +0.0633], +[ -0.6739, +0.0277, -0.9564, -0.5067, -0.5287, +0.0684, -0.5332, -0.2934, +0.2182, +0.1192, -0.4239, -0.3156, -0.0208, +0.4953, -0.3716, -0.3657, -0.4834, -0.1870, -0.1509, -0.3200, -0.0222, +0.0546, +0.3764, +0.5946, -0.4095, +0.2046, -0.2208, +0.1072, -0.4266, -0.7344, -0.1398, -0.3482, +0.1835, +0.0850, -0.2169, -0.1673, +0.1917, -0.0598, -0.0835, +0.3213, -0.4629, +0.0055, -0.0855, -0.0968, -0.6663, -0.4341, -0.3010, -0.5688, +0.2849, +0.1352, -0.1461, +0.0679, +0.1243, +0.0837, +0.2299, +0.3890, +0.3232, +0.8568, -0.3093, +0.1023, -0.1423, -0.0950, +0.3483, -0.0398, -0.8729, +0.0589, -0.3755, -0.1726, -0.2203, -0.3867, -0.0227, -1.0963, -0.0057, +0.0516, -0.2886, +0.1596, +0.2880, +0.1165, +0.0612, +0.2892, -0.6804, +0.2979, +0.1742, -0.0116, +0.2316, -0.0595, +0.0568, -0.5258, -0.2719, -0.4404, +0.1292, +0.1016, +0.7038, -0.0262, +0.5274, -0.0229, +0.0430, +0.2201, +0.1085, -0.0375, +0.1192, -0.0778, +0.0535, -0.5996, +0.3843, -0.5089, +0.0677, -0.2134, -0.5909, +0.0015, -0.7516, +0.0565, +0.0375, -0.5614, -0.1333, +0.2093, -0.0427, -0.4205, -1.4405, +0.3511, -0.1710, -0.5402, -0.2186, -0.1229, -0.5740, -0.1826, -0.0947, -0.2646], +[ -0.4790, -0.0459, -0.7397, -0.1887, -0.0117, -0.0881, -0.2339, +0.4489, -0.2226, -0.2678, -0.4339, -0.5233, -0.4704, -0.2454, -0.6791, +0.5416, +0.1632, +0.0939, +0.2976, +0.4227, -0.4494, -0.5834, -0.0442, +0.0945, -0.4829, -0.1668, +0.1462, -0.0841, +0.0265, -0.5589, +0.1268, +0.6885, +0.1927, -0.3751, +0.1673, +0.2637, +0.1409, -0.2660, +0.0257, -0.0269, -0.2051, +0.4255, -0.1496, +0.1084, -0.0217, -0.2359, -0.1428, -0.1115, -0.7085, -0.6233, -0.0985, -0.1075, -0.1553, -0.2027, +0.1923, +0.0471, +0.2331, -0.7869, -0.1220, +0.1538, +0.1171, -0.1364, +0.2306, -0.3217, -1.2153, -0.2076, -0.1103, -0.3231, -0.6678, -0.4851, -0.1963, -0.6715, -0.6025, +0.2298, -0.4343, -0.1760, -0.4037, -0.2442, +0.2234, -0.1880, +0.2596, -0.1924, -1.0538, +0.1892, -0.1999, -0.0033, -0.0755, +0.0571, -0.3725, +0.0816, -0.3538, -0.3673, -0.1607, -0.7918, +0.1611, +0.4097, -0.2851, +0.3155, +0.2837, -0.7129, +0.2556, -0.7155, -0.2264, -0.0045, +0.2039, -0.0958, -0.3221, +0.1626, -0.3246, -0.3097, -0.1555, -0.0424, -0.0175, +0.2186, -0.0899, -0.3513, -0.3811, -0.4246, -0.1244, -0.1209, +0.1675, -0.5267, -0.0279, +0.4418, +0.0478, +0.1246, +0.0393, -0.4219], +[ -0.3571, +0.0904, -0.8551, +0.4132, -0.0919, +0.3857, +0.2689, +0.2051, +0.1931, -0.3377, -0.3208, -0.0723, -0.1699, +0.0462, -0.1263, +0.0483, +0.1950, -0.1277, +0.0313, +0.2242, +0.0103, -0.2061, +0.0631, +0.1930, -0.0647, -0.4123, +0.1690, +0.1474, +0.1182, -0.5403, +0.3640, +0.0169, +0.3996, +0.2360, +0.2264, +0.0977, -0.4711, +0.3267, -0.2800, -0.4045, -0.0261, -0.0814, -0.1084, +0.0173, +0.0070, -0.1826, +0.1416, -0.3700, +0.1904, +0.3461, -0.8709, +0.2058, -0.0601, -0.1735, -0.1307, -0.0786, -0.0667, +0.0989, -0.1120, +0.5435, +0.2793, +0.3009, -0.1373, +0.1923, +0.3372, -0.0255, -0.4204, +0.0504, +0.2350, +0.1833, -0.0786, -0.2449, -0.0600, -0.1826, -0.6286, -0.0817, -0.2410, +0.1011, +0.2879, -0.7720, +0.0685, -0.5338, -1.0387, -0.2374, +0.0941, +0.2234, +0.1887, -0.6712, +0.0789, +0.0920, -0.1733, +0.2348, +0.3533, +0.5173, -0.2887, +0.1298, -1.0297, -0.0811, +0.3376, +0.4740, -0.3197, -0.1907, -0.1645, -0.5704, -0.1747, +0.1463, +0.3165, +0.3489, -0.0581, -0.2501, +0.1131, -0.1146, -0.2154, -0.1804, -0.2339, -0.2814, -0.5182, -0.3433, +0.3677, +0.2729, -0.1904, -0.0585, -0.7208, +0.3472, -0.0146, +0.2520, -0.2723, -0.5874], +[ -0.5168, -0.1916, +0.0044, -0.2001, -0.4914, -0.2367, +0.1037, -0.3593, -0.2739, +0.0966, -0.4070, -0.6904, -0.6564, +0.0903, -0.2040, +0.4127, -0.4820, +0.1590, +0.1689, -0.6444, +0.2427, +0.0580, -0.2541, -0.0060, +0.1797, -0.7206, +0.0552, -0.2466, +0.0206, +0.4403, +0.2936, -0.4458, +0.1578, -0.2735, +0.1138, +0.3035, +0.3536, -0.0996, -0.1689, -0.0803, +0.0302, -0.0041, +0.2768, +0.0295, -0.5365, -0.1148, +0.1867, +0.4169, +0.1963, -0.1607, +0.4705, -1.0241, +0.4417, +0.1275, -0.7696, -0.2660, +0.0380, -0.2972, +0.3949, +0.7762, -0.3281, +0.0599, +0.3288, -0.4384, -0.1356, -0.1655, +0.0742, -0.2041, -0.1239, -0.1804, +0.2637, +0.0942, -0.1011, -0.2973, -0.4499, +0.0090, +0.1412, -0.2019, +0.0945, +0.1347, -0.1332, -0.3886, +0.1739, +0.1864, +0.0391, -0.0350, +0.3963, -0.2367, +0.0131, -0.5565, -0.2354, +0.3302, +0.1141, -0.2861, -0.4460, +0.4304, -0.1393, -0.4753, -0.1158, -1.3481, +0.0292, -0.1015, -0.1453, +0.2802, +0.0700, -0.3325, +0.0110, +0.2497, +0.0056, +0.3542, -0.2658, +0.2565, +0.1598, -0.0339, -0.3039, -0.2208, -0.2119, -0.0196, +0.2157, -0.3472, -0.3380, -0.0314, -0.3920, -0.3210, +0.3201, -0.8747, +0.1812, +0.0732], +[ -0.5735, -0.1147, -0.1845, -0.0670, -0.3959, +0.0605, +0.0751, -1.3236, -0.2729, -0.0563, +0.0870, -0.2487, -0.2976, -0.1418, -0.0036, -0.3945, +0.2133, +0.1156, +0.0328, -0.2110, -0.0954, +0.0828, +0.0342, +0.2200, -0.0155, -0.2676, +0.1296, +0.2238, +0.3469, -0.4331, +0.3707, -0.0087, +0.2342, -0.1123, -0.2393, +0.0042, -0.7079, -0.5531, -0.2589, -0.1329, -0.2473, -0.0557, -0.1092, -0.1055, +0.3648, +0.0103, -0.2566, +0.0428, +0.3451, -0.1363, -0.5322, -0.7636, -0.3877, +0.2084, +0.0500, -0.9000, +0.0186, -0.6299, -0.6176, +0.2841, -0.6676, +0.1776, -0.3414, -0.3621, -0.4323, -0.8091, +0.1711, -0.5524, -0.1845, -0.1440, +0.2521, +0.3597, -0.2215, -0.0636, -0.1948, -0.0981, -0.0632, +0.3646, -0.7443, -0.2697, +0.0858, -0.1100, -0.2158, +0.2193, -0.1480, -0.7157, +0.0280, +0.1051, -0.2165, -0.0942, -0.0988, -0.0529, +0.1711, +0.5135, -0.4368, +0.2158, -0.1203, +0.2175, +0.0274, -0.1588, +0.0862, -0.2315, +0.2650, -0.4179, +0.0053, +0.2025, +0.1570, -0.4194, +0.3459, -0.6148, -0.0766, -0.5666, +0.1655, -0.1656, +0.0047, +0.1534, +0.0364, -0.1854, -0.0359, -0.1716, -0.3132, -0.1275, +0.3301, +0.0841, +0.0211, -0.1663, -0.1611, +0.3612], +[ -0.3046, +0.1990, +0.3593, -0.0441, +0.0111, -0.3952, +0.0887, +0.2970, +0.0432, -0.3783, -0.1590, -0.1455, +0.0672, +0.3143, -0.4494, -0.2105, -0.2141, -0.5621, -0.5350, +0.1795, +0.0950, -0.6389, -0.1119, -0.3228, -0.1351, -0.0998, +0.1916, -0.6883, -0.0802, -0.2211, -0.4179, -0.4322, -0.1921, +0.2114, -0.3894, +0.3510, -0.8963, -0.2446, -0.3355, -0.2554, +0.3715, -0.0832, +0.3089, +0.1687, -0.4003, +0.2255, +0.0172, -0.0353, -0.3352, +0.1071, -1.2214, -0.2593, +0.1820, -0.3545, +0.0520, +0.0625, -0.3255, +0.0246, -0.9975, +0.5751, -0.1415, +0.1819, -0.1992, +0.0300, -0.1407, -0.6492, +0.0380, -0.1231, -0.0581, +0.2151, +0.2173, +0.0064, -0.1583, +0.0302, +0.0198, -0.1276, -0.3126, -0.2499, -0.7244, -0.5974, -0.0122, -0.3023, -0.3659, +0.0236, -0.8076, -0.0052, -0.4533, +0.1279, +0.1329, -0.4658, -0.5219, -0.0994, -0.3155, -0.2044, -1.4585, -0.4960, +0.6144, -0.2893, +0.0656, -0.3623, +0.0771, -0.0557, -0.3057, -0.0149, -0.1504, +0.1180, -0.0191, -0.2747, +0.1425, -0.5355, -0.2589, -1.0663, -0.0238, +0.2357, -0.0646, -0.8185, -0.0544, +0.0328, -0.0684, -0.0288, -0.6393, +0.0760, -0.3438, -0.4502, -0.1043, +0.2516, +0.2664, -0.2895], +[ +0.0107, -0.3197, +0.2582, +0.1588, -0.7646, -0.7069, -0.4099, +0.1225, +0.2743, -0.3283, -0.0027, +0.1298, -0.1093, +0.4504, -0.1028, -0.5416, -0.2146, +0.2392, -0.0145, +0.1768, +0.0453, +0.1953, -0.8660, -0.5489, +0.0746, +0.3120, +0.1501, +0.0138, -0.7171, +0.1558, -0.8054, +0.0637, -0.3851, -0.4554, -0.0707, +0.0844, +0.1226, +0.0906, -0.6054, +0.5808, +0.0931, -0.4798, -0.1459, -0.3292, +0.1951, -0.2652, -0.2279, -0.5004, +0.7729, -0.2178, -0.6389, -0.2515, +0.1850, -0.6675, -0.0282, -0.3199, +0.1368, +0.3026, -0.4689, -0.0329, +0.2913, +0.0254, -0.3636, -0.1038, +0.1523, +0.1738, -0.1826, +0.0448, -0.0613, -0.0619, +0.0614, -0.1873, -0.3742, +0.0553, -0.1018, +0.0197, +0.1035, -0.2413, -0.4748, +0.2443, -0.1595, +0.1139, -0.2503, +0.3971, -0.5707, -0.6110, +0.3676, -0.6585, -0.0983, -0.8527, +0.5715, -0.5112, +0.0883, -0.1990, -0.1421, +0.5473, -0.0631, -0.3381, -0.0705, +0.2045, -0.3428, -0.3719, +0.1965, -0.4464, -0.2206, -0.0407, -0.3212, -0.0742, -0.0010, -0.0920, +0.0179, -0.1233, -0.4241, +0.0697, +0.0483, -0.4507, -0.7664, -0.4521, -0.2175, -0.3721, -0.3304, -0.2537, +0.1789, -0.2410, -0.0701, +0.3168, -0.2336, -0.2128], +[ +0.1155, -0.0102, +0.4249, -0.0738, -0.5340, +0.0663, -0.0927, +0.1452, -0.3015, -0.2405, -0.6384, +0.0373, -0.0334, +0.1594, -0.0984, -0.3201, +0.3151, -0.3141, -0.0241, -0.2851, +0.0472, +0.5239, +0.2989, +0.0661, +0.0884, +0.1384, +0.1193, +0.3296, -0.3185, +0.2506, +0.1458, +0.1626, +0.2309, -0.3974, -0.0698, -0.1044, +0.0031, -0.5501, +0.0439, -0.7990, +0.2289, -0.1844, +0.3783, -0.4319, +0.1479, -0.1089, -0.0206, +0.0524, +0.2799, +0.1135, -0.2630, -0.3034, -0.0279, -0.3430, -0.3194, +0.2728, -0.2198, +0.0995, -0.5879, -0.0968, -0.6351, -0.2687, +0.2761, -0.1994, +0.1186, +0.0766, -0.0157, -0.4284, +0.4550, +0.0266, +0.1227, +0.1949, +0.0795, -0.1303, -0.0641, -0.2911, -0.2093, +0.1755, +0.3525, +0.2074, +0.0776, +0.0871, -0.4309, +0.0466, +0.2179, -0.7288, -0.3884, +0.0433, +0.0226, -0.5845, -0.3762, +0.1555, -0.1571, +0.1242, -0.0361, +0.0694, -0.0607, -1.1456, -0.2432, +0.2734, -0.0147, +0.0134, -0.1083, -0.1578, +0.2299, +0.1616, +0.3512, -0.1246, +0.1847, -0.1015, +0.3420, +0.1070, +0.0237, +0.1442, +0.0974, -0.0842, -0.0235, +0.2302, -0.1871, +0.0759, -0.7443, +0.0672, -0.9173, -0.2906, +0.2102, -0.0130, -0.7445, +0.2416], +[ +0.0570, -0.1107, -0.1294, +0.2502, -0.2984, +0.0134, +0.2178, -0.2031, -0.0498, -0.9746, -0.1293, +0.3008, -0.2820, +0.2322, +0.0366, +0.0613, -0.2685, +0.0761, +0.0324, +0.6167, -0.0038, -0.3098, +0.1486, -0.2141, -0.1495, -0.0758, -0.0287, -0.1225, -0.0489, -0.2928, -0.0031, -0.2655, -0.2361, +0.0487, +0.1637, -0.0362, -0.6581, -0.2809, -0.2362, -0.3010, -0.2808, +0.1002, +0.3643, +0.1101, -0.5130, -0.1977, -0.7063, +0.0310, -0.1288, -0.0684, -0.2172, -0.9830, -0.9522, +0.2543, -0.2441, -0.2201, -0.3622, -0.6192, -0.0511, -0.3572, -0.2073, -0.3067, -0.5459, -0.8507, +0.1938, -0.8735, -0.1393, +0.1941, -0.5221, -0.2935, -0.1622, +0.2692, -0.6518, -0.0784, -0.0032, +0.0453, +0.0612, +0.0740, +0.0828, -1.5962, -0.0105, -0.2185, +0.1251, +0.2271, -0.0830, -0.3206, +0.2678, -0.3253, +0.1302, -0.2226, -0.3965, +0.0605, +0.2157, +0.0511, +0.1486, -0.0471, -0.7112, +0.1349, +0.0479, -0.3281, +0.0545, -0.1693, +0.1596, +0.0366, +0.3659, +0.4518, -0.5676, +0.0444, -0.4920, -0.4001, -0.3816, -0.3445, +0.3152, +0.2686, +0.0873, -0.6441, -0.1246, +0.0525, -0.0302, -0.6167, -0.3785, -1.3627, -0.6195, -0.2583, -0.0883, +0.0941, -0.0932, +0.1709], +[ -0.0902, -0.0489, -0.5621, +0.1108, -0.0253, +0.2008, -0.0230, -0.1481, -0.1891, -0.0729, -0.0272, +0.0692, +0.0149, +0.4408, +0.5853, +0.1148, -0.5399, +0.1653, -0.0507, -0.0729, +0.0799, -0.5047, +0.0211, +0.0545, -0.1527, -0.0146, +0.1207, +0.2242, +0.5105, -0.1659, -0.3076, +0.0075, -0.0780, -0.0728, -0.9238, +0.0010, -0.2337, +0.1043, +0.3628, -0.3925, +0.0371, -0.0933, -0.1642, -0.4299, +0.1116, +0.3309, +0.1078, -0.1654, +0.1247, -0.0723, +0.1428, -0.0070, +0.2646, -0.2366, -0.2596, +0.0486, +0.1331, -0.3141, +0.2621, +0.1173, +0.1017, +0.3161, -0.3979, +0.0467, -0.0058, -0.1483, -0.4923, +0.3230, +0.3847, -0.8560, -0.1140, -0.2858, +0.0235, +0.0051, +0.2581, -0.1739, +0.0148, -0.0270, -0.1098, -0.4381, +0.2964, +0.0043, -0.2012, +0.3487, +0.0805, -0.3836, +0.3054, -0.2178, -0.1003, -0.8272, -0.8094, -0.1763, -0.4160, -0.0718, +0.0883, -0.5837, -0.0250, -0.2355, +0.2095, -0.3145, -0.4140, -0.1567, +0.1556, -0.1557, -0.0385, +0.4225, -0.4201, +0.4154, -0.1397, +0.0064, -0.4551, +0.0587, -0.3060, +0.2072, -0.1990, -0.6681, +0.4071, +0.1429, +0.1864, +0.0583, +0.3094, +0.1376, -0.0151, +0.2482, +0.0534, +0.3590, -0.0524, +0.0072], +[ +0.2165, -0.0784, +0.4527, -0.2131, -0.0842, -0.2151, +0.2852, +0.3085, -0.0545, +0.0476, -0.3126, -0.1004, -0.3292, -0.3253, -0.0299, -0.3426, -0.6258, +0.2322, +0.1995, -0.7055, -0.4208, -0.2351, +0.5525, -0.0116, -0.1168, +0.3035, -0.4497, -0.0070, -0.6314, +0.2021, +0.2401, -0.6943, +0.6166, +0.0522, -0.1277, +0.0814, +0.1048, -0.1549, +0.0236, -0.0543, +0.1134, -0.1267, +0.0161, +0.0846, -0.3257, +0.3672, +0.4620, -0.0554, -0.6860, -0.5655, -0.0291, -0.0336, -0.0591, -0.0668, +0.4952, -0.6696, -0.6313, -0.4199, +0.1644, -0.1448, +0.3275, +0.0785, +0.1629, -0.3694, -0.0415, +0.3981, -0.3228, -0.4313, -0.2086, -0.3006, +0.0319, -0.1707, -0.6463, +0.4033, -0.2931, -0.2915, -0.0374, -0.5228, -0.0761, -0.0541, -0.0648, -0.4858, -0.3321, +0.0406, +0.0690, +0.1793, +0.3161, +0.3441, -0.1787, +0.1655, +0.1323, +0.0511, -0.5903, -0.4039, -0.5803, -0.0993, +0.0511, -0.4996, -0.2091, -0.8687, +0.3873, -0.8987, -0.7894, +0.4019, +0.2001, -0.0819, -0.2723, -0.1041, -0.0835, +0.3914, -0.1363, -0.0651, +0.1017, +0.1881, -0.1245, +0.1765, +0.1574, -0.4187, -0.3413, -0.4192, +0.0699, +0.2365, -0.2552, -0.6480, -0.2559, -0.0381, -0.2464, -0.2568], +[ +0.1548, +0.0221, +0.3021, +0.0748, -0.0730, -0.3777, -0.0878, +0.1624, +0.0181, +0.0029, -1.0661, -0.2232, -0.0371, +0.2084, +0.0641, +0.3700, +0.2076, -0.1308, -0.6938, -0.0521, +0.3410, -0.1052, +0.0010, +0.1400, -0.3497, -0.0732, +0.0856, +0.1817, -0.3963, -0.3211, +0.1612, +0.0391, +0.1267, +0.1567, -0.8114, +0.0540, -0.3109, -0.1081, +0.1441, +0.1741, -0.1098, +0.2501, +0.1449, -0.0120, -0.1075, -0.2483, -0.7078, -0.2693, -0.0336, +0.0171, -0.0570, +0.1460, +0.1243, -0.1844, +0.1645, -0.4268, +0.0438, -0.2597, +0.0547, -0.1758, +0.0263, -0.8264, +0.0728, -0.2166, -0.1181, +0.2654, -0.2549, +0.0277, +0.1403, +0.4358, -0.0468, +0.0663, -0.5248, +0.2055, -0.2036, -0.2702, -0.7653, +0.1719, +0.0243, +0.0066, +0.0388, -0.1156, -0.2506, -0.1971, +0.1007, -0.0745, +0.0724, -0.1242, +0.0428, +0.0739, +0.1192, +0.1407, -0.0524, +0.0955, -0.0253, -0.0342, -0.5003, +0.0988, +0.4093, +0.0309, -0.1069, -0.4025, +0.0368, -0.0331, -0.0844, +0.1159, -0.0163, +0.1731, +0.3613, -0.0142, -0.0990, +0.0854, +0.0900, -0.1528, -0.1269, -0.3659, -0.0846, +0.1304, +0.0177, +0.2548, +0.1939, -0.0656, -0.1266, +0.0675, +0.0898, -0.0352, -0.0179, -0.0786], +[ -0.1477, -0.3154, +0.0705, +0.0553, -0.0120, -0.2545, -0.1162, -0.0357, -0.0614, -0.1063, -0.1024, -0.2153, -0.2259, -0.0393, -0.6030, -0.7395, +0.2510, +0.6092, -0.1453, +0.1808, +0.0889, +0.0641, -0.1695, -0.1308, -0.7268, +0.1051, -0.3328, -0.5555, -0.1323, -0.0470, +0.4817, -0.2015, -0.1558, -0.2925, -0.3102, -0.1149, -0.1001, -0.2164, -0.1036, +0.3618, +0.3640, +0.0790, +0.1367, +0.1737, -0.3290, -0.2891, +0.3472, +0.0828, +0.2550, +0.0813, -0.2269, -0.5814, +0.4380, -0.3854, -0.1073, -0.3434, -0.2344, -0.3333, -0.9712, +0.3074, -0.0863, +0.0101, +0.4935, -0.4539, +0.2815, +0.4703, -0.1730, -0.4645, -0.0182, -0.6704, +0.4409, +0.0128, +0.3440, +0.0742, -0.0970, +0.0381, -0.9197, +0.1764, -0.3166, -0.5216, +0.1401, +0.1343, -1.0300, +0.0069, +0.3072, +0.0852, -0.2241, -0.0990, -0.1649, -0.0966, -0.0429, -0.0274, +0.0635, +0.3952, -0.1940, +0.1375, -0.3230, +0.6582, +0.1195, +0.0523, +0.0047, -0.4729, +0.2348, -0.1884, +0.3227, +0.0247, +0.1520, -0.4772, -0.0548, +0.1463, +0.2491, -0.0230, +0.2104, -0.0490, -0.4887, -0.7157, +0.4019, +0.1893, +0.1334, -0.3488, -0.0239, -0.6403, -0.5436, -0.3965, +0.0472, +0.0951, +0.3826, -0.0119], +[ +0.2345, +0.0402, +0.3096, +0.1290, -0.0478, +0.1970, +0.0213, -0.4571, +0.3814, -0.0410, -0.5314, -0.2755, -0.3864, -0.9906, -0.6441, -0.0119, +0.5029, +0.0528, +0.1426, +0.1558, -0.3429, +0.3553, -0.0140, -0.1257, +0.5183, -0.1416, +0.1306, -0.1761, +0.4427, +0.1535, +0.0231, +0.2305, -0.1755, -0.5971, +0.3964, +0.4374, -0.4033, -0.1754, +0.0906, -0.0307, -0.6401, +0.3662, -0.0488, -0.0305, -0.1799, -0.9114, -0.6223, -0.6197, +0.1350, -0.2145, +0.0602, +0.4021, -0.5092, -0.3139, +0.2932, +0.0838, -0.2362, -0.0395, -0.5941, +0.0945, -0.0716, +0.2605, -0.4417, +0.3200, +0.2494, +0.0426, -0.2447, -0.5307, +0.0455, -0.1078, +0.2131, -0.2504, -0.3621, +0.1624, -0.1116, +0.1532, +0.1341, -0.2960, -0.0485, +0.2547, -0.1497, +0.5129, -0.7462, -0.2898, -0.2437, -0.3651, +0.2329, -0.0681, -0.0266, -0.5809, -0.3785, +0.3757, +0.1572, -0.0039, -1.0997, -0.3780, -0.0220, -0.6294, -0.5320, -0.0276, -0.1373, +0.4767, +0.0286, -0.6791, -0.1094, +0.2245, +0.7109, +0.2029, -0.2408, +0.1082, +0.3360, +0.3084, +0.0412, -0.0498, -0.0024, +0.0016, -1.4137, -0.2534, -0.1986, -0.4153, +0.7093, -0.2851, -0.3148, +0.4090, -0.2257, -0.3811, +0.0754, +0.1079], +[ +0.1737, -0.1012, +0.3843, -0.3052, +0.0454, -0.0999, +0.0607, +0.5805, -0.0379, -0.1394, +0.1873, +0.2086, -0.0369, +0.2190, -0.9182, -0.1614, +0.0378, +0.0651, -0.3026, +0.1249, -0.0495, +0.7594, +0.2221, -0.1335, +0.4775, -0.3486, -0.3901, -0.2565, -0.2424, -0.2014, -0.4993, -0.3226, -0.4516, -0.0422, -0.1739, +0.2270, +0.2250, +0.2292, +0.5843, +0.3938, -0.8007, -0.1657, -0.2410, +0.0172, -0.1222, +0.3231, -0.2751, -0.2512, +0.2162, -0.6735, -0.1592, -0.5736, +0.3512, -0.1531, +0.0767, -0.1251, -0.3526, +0.2640, +0.3694, +0.0025, -0.0883, -0.9067, +0.1201, +0.0180, +0.1013, +0.1774, +0.0458, +0.1053, -0.1279, +0.1314, -0.7170, -0.0099, +0.0331, -0.6149, -0.3880, +0.3317, -0.1987, -0.1860, +0.2181, -0.2855, +0.0181, +0.1234, +0.0470, -0.4842, +0.1452, +0.0126, -0.0338, +0.0576, -0.1719, +0.4222, +0.0425, -0.1328, -0.2182, -0.3864, -0.2636, -0.4534, +0.3275, -0.4392, -0.3175, -0.0483, +0.0194, -0.2320, +0.1536, -0.0455, +0.2573, -0.3990, -0.7663, +0.0444, +0.2442, +0.2573, -0.4178, +0.0640, -0.1134, +0.0385, -0.0557, -0.1481, -0.1792, +0.1467, +0.0214, +0.0728, -0.3110, +0.2292, -0.8796, -0.1230, -0.3657, +0.3918, +0.4578, +0.0213], +[ -0.0058, -0.0501, -0.1675, +0.2440, +0.0982, -0.3081, +0.2197, -0.0078, +0.2634, +0.4613, +0.0454, +0.0953, +0.2481, -0.9030, -0.5912, -0.1769, +0.3100, -0.0666, -0.4307, -0.2750, +0.0457, +0.4329, +0.1131, +0.1623, -0.4575, -0.0464, +0.0587, +0.0037, +0.1761, +0.1243, -0.3456, -0.1771, +0.1526, +0.1889, +0.0453, -0.0169, +0.2543, -0.2468, -0.1749, -0.1054, +0.1356, -0.0753, -0.2053, -0.5136, +0.1298, -0.3350, -0.3511, -0.6631, +0.1640, +0.0080, -0.5760, -0.1730, -0.4837, +0.0082, -0.3955, -0.1565, +0.1675, +0.3669, +0.4185, -0.1695, +0.6183, -0.4073, -0.2162, -0.4735, -0.1205, -0.6054, -0.1156, +0.0477, +0.1337, -0.3585, +0.0539, -0.3033, -1.1556, -0.6334, +0.2199, +0.1659, -0.5817, +0.1128, -0.3548, -0.0180, -0.3140, -0.3119, -0.3624, +0.3207, -0.1126, +0.2188, +0.1764, -0.2787, -0.6278, -0.0367, +0.4690, -0.1529, +0.0098, -0.4824, +0.0185, -0.1893, -0.7196, +0.0138, -0.7285, -0.1746, +0.2740, -0.6991, -0.8272, -0.0170, -0.2122, +0.0546, -0.0070, +0.0135, -0.9043, -0.2043, -0.0655, +0.0533, -0.2891, -0.3379, +0.1854, +0.0024, -0.4407, -0.4790, -0.6179, -0.4374, -1.1258, -0.8652, -0.7400, +0.2832, +0.3050, +0.3432, +0.1818, -0.3477], +[ +0.0421, +0.0760, -0.0937, -0.3289, -0.1264, -0.2004, +0.2442, -0.7426, +0.1581, +0.1091, -0.2079, +0.1762, -0.2847, +0.2595, -0.0436, +0.0309, -0.0391, -0.3279, +0.0869, +0.1888, +0.2382, -0.1285, +0.0044, -0.0093, +0.1621, +0.0545, +0.3107, -0.0062, +0.4497, +0.2697, +0.1220, -0.3746, +0.2347, +0.1905, -0.2530, -0.0934, -0.3307, -0.2066, -0.0438, +0.1751, -0.2122, -0.2497, +0.1197, +0.3855, -0.0690, -0.0119, +0.1714, -0.1429, +0.2048, +0.3442, -0.0357, -0.3776, +0.2283, +0.1940, -0.0545, -0.3471, -0.0467, -0.4649, +0.0441, +0.0288, -0.0065, +0.0178, -0.0776, -0.2727, +0.3306, -0.4464, +0.1174, +0.1001, +0.0399, +0.0524, -0.0003, -0.1412, -0.0648, -0.2413, -0.4105, -0.0880, -0.1160, +0.1251, +0.1382, -0.0681, +0.4072, -0.1640, -0.2284, +0.1872, -0.0280, +0.2319, -0.2080, +0.0299, -0.3826, -0.1097, +0.1318, -0.1643, -0.0302, -0.5179, +0.2203, -0.0162, -0.6722, -0.0071, -0.5593, +0.1680, +0.0923, -0.1145, -0.2368, -0.0590, +0.3251, -0.3777, -0.2606, -0.3314, -0.1094, -0.2820, -0.1278, +0.1683, -0.2518, +0.1133, -0.1676, +0.0311, +0.2705, +0.2880, +0.1390, -0.0344, +0.2985, -0.0291, -0.6771, -0.3216, +0.1436, -0.3997, +0.1744, -0.0892], +[ +0.2227, -0.2971, -0.3469, +0.4666, -0.0545, +0.1139, +0.1211, -0.3773, +0.0639, +0.3880, -0.3827, +0.1726, -0.3401, -0.2897, -0.4629, +0.1177, +0.0280, -0.3550, -0.5237, +0.0578, +0.0203, -0.4134, -0.2219, -0.1620, +0.1527, -0.3433, -0.0286, +0.1367, -0.4098, -0.0532, +0.0170, -0.1500, -0.2434, -0.1257, +0.1599, +0.3132, -0.4962, +0.0203, -0.1200, -0.3780, -0.0548, -0.1382, +0.0468, -0.2005, -0.2922, +0.0412, -0.3139, -0.2190, -0.1921, -0.3008, -0.1326, +0.1474, -0.0546, -0.3791, +0.2720, -0.4730, +0.2390, -0.2128, -0.1345, -0.3941, +0.2550, -0.3516, +0.0163, +0.2963, +0.0107, -0.0940, -0.5645, -0.3014, -0.0069, +0.2026, -0.0785, +0.4574, +0.1301, +0.2480, -0.0485, -0.2237, -0.0629, -0.2352, +0.0711, +0.2740, -0.1476, +0.3646, +0.3072, -0.2861, -0.1857, -0.0471, +0.0310, -0.3897, +0.0805, +0.0024, +0.0570, +0.3988, -0.0309, -0.0894, +0.2665, -0.3530, +0.1016, +0.2017, +0.4422, -0.0812, -0.0641, -0.4382, -0.0046, -0.3735, -0.1861, +0.2945, +0.0989, +0.1345, +0.0340, +0.0190, -0.2118, +0.0686, -0.3836, +0.1731, +0.1700, -0.2080, +0.2979, -0.5672, +0.0529, +0.1361, -0.1965, -0.1959, -0.1695, +0.0855, -0.2045, -0.1573, -0.3586, -0.1811], +[ -0.2061, +0.1187, -0.4152, +0.3454, +0.3325, -0.4535, +0.0175, -0.1316, +0.1508, +0.0567, -0.3291, +0.0792, -0.3860, -0.6880, +0.0831, +0.0106, -0.2324, -0.1728, -0.2045, +0.5967, +0.1797, -0.7193, -0.1522, +0.4142, +0.2647, -0.1462, +0.2758, +0.2446, +0.0061, -0.0743, +0.2720, +0.1632, -0.1003, -0.2277, -0.5311, -0.1379, +0.1877, +0.0882, -0.1241, +0.0654, +0.0969, +0.0503, +0.1742, -0.0763, +0.1149, -0.1509, -0.2626, -0.0685, -0.0073, +0.5289, -0.0256, +0.3609, +0.1023, -0.4789, -0.3071, +0.2803, +0.0987, +0.0184, -0.2751, +0.0439, +0.7189, -0.4512, -0.6046, +0.3523, +0.2981, -0.1774, +0.3571, -0.2574, +0.0502, +0.2503, -0.2745, -0.2874, +0.1629, -0.2583, -0.0399, -0.2499, +0.0662, -0.0962, -0.1815, -0.4266, +0.1113, -0.8154, -0.3679, +0.0954, +0.0696, -0.2440, -0.1968, -0.3760, +0.0211, -0.5700, +0.2556, -0.3801, -0.0156, +0.0770, -0.4611, +0.0781, -0.1871, -0.1328, -0.0320, -0.7022, -0.3862, -0.0156, +0.3554, -0.2388, +0.1465, +0.1270, -0.1418, +0.1951, -0.4408, -0.5125, -1.0156, +0.4492, -0.6887, +0.2781, +0.1575, -0.3814, -0.2889, +0.2475, -0.1107, +0.0171, -0.3111, -0.2021, +0.2899, +0.1741, -0.3082, +0.0318, -0.1960, +0.3964], +[ +0.0908, -0.0992, -0.5574, -0.1475, +0.0634, -0.2495, -0.1826, +0.3553, +0.0084, +0.2624, +0.0450, -0.1352, -0.0266, +0.0049, -0.2243, -0.0175, -0.2538, -0.0782, -0.6108, -0.1035, +0.2119, -0.2691, -0.0323, +0.0551, -0.0377, +0.3972, -0.4437, -0.7321, +0.0651, -0.1293, -0.0490, +0.1585, -0.0975, -0.1757, -0.2343, -0.0055, +0.1740, +0.0048, -0.6559, +0.0373, +0.3460, -0.9263, +0.1879, -0.0669, +0.3651, +0.5088, -1.0274, -0.3409, -0.0143, +0.2722, +0.2818, -0.1034, -0.6006, +0.4080, -0.1925, -0.1793, -0.3323, -0.5531, -0.1189, +0.1274, +0.1319, -0.4859, -0.2834, -0.5362, +0.2529, -0.0815, -0.8830, -0.1149, +0.4302, +0.3286, -0.8478, +0.3274, +0.1833, -0.8509, +0.0124, +0.1571, -0.3137, +0.2163, -0.2620, +0.3702, +0.0263, -0.8892, -0.3077, -0.5872, -0.2785, -0.0548, +0.6223, +0.1073, +0.2722, +0.1667, -0.7687, -0.3004, -0.1409, +0.0977, -0.6361, +0.0895, +0.2523, -1.1700, -0.1937, -0.0640, -0.5124, -0.2828, +0.0786, +0.1680, +0.1903, -0.0973, +0.0276, -0.2992, -0.1459, -0.5329, -0.5601, -0.3211, -0.4753, -0.5864, +0.1028, -0.3598, -0.0670, -0.2731, +0.4096, -0.2266, +0.3978, -0.0444, -0.2637, +0.2951, -0.5427, -0.2461, -0.5261, +0.0949], +[ +0.1618, -0.4905, +0.3258, -0.1014, -0.0287, +0.5747, +0.0951, -0.1661, -1.0580, -0.0250, -0.1151, +0.1218, +0.0448, +0.0009, -0.2375, +0.1923, -0.0808, -0.1496, -0.4040, -0.0011, +0.1566, -0.0025, +0.0013, -0.1833, -0.4217, -0.1717, +0.0899, -0.1539, -0.0715, +0.2257, -0.0181, +0.3481, +0.1751, +0.1634, -0.5412, +0.0892, -0.2702, +0.1308, -0.4672, -0.3700, -0.2379, +0.1514, +0.3748, +0.0297, +0.0131, +0.2860, +0.0202, -0.4741, -0.3178, -0.2200, +0.0164, +0.0544, +0.2424, -0.3790, +0.0947, +0.0634, +0.1048, -0.5026, -0.4402, -0.2208, -0.1970, +0.2420, -0.2852, +0.1045, +0.0041, +0.1532, -0.2748, +0.2220, -0.1802, -0.1195, -0.0320, +0.0941, +0.0821, +0.1148, +0.2390, +0.3889, +0.0018, -0.3051, -0.0233, -0.0228, -0.3145, -0.0425, +0.4689, +0.1950, +0.1288, -0.6089, +0.2982, +0.1527, +0.1825, +0.1216, +0.4530, +0.1668, -0.3275, +0.1676, -0.2089, -0.0556, -0.6145, -0.0445, -0.8699, -0.2688, +0.3719, -0.7730, -0.1762, +0.0905, -0.3222, +0.3221, +0.4203, -0.0613, +0.1184, +0.2110, +0.2703, +0.0339, -0.1625, +0.2663, +0.1400, +0.0936, -0.3175, -0.3469, -0.0820, -0.0730, -0.0210, +0.1526, -0.0458, -0.0371, +0.1708, -0.1264, -0.4222, +0.2816], +[ -0.1449, -0.4340, +0.3384, +0.1579, -0.1091, -0.2229, -0.7007, -1.1185, -0.1052, +0.1772, -0.3176, -0.0954, -0.3036, -0.3146, +0.2082, -0.6706, +0.0364, +0.1425, +0.3943, -0.2101, +0.0523, -0.2765, +0.0090, -0.0655, -0.2401, +0.4830, -0.2957, +0.0572, +0.0692, -0.1737, +0.4769, -0.4658, +0.0137, +0.0588, -0.5256, +0.3810, -0.0043, +0.0705, -0.7742, -0.2515, +0.4426, +0.0385, -0.0394, -0.0789, -0.1381, +0.2169, +0.0898, -0.4948, -0.4634, -0.0958, -0.1589, -0.4759, +0.2111, -0.2565, +0.0694, +0.0705, +0.0388, +0.1178, -0.0762, -0.4617, -0.8680, -0.2346, +0.2338, -0.7045, +0.3175, -0.1283, -0.1354, -0.4054, +0.2363, -0.0522, -0.0029, +0.1389, +0.1709, +0.3458, -0.1531, +0.1611, -0.4193, +0.1833, +0.2374, +0.6556, -0.0475, +0.3806, +0.4965, -0.2974, -0.0217, +0.2118, -0.0464, +0.3696, -0.0580, -0.8348, -0.7580, +0.0611, +0.1105, -0.1347, -0.0760, +0.1793, -0.3194, -0.6205, +0.4345, +0.0319, +0.0245, +0.3281, -0.2088, -0.8847, +0.1012, +0.1181, +0.0141, -0.4330, -0.0720, +0.3774, +0.2740, -1.0438, +0.1583, +0.0846, -0.1631, +0.3802, -0.0777, +0.1888, -0.3915, +0.2461, -0.8871, +0.0106, +0.0323, -0.0571, -0.1533, -0.4462, -0.1460, -0.3907], +[ -0.2878, -0.0615, +0.2505, +0.1581, -0.6736, +0.2485, -0.3433, -0.5456, -0.5950, -0.1342, +0.1008, -0.0716, -0.0541, +0.1849, -0.3383, +0.2208, -1.0103, -0.3722, -0.0319, -0.0332, -0.4669, -0.1479, -0.0878, -0.1468, -0.3543, +0.5402, +0.1786, -0.0781, +0.0761, -0.5135, +0.5701, +0.1104, -0.0162, +0.2412, +0.0370, +0.0211, +0.0297, +0.2620, -0.0827, -0.6327, +0.0140, +0.0513, -0.0192, -0.2413, -0.5702, -0.0003, +0.4197, -0.3194, +0.1597, -0.2770, -0.5649, +0.1293, -1.0851, -0.4333, -0.3866, -0.8689, -0.1534, -0.1899, -0.1301, -0.2131, +0.1348, -0.1494, -0.3751, +0.3482, -0.0373, -0.1306, -0.2304, +0.5142, +0.1681, -0.5262, -0.3565, -0.2431, -0.2511, +0.4271, +0.2971, -0.3514, -0.1895, -0.0938, +0.3170, -0.0274, +0.1666, -0.2795, -0.5762, -0.3793, -0.1089, +0.1886, +0.5871, -0.2598, -0.3023, -0.8249, +0.2772, +0.1765, +0.0883, -0.0666, +0.1009, +0.2339, -0.0881, -0.3906, +0.1244, -0.1059, +0.0345, +0.1081, -0.3789, -0.3119, -0.3382, -0.3980, -0.2057, +0.0522, -0.4197, +0.2586, -0.0300, +0.1536, +0.2187, -0.0763, +0.0302, +0.3941, +0.6030, -0.6882, -0.1713, -0.2873, +0.4185, +0.3159, +0.2026, +0.1525, -0.4530, -0.0410, -0.0349, +0.2280], +[ -0.6061, -0.0909, -0.0550, -0.2184, -0.4677, -0.4432, -0.2260, +0.1602, -0.3579, -0.2434, -0.3035, -0.3499, -0.4640, -0.0961, -0.8689, -0.3364, -0.5608, -0.2340, -0.3993, -0.4102, +0.2083, +0.0047, -0.1841, -0.8708, +0.2682, -0.2035, +0.0297, -0.1514, -0.3664, +0.0290, -0.3759, +0.3887, -0.3711, -0.5360, -0.2174, -1.1284, -0.5156, -0.1612, -0.0737, -0.4903, -0.4929, -0.1873, +0.0404, -0.1258, +0.4220, +0.2427, -0.0421, +0.4974, +0.0100, +0.3258, -0.3710, -0.0276, -0.6241, -0.2282, -0.2343, +0.5713, -0.1646, -0.3397, +0.2585, +0.0450, -0.1207, -0.1081, +0.2005, -0.5321, -0.3488, +0.0880, +0.1172, +0.1975, -0.2884, -0.3175, +0.1191, +0.1787, -0.4443, -0.2308, -0.1809, +0.1833, +0.3746, -0.1612, -0.1746, +0.1444, -0.1684, +0.1569, -0.5966, +0.0297, -1.1438, -0.3301, -0.0267, +0.1739, -0.1595, -0.7382, -0.8372, -0.2308, -0.3466, -0.4795, -0.2313, -0.7824, +0.1980, +0.2107, -0.6244, -0.0962, -0.1942, +0.2395, -0.3016, -0.1821, +0.4167, -0.0695, -0.2468, +0.0869, -0.5590, -0.2276, -0.4163, +0.2860, +0.1813, -0.0321, -0.2457, -0.0202, -0.1410, +0.1888, -0.0146, -0.7551, -0.0123, +0.1800, -0.2752, +0.0198, -0.0279, -0.4698, -0.4623, -0.3625], +[ -0.0845, -0.0307, +0.2515, +0.0145, +0.1197, +0.3987, -0.4345, -0.3723, +0.0691, +0.1694, -0.3358, -0.0540, -0.0187, +0.5110, +0.1727, -0.1340, +0.0335, -0.1176, -1.2247, -0.0016, +0.2501, -0.1295, -0.3627, +0.2087, -0.0750, -0.0229, -0.1075, -0.4822, +0.1749, +0.2224, +0.2493, -0.8074, -0.3120, -0.1274, -0.7827, +0.0645, -0.1956, -0.1618, +0.1351, -0.2641, -0.0409, +0.2512, +0.1865, +0.1569, -0.3542, -0.1335, -0.9144, -0.3099, -0.0042, +0.0161, -0.5852, -0.4469, +0.1677, -0.5367, +0.5580, +0.0745, +0.0027, -0.1883, -0.4742, -0.3860, -0.5103, +0.4660, -0.8256, -0.7132, -0.0312, -0.3823, -0.1519, +0.2287, +0.2300, +0.1152, +0.1736, +0.2429, -0.1806, +0.2374, -0.3979, +0.1320, -0.5556, +0.2660, -0.8979, -0.6503, -0.0790, +0.1668, -0.4129, -0.4282, +0.3145, -1.3375, -0.1544, +0.1570, +0.1358, -0.4562, -0.5580, -0.0270, -0.0299, -0.2310, -0.3223, -0.2773, -1.2287, +0.0719, +0.1664, -0.1294, +0.0616, -0.1551, -0.1501, -0.1315, -0.0196, -0.1675, +0.0702, -0.1678, +0.0950, -0.2934, -0.1290, +0.0739, +0.0199, +0.1733, +0.0355, -0.7176, -0.2725, -0.2942, -0.3444, -0.3210, -0.2305, +0.0826, +0.2586, -0.2365, +0.0963, +0.0902, +0.1406, +0.0500], +[ -0.1641, +0.1803, +0.0176, -0.0164, -0.1597, -0.1098, +0.1263, -0.3531, +0.2009, -0.2688, +0.2281, +0.0484, +0.0412, +0.4032, +0.0177, -0.7202, -0.1029, +0.2414, -0.3872, +0.4367, +0.0134, -0.3715, -0.1411, -0.0280, -0.3206, -0.0946, +0.1634, -0.5124, -0.0615, -0.1953, -0.2134, -0.3191, +0.2202, +0.0565, -0.0890, -0.2060, -0.4671, +0.2055, -1.1555, -0.0669, +0.1648, -0.1441, -0.1714, -0.1822, +0.2035, -0.7000, +0.0695, +0.0956, +0.0437, -0.0890, -0.1878, +0.2828, -0.2674, +0.1618, +0.2366, +0.0729, +0.3175, +0.0306, -0.5201, +0.0188, +0.3739, -0.5527, -0.3397, +0.0665, +0.3225, -0.2450, -0.3998, -0.1282, +0.3574, -0.2880, +0.2108, -0.1360, -0.0243, +0.0996, -0.4179, -0.2257, -0.4723, +0.4179, -0.1489, -0.0351, +0.3217, -0.4655, -0.5597, +0.2265, +0.0331, +0.1609, -0.0233, +0.3688, +0.2562, -0.0856, -0.3728, -0.0548, +0.4144, +0.1663, -0.5262, +0.3334, -0.1203, -0.0692, +0.1855, +0.0311, +0.0978, +0.0475, -0.0780, +0.3128, -0.0074, -0.6474, +0.1366, -0.2251, +0.0069, -0.0087, +0.0467, +0.0438, +0.0939, +0.4966, -0.1934, -0.6285, -0.2758, +0.1596, +0.0895, -0.2190, -0.8005, -0.2677, -0.3218, +0.3237, +0.0888, -0.2617, +0.0320, +0.1497], +[ -0.1253, -0.0350, -0.0856, -0.0467, +0.1283, +0.2748, +0.1479, +0.2745, +0.1078, -0.3786, -0.3089, +0.0064, -0.1175, +0.0248, +0.2094, -0.2929, -1.4566, +0.2682, +0.0442, +0.3729, +0.2005, -0.5589, +0.1468, +0.4390, -0.8793, +0.2898, +0.3577, -0.6922, +0.0979, +0.3569, +0.0792, +0.1176, -0.2124, +0.1861, -0.0484, -0.0443, +0.2162, +0.0916, -0.2512, +0.0367, +0.0633, +0.0470, +0.0792, +0.0034, -0.1414, +0.3856, -0.1245, -0.1696, -0.1526, +0.1365, +0.3263, -0.0325, +0.3004, +0.2138, +0.1553, +0.2231, -0.1920, -0.5498, -1.3362, -0.0097, -0.1920, +0.2219, -0.2937, -0.2273, -0.2927, +0.2756, -0.1875, -0.1068, -0.3225, +0.0928, +0.5012, -0.3023, -0.1227, -0.5252, -0.3104, -0.5777, +0.0303, -0.2129, -0.6370, +0.4402, -0.4292, -0.2224, -0.0492, -0.2785, +0.2249, -0.3533, -0.2766, -0.1833, -0.1814, -0.9459, -0.2622, -0.6534, -0.2456, +0.3434, -0.0585, +0.0774, -0.1196, -0.2611, +0.3853, +0.1695, +0.1012, +0.0691, -0.0476, +0.0520, -0.2332, +0.0186, -0.1382, +0.3594, -0.0141, +0.3252, -0.3512, -0.0661, +0.1478, +0.4440, +0.0711, -0.1353, -0.2475, -0.0257, +0.5104, +0.1134, -0.1690, +0.0288, -0.4795, -0.1104, +0.0961, -0.1073, -0.6397, +0.0654], +[ -0.1892, +0.0568, -0.2412, -0.6013, +0.3256, +0.2101, +0.1802, -0.2477, +0.0262, -0.4132, -0.1172, +0.1311, +0.2263, +0.1451, +0.3181, -0.1332, +0.1379, -1.1694, -0.3646, -0.1916, -0.4726, -0.4236, -0.0609, -0.0810, -0.0390, -0.0253, +0.2483, +0.4296, +0.0255, -0.9403, +0.3116, -0.8595, +0.2039, -0.3203, -0.0686, -0.2876, -0.7740, -0.4882, +0.2804, +0.1530, -0.3647, -0.2899, -0.1928, +0.0574, -0.9411, +0.2955, +0.5295, -0.1495, -0.2544, -0.0502, -0.6493, -0.0688, -0.2562, -0.0072, +0.0258, +0.2712, +0.4828, -0.0741, +0.0550, -0.1493, +0.0222, -0.0950, -0.1410, -0.0260, -0.0008, -0.2603, +0.0681, +0.0436, +0.1496, -0.0550, -1.4449, +0.2512, -1.1742, -0.6389, -0.1976, -0.2944, -0.3775, +0.2221, -0.0417, -0.0980, +0.0640, +0.0496, -0.1026, +0.2860, -0.6115, +0.0723, -0.0295, +0.1601, +0.0567, +0.2533, -0.5541, +0.4440, +0.2326, -0.3252, +0.1586, -0.2256, -0.6957, +0.0371, +0.3295, +0.4163, +0.1884, +0.0308, -0.9381, +0.1548, -0.1683, -0.1657, -0.3450, -0.0012, +0.2329, +0.3270, +0.2418, -0.0308, +0.2985, -0.2371, -1.1584, -1.2930, -0.0451, +0.1693, +0.2680, +0.4843, +0.1023, +0.0457, +0.2715, -0.0179, -0.3231, -0.0171, -0.0038, -0.2308], +[ -0.4185, +0.0518, -0.0622, +0.1876, -0.0893, +0.0031, -0.1216, -0.8492, -0.5659, +0.2852, -0.2889, -0.1508, +0.2531, -0.0835, +0.0111, +0.0087, -0.3572, +0.2532, +0.0334, -0.3784, -0.1595, -1.3338, -0.3168, -0.3062, +0.5036, -0.3661, +0.4044, +0.3749, +0.1713, +0.0696, -0.2597, -0.2785, -0.1862, -0.0663, -0.1889, +0.3290, +0.1240, +0.5744, +0.2029, +0.6920, -0.0658, -0.2106, -0.2397, -0.7892, +0.3586, +0.2038, +0.2659, +0.0079, +0.0883, +0.1599, -0.1192, +0.3185, +0.0724, -0.1714, -0.1568, +0.1129, +0.5232, +0.2673, +0.0950, +0.2312, -0.2412, -0.4621, -0.9121, +0.0927, -0.2441, -0.0055, -0.3084, +0.0480, +0.2937, -0.5931, -0.1304, -0.1331, -0.0718, -0.4675, -0.2199, -0.4012, -0.7162, -0.0440, +0.3202, +0.0727, -0.0885, +0.2881, -0.2546, +0.2202, -0.0740, +0.0747, +0.3164, +0.1560, +0.1748, -0.1047, +0.0710, -0.1201, -0.0498, +0.1716, +0.2840, -0.2102, +0.1068, +0.0459, +0.1061, -1.3161, -0.0708, -0.6666, -0.0305, +0.0622, -0.3030, +0.0992, -0.4008, +0.1789, +0.0664, +0.1021, -0.1184, +0.2772, +0.2421, -0.6209, -0.4482, -0.6124, -0.0749, -0.0634, +0.4178, -0.0745, -0.5763, +0.3940, -0.2924, -0.4282, -0.2118, -0.5264, -0.8030, +0.1691], +[ -0.0243, +0.1186, +0.1214, -0.7917, -0.0578, +0.0656, +0.1574, -0.4321, -0.8055, -0.0509, +0.2256, +0.1686, -0.0946, -0.1584, +0.1417, +0.1943, -1.2738, +0.0080, -0.1580, -0.5160, +0.2872, +0.0854, +0.1843, -0.0101, -0.0975, -0.1252, -0.3296, -1.1518, -0.1937, -0.0913, +0.1553, -0.3593, +0.7464, -0.2383, -0.8537, +0.0278, -0.0484, +0.1455, +0.0117, -0.0073, -0.5213, +0.0542, -0.3462, -0.4633, +0.1424, -0.0178, -0.0359, -0.8284, -0.5606, -0.0482, +0.3423, +0.2033, +0.3398, -0.2188, +0.0563, +0.4824, -0.7406, -0.2805, +0.2481, +0.0907, +0.1630, -0.2325, -0.1028, -0.0367, +0.1283, +0.1714, -0.4324, +0.3293, -0.4413, -0.3222, +0.0196, +0.4370, +0.2912, +0.1991, +0.0462, +0.3073, -0.5100, -0.0354, +0.0971, -0.6773, +0.1030, -1.0156, -0.3781, -0.3812, +0.5229, -0.1198, +0.1014, +0.3792, -0.0822, -0.5402, +0.3907, -0.4183, +0.2017, -0.2403, +0.1254, +0.1106, -0.2351, -1.0903, +0.0545, -0.6915, -0.4463, +0.2522, +0.0548, +0.0415, +0.1845, -1.2566, +0.3470, -0.1079, -0.1252, +0.3779, +0.2574, -0.1457, +0.6287, +0.2764, +0.0868, -0.3796, +0.1852, +0.2793, -0.1176, +0.0419, -0.3765, +0.2774, -2.0774, +0.1867, -0.3176, -0.0142, +0.1466, -0.0167], +[ -0.2577, -0.3209, -0.2173, -0.9016, +0.1397, -0.0210, +0.0456, +0.3509, -0.3827, -0.4699, +0.0811, +0.1087, +0.3465, -0.3480, -0.0577, -0.1263, +0.1601, +0.1168, -0.3422, -0.1298, -0.8658, -0.3096, +0.0007, -0.2192, +0.1675, -0.2581, +0.0042, -0.3348, +0.2278, -0.3934, -0.1930, +0.1503, -0.1282, -0.0508, -0.1116, +0.0845, -0.1293, -0.4505, -0.3138, +0.2516, -0.8298, +0.2572, -0.2498, +0.0418, -0.4383, +0.1897, -0.0101, -0.0634, +0.4161, -0.1021, +0.0685, +0.0620, -0.0885, +0.0695, -0.3611, +0.2575, +0.0583, -0.3698, -0.0590, -0.0599, -0.0708, -1.1328, -1.4975, -0.4391, -0.0188, +0.2601, -0.3437, +0.0091, +0.1288, -0.1438, -0.7818, -0.5881, +0.1493, +0.1140, -0.2837, +0.0317, -0.3420, -0.2077, -0.0265, +0.2358, -0.0638, +0.2327, +0.2399, +0.0046, +0.3208, -0.2417, +0.1361, +0.1809, -0.1479, -0.2120, -0.0466, -0.4996, +0.0346, +0.0137, +0.1121, +0.0929, -0.0005, -0.2860, -0.8237, -0.1306, +0.3829, -0.0539, -0.4165, -0.1393, +0.0856, +0.1007, -0.2190, +0.5631, -1.2789, -0.0171, -0.3736, -0.0174, +0.0349, -0.4041, -0.0510, +0.1716, -0.6770, -0.0002, -0.3129, -0.7005, -0.9493, +0.0616, -0.2887, +0.0076, +0.2085, -0.6462, +0.1981, +0.1615], +[ +0.3304, +0.1152, -0.6717, +0.1143, +0.2115, +0.0698, -0.1820, +0.1726, -0.0369, +0.0439, +0.1313, -0.1625, -0.0757, +0.0836, +0.0388, +0.1446, +0.0832, +0.0089, -0.4948, -0.0825, -0.3839, -0.4609, +0.1577, -0.0576, +0.0792, -0.0768, +0.1828, +0.3302, -0.1742, -0.3798, +0.0916, +0.1784, +0.0494, +0.0835, +0.0700, +0.1665, +0.3586, -0.6019, +0.2448, +0.6077, +0.1405, -0.1039, -0.0866, -0.0915, -0.0754, +0.2220, -0.5158, -0.5315, +0.2973, -0.0670, +0.0497, +0.2268, +0.1621, +0.0508, +0.0365, +0.3368, +0.3022, +0.3330, +0.2109, -0.3269, -0.3239, -0.2013, +0.2996, +0.1457, -0.2253, -0.3094, +0.1806, +0.1514, +0.2331, +0.0763, -0.1444, -0.1580, +0.3315, -0.5235, +0.2613, +0.1944, +0.1859, +0.3933, +0.4284, -0.2695, +0.1532, -0.0814, -0.6060, -0.1824, -0.2279, -0.3816, -0.9168, -0.2387, +0.0473, +0.0513, -0.0929, -0.2477, +0.0768, +0.4879, -0.5346, -0.4995, -0.2313, +0.0707, -0.0713, -0.1675, +0.2942, +0.0147, +0.2039, +0.3673, -0.0179, -0.4249, +0.0179, -0.4301, -0.2318, -0.0834, -0.3560, +0.1333, -0.0454, -0.3471, +0.2927, +0.2090, +0.1567, -0.2355, +0.0565, -0.2313, -0.0992, -0.4685, +0.0392, +0.0334, -0.4125, -0.0562, +0.1348, -0.0555], +[ +0.2765, +0.2651, -0.1661, +0.0773, -0.1170, -0.0005, +0.1935, +0.2157, -0.0871, -0.0412, +0.2278, +0.0088, +0.5312, +0.1020, +0.4036, +0.1912, +0.1202, -0.2561, +0.0533, -0.3085, -0.3528, -0.2470, +0.8043, -0.1908, +0.3315, -0.0677, -0.2639, -0.7734, -0.0086, -0.8340, +0.1080, +0.3147, -0.0394, -0.1705, -0.6031, +0.5434, -0.0039, -0.0621, +0.1619, +0.6574, -0.3513, +0.4419, -0.0093, -0.3592, -0.3253, +0.2011, +0.3291, +0.4329, -0.2797, -0.0186, -0.6435, +0.2140, +0.0672, -0.3524, +0.1114, +0.0474, -0.7333, -0.2670, +0.1535, -0.8170, +0.3432, -0.4108, -0.1007, +0.1650, -0.0829, -0.4034, -0.3486, -0.0583, +0.2539, -0.0878, -0.9101, -0.2531, +0.2064, -0.3594, -0.1831, +0.2126, +0.4375, -0.0240, +0.1841, -0.3827, -0.3310, -0.3788, +0.0986, -0.7037, -0.1839, +0.2655, +0.0209, -0.1485, +0.3097, +0.1903, -0.0578, +0.1213, +0.0722, +0.3004, +0.4606, +0.0119, -0.0622, +0.0207, -0.6240, -0.2635, +0.3157, +0.1758, -0.3678, +0.3457, -0.3850, -0.4129, -0.5109, +0.3018, -0.2841, -0.7261, +0.1670, -0.2980, +0.0840, -0.0656, +0.2121, -0.0174, -0.1468, -0.6263, +0.2111, -0.8132, +0.1847, -0.1166, -0.1332, -0.1358, -0.1872, -0.5252, +0.0908, -0.3466], +[ -0.3072, +0.0593, -0.2193, +0.4342, -0.0824, -0.0014, -0.1008, -0.2842, +0.0379, +0.2284, +0.0750, +0.1432, -0.2198, -0.2522, -0.3912, +0.0649, -0.1187, +0.2494, -0.0734, +0.1627, -0.2980, -0.2779, +0.3082, -0.2920, +0.5340, -0.1274, -0.2058, +0.0024, +0.0237, +0.3097, -0.2613, +0.0268, +0.0602, -0.0818, +0.0302, -0.7059, +0.1893, +0.1382, -0.3246, -0.9833, -1.0995, +0.0738, +0.2231, -0.2223, -0.2500, +0.3808, +0.2266, -0.4070, +0.1142, -0.6488, -0.1621, +0.2094, -0.2307, -0.4893, +0.0355, +0.0290, -0.1048, -1.1536, -0.5460, -0.1715, -0.0416, +0.5042, -0.3416, -0.1424, -0.0845, -0.0123, +0.2568, +0.1480, -0.8059, -0.6547, +0.1523, -0.1598, -0.1313, -0.3420, +0.0431, +0.2401, -0.1837, +0.1552, +0.1038, +0.1037, -0.2919, +0.0035, +0.0380, -0.1548, -0.1816, -0.4945, +0.2192, +0.2169, +0.4100, -0.6803, -0.2764, +0.3512, +0.0954, -0.2026, +0.2252, -0.2983, +0.2042, -0.5496, +0.0732, -0.0592, -0.1785, -0.2568, +0.1295, -0.1812, -0.1574, -0.1005, -0.1900, -0.2671, -0.2191, -0.1296, +0.3192, -0.0245, +0.1966, +0.3232, -0.1156, +0.3218, +0.3045, +0.1002, -0.3261, +0.3375, -0.1016, +0.1813, -0.5060, -0.0189, -0.0428, +0.0821, -0.1383, -0.0483], +[ -0.0485, -0.0761, +0.2687, -0.3376, -0.0789, -0.3058, -0.1430, -0.6755, +0.2649, +0.7666, -0.2482, -0.4595, -0.0853, -0.3108, -0.1604, -0.1217, -0.4340, +0.2198, +0.0220, -0.3623, +0.6541, -0.2147, -0.1381, -0.3438, -0.1808, -0.1435, +0.2867, -0.9132, -0.2100, -0.6305, -0.3223, +0.0752, -0.0067, +0.0911, -0.0818, -0.3216, -0.1769, +0.1011, -0.2282, +0.1190, -0.1974, -0.0207, -0.3438, -0.0572, -0.2476, -0.2491, -0.1069, -0.4519, +0.1434, +0.2403, -0.3082, +0.0892, +0.0322, +0.0599, +0.0814, -0.3499, +0.0373, -1.0612, +0.0223, +0.1832, +0.0886, +0.0553, -0.0571, +0.2441, -0.3607, -0.1565, -0.2459, -0.0615, -0.7580, +0.2557, -0.9257, +0.0689, -0.0736, -0.2414, +0.1422, +0.2079, -0.4424, -0.3469, -0.0933, +0.3856, -0.0750, -0.1159, +0.4371, +0.1831, +0.1788, +0.0338, -0.0747, -0.4103, +0.3391, -1.0040, +0.4627, +0.1272, +0.2411, -1.0926, -0.2224, -0.1995, +0.1803, -0.0627, -0.6347, -0.1275, +0.2026, -0.0792, -0.0308, +0.1798, -0.0517, +0.2374, -0.4876, +0.0377, -0.4819, -0.0827, -0.2996, -0.4329, +0.3787, -0.1345, +0.1394, +0.3466, +0.1525, +0.3288, -0.0679, -0.6395, +0.0492, +0.2418, -0.2533, +0.2143, -0.6310, -0.7643, +0.3824, -0.5283], +[ -0.2216, -0.2724, -0.3635, -0.5285, +0.2326, -0.0175, -0.1538, +0.0782, +0.6778, -0.3808, -0.1319, +0.1996, -0.1311, -0.3252, +0.4766, -0.1242, +0.5385, -0.1809, -0.0201, -0.1445, -0.2975, -0.3141, -0.0635, -0.1437, -0.1520, +0.2272, -0.1175, -0.6078, -0.0450, +0.0698, -0.0833, -0.0208, -0.9297, -0.7583, -0.8347, -0.2802, -0.1081, -0.2378, +0.0218, -0.3091, -0.3305, +0.0505, -0.1155, -0.9380, +0.0521, +0.4455, +0.2421, +0.2943, -1.0620, -0.1135, +0.1517, +0.2703, +0.1553, +0.1838, -0.0901, +0.4649, +0.0869, +0.0020, -0.3046, -0.1267, +0.2966, -0.0340, +0.0251, -0.0225, -0.4745, +0.1096, +0.4214, +0.0260, -0.9900, +0.1529, +0.0409, +0.0435, +0.4192, +0.1484, +0.2290, +0.3483, +0.0416, +0.0547, +0.2778, +0.0500, +0.1722, -0.2871, +0.1912, -0.1819, +0.0170, -0.1954, +0.1159, +0.1133, +0.0251, -0.5399, +0.1444, +0.2560, +0.2234, +0.0129, +0.1838, -0.0347, +0.1374, -0.3880, +0.4386, -0.5715, -0.0648, -0.1808, -0.1905, +0.1060, +0.0285, +0.0654, +0.1420, -0.3763, -0.3592, +0.1827, +0.0626, -0.0212, -0.1470, -0.0439, +0.3878, -0.5607, -0.0129, +0.0216, +0.0846, +0.2230, -0.8648, +0.0159, +0.3718, -0.0508, -0.5289, -0.7366, -0.0457, +0.4186], +[ -0.0214, -0.0530, +0.0137, -0.2432, -0.0927, -0.2797, +0.0852, -0.4463, -0.0110, +0.2777, -0.1540, +0.1232, +0.1111, +0.0501, -0.0242, +0.3283, +0.1690, +0.7622, -0.3503, -0.2473, +0.0353, -0.3887, -0.4612, -0.1503, +0.0814, +0.3865, -0.1694, +0.0120, +0.4389, -0.0711, +0.1713, +0.3489, +0.0682, -0.2548, -0.2882, -0.0319, +0.3242, -0.4394, +0.3936, +0.0420, +0.2637, -0.4346, -0.2826, -0.1212, -0.2662, +0.0626, +0.1920, +0.1084, -0.1428, -0.1077, +0.4388, -0.4603, +0.0879, -0.1445, +0.0940, +0.1186, -0.0631, -0.5513, +0.2869, +0.0772, +0.3672, -0.6910, -0.0244, +0.2878, +0.2721, +0.0819, -0.2527, -0.0537, -0.1003, +0.3021, +0.1214, -0.0519, -0.1527, -0.1574, -0.0269, -0.1360, +0.1854, +0.4206, -0.0306, -0.2780, -0.0115, -0.1752, -0.3788, -0.2699, +0.1797, +0.1841, +0.1184, -0.1995, -0.2032, -0.0399, +0.0875, -0.5725, +0.4417, +0.2053, +0.0468, +0.4927, +0.1521, -0.1696, +0.0752, -0.3104, +0.5265, +0.1238, -0.2677, +0.0530, +0.2844, +0.1389, -0.0011, +0.1489, -0.0156, +0.0328, -0.8756, -0.1634, +0.3669, -0.4764, +0.2505, +0.4518, -0.2778, -0.0361, -0.2592, +0.2754, -0.9665, +0.0985, -0.0931, -0.1472, -0.0249, +0.1736, -0.0344, +0.4884], +[ +0.0076, -0.0792, +0.4573, +0.2103, -0.3263, +0.5124, -0.1254, -0.3027, +0.4467, +0.1534, -0.0088, +0.0828, +0.1483, -0.0149, +0.3330, -0.1840, -0.8589, +0.1954, +0.1535, +0.2053, -0.1536, -0.3341, +0.2597, -0.6422, +0.0675, -0.2398, +0.3120, -0.7673, +0.1112, -0.3301, +0.0317, +0.0886, +0.0414, -0.2466, -0.1473, -0.7178, +0.4703, -0.4728, +0.1195, +0.4448, -0.3061, -0.6861, -0.3048, -0.2956, +0.3244, +0.4717, -0.4695, +0.5288, -0.6678, -0.0470, -0.0538, -0.1436, -0.9947, -1.1587, +0.0508, -0.2462, +1.0473, +0.2293, +0.4339, +0.3946, -0.2774, +0.0805, +0.1161, +0.6042, +0.4060, -0.2910, -0.5440, +0.1522, -0.3688, -0.9751, -0.8646, -0.4894, -0.3640, -0.3734, +0.2146, +0.2350, +0.1571, +0.2132, -0.0705, +0.0330, +0.1605, -0.0053, -0.1780, -0.9285, +0.0206, -0.5987, -0.2628, +0.3601, +0.1762, +0.2956, -0.0877, +0.1974, -0.0082, +0.5044, +0.2951, -0.1490, -0.5688, -0.4528, -0.4916, +0.2803, +0.0985, +0.0523, -0.2049, -0.0192, +0.2865, -1.0200, -0.1378, +0.1502, +0.4630, -0.1785, -0.2855, -0.5179, -0.2046, +0.2921, +0.0592, +0.0598, -0.5597, +0.0560, +0.5616, -0.0732, -0.0935, -0.0076, -0.0293, -0.0054, -0.5336, -0.0486, -0.0284, -0.7210], +[ +0.0138, +0.1312, -0.5257, -0.4086, +0.0728, +0.1993, +0.1312, +0.0431, +0.0887, -0.0362, -0.2398, -0.2054, -0.0455, -0.0584, -0.2373, +0.2380, +0.2169, +0.0082, +0.2734, -0.1091, -0.4689, +0.2916, -0.1617, -0.1124, -0.1273, +0.0680, -0.0110, +0.0820, +0.0190, -0.2237, -0.2111, +0.0737, +0.1487, +0.1199, +0.3229, -0.1435, -0.1576, +0.2985, -0.4750, +0.2688, -0.4223, +0.3317, +0.1938, -0.0482, +0.2846, -0.1528, -0.1198, -0.3543, -0.1499, +0.1163, +0.2298, +0.0175, +0.2827, +0.1979, -0.1932, +0.3102, -0.0683, +0.1764, -0.0746, +0.0251, +0.2647, -0.3658, -0.4789, +0.3222, +0.1481, +0.0715, +0.1229, +0.2837, -0.3743, -0.1212, -1.3068, +0.1790, +0.3244, -0.2563, -0.2422, +0.2098, -0.2671, +0.3374, -0.1205, -0.7220, +0.4286, +0.3452, +0.1179, +0.4031, -0.3413, -0.6037, +0.2143, -0.2744, +0.2182, +0.4431, -1.0548, +0.1050, -0.0165, -0.2962, -0.2426, -0.1212, -0.1963, +0.2281, -0.6649, +0.0373, +0.0941, +0.1760, +0.1101, +0.0707, -0.6022, -0.0103, -0.3880, -0.4686, +0.4758, -0.5176, +0.1639, -0.0607, -0.6359, -0.2935, -0.1718, -0.2972, -0.3843, -0.0077, -0.7114, -0.0130, -0.2512, -0.2410, -0.2260, +0.2555, -0.2789, +0.1600, +0.1542, -0.1273], +[ -0.2428, +0.3061, +0.2298, -0.4761, -0.3310, +0.1217, -0.4854, -0.0608, +0.0785, +0.0976, +0.0841, +0.0917, +0.3270, -0.5238, +0.0938, -0.4166, -0.1472, -0.0707, +0.0508, -0.2121, -0.2691, -0.3868, +0.3209, +0.1520, -0.3473, +0.3797, +0.1491, -0.0827, +0.0303, -0.0662, -0.0583, -0.0114, -0.2137, -0.0716, -0.2505, +0.0234, +0.1942, -0.2429, -0.1812, +0.2127, -0.3146, -0.0560, -0.1975, -0.2884, +0.1577, -0.1066, +0.3612, -0.4182, +0.3614, +0.1490, +0.2338, -0.1749, +0.1586, -0.1450, -0.3109, +0.0085, +0.2919, -0.5191, -0.4061, +0.3164, -1.2844, -0.0685, -0.0588, +0.0751, -0.3219, +0.4100, -0.0801, -0.3325, +0.1215, +0.2556, -0.3045, -0.4596, -0.0324, +0.0205, -0.0232, +0.1530, +0.0951, -0.2800, +0.0506, -0.5846, -0.1273, -0.0996, +0.2067, +0.1167, +0.3611, -0.0991, -0.1651, -0.3704, -0.1254, -0.3887, -0.1392, +0.2495, -0.1188, -0.5125, -0.7474, +0.2729, -0.2425, -0.3024, +0.1678, -0.0371, -0.1116, -0.4206, -0.2825, -0.0830, +0.0164, +0.3703, -0.5570, -0.2507, -0.2276, +0.3190, -0.4609, -0.1061, +0.1248, -0.1382, +0.0740, +0.0562, +0.0275, +0.2151, -0.1987, -0.6144, -0.0418, +0.2406, -1.1566, +0.1270, -0.4743, +0.0390, -0.0635, -0.0234], +[ +0.1849, +0.2056, -0.8912, +0.1386, -0.2061, +0.2078, +0.0089, -0.5197, -0.3154, -0.3073, -0.4449, +0.1493, +0.4017, -0.4632, +0.0683, -0.0695, -0.2991, -0.1667, -0.8045, -0.2511, -0.2451, +0.4418, +0.2032, +0.1380, -0.1905, -0.2897, +0.0508, -0.0452, -0.0836, +0.1389, +0.1278, -0.0631, +0.0659, -0.0119, -0.4652, +0.0809, -0.0130, +0.1559, -0.2362, -0.0178, +0.4270, +0.2486, -0.0051, -0.1884, -0.2139, -0.6266, -0.2996, -0.6199, -0.1317, +0.0074, +0.4751, +0.2395, +0.2592, +0.1341, -0.0190, -0.2331, +0.2688, -0.7262, +0.2291, -0.1426, -0.0483, -0.0462, -0.1390, +0.1052, -0.6746, +0.1354, -0.0905, +0.1046, -0.1011, +0.0623, -0.6305, -0.6835, -0.2048, +0.0765, +0.2925, -0.0006, +0.4725, -0.5182, -0.1838, +0.1910, -0.4000, +0.0748, -0.5708, -0.1253, -0.1979, +0.4603, +0.2264, -0.1244, -0.1174, +0.1527, -0.0043, -0.0938, -0.1171, -0.2813, +0.1696, -0.7883, +0.0192, +0.0551, -0.6117, +0.1119, -0.5844, -0.5764, -0.0239, +0.0728, -0.0364, -0.3200, -0.2571, +0.1682, -0.0850, -0.1715, -0.2180, +0.4132, +0.1072, +0.3502, +0.2404, +0.0948, +0.0001, +0.0032, +0.0910, -0.0538, +0.4683, -0.1478, -0.0923, +0.0925, +0.3624, -0.3939, -0.1887, -0.0461], +[ -0.6513, -0.0528, -0.0799, +0.0180, -0.0639, +0.1353, +0.1291, -0.4689, -0.1285, +0.0403, -0.0495, -0.2101, -0.0562, +0.0413, +0.3756, +0.2829, -0.4205, +0.0386, -0.2373, +0.1858, -0.1519, -1.2870, +0.0758, -0.0572, -0.0928, +0.0717, +0.2179, -1.3161, +0.0086, -0.3917, -0.3191, -0.1952, -0.4163, +0.1665, +0.0394, +0.1485, -0.3066, -0.5259, +0.0706, -0.1073, -0.7096, -0.3626, -0.2640, -0.3450, -0.0300, -0.0195, -0.2554, +0.3610, -0.6629, -0.0244, +0.0810, +0.1760, -0.1691, -0.0746, -0.1397, +0.2106, -0.3880, -0.8769, -0.1162, -0.3865, +0.4369, +0.0547, -0.2496, +0.2524, +0.2667, -0.1418, +0.0266, -0.3762, -0.0858, +0.0070, +0.1271, +0.3415, +0.3415, +0.0483, +0.4017, -0.0354, -0.3031, +0.3032, +0.1559, -0.0946, +0.3062, -0.2216, +0.1691, -0.0621, +0.3155, +0.2635, +0.2077, +0.0959, +0.0565, +0.2541, +0.0393, +0.0420, +0.1090, -0.3292, -0.2852, -0.1791, -0.3682, +0.3089, -0.0278, +0.0165, -0.2482, -0.0125, +0.1965, -0.2145, +0.2043, -0.7790, -0.2388, +0.1049, -0.0955, -0.0739, -0.3513, -0.7518, -0.0023, -0.1168, +0.2432, +0.1824, -0.4548, -0.1216, +0.2842, +0.0144, +0.1611, +0.1462, +0.4332, -0.4961, +0.0503, -0.1672, -0.2520, +0.0050], +[ -0.4374, +0.0677, +0.1759, -0.0717, -0.5386, +0.0776, -0.0142, -0.5765, -0.3650, +0.3188, -0.7733, -0.4377, -0.7963, -0.3026, -0.2102, -0.8911, -0.4924, +0.3700, -0.0042, -0.4664, -0.1002, -0.1016, -0.1787, +0.1152, -0.0962, -0.2385, -0.0872, -0.2961, -0.1030, +0.1671, -0.2583, -0.2238, -0.1293, -0.0782, -0.4061, -0.3127, +0.1150, +0.1069, +0.0334, +0.2424, -0.0779, +0.1749, +0.1685, +0.4895, -0.4784, -0.5112, +0.3653, -0.3491, -0.0358, -0.0161, -0.7627, -0.2534, -0.1499, -0.6884, +0.1699, +0.1398, +0.0126, -0.6539, -0.5635, +0.3513, +0.0543, +0.4240, -0.0515, -0.6213, -0.1297, +0.5964, +0.2096, +0.0586, -0.3029, +0.1138, -0.5396, -0.2229, -0.8885, -1.1727, +0.0485, -0.2309, +0.2224, +0.3499, -0.0101, +0.0408, +0.1950, +0.1235, -0.3856, +0.0873, -0.3156, -0.1496, -0.0588, -0.2328, +0.2851, +0.3854, +0.1741, +0.1355, +0.0666, -0.2230, +0.0363, +0.3607, -0.8664, +0.0231, -0.1652, -0.2408, -0.2333, +0.1644, -0.5628, +0.2266, -0.0874, -0.7965, +0.4027, +0.1313, -0.0736, +0.3931, +0.1241, -0.5326, -0.1481, -0.2934, +0.3501, -0.5848, -0.3682, -0.0025, -0.0314, +0.0481, +0.1469, -0.2880, -0.2509, +0.0841, -0.2406, -0.1403, -0.3320, -0.1264], +[ +0.2835, -0.2385, +0.0157, -0.1775, -0.0661, +0.2835, -0.2914, -0.0802, +0.0005, -0.9043, +0.3188, -0.0884, +0.1066, -0.4199, -0.4391, -0.2280, -0.6856, +0.0331, -0.9060, +0.1107, +0.1094, +0.2466, -0.1458, +0.0564, -0.8896, -0.7002, -0.1500, +0.3055, -0.1778, -0.1791, +0.1248, +0.0839, +0.0610, +0.0625, -0.0862, -0.0261, -0.1398, -0.1335, -0.6727, +0.2547, -0.7196, +0.1070, +0.2992, +0.0814, +0.0297, +0.0174, -0.1268, -0.2557, -0.8446, -0.0955, -0.1967, -0.1212, +0.1532, -0.5281, -0.1994, +0.1381, +0.1805, -0.5466, +0.0128, -0.1981, +0.3126, +0.1236, -0.3552, -0.0086, -0.4803, -0.1862, +0.0102, +0.0481, -0.3328, +0.1807, -0.3255, -0.5793, +0.1044, +0.0913, +0.0427, -0.0351, -0.7696, -0.1137, -0.0585, -0.0956, +0.2934, +0.1989, +0.4311, -0.3571, +0.1281, +0.1825, -0.0877, +0.1746, +0.3465, -0.0489, -0.0920, -0.1478, -0.2537, +0.0394, -0.2832, +0.1150, +0.1023, +0.0576, +0.1433, +0.1745, +0.2718, +0.0142, +0.1164, -0.1714, +0.0859, -0.1570, -0.0102, +0.3979, -0.4980, -0.0764, -0.5556, -0.3163, +0.0547, -0.1635, +0.1372, +0.2434, -0.0717, +0.1115, +0.0103, +0.2736, +0.1025, +0.3237, +0.1072, -0.1598, +0.2211, -0.9020, -0.0138, -0.0541], +[ +0.5913, -0.1232, +0.4854, -0.9341, -0.0232, -0.2916, -0.0394, -0.6606, +0.2191, +0.5984, -0.3938, -0.0504, -0.0565, -0.5473, -0.1880, +0.7157, -0.0056, -0.4979, -0.2422, +0.0283, -0.0454, -0.1495, +0.1372, -0.1654, -0.0747, +0.0656, +0.0167, +0.3254, +0.2891, -0.4931, +0.0534, -0.2193, +0.0124, +0.0179, -0.2722, +0.1878, +0.0150, +0.2374, -0.6084, -0.2652, -0.2618, +0.0132, -0.0302, +0.0346, -0.1478, -0.6839, +0.0778, -0.3381, +0.2921, -0.1248, +0.2446, +0.0116, -0.4571, -0.1960, +0.5189, -0.6623, +0.2867, -0.5312, +0.5299, -0.0400, -0.3333, +0.3019, +0.7214, -0.6399, +0.0920, +0.0674, -0.2953, -0.3731, -0.1957, +0.2722, +0.5687, +0.1900, -0.1495, +0.2474, +0.5458, -0.0210, +0.3382, +0.1387, +0.3749, -0.7159, -0.2116, +0.2044, +0.0299, -0.6997, -0.0607, -0.1249, +0.4435, +0.1194, -0.3956, -0.3680, +0.7815, -0.3192, -0.2005, +0.6671, +0.1049, +0.1786, -0.0453, +0.0361, +0.3828, +0.1632, -0.2219, +0.0587, -0.0778, +0.2726, -0.1161, -0.8251, -0.9922, -0.1238, -0.2244, -0.0043, -0.8359, -0.4257, +0.3097, -0.0342, -0.6175, +0.1667, +0.2046, -0.4767, -0.5294, +0.3274, +0.6918, -0.2039, +0.0763, -0.1972, +0.2738, -0.1745, +0.3617, -0.1313], +[ +0.3985, -0.7089, -0.0332, +0.0505, +0.0036, -0.0961, -0.0241, +0.2885, -0.2104, +0.0825, +0.2986, +0.1737, -0.1259, -0.6318, -0.5804, -0.4030, -0.5987, -0.4087, +0.0740, -0.4228, +0.0196, -0.0847, -0.1110, +0.1669, +0.2755, -0.6475, +0.1167, -0.0541, +0.1044, -0.0361, -0.1183, +0.1291, -0.0599, +0.1331, -0.2997, +0.2303, +0.1575, +0.3870, -0.1515, -0.4865, -0.6648, +0.1327, +0.1144, +0.0974, +0.0034, -0.2743, +0.0202, -0.1749, -0.1239, -0.3202, -0.3870, +0.0799, -0.1327, +0.0868, +0.3767, +0.1424, +0.1184, +0.4465, -0.1336, -0.0741, -0.3882, +0.1285, -0.3939, -0.7510, -0.6497, -0.2128, -0.4897, -0.1906, +0.2443, -0.0178, +0.2300, +0.1188, -0.1663, -0.2625, +0.1943, -0.1735, +0.1914, -0.3450, -0.7589, -0.1376, -0.2713, -0.5135, +0.1341, -0.1255, +0.1950, +0.0079, +0.1064, +0.1392, -0.1342, -0.5934, +0.2223, -0.7193, -0.3631, -0.0109, -0.6700, -0.0695, +0.3342, -0.3029, -0.4486, -0.3059, -0.1220, +0.0722, +0.1273, +0.0583, -0.4831, +0.1510, -0.1138, +0.0517, -0.1325, -0.2582, +0.2351, -0.1619, -0.0685, +0.0409, +0.1921, -0.5289, -0.8433, -0.3236, +0.1013, -0.0917, -0.4555, +0.2112, +0.5211, +0.0347, -0.0369, -0.0381, +0.1335, +0.0780], +[ +0.3391, -0.1031, +0.5497, -0.0912, -0.0822, +0.0400, +0.0104, -0.2520, -0.2326, -0.1946, +0.1817, +0.1504, -0.1373, -0.3782, +0.2782, -0.0811, -0.1670, -0.0752, -0.0038, +0.0659, -0.1489, +0.0530, -0.1602, +0.2660, +0.3501, -0.3531, +0.0742, +0.4502, -0.1074, +0.3760, +0.3817, +0.3847, -0.0346, -0.2125, -0.3708, +0.1074, -0.5406, +0.6945, +0.0836, +0.5442, -0.0731, +0.1704, -0.2789, -0.2147, -0.1203, -0.4953, -0.2338, -0.6956, -0.2753, -0.2008, +0.3548, +0.2988, -0.0777, -0.1839, +0.2720, -0.3387, -0.0846, +0.2037, +0.1424, +0.1685, -0.0319, -0.2133, +0.2418, -0.2023, +0.0885, -0.2266, -0.0139, +0.1143, +0.2558, +0.1364, -0.0488, -0.3719, +0.1516, +0.0701, -0.0487, -0.1628, +0.6667, -0.0374, -0.0616, -0.6835, +0.3366, +0.3745, +0.3795, -0.3324, +0.0391, +0.1536, +0.4374, +0.3632, -0.1966, -0.3302, +0.0733, +0.2078, +0.1054, -0.1593, -0.4613, -0.0141, -0.1862, +0.3851, -0.3174, +0.1968, -0.2634, +0.0754, +0.0973, +0.4310, +0.0077, +0.1042, +0.5596, +0.1151, -0.0996, +0.2052, +0.0175, -0.1184, -0.0746, -0.0426, +0.1649, -0.1099, -0.1221, -0.8761, +0.1507, +0.0753, -0.1373, +0.0390, +0.3692, +0.0726, +0.1944, -0.3016, -0.0347, -0.0190], +[ +0.1592, -0.9045, -0.3388, +0.2854, -0.3764, -0.2765, -0.2451, +0.2391, -1.0949, +0.0841, +0.3115, -0.3353, -1.3785, +0.1600, +0.3432, +0.2445, +0.1564, +0.0087, +0.3491, -0.5923, -0.2462, -0.4761, -0.4795, +0.1626, -0.1966, -0.2813, -0.1815, -0.1901, -0.4001, +0.0344, -0.1321, +0.0140, -0.3800, +0.1196, -0.1599, -0.2739, +0.0795, -0.2032, +0.3463, +0.0708, +0.2574, -0.0073, -0.2222, -0.2274, -0.1679, +0.0262, +0.3934, -0.0947, +0.3593, -0.0873, -0.4258, -0.1662, -0.2950, +0.0077, -0.0881, -0.3166, -0.4573, -0.0139, +0.1009, +0.1217, +0.3329, +0.2159, +0.2382, +0.0680, +0.2457, +0.0094, -0.1908, +0.4279, -0.4443, +0.0266, +0.3519, +0.1389, -0.9522, -0.1226, +0.1761, +0.0645, -0.3624, -0.0373, -0.6709, -0.6824, +0.0779, +0.4334, -0.1997, +0.2059, -0.2751, +0.4227, +0.1345, +0.3756, -0.6810, +0.1684, +0.0572, +0.0989, -0.7624, -0.0815, +0.0952, -0.1433, -0.1627, -0.0365, -0.4531, -0.3340, -0.3930, +0.0047, -0.7260, -0.7704, -0.1741, -0.6385, -0.2428, -0.2376, -0.2202, +0.3776, +0.3622, +0.3179, -0.5478, -0.0946, -0.4054, -0.3539, +0.1668, -0.3799, -0.6982, +0.2685, -0.1232, -0.1367, +0.1098, -0.0299, +0.2043, +0.4321, +0.6063, -0.1830], +[ +0.0292, -0.0010, +0.2158, -0.4331, -0.0310, +0.0424, +0.3919, -0.7883, +0.2159, +0.1283, +0.1814, -0.1074, +0.2870, +0.3619, -0.0246, +0.1734, -0.2848, +0.0568, +0.2306, +0.1180, +0.3157, -0.5900, -0.2666, -0.6148, -0.2705, +0.4858, +0.0142, -0.2339, +0.3535, +0.3406, +0.0438, -0.1729, +0.1806, +0.1529, -0.3753, +0.1985, -0.6612, -0.0589, +0.2622, +0.3362, -0.3548, +0.0882, +0.0478, -0.0368, +0.1482, +0.2514, +0.1228, -0.1455, -0.1251, +0.0611, +0.0816, +0.0377, -0.1065, +0.0500, -0.3750, -0.2686, -1.3232, -0.3649, -0.5384, -0.3742, +0.1670, -0.3885, -0.0707, +0.4238, -0.0005, +0.3778, -0.9734, +0.3905, +0.6022, -0.0947, -0.7236, -0.1353, +0.0807, -0.8187, -0.0729, -0.3487, -0.1654, +0.2132, +0.0264, +0.1123, -0.0456, +0.1316, -0.7286, +0.2312, -0.2189, -0.0716, -0.3669, -1.2613, +0.1973, -0.5447, +0.1262, -0.4810, +0.3795, -0.6663, +0.3199, +0.0797, +0.0648, -0.7192, +0.3327, -0.3189, -0.0497, -0.3963, -0.2406, -0.2792, +0.0374, +0.1829, +0.1853, -0.0994, -0.7060, -0.1172, -0.0547, -0.2612, -0.9416, -0.3015, -0.0489, +0.0872, +0.2002, -0.5830, +0.0093, -0.2521, -0.3983, -0.5610, -0.1444, -0.0213, -0.1840, +0.5584, +0.1573, -0.0839], +[ -0.0054, -0.1552, +0.0445, +0.5473, +0.3489, +0.0942, +0.1283, +0.1088, +0.2221, +0.0951, -0.2887, -0.3084, +0.0476, -0.6876, -0.1634, -0.0490, +0.0768, +0.1582, -0.3275, -0.2437, -0.1178, -0.0054, -0.2570, +0.1724, +0.0588, -0.8220, +0.3945, +0.3071, +0.0125, +0.0827, +0.2293, +0.1611, -0.0184, +0.3169, +0.3854, -0.1290, +0.3770, +0.0940, +0.0282, +0.1175, -0.1819, +0.0814, -0.3593, +0.4649, +0.4170, -0.3505, -1.3469, +0.1904, +0.0756, -0.4528, -0.1058, +0.0501, +0.1074, +0.0082, +0.0061, -0.3440, -0.0304, -0.1088, -0.0586, +0.0032, -0.0331, -0.0033, +0.0723, -0.3142, -0.1265, -0.0172, +0.1410, -0.0386, -0.2496, +0.1728, +0.2118, +0.3957, +0.1726, +0.1006, -0.3493, -0.1489, -0.3966, -0.2837, -0.0478, -0.0989, +0.1569, +0.0148, -0.0214, -0.0335, -0.0149, +0.4945, -0.5369, -0.0122, -0.0322, +0.2602, +0.2476, -0.1682, -0.4900, +0.1432, +0.0293, -0.3913, -0.0559, +0.1990, +0.1417, -0.4177, +0.3085, -0.2313, +0.0765, -0.3012, +0.1796, -0.5680, +0.3003, +0.1191, -0.1923, -0.1704, -0.2999, -0.4388, -0.7674, -0.0022, +0.1210, +0.1297, -0.2887, +0.1796, +0.3751, +0.2259, -0.0375, -0.0734, +0.3011, +0.1191, -0.0989, +0.0234, +0.4871, +0.0155], +[ -0.2794, +0.4030, -0.8714, +0.1589, +0.3095, -0.2938, -0.5479, -0.1597, -0.1159, -0.3491, +0.4800, +0.0262, +0.3959, -0.6992, -0.7997, -0.1646, +0.2888, -0.8217, +0.1957, +0.2923, +0.0236, +0.2229, +0.0514, +0.1859, -0.2631, -1.0410, +0.0539, -0.3402, -0.0101, -0.2683, +0.3238, +0.0962, -1.0021, -0.0456, -0.9495, +0.3728, -0.0316, -0.0075, +0.2809, +0.3721, -0.1940, +0.0839, -0.5128, +0.3385, -0.0146, +0.0474, -0.7893, -0.0244, -0.4119, -0.1384, -0.3560, -0.5578, +0.0636, -0.5752, -0.2949, +0.5623, +0.1826, -0.2331, -0.2763, +0.1912, -0.1321, +0.0604, +0.1944, -0.1728, -0.3342, +0.0470, -0.0843, +0.3187, -0.0226, +0.0507, -0.2920, -0.9700, -0.0704, -0.3181, -0.1028, -0.3946, -0.3361, +0.3495, +0.2483, +0.2804, -0.0085, -0.2937, -0.2936, -0.0616, -0.0207, -0.4355, +0.1786, +0.2164, +0.1249, +0.3248, +0.2681, -0.1227, +0.2755, +0.2102, -0.8579, -0.1426, -0.0127, +0.0146, +0.3679, +0.1330, +0.2826, +0.1176, -0.0155, +0.4931, +0.1725, +0.0041, -0.0312, +0.1938, +0.5592, -0.0589, +0.0588, -0.0504, +0.1824, +0.1543, +0.2127, -0.1573, +0.0825, -0.1487, +0.0773, -1.0069, +0.3602, +0.1695, -0.1658, -0.4918, -0.2411, -0.0045, +0.1308, -0.0919], +[ -0.0144, -0.1173, -0.0091, -0.0784, +0.3286, +0.4062, -0.4460, +0.0764, -0.0014, -0.2451, -0.3954, +0.1172, +0.1226, -0.0482, -0.0108, -0.5943, +0.5661, +0.1431, -0.0304, +0.0496, -0.6318, +0.0808, -0.1243, +0.2488, -0.3727, +0.1838, -0.1293, -0.5253, -0.2261, -0.0610, -0.0719, -0.9734, +0.0533, -0.2570, +0.1856, +0.1661, -0.0942, -0.4841, +0.3055, -0.3630, -0.3041, +0.3149, +0.0270, -0.2742, -0.3865, -1.0538, -0.2327, +0.1288, -0.3333, -0.0792, -0.1043, -0.0144, -0.4203, -0.2229, -0.1949, -0.1688, +0.0234, +0.4592, -0.2843, +0.1205, -0.1586, -0.1057, -0.4400, +0.2341, -0.0925, -0.0170, +0.6462, -0.0736, +0.2749, +0.4940, +0.0412, +0.1284, -0.1656, +0.1447, +0.2860, +0.1238, +0.2212, +0.1228, -0.2901, +0.2669, +0.2428, +0.4930, +0.3968, -1.0630, -0.3707, -0.4179, -0.0529, +0.1792, +0.0515, -0.0135, -0.3825, +0.0324, -0.3215, +0.0142, -0.6385, -0.3276, -0.2980, -0.3898, -0.3575, +0.0054, +0.0518, +0.1864, +0.1134, -0.0957, +0.1494, -0.0553, -0.4238, +0.0880, -0.0626, -0.4486, -0.7110, +0.0714, -0.0491, +0.1992, -0.4954, -0.2394, -0.1724, +0.1084, -0.3245, -1.6636, +0.2524, -0.6147, +0.0663, +0.3333, -0.1083, -0.7804, -0.1384, -0.2598], +[ -0.2018, -0.5408, +0.0414, +0.1091, +0.3718, +0.2390, +0.4673, -0.2912, +0.0094, -0.0723, -0.3211, -0.1889, -1.4788, +0.3892, +0.1359, -0.1354, -0.0398, -1.3709, -0.2299, +0.2701, -1.3452, -0.3284, -0.1971, -0.7869, +0.1948, +0.2171, -0.2420, +0.3016, +0.4040, +0.6372, +0.0466, -0.6071, +0.3696, -0.0766, +0.1127, +0.3249, +0.1572, +0.1858, +0.1178, +0.1339, +0.0237, -0.0347, -0.0048, -0.1617, -0.7564, -0.1252, -0.0638, -0.1959, -0.4785, -0.1408, -0.3030, +0.2420, -0.3357, -0.0812, -0.1504, +0.1962, +0.1617, +0.0325, -0.2494, -0.1924, +0.2825, -1.0908, -0.5430, -0.2254, -0.0517, -0.2560, -0.2175, -0.2357, -0.2966, -0.1681, +0.2224, -0.1229, -0.9143, -0.3390, +0.1872, +0.0530, -0.0697, -0.6127, -0.3514, +0.0880, -0.2166, -0.2539, +0.0688, +0.1428, +0.2118, +0.1108, -0.0943, +0.1286, -0.3968, +0.1960, -0.0700, +0.5808, +0.0374, -0.5084, -0.3881, +0.0575, +0.2369, +0.5628, -0.2804, +0.4851, +0.1104, +0.0284, -1.1431, +0.1047, -0.3442, +0.1048, -0.0653, +0.1550, +0.0134, -0.2567, +0.4448, +0.0309, +0.1873, +0.2369, +0.0031, -0.3404, +0.3019, +0.1128, -0.1842, +0.0481, -0.0884, +0.3235, -1.0687, -0.1321, +0.2978, -0.2362, +0.0378, +0.1971], +[ +0.2535, -0.2242, -0.0908, +0.5499, -0.2328, -0.3475, +0.2398, -0.1673, +0.1231, -0.6901, +0.0918, -0.0608, +0.0751, +0.2779, -0.3674, -0.0832, +0.1389, +0.0036, -0.0265, -0.0870, -0.0760, -0.3173, +0.0605, +0.2014, -0.3164, -0.0104, -0.0169, -0.3861, -0.2773, +0.0635, +0.0945, -0.5024, +0.1406, +0.0821, -0.0719, -0.1437, -0.3810, +0.2135, -1.1224, -0.0387, +0.1928, +0.1379, +0.0183, -0.0645, -0.0482, +0.1046, -0.2203, +0.0935, +0.2519, -0.2642, +0.1156, -0.3227, -0.1677, -0.2038, +0.0520, +0.0623, -0.1027, +0.0175, -0.0584, +0.0420, +0.1626, -0.8398, -0.0657, -1.0170, +0.0191, -0.9715, +0.0380, -0.1604, -0.6074, -0.0295, -0.2755, +0.1088, -0.1964, +0.2977, -0.3666, -0.3127, +0.2279, +0.0716, -0.5187, +0.1724, +0.1011, +0.0378, -0.5323, +0.0495, -0.5084, +0.0564, +0.0451, +0.1388, +0.0659, -0.0164, +0.1866, -0.4834, +0.0857, +0.0201, +0.1044, -0.0152, +0.1856, +0.4617, +0.0526, -0.0806, -0.1098, +0.0640, -0.1741, -0.1642, -0.1463, -0.2830, +0.0557, -0.3862, +0.4099, -0.3520, -0.0970, +0.2255, +0.0056, +0.2791, -0.3706, +0.2901, -1.1393, +0.2312, -0.0597, +0.1108, -0.1686, -0.3515, -0.0123, +0.6058, +0.0172, +0.1834, +0.1619, +0.0642], +[ +0.1424, +0.2771, -0.4119, -0.4453, -0.0806, -0.0313, +0.0615, +0.0926, -0.0154, +0.1544, +0.0413, -0.0090, +0.0009, +0.1263, -0.5136, +0.1391, +0.1423, -0.2059, +0.3629, +0.0897, -0.2172, -0.0581, -0.4607, -0.6676, +0.2999, +0.1044, -0.0923, +0.0546, +0.1458, -0.0486, +0.0829, -0.4731, +0.0825, -0.4984, -0.2204, -0.0278, +0.1608, +0.3046, +0.0612, +0.0308, -0.1741, -0.1062, -0.1894, +0.3414, +0.3394, +0.2683, -0.5036, -0.4462, +0.1405, -0.0271, -0.1875, +0.3876, -0.0901, +0.1749, +0.2442, -0.6949, -0.3359, -0.3871, -0.1453, -0.6950, -0.1424, +0.1110, -0.0955, +0.1216, +0.3672, -0.1412, -0.1766, +0.0060, -0.1309, +0.0924, -0.0070, -0.0084, -0.7878, +0.0983, -0.2382, +0.3212, -0.0379, -0.0494, -0.4345, -0.3754, +0.1283, +0.1056, +0.1202, +0.2826, -0.2463, +0.2949, -0.3612, -0.0565, -0.1518, +0.1379, -0.4485, -0.4255, -0.0535, -0.8579, +0.3174, -0.0837, -0.0182, +0.0520, -0.1110, +0.1957, +0.4089, +0.0444, +0.1904, +0.0056, +0.1465, +0.2565, -0.5486, -0.6667, -0.0006, -0.8126, -0.1335, -1.0578, +0.1406, -0.3655, +0.1303, -0.0280, +0.3007, +0.2532, -0.0795, +0.0004, -0.1005, +0.3299, +0.0909, -0.3170, +0.1544, +0.3338, +0.0422, +0.0507], +[ +0.4021, -0.5260, +0.0290, -0.7127, +0.3292, +0.3961, -0.4303, -0.1401, +0.1137, +0.1113, -0.2227, -0.2856, +0.1078, -0.5298, -0.2920, -0.3745, -0.7590, +0.1277, -0.5133, -0.5365, -0.0345, +0.3073, +0.0114, +0.5255, +0.2158, +0.2393, +0.2765, +0.0396, +0.1927, -0.1368, +0.0504, -0.1286, +0.2574, -0.3011, +0.0240, +0.1241, +0.0423, -0.2273, -0.0235, +0.0078, -0.6403, -0.3858, -0.5220, -0.6192, +0.4249, -0.5309, -0.1737, +0.1826, -0.1282, +0.5431, -0.0770, -0.3576, +0.1624, +0.0156, -0.4015, -0.5880, -0.4772, +0.1299, +0.1412, +0.3017, -0.3183, +0.2800, +0.1079, -0.3318, -0.3915, -0.0236, -0.2534, -0.0653, +0.0220, -0.5014, -0.0448, +0.4895, -0.5066, +0.0322, -0.4296, +0.5146, +0.0200, -0.5356, -0.0013, +0.0327, -0.3246, -0.2293, -0.2541, -0.4495, -0.5473, +0.2847, -0.1901, -0.2312, -0.1694, -0.6842, -0.1511, -0.1708, +0.1053, -0.5946, -0.3606, -0.2067, -0.1559, +0.0507, -0.2181, -0.0979, -0.1372, -0.1785, +0.0791, -0.2753, -0.1703, +0.0233, +0.2168, +0.4180, -0.4231, +0.0265, -0.0540, +0.1337, -0.4377, -0.2039, -0.2325, +0.1548, -0.3411, -0.4092, -0.7270, +0.5202, +0.1287, +0.2782, -0.1197, +0.1253, -0.0600, -0.5236, -0.6407, -0.1578], +[ +0.2248, -0.0462, -0.8284, +0.3114, +0.1852, +0.1834, +0.2051, +0.0036, +0.3927, +0.0424, +0.3012, +0.3949, -0.1332, -1.5290, +0.1408, +0.1054, -0.7331, -0.1059, -0.2528, -0.3250, -0.0382, -0.2839, +0.2565, -0.1068, -0.9446, +0.1441, -0.3193, -0.2635, +0.0176, +0.0265, -0.0176, -0.2029, -0.0225, +0.1164, -0.1823, -0.3814, +0.0164, +0.1373, -0.3667, -0.7848, -0.0255, -0.0129, +0.1221, +0.1512, +0.1171, +0.1466, +0.5229, -0.6438, -0.0683, +0.3447, -0.0477, +0.3481, +0.0824, -0.2259, -0.0708, -0.1149, -0.0211, -1.2025, -0.1185, +0.0719, -0.1111, -0.1185, +0.2291, -0.6489, -0.0429, -0.1608, -0.9844, -0.2071, +0.3207, -0.7894, -0.4253, -0.2946, -0.1613, +0.0676, -0.2046, +0.0975, -0.1958, +0.1665, -0.0771, -0.4754, -0.7693, +0.2628, +0.2711, +0.0761, +0.0111, -0.2896, -0.1529, -0.2488, +0.4496, +0.1245, -0.4776, -0.0319, -0.0583, -0.0840, +0.1204, +0.2630, -0.0326, +0.1000, -0.2014, +0.1737, -0.3519, +0.0156, +0.1333, +0.6454, +0.0150, +0.1053, -0.0615, +0.1535, -0.6005, -0.6815, +0.3927, -0.0731, +0.2823, +0.1357, -0.1806, -0.1308, -1.2679, +0.2003, +0.2598, -0.3577, -0.1103, -0.1210, +0.3821, +0.0155, +0.1079, +0.0055, +0.1147, -0.2482], +[ -0.1591, -0.0014, +0.1338, -0.7125, -0.7493, -0.1707, +0.3043, +0.1481, +0.1947, -0.5341, -0.3419, +0.2912, +0.2841, +0.0855, +0.0824, -0.3565, +0.0561, +0.0377, +0.2687, -0.2008, +0.4876, +0.1415, -0.7958, -0.1996, -0.4545, -0.0042, -0.3079, -0.1734, -0.2051, -0.0527, -0.1679, -0.2587, +0.3030, -0.8262, -0.0625, -0.4694, +0.2859, -0.0385, -0.3980, -0.5660, -0.5973, +0.3560, -0.0174, -0.1013, +0.0510, +0.1240, +0.3538, -0.0418, +0.4386, +0.2131, -0.0653, +0.1108, +0.1378, -0.0472, +0.2413, -0.2423, +0.0077, -0.8678, -0.8777, -0.1584, -0.9594, -0.4108, +0.1470, -0.6456, -0.0121, -0.3689, +0.1646, -0.9434, -0.4325, -0.2030, -0.0612, +0.0111, -0.1285, +0.1007, +0.0899, +0.0277, -0.0589, -0.0392, +0.1973, +0.0096, -0.2397, +0.4534, -0.1920, +0.1441, +0.0410, +0.3059, -0.5382, -0.3187, +0.2552, -0.0264, +0.1063, -0.2650, +0.1642, -0.0897, -1.0989, -0.3342, -0.7970, -0.3262, +0.1747, +0.4497, +0.0286, +0.0872, -0.0096, +0.1537, -0.0268, -0.1654, -0.2807, +0.0615, -0.5338, +0.2320, -0.1725, +0.0327, -0.4462, -0.2303, -0.0239, +0.2228, -0.0059, +0.0378, +0.1797, -0.5790, -0.3018, +0.0120, +0.2499, -0.0770, -0.7413, +0.1908, -0.6291, -0.0909], +[ -0.1240, -0.4172, -1.2085, -0.3691, +0.0492, -0.1166, +0.1979, -0.2357, +0.1683, +0.5632, +0.2264, +0.3212, -0.3016, -0.1201, +0.2582, -0.1198, +0.0025, +0.1921, -0.2394, +0.4200, +0.6327, -0.4111, -0.3970, -0.0531, -0.3382, +0.1123, +0.1504, -0.3475, +0.1592, +0.1284, +0.2017, -0.2621, -0.3080, -0.0995, +0.1393, -0.1166, +0.0436, -0.2743, -1.1490, +0.0053, +0.1106, +0.0826, -0.0937, -0.0162, -0.2341, +0.0701, -0.2890, -0.1967, -0.3510, +0.2121, -0.0558, +0.1720, -0.0741, -0.0036, +0.2633, -0.3739, +0.0536, -0.1093, -1.3638, -0.0535, -0.1404, -0.1913, -0.1090, +0.0445, -0.2999, +0.3621, -0.2209, -0.3109, -0.0994, -0.0474, +0.2710, +0.0227, +0.0429, -0.0851, -0.1066, -0.0245, -0.1123, +0.1840, -0.8776, -0.0159, -0.1842, +0.1612, +0.6969, -0.5558, -0.5212, +0.2787, -0.1248, +0.1391, +0.1134, +0.1405, -0.5579, +0.2416, +0.0664, +0.1687, -0.1130, -0.1811, -0.0078, -1.1484, +0.3887, -0.3861, +0.1172, +0.3303, +0.3138, +0.1004, +0.2782, -0.3874, -0.2019, -0.6500, -0.0303, -0.6276, -0.2639, -1.1029, +0.1096, +0.2257, -0.3056, -0.4345, -0.0964, +0.0984, -0.1954, +0.2322, -0.5411, +0.0700, -0.3115, +0.3259, +0.0910, +0.1975, -0.2759, +0.0448], +[ -0.3904, -0.0199, -0.3537, -0.4832, -0.1628, +0.0043, -0.0414, +0.1218, -0.2269, +0.2141, +0.3481, +0.0906, +0.0224, +0.2132, +0.3279, +0.5876, -0.3077, -0.4872, -0.6630, -0.4332, +0.2724, -0.3827, +0.1056, +0.2548, -0.5510, +0.4017, -0.1022, -0.4635, -0.1546, -0.3860, -0.2522, -0.7110, -0.9669, +0.2434, +0.2342, +0.3793, +0.1495, +0.6897, -0.1169, +0.2553, +0.0812, -0.0038, -0.2082, -0.6254, -0.2263, +0.3667, +0.0377, -0.0467, +0.0525, -0.4292, +0.3255, +0.1481, -0.3301, +0.1646, -0.0131, +0.3723, +0.0310, +0.1258, +0.2263, +0.3037, -0.5007, -0.8377, -0.4179, -0.1642, -0.3209, +0.0559, +0.5227, +0.2157, -0.3959, -0.2160, +0.1486, +0.2303, +0.1043, +0.0733, +0.3248, -0.0592, +0.3219, -0.2249, -0.0967, +0.1890, -0.1448, -0.4372, +0.4339, -0.4763, +0.1388, -0.1501, -0.5580, -0.4443, +0.0384, +0.1303, -0.4852, -0.2745, +0.2143, +0.5117, -0.1081, -0.0613, +0.0808, -0.1280, -0.0541, +0.3160, +0.0524, +0.0024, -0.1632, +0.1957, -0.2029, -0.0273, -0.6920, +0.1693, -0.3618, -0.6140, -0.1295, +0.1724, -0.2306, +0.1818, +0.3156, +0.6412, +0.1616, -0.5177, -0.0959, -0.1618, -0.0358, -0.3144, -0.2045, +0.0474, -0.5212, +0.1608, -0.3414, +0.1889], +[ -0.1657, +0.0451, -0.3340, +0.3003, -0.0376, +0.2246, +0.3963, -0.6580, +0.4921, +0.0738, -0.8389, -0.0540, +0.4077, +0.2517, +0.1214, -0.0437, +0.2799, +0.1646, -0.1190, -0.0437, -0.0101, -0.4510, -0.1197, +0.4256, +0.4241, +0.2016, -0.2480, -0.2848, +0.0910, -0.3252, +0.0920, +0.1780, +0.1210, -0.2491, +0.4193, +0.0180, -0.2447, +0.1820, +0.4304, -0.6427, -0.0964, -0.4044, -0.1593, +0.3301, -0.1972, +0.1570, +0.1535, +0.2956, +0.0852, +0.5078, -0.2621, +0.0667, +0.3003, +0.1874, -0.4642, +0.0619, -0.1780, -0.0325, +0.0594, -0.0962, +0.0029, -0.0338, -0.6791, +0.0143, +0.2036, -0.6389, -0.3388, -0.3286, +0.2323, -0.3636, +0.0878, -0.1679, +0.3731, -0.6431, -0.0756, -0.0599, -0.0401, +0.3496, -0.3530, +0.0650, +0.1341, -0.2022, -0.6015, -0.3657, +0.1225, -0.1339, -0.0863, -0.2255, -0.0403, -0.1262, -0.0083, +0.3607, +0.4136, +0.4825, +0.2525, -0.1267, +0.2066, -0.0973, +0.1031, -0.0115, -0.2364, +0.2755, +0.0984, -0.4746, -0.1369, -0.0256, +0.1211, -0.1850, +0.1281, +0.0125, -0.4228, -0.1674, +0.0763, +0.1332, -0.1609, +0.2957, -0.0578, -0.1904, +0.2217, +0.4961, -0.1120, -0.0485, +0.0111, -0.3721, -0.2940, -0.2656, -0.0420, -0.0380], +[ -0.0861, +0.1449, -0.6769, +0.0344, -0.2920, +0.1292, -0.2751, +0.1184, +0.3807, -0.3596, -0.7922, +0.0296, +0.6053, -0.8649, -0.6145, -0.9584, -0.1484, -0.2938, +0.5678, -0.1980, +0.9455, +0.1873, -0.4021, -0.0092, +0.1739, +0.0755, -0.2697, -0.5705, -0.1806, -0.4981, -0.9201, -0.2681, -0.5527, -0.5562, -0.2761, -0.1184, +0.0279, +0.0548, +0.2510, +0.1212, +0.2111, -0.2896, +0.0753, -0.1386, -0.3318, +0.4249, -0.4348, -0.6503, -0.9838, -0.0485, +0.1144, +0.7076, -0.1162, -0.0505, +0.1097, +0.1913, +0.1892, -0.0247, +0.0125, -0.2954, -0.0785, -0.7718, -0.6086, -0.0690, +0.5044, +0.0031, +0.0960, +0.2154, +0.3533, +0.5952, -0.1162, +0.5624, -0.2424, +0.0859, -0.2930, -0.1793, +0.7442, +0.0831, -0.1739, +0.2988, -0.7403, +0.6559, -0.8099, -0.1913, +0.1954, -0.3384, +0.0240, +0.2432, -0.3941, +0.2698, -0.2234, +0.1533, -0.0102, +0.0815, +0.3778, +0.1553, +0.2522, +0.2298, +0.1750, +0.3060, -0.3154, -0.9199, +0.1745, +0.4966, -0.1204, +0.0371, -0.9282, -0.1539, +0.2182, -0.2074, -0.5206, +0.4416, -0.6532, -0.0871, -0.1050, -0.0336, +0.0717, -0.0583, +0.0276, -0.7181, +0.2044, +0.2626, -0.1477, -0.1966, +0.5259, -0.2208, +0.1887, -0.3999], +[ +0.3951, -0.1828, -0.5690, -0.4359, +0.1588, -0.0299, -0.0165, +0.1315, +0.1514, +0.0204, -0.0711, +0.4348, +0.1533, -0.5613, +0.1055, +0.1061, +0.0002, +0.0874, +0.1442, +0.1372, -0.2141, -0.2999, +0.1639, +0.0992, -0.1852, -0.2600, +0.0525, +0.4053, -0.2276, +0.1156, -0.1959, -0.2561, +0.1651, +0.2641, +0.0408, -0.2071, -0.3731, -0.1776, +0.2279, +0.2284, -0.0525, -0.2135, +0.2042, +0.1038, +0.0338, +0.0044, -0.1703, -0.2930, +0.3392, +0.3723, +0.3568, +0.1010, -0.6759, +0.1756, -0.0830, -0.0264, -0.3639, +0.2400, +0.1893, -0.7797, -0.2049, +0.6765, -0.9135, +0.1923, -0.4428, -0.2858, +0.1698, -0.0717, -0.0732, -0.1378, +0.1252, -0.3311, +0.3699, +0.2626, -0.1844, +0.2205, +0.1067, +0.2054, +0.1633, -0.0336, +0.1384, +0.2030, -0.4712, +0.1841, +0.1662, -0.4934, +0.2673, +0.1616, -0.1415, +0.1551, +0.1830, -0.7949, -0.1026, -0.0908, -0.2148, -0.0862, -0.3247, +0.2256, +0.4064, +0.0255, -0.2503, -0.1194, +0.0556, +0.2649, -0.1426, -0.3441, -0.4780, -0.0587, +0.1581, +0.0628, -0.9718, +0.4334, +0.0918, +0.0179, -0.2611, -0.2913, +0.0065, -0.3420, +0.1218, +0.0496, +0.4038, -0.2304, +0.3929, +0.2798, +0.0511, -0.0994, -0.1512, +0.0164], +[ -0.6535, -0.3824, +0.4637, +0.5439, +0.0985, +0.2432, -0.1147, -0.4929, -0.4969, -0.3765, +0.3427, -0.1913, +0.1222, +0.5814, -0.0775, -0.0383, -1.3698, -0.0067, +0.1913, -1.1719, -0.2135, -0.6633, +0.1711, -0.2446, -0.9635, +0.1336, +0.2132, +0.6358, -0.1220, -0.0156, +0.4911, +0.6260, -0.4446, +0.2189, -0.4621, -0.6081, +0.2439, +0.0313, -0.3464, +0.2112, -0.2890, -0.0802, -0.5375, +0.0254, +0.6150, -1.0068, +0.3383, +0.0250, +0.0761, -0.0716, -0.1940, +0.0720, -1.4718, -0.4669, +0.2584, -0.3336, -0.1380, -0.7112, +0.1706, -0.2030, -0.3693, +0.5311, -0.3647, +0.3416, -0.6086, +0.5480, -0.5410, -0.3621, -0.0866, -0.2212, -0.0025, -0.6617, +0.0389, +0.3139, +0.3728, +0.2861, +0.5063, +0.0971, -0.8710, +0.0632, +0.0308, +0.9254, -0.0867, +0.0167, +0.2415, -0.0486, -0.3985, +0.0814, +0.3215, -0.5556, -0.5459, -0.5135, -0.7426, -0.1787, +0.1893, +0.1558, +0.3495, -0.1245, -0.3737, -0.4077, -0.0901, -0.0731, -0.3761, -0.0108, +0.0373, -0.4581, -0.4615, -0.7974, +0.0734, -0.2704, -0.7788, -1.6055, -0.0438, -0.0669, -0.5751, -0.1561, +0.2110, -0.4103, +0.1436, -1.0879, -1.3066, -0.4354, -0.8070, -0.1949, +0.1103, -0.1615, -0.6326, -0.1823], +[ -0.2145, +0.0256, -0.1075, -0.8793, -0.6322, +0.3680, -0.5028, +0.6511, +0.1314, -0.2389, -0.4655, -0.4032, -0.5368, +0.1693, +0.2421, +0.1469, +0.1714, -0.0657, +0.1218, +0.2696, -0.5204, -0.0782, -0.1420, -0.1775, +0.2941, -0.5320, -0.0746, +0.1977, +0.3242, -0.4141, +0.1552, +0.1736, +0.4251, +0.3324, -0.3292, +0.1409, -0.3070, -0.4303, +0.1468, +0.0513, -0.4863, +0.2182, -0.4064, +0.1852, -0.4060, -0.1219, -0.8666, -0.8484, -0.4552, +0.0625, +0.2701, -0.2608, +0.1336, +0.3453, -0.1685, -0.8681, +0.0575, -0.0430, +0.4210, +0.4562, -0.2986, -0.5420, +0.2249, -0.0550, -0.8807, -0.3987, +0.1510, +0.0237, +0.2368, -0.1508, -0.2971, -0.4406, -0.1031, -0.8893, -0.0671, -0.0399, +0.3169, +0.6297, +0.0355, -1.3984, +0.0138, -0.0887, -1.0362, -0.6752, +0.1021, +0.2615, +0.2444, -0.1559, -0.3158, +0.0953, +0.3399, -0.0697, +0.0909, +0.3761, +0.1800, -0.2838, -0.6784, +0.1379, -0.5262, -0.0328, -0.0282, -0.1017, -0.1234, +0.1816, -0.0022, -0.1195, +0.3849, -0.5240, -0.2758, -0.5856, +0.1173, +0.4278, -0.2713, -0.2139, +0.3127, -0.4888, -0.5226, -0.1098, +0.1856, +0.1307, +0.3204, +0.1158, -0.2220, -0.1268, -0.0441, +0.3987, -0.0886, +0.0944], +[ +0.4614, -0.0341, -0.3127, -0.3417, +0.1270, -0.2438, +0.1256, +0.2616, +0.1769, +0.2554, +0.0401, +0.4384, -0.3171, +0.1049, -0.6874, -0.8721, -0.2163, -0.0291, +0.2594, +0.0246, +0.0724, +0.2490, +0.0425, +0.0459, +0.2011, -0.5738, -0.1479, -0.3346, -0.0266, +0.2086, -0.0040, +0.0719, -0.2202, -0.2643, -0.2547, +0.1521, -0.3104, -0.2468, -0.1023, -0.3194, +0.2488, -0.0491, +0.3947, +0.1225, -0.2908, +0.1780, -0.0005, +0.1691, -0.2036, -0.2187, -0.1570, +0.1058, -0.2051, -0.3514, -0.1599, +0.2463, +0.1237, -0.0981, +0.2591, +0.4577, -0.3913, -0.0632, +0.2139, -0.1243, -0.2953, -0.2283, -0.6659, -0.1692, -0.1968, -0.0003, +0.0315, -0.0684, +0.1006, +0.1359, +0.1536, -0.3270, -0.0839, -0.2444, -0.3855, -0.4013, +0.1105, -0.0854, +0.2298, +0.0779, -0.1536, -0.1694, +0.1131, +0.1775, -0.6872, +0.5421, -0.0455, +0.3147, +0.0818, -0.1207, +0.3427, +0.1563, +0.1190, -1.2023, -0.7227, -0.3360, +0.2061, -0.2620, +0.2675, -0.3546, +0.1095, +0.3345, -0.7043, -0.0666, -0.7135, +0.1534, -0.5890, +0.0591, -0.3491, -0.2425, +0.2764, +0.3161, -0.6132, +0.1511, -0.3858, -0.2196, -0.0678, -0.0624, -0.3383, +0.0621, -0.0103, -0.0182, +0.0191, +0.0176], +[ +0.3280, -0.6080, +0.1045, +0.0185, -0.3494, +0.1962, -1.1529, -0.1475, -0.2069, -0.0661, -0.1141, +0.0642, -0.3862, +0.2403, +0.1153, +0.1199, +0.2059, -0.4460, -0.1596, +0.1914, +0.4296, -0.2750, -0.0871, -0.1282, -0.1870, -0.0862, -0.1798, -0.2860, -0.8532, +0.0651, +0.2535, -0.5395, -0.3260, +0.1887, -0.1736, +0.0770, -0.0835, +0.2064, +0.0084, +0.1442, +0.2413, +0.0272, +0.3630, +0.1719, -0.2559, -0.3920, -0.4000, +0.0806, +0.0958, -0.1785, -0.1645, -0.1561, -0.0642, +0.0036, -0.2139, -0.1258, +0.8286, +0.1008, -0.0724, -0.4328, -0.3329, +0.1013, -0.2245, -0.1468, -0.7493, -0.0072, -0.1338, -0.2106, -0.2979, +0.0908, +0.0397, -0.1220, +0.2189, +0.3704, -0.0164, -0.2005, +0.1434, -0.5151, +0.0326, -0.1560, -0.3458, -0.1486, +0.2803, +0.0808, +0.2556, -0.1591, -0.0879, +0.2555, +0.0905, +0.3518, -0.3664, -1.1826, -0.2343, +0.1236, -0.2352, -0.1818, +0.1976, +0.3657, +0.1101, -0.0302, +0.1046, +0.3013, -0.4328, +0.5137, +0.3280, -0.3893, -0.4061, +0.2101, -0.1510, +0.1469, -0.0312, -0.1720, +0.1547, +0.2162, +0.0479, -0.2715, -0.1427, -0.2122, +0.0937, +0.3623, +0.5012, -0.3414, +0.3632, +0.0504, +0.1106, +0.1535, -0.3803, +0.0121], +[ -0.4640, -0.1327, -0.0716, +0.0056, +0.2762, -1.1126, +0.0626, -1.0688, +0.2330, -0.2329, +0.5559, -0.1453, -0.5149, +0.0023, +0.1085, -0.4709, -0.5074, +0.0952, +0.1463, +0.2491, -0.0619, +0.0158, -0.0328, -0.5344, +0.1023, -0.0300, -0.2085, +0.1359, +0.0592, -0.2524, -0.1559, -0.0085, +0.0068, -0.0124, +0.3539, +0.2308, +0.0371, -0.1474, +0.0236, -0.5550, +0.0501, +0.1425, -0.5211, -0.4661, -1.4098, +0.0612, +0.2326, -0.0758, -0.0272, -0.0956, +0.0071, -0.4600, -0.2366, -0.0167, -0.5775, -0.5638, -0.0820, -0.4716, -0.5335, -0.2214, -0.3552, +0.2573, -0.2350, +0.4470, -0.7306, +0.4852, -0.2049, -0.3014, -0.2232, +0.3578, +0.1289, -0.2788, -0.4551, -0.3855, -0.4936, -0.1730, +0.0164, -0.1968, -0.1534, -0.3116, +0.0401, -0.2093, -0.0669, -0.1232, +0.6732, +0.0041, -0.1624, +0.1671, -0.3598, -0.2023, -0.7892, +0.3155, -0.1869, -0.3023, -0.4224, +0.4675, -0.1488, -0.6090, -0.7404, -0.2382, +0.2172, -0.7886, -0.5513, -0.1992, -0.7805, -0.1544, -0.0783, -0.2322, +0.2890, +0.0905, -0.0698, +0.4080, +0.3539, +0.0809, +0.4526, +0.4208, -0.0471, -0.2460, -0.6651, +0.1086, -0.4729, -0.5561, -0.4785, -0.4709, -0.1186, -0.6847, +0.0113, -0.2090], +[ +0.1128, +0.2196, +0.0491, +0.0871, -0.0427, -0.1228, -0.1325, -0.0775, +0.0799, -0.4258, -0.4283, +0.0695, -0.4842, -0.7364, -0.3856, -0.5542, +0.1488, -0.0655, +0.1610, +0.2014, -0.0839, -0.0175, -0.1677, -0.4381, -0.3510, -0.3124, -0.1308, -1.4672, +0.0946, -0.4583, -0.6771, -0.2482, +0.0564, -0.0899, -0.3302, +0.3769, -0.2056, +0.1952, -0.7006, -0.0171, +0.0339, -0.7665, -0.2355, -0.4328, +0.4867, -0.9649, -0.7657, -0.2226, -0.0585, -0.0788, -0.1219, +0.2336, +0.0329, -0.1373, -0.0480, -0.4672, +0.1248, -0.3234, -0.0123, -0.0402, -0.7285, +0.1463, -0.2133, -0.3333, -0.3750, -0.3789, +0.2528, +0.2849, -0.2088, -0.1508, -0.0521, -0.2693, -0.0864, -0.2134, -0.0674, -0.0502, +0.0965, +0.1491, -0.0258, -0.8792, +0.0514, +0.2205, +0.1569, +0.1199, +0.0771, -0.2032, -0.1334, +0.1342, +0.4965, -0.3000, +0.4028, -0.4422, +0.3067, -0.2638, +0.0714, +0.0542, -0.0185, +0.0883, -0.4793, +0.0931, -0.1196, +0.2565, +0.1506, -0.2275, -0.0765, -0.0661, +0.0736, +0.5985, -1.2571, -0.4318, +0.0778, -1.4763, +0.0302, -0.0896, +0.0087, -0.1240, -0.1418, -0.4563, -0.2404, -0.2635, +0.0763, -0.3100, -0.1861, -0.0644, -0.0371, -0.0219, +0.3791, -0.3473], +[ +0.4353, -0.0027, -0.1405, -0.4122, -0.3522, +0.0526, -0.1707, -0.0385, -0.1975, +0.2925, -0.4776, -0.0418, +0.0446, +0.2244, +0.1293, +0.3907, -0.9109, -0.0468, +0.0137, -0.0460, +0.4094, +0.0427, +0.2939, -0.1557, +0.0021, -0.1208, -0.1217, +0.4177, -0.3536, +0.0166, -0.1902, -0.2393, +0.0345, +0.0799, -0.7020, -0.1663, -0.5196, +0.1123, +0.2173, -0.3454, -0.1350, -0.2988, -0.4965, -0.3230, +0.1591, -0.0365, +0.1462, -0.2123, -0.0619, -0.1740, +0.0770, -0.2098, -0.0199, +0.0795, -0.3884, +0.1162, -0.2321, -0.4210, -0.6708, +0.0618, +0.0358, -0.1079, +0.2677, +0.1349, +0.2558, -0.1510, -0.2075, -0.0258, -0.2588, +0.0050, -0.1894, -0.1519, -0.1532, -0.3941, -0.0508, +0.1084, +0.1652, -0.1217, -0.1805, -0.5194, -0.2663, -1.1767, -0.1488, -0.1212, +0.0229, +0.3766, -0.5909, +0.2650, +0.2342, -0.2097, +0.2822, +0.5491, +0.3619, +0.0758, +0.2908, +0.3512, +0.2550, +0.0763, -0.7615, -0.0578, +0.1206, +0.2908, -0.2384, +0.0054, -0.1382, -0.1125, -0.0447, -0.2442, +0.1242, -0.0534, +0.0024, +0.1971, -0.1923, -0.0621, -0.3769, +0.1903, +0.1829, -0.1082, -0.1367, -0.0554, -0.7187, -0.4493, +0.2949, +0.0883, -0.3279, +0.2849, +0.1060, +0.3663], +[ -0.6415, -0.3939, -0.5202, -0.1639, -0.4648, -0.1451, +0.4356, -0.6945, +0.3483, -0.5865, -0.3782, -0.0060, -0.0677, +0.1958, -0.2324, -0.1777, +0.0295, +0.5604, +0.0249, -0.2261, -0.2063, -0.0416, -0.0950, -0.2548, +0.0042, -0.3812, +0.2529, +0.0167, +0.0483, +0.3357, +0.1415, +0.0178, -0.1509, -0.0159, -0.2740, +0.0397, -0.0819, +0.1141, -0.3993, +0.0913, -0.2224, -0.7560, -0.2634, +0.3233, +0.0027, +0.3794, +0.2278, +0.6810, -0.7867, -0.0823, -0.0451, -0.3029, -0.0513, -0.4509, +0.4310, +0.1516, -0.4726, -0.1546, -0.3385, +0.1362, +0.3105, +0.0986, -0.7286, -0.1418, +0.0951, +0.1071, -0.1305, -0.0904, -0.9688, -0.3975, +0.0978, +0.4764, -0.2437, +0.1659, +0.3128, +0.1478, +0.2060, -0.8387, +0.0795, -0.3924, +0.3558, -0.5638, -0.5464, +0.3735, -0.3795, +0.3854, -0.2423, +0.0661, -0.3528, -0.1318, -0.2049, -0.5105, +0.5074, +0.0987, +0.4461, -0.8709, -0.2308, +0.5754, -0.1341, -0.9593, -0.0423, +0.0077, -0.0788, +0.0913, -1.0023, -0.2929, -0.7491, +0.1581, -0.1464, +0.2154, +0.2309, -0.2193, -0.2466, -0.5195, +0.1740, -1.0865, +0.0758, -0.3392, +0.1485, -0.0161, -0.6096, +0.0713, -0.1700, -0.1644, -0.3517, -0.1076, -0.6289, -0.0868], +[ -0.0279, -0.1180, -0.2685, -0.4734, +0.4130, +0.2278, +0.2734, -0.1383, -0.1294, -0.2393, -0.2655, -0.2045, +0.1723, -0.1902, -0.0720, -0.1001, +0.0693, -0.2959, +0.4904, -0.4231, -0.6569, -0.5207, +0.0924, -0.2339, +0.1349, -0.0989, +0.2269, -0.5261, +0.0686, +0.2270, -0.1708, -0.7268, +0.0170, -0.8337, +0.1631, -0.1823, -0.1832, +0.4833, +0.2301, +0.2152, -0.1013, +0.1557, +0.1638, -0.1074, +0.0427, -0.0506, -0.2892, -0.2381, +0.2450, +0.2302, -0.3176, +0.0832, +0.1322, -0.4486, +0.4323, -0.5670, +0.0120, +0.1856, -0.0379, +0.1852, -0.0068, -0.4816, -0.5400, -0.5379, -0.1145, -0.6362, -0.2237, +0.0393, -0.2324, -0.1508, -0.5168, +0.1399, -0.8280, +0.0271, +0.0271, -0.1355, +0.3420, +0.0033, -0.0524, -0.0132, -0.0686, -0.2197, -0.2397, +0.4131, +0.3879, +0.1894, -0.0590, -0.2728, +0.2001, -0.5037, -1.1579, -0.1231, +0.1030, +0.3018, -0.1117, +0.2328, -1.1153, +0.2872, -0.8792, +0.1519, -0.0997, +0.3196, -0.4409, +0.3572, -0.1474, +0.0191, -0.4200, -0.3569, +0.0807, -0.5480, -0.5429, +0.1992, -0.0004, -0.7959, -0.6011, +0.0583, +0.1194, -0.1493, +0.1473, -0.6284, -0.2466, -0.5721, -0.0804, -0.0444, +0.2544, +0.0155, -0.0306, -0.3982], +[ +0.5828, -0.1462, -0.2782, +0.0690, -0.1789, -0.1596, +0.0840, -0.4970, -0.2908, -0.3823, -0.8830, -0.0833, -0.4294, +0.3447, +0.4591, -0.1768, -0.4054, -0.2783, +0.0228, +0.2754, -0.3646, +0.3944, -0.0349, -0.1119, +0.0405, -0.7938, -0.1085, -0.1693, +0.3024, -0.5234, +0.1899, +0.1598, -0.0956, -0.0660, +0.8926, +0.0428, -0.1308, -0.9002, -0.1008, +0.0826, -0.0661, +0.2094, -0.2457, +0.0941, -0.1031, +0.0496, -0.6188, +0.3200, +0.3472, -0.1994, +0.0598, -0.6498, -0.3135, +0.1850, -0.3448, -0.5044, -0.0509, -0.9147, +0.2559, +0.0753, +0.0753, +0.0294, -0.3612, -0.0921, -1.4746, +0.4441, +0.3017, +0.1874, -0.4263, +0.4468, +0.2712, +0.0128, -0.0261, +0.3705, -0.4319, -0.0988, -0.0705, -0.4702, +0.1396, -0.3963, +0.0893, -0.2172, -1.2196, -0.6357, -0.1207, +0.1123, -0.2076, -0.1591, -0.1512, -0.0582, -0.3533, -0.5694, -0.2883, +0.2884, -0.0825, +0.0193, -0.2499, -0.5041, +0.2356, -0.0106, +0.0655, +0.1411, +0.1246, -0.5655, +0.0270, -0.5696, +0.1255, -0.0826, -0.0638, -0.5297, -0.9973, +0.2699, -0.2058, -0.0949, -0.3804, -0.1981, +0.0273, -0.1266, +0.0663, +0.2089, +0.1680, -0.1503, -0.1509, +0.1122, -0.7540, +0.2932, -0.8315, -0.3090], +[ +0.1706, +0.0610, -0.5838, -0.0865, -0.0213, -0.2678, +0.0303, +0.3113, -0.3995, +0.3783, -0.5923, +0.1832, +0.1734, +0.0254, -0.3922, +0.3137, -0.3262, +0.0790, -0.0224, +0.0657, -0.0827, -0.9136, +0.1583, -0.0134, +0.0211, -0.0033, +0.0590, +0.0649, +0.0960, -0.3352, +0.0149, -0.8295, +0.2650, +0.2434, -0.0466, +0.1953, -0.3053, -0.4421, +0.0103, -0.0617, -0.4838, -0.0559, +0.1233, +0.0918, -0.3375, +0.0673, +0.1396, -0.4121, +0.0399, +0.1877, -0.9721, +0.0536, -0.4329, -0.0968, -0.0310, -0.0441, -0.1357, -0.2994, -0.1415, +0.3444, +0.0769, -0.1848, -0.8968, +0.2653, +0.1815, -0.0268, +0.4176, -0.0595, +0.1591, -0.1656, -0.0402, +0.0691, -0.7454, -0.3123, -0.4003, +0.0267, -0.0143, +0.2760, +0.2060, -0.7292, -0.2153, +0.2515, -0.2929, +0.0335, +0.0227, -0.4146, -0.1046, -0.0436, -0.3568, -0.0046, -0.1406, -0.0310, +0.3112, -0.5021, -0.0665, +0.2722, -0.2953, -0.1284, +0.4788, +0.0499, -0.1760, -0.5210, -0.4396, -0.0102, -0.1382, +0.1617, -0.1325, -0.6286, -0.2559, +0.2053, +0.0603, +0.1821, +0.0275, -0.4626, +0.0678, -0.1890, -0.0034, -0.2487, +0.1380, -0.1140, -0.0490, -0.0591, +0.2868, +0.2875, -0.2210, +0.1894, +0.1656, -0.2314], +[ +0.1326, +0.1445, -0.4052, -0.2978, +0.5537, +0.1333, +0.3951, -0.2189, -0.2499, +0.1027, -0.1314, -0.2956, -0.4292, +0.1320, -0.5522, -0.3736, -0.1077, -0.3843, -0.6754, -0.2406, +0.2837, -0.7301, -0.1675, -0.2725, +0.0578, -0.6014, +0.2112, -0.0551, -0.0484, -0.3406, -0.0537, -0.5426, -1.5375, +0.2983, +0.3546, +0.1420, -0.0795, -0.4401, -0.4079, -0.3726, +0.3343, -0.2322, -0.2032, +0.2038, -0.1928, -0.3805, +0.0599, +0.0578, +0.4813, +0.2921, -0.1916, -0.0337, -0.2057, +0.1114, +0.0827, +0.1672, -0.0961, -0.0529, -0.2337, +0.0616, +0.1257, -0.8919, +0.1716, -0.1828, -0.3268, -0.1773, -0.3308, -0.8293, -0.8749, -0.4553, -0.2627, -0.1717, +0.0148, +0.1005, -0.0882, +0.0134, -0.3633, -0.1698, -0.3961, -0.0632, -0.8008, +0.0911, -0.5091, +0.0745, +0.0184, -0.5566, +0.0934, -0.1507, -0.3232, +0.1291, -0.9442, +0.3393, +0.1318, -0.0475, -0.6027, -0.4318, +0.0814, +0.0791, -0.4565, -0.6858, -0.5338, -0.5991, +0.3650, +0.1171, -0.2716, -0.1989, -0.6467, +0.3248, -0.0296, +0.1573, -0.8836, -0.1377, -0.1053, -0.0780, -0.2601, -0.2829, -0.2949, -0.0864, -0.0371, -0.1057, +0.2542, -0.0073, +0.0424, +0.2498, +0.0555, +0.4797, -0.3376, -0.4506], +[ -0.0255, -0.1650, -0.2974, +0.0178, +0.0392, -0.0186, +0.1872, +0.0655, -0.1296, +0.2720, -0.1809, +0.3607, -0.2829, -0.7414, -0.0197, +0.4503, +0.1493, -0.0222, -0.6118, -0.1622, +0.4015, -0.0279, +0.0294, -0.2557, +0.0963, +0.1893, +0.0614, -0.4798, +0.0077, -0.0389, +0.2097, +0.0587, -0.0738, +0.2764, +0.4512, +0.3174, -0.1535, -0.2276, -0.7275, -0.3815, -0.7228, +0.0201, +0.1117, -0.0261, -0.2577, +0.0478, -0.1840, +0.3085, -0.1759, -0.0425, -0.4142, +0.0371, -0.0894, +0.4119, +0.0659, -0.2694, +0.1903, -0.8607, -0.6496, -0.0941, +0.2064, -0.0151, +0.5710, +0.5431, +0.1864, -0.0135, -0.0710, -0.4110, -0.2441, -0.5753, -0.4009, +0.2134, +0.2212, +0.2904, -0.2814, -0.3143, -0.5441, +0.1319, -0.1148, -0.2074, +0.0995, -0.0569, -0.2905, -0.0324, -0.4356, -0.3295, +0.1332, +0.0101, -0.1996, +0.3176, -0.6325, +0.3636, -0.2449, -0.1157, +0.0073, -0.3086, -0.2715, -0.0547, -0.2606, -0.1449, +0.2044, -0.0712, +0.2225, -0.2971, +0.1239, -0.0524, -0.1557, -0.4880, +0.3417, -0.2688, +0.2402, -0.7468, +0.1165, +0.0455, +0.0083, +0.0263, +0.1152, +0.4319, -0.2114, +0.2163, -0.0243, +0.4918, +0.1440, +0.5037, -0.2096, -0.1679, +0.1048, -0.0869], +[ +0.1235, +0.3844, -0.2685, -0.0345, +0.0650, +0.3062, -0.1378, -0.2978, -0.2188, -0.0771, +0.2667, +0.0304, -0.0427, +0.5494, -0.1444, -0.2129, +0.5117, -0.6419, +0.0324, -0.0905, -0.1562, -0.4267, -0.0232, -0.5619, -0.5693, -0.5975, -0.4708, +0.0807, -0.2655, -0.4244, -0.0705, -0.2516, -0.2843, -0.6295, -0.4559, -0.1688, +0.0422, +0.6803, -0.4978, -0.2812, +0.0619, -0.4478, +0.0157, -0.4996, -0.3075, -0.3749, +0.1362, +0.0591, -0.1556, -0.4341, +0.6123, -0.0788, +0.7977, -0.3591, -0.9098, -0.1948, -0.2681, -0.2196, +0.5037, +0.5002, -0.2051, -0.4643, +0.0398, -0.5385, -0.1953, +0.0785, -0.6677, -0.1378, -0.9210, -0.4328, -0.2015, -0.4793, -0.1423, +0.0203, +0.1207, -0.7935, -0.0970, +0.0853, -0.6163, -0.0491, +0.4021, +0.1865, +0.4280, -0.0037, -0.4592, -0.2485, +0.1351, -0.2844, -0.6598, +0.3015, +0.2235, -0.9861, -0.3646, +0.3393, -0.3452, +0.3539, -0.5701, -0.4908, +0.5699, -0.4017, -0.1102, -0.2180, +0.1905, +0.4240, -0.2312, -0.2970, -0.4595, +0.2174, +0.1782, +0.0243, -0.0901, +0.4517, -0.0867, +0.3470, -0.2287, -0.2463, -0.1592, -0.3746, -0.0036, -0.3122, +0.1140, -0.4486, -0.8497, -0.1085, +0.9101, +0.2038, -0.2062, -0.0823], +[ +0.2463, +0.5707, -0.4433, +0.2201, -0.0199, -0.6071, +0.2050, +0.0493, -0.2200, -0.4677, +0.0629, +0.0493, -0.0842, +0.1211, -0.3605, -0.0976, -0.7993, +0.0483, -0.1064, +0.2877, -0.6253, -0.2183, -0.3741, +0.0682, -0.0970, +0.5666, -0.0419, -0.8218, +0.1176, -1.4321, +0.0578, -0.1302, +0.1870, +0.3711, -0.5058, +0.3670, -0.1283, -0.1262, +0.0613, -0.2924, -0.4785, -0.1313, +0.1151, -0.1354, +0.3046, +0.1120, +0.0943, -0.5687, -0.6528, -0.1993, -0.8543, -0.3318, +0.1341, -0.1301, +0.2574, +0.0046, -0.1438, -0.0989, +0.0297, -0.1477, -0.0582, -0.2912, +0.1454, +0.2671, -0.4703, -1.3141, -0.1180, +0.1261, +0.0528, +0.1643, -0.4553, -0.0406, -0.4539, +0.0511, +0.1268, +0.2252, -0.0132, +0.0196, +0.7711, -0.0122, +0.1204, -0.5035, -0.0164, -0.0501, +0.4662, -0.2951, -0.1318, -0.1211, -0.2753, -0.0345, +0.0149, -0.3875, -0.1881, -0.1405, +0.1532, +0.1554, -0.0673, -0.2962, +0.1869, +0.2242, -0.5578, -0.0057, -0.3872, +0.1012, +0.1592, -0.5527, -0.1771, +0.2545, +0.1549, -0.0110, -0.5167, +0.1115, -0.0596, -0.5712, +0.3191, -0.3316, -0.0618, -0.7255, -0.0035, -0.5352, -0.0360, +0.0610, -0.6326, -0.2177, -0.5042, -0.5355, -0.1681, -0.1498], +[ +0.1926, -0.0685, +0.3304, -0.3787, +0.0300, -0.2676, +0.0136, -0.3297, -0.1434, +0.2152, +0.1500, -0.0552, -0.3526, -0.0323, +0.2272, -0.1979, -0.4169, -0.3634, -0.8873, -0.1784, +0.0721, -0.5226, +0.1625, -0.5973, -0.2882, -0.2884, -0.0342, -0.7191, -0.1038, +0.2307, -0.3793, -0.2169, -0.4917, +0.1231, -0.2788, -0.0933, +0.0867, +0.1352, -1.5252, +0.3475, -0.2924, -0.6522, -0.2583, -0.2580, +0.0162, -0.1497, -0.2728, -0.0223, -0.2669, +0.1925, +0.3857, -0.3332, +0.1178, -0.5367, +0.0528, -0.0169, -0.5829, -1.0664, -0.5824, -0.1038, +0.1126, -0.7621, -0.4332, -0.0314, -0.1815, +0.1829, -0.6382, +0.1326, +0.0845, -0.4755, -0.2206, -0.3449, +0.0764, -0.0900, -0.5230, -0.0539, -0.4122, -0.7988, -0.1538, +0.2325, +0.1030, -0.1607, +0.0113, -0.1478, +0.2353, +0.1148, -0.0807, -0.1881, -0.4861, -0.2848, +0.2721, -0.7730, -0.4613, +0.6028, +0.2487, -0.1225, -0.2896, -0.2808, -0.1185, -0.7210, +0.0897, +0.1085, +0.3445, -0.1611, -0.0695, +0.2044, -0.1024, -0.2478, -0.0785, +0.3137, +0.5408, -0.3994, -0.4764, -0.2766, +0.2133, +0.1204, -0.9959, +0.3333, +0.1227, +0.2426, -0.4202, -0.3578, -0.1248, -0.1090, -0.2104, -0.3860, +0.2306, -0.0728], +[ -0.3248, +0.0159, -0.0667, -0.0756, -0.0663, +0.3394, -0.2182, -0.2663, -0.1528, +0.1880, -0.5628, +0.2296, -0.0234, -0.0294, -0.2945, +0.1946, -0.3773, -0.0458, -0.3226, -0.4340, -0.0176, +0.3101, +0.1491, +0.3488, +0.3136, +0.1758, +0.3119, +0.4763, +0.1465, -0.0397, -0.3957, -0.3768, +0.1163, -0.4517, +0.3269, -0.0506, +0.2071, -0.3858, +0.4534, -0.2441, +0.5120, -0.5391, -0.2332, -0.6894, -0.0485, -0.2305, -0.0612, +0.1359, +0.0151, -0.3765, +0.3468, -0.3807, +0.5106, -0.2714, -0.7264, -0.8902, -0.3425, -0.1253, -1.0046, +0.2819, +0.0902, +0.2295, +0.2070, -0.6132, -0.0471, +0.1733, -1.1173, -0.4534, +0.5652, -0.0742, +0.1592, -0.1147, -1.0578, -0.7389, +0.1167, -0.3078, -0.0317, -0.1373, -1.1162, -0.1009, -0.4260, -0.0209, -0.6846, -0.2091, +0.4688, +0.1684, +0.5514, -0.1581, -0.4061, -0.2237, +0.1754, -0.4694, +0.0851, -0.6308, -0.2750, -0.3957, -0.5867, +0.2913, -0.4755, -0.2140, -0.3601, +0.3739, -1.1790, -0.0693, -0.2330, -0.5800, -0.1498, -0.5219, -0.1689, +0.1537, -0.1052, +0.6002, +0.0727, -0.2849, -0.4114, -0.0390, -0.0276, -0.2993, -0.0610, -0.1966, -0.0580, +0.2800, -0.0033, +0.4452, +0.2182, -0.9645, +0.0513, +0.0884], +[ -0.3226, +0.1336, +0.6645, -0.4503, -0.1672, -0.0602, -0.5145, -0.2136, -0.2340, +0.2906, -0.0673, -0.1477, +0.2186, +0.1079, +0.0486, +0.2164, -0.5336, -0.1297, -0.0875, +0.2970, -0.3045, +0.4400, +0.5784, -0.4019, -0.3110, -0.9414, -0.3346, +0.2523, -0.0274, -0.4475, -0.2102, +0.0897, +0.0419, +0.0503, +0.1835, -0.0535, +0.0689, +0.0691, -0.1349, -0.6753, +0.3090, -0.5637, +0.0200, +0.3919, -0.2876, -0.3861, +0.2904, +0.2580, +0.1847, -0.4541, +0.2357, -0.0827, -0.9218, -0.0946, -0.1218, -0.1566, -0.0611, -0.1368, -0.1764, -0.5379, -0.0988, +0.0806, -0.4375, -0.0130, -0.1357, -0.0778, -0.7153, +0.0455, -0.4599, -0.4328, +0.1127, -0.3466, +0.2376, -0.0922, -0.4810, +0.3056, -0.7828, +0.0528, -0.1335, +0.5371, -0.2253, +0.1008, -0.3593, -0.4297, -0.0838, -0.2490, -0.2259, -0.1838, -0.0699, -0.2224, -0.2921, -0.1630, +0.0722, -0.1825, -0.8208, -0.1545, +0.6346, +0.0748, +0.0044, -0.4955, -0.1173, +0.2172, -0.0944, -0.7999, -0.5529, -0.1711, +0.1271, +0.0247, -0.5756, -0.4206, -0.3636, -0.4627, +0.2299, +0.0614, -1.0937, -0.5468, +0.0510, -0.7410, -0.8884, +0.3174, -0.4159, -0.4072, -0.8816, -0.1527, -0.1486, +0.3125, -0.2283, +0.2177], +[ +0.0039, +0.0103, -0.1755, -0.7996, -0.0968, +0.0277, +0.1732, -0.3424, -1.4968, -0.1753, -0.0114, +0.2941, +0.1342, +0.2813, -1.7341, -0.5349, +0.0842, +0.3819, -0.5440, +0.0967, +0.0900, -1.4831, +0.3267, -0.0945, +0.1357, -0.3697, -0.1469, -0.4575, +0.1818, -0.6642, -0.0056, -0.1976, +0.0797, -0.1708, +0.1934, +0.2915, -0.1422, -0.0404, -0.2522, +0.0745, -0.5222, +0.1857, -0.1054, -0.4258, -0.1111, -0.3788, -0.0603, -0.3986, -0.5091, -0.0344, +0.3817, +0.2383, -0.1576, +0.2485, +0.3856, +0.0202, +0.0191, -0.5266, -0.1806, -0.1136, +0.1925, -0.5746, -0.9777, -0.3512, -0.0246, +0.0901, -0.5217, -0.0677, +0.0909, +0.2601, +0.9345, -0.3394, -0.0119, -0.0092, -0.4497, +0.3786, +0.0784, +0.0421, +0.0792, -0.3989, -0.0075, -0.0954, +0.1185, -0.1363, +0.0989, -0.1078, +0.1155, -0.0391, -0.1252, -0.2695, -0.0459, -0.2948, -0.3355, -0.5704, -0.0559, -0.2500, +0.4076, +0.0663, +0.2311, -0.0617, -0.0548, -0.0475, +0.4303, -0.0794, -0.2073, -0.7073, -0.0176, -0.0955, -0.0993, -0.5084, +0.0248, -0.0866, -0.8128, +0.0065, -0.0581, +0.3117, +0.0263, -0.1558, -0.0008, +0.2365, -1.1693, +0.4167, -0.1065, +0.4104, -0.2010, +0.0968, +0.0552, -0.0371], +[ +0.2534, -0.0501, -0.2594, +0.1478, -0.7236, +0.2802, +0.0805, -0.1607, +0.2090, +0.1263, +0.1884, -0.1083, -0.4125, -0.3225, +0.1190, -0.2326, -0.2595, -0.2029, -0.3719, +0.0625, -0.1373, +0.2389, +0.3014, +0.0892, +0.3054, -0.2101, +0.0070, +0.1154, -0.0347, -0.1208, +0.0531, +0.1513, +0.2507, -0.0510, -0.1456, +0.0580, +0.0154, +0.1996, -0.0832, +0.1442, +0.0221, -0.0928, +0.0884, +0.1552, +0.0532, -0.7460, -0.2394, +0.0967, +0.1723, -0.2659, +0.2287, -0.0556, +0.2908, +0.4469, -0.1458, +0.1577, -0.2041, -0.0583, +0.3994, +0.5170, -0.7670, +0.3433, -0.0383, -0.0670, -0.3647, -0.1440, -0.2584, +0.4074, +0.3214, -0.1794, +0.3010, -0.2413, +0.0558, -0.5349, -0.5052, +0.0807, +0.0558, -0.4087, +0.1186, -0.3845, +0.1390, +0.0359, +0.2994, -0.2928, -0.0573, -0.1539, -0.2161, -0.0756, -0.1941, -0.3361, -0.4123, +0.1537, -0.0709, +0.2274, -0.5642, -0.2887, -0.4241, +0.3842, +0.3369, +0.1526, +0.1065, -0.2747, -0.1502, +0.0964, -0.0100, -0.0807, -0.6731, -0.7413, -0.1946, -0.4019, -0.3018, +0.0907, -0.0809, -0.3277, +0.2652, +0.0611, +0.0838, -0.1097, -0.6041, +0.1028, +0.1933, -0.2961, -0.0032, +0.0196, +0.0418, -0.0965, +0.3258, +0.0426], +[ -0.6308, -0.0501, -0.0838, -0.1519, +0.3868, +0.0165, -0.0647, +0.2359, -0.7684, +0.2470, -0.1684, +0.0552, -0.0439, -0.5137, -0.0342, -0.1471, -0.2033, +0.0010, +0.5120, +0.2452, -0.3707, -0.4031, +0.1284, -0.0031, +0.2168, -0.2880, -0.1485, -0.0316, +0.1138, -0.0230, -0.3823, -0.2558, +0.2216, -0.8283, +0.1104, +0.2202, +0.1233, -0.5009, -0.3594, -1.0594, +0.1320, -0.1490, +0.0831, +0.6580, -0.2022, -0.3214, -0.0493, -0.4918, -0.1414, -0.3596, -1.2959, +0.0334, -0.0096, -0.0637, +0.1090, +0.2714, +0.2888, -0.4400, -0.9489, +0.0081, -0.0942, +0.1463, -0.1739, -0.6975, +0.2816, -0.8516, -0.3003, +0.1234, +0.3339, -0.1227, -0.2146, -0.7996, -0.2116, -0.0534, -0.3831, +0.1300, -0.6559, -0.2496, -0.3875, -0.6497, -0.4172, +0.1083, +0.3429, +0.1460, -0.6197, +0.0890, +0.4016, -0.0499, +0.0776, -0.1099, +0.4072, +0.1516, -1.1238, +0.1015, +0.0881, +0.2689, +0.4516, -0.1882, +0.1791, +0.7761, +0.2232, +0.0939, -0.3682, -0.1288, +0.0489, -0.2183, -0.2398, +0.0578, -0.5142, -0.1569, +0.2860, +0.3591, +0.3800, -0.3455, +0.1576, +0.2144, -0.8416, -0.0603, +0.1336, +0.2087, -0.6990, -0.1888, +0.5619, -0.2315, +0.1561, +0.1132, -0.7656, -0.3181], +[ -0.1286, +0.1858, -0.2411, +0.0090, -0.3402, -0.2936, +0.1051, +0.1919, -0.2531, +0.4690, -0.6679, +0.3317, +0.2073, -1.1532, -0.7191, +0.0884, -0.0799, +0.2003, -0.1593, -0.1969, -0.2554, -0.2080, -0.2559, +0.3545, -0.8480, +0.4528, -0.2133, -0.4219, -0.4413, +0.1131, -0.0602, -0.1928, +0.0279, +0.1352, -0.2555, +0.2333, -0.2460, +0.0057, -0.8220, -0.0760, +0.0504, -0.9094, -0.6114, +0.1768, +0.0091, -0.0628, -0.1880, -0.2029, +0.2462, +0.1165, +0.2070, -0.1164, -0.1690, +0.1759, -0.1980, -0.2017, -0.2359, -0.5043, -0.7476, -0.3844, -0.1492, -0.5376, +0.2582, +0.3424, -0.1346, -0.1681, -0.4327, +0.0905, -0.2482, +0.1685, +0.3307, +0.1385, -0.2317, +0.2284, -0.6566, +0.2268, -0.1018, -0.2626, -0.0549, -0.3204, -0.1904, -0.0743, -0.8110, +0.2222, -0.0741, -0.0935, +0.1553, +0.1289, -0.1035, -0.0720, +0.4058, -0.3011, +0.0458, +0.2255, -0.6481, +0.0250, +0.1870, +0.1039, +0.1931, +0.1419, -0.7905, +0.0222, +0.2000, -0.1245, +0.2453, -0.4877, +0.2176, +0.2230, -0.5876, -0.0292, +0.0748, -0.3372, -0.0874, +0.0585, +0.4317, -0.0294, +0.3862, +0.3095, -0.2184, -0.5214, +0.3847, +0.0584, +0.3308, +0.0771, -0.0182, +0.1068, +0.0827, -0.3393], +[ -0.0223, +0.2438, -0.0411, -0.3990, +0.4767, -0.4751, +0.2604, +0.2775, +0.0951, +0.3999, -0.0248, -0.0078, -0.0592, -0.4420, +0.0711, +0.2006, -0.0424, +0.4881, -0.0616, -0.3197, -0.2655, -0.3899, +0.2844, -0.0932, -0.3590, +0.0607, +0.1592, -0.0413, +0.2932, +0.0039, +0.3933, +0.3092, -0.4648, +0.3378, -0.1120, +0.0148, +0.2869, +0.0393, -0.3506, +0.2658, +0.1252, +0.1600, -0.2529, -0.1268, +0.3310, -0.0902, +0.2594, -0.1768, -0.0035, -0.4478, +0.1509, -0.0057, +0.1382, -0.0739, -0.0245, -0.1634, -0.1252, +0.0223, -0.5591, -0.0023, -0.0707, -0.2333, -0.3290, -0.0214, +0.0871, -0.0567, -0.3501, -0.0693, -0.1038, -0.4635, +0.0217, -0.3380, +0.2432, +0.1398, -0.2903, +0.0658, +0.0269, +0.0889, +0.2137, -0.1885, -0.0677, +0.2808, +0.0891, +0.0853, +0.1616, +0.3423, +0.2141, +0.0873, +0.0890, +0.0168, +0.0364, +0.0070, -0.3678, +0.1200, +0.1389, +0.1118, +0.2462, +0.0112, +0.0536, -0.3833, +0.1149, -0.3142, +0.3757, -0.2268, +0.5505, -0.4528, +0.1183, -0.4295, -0.2305, -0.2820, +0.2610, -0.5187, -0.3496, -0.0884, +0.1280, -0.1898, +0.2082, +0.2891, -0.1266, +0.0223, -0.2194, +0.0958, +0.3503, +0.1008, -0.0299, +0.1613, +0.1108, +0.2884], +[ -0.2112, +0.2139, +0.2353, -1.3735, +0.3379, -0.3306, -0.5791, +0.2142, +0.1661, -0.2046, -0.4202, -0.5208, -0.4747, -0.3524, -0.1866, +0.2010, +0.3635, -0.3221, -0.3282, +0.1993, -0.1151, -0.4721, +0.0627, -0.2138, -0.3382, +0.2179, +0.1286, +0.0916, -0.2135, +0.1114, +0.1641, -0.7235, +0.0271, -0.3165, -0.4372, -0.0611, +0.0824, -0.1537, +0.3468, -0.3766, -0.0373, +0.0722, +0.0230, -0.7669, -0.7521, +0.4481, +0.1352, -0.0385, -0.0233, -0.3938, -0.1916, +0.1151, +0.2809, -0.0007, -0.0378, +0.0906, +0.2414, -0.9108, -0.2856, -0.1401, -0.6404, -0.7260, -0.2588, +0.1096, -0.1461, +0.0196, -0.9551, -0.5937, -0.0863, -0.1227, -0.9528, -0.1206, -0.0116, -0.3274, +0.3520, +0.0632, -0.1109, -0.3264, -0.8242, +0.2668, -0.0588, -0.2727, -1.1266, -0.9705, +0.2631, -0.2931, -0.7791, -0.9120, +0.2401, +0.0197, -0.0931, -0.5968, +0.5901, +0.1350, +0.0918, -0.5455, -0.6439, +0.4476, +0.2893, -0.5928, +0.0521, -0.3101, -0.0489, +0.0052, -0.3169, -0.4701, -0.6680, -0.0638, +0.1298, -0.4204, -0.0254, +0.1195, -0.0933, -0.1896, +0.0503, -0.7819, +0.1228, +0.0729, -0.0561, -0.0014, -0.0664, +0.2052, -0.7386, +0.4056, -0.0660, -0.9663, -0.2771, -0.5232], +[ -0.1246, -0.2805, -0.3576, +0.2033, +0.1179, +0.0137, -0.6560, -0.2292, -0.5633, -0.0186, -0.2827, +0.1622, +0.1316, -0.4703, -0.7199, +0.2989, +0.1364, -0.1050, +0.4184, -0.0721, -0.1984, -0.8043, +0.1757, +0.1660, +0.1198, -0.6675, -0.1686, -0.0080, -0.0535, -0.2755, -0.0087, -0.0772, -0.1946, -0.1625, +0.2803, -0.4290, +0.3188, -0.5116, +0.3810, -0.4627, -0.3474, -0.0296, -0.0126, -0.5452, -0.1713, +0.0726, +0.1517, -0.3349, +0.2804, -0.4211, -0.3698, -0.0776, +0.5157, -0.0116, -0.1578, -0.2274, -0.5434, -0.7078, -0.1557, +0.1799, -1.7247, +0.0598, -0.2763, -0.2002, -0.1513, +0.0315, +0.1172, -0.5970, -0.4829, -0.1757, -0.6510, -0.2016, +0.0722, -0.2784, +0.2477, -0.1084, +0.3574, +0.2216, -0.2019, -0.0929, -0.2401, -0.0009, +0.0100, +0.3262, +0.1323, -0.3393, +0.0441, +0.0237, -0.1123, -0.3906, +0.1925, +0.2541, +0.0079, -0.3655, +0.1809, +0.0290, -0.2198, +0.2628, -0.1835, +0.1061, +0.2996, +0.5976, -0.0171, -0.0882, +0.0488, +0.0209, -0.4426, -0.1461, -0.7127, +0.0345, -0.0908, -0.0087, -0.6902, +0.0474, +0.3433, +0.2376, +0.0280, +0.1350, -0.6906, -0.1005, -0.3456, -0.4074, -0.3707, -0.4556, +0.1230, +0.1421, -0.1536, +0.4549], +[ +0.4253, -0.1862, -0.2521, +0.0973, +0.2793, -0.0849, -0.1390, +0.2692, +0.2426, +0.1690, -0.0772, -0.0276, +0.1998, +0.0185, -0.1736, -0.0510, -0.1957, +0.2297, +0.2222, -0.0429, -0.1558, -0.9350, +0.1733, +0.2294, +0.2759, -0.1063, -0.6416, -0.2152, +0.0899, -0.4758, -0.0466, +0.0209, +0.0777, -0.6026, +0.1939, -0.1837, +0.1779, +0.1248, -0.1254, -0.2091, -0.1979, +0.4873, +0.1698, +0.0795, -0.1283, +0.0153, -0.4910, +0.3692, -0.0166, +0.0893, -0.3555, -1.2133, -0.3912, -0.3162, +0.1056, +0.3104, -0.0164, +0.4362, -0.1710, -0.5106, -0.0164, +0.3129, -0.7867, +0.1497, +0.0967, -0.0521, +0.1755, -0.1235, +0.1731, +0.2002, +0.2755, -0.0072, +0.2876, +0.2190, +0.0101, +0.1913, -0.3036, +0.3041, +0.2350, +0.3212, +0.1128, +0.1641, -0.5767, +0.1855, +0.0141, +0.2336, -0.1784, -0.2715, +0.0631, -0.1110, +0.2796, +0.1881, +0.2210, +0.4339, +0.1268, -0.1757, +0.1511, +0.0015, -0.0059, +0.0019, +0.2075, +0.1971, +0.1113, +0.0985, +0.0434, -0.2494, +0.2593, +0.0467, -0.5946, -0.2618, -0.1521, -0.2028, +0.2417, -0.6486, -0.1829, +0.0708, -0.1101, +0.1115, +0.0227, +0.1591, -0.4037, -0.0098, +0.0621, -0.4142, -0.1739, +0.4112, +0.3607, -0.5380], +[ +0.1177, -0.0829, -0.2037, -0.2156, +0.1920, +0.1360, -0.1985, -0.0925, -0.5613, -0.2878, -0.1383, -0.1178, +0.2660, -0.2264, -0.3758, +0.0474, +0.0023, +0.1017, -0.4475, -0.0988, +0.2955, -0.4085, -0.2192, +0.1311, -0.3999, -0.3496, -0.1175, -0.4424, -0.4607, -0.0673, -0.1690, -0.2330, -0.3726, -0.0566, -0.3821, +0.0028, +0.1176, +0.1637, -0.3063, -0.2605, +0.4228, +0.5291, +0.0629, +0.5256, -0.3477, +0.4640, +0.0645, -0.5641, -0.2468, +0.2339, +0.1751, +0.0718, +0.3500, -0.4988, -0.1264, -0.0177, +0.1769, -0.0400, -0.2931, -0.0032, +0.3511, +0.2182, -0.4131, -0.6258, -0.2432, -0.0031, -0.4084, -0.1694, -0.1345, -0.0997, -0.2085, -0.1604, +0.3349, +0.2521, +0.1971, -0.1442, +0.2636, -0.1359, -0.0244, -0.5738, +0.1898, -0.0964, +0.3351, +0.1642, +0.1135, -0.3388, -0.1054, -0.0207, +0.0978, +0.0311, +0.0011, -0.0103, -0.3878, -0.1310, +0.1785, +0.0105, +0.0070, -0.2280, +0.1466, +0.1476, -0.0045, -0.4846, +0.3915, -0.2372, -0.0766, -0.4503, -0.1964, +0.1785, +0.1047, +0.8291, +0.1383, +0.1750, +0.2304, +0.1486, +0.1168, -0.0636, +0.0268, -0.0029, +0.1824, -0.4461, +0.2138, +0.0789, +0.2332, +0.3060, -0.2309, -0.1640, -0.2015, +0.0814], +[ -0.2089, +0.1014, -0.0579, +0.3885, -0.0160, +0.3301, -0.4470, +0.4714, -0.1930, -0.4235, -0.0122, -0.5872, +0.3336, +0.0962, +0.1576, +0.0089, +0.0542, -0.1455, -0.1269, +0.1636, -0.1596, -0.1467, -0.0751, -0.3372, -0.0210, -0.3890, +0.2495, -0.5069, +0.2558, +0.2504, -0.0504, -0.1370, -0.1636, +0.1638, -0.4274, -0.4883, +0.1807, -0.3299, -0.2602, -0.1714, +0.3408, +0.1558, +0.3440, -0.2063, +0.3495, -0.0942, -0.1896, +0.1604, +0.2981, +0.0938, +0.3079, -0.0422, +0.2457, -0.0888, -0.1330, +0.3858, +0.1828, +0.2261, +0.0589, +0.0212, +0.2386, -0.2637, -0.1125, -0.6084, -0.1772, +0.1757, -0.0477, -0.4429, -0.5084, -0.0512, -0.0579, +0.2526, +0.2676, -0.3652, +0.0563, +0.1303, +0.1980, -0.1137, -0.1055, +0.1332, +0.2540, -0.0726, -0.2244, +0.1358, +0.1327, -0.5314, -0.5776, +0.0586, +0.4645, -0.5067, +0.2115, -0.8910, -0.0485, -0.2118, +0.0909, +0.4667, +0.1512, -0.4808, +0.0252, -0.1659, +0.2356, -0.1116, +0.0382, +0.0931, +0.1761, +0.0300, -0.3396, -0.1821, +0.1245, -0.1004, -0.1907, +0.1104, -0.0528, -0.1555, -0.0645, +0.0562, -0.2227, +0.3703, -0.2504, -0.1985, -0.2180, -0.1775, +0.2405, -0.0889, +0.1268, +0.3380, -0.3181, +0.3610], +[ -0.1952, -0.0578, -1.1057, +0.5134, -0.1378, +0.2639, -0.1665, -0.3419, -0.1661, +0.1025, -0.0394, -0.0055, -0.3502, +0.3829, +0.0351, -0.8268, -0.4556, +0.1120, -0.0705, +0.2972, -0.4725, +0.0838, +0.3422, -0.5389, -0.2642, -0.2428, -0.4464, -0.1878, +0.3799, +0.0833, -0.3188, +0.1659, -0.5127, -0.1637, -0.5105, -0.3803, +0.1553, +0.1436, -0.2048, -0.0348, +0.1922, -0.2446, -0.6350, -0.6326, +0.3759, -0.8518, -0.2066, -0.3527, -0.9225, +0.5922, +0.1130, -0.6997, +0.0371, +0.1281, +0.0358, -0.3420, +0.0422, -0.1585, +0.0060, -0.2306, +0.0093, +0.3616, +0.1565, -0.4825, -0.2306, -0.6262, +0.0261, +0.1737, -0.8466, +0.1037, +0.1481, -0.1724, -0.0477, -0.2328, -0.7668, +0.0539, -0.0205, -0.1615, +0.1709, +0.1200, +0.0062, -0.1006, -0.0631, -0.6605, +0.3073, +0.0534, -0.1759, -0.0048, +0.3530, -0.0488, -0.3439, +0.6192, -1.0127, -0.4404, -0.1655, +0.2329, +0.1701, -0.0102, -0.6998, -0.5205, -0.3661, -0.3588, -0.0991, -0.0539, -0.1724, -0.0598, +0.0298, -0.5078, -0.2480, +0.2300, -0.0248, -0.8744, +0.1165, -0.3571, -0.2669, -0.3494, +0.1781, +0.3223, -0.0251, +0.1327, +0.5895, +0.4107, -0.1365, -0.4952, -0.2869, +0.1122, +0.2460, +0.4473], +[ +0.1338, -0.0063, -0.2522, -0.1941, +0.2738, -0.2233, -0.2280, +0.2611, -0.0943, -0.3515, -0.0844, +0.2064, -0.0363, -0.3102, -0.3898, +0.0770, +0.2784, -0.1512, -0.1478, -0.0007, -0.1822, -0.2255, -0.5550, +0.2976, +0.2547, +0.0151, +0.0828, -0.0848, -0.2138, -0.0103, -0.8352, +0.1319, -0.2303, -0.2299, -0.0563, -0.3885, +0.0342, -0.4977, -1.2963, +0.2561, -1.1328, +0.0012, +0.2306, -0.5411, -0.3006, +0.0676, -1.9030, -0.3075, -0.0979, +0.0896, -0.0580, -0.0038, +0.1381, +0.0090, +0.1478, -0.3079, +0.2841, -0.1863, -0.6163, -0.1751, -0.5646, +0.4300, +0.0704, -0.0387, -0.2823, +0.2259, -0.0953, -0.2159, -0.2969, -0.3502, -0.3141, -0.1517, +0.0782, +0.0999, +0.5229, -0.1531, -0.2047, -0.1471, +0.2247, -0.2625, +0.0019, -0.1073, -0.0022, -0.4420, +0.0517, -0.0580, -0.6427, -0.2424, +0.1411, -0.0678, -0.1120, -0.8540, -0.2692, +0.2238, -0.2368, -0.9063, +0.2976, +0.0414, +0.1095, +0.2244, +0.0210, -0.1006, -0.2540, -0.1564, -0.0956, -0.1224, -0.5763, +0.2323, -0.1224, +0.2074, -0.5607, -0.5861, -0.0902, +0.1296, +0.1034, -0.2310, -0.2814, -0.1924, +0.1452, -0.5430, -0.0619, -0.4562, +0.2069, +0.2684, -0.2071, -0.7354, -0.2258, -0.1395], +[ -0.1963, -0.0107, -0.0423, +0.0007, +0.3431, +0.3000, -0.2971, +0.3827, -0.2744, -0.6258, -0.7529, -0.2262, -0.0908, +0.7792, -1.4345, -0.7595, -0.0323, -0.4281, -0.0325, +0.0773, -0.4141, +0.1006, +0.5800, +0.4668, +0.3735, -0.3455, -0.2889, -0.2550, +0.2045, -0.2958, -0.0868, -0.0470, -0.2008, +0.1274, +0.0259, +0.1598, -0.2579, -0.5582, -0.0712, +0.2501, -0.4543, +0.1671, -0.0398, -0.3789, -0.6567, +0.3653, -0.5175, -0.0741, -0.1428, -0.9625, -0.1969, +0.3227, -0.7710, -0.2489, +0.0553, +0.1062, +0.2338, -0.8710, -0.2630, +0.1344, +0.2044, -0.1054, -0.3221, -0.7012, -0.1819, -0.1221, -0.0658, -0.0748, -0.3830, +0.3178, +0.6506, -0.3111, -0.4665, +0.2741, -0.2561, +0.2261, -0.4738, -0.0788, +0.0114, -0.5013, -0.6076, -0.4491, -0.4184, +0.6562, +0.3299, -0.1993, +0.3129, -0.6395, -0.0735, -0.5297, +0.0319, +0.4652, +0.6208, +0.0026, -0.1381, -0.5193, +0.0792, +0.5061, -0.5610, +0.5022, -0.1293, -0.0424, -0.2379, -0.2926, -0.4384, -0.4252, -0.6475, +0.4550, -0.1399, -0.3108, -0.6347, +0.2680, +0.6766, +0.5618, +0.0904, -0.0573, -0.3292, +0.1988, -0.2317, +0.3934, -0.3043, -0.1623, -0.4827, -0.1761, -0.1059, +0.0525, -0.0313, -0.1475], +[ -0.0720, -0.0474, -0.0168, +0.1428, -0.1180, -0.3548, +0.4974, -0.7262, -0.2118, +0.1000, -0.0795, -0.2894, -0.0655, -0.0423, -0.1659, +0.1347, +0.0860, -0.2163, -0.5078, -0.2881, +0.1382, -0.4808, +0.0168, +0.3667, -0.3162, -0.3973, -0.1601, -0.2069, -0.1248, +0.2609, +0.0856, +0.0030, +0.1974, +0.3896, +0.0707, -0.1730, -0.1112, +0.2419, -0.1894, -0.1437, +0.0670, -0.2615, -0.3430, +0.1329, -0.0827, -0.8066, -0.0254, +0.1680, +0.2338, -0.9633, +0.1481, -0.1104, +0.1121, +0.2071, +0.2378, +0.1063, -0.1278, -0.1192, +0.2428, +0.2460, -0.0064, +0.0025, +0.4307, +0.4768, -0.8693, +0.2835, -0.2696, +0.0314, -0.0276, -0.1222, +0.2166, +0.2363, -0.2178, +0.3113, -0.8229, -0.2482, -0.4106, +0.1824, -0.0883, +0.0695, -1.2673, -0.3113, +0.1158, +0.2840, +0.1894, -0.7726, +0.3572, +0.0157, +0.0035, -0.2735, +0.2097, -0.6630, +0.0192, +0.0644, -0.1819, -0.0937, -0.2322, +0.3941, -0.1772, +0.0560, +0.0390, -0.4749, +0.0099, -0.3858, -0.1375, -0.0988, -0.6115, -0.1879, -0.1092, +0.0315, +0.2415, -0.2787, -0.0006, -0.0118, +0.2440, -0.0432, -0.1334, -0.1346, -0.4602, +0.1854, +0.1047, -0.0036, -0.2341, -0.1576, +0.0653, +0.1567, +0.1526, +0.1044], +[ +0.1769, -0.1034, -0.1948, -0.1274, -0.1648, +0.5893, -0.0946, -0.2004, -0.2721, -0.3387, +0.3898, -0.3109, +0.1371, +0.1680, -0.7257, +0.1351, -0.6586, +0.2851, +0.1728, +0.1130, -0.0131, -0.4239, +0.1692, +0.1324, -0.3443, +0.2481, +0.1447, -0.3541, +0.1374, +0.0410, -0.1387, +0.1571, +0.1503, -0.0262, -0.0774, -0.1869, -0.0378, +0.2104, +0.0172, -0.1452, -0.4186, +0.2158, +0.2101, +0.2539, +0.3134, -0.0346, -0.0244, -0.2532, -0.1317, -0.0540, +0.0459, -0.1373, +0.1366, -0.0571, +0.1385, +0.1867, -0.1449, -0.1944, +0.3466, +0.0981, -0.1643, +0.0219, -0.0246, -0.3430, +0.0084, -0.6418, +0.1014, +0.0666, +0.2488, -0.2650, -0.1532, -0.2495, +0.0428, -0.4240, -0.2821, -0.0754, +0.2721, +0.4462, -0.8370, -0.0485, +0.1678, -0.2672, +0.3932, -0.1626, +0.1755, -0.5960, -0.0072, +0.6288, +0.0466, -0.0260, -1.0479, -0.5837, -0.1394, +0.0547, +0.1121, -0.6113, -0.5292, -0.6037, -0.2560, +0.2865, -0.2272, -0.2464, +0.1547, -0.0282, -0.8408, +0.3033, +0.1790, -0.1641, -0.3059, +0.1309, -0.3210, -0.0627, +0.2607, -0.0373, +0.0129, -0.2009, -0.3511, -0.1189, -0.2208, -0.0538, +0.0637, +0.1723, -0.5148, +0.2267, +0.1132, +0.0045, -0.1421, +0.1912], +[ +0.0906, -0.1130, -0.2077, +0.1502, +0.3574, -0.4087, -0.1618, -0.1510, +0.2428, -0.3561, -0.3971, -0.2274, -0.1077, +0.2071, +0.5784, +0.3420, +0.2530, -0.1951, -0.1346, +0.2660, -0.0259, +0.0771, -0.0849, +0.3132, -0.0404, -0.1513, -0.0255, +0.1137, +0.3354, -0.1369, -0.1115, -0.1645, +0.1585, -0.2722, +0.4510, -0.0847, -0.0087, -0.1398, +0.0353, -0.0701, -0.4510, -0.8897, +0.0337, -0.0026, +0.1252, +0.0948, +0.2133, +0.2421, -0.2473, +0.2771, +0.3732, -0.0731, -0.4412, -0.0749, +0.1336, -0.0273, +0.1484, -0.3783, +0.1017, +0.0390, -0.5518, +0.0037, -0.6220, +0.2184, +0.3016, +0.0485, +0.1901, +0.2104, +0.1166, -0.1032, +0.3395, -0.0177, -0.3512, +0.1229, +0.0400, +0.2339, -0.5922, -0.4052, -0.5183, +0.4653, +0.1410, +0.2020, +0.1406, -0.1232, +0.2124, -0.1376, -0.2617, -0.0459, -0.4286, -0.7037, -0.0695, -0.5891, +0.0045, -0.1987, -0.3906, +0.1380, +0.0949, -0.3112, -0.2688, -0.1340, -0.2209, -0.3564, -0.1459, +0.3078, +0.0459, +0.2045, +0.1436, -0.1081, -0.6286, -0.3076, +0.1346, +0.1734, -0.0212, +0.2784, -0.2703, -0.5880, -0.1379, +0.0307, +0.4657, -0.2370, -0.6191, -0.0113, +0.2450, -0.0045, +0.1112, -0.0822, +0.3822, -0.0562], +[ +0.1409, -0.0538, -0.1432, +0.1716, +0.1670, +0.1345, +0.3174, +0.0786, +0.3477, -0.5395, -0.3514, +0.2158, +0.0896, -0.1822, +0.2500, +0.4068, +0.3118, +0.3923, -1.1109, -0.2122, +0.0909, +0.1655, +0.1356, +0.4056, -0.3149, +0.1185, +0.1717, +0.0258, -0.1728, +0.2402, -0.0251, -0.0708, -0.0743, -0.1093, +0.5213, +0.0419, -0.1286, +0.1853, +0.4699, -0.5875, -0.2311, +0.4390, -0.3652, +0.2524, -0.0379, -0.1384, -0.1974, -0.3096, +0.0594, +0.0794, +0.0578, +0.1156, -0.9567, -0.3747, +0.2159, +0.1118, -0.0018, -0.4289, -0.0497, +0.5024, +0.0897, -0.5219, -0.4890, -0.1756, -0.1832, +0.1821, +0.3873, +0.0030, -0.7192, +0.0757, +0.4871, -0.8119, -0.0317, +0.3589, -0.1295, -0.0279, -0.1444, -0.8395, -0.3653, +0.1671, -0.0373, +0.0349, -0.0650, +0.2142, -0.1536, -0.2972, +0.0513, -0.2596, +0.1086, -0.5500, +0.5186, -0.1609, -0.2082, -0.9726, -0.0006, -0.2899, +0.1783, -0.1634, -0.5750, -0.0325, -0.2408, -0.0379, +0.1189, +0.0418, +0.3697, +0.2451, +0.1595, -0.2399, -0.1088, -0.1213, -0.4627, +0.2782, +0.0666, -0.0095, -0.4685, -0.5872, +0.1120, +0.1272, +0.0088, -0.4947, +0.3034, +0.0580, -0.2964, +0.0579, -0.1105, -0.1897, +0.0601, +0.0605], +[ -0.0967, -0.8116, -0.1189, -0.5744, -0.3304, -0.6346, +0.1212, +0.2593, -0.0239, +0.2636, +0.0874, -0.4657, +0.1628, +0.6463, +0.2373, -0.6677, -0.1700, +0.1728, -0.3091, +0.2459, +0.3715, -0.7096, -0.0390, +0.4462, +0.6917, -0.5975, -0.0984, +0.5475, +0.4104, -0.1399, -0.1059, +0.0950, +0.1488, +0.1787, +0.3116, -0.1217, +0.1377, +0.1193, -0.4545, -0.5360, +0.6137, -0.1851, +0.2568, -0.1605, -0.0478, -0.8687, +0.4071, -0.1072, -0.1179, +0.2131, +0.0615, -0.2244, -0.2624, -0.0859, -0.0773, +0.0423, +0.0499, -0.3312, -0.1253, +0.0579, -0.0270, +0.1835, +0.1067, -0.3907, +0.2115, +0.0562, -0.1266, +0.0306, +0.1233, -0.0524, +0.0968, -0.5194, +0.2325, +0.3540, -0.4088, +0.0112, -0.2728, -0.4368, -0.3143, -0.1848, +0.0044, +0.1795, -0.1937, -0.4705, +0.1564, -0.4308, +0.2992, +0.1559, +0.1413, -0.5684, -0.5887, -0.4417, +0.1254, +0.6016, +0.3093, +0.2221, +0.2689, +0.2764, +0.2066, +0.3921, -0.0492, +0.5264, +0.1195, +0.0354, +0.0472, -0.7510, +0.4551, -0.3297, +0.2557, +0.0964, -0.2333, -0.0974, +0.0046, -0.1966, -0.1438, +0.2168, -0.0106, +0.0827, +0.1734, -0.1622, -0.7648, +0.0657, +0.4125, -0.0107, +0.5142, -0.1843, -0.0255, +0.0251], +[ -0.4894, -0.3838, -0.0560, -0.0102, +0.2462, +0.2396, -0.1605, +0.6648, +0.0289, +0.3985, -0.3124, -0.1270, +0.0019, -0.0186, -1.0743, +0.6784, +0.1577, +0.2268, -0.0569, +0.2442, -0.1164, -1.2692, -0.6146, -0.5071, -0.0065, -0.1015, +0.0568, -0.0257, -0.1093, -0.1685, +0.5144, -0.0581, +0.5970, +0.3194, -0.3760, +0.2867, +0.3716, -0.2157, -0.1207, +0.3089, +0.5712, +0.2472, +0.0238, -0.7120, +0.0921, -0.5046, -0.4643, +0.3063, +0.0916, -0.7755, +0.0375, +0.1377, +0.4099, +0.1541, -0.0234, -0.2307, -0.2292, +0.1845, -0.3229, -0.0655, -0.0224, -0.3936, +0.1464, -0.2497, -1.0163, -0.0754, -0.2383, -0.1563, +0.0342, -0.2338, +0.3699, +0.0190, +0.3233, +0.0361, -0.3095, +0.1544, -0.2940, -0.0897, +0.2073, +0.4680, -0.3452, -0.1035, -0.1820, -0.5826, -0.4127, -0.5719, -0.2433, +0.1142, -0.1415, -0.4814, -0.1358, -0.0734, +0.4341, +0.2401, -0.4429, +0.3538, -0.2312, -0.2072, +0.0078, -0.2757, -0.2212, +0.0824, -0.0945, -0.2644, +0.0169, -0.6544, -0.0961, -0.2083, +0.4017, -0.6613, -0.2524, +0.2338, -1.7121, -1.9104, +0.2422, -0.0147, +0.3072, -0.3819, +0.3498, -0.4022, -0.4189, +0.4619, +0.1477, +0.3179, -0.2559, -0.0367, +0.1080, -0.3277], +[ +0.0885, -0.4506, +0.4188, +0.2334, +0.2903, +0.0490, -0.0631, -0.0504, +0.2215, -0.1555, -0.0389, -0.1621, +0.0310, -0.4083, -0.3338, -0.2568, +0.0147, +0.1238, -0.5747, +0.0482, -0.2570, -0.2541, -0.0272, +0.2152, +0.0003, +0.3637, -0.2845, +0.0474, +0.1485, -0.3750, -0.4793, +0.4647, +0.0522, -0.6269, -0.1822, -0.0465, +0.1702, +0.2424, -0.1810, -0.1115, -0.5531, +0.0817, +0.0351, -0.0986, +0.0474, -0.4087, -0.0984, -0.2288, -0.0353, +0.0090, -0.1881, -0.1815, -0.0516, +0.1652, +0.3100, +0.2649, +0.2842, +0.3319, +0.4483, +0.2002, -0.1618, +0.1024, -0.1409, +0.3892, +0.2560, +0.1263, -0.0126, -0.0984, +0.3725, +0.1183, -0.2909, +0.1879, +0.1049, -0.1430, -0.1976, +0.2291, -0.2020, +0.1399, +0.0848, +0.0876, +0.2030, -0.0233, -0.3914, -0.0174, -0.0214, -0.0481, -0.2875, +0.0232, +0.0775, -0.6476, -0.2746, -0.3848, -0.0085, -0.5357, -0.5196, +0.1634, +0.1043, +0.0855, -0.0452, -0.0374, +0.1830, -0.2180, +0.1506, -0.1684, +0.0160, +0.0860, +0.4804, -0.0316, -0.3141, -0.1559, -0.4767, -0.1185, -0.1897, -0.0881, -0.1665, +0.0357, -0.3111, +0.0422, -0.1488, -0.1632, -0.7307, +0.0462, +0.0164, -0.0160, +0.0143, +0.3344, +0.3005, +0.2044], +[ -0.1839, -0.1799, -0.5069, +0.3499, -0.0474, +0.3088, -0.3604, -0.3482, +0.0276, -0.4781, -0.1208, +0.1777, -0.2034, +0.0649, -0.2837, +0.0718, +0.1179, -0.5131, +0.0390, -0.2522, -0.0683, -0.0128, -0.1180, +0.3263, -0.4664, -0.2562, -0.1115, +0.2541, -0.1521, -0.2567, -0.2162, -0.8788, +0.1234, +0.0628, -0.4491, +0.0485, +0.1332, +0.4184, -0.1297, +0.2791, -0.3251, -0.3365, +0.1526, +0.2818, -0.1102, -0.2195, -0.3119, -0.0794, -0.0632, +0.0212, -0.5798, -0.3181, +0.1821, +0.5628, +0.2593, +0.0294, +0.1707, +0.3392, -0.4010, -0.3270, -0.0918, -0.1726, -0.1836, -0.9079, +0.1893, +0.2778, -0.0391, +0.0554, +0.1980, +0.2862, -0.4825, +0.1002, -0.8366, +0.1210, +0.0550, +0.1069, -0.3516, +0.1627, -0.3116, -0.0464, +0.0496, -0.1154, -1.9989, +0.0147, +0.1130, -0.1936, -0.1085, -0.1807, +0.2358, +0.3699, -0.1481, -0.1616, +0.1135, -0.7175, -0.0026, +0.2132, -0.1823, +0.1340, +0.1992, +0.0517, +0.0738, +0.0116, -0.4166, +0.0767, +0.1451, -0.4632, -0.4240, +0.2534, +0.0618, +0.1764, +0.1874, -0.1760, +0.3762, -0.0860, +0.2035, -0.8606, -0.1828, -0.1658, +0.0730, -0.1324, -0.6475, +0.1506, -1.5427, -0.1539, +0.3581, +0.1685, -0.0010, -0.4744], +[ -0.0038, +0.2629, -0.0222, -0.4313, +0.2458, -0.0521, +0.2995, +0.1401, -0.1501, +0.2219, -0.0508, -0.6905, +0.2089, -0.1588, -0.1579, +0.3263, +0.1093, +0.1843, -1.6538, -0.1711, +0.0280, +0.0042, +0.1678, +0.3942, -0.1122, -0.7447, +0.1776, +0.0452, +0.0464, +0.1958, -0.5837, -0.2740, -0.8022, -0.0597, -0.1732, -0.3843, -0.1682, +0.4161, +0.5845, +0.0023, -0.0245, -0.0033, -0.0888, -0.0147, -0.0569, -0.7998, +0.1384, -0.1289, +0.3003, -0.0507, -0.4349, +0.5294, +0.0240, +0.1736, -0.1584, -0.1868, +0.2200, +0.0831, -0.6566, -0.1660, +0.1753, -0.0999, -0.5722, -0.1753, -0.4500, -0.0143, -0.2124, -0.0305, -0.8012, +0.2173, -0.1607, +0.3925, -0.3454, -0.6074, -0.1541, -0.4732, -1.1834, -0.0688, -0.0430, -0.5353, -0.1790, -0.4362, -0.2226, +0.0306, -0.0149, -1.2302, -0.6747, -0.3040, +0.1048, -0.6485, -0.4555, +0.0236, -1.1733, +0.5728, -0.1619, +0.1556, +0.1970, -0.2370, -1.8582, -1.0090, +0.0693, -0.1693, -0.1371, +0.3884, -0.1606, -0.2022, -0.2294, +0.5752, -0.0680, +0.2737, -0.1054, -0.5773, -1.0577, +0.0026, +0.1283, -0.2511, -0.0521, +0.1820, -0.6071, +0.1580, -0.1609, -0.1862, -0.1680, -0.1709, -0.1637, -0.2186, -0.2398, -0.2395], +[ -0.1990, -0.1855, -0.5902, -0.1221, -0.8566, -0.1161, -0.2680, -0.2043, +0.0571, -0.2467, -0.5931, +0.0254, +0.2520, -0.0025, +0.3188, -0.2049, -0.1082, -0.2633, -0.3426, -0.3033, -0.4411, +0.2479, -0.4121, -0.2249, -0.2227, -0.3816, +0.1910, +0.2194, -0.0299, -0.0100, -0.2124, +0.4138, -0.2423, -0.0244, +0.1657, +0.0472, +0.0487, -0.3765, -0.1005, -0.1568, +0.3201, +0.4085, -0.1769, -0.6161, +0.1530, +0.0596, -0.1156, -0.8411, +0.1763, +0.0797, -0.6425, +0.3897, -0.2085, -0.1751, -0.0950, +0.1567, +0.0639, -0.1603, -0.3423, +0.1372, +0.2382, +0.1874, -0.0615, +0.0112, -0.1747, -0.6345, -0.5276, +0.1812, +0.4886, -0.0955, -0.1977, +0.0003, -0.1835, -1.0626, -0.3339, +0.1317, -0.2761, -0.2422, -0.6792, -0.0781, -0.3236, -0.1302, -0.3486, -0.7894, -0.6369, -0.4031, -0.1746, -0.1511, -0.2680, +0.0775, -0.5212, -0.1803, -0.4150, -0.3021, +0.4448, -0.4643, +0.3082, +0.5188, +0.3292, -0.1640, +0.2659, -0.0533, +0.0046, -0.2112, +0.0273, -0.3975, +0.1884, -0.2407, +0.5993, -0.0079, -0.1007, -0.3500, -0.7119, -0.2974, -0.2962, -0.1762, +0.0230, +0.2033, +0.1797, +0.0175, -0.3485, +0.2241, +0.1257, -0.1503, -0.3651, -0.4343, +0.0671, -0.2769], +[ -0.2600, +0.3728, -0.1667, -0.2300, -0.1080, -0.4825, -0.1574, -0.2525, -0.1608, +0.3153, +0.3603, +0.1668, -0.1195, -0.0257, -0.1009, +0.2942, +0.1748, -0.3680, +0.4175, +0.1282, +0.2824, -0.8205, +0.3949, +0.0005, -0.0312, +0.2784, +0.1849, +0.0828, +0.1771, -0.6393, +0.0286, +0.2044, +0.5371, +0.1309, -0.1426, +0.0577, -0.3925, +0.1035, +0.2724, -0.4162, -0.2550, -0.0506, +0.1085, -0.0336, -0.3512, +0.1353, +0.2077, -0.2278, +0.1395, -0.0786, -0.3421, +0.5657, -0.5820, +0.1765, +0.0473, +0.0195, +0.0008, +0.0445, -0.0457, -0.0523, +0.2640, +0.1286, -0.0769, +0.1583, +0.0020, -1.1252, -0.3394, -0.2469, -0.2057, -0.0182, +0.0225, -0.4020, +0.0443, +0.3486, +0.3001, +0.1069, +0.2708, -0.3042, -0.0407, +0.1189, -0.1185, -0.6579, +0.1502, -0.0180, -0.1439, -1.4340, -0.0236, -0.1200, -0.3519, +0.2684, -0.9712, +0.4391, +0.2379, -0.0626, -0.3674, -0.0832, -0.1493, -0.5778, -0.0028, -0.3108, -0.3896, -0.5958, -0.0574, +0.0678, +0.3899, -0.3551, -0.6014, -0.6356, -0.0705, +0.1556, +0.2318, +0.1251, -0.0145, +0.0445, +0.1474, -0.0408, -0.5473, +0.0390, -0.0862, +0.3692, +0.0987, +0.0798, -0.2238, -0.0353, +0.0702, +0.1057, +0.1381, +0.0884], +[ -0.1550, -0.6553, -0.0098, -0.0513, +0.4681, -0.4697, +0.3507, -0.6614, -0.1393, +0.2851, -0.2353, +0.1117, +0.3554, -0.4386, -0.3174, -0.8774, -0.7019, +0.2315, -0.2981, -0.2346, +0.5748, +0.3798, -0.0704, -0.0219, +0.2735, -0.1494, -0.1263, -1.4348, +0.3184, -0.1334, -0.0568, +0.1348, -0.5653, -1.3195, -0.4193, +0.0257, -0.6081, -0.2396, +0.5183, +0.0537, -0.4824, +0.1120, -0.1459, -0.6086, +0.2357, -0.4124, -0.1445, -0.6436, -0.1888, -0.2544, +0.3426, -0.6475, +0.2406, +0.4602, +0.1544, +0.1915, -0.8082, +0.3168, -0.2569, +0.0707, +0.1043, +0.0112, +0.5536, +0.2491, -0.4264, -0.4461, +0.4385, -0.2794, +0.0615, -0.1656, -0.3143, +0.1733, -0.5887, -0.1564, +0.0588, +0.2128, +0.4712, -0.0338, +0.2120, -0.0114, -0.2567, -0.4390, +0.1800, +0.1231, -0.0566, +0.0131, +0.3387, -0.1946, -0.0597, +0.6877, +0.3091, -0.3047, -0.0256, +0.3494, -0.5286, -0.1652, +0.4785, -0.6145, -0.5849, +0.3488, -0.2858, +0.0411, -0.0751, -0.0106, +0.0322, +0.1082, +0.1757, -1.0412, -0.1001, +0.1272, -0.2649, -0.2981, +0.0066, -0.6085, -0.2164, +0.3369, -0.4131, -0.3749, -0.1556, -0.2250, +0.3331, -0.7518, +0.5474, +0.2815, -0.1135, -0.0068, +0.0842, +0.1357], +[ -0.2586, +0.1079, -0.0247, +0.2432, +0.2292, -0.1817, +0.0774, -0.5248, -0.7265, +0.0755, -0.2294, -0.1428, -0.3254, +0.0887, -0.2064, -0.2610, +0.4028, -0.3058, -0.6010, +0.1141, -0.3263, -0.0803, -0.0203, +0.0699, -0.0710, -0.6511, -0.1640, +0.4584, -0.2584, +0.2199, +0.3318, -0.4902, +0.0846, -0.0167, +0.2071, -0.3865, +0.0593, +0.4101, -0.1511, -0.4140, +0.1307, +0.0728, -0.1314, +0.2545, -0.1680, +0.1449, +0.2776, +0.1651, -0.1073, -0.0356, -0.2519, +0.6122, -0.0189, -0.6031, +0.2458, +0.2116, -0.3389, +0.1072, +0.1387, +0.2409, -0.2313, +0.1170, -0.0619, +0.1290, -0.4353, +0.0356, -0.2926, +0.0432, -0.7712, -0.3432, -0.0004, -0.2343, -0.0708, +0.0205, -0.0015, +0.1525, +0.0152, +0.0648, +0.3449, -0.4003, +0.0074, +0.1720, -0.0653, +0.1272, +0.2053, +0.1385, -0.0542, +0.1896, +0.3601, -1.3929, +0.1053, -0.1274, -0.0188, -0.0037, +0.3852, -0.4051, -0.4026, +0.0011, +0.1984, +0.4017, -0.2087, -0.1526, +0.0104, -0.3145, -0.1186, -0.2420, -0.8113, -0.1924, -0.0769, +0.0629, +0.0287, -0.0093, +0.1665, +0.4061, -0.1140, -0.1501, +0.4697, -0.1004, -0.0598, -0.9584, +0.1174, +0.1803, -0.4207, +0.2724, +0.1135, -0.3000, -0.1081, -0.2234], +[ -0.0944, +0.2341, -0.1293, -0.3682, -0.2815, +0.3922, +0.1281, -0.0364, -0.3578, +0.3765, +0.0833, -0.2770, -0.3372, -0.1390, +0.2268, -0.0754, -0.7129, +0.1079, +0.4896, -0.2936, +0.5755, +0.0711, +0.0261, +0.3214, +0.1170, -0.3148, -0.3589, -0.3999, -0.0442, +0.1939, -0.0184, -0.5482, -0.0909, -0.1102, +0.3405, -0.2403, +0.0017, -0.0908, +0.1057, +0.0563, -0.4943, -0.2383, +0.2750, +0.1475, +0.4200, -0.7400, -0.0005, -0.7109, +0.2982, -0.0624, +0.0991, -0.7474, -0.3128, +0.0312, -0.1940, +0.0893, +0.1152, -0.2274, -0.3678, -1.4362, -0.1969, -0.6162, +0.4540, +0.2569, +0.3304, -0.1393, +0.2411, -0.5043, -0.4747, -0.4624, +0.2566, +0.2622, +0.3182, -0.1998, +0.2243, +0.1218, -0.3776, -0.1689, -0.3444, -1.2030, -0.3384, +0.0376, -0.9877, +0.4066, +0.2852, -0.1160, +0.1727, -0.6990, -0.0899, -0.1878, +0.4875, -0.7249, -0.2148, -0.2262, +0.2572, +0.5794, +0.1245, +0.0084, -0.0661, +0.0022, +0.0790, -0.2628, +0.0873, +0.1133, -1.4550, -0.0061, +0.4475, -0.0445, -0.1131, -0.1322, -0.1805, -0.4632, -0.4034, -0.0477, +0.0881, -1.3645, +0.7105, -0.8035, -0.0230, -0.2352, -0.6769, -0.0870, -0.1496, -0.7174, -0.3905, +0.5053, +0.1599, +0.0774], +[ -0.0854, -0.3404, +0.0652, +0.0362, -0.0756, +0.0192, -0.1265, +0.3489, -0.3569, -0.8240, +0.0391, -0.0941, -0.1433, +0.3441, -0.1874, -0.2676, +0.5242, +0.2251, -0.2071, -0.1848, -0.2279, -1.2238, +0.2887, +0.0095, -0.1245, -0.3161, +0.0329, -0.0625, -0.2333, +0.3116, +0.0164, -0.3283, -0.4250, +0.1686, +0.2560, -0.5164, -0.2912, -0.3383, -0.1983, +0.1373, +0.2847, +0.4067, +0.1801, -0.1141, +0.0385, -0.4291, -0.2469, +0.0845, -0.0106, -0.4852, +0.2204, -0.3597, -0.3101, +0.0629, -0.1494, -0.0957, -0.2842, -0.2712, -0.1635, -0.3056, -0.0953, -0.7983, -0.2230, +0.1603, +0.1263, +0.0316, +0.1262, +0.0299, +0.2142, -0.1661, -0.1874, -0.2247, -0.1495, +0.4345, -0.0050, -0.0023, -1.0454, -0.1850, +0.0324, -0.1299, +0.0808, +0.2819, -0.3591, -0.0671, +0.3848, +0.0527, +0.0870, +0.2097, -0.7340, -0.0364, +0.1416, -0.7251, +0.3899, -0.0321, +0.2230, +0.2796, +0.3449, -0.1251, +0.1570, +0.2467, +0.0966, +0.1106, -0.0601, +0.2364, -0.1023, +0.1761, -0.3835, +0.3161, +0.1496, +0.0713, +0.3664, -0.1054, -0.8298, -0.0852, -0.6931, -0.3448, -0.0491, +0.0825, -0.1888, +0.0303, -0.1669, -0.2420, +0.1384, -0.1588, -0.0640, +0.0044, +0.0920, +0.5491], +[ -0.2530, -0.0550, +0.1767, -0.0197, +0.0392, +0.1533, -0.1908, +0.2095, -0.4558, -0.3182, -0.1207, +0.1121, +0.1108, +0.0632, +0.0251, +0.0800, -0.1490, -0.5128, +0.3625, +0.2499, -0.2294, +0.1496, -0.0599, +0.3519, -1.1459, +0.4171, -0.4250, -0.8933, -0.3909, -0.2782, +0.1234, +0.1028, +0.1640, -0.3572, -0.8056, -0.0328, +0.0441, -0.2858, +0.4340, +0.3755, -0.1979, +0.2009, -0.4347, -0.0842, -0.6567, -0.5243, -0.0483, +0.1214, -0.2512, +0.3272, -1.3854, +0.1747, -0.4386, +0.1441, -0.3902, -0.4389, +0.0880, -1.0031, -1.5420, -0.2146, -0.2588, -0.7700, -0.1053, -0.4492, -1.1340, -0.3955, -0.0062, +0.1858, -0.4721, +0.5749, -0.7658, -0.4602, -0.0370, -0.1331, +0.1250, -0.4708, +0.0186, -0.0472, +0.6910, -0.1052, -1.0263, +0.3958, +0.1160, -0.0658, -0.0263, +0.1706, -0.1598, +0.3593, -0.7746, -0.1430, -0.2939, -0.5315, +0.1469, +0.0629, -0.2287, -0.0982, -0.9673, +0.3858, -0.1839, -0.3926, +0.1103, +0.5221, -0.2097, -0.0538, -0.3374, -0.2589, -0.1362, -0.8023, +0.5058, -0.1019, -0.1020, -0.2040, +0.2014, -0.2802, -0.0912, +0.0152, -0.6996, +0.2708, -0.5717, -0.3458, +0.1621, -0.1512, +0.2791, -0.0776, -0.1128, +0.0089, +0.1515, +0.5123], +[ -0.4655, -0.0379, +0.0643, +0.1431, -0.0937, +0.1572, +0.2089, +0.0227, +0.4811, +0.2738, -0.4770, -0.0302, -0.2714, -0.0353, -0.4082, +0.4073, -0.2526, +0.0575, -0.2309, +0.4160, -0.2468, +0.2285, -1.0454, -0.3023, +0.0094, -0.0101, +0.3390, +0.0338, -0.0278, +0.1941, -0.0570, +0.2868, +0.0429, -0.8105, -0.0188, -0.1246, +0.0159, -0.4999, -0.2032, +0.0914, +0.6455, -0.1245, +0.0020, +0.0418, -0.6123, +0.0697, +0.1981, -0.4423, -0.1076, +0.2690, +0.1470, +0.3055, -0.1343, -0.0624, +0.2082, -0.1393, +0.0894, +0.2845, +0.2606, +0.3553, -0.0025, +0.4361, +0.6263, -0.0265, -0.0731, +0.2340, -0.1738, +0.1374, -0.0836, -0.0444, -0.7722, -0.3558, -0.3378, -0.5021, +0.1452, +0.1734, -0.0282, -0.3774, +0.1987, +0.1507, +0.0245, -0.0719, -0.0083, +0.2448, -0.1184, +0.1152, -0.6909, +0.1571, -0.6083, +0.0978, -0.2012, +0.3425, -0.0069, +0.2474, -0.5482, +0.0814, -0.1556, -0.1506, +0.1668, +0.2776, +0.3391, +0.2342, -0.2065, +0.0879, -0.6159, +0.2643, -0.2567, -0.2676, +0.2018, -0.4286, -0.4639, -0.4193, +0.1816, +0.2604, -0.0906, +0.0827, -0.0005, +0.2018, -0.3132, -0.3025, +0.1614, -0.1068, +0.0919, +0.2894, -0.3590, -0.3032, -0.4354, +0.0154], +[ -0.0429, -0.3707, -0.3739, +0.3704, -0.0150, +0.2189, -0.4955, -0.7602, -0.6327, +0.1189, +0.3060, -0.5486, +0.1754, -0.5086, -0.4190, -0.6469, +0.0826, -0.0344, +0.1115, -0.4931, +0.2178, -0.6064, -0.0868, +0.2074, -0.1581, +0.4950, -0.4560, +0.1868, -0.2302, -1.1003, -0.9498, -0.3075, -0.1099, -0.7696, +0.2225, +0.3048, +0.0237, +0.1738, -0.1000, -0.0539, +0.2746, -0.6315, -0.7834, +0.5839, -0.7714, -0.1029, -0.3709, -0.2092, +0.5387, +0.0590, +0.3252, -0.1812, -0.0796, +0.0109, +0.1797, -0.1807, -0.6953, +0.0922, +0.2157, -0.0296, +0.0137, +0.0309, -0.0322, +0.1320, -1.3996, -0.5238, +0.0258, +0.1411, -0.3324, -0.0493, -0.8150, -0.2201, -0.6262, -0.1943, -0.2466, -0.3587, -0.5532, +0.3025, -0.9596, +0.2320, +0.0081, -0.3283, +0.0479, -0.5118, -0.1686, +0.5102, -0.2949, +0.2405, -0.0371, +0.3475, -0.2653, -0.1511, -0.3839, -0.0687, +0.0342, -0.5996, -0.4391, -0.5633, +0.3001, -0.8634, +0.0928, +0.1859, +0.1312, -1.4476, +0.4269, +0.6876, -0.3687, +0.0898, -0.2377, -0.3089, +0.2988, -0.4810, -0.0220, -0.2208, -0.3043, -0.2693, -0.5514, -0.1327, +0.0981, +0.1090, +0.0979, +0.0774, +0.1311, -0.0520, +0.5947, +0.1165, +0.0255, +0.0646], +[ -0.4015, -0.7856, -0.0138, +0.2379, +0.4219, -0.0133, -0.1120, -0.0367, +0.1862, -0.5656, -0.0802, +0.3317, -0.1842, +0.0494, -0.0962, +0.1796, +0.3449, +0.3633, -0.5248, +0.3595, -0.6307, -0.1464, -0.2156, -0.1198, +0.6068, -2.0541, +0.0744, +0.1036, -0.4800, -0.9317, +0.3650, +0.0608, +0.2096, +0.0011, -0.1670, +0.2135, +0.5401, -0.6114, -1.1094, -0.1530, -1.1694, -0.0469, -0.0043, -0.3584, -0.0760, -0.4375, -0.3118, +0.2781, -0.8857, -0.1821, -0.2038, +0.5715, -0.3865, -0.4510, +0.4034, -0.0904, -0.0075, -0.1263, -0.3763, -0.6469, +0.0981, +0.2835, -1.0551, -0.2261, -0.1222, +0.0047, +0.5585, -0.3472, -0.2015, -0.7965, -0.1860, -0.5664, -0.2167, -0.2244, -0.2145, +0.3671, -0.6399, -0.0906, +0.2896, -0.0949, -0.7272, -0.1690, -0.8668, +0.1197, +0.2210, -0.1381, -0.0362, -0.2772, +0.3834, +0.4729, +0.1046, -0.8879, +0.2266, -0.0665, +0.2083, +0.1939, +0.3427, -0.0931, +0.0226, -0.2263, +0.1235, +0.4096, +0.0778, +0.4601, -0.1834, -0.1526, +0.3648, +0.2721, +0.1836, +0.1039, +0.1252, -0.0670, -0.4777, +0.4181, +0.0461, -1.0144, -0.2770, -0.2780, +0.4376, +0.2788, -0.7011, -0.3962, -0.4795, -0.2742, -0.9814, -0.0447, -0.0447, -0.4444], +[ +0.3501, +0.3281, -0.1430, +0.3228, -0.0807, +0.2136, -0.0195, -0.1002, -0.2381, +0.4731, -0.0458, +0.0137, +0.2722, +0.0900, -0.0668, +0.0659, -0.3536, +0.1688, -0.2339, -0.1300, -0.2204, +0.1206, -0.0453, -0.2130, -0.0140, +0.0041, -0.2013, -1.2579, +0.0436, -0.2726, -0.2897, -0.5455, +0.1721, -0.4969, -0.3442, +0.2220, +0.0569, -0.1374, -0.4693, -0.5210, -0.7792, -0.1477, -0.1435, -0.1889, +0.1739, -0.1954, +0.1126, +0.1769, -0.0294, -0.2095, -0.4485, -0.1938, +0.3559, -0.1803, +0.1457, -0.3859, +0.2793, -0.7072, +0.2029, -0.0043, -0.1302, -0.4323, -0.1481, +0.0405, +0.1824, +0.2051, +0.2035, -0.2542, -0.0847, +0.0311, +0.0031, -0.1944, +0.0411, -0.1625, -0.2449, -0.0437, +0.1181, +0.1734, +0.1622, +0.2482, -1.3020, -0.2676, -0.1668, -0.4255, -0.3623, +0.0653, -0.2027, +0.2574, +0.3004, +0.0192, +0.0700, +0.2328, -1.2587, -0.2362, -0.3811, +0.0033, +0.3652, -0.2675, -0.1837, -0.1855, -0.0299, +0.1968, -0.2170, -0.0384, -0.2551, +0.0783, +0.0645, +0.0703, -0.0835, +0.1902, -0.4658, +0.5849, -0.0440, -0.6254, +0.4145, +0.0154, -0.0337, -0.2226, -0.0193, -0.3050, -0.2739, +0.0791, -0.0331, -0.2853, -0.3587, -0.0245, +0.3906, -0.1312], +[ -0.3729, -0.3580, +0.1994, +0.3125, -0.1575, +0.0351, +0.1712, +0.0479, -0.5090, -0.1524, -0.0229, -0.3794, -0.2660, -0.2205, -0.3291, +0.5219, -0.3152, -0.3720, +0.0702, -0.4275, +0.0918, +0.0985, +0.2214, +0.2948, +0.0067, +0.1727, +0.3573, -0.0733, -0.3958, -0.5830, -0.0946, -0.2411, +0.1241, -0.5995, +0.1575, +0.2158, -0.5639, -0.1019, -0.1161, -0.0025, +0.3288, -0.3254, +0.0209, +0.2869, +0.0349, -0.0032, +0.2493, -0.1807, +0.2012, +0.0285, -0.9862, -0.3932, +0.0355, -0.6267, -0.2420, -1.1322, +0.3270, -0.4070, +0.0856, +0.1377, -0.4038, -0.2331, -0.0207, -0.5493, -0.2026, -0.7153, +0.1385, +0.1107, +0.0477, +0.0602, -0.3468, -0.0456, -0.3055, -0.5692, +0.0869, +0.0364, +0.2018, +0.0797, +0.2311, +0.4669, -0.2796, -0.5679, +0.0042, +0.0015, -0.0524, -0.2371, -0.3690, -0.3491, +0.1767, -0.2053, -0.2630, -0.6185, +0.0131, -0.2657, -0.5073, -0.2655, +0.0691, -0.0768, -0.4844, -0.6951, -0.3339, +0.3054, -0.8780, -0.0191, -0.6555, -0.3514, -0.3141, -0.3230, -0.0244, +0.0889, +0.1160, +0.3249, +0.2260, -0.1515, -0.2689, -0.3664, -0.1808, +0.0221, +0.5215, +0.0880, -0.1395, -0.5289, -0.7631, +0.0567, -0.4045, -0.2250, +0.0902, -0.3769], +[ -0.5947, +0.2274, -0.9496, +0.3703, +0.0841, -0.1836, +0.0044, +0.0021, +0.1787, -0.0429, +0.1353, -0.4052, +0.0083, +0.1235, +0.6274, +0.2087, +0.3484, +0.1119, -0.1528, +0.0003, -0.3680, -0.5990, -0.5782, -0.0053, -0.0038, +0.2493, +0.0427, -0.1297, -0.0332, +0.0291, -0.1151, -0.0122, +0.2482, -0.1746, +0.6397, +0.1691, +0.0541, -0.1390, -0.0668, -0.1904, +0.2275, -0.0548, -0.3013, -0.3059, +0.0162, -0.3792, +0.2507, -1.5725, -0.0162, +0.4433, -0.2386, -0.3115, +0.2838, -0.2357, -0.2010, +0.3173, -0.0459, -0.0212, +0.3470, +0.1231, -0.2594, +0.0194, +0.0015, +0.5905, -0.0855, +0.0124, +0.3250, +0.0103, -0.2701, +0.0159, +0.1874, -0.0726, +0.1616, +0.0483, -0.2104, +0.0683, +0.0354, +0.0604, +0.0738, -0.6140, -0.1024, +0.1922, -0.6209, -0.4914, -0.1139, -0.3441, +0.2979, -0.0118, +0.0571, +0.2113, -0.4013, -0.2839, -0.2274, -0.1234, -0.2224, +0.5136, -0.5031, -0.2097, +0.1413, +0.4381, -0.5172, -0.2161, +0.1183, +0.1782, +0.0394, -0.9201, +0.1413, +0.1968, -0.8099, -0.2413, -0.0397, +0.0048, -0.9168, +0.0216, +0.2725, -0.6455, +0.0540, -0.1368, -0.8279, -0.2034, -0.1583, +0.2583, -0.4102, +0.2368, -0.1897, +0.0892, +0.2035, -0.6145], +[ -0.4914, -0.0175, -0.1029, -1.1875, +0.0158, +0.1054, -0.4501, +0.1822, +0.1384, +0.0073, +0.1010, +0.2072, -0.0566, +0.0374, -0.5182, +0.2300, -0.0543, +0.0234, +0.0719, -0.3345, +0.1585, -0.2427, -0.3074, -0.5413, +0.0213, +0.2899, +0.1372, -0.2435, -0.1829, +0.5233, -0.1391, +0.0271, -0.0862, +0.1832, +0.7547, -0.0167, -0.1029, -0.4332, +0.3798, +0.0694, -0.6046, +0.2171, +0.0931, -0.4275, +0.0547, +0.1686, +0.0674, -0.3921, +0.5958, +0.2580, -0.7376, +0.4033, +0.3357, +0.5261, -0.2143, -0.2368, -0.1381, -0.7014, -0.2709, +0.3299, -0.6330, +0.0553, +0.1474, +0.5485, -0.4183, -0.5408, -0.4226, +0.1773, -0.0814, -0.0224, +0.1349, -0.1298, -0.7348, +0.1840, -0.1371, +0.2017, +0.0927, -0.2807, +0.1679, -0.3693, +0.1331, +0.1271, +0.0445, -0.1609, -0.3406, -0.5669, -0.1359, +0.3603, -0.2292, -0.1502, -0.2860, +0.3773, -0.0089, +0.2764, +0.4845, -0.1967, -0.8141, -0.0563, +0.1718, -0.0717, +0.4198, +0.0029, -0.3978, +0.2698, +0.0651, +0.2271, +0.1170, -0.3438, -0.2717, +0.6219, -0.0172, +0.2207, -0.5174, +0.1052, -0.2792, +0.1195, +0.3255, +0.2822, -0.1286, -0.6566, +0.0267, +0.3203, -0.5382, -0.0283, -0.9872, -1.0424, -1.0301, -0.0555], +[ -0.0453, -0.2395, +0.2406, +0.0631, +0.0629, +0.0833, +0.1781, +0.3761, -0.2013, -0.5130, -0.5778, -0.0650, -0.1589, -0.3232, -0.3333, -0.8319, +0.2013, +0.2267, +0.2610, -0.5927, -0.0493, +0.2577, +0.4523, +0.1532, -0.6685, -0.0539, +0.2305, +0.2816, -0.1894, +0.1239, +0.0723, -0.3620, +0.0898, -0.0181, -0.0459, +0.1914, -0.6516, +0.1430, -0.5466, -0.3008, -0.0715, -0.6103, +0.0118, +0.0141, +0.1248, -0.1234, +0.0846, +0.2255, -0.5190, -0.2559, -0.1613, +0.4473, +0.1540, -0.5639, -0.8685, +0.1487, -0.2612, +0.3390, -0.4948, -0.0352, +0.0908, +0.1311, +0.0625, -0.1194, -0.2128, +0.0454, +0.2579, +0.3957, +0.5040, +0.1017, -0.3063, -0.4509, -0.2063, -0.2673, -0.3279, +0.0295, -0.1485, +0.2786, +0.1512, +0.1158, +0.1659, -0.1235, -0.8287, -0.2932, +0.0973, -0.0585, -0.3973, +0.2949, +0.2267, -0.1506, +0.2104, -0.1853, -0.4127, -0.8102, -0.1861, -0.2241, -0.0969, -0.1213, +0.2320, -0.8217, +0.0387, +0.1559, +0.0937, +0.0199, +0.2130, +0.5811, +0.1031, +0.0254, +0.1938, -0.1855, +0.2375, -0.6722, -0.1418, +0.6080, -0.6757, -0.2532, +0.0382, +0.2149, -0.2714, +0.3754, -0.2763, +0.0971, -0.3987, +0.5819, -0.0490, -0.6208, -0.0094, -0.0335], +[ -0.0520, +0.1143, +0.3346, +0.3328, -0.7457, -0.4004, +0.4402, +0.1565, +0.2192, -0.7181, +0.4356, +0.0638, +0.1050, +0.3447, -0.9636, -0.2623, +0.5175, -0.0571, +0.0749, -0.2558, -0.1522, +0.1987, +0.3003, -0.0340, -0.1250, +0.1917, +0.0105, +0.1603, +0.3017, +0.1785, +0.3443, -1.5343, -0.1129, -0.3967, -0.0861, -0.1839, +0.3447, -0.0320, -0.1140, -0.7012, -0.5374, -0.1204, -0.1188, -0.9007, +0.1548, -0.1386, -0.0337, +0.6399, -0.4455, +0.0039, +0.2296, +0.0017, -0.3522, -0.4161, +0.1904, -0.4585, -0.0504, -0.4775, -0.1963, -0.0786, -0.0918, -0.0926, -0.4992, -0.4981, +0.1395, -0.0966, -0.1520, +0.1250, -0.3255, +0.1306, +0.1884, +0.2478, -0.1758, -0.0991, -0.3168, +0.2045, +0.1035, +0.1926, +0.1510, -0.9593, +0.2111, -0.5241, -0.6604, -0.0298, -0.4766, -0.1225, -0.2626, -0.2218, +0.3571, -0.8226, +0.0405, -0.8556, -0.8859, -0.3557, -0.7047, +0.2757, -0.0380, +0.1300, -0.2333, -0.4366, -0.6659, +0.1032, +0.0568, +0.0892, -0.5488, -0.5828, +0.2135, +0.5198, +0.2927, -0.1756, +0.4095, -0.5759, -0.5219, +0.0122, +0.1435, -0.3798, +0.1782, +0.0249, -0.7436, -0.4398, -1.0002, -0.4882, +0.3656, +0.4042, +0.3798, -0.3411, -0.0478, -0.4250], +[ +0.0293, -0.1663, -0.3768, -0.2223, -0.0055, -0.3266, +0.1328, +0.2718, +0.3462, +0.0200, -0.5919, -0.0576, -0.5609, -0.3056, +0.0931, +0.3790, +0.0302, +0.0964, +0.0000, -0.1535, -0.2970, +0.7108, +0.7230, -0.1885, +0.3083, -0.2583, -0.1817, -0.2954, -0.4350, +0.2642, +0.0138, -0.2058, -0.5751, +0.2576, +0.2225, -0.3665, -0.9525, -0.1351, -0.3914, +0.0191, -0.0508, -0.6731, +0.1697, -0.3946, -0.0264, -0.0259, +0.0276, -0.5611, -0.4430, +0.2832, -0.6663, -0.0660, +0.2421, +0.0772, -0.0405, +0.2755, +0.0031, -0.6514, +0.0150, +0.3053, +0.4018, +0.5021, -0.2157, +0.1647, -0.8754, +0.1060, +0.1213, +0.0049, -0.5501, +0.3529, +0.3156, -0.1689, -0.3875, -0.1849, -0.1724, +0.1727, +0.1591, -0.0960, +0.1350, -0.5237, -0.3937, +0.0273, +0.3581, +0.1818, -0.2577, +0.4555, +0.3635, +0.4512, -0.2311, -0.1382, -0.8001, -0.4946, +0.0842, +0.3760, +0.1495, +0.6040, -0.4504, -0.4973, +0.0428, +0.0742, -0.1994, -0.0175, -0.0597, -0.2138, -0.3823, -0.1439, +0.1747, -0.8329, -0.2617, +0.2151, +0.1795, -0.4310, +0.0498, +0.0994, +0.5801, +0.2664, +0.2355, -0.6505, -0.2277, -0.4698, +0.4264, -0.0938, -0.3382, -0.3953, +0.0303, +0.4967, +0.1012, -0.1518], +[ -0.2188, +0.1021, -0.2240, -0.4672, +0.1532, -0.3045, +0.1718, +0.1418, -0.5078, -0.3792, +0.0666, +0.0985, -0.3817, -0.1581, -0.3091, -0.4972, -0.4725, +0.1204, -0.6940, -0.1842, +0.0045, -0.9836, +0.1029, -0.1811, +0.0756, +0.0428, +0.0777, -0.3013, -0.4269, -0.0528, +0.0722, -0.0670, -0.7216, +0.1244, +0.2999, -0.0958, +0.0789, -0.1816, -0.4453, -0.6704, -0.0310, -0.2875, +0.3572, -0.0051, -0.4087, +0.0230, +0.3466, -0.1092, +0.3518, -0.3754, -0.1125, -0.1751, -0.1190, +0.0514, +0.2108, +0.0382, -0.2385, -1.1745, -0.6549, +0.1466, +0.1003, -0.1397, +0.1939, -0.1007, -0.5671, -0.2141, -0.3080, -0.3285, -0.5235, -0.5764, -0.3409, -0.5457, +0.1450, +0.2169, -0.0775, -0.3134, -0.2641, +0.0260, -0.1224, -0.2079, -1.1028, -0.0962, +0.3657, +0.2675, +0.2761, -0.1438, -0.0040, +0.3894, -0.1598, -0.9228, -0.4203, +0.3786, -0.6578, -0.2065, +0.4389, -0.6512, +0.1878, +0.1302, -0.1187, +0.0349, -0.2018, +0.2299, -0.1649, -0.5971, -0.0187, -1.1908, -0.2499, -0.4757, +0.0489, -0.0761, +0.6595, +0.0984, -0.2936, -0.1527, +0.3843, +0.4120, +0.2702, +0.0496, -0.1293, +0.6906, +0.2244, -0.1256, -0.4838, +0.6558, -0.0440, -0.2431, -0.5317, +0.1463], +[ +0.1007, -0.2044, +0.0915, -0.1110, +0.2309, +0.0957, +0.0353, -0.2517, -0.1242, -0.1429, -0.3406, +0.0926, +0.0606, +0.0489, +0.0082, +0.1055, -1.3637, +0.2863, -0.8374, +0.0397, -0.0966, +0.1015, +0.0416, +0.2654, -0.1580, +0.0091, +0.2479, -0.1647, +0.0940, +0.1184, -0.1846, +0.2333, -0.1408, -0.0981, +0.1680, +0.0911, +0.4148, +0.2737, +0.0429, -0.3616, +0.0468, +0.2632, -0.2784, +0.4318, +0.0774, -0.4683, +0.0070, -0.0744, -0.0775, +0.0305, +0.0484, -0.1177, +0.0596, -0.1406, +0.0670, -0.0642, +0.2147, -0.3049, -0.0589, +0.2003, -0.0902, -0.1474, -0.3707, +0.1232, -0.3934, +0.1415, -0.2993, +0.0076, -0.1834, +0.0297, -0.1118, +0.1966, +0.1434, +0.0009, +0.0595, -0.2880, +0.0926, -0.3560, -0.5908, +0.2940, -0.0431, -0.0223, +0.4797, +0.1149, -0.0131, -0.0821, +0.0943, -0.2290, +0.1531, +0.2856, -0.3395, -0.1174, -0.5446, +0.0501, -0.0462, -0.1134, -0.1696, +0.0725, -0.0470, -0.0893, +0.0332, -0.0180, +0.5846, -0.2333, +0.1019, -0.0331, +0.0771, +0.2611, -0.1336, -0.1301, -0.9212, -0.3052, +0.0114, +0.0305, -0.2702, -0.1209, +0.2616, +0.4937, -0.0724, +0.2716, -0.0188, +0.2153, +0.3038, +0.1207, +0.1832, -0.1724, +0.2292, +0.2457], +[ -0.1804, -0.6413, -0.0744, +0.1991, -0.0737, -0.2933, +0.1017, -0.1491, +0.4600, +0.2833, -0.2731, -0.1631, -0.5416, -0.4341, -0.2894, -0.1315, -0.2177, +0.0498, -0.0359, +0.4271, -0.1389, -0.0952, -0.0668, -0.2945, +0.0423, -0.4391, +0.1829, -0.0940, +0.2085, +0.4466, -0.0549, -0.4789, +0.1381, +0.3271, -0.1952, -0.5656, -0.4272, -0.6747, -0.1363, -0.4104, +0.3835, +0.1417, +0.3708, +0.0614, -1.0061, -0.3433, +0.5277, -0.0979, +0.2403, -0.3140, -0.1091, -0.0942, -0.7187, -0.1379, -0.0743, -0.0831, -0.0651, -1.4077, -0.2030, +0.4326, +0.1291, +0.0197, +0.0664, +0.0799, -0.0921, -0.1370, -0.4199, +0.2537, -0.1733, -0.5453, -0.3406, +0.2641, -0.2840, -0.2217, -0.1717, -0.2596, -0.6149, +0.2036, -0.1179, -0.4542, -0.2821, -0.0771, -0.3978, -0.0618, -0.0831, -0.2506, -0.1301, +0.0824, -0.5279, -0.0014, -0.0490, -0.5102, -0.3509, -0.0945, +0.3115, +0.4273, -0.6854, -0.7175, -0.3040, +0.1343, -0.3622, -0.2034, +0.4940, -0.5965, +0.0041, -0.6200, +0.0382, +0.2886, -0.6852, +0.1837, -0.1224, -0.3253, -0.2527, -0.8300, -0.0729, +0.0226, -0.4047, +0.1606, +0.2364, -0.4973, -0.6442, +0.1035, +0.3565, +0.0052, +0.3142, +0.3418, +0.0403, -0.5119], +[ -0.1017, -0.0053, +0.0267, -1.0741, -0.1520, -0.1370, -0.3307, -0.0732, -0.4366, -0.7079, -0.2262, -0.2293, -0.1644, +0.1885, +0.6407, -0.2647, +0.0997, +0.1705, +0.3492, -0.1606, -0.0041, -1.6792, +0.0112, -0.0425, -0.4714, -0.0951, +0.1999, +0.1248, +0.2741, +0.2132, +0.3065, +0.2279, -0.1889, +0.0610, -0.3630, +0.1476, -0.0402, -0.1753, -0.7225, -0.0120, +0.0444, +0.1587, +0.1624, -0.3233, +0.0357, +0.1818, +0.2471, -0.5049, -0.9300, -0.1819, -0.0472, -0.1533, +0.2635, +0.2933, -0.1783, -0.2531, -0.1683, -0.0108, +0.0977, +0.2713, -0.0255, -0.2324, +0.1616, -0.3653, -0.1300, -0.0267, -0.0338, +0.1684, +0.0473, -0.0590, -0.1669, +0.0260, -0.2941, +0.1953, -0.7179, -0.1900, +0.1382, +0.3187, +0.1247, -0.5942, -0.5205, -0.0947, -0.0335, -0.0588, -0.0189, +0.3053, -0.0854, -0.3207, +0.1741, +0.0546, +0.0115, -0.2876, +0.1458, +0.3574, -0.2910, +0.0976, +0.1731, -0.0817, -0.0826, +0.2886, -0.1298, +0.2386, +0.2121, -0.1873, +0.3193, +0.3598, +0.3700, -0.4408, +0.0477, -0.2259, -0.8351, -0.3033, -0.1020, -0.3804, -0.0147, -0.0782, -0.0253, +0.2604, +0.0669, -0.0886, -0.2918, +0.0786, -0.0955, +0.1704, -0.2301, -1.1527, -0.0295, +0.4580], +[ -0.6923, -0.0835, -0.2932, +0.1860, -0.0988, +0.0671, +0.0189, +0.2117, +0.1516, +0.1037, -0.1780, +0.5206, -0.2900, -0.4395, +0.0723, -0.1160, +0.1709, -0.1442, +0.3346, -0.7235, -0.4740, +0.0875, -0.0777, -0.1537, +0.4708, +0.3247, +0.1284, -0.2747, +0.4688, +0.1906, -0.5578, -0.2271, -0.6142, -0.2636, -0.1089, -0.4988, -0.1197, -0.1757, +0.0829, -0.0075, +0.2441, -0.6189, -0.1981, +0.1928, +0.1158, -0.3283, -0.5588, +0.0071, +0.6097, +0.3238, -0.3600, +0.4527, -0.0510, +0.7691, -0.5023, -0.2895, +0.2136, +0.1607, +0.3858, -0.0098, +0.3589, -0.1146, -0.0712, -0.0400, -0.1925, -0.4676, +0.2759, +0.1378, -0.4339, -0.5202, -0.4195, +0.0838, -0.2441, -0.3500, +0.0759, -1.0871, -0.1415, -0.2753, -1.1007, -0.0186, +0.1863, -0.5634, +0.0043, +0.1119, +0.2769, -0.1073, -0.2010, +0.4234, -1.3143, +0.3216, +0.1197, -0.0692, -0.4731, -0.6585, +0.1252, +0.1992, -0.2571, +0.1463, -1.2326, +0.1175, +0.0214, -0.3330, -0.2817, -0.4959, -0.0610, -0.0143, -0.7349, +0.2925, -0.2817, -0.2231, +0.1759, -0.9774, +0.2390, -0.1225, -0.9171, -0.1901, -0.7895, -0.4615, +0.0353, -0.5406, -0.4352, +0.3894, +0.1673, -0.5319, -0.4118, -0.2283, -0.5668, +0.2083], +[ -0.2980, -0.3592, -0.0770, -0.3542, +0.1863, +0.2256, -0.1919, -0.1789, -0.4016, +0.1436, -0.2752, +0.0135, +0.2265, -0.3872, +0.0598, +0.0476, -0.2551, -0.1743, -0.7473, -0.2520, -0.2357, -0.3911, +0.0377, +0.1986, -0.0369, -0.3049, +0.1196, +0.2373, +0.1458, +0.2655, +0.1632, -0.1340, -0.2975, +0.4237, +0.2112, +0.4525, -0.0604, -0.0543, -0.4549, +0.0763, -0.6850, -0.4227, -0.7335, -0.1524, -0.2647, -0.1532, +0.3511, -0.2706, +0.1650, -0.4522, -0.0460, +0.6378, -0.1204, +0.0676, -0.0465, -0.0767, +0.2404, -0.8729, +0.2271, +0.4106, -0.1021, +0.0290, -0.5288, -0.1131, -0.3274, +0.0984, -0.4574, +0.5551, -0.1834, +0.0660, -0.1157, +0.1353, -0.2033, -0.3010, +0.5301, +0.0713, -0.2118, -0.1965, +0.0318, +0.5520, -1.3944, +0.3160, -0.5554, -0.3506, +0.0334, +0.1534, +0.1675, -0.2854, +0.1113, -0.2012, +0.3805, -0.0233, -0.2185, +0.1111, +0.0239, -0.4577, +0.1438, +0.1930, -0.1968, +0.1310, +0.6313, -0.3919, -0.4534, +0.2406, -0.5656, +0.1666, +0.0888, +0.0411, +0.0157, +0.3176, -0.1931, +0.2688, -0.3309, +0.0924, -0.0175, +0.3059, +0.0998, -0.1257, +0.2527, -0.5143, +0.0128, +0.0456, -0.3505, -0.3927, -0.0699, -0.4737, -0.5614, -0.4470], +[ -0.4806, +0.3155, +0.0923, -0.0874, -0.3705, +0.0612, +0.2649, -0.5107, -0.7034, +0.1830, -0.2687, -0.0724, -0.0851, -1.4003, +0.0659, -0.5941, +0.1984, +0.1414, -0.1043, +0.0107, -0.6484, -0.0740, +0.2101, +0.0407, -0.2219, +0.0094, -0.1241, -0.3421, -0.0127, -0.1056, +0.2103, +0.2309, -0.2926, -0.7421, -0.5438, +0.0586, +0.0710, +0.3101, -0.6930, +0.0095, -0.5734, +0.1109, -0.3719, +0.1490, +0.1394, -1.1226, -0.0579, +0.3137, -0.1024, +0.3899, +0.0721, -0.4998, +0.0433, +0.3800, +0.2369, +0.2631, -0.4126, +0.4422, -0.0038, +0.1540, -0.2970, +0.2507, +0.0484, -0.0013, -0.1378, +0.3255, -0.6364, +0.1867, +0.3550, +0.1193, -0.1194, -0.5268, -0.0703, +0.0644, -0.1363, +0.0177, +0.0322, +0.2742, +0.0973, -0.1359, -1.5205, +0.3452, +0.1356, -0.0290, -0.1225, -0.5191, -0.1403, -0.1737, -0.3189, +0.1529, +0.1788, +0.5082, -0.2529, -0.1178, +0.1159, -0.2308, +0.0791, +0.0944, +0.2157, -0.1984, -0.6510, -0.2869, -0.0004, +0.2280, +0.0338, +0.1443, -0.5017, +0.3413, -0.0812, -0.3725, -0.0953, -0.1753, -0.6761, -0.7394, -0.2595, -0.5947, -0.1616, -0.1802, +0.1509, -0.3197, -0.0278, +0.2917, +0.2329, -0.0423, +0.1683, -0.2103, +0.1495, +0.0141], +[ -0.0667, -0.0992, -0.1614, +0.0497, +0.1847, +0.0645, +0.1867, +0.1900, +0.0920, -0.4507, +0.0406, -0.5628, +0.1646, +0.0726, -0.0777, -0.0642, -0.7265, +0.1354, +0.2330, -0.3079, +0.1769, -0.1255, +0.2995, -0.1625, -0.6023, -0.1636, +0.2149, +0.0838, +0.1872, -0.0040, -0.2513, +0.1646, +0.4241, +0.3852, -0.2071, +0.2552, +0.5452, +0.2415, +0.1584, -0.3388, +0.0944, -0.0345, +0.1485, -0.2260, +0.1944, -0.3549, -0.0954, -0.3895, +0.0756, -0.1107, +0.3953, -0.2296, -0.6125, +0.2883, +0.5243, -0.1802, +0.1412, +0.0637, +0.2653, +0.1138, +0.0330, -0.8522, -0.4973, -0.1516, -0.1257, +0.0568, -0.1561, -0.9619, -0.3596, +0.0625, +0.0618, -0.3619, +0.0190, -0.0134, +0.0080, -0.1078, +0.5391, +0.0050, +0.0016, -0.2223, -0.0290, -0.2086, +0.1544, -0.4426, +0.2384, -1.1034, -0.0437, +0.1262, +0.2907, +0.1822, +0.2386, -0.3384, -0.0796, -0.0364, -0.2243, -0.3665, +0.2532, -0.0050, -0.5482, -0.1726, -0.0011, +0.2308, -0.1187, +0.4308, +0.3380, -0.5357, -0.3053, -0.1135, -0.4833, +0.2517, -0.3469, -0.1541, +0.2791, -0.6348, +0.3385, +0.0960, +0.0710, -0.0633, -0.0994, +0.3203, -0.7650, -0.3229, -0.2339, -0.1777, +0.1286, +0.3831, +0.2287, +0.2214], +[ -0.2278, +0.0599, +0.1749, +0.0846, +0.2653, -0.2085, +0.2674, +0.0839, +0.1695, +0.0025, +0.1746, -0.6353, -1.5946, -0.0767, +0.1051, -1.0178, -0.4124, -0.8966, -0.4066, -0.4909, +0.1857, -0.3586, -0.0416, -0.0515, -0.5398, -0.4615, +0.0544, -0.2038, -0.6872, -0.1224, +0.1132, -0.0118, +0.5187, -0.3769, -0.3153, -0.6752, -0.0928, +0.5779, -0.3849, -0.2489, -0.2858, +0.0034, -1.1811, -0.5856, +0.0593, -0.7577, -0.4646, -0.0720, -0.0858, -0.6801, -0.3070, -0.2493, -0.3826, +0.1238, +0.0142, +0.1338, -0.2912, +0.1265, +0.1413, -0.0790, -0.4042, -0.1121, +0.0566, -0.5050, -0.1847, -0.0788, -0.7086, +0.4693, +0.0922, -0.5241, +0.0480, -0.6937, -0.3177, +0.3113, -0.2466, -0.0568, -0.3864, +0.0785, +0.1268, +0.3052, -0.4641, +0.0233, +0.3174, +0.4796, +0.2136, +0.2071, -0.3378, +0.1770, -0.3073, -0.4837, +0.0268, +0.3070, -0.7598, +0.1185, -0.9079, -0.0655, -0.8789, +0.1163, +0.0533, -0.4104, -1.1246, +0.3531, -0.2305, -0.0769, +0.2587, -0.2744, -0.1765, +0.1128, -0.3661, -0.2759, -0.3635, -0.0870, +0.2840, -0.1848, -0.7447, -0.1136, -0.5474, +0.1823, +0.3944, -0.8700, +0.2521, +0.2599, -0.1910, -0.1516, -0.0022, +0.1349, +0.0809, -0.0219], +[ +0.1997, -0.1686, +0.1633, +0.3972, -0.2555, -0.4707, +0.0986, +0.2124, +0.2609, -0.0477, +0.0647, +0.2468, -0.4802, +0.2162, +0.1008, -0.3933, -0.7887, +0.1305, -0.3189, +0.1509, +0.1744, +0.0297, +0.1503, +0.3479, +0.4152, -0.0781, -0.1543, -0.3510, -0.4484, +0.2827, -0.3342, +0.2767, -0.1857, -0.0755, +0.0698, -0.0198, +0.3059, +0.1141, -0.1964, +0.0740, +0.1471, +0.0524, +0.3166, +0.4728, +0.2753, -0.2491, -0.3577, -0.0727, +0.1008, +0.2395, +0.1954, -0.2640, +0.1138, +0.2663, -0.0429, -0.1869, -0.1945, +0.2696, -0.0298, -0.4269, +0.1007, -0.0709, +0.1780, -0.0386, +0.1516, -0.2490, +0.0642, -0.1984, +0.1382, +0.2252, +0.2989, -0.0884, +0.5567, -0.1373, -0.0234, -0.1539, +0.2249, +0.0235, +0.0363, -0.0671, +0.5934, -0.3499, -0.4031, -0.0343, +0.0282, +0.2338, -0.1531, -0.0376, -0.3333, -0.0082, +0.3619, +0.0112, -0.2805, +0.1392, -0.2005, -0.4171, -0.0823, -0.1410, -0.0805, -0.1926, +0.4222, -0.0171, +0.5127, +0.2822, +0.2713, -0.5033, +0.1302, -0.1223, -0.2492, +0.0080, +0.3015, +0.2210, -0.1282, -0.2839, -0.2694, +0.0342, +0.0786, -0.0651, +0.4300, -0.3366, +0.1258, +0.0659, +0.1648, -0.3529, -0.1900, -0.0573, -0.1043, +0.3084], +[ -0.3196, -0.3881, -0.2989, +0.0906, -0.1275, -0.0363, +0.1150, -0.0005, -0.3683, +0.2742, -0.0017, +0.0236, -0.4375, +0.2102, +0.3765, -0.4295, -0.1413, -0.1046, -0.4363, -0.2343, -1.3066, -1.2125, +0.2322, +0.0435, -0.2443, +0.2904, +0.3639, +0.0835, -0.0235, +0.1044, +0.0270, -0.2595, -0.1545, +0.4291, -0.6825, -0.1580, -0.3518, -0.4174, -0.3360, +0.1452, -0.3446, -0.0335, -0.2831, -0.0344, +0.0732, +0.0012, -0.7452, -0.2454, +0.0288, +0.0435, +0.2431, -0.1675, +0.3184, -0.0510, +0.2899, -0.5552, +0.0075, -0.7057, +0.0556, -0.1258, -0.9960, -0.9879, +0.2819, +0.0506, -0.4218, +0.0495, +0.1051, +0.0847, +0.1042, +0.1964, +0.0236, -0.4007, -0.2263, +0.1160, -0.4721, +0.0103, -0.1899, -0.0715, +0.2563, +0.4472, -0.0286, +0.0117, +0.1024, -0.0833, +0.2239, +0.0298, +0.0470, +0.0317, -0.2442, +0.1281, -0.1152, +0.2104, +0.1516, -0.3350, +0.1161, +0.0015, -0.2331, -0.1021, +0.1318, +0.0211, -0.0406, -0.3460, -0.0693, +0.3281, +0.2538, +0.0049, -1.5453, -0.5795, +0.1501, -0.0246, -0.1320, +0.1567, +0.1448, -0.5247, +0.0656, -0.1189, +0.2296, -0.2399, +0.1571, +0.1269, -0.2336, -0.2560, -0.2979, -0.0549, +0.2824, -0.0339, -0.4543, +0.0071], +[ +0.2987, -0.2200, +0.0036, -0.7426, -0.0864, +0.0387, -0.2558, -0.3795, -0.2955, -0.2933, +0.2701, +0.1779, -0.0576, -0.4442, +0.1014, -0.1645, -0.1616, +0.0985, +0.4104, +0.5039, -0.1322, -0.2139, +0.2462, -0.3159, -0.2811, -0.2837, +0.4436, +0.3231, +0.1408, +0.1549, +0.1745, +0.1944, -0.2509, +0.4857, -0.9717, +0.0911, -0.1165, -0.1745, -0.2154, +0.5759, -0.3839, +0.4048, +0.1516, -0.1299, -0.2511, +0.1025, +0.0566, -0.2283, -0.3304, -0.2317, +0.4664, +0.1280, -0.2645, -0.3396, +0.2112, +0.1603, +0.3225, +0.3721, +0.3877, +0.2450, -0.0419, +0.0659, -0.3701, -0.7026, -0.3082, +0.0884, +0.1561, +0.3241, -0.1554, -0.3413, -0.1884, -0.9844, -0.5072, -0.0303, +0.1457, +0.3460, -0.5375, -0.2408, -0.1810, -0.5850, +0.0492, +0.1837, -0.1011, +0.4130, +0.0559, -0.0881, +0.3454, +0.2754, -0.7812, +0.1154, -0.3114, -0.2542, +0.0460, -0.0661, +0.1960, +0.1341, -0.1157, +0.1198, -0.2963, -0.3547, +0.3525, -0.3400, -0.1312, +0.0590, -0.0392, +0.4954, +0.0648, +0.3201, -0.2454, -0.2929, +0.0651, +0.5381, -0.3279, +0.2092, -0.1961, -0.1749, -0.5174, -0.1017, -0.1551, +0.1715, -0.0994, +0.1894, +0.0272, +0.2676, +0.1321, -0.0582, -0.1677, +0.2883], +[ -0.0146, -0.0709, -0.0518, -0.0176, -0.2959, -0.1746, -0.0633, +0.6862, +0.2387, +0.0482, -0.2509, +0.1436, +0.1807, -0.3079, +0.0494, -0.3246, +0.3055, -0.0408, +0.0555, -0.3382, -0.0025, -0.6834, +0.3476, -0.0030, +0.1579, +0.0862, -0.1791, +0.2797, -0.1817, -0.5095, +0.1178, -0.0809, +0.0146, +0.0715, +0.2182, +0.1804, -0.0511, +0.2319, +0.3272, +0.1131, -0.8983, -0.2011, +0.1689, +0.1074, -0.2583, +0.1779, -0.3014, -0.6327, -0.6665, -0.1555, -0.4645, +0.3818, -0.1123, -0.0006, +0.0179, -0.2749, -0.2487, +0.2292, -0.4893, +0.0555, +0.0468, -0.6136, +0.5404, +0.0466, +0.4146, +0.1579, -0.2530, -0.1750, +0.1629, +0.3238, +0.5659, -0.0503, +0.0016, +0.2809, +0.2784, +0.1475, -0.6414, +0.0670, +0.2265, -0.1811, -0.3040, -0.0546, -0.2173, -0.2576, +0.0802, +0.2631, +0.0972, -0.4235, -0.2117, +0.1895, -0.0280, -0.5000, +0.0190, -0.4688, -0.1146, -0.1668, -0.3957, -0.4922, -0.4706, +0.0001, +0.0590, +0.2283, +0.2287, +0.1000, +0.0845, -0.0947, -0.0734, +0.0261, -0.6553, +0.0896, +0.2446, -0.0348, +0.0433, +0.4232, -0.0218, -0.3960, -0.5046, -0.2987, +0.0280, +0.1634, +0.2381, +0.3501, -0.3088, -0.1006, -0.1233, +0.2142, +0.2062, -0.1283], +[ +0.4739, -0.1162, -0.1366, +0.3816, -0.0417, +0.1261, -0.2335, +0.3669, -0.2401, -0.9522, +0.2109, -0.0132, -0.1865, +0.4836, +0.1055, -0.2218, -0.1196, +0.0196, -0.0025, -0.1330, +0.2417, +0.1743, -0.1366, -0.0336, -0.6017, -0.1232, -0.0231, -0.5966, -0.2600, +0.2885, +0.1231, -0.4905, +0.1792, +0.3717, -0.3098, -0.1309, +0.0815, +0.2542, +0.4068, +0.0271, +0.5056, -0.1061, +0.0995, +0.1470, +0.0906, +0.0087, -0.0164, -0.0068, +0.1400, +0.0244, +0.1745, -0.5422, +0.1526, +0.2037, +0.3617, +0.0946, -0.0461, +0.3309, +0.1855, +0.1393, +0.1067, -0.1586, +0.4164, -0.3496, -0.0448, -0.1618, +0.1439, +0.1217, -0.1955, +0.1186, -0.4702, -0.0768, +0.1980, +0.0206, -0.1104, +0.1408, +0.2186, +0.2172, -0.0080, -0.5046, -0.2846, +0.2130, +0.3136, +0.1544, -0.1141, -0.2175, +0.1584, +0.3487, +0.0853, -0.3997, +0.1498, -0.7731, -0.3221, -0.1360, +0.1550, -0.3316, +0.2193, +0.1954, +0.1046, -0.4732, +0.0718, -0.0856, +0.1472, +0.1259, +0.4658, -0.9460, -0.3982, -0.2009, +0.0725, +0.0534, -0.1006, +0.1511, +0.1744, -0.0355, +0.0462, +0.0833, +0.1941, +0.2094, -0.0421, -0.3453, +0.0553, -0.3758, +0.4053, +0.1095, +0.3244, +0.2891, +0.0966, +0.1166], +[ -0.0724, +0.1085, -0.4972, -0.0028, -0.0067, +0.0227, -0.0290, -0.2167, -0.6043, +0.0365, +0.4909, -0.1674, +0.2678, +0.0223, -0.3653, -0.0437, -0.1391, +0.0805, -0.1396, +0.2644, -0.1395, +0.0312, -0.3119, -0.0578, -0.3483, -0.0024, +0.0221, -0.0269, +0.0651, -0.4800, +0.3787, -0.7678, -0.2529, +0.1472, +0.2696, +0.0188, +0.0343, +0.1721, -0.2451, -0.1120, -0.2019, -0.2884, -0.6638, -0.1714, +0.2885, +0.2285, +0.0318, -0.3222, -0.3335, +0.2194, -0.3422, -0.4953, +0.2280, -0.5251, -0.1215, -0.6155, -0.1824, -0.5457, -0.2367, -0.3223, -0.0156, +0.1921, -0.3315, +0.0449, -0.4019, -0.2108, -0.1561, +0.4559, +0.0354, +0.1694, +0.1857, -0.1764, -0.1723, +0.2748, -0.4499, -0.2516, -0.2862, -0.7654, +0.1760, -0.3138, +0.1232, +0.1452, -0.4399, -0.4372, -0.5577, +0.4384, +0.1098, +0.2407, +0.3873, +0.2635, -0.4921, +0.0278, +0.0434, -1.1753, -0.5458, -0.7957, -0.5668, +0.1613, -0.4191, +0.1752, -0.0424, +0.0031, -0.1225, +0.3289, -0.2935, -0.1039, -0.1187, +0.0134, -0.1290, -0.0443, -0.4428, +0.1887, +0.3621, -0.5257, -0.1781, -0.4115, -0.2030, -0.0053, -0.3871, +0.1769, +0.0771, +0.1107, -0.5442, +0.1559, -0.2440, +0.0977, +0.0242, -0.3956], +[ -0.0798, -0.1869, -0.4505, +0.2138, +0.1049, +0.3944, +0.1550, -0.0989, -0.2967, +0.0611, +0.3077, +0.1048, +0.0462, -0.2095, -0.1263, +0.3146, -0.2458, -0.2668, -0.2381, +0.0026, +0.1260, +0.4875, +0.0092, -0.0631, +0.1149, +0.0102, -0.2396, +0.0068, -0.0141, -0.3464, +0.1864, -0.2542, -0.2427, +0.2244, -0.8746, +0.2318, -0.0816, +0.0589, -0.9249, -0.0227, -0.4448, +0.0442, +0.2586, -0.0237, +0.0434, +0.3148, +0.1130, -0.1757, -0.2727, -0.0835, -0.8797, -0.1123, -0.2536, +0.0793, -0.0724, +0.0759, -0.8041, +0.0838, +0.0876, +0.2154, +0.0597, -0.4181, +0.5480, -0.0952, +0.3059, -0.1575, -0.0610, -0.1407, -0.1976, -0.1626, -0.5145, +0.4673, +0.1151, +0.2068, -0.0202, -0.5073, -0.2761, -0.0609, -0.0292, +0.2907, -0.0149, -0.2919, -0.0782, -0.0149, +0.2524, +0.0138, +0.5132, -0.0625, -0.0648, -0.1619, +0.0246, -0.4964, +0.4155, -0.1614, -0.0334, +0.2199, -0.4551, -1.1411, +0.4183, -0.5659, +0.4333, -0.1543, -0.3226, +0.1156, +0.2702, +0.1286, -0.1775, -0.1968, -0.0402, +0.4610, -1.0954, +0.0405, +0.2891, -0.0159, -0.1103, +0.1736, +0.0364, -0.3440, -0.4703, -0.0790, +0.2281, -0.0608, -0.0070, +0.1701, +0.2180, +0.2921, -0.1660, -0.0240], +[ -0.1531, -0.0762, +0.2434, +0.2059, +0.0006, -0.0483, -0.0835, -0.1988, +0.1489, -0.3940, -0.0165, +0.2051, -0.3440, -0.4387, +0.1805, -0.0351, +0.0964, -0.2094, +0.0173, -0.1027, +0.0215, -0.5647, -0.2739, -0.1528, +0.4392, +0.0523, +0.1529, +0.0308, +0.0211, +0.1656, -0.0450, -0.1568, +0.0969, +0.1154, -0.3587, +0.2964, -0.0999, -0.3697, +0.1148, -0.0733, -0.5812, +0.1674, +0.0484, +0.2600, -0.0143, +0.0457, -0.0709, -0.0018, +0.0157, -0.0339, -0.2562, -0.0362, -0.8209, -0.1456, -0.2533, +0.1077, -0.0559, -0.4240, -0.0907, -0.3365, -1.1521, -0.1654, -0.1469, -0.3055, -0.2623, +0.2880, +0.1382, +0.1370, +0.2796, -0.0196, +0.4249, -1.0353, -0.1271, -0.4022, +0.0980, -0.0444, +0.1223, -0.2851, -0.2339, +0.6282, +0.2245, -0.2938, +0.1645, -0.0032, +0.2605, -0.5217, -0.1395, -0.3899, -0.1549, -0.0148, -0.3275, +0.3340, -0.0451, -0.4814, -0.8078, +0.0940, -1.2753, +0.1369, -0.2777, +0.1625, +0.1247, -0.1658, -0.3757, +0.3097, +0.1633, -0.3481, -0.1820, +0.2435, -0.3022, -0.3967, -0.5671, -0.2281, +0.0564, -0.0929, +0.0627, -0.2076, +0.1221, -0.0419, -0.0861, +0.0797, -0.0192, -0.2822, -0.1680, -0.3009, -0.3804, -0.4238, +0.0706, +0.1520], +[ +0.0304, -0.2949, -0.1197, -0.2498, -0.1144, +0.2134, +0.0354, +0.4345, -0.1183, +0.2633, -0.0164, +0.0046, -0.2470, -0.0179, -0.0765, -1.0519, +0.4042, +0.2414, -0.3601, +0.2761, -0.2936, +0.2004, +0.0272, -0.3135, +0.5484, -0.2961, +0.1134, +0.1317, +0.2315, -0.5105, +0.2052, +0.3595, +0.1048, -0.6679, +0.3744, -0.0238, -0.3705, -0.5327, -0.4238, -0.3695, -0.3441, +0.1102, -0.2174, -0.2318, +0.3524, -0.8398, +0.3412, +0.6612, -0.2882, -0.1543, -0.4695, -0.5044, +0.0114, -0.2963, -0.1065, -0.4779, -0.0599, -0.0249, +0.2302, +0.2725, -0.2193, -0.4488, -0.0592, +0.3570, +0.3488, -0.3927, -0.8498, -0.5230, -0.2438, -0.3574, +0.1329, -0.0425, -0.1903, +0.0357, +0.0999, +0.2359, -0.0484, -0.1651, +0.0435, +0.3874, -0.1912, +0.3354, +0.0358, +0.0585, +0.1967, +0.0366, +0.0187, -0.0461, +0.0070, +0.1871, -0.5516, -0.0042, -1.0255, -0.3259, -0.0243, -0.5298, +0.2294, -0.5062, -0.1477, +0.1261, -0.0510, +0.1436, +0.0660, -0.5151, +0.2660, -0.5662, -0.1677, -0.8036, +0.2069, +0.1128, -1.1921, +0.2165, -0.2782, -0.0133, +0.3023, +0.4483, +0.3006, +0.1258, -0.3541, +0.4909, -0.5832, -0.2644, -0.5679, -0.0143, +0.4790, -0.5303, -0.0335, +0.1827], +[ +0.1815, -0.0401, +0.5799, -0.1930, -0.1426, +0.2715, -0.2027, -0.4024, +0.1903, -0.2936, -0.1695, +0.1541, +0.0735, +0.1619, +0.2111, -0.2971, +0.1040, -0.2205, +0.0246, +0.3006, +0.0952, -0.0275, -0.0447, +0.1255, -0.0167, -0.3038, +0.0067, +0.0918, +0.4534, +0.3729, +0.2850, +0.3374, -0.4727, -0.1795, -0.1843, -0.7887, -0.1064, +0.3617, +0.4538, -0.4319, +0.5354, +0.2161, +0.0345, -0.0433, +0.3310, -0.3595, +0.2615, -0.0568, +0.0303, +0.3004, +0.0770, -0.2452, -0.6659, -0.5601, -0.2301, -0.0998, +0.0636, -0.1085, +0.1295, -0.0602, +0.0307, -0.0612, +0.1105, -0.0609, +0.1408, -0.2544, -0.6422, -0.0406, +0.2392, +0.0856, -0.2494, -0.0096, -0.0540, +0.0659, -0.1719, -0.1073, -0.2555, -0.2760, -0.4249, -0.0601, +0.2513, +0.1583, -0.1241, +0.1113, -0.5371, -0.0592, -0.3068, -0.5263, +0.1182, -0.1418, -0.6853, -0.5592, -0.8657, -0.0064, +0.1229, -0.6746, +0.0328, -0.5248, +0.0427, +0.0597, +0.0565, +0.1423, +0.0662, -0.1197, +0.0264, +0.4936, -1.0516, -0.4423, -0.1124, +0.0092, -0.2064, -0.8563, -0.3046, -0.4646, -0.0318, +0.1897, +0.3785, +0.4474, +0.1881, -0.2840, -0.1618, +0.0267, -0.0722, -0.1734, -0.2372, -1.1021, -0.7337, +0.1509], +[ -0.6447, +0.3449, -0.9011, -0.2403, -0.0744, -0.1438, +0.2014, -0.3920, -0.2266, +0.0825, -0.3074, -0.4425, -0.0174, -0.3714, -1.7478, -0.1300, +0.1309, -0.2163, -0.6222, +0.5497, -0.1621, -0.6566, +0.0829, -0.3938, +0.2074, -0.0513, +0.2233, -0.6168, -0.0091, -0.1450, +0.3245, +0.1645, -0.2045, -0.1519, +0.8124, +0.1053, -0.2874, -0.5231, -0.2111, -0.2046, -0.3640, -1.6102, -0.0478, +0.2372, -0.3473, -0.2914, -0.2621, -0.0857, -0.4149, -0.5113, -1.0806, +0.1913, +0.0824, -0.1712, -0.3389, -0.9758, -0.2708, +0.1427, -1.3125, -0.7610, -1.1084, +0.0959, -0.3895, -0.0990, +0.2630, -0.2732, +0.5443, -0.6141, +0.0143, -0.2621, +0.5494, +0.5633, -0.0835, -1.4201, -0.0531, -0.0703, -0.5871, -0.1776, -0.6265, -0.1685, -0.5413, -1.0861, +0.2029, -0.2093, +0.5018, +0.3682, +0.0130, -0.4049, -0.2864, -0.5180, -0.3193, -0.2385, +0.1110, -0.1328, -0.9537, -0.4612, -0.8338, +0.2002, +0.5781, -0.5692, +0.0020, +0.4453, -0.5529, +0.0276, -0.3348, +0.6694, -0.0618, -0.0625, +0.1663, +0.3807, -0.7775, +0.0974, +0.1139, +0.1578, -0.4627, -0.4537, +0.2381, -0.0858, +0.0478, -0.2309, -0.3844, +0.1591, -0.2309, -0.0848, -0.4875, -0.2816, -0.1464, +0.3074], +[ +0.0608, -0.1224, -0.6330, -0.1259, +0.4083, -0.1106, -0.0339, -0.3438, +0.4411, -0.1641, -0.0177, +0.1939, -0.3302, -0.3217, +0.1455, -0.0684, +0.0289, -0.3108, -0.3304, -0.3683, -0.4343, -0.2011, +0.0423, +0.2278, -0.4396, +0.0042, -0.4049, +0.4562, -0.2658, +0.5984, -0.1613, -0.0498, -0.1887, -0.1891, +0.2460, -0.0120, +0.3477, +0.3723, +0.1210, +0.9048, -0.6516, -0.4915, +0.5168, +0.0967, +0.0134, -0.4125, -0.1386, -0.4876, +0.0348, +0.2497, -0.2787, +0.0328, +0.2342, +0.4503, +0.4376, +0.3408, -0.2701, -0.0179, -0.3997, -0.4566, -0.6290, +0.0888, -0.0180, -0.4430, -0.2944, -0.1129, +0.1297, -0.2416, -0.1129, -0.0031, -0.1250, -0.0975, -0.3855, -0.2048, +0.3220, -0.2710, -0.3520, -0.3234, +0.0636, +0.4856, -0.1456, -0.0888, -1.0173, -0.3701, +0.0300, -0.4591, +0.1676, -0.1109, -0.0447, -0.0134, -0.1801, -0.2803, -0.5276, +0.0692, -0.3301, -0.5713, -0.4566, -0.0351, +0.3655, +0.0301, -0.3156, -0.0812, -0.3689, -0.1990, -0.3871, +0.6426, -0.0287, -0.1836, +0.3070, +0.2296, +0.0925, -0.5309, -0.2213, -0.1056, +0.2159, -0.0555, +0.5778, -0.1754, +0.2780, -0.2772, +0.0251, +0.3355, -0.2899, -0.0700, +0.1763, +0.2300, +0.1414, -0.4682], +[ -0.2827, +0.2157, +0.1368, +0.0241, -0.1796, -0.2885, -0.3154, +0.2077, -0.0781, -0.3434, +0.1631, +0.2726, -0.0359, -0.1775, -1.2394, -0.2690, -0.5155, +0.0391, -0.0500, +0.1368, -0.0134, -0.1563, +0.1046, -0.1969, -0.2891, +0.0316, -0.2012, +0.3028, -0.0851, -0.3458, -0.7299, -0.2510, +0.4461, +0.2600, +0.3267, +0.0790, -0.1682, -0.1931, -0.0799, +0.2881, -0.5884, +0.0632, +0.3180, -0.3941, +0.1914, +0.5623, +0.3005, +0.0005, -0.0287, -0.2098, +0.0567, -0.6083, -0.5947, -0.5355, -0.4706, +0.4109, +0.1546, +0.0628, -0.5879, -0.5762, -0.4205, -0.1880, -0.6307, +0.3561, +0.3985, -0.5811, +0.3369, +0.2780, +0.0391, -0.3813, +0.0994, +0.3831, +0.1480, +0.0737, -0.2445, +0.0227, -0.0794, -0.0114, -0.5846, -0.3964, -0.0213, -0.4718, -0.8218, +0.0227, -0.1789, +0.1025, -0.2074, -0.0989, +0.4805, +0.1240, -0.2949, +0.2676, -0.0070, -0.1780, -0.1916, -0.1816, -0.3574, +0.0061, +0.1938, -0.0771, -0.1268, -0.3721, +0.0112, -0.4341, +0.0241, -0.1961, -0.0148, -0.1895, +0.2493, -0.1105, -0.0807, -0.0370, +0.4592, +0.6299, +0.1287, +0.3238, +0.1459, +0.3146, -0.0258, +0.4083, -0.1598, -0.1403, -0.4425, -0.0246, +0.1522, -0.1340, -0.0754, +0.0788], +[ +0.1139, -0.1473, +0.0625, -0.2686, -0.1878, +0.1209, +0.1643, -0.6718, -0.2045, -0.2222, -0.8136, -0.0653, -0.2586, +0.0177, -0.6514, -0.4516, +0.0916, -0.3649, -0.2173, +0.2538, -0.5378, +0.2946, +0.3534, +0.3872, +0.1299, -0.0175, +0.3286, +0.0112, +0.1354, +0.4912, +0.4418, +0.3883, -0.0243, -0.0846, -0.3096, +0.1244, -0.4983, +0.0288, -0.8007, -0.1267, +0.0108, +0.1520, -0.2865, +0.4799, -0.3412, -0.2733, -0.4696, +0.6912, +0.0983, +0.0998, +0.2374, -0.1982, +0.2253, +0.1817, -0.2972, -1.1327, -0.0503, +0.0064, +0.3198, -0.3973, -1.0132, +0.0144, +0.1239, -0.3439, +0.3481, -0.1054, -0.1642, -0.3204, +0.2265, -0.6322, -0.6049, +0.0105, +0.2317, +0.0861, -0.5469, +0.3185, +0.3799, +0.2897, -0.1284, +0.1114, +0.0065, -0.2713, -0.1795, +0.2296, +0.2176, +0.0355, -0.1739, -0.2801, +0.1071, -0.3920, +0.1264, +0.1638, -0.6773, -0.2767, -0.4543, -0.1426, -0.0279, -0.0029, -0.2080, -0.3354, +0.3200, -0.2031, -0.0694, +0.2044, +0.1851, -0.0066, +0.3423, +0.3267, +0.2141, -0.1742, +0.3827, -0.0116, +0.2795, +0.3505, -0.6727, +0.0667, -0.1962, +0.1275, -0.3322, +0.1561, +0.2273, -0.7180, -0.4079, -0.6132, -0.8328, -0.0139, -0.0531, +0.0699], +[ -0.2162, +0.3650, -0.0775, +0.1286, +0.2833, -0.2686, +0.2269, +0.1891, +0.5902, +0.0766, -0.5377, -0.4029, +0.3113, -1.0276, -0.5917, -0.0088, -0.0177, +0.3982, -0.8924, +0.0721, +0.0778, +0.4037, -0.1173, -0.1329, -0.2413, +0.1995, -0.2764, +0.2759, -0.0765, -0.0474, +0.4479, +0.0464, +0.0024, +0.2887, +0.2408, -0.2897, -0.5199, -0.3479, +0.0651, -0.0846, -0.5294, -0.3773, -0.3503, +0.0261, -0.0676, -0.6216, +0.3592, +0.1187, +0.1490, -0.1143, +0.1841, -0.0096, -0.5919, +0.3378, -0.8474, -0.9084, +0.0227, -0.7069, -0.0190, -0.9554, -0.5866, +0.2025, -0.2729, +0.1888, -0.4473, -0.1897, -0.1489, -0.0217, +0.1219, -0.3593, +0.0485, +0.2373, +0.2032, +0.5618, -0.2778, -0.4513, +0.1367, +0.2175, -0.0878, -0.2160, -0.0099, -0.1469, -0.2830, +0.3326, -0.3476, +0.0601, -0.2457, +0.2154, -0.4680, -0.3028, -0.0916, +0.1164, -0.0634, -0.4959, -0.2114, +0.2425, +0.0475, +0.2571, -0.0876, +0.0062, -0.4116, +0.4813, -0.1849, -0.0425, +0.0471, -0.4631, -0.7976, +0.2002, -0.1408, +0.2919, +0.0119, -0.5573, +0.3390, +0.4550, -0.3039, -0.1137, +0.2137, -0.0528, -0.6604, -0.0976, +0.3270, -0.0922, -0.2643, -0.4038, -0.3013, -0.1558, -0.1576, -0.3229], +[ +0.1884, +0.1581, -0.1678, -0.1605, -0.0788, -0.2348, -0.2711, +0.0234, +0.1463, -0.4431, -0.4578, -0.1051, +0.1719, +0.0025, +0.2520, -0.1683, -0.5398, -0.5436, -0.5340, -0.3022, +0.0653, +0.2823, +0.3645, -0.2714, -0.0326, +0.2143, +0.1475, +0.3053, -0.4027, +0.1658, +0.2754, -0.0655, -0.5440, -0.1419, +0.0892, -0.2852, -0.4614, +0.0123, +0.2066, +0.4549, -0.3081, -0.7535, -0.2124, -0.4547, -0.3026, +0.3357, -0.6742, +0.1423, -0.3012, +0.0458, -0.9311, -0.7505, -0.1701, +0.2159, -0.1285, +0.2552, -0.4995, -0.0120, -0.1738, +0.1413, +0.0009, -0.6367, -0.2474, +0.3341, -0.3521, +0.1533, +0.2673, +0.0852, -0.2343, -0.0740, +0.1619, -0.0412, -0.1895, -0.1293, +0.0769, +0.0521, -0.1532, -0.2426, +0.1172, -1.5164, +0.0624, -0.3847, +0.1773, -0.1819, -0.6927, -0.3207, +0.1571, +0.1593, -0.1427, +0.3353, +0.5158, +0.0365, +0.0112, +0.3568, +0.1530, +0.1749, -0.7890, -0.1237, -0.3425, -0.5343, -0.1073, -0.0057, +0.4587, +0.0027, -0.0265, -0.3313, +0.0943, -0.2787, -0.3268, -0.3629, -0.1698, -0.0133, -0.0167, -0.5999, -1.1855, +0.2669, -0.1889, +0.2187, +0.3723, -0.5664, +0.0426, +0.0538, +0.6252, +0.0166, +0.2159, +0.1125, +0.4596, +0.0911] +]) + +weights_dense2_b = np.array([ +0.1576, -0.1010, +0.0138, +0.3265, +0.2288, +0.0764, +0.0671, -0.1334, +0.1474, +0.1138, +0.0768, +0.1304, +0.2356, +0.0043, +0.0230, +0.1405, -0.0490, +0.2157, +0.1432, +0.1021, +0.0087, +0.1419, +0.0887, +0.1315, +0.1993, +0.1391, +0.2385, +0.0697, +0.1521, +0.1446, +0.1235, +0.2313, +0.1099, +0.1952, +0.1449, +0.2652, +0.0128, +0.2281, +0.1987, +0.1900, +0.0668, +0.1516, +0.0543, +0.0443, +0.1702, -0.0012, +0.1350, -0.0182, +0.1091, +0.1445, +0.1419, -0.0253, -0.0059, +0.0150, +0.1739, +0.0979, +0.1677, +0.0557, +0.1365, +0.1161, +0.2681, +0.1524, +0.1655, +0.1234, +0.1366, +0.2115, +0.1751, +0.0743, +0.1009, +0.3255, +0.0978, +0.3483, +0.3591, -0.0855, +0.2378, -0.0121, +0.2396, +0.0827, +0.1282, +0.2056, +0.2524, +0.1829, +0.0006, +0.0432, +0.1458, +0.1960, +0.2966, +0.1491, +0.0097, +0.0552, +0.1618, +0.0341, +0.1177, +0.0545, +0.2253, +0.1174, -0.0110, +0.0619, +0.0641, +0.1169, +0.1377, -0.0361, +0.3361, +0.0248, -0.0144, +0.2120, +0.2515, +0.1977, +0.1501, +0.1138, +0.1061, +0.1561, -0.0356, +0.1378, +0.1289, +0.0579, +0.1030, +0.1400, +0.1058, +0.1320, -0.0224, +0.0156, +0.0664, -0.0583, +0.1267, +0.3404, +0.2669, +0.0034]) + +weights_final_w = np.array([ +[ -0.0500, +0.0520, -0.1401, +0.2030, -0.3231, +0.0144, -0.1040, +0.2029, -0.1153, -0.1412, -0.0326, +0.0192, +0.0153, +0.1157, -0.2278, +0.0663, -0.0588], +[ -0.1934, +0.1167, +0.0131, +0.0005, -0.0056, +0.2003, +0.0647, +0.0407, +0.1506, +0.0205, -0.2231, -0.1559, -0.2919, +0.0398, +0.0346, +0.0151, -0.0333], +[ -0.5131, +0.0469, -0.0589, -0.2056, -0.0316, +0.1800, -0.1217, -0.1480, +0.1785, +0.0261, -0.1138, -0.1974, +0.2588, -0.0282, -0.0632, +0.2111, -0.2802], +[ +0.0465, -0.2210, +0.1704, -0.4249, -0.0303, -0.1091, +0.0872, -0.1461, -0.0034, +0.2490, -0.2206, -0.0736, +0.0300, -0.0700, -0.1995, +0.3273, -0.1255], +[ +0.0426, +0.3676, -0.1660, -0.0894, +0.0383, -0.0723, +0.0043, -0.0986, -0.0594, -0.0239, -0.0395, +0.0166, +0.1111, -0.0135, +0.0101, -0.1226, +0.0468], +[ -0.1512, -0.0761, +0.2163, +0.0025, +0.1200, +0.1947, -0.2594, -0.1264, +0.0708, -0.0100, +0.2345, +0.1272, +0.0181, +0.0598, +0.0196, +0.0544, +0.0077], +[ -0.0479, +0.0877, -0.1959, +0.2171, +0.1391, -0.0882, +0.1955, -0.0043, +0.0778, -0.0865, +0.0036, +0.0395, -0.0664, -0.0722, -0.0999, +0.0403, +0.0459], +[ -0.1554, -0.0621, +0.0832, +0.0046, -0.1666, -0.0623, -0.0754, -0.1921, -0.0802, +0.1742, -0.3199, +0.2225, -0.0935, -0.0165, -0.1373, -0.1331, +0.1116], +[ +0.1641, +0.0611, -0.0527, -0.0480, +0.1270, -0.0116, -0.1430, -0.2651, +0.0744, +0.1591, -0.0271, -0.1597, +0.0145, -0.0970, -0.0396, +0.0642, -0.1355], +[ -0.1786, +0.1061, -0.0170, +0.2049, -0.0101, -0.0016, +0.1681, +0.2846, +0.0429, +0.0779, -0.0644, +0.2227, +0.0480, -0.0613, -0.1086, +0.0909, +0.0695], +[ -0.1132, -0.0676, +0.0076, +0.1158, -0.0424, -0.0585, +0.0658, -0.1111, -0.0105, +0.1243, -0.1272, -0.1166, -0.1396, -0.0158, +0.2221, -0.5519, +0.0056], +[ -0.2191, +0.0914, -0.2542, -0.0066, -0.1819, -0.0521, +0.0304, +0.0955, +0.0114, +0.1190, +0.1209, -0.1486, -0.2386, +0.0012, +0.0523, -0.0173, -0.0888], +[ +0.1867, +0.1779, +0.1244, +0.0109, +0.0969, +0.0768, -0.3619, -0.0457, +0.1208, -0.0982, +0.0409, -0.1705, -0.0508, -0.0835, +0.1529, -0.0571, -0.1034], +[ -0.1137, -0.2575, +0.0101, -0.4039, -0.1796, -0.2636, +0.1259, +0.0388, +0.1942, -0.0287, +0.2606, -0.0823, -0.0069, +0.1304, +0.4204, +0.0883, -0.1248], +[ -0.2387, +0.1436, -0.1701, +0.2502, +0.0021, +0.0202, +0.1469, -0.1469, +0.1600, -0.0124, +0.0876, -0.1535, +0.4238, -0.0717, +0.3870, +0.4299, -0.1141], +[ +0.2502, +0.1630, +0.0301, -0.1261, +0.1486, -0.1277, -0.0184, -0.1144, -0.0368, +0.1179, -0.1200, -0.1448, -0.1146, -0.0880, +0.3904, -0.0074, +0.1483], +[ -0.2122, +0.1499, -0.0626, -0.0072, +0.0174, -0.1730, +0.0620, -0.1867, +0.0511, -0.0842, -0.2439, -0.0841, -0.0805, +0.1795, -0.0691, -0.2461, +0.1777], +[ +0.0065, +0.2415, +0.1155, -0.2030, +0.0613, +0.2977, -0.0146, +0.0042, +0.1047, -0.1538, -0.0089, -0.1895, +0.0561, -0.0879, +0.0143, -0.0559, -0.0890], +[ -0.1464, -0.0184, +0.1731, +0.0010, +0.0459, -0.0302, -0.0838, -0.1482, +0.1891, -0.0848, +0.0385, -0.0858, -0.3817, -0.0695, -0.2484, -0.3315, -0.0779], +[ -0.1571, -0.1686, -0.0109, -0.0342, -0.0847, -0.1510, -0.0678, -0.0963, +0.0833, +0.1933, +0.3233, -0.0954, +0.0170, -0.1014, +0.0558, -0.1237, -0.0068], +[ +0.1069, -0.2466, -0.1261, +0.2319, -0.0456, +0.0744, -0.0796, +0.0739, +0.1059, +0.0330, -0.1405, +0.1594, -0.2326, -0.1312, +0.1011, +0.0532, -0.0480], +[ -0.3261, -0.3612, +0.4744, +0.1766, -0.2084, +0.0832, +0.0138, -0.1178, -0.1055, -0.0774, +0.1118, +0.1659, +0.2805, -0.2790, -0.4162, -0.1110, -0.0465], +[ -0.0609, +0.0663, -0.1358, +0.2174, +0.1067, +0.0559, -0.0523, -0.0194, +0.2576, +0.0302, -0.0394, -0.0745, -0.0917, -0.0268, -0.0366, +0.0958, +0.0342], +[ +0.0260, -0.1912, -0.2794, -0.2077, +0.0565, +0.0009, -0.0691, -0.0750, -0.0582, +0.0129, -0.0717, -0.1249, -0.0442, +0.0543, -0.0696, +0.0801, +0.0080], +[ +0.0147, +0.1115, -0.2710, +0.0096, -0.1212, +0.1514, -0.0183, -0.0714, +0.2782, -0.1610, +0.1000, +0.0025, +0.0322, +0.0412, -0.1214, +0.1739, -0.0345], +[ -0.1663, -0.0534, -0.0607, +0.2529, +0.0435, +0.0024, -0.1550, +0.2743, +0.0510, +0.0220, +0.1415, -0.1839, +0.1584, +0.0849, +0.0793, +0.3077, -0.0912], +[ +0.1709, +0.0804, +0.0473, +0.1288, +0.0029, +0.1389, +0.2928, +0.0363, -0.0596, -0.0483, +0.3041, -0.0522, -0.0675, +0.0609, -0.0559, -0.0244, +0.0003], +[ -0.1667, +0.1194, +0.1725, +0.0877, -0.1228, -0.0480, -0.0474, -0.0550, +0.1146, +0.0949, +0.0477, -0.4471, -0.3624, -0.0280, -0.0140, -0.1358, -0.0709], +[ +0.0310, -0.0247, +0.1299, -0.0083, +0.1510, -0.0586, -0.0757, +0.0686, +0.2878, -0.0194, -0.0216, +0.0047, +0.1680, +0.0598, -0.2225, -0.0494, -0.0765], +[ +0.1092, -0.3239, +0.1943, -0.0899, -0.0506, +0.1235, +0.0486, +0.0174, +0.0141, -0.0921, +0.1887, +0.0339, +0.1610, -0.0140, -0.1033, +0.1223, -0.0155], +[ -0.0277, +0.0191, +0.0459, +0.0300, +0.1183, -0.0972, +0.3191, +0.1737, +0.1869, +0.0644, +0.0507, -0.0121, -0.0506, +0.0448, -0.1096, -0.0081, -0.0789], +[ -0.2677, +0.1532, +0.0895, -0.0466, -0.0054, +0.0569, +0.0022, -0.3044, +0.1862, -0.2223, -0.0157, +0.0559, +0.0186, -0.0800, -0.1146, +0.3398, -0.1068], +[ +0.0242, -0.0935, +0.0429, -0.0115, +0.2126, +0.0859, +0.0020, -0.1650, +0.1600, -0.0348, -0.1426, -0.0212, +0.0662, +0.0819, -0.2960, -0.0660, -0.0242], +[ -0.0361, -0.0494, +0.0313, +0.1553, +0.0623, -0.1620, +0.2842, +0.0104, -0.1632, +0.1637, +0.2602, -0.2550, -0.0172, -0.0868, -0.1758, +0.0689, +0.0731], +[ +0.0089, +0.3266, -0.2115, +0.1473, +0.0423, +0.0773, +0.1420, +0.2675, -0.0000, +0.1361, -0.4133, +0.0742, +0.0148, +0.2438, -0.0297, +0.0726, +0.0325], +[ -0.1394, +0.0096, -0.1679, +0.1894, +0.0730, +0.0572, -0.2028, +0.0843, -0.0058, -0.1014, +0.1447, -0.0080, -0.1056, -0.0686, +0.0299, +0.0535, +0.0238], +[ -0.0404, +0.0493, -0.0139, +0.0949, +0.0198, +0.1132, -0.0484, +0.0609, +0.2326, +0.2329, -0.3538, +0.0420, +0.0020, +0.1391, +0.0121, -0.1743, +0.0309], +[ -0.0571, -0.0159, -0.3700, +0.0511, +0.3797, -0.1085, +0.0214, +0.1002, -0.0533, -0.0098, -0.1695, +0.0261, -0.0258, -0.0383, -0.0943, -0.0375, -0.0874], +[ -0.2690, +0.3889, -0.1825, -0.2502, +0.3067, +0.2693, -0.0415, -0.2989, -0.0810, -0.2701, -0.0876, +0.1370, +0.0814, +0.1991, +0.1026, -0.3468, +0.0540], +[ +0.0901, +0.1083, +0.0109, +0.3720, -0.1897, -0.1353, -0.0002, -0.0120, -0.1493, -0.0239, +0.0070, -0.2525, -0.2358, -0.0631, +0.1656, +0.1604, +0.0500], +[ +0.3311, -0.0797, +0.0255, -0.1776, +0.0926, +0.1546, +0.0071, -0.0737, -0.2305, +0.0552, -0.0238, +0.2687, -0.3520, -0.1743, +0.0424, -0.0234, -0.1280], +[ -0.1053, -0.0652, +0.2033, +0.1009, +0.1072, +0.2026, -0.0444, +0.0543, -0.0881, -0.4387, +0.0020, -0.0239, -0.2309, -0.0730, +0.1919, -0.0019, -0.1239], +[ +0.1863, -0.1390, -0.0368, +0.1796, -0.1910, +0.0543, -0.3425, +0.1458, +0.0116, +0.1308, +0.1313, +0.1098, -0.0819, +0.0199, -0.1105, -0.0217, +0.0668], +[ -0.1977, -0.2812, -0.0967, +0.2061, -0.0280, -0.1759, +0.0672, +0.1179, +0.0423, +0.1185, +0.0052, +0.1873, -0.0213, +0.0987, +0.1273, -0.0343, +0.0754], +[ -0.1596, +0.0493, +0.2797, +0.0854, +0.1617, +0.0723, +0.1626, +0.1054, -0.0487, +0.0097, -0.0439, -0.1232, +0.1922, -0.0277, +0.0119, +0.1730, +0.1012], +[ +0.0703, +0.1970, +0.0967, +0.0519, -0.0242, -0.0490, +0.1296, +0.1286, +0.2053, -0.0337, +0.0747, +0.2130, -0.0591, +0.0786, +0.1569, -0.1778, +0.0426], +[ +0.1670, -0.0426, +0.0293, +0.0224, +0.0965, +0.2378, +0.1234, -0.0270, +0.0717, +0.0657, +0.1491, +0.1309, -0.0047, +0.1014, -0.0419, -0.3916, +0.1701], +[ -0.1341, -0.0447, -0.0123, -0.0296, -0.5153, -0.0471, +0.0095, -0.0265, -0.0487, -0.1160, -0.1601, +0.2510, +0.2775, -0.0465, +0.1130, -0.0542, +0.1162], +[ -0.0102, -0.1284, +0.1419, -0.0311, +0.0061, -0.1030, +0.0771, -0.1695, -0.0464, +0.1868, -0.2451, -0.2036, -0.0334, +0.0034, +0.0619, +0.1707, -0.0432], +[ +0.1202, +0.0824, -0.0883, -0.0337, +0.2071, -0.3426, -0.1190, +0.1154, +0.0478, +0.3089, +0.2514, -0.0086, -0.0398, +0.0412, +0.0666, +0.0843, -0.0302], +[ -0.0201, +0.0295, -0.0884, -0.0905, +0.1772, +0.0316, +0.0128, -0.5102, +0.2854, +0.0869, -0.0243, -0.2130, +0.1952, +0.1135, -0.1489, -0.1426, -0.1163], +[ +0.0725, +0.2234, -0.1540, -0.2566, -0.0715, +0.1212, -0.1259, -0.0770, +0.0403, +0.0321, +0.1270, +0.3933, -0.2743, +0.1460, +0.0257, +0.0532, +0.0935], +[ +0.0539, -0.0206, +0.1057, -0.0783, +0.0933, +0.1618, -0.0672, -0.0393, +0.0656, +0.0044, +0.2199, -0.1817, -0.0652, -0.1396, +0.3507, -0.1025, +0.0075], +[ -0.2804, -0.1096, +0.0919, -0.1097, -0.0635, +0.0266, +0.1040, -0.2046, +0.1255, +0.1206, -0.0410, -0.0632, -0.0094, -0.0336, +0.0988, +0.2421, +0.0582], +[ +0.0741, -0.0379, -0.1480, -0.0401, -0.0145, +0.0121, -0.0270, +0.1328, +0.0768, +0.1763, +0.0653, +0.2162, +0.1625, -0.0759, -0.2528, -0.0400, -0.0609], +[ -0.0612, -0.1351, +0.1460, +0.0407, -0.1009, +0.1307, -0.2049, -0.2043, +0.1486, +0.0571, +0.0194, +0.1111, +0.0900, -0.1686, +0.2435, +0.0025, -0.0025], +[ +0.1537, -0.0991, +0.0023, +0.0866, +0.1233, +0.0192, +0.0099, +0.0112, -0.1178, -0.0302, +0.1665, -0.1938, +0.0973, +0.0237, -0.0594, -0.2662, +0.0543], +[ -0.0866, +0.0235, -0.4950, -0.2234, -0.3568, +0.1504, -0.3272, -0.2139, -0.0608, -0.2261, +0.3710, -0.0093, +0.2967, +0.4035, -0.1705, -0.1567, -0.1671], +[ +0.2094, +0.2050, -0.2027, -0.3216, -0.0898, -0.3793, +0.1276, -0.2629, -0.2257, -0.0036, -0.1710, +0.0087, -0.1903, +0.0476, -0.4685, -0.0350, +0.0185], +[ +0.0761, -0.1583, -0.2297, -0.1768, -0.0385, -0.0560, -0.2828, +0.1289, +0.2082, -0.0280, +0.2047, -0.0699, -0.0760, +0.0177, +0.0795, -0.2414, -0.0863], +[ +0.0051, -0.0159, +0.3049, -0.1012, +0.2151, +0.0903, -0.0857, +0.2459, -0.0574, -0.1813, -0.0363, +0.2777, +0.1517, -0.2497, -0.1926, -0.2714, -0.1205], +[ -0.0313, -0.1017, +0.1731, +0.1876, +0.1274, -0.0242, -0.0131, +0.2359, -0.0604, -0.0337, +0.2364, -0.1355, -0.0705, +0.3669, -0.1421, +0.1863, +0.0562], +[ -0.0262, -0.0691, +0.0511, +0.2557, -0.0593, +0.0052, +0.2013, +0.2306, -0.1830, +0.1198, +0.1838, +0.5372, +0.1109, +0.0263, -0.1590, +0.1215, -0.0652], +[ -0.0851, +0.2184, +0.0468, +0.0364, +0.0370, -0.0666, +0.0343, -0.1203, +0.0828, +0.1937, -0.1424, +0.0270, +0.4887, +0.0595, +0.3850, -0.1007, -0.1618], +[ -0.0647, -0.0491, -0.1482, -0.0725, +0.1533, -0.0067, -0.0163, -0.2621, +0.4495, -0.0230, -0.1823, -0.2028, +0.0139, +0.0228, -0.0210, +0.1549, +0.0272], +[ +0.0583, +0.1002, -0.2269, -0.1197, +0.2894, -0.0435, +0.1308, -0.0852, +0.3371, +0.1352, -0.0481, +0.4537, +0.2147, -0.0701, +0.1391, -0.0899, -0.0713], +[ -0.1840, -0.3356, -0.0079, +0.1192, -0.3029, -0.0518, -0.2026, +0.3101, -0.2164, -0.1004, +0.0849, -0.2748, +0.3760, -0.0042, +0.3993, +0.4109, -0.0759], +[ -0.0964, -0.1880, -0.0638, -0.0073, +0.0270, -0.1475, +0.1412, +0.0414, -0.1057, -0.1715, +0.1548, -0.0673, +0.1397, -0.0826, +0.1504, -0.0542, +0.0261], +[ -0.0436, +0.0176, -0.2640, -0.0555, +0.0581, +0.0930, +0.1484, +0.1862, +0.0059, -0.0723, +0.0217, -0.0897, +0.1173, +0.0441, +0.2001, +0.2820, +0.0056], +[ +0.0250, -0.0386, -0.0329, +0.0484, +0.0093, +0.0156, +0.0280, -0.0594, -0.1825, +0.1148, -0.1595, -0.0615, -0.0671, +0.1472, +0.1153, +0.0946, -0.1374], +[ +0.1758, +0.1463, -0.0741, -0.2125, +0.1636, -0.0032, -0.0480, +0.2846, -0.1297, +0.0617, -0.0237, +0.0512, +0.1992, +0.1058, +0.3484, +0.0708, +0.1671], +[ +0.2952, -0.0091, -0.0190, -0.0003, +0.1044, -0.0487, +0.3075, +0.0950, -0.1509, +0.1373, -0.2803, +0.1419, +0.2875, +0.0242, +0.0065, -0.0936, +0.0162], +[ +0.1659, +0.1577, +0.1013, -0.1512, +0.1424, +0.2053, +0.1997, +0.1179, -0.1882, -0.2216, -0.2507, +0.1068, -0.1726, +0.0142, +0.2472, +0.3217, -0.0999], +[ +0.0972, +0.1773, +0.0982, +0.0548, -0.0945, +0.1250, +0.0022, -0.0743, -0.3627, -0.0801, +0.1161, +0.2369, +0.1528, -0.0622, -0.0397, -0.1468, -0.1702], +[ +0.1908, +0.0306, +0.0756, -0.0095, -0.1140, +0.2149, -0.2536, +0.0192, -0.1244, -0.0219, -0.0060, +0.0286, +0.1742, +0.0430, +0.0622, +0.0760, +0.0211], +[ -0.2068, -0.0279, +0.1215, +0.1463, -0.0032, -0.0667, -0.0069, +0.0322, -0.1577, +0.0497, +0.0793, +0.0504, +0.2050, +0.0459, +0.0586, -0.0467, +0.0756], +[ -0.0050, -0.1217, +0.1720, -0.0497, +0.2169, +0.0608, -0.0893, +0.2269, -0.1392, +0.0636, -0.0461, +0.0243, -0.3206, +0.1114, -0.2682, -0.1793, +0.0532], +[ -0.0919, -0.1976, +0.0794, +0.0269, +0.1282, -0.0851, +0.0248, +0.1133, +0.0308, -0.1318, -0.2297, -0.0558, -0.2465, -0.0534, -0.0406, +0.1037, +0.2015], +[ -0.1945, +0.1965, +0.0724, -0.1509, +0.1594, -0.2093, +0.0466, -0.1090, +0.0338, -0.0269, -0.0978, +0.2136, -0.3288, -0.0004, -0.0335, +0.0991, -0.1539], +[ +0.3684, +0.0830, +0.1588, +0.3764, +0.1412, -0.1288, -0.1443, +0.0388, +0.0819, +0.1563, -0.0173, +0.0067, +0.2200, +0.1175, +0.0211, +0.0056, +0.0099], +[ +0.1937, -0.1604, -0.2249, -0.1253, -0.2346, -0.6112, -0.3301, +0.0008, +0.0128, +0.2471, +0.3018, -0.1123, -0.0536, -0.0060, -0.2138, -0.0642, -0.0224], +[ -0.0750, +0.0249, +0.2450, -0.1484, -0.0077, -0.1160, +0.1432, +0.0341, -0.0626, -0.0306, +0.0240, -0.1328, +0.2852, +0.1698, -0.1014, -0.1040, -0.0586], +[ -0.1895, +0.0789, -0.1464, +0.1532, +0.0039, -0.1385, +0.1615, +0.1964, +0.2573, +0.1177, +0.0378, +0.2443, +0.3998, -0.0943, -0.4698, +0.0102, +0.2408], +[ -0.0270, -0.0811, -0.0578, +0.2961, +0.0481, +0.0643, -0.0719, +0.0192, +0.0965, -0.1667, +0.0554, -0.0081, -0.0330, +0.1145, +0.1502, -0.2212, -0.0304], +[ +0.0547, -0.0325, +0.0254, -0.0844, +0.4001, -0.0142, +0.0167, -0.0836, +0.0950, -0.1405, +0.0599, +0.1493, +0.0871, +0.1385, -0.0614, -0.0024, -0.0119], +[ -0.1367, +0.1318, -0.1068, +0.0860, -0.3123, +0.1001, +0.3291, -0.2463, -0.0354, -0.1765, +0.1861, +0.0849, +0.2081, +0.1625, -0.1385, -0.0860, -0.0052], +[ -0.0067, +0.2718, -0.0711, +0.0202, +0.0372, -0.1661, +0.0658, +0.0383, -0.1041, -0.1056, +0.2210, +0.0247, -0.0011, -0.1070, -0.0103, +0.2565, -0.0143], +[ -0.0009, +0.2050, +0.2110, -0.1294, -0.0535, +0.0716, -0.0756, +0.1513, -0.0375, -0.0890, +0.1466, +0.2619, -0.0011, -0.1757, +0.1141, +0.0407, -0.0847], +[ -0.0193, -0.1029, +0.1858, +0.0139, +0.2608, -0.0146, +0.0154, +0.0489, -0.1093, +0.0104, -0.2219, +0.0648, -0.0656, -0.0877, +0.0203, -0.0899, -0.0903], +[ -0.0886, +0.1405, -0.3229, +0.1365, -0.0121, +0.0062, -0.0392, -0.0051, +0.1538, +0.2586, -0.0580, +0.1502, -0.0022, -0.0271, -0.0936, -0.4547, +0.0754], +[ +0.3475, +0.0164, -0.2164, +0.0795, -0.0293, +0.1575, +0.0395, -0.4194, +0.0051, -0.0399, +0.1034, +0.3149, -0.0858, -0.1606, -0.0197, -0.0434, -0.0950], +[ +0.1236, -0.0872, -0.2009, +0.3143, +0.1047, +0.0123, -0.1373, -0.0199, +0.0415, -0.0361, +0.4936, +0.1017, +0.0232, -0.2103, -0.0957, -0.1162, +0.0018], +[ -0.0303, +0.2271, +0.2671, -0.1139, +0.0505, +0.0459, +0.0181, -0.0978, +0.0442, +0.0428, -0.0411, +0.1537, -0.2310, -0.0133, +0.0393, +0.2811, +0.0302], +[ +0.0180, -0.2184, -0.0850, -0.1738, -0.1618, +0.0298, -0.0198, +0.3145, -0.1872, -0.0837, -0.0753, -0.1052, -0.0610, -0.1089, -0.0288, +0.0058, -0.0733], +[ +0.0005, +0.1507, +0.1555, +0.0516, -0.1457, -0.1738, -0.0570, +0.0876, +0.2975, +0.1416, +0.0454, -0.3029, +0.0148, -0.2664, +0.0913, +0.0374, +0.1604], +[ +0.0099, +0.1211, +0.3735, +0.2346, +0.0826, -0.0476, -0.0548, -0.0957, +0.0246, -0.0414, +0.0233, -0.0779, +0.0275, -0.1103, +0.1439, -0.1177, +0.0950], +[ +0.0991, -0.0663, -0.0226, -0.2599, -0.2676, -0.2060, -0.0898, +0.0218, -0.0629, +0.3991, -0.0857, -0.0919, -0.0442, +0.0097, -0.0634, -0.1714, +0.0120], +[ -0.0083, -0.2737, -0.0861, -0.1251, +0.0406, +0.0368, -0.1133, +0.1224, -0.1233, +0.0078, +0.1233, +0.0664, -0.2030, +0.0159, -0.4872, +0.0998, -0.1442], +[ -0.0557, +0.0044, +0.0650, -0.3940, +0.0112, +0.1438, +0.0244, -0.0566, -0.1197, +0.0153, -0.0472, -0.1162, -0.1096, -0.0067, +0.0748, -0.1948, +0.0299], +[ -0.1223, -0.1968, +0.0289, -0.1279, +0.2201, -0.2378, +0.0276, +0.2640, +0.0479, +0.0962, -0.0191, -0.2616, -0.1661, -0.1301, +0.1400, +0.0645, -0.1336], +[ +0.0914, +0.0268, +0.0498, +0.2482, -0.1405, -0.1721, +0.0066, +0.0427, +0.1062, -0.0699, +0.0238, +0.1893, +0.0670, -0.0401, -0.0636, +0.0611, -0.0596], +[ -0.1982, -0.2318, +0.1808, +0.0593, +0.1440, +0.3635, +0.0442, -0.1524, +0.0650, +0.0216, -0.0772, -0.1202, +0.2329, +0.0204, -0.0736, +0.2445, +0.0261], +[ -0.3588, +0.0298, -0.0034, -0.0458, +0.2777, +0.2485, +0.3801, -0.0695, -0.1679, -0.5362, -0.1887, +0.0389, +0.2512, -0.0413, +0.0365, -0.0915, +0.0519], +[ -0.0069, +0.1737, +0.1234, +0.0086, +0.0216, +0.1098, -0.0172, +0.0209, -0.1796, +0.1730, -0.0681, +0.1485, +0.1096, -0.0660, -0.0895, +0.1351, -0.0554], +[ -0.2458, +0.0149, +0.0155, -0.0099, +0.0206, +0.3378, +0.2285, +0.0385, -0.0532, +0.2575, -0.0545, +0.0151, +0.0540, -0.0833, +0.0946, +0.0446, -0.0862], +[ -0.1136, +0.1565, +0.1244, -0.0161, -0.0614, +0.1204, -0.0771, +0.2362, +0.0355, +0.2028, -0.0155, -0.0652, -0.2262, -0.0749, -0.1730, -0.0957, +0.2760], +[ +0.0634, -0.0011, -0.1770, -0.1426, +0.1599, +0.0892, -0.0261, +0.0790, +0.0812, +0.4281, +0.0143, +0.1554, +0.3770, -0.0206, -0.1564, +0.0818, -0.0514], +[ +0.0102, -0.1232, -0.2659, -0.1866, +0.0090, +0.2672, -0.0540, +0.1100, -0.2942, -0.2454, -0.0566, -0.2273, +0.1938, +0.0229, -0.1563, -0.0024, -0.0975], +[ -0.0645, -0.0004, +0.1548, +0.2129, -0.0429, -0.0628, +0.0306, +0.1769, -0.0491, -0.0285, -0.0621, -0.4293, +0.1821, +0.1154, -0.0027, +0.0264, -0.0107], +[ +0.3158, -0.0591, +0.0461, +0.0682, +0.0015, -0.0667, +0.1125, +0.0242, -0.0998, +0.0405, -0.1104, +0.0892, -0.1950, -0.0443, -0.1472, +0.1181, -0.0764], +[ -0.0697, -0.0853, +0.1715, +0.0623, +0.0484, -0.0205, -0.2043, -0.0463, -0.1115, +0.0058, -0.0556, -0.0808, +0.0454, -0.0959, +0.1666, +0.3646, +0.2677], +[ -0.1574, -0.2403, -0.1285, -0.0211, -0.2054, -0.0027, +0.1099, -0.1112, -0.2730, -0.1247, +0.1788, -0.1336, -0.1028, +0.1764, +0.2594, -0.0231, +0.1732], +[ +0.2124, +0.1167, -0.0895, -0.0324, +0.2043, +0.0680, -0.0162, -0.0062, -0.0897, +0.0854, +0.0748, +0.3693, -0.0414, +0.0972, +0.0094, +0.0354, +0.1289], +[ +0.2460, -0.1170, -0.1432, -0.0896, +0.0093, +0.0557, -0.0195, +0.0088, +0.0839, +0.0375, +0.1659, -0.0451, -0.1184, -0.2017, +0.0481, -0.1517, +0.1372], +[ -0.0602, +0.3316, -0.0452, -0.0173, +0.0148, +0.0459, +0.0167, -0.0842, +0.0428, +0.2873, -0.0527, +0.0752, -0.0441, +0.0583, +0.0443, +0.1112, -0.0272], +[ +0.0051, -0.0555, +0.1717, +0.1398, -0.1614, -0.0300, -0.1820, -0.0658, +0.0742, -0.0847, -0.1139, +0.0728, +0.1420, +0.2099, -0.2902, +0.1338, +0.1417], +[ -0.0094, -0.0020, -0.1126, -0.2572, -0.2766, +0.0049, +0.1369, +0.0054, -0.1328, +0.0361, +0.1361, +0.3090, +0.0047, +0.1695, +0.0896, -0.1901, -0.1786], +[ +0.1339, -0.0886, +0.0770, +0.0189, -0.1017, -0.0070, +0.1551, -0.0489, +0.0966, -0.0131, -0.0856, -0.1183, +0.1585, -0.0139, +0.1861, -0.1487, +0.0005], +[ +0.2260, +0.0098, -0.3146, -0.0441, +0.1948, +0.0520, +0.0863, -0.0021, -0.1183, +0.0328, +0.0124, +0.0056, +0.0944, -0.0319, +0.0679, +0.0774, +0.0409], +[ -0.0237, -0.3453, -0.1483, -0.2272, +0.1675, -0.1041, -0.0126, +0.3376, -0.0138, +0.1525, -0.0322, +0.2070, -0.2725, -0.0600, -0.1466, -0.2563, +0.0551], +[ +0.1966, -0.0838, -0.0537, +0.0933, -0.0060, -0.0721, -0.0399, -0.1153, -0.1987, -0.0413, +0.2588, +0.0648, -0.0473, +0.1387, +0.6180, +0.0229, -0.2610], +[ -0.1566, -0.0589, -0.0600, +0.0966, +0.0738, -0.0744, -0.0010, +0.0253, +0.2387, -0.0539, +0.0625, +0.1197, +0.0486, +0.0605, +0.2775, -0.0594, -0.0759], +[ -0.4288, -0.0693, +0.0067, +0.3567, +0.0813, -0.1369, -0.3431, +0.0559, -0.0320, +0.0158, -0.1947, -0.3235, +0.1294, -0.2915, -0.2301, -0.1980, +0.0892], +[ -0.1741, +0.0445, -0.0525, +0.0650, -0.0474, +0.1845, -0.0831, -0.0693, -0.0071, -0.0772, +0.0915, -0.0571, -0.1035, -0.0038, -0.1508, -0.2323, -0.1788], +[ +0.1543, -0.0994, +0.0674, +0.1953, +0.1254, -0.1263, +0.0854, -0.1048, +0.0106, -0.0203, +0.1019, -0.0881, +0.2788, -0.2237, -0.0723, +0.0393, -0.0969], +[ +0.0560, +0.2425, +0.1031, +0.1155, -0.1187, -0.1155, -0.0789, +0.2113, +0.0024, +0.2648, -0.1811, -0.0259, -0.1363, -0.2149, -0.2199, -0.1105, -0.1616], +[ -0.0967, +0.0007, -0.2230, +0.1197, +0.1085, +0.0267, -0.0633, +0.1611, -0.0078, +0.0088, -0.0879, -0.1362, +0.1364, -0.1784, +0.1725, -0.0491, -0.0177], +[ +0.0724, -0.0574, +0.0696, -0.0095, -0.1601, +0.1243, +0.2373, -0.1058, +0.1610, -0.1874, -0.0689, +0.1806, -0.2117, -0.0855, -0.0657, +0.0366, -0.0797] +]) + +weights_final_b = np.array([ -0.0356, +0.0776, -0.0344, +0.1375, +0.1048, +0.3648, +0.3240, +0.1319, +0.1161, +0.3373, +0.3193, +0.0120, +0.0253, -0.2434, -0.1291, +0.1042, -0.2448]) + +if __name__=="__main__": + demo_run() diff --git a/examples/pybullet/gym/enjoy_TF_InvertedDoublePendulumBulletEnv_v0_2017may.py b/examples/pybullet/gym/enjoy_TF_InvertedDoublePendulumBulletEnv_v0_2017may.py new file mode 100644 index 000000000..120fbb2a2 --- /dev/null +++ b/examples/pybullet/gym/enjoy_TF_InvertedDoublePendulumBulletEnv_v0_2017may.py @@ -0,0 +1,176 @@ +import gym +import numpy as np +import pybullet as p +import envs +import time + +def relu(x): + return np.maximum(x, 0) + +class SmallReactivePolicy: + "Simple multi-layer perceptron policy, no internal state" + def __init__(self, observation_space, action_space): + assert weights_dense1_w.shape == (observation_space.shape[0], 64.0) + assert weights_dense2_w.shape == (64.0, 32.0) + assert weights_final_w.shape == (32.0, action_space.shape[0]) + + def act(self, ob): + x = ob + x = relu(np.dot(x, weights_dense1_w) + weights_dense1_b) + x = relu(np.dot(x, weights_dense2_w) + weights_dense2_b) + x = np.dot(x, weights_final_w) + weights_final_b + return x + +def demo_run(): + env = gym.make("InvertedDoublePendulumBulletEnv-v0") + + cid = p.connect(p.GUI) + + pi = SmallReactivePolicy(env.observation_space, env.action_space) + + while 1: + frame = 0 + score = 0 + restart_delay = 0 + obs = env.reset() + + while 1: + time.sleep(0.05) + a = pi.act(obs) + obs, r, done, _ = env.step(a) + score += r + frame += 1 + still_open = env.render("human") + if still_open==False: + return + if not done: continue + if restart_delay==0: + print("score=%0.2f in %i frames" % (score, frame)) + restart_delay = 60*2 # 2 sec at 60 fps + else: + restart_delay -= 1 + if restart_delay > 0: continue + break + +weights_dense1_w = np.array([ +[ -0.5857, +0.1810, +0.2839, +0.1278, -0.4302, -0.3152, +0.5916, -0.0635, +0.6259, +0.2873, -0.0572, -0.3538, -0.8121, +0.2707, +0.1656, -0.2103, -0.1614, -0.2789, -0.5856, -0.4733, +0.1838, +0.1063, +0.7629, +0.0873, +0.1480, +0.1768, +0.6522, +0.1158, -0.0816, +0.6542, -0.8870, +0.1775, +0.1532, +0.2268, -0.0313, -0.0470, +0.5328, -0.0570, +0.4820, -0.3772, -0.7581, +0.2835, -0.3566, +0.9371, -0.0441, -0.1797, -0.2859, -0.0238, +0.0261, -0.0296, -0.1406, +0.2869, +0.1279, +0.6653, +0.5643, -0.3136, +0.7751, +0.2341, +0.1903, +0.8283, -0.0697, +0.1276, -0.0250, -0.0053], +[ +0.3741, +0.4844, -0.0638, -0.3205, +0.3137, +0.9636, +0.5329, +0.6882, +0.2983, -0.6675, -0.6372, +0.2065, -0.2645, -0.4789, +0.2326, -0.0691, -0.5905, -0.3354, +0.3428, +0.4253, +0.9111, -0.4751, -0.2124, +0.3920, +0.2897, -1.1101, +0.1894, -0.4025, -0.1125, -0.0627, +0.2347, -0.8787, +0.1019, +0.9128, +0.2544, -0.3933, +0.6485, -0.1936, -0.2402, +0.5012, -0.0918, +0.3160, -0.7860, +0.3439, -0.4268, -0.1788, -0.3930, +0.5128, +0.2338, +0.2571, +0.1343, +0.9850, -0.7074, +0.3532, +0.3048, -0.4542, +0.5539, -0.4409, -0.2003, -0.4837, -0.3554, -0.4447, -0.0817, -0.8497], +[ +0.0825, +0.5847, +0.4837, +0.5144, +0.4770, +0.0199, +0.4275, -0.4530, +0.8499, -0.2840, +0.3817, -0.5098, -0.2155, -0.1475, +0.1145, -0.1871, -0.0526, +0.3583, -0.3537, -0.7111, -0.6116, +0.3406, -0.6360, +0.7786, +0.6628, -0.0493, +0.3505, -0.0376, -0.6556, +1.0748, -0.5329, +0.6477, -0.7117, +0.3723, +0.6006, +0.0171, +0.0012, +0.4910, -0.5651, -0.6868, +0.2403, +0.0254, -0.4416, +0.7534, -0.0138, -1.1298, +0.5447, +0.0974, +0.1988, -0.2161, -0.3126, -0.5731, -0.1278, +0.2995, -0.1200, -0.7917, +0.5326, +0.4562, -0.0144, +0.5717, -0.4065, +0.1494, +0.7100, +0.2461], +[ -0.2861, +0.4314, -0.2982, -0.1401, -0.1033, +0.5287, -0.6620, -0.3975, +0.0038, +0.1991, -0.7079, -0.9000, +0.1659, +0.3623, -0.0752, -0.1907, -0.2335, -0.5143, +0.2324, -0.0487, +0.1583, -0.5989, +0.5957, +0.2150, -0.0335, +0.2154, +0.3279, -0.7976, +0.5320, -0.4438, +0.2170, -0.3841, -0.0039, -0.0847, -0.0028, -0.4278, -0.2393, -0.9239, +0.2880, -0.1437, -0.0941, -0.0796, -0.3906, -0.3224, +0.1038, -0.1929, -0.2713, -0.4157, -0.2178, +0.5729, -0.2065, +0.0059, +0.3879, +0.0590, +0.1759, +0.0677, -0.0170, -0.2252, +0.3301, -0.0599, +0.3791, -0.1455, +0.2200, -0.0499], +[ -0.4403, +0.7182, +0.7941, +0.1469, +1.5777, +0.3426, +0.0923, +0.2160, +1.1492, -0.5206, -0.2659, -0.1504, +0.2739, -1.3939, +0.8992, -1.1433, -0.3828, -0.2497, -0.2172, +0.2318, -0.3605, +0.6413, -1.9095, +1.4785, -0.1274, -0.7208, -0.0802, -0.8779, -1.6260, +0.9151, +0.8289, -0.0902, -0.3551, +0.6198, +1.7488, +0.0739, -1.2022, -0.3536, -1.5187, +0.1839, +1.4258, +0.4217, +0.1503, -0.0460, +0.2327, -0.4139, -0.3668, +0.2997, +0.6856, +0.6917, -0.3856, -0.3620, +0.1578, -0.8349, -1.0796, -0.0319, -1.1966, -0.8122, +0.5053, -0.5033, -0.9207, -0.1193, -0.7625, +0.1379], +[ -0.0321, -0.3206, -0.4516, +0.3420, +1.0964, +0.0311, +0.4654, -0.2367, +0.3347, -0.2798, -0.8169, -0.1555, +0.9397, -0.5597, +0.7113, -0.3642, -0.2840, -0.1323, -0.1000, +0.2283, +0.3612, -0.4784, +0.0504, +0.5310, -0.0887, +0.2926, +0.5069, -0.5645, -0.0976, -0.2594, +0.4425, +0.9223, -0.5637, -0.2336, -0.1316, -0.6564, -0.2780, -0.2409, -0.1637, +0.4506, +0.7018, -0.1299, +0.7172, +0.1207, +0.4375, +0.3836, +0.2781, -0.7792, -0.5317, +0.4510, +0.2423, -0.0588, -0.4254, -0.6381, -0.8205, +0.6417, +0.1904, -0.2618, +0.5900, -0.3899, -0.7851, -0.4769, -0.3688, -0.3510], +[ -0.8366, -0.3157, -0.1130, +0.2005, +0.3713, -0.4351, -0.1278, -0.5689, +0.3229, -0.5981, -0.4917, -0.4160, -0.5504, +0.2225, -0.1581, -0.6457, +0.1001, -1.0635, +0.2368, +0.2494, -0.4054, -0.1699, -0.1316, +0.2614, +0.3016, +0.4222, -0.1548, -0.0766, -0.5226, -0.3576, -0.2433, -0.5495, +0.0056, +0.0193, +0.2353, +0.3986, +0.3580, -0.7886, +0.3928, +0.1831, +0.4319, +0.2276, -0.3062, +0.0413, -0.4288, +0.1365, +0.3176, +0.3564, +0.5668, -0.4401, -0.9576, -0.1435, +0.0304, -0.5575, +0.0412, -0.1096, +0.2207, +0.1227, -0.0051, +0.5808, -0.1331, +0.1368, +0.4170, -0.8095], +[ -0.6368, -1.3221, -0.4492, -1.5414, +0.4004, -2.8780, -0.1748, -0.8166, +1.7066, +1.0714, -0.4755, +0.3020, +0.0422, +0.3466, +0.4472, -0.6209, -3.3768, -0.0806, +1.3624, -2.4155, +1.0886, +0.3412, +0.0891, +1.6821, -0.5361, +0.3952, +1.5120, +0.3910, +1.9500, -0.9065, -1.3452, +0.0904, -0.0389, +0.2817, -1.8375, +0.8131, -1.5287, +0.3115, +1.4069, -0.3424, +1.6101, +2.6775, +0.5516, +1.6500, -0.4138, -0.0170, +1.0008, -0.7865, +0.0551, +2.2068, -0.0108, +0.3207, -1.1884, +0.3792, -0.6435, +0.2858, -0.6881, +0.1554, -1.6926, -0.0975, -1.4120, -0.0827, -1.5186, +0.2526], +[ -0.2900, -0.2805, +0.9182, -0.8893, +0.7345, -0.9015, -0.2696, +0.2344, +0.3889, +0.6790, +0.3657, -0.1995, -0.6738, -0.4166, +0.1690, -0.3798, -0.9872, -0.2558, -0.4205, -0.6190, -0.0092, -0.2261, -0.2738, +0.2977, -0.7348, +0.4872, +0.4776, -0.1364, +0.5836, -0.2688, -0.4261, -0.3612, -0.3533, +0.4665, +0.0155, +1.0116, -0.7139, -0.3707, -0.4429, -0.0383, +0.6716, +0.5972, +0.3506, +0.3294, -1.3734, -0.5905, -0.1168, -0.2609, +0.3436, +0.8277, +0.4965, +0.3005, -0.2929, +0.1501, -0.2655, +0.3860, -0.3946, +0.8764, +0.7927, +0.0541, -1.0912, -0.2006, -0.6928, +0.4653] +]) + +weights_dense1_b = np.array([ -0.1146, +0.2897, +0.0137, +0.0822, +0.0367, +0.0951, -0.0657, +0.0653, -0.0729, -0.0501, -0.6380, -0.4403, +0.0660, +0.0693, -0.4353, -0.2766, -0.1258, -0.6947, -0.1616, -0.0453, +0.1498, -0.2340, -0.0764, +0.2020, +0.4812, +0.0908, -0.1883, -0.0753, -0.0373, -0.4172, -0.1071, +0.0861, -0.1550, -0.0648, -0.1473, +0.1507, -0.0121, -0.5468, -0.1529, -0.3341, +0.0239, -0.0463, -0.0044, -0.0541, +0.0384, +0.3028, +0.3378, +0.0965, +0.0740, +0.1948, -0.1655, +0.1558, +0.1367, -0.1514, +0.0540, -0.0015, -0.1256, +0.3402, -0.0273, -0.2239, -0.0073, -0.6246, +0.0755, -0.2002]) + +weights_dense2_w = np.array([ +[ +0.5019, +0.3831, +0.6726, +0.3767, +0.2021, -0.1615, +0.3882, -0.0487, -0.2713, +0.1173, -0.2218, +0.0598, +0.0819, -0.1157, +0.5879, -0.3587, +0.1376, -0.2595, +0.0257, -0.1182, +0.0723, +0.5612, -0.4087, -0.4651, +0.0631, +0.1786, +0.1206, +0.4791, +0.5922, -0.4444, +0.3446, -0.0464], +[ -0.0485, +0.0739, -0.6915, +0.5446, -0.2461, +0.1557, +0.8993, -0.7537, +0.1149, +0.0575, -0.1714, -0.3796, +0.3508, -0.2315, +0.4389, -1.4456, -1.3490, -0.1598, -1.0354, -0.2320, -0.3765, +0.1070, -0.7107, +0.4150, +0.2711, -0.2915, -0.7957, +0.7753, -0.0425, -0.1352, +0.3018, -0.0069], +[ -0.4047, +1.0040, -0.4570, +0.3017, +0.1477, -0.0163, +0.4087, -0.6368, -0.0764, -0.0695, +0.0208, -0.2411, +0.1936, +0.0047, +0.0107, -0.8538, -0.5887, -0.0524, -1.4902, +0.2858, +0.4396, -0.3433, -0.6778, -0.7137, +0.4587, +0.3359, -0.7350, -1.0813, -0.1296, +0.1748, -0.3830, -0.2103], +[ +0.0503, -0.3342, -0.6057, +0.2217, +0.3164, -0.1881, -0.5867, -0.2471, -0.2527, -0.0444, +0.1874, -0.0960, +0.2039, -0.0488, +0.1741, -0.1623, -0.0758, -0.2354, -0.5986, -0.2129, -0.2470, +0.3317, -0.4795, -0.6380, +0.1494, +0.0115, -0.2746, -0.8428, -0.0118, -0.0604, +0.0886, -0.0408], +[ -0.1932, -1.3896, +0.3919, -0.4700, -0.9806, -0.1554, +0.3132, +0.4138, -0.4943, -0.1408, -0.0976, +0.1551, -0.0180, +0.0864, -0.0053, -0.2430, +0.4948, +0.2709, -0.3488, +0.2085, -0.2124, -0.3025, -0.0692, +0.3884, +0.5764, +0.5783, +0.4351, -0.2633, -0.9288, +0.2218, -0.9049, -0.2970], +[ -0.2841, -0.3393, -0.1062, -0.1415, +0.0257, +0.0816, -0.4833, -0.2775, +0.0308, -0.0344, +0.5451, +0.1588, -0.7454, -0.1444, +0.4189, -0.2001, -2.0586, -0.0616, -1.4463, +0.0076, -0.7703, +0.3279, -0.7009, +0.6046, -0.1615, -0.5188, -0.7503, +0.0615, +0.1815, -0.2512, +0.0321, -0.1834], +[ +0.3751, +0.2932, -0.6815, +0.3771, +0.0603, -0.2035, -0.2644, -1.0120, -0.0661, -0.0846, +0.1209, +0.0367, +0.0493, -0.2603, -0.1608, -0.7580, -0.8609, +0.1415, -0.7626, -1.0209, -0.7498, -0.0732, -0.8138, -0.2292, +0.5803, -0.2718, -1.4684, -0.1584, +0.2096, +0.1336, +0.3632, +0.0216], +[ -0.0625, -0.1233, -0.2715, +0.5541, +0.3121, +0.0265, +0.4501, -1.1024, -0.1160, -0.1005, -0.0844, -0.0516, +0.0916, +0.0901, +0.3710, -0.5753, -0.3728, -0.1103, -0.6285, -0.2179, +0.1570, +0.1168, -0.9312, +0.0135, -0.0376, -0.1693, -0.5358, -0.0028, +0.2105, -0.7373, +0.2776, +0.2326], +[ -0.5378, -0.3201, +0.3606, +0.1331, +0.0120, -0.2421, -0.0230, +0.4622, -0.3140, +0.0803, -0.6897, -0.4704, +0.2685, +0.0803, -0.7654, -0.1433, +0.0242, +0.0917, +0.2458, +0.0457, -0.2503, -0.1197, +0.1454, -0.1523, -0.4095, +0.1856, +0.0678, -1.0011, +0.0117, +0.1789, -0.4063, -0.0888], +[ -0.6352, -0.6358, -0.2066, +0.0758, -0.2973, -0.3014, -0.0556, -0.0912, -0.2729, -0.1492, -0.1928, -1.8768, +0.2183, +0.0801, +0.1288, -1.2493, +0.1115, +0.2797, -0.1458, +0.0062, -0.0402, -0.8945, -0.2231, -0.1154, +0.3635, -0.3021, +0.1402, -0.7347, +0.2772, +0.3182, -0.9708, +0.0376], +[ +0.6899, +0.3471, -0.5863, +0.1497, +0.1616, -0.0497, +0.3579, -0.6421, +0.4529, -0.1588, +0.9250, +0.2357, -0.0712, -0.1793, -0.0231, -0.4814, -0.7654, +0.0591, -0.6866, -0.1705, +0.2255, -0.0007, -0.3890, +0.6114, +0.0443, -0.6929, -0.7734, +0.2314, -0.0231, -0.6386, +0.1237, +0.0472], +[ -0.2496, -0.1687, +0.1234, +0.4152, +0.4207, -0.1398, +0.1287, +0.5903, +0.0530, -0.1181, +0.0803, -0.0641, -0.1198, -0.4702, -0.3669, +0.2340, -0.3778, +0.4341, +0.2411, -0.2171, -0.3051, -0.2397, +0.1756, +0.4040, +0.0682, +0.1575, +0.4137, +0.0887, -0.1998, +0.2221, -0.2474, -0.0559], +[ -2.2466, -1.2725, +0.5947, -0.3192, -0.2665, -0.0129, -0.7615, +0.1148, +0.2745, -0.0556, -1.3313, -0.7143, -0.5119, -0.0572, -0.1892, -0.3294, -0.0187, -0.7696, +1.0413, +0.4226, +0.1378, -1.3668, +0.9806, -0.1810, -0.2307, -0.4924, +0.7163, -1.2529, -0.3216, +0.1683, -0.6657, -0.1121], +[ +0.1227, +0.2433, -0.1292, -0.7152, -0.1342, -0.1116, -0.2695, +0.0243, -0.0770, -0.1713, +0.2837, +0.2076, -0.7322, -0.1657, -0.3407, -0.4378, +0.0679, -0.3777, +0.3025, -0.6780, -0.2326, +0.1463, +0.0535, -0.6373, -0.2027, -0.5404, -0.1598, +0.1511, -0.1776, +0.0854, +0.1753, -0.0342], +[ -0.1772, -0.2654, -0.4170, -0.3301, +0.2956, -0.4234, +0.0835, +0.2869, -0.2804, -0.2073, -0.3291, -0.5897, -0.4116, -0.0447, +0.1601, +0.1602, +0.1691, -0.2014, -0.0502, +0.1167, -1.0103, -0.4297, -0.2039, -0.0859, +0.2756, -0.1768, -0.2726, -0.0256, -0.0834, +0.0852, +0.0930, -0.0606], +[ -0.5390, -0.5441, +0.3202, -0.1018, +0.0059, +0.1799, -0.1917, +0.3674, +0.2576, -0.0707, -0.4401, -0.3990, +0.0565, +0.0751, -0.5959, +0.3866, +0.2763, -0.2564, +0.4937, +0.5076, +0.3941, -0.3593, +0.4346, +0.2561, -0.0762, -0.2873, +0.6820, -0.3032, -0.3268, +0.1319, -0.3643, +0.0292], +[ +0.1816, -0.0451, -0.9370, +0.1335, -0.1030, -0.0400, +0.0311, -1.3751, -0.1860, +0.1559, +0.5395, +0.3994, -0.1703, -0.1157, +0.6342, -0.4726, -0.6213, -0.2096, -0.7549, -0.9815, -0.3798, +0.5286, -0.8413, +0.2577, +0.2223, -1.2260, -1.3571, -0.0970, +0.3334, -0.2096, +0.3566, -0.1703], +[ +0.0635, +0.1541, -0.2206, +0.0924, +0.1302, +0.1947, -0.3868, -0.6834, -0.0603, -0.3752, +0.3103, -0.1699, -0.0833, -0.1190, -0.0310, -0.5480, -1.1421, -0.0020, -0.3611, -0.3800, -0.0638, +0.0811, -0.5886, +0.0690, +0.1925, +0.0710, -0.3142, +0.1837, +0.2125, -0.1217, +0.2185, +0.0458], +[ -0.3973, +0.0486, +0.2518, -0.3208, +0.1218, -0.5324, -0.3417, +0.0322, -0.0088, +0.0214, +0.2725, +0.0960, -0.2949, -0.1770, -0.1511, +0.0259, +0.1161, -0.8829, +0.2415, +0.0939, -0.7213, +0.2220, +0.1687, -0.1802, -0.0539, +0.1786, +0.6638, +0.3559, +0.2343, +0.3212, +0.4396, -0.1385], +[ -0.2384, -0.5346, -0.2323, -0.2277, +0.3503, -0.0308, -0.2004, -0.1096, -0.2587, -0.1143, +0.2579, +0.2382, -0.5883, -0.1277, +0.2257, -0.0244, -0.9605, -0.4244, -0.7321, +0.3017, -1.6256, -0.2074, -0.8327, +0.0607, -0.0751, -0.0153, -0.4485, +0.1758, +0.1821, +0.2625, +0.0108, -0.2395], +[ -0.5639, -0.3613, +0.1291, -0.2132, +0.4927, -0.0604, -0.8067, +0.0933, -0.1483, -0.0321, -0.6843, -0.3064, -0.5646, -0.2040, -0.0414, +0.6092, +0.4903, -0.9346, +0.3389, +0.2040, -0.0295, -0.2196, +0.4264, +0.0312, -1.1801, +0.3008, +0.7719, +0.2140, -0.0257, +0.5275, -0.0553, +0.0362], +[ -0.6039, -1.2848, +0.6301, -0.1285, +0.2338, -0.2585, -0.3217, +0.4326, +0.0441, -0.0356, -0.5720, -0.8739, -0.3924, +0.2499, -0.2620, +0.1396, -0.0701, -0.2239, +0.2612, +0.1646, +0.7769, -0.6382, +0.8720, -0.1956, -0.1779, -0.1608, -0.0358, -0.4453, -0.1154, +0.5532, -0.9282, +0.0031], +[ -0.1990, +0.3708, -0.0049, -0.3260, -0.0465, +0.0415, +0.1601, +0.0019, +0.0114, +0.0438, +0.0893, +0.3056, -0.6166, +0.1145, -0.6742, +0.0483, +0.0739, -0.1139, +0.5772, -1.5569, +0.4253, -0.0769, +0.4014, -0.6817, +0.0228, -0.0383, -0.0844, -0.1560, +0.1414, -0.3420, +0.3664, -0.2293], +[ -0.0917, -0.8692, +0.4704, +0.1796, -0.1346, -0.5246, +0.0622, +0.3420, -0.5879, -0.0445, -0.3444, -0.0490, +0.0956, -0.0753, -0.8856, +0.1275, +0.1592, +0.3569, +0.1774, +0.2723, +0.1125, -0.1718, +0.2451, -0.0132, +0.1584, -0.0197, +0.0700, -0.2156, +0.0094, +0.4639, -0.6721, -0.2180], +[ +0.0578, -0.1570, -0.1623, -0.1359, +0.1346, +0.1821, -0.0696, -0.0570, +0.0011, +0.1216, +0.1069, -0.0841, +0.1017, -0.1663, -0.6005, -0.4583, -0.2606, -0.0292, +0.0321, -0.5614, -0.4416, +0.0355, +0.2081, +0.3517, +0.0619, -1.0007, -0.0765, +0.1769, -0.1286, +0.5833, -0.1758, -0.1957], +[ -0.0013, +0.3157, +0.0395, -1.0792, -0.1198, -0.2945, -0.0090, +0.3281, -0.0618, -0.0806, +0.0768, +0.2802, -0.2311, -0.2302, +0.0506, +0.0552, +0.3727, +0.3610, +0.2029, -0.1743, +0.4557, -0.1761, -0.5039, -0.9115, +0.2842, +0.1317, -0.5961, -0.4214, -1.0727, +0.3308, +0.2380, -0.3348], +[ +0.2455, -0.1299, +0.3117, -1.0169, -0.3417, +0.0310, -0.4793, +0.5334, -0.4799, -0.3291, -0.1344, +0.3732, -0.1514, +0.1574, -0.1819, -0.0206, +0.5675, -0.6992, +0.4815, -0.1497, -0.3804, +0.1389, +0.5850, -0.2920, +0.2569, -0.3527, +0.3641, -0.2014, -0.1457, +0.2365, -0.2335, -0.2610], +[ -0.2252, +0.1225, +0.0953, -0.0193, +0.3955, -0.0800, +0.0090, -0.4155, +0.1851, +0.3392, -0.3260, -0.3907, +0.1320, +0.1266, +0.0579, +0.1819, -0.5793, -0.2230, +0.1351, -0.1519, -0.0527, -0.0036, +0.1243, +0.1387, -0.2874, -0.4997, -0.3251, +0.0435, -0.5244, +0.1051, -0.2081, +0.2126], +[ -0.6574, +0.6789, +0.1026, -0.5191, +0.1058, -0.6812, +0.1798, -0.1029, +0.0757, -0.0089, +0.1539, +0.4688, -0.1306, +0.0595, -0.8136, -0.4843, +0.3675, +0.1800, +0.2641, -0.0589, +0.0613, +0.2019, -0.0765, -0.1216, -0.4588, +0.0629, +0.1133, +0.7055, -2.8075, +0.3867, +0.4791, -0.1118], +[ +0.2771, +0.3461, -0.8556, -0.0316, +0.3640, -0.1380, -0.3765, -0.9258, -0.0693, -0.1283, +0.0576, -0.0792, +0.4468, -0.5001, +0.5939, -1.2226, -0.9252, -0.3980, -1.3444, -0.9488, -0.7199, +0.4289, -1.8749, -0.0867, +0.3905, -0.4535, -0.5607, -0.2247, -0.0359, -0.4125, +0.7124, -0.1963], +[ -0.2584, -0.5358, -0.0916, +0.0765, +0.0615, -0.1887, -0.2253, -0.7855, -0.0061, -0.1887, +0.5511, +0.3207, -0.2055, -0.1694, +0.4772, -1.0356, -0.9884, -0.2620, -0.1214, +0.9733, -0.9700, -0.3205, -0.7005, -0.2960, +0.1132, -0.0352, +0.3491, -0.2440, +0.1108, +0.1083, +0.3029, -0.0031], +[ -0.6217, +0.1238, +0.0245, -0.1769, -0.2487, +0.0526, -0.0090, +0.1370, +0.2666, -0.0743, -0.8230, -0.7723, -0.0929, -0.1532, +0.6103, -0.4931, -1.3329, -0.3735, +0.0217, -0.1539, -0.4946, -1.0838, -0.5840, +0.1618, +0.2584, +0.4200, +0.1171, -0.5601, +0.1604, +0.0864, +0.2287, -0.0057], +[ -0.2220, +0.4837, -0.0825, +0.0143, +0.2734, -0.0853, +0.1578, -0.0112, +0.1829, +0.0390, +0.2151, -0.1538, -0.1111, -0.0773, +0.3439, -0.2134, -0.2884, -0.3831, +0.2767, -0.3149, +0.1463, +0.3230, +0.2187, -0.2309, -0.1096, +0.3709, -0.0105, +0.3709, +0.3034, -0.7602, +0.5988, -0.0595], +[ -0.6073, +0.1780, +0.1682, +0.1604, +0.3662, -0.0385, -0.1495, +0.3012, -0.2065, -0.0163, -1.0465, -0.8268, -0.0190, +0.0964, -0.2755, +0.0965, -0.3466, -0.3758, -0.1113, +0.1462, +0.3280, -0.1600, +0.1023, +0.1998, -0.3642, +0.2736, +0.3782, -0.2681, +0.2334, +0.1721, +0.0385, +0.0348], +[ -0.0582, -0.5750, +0.1279, +0.3630, -0.2404, -0.1511, +0.2650, -0.0324, -0.2258, +0.0007, +0.3051, -0.1875, -0.5106, +0.0104, +0.1335, -0.5282, -0.2210, +0.2648, -0.7506, +0.4975, -1.7048, +0.2378, -0.1771, +0.2981, +0.1252, +0.1384, -0.3384, -0.0830, +0.0966, +0.3728, -0.1980, -0.1953], +[ -1.0735, -0.2780, +0.1428, -0.0624, -0.0311, -0.2687, -0.1623, +0.2996, +0.1782, -0.1403, -0.3761, -1.3413, -0.2020, -0.0492, -0.6636, -0.2737, +0.2228, +0.3109, +0.1596, +0.0172, +0.1325, -1.4936, -0.0615, -0.1547, -0.2285, +0.2648, -0.1008, -1.6756, -0.2352, +0.0998, -0.4550, +0.2028], +[ -0.3866, -0.0107, +0.1052, +0.1423, +0.1160, +0.1712, -0.6206, -0.3505, -0.3298, -0.0362, +0.6768, +0.2086, -0.4348, -0.3577, +0.0131, -0.1640, +0.0160, -0.3891, -0.0180, -0.1064, -0.2494, +0.0340, +0.2225, -0.1320, -0.3550, -0.3005, +0.0118, +0.2782, +0.4691, -1.3792, +0.1971, -0.0598], +[ +0.0215, +0.1885, -0.5360, -0.1283, +0.4689, +0.1426, -0.2809, -0.8197, +0.1951, -0.1620, +0.0627, +0.2864, -0.3069, -0.1170, +0.0545, -0.4527, -0.6646, -0.1546, -0.1794, -0.5350, -0.1060, -0.0198, -0.5782, -0.2201, +0.0361, -0.2497, -0.1527, -0.1489, +0.1034, +0.0925, +0.0368, -0.0352], +[ +0.2459, +0.3230, -0.0494, -0.5631, +0.0600, -0.3036, -0.5443, +0.1081, -0.2231, +0.0734, +0.0289, +0.4205, -0.6415, -0.1305, -0.0717, +0.2971, +0.0476, -1.3001, +0.5122, -0.0005, -0.3572, +0.0727, +0.1713, -0.4751, -0.3614, -0.0957, -0.0942, +0.0580, +0.2393, +0.0038, +0.1938, -0.1704], +[ +0.3352, -0.0882, -0.0349, -0.6093, +0.4262, -0.1350, -0.0687, -0.2459, -0.5564, -0.2956, +0.1619, -0.0813, -0.5128, -0.2209, +0.3870, -0.0804, +0.7676, -0.1745, -0.3860, -0.5517, -0.6899, -0.6400, +0.6095, -0.5337, +0.3452, -0.6608, +0.0662, +0.1741, +0.1653, -0.4191, +0.1051, -0.3116], +[ -0.0527, -1.3119, +0.3441, -0.0041, -0.5938, -0.4224, +0.3973, +0.4673, -0.0613, -0.0191, +0.1297, -0.2211, -0.0880, +0.0319, +0.0661, -0.2075, +0.4380, +0.3197, +0.0989, +0.2346, -0.0142, -1.2137, +0.1618, -0.3300, +0.4591, +0.4910, +0.3537, -0.5902, -0.0616, +0.2882, -0.0900, -0.0208], +[ -0.7068, -0.7952, +0.4496, +0.1237, -0.2000, -0.5966, +0.3920, +0.3458, +0.0036, -0.0666, -0.3061, -0.1172, +0.0446, +0.1768, -0.5318, +0.2083, +0.3371, +0.1497, +0.4244, +0.3980, +0.2023, -0.8931, +0.1860, -0.6889, -0.3250, +0.1250, +0.1510, -0.3405, -0.4040, +0.1598, -0.9933, +0.0233], +[ -1.2305, -0.3178, +0.0536, -0.0585, -0.7097, +0.3196, +0.2899, +0.8200, +0.0384, +0.1733, -1.1839, -2.2545, +0.0653, +0.1376, -0.1359, -0.1202, -0.0831, -0.5397, +0.1100, +0.1386, -0.1271, -0.6298, +0.1038, -0.1213, -0.1461, -0.4508, +0.5106, -0.8266, -0.6204, +0.3753, -0.4897, -0.0751], +[ -0.3676, -0.5547, +0.0897, -0.0230, -0.3045, -0.1885, -0.5990, +0.3622, -0.2240, -0.1205, -0.3056, +0.7085, +0.0053, -0.1213, -0.3023, +0.1433, -0.2090, -0.0412, +0.2561, +0.1313, -0.2803, +0.2543, +0.0571, -0.9791, -0.0167, -0.2928, -0.3020, -0.2271, +0.0507, -0.1310, -0.6347, -0.0889], +[ -0.2794, +0.0675, -1.0020, -0.2234, +0.3937, -0.2857, +0.1058, -1.0755, -0.0377, -0.2753, -0.0501, -0.0493, -0.2987, -0.2214, +0.2869, -1.0882, -1.2635, -1.2235, -0.5762, -0.4528, -0.1372, -0.0192, -1.3768, +0.2337, +0.2008, -0.2517, -0.3918, -0.6362, -0.1762, -0.9261, +0.1711, -0.0094], +[ -0.1099, -0.2142, -0.0006, -0.4617, -0.0286, +0.3482, -0.7728, -0.4384, +0.0050, -0.0151, +0.1974, +0.2815, -0.5295, -0.2581, +0.3404, -1.6254, -1.3208, -0.1648, -0.5207, +0.4104, -0.2795, +0.0613, -1.5642, -0.1178, -0.1354, +0.0375, +0.3323, +0.0540, +0.2038, -0.3223, +0.4603, -0.3780], +[ -0.3999, -0.3719, +0.1918, -0.4738, -0.0009, +0.0419, +0.1046, +0.2675, +0.1359, -0.2536, -0.3485, -0.3118, -0.3613, +0.0914, -0.4486, +0.2719, +0.2876, -0.0685, +0.4309, +0.1856, +0.4678, -0.3314, +0.0211, +0.2575, +0.5077, -0.1494, +0.5110, -0.6869, -1.4053, +0.3093, -0.2914, -0.1501], +[ +0.3543, +0.3915, +0.0536, +0.3995, +0.2165, -0.1133, -0.1209, +0.0824, -0.0723, -0.0774, -0.4248, -0.0243, -0.1089, -0.1408, +0.2072, -0.1309, -1.5186, -0.4079, -0.0530, -0.3525, +0.6782, +0.1991, -0.0292, +0.1339, -0.1074, +0.2312, +0.1969, +0.4662, +0.5312, -0.3306, +0.0622, +0.1057], +[ -1.1778, +0.2978, +0.0443, +0.1657, +0.1317, -0.1250, -0.0459, +0.0777, +0.1359, -0.0055, +0.2364, -2.3659, +0.2214, -0.1489, -0.3051, -0.5094, +0.1495, +0.3328, +0.1264, -0.0217, +0.2321, -0.6466, -0.1813, +0.5276, +0.1975, +0.3752, +0.1469, -0.8019, +0.2427, +0.1543, +0.2140, -0.1592], +[ -0.7753, -1.3502, +0.3157, +0.1847, +0.0661, -0.5501, +0.3482, +0.6112, +0.0207, +0.0534, -0.2106, -1.0144, -0.0836, -0.0275, -1.0761, +0.2131, +0.3135, +0.3134, +0.1974, +0.0182, +0.1975, -1.1221, +0.2958, -0.2610, +0.0865, +0.3592, +0.4317, -0.3505, -0.4557, +0.3033, -0.5797, -0.2988], +[ +0.4103, -0.0643, +0.0803, +0.2177, +0.1028, -0.2668, +0.0084, -0.2340, -0.2571, +0.0334, +0.3451, -0.0055, +0.0216, -0.1460, +0.5293, -0.2615, -0.3035, +0.1736, -0.4206, -0.2186, +0.1343, +0.6001, -0.0499, -0.2777, -0.0160, -0.4303, -0.2795, +0.1932, +0.4219, -0.0800, +0.1819, -0.1007], +[ -0.7074, -0.0546, +0.4495, +0.1427, +0.3306, +0.0811, -0.5433, -0.0609, -0.2128, -0.1059, -1.0477, -0.4679, -0.1780, -0.1373, -0.3672, +0.0724, -0.0554, -0.5400, +0.0457, -0.0469, -0.0367, -0.4609, +0.1668, -0.0266, -0.9007, +0.2975, +0.5204, -0.0453, -0.1314, -0.0980, +0.1424, -0.1877], +[ +0.0657, +0.1230, -0.2558, +0.3103, -0.0795, -0.1243, +0.1956, +0.0262, -0.2626, -0.0554, +0.3760, +0.3076, -0.4633, +0.0790, +0.2363, -0.3311, +0.1235, -0.1727, -0.2468, +0.0188, -0.1121, -0.2807, -0.5865, -0.4197, +0.1949, -0.4970, -1.0413, -0.1698, +0.1798, +0.2004, -0.0514, +0.0254], +[ -0.1566, -1.1156, +0.4431, -0.1503, -0.5682, +0.1822, -0.1201, +0.5151, -0.1386, -0.1764, +0.2063, -0.8582, +0.3750, -0.1405, +0.0852, +0.2641, -0.1951, -0.0575, -0.4181, +0.2273, +0.1332, -0.2797, +0.5406, -0.0869, +0.2453, +0.0648, +0.2252, -0.0628, -0.6882, -0.0514, -0.4663, -0.0954], +[ -0.4780, +0.5844, +0.1782, -0.0831, +0.1547, -0.0595, -0.5646, -0.0488, -0.1774, -0.0098, +0.1833, +0.3520, -0.3359, -0.1492, +0.1139, -0.1223, -0.5312, -0.5361, +0.1689, -0.2020, +0.1069, +0.2327, +0.2887, +0.0526, -0.5916, -0.2435, -0.2342, +0.3422, +0.4399, -1.1880, +0.1293, -0.1021], +[ -1.2784, -1.8266, +0.0630, -0.3332, -0.5833, -0.3733, +0.3265, +0.1977, +0.0716, -0.2575, +0.0403, -0.1961, +0.1541, -0.2311, -0.1734, -0.1785, +0.0168, +0.1134, +0.0407, -0.1661, +0.5985, -1.9681, +0.1342, +0.3432, +0.3934, +0.0663, +0.3141, -2.0177, -1.7071, +0.2942, -1.0684, -0.0737], +[ +0.1763, +0.2191, +0.2609, +0.0723, +0.1038, -0.2516, -0.9086, +0.1536, +0.0153, +0.1061, +0.1675, +0.3839, -0.5326, +0.2007, -0.4943, -0.1048, +0.1614, -0.4703, +0.3453, -0.7441, -0.6187, +0.4247, +0.1721, -0.1776, -0.0919, -0.8387, +0.0798, -0.0598, +0.2711, -0.0508, +0.1761, +0.0029], +[ -0.2003, +0.2194, -0.6280, +0.1593, +0.1648, -0.1007, +0.3162, -0.3881, -0.1584, -0.0148, +0.7057, +0.0085, +0.3488, +0.0977, +0.4018, -0.8195, -0.1944, +0.4359, -0.6605, -0.1929, +0.2237, +0.1087, -0.4213, -0.7149, +0.3972, -0.1313, -0.2815, -0.7234, -0.0561, -0.5364, +0.0178, +0.0349], +[ +0.0567, +0.1687, +0.0007, +0.2939, -1.3854, +0.0168, +0.1909, +0.4919, -0.4547, +0.0562, -0.1188, +0.1653, -0.0265, -0.0541, -0.1117, -0.3240, +0.2545, +0.6516, +0.0124, -0.1258, -0.0656, -0.3524, +0.0174, +0.3926, +0.1125, +0.2834, -0.1961, -0.3603, +0.1783, -0.0224, -0.6900, -0.1688], +[ +0.0672, +0.6339, -0.3839, +0.0077, +0.8224, -0.3197, -0.0589, -0.1318, +0.0222, -0.1530, +0.1237, +0.4014, -0.1952, -0.1130, +0.4214, -0.2741, +0.2291, +0.0757, +0.0563, -0.0967, +0.4210, +0.5133, +0.0412, -0.9212, +0.1377, -0.4068, -0.3652, +0.4283, +0.6182, -0.6187, +0.1997, +0.1240], +[ -0.0067, +0.3307, -0.7751, -0.2084, +0.4740, -0.0264, -0.0768, -0.9519, -0.0632, -0.0753, +0.3293, +0.5260, -0.6023, +0.0060, +0.2799, -0.2904, -0.8262, -0.6644, -0.3900, -0.1461, +0.4965, +0.3996, -0.7569, +0.0612, +0.5168, -0.5160, -0.4875, +0.3759, +0.0295, +0.1027, +0.6096, -0.0115], +[ -0.0110, +0.4652, -0.1486, -0.6029, +0.2581, -0.3184, -0.3759, +0.3213, -0.2748, -0.0630, +0.0953, +0.2101, -1.2738, -0.1353, +0.2710, -0.2276, +0.2586, -0.2347, -0.3320, +0.0487, -0.2318, -0.1002, +0.1236, +0.2660, -0.1172, +0.1437, -0.0850, +0.1659, -0.2152, -0.0764, +0.2838, -0.1325], +[ +0.0152, -0.0906, -0.1897, -0.3521, -0.1836, -0.1694, -0.4150, -0.1695, +0.0509, -0.0716, +0.3118, +0.2422, -0.5058, -0.0637, -0.1038, -0.2828, -0.0528, -0.2051, +0.2062, -0.2105, -0.7317, +0.1881, -0.2992, -0.0883, +0.0115, -1.5295, -0.1671, +0.0411, +0.0648, -0.0119, -0.2941, +0.0273], +[ +0.5028, +0.1780, -0.4643, -0.0373, +0.3067, -0.1974, +0.2643, -0.2365, -0.2083, +0.0472, +0.4830, +0.0630, +0.2155, -0.0916, +0.6290, -0.4427, -0.6266, +0.3576, -0.3541, -0.2034, +0.3733, +0.8247, -0.5837, -0.4372, +0.2696, -0.4042, -0.3436, +0.0355, -0.2288, -0.6382, +0.7358, -0.1229] +]) + +weights_dense2_b = np.array([ -0.0730, +0.0456, +0.0877, -0.2607, +0.0029, -0.2705, -0.1420, +0.2403, -0.2135, -0.0646, +0.1378, +0.1105, -0.4639, -0.0583, -0.0872, -0.1473, +0.1460, -0.0234, +0.0740, -0.0745, -0.1283, +0.0316, +0.0361, -0.0726, -0.0304, +0.0417, -0.0313, +0.0935, +0.0815, +0.0814, +0.0818, -0.1111]) + +weights_final_w = np.array([ +[ +1.0397], +[ +0.7049], +[ -0.2128], +[ +0.2172], +[ +0.3027], +[ -0.1991], +[ +0.3398], +[ -0.5932], +[ -0.1439], +[ -0.0236], +[ +0.5679], +[ +0.8571], +[ +0.1934], +[ -0.1652], +[ +0.6933], +[ -0.5510], +[ -1.0587], +[ +0.6996], +[ -0.5009], +[ -0.4000], +[ -0.6958], +[ +0.7716], +[ -0.5342], +[ -0.5095], +[ +0.3040], +[ -1.1986], +[ -0.4900], +[ +0.7726], +[ +0.5871], +[ -0.2533], +[ +0.2633], +[ -0.0004] +]) + +weights_final_b = np.array([ +0.0190]) + +if __name__=="__main__": + demo_run() diff --git a/examples/pybullet/gym/enjoy_TF_InvertedPendulumBulletEnv_v0_2017may.py b/examples/pybullet/gym/enjoy_TF_InvertedPendulumBulletEnv_v0_2017may.py new file mode 100644 index 000000000..3c9e21f00 --- /dev/null +++ b/examples/pybullet/gym/enjoy_TF_InvertedPendulumBulletEnv_v0_2017may.py @@ -0,0 +1,171 @@ +import gym +import numpy as np +import pybullet as p +import envs +import time + +def relu(x): + return np.maximum(x, 0) + +class SmallReactivePolicy: + "Simple multi-layer perceptron policy, no internal state" + def __init__(self, observation_space, action_space): + assert weights_dense1_w.shape == (observation_space.shape[0], 64) + assert weights_dense2_w.shape == (64, 32) + assert weights_final_w.shape == (32, action_space.shape[0]) + + def act(self, ob): + x = ob + x = relu(np.dot(x, weights_dense1_w) + weights_dense1_b) + x = relu(np.dot(x, weights_dense2_w) + weights_dense2_b) + x = np.dot(x, weights_final_w) + weights_final_b + return x + +def demo_run(): + print("create env") + env = gym.make("InvertedPendulumBulletEnv-v0") + print("connecting") + cid = p.connect(p.GUI) + pi = SmallReactivePolicy(env.observation_space, env.action_space) + + while 1: + frame = 0 + score = 0 + restart_delay = 0 + obs = env.reset() + print("frame") + while 1: + time.sleep(0.05) + a = pi.act(obs) + obs, r, done, _ = env.step(a) + score += r + frame += 1 + still_open = env.render("human") + if still_open==False: + return + if not done: continue + if restart_delay==0: + print("score=%0.2f in %i frames" % (score, frame)) + restart_delay = 60*2 # 2 sec at 60 fps + else: + restart_delay -= 1 + if restart_delay==0: break + +weights_dense1_w = np.array([ +[ +0.8621, +0.3260, +0.0986, -0.1225, +0.2038, -0.8051, -0.7498, +0.1905, -0.3418, +0.5002, -0.1093, +0.0285, +0.3480, -0.1596, -0.1781, +0.3643, -0.4283, -0.3715, -0.1571, +0.3531, +0.0934, -0.2215, -0.3085, +0.9581, +0.2485, -0.6232, -0.3175, +0.9771, +0.3651, -0.8850, -0.4212, -0.0301, +0.0432, +0.3390, +0.7537, +0.1649, -0.0128, -0.1374, +0.3793, +1.0430, +0.8043, -0.9001, +0.4334, -0.1243, +1.2373, +0.1890, +0.3333, -0.0520, +0.1654, +0.2521, -0.0168, +0.8439, -0.6960, +0.1884, +0.0991, +0.5242, -0.6837, +0.6844, -0.2593, -0.3298, +0.2212, +0.0281, +0.2608, +0.6527], +[ -0.9350, -0.2122, +0.0162, +0.5306, -0.2914, -0.8573, +0.2552, +0.7069, +0.7862, -0.0315, -1.0844, +0.2707, +0.5102, -1.1359, +0.3066, +0.0357, +0.1833, -0.1946, +0.0948, +0.6685, -0.6101, +0.4774, -0.3017, +0.3823, -0.2835, -0.6760, +1.2963, +0.4466, -0.7132, -0.9109, -0.0589, -0.8726, +0.6972, -0.2256, -0.0286, +0.4646, -0.5113, -0.1692, +0.7638, +0.2274, -0.5734, +0.7430, +0.9680, +0.7809, -0.2457, -0.4952, +0.0197, -0.6428, +0.2367, -0.5887, -0.5167, +0.2299, -0.5853, -0.4101, +0.9042, +0.0913, +0.5774, +0.2756, +0.2436, -0.6068, -0.2232, -0.1415, -0.5094, -0.1012], +[ +0.0983, -0.3266, +0.2611, +0.0664, +0.6222, +0.0773, -0.2516, -0.4416, -0.3770, +0.0535, +0.3391, -0.7475, +0.5874, -0.0405, -0.2058, -0.5957, +0.2659, -0.8477, -0.5814, -0.0494, -0.1678, +0.2650, -0.4039, +0.1414, -0.6635, +0.0447, +0.2932, +0.1167, +0.1195, +0.0669, -0.4223, +0.1196, +0.0553, -0.7123, -0.4011, +0.3557, -0.4503, +0.7047, -0.4471, +0.0807, +0.3926, -0.1427, +0.4355, -0.3678, +0.3453, +0.1597, -0.3076, +0.4689, +0.3128, -0.7050, +0.6505, +0.3427, +0.1981, +0.1190, +0.2554, +0.8283, +0.1647, -0.4257, +0.1481, +0.4361, -0.5497, -0.6114, -0.0138, +0.0932], +[ +0.1866, +0.6408, -1.8201, +1.0946, +0.7742, -0.7651, +0.1082, +0.6842, +0.3794, +0.3547, -0.8172, -0.0921, -0.6736, +1.0251, -0.9618, -0.6869, +1.8465, +0.2425, +0.7910, +1.0009, -0.8031, +1.6697, -0.8962, +0.1873, +0.4960, -0.6812, +0.6860, +1.1932, -0.7019, +0.4028, +0.4841, +0.6497, +1.6490, -0.5464, +0.7060, +1.8087, -0.6118, -0.7955, -0.3797, -1.2048, +1.2356, -0.6141, +1.2502, +0.5641, -0.1019, -1.7516, -0.1134, -0.6719, +1.5014, -0.2718, -0.5933, +0.1714, -1.3590, -0.3656, +1.0083, -0.8511, -0.5597, -0.4446, -1.7158, -0.0851, +0.3089, +0.0967, -1.0121, +0.3048], +[ +0.3329, +0.5382, +0.1585, +0.8205, +0.5510, +0.2796, -0.7120, +0.3434, +0.2931, +1.2275, +0.4191, -0.6828, -0.5091, +0.8408, -0.3101, -0.5183, +0.2651, +0.2073, -0.1383, +0.6539, -0.2167, +0.7798, -0.5690, +0.3750, +0.4358, +0.6537, -0.2202, -0.0563, +0.6605, +0.4599, -0.5327, +0.6610, +0.8387, +0.1887, -0.2593, +0.7904, -0.3567, +0.4121, +0.4378, -0.2935, +0.1291, +0.0021, -0.3416, -0.5920, -0.2895, -0.4610, +0.7380, -0.6322, +0.6738, -0.1378, -0.3304, -0.2894, -0.3582, -0.8311, +0.2660, -0.2079, -0.1765, -0.6825, -0.1754, -0.4455, +0.7202, -0.8177, -0.9900, -0.7425] +]) + +weights_dense1_b = np.array([ +0.0009, -0.2179, -0.0299, +0.2069, -0.0099, +0.0907, +0.0271, +0.1957, +0.0185, +0.1671, -0.0699, -0.0332, -0.0244, +0.0022, +0.1877, -0.0801, +0.0235, -0.0097, -0.0088, +0.1961, -0.1055, +0.0605, -0.0913, +0.0884, -0.0638, +0.0229, -0.1101, +0.1966, -0.0042, +0.0221, -0.0966, +0.1554, +0.1623, -0.0454, +0.1068, +0.0114, +0.0544, +0.0201, +0.0257, +0.0637, +0.0761, +0.2120, +0.0225, +0.2023, -0.0931, +0.0585, -0.2253, -0.0302, +0.0682, +0.0000, -0.1215, -0.1105, +0.1376, +0.0583, -0.1706, -0.0262, -0.0897, +0.0728, +0.0787, +0.0912, -0.0964, -0.0959, -0.0195, +0.0232]) + +weights_dense2_w = np.array([ +[ +0.0089, +0.2241, -0.0391, +0.1459, -0.0854, -0.0878, +0.2829, -0.1620, -0.1694, -0.5211, +0.0155, -0.1298, -0.0629, +0.1074, +0.0150, -0.3583, +0.0427, +0.1813, +0.2140, -0.4230, +0.1577, +0.1223, -0.0096, +0.0183, -0.1038, -0.5612, -0.0614, -0.0820, -0.0057, -0.2471, +0.0355, -0.1525], +[ +0.1555, -0.2934, +0.2690, -0.3218, +0.0101, -0.1188, -0.1798, -0.1405, +0.2701, -0.0972, +0.2338, -0.0122, -0.2254, -0.3225, -0.0268, -0.0829, +0.4085, +0.0691, -0.1448, -0.0429, -0.2750, -0.2479, +0.0396, +0.0427, +0.0205, -0.1462, -0.1481, +0.1365, -0.0903, +0.0094, +0.3665, +0.1163], +[ +0.0119, -0.3100, +0.1201, -0.2257, +0.1246, -0.1335, -0.3369, -0.0408, +0.3145, +0.2030, +0.1506, +0.0899, -0.1192, -0.2429, +0.0356, +0.0634, -0.0706, +0.1119, -0.0402, +0.1011, +0.1281, +0.4318, -0.4644, +0.0039, +0.0932, -0.0521, -0.1528, +0.1946, -0.0921, -0.0646, -0.0241, +0.1598], +[ -0.1007, +0.3939, -0.2066, +0.0752, -0.1709, -0.0286, +0.0196, +0.1853, -0.3619, -0.0449, +0.0334, -0.2673, +0.0640, +0.3055, -0.1184, -0.4550, +0.0951, -0.2168, +0.1502, -0.4816, +0.1392, -0.3708, -0.0849, -0.4331, -0.0800, -0.0967, +0.1334, -0.3169, -0.0004, -0.3002, -0.0841, -0.1763], +[ -0.0492, +0.0308, +0.0824, +0.0568, -0.0038, +0.3196, +0.5089, +0.0391, -0.1373, -0.1579, +0.0219, -0.2990, -0.0113, -0.2136, -0.0240, +0.1241, -0.1723, -0.0064, -0.0213, -0.2213, -0.0996, -0.0333, -0.4110, -0.2074, +0.0427, +0.0323, -0.0920, -0.1846, -0.1037, -0.0381, -0.0763, +0.0875], +[ +0.0965, -0.1536, -0.0270, -0.0834, +0.0270, +0.0908, -0.0257, -0.1284, +0.1994, +0.2317, +0.0193, +0.0493, -0.0723, -0.2748, +0.0248, -0.0021, -0.0483, +0.0610, -0.0056, -0.0575, +0.0930, +0.0749, -0.2599, +0.0223, +0.0050, -0.0569, -0.6755, +0.2190, +0.0009, +0.1493, -0.1822, +0.0763], +[ -0.0435, +0.3829, -0.2358, +0.3554, -0.1800, +0.0008, -0.0282, -0.0139, -0.2745, -0.2293, -0.4456, +0.1709, +0.0687, -0.0696, -0.0877, -0.0978, -0.0620, -0.4380, +0.2052, -0.1479, +0.0971, -0.0031, +0.0783, -0.0749, -0.2695, -0.0151, -0.0066, +0.0592, -0.0088, -0.0507, -0.0167, -0.2891], +[ -0.1797, -0.1446, -0.0609, -0.2840, +0.1933, +0.0366, -0.3077, -0.0018, -0.1564, +0.0283, +0.1447, +0.2110, -0.0047, -0.2123, +0.0041, +0.0171, +0.2826, +0.1549, -0.1211, +0.1360, +0.1473, +0.1541, -0.1583, +0.0955, -0.1047, +0.0530, +0.0667, +0.1454, -0.0860, +0.0602, +0.1970, +0.0716], +[ +0.0119, +0.1858, -0.1746, +0.0911, -0.0948, -0.0898, -0.0680, -0.2266, -0.1098, +0.0161, +0.0265, +0.1100, -0.3467, -0.0128, -0.2249, +0.0344, +0.1421, -0.1222, -0.0196, -0.1188, +0.0428, -0.2318, +0.0998, +0.1017, +0.0298, -0.1391, +0.1229, +0.1193, +0.0565, +0.1296, +0.0939, -0.0234], +[ +0.1817, +0.2432, -0.2712, +0.0668, -0.1836, +0.0232, -0.0793, +0.0161, -0.1585, -0.3731, -0.0243, -0.1066, +0.0928, -0.0499, -0.0692, -0.3354, +0.0754, +0.0468, -0.2522, -0.7501, +0.0235, -0.5134, -0.3031, -0.1907, -0.2166, -0.1713, -0.0422, +0.0831, +0.0664, -0.0462, +0.1627, -0.4927], +[ -0.0342, +0.2310, +0.2736, -0.0703, +0.1941, -0.0428, -0.0868, -0.2146, +0.1371, +0.0117, +0.0218, +0.0133, -0.0416, +0.1012, +0.1689, +0.3113, +0.0199, +0.1176, +0.0256, +0.0907, +0.0622, +0.3312, -0.0225, -0.0187, +0.2089, +0.1381, -0.2949, +0.1525, -0.0514, -0.1416, -0.0381, -0.0133], +[ -0.0885, +0.3841, -0.3811, +0.1388, -0.1801, -0.0434, +0.1371, -0.0393, +0.2549, -0.4207, -0.2308, +0.0187, -0.0975, +0.2137, -0.0840, -0.0491, +0.0424, +0.0060, +0.1007, +0.0315, +0.3005, +0.0501, +0.0516, -0.0521, -0.0100, +0.0984, +0.3092, +0.0031, -0.0380, +0.2344, +0.0808, -0.0694], +[ -0.0631, +0.0290, +0.1733, -0.0555, +0.1311, -0.0812, +0.1056, -0.1663, -0.1272, +0.2717, +0.0247, +0.0730, -0.3714, +0.0042, -0.0490, +0.0222, -0.0429, -0.1618, +0.1476, +0.1699, -0.1660, +0.1571, -0.0225, +0.1582, +0.1622, -0.0721, -0.1198, +0.1388, -0.1661, +0.0103, -0.1386, +0.0883], +[ +0.0306, +0.1041, -0.2540, +0.0423, +0.1098, -0.0204, +0.1478, +0.1917, +0.1102, +0.0045, -0.0263, +0.0818, -0.0245, -0.0047, -0.2407, -0.6658, +0.0834, +0.0400, +0.1785, -0.5141, +0.3379, -0.5638, -0.0012, -0.2549, -0.4172, -0.2134, -0.3793, -0.0736, -0.3442, +0.1044, -0.0489, -0.2967], +[ -0.0446, -0.1153, -0.0839, +0.0948, +0.3570, -0.0520, -0.1016, -0.0265, +0.4342, +0.2325, +0.1763, -0.2663, -0.0676, -0.0759, +0.0654, +0.2983, +0.1185, -0.0233, -0.5232, +0.1075, -0.3284, +0.2703, +0.2164, +0.0092, +0.2988, +0.1956, +0.0582, +0.3342, +0.0949, -0.1936, -0.0465, +0.4223], +[ +0.0737, -0.0069, -0.1301, +0.3047, -0.2603, +0.0369, -0.2049, +0.0378, -0.1846, -0.3474, -0.1353, +0.0965, +0.0956, -0.0692, -0.0440, -0.1767, -0.1616, -0.2183, +0.1853, -0.0618, +0.1210, -0.2178, +0.1066, -0.3849, -0.2628, +0.1444, +0.2814, -0.2963, +0.0673, +0.0983, +0.0442, +0.0020], +[ -0.0978, +0.2645, -0.3750, +0.2824, -0.3906, -0.0070, +0.1920, +0.0911, -0.0510, -0.1050, -0.2411, -0.2135, +0.0784, +0.3348, -0.0396, -0.4209, -0.0686, -0.2212, +0.3039, -0.4649, -0.0692, -0.5387, +0.0479, -0.4205, -0.2557, -0.1031, +0.1378, -0.3875, -0.1900, -0.0253, +0.1212, -0.4374], +[ -0.1067, +0.1545, +0.2016, -0.0620, -0.1419, -0.0661, -0.1224, -0.0560, +0.1045, -0.2062, -0.2551, +0.2440, -0.1116, +0.1544, -0.2324, +0.0999, -0.1832, -0.1226, -0.1774, +0.0629, -0.1170, -0.1375, +0.0839, +0.2029, +0.0551, +0.0359, +0.0967, +0.2290, -0.0312, -0.1228, +0.2831, +0.1785], +[ -0.1420, +0.1163, +0.0488, -0.0011, -0.1311, -0.1558, -0.0766, -0.0088, +0.1877, -0.1547, +0.1304, +0.0347, +0.1132, +0.2750, -0.0574, +0.0080, -0.2256, -0.0951, +0.1987, +0.2256, +0.0270, -0.0155, +0.0636, +0.0372, +0.2483, -0.1469, -0.2010, -0.0994, -0.1731, +0.0224, +0.0085, -0.1891], +[ +0.1037, +0.0015, -0.1525, -0.0444, -0.3130, -0.0318, +0.2370, -0.1492, -0.4707, -0.0023, +0.0884, +0.1722, -0.0421, +0.0858, -0.1036, -0.5701, +0.1249, -0.2643, -0.0203, -0.1380, +0.0973, -0.2060, +0.1806, +0.3054, -0.6548, -0.3282, -0.2969, -0.3984, -0.0448, -0.1802, +0.3282, -0.1891], +[ -0.1116, +0.3646, -0.0542, +0.3672, -0.4207, +0.2700, +0.3827, -0.0599, -0.3415, -0.2832, -0.0345, +0.1987, +0.0669, +0.1301, -0.3806, -0.2981, -0.1917, -0.2028, +0.1687, -0.2010, +0.3607, -0.0199, +0.2971, +0.0390, +0.0895, -0.3088, +0.0169, -0.1333, +0.0738, +0.2161, -0.1207, -0.3352], +[ -0.0134, +0.3853, -0.2106, +0.1996, -0.2277, -0.0971, +0.0917, -0.2901, -0.2493, +0.0295, -0.1438, -0.1902, -0.0074, +0.2240, -0.0277, -0.4374, +0.0749, -0.1779, +0.2687, -0.4093, -0.0042, -0.5023, -0.1169, -0.3157, +0.0061, +0.0270, +0.0204, -0.4626, -0.1717, -0.2126, +0.1335, -0.5028], +[ -0.0813, +0.1958, -0.4203, +0.3027, -0.3896, -0.1201, -0.0383, -0.1807, -0.4834, -0.3672, -0.3664, +0.2401, -0.0114, -0.0852, -0.2220, -0.1953, +0.0773, -0.0048, +0.1560, -0.1524, +0.0772, -0.2740, +0.1346, -0.3171, -0.0648, +0.1633, +0.2050, -0.1560, +0.0270, +0.3009, -0.2798, -0.0756], +[ -0.1754, +0.1428, +0.2527, -0.2624, -0.1126, -0.0014, +0.1030, -0.2716, -0.2678, -0.0268, +0.0982, -0.0385, -0.0628, -0.0768, -0.2531, +0.2935, -0.0661, +0.0778, -0.1184, +0.0070, -0.1331, -0.1174, -0.1338, -0.1601, -0.0357, -0.1964, -0.0550, -0.1151, +0.2369, +0.1578, -0.0826, -0.1985], +[ -0.1724, -0.0328, +0.0090, -0.0564, +0.0876, -0.0607, +0.0060, -0.2330, +0.1137, -0.0771, -0.0774, +0.0727, -0.2037, +0.1521, +0.0666, +0.0258, -0.2189, -0.1417, +0.0276, -0.0387, -0.0747, -0.0214, -0.0793, -0.0520, +0.0918, -0.1276, -0.0877, +0.0309, -0.0630, -0.0149, -0.0197, -0.1755], +[ +0.1471, -0.1542, +0.1202, -0.2846, +0.1209, -0.0383, -0.2689, -0.0442, -0.1086, +0.3428, +0.0120, +0.0473, +0.0320, -0.2629, -0.0904, -0.3732, -0.2179, +0.2540, -0.1725, -0.4163, -0.0333, +0.0934, -0.3123, -0.1123, -0.2196, +0.1580, -0.6386, +0.0650, -0.0473, +0.0521, +0.0061, -0.2745], +[ +0.0064, -0.1054, -0.2054, -0.1706, +0.1626, +0.0895, +0.0571, -0.2639, +0.0269, +0.1943, +0.0687, -0.1510, -0.1987, +0.0784, -0.1774, -0.0242, +0.0519, -0.3330, +0.0364, +0.1868, -0.3204, +0.1106, +0.0456, -0.1627, -0.2792, +0.0017, +0.2943, +0.0481, -0.1523, -0.1656, -0.0222, -0.0239], +[ +0.0853, +0.2513, -0.1716, +0.0164, -0.1375, -0.0870, +0.2430, +0.2161, -0.4489, -0.3427, +0.0341, -0.0022, -0.1488, +0.2685, -0.2290, -0.2439, +0.1216, -0.1475, -0.0332, -0.1282, -0.1603, -0.1076, -0.1279, -0.1439, -0.2784, -0.4271, +0.1286, -0.1134, -0.1994, -0.1031, -0.0210, -0.2327], +[ +0.1303, -0.0463, +0.1797, -0.0939, +0.2427, -0.0791, -0.0735, -0.2248, +0.1545, -0.1325, -0.1812, -0.0896, +0.0695, +0.0225, -0.1880, +0.1619, -0.0468, +0.0904, +0.1570, -0.0206, +0.1266, -0.0148, +0.0305, +0.2494, +0.1687, -0.0774, -0.2693, +0.0449, +0.0040, -0.1319, +0.1513, -0.0410], +[ +0.0545, +0.0586, -0.0087, -0.1021, -0.1756, -0.0722, +0.0678, +0.0310, -0.1490, -0.2823, +0.1335, -0.0038, +0.0660, +0.0696, -0.2747, -0.3360, +0.1061, +0.3080, +0.1201, -0.3870, +0.2960, -0.4409, -0.0295, +0.0854, -0.0908, +0.1224, -0.4637, -0.4016, +0.0420, +0.0505, +0.0364, -0.2983], +[ -0.1218, +0.2787, -0.1838, -0.0315, -0.1590, -0.2840, +0.2845, +0.0601, -0.1741, -0.2363, -0.3620, -0.1355, +0.0943, +0.1343, -0.0346, -0.1135, +0.0327, -0.2982, +0.1805, -0.1483, +0.1698, -0.1056, -0.0257, +0.0580, -0.1921, +0.0863, +0.1439, -0.1360, +0.0468, +0.2411, -0.1872, +0.0329], +[ +0.0068, +0.1272, +0.0108, +0.0178, +0.2308, +0.0207, -0.0050, +0.0127, +0.1008, -0.2972, -0.2233, -0.1369, +0.0797, +0.0023, -0.0782, -0.4778, +0.1916, +0.1325, +0.0110, -0.2083, +0.2786, -0.2724, -0.1214, +0.0510, -0.1068, -0.1982, -0.4602, -0.1082, -0.1563, -0.0689, -0.0913, +0.0983], +[ +0.1631, +0.1356, -0.1882, +0.2125, -0.4817, -0.1368, +0.1216, -0.1032, -0.4494, -0.2093, -0.0110, +0.0402, -0.0097, +0.1575, -0.2447, -0.8683, +0.1860, -0.4305, +0.1405, -0.3244, +0.1927, -0.5331, +0.0910, -0.1750, -0.2639, -0.3461, -0.0655, -0.4643, -0.0272, +0.0600, +0.1538, -0.3951], +[ +0.0750, +0.0031, -0.1113, +0.0419, -0.0726, +0.1712, +0.1273, -0.0844, +0.0187, -0.1579, +0.0365, +0.1953, +0.0259, +0.1069, +0.1584, +0.0159, +0.1700, -0.0276, +0.0061, -0.1753, -0.0827, -0.0493, +0.0756, -0.1169, +0.0177, -0.2200, -0.0495, -0.0934, +0.1999, -0.0962, -0.0035, +0.1083], +[ -0.0754, -0.1933, +0.1219, -0.3622, -0.2560, +0.0829, -0.3323, +0.0923, -0.1712, +0.0494, +0.1063, +0.3118, +0.0088, -0.3756, -0.0977, +0.0160, -0.0817, +0.1595, -0.3452, +0.2652, +0.2646, +0.2833, -0.3530, +0.0805, -0.1736, +0.0675, -0.1320, -0.3568, +0.1824, -0.0068, +0.0391, -0.3348], +[ +0.0661, +0.1602, -0.0509, +0.0562, -0.1738, +0.0114, -0.0268, -0.0354, -0.2069, -0.0250, -0.1061, -0.1695, -0.0719, +0.2797, -0.2477, -0.2539, +0.1287, -0.2037, +0.2556, -0.1008, +0.1943, -0.1660, +0.2728, -0.2338, -0.0806, -0.2346, +0.0449, -0.4673, -0.0362, -0.1172, +0.1695, -0.2252], +[ +0.0348, -0.2188, +0.0041, -0.1818, +0.3175, -0.0947, -0.2779, -0.0764, +0.2407, -0.1541, +0.2586, -0.1852, -0.1379, -0.3336, +0.1402, -0.0446, +0.0584, +0.0994, -0.3633, +0.0636, -0.0156, -0.0767, -0.2649, +0.0149, +0.2484, +0.2916, +0.1928, -0.0036, +0.0696, -0.0935, +0.2752, +0.0187], +[ -0.2666, +0.0507, -0.1783, +0.2308, +0.3974, -0.0719, +0.0276, -0.0048, +0.1177, +0.0816, -0.2346, -0.2762, +0.1167, +0.0719, -0.1303, -0.0892, +0.0177, +0.0072, +0.0965, +0.2305, +0.0988, +0.1532, -0.1653, +0.0692, -0.0419, -0.1874, -0.0896, +0.0014, +0.0375, -0.0905, -0.3757, +0.3573], +[ +0.4116, -0.2717, +0.2356, -0.1943, +0.0575, +0.0379, -0.0606, -0.0819, +0.1179, +0.2377, -0.1506, +0.1710, +0.0912, -0.2922, +0.0898, +0.1814, +0.1221, +0.1917, -0.3906, +0.1684, +0.1638, +0.2434, -0.1656, +0.1352, +0.0744, -0.0942, -0.2128, +0.0767, +0.0628, +0.1426, +0.3458, -0.0437], +[ -0.1387, -0.5340, +0.2895, -0.5476, +0.5888, +0.1435, -0.4898, +0.0061, +0.6167, +0.1024, +0.1127, +0.2197, +0.0206, -0.4723, +0.1195, +0.6172, +0.0276, +0.3961, -0.5498, +0.4008, -0.2163, +0.3337, -0.2608, +0.1666, +0.3415, +0.0077, -0.1649, +0.2619, -0.1937, -0.1043, +0.1770, +0.4285], +[ -0.0167, +0.0725, +0.1501, +0.0806, -0.0904, -0.2287, +0.1906, -0.0706, -0.0861, -0.1585, -0.1175, -0.0603, -0.0193, +0.4876, -0.1954, -0.0463, -0.1083, +0.1297, -0.0301, +0.0312, +0.0755, +0.0648, -0.4867, -0.0645, +0.0074, +0.0624, -0.1972, -0.1996, -0.1207, -0.1015, +0.0720, +0.0260], +[ +0.0007, -0.1637, +0.1202, -0.1045, +0.2969, +0.1975, -0.1374, +0.1684, +0.0790, +0.2108, -0.0220, +0.0773, +0.0046, +0.0205, -0.1746, +0.3445, +0.0773, +0.0005, +0.0251, +0.3337, -0.3365, +0.3956, -0.2011, +0.2489, +0.1875, +0.0282, -0.4611, +0.2249, +0.0182, -0.1252, -0.1899, +0.1563], +[ -0.0142, +0.0174, +0.1562, +0.0763, +0.1314, -0.0686, +0.3657, -0.0132, -0.0737, +0.0247, +0.0431, -0.2967, +0.0002, +0.2221, +0.1011, +0.1039, -0.0503, -0.3926, +0.1014, -0.1349, -0.1005, +0.1254, +0.0250, -0.1482, -0.2554, +0.1027, +0.1661, -0.1071, -0.0521, -0.0568, +0.1508, +0.0668], +[ -0.1106, +0.1260, -0.3472, +0.2769, +0.0344, -0.0668, +0.2888, +0.1583, -0.2782, -0.1161, -0.2939, +0.1309, -0.0010, +0.4387, +0.1623, -0.2627, -0.1011, -0.3530, +0.0604, -0.2499, +0.2736, -0.2715, +0.2004, -0.5407, -0.4915, -0.1778, +0.1274, -0.1071, -0.0170, -0.1190, -0.1540, -0.0364], +[ -0.1767, +0.2753, +0.2479, -0.0753, -0.2057, -0.2379, -0.0411, -0.0945, -0.1757, +0.1752, +0.1322, +0.0548, -0.0980, +0.1753, -0.0510, +0.2050, -0.0246, +0.5660, -0.2124, +0.1708, -0.1779, +0.2125, -0.0143, +0.1992, +0.1330, -0.2561, -0.1304, +0.2212, -0.2898, +0.0983, -0.1803, +0.1087], +[ -0.0503, -0.3082, +0.1056, -0.1658, +0.3225, +0.0727, -0.4463, -0.0153, +0.0195, +0.0962, -0.0483, -0.0484, +0.2464, -0.5537, +0.1422, +0.1233, -0.1036, +0.0864, -0.2107, +0.1319, +0.2002, +0.3051, -0.2054, +0.3069, +0.2754, +0.1618, -0.0593, -0.0373, +0.2155, -0.1157, -0.1199, +0.2342], +[ -0.1789, -0.1216, +0.0442, -0.1111, +0.1411, -0.0572, -0.4238, +0.0134, -0.1511, +0.0625, -0.0139, -0.2257, -0.1143, -0.2315, +0.3597, -0.1227, +0.0240, +0.2061, -0.0474, +0.0561, -0.2806, -0.0939, -0.0608, +0.1852, -0.0210, -0.3526, +0.0992, -0.3513, -0.0787, +0.1074, -0.0475, -0.1759], +[ -0.0510, +0.0215, +0.1585, -0.0757, +0.0357, -0.0553, -0.1151, -0.1353, +0.1000, -0.2570, -0.0664, -0.1762, +0.0430, -0.0365, +0.0198, +0.1154, -0.5763, +0.0393, -0.0443, +0.0504, +0.0482, +0.1528, +0.1955, -0.0493, +0.2712, -0.0688, -0.1406, +0.1479, +0.0204, +0.0838, -0.2282, +0.2307], +[ -0.1682, -0.0467, -0.0758, +0.3832, -0.1471, +0.0612, +0.3901, +0.1065, +0.2009, -0.3104, -0.2998, -0.3175, -0.0722, +0.1549, -0.2472, -0.1729, +0.0841, -0.1691, +0.1407, -0.1969, -0.0491, +0.0103, +0.1179, -0.1327, -0.1275, +0.0368, +0.0953, -0.1660, -0.0245, -0.3851, +0.1340, -0.1417], +[ +0.0114, -0.0822, -0.2575, -0.0169, +0.1292, +0.0791, -0.0803, +0.0061, -0.0445, -0.2228, +0.0215, +0.1863, +0.2645, -0.0295, +0.0756, -0.2138, -0.1607, +0.0527, +0.0592, -0.1770, -0.0982, -0.1096, +0.0925, -0.0325, +0.0047, +0.1512, +0.0663, -0.1348, +0.0084, -0.1352, +0.0189, +0.1428], +[ +0.0052, +0.1124, +0.1083, +0.1163, +0.0787, +0.0839, +0.0839, +0.0506, +0.0537, +0.1066, +0.1034, -0.1299, -0.1434, +0.0188, +0.1823, +0.1403, -0.4525, +0.0949, -0.0981, +0.0722, -0.1085, -0.2382, +0.1028, +0.0664, +0.1976, +0.1073, -0.2736, +0.2433, -0.3520, -0.0386, -0.2319, -0.0724], +[ -0.3279, -0.1491, -0.1409, +0.2056, -0.1464, +0.0543, +0.1842, +0.1104, -0.2819, +0.0769, -0.1159, +0.0228, -0.0988, +0.0026, -0.1204, -0.0780, -0.2018, +0.1755, +0.1574, +0.0222, +0.1662, -0.2193, -0.0718, +0.0010, -0.0123, -0.0120, +0.2587, +0.0358, -0.1435, +0.0017, -0.2620, +0.0965], +[ -0.1144, -0.1048, +0.2211, -0.0726, -0.1721, -0.2475, -0.3226, +0.0120, +0.0908, +0.0375, -0.0974, +0.0490, -0.1180, -0.3155, -0.2565, -0.0092, -0.4400, +0.2027, -0.1459, +0.1043, +0.0771, +0.0825, -0.1541, -0.0713, -0.0437, -0.0249, -0.1757, -0.1115, +0.0457, +0.1141, -0.2567, +0.0405], +[ +0.0587, +0.1083, +0.0729, +0.2131, -0.1586, +0.2208, -0.1576, -0.0811, -0.0467, +0.2201, -0.1082, -0.2077, +0.0030, -0.1222, +0.2023, +0.1155, -0.1616, +0.0105, +0.1167, -0.1257, +0.4859, +0.1337, -0.0169, -0.0163, +0.2076, +0.0367, -0.0050, -0.2590, -0.0800, -0.2192, +0.0938, +0.1126], +[ -0.3834, -0.0180, -0.2714, +0.0303, +0.0784, -0.1242, +0.1105, +0.0237, -0.0085, +0.2615, +0.0189, -0.3734, +0.0088, +0.1211, -0.0838, +0.0067, +0.1956, +0.1577, +0.2132, -0.0044, -0.2748, +0.1417, +0.0201, +0.1002, +0.0311, -0.0052, -0.1695, -0.0750, +0.2200, -0.2848, +0.0438, -0.0442], +[ -0.1496, +0.1258, +0.1903, -0.0337, -0.1470, -0.0530, +0.0519, -0.0037, +0.0342, +0.0404, -0.0950, -0.0840, +0.1083, -0.0488, +0.0427, +0.1454, +0.0851, -0.0203, -0.2354, +0.1562, +0.1899, +0.3145, +0.0013, +0.1608, +0.0126, +0.2080, -0.1409, -0.0746, +0.0580, -0.1045, -0.1753, +0.1225], +[ -0.0349, +0.1354, -0.1052, -0.1189, +0.0288, -0.0257, +0.0813, -0.1559, +0.1267, +0.0664, +0.2004, +0.1232, +0.2557, -0.1729, -0.0666, +0.1644, +0.1043, -0.2672, +0.0537, +0.0566, -0.1738, +0.0036, +0.1406, -0.0574, -0.0556, +0.3336, -0.0328, -0.1624, +0.0132, -0.0627, -0.1523, +0.0552], +[ -0.3105, +0.2681, -0.5462, +0.2785, -0.2453, -0.2965, +0.1436, +0.0786, -0.3242, -0.3518, +0.1025, +0.2219, -0.1324, +0.1681, +0.0701, -0.0938, +0.1574, -0.5157, +0.3574, -0.1100, +0.2647, -0.1698, +0.2684, -0.3876, -0.6240, -0.1013, +0.2920, -0.3569, -0.0008, +0.0974, +0.1444, -0.3349], +[ +0.0848, -0.1191, +0.2283, +0.0922, +0.2880, -0.1747, -0.4457, +0.1013, +0.2494, +0.1487, +0.1013, -0.0403, -0.0236, -0.1965, -0.0655, +0.0818, +0.0493, -0.0605, -0.1889, +0.1772, -0.2826, +0.2783, -0.1653, +0.3505, +0.4192, -0.1048, -0.1459, +0.0779, -0.0154, -0.1573, -0.1254, -0.1118], +[ -0.1817, +0.0719, +0.1352, +0.3208, +0.2142, -0.1149, +0.0020, +0.1617, +0.1055, +0.0395, -0.1802, -0.0631, -0.3172, +0.1971, +0.0197, +0.1271, -0.2375, -0.1849, -0.0134, +0.1223, +0.2566, +0.0311, -0.2746, +0.0278, +0.1233, +0.0167, -0.0363, +0.2146, -0.0466, +0.0732, -0.1490, +0.1040], +[ +0.1008, -0.1501, +0.0264, -0.4661, -0.0553, +0.0431, -0.3076, -0.0461, +0.1393, -0.1225, +0.2811, -0.0363, -0.0403, -0.3370, -0.0865, -0.1179, +0.1106, +0.2035, -0.2432, -0.0859, +0.0600, -0.0890, -0.0749, +0.0483, +0.0615, -0.0239, -0.4674, +0.0199, +0.0669, +0.1410, +0.1846, +0.2626], +[ +0.0663, +0.1486, -0.3928, +0.3257, -0.0316, +0.1377, +0.0418, +0.1921, -0.1616, -0.2265, -0.0917, +0.1582, -0.0537, +0.0295, -0.2264, -0.1921, -0.0225, +0.0928, +0.0747, -0.5268, -0.0068, -0.3328, +0.0437, -0.2361, -0.1408, -0.1234, +0.2216, -0.1372, -0.0499, +0.1940, +0.0098, -0.2953], +[ +0.0290, -0.1583, -0.0172, -0.1748, -0.0042, -0.0725, -0.2227, -0.1366, -0.1771, +0.1987, +0.3142, +0.1889, +0.0195, -0.5461, +0.0921, +0.1407, -0.1656, +0.1985, +0.0113, +0.2613, +0.2925, +0.1166, -0.1286, +0.1031, -0.2228, -0.0605, -0.2151, +0.2477, +0.1602, -0.0109, +0.0207, +0.1257], +[ +0.0630, -0.1688, +0.1662, -0.2327, +0.2832, +0.1350, -0.1658, +0.0504, -0.0502, +0.1736, +0.1002, -0.0051, -0.0311, -0.0628, +0.0039, +0.5085, -0.2191, +0.5105, -0.0927, +0.2833, -0.2828, +0.1078, +0.0406, -0.0392, -0.2372, +0.1508, +0.0556, +0.0313, +0.1296, +0.1315, -0.1143, +0.1632] +]) + +weights_dense2_b = np.array([ -0.0655, +0.0020, +0.0358, -0.0192, +0.0570, +0.0000, +0.0711, -0.0145, +0.0294, +0.0139, -0.0215, -0.0952, +0.0000, +0.0526, -0.0585, +0.0633, -0.0332, +0.0030, +0.0107, +0.0830, +0.0140, +0.0888, -0.1115, -0.0722, +0.0240, +0.0476, -0.0807, -0.0421, +0.0000, -0.0557, -0.0403, +0.0034]) + +weights_final_w = np.array([ +[ -0.0230], +[ +0.0730], +[ -0.2093], +[ +0.0463], +[ -0.1983], +[ -0.0031], +[ +0.2101], +[ -0.0066], +[ -0.1481], +[ -0.1615], +[ -0.1766], +[ +0.1332], +[ -0.0012], +[ +0.2332], +[ -0.0380], +[ -0.3066], +[ -0.1738], +[ -0.2982], +[ +0.0285], +[ -0.1548], +[ +0.2539], +[ -0.2544], +[ +0.2006], +[ -0.4121], +[ -0.2084], +[ -0.0381], +[ +0.2733], +[ -0.3076], +[ +0.0013], +[ +0.0957], +[ -0.1298], +[ -0.1112] +]) + +weights_final_b = np.array([ +0.0352]) + +if __name__=="__main__": + demo_run() diff --git a/examples/pybullet/gym/enjoy_TF_InvertedPendulumSwingupBulletEnv_v0_2017may.py b/examples/pybullet/gym/enjoy_TF_InvertedPendulumSwingupBulletEnv_v0_2017may.py new file mode 100644 index 000000000..311b33c3b --- /dev/null +++ b/examples/pybullet/gym/enjoy_TF_InvertedPendulumSwingupBulletEnv_v0_2017may.py @@ -0,0 +1,172 @@ +import gym +import numpy as np +import pybullet as p +import envs +import time + +def relu(x): + return np.maximum(x, 0) + +class SmallReactivePolicy: + "Simple multi-layer perceptron policy, no internal state" + def __init__(self, observation_space, action_space): + assert weights_dense1_w.shape == (observation_space.shape[0], 64.0) + assert weights_dense2_w.shape == (64.0, 32.0) + assert weights_final_w.shape == (32.0, action_space.shape[0]) + + def act(self, ob): + x = ob + x = relu(np.dot(x, weights_dense1_w) + weights_dense1_b) + x = relu(np.dot(x, weights_dense2_w) + weights_dense2_b) + x = np.dot(x, weights_final_w) + weights_final_b + return x + +def demo_run(): + env = gym.make("InvertedPendulumSwingupBulletEnv-v0") + + cid = p.connect(p.GUI) + + pi = SmallReactivePolicy(env.observation_space, env.action_space) + + while 1: + frame = 0 + score = 0 + restart_delay = 0 + obs = env.reset() + + while 1: + time.sleep(0.05) + a = pi.act(obs) + obs, r, done, _ = env.step(a) + score += r + frame += 1 + still_open = env.render("human") + if still_open==False: + return + if not done: continue + if restart_delay==0: + print("score=%0.2f in %i frames" % (score, frame)) + restart_delay = 60*2 # 2 sec at 60 fps + else: + restart_delay -= 1 + if restart_delay > 0: continue + break + +weights_dense1_w = np.array([ +[ +0.5877, -0.5825, -0.5542, -0.2557, -0.4485, +1.4126, +0.2701, -0.6204, -0.2580, +0.2106, -0.2296, +0.7949, +0.6224, -0.0186, +0.4216, +1.0924, -0.1538, -0.2818, +0.4855, -0.2496, +0.7461, -0.6156, +0.0801, +0.7871, -0.4312, -0.9585, +0.1566, -0.2218, -1.0393, +0.6104, -0.5339, +0.8258, +0.4064, +0.0503, +0.4753, -0.8161, +0.0812, +0.2311, -0.9492, -1.1791, +1.2375, +0.2916, +1.2290, +0.2796, -0.8864, -1.1424, -0.5714, +0.1413, +0.7340, -0.4152, +0.2832, -0.3886, +0.4810, -0.7092, -0.5966, +0.1089, +0.1007, +0.5226, -0.3343, +0.1760, +0.4099, -0.9913, -1.1694, -1.0018], +[ +0.4054, +0.2495, +0.5483, +0.7193, -0.1833, -0.2237, -0.4353, -0.1005, +0.2848, +0.3193, +0.2551, -0.1267, -0.7200, +0.3952, +0.3390, +0.2123, +0.1388, +0.8869, -0.1095, -0.1718, -0.4128, -0.7047, -1.1383, +0.6552, -0.0037, -0.4306, +0.2749, -0.9121, +0.4406, -0.0163, +0.4852, +0.6150, +0.1354, -0.7839, +0.2261, +0.3988, -0.2867, -0.5369, -0.0788, +0.0125, +0.2645, +0.1614, +0.7531, +0.5786, +0.6903, -0.7974, -0.2934, -0.3407, -0.7366, -0.1585, +1.0333, -0.0183, +0.2690, -0.5674, -0.0266, +0.0898, -0.1441, -0.0988, +0.7260, +0.7994, +0.1521, -0.3210, -0.1403, -0.2685], +[ -0.1050, -0.1826, +0.4717, -0.3515, +0.9648, -0.6372, -0.4686, +0.6959, +0.3540, +0.3515, +0.3239, -1.6177, -0.0651, +0.4653, +0.5058, +0.3465, -0.6693, -0.1118, -0.9582, -1.5053, -0.2256, -0.1989, -0.1901, -0.4282, -1.3479, -0.5629, +0.6828, -0.3515, -0.4724, +0.4618, +0.3008, +0.1280, +0.3720, -0.0545, +0.3104, -0.2527, +0.4614, +0.4994, -0.0099, +0.4597, -0.2667, -0.0374, -0.3393, +0.2675, -0.2635, -0.6062, +0.6404, +0.4500, -0.5105, -1.5838, -0.1396, +0.8804, +0.5794, -0.6823, -0.2125, +0.4510, +0.2424, +0.3407, -0.3354, +0.1306, -1.0006, +0.2358, +0.6479, +0.2027], +[ +0.7453, +0.8937, -0.9068, +0.2950, +0.4412, -0.6005, -1.3008, -0.0299, -0.6434, +1.4992, +0.7437, +0.4271, -0.0549, +1.2337, +1.6758, -0.7335, +0.2251, -1.1287, -1.0611, -0.4609, -1.6821, -0.3495, -0.5520, +0.2407, -1.0738, +0.9423, -0.6853, -0.0193, +0.6365, +0.3979, -1.8896, -1.1404, +0.4708, -0.2113, +1.3380, +0.6163, +0.5543, +0.4372, -0.3004, +1.0200, -0.4211, +0.5034, -0.1635, +2.0363, +0.1362, -0.2348, +0.7659, -1.6971, -1.3513, -0.2940, +1.2592, -0.3885, +0.5544, +0.8858, +0.0189, -1.8006, +1.3254, +0.6919, +0.3571, -0.5189, -0.0115, -1.7036, -0.8770, +1.2328], +[ -0.3661, +0.5205, +0.6454, +0.9826, -0.2945, -0.3074, +0.6830, +0.3798, +0.0578, +0.2303, +0.0181, -0.3768, -0.1607, +0.9089, +0.2910, -0.0265, -0.7435, +0.2932, -0.4173, +0.2959, +0.2079, +0.2649, +0.4184, +0.5963, +0.2120, +0.1885, +0.3611, +0.5193, +0.4538, +0.7072, +0.2274, +0.2233, +0.3970, +0.0560, +0.2132, +0.0186, +0.1522, -0.2460, +0.6636, +0.4592, -0.5299, +1.1159, -0.2861, +0.3664, -0.0648, +0.1958, -0.0180, -0.2585, +0.1408, +0.2639, -0.3697, +0.4727, +1.0321, +0.0851, +0.8350, +0.0830, +0.1625, -0.3849, +0.3014, -0.1514, -0.5960, -0.4083, -0.1023, +0.2080] +]) + +weights_dense1_b = np.array([ -0.4441, -0.2462, -0.2997, +0.3283, -0.2751, +0.0474, +0.0720, -0.2133, -0.0770, -0.0053, +0.0138, -0.3554, -0.2999, -0.2340, +0.0054, +0.4380, -0.1461, -0.2035, -0.8094, +0.0909, -0.1714, +0.2412, -0.1519, +0.0391, +0.1525, +0.1798, +0.1041, +0.4503, -0.0088, +0.0323, -0.0414, +0.4621, +0.1720, -0.1793, +0.1734, +0.1588, +0.2802, +0.1220, +0.1011, -0.1334, -0.0663, +0.4778, +0.1110, -0.1536, +0.1873, -0.0090, -0.5979, +0.3604, -0.2515, +0.4471, +0.2444, -0.2565, -0.1102, +0.0982, -0.0625, +0.3902, -0.0248, -0.2240, +0.0894, -0.0671, -0.3344, -0.0089, -0.0793, +0.2673]) + +weights_dense2_w = np.array([ +[ +0.1063, +0.2017, +0.0029, -0.2442, -0.1362, +0.2871, +0.2270, -0.1260, +0.5271, -0.1744, -0.4323, +0.3637, -0.0083, -0.0547, +0.4549, -0.0164, +0.0913, -0.1635, +0.3583, +0.3020, +0.2240, -0.3561, +0.0689, +0.0126, +0.0508, -1.2876, -0.0003, -0.0464, -0.2184, -0.2538, -0.5314, +0.5790], +[ -0.2180, +0.9455, +0.1446, -0.0724, +0.3771, -0.4290, +0.3908, -0.1787, -0.1009, -0.0539, -0.5364, -0.5032, -0.0631, -0.1185, -0.9890, +0.1935, -1.3280, -0.9275, +0.0670, -0.4234, -0.2061, +0.2674, +0.2963, +0.5353, -0.0221, -0.3095, +0.3255, -0.4568, +0.1337, -0.2826, -0.0538, -1.2748], +[ +0.3038, +0.0690, +0.1495, -0.1801, -0.0140, -0.1370, -0.2094, -1.9336, +0.2150, -0.5506, +0.3097, -0.9412, +0.1507, -0.0708, -0.8874, -0.1183, -0.0580, -0.7503, +0.2276, -0.3497, +0.0067, +0.2541, -0.1207, +0.5209, +0.5381, -1.2157, +0.4692, -0.0536, -0.2078, -0.9902, -1.0954, -1.3646], +[ +0.0581, -1.0529, -0.0581, +0.0473, -0.1228, +0.0913, -0.7037, +0.0711, +0.2062, -0.2102, +0.0475, -0.5266, +0.1324, -1.7822, -0.2985, +0.0172, +0.0110, -0.1624, -0.3990, -0.3165, +0.1287, -0.5655, +1.3905, -1.5117, +0.1874, -0.5032, -0.3292, +0.3378, -0.4749, +0.0765, +0.4345, -0.1121], +[ -0.1315, +0.2873, -1.0164, +0.2925, -0.5024, +0.2321, -1.3038, -0.7796, +0.0830, -0.3378, -0.1037, +0.0033, -0.7885, +0.4841, +0.1578, +0.1771, +0.1991, -0.1073, -0.0181, +0.0496, +0.0919, +0.0585, +0.4595, +0.1634, -0.2220, -0.0226, +0.4703, -1.8576, +0.3075, -0.4581, +0.2507, +0.2085], +[ +0.2704, +0.0379, +0.2313, -0.5561, -0.7413, -0.7693, +0.4787, +0.3033, -1.3572, -0.1323, -0.5202, -0.6937, -0.6824, -0.1782, -1.1647, -0.3461, -0.8537, +0.5416, +0.0638, -0.4208, -0.4464, +0.0009, -0.4284, +0.1806, +0.4172, -0.5477, +0.5549, +0.1937, -0.6029, +0.2084, -0.8289, -0.4554], +[ +0.3719, +0.4292, +0.2655, -0.1071, -0.1848, -0.0651, -0.4942, +0.0514, -0.1364, -0.1573, -0.0880, -0.4625, -0.0889, +0.2049, -1.2166, -0.2164, -0.3680, -0.7242, -0.1208, -0.3569, +0.0591, +0.3773, -1.2525, +0.4139, -0.1203, -0.2808, -0.2460, -0.3056, -0.2309, +0.1638, +0.1502, -0.2354], +[ +0.2204, +0.3725, +0.1919, +0.1579, +0.0064, +0.0469, -0.5103, -0.5866, +0.0043, -0.2127, -0.0816, +0.4270, -0.0504, +0.2804, -0.1278, -0.0507, +0.1206, -0.6903, -0.2278, -0.0725, +0.2198, +0.1067, +0.2162, +0.2341, -0.6394, -1.2196, +0.3075, -1.0066, +0.2299, -0.1218, -0.0533, +0.3365], +[ +0.2458, -0.1112, -0.6971, +0.1730, +0.0093, -0.0066, -0.2500, -1.2508, -0.0108, -0.4091, -0.5608, -0.0239, +0.4287, -0.1187, +0.0476, -0.1859, +0.1335, +0.0564, +0.2657, +0.3620, +0.4023, +0.0518, -0.1151, +0.0172, +0.0270, -0.4894, +0.3967, +0.1362, +0.1078, -1.4673, -0.6417, +0.0105], +[ -1.2388, -0.5692, +0.2738, -0.8659, +0.1514, +0.0501, -0.3654, -0.9175, +0.1314, -0.4386, +0.1715, +0.2538, +0.1051, -0.1091, +0.1875, -0.0295, -0.4012, -0.5032, -0.6742, -0.1109, +0.1125, -0.5023, -0.2032, -0.2740, -0.9510, +0.9708, -0.0643, -0.5463, -0.0895, -0.7491, +0.6833, +0.1855], +[ -0.4298, -0.0464, -0.0294, -0.0743, +0.0902, -0.6215, +0.0848, -0.3727, +0.2700, -0.3201, -0.2578, +0.2471, -0.6535, +0.2581, +0.2505, -0.1900, +0.1637, -1.5921, -0.1360, -0.0777, -0.0092, +0.0816, +0.0996, -0.0197, -0.7934, +0.0909, +0.2011, +0.1988, +0.1273, -0.0366, +0.0466, +0.1477], +[ +0.1492, +0.1446, +0.4695, -0.4109, -0.0883, -0.1199, +0.5098, +0.4549, -0.2600, +0.1315, -0.2831, +0.4905, +0.0915, +0.1289, -1.1824, +0.3743, -0.3307, -0.2300, -0.6317, -0.2493, -1.2151, -0.1466, -0.4567, -1.0819, +0.2878, -1.0267, +0.2882, +0.5518, -0.0761, +0.3592, +0.1387, -0.6827], +[ +0.1444, -0.1397, +0.1136, +0.0452, -0.3338, +0.1050, +0.2811, -0.1238, -0.4973, -0.0804, +0.0148, +0.1621, -0.8240, +0.2157, +0.1887, +0.0192, -1.2242, +0.2255, -0.2271, -0.4326, -0.0362, +0.0116, -0.2229, +0.4142, +0.3929, -0.2313, +0.1735, +0.0598, +0.1726, +0.1078, +0.1444, +0.3110], +[ -0.7894, -0.0617, +0.3583, -0.7723, +0.1178, +0.0533, -0.2285, -1.2298, +0.1727, -0.3313, +0.1193, -0.6488, +0.2996, -0.5132, -0.3868, +0.0174, +0.1475, +0.3516, -0.5912, -0.8573, +0.0606, -0.0528, -0.1981, +0.0196, -0.1688, -0.3554, -0.0234, -0.7206, +0.2903, -0.9404, -1.5141, -0.2722], +[ -1.2703, -0.7481, +0.4099, -0.7886, +0.2750, -0.0530, -0.6855, -0.7960, +0.2931, +0.0986, +0.2574, +0.3546, -0.1636, -0.6219, +0.3183, +0.1384, -0.0684, -1.2439, -0.8255, -0.1529, +0.2066, -0.4686, +0.3696, -0.2439, -1.6751, +0.7610, -0.5769, -0.5236, +0.2315, -0.4293, +0.7452, +0.6290], +[ +0.1636, -0.0258, -0.0946, +0.5087, -0.2138, -0.5867, -0.1223, +0.0970, -0.5604, -0.3155, +0.2778, +0.2844, -0.6220, +0.0870, +0.1567, -0.8622, +0.2385, +0.3428, +0.1315, +0.2830, -0.3414, -0.1083, -0.0021, +0.4448, -0.1093, +0.5797, +0.5512, +0.0886, +0.2515, -0.1098, -0.5983, -0.1664], +[ +0.0332, -0.1306, +0.2431, -0.5394, -0.2755, -0.4544, +0.3230, +0.0475, -0.4289, +0.1263, -0.7816, +0.2001, +0.1425, +0.2706, -1.0709, -0.3947, -1.3802, -0.1414, -0.1457, -0.7114, -0.6793, -0.0257, -0.8971, -0.2432, +0.0006, -0.3711, +0.2958, -0.0177, +0.1747, -0.0733, -0.3160, -0.6292], +[ +0.2540, +0.4159, -0.4193, +0.4756, -0.5615, -0.0777, -0.1692, -0.2047, -0.6844, -0.2723, +0.0727, -0.1912, +0.0989, +0.1546, +0.4719, -0.2639, -0.1997, +0.2235, +0.5461, +0.2992, -1.6747, -0.3055, -0.7582, +0.0934, +0.2088, -0.2527, +0.2810, -0.0126, -0.2710, -0.7904, -0.2154, -0.5613], +[ -0.2470, +0.1133, -0.1563, -0.4254, +0.5442, +0.1291, +0.2176, +0.0374, -0.8939, -0.4140, +0.1537, -0.1740, +0.9369, -0.0037, -0.4261, -0.7104, -0.7777, +0.1905, -0.5320, -0.1168, +0.0347, -0.0454, -0.3947, -0.6101, +0.2560, -0.2748, -0.0115, +0.0442, -0.0840, -0.0564, -0.2105, -0.3223], +[ -0.0404, +0.1026, -0.3563, -0.2962, -0.7801, -0.2794, -0.1065, +0.4522, +0.2426, +0.1916, -0.8589, +0.1918, +0.4101, -0.1290, -0.3302, +0.1000, -0.0601, -0.2014, -0.7935, +0.4843, -0.6731, +0.2180, +0.1019, -0.2928, +0.0366, -0.4442, -0.0406, -0.4545, -0.2187, +0.1910, +0.9510, -0.1191], +[ +0.0344, -0.6187, -0.1423, +0.3670, -0.7356, -0.0288, -0.1769, -0.9789, -1.3008, -0.4707, +0.1346, -0.1823, -0.2180, -0.4896, -0.0455, -0.7968, -0.3335, +0.6360, +0.2356, -0.0207, -0.2652, +0.2302, -0.3929, +0.2243, +0.6438, +0.7061, +0.2904, +0.1324, -0.4476, +0.2047, -0.6898, -0.6214], +[ -0.0215, -0.7005, -0.0687, +0.0166, -0.3514, -0.0745, +0.0922, +0.5453, +0.0969, +0.0386, -0.0103, +0.1984, -1.0903, -0.2738, -0.4855, +0.3083, +0.2451, +0.5611, -0.3741, +0.2794, +0.0953, -0.3711, -0.1832, -0.2603, +0.3729, +0.2859, -0.3258, -1.2615, +0.0928, -0.1043, +0.1818, +0.1052], +[ +0.2063, -0.4528, -0.0057, -0.0972, -0.1732, +0.0062, -0.5985, +0.2504, -0.3243, -0.5488, -0.1981, +0.0969, -0.8003, -0.2163, -0.6253, +0.1420, -0.1593, +0.1623, -0.0719, +0.0738, +0.3514, -0.4224, +0.0098, -0.0067, +0.2754, +0.1454, -0.3292, -0.0407, -0.7088, +0.7650, -0.0182, -0.0452], +[ -0.1059, -0.6218, +0.1371, -0.2479, -0.0653, -0.0035, -0.3983, +0.0243, -0.2188, -0.3608, +0.3230, -0.6048, +0.0848, -0.9398, +0.1182, -0.2141, +0.0755, +0.1749, -0.5544, +0.0777, +0.0288, -0.4650, -0.1328, +0.0272, -0.1134, -0.5497, -0.7305, +0.2035, -0.1138, -0.3764, -0.1077, -0.0619], +[ -0.2962, -0.2979, -0.5164, -1.1713, -1.1070, -0.3612, +0.0832, +0.5215, +0.4963, +0.1109, -2.0335, +0.0426, +0.6391, +0.1183, -0.3604, -0.0953, +0.1748, +0.1531, +0.1823, +0.3383, -0.3340, -0.1464, +0.0583, -0.7169, +0.1044, -0.1128, +0.1358, -0.5949, -0.5330, +0.0007, +0.4265, -0.1255], +[ -0.6321, -0.4892, -0.1697, -0.0665, -0.1715, -0.0042, -0.1025, +0.2831, +0.3383, +0.0200, +0.3494, +0.2269, +0.0419, +0.0365, -0.4095, +0.2798, -0.3788, +0.0791, -0.6231, -0.0929, -0.2438, -0.3717, +1.1090, -0.7410, +0.5276, -0.0525, +0.1586, -0.7940, -0.1403, +0.5189, +0.4408, +0.2783], +[ +0.0863, -0.1234, +0.1770, +0.1606, -0.0455, -0.0650, -0.5722, -1.1812, +0.1314, -0.7228, +0.3411, -0.0359, -0.0146, +0.0060, +0.2504, -0.1236, +0.2839, -0.7190, +0.0244, +0.0833, +0.0597, +0.0164, +0.1194, +0.2457, -0.8212, -1.6772, +0.3122, -0.0719, +0.1411, -0.3111, -1.3788, +0.1171], +[ -0.4888, -1.0319, -0.1769, +0.1639, +0.0734, -0.4566, -1.0295, +0.5195, -0.5277, +0.0296, -0.0732, +0.2698, -0.4389, -0.6899, -0.6707, +0.0360, -0.0028, -0.6112, -0.8115, -0.2616, -0.0706, -0.5321, -0.2747, -1.1524, -0.0645, -0.0421, -0.3517, -0.4075, -0.1166, +0.6472, +0.0250, -0.3585], +[ -0.3122, -0.2761, -0.0860, -0.2080, -0.2592, -0.1262, -0.0000, +0.0064, +0.3869, -0.0712, +0.0700, -0.9122, +0.1585, -1.0705, -0.4595, +0.1414, -0.4563, -0.3509, +0.1370, -0.4546, +0.0924, -0.5005, +0.8518, -1.4722, +0.4280, -0.2569, -0.1950, -0.3892, +0.0974, +0.0142, -0.0750, -1.0935], +[ -0.2389, -0.1222, +0.1513, -1.0903, -0.0777, +0.2233, -0.2945, -1.0573, -0.6673, -0.9787, +0.4047, -1.2823, +0.0238, -0.9849, +0.1218, -0.0379, +0.1686, -1.5184, -0.0359, -0.2899, -0.0147, -0.2620, -0.0294, +0.1790, -0.4546, -0.1393, -0.2614, -0.1130, +0.3277, -0.5504, -1.4897, +0.4290], +[ +0.3427, -0.1801, -0.9729, -0.2763, -0.8175, -0.2292, -0.2283, -1.0905, -0.3877, -0.3596, -0.0185, -0.5790, -0.1083, +0.1029, +0.2087, -0.2265, +0.3843, +0.3569, +0.4135, +0.1367, +0.1019, -0.0472, -0.1326, +0.3414, +0.3957, +0.2921, +0.2106, -0.0877, -0.3301, -1.3795, -1.9779, -0.4937], +[ +0.1940, -0.2997, -0.4792, +0.2675, -0.6258, -0.0457, -0.5112, -0.0076, -0.6497, -0.7706, +0.1871, -0.1602, -0.0135, +0.4243, -0.5747, -0.5883, +0.4021, -0.2582, +0.3381, +0.3950, +0.0503, +0.0106, +0.2930, +0.2948, +0.0231, +0.4963, +0.6190, +0.3516, -0.9469, -0.0323, -0.0254, -0.3314], +[ -0.0666, -0.3086, +0.0050, -0.7425, +0.0498, -0.1735, +0.0643, -0.7302, -0.2838, -0.4926, +0.2588, -1.0888, +0.0914, -0.2110, +0.3146, +0.0769, +0.1527, -0.7908, +0.1144, -0.4159, -0.1099, -0.2469, +0.1520, +0.3110, -0.6905, +0.1466, -0.1214, -0.5032, +0.0486, -0.3263, +0.0748, +0.4858], +[ +0.3977, -0.0844, +0.0825, -0.0687, -0.8396, +0.2654, -0.0521, -0.1041, -0.5838, -0.3881, -0.0133, +0.0767, +0.3582, +0.1250, -0.3787, +0.2232, -1.6387, +0.1836, -0.2685, -0.4428, +0.1816, -0.1108, +0.1340, +0.0555, -0.0085, +0.0386, +0.1277, +0.0295, -0.7560, +0.0657, +0.0095, +0.0913], +[ -0.3619, +0.2578, +0.3163, +0.1775, +0.1437, -0.1839, +0.1491, -0.4246, +0.3383, -0.5554, +0.2321, +0.2196, -0.2709, -0.0673, +0.0790, +0.0549, +0.0146, -1.4400, -0.3682, -0.4452, +0.1132, -0.0693, +0.4161, -0.0508, -0.2573, +0.3547, +0.2300, -0.0433, +0.3701, -0.0716, +0.0865, +0.3202], +[ -0.2407, -0.3514, -0.2882, -0.1980, +0.3598, -0.3302, +0.3311, +0.1154, +0.1423, -0.2290, -0.6468, +0.2341, +0.0219, -0.3510, -0.8240, +0.1463, -0.3198, -0.0513, -0.9552, -0.2212, -0.1091, -0.5052, +0.1874, -0.1514, -0.7181, +0.1132, -0.5173, +0.2874, +0.4601, +0.3317, +0.1209, -0.4715], +[ +0.4039, -0.0515, -0.1019, +0.4119, +0.1023, -0.0505, +0.3062, -0.5871, -0.3284, -0.6936, -0.2142, -0.0067, -0.8245, +0.0604, +0.2082, +0.2818, +0.4094, -1.2403, +0.2902, -0.4497, +0.3492, -0.2630, +0.2257, +0.2616, -0.0756, +0.3950, +0.1607, -0.4299, -0.0042, -0.3791, +0.0144, +0.3923], +[ +0.2782, -0.1456, -0.0002, +0.3011, -0.2252, +0.0572, +0.1349, -0.1567, -0.2850, -0.2994, +0.1602, -0.0868, -0.5167, +0.4240, +0.2210, +0.1657, +0.0883, -0.1288, -0.0227, -0.3949, +0.1043, -0.1381, +0.0739, -0.0357, -0.1723, -0.2657, +0.1199, -0.1253, -0.8570, +0.1793, +0.0042, +0.2571], +[ +0.1808, +0.0781, -0.0530, +0.3645, -0.0659, -0.0229, +0.0723, -0.2956, +0.0014, +0.0886, -0.2523, -1.1491, +0.1169, +0.1121, -0.8267, +0.0281, -0.1044, -0.2294, +0.0513, -0.9215, +0.2674, +0.0013, -0.0650, +0.2553, +0.0816, -0.7934, +0.2155, -1.3771, -0.1983, -0.3055, +0.2549, +0.0883], +[ -0.1989, -0.3779, +0.2484, +0.0978, +0.3002, -0.2595, -0.0993, -0.7726, -0.0245, -0.6115, +0.0579, -0.7989, -0.0208, -0.0149, -1.4722, +0.3503, -0.1758, -0.4039, -1.9504, -0.2489, -0.2551, +0.0146, -0.1026, -0.6208, +0.3920, -0.8281, -0.3682, -0.3127, +0.1773, -0.0195, -0.3558, -0.4386], +[ +0.3965, +0.2776, -0.0051, -0.3705, -0.3877, +0.0462, +0.2481, +0.0638, -0.5678, +0.2069, -0.2101, -0.3165, +0.0694, +0.3458, -1.0740, -0.2276, -0.2802, +0.1290, +0.3323, -0.6620, -1.0497, +0.0449, -1.4877, +0.6505, -0.0039, -0.5675, +0.1965, +0.1813, -0.1576, +0.2611, +0.0413, -0.7096], +[ -0.2771, -0.2090, +0.3171, -1.1884, +0.0306, -0.0635, -0.3072, +0.1631, -0.3107, -0.4344, +0.0475, -1.1032, +0.0050, -1.6227, -0.2919, +0.1205, +0.2610, -0.8912, -0.0364, -0.0302, +0.2187, -0.3477, -0.2162, +0.0541, -0.1731, -0.5533, -1.1136, -0.3114, -0.0904, +0.0234, -0.1263, -0.4608], +[ +0.2534, +0.2506, -0.5988, +0.3239, -0.5094, +0.2584, -0.1520, -0.3674, -0.5281, -0.2938, -0.0664, +0.3468, +0.1871, +0.4229, -1.1005, +0.0895, -0.1058, -0.2018, +0.5277, +0.1065, -2.9736, +0.0834, -0.4339, +0.5220, -0.3065, +0.0976, +0.4859, -0.0876, -0.5134, +0.0273, -0.4311, -0.0629], +[ -1.0013, -0.7660, +0.4058, -3.0321, +0.0533, +0.0794, -1.2917, -1.0423, +0.0235, -0.2441, +0.2986, +0.2793, +0.3185, -0.7738, +0.0709, +0.1806, +0.0065, -0.3429, -0.5904, -0.2240, -0.2247, -0.1551, +0.2479, -0.7799, -0.4368, +0.2717, -0.3030, +0.2230, -0.1252, -0.1713, -0.4256, +0.0946], +[ -0.5044, -0.3197, -0.0715, -0.0414, -0.2140, -0.2098, +0.3549, +0.0071, +0.2459, +0.0855, -0.4905, +0.4785, -0.0644, -0.0442, -0.5088, +0.1229, +0.3045, +0.0949, +0.5608, +0.0035, +0.2524, -0.1201, +0.4582, -0.9841, -0.2432, -0.4455, +0.1591, -0.0743, +0.1235, +0.1924, -0.2510, -0.0401], +[ +0.5910, -0.1650, -0.3341, +0.3136, -0.0819, -0.1846, -0.3609, +0.2772, -0.0841, +0.0612, -1.0691, +0.0500, -0.9307, +0.4375, -0.9497, -0.0597, -0.7687, +0.2086, +0.2169, -0.2657, -0.5765, -0.1814, -1.1223, +0.2315, +0.8662, +0.0936, +0.0851, -1.8539, -0.0759, +0.4064, +0.2069, -0.8922], +[ -0.1478, +0.3415, -0.2042, +0.5568, -0.7672, -0.1465, -0.1311, -0.2273, +0.0602, -0.2321, -0.2689, +0.1515, -1.0434, +0.2948, -0.4986, +0.1426, -0.7398, -0.4810, -0.0648, -0.3290, -0.1646, -0.1314, +0.0100, +0.3540, -0.2790, -0.0118, +0.4205, -0.5476, -0.1409, -0.1341, +0.3308, +0.1991], +[ +0.1532, -0.2862, -1.0844, +0.2213, -1.5302, -0.1382, -0.3119, -1.5098, -0.5984, -0.8033, +0.0835, -0.5982, -0.9022, +0.0325, -0.0693, -0.7834, +0.2342, +0.2223, +0.3314, +0.1252, +0.2134, -0.1843, -0.2085, +0.3213, +0.2308, +0.4200, +0.0852, -0.1438, -0.4427, +0.2863, -0.6166, -0.2677], +[ +0.2118, -0.5590, -0.3589, +0.1854, -1.1902, -0.2337, +0.3533, -0.0890, -0.3013, +0.4551, -0.2130, -1.0383, -0.2290, -0.1976, -1.3175, -0.5657, -0.2857, +0.5560, +0.1437, -0.3211, +0.1788, -0.1494, -1.0336, +0.2679, +0.5221, +0.5256, +0.1761, -0.0573, -0.2895, -0.0307, -0.2395, -0.8144], +[ -0.6139, -1.0856, -0.5362, -1.1959, -0.3413, -0.2647, -0.3687, +0.4510, +0.0818, +0.0710, -0.3482, -0.0611, +0.0474, -0.7248, -0.3042, -0.0303, -0.3762, +0.1941, -0.8735, +0.1872, -0.3612, -0.4090, +0.2817, -0.5842, +0.5135, +0.8080, -0.9240, -0.1925, -0.6654, +0.4267, +0.5304, -0.3396], +[ +0.1054, -0.1771, -0.1990, +0.3935, -0.1743, +0.0638, +0.3047, -0.0899, +0.4220, +0.1633, +0.1666, +0.1688, +0.0731, -0.0455, +0.2421, +0.4481, +0.5427, -0.1530, -0.1694, +0.4192, -0.3225, +0.1410, +0.2042, -2.2442, -0.4848, -0.9054, -0.2178, +0.3965, +0.4502, +0.1305, -0.0444, +0.1641], +[ +0.1336, +0.4509, +0.0056, +0.0940, -0.3145, -0.1580, -0.1152, -0.2864, -0.0145, -0.3372, +0.1072, -0.3662, -0.9957, +0.3660, +0.1886, -0.2086, +0.2193, -0.6053, +0.0879, +0.0350, +0.0216, +0.3407, -0.0691, +0.1355, -0.2493, -1.5064, +0.3744, -0.2654, -0.1921, -0.6361, -0.6030, +0.3290], +[ -0.4868, -0.0926, +0.1334, -0.8699, +0.0689, +0.1350, +0.0003, -1.6050, -0.2677, -0.6097, +0.0119, -1.0122, -0.1318, -0.8405, -0.1366, -0.1088, +0.0375, -1.0216, -0.0891, -0.2447, -0.0060, -0.3751, +0.1240, +0.0514, -0.5080, -1.2536, +0.4369, -0.1020, +0.1563, -0.6330, -2.3150, +0.0109], +[ -0.5112, +0.0425, -0.1887, -0.0305, +0.0264, +0.3452, -0.0750, +0.4954, +0.4284, -0.0069, +0.2399, +0.9169, -0.3441, +0.0420, -0.3492, +0.4726, -0.1203, -0.0110, -1.1251, -0.1880, -0.2703, -0.1990, +0.8598, -0.0085, +0.4910, -0.1798, +0.1495, -0.4904, -0.3907, +0.5274, +0.4777, +0.4670], +[ +0.4048, -0.2962, -0.0535, +0.3467, -0.0456, -0.0875, -0.0220, -0.2064, -0.8052, -0.2940, -0.1660, -1.3446, -0.0124, -0.3980, -0.0199, +0.0871, -0.4781, -1.0247, +0.2848, -0.2992, -0.1778, -0.0626, -0.0618, +0.0792, -0.7679, -1.4193, +0.0787, -0.3910, -0.1448, -0.2650, -0.3079, -1.2104], +[ +0.4581, -0.6689, -0.1144, -0.1282, -2.0230, -0.1221, -0.2954, -1.2605, -1.0560, -0.8669, +0.2610, -0.3799, -0.2883, -0.2970, +0.1364, -1.5987, +0.2303, +0.6106, +0.3841, +0.0955, -0.3148, -0.2655, +0.0052, +0.2312, +0.1658, +0.4766, +0.1847, -0.1055, -0.8075, -0.1123, -0.6706, -0.6556], +[ +0.1192, -0.1971, +0.4472, +0.1296, +0.0370, -0.1341, -0.7736, -0.1778, -0.0172, -0.2200, +0.1248, -0.4126, -0.3722, -0.2830, +0.0294, +0.2753, -0.2527, -1.0083, -0.7886, -1.5356, +0.0627, -0.2736, +0.4009, -0.4766, -0.2815, +0.8060, -0.0681, -0.8295, +0.4980, -0.0494, +0.4414, +0.4709], +[ -0.2893, -0.0060, +0.1617, +0.3636, -0.0534, -0.1653, +0.2161, -0.2260, +0.0668, -0.3423, +0.0087, +0.3678, -0.1448, +0.3106, +0.2831, +0.0889, -0.1325, -0.0667, -0.1139, +0.1482, +0.1164, -0.1613, +0.0733, +0.0005, -0.0419, -0.0656, +0.0986, -0.1560, -0.1506, -0.1254, -0.0902, +0.2643], +[ -0.2274, -0.5965, -0.0342, -0.6827, -0.1276, +0.0802, -1.2401, +0.2169, +0.0531, -0.0964, +0.2187, +0.0299, +0.2797, -0.7842, -0.5032, +0.1321, -0.2005, -0.3383, -0.3343, +0.1237, -0.0915, -0.6670, +0.0473, -0.6602, +0.1260, -1.2568, -0.2235, +0.1255, +0.3263, +0.1078, -0.0685, -0.0085], +[ +0.3530, -0.3798, -0.5576, +0.1040, -0.1875, +0.1399, -0.1539, -1.3570, -0.1105, +0.0370, -0.4067, +0.2991, +0.2811, +0.1082, -0.0573, +0.2104, -0.1550, +0.3365, +0.5019, +0.4842, +0.4671, +0.2578, -0.0029, +0.0016, -0.1533, -0.2459, +0.1866, +0.0699, -0.1873, -1.1082, -0.9151, -0.1758], +[ +0.2397, +0.2045, -0.2370, -0.3293, -0.3153, -0.2131, +0.1407, -0.0721, +0.0723, -0.0019, -0.3940, +0.1340, +0.3550, +0.1190, -0.6068, -0.0747, -0.7712, +0.1922, +0.6519, -0.0651, -0.4332, +0.0494, -0.7192, +0.4279, -0.1762, -0.5548, +0.1749, -0.2149, -0.6916, -0.0448, -0.1025, +0.0212], +[ -0.1101, -0.2853, -0.3405, +0.3059, -0.5009, +0.1139, +0.0602, -0.5256, -0.9340, +0.1189, -0.9900, -0.5092, -1.9114, +0.1249, -0.7890, -1.1437, -0.4686, +0.3687, -0.2993, -0.1058, +0.0966, -0.0284, -0.4845, -0.1683, +0.3489, -0.0173, -0.0521, -0.1265, -0.0182, -0.2870, +0.0246, -1.0009], +[ -0.1411, +0.1840, -0.3968, +0.2893, -0.9532, -0.2235, -0.1156, -0.7018, -0.2859, -0.1742, -0.6094, -0.0247, -1.0472, +0.1916, -0.4825, -0.4209, +0.2371, +0.0900, +0.0646, -0.1665, +0.5168, +0.0670, -0.1779, +0.3494, +0.3035, +0.0548, +0.2939, -0.3871, -0.0828, -0.5370, +0.0804, -0.2175], +[ +0.4992, +0.1187, -0.0464, +0.7284, +0.1106, -0.0542, -0.3548, +0.3451, +0.0281, -0.4796, -0.2282, -0.3789, -0.1253, -0.0824, -0.3919, +0.1890, -0.1683, -2.1362, -0.9594, -0.6882, +0.6158, -0.2412, +0.2336, -0.0142, -0.9257, +0.3819, -0.1836, -0.7676, +0.3713, -0.1364, +0.3317, +0.3696] +]) + +weights_dense2_b = np.array([ -0.0528, +0.0930, -0.3614, +0.2145, -0.3644, -0.0033, -0.0702, -0.0928, -0.1018, +0.0424, +0.0130, +0.2634, -0.1167, +0.2412, +0.0852, +0.0047, +0.1958, -0.1322, +0.0218, +0.2207, +0.1946, +0.0936, +0.2900, +0.2404, -0.1711, +0.1214, +0.2968, -0.2935, -0.0390, +0.1330, +0.0325, +0.2185]) + +weights_final_w = np.array([ +[ -0.2378], +[ +0.1955], +[ -0.2006], +[ -0.5372], +[ -0.3298], +[ +0.0891], +[ -0.3930], +[ +0.8978], +[ +0.3177], +[ +0.5357], +[ +0.2878], +[ +0.4998], +[ +0.2550], +[ -0.2619], +[ +1.1990], +[ +0.3115], +[ +0.3655], +[ +0.5774], +[ -0.4641], +[ +0.2613], +[ +0.1928], +[ +0.1458], +[ +0.4138], +[ -0.4969], +[ +0.4147], +[ +1.0689], +[ -0.1562], +[ -0.3669], +[ -0.3073], +[ +0.3354], +[ +0.9354], +[ +0.8831] +]) + +weights_final_b = np.array([ +0.2753]) + +if __name__=="__main__": + demo_run() diff --git a/examples/pybullet/gym/enjoy_TF_Walker2DBulletEnv_v0_2017may.py b/examples/pybullet/gym/enjoy_TF_Walker2DBulletEnv_v0_2017may.py new file mode 100644 index 000000000..f8da0978d --- /dev/null +++ b/examples/pybullet/gym/enjoy_TF_Walker2DBulletEnv_v0_2017may.py @@ -0,0 +1,302 @@ +import gym +import numpy as np +import pybullet as p +import envs +import time + +def relu(x): + return np.maximum(x, 0) + +class SmallReactivePolicy: + "Simple multi-layer perceptron policy, no internal state" + def __init__(self, observation_space, action_space): + assert weights_dense1_w.shape == (observation_space.shape[0], 128) + assert weights_dense2_w.shape == (128, 64) + assert weights_final_w.shape == (64, action_space.shape[0]) + + def act(self, ob): + x = ob + x = relu(np.dot(x, weights_dense1_w) + weights_dense1_b) + x = relu(np.dot(x, weights_dense2_w) + weights_dense2_b) + x = np.dot(x, weights_final_w) + weights_final_b + return x + +def demo_run(): + env = gym.make("Walker2DBulletEnv-v0") + + cid = p.connect(p.GUI) + p.configureDebugVisualizer(p.COV_ENABLE_GUI,0) + pi = SmallReactivePolicy(env.observation_space, env.action_space) + + p.configureDebugVisualizer(p.COV_ENABLE_GUI,0) + p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,0) + env.reset() + p.configureDebugVisualizer(p.COV_ENABLE_RENDERING,1) + torsoId = -1 + for i in range (p.getNumBodies()): + print(p.getBodyInfo(i)) + if (p.getBodyInfo(i)[1].decode() == "walker2d"): + torsoId=i + print("found torso") + print(p.getNumJoints(torsoId)) + for j in range (p.getNumJoints(torsoId)): + print(p.getJointInfo(torsoId,j))#LinkState(torsoId,j)) + + while 1: + frame = 0 + score = 0 + restart_delay = 0 + obs = env.reset() + + while 1: + time.sleep(0.001) + a = pi.act(obs) + obs, r, done, _ = env.step(a) + score += r + frame += 1 + distance=5 + yaw = 0 + humanPos = p.getLinkState(torsoId,4)[0] + p.resetDebugVisualizerCamera(distance,yaw,-20,humanPos); + still_open = env.render("human") + if still_open==False: + return + if not done: continue + if restart_delay==0: + print("score=%0.2f in %i frames" % (score, frame)) + restart_delay = 60*2 # 2 sec at 60 fps + else: + restart_delay -= 1 + if restart_delay==0: break + +weights_dense1_w = np.array([ +[ -0.5923, +0.0708, -0.2868, -0.5138, -0.1376, +0.3921, +0.3474, +0.2376, +0.6664, +0.1282, +0.1778, +0.2879, -0.3030, +0.1678, +0.1248, +0.1665, -0.1129, -0.5741, +0.1318, +0.4056, +0.2123, +0.1856, +0.3895, +0.0076, +0.4030, +0.1592, +0.2418, +0.0302, -0.2642, -0.0772, -0.5000, -0.0241, +0.3221, +0.1268, -0.1013, +0.1987, +0.2850, -0.3257, -0.1115, -0.3003, +0.0450, -0.2232, -0.1471, +0.5303, +0.6448, +0.0623, +0.4801, +0.1554, -0.0681, -0.4085, +0.6602, +0.1064, +0.1389, +0.6386, +0.5123, -0.3210, -0.0565, +0.2629, +0.5662, -0.2477, -0.1244, +0.0125, +0.1585, +0.0328, +0.0098, +0.0898, +0.4162, -0.0758, -0.4449, +0.4196, +0.0923, +0.4323, -0.2452, -0.1646, +0.8115, +0.3922, +0.2736, -0.2587, +0.6535, +0.1253, +0.0194, +0.3765, +0.2678, +0.4038, -0.1404, -0.2698, +0.1081, +0.0031, +0.4622, -0.1806, -0.2798, -0.2216, +0.2180, -0.0131, -0.3375, +0.2901, +0.2382, -0.0402, +0.4257, -0.2084, -0.1102, +0.6300, +0.0378, +0.5702, +0.0085, -0.4068, +0.5516, +0.1101, +0.4330, +0.0053, +0.0656, +0.6463, +0.2717, -0.5689, -0.2151, +0.1876, +0.6149, +0.1463, +0.2377, +0.4734, -0.5056, +0.5846, +0.1847, +0.4174, -0.0182, -0.0434, +0.4932, +0.1675], +[ -0.0323, +0.1990, +0.0035, +0.1374, -0.0162, +0.1237, -0.2231, +0.3492, -0.0100, +0.1316, -0.4408, -0.3253, +0.0478, +0.1452, +0.1131, +0.0822, +0.3286, +0.0443, -0.1344, -0.0785, -0.4665, -0.1749, -0.2719, +0.1309, +0.2622, -0.1787, +0.0132, +0.0169, +0.1424, -0.1192, -0.0486, +0.0994, +0.2762, -0.2210, -0.3417, -0.0453, +0.2207, +0.1077, -0.2448, +0.1683, +0.0924, +0.1232, -0.1016, +0.2795, +0.3878, -0.3440, -0.0133, -0.1766, -0.2442, -0.3664, +0.1455, -0.1039, -0.0158, +0.1746, -0.3620, -0.1886, +0.4197, -0.1972, -0.0783, -0.2513, +0.1576, -0.0283, +0.4125, -0.0183, +0.2840, -0.0190, -0.2548, -0.0755, +0.2639, +0.1207, -0.0633, -0.2397, +0.2823, -0.1291, +0.1105, -0.3745, -0.0536, -0.1834, +0.3941, -0.0746, -0.0950, +0.1063, -0.0520, -0.1393, +0.1153, -0.1724, -0.3873, +0.2700, -0.2059, -0.1402, -0.0576, -0.2060, -0.1197, +0.1246, +0.1575, -0.0923, -0.1524, -0.1861, +0.3553, -0.3640, +0.1487, +0.0001, -0.0485, -0.1573, +0.0710, -0.0659, -0.1262, -0.2399, +0.0415, -0.1848, -0.0352, -0.2980, +0.4015, -0.2548, +0.0777, -0.0573, -0.2989, +0.2988, -0.2647, -0.0445, +0.0962, +0.1144, -0.1381, -0.1443, +0.2538, -0.0203, -0.1139, -0.0137], +[ +0.0101, -0.1099, -0.2746, +0.1418, -0.2257, -0.0753, -0.0880, -0.5336, -0.3857, +0.4742, +0.0142, -0.0733, -0.2721, +0.1913, -0.4624, -0.0272, -0.0448, -0.1782, -0.0153, -0.1250, +0.0004, -0.1004, +0.1810, -0.1565, +0.1465, +0.2069, +0.2239, -0.2894, -0.2431, +0.1741, +0.0018, -0.0586, +0.1388, +0.1907, +0.0643, +0.0112, +0.0272, +0.1716, -0.2055, +0.1644, -0.1780, -0.4091, -0.4636, -0.1947, -0.1812, -0.1876, -0.3228, -0.2501, -0.3992, -0.2498, -0.1115, -0.4160, -0.2285, -0.1908, -0.3892, -0.0788, +0.2413, +0.0193, -0.3308, -0.0670, +0.2808, -0.3637, +0.0275, -0.2128, -0.0328, +0.4001, +0.3251, +0.4071, +0.2900, +0.1178, -0.4016, -0.2668, +0.0388, -0.2220, -0.3311, +0.0219, -0.0518, +0.0345, +0.2008, +0.2282, -0.0269, -0.2531, -0.5376, -0.5342, -0.0932, -0.0678, -0.0573, -0.3451, +0.3746, -0.3500, +0.1244, -0.3478, +0.1564, -0.4525, -0.0010, +0.0473, +0.1666, -0.0538, -0.2431, +0.2113, +0.0891, +0.2253, -0.2024, +0.0722, -0.0958, -0.0994, -0.1086, +0.1991, -0.2600, +0.1181, -0.1903, +0.1795, -0.0618, +0.0945, -0.2850, +0.0669, +0.1276, -0.2620, -0.4172, +0.2954, -0.4614, +0.0665, -0.0353, -0.0430, -0.0465, +0.3755, -0.1195, +0.2084], +[ +0.0486, -0.0247, +0.1675, +0.3216, -0.2398, +0.2336, -0.1924, -0.7100, +0.4238, -0.2251, -0.1045, -0.0824, -0.1782, +0.0657, -0.3393, -0.0225, -0.0442, -0.1090, +0.2088, +0.0038, -0.0173, -0.1676, +0.5690, -0.0158, -0.4489, -0.0216, +0.2328, +0.2235, +0.0548, +0.5565, -0.0349, -0.2223, +0.3198, +0.0895, -0.2805, -0.3474, -0.3506, -0.1487, -0.1241, +0.1920, +0.2093, +0.0074, -0.3248, -0.0891, -0.3713, -0.0435, -0.1554, +0.4472, +0.7299, -0.0282, -0.0727, +0.2084, -0.6375, +0.1005, -0.1439, +0.4170, +0.2134, -0.0393, -0.1067, -0.0428, +0.0359, -0.5413, -0.1321, -0.4210, +0.5401, +0.1721, -0.0240, -0.2389, -0.0596, -0.2618, +0.0683, +0.0520, +0.2830, -0.0237, +0.7084, +0.0032, +0.6990, +0.0166, -0.1442, +0.5299, -0.1867, -0.2291, -0.1312, +0.0618, -0.2247, -0.2138, +0.5049, +0.1986, -0.0194, +0.1705, +0.0661, +0.3354, -0.5126, +0.1879, +0.1266, +0.1527, -0.1481, +0.0534, +0.4824, +0.2081, +0.2159, +0.1490, -0.0946, -0.3135, +0.0068, +0.2763, -0.3787, +0.5304, +0.2405, -0.2065, -0.3856, -0.3421, -0.0920, -0.2431, +0.1800, -0.1242, -0.2831, -0.4493, -0.5491, +0.0137, +0.3891, -0.1039, -0.2604, -0.5305, -0.4397, +0.2243, +0.3320, -0.5214], +[ +0.2827, -0.0681, -0.0571, +0.1937, +0.0216, -0.0113, -0.0919, +0.0923, +0.1170, -0.1119, +0.0732, +0.3078, -0.5637, +0.1494, -0.1741, -0.1985, -0.0968, +0.1848, -0.2082, +0.1764, +0.2342, +0.1448, +0.0192, -0.2817, -0.1275, -0.0167, +0.0631, +0.1762, -0.2762, +0.1179, -0.0295, +0.1779, +0.0460, -0.3562, +0.0457, +0.1098, +0.2099, +0.1457, +0.0766, -0.2229, +0.1076, +0.1364, -0.0568, +0.2080, +0.2249, +0.1715, +0.1573, -0.0279, +0.2404, -0.1265, +0.0210, +0.4009, +0.2633, -0.1419, -0.3217, -0.0988, +0.2678, -0.0627, -0.1092, -0.4646, -0.2602, -0.0886, -0.1043, +0.3363, -0.1775, +0.0361, -0.2431, -0.2028, +0.0805, -0.1340, -0.1488, +0.2928, +0.0214, +0.3602, +0.0467, +0.1229, +0.2465, -0.1079, -0.1829, -0.1387, -0.2267, +0.1946, -0.2169, +0.3601, +0.3059, +0.0612, +0.2089, -0.1133, -0.0262, -0.0988, +0.2344, +0.2919, -0.2250, +0.0829, -0.2239, +0.0054, +0.1842, -0.4559, -0.2440, -0.0654, +0.1422, -0.2005, -0.0992, +0.0436, -0.3750, -0.4290, +0.2150, -0.2206, +0.3941, -0.2326, -0.2311, +0.0832, +0.1774, -0.0006, +0.0894, -0.2395, +0.1252, -0.2813, +0.2075, -0.0058, +0.3007, -0.0255, -0.1857, +0.4371, +0.1055, +0.1396, +0.0276, -0.3052], +[ -0.3549, +0.0244, +0.0128, -0.3312, -0.2543, +0.3405, +0.1028, -0.3751, +0.4624, +0.0440, +0.0182, +0.2063, -0.2831, -0.2593, +0.3181, +0.3479, -0.2162, -0.5026, -0.1913, +0.2037, -0.5378, +0.0117, -0.1922, -0.2390, +0.3209, -0.1556, +0.5278, -0.1576, -0.4052, -0.5298, -0.3115, -0.3645, -0.0674, +0.5300, +0.1836, +0.6099, +0.1260, -0.3193, -0.2892, +0.1283, -0.5849, -0.0597, +0.4373, -0.4667, -0.0563, +0.0303, -0.2873, -0.6184, -0.3731, +0.0120, -0.0374, -0.1511, +0.0177, +0.7742, +0.6095, -0.8566, +0.1299, -0.7749, +0.2235, -0.4156, +0.3176, +0.3276, -0.3272, -0.0117, +0.3580, +0.0025, +0.3159, +0.3943, +0.1240, -0.5251, -0.3494, -0.0956, -0.2783, -0.3312, +0.1153, +0.3601, -0.1687, -0.0901, -0.2105, -0.1598, -0.0696, -0.4319, +0.5911, +0.1031, -0.4128, -0.3107, -0.4399, +0.0569, +0.0503, -0.8104, +0.1960, -0.3432, +0.1123, -0.0527, +0.3002, -0.2125, -0.1912, -0.2889, -0.1487, -0.1293, +0.2371, -0.1723, +0.6543, +0.5766, +0.3827, -0.0465, +0.3146, -0.6999, +0.1115, +0.0831, -0.4371, -0.1094, -0.0659, +0.1174, -0.3606, +0.2013, +0.4883, -0.3268, +0.2838, +0.3358, -0.3129, +0.0897, +0.1626, -0.1402, +0.4700, -0.3773, +0.3199, +0.0778], +[ -0.0380, -0.0186, -0.0973, -0.0650, -0.0797, -0.0571, -0.2562, +0.3550, +0.0175, -0.2976, +0.1348, -0.1437, -0.2194, -0.0865, -0.1383, +0.1785, +0.2052, +0.1327, +0.3076, -0.0208, -0.5012, -0.3738, -0.0742, +0.0206, -0.0261, -0.0753, -0.0365, +0.2353, +0.2044, +0.1071, -0.1511, +0.1991, +0.1419, +0.2457, +0.2332, +0.2887, +0.0175, -0.0174, -0.3288, +0.0172, -0.2783, +0.1705, +0.0900, -0.1581, +0.0823, +0.1243, +0.0309, +0.1373, -0.1223, +0.0086, +0.3729, +0.0423, +0.2373, +0.4041, -0.2373, +0.3242, -0.3292, +0.2857, -0.1908, -0.1969, +0.4179, +0.0252, -0.0239, -0.3202, -0.2150, +0.0059, +0.1508, +0.3510, -0.2508, +0.2974, -0.3275, +0.1462, -0.3206, -0.3074, -0.1402, +0.3046, -0.1896, -0.1409, -0.1032, -0.2205, +0.0122, +0.0114, +0.0079, +0.0923, -0.0840, +0.1730, -0.1152, +0.3725, -0.1648, +0.0536, -0.1832, +0.0221, -0.0002, +0.1058, +0.0079, +0.0545, -0.4014, -0.0045, -0.0859, +0.1899, -0.1464, +0.0611, +0.1560, +0.2330, -0.0436, -0.0437, -0.0359, -0.1468, +0.4266, -0.4483, +0.1607, -0.0640, +0.3039, +0.1245, +0.0614, -0.0151, +0.1026, +0.4184, -0.3741, -0.1652, -0.1884, +0.0648, +0.0267, -0.0217, +0.1279, -0.1109, +0.2459, -0.1909], +[ +0.4641, -0.2639, +0.1744, +0.4878, -0.2263, -0.0335, +0.5683, +0.0308, +0.3132, +0.0384, -0.0191, +0.6840, +0.7869, +0.7729, -0.2036, +0.1718, -0.5897, -0.1966, -0.0254, +0.1200, +0.6171, -0.6490, +0.3407, +0.4501, -0.0544, -0.0178, +0.4335, +0.5922, +0.4188, +0.1670, -0.2214, -0.1771, +0.0564, -0.0337, -0.1317, -0.0320, +0.4909, -0.6020, +0.5674, +0.7039, -0.4565, +0.5487, -0.3368, +0.4934, -0.1279, -0.5785, -0.6351, -0.9523, +0.5945, +0.1008, -0.2629, -0.1561, +0.0582, -0.3995, -0.0903, +0.6003, +0.2845, -0.2892, -0.3994, +0.2377, +0.8273, -0.6761, +0.7568, -0.4131, +0.4980, +0.2917, +0.1099, +0.1988, -0.3377, -0.5839, -0.4254, -0.1366, +0.7022, +0.2762, -0.0126, -0.6649, +0.3256, +0.4342, +0.1040, +0.9052, +0.4308, -0.2127, +0.4446, +0.0384, +0.2398, -0.2750, +0.7937, +0.0828, -0.3238, -0.1872, -0.0145, +0.0556, +0.1063, -0.3786, +0.6058, -0.0708, +0.3147, +0.2582, +0.3061, -0.0249, +0.3195, +0.6195, +0.8043, +0.1070, +0.0869, +0.0387, +0.3916, +0.6197, -0.1543, +0.0553, +0.6231, -0.4391, +0.0212, +0.0637, -0.5223, +0.2129, -0.3591, -0.1149, +0.7172, +0.1986, -0.1989, -0.0314, +0.6212, -0.0091, -0.7394, -0.5792, +0.3289, -0.9215], +[ -0.4254, -0.1010, -0.2326, +0.0115, -0.2136, +0.0043, -0.2096, -0.1871, -0.3127, +0.3810, +0.2582, +0.0857, -0.0747, -0.0162, +0.3173, -0.3385, -0.6953, -0.1816, -0.0029, -0.5805, -0.4907, -0.2431, -0.0356, +0.0890, -0.4312, -0.3004, -0.2911, -0.0044, -0.1303, -0.4609, +0.4219, -0.8413, +0.3006, -0.0198, +0.0991, +0.1724, -0.6699, -0.5464, -0.2279, +0.1663, -0.5687, -0.0257, -0.4929, +0.3131, -0.2199, +0.6044, +0.3898, -0.9848, +0.3623, -0.0672, -0.3914, -0.0168, +0.4831, +0.1769, +0.4379, -0.3998, -0.5295, +0.4740, +0.0720, -0.2860, -0.2657, -0.2048, -0.6462, -0.1063, -0.3977, -0.0696, +0.3865, +0.1880, -0.2615, -0.1497, -0.2452, +0.6668, +0.3959, +0.1580, -0.0861, +0.0015, -0.4241, -0.8260, -0.2909, -0.2317, +0.2107, +0.0659, -0.1037, -0.4058, +0.0144, +0.0817, -0.5299, +0.0591, -0.1258, -0.5378, -0.9845, +0.4663, +0.1014, -0.8416, -0.4150, +0.0328, +0.1150, -0.3711, -0.2761, +0.2032, -0.2557, -0.1680, +0.3407, +0.1772, -0.2910, +0.5103, +0.4964, +0.0582, +0.3356, +0.5211, +0.3697, +0.3797, -0.1063, -0.1224, -0.7502, +0.0040, -1.0549, -0.4150, +0.5061, -0.0295, -0.2924, +0.5322, +0.5314, +0.0182, -0.5597, +0.1434, +0.3410, +0.3369], +[ +0.3056, +0.0843, +0.0543, -0.4615, -0.4151, -0.0575, -0.8068, -0.2107, +0.8528, +0.1961, +0.2841, -0.2850, -0.0830, -0.2409, +0.0112, +0.0230, +0.0239, +0.5198, +0.4115, +0.0110, -0.0818, +0.4822, +0.3047, -0.1824, +0.3432, +0.0778, +0.0768, +0.0894, +0.2638, -0.3116, -0.1630, -0.5821, -0.0214, -0.0087, +0.3884, +0.1033, -0.2790, -0.1378, -0.2609, -0.2486, +0.1585, -0.4514, -0.2467, -0.4613, -0.1185, +0.5398, -0.0848, +0.1043, -0.1359, -0.0675, -0.3464, +0.2428, -0.2526, +0.2612, +0.4603, +0.0659, -0.3555, +0.3165, +0.0506, -0.0040, -0.4325, -0.0251, -0.1762, +0.6595, -0.2948, -0.3917, +0.1515, +0.0745, -0.2204, -0.0646, +0.4103, +0.3584, +0.4389, +0.2079, +0.0346, +0.1363, -0.7773, +0.2108, -0.2785, -0.4362, -0.7424, +0.3171, +0.3104, +0.0360, -0.0472, -0.0106, -0.0949, +0.3420, +0.4692, +0.3801, -0.6458, +0.0883, +0.1774, -0.4107, -0.5429, -0.0189, -0.4815, +0.0808, -0.4501, +0.0710, +0.0171, -0.2874, -0.1613, -0.0986, +0.4779, -0.0379, -0.0432, -0.1339, +0.2031, -0.1244, -0.4811, +0.0729, +0.2716, +0.2948, -0.4478, -0.1647, +0.3046, +0.0196, -0.3698, -0.2645, +0.0715, +0.1403, +0.0169, -0.1153, -0.2641, -0.0276, +0.1861, +0.3948], +[ +0.2767, -0.0743, +0.2740, -0.4792, -0.7306, +0.0418, -0.1570, +0.4153, +0.0627, +0.4058, +0.4510, +0.3410, +0.0399, -1.0956, -0.5747, -0.1151, +0.2627, -0.1982, -0.1019, +0.7238, -0.0384, +0.3866, +0.3792, +0.2662, +0.2362, +0.1112, +0.2728, -0.2878, -0.0650, -0.0905, +0.3320, +0.3422, +0.7680, +0.4203, +0.4889, -0.3364, +0.1576, +0.2025, -1.0459, +0.1940, -0.5367, +0.4368, -0.1559, -0.0261, +0.0649, +0.6833, +0.0792, -0.1099, -0.9185, -0.5792, +0.2715, -0.5116, -0.8132, +0.5739, -0.4300, +0.2802, -0.0944, -0.8149, -0.2920, -0.8222, +0.1704, +0.0467, +0.0717, -0.0861, -1.1820, -0.0288, -1.2486, +0.2247, +0.4574, -0.3306, -0.2873, +0.1044, -0.0061, -0.6058, +0.7101, +1.0664, +0.0885, +0.2544, +0.2762, +0.9233, -0.4762, -0.1358, -0.4847, +0.3625, +0.2238, +0.5404, +0.4796, -0.4765, -0.0754, +0.0130, +0.0350, +0.8824, +0.6476, +0.2358, -0.0104, +0.6710, -1.3786, +0.1219, +0.8695, -0.9081, +0.5234, -0.7513, -0.4966, +1.2130, -0.8264, +0.8768, +0.1144, +0.0391, +0.0208, -0.4296, -0.2219, +0.5561, +0.0160, -0.7934, +0.0037, -0.1454, +0.7168, -0.0297, -0.2560, +0.3648, -0.6412, -0.7076, +0.3461, +0.0958, +0.2879, +0.2225, +0.4269, -0.2274], +[ -1.2371, +0.7142, +1.0170, -0.2385, +0.4375, +0.6428, +0.7528, -0.1837, +0.3177, +1.5337, +0.8810, +1.0799, +0.7406, -0.6905, -0.1914, -0.2182, +0.9355, +0.3845, +0.0422, -0.6012, +0.7606, -0.6731, +0.7571, -0.2129, -0.3527, +0.4415, -1.1536, -1.0436, -0.6994, +0.1156, +0.1110, -0.4602, +1.2682, -0.0122, -0.2747, -0.5565, +1.1461, +0.2052, -0.4670, +0.1062, +0.1336, +0.4687, -0.3789, -0.5272, +0.5302, -0.0505, -0.8930, +0.3562, +0.1406, +0.1925, +0.0953, -1.0493, -0.2918, +0.9845, -0.0997, -0.1381, -0.0345, +0.3173, +0.0242, -0.8146, +0.8637, +0.6093, +0.7513, +0.3913, +0.2520, +0.3459, +0.4740, -0.8409, -0.0319, -0.2245, -1.3980, +0.5117, +0.5224, -0.9587, +0.2602, -0.3061, -0.0077, +0.1915, -0.0583, +0.8455, -0.2225, +0.1052, +1.1755, +0.3301, -1.3673, +0.1438, +0.3685, -1.0758, +1.0890, -0.2946, +0.3831, +0.4291, -0.5933, +0.1440, +0.2730, +0.5047, -1.4292, +0.4666, -0.0684, -1.0907, +0.3267, -0.3991, +0.8139, +0.6090, +0.1770, +0.7682, -0.2264, +0.0630, -0.3205, -0.4079, -0.2719, +0.0128, -0.8448, -1.2259, -1.2494, -0.1504, +0.2575, -0.8282, +0.4063, +1.1256, +0.1730, -0.8418, +0.6516, -0.5008, -0.0957, +0.3784, -0.7828, -0.2556], +[ +0.4096, -0.4381, +0.0800, +0.4671, +0.2710, +0.3707, +0.1151, +0.0230, -0.1066, -0.6900, -0.1603, -0.3079, -0.0686, -0.6147, -0.3030, -0.1793, -0.7013, +0.1995, +0.2661, +0.2716, -0.0216, -0.7503, -0.5498, -0.1302, -0.3296, +0.3840, +0.0224, -0.1708, -0.1937, -0.2009, -0.5012, -0.4132, -0.1342, +0.2941, -0.3885, +0.0947, +0.0590, +0.1700, -0.4708, -0.1097, -0.0097, +0.3135, +0.2190, -0.6015, +0.0922, -0.0361, -0.3555, +0.0014, +0.2416, +0.7169, +0.0544, +0.0161, -0.4381, -0.0826, -0.2879, -0.2404, -0.3624, -0.3565, -0.0936, +0.1039, +0.0661, -0.2627, +0.1202, -0.3224, -0.5876, -0.3586, +0.1150, -0.3245, +0.3580, +0.0222, +0.3645, -0.1235, -0.1768, +0.1465, -1.0948, +0.0147, +0.3538, +0.2351, -0.3125, +0.3397, +0.3092, -0.1426, +0.1506, +0.1900, +0.0469, +0.0054, +0.3150, -0.0771, -0.6345, -0.3055, +0.4514, +0.1163, -0.2015, +0.2673, +0.6658, -0.0627, -0.4941, -0.0477, +0.1703, +0.0382, -0.1618, +0.6503, -0.4697, -0.3565, -0.6726, +0.1886, -0.3776, -0.1012, -0.3556, +0.1710, +0.1496, -0.3936, -0.0074, +0.4109, +0.1207, +0.6998, +0.3481, +0.2814, +0.1733, -0.0011, +0.1370, +0.2159, -0.1052, +0.3861, +0.1950, -0.7201, -0.7551, -0.4230], +[ -0.3067, -0.4930, +0.0005, -0.2896, -0.1727, +0.7936, +0.7091, -0.4756, -0.1008, -0.1327, +0.5747, +1.1786, -0.6373, -0.8808, -0.7177, -0.2952, -0.0674, -0.1895, -1.5115, +0.0899, +0.1620, +0.4005, -1.3567, -0.5376, -0.8410, +0.9262, -0.3323, -0.2384, -0.1566, -0.5104, -1.0051, -0.2508, -0.5976, -1.7098, -0.2825, +0.3746, -0.2511, +0.2700, -0.8215, -0.4912, +0.3659, -0.0335, -0.5009, +0.3888, +0.1754, +0.0389, +0.5997, +0.5174, -0.2969, -0.1951, -0.8337, -0.7546, +0.3798, -0.0360, +0.1299, +0.1715, -0.1466, -0.2220, -0.5778, -0.4419, -0.2217, +0.2688, -0.7268, +0.7278, +0.3627, -0.5958, +0.9821, -0.5816, +1.0788, +0.1393, -0.1474, +0.0149, +0.2589, +0.3256, -0.8790, +0.4376, -0.0024, -0.7049, -0.3868, -0.0158, +0.8335, +0.5016, -0.1198, +0.4702, -0.7057, -0.0416, +0.4448, +0.7836, -0.4379, -0.9832, -0.4550, -0.4196, +0.8538, -0.7044, -0.1322, -0.1303, +0.6359, -0.0804, +1.0178, +1.3486, +1.1624, +0.0790, -1.1682, -0.6815, -0.3072, -0.2573, -0.4431, +0.5407, -0.5736, +0.6607, +0.3793, -1.6072, -1.2694, +0.7025, -0.3560, +0.4921, -0.4464, +0.1878, +0.2828, -0.8566, -0.2740, +0.1552, -0.3026, +0.5256, -0.7969, -1.0224, -1.4169, -0.4385], +[ -0.1259, -0.6170, +0.2135, -0.3418, -0.3997, -0.2842, -0.3138, -0.3543, +0.2284, -0.5683, -0.6383, -0.2562, +0.2448, +0.0349, -0.0070, +0.3173, +0.3845, +0.0760, -0.0011, +0.1687, -0.2101, +0.2975, -0.1408, +0.4728, +0.3411, -0.8453, -0.1121, -0.0397, -0.2378, -0.7145, +0.2055, +0.0822, -0.0557, -0.1722, -0.3179, -0.1208, +0.2442, +0.1715, +0.1880, -0.1211, -0.0342, -0.0293, +0.0311, -0.1830, -0.0408, -0.6688, -0.2091, -0.0040, -0.7909, -0.5701, +0.5024, -0.3416, -0.5435, -0.3508, -0.1217, -0.2373, +0.1755, -0.1108, +0.1743, -0.0851, +0.1787, +0.2393, -0.1975, -0.0802, -0.2206, +0.0480, +0.1984, +0.3452, -0.5239, -0.5806, -0.1068, -0.1596, -0.7319, +0.4167, +0.2523, -0.4128, +0.1135, +0.0306, +0.1043, +0.0031, -0.0962, -0.4736, +0.1725, +0.4047, +0.1519, -0.2261, -0.0665, -0.0859, -0.2420, +0.0381, +0.0051, -0.9161, +0.2209, -0.6169, -0.1194, +0.2994, -0.0627, +0.0196, -0.0753, -0.3026, -0.1814, -0.1946, +0.5229, -0.3275, +0.4493, -2.3710, +0.5644, +0.3316, -0.1655, +0.2269, -0.7205, -0.7091, +0.2792, -0.0576, -0.2398, +0.0926, -0.0381, +0.3547, +0.2970, -0.6312, +0.2424, -0.1980, +0.4490, -0.3666, -0.4262, -1.0815, +0.0510, +0.1120], +[ -0.1522, +0.7263, -0.2575, +0.6404, +0.6986, +0.2308, +0.6524, -0.6431, +0.4774, +0.3122, -0.3521, +0.3393, +0.2929, -0.3382, +0.2161, +0.1669, +0.4713, +0.3194, -0.1374, +0.1473, +0.0257, +0.3532, -0.3252, +0.5917, -0.0704, -0.1053, -0.2127, +0.2276, -0.0699, -0.2108, +0.4681, -0.3924, -0.0363, +0.4286, -0.1897, -0.3929, -0.5962, -0.0255, -0.4458, -1.0351, -0.1633, +0.0820, -0.9262, -0.3648, -0.1328, -0.8021, -0.2717, +0.1889, -0.0327, +0.1726, +0.4866, -0.2176, -0.0771, +0.2216, -0.7842, -0.0576, +0.0865, +0.0882, -0.1196, -0.1501, -0.3229, +0.1669, -0.4632, -0.5473, -0.0691, +0.4595, +0.1466, -0.0135, +0.0910, -0.6819, +0.0899, -0.2865, -0.2059, -0.1933, +0.4151, -0.7514, -0.1771, -0.1813, +0.4952, -0.1999, +0.5819, +0.7551, +0.2075, +0.3148, +0.2755, -0.0200, -0.1676, -0.3802, -0.4465, -0.2035, +0.4219, +0.7001, -0.4227, -0.3968, -0.0350, +0.0262, -0.5200, -0.8271, +0.6630, -0.1405, +0.3552, +0.1478, +0.4814, -0.6110, +0.4737, -0.1415, +0.3233, +0.1054, -0.9952, -0.4454, +0.3679, +0.5347, -0.4850, -0.1063, -0.0520, -0.6590, -0.0886, +0.2500, +0.3348, +0.4235, -0.0064, -0.5327, +0.4028, +0.1859, +0.3544, -0.0486, -0.0698, -0.1593], +[ -1.4412, +0.3480, -0.3212, +0.5970, -0.1453, +0.2136, +0.0014, +0.3506, -0.0453, +0.6456, +0.1170, -0.1517, -0.6957, -0.5796, -0.1046, -1.8260, -0.5539, -0.3098, +0.4310, +0.1170, +0.2978, -0.1256, +0.3301, -0.4025, +0.1874, +0.1440, -1.0648, -0.6298, +0.7709, -0.2719, +0.0347, +0.0662, -0.3353, -0.0232, -0.6893, -0.7197, -0.7409, -0.4253, -0.0813, -0.0345, -0.3224, +0.0551, -0.2819, +0.6105, +0.7402, +0.0119, +0.7850, +0.3555, +0.3906, -1.0312, +0.8237, +0.4552, -0.0462, -0.0970, -0.1056, +0.1749, -0.2158, -0.0619, -0.6298, -0.3167, +0.1890, -0.4468, -0.2114, -0.5430, +0.5652, -0.0346, -1.1548, -0.9988, +0.2630, -0.1132, +0.0768, -0.4730, +0.4999, -0.6413, +0.2666, -0.2874, -0.3941, -1.4079, -0.0857, -0.0644, +0.2355, +0.2560, +0.3335, +0.1676, +0.8594, -0.3045, -0.0450, +0.5151, -0.1897, -0.4433, -0.5198, +0.6737, -0.0554, +0.7194, +0.6691, -0.1030, -0.0351, -1.1305, +0.1472, +0.3961, -1.1294, +0.9640, -0.4924, +0.8572, -1.0870, +0.4503, -0.0667, -0.4854, +0.0962, -0.7448, +0.5914, +0.1958, -0.3210, +0.1644, -0.1600, -0.9422, +0.6764, -0.2381, -0.5236, +0.2375, -0.7713, -0.4434, +0.2334, +0.4197, -0.1146, -0.0055, -0.2603, -0.3804], +[ +0.2623, -0.6742, -0.1993, +0.0275, -0.7052, +1.2116, +0.4374, +0.3504, +0.0669, +0.3822, -1.2969, +0.0477, -0.6903, +0.2683, -0.5223, +0.5357, -0.2184, -0.8535, +0.4472, +0.4117, +0.3604, +0.1036, +0.2050, -0.4264, +0.4200, -0.3343, +0.5134, +1.2498, +0.1218, +0.1369, +0.2551, -0.0446, +0.4509, +0.2681, -0.7028, -0.8939, -0.7081, -0.0569, +0.0521, +0.1812, -0.2422, -0.2498, -0.0139, -0.0250, +0.3727, -0.3403, +0.0781, +0.2812, +0.2414, +0.1040, +0.4258, -0.0754, -0.8383, +0.2211, +0.9545, +0.6634, +0.3905, -0.4359, +0.6621, -0.6212, -0.3982, +0.2255, -0.7956, -0.7635, +0.2918, +1.6278, +0.4458, -1.2421, -0.1383, -0.4592, -0.4291, +0.1865, -0.1378, +0.5386, +0.2323, +0.3259, -0.7551, -0.2441, -0.3889, +0.2272, +0.3650, +0.2131, -0.1952, -0.1559, -0.5230, +1.2104, +0.3986, -0.5949, -0.0793, +0.4432, +0.0015, +0.3842, +0.5633, -0.1258, +0.8018, -1.1682, +0.0577, +0.1036, +0.0183, -0.1660, +0.4307, +0.1333, +0.0457, -0.0437, -0.3825, -0.4111, +0.2496, -0.6148, +0.2306, +0.5412, +0.0872, -0.1177, +0.7272, -0.2590, -0.1273, -0.7244, +0.7958, +1.0682, +0.5466, -0.7884, -0.7472, +0.1050, -0.2250, +0.7092, -1.3658, -0.2327, -0.5164, -0.3347], +[ +0.0670, -0.4421, -0.5694, -0.4707, -0.9203, -0.4047, -0.0758, -0.6018, -0.6317, -0.0900, -0.0324, +0.4617, -0.2859, -0.0074, +0.7860, +0.2602, -0.3227, +0.3328, -0.0283, -0.6414, -0.1264, -0.4208, -0.0717, -0.2500, -0.0784, -0.5563, -0.1367, +0.1234, +0.3769, +0.6718, -1.4338, +0.1205, -0.6455, -0.2822, +0.6247, +0.0618, +0.1601, -0.7068, +0.1693, -0.0656, +0.3369, +0.2978, +0.1564, -0.1118, -0.3255, -0.4726, -0.0552, +0.2177, +0.0255, +0.2419, -0.3677, +0.0286, -0.1124, -0.5604, -0.2697, +0.5502, +0.5108, +0.0349, +0.1436, +0.2292, +0.3306, -0.0245, -0.2355, +0.2159, +0.3446, +0.0141, -0.4833, -0.6281, -0.5473, -0.1541, -0.1232, -0.0373, +0.4579, -0.1223, -0.1132, -0.3418, -0.0561, -0.1323, -0.0822, +0.1775, -0.0449, +0.5586, +0.4806, +0.1008, -0.4178, -0.5695, +0.2924, +0.0781, -0.0481, +0.0942, +0.2641, -0.1128, +0.1335, +0.3462, -0.2098, -0.6517, +0.2445, +0.1972, +0.3612, -0.0474, -0.6685, -0.3003, +0.1448, +0.3570, +0.1684, -0.0083, -0.6673, +0.2043, +0.0841, -0.5859, -0.4732, +0.1798, +0.0359, -0.8334, +0.2058, -0.2315, -0.5527, -0.5864, +0.1296, +0.2766, +0.3950, -0.2198, -1.2566, +0.0344, -0.0694, +0.1057, +0.0886, -0.0006], +[ +0.2355, +0.2205, -1.3483, -0.1172, -0.3691, +0.2932, +0.4926, +0.1500, -0.0933, -0.5618, +0.2887, +0.4631, +0.1941, +1.0716, +0.5216, +0.5525, +0.1567, +0.6672, +0.9191, +0.7987, -0.6611, +0.2176, +0.2716, +0.4893, +1.4128, +0.9177, -0.6401, -0.7346, +1.3439, +0.2595, +0.0790, -0.4804, -0.2838, +0.0088, -0.3967, -0.4801, +0.1584, -0.2085, -0.0461, -0.5256, -0.9473, +1.8738, +0.8888, +0.7417, -0.4364, +0.4092, +0.4347, +0.6090, -1.3517, +0.8034, -0.9465, -0.3539, +0.5229, -0.8088, -0.5375, +0.3207, -0.1078, -0.1502, -0.1826, -0.6835, +0.1005, +0.9818, -0.0366, -0.0235, +1.3464, -1.0394, +0.3553, -0.3647, -1.1125, +0.1898, +0.1982, +1.4814, -0.1280, +0.9472, -0.2057, -1.0033, +0.2990, +0.4505, -1.6867, +0.0372, -1.2470, +1.1743, -0.7300, -1.4268, -0.4928, -0.2131, -0.0731, +0.5726, +1.0094, +0.1827, -0.0374, -0.2762, +1.1445, +0.1382, +0.6379, -0.5874, +0.7924, -0.4141, +0.2994, -0.3265, +0.8631, +0.0625, -0.5708, +0.3840, -0.1690, -0.2459, -1.0880, +0.3760, -0.6786, -0.8060, -0.1018, +0.5281, -0.4578, +0.1397, -0.0314, -0.0962, +0.0207, +0.6683, -0.5995, +0.4266, +0.2856, +0.4398, +0.4314, +0.4667, -0.1604, -0.0962, +0.4738, +0.3703], +[ +0.0467, +0.4707, +0.3331, +0.1481, +0.0379, +0.1480, +0.1593, -0.0646, -0.1355, -0.0840, +0.1212, +0.4008, -0.3111, -0.2571, +0.1511, +0.3338, +0.2279, -0.4840, -1.0219, +0.5547, -0.5126, +0.0801, +0.2081, -0.0607, +0.0969, +0.2595, +0.2859, +0.2738, +0.1785, +0.0969, -0.1021, -0.2732, +0.0357, -0.2654, -0.3296, -0.3804, -0.1135, -0.2353, +0.5887, +0.5972, -0.5222, -0.1587, -0.2610, -0.2225, -0.4598, -0.2176, +0.2049, -0.1485, -0.0299, +0.1484, +0.1950, +0.5583, +0.5110, +0.1370, -0.0910, +0.0798, -0.1201, -0.0193, -0.2943, +0.0764, -0.3307, +0.2936, +0.2535, -0.3703, +0.0249, -0.0005, -0.1424, -0.3010, -0.0445, -0.3506, +0.3826, +0.0547, -0.3623, -0.2543, -0.2261, +0.0637, +0.2958, +0.3432, -0.1460, -0.0548, -0.0379, -0.3288, -0.1262, +0.1693, -0.9188, -0.4361, +0.2599, +0.4048, -0.0817, +0.1643, -0.4248, +0.2501, -0.1260, +0.1860, +0.0839, +0.1641, -0.0727, +0.1643, -0.2693, -0.1530, +0.3114, -0.6813, -0.2417, +0.0138, -0.6074, -0.4009, +0.1408, -0.3276, -0.2314, -0.1093, +0.1874, +0.1717, +0.0237, +0.0482, -0.0837, -0.0706, +0.2035, -0.0895, -0.0915, -0.2132, +0.1071, +0.2370, -0.1392, +0.4087, +0.0054, -0.0605, +0.5010, -0.3720], +[ -0.6041, +0.3315, +0.4344, -0.0530, -0.0750, -0.6740, +0.5459, +0.0864, -0.4466, -0.3376, -0.3102, -0.0338, +0.2650, +0.5327, +0.0622, -0.7640, +0.0327, +0.1950, -0.1494, -0.6298, -0.0713, +0.0398, +0.0742, -0.9150, -0.0288, +0.1934, -0.6378, +0.0861, +0.1895, +0.2527, -1.2174, +0.2087, -0.0830, -0.1214, +0.1712, -0.0216, +0.2538, +0.1952, +0.3798, -0.3429, +0.1725, +0.3499, +0.3408, +0.4805, +0.4361, +0.0572, +0.0162, -0.2105, -0.0226, +0.1329, -0.4117, -0.4411, +0.0208, -0.3427, +0.1636, -0.4633, +0.2159, +0.0833, -0.2476, -0.0152, -0.0169, +0.2707, +0.4725, +0.4281, +0.1138, -0.2027, -0.1338, +0.0103, -0.1651, -0.1051, -0.0860, +0.1426, -0.1318, -0.1000, -0.3799, -0.1731, +0.0442, -1.0749, +0.2806, -0.0405, -0.6049, +0.4326, +0.3027, +0.2951, +0.2068, -1.1063, +0.1727, +0.0808, +0.3021, +0.2196, +0.2176, -0.0847, -0.6010, +0.1784, -0.0912, -0.6264, +0.1444, +0.0617, +0.2282, -0.2726, +0.1764, +0.1803, +0.3600, -0.3617, -0.1991, -0.3087, +0.3560, -0.5956, -0.0958, +0.1788, +0.2348, -0.1670, -0.2103, -0.1210, +0.2132, -0.1198, +0.0154, +0.2332, +0.2034, -0.5947, -0.0082, -0.1029, +0.4438, -0.6764, +0.1075, +0.0251, -0.5663, -0.4196] +]) + +weights_dense1_b = np.array([ +0.0945, +0.0221, +0.0891, +0.0491, +0.0117, -0.0476, -0.0928, -0.1916, -0.0470, +0.2310, +0.0341, +0.0667, -0.0911, +0.1326, -0.1565, -0.1634, -0.0695, -0.0235, -0.2292, -0.1396, -0.2046, +0.0967, -0.0569, +0.0423, -0.0863, +0.0138, -0.2055, -0.1253, -0.1153, -0.2407, +0.1039, -0.2110, -0.0743, -0.0020, +0.0149, -0.2198, +0.0150, -0.2298, -0.1317, +0.0990, -0.0897, +0.0430, -0.0985, +0.0082, -0.2348, -0.0832, -0.1534, -0.1548, -0.2317, +0.0414, -0.0891, -0.2233, -0.0865, -0.0298, -0.1339, +0.0339, +0.1492, -0.1300, -0.4555, -0.0238, +0.0225, -0.1978, +0.0416, -0.0089, -0.0476, +0.0720, -0.1214, +0.1386, +0.1151, -0.1887, -0.1368, -0.1987, -0.0415, +0.0236, -0.2552, -0.1052, -0.0978, +0.0162, -0.0876, +0.0537, -0.1436, -0.2076, -0.0873, -0.1789, -0.0524, -0.1163, -0.0832, -0.1528, -0.0416, -0.1003, -0.0970, -0.1769, -0.1527, -0.0028, +0.1150, +0.0467, -0.0537, -0.2437, -0.1143, -0.1589, +0.1136, +0.0611, -0.1218, +0.0358, +0.1195, -0.1023, +0.0665, -0.0816, -0.1308, -0.1215, +0.0528, -0.0858, +0.1087, -0.0314, -0.2404, +0.0233, -0.0644, -0.1083, -0.0198, -0.0531, -0.0808, -0.0256, +0.0324, -0.0287, -0.0536, -0.1525, +0.0821, +0.1315]) + +weights_dense2_w = np.array([ +[ -0.1271, +0.3914, +0.0018, -0.6558, -0.4675, +0.0085, -0.1844, +0.6802, -0.0125, +0.4014, -0.5915, -0.9738, +0.1934, -1.1626, -0.1495, +0.5737, +0.0789, -0.0532, -0.0646, -0.6168, +0.0404, -0.2622, -0.2860, -1.0234, -1.0591, -0.0915, -0.6457, -0.4371, +0.2578, -0.1847, -0.0168, -0.3883, +0.3122, -0.2463, +0.0569, -0.6280, +0.2718, -0.3457, +0.0460, -0.0186, -0.5913, -0.1637, +0.1242, +0.1545, -0.4075, +0.1479, +0.4976, -0.6677, +0.1678, +0.0601, -0.6402, +0.2643, +0.5309, -0.5865, +0.4594, -0.4839, +0.0092, -1.0042, -0.4222, -0.1008, +0.3164, +0.4503, -0.4733, -0.3181], +[ -0.7950, -0.2874, -0.9796, -0.0894, -0.2489, +0.1023, -0.7191, -0.1062, -0.0686, +0.0219, -0.5166, -0.1731, +0.6046, +0.1325, -0.1113, -0.1895, -0.5124, +0.2307, +0.1318, -0.1584, -0.0253, -0.0489, -0.1236, +0.1723, -0.1987, -0.1482, +0.2360, -0.6252, +0.1100, -0.0496, -0.2046, -0.0098, +0.1554, -0.0330, +0.1830, +0.5273, -0.2040, -0.3389, -0.0136, +0.3009, -0.8369, -0.5315, +0.3389, +0.0406, -0.1619, +0.1336, -0.0931, +0.3350, -0.5562, -0.2256, -0.1484, -0.1714, +0.3276, +0.3614, -0.5478, +0.0381, -0.6016, -0.4736, -0.1763, +0.6435, -0.4753, -1.0543, +0.8731, -0.0291], +[ +0.0954, -0.2826, +0.4515, +0.2719, -1.5872, -0.6669, +0.5393, +0.0683, +0.0223, -0.4139, -0.0436, -0.2927, -0.1016, +0.0872, -0.0511, +0.2276, -0.3104, -0.1281, -0.3726, -0.4281, -0.2043, -0.0067, -0.0833, +0.1530, +0.1471, +0.0299, -0.7778, -0.4584, -0.2937, -0.5823, +0.1004, -0.0315, -0.2546, -0.2999, +0.1273, -0.4236, +0.0839, -0.2711, -0.4104, -0.9313, +0.1809, +0.1160, +0.1217, +0.0610, -0.1349, +0.1962, +0.2288, +0.0999, -0.2857, +0.1488, -1.1450, +0.0397, +0.0243, -0.4398, -0.1675, +0.1116, -0.4391, +0.3284, +0.2221, -0.2577, -0.4555, -0.0088, -0.0855, -1.3852], +[ -0.9066, -0.0779, +0.2506, +0.5973, -0.2074, -0.0816, +0.1313, -0.0467, +0.3583, -0.2508, +0.3739, +0.3117, -0.4828, +0.3411, -0.4750, -0.2348, -0.0597, -0.1498, -0.6612, -0.1696, -0.4938, +0.1585, +0.2521, -0.4542, +0.0009, -0.1163, +0.2059, -0.2132, +0.2928, +0.2853, +0.1130, +0.1913, -0.0430, +0.0943, -0.0217, -0.4564, +0.2648, -0.3642, -0.0154, -0.1325, -0.1173, +0.0562, +0.4583, +0.2892, -0.5079, +0.6878, -0.1487, +0.0205, +0.0981, -0.0039, -0.3292, +0.0082, +0.1342, -0.0187, +0.3907, -0.2287, -0.5168, -1.0717, -0.1443, -0.1601, +0.1502, +0.2766, -0.0043, +0.1320], +[ -0.2278, +0.1479, -0.7906, +0.1998, +0.5790, -0.7421, +0.0865, -0.4855, +0.0669, +0.5062, -0.5994, +0.1859, -0.3231, -0.4490, -0.6158, -0.0905, +0.1926, -0.0107, -0.1922, +0.3182, +0.7090, +0.1008, -0.5894, -0.1029, +0.2866, -0.9230, +0.3036, -1.6312, -0.4129, +0.0185, +0.2326, -1.2005, -0.2662, -0.1140, -0.3067, -0.9747, -0.4549, +0.0886, +1.1618, +0.0391, +0.5329, +0.3774, +0.0105, +0.0694, +0.0137, -0.4737, -0.1588, +0.3237, -0.3649, +0.0849, -0.2834, -0.4216, +0.2610, -0.7456, -0.3009, +0.2728, +0.2492, +0.4658, -0.4006, +0.0284, +0.3466, -0.2762, -0.0260, -0.3199], +[ +0.0064, -0.2720, -1.1888, +0.1102, -0.6399, -0.5524, +0.1461, -0.6517, +0.0382, +0.5065, -0.1815, -0.7615, +0.1473, -0.0197, +0.1725, +0.0512, +0.2036, +0.4414, -0.1795, -0.0886, -0.1142, +0.4498, +0.1177, +0.0057, -0.0964, -0.0811, +0.1596, -0.4883, +0.1965, -0.1698, +0.2760, -0.0165, -0.1367, +0.3872, -0.1555, +0.4407, -0.1900, -0.7512, -0.5738, +0.0527, -0.1601, +0.1037, -0.1187, -0.2776, -0.3760, +0.5335, -0.5347, -0.1479, +0.0165, -0.0124, +0.7250, +0.1477, +0.0149, +0.1117, +0.2934, +0.2190, -0.1941, -0.5849, +0.1879, -0.4424, -0.9252, +0.1739, -0.5742, +0.3218], +[ -0.5851, +0.2061, -0.1146, +0.3440, -0.8697, +0.5240, +0.0196, -0.0692, -0.4171, +0.1702, -0.2292, -0.2366, -0.0427, -0.3395, -0.0157, -0.1608, -0.0301, -0.0541, +0.1548, -1.1881, -0.1515, -0.0891, +0.0046, -0.2020, +0.1449, -1.1849, -0.2219, -0.3805, +0.0840, -0.2359, +0.2454, -0.4630, -0.0234, -0.1242, +0.0518, +0.6156, +0.1568, +0.3287, -0.0841, -0.7317, -0.6159, +0.3588, +0.1828, -0.9023, -1.1006, -0.0212, +0.2007, +0.5831, +0.0995, -0.6283, -0.0894, +0.1098, -0.2749, -0.0411, -0.0119, +0.0558, +0.1683, -0.0131, +0.1848, +0.0679, +0.0456, -0.2571, -0.9563, -0.2443], +[ -0.0073, -0.3201, -0.3817, -0.0192, -0.4109, -0.4282, -0.1132, -0.4349, +0.2255, -0.0437, -0.6572, +0.2767, -0.4989, -0.4036, -0.1763, +0.2089, -0.5215, +0.1290, -0.1541, -0.3489, +0.2339, -0.0198, -0.0317, -0.9100, -0.0544, -0.6314, -0.1819, +0.2346, -0.0081, +0.0007, -0.0257, -0.1465, -0.6833, -0.9600, -0.1040, -0.1067, -1.1308, -0.2348, +0.1580, -0.9859, -0.9199, -0.0363, -0.0562, +0.0475, -0.5149, +0.2848, -0.3803, -0.1797, -0.0309, -0.1081, -1.3299, -0.1604, -0.1880, +0.0615, +0.1823, +0.0057, +0.1575, +0.0888, -0.1895, +0.2093, -0.1036, -0.6154, +0.5185, +0.1521], +[ +0.2531, -0.6279, -1.4513, -0.1934, +0.0015, -0.4900, -0.2063, -0.4151, +0.1763, -0.0243, -0.6314, -1.2217, -0.9091, -0.0730, -0.4270, +0.0620, -0.6859, +0.0461, -0.0924, +0.3800, +0.1811, +0.1697, -0.2316, -0.5443, +0.0866, +0.0782, +0.1150, -0.6990, -1.1189, -0.3874, -0.4161, +0.0440, -0.7594, -0.2724, -0.5725, +0.3213, +0.2200, +0.1760, -0.2150, +0.1958, -1.6232, -0.2854, -0.0612, -0.2916, -0.0928, +0.0537, -1.0109, +0.4645, +0.0471, +0.0559, +0.2336, +0.0665, +0.1497, -0.3873, -0.1014, +0.1958, -0.6501, -0.1341, +0.1965, -0.4280, +0.2265, +0.0304, +0.6069, -0.3555], +[ -0.7091, -0.1624, +0.1640, -0.0758, -1.2377, -0.0772, +0.1476, +0.2682, -0.1253, +0.2720, -0.1572, -0.0119, +0.3484, +0.4451, +0.2922, +0.5946, -0.5605, +0.1464, +0.6736, -0.1512, -0.2042, +0.3320, -1.2094, +0.0608, +0.7341, -0.0744, -0.5122, -0.3548, -1.1743, +0.3937, -0.4435, -0.5681, -0.1948, +0.2073, -0.4939, +0.2860, -0.0874, -0.1584, -0.5339, -0.6618, +0.4565, -0.0450, -0.0703, +0.1782, +0.2719, -0.7235, +0.0849, -0.5152, -0.4409, -0.1473, +0.1932, -0.5657, -1.0101, +0.2300, +0.1768, -0.2755, -0.4970, +0.2075, +0.6405, -0.4757, -0.3832, -0.5012, -0.6960, -0.4705], +[ -0.2843, -0.5661, +0.1295, -0.6372, +0.6743, +0.3116, -0.1094, +0.2181, +0.4413, +0.0471, +0.3553, +0.3585, +0.4372, -0.0685, -0.0842, -0.4250, +0.4091, -0.3233, -0.2269, -0.0794, +0.8587, +0.1432, -0.3835, -0.1686, +0.1641, -0.7328, -0.8287, -0.4402, -1.3005, +0.5130, +0.0564, +0.1681, -0.3760, +0.0408, -0.1430, -0.8277, +0.0467, -0.7583, -0.1697, -0.2131, +0.2831, +0.1558, +0.2284, -0.2450, +0.0555, -0.1912, +0.0449, -0.2269, -0.3708, +0.2114, -0.4205, -0.7571, -0.0382, -0.2707, -0.0797, -0.1280, +0.0478, -0.0070, -0.1342, -0.9769, +0.2671, -1.0572, -0.0770, -0.9964], +[ +0.6900, +0.4678, -0.0557, -0.2668, +0.7300, -0.5408, -0.0688, +0.0454, -0.5562, +0.0199, +0.3122, -0.6756, +0.5708, +0.1600, +0.6282, +0.2039, -0.3018, +0.1667, -0.0453, -0.7653, -0.2430, -0.4678, +0.1237, +0.2742, +0.2941, +0.0830, -1.0421, +0.3499, -0.5175, +0.2747, +0.1062, -0.2901, -0.2809, +0.1417, +0.1436, +0.3868, +0.5309, -0.0153, +0.0805, -0.2631, -0.0940, -0.1412, +0.2611, -0.7766, -0.2855, -0.0439, -0.6175, +0.0947, +0.2999, -0.0547, +0.5183, +0.2994, -0.8269, +0.0034, +0.0987, +0.5503, -0.0088, +0.4137, +0.3632, -0.2834, -0.6923, -0.2821, -1.1406, -0.0749], +[ +0.1632, -0.4623, -0.1741, +0.0680, -0.9023, -0.0249, +0.4469, -0.4021, -0.1585, +0.1242, +0.3737, -0.0057, +0.6399, -0.3139, -0.2913, +0.1754, +0.0486, -0.4752, -0.1895, -0.3187, -0.2623, +0.0258, -0.1153, +0.2278, +0.0386, -0.8582, +0.8477, -0.0064, +0.4177, -0.0644, +0.5750, +0.4484, -0.1827, +0.3148, +0.1698, -0.3985, +0.0600, -0.0887, -0.8542, -0.7936, -0.4169, +0.3954, +0.1737, -0.3940, +0.0167, +0.1208, +0.0302, +0.0156, +0.0017, +0.0780, -0.6662, +0.1520, +0.2476, -0.7796, -0.0420, +0.7442, -0.1745, +0.1173, +0.5134, +0.3903, -0.0390, -0.2774, -0.0728, -0.5430], +[ +0.4816, -0.3489, +0.5506, -0.6623, -0.9104, -0.8120, -0.8344, -0.2220, +0.3552, -0.0790, -0.8096, +0.2325, -0.3253, +0.1020, +0.1459, -0.0834, -0.7332, -0.3141, -0.8383, +0.0168, +0.1568, +0.5853, -0.1375, +0.1475, +0.6293, +0.2314, -1.1498, -0.3753, -0.8417, -0.8575, -1.3400, -0.2256, -1.4539, -0.3584, -0.4006, +0.1593, -0.9150, +0.6774, -0.2619, +0.1728, -0.2879, -0.1338, -0.5645, +0.3988, +0.3520, +0.4010, -0.2041, +0.0341, -0.3362, +0.2805, -2.0402, -0.6181, -0.7972, +0.1749, -0.6493, -1.4597, -0.5267, +0.5981, +0.2521, -0.5638, -0.2909, -0.4402, -0.0561, +0.4762], +[ -0.4250, +0.1095, -0.0655, -0.1546, -0.2041, -0.1293, +0.2493, -0.0696, +0.0848, +0.1911, -0.1816, -0.6701, -0.0172, +0.0131, +0.0102, -0.3538, +0.3072, -0.4811, +0.1599, +0.0691, +0.1479, +0.0118, +0.3573, +0.2026, -0.7681, -0.1526, -0.4309, +0.8109, -1.1647, +0.2582, -0.5493, +0.2395, +0.5988, +0.0868, -0.3176, -0.3688, +0.1128, -0.0358, -0.5428, +0.1570, -0.3296, -0.4567, -0.4286, -0.1437, +0.1628, +0.0506, -0.1043, +0.3776, +0.3047, +0.0809, +0.1967, -0.1743, -0.2635, -0.3714, -0.0760, -0.0980, +0.3933, +0.1918, -0.0237, -0.3041, +0.2151, -0.2341, -0.1485, -0.0661], +[ +0.2394, +0.4236, +0.4937, +0.4839, +0.2579, -0.4842, +0.7196, +0.3410, +0.2490, +0.5013, -0.5042, -0.5623, +0.2319, +0.1771, +0.3028, +0.1137, +0.4389, -0.3229, -0.5965, -0.6932, +0.6443, +0.7066, -0.0893, -0.6891, -0.2387, -0.2105, -0.6846, +0.0999, -0.1248, -0.1359, +0.2185, +0.0941, +0.3376, -0.2558, -0.3110, -0.0893, -0.1423, -0.4745, +0.0687, -0.2922, -0.0603, -0.0707, -0.0455, +0.5964, -0.0152, -0.1886, +0.0025, +0.1093, +0.3974, +0.3669, -0.3385, -0.4696, -0.0199, -0.6017, +0.4395, +0.6234, -0.0496, -0.2090, -0.2171, +0.3449, -0.0730, -0.1001, -0.3171, +0.5123], +[ +0.0847, +0.1436, -0.3228, -0.3510, -0.7931, -0.0264, -0.3533, +0.6762, -0.0224, -0.1094, -0.3798, +0.1935, -0.2485, -0.1415, -0.5330, +0.2227, +0.1866, -0.3358, -1.9247, +0.1269, -0.0177, +0.1557, -0.3095, +0.2560, +0.0238, +0.2123, +0.4908, -0.3848, -0.0091, -0.2054, -0.1635, +0.0463, +0.0052, +0.2153, -0.0972, +0.3529, -0.5443, +0.5997, -0.6787, -0.7814, -0.2001, +0.1732, -0.1145, +0.2478, -0.2095, -1.0370, +0.0598, +0.1606, +0.3335, +0.3511, +0.3206, -0.5018, +0.5416, -1.2949, -1.5172, +0.0665, -0.3943, -0.6214, -0.0136, +0.2626, -0.2100, -0.0828, -0.3910, -0.3130], +[ +0.0901, +0.0253, +0.2478, +0.3539, -0.6675, +0.2158, +0.2303, +0.4287, +0.1316, +0.1663, -0.0972, -0.6236, -0.1827, +0.0954, +0.1095, -0.2775, +0.0321, +0.1237, -0.9309, +0.1208, +0.0141, -0.5857, +0.2646, -0.0349, -0.5315, -0.0656, -0.1674, -0.4231, +0.0615, -0.2795, +0.5309, +0.0471, +0.3718, +0.4552, -0.2424, -0.0762, +0.2703, +0.0431, -0.2285, +0.1411, -0.3293, -0.1031, -0.1698, -0.4149, -0.4501, +0.3116, +0.0163, -0.4347, +0.4256, -0.1770, +0.1217, -0.4240, +0.2111, -1.9418, -0.5665, +0.1624, +0.0666, -0.0973, +0.9793, -1.0486, +0.6492, +0.0490, -0.3199, -0.3808], +[ +0.2482, +0.3556, -0.1717, -0.9919, +0.7054, -1.2118, -0.5110, -0.3328, -0.1633, +0.3957, +0.3085, +0.0137, +0.3065, +0.0052, -0.0270, +0.0560, +0.2907, -0.6105, -0.4772, +0.1645, +0.0208, -0.9893, +0.3875, +0.2657, +0.3233, -0.3869, +0.1572, +0.1036, -0.1463, +0.0472, -0.3489, -0.3521, +0.0799, -0.6925, +0.0984, +0.3195, +0.3130, +0.6108, +0.2780, +0.0603, -0.2143, -0.1337, -0.2644, -0.5923, +0.2042, -0.4949, -0.0480, +0.3116, -0.1095, +0.2364, -1.1135, -0.0363, -1.0648, +0.2119, -0.0442, +0.0743, -0.0370, +0.2927, +0.2213, +0.2895, -0.1277, +0.4592, -0.5358, +0.1096], +[ -0.0645, -0.1623, -0.2801, +0.1601, +0.4115, +0.1034, +0.5808, -0.3871, +0.0811, +0.1312, -1.2262, -0.3058, -0.4259, -1.4654, -0.8499, -0.4536, -0.0568, +0.3527, -0.4492, +0.2055, +0.2393, +0.3164, -0.1928, -0.1498, -0.4880, +0.1955, +0.2008, -1.0742, +0.0050, -0.0898, +0.3253, -0.0754, +0.0392, -0.0040, +0.1946, +0.0193, +0.0192, +0.4451, -0.7988, +0.0087, -0.2325, +0.2076, +0.0636, -0.1281, +0.5703, +0.1476, +0.0923, -0.2612, -0.2150, +0.3855, -0.2078, -0.1543, -0.2050, +0.3544, +0.0617, +0.0985, -0.2980, -1.1922, -1.3932, +0.1081, +0.1347, -0.7791, +0.0098, +0.3203], +[ -0.2477, -0.0342, +0.0651, +0.4190, -0.1286, -0.1516, +0.3836, -0.5551, -0.0254, +0.0229, +0.3122, -0.0037, -0.3752, +0.0208, -0.2014, -1.0760, +0.0428, +0.9403, +0.0155, -0.2281, -0.5390, -0.3031, -0.2937, -0.0763, +0.4585, +0.3504, -0.6128, +0.0253, +0.1955, -1.3097, -0.4295, -0.7464, -0.3443, +0.0480, -0.2732, -0.3435, -0.4001, +0.5535, -0.0008, -0.6926, +0.4328, +0.0657, +0.1847, +0.0448, -0.5529, +0.3648, +0.4270, -0.0240, -0.0652, +0.2067, +0.3803, -0.1376, -0.1249, +0.1560, -0.2670, -0.0751, -0.1908, +0.4397, +0.1006, -0.0798, -0.5067, -0.0203, -0.7287, -0.5677], +[ -0.4990, -0.2926, -0.3664, +0.0513, +0.0405, +0.1084, +0.3047, -0.5012, +0.0434, +0.1440, -0.6061, -0.0411, -0.6098, -0.8454, +0.0514, -0.0952, +0.1158, -0.0216, +0.3436, -0.1477, +0.3443, +0.1691, +0.1902, -0.5084, -0.3644, +0.1407, +0.2799, -1.1430, -0.1313, -0.4736, +0.2768, -0.1113, +0.2119, +0.3614, +0.0707, -0.4669, -0.0945, -0.0747, +0.2336, +0.0373, +0.3955, -0.0911, -0.2888, -0.0373, -0.0459, -0.1130, +0.1475, +0.1832, -0.0709, +0.1757, +0.0890, -0.2821, -0.2146, +0.2685, +0.2819, +0.2381, +0.3611, +0.2664, -0.4607, +0.4548, -0.5928, -0.7542, +0.3888, -0.1321], +[ +0.2451, -0.0352, -0.0067, +0.5649, -1.3223, -0.0114, -0.2494, +0.2709, -0.1561, +0.6785, -0.4168, -0.0214, +0.1366, -0.1545, -0.0716, +0.2056, -0.5251, +0.2082, +0.0296, +0.1914, -0.5742, +0.0196, -0.2925, +0.2337, +0.4122, -0.5012, +0.1940, +0.3099, -0.9448, +0.4322, -0.5790, -0.3489, +0.0104, -1.0007, +0.2016, +0.2950, +0.2477, -0.1989, -0.3270, -0.3255, -0.0711, +0.1675, +0.1886, -0.3077, +0.6931, +0.0106, +0.0890, +0.2538, +0.3688, -0.3061, -0.5655, +0.0562, +0.3011, +0.0977, -0.1398, -0.2165, -0.7578, +0.0214, -0.4609, -0.2431, +0.0330, +0.2445, -0.0303, +0.0900], +[ -0.0365, -0.0273, +0.4411, -0.4758, -0.0957, +0.1289, -0.0185, -0.6137, -0.6106, +0.2414, +0.4711, +0.0494, +0.0588, -0.1135, -0.2285, +0.2474, -0.1030, -0.0374, -0.3801, +0.3589, -0.1773, +0.0079, +0.0782, -0.0122, -0.0823, +0.7424, +0.0962, +0.4727, -0.8676, +0.3077, +0.0557, +0.3209, -0.1592, -0.4861, +0.0395, -0.9804, +0.1699, +0.4900, -0.0592, +0.2355, +0.1924, -0.5904, +0.2611, +0.3920, +0.2856, -0.3913, +0.2407, -0.2500, -0.1903, -0.5961, +0.1522, -0.0197, +0.0872, -0.1873, -0.3491, -0.1286, +0.3000, -0.7042, +0.2894, -0.1837, +0.0561, +0.1254, -0.3829, +0.2918], +[ -0.3763, -0.4747, +0.4768, -0.0502, +0.1480, -0.1086, -1.4858, -0.1386, -0.0867, +0.0294, -0.9916, -1.3011, -0.3439, -0.0785, -0.0095, -0.0793, +0.1420, -0.4394, -0.4325, +0.0846, +0.1926, +0.1353, +0.0876, -0.3864, -0.4143, -0.3908, +0.1920, -0.0516, -0.3529, +0.1273, -0.8187, -0.3242, +0.3229, +0.3314, -0.0751, +0.0271, -0.5786, -0.4159, -0.5292, -0.1346, -0.5713, +0.0241, -0.3994, +0.6553, +0.1069, -0.3205, -0.1558, -0.0292, -0.1864, +0.0467, -0.1643, -0.0032, -0.1768, -0.1139, +0.1924, +0.0858, +0.1814, -1.0873, +0.2349, +0.8407, +0.3165, -0.3767, -0.2488, +0.5314], +[ +0.0194, -0.5392, -0.1518, -0.3236, -0.4986, +0.3160, -0.1412, +0.0953, +0.7768, +0.3661, -0.5067, +0.0749, +0.3022, -0.0791, +0.0717, -0.4890, -0.5433, +0.1542, -0.1284, -0.5432, +0.1367, +0.4199, +0.0517, -0.2629, -0.2446, -0.5404, -0.0661, -0.8388, +0.2460, -0.0568, +0.1513, -0.1651, -0.5316, -0.3067, +0.2167, +0.3853, +0.1916, -0.3641, +0.1010, -0.6142, -0.3014, +0.0601, -0.1717, -0.0344, -0.1642, +0.2797, -0.2147, +0.3422, +0.1077, -0.3756, -0.3877, -0.0933, -0.2401, -0.9595, -0.2368, -0.1898, -1.2555, +0.0958, +0.0762, -0.0292, +0.3576, -0.1580, -0.0738, -0.0079], +[ +0.0141, +0.0895, -1.2167, -0.2237, -0.3790, +0.1855, -0.3394, -0.0038, -0.9612, -0.8003, -0.4690, -0.7451, -0.0575, -0.4595, -0.1010, +0.0564, -0.2061, +0.0016, +0.2122, -0.5486, +0.2575, +0.6701, -0.2359, -0.6095, +0.2275, +0.4353, -0.0755, +0.1635, -1.1059, +0.0813, +0.5430, +0.2135, -0.7705, -0.3789, -0.4640, +0.1618, -0.0749, -0.1601, -0.2568, +0.2982, -0.5505, -0.2380, +0.2200, -0.7600, -0.3742, +0.0263, +0.0205, +0.2430, -0.1207, -0.1844, -0.4536, +0.2157, -0.0314, +0.0561, +0.7357, +0.0529, -0.7068, -0.0974, -0.7203, +0.2107, -0.4502, +0.0662, -0.4206, -0.3138], +[ +0.1017, -0.0354, -0.0509, -0.1870, +0.0343, +0.3647, +0.1347, +0.2237, +0.3690, -0.9343, +0.1449, -0.5858, -0.2125, +0.5630, -0.1528, -0.1546, -0.7001, -0.1598, +0.2196, -0.0277, -0.5136, -0.8544, +0.0426, -0.5008, +0.1092, -0.0860, -0.0112, +0.0401, -0.6656, -0.1314, +0.1416, +0.3360, +0.5900, -0.2389, +0.0217, +0.1804, +0.2413, -0.5896, -0.4484, -0.0288, -0.3412, +0.5241, -0.0806, +0.1861, -0.6325, -0.4081, -0.0944, +0.4332, -0.5102, +0.1041, -0.1426, -0.2980, +0.1690, +0.1186, +0.2074, -1.0632, +0.7055, -0.2705, -1.0567, -0.2129, -1.1142, +0.2914, +0.2099, +0.1106], +[ +0.3102, +0.1703, +0.3606, -0.0527, +0.1473, -0.2773, -0.0154, +0.1442, -0.1247, +0.0323, -0.3110, -0.1122, +0.1576, +0.2158, +0.1385, -0.2753, -0.1098, -0.7658, +0.2754, -0.0433, -0.0520, +0.5368, +0.1772, -0.0695, -0.0489, -0.0608, +0.1372, +0.2162, -0.2351, +0.2987, -0.1364, -0.2891, +0.3583, +0.1633, -0.3839, +0.4315, -0.0990, +0.0823, +0.1158, +0.0991, -0.1278, -0.3236, -1.2764, -0.6431, +0.1492, -0.3952, +0.1064, -0.1531, +0.2157, +0.4975, -0.2037, -0.4894, -1.5186, +0.2924, -0.6009, -0.1678, -0.1449, +0.1978, -0.3505, -0.0908, +0.0612, +0.2921, -0.0509, -0.1469], +[ +0.1539, -0.1646, +0.0906, -0.8074, -0.3751, -0.2480, -0.1706, +0.0897, +0.1467, -0.2731, +0.0630, +0.1252, -0.3487, +0.1124, +0.3977, -0.5022, -0.2230, -1.1773, +0.0916, -0.3775, -0.3700, -1.3137, +0.2118, -0.0780, +0.2561, +0.3471, +0.2589, +0.5410, -0.6811, -0.0975, +0.2142, +0.1334, -0.1160, +0.2675, -0.6791, +0.0902, -0.0351, +0.1841, -0.1571, +0.0284, -0.1294, -0.2189, -0.4384, -0.6264, +0.1533, -0.5177, +0.1915, -0.0130, +0.4706, +0.0774, -0.1659, +0.1409, -0.1534, -0.0867, -0.3677, -0.2035, -0.6024, +0.2904, -0.5581, -1.1772, +0.2702, -0.0471, +0.0550, -0.4774], +[ -0.0836, -0.4589, +0.3629, +0.2122, -0.8646, -0.0445, +0.0280, +0.1863, +0.2066, -0.1308, -0.1080, -0.3527, -0.2431, +0.2671, +0.2674, +0.0165, -0.0020, +0.3624, -0.5614, +0.5891, -0.3631, -0.0238, -0.1281, -1.3143, -0.3550, +0.3269, +0.1919, -1.0129, +0.4851, +0.0349, -0.0614, -1.2018, -0.6409, +0.7077, +0.1713, +0.1755, -0.5143, +0.4006, -0.7570, -1.0930, -0.1735, +0.6484, +0.2872, +0.2859, -0.4082, +0.2657, -0.3075, -0.1418, -0.1542, -0.1517, -0.0277, -0.5681, -0.4103, +0.2963, -0.2609, -0.2730, -0.4601, -0.1779, +0.1927, -0.8079, -0.2650, +0.0229, +0.1281, -0.5343], +[ -0.4350, +0.0553, -0.5729, -0.2978, -0.9495, -0.7255, -0.7779, -1.1735, +0.1343, -0.3928, +0.2136, -0.2948, +0.1546, -0.9938, -0.1214, -0.0147, +0.0305, -0.1277, +0.7548, +0.2856, +0.0463, +0.0179, +0.0937, +0.8215, +0.2234, +0.1009, -0.3107, +0.0118, -0.4554, -0.0069, +0.1453, +0.0118, -0.1247, -0.6418, -0.0716, +0.4212, -0.5202, -0.0074, -1.1218, +0.1333, -0.0457, +0.3628, +0.3515, -0.1092, -0.4001, -0.5215, +0.1932, +0.0911, +0.0685, +0.0898, +0.0290, -0.5139, +0.0949, -0.1830, -0.5459, +0.1143, -0.8995, -0.2821, +0.4568, +0.0758, -0.9298, -0.4243, +0.3363, -0.2241], +[ +0.3514, -0.1343, -0.1294, +0.2483, -1.1607, +0.2577, +0.1505, +0.0614, -0.0038, +0.1206, -0.3880, +0.1227, +0.1437, +0.0353, -0.2475, +0.1809, -0.0030, +0.5491, +0.3195, -0.1809, -0.3715, +0.0359, -0.5749, +0.3637, +0.2684, +0.2354, +0.2458, +0.2446, +0.1564, +0.3003, -0.0686, +0.2666, -0.4387, -0.7032, +0.2667, +0.4540, -0.3143, -0.0387, -0.7421, -0.1658, +0.0813, +0.1450, +0.0384, -0.0218, +0.0556, -0.0205, -0.1314, -0.0056, +0.1476, +0.0417, +0.1668, +0.0552, +0.0224, +0.4450, -0.0994, +0.5961, -0.6376, -0.5452, +0.0621, -0.0608, -0.2084, -0.1293, -0.0258, +0.2475], +[ -0.1171, -0.2599, -0.1720, -0.0803, +0.0339, +0.2908, -0.2794, -0.3024, -0.3362, +0.1535, -0.6788, +0.0768, -0.4502, -0.3021, -0.5293, +0.3125, -0.2088, -0.9037, -0.3597, +0.4170, +0.2103, -0.3589, +0.0696, -0.1204, +0.0044, +0.0838, +0.0282, -0.5995, -0.2631, -0.4564, +0.3498, -0.2223, -0.8802, -0.4124, +0.0308, -0.0660, +0.0638, +0.1032, -0.1193, +0.0706, -0.6944, -0.4653, -0.0051, -0.2518, +0.1609, -0.0292, +0.4536, -0.0411, +0.1867, +0.1496, -0.2681, +0.5124, +0.1813, +0.2306, -0.0282, +0.1134, -0.6127, +0.1256, -0.2708, -0.2768, -0.8077, +0.2824, -0.5783, +0.3528], +[ +0.2195, +0.0042, -0.2501, -0.5760, +0.2663, +0.2616, -1.4127, -0.0305, +0.0709, +0.1793, -0.0951, +0.0447, -0.3207, -0.6272, -0.0155, +0.1012, -0.0007, +0.1282, +0.4843, -0.0964, +0.2349, +0.3481, -0.0057, +0.1658, -0.3583, +0.0888, +0.0394, +0.2364, -0.3175, +0.2203, -0.1178, +0.1645, +0.0964, +0.3774, +0.4404, -0.5199, +0.6773, +0.1753, +0.4348, +0.1499, -0.0905, -0.2781, -0.0887, -0.4866, +0.0237, -0.4941, -0.0295, -0.3038, +0.3751, -0.1036, -0.0868, +0.2667, -0.3343, -0.6834, -0.1344, -0.0162, +0.2101, +0.2938, -0.2194, +0.1351, +0.0117, -0.0811, -0.2689, -0.2086], +[ +0.2790, -0.2113, -0.0294, -0.2711, -0.2345, +0.1162, -0.0328, +0.2538, +0.5912, +0.1002, +0.2225, -0.5451, +0.4108, +0.0101, +0.0081, -0.0407, +0.9695, -0.0133, -0.0273, +0.4477, +0.0020, -0.8086, +0.3932, +0.1379, -0.9660, -0.2829, -0.2764, -0.4216, -0.1525, +0.0447, +0.4320, +0.5953, -0.4424, +0.4349, +0.1270, -1.0019, +0.8496, +0.1190, -0.0241, +0.3886, -0.2159, +0.1899, +0.2716, +0.2144, +0.1521, +0.6238, -0.0974, -0.1747, -0.4646, +0.1670, +0.0986, +0.2091, -0.4881, -0.5386, +0.7234, -0.2337, +0.0926, -0.2680, -0.1878, +0.3848, +0.1225, -0.1042, -0.8029, +0.0488], +[ -0.0194, -0.1207, -0.7887, -0.1932, -0.7671, -0.6160, +0.5836, -0.5835, -0.6046, +0.4231, -0.0390, +0.1148, -0.6782, -0.3514, -0.2648, -0.0168, +0.0781, -0.2630, +0.0882, -0.6942, +0.3235, -0.0105, +0.1153, +0.4368, -0.1751, -0.7266, +0.2544, -1.3023, +0.2659, +0.1671, -0.2608, -0.8921, -0.3162, +0.3498, +0.3295, +0.3511, +0.2690, +0.1425, -0.3212, -0.3263, +0.3445, +0.2796, +0.2022, -0.6122, -0.1682, -0.2297, -0.8197, +0.2056, +0.1508, +0.1413, -0.7759, -0.2761, +0.3577, -0.3738, -0.4012, +0.3824, -0.3468, -0.0403, -0.0345, -1.2605, -0.2159, -0.1952, -0.2995, -1.1620], +[ +0.0024, -0.0664, +0.2425, -0.2706, -0.4890, -0.0621, +0.0284, +0.1899, +0.3082, +0.0377, -0.0764, +0.0176, +0.1866, -0.4896, -0.3989, +0.0462, -0.0192, -0.1653, -0.3642, +0.1768, -0.6478, -0.0532, +0.0198, -0.7094, +0.0706, -0.0496, +0.4831, +0.1259, +0.3517, -0.8037, +0.2697, -0.6875, +0.0155, +0.2172, -0.2454, -0.0460, +0.0325, +0.3533, -0.7351, +0.0536, +0.3590, +0.0721, +0.0898, +0.3589, -0.6221, -0.0299, +0.1699, +0.0649, +0.0230, +0.0554, +0.0944, -0.3458, -0.0950, -0.7440, -0.3821, +0.1427, +0.1813, -0.2649, +0.5347, +0.6652, -0.1711, +0.7013, +0.1752, -0.1868], +[ -0.1828, -0.6123, +0.6553, +0.1558, +0.3014, -0.4433, -0.7209, +0.2053, +0.3311, -0.1320, -0.4184, -0.1434, +0.0526, +0.3701, -0.0308, -0.3408, -0.2352, -0.3524, -0.1875, +0.2216, -0.2856, +0.0646, +0.1154, +0.2610, +0.2901, +0.2325, -0.2882, +0.0842, -1.1907, -0.2716, -0.7922, +0.7111, -1.2862, +0.0379, -0.4006, +0.0314, -0.4250, +0.1251, -0.0795, +0.1266, -0.8298, -0.1187, +0.3498, -0.9881, +0.0415, -0.7624, -0.0081, +0.6712, -0.3528, -0.0880, -0.9316, -0.5180, +0.5190, +0.0895, -0.6918, -0.7873, -0.9653, +0.2742, +0.1894, +0.0651, +0.0850, +0.3659, -0.0652, +0.4338], +[ +0.3964, +0.2627, +0.1103, +0.3970, +0.0069, +0.0609, -0.5005, +0.1489, -0.1099, -0.0272, -0.2021, -0.2302, +0.5451, +0.2993, +0.5454, -0.3649, -0.2674, +0.2017, -0.1702, +0.0644, -0.2060, +0.1508, -0.3876, +0.1846, +0.2237, -0.0312, -0.0015, +0.2604, +0.0666, +0.1684, -0.5425, +0.0538, -0.1207, -0.2343, +0.3771, +0.0393, +0.0222, -0.7628, -0.0214, +0.0529, +0.3262, -0.1331, +0.4950, +0.0991, +0.4385, +0.2752, +0.0735, -0.0804, +0.2287, +0.1171, -0.0309, -0.0385, -0.1264, +0.1230, +0.7229, +0.1880, -0.2943, -0.2166, -0.4507, +0.0930, -0.0285, +0.0990, +0.0044, +0.3985], +[ -0.0031, +0.5645, -0.1319, -0.5523, -0.4907, +0.4110, +0.3013, -0.8591, +0.1433, -0.1375, -0.3205, +0.0561, -0.2520, -0.0548, -0.2757, -0.3679, +0.3600, -0.3787, -0.5952, +0.0254, -0.9357, -0.1175, -0.7752, +0.1179, -0.2159, +0.0500, -0.1339, +0.5283, -0.9314, -0.6431, +0.1058, +0.3230, -0.1007, -0.1266, -0.5315, -0.8632, -0.9976, +0.1715, -0.2625, +0.0601, +0.1164, +0.1491, -0.0567, -0.2342, +0.0974, -0.1337, +0.1588, -0.1241, -0.5045, +0.0436, -0.5320, +0.3478, +0.1662, +0.0267, -0.2026, -0.1873, -0.3899, +0.3353, +0.0762, -0.8446, +0.4566, -0.1213, -0.1316, -0.1156], +[ +0.0788, -0.5533, -0.0632, +0.4225, -0.1865, +0.1681, +0.0134, +0.7480, -0.3772, +0.5010, +0.2476, -0.1259, +0.3469, +0.4376, +0.2804, -0.0866, -0.1412, -0.3347, -0.3281, -0.5378, +0.2721, -0.0447, +0.0935, -0.0756, -0.1555, -0.8725, -0.0454, -0.0183, -0.1579, +0.0542, -0.1080, -0.3307, +0.2024, +0.3322, +0.0422, +0.1186, +0.3260, -0.2936, -0.3349, -0.4838, +0.0834, +0.0592, -0.6705, -0.3260, +0.0743, +0.2571, +0.2412, +0.0242, +0.2629, +0.0535, +0.5536, -0.2178, -0.6783, -0.1315, +0.1264, +0.3777, +0.0022, +0.5147, +0.0381, -0.7052, -0.4232, +0.3291, +0.0325, -0.8253], +[ -0.4288, +0.1143, +0.0962, +0.7745, -0.6219, -0.6415, -0.5820, -0.7458, +0.1792, -0.0657, -0.0073, -0.2255, -0.6996, +0.5389, +0.0176, -0.5660, +0.1982, +0.0434, -0.5836, -0.0448, -0.2092, -0.0071, +0.3852, -0.2947, -0.6535, +0.4864, -0.7791, -0.1412, -0.1299, +0.3475, +0.1343, +0.3463, +0.1048, +0.0316, -0.5184, -0.0222, -0.3967, -0.0674, +0.1681, +0.0684, +0.2178, -0.3731, -0.1102, +0.2250, +0.0125, -0.2276, +0.3460, +0.5391, +0.2497, +0.1035, -0.6424, -0.0980, -0.5851, -0.0769, -0.1334, -0.2680, +0.2863, -0.2820, +0.3512, +0.4946, -0.5509, -0.3891, -0.5598, +0.1242], +[ +0.2275, -1.2861, +0.1299, -0.0979, -0.4085, -0.1043, +0.0712, +0.5451, +0.3515, +0.3715, -0.5478, +0.2548, -0.2834, -0.0661, +0.1657, -0.1720, +0.0069, +0.1588, -0.1688, -0.4428, -0.2631, -0.1873, -0.8449, -0.1050, +0.1493, -0.2306, +0.2786, +0.1779, -1.2995, +0.0726, -0.0404, -0.1492, -0.3769, -0.0255, -1.3681, -0.4152, -0.2884, -0.0752, -0.4874, +0.0279, -0.1301, +0.2796, -0.9356, +0.3804, +0.2122, +0.5285, +0.1615, -0.0558, -0.2161, -0.0181, -0.8286, -0.1466, -0.5898, +0.2223, +0.3719, -1.2969, -0.9986, +0.4289, -0.0471, -0.6719, +0.1405, +0.1363, +0.0252, -0.3354], +[ -0.3759, -0.6515, +0.0460, +0.0283, -0.8381, +0.3087, +0.3022, -0.2319, +0.1286, -0.1438, +0.1850, -0.1800, -0.1794, +0.0986, -0.1768, -0.0451, -0.2033, -0.1855, +0.6338, -0.4709, -0.5497, +0.7151, -0.4716, -0.5314, +0.1111, +0.2166, -0.0352, -0.0598, +0.3829, -0.0287, -0.0314, +0.0628, +0.1576, +0.2672, -1.1742, -0.4661, -0.9687, +0.1184, -0.5358, -0.7947, +0.2941, +0.3904, +0.5036, -0.0896, +0.1207, +0.1425, +0.2391, -0.0947, +0.0254, -0.0128, -0.7186, -0.0005, -0.2771, +0.0802, -0.2057, -0.1500, -0.0696, +0.1850, +0.3296, -0.1802, -0.8522, +0.1613, -0.3446, -0.9611], +[ -0.0172, +0.2102, +0.1269, -0.9535, -0.3040, +0.3378, +0.3050, -0.2810, -0.2334, +0.2156, -0.0862, -0.1692, -0.2226, -0.2373, -0.0424, -0.2194, +0.5642, +0.3826, -0.5695, +0.2485, -1.7143, -0.1864, +0.3349, -0.0294, +0.2349, +0.1219, +0.3391, +0.2065, +0.1599, -0.0162, +0.2464, +0.2802, +0.1396, +0.1066, +0.2178, -0.2903, +0.2673, +0.4015, -0.0220, +0.3709, +0.6791, +0.1762, -1.1385, -0.2852, +0.4311, -1.1372, +0.3373, +0.0017, +0.3223, -0.5834, -1.0435, +0.1683, -1.1370, +0.0143, -0.0677, -0.0824, +0.0469, -0.2916, +0.2428, +0.6020, +0.1504, +0.2878, +0.2507, -0.0694], +[ -0.2793, -1.2367, +0.1159, -0.2581, +0.3229, +0.0633, +0.0636, +0.2241, +0.3225, -0.0054, -0.3638, -0.0872, -0.8421, -0.0888, +0.0428, -0.2117, -0.1279, -0.3660, +0.3204, -0.1785, -0.0268, +0.2952, +0.1293, -0.1686, +0.0307, +0.3396, +0.2283, +0.1379, -0.0364, +0.1079, +0.2544, +0.0268, +0.2063, -0.2763, -0.3733, +0.1734, -0.0365, +0.2843, +0.1328, +0.0068, +0.0526, -0.0669, -0.7334, -0.0753, +0.0473, -0.2722, +0.2632, +0.2818, +0.3078, -0.4365, -0.4914, -0.8685, -1.4296, +0.1319, +0.2325, -0.4812, -0.1695, +0.1455, -0.4673, +0.2661, +0.2466, +0.1248, +0.5303, +0.2625], +[ -0.2681, +0.0662, -0.5923, -0.3222, -0.6338, -0.5358, +0.6831, -0.0542, +0.4915, -0.0380, +0.0579, +0.3449, -0.6349, +0.4578, +0.0056, -0.2389, -0.0125, -0.6983, +0.0123, +0.5005, -0.3100, -0.1522, +0.1345, +0.5235, +0.6363, +0.1654, +0.1748, +0.2844, +0.2939, -0.2889, +0.2093, -0.3874, -0.0596, +0.1637, -0.5551, -0.2298, -2.1090, -0.6629, +0.3637, +0.1401, -0.3406, -0.2474, -0.2669, -0.6201, -0.4406, +0.1284, +0.8146, +0.2618, -0.2990, +0.5372, +0.4015, -0.4386, -0.3580, +0.3213, -0.1395, -0.1086, -0.3120, +0.3592, -0.1714, -0.9797, -0.2330, -0.2895, +0.5740, -0.0750], +[ -0.9698, -0.8484, +0.0831, +0.3071, +0.3030, -0.3330, +0.2211, +0.1237, +0.1860, -1.4592, +0.0474, -0.2930, -0.5213, -0.2863, -0.4018, -0.5164, -0.7680, -1.2742, +0.1244, -0.6117, +0.3339, -0.6391, +0.0054, -0.6506, +0.2615, -0.1341, +0.3390, -0.9834, -0.5222, +0.5488, +0.1504, +0.1792, -0.0281, -0.2283, -0.7494, -0.2537, -0.2610, -0.1271, -0.1880, +0.0840, +0.1234, +0.2401, -0.1056, +0.1950, -0.4009, +0.0054, -0.2824, +0.5646, +0.2155, -0.2039, -0.4253, +0.0929, +0.3874, +0.0945, -0.3247, -0.4850, -0.3040, -1.0356, +0.1536, -0.0128, -0.2592, -0.8912, +0.0705, +0.3209], +[ -0.3948, -0.9965, +0.0050, +0.2379, +0.0539, +0.3259, +0.0382, -0.1108, -0.2276, -0.4007, +0.0166, -0.5534, -0.2853, +0.4997, +0.2019, +0.0453, +0.2201, -0.2351, -0.9356, -0.2385, -0.0424, -0.5058, +0.4940, -0.6912, -0.4253, +0.0810, -0.3655, +0.1859, -0.0412, -0.0912, +0.0632, -0.2972, +0.0772, +0.0487, -0.0515, +0.1638, +0.3188, -0.1115, -0.2563, +0.4259, +0.2540, -0.0207, -0.0622, +0.0273, -0.6594, +0.2525, +0.5872, +0.0366, -0.1142, -0.2282, -0.1075, +0.8922, +0.1124, -1.6357, +0.2399, -0.0886, +0.1945, -0.2365, -1.6711, -0.5883, +0.4049, -0.0049, -0.5896, -0.0418], +[ -0.4143, +0.1528, +0.4760, +0.1183, +0.0014, +0.2190, -0.0362, -0.8062, +0.3214, +0.1326, +0.2072, +0.1400, +0.4244, -0.3917, -0.8188, +0.4239, +0.1449, +0.2362, -0.5594, +0.6168, -0.3246, +0.3341, -0.5919, +0.0815, +0.4067, +0.1814, +0.4408, -0.4474, -0.2818, -0.0265, -0.1569, -0.4575, +0.4622, +0.2102, +0.1408, +0.1323, -0.2570, +0.1578, +0.1281, +0.2395, +0.0889, +0.0440, +0.3288, +0.3748, +0.0734, -0.1664, -0.5203, +0.0544, -0.0571, +0.2111, +0.2552, -0.6038, +0.4826, +0.0443, -0.2141, +0.4272, +0.2828, -0.6792, -0.6578, +0.3101, -0.0040, +0.2418, +0.1197, +0.0414], +[ +0.5036, -0.0710, -0.5354, -0.0832, +0.5295, -0.3346, -0.6920, +0.2490, -0.0346, -0.6139, +0.5644, +0.5261, +0.0128, -0.5987, +0.3123, -0.3102, -0.2144, +0.1843, -0.5506, -0.1807, +0.1333, -0.2694, +0.2776, -0.3190, -0.1241, +0.2397, +0.0467, +0.1639, -0.0202, +0.2547, +0.2727, +0.2766, +0.1032, +0.2433, -0.2080, -0.1870, -0.1091, -1.2571, -0.5648, +0.3736, -0.6316, +0.2332, +0.3590, -0.0994, -0.1051, +0.2673, +0.0045, -0.0055, +0.2778, +0.3100, +0.5339, -0.3611, +0.0369, +0.0216, +0.3185, -0.8140, +0.3609, -0.6879, -0.6326, +0.0915, +0.1364, -0.1097, -0.2144, +0.2251], +[ +0.5415, -0.3312, -0.7819, -0.5402, +0.0574, +0.2336, +0.0098, +0.3032, +0.2109, -0.1144, -0.3755, +0.1675, +0.6641, -0.6918, +0.2823, +0.3307, +0.0195, -0.2317, +0.0834, -0.3695, +0.7589, -0.1579, +0.1433, -0.4708, -0.5547, +0.0167, -0.5846, -0.4162, -0.0054, +0.4191, +0.0935, -0.3095, -0.0772, -0.5562, +0.0620, -0.8387, -0.4571, -0.2059, +0.4216, -0.4745, -0.3587, -0.0113, -0.4873, -0.3253, -0.2477, +0.2562, -0.1393, -0.2321, -0.3196, -0.0813, -0.1766, -0.5138, +0.1283, +0.0956, -0.0365, +0.1988, +0.1467, -0.0275, -0.0379, -0.0494, +0.0763, -0.0612, -0.4318, +0.2575], +[ -0.2761, -0.9689, -0.3303, -0.7023, -0.4928, -0.3009, +0.0291, -0.4230, +0.5759, +0.0989, -0.8509, -0.1306, -0.0595, +0.1574, -0.0485, +0.5048, +0.3384, -0.1445, -0.2781, -0.4470, +0.0887, +0.2998, -0.0981, +0.6717, +0.0993, +0.1626, +0.2985, -0.0080, -0.0010, +0.0653, +0.2250, +0.6091, +0.1562, +0.1161, +0.5716, -0.2470, -0.4208, -0.5375, -1.1928, +0.1185, +0.8855, +0.3924, +0.0061, -0.1286, +0.2825, -0.3767, -0.3815, +0.1588, -0.6792, -1.0360, -0.1299, +0.4925, -0.0620, -0.7220, -0.7866, +0.1224, -0.1552, -1.0134, +0.5721, -0.7248, -1.0616, -0.5778, +0.3760, -0.2161], +[ -0.5326, +0.7165, +0.0792, +0.2508, -0.2711, -0.2975, -0.0981, -0.0309, -0.0226, -0.1754, -0.0990, -0.1178, -0.5456, +0.1010, -0.3404, +0.0810, +0.4984, +0.2788, -0.3860, -0.1752, -0.6125, -1.2417, +0.4557, -0.4470, +0.4315, -0.0454, -0.2439, -0.9114, +0.6899, +0.5681, -0.3259, +0.4912, -1.0011, -0.4782, +0.8627, +0.3346, -0.4200, +0.6671, -0.4101, +0.2222, -0.2604, -1.1758, +0.5707, -0.5659, -0.1541, +0.0028, -0.6961, +0.1943, -1.2026, -0.3061, -0.2279, +0.1856, -0.3946, +0.2157, +0.4633, +0.1402, +0.2419, -0.6997, +0.2056, +0.6528, -0.4918, -0.0056, -0.3281, -0.0303], +[ -0.2521, -0.4440, +0.2354, -0.8008, -0.7654, -0.9568, -0.3908, -0.1637, +0.1596, -0.2531, -0.0419, -0.0372, -0.3797, +0.1746, +0.3741, +0.0963, -0.5509, -0.7025, -0.3153, +0.2185, -0.5326, -0.9472, +0.2125, -0.0905, +0.1235, +0.0780, +0.2451, +0.1500, -0.6441, -0.8495, -0.1646, -0.7545, -0.2271, -0.2027, +0.0191, +0.1703, -0.4407, -0.9649, -0.0960, +0.1947, -0.7579, +0.0200, +0.1715, -0.8105, -0.3087, -0.0016, +0.1807, +0.2233, -0.3559, +0.1208, +0.6184, -0.3895, -0.0184, -0.0622, -0.2338, -0.2363, -0.9124, +0.1358, -0.5606, -1.4253, -0.1812, -0.2845, +0.1957, -0.0284], +[ +0.2106, +0.1527, +0.0672, -0.4241, -0.5017, -0.5233, -0.2833, +0.0599, -0.2671, +0.2882, -0.0645, -0.3441, -0.0450, +0.3017, +0.5250, +0.0886, +0.1231, -0.3728, +0.3071, +0.0619, +0.3998, +0.4689, -0.4973, +0.0398, -0.0601, +0.0153, -0.6525, +0.3215, -0.3874, +0.0084, -0.9022, -0.6516, +0.0830, +0.1692, -0.2292, +0.1235, -1.1122, -0.0030, +0.4186, -0.2612, -0.8774, -0.6022, -0.1726, -0.3275, +0.1364, -1.1799, -0.0944, -0.1624, -0.3801, -0.0173, +0.1695, -0.3159, -0.1089, +0.2296, -0.4541, +0.0854, +0.3056, +0.2502, -0.1071, -0.1358, -0.6425, -0.2226, -0.5790, +0.0545], +[ +0.1139, -0.3351, +0.4969, -0.1394, -0.1872, +0.1136, -0.5034, +0.4215, +0.0047, +0.3804, -0.2160, -0.2978, +0.0770, -0.1280, +0.0935, -0.1517, +0.2508, +0.0238, +0.2649, +0.1492, -0.2315, -0.1531, +0.3535, -0.3587, -0.0937, -0.0271, -0.1757, +0.0513, -0.3445, -0.1265, +0.0707, +0.3534, +0.3746, +0.1297, -0.4518, +0.1721, -0.1487, +0.1188, -0.0693, -0.3754, -0.0135, +0.3600, -0.5287, +0.0960, +0.3786, -0.4262, -0.2394, -0.2733, +0.5393, -0.0416, -0.6425, -0.1794, +0.2697, +0.0738, -0.0440, -0.4378, +0.2735, +0.0333, +0.0073, +0.4403, +0.1354, +0.2958, +0.1619, -0.1507], +[ -0.5420, +0.0362, -0.4296, +0.0190, +0.2051, +0.3369, -0.3391, -0.1887, -0.0326, +0.3692, +0.0149, -0.3465, +0.6006, -0.4643, +0.0753, +0.4372, +0.2077, +0.1342, -0.8206, -0.0578, -0.2016, +0.2382, +0.6409, -0.0740, -0.2623, -0.1396, -0.0616, +0.2323, +0.0943, -0.1674, -0.4978, +0.8055, +0.3402, +0.2021, +0.1088, -0.1912, -0.0790, +0.3857, +0.3156, +0.3516, -0.0174, -0.2086, +0.1347, -0.0845, -0.3709, -0.3238, -0.8348, +0.1269, -0.0504, +0.3153, +0.2908, +0.2420, -0.0790, -0.2399, +0.1506, +0.1858, -0.1051, +0.0915, -0.1252, +0.1255, -0.0974, +0.5441, +0.0452, +0.3842], +[ +0.0955, +0.0485, +0.3281, +0.0474, +0.3446, -0.6093, -0.4275, +0.3763, +0.3858, -0.1701, -0.1463, +0.2718, +0.2689, -0.3098, +0.0246, -0.4480, +0.0518, -0.1522, -0.8059, +0.2289, +0.1221, -0.3030, +0.1093, -0.1955, -0.0475, +0.0153, -0.3349, +0.1145, -0.8206, -0.0766, -0.1023, +0.2766, -0.0855, +0.0702, -1.0922, -0.3249, -0.5735, +0.0820, +0.3922, +0.2788, -0.0104, +0.0196, +0.0290, -0.1168, -0.3654, -0.3279, -0.0258, -0.2164, +0.0979, +0.1401, -0.9651, -0.2296, +0.0746, -0.2225, -0.2155, -0.7558, +0.2613, -0.0114, -0.8169, -0.1495, +0.2781, +0.3386, -0.9345, +0.2608], +[ +0.5088, +0.2218, +0.1765, -0.0331, -0.3075, -0.2475, +0.5497, +0.1426, -0.1553, +0.3819, +0.2006, -0.0863, +0.1830, +0.1197, -0.0123, -0.3290, -0.1844, +0.4336, -0.0328, +0.1667, -0.1849, +0.0575, -0.6713, +0.0672, -0.3829, -0.6262, -0.1215, -0.1144, -0.2839, +0.1405, -0.3369, -0.2201, -0.4221, +0.3506, +0.1168, -0.0560, +0.5997, -0.4228, +0.1629, -0.4290, +0.1672, -0.0236, +0.1454, -0.6296, -0.3503, +0.3121, -0.6164, +0.0040, -0.4038, -0.0525, -0.3641, -0.0239, -0.0257, -0.0226, +0.0809, +0.6442, -0.4453, +0.2383, +0.2805, +0.0694, +0.0128, +0.3397, -0.3719, -0.2788], +[ -0.4670, -0.4915, -0.0640, -0.1080, +0.2980, -0.3258, +0.1757, +0.2146, -0.1510, -0.0491, +0.0563, -0.3987, -0.4028, -0.3628, +0.2874, +0.0314, +0.1795, -0.2589, -0.0268, +0.2839, +0.1206, +0.2479, +0.4548, -0.3583, -0.0697, +0.2491, -0.0507, -0.4918, +0.8737, +0.1426, +0.0454, -0.1107, +0.2844, +0.1997, -0.3644, +0.0446, -0.0212, +0.1599, -0.3419, -0.6802, +0.0552, +0.2812, -0.3779, +0.1032, -0.3777, -0.3186, -0.3213, +0.4516, +0.0486, -0.0300, +0.5251, +0.2281, -0.6970, -0.8787, -0.2758, +0.0643, -0.0935, -0.0450, +0.3067, +0.1487, -0.2221, -0.7158, +0.0694, +0.3405], +[ -0.0807, +0.1956, -0.7065, -0.1968, -0.4069, -0.5939, +0.1061, -0.5533, -0.0029, +0.1155, +0.5999, +0.2973, -0.1382, -1.8868, -0.0625, +0.1852, -0.3384, -0.3145, -0.7115, -1.2999, +0.2507, +0.0126, -0.6911, -0.0353, -0.2144, -0.5896, +0.2757, +0.1991, +0.4955, +0.1525, +0.0883, -0.3836, -0.5029, -0.9232, -0.0399, -1.1315, -0.3385, -0.4110, +0.6206, -0.0164, +0.0728, -0.1295, +0.3592, +0.1283, +0.1660, -0.8184, +0.2055, +0.0100, +0.0749, -0.1921, -0.7224, -0.3581, +0.3517, -0.5052, -0.1384, +0.2164, -1.1142, -0.2332, +0.1493, -1.4533, +0.0383, -0.1263, +0.3252, -0.5295], +[ +0.4723, +0.0690, +0.0814, -0.3747, -0.8142, +0.2669, -0.1641, +0.3448, +0.2360, -0.1284, +0.2488, +0.1250, +0.1398, -0.3875, +0.1035, -1.5125, +0.2221, +0.4065, -0.2947, -0.0980, +0.3115, +0.0269, -0.1230, +0.3413, -0.1347, +0.1201, -0.6609, -0.1416, +0.3478, +0.0002, -0.0886, +0.5476, +0.3687, +0.6390, -0.7058, -1.8022, -0.5987, +0.1807, -0.4258, +0.6345, +0.3594, -0.1921, -0.3109, -0.3026, +0.1414, -0.2782, +0.1817, -0.4103, +0.1402, +0.4675, -0.5731, +0.0838, -0.2392, -0.6368, +0.0406, -0.2823, -0.0034, +0.2043, +0.1200, +0.0025, +0.1826, +0.0479, -0.0833, -2.2805], +[ +0.2949, -0.1150, +0.1010, -0.3074, -0.9746, -0.6663, +0.0088, -0.2697, -0.3506, +0.0307, +0.1338, -0.5369, +0.0397, +0.3680, +0.1448, +0.2810, -0.6666, -0.0522, +0.2465, -0.0007, +0.1407, -0.3858, -0.1713, +0.2521, +0.3547, +0.0813, +0.1617, -0.2469, +0.1505, +0.0883, +0.1682, -0.1433, -0.5352, -0.4478, -0.2829, +0.1012, -0.1545, +0.2683, +0.0461, +0.2103, -0.7766, -0.9584, -0.3077, -1.1369, +0.2401, +0.3353, -0.6189, +0.1956, -0.1073, -0.4741, +0.0010, -0.6126, +0.0567, +0.4589, -0.3578, +0.2795, -0.2678, -0.2943, -0.5274, -0.0226, +0.0119, +0.2351, -0.2179, +0.2254], +[ -0.2141, +0.1382, +0.4498, +0.6240, -0.3318, -0.7858, -0.0516, -0.4167, +0.1866, +0.2468, -0.3664, -0.8685, -0.0878, +0.1317, +0.1082, +0.4507, -0.2831, +0.1331, -0.0394, +0.0402, -0.2291, +0.3571, -0.3876, +0.0876, +0.4871, -0.8254, +0.2762, +0.0464, -0.3720, -1.0204, -0.2339, -0.3136, -0.3625, -0.3413, +0.1632, +0.5506, -0.3524, +0.3550, -0.4057, -0.4933, +0.3779, +0.0777, +0.0433, -0.1397, -0.3430, -0.0584, -0.1373, -0.0246, -0.6115, +0.3367, -0.2185, -0.0417, +0.4116, +0.2236, -0.0797, -0.0377, -0.7056, +0.2603, +0.0040, -0.0374, -0.2992, +0.1517, -0.6489, +0.0531], +[ -0.1267, -0.5069, +0.2074, -0.2553, -0.4368, -0.4911, +0.3021, -0.2026, -0.3328, -0.5599, -0.4192, -0.1039, +0.2192, -0.3493, +0.4454, -0.0429, +0.2264, +0.2224, +0.4339, -0.4501, -0.0765, -1.2330, +0.3052, -0.5080, -0.0426, -0.0030, -0.6783, +0.0537, -0.1739, +0.2823, +0.4150, -0.3388, -0.1453, +0.3024, -0.1280, +0.1714, -0.3645, -0.0861, -0.4287, +0.2726, -0.8224, +0.2332, +0.0662, -0.2844, -0.1834, +0.2771, +0.0497, -0.3258, -0.6752, +0.2520, +0.3726, +0.7169, +0.1558, -0.5803, -0.2885, -0.3842, -0.3185, +0.3158, +0.1080, +0.1682, +0.0620, +0.3014, -0.1028, +0.1426], +[ -0.0723, -0.5000, +0.1487, -0.0095, -0.4658, -0.3077, -0.7908, -0.4927, -0.5117, -0.3589, -0.9917, +0.5179, +0.2535, -0.7080, -0.2462, +0.0268, -0.3043, +0.4264, +0.0668, -0.1914, +0.2648, -0.3950, +0.3762, -0.4192, +0.2441, +0.1355, -0.7419, -0.6720, +0.1731, +0.1542, -0.3981, +0.3598, +0.0109, -0.2058, +0.0691, -1.2895, -0.1651, +0.1311, +0.4099, +0.2998, +0.3317, +0.2282, +0.5977, +0.0649, -0.0173, -0.4743, +0.1518, -0.3689, -0.6426, -0.4369, -0.7365, -0.6539, -0.0260, +0.0977, -0.0872, -0.7097, +0.2004, -0.3222, -0.3049, -0.1635, +0.1556, +0.1445, -0.2192, -0.1735], +[ -0.8152, -0.2915, -0.2327, -0.2137, -0.1635, +0.2767, -0.0897, +0.0506, +0.3301, -0.6531, -0.1230, +0.2334, -1.0137, +0.4155, -0.2141, -0.3039, +0.1495, +0.2163, +0.2163, -0.0377, +0.0263, +0.2615, -0.2307, +0.6041, -0.0230, +0.2658, -0.3772, -0.7199, +0.1255, -0.3156, +0.5027, +0.0295, -0.0046, +0.0743, +0.1850, +0.2075, -0.5971, -0.3057, +0.0794, -0.3854, +0.0672, +0.2752, +0.5847, +0.5027, -0.6998, +0.3995, -0.0344, -0.5871, -0.4606, -0.6819, +0.4443, -0.6050, +0.0125, -0.0160, +0.0141, -0.2969, +0.0984, -0.2110, +0.1360, -0.0030, -0.2199, -0.2806, -0.4028, -0.2105], +[ +0.0086, +0.2366, -0.2388, -0.7499, +0.3473, -0.3351, +0.4687, -0.6588, +0.3916, -0.8119, -0.5929, +0.2525, -0.7352, -0.2726, +0.2062, +0.0520, +0.3612, -1.1951, +0.2574, -0.5112, -0.1439, +0.1617, +0.1917, -1.9899, -0.1703, +0.3676, +0.2320, -0.0203, -0.4018, +0.3225, +0.0675, -0.5493, -0.1561, +0.2205, +0.1122, -0.8326, -0.9873, -0.2357, +0.6072, +0.3998, +0.0549, -0.2751, +0.0890, -0.3323, +0.0969, -0.1550, +0.3064, +0.4299, +0.1660, -0.1824, +0.2009, -0.3313, -0.0823, -0.2167, -0.1848, +0.2666, +0.2336, -0.1165, -0.3577, -0.6992, +0.3805, -0.4676, +0.1645, +0.1216], +[ -0.5994, +0.2128, -0.4627, +0.0702, +0.3855, +0.1554, -0.0293, +0.3617, +0.3152, -0.1431, +0.4439, +0.2291, -0.1586, -0.0755, -0.4190, -0.3665, -0.0843, +0.0891, -0.2107, +0.1810, +0.1604, +0.1431, +0.3822, -0.2960, +0.0394, +0.2106, -0.3115, +0.0588, -0.0221, +0.2901, +0.2319, +0.0913, +0.0881, +0.1558, +0.2094, -0.5158, -0.0340, +0.0142, +0.1323, +0.2055, -0.3577, +0.3536, +0.0224, +0.0234, +0.0999, +0.3119, +0.0797, -0.4424, -0.2596, +0.1601, -0.2896, -0.6153, +0.1903, -0.0908, +0.1287, +0.0787, +0.1265, -0.8994, -0.5396, -0.0339, +0.2975, -0.2216, +0.1704, -0.1286], +[ -0.0142, +0.2379, -0.1136, -0.0227, +0.0428, +0.2032, -0.2604, -0.5311, +0.0952, +0.2859, +0.2672, -0.3840, +0.2569, -0.5696, +0.0714, -0.2037, +0.3220, +0.2425, -0.1276, -0.7212, +0.2417, -0.0748, +0.2104, -0.1355, -0.2372, +0.0144, +0.4330, -0.0108, -0.7008, +0.1504, -0.4478, -0.3534, -0.0906, +0.0781, +0.0750, +0.3150, +0.0884, +0.5228, +0.0073, +0.1359, +0.2701, -0.2142, -0.2422, -0.4849, +0.2584, -0.1368, -0.1542, +0.3142, +0.1448, +0.0291, +0.1900, -0.3429, -1.3660, -0.1068, -0.0261, +0.0589, +0.3062, +0.1114, -0.3424, -0.0476, -0.0689, -0.0977, +0.6588, +0.1288], +[ +0.1364, -0.1144, +0.1574, -0.3419, +0.1935, -0.0943, +0.2272, -0.1504, +0.3254, +0.3180, -0.3487, +0.5566, -0.9484, -0.0958, +0.1641, -0.5995, -0.2025, -0.2777, +0.0415, -0.1855, -0.1811, -0.1807, +0.1249, -0.1251, -0.1046, -0.2293, +0.3936, -0.1513, +0.0573, +0.0934, -0.0753, -0.0327, +0.0111, -0.0191, -0.4537, +0.2813, +0.2061, -0.0505, +0.0374, -0.0946, +0.3502, +0.0734, -1.0019, -1.0110, +0.3520, -0.3134, -0.0215, -0.2545, +0.1434, -0.5697, -0.7286, -0.4365, -1.6550, +0.0742, -0.7167, -0.1912, -1.1841, +0.0912, -0.6878, -0.3645, +0.2087, +0.5016, -0.1441, +0.1419], +[ -0.1610, -0.7360, +0.1001, -0.5159, -0.1114, -1.3956, -0.4303, -0.1506, +0.0529, +0.1836, +0.2128, -0.3067, +0.0156, +0.1256, -0.0579, -0.0213, -0.0353, -0.3984, -0.5750, -0.3961, +0.4362, -0.0910, +0.2649, +0.1807, -1.0079, -0.6953, -0.4110, -0.0544, -0.1440, -0.0898, +0.3983, +0.0142, +0.3467, +0.0764, +0.5826, -1.0772, +0.1329, +0.1583, +0.4074, -0.4069, -0.2080, +0.0637, -0.2797, +0.1188, -0.0272, +0.0528, -0.1775, +0.1708, -0.1801, +0.3543, +0.1264, -0.8590, -0.4402, -0.3558, +0.3612, -0.3962, +0.1641, +0.2552, -0.6210, -0.3405, -1.3635, -0.3804, -0.0130, -0.2085], +[ -0.3926, -0.4244, -0.8905, -0.1961, -0.1443, -0.9498, -0.3382, -0.8519, -0.6429, -0.2444, -0.1375, -0.5616, +0.4198, -0.5713, -0.2244, -0.1486, -0.1400, -0.2307, -0.0475, -0.2259, +0.1446, +0.2832, -1.2677, -0.6729, +0.6527, +0.4285, -0.5992, +0.0715, -0.6911, -0.4754, -0.9201, -0.4254, -0.7185, +0.0664, -0.4074, -0.4005, -0.1831, +0.2600, -0.4282, -0.1873, -1.4707, +0.5088, -0.4531, -0.0573, +0.4479, -0.3896, -1.3122, -0.2406, -0.7760, -0.0552, -0.1311, +0.2692, -0.2829, -0.2300, -0.9993, +0.2252, +0.6695, +0.0364, -0.1045, +0.0466, -0.8347, -0.3719, +0.2533, +0.1563], +[ -0.2412, +0.3157, -0.0911, -0.9888, +0.6987, +0.2569, -0.2099, -0.1531, -0.3486, -0.3566, -0.1593, -0.0828, -1.2565, -0.1513, -0.1533, -0.0785, -0.5587, +0.3774, +0.5322, +0.0573, -0.3218, -0.0546, -0.1710, +0.2196, -0.1172, +0.2556, +0.2856, -0.2720, +0.0261, +0.2103, +0.0640, -0.0452, -0.2239, -0.0712, +1.1437, -0.7186, -0.2894, +0.5009, +0.1654, +0.1889, +0.5348, -0.2929, +0.3507, +0.1541, -0.2035, -0.4617, +0.2521, +0.2938, +0.0196, +0.1961, -0.5070, +0.5579, -0.1937, +0.0963, +0.1044, -0.1526, +0.7057, -0.7649, -0.1567, -0.0077, -0.2938, +0.1193, -0.1897, -0.1215], +[ +0.3582, +0.0938, -0.0087, +0.2090, -0.9981, +0.3406, +0.2442, +0.2977, +0.0398, -0.1321, +0.1777, -1.1774, +0.5394, -0.2764, -0.0729, +0.1203, -0.0837, +0.1776, -0.1322, +0.3963, +0.0025, +0.0991, -0.0755, -0.3995, +0.1701, +0.1077, -0.0413, -0.4130, +0.0422, +0.2433, +0.0258, -0.1082, -0.1366, +0.0227, +0.0329, -0.1431, +0.0231, -0.2993, -0.0951, -0.0591, -0.0835, +0.0814, +0.0316, -0.3648, +0.4959, +0.4102, +0.2490, -0.3487, +0.2844, +0.3580, -0.2262, -0.2718, +0.0704, +0.0435, +0.1235, +0.8514, -0.3005, -0.6121, -0.0672, -1.0684, +0.2366, +0.1307, +0.2148, -0.4796], +[ +0.8412, +0.5887, -0.4191, +0.0875, -0.4845, +0.6013, +0.5707, +0.3917, -0.0227, +0.4339, -1.0224, -0.7570, +0.3608, -0.2532, +0.1064, +0.6448, -0.2207, -1.2217, +0.1895, -0.0188, +0.3665, -0.4125, -0.2246, -0.3406, -0.3777, +0.1114, +0.0960, -1.4468, +0.2017, -0.1103, -0.5602, -0.0740, -0.1705, -0.0307, +0.6227, +0.5056, +0.0644, -0.3713, +0.2553, -0.0499, -0.1112, -0.3409, +0.2212, +0.5274, +0.1242, -0.0929, +0.5207, -0.3954, +0.2206, +0.6032, -0.1240, -0.3202, +0.5229, -0.3248, -0.2238, +0.0788, +0.1125, -1.5450, -0.2782, -0.3103, +0.4263, +0.5339, -0.4021, -0.0213], +[ -0.1685, +0.2132, +0.2234, +0.1307, -0.4110, -0.3189, -0.4531, +0.1865, -0.0200, -0.0282, +0.5585, -0.4741, -0.0928, -0.1840, -0.4882, +0.0903, +0.2165, -0.3946, +0.1760, +0.4589, -0.1230, +0.2934, +0.0979, +0.1098, +0.2834, +0.4592, -0.6382, +0.1312, -0.7111, -0.3250, +0.0696, -0.2336, -0.1130, -0.1304, +0.4843, +0.3157, -0.8460, -0.0586, +0.4201, -0.3655, +0.0920, +0.6134, +0.3466, +0.2227, -0.4758, -0.0722, +0.0661, -0.9082, -0.1224, +0.4001, -0.6238, +0.0766, +0.4568, +0.8708, +0.3388, -0.4030, -0.1210, +0.0577, -0.0684, +0.1317, +0.0379, -0.7594, -0.8605, +0.1362], +[ +0.3891, -0.0004, +0.0555, -0.1140, -0.3759, +0.1374, +0.3610, +0.0419, -0.3176, +0.3248, +0.2752, +0.0961, +0.4376, +0.2473, +0.0575, +0.2554, -0.7989, +0.5068, -0.1314, -0.2717, -0.3923, +0.1135, -0.3779, +0.1417, -0.0900, -0.5626, +0.0551, -0.1210, -0.0790, -0.1690, -0.5073, -0.6554, -0.4579, -0.0294, +0.2184, +0.3044, +0.3497, -0.7188, -0.2664, -0.7073, +0.2607, -0.2781, +0.4217, -0.8461, -0.1371, +0.2458, +0.1470, -0.0571, +0.3661, +0.1540, +0.0704, -0.1645, -0.1654, +0.2660, -0.1874, +0.7393, -0.3254, +0.3798, +0.0534, -0.3681, -0.4176, +0.4060, -0.2834, -0.0005], +[ -0.0320, +0.0778, -0.0580, +0.5162, -0.3992, -0.2747, +0.3408, +0.2020, -0.1224, -0.8774, +0.2791, -0.7213, -0.6805, +0.3189, -0.0929, +0.0764, +0.4005, -0.1066, -0.1712, -0.7954, +0.0733, +0.2352, -0.1182, +0.1373, +0.3099, +0.0808, -0.5416, +1.1081, -0.5261, -0.2217, -0.0330, -0.1539, +0.2503, +0.5595, -0.2014, +0.1417, +0.2703, -0.1015, +0.8298, -0.3646, +0.1370, +0.2641, +0.2149, +0.1676, -0.4836, -0.0130, -1.0195, +0.0247, -0.0851, -0.9918, -0.0406, +0.0383, -0.0550, +0.4607, +0.2914, +0.1750, +0.2401, +0.3667, -1.1202, -0.3222, -0.0731, -0.0615, -0.3787, +0.4553], +[ -0.4131, -0.5941, -0.6169, -0.6164, -0.4406, -0.3381, -0.1022, -0.0502, -0.0368, +0.4848, -0.4012, -0.1352, -0.2898, -0.0027, +0.1197, +0.2204, +0.1906, -0.7479, -0.4403, +0.1008, -0.3108, -0.3402, +0.4565, -1.1084, +0.1237, -0.2884, +0.0959, -0.1072, -0.5372, +0.1698, +0.1137, -0.1729, +0.5687, -0.0171, -0.5504, +0.5379, -0.0916, +0.3523, +0.1967, -0.8104, -0.2025, +0.3720, -0.5468, -0.4242, -0.1023, -0.2784, +0.1138, +0.1413, +0.7391, -0.3176, +0.4443, -0.2557, +0.1129, -0.3916, -0.7132, +0.2897, -0.1364, +0.4325, -0.6139, -0.3159, +0.0334, +0.3121, -0.0236, -0.6013], +[ +0.3438, -0.2672, -0.2729, -0.8516, -0.7865, +0.2380, -0.2967, -0.1444, -0.1531, +0.4419, +0.0100, -0.5118, +0.0695, -0.6206, +0.0933, +0.3544, +0.5651, -0.2669, -0.5611, -0.1266, -0.1960, +0.2097, +0.5543, +0.2757, -0.2284, -1.5897, +0.0603, +0.2600, -0.0583, +0.0183, -0.1176, +0.2799, -0.0466, +0.1799, -0.1208, +0.1377, +0.1683, -0.3353, -0.5734, -0.5524, -0.5980, +0.1921, +0.2213, -0.5839, +0.0293, -0.6613, -0.6761, +0.0707, -0.3450, -0.1691, -0.2508, -0.2959, +0.2573, -0.0742, -0.3314, +0.0760, +0.5143, -0.5326, +0.1858, +0.0744, +0.3574, +0.2932, -0.6550, -0.1763], +[ -0.1878, +0.3530, +0.2846, -0.4720, -0.6593, +0.2894, +0.1681, +0.1220, +0.3990, -0.5962, +0.3605, -0.2635, +0.0589, -0.0482, -0.3337, +0.0602, +0.1452, -0.1377, +0.1189, +0.7641, +0.2783, +0.3026, -0.2819, +0.1425, +0.4815, -0.0261, -0.6602, +0.2245, +0.1700, -1.0549, +0.3293, -0.0214, -0.2830, +0.2202, +0.1940, +0.3953, -0.5394, -0.2268, -0.0700, -0.5736, +0.0992, +0.3600, +0.1267, +0.3211, -0.5622, -0.1395, -0.2889, -0.1606, +0.0129, +0.4565, -0.0817, -0.3216, +0.0586, -0.3770, +0.1933, +0.5314, -0.2282, +0.5116, -0.3646, -0.0844, -0.1667, +0.2177, -0.4722, +0.1682], +[ -0.6046, -0.0019, +0.7055, +0.0671, -0.5065, -0.8512, -0.0155, -0.0531, +0.1195, -0.4814, -1.2434, -0.3227, +0.3413, -0.8682, -0.8491, +0.6140, +0.2121, +0.0350, -0.3647, +0.6926, +0.0886, -0.5127, +0.5188, -1.3790, -0.6758, -1.0013, +0.3871, +0.3379, -0.2159, +0.0706, +0.5615, +0.7641, -0.0087, +0.0456, +0.4031, -0.1160, +0.5081, -0.1776, -0.3154, +0.2156, +0.5289, -0.0052, -0.2746, +0.2361, -0.7520, -0.1301, +0.3298, -0.1321, +0.4440, -0.6782, -0.2450, -0.2377, -0.1662, -0.1527, +0.1268, -0.2387, +0.8365, -0.9122, -0.1251, -0.1620, -0.0842, +0.3611, -0.2000, +0.5543], +[ -0.3054, -0.1114, -0.2290, +0.4891, -0.7619, -0.0520, -0.3236, -0.6297, +0.3625, -0.1399, -0.2639, -0.1181, +0.0798, -0.3294, -0.2301, +0.1280, +0.3002, +1.0975, -0.2288, -0.0913, -0.9323, -0.1649, +0.3137, -0.1293, +0.2304, +0.2064, -0.4795, -0.1544, -0.0805, -0.1257, -0.1547, +0.1534, -0.4968, -0.5140, -0.0610, +0.5317, -0.6079, +0.2771, +0.2970, -0.1766, -0.4933, -0.0424, +0.7516, -0.4173, -1.1842, +0.3461, -0.0435, +0.1062, -0.8075, -0.5636, +0.7547, +0.0459, -0.3499, +0.1656, -0.4118, -0.5384, -0.4461, -0.0754, -0.0632, -0.2161, -0.3203, +0.0456, +0.0656, -0.2893], +[ +0.0842, +0.2350, -0.2874, -0.7300, -0.3664, +0.3465, +0.1789, +0.2259, +0.0675, -0.2017, +0.2220, +0.0256, +0.3503, +0.5651, +0.0252, +0.0729, -0.0869, -0.1370, -0.2466, +0.0226, -0.2938, -0.2426, -0.4704, +0.0995, +0.1053, +0.4180, +0.2697, +0.1746, +0.2504, -0.3138, -0.4582, -0.6039, -0.1333, +0.0827, -0.1264, +0.3337, -0.4454, -0.5489, -0.3235, -0.3897, -0.2475, -0.1961, +0.1282, -0.4765, -0.3531, +0.3029, +0.5360, +0.0134, -0.0629, +0.3819, +0.1028, -0.2920, -0.3325, +0.0562, -0.1956, +0.1254, -0.6301, +0.3737, -0.1224, -0.8364, -0.5796, +0.2944, -0.1286, -0.4786], +[ +0.2911, -0.2918, -0.2983, -0.1799, +0.5004, +0.1641, -1.8806, +0.2665, +0.2884, -1.0550, +0.6388, +0.1462, +0.1680, -0.0982, -0.0077, -0.0693, -0.3434, +0.2433, +0.3355, -0.1851, +0.0465, +0.1885, +0.2110, -0.2517, -0.3897, -0.4081, +0.1757, -0.3554, +0.5196, +0.3916, -0.0051, +0.2256, -0.0817, +0.3246, +0.0079, -1.0587, +0.0605, -0.2847, +0.1970, +0.4176, +0.2595, -0.6440, -0.2987, -0.0802, -0.0082, +0.0894, +0.2301, +0.1005, +0.0890, +0.0689, +0.3122, -0.3237, -0.6040, +0.0348, -0.5192, -0.2683, +0.4273, -0.0652, -0.1506, -0.2352, +0.0493, +0.0534, +0.2133, +0.0982], +[ +0.3272, +0.1324, +0.0023, -0.2772, -1.0236, +0.0239, -0.2064, +0.0468, -0.2204, +0.2162, -0.1171, -0.3942, +0.2313, -0.0039, +0.0945, -0.2131, +0.2256, +0.7016, -0.0260, +0.1757, -0.0407, +0.3079, -0.3533, +0.2725, +0.5806, +0.5924, -0.3883, -0.1294, -0.1834, +0.1339, -0.1177, -0.2016, +0.1945, -0.3999, -0.2208, +0.2980, -0.0075, +0.0909, +0.0309, -0.7034, +0.3555, -0.0051, -0.2755, +0.0161, +0.5550, -0.4416, +0.1154, +0.2074, -0.2569, -0.4099, -1.0087, -0.3479, +0.4183, -0.0786, -0.1718, +0.1801, -0.0383, -0.1651, -0.2073, +0.4251, +0.1538, -0.1537, +0.3422, -0.5363], +[ -0.0005, -0.0823, -0.4054, -0.4387, -0.9801, -0.7941, -0.6260, -0.2934, +0.2604, -0.4400, +0.4142, +0.2642, +0.2926, -0.0690, +0.2422, -0.0340, +0.1123, -0.5302, -0.3629, +0.0005, -0.2184, -0.9489, +0.2292, +0.4085, +0.1849, +0.4804, -0.1979, +0.4252, -0.0989, -0.5815, -0.1266, -0.0716, +0.2599, +0.2402, -0.1451, -0.1020, -0.4833, -0.0605, +0.2253, -0.3367, -1.1238, -0.3284, -0.0642, -0.2709, +0.0412, -0.0656, +0.2200, +0.3204, +0.0376, +0.2544, -0.0845, -0.7557, -0.1007, -0.0697, -0.3928, -0.0440, -0.3349, -0.1664, +0.1248, -0.1058, -0.1661, -0.5682, -0.1187, -0.4495], +[ +0.3877, +0.1701, +0.2470, +0.3815, -0.7099, +0.4480, -0.3912, +0.0509, +0.3866, +0.0605, -0.1034, -1.1513, -0.0388, +0.1839, -0.0730, +0.2069, +0.1406, -0.2765, +0.0556, +0.3360, +0.3587, +0.2648, -0.1238, -0.1401, -0.1359, -0.1055, +0.1128, +0.1099, +0.0895, -0.2581, -0.3244, -0.2875, -0.0157, +0.3111, -0.3051, +0.1191, -0.2008, +0.0276, +0.4500, -0.3447, -1.8635, -0.0225, -0.0287, -0.1122, -0.3062, +0.0934, +0.0968, -0.0839, +0.1880, +0.3712, -0.1919, +0.3895, -0.4872, -0.2177, -0.0260, +0.5779, +0.1781, +0.4362, +0.3131, -0.8176, +0.2263, -0.5366, -0.3734, -0.2069], +[ -1.1235, -0.9674, -0.0259, +0.2390, -0.2322, -0.4858, -0.0673, -0.0436, +0.4784, -0.5001, -0.1335, -0.0299, -0.1177, +0.5094, -0.0886, -0.6063, -0.8532, +0.0729, +0.2496, -0.1499, -0.6113, +0.1188, +0.1059, +0.1600, +0.0897, -0.1650, +0.7303, -0.6695, +0.0782, +0.4738, -0.0097, +0.4754, +0.1041, -0.5552, -0.1545, +0.1880, -0.0279, -0.6501, -0.4160, -0.1361, -0.0866, -0.3986, +0.0944, +0.2977, -0.1807, +0.2639, +0.4842, +0.6219, +0.3545, -0.1240, +0.1304, +0.2634, -0.0749, -0.1111, -0.1349, -0.0482, -0.3663, -0.2051, +0.1262, +0.0840, +0.2020, -1.6679, +0.1338, -0.0481], +[ -0.0692, -1.0423, -0.6125, -0.4597, +0.0297, -0.4761, -0.4631, -0.3290, -0.2766, +0.0555, +0.3061, -0.1475, -0.8444, -0.3880, +0.2820, -0.4371, -0.0310, -0.8606, -0.9039, +0.0020, -0.0050, +0.0948, +0.2473, -0.7799, -0.3398, -0.6164, -0.5401, -0.4733, -0.4821, +0.4097, -0.5277, -0.2846, +0.0884, -0.2126, -0.0294, +0.0071, +0.0244, +0.2756, -1.3022, +0.1808, -0.1945, -1.1679, -0.4115, -0.1681, +0.4425, -0.0881, -0.1101, +0.2275, +0.1305, -0.2721, -0.1444, -1.7055, -0.4794, +0.2592, +0.0446, -0.0600, +0.2102, -0.1754, +0.0657, -0.2513, -0.1904, +0.1755, +0.3229, -0.0288], +[ +0.5168, -0.4403, +0.1617, -0.0585, -0.1969, -0.4617, -0.4481, -0.5496, +0.5089, -0.7188, -0.1878, -0.1813, -0.2418, -0.0046, +0.3130, -1.7845, +0.0638, -1.0377, -0.0172, -0.2044, -0.3992, -0.5402, -0.5061, +0.3127, +0.3964, +0.1543, +0.1298, +0.1039, +0.0507, +0.1353, -0.5773, -0.3090, +0.3562, +0.6026, -0.3442, +0.3625, -0.6769, -0.1507, +0.1097, -0.3716, +0.0978, +0.0150, -0.0408, -0.0370, +0.4052, -0.0185, +0.2788, -0.1076, -0.2841, +0.0922, +0.1425, -0.2230, -0.8524, +0.0620, -0.5464, -0.1797, +0.1239, +0.0314, +0.2159, -0.6538, -0.0031, -0.7640, -0.0217, -0.4866], +[ +0.2358, -0.2772, +0.2595, +0.6524, +0.3488, +0.0607, +0.1904, +0.1577, +0.0482, +0.1901, -0.1420, -0.2318, +0.0705, +0.7032, +0.1648, -0.1761, -0.3265, -0.1246, -0.2734, +0.1199, -0.5026, +0.2313, -0.3349, +0.0078, -0.0800, -0.2408, +0.1623, -0.3919, +0.3836, -0.0706, -0.6569, -0.6874, -0.2303, -0.1488, -0.2527, +0.1399, -0.0429, -0.8683, +0.0116, -0.2729, +0.1803, -0.3104, -0.0248, -0.2009, -0.3645, +0.8482, +0.2003, +0.1095, -0.2804, +0.1855, +0.0342, -0.5573, -0.9607, +0.4382, +0.2139, +0.0982, +0.0443, +0.1411, +0.0551, -0.1386, -1.3499, +0.2195, -0.0387, -0.1416], +[ -0.0189, -0.4482, -0.0687, -0.4171, -1.1698, +0.0934, -0.2861, -0.1069, +0.2478, -0.2631, -0.6573, +0.4906, +0.3018, -0.2749, -0.8819, -0.4961, -0.1743, +0.3760, -1.2279, +0.2292, +0.2814, -0.0434, -0.4484, -0.1545, +0.3929, +0.0769, -0.0394, -0.0692, -0.3811, -0.1864, +0.0444, -0.2080, -0.1870, -0.1867, +0.2350, -0.7152, -0.1055, +0.0963, -1.0288, +0.0322, +0.2215, -0.4954, +0.3377, -0.1467, +0.0027, -0.0491, -0.3208, -0.8264, -0.2718, -0.2542, +0.0741, -0.2323, -0.1001, -1.0198, -0.2890, -0.1343, -0.2319, -0.4908, +0.3050, -0.0255, +0.0115, -0.0030, -0.2358, -0.4015], +[ -0.1719, -0.4269, +0.5157, -0.3660, +0.0783, -0.2254, -0.7160, +0.3215, +0.4847, -0.6721, -0.1024, +0.0750, -0.4257, +0.0658, +0.1847, +0.2579, +0.1711, +0.1768, +0.0540, +0.0076, -0.0497, +0.0019, -0.3865, +0.1233, +0.1422, +0.4548, +0.1440, -0.4759, -1.1967, +0.2683, +0.1576, -0.0557, -0.8877, +0.3377, -1.0919, -0.1791, -1.1117, +0.2514, -0.5695, +0.2673, -0.7146, +0.1625, -1.1816, -0.2575, +0.2272, -0.9284, -0.4375, -0.2500, -0.5735, +0.1477, -0.2161, -0.1063, -1.0993, +0.2553, -0.0129, +0.3550, -0.4742, +0.1937, -0.5110, -0.4952, +0.3438, +0.0144, -0.0949, -0.1458], +[ +0.0636, +0.2933, -0.1864, -0.4025, -1.0270, -0.2597, -0.0660, -0.2247, -0.0048, -0.6861, +0.1695, +0.1418, +0.1761, +0.2443, -0.1339, -0.1673, +0.0148, +0.0555, -0.2577, -0.2610, -0.4787, -0.4025, +0.3526, +0.0557, -0.3496, +0.5078, -0.8030, +0.4197, +0.2154, -0.6415, -0.3827, -0.1026, -0.0396, +0.0502, +0.0724, -0.2952, +0.4268, -0.0801, +0.2876, -0.1107, +0.4451, -0.2080, +0.3860, -0.4921, -0.1323, -0.8016, -0.3088, +0.2469, -0.0782, -0.1180, +0.0223, +0.0847, -0.0293, -0.6148, -0.1082, -0.2367, -0.6443, +0.0539, +0.0207, -0.1587, -0.1582, +0.1998, -0.4013, +0.2739], +[ +0.0038, +0.1245, -0.3433, -0.4856, -0.4741, +0.4551, +0.5898, -0.1498, +0.2642, +0.3023, +0.1732, -1.0681, -0.1445, +0.1467, +0.0002, -0.1426, -0.9189, +0.1320, +0.0581, +0.0967, -0.0914, +0.0801, +0.0305, +0.0327, +0.0905, -1.0551, +0.1300, -0.7099, +0.2902, +0.1220, -0.1958, +0.0704, -1.2429, -0.1132, -0.2477, +0.2343, -0.2246, -0.5217, -0.1491, -0.4591, +0.3662, -0.3556, -0.6157, -0.8142, -0.1378, +0.1513, +0.2413, -0.0337, +0.6665, -0.2057, +0.1610, -0.1389, -0.5894, +0.0005, +0.0621, +0.6012, -0.1235, +0.5874, -0.5528, -0.2310, -0.1762, +0.1297, -0.1719, +0.0325], +[ +0.0008, +0.2486, +0.3471, -0.6321, +0.3799, -0.0780, -0.0376, +0.0776, +0.2057, -0.6391, +0.1711, -0.0638, +0.0299, +0.1975, -0.0466, -0.0290, -0.0443, +0.0426, -0.3097, +0.0908, +0.1078, -0.3136, -0.0517, -0.0219, -0.3360, +0.3552, +0.2264, -0.8491, +0.1069, +0.0375, +0.1422, -0.0855, -0.4314, +0.1987, -0.7457, -0.4619, -0.2737, +0.4460, +0.0367, -0.0661, +0.1025, +0.4836, +0.1807, +0.0178, -0.7587, -0.1794, -0.1558, -0.3419, -0.4544, -0.3955, +0.2712, -0.4674, -1.1360, +0.0936, -0.1987, -0.1250, -0.3655, -0.0430, -0.1751, +0.2196, +0.0193, +0.1743, -0.4942, +0.3843], +[ +0.1284, -0.8808, +0.3882, -0.1527, -0.0198, +0.0071, -0.1231, -0.0403, -0.3053, +0.7561, -0.8750, -0.7770, +0.2674, -0.1818, +0.0836, +0.1696, +0.1877, -0.2631, -0.7180, -0.1721, -0.3764, +0.5574, +0.3879, -1.7586, +0.1584, +0.0229, -0.2597, -0.2745, -0.0041, -0.7704, +0.2686, -0.6262, +0.2735, +0.2018, -0.1796, +0.2239, +0.4402, +0.2529, -0.5100, -0.0231, -0.2497, -0.2817, -0.1345, -0.3458, -0.2159, +0.2782, -0.1067, -0.4089, -0.1312, +0.1312, +0.2225, +0.5538, -0.0014, -0.2335, -0.2113, +0.3140, -0.2814, -1.0457, +0.2956, -0.0813, -0.0878, -0.2742, -0.2099, -0.1060], +[ +0.0774, -0.7316, +0.2640, +0.2897, +0.0154, -0.2817, -0.2962, -0.2956, -0.2675, -0.0654, +0.2018, -0.3843, +0.1061, +0.3959, -0.1483, -0.3143, -0.0607, -0.0341, -0.9169, +0.0874, -0.4429, -0.4101, -0.2229, -0.0070, -0.2998, -0.5374, -0.1129, -0.5779, -0.0182, -0.0070, +0.0043, -0.6822, -0.7798, +0.1554, -0.0940, +0.1911, +0.5163, -0.1492, +0.3483, -0.5709, +0.0793, +0.2243, +0.4628, +0.3321, -0.4983, -0.0078, +0.0161, -0.0902, +0.1897, -0.1736, +0.2867, -0.3187, -0.8528, +0.5943, -0.6071, -0.3823, -0.2354, +0.0569, +0.0469, -0.0745, +0.0970, +0.3657, -0.8127, +0.1084], +[ -0.0145, -0.5299, +0.2584, -0.1679, -0.5984, -0.9276, +0.2116, +0.3666, -0.3246, -0.1920, -0.4188, -0.4159, +0.5277, -0.6807, +0.1607, +0.1703, -0.5065, -0.0285, -0.0377, +0.3741, -0.5164, +0.1889, -0.1941, -0.1753, -0.2329, -1.3540, -0.3580, +0.7976, +0.3418, -0.3402, -0.5864, -0.2918, -0.3103, -0.8543, -0.4453, -0.5695, -0.3897, -0.2154, -0.7735, +0.3474, -0.4120, +0.5434, +0.5985, -0.4188, -0.6688, +0.0221, -0.3335, +0.0823, -0.9285, +0.5000, -0.5239, -0.1289, +0.1898, -0.0251, -0.4911, -0.1460, +0.3242, +0.5531, -0.2855, -0.0153, +0.3504, -0.7660, -0.5513, +0.5004], +[ +0.0273, -1.1660, -0.4373, -0.0665, +0.1115, +0.1340, -0.1542, -1.0896, -0.0308, -0.6965, -0.4566, +0.4433, -0.4034, -0.5017, +0.2259, -0.9126, -0.8050, +0.1053, -0.1586, -0.5198, +0.0862, -0.6760, -1.0836, +0.1359, -0.2969, -0.5577, +0.0696, -0.4491, -0.2396, +0.1705, -0.4238, -0.4414, +0.2904, -1.1770, -0.2532, +0.2228, +0.2173, -0.0848, -0.0284, +0.1148, +0.2002, -0.8461, -0.4833, -0.2364, +0.4290, -0.0140, -0.2397, +0.0003, -0.2664, -0.8921, +0.4706, +0.2010, -0.4245, +0.2278, -0.1853, +0.3507, -0.4354, -0.1236, +0.2643, +0.0153, -0.1940, -0.4305, +0.0677, -0.0475], +[ +0.0903, -1.0140, -0.3648, -0.2671, -0.9869, -1.1105, -0.1728, -0.4584, +0.1077, -1.2754, -0.3594, -0.9522, +0.0033, -0.0398, -0.0673, +0.5141, -0.3745, -0.4329, -0.3398, -0.1699, +0.0370, -0.5619, -0.3187, -0.2753, +0.2649, -0.6796, -0.2249, +0.3044, -0.8603, -0.2977, +0.1388, +0.0352, +0.3563, +0.4092, -0.8553, -1.0842, +0.0022, -0.5831, -0.2512, +0.3504, -0.7838, +0.0974, +0.3445, -0.5496, +0.2463, -0.3484, -1.0328, -0.1989, -0.2634, -0.1709, +0.3680, -0.0917, -0.2035, -0.7795, -0.5149, +0.2160, -0.9999, -0.3293, -1.0852, -0.1559, +0.3706, +0.0294, +0.1326, -0.4432], +[ -0.3382, -0.6195, +0.1247, -0.9739, -0.2695, +0.4227, +0.5390, -0.6254, +0.7109, -0.4693, +0.4139, -0.1816, -0.3087, +0.4984, -0.2314, -2.1260, +0.1874, -1.2938, -0.2536, +0.3450, -0.4624, +0.2507, -0.2771, +0.1359, -0.1039, -0.2051, +0.9813, -0.1579, +0.4289, +0.5024, +0.8469, +0.6266, -0.3238, +0.1631, -0.3280, -0.0628, -1.0241, -0.2662, -0.4386, -0.1759, -0.0683, -0.2852, -0.6328, -0.4171, -0.6023, -0.1489, +0.6873, +0.2652, +0.1424, -1.4934, -0.4190, +0.1496, -0.1254, -0.1988, -0.9254, +0.0787, -0.6244, +0.0852, -0.6942, +0.3636, +0.6130, -1.1516, -0.0166, +0.1482], +[ -0.6169, +0.1188, +0.3406, +0.1486, -0.6095, -0.1965, +0.3326, +0.4358, +0.0495, -1.1649, -0.5144, +0.4749, -0.2066, -0.0452, -0.8100, +0.3289, -0.4713, +0.3136, -0.4597, +0.3147, -0.3159, -0.2916, +0.3687, +0.1243, +0.5095, +0.1617, -0.7095, +0.4710, +0.0587, -0.6793, -0.2090, -0.1338, -0.1012, -0.4273, +0.2017, +0.1794, -0.6143, +0.0151, -0.2607, -0.3144, +0.2775, +0.2231, +0.3938, +0.0757, -0.6821, -0.0948, -0.0276, +0.4643, -0.4261, +0.1980, -0.3515, -0.4316, -0.2730, +0.1513, +0.3709, -0.5053, -0.3931, -0.0077, +0.4617, +0.2240, -0.5421, +0.0172, +0.3574, +0.3165], +[ -0.1494, +0.1755, -0.1157, -0.3965, -0.3154, -0.5596, -0.0307, +0.1837, +0.0388, -0.0440, +0.5869, +0.1878, +0.2522, -0.4798, -0.3823, +0.1313, -0.0318, +0.0430, +0.1159, +0.3460, -0.2264, -0.2695, -0.1647, +0.9139, -0.2705, -1.4509, +0.8597, +0.1964, -0.4520, +0.1905, -0.1044, +0.1410, +0.0431, +0.0959, +0.0074, -0.7522, +0.2711, -0.0279, -0.5335, +0.3875, +0.1375, +0.1347, +0.1622, -0.6972, +0.2821, +0.1858, +0.1513, +0.1948, +0.9353, +0.1265, -0.4261, -0.7619, +0.0747, -0.3146, -0.0773, +0.2217, +0.1078, +0.1632, -0.8363, -0.0736, -0.7793, +0.3148, +0.1152, -0.0871], +[ -0.1752, +0.5067, +0.2685, -0.3138, -0.1825, -1.1993, -0.5480, -0.0802, +0.0464, +0.1444, -0.0249, -0.6009, -0.2998, -0.1202, -0.1522, +0.2545, -0.3147, +0.0469, +0.2033, -0.1856, -0.1173, -0.3927, +0.1988, -0.0460, +0.1827, +0.1227, +0.1774, -0.0260, +0.3352, +0.2306, +0.1482, +0.0897, -0.5807, -0.4350, +0.4242, -0.5245, +0.5988, +0.3664, +0.2803, +0.2254, +0.0257, -1.0348, -0.0827, -0.3720, +0.0641, -0.0757, +0.3361, +0.1720, -0.0170, -0.1818, -0.7976, +0.6775, +0.1444, -0.0576, +0.1275, -0.0842, -0.2819, -0.3301, -0.1414, +0.0448, -0.2871, +0.2704, -0.0597, +0.3678], +[ -0.4166, -0.1664, +0.4311, +0.2548, +0.0251, +0.0090, -0.1093, -0.0026, +0.0234, -0.4495, +0.2458, -0.4985, +0.0709, -0.0913, -0.3304, -0.7517, +0.2261, +0.0720, +0.0285, +0.0063, -0.1014, -0.0074, +0.0738, +0.2781, -0.0023, +0.0906, -0.3204, +0.2005, +0.2953, +0.1304, -0.1219, +0.2426, -0.3057, +0.1381, +0.2148, -0.2981, -0.0340, -0.0236, +0.1463, +0.1595, +0.2486, +0.3110, +0.2315, -0.1590, -0.3630, -0.1236, -0.5037, +0.3045, +0.3508, +0.4195, -0.4814, +0.4588, -1.0159, -0.1006, +0.3944, -0.5326, -0.2366, +0.1164, -0.1002, +0.3154, -1.3383, -0.0688, -0.5051, +0.3699], +[ -0.7197, +0.1504, -0.1446, -0.1339, -0.1417, -0.8162, +0.1944, +0.7188, +0.2220, -0.0700, -0.3646, +0.2094, -0.5074, -0.4900, +0.0540, -0.1434, +0.0774, -0.0898, -0.6445, -1.3980, +0.1683, -0.0078, +0.1635, -1.7522, -0.1579, +0.0890, -0.1984, -0.1460, -0.2629, -0.1298, +0.0776, -0.2910, -0.6156, -0.1294, -0.1896, +0.0145, -0.0966, -0.4646, +0.2838, -1.2625, -0.3026, +0.3173, +0.0627, -0.2735, -0.5908, +0.4986, -0.2053, -0.1533, -0.1913, -0.3208, -0.9794, -0.1901, -0.2732, +0.2572, +0.1799, -0.2724, -0.0612, +0.3570, -0.1317, -0.2146, -0.1356, +0.1379, -0.1355, -0.0752], +[ -0.6539, -0.0727, -0.3427, +0.2905, -0.8430, -0.1184, -1.0977, +0.1251, -0.3407, -0.7221, -1.2782, +0.3135, -0.5871, -0.6889, +0.2488, -0.0093, -0.3846, +0.0363, -0.3364, -0.1874, -0.4212, -0.3552, -0.0608, +0.2429, +0.1007, +0.1632, -0.0480, -0.6035, -1.1736, +0.3253, -0.3441, +0.1198, +0.4950, -0.5443, +0.0941, +0.1484, -0.2168, +0.0281, -0.1605, +0.3858, -0.5413, -1.0550, -0.3714, +0.5328, -0.0108, -0.3914, +0.3519, -0.0481, +0.1556, -0.5657, -0.0249, -0.0100, +0.0097, -0.2173, -0.0652, +0.1465, -0.0911, -0.3613, -0.7631, +0.0362, +0.5869, -0.9699, +0.3223, -0.0013], +[ -0.1603, +0.3650, +0.5134, +0.5864, +0.0150, -0.1627, -1.0264, -0.3798, +0.2746, -0.4213, -0.6696, -0.1510, +0.2925, -0.1033, +0.1605, +0.2035, +0.2847, -0.2705, -0.7426, +0.1778, -0.2366, -0.5919, -0.5160, -0.2858, +0.0174, +0.2660, -0.5899, +0.2780, -0.1739, -0.3548, -0.2082, +0.2561, +0.2203, -0.4143, -0.1662, +0.3997, -0.1140, +0.3797, +0.1374, -0.4189, -0.0794, +0.2233, +0.0798, -0.2465, +0.1627, -0.7068, +0.0921, +0.1746, -0.1801, +0.0973, -0.3874, +0.1683, -0.1716, -0.2131, -0.1740, -0.2968, +0.0111, -0.1467, +0.3081, +0.1584, -0.2410, -0.1039, -0.0486, +0.1736], +[ -0.2541, -0.2942, +0.7954, -0.3406, +0.0833, -0.7064, +0.4935, -0.8418, -0.4647, +0.0957, -0.0341, +0.1078, +0.1308, -0.1374, -0.3026, -0.5658, +0.7016, +0.4218, -0.8008, +0.1745, +0.1244, -0.3131, -0.0462, -0.2624, -0.9678, +0.0175, -1.4123, -0.5639, -0.4396, -0.3965, +0.3948, -0.5819, +0.0683, +0.4224, -0.2057, +0.3409, +0.0405, +0.3297, +0.4343, +0.1012, +0.0315, -0.1699, +0.1734, -0.3161, -0.9861, +0.0318, -0.9950, -0.2561, -0.6608, +0.0695, -0.2817, -0.3608, +0.0228, -0.1920, +0.6605, -1.0173, -0.1881, -0.0018, -1.4576, -0.1873, +0.0563, -0.1610, -1.3073, -0.4878], +[ -0.4730, +0.3181, -0.9216, +0.0616, -0.0595, -0.3835, -1.0827, -0.2049, +0.3268, -0.0025, +0.4207, +0.0695, +0.2867, -0.6964, -0.2021, -0.3313, +0.2401, -0.5865, +0.1225, +0.0662, -0.0395, -0.3217, +0.0283, -0.6146, +0.3855, +0.4659, -0.1366, +0.1905, -0.4189, -0.0221, +0.0485, -0.0824, -0.0852, +0.3699, -1.1362, -0.3399, -0.3045, +0.4129, -0.0479, -0.2226, -0.1424, +0.1984, +0.1308, -0.0697, -0.1180, -0.0040, +0.0799, -0.5004, -0.2016, +0.3574, -0.0379, -0.1902, -0.2152, -0.1548, -0.2587, -0.0184, +0.1557, -0.8546, +0.0033, -0.5034, -0.0296, -0.7283, -0.2543, -0.5056], +[ -0.3047, -0.4435, -0.0328, +0.1094, +0.2118, +0.0936, +0.1051, -0.3049, -0.2984, -0.2139, +0.4623, +0.0697, +0.0438, -0.0070, +0.0173, -0.0140, +0.3330, +0.1464, -0.8054, -0.5374, +0.2089, +0.0343, -0.0500, +0.2463, -0.5428, +0.3249, -0.2111, +0.1987, +0.3385, +0.0350, +0.2139, +0.2606, +0.0579, +0.1967, +0.2805, -0.6701, +0.1659, +0.1625, -0.0811, +0.1512, +0.2602, +0.0735, +0.3579, +0.1876, -0.1828, +0.2517, -0.2081, -0.0434, -0.0671, -0.2775, -0.0324, +0.0956, +0.1478, -0.5488, +0.4217, +0.3050, +0.1241, -0.1265, -0.0378, -0.4110, +0.0372, +0.1242, -0.5133, -0.4433], +[ -0.0908, -0.4056, +1.0407, +0.2022, +0.3277, +0.0473, -0.2004, -0.0019, +0.6105, -0.2085, -0.3269, -0.5087, -0.9063, +0.4416, -0.5120, -0.6012, -0.0893, +0.7692, -0.8258, +0.2614, +0.3312, +0.2587, -0.2327, +0.2353, +0.2126, -0.9841, -0.9045, -1.6272, -0.0327, -0.2158, +0.1556, -1.2507, +0.1904, +0.2771, -0.1323, +0.0612, -0.2321, -0.0461, -0.0934, -0.6754, +0.1108, +0.4772, -0.0157, +0.1737, +0.2587, +0.3093, -0.4642, -0.2549, -0.6423, +0.7156, -0.0731, +0.2901, -0.8073, +0.5818, -0.0272, +0.4151, +0.6385, -0.4803, +0.5069, +0.1455, -0.6939, -0.5308, -0.1173, +0.3071], +[ +0.0517, -0.4560, -0.5719, -0.6117, -0.1617, -1.0319, -1.3503, +0.2440, +0.2115, +0.0598, -0.1558, -0.5093, -0.4359, -1.0329, -0.2702, +0.6932, +0.7264, -0.6596, -0.8755, -0.0335, -0.1665, +0.2618, +0.3496, -0.3067, -0.2615, -0.5898, -0.0792, -0.0211, -0.1784, -0.1019, +0.3617, +0.1576, +0.2354, -0.3653, -0.2507, -0.6275, -0.0337, +0.4102, -0.9432, -0.2444, -0.6182, -0.1471, -0.0926, +0.1671, -0.8133, +0.3371, -0.0011, +0.4394, -0.5574, +0.0047, -0.1289, -1.0679, +0.0061, +0.1657, +0.0043, +0.0216, -0.3186, -0.1413, +0.1294, +0.4513, -0.4948, +0.3693, -0.1198, +0.0882], +[ +0.0040, -0.4130, -0.1497, +0.1240, -0.0150, -0.8052, +0.0120, -0.5317, -0.1766, -0.5743, +0.1538, -0.1543, +0.3415, +0.3493, +0.2536, -0.7229, -0.0653, -0.1433, -2.7258, -0.3427, -0.1859, +0.0050, -0.3057, -0.1605, +0.2688, -0.5278, -0.3073, +0.1964, +0.6694, +0.0137, -0.2008, -0.2361, -0.1387, -0.0223, -0.0853, +0.1436, -0.1557, +0.2564, -1.0089, -0.6109, +0.2781, +0.1629, +0.1666, -0.1351, -0.3322, +0.1780, -0.8044, +0.4328, -0.6413, +0.2032, -0.2698, -0.0661, -0.2372, +0.1637, -0.1807, +0.4428, +0.0628, +0.4494, +0.1031, -0.1792, -0.7799, -0.0583, -0.2036, +0.3183], +[ -0.0603, -0.9099, +0.3309, +0.0880, -1.0803, -0.1118, -0.1298, -0.1775, +0.2533, +0.3987, -0.5975, -0.1113, +0.2020, -0.0156, -0.0979, -0.1306, +0.1531, -0.1246, +0.3544, +0.3535, -0.1467, -0.5855, -0.4307, +0.1979, -0.3168, -0.3793, +0.0741, -0.1397, -0.6970, +0.1966, -0.1540, +0.2032, +0.3120, -0.4629, +0.0909, -0.7293, +0.2610, -0.7788, +0.0532, +0.2694, -0.2469, -1.1975, -0.2844, +0.0471, +0.1458, +0.1922, -0.3000, -0.2814, -0.4190, -0.2708, -0.2938, +0.0716, -0.5238, -0.1817, +0.3848, -0.2661, -0.0399, -0.1237, -0.0065, -1.0783, +0.0090, -0.2122, -0.2348, +0.1777], +[ +0.3301, +0.3029, +0.2309, -0.2222, -0.3760, +0.2900, +0.4730, +0.3653, +0.1257, -0.2469, +0.0678, -0.3140, -0.1101, -0.3410, +0.2531, -0.1499, +0.1895, +0.3933, -0.0175, +0.1947, +0.3018, +0.1375, +0.1816, -0.0375, -0.0476, -0.3521, -0.1531, +0.1851, -0.0556, +0.0737, +0.0242, -0.0522, +0.2391, +0.3069, -0.8566, -0.2267, -0.4648, +0.0512, +0.1738, -0.1233, +0.3117, -0.1392, -0.2971, -1.6641, +0.0319, -0.2886, +0.2520, -0.4421, -0.0578, +0.1778, +0.0562, -0.0425, -0.2082, -0.4188, -0.4602, +0.3081, -0.0443, +0.1036, -0.6564, -0.0622, +0.4363, -0.2111, +0.3930, -0.4231], +[ -0.2303, -0.3073, +0.0881, -0.0259, +0.1158, -0.1876, -0.4537, -0.1588, -0.0792, -0.2001, +0.0530, -0.2474, +0.1344, +0.2636, +0.1983, -0.9749, +0.1990, -0.0957, -0.5147, -0.2180, +0.1174, +0.1786, +0.1739, -0.3798, -0.0471, +0.1633, -0.1721, -0.0853, +0.2622, +0.2510, -0.0152, -0.1403, -0.4670, -0.0056, +0.1107, -0.6130, +0.0380, +0.2772, +0.2147, +0.4764, +0.2957, -0.1803, +0.0094, -0.0602, +0.0961, +0.1071, -0.1469, +0.3588, +0.1152, +0.2732, -0.0841, +0.1434, -0.8871, +0.1359, +0.4381, -0.3618, -0.1783, +0.0244, -0.3266, +0.2683, +0.0475, +0.2396, +0.2882, +0.2097], +[ -0.3898, +0.1630, +0.1282, -0.3963, -0.4884, -0.4047, +0.2388, -0.1641, -0.2076, -0.5232, -0.0945, +0.0596, +0.4917, -0.9385, -0.6932, +0.0820, -0.1105, +0.1518, -1.0556, +0.2921, -0.1624, -1.1541, -0.3967, -0.0768, +0.2946, -0.1138, -0.6109, +0.4627, -0.0852, -0.4616, -0.3002, +0.3148, +0.4467, -1.3130, +0.0544, -0.6324, -0.2650, +0.4150, -0.0212, -0.6526, +0.0006, +0.1399, +0.3180, +0.2171, -0.2745, +0.1383, +0.3992, -0.1085, -0.8361, +0.4735, +0.3327, -0.2108, -0.1326, +0.1012, -0.1039, -0.7952, -1.0795, -0.8962, +0.2586, -0.1086, -0.1492, +0.1341, +0.4539, +0.0087], +[ -0.7632, -0.3424, -0.8353, +0.2849, +0.4074, +0.3540, -0.0225, -1.0280, -0.0935, -0.1287, -0.9041, -0.2897, -1.2458, -0.9333, -0.3642, +0.1682, -0.0609, -0.3427, -0.8061, +0.0809, -0.0527, +0.2854, +0.0572, -0.9497, -0.1074, -0.4606, -0.3741, -0.1462, -0.0244, +0.1021, -0.1344, -1.4004, +0.2785, +0.0365, +0.0607, -0.0216, +0.2336, +0.2448, +0.3313, +0.0876, -0.0096, -0.0115, +0.2235, +0.1732, +0.0449, +0.2710, -0.4689, +0.3985, +0.3226, -0.4791, +0.1363, -0.2898, -0.2764, +0.2951, +0.1026, +0.2428, +0.4613, -0.6892, -0.6060, +0.0831, +0.0033, +0.0969, +0.1732, +0.1978], +[ -0.4818, -0.4774, -1.1071, +0.3249, +0.2093, +0.0438, -0.9925, -0.4215, +0.0589, -1.1715, +0.0919, +0.0382, -0.8698, -0.4791, -0.7492, -0.8701, +0.0800, +0.0196, -0.7821, +0.1573, +0.5803, -0.1820, -0.0484, +0.3254, +0.1583, +0.2182, -0.2223, -0.5444, -0.6228, -0.7236, -0.1355, +0.2437, -0.0066, +0.2737, +0.2386, -0.4084, -0.8557, +0.2213, -0.6375, +0.2682, -0.1000, -0.3804, -0.0290, -0.0049, -0.3404, -0.4885, -0.1223, -0.2278, -0.4468, +0.0452, -0.4968, -0.1218, +0.3995, -1.0746, -0.7465, -0.3371, +0.4305, -1.6123, -0.1957, -0.1523, +0.1393, -0.8650, -0.1711, -0.3793], +[ -0.1557, -1.0601, -0.4499, -0.1604, -0.5255, -0.4208, -0.6083, +0.3356, -0.0805, +0.2551, +0.0412, -0.1619, +0.2200, -0.8917, -0.4723, -1.0188, +0.4529, -0.0400, -0.0839, +0.0217, -0.3820, +0.3089, +0.2091, +0.1926, +0.0795, +0.1515, +0.1128, -0.3851, -0.1858, +0.3644, +0.2686, -0.1214, +0.5001, -0.9542, +0.0416, -0.0110, -0.8521, +0.2699, -0.7884, -0.0235, -0.6484, +0.3534, -0.7125, +0.2728, +0.0038, -0.3497, +0.2039, +0.2628, +0.4429, +0.2073, -1.0902, -0.1620, +0.3977, +0.5173, -0.4190, -0.5424, +0.1696, +0.4501, -0.1723, +0.3870, +0.3782, -0.4795, -0.0925, +0.1928], +[ -0.1994, +0.0819, -0.9161, -0.0627, -0.3875, -0.1237, -0.3848, +0.1303, -0.5012, -0.0149, -0.0410, +0.9109, -0.0172, +0.2573, -0.0970, +0.1189, -0.2560, +0.2362, -0.0120, -0.0293, +0.0847, -0.2890, +0.1035, -1.1365, -0.6136, +0.0283, -0.6735, -0.3893, -0.2377, +0.1533, -0.1454, +0.4457, +0.0874, -0.6123, +0.0648, -0.0958, +0.3596, -0.9314, -0.0837, +0.4202, -0.2286, -0.3712, +0.0654, -0.1894, +0.7228, -0.0053, +0.2753, +0.1067, +0.2597, -0.0419, -0.5189, -0.0970, +0.3215, +0.0511, +0.1690, -0.5153, -0.7584, -1.0287, +0.6774, +0.2733, -0.0217, -0.5480, -0.0327, +0.0814], +[ -0.0850, -0.2497, -0.2107, -0.2141, +0.3072, +0.3229, -0.1949, +0.1294, -0.2154, -0.5436, -0.2756, +0.1585, -0.3081, -0.2884, +0.0584, +0.3902, +0.5601, -0.0324, -0.8309, +0.0884, +0.4890, +0.2771, +0.1323, +0.2234, -0.5563, +0.2813, -1.1535, +0.3736, -0.8677, +0.2691, +0.1412, +0.4179, +0.3897, -0.2039, +0.0885, -0.2746, -0.3438, +0.6083, +0.1196, +0.6909, +0.3943, -0.4563, -0.2028, +0.3160, +0.4372, -0.3929, -0.6564, -0.2445, -0.3547, -0.0069, +0.3304, +0.2863, +0.0022, -0.6024, +0.0905, -0.0902, +0.3029, -0.2148, +0.3599, +0.3216, +0.5142, -0.8270, +0.3086, +0.2275] +]) + +weights_dense2_b = np.array([ +0.3157, -0.0138, +0.1347, +0.2792, -0.0769, +0.0847, -0.0819, +0.2974, +0.1350, -0.0025, +0.0698, -0.2427, +0.2004, +0.2309, +0.1715, +0.0219, +0.1258, +0.1784, +0.3261, +0.1711, -0.0779, +0.1550, +0.1433, +0.0774, -0.1676, -0.0443, -0.1684, +0.1624, +0.0597, +0.0358, +0.1652, +0.1075, +0.0770, +0.1979, +0.1490, -0.0719, +0.1036, +0.0766, +0.2915, -0.1048, +0.1366, +0.0610, +0.2238, +0.1660, +0.0433, +0.3754, -0.0812, -0.0851, +0.2820, +0.2110, +0.0232, -0.0167, -0.2433, -0.0042, +0.2591, -0.0215, +0.0927, +0.1470, -0.0324, +0.2150, -0.1883, +0.0956, +0.1331, +0.2330]) + +weights_final_w = np.array([ +[ +0.0101, -0.1948, +0.2128, -0.4291, +0.4975, +0.0586], +[ +0.1211, -0.3286, -0.5959, +0.2402, +0.2022, +0.0405], +[ -0.0318, +0.3342, +0.1579, -0.4639, -0.4456, -0.2342], +[ +0.0856, +0.0638, +0.3259, +0.2046, -0.4004, +0.4999], +[ -0.6462, -0.0369, -1.1351, +0.9906, +0.0352, -0.6781], +[ -0.3719, -0.1071, +0.3581, +0.5559, +0.1965, -0.3970], +[ +0.0816, -0.1766, -0.6672, +0.0872, -0.5773, -0.3138], +[ -0.0914, +0.1054, +0.0728, +0.5491, +0.4499, +0.1875], +[ +0.2443, +0.0085, -0.2355, +0.3129, -0.1762, -0.0077], +[ -0.1181, -0.6764, +0.4602, +0.1629, +0.0420, +0.2435], +[ +0.0605, +0.0850, -0.6874, -0.0096, +0.4599, -0.2271], +[ +0.5245, -0.2946, -0.1789, +0.5927, +0.0829, +0.5251], +[ +0.4504, -0.4831, +0.0163, +0.0061, +0.5226, -0.4811], +[ +0.5086, -0.2366, +0.0043, -0.1165, -0.2790, -0.5078], +[ +0.1296, +0.0196, +0.1396, -0.1705, +0.2290, -0.2673], +[ -0.0323, -0.1554, +0.4492, -0.6847, +0.0767, +0.0235], +[ -0.0142, +0.3304, -0.2269, +0.0771, +0.2548, -0.0215], +[ -0.3389, +0.0605, -0.1767, +0.1649, +0.3932, +0.4187], +[ +0.0447, -0.2753, +0.7056, -0.3268, -0.4054, +0.3856], +[ +0.3863, +0.0820, +0.1836, -0.1025, -0.0837, +0.3728], +[ +0.1172, +0.2514, -0.2447, -0.0147, +0.3737, -0.1232], +[ +0.4822, -0.1587, +0.0189, +0.1085, -0.2107, +0.1819], +[ -0.3112, +0.2384, -0.0983, +0.3085, +0.3343, -0.1824], +[ +0.1329, -0.7842, +0.5067, -0.1467, +0.6028, -0.1696], +[ +0.0913, -0.2866, +0.1866, +0.0102, -0.2893, +0.1818], +[ -0.0842, +0.0903, +0.0537, +0.2681, +0.6005, -0.3763], +[ +0.4081, -0.5070, -0.2256, +0.4282, -0.2310, +0.0178], +[ +0.1979, +0.1552, +0.7038, -0.0276, +0.1008, +0.4311], +[ +0.0105, +0.0500, -0.5326, -0.1960, -0.0029, +0.7599], +[ +0.0132, +0.1029, +0.0586, +0.2432, -0.0545, -0.3576], +[ -0.1861, +0.2730, -0.1026, +0.2567, +0.1899, +0.0994], +[ +0.2804, +0.4976, +0.0234, -0.0693, +0.1044, -0.1782], +[ +0.1651, -0.0445, -0.1732, -0.1439, +0.1910, -0.2900], +[ +0.0575, +0.0506, -0.5541, -0.0837, +0.1331, +0.0596], +[ -0.5366, -0.2095, +0.2158, +0.1478, +0.1552, -0.2847], +[ -0.2239, -0.5064, +0.2553, +0.6997, -0.2814, -0.5053], +[ -0.5875, -0.2929, -0.3054, +0.4141, +0.0547, +0.2617], +[ +0.4712, +0.1022, +0.2665, +0.1481, +0.2837, +0.3440], +[ +0.3937, +0.3063, +0.4430, -0.5654, +0.0932, -0.1030], +[ +0.0561, +0.7068, +0.1140, -0.0612, +0.1575, -0.4454], +[ -0.4082, -0.3756, -0.0447, +0.5955, +0.2170, +0.2459], +[ +0.3779, +0.1477, -0.2120, -0.3360, -0.3584, +0.1333], +[ -0.1877, +0.1041, -0.2141, -0.0261, +0.0121, +0.5809], +[ +0.5229, +0.3220, +0.4367, -0.1934, +0.0125, +0.3250], +[ -0.0197, -0.0964, +0.6821, +0.0876, +0.1429, -0.2392], +[ -0.3900, +0.3254, -0.1975, +0.2021, -0.4072, +0.2072], +[ +0.2660, -0.2046, +0.2172, +0.2520, +0.1637, -0.0179], +[ -0.0649, -0.0451, +0.0873, +0.0077, -0.3684, -0.0634], +[ +0.1304, +0.2106, +0.0804, +0.0554, -0.2718, -0.4081], +[ +0.3119, +0.1979, -0.2498, +0.0328, +0.2566, +0.2054], +[ +0.0622, +0.2239, -0.7600, -0.2464, -0.3213, -0.4771], +[ -0.3352, +0.4833, +0.0830, +0.3854, -0.0733, -0.0983], +[ +0.2465, +0.0722, -0.0776, +0.2516, +0.5810, +0.5918], +[ -0.2167, -0.2138, +0.2410, -0.3535, -0.4878, -0.4168], +[ -0.0991, +0.4950, +0.0633, +0.2891, -0.5150, +0.1257], +[ -0.0267, -0.5339, -0.2769, -0.0796, +0.0055, -0.2304], +[ +0.2994, +0.3536, -0.3556, +0.3602, -0.1715, -0.3168], +[ +0.1544, -0.5746, -0.1126, -0.4654, +0.1188, -0.0478], +[ +0.4130, -0.7358, +0.0469, +0.0414, -0.0352, -0.5242], +[ -0.3941, +0.6807, +0.0670, +0.6347, +0.0394, +0.2293], +[ -0.0101, +0.1363, +0.6806, -0.1179, +0.1445, -0.0643], +[ -0.5794, +0.1603, -0.3438, -0.5360, -0.0372, +0.1549], +[ -0.0897, +1.1163, +0.4080, +0.1319, +0.1437, +0.0088], +[ +0.2344, +0.4274, -0.1515, +0.0379, -0.2166, -0.0852] +]) + +weights_final_b = np.array([ +0.0090, +0.2404, +0.1022, +0.1035, +0.0621, -0.0160]) + +if __name__=="__main__": + demo_run() diff --git a/examples/pybullet/gym/enjoy_kuka_grasping.py b/examples/pybullet/gym/enjoy_kuka_grasping.py new file mode 100644 index 000000000..2814e1b01 --- /dev/null +++ b/examples/pybullet/gym/enjoy_kuka_grasping.py @@ -0,0 +1,26 @@ +import gym +from envs.bullet.kukaGymEnv import KukaGymEnv + +from baselines import deepq + + +def main(): + + env = KukaGymEnv(renders=True) + act = deepq.load("kuka_model.pkl") + print(act) + while True: + obs, done = env.reset(), False + print("===================================") + print("obs") + print(obs) + episode_rew = 0 + while not done: + env.render() + obs, rew, done, _ = env.step(act(obs[None])[0]) + episode_rew += rew + print("Episode reward", episode_rew) + + +if __name__ == '__main__': + main() diff --git a/examples/pybullet/gym/enjoy_pybullet_cartpole.py b/examples/pybullet/gym/enjoy_pybullet_cartpole.py new file mode 100644 index 000000000..77fc29c53 --- /dev/null +++ b/examples/pybullet/gym/enjoy_pybullet_cartpole.py @@ -0,0 +1,29 @@ +import gym + +from baselines import deepq +from envs.bullet.cartpole_bullet import CartPoleBulletEnv + +def main(): + env = gym.make('CartPoleBulletEnv-v0') + act = deepq.load("cartpole_model.pkl") + + while True: + obs, done = env.reset(), False + print("obs") + print(obs) + print("type(obs)") + print(type(obs)) + episode_rew = 0 + while not done: + env.render() + + o = obs[None] + aa = act(o) + a = aa[0] + obs, rew, done, _ = env.step(a) + episode_rew += rew + print("Episode reward", episode_rew) + + +if __name__ == '__main__': + main() diff --git a/examples/pybullet/gym/enjoy_pybullet_racecar.py b/examples/pybullet/gym/enjoy_pybullet_racecar.py new file mode 100644 index 000000000..bc965f32d --- /dev/null +++ b/examples/pybullet/gym/enjoy_pybullet_racecar.py @@ -0,0 +1,26 @@ +import gym +from envs.bullet.racecarGymEnv import RacecarGymEnv + +from baselines import deepq + + +def main(): + + env = RacecarGymEnv(renders=True) + act = deepq.load("racecar_model.pkl") + print(act) + while True: + obs, done = env.reset(), False + print("===================================") + print("obs") + print(obs) + episode_rew = 0 + while not done: + env.render() + obs, rew, done, _ = env.step(act(obs[None])[0]) + episode_rew += rew + print("Episode reward", episode_rew) + + +if __name__ == '__main__': + main() diff --git a/examples/pybullet/gym/enjoy_pybullet_zed_racecar.py b/examples/pybullet/gym/enjoy_pybullet_zed_racecar.py new file mode 100644 index 000000000..c4c201703 --- /dev/null +++ b/examples/pybullet/gym/enjoy_pybullet_zed_racecar.py @@ -0,0 +1,26 @@ +import gym +from envs.bullet.racecarZEDGymEnv import RacecarZEDGymEnv + +from baselines import deepq + + +def main(): + + env = RacecarZEDGymEnv(renders=True) + act = deepq.load("racecar_zed_model.pkl") + print(act) + while True: + obs, done = env.reset(), False + print("===================================") + print("obs") + print(obs) + episode_rew = 0 + while not done: + env.render() + obs, rew, done, _ = env.step(act(obs[None])[0]) + episode_rew += rew + print("Episode reward", episode_rew) + + +if __name__ == '__main__': + main() diff --git a/examples/pybullet/gym/envs/__init__.py b/examples/pybullet/gym/envs/__init__.py index 605d5e531..c328958d3 100644 --- a/examples/pybullet/gym/envs/__init__.py +++ b/examples/pybullet/gym/envs/__init__.py @@ -15,3 +15,120 @@ register( timestep_limit=1000, reward_threshold=5.0, ) + +register( + id='RacecarBulletEnv-v0', + entry_point='envs.bullet:RacecarBulletEnv', + timestep_limit=1000, + reward_threshold=5.0, +) + +register( + id='RacecarZedBulletEnv-v0', + entry_point='envs.bullet:RacecarZEDGymEnv', + timestep_limit=1000, + reward_threshold=5.0, +) + +register( + id='SimpleHumanoidBulletEnv-v0', + entry_point='envs.bullet:SimpleHumanoidGymEnv', + timestep_limit=1000, + reward_threshold=5.0, +) + +register( + id='KukaBulletEnv-v0', + entry_point='envs.bullet:KukaGymEnv', + timestep_limit=1000, + reward_threshold=5.0, +) + +register( + id='KukaCamBulletEnv-v0', + entry_point='envs.bullet:KukaCamGymEnv', + timestep_limit=1000, + reward_threshold=5.0, +) + +register( + id='InvertedPendulumBulletEnv-v0', + entry_point='envs.gym_pendulum_envs:InvertedPendulumBulletEnv', + max_episode_steps=1000, + reward_threshold=950.0, + ) + +register( + id='InvertedDoublePendulumBulletEnv-v0', + entry_point='envs.gym_pendulum_envs:InvertedDoublePendulumBulletEnv', + max_episode_steps=1000, + reward_threshold=9100.0, + ) + +register( + id='InvertedPendulumSwingupBulletEnv-v0', + entry_point='envs.gym_pendulum_envs:InvertedPendulumSwingupBulletEnv', + max_episode_steps=1000, + reward_threshold=800.0, + ) + +# register( +# id='ReacherBulletEnv-v0', +# entry_point='envs.gym_manipulator_envs:ReacherBulletEnv', +# max_episode_steps=150, +# reward_threshold=18.0, +# ) +# +# register( +# id='PusherBulletEnv-v0', +# entry_point='envs.gym_manipulator_envs:PusherBulletEnv', +# max_episode_steps=150, +# reward_threshold=18.0, +# ) +# +# register( +# id='ThrowerBulletEnv-v0', +# entry_point='envs.gym_manipulator_envs:ThrowerBulletEnv', +# max_episode_steps=100, +# reward_threshold=18.0, +# ) +# +# register( +# id='StrikerBulletEnv-v0', +# entry_point='envs.gym_manipulator_envs:StrikerBulletEnv', +# max_episode_steps=100, +# reward_threshold=18.0, +# ) + +register( + id='Walker2DBulletEnv-v0', + entry_point='envs.gym_locomotion_envs:Walker2DBulletEnv', + max_episode_steps=1000, + reward_threshold=2500.0 + ) +register( + id='HalfCheetahBulletEnv-v0', + entry_point='envs.gym_locomotion_envs:HalfCheetahBulletEnv', + max_episode_steps=1000, + reward_threshold=3000.0 + ) + +register( + id='AntBulletEnv-v0', + entry_point='envs.gym_locomotion_envs:AntBulletEnv', + max_episode_steps=1000, + reward_threshold=2500.0 + ) + +register( + id='HumanoidBulletEnv-v0', + entry_point='envs.gym_locomotion_envs:HumanoidBulletEnv', + max_episode_steps=1000 + ) + +register( + id='HopperBulletEnv-v0', + entry_point='envs.gym_locomotion_envs:HopperBulletEnv', + max_episode_steps=1000, + reward_threshold=2500.0 + ) \ No newline at end of file diff --git a/examples/pybullet/gym/envs/bullet/__init__.py b/examples/pybullet/gym/envs/bullet/__init__.py index 25da62f87..394788f73 100644 --- a/examples/pybullet/gym/envs/bullet/__init__.py +++ b/examples/pybullet/gym/envs/bullet/__init__.py @@ -1,2 +1,7 @@ from envs.bullet.cartpole_bullet import CartPoleBulletEnv from envs.bullet.minitaur_bullet import MinitaurBulletEnv +from envs.bullet.racecarGymEnv import RacecarGymEnv +from envs.bullet.racecarZEDGymEnv import RacecarZEDGymEnv +from envs.bullet.simpleHumanoidGymEnv import SimpleHumanoidGymEnv +from envs.bullet.kukaGymEnv import KukaGymEnv +from envs.bullet.kukaCamGymEnv import KukaCamGymEnv \ No newline at end of file diff --git a/examples/pybullet/gym/envs/bullet/cartpole_bullet.py b/examples/pybullet/gym/envs/bullet/cartpole_bullet.py index b1f1a1e35..3e7f29daf 100644 --- a/examples/pybullet/gym/envs/bullet/cartpole_bullet.py +++ b/examples/pybullet/gym/envs/bullet/cartpole_bullet.py @@ -22,10 +22,14 @@ class CartPoleBulletEnv(gym.Env): 'video.frames_per_second' : 50 } - def __init__(self): + def __init__(self, renders=True): # start the bullet physics server - p.connect(p.GUI) -# p.connect(p.DIRECT) + self._renders = renders + if (renders): + p.connect(p.GUI) + else: + p.connect(p.DIRECT) + observation_high = np.array([ np.finfo(np.float32).max, np.finfo(np.float32).max, @@ -33,7 +37,7 @@ class CartPoleBulletEnv(gym.Env): np.finfo(np.float32).max]) action_high = np.array([0.1]) - self.action_space = spaces.Box(-action_high, action_high) + self.action_space = spaces.Discrete(9) self.observation_space = spaces.Box(-observation_high, observation_high) self.theta_threshold_radians = 1 @@ -55,8 +59,11 @@ class CartPoleBulletEnv(gym.Env): # time.sleep(self.timeStep) self.state = p.getJointState(self.cartpole, 1)[0:2] + p.getJointState(self.cartpole, 0)[0:2] theta, theta_dot, x, x_dot = self.state - force = action - p.setJointMotorControl2(self.cartpole, 0, p.VELOCITY_CONTROL, targetVelocity=(action + self.state[3])) + + dv = 0.1 + deltav = [-10.*dv,-5.*dv, -2.*dv, -0.1*dv, 0, 0.1*dv, 2.*dv,5.*dv, 10.*dv][action] + + p.setJointMotorControl2(self.cartpole, 0, p.VELOCITY_CONTROL, targetVelocity=(deltav + self.state[3])) done = x < -self.x_threshold \ or x > self.x_threshold \ diff --git a/examples/pybullet/gym/envs/bullet/kuka.py b/examples/pybullet/gym/envs/bullet/kuka.py new file mode 100644 index 000000000..a8dc4b7d3 --- /dev/null +++ b/examples/pybullet/gym/envs/bullet/kuka.py @@ -0,0 +1,161 @@ +import pybullet as p +import numpy as np +import copy +import math + +class Kuka: + + def __init__(self, urdfRootPath='', timeStep=0.01): + self.urdfRootPath = urdfRootPath + self.timeStep = timeStep + + self.maxForce = 200. + self.fingerAForce = 6 + self.fingerBForce = 5.5 + self.fingerTipForce = 6 + self.useInverseKinematics = 1 + self.useSimulation = 1 + self.useNullSpace = 1 + self.useOrientation = 1 + self.kukaEndEffectorIndex = 6 + #lower limits for null space + self.ll=[-.967,-2 ,-2.96,0.19,-2.96,-2.09,-3.05] + #upper limits for null space + self.ul=[.967,2 ,2.96,2.29,2.96,2.09,3.05] + #joint ranges for null space + self.jr=[5.8,4,5.8,4,5.8,4,6] + #restposes for null space + self.rp=[0,0,0,0.5*math.pi,0,-math.pi*0.5*0.66,0] + #joint damping coefficents + self.jd=[0.1,0.1,0.1,0.1,0.1,0.1,0.1] + self.reset() + + def reset(self): + objects = p.loadSDF("kuka_iiwa/kuka_with_gripper2.sdf") + self.kukaUid = objects[0] + #for i in range (p.getNumJoints(self.kukaUid)): + # print(p.getJointInfo(self.kukaUid,i)) + p.resetBasePositionAndOrientation(self.kukaUid,[-0.100000,0.000000,0.070000],[0.000000,0.000000,0.000000,1.000000]) + self.jointPositions=[ 0.006418, 0.413184, -0.011401, -1.589317, 0.005379, 1.137684, -0.006539, 0.000048, -0.299912, 0.000000, -0.000043, 0.299960, 0.000000, -0.000200 ] + self.numJoints = p.getNumJoints(self.kukaUid) + for jointIndex in range (self.numJoints): + p.resetJointState(self.kukaUid,jointIndex,self.jointPositions[jointIndex]) + p.setJointMotorControl2(self.kukaUid,jointIndex,p.POSITION_CONTROL,targetPosition=self.jointPositions[jointIndex],force=self.maxForce) + + self.trayUid = p.loadURDF("tray/tray.urdf", 0.640000,0.075000,-0.190000,0.000000,0.000000,1.000000,0.000000) + self.endEffectorPos = [0.537,0.0,0.5] + self.endEffectorAngle = 0 + + + self.motorNames = [] + self.motorIndices = [] + + for i in range (self.numJoints): + jointInfo = p.getJointInfo(self.kukaUid,i) + qIndex = jointInfo[3] + if qIndex > -1: + #print("motorname") + #print(jointInfo[1]) + self.motorNames.append(str(jointInfo[1])) + self.motorIndices.append(i) + + def getActionDimension(self): + if (self.useInverseKinematics): + return len(self.motorIndices) + return 6 #position x,y,z and roll/pitch/yaw euler angles of end effector + + def getObservationDimension(self): + return len(self.getObservation()) + + def getObservation(self): + observation = [] + state = p.getLinkState(self.kukaUid,self.kukaEndEffectorIndex) + pos = state[0] + orn = state[1] + euler = p.getEulerFromQuaternion(orn) + + observation.extend(list(pos)) + observation.extend(list(euler)) + + return observation + + def applyAction(self, motorCommands): + + #print ("self.numJoints") + #print (self.numJoints) + if (self.useInverseKinematics): + + dx = motorCommands[0] + dy = motorCommands[1] + dz = motorCommands[2] + da = motorCommands[3] + fingerAngle = motorCommands[4] + + state = p.getLinkState(self.kukaUid,self.kukaEndEffectorIndex) + actualEndEffectorPos = state[0] + #print("pos[2] (getLinkState(kukaEndEffectorIndex)") + #print(actualEndEffectorPos[2]) + + + + self.endEffectorPos[0] = self.endEffectorPos[0]+dx + if (self.endEffectorPos[0]>0.75): + self.endEffectorPos[0]=0.75 + if (self.endEffectorPos[0]<0.45): + self.endEffectorPos[0]=0.45 + self.endEffectorPos[1] = self.endEffectorPos[1]+dy + if (self.endEffectorPos[1]<-0.22): + self.endEffectorPos[1]=-0.22 + if (self.endEffectorPos[1]>0.22): + self.endEffectorPos[1]=0.22 + + #print ("self.endEffectorPos[2]") + #print (self.endEffectorPos[2]) + #print("actualEndEffectorPos[2]") + #print(actualEndEffectorPos[2]) + if (dz>0 or actualEndEffectorPos[2]>0.10): + self.endEffectorPos[2] = self.endEffectorPos[2]+dz + if (actualEndEffectorPos[2]<0.10): + self.endEffectorPos[2] = self.endEffectorPos[2]+0.0001 + + + self.endEffectorAngle = self.endEffectorAngle + da + pos = self.endEffectorPos + orn = p.getQuaternionFromEuler([0,-math.pi,0]) # -math.pi,yaw]) + if (self.useNullSpace==1): + if (self.useOrientation==1): + jointPoses = p.calculateInverseKinematics(self.kukaUid,self.kukaEndEffectorIndex,pos,orn,self.ll,self.ul,self.jr,self.rp) + else: + jointPoses = p.calculateInverseKinematics(self.kukaUid,self.kukaEndEffectorIndex,pos,lowerLimits=self.ll, upperLimits=self.ul, jointRanges=self.jr, restPoses=self.rp) + else: + if (self.useOrientation==1): + jointPoses = p.calculateInverseKinematics(self.kukaUid,self.kukaEndEffectorIndex,pos,orn,jointDamping=self.jd) + else: + jointPoses = p.calculateInverseKinematics(self.kukaUid,self.kukaEndEffectorIndex,pos) + + #print("jointPoses") + #print(jointPoses) + #print("self.kukaEndEffectorIndex") + #print(self.kukaEndEffectorIndex) + if (self.useSimulation): + for i in range (self.kukaEndEffectorIndex+1): + #print(i) + p.setJointMotorControl2(bodyIndex=self.kukaUid,jointIndex=i,controlMode=p.POSITION_CONTROL,targetPosition=jointPoses[i],targetVelocity=0,force=self.maxForce,positionGain=0.03,velocityGain=1) + else: + #reset the joint state (ignoring all dynamics, not recommended to use during simulation) + for i in range (self.numJoints): + p.resetJointState(self.kukaUid,i,jointPoses[i]) + #fingers + p.setJointMotorControl2(self.kukaUid,7,p.POSITION_CONTROL,targetPosition=self.endEffectorAngle,force=self.maxForce) + p.setJointMotorControl2(self.kukaUid,8,p.POSITION_CONTROL,targetPosition=-fingerAngle,force=self.fingerAForce) + p.setJointMotorControl2(self.kukaUid,11,p.POSITION_CONTROL,targetPosition=fingerAngle,force=self.fingerBForce) + + p.setJointMotorControl2(self.kukaUid,10,p.POSITION_CONTROL,targetPosition=0,force=self.fingerTipForce) + p.setJointMotorControl2(self.kukaUid,13,p.POSITION_CONTROL,targetPosition=0,force=self.fingerTipForce) + + + else: + for action in range (len(motorCommands)): + motor = self.motorIndices[action] + p.setJointMotorControl2(self.kukaUid,motor,p.POSITION_CONTROL,targetPosition=motorCommands[action],force=self.maxForce) + diff --git a/examples/pybullet/gym/envs/bullet/kukaCamGymEnv.py b/examples/pybullet/gym/envs/bullet/kukaCamGymEnv.py new file mode 100644 index 000000000..2af6774cd --- /dev/null +++ b/examples/pybullet/gym/envs/bullet/kukaCamGymEnv.py @@ -0,0 +1,191 @@ +import math +import gym +from gym import spaces +from gym.utils import seeding +import numpy as np +import time +import pybullet as p +from . import kuka +import random + +class KukaCamGymEnv(gym.Env): + metadata = { + 'render.modes': ['human', 'rgb_array'], + 'video.frames_per_second' : 50 + } + + def __init__(self, + urdfRoot="", + actionRepeat=1, + isEnableSelfCollision=True, + renders=True): + print("init") + self._timeStep = 1./240. + self._urdfRoot = urdfRoot + self._actionRepeat = actionRepeat + self._isEnableSelfCollision = isEnableSelfCollision + self._observation = [] + self._envStepCounter = 0 + self._renders = renders + self._width = 341 + self._height = 256 + self.terminated = 0 + self._p = p + if self._renders: + p.connect(p.GUI) + p.resetDebugVisualizerCamera(1.3,180,-41,[0.52,-0.2,-0.33]) + else: + p.connect(p.DIRECT) + #timinglog = p.startStateLogging(p.STATE_LOGGING_PROFILE_TIMINGS, "kukaTimings.json") + self._seed() + self.reset() + observationDim = len(self.getExtendedObservation()) + #print("observationDim") + #print(observationDim) + + observation_high = np.array([np.finfo(np.float32).max] * observationDim) + self.action_space = spaces.Discrete(7) + self.observation_space = spaces.Box(low=0, high=255, shape=(self._height, self._width, 4)) + self.viewer = None + + def _reset(self): + print("reset") + self.terminated = 0 + p.resetSimulation() + p.setPhysicsEngineParameter(numSolverIterations=150) + p.setTimeStep(self._timeStep) + p.loadURDF("%splane.urdf" % self._urdfRoot,[0,0,-1]) + + p.loadURDF("table/table.urdf", 0.5000000,0.00000,-.820000,0.000000,0.000000,0.0,1.0) + + xpos = 0.5 +0.05*random.random() + ypos = 0 +0.05*random.random() + ang = 3.1415925438*random.random() + orn = p.getQuaternionFromEuler([0,0,ang]) + self.blockUid =p.loadURDF("block.urdf", xpos,ypos,-0.1,orn[0],orn[1],orn[2],orn[3]) + + p.setGravity(0,0,-10) + self._kuka = kuka.Kuka(urdfRootPath=self._urdfRoot, timeStep=self._timeStep) + self._envStepCounter = 0 + p.stepSimulation() + self._observation = self.getExtendedObservation() + return np.array(self._observation) + + def __del__(self): + p.disconnect() + + def _seed(self, seed=None): + self.np_random, seed = seeding.np_random(seed) + return [seed] + + def getExtendedObservation(self): + + #camEyePos = [0.03,0.236,0.54] + #distance = 1.06 + #pitch=-56 + #yaw = 258 + #roll=0 + #upAxisIndex = 2 + #camInfo = p.getDebugVisualizerCamera() + #print("width,height") + #print(camInfo[0]) + #print(camInfo[1]) + #print("viewMatrix") + #print(camInfo[2]) + #print("projectionMatrix") + #print(camInfo[3]) + #viewMat = camInfo[2] + #viewMat = p.computeViewMatrixFromYawPitchRoll(camEyePos,distance,yaw, pitch,roll,upAxisIndex) + viewMat = [-0.5120397806167603, 0.7171027660369873, -0.47284144163131714, 0.0, -0.8589617609977722, -0.42747554183006287, 0.28186774253845215, 0.0, 0.0, 0.5504802465438843, 0.8348482847213745, 0.0, 0.1925382763147354, -0.24935829639434814, -0.4401884973049164, 1.0] + #projMatrix = camInfo[3]#[0.7499999403953552, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0000200271606445, -1.0, 0.0, 0.0, -0.02000020071864128, 0.0] + projMatrix = [0.75, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0000200271606445, -1.0, 0.0, 0.0, -0.02000020071864128, 0.0] + + img_arr = p.getCameraImage(width=self._width,height=self._height,viewMatrix=viewMat,projectionMatrix=projMatrix) + rgb=img_arr[2] + np_img_arr = np.reshape(rgb, (self._height, self._width, 4)) + self._observation = np_img_arr + return self._observation + + def _step(self, action): + dv = 0.01 + dx = [0,-dv,dv,0,0,0,0][action] + dy = [0,0,0,-dv,dv,0,0][action] + da = [0,0,0,0,0,-0.1,0.1][action] + f = 0.3 + realAction = [dx,dy,-0.002,da,f] + return self.step2( realAction) + + def step2(self, action): + self._kuka.applyAction(action) + for i in range(self._actionRepeat): + p.stepSimulation() + if self._renders: + time.sleep(self._timeStep) + self._observation = self.getExtendedObservation() + if self._termination(): + break + self._envStepCounter += 1 + #print("self._envStepCounter") + #print(self._envStepCounter) + + done = self._termination() + reward = self._reward() + #print("len=%r" % len(self._observation)) + + return np.array(self._observation), reward, done, {} + + def _render(self, mode='human', close=False): + return + + def _termination(self): + #print (self._kuka.endEffectorPos[2]) + state = p.getLinkState(self._kuka.kukaUid,self._kuka.kukaEndEffectorIndex) + actualEndEffectorPos = state[0] + + #print("self._envStepCounter") + #print(self._envStepCounter) + if (self.terminated or self._envStepCounter>1000): + self._observation = self.getExtendedObservation() + return True + + if (actualEndEffectorPos[2] <= 0.10): + self.terminated = 1 + + #print("closing gripper, attempting grasp") + #start grasp and terminate + fingerAngle = 0.3 + + for i in range (1000): + graspAction = [0,0,0.001,0,fingerAngle] + self._kuka.applyAction(graspAction) + p.stepSimulation() + fingerAngle = fingerAngle-(0.3/100.) + if (fingerAngle<0): + fingerAngle=0 + + self._observation = self.getExtendedObservation() + return True + return False + + def _reward(self): + + #rewards is height of target object + blockPos,blockOrn=p.getBasePositionAndOrientation(self.blockUid) + closestPoints = p.getClosestPoints(self.blockUid,self._kuka.kukaUid,1000) + + reward = -1000 + numPt = len(closestPoints) + #print(numPt) + if (numPt>0): + #print("reward:") + reward = -closestPoints[0][8]*10 + + if (blockPos[2] >0.2): + print("grasped a block!!!") + print("self._envStepCounter") + print(self._envStepCounter) + reward = reward+1000 + + #print("reward") + #print(reward) + return reward diff --git a/examples/pybullet/gym/envs/bullet/kukaGymEnv.py b/examples/pybullet/gym/envs/bullet/kukaGymEnv.py new file mode 100644 index 000000000..b0a3da4d9 --- /dev/null +++ b/examples/pybullet/gym/envs/bullet/kukaGymEnv.py @@ -0,0 +1,176 @@ +import math +import gym +from gym import spaces +from gym.utils import seeding +import numpy as np +import time +import pybullet as p +from . import kuka +import random + +class KukaGymEnv(gym.Env): + metadata = { + 'render.modes': ['human', 'rgb_array'], + 'video.frames_per_second' : 50 + } + + def __init__(self, + urdfRoot="", + actionRepeat=1, + isEnableSelfCollision=True, + renders=True): + print("init") + self._timeStep = 1./240. + self._urdfRoot = urdfRoot + self._actionRepeat = actionRepeat + self._isEnableSelfCollision = isEnableSelfCollision + self._observation = [] + self._envStepCounter = 0 + self._renders = renders + self.terminated = 0 + self._p = p + if self._renders: + p.connect(p.GUI) + p.resetDebugVisualizerCamera(1.3,180,-41,[0.52,-0.2,-0.33]) + else: + p.connect(p.DIRECT) + #timinglog = p.startStateLogging(p.STATE_LOGGING_PROFILE_TIMINGS, "kukaTimings.json") + self._seed() + self.reset() + observationDim = len(self.getExtendedObservation()) + #print("observationDim") + #print(observationDim) + + observation_high = np.array([np.finfo(np.float32).max] * observationDim) + self.action_space = spaces.Discrete(7) + self.observation_space = spaces.Box(-observation_high, observation_high) + self.viewer = None + + def _reset(self): + print("reset") + self.terminated = 0 + p.resetSimulation() + p.setPhysicsEngineParameter(numSolverIterations=150) + p.setTimeStep(self._timeStep) + p.loadURDF("%splane.urdf" % self._urdfRoot,[0,0,-1]) + + p.loadURDF("table/table.urdf", 0.5000000,0.00000,-.820000,0.000000,0.000000,0.0,1.0) + + xpos = 0.5 +0.05*random.random() + ypos = 0 +0.05*random.random() + ang = 3.1415925438*random.random() + orn = p.getQuaternionFromEuler([0,0,ang]) + self.blockUid =p.loadURDF("block.urdf", xpos,ypos,-0.1,orn[0],orn[1],orn[2],orn[3]) + + p.setGravity(0,0,-10) + self._kuka = kuka.Kuka(urdfRootPath=self._urdfRoot, timeStep=self._timeStep) + self._envStepCounter = 0 + p.stepSimulation() + self._observation = self.getExtendedObservation() + return np.array(self._observation) + + def __del__(self): + p.disconnect() + + def _seed(self, seed=None): + self.np_random, seed = seeding.np_random(seed) + return [seed] + + def getExtendedObservation(self): + self._observation = self._kuka.getObservation() + eeState = p.getLinkState(self._kuka.kukaUid,self._kuka.kukaEndEffectorIndex) + endEffectorPos = eeState[0] + endEffectorOrn = eeState[1] + blockPos,blockOrn = p.getBasePositionAndOrientation(self.blockUid) + + invEEPos,invEEOrn = p.invertTransform(endEffectorPos,endEffectorOrn) + blockPosInEE,blockOrnInEE = p.multiplyTransforms(invEEPos,invEEOrn,blockPos,blockOrn) + blockEulerInEE = p.getEulerFromQuaternion(blockOrnInEE) + self._observation.extend(list(blockPosInEE)) + self._observation.extend(list(blockEulerInEE)) + + return self._observation + + def _step(self, action): + dv = 0.01 + dx = [0,-dv,dv,0,0,0,0][action] + dy = [0,0,0,-dv,dv,0,0][action] + da = [0,0,0,0,0,-0.1,0.1][action] + f = 0.3 + realAction = [dx,dy,-0.002,da,f] + return self.step2( realAction) + + def step2(self, action): + self._kuka.applyAction(action) + for i in range(self._actionRepeat): + p.stepSimulation() + if self._renders: + time.sleep(self._timeStep) + self._observation = self.getExtendedObservation() + if self._termination(): + break + self._envStepCounter += 1 + #print("self._envStepCounter") + #print(self._envStepCounter) + + done = self._termination() + reward = self._reward() + #print("len=%r" % len(self._observation)) + + return np.array(self._observation), reward, done, {} + + def _render(self, mode='human', close=False): + return + + def _termination(self): + #print (self._kuka.endEffectorPos[2]) + state = p.getLinkState(self._kuka.kukaUid,self._kuka.kukaEndEffectorIndex) + actualEndEffectorPos = state[0] + + #print("self._envStepCounter") + #print(self._envStepCounter) + if (self.terminated or self._envStepCounter>1000): + self._observation = self.getExtendedObservation() + return True + + if (actualEndEffectorPos[2] <= 0.10): + self.terminated = 1 + + #print("closing gripper, attempting grasp") + #start grasp and terminate + fingerAngle = 0.3 + + for i in range (1000): + graspAction = [0,0,0.001,0,fingerAngle] + self._kuka.applyAction(graspAction) + p.stepSimulation() + fingerAngle = fingerAngle-(0.3/100.) + if (fingerAngle<0): + fingerAngle=0 + + self._observation = self.getExtendedObservation() + return True + return False + + def _reward(self): + + #rewards is height of target object + blockPos,blockOrn=p.getBasePositionAndOrientation(self.blockUid) + closestPoints = p.getClosestPoints(self.blockUid,self._kuka.kukaUid,1000) + + reward = -1000 + numPt = len(closestPoints) + #print(numPt) + if (numPt>0): + #print("reward:") + reward = -closestPoints[0][8]*10 + + if (blockPos[2] >0.2): + print("grasped a block!!!") + print("self._envStepCounter") + print(self._envStepCounter) + reward = reward+1000 + + #print("reward") + #print(reward) + return reward diff --git a/examples/pybullet/gym/envs/bullet/minitaurGymEnv.py b/examples/pybullet/gym/envs/bullet/minitaurGymEnv.py index c8ca5e536..83679f22a 100644 --- a/examples/pybullet/gym/envs/bullet/minitaurGymEnv.py +++ b/examples/pybullet/gym/envs/bullet/minitaurGymEnv.py @@ -16,10 +16,14 @@ class MinitaurGymEnv(gym.Env): def __init__(self, urdfRoot="", actionRepeat=1, + isEnableSelfCollision=True, + motorVelocityLimit=10.0, render=False): self._timeStep = 0.01 self._urdfRoot = urdfRoot self._actionRepeat = actionRepeat + self._motorVelocityLimit = motorVelocityLimit + self._isEnableSelfCollision = isEnableSelfCollision self._observation = [] self._envStepCounter = 0 self._render = render @@ -44,7 +48,7 @@ class MinitaurGymEnv(gym.Env): p.setTimeStep(self._timeStep) p.loadURDF("%splane.urdf" % self._urdfRoot) p.setGravity(0,0,-10) - self._minitaur = minitaur_new.Minitaur(self._urdfRoot) + self._minitaur = minitaur_new.Minitaur(urdfRootPath=self._urdfRoot, timeStep=self._timeStep, isEnableSelfCollision=self._isEnableSelfCollision, motorVelocityLimit=self._motorVelocityLimit) self._envStepCounter = 0 self._lastBasePosition = [0, 0, 0] for i in range(100): diff --git a/examples/pybullet/gym/envs/bullet/minitaur_new.py b/examples/pybullet/gym/envs/bullet/minitaur_new.py index 252c12ed3..e23fd7dca 100644 --- a/examples/pybullet/gym/envs/bullet/minitaur_new.py +++ b/examples/pybullet/gym/envs/bullet/minitaur_new.py @@ -4,8 +4,12 @@ import copy import math class Minitaur: - def __init__(self, urdfRootPath=''): + + def __init__(self, urdfRootPath='', timeStep=0.01, isEnableSelfCollision=True, motorVelocityLimit=10.0): self.urdfRootPath = urdfRootPath + self.isEnableSelfCollision = isEnableSelfCollision + self.motorVelocityLimit = motorVelocityLimit + self.timeStep = timeStep self.reset() def buildJointNameToIdDict(self): @@ -27,8 +31,10 @@ class Minitaur: self.motorIdList.append(self.jointNameToId['motor_back_rightR_joint']) def reset(self): -# self.quadruped = p.loadURDF("%squadruped/minitaur.urdf" % self.urdfRootPath, [0,0,.2], flags=p.URDF_USE_SELF_COLLISION) - self.quadruped = p.loadURDF("%squadruped/minitaur.urdf" % self.urdfRootPath, [0,0,.2]) + if self.isEnableSelfCollision: + self.quadruped = p.loadURDF("%s/quadruped/minitaur.urdf" % self.urdfRootPath, [0,0,.2], flags=p.URDF_USE_SELF_COLLISION) + else: + self.quadruped = p.loadURDF("%s/quadruped/minitaur.urdf" % self.urdfRootPath, [0,0,.2]) self.kp = 1 self.kd = 1 self.maxForce = 3.5 @@ -116,11 +122,15 @@ class Minitaur: observation.extend(self.getMotorVelocities().tolist()) observation.extend(self.getMotorTorques().tolist()) observation.extend(list(self.getBaseOrientation())) - observation.extend(list(self.getBasePosition())) return observation def applyAction(self, motorCommands): + if self.motorVelocityLimit < np.inf: + currentMotorAngle = self.getMotorAngles() + motorCommandsMax = currentMotorAngle + self.timeStep * self.motorVelocityLimit + motorCommandsMin = currentMotorAngle - self.timeStep * self.motorVelocityLimit + motorCommands = np.clip(motorCommands, motorCommandsMin, motorCommandsMax) motorCommandsWithDir = np.multiply(motorCommands, self.motorDir) # print('action: {}'.format(motorCommands)) # print('motor: {}'.format(motorCommandsWithDir)) diff --git a/examples/pybullet/gym/envs/bullet/racecar.py b/examples/pybullet/gym/envs/bullet/racecar.py new file mode 100644 index 000000000..96db73c78 --- /dev/null +++ b/examples/pybullet/gym/envs/bullet/racecar.py @@ -0,0 +1,57 @@ +import pybullet as p +import numpy as np +import copy +import math + +class Racecar: + + def __init__(self, urdfRootPath='', timeStep=0.01): + self.urdfRootPath = urdfRootPath + self.timeStep = timeStep + self.reset() + + def reset(self): + self.racecarUniqueId = p.loadURDF("racecar/racecar.urdf", [0,0,.2]) + self.maxForce = 20 + self.nMotors = 2 + self.motorizedwheels=[2] + self.inactiveWheels = [3,5,7] + for wheel in self.inactiveWheels: + p.setJointMotorControl2(self.racecarUniqueId,wheel,p.VELOCITY_CONTROL,targetVelocity=0,force=0) + + self.motorizedWheels = [2] + self.steeringLinks=[4,6] + self.speedMultiplier = 4. + + + def getActionDimension(self): + return self.nMotors + + def getObservationDimension(self): + return len(self.getObservation()) + + def getObservation(self): + observation = [] + pos,orn=p.getBasePositionAndOrientation(self.racecarUniqueId) + + observation.extend(list(pos)) + observation.extend(list(orn)) + + return observation + + def applyAction(self, motorCommands): + targetVelocity=motorCommands[0]*self.speedMultiplier + #print("targetVelocity") + #print(targetVelocity) + steeringAngle = motorCommands[1] + #print("steeringAngle") + #print(steeringAngle) + #print("maxForce") + #print(self.maxForce) + + + for motor in self.motorizedwheels: + p.setJointMotorControl2(self.racecarUniqueId,motor,p.VELOCITY_CONTROL,targetVelocity=targetVelocity,force=self.maxForce) + for steer in self.steeringLinks: + p.setJointMotorControl2(self.racecarUniqueId,steer,p.POSITION_CONTROL,targetPosition=steeringAngle) + \ No newline at end of file diff --git a/examples/pybullet/gym/envs/bullet/racecarGymEnv.py b/examples/pybullet/gym/envs/bullet/racecarGymEnv.py new file mode 100644 index 000000000..930f9bf88 --- /dev/null +++ b/examples/pybullet/gym/envs/bullet/racecarGymEnv.py @@ -0,0 +1,134 @@ +import math +import gym +from gym import spaces +from gym.utils import seeding +import numpy as np +import time +import pybullet as p +from . import racecar +import random + +class RacecarGymEnv(gym.Env): + metadata = { + 'render.modes': ['human', 'rgb_array'], + 'video.frames_per_second' : 50 + } + + def __init__(self, + urdfRoot="", + actionRepeat=50, + isEnableSelfCollision=True, + renders=True): + print("init") + self._timeStep = 0.01 + self._urdfRoot = urdfRoot + self._actionRepeat = actionRepeat + self._isEnableSelfCollision = isEnableSelfCollision + self._observation = [] + self._ballUniqueId = -1 + self._envStepCounter = 0 + self._renders = renders + self._p = p + if self._renders: + p.connect(p.GUI) + else: + p.connect(p.DIRECT) + self._seed() + self.reset() + observationDim = len(self.getExtendedObservation()) + #print("observationDim") + #print(observationDim) + + observation_high = np.array([np.finfo(np.float32).max] * observationDim) + self.action_space = spaces.Discrete(9) + self.observation_space = spaces.Box(-observation_high, observation_high) + self.viewer = None + + def _reset(self): + p.resetSimulation() + #p.setPhysicsEngineParameter(numSolverIterations=300) + p.setTimeStep(self._timeStep) + #p.loadURDF("%splane.urdf" % self._urdfRoot) + stadiumobjects = p.loadSDF("%sstadium.sdf" % self._urdfRoot) + #move the stadium objects slightly above 0 + for i in stadiumobjects: + pos,orn = p.getBasePositionAndOrientation(i) + newpos = [pos[0],pos[1],pos[2]+0.1] + p.resetBasePositionAndOrientation(i,newpos,orn) + + dist = 5 +2.*random.random() + ang = 2.*3.1415925438*random.random() + + ballx = dist * math.sin(ang) + bally = dist * math.cos(ang) + ballz = 1 + + self._ballUniqueId = p.loadURDF("sphere2.urdf",[ballx,bally,ballz]) + p.setGravity(0,0,-10) + self._racecar = racecar.Racecar(urdfRootPath=self._urdfRoot, timeStep=self._timeStep) + self._envStepCounter = 0 + for i in range(100): + p.stepSimulation() + self._observation = self.getExtendedObservation() + return np.array(self._observation) + + def __del__(self): + p.disconnect() + + def _seed(self, seed=None): + self.np_random, seed = seeding.np_random(seed) + return [seed] + + def getExtendedObservation(self): + self._observation = [] #self._racecar.getObservation() + carpos,carorn = p.getBasePositionAndOrientation(self._racecar.racecarUniqueId) + ballpos,ballorn = p.getBasePositionAndOrientation(self._ballUniqueId) + invCarPos,invCarOrn = p.invertTransform(carpos,carorn) + ballPosInCar,ballOrnInCar = p.multiplyTransforms(invCarPos,invCarOrn,ballpos,ballorn) + + self._observation.extend([ballPosInCar[0],ballPosInCar[1]]) + return self._observation + + def _step(self, action): + if (self._renders): + basePos,orn = p.getBasePositionAndOrientation(self._racecar.racecarUniqueId) + #p.resetDebugVisualizerCamera(1, 30, -40, basePos) + + fwd = [-5,-5,-5,0,0,0,5,5,5] + steerings = [-0.3,0,0.3,-0.3,0,0.3,-0.3,0,0.3] + forward = fwd[action] + steer = steerings[action] + realaction = [forward,steer] + self._racecar.applyAction(realaction) + for i in range(self._actionRepeat): + p.stepSimulation() + if self._renders: + time.sleep(self._timeStep) + self._observation = self.getExtendedObservation() + + if self._termination(): + break + self._envStepCounter += 1 + reward = self._reward() + done = self._termination() + #print("len=%r" % len(self._observation)) + + return np.array(self._observation), reward, done, {} + + def _render(self, mode='human', close=False): + return + + def _termination(self): + return self._envStepCounter>1000 + + def _reward(self): + closestPoints = p.getClosestPoints(self._racecar.racecarUniqueId,self._ballUniqueId,10000) + + numPt = len(closestPoints) + reward=-1000 + #print(numPt) + if (numPt>0): + #print("reward:") + reward = -closestPoints[0][8] + #print(reward) + return reward diff --git a/examples/pybullet/gym/envs/bullet/racecarZEDGymEnv.py b/examples/pybullet/gym/envs/bullet/racecarZEDGymEnv.py new file mode 100644 index 000000000..347efd80b --- /dev/null +++ b/examples/pybullet/gym/envs/bullet/racecarZEDGymEnv.py @@ -0,0 +1,148 @@ +import math +import gym +from gym import spaces +from gym.utils import seeding +import numpy as np +import time +import pybullet as p +from . import racecar +import random + +class RacecarZEDGymEnv(gym.Env): + metadata = { + 'render.modes': ['human', 'rgb_array'], + 'video.frames_per_second' : 50 + } + + def __init__(self, + urdfRoot="", + actionRepeat=100, + isEnableSelfCollision=True, + renders=True): + print("init") + self._timeStep = 0.01 + self._urdfRoot = urdfRoot + self._actionRepeat = actionRepeat + self._isEnableSelfCollision = isEnableSelfCollision + self._ballUniqueId = -1 + self._envStepCounter = 0 + self._renders = renders + self._width = 100 + self._height = 10 + self._p = p + if self._renders: + p.connect(p.GUI) + else: + p.connect(p.DIRECT) + self._seed() + self.reset() + observationDim = len(self.getExtendedObservation()) + #print("observationDim") + #print(observationDim) + + observation_high = np.array([np.finfo(np.float32).max] * observationDim) + self.action_space = spaces.Discrete(6) + self.observation_space = spaces.Box(low=0, high=255, shape=(self._height, self._width, 4)) + + self.viewer = None + + def _reset(self): + p.resetSimulation() + #p.setPhysicsEngineParameter(numSolverIterations=300) + p.setTimeStep(self._timeStep) + #p.loadURDF("%splane.urdf" % self._urdfRoot) + stadiumobjects = p.loadSDF("%sstadium.sdf" % self._urdfRoot) + #move the stadium objects slightly above 0 + for i in stadiumobjects: + pos,orn = p.getBasePositionAndOrientation(i) + newpos = [pos[0],pos[1],pos[2]+0.1] + p.resetBasePositionAndOrientation(i,newpos,orn) + + dist = 5 +2.*random.random() + ang = 2.*3.1415925438*random.random() + + ballx = dist * math.sin(ang) + bally = dist * math.cos(ang) + ballz = 1 + + self._ballUniqueId = p.loadURDF("sphere2red.urdf",[ballx,bally,ballz]) + p.setGravity(0,0,-10) + self._racecar = racecar.Racecar(urdfRootPath=self._urdfRoot, timeStep=self._timeStep) + self._envStepCounter = 0 + for i in range(100): + p.stepSimulation() + self._observation = self.getExtendedObservation() + return np.array(self._observation) + + def __del__(self): + p.disconnect() + + def _seed(self, seed=None): + self.np_random, seed = seeding.np_random(seed) + return [seed] + + def getExtendedObservation(self): + carpos,carorn = p.getBasePositionAndOrientation(self._racecar.racecarUniqueId) + carmat = p.getMatrixFromQuaternion(carorn) + ballpos,ballorn = p.getBasePositionAndOrientation(self._ballUniqueId) + invCarPos,invCarOrn = p.invertTransform(carpos,carorn) + ballPosInCar,ballOrnInCar = p.multiplyTransforms(invCarPos,invCarOrn,ballpos,ballorn) + dist0 = 0.3 + dist1 = 1. + eyePos = [carpos[0]+dist0*carmat[0],carpos[1]+dist0*carmat[3],carpos[2]+dist0*carmat[6]+0.3] + targetPos = [carpos[0]+dist1*carmat[0],carpos[1]+dist1*carmat[3],carpos[2]+dist1*carmat[6]+0.3] + up = [carmat[2],carmat[5],carmat[8]] + viewMat = p.computeViewMatrix(eyePos,targetPos,up) + #viewMat = p.computeViewMatrixFromYawPitchRoll(carpos,1,0,0,0,2) + #print("projectionMatrix:") + #print(p.getDebugVisualizerCamera()[3]) + projMatrix = [0.7499999403953552, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0000200271606445, -1.0, 0.0, 0.0, -0.02000020071864128, 0.0] + img_arr = p.getCameraImage(width=self._width,height=self._height,viewMatrix=viewMat,projectionMatrix=projMatrix) + rgb=img_arr[2] + np_img_arr = np.reshape(rgb, (self._height, self._width, 4)) + self._observation = np_img_arr + return self._observation + + def _step(self, action): + if (self._renders): + basePos,orn = p.getBasePositionAndOrientation(self._racecar.racecarUniqueId) + #p.resetDebugVisualizerCamera(1, 30, -40, basePos) + + fwd = [5,0,5,10,10,10] + steerings = [-0.5,0,0.5,-0.3,0,0.3] + forward = fwd[action] + steer = steerings[action] + realaction = [forward,steer] + self._racecar.applyAction(realaction) + for i in range(self._actionRepeat): + p.stepSimulation() + if self._renders: + time.sleep(self._timeStep) + self._observation = self.getExtendedObservation() + + if self._termination(): + break + self._envStepCounter += 1 + reward = self._reward() + done = self._termination() + #print("len=%r" % len(self._observation)) + + return np.array(self._observation), reward, done, {} + + def _render(self, mode='human', close=False): + return + + def _termination(self): + return self._envStepCounter>1000 + + def _reward(self): + closestPoints = p.getClosestPoints(self._racecar.racecarUniqueId,self._ballUniqueId,10000) + + numPt = len(closestPoints) + reward=-1000 + #print(numPt) + if (numPt>0): + #print("reward:") + reward = -closestPoints[0][8] + #print(reward) + return reward diff --git a/examples/pybullet/gym/envs/bullet/simpleHumanoid.py b/examples/pybullet/gym/envs/bullet/simpleHumanoid.py new file mode 100644 index 000000000..5cb69fd13 --- /dev/null +++ b/examples/pybullet/gym/envs/bullet/simpleHumanoid.py @@ -0,0 +1,124 @@ +import pybullet as p +import numpy as np +import copy +import math +import time + + + +class SimpleHumanoid: + + def __init__(self, urdfRootPath='', timeStep=0.01): + self.urdfRootPath = urdfRootPath + self.timeStep = timeStep + self.reset() + + + + def reset(self): + self.initial_z = None + + objs = p.loadMJCF("mjcf/humanoid_symmetric_no_ground.xml",flags = p.URDF_USE_SELF_COLLISION_EXCLUDE_ALL_PARENTS) + self.human = objs[0] + self.jdict = {} + self.ordered_joints = [] + self.ordered_joint_indices = [] + + for j in range( p.getNumJoints(self.human) ): + info = p.getJointInfo(self.human, j) + link_name = info[12].decode("ascii") + if link_name=="left_foot": self.left_foot = j + if link_name=="right_foot": self.right_foot = j + self.ordered_joint_indices.append(j) + if info[2] != p.JOINT_REVOLUTE: continue + jname = info[1].decode("ascii") + self.jdict[jname] = j + lower, upper = (info[8], info[9]) + self.ordered_joints.append( (j, lower, upper) ) + p.setJointMotorControl2(self.human, j, controlMode=p.VELOCITY_CONTROL, force=0) + + self.motor_names = ["abdomen_z", "abdomen_y", "abdomen_x"] + self.motor_power = [100, 100, 100] + self.motor_names += ["right_hip_x", "right_hip_z", "right_hip_y", "right_knee"] + self.motor_power += [100, 100, 300, 200] + self.motor_names += ["left_hip_x", "left_hip_z", "left_hip_y", "left_knee"] + self.motor_power += [100, 100, 300, 200] + self.motor_names += ["right_shoulder1", "right_shoulder2", "right_elbow"] + self.motor_power += [75, 75, 75] + self.motor_names += ["left_shoulder1", "left_shoulder2", "left_elbow"] + self.motor_power += [75, 75, 75] + self.motors = [self.jdict[n] for n in self.motor_names] + print("self.motors") + print(self.motors) + print("num motors") + print(len(self.motors)) + + + + def current_relative_position(self, jointStates, human, j, lower, upper): + #print("j") + #print(j) + #print (len(jointStates)) + #print(j) + temp = jointStates[j] + pos = temp[0] + vel = temp[1] + #print("pos") + #print(pos) + #print("vel") + #print(vel) + pos_mid = 0.5 * (lower + upper); + return ( + 2 * (pos - pos_mid) / (upper - lower), + 0.1 * vel + ) + + def collect_observations(self, human): + #print("ordered_joint_indices") + #print(ordered_joint_indices) + + + jointStates = p.getJointStates(human,self.ordered_joint_indices) + j = np.array([self.current_relative_position(jointStates, human, *jtuple) for jtuple in self.ordered_joints]).flatten() + #print("j") + #print(j) + body_xyz, (qx, qy, qz, qw) = p.getBasePositionAndOrientation(human) + #print("body_xyz") + #print(body_xyz, qx,qy,qz,qw) + z = body_xyz[2] + self.distance = body_xyz[0] + if self.initial_z==None: + self.initial_z = z + (vx, vy, vz), _ = p.getBaseVelocity(human) + more = np.array([z-self.initial_z, 0.1*vx, 0.1*vy, 0.1*vz, qx, qy, qz, qw]) + rcont = p.getContactPoints(human, -1, self.right_foot, -1) + #print("rcont") + #print(rcont) + lcont = p.getContactPoints(human, -1, self.left_foot, -1) + #print("lcont") + #print(lcont) + feet_contact = np.array([len(rcont)>0, len(lcont)>0]) + return np.clip( np.concatenate([more] + [j] + [feet_contact]), -5, +5) + + def getActionDimension(self): + return len(self.motors) + + def getObservationDimension(self): + return len(self.getObservation()) + + def getObservation(self): + observation = self.collect_observations(self.human) + return observation + + def applyAction(self, actions): + forces = [0.] * len(self.motors) + for m in range(len(self.motors)): + forces[m] = self.motor_power[m]*actions[m]*0.082 + p.setJointMotorControlArray(self.human, self.motors,controlMode=p.TORQUE_CONTROL, forces=forces) + + p.stepSimulation() + time.sleep(0.01) + distance=5 + yaw = 0 + #humanPos, humanOrn = p.getBasePositionAndOrientation(self.human) + #p.resetDebugVisualizerCamera(distance,yaw,-20,humanPos); diff --git a/examples/pybullet/gym/envs/bullet/simpleHumanoidGymEnv.py b/examples/pybullet/gym/envs/bullet/simpleHumanoidGymEnv.py new file mode 100644 index 000000000..7c9743124 --- /dev/null +++ b/examples/pybullet/gym/envs/bullet/simpleHumanoidGymEnv.py @@ -0,0 +1,102 @@ +import math +import gym +from gym import spaces +from gym.utils import seeding +import numpy as np +import time +import pybullet as p +from . import simpleHumanoid +import random + +class SimpleHumanoidGymEnv(gym.Env): + metadata = { + 'render.modes': ['human', 'rgb_array'], + 'video.frames_per_second' : 50 + } + + def __init__(self, + urdfRoot="", + actionRepeat=50, + isEnableSelfCollision=True, + renders=True): + print("init") + self._timeStep = 0.01 + self._urdfRoot = urdfRoot + self._actionRepeat = actionRepeat + self._isEnableSelfCollision = isEnableSelfCollision + self._observation = [] + self._envStepCounter = 0 + self._renders = renders + self._p = p + if self._renders: + p.connect(p.GUI) + else: + p.connect(p.DIRECT) + self._seed() + self.reset() + observationDim = len(self.getExtendedObservation()) + #print("observationDim") + #print(observationDim) + + observation_high = np.array([np.finfo(np.float32).max] * observationDim) + self.action_space = spaces.Discrete(9) + self.observation_space = spaces.Box(-observation_high, observation_high) + self.viewer = None + + def _reset(self): + p.resetSimulation() + #p.setPhysicsEngineParameter(numSolverIterations=300) + p.setTimeStep(self._timeStep) + p.loadURDF("%splane.urdf" % self._urdfRoot) + + dist = 5 +2.*random.random() + ang = 2.*3.1415925438*random.random() + + ballx = dist * math.sin(ang) + bally = dist * math.cos(ang) + ballz = 1 + + p.setGravity(0,0,-10) + self._humanoid = simpleHumanoid.SimpleHumanoid(urdfRootPath=self._urdfRoot, timeStep=self._timeStep) + self._envStepCounter = 0 + p.stepSimulation() + self._observation = self.getExtendedObservation() + return np.array(self._observation) + + def __del__(self): + p.disconnect() + + def _seed(self, seed=None): + self.np_random, seed = seeding.np_random(seed) + return [seed] + + def getExtendedObservation(self): + self._observation = self._humanoid.getObservation() + return self._observation + + def _step(self, action): + self._humanoid.applyAction(action) + for i in range(self._actionRepeat): + p.stepSimulation() + if self._renders: + time.sleep(self._timeStep) + self._observation = self.getExtendedObservation() + if self._termination(): + break + self._envStepCounter += 1 + reward = self._reward() + done = self._termination() + #print("len=%r" % len(self._observation)) + + return np.array(self._observation), reward, done, {} + + def _render(self, mode='human', close=False): + return + + def _termination(self): + return self._envStepCounter>1000 + + def _reward(self): + reward=self._humanoid.distance + print(reward) + return reward \ No newline at end of file diff --git a/examples/pybullet/gym/envs/env_bases.py b/examples/pybullet/gym/envs/env_bases.py new file mode 100644 index 000000000..573f7b284 --- /dev/null +++ b/examples/pybullet/gym/envs/env_bases.py @@ -0,0 +1,65 @@ +import gym, gym.spaces, gym.utils, gym.utils.seeding +import numpy as np +import pybullet as p + + +class MujocoXmlBaseBulletEnv(gym.Env): + """ + Base class for MuJoCo .xml environments in a Scene. + These environments create single-player scenes and behave like normal Gym environments, if + you don't use multiplayer. + """ + + metadata = { + 'render.modes': ['human', 'rgb_array'], + 'video.frames_per_second': 60 + } + + def __init__(self, robot): + self.scene = None + + self.camera = Camera() + + self.robot = robot + + self._seed() + + self.action_space = robot.action_space + self.observation_space = robot.observation_space + + def _seed(self, seed=None): + self.np_random, seed = gym.utils.seeding.np_random(seed) + self.robot.np_random = self.np_random # use the same np_randomizer for robot as for env + return [seed] + + def _reset(self): + if self.scene is None: + self.scene = self.create_single_player_scene() + if not self.scene.multiplayer: + self.scene.episode_restart() + + self.robot.scene = self.scene + + self.frame = 0 + self.done = 0 + self.reward = 0 + dump = 0 + s = self.robot.reset() + self.potential = self.robot.calc_potential() + return s + + def _render(self, mode, close): + pass + + def HUD(self, state, a, done): + pass + +class Camera: + def __init__(self): + pass + + def move_and_look_at(self,i,j,k,x,y,z): + lookat = [x,y,z] + distance = 10 + yaw = 10 + p.resetDebugVisualizerCamera(distance, yaw, -20, lookat) diff --git a/examples/pybullet/gym/envs/gym_locomotion_envs.py b/examples/pybullet/gym/envs/gym_locomotion_envs.py new file mode 100644 index 000000000..32d040e02 --- /dev/null +++ b/examples/pybullet/gym/envs/gym_locomotion_envs.py @@ -0,0 +1,110 @@ +from .scene_stadium import SinglePlayerStadiumScene +from .env_bases import MujocoXmlBaseBulletEnv +import numpy as np +from robot_locomotors import Hopper, Walker2D, HalfCheetah, Ant, Humanoid + + +class WalkerBaseBulletEnv(MujocoXmlBaseBulletEnv): + def __init__(self, robot): + MujocoXmlBaseBulletEnv.__init__(self, robot) + self.camera_x = 0 + self.walk_target_x = 1e3 # kilometer away + self.walk_target_y = 0 + + def create_single_player_scene(self): + self.stadium_scene = SinglePlayerStadiumScene(gravity=9.8, timestep=0.0165/4, frame_skip=4) + return self.stadium_scene + + def _reset(self): + r = MujocoXmlBaseBulletEnv._reset(self) + self.parts, self.jdict, self.ordered_joints, self.robot_body = self.robot.addToScene( + self.stadium_scene.ground_plane_mjcf) + self.ground_ids = set([(self.parts[f].bodies[self.parts[f].bodyIndex], self.parts[f].bodyPartIndex) for f in + self.foot_ground_object_names]) + return r + + def move_robot(self, init_x, init_y, init_z): + "Used by multiplayer stadium to move sideways, to another running lane." + self.cpp_robot.query_position() + pose = self.cpp_robot.root_part.pose() + pose.move_xyz(init_x, init_y, init_z) # Works because robot loads around (0,0,0), and some robots have z != 0 that is left intact + self.cpp_robot.set_pose(pose) + + electricity_cost = -2.0 # cost for using motors -- this parameter should be carefully tuned against reward for making progress, other values less improtant + stall_torque_cost = -0.1 # cost for running electric current through a motor even at zero rotational speed, small + foot_collision_cost = -1.0 # touches another leg, or other objects, that cost makes robot avoid smashing feet into itself + foot_ground_object_names = set(["floor"]) # to distinguish ground and other objects + joints_at_limit_cost = -0.1 # discourage stuck joints + + def _step(self, a): + if not self.scene.multiplayer: # if multiplayer, action first applied to all robots, then global step() called, then _step() for all robots with the same actions + self.robot.apply_action(a) + self.scene.global_step() + + state = self.robot.calc_state() # also calculates self.joints_at_limit + + alive = float(self.robot.alive_bonus(state[0]+self.robot.initial_z, self.robot.body_rpy[1])) # state[0] is body height above ground, body_rpy[1] is pitch + done = alive < 0 + if not np.isfinite(state).all(): + print("~INF~", state) + done = True + + potential_old = self.potential + self.potential = self.robot.calc_potential() + progress = float(self.potential - potential_old) + + feet_collision_cost = 0.0 + for i,f in enumerate(self.robot.feet): # TODO: Maybe calculating feet contacts could be done within the robot code + contact_ids = set((x[2], x[4]) for x in f.contact_list()) + #print("CONTACT OF '%s' WITH %s" % (f.name, ",".join(contact_names)) ) + self.robot.feet_contact[i] = 1.0 if (self.ground_ids & contact_ids) else 0.0 + if contact_ids - self.ground_ids: + feet_collision_cost += self.foot_collision_cost + + electricity_cost = self.electricity_cost * float(np.abs(a*self.robot.joint_speeds).mean()) # let's assume we have DC motor with controller, and reverse current braking + electricity_cost += self.stall_torque_cost * float(np.square(a).mean()) + + joints_at_limit_cost = float(self.joints_at_limit_cost * self.robot.joints_at_limit) + + self.rewards = [ + alive, + progress, + electricity_cost, + joints_at_limit_cost, + feet_collision_cost + ] + + self.HUD(state, a, done) + return state, sum(self.rewards), bool(done), {} + + def camera_adjust(self): + x, y, z = self.body_xyz + self.camera_x = 0.98*self.camera_x + (1-0.98)*x + self.camera.move_and_look_at(self.camera_x, y-2.0, 1.4, x, y, 1.0) + +class HopperBulletEnv(WalkerBaseBulletEnv): + def __init__(self): + self.robot = Hopper() + WalkerBaseBulletEnv.__init__(self, self.robot) + +class Walker2DBulletEnv(WalkerBaseBulletEnv): + def __init__(self): + self.robot = Walker2D() + WalkerBaseBulletEnv.__init__(self, self.robot) + +class HalfCheetahBulletEnv(WalkerBaseBulletEnv): + def __init__(self): + self.robot = HalfCheetah() + WalkerBaseBulletEnv.__init__(self, self.robot) + +class AntBulletEnv(WalkerBaseBulletEnv): + def __init__(self): + self.robot = Ant() + WalkerBaseBulletEnv.__init__(self, self.robot) + +class HumanoidBulletEnv(WalkerBaseBulletEnv): + def __init__(self): + self.robot = Humanoid() + WalkerBaseBulletEnv.__init__(self, self.robot) + self.electricity_cost = 4.25*WalkerBaseBulletEnv.electricity_cost + self.stall_torque_cost = 4.25*WalkerBaseBulletEnv.stall_torque_cost diff --git a/examples/pybullet/gym/envs/gym_pendulum_envs.py b/examples/pybullet/gym/envs/gym_pendulum_envs.py new file mode 100644 index 000000000..ce83f3e74 --- /dev/null +++ b/examples/pybullet/gym/envs/gym_pendulum_envs.py @@ -0,0 +1,64 @@ +from .scene_abstract import SingleRobotEmptyScene +from .env_bases import MujocoXmlBaseBulletEnv +from robot_pendula import InvertedPendulum, InvertedPendulumSwingup, InvertedDoublePendulum +import gym, gym.spaces, gym.utils, gym.utils.seeding +import numpy as np +import os, sys + +class InvertedPendulumBulletEnv(MujocoXmlBaseBulletEnv): + def __init__(self): + self.robot = InvertedPendulum() + MujocoXmlBaseBulletEnv.__init__(self, self.robot) + + def create_single_player_scene(self): + return SingleRobotEmptyScene(gravity=9.8, timestep=0.0165, frame_skip=1) + + def _step(self, a): + self.robot.apply_action(a) + self.scene.global_step() + state = self.robot.calc_state() # sets self.pos_x self.pos_y + vel_penalty = 0 + if self.robot.swingup: + reward = np.cos(self.robot.theta) + done = False + else: + reward = 1.0 + done = np.abs(self.robot.theta) > .2 + self.rewards = [float(reward)] + self.HUD(state, a, done) + return state, sum(self.rewards), done, {} + + def camera_adjust(self): + self.camera.move_and_look_at(0,1.2,1.0, 0,0,0.5) + +class InvertedPendulumSwingupBulletEnv(InvertedPendulumBulletEnv): + def __init__(self): + self.robot = InvertedPendulumSwingup() + MujocoXmlBaseBulletEnv.__init__(self, self.robot) + +class InvertedDoublePendulumBulletEnv(MujocoXmlBaseBulletEnv): + def __init__(self): + self.robot = InvertedDoublePendulum() + MujocoXmlBaseBulletEnv.__init__(self, self.robot) + + def create_single_player_scene(self): + return SingleRobotEmptyScene(gravity=9.8, timestep=0.0165, frame_skip=1) + + def _step(self, a): + self.robot.apply_action(a) + self.scene.global_step() + state = self.robot.calc_state() # sets self.pos_x self.pos_y + # upright position: 0.6 (one pole) + 0.6 (second pole) * 0.5 (middle of second pole) = 0.9 + # using tag in original xml, upright position is 0.6 + 0.6 = 1.2, difference +0.3 + dist_penalty = 0.01 * self.robot.pos_x ** 2 + (self.robot.pos_y + 0.3 - 2) ** 2 + # v1, v2 = self.model.data.qvel[1:3] TODO when this fixed https://github.com/bulletphysics/bullet3/issues/1040 + #vel_penalty = 1e-3 * v1**2 + 5e-3 * v2**2 + vel_penalty = 0 + alive_bonus = 10 + done = self.robot.pos_y + 0.3 <= 1 + self.rewards = [float(alive_bonus), float(-dist_penalty), float(-vel_penalty)] + self.HUD(state, a, done) + return state, sum(self.rewards), done, {} + + def camera_adjust(self): + self.camera.move_and_look_at(0,1.2,1.2, 0,0,0.5) diff --git a/examples/pybullet/gym/envs/kerasrl_utils.py b/examples/pybullet/gym/envs/kerasrl_utils.py new file mode 100644 index 000000000..1ccedce5c --- /dev/null +++ b/examples/pybullet/gym/envs/kerasrl_utils.py @@ -0,0 +1,28 @@ + +import re +from gym import error +import glob + # checkpoints/KerasDDPG-InvertedPendulum-v0-20170701190920_actor.h5 +weight_save_re = re.compile(r'^(?:\w+\/)+?(\w+-v\d+)-(\w+-v\d+)-(\d+)(?:_\w+)?\.(\w+)$') + +def get_fields(weight_save_name): + match = weight_save_re.search(weight_save_name) + if not match: + raise error.Error('Attempted to read a malformed weight save: {}. (Currently all weight saves must be of the form {}.)'.format(id,weight_save_re.pattern)) + return match.group(1), match.group(2), int(match.group(3)) + +def get_latest_save(file_folder, agent_name, env_name, version_number): + """ + Returns the properties of the latest weight save. The information can be used to generate the loading path + :return: + """ + path = "%s%s"% (file_folder, "*.h5") + file_list = glob.glob(path) + latest_file_properties = [] + file_properties = [] + for f in file_list: + file_properties = get_fields(f) + if file_properties[0] == agent_name and file_properties[1] == env_name and (latest_file_properties == [] or file_properties[2] > latest_file_properties[2]): + latest_file_properties = file_properties + + return latest_file_properties diff --git a/examples/pybullet/gym/envs/robot_bases.py b/examples/pybullet/gym/envs/robot_bases.py new file mode 100644 index 000000000..626de31bf --- /dev/null +++ b/examples/pybullet/gym/envs/robot_bases.py @@ -0,0 +1,208 @@ +import pybullet as p +import gym, gym.spaces, gym.utils +import numpy as np +import os + + +class MujocoXmlBasedRobot: + """ + Base class for mujoco .xml based agents. + """ + + self_collision = False + + def __init__(self, model_xml, robot_name, action_dim, obs_dim): + self.parts = None + self.jdict = None + self.ordered_joints = None + self.robot_body = None + + high = np.ones([action_dim]) + self.action_space = gym.spaces.Box(-high, high) + high = np.inf * np.ones([obs_dim]) + self.observation_space = gym.spaces.Box(-high, high) + + self.model_xml = model_xml + self.robot_name = robot_name + + def addToScene(self, bodies): + if self.parts is not None: + parts = self.parts + else: + parts = {} + + if self.jdict is not None: + joints = self.jdict + else: + joints = {} + + if self.ordered_joints is not None: + ordered_joints = self.ordered_joints + else: + ordered_joints = [] + + dump = 0 + for i in range(len(bodies)): + if p.getNumJoints(bodies[i]) == 0: + part_name, robot_name = p.getBodyInfo(bodies[i], 0) + robot_name = robot_name.decode("utf8") + part_name = part_name.decode("utf8") + parts[part_name] = BodyPart(part_name, bodies, i, -1) + for j in range(p.getNumJoints(bodies[i])): + _,joint_name,_,_,_,_,_,_,_,_,_,_,part_name = p.getJointInfo(bodies[i], j) + + joint_name = joint_name.decode("utf8") + part_name = part_name.decode("utf8") + + if dump: print("ROBOT PART '%s'" % part_name) + if dump: print("ROBOT JOINT '%s'" % joint_name) # limits = %+0.2f..%+0.2f effort=%0.3f speed=%0.3f" % ((joint_name,) + j.limits()) ) + + parts[part_name] = BodyPart(part_name, bodies, i, j) + + if part_name == self.robot_name: + self.robot_body = parts[part_name] + + if i == 0 and j == 0 and self.robot_body is None: # if nothing else works, we take this as robot_body + parts[self.robot_name] = BodyPart(self.robot_name, bodies, 0, -1) + self.robot_body = parts[self.robot_name] + + if joint_name[:6] == "ignore": + Joint(joint_name, bodies, i, j).disable_motor() + continue + + if joint_name[:8] != "jointfix": + joints[joint_name] = Joint(joint_name, bodies, i, j) + ordered_joints.append(joints[joint_name]) + + joints[joint_name].power_coef = 100.0 + + return parts, joints, ordered_joints, self.robot_body + + def reset(self): + self.ordered_joints = [] + + if self.self_collision: + self.parts, self.jdict, self.ordered_joints, self.robot_body = self.addToScene( + p.loadMJCF(os.path.join("mjcf", self.model_xml), flags=p.URDF_USE_SELF_COLLISION_EXCLUDE_ALL_PARENTS)) + else: + self.parts, self.jdict, self.ordered_joints, self.robot_body = self.addToScene( + p.loadMJCF(os.path.join("mjcf", self.model_xml))) + + self.robot_specific_reset() + + s = self.calc_state() # optimization: calc_state() can calculate something in self.* for calc_potential() to use + + return s + + def calc_potential(self): + return 0 + +class Pose_Helper: # dummy class to comply to original interface + def __init__(self, body_part): + self.body_part = body_part + + def xyz(self): + return self.body_part.current_position() + + def rpy(self): + return p.getEulerFromQuaternion(self.body_part.current_orientation()) + + def orientation(self): + return self.body_part.current_orientation() + +class BodyPart: + def __init__(self, body_name, bodies, bodyIndex, bodyPartIndex): + self.bodies = bodies + self.bodyIndex = bodyIndex + self.bodyPartIndex = bodyPartIndex + self.initialPosition = self.current_position() + self.initialOrientation = self.current_orientation() + self.bp_pose = Pose_Helper(self) + + def state_fields_of_pose_of(self, body_id, link_id=-1): # a method you will most probably need a lot to get pose and orientation + if link_id == -1: + (x, y, z), (a, b, c, d) = p.getBasePositionAndOrientation(body_id) + else: + (x, y, z), (a, b, c, d), _, _, _, _ = p.getLinkState(body_id, link_id) + return np.array([x, y, z, a, b, c, d]) + + def get_pose(self): + return self.state_fields_of_pose_of(self.bodies[self.bodyIndex], self.bodyPartIndex) + + def speed(self): + if self.bodyPartIndex == -1: + (vx, vy, vz), _ = p.getBaseVelocity(self.bodies[self.bodyIndex]) + else: + (x,y,z), (a,b,c,d), _,_,_,_, (vx, vy, vz), (vr,vp,vy) = p.getLinkState(self.bodies[self.bodyIndex], self.bodyPartIndex, computeLinkVelocity=1) + return np.array([vx, vy, vz]) + + def current_position(self): + return self.get_pose()[:3] + + def current_orientation(self): + return self.get_pose()[3:] + + def reset_position(self, position): + p.resetBasePositionAndOrientation(self.bodies[self.bodyIndex], position, self.get_orientation()) + + def reset_orientation(self, orientation): + p.resetBasePositionAndOrientation(self.bodies[self.bodyIndex], self.get_position(), orientation) + + def reset_pose(self, position, orientation): + p.resetBasePositionAndOrientation(self.bodies[self.bodyIndex], position, orientation) + + def pose(self): + return self.bp_pose + + def contact_list(self): + return p.getContactPoints(self.bodies[self.bodyIndex], -1, self.bodyPartIndex, -1) + + +class Joint: + def __init__(self, joint_name, bodies, bodyIndex, jointIndex): + self.bodies = bodies + self.bodyIndex = bodyIndex + self.jointIndex = jointIndex + self.joint_name = joint_name + _,_,_,_,_,_,_,_,self.lowerLimit, self.upperLimit,_,_,_ = p.getJointInfo(self.bodies[self.bodyIndex], self.jointIndex) + self.power_coeff = 0 + + def set_state(self, x, vx): + p.resetJointState(self.bodies[self.bodyIndex], self.jointIndex, x, vx) + + def current_position(self): # just some synonyme method + return self.get_state() + + def current_relative_position(self): + pos, vel = self.get_state() + pos_mid = 0.5 * (self.lowerLimit + self.upperLimit); + return ( + 2 * (pos - pos_mid) / (self.upperLimit - self.lowerLimit), + 0.1 * vel + ) + + def get_state(self): + x, vx,_,_ = p.getJointState(self.bodies[self.bodyIndex],self.jointIndex) + return x, vx + + def set_position(self, position): + p.setJointMotorControl2(self.bodies[self.bodyIndex],self.jointIndex,p.POSITION_CONTROL, targetPosition=position) + + def set_velocity(self, velocity): + p.setJointMotorControl2(self.bodies[self.bodyIndex],self.jointIndex,p.VELOCITY_CONTROL, targetVelocity=velocity) + + def set_motor_torque(self, torque): # just some synonyme method + self.set_torque(torque) + + def set_torque(self, torque): + p.setJointMotorControl2(bodyIndex=self.bodies[self.bodyIndex], jointIndex=self.jointIndex, controlMode=p.TORQUE_CONTROL, force=torque) #, positionGain=0.1, velocityGain=0.1) + + def reset_current_position(self, position, velocity): # just some synonyme method + self.reset_position(position, velocity) + + def reset_position(self, position, velocity): + p.resetJointState(self.bodies[self.bodyIndex],self.jointIndex,targetValue=position, targetVelocity=velocity) + self.disable_motor() + + def disable_motor(self): + p.setJointMotorControl2(self.bodies[self.bodyIndex],self.jointIndex,controlMode=p.VELOCITY_CONTROL, force=0) \ No newline at end of file diff --git a/examples/pybullet/gym/envs/robot_locomotors.py b/examples/pybullet/gym/envs/robot_locomotors.py new file mode 100644 index 000000000..92cda05ac --- /dev/null +++ b/examples/pybullet/gym/envs/robot_locomotors.py @@ -0,0 +1,175 @@ +from robot_bases import MujocoXmlBasedRobot +import numpy as np + + +class WalkerBase(MujocoXmlBasedRobot): + def __init__(self, fn, robot_name, action_dim, obs_dim, power): + MujocoXmlBasedRobot.__init__(self, fn, robot_name, action_dim, obs_dim) + self.power = power + self.camera_x = 0 + self.walk_target_x = 1e3 # kilometer away + self.walk_target_y = 0 + + def robot_specific_reset(self): + for j in self.ordered_joints: + j.reset_current_position(self.np_random.uniform(low=-0.1, high=0.1), 0) + + self.feet = [self.parts[f] for f in self.foot_list] + self.feet_contact = np.array([0.0 for f in self.foot_list], dtype=np.float32) + self.scene.actor_introduce(self) + self.initial_z = None + + def apply_action(self, a): + assert (np.isfinite(a).all()) + for n, j in enumerate(self.ordered_joints): + j.set_motor_torque(self.power * j.power_coef * float(np.clip(a[n], -1, +1))) + + def calc_state(self): + j = np.array([j.current_relative_position() for j in self.ordered_joints], dtype=np.float32).flatten() + # even elements [0::2] position, scaled to -1..+1 between limits + # odd elements [1::2] angular speed, scaled to show -1..+1 + self.joint_speeds = j[1::2] + self.joints_at_limit = np.count_nonzero(np.abs(j[0::2]) > 0.99) + + body_pose = self.robot_body.pose() + parts_xyz = np.array([p.pose().xyz() for p in self.parts.values()]).flatten() + self.body_xyz = ( + parts_xyz[0::3].mean(), parts_xyz[1::3].mean(), body_pose.xyz()[2]) # torso z is more informative than mean z + self.body_rpy = body_pose.rpy() + z = self.body_xyz[2] + if self.initial_z == None: + self.initial_z = z + r, p, yaw = self.body_rpy + self.walk_target_theta = np.arctan2(self.walk_target_y - self.body_xyz[1], + self.walk_target_x - self.body_xyz[0]) + self.walk_target_dist = np.linalg.norm( + [self.walk_target_y - self.body_xyz[1], self.walk_target_x - self.body_xyz[0]]) + angle_to_target = self.walk_target_theta - yaw + + rot_speed = np.array( + [[np.cos(-yaw), -np.sin(-yaw), 0], + [np.sin(-yaw), np.cos(-yaw), 0], + [ 0, 0, 1]] + ) + vx, vy, vz = np.dot(rot_speed, self.robot_body.speed()) # rotate speed back to body point of view + + more = np.array([ z-self.initial_z, + np.sin(angle_to_target), np.cos(angle_to_target), + 0.3* vx , 0.3* vy , 0.3* vz , # 0.3 is just scaling typical speed into -1..+1, no physical sense here + r, p], dtype=np.float32) + return np.clip( np.concatenate([more] + [j] + [self.feet_contact]), -5, +5) + + def calc_potential(self): + # progress in potential field is speed*dt, typical speed is about 2-3 meter per second, this potential will change 2-3 per frame (not per second), + # all rewards have rew/frame units and close to 1.0 + return - self.walk_target_dist / self.scene.dt + + +class Hopper(WalkerBase): + foot_list = ["foot"] + + def __init__(self): + WalkerBase.__init__(self, "hopper.xml", "torso", action_dim=3, obs_dim=15, power=0.75) + + def alive_bonus(self, z, pitch): + return +1 if z > 0.8 and abs(pitch) < 1.0 else -1 + + +class Walker2D(WalkerBase): + foot_list = ["foot", "foot_left"] + + def __init__(self): + WalkerBase.__init__(self, "walker2d.xml", "torso", action_dim=6, obs_dim=22, power=0.40) + + def alive_bonus(self, z, pitch): + return +1 if z > 0.8 and abs(pitch) < 1.0 else -1 + + def robot_specific_reset(self): + WalkerBase.robot_specific_reset(self) + for n in ["foot_joint", "foot_left_joint"]: + self.jdict[n].power_coef = 30.0 + + +class HalfCheetah(WalkerBase): + foot_list = ["ffoot", "fshin", "fthigh", "bfoot", "bshin", "bthigh"] # track these contacts with ground + + def __init__(self): + WalkerBase.__init__(self, "half_cheetah.xml", "torso", action_dim=6, obs_dim=26, power=0.90) + + def alive_bonus(self, z, pitch): + # Use contact other than feet to terminate episode: due to a lot of strange walks using knees + return +1 if np.abs(pitch) < 1.0 and not self.feet_contact[1] and not self.feet_contact[2] and not self.feet_contact[4] and not self.feet_contact[5] else -1 + + def robot_specific_reset(self): + WalkerBase.robot_specific_reset(self) + self.jdict["bthigh"].power_coef = 120.0 + self.jdict["bshin"].power_coef = 90.0 + self.jdict["bfoot"].power_coef = 60.0 + self.jdict["fthigh"].power_coef = 140.0 + self.jdict["fshin"].power_coef = 60.0 + self.jdict["ffoot"].power_coef = 30.0 + + +class Ant(WalkerBase): + foot_list = ['front_left_foot', 'front_right_foot', 'left_back_foot', 'right_back_foot'] + + def __init__(self): + WalkerBase.__init__(self, "ant.xml", "torso", action_dim=8, obs_dim=28, power=10.5) + + def alive_bonus(self, z, pitch): + return +1 if z > 0.26 else -1 # 0.25 is central sphere rad, die if it scrapes the ground + + +class Humanoid(WalkerBase): + self_collision = True + foot_list = ["right_foot", "left_foot"] # "left_hand", "right_hand" + + def __init__(self): + WalkerBase.__init__(self, 'humanoid_symmetric.xml', 'torso', action_dim=17, obs_dim=44, power=0.41) + # 17 joints, 4 of them important for walking (hip, knee), others may as well be turned off, 17/4 = 4.25 + + def robot_specific_reset(self): + WalkerBase.robot_specific_reset(self) + self.motor_names = ["abdomen_z", "abdomen_y", "abdomen_x"] + self.motor_power = [100, 100, 100] + self.motor_names += ["right_hip_x", "right_hip_z", "right_hip_y", "right_knee"] + self.motor_power += [100, 100, 300, 200] + self.motor_names += ["left_hip_x", "left_hip_z", "left_hip_y", "left_knee"] + self.motor_power += [100, 100, 300, 200] + self.motor_names += ["right_shoulder1", "right_shoulder2", "right_elbow"] + self.motor_power += [75, 75, 75] + self.motor_names += ["left_shoulder1", "left_shoulder2", "left_elbow"] + self.motor_power += [75, 75, 75] + self.motors = [self.jdict[n] for n in self.motor_names] + # if self.random_yaw: # TODO: Make leaning work as soon as the rest works + # cpose = cpp_household.Pose() + # yaw = self.np_random.uniform(low=-3.14, high=3.14) + # if self.random_lean and self.np_random.randint(2)==0: + # cpose.set_xyz(0, 0, 1.4) + # if self.np_random.randint(2)==0: + # pitch = np.pi/2 + # cpose.set_xyz(0, 0, 0.45) + # else: + # pitch = np.pi*3/2 + # cpose.set_xyz(0, 0, 0.25) + # roll = 0 + # cpose.set_rpy(roll, pitch, yaw) + # else: + # cpose.set_xyz(0, 0, 1.4) + # cpose.set_rpy(0, 0, yaw) # just face random direction, but stay straight otherwise + # self.cpp_robot.set_pose_and_speed(cpose, 0,0,0) + self.initial_z = 0.8 + + random_yaw = False + random_lean = False + + def apply_action(self, a): + assert( np.isfinite(a).all() ) + force_gain = 1 + for i, m, power in zip(range(17), self.motors, self.motor_power): + m.set_motor_torque( float(force_gain * power*self.power*a[i]) ) + #m.set_motor_torque(float(force_gain * power * self.power * np.clip(a[i], -1, +1))) + + def alive_bonus(self, z, pitch): + return +2 if z > 0.78 else -1 # 2 here because 17 joints produce a lot of electricity cost just from policy noise, living must be better than dying + diff --git a/examples/pybullet/gym/envs/robot_pendula.py b/examples/pybullet/gym/envs/robot_pendula.py new file mode 100644 index 000000000..21d10f52d --- /dev/null +++ b/examples/pybullet/gym/envs/robot_pendula.py @@ -0,0 +1,87 @@ +from robot_bases import MujocoXmlBasedRobot +import numpy as np + +class InvertedPendulum(MujocoXmlBasedRobot): + swingup = False + force_gain = 12 # TODO: Try to find out why we need to scale the force + def __init__(self): + MujocoXmlBasedRobot.__init__(self, 'inverted_pendulum.xml', 'cart', action_dim=1, obs_dim=5) + + def robot_specific_reset(self): + self.pole = self.parts["pole"] + self.slider = self.jdict["slider"] + self.j1 = self.jdict["hinge"] + u = self.np_random.uniform(low=-.1, high=.1) + self.j1.reset_current_position( u if not self.swingup else 3.1415+u , 0) + self.j1.set_motor_torque(0) + + def apply_action(self, a): + #assert( np.isfinite(a).all() ) + if not np.isfinite(a).all(): + print("a is inf") + a[0] = 0 + self.slider.set_motor_torque( self.force_gain * 100*float(np.clip(a[0], -1, +1)) ) + + def calc_state(self): + self.theta, theta_dot = self.j1.current_position() + x, vx = self.slider.current_position() + #assert( np.isfinite(x) ) + + if not np.isfinite(x): + print("x is inf") + x = 0 + + if not np.isfinite(vx): + print("vx is inf") + vx = 0 + + if not np.isfinite(self.theta): + print("theta is inf") + self.theta = 0 + + if not np.isfinite(theta_dot): + print("theta_dot is inf") + theta_dot = 0 + + return np.array([ + x, vx, + np.cos(self.theta), np.sin(self.theta), theta_dot + ]) + +class InvertedPendulumSwingup(InvertedPendulum): + swingup = True + force_gain = 2.2 # TODO: Try to find out why we need to scale the force + + +class InvertedDoublePendulum(MujocoXmlBasedRobot): + def __init__(self): + MujocoXmlBasedRobot.__init__(self, 'inverted_double_pendulum.xml', 'cart', action_dim=1, obs_dim=9) + + def robot_specific_reset(self): + self.pole2 = self.parts["pole2"] + self.slider = self.jdict["slider"] + self.j1 = self.jdict["hinge"] + self.j2 = self.jdict["hinge2"] + u = self.np_random.uniform(low=-.1, high=.1, size=[2]) + self.j1.reset_current_position(float(u[0]), 0) + self.j2.reset_current_position(float(u[1]), 0) + self.j1.set_motor_torque(0) + self.j2.set_motor_torque(0) + + def apply_action(self, a): + assert( np.isfinite(a).all() ) + force_gain = 0.78 # TODO: Try to find out why we need to scale the force + self.slider.set_motor_torque( force_gain *200*float(np.clip(a[0], -1, +1)) ) + + def calc_state(self): + theta, theta_dot = self.j1.current_position() + gamma, gamma_dot = self.j2.current_position() + x, vx = self.slider.current_position() + self.pos_x, _, self.pos_y = self.pole2.pose().xyz() + assert( np.isfinite(x) ) + return np.array([ + x, vx, + self.pos_x, + np.cos(theta), np.sin(theta), theta_dot, + np.cos(gamma), np.sin(gamma), gamma_dot, + ]) \ No newline at end of file diff --git a/examples/pybullet/gym/envs/scene_abstract.py b/examples/pybullet/gym/envs/scene_abstract.py new file mode 100644 index 000000000..663401458 --- /dev/null +++ b/examples/pybullet/gym/envs/scene_abstract.py @@ -0,0 +1,76 @@ +import sys, os +sys.path.append(os.path.dirname(__file__)) +import pybullet as p + +import gym + + +class Scene: + "A base class for single- and multiplayer scenes" + + def __init__(self, gravity, timestep, frame_skip): + self.np_random, seed = gym.utils.seeding.np_random(None) + self.timestep = timestep + self.frame_skip = frame_skip + self.dt = self.timestep * self.frame_skip + self.cpp_world = World(gravity, timestep) + #self.cpp_world.set_glsl_path(os.path.join(os.path.dirname(__file__), "cpp-household/glsl")) + + #self.big_caption = self.cpp_world.test_window_big_caption # that's a function you can call + #self.console_print = self.cpp_world.test_window_print # this too + + self.test_window_still_open = True # or never opened + self.human_render_detected = False # if user wants render("human"), we open test window + + self.multiplayer_robots = {} + + def test_window(self): + "Call this function every frame, to see what's going on. Not necessary in learning." + self.human_render_detected = True + return self.test_window_still_open + + def actor_introduce(self, robot): + "Usually after scene reset" + if not self.multiplayer: return + self.multiplayer_robots[robot.player_n] = robot + + def actor_is_active(self, robot): + """ + Used by robots to see if they are free to exclusiveley put their HUD on the test window. + Later can be used for click-focus robots. + """ + return not self.multiplayer + + def episode_restart(self): + "This function gets overridden by specific scene, to reset specific objects into their start positions" + self.cpp_world.clean_everything() + #self.cpp_world.test_window_history_reset() + + def global_step(self): + """ + The idea is: apply motor torques for all robots, then call global_step(), then collect + observations from robots using step() with the same action. + """ + #if self.human_render_detected: + # self.test_window_still_open = self.cpp_world.test_window() + self.cpp_world.step(self.frame_skip) + +class SingleRobotEmptyScene(Scene): + multiplayer = False # this class is used "as is" for InvertedPendulum, Reacher + +class World: + + def __init__(self, gravity, timestep): + self.gravity = gravity + self.timestep = timestep + self.clean_everything() + + def clean_everything(self): + p.resetSimulation() + p.setGravity(0, 0, -self.gravity) + p.setPhysicsEngineParameter(fixedTimeStep=self.timestep, numSolverIterations=5, numSubSteps=2) + + def step(self, frame_skip): + p.stepSimulation() + + diff --git a/examples/pybullet/gym/envs/scene_stadium.py b/examples/pybullet/gym/envs/scene_stadium.py new file mode 100644 index 000000000..30ee26a1e --- /dev/null +++ b/examples/pybullet/gym/envs/scene_stadium.py @@ -0,0 +1,30 @@ +import os +from .scene_abstract import Scene +import pybullet as p + +class StadiumScene(Scene): + zero_at_running_strip_start_line = True # if False, center of coordinates (0,0,0) will be at the middle of the stadium + stadium_halflen = 105*0.25 # FOOBALL_FIELD_HALFLEN + stadium_halfwidth = 50*0.25 # FOOBALL_FIELD_HALFWID + + def episode_restart(self): + Scene.episode_restart(self) # contains cpp_world.clean_everything() + # stadium_pose = cpp_household.Pose() + # if self.zero_at_running_strip_start_line: + # stadium_pose.set_xyz(27, 21, 0) # see RUN_STARTLINE, RUN_RAD constants + self.stadium = p.loadSDF("stadium.sdf") + self.ground_plane_mjcf = p.loadMJCF("mjcf/ground_plane.xml") + for i in self.ground_plane_mjcf: + p.changeVisualShape(i,-1,rgbaColor=[0,0,0,0]) + +class SinglePlayerStadiumScene(StadiumScene): + "This scene created by environment, to work in a way as if there was no concept of scene visible to user." + multiplayer = False + +class MultiplayerStadiumScene(StadiumScene): + multiplayer = True + players_count = 3 + def actor_introduce(self, robot): + StadiumScene.actor_introduce(self, robot) + i = robot.player_n - 1 # 0 1 2 => -1 0 +1 + robot.move_robot(0, i, 0) diff --git a/examples/pybullet/gym/kukaGymEnvTest.py b/examples/pybullet/gym/kukaGymEnvTest.py new file mode 100644 index 000000000..05ca9497f --- /dev/null +++ b/examples/pybullet/gym/kukaGymEnvTest.py @@ -0,0 +1,32 @@ + +from envs.bullet.kukaGymEnv import KukaGymEnv +import time + + +environment = KukaGymEnv(renders=True) + + +motorsIds=[] +#motorsIds.append(environment._p.addUserDebugParameter("posX",0.4,0.75,0.537)) +#motorsIds.append(environment._p.addUserDebugParameter("posY",-.22,.3,0.0)) +#motorsIds.append(environment._p.addUserDebugParameter("posZ",0.1,1,0.2)) +#motorsIds.append(environment._p.addUserDebugParameter("yaw",-3.14,3.14,0)) +#motorsIds.append(environment._p.addUserDebugParameter("fingerAngle",0,0.3,.3)) + +dv = 0.001 +motorsIds.append(environment._p.addUserDebugParameter("posX",-dv,dv,0)) +motorsIds.append(environment._p.addUserDebugParameter("posY",-dv,dv,0)) +motorsIds.append(environment._p.addUserDebugParameter("posZ",-dv,dv,-dv)) +motorsIds.append(environment._p.addUserDebugParameter("yaw",-dv,dv,0)) +motorsIds.append(environment._p.addUserDebugParameter("fingerAngle",0,0.3,.3)) + +done = False +while (not done): + + action=[] + for motorId in motorsIds: + action.append(environment._p.readUserDebugParameter(motorId)) + + state, reward, done, info = environment.step2(action) + obs = environment.getExtendedObservation() + diff --git a/examples/pybullet/gym/kukaJointSpaceGymEnvTest.py b/examples/pybullet/gym/kukaJointSpaceGymEnvTest.py new file mode 100644 index 000000000..ec442e1fd --- /dev/null +++ b/examples/pybullet/gym/kukaJointSpaceGymEnvTest.py @@ -0,0 +1,23 @@ + +from envs.bullet.kukaGymEnv import KukaGymEnv +import time + + +environment = KukaGymEnv(renders=True) +environment._kuka.useInverseKinematics=0 + +motorsIds=[] +for i in range (len(environment._kuka.motorNames)): + motor = environment._kuka.motorNames[i] + motorJointIndex = environment._kuka.motorIndices[i] + motorsIds.append(environment._p.addUserDebugParameter(motor,-3,3,environment._kuka.jointPositions[i])) + +while (True): + + action=[] + for motorId in motorsIds: + action.append(environment._p.readUserDebugParameter(motorId)) + + state, reward, done, info = environment.step(action) + obs = environment.getExtendedObservation() + time.sleep(0.01) diff --git a/examples/pybullet/gym/minitaurGymEnvTest.py b/examples/pybullet/gym/minitaurGymEnvTest.py index 3bbabd9a4..7491453fe 100644 --- a/examples/pybullet/gym/minitaurGymEnvTest.py +++ b/examples/pybullet/gym/minitaurGymEnvTest.py @@ -10,8 +10,14 @@ import numpy as np import tensorflow as tf from envs.bullet.minitaurGymEnv import MinitaurGymEnv -from agents import simplerAgent +try: + import sonnet + from agents import simpleAgentWithSonnet as agent_lib +except ImportError: + from agents import simpleAgent as agent_lib + + def testSinePolicy(): """Tests sine policy """ @@ -54,13 +60,13 @@ def testDDPGPolicy(): sum_reward = 0 steps = 1000 ckpt_path = 'data/agent/tf_graph_data/tf_graph_data_converted.ckpt-0' - observation_shape = (31,) + observation_shape = (28,) action_size = 8 - actor_layer_sizes = (100, 181) + actor_layer_size = (297, 158) n_steps = 0 tf.reset_default_graph() with tf.Session() as session: - agent = simplerAgent.SimplerAgent(session, ckpt_path) + agent = agent_lib.SimpleAgent(session=session, ckpt_path=ckpt_path, actor_layer_size=actor_layer_size) state = environment.reset() action = agent(state) for _ in range(steps): diff --git a/examples/pybullet/gym/racecarGymEnvTest.py b/examples/pybullet/gym/racecarGymEnvTest.py new file mode 100644 index 000000000..f9fda3fc3 --- /dev/null +++ b/examples/pybullet/gym/racecarGymEnvTest.py @@ -0,0 +1,30 @@ + +from envs.bullet.racecarGymEnv import RacecarGymEnv +print ("hello") +environment = RacecarGymEnv(renders=True) + +targetVelocitySlider = environment._p.addUserDebugParameter("wheelVelocity",-1,1,0) +steeringSlider = environment._p.addUserDebugParameter("steering",-0.5,0.5,0) + +while (True): + targetVelocity = environment._p.readUserDebugParameter(targetVelocitySlider) + steeringAngle = environment._p.readUserDebugParameter(steeringSlider) + discreteAction = 0 + if (targetVelocity<-0.33): + discreteAction=0 + else: + if (targetVelocity>0.33): + discreteAction=6 + else: + discreteAction=3 + if (steeringAngle>-0.17): + if (steeringAngle>0.17): + discreteAction=discreteAction+2 + else: + discreteAction=discreteAction+1 + + action=discreteAction + state, reward, done, info = environment.step(action) + obs = environment.getExtendedObservation() + print("obs") + print(obs) diff --git a/examples/pybullet/gym/racecarZEDGymEnvTest.py b/examples/pybullet/gym/racecarZEDGymEnvTest.py new file mode 100644 index 000000000..68364bcb4 --- /dev/null +++ b/examples/pybullet/gym/racecarZEDGymEnvTest.py @@ -0,0 +1,30 @@ + +from envs.bullet.racecarZEDGymEnv import RacecarZEDGymEnv +print ("hello") +environment = RacecarZEDGymEnv(renders=True) + +targetVelocitySlider = environment._p.addUserDebugParameter("wheelVelocity",-1,1,0) +steeringSlider = environment._p.addUserDebugParameter("steering",-0.5,0.5,0) + +while (True): + targetVelocity = environment._p.readUserDebugParameter(targetVelocitySlider) + steeringAngle = environment._p.readUserDebugParameter(steeringSlider) + discreteAction = 0 + if (targetVelocity<-0.33): + discreteAction=0 + else: + if (targetVelocity>0.33): + discreteAction=6 + else: + discreteAction=3 + if (steeringAngle>-0.17): + if (steeringAngle>0.17): + discreteAction=discreteAction+2 + else: + discreteAction=discreteAction+1 + + action=discreteAction + state, reward, done, info = environment.step(action) + obs = environment.getExtendedObservation() + print("obs") + print(obs) diff --git a/examples/pybullet/gym/simpleHumanoidGymEnvTest.py b/examples/pybullet/gym/simpleHumanoidGymEnvTest.py new file mode 100644 index 000000000..b86b65081 --- /dev/null +++ b/examples/pybullet/gym/simpleHumanoidGymEnvTest.py @@ -0,0 +1,21 @@ + +from envs.bullet.simpleHumanoidGymEnv import SimpleHumanoidGymEnv +print ("hello") +environment = SimpleHumanoidGymEnv(renders=True) + +environment._p.setGravity(0,0,0) + +motorsIds=[] +for motor in environment._humanoid.motor_names: + motorsIds.append(environment._p.addUserDebugParameter(motor,-1,1,0)) + +while (True): + + action=[] + for motorId in motorsIds: + action.append(environment._p.readUserDebugParameter(motorId)) + + state, reward, done, info = environment.step(action) + obs = environment.getExtendedObservation() + print("obs") + print(obs) diff --git a/examples/pybullet/gym/train_kuka_cam_grasping.py b/examples/pybullet/gym/train_kuka_cam_grasping.py new file mode 100644 index 000000000..93d4a2b78 --- /dev/null +++ b/examples/pybullet/gym/train_kuka_cam_grasping.py @@ -0,0 +1,44 @@ +import gym +from envs.bullet.kukaCamGymEnv import KukaCamGymEnv + +from baselines import deepq + +import datetime + + + +def callback(lcl, glb): + # stop training if reward exceeds 199 + total = sum(lcl['episode_rewards'][-101:-1]) / 100 + totalt = lcl['t'] + #print("totalt") + #print(totalt) + is_solved = totalt > 2000 and total >= 10 + return is_solved + + +def main(): + + env = KukaCamGymEnv(renders=True) + model = deepq.models.cnn_to_mlp( + convs=[(32, 8, 4), (64, 4, 2), (64, 3, 1)], + hiddens=[256], + dueling=False + ) + act = deepq.learn( + env, + q_func=model, + lr=1e-3, + max_timesteps=10000000, + buffer_size=50000, + exploration_fraction=0.1, + exploration_final_eps=0.02, + print_freq=10, + callback=callback + ) + print("Saving model to kuka_cam_model.pkl") + act.save("kuka_cam_model.pkl") + + +if __name__ == '__main__': + main() diff --git a/examples/pybullet/gym/train_kuka_grasping.py b/examples/pybullet/gym/train_kuka_grasping.py new file mode 100644 index 000000000..10bb5c1ee --- /dev/null +++ b/examples/pybullet/gym/train_kuka_grasping.py @@ -0,0 +1,40 @@ +import gym +from envs.bullet.kukaGymEnv import KukaGymEnv + +from baselines import deepq + +import datetime + + + +def callback(lcl, glb): + # stop training if reward exceeds 199 + total = sum(lcl['episode_rewards'][-101:-1]) / 100 + totalt = lcl['t'] + #print("totalt") + #print(totalt) + is_solved = totalt > 2000 and total >= 10 + return is_solved + + +def main(): + + env = KukaGymEnv(renders=False) + model = deepq.models.mlp([64]) + act = deepq.learn( + env, + q_func=model, + lr=1e-3, + max_timesteps=10000000, + buffer_size=50000, + exploration_fraction=0.1, + exploration_final_eps=0.02, + print_freq=10, + callback=callback + ) + print("Saving model to kuka_model.pkl") + act.save("kuka_model.pkl") + + +if __name__ == '__main__': + main() diff --git a/examples/pybullet/gym/train_pybullet_cartpole.py b/examples/pybullet/gym/train_pybullet_cartpole.py new file mode 100644 index 000000000..4b7f4839e --- /dev/null +++ b/examples/pybullet/gym/train_pybullet_cartpole.py @@ -0,0 +1,33 @@ +import gym +from envs.bullet.cartpole_bullet import CartPoleBulletEnv + +from baselines import deepq + + +def callback(lcl, glb): + # stop training if reward exceeds 199 + is_solved = lcl['t'] > 100 and sum(lcl['episode_rewards'][-101:-1]) / 100 >= 199 + return is_solved + + +def main(): + + env = CartPoleBulletEnv(renders=False) + model = deepq.models.mlp([64]) + act = deepq.learn( + env, + q_func=model, + lr=1e-3, + max_timesteps=100000, + buffer_size=50000, + exploration_fraction=0.1, + exploration_final_eps=0.02, + print_freq=10, + callback=callback + ) + print("Saving model to cartpole_model.pkl") + act.save("cartpole_model.pkl") + + +if __name__ == '__main__': + main() diff --git a/examples/pybullet/gym/train_pybullet_racecar.py b/examples/pybullet/gym/train_pybullet_racecar.py new file mode 100644 index 000000000..face83e11 --- /dev/null +++ b/examples/pybullet/gym/train_pybullet_racecar.py @@ -0,0 +1,38 @@ +import gym +from envs.bullet.racecarGymEnv import RacecarGymEnv + +from baselines import deepq + +import datetime + + + +def callback(lcl, glb): + # stop training if reward exceeds 199 + total = sum(lcl['episode_rewards'][-101:-1]) / 100 + totalt = lcl['t'] + is_solved = totalt > 2000 and total >= -50 + return is_solved + + +def main(): + + env = RacecarGymEnv(renders=False) + model = deepq.models.mlp([64]) + act = deepq.learn( + env, + q_func=model, + lr=1e-3, + max_timesteps=10000, + buffer_size=50000, + exploration_fraction=0.1, + exploration_final_eps=0.02, + print_freq=10, + callback=callback + ) + print("Saving model to racecar_model.pkl") + act.save("racecar_model.pkl") + + +if __name__ == '__main__': + main() diff --git a/examples/pybullet/gym/train_pybullet_zed_racecar.py b/examples/pybullet/gym/train_pybullet_zed_racecar.py new file mode 100644 index 000000000..893824201 --- /dev/null +++ b/examples/pybullet/gym/train_pybullet_zed_racecar.py @@ -0,0 +1,41 @@ +import gym +from envs.bullet.racecarZEDGymEnv import RacecarZEDGymEnv + +from baselines import deepq + +import datetime + + + +def callback(lcl, glb): + # stop training if reward exceeds 199 + total = sum(lcl['episode_rewards'][-101:-1]) / 100 + totalt = lcl['t'] + is_solved = totalt > 2000 and total >= -50 + return is_solved + +def main(): + + env = RacecarZEDGymEnv(renders=False) + model = deepq.models.cnn_to_mlp( + convs=[(32, 8, 4), (64, 4, 2), (64, 3, 1)], + hiddens=[256], + dueling=False + ) + act = deepq.learn( + env, + q_func=model, + lr=1e-3, + max_timesteps=10000, + buffer_size=50000, + exploration_fraction=0.1, + exploration_final_eps=0.02, + print_freq=10, + callback=callback + ) + print("Saving model to racecar_zed_model.pkl") + act.save("racecar_zed_model.pkl") + + +if __name__ == '__main__': + main() diff --git a/examples/pybullet/premake4.lua b/examples/pybullet/premake4.lua index 7892d3da2..20b41a49f 100644 --- a/examples/pybullet/premake4.lua +++ b/examples/pybullet/premake4.lua @@ -106,6 +106,7 @@ if not _OPTIONS["no-enet"] then "../../examples/SharedMemory/PhysicsServer.cpp", "../../examples/SharedMemory/PhysicsServer.h", "../../examples/SharedMemory/PhysicsServerExample.cpp", + "../../examples/SharedMemory/PhysicsServerExampleBullet2.cpp", "../../examples/SharedMemory/SharedMemoryInProcessPhysicsC_API.cpp", "../../examples/SharedMemory/PhysicsServerSharedMemory.cpp", "../../examples/SharedMemory/PhysicsServerSharedMemory.h", diff --git a/examples/pybullet/pybullet.c b/examples/pybullet/pybullet.c index 16d4ca70a..6f791de14 100644 --- a/examples/pybullet/pybullet.c +++ b/examples/pybullet/pybullet.c @@ -84,6 +84,24 @@ static double pybullet_internalGetFloatFromSequence(PyObject* seq, int index) return v; } +static int pybullet_internalGetIntFromSequence(PyObject* seq, int index) +{ + int v = 0; + PyObject* item; + + if (PyList_Check(seq)) + { + item = PyList_GET_ITEM(seq, index); + v = PyLong_AsLong(item); + } + else + { + item = PyTuple_GET_ITEM(seq, index); + v = PyLong_AsLong(item); + } + return v; +} + // internal function to set a float matrix[16] // used to initialize camera position with // a view and projection matrix in renderImage() @@ -197,6 +215,45 @@ static int pybullet_internalSetVector4d(PyObject* obVec, double vector[4]) return 0; } + +static int pybullet_internalGetVector3FromSequence(PyObject* seq, int index, double vec[3]) +{ + int v = 0; + PyObject* item; + + if (PyList_Check(seq)) + { + item = PyList_GET_ITEM(seq, index); + pybullet_internalSetVectord(item,vec); + } + else + { + item = PyTuple_GET_ITEM(seq, index); + pybullet_internalSetVectord(item,vec); + } + return v; +} + +static int pybullet_internalGetVector4FromSequence(PyObject* seq, int index, double vec[4]) +{ + int v = 0; + PyObject* item; + + if (PyList_Check(seq)) + { + item = PyList_GET_ITEM(seq, index); + pybullet_internalSetVector4d(item,vec); + } + else + { + item = PyTuple_GET_ITEM(seq, index); + pybullet_internalSetVector4d(item,vec); + } + return v; +} + + + // Step through one timestep of the simulation static PyObject* pybullet_stepSimulation(PyObject* self, PyObject* args, PyObject* keywds) { @@ -237,6 +294,7 @@ static PyObject* pybullet_connectPhysicsServer(PyObject* self, PyObject* args, P int method = eCONNECT_GUI; int i; char* options=""; + b3PhysicsClientHandle sm = 0; if (sNumPhysicsClients >= MAX_PHYSICS_CLIENTS) @@ -280,10 +338,10 @@ static PyObject* pybullet_connectPhysicsServer(PyObject* self, PyObject* args, P int i; for (i = 0; i < MAX_PHYSICS_CLIENTS; i++) { - if (sPhysicsClientsGUI[i] == eCONNECT_GUI) + if ((sPhysicsClientsGUI[i] == eCONNECT_GUI) || (sPhysicsClientsGUI[i] == eCONNECT_GUI_SERVER)) { PyErr_SetString(SpamError, - "Only one local in-process GUI connection allowed. Use DIRECT connection mode or start a separate GUI physics server (ExampleBrowser, App_SharedMemoryPhysics_GUI, App_SharedMemoryPhysics_VR) and connect over SHARED_MEMORY, UDP or TCP instead."); + "Only one local in-process GUI/GUI_SERVER connection allowed. Use DIRECT connection mode or start a separate GUI physics server (ExampleBrowser, App_SharedMemoryPhysics_GUI, App_SharedMemoryPhysics_VR) and connect over SHARED_MEMORY, UDP or TCP instead."); return NULL; } } @@ -300,6 +358,18 @@ static PyObject* pybullet_connectPhysicsServer(PyObject* self, PyObject* args, P sm = b3CreateInProcessPhysicsServerAndConnectMainThread(argc, argv); #else sm = b3CreateInProcessPhysicsServerAndConnect(argc, argv); +#endif + break; + } + case eCONNECT_GUI_SERVER: + { + int argc = 2; + char* argv[2] = {"unused",options}; + +#ifdef __APPLE__ + sm = b3CreateInProcessPhysicsServerAndConnectMainThreadSharedMemory(argc, argv); +#else + sm = b3CreateInProcessPhysicsServerAndConnectSharedMemory(argc, argv); #endif break; } @@ -620,11 +690,20 @@ static PyObject* pybullet_changeDynamicsInfo(PyObject* self, PyObject* args, PyO int linkIndex = -2; double mass = -1; double lateralFriction = -1; + double spinningFriction= -1; + double rollingFriction = -1; + double restitution = -1; + double linearDamping = -1; + double angularDamping = -1; + double contactStiffness = -1; + double contactDamping = -1; + int frictionAnchor = -1; + b3PhysicsClientHandle sm = 0; int physicsClientId = 0; - static char* kwlist[] = {"bodyUniqueId", "linkIndex", "mass", "lateralFriction", "physicsClientId", NULL}; - if (!PyArg_ParseTupleAndKeywords(args, keywds, "ii|ddi", kwlist, &bodyUniqueId, &linkIndex,&mass, &lateralFriction, &physicsClientId)) + static char* kwlist[] = {"bodyUniqueId", "linkIndex", "mass", "lateralFriction", "spinningFriction", "rollingFriction","restitution", "linearDamping", "angularDamping", "contactStiffness", "contactDamping", "frictionAnchor", "physicsClientId", NULL}; + if (!PyArg_ParseTupleAndKeywords(args, keywds, "ii|dddddddddii", kwlist, &bodyUniqueId, &linkIndex,&mass, &lateralFriction, &spinningFriction, &rollingFriction, &restitution,&linearDamping, &angularDamping, &contactStiffness, &contactDamping, &frictionAnchor, &physicsClientId)) { return NULL; } @@ -644,12 +723,40 @@ static PyObject* pybullet_changeDynamicsInfo(PyObject* self, PyObject* args, PyO { b3ChangeDynamicsInfoSetMass(command, bodyUniqueId, linkIndex, mass); } - if (lateralFriction >= 0) { b3ChangeDynamicsInfoSetLateralFriction(command, bodyUniqueId, linkIndex, lateralFriction); } - + if (spinningFriction>=0) + { + b3ChangeDynamicsInfoSetSpinningFriction(command, bodyUniqueId, linkIndex,spinningFriction); + } + if (rollingFriction>=0) + { + b3ChangeDynamicsInfoSetRollingFriction(command, bodyUniqueId, linkIndex,rollingFriction); + } + + if (linearDamping>=0) + { + b3ChangeDynamicsInfoSetLinearDamping(command,bodyUniqueId, linearDamping); + } + if (angularDamping>=0) + { + b3ChangeDynamicsInfoSetAngularDamping(command,bodyUniqueId,angularDamping); + } + + if (restitution>=0) + { + b3ChangeDynamicsInfoSetRestitution(command, bodyUniqueId, linkIndex, restitution); + } + if (contactStiffness>=0 && contactDamping >=0) + { + b3ChangeDynamicsInfoSetContactStiffnessAndDamping(command,bodyUniqueId,linkIndex,contactStiffness, contactDamping); + } + if (frictionAnchor>=0) + { + b3ChangeDynamicsInfoSetFrictionAnchor(command,bodyUniqueId,linkIndex, frictionAnchor); + } statusHandle = b3SubmitClientCommandAndWaitStatus(sm, command); } @@ -680,7 +787,7 @@ static PyObject* pybullet_getDynamicsInfo(PyObject* self, PyObject* args, PyObje int status_type = 0; b3SharedMemoryCommandHandle cmd_handle; b3SharedMemoryStatusHandle status_handle; - + struct b3DynamicsInfo info; if (bodyUniqueId < 0) { PyErr_SetString(SpamError, "getDynamicsInfo failed; invalid bodyUniqueId"); @@ -699,7 +806,7 @@ static PyObject* pybullet_getDynamicsInfo(PyObject* self, PyObject* args, PyObje PyErr_SetString(SpamError, "getDynamicsInfo failed; invalid return status"); return NULL; } - struct b3DynamicsInfo info; + if (b3GetDynamicsInfo(status_handle, &info)) { PyObject* pyDynamicsInfo = PyTuple_New(2); @@ -725,14 +832,17 @@ static PyObject* pybullet_setPhysicsEngineParameter(PyObject* self, PyObject* ar double contactBreakingThreshold = -1; int maxNumCmdPer1ms = -2; int enableFileCaching = -1; - + double restitutionVelocityThreshold=-1; + double erp = -1; + double contactERP = -1; + double frictionERP = -1; b3PhysicsClientHandle sm = 0; int physicsClientId = 0; - static char* kwlist[] = {"fixedTimeStep", "numSolverIterations", "useSplitImpulse", "splitImpulsePenetrationThreshold", "numSubSteps", "collisionFilterMode", "contactBreakingThreshold", "maxNumCmdPer1ms", "enableFileCaching","physicsClientId", NULL}; + static char* kwlist[] = {"fixedTimeStep", "numSolverIterations", "useSplitImpulse", "splitImpulsePenetrationThreshold", "numSubSteps", "collisionFilterMode", "contactBreakingThreshold", "maxNumCmdPer1ms", "enableFileCaching","restitutionVelocityThreshold", "erp", "contactERP", "frictionERP", "physicsClientId", NULL}; - if (!PyArg_ParseTupleAndKeywords(args, keywds, "|diidiidiii", kwlist, &fixedTimeStep, &numSolverIterations, &useSplitImpulse, &splitImpulsePenetrationThreshold, &numSubSteps, - &collisionFilterMode, &contactBreakingThreshold, &maxNumCmdPer1ms, &enableFileCaching, &physicsClientId)) + if (!PyArg_ParseTupleAndKeywords(args, keywds, "|diidiidiiddddi", kwlist, &fixedTimeStep, &numSolverIterations, &useSplitImpulse, &splitImpulsePenetrationThreshold, &numSubSteps, + &collisionFilterMode, &contactBreakingThreshold, &maxNumCmdPer1ms, &enableFileCaching, &restitutionVelocityThreshold, &erp, &contactERP, &frictionERP, &physicsClientId)) { return NULL; } @@ -783,11 +893,27 @@ static PyObject* pybullet_setPhysicsEngineParameter(PyObject* self, PyObject* ar b3PhysicsParamSetMaxNumCommandsPer1ms(command, maxNumCmdPer1ms); } + if (restitutionVelocityThreshold>=0) + { + b3PhysicsParamSetRestitutionVelocityThreshold(command, restitutionVelocityThreshold); + } if (enableFileCaching>=0) { b3PhysicsParamSetEnableFileCaching(command, enableFileCaching); } + if (erp>=0) + { + b3PhysicsParamSetDefaultNonContactERP(command,erp); + } + if (contactERP>=0) + { + b3PhysicsParamSetDefaultContactERP(command,contactERP); + } + if (frictionERP >=0) + { + b3PhysicsParamSetDefaultFrictionERP(command,frictionERP); + } //ret = b3PhysicsParamSetRealTimeSimulation(command, enableRealTimeSimulation); statusHandle = b3SubmitClientCommandAndWaitStatus(sm, command); @@ -816,14 +942,14 @@ static PyObject* pybullet_loadURDF(PyObject* self, PyObject* args, PyObject* key int physicsClientId = 0; int flags = 0; - static char* kwlist[] = {"fileName", "basePosition", "baseOrientation", "useMaximalCoordinates", "useFixedBase", "flags","physicsClientId", NULL}; + static char* kwlist[] = {"fileName", "basePosition", "baseOrientation", "useMaximalCoordinates", "useFixedBase", "flags","globalScaling", "physicsClientId", NULL}; static char* kwlistBackwardCompatible4[] = {"fileName", "startPosX", "startPosY", "startPosZ", NULL}; static char* kwlistBackwardCompatible8[] = {"fileName", "startPosX", "startPosY", "startPosZ", "startOrnX", "startOrnY", "startOrnZ", "startOrnW", NULL}; - int bodyIndex = -1; + int bodyUniqueId= -1; const char* urdfFileName = ""; - + double globalScaling = -1; double startPosX = 0.0; double startPosY = 0.0; double startPosZ = 0.0; @@ -863,7 +989,7 @@ static PyObject* pybullet_loadURDF(PyObject* self, PyObject* args, PyObject* key double basePos[3]; double baseOrn[4]; - if (!PyArg_ParseTupleAndKeywords(args, keywds, "s|OOiiii", kwlist, &urdfFileName, &basePosObj, &baseOrnObj, &useMaximalCoordinates, &useFixedBase, &flags, &physicsClientId)) + if (!PyArg_ParseTupleAndKeywords(args, keywds, "s|OOiiidi", kwlist, &urdfFileName, &basePosObj, &baseOrnObj, &useMaximalCoordinates, &useFixedBase, &flags, &globalScaling, &physicsClientId)) { return NULL; } @@ -921,13 +1047,16 @@ static PyObject* pybullet_loadURDF(PyObject* self, PyObject* args, PyObject* key startOrnZ, startOrnW); if (useMaximalCoordinates>=0) { - b3LoadUrdfCommandSetUseMultiBody(command, useMaximalCoordinates); + b3LoadUrdfCommandSetUseMultiBody(command, useMaximalCoordinates==0); } if (useFixedBase) { b3LoadUrdfCommandSetUseFixedBase(command, 1); } - + if (globalScaling>0) + { + b3LoadUrdfCommandSetGlobalScaling(command,globalScaling); + } statusHandle = b3SubmitClientCommandAndWaitStatus(sm, command); statusType = b3GetStatusType(statusHandle); if (statusType != CMD_URDF_LOADING_COMPLETED) @@ -935,7 +1064,7 @@ static PyObject* pybullet_loadURDF(PyObject* self, PyObject* args, PyObject* key PyErr_SetString(SpamError, "Cannot load URDF file."); return NULL; } - bodyIndex = b3GetStatusBodyIndex(statusHandle); + bodyUniqueId = b3GetStatusBodyIndex(statusHandle); } else { @@ -943,7 +1072,7 @@ static PyObject* pybullet_loadURDF(PyObject* self, PyObject* args, PyObject* key "Empty filename, method expects 1, 4 or 8 arguments."); return NULL; } - return PyLong_FromLong(bodyIndex); + return PyLong_FromLong(bodyUniqueId); } static PyObject* pybullet_loadSDF(PyObject* self, PyObject* args, PyObject* keywds) @@ -952,15 +1081,17 @@ static PyObject* pybullet_loadSDF(PyObject* self, PyObject* args, PyObject* keyw int numBodies = 0; int i; int bodyIndicesOut[MAX_SDF_BODIES]; + int useMaximalCoordinates = -1; PyObject* pylist = 0; b3SharedMemoryStatusHandle statusHandle; int statusType; b3SharedMemoryCommandHandle commandHandle; b3PhysicsClientHandle sm = 0; + double globalScaling = -1; int physicsClientId = 0; - static char* kwlist[] = {"sdfFileName", "physicsClientId", NULL}; - if (!PyArg_ParseTupleAndKeywords(args, keywds, "s|i", kwlist, &sdfFileName, &physicsClientId)) + static char* kwlist[] = {"sdfFileName", "useMaximalCoordinates", "globalScaling", "physicsClientId", NULL}; + if (!PyArg_ParseTupleAndKeywords(args, keywds, "s|idi", kwlist, &sdfFileName, &useMaximalCoordinates, &globalScaling, &physicsClientId)) { return NULL; } @@ -972,6 +1103,14 @@ static PyObject* pybullet_loadSDF(PyObject* self, PyObject* args, PyObject* keyw } commandHandle = b3LoadSdfCommandInit(sm, sdfFileName); + if (useMaximalCoordinates>0) + { + b3LoadSdfCommandSetUseMultiBody(commandHandle,0); + } + if (globalScaling > 0) + { + b3LoadSdfCommandSetUseGlobalScaling(commandHandle,globalScaling); + } statusHandle = b3SubmitClientCommandAndWaitStatus(sm, commandHandle); statusType = b3GetStatusType(statusHandle); if (statusType != CMD_SDF_LOADING_COMPLETED) @@ -1030,7 +1169,7 @@ static PyObject* pybullet_resetSimulation(PyObject* self, PyObject* args, PyObje static PyObject* pybullet_setJointMotorControl(PyObject* self, PyObject* args) { int size; - int bodyIndex, jointIndex, controlMode; + int bodyUniqueId, jointIndex, controlMode; double targetPosition = 0.0; double targetVelocity = 0.0; @@ -1053,7 +1192,7 @@ static PyObject* pybullet_setJointMotorControl(PyObject* self, PyObject* args) { double targetValue = 0.0; // see switch statement below for convertsions dependent on controlMode - if (!PyArg_ParseTuple(args, "iiid", &bodyIndex, &jointIndex, &controlMode, + if (!PyArg_ParseTuple(args, "iiid", &bodyUniqueId, &jointIndex, &controlMode, &targetValue)) { PyErr_SetString(SpamError, "Error parsing arguments"); @@ -1087,7 +1226,7 @@ static PyObject* pybullet_setJointMotorControl(PyObject* self, PyObject* args) { double targetValue = 0.0; // See switch statement for conversions - if (!PyArg_ParseTuple(args, "iiidd", &bodyIndex, &jointIndex, &controlMode, + if (!PyArg_ParseTuple(args, "iiidd", &bodyUniqueId, &jointIndex, &controlMode, &targetValue, &maxForce)) { PyErr_SetString(SpamError, "Error parsing arguments"); @@ -1122,7 +1261,7 @@ static PyObject* pybullet_setJointMotorControl(PyObject* self, PyObject* args) { double gain = 0.0; double targetValue = 0.0; - if (!PyArg_ParseTuple(args, "iiiddd", &bodyIndex, &jointIndex, &controlMode, + if (!PyArg_ParseTuple(args, "iiiddd", &bodyUniqueId, &jointIndex, &controlMode, &targetValue, &maxForce, &gain)) { PyErr_SetString(SpamError, "Error parsing arguments"); @@ -1158,7 +1297,7 @@ static PyObject* pybullet_setJointMotorControl(PyObject* self, PyObject* args) if (size == 8) { // only applicable for CONTROL_MODE_POSITION_VELOCITY_PD. - if (!PyArg_ParseTuple(args, "iiiddddd", &bodyIndex, &jointIndex, + if (!PyArg_ParseTuple(args, "iiiddddd", &bodyUniqueId, &jointIndex, &controlMode, &targetPosition, &targetVelocity, &maxForce, &kp, &kd)) { @@ -1175,7 +1314,7 @@ static PyObject* pybullet_setJointMotorControl(PyObject* self, PyObject* args) b3SharedMemoryStatusHandle statusHandle; struct b3JointInfo info; - numJoints = b3GetNumJoints(sm, bodyIndex); + numJoints = b3GetNumJoints(sm, bodyUniqueId); if ((jointIndex >= numJoints) || (jointIndex < 0)) { PyErr_SetString(SpamError, "Joint index out-of-range."); @@ -1190,9 +1329,9 @@ static PyObject* pybullet_setJointMotorControl(PyObject* self, PyObject* args) return NULL; } - commandHandle = b3JointControlCommandInit2(sm, bodyIndex, controlMode); + commandHandle = b3JointControlCommandInit2(sm, bodyUniqueId, controlMode); - b3GetJointInfo(sm, bodyIndex, jointIndex, &info); + b3GetJointInfo(sm, bodyUniqueId, jointIndex, &info); switch (controlMode) { @@ -1239,7 +1378,7 @@ static PyObject* pybullet_setJointMotorControl(PyObject* self, PyObject* args) static PyObject* pybullet_setJointMotorControlArray(PyObject* self, PyObject* args, PyObject* keywds) { - int bodyIndex, controlMode; + int bodyUniqueId, controlMode; PyObject* jointIndicesObj = 0; PyObject* targetPositionsObj = 0; PyObject* targetVelocitiesObj = 0; @@ -1250,11 +1389,17 @@ static PyObject* pybullet_setJointMotorControlArray(PyObject* self, PyObject* ar b3PhysicsClientHandle sm = 0; int physicsClientId = 0; - static char* kwlist[] = {"bodyIndex", "jointIndices", "controlMode", "targetPositions", "targetVelocities", "forces", "positionGains", "velocityGains", "physicsClientId", NULL}; - if (!PyArg_ParseTupleAndKeywords(args, keywds, "iOi|OOOOOi", kwlist, &bodyIndex, &jointIndicesObj, &controlMode, + static char* kwlist[] = {"bodyUniqueId", "jointIndices", "controlMode", "targetPositions", "targetVelocities", "forces", "positionGains", "velocityGains", "physicsClientId", NULL}; + if (!PyArg_ParseTupleAndKeywords(args, keywds, "iOi|OOOOOi", kwlist, &bodyUniqueId, &jointIndicesObj, &controlMode, &targetPositionsObj, &targetVelocitiesObj, &forcesObj, &kpsObj, &kdsObj, &physicsClientId)) { - return NULL; + static char* kwlist2[] = {"bodyIndex", "jointIndices", "controlMode", "targetPositions", "targetVelocities", "forces", "positionGains", "velocityGains", "physicsClientId", NULL}; + PyErr_Clear(); + if (!PyArg_ParseTupleAndKeywords(args, keywds, "iOi|OOOOOi", kwlist2, &bodyUniqueId, &jointIndicesObj, &controlMode, + &targetPositionsObj, &targetVelocitiesObj, &forcesObj, &kpsObj, &kdsObj, &physicsClientId)) + { + return NULL; + } } sm = getPhysicsClient(physicsClientId); if (sm == 0) @@ -1278,7 +1423,7 @@ static PyObject* pybullet_setJointMotorControlArray(PyObject* self, PyObject* ar PyObject* kpsSeq = 0; PyObject* kdsSeq = 0; - numJoints = b3GetNumJoints(sm, bodyIndex); + numJoints = b3GetNumJoints(sm, bodyUniqueId); if ((controlMode != CONTROL_MODE_VELOCITY) && (controlMode != CONTROL_MODE_TORQUE) && @@ -1308,7 +1453,7 @@ static PyObject* pybullet_setJointMotorControlArray(PyObject* self, PyObject* ar int i; for (i = 0; i < numControlledDofs; i++) { - int jointIndex = pybullet_internalGetFloatFromSequence(jointIndicesSeq, i); + int jointIndex = pybullet_internalGetIntFromSequence(jointIndicesSeq, i); if ((jointIndex >= numJoints) || (jointIndex < 0)) { Py_DECREF(jointIndicesSeq); @@ -1426,39 +1571,45 @@ static PyObject* pybullet_setJointMotorControlArray(PyObject* self, PyObject* ar kdsSeq = PySequence_Fast(kdsObj, "expected a sequence of kds"); } - commandHandle = b3JointControlCommandInit2(sm, bodyIndex, controlMode); + commandHandle = b3JointControlCommandInit2(sm, bodyUniqueId, controlMode); for (i=0;i bodyUniqueId, don't need to update this function: people have to migrate to bodyUniqueId + static char* kwlist2[] = {"bodyIndex", "jointIndex", "controlMode", "targetPosition", "targetVelocity", "force", "positionGain", "velocityGain", "physicsClientId", NULL}; + PyErr_Clear(); + if (!PyArg_ParseTupleAndKeywords(args, keywds, "iii|dddddi", kwlist2, &bodyUniqueId, &jointIndex, &controlMode, + &targetPosition, &targetVelocity, &force, &kp, &kd, &physicsClientId)) + { + return NULL; + } } sm = getPhysicsClient(physicsClientId); if (sm == 0) @@ -1536,7 +1694,7 @@ static PyObject* pybullet_setJointMotorControl2(PyObject* self, PyObject* args, b3SharedMemoryStatusHandle statusHandle; struct b3JointInfo info; - numJoints = b3GetNumJoints(sm, bodyIndex); + numJoints = b3GetNumJoints(sm, bodyUniqueId); if ((jointIndex >= numJoints) || (jointIndex < 0)) { PyErr_SetString(SpamError, "Joint index out-of-range."); @@ -1551,9 +1709,9 @@ static PyObject* pybullet_setJointMotorControl2(PyObject* self, PyObject* args, return NULL; } - commandHandle = b3JointControlCommandInit2(sm, bodyIndex, controlMode); + commandHandle = b3JointControlCommandInit2(sm, bodyUniqueId, controlMode); - b3GetJointInfo(sm, bodyIndex, jointIndex, &info); + b3GetJointInfo(sm, bodyUniqueId, jointIndex, &info); switch (controlMode) { @@ -1770,7 +1928,7 @@ pybullet_setDefaultContactERP(PyObject* self, PyObject* args, PyObject* keywds) } static int pybullet_internalGetBaseVelocity( - int bodyIndex, double baseLinearVelocity[3], double baseAngularVelocity[3], b3PhysicsClientHandle sm) + int bodyUniqueId, double baseLinearVelocity[3], double baseAngularVelocity[3], b3PhysicsClientHandle sm) { baseLinearVelocity[0] = 0.; baseLinearVelocity[1] = 0.; @@ -1789,7 +1947,7 @@ static int pybullet_internalGetBaseVelocity( { { b3SharedMemoryCommandHandle cmd_handle = - b3RequestActualStateCommandInit(sm, bodyIndex); + b3RequestActualStateCommandInit(sm, bodyUniqueId); b3SharedMemoryStatusHandle status_handle = b3SubmitClientCommandAndWaitStatus(sm, cmd_handle); @@ -1831,7 +1989,7 @@ static int pybullet_internalGetBaseVelocity( // Internal function used to get the base position and orientation // Orientation is returned in quaternions static int pybullet_internalGetBasePositionAndOrientation( - int bodyIndex, double basePosition[3], double baseOrientation[4], b3PhysicsClientHandle sm) + int bodyUniqueId, double basePosition[3], double baseOrientation[4], b3PhysicsClientHandle sm) { basePosition[0] = 0.; basePosition[1] = 0.; @@ -1851,7 +2009,7 @@ static int pybullet_internalGetBasePositionAndOrientation( { { b3SharedMemoryCommandHandle cmd_handle = - b3RequestActualStateCommandInit(sm, bodyIndex); + b3RequestActualStateCommandInit(sm, bodyUniqueId); b3SharedMemoryStatusHandle status_handle = b3SubmitClientCommandAndWaitStatus(sm, cmd_handle); @@ -1891,6 +2049,89 @@ static int pybullet_internalGetBasePositionAndOrientation( return 1; } +static PyObject* pybullet_getAABB(PyObject* self, PyObject* args, PyObject* keywds) +{ + + int bodyUniqueId = -1; + int linkIndex = -1; + + b3PhysicsClientHandle sm = 0; + int physicsClientId = 0; + static char* kwlist[] = {"bodyUniqueId", "linkIndex", "physicsClientId", NULL}; + if (!PyArg_ParseTupleAndKeywords(args, keywds, "i|ii", kwlist, &bodyUniqueId, &linkIndex, &physicsClientId)) + { + return NULL; + } + sm = getPhysicsClient(physicsClientId); + if (sm == 0) + { + PyErr_SetString(SpamError, "Not connected to physics server."); + return NULL; + } + + { + int status_type = 0; + b3SharedMemoryCommandHandle cmd_handle; + b3SharedMemoryStatusHandle status_handle; + + if (bodyUniqueId < 0) + { + PyErr_SetString(SpamError, "getAABB failed; invalid bodyUniqueId"); + return NULL; + } + + if (linkIndex < -1) + { + PyErr_SetString(SpamError, "getAABB failed; invalid linkIndex"); + return NULL; + } + + cmd_handle = + b3RequestCollisionInfoCommandInit(sm, bodyUniqueId); + status_handle = + b3SubmitClientCommandAndWaitStatus(sm, cmd_handle); + + status_type = b3GetStatusType(status_handle); + if (status_type != CMD_REQUEST_COLLISION_INFO_COMPLETED) + { + PyErr_SetString(SpamError, "getAABB failed."); + return NULL; + } + + { + PyObject* pyListAabb=0; + PyObject* pyListAabbMin=0; + PyObject* pyListAabbMax=0; + double aabbMin[3]; + double aabbMax[3]; + int i=0; + if (b3GetStatusAABB(status_handle, linkIndex, aabbMin, aabbMax)) + { + pyListAabb = PyTuple_New(2); + pyListAabbMin = PyTuple_New(3); + pyListAabbMax = PyTuple_New(3); + + for (i=0;i<3;i++) + { + PyTuple_SetItem(pyListAabbMin, i, PyFloat_FromDouble(aabbMin[i])); + PyTuple_SetItem(pyListAabbMax, i, PyFloat_FromDouble(aabbMax[i])); + } + + PyTuple_SetItem(pyListAabb, 0, pyListAabbMin); + PyTuple_SetItem(pyListAabb, 1, pyListAabbMax); + + //PyFloat_FromDouble(basePosition[i]); + + return pyListAabb; + } + } + + } + + PyErr_SetString(SpamError, "getAABB failed."); + return NULL; +} + // Get the positions (x,y,z) and orientation (x,y,z,w) in quaternion // values for the base link of your object // Object is retrieved based on body index, which is the order @@ -2284,6 +2525,18 @@ static PyObject* pybullet_getNumConstraints(PyObject* self, PyObject* args, PyOb #endif } +// Return the number of joints in an object based on +// body index; body index is based on order of sequence +// the object is loaded into simulation +static PyObject* pybullet_getAPIVersion(PyObject* self, PyObject* args, PyObject* keywds) +{ +#if PY_MAJOR_VERSION >= 3 + return PyLong_FromLong(SHARED_MEMORY_MAGIC_NUMBER); +#else + return PyInt_FromLong(SHARED_MEMORY_MAGIC_NUMBER); +#endif +} + // Return the number of joints in an object based on // body index; body index is based on order of sequence // the object is loaded into simulation @@ -2370,7 +2623,7 @@ static PyObject* pybullet_resetBaseVelocity(PyObject* self, PyObject* args, PyOb static char* kwlist[] = {"objectUniqueId", "linearVelocity", "angularVelocity", "physicsClientId", NULL}; { - int bodyIndex = 0; + int bodyUniqueId = 0; PyObject* linVelObj = 0; PyObject* angVelObj = 0; double linVel[3] = {0, 0, 0}; @@ -2378,7 +2631,7 @@ static PyObject* pybullet_resetBaseVelocity(PyObject* self, PyObject* args, PyOb int physicsClientId = 0; b3PhysicsClientHandle sm = 0; - if (!PyArg_ParseTupleAndKeywords(args, keywds, "i|OOi", kwlist, &bodyIndex, &linVelObj, &angVelObj, &physicsClientId)) + if (!PyArg_ParseTupleAndKeywords(args, keywds, "i|OOi", kwlist, &bodyUniqueId, &linVelObj, &angVelObj, &physicsClientId)) { return NULL; } @@ -2395,7 +2648,7 @@ static PyObject* pybullet_resetBaseVelocity(PyObject* self, PyObject* args, PyOb b3SharedMemoryCommandHandle commandHandle; b3SharedMemoryStatusHandle statusHandle; - commandHandle = b3CreatePoseCommandInit(sm, bodyIndex); + commandHandle = b3CreatePoseCommandInit(sm, bodyUniqueId); if (linVelObj) { @@ -2510,10 +2763,10 @@ static PyObject* pybullet_resetBasePositionAndOrientation(PyObject* self, return Py_None; } -// Get the a single joint info for a specific bodyIndex +// Get the a single joint info for a specific bodyUniqueId // // Args: -// bodyIndex - integer indicating body in simulation +// bodyUniqueId - integer indicating body in simulation // jointIndex - integer indicating joint for a specific body // // Joint information includes: @@ -2549,7 +2802,7 @@ static PyObject* pybullet_getJointInfo(PyObject* self, PyObject* args, PyObject* { { - // printf("body index = %d, joint index =%d\n", bodyIndex, jointIndex); + // printf("body index = %d, joint index =%d\n", bodyUniqueId, jointIndex); pyListJointInfo = PyTuple_New(jointInfoSize); @@ -2601,10 +2854,10 @@ static PyObject* pybullet_getJointInfo(PyObject* self, PyObject* args, PyObject* return Py_None; } -// Returns the state of a specific joint in a given bodyIndex +// Returns the state of a specific joint in a given bodyUniqueId // // Args: -// bodyIndex - integer indicating body in simulation +// bodyUniqueId - integer indicating body in simulation // jointIndex - integer indicating joint for a specific body // // The state of a joint includes the following: @@ -2649,7 +2902,7 @@ static PyObject* pybullet_getJointState(PyObject* self, PyObject* args, PyObject if (bodyUniqueId < 0) { - PyErr_SetString(SpamError, "getJointState failed; invalid bodyIndex"); + PyErr_SetString(SpamError, "getJointState failed; invalid bodyUniqueId"); return NULL; } if (jointIndex < 0) @@ -2745,7 +2998,7 @@ static PyObject* pybullet_getJointStates(PyObject* self, PyObject* args, PyObjec if (bodyUniqueId < 0) { - PyErr_SetString(SpamError, "getJointState failed; invalid bodyIndex"); + PyErr_SetString(SpamError, "getJointState failed; invalid bodyUniqueId"); return NULL; } numJoints = b3GetNumJoints(sm, bodyUniqueId); @@ -2869,7 +3122,7 @@ static PyObject* pybullet_getLinkState(PyObject* self, PyObject* args, PyObject* if (bodyUniqueId < 0) { - PyErr_SetString(SpamError, "getLinkState failed; invalid bodyIndex"); + PyErr_SetString(SpamError, "getLinkState failed; invalid bodyUniqueId"); return NULL; } if (linkIndex < 0) @@ -3077,13 +3330,18 @@ static PyObject* pybullet_addUserDebugText(PyObject* self, PyObject* args, PyObj PyObject* textPositionObj = 0; PyObject* textColorRGBObj = 0; + PyObject* textOrientationObj = 0; + double textOrientation[4]; + int parentObjectUniqueId=-1; + int parentLinkIndex=-1; + double textSize = 1.f; double lifeTime = 0.f; int physicsClientId = 0; b3PhysicsClientHandle sm = 0; - static char* kwlist[] = {"text", "textPosition", "textColorRGB", "textSize", "lifeTime", "physicsClientId", NULL}; + static char* kwlist[] = {"text", "textPosition", "textColorRGB", "textSize", "lifeTime", "textOrientation", "parentObjectUniqueId", "parentLinkIndex", "physicsClientId", NULL}; - if (!PyArg_ParseTupleAndKeywords(args, keywds, "sO|Oddi", kwlist, &text, &textPositionObj, &textColorRGBObj, &textSize, &lifeTime, &physicsClientId)) + if (!PyArg_ParseTupleAndKeywords(args, keywds, "sO|OddOiii", kwlist, &text, &textPositionObj, &textColorRGBObj, &textSize, &lifeTime, &textOrientationObj, &parentObjectUniqueId, &parentLinkIndex, &physicsClientId)) { return NULL; } @@ -3113,6 +3371,23 @@ static PyObject* pybullet_addUserDebugText(PyObject* self, PyObject* args, PyObj commandHandle = b3InitUserDebugDrawAddText3D(sm, text, posXYZ, colorRGB, textSize, lifeTime); + if (parentObjectUniqueId>=0) + { + b3UserDebugItemSetParentObject(commandHandle, parentObjectUniqueId,parentLinkIndex); + } + if (textOrientationObj) + { + res = pybullet_internalSetVector4d(textOrientationObj, textOrientation); + if (!res) + { + PyErr_SetString(SpamError, "Error converting textOrientation[4]"); + return NULL; + } else + { + b3UserDebugTextSetOrientation(commandHandle,textOrientation); + } + } + statusHandle = b3SubmitClientCommandAndWaitStatus(sm, commandHandle); statusType = b3GetStatusType(statusHandle); if (statusType == CMD_USER_DEBUG_DRAW_COMPLETED) @@ -3136,6 +3411,8 @@ static PyObject* pybullet_addUserDebugLine(PyObject* self, PyObject* args, PyObj double fromXYZ[3]; double toXYZ[3]; double colorRGB[3] = {1, 1, 1}; + int parentObjectUniqueId=-1; + int parentLinkIndex=-1; PyObject* lineFromObj = 0; PyObject* lineToObj = 0; @@ -3144,9 +3421,9 @@ static PyObject* pybullet_addUserDebugLine(PyObject* self, PyObject* args, PyObj double lifeTime = 0.f; int physicsClientId = 0; b3PhysicsClientHandle sm = 0; - static char* kwlist[] = {"lineFromXYZ", "lineToXYZ", "lineColorRGB", "lineWidth", "lifeTime", "physicsClientId", NULL}; + static char* kwlist[] = {"lineFromXYZ", "lineToXYZ", "lineColorRGB", "lineWidth", "lifeTime", "parentObjectUniqueId", "parentLinkIndex", "physicsClientId", NULL}; - if (!PyArg_ParseTupleAndKeywords(args, keywds, "OO|Oddi", kwlist, &lineFromObj, &lineToObj, &lineColorRGBObj, &lineWidth, &lifeTime, &physicsClientId)) + if (!PyArg_ParseTupleAndKeywords(args, keywds, "OO|Oddiii", kwlist, &lineFromObj, &lineToObj, &lineColorRGBObj, &lineWidth, &lifeTime, &parentObjectUniqueId, &parentLinkIndex, &physicsClientId)) { return NULL; } @@ -3177,6 +3454,11 @@ static PyObject* pybullet_addUserDebugLine(PyObject* self, PyObject* args, PyObj commandHandle = b3InitUserDebugDrawAddLine3D(sm, fromXYZ, toXYZ, colorRGB, lineWidth, lifeTime); + if (parentObjectUniqueId>=0) + { + b3UserDebugItemSetParentObject(commandHandle, parentObjectUniqueId,parentLinkIndex); + } + statusHandle = b3SubmitClientCommandAndWaitStatus(sm, commandHandle); statusType = b3GetStatusType(statusHandle); if (statusType == CMD_USER_DEBUG_DRAW_COMPLETED) @@ -3791,6 +4073,50 @@ static PyObject* pybullet_getKeyboardEvents(PyObject* self, PyObject* args, PyOb return keyEventsObj; } +static PyObject* pybullet_getMouseEvents(PyObject* self, PyObject* args, PyObject* keywds) +{ + b3SharedMemoryCommandHandle commandHandle; + int physicsClientId = 0; + b3PhysicsClientHandle sm = 0; + struct b3MouseEventsData mouseEventsData; + PyObject* mouseEventsObj = 0; + int i = 0; + + static char* kwlist[] = {"physicsClientId", NULL}; + if (!PyArg_ParseTupleAndKeywords(args, keywds, "|i", kwlist, &physicsClientId)) + { + return NULL; + } + + sm = getPhysicsClient(physicsClientId); + if (sm == 0) + { + PyErr_SetString(SpamError, "Not connected to physics server."); + return NULL; + } + + commandHandle = b3RequestMouseEventsCommandInit(sm); + b3SubmitClientCommandAndWaitStatus(sm, commandHandle); + b3GetMouseEventsData(sm, &mouseEventsData); + + mouseEventsObj = PyTuple_New(mouseEventsData.m_numMouseEvents); + + for (i = 0; i < mouseEventsData.m_numMouseEvents; i++) + { + PyObject* mouseEventObj = PyTuple_New(5); + PyTuple_SetItem(mouseEventObj,0, PyInt_FromLong(mouseEventsData.m_mouseEvents[i].m_eventType)); + PyTuple_SetItem(mouseEventObj,1, PyFloat_FromDouble(mouseEventsData.m_mouseEvents[i].m_mousePosX)); + PyTuple_SetItem(mouseEventObj,2, PyFloat_FromDouble(mouseEventsData.m_mouseEvents[i].m_mousePosY)); + PyTuple_SetItem(mouseEventObj,3, PyInt_FromLong(mouseEventsData.m_mouseEvents[i].m_buttonIndex)); + PyTuple_SetItem(mouseEventObj,4, PyInt_FromLong(mouseEventsData.m_mouseEvents[i].m_buttonState)); + PyTuple_SetItem(mouseEventsObj,i,mouseEventObj); + + } + return mouseEventsObj; +} + + + static PyObject* pybullet_getVREvents(PyObject* self, PyObject* args, PyObject* keywds) { b3SharedMemoryCommandHandle commandHandle; @@ -3896,7 +4222,7 @@ static PyObject* pybullet_getDebugVisualizerCamera(PyObject* self, PyObject* arg if (hasCamInfo) { PyObject* item=0; - pyCameraList = PyTuple_New(8); + pyCameraList = PyTuple_New(12); item = PyInt_FromLong(camera.m_width); PyTuple_SetItem(pyCameraList,0,item); item = PyInt_FromLong(camera.m_height); @@ -3940,6 +4266,23 @@ static PyObject* pybullet_getDebugVisualizerCamera(PyObject* self, PyObject* arg PyTuple_SetItem(pyCameraList,6,hor); PyTuple_SetItem(pyCameraList,7,vert); } + item = PyFloat_FromDouble(camera.m_yaw); + PyTuple_SetItem(pyCameraList,8,item); + item = PyFloat_FromDouble(camera.m_pitch); + PyTuple_SetItem(pyCameraList,9,item); + item = PyFloat_FromDouble(camera.m_dist); + PyTuple_SetItem(pyCameraList,10,item); + { + PyObject* item=0; + int i; + PyObject* camTarget = PyTuple_New(3); + for (i=0;i<3;i++) + { + item = PyFloat_FromDouble(camera.m_target[i]); + PyTuple_SetItem(camTarget,i,item); + } + PyTuple_SetItem(pyCameraList,11,camTarget); + } return pyCameraList; } @@ -4177,10 +4520,13 @@ static PyObject* pybullet_changeVisualShape(PyObject* self, PyObject* args, PyOb int statusType; int physicsClientId = 0; PyObject* rgbaColorObj = 0; + PyObject* specularColorObj = 0; + + b3PhysicsClientHandle sm = 0; - static char* kwlist[] = {"objectUniqueId", "linkIndex", "shapeIndex", "textureUniqueId", "rgbaColor", "physicsClientId", NULL}; - if (!PyArg_ParseTupleAndKeywords(args, keywds, "ii|iiOi", kwlist, &objectUniqueId, &jointIndex, &shapeIndex, &textureUniqueId, &rgbaColorObj, &physicsClientId)) + static char* kwlist[] = {"objectUniqueId", "linkIndex", "shapeIndex", "textureUniqueId", "rgbaColor", "specularColor", "physicsClientId", NULL}; + if (!PyArg_ParseTupleAndKeywords(args, keywds, "ii|iiOOi", kwlist, &objectUniqueId, &jointIndex, &shapeIndex, &textureUniqueId, &rgbaColorObj, &specularColorObj, &physicsClientId)) { return NULL; } @@ -4194,6 +4540,14 @@ static PyObject* pybullet_changeVisualShape(PyObject* self, PyObject* args, PyOb { commandHandle = b3InitUpdateVisualShape(sm, objectUniqueId, jointIndex, shapeIndex, textureUniqueId); + if (specularColorObj) + { + double specularColor[3] = {1,1,1}; + pybullet_internalSetVectord(specularColorObj, specularColor); + b3UpdateVisualShapeSpecularColor(commandHandle,specularColor); + + } + if (rgbaColorObj) { double rgbaColor[4] = {1,1,1,1}; @@ -4217,6 +4571,75 @@ static PyObject* pybullet_changeVisualShape(PyObject* self, PyObject* args, PyOb return Py_None; } + +static PyObject* pybullet_changeTexture(PyObject* self, PyObject* args, PyObject* keywds) +{ + b3SharedMemoryCommandHandle commandHandle = 0; + b3SharedMemoryStatusHandle statusHandle=0; + int statusType = -1; + int textureUniqueId = -1; + int physicsClientId = 0; + int width=-1; + int height=-1; + + PyObject* pixelsObj = 0; + + b3PhysicsClientHandle sm = 0; + static char* kwlist[] = {"textureUniqueId", "pixels", "width", "height", "physicsClientId", NULL}; + if (!PyArg_ParseTupleAndKeywords(args, keywds, "iOii|i", kwlist, &textureUniqueId, &pixelsObj, &width, &height, &physicsClientId)) + { + return NULL; + } + sm = getPhysicsClient(physicsClientId); + if (sm == 0) + { + PyErr_SetString(SpamError, "Not connected to physics server."); + return NULL; + } + + if (textureUniqueId>=0 && width>=0 && height>=0 && pixelsObj) + { + PyObject* seqPixels = PySequence_Fast(pixelsObj, "expected a sequence"); + PyObject* item; + int i; + int numPixels = width*height; + unsigned char* pixelBuffer = (unsigned char*) malloc (numPixels*3); + if (PyList_Check(seqPixels)) + { + for (i=0;i=0) + { + b3InitChangeUserConstraintSetGearAuxLink(commandHandle,gearAuxLink); + } statusHandle = b3SubmitClientCommandAndWaitStatus(sm, commandHandle); statusType = b3GetStatusType(statusHandle); Py_INCREF(Py_None); @@ -4606,6 +5035,357 @@ static PyObject* pybullet_enableJointForceTorqueSensor(PyObject* self, PyObject* return NULL; } +static PyObject* pybullet_createCollisionShape(PyObject* self, PyObject* args, PyObject* keywds) +{ + int physicsClientId = 0; + b3PhysicsClientHandle sm = 0; + int shapeType=-1; + double radius=0.5; + double height = 1; + PyObject* meshScaleObj=0; + double meshScale[3] = {1,1,1}; + PyObject* planeNormalObj=0; + double planeNormal[3] = {0,0,1}; + + char* fileName=0; + int flags = 0; + + PyObject* halfExtentsObj=0; + + static char* kwlist[] = {"shapeType","radius","halfExtents", "height", "fileName", "meshScale", "planeNormal", "flags", "physicsClientId", NULL}; + if (!PyArg_ParseTupleAndKeywords(args, keywds, "i|dOdsOOii", kwlist, + &shapeType, &radius,&halfExtentsObj, &height, &fileName, &meshScaleObj, &planeNormalObj, &flags, &physicsClientId)) + { + return NULL; + } + sm = getPhysicsClient(physicsClientId); + if (sm == 0) + { + PyErr_SetString(SpamError, "Not connected to physics server."); + return NULL; + } + if (shapeType>=GEOM_SPHERE) + { + b3SharedMemoryStatusHandle statusHandle; + int statusType; + int shapeIndex = -1; + + b3SharedMemoryCommandHandle commandHandle = b3CreateCollisionShapeCommandInit(sm); + if (shapeType==GEOM_SPHERE && radius>0) + { + shapeIndex = b3CreateCollisionShapeAddSphere(commandHandle,radius); + } + if (shapeType==GEOM_BOX && halfExtentsObj) + { + double halfExtents[3] = {1,1,1}; + pybullet_internalSetVectord(halfExtentsObj,halfExtents); + shapeIndex = b3CreateCollisionShapeAddBox(commandHandle,halfExtents); + } + if (shapeType==GEOM_CAPSULE && radius>0 && height>=0) + { + shapeIndex = b3CreateCollisionShapeAddCapsule(commandHandle,radius,height); + } + if (shapeType==GEOM_CYLINDER && radius>0 && height>=0) + { + shapeIndex = b3CreateCollisionShapeAddCylinder(commandHandle,radius,height); + } + if (shapeType==GEOM_MESH && fileName) + { + pybullet_internalSetVectord(meshScaleObj,meshScale); + shapeIndex = b3CreateCollisionShapeAddMesh(commandHandle, fileName,meshScale); + } + if (shapeType==GEOM_PLANE) + { + double planeConstant=0; + pybullet_internalSetVectord(planeNormalObj,planeNormal); + shapeIndex = b3CreateCollisionShapeAddPlane(commandHandle, planeNormal, planeConstant); + } + if (shapeIndex>=0 && flags) + { + b3CreateCollisionSetFlag(commandHandle,shapeIndex,flags); + } + + statusHandle = b3SubmitClientCommandAndWaitStatus(sm, commandHandle); + statusType = b3GetStatusType(statusHandle); + if (statusType == CMD_CREATE_COLLISION_SHAPE_COMPLETED) + { + int uid = b3GetStatusCollisionShapeUniqueId(statusHandle); + PyObject* ob = PyLong_FromLong(uid); + return ob; + } + } + PyErr_SetString(SpamError, "createCollisionShape failed."); + return NULL; +} +#if 0 +b3SharedMemoryCommandHandle b3CreateCollisionShapeCommandInit(b3PhysicsClientHandle physClient); +int b3GetStatusCollisionShapeUniqueId(b3SharedMemoryStatusHandle statusHandle); + +b3SharedMemoryCommandHandle b3CreateVisualShapeCommandInit(b3PhysicsClientHandle physClient); +int b3GetStatusVisualShapeUniqueId(b3SharedMemoryStatusHandle statusHandle); + +b3SharedMemoryCommandHandle b3CreateMultiBodyCommandInit(b3PhysicsClientHandle physClient); +int b3GetStatusMultiBodyUniqueId(b3SharedMemoryStatusHandle statusHandle); +#endif + + +static PyObject* pybullet_createVisualShape(PyObject* self, PyObject* args, PyObject* keywds) +{ + int physicsClientId = 0; + b3PhysicsClientHandle sm = 0; + int test=-1; + + static char* kwlist[] = {"test",NULL}; + if (!PyArg_ParseTupleAndKeywords(args, keywds, "i|i", kwlist, &test, + &physicsClientId)) + { + return NULL; + } + sm = getPhysicsClient(physicsClientId); + if (sm == 0) + { + PyErr_SetString(SpamError, "Not connected to physics server."); + return NULL; + } + if (test>=0) + { + b3SharedMemoryStatusHandle statusHandle; + int statusType; + b3SharedMemoryCommandHandle commandHandle = b3CreateVisualShapeCommandInit(sm); + statusHandle = b3SubmitClientCommandAndWaitStatus(sm, commandHandle); + statusType = b3GetStatusType(statusHandle); + if (statusType == CMD_CREATE_VISUAL_SHAPE_COMPLETED) + { + int uid = b3GetStatusVisualShapeUniqueId(statusHandle); + PyObject* ob = PyLong_FromLong(uid); + return ob; + } + } + + PyErr_SetString(SpamError, "createVisualShape failed."); + return NULL; +} + +static PyObject* pybullet_createMultiBody(PyObject* self, PyObject* args, PyObject* keywds) +{ + int physicsClientId = 0; + b3PhysicsClientHandle sm = 0; + double baseMass = 0; + int baseCollisionShapeIndex=-1; + int baseVisualShapeIndex=-1; + int useMaximalCoordinates = 0; + PyObject* basePosObj=0; + PyObject* baseOrnObj=0; + PyObject* baseInertialFramePositionObj=0; + PyObject* baseInertialFrameOrientationObj=0; + + PyObject* linkMassesObj=0; + PyObject* linkCollisionShapeIndicesObj=0; + PyObject* linkVisualShapeIndicesObj=0; + PyObject* linkPositionsObj=0; + PyObject* linkOrientationsObj=0; + PyObject* linkParentIndicesObj=0; + PyObject* linkJointTypesObj=0; + PyObject* linkJointAxisObj=0; + PyObject* linkInertialFramePositionObj=0; + PyObject* linkInertialFrameOrientationObj=0; + + static char* kwlist[] = {"baseMass","baseCollisionShapeIndex","baseVisualShapeIndex","basePosition", "baseOrientation", "baseInertialFramePosition", "baseInertialFrameOrientation", + "linkMasses","linkCollisionShapeIndices", "linkVisualShapeIndices", + "linkPositions", "linkOrientations","linkInertialFramePositions","linkInertialFrameOrientations", "linkParentIndices", "linkJointTypes","linkJointAxis", + "useMaximalCoordinates","physicsClientId", NULL}; + + if (!PyArg_ParseTupleAndKeywords(args, keywds, "|diiOOOOOOOOOOOOOOii", kwlist, &baseMass,&baseCollisionShapeIndex,&baseVisualShapeIndex, + &basePosObj, &baseOrnObj,&baseInertialFramePositionObj, &baseInertialFrameOrientationObj, + &linkMassesObj, &linkCollisionShapeIndicesObj, &linkVisualShapeIndicesObj, &linkPositionsObj, &linkOrientationsObj, + &linkInertialFramePositionObj, &linkInertialFrameOrientationObj, + &linkParentIndicesObj, &linkJointTypesObj,&linkJointAxisObj, + &useMaximalCoordinates, &physicsClientId)) + { + return NULL; + } + sm = getPhysicsClient(physicsClientId); + if (sm == 0) + { + PyErr_SetString(SpamError, "Not connected to physics server."); + return NULL; + } + + { + + + int numLinkMasses = linkMassesObj?PySequence_Size(linkMassesObj):0; + int numLinkCollisionShapes = linkCollisionShapeIndicesObj?PySequence_Size(linkCollisionShapeIndicesObj):0; + int numLinkVisualShapes = linkVisualShapeIndicesObj?PySequence_Size(linkVisualShapeIndicesObj):0; + int numLinkPositions = linkPositionsObj? PySequence_Size(linkPositionsObj):0; + int numLinkOrientations = linkOrientationsObj? PySequence_Size(linkOrientationsObj):0; + int numLinkParentIndices = linkParentIndicesObj?PySequence_Size(linkParentIndicesObj):0; + int numLinkJointTypes = linkJointTypesObj?PySequence_Size(linkJointTypesObj):0; + int numLinkJoinAxis = linkJointAxisObj? PySequence_Size(linkJointAxisObj):0; + int numLinkInertialFramePositions = linkInertialFramePositionObj? PySequence_Size(linkInertialFramePositionObj) : 0; + int numLinkInertialFrameOrientations = linkInertialFrameOrientationObj? PySequence_Size(linkInertialFrameOrientationObj) : 0; + + PyObject* seqLinkMasses = linkMassesObj?PySequence_Fast(linkMassesObj, "expected a sequence"):0; + PyObject* seqLinkCollisionShapes = linkCollisionShapeIndicesObj?PySequence_Fast(linkCollisionShapeIndicesObj, "expected a sequence"):0; + PyObject* seqLinkVisualShapes = linkVisualShapeIndicesObj?PySequence_Fast(linkVisualShapeIndicesObj, "expected a sequence"):0; + PyObject* seqLinkPositions = linkPositionsObj?PySequence_Fast(linkPositionsObj, "expected a sequence"):0; + PyObject* seqLinkOrientations = linkOrientationsObj?PySequence_Fast(linkOrientationsObj, "expected a sequence"):0; + PyObject* seqLinkParentIndices = linkParentIndicesObj?PySequence_Fast(linkParentIndicesObj, "expected a sequence"):0; + PyObject* seqLinkJointTypes = linkJointTypesObj?PySequence_Fast(linkJointTypesObj, "expected a sequence"):0; + PyObject* seqLinkJoinAxis = linkJointAxisObj?PySequence_Fast(linkJointAxisObj, "expected a sequence"):0; + PyObject* seqLinkInertialFramePositions = linkInertialFramePositionObj?PySequence_Fast(linkInertialFramePositionObj, "expected a sequence"):0; + PyObject* seqLinkInertialFrameOrientations = linkInertialFrameOrientationObj?PySequence_Fast(linkInertialFrameOrientationObj, "expected a sequence"):0; + + if ((numLinkMasses==numLinkCollisionShapes) && + (numLinkMasses==numLinkVisualShapes) && + (numLinkMasses==numLinkPositions) && + (numLinkMasses==numLinkOrientations) && + (numLinkMasses==numLinkParentIndices) && + (numLinkMasses==numLinkJointTypes) && + (numLinkMasses==numLinkJoinAxis) && + (numLinkMasses==numLinkInertialFramePositions) && + (numLinkMasses==numLinkInertialFrameOrientations)) + { + b3SharedMemoryStatusHandle statusHandle; + int statusType; + int i; + b3SharedMemoryCommandHandle commandHandle = b3CreateMultiBodyCommandInit(sm); + double basePosition[3]={0,0,0}; + double baseOrientation[4]={0,0,0,1}; + double baseInertialFramePosition[3] = {0,0,0}; + double baseInertialFrameOrientation[4]={0,0,0,1}; + int baseIndex; + pybullet_internalSetVectord(basePosObj,basePosition); + pybullet_internalSetVector4d(baseOrnObj,baseOrientation); + pybullet_internalSetVectord(baseInertialFramePositionObj,baseInertialFramePosition); + pybullet_internalSetVector4d(baseInertialFrameOrientationObj,baseInertialFrameOrientation); + + baseIndex = b3CreateMultiBodyBase(commandHandle,baseMass,baseCollisionShapeIndex,baseVisualShapeIndex, basePosition, baseOrientation, baseInertialFramePosition, baseInertialFrameOrientation ); + + for (i=0;i0) + { + b3CreateMultiBodyUseMaximalCoordinates(commandHandle); + } + statusHandle = b3SubmitClientCommandAndWaitStatus(sm, commandHandle); + statusType = b3GetStatusType(statusHandle); + if (statusType == CMD_CREATE_MULTI_BODY_COMPLETED) + { + int uid = b3GetStatusBodyIndex(statusHandle); + PyObject* ob = PyLong_FromLong(uid); + return ob; + } + + } else + { + if (seqLinkMasses) + Py_DECREF(seqLinkMasses); + if (seqLinkCollisionShapes) + Py_DECREF(seqLinkCollisionShapes); + if (seqLinkVisualShapes) + Py_DECREF(seqLinkVisualShapes); + if (seqLinkPositions) + Py_DECREF(seqLinkPositions); + if (seqLinkOrientations) + Py_DECREF(seqLinkOrientations); + if (seqLinkParentIndices) + Py_DECREF(seqLinkParentIndices); + if (seqLinkJointTypes) + Py_DECREF(seqLinkJointTypes); + if (seqLinkJoinAxis) + Py_DECREF(seqLinkJoinAxis); + if (seqLinkInertialFramePositions) + Py_DECREF(seqLinkInertialFramePositions); + if (seqLinkInertialFrameOrientations) + Py_DECREF(seqLinkInertialFrameOrientations); + + PyErr_SetString(SpamError, "All link arrays need to be same size."); + return NULL; + } + + + #if 0 + PyObject* seq; + seq = PySequence_Fast(objMat, "expected a sequence"); + if (seq) + { + len = PySequence_Size(objMat); + if (len == 16) + { + for (i = 0; i < len; i++) + { + matrix[i] = pybullet_internalGetFloatFromSequence(seq, i); + } + Py_DECREF(seq); + return 1; + } + Py_DECREF(seq); + } + #endif + + + } + PyErr_SetString(SpamError, "createMultiBody failed."); + return NULL; +} + + static PyObject* pybullet_createUserConstraint(PyObject* self, PyObject* args, PyObject* keywds) { b3SharedMemoryCommandHandle commandHandle; @@ -4884,9 +5664,9 @@ static PyObject* pybullet_getCameraImage(PyObject* self, PyObject* args, PyObjec memcpy(PyArray_DATA(pyRGB), imageData.m_rgbColorData, imageData.m_pixelHeight * imageData.m_pixelWidth * bytesPerPixel); memcpy(PyArray_DATA(pyDep), imageData.m_depthValues, - imageData.m_pixelHeight * imageData.m_pixelWidth); + imageData.m_pixelHeight * imageData.m_pixelWidth * sizeof(float)); memcpy(PyArray_DATA(pySeg), imageData.m_segmentationMaskValues, - imageData.m_pixelHeight * imageData.m_pixelWidth); + imageData.m_pixelHeight * imageData.m_pixelWidth * sizeof(int)); PyTuple_SetItem(pyResultList, 2, pyRGB); PyTuple_SetItem(pyResultList, 3, pyDep); @@ -5601,6 +6381,114 @@ static PyObject* pybullet_getQuaternionFromEuler(PyObject* self, Py_INCREF(Py_None); return Py_None; } + +static PyObject* pybullet_multiplyTransforms(PyObject* self, + PyObject* args, PyObject* keywds) +{ + PyObject* posAObj = 0; + PyObject* ornAObj = 0; + PyObject* posBObj = 0; + PyObject* ornBObj = 0; + + int hasPosA=0; + int hasOrnA=0; + int hasPosB=0; + int hasOrnB=0; + + double posA[3]; + double ornA[4] = {0, 0, 0, 1}; + double posB[3]; + double ornB[4] = {0, 0, 0, 1}; + + static char* kwlist[] = {"positionA", "orientationA", "positionB", "orientationB", NULL}; + if (!PyArg_ParseTupleAndKeywords(args, keywds, "OOOO", kwlist, &posAObj, &ornAObj,&posBObj, &ornBObj)) + { + return NULL; + } + + hasPosA = pybullet_internalSetVectord(posAObj, posA); + hasOrnA = pybullet_internalSetVector4d(ornAObj, ornA); + hasPosB = pybullet_internalSetVectord(posBObj, posB); + hasOrnB= pybullet_internalSetVector4d(ornBObj, ornB); + + if (hasPosA&&hasOrnA&&hasPosB&&hasOrnB) + { + double outPos[3]; + double outOrn[4]; + int i; + PyObject* pyListOutObj=0; + PyObject* pyPosOutObj=0; + PyObject* pyOrnOutObj=0; + + b3MultiplyTransforms(posA,ornA,posB,ornB, outPos, outOrn); + + pyListOutObj = PyTuple_New(2); + pyPosOutObj = PyTuple_New(3); + pyOrnOutObj = PyTuple_New(4); + for (i = 0; i < 3; i++) + PyTuple_SetItem(pyPosOutObj, i, PyFloat_FromDouble(outPos[i])); + for (i = 0; i < 4; i++) + PyTuple_SetItem(pyOrnOutObj, i, PyFloat_FromDouble(outOrn[i])); + + PyTuple_SetItem(pyListOutObj, 0, pyPosOutObj); + PyTuple_SetItem(pyListOutObj, 1, pyOrnOutObj); + + return pyListOutObj; + } + PyErr_SetString(SpamError, "Invalid input: expected positionA [x,y,z], orientationA [x,y,z,w], positionB, orientationB."); + return NULL; +} + +static PyObject* pybullet_invertTransform(PyObject* self, + PyObject* args, PyObject* keywds) +{ + PyObject* posObj = 0; + PyObject* ornObj = 0; + double pos[3]; + double orn[4] = {0, 0, 0, 1}; + int hasPos =0; + int hasOrn =0; + + static char* kwlist[] = {"position", "orientation", NULL}; + if (!PyArg_ParseTupleAndKeywords(args, keywds, "OO", kwlist, &posObj, &ornObj)) + { + return NULL; + } + + hasPos = pybullet_internalSetVectord(posObj, pos); + hasOrn = pybullet_internalSetVector4d(ornObj, orn); + + if (hasPos && hasOrn) + { + double outPos[3]; + double outOrn[4]; + int i; + PyObject* pyListOutObj=0; + PyObject* pyPosOutObj=0; + PyObject* pyOrnOutObj=0; + + b3InvertTransform(pos, orn, outPos, outOrn); + + pyListOutObj = PyTuple_New(2); + pyPosOutObj = PyTuple_New(3); + pyOrnOutObj = PyTuple_New(4); + for (i = 0; i < 3; i++) + PyTuple_SetItem(pyPosOutObj, i, PyFloat_FromDouble(outPos[i])); + for (i = 0; i < 4; i++) + PyTuple_SetItem(pyOrnOutObj, i, PyFloat_FromDouble(outOrn[i])); + + PyTuple_SetItem(pyListOutObj, 0, pyPosOutObj); + PyTuple_SetItem(pyListOutObj, 1, pyOrnOutObj); + + return pyListOutObj; + } + + + PyErr_SetString(SpamError, "Invalid input: expected position [x,y,z] and orientation [x,y,z,w]."); + return NULL; +} + + /// quaternion <-> euler yaw/pitch/roll convention from URDF/SDF, see Gazebo /// https://github.com/arpg/Gazebo/blob/master/gazebo/math/Quaternion.cc static PyObject* pybullet_getEulerFromQuaternion(PyObject* self, @@ -5674,7 +6562,7 @@ static PyObject* pybullet_calculateInverseKinematics(PyObject* self, PyObject* args, PyObject* keywds) { - int bodyIndex; + int bodyUniqueId; int endEffectorLinkIndex; PyObject* targetPosObj = 0; @@ -5688,10 +6576,16 @@ static PyObject* pybullet_calculateInverseKinematics(PyObject* self, PyObject* restPosesObj = 0; PyObject* jointDampingObj = 0; - static char* kwlist[] = {"bodyIndex", "endEffectorLinkIndex", "targetPosition", "targetOrientation", "lowerLimits", "upperLimits", "jointRanges", "restPoses", "jointDamping", "physicsClientId", NULL}; - if (!PyArg_ParseTupleAndKeywords(args, keywds, "iiO|OOOOOOi", kwlist, &bodyIndex, &endEffectorLinkIndex, &targetPosObj, &targetOrnObj, &lowerLimitsObj, &upperLimitsObj, &jointRangesObj, &restPosesObj, &jointDampingObj, &physicsClientId)) + static char* kwlist[] = {"bodyUniqueId", "endEffectorLinkIndex", "targetPosition", "targetOrientation", "lowerLimits", "upperLimits", "jointRanges", "restPoses", "jointDamping", "physicsClientId", NULL}; + if (!PyArg_ParseTupleAndKeywords(args, keywds, "iiO|OOOOOOi", kwlist, &bodyUniqueId, &endEffectorLinkIndex, &targetPosObj, &targetOrnObj, &lowerLimitsObj, &upperLimitsObj, &jointRangesObj, &restPosesObj, &jointDampingObj, &physicsClientId)) { - return NULL; + //backward compatibility bodyIndex -> bodyUniqueId. don't update keywords, people need to migrate to bodyUniqueId version + static char* kwlist2[] = {"bodyIndex", "endEffectorLinkIndex", "targetPosition", "targetOrientation", "lowerLimits", "upperLimits", "jointRanges", "restPoses", "jointDamping", "physicsClientId", NULL}; + PyErr_Clear(); + if (!PyArg_ParseTupleAndKeywords(args, keywds, "iiO|OOOOOOi", kwlist2, &bodyUniqueId, &endEffectorLinkIndex, &targetPosObj, &targetOrnObj, &lowerLimitsObj, &upperLimitsObj, &jointRangesObj, &restPosesObj, &jointDampingObj, &physicsClientId)) + { + return NULL; + } } sm = getPhysicsClient(physicsClientId); if (sm == 0) @@ -5701,7 +6595,7 @@ static PyObject* pybullet_calculateInverseKinematics(PyObject* self, } { double pos[3]; - double ori[4] = {0, 1.0, 0, 0}; + double ori[4] = {0, 0, 0, 1}; int hasPos = pybullet_internalSetVectord(targetPosObj, pos); int hasOrn = pybullet_internalSetVector4d(targetOrnObj, ori); @@ -5711,7 +6605,7 @@ static PyObject* pybullet_calculateInverseKinematics(PyObject* self, int szRestPoses = restPosesObj ? PySequence_Size(restPosesObj) : 0; int szJointDamping = jointDampingObj ? PySequence_Size(jointDampingObj) : 0; - int numJoints = b3GetNumJoints(sm, bodyIndex); + int numJoints = b3GetNumJoints(sm, bodyUniqueId); int hasNullSpace = 0; int hasJointDamping = 0; @@ -5764,7 +6658,7 @@ static PyObject* pybullet_calculateInverseKinematics(PyObject* self, int resultBodyIndex; int result; - b3SharedMemoryCommandHandle command = b3CalculateInverseKinematicsCommandInit(sm, bodyIndex); + b3SharedMemoryCommandHandle command = b3CalculateInverseKinematicsCommandInit(sm, bodyUniqueId); if (hasNullSpace) { @@ -5845,17 +6739,23 @@ static PyObject* pybullet_calculateInverseDynamics(PyObject* self, PyObject* args, PyObject* keywds) { { - int bodyIndex; + int bodyUniqueId; PyObject* objPositionsQ; PyObject* objVelocitiesQdot; PyObject* objAccelerations; int physicsClientId = 0; b3PhysicsClientHandle sm = 0; - static char* kwlist[] = {"bodyIndex", "objPositions", "objVelocities", "objAccelerations", "physicsClientId", NULL}; - if (!PyArg_ParseTupleAndKeywords(args, keywds, "iOOO|i", kwlist, &bodyIndex, &objPositionsQ, + static char* kwlist[] = {"bodyUniqueId", "objPositions", "objVelocities", "objAccelerations", "physicsClientId", NULL}; + if (!PyArg_ParseTupleAndKeywords(args, keywds, "iOOO|i", kwlist, &bodyUniqueId, &objPositionsQ, &objVelocitiesQdot, &objAccelerations, &physicsClientId)) { + static char* kwlist2[] = {"bodyIndex", "objPositions", "objVelocities", "objAccelerations", "physicsClientId", NULL}; + PyErr_Clear(); + if (!PyArg_ParseTupleAndKeywords(args, keywds, "iOOO|i", kwlist2, &bodyUniqueId, &objPositionsQ, + &objVelocitiesQdot, &objAccelerations, &physicsClientId)) + { return NULL; + } } sm = getPhysicsClient(physicsClientId); if (sm == 0) @@ -5868,7 +6768,7 @@ static PyObject* pybullet_calculateInverseDynamics(PyObject* self, int szObPos = PySequence_Size(objPositionsQ); int szObVel = PySequence_Size(objVelocitiesQdot); int szObAcc = PySequence_Size(objAccelerations); - int numJoints = b3GetNumJoints(sm, bodyIndex); + int numJoints = b3GetNumJoints(sm, bodyUniqueId); if (numJoints && (szObPos == numJoints) && (szObVel == numJoints) && (szObAcc == numJoints)) { @@ -5895,7 +6795,7 @@ static PyObject* pybullet_calculateInverseDynamics(PyObject* self, int statusType; b3SharedMemoryCommandHandle commandHandle = b3CalculateInverseDynamicsCommandInit( - sm, bodyIndex, jointPositionsQ, jointVelocitiesQdot, + sm, bodyUniqueId, jointPositionsQ, jointVelocitiesQdot, jointAccelerations); statusHandle = b3SubmitClientCommandAndWaitStatus(sm, commandHandle); @@ -6003,6 +6903,16 @@ static PyMethodDef SpamMethods[] = { {"loadMJCF", (PyCFunction)pybullet_loadMJCF, METH_VARARGS | METH_KEYWORDS, "Load multibodies from an MJCF file."}, + {"createCollisionShape", (PyCFunction)pybullet_createCollisionShape, METH_VARARGS | METH_KEYWORDS, + "Create a collision shape. Returns a non-negative (int) unique id, if successfull, negative otherwise."}, + + {"createVisualShape", (PyCFunction)pybullet_createVisualShape, METH_VARARGS | METH_KEYWORDS, + "Create a visual shape. Returns a non-negative (int) unique id, if successfull, negative otherwise."}, + + {"createMultiBody", (PyCFunction)pybullet_createMultiBody, METH_VARARGS | METH_KEYWORDS, + "Create a multi body. Returns a non-negative (int) unique id, if successfull, negative otherwise."}, + + {"createConstraint", (PyCFunction)pybullet_createUserConstraint, METH_VARARGS | METH_KEYWORDS, "Create a constraint between two bodies. Returns a (int) unique id, if successfull."}, @@ -6046,6 +6956,10 @@ static PyMethodDef SpamMethods[] = { "Get the world position and orientation of the base of the object. " "(x,y,z) position vector and (x,y,z,w) quaternion orientation."}, + {"getAABB", (PyCFunction)pybullet_getAABB, + METH_VARARGS | METH_KEYWORDS, + "Get the axis aligned bound box min and max coordinates in world space."}, + {"resetBasePositionAndOrientation", (PyCFunction)pybullet_resetBasePositionAndOrientation, METH_VARARGS | METH_KEYWORDS, "Reset the world position and orientation of the base of the object " @@ -6199,6 +7113,9 @@ static PyMethodDef SpamMethods[] = { {"loadTexture", (PyCFunction)pybullet_loadTexture, METH_VARARGS | METH_KEYWORDS, "Load texture file."}, + {"changeTexture", (PyCFunction)pybullet_changeTexture, METH_VARARGS | METH_KEYWORDS, + "Change a texture file."}, + {"getQuaternionFromEuler", pybullet_getQuaternionFromEuler, METH_VARARGS, "Convert Euler [roll, pitch, yaw] as in URDF/SDF convention, to " "quaternion [x,y,z,w]"}, @@ -6207,6 +7124,12 @@ static PyMethodDef SpamMethods[] = { "Convert quaternion [x,y,z,w] to Euler [roll, pitch, yaw] as in URDF/SDF " "convention"}, + {"multiplyTransforms", (PyCFunction) pybullet_multiplyTransforms, METH_VARARGS | METH_KEYWORDS, + "Multiply two transform, provided as [position], [quaternion]."}, + + {"invertTransform", (PyCFunction) pybullet_invertTransform, METH_VARARGS | METH_KEYWORDS, + "Invert a transform, provided as [position], [quaternion]."}, + {"getMatrixFromQuaternion", pybullet_getMatrixFromQuaternion, METH_VARARGS, "Compute the 3x3 matrix from a quaternion, as a list of 9 values (row-major)"}, @@ -6227,7 +7150,10 @@ static PyMethodDef SpamMethods[] = { "Set properties of the VR Camera such as its root transform " "for teleporting or to track objects (camera inside a vehicle for example)."}, {"getKeyboardEvents", (PyCFunction)pybullet_getKeyboardEvents, METH_VARARGS | METH_KEYWORDS, - "Get Keyboard events, keycode and state (KEY_IS_DOWN, KEY_WAS_TRIGGER, KEY_WAS_RELEASED)"}, + "Get keyboard events, keycode and state (KEY_IS_DOWN, KEY_WAS_TRIGGERED, KEY_WAS_RELEASED)"}, + + {"getMouseEvents", (PyCFunction)pybullet_getMouseEvents, METH_VARARGS | METH_KEYWORDS, + "Get mouse events, event type and button state (KEY_IS_DOWN, KEY_WAS_TRIGGERED, KEY_WAS_RELEASED)"}, {"startStateLogging", (PyCFunction)pybullet_startStateLogging, METH_VARARGS | METH_KEYWORDS, "Start logging of state, such as robot base position, orientation, joint positions etc. " @@ -6249,6 +7175,11 @@ static PyMethodDef SpamMethods[] = { {"setTimeOut", (PyCFunction)pybullet_setTimeOut, METH_VARARGS | METH_KEYWORDS, "Set the timeOut in seconds, used for most of the API calls."}, + + {"getAPIVersion", (PyCFunction)pybullet_getAPIVersion, + METH_VARARGS | METH_KEYWORDS, + "Get version of the API. Compatibility exists for connections using the same API version. Make sure both client and server use the same number of bits (32-bit or 64bit)."}, + // todo(erwincoumans) // saveSnapshot // loadSnapshot @@ -6313,14 +7244,22 @@ PyMODINIT_FUNC #if PY_MAJOR_VERSION >= 3 PyInit_pybullet(void) #else +#ifdef BT_USE_EGL +initpybullet_egl(void) +#else initpybullet(void) +#endif //BT_USE_EGL #endif { PyObject* m; #if PY_MAJOR_VERSION >= 3 m = PyModule_Create(&moduledef); +#else +#ifdef BT_USE_EGL + m = Py_InitModule3("pybullet_egl", SpamMethods, "Python bindings for Bullet"); #else m = Py_InitModule3("pybullet", SpamMethods, "Python bindings for Bullet"); +#endif //BT_USE_EGL #endif #if PY_MAJOR_VERSION >= 3 @@ -6335,6 +7274,7 @@ initpybullet(void) PyModule_AddIntConstant(m, "GUI", eCONNECT_GUI); // user read PyModule_AddIntConstant(m, "UDP", eCONNECT_UDP); // user read PyModule_AddIntConstant(m, "TCP", eCONNECT_TCP); // user read + PyModule_AddIntConstant(m, "GUI_SERVER", eCONNECT_GUI_SERVER); // user read PyModule_AddIntConstant(m, "JOINT_REVOLUTE", eRevoluteType); // user read PyModule_AddIntConstant(m, "JOINT_PRISMATIC", ePrismaticType); // user read @@ -6342,6 +7282,7 @@ initpybullet(void) PyModule_AddIntConstant(m, "JOINT_PLANAR", ePlanarType); // user read PyModule_AddIntConstant(m, "JOINT_FIXED", eFixedType); // user read PyModule_AddIntConstant(m, "JOINT_POINT2POINT", ePoint2PointType); // user read + PyModule_AddIntConstant(m, "JOINT_GEAR", eGearType); // user read PyModule_AddIntConstant(m, "SENSOR_FORCE_TORQUE", eSensorForceTorqueType); // user read @@ -6388,6 +7329,8 @@ initpybullet(void) PyModule_AddIntConstant(m, "COV_ENABLE_VR_TELEPORTING", COV_ENABLE_VR_TELEPORTING); PyModule_AddIntConstant(m, "COV_ENABLE_RENDERING", COV_ENABLE_RENDERING); PyModule_AddIntConstant(m, "COV_ENABLE_VR_RENDER_CONTROLLERS", COV_ENABLE_VR_RENDER_CONTROLLERS); + PyModule_AddIntConstant(m, "COV_ENABLE_KEYBOARD_SHORTCUTS", COV_ENABLE_KEYBOARD_SHORTCUTS); + PyModule_AddIntConstant(m, "COV_ENABLE_MOUSE_PICKING", COV_ENABLE_MOUSE_PICKING); PyModule_AddIntConstant(m, "ER_TINY_RENDERER", ER_TINY_RENDERER); @@ -6431,10 +7374,21 @@ initpybullet(void) PyModule_AddIntConstant(m, "B3G_ALT", B3G_ALT); PyModule_AddIntConstant(m, "B3G_RETURN", B3G_RETURN); + PyModule_AddIntConstant(m, "GEOM_SPHERE", GEOM_SPHERE); + PyModule_AddIntConstant(m, "GEOM_BOX", GEOM_BOX); + PyModule_AddIntConstant(m, "GEOM_CYLINDER", GEOM_CYLINDER); + PyModule_AddIntConstant(m, "GEOM_MESH", GEOM_MESH); + PyModule_AddIntConstant(m, "GEOM_PLANE", GEOM_PLANE); + PyModule_AddIntConstant(m, "GEOM_CAPSULE", GEOM_CAPSULE); + + PyModule_AddIntConstant(m, "GEOM_FORCE_CONCAVE_TRIMESH", GEOM_FORCE_CONCAVE_TRIMESH); + + + SpamError = PyErr_NewException("pybullet.error", NULL, NULL); Py_INCREF(SpamError); PyModule_AddObject(m, "error", SpamError); - + printf("pybullet build time: %s %s\n", __DATE__,__TIME__); Py_AtExit( b3pybulletExitFunc ); diff --git a/examples/pybullet/tensorflow/humanoid_running.py b/examples/pybullet/tensorflow/humanoid_running.py index 8dea38298..b64310429 100644 --- a/examples/pybullet/tensorflow/humanoid_running.py +++ b/examples/pybullet/tensorflow/humanoid_running.py @@ -1,21 +1,30 @@ import tensorflow as tf import sys import numpy as np - +import argparse import pybullet as p import time -p.connect(p.GUI) #DIRECT is much faster, but GUI shows the running gait + +cid = p.connect(p.SHARED_MEMORY) +if (cid<0): + cid = p.connect(p.GUI) #DIRECT is much faster, but GUI shows the running gait + p.setGravity(0,0,-9.8) p.setPhysicsEngineParameter(fixedTimeStep=1.0/60., numSolverIterations=5, numSubSteps=2) #this mp4 recording requires ffmpeg installed #mp4log = p.startStateLogging(p.STATE_LOGGING_VIDEO_MP4,"humanoid.mp4") +p.loadSDF("stadium.sdf") +#p.loadURDF("plane.urdf") -plane, human = p.loadMJCF("mjcf/humanoid_symmetric.xml",flags = p.URDF_USE_SELF_COLLISION_EXCLUDE_ALL_PARENTS) - +objs = p.loadMJCF("mjcf/humanoid_symmetric_no_ground.xml",flags = p.URDF_USE_SELF_COLLISION_EXCLUDE_ALL_PARENTS) +human = objs[0] ordered_joints = [] ordered_joint_indices = [] +parser = argparse.ArgumentParser() +parser.add_argument('--profile') + jdict = {} for j in range( p.getNumJoints(human) ): @@ -175,11 +184,11 @@ def demo_run(): p.setJointMotorControlArray(human, motors,controlMode=p.TORQUE_CONTROL, forces=forces) p.stepSimulation() - #time.sleep(0.01) + time.sleep(0.01) distance=5 yaw = 0 humanPos, humanOrn = p.getBasePositionAndOrientation(human) - p.resetDebugVisualizerCamera(distance,yaw,20,humanPos); + p.resetDebugVisualizerCamera(distance,yaw,-20,humanPos); frame += 1 if frame==1000: break diff --git a/examples/pybullet/tensorflow/humanoid_running_3.py b/examples/pybullet/tensorflow/humanoid_running_vr_follow.py similarity index 99% rename from examples/pybullet/tensorflow/humanoid_running_3.py rename to examples/pybullet/tensorflow/humanoid_running_vr_follow.py index 9688baacb..542c1397f 100644 --- a/examples/pybullet/tensorflow/humanoid_running_3.py +++ b/examples/pybullet/tensorflow/humanoid_running_vr_follow.py @@ -4,27 +4,24 @@ import numpy as np import pybullet as p import time -p.connect(p.GUI) #GUI is slower, but shows the running gait +p.connect(p.SHARED_MEMORY) #DIRECT is much faster, but GUI shows the running gait +p.resetSimulation() p.setGravity(0,0,-9.8) +p.setRealTimeSimulation(0) p.setPhysicsEngineParameter(fixedTimeStep=1.0/60., numSolverIterations=5, numSubSteps=2) #this mp4 recording requires ffmpeg installed #mp4log = p.startStateLogging(p.STATE_LOGGING_VIDEO_MP4,"humanoid.mp4") -objs = p.loadMJCF("mjcf/ground.xml",flags = p.URDF_USE_SELF_COLLISION_EXCLUDE_ALL_PARENTS) -ground = objs[0] - -objs = p.loadMJCF("mjcf/humanoid_symmetric_no_ground.xml",flags = p.URDF_USE_SELF_COLLISION_EXCLUDE_ALL_PARENTS) -human1 =objs[0] -p.resetBasePositionAndOrientation(human1,[0,0.8,1.5],[0,0,0,1]) - -objs = p.loadMJCF("mjcf/humanoid_symmetric_no_ground.xml",flags = p.URDF_USE_SELF_COLLISION_EXCLUDE_ALL_PARENTS) -human2 = objs[0] -p.resetBasePositionAndOrientation(human2,[0,1.5,1.5],[0,0,0,1]) -objs = p.loadMJCF("mjcf/humanoid_symmetric_no_ground.xml",flags = p.URDF_USE_SELF_COLLISION_EXCLUDE_ALL_PARENTS) -human = objs[0] +plane, human = p.loadMJCF("mjcf/humanoid_symmetric.xml",flags = p.URDF_USE_SELF_COLLISION_EXCLUDE_ALL_PARENTS) +print("human") +print(human) +p.setVRCameraState([0,0,0],[0,0,0,0],human, trackObjectFlag=human)#p.VR_CAMERA_TRACK_OBJECT_ORIENTATION) + ordered_joints = [] +ordered_joint_indices = [] + jdict = {} for j in range( p.getNumJoints(human) ): @@ -32,14 +29,16 @@ for j in range( p.getNumJoints(human) ): link_name = info[12].decode("ascii") if link_name=="left_foot": left_foot = j if link_name=="right_foot": right_foot = j + ordered_joint_indices.append(j) + if info[2] != p.JOINT_REVOLUTE: continue jname = info[1].decode("ascii") jdict[jname] = j lower, upper = (info[8], info[9]) ordered_joints.append( (j, lower, upper) ) + + p.setJointMotorControl2(human, j, controlMode=p.VELOCITY_CONTROL, force=0) - p.setJointMotorControl2(human1, j, controlMode=p.VELOCITY_CONTROL, force=0) - p.setJointMotorControl2(human2, j, controlMode=p.VELOCITY_CONTROL, force=0) @@ -60,10 +59,14 @@ class Dummy: dummy = Dummy() dummy.initial_z = None -def current_relative_position(human, j, lower, upper): +def current_relative_position(jointStates, human, j, lower, upper): #print("j") #print(j) - pos, vel, *other = p.getJointState(human, j) + #print (len(jointStates)) + #print(j) + temp = jointStates[j] + pos = temp[0] + vel = temp[1] #print("pos") #print(pos) #print("vel") @@ -75,7 +78,11 @@ def current_relative_position(human, j, lower, upper): ) def collect_observations(human): - j = np.array([current_relative_position(human, *jtuple) for jtuple in ordered_joints]).flatten() + #print("ordered_joint_indices") + #print(ordered_joint_indices) + + jointStates = p.getJointStates(human,ordered_joint_indices) + j = np.array([current_relative_position(jointStates, human, *jtuple) for jtuple in ordered_joints]).flatten() #print("j") #print(j) body_xyz, (qx, qy, qz, qw) = p.getBasePositionAndOrientation(human) @@ -153,13 +160,9 @@ def demo_run(): frame = 0 while 1: obs = collect_observations(human) - obs1 = collect_observations(human1) - obs2 = collect_observations(human2) - + actions = pi.act(obs) - actions1 = pi.act(obs1) - actions2 = pi.act(obs2) - + #print(" ".join(["%+0.2f"%x for x in obs])) #print("Motors") #print(motors) @@ -176,19 +179,13 @@ def demo_run(): for m in range(len(motors)): forces[m] = motor_power[m]*actions[m]*0.082 p.setJointMotorControlArray(human, motors,controlMode=p.TORQUE_CONTROL, forces=forces) - for m in range(len(motors)): - forces[m] = motor_power[m]*actions1[m]*0.082 - p.setJointMotorControlArray(human1, motors,controlMode=p.TORQUE_CONTROL, forces=forces) - for m in range(len(motors)): - forces[m] = motor_power[m]*actions2[m]*0.082 - p.setJointMotorControlArray(human2, motors,controlMode=p.TORQUE_CONTROL, forces=forces) p.stepSimulation() - time.sleep(0.1) - distance=3 + time.sleep(0.01) + distance=5 yaw = 0 humanPos, humanOrn = p.getBasePositionAndOrientation(human) - p.resetDebugVisualizerCamera(distance,yaw,90,humanPos); + #p.resetDebugVisualizerCamera(distance,yaw,20,humanPos); frame += 1 if frame==1000: break diff --git a/setup.py b/setup.py index 0365485f3..deb3be881 100644 --- a/setup.py +++ b/setup.py @@ -54,6 +54,7 @@ sources = ["examples/pybullet/pybullet.c"]\ +["examples/SharedMemory/PhysicsClient.cpp"]\ +["examples/SharedMemory/PhysicsServer.cpp"]\ +["examples/SharedMemory/PhysicsServerExample.cpp"]\ ++["examples/SharedMemory/PhysicsServerExampleBullet2.cpp"]\ +["examples/SharedMemory/SharedMemoryInProcessPhysicsC_API.cpp"]\ +["examples/SharedMemory/PhysicsServerSharedMemory.cpp"]\ +["examples/SharedMemory/PhysicsDirect.cpp"]\ @@ -252,6 +253,7 @@ sources = ["examples/pybullet/pybullet.c"]\ +["src/BulletDynamics/Featherstone/btMultiBody.cpp"]\ +["src/BulletDynamics/Featherstone/btMultiBodyDynamicsWorld.cpp"]\ +["src/BulletDynamics/Featherstone/btMultiBodyJointMotor.cpp"]\ ++["src/BulletDynamics/Featherstone/btMultiBodyGearConstraint.cpp"]\ +["src/BulletDynamics/Featherstone/btMultiBodyConstraint.cpp"]\ +["src/BulletDynamics/Featherstone/btMultiBodyFixedConstraint.cpp"]\ +["src/BulletDynamics/Featherstone/btMultiBodyPoint2Point.cpp"]\ @@ -384,6 +386,7 @@ if _platform == "linux" or _platform == "linux2": sources = sources + ["examples/ThirdPartyLibs/enet/unix.c"]\ +["examples/OpenGLWindow/X11OpenGLWindow.cpp"]\ +["examples/ThirdPartyLibs/Glew/glew.c"] + include_dirs += ["examples/ThirdPartyLibs/optionalX11"] elif _platform == "win32": print("win32!") libraries = ['Ws2_32','Winmm','User32','Opengl32','kernel32','glu32','Gdi32','Comdlg32'] @@ -396,6 +399,7 @@ elif _platform == "win32": elif _platform == "darwin": print("darwin!") os.environ['LDFLAGS'] = '-framework Cocoa -framework OpenGL' + CXX_FLAGS += '-DB3_NO_PYTHON_FRAMEWORK ' CXX_FLAGS += '-DHAS_SOCKLEN_T ' CXX_FLAGS += '-D_DARWIN ' # CXX_FLAGS += '-framework Cocoa ' @@ -417,7 +421,7 @@ else: setup( name = 'pybullet', - version='1.0.6', + version='1.2.4', description='Official Python Interface for the Bullet Physics SDK Robotics Simulator', long_description='pybullet is an easy to use Python module for physics simulation, robotics and machine learning based on the Bullet Physics SDK. With pybullet you can load articulated bodies from URDF, SDF and other file formats. pybullet provides forward dynamics simulation, inverse dynamics computation, forward and inverse kinematics and collision detection and ray intersection queries. Aside from physics simulation, pybullet supports to rendering, with a CPU renderer and OpenGL visualization and support for virtual reality headsets.', url='https://github.com/bulletphysics/bullet3', diff --git a/src/Bullet3Common/b3HashMap.h b/src/Bullet3Common/b3HashMap.h index ceeb838e2..24a59d9ba 100644 --- a/src/Bullet3Common/b3HashMap.h +++ b/src/Bullet3Common/b3HashMap.h @@ -44,8 +44,8 @@ struct b3HashString /* Fowler / Noll / Vo (FNV) Hash */ unsigned int hash = InitialFNV; - - for(int i = 0; m_string[i]; i++) + int len = m_string.length(); + for(int i = 0; igetCollisionShape()->getContactBreakingThreshold( gContactBreakingThreshold ), body1->getCollisionShape()->getContactBreakingThreshold( gContactBreakingThreshold ) ) + : gContactBreakingThreshold; + + btScalar contactProcessingThreshold = btMin( body0->getContactProcessingThreshold(), body1->getContactProcessingThreshold() ); + + void* mem = m_persistentManifoldPoolAllocator->allocate( sizeof( btPersistentManifold ) ); + if ( NULL == mem ) + { + //we got a pool memory overflow, by default we fallback to dynamically allocate memory. If we require a contiguous contact pool then assert. + if ( ( m_dispatcherFlags&CD_DISABLE_CONTACTPOOL_DYNAMIC_ALLOCATION ) == 0 ) + { + mem = btAlignedAlloc( sizeof( btPersistentManifold ), 16 ); + } + else + { + btAssert( 0 ); + //make sure to increase the m_defaultMaxPersistentManifoldPoolSize in the btDefaultCollisionConstructionInfo/btDefaultCollisionConfiguration + return 0; + } + } + btPersistentManifold* manifold = new( mem ) btPersistentManifold( body0, body1, 0, contactBreakingThreshold, contactProcessingThreshold ); + if ( !m_batchUpdating ) + { + // batch updater will update manifold pointers array after finishing, so + // only need to update array when not batch-updating + //btAssert( !btThreadsAreRunning() ); + manifold->m_index1a = m_manifoldsPtr.size(); + m_manifoldsPtr.push_back( manifold ); + } + + return manifold; +} + +void btCollisionDispatcherMt::releaseManifold( btPersistentManifold* manifold ) +{ + clearManifold( manifold ); + //btAssert( !btThreadsAreRunning() ); + if ( !m_batchUpdating ) + { + // batch updater will update manifold pointers array after finishing, so + // only need to update array when not batch-updating + int findIndex = manifold->m_index1a; + btAssert( findIndex < m_manifoldsPtr.size() ); + m_manifoldsPtr.swap( findIndex, m_manifoldsPtr.size() - 1 ); + m_manifoldsPtr[ findIndex ]->m_index1a = findIndex; + m_manifoldsPtr.pop_back(); + } + + manifold->~btPersistentManifold(); + if ( m_persistentManifoldPoolAllocator->validPtr( manifold ) ) + { + m_persistentManifoldPoolAllocator->freeMemory( manifold ); + } + else + { + btAlignedFree( manifold ); + } +} + +struct CollisionDispatcherUpdater : public btIParallelForBody +{ + btBroadphasePair* mPairArray; + btNearCallback mCallback; + btCollisionDispatcher* mDispatcher; + const btDispatcherInfo* mInfo; + + CollisionDispatcherUpdater() + { + mPairArray = NULL; + mCallback = NULL; + mDispatcher = NULL; + mInfo = NULL; + } + void forLoop( int iBegin, int iEnd ) const + { + for ( int i = iBegin; i < iEnd; ++i ) + { + btBroadphasePair* pair = &mPairArray[ i ]; + mCallback( *pair, *mDispatcher, *mInfo ); + } + } +}; + + +void btCollisionDispatcherMt::dispatchAllCollisionPairs( btOverlappingPairCache* pairCache, const btDispatcherInfo& info, btDispatcher* dispatcher ) +{ + int pairCount = pairCache->getNumOverlappingPairs(); + if ( pairCount == 0 ) + { + return; + } + CollisionDispatcherUpdater updater; + updater.mCallback = getNearCallback(); + updater.mPairArray = pairCache->getOverlappingPairArrayPtr(); + updater.mDispatcher = this; + updater.mInfo = &info; + + m_batchUpdating = true; + btParallelFor( 0, pairCount, m_grainSize, updater ); + m_batchUpdating = false; + + // reconstruct the manifolds array to ensure determinism + m_manifoldsPtr.resizeNoInitialize( 0 ); + + btBroadphasePair* pairs = pairCache->getOverlappingPairArrayPtr(); + for ( int i = 0; i < pairCount; ++i ) + { + if (btCollisionAlgorithm* algo = pairs[ i ].m_algorithm) + { + algo->getAllContactManifolds( m_manifoldsPtr ); + } + } + + // update the indices (used when releasing manifolds) + for ( int i = 0; i < m_manifoldsPtr.size(); ++i ) + { + m_manifoldsPtr[ i ]->m_index1a = i; + } +} + + diff --git a/src/BulletCollision/CollisionDispatch/btCollisionDispatcherMt.h b/src/BulletCollision/CollisionDispatch/btCollisionDispatcherMt.h new file mode 100644 index 000000000..f1d7eafdc --- /dev/null +++ b/src/BulletCollision/CollisionDispatch/btCollisionDispatcherMt.h @@ -0,0 +1,39 @@ +/* +Bullet Continuous Collision Detection and Physics Library +Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ + +This software is provided 'as-is', without any express or implied warranty. +In no event will the authors be held liable for any damages arising from the use of this software. +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it freely, +subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. +2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. +3. This notice may not be removed or altered from any source distribution. +*/ + +#ifndef BT_COLLISION_DISPATCHER_MT_H +#define BT_COLLISION_DISPATCHER_MT_H + +#include "BulletCollision/CollisionDispatch/btCollisionDispatcher.h" +#include "LinearMath/btThreads.h" + + +class btCollisionDispatcherMt : public btCollisionDispatcher +{ +public: + btCollisionDispatcherMt( btCollisionConfiguration* config, int grainSize = 40 ); + + virtual btPersistentManifold* getNewManifold( const btCollisionObject* body0, const btCollisionObject* body1 ) BT_OVERRIDE; + virtual void releaseManifold( btPersistentManifold* manifold ) BT_OVERRIDE; + + virtual void dispatchAllCollisionPairs( btOverlappingPairCache* pairCache, const btDispatcherInfo& info, btDispatcher* dispatcher ) BT_OVERRIDE; + +protected: + bool m_batchUpdating; + int m_grainSize; +}; + +#endif //BT_COLLISION_DISPATCHER_MT_H + diff --git a/src/BulletCollision/CollisionShapes/btSphereShape.h b/src/BulletCollision/CollisionShapes/btSphereShape.h index b192efeeb..50561f7f5 100644 --- a/src/BulletCollision/CollisionShapes/btSphereShape.h +++ b/src/BulletCollision/CollisionShapes/btSphereShape.h @@ -29,8 +29,11 @@ public: btSphereShape (btScalar radius) : btConvexInternalShape () { m_shapeType = SPHERE_SHAPE_PROXYTYPE; + m_localScaling.setValue(1.0, 1.0, 1.0); + m_implicitShapeDimensions.setZero(); m_implicitShapeDimensions.setX(radius); m_collisionMargin = radius; + m_padding = 0; } virtual btVector3 localGetSupportingVertex(const btVector3& vec)const; diff --git a/src/BulletDynamics/CMakeLists.txt b/src/BulletDynamics/CMakeLists.txt index 4023d721e..f8a6f34ba 100644 --- a/src/BulletDynamics/CMakeLists.txt +++ b/src/BulletDynamics/CMakeLists.txt @@ -37,6 +37,7 @@ SET(BulletDynamics_SRCS Featherstone/btMultiBodyFixedConstraint.cpp Featherstone/btMultiBodySliderConstraint.cpp Featherstone/btMultiBodyJointMotor.cpp + Featherstone/btMultiBodyGearConstraint.cpp MLCPSolvers/btDantzigLCP.cpp MLCPSolvers/btMLCPSolver.cpp MLCPSolvers/btLemkeAlgorithm.cpp @@ -98,6 +99,7 @@ SET(Featherstone_HDRS Featherstone/btMultiBodyFixedConstraint.h Featherstone/btMultiBodySliderConstraint.h Featherstone/btMultiBodyJointMotor.h + Featherstone/btMultiBodyGearConstraint.h ) SET(MLCPSolvers_HDRS diff --git a/src/BulletDynamics/ConstraintSolver/btContactSolverInfo.h b/src/BulletDynamics/ConstraintSolver/btContactSolverInfo.h index f3d4d45af..28d0c1dd4 100644 --- a/src/BulletDynamics/ConstraintSolver/btContactSolverInfo.h +++ b/src/BulletDynamics/ConstraintSolver/btContactSolverInfo.h @@ -62,6 +62,7 @@ struct btContactSolverInfoData btScalar m_maxGyroscopicForce; btScalar m_singleAxisRollingFrictionThreshold; btScalar m_leastSquaresResidualThreshold; + btScalar m_restitutionVelocityThreshold; }; @@ -97,6 +98,7 @@ struct btContactSolverInfo : public btContactSolverInfoData m_maxGyroscopicForce = 100.f; ///it is only used for 'explicit' version of gyroscopic force m_singleAxisRollingFrictionThreshold = 1e30f;///if the velocity is above this threshold, it will use a single constraint row (axis), otherwise 3 rows. m_leastSquaresResidualThreshold = 0.f; + m_restitutionVelocityThreshold = 0.2f;//if the relative velocity is below this threshold, there is zero restitution } }; diff --git a/src/BulletDynamics/ConstraintSolver/btNNCGConstraintSolver.cpp b/src/BulletDynamics/ConstraintSolver/btNNCGConstraintSolver.cpp index f110cd480..f3979be35 100644 --- a/src/BulletDynamics/ConstraintSolver/btNNCGConstraintSolver.cpp +++ b/src/BulletDynamics/ConstraintSolver/btNNCGConstraintSolver.cpp @@ -78,20 +78,6 @@ btScalar btNNCGConstraintSolver::solveSingleIteration(int iteration, btCollision btScalar deltaflengthsqr = 0; - - if (infoGlobal.m_solverMode & SOLVER_SIMD) - { - for (int j=0;jisEnabled()) - { - int bodyAid = getOrInitSolverBody(constraints[j]->getRigidBodyA(),infoGlobal.m_timeStep); - int bodyBid = getOrInitSolverBody(constraints[j]->getRigidBodyB(),infoGlobal.m_timeStep); - btSolverBody& bodyA = m_tmpSolverBodyPool[bodyAid]; - btSolverBody& bodyB = m_tmpSolverBodyPool[bodyBid]; - constraints[j]->solveConstraintObsolete(bodyA,bodyB,infoGlobal.m_timeStep); - } - } - ///solve all contact constraints - int numPoolConstraints = m_tmpSolverContactConstraintPool.size(); - for (int j=0;jbtScalar(0)) - { - solveManifold.m_lowerLimit = -(solveManifold.m_friction*totalImpulse); - solveManifold.m_upperLimit = solveManifold.m_friction*totalImpulse; - - btScalar deltaf = resolveSingleConstraintRowGeneric(m_tmpSolverBodyPool[solveManifold.m_solverBodyIdA],m_tmpSolverBodyPool[solveManifold.m_solverBodyIdB],solveManifold); - m_deltafCF[j] = deltaf; - deltaflengthsqr += deltaf*deltaf; - } else { - m_deltafCF[j] = 0; - } - } - - int numRollingFrictionPoolConstraints = m_tmpSolverContactRollingFrictionConstraintPool.size(); - for (int j=0;jbtScalar(0)) - { - btScalar rollingFrictionMagnitude = rollingFrictionConstraint.m_friction*totalImpulse; - if (rollingFrictionMagnitude>rollingFrictionConstraint.m_friction) - rollingFrictionMagnitude = rollingFrictionConstraint.m_friction; - - rollingFrictionConstraint.m_lowerLimit = -rollingFrictionMagnitude; - rollingFrictionConstraint.m_upperLimit = rollingFrictionMagnitude; - - btScalar deltaf = resolveSingleConstraintRowGeneric(m_tmpSolverBodyPool[rollingFrictionConstraint.m_solverBodyIdA],m_tmpSolverBodyPool[rollingFrictionConstraint.m_solverBodyIdB],rollingFrictionConstraint); - m_deltafCRF[j] = deltaf; - deltaflengthsqr += deltaf*deltaf; - } else { - m_deltafCRF[j] = 0; - } - } - } } @@ -362,10 +278,7 @@ btScalar btNNCGConstraintSolver::solveSingleIteration(int iteration, btCollision for (int j=0;jisEnabled()) - { - int bodyAid = getOrInitSolverBody(constraints[j]->getRigidBodyA(),infoGlobal.m_timeStep); - int bodyBid = getOrInitSolverBody(constraints[j]->getRigidBodyB(),infoGlobal.m_timeStep); - btSolverBody& bodyA = m_tmpSolverBodyPool[bodyAid]; - btSolverBody& bodyB = m_tmpSolverBodyPool[bodyBid]; - constraints[j]->solveConstraintObsolete(bodyA,bodyB,infoGlobal.m_timeStep); - } - } - - ///solve all contact constraints using SIMD, if available - if (infoGlobal.m_solverMode & SOLVER_INTERLEAVE_CONTACT_AND_FRICTION_CONSTRAINTS) - { - int numPoolConstraints = m_tmpSolverContactConstraintPool.size(); - int multiplier = (infoGlobal.m_solverMode & SOLVER_USE_2_FRICTION_DIRECTIONS)? 2 : 1; - - for (int c=0;cbtScalar(0)) - { - solveManifold.m_lowerLimit = -(solveManifold.m_friction*totalImpulse); - solveManifold.m_upperLimit = solveManifold.m_friction*totalImpulse; - - btScalar residual = resolveSingleConstraintRowGenericSIMD(m_tmpSolverBodyPool[solveManifold.m_solverBodyIdA],m_tmpSolverBodyPool[solveManifold.m_solverBodyIdB],solveManifold); - leastSquaresResidual += residual*residual; - } - } - - if (infoGlobal.m_solverMode & SOLVER_USE_2_FRICTION_DIRECTIONS) - { - - btSolverConstraint& solveManifold = m_tmpSolverContactFrictionConstraintPool[m_orderFrictionConstraintPool[c*multiplier+1]]; - - if (totalImpulse>btScalar(0)) - { - solveManifold.m_lowerLimit = -(solveManifold.m_friction*totalImpulse); - solveManifold.m_upperLimit = solveManifold.m_friction*totalImpulse; - - btScalar residual = resolveSingleConstraintRowGenericSIMD(m_tmpSolverBodyPool[solveManifold.m_solverBodyIdA],m_tmpSolverBodyPool[solveManifold.m_solverBodyIdB],solveManifold); - leastSquaresResidual += residual*residual; - } - } - } - } - - } - else//SOLVER_INTERLEAVE_CONTACT_AND_FRICTION_CONSTRAINTS - { - //solve the friction constraints after all contact constraints, don't interleave them - int numPoolConstraints = m_tmpSolverContactConstraintPool.size(); - int j; - - for (j=0;jbtScalar(0)) - { - solveManifold.m_lowerLimit = -(solveManifold.m_friction*totalImpulse); - solveManifold.m_upperLimit = solveManifold.m_friction*totalImpulse; - - btScalar residual = resolveSingleConstraintRowGenericSIMD(m_tmpSolverBodyPool[solveManifold.m_solverBodyIdA],m_tmpSolverBodyPool[solveManifold.m_solverBodyIdB],solveManifold); - leastSquaresResidual += residual*residual; - } - } - - - int numRollingFrictionPoolConstraints = m_tmpSolverContactRollingFrictionConstraintPool.size(); - for (j=0;jbtScalar(0)) - { - btScalar rollingFrictionMagnitude = rollingFrictionConstraint.m_friction*totalImpulse; - if (rollingFrictionMagnitude>rollingFrictionConstraint.m_friction) - rollingFrictionMagnitude = rollingFrictionConstraint.m_friction; - - rollingFrictionConstraint.m_lowerLimit = -rollingFrictionMagnitude; - rollingFrictionConstraint.m_upperLimit = rollingFrictionMagnitude; - - btScalar residual = resolveSingleConstraintRowGenericSIMD(m_tmpSolverBodyPool[rollingFrictionConstraint.m_solverBodyIdA],m_tmpSolverBodyPool[rollingFrictionConstraint.m_solverBodyIdB],rollingFrictionConstraint); - leastSquaresResidual += residual*residual; - } - } - - - } - } - } else - { - //non-SIMD version ///solve all joint constraints for (int j=0;jsolveConstraintObsolete(bodyA,bodyB,infoGlobal.m_timeStep); } } + ///solve all contact constraints - int numPoolConstraints = m_tmpSolverContactConstraintPool.size(); - for (int j=0;jbtScalar(0)) + for (int c=0;cbtScalar(0)) + { + solveManifold.m_lowerLimit = -(solveManifold.m_friction*totalImpulse); + solveManifold.m_upperLimit = solveManifold.m_friction*totalImpulse; + + btScalar residual = resolveSingleConstraintRowGeneric(m_tmpSolverBodyPool[solveManifold.m_solverBodyIdA],m_tmpSolverBodyPool[solveManifold.m_solverBodyIdB],solveManifold); + leastSquaresResidual += residual*residual; + } + } + + if (infoGlobal.m_solverMode & SOLVER_USE_2_FRICTION_DIRECTIONS) + { + + btSolverConstraint& solveManifold = m_tmpSolverContactFrictionConstraintPool[m_orderFrictionConstraintPool[c*multiplier+1]]; + + if (totalImpulse>btScalar(0)) + { + solveManifold.m_lowerLimit = -(solveManifold.m_friction*totalImpulse); + solveManifold.m_upperLimit = solveManifold.m_friction*totalImpulse; + + btScalar residual = resolveSingleConstraintRowGeneric(m_tmpSolverBodyPool[solveManifold.m_solverBodyIdA],m_tmpSolverBodyPool[solveManifold.m_solverBodyIdB],solveManifold); + leastSquaresResidual += residual*residual; + } + } + } + } + + } + else//SOLVER_INTERLEAVE_CONTACT_AND_FRICTION_CONSTRAINTS + { + //solve the friction constraints after all contact constraints, don't interleave them + int numPoolConstraints = m_tmpSolverContactConstraintPool.size(); + int j; + + for (j=0;jbtScalar(0)) + { + solveManifold.m_lowerLimit = -(solveManifold.m_friction*totalImpulse); + solveManifold.m_upperLimit = solveManifold.m_friction*totalImpulse; + + btScalar residual = resolveSingleConstraintRowGeneric(m_tmpSolverBodyPool[solveManifold.m_solverBodyIdA],m_tmpSolverBodyPool[solveManifold.m_solverBodyIdB],solveManifold); + leastSquaresResidual += residual*residual; + } + } } - int numRollingFrictionPoolConstraints = m_tmpSolverContactRollingFrictionConstraintPool.size(); - for (int j=0;jbtScalar(0)) + + int numRollingFrictionPoolConstraints = m_tmpSolverContactRollingFrictionConstraintPool.size(); + for (int j=0;jrollingFrictionConstraint.m_friction) - rollingFrictionMagnitude = rollingFrictionConstraint.m_friction; - rollingFrictionConstraint.m_lowerLimit = -rollingFrictionMagnitude; - rollingFrictionConstraint.m_upperLimit = rollingFrictionMagnitude; + btSolverConstraint& rollingFrictionConstraint = m_tmpSolverContactRollingFrictionConstraintPool[j]; + btScalar totalImpulse = m_tmpSolverContactConstraintPool[rollingFrictionConstraint.m_frictionIndex].m_appliedImpulse; + if (totalImpulse>btScalar(0)) + { + btScalar rollingFrictionMagnitude = rollingFrictionConstraint.m_friction*totalImpulse; + if (rollingFrictionMagnitude>rollingFrictionConstraint.m_friction) + rollingFrictionMagnitude = rollingFrictionConstraint.m_friction; - btScalar residual = resolveSingleConstraintRowGeneric(m_tmpSolverBodyPool[rollingFrictionConstraint.m_solverBodyIdA],m_tmpSolverBodyPool[rollingFrictionConstraint.m_solverBodyIdB],rollingFrictionConstraint); - leastSquaresResidual += residual*residual; + rollingFrictionConstraint.m_lowerLimit = -rollingFrictionMagnitude; + rollingFrictionConstraint.m_upperLimit = rollingFrictionMagnitude; + + btScalar residual = resolveSingleConstraintRowGeneric(m_tmpSolverBodyPool[rollingFrictionConstraint.m_solverBodyIdA],m_tmpSolverBodyPool[rollingFrictionConstraint.m_solverBodyIdB],rollingFrictionConstraint); + leastSquaresResidual += residual*residual; + } } - } + + } - } return leastSquaresResidual; } @@ -1871,7 +1811,6 @@ void btSequentialImpulseConstraintSolver::solveGroupCacheFriendlySplitImpulseIte int iteration; if (infoGlobal.m_splitImpulse) { - if (infoGlobal.m_solverMode & SOLVER_SIMD) { for ( iteration = 0;iteration=(infoGlobal.m_numIterations-1)) - { -#ifdef VERBOSE_RESIDUAL_PRINTF - printf("residual = %f at iteration #%d\n",leastSquaresResidual,iteration); -#endif - break; - } - } - } - } + } } } diff --git a/src/BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.h b/src/BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.h index b81537138..16c7eb74c 100644 --- a/src/BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.h +++ b/src/BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.h @@ -56,6 +56,9 @@ protected: btSingleConstraintRowSolver m_resolveSingleConstraintRowGeneric; btSingleConstraintRowSolver m_resolveSingleConstraintRowLowerLimit; + btSingleConstraintRowSolver m_resolveSplitPenetrationImpulse; + int m_cachedSolverMode; // used to check if SOLVER_SIMD flag has been changed + void setupSolverFunctions( bool useSimd ); btScalar m_leastSquaresResidual; @@ -86,20 +89,22 @@ protected: unsigned long m_btSeed2; - btScalar restitutionCurve(btScalar rel_vel, btScalar restitution); + btScalar restitutionCurve(btScalar rel_vel, btScalar restitution, btScalar velocityThreshold); virtual void convertContacts(btPersistentManifold** manifoldPtr, int numManifolds, const btContactSolverInfo& infoGlobal); void convertContact(btPersistentManifold* manifold,const btContactSolverInfo& infoGlobal); - btSimdScalar resolveSplitPenetrationSIMD( - btSolverBody& bodyA,btSolverBody& bodyB, - const btSolverConstraint& contactConstraint); + btSimdScalar resolveSplitPenetrationSIMD(btSolverBody& bodyA,btSolverBody& bodyB, const btSolverConstraint& contactConstraint) + { + return m_resolveSplitPenetrationImpulse( bodyA, bodyB, contactConstraint ); + } - btScalar resolveSplitPenetrationImpulseCacheFriendly( - btSolverBody& bodyA,btSolverBody& bodyB, - const btSolverConstraint& contactConstraint); + btSimdScalar resolveSplitPenetrationImpulseCacheFriendly(btSolverBody& bodyA,btSolverBody& bodyB, const btSolverConstraint& contactConstraint) + { + return m_resolveSplitPenetrationImpulse( bodyA, bodyB, contactConstraint ); + } //internal method int getOrInitSolverBody(btCollisionObject& body,btScalar timeStep); @@ -109,6 +114,10 @@ protected: btSimdScalar resolveSingleConstraintRowGenericSIMD(btSolverBody& bodyA,btSolverBody& bodyB,const btSolverConstraint& contactConstraint); btSimdScalar resolveSingleConstraintRowLowerLimit(btSolverBody& bodyA,btSolverBody& bodyB,const btSolverConstraint& contactConstraint); btSimdScalar resolveSingleConstraintRowLowerLimitSIMD(btSolverBody& bodyA,btSolverBody& bodyB,const btSolverConstraint& contactConstraint); + btSimdScalar resolveSplitPenetrationImpulse(btSolverBody& bodyA,btSolverBody& bodyB, const btSolverConstraint& contactConstraint) + { + return m_resolveSplitPenetrationImpulse( bodyA, bodyB, contactConstraint ); + } protected: diff --git a/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorldMt.cpp b/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorldMt.cpp index 5e51a994c..1d10bad92 100644 --- a/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorldMt.cpp +++ b/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorldMt.cpp @@ -108,8 +108,108 @@ struct InplaceSolverIslandCallbackMt : public btSimulationIslandManagerMt::Islan }; +/// +/// btConstraintSolverPoolMt +/// -btDiscreteDynamicsWorldMt::btDiscreteDynamicsWorldMt(btDispatcher* dispatcher,btBroadphaseInterface* pairCache,btConstraintSolver* constraintSolver, btCollisionConfiguration* collisionConfiguration) +btConstraintSolverPoolMt::ThreadSolver* btConstraintSolverPoolMt::getAndLockThreadSolver() +{ + int i = 0; +#if BT_THREADSAFE + i = btGetCurrentThreadIndex() % m_solvers.size(); +#endif // #if BT_THREADSAFE + while ( true ) + { + ThreadSolver& solver = m_solvers[ i ]; + if ( solver.mutex.tryLock() ) + { + return &solver; + } + // failed, try the next one + i = ( i + 1 ) % m_solvers.size(); + } + return NULL; +} + +void btConstraintSolverPoolMt::init( btConstraintSolver** solvers, int numSolvers ) +{ + m_solverType = BT_SEQUENTIAL_IMPULSE_SOLVER; + m_solvers.resize( numSolvers ); + for ( int i = 0; i < numSolvers; ++i ) + { + m_solvers[ i ].solver = solvers[ i ]; + } + if ( numSolvers > 0 ) + { + m_solverType = solvers[ 0 ]->getSolverType(); + } +} + +// create the solvers for me +btConstraintSolverPoolMt::btConstraintSolverPoolMt( int numSolvers ) +{ + btAlignedObjectArray solvers; + solvers.reserve( numSolvers ); + for ( int i = 0; i < numSolvers; ++i ) + { + btConstraintSolver* solver = new btSequentialImpulseConstraintSolver(); + solvers.push_back( solver ); + } + init( &solvers[ 0 ], numSolvers ); +} + +// pass in fully constructed solvers (destructor will delete them) +btConstraintSolverPoolMt::btConstraintSolverPoolMt( btConstraintSolver** solvers, int numSolvers ) +{ + init( solvers, numSolvers ); +} + +btConstraintSolverPoolMt::~btConstraintSolverPoolMt() +{ + // delete all solvers + for ( int i = 0; i < m_solvers.size(); ++i ) + { + ThreadSolver& solver = m_solvers[ i ]; + delete solver.solver; + solver.solver = NULL; + } +} + +///solve a group of constraints +btScalar btConstraintSolverPoolMt::solveGroup( btCollisionObject** bodies, + int numBodies, + btPersistentManifold** manifolds, + int numManifolds, + btTypedConstraint** constraints, + int numConstraints, + const btContactSolverInfo& info, + btIDebugDraw* debugDrawer, + btDispatcher* dispatcher +) +{ + ThreadSolver* ts = getAndLockThreadSolver(); + ts->solver->solveGroup( bodies, numBodies, manifolds, numManifolds, constraints, numConstraints, info, debugDrawer, dispatcher ); + ts->mutex.unlock(); + return 0.0f; +} + +void btConstraintSolverPoolMt::reset() +{ + for ( int i = 0; i < m_solvers.size(); ++i ) + { + ThreadSolver& solver = m_solvers[ i ]; + solver.mutex.lock(); + solver.solver->reset(); + solver.mutex.unlock(); + } +} + + +/// +/// btDiscreteDynamicsWorldMt +/// + +btDiscreteDynamicsWorldMt::btDiscreteDynamicsWorldMt(btDispatcher* dispatcher, btBroadphaseInterface* pairCache, btConstraintSolverPoolMt* constraintSolver, btCollisionConfiguration* collisionConfiguration) : btDiscreteDynamicsWorld(dispatcher,pairCache,constraintSolver,collisionConfiguration) { if (m_ownsIslandManager) @@ -124,8 +224,8 @@ btDiscreteDynamicsWorldMt::btDiscreteDynamicsWorldMt(btDispatcher* dispatcher,bt { void* mem = btAlignedAlloc(sizeof(btSimulationIslandManagerMt),16); btSimulationIslandManagerMt* im = new (mem) btSimulationIslandManagerMt(); - m_islandManager = im; im->setMinimumSolverBatchSize( m_solverInfo.m_minimumSolverBatchSize ); + m_islandManager = im; } } @@ -145,7 +245,7 @@ btDiscreteDynamicsWorldMt::~btDiscreteDynamicsWorldMt() } -void btDiscreteDynamicsWorldMt::solveConstraints(btContactSolverInfo& solverInfo) +void btDiscreteDynamicsWorldMt::solveConstraints(btContactSolverInfo& solverInfo) { BT_PROFILE("solveConstraints"); @@ -160,3 +260,68 @@ void btDiscreteDynamicsWorldMt::solveConstraints(btContactSolverInfo& solverInfo } +struct UpdaterUnconstrainedMotion : public btIParallelForBody +{ + btScalar timeStep; + btRigidBody** rigidBodies; + + void forLoop( int iBegin, int iEnd ) const BT_OVERRIDE + { + for ( int i = iBegin; i < iEnd; ++i ) + { + btRigidBody* body = rigidBodies[ i ]; + if ( !body->isStaticOrKinematicObject() ) + { + //don't integrate/update velocities here, it happens in the constraint solver + body->applyDamping( timeStep ); + body->predictIntegratedTransform( timeStep, body->getInterpolationWorldTransform() ); + } + } + } +}; + + +void btDiscreteDynamicsWorldMt::predictUnconstraintMotion( btScalar timeStep ) +{ + BT_PROFILE( "predictUnconstraintMotion" ); + if ( m_nonStaticRigidBodies.size() > 0 ) + { + UpdaterUnconstrainedMotion update; + update.timeStep = timeStep; + update.rigidBodies = &m_nonStaticRigidBodies[ 0 ]; + int grainSize = 50; // num of iterations per task for task scheduler + btParallelFor( 0, m_nonStaticRigidBodies.size(), grainSize, update ); + } +} + + +void btDiscreteDynamicsWorldMt::createPredictiveContacts( btScalar timeStep ) +{ + BT_PROFILE( "createPredictiveContacts" ); + releasePredictiveContacts(); + if ( m_nonStaticRigidBodies.size() > 0 ) + { + UpdaterCreatePredictiveContacts update; + update.world = this; + update.timeStep = timeStep; + update.rigidBodies = &m_nonStaticRigidBodies[ 0 ]; + int grainSize = 50; // num of iterations per task for task scheduler + btParallelFor( 0, m_nonStaticRigidBodies.size(), grainSize, update ); + } +} + + +void btDiscreteDynamicsWorldMt::integrateTransforms( btScalar timeStep ) +{ + BT_PROFILE( "integrateTransforms" ); + if ( m_nonStaticRigidBodies.size() > 0 ) + { + UpdaterIntegrateTransforms update; + update.world = this; + update.timeStep = timeStep; + update.rigidBodies = &m_nonStaticRigidBodies[ 0 ]; + int grainSize = 50; // num of iterations per task for task scheduler + btParallelFor( 0, m_nonStaticRigidBodies.size(), grainSize, update ); + } +} + diff --git a/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorldMt.h b/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorldMt.h index b28371b51..2f144cdda 100644 --- a/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorldMt.h +++ b/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorldMt.h @@ -18,24 +18,116 @@ subject to the following restrictions: #define BT_DISCRETE_DYNAMICS_WORLD_MT_H #include "btDiscreteDynamicsWorld.h" +#include "btSimulationIslandManagerMt.h" +#include "BulletDynamics/ConstraintSolver/btConstraintSolver.h" struct InplaceSolverIslandCallbackMt; +/// +/// btConstraintSolverPoolMt - masquerades as a constraint solver, but really it is a threadsafe pool of them. +/// +/// Each solver in the pool is protected by a mutex. When solveGroup is called from a thread, +/// the pool looks for a solver that isn't being used by another thread, locks it, and dispatches the +/// call to the solver. +/// So long as there are at least as many solvers as there are hardware threads, it should never need to +/// spin wait. +/// +class btConstraintSolverPoolMt : public btConstraintSolver +{ +public: + // create the solvers for me + explicit btConstraintSolverPoolMt( int numSolvers ); + + // pass in fully constructed solvers (destructor will delete them) + btConstraintSolverPoolMt( btConstraintSolver** solvers, int numSolvers ); + + virtual ~btConstraintSolverPoolMt(); + + ///solve a group of constraints + virtual btScalar solveGroup( btCollisionObject** bodies, + int numBodies, + btPersistentManifold** manifolds, + int numManifolds, + btTypedConstraint** constraints, + int numConstraints, + const btContactSolverInfo& info, + btIDebugDraw* debugDrawer, + btDispatcher* dispatcher + ) BT_OVERRIDE; + + virtual void reset() BT_OVERRIDE; + virtual btConstraintSolverType getSolverType() const BT_OVERRIDE { return m_solverType; } + +private: + const static size_t kCacheLineSize = 128; + struct ThreadSolver + { + btConstraintSolver* solver; + btSpinMutex mutex; + char _cachelinePadding[ kCacheLineSize - sizeof( btSpinMutex ) - sizeof( void* ) ]; // keep mutexes from sharing a cache line + }; + btAlignedObjectArray m_solvers; + btConstraintSolverType m_solverType; + + ThreadSolver* getAndLockThreadSolver(); + void init( btConstraintSolver** solvers, int numSolvers ); +}; + + + /// /// btDiscreteDynamicsWorldMt -- a version of DiscreteDynamicsWorld with some minor changes to support /// solving simulation islands on multiple threads. /// +/// Should function exactly like btDiscreteDynamicsWorld. +/// Also 3 methods that iterate over all of the rigidbodies can run in parallel: +/// - predictUnconstraintMotion +/// - integrateTransforms +/// - createPredictiveContacts +/// ATTRIBUTE_ALIGNED16(class) btDiscreteDynamicsWorldMt : public btDiscreteDynamicsWorld { protected: InplaceSolverIslandCallbackMt* m_solverIslandCallbackMt; - virtual void solveConstraints(btContactSolverInfo& solverInfo); + virtual void solveConstraints(btContactSolverInfo& solverInfo) BT_OVERRIDE; + + virtual void predictUnconstraintMotion( btScalar timeStep ) BT_OVERRIDE; + + struct UpdaterCreatePredictiveContacts : public btIParallelForBody + { + btScalar timeStep; + btRigidBody** rigidBodies; + btDiscreteDynamicsWorldMt* world; + + void forLoop( int iBegin, int iEnd ) const BT_OVERRIDE + { + world->createPredictiveContactsInternal( &rigidBodies[ iBegin ], iEnd - iBegin, timeStep ); + } + }; + virtual void createPredictiveContacts( btScalar timeStep ) BT_OVERRIDE; + + struct UpdaterIntegrateTransforms : public btIParallelForBody + { + btScalar timeStep; + btRigidBody** rigidBodies; + btDiscreteDynamicsWorldMt* world; + + void forLoop( int iBegin, int iEnd ) const BT_OVERRIDE + { + world->integrateTransformsInternal( &rigidBodies[ iBegin ], iEnd - iBegin, timeStep ); + } + }; + virtual void integrateTransforms( btScalar timeStep ) BT_OVERRIDE; public: BT_DECLARE_ALIGNED_ALLOCATOR(); - btDiscreteDynamicsWorldMt(btDispatcher* dispatcher,btBroadphaseInterface* pairCache,btConstraintSolver* constraintSolver,btCollisionConfiguration* collisionConfiguration); + btDiscreteDynamicsWorldMt(btDispatcher* dispatcher, + btBroadphaseInterface* pairCache, + btConstraintSolverPoolMt* constraintSolver, // Note this should be a solver-pool for multi-threading + btCollisionConfiguration* collisionConfiguration + ); virtual ~btDiscreteDynamicsWorldMt(); }; diff --git a/src/BulletDynamics/Dynamics/btSimulationIslandManagerMt.cpp b/src/BulletDynamics/Dynamics/btSimulationIslandManagerMt.cpp index ad63b6ee0..99b34353c 100644 --- a/src/BulletDynamics/Dynamics/btSimulationIslandManagerMt.cpp +++ b/src/BulletDynamics/Dynamics/btSimulationIslandManagerMt.cpp @@ -15,6 +15,7 @@ subject to the following restrictions: #include "LinearMath/btScalar.h" +#include "LinearMath/btThreads.h" #include "btSimulationIslandManagerMt.h" #include "BulletCollision/BroadphaseCollision/btDispatcher.h" #include "BulletCollision/NarrowPhaseCollision/btPersistentManifold.h" @@ -44,7 +45,7 @@ btSimulationIslandManagerMt::btSimulationIslandManagerMt() { m_minimumSolverBatchSize = calcBatchCost(0, 128, 0); m_batchIslandMinBodyCount = 32; - m_islandDispatch = defaultIslandDispatch; + m_islandDispatch = parallelIslandDispatch; m_batchIsland = NULL; } @@ -545,8 +546,9 @@ void btSimulationIslandManagerMt::mergeIslands() } -void btSimulationIslandManagerMt::defaultIslandDispatch( btAlignedObjectArray* islandsPtr, IslandCallback* callback ) +void btSimulationIslandManagerMt::serialIslandDispatch( btAlignedObjectArray* islandsPtr, IslandCallback* callback ) { + BT_PROFILE( "serialIslandDispatch" ); // serial dispatch btAlignedObjectArray& islands = *islandsPtr; for ( int i = 0; i < islands.size(); ++i ) @@ -565,6 +567,41 @@ void btSimulationIslandManagerMt::defaultIslandDispatch( btAlignedObjectArray* islandsPtr; + btSimulationIslandManagerMt::IslandCallback* callback; + + void forLoop( int iBegin, int iEnd ) const BT_OVERRIDE + { + for ( int i = iBegin; i < iEnd; ++i ) + { + btSimulationIslandManagerMt::Island* island = ( *islandsPtr )[ i ]; + btPersistentManifold** manifolds = island->manifoldArray.size() ? &island->manifoldArray[ 0 ] : NULL; + btTypedConstraint** constraintsPtr = island->constraintArray.size() ? &island->constraintArray[ 0 ] : NULL; + callback->processIsland( &island->bodyArray[ 0 ], + island->bodyArray.size(), + manifolds, + island->manifoldArray.size(), + constraintsPtr, + island->constraintArray.size(), + island->id + ); + } + } +}; + +void btSimulationIslandManagerMt::parallelIslandDispatch( btAlignedObjectArray* islandsPtr, IslandCallback* callback ) +{ + BT_PROFILE( "parallelIslandDispatch" ); + int grainSize = 1; // iterations per task + UpdateIslandDispatcher dispatcher; + dispatcher.islandsPtr = islandsPtr; + dispatcher.callback = callback; + btParallelFor( 0, islandsPtr->size(), grainSize, dispatcher ); +} + + ///@todo: this is random access, it can be walked 'cache friendly'! void btSimulationIslandManagerMt::buildAndProcessIslands( btDispatcher* dispatcher, btCollisionWorld* collisionWorld, diff --git a/src/BulletDynamics/Dynamics/btSimulationIslandManagerMt.h b/src/BulletDynamics/Dynamics/btSimulationIslandManagerMt.h index 117061623..9a781aaef 100644 --- a/src/BulletDynamics/Dynamics/btSimulationIslandManagerMt.h +++ b/src/BulletDynamics/Dynamics/btSimulationIslandManagerMt.h @@ -59,7 +59,8 @@ public: ) = 0; }; typedef void( *IslandDispatchFunc ) ( btAlignedObjectArray* islands, IslandCallback* callback ); - static void defaultIslandDispatch( btAlignedObjectArray* islands, IslandCallback* callback ); + static void serialIslandDispatch( btAlignedObjectArray* islandsPtr, IslandCallback* callback ); + static void parallelIslandDispatch( btAlignedObjectArray* islandsPtr, IslandCallback* callback ); protected: btAlignedObjectArray m_allocatedIslands; // owner of all Islands btAlignedObjectArray m_activeIslands; // islands actively in use diff --git a/src/BulletDynamics/Featherstone/btMultiBody.cpp b/src/BulletDynamics/Featherstone/btMultiBody.cpp index ca9652f1e..036b226e8 100644 --- a/src/BulletDynamics/Featherstone/btMultiBody.cpp +++ b/src/BulletDynamics/Featherstone/btMultiBody.cpp @@ -154,6 +154,8 @@ void btMultiBody::setupFixed(int i, m_links[i].m_mass = mass; m_links[i].m_inertiaLocal = inertia; m_links[i].m_parent = parent; + m_links[i].setAxisTop(0, 0., 0., 0.); + m_links[i].setAxisBottom(0, btVector3(0,0,0)); m_links[i].m_zeroRotParentToThis = rotParentToThis; m_links[i].m_dVector = thisPivotToThisComOffset; m_links[i].m_eVector = parentComToThisPivotOffset; @@ -522,7 +524,8 @@ void btMultiBody::compTreeLinkVelocities(btVector3 *omega, btVector3 *vel) const omega[0] = quatRotate(m_baseQuat ,getBaseOmega()); vel[0] = quatRotate(m_baseQuat ,getBaseVel()); - for (int i = 0; i < num_links; ++i) { + for (int i = 0; i < num_links; ++i) + { const int parent = m_links[i].m_parent; // transform parent vel into this frame, store in omega[i+1], vel[i+1] @@ -531,9 +534,24 @@ void btMultiBody::compTreeLinkVelocities(btVector3 *omega, btVector3 *vel) const omega[i+1], vel[i+1]); // now add qidot * shat_i - omega[i+1] += getJointVel(i) * m_links[i].getAxisTop(0); - vel[i+1] += getJointVel(i) * m_links[i].getAxisBottom(0); - } + //only supported for revolute/prismatic joints, todo: spherical and planar joints + switch(m_links[i].m_jointType) + { + case btMultibodyLink::ePrismatic: + case btMultibodyLink::eRevolute: + { + btVector3 axisTop = m_links[i].getAxisTop(0); + btVector3 axisBottom = m_links[i].getAxisBottom(0); + btScalar jointVel = getJointVel(i); + omega[i+1] += jointVel * axisTop; + vel[i+1] += jointVel * axisBottom; + break; + } + default: + { + } + } + } } btScalar btMultiBody::getKineticEnergy() const @@ -2013,10 +2031,10 @@ const char* btMultiBody::serialize(void* dataBuffer, class btSerializer* seriali } mbd->m_links = mbd->m_numLinks? (btMultiBodyLinkData*) serializer->getUniquePointer((void*)&m_links[0]):0; - // Fill padding with zeros to appease msan. -#ifdef BT_USE_DOUBLE_PRECISION - memset(mbd->m_padding, 0, sizeof(mbd->m_padding)); -#endif - + // Fill padding with zeros to appease msan. +#ifdef BT_USE_DOUBLE_PRECISION + memset(mbd->m_padding, 0, sizeof(mbd->m_padding)); +#endif + return btMultiBodyDataName; } diff --git a/src/BulletDynamics/Featherstone/btMultiBody.h b/src/BulletDynamics/Featherstone/btMultiBody.h index 8d89cac7d..ac5f0993e 100644 --- a/src/BulletDynamics/Featherstone/btMultiBody.h +++ b/src/BulletDynamics/Featherstone/btMultiBody.h @@ -142,7 +142,11 @@ public: btMultiBodyLinkCollider* getLinkCollider(int index) { - return m_colliders[index]; + if (index >= 0 && index < getNumLinks()) + { + return getLink(index).m_collider; + } + return 0; } // @@ -655,7 +659,6 @@ private: btVector3 m_baseConstraintTorque; // external torque applied to base. World frame. btAlignedObjectArray m_links; // array of m_links, excluding the base. index from 0 to num_links-1. - btAlignedObjectArray m_colliders; // diff --git a/src/BulletDynamics/Featherstone/btMultiBodyConstraint.h b/src/BulletDynamics/Featherstone/btMultiBodyConstraint.h index 7204f2785..8c28bbf4c 100644 --- a/src/BulletDynamics/Featherstone/btMultiBodyConstraint.h +++ b/src/BulletDynamics/Featherstone/btMultiBodyConstraint.h @@ -183,6 +183,10 @@ public: virtual void debugDraw(class btIDebugDraw* drawer)=0; + virtual void setGearRatio(btScalar ratio) {} + virtual void setGearAuxLink(int gearAuxLink) {} + + }; #endif //BT_MULTIBODY_CONSTRAINT_H diff --git a/src/BulletDynamics/Featherstone/btMultiBodyConstraintSolver.cpp b/src/BulletDynamics/Featherstone/btMultiBodyConstraintSolver.cpp index dac631c08..1e2d07409 100644 --- a/src/BulletDynamics/Featherstone/btMultiBodyConstraintSolver.cpp +++ b/src/BulletDynamics/Featherstone/btMultiBodyConstraintSolver.cpp @@ -491,7 +491,7 @@ void btMultiBodyConstraintSolver::setupMultiBodyContactConstraint(btMultiBodySol if(!isFriction) { - restitution = restitutionCurve(rel_vel, cp.m_combinedRestitution); + restitution = restitutionCurve(rel_vel, cp.m_combinedRestitution, infoGlobal.m_restitutionVelocityThreshold); if (restitution <= btScalar(0.)) { restitution = 0.f; @@ -665,12 +665,12 @@ void btMultiBodyConstraintSolver::setupMultiBodyTorsionalFrictionConstraint(btMu btScalar* delta = &m_data.m_deltaVelocitiesUnitImpulse[solverConstraint.m_jacAindex]; multiBodyA->calcAccelerationDeltasMultiDof(&m_data.m_jacobians[solverConstraint.m_jacAindex],delta,m_data.scratch_r, m_data.scratch_v); - btVector3 torqueAxis0 = constraintNormal; + btVector3 torqueAxis0 = -constraintNormal; solverConstraint.m_relpos1CrossNormal = torqueAxis0; solverConstraint.m_contactNormal1 = btVector3(0,0,0); } else { - btVector3 torqueAxis0 = constraintNormal; + btVector3 torqueAxis0 = -constraintNormal; solverConstraint.m_relpos1CrossNormal = torqueAxis0; solverConstraint.m_contactNormal1 = btVector3(0,0,0); solverConstraint.m_angularComponentA = rb0 ? rb0->getInvInertiaTensorWorld()*torqueAxis0*rb0->getAngularFactor() : btVector3(0,0,0); @@ -708,21 +708,20 @@ void btMultiBodyConstraintSolver::setupMultiBodyTorsionalFrictionConstraint(btMu multiBodyB->calcAccelerationDeltasMultiDof(&m_data.m_jacobians[solverConstraint.m_jacBindex],&m_data.m_deltaVelocitiesUnitImpulse[solverConstraint.m_jacBindex],m_data.scratch_r, m_data.scratch_v); btVector3 torqueAxis1 = constraintNormal; - solverConstraint.m_relpos2CrossNormal = -torqueAxis1; + solverConstraint.m_relpos2CrossNormal = torqueAxis1; solverConstraint.m_contactNormal2 = -btVector3(0,0,0); } else { btVector3 torqueAxis1 = constraintNormal; - solverConstraint.m_relpos2CrossNormal = -torqueAxis1; + solverConstraint.m_relpos2CrossNormal = torqueAxis1; solverConstraint.m_contactNormal2 = -btVector3(0,0,0); - solverConstraint.m_angularComponentB = rb1 ? rb1->getInvInertiaTensorWorld()*-torqueAxis1*rb1->getAngularFactor() : btVector3(0,0,0); + solverConstraint.m_angularComponentB = rb1 ? rb1->getInvInertiaTensorWorld()*torqueAxis1*rb1->getAngularFactor() : btVector3(0,0,0); } { - btVector3 vec; btScalar denom0 = 0.f; btScalar denom1 = 0.f; btScalar* jacB = 0; @@ -745,8 +744,8 @@ void btMultiBodyConstraintSolver::setupMultiBodyTorsionalFrictionConstraint(btMu { if (rb0) { - vec = ( solverConstraint.m_angularComponentA).cross(rel_pos1); - denom0 = rb0->getInvMass() + constraintNormal.dot(vec); + btVector3 iMJaA = rb0?rb0->getInvInertiaTensorWorld()*solverConstraint.m_relpos1CrossNormal:btVector3(0,0,0); + denom0 = iMJaA.dot(solverConstraint.m_relpos1CrossNormal); } } if (multiBodyB) @@ -765,8 +764,8 @@ void btMultiBodyConstraintSolver::setupMultiBodyTorsionalFrictionConstraint(btMu { if (rb1) { - vec = ( -solverConstraint.m_angularComponentB).cross(rel_pos2); - denom1 = rb1->getInvMass() + constraintNormal.dot(vec); + btVector3 iMJaB = rb1?rb1->getInvInertiaTensorWorld()*solverConstraint.m_relpos2CrossNormal:btVector3(0,0,0); + denom1 = iMJaB.dot(solverConstraint.m_relpos2CrossNormal); } } @@ -808,7 +807,10 @@ void btMultiBodyConstraintSolver::setupMultiBodyTorsionalFrictionConstraint(btMu { if (rb0) { - rel_vel += rb0->getVelocityInLocalPoint(rel_pos1).dot(solverConstraint.m_contactNormal1); + btSolverBody* solverBodyA = &m_tmpSolverBodyPool[solverConstraint.m_solverBodyIdA]; + rel_vel += solverConstraint.m_contactNormal1.dot(rb0?solverBodyA->m_linearVelocity+solverBodyA->m_externalForceImpulse:btVector3(0,0,0)) + + solverConstraint.m_relpos1CrossNormal.dot(rb0?solverBodyA->m_angularVelocity:btVector3(0,0,0)); + } } if (multiBodyB) @@ -822,7 +824,10 @@ void btMultiBodyConstraintSolver::setupMultiBodyTorsionalFrictionConstraint(btMu { if (rb1) { - rel_vel += rb1->getVelocityInLocalPoint(rel_pos2).dot(solverConstraint.m_contactNormal2); + btSolverBody* solverBodyB = &m_tmpSolverBodyPool[solverConstraint.m_solverBodyIdB]; + rel_vel += solverConstraint.m_contactNormal2.dot(rb1?solverBodyB->m_linearVelocity+solverBodyB->m_externalForceImpulse:btVector3(0,0,0)) + + solverConstraint.m_relpos2CrossNormal.dot(rb1?solverBodyB->m_angularVelocity:btVector3(0,0,0)); + } } @@ -830,7 +835,7 @@ void btMultiBodyConstraintSolver::setupMultiBodyTorsionalFrictionConstraint(btMu if(!isFriction) { - restitution = restitutionCurve(rel_vel, cp.m_combinedRestitution); + restitution = restitutionCurve(rel_vel, cp.m_combinedRestitution, infoGlobal.m_restitutionVelocityThreshold); if (restitution <= btScalar(0.)) { restitution = 0.f; @@ -844,12 +849,9 @@ void btMultiBodyConstraintSolver::setupMultiBodyTorsionalFrictionConstraint(btMu { - btScalar velocityError = restitution - rel_vel;// * damping; //note for friction restitution is always set to 0 (check above) so it is acutally velocityError = -rel_vel for friction + btScalar velocityError = 0 - rel_vel;// * damping; //note for friction restitution is always set to 0 (check above) so it is acutally velocityError = -rel_vel for friction - if (penetration>0) - { - velocityError -= penetration / infoGlobal.m_timeStep; - } + btScalar velocityImpulse = velocityError*solverConstraint.m_jacDiagABInv; @@ -1021,6 +1023,33 @@ void btMultiBodyConstraintSolver::convertMultiBodyContact(btPersistentManifold* ///In that case, you can set the target relative motion in each friction direction (cp.m_contactMotion1 and cp.m_contactMotion2) ///this will give a conveyor belt effect /// + + btPlaneSpace1(cp.m_normalWorldOnB,cp.m_lateralFrictionDir1,cp.m_lateralFrictionDir2); + cp.m_lateralFrictionDir1.normalize(); + cp.m_lateralFrictionDir2.normalize(); + + if (rollingFriction > 0 ) + { + if (cp.m_combinedSpinningFriction>0) + { + addMultiBodyTorsionalFrictionConstraint(cp.m_normalWorldOnB,manifold,frictionIndex,cp,cp.m_combinedSpinningFriction, colObj0,colObj1, relaxation,infoGlobal); + } + if (cp.m_combinedRollingFriction>0) + { + + applyAnisotropicFriction(colObj0,cp.m_lateralFrictionDir1,btCollisionObject::CF_ANISOTROPIC_ROLLING_FRICTION); + applyAnisotropicFriction(colObj1,cp.m_lateralFrictionDir1,btCollisionObject::CF_ANISOTROPIC_ROLLING_FRICTION); + applyAnisotropicFriction(colObj0,cp.m_lateralFrictionDir2,btCollisionObject::CF_ANISOTROPIC_ROLLING_FRICTION); + applyAnisotropicFriction(colObj1,cp.m_lateralFrictionDir2,btCollisionObject::CF_ANISOTROPIC_ROLLING_FRICTION); + + if (cp.m_lateralFrictionDir1.length()>0.001) + addMultiBodyTorsionalFrictionConstraint(cp.m_lateralFrictionDir1,manifold,frictionIndex,cp,cp.m_combinedRollingFriction, colObj0,colObj1, relaxation,infoGlobal); + + if (cp.m_lateralFrictionDir2.length()>0.001) + addMultiBodyTorsionalFrictionConstraint(cp.m_lateralFrictionDir2,manifold,frictionIndex,cp,cp.m_combinedRollingFriction, colObj0,colObj1, relaxation,infoGlobal); + } + rollingFriction--; + } if (!(infoGlobal.m_solverMode & SOLVER_ENABLE_FRICTION_DIRECTION_CACHING) || !(cp.m_contactPointFlags&BT_CONTACT_FLAG_LATERAL_FRICTION_INITIALIZED)) {/* cp.m_lateralFrictionDir1 = vel - cp.m_normalWorldOnB * rel_vel; @@ -1045,26 +1074,12 @@ void btMultiBodyConstraintSolver::convertMultiBodyContact(btPersistentManifold* } else */ { - btPlaneSpace1(cp.m_normalWorldOnB,cp.m_lateralFrictionDir1,cp.m_lateralFrictionDir2); + applyAnisotropicFriction(colObj0,cp.m_lateralFrictionDir1,btCollisionObject::CF_ANISOTROPIC_FRICTION); applyAnisotropicFriction(colObj1,cp.m_lateralFrictionDir1,btCollisionObject::CF_ANISOTROPIC_FRICTION); addMultiBodyFrictionConstraint(cp.m_lateralFrictionDir1,manifold,frictionIndex,cp,colObj0,colObj1, relaxation,infoGlobal); - if (rollingFriction > 0 ) - { - if (cp.m_combinedSpinningFriction>0) - { - addMultiBodyTorsionalFrictionConstraint(cp.m_normalWorldOnB,manifold,frictionIndex,cp,cp.m_combinedSpinningFriction, colObj0,colObj1, relaxation,infoGlobal); - } - if (cp.m_combinedRollingFriction>0) - { - - addMultiBodyTorsionalFrictionConstraint(cp.m_lateralFrictionDir1,manifold,frictionIndex,cp,cp.m_combinedRollingFriction, colObj0,colObj1, relaxation,infoGlobal); - addMultiBodyTorsionalFrictionConstraint(cp.m_lateralFrictionDir2,manifold,frictionIndex,cp,cp.m_combinedRollingFriction, colObj0,colObj1, relaxation,infoGlobal); - } - rollingFriction--; - } if ((infoGlobal.m_solverMode & SOLVER_USE_2_FRICTION_DIRECTIONS)) { diff --git a/src/BulletDynamics/Featherstone/btMultiBodyGearConstraint.cpp b/src/BulletDynamics/Featherstone/btMultiBodyGearConstraint.cpp new file mode 100644 index 000000000..3fdd51815 --- /dev/null +++ b/src/BulletDynamics/Featherstone/btMultiBodyGearConstraint.cpp @@ -0,0 +1,177 @@ +/* +Bullet Continuous Collision Detection and Physics Library +Copyright (c) 2013 Erwin Coumans http://bulletphysics.org + +This software is provided 'as-is', without any express or implied warranty. +In no event will the authors be held liable for any damages arising from the use of this software. +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it freely, +subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. +2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. +3. This notice may not be removed or altered from any source distribution. +*/ + +///This file was written by Erwin Coumans + +#include "btMultiBodyGearConstraint.h" +#include "btMultiBody.h" +#include "btMultiBodyLinkCollider.h" +#include "BulletCollision/CollisionDispatch/btCollisionObject.h" + +btMultiBodyGearConstraint::btMultiBodyGearConstraint(btMultiBody* bodyA, int linkA, btMultiBody* bodyB, int linkB, const btVector3& pivotInA, const btVector3& pivotInB, const btMatrix3x3& frameInA, const btMatrix3x3& frameInB) + :btMultiBodyConstraint(bodyA,bodyB,linkA,linkB,1,false), + m_gearRatio(1), + m_gearAuxLink(-1) +{ + +} + +void btMultiBodyGearConstraint::finalizeMultiDof() +{ + + allocateJacobiansMultiDof(); + + m_numDofsFinalized = m_jacSizeBoth; +} + +btMultiBodyGearConstraint::~btMultiBodyGearConstraint() +{ +} + + +int btMultiBodyGearConstraint::getIslandIdA() const +{ + + if (m_bodyA) + { + btMultiBodyLinkCollider* col = m_bodyA->getBaseCollider(); + if (col) + return col->getIslandTag(); + for (int i=0;igetNumLinks();i++) + { + if (m_bodyA->getLink(i).m_collider) + return m_bodyA->getLink(i).m_collider->getIslandTag(); + } + } + return -1; +} + +int btMultiBodyGearConstraint::getIslandIdB() const +{ + if (m_bodyB) + { + btMultiBodyLinkCollider* col = m_bodyB->getBaseCollider(); + if (col) + return col->getIslandTag(); + + for (int i=0;igetNumLinks();i++) + { + col = m_bodyB->getLink(i).m_collider; + if (col) + return col->getIslandTag(); + } + } + return -1; +} + + +void btMultiBodyGearConstraint::createConstraintRows(btMultiBodyConstraintArray& constraintRows, + btMultiBodyJacobianData& data, + const btContactSolverInfo& infoGlobal) +{ + // only positions need to be updated -- data.m_jacobians and force + // directions were set in the ctor and never change. + + if (m_numDofsFinalized != m_jacSizeBoth) + { + finalizeMultiDof(); + } + + //don't crash + if (m_numDofsFinalized != m_jacSizeBoth) + return; + + + if (m_maxAppliedImpulse==0.f) + return; + + // note: we rely on the fact that data.m_jacobians are + // always initialized to zero by the Constraint ctor + int linkDoF = 0; + unsigned int offsetA = 6 + (m_bodyA->getLink(m_linkA).m_dofOffset + linkDoF); + unsigned int offsetB = 6 + (m_bodyB->getLink(m_linkB).m_dofOffset + linkDoF); + + // row 0: the lower bound + jacobianA(0)[offsetA] = 1; + jacobianB(0)[offsetB] = m_gearRatio; + + const btScalar posError = 0; + const btVector3 dummy(0, 0, 0); + btScalar erp = infoGlobal.m_erp; + btScalar kp = 1; + btScalar kd = 1; + int numRows = getNumRows(); + + for (int row=0;rowgetJointPosMultiDof(m_linkA)[dof]; + btScalar currentVelocity = m_bodyA->getJointVelMultiDof(m_linkA)[dof]; + btScalar auxVel = 0; + + if (m_gearAuxLink>=0) + { + auxVel = m_bodyA->getJointVelMultiDof(m_gearAuxLink)[dof]; + } + currentVelocity += auxVel; + + //btScalar positionStabiliationTerm = erp*(m_desiredPosition-currentPosition)/infoGlobal.m_timeStep; + //btScalar velocityError = (m_desiredVelocity - currentVelocity); + + btScalar desiredRelativeVelocity = auxVel; + + fillMultiBodyConstraint(constraintRow,data,jacobianA(row),jacobianB(row),dummy,dummy,dummy,dummy,posError,infoGlobal,-m_maxAppliedImpulse,m_maxAppliedImpulse,false,1,false,desiredRelativeVelocity); + + constraintRow.m_orgConstraint = this; + constraintRow.m_orgDofIndex = row; + { + //expect either prismatic or revolute joint type for now + btAssert((m_bodyA->getLink(m_linkA).m_jointType == btMultibodyLink::eRevolute)||(m_bodyA->getLink(m_linkA).m_jointType == btMultibodyLink::ePrismatic)); + switch (m_bodyA->getLink(m_linkA).m_jointType) + { + case btMultibodyLink::eRevolute: + { + constraintRow.m_contactNormal1.setZero(); + constraintRow.m_contactNormal2.setZero(); + btVector3 revoluteAxisInWorld = quatRotate(m_bodyA->getLink(m_linkA).m_cachedWorldTransform.getRotation(),m_bodyA->getLink(m_linkA).m_axes[0].m_topVec); + constraintRow.m_relpos1CrossNormal=revoluteAxisInWorld; + constraintRow.m_relpos2CrossNormal=-revoluteAxisInWorld; + + break; + } + case btMultibodyLink::ePrismatic: + { + btVector3 prismaticAxisInWorld = quatRotate(m_bodyA->getLink(m_linkA).m_cachedWorldTransform.getRotation(),m_bodyA->getLink(m_linkA).m_axes[0].m_bottomVec); + constraintRow.m_contactNormal1=prismaticAxisInWorld; + constraintRow.m_contactNormal2=-prismaticAxisInWorld; + constraintRow.m_relpos1CrossNormal.setZero(); + constraintRow.m_relpos2CrossNormal.setZero(); + break; + } + default: + { + btAssert(0); + } + }; + + } + + } + +} + diff --git a/src/BulletDynamics/Featherstone/btMultiBodyGearConstraint.h b/src/BulletDynamics/Featherstone/btMultiBodyGearConstraint.h new file mode 100644 index 000000000..711a73e46 --- /dev/null +++ b/src/BulletDynamics/Featherstone/btMultiBodyGearConstraint.h @@ -0,0 +1,108 @@ +/* +Bullet Continuous Collision Detection and Physics Library +Copyright (c) 2013 Erwin Coumans http://bulletphysics.org + +This software is provided 'as-is', without any express or implied warranty. +In no event will the authors be held liable for any damages arising from the use of this software. +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it freely, +subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. +2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. +3. This notice may not be removed or altered from any source distribution. +*/ + +///This file was written by Erwin Coumans + +#ifndef BT_MULTIBODY_GEAR_CONSTRAINT_H +#define BT_MULTIBODY_GEAR_CONSTRAINT_H + +#include "btMultiBodyConstraint.h" + +class btMultiBodyGearConstraint : public btMultiBodyConstraint +{ +protected: + + btRigidBody* m_rigidBodyA; + btRigidBody* m_rigidBodyB; + btVector3 m_pivotInA; + btVector3 m_pivotInB; + btMatrix3x3 m_frameInA; + btMatrix3x3 m_frameInB; + btScalar m_gearRatio; + int m_gearAuxLink; + +public: + + //btMultiBodyGearConstraint(btMultiBody* body, int link, btRigidBody* bodyB, const btVector3& pivotInA, const btVector3& pivotInB, const btMatrix3x3& frameInA, const btMatrix3x3& frameInB); + btMultiBodyGearConstraint(btMultiBody* bodyA, int linkA, btMultiBody* bodyB, int linkB, const btVector3& pivotInA, const btVector3& pivotInB, const btMatrix3x3& frameInA, const btMatrix3x3& frameInB); + + virtual ~btMultiBodyGearConstraint(); + + virtual void finalizeMultiDof(); + + virtual int getIslandIdA() const; + virtual int getIslandIdB() const; + + virtual void createConstraintRows(btMultiBodyConstraintArray& constraintRows, + btMultiBodyJacobianData& data, + const btContactSolverInfo& infoGlobal); + + const btVector3& getPivotInA() const + { + return m_pivotInA; + } + + void setPivotInA(const btVector3& pivotInA) + { + m_pivotInA = pivotInA; + } + + const btVector3& getPivotInB() const + { + return m_pivotInB; + } + + virtual void setPivotInB(const btVector3& pivotInB) + { + m_pivotInB = pivotInB; + } + + const btMatrix3x3& getFrameInA() const + { + return m_frameInA; + } + + void setFrameInA(const btMatrix3x3& frameInA) + { + m_frameInA = frameInA; + } + + const btMatrix3x3& getFrameInB() const + { + return m_frameInB; + } + + virtual void setFrameInB(const btMatrix3x3& frameInB) + { + m_frameInB = frameInB; + } + + virtual void debugDraw(class btIDebugDraw* drawer) + { + //todo(erwincoumans) + } + + virtual void setGearRatio(btScalar gearRatio) + { + m_gearRatio = gearRatio; + } + virtual void setGearAuxLink(int gearAuxLink) + { + m_gearAuxLink = gearAuxLink; + } + +}; + +#endif //BT_MULTIBODY_GEAR_CONSTRAINT_H diff --git a/src/BulletDynamics/Featherstone/btMultiBodyLink.h b/src/BulletDynamics/Featherstone/btMultiBodyLink.h index 6cd8c69d3..8129ae901 100644 --- a/src/BulletDynamics/Featherstone/btMultiBodyLink.h +++ b/src/BulletDynamics/Featherstone/btMultiBodyLink.h @@ -96,9 +96,18 @@ struct btMultibodyLink // m_axesBottom[1][2] = unit vectors along the translational axes on that plane btSpatialMotionVector m_axes[6]; void setAxisTop(int dof, const btVector3 &axis) { m_axes[dof].m_topVec = axis; } - void setAxisBottom(int dof, const btVector3 &axis) { m_axes[dof].m_bottomVec = axis; } - void setAxisTop(int dof, const btScalar &x, const btScalar &y, const btScalar &z) { m_axes[dof].m_topVec.setValue(x, y, z); } - void setAxisBottom(int dof, const btScalar &x, const btScalar &y, const btScalar &z) { m_axes[dof].m_bottomVec.setValue(x, y, z); } + void setAxisBottom(int dof, const btVector3 &axis) + { + m_axes[dof].m_bottomVec = axis; + } + void setAxisTop(int dof, const btScalar &x, const btScalar &y, const btScalar &z) + { + m_axes[dof].m_topVec.setValue(x, y, z); + } + void setAxisBottom(int dof, const btScalar &x, const btScalar &y, const btScalar &z) + { + m_axes[dof].m_bottomVec.setValue(x, y, z); + } const btVector3 & getAxisTop(int dof) const { return m_axes[dof].m_topVec; } const btVector3 & getAxisBottom(int dof) const { return m_axes[dof].m_bottomVec; } diff --git a/src/LinearMath/btConvexHullComputer.cpp b/src/LinearMath/btConvexHullComputer.cpp index d58ac955f..2ea22cbe3 100644 --- a/src/LinearMath/btConvexHullComputer.cpp +++ b/src/LinearMath/btConvexHullComputer.cpp @@ -1277,8 +1277,21 @@ void btConvexHullInternal::computeInternal(int start, int end, IntermediateHull& return; } + { + Vertex* v = originalVertices[start]; + v->edges = NULL; + v->next = v; + v->prev = v; + + result.minXy = v; + result.maxXy = v; + result.minYx = v; + result.maxYx = v; + } + + return; } - // lint -fallthrough + case 1: { Vertex* v = originalVertices[start]; diff --git a/src/LinearMath/btHashMap.h b/src/LinearMath/btHashMap.h index 3e8b75b7d..a0a062750 100644 --- a/src/LinearMath/btHashMap.h +++ b/src/LinearMath/btHashMap.h @@ -389,28 +389,38 @@ protected: const Value* getAtIndex(int index) const { btAssert(index < m_valueArray.size()); - - return &m_valueArray[index]; + btAssert(index>=0); + if (index>=0 && index < m_valueArray.size()) + { + return &m_valueArray[index]; + } + return 0; } Value* getAtIndex(int index) { btAssert(index < m_valueArray.size()); - - return &m_valueArray[index]; + btAssert(index>=0); + if (index>=0 && index < m_valueArray.size()) + { + return &m_valueArray[index]; + } + return 0; } Key getKeyAtIndex(int index) { btAssert(index < m_keyArray.size()); - return m_keyArray[index]; + btAssert(index>=0); + return m_keyArray[index]; } const Key getKeyAtIndex(int index) const { btAssert(index < m_keyArray.size()); - return m_keyArray[index]; - } + btAssert(index>=0); + return m_keyArray[index]; + } Value* operator[](const Key& key) { diff --git a/src/LinearMath/btQuickprof.cpp b/src/LinearMath/btQuickprof.cpp index c690b57c8..aed3104a6 100644 --- a/src/LinearMath/btQuickprof.cpp +++ b/src/LinearMath/btQuickprof.cpp @@ -14,7 +14,7 @@ // Ogre (www.ogre3d.org). #include "btQuickprof.h" - +#include "btThreads.h" @@ -685,6 +685,9 @@ void CProfileManager::dumpAll() unsigned int btQuickprofGetCurrentThreadIndex2() { +#if BT_THREADSAFE + return btGetCurrentThreadIndex(); +#else // #if BT_THREADSAFE const unsigned int kNullIndex = ~0U; #ifdef _WIN32 #if defined(__MINGW32__) || defined(__MINGW64__) @@ -717,6 +720,7 @@ unsigned int btQuickprofGetCurrentThreadIndex2() sThreadIndex = gThreadCounter++; } return sThreadIndex; +#endif // #else // #if BT_THREADSAFE } void btEnterProfileZoneDefault(const char* name) diff --git a/src/LinearMath/btThreads.cpp b/src/LinearMath/btThreads.cpp index b72301a2e..59a7ea36e 100644 --- a/src/LinearMath/btThreads.cpp +++ b/src/LinearMath/btThreads.cpp @@ -14,7 +14,40 @@ subject to the following restrictions: #include "btThreads.h" +#include "btQuickprof.h" +#include // for min and max + +#if BT_USE_OPENMP && BT_THREADSAFE + +#include + +#endif // #if BT_USE_OPENMP && BT_THREADSAFE + + +#if BT_USE_PPL && BT_THREADSAFE + +// use Microsoft Parallel Patterns Library (installed with Visual Studio 2010 and later) +#include // if you get a compile error here, check whether your version of Visual Studio includes PPL +// Visual Studio 2010 and later should come with it +#include // for GetProcessorCount() + +#endif // #if BT_USE_PPL && BT_THREADSAFE + + +#if BT_USE_TBB && BT_THREADSAFE + +// use Intel Threading Building Blocks for thread management +#define __TBB_NO_IMPLICIT_LINKAGE 1 +#include +#include +#include +#include + +#endif // #if BT_USE_TBB && BT_THREADSAFE + + +#if BT_THREADSAFE // // Lightweight spin-mutex based on atomics // Using ordinary system-provided mutexes like Windows critical sections was noticeably slower @@ -22,8 +55,6 @@ subject to the following restrictions: // context switching. // -#if BT_THREADSAFE - #if __cplusplus >= 201103L // for anything claiming full C++11 compliance, use C++11 atomics @@ -169,28 +200,107 @@ void btSpinMutex::unlock() #endif //#else //#elif USE_MSVC_INTRINSICS +#else //#if BT_THREADSAFE + +// These should not be called ever +void btSpinMutex::lock() +{ + btAssert( !"unimplemented btSpinMutex::lock() called" ); +} + +void btSpinMutex::unlock() +{ + btAssert( !"unimplemented btSpinMutex::unlock() called" ); +} + +bool btSpinMutex::tryLock() +{ + btAssert( !"unimplemented btSpinMutex::tryLock() called" ); + return true; +} + +#define THREAD_LOCAL_STATIC static + +#endif // #else //#if BT_THREADSAFE + struct ThreadsafeCounter { unsigned int mCounter; btSpinMutex mMutex; - ThreadsafeCounter() {mCounter=0;} + ThreadsafeCounter() + { + mCounter = 0; + --mCounter; // first count should come back 0 + } unsigned int getNext() { // no need to optimize this with atomics, it is only called ONCE per thread! mMutex.lock(); - unsigned int val = mCounter++; + mCounter++; + if ( mCounter >= BT_MAX_THREAD_COUNT ) + { + btAssert( !"thread counter exceeded" ); + // wrap back to the first worker index + mCounter = 1; + } + unsigned int val = mCounter; mMutex.unlock(); return val; } }; + +static btITaskScheduler* gBtTaskScheduler; +static int gThreadsRunningCounter = 0; // useful for detecting if we are trying to do nested parallel-for calls +static btSpinMutex gThreadsRunningCounterMutex; static ThreadsafeCounter gThreadCounter; -// return a unique index per thread, starting with 0 and counting up +// +// BT_DETECT_BAD_THREAD_INDEX tries to detect when there are multiple threads assigned the same thread index. +// +// BT_DETECT_BAD_THREAD_INDEX is a developer option to test if +// certain assumptions about how the task scheduler manages its threads +// holds true. +// The main assumption is: +// - when the threadpool is resized, the task scheduler either +// 1. destroys all worker threads and creates all new ones in the correct number, OR +// 2. never destroys a worker thread +// +// We make that assumption because we can't easily enumerate the worker threads of a task scheduler +// to assign nice sequential thread-indexes. We also do not get notified if a worker thread is destroyed, +// so we can't tell when a thread-index is no longer being used. +// We allocate thread-indexes as needed with a sequential global thread counter. +// +// Our simple thread-counting scheme falls apart if the task scheduler destroys some threads but +// continues to re-use other threads and the application repeatedly resizes the thread pool of the +// task scheduler. +// In order to prevent the thread-counter from exceeding the global max (BT_MAX_THREAD_COUNT), we +// wrap the thread counter back to 1. This should only happen if the worker threads have all been +// destroyed and re-created. +// +// BT_DETECT_BAD_THREAD_INDEX only works for Win32 right now, +// but could be adapted to work with pthreads +#define BT_DETECT_BAD_THREAD_INDEX 0 + +#if BT_DETECT_BAD_THREAD_INDEX + +typedef DWORD ThreadId_t; +const static ThreadId_t kInvalidThreadId = 0; +ThreadId_t gDebugThreadIds[ BT_MAX_THREAD_COUNT ]; + +static ThreadId_t getDebugThreadId() +{ + return GetCurrentThreadId(); +} + +#endif // #if BT_DETECT_BAD_THREAD_INDEX + + +// return a unique index per thread, main thread is 0, worker threads are in [1, BT_MAX_THREAD_COUNT) unsigned int btGetCurrentThreadIndex() { const unsigned int kNullIndex = ~0U; @@ -198,7 +308,30 @@ unsigned int btGetCurrentThreadIndex() if ( sThreadIndex == kNullIndex ) { sThreadIndex = gThreadCounter.getNext(); + btAssert( sThreadIndex < BT_MAX_THREAD_COUNT ); } +#if BT_DETECT_BAD_THREAD_INDEX + if ( gBtTaskScheduler && sThreadIndex > 0 ) + { + ThreadId_t tid = getDebugThreadId(); + // if not set + if ( gDebugThreadIds[ sThreadIndex ] == kInvalidThreadId ) + { + // set it + gDebugThreadIds[ sThreadIndex ] = tid; + } + else + { + if ( gDebugThreadIds[ sThreadIndex ] != tid ) + { + // this could indicate the task scheduler is breaking our assumptions about + // how threads are managed when threadpool is resized + btAssert( !"there are 2 or more threads with the same thread-index!" ); + __debugbreak(); + } + } + } +#endif // #if BT_DETECT_BAD_THREAD_INDEX return sThreadIndex; } @@ -207,25 +340,383 @@ bool btIsMainThread() return btGetCurrentThreadIndex() == 0; } +void btResetThreadIndexCounter() +{ + // for when all current worker threads are destroyed + btAssert( btIsMainThread() ); + gThreadCounter.mCounter = 0; +} + +btITaskScheduler::btITaskScheduler( const char* name ) +{ + m_name = name; + m_savedThreadCounter = 0; + m_isActive = false; +} + +void btITaskScheduler::activate() +{ + // gThreadCounter is used to assign a thread-index to each worker thread in a task scheduler. + // The main thread is always thread-index 0, and worker threads are numbered from 1 to 63 (BT_MAX_THREAD_COUNT-1) + // The thread-indexes need to be unique amongst the threads that can be running simultaneously. + // Since only one task scheduler can be used at a time, it is OK for a pair of threads that belong to different + // task schedulers to share the same thread index because they can't be running at the same time. + // So each task scheduler needs to keep its own thread counter value + if ( !m_isActive ) + { + gThreadCounter.mCounter = m_savedThreadCounter; // restore saved thread counter + m_isActive = true; + } +} + +void btITaskScheduler::deactivate() +{ + if ( m_isActive ) + { + m_savedThreadCounter = gThreadCounter.mCounter; // save thread counter + m_isActive = false; + } +} + +void btPushThreadsAreRunning() +{ + gThreadsRunningCounterMutex.lock(); + gThreadsRunningCounter++; + gThreadsRunningCounterMutex.unlock(); +} + +void btPopThreadsAreRunning() +{ + gThreadsRunningCounterMutex.lock(); + gThreadsRunningCounter--; + gThreadsRunningCounterMutex.unlock(); +} + +bool btThreadsAreRunning() +{ + return gThreadsRunningCounter != 0; +} + + +void btSetTaskScheduler( btITaskScheduler* ts ) +{ + int threadId = btGetCurrentThreadIndex(); // make sure we call this on main thread at least once before any workers run + if ( threadId != 0 ) + { + btAssert( !"btSetTaskScheduler must be called from the main thread!" ); + return; + } + if ( gBtTaskScheduler ) + { + // deactivate old task scheduler + gBtTaskScheduler->deactivate(); + } + gBtTaskScheduler = ts; + if ( ts ) + { + // activate new task scheduler + ts->activate(); + } +} + + +btITaskScheduler* btGetTaskScheduler() +{ + return gBtTaskScheduler; +} + + +void btParallelFor( int iBegin, int iEnd, int grainSize, const btIParallelForBody& body ) +{ +#if BT_THREADSAFE + +#if BT_DETECT_BAD_THREAD_INDEX + if ( !btThreadsAreRunning() ) + { + // clear out thread ids + for ( int i = 0; i < BT_MAX_THREAD_COUNT; ++i ) + { + gDebugThreadIds[ i ] = kInvalidThreadId; + } + } +#endif // #if BT_DETECT_BAD_THREAD_INDEX + + btAssert( gBtTaskScheduler != NULL ); // call btSetTaskScheduler() with a valid task scheduler first! + gBtTaskScheduler->parallelFor( iBegin, iEnd, grainSize, body ); + #else // #if BT_THREADSAFE -// These should not be called ever -void btSpinMutex::lock() -{ - btAssert(!"unimplemented btSpinMutex::lock() called"); -} + // non-parallel version of btParallelFor + btAssert( !"called btParallelFor in non-threadsafe build. enable BT_THREADSAFE" ); + body.forLoop( iBegin, iEnd ); -void btSpinMutex::unlock() -{ - btAssert(!"unimplemented btSpinMutex::unlock() called"); -} - -bool btSpinMutex::tryLock() -{ - btAssert(!"unimplemented btSpinMutex::tryLock() called"); - return true; +#endif// #if BT_THREADSAFE } -#endif // #if BT_THREADSAFE +/// +/// btTaskSchedulerSequential -- non-threaded implementation of task scheduler +/// (really just useful for testing performance of single threaded vs multi) +/// +class btTaskSchedulerSequential : public btITaskScheduler +{ +public: + btTaskSchedulerSequential() : btITaskScheduler( "Sequential" ) {} + virtual int getMaxNumThreads() const BT_OVERRIDE { return 1; } + virtual int getNumThreads() const BT_OVERRIDE { return 1; } + virtual void setNumThreads( int numThreads ) BT_OVERRIDE {} + virtual void parallelFor( int iBegin, int iEnd, int grainSize, const btIParallelForBody& body ) BT_OVERRIDE + { + BT_PROFILE( "parallelFor_sequential" ); + body.forLoop( iBegin, iEnd ); + } +}; + + +#if BT_USE_OPENMP && BT_THREADSAFE +/// +/// btTaskSchedulerOpenMP -- wrapper around OpenMP task scheduler +/// +class btTaskSchedulerOpenMP : public btITaskScheduler +{ + int m_numThreads; +public: + btTaskSchedulerOpenMP() : btITaskScheduler( "OpenMP" ) + { + m_numThreads = 0; + } + virtual int getMaxNumThreads() const BT_OVERRIDE + { + return omp_get_max_threads(); + } + virtual int getNumThreads() const BT_OVERRIDE + { + return m_numThreads; + } + virtual void setNumThreads( int numThreads ) BT_OVERRIDE + { + // With OpenMP, because it is a standard with various implementations, we can't + // know for sure if every implementation has the same behavior of destroying all + // previous threads when resizing the threadpool + m_numThreads = ( std::max )( 1, ( std::min )( int( BT_MAX_THREAD_COUNT ), numThreads ) ); + omp_set_num_threads( 1 ); // hopefully, all previous threads get destroyed here + omp_set_num_threads( m_numThreads ); + m_savedThreadCounter = 0; + if ( m_isActive ) + { + btResetThreadIndexCounter(); + } + } + virtual void parallelFor( int iBegin, int iEnd, int grainSize, const btIParallelForBody& body ) BT_OVERRIDE + { + BT_PROFILE( "parallelFor_OpenMP" ); + btPushThreadsAreRunning(); +#pragma omp parallel for schedule( static, 1 ) + for ( int i = iBegin; i < iEnd; i += grainSize ) + { + BT_PROFILE( "OpenMP_job" ); + body.forLoop( i, ( std::min )( i + grainSize, iEnd ) ); + } + btPopThreadsAreRunning(); + } +}; +#endif // #if BT_USE_OPENMP && BT_THREADSAFE + + +#if BT_USE_TBB && BT_THREADSAFE +/// +/// btTaskSchedulerTBB -- wrapper around Intel Threaded Building Blocks task scheduler +/// +class btTaskSchedulerTBB : public btITaskScheduler +{ + int m_numThreads; + tbb::task_scheduler_init* m_tbbSchedulerInit; + +public: + btTaskSchedulerTBB() : btITaskScheduler( "IntelTBB" ) + { + m_numThreads = 0; + m_tbbSchedulerInit = NULL; + } + ~btTaskSchedulerTBB() + { + if ( m_tbbSchedulerInit ) + { + delete m_tbbSchedulerInit; + m_tbbSchedulerInit = NULL; + } + } + + virtual int getMaxNumThreads() const BT_OVERRIDE + { + return tbb::task_scheduler_init::default_num_threads(); + } + virtual int getNumThreads() const BT_OVERRIDE + { + return m_numThreads; + } + virtual void setNumThreads( int numThreads ) BT_OVERRIDE + { + m_numThreads = ( std::max )( 1, ( std::min )( int(BT_MAX_THREAD_COUNT), numThreads ) ); + if ( m_tbbSchedulerInit ) + { + // destroys all previous threads + delete m_tbbSchedulerInit; + m_tbbSchedulerInit = NULL; + } + m_tbbSchedulerInit = new tbb::task_scheduler_init( m_numThreads ); + m_savedThreadCounter = 0; + if ( m_isActive ) + { + btResetThreadIndexCounter(); + } + } + struct BodyAdapter + { + const btIParallelForBody* mBody; + + void operator()( const tbb::blocked_range& range ) const + { + BT_PROFILE( "TBB_job" ); + mBody->forLoop( range.begin(), range.end() ); + } + }; + virtual void parallelFor( int iBegin, int iEnd, int grainSize, const btIParallelForBody& body ) BT_OVERRIDE + { + BT_PROFILE( "parallelFor_TBB" ); + // TBB dispatch + BodyAdapter tbbBody; + tbbBody.mBody = &body; + btPushThreadsAreRunning(); + tbb::parallel_for( tbb::blocked_range( iBegin, iEnd, grainSize ), + tbbBody, + tbb::simple_partitioner() + ); + btPopThreadsAreRunning(); + } +}; +#endif // #if BT_USE_TBB && BT_THREADSAFE + + +#if BT_USE_PPL && BT_THREADSAFE +/// +/// btTaskSchedulerPPL -- wrapper around Microsoft Parallel Patterns Lib task scheduler +/// +class btTaskSchedulerPPL : public btITaskScheduler +{ + int m_numThreads; +public: + btTaskSchedulerPPL() : btITaskScheduler( "PPL" ) + { + m_numThreads = 0; + } + virtual int getMaxNumThreads() const BT_OVERRIDE + { + return concurrency::GetProcessorCount(); + } + virtual int getNumThreads() const BT_OVERRIDE + { + return m_numThreads; + } + virtual void setNumThreads( int numThreads ) BT_OVERRIDE + { + // capping the thread count for PPL due to a thread-index issue + const int maxThreadCount = (std::min)(int(BT_MAX_THREAD_COUNT), 31); + m_numThreads = ( std::max )( 1, ( std::min )( maxThreadCount, numThreads ) ); + using namespace concurrency; + if ( CurrentScheduler::Id() != -1 ) + { + CurrentScheduler::Detach(); + } + SchedulerPolicy policy; + { + // PPL seems to destroy threads when threadpool is shrunk, but keeps reusing old threads + // force it to destroy old threads + policy.SetConcurrencyLimits( 1, 1 ); + CurrentScheduler::Create( policy ); + CurrentScheduler::Detach(); + } + policy.SetConcurrencyLimits( m_numThreads, m_numThreads ); + CurrentScheduler::Create( policy ); + m_savedThreadCounter = 0; + if ( m_isActive ) + { + btResetThreadIndexCounter(); + } + } + struct BodyAdapter + { + const btIParallelForBody* mBody; + int mGrainSize; + int mIndexEnd; + + void operator()( int i ) const + { + BT_PROFILE( "PPL_job" ); + mBody->forLoop( i, ( std::min )( i + mGrainSize, mIndexEnd ) ); + } + }; + virtual void parallelFor( int iBegin, int iEnd, int grainSize, const btIParallelForBody& body ) BT_OVERRIDE + { + BT_PROFILE( "parallelFor_PPL" ); + // PPL dispatch + BodyAdapter pplBody; + pplBody.mBody = &body; + pplBody.mGrainSize = grainSize; + pplBody.mIndexEnd = iEnd; + btPushThreadsAreRunning(); + // note: MSVC 2010 doesn't support partitioner args, so avoid them + concurrency::parallel_for( iBegin, + iEnd, + grainSize, + pplBody + ); + btPopThreadsAreRunning(); + } +}; +#endif // #if BT_USE_PPL && BT_THREADSAFE + + +// create a non-threaded task scheduler (always available) +btITaskScheduler* btGetSequentialTaskScheduler() +{ + static btTaskSchedulerSequential sTaskScheduler; + return &sTaskScheduler; +} + + +// create an OpenMP task scheduler (if available, otherwise returns null) +btITaskScheduler* btGetOpenMPTaskScheduler() +{ +#if BT_USE_OPENMP && BT_THREADSAFE + static btTaskSchedulerOpenMP sTaskScheduler; + return &sTaskScheduler; +#else + return NULL; +#endif +} + + +// create an Intel TBB task scheduler (if available, otherwise returns null) +btITaskScheduler* btGetTBBTaskScheduler() +{ +#if BT_USE_TBB && BT_THREADSAFE + static btTaskSchedulerTBB sTaskScheduler; + return &sTaskScheduler; +#else + return NULL; +#endif +} + + +// create a PPL task scheduler (if available, otherwise returns null) +btITaskScheduler* btGetPPLTaskScheduler() +{ +#if BT_USE_PPL && BT_THREADSAFE + static btTaskSchedulerPPL sTaskScheduler; + return &sTaskScheduler; +#else + return NULL; +#endif +} diff --git a/src/LinearMath/btThreads.h b/src/LinearMath/btThreads.h index a15e5250b..05fd15ec8 100644 --- a/src/LinearMath/btThreads.h +++ b/src/LinearMath/btThreads.h @@ -19,6 +19,23 @@ subject to the following restrictions: #include "btScalar.h" // has definitions like SIMD_FORCE_INLINE +#if defined (_MSC_VER) && _MSC_VER >= 1600 +// give us a compile error if any signatures of overriden methods is changed +#define BT_OVERRIDE override +#endif + +#ifndef BT_OVERRIDE +#define BT_OVERRIDE +#endif + +const unsigned int BT_MAX_THREAD_COUNT = 64; // only if BT_THREADSAFE is 1 + +// for internal use only +bool btIsMainThread(); +bool btThreadsAreRunning(); +unsigned int btGetCurrentThreadIndex(); +void btResetThreadIndexCounter(); // notify that all worker threads have been destroyed + /// /// btSpinMutex -- lightweight spin-mutex implemented with atomic ops, never puts /// a thread to sleep because it is designed to be used with a task scheduler @@ -39,37 +56,100 @@ public: bool tryLock(); }; -#if BT_THREADSAFE -// for internal Bullet use only +// +// NOTE: btMutex* is for internal Bullet use only +// +// If BT_THREADSAFE is undefined or 0, should optimize away to nothing. +// This is good because for the single-threaded build of Bullet, any calls +// to these functions will be optimized out. +// +// However, for users of the multi-threaded build of Bullet this is kind +// of bad because if you call any of these functions from external code +// (where BT_THREADSAFE is undefined) you will get unexpected race conditions. +// SIMD_FORCE_INLINE void btMutexLock( btSpinMutex* mutex ) { +#if BT_THREADSAFE mutex->lock(); +#endif // #if BT_THREADSAFE } SIMD_FORCE_INLINE void btMutexUnlock( btSpinMutex* mutex ) { +#if BT_THREADSAFE mutex->unlock(); +#endif // #if BT_THREADSAFE } SIMD_FORCE_INLINE bool btMutexTryLock( btSpinMutex* mutex ) { +#if BT_THREADSAFE return mutex->tryLock(); +#else + return true; +#endif // #if BT_THREADSAFE } -// for internal use only -bool btIsMainThread(); -unsigned int btGetCurrentThreadIndex(); -const unsigned int BT_MAX_THREAD_COUNT = 64; -#else +// +// btIParallelForBody -- subclass this to express work that can be done in parallel +// +class btIParallelForBody +{ +public: + virtual ~btIParallelForBody() {} + virtual void forLoop( int iBegin, int iEnd ) const = 0; +}; + +// +// btITaskScheduler -- subclass this to implement a task scheduler that can dispatch work to +// worker threads +// +class btITaskScheduler +{ +public: + btITaskScheduler( const char* name ); + virtual ~btITaskScheduler() {} + const char* getName() const { return m_name; } + + virtual int getMaxNumThreads() const = 0; + virtual int getNumThreads() const = 0; + virtual void setNumThreads( int numThreads ) = 0; + virtual void parallelFor( int iBegin, int iEnd, int grainSize, const btIParallelForBody& body ) = 0; + + // internal use only + virtual void activate(); + virtual void deactivate(); + +protected: + const char* m_name; + unsigned int m_savedThreadCounter; + bool m_isActive; +}; + +// set the task scheduler to use for all calls to btParallelFor() +// NOTE: you must set this prior to using any of the multi-threaded "Mt" classes +void btSetTaskScheduler( btITaskScheduler* ts ); + +// get the current task scheduler +btITaskScheduler* btGetTaskScheduler(); + +// get non-threaded task scheduler (always available) +btITaskScheduler* btGetSequentialTaskScheduler(); + +// get OpenMP task scheduler (if available, otherwise returns null) +btITaskScheduler* btGetOpenMPTaskScheduler(); + +// get Intel TBB task scheduler (if available, otherwise returns null) +btITaskScheduler* btGetTBBTaskScheduler(); + +// get PPL task scheduler (if available, otherwise returns null) +btITaskScheduler* btGetPPLTaskScheduler(); + +// btParallelFor -- call this to dispatch work like a for-loop +// (iterations may be done out of order, so no dependencies are allowed) +void btParallelFor( int iBegin, int iEnd, int grainSize, const btIParallelForBody& body ); + -// for internal Bullet use only -// if BT_THREADSAFE is undefined or 0, should optimize away to nothing -SIMD_FORCE_INLINE void btMutexLock( btSpinMutex* ) {} -SIMD_FORCE_INLINE void btMutexUnlock( btSpinMutex* ) {} -SIMD_FORCE_INLINE bool btMutexTryLock( btSpinMutex* ) {return true;} #endif - - -#endif //BT_THREADS_H diff --git a/test/GwenOpenGLTest/premake4.lua b/test/GwenOpenGLTest/premake4.lua index 5062db05c..a14f78e49 100644 --- a/test/GwenOpenGLTest/premake4.lua +++ b/test/GwenOpenGLTest/premake4.lua @@ -15,13 +15,14 @@ "../../examples/ThirdPartyLibs", "../../examples", ".", + "../../src" } initOpenGL() initGlew() links { - "gwen", + "gwen","Bullet3Common" } diff --git a/test/InverseDynamics/CMakeLists.txt b/test/InverseDynamics/CMakeLists.txt index 217655b09..eb9ccae4a 100644 --- a/test/InverseDynamics/CMakeLists.txt +++ b/test/InverseDynamics/CMakeLists.txt @@ -37,6 +37,7 @@ INCLUDE_DIRECTORIES( ../../src ../gtest-1.7.0/include ../../Extras/InverseDynamics + ../../examples/ThirdPartyLibs ) diff --git a/test/InverseDynamics/premake4.lua b/test/InverseDynamics/premake4.lua index 1892a0206..b87ecc573 100644 --- a/test/InverseDynamics/premake4.lua +++ b/test/InverseDynamics/premake4.lua @@ -85,8 +85,8 @@ "../../examples/InverseDynamics", "../../examples/ThirdPartyLibs", "../../Extras/InverseDynamics", - "../gtest-1.7.0/include" - + "../gtest-1.7.0/include", + "../../examples/ThirdPartyLibs", } diff --git a/test/SharedMemory/premake4.lua b/test/SharedMemory/premake4.lua index 6f8c6df9d..282cc31fc 100644 --- a/test/SharedMemory/premake4.lua +++ b/test/SharedMemory/premake4.lua @@ -360,6 +360,7 @@ project ("Test_PhysicsServerInProcessExampleBrowser") "../../examples/SharedMemory/PhysicsServer.cpp", "../../examples/SharedMemory/PhysicsServer.h", "../../examples/SharedMemory/PhysicsServerExample.cpp", + "../../examples/SharedMemory/PhysicsServerExampleBullet2.cpp", "../../examples/SharedMemory/SharedMemoryInProcessPhysicsC_API.cpp", "../../examples/SharedMemory/PhysicsServerSharedMemory.cpp", "../../examples/SharedMemory/PhysicsServerSharedMemory.h", diff --git a/test/SharedMemory/test.c b/test/SharedMemory/test.c index e475a4705..9dec36e92 100644 --- a/test/SharedMemory/test.c +++ b/test/SharedMemory/test.c @@ -335,9 +335,9 @@ int main(int argc, char* argv[]) #ifdef PHYSICS_IN_PROCESS_EXAMPLE_BROWSER #ifdef __APPLE__ - b3PhysicsClientHandle sm = b3CreateInProcessPhysicsServerAndConnectMainThread(argc,argv); + b3PhysicsClientHandle sm = b3CreateInProcessPhysicsServerAndConnectMainThread(argc,argv,1); #else - b3PhysicsClientHandle sm = b3CreateInProcessPhysicsServerAndConnect(argc,argv); + b3PhysicsClientHandle sm = b3CreateInProcessPhysicsServerAndConnect(argc,argv,1); #endif //__APPLE__ #endif