EwanW Posted December 13, 2013 Share Posted December 13, 2013 (edited) Hi!Am having a problem trying to get my version of an interior mapping shader to work in Houdini. http://www.proun-game.com/Oogst3D/index.php?file=CODING/InteriorMapping/InteriorMapping.txtThe surface takes two inputs position(P) and a direction from camera(I).It works fine in world position however I would like to translate the geometry so as best to fit my "windows" in different positions/rotations. When I do this at object level the shader sticks to the surface and works fine.How do I replicate this effect when transforming the geometry at sop level?Using a rest position instead of the world position works for translation, however, if I rotate the surface it warps. How do I translate my I vector so that it will work as it does at object level?Any help is much appreciated! I am really lacking in maths knowledge here and would appreciate anyone weighing in with their thoughts.Files attached Thanks! interiorMapping.rar Edited December 13, 2013 by EwanW Quote Link to comment Share on other sites More sharing options...
anim Posted December 13, 2013 Share Posted December 13, 2013 you can create orient quaternion attribute(or any name you want) on the geo prior to any deformation then use AttribReorient SOP to reorient it to new deformed geometry then just in shader orient your object space vector by inverse rotation of this orient attribute here is the file interiorMapping_v1_fix.hip 2 Quote Link to comment Share on other sites More sharing options...
EwanW Posted December 13, 2013 Author Share Posted December 13, 2013 Amazing thanks very much I think I understand the idea behind it roughly. Was trying to do something similar but in the very wrong way Do you have any recommended reading to understand this sort of thing? I can't really get my head around the idea of spaces and matrix transformations. Quote Link to comment Share on other sites More sharing options...
anim Posted December 13, 2013 Share Posted December 13, 2013 (edited) not really, I just got it slowly by practice, any kind of reading on matrices and spaces was too much for me before, maybe mostly because they try to explain all the equations while I just needed the concepts since Houdini does math for me, now it's much easier but I would like to find some nice material on this topic as well Edited December 13, 2013 by anim Quote Link to comment Share on other sites More sharing options...
EwanW Posted December 13, 2013 Author Share Posted December 13, 2013 Thanks for taking the time to post anyway. The best and simplest thing I found was a post by Andy Nichloas. Would like more of this sort of thing really.. http://www.andynicholas.com/?p=911 Quote Link to comment Share on other sites More sharing options...
anim Posted December 13, 2013 Share Posted December 13, 2013 that would be nice, but something that goes beyond basic vectors and matrix transforms Quote Link to comment Share on other sites More sharing options...
sl0throp Posted December 14, 2013 Share Posted December 14, 2013 Just a thanks from over here for this as well. Quote Link to comment Share on other sites More sharing options...
vinyvince Posted March 1, 2020 Share Posted March 1, 2020 Hi guys Wanted to study your parallaw mapping method but it have errors when opening the file and no result. Did i miss something , or just non compatible with 17.5 or 18? Thanks Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted March 1, 2020 Share Posted March 1, 2020 1 hour ago, vinyvince said: Did i miss something , or just non compatible with 17.5 or 18? It still works with Houdini 18. Make sure to download and extract the rar-file from the initial post. Next dive inside the interiormapping2 shop node and set the color map node to the Atlas01.jpg from the extracted folder. 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.