Results 1 to 2 of 2

Thread: Convert Java SW rendering to OpenGL HW rendering?

  1. #1

    Convert Java SW rendering to OpenGL HW rendering?

    In the process of trying to learn OpenGL I want to take an existing software based basic 3D Doom Like game and convert the rendering code to OpenGL. The problem is that I don't know what pieces of the rendering and transformation can be pushed over to OpenGL calls and what stays in the software. Things like Z-buffer, lighting, object culling, the pipeline and order of processing etc. are what I am not sure about.

    Basically what areas are candidates for switching over to the OpenGL calls?

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Grenoble - France

    Re: Convert Java SW rendering to OpenGL HW rendering?

    For lighting it depends, you can avoid the GL vertex lighting if the software implementation is clever.

    Use GL z-buffer by all means. About culling, you can keep some coarse culling on software, precise stuf will be done with the hardware depth test.

    Order of processing : you mean drawing order of polygons ? No too important if you use the z-buffer. For performance, you may want to draw front to back, but you may not see any improvement.
    What can make a bigger difference is sorting according to GL state, ie. drawing all the poly having the same texture at the same time, to minimize binds.

    Use gl transform commands, so that you can take advantage of hardware t&l if applicable.

    Well, you need to be more precise if you need more info.

Similar Threads

  1. Replies: 5
    Last Post: 05-25-2018, 06:55 PM
  2. Java, rendering multiply Quads ( Cubes )
    By GwanDoya in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-20-2018, 09:26 AM
  3. Problem with model rendering (JAVA, OPENGL 2.1)
    By kaboom in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 10-16-2015, 06:46 PM
  4. Replies: 5
    Last Post: 06-17-2004, 11:51 AM
  5. using basic opengl rendering results for software rendering
    By divide in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 01-04-2004, 06:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean