Point At Given Distance in 3d Space

  • Context: Undergrad 
  • Thread starter Thread starter Sothh
  • Start date Start date
  • Tags Tags
    3d Point Space
Click For Summary
SUMMARY

The discussion focuses on calculating a 3D point given a starting point at (0,0,0), a direction specified by spherical coordinates (0, 90), and a distance ranging from 1 to 100. The participants clarify that the direction refers to angles of longitude and latitude, with the point at distance x from the origin being represented as (x, 0, 0) when directed along the positive x-axis. The need for an algorithm to compute the endpoint in Cartesian, Vector, or Parameter Forms of 3D Equations for Lines and Planes is emphasized, along with a reference to a Google document for further guidance.

PREREQUISITES
  • Understanding of spherical coordinates and their conversion to Cartesian coordinates
  • Familiarity with 3D geometry and vector mathematics
  • Knowledge of algorithms for line equations in three-dimensional space
  • Basic programming skills to implement the algorithm in a ray tracer
NEXT STEPS
  • Research the conversion formulas from spherical coordinates to Cartesian coordinates
  • Learn about 3D line equations in Cartesian, Vector, and Parameter Forms
  • Explore ray tracing algorithms and their implementation in real-time rendering
  • Review mathematical resources on vector mathematics and 3D transformations
USEFUL FOR

This discussion is beneficial for developers working on ray tracing applications, computer graphics programmers, and anyone interested in 3D geometry and rendering techniques.

Sothh
Messages
11
Reaction score
0
I am working on a simple ray tracer for rending point clouds in real time.

I am not so good with maths, and I am stuck with a fairly simple problem:

Given a start point (0,0,0) and a direction (0,90) and a distance 1-100, how do I get the 3d point the line will hit?

As this will go directly into code, it will be easier for me to use if no special math characters are used. (And easier for me to understand :)

Thanks!
 
Mathematics news on Phys.org
You have the origin in three dimensions, but I am not sure what "direction(0, 90)" means. Is that in "spherical coordinates" with \theta] (the &quot;longitude&quot;) equal to 0 and \phi (the &quot;co-latitude&quot;) so that is directed toward the positive x- axis? But then what &quot;third point&quot; are you talking about? You have only mentioned one point, the origin. And what do you mean by &quot;a distance 1-100&quot;? A distance is a single number.<br /> <br /> If you mean &quot;the point at distance 1 from the origin in the direction of the positive x-axis&quot;, that is, of course, (1, 0, 0). If you mean the point at distance 100 from the origin in that direction, that is (100, 0, 0). If you mean some point at distance x, where x is between 1 and 100, from the origin in that direction, that is (x, 0, 0).
 
Sorry, the direction is the longitude and latitude, or pitch and yaw.

1-100 is a single number, that may range between 1 to 100 (or more.)

I need the algorithm to find the 3d point that the line ends at when given a starting point, a direction, and a distance from the starting point.
 
This document might help if you can work in Cartesian, Vector, or Parameter Forms of 3D Equations for Lines and Planes
https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B8eDe0O_ATL_NjRjZDViOWUtZjk4NS00OTQyLThkODUtNDEzOWUzNTFhMmQ4&hl=en_US
 
Last edited by a moderator:

Similar threads

Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K