There seems to be Python package [unidata.github.io] which might be your best option without diving into C++.
Houdini Python module inside PythonSOP allows you to create volume primitive via hou.Gometry.createVolume(), which further on allows you to set all voxels value via setAllVoxelsFromString(). You can feed it with binary string taken from numpy array, which - from a brief look into docs - can be provided by netcdf4-python.
Also Houdini used to support HDF5 format, which is currently standard container for netcdf files. Not sure how it'd behave on trying to import it directly though.
I'm not sure what kind of data you're trying to use, but Excel might be little intimidated with volume of data typical for HDF5 files…
Found 1209 posts.
Search results Show results as topic list.
Technical Discussion » Import NetCDF (.nc) file?
- symek
- 1390 posts
- Offline
Houdini Lounge » Biharmonic Point Deform SOP
- symek
- 1390 posts
- Offline
Technical Discussion » Anyone know how to use 'Houdini Engine Procedural: Point Generate'?
Technical Discussion » HDK: a few questions
- symek
- 1390 posts
- Offline
mootzoid
1. How can one determine whether Houdini is running in interactive mode (i.e. with the UI) or in batch mode?
#include<HOM/HOM_Module.h> ... HOM_Module &hou = HOM(); if (hou.isUIAvailable()) ...
Technical Discussion » generate millions particles at rendertime
- symek
- 1390 posts
- Offline
Modern version of point replicate procedural is HEngine: Point Generation
http://www.sidefx.com/docs/houdini/nodes/vop/enginepointgen [www.sidefx.com]
http://www.sidefx.com/docs/houdini/nodes/vop/enginepointgen [www.sidefx.com]
Technical Discussion » One frame per CPU core?
- symek
- 1390 posts
- Offline
You probably won't see any advantage nowadays in raytrace nor PBR mode (due to its almost perfect threading). Micropolygon may run faster (it definitely used to).
Houdini Lounge » SOS
- symek
- 1390 posts
- Offline
At some point every good software has to obsolete some features to make room for a new one. Having a courage to that and go forward is the signature of great developers. Shell I mention by name an opposite examples in our industry?
It is funny that it's usually easier to expect our tools change to accommodate our needs, than us to accommodate to those changes…
Frankly speaking it took me a year to get used to wranglers, leaving behind a temptation to put $variables everywhere, 15 years of muscle memory, but those changes are totally worth an effort.
It is funny that it's usually easier to expect our tools change to accommodate our needs, than us to accommodate to those changes…
Frankly speaking it took me a year to get used to wranglers, leaving behind a temptation to put $variables everywhere, 15 years of muscle memory, but those changes are totally worth an effort.
Houdini Lounge » Real-Time Graphics in Pixar Film Production
- symek
- 1390 posts
- Offline
Interestingly enough, new release of Metal form Apple is already supporting USD geometry . It can have bigger impact, than just film industry.
Technical Discussion » Min/Max values of a COP
- symek
- 1390 posts
- Offline
You could use Image Chop [sidefx.com] and MathChop to get min/max values from an image or use Python and numpy:
but if the only objective is to check whether a channel is constant or not, you could use GradientCOP (normalize on), and ScaleCOP set to 2x2 pixels and point filter (or box would be saver?). You have 4 pixels in total. Any non constant image will have at least one pixel non-black. All black == image was constant.
node = hou.node("/img/comp1/file1") pixels = numpy.frombuffer(node).allPixelsAsString("C"), dtype=numpy.float32).reshape(node.xRes(), node.yRes(), 3).copy() pixels.min() pixels.max()
but if the only objective is to check whether a channel is constant or not, you could use GradientCOP (normalize on), and ScaleCOP set to 2x2 pixels and point filter (or box would be saver?). You have 4 pixels in total. Any non constant image will have at least one pixel non-black. All black == image was constant.
Edited by symek - 2016年8月30日 05:58:11
Technical Discussion » OIIO support?
- symek
- 1390 posts
- Offline
Nope, it doesn't. I think that would require dropping Houdini's own image dso to avoid library clashing.
I imagine Mantra texture subsystem could support natively tiled EXR as a minimal consensus. Last time I've checked any non-RAT file is silently converted to RAT on load. RAT texturing used to be years ahead of many renderers' one, it would be a pity to drop it.
btw, does OIIO cache localize textures per tile when they drop-off the RAM quota?
I imagine Mantra texture subsystem could support natively tiled EXR as a minimal consensus. Last time I've checked any non-RAT file is silently converted to RAT on load. RAT texturing used to be years ahead of many renderers' one, it would be a pity to drop it.
btw, does OIIO cache localize textures per tile when they drop-off the RAM quota?
Technical Discussion » 15.5.480 -unable to compile toolkit/samples/field3d
- symek
- 1390 posts
- Offline
which g++
Houdini Lounge » Network Rendering with Backburner
- symek
- 1390 posts
- Offline
Anti-Distinctlyminty
Hi all,
Our network rendering manager is Backburner. I was looking into setting up Mantra rendering, but I can find absolutely nothing about this. Does anyone know if this is possible or if there are any resources out there concerning this?
It's definitely possible and not specially difficult, though requires some scripting. Rendering from Houdini is two step process.
1) Generate *.ifd files for mantra with hscript or hython or hrender script provided with Houdini.
2) Spawn mantra renders using previously generated ifd files.
Once you know these two commands you may send it to Backburner via batch command job (cmdjob.exe).
Some readings here [sidefx.com] and here [sidefx.com] and back burner specific here [codecg.com]
I kinda roll a peace of middleware [github.com] which theoretically should work with Houdini and Backburner, but neither Backburner nor Windows support was tested (honesty Windows branch was only touched, and was roughly tested with Nuke).
Edited by symek - 2016年7月21日 15:18:02
Technical Discussion » 15.5.480 -unable to compile toolkit/samples/field3d
- symek
- 1390 posts
- Offline
I'm not sure if Houdini 15.5 officially requires C++11 (probably not since 4.8 is first version fully compliant with it), but gcc 4.4 doesn't support nullptr for example. If I'm not mistaken gcc 4.6 is the oldest working version out of the box (at least for 15.0 it was true). You may try to tune gcc flags (like -std=c++11), but it's pure speculation. On the other hand CentOS6.8 should work with gcc 4.7 rather painlessly [access.redhat.com].
Technical Discussion » 15.5.480 -unable to compile toolkit/samples/field3d
- symek
- 1390 posts
- Offline
What Linux is it? Smells like complier issue (no c++11?) What version of gcc?
(it works fine on CentOS 7.1)
(it works fine on CentOS 7.1)
Technical Discussion » Creation of new custom Operator Type OTL/HDA using hython ?
- symek
- 1390 posts
- Offline
You mean like:
?
parent = hou.node("/obj") subnet = parent.createNode("subnet") subnet.createDigitalAsset(name="myAsset", hda_file_name="./myAsset.hda", ...)
?
Technical Discussion » HDK - Always cook node
- symek
- 1390 posts
- Offline
There are flags in OP_Node you can set to hint Houdini about cooking. The safest is probably:
- http://www.sidefx.com/docs/hdk15.5/_o_p___node_flags_8h_source.html [sidefx.com]
OP_Node::flags().setTimeDep(1);
- http://www.sidefx.com/docs/hdk15.5/_o_p___node_flags_8h_source.html [sidefx.com]
Edited by symek - 2016年7月19日 08:05:26
Houdini Lounge » DEM data to Houdini?
- symek
- 1390 posts
- Offline
jordibares
An optimised approach is the key to it of course, a bit like Vue where you never see the terrain in full resolution but a base rough resolution, then at render time it kicks the next levels as displacement.
I would love to have that kind of functionality right inside Houdini and apply geological filters like erosion, accumulation of debris, etc..
Could you specify briefly how such functionality / workflow inside SOPs should look like?
Work in Progress » C++ Wrangle: The Last Frontier In Custom Tool Development From Within Houdini
- symek
- 1390 posts
- Offline
I'm also disappointed with the lack of assembler
Is it a wrapper of Python SOP With inlineccp or something else?
Is it a wrapper of Python SOP With inlineccp or something else?
Technical Discussion » sin expression with gap ?
- symek
- 1390 posts
- Offline
if (sin($F) < 0, 0, sin($F)) ?
or if you regret double sin() evaluation
{ float s = sin($FF); if (s < 0) return 0; return s; }
although I don't believe it's a big issue here
…or clamp as mentioned bellow
Edited by symek - 2016年6月16日 11:39:20
Technical Discussion » Normal Booleans?
- symek
- 1390 posts
- Offline
-
- Quick Links