1

I have a requirement to draw different SVG files on respective 3D planes. For example, if I have two SVG files, I want to render them on two different 3D planes in openGL so that the planes can then have independent orientations in space. I tried using openVG for this purpose, but as I see, it only allows to use 2D transformations.

Is there a way to do this in openVG or some other openGL based approach?

Erik Dahlström
  • 59,452
  • 12
  • 120
  • 139
Aarkan
  • 3,811
  • 6
  • 40
  • 54

2 Answers2

2

I would take the approach of rendering SVG to a texture, then map that texture to the 3d planes that you oriented in openGL.

Alternatively, you can wrap the root SVG visual with a perspective transform that does the equivalent 3D transform you want applied to each plane.

Unknown1987
  • 1,671
  • 13
  • 30
  • The SVG Transform specification you link to is being replaced by a joint svg/css specification, see http://dev.w3.org/csswg/css3-transforms/. – Erik Dahlström Feb 15 '12 at 07:40
1

Render SVG to texture, draw textured quad in desired orientation.

genpfault
  • 51,148
  • 11
  • 85
  • 139