Need help creating a Camera Modifier.

SighmanSighman Posts: 56

Hi,

I have created a tree modifier that I want to apply to a camera. However, the modifier only shows up for instances. Does anyone know what needs to be done to get it registered as a camera modifier?

Thanks

Comments

  • Eric WinemillerEric Winemiller Posts: 84
    edited December 1969

    // Cognito Data
    
    resource 'data' (200) 
    {
     {
      'li  ', // light
      'ca  ', // camera
      'prim', // instanciable primitive
      'grou', // group
     }
    };

    Good luck,

  • SighmanSighman Posts: 56
    edited December 1969

    Thanks Eric but that didn't work. I managed to get it to work by adding a '# 1' to the category...

    I guess there is no way to keep it out of the other menus?

    resource 'COMP' (kPanoramicCameraModifier) {
     kRID_ModifierFamilyID,
     kPanoramicCameraModifierID,
     "Panoramic",
     "Panoramic # 1", // This is what makes it show up in the Camera menu.
     FIRSTVERSION,
     VERSIONSTRING,
     COPYRIGHT,
     kRDAPIVersion
    };
    
    resource 'GUID' (kPanoramicCameraModifier) 
    {
     {
      R_IID_I3DExModifier,         /*I3DExModifier*/
      R_CLSID_PanoramicCameraModifier
     }            
    };
    
    resource 'PMap' (kPanoramicCameraModifier) {
     {
      'mode', 'in32', noFlags, "Panoramic Camera Mode", "",
      'hfov', 're32', interpolate, "Horizontal Field of View", "",
      'vfov', 're32', interpolate, "Vertical Field of View", ""
     }
    };
    
    // I added this anyway but I don't know what it does...
    resource 'data' (kPanoramicCameraModifier) {
     { 'ca  ' }
    };
    
  • Eric WinemillerEric Winemiller Posts: 84
    edited December 1969

    Huh. That data resource was all I did to make Cognito show up for cameras. Interesting to know.

    Regards,

  • SighmanSighman Posts: 56
    edited December 1969

    Well, I ended up switching to a DataComponent. I can control when it shows up in the Effects Tab and for a particular Camera type which is what I need. That 'data' resource you provided works well with Data Components.

    Thanks again for your invaluable help.

Sign In or Register to comment.