Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / How to Compute XYZ for point on a plain

Author
Message
Firesea
23
Years of Service
User Offline
Joined: 7th Apr 2003
Location:
Posted: 24th May 2003 00:35
If I know a plain's location, rotation, and of course camera coordinates, how do I calculate the xyz of a given point located somewhere on the plain?

I want the XYZ of a point say -20, -10, 0 from the midpoint of the plain (the point lies in the same plain/orientation as the plain.

Is this question as confusing as the confused? (me?)

Firesea
Dr OcCuLt
23
Years of Service
User Offline
Joined: 27th Nov 2002
Location: a Dark Deep Dark pit, it dark in here
Posted: 24th May 2003 03:30
you can get a eqans where y=a*x+b*z a=dx/dy or (x1-x2)/(y1-y2) and b=dz/dy or (z1-z2)/(y1-y2) then you put in the val for x and z then you get y.

--Dr 0--

Most people are other people.Their thoughts are someone else`s opinions,thier lives a mimicry,their passions a quotation
Oscar Wilde
haggisman
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 24th May 2003 12:37
You could also use spherical coordinates as described on this page... http://mathworld.wolfram.com/SphericalCoordinates.html which you would want to convert into cartesian coordinates.

project: light/obscurance mapper (80% done)
haggisman
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 24th May 2003 13:26
Is it something like this that you want?



project: light/obscurance mapper (80% done)

Login to post a reply

Server time is: 2026-07-11 13:58:20
Your offset time is: 2026-07-11 13:58:20