Not logged in, Join Here! or Log In Below:  
News Articles Search    

Submitted by Chris Miller, posted on April 25, 2002

Image Description, by Chris Miller

This is a screen grab of my latest coding demo, WebGL. Not your typical OpenGL demo, it combines OpenGL with Dynamic HTML, ASP, and CGI to show interactive 3d modeling in a browser window. You draw in the edit window, then click "Render Changes" to update the 3d display. The scene is rendered by OpenGL into an offscreen buffer. Then it is sent to stdout for display by the browser. I'm not sure if it works on every version of every browser, but i've tested it with IE 5.5 and Navigator 4.04.

Have a look at:

I would love to see some critique, and hopefully squash a few bugs. Please excuse the rest of the site, as it is in development.

Here are some details...
  • Hand coded Dynamic HTML user interface. I used Dreamweaver to create page templates from my menu system.
  • C++ CGI application to render the scene with OpenGL. I'm using glReadPixels to grab the color buffer. This was interesting to write, because there is no user interface. The program simply outputs a JPG stream to stdout.
  • Uses the Intel JPG library to create the in-memory JPG stream.
  • Bilinear filtereing of the 3d image.
  • Parameter passing with POST to retain page state. The grid is encoded as hexdecimal strings which are passed to the CGI program via GET.
  • Possible enhancements...
  • Stack 15 of these 15 x 15 grids together to create a "cube" which is editable slice by slice.
  • Camera positioning
  • Custom positionable lights
  • Load and save of the grid using the browser.
  • Enlarged image rendering
  • And some bugs...
  • Floating palette doesn't drag on Netscape (working on it).
  • Chris Miller

    Image of the Day Gallery


    Message Center / Reader Comments: ( To Participate in the Discussion, Join the Community )
    Archive Notice: This thread is old and no longer active. It is here for reference purposes. This thread was created on an older version of the flipcode forums, before the site closed in 2005. Please keep that in mind as you view this thread, as many of the topics and opinions may be outdated.

    April 26, 2002, 11:01 AM

    Take a look at this:
    They have a client-side 3D viewer...


    April 26, 2002, 11:07 AM

    Yeah I like the Baxton feeling:

    ...I am your life and religion your faith and your hope, I walked upon the water without even getting wet...

    Damn I am GO(O)D


    April 26, 2002, 11:17 AM

    Just to come back to the opera issue, for those where it doesn't work, go to "File-> Quick Preferences-> Identify as IE5.0"
    This puts opera in some kind of M$-Compatible mode, running something more similar to J-script than Javascript...

    Hope this helps, Greetz, Flous

    Peter Mackay

    April 26, 2002, 11:57 AM

    LOL :-D

    Headless Chicken

    April 26, 2002, 12:05 PM

    Amen to that

    Mike Howell

    April 26, 2002, 12:11 PM

    This is priceless. The fact that MC BRAXTON posts get the greatest number of responses (this one included, I know) makes me laugh over and over again. I don't really know why people bother to respond. It's like having an argument with a Furby... You don't really know what it's saying, and it JUST WON'T LISTEN.


    April 26, 2002, 12:22 PM

    This is VERY cool.
    T-something conenction(im at college)
    IE 5.5

    Works great !


    April 26, 2002, 01:58 PM

    I can't believe that you guys are still stupid enough to respond to MC Baxton's bullshite. He is a complete idiot and just wants attention. It's amazing how many people still get offended by this mongoloid. Please, keep the posts on topic. Ignore this mental retard.


    April 26, 2002, 02:23 PM

    It's a penis-size thing, I'd say. He's compensating.

    Of course his posts get a lot of replies - everybody likes to argue with the village idiot. That's what they're for.



    April 26, 2002, 04:57 PM

    I think this is far from useless. Rendering a 3D scene on the server is a nice idea and although your example does not work for me (Mozilla) I can still see the image. Maybe I am going to investigate this further for my uni project :)


    John Hoffman

    April 27, 2002, 06:58 PM

    >> My experiments will probably end after ~2 weeks.

    Experiments? How fun.

    >> People, who are limited are you :)

    Most people learn how others react to disrespectful behavior at quite early age, without such extensive experimentation. We are certainly not limited, at least in this respect (no pun intended).

    I really do think you are "socially retarded," as someone has mention, but that seems to be a harsh way of putting it. I suppose it would also make sense to "experiment" with being respectful. I hope so.



    April 27, 2002, 09:45 PM

    in konqueror (kde3) in linux it keeps trying to drag the picture (think ole) rather than moving the layer around, it's very fiddly to move the layer

    This thread contains 102 messages.
    First Previous ( To view more messages, select a page: 0 1 2 3 ... out of 3) Next Last
    Hosting by Solid Eight Studios, maker of PhotoTangler Collage Maker.