2022 Developer Survey is open! Take survey.

# Questions tagged [mathematics]

Use of maths inside blender.

422 questions
Filter by
Sorted by
Tagged with
34 views

### Geometry Nodes Equation/Method for bouncing objects?

I would like to have a bunch of cubes bounce in a specific space. I have set up a simple equation of abs(cos(x))/x which terminates after 3 bounces. It looks kinda ...
249 views

### Unfold cylindrical object around rotation axis

Good evening! Sometime ago i asked a similar question but i did not get the right answer and the discussion went into a wrong direction. Maybe i did not express myself correctly. That's why i did a ...
249 views

### Using math nodes to create geometry in geometry nodes

Using math nodes to create geometry in geometry nodes I'm trying to create some geometry using math nodes in geometry nodes see image below of what I'm trying to create. Yes I know I could model a ...
1k views

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

I want to draw sin, cos, tan and other mathematical functions with the shader editor. How do I do this?
29 views

...
29 views

### Faking acurate reflections with an environmet texture on a model with a normal map

So, I've tried making cubemap-like reflections on a model with an environment texture (the ones that come with blender for now). The sphere on the right has just the regular reflection from the ...
155 views

### Selecting every n'th index between the numerical index ranges of b and c using modulo in geometry nodes

This question is similar to Selecting every n'th index using modulo in geometry nodes but with an added range option. I can select every n'th number thanks to Hulifier I'm trying to select every ...
1 vote
45 views

### If there is any way in Blender I can use a mathematical formula to control particle density?

I'm trying to visualize something in physics. I have a formula that determines the density of particles at each point in 3D space. How can I visualize this? For example: density=1/r^2
203 views

### Selecting every n'th index using modulo in geometry nodes

How can I go about selecting every n'th index using modulo in geometry nodes. Example: I have an index range of 0-35 and would like to select every 9th index so I can place an icosphere on it, which ...
156 views

### Geometry Nodes Fields - Semi Circle

Is it possible to create a semi-circle with Geometry Nodes? It's for a particle system, so a math based approach rather than a boolean approach would be ideal to keep the vert count/calculation time ...
1 vote
47 views

### How to create Sine "Pulse" with math nodes and "From/To" inputs Amplitude?

Based on this answer:Sine wave using only Math nodes? I have the ability to create an animated waveform with an amplitude from 0 to 1. Very interesting and useful. But now I would like to ask the more ...
43 views

### Need help translating a mathematical formula to nodes

Recently I went deep into the shader nodes rabbit hole, and just straight up started recreating the code for all kinds of fractals, raymarchers, ray-tracers and even path-tracers in shader nodes in ...
1 vote
31 views

### Geometry Nodes: How to calculate Custom normal deformation from real Normals?

AFAIK There is no Custom Normals at moment in GN. As a workaround, Custom Normals can be baked into Vertex colors. Which works great... until the mesh gets deformed. Is it possible to calculate in ...
103 views

### How can I transform my coffee cup into a torus as seen on wikipidea?

I'm animating the coffee mug torus homeomorphism. I want my animation to match this gif as closely as possible. The gif above, along with the POV-ray code used to create it, can be found here:https://...
37 views

### Paraboloid in geometry nodes

any idea how to do paraboloid in blender geometry nodes?
77 views

### Help with math formula to maintain distance along the x-axis between an Outer cube and an inner cube of 0.88 while scaling

Help with math formula to maintain distance along the x-axis between an outer cube and an inner cube of 0.88 while scaling. ...
12 views

### How to properly combine Rotation Quaternion with Matrix for viewport/RegionView3D manipulation?

(Copy and pasted it from another place since I wasnt getting any replies) Hi, I am working on an addon that uses external application's touch gesture to send information to a socket, which then is ...
1 vote
32 views

### Sine offset of Vertices based on Position/Normal not Index

I am working on a Geometry Node System that can turn every simple mesh into cardboard with the infamous wave curve between both flat borders. I use the sine function for that and have a complicated ...
1 vote
61 views

### Calculating distance between two objects in Geometry Nodes

I need to calculate the distance between two spheres. The outcome of equation should be value determinating speed of moving object (Trying to implement II Kepler's Law). I managed to do something like ...
139 views

### Get Wave Texture to Follow Empty

What I'm looking for is some way to get a wave texture to function similar to a dampened track or a track to constraint. I don't want to have to rotate the actual sphere itself, just the texture to ...
524 views

68 views

### Mapping a range of numbers to another range using math nodes / geometry nodes

How can I have numbers 0-360 be mapped to a range from -45 to 0 to +45 using math nodes / geometry nodes? I was thinking of using the map range node with a mod node but got confused. I also looked ...
32 views

### How to properly apply rotation on pose bones

First off, gonna admit it and say i absolutely suck at geometry and at Blender's scripting, so excuse if i made dumb mistakes. I have a quaternion and a position, i need to apply them to the pose ...
42 views

### How to Convert Coordinate Inputs to Negative or Positive Numbers With Texture Nodes

My goal is to make a procedural diamond plate texture, and I want to make it as simple as possible. So, if I can help it, I don't want to just duplicate my Diamond-Shape node group and angle it the ...
298 views

### Geometry nodes vector interpolation issue

I'm trying to translate the vertices of one object in the direction of the nearest vertices of a second object. I know this can be achieved by blending the two vectors using a mixRGB node like this: ...
1 vote
98 views

### Replacing float curve node used to indent cylinder with a curve generated from equation

Replacing float curve node used to indent cylinder with a curve generated from equation. I have two sections of geometry nodes that are working separately in different blend files. The first part ...
120 views

### Creating an indented pipe using geometry nodes

Creating an indented pipe using geometry nodes I know I can wrap a spiral around a cone using the shrink-wrap modifier but how can I change thickness / taper a curved spiral based on a formula over ...
21 views

### Using Normal Coordinates to Transform a Texture That Has Camera Coordinates

I am attempting to use normal coordinates to warp a texture that is generated by camera position. What I want is for the texture's lines to be evenly spaced apart no matter the size of the object ...
1 vote
84 views

### How can I align the tilt of a curve to that of the nearest surface normal of a mesh?

I guess my question is the same as the one asked here: How can I align the tilt of a GN generated curve to the nearest surface normal of a target? Although the answer that the op posted appears not to ...
253 views

### How to align object to a vector

I have two cubes (Cube1 and Cube2) and I am positioning an icosphere by adding the two vectors of the former cubes. I then scale the icosphere's vector by 0.5 so that it sits visually between the two ...
33 views

### Getting UV tangent.w in Shader Editor

I recently discovered the tangent node and learned a lot by messing around with it, but something I noticed is that the tangent vector is 4-dimensional in programs such as Unity, with the 4th, tangent....
68 views

### Math Function Mesh

Could someone help me understand how to enter an X,Y,Z equation in Math Function Add on? Here is a sample equation: Cos(x)+Cos(y)+Cos(z) = 0 range -pi to pi Thank you very much :)
79 views

### Is there a way to enter a 12 digit number into a Shader node without Blender changing the value? [duplicate]

Whenever I enter the 11/12 digit number that I need for one of my projects into the value input of any (shader) node, Blender lowers the number. For example, I've tried to input the number '...
68 views

### Creating "Local" Z Depth

For context, I'm trying to create a stylized shader in Eevee that will allow for me to create a "halo" effect around the outline of carded hair, similar to that of fresnel/facing. However, ...
86 views

### How would I join two rotation vectors in geometry nodes?

I've been stuck on this for quite a while now, I'm trying to combine Rotation 1 with Rotation 2 and it's been doing my head in. I'm trying to instance 5 or so objects and rotate them away from select ...
81 views

### How do i rotate a Gradient relative to the Camera position?

So i need a Gradient on a disk to rotate in such a way that it follows the Camera. This is what i got: The Gradient and the blue line towards the Camera. And this is what i want: Now my idea was to ...
1 vote