AABB collision
One of the simplest methods of pre-checking whether two objects intersect in space is to check collisions of their bounding objects, in particular AABB (Axis Aligned Bounding Box).
One of the simplest methods of pre-checking whether two objects intersect in space is to check collisions of their bounding objects, in particular AABB (Axis Aligned Bounding Box).
When checking collisions in 2D projections between a point and a polygon, it is necessary to find out whether the point lies inside the polygon, or whether it is located outside its area.
Checking if a point is inside or outside of a polygonRead More »
BPY plus project updated to v. 1.8.2.
The output pixel color format for rendering in Blender is RGBA in the linear color space. If we need to save the render in RGB565 format, such a format is used, for example, in some old games, the color values of the pixels must be converted.
When working with colors, Blender operates on values from a Linear color space. This allows to show colors and gradients in a way that is more familiar to the human eye, but this should always be taken into account when working directly with colors in Blender.
Color conversion from Linear to sRGB color space and back in BlenderRead More »
To work with the geometry of 3D objects in Blender, sometimes it is necessary to get not just a list of vertices, but a list of vertices in the order they follow one after another. This can be done with the Blender Python API.
Getting a vertices list in the order they follow each otherRead More »
To execute some actions at different stages of rendering, the developers have provided a set of handlers in the Blender Python API – special functions for handling events.
Since Blender 3.5 version, the Python API does not allow overriding base operators.
Overriding base operators in Blender 3.5 Python API is disabledRead More »
For quick and rough checking of two objects geometry intersections, bounding objects are usually used – spheres or parallelograms in which all points of the object are inscribed. Bounding object intersections are often inaccurate, but they are very efficient in terms of speed. One of the types of bounding objects is AABB (Axis Aligned Bounding Box) – a parallelogram aligned with the global coordinate axes.
For quickly finding and selecting objects that do not have materials, we can use the Blender Python API and write a script consisting of just a few lines.