> > A "perfect" solution is probably to use > > Vector(renderer.current_camera, 0.0, 0.0, 1.0) as a normal if > > self._normal is None. Can you try it ? I'm short in time to try it > > myself, sorry :-/ > > Below is a patch implementing this: it also works. I'm as much a > novitiate in Pyrex as OpenGL (that <_Vector> 'casting' notation looks > very odd!), so please excuse any errors in style.
You don't need the cast if you declare the variable with the _Vector type. I've commited a modified version of the patch ; i've also added a frame coordinate conversion. Can you say me if it works or not ? It does compile, but due to a driver problem i cannot test it :-( Jiba
