You are not logged in.
Ive finnaly got my ray-torus intersections working, and ive made a quick and messy sample program testing it all
there are two renderings of tori in the images, one shows a traditional style torus, except that it is stretched by a factor of 1.11 in z direction and 2.5 in y direction. The othere is what you get when the tube radius is more than the ring radius, and again is scaled.
I have also tested out texturing the tori, and applying a tangent space normal map, which requires finding the tangent vectors at a given point on the tori.
You can see the texture, the pink thingy at the bottom, along with the normal map im using
(is it just me or does the non-traditional looking torus look kind of like an apple (ignoring texture and normal maps))
Last edited by luca-deltodesco (2006-05-24 10:03:48)
The Beginning Of All Things To End.
The End Of All Things To Come.
Offline
Lots of work I bet to create that program.
How many kilobytes large is the source code you wrote?
What is this pink thing at
http://img409.imageshack.us/img409/1148/ehm0ut.jpg ??
I can see its shape applied onto the other 3-D objects if I flip back and forth.
Very interesting.
Last edited by John E. Franklin (2006-05-24 08:09:25)
igloo myrtilles fourmis
Offline
Lots of work I bet to create that program.
How many kilobytes large is the source code you wrote?
What is this pink thing at
http://img409.imageshack.us/img409/1148/ehm0ut.jpg ??
I can see its shape applied onto the other 3-D objects if I flip back and forth.
Very interesting.
Actually, this is a very messy program i quickly put together just to test the torus rendering, the source code is 10kb for the main cpp without about another 10kb of my own code for files containing a Matrix class, a vector class, and classes i made for loading bitmaps and for solving quartic equations.
the pink image is the texture im applying to the surface, i just used smudge tool in photoshop and added noise
Last edited by luca-deltodesco (2006-05-24 08:21:19)
The Beginning Of All Things To End.
The End Of All Things To Come.
Offline
That is really Beautiful!
Could you use "Image Upload" to post these on the forum? In a year or so the imageshack images might be gone.
"The physicists defer only to mathematicians, and the mathematicians defer only to God ..." - Leon M. Lederman
Offline
That is really Beautiful!
Could you use "Image Upload" to post these on the forum? In a year or so the imageshack images might be gone.
done and done, ive rewritten the first post, using the uploaded images.
The Beginning Of All Things To End.
The End Of All Things To Come.
Offline