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 9050807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T12:44:46+00:00 2026-06-16T12:44:46+00:00

I have a 3D scene I’m drawing and I want to draw a rectangle

  • 0

I have a 3D scene I’m drawing and I want to draw a rectangle for a dialogue text that will be stretched for all the screen’s width, what’s the best way to achieve this, having performance in mind?

I found about glOrtho() that I can use for exact pixel placing, but since it’s a matrix multiplication task, won’t my app feel much heavier during scenes with dialogues?
If yes, should I try to find a math solution to find the X position of my left window corner according to some Z distance and draw a QUAD from there? (Is this even possible?)

  • 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-16T12:44:47+00:00Added an answer on June 16, 2026 at 12:44 pm

    glOrtho() is the way to go.

    In the course of OpenGL’s rendering Pipeline, during the Primitive Assembly stage, every vertex will be transformed (projected) from eye coordinates to clip coordinates. Whether your projection matrix is used for 3D perspective or 2D orthogonalization, it’s still one matrix multiplication per vertex before Rasterization starts.

    glOrtho() will change your projection matrix to an orthographic one but the matrix only needs to be generated once per frame and the equations required to do so are very simple:

    enter image description here

    (image credit: MSDN)

    Once you have a projection matrix, don’t let the thought of matrix multiplication scare you. It’s exactly what video cards are designed to do and it’s hardly a frightening task for any processor or GPU these days.

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

Sidebar

Related Questions

So I have a scene graph that holds all my objects, and I have
On my scene i have many objects that i want to rotate at the
I have a 3D scene and I want litter it with X number of
I have a huge crazy scene in my story board that has 36 different
I have a scene that stores vertices in 3D space. What i would like
I have a flash scene converted with Google swiffy to html5. All is fine
I have a scene that I'd like to reuse, rendering the scene in two
I have a scene that contains a group whose content consists of a large
i am using AndEngine. I have a scene that i would like to reuse
I have a level scene that i allow the user to select a level.

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.