no speculars on objects inside refractive objects, if caustics are turned on.

ive got to make an object which is translucent coloured plastic with bits of glitter in the plastic.

if i render without caustics, my glitter looks “glittery” and does what it is supposed to. however the plastic is missing the caustics.

if i turn on caustics, the plastic looks nice, but the glitter no longer glitters. its lost all its specular highlights.

ive tried fiddling with every potential setting i can think of, but only turning off caustics brings my glitter back.

ive got 2 days to do this job so not ideal.

could you share a little sample of what you have set up?

My quick/dirty setup seems to work ok. Got a test file?


just a quick update, it appears that the problem manifests with vray sun/sky, but not with domelight or planes with vraylightmtl.. given i was only using sun/sky for very first test, and will be using dome/vraylightmtl for actual lighting, this is now no longer super urgent. later on ill create a test example. cant share the actual renders unfortunately.

I used an hdr, so maybe the sky in a dome might work with the sky even. Currently killing zombies so can’t check :stuck_out_tongue:

Did you turn off “Affect shadows” for the translucent colored plastic?

Maybe the sun’s photon casting radius was small or off-subject?

ok here is a simplified example scene. one shiny sphere inside another (fog coloured) refractive one. vray sun and sky. the outer refractive sphere has no reflections enabled.


this is with “affect shadows” on on the refractive material, and no caustics


this is with “affect shadows” turned off, and no caustics.. NO SPECULAR


this is with “affect shadows” turned off, and caustics enabled (photon radius is fine) NO SPECULAR

​
this is with “affect shadows” enabled again, but with caustics turned on too. NO SPECULAR

as you can see only the first (default) option does correct specular inside refractive geometry. definitely wrong IMHO.

also, as noted, this effect does not seem to occur when using domelight or planes with vraylightmtl.

ive not tested with vraylights and/or point lights.
​

​

edit: nevermind.

and to pre-empt a question, the effect is the same with a pure 100% transparent refractive material, so attenuation due to fog colour is not the issue.

Also, on closer inspection, there is a difference between the specular with no caustics, but “affect shadows” turned off - the specular is massively reduced but there is still a hint of something present

and with caustics enabled -specular completely absent

It seems that it’s caused by the default sun size, so if you increase that then the speculars reappear as normal.

thats quite an odd behaviour. i wonder if making the sun larger (much) means you are getting a reflection of a brightly emissive object rather like when you use a self illum plane. when the sun is small its treated as a point light source and uses whatever system vray uses for doing speculars from point sources.

to be honest ive never quite understood the separation of reflections and speculars and where one becomes the other… i understand the need for a “fake” specular when we deal with infinitely small lightsources, but beyond that its all a bit unclear to me.

Yeah that’s basically it.

Whilst it does solve the specific problem, it of course creates another, in that the shadows are vastly different and so is the sharpness of the caustics in a given scenario, so not ideal if you want the speculars.

I think the separation was maybe because speculars are wholly fake whilst reflections are purely that, so a physically correct approach vs the fake specular and it was simpler to separate them.