Subject:
|
Re: 3D matrix math question
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Sun, 14 Dec 2008 08:24:40 GMT
|
Viewed:
|
12535 times
|
| |
| |
In lugnet.cad.dev, Travis Cobbs wrote:
|
In lugnet.cad.dev, Timothy Gould wrote:
|
If I understand correctly you shouldnt be checking on the projection, only
on the full 3D transformed points. That means you should check after stage
2.5.
|
Actually, the projected points are all that I am checking, and thats how
its supposed to work.
|
Youll need the Z value to work out which side things lie on.
|
No. The way that conditional lines work is that if the two control points
lie on the same side of the conditional line on the screen (in window
coordinates), then the conditional line should be drawn. If they lie on
opposite sides, the conditional line shouldnt be drawn. For the purposes of
determining this, the actual conditional line is considered to be infinitely
long. The Z values are irrelevant for making this determination.
Unfortunately, as far as I can tell, the projection matrix doesnt produce
useful results for points that lie outside the view frustum. But I cant
skip it entirely, because that would leave out the effects of perspective,
which are necessary in order to get the right results.
--Travis
|
Hmmm... Though I cant quite pin it down I have a suspicion that this has
something to do with the spatial reduction cause by projection. What projection
matrix are you using?
Would a simple solution just be to move the conditional points right in close to
the original points at parse time? If the length of the conditional vectors is
unimportant then youd be decreasing the number of conditional points that lie
outside the viewing frustum. With a distance of, say, 1/10th LDU from the line
youd rarely encounter any problems.
Tim
|
|
Message has 1 Reply: | | Re: 3D matrix math question
|
| (...) OK... I think I understand what I was getting at here. When you introduce perspective then the distance of the conditional point from the line becomes important. Eg. if you have a point that is directly behind its line in a perspective free (...) (16 years ago, 14-Dec-08, to lugnet.cad.dev, FTX)
|
Message is in Reply To:
| | Re: 3D matrix math question
|
| (...) Actually, the projected points are all that I am checking, and that's how it's supposed to work. (...) No. The way that conditional lines work is that if the two control points lie on the same side of the conditional line on the screen (in (...) (16 years ago, 14-Dec-08, to lugnet.cad.dev, FTX)
|
39 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|