2022 Developer Survey is open! Take survey.

Questions tagged [mathematics]

Use of maths inside blender.

Filter by
Sorted by
Tagged with
0 votes
3 answers
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 ...
user avatar
  • 1,215
3 votes
2 answers
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 ...
user avatar
  • 41
6 votes
1 answer
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 ...
user avatar
  • 2,552
11 votes
4 answers
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?
user avatar
  • 1,542
0 votes
0 answers
29 views

convert 3d viewing coordinates to 2d plane coordinates?

...
user avatar
  • 149
0 votes
0 answers
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 ...
user avatar
4 votes
1 answer
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 ...
user avatar
  • 2,552
1 vote
2 answers
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
user avatar
  • 11
5 votes
1 answer
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 ...
user avatar
  • 2,552
5 votes
4 answers
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 ...
user avatar
1 vote
2 answers
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 ...
user avatar
  • 965
0 votes
0 answers
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 ...
user avatar
1 vote
0 answers
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 ...
user avatar
  • 615
3 votes
1 answer
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://...
user avatar
  • 372
2 votes
2 answers
37 views

Paraboloid in geometry nodes

any idea how to do paraboloid in blender geometry nodes?
user avatar
2 votes
4 answers
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. ...
user avatar
  • 2,552
0 votes
0 answers
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 ...
user avatar
1 vote
1 answer
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 ...
user avatar
1 vote
2 answers
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 ...
user avatar
  • 11
9 votes
1 answer
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 ...
user avatar
  • 169
12 votes
2 answers
524 views

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

This question asked how to plot the graph of 2D parametric equations using Geometry Nodes. But how about parametric surfaces generated by parametric equations of the form $$ x = f(u, v)$$ $$ y = g(u, ...
user avatar
  • 29.4k
1 vote
1 answer
28 views

How do you type a square root for the surface plotter?

For the "Add Z function surface" addon, I tried typing $(1 - x**2 - y**2)**(1/2)$ and $pow(1 - x**2 - y**2,(1/2))$ and neither plotted, what do I do differently?
user avatar
12 votes
3 answers
570 views

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

Summary: How to graph a 2D parametric equation using Geometry Nodes? Details: This question asks about plotting 2D functions of the form $y = F(x)$ using Geometry Nodes, and of course the simplest way ...
user avatar
  • 29.4k
0 votes
2 answers
98 views

Scaling objects with a constant offset with geometry node

I'm looking to find a way to scale objects while maintaining a constant offset. I found a way to do it with two objects, but I don't know how I could do it with 3 or more. ex: (scale = 1) cube 111, ...
user avatar
  • 21
0 votes
0 answers
59 views

Is there a way to convert Map Range Smoother Step to Color Ramp B-Spline?

Map Range makes it possible to place the nodes inside the group and adjust them at its discretion due to the presence of several input sockets. In this, its advantage compared to Color Ramp, but Color ...
user avatar
  • 1
2 votes
3 answers
63 views

How could I make a polygon generator using shader nodes

I want to make a node group that outputs a polygon with a customizable size and side count. I'm using arctan2 to make a setup that I figured would allow for a customizable side count. If I add these ...
user avatar
2 votes
2 answers
89 views

Non-proportional scaling in Geometry Nodes

I asked a question last week, and the answer way very useful, but I don't find a way to use this solution to scale more than 2 objects. So, is there a way to do it ? The question: I want to scale 2 ...
user avatar
  • 21
3 votes
1 answer
127 views

Exclude zero from "Random Value"

I want to return either a -1 or a 1 from the Random Value node. Unfortunately, I get either -1, 1 or 0! Is there a way to exclude zero from the results?
user avatar
4 votes
3 answers
144 views

Geonodes: Curl a line with increasing curvature from origin

I'm trying to curl a line via GeoNodes. See here: As you can see, the line stays fixed at its origin and then curls according to an angle/curvature parameter. The length along the curve stays ...
user avatar
1 vote
0 answers
34 views

Work out if vertices can be "naturally" connected

Given two vertices that are a part of one face, work out if they can be connected without creating weird geometry. Example of vertices that can be naturally connected: Example of vertices that cannot ...
user avatar
  • 99
1 vote
1 answer
35 views

Volumetric shader and re-create Schwartz Primitive Topology in Blender 3.1

I'm using eevee and trying to re-create Schwartz Primitive Topology found here Link but using Blender 3.1, however it's not working, any ideas why? My node setup is below. Working Node setup: My ...
user avatar
  • 2,552
1 vote
1 answer
63 views

In Geometry Nodes how can I transform an object proportionally with another object that's being controlled by an integer value?

I'm attempting to build a modular airplane hangar. In my current setup I have the hangar model split into the following 3 parts using vertex groups. The front end The hangar walls The back end The ...
user avatar
4 votes
2 answers
151 views

Smooth Modulo with Nodes Only

Trying to get a smooth modulo texture based on nodes only, is this possible? The modulo function produces hard edges. Similar to the following wave example: $$\frac{1}{t}\arctan\left(\frac{t\sin\left(...
user avatar
0 votes
0 answers
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 ...
user avatar
  • 2,552
0 votes
0 answers
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 ...
user avatar
  • 1
3 votes
1 answer
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 ...
user avatar
8 votes
2 answers
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: ...
user avatar
  • 144
1 vote
0 answers
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 ...
user avatar
  • 2,552
2 votes
1 answer
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 ...
user avatar
  • 2,552
0 votes
0 answers
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 ...
user avatar
1 vote
0 answers
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 ...
user avatar
4 votes
2 answers
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 ...
user avatar
  • 1,867
0 votes
0 answers
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....
user avatar
  • 169
2 votes
1 answer
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 :)
user avatar
  • 31
2 votes
1 answer
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 '...
user avatar
  • 23
2 votes
2 answers
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, ...
user avatar
  • 169
2 votes
1 answer
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 ...
user avatar
3 votes
2 answers
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 ...
user avatar
1 vote
1 answer
108 views

Adjusting / controlling / moving an objects vertex groups using geometry nodes

I have an object that has a vertex group that I use to adjusts it's size to exact dimensions (see animation below) I would like to do the same thing using geometry nodes. I was thinking of accessing ...
user avatar
  • 2,552
0 votes
0 answers
42 views

How do I vary a driver's rate of change over time? [duplicate]

I have a driver on an empty's y-rotation. I want to be able to keyframe a custom property to change the rotation's rate of change. So I want the empty's rotation to speed up or slow down over time ...
user avatar

1
2 3 4 5
9