Page 1 of 2

Glass questions again

Posted: Wed Mar 30, 2011 6:42 am
by scatman
Hello, all.
Please compare the renders below:
Image from Blender

Image from Indigo

How can I get the black areas out of the Indigo Render? Note: I've already tried lowering the Gain value in Blendigo, but it didn't fix the problem.

Any suggestions?

Thanks in advance.

Re: Glass questions again

Posted: Wed Mar 30, 2011 7:15 am
by Meelis
Hi :)

Intersecting glass mediums need to have different % value - glass that's inside another glass needs to have % 9 or smaller than 10% if that glass in what it is has 10%

<scenedata>
<medium>
<name>GlassABC</name>
<precedence>9</precedence>
<basic>
<ior>1.50137</ior>
<cauchy_b_coeff>0.00809424</cauchy_b_coeff>
<absorption_coefficient_spectrum>
-----

All normals out (select all and ctrl + n) in blender edit mode.
No holes in solid mesh, all geometry has thickness (no single flat plane with 0 thickness)
----

Also u need HDR map for lighting if u don't want glass to be flat and boring.
http://www.openfootage.net/?cat=15

Re: Glass questions again

Posted: Wed Mar 30, 2011 12:14 pm
by scatman
Thanks for responding, Meelis.

(wow 20-something views as of 8pm EST and only 1 reply...guess I gotta ask something more controversial?)

Anyway...I've tried changing the Gain and Precedence settings, but nothing is working. My normals are calculated outwards, too.
The rods are made of 2 uvspheres (cut in half and extruded) directly beside each other. Do I need to put 1 uvsphere slightly inside of another (kind of like a capsule pill)?

Is is ok if I attach the actual .blend file for you to tinker with?

Thanks,
scatman

latest attempt:
Image

Re: Glass questions again

Posted: Wed Mar 30, 2011 2:17 pm
by Headroom
It somewhat depends on how your object is created.

Zip your .blend before you post it.

Re: Glass questions again

Posted: Wed Mar 30, 2011 2:51 pm
by scatman
There you go...the .blend file is attached.

Thanks for your help.

scatman

Re: Glass questions again

Posted: Wed Mar 30, 2011 5:58 pm
by Meelis
The capsel looking dna pairs (ACT) are made of 2 meshes, they can not be opened from center where they join - close them both. Also close the spiral's from both ends (total 4 circle rings to extrude (edge mode) - scale to center in median point mode). W remoe doubles and A and ctrl + N.

Image

Re: Glass questions again

Posted: Wed Mar 30, 2011 7:56 pm
by galinette
Hi,

What you want to do is tricky to do with Indigo I think.
If you want to make an object made of two kinds of glass, the interface between both cannot be defined directly. You need to have one part (for instance : the red one) slightly bigger than the yellow part, and overlapping. This means, for instance, that you need to have slightly different diameters for the two parts of the rod, to make the overlapping work correctly.

I would use a totally different approach for the rods. Make a single rod without split in the middle, and apply a material with an absorbance shader defining the two colors. I'm sure Indigo can do this, however, neither the exporter nor the material editor support it.

For the small rings inside the transparent helix, you should make them closed, and slightly smaller than the helix wire, with high precedence.

Etienne

Re: Glass questions again

Posted: Thu Mar 31, 2011 3:20 am
by Headroom
While you're at it also the helix in the .blend file is pretty large (several meters).
One Blender unit is one meter, so the default cube is already 2^3m in size.

If you scale it down to say 20-30 cm in diameter it will yield much more interesting results.

Some HDRI with more point-like light sources would potentially generate some nice caustics if you place the helix on a background.

Re: Glass questions again

Posted: Thu Mar 31, 2011 7:22 am
by scatman
Thanks to all for your comments.

I tried your suggestion, Meelis; the result is below
Image

As you can see, it changed the ends of the spirals, but Extrude+Scale to center+Remove doubles+Ctrl N didn't quite fix the rod.
Next I'll try resizing one of the rods, per galinette's suggestion.

scatman

Re: Glass questions again

Posted: Thu Mar 31, 2011 8:25 am
by dag
Set up for blendigo 2.6.1.4
Smaller model = more transparent glass

Re: Glass questions again

Posted: Thu Mar 31, 2011 9:58 am
by Headroom
Nice DAG.

Yields even better results if thelead cystall glass from the matDB is used. http://www.indigorenderer.com/materials/materials/385

I also used a lightprobe from the St. Peters Basilica in Rome.from here
http://ict.debevec.org/~debevec/Probes/

Set the mapping to spherical. You may have to turn your scene upside down because otherwise the lightprobe stands on its head.

You als need to convert the .hdr file into an .exr using for example Picturenaut:
http://www.hdrlabs.com/picturenaut/

Re: Glass questions again

Posted: Thu Apr 07, 2011 10:18 am
by scatman
Thanks to everyone that responded. After much trial and error, I now know what I was doing wrong.
1. I wasn't closing both ends of my rods with Extrude+Scale to center+Remove doubles
2. I wasn't using the Edge Split modifier (I didn't even know it existed)
3. I had the 2 'rod halves' touching each other; there should be a tiny gap between the 2
So, if anyone else wants glass beside glass in Indigo (I like caustics), please do the 3 things above, and don't forget to RECALUCLATE NORMALS OUTSIDE with Ctrl+N.

These are more like what I had in mind
Image

Image

Thanks a billion to you all.
scatman

Re: Glass questions again

Posted: Mon Apr 11, 2011 5:30 am
by Silmä
scatman wrote:3. I had the 2 'rod halves' touching each other; there should be a tiny gap between the 2
There really shouldn't be a gap, but the rod halves should have different precedence values.

Re: Glass questions again

Posted: Mon Apr 11, 2011 7:19 am
by galinette
In fact, there should be either a gap, or an overlap.

A gap will give not 100% correct results, as it will simulate a thin layer of air between the two glass materials. It will render without issues, but will not be exactly what we want.

An overlap will give what we want. However, it's hard to model in this case, and requires a half-rod to have a slightly bigger diameter around the overlap.

No gap, no overlap will cause render issues (black areas generally)

Etienne

Re: Glass questions again

Posted: Mon Apr 11, 2011 9:24 am
by dag
Ooooor just use a absorption layer transmittance texture.