OMR + TEXMAPped unofficial file = ???

RE: OMR + TEXMAPped unofficial file = ???
#47
(2019-12-16, 23:50)Travis Cobbs Wrote: I'm not sure I fully understand. I think perhaps the existing wording is ambiguous, but not necessarily wrong. P1 has an infinite number of normals. Unless I'm misremembering, the intent is to take one of those normals that originates along the line between p1 and p2, move along that normal some arbitrary distance, and use that point (along with p1 and p2) as the third point for P2. So, for example, add the normal vector for P1 to p1 to obtain the third point to construct P2.
That is also how I understand it. However. It doesn't matter which normal of P1 we take, P2 will still be well-defined based on this choice. This is the current content of the spec:

Quote:
Code:
`x1 y1 z1 x2 y2 z2 x3 y3 z3 a b`
The first point represents the center of the sphere. The second point represents a point on the sphere where the center of the texture map will touch. The third point is used to form a plane (P1) that is perpendicular to the texture and bisects it horizontally. An additional plane (P2) can be computed by using points 1 and 2 and generating a 3rd point along the normal of P1. P2 will be perpendicular to both P1 and the texture and will bisect the texture vertically. The two angles indicate the extents of the sphere that get mapped to. These are –a/2 to a/2 and –b/2 to b/2 as measured relative to the vector from point 1 to point 2 and within the planes P1 and P2 respectively.

Now to map world coordinates to texture coordinates, U is given by the angle between the vector formed by points 1 and 2 and the vector formed by point 1 and a world point that has been projected to the plane P1. The angle is divided by "a" to normalize it to between 0 and 1. V is given by the angle between the vector formed by points 1 and 2 and the vector formed by point 1 and a world point that has been projected to the plane P2. The angle is divided by "b" to normalize it.

As I understand it we have the three points p1, p2 and p3 and the two planes P1 and P2:

- p1 is the center of the sphere.

- p2 is the point on the surface on the sphere from where the center of the texture will be mapped.

- p3 is used to define P1 by having p1, p2 and p3 lie on P1. We thus get U for a point p by taking the projection point q1 of p onto P1 and compute the angle between p1p2 and p1q1 before normalising by dividing with the factor a. Furthermore, I can compute a normal of P1 as the cross product between p1p2 and p1p3. Let's call such a normal N1. P1 can thus be defined by N1 and a point on it (any of p1, p2 and p3).

- P2 is constructed similarly by having p1 and p2 on it, but the third point is taken along a (non-zero) normal of P1. Since "P2 will be perpendicular to both P1 and the texture and will bisect the texture vertically", P2 is well defined: You can compute a normal N2 as the cross product between p1p2 and N1.

- Given a point p, we let q2 be its projection onto P2. The value V is then computed as the angle between p1p2 and p1q2 divided by the scaling factor b.

If we follow the logic above, the vertical lines of the texture on the sphere will move downward as we move from the middle toward the red dot. In order to get the screenshots posted here, we will have to place P2 so that p1, p and q1 lie on it. However. According to the specification, P2 should be placed independently of p.
« Next Oldest | Next Newest »

 Messages In This Thread OMR + TEXMAPped unofficial file = ??? - by Philippe Hurbain - 2016-01-02, 8:26 Re: OMR + TEXMAPped unofficial file = ??? - by Michael Heidemann - 2016-01-02, 8:52 Re: OMR + TEXMAPped unofficial file = ??? - by Roland Melkert - 2016-01-02, 23:18 Re: OMR + TEXMAPped unofficial file = ??? - by Steffen - 2016-01-03, 2:56 Re: OMR + TEXMAPped unofficial file = ??? - by Michael Heidemann - 2016-01-03, 10:28 Re: OMR + TEXMAPped unofficial file = ??? - by Steffen - 2016-01-03, 13:33 Re: OMR + TEXMAPped unofficial file = ??? - by Chris Dee - 2016-01-02, 22:06 Re: OMR + TEXMAPped unofficial file = ??? - by Michael Heidemann - 2016-01-03, 16:53 Re: OMR + TEXMAPped unofficial file = ??? - by Philippe Hurbain - 2016-01-03, 17:01 Re: OMR + TEXMAPped unofficial file = ??? - by Michael Heidemann - 2016-01-03, 20:41 Re: OMR + TEXMAPped unofficial file = ??? - by Rolf Osterthun - 2016-01-03, 21:09 Re: OMR + TEXMAPped unofficial file = ??? - by Michael Heidemann - 2016-01-04, 16:45 RE: OMR + TEXMAPped unofficial file = ??? - by John Canepa - 2018-03-07, 21:13 RE: OMR + TEXMAPped unofficial file = ??? - by Travis Cobbs - 2018-03-08, 0:32 RE: OMR + TEXMAPped unofficial file = ??? - by John Canepa - 2018-03-13, 15:45 RE: OMR + TEXMAPped unofficial file = ??? - by Travis Cobbs - 2018-03-13, 19:45 Re: OMR + TEXMAPped unofficial file = ??? - by Damien Roux - 2016-01-04, 20:05 Re: OMR + TEXMAPped unofficial file = ??? - by Roland Melkert - 2016-01-04, 20:24 Re: OMR + TEXMAPped unofficial file = ??? - by Steffen - 2016-01-05, 1:18 Re: OMR + TEXMAPped unofficial file = ??? - by Philippe Hurbain - 2016-01-05, 8:09 Re: OMR + TEXMAPped unofficial file = ??? - by Damien Roux - 2016-01-05, 11:24 Re: OMR + TEXMAPped unofficial file = ??? - by Philippe Hurbain - 2016-01-05, 12:05 Re: OMR + TEXMAPped unofficial file = ??? - by Travis Cobbs - 2016-01-05, 19:52 RE: OMR + TEXMAPped unofficial file = ??? - by Reuben Pearse - 2016-08-17, 17:11 RE: OMR + TEXMAPped unofficial file = ??? - by Travis Cobbs - 2016-08-18, 4:29 Re: OMR + TEXMAPped unofficial file = ??? - by Philippe Hurbain - 2016-03-17, 14:31 Re: OMR + TEXMAPped unofficial file = ??? - by Roland Melkert - 2016-03-17, 19:53 Re: OMR + TEXMAPped unofficial file = ??? - by Steffen - 2016-03-24, 19:53 RE: OMR + TEXMAPped unofficial file = ??? - by Travis Cobbs - 2018-01-05, 20:54 RE: OMR + TEXMAPped unofficial file = ??? - by Roland Melkert - 2018-01-05, 21:27 RE: OMR + TEXMAPped unofficial file = ??? - by Philippe Hurbain - 2018-01-07, 15:25 RE: OMR + TEXMAPped unofficial file = ??? - by Roland Melkert - 2018-01-07, 19:00 RE: OMR + TEXMAPped unofficial file = ??? - by Travis Cobbs - 2018-01-08, 2:11 RE: OMR + TEXMAPped unofficial file = ??? - by Travis Cobbs - 2018-03-09, 5:02 RE: OMR + TEXMAPped unofficial file = ??? - by Roland Melkert - 2018-03-09, 19:07 RE: OMR + TEXMAPped unofficial file = ??? - by Travis Cobbs - 2018-03-09, 20:19 RE: OMR + TEXMAPped unofficial file = ??? - by Travis Cobbs - 2018-03-09, 20:33 RE: OMR + TEXMAPped unofficial file = ??? - by Lasse Deleuran - 2019-12-14, 14:41 RE: OMR + TEXMAPped unofficial file = ??? - by Roland Melkert - 2019-12-14, 19:20 RE: OMR + TEXMAPped unofficial file = ??? - by Lasse Deleuran - 2019-12-15, 0:52 RE: OMR + TEXMAPped unofficial file = ??? - by Lasse Deleuran - 2019-12-16, 22:02 RE: OMR + TEXMAPped unofficial file = ??? - by Travis Cobbs - 2019-12-16, 23:50 RE: OMR + TEXMAPped unofficial file = ??? - by Lasse Deleuran - 2019-12-17, 0:31 RE: OMR + TEXMAPped unofficial file = ??? - by Travis Cobbs - 2019-12-17, 4:38 RE: OMR + TEXMAPped unofficial file = ??? - by Lasse Deleuran - 2019-12-17, 16:47 RE: OMR + TEXMAPped unofficial file = ??? - by Travis Cobbs - 2019-12-17, 17:52 RE: OMR + TEXMAPped unofficial file = ??? - by Roland Melkert - 2019-12-17, 19:15 RE: OMR + TEXMAPped unofficial file = ??? - by Lasse Deleuran - 2019-12-17, 19:52 RE: OMR + TEXMAPped unofficial file = ??? - by Michael Horvath - 2018-01-07, 19:39 RE: OMR + TEXMAPped unofficial file = ??? - by Travis Cobbs - 2018-01-08, 2:03 RE: OMR + TEXMAPped unofficial file = ??? - by Orion Pobursky - 2019-09-23, 17:07 RE: OMR + TEXMAPped unofficial file = ??? - by Travis Cobbs - 2019-09-23, 23:11

Forum Jump:

Users browsing this thread: 1 Guest(s)