wateryfield Posted April 11, 2015 Share Posted April 11, 2015 (edited) Hi, guys. I'm working with instance recently. Let's say i stuck on something like instance with normal problem. There was a example i built: i have a mountain sphere with point normal, i will show the N pass, then i instance the smalll ball on it, then tranfer normal to small ball. if i just use copy sop, it works correct. The N pass show right color. After that i try instance sop, it was great tool. I override the material N, it link to the sphere point normal,. It seems working, but was a wrong way. The N pass show a different color. I have try my best to achieve it and keep modify the material again. But if anyone can help me out it will be great! Thanks. surface_normal copy_correct_normal instance_normal instance_with_normal.hip Edited April 11, 2015 by wateryfield Quote Link to comment Share on other sites More sharing options...
Skybar Posted April 11, 2015 Share Posted April 11, 2015 I think you have to transform the normals, since the shader works in camera space. So in your file, Input1 -> Transform VOP (from World to Camera). It could be the other way around though, camera to world, I'm not entirely sure atm. Try it out! 1 Quote Link to comment Share on other sites More sharing options...
wateryfield Posted April 12, 2015 Author Share Posted April 12, 2015 I think you have to transform the normals, since the shader works in camera space. So in your file, Input1 -> Transform VOP (from World to Camera). It could be the other way around though, camera to world, I'm not entirely sure atm. Try it out! I will have a try. Thanks, skybar. Quote Link to comment Share on other sites More sharing options...
wateryfield Posted April 12, 2015 Author Share Posted April 12, 2015 I think you have to transform the normals, since the shader works in camera space. So in your file, Input1 -> Transform VOP (from World to Camera). It could be the other way around though, camera to world, I'm not entirely sure atm. Try it out! Thamks, Skybar. After transform the world space to the camera space, the material render perfect. Since i was a noob at material and shade, if the shade works in camera space, does attribute output form Global Variables already been transform to camera space? Quote Link to comment Share on other sites More sharing options...
Skybar Posted April 12, 2015 Share Posted April 12, 2015 Thamks, Skybar. After transform the world space to the camera space, the material render perfect. Since i was a noob at material and shade, if the shade works in camera space, does attribute output form Global Variables already been transform to camera space? I'm no expert at this, but yes I think so! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.