Home Technical Talk

Local vertex coordinates

fire67
polycounter lvl 8
Offline / Send Message
fire67 polycounter lvl 8
Hi there,

I am trying to define the local coordinates of my mesh's vertices.  Here is what I have for the moment if I output the x local vertex coordinates of my mesh in a shader.

The pivot is located in the center of the sphere and as you can see, the x local coordinate goes from 0 (center of the sphere, pivot position) to almost one on the left (periphery of the sphere). We don't care about the right side for the moment.
The first question is, why it doesn't go from 0 to 1 ? Is there a way to do/force/define this ?

The last question is linked to the following simulated image.

As you can see, left is equal to 0 and right to 1. How could I define such x local coordinates for my sphere ?

Btw, I am using Unity and 3dsmax but I think that this question is not related to the software I am using.
Thanks a lot.

Replies

Sign In or Register to comment.