The docs for GeomPoints suggests using the ParticleSystem renderers for rendering them, but all of the particle docs and examples show the full particle system being used with .ptf files, the tkPanel app, factories, emitters, etc. None of which I am interested in.
Basically I have a GeomNode containing GeomPoints with a bunch of points I created (and it renders as-expected when added to self.render), and I’m trying to use PointParticleRenderer or SpriteParticleRenderer but I can’t figure it out. In the code below my app hard-crashes on the PointParticleRenderer() ctor call below.
Are there any docs and/or examples out there of the particle renderers being used without the full particle system?
ptsNP = self.createPoints() # ptsNP.reparentTo(self.render) ## normal rendering self.enableParticles() psys = self.particleSystem = ParticleSystem() ppr = self.particleRenderer = PointParticleRenderer( BaseParticleRenderer.PR_ALPHA_USER, 5.0, PointParticleRenderer.PP_ONE_COLOR, PointParticleRenderer.PP_BLEND_CUBIC, Vec4(0,0,1,1.0), Vec4(0,0,1,0.2) ) # psys.setRenderer(ppr)