Jump to content

Trying to create a vray procedural


Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...