Search - User list
Full Version: point wrangle node problem(of procedural oil painting tut)
Root » Houdini Indie and Apprentice » point wrangle node problem(of procedural oil painting tut)
Ali_Azam
Hello everyone,
I'm new to Houdini world, I've been following a tutorial of "Junichiro Horikawa", the procedural oil painting .

first part of the project includes bringing an image into comp using a cop2net, then convert it to polygons, process it into points and primitives, then clusters, extracting the outline of clusters using attribWrangle. creating a bbox_size attribWrangle node as well.
while he used compositing node (cop2net) to import the image and scale it, then converted it to polygon, I used a different approach from other tutorial to create a grid then use (attribFromMap)to copy the image over the grid.

second he creates contour lines filling each outline edge, using point distance from outline edge inside each cluster to move the points up the y axis, creating gradual elevations according to distance value.


so he applies pointWrangle using "xyzdist" function with the script :
"float dist = xyzdist(1, @P);

@P.y = dist;"


Problem:
this last node doesn't work, no elevations are created.

any idea what could be the problem ?

tutorial link :
https://www.youtube.com/watch?v=SRHxqlAthi4 [www.youtube.com]
tamte
it's difficult to see from screenshot, but it's very likely that your outline curves are closed polygons
and therefore xyzdist() will return 0 everywhere as it will measure distance to that surface and not just to it's outline curve

try inserting Ends SOP before your outline1 node
- set Close U to Unroll With Shared Points
Ali_Azam
tamte
it's difficult to see from screenshot, but it's very likely that your outline curves are closed polygons
and therefore xyzdist() will return 0 everywhere as it will measure distance to that surface and not just to it's outline curve

try inserting Ends SOP before your outline1 node
- set Close U to Unroll With Shared Points

Thank you, sorry for the messy arrangement of the nodes in the screenshot. I inserted Ends SOP as you suggested, it didn't work as well.

It turned out the mistake was that a Convert SOP should have been added right after (AttribFromMap) node, converting to polygons, while I somehow added AttribBlur SOP between them.
Ali_Azam
I went through the tutorial, used cop2net as well, there is different outcome between compositing node (with scale to friction) and attrib from map node over a grid(with rows and columns corresponding to image resolution, scaled by multiplying both with a float).
tamte
the differences can be caused by many factors, filtering, color space, sampling positions etc

if you are looking for more specific answers post a hipfile instead of screenshots
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB