Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - kuso4ek

#1
Wow, disabling GL_CULL_FACE actually helped. I also drawing it without a framebuffer, so text is pretty and anti-aliased. Thanks!
#2
I did that and got https://drive.google.com/file/d/1fBEMN2IC5PhOmWFSHoXKbAsgKZD-Wq4t/view?usp=sharing
But, at least, text is here. Moving to my main project. And there's, again, no text. It happens after I create a bunch of PBR stuff (https://github.com/1Kuso4ek1/3Dev/blob/master/3Dev/physics_test.cpp line 63-73) or a shadow manager (line 137). Labels don't work either. Maybe there's an issue with textures?
#4
By the way, here's screenshots. Without and with a framebuffer.
https://drive.google.com/file/d/12uZadZzaOzYEmYG3oLw64TZeG_x7ZPtt/view?usp=sharing
https://drive.google.com/file/d/1e7iIepBIsS3IDeYShi3-Cs2aT8anNiP7/view?usp=sharing
For some weird reason, label is still rendering correctly :o
#5
There's a sample.
https://pastebin.com/sMYZr75c // form
https://pastebin.com/VhCqJNyq // vertex shader
https://pastebin.com/tPcPdyLq // fragment shader
https://pastebin.com/NXQ4H3E0 // main
This project uses my own engine. If you have time and will to build it, I can send you a github page.
#6
I think I figured something out. Text isn't rendering after I create a cube maps or use shadows. These actions are similar because they use framebuffers. I tried to render GUI to a framebuffer (when the text actually works), and there was the same problem: no text. TGUI doesn't like framebuffers? If it's not true, then it probably depends on the hardware.
#7
I removed sfml-graphics and now there's no error. Again, without OpenGL everything is alright, but, when rendering OpenGL scene, there's no text. Just empty buttons, labels etc. What could be the problem now?
#8
Yep, I'm using sfml-graphics. There's the same problem, when using SFML_GRAPHICS backend. So, I think, I need to get rid of sfml-graphics and hope it'll work. Thanks.
#9
Hello, I started working with TGUI recently (SFML, OpenGL3). When I'm not using OpenGL stuff, everything works as expected, but when I'm rendering my 3D OpenGL scene
// OpenGL...
//--------------------
window.pushGLStates();
gui.draw();
window.popGLStates();
in addition to (surprisingly) working gui, I get countless SFML errors
OpenGL error (1282) detected in user code, you should check for errors with glGetError()
in terminal. I'd love to turn off SFML errors, but this, as I understand it, is impossible.
So, how to solve this? I really don't want to leave things as they are.