by Jojon » Tue Sep 08, 2009 4:48 am
@Da DataBase:
Many thanks. :)
@diafero:
"Deliberately"? Why, I never... ;)
@Justin:
I think making sure the envmap is a reasonably good approximation of the environment is the key - having the right-ish tint and having (primarily) light sources and landmarks in more-or-less the right direction.
All the reflecting objects in the lab use one and the same static environment map, which is rendered from a position in front of the table. (if you do not load an envmap, you'll get a dynamic one, which is calculated in real time by Plasma. EDIT: ...which takes processing grunt, so don't go wild.. :9 )
The back face of the outside hull of each vial is rendered using mix blending mode, to make it a bit darker, giving definition to the whole shape, then each front face is rendered using additive blending. For smaller vials, with thin walls, the inside surfaces are not rendered, to save a few polygons.
This whole approach works decently in this particular situation, but may not in others.
Where you have a liquid in a bottle you should have no reflection, since the difference in refraction index (glass-water transition) is much less than to air. (Like pouring water over a scratched glas surface - the scratches "disappear")
On another note (if this is something that has had others than myself wondering), regarding regions:
When do you "enter" and "exit" a region? -I made a small test and it would appear that you are considered "inside" a region as long as any part of the avatar's bounding box intersects with the volume of the region. I didn't think, at the time, to try making the region really thin, to ascertain whether it's really the bounding box, or the actual geometry, or skeleton of the avatar that is tested for collision, but as an approximation, what I've got seems "good enough".
This means that an outstreched arm of your avatar's might make you "inside" a footstep region, even tough your feet are not, so it would seem regions should be a little smaller than their areas of effect.
If one of our gurus feels like to clarifying where I'm fuzzy, please do. :)