Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Get a devDuck
Rubber duck debugging has never been so cute! Get your favorite coding language devDuckBuy Now
Search - "opengl"
Microsoft is investing in Git, VSCode, Electron, Github, Bash-on-Windows. Things that decentralize and help prevent lock-in.
Apple is taking away the only universal cross platform graphics system (OpenGL), locking developers into Metal, and taking away our escape keys.25
Me: I know so many languages, I don't need to learn c++ to follow along with this 3D OpenGl tutorial!
Narrator: Oh, but he did need to know c++ to follow along with the 3D OpenGl tutorial.4
Y'all are ranting about Microsoft GitHub when Apple decides to deprecate OpenGL support on macOS.
Gaming on Mac? Pah, Linux is where the fun happens.12
(Qt + OpenGL) didn't piss me off for a whole week..
My point clouds are rendering great..
I guess I could speed it up a little bit..
I'm doing good..
I need to render point clouds in OpenGL for a project I'm working on. The problem is it just becomes too damn slow when the point cloud size increases. So I'm trying to use LOD methods and nested octrees to speed things up. Also, I need to render text too in my OpenGL scene. So now I'm stuck trying to show proper labels using Qt and OpenGL which is completely pissing me off by the way. And I'm not doing the actual speeding up thing I was working on earlier on and before that I was working on the actual function of my program. So I'm now deviated from the deviation.
Fuck my brain.5
I wanted to create a tiny game in SLD2.
Friend made me do it in OpenGL.
Do it in openGL he said.
It will be easy he said.
I cant stop crying.9
Seeing someone prototype a 3D game with complex lighting using OpenGL in a 15 minute video (It was sped up about 4x but, still, fuck me)
Using c. Not c++.
He also did 3D graphics in BASIC from scratch to explain how they work, generally.15
After almost 3 years of hard work here’s my Bedroom setup. I produce music as a hobby in addition to dev’ing and 3d graphics(blender/VR/opengl) stuff. Sorry for the unmade bed 😅. Build my first custom pc last October
- I7 7700K
- Asus OC 1080ti
- 32 GB DDR4
- 2 512GB Samsung 960 pro (one for each os)
Feel free to ask about anything else14
Holy shit! Apple deprecates OpenGL.
How dumb can they be? They really want to be this arrogant kid in the corner that only plays with itself, won't they?10
I added ~800 lines of code to my graphics engine today and not a single bug (that I discovered so far :D )12
I like playing tf2.
I play every video game with max brightness on the lappy.
The problem is that when I alt tab back to anything else, eg chrome, I get dazzled and my eyes hurt.
I'm on linux and accidentally noticed that I can connect to the X server and do stuff.
So I'm listening for events with the PropertyChangeMask, and when the active window has the name "Team Fortress 2 - OpenGL", I run "light -S 100", otherwise I use what I already had.
Very happy with this hack, instant brightness changes on alt tab.2
What I have learned by learning OpenGL for about 2 days.
1) C++ and its compilers are clunky as shit
2) There is a minimal amount of entry level docs
3) You need 5th grade math to do programming
4) Comment every single line to not get lost in OpenGL API
5) The include directory is not in the project but at /usr/local/include
6) Giorno's theme from Jojo's Bizzare Adventure is fucking awesome8
"OpenGL, OpenCL deprecated in favor of Metal 2 in macOS 10.14 Mojave". Another reason I'm never buying another Apple computer.4
Decided to try OpenGL
I'm turning 16 in a week but I already pulled all of my hair out and it turned grey13
DirectX. Just plainly because DirectX is _used_ and propagated comercially. That lured game developers to it and glued them to Windows.
If I could change something in the past, I'd want to switch Win to Linux as a game platform. There's practically no sane reason to fix yourself to a single platform, especially to Windows. Hell, I'd even go for Mac because it uses OpenGL!
And don't give me that fancy DirectX 12 description you've seen on some Microsoft's or "professional" gaming website. DirectX is evil.5
Had Computer Graphics project to complete with OpenGL and C🙄
Night before submission * eyes are drooping*
How to stop the transition of the character?
Solution: Write an empty function.
😎 Problem solved.7
I'm handling this super complex engine development just fine, but I get stuck on silly stuff like preparing the .md file.18
I was super unproductive the past two weekends, since I lacked the motivation to code. But today I sat my lazy ass down and did some major refactoring in the engine - seems like nothing had been broken.7
sudo apt install love
And I install a 2D game development framework based on Lua and OpenGL..
Maybe this engine will never hurt my feelings... 😕3
All the time while I'm programming I hate Java.... Don't hate me now :D I'm learning Java in high school. I very love very fast programming languages such as C and C++, so this is why I don't like Java, but there are some reasons why I like Java. I just started learning how to create own window. What the hack is this? This is so simple. I tried to create window in C/C++ with OpenGL, just blank window with color. Complicated..... But with java it's fairy tale.
You can add me now to Java familly, but remember I also love C++.
So here your are, Hello World Java FX app :D
Create window application similar scratch.17
Just installed linux (Ubuntu 16.04.3 LTS x64) because windows update was being a cunt, instantly, it all fell into place and I got it fully running with minecraft (using generic driver, but it actually works pretty well, don't worry I will get the proper one tomorrow) and a desktop icon for it within two hours compare to windows (update) taking 4 days to do barely any updates, not accepting java or graphics drivers, which it requires because fuck opengl with the default drivers.
Fuck windows. Hooray for linux!
Now back to programming...
Thanks for putting up with me but I just need to vent because I felt like I couldn't program (and I didn't) because of FUCKING DOOLALY WINDOWS 8!
Btw thanks to the local charity shop for introducing me to (SUSE) linux when I was like 11, giving me a hope in hell of using linux. I now have around 11 bootable linux disks and 1 bootable flash.3
'yes' in linux shell has become my favourite command when i discovered it. it has a careless touch to it, like "yeah whatever just do the thing".
also, i like glutMainLoop. a saw doll inside my head says "let the game begin!" each time i type this function.1
I have made my repository public today! This is nearly as exciting as publishing a new fanfiction :D9
Hitting the deadline rush with my university projects now, it's putting me all over the place jumping between C++ & OpenGL, C# in Unity and Java/XML for Android development, one thing at a time would be nice! Also first post, hello community :)4
Protip: always account for endianness when using a library that does hardware access, like SDL or OpenGL :/
I spent an hour trying to figure out why the fucking renderer was rendering everything in shades of pink instead of white -_-
(It actually looked kinda pretty, though...)
I'd used the pixel format corresponding to the wrong endianness, so the GPU was getting data in the wrong order.
(For those interested: use SDL_PIXELFORMAT_RGBA32 as the pixel type, not the more "obvious" SDL_PIXELFORMAT_RGBA8888 when making a custom streaming SDL_Texture)7
Ditched MacOS in favour for Fedora.
First thing that I notice is the increased framerate and more OpenGL extensions in OpenGL extensions viewer.
Never imagined a day that the video drivers in Linux surpasses these of MacOS.3
Fuck android studio updates, fuck OpenGL libraries, fuck nvidia graphics on Linux, fuck it all to hell.
These bullshit updates keep breaking stuff in apps, and then the emulator itself gets broken somehow, then I need to run a bullshit shell script I found on some esoteric Arch Linux forum to symlink OpenGL .so libraries on my Linux machine every time I update because fucking OpenGL and nvidia crappy drivers on Linux, which also broke my xrandr configs and segfaulted the xfce4-display app.
Seriously that's horseshit. Linux will never ever ever break through the glass ceiling and become idiot-proof non-tech user friendly like the botnets Winblows and macPrison.7
You see a talented developer, and you see all their github pages, and everything is just so professional and good
And then you realize "bruh I wanna be like this"
And then you realize you will never be like this, and just admire the other person's work
It's a strange feeling. Something between strong envy and just awe. More envy than awe
Example: this guy wrote a whole OpenGL bind for GoLang and made it dead simple to use. And it's all open source. And it's all under MIT license.
His name is faiface and he is my idol honestly, mostly because of pixelgl.3
Was interested to learn about OpenGL and WebGL. Just found out no fucking drivers exist for my graphics card on Ubuntu.
WTF AMD !!! Atleast provide some compatibility for your product if I am purchasing it !!!8
This is fuck crazy and is driving me nuts already. I have VEGA 8 integrated GPU into my Ryzen 5 2500U laptop and RX560X 4GBVRAM as dedicated GPU. Like thats pretty decent hardware right there. But well when you try to game on linux. And not wine but native Deus Ex mankind divided then man the fps are in 15-20 range if you are in good scene. This is fucking terrible. IDK if i have something wrong set up or what but its unacceptable to have that performance. But today i tried No Mans Sky. OpenGL game and well i run it and big suprise its just white screen. But then i notice in logs that its asking for OpenGL 4.5 which MESA 18.2 doesnt have so i build 18.3 from git and that one implemented 4.5. Great game now runs. And performance isnt actually bad. OK i might actually get decent fps from this game after twekening. OK i see that it se my VRAM to 64mb ok lets change that to 4096. Texture to Low and turn off HDR. Game loaded much fucking more quickly now. Like really fast. Probably SSD did that. Now i really dont know. Is my system fucked up or what that i cant run games at pretty good fps ? Funny thing ? Native port from feral games of Tomb Raider 2013 runs only on 1 core and leaves other at idle. Like WTF ????? I will probably download deus Ex again and try to figure out WTF is wrong.
Also i dont want AMDGPU-PRO drivers since i would need to downgrade my kernel which i cant do due to git mesa.
Any ideas or the games on linux are really that poorly optimized on AMD and to add up linux ?6
There are few things that I regret like I didn't start with SDL or openGL sooner but there is few things that I fucking do not regret.
One of them is that I become part of this community.
I regret that I didn't know that when you reach10K your motifs will be 99 all day
So I'm doing some OpenGL stuff in C++, for debugging I've created a macro that basically injects my error check code after every OpenGL API call. Basically I don't want any of the code in release builds but I want it to be in debug. Also it needs to be usable inline and accept any GL function return type. From what I can tell I've satisfied all requirements by making the macro generate a generic lambda that returns the original function call result but also creates a stack object that uses the scope to force my error check after the return statement by using the destructor.
Basically I can do:
Etc where the GL call can be a function parameter or not.
So my question is, is the code shown in the picture the best way to achieve my goals while providing the behaviour im going for?13
One of the coolest projects I've worked on recently was this little adventure game I made for a game jam a while back, It was made from scratch with Golang and C over two days. It also features procedural level generation (that technically should allow the user to walk in one direction for at least 7 decades).7
In a class i attended we learned about advanced image synthesis and had to write OpenGL in the exercises.
It was incredibly difficult and i put incredible amounts of time into it and solved the tasks and was incredibly happy when it started to work ☺️2
Discovered pro tip of my life :
Never trust your code
Achievements unlocked :
Successfully running C++ GPU accelerated offscreen rendering engine with texture loading code having faulty validation bug over a year on production for more than 1.5M daily Android active users without any issues.
History : Recently I was writing a new rendering engineering that uses our GPU pipeline engine.. and our prototype android app benchmark test always fails with black rendering frame detection assertion.
Spend more than a month to debug a GPU pipeline system based on directed acyclic graph based rendering algorithm.
New abilities added :
Able to debug OpenGL ES code on Android using print statement placed in source code using binary search.
I was aware of the issue over a month and just ignored it thinking it's a driver bug in my android device.. but when the api was used by one of Android dev, he reported the same issue. In the same day at night 2:59AM ....
Satan came to me and told me that " ok listen man, here is what I am gonna do with you today, your new code will be going production in a week, and the renderer will give you just one black frame after random time, and after today 3AM, your code will not show GL Errors if you debug or trace. Buhahahaha ahhaha haahha..... Puffff"
And he was gone..
Thanks satan for not killing me.. I will not trust stable production code anymore enevn though every line is documented and peer reviewed.
Is it just me or does it seem like everyone is "making their own game" but they mean they got opengl to render a triangle.4
- Continue working through my CS degree
- Finish my current game I'm working on
- get an Internship
- Learn OpenGL or Vulkan
- Learn C (I already know C++ and C#)
I got some work ahead of me, but this seems doable! I'm excited for the next 100 weeks!
Updating to mesa 18.3 (mesa-git aur) just because of No Man`s Sky to fix white screen issue since openGL 4.5 is implemented there and 18.2.3 only has 4.4 Well it has a good point in it. I will be always up to date on mesa and llvm.30
A few days ago I decided to learn C by writing a simple Minecraft clone. Guess who has less than 26¼ hours to do university exercises for two weeks. And It's not like I had double that time because of Christmas Holidays.
I hate Apple since they dropped OpenGL and Nvidia support. My question to them:
WHAT THE FUCK IS THE PURPOSE OF DROPPING IT? YOU ARE JUST GETTING MORE HATE10
guess what - it’s my anniversary of first joining devRant. I joined exactly 0x16d days ago, and it’s been great.
ive learnt so much, made more stuff, and y’all are great.
id like to follow up on my resolutions from last year ( https://devrant.com/rants/364344/... ), and im proud to say i did everything except the 3d game (i was looking opengl and got distracted by opencl).
when i first saw devRant, i was on a plane, coming home. i saw a news article and decided to check it out, and when i joined i quickly realized i was the second youngest on the platform. one year, 316 rants, 2181 comments, and a score of 18594++ later, here i am.
thanks for this wonderful platform!20
Apparently "in" and "out" are the new "varying" and "attribute" in OpenGL's shader language...
Even buying a new graphics card can f*ck up your whole day! 😥2
I was 8 and I was at grandpa house and he had computer lying at ground while it was opened.
It looked cool to me so I asked him to learn me and he did learn me the total basics then when I got home I downloaded C compiler (damn I don't know which one it was) and well learnt total basics of C and made few simple programs.
And I continued to learn even when I was 10 made couple of basic apps (calculator and that kind of stuff) and I continued learning and well after 10 years here I am.
Almost18 years boy that knows C pretty good (10 years experience)
While that 10 years I started to learn C++ too and Java too but I still learnt C the most probably cause I never stoped learning it.
4 years back I found out about SDL and learnt it damn it was cool now I want to learn OpenGL(Yea I'm learning it kinda late but oh well)2
I encountered every possible bug setting an Ubuntu VM environment to test my engine. I manually created all the eclipse projects and it's now available on the repo - it compiles and runs.
Suggestions for a good CMake guide?4
On monday I had to present my 3D graphics assignment to a teacher at uni. I was very nervous at the beginning, but the presentation turned out very well. They liked my project so much that they told me that I could help with one of their research projects, and they even offered me a teacher/demonstrator position. Is this reality or am I dreaming?4
So I'm struggling to finish this library which among other things is supposed to write flowing text. And this one's taking foreeeever and I'm hating it so much already.
I just keep daydreaming of starting a "simple" platformer. And then I go, "hm the parallax must be nice, it needs to have as many layers as possible, oh and look at this video, here they're even zooming and each layer rescales differently, good effect, I need to add that too. Also a plain platformer is just boring, it needs to have adventure elements, and even RPG too, yeah why not. Hm, it needs to have some motion blur, but oh I need this 1/48 shutter speed to make it look cinematic. Okay how do I go about adding this blur effect? What? Libgdx doesn't provide one out of the box? I need to use opengl shaders? A shader, eh... I'm not even sure what that is. Okay, let's see how to do it. Wow that's a total mess and resource hungry, and how will I calculate it all as to make it match the 1/48 thing?"
You know... Simple. And in the end, I'll abandon the library and won't get anywhere with the platformer (as usual).
Tsk tsk tsk5
OK so after working with SDL for a bit, we have a circle rendering!
Next step is to start working on keyboard input and then onto importing sprites, first time building a game engine from the ground up and working with Vala in this capacity...
EDIT: Gif in comments because it doesn't want to work .-.8
Be me, wanting to try out PyOpenGL.
Lets start by drawing a rectangle.
And now add some text?!
NOPE CANT RENDER FROM TTF OR SOME OTHER STUPID SHIT! YOU NEED TO CREATE A BITMAP FONT. WHICH IS THE MOST INEFFECTIVE BS IVE EVER SEEN.
K but there is surely a library for Python which enables the usage of text in OpenGL? Yes but its last support was 12 years ago.
FFS WHAT IS THIS GARBAGE?
At the end i found out cpp uses freetype to convert each character of a font to a bitmap with the according spacing.
THIS SHOULD BE WAY SIMPLER!5
How to earn a lot of money as a programmer?
So this question might sound a little naive and too simple, but earning a lot of money is what we all want after all right? Collecting experiences from people in the business should be a good idea.
So this is the position I am in:
I am a German student in my 13th year of school (which means I will graduate this summer) and I am very interested in information technology. I know C++ pretty well by now and I have built a rendering engine for a game I want to make using openGL already, which I am very proud of.
I would love to turn this passion into my profession and thats why I plan to attend a dual course of computer science next year (dual means that I will be employed at a company (or similar) in parallel to the studying course).
But what direction should I be going in if I want to make big money later on? I am ready to spend a lot of time and work on this life project but I don't know which directions are the most promising. I hate being a tiny gear in a huge machine that just has to keep spinning to keep the machine alive, I want to be part of a real project (like most people probably) and possibly sell a product (because I think that is how you really make money).
Now I know there is no magic answer to this, but I bet many people here have made experiences they can share and this could help a lot of people directing their path in a more success oriented way.
I personally am especially interested in fields which are relatively low-level and close to memory (C++), go hand in hand with physics and 3D simulation and are somewhat creative and allow new solutions. (These are no hard lines, I just thought I should give a little direction to what I know already and what I am interested in)
But really, I am interested in any work you are likely to earn a lot of money with.16
Apple: Mojave update breaks OpenGL code and causes a black screen? It's ok, no rush, nothing to fix here. Anyways OpenGL is deprecated right?
I literally spent a couple of hours debugging my engine because it would show a black screen until the rendering window was moved or resized. Only to find out it's a known OpenGL bug after the Mojave update. No biggie.5
OpenCV, or I wouldn't have a job :)
And my pet-project, FullMetalEngine:
I have a dream that someone will write completely free linux driver for AMD videocards
and for Nvidia too
and fixes OpenGL7
No it didnt take me half of a fucking day to figure out a way to move only 1 object when having multiple objects of the same shader in OpenGL totally not.2
How old were you guys when you started writing code? What language and what inspired you?
My first programming memories come from writing some QBasic text-based RPG and graphics demos when I was like 12. I remember moving into C/C++ soon after with Borland's C++ compiler and playing around with WinAPI and OpenGL 1.15
I made a game out of boredom and I think it looks cute.
Full size: https://dl.dropboxusercontent.com/s...4
Everytime you use OpenGL in a brand new project you have to go through the ceremonial blindfolded obstacle course that is getting the first damn triangle to show up. Is the shader code right? Did I forget to check an error on this buffer upload? Is my texture incomplete? Am I bad at matrix math? (Spoiler alert: usually yes) Did I not GL enable something? Is my context setup wrong? Did Nvidia release drivers that grep for my window title and refuse to display any geometry in it?
Oh. Needed to glViewport. OK.4
I have a local variable that is completely unused, can be of any name or type as long as it's assigned.
Yet, if I delete it the program no longer works.
I'm very angry at C# 😡 (and java in some degree). Recently I decided to create huge project in C#. (It is my favorite launguage now because of great VS2017 its features, lib and such). I used windows form app in order to make pretty gui for this program. Everything worked fine, but i decided to implement some 3d rendering system in order to display grafs in 3d, oh how foolish was I.
Ok so what are my options?
1.DirectX9 -> abandoned by microsoft, they say its ded so nope.
2. DX11 -> great! i even can use sharpdx or simpledx to use it! oh wait, what is that? INVALID DX CALL
(in demo code)Damit!
3.OpenGL -> obsolete, lib non existent.
4. Library that comes with .NET -> WFP only sorry!
(i found some dogdy tutorials on yt for dx11 but they need .net 2.0 really?) 😐
In that moment i decided to swich to java. (because Java c#_launguage = new Java("microsoft");)
After 1 day of instaling eclipse and 2 more to install the newest jdk MANUALY i realized that java isn't that easy to use as C#, because:
- no dynamic type-> HUGE PAIN i cant use a single list to store everything buuuu!
-console? yes but its burried inside some random lib and its not consistent with every java version!
-gui editor similar to VS one? oh you need to create it from scrach!😫
Well at lest i can render things. So maybe java will render suff as another tool in my app? Nope pipes NON existent, we need to use sockiets! (unity pipe plugin was easier! worked but it was SLOW)
Ok so after few more days of struggling i managed to render simple graf using directx9 in my original C# project that works fine.. 😥 I only need to create a lib to wrap in and we are done!
Why can't companies create a laungage that will have ALL the features i need? Or at lest give me something like pipes that work in every laungage that will be helpful!
I know it is sometimes stressful to be a dev. But when your program works 😀 that is great feeling! Especialy when you learned to code yourself like me 😁. (student before a university, that lives in small abadoned town)6
Anyone who wants to contribute to an opensource C++ game engine?
Definitely not a rant.
After the OpenGL ranting (here and by myself), I wanted to share with you my joy to have achieved a little goal:
My TARDIS is spinning and moving into space!1
Me: "I wanna mod Ikemen so it can have tag presets, a replay recording manager, a player card for online games, a gallery,..."
Windows: takes a whole day to update
Me: "I wanna mod Ikemen so it runs on Ubuntu"
I've decided to switch my engine from OpenGL to Vulkan and my god damn brain hurts
Loader -> Instance -> Physical Devices -> Logical Device (Layers | Features | Extensions) | Queue Family (Count | Flags) -> Queues | Command Pools -> Command Buffers
Of course each queue family only supports some commands (graphics, compute, transfer, etc.) and everything is asynchronous so it needs explicit synchronization (both on the cpu and with gpu semaphores) too4
Debugging is fun sometimes.
Especially when said bug fills up RAM, sends a bunch of guff to VRAM, and pins a core at 100%, rendering my computer near unusable in mere seconds.
(I accidentally load the same texture maybe a hundred or so times)
Android development is so frustrating. Seriously, Android studio is such a bloated piece of... I found that is easier to make apps in open source game engines rather than that headache of a software. On the other end, most of these engines are not supported by my budget laptop because it doesn't have OpenGL...
I just want to give up sometimes.7
Anyone else getting a bug with every opengl application on Linux? Gives me an error something like "X error of failed request: badvalue"
Weird- maybe happened in the latest kernel update? I'm using 4.147
I was so close to getting my macOS virtual machine fully working on my Razer Blade... But then I discovered that something with OpenGL/GLX doesn’t work properly, so I can’t use any graphics-heavy applications until I somehow figure out what’s wrong 😞6
Just found my first little game I wrote in c++ and opengl(like 5yrs ago). Need to rename over 300 file names, class names and for each class their members names and function names now because ewww how can you call vars in programming like that. Porting it to Linux now. Library linking is working yet. I remember how awful it was to do that shit in vs. In Linux its ez. Also wrote a makefile because vs always compiled my whole project every time I ran it (for whatever reason).
I think that's what I'm going to be doing as a side project this week.2
Last internship : I learned modern opengl, libav and ffmpeg. I even was the only dev on some big contracts. Was a fucking cool internship because I learned everything I wanted to. But my manager had really low social skills. So been able to teach myself all of that was a good thing for everybody, but not for him. When the internship was over I got the worst mark of my promotion for the business with for comment that I didn't enough ask for help Oo wtf dude. Still get the best final markof the promotion and the only one who didn't work on web technologies :p but fuck you should have tell me sooner man...2
Finally. I fucking did it. It took 2 days to get to this stage in my little game but i have 1 fucking square which i can move and rotate with WASD and rotate QE.
I mean i hated OpenGL in games since the poor performace it had against DX or Vulkan but now i want to pat all the game devs who did some real game in this thing.
Oh you want square ?
No you get rectangle because i calculate my matrix in 1:1 and not yours monitor 16:9 so fuck you and have a rectangle.
And now that all the basic fucking bugs are out i cant finally start working on something.
I mean i still hate openGL and now i hate it even more since how compicated this shit is but its fun. Why not have it easier and not have to move fucking object by moving shader. FUCK15
Downloaded VirtualBox and an .iso of Ubuntu 18.04. Now I only need to setup my *entire* development environment so I can see if my engine compiles on anything other than Windows 10.6
I started building a voxel engine with openGL and Clojure during December, so my goal is to make a game out of it. Long way to go but seems fun.2
Turns out the reason the selection of RA cores on the PS3 sucks so much dick is that it has a half-complete OpenGL implementation.
Fuck it, we're doing it live. I've got CFW, i'll dynarec if I damn well please. If it won't compile i'll fucking make it compile, I don't give a fuck about "sanity restraints" and "needing OpenGL 2" and "LV1 required" I can fucking replace all of LV1 and LV2 if I fucking want FUCK YOU
The Cell processor is pretty beefy, I could prolly do it all-CPU if I wanted.8
in the workplace, i have no access to internet, am not admin to my own computer and am not allowed to install anything (due to security reasons). i also happen to have quite some spare time so i'm writing nokia's good old snake game in visual studio and opengl so i can amuse myself both coding and playing. in a way, company pushes creativity and productivity even for slacking.7
I'm trying out Picolisp. Cool, I think, an OpenGL library. I'll try the example program.
(Clicks mouse on program window)
(A wild SIGILL appears!)
Two hours later, still trying to figure out why it's doing that, with Google and DuckDuckGo returning no helpful results whatsoever. This is very annoying.2
I like rants that are thought provoking and push a message forward regardless of whether they may sting a little, so for my first post on here I'd like to hit at home with many of you.
My Dev goals for 2018:
- build a raycaster in OpenGL and Vulken
- finish my game
- actually write a Dev blog2
//Deleted last rant to post this one.
I have script to update kernel and mesa and blah blah. You probably expected that.
What you sure as hell didnt expect is this https://gitlab.freedesktop.org/mesa...
Whats that ?
That my friend is OpenGL 4.6 on AMD GPU if using NIR.
Sure its not merged yet but its fucking there and i love it !
We finally got OGL 4.6 !!!!!1
There's nothing quite like an app force closing for no apparent reason, and no error log info.
Just spent an hour figuring out that one of the device I test on doesn't like linking GLSL shader programs if it contains a loop even know every other devices I've tested on are totally fine with it. 😑
!rant && question
So, I am doing a complete burn and rebuild of a C++ library into a C# library. My question: this thing uses GDI/OpenGL to do graphics things (Mostly rendering lines and shapes over images). Is it worth trying to use WPF for that, or does GDI/OpenGL work in C#?2
So I just found out that GL_MAX as a blend func is supported pretty much universally (~92%). Pretty nice considering I kinda gave up my baricentrics based anti-aliasing technique months ago7
My friend makes fun of me for liking Java, php and the fact i like coding OpenGL instead of using game engines.
Where would holy devrant stand ?4
So this was a conversation.
tl;dr You can't just FUCKING RECOMPILE for an older OpenGL version you dimwit!
Context: Person Y has OpenGL 3.1, my program requires OpenGL 2.1, but refused to launch with "Pixel format not accelerated"
Person X - Today at 9:28 PM
or optionally compile it for old opengl
Or just use my old junk.
Me - Today at 9:29 PM
Person X - Today at 9:29 PM
Me - Today at 9:29 PM
You don't just "compile it for old opengl"
Person X - Today at 9:29 PM
Me - Today at 9:29 PM
For one, Person Y has an OGL version new enough so... /shrug
Person X - Today at 9:29 PM
Me - Today at 9:30 PM
And there is no way I'm ripping the rendering code apart and re-doing everything with glBegin, glVertex, glEnd guff
Person X - Today at 9:30 PM
You don't have to
Me - Today at 9:30 PM
Person X - Today at 9:30 PM
Just use a vbo
Than a vba
Me - Today at 9:30 PM
I ALREADY USE FUCKING VBOS
Person X - Today at 9:30 PM
There's two typws
Btw one with indacys and one with out
Ones 3.0 ones 4.0
Me - Today at 9:31 PM
tl;dr. I am not rewriting half of everything for worse performance just for the sake of being compatible with even more legacy OGL, that might not even work anyway for Person Y. idc
Person X - Today at 9:32 PM
Plus if your using glut you can set the version I want to say
Also it's not worse
<Some more conversation>
Person X - Today at 9:33 PM
Btw crafted [Me] taking th lazy way as normal
Me - Today at 9:33 PM
Taking the lazy way eh.
You have no idea do you
Person X - Today at 9:33 PM
Yes you are
I have more of one :p
Than you think2
Chalked out a TD game idea for android and there are two paths I can take:
1, Use Canvas (quick development)
2, Use OpenGL (relatively longer development)
What would be the correct path?
The most computation will go for bullet physics and collision check, overall the graphics are very primitive like circle, line on a canvas, no animations in background, etc etc... you get the idea.
Is the investment in learning OpenGL worth the time ?16
When I finally learned how to use vertex lists with OpenGL bindings in Python and optimized my game's tilemap rendering. I think it is my best written code snippet so far. It took me weeks to finish it.1
isRant <- false
I finally got a tiny white dot displayed, using modern OpenGL, in F#, through OpenTK. There would be a picture, but picture compression made the dot invisible.1
When they decided to deprecate the old app that went back to early DOS, they decided to use VB.NET because they'd used some VBA and were familiar with it. Except they had a vague idea that C# was faster and decided to write the OpenGL code in that. Also they had some C++ code and decided to write more of it, accessed by the main program via COM.
I come in and the decision is made to integrate some third-party libs via a C++/CLI layer. On one hand screw COM, but on the other we're now using two non-standard MS C++ extensions. Then we decide we need scripting, so throw in some IronPython.
I'm the build engineer for all this, by the way. No fancy package managers since almost all the third-party dependencies are C++; a few of them are open source with our own hacks layered on top of the regular code, a few are proprietary. When I first started here you couldn't build on a fresh SVN checkout (ugh) without repeatedly building the program, copying DLLs manually, building again, ad nauseum. I finally got sick of being called in to do this process and announced that I was fixing it, which took a solid week of staring at failed compiler output.
Every so often someone wants to update that damn COM library and has to sacrifice a goat to figure out how the hell you get it to accept a new method. Maybe one day I'll do a whole rant just based on COM.
Is it a good idea to switch from learning openGL to learning Vulkan now?
I was learning openGL in the past months and now that Vulkan is out I am thinking about learning that instead. I've heard that it's harder to learn though, so roughly how long do you think it would take to learn it as a openGL novice?
In openGL I have used instanced rendering with different textures, specular maps in the shader all in perspective 3D of course.3
I'm porting an OpenGL project to work with WebAssembly, I'm using emscripten to compile/generate the 'glue' to JS. Sofar I'm able to render my gl code properly through the glfw3 framework. I know you can use emscripten callbacks for input, however I was hoping to keep my existing glfw3 callback setup, that said the only callback that seems to be working properly is mouse position, window resize, keyboard, etc never get called. If anyone knows how to enable these I'd be super greatful!1
Just spent a full fucking day working on a C binding for Vala to use GLFW as the main OpenGL entry point... Only to now discover that SDL has an already impimented OpenGL window class and allows for basic 2D operations...
Well that was time well fucking spent1
So I was wondering if any of you know if any good ways to inject additional functionality into a function in CPP. My use case is injecting a counter into an OpenGL draw function to see how many times per frame it's called. I know I can do this using assembly Inca more hacky manner as you might do for cheats in games(code caves), but I'm more interested in adding is for debugging/statistics for the game engine I'm working on. Basically im looking for a portable stable way of doing it that when I compile as a debug build, the code gets added to various functions, and when I compile under release, it doesn't.
drawCount++; //some debug stuff
glDraw(); //call the real one internally
I should mention with code caves you can do this by saving the original address of the function, patching the vTable to point to your new function that has the same parameters etc, then all calls to that function are redirected to yours instead and then you simply call the original function with the address of the function you originally saved. That said, I'm not sure how to access vTable, etc the "normal" way...2
Migrating from opengl to vulkan. In the meanwhile, DevRant, let's talk about Balmers Peak !
Share your stories!3
on a 5 day rock festival vacation... a band with songs i barely know is on and i'm a bit high... there's a cool set of animations playing at the stage background and i spent the whole concert trying to figure how i could write each animation in opengl. i'll give them a shot back home, if i don't forget.3
So I think I need more goats or I need to get my computer in to a therapist's office. Either way, I have decided that my problem is fixed. In that rather than addressing the root cause I have attached a bandaid that will work as long as the customer has much less time than me.3
guys i need serious help. I am planning to make driving simulator using c# but the problem is I don't know which API, library will be necessary for making driving simulator environment graphics. Should I use openGL or something else?2
*starts reviewing code that I wrote at some ridiculous hour*
var glPassiveDebugging bool = !true
and to think people say that I'm too serious, and never do anything silly...
Are there out solutions to create cross-platform GUIs withing a GUI (like Blend in Visual Studio) which does interface with C++?(leave out Qt)
Searching the web I only found GUI libraries in C++, which are big turnoff for designers.
Further research leaded me to a viable solution that seems haven't been built yet anywhere, I'm taking about OpenGL\Vulkan as the engine for a cross-platform GUI builder within a GUI.4
Graphics devs, I have one hour a day i can spare for learning opengl and the math it needs to be understood. Is it possible or should i look for another hobby that is doable in that amount of time.1
Where to start learning openGl??? I know, theres sometting like google, but I would like to hear things like good practises and stuff...3
I'd like to make a simple-ish game with OpenGL, but I'm not sure if I should use the older (fixed function pipeline) versions or the newer (programmable pipeline thingy, with shaders and stuff) ones. Thoughts?3
yo so wtf opengl doing over there
all I can find on "APIENTRYP" is that it's "macro magic that makes everything work" but it's breaking fucking everything. I remove it and it works again (well, kinda, i still gotta fix some typing horseshit)
why is opengl in shambles i just wanna compile gdi
I remember codeblocks with pain the .h and .cpp, the pointers sometimes get the memory address that crash the program and program with opengl on codeblocks is the dead1
Ok so slowly learning C also figuring out how to get a few Legacy Opengl code examples to compile. (yeah yeah it's old yada yada) maybe I should try finding unconventional ways to help aid with my learning.
So doing some OpenGL crap and glSelectBuffer is occasionally returning all 0s. Not a problem except that right before the select buffer I push the names on to the name stack. So they should be on there. But they aren't ideas?1
The coolest project I've worked on I did in an hour's time, for my CG Lab's mini project in college! I used OpenGL to recreate Atari Breakout from scratch :)
I have an idea I need to get out of my head but am not sure where to start. I want to figure out a good way to learn about real-time water simulation. I’m looking at either OpenGL, or Openframeworks, or Cinder. I have basic experience with c++ and a bit less with OpenGL but am not worried about learning. Could someone point me in the right direction? Andy good resources to learn or just general advice would be greatly appreciated.4
Not finding what I want via google so I'll ask here: What's the deal with opengles android shaders freezing my phone's screen?
Is it normal unavoidable behaviour for a shader with an infinite loop to fuck up the visual output irreversibly (until phone restart)?