Is it possible to rotate circles in 3D using coordinates and normals?

  • Context: Undergrad 
  • Thread starter Thread starter otis
  • Start date Start date
  • Tags Tags
    3d Circles Rotating
Click For Summary
SUMMARY

The discussion centers on the challenge of rotating circles in 3D space to appear as spheres using point sprites in computer graphics. The user has coordinates in a 2D space and seeks to determine if points lie within a rotated circle defined by a center and a normal vector in 3D. The solution involves utilizing geometric algebra, particularly the conformal model of Euclidean 3D space, which is essential for manipulating geometric shapes in computer graphics. Resources such as the website geometricalgebra.net and the book "Geometric Algebra for Computer Science" are recommended for further understanding and programming guidance.

PREREQUISITES
  • Understanding of point sprites in computer graphics
  • Familiarity with 3D coordinate systems and normal vectors
  • Knowledge of geometric algebra principles
  • Basic programming skills for implementing geometric transformations
NEXT STEPS
  • Research the conformal model of Euclidean 3D space in geometric algebra
  • Explore the use of GAView software for visualizing geometric algebra applications
  • Study the book "Geometric Algebra for Computer Science" for practical examples
  • Learn about 3D transformations and their implementation in graphics programming
USEFUL FOR

Computer graphics developers, programmers working with 3D transformations, and anyone interested in advanced geometric manipulation techniques.

otis
Messages
3
Reaction score
0
I am creating a program where I want to rotate circles facing me(point sprites for those familiar with CG) so they look like spheres. Data I have:
- coordinates of every point inside point sprite in [-1,1] € R^2 space.
- center of point sprite in 3D space
- point sprite normal in 3D space

Best thing for me would be if I could find an equation that would test for each pair of (i,j) coordinates if they lie within a circle, rotated to a proper 3D plane determined by normal vector and center of point sprite. Is that possible? PLease bear in mind that I am not really good at this.

sorry for my bad english, but I hope you understood what I meant.
 
Physics news on Phys.org
otis said:
I am creating a program where I want to rotate circles facing me(point sprites for those familiar with CG) so they look like spheres... .

Hello Otis and welcome to PF. It is not clear to me exactly what you want to do. At first sight, it would seem to me that any point within the original circle would still be inside the rotated circle. Obviously, I have not understood what you want. However, if CG means
computer graphics, then the following cite ought to point you in the direction of a solution.

http://www.geometricalgebra.net/

Much of computer graphics relies heavily on geometric algebra, particularly on the conformal model of Euclidean 3D space, which is the tool of choice for manipulating lines, circles, spheres, etc. The cite above provides you with free demonstration software (GAView) to illustrate the application of GA to CG. The book (Geometric Algebra for Computer Science) advertised on the cite provides a thorough and clear exposition of this topic together with many examples and material explaining how to do the programming.
 
Last edited by a moderator:
Thanks. I know I described my problem in very unclear way, but that is the best I can do, sorry. So here is a little picture that illustrates it:

http://img369.imageshack.us/my.php?image=sampleig2.png

As you see I am actually working on a 2D projection plane where the image is drawn. Lower left coordinates of a square are (-1,-1) and upper right are (1,1). I also have center of this square in bot 2D projected coordinates and 3D space coordinates, as well as normal vector of a square(that should be rotated like the circles in the bottom image). Now I want to go through every (i,j) pair and check if it falls inside that rotated circle from the lower picture.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K