Full Raytracer

Install Java to view this project right on your browser!

user_icon Canthiar shared it 5 years ago
user_icon Based on Canthiar's project
2121 views, 3 taggers, 32 people love it, 2 remixes by 2 people, 421 downloads, in 8 galleries
Add to my favorites?
Flag as inappropriate?

Comments

You need to be logged in to post comments

Add a Comment

 
kaylaizkool kaylaizkool 1 year, 1 month ago

do u just watch and wait? :\

escort2 escort2 1 year, 1 month ago

what?????

solbrillan solbrillan 1 year, 2 months ago

So freaking fast in turbo!!!!

macweirdo macweirdo 1 year, 5 months ago

Change the pen size to 1, and it takes an hour in turbo mode. Change the pen size to 10, and it takes 2 minutes in turbo mode. It looks beautiful in pen size 1, and awesome but weird in pen size 10. ...this is awesome!

snailo29 snailo29 1 year, 5 months ago

bloody amazing!

Bobberpi Bobberpi 1 year, 7 months ago

How did yoo do this? Amazing!

Cozyhut3 Cozyhut3 1 year, 8 months ago

amazing!

bigreader bigreader 2 years, 8 months ago

I'm just wondering, would a raytracer like this be used anywhere other than as an incredibly cool Scratch project?

Canthiar Canthiar 2 years, 8 months ago

Some early movies like Tron used raytracing to render some of their scenes.

(view all replies)
shiny7890 shiny7890 2 years, 9 months ago

what do you do

shiny7890 shiny7890 2 years, 9 months ago

how do you do it

Mr_ABC Mr_ABC 2 years, 10 months ago

"Seite nicht gefunden Hoppla! Anscheinend sind Sie einem ungültigen Link gefolgt. "

LIGERS LIGERS 2 years ago

Page not found Oops! It seems that you have followed an invalid link. Why on Earth did you say that?

Awsome-me Awsome-me 2 years, 10 months ago

Wait, this is cool but it isn't raytracing. Raytracing is seeing something on a map and making a picture of it, not coloring a picture. But, this is still the most awsome thing i've seen in a while. Except for someones real raycaster.

drhelmi drhelmi 2 years, 7 months ago

Guys, just look at hte scripts. He/She put the picture there somthing to look at while you wait. Its just a black and white image of what the raytracer can do.

nikonkid nikonkid 2 years, 10 months ago

This is a real Raytracer as a program that calculates the "rays" that photons travel on. The Autodesk Maya 3D enviroment has two: Mental Ray and Maya software. Both of these renderers use raytracing (if you turn it on) to color a image. What you have said does have some relevance however, as a raytracer takes a 3D model (a map) and turns it into an image.

(view all replies)
golfer3 golfer3 2 years, 11 months ago

The only way to make this faster is download it and set it to turbo speed.

sparky101 sparky101 2 years, 11 months ago

Scratch is a pretty simple language, yet you do something in it thats almost impossible in c++? you win. you are an absolute ninja.

angelkid234 angelkid234 3 years ago

im going to leave my computer on, go sleep and then see if its done yet

dumbnerd dumbnerd 3 years, 2 months ago

amazing, I was trying to create a shading project when I came accross this... and it surpasses anything I think I could do =0

Coolyouth79 Coolyouth79 3 years, 4 months ago

w..................o.................w

axleman1011 axleman1011 3 years, 6 months ago

i might be able to speed it up!

Sidharth Sidharth 3 years, 9 months ago

that is complicated!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

sparkygirl sparkygirl 4 years, 3 months ago

cool

Scratchie Scratchie 4 years, 3 months ago

They look like Easter eggs!

messd002 messd002 4 years, 3 months ago

*Faint* OMG. Just downloaded code and, well, I can't say no more. Outstandingly incredible.

beandude202 beandude202 4 years, 4 months ago

did you say several hours?

MrBananas MrBananas 4 years, 6 months ago

this is amazing. i just dont have the patience to wait for it to finish, though.

LeBurt LeBurt 4 years, 6 months ago

LeSam: I would appreciate you didn't leave comments when logged under my name. Use your own login! ;)

LeBurt LeBurt 4 years, 6 months ago

kewl!ckool cool kool kcool

LeBurt LeBurt 4 years, 6 months ago

boring but fun!weird but clever!

LeBurt LeBurt 4 years, 6 months ago

how long does it take?

Canthiar Canthiar 4 years, 6 months ago

This ray tracer makes no FOV calculations so without adding the proper calculations you can't change the FOV. If change the radius of the objects then they will change based on the size that you set them to. If the number is bigger then the objects will get bigger.

Canthiar Canthiar 4 years, 6 months ago

I don't collaborate much online, but I know people will post to code http://www.codeproject.com/ and http://sourceforge.net/. If you use Windows you can download Visual Studio Express for C and C++ programming. I've posted a link somewhere in the comments.

Oldschooler2 Oldschooler2 4 years, 6 months ago

One other question... if I edited the size of the "Rayobjects" (the soccer balls, that is) would it make the spheres drawn by the raytracer bigger or smaller, since it would change the field of view?

Oldschooler2 Oldschooler2 4 years, 6 months ago

By the by, how long ago did you add the black and white picture of the final image to the screen? When I 1st saw this, it did not have it.

Oldschooler2 Oldschooler2 4 years, 6 months ago

Uhh... the latter. The one you said that I could write my own. By the by, did you hear about "Scratch 1.2"? It has the square root thing in it, I hear. Then it would be a whole lot less cluttered, since you would not have so many "Set SquarerootNR to ...". The problem with that is it still finds the square root of negative numbers, which you and I both know, is impossible to calculate with real numbers.

Canthiar Canthiar 4 years, 6 months ago

BTW, yes it is now much faster. If you notice a comment that I made below I hinted that it might be possible to speed it up.

Canthiar Canthiar 4 years, 6 months ago

Your question was "Do you know a site where I can upload the C++ you use for Raytracers?" and I was looking for clarification since I wasn't sure if you wanted source code to an already written ray tracer or if you were looking to write your own and upload it somewhere.

Oldschooler2 Oldschooler2 4 years, 6 months ago

And what do you mean by "Are you looking for the C++ compiler or the source code for a ray tracer"? Could you describe what you are questioning?

Oldschooler2 Oldschooler2 4 years, 6 months ago

Say, this is a whole lot faster than last time. I downloaded it, and you seemed to have made it so all of the Rayobjects operate on "When I receive (distancetoobject1)".

Oldschooler2 Oldschooler2 4 years, 6 months ago

Uhh... which one lets me get started with them and create them?

Canthiar Canthiar 4 years, 6 months ago

Are you looking for the C++ compiler or the source code for a ray tracer?

Oldschooler2 Oldschooler2 4 years, 6 months ago

Do you know a site where I can upload the C++ you use for Raytracers?

Canthiar Canthiar 4 years, 6 months ago

I don't write ray tracers for my job, I just do it for fun in my spare time. The language that I use is C++.

Oldschooler2 Oldschooler2 4 years, 6 months ago

Say Canthiar, what computer programs do you use with Ray tracers in your occupation? You do have a degree from the University of Arkansas, so you should know what I mean. To clarify, you use this kind of math in your job, no? And which programs do you use applying this knowledge? Sorry for repeating myself, I just want to be clear about what I am talking.

Oldschooler2 Oldschooler2 4 years, 6 months ago

sorry, I meant to say they both wait until the signal "DistacetoObject5" is broadcasted from "RayObject4".

Oldschooler2 Oldschooler2 4 years, 6 months ago

It does work correctly, it is just both the "RayObject5" and the "RayObject6" sprites both wait until the message "Distance to object5". Sorry, I don't know how do describe it in words exactly.

Canthiar Canthiar 4 years, 6 months ago

Interesting catch. It may have just been something that I changed and forgot to put back. If it still works correctly that way then it might be possible to speed this program up a little bit.

Oldschooler2 Oldschooler2 4 years, 6 months ago

Download it and check the list broadcast signals on it's pull down list to see what I mean.

Oldschooler2 Oldschooler2 4 years, 6 months ago

One question now, why do both the Rayobject 5 and Rayobject6 operate on "When I recieve (Distance to object 5)." Originally, was the Rayobject6 sprite only supposed to operate on "when I recieve (distance to object 6).

Canthiar Canthiar 4 years, 6 months ago

Yes, it is possible to draw things other than spheres.

Oldschooler2 Oldschooler2 4 years, 6 months ago

Sorry for bothering you... ray tracers are rather interesting... both to do and to look at!

Oldschooler2 Oldschooler2 4 years, 6 months ago

Hey, Canthiar, just curious: is it possible to create a ray tracer that draws something other than sphere (such as pyramids or other polyhedrons)? If not so, notify me.

Oldschooler2 Oldschooler2 4 years, 6 months ago

(link to project) The link is another attempt at a Raytracer... if you can call it that... Download it and check the script.

Oldschooler2 Oldschooler2 4 years, 7 months ago

I just did not understand that.

Oldschooler2 Oldschooler2 4 years, 7 months ago

Sorry to disturb you again, but what did you mean by "mathematical model to intersect that ray with an object.", the comment you left on my "raytracer"?

Oldschooler2 Oldschooler2 4 years, 7 months ago

Canthiar, what exactly about my "raytracer" does not make it a raytacer? What thing am I seemingly missing to make it a true raytracer?

Oldschooler2 Oldschooler2 4 years, 7 months ago

Sorry I meant to say "see" not se.

Oldschooler2 Oldschooler2 4 years, 7 months ago

(link to project) You will need to downoad it. Se it in presentation mode for the best image. Mine is faster than this but is a lot less complicated.

Canthiar Canthiar 4 years, 7 months ago

The slow down is a little bit more complicated than that. Yes, calculations can slow things down, but doing "Broadcast and Wait" and loops also slow scratch programs down. The main thing is that Scratch was meant to teach people how to write computer software, not do intensive programs.

JoelP JoelP 4 years, 7 months ago

things seem to run faster if you are giving a lot of different commands at a time instead of one big, complicated script. Your thing is amazing to see how complicated it is, but they could be faster.

Canthiar Canthiar 4 years, 7 months ago

I would love to make it run a lot faster so people don't spend so much time waiting on it, but everything I do to speed it up makes the scratch code harder to follow.

JoelP JoelP 4 years, 7 months ago

(for me)

Please Wait...