Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    49
  • comments
    80
  • views
    39229

More Raytracer

Sign in to follow this  
Rixter

254 views

So I haven't been able to work on it for a bit, but today I did, and seem to have refraction working:



And also triangles, which is pretty cool.

If I have time I may take the code from my old graphics course where I made a loader for Milkshape models, and see if I can get something cool in it, right now everything is hand coded into a file, not so bad for spheres, but triangles are kind of a pain.

I'm having some other issues right now, now that transparency is working, namely with the shadows. I don't have a pic of it, but even very very transparent objects self shadow themselves quite harshly, which is a problem. Fortunately I have about a week to get all this sorted out, and hopefully get a cool scene for style points :).

Also, the guy who was going to compete against me with this has understandably dropped out. See, we have this thing called "school" that gets in the way of all our fun. So maybe this summer we can compete with a thin lens raytracer or something.

edit: oh yeah, please excuse the horrible colors.
Sign in to follow this  


2 Comments


Recommended Comments

Guest Anonymous Poster

Posted

Allow me to retort with my school projects. I hate graphics man it makes all other projects look less cool even if the work load is similar.

> loadBoard("puzzle1")
Read 81 items
> board
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9]
[1,] 0 0 9 0 0 7 0 0 0
[2,] 0 5 2 3 0 1 0 0 0
[3,] 8 0 1 2 0 6 0 0 0
[4,] 0 0 4 0 0 0 0 1 0
[5,] 9 7 0 0 2 0 0 8 4
[6,] 0 2 0 0 0 0 9 0 0
[7,] 0 0 0 8 0 4 1 0 5
[8,] 0 0 0 6 0 5 2 4 0
[9,] 0 0 0 0 0 0 8 0 0
>logic_solver()
> board
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9]
[1,] 0 0 9 0 0 7 0 0 0
[2,] 0 5 2 3 0 1 0 0 0
[3,] 8 0 1 2 0 6 0 0 0
[4,] 0 0 4 0 0 9 0 1 0
[5,] 9 7 0 0 2 3 0 8 4
[6,] 0 2 0 0 0 8 9 0 0
[7,] 0 0 0 8 0 4 1 0 5
[8,] 0 0 0 6 0 5 2 4 0
[9,] 0 0 0 0 0 2 8 0 0
> print_unsolved(byrow=TRUE)
Row Col Legal Moves
1 1 3 4 6
1 2 3 4 6
1 4 4 5
1 5 4 5 8
1 7 3 4 5 6
1 8 2 3 5 6
1 9 1 2 3 6 8
2 1 4 6 7
2 5 4 8 9
2 7 4 6 7
2 8 6 7 9
2 9 6 7 8 9
3 2 3 4
3 5 4 5 9
3 7 3 4 5 7
3 8 3 5 7 9
3 9 3 7 9
4 1 3 5 6
4 2 3 6 8
4 4 5 7
4 5 5 6 7
4 7 3 5 6 7
4 9 2 3 6 7
5 3 5 6
5 4 1 5
5 7 5 6
6 1 1 3 5 6
6 3 3 5 6
6 4 1 4 5 7
6 5 1 4 5 6 7
6 8 3 5 6 7
6 9 3 6 7
7 1 2 3 6 7
7 2 3 6 9
7 3 3 6 7
7 5 3 7 9
7 8 3 6 7 9
8 1 1 3 7
8 2 1 3 8 9
8 3 3 7 8
8 5 1 3 7 9
8 9 3 7 9
9 1 1 3 4 5 6 7
9 2 1 3 4 6 9
9 3 3 5 6 7
9 4 1 7 9
9 5 1 3 7 9
9 8 3 6 7 9
9 9 3 6 7 9


-Dre

Share this comment


Link to comment
I think we can all appreciate a bunch of number output once in a while :).

Good thing I already know what you're doing, otherwise that wouldn't make a lot of sense to me... looks like progress though.

-Rix

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!