Environment mapping and DOF

Hi,

it’s a Vray for Rhino problem, but maybe it’s a general Vray problem. I miss this feature and so I hope, if post the problem here too, the fix need less time. :wink:

If I use the environment mapping for the ground and enable DOF, than I should get a typical DOF effect based on the geometry, but here, the env mapped ground is extrem blurred only. It seems to be, the DOF calculation base on a size of an internal used env sphere. If I disable DOF (no phys cam), than anything looks fine.

-Micha

Resolution of the environmentmap? is bitmap filtering off ?

Filterung off. Image size 7500x3750. Rendering without DOF enabled looks perfect sharp.

Image:
Imgur

i dont get it…
u mean u have a map in the environment, and the dof is wrong?
for me its spot on…no bug if understood u correctly!
try and put a texture into a plane for the ground instead :wink:

The groundplane is a diffuse material with a high res 360° env texture in environment projection mode. The simpliest way to render an object in a virtual environment - environment mapping.

… here an example from a current experiment - WIP only. For example, my wish is, that I could enable DOF and focus to the car.

it s a bitmap projected as an enviroment…
the ground has no geometry, right?

As a temp fix maybe you could blur the hdri manually to give an ‘impression’ of dof, and render the plane in a seperate pass as the frog.

But this doesnt really solve your problem as such…

Thanks for the workaround hint. :slight_smile:

Maybe somebody like to test 3dsmax about this issue. It’s quite simple and a high res image can be found at the above flickr.com link. :wink:

as soon as i got 2 min here… :? …crazy week! :frowning:

I will give it a shot in a bit.

im curious to see if it works.

Seems to happen on the max version as well. Setting the mapping for the bitmap to spherical environment and it blurs evenly across the whole map.

I assume its because vray sees it mapped as an enviroment and then blurs it as if it were at the furthest point away.

Test images.

Tile map with no DOF
Tile map with DOF

pano with spherical environment mapping with no DOF
pano with spherical environment mapping with DOF

Thank you DaForce. :slight_smile:

No problem :slight_smile:

I wonder if its possible to get DOF to work properly ..

Why are you setting it as a spherical environment ? I guess that simply cannot work as an environment is far away = blurred. Why not camera-map it ?

Regards,
Thorsten

yeah I think thats right. Can you camera map a pano texture?

(never used camera map myself) but would assume it would perfectly.

I was only using a spherical env to replicate what Micha was doing.

you cannot directly cameramap a spherical texture. Usually we use a backplate. As a rather quick workaround simply render the background only from the cam (as environment) and use that as camera-mapped texture.

Regards,
Thorsten

Yeah that would work. Good idea.

If you are forced to go that route regularly that i would guess it could be easily scripted in a one-button process. But no idea how to accomplish such a script in Rhino :?

Regards,
Thorsten

Hmmm, no good idea - Rhino and SketchUp dosn’t support camera mapping. This I will post at the wish section after Siggraph and I hope Vlado could implement it. For example the renderman standard based engine AIR support it as render engine feature and it should no problem for Vray too.

Also I don’t like the workflow to render the visible background, save it and use it for camera mapping - time and quality will lost. Basic environment mapping works yet and why not DOF based on the geometry? DOF based on a envsphere makes no sense for ground plane materials.

My intention is to get an easy workflow like hypershot|bunkspeed (I tested the 2-day demo): the user select a HDRi environment and choose:
- visible at ground/background on/off
- ground catch shadows on/off
- ground show reflections on/off
-DOF on/off
Wonderful easy!!! (render times was not the big surprise :wink: )

Interesting for me is, that hypershot makes, that ground and background perfect match - no brightness or color jump.

It should no problem to get an equal workflow with Vray. I create my own scene setup for it. Only two problems: DOF effect dosn’t work like expected and if I want to change the HDRI env than I must set the texture several times again - GI + background + ground material. Here I hope the plugin developing team create a “synchronize” option for env maps.

Here an example with a reflective area around the main object - simple test with a LDR image.