Re: [Paraview] Paraview 5.0.1: Export Scene to pdf -- appears in white

2016-05-20 Thread David Lonie
On Fri, May 20, 2016 at 10:19 AM, Ramiro James Rebolledo Cormack <
ramre...@gmail.com> wrote:
>
> I compile paraview in my laptop (ubuntu 16.04) and my desktop (ubuntu
> 14.04) with exactly the same options in ccmake, in particular: OpenGL.
> In my laptop 'Export to pdf' works perfect.
> Is this related this the nvidia driver? In my desktop I have installed
> nvidia driver, but in my destop I have not installed nvidia driver.
>

Hmm, the opengl driver shouldn't matter on the OpenGL1 backend, unless
there was a bug in their feedback rendering mode. Are you trying to export
the same scene on both systems?


> + When you compiled 5.0.1 from source, I suspect you are getting the
>> old rendering backend too (unless you changed the CMake variable
>> VTK_RENDERING_BACKEND to OpenGL2). Not entirely sure why export would
>> fail in that case. There isn't any special flag to enable PDF export.
>>
>
> Now, in my desktop I'm trying compiling with OpenGL2 option (the option
> doesn't comes hiting the enter button, instead of my laptop, but I chosed
> writting it), and crossing my fingers.
>
> I appreciate any ideas or suggestions (I don't have more), to find a way
> for fix this 'little' problem: to have the export to pdf option.
>

I'd suggest just playing with the export options and see if there's a
solution there. If you keep having trouble, send me a small state file that
reproduces the issue and I'll take a look. There are certain cases where
the gl2ps exporter will fail to capture all of the details in a scene,
though it should produce more than an empty white image.

Dave
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Paraview 5.0.1: Export Scene to pdf -- appears in white

2016-05-20 Thread David Lonie
On Thu, May 19, 2016 at 10:16 PM, Utkarsh Ayachit <
utkarsh.ayac...@kitware.com> wrote:

> + Not sure what's the deal with 4.0.1, but it's too old at this point
> so let's ignore that.
> + When you downloaded ParaView 5.0.1 from paraview.org, starting with
> 5.0.1, we are using a new implementation of the rendering backend for
> our binaries [1]. This rendering backend, let's call OpenGL2, doesn't
> support exporting to PDF, at least, not in 5.0.1. It's been fixed in
> git "master".
> + I suspect ParaView 5.0.1 from Ubuntu is using the old rendering
> backend by default. The title bar should say something like "ParaView
> 5.0.1 (Legacy Rendering Backend)". This backend still support the old
> export to PDF code and hence should have that option.
> + When you compiled 5.0.1 from source, I suspect you are getting the
> old rendering backend too (unless you changed the CMake variable
> VTK_RENDERING_BACKEND to OpenGL2). Not entirely sure why export would
> fail in that case. There isn't any special flag to enable PDF export.
>
> However, the best option to try out Export to PDF would be build the
> latest "master" from source with VTK_RENDERING_BACKEND set to OpenGL2.
>
> (Dave, do correct me if I am misspoke).
>

This sounds about right. The gl2ps library we use to generate the pdfs was
not compatible with the new OpenGL2 backend, and I had to tweak it a bit to
get it working again. Looking at the git log, the modifications didn't make
it into the 5.0.1 release, so export would only work using the old backend
with that release.

The current development branch supports pdf export on both backends.

I'm curious about the white exported image, though. IIRC, the
vector-graphics export options shouldn't be shown on the versions of
paraview that don't support gl2ps, so if you're able to export, it should
be working. It sounds like you may have also brushed up against one of the
limitations of the gl2ps library -- for instance, it can't handle textured
objects (they'll just appear a solid color, rather than patterned). This
can be problematic as some of the color mapping techniques use textures.

If you're seeing incorrect output, try playing with the "rasterize 3D
geometry" and sort options to see if you can get a better representation of
the scene.

HTH,
Dave
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Paraview 5.0.1: Export Scene to pdf -- appears in white

2016-05-19 Thread Utkarsh Ayachit
Ramiro,

A few things to note:

+ Not sure what's the deal with 4.0.1, but it's too old at this point
so let's ignore that.
+ When you downloaded ParaView 5.0.1 from paraview.org, starting with
5.0.1, we are using a new implementation of the rendering backend for
our binaries [1]. This rendering backend, let's call OpenGL2, doesn't
support exporting to PDF, at least, not in 5.0.1. It's been fixed in
git "master".
+ I suspect ParaView 5.0.1 from Ubuntu is using the old rendering
backend by default. The title bar should say something like "ParaView
5.0.1 (Legacy Rendering Backend)". This backend still support the old
export to PDF code and hence should have that option.
+ When you compiled 5.0.1 from source, I suspect you are getting the
old rendering backend too (unless you changed the CMake variable
VTK_RENDERING_BACKEND to OpenGL2). Not entirely sure why export would
fail in that case. There isn't any special flag to enable PDF export.

However, the best option to try out Export to PDF would be build the
latest "master" from source with VTK_RENDERING_BACKEND set to OpenGL2.

(Dave, do correct me if I am misspoke).

Utkarsh

[1] 
https://blog.kitware.com/kitware-unleashes-brand-new-rendering-backend-in-paraview-5-0/

On Thu, May 19, 2016 at 6:08 PM, Ramiro James Rebolledo Cormack
 wrote:
> Thanks Utkarsh. In my ubuntu 16.04 laptop I have installed ParaView 5.0.1
> (from ubuntu repositories) and it has the option Export Scene to pdf, and
> works perfect.
> On the other hand, older paraview versions had the option, and worked.
>
> I think that, maybe, I can get it using some spetial compilling option when
> I use ccmake.
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Paraview 5.0.1: Export Scene to pdf -- appears in white

2016-05-19 Thread Ramiro James Rebolledo Cormack
Thanks Utkarsh. In my ubuntu 16.04 laptop I have installed ParaView 5.0.1
(from ubuntu repositories) and it has the option Export Scene to pdf, and
works perfect.
On the other hand, older paraview versions had the option, and worked.

I think that, maybe, I can get it using some spetial compilling option when
I use ccmake.
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Paraview 5.0.1: Export Scene to pdf -- appears in white

2016-05-19 Thread Utkarsh Ayachit
5.0.1 doesn't support export to PDF, I am afraid. However, "master"
does and so will "5.1"

(cc-ing Dave, just in case I am mistaken)

Utkarsh

On Thu, May 19, 2016 at 5:56 PM, Ramiro James Rebolledo Cormack
 wrote:
> Hi all.
>
> I'm using paraview 4.0.1 on my ubuntu 14.04 64bits, the paraview version
> coming from ubuntu 14.04 repositories.
>
> The problem is: when I try to 'Export Scene' to pdf, it generates a white
> pdf.
>
> So, I compiled ParaView v5.0.1 from its source (without warnings or errors),
> but I get the same problem.
>
> I also have downloaded ParaView Binary Installers v5.0, but doesn't come
> with 'Export Scene to pdf' option. That's why I'm trying to compile from
> source code.
>
> With ParaView Binary Installers v4.3 I have NO problem, but I want to use
> the newer version.
>
>
> So, how can I compile ParaView v5.0.1 to have the option for 'Export Scene'
> to pdf?
>
> Thanks in advance.
>
> --
> Ramiro
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview