Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Koen

refraction

This topic is 5557 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m trying to debug refraction in a photonmap-implementation. Something is wrong, though. See http://www.student.kuleuven.ac.be/~m9817401/snapshot2.png for a picture. The sphere is the problem, obviously. Does anybody recognize an obvious mistake. Any suggestions are very welcome. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Sorry forgot to mention the sphere is made of glass. It''s supposed to be transparant. You should see the scene (distorted, but nog foggy :-) ) through it. Like this: http://graphics.ucsd.edu/~henrik/images/imgs/cbox_with_sphere.jpg

Share this post


Link to post
Share on other sites
Well, it looks like the sphere is environment mapped, not refraction mapped. Also, is th nois(looks like glitter) intentional?

-~-The Cow of Darkness-~-

Share this post


Link to post
Share on other sites
The noise is not intentional. It''s caused by a small number of samples.

Share this post


Link to post
Share on other sites
quote:
Original post by cowsarenotevil
Well, it looks like the sphere is environment mapped, not refraction mapped. Also, is th nois(looks like glitter) intentional?

-~-The Cow of Darkness-~-


Dude, that glass sphere is refraction mapped. I''ve got a pretty good paper on refraction mapping if i can hunt it out for you...

Share this post


Link to post
Share on other sites
this is raytraced i suppose? it definitly looks like it is. anyway doing such effects with a raytracer is actually quite simple, if you know the also simple physics behind it. ive got totally no idea how to do this with a normal projection renderer though, that would be really hard im affraid.

Share this post


Link to post
Share on other sites
quote:
Original post by Eelco
this is raytraced i suppose? it definitly looks like it is. anyway doing such effects with a raytracer is actually quite simple, if you know the also simple physics behind it. ive got totally no idea how to do this with a normal projection renderer though, that would be really hard im affraid.


Dont quote me on this, but i think it can be done with photon mapping. Im no expert, and haven''t really looked into the field much, but maybe one of the more experienced members will be able to help out.

Share this post


Link to post
Share on other sites
quote:
Original post by Hairybudda

Dude, that glass sphere is refraction mapped. I''ve got a pretty good paper on refraction mapping if i can hunt it out for you...


No, I meant his... It looks like he''s reflecting it onto a gray texture...

-~-The Cow of Darkness-~-

Share this post


Link to post
Share on other sites
As i''ve said in my first (!! ;-) ) post, the image was generated using photon mapping. But that doesn''t matter for the refraction. You could consider it to be raytraced. The problem is the refraction in the glass sphere is wrong. I know Snell''s law, but something is wrong with the implementation (we''re using some external libraries, so maybe something is wrong with the normals).

Share this post


Link to post
Share on other sites

  • 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!