High!
Mike Williams wrote:
>One of your trace() rays doesn't intersect Earthslice. This leaves you
>with "lo" being in the same direction as the sky vector, which produces
>the error that you are seeing.
>
>In fact, it's unlikely that your second trace() would intersect a
>roughly spherical object, unless cNormVect and lNormVect are very
>similar.
>
>I suggest firstly:
>#declare la=trace(EarthSlice, lNormVect, -lNormVect);
>
Ahhh, yes... of course the "direction vector" for the look_at ray can't
be the same as for the location ray!
I fixed that, and got a reasonable view of the landscape (attached
here)... but then another problem showed up: narrow gaps between (most)
triangles! Should I smooth them - or is there another way to get rid of
that?
See you in Khyberspace!
Yadgar
Now playing: Yellowstone Park (Tangerine Dream)
Post a reply to this message
Attachments:
Download '2005-04-20_sar-e_helmand_take_3_(yadgar).jpg' (42 KB)
Preview of image '2005-04-20_sar-e_helmand_take_3_(yadgar).jpg'
|