Results 1 to 4 of 4

Thread: show z buffer

  1. #1
    Registered 1ctoolfool's Avatar
    Join Date
    Jan 2004
    Location
    KY
    Posts
    201
    Downloads
    0
    Uploads
    0

    show z buffer

    anyone know details of the 'showzbuffer' command, can't find any info in the help files
    thanks


  2. #2
    Registered
    Join Date
    Sep 2004
    Location
    Switzerland
    Posts
    264
    Downloads
    0
    Uploads
    0
    It can be thought of as the inverse of the "Heightfield from bitmap" command. That command takes an image and creates a surface that has its highest point at the lightest value of the image (like white) and its lowest point at the darkest value (like black). Intermediate values in the image (grays) will have intermediate heights on the surface.

    ShowZBuffer does the inverse - it makes a black and white image from the different "heights" of (all) the geometry in the viewport (as seen from the camera perspective). The lowest point (furthest away from the camera) is black, the highest point (closest to the camera) is white and other values are various shades of gray...

    Beware: the grayscale calculations are based on the viewpoint of the camera and (I think) the automatic clipping planes Rhino uses to define the furthest and nearest points... sometimes it can get confused.

    If you want to use this image, you need to export it with ViewportCaptureToFile or ViewportCaptureToClipboard (the second requiring pasting into an image processing program). And if you don't want something to be included in the height calculation, you need to hide it first. --ch
    Last edited by chmillman; 01-06-2009 at 09:13 AM. Reason: spelling


  3. #3
    Registered 1ctoolfool's Avatar
    Join Date
    Jan 2004
    Location
    KY
    Posts
    201
    Downloads
    0
    Uploads
    0

    image control

    thanks, how do i set the lighting and the "base" clipping plane to define the lowest surface?
    also that 'viewport capture' only gets the image at 72 dpi where i need 600 dpi. right now I'm maxing out my screen resolution and doing a screen capture, any hints are appreciated, thanks much,
    jv


  4. #4
    Registered
    Join Date
    Sep 2004
    Location
    Switzerland
    Posts
    264
    Downloads
    0
    Uploads
    0
    how do i set the lighting and the "base" clipping plane to define the lowest surface
    You can't set the lighting. It's not really lighting, just a scale of black to white based on "height". You can't set the clipping planes either, they are automatic. You need to hide any geometry that's outside of the upper and lower limits of what you want to see.

    'viewport capture' only gets the image at 72 dpi where i need 600 dpi
    First, sorry, the command was ViewCaptureToFile, not Viewport...

    Use the "dash" version of the command to access the pixel settings:

    Command: -ViewCaptureToFile
    Save file name ( Browse ): Filename
    View Capture Settings ( Width=1000 Height=600 DrawGrid=Yes DrawWorldAxes=Yes DrawCPlaneAxes=Yes ):

    Put the pixel values you want in the width and height settings. Set the grid and axes to on or off as you want. There is no "dpi" setting, these are absolute pixel numbers. --ch


Similar Threads

  1. Parallel port buffer
    By eviljinks in forum Australia, New Zealand Club house
    Replies: 0
    Last Post: 05-30-2008, 07:16 AM
  2. SR 834 Alarm Buffer Overflow 2 When Dripfeed
    By TWyatt9 in forum Mori Seiki Mills
    Replies: 3
    Last Post: 03-26-2008, 11:47 PM
  3. Fanuc O-M Buffer
    By inthezone in forum Fanuc
    Replies: 7
    Last Post: 07-24-2007, 03:45 PM
  4. DNC-Buffer overload problem
    By Fish in forum Machine Problems, Solutions , Wireless DNC, serial port
    Replies: 12
    Last Post: 07-18-2005, 12:52 PM
  5. N.A.M.M. Show?
    By lsfoils in forum Musical Instrument Design and Construction
    Replies: 3
    Last Post: 01-12-2004, 09:29 PM

Posting Permissions



About CNCzone.com

    We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

Follow us on

Facebook Dribbble RSS Feed


Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.