Hi!

I'm currentlty writing a plugin for the 3d space of nuke.
I want to utilize the Primitive::Point or Primitive::Particle class to generate arbitrary points in 3d space. I get the points generated and to be displayed in the OGL viewport so far, but it doesn't show reaction to any lights nor shaders and I'm also not able to render them with the scanline render node. If I use non-point geometry like triangles or polys I get the surface shaded and correctly rendered. But with points I haven't had success so far. Does anyone know how to solve this? The documentation only partially describes the effect and usage of various classes, so I wanted to ask you if you can help me with this.

Kind regards,

Phong

  • created

    Nov '09
  • last reply

    Nov '09
  • 1

    reply

  • 1.8k

    views

  • 1

    user

Ok I solved the lighting issue with the points. I simply had to assign normals to the points.
But I still cannot get them rendered with the ScanlineRenderer. In the API there's a function called

Point::tessellate(Scene* scene, PrimitiveContext* ptx) const [virtual]

which is briefly described as a function for "pushing a single rPoint primitive into the rendering stream". Do I have to utilize this and if yes, has anyone successfully used this function? And if not, has anyone successfully rendered custom points or particles with the API?

Kind regards,

Phong