To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 10770
10769  |  10771
Subject: 
Re: LPub 4 Status
Newsgroups: 
lugnet.cad.dev
Date: 
Sat, 29 Mar 2008 22:27:49 GMT
Viewed: 
11534 times
  
In lugnet.cad.dev, Don Heyse wrote:
   to be the way to go. Then I built a new (universal?) ldglite with your static libpng and some patches to render offscreen via the carbon fns. It didn’t work from an ssh login (carbon is forbidden), but when I logged locally I got a png file without opening a graphics window. Cool!

If you used my code as an example for Core GL setup, then the error was due to a bug in my code. If not, put the following in your CGLPixelFormatAttribute array, and it should work even via ssh:
   CGLPixelFormatAttribute attrs[] =
   {
       kCGLPFADepthSize, (CGLPixelFormatAttribute)24,
       kCGLPFAColorSize, (CGLPixelFormatAttribute)24,
       kCGLPFAAlphaSize, (CGLPixelFormatAttribute)8,
       kCGLPFAStencilSize, (CGLPixelFormatAttribute)8,
       kCGLPFAAccelerated,
       kCGLPFAPBuffer,
       kCGLPFARemotePBuffer,
       (CGLPixelFormatAttribute)0
   };
The last setting (kCGLPFARemotePBuffer) is the important one for remote rendering. Note, thought, that you don’t want that setting set when saving a file from the UI. I suspect that you can skip the kCGLPFAAccelerated entry.

I updated LDView, and it now works fine remotely via ssh from an account different than the logged in user (and probably when nobody is logged in; I can’t test that right now).

--Travis



Message has 1 Reply:
  Re: LPub 4 Status
 
(...) Actually it turned out that despite the warning message my settings did work from a remote ssh login as a different user. The old AGL code, while it worked locally (that was a surprise), did not work remotely and produced the same warning (...) (16 years ago, 30-Mar-08, to lugnet.cad.dev)

Message is in Reply To:
  Re: LPub 4 Status
 
(...) Thanks guys for all the help. I grabbed BrickSmith and moved the ldraw folder that came with it to /Library. I wanted both anyhow so it seemed to be the way to go. Then I built a new (universal?) ldglite with your static libpng and some (...) (16 years ago, 27-Mar-08, to lugnet.cad.dev, FTX)

81 Messages in This Thread:




















Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR