Skip to main content
Share Your Experience: Take the 2024 Developer Survey
24 votes
Accepted

How to: Exponential Fall Off for Volume Density?

You can use Vector maths and Maths nodes to calculate the 'altitude' above the planet and from there the atmospheric density and use this to control the density of the Volumetric Scatter. To achieve ...
Rich Sedman's user avatar
  • 44.8k
23 votes
Accepted

Create procedural spiral pattern

Final result One method is to create a volumetric cylinder and distort it by rotating it around the origin by an amount that varies based on the distance from the origin. First, create a volumetric ...
Rich Sedman's user avatar
  • 44.8k
21 votes
Accepted

How can I generate an object from a mathematical function?

Have used the equations found here http://www.econym.demon.co.uk/isotut/real.htm#heart1 The first can be crunched into XYZ surface. Notice the use of fabs(...) in ...
batFINGER's user avatar
  • 84.5k
20 votes
Accepted

Use Latex in Blender

Here is how I would do it Wrap your expression inside a LaTeX document ...
user877329's user avatar
  • 1,388
18 votes

What does the fraction math node do?

Fract returns the fractional part of a floating-point value, as described by @Merlin, but its treatment of negative fractional parts is not actually the same as Blender's implementaion of Modulo. If ...
Robin Betts's user avatar
  • 77.4k
16 votes
Accepted

How can I make my procedural brick texture map correctly to both a cube and cylinder?

I think one issue with your original solution was due to lack of 'absolute' on your tests on the Normal - it's allowing for > 0.5 but not for `< -0.5'. Also, '...
Rich Sedman's user avatar
  • 44.8k
14 votes

How can I generate an object from a mathematical function?

Computing a real mathematical set given implicitly by function(s) f1(x,y,z,...)=0, f2(x,y,z,...)=0, ... is really hard. Here's how I do what you want: The ...
ofloveandhate's user avatar
14 votes
Accepted

HSV to RGB conversion

The RGB values in Blender use a linear color model while the Hex values use gamma corrected non-linear color model. To convert between these two, you would have to manually do the gamma calculations ...
binweg's user avatar
  • 2,711
13 votes

Closing "Fibonacci's Hole"

Oh gosh, I spent ages with it. On the pictures you posted it looks particularly nice because of lines are actually spirals. If they were straight it won't look nice. On your picture pole doesn't have ...
Noidea's user avatar
  • 1,256
13 votes
Accepted

Graph in blender a function of two variables,

There is an addon shipped by default with Blender called Add Mesh: Extra Objects capable of doing this. It is disabled by default and can be activated from the User Preferences dialog. Start by ...
Duarte Farrajota Ramos's user avatar
13 votes

How do I create a 3D parametric surface using Geometry nodes?

Will this way do? It's actually the same as @LuckyOne's, and the 2D answer you refer to. Instead of starting with a curve, start with a 'UV' grid, at the desired resolutions. Map the dimensions of the ...
Robin Betts's user avatar
  • 77.4k
12 votes
Accepted

Filling pentagon with quads (combinatorics)

Original answer (edit addressing the question clarification below) If you look at how the Catmull-Clark subdivision algorithm does it, you can see it creates a five-pointed star: Before: After: When ...
Scott Milner's user avatar
  • 4,483
12 votes
Accepted

Create a plane perpendicular to the long diagonal of a cube

You can create a face-type Custom Orientation from any 3 points: Edit Mode: Select the 3 points you want the plane to be aligned to and create a Custom Orientation from them.. ensure it's being used. ...
Robin Betts's user avatar
  • 77.4k
12 votes
Accepted

How do I plot a 2D parametric equation in Geometry Nodes?

Parametric functions fall absolutely naturally into the lap of GN, by setting X,Y and Z of a curve's points as some function of its Spline Parameter Create a Curve Primitive > Line Resample it to ...
Robin Betts's user avatar
  • 77.4k
12 votes
Accepted

Get Wave Texture to Follow Empty

You can use another empty with the track constraint and at the sphere's position, then use it in the Texture Coordinate node: Result:
Hulifier's user avatar
  • 6,103
11 votes

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

If you choose MATRIX as subtype the property will return a mathutils.Matrix object on access. So you might define a utility ...
pink vertex's user avatar
  • 9,876
11 votes

Recreating Mandelbulbs with math nodes

It's impossible to tell what's going wrong in your particular case as there just isn't enough information in your question - you've only partially shown the 'internal' node tree (many of the nodes are ...
Rich Sedman's user avatar
  • 44.8k
11 votes
Accepted

How do I make a giant clock made of many small clocks?

Here is the simple scene that I made using animation nodes: I made 2 arrows, and duplicated it 5*8 times: Each arrow is sent to the node program, which determines the position in the space and the ...
Crantisz's user avatar
  • 35.3k
11 votes
Accepted

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

This is an answer based on this Computer Graphics SE indicated in the comments (the one by Nathan Reed). The math is described in this answer, but in short the curvature is calculated by vertex so: ...
lemon's user avatar
  • 60.4k
11 votes
Accepted

How to create an accurate procedural spin gradient?

Quite an easy thing to do procedurally, since radial gradient is already there in the Gradient Texture node, just select Radial mode and use Object space for the centre of the texture to be at the ...
Martynas Žiemys's user avatar
11 votes
Accepted

How do you draw sin, cos and tan with shaders?

you can use this node setup: You can now add any math node between the two multiplier nodes.
Chris's user avatar
  • 61.6k
11 votes
Accepted

What happens when a vector is fed into a value slot of the add node?

🟣 Vector values convert to ⚫ scalar values by averaging all three components, therefore the following material should be white: (both branches compare as equal) ⚠ At very big values the $ε = 0$ ...
Markus von Broady's user avatar
10 votes
Accepted

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

I'm not aware of a simple way to do this without scripting, so here's a scripting based solution, using a frame change app handler. frame_change_pre app handlers ...
TLousky's user avatar
  • 16.1k
10 votes

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

I would suggest using Animation Nodes for more interactive results. The Grid Mesh node generates evenly spaced vectors (Which can act as your 2D coordinates plane). I separate the vectors into their ...
Omar Emara's user avatar
  • 22.6k
10 votes
Accepted

Ping Pong Math node - what does it do?

It's a positive symmetrical triangle-wave, amplitude Scale, period 2 * Scale, 0 at 0. Here's the function illustrated with 'Scale' (from the bottom up) set to 1, 0.5, and 0.333. These planes are 8 ...
Robin Betts's user avatar
  • 77.4k
10 votes

Create a plane perpendicular to the long diagonal of a cube

To rotate the plane so that it is exactly perpendicular to the long diagonal of the cube, one can use either a constraint or a little bit of trigonometry. Constraint With the plane centered on one of ...
HISEROD's user avatar
  • 3,958
10 votes

How do I plot a 2D parametric equation in Geometry Nodes?

You may use an Accumulate Field node for u, calculate x and y, combine them to a vector and set the position on the points of a Mesh Line: You should be aware, that the last point is not exactly the ...
André Zmuda's user avatar
  • 2,364
10 votes
Accepted

How do I create a 3D parametric surface using Geometry nodes?

Because your formula was too complicated for me...i just took another formula (but the principle is the same) so here is an example: I took the example from math surface -> cosinus formula:
LuckyOne's user avatar
  • 721
10 votes

How do you draw sin, cos and tan with shaders?

This aspect may not matter that much to you.. ( if it did, it might be better to go to a vector-graphics program and use its internal rasterization, or implement the graph as geometry in Blender). As ...
Robin Betts's user avatar
  • 77.4k
9 votes

Use Latex in Blender

You can get math into blender following these steps Use LibreOffice math to write your equation. Export to pdf File > Export Open the pdf with inkscape Delete the outer border Select the ...
qwazix's user avatar
  • 1,875

Only top scored, non community-wiki answers of a minimum length are eligible