|
6 Dec 2002, 14:00
|
#1
|
Rawr rawr
Join Date: Dec 2000
Location: Upside down
Posts: 5,300
|
Maths: How to calculate ray-sphere collision/intersection
How can I determine if a ray goes through a sphere?
Information one has is the direction and start position of the ray, and the position and radius of the sphere.
TY
__________________
"Yay"
|
|
|
6 Dec 2002, 14:54
|
#2
|
Registered User
Join Date: Aug 2002
Location: Bromley
Posts: 806
|
Do your own bloody homework!!!
__________________
Proud to be a pr0nstar and [TiT]
Proud to have been:
[_DoG_]HC
[ICE]DC
[Deus]
[Tok'ra]
[Ostraka]
www.tit.aresexy.com
|
|
|
6 Dec 2002, 16:18
|
#3
|
Ball
Join Date: Oct 2001
Posts: 4,410
|
|
|
|
6 Dec 2002, 16:19
|
#4
|
Born Sinful
Join Date: Nov 2000
Location: Loughborough, UK
Posts: 4,059
|
Quote:
Originally posted by [GAP]Obiwan
Do your own bloody homework!!!
|
He's developing a 3D engine - this is not homework.
__________________
Worth dying for. Worth killing for. Worth going to hell for. Amen.
|
|
|
6 Dec 2002, 16:54
|
#5
|
Rawr rawr
Join Date: Dec 2000
Location: Upside down
Posts: 5,300
|
Quote:
Originally posted by meglamaniac
He's developing a 3D engine - this is not homework.
|
yeh.... consider it "hobby".
Anyway, I've done the nescesary googling but I don't seem to be able to find the calculations.
This is about the best thing I could find but doesn't give any information on the calculation (kinda stuck on part 2).
BTW, queball, your link made my computer crash..... twice =/
__________________
"Yay"
|
|
|
6 Dec 2002, 17:12
|
#6
|
Henry Kelly
Join Date: Apr 2000
Posts: 7,374
|
I don't think this is what you're looking for but it does have calcs for doing plane-sphere collision that might apply with some shiny pictures.
|
|
|
6 Dec 2002, 17:15
|
#7
|
Guest
|
lsrogpefehgr9eut30tu
dzfgudhveo8gh
EO*fe9grg9pgorhg'45ihrgvnd\9y(Y3e9rhofhht\g9
\erg@IGFheitu3)(UT(GF40y5YT0\P9EVJLI ODZHFE9gu4wp9tH ef0u
4P9U6T)uGTE
UT(WT
acIDHGERYHThefjndcm
d0gie[0tiorjgojskmflkmnskfjbm, [aasorg
ior
|
|
|
6 Dec 2002, 17:19
|
#8
|
Born Sinful
Join Date: Nov 2000
Location: Loughborough, UK
Posts: 4,059
|
Quote:
Originally posted by Blind Guy
poor attempt at humour
|
There's always got to be one... well ok, in this place, more like 5 or 6.
__________________
Worth dying for. Worth killing for. Worth going to hell for. Amen.
|
|
|
6 Dec 2002, 17:22
|
#9
|
Bitch
Join Date: Jun 2002
Location: North Yorkshire
Posts: 3,848
|
Let the google queen have a go
http://www.cs.virginia.edu/~gfx/Cour.../lecture03.ppt
[edit]even better link http://www.cmlab.csie.ntu.edu.tw/~js...ta/faq_rt.html Search terms: Ray spehere intersect. Told you I was the google queen \o/ [/edit]
__________________
ACHTUNG!!!
Das machine is nicht fur gefingerpoken und mittengrabben. Ist easy
schnappen der springenwerk, blowenfusen und corkenpoppen mit
spitzensparken. Ist nicht fur gewerken by das dummkopfen. Das
rubbernecken sightseeren keepen hands in das pockets. Relaxen und vatch
das blinkenlights!!!
|
|
|
6 Dec 2002, 17:29
|
#10
|
Rawr rawr
Join Date: Dec 2000
Location: Upside down
Posts: 5,300
|
You, miss, are not only a queen, you are a god!
BTW, pablissimo, the article behind the link you posted SEEMS to have the solution to ellipsoid collision detection (I quickly looked over it and saw it mentioned, not ellipsoid vs ellipsiod tho). I've been looking for that earlier .
I LOVE YOU ALL!!!
(Except Blind Guy then)
__________________
"Yay"
|
|
|
6 Dec 2002, 17:33
|
#11
|
Guest
|
Quote:
Originally posted by meglamaniac
There's always got to be one... well ok, in this place, more like 5 or 6.
|
Maybe the real issue here is your lack of humour.
|
|
|
6 Dec 2002, 17:51
|
#12
|
Rawr rawr
Join Date: Dec 2000
Location: Upside down
Posts: 5,300
|
Quote:
Originally posted by Blind Guy
Maybe the real issue here is your lack of humour.
|
I don't want to be a pitnicker, but neither do I see the humor of a set random characters in a thread....
You might want to review your definition of humor.
__________________
"Yay"
|
|
|
6 Dec 2002, 18:03
|
#13
|
Guest
|
It was ROTFLMAO funny when I first posted random characters.
Then it was funny, just not "ha ha" funny.
Now the gimmicky goodness is gone.
|
|
|
6 Dec 2002, 19:53
|
#14
|
∞+♪˛
Join Date: Nov 2000
Location: :uo!te]oŻ|
Posts: 428
|
To use some formulas to do with spheres, with ellipsoids, a linear transformation of coordinates should be able to change the whole system so the ellipsoid turns into a sphere, so the formulas can be used.
Although maybe you have all the ellipsoid formulas you need by now, anyway.
__________________
Structural Integrity for Creator - since he'll probably make PA turn 3D.
Wikipedia forum
Note to self - Don't write Chinese letters with bold and italics... 猫
<!--Last incarnation: Nov 2000-->
|
|
|
6 Dec 2002, 20:57
|
#15
|
Vermin Supreme
Join Date: Jul 2000
Location: Pittsburgh
Posts: 3,280
|
Quote:
Originally posted by Blind Guy
It was ROTFLMAO funny when I first posted random characters.
Then it was funny, just not "ha ha" funny.
Now the gimmicky goodness is gone.
|
Problem is we already had a 'blind person gimmick.' So no new ground has been broken.
The theory is sound tho.
|
|
|
6 Dec 2002, 22:54
|
#16
|
Gubbish
Join Date: Sep 2000
Location: #FoW
Posts: 2,323
|
Learn some bloody math.
__________________
Gubble gubble gubble gubble
|
|
|
6 Dec 2002, 23:13
|
#17
|
Guest
|
Quote:
Originally posted by W
Learn some bloody math.
|
it appears, that that is exactly what he is trying to do!
|
|
|
7 Dec 2002, 14:09
|
#18
|
Rawr rawr
Join Date: Dec 2000
Location: Upside down
Posts: 5,300
|
Quote:
Originally posted by W
Learn some bloody math.
|
Trying....
Be happy I'm not asking for ready made code. That'd require me a whole lot less work, but I want to understand what I'm doing.
__________________
"Yay"
|
|
|
7 Dec 2002, 14:16
|
#19
|
Gubbish
Join Date: Sep 2000
Location: #FoW
Posts: 2,323
|
ok, what I really meant was "take a math course/buy a math book/hire a math tutor". Or even STFW. A place to start might be to look up the parametric functions for various geometric objects, and how you can use them to calculate distance/intersection/angles etc.
__________________
Gubble gubble gubble gubble
|
|
|
|
All times are GMT +1. The time now is 14:54.
| |