Results 1 to 6 of 6

Thread: Can we use WebGL only by Javascript?

  1. #1
    Junior Member
    Join Date
    Nov 2011
    Posts
    6

    Can we use WebGL only by Javascript?

    Can we use WebGL only by Javascript?
    Can we use WebGL by other language such as C,c++,Java,.etc?
    Javascript is too simple, it can not construct complex data structure.
    if we use it, how to manage complex scene data?
    anyone knows give some proposal?

    thanks a lot.

    lfyos

  2. #2
    Junior Member
    Join Date
    May 2011
    Posts
    17

    Re: Can we use WebGL only by Javascript?

    The short answer is that webgl only supports javascript.

    WebGL is a means of using 3D graphics in a web application. It depends on OpenGL which is basically a library for generating 3D graphics. WebGL only implements a subset of OpenGL. When programming in C, C++ OpenGL is a more flexible choice. Java applications can also use the full OpenGL library via the JOGL bindings.

    The real virtue of WebGL is that a user can run 3D graphics in a browser. Using javascript in a browser is less complicated and less of a security risk than downloading a C or C++ program.

  3. #3
    Junior Member
    Join Date
    Nov 2011
    Posts
    6

    Re: Can we use WebGL only by Javascript?

    Quote Originally Posted by drteseract
    The short answer is that webgl only supports javascript.

    WebGL is a means of using 3D graphics in a web application. It depends on OpenGL which is basically a library for generating 3D graphics. WebGL only implements a subset of OpenGL. When programming in C, C++ OpenGL is a more flexible choice. Java applications can also use the full OpenGL library via the JOGL bindings.

    The real virtue of WebGL is that a user can run 3D graphics in a browser. Using javascript in a browser is less complicated and less of a security risk than downloading a C or C++ program.
    Thank you very much for your reply.

    what I want is to implement 3D rendering in web browser.

    if I use WebGL and javascript, it's very complex to manage scene data.

    if I use OpenGL, which programing language we employ in web browser?

    would please give me some advices?

    thanks a lot.

    lfyos

  4. #4
    Junior Member
    Join Date
    May 2011
    Posts
    17

    Re: Can we use WebGL only by Javascript?

    I do not know of any good ways to use general OpenGL in a web browsers so WebGL and javascript will probably be your best choice. You might look through the other posts for help on managing your screen data. I remember seeing posts that deal with that subject.

  5. #5
    Junior Member
    Join Date
    Nov 2011
    Posts
    6

    Re: Can we use WebGL only by Javascript?

    Quote Originally Posted by drteseract
    I do not know of any good ways to use general OpenGL in a web browsers so WebGL and javascript will probably be your best choice. You might look through the other posts for help on managing your screen data. I remember seeing posts that deal with that subject.
    thank you very much.

    lfyos

  6. #6
    Junior Member
    Join Date
    Sep 2011
    Posts
    11

    Re: Can we use WebGL only by Javascript?

    Quote Originally Posted by lfyos
    if I use WebGL and javascript, it's very complex to manage scene data.
    I'm sorry but what is more complex in structures in JS than in C/C++?

Posting Permissions

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