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

Questions tagged [mathematics]

Use of maths inside blender.

Filter by
Sorted by
Tagged with
36
votes
2answers
11k views

Generate curve from equation

I've been trying to design a dynamic sculpture which I can only define with exactitude through mathematical equations. Now, the equations yield only lines, like you can see in the animation below: I ...
3
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 ...
8
votes
2answers
2k 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? ...
15
votes
2answers
8k views

how are the math node operations in cycles calculated?

How does the math node do calculations with a specific operation: the usual operations of add,subtract, multiply and divide are quite understandable and are(empirically) very similar to some of the ...
26
votes
3answers
9k views

How can I generate an object from a mathematical function?

I have a formula that mathematically describes the heart surface in Cartesian coordinates: $$\left(x^2+\frac{9y^2}{4}+z^2-1\right)^3-x^2z^3-\frac{9y^2z^3}{80}=0$$ Unfortunately, I have no idea how ...
14
votes
1answer
2k 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 ...
27
votes
1answer
2k views

Physical iridescence in Cycles?

Having recently seen the Siggraph paper A Practical Extension to Microfacet Theory for the Modeling of Varying Iridescence, I of course said to myself "I have to have this in Blenderrrrr!" and started ...
9
votes
1answer
1k views

IES-like lights in Cycles

I have been consistently trying and failing to recreate the techniques described in the links to create an IES like textured light effect with Cycles Spotlight lamps using a Color Ramp node. http://...
5
votes
2answers
1k views

How to delete all faces with distance to other object

I want to delete all faces (of "Mesh") with a distance > 0.5 to the nearest point of an other object ("Sphere"). Unfortunately it deletes the whole object. Thanks for helping! ...
7
votes
1answer
2k 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 ...
11
votes
1answer
908 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 ...
3
votes
4answers
2k views

Possible to use object speed/acceleration as driver variable?

If I have an animated moving object, is it possible to get its speed and/or acceleration vector into a driver variable? Some ideas I've thought of and haven't worked out: Obviously differentiating ...
23
votes
7answers
18k views

Fractals in Blender?

Is it possible to define a true mathematical fractal in Blender? For example, would it be possible to use a script or a Blender addon to procedurally generate 3D fractal objects. This could be ...
23
votes
3answers
5k views

What do glossy distribution models do?

In Cycles, the glossy (and anisotropic) shaders have a Distribution option. Since I don't really know the difference, I have always left it at it's default (GGX). So what is a distribution model, ...
13
votes
4answers
1k views

Cycles node editor - Map gray scale value map to extremes

I have a value map that is black and white, but it covers a very small range of that spectrum, having the brightest value at 90% grey, and the darkest somewhere around 80% grey. What I need to do is ...
10
votes
1answer
2k views

Make “gaussian laser beam” (object with variable radial emission profile)

Laser beams are usually not cylinders of light, but instead they have a smooth beam profile, where they are brighter in the center of the beam and dimmer towards the sides. The cross section typically ...
5
votes
2answers
604 views

A tube of light in a volume shader

As I had much fun with this (thx Chebhou) but gaussian functions are a bit too complex for me, i want my volume scatter cylinder to have simply a smaller cylinder emitting light inside it, from the ...
4
votes
1answer
154 views

Blender Cycle's z-coordinate vs. camera-centered z-coordinate (orthogonal distance)

Rendering a scene and writing the 'Z-buffer' into an EXR file using 'Blender Cycles', I get a depth map. That depth map differs from the depth map which is produced by 'Blender Render'. Given its ...
3
votes
1answer
366 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 ...
61
votes
5answers
18k views

Is there a tool for scientific visualization using Blender?

Is there an interface or API that allows using Blender as a tool for mathematical and scientific visualization? It should allow Blender to read in data (a la gnuplot or matlab, perhaps using scipy) ...
27
votes
3answers
8k views

What is Dot Product?

I am doing this Blenderguru tutorial on Making Fire and at some point he is adding the Vector Math node Dot Product to his material. And he says that he does not understand what he is doing but this ...
8
votes
2answers
1k 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 ...
14
votes
1answer
3k views

Using Blender for plotting graphs?

While gnuplot is serviceable and matplotlib is a popular choice for Python developers, I wanted to use Python for plotting some simple graphs (matplotlib had some issues installing on my system, with ...
8
votes
1answer
2k views

Build color ramp out of math nodes?

I want to use color ramps or RGB curve effects in my node groups. This runs into the problem that the only sockets these nodes have is their input image and factor. This means if I have them in a ...
7
votes
2answers
476 views

Show banding on object

I'd like to emphasisze the '3d-ness' of my object, by applying a rectangular mesh to it, as if it were a white object in a black room illuminated only by a (far away) laser that scans horizontal and ...
5
votes
3answers
1k views

how to change a mesh given by mathematical function with time i.e. how to include the time parameter in the mathematical equation?

I am trying to make an animation in which a mathematical function changes as a function of time. Given below are two images which are z math surfaces(from the "extra objects" add on) whose equations ...
5
votes
2answers
808 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?
4
votes
2answers
821 views

creating mesh on an isosurface

I have a function like $f(x,y,z)=\text{constant}$. It is not straightforward to solve $z$ as a function of $x$, $y$, and $\text{constant}$ analytically. So, I want to choose a Constant value, draw ...
11
votes
1answer
6k views

What are the benefits of Quaternion rotation over Eulerian rotation?

What are some practical uses for the Quaternion? Why not just use the Euler X, Y, and Z axis rotation values? It's not intuitive how one should manipulate Quaternions. Can someone explain this?
2
votes
2answers
349 views

How to make variable transparency hole in a plane with a math function using nodes?

One way to make a transparent hole in a plane with graded transparency is to uv-map a solid, monochrome image with graded alpha (I assume). But can I do this with nodes? I've used the Error Function ...
12
votes
1answer
3k views

How can I create 3D surface of sine waves?

I would like to make a surface that obeys the equation: z = Asin(x) + Asin(y), 0<=z<=1; 0<=x<=2npi; 0<=y<=2npi Where I would like to be able to change n to increase/decrease the ...
9
votes
4answers
679 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 ...
6
votes
1answer
155 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 ...
4
votes
1answer
560 views

Vertex colors are wrong value?

I am using a renderlayer with some vertex colors to render some masks. I have an object with a vertex color layer. The entire object is set to RGB values of .25 each (using set vertex colors command.) ...
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 ...
0
votes
1answer
210 views

Creating mesh on a surface with two variables

I have an equation like this: $\cos(z)+\sin(x)+\sin(y)=1$ and I want to do something like: Graph in blender a function of two variables, I followed the proposed method in the same post. It was ...
-3
votes
3answers
570 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
436 views

Why can't I type simple formulas when using transforms? [duplicate]

what its happening here? i just want to rotate R 360/5 but if do that the math function turns in to something like R [1/(360)] ...
4
votes
1answer
187 views

What happens when you plug a BSDF into a value socket?

What happens when you plug a BSDF (shader) socket into a value (float/color/vector) socket, or vice-versa? Obviously there is no way to convert a function to a value, so what does blender do? From ...
3
votes
2answers
873 views

Animating z surface math functions

I would like to use the z-math-surface add-on to animate a function with a free parameter like sin(x+a) where the effect of different values of "a" should become clear to the viewer. I am quite new ...
3
votes
1answer
150 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 ...
3
votes
0answers
53 views

Are there any resources for learning CG related math (especially the math used by Blender)? [duplicate]

I want to get involved in developing Blender, maybe writing add-ons and stuff for the community. As far as I can tell, there's a lot of math involved with this (generally stuff like matrix/vector ...
3
votes
1answer
1k views

BGE - Calculate Acceleration from Velocity

I need to calculate acceleration of my rigid-body object in Blender Game Engine. What I did now is: ...
2
votes
1answer
478 views

How to make a F-curve with a constant and linear part?

As part of a problem I need to obtain a curve in the graph editor, that has a constant part , followed by a linear one. for instance: for the interval [0,100] the curve is y=0 for the ...
1
vote
1answer
272 views

Does the Vector Math Normalize operation use the second input?

The Vector Math node has an operation called Normalize. I have always presumed that this is a monadic operator which ignores the second input and returns a unit vector in the direction of the input ...
0
votes
1answer
496 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?
0
votes
2answers
630 views

Rotate bmesh around Vector with Python

I try to rotate a bmesh around a vector as axis. ...