Thread Subject: Error when printing surf plot with camlight on

Subject: Error when printing surf plot with camlight on

From: giordano.sagredo@gmail.com

Date: 3 Jun, 2009 16:03:01

Message: 1 of 3

Simplest reproduction:
>>surf(rand(10,10))
>>camlight right
>>print

And it does not print, and I get the following:
Warning: Problems in UIW_SetUpGLPrinting
> In graphics\private\render at 143
> In print at 277

I tried adding:
>> set(gcf,'Renderer','Zbuffer');
>> print

No more warning, but it only prints a blank page.

Subject: Error when printing surf plot with camlight on

From: giordano.sagredo@gmail.com

Date: 3 Jun, 2009 18:08:44

Message: 2 of 3

The following fixed it:
set(gcf,'Renderer','Painters');

Subject: Error when printing surf plot with camlight on

From: Bruno

Date: 23 Mar, 2010 12:33:27

Message: 3 of 3

Hello,

I was having this problem for some months. My specifics is that I have a development
and a deployment machine. It was all good on the first, but on the second, it always
came the 'UIW_SetUpGLPrinting' problem.

The other rendereres (zbuffer and painters, as opposite to OpenGL) may not misbehave,
but they also do not perform alpha blending, for instance, thus being somewhat
useless in some cases.

Now it has been solved. I believe this happens when the OpenGL API doesn't work as expected,
and that could be for more than one cause. If you're having this issue, try to follow the
next steps one at a time, and see if it helps.

1 - Be sure to install the correct driver for your specific graphic board. Not so obvious,
    because some manufacturers may have very specific versions. XFX is an example.
    
  - Reboot

  - Run your code again

2 - Check if your OpenGL API is good to go. Install OpenGL Extensions Viewer and check it.
    Run the renderer test if you need to.

3 - Install the latest DirectX. Test it with dxdiag.
 
  - Reboot

  - Run your code again

4 - If everything else fails, you could try to install Glide Wrapper 0.84c. It helps on some
    OpenGL problems. Configure it if you need.

Hope that helps,
Marchesi.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com