More tracing, now with refraction!

General discussion about the development of the open source Blender

Moderators: jesterKing, stiv

ton
Site Admin
Posts: 350
Joined: Wed Oct 16, 2002 12:13 am
Contact:

More tracing, now with refraction!

Post by ton » Tue Dec 16, 2003 4:09 pm

Hi,

http://www.blender.org/bf/monkey_glass.jpg
http://www.blender.org/bf/monkey_glass_fresnel.jpg

We are gathering testing binaries, and this monkey file here:
http://download.blender.org/demo/test/

Just committed. :-)

Here's the changelog: (real user docs come, please bear in mind that
this is unfinished, and for test only)

- enable refraction with button "Ray Transp" in Material buttons.
- set "Angular Index" value for amount of refraction. (will be "IOR")
- use the "Alpha" value to define transparency.
- remember to set a higher "Depth" too... glass can bounce quite some
more than expected.
- for correct refraction, 3D models MUST have normals pointing in the
right direction (consistently pointing outside).
- refraction 'sees' the thickness of glass based on what you model. So
make for realistic glass both sides of a surface.

- I needed to do some rewriting for correct mirroring/refraction,
especially to prevent specularity being blended away.
Solved this with localizing shading results in the rendercore.c.
Now specularity correctly is added, and reduces the 'mirror' value.
- Localizing more parts of the render code is being planned. The old
render heavily relies on struct Render and struct Osa to store globals.
For scanline render no problem, but recursive raytracing dislikes that.

- done test with gamma-corrected summation of colors during tracing, is
commented out still. But this will give more balanced reflections. Now
dark reflections that are reflected in a bright surface seem incorrect.

- Introduced 'Fresnel' effect for Mirror and Transparency. This
influences the amount of mirror/transparency based at viewing angle.
Next to a new Fresnel slider, also a 'falloff' button has been added to
define the way it spreads.
- Fresnel also works for Ztransp rendering

- created new Panel for Raytrace options
I have to evaluate still where it all should be logically located.
- material preview shows fake reflection and fake refraction as well.

ada89
Posts: 0
Joined: Sat Sep 06, 2003 10:26 pm

Post by ada89 » Tue Dec 16, 2003 4:37 pm

Ooh Ooh Ooh

slikdigit
Posts: 133
Joined: Wed Oct 16, 2002 3:52 am
Location: Northampton, MA (US)

Post by slikdigit » Tue Dec 16, 2003 5:02 pm

Awesome! thanks for the great work, Ton. :D
unfortunately I can't test this yet. Both Desktop and laptop have problems (RAM and CMOS) :(

thorwil
Posts: 0
Joined: Tue Sep 09, 2003 10:30 am

Post by thorwil » Tue Dec 16, 2003 6:44 pm

Speed of development is incredible!
And many thanks for all the work and releasing previews.

But sadly trying to execute the Linux build results in a window flashing followed by the error message:
Illegal instruction

No such problem with the previous raytrace preview (where I was only to dumb to make it executeable right away)
Any ideas?

ton
Site Admin
Posts: 350
Joined: Wed Oct 16, 2002 12:13 am
Contact:

Post by ton » Tue Dec 16, 2003 6:59 pm

I've uploaded linux build again, it was apparantly compiled with optimizing for athlon...

blendermax
Posts: 0
Joined: Sun Jan 19, 2003 8:30 pm

Post by blendermax » Tue Dec 16, 2003 7:24 pm

this is great!! :D

on thing though; what about refraction?

oh, another question: is this yafray code?

modron
Posts: 0
Joined: Thu Jun 05, 2003 10:13 am

Post by modron » Tue Dec 16, 2003 7:38 pm

I am not having much luck with the refraction so far, but it's there. Big thanks to all.

kirpre
Posts: 11
Joined: Wed Oct 16, 2002 4:09 am
Location: New York

Post by kirpre » Tue Dec 16, 2003 7:38 pm

Ton, are you sleeping? It seems like something major has come out every other day. Thanks so much for all your hard work.

ada89
Posts: 0
Joined: Sat Sep 06, 2003 10:26 pm

Post by ada89 » Tue Dec 16, 2003 7:56 pm

Woaw, just test it and it work nicely(but i'm not sure if it accurate :wink: ) I think it is...is it?? :D

Now rendering with better scene....


note: thanks ztonzy for the compile

thorwil
Posts: 0
Joined: Tue Sep 09, 2003 10:30 am

Post by thorwil » Tue Dec 16, 2003 8:07 pm

ton wrote:I've uploaded linux build again, it was apparantly compiled with optimizing for athlon...
Thanks, but I have an Athlon (not XP). Still the same problem. What else could it be besides processor optimization?

Maybe I will try to compile form CVS on the weekend.

Hos
Posts: 185
Joined: Wed Oct 16, 2002 12:06 am

Post by Hos » Tue Dec 16, 2003 8:19 pm

BTW: the 65000 verts per mesh limit has been removed
from this test version too ... please test that and report
any problems to the bug tracker.

Chris

Eric
Posts: 163
Joined: Wed Oct 16, 2002 1:01 pm
Location: Sweden, Norrköping

Post by Eric » Tue Dec 16, 2003 8:24 pm

Ton, whatever pills your taking I think you should stop taking them. If you don't you'll be burnt out very soon! :D

forcefield
Posts: 21
Joined: Wed Oct 16, 2002 4:20 pm
Location: Bangor, Maine. USA
Contact:

Post by forcefield » Tue Dec 16, 2003 8:50 pm

Ton you are amazing!!

Windoze Bin anyone?

ada89
Posts: 0
Joined: Sat Sep 06, 2003 10:26 pm

Post by ada89 » Tue Dec 16, 2003 8:53 pm

Ztonzy threat in news and chat at Elysiun :D

thornae
Posts: 44
Joined: Mon Nov 04, 2002 11:53 am

Tested on FreeBSD 4.9-STABLE

Post by thornae » Tue Dec 16, 2003 9:33 pm

Building from cvs code, seems to work fine. However, when rendering the monkey test file as it is given, my image doesn't quite match those posted (glass seems lighter - see here for comparison with Ton's as posted above). This could be to do with settings for fresnel falloff or something similar - any chance of getting the settings used for the above images that differ from the given test file?

Also, the arrows for single digit adjusting of falloff settings don't seem to work - click and drag adjusting only - but this may be my not having fully read the new UI docs.

All in all - Ton rocks my world.

Incidentally, I've been bug-eyed by how much Blender's changed since I've been away from it, all for the better. It's looking like a bright blending future.

Post Reply