パイプラインのワークフローの管理に Task Operator (TOP) を利用することができます。TOPは PDG (Procedural Dependency Graph) と呼ばれるテクノロジを使って構築されています。PDG に基づいて作成されたワークフローで使用される TOP ノードは、ローカルコンピュータまたは大規模なコンピュートファームにタスクを分散させるワークアイテムを生成します。

TOP ネットワークでは、各ワークアイテムが他のワークアイテムにどのように依存しているかや、各ワークアイテムが最終出力にどのように貢献するかを確認することができます。この情報はノードグラフとして容易に視覚化できます。ノードグラフを使えば、ネットワーク内でのデータフローを定義できます。TOP を使えば、パイプラインの自動化、分析、およびスケールに使用可能なワークフローをビルドすることができます。

このレッスンでは、TOP ノードを使って都市マップを取得し、都市区画ごとにビルを作成した後、このシステムを拡張してより複雑なビルや大規模な都市マップを処理できるようにします。Houdini のアーティストであればおそらく、SOP でこれを行う方法を知っていると思いますが、TOP を使えば、PDG のワークフローを学びながら、並列処理の対象となる複数のタスクを外部のコンピュートファームに分散させるように容易にスケール可能なシステムを作成することができます。


  • プロシージャルな都市を構築した後、それをレンダーするような TOP(Task Operator)ネットワークを作成すること

  • 都市マップイメージをジオメトリに変換する方法
  • 都市区画を保存する TOP ネットワークのセットアップ方法
  • 各都市区画上にビルを構築するために TOP でジオメトリを作成する方法
  • 一部のビルを他のビルより高くするために都市中心部を作成する方法
  • 都市中心部のさまざまな位置を試すために都市景観をウェッジする方法
  • さまざまなマップイメージの使用をウェッジする方法
  • TOP を使って都市をレンダーし、イメージモザイクを使ってウェッジを比較する方法

注: このレッスンでは Image Magick を使用します。このアプリケーションがコンピュータにインストールされていることを確認してください。



Robert Magee is a Senior Product Marketing Manager at SideFX who has been working with Houdini for over 15 years. He has created lots of learning material and demos designed to help artists understand how going procedural with Houdini can benefit their work.

More from Robert Magee


  • Cookie428 2 ヶ月, 1 週間 前  | 

    When I get to the create city grid hda step. It seems to error out. I don't know what I am doing wrong.

  • rmagee 2 ヶ月, 1 週間 前  | 

    Can you save your work so far and zip up your project directory and send it to me (rmagee@sidefx.com) and I will take a look.

  • FranciscoBravo 2 ヶ月, 1 週間 前  | 

    Hi, nice Tutorial thank you very much. But I am having a problem at the end with the imagemagick node the next error appears every time I try to cook it:

    Workitem imagemagick10_5 failed
    Workitem imagemagick10_5 failed

    Do you know what might be the problem?

    • rmagee 2 ヶ月, 1 週間 前  | 

      Do you have Image Magick installed? If so then please send me your project files zipped up and I can look into it for you.

  • aperry 2 ヶ月, 1 週間 前  | 

    Is anyone else having the issue where the create_buildings ROP geometry output doesn't write any files? I've fiddled around with the settings a lot but I'm not getting anything from this node in the geo directory. I've checked the output path is correct.

    • rmagee 2 ヶ月, 1 週間 前  | 

      Did you TURN OFF the Use External SOP option on that node? I had that issue when I was testing the tutorial - it says to do it in Part 4 step 1 but I missed that step anyway.

    • JoachimPaul 2 ヶ月, 1 週間 前  | 

      i guess it's part 01 on page 05
      "Set Work Item Generation to Dynamic"
      Thats what i missed.

  • HoudiniUser2 2 ヶ月, 1 週間 前  | 

    Hi, thanks for the tutorial. Awesome technology, but ...

    I am following this tutorial to the point of cooking the HDA Processor. The work item display turns red with no further error messages. Just saying: "failed 1" in the info box.

    I tried the same thing with a new file and an example from the side/fx website ("example_top_hdaprocessor")and got the same result. The node cooked,, the work items display became green as normal and short before finishing changed to red.

    Is the Apprentice version of Houdini unable to work with HDA's in the TOP HDA Processor?

    • rmagee 2 ヶ月, 1 週間 前  | 

      There are lots of little gotchas when working through PDG. I would need to see your network to see how to fix things. I know that all the required steps are in the tutorial but sometimes it is easy to skip one of them.

      • HoudiniUser2 2 ヶ月, 1 週間 前  | 

        The tutorial should be compatibel with Houdini Apprentice but sadly it is not.

        Here is the error log:

        ['/Applications/Houdini/Houdini17.5.173/Frameworks/Houdini.framework/Versions/Current/Resources/bin/HDAProcessor', '/Users/Uli/Desktop/tops_lesson_start/pdgtemp/54028', '/Users/Uli/Desktop/tops_lesson_start', 'hdaprocessor10_3']
        Returned error code 1:

        hda name: /Users/Uli/Desktop/tops_lesson_start/hda/Uli_test2.hdanc
        operatortype: Sop/Uli_test2

        Could not load /Users/Uli/Desktop/tops_lesson_start/pdgtemp/54028/Uli_test2.hdanc
        HAPI Error: No Valid Licenses Found
        - HAPI_LICENSE_MODE unset or is set to 'default' meaning Houdini Engine will first try to acquire a Houdini Engine license and if one is not found it will try to acquire an interactive Houdini license (Houdini Core then Houdini FX).
        - No Houdini Engine license found.
        - No Houdini license.
        - Found a Houdini FX (Houdini Master) license but it is not the required commercial variant.
        - No Houdini Engine Indie license found.
        - No Houdini Indie license.

  • Mjag007 2 ヶ月, 1 週間 前  | 

    I'm also running into an issue. It will cook fine and the small city looks great. But when you go back and adjust the height settings and recook. You end up with one messed up building.

    • rmagee 2 ヶ月, 1 週間 前  | 

      Please check your viewer path - if it is pointing to inside the ropgeometry top then things will look strange - go back to the object level and click on a work item - should fix things.

  • rmagee 2 ヶ月, 1 週間 前  | 

    It is supposed to work in Apprentice. It should be looking for the Apprentice license. I have forwarded your message to R&D for review.

  • 3clipse 2 ヶ月, 1 週間 前  | 

    Hi Robert

    Tks for the tut very nice so far... clarification required though.

    In Part 6 - 03 you say to edit the attributecreate node but the associated image shows the change being made ( + @Cd.g*30) in the building _height node?

    Which is it...


    • rmagee 2 ヶ月, 1 週間 前  | 

      It could go both places but the attributecreaye node is better for steps down the line. Must be an old screen grab when I tried the other way.

      • 3clipse 2 ヶ月, 1 週間 前  | 

        k tks... I went the other way so will go back and change that... :)

  • 3clipse 2 ヶ月, 1 週間 前  | 

    Hi Robert

    Another question in Part 8 when converting to hda. I get an error node to convert deleted! On the forums I discovered a post for this error message where Michael Goldfarb advised to shift c (subnet) and then create the HDA from there... I am familiar with creating digital assets this way do you see any problems doing that here?

    • 3clipse 2 ヶ月, 1 週間 前  | 

      Yeah that didn't work (and neither have another half dozen attempts of various things) I am almost certain that it is a pathing issue... anyway I will keep trying

      • Luiz_Lobato 2 ヶ月, 1 週間 前  | 

        It's needed to press shift+C to convert the selected nodes to a subnet first. After this, you can create the HDA.

  • kenxu 2 ヶ月, 1 週間 前  | 

    Houdini Engine is not available for Apprentice - that is why HDA Processors will not work in Apprentice. You could use the ROP Geometry node to achieve basically the same thing, however.

    • Valent 1 ヶ月, 3 週間 前  | 

      Hi, could you please explain what setting should I use in the ROP Geometry to be able to use it instead of HDA Processor?

  • FrancisGagne 2 ヶ月, 1 週間 前  | 

    Hi Robert,

    I cook all the building & i try to figured it out why the height variation doesn't distribute randomly.
    All my building have the same height.

    Thank you, Francis!

  • Luiz_Lobato 2 ヶ月, 1 週間 前  | 

    It's needed to press shift+C to convert the selected nodes to a subnet first. After this, you can create the HDA.

  • twelveplusplus 2 ヶ月 前  | 

    Thanks, Robert, for continuing to release quality printed/pdf material! Some of us get way more value from print than video!

    I would love more advanced material, too. A Vex wrangle/python cookbook would be extremely useful! Much easier to follow than a youtube video, etc.

    Also, a monthly Houdini Zine would be ***super awesome***! Just a couple of pages with tips and tricks. Maybe a bit of coverage for featured artwork, games, animation, etc.

    A little zine might be a good way to keep people up to speed with current trends, too...
    Development trends change quickly. A regular zine could be a way for literate Houdini users to stay hip.

    ...I'll see my self out, now. :D

  • twelveplusplus 2 ヶ月 前  | 

    oh, and love image magick, too! All the best picture processing algorithms for freeee!! Besides which, it makes a mean animated gif!

  • kumpa 2 ヶ月 前  | 

    Thank you for reconsidering making tutorials in PDF as video tutorials are often too stretched and narrator might not be everyone's cup of tea.

  • nastyatupitsyna 2 ヶ月 前  | 

    Hi, can you please send the file scene to the nastyatupitsyna@gmail.com?

  • borbs727 1 ヶ月, 3 週間 前  | 

    Part 5-2 isn't merging the entire city for me. Sending scene file.

  • borbs727 1 ヶ月, 3 週間 前  | 

    I should elaborate that it is creating a merged geo file, its just not displaying in my viewport. I still only see individual buildings.

  • borbs727 1 ヶ月, 3 週間 前  | 

    Never mind! I didn't click the work item in the import node.

  • Mjag007 1 ヶ月, 3 週間 前  | 

    Its working now, No idea what I did wrong

  • 2b65d3d0a8c04862 1 ヶ月, 2 週間 前  | 

    Hello , I just want to know where I can download the citymap like this?

    • 2b65d3d0a8c04862 1 ヶ月, 2 週間 前  | 

      I mean the citygrid

  • 2b65d3d0a8c04862 1 ヶ月, 2 週間 前  | 

    Hello,where can I download the citygrid,thanks

    • rmagee 1 ヶ月, 2 週間 前  | 

      The download scene files button above has the city grid in the Tex folder.

  • thirdworldman 1 ヶ月, 2 週間 前  | 

    After cooking the building_merge node, I'm not seeing the entire city -- only single buildings. Any help would be appreciated!

    • thirdworldman 1 ヶ月, 2 週間 前  | 

      Nevermind - I'm an idiot!

  • thirdworldman 1 ヶ月, 2 週間 前  | 

    Ok, I'm now stuck on city center adjustment based on the sphere. In the attributestransfer node, you wrote to "set primitives to Cd". Is that the correct value? I got an error when I typed this into the primitives field, and then changed it to `@Cd.` Is that correct?

    • rmagee 1 ヶ月, 2 週間 前  | 

      Make sure both the color nodes are pointing to primitives. One of them might still be assigning color to points.

  • thirdworldman 1 ヶ月, 2 週間 前  | 

    Thank you for your response. Unfortunately, the sphere still isn't affecting the height of buildings within it's radius. Any other thoughts?

    • rmagee 1 ヶ月, 2 週間 前  | 

      I'd have to see the scene file - I added my email earlier in this thread - if you wrap it up then I can take a look.

  • thirdworldman 1 ヶ月, 2 週間 前  | 

    Got it! Nevermind. I keep forgetting to hit the green circle!

  • nickryan 1 ヶ月, 2 週間 前  | 

    I have run into a problem when trying to read the '@pdg_output' on the work_item_viewer node (PC) - I get an error -
    Unable to read file "'@pdg_output'".
    GeometryIO[hjson]: Unable to open file ''@pdg_output''
    GeometryIO[hclassic]: Unable to open file ''@pdg_output''

  • EmmanuelHoudini 1 ヶ月, 2 週間 前  | 

    Hi, nice tutorial but i have a problem to cook a "create_buildings" when i cook all the point are red and not green. Another problem, when i see the buildings "attributecreate1" all buildings appear on -Y. I don't know what's wrong. Thank you.

  • nickryan 1 ヶ月, 1 週間 前  | 


    I am very new to Houdini and probably missing something fundamentally simple in the setup, but have retraced steps meticulously to no avail - stumbling at pointing the file node to '@pdg_output' still - It seems to be a path or Drive letter thing - it is fine if I point it directly to the bgeo files but not by expression....

    Any ideas?


  • rmagee 1 ヶ月, 1 週間 前  | 

    Be sure to use back ticks not single quotes

  • nickryan 1 ヶ月, 1 週間 前  | 

    Thanks Robert....I was indeed missing that fundamental key stroke - I never knew it even existed!!!

  • cookieclarke 1 ヶ月 前  | 

    Hi Robert.
    Awesome lesson and format. Thanks heaps.
    Im hoping you could shed some light on why I lose my city_01_geometryimport file sequence in the file in "work_item_viewer", every time I close and re open my scene file?
    Actually it seems that when ever I dive into ROP geometry output I lose my city completely. I managed to finish part 5 successfully but went into change the color of windows, then i lost my city. Is it a matter of cooking again?

Please log in to leave a comment.