mikelyndon Posted March 9, 2011 Share Posted March 9, 2011 Hey guys, I've been trying to create my own particle instancer. I've been using both Mark and Peter's code as reference but I'm running into a couple of problems. I've tried to separate the child procedural into separate files but I'm getting these errors: VRAY_ParticlePower.C: In member function ‘virtual void VRAY_ParticlePower::render()’: VRAY_ParticlePower.C:228: error: cannot allocate an object of abstract type ‘VRAY_ParticlePowerChild’ VRAY_ParticlePowerChild.h:10: note: because the following virtual functions are pure within ‘VRAY_ParticlePowerChild’: /Library/Frameworks/Houdini.framework/Resources/toolkit/include/VRAY/VRAY_Procedural.h:149: note: virtual int VRAY_Procedural::initialize(const UT_BoundingBox*) I don't enough to debug this problem or what I should be looking for. Any help would be greatly appreciated. I've attached my source code. Thanks Mike PP.zip Quote Link to comment Share on other sites More sharing options...
thefreeman Posted March 9, 2011 Share Posted March 9, 2011 Hey guys, I've been trying to create my own particle instancer. I've been using both Mark and Peter's code as reference but I'm running into a couple of problems. I've tried to separate the child procedural into separate files but I'm getting these errors: VRAY_ParticlePower.C: In member function ‘virtual void VRAY_ParticlePower::render()’: VRAY_ParticlePower.C:228: error: cannot allocate an object of abstract type ‘VRAY_ParticlePowerChild’ VRAY_ParticlePowerChild.h:10: note: because the following virtual functions are pure within ‘VRAY_ParticlePowerChild’: /Library/Frameworks/Houdini.framework/Resources/toolkit/include/VRAY/VRAY_Procedural.h:149: note: virtual int VRAY_Procedural::initialize(const UT_BoundingBox*) I don't enough to debug this problem or what I should be looking for. Any help would be greatly appreciated. I've attached my source code. Thanks Mike Hey Mike, looks like you have a typo in VRAY_ParticlePowerChild.h, in the file you have "intialiaze" instead of "initialize" There are some more errors after that, that appear to just require you to include more header files. Quote Link to comment Share on other sites More sharing options...
mikelyndon Posted March 9, 2011 Author Share Posted March 9, 2011 Thanks Morné. My bleary eyes weren't seeing straight at 1 in the morning. Mike Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.