? Realistic Raytracer ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password

Realistic Raytracer

Submitted
Updated
Author
Simeon
Public Key
EKR432HE
Min. Compat.
All
Version
1.0
Size
7.8KB
Rating
10 votes
Description A slow, yet realistic raytracing engine that handles sphere luminance, light refractions, and reflections. Notes This is a tech demo to prove that it is possible to do, but this is also very processor heavy and as such, should be considered a benchmark instead of a program.
Categories
Keywords
11 Comment(s) Warrior Warrior Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Night Person I like the quiet night and sleep late. Express Yourself Drawing I like to draw! Hobbies So you think maybe possibly you could make this faster? NateDogg1232 NateDogg1232 Night Person I like the quiet night and sleep late. Express Yourself Avatar Taboo I didn't change my avatar for 180 days Website Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Quick thing, to edit the quality of the rendering, change STEPSZ at the beginning 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Second Year My account is over 2 years old Website Why is the image so noisy? Simeon Simeon Scholar Received for knowing a great deal about programming topics Achievements Amazing Page Hidden Achievements Drawing I like to draw! Hobbies I've been trying to figure that out too. It isn't supposed to be like that Nathaniel generated this: Not on a 3DS, but that is what the result should look like I will update the key if I can find out what's causing the problem. Shelly Shelly This might sound dumb, but is it possible that it is due to floating-point losses? I would need to analyze the code to confirm this, but it seems likely. If so, is there any way to change it so that it uses simulated floating point math? Like the DS? Simeon Simeon Scholar Received for knowing a great deal about programming topics Achievements Amazing Page Hidden Achievements Drawing I like to draw! Hobbies Simulated floating points I think are a bad idea, usually end up being slower But it's possible that you're correct I don't fully understand the code myself either (since it's a port) so good luck to you but if you are right then the fix is as easy as initializing the variables to 0.0 It's a little late for a response but I'll go back and look at the code, and see if I can improve performance and make the end result look better Thanks! Shelly Shelly Yeah, I agree with you that the code is likely to confusing to be changed. I also agree that simulated floating points would be slower, I just wanted to point out that it might reduce noise. Good luck! chicken chicken OSP Contest 1 Contest Participant I participated in the first SmileBASIC Source OSP Contest! Second Year My account is over 2 years old Website Good Page Hidden Achievements this is scarily good snail_ snail_ Helper Received for being very helpful around SmileBASIC Source Achievements Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength First Day Joined on the very first day of SmileBASIC Source Website Raytracing* Not to be THAT guy, but raycasting is when you shoot rays into a 2D map to figure out wall distance etc. Ray TRACING is when you follow light rays backward from the camera to the scene. Regardless, nice work. Simeon Simeon Scholar Received for knowing a great deal about programming topics Achievements Amazing Page Hidden Achievements Drawing I like to draw! Hobbies Oh, oops, thanks! PesticidePoison PesticidePoison Good Page Hidden Achievements Spring 2017 Contest Runner Up I placed 2nd in the SmileBASIC Source Spring 2017 Contest! Programming Contest First Year My account is over 1 year old Website Lol, I was waiting for someone to point that out. (By the way, great work Simeon)