Questions tagged [mathematics]

Use of maths inside blender.

Filter by
Sorted by
Tagged with
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) ...
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 ...
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 ...
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 ...
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 ...
25
votes
1answer
965 views

Closing “Fibonacci's Hole”

Creating a sphere using the points defined by Spherical Fibonacci Mapping. For the most part it is easy to "skin" by using two consecutive fibonacci numbers as steps to loop on the index. And get ...
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
6k 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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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?
11
votes
1answer
937 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 ...
10
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 ...
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 ...
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 ...
9
votes
3answers
2k 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$$ ...
9
votes
1answer
2k views

Sine wave using only Math nodes?

For the purpose of animating materials, is there a way to construct a sine wave function out of Math nodes? A while back I asked about how to do something similar with scripted driver expressions. ...
9
votes
4answers
710 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 ...
9
votes
2answers
408 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: ...
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://...
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 ...
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? ...
7
votes
2answers
482 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 ...
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 ...
6
votes
2answers
860 views

Which of Blender's bpy.props properties can store a Matrix?

In my script I am trying to store a Matrix, for example the region_3d.view_matrix of a 3D view. This returns: ...
6
votes
1answer
2k views

What does the “Absolute” setting in the Math node do?

The documentation is a little unclear. "Always return non-negative value from any operation input 2 between input 1." https://...
6
votes
1answer
192 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 ...
6
votes
1answer
686 views

How to make a node group to calculate fresnel via F0 values

Object I want to make a node group so I can enter a F0 value instead of the IOR value for fresnel. Purpose The purpose is to make a fresnel node group for metallic shaders, since default fresnel isn't ...
6
votes
1answer
4k views

Blender for Mathematics Visualization

EDIT: For those believing that Blender is good for mathematics or want to prove it, this may be helpful: Blender + Mathifold. I hope it does indeed meet the aspects I need Blender for. I have ...
6
votes
1answer
733 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: ...
6
votes
1answer
496 views

Clarifying Blender skeleton animation and OpenGL

I'm looking into implememting skeleton animations. I use Blender to create the armatures, export them using the IQM file format (Inter Quake Model). My first steps are to make sure that I'm getting ...
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
874 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?
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! ...
5
votes
2answers
618 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 ...
5
votes
1answer
322 views

Need normalized distance between geometry bounds

I would like to get a value between 0 and 1 of the distance between the mesh bounds in an axis (Y), depending on the X value. not sure this is crystal clear but the screenshot says more than words :) ...
5
votes
0answers
34 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 ...
4
votes
2answers
836 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 ...
4
votes
1answer
1k views

Filling pentagon with quads (combinatorics)

How to subdivide edges of the pentagon so that when I'm making grid with faces I get perfect quads or almost all quads ? This is more math-combinatorics question but is quite important for the mesh ...
4
votes
2answers
232 views

Capsuling a tube shape in a volume

I have this node setup : I want to improve it a bit giving the cylinder light a capsule shape like that : This shape can be at any side, or both, you choose. The distance of the red circle to ...
4
votes
1answer
303 views

How to mathematically define a torus in a volume

Using the node editor and Cycles, how can I define a material that looks like a torus? This is useful in order to render a really smooth torus, without needing to a bazillion vertices.
4
votes
1answer
71 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 ...
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?
4
votes
1answer
198 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: ...
4
votes
2answers
847 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 ...
4
votes
1answer
410 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(...
4
votes
1answer
627 views

Hyperbolic Solids in Blender?

How can I construct hyperbolic solids (hyperbolic cube, tetrahedron, etc.) in Blender? Below is a picture of a hyperbolic cube: Here is some more information on hyperbolic solids. Just to be ...

1 2 3 4 5