Professional Web Applications Themes

Snapshot Graphics Rendering - Ruby

I would like to use Ruby to render a screenshot of a 3D environment. No concern for interactivity, frame rates, hardware acceleration, etc. Instead I'd like to dynamically construct a 3D space with Ruby objects at run time, and then call a "save to disk" function that would render the space and save it as a PNG. I've considered writing Ruby code to output POV-Ray source (.AOI), and then spawning a POV-Ray process to actually render. But maybe there is a better, more Ruby-esque way? Thank you for your help, oh Ruby Monks. Killian...

  1. #1

    Default Snapshot Graphics Rendering

    I would like to use Ruby to render a screenshot of a 3D environment.
    No concern for interactivity, frame rates, hardware acceleration, etc.
    Instead I'd like to dynamically construct a 3D space with Ruby objects
    at run time, and then call a "save to disk" function that would render
    the space and save it as a PNG.

    I've considered writing Ruby code to output POV-Ray source (.AOI), and
    then spawning a POV-Ray process to actually render. But maybe there is
    a better, more Ruby-esque way?

    Thank you for your help, oh Ruby Monks.

    Killian
    Killian Guest

  2. #2

    Default Re: Snapshot Graphics Rendering

    Killian wrote: 

    What about using OpenGL?

    eg Guest

  3. #3

    Default Re: Snapshot Graphics Rendering


    "eg" <jnk> wrote in message news:0UkYb.536824$X%.. 
    >
    > What about using OpenGL?
    >[/ref]

    I've been fiddling with some of the same concerns as Killian. At this
    point, I'm using Ruby to generate POV source, since I don't know that much
    about OpenGL. Like Killian, I have no need of real-time rendering. I guess
    my big concern would be texturing, if one needs it: ease of using the POV
    community's tremendous library of predefined textures aside, does OpenGL
    offer reasonably broad and easy texturing API?

    Thanks!

    - dan


    dhtapp Guest

  4. #4

    Default Re: Snapshot Graphics Rendering

    dhtapp wrote: 
     
    >
    >
    > I've been fiddling with some of the same concerns as Killian. At this
    > point, I'm using Ruby to generate POV source, since I don't know that much
    > about OpenGL. Like Killian, I have no need of real-time rendering. I guess
    > my big concern would be texturing, if one needs it: ease of using the POV
    > community's tremendous library of predefined textures aside, does OpenGL
    > offer reasonably broad and easy texturing API?
    >
    > Thanks!
    >[/ref]

    "easy" is a always a matter of opinion, so I have a hard time answering
    that.
    I am not an OpenGL expert (as I usually use other API's), but there are
    lots of tutorials and examples, which I am sure you could use to quickly
    form an opinion for your needs.

    For example, see:
    http://www.gametutorials.com/Tutorials/OpenGL/OpenGL_Pg2.htm

    Or just google on "how to texture opengl" and see lots of hits.

    eg Guest

  5. #5

    Default Re: Snapshot Graphics Rendering

    > "easy" is a always a matter of opinion, so I have a hard time answering 

    Thanks for your feedback. Which Ruby to OpenGL bindings would you
    recommend? (I'm working on Linux and Solaris.)
    Killian Guest

Similar Threads

  1. rendering <div Oops! rendering div style:display=none
    By Mark Richards in forum HTML & CSS
    Replies: 3
    Last Post: January 27th, 10:36 PM
  2. Snapshot of FLV
    By U. Tote in forum Macromedia Flash Actionscript
    Replies: 0
    Last Post: January 16th, 03:51 PM
  3. Rendering graphics on a custom control
    By Gerben van Loon in forum ASP.NET Building Controls
    Replies: 0
    Last Post: December 31st, 11:58 AM
  4. snapshot
    By Jaz in forum AIX
    Replies: 5
    Last Post: July 18th, 07:47 PM
  5. Snapshot on a Snapshot
    By Pete Sharman in forum Oracle Server
    Replies: 1
    Last Post: December 12th, 05:57 PM

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