Jump to content

mantra -u question


Recommended Posts

Hi !

sorry for "doublepost" my question (from houdini forum) but i could not find solution for my problem.

I tried to bake into texturemap my whole shaded/subdivided geomery by using a "prepass" mantra node (using mantra -u).

The goal is to get back all the final illumination and and final normal(displace,bump..) data from the object it one map, then reuse this map into the second render pass by a custom shader.

My problem is that the baking function works only when there are no "render as subdiv" option on my object.The other problem is the displacement.

A regular `displace anong normal` node is attached to my geo and in the normal mantra pass it renders well ,but with mantra -u it renders black(like something bound problem)(my surface shader handles both front/backface so i think it's not because of this).

Could anyone give some advise for these problems?

thanks in advance

Ashraf

Link to comment
Share on other sites

Hi Jason,

Thanks for the reply, it works but just for the correct surface normals and surfaceshading(color) data.For getting the correct shadowed shading it is a difference between the displaced and the "bumped"(true displace off) versions.

We try to implement our custom mentalray shader into mantra which has an SSS buffer.Unfortunately it needs all the correct shadowing info from the current scene,without it it is will be biased from the diffuse shading pass producing compositing artifacts.I attached a sample picture how does it looks right now under mentalray, it shows how "sharp" could be the sss data at the shadow border regions.

post-3839-1239892244_thumb.jpg

back to the true displacement problem here is another pic ,it shows that the shadows came from the base object which is not displaced.

This uv baked data is used in other passes for the sss so the shadow won't be correct in the final sss pass.Is there any option to get it work with true displacement?

post-3839-1239892258_thumb.jpg

other interesting thing is some camera clipping issue in uv baking which i thought is camera independent.

post-3839-1239893034_thumb.jpg

I read some post before that the surface shader should handle both back/front normals. This shader i used has this solution(isFrontFace) for the illumination loop.

Am i missed somethig?(is there any auto clipping optimalization in mantra?, sorry i'm not very familiar with the rendering options in mantra).

thanks again,

Ashraf

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...