Questions tagged [mathematics]

Use of maths inside blender.

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

How do I convert camera coordinates to world coordinates?

Blender has a great function to convert world coordinates to camera coordinates. However, in my case I am trying to do the exact opposite and can't find an existing method of doing so. I have tried ...
0
votes
0answers
19 views

Python : Negative scale causes global rotation discrepancies

I'm currently working on a system using Blender to export some scenes to a game engine. To do so, I've written a Python script reading the scenes and writing the files as needed. So far I've had no ...
0
votes
0answers
22 views

How to plot XYZ dataset? [duplicate]

I have a text file with a set of 3D points. How can I plot it and generate a Mesh surface like in the given image? enter image description here
0
votes
0answers
18 views

How to configure the python values to fix the facial movements of a new 3d character not originally thought to work with those

I've just tracked and saved on the timeline the facial movements of Victor using OPEN CV and following this tutorial : https://www.youtube.com/watch?v=RY_eErKlilw The result has been good,as u can ...
1
vote
1answer
59 views

How do i convert this equation into the node editor?

How do I make this in the node editor? I don't get how to go around y=(-x)
3
votes
1answer
1k views

How do you create a Math Formula for a Model Object?

In Carrara 4.0 Pro, I am able to create various modeling objects using math. The UI comes with 4 sliders (p1, p2, p3, p4), with values varying from -1 to +1 or -pi to +pi, and a text area for the ...
2
votes
2answers
163 views

Calculate sphere's rotation for rolling

Let's say that there is a sphere whose x,y,z dimensions are d. So, the circumference is d*pi. Now, the sphere is rolling on a ...
-1
votes
1answer
109 views

Get the depicted result procedurally, with interactive possibility as described, minus the equilateral grid ? Python, AN, any other method

Strike four - Drivers... No control. The AN nodes will prove to be the best solution as I initially suspected. Unless I'm missing something obvious, which is entirely plausible. Strike three I'm ...
9
votes
4answers
2k views

Use Latex in Blender

I want to use math text in Blender. For example, I would like to have fractions (A/B) where the letter A is on top of letter B and the division line is horizontal. I also would like to move this ...
2
votes
1answer
49 views

looping through splines of a bezier circle, can only find 1 spline not 4

I'm trying to port differential line growth to blender animation nodes following this example https://vimeo.com/169438763 . I was suggested to work with splines in blender as it would be a lot simpler ...
0
votes
0answers
26 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. ...
8
votes
2answers
3k views

How to find all objects in the Camera's view with Python?

I have a scene with a many objects and one camera. I would like to select the objects that the camera sees, even partially. Is there a way to do that in Python that accounts for the objects bounds? ...
4
votes
1answer
79 views

Documentation on the mathematical models used by Blender physics engines

I need to know which mathematical models Blender uses during rigid body simulation and fluid simulation (e.g. Lattice Boltzmann). Is there something like that in the Blender manual or do I need to ...
2
votes
1answer
956 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'...
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
1answer
68 views

How do I lay objects on the surface of a sphere with Python?

Just started Blender (and Python) about a week ago, so please bare with me. I apologize ahead of time for confusing/misused terminology, etc. I am working on a research project and I need to: ...
5
votes
0answers
33 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 ...
1
vote
0answers
13 views

Where is the menu to modify newly created objects? [duplicate]

So I've installed the Add Mesh: Extra Objects add-on because I want to make a mesh from a mathematical function. However, the tutorial I'm following seems to use an old menu that I cannot find in the ...
3
votes
3answers
3k views

How to calculate the direction and up vector of a camera?

I'm trying to implement a prototype for a custom render engine using blender as content creation tool. One remaining questions is: How can we calculate the direction and up vector of the camera by its ...
4
votes
1answer
154 views

scale multiple textures

is there anyway to scale multiple texture nodes? for example the image below. Is there anyway to scale these three textures together?
1
vote
1answer
52 views

How to calculate world position of offset point based on rotation of an object in python

I have a sphere parented to another object, offset on the Z axis so that when i rotate the parent i can get the world position of the top part of the parent. How can i calculate this without needing ...
3
votes
1answer
74 views

Blender 2.8 - Cycles - Math (Sign)

I have worked on plenty of Math operations within Cycles without the need to use GLSL. The only operation/function so far that I Can't figure out however, is Sign. Basically, this operation will ...
5
votes
2answers
865 views

What does the fraction math node do?

I am trying to learn some procedural basics. Could you tell me what the fraction math node does? Is the result similar to modulo?
0
votes
0answers
31 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 ...
1
vote
1answer
57 views

How to create a mirror pose for a pose bone (using Python)?

I've done pose mirroring for characters in some other 3D software using scripting / matrices. However in Blender I don't have the same helper methods / functions available (or haven't found them yet)...
1
vote
0answers
24 views

How to set the Euler angles(XYZ) of an arrow, from its components? [duplicate]

Given a vector(an arrow object) say $\vec A\,= \,P \hat{i} + Q \hat{j} + R \hat{k}$ , how to determine the corresponding Euler angles (XYZ) to be assigned to the vector so that it points in that ...
3
votes
0answers
49 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!
0
votes
1answer
53 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++ ...
1
vote
0answers
53 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 ...
4
votes
1answer
271 views

Looping function in node editor?

I want to be able to loop a certain math function (in the node editor) x amount of times. I want to do this without scripting (unless it could be done so while still being able to run on GPU). For ...
4
votes
1answer
196 views

How to convert equations to work with Blender and animation nodes?

I have an equation that I'm trying to animate in Blender 2.79b The equation is. $$y=e^{{{\log \left(1-x^{{\it (S*T)}}\right)}\over{{\it (S*T)}}}}$$ Where: ...
3
votes
1answer
270 views

Is it a correct math definition of averaging two vectors? (Blender vector math node)

There is such a definition in the Blender Vector Math node: Isn't an average vector supposed to be something like: Vector = (input1+input2)/n where n is a number of vectors? It seems what we ...
1
vote
2answers
36 views

How do I change a Math Z Surface's x and y bounds?

I am new to blender and I am trying to make a 3D model of an equation that I came up with. When I create a math Z surface with the Extra Objects Add-on, I cannot seem to change the bounds of x and y. ...
0
votes
0answers
10 views

Is it possible to have the location of a seperate object as a vector-input in a material? [duplicate]

A simplified explaination of what I want to do is this: There is a camera moving through the scene and as it moves, there is a wireframe of the enviroment which expands outwards from the camera. I ...
0
votes
0answers
75 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 ...
1
vote
1answer
27 views

I'm trying to recreate the camera as a mesh in python

i'd like to recreate the active camera as a geometry (it's for optimizing particles in the viewport with a dynamic paint modifier) i'm almost there, the last part is just finding the correct ...
1
vote
1answer
137 views

Using Animation Nodes with the expression node with equation starting with x(n+1)=

I'm trying to animate the variables for various strange attractors using animation nodes and it's expression node. The equation I'm trying to animate. I can create the equations and animate the <...
6
votes
1answer
187 views

Converting the Clifford Attractor equation into python to animate it in blender 2.8

I'm trying to re-create and animate a "Whispy Clifford Attractors" this http://paulbourke.net/fractals/clifford/5.jpg from this site http://paulbourke.net/fractals/clifford/ I can create the ...
0
votes
1answer
70 views

Is Blender appropriate for learning Stereometry (a subject in mathematics)?

In some countries, senior high school students are still taught about Sterometry in which we are asked to draw a cross section between a solid and a plane, for example, as follows. Shortly speaking, ...
0
votes
1answer
58 views

How to render a 3d object in a texture

So I have somewhat of a 3d space inside this texture and I wanted to know if it is possible to draw a 3d sphere inside of how do I tackle this with nodes if possible at all, should I use a Parametric ...
0
votes
0answers
124 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 ...
9
votes
2answers
405 views

Is there a way to calculate mean curvature of a triangular mesh?

So I've written a script which does this: Before: After: The code is: ...
0
votes
0answers
13 views

Create Spline from Formula (Vector Valued Function) [duplicate]

In Cinema 4D, there is a formula spline whose shape is dictated by a vector valued function. This allows me to create very unique shapes very easily, such as the following: I am not sure if there is ...
0
votes
0answers
26 views

defining vertices with a math formula? [duplicate]

Is there a way to define vertices of a curve with a math formula? I'm trying to do a lemniscate (a rose curve the two lobes, infinity sign). X=90*cos(b)*sqrt(cos(2*b)) y=90*sin(b)*sqrt(cos(2*b)) ...
0
votes
0answers
18 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
112 views

How to quickly render 2D/3D Mathematical curve animations without the shadow details

I am thinking of starting a new YouTube Channel where I'll be doing Math videos. So I'll be doing things like animating curves, similar to the picture attached below. So I don't need much of the ...
1
vote
1answer
342 views

Recreate to_track_quat with two vectors using python

i've been asked to recreate the to_track_quat function of mathutils to create a quaternion that looks from point a to point b, but so far i've been un successful. I'm using in blender two objects, ...
1
vote
0answers
84 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
2answers
27 views

How can I make boundaries for a numerical value in the node editor?

I am trying to make a node setup where: If the input is 0 or anything less it outputs 0 If the input is 5 or anything greater it outputs 5 If the input is between 0 and 5 it outputs the input I can'...
1
vote
0answers
380 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 2 3 4 5