Star-2D 0.3 is available
- Get source code: git
The Star-2D library implements the functionalities provided by Star-3D for 2D shapes represented by a list of segments. It is actually the counterpart of Star-3D for 2D geometries. Its main targets are programmers that have to deal with complex 2D environments.
The Star-2D API is roughly the same of the Star-3D one. It provides uniform sampling and ray-tracing operators while still relying on Intel(R) Rendering Framework: Embree to ensure high ray-tracing efficiency.
It also supports multiple scene views. Each view stores the current data of a scene that can be then sampled and ray-traced. A view is insensitive to scene updates following its creation. This means that several views can store different state of a same scene, giving to the caller a great flexibility to manage its geometric data.
- Migrate the ray-tracing backend from Embree2 to Embree3.
- Add the
s2d_segment_get_vertex_attribfunction that returns the vertex attributes of a given segment.
- Fix the
s2d_primitive_get_function. The function failed when the submitted parametric coordinate was equal to 1.
- Implement the
s2d_scene_viewAPI; it replaces the
s2d_scene_<begin|end>_sessionfunctions that were removed. A view registers the state of the scene from which it is created. It is used to retrieve the scene data through ray-tracing, sampling or indexing. Several views can be created on the same scene.
- Add the possibility to attach a same shape to several scenes.