Iam using the meshdrawer to draw some fake-particles, working like a charm so far, but here comes the problem:
I need to reparent the meshdrawer-root to another nodepath, if i do so and rotate that node, the created billboards are no longer facing the camera. How can i fix this?
edit: this also happens when the meshdrawer root is parented to render and then the root is rotated…
....
generator.getRoot().setHpr(90,0,0)
edit2: Or is it possible to completly disable the the billboard-effect from the meshdrawer and rotate the particle by myself? The problem, the particles have only one rotation axis enabled as i see in the api, so how to rotate them in more than one axis? The rotaion should be easy to calculate because the camera is never moving in my game but the world is…
edit3: Problem solved: i had to provide the world node (the one i reparented the meshdrawer node to), to the draw task off the meshdrawer instead off “render”, now the billboard pointing to the camera always. Great! But my Problem from the nextPost still exists…