Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8535787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:30:56+00:00 2026-06-11T10:30:56+00:00

I am rendering 3D objects using OpenGL. Each object in the 3D world has

  • 0

I am rendering 3D objects using OpenGL. Each object in the 3D world has a bounding box and an associated model matrix for transforming the object from part coordinate system (PCS) to world (WCS). The bounding box is also in PCS. The centroid of each object is compute in WCS and is associated to each object.

Given camera position and target position in WCS:
-> I would like to render all opaque objects (with alpha == 1) from front to back.
-> I would like to render all translucent objects from back to front after rendering the opaque objects.

Since this is the my first stab at implementing a graphics engine I am not sure how a scene-graph will help me here. I think I have to manually sort the objects based on distance from the camera and then render the same based on opaque / translucent objects. Do I really need a scene graph ? How should I go about implementing the engine. I can use other engines available but I prefer not to and would like to implement myself.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T10:30:57+00:00Added an answer on June 11, 2026 at 10:30 am

    Well, you don’t necessarily need a scene graph here, but you do need a render list. That is, every render cycle you clear your list. Every object to be rendered adds itself to the render list. Once you are done, you sort the list based on distance from the camera.

    In your case, you may want to use two render lists: One for translucent objects and one for opaque.

    Once your lists are sorted, you rip through them and render the objects in order.

    You may have confused the need for scene graphs because pretty much any scene graph implementation will also render lists.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Java OpenGL (JOGL 2.x, built from Git source). I'm rendering my scene
My understanding of OpenGL rendering was that without a depth test, objects would be
Getting a rendering error for this form: 'NoneType' object has no attribute 'widget' http://dpaste.com/88585/
I'm trying to wrap my head around the OpenGL object model on iPhone OS.
I'm having trouble with OpenGL lighting. My issue is this: When the object has
I am attempting to dynamically generate cube-maps in OpenGL using a multi-pass rendering system.
Recently I started using OpenGL in C++ for some 3D rendering, but oddly enough
I am using OpenGL and C to create a 2D rendering engine. I am
I'm rendering into an OpenGL offscreen framebuffer object and like to save it as
I am using off screen rendering using opengl FBO and glut on a MAC

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.