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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T09:34:49+00:00 2026-05-21T09:34:49+00:00

Im using OpenGL with c++ to make a game. and right now, im wondering

  • 0

Im using OpenGL with c++ to make a game. and right now, im wondering how i would be able to turn 3D coordinates into 2D positions for example: drawing a 2D health bar over a 3D model’s head, or something along those lines. xD

so anyways, im wondering how i would be able to set this up where it can be used in SFML. right now im looking up some information but i dont completely understand the methods…

Basicaly, im asking how would i make 3D opengl coordinates convert to 2D coordinates onto the screen using SFML

im also wondering how i would convert 2D coordinates back to 3D, just so i know that too.

also some example code would be nice, just so i get a better picture

thanks for reading

-Molma

  • 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-21T09:34:49+00:00Added an answer on May 21, 2026 at 9:34 am

    Since you’re using OpenGL, I’d suggest gluProject for mapping from 3D to 2D and gluUnProject for mapping from 2D to 3D (note @ChrisF’s comment on unprojecting).
    Though I gotta admit, I got no real experience with OpenGL, I just know the terminology for what you wanted and googled for it. 🙂

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

Sidebar

Related Questions

I'm trying to make a game in C++ using SDL. I would like to
I'm using OpenGL ES to make a game on the iPhone. Unfortunately, I see
I am trying to make a simple pong game using opengl-es. I have checked
I am attempting to make a simple game using C++ and OpenGL and I
I'm using C++ and OpenGL to make a basic 2D game, I have a
I'm using GLKit (OpenGL ES2) in Objective-C to make an iPhone game. I haven't
I'm using OpenGL ES to make a game in Android. I got some code
Im using openGL with GLKit to make a tiles-based game. In the game, around
I want to make a 'Pong' game using lwjgl. For now, I made 2
I've been trying to make my own basic .obj (Wavefront) renderer using the OpenGL

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.