468,505 Members | 1,755 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,505 developers. It's quick & easy.

OpenGL in C++ displayed on a web browser??

Hi I'm new to OpenGL, but have an OpenGL application written in CPP
that I would like to display on a web browser.

Was wondering how this could be done?

Thank you very much
Jul 22 '05 #1
15 4226
oracle411 wrote:
Hi I'm new to OpenGL, but have an OpenGL application written in CPP
that I would like to display on a web browser.

Was wondering how this could be done?


[Reading this post (and replying) in comp.lang.c++]

This is no possible. There is no such thing as "web browser"
defined in C++ language. Please consider posting to a newsgroup
for your OS.

Victor
Jul 22 '05 #2
WTH
"oracle411" <ne*************@excite.com> wrote in message
news:3b**************************@posting.google.c om...
Hi I'm new to OpenGL, but have an OpenGL application written in CPP
that I would like to display on a web browser.

Was wondering how this could be done?

Thank you very much


Well, if you're talking about MSIE, you right an ActiveX control which is
actually very simple. If you're talking about cross platform/browser
support it gets a little bit hairy.

WTH
Jul 22 '05 #3
WTH
> Well, if you're talking about MSIE, you right

Maybe you even WRITE an ActiveX control, LOL.

WTH
Jul 22 '05 #4
WTH wrote:

Well, if you're talking about MSIE, you right
Maybe you mean "write", or perhaps "wright"...
an ActiveX control which is actually very
simple. If you're talking about cross platform/browser
support it gets a little bit hairy.


The only problem is persuading people with any
brains to turn ActiveX support back on again
just to see your OpenGL program.

Does this thing have to be interactive? If not
you can maybe render the image on the server
end then send them a PNG of the result.

Another option is to use shockwave - they do
cross platform 3D stuff in a browser.

Anyway, this is neither a C++ question nor an
OpenGL API question. You really need to decide
what exactly you mean by "web browser", who is
your target audience, what computers they are
likely to be using, then ask again in a newsgroup
related to that...

Prepare yourself for some "hairy" answers.

--
<\___/>
/ O O \
\_____/ FTB. For email, remove my socks.

Governments, like diapers, should be changed often,
and for the same reason.
Jul 22 '05 #5
"oracle411" <ne*************@excite.com> wrote in message
news:3b**************************@posting.google.c om...
Hi I'm new to OpenGL, but have an OpenGL application written in CPP
that I would like to display on a web browser.

Was wondering how this could be done?

Thank you very much


It is possible, but depends on browser and OS.
For MSIE you have to use ActiveX.

Maybe there is a another solution... do google for
php opengl bindings... If this project can help you...

yooyo
Jul 22 '05 #6
You could if you wanted to, have your OpenGL application sitting on a
Web-server. Everytime someone requests the page that you want ur OpenGL
program to be displayed on, you can use a PHP, Perl, JSP or ASP script to
invoke ur C++ program to render the OpenGL screen, do an image screen dump
then use the image libriaries for what ever scripting language you are using
to display the image on to the web-page. Offcourse the only problem with
this is that it won't be very interactive, and the over heads on our
webserver would be horrible.

Your probably better of learning Java and JOGL, then prot your OpenGL
application to Java. Then you can use a Java applet on your web-page.

Both solutions, you would find will work on any client platform.

"oracle411" <ne*************@excite.com> wrote in message
news:3b**************************@posting.google.c om...
Hi I'm new to OpenGL, but have an OpenGL application written in CPP
that I would like to display on a web browser.

Was wondering how this could be done?

Thank you very much

Jul 22 '05 #7
WTH
> The only problem is persuading people with any
brains to turn ActiveX support back on again
just to see your OpenGL program.
Actually, you'd be retarded to turn it completely off as you can just have
it prompt you for installs (and only for signed installs if you wish.)
Anyway, this is neither a C++ question nor an
OpenGL API question.


Oh, wait, this is an "OpenGL API" only ng... Lol. Fungus, cut the guy a
break. He wants to know if any OpenGL people have mixed it with a browser.
Yes he needs to proffer some more information.

WTH


Jul 22 '05 #8
Going a bit off-topic now... Ken Perlin presents some Java-based 3D on his
site. Not GL tough. But it might be interesting.
See: http://mrl.nyu.edu/~perlin/

Gunix

"oracle411" <ne*************@excite.com> schreef in bericht
news:3b**************************@posting.google.c om...
Hi I'm new to OpenGL, but have an OpenGL application written in CPP
that I would like to display on a web browser.

Was wondering how this could be done?

Thank you very much

Jul 22 '05 #9
I am new to openGL, who can tell how I can start with a first openGL
application by starting with C++ builder?
Where can I downlaod C++ builder?

Jul 22 '05 #10
Chris Simmons <di******@hotmail.com> wrote in message news:<cf**********@nntp.itservices.ubc.ca>...
For openGL:
http://www.google.com/search?hl=en&l...al&btnG=Search

To download C++ builder:
http://www.borland.com/products/down..._cbuilder.html


A very good OpenGL website is NeHe Productions, at
http://nehe.gamedev.net/ It has a lot of OpenGL articles, tutorials,
programs, and links. The tutorials have been ported to several
platforms and languages. Also, you can download the OpenGL Red Book.
Go to google and type in OpenGL Red Book. It is a very good reference
to have. www.gamedev.net is a good site too, with active forums and a
lot of articles. www.opengl.org is a very nice site to look for
information on OpenGL too.
Jul 22 '05 #12
Scott Simontis wrote:
A very good OpenGL website is NeHe Productions, at
http://nehe.gamedev.net/ It has a lot of OpenGL articles, tutorials,
programs, and links. The tutorials have been ported to several
platforms and languages. Also, you can download the OpenGL Red Book.
Go to google and type in OpenGL Red Book. It is a very good reference
to have. www.gamedev.net is a good site too, with active forums and a
lot of articles. www.opengl.org is a very nice site to look for
information on OpenGL too.


By the way what's up with Cg (C for Graphics)? Has it become popular?


Regards,

Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 22 '05 #13
Ioannis Vranos <iv*@guesswh.at.grad.com> wrote in message news:<cf***********@ulysses.noc.ntua.gr>...
Scott Simontis wrote:
A very good OpenGL website is NeHe Productions, at
http://nehe.gamedev.net/ It has a lot of OpenGL articles, tutorials,
programs, and links. The tutorials have been ported to several
platforms and languages. Also, you can download the OpenGL Red Book.
Go to google and type in OpenGL Red Book. It is a very good reference
to have. www.gamedev.net is a good site too, with active forums and a
lot of articles. www.opengl.org is a very nice site to look for
information on OpenGL too.


By the way what's up with Cg (C for Graphics)? Has it become popular?


Regards,

Ioannis Vranos

http://www23.brinkster.com/noicys


I started off programming learning C++. My long term goal was to make
games, so a lot of people told me C/C++ was the way to go, at least
for game programming. A lot of people follow that advice, and thus a
lot of people now use C/C++ for graphcis programming. Some people
choose other languages, like C# with Managed DirectX or Python, but I
find C++ to be a powerful language with a large user group, as do many
programmers who want to make games.
Jul 22 '05 #14
Scott Simontis wrote:
I started off programming learning C++. My long term goal was to make
games, so a lot of people told me C/C++ was the way to go, at least
for game programming. A lot of people follow that advice, and thus a
lot of people now use C/C++ for graphcis programming. Some people
choose other languages, like C# with Managed DirectX or Python, but I
find C++ to be a powerful language with a large user group, as do many
programmers who want to make games.

Yes C++ is excellent for games, and OpenGL an excellent portable
framework. I just asked what Cg is doing just from curiosity (and
because it is very much similar to C90 and the C subset of C++).

I had read some time ago, that it was under the blessing of OpenGL
group, or something.
BTW myself have been waiting for OpenGL 2, which will be completely OO.


Regards,

Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 22 '05 #15
Ioannis Vranos wrote:
I had read some time ago, that it was under the blessing of OpenGL
group, or something.


E.g. check this: http://www.opengl.org/about/news/archive2003/feb03.html
where it says Cg overview.


Regards,

Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 22 '05 #16

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Michael Sgier | last post: by
3 posts views Thread by john townsley | last post: by
10 posts views Thread by Bad_Kid | last post: by
4 posts views Thread by tobfon | last post: by
3 posts views Thread by jg.campbell.ng | last post: by
9 posts views Thread by Achim Domma | last post: by
3 posts views Thread by Leon | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.