File: README.md

package info (click to toggle)
pywavefront 1.3.3-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,112 kB
  • sloc: python: 1,586; makefile: 3
file content (47 lines) | stat: -rw-r--r-- 860 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Examples

## Requirements

```bash
# Install pywavefront in dev mode if you dont have pywavefront installed
python setup.py develop

# Enter the examples directory and install requirements
cd examples
pip install -r requirements.txt

# Run an example
python.exe boxes.py
```

## Boxes

Loads and displays 6 different cubes of the folloing vertex formats:

* Only positions
* With normals
* With vertex color
* With texture coordinates
* With texture cooddinates and vertex color
* With texture coordinates and normals

```
python boxes.py
```

## Globe Simple

Renders a simple low poly globe with texture coordinates and basic lighting.

```
python globe_simple.py
```

## Globe Complex

Renders a simple globe (higher resolution) with texture coordinates and basic lighting.


```
python globe_complex.py
```