Skip to main content

A Python Wrapper over the Nvidia RTX Remix C API for its Raytracing Engine.

Project description

PyRtxRemix

A Python Wrapper over the Nvidia RTX Remix C API for its Raytracing Engine.

Installation

For users

>>> pip install py-rtx-remix
>>> mkdir bin  # At your project root.
# Download the latest release or action builds of dxvk-remix and paste inside bin/.

For developers

>>> git clone git@github.com:Ekozmaster/py-rtx-remix.git
>>> cd py-rtx-remix
>>> mkdir bin
# Download the latest release or action builds of dxvk-remix and paste inside bin.
# Open x64 Native Tools Command Prompt for VS 20xx and run build_remixapi.bat
>>> mv remixapi.dll src/py_rtx_remix/

Features

  • Wraps around the RTX Remix C API via a remixapi.dll using ctypes.
  • Provides a Pythonic and ergonomic interface to remix's components and function calls.
  • Ships with a simple obj loader to assist with scene building and testing.
  • Requires no other dependencies, except for development and testing.

Usage

  • You're supposed to manage your own window and provide a HWND. Python has tkinter built-in to help.
  • Instantiate RTXRemixAPI() and call init() with your HWND.
import tkinter as tk
from py_rtx_remix.core import RTXRemixAPI, StartupInfo

window_width = 1600
window_height = 900
window = tk.Tk()
window.title("PyRTXRemix")
window.geometry(f"{window_width}x{window_height}")

remix_api = RTXRemixAPI()
startup_info = StartupInfo(hwnd=window.winfo_id())
remix_api.init(startup_info)
  • For more examples like creating a mesh, materials and lights check the example.py file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_rtx_remix-0.0.2.tar.gz (96.5 kB view details)

Uploaded Source

Built Distribution

py_rtx_remix-0.0.2-py3-none-any.whl (96.3 kB view details)

Uploaded Python 3

File details

Details for the file py_rtx_remix-0.0.2.tar.gz.

File metadata

  • Download URL: py_rtx_remix-0.0.2.tar.gz
  • Upload date:
  • Size: 96.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for py_rtx_remix-0.0.2.tar.gz
Algorithm Hash digest
SHA256 36a5e68d3894fc809a8133c533943c60e9a0910fd87406bbac8c9dfbe706682f
MD5 a4e7dd091df7dd3f763cc66ee24dd75a
BLAKE2b-256 9abb51470d999d5c1588f54da5023327a74b42d238ef964c1f1701a22daf3db1

See more details on using hashes here.

File details

Details for the file py_rtx_remix-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: py_rtx_remix-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 96.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for py_rtx_remix-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 51610bd990f7cba433af14600a2736a96e351decd76ef3dfbc6592850c4f9dea
MD5 746afc0060b691c5f3ecc20512934b15
BLAKE2b-256 e625b45f194aa8073ace4fafe1e39e30afb2c2a62c17b7d3e841be4750c711b1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page