sant0s81 Posted October 21, 2020 Share Posted October 21, 2020 Hey, I have a two pictures of a cave, the side view and the top view and I want to have a rough 3D version of that. So actually combining the two curves with the shape that I see on the side and top view. In softimage I would have animated a NULL along the curves to plot a new curve and get the 3D version of the 2D graphics. My thoughts in Houdini are: First I match the side view curves (the ceilling and the floor curve) along the curve of the top view, but only on x-axis and z-axis to keep the Y positions. Than I extrude the Output Front and the Output Back to the height of the two side curves. Is that possible? Thx alot, sant0s cave.hiplc Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted October 21, 2020 Share Posted October 21, 2020 It's called space carving: 1 Quote Link to comment Share on other sites More sharing options...
sant0s81 Posted October 21, 2020 Author Share Posted October 21, 2020 Thx @konstantin magnus What if I dont have the front? Can I somehow exclude the code or just fake something? Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted October 21, 2020 Share Posted October 21, 2020 Sure, probably like this: vector bbox = relbbox(0, v@P); float mask_side = vector(colormap(image_side, bbox.z, bbox.y)).x; float mask_top = vector(colormap(image_top, bbox.x, bbox.z)).x; f@density = min(mask_side, mask_top); Quote Link to comment Share on other sites More sharing options...
sant0s81 Posted October 21, 2020 Author Share Posted October 21, 2020 (edited) @konstantin magnus I was trying a bit - but somehow I get very strange results. Do you think, its because of the pictures? The front image I tried to build from screenshot since I didnt manage to put in you last code Or are the images to filigran? I am using these images: Edited October 21, 2020 by sant0s81 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.