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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:47:48+00:00 2026-06-13T16:47:48+00:00

I have an NSOpenGLView setup and working great, but I need to draw a

  • 0

I have an NSOpenGLView setup and working great, but I need to draw a rectangle that always completely fills the view and is not clipped (does that make sense?). I have a view that is always going to be 1100×850 pixels in size. Basically, what I am trying to do is find a way to ensure that a y value of 0.4 is always going to draw the object at the very top of the view, -0.4 at the bottom, ect. I do also need it to have some sense of perspective though, so I cannot do glOrtho

Is there a way to do this?

If I did not explain it well, here is what I mean:

---------
|   |   |
|   |   |
---------
  • That center line always has an x value of 0.0.

  • The left line has an x value of -0.55, the right has a value of 0.55

  • The top line has a y value of 0.4, the bottom has a value of -0.4

So, I need a rectangle with the following vertices to completely fill, but not leave, the screen:

{
  -0.55,  0.40, 0.00,
   0.55,  0.40, 0.00,
   0.55, -0.40, 0.00,
  -0.55, -0.40, 0.00,
}
  • 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-13T16:47:50+00:00Added an answer on June 13, 2026 at 4:47 pm

    There’s no requirement that everything you draw use the same projection matrix. Draw your ‘perspective’ part of the scene with a perspective matrix, then switch to orthographic matrix and draw your quad.

    Make sure to disable the depth test for the second part, as the orthographic values won’t make any sense compared to the perspective values.

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

Sidebar

Related Questions

I have create my own NSOpenGLView class, right now the data that i want
Have a problem that seems easy on paper but i'm having a big problem
I have made a window with an NSOpenGLView that I am rendering openGL content
have numerous tests working, but my actual test of some objects is failing and
I have a class called ModelView which inherits from NSOpenGLView. When my program runs
Have deployed numerous report parts which reference the same view however one of them
have been using no DOCTYPE but rather simply starting with <html> as per HTML5
Have a simple form that has a PictureBox in one location. I want to
I have added an NSOpenGLView to my MainMenu.xib file, and have implemented drawRect to
Have not done this before, so obviously I suck at it. Here 64 pixels

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.