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

  • SEARCH
  • Home
  • 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 3402628
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:09:41+00:00 2026-05-18T05:09:41+00:00

Since layered rendering with a geometry shader in OpenGL seems a bit dodgy on

  • 0

Since layered rendering with a geometry shader in OpenGL seems a bit dodgy on some drivers/hardware, I would like to substitute the functionality with my own solution. This by using a big texture as rendertarget, with for example a resolution of 300². Then simulating layered rendering by rendering to 100² chunks in the texture. With that resolution it would result in 9 tiles/layers as shown in the mockup below:

Tiles

The question is; how to this with OpenGL? Supposedly with help of a geometry shader that renders the scene to the different tiles in one pass.?

  • 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-05-18T05:09:42+00:00Added an answer on May 18, 2026 at 5:09 am

    There is no simple way to do it. You can use geometry shader to hack it together but it will most probably be slow, as you have to perform a lot of geometry instancing and then use the geometry shader for vertex shading as well because vertex shader is out of the game.

    Basic approach to the problem:

  2. Leave vertex shader empty and just return the vertices unchanged
  3. In geometry shader create 8 new instances of every triangle (together you will have 9 triangles)
  4. On each of the triangles run a function that will project the triangle. According to your screenshot, you will need 9 different view matrices to be sent to the geometry shader.
  5. Now arrange the triangles so that each renders on a different part of the image. Note that after the projection, the coordinates are in the range [-1; 1] so you need to divide the coordinates of each triangle by 3 and then shift the corresponding triangles by multiplies of 1/3.
  6. If you calculate phong shading per pixel, you will need to send the camera position to the fragment shader with each vertex because the fragment shader has no clue about the screen being divided and you have 9 different camera positions.
  • 0
  • Reply
  • Share
    Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
    • Share on WhatsApp
    • Report

Sidebar

Related Questions

Since Rails is not multithreaded (yet), it seems like a threaded web framework would
If there was a line of business application layered like this, would this be
Since many modern browsers support CSS3, I would like to use many CSS 3
Since converting my project to ARC, it seems the analyzer is a bit in
Since debate without meaningful terms is meaningless , I figured I would point at
since they have same rendering engine, this problem shows in both. it works great
Since Java char is 16 bit long, I am wondering how can it represent
Since I added some scrollTop -animation, some parts of my callback get called twice:
In my last project, I applied DDD N-layered since the application is quite complex
Since I am new to using Unity 2.0, I need some pointer or suggestion

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.