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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:30:25+00:00 2026-06-13T06:30:25+00:00

For my personal project I need to: Produce a perspective projection from a 3D

  • 0

For my personal project I need to:

  1. Produce a perspective projection from a 3D objet to a 2D plane (on a point defined in the space, which will be the camera).

  2. Get the exact area/points coordinates of the perspective projectio

  3. Produce the perspective projection of multiple 3D objects where some objects may be behind others.

  4. Render the scene (only one image, there won’t be any animation, so no need for a realtime rendering).

For points 1,2 and 4 I think I’ve found a way to do that using PyGame as described here:
http://codentronix.com/2011/04/21/rotating-3d-wireframe-cube-with-python/

But for point 3 I’m kind of stuck, because even if I can get the perspective projections for each of my objects, how can I know what object is really visible and which (full object or part of it) is not?

I really need to exactly know what parts of objects are visible and what parts are not, thus my ultimate goal would be to have a matrix of my screen image with the areas of every object’s projection clearly defined.

For example, if the matrix contains all pixels of my screen image, and we have 10 objects, we would get 0 where there is no object, 1 where we can see object n1, 2 where object n2 is visible, etc..

I must add that I’m an accomplished developer in Python and many other languages, but I never did any game-related nor rendering development before.

Can someone help me get on the right tracks?

PS: side-question: if you could also point me to a better optimized implementation of perspective projection and rendering than PyGame, I’d be very interested!

  • 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-13T06:30:26+00:00Added an answer on June 13, 2026 at 6:30 am

    I suggest to use OpenGL for such tasks. Learning basic OpenGL (and this looks very basic) is not that much of an effort. Take a look here (well known tutorial) and here (basic example using Python, Qt and OpenGL). I think with some effort this might take you a day to get started.

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

Sidebar

Related Questions

I am involved in a personal project which will require pretty extensive knowledge of
In my personal of Iphone development project I need to retrieve data from plain
I would like to start a personal project that will give me a lot
I am working on a personal project where I need to manipulate values in
I'm working on a personal project problem. It's a donation management model. I need
I have a project where I need to extract a file from a zip,
For a personal project I need to run several machine learning algorithms against different
I am using Lucene.Net in a personal project and need to handle to cases
I'm working on a small personal project and I need to create a non-rectanguar
I am trying to create a small personal project which uses EF to handle

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.