Questions tagged [vector]

In math and physics, a vector is "s a geometric object that has magnitude (or length) and direction." Blender uses 3D vectors in compositing, material and geometry nodes; and elsewhere to represent direction or force. Use this tag for questions about any of the uses of vectors in Blender.

Filter by
Sorted by
Tagged with
0
votes
0answers
16 views

2D mousemove axis from 3D Vector?

I'm working on one part of my modal operator and I'd like to be able to use the mousemove event to change a variable, but the mouse movement should have a specific linear direction to it, that is ...
2
votes
1answer
27 views

Geometry nodes to make branches not appear on the bottom section of tree trunk

I am porting this YouTube tutorial to the Blender 3 nodes https://www.youtube.com/watch?v=WzIdcGdGXLM. I have successfully ported mostly everything over to Blender 3 up until about the 33 minute mark. ...
2
votes
1answer
56 views

Can't get tree branches perpendicular to trunk with geometry nodes

I am using geometry nodes to build this tree. The problem is that the tree branches sprout vertical and parallel to the trunk. These are the random points that I have on the trunk via geometry nodes. ...
0
votes
1answer
35 views

What should rotation vectors look like?

I instantiate cones along Grid mesh and add offset by noise texture. I'm wondering what these rotation vectors look like. I can't figure out what they look like.
4
votes
2answers
86 views

What does a black and white texture look like after converting it to vectors?

Is my guess that I showed in the picture below correct? If not, what's the best way to represent a group of vectors emerging from a black and white texture?
-1
votes
0answers
16 views

How can I represent rotation in space?

I practice with Geometry nodes. I found a way to convert an image into a group of vectors, but didn't understand how it works. To begin with, I would like to know how I should imagine Rotation in my ...
0
votes
0answers
37 views

Secondary points instance rotation

I have a setup, where I need a secondary instances on already instanced geometry. But, I need all secondary instances to point in one direction, but because the first instance is rotated to align with ...
0
votes
0answers
46 views

How can I directly change an attribute with fields?

I'm trying to instance some objects, transform the base object and make all the instances point to a direction based on a vector. The problem is that when I transform the base object, all instances ...
0
votes
1answer
30 views

How to interpret rotation_difference when objects are rotated?

I'm having trouble interpreting the output of rotation_difference. It works fine when the objects are not rotated in world space (as in, flat), but as soon as I rotate the two together, you'd think ...
1
vote
1answer
27 views

Vector scaling in python

I believe it's an easy math function, but I don't have any idea how to solve it. I have a 2D vector that I want to multiply to a certain length. But I only have the x value of this new location so how ...
0
votes
1answer
51 views

How to switch beetwen two or more textures with material nodes?

this is a continuation of the previous question, in case you need more context of the problem: How to use the vector of another different object as information for material node? To sum up: With the ...
2
votes
2answers
57 views

How to use the vector of another different object as information for material node?

I'm pretty new to blender so probably i'm going to say wrong terms or function in this question, feel free to ask for a better explanation if necessary. I have created a material tab that makes the ...
2
votes
2answers
150 views

Unable to rotate instances individually in Geometry nodes

I have instanced 14 triangles in a circle mesh. I am trying to rotate these independently of each other, making them point inwards into the circle, or outwards, pointing away from the middle of the ...
2
votes
1answer
63 views

Fix parallax occlusion mapping from the side

I followed a parallax occlusion mapping tutorial on learnopengl.com and ported it into Unity and Blender. In Unity it worked fine, but when I tried it in blender it had a problem. From the top the ...
1
vote
1answer
111 views

Why does my material's vector displacement not look the same in render?

This is the material with vector displacement I created... (In viewport mode) This is how it turned out in rendered mode Why??? I tried changing the material settings to enable "displacement&...
0
votes
0answers
30 views

SVG Extrude with closed faces

@MOD this is not the same question like this, I solved this one and faced a new issue which I am trying to get help here. When I'm importing my .svg into blender it looks like this: Edges and faces ...
0
votes
0answers
36 views

SVG Import Issue

I have been trying to work with svg data in blender but it so far there is always something wrong with the interpretation in blender as you can see in the following image. It's not only that there ...
6
votes
1answer
210 views

What's the math behind Vector Rotate node?

I’ve been taught that the Axis input is the value for input vector n^ of the Rodrigues’ rotation formula: v’ = (1-cos(θ))[(v·n^)n^]+cos(θ)v+sin(θ)n^×v But I don’t understand what ‘’Center’’ input do. ...
0
votes
1answer
65 views

How to combine vector algebra and blender modeling?

I do some simple vector algebra and want to illustrate the vectors and points in Blender. However, there is a disconnect that I would like some outside perspective on to disentangle. Here is the code ...
3
votes
1answer
173 views

What does ''Axis'' input of Vector Rotate node do?

What does the Axis input do? I’m aware that if the input is 0-1-0, the rotation will be performed around Y axis, 1-0-0 for X axis and 0-0-1 for Z axis. The math to perform the rotation using those ...
4
votes
1answer
369 views

Geometry nodes: How to distribute points on valleys only?

I want to add vegetation to my rocky semi-desert scene of Himalayan mountains, using geometry nodes. In that scenery, vegetation only grows in valleys, where water would sometimes flow. Note that by '...
2
votes
0answers
46 views

How to distribute points on valleys only? [duplicate]

I want to add vegetation to my rocky semi-desert scene of Himalayan mountains, using geometry nodes. In that scenery, vegetation only grows in valleys, where water would sometimes flow. Note that by ...
1
vote
0answers
37 views

How to rotate UV around a given point using Python?

First I want to say I have done the reading on this one, but I am still lost. I have seen some other posts here regarding how to handle this using 3D matrices, posts on the main Stack Overflow site ...
0
votes
0answers
30 views

Grease Pencil: is it possible to have a vector-app like rendering?

I love Grease Pencil but I can’t find a way to draw with a really « vector » look; it always looks like a pencil drawing,with jiggly lines. Which is nice most of the time; but here I want to have an «...
0
votes
0answers
24 views

Can I bake a vector displacement texture from shapekeys?

Lets just say that I have 2 head models that are differently shaped but they have the same uv map and vertice count so I can transfer the head model as a shapekey to the 1st head model, Is it possible ...
0
votes
1answer
51 views

Animation Nodes: How can I rotate a Vector around a given Point

I was wondering how I could rotate a simple 3D Vector around a given point in 3d Space. I am trying to rotate a simple position Vector (1,-2,1) around the world Center (0,0,0) on the Z Axis. If I ...
5
votes
2answers
403 views

How to obtain the vector normal to the camera plane

I'm working on a project where I need to determine the distance along the camera's local Z axis until it hits a plane in which a given object rests. My thought process is to calculate a vecor from ...
1
vote
1answer
118 views

Vector Projection gives weird results?

I'm trying to project a vector onto another vector using the Vector Math node's Project mode like this: However, almost every output is just input B (1,0,0). This ...
0
votes
0answers
47 views

I am unable to get the correct vector for bone head/tail

I am attempting to create a script for selecting bone head and tails. Everything works However I am finding out that the selection of the head vector does not match what's in the main viewport. How do ...
0
votes
2answers
118 views

Random Vector/point/Position inside Sphere in Animation Nodes

Whats a good and performant way of creating a list of random vectors inside a given radius/sphere? the random vector node (with scale set to 1) unfortunately creates vectors ranging from (-1, -1, -1) ...
0
votes
0answers
12 views

SVG: Convert to mesh and Edit Mode not appearing after Illustrator SVG Export

I want to import an SVG from Illustrator to Blender. This is what I did: In Illustrator I merged all paths (no gradients) and saved as SVG / Tiny 1.2. Then I went to Blender / import SVG. I can go to ...
2
votes
1answer
322 views

Create a Vector with a Value Node as each value

In Geometry Nodes I want to create a Vector Node but with each value being driven by a separate Value Node. Like this: Thanks!
0
votes
1answer
58 views

Vector displacement - How does coordinates and vectors work in Blender?

I'm new to math and vector math. And I don't know how Cartesian coordinates and vectors look like in a object so I've made 2 illustrations to describe what I think it looks like. Please tell me which ...
5
votes
1answer
259 views

How can I "bend" object coordinates?

As you can see, the object coordinates don't bend along with the object itself. I know this is intentional, but is there a way to perhaps make them follow the contours of the object, or to manually ...
0
votes
1answer
372 views

Geometry Nodes: Is there any way to move the X, Y, and Y separately with attributes in the Point Translate node

👋 Hello. How could I drive each of the X, Y, and Z axis of the Point Translate node with an attribute that I created in a previous node (you can see it in the included image). I am using Blender 3.0....
0
votes
0answers
13 views

Store a variable Vector of integer as bpy.props [duplicate]

I am new in Blender dev. I am trying to create an add-on, and I need to store an array of integers. The problem is that I don't know the size of this array. I used for testing the ...
0
votes
0answers
51 views

mathutils incorrect outputs in vscode

I am using VSCode as external IDE for writing Blender scripts/add-on. I am getting incorrect results when I run python script in vscode for the following code: ...
0
votes
0answers
39 views

Is it possible to add boid behavior to a Geometry Node point distribution?

Specifically, I would like to know what the vector is to the closest other point created in geometry nodes. I created them with the standard Point Distribute. This is basically Boid behavior, where ...
0
votes
0answers
69 views

How to get the position output of a Voronoi texture using only math nodes

Sorry in advance if the title is confusing, I didn't know how else to phrase it. I'm trying to replicate the voronoi texture node and I'm stumped on how to replicate the position vector of the voronoi ...
4
votes
2answers
98 views

Align viewport rotation to normal vector like Shift+7 in edit mode

I know this question has been asked and answered before but the behavior I want is what ⇧ Shift + Num 7 exactly does in edit mode which is to align the viewport to "face" the element ...
1
vote
2answers
59 views

Shading - How do I remove overlapping seams in X- and Y-direction while using vectors?

While trying to create a pixelated effect, I noticed that using vectors causes overlapping lines in x- and y-direction. As far as I can see, there is no good solution to create pixelated faces... Has ...
1
vote
0answers
52 views

Rotate texture to align with face normal

I have a multi-faceted object which is supposed to look like it is built out of brick. I currently have it built as a single mesh and would prefer to keep it that way. I need to brick on each face to ...
0
votes
1answer
77 views

Shape key is affecting the normals of faces its not attached to

It did this after I created a bottom lid blink. the weird part for me is that the top lid blink was never attached to these vertices but it is affecting the shadows and causes them to go crazy when ...
0
votes
2answers
90 views

get the line of sight vector with nodes

I would like to make a material that displays the line of sight vector using the RGB channels : for example, here, let's say i am looking from the camera, the line of sight vector would be : →E(X=0; Y=...
0
votes
1answer
83 views

Get vector location list from matrix list via script node in Animation Nodes

I want to be able to view the coordinates of the locations of the matrices after I have manipulated the matrices with matrix nodes. Would someone be able give me an example script, which I assume ...
2
votes
1answer
58 views

Rotate vertices to any arbitrary rotation

I'm trying to rotate a set of vertices (in the example code they form a triangle but will be an arc) to any arbitrary rotation. I start by building a base triangle on the X,Y plane with a Z normal. ...
0
votes
0answers
14 views

get the traveled distance out of a moved object

i want to calculate the distance an object travels during an given animation-time. and i need to get the value each frame so i can calculate speed and velocity from the moving object. i´ve tried in ...
0
votes
2answers
458 views

Exporting UV Layout with only outlines

newbie here. I have a very specific question. I’ve done a ton of research and didn’t find anything useful. So, as the Title suggests, I’m trying to export UV layout without all the edges inside of the ...
2
votes
1answer
59 views

How does the Mapping Node work?

I am wondering how the mapping node exactly works. The only thing I need to know, is what the individual Location, Rotation and Scale vectors, especially the Location vector, do to the input vector. ...
6
votes
1answer
117 views

Combining vector displacement and standard black and white displacement nodes

I am currently working on an ocean scene. The water uses a subdivided plane with waves that are displaced via the vector displacement node in the material. I would like to add another whirlpool effect ...