Professional Web Applications Themes

3D for 2D zoom - Macromedia Director 3D

I have a bunch of Lingo zoom code for zooming in and out large (8M pixel) bitmaps. The my zooms are deliberately slow and tricks are necessary to avoid ugly aliasing effects. The code uses ImageObjects and copyPixels all of which seem close to OpenGL primitives that don't handle anti-aliasing at all. It has been pointed out to me that if I treated the 2D image as a plane in 3D space I could zoom by simply moving the camera. Does the 3D renderer have good anti-aliasing properties for this kind of thing? Has anyone tried this?...

Sponsored Links
  1. #1

    Default 3D for 2D zoom

    I have a bunch of Lingo zoom code for zooming in and out large (8M pixel)
    bitmaps. The my zooms are deliberately slow and tricks are necessary to avoid
    ugly aliasing effects. The code uses ImageObjects and copyPixels all of which
    seem close to OpenGL primitives that don't handle anti-aliasing at all.

    It has been pointed out to me that if I treated the 2D image as a plane in 3D
    space I could zoom by simply moving the camera. Does the 3D renderer have good
    anti-aliasing properties for this kind of thing? Has anyone tried this?

    Sponsored Links
    14thStreetStudio Guest

  2. #2

    Default Re: 3D for 2D zoom

    The 3D hardware should smooth the image fine, I think the main problem will
    be the maximum texture size / ratio, especially on older 3D cards, as they
    have to be to the power of 2 pixel wise. Eg. 2 x 4 8 x 256 512 x 64
    etc. This will not be enough for a hi-res photo, and also the ratio won't
    match very cleanly so you'll have to crop or rescale your photos. You could
    tile textures across a mesh, but it would get more complicated.

    What about an imported flash surface as a director sprite? They seem to
    smooth things automatically, although I don't use Flash much myself.

    Cheers

    Richard Smith
    www.funpods.com


    Richard Guest

  3. #3

    Default Re: 3D for 2D zoom

    The curious thing is that 3D hardware (OpenGL) doesn't directly support
    anti-aliasing when scaling an image. The drivers/hardware all have fairly crude
    resampling schemes. An Nvidia book has a whole chapter on making convolution
    filters in their shading language to improve on the crude, by photographic
    standards, what the raw hardware does...

    14thStreetStudio Guest

  4. #4

    Default Re: 3D for 2D zoom

    So what's your question?

    You can't code your own filters in sw3d, it only supports Dx7.

    The rest of my advice is still valid.

    Cheers

    Richard

    "14thStreetStudio" <com> wrote in message
    news:fspqn4$pe2$macromedia.com... 


    Richard Guest

  5. #5

    Default Re: 3D for 2D zoom

    My question was closer to:

    "Has anybody actually used 3D facilities in Director to improve image zooming beyond what can be done using Lingo?"


    14thStreetStudio Guest

  6. #6

    Default Re: 3D for 2D zoom

    i never tried
    digiklan Guest

Similar Threads

  1. Zoom and Pan
    By HC in forum Macromedia Flash
    Replies: 5
    Last Post: December 21st, 01:07 AM
  2. Zoom Bug?
    By Marek Williams in forum Adobe Indesign Windows
    Replies: 8
    Last Post: September 2nd, 09:03 AM
  3. zoom tool to zoom a specific area only
    By seanyeap@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 2
    Last Post: May 23rd, 07:32 AM
  4. zoom!
    By ciecierega webforumsuser@macromedia.com in forum Macromedia Flash Sitedesign
    Replies: 1
    Last Post: January 6th, 05:56 PM
  5. Zoom in or out
    By Akhtar Ali webforumsuser@macromedia.com in forum Macromedia Director Basics
    Replies: 0
    Last Post: October 30th, 09:53 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139