semvec/pypi-packages huggingface dataset:
envlight 0.1.0
environment lighting toolkit

# Envlight

A toolkit to load `*.hdr` environment light map and sample lighting under the split-sum approximation.

This is basically a wrapped version of [`light.py` from nvdiffrec](https://github.com/NVlabs/nvdiffrec/blob/main/render/light.py).

### Install

Assume `torch` and [`nvdiffrast`](https://nvlabs.github.io/nvdiffrast/#linux) already installed.

```bash
pip install envlight

# from github
pip install git+https://github.com/ashawkey/envlight

# or locally
git clone https://github.com/ashawkey/envlight
cd envlight
pip install .
```

### Usage

```python
import envlight

normal # [..., 3], assume normalized, in [-1, 1]
reflective # [..., 3], assume normalized, in [-1, 1]
roughness # [..., 1], in [0, 1]

light = envlight.EnvLight('assets/aerodynamics_workshop_2k.hdr', device='cuda')

diffuse = light(normal) # [..., 3]
specular = light(reflective, roughness) # [..., 3]

# to load another hdr file
light.load('assets/mud_road_puresky_1k.hdr')
light.build_mips()
```

An example renderer:
```bash
# requries extra dependencies: pip install trimesh dearpygui
python renderer.py
```

https://github.com/ashawkey/envlight/assets/25863658/505d57e6-6e8a-4492-ae02-586e28e038ad


### Acknowledgement
* Credits to Nvidia's [nvdiffrec](https://github.com/NVlabs/nvdiffrec).
pokesim 0.2.0
Simulates a pokemon battle with a computer opponent
Requires Python: ~=3.10
Keywords: pokemon simulation game battle

pokesim
=======

This package contains a playable pokemon battle simulation game.
Currently supports only a small part of one Pokemon's moveset. Aims for
Gen VII compatibility; future generations are not guaranteed to be
playable. Also will not feature Mega Evolutions or Z-Moves for the
forseeable future. Double, Triple, Rotation and other misc. battle types
are a huge stretch goal, behind supporting multi-Pokemon teams.

Installation
------------

The easiest way to install is with ``pip``. If your pip installs for
python 3.6+, simply enter

::

    pip install pokesim

at the command line. To install manually, download this repo and run

::

    python setup.py install

Usage
-----

Once installed, you can just run ``pokesim``. The features currently
supported are below:

Supported Pokemon
~~~~~~~~~~~~~~~~~

-  Bulbasaur

Supported Moves
~~~~~~~~~~~~~~~

-  Amnesia
-  Double Team
-  Growl
-  Razor Leaf
-  Seed Bomb
-  Sweet Scent
-  Tackle
-  Vine Whip
-  Work Up

Missing Mechanics
~~~~~~~~~~~~~~~~~

The following mechanics have yet to be added.

-  Weather
-  Status-Effect moves (e.g. Confuse Ray, Fire Fang)
-  Priority moves (e.g. Quick Attack, Extremespeed)
-  Most other things tbh
-  Abilities
-  Hyper/Reverse Mode(s) (idk which I'll pick)