POV-Ray : Newsgroups : povray.general : Planar Span-Vector problems... : Re: Planar Span-Vector problems... Server Time
5 Nov 2024 15:54:29 EST (-0500)
  Re: Planar Span-Vector problems...  
From: The Grand Adept of Evil Sex Magic
Date: 18 Mar 2003 13:28:43
Message: <3E77656C.FFCC5C9E@hotmail.com>
Tim Nikias v2.0 wrote:
> 
> So, working on my Water-Script, here's an idea I had:
> Give two corner-points for the planar mesh.
> Give surface normal for that plane.
> 
> The system should then construct a grid and generate
> the appropriate vectors in order to calculate differences
> in heights (in relation to the normal vector) needed for the
> algorithm to work.
> 
> Problem is, this method only gets me squared meshes
> (no rectangles) and the angles of the original spanvectors
> aren't exactly aligned with the axis'.
> 
> So, question:
> Should I rather have the User define three corners, and any
> point "above" the water plane (the above is required to get
> the correct direction for the surface normal and thus for the
> algorithm to work properly), this would lead to four vectors the
> user has to set.
> 
> Otherwise, the system would have to be limited to a y-plane.

Use three points, and make the ordering of the points significant.

Regards,
John


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.