abou.konate Posted August 21, 2012 Posted August 21, 2012 Hi, I'm aiming to use WidgetCanvas to draw a 3d grid on my app using several lines. But it's actually seems that even if the WidgetCanvas take a vec3 as parameter it's still rendered as a 2d view, how can I render those line properly regarding my Player view.
ulf.schroeter Posted August 21, 2012 Posted August 21, 2012 3D line drawing within regular scene can be implemented via engine.visualizer functions. This might not be exactly what you are looking for but WidgetCanvas only supports 2D drawing AFAIK.
abou.konate Posted August 21, 2012 Author Posted August 21, 2012 I used to use engine.visualizer but I moved for WidgetCanvas because I want to draw my primitives on the top. Actually it's seem that WidgetCanvas has a setTransform function, as it's usually render 3d primitives to 2d space with the identity matrix I though that game.getPlayer()->getProjection() was the thing to do. But it's not corresponding to the proper transform matrix.
manguste Posted August 23, 2012 Posted August 23, 2012 We'll check this issue though I'll take some time time I'm afraid.
Recommended Posts