Draw a line in the 3D scene.
@param from: the origin of the line @type from: list [x, y, z] @param to: the end of the line @type to: list [x, y, z] @param color: the color of the line @type color: list [r, g, b] """
This is all I can find on the new feature with revision 16716. It’s part of the Rasterizer.py file in the gameengine’s PyDoc folder.
It works great. Here is a simple, but pretty demonstration of it that I threw together:
http://userpages.umbc.edu/~smyth1/blender/spin-thing.blend It should work with pretty much any build in the last month.
My only issue with it is when using viewports. Apparently it doesn’t recognize viewports, it only recognizes the active camera and doesn’t recognize that the active camera (when using viewports) is offset, and renders over the other cameras’ viewports.
Has anyone else run in to this and found a way to work around it?
Edit: Hmm, it seems to work when I modify the file I posted. But it doesn’t seem to work on my main project. It’s odd.