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

Questions tagged [mathematics]

Use of maths inside blender.

1
vote
1answer
44 views

Mathematical functions for mesh in Blender 2.8 beta

Does somebody know if it is already possible in the beta 2.8 to use mathematical functions for the mesh? I could not find the Addon "Add Mesh: Extra Objects", which I uses in 2.79. Any other solution ...
3
votes
2answers
53 views

Is MixRGB ALWAYS RGB calculated?

Hey guys I'm writing a Quizlet flashcard pack to help people learn and memorize how the various blending modes work within the mixRGB node. My question is, does mixRGB always handle color inputs as ...
1
vote
0answers
34 views

Calculator within Node Editor [duplicate]

I am working on a project with multiple texture of different sizes for the same object. The textures have the correct scale in dpi. I use a formula to calculate the UV scale of each texture. "pixel ...
1
vote
1answer
59 views

Fractal Noise in Blender Stretches From Origin Point- Why?

To make a good noise for terrain generation you can hook up a noise texture to the scale of another noise texture. I like using this, but I noted one limitation- if the texture coordinates become ...
3
votes
2answers
68 views

Transform Vertices by Matrix around Custom Point

I need to scale the vertices to 0 around the median point as here. Should get something like this I use Mathutils and multiply the Matrix.Scale(as Axis I take the average of all vertex normal) by ...
1
vote
1answer
41 views

Can Blender do mathematical reservoir simulation for petroleum engineer?

Can Blender do reservoir simulation like Petrel Schlumberger and CMG do for petroleum engineer? I'm a student of petroleum engineering, and I love Blender more than my girlfriend. Like this :
0
votes
0answers
29 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 ...
-4
votes
3answers
246 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
53 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
47 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
57 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
64 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
417 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
34 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
697 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
317 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
218 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
103 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
145 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
62 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 ...
2
votes
3answers
60 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
98 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
26 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
61 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
517 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 ...
6
votes
2answers
372 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
40 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
58 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
45 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
39 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
92 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
50 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 ...
2
votes
1answer
433 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'...
1
vote
1answer
358 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 ...
4
votes
1answer
216 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
62 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
30 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
125 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
112 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
129 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
158 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
235 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
177 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
205 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
336 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
233 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
3k 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
256 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
202 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 ...
5
votes
1answer
434 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: ...