Skip to content

Commit

Permalink
bump to v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
archibate committed Jan 31, 2021
1 parent 9337a3e commit 028b6d8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Here's a list of important features currently Tina have:
* real-time rendering volume - `docs/volume.py`
* loading OBJ models - `docs/monkey.py`
* path tracing mode - `docs/pathtrace.py`
* real-time ray tracing (WIP) - `tests/rtx.py`
* bidir path tracing (WIP) - `tests/bdpt.py`
* detect element under cursor (WIP) - `tests/probe.py`
* Blender addon (WIP) - [`Taichi-Blend`](https://github.com/taichi-dev/taichi_blend)

Expand Down
13 changes: 2 additions & 11 deletions examples/cornell_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,8 @@

scene = tina.PTScene(smoothing=True, texturing=True)
scene.load_gltf('assets/cornell.gltf')

if isinstance(scene, tina.PTScene):
scene.lighting.set_lights(np.array([
[0, 3.9, 0],
], dtype=np.float32))
scene.lighting.set_light_radii(np.array([
0.09,
], dtype=np.float32))
scene.lighting.set_light_colors(np.array([
[2.0, 2.0, 2.0],
], dtype=np.float32))
scene.add_object(tina.MeshTransform(tina.MeshModel('assets/plane.obj'),
tina.translate([0, 3.98, 0]) @ tina.scale(0.1)), tina.Lamp(color=64))

if isinstance(scene, tina.PTScene):
scene.update()
Expand Down
2 changes: 1 addition & 1 deletion tina/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = (0, 0, 1)
__version__ = (0, 1, 0)
__author__ = 'archibate <1931127624@qq.com>'
__license__ = 'MIT'

Expand Down
2 changes: 1 addition & 1 deletion tina_blend/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'name': 'Tina',
'description': 'A soft renderer based on Taichi programming language',
'author': 'archibate <1931127624@qq.com>',
'version': (0, 0, 1),
'version': (0, 1, 0),
'blender': (2, 81, 0),
'location': 'Render -> Tina',
'support': 'COMMUNITY',
Expand Down

0 comments on commit 028b6d8

Please sign in to comment.