Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

ofxSpatialHash neighbor lookup for multiple particles

$
0
0

@qat wrote:

Hi, I am trying to adapt the ofxSpatialHash add-on to work with a particle system, instead of one particle. Was this an intended use of the project? Here is a link to my class. https://pastebin.com/jLr99NNW. I am getting errors that I mostly understand in the KD-tree code, but my sense is that I shouldn’t be changing the KD-tree anyways, so something else is causing the issue. I would be really ecstatic to have some help with this.

KDTree.h:286:16: No viable conversion from returned value of type ‘ofApp::Particles::Particle’ to function return type ‘float’
KDTree.h:268:51: Invalid operands to binary expression (‘float’ and ‘ofApp::Particles::Particle’)

(to clarify, I sort of understand what these errors are saying, but since they are in the actual kd-tree class I don’t think I should be changing anything there).

@bakercp

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles