2 registered members (AbrahamR, 1 invisible),
858
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
vec_for_normal, vec_for_vertex, mouse_pos3d, mouse_dir3d
#380886
08/22/11 11:28
08/22/11 11:28
|
Joined: Sep 2003
Posts: 5,900 Bielefeld, Germany
Pappenheimer
OP
Senior Expert
|
OP
Senior Expert
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
|
Hello! I'm the one who is supposed to miss the obvious, the always beginner. Maybe, it is worth to add some hints in the manual, because their are others who miss the obvious, but who are afraid to confess their dullness. Please have a look in this thread, it includes a full script to test the vec_for_normal and vec_for_vertex issue that I had: http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=380885&#Post380885
|
|
|
Re: vec_for_normal, vec_for_vertex, mouse_pos3d, mouse_dir3d
[Re: Pappenheimer]
#381000
08/23/11 12:03
08/23/11 12:03
|
Joined: Oct 2007
Posts: 5,210 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
|
values independent of object's orientation are local coordinates. they are relative to object and to not change when object transforms. They take object's origin as 0,0,0
world coordinates, are absolute positions of vectors, they take worlds origin as 0,0,0
3333333333
|
|
|
Re: vec_for_normal, vec_for_vertex, mouse_pos3d, mouse_dir3d
[Re: Quad]
#381003
08/23/11 12:34
08/23/11 12:34
|
Joined: Sep 2003
Posts: 5,900 Bielefeld, Germany
Pappenheimer
OP
Senior Expert
|
OP
Senior Expert
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
|
Your explanation is confusing me even more! Different example: When I say, the passenger looks to the north - his view direction is described in world coordinates, right? Its, because his view direction is described _independently_ of any object's orientation. Its an absolute value. When I say, the passenger looks out of the left window of the bus - his view direction is described relativ to the bus' orientation - means, it is relativ to the bus. To get the world coordinate I need the orientation of the bus, means it is a relative value. (I'm curious, what's the mistake in my definition.)
|
|
|
Re: vec_for_normal, vec_for_vertex, mouse_pos3d, mouse_dir3d
[Re: jcl]
#381044
08/23/11 15:45
08/23/11 15:45
|
Joined: Sep 2003
Posts: 5,900 Bielefeld, Germany
Pappenheimer
OP
Senior Expert
|
OP
Senior Expert
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
|
Right. Means, if the bus turns about 180 degrees, and the passenger still looks straight ahead(within the bus), the passenger doesn't face anymore north in world coordinates, but south.
While the 'passengers' of the sphere - vec_for_vertex and vec_for_normal - keep their values after the turning of the sphere, what is relatively to the sphere absolutely okay, but it is not consistent in world coordinates, because their world coordinates changed.
|
|
|
|