Jaxrenderer

Latest version: v0.3.2

Safety actively analyzes 623860 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.3.2

1. Bump minimum `jax` and `jaxlib` version to 0.4.0 as `jaxtyping` does not support `jax` 0.3.25.
2. Bug fix: add `static_argnames` for utility function `transpose_for_display`.
3. Change to [isort](https://github.com/PyCQA/isort) + [black](https://github.com/psf/black) code style.
4. Migrate full codebase to be type-checked with [pyright](https://github.com/microsoft/pyright).
5. Add smoke tests, and use GitHub Action as CI to run them.

0.3.1

1. Lower minimum Python version to 3.8
2. Introducing `type_extensions` package and improved typing annotations.

0.3.0

1. Fix `gl_FrontFacing` computation in pipeline so it is consistent to comment: `True` if not back-facing (i.e. front-facing & side facing).
2. Add an extra stage `Shader.primitive_chooser` to choose which primitive to be rendered for each fragment. The default implementation is provided, which assumes that the depth is just the interpolated `z` value in the eye space. It just picks the values of the single primitive that is closest to the camera and is not discarded in the previous pipeline.
3. Expose `loop_unroll` static option to allow unrolling several operations (row rendering) within a single iteration of the out-most loop (iterating along first axis of the canvas). This may be useful in some cases for performance improvement, but careful benchmarking is needed to determine the optimal value. The default value is `1` (no unrolling) as it is the most general case in larger canvases (benchmarked on `960x540` using [GPU T4 in Colab](https://colab.research.google.com/drive/1xhkYNz5WjvUCjQWpp72CLf9SIy3i5PnN)).
4. Bump the minimum Python version to Python 3.10
5. Lower the minimum jax & jaxlib version to 0.3.25.

0.2.1

1. Refactor `Scene.set_object_*` methods to be a simple wrapper of `self._replace` and `ModelObject.replace_with_*`, to expose APIs of `ModelObject`s and allows manipulation and rendering without `Scene`.
2. Expose `create_capsule` and `create_cube` APIs.

0.2.0

1. Instead of clipping (planned to be implemented), now the rasteriser interpolates in homogeneous space directly. `Shader.interpolate` will not receive valid `barycentric_screen` values for now. Setting `Interpolation.SMOOTH` and `Interpolation.NOPERSPECTIVE` will result in same results, perspective-correct interpolations.
2. Reorganise example files and rename them.

0.1.3

1. Correctly force convert `LightParameters` to JAX arrays in `Renderer.get_camera_image` to avoid downstream errors.
2. Fix `geometry.py::transform_matrix_from_rotation`. Also, change the order of quaternion to `(w, x, y, z)` instead of `(x, y, z, w)` for consistency.
3. Force convert `ShadowParameters` to JAX arrays in `Renderer.get_camera_image` to avoid downstream errors.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.