A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [mathematics]

Use of maths inside blender.

38 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
29 views

Calculating position difference in a driver

Suppose I have an object, that I move from A to B (by pressing the G button) on the XY plane. I want to automatically orient it, so it always faces the direction of the movement. Furthermore, I want ...
3
votes
0answers
48 views

What's the algorithm used in 'tris to quads' (Alt+J)?

Does anyone know the algorithm used in 'tris to quads' function in Blender or the script containing this function? Thanks!
3
votes
0answers
302 views

Drawing mathematical functions using the Blender API - drawing a line

I want to represent the line y = 4x + 2. I suppose it has something to do with a function in python that gives pairs of values x-y and another that matches the ...
2
votes
0answers
39 views

How do you make a Lego statue out of a character Model?

I want to make a Lego esc statue out of a character Model. The character Model has a texture. My plan is to use the Remesh (Blocks) Modifier to make the Lego pieces. This works without a Problem. I ...
2
votes
0answers
78 views

Making a Moire pattern animation

I'm trying to animate a pattern I made. I made this on a graphing website called Desmos, but ran into problems making all the lines move. Apparently it's too computationally difficult for the website ...
2
votes
1answer
916 views

How to calculate intersection between two planes

I'm dipping my feet at Blender SDK, and I'm trying to calculate intersection between two planes: Created a default plane in center, duplicated, rotated second, scaled first, applied transforms; but I'...
2
votes
0answers
347 views

Change rotation order of a matrix

So, I am writing an exporter to another scenegraph format. Trouble is I suspect it has a different order of rotation (not 'XYZ'). So how do I change a Blender Matrix 3x3 or 4x4 into one that has same ...
2
votes
0answers
67 views

Source to read about the math in World Matrix and Blender's use of quaternions?

I'm going to show some slides about using Blender to illustrate three dimensional and time-evolved physics simulations by just (pasting and) running the python within the blender user interface. ...
2
votes
0answers
705 views

How to intersect two planes?

I am trying to use the geometry.intersect_plane_plane function, but I can't use the results properly. On this tryout, we have two points (...
2
votes
0answers
404 views

Scripts: Converting Quaternions to Pre/Post Rotations

An issue that I've noticed while working on models for a specific game engine, is that when using exporting FBX models or BVH data comes the fact that you have two different rotations formats, with ...
1
vote
0answers
38 views

Animating the trajectory of solutions to ordinary differential equations

Hello Blender Community, I am new to the software and I am looking for some advice on the following problem. Suppose that we are given the position and orientation of a rigid object in Euclidean ...
1
vote
0answers
80 views

Physics and calculus in blender

I'm physics student and I want to calculate things on blender, I've to learn many things of the program and I'm starting on it. I want to know if it's possible to do some calculus inside blender, for ...
1
vote
0answers
22 views

Material nodes - make a range of values?

Ok, Im trying to fake volumetric light shafts using this node setup and a gradient texture made in photoshop: Basically this still looks not great, and I want to have a "gradient" of the emission ...
1
vote
0answers
56 views

Scale texture (by Math Power node)

I experimented a bit with vector math and got this texture. It is compressed at the top and stretched below. How can I get the opposite effect? I did so, but I do not think that is the right way.
1
vote
0answers
357 views

Calculating a camera's Focal Length when given Field Of View (and vice versa)?

Are there any formulas that I can convert from FOV-to-FL and from FL-to-FOV? I need to match a camera from the Unity game engine to Blender (and vice versa). Unity uses Field Of View and Blender uses ...
1
vote
0answers
99 views

Make Ball rolling down function animation

I am making an animation to explain gradient descent, and for it, I want to have an animation of a ball rolling down a 3d function graph. how do i this with blender and make it similar to this https://...
1
vote
0answers
333 views

creating fractal materials with node editor

does anybody know how to generate a 2D fractal like the classic Mandelbrot set, as a 2D material using the node editor? im looking to make something similar to how the texture nodes like the wave ...
1
vote
0answers
132 views

What's the algorithm used in bm.calc_volume()?

I need to know which algorithm is used in bm.calc_volume() (https://docs.blender.org/api/blender_python_api_2_67_release/bmesh.types.html#bmesh.types.BMesh.calc_volume) or which theorem is based on. ...
1
vote
0answers
59 views

particle simulation distribution on a surface using the analytical expression

Not sure if this is possible with Blender or not. I have a collection of particles all with the same mass and same charge. I want to distribute them on a surface which I have the analytical expression ...
1
vote
0answers
468 views

normal vector calculation on a surface

Given a function like f(x,y,z)=constant like an isosurface, I was wondering if there is any way to: 1) create a mesh and save the coordinates of the points into a separate file? 2) calculate the ...
1
vote
0answers
100 views

How to preserve UV coordinate in python scripts when faces are transformed?

I'm writing python scripts that preserve UV coordinates when faces are translated/rotated/scaled. And I know similar feature exists in Presages Creator. https://youtu.be/QH3G9qZgjfw?t=3m32s ...
1
vote
0answers
139 views

Using matplotlib in python script to enable plotting in add-on

i would like to create an add-on that can plot graphs using matplotlib inside the add on frame. Does anyone have any experience with using matplotlib or any other python lib in blender? Is it ...
1
vote
0answers
716 views

How to move an object to a particular position using a python script?

When I import a stl object it arrived like this (front view): I have to manually rotate it until I have the two lower points of my object at the same level on the Z axis(that's what the black line ...
0
votes
0answers
19 views

adding vertex between two vertices using animation nodes

i'm working on differential line growth, which requires me to resample my shape each time the distance between two vertices becomes too big. Yet I can't seem to find anything concerning this online. ...
0
votes
0answers
14 views

Custom colors for ramp node (scripted)

Hello. I was watching this video in the aims of custom scripting colors for a color ramp (linear) in a property panel. I´ve armed this network like this: Question 1: How can I do the group node like ...
0
votes
0answers
28 views

I need help measuring MIN and MAX diameter of an eliptical shape

I'm pretty new to blender, what brought me here is that I'm working gon a project in which we're looking for a simple way to measure 3d cuts of a body scan, in order to identify spine deformations in ...
0
votes
0answers
62 views

How to add smooth step equation to a shader node graph?

I'm trying to add some math to a shader network that I'm building. I want to take a numeric output from a node and pipe it through the equation f(x) = -2x^3 + 3x^2 (this is sometimes called the ...
0
votes
0answers
90 views

Generating blue normal map channel from red and green channels

I have a normal map texture where the blue channel is used to store some other map of information since it is normally used in a program which calculates the blue channel from the red and green ...
0
votes
0answers
16 views

What units does the Point Density and Particle Info nodes use to represent particle age and lifetime?

For example, If I set my particle's lifespan to 100 frames and then read particle age using either the Point Density or Particle Info nodes, what value should I divide by in a Math Node so that once ...
0
votes
1answer
50 views

How can I create a non-self-intersecting mesh from a line mesh?

I am currently working on creating a 3D model of a Lorenz system. I want a result fairly similar to the following picture from the Internet, minus the stand: To accomplish this, I created a C++ ...
0
votes
0answers
62 views

What is the relationship between quaternion's value w, the (x,y,z) point, and the rotation they represent?

From what I understood, quaternion rotations could essentially be described as a vector coming from an object's location and going to (x,y,z) and W is a value that determines the object's rotation ...
0
votes
0answers
26 views

How to know if certain co-planar faces in Blender form a circle to apply quads later on?

I can get a set of co-planar faces from any mesh. Some of these co-planar faces form a circle while most of them do not. I eventually want to know which faces are forming a circle using Python, so ...
0
votes
0answers
146 views

Setting center and scale during spherical uv layout

I'd like to map part of an equirectangular image to a cuboid mesh, in order that the texture view from an arbitrary POV appears without distortion. Both the mesh and its uv layout will be used for a ...
0
votes
0answers
29 views

Are the geometry generated by math functions in blender faster in any way compared to other modelling methods?

As the question says, is an object generated via the blender math function faster in any way than using other modelling methods, especially poly modelling? does it cause faster rendering, view-port ...
0
votes
0answers
55 views

Creating polygon from vertices alorithm

Is there somebody who can describe a theory behind creating quads from pointcloud(vertices) in blender python ? Is the only way to check length betweeen vertices like: (theory) ...
0
votes
0answers
241 views

How to convert pose bone's global position to bone's location or bone's matrix?

When I try to set pose bone's head in keyframe, I knew that the bone's head is just read only, so I have to convert the bone's head to bone's location or matrix, after searching a lot of information,I ...
0
votes
0answers
32 views

How to extract information about a frame that's being rendered for later use?

Is there a way to extract information (calculations) about a frame that's being rendered without rendering it? Namely, send all calculations that Blender is doing when rendering a frame, to an ...
0
votes
0answers
364 views

get the rotation of a face

I'm trying to get the rotation of bmeshs face. Unfortunately following function doesn't work: ...