Questions tagged [mathematics]

Use of maths inside blender.

Filter by
Sorted by
Tagged with
3
votes
1answer
202 views

Plotting 3D Regions

How can I plot a simple 3D region such as $$x^2+y^2+z^2<16$$ in Blender? If I can't do that directly, how can I turn it into $$x=\dots$$ $$y=\dots$$ $$z=\dots$$ So I can use Mesh --> Math ...
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, ...
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&...
3
votes
1answer
50 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 ...
3
votes
1answer
294 views

How do you mathematically reverse a perspective transformation?

Maybe that's not the best title for this question, but I find it hard to describe what I'm trying to do in a generic way, so I'll just describe the situation. My friend and I are designing a human ...
3
votes
1answer
3k views

Create a solid from 2D math function

Is it possible to create a solid based on a 2D function in Blender? Example: I have a function $y=x^2$ where $x \in [0,1]$. Here 'Z' is simple projection of XY plane so, extrude shall do the job. I ...
3
votes
1answer
444 views

Creating sinusoidal struts using bpy

I want to use Blender and bpy to create sinusoidal struts. I have been using Python with VTK in the past, but it is causing some trouble and I feel Blender might be the better solution. An example of ...
3
votes
1answer
773 views

Why does Quaternion.rotation_difference() always return 12.666471 for x-rotation?

I tried to calculate the angle between two vectors. First 3 Quaternion rotations (qx,qy,qz) are defined and multiplied to q. A vector v (1,0,0) is rotated by q. From the vectors q and qrot I want ...
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 ...
3
votes
0answers
36 views

Cycles - How to transfer information from a shader to another non-destructively ? (no baking)

How can we non-destructively (witouth baking anything into vertex color nor bitmap) transfer information from one shader to another within cycles ? Here's an example : Here is a simple proximity ...
3
votes
0answers
62 views

What's the algorithm used in 'tris to quads' (Alt+J)?

Does anyone know the algorithm used in 'tris to quads' function in Blender or the script containing this function? Thanks!
3
votes
0answers
57 views

Are there any resources for learning CG related math (especially the math used by Blender)? [duplicate]

I want to get involved in developing Blender, maybe writing add-ons and stuff for the community. As far as I can tell, there's a lot of math involved with this (generally stuff like matrix/vector ...
3
votes
0answers
406 views

Drawing mathematical functions using the Blender API - drawing a line

I want to represent the line y = 4x + 2. I suppose it has something to do with a function in python that gives pairs of values x-y and another that matches the ...
3
votes
0answers
122 views

Multiple Random numbers per material [duplicate]

I want to randomize several procedural textures in the same material. For example, have 3 different Noise textures with a random number as their Scale. I can use the Random output of the Object Info ...
3
votes
0answers
476 views

Scripts: Converting Quaternions to Pre/Post Rotations

An issue that I've noticed while working on models for a specific game engine, is that when using exporting FBX models or BVH data comes the fact that you have two different rotations formats, with ...
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 ...
2
votes
3answers
230 views

Proportionally editing an object using a given/exact angle

I can proportionally edit an object (see animation below) but if I want to alter an object to have an angle of 63.45 how can I go about calculating/doing this (I'm testing parameters/limits/tolerances ...
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 ...
2
votes
2answers
467 views

Calculate sphere's rotation for rolling

Let's say that there is a sphere whose x,y,z dimensions are d. So, the circumference is d*pi. Now, the sphere is rolling on a ...
2
votes
2answers
6k views

How can I rotate multiple objects in their LOCAL axis?

Hello blender friends. I would like to rotate multiple objects by random, but in their LOCAl axis. NOT global. I already know the random transform function for objects, but it's working always for ...
2
votes
2answers
449 views

How to make variable transparency hole in a plane with a math function using nodes?

One way to make a transparent hole in a plane with graded transparency is to uv-map a solid, monochrome image with graded alpha (I assume). But can I do this with nodes? I've used the Error Function ...
2
votes
1answer
774 views

Why does “sin(frame)” where frame is “1” set a shape key to 0.841 and not 0.017?

I am trying to animate a shape key oscillating between -1 and 1 by driving it with the expression "sin(frame)". I would expect that to result in the shape key value being "0" at frame 0 and 180, a ...
2
votes
1answer
120 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 ...
2
votes
2answers
311 views

Match two planes with different origin locations (Blender Python Matrix Math)

We see two identical Plane objects: A(blue) and B(red) They are oriented arbitrarily in the 3D space. Notice that the origin of A is located in the center and the origin of B is located in the lower ...
2
votes
2answers
774 views

How to get all faces based on a certain angle of their normals?

I would like to create a list of faces/polygons based on the angle of each corresponding normal. I've tried something like board.data.polygons[0].normal > 0, but ...
2
votes
2answers
1k views

How to get angle of edge ? (python)

How can I get the angle of the edge , is there a method that return the angle of selected edge ?
2
votes
2answers
864 views

Nodes: Lighten/Darken “Crossfader”

What I seek I'm not sure if "crossfader" is the best way to describe it, but imagine black on one end, white on the other, and a grayscale image in the center. You can lighten or darken the image ...
2
votes
3answers
532 views

Ellipse Construction Advice

I'm working on a add-on for Blender, and part of this add-on requires me to calculate the position verts along the arc of an ellipse. At the moment, I'm using the { ...
2
votes
1answer
274 views

How can I align faces that share an edge in Python? (without moving the common edge)

I need to set a face's direction from a Python script using bpy modules. I tried the below code, but it does not work correctly. ...
2
votes
1answer
1k views

bisect plane normal (mesh and bmesh) how calc the 3th vector to mathutils.geometry?

UPDATE 1: how calc the 3th vector to mathutils.geometry.normal(vectors)?? After @Chebhou answer I tried my "bisector tool" again... with mesh and bmesh.. now the problem is the 3th vector to calc ...
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, ...
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. ...
2
votes
1answer
93 views

How to plot 1/x^x in Blender using Z function surface

I am looking to plot math functions in Blender using the Z function surface Add-On. It works great for functions such as: 1/x**2 But fails for functions like: ...
2
votes
1answer
145 views

looping through splines of a bezier circle, can only find 1 spline not 4

I'm trying to port differential line growth to blender animation nodes following this example https://vimeo.com/169438763 . I was suggested to work with splines in blender as it would be a lot simpler ...
2
votes
1answer
541 views

How to make a F-curve with a constant and linear part?

As part of a problem I need to obtain a curve in the graph editor, that has a constant part , followed by a linear one. for instance: for the interval [0,100] the curve is y=0 for the ...
2
votes
1answer
3k views

Python: Calculate angle between vertices

What should I do to determine the angle on XYZ between two vertices? I then have to rotate a mesh accordingly, but I guess that's a basic task to achieve. I'm new to bpy and I should have payed more ...
2
votes
1answer
34 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
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
57 views

inequalities using math node

Using math nodes I generated that pyramid like shape, but I want to impose inequalities. The equation for the following pic is 9-8|x|-y=0 but I want to impose inequalities to the equation where 0.75&...
2
votes
1answer
386 views

Smooth Realtime-Audio Reaction in Animation Nodes?

I am animating certain objects in a scene using audio in animation nodes. The current setup makes my models react in a very aggressive way to the audio. Is there a simple way to smooth the reaction ...
2
votes
1answer
262 views

Fractal Noise in Blender Stretches From Origin Point- Why?

To make a good noise for terrain generation you can hook up a noise texture to the scale of another noise texture. I like using this, but I noted one limitation- if the texture coordinates become ...
2
votes
1answer
105 views

Scaling a math function from a specific vertex

I have a model developed through a math function as shown below in the figure. I would like to scale the figure as shown in the figure without changing the vertex position. Explanation of the figure: ...
2
votes
1answer
767 views

Custom Colour Palette Node

Would it be possible to create a node that acts like a colour palette? Essentially I define the colours that I want it to have, and from there I can use them as I wish. I know that something like this ...
2
votes
3answers
128 views

Compositor: Get the second darkest value

I have an image that is mostly values between .3 and 1, but has a few areas of solid black. I want to set all the pure black areas (or perhaps near black to also catch aliased edges) to be the next ...
2
votes
1answer
634 views

How to get transform values that would be set from inserting visual key-frame for pose bones?

I have some bones with any number of constraints. I want to get the visual transform matrix of that bones that takes also into account when for example a stretch to constraint modifies that bone. So ...
2
votes
1answer
727 views

Particles and Random Numbers and Cycles Render

Goal. Have access to a random number in range [0-1] per particle per frame in a Cycles Render Node. Particle System is used. Multiple particles per frame. Question. How can Blender drivers/other ...
2
votes
1answer
291 views

How calc value of translate with constraint_orientation=“VIEW”?

I want to translate some vertices in X axis with constraint_orientation="VIEW" but I dont' know how calc the values??... next code should work but I don´t know how calc the value in this parameters ...
2
votes
1answer
145 views

blender python: evaluate extruded curve points

I need to find coordinates of points extruded from blender's bezier curve with python. All I know right now is how to evaluate each point on the curve(mathutils.geometry.interpolate_bezier) but I don'...
2
votes
1answer
118 views

Vector Math to Determine Gravity Path

I need to code a function that basically traces the path a sphere would roll when placed on a triangulated terrain. The image below shows the problem, but I haven't got a clue how to work with vectors ...
2
votes
1answer
282 views

Visualize radioactive gamma rays & their absorption in materials using cycles

there is a very nice tutorial showing the mathematics behind light absorption - the amount of light is getting less during it's move through colored material. - following the law of Lambert & Beer....

1 2
3
4 5
7