Questions tagged [mathematics]

Use of maths inside blender.

Filter by
Sorted by
Tagged with
1
vote
1answer
70 views

Spiral array but with fibonacci sequence

I am trying to make a sunflower. The seeds in a flower grow in a spiral. Whenever I add an array spiral and make it follow the curve, it doesn't seem to look quite right. This is because it doesn't ...
0
votes
0answers
8 views

Using mouse hit position on screen and a text objects position - how can I work out what character is moused over?

I can get a hitpoint from UPBGE - mouse sensor - and I can get the text object matrix and localize the hitpoint - from here - how would one work out what character is moused over? Local_point = mouse....
0
votes
1answer
18 views

Python: Placing objects around a spheres surface with proper rotation

i have a script to duplicate an object, and place the duplicates at random coordinates around a spheres surface, and then point those objects away from the center of the sphere. It almost works but ...
0
votes
1answer
29 views

Count of multiple face areas

is any way how to display total faces area of selected faces in Blender 2.8? Manually counting isnt possible...I want count 1000 and more faces...
1
vote
0answers
33 views

How to make a math function with equal sign in blender?

I was trying to make a circle . I tried to use this function (xx)+(yy)=a. Making (xx)+(yy) was easy but how i should go about making =a part in blender shader editor? (also it would be great if ...
0
votes
1answer
61 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++ ...
3
votes
1answer
94 views

Node editor Hexagon

I currently have the Maths expressions addon installed in blender. I know it has a hexagon preset already, but it comes up with this: 1) How do I fix this? 2) How do I make a hexagon?
5
votes
1answer
2k views

Graph in blender a function of two variables, [duplicate]

I would like to know if there is any way to be able to graph in blender a function of two variables, for example Sin (x y2) for the domain of x from -3 to 3, the domain of y from -2 to 2, to get ...
0
votes
0answers
26 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
20 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
27 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
23 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
62 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
181 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
56 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
28 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
95 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
998 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
17 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
73 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
39 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
155 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
87 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
102 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
930 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
33 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
68 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
25 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
51 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!
1
vote
0answers
63 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
325 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
222 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
362 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
42 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
84 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
29 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
152 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
208 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
76 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
64 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
182 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 ...
10
votes
2answers
447 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
16 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 ...

1
2 3 4 5