View Single Post
Old 28th January 2004, 12:36   #1
your-dentist
Junior Member
 
Join Date: Jan 2004
Location: berlin, germany
Posts: 44
Unhappy raytracing: inside and outside sphere

it took me only two days to understand the basics of raytracing and to make my first planes and tunnels DMs, just with the help of the easy to understand explantions by UnConeD. Due to my bad math skill I can make more complex objects. So I simply copied the "k" for a sphere from one of UnConeD's tuts.
What I don't understand is how to move the camera out of the shere.
when the cam coords are something like oz=1 it's inside and distorts the sphere. in discoball the z-coord is oz=sin(t)+1.9 or something.
who can explain me how to the camera outside of and object in general? (also for cylinders)
your-dentist is offline   Reply With Quote