Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Use of maths inside blender.

0
votes
0answers
16 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
37 views

How to simulate blustery hot air & cold air in Blender

I want to see the behaviour of hot & cold airs against each each other. In one experiment, please try cloud particles with hot & cold airs. In another experiment without clouds, please use ...
4
votes
1answer
51 views

Why does the “Map Range” node fail for values above 10,000?

I have a "Map Range" node with the following inputs: Because 10,000 is right in the middle between 9,995 and 10,005, I expect the output to be 0.5, and indeed it is. If I now increase the value by ...
1
vote
1answer
42 views

What is the math for the B-spline interpolation of a color ramp with two color stops?

I often use a color ramp with only two color stops as a way to modify the output of a texture parameter as in this example. I would like to be able to do something similar in a node group where the ...
1
vote
1answer
43 views

How can i rip a circle open and turn it into a straight line?

I'm learning Blender so i can use it to do math animation videos, I've been trying to turn a circle into a line so i can measure the circumstance for a long time, and it didn't work sadly :(
0
votes
1answer
43 views

Physical simulation- how to create anti-gravity in objects like hot-air balloons

How do you create objects that "defy" gravity like an hot-air balloon? Then halfway into animation, how do you make the hot-air balloon drop anti-gravity, as it loses heat?
9
votes
4answers
394 views

Precision of Math Node?

To normalize the position coordinates of particles for an Image Texture node, I have to divide 1 by a very large number (119,617). After running some tests, I see that the colors of my image texture ...
0
votes
1answer
33 views

How to get Mirrored Vector by Plane on Python

How can I get mirrored vector(point) by Plane by using blender python modules? Plane will be defined as plane_normal : Vector plane_position : Vector I need to know function like ...
4
votes
2answers
670 views

How do I make a giant clock made of many small clocks?

I want to recreate this animation I found online, of a giant clock that displays the time using many smaller clocks. The minute and hour hands of the smaller clocks rearrange into symmetry and shows ...
2
votes
2answers
171 views

How can I rotate multiple objects in their LOCAL axis?

Hello blender friends. I would like to rotate multiple objects by random, but in their LOCAl axis. NOT global. I already know the random transform function for objects, but it's working always for ...
6
votes
1answer
161 views

How can I make my procedural brick texture map correctly to both a cube and cylinder?

I've been experimenting with node-based procedural materials in Cycles lately, and after spending a few hours working out a brick material that works pretty well along walls, I noticed that it has a ...
1
vote
1answer
53 views

What's the fastest way to calculate the midpoints of a sequence of edges?

I'm trying to create a list that calculates the midpoints of a sequence of edges. Right now I'm doing it like this: ...
1
vote
0answers
105 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 ...
0
votes
2answers
50 views

Difference boolean for overlapped objects or any possible alternative

I am trying to generate a geometry using Math Function (XYZ function) as in Fig.1 using version 2.79. I ideally would prefer to have three independent objects and merge/join all 3 objects as one and ...
1
vote
2answers
40 views

Example for creating and rotating of a mathematical function in a script

I want to make a body by rotating of this function in a script: Function X equation (ln( ((v*pi)/1)-(pi/2) ) *(1/pi)+3)*sin(u) Y equation ...
1
vote
1answer
83 views

Calculate surface by logarithmic function?

Is there any way to use the log() function in order to calculate the surface of a mesh?
1
vote
0answers
19 views

Blender Math Nodes: which input is which (numerator vs denominator)

Is there documentation associated with the cycles nodes, in particular the math nodes? The current documentation in the manual seems to only indicate that there are two values, but not which is which. ...
0
votes
0answers
39 views

Mathematical correct Animation of a pendulum

that ist my first question here and i'm not into blender at all. I only want to know if it is possible to construct a 3D Animation of a pendulum in motion for which I already have the exact ...
11
votes
1answer
453 views

Recreating Mandelbulbs with math nodes

I'm trying to recreate a Mandelbulb using Volume and math nodes in blender. I have been able to create a Mandelbrot with math nodes but I am having problems making it 3d. I tried translating this ...
5
votes
2answers
255 views

Create procedural spiral pattern

I'm trying to make a galaxy in blender. If I use an image of a galaxy to get the spiral shape it becomes a 2d image projected into the 3d volume. To avoid this I wanted to use a procedural method, but ...
1
vote
0answers
30 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://...
2
votes
1answer
56 views

Scaling a math function from a specific vertex

I have a model developed through a math function as shown below in the figure. I would like to scale the figure as shown in the figure without changing the vertex position. Explanation of the figure: ...
1
vote
0answers
30 views

How can I use Latex in Blender. How to display Math Formulas [duplicate]

How can I use Latex in Blender. How to display Math Formulas. Converting from pdf to svg is impossible in larger documents. Can I use Sympy? Mathjax? MathML?
0
votes
0answers
28 views

Ping-pong (back and force) alembic animation

Is it possible to play forward-backward (so call ping-pong) the alembic cache? I read this topic and I understand there can be used scipted expressions as drivers. But I can't imagine the math ...
1
vote
1answer
79 views

Average value in material nodes

Is there a way to get an average value in material nodes? I am only aware of this option in compositor: https://docs.blender.org/manual/en/dev/compositing/types/output/levels.html
0
votes
1answer
44 views

(Animation) Nodes : how to map a rotation to a value between 0 & 1?

The Parameter input of the Evaluate Spline, in Animation Nodes, needs to get a number between 0 & 1. I would like to map it to the rotation of an empty (here, Effector-Spline-Loop). No mather what ...
1
vote
1answer
256 views

Create a solid from 2D math function

Is it possible to create a solid based on a 2D function in Blender? Example: I have a function $y=x^2$ where $x \in [0,1]$. Here 'Z' is simple projection of XY plane so, extrude shall do the job. I ...
3
votes
1answer
184 views

Trying to convert a DXT5NM Normal Map for use in my scene

I have a handful of these strange normal maps I need to use in my scene that store X in the Alpha channel, Y in the green channel, and require you to calculate Z with the following formula: Z = sqrt(...
0
votes
1answer
59 views

How to not select objects behind main camera with script in Python?

With python, I search to select objects in the field of view of the main camera. I found this great script by ideasman42. It's half perfect. I don't understand why the script also selects objects ...
0
votes
0answers
29 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
1answer
105 views

Rotation Matrix

i am having a hard time trying to dechiper how blender game engine allocate the rotation values on the rotation Matrix, this website describes the values like this. But when i print the rotation ...
2
votes
2answers
86 views

Match two planes with different origin locations (Blender Python Matrix Math)

We see two identical Plane objects: A(blue) and B(red) They are oriented arbitrarily in the 3D space. Notice that the origin of A is located in the center and the origin of B is located in the lower ...
0
votes
1answer
94 views

How to export Bone matrices for animation?

I'm trying to export armature bone matrices (relative to parent), but fail miserably, because sometimes rotations and translations are getting applied to different axes, in comparison to Blender's ...
3
votes
0answers
127 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 ...
5
votes
1answer
186 views

How to get XYZ euler rotation of 3DView?

I'd like to extract the user view orientation of the current 3DView. Since I didn't find a direct command to get it, my approach would be to take its matrix using ...
0
votes
0answers
140 views

How to find the intersection between an edge and a face crossed by it?

I am looking for a way to find the coordinates of the intersection of an edge and a face but only if it gets inside it, i need it to return false if it gets outside the face. I found this thread but ...
1
vote
2answers
160 views

Animation nodes: rotate around axis

How do you rotate an object around a given unit vector and angle? I thought I could use this matrix, but I'm unable to create a custom 3x3 matrix inside animation nodes. $$R= \begin{bmatrix} \cos\...
2
votes
2answers
294 views

How to get all faces based on a certain angle of their normals?

I would like to create a list of faces/polygons based on the angle of each corresponding normal. I've tried something like board.data.polygons[0].normal > 0, but ...
1
vote
1answer
168 views

Custom Colour Palette Node

Would it be possible to create a node that acts like a colour palette? Essentially I define the colours that I want it to have, and from there I can use them as I wish. I know that something like this ...
1
vote
2answers
2k views

Finding the closest point on a line defined by two points

I'm doing some simulation work using Blender/Python and I'm stuck on a geometry problem. What I want to do is: Define a line in 3D space based on two points. One of the points will always be the ...
1
vote
1answer
203 views

Python Math Functions Fail In Blender

My problem is this: I try and run the script in Blender's text editor and the script fails to math functions, cos() does not work. When I run the same code in Blender's Python console my pasting it ...
2
votes
1answer
184 views

How can I add/subtract/multiply/divide properties in the Game Engine?

I am creating a Random Math Engine using the BGE and I am wondering how I can do mathematical operations between two properties. Example: "Property 1 + Property 2" and then it would output the answer ...
3
votes
1answer
383 views

How to read a bone's quaternion rotation and convert from local bone to world space

I am writing a custom exporter to export from blender to my opengl program. To read the roatation, as well as convert from blender's cordinate system to my game's system, i use this code: ...
1
vote
0answers
160 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 ...
0
votes
1answer
150 views

Bevel modifier auto segments

Recently I created a video about a way to increment automatically the number of segments. My question is is there a way to script and integrate the formulas directly bpy.context.object.modifiers["...
2
votes
1answer
447 views

Animate an object along the z-axis in a sin wave

So I wanted to make an animation of an object where it bobs up and down along the z-axis, like a sin wave on a graph. I understand one way of doing this with drivers, by which I add a driver to the ...
14
votes
1answer
690 views

How to: Exponential Fall Off for Volume Density?

I'm trying to create a photorealistic Earth Atmosphere. Several papers written on the topic of atmospheric scattering state that our atmosphere's density has an exponential fall off, with most of it ...
9
votes
3answers
744 views

Plotting 3D Surfaces

Building on from my previous question, how can I plot something more complex than a sphere (and not as easy to split into a set of parametric equations)? Say, for example $$2x^2+y^2-5z^2+z-7x=16$$ ...
3
votes
1answer
94 views

Plotting 3D Regions

How can I plot a simple 3D region such as $$x^2+y^2+z^2<16$$ in Blender? If I can't do that directly, how can I turn it into $$x=\dots$$ $$y=\dots$$ $$z=\dots$$ So I can use Mesh --> Math ...
2
votes
0answers
148 views

Practical use example of Dot product and cross product? [closed]

Edit : Problem Solved . Thank you I have read all Dot product and cross product related questions and answers. Thanks to explainations of some supportive community members Now I know what dot ...