VideoPostData ExecutePixel/ExecuteLine



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 09/07/2004 at 14:01, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   8.206 
    Platform:      
    Language(s) :     C++  ;

    ---------
    Hi,
     
    I'm trying to override VideoPostData::Executpixel and VideoPostData::ExecuteLine, but for some reason the two functions are not being called at all.
     
    Is there some kind of flag I must set to make this work?
     
    My code

        
        
        
        
        class VideoPostTest:public VideoPostData  
        {  
        public:  
         static NodeData *Alloc(void) { return gNew VideoPostTest; }  
         virtual void ExecutePixel(PluginVideoPost *node, PixelPost *pp, LONG x, LONG subx, LONG suby);  
         virtual LONG Execute(PluginVideoPost *node, VideoPostStruct *vps);  
         virtual void ExecuteLine(PluginVideoPost *node, PixelPost *pp);  
        };
        
        
        
        
         
        
        
        
        
        void VideoPostTest::ExecuteLine(PluginVideoPost *node, PixelPost *pp)  
        {  
         GePrint("Why don't this function get called?");  
        }
        
        
        
        
         
        
        
        
        
        LONG VideoPostTest::Execute(PluginVideoPost *node, VideoPostStruct *vps)  
        {  
         GePrint("This Works");  
         return RAY_OK;  
        }
        
        
        
        
         
        
        
        
        
        void VideoPostTest::ExecutePixel(PluginVideoPost *node, PixelPost *pp, LONG x, LONG subx, LONG suby)  
        {  
         GePrint("Why don't this function get called?");
        
        
        
        
         
        
        
        
        
         if(pp->vd->lhit)  
         {  
          LONG vind;  
          RayObject *obj = pp->vd->ID_to_Obj(pp->vd->lhit, &vind);
        
        
        
        
         
        
        
        
        
          if(obj)  
          {  
           GePrint(LongToString(vind));  
          }  
         }
        
        
        
        
         
        
        
        
        
        }
        
        
        
    


  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 09/07/2004 at 16:21, xxxxxxxx wrote:

    Solved
     
    must return flags in VideoPostData::GetRenderInfo()


Log in to reply