Jump to content


  • Content count

  • Donations

    0.00 CAD 
  • Joined

  • Last visited

Community Reputation

6 Neutral

About GeordieM

  • Rank

Personal Information

  • Name
  • Location
  1. So this is a focus related issue but haven't worked out a good callback to use. But have worked out a slightly dodgy solution. Instead of inheriting from QWebEngineView directly I inherit from QWidget and then add a QWebEngineView. I then listen for the timerEvent event on the python panel and call QWebEngineView.update() every 0.5 seconds. This works well but probably not the best solution.
  2. Small update, I can get WebEngineView to start updating by calling: self.resize(self.width()-1, self.width()-1) self.resize(self.width(), self.width()) Here my class inherits from QtWebEngineWidgets.QWebEngineView. BUT as soon as the mouse enters the QWebEngineView control it freezes again.
  3. Hi all, I'm creating a python panel tool with a web front end. I've successfully put a Qt WebEngineView in a Python panel, but when the panel is hidden and displayed again (ie switching tabs in Houdini UI) the main loop of WebEngineView seems to pause. Any animations stop and all mouse/keyboard interaction stops. If I resize the panel it will recover most of the time. I assume I have to call something on WebEngineView when then the python panel onActivateInterface() is called but I can't see anything obvious in the Qt docs http://doc.qt.io/qt-5/qml-qtwebengine-webengineview.html#WebAction-prop PS: I'm on Win 10. Anyone solved this before? TNKS! G
  4. Try exposing each component element of a float3 parm out as a separate float parm and see if that makes a difference. I have experience with other engines and Houdini engine but not Unity but this helped in my experience. Also I'd suggest just creating a UI debug OTL and start with the simple UI like ints and floats then add different parm types and test in Unity every time you add one. G
  5. ForEach SOP loop over point groups

    Had some more problems but sorted them out: 1. I'd deleted and re-added the Each SOP which had nuked it's connections to the ForEeach SOP 2. had hou.node("..").stampValue("FORVALUE", 0) instead of hou.node("..").stampValue("FORVALUE", "") which was forcing the output to 0. TNKS! G
  6. ForEach SOP loop over point groups

    Thanks! Arrg missed that check box
  7. Hi all, I have point data that doesn't have any primitives but it's partitioned into groups. I'd like the ForEach SOP to loop once per group. I've seen examples of this working for primitive groups: http://forums.odforce.net/topic/15277-how-to-access-the-iterating-group-inside-foreach-sop/ But I can't get it to work for point groups. Any suggestions? Thanks! G
  8. Ambient Occlusion SOP and/or ray casting in VEX

    As usual I find the answer just after I post something. Intersect() VEX...
  9. Hi all, I'm writing tools to extract data from a mesh and I need to calculate AO per point. I know how to calc the AO but I can't see any built in VEX functions that allow ray casting in the SOP context. FastShadow() would be perfect but won't work in SOP VEX. I've written my own ray/triangle hit test in vex which works but probably not the fastest way to do. Also are there any built in SOPs that can create per point AO that I might have missed? TNKS! G
  10. Haha so many colleagues So the Ray sop did the trick. I wanted to avoid adding the attribs directly to the VDB since it dubes the whole volume per attrib and I might need 15 or so attribs. I post an example file when I'm done. G
  11. TL;DR: How do I transfer/create attributes from geo faces & points to VDB to a point cloud? Hi all, I'm working on some vegetation scatter tech on poly objects. The problem is the input poly objects are non manifold and I need to cull the intersecting areas so vegetation is scattered only on the external surfaces. This is my currently work flow: Input Geo -> Poly Cap -> Convert to VDB = Input Geo -> Poly Cap -> Convert to VDB => Merge VDBs -> Scatter points on VDB for vegetation Apart from the poly cap not being the best this works pretty well until I want to create attributes for the vegetation, some need to be sourced from the input Geo and some need to be generated. What I was hoping to do was generate a point cloud from the VDB, then populated it with data and cache it to disk so I could do fast lookups on the data whenever I needed to spawn vegetation: -> Input VDB, process volumes, write data to point cloud Merge VDBs -> Scatter point ----------------------------------------------------> Sample data from point cloud The most simple example is I want an attribute present in the VDB/ point cloud identifying which areas were created with the poly cap so I know not to spawn points there as these would always be the back sides of the input geo. I've seen in the Polygon to VDB you can create attributes, and I can see it's created a VDB for each attrib, but how to i visualize this in any way? The Geometry Spread Sheet doesn't have a volume mode and I can't seem to get volume visualization SOP to do anything. What I want is something like how the scatter SOP works where it interpolates point attribs across a polygon and assigns the interpolated value to the scatter points, but for polygon -> VDB. Also, should I be skipping adding attribs to the VDB and assigning them directly to the point cloud? is there a better way of doing this whole thing? Thanks! G
  12. Sorry yeah forgot that, but am doing that correctly in my other hip file, 'll clean it up and post it soon
  13. Coolz, I wanted to do what I just uploaded but can't get to work with my specific example so must be something else going wrong...
  14. OK magnito I got you simple example working, I must be doing something weird in the other test I was making. There's a detail attrib called maxCount, set that to the max number of loops... TNKS! G foreachstop_working.hip
  15. Did anyone ever get this working?