And a further bit of perhaps-useful information:

The camera is doing an orthographic projection. Behind the whole scene is a parchment image with the various models above that in Z layers.

The parchment is visible.

The result of a modelsUnderLoc that picks up a model that isn't visible looks like:


[ [#model: model("CardID_9U_BaseText"), #distance: 23669.9980, #isectPosition: vector( 472.5000, -49.0000, -2.36700e4 ), #isectNormal: vector( 0.0000, 0.0000, 1.0000 ), #meshID: 1, #faceID: 47, #vertices: [vector( 471.3400, -46.7600, -2.36700e4 ), vector( 471.3400, -58.5100, -2.36700e4 ), vector( 482.5067, -58.5100, -2.36700e4 )], #uvCoord: [#u: 0.0868, #v: 0.1039]], [#model: model("CardID_9U_template"), #distance: 23750.0000, #isectPosition: vector( 472.5000, -49.0000, -2.37500e4 ), #isectNormal: vector( 0.0000, 0.0000, 1.0000 ), #meshID: 1, #faceID: 736, #vertices: [vector( 474.1617, -48.1812, -2.37500e4 ), vector( 471.2400, -48.1812, -2.37500e4 ), vector( 474.1617, -51.0236, -2.37500e4 )], #uvCoord: [#u: 0.5687, #v: 0.2881]], [#model: model("Items_parchment"), #distance: 24000.0000, #isectPosition: vector( 472.5000, -49.0000, -2.40000e4 ), #isectNormal: vector( 0.0000, 0.0000, 1.0000 ), #meshID: 1, #faceID: 2, #vertices: [vector( 812.0000, 310.0000, -2.40000e4 ), vector( -212.0000, 310.0000, -2.40000e4 ), vector( 812.0000, -714.0000, -2.40000e4 )], #uvCoord: [#u: 0.3315, #v: 0.3506]] ]

So, it intersected 3 models, 2 of which were for the thing that I wanted to be visible. The vertices (in world space) appear to be correct for both of those models, as well as the background parchment.

(The distance between the 1st and 2nd models is due to a different issue that I've been having with orthographic projection, where Z fighting seems to happen often. I'm not (as) worried about that at the moment though.)

- Bruce

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to