Jump to content

[SOLVED] WidgetCanvas Transform


photo

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

Posted

We'll check this issue though I'll take some time time I'm afraid.

×
×
  • Create New...