<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Thanks Lisa, I'll back out of my camera 
extensions.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Malcolm</FONT></DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A href="mailto:lisa.avila@kitware.com" title=lisa.avila@kitware.com>Lisa S. 
  Avila</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A href="mailto:geov@netactive.co.za" 
  title=geov@netactive.co.za>Malcolm Drummond</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, April 10, 2001 7:12 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [vtkusers] Re: VTK24 vs. 
  312, quality and performance</DIV>
  <DIV><BR></DIV>Hello Malcolm,<BR><BR>I am going to somehow change the 
  automatic near/far calculations to have a few user adjustable parameters. This 
  will probably take a week or two - for now you can simply change the 
  calculation yourself (if you are compiling VTK) in the 
  ResetCameraClippingRange method on the vtkRenderer.<BR><BR>Lisa<BR><BR><BR>At 
  07:56 AM 3/25/2001, you wrote:<BR>
  <BLOCKQUOTE class=cite cite type="cite"><FONT face=arial size=2>Hi 
    Lisa</FONT><BR>&nbsp;<BR><FONT face=arial size=2>I tried sending this to the 
    group but the attachments were too large ... </FONT><BR><FONT face=arial 
    size=2>I'll resend without attachments.</FONT><BR>&nbsp;<BR><FONT face=arial 
    size=2>I'd call my conditions highly unreasonable. I'm looking at 
    sedimentary<BR>basins many kilometers in extent but some of my features and 
    glyphs are only<BR>a couple of meters in size. I provide users with the 
    ability to set extents<BR>but often they require regional views. The bad 
    images typically occur on the<BR>polygons where I've wrapped tubes around 
    sections of boreholes (radius<BR>~2.5m, resolution 10) or glyphs (eg. I 
    place cones at the borehole collars -<BR>users can pick these cones to 
    retrieve additional borehole data). I must say<BR>I've never experienced any 
    problems under 2.4 or with any of the vtk<BR>examples I try under 
    3.1.<BR><BR>The card is nVidia GeForce2 (Creative) which claims a 32 bit 
    z-buffer. With<BR>respect to the images I've sent you, the near/far values 
    when the problem<BR>kicks in are around 0.15 and 1500 respectively - in this 
    case clamping the<BR>near value to 1.0 gives acceptable 
    results.<BR><BR>&gt;&gt; then we probably should tweak 
    ResetCameraClippingRange().<BR>Sure, how about run-time tweaking? If the 
    user could control some<BR>parameter/s within the method (perhaps the 
    hard-wired "breathing space"<BR>parameters for starters) that would make a 
    big difference in cases like<BR>this. I initially liked optional clamping of 
    the near and far range values<BR>as this approach retained the dynamic 
    behaviour when conditions were<BR>favourable.<BR><BR>What do you 
    suggest?<BR><BR>Thanks<BR>Malcolm<BR><BR>----- Original Message 
    -----<BR>From: Lisa Sobierajski Avila &lt;<A 
    href="mailto:lisa.avila@kitware.com">lisa.avila@kitware.com</A>&gt;<BR>To: 
    Malcolm Drummond &lt;<A 
    href="mailto:geov@netactive.co.za">geov@netactive.co.za</A>&gt;; 
    vtkusers<BR>&lt;<A 
    href="mailto:vtkusers@public.kitware.com">vtkusers@public.kitware.com</A>&gt;<BR>Sent: 
    Saturday, March 24, 2001 11:26 AM<BR>Subject: Re: [vtkusers] Re: VTK24 vs. 
    312, quality and performance<BR><BR><BR>&gt; Hello Malcolm,<BR>&gt;<BR>&gt; 
    If under "normal" circumstances (meaning your data has reasonable 
    bounds<BR>&gt; and is not pushing the limits of precision) you are seeing 
    bad images due<BR>&gt; to the clipping range, then we probably should 
    tweak<BR>&gt; ResetCameraClippingRange(). It does attempt to determine the 
    depth buffer<BR>&gt; depth and base the minimum near value on that. How deep 
    is your depth<BR>&gt; buffer? What are the near / far values when you see a 
    bad image?<BR>&gt;<BR>&gt; Thanks,<BR>&gt;<BR>&gt; 
    Lisa<BR>&gt;<BR>&gt;<BR>&gt; At 04:02 PM 3/23/2001, Malcolm Drummond 
    wrote:<BR>&gt; &gt;I have also just upgraded from vtk24. Some apparent 
    degradation may be<BR>due<BR>&gt; &gt;to a more generous automated camera 
    clipping range in vtk31. On some of<BR>my<BR>&gt; &gt;datasets this results 
    in polygon flickering with camera movement (as the<BR>&gt; &gt;depth 
    resolution is not fine enough) and "ragged" intersections. My<BR>&gt; 
    &gt;immediate fix was to introduce near range-clamping methods to the 
    camera,<BR>as<BR>&gt; &gt;this affects depth resolution (I didn't want to 
    mess with the renderers<BR>&gt; &gt;ResetCameraClippingRange() - but that 
    might be another route to go). I've<BR>&gt; &gt;attached my files.<BR>&gt; 
    &gt;<BR>&gt; &gt;The methods are ...<BR>&gt; &gt;<BR>&gt; &gt;// 
    Description:<BR>&gt; &gt;&nbsp;&nbsp; // Set/Get clamping of 
    ClippingRange[0]. Prevents value &lt;<BR>&gt; 
    &gt;ClipRangeNearClampValue.<BR>&gt; &gt;&nbsp;&nbsp; 
    vtkSetMacro(ClippingRangeNearClamping,int);<BR>&gt; &gt;&nbsp;&nbsp; 
    vtkGetMacro(ClippingRangeNearClamping,int);<BR>&gt; &gt;&nbsp;&nbsp; void 
    ClippingRangeNearClampingOn();<BR>&gt; &gt;&nbsp;&nbsp; void 
    ClippingRangeNearClampingOff();<BR>&gt; &gt;<BR>&gt; &gt;&nbsp;&nbsp; // 
    Description:<BR>&gt; &gt;&nbsp;&nbsp; // Set/Get value to clamp 
    ClippingRange[0] by.<BR>&gt; &gt;&nbsp;&nbsp; 
    vtkSetMacro(ClippingRangeNearClampValue,double);<BR>&gt; &gt;&nbsp;&nbsp; 
    vtkGetMacro(ClippingRangeNearClampValue,double);<BR>&gt; &gt;<BR>&gt; 
    &gt;You can test if depth resolution is a problem via tcl script, just 
    reset<BR>the<BR>&gt; &gt;camera range via the interactive command window and 
    see if there's any<BR>&gt; &gt;remarkable change when you render (but call 
    the render through the<BR>command<BR>&gt; &gt;window - using the mouse to 
    force a render could cause the renderer to<BR>&gt; &gt;recompute the bounds 
    and reset the camera to the old range again).<BR>&gt; &gt;<BR>&gt; &gt;I 
    don't know if this is the best solution ... it just worked in a 
    hurry.<BR>If<BR>&gt; &gt;the Gurus think it's OK I'll introduce 
    ClippingRangeFarClamping etc.for<BR>&gt; &gt;completeness and submit the 
    code.<BR>&gt; &gt;<BR>&gt; &gt;----- Original Message -----<BR>&gt; 
    &gt;From: Tom G. Smith (B75826) &lt;<A 
    href="mailto:smitty@kcc.com">smitty@kcc.com</A>&gt;<BR>&gt; &gt;To: &lt;<A 
    href="mailto:vtkusers@public.kitware.com">vtkusers@public.kitware.com</A>&gt;<BR>&gt; 
    &gt;Sent: Friday, March 23, 2001 3:25 PM<BR>&gt; &gt;Subject: [vtkusers] Re: 
    VTK24 vs. 312, quality and performance<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; 
    &gt; &gt; Prabhu hit the nail squarely on the head regarding the 
    ImageMagick<BR>&gt; &gt; &gt; convert utility not using compression in 
    RH7.&nbsp; The original ppm files<BR>&gt; &gt; &gt; were all 270015 bytes, 
    and the gif files out of the convert utility<BR>&gt; &gt; &gt; are all 91492 
    bytes on the RH7 system, and range from 4178 to 8629<BR>&gt; &gt; &gt; bytes 
    on the older SGI system.<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; That explains 
    the gif file size differences, but still doesn't address<BR>&gt; &gt; &gt; 
    the performance and rendering quality issues.&nbsp; My performance test 
    was<BR>&gt; &gt; &gt; done with the VTK Interactor, and a GIF file was not 
    involved there,<BR>&gt; &gt; &gt; just vtk:&nbsp; vtk star.tcl -- -c 
    yellow.&nbsp; Regarding the rendering<BR>quality,<BR>&gt; &gt; &gt; there 
    are artifacts that shouldn't be there, shadows have sharp edges<BR>&gt; &gt; 
    &gt; where they should be blended, and objects are clipped where 
    they<BR>shouldn't<BR>&gt; &gt; &gt; be.&nbsp; The best description I can 
    give, it looks like Andy Warhol had an<BR>&gt; &gt; &gt; influence in the 
    renderings from VTK 3.1.2 :-)<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; Forwarded 
    message:<BR>&gt; &gt; &gt; &gt; From: "Prabhu Ramachandran" &lt;<A 
    href="mailto:prabhu@aero.iitm.ernet.in">prabhu@aero.iitm.ernet.in</A>&gt;<BR>&gt; 
    &gt; &gt; &gt; Date: Fri, 23 Mar 2001 10:15:35 +0530 (IST)<BR>&gt; &gt; &gt; 
    &gt; To: "Tom G. Smith (B75826)" &lt;<A 
    href="mailto:smitty@kcc.com">smitty@kcc.com</A>&gt;,<BR>&gt; &gt; &gt; 
    &gt;&nbsp;&nbsp;&nbsp; "VTK users list" &lt;<A 
    href="mailto:vtkusers@public.kitware.com">vtkusers@public.kitware.com</A>&gt;<BR>&gt; 
    &gt; &gt; &gt; Subject: [vtkusers] VTK24 vs. 312, quality and 
    performance<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; hi,<BR>&gt; &gt; 
    &gt; &gt;<BR>&gt; &gt; &gt; &gt; &gt;&gt;&gt;&gt;&gt; "Tom" == B75826&nbsp; 
    &lt;<A href="mailto:smitty@kcc.com">smitty@kcc.com</A>&gt; writes:<BR>&gt; 
    &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; Tom&gt; The 
    first brings up the Interactor, and the second<BR>generates<BR>&gt; &gt; 
    &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; Tom&gt; an animated gif file, showing the 
    star rotating 360 degrees<BR>&gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; 
    Tom&gt; about its vertical axis.&nbsp; Here's the sizes of the two 
    gif<BR>&gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; Tom&gt; files, and as you 
    can see, the one from VTK 3.1.2 is over<BR>12<BR>&gt; &gt; &gt; 
    &gt;&nbsp;&nbsp;&nbsp;&nbsp; Tom&gt; times the size of the gif from VTK 
    2.4:<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; 
    Tom&gt; -rw-r--r-- 1 smitty mst 65589 Mar 22 14:06 star24.gif<BR>&gt; &gt; 
    &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; Tom&gt; -rw-r--r-- 1 smitty mst 805580 Mar 
    22 13:29 star312.gif<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; 
    &gt;&nbsp;&nbsp;&nbsp;&nbsp; Tom&gt; To give some measure of the difference 
    in performance,<BR>using<BR>&gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; 
    Tom&gt; the Interactor, I left-clicked and dragged from the 
    center<BR>to<BR>&gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; Tom&gt; the edge 
    of the rendering window, which of course causes<BR>the<BR>&gt; &gt; &gt; 
    &gt;&nbsp;&nbsp;&nbsp;&nbsp; Tom&gt; image to rotate.&nbsp; Then I timed the 
    rotation through 360<BR>&gt; &gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; Tom&gt; 
    degrees.&nbsp; The rendering from VTK 2.4 takes 16 seconds, and<BR>&gt; &gt; 
    &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; Tom&gt; that from vtk312 72 seconds, 4.5 
    times longer.<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; I havent looked 
    at your code, but I read in the comments that you<BR>use<BR>&gt; &gt; &gt; 
    &gt; ImageMagick to convert ppm's to gif.&nbsp; I think this is the source 
    of<BR>&gt; &gt; &gt; &gt; the problem.&nbsp; Since Unisys patented the 
    compression with gifs and<BR>&gt; &gt; &gt; &gt; started enforcing the 
    patent, most sensible Linux distributions<BR>avoid<BR>&gt; &gt; &gt; &gt; 
    shipping with libraries that use the compression.&nbsp; The new<BR>&gt; &gt; 
    &gt; &gt; uncompressed gif library is usually called 'libungif'.&nbsp; I 
    think that<BR>&gt; &gt; &gt; &gt; the basic problem is there.&nbsp; This is 
    the reason why you see a file<BR>&gt; &gt; &gt; &gt; that is 12 times 
    larger: No compression.&nbsp; I believe that your SGI<BR>has<BR>&gt; &gt; 
    &gt; &gt; a libgif that does compression and ImageMagick on the SGI uses 
    it.<BR>&gt; &gt; &gt; &gt; Older linux distro's also shipped with these kind 
    of libraries.&nbsp; The<BR>&gt; &gt; &gt; &gt; rendering time may be slower 
    simply because the gif files are so<BR>large<BR>&gt; &gt; &gt; &gt; and 
    processing them will take longer.&nbsp; I cannot explain the poor<BR>&gt; 
    &gt; &gt; &gt; quality of the rendering.<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; 
    &gt; &gt; Hope this helps,<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; 
    prabhu<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt;<BR>&gt; 
    &gt; &gt; --<BR>&gt; &gt; &gt;<BR>&gt; &gt;<BR>&gt; 
    --------------------------------------------------------------------------<BR>&gt; 
    &gt;----<BR>&gt; &gt; &gt; This e-mail is intended for the use of the 
    addressee(s) only and may<BR>&gt; &gt;contain privileged, confidential, or 
    proprietary information that is<BR>exempt<BR>&gt; &gt;from disclosure under 
    law.&nbsp; If you have received this message in error,<BR>&gt; &gt;please 
    inform us promptly by reply e-mail, then delete the e-mail and<BR>&gt; 
    &gt;destroy any printed copy.&nbsp;&nbsp; Thank you.<BR>&gt; &gt; 
    &gt;<BR>&gt; &gt; 
    &gt;<BR>&gt;<BR>&gt;===========================================================================<BR>=<BR>&gt; 
    &gt;==<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; 
    _______________________________________________<BR>&gt; &gt; &gt; This is 
    the private VTK discussion list.<BR>&gt; &gt; &gt; Please keep messages 
    on-topic. Check the FAQ at:<BR>&gt; &gt;&lt;<A 
    href="http://public.kitware.com/cgi-bin/vtkfaq">http://public.kitware.com/cgi-bin/vtkfaq</A>&gt;<BR>&gt; 
    &gt; &gt; Follow this link to subscribe/unsubscribe:<BR>&gt; &gt; &gt; <A 
    href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</A><BR>&gt; 
    &gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; 
    _______________________________________________<BR>&gt; This is the private 
    VTK discussion list.<BR>&gt; Please keep messages on-topic. Check the FAQ 
    at:<BR>&lt;<A 
    href="http://public.kitware.com/cgi-bin/vtkfaq">http://public.kitware.com/cgi-bin/vtkfaq</A>&gt;<BR>&gt; 
    Follow this link to subscribe/unsubscribe:<BR>&gt; <A 
    href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</A><BR>&gt;<BR></FONT></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>