Re: [osg-users] Exporting to SVG from OpenSceneGraph.

2011-12-16 Thread Jesper D. Thomsen
Hi again,

Yeah, the original question was rendering to Vector SVG (or EMF directly), but 
osgNVPR definitely looks interesting for other tasks.
Thanks for the suggestions regarding GL2PS, but I'm a little bit worried about 
its dependence on the deprecated OpenGL feedback buffer. I also tried getting 
an OpenGL-SVG test output from it, and converting that one to EMF, and I had a 
number of graphical artifact with visible triangle edges and such.

I'm currently thinking that the best solution for my specific case will be to 
recreate the graphs by outputting to Python MatPlotLib and using it for SVG/EMF 
export, but this is clearly outside the scope of the OSG mailing list.

Thanks for the suggestions, and I might still try to integrate the GL2PS 
solution at some point.

Jesper D. Thomsen
AnyBody Technology

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Jason Daly
Sent: 15. december 2011 18:03
To: OpenSceneGraph Users
Subject: Re: [osg-users] Exporting to SVG from OpenSceneGraph.

On 12/15/2011 11:37 AM, Chris 'Xenon' Hanson wrote:
 On 12/14/2011 9:31 AM, Jason Daly wrote:
 Actually, Jeremy Moles is working on a nodekit that uses nVidia's 
 path rendering extension to OpenGL to render 2d vector graphics in 3d 
 space.  I believe the extension can read SVG files natively, so Jeremy's 
 osgNVPR kit should be able to as well.
But, I think that's the reverse of what he wanted to do, right?


Probably.  The OP asked whether one could render to vector SVG from 
OpenSceneGraph.  I guess I read it too quickly and missed the to   :-)

--J

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Exporting to SVG from OpenSceneGraph.

2011-12-15 Thread Chris 'Xenon' Hanson
On 12/14/2011 9:31 AM, Jason Daly wrote:
 Actually, Jeremy Moles is working on a nodekit that uses nVidia's path 
 rendering extension
 to OpenGL to render 2d vector graphics in 3d space.  I believe the extension 
 can read SVG
 files natively, so Jeremy's osgNVPR kit should be able to as well.

  But, I think that's the reverse of what he wanted to do, right?

-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com 
http://www.alphapixel.com/
  Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. 
Contracting.
There is no Truth. There is only Perception. To Perceive is to Exist. - 
Xen
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Exporting to SVG from OpenSceneGraph.

2011-12-15 Thread Jason Daly

On 12/15/2011 11:37 AM, Chris 'Xenon' Hanson wrote:

On 12/14/2011 9:31 AM, Jason Daly wrote:

Actually, Jeremy Moles is working on a nodekit that uses nVidia's path 
rendering extension
to OpenGL to render 2d vector graphics in 3d space.  I believe the extension 
can read SVG
files natively, so Jeremy's osgNVPR kit should be able to as well.

   But, I think that's the reverse of what he wanted to do, right?



Probably.  The OP asked whether one could render to vector SVG from 
OpenSceneGraph.  I guess I read it too quickly and missed the to   :-)


--J

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Exporting to SVG from OpenSceneGraph.

2011-12-14 Thread Jesper D. Thomsen
Hi guys,

I have a question regarding exporting to SVG from OpenSceneGraph.
In our software product we use OpenSceneGraph for both a model view window and 
for a charting component. So far we have exported images from the charting 
component as bitmap images (by just rendering them to an offscreen pixelbuffer 
in the required resolution). We have however had some requests for exports from 
our charting component in a vector format compatible with the Microsoft Office 
software package (which pretty much means EMF files).

Since EMF is very Microsoft-specific, I was thinking of using SVG as an 
intermediate format, and then using some converter package to create the EMF 
output.
I saw SVG mentioned on the OSG mailing list earlier, but my question is whether 
there is any way to render to vector SVG from OpenSceneGraph (I kind of expect 
a hard no here)?

The graph contents can be both 2D and 3D graphs and the 3D graphs can contain 
shaded, but non-textured, 3D-surfaces.

Thanks in advance.

Jesper D. Thomsen
AnyBody Technology
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Exporting to SVG from OpenSceneGraph.

2011-12-14 Thread Stephan Maximilian Huber
Hi,

AFAIK, osg is not capable to export geometry to SVG. I used gl2ps[1]
together with osg to export some geometry to SVG. Worked quite well.

cheers,
Stephan

[1] http://geuz.org/gl2ps/


Am 14.12.11 15:26, schrieb Jesper D. Thomsen:
 Hi guys,
 
 I have a question regarding exporting to SVG from OpenSceneGraph.
 In our software product we use OpenSceneGraph for both a model view window 
 and for a charting component. So far we have exported images from the 
 charting component as bitmap images (by just rendering them to an offscreen 
 pixelbuffer in the required resolution). We have however had some requests 
 for exports from our charting component in a vector format compatible with 
 the Microsoft Office software package (which pretty much means EMF files).
 
 Since EMF is very Microsoft-specific, I was thinking of using SVG as an 
 intermediate format, and then using some converter package to create the EMF 
 output.
 I saw SVG mentioned on the OSG mailing list earlier, but my question is 
 whether there is any way to render to vector SVG from OpenSceneGraph (I kind 
 of expect a hard no here)?
 
 The graph contents can be both 2D and 3D graphs and the 3D graphs can contain 
 shaded, but non-textured, 3D-surfaces.
 
 Thanks in advance.
 
 Jesper D. Thomsen
 AnyBody Technology
 
 
 
 
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Exporting to SVG from OpenSceneGraph.

2011-12-14 Thread Chris 'Xenon' Hanson
On 12/14/2011 7:26 AM, Jesper D. Thomsen wrote:
 I have a question regarding exporting to SVG from OpenSceneGraph.
 In our software product we use OpenSceneGraph for both a model view window 
 and for a
 charting component. So far we have exported images from the charting 
 component as bitmap
 images (by just rendering them to an offscreen pixelbuffer in the required 
 resolution). We
 have however had some requests for exports from our charting component in a 
 vector format
 compatible with the Microsoft Office software package (which pretty much 
 means EMF files).
 Since EMF is very Microsoft-specific, I was thinking of using SVG as an 
 intermediate
 format, and then using some converter package to create the EMF output.
 I saw SVG mentioned on the OSG mailing list earlier, but my question is 
 whether there is
 any way to render to vector SVG from OpenSceneGraph (I kind of expect a hard 
 “no” here)?
 The graph contents can be both 2D and 3D graphs and the 3D graphs can contain 
 shaded, but
 non-textured, 3D-surfaces.


  Well, OSG can save to a few formats. Explore which ones support saving, and 
then if you
can convert from one of those, through a modeling or conversion tool, into SVG 
or another
2D vector format.


  Alternately, if you used a 3D capture tool:

http://www.planetpdf.com/creative/article.asp?ContentID=review_adobe_acrobat_3dpage=1
http://www.3d-test.com/interviews/OGLE_1.htm
http://www.deep-shadows.com/hax/3DRipperDX.htm

  you might be able to convert from one of its formats to something you can use.

-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com 
http://www.alphapixel.com/
  Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. 
Contracting.
There is no Truth. There is only Perception. To Perceive is to Exist. - 
Xen
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Exporting to SVG from OpenSceneGraph.

2011-12-14 Thread Jason Daly

On 12/14/2011 09:26 AM, Jesper D. Thomsen wrote:


Hi guys,

I have a question regarding exporting to SVG from OpenSceneGraph.

In our software product we use OpenSceneGraph for both a model view 
window and for a charting component. So far we have exported images 
from the charting component as bitmap images (by just rendering them 
to an offscreen pixelbuffer in the required resolution). We have 
however had some requests for exports from our charting component in a 
vector format compatible with the Microsoft Office software package 
(which pretty much means EMF files).


Since EMF is very Microsoft-specific, I was thinking of using SVG as 
an intermediate format, and then using some converter package to 
create the EMF output.


I saw SVG mentioned on the OSG mailing list earlier, but my question 
is whether there is any way to render to vector SVG from 
OpenSceneGraph (I kind of expect a hard “no” here)?




Actually, Jeremy Moles is working on a nodekit that uses nVidia's path 
rendering extension to OpenGL to render 2d vector graphics in 3d space.  
I believe the extension can read SVG files natively, so Jeremy's osgNVPR 
kit should be able to as well.


The relevant thread is here:

http://forum.openscenegraph.org/viewtopic.php?p=42207

The down side, of course, is that you'll be limited to hardware that 
supports this extension, which is only the more recent nVidia cards 
(GeForce 8 and later), I believe.


--J
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org