Questions tagged [mathematics]

Use of maths inside blender.

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

How to have the texture of a circle separated in bands each with a different factor (or color) in a shader? [duplicate]

I created a simple shader to subdivide a circle in a specified number of bands. Each bands has a number between 0 and 1 and the factor (color) for each band is (previous bands + 1/NumberOfBands); I ...
0
votes
0answers
15 views

If I have a math expression, how can I apply it to an objects origin using python? [closed]

I have just the default cube: I added a boolean modifier to cut the cube-like this: I also have a math equation that I want to try. The equation will set the origin to this part of the cube: I don'...
6
votes
3answers
612 views

How to avoid violating energy conservation when making shaders and node groups?

Recently a user on here offered a tip to be careful when making shaders so I don't violate energy conservation. Blender stores colors in the value range of 0-1. If you go above 1, then more light is ...
1
vote
0answers
29 views

Changing the “angle / curvature” of a mesh created using python and parametric equations

Changing the "angle / curvature" of a mesh created using python and parametric equations. I can create a Hyperboloid using Python and Blender: With the Python script formula snippet: ...
5
votes
2answers
90 views

How to convert HSV to RGB using shader nodes?

I am trying to implement the following function that converts HSV to RGB: ...
3
votes
3answers
211 views

Having trouble implementing a function in the node editor where the source uses if/else logic

I am creating a color saturation node group in blender as an exercise. This is the code I'm trying to implement: ...
3
votes
1answer
52 views

How to compare three (or n) values and output the minimum value using nodes

I want to compare three values (RGB) and then pass the minimum (or maximum) along the node chain. For instance an input of (100,50,255) would output 50. The math node only allows you to pass along one ...
2
votes
0answers
28 views

Is there a node-based implementation for saturation that works a little more like Photoshop?

I am asking this question because I am putting together a node group to adjust some basic color and contrast settings for texture maps. I really hate the way that Blender's Hue/Saturation node ...
4
votes
2answers
125 views

How to I change the Interpolation Type in the Map Range node like the documentation says?

According to the documentation, you should be able to change the Interpolation Type of a Map Range node. I am on 2.91.2 and don't see it. Is this a new feature that I don't yet have access to? ...
2
votes
1answer
32 views

Why doesn't a value node set to 1 evaluate to pure white in the shader editor? [duplicate]

I am starting to work with math nodes more often and came across something I don't understand fully. When you preview a value node that is set to a value of 1, the result is not pure white. If I crank ...
2
votes
1answer
64 views

I want to make a nasty wriggling worms procedural shader

I saw a tutorial to make a spaghetti shader in substance designer, and in that they used some default noise texture that they altered to look like noodles. I want to do something similar in blender, ...
0
votes
1answer
27 views

How to make node disappear

It seems to make the value node disappear while connecting it to group input. I've tried different combinations and have node wrangler on but I'm not sure how to get it. I'm also unclear as to exactly ...
3
votes
1answer
35 views

How to create such a mechanism? [closed]

I thought to do it sideways. Here you need to use drivers and math, I think. But where can I find similar examples in execution, tutorials with a solution to a similar problem? Or books, videos, ...
1
vote
0answers
23 views

How to give uniform thicknes to edges of an object using materials(nodes)?

Here I want to create a thick border around my object using materials (Nodes). Here is my model and material. But, when we see closely, there is a variation in thickness of side borders. The side ...
0
votes
0answers
17 views

Camera solving - what algorithm is used?

Note: this question is about how Blender is implemented, not how it's used. IIUC, Blender uses 8 points (or more) at two keyframes to calculate the position in space of the camera. What is the ...
0
votes
0answers
19 views

How can I mask a layer using another layer in the compositor without manually masking

I want to mask a layer having freestlyle lines alone of a cube (rest transparent) using an upper layer containing a sphere passing past the cube in the compositor using nodes such that the ...
0
votes
0answers
42 views

Blender 290 Python : Rotate object , to align object any “edge” toward point (By math ?)

I am trying to build up a tool for orient objects, and align them... I start placing a starting point(circle), and a ending point(squaredcircle), And use these two lines of codes to orient an arrow, ...
1
vote
2answers
48 views

How to create a rotation in local space that is equivalent to the rotation in world space?

Say I have a quaternion rotation in the world space, and I need an object to rotate according to that rotation, however, that object has its own axis. What sort of operations would I need to perform ...
0
votes
0answers
17 views

How to isolate edge loops along axis in python?

Using python scripting, I want to make changes to edge loops that roughly follow a given axis, (Z in this case) but I don't even know how to isolate the loops I want. To illustrate, I've selected the ...
0
votes
1answer
26 views

converting parametic equation using python

I'm trying to convert some math / formulas STEP 1: Found at: https://math.stackexchange.com/questions/324527/do-these-equations-create-a-helix-wrapped-into-a-torus But the spirals aren't closing / ...
3
votes
1answer
49 views

How can I make this hexagon be exactly the height of the square

I made this hexagon using a tutorial from erindale: https://www.youtube.com/watch?v=mLRqhcPIjg8&t=334s I'm trying to make a pattern using this hexagon (the carpet pattern in "the shining&...
2
votes
1answer
46 views

Is there a way to loop in some way, the w slider on 4D nodes?

I have a little procedural nodes animation that has a wavering 4d noise texture made by adding the #frame driver to the W value. I would like it to loop, but since the W value is like a random seed, ...
2
votes
1answer
17 views

Can I define a coordinate system based on a mesh, as generated coordinates are based on a bounding box?

I am making a procedural cloud based on CGMatter's which takes the shape of the mesh assigned the cloud material, with the added ability to 'shrink' the initial (pre-distortion) volume box so the ...
0
votes
0answers
41 views

Object>>rigid body>calculate mass: mass estimates are bit out on shape created using Maths Mesh tool

I was hoping to use Blender to calculate the mass of shapes with curved surfaces. To start I took a 1m cube and performed a boolean difference with a parabolic curve (x=0 to 1m)that was extended ...
1
vote
1answer
162 views

Geometry Nodes. What to enter in the result to get a change in the Z axis?

I entered scale to control the size of the object, if I want to control its height, what should I enter? I tried dozens of different ways.
3
votes
1answer
79 views

Any way to recreate this procedurally and random?

I've recently been trying to create a personal library of node groups and materials to get a better understanding of blenders material nodes, but I'm a bit stumped on how to recreate this I'm trying ...
0
votes
1answer
90 views

How to get a vector type from a FloatVectorProperty?

How do I get the mathutils.Vector from the FloatVectorProperty in a python script? Sometimes it works other times I get a type ...
0
votes
0answers
26 views

Mesh -> Math Function: Edit Dialog [duplicate]

How do I pull up the Edit Dialog after it closes? I have enabled Math Functions and it works fine; however, after I initially enter my settings in the dialog ("Add Z Function Surface"), the ...
0
votes
1answer
58 views

How To Make A Board Game Piece With Vector Displacement [duplicate]

My final outcome will be a flat plane with a displaced board game piece that I can move around. I started by making a cylinder come out of the plane. Then I wanted to use RGB curves to shape a board ...
1
vote
1answer
29 views

Rotate by a given relative quarternion

So this is a classic question, I guess, but still I couldn't find an answer to my specific variation: I have an object where I select a surface with a given normal vector. I then want to rotate the ...
2
votes
1answer
39 views

How can I invert the value range of a node group's input node?

I am making a simple edge detector group, and I want to expose a value to its input. The only problem is that the value I want to expose is mapped differently than I would like. It goes from -1 to +1. ...
1
vote
1answer
37 views

Calculating the correct angle needed to bend a plane into a “cylinder shape”

Calculating the correct angle needed to bend a plane into a "cylinder shape". I have a 5x5 diamond plane that when I bend it 396 degrees it becomes a "cylinder shape" Another ...
1
vote
0answers
39 views

Is there a way to morph between two different shapes made with shader nodes

I've made a couple of simple shapes (Just a circle and a star) and I wanted to be able to have a slider that at 0 would be one shape and at 1 be the other. Right now I'm using a value which is rounded ...
4
votes
1answer
53 views

How could i make a cartoon flower type of shape

Almost like a star shape but with the points rounded off. I used this node setup to make a star like this, but I can't figure out how to round off the edges. I would like to be able to customize the ...
4
votes
1answer
154 views

Why does a MixRGB node rotate my ColorRamp/mapping coordinates?

Why does a MixRGB node rotate my ColorRamp/mapping coordinates? The Fac is set to 0 so it should have no effect on anything at all. Also notice that the voronoi pattern is not rotated but the ...
2
votes
2answers
120 views

Is there a way to get continuous radial/polar coordinates?

I'm not exactly sure if that's the right word for it, but basically, I want to be able to generate a gradient around a point like in my picture, but without the seam. the only thing I can think of ...
0
votes
1answer
64 views

Mathematics behind creating shapes using math nodes

I have seen people are creating various shapes using math nodes in Blender. Not just simple shapes but very complex shapes for example like a batman logo. I have learned that they extract algebraic ...
0
votes
1answer
53 views

How can I calculate a 28.5 mm hole for a hyperboloid center opening when it's Z=0

How can I calculate a 28.5 mm hole for a hyperboloid center opening when it's Z is equal to 0 The arrows point to where z=0 and the 28.5mm hole should be. (I know I could scale the object but I need ...
2
votes
1answer
117 views

How can I turn a mesh inside out

I have a mesh with bottle threads on the outside. Now I would like to make / invert the threads so they appear on the inside to create the cap. I tried using the boolean modifier and difference ...
0
votes
2answers
33 views

map 2d coordinates to 1d index using blender drivers

is there a clean way to convert a 2d vector ( from relative position between two objects ) to 1d index using blender drivers? it should be extendable to add more items later . it is useful to control ...
0
votes
0answers
28 views

Using a 360 rotation to drive another object so that it rotates 0-180 and then again 0-180 [duplicate]

I've got a bit of a remapping problem with my driver setup. Driver disk rotates 360 degrees (or more) Driven disk should match the driver for 0-180 degrees. Driven disk should then rotate again from 0-...
1
vote
1answer
97 views

How Use the rotation of a driver object to drive the 0-1 position of 12 driven objects

I've specfied my question so its hopefully a bit clearer. The idea is to use the rotation of a driver, to drive 12 driven objects. This means that for every 30 degrees of rotation, a driven object ...
0
votes
0answers
78 views

Create mesh from procedural volumetric material 'isosurface'

So Rich Sedman wrote an answer / tutorial on how to make a random / organic scaffolding structure using procedural volumtetric materials. He essentially defines an isosurface in math nodes and uses ...
3
votes
1answer
140 views

Is there a way to model schrödinger's wave equations in blender?

I have the task to model the orbitals of an atom in blender for an animation. I know the orbitals of electron around an atom can be gotten from Schrödinger's wave equations. How would I be able to ...
1
vote
0answers
34 views

Find vertex projection of one object on the vertex normal of another object

I have the following setup: There are two objects: o1 (normal object; centered at the origin, no rotation) and o2 (it's a lattice; centered on a face of o1, rotated to match the rotation of the face)....
3
votes
1answer
48 views

Reconstructing axis of pot with one shard via vertex normals

I`m planning to do a reconstruction of a whole pot from one shard of it. I've already thought of a way to do it, but I really don`t know how to make it happen in code. Theory: every shard has a ...
1
vote
1answer
43 views

Primitive shapes whose parameters are dependent on their relative postiton

Fist time posting. I love Blender (a hobbyist new user making stills and stuff) but if it is not the right software, feel free to send me off. I'd like to have a sphere and a cone whose base is formed ...
0
votes
0answers
47 views

Is there anyway to differentiate a value ( from the shader editor ) in Blender

The title says it all. Is it possible? bit of a noob question though so hope any of you do not mind. Differentiation refering to getting a derivative of a value.
1
vote
1answer
53 views

Converting bottle threads from diagram to a 3D model

Goal: I'm trying to model the threads of a polar springs 500ml bottle in Blender 2.8x so I can 3D print an adapter for it. Issue: I'm having issues converting what Blender 2.8x calls Screw and what ...
0
votes
0answers
38 views

Plotting functions in blender

I've played around with "fractals" following https://www.youtube.com/watch?v=CR7jxw94Tcg but I want to plot my own functions; is it possible to plot any (math) function in blender, logs, ...

1
2 3 4 5
7