Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Displaying 3D interface on multiple platforms

Displaying 3D interface on multiple platforms

Scheduled Pinned Locked Moved C / C++ / MFC
c++javagraphicsgame-devhelp
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dustin Henry
    wrote on last edited by
    #1

    I am currently writing an interactive cloth simulation program and I am going to need the GUI to be displayed on a variety of platforms including a native PC application and the web. The problem is with the latter. I am currently writing this app using C++ and OpenGL, and I'm not quite sure how to get it to display web side. I know that there are OpenGL implementations for Java, but I don't know Java that well and do not have the time to really learn it. I've considered separating the simulation code into it's own dll and writing a renderer for each platform, but I'm not even sure what data will need to be sent between the two applications. Should the simulation dll actually include an OpenGL implementation and simply pass final rendered scene to the display app, or should the display app handle all of the rendering. Any suggestions or advice would be very helpful. Thanks in advance, Dustin

    N 1 Reply Last reply
    0
    • D Dustin Henry

      I am currently writing an interactive cloth simulation program and I am going to need the GUI to be displayed on a variety of platforms including a native PC application and the web. The problem is with the latter. I am currently writing this app using C++ and OpenGL, and I'm not quite sure how to get it to display web side. I know that there are OpenGL implementations for Java, but I don't know Java that well and do not have the time to really learn it. I've considered separating the simulation code into it's own dll and writing a renderer for each platform, but I'm not even sure what data will need to be sent between the two applications. Should the simulation dll actually include an OpenGL implementation and simply pass final rendered scene to the display app, or should the display app handle all of the rendering. Any suggestions or advice would be very helpful. Thanks in advance, Dustin

      N Offline
      N Offline
      Nemanja Trifunovic
      wrote on last edited by
      #2

      A way to do it would be to render the image to a memory bitmap within an ISAPI extension[^] That way you could use the same C++ OpenGL code for both the desktop and web version.

      Programming Blog utf8-cpp

      D 1 Reply Last reply
      0
      • N Nemanja Trifunovic

        A way to do it would be to render the image to a memory bitmap within an ISAPI extension[^] That way you could use the same C++ OpenGL code for both the desktop and web version.

        Programming Blog utf8-cpp

        D Offline
        D Offline
        Dustin Henry
        wrote on last edited by
        #3

        Have you had any experience doing this with real-time 3D and know what the performance would be like? Most of the rendering will be done by user interaction, i.e. user controlled rotation, but we may need a free-spinning model as well. Also, it has been quite a while since I've done any web programming. How exactly would I embed this in the web page. I understand if I was generating a static page I could just write all of the HTML out via the WriteClient function, but if I am just using the program to display an ever changing image what would be the best process. I know I could use JavaScript controls to pass parameters to the dll, but how do I actually place the image on the page? Am I writing raw image data to the stream or do I need to save an image to disk and have the page load it? Sorry for all of the questions, I'm just trying to wrap my head around all of this so I can detail an accurate time frame. If you had any examples of displaying an image using an ISAPI extension it would be greatly appreciated. Thanks, Dustin

        N 1 Reply Last reply
        0
        • D Dustin Henry

          Have you had any experience doing this with real-time 3D and know what the performance would be like? Most of the rendering will be done by user interaction, i.e. user controlled rotation, but we may need a free-spinning model as well. Also, it has been quite a while since I've done any web programming. How exactly would I embed this in the web page. I understand if I was generating a static page I could just write all of the HTML out via the WriteClient function, but if I am just using the program to display an ever changing image what would be the best process. I know I could use JavaScript controls to pass parameters to the dll, but how do I actually place the image on the page? Am I writing raw image data to the stream or do I need to save an image to disk and have the page load it? Sorry for all of the questions, I'm just trying to wrap my head around all of this so I can detail an accurate time frame. If you had any examples of displaying an image using an ISAPI extension it would be greatly appreciated. Thanks, Dustin

          N Offline
          N Offline
          Nemanja Trifunovic
          wrote on last edited by
          #4

          Dustin Henry wrote:

          Have you had any experience doing this with real-time 3D and know what the performance would be like?

          No, not really :)

          Dustin Henry wrote:

          How exactly would I embed this in the web page.

          I would have a web page being a plain old html, and the ISAPI extemsion would produce only the image. That is, you would have an img tag with href pointing to the ISAPI extension. Something like this article shows[^], except that you would not read the image from a resource file, but generate it on the fly.

          Programming Blog utf8-cpp

          D 1 Reply Last reply
          0
          • N Nemanja Trifunovic

            Dustin Henry wrote:

            Have you had any experience doing this with real-time 3D and know what the performance would be like?

            No, not really :)

            Dustin Henry wrote:

            How exactly would I embed this in the web page.

            I would have a web page being a plain old html, and the ISAPI extemsion would produce only the image. That is, you would have an img tag with href pointing to the ISAPI extension. Something like this article shows[^], except that you would not read the image from a resource file, but generate it on the fly.

            Programming Blog utf8-cpp

            D Offline
            D Offline
            Dustin Henry
            wrote on last edited by
            #5

            Thanks for the help. I think I might try to use a java applet image viewer that can constantly ask for updates from the ISAPI dll and display the generated raw image data. Hopefully that will limit the amount of Java I need to learn but still get the job done.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups