Found 206 posts.
Search results Show results as topic list.
Technical Discussion » Attribute Wrangle in LOPs
- alexwheezy
- 209 posts
- Online
Technical Discussion » Python Callback Error
- alexwheezy
- 209 posts
- Online
cvsline
'E:/Material for work/SipiLib HDA's/sipiLib-main/otls/sipi-vectornoise-1.0.0.hda'
In python, strings are usually enclosed in single or double quotes and their number must be balanced. The script finds another single quote in your HDA's path that is in no way unbalanced. If possible, it is better not to use special characters in the path at all, including whatespaces, and replace them either with underscores or dashes.
Houdini Lounge » Houdini 20 Sop Network Dependency Problem?
- alexwheezy
- 209 posts
- Online
Technical Discussion » hou.ui.readInput() Only output zero at the first tuple
- alexwheezy
- 209 posts
- Online
As it follows from the documentation: The integer is the index of the pressed button.
This is necessary for those cases when you have more than one button by default the button argument is 'OK', if you make a tuple containing more than one button it will return the corresponding index.
This is necessary for those cases when you have more than one button by default the button argument is 'OK', if you make a tuple containing more than one button it will return the corresponding index.
Technical Discussion » Why is it Wrong typing "v@P += (0,@mask*3,0); "?
- alexwheezy
- 209 posts
- Online
jackdon4682
And I've noticed that claiming a vector should use {} instead of ()
Yes, this form only works with literal constants. Trying to use something else will cause an error.
Technical Discussion » Why is it Wrong typing "v@P += (0,@mask*3,0); "?
- alexwheezy
- 209 posts
- Online
The first option will create the value of only the last element. You can check this if you write, for example,
You can see that the remaining elements have no effect on the expression.
To make it work as a vector you need to change the example a little.
v@P += (0,@mask*3,10);
To make it work as a vector you need to change the example a little.
v@P += set(0,@mask*3,10);
Houdini Indie and Apprentice » Best practices for tweaking simulations?
- alexwheezy
- 209 posts
- Online
gordig
I'm not sure what you mean by "binary search".
The binary search mentioned above is a way of solving a problem where you don't know the end result, you start dividing the original range in half and search for the parameter value in each part recursively until you find it. For example your range of values can be from 0 to 100 and after dividing it in half you can search for the desired parameter value either from 0..50 or 50..100 and keep dividing each range again until you are satisfied with the final result.
Technical Discussion » OpenCL QuadTree for N body optimisation
- alexwheezy
- 209 posts
- Online
Hi,
Houdini is not open source software so you won't find detailed documentation on how a feature is implemented, we can only guess or when the developers themselves can share it. We can only use official documentation and use cases in HDA, header files, etc. Perhaps you should watch official masterclasses on this subject.
Before you try to implement everything from scratch it is always worth looking for a ready-made solution who has already tried to do it before you. Here is a rather interesting implementation using OpenCL and optimisations to speed up the process.
nbody [github.com]
And lastly, always before you have a desire to rewrite something on OpenCL it is better to do performance profiling and really make sure that you have done everything possible to make some function work fast enough, sometimes even a simple algorithm change is enough.
3dsmile.cg
Firstly, I couldn't find any documentation on how the OpenCL implemented in Houdini, maybe i missed something?
Houdini is not open source software so you won't find detailed documentation on how a feature is implemented, we can only guess or when the developers themselves can share it. We can only use official documentation and use cases in HDA, header files, etc. Perhaps you should watch official masterclasses on this subject.
3dsmile.cg
Secondly, as far as I ubderstand, to create a QuadTree, I need to declare a certain datastructure for a node in the tree, and it needs to hold an array of points.
Before you try to implement everything from scratch it is always worth looking for a ready-made solution who has already tried to do it before you. Here is a rather interesting implementation using OpenCL and optimisations to speed up the process.
nbody [github.com]
And lastly, always before you have a desire to rewrite something on OpenCL it is better to do performance profiling and really make sure that you have done everything possible to make some function work fast enough, sometimes even a simple algorithm change is enough.
Technical Discussion » Batch converting .exr to .rart with tops
- alexwheezy
- 209 posts
- Online
iconvert does not know how to create intermediate directories during file processing, so you need to create a directory in advance where the output files will be saved.
Technical Discussion » read an attribute name
- alexwheezy
- 209 posts
- Online
animatrix_Gerardo Castellanos
@BabaJ, ok, thanks for your answer
@ObeidaZakzak ... ohh good to know, thanks a lot!
I also recommend using the Bindings tab if you can, as using any of the point/prim/vertex functions, you will take a severe performance hit over direct attribute binding, even if you are just reading from the current element.
A lot of people in production are not aware of this.
I've never done performance tests for this, but how much slower is it? I think few people know about this feature because few people talk about it at all in their lessons. It is easier for artists to call the appropriate function.
Technical Discussion » VEX: Is there a short way to specify return type of point()?
- alexwheezy
- 209 posts
- Online
There really is a difference between them, the first form of vector() is essentially a constructor for creating an object of type vector, the second entry of the form (vector) performs an implicit type cast to a vector, which will not work in this expression since we need to explicitly indicate what type it returns point function.
Technical Discussion » VEX: Is there a short way to specify return type of point()?
- alexwheezy
- 209 posts
- Online
Technical Discussion » read an attribute name
- alexwheezy
- 209 posts
- Online
There's no need for backticks or double quotes.
string maskAttribute = chs("../attrMask");
PDG/TOPs » usdImportData is converting floats to ints
- alexwheezy
- 209 posts
- Online
Houdini Indie and Apprentice » Finding the source code or how the minpos function works
- alexwheezy
- 209 posts
- Online
PDG/TOPs » usdImportData is converting floats to ints
- alexwheezy
- 209 posts
- Online
PDG/TOPs » File pattern - Specific files selection
- alexwheezy
- 209 posts
- Online
Why not use the Labs Filter by Value node itself as a control node? It seems that so far there is no problem to replace it.
All I've changed here is a setting in the asset that allows you to select files on disk rather than populate a line, then you don't have to create a new layer of data indirection and avoid the hassle of writing code.
All I've changed here is a setting in the asset that allows you to select files on disk rather than populate a line, then you don't have to create a new layer of data indirection and avoid the hassle of writing code.
Edited by alexwheezy - March 24, 2024 01:22:24
PDG/TOPs » File pattern - Specific files selection
- alexwheezy
- 209 posts
- Online
The File Pattern node knows how to create attributes from a path such as directory, filename, extension.
https://www.sidefx.com/docs/houdini/nodes/top/filepattern.html [www.sidefx.com]
https://www.sidefx.com/docs/houdini/nodes/top/filepattern.html [www.sidefx.com]
PDG/TOPs » File pattern - Specific files selection
- alexwheezy
- 209 posts
- Online
Then we can consider 2 more options to solve this problem.
Use Filter by Attribute or Labs Filter by Value, which is actually written in Python Script.
https://www.sidefx.com/docs/houdini/nodes/top/labs--filter_by_value-1.1.html [www.sidefx.com]
Use Filter by Attribute or Labs Filter by Value, which is actually written in Python Script.
https://www.sidefx.com/docs/houdini/nodes/top/labs--filter_by_value-1.1.html [www.sidefx.com]
Technical Discussion » xform from orient, P and scale (vex)
- alexwheezy
- 209 posts
- Online
You might be looking for this:
https://www.sidefx.com/docs/houdini/vex/functions/instance.html [www.sidefx.com]
https://www.sidefx.com/docs/houdini/vex/functions/instance.html [www.sidefx.com]
-
- Quick Links