I’m trying to draw some thick lines so I’m not using LineSegs. In the 1.6 and up you are supposed to be able to draw with meshdrawer but I couldn’t find a sample on that and my initial efforts are crashing.
a=MeshDrawer()
a.segment(Vec3(0,0,0), Vec3(10,10,10), 0, 5, Vec4(0,255,0,125));
Assertion failed: !is_empty() at line 270 of c:\p\panda3d-1.6.0-win32(2)\panda3d-1.6.0\built\include\nodePath.I
Help will be welcome.
I need to write a doc page or a tutorial explaining it. I will do so soon.
rdb
April 29, 2009, 5:07am
3
As for your crash, I believe you need to call begin() first:
a.begin(base.cam, render)
I’ve tried
a.begin(base.cam, render)
and
a.begin(base.camera, render)
and still crashes
Don’t know if it has something to do with it but it outputs this warning too
:loader(warning): Unable to load libp3ptloader.dll: Invalid access to memory location
rdb
May 4, 2009, 6:20am
6
That’s a known bug, but entirely unrelated.