I'm trying to draw a 2D HUD over a 3D Scene and therefor I'm useing the opengl rendering set up on SDL. So the question is : Is it possible to Draw 2D things with SDL over the 3D scene or do I need to draw them with opengl? Because I've experienced that if I create a SDL renderer the OpenGL scene will disappear and be overdrawn by the SDL renderer.
Drawing 2D HUD over 3D OpenGL sence with SDL
1k Views Asked by SilentStorm At
1
There are 1 best solutions below
Related Questions in OPENGL
- setting OpenGL version in objective-C
- How to run OpenGL version 3.3 (with Intel HD 4000) on Ubuntu 15.04
- Can linear filtering be used for an FBO blit of an MSAA texture to non-MSAA texture?
- How to get shader version from QOpenGLShader?
- "Capture GPU Frame" in XCode -- iOS only?
- Difference between glewGetString(GLEW_VERSION) and glewIsSupported
- Tesselation result flickering - OpenGL/GLSL
- Water rendering in opengl
- Texture mapping consuming physical memory
- Rotating a Cube using Quaternions in PyOpenGL
- Switching from perspective orthographic projection in OpenGL
- FreeType2 and OpenGL : Use unicode
- Should Meshes with and without Skeleton use different Shaders?
- How to get accurate 3D depth from 2D screen mouse click for large scale object in OpenGL?
- Trying to load 2d texture with glTexImage2D, but just getting blank
Related Questions in 3D
- Is there a way to import Collada files into Java?
- 3d mouse aim camera 3rd person vertical C#
- 3D B-Spline approximation
- MatLab 3-vector plot/mesh with colour-scale
- Matplotlib 3d: surface does not cover a line
- Draw a sphere on a billboard with world normal from a pointlist
- babylon skybox from hell
- Create histogram
- How to get accurate 3D depth from 2D screen mouse click for large scale object in OpenGL?
- Custom WhirlyGlobe Skin
- Converting 2D images to 3D
- How to setup camera to point at object
- Finding 3D coordinate of object
- MATLAB 3D sliding window on a volume
- How to check for collisions in ThreeJS?
Related Questions in 2D
- Algorithm for drawing tiles on screen
- Object doesn't moving well in rotation
- Cocos2d : Shooting a ball in the direction of the mouse click/Touch
- Error: cannot convert 'int (*)[3]' to 'int (*)[100]' for argument '1' to 'void repl(int (*)[100], int, int)'
- How to add a string to a 2D array in C
- Fitting 2D sum of gaussians, scipy.optimise.leastsq (Ans: Use curve_fit!)
- Java 2D game random rectangles
- 2D perspective transform in JavaScript
- List of 2D Arrays with numpy
- Make two physics objects not collide but do detect collisions in Unity
- Index of an array from a 2d np.array in Python?
- Generate 2D grid with alternation probability
- how to add Scoring to unity3D 2d top down car game?
- Blurring in PyGame
- Destroy Gameobject according to distance value
Related Questions in SDL-2
- SDL2 Linker Errors with REAL
- SDL2 main game loop
- SDL2 understanding the basic model
- SDL_PollEvent() loop is not executing. Are no events being queued?
- SDL_Keycodes are too big for storage
- Why does my working directory change to C:\Windows\System32 when I use a Console subsystem
- Nim and SDL2 trouble with Rect
- SDL_RenderSetClipRect works different on different platforms - how detect whether measured from top or bottom?
- SDL2: set input focus on a window
- SDL_LoadBMP() is successful, but the window becomes entirely black
- SDL2 - Vsync not working
- How to work without memory limit in android jni?
- GLEW can't find GL version
- Can't draw with opengl version greater then 3.1 with SDL
- SDL_Init fails on linuxbrew while system wide version works
Related Questions in HUD
- Drawing 2D HUD over 3D OpenGL sence with SDL
- How to locate scene over the hud Andengine
- iOS7 SpriteKit how to implement text-heavy HUD elements?
- Showing a HUD whilst an image is downscaled in size
- Updating variables in addcontentview - android
- How do I overlay a textview over a glsufaceview(android)
- How to make view partials in Objective C?
- How make a firemonkey HUD window
- iOS Urban Airship progress and HUD
- Opengl drawing 2D over 3D not working
- ContentLoadException was unhandled - Error loading "Arial". File not found
- Input Letter in rectangle drawing ios
- Mac OSX Overlay
- Trying to make Qt HUD in OSG, camera issue
- HUD with multiple lines
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
IIRC, OpenGL has functions for drawing 2D elements. You could render the 3D to a texture and then render 2D over it. If you must use SDL, you'll need a method to copy an OpenGL texture to an SDL surface/texture.