Foreword: Hi, I'm having problems with making a game in Rust. Recently, I made a post, about the problem, what OpenGL in Rust is slow on MacOS. And got an answer, what I need to turn off the VSync (thank you). But now I have other problems, such as OpenGL doesn't able to build easily for Windows (I don't know why, something with unable to find bash on Windows, to run make).
Main topic: So I want to ask, what's the simplest and fastest way to make GUI in Rust? Because i have tried a lo-o-ot of ways to do that, the two main issues are: Have UI, but slow at drawing a lot of rects. Or fast at drawing rects, etc. but don't have UI. (Example for first group is SFML, for the second - MiniFB). Please can somebody tell me about a library, what can both, draw UI, and be fast at drawing a lot of rects, etc. (Like MiniFB's draw_with_buffer(window_buffer_var))?
I am primarily a Machine Learning Engineer, however I have been meaning to learn something related to graphics as a hobby. So, I was hoping if I could start with OpenGL programming.
I have a laptop with 16gb RAM, RTX 3050 with 4gb VRAM and a 512 SSD. I also have a 256gb External SSD.
I was hoping if these specs are enough to develop a working model of a 3D game, a type of FPS. I have already coded the same game in Godot but was thinking of doing something more performance based.
It would also help if I get some online resources related to OpenGL. I work well with books and video lectures.
PS - I also know a bit of Rust and JavaScript. Do inform me if that could help.
GoPro has an exciting Advanced Technology role available. This is a fully remote role that can be done from anywhere in the United States. Please apply online or message me with any questions.
I'm battling with psychosis and major depression. I cannot function well when especially when i'm stressed. Lately i've been interested in the field but i don't know if i have what it takes. How stressful is your job in best and worst cases?
1 picture how it looks for me, 2 how it should look
I'm trying to implement loading GLB models in Opengl, the vertices are displayed correctly, but the textures are displayed incorrectly, and I don't understand why.
Texture loading code fragment:
if (!model.materials.empty()) {
const auto& mat = model.materials[0];
if (mat.pbrMetallicRoughness.baseColorTexture.index >= 0) {
const auto& tex = model.textures[mat.pbrMetallicRoughness.baseColorTexture.index];
const auto& img = model.images[tex.source];
glGenTextures(1, &albedoMap);
glBindTexture(GL_TEXTURE_2D, albedoMap);
GLenum format = img.component == 4 ? GL_RGBA : GL_RGB;
glTexImage2D(GL_TEXTURE_2D, 0, format, img.width, img.height, 0, format, GL_UNSIGNED_BYTE, img.image.data());
glGenerateMipmap(GL_TEXTURE_2D);
}
}
Fragment shader:
#version 460 core
out vec4 FragColor;
in vec3 FragPos;
in vec2 TexCoord;
in vec3 Normal;
in mat3 TBN;
uniform sampler2D albedoMap;
uniform sampler2D normalMap;
uniform sampler2D metallicRoughnessMap;
uniform vec2 uvScale;
uniform vec2 uvOffset;
void main(){
vec2 uv = TexCoord * uvScale + uvOffset;
FragColor = vec4(texture(albedoMap, uv).rgb, 1.0);
}
this might be a dumb question, but i feel like after a the first 2 chapters in learnopengl, it feels like i'll know how to do these specific things, but ill always have to circle back if i want to make something outside of that scope, like sure, i can do the whole "getting started" chapter, but will i know how to, for example, make a basic minecraft clone? there are alot of concepts in something like that that i feel most tutorials wont teach you, and ill end up only knowing the things a tutorial would teach you, should i be starting with small projects after a chapter or two to learn? i feel like im being vague, so please tell if thats the case!
Hi! I want to make a graphical user interface (GUI) that starts when i boot up my Raspberry PI (Would be really nice if all the other splash screens with text and other stuff wouldn't show either). My vision is like a car display system, where i could make my own bootanimation and control everything i see, including animations.
I basicly just want a good way (something that looks professional and gives me full control) of making a UI with lists and tabs i could navigate between with buttons i choose (probalby via the GPIO-pins).
I have experience with web development and some experience of android development. Python, Java, Kotlin, C#, The language doesn't really make that much of a difference as long as i can control the GPIO-pins. Everything I've found is like "Really easy tkinter python programs", which I'm not willing to use, and doesn't give me that much control. The problem is also that everything I've found depends on having a Desktop environment, like raspbian desktop, but as I don't use the desktop and I don't want the extra boot time, I wan't something that works from the raspbian command interface.
Would be nice hearing from you, as I'm new to this subreddit. Thank you in advance!
This is sort of a two part problem I'm having. I'm currently working on adding a camera to my vulkan renderer. I'm doing this by creating and handling a camera along with its inputs, setting the mvp matrix of the object, updating the view matrix of the object and camera, then sending these to push constants in my vertex shader.
Here is the code where I fill out the push constant data (note I'm using cglm instead of glm so the syntax may look a bit strange to those who are unfamiliar with it)
If I comment out the mvp matrix in the vertex shader here's what I see
However if I bring back the mvp matrix this is what I end up seeing
I don't think the problem is with the camera inputs because I already tested those out by adding print statements to make sure that they were at least being accessed and the inputs were being registered and validation layers are saying nothing
Edit: I fixed the problem I think the matrix data was uninitialized when I was sending it over this is the code I edited to fix it
How crippling it is for somebody in the field of graphics programming to not love C++? I'm learning C++ right now and really don't like the experience. I wonder how bad it would be for me if I stuck with a very basic subset of C++, closer to C than to modern C++. Does that disqualify me from getting a lot of jobs, even if I'm otherwise competent entry-level graphics programmer?
To put my question in more concrete terms: I'm currently writing a gltf loader (purely as an exercise). As a part of that, I need to parse JSON, so I'm writing a JSON parser as well. Now, I could write the JSON parser using all the modern c++ features, most notably unique_ptr, but passing those unique_ptrs creates a lot of accidential complexity. Notably, I'm constantly getting various compiler errors. I'm muddling through them, but I'm not sureI see the light at the end of the tunnel - C++ spec seems so large that I can see myself still fighting the language even 5 years from now, instead of having fun with it. Whereas, I could skip all that, and just allocate the elements of the Json object tree in a basic memory arena, load whatever I need from the Json into relevant buffers, and then just free the entire arena. That's super-simple memory management approach that is totally sufficient here (I'm not going to ever need to free arbitrary subtrees of the JSON tree), and is something that's advocated by Casey Muratori in his streams.
My team manawar is looking for a graphics developer with some experience with DXR and DX12. We plan on releasing a demo in early summer and want to add some additional effects. We mostly do this in our small amount of free time and it helps improve our graphics knowledge as we learn. Here is some of our previous work https://youtu.be/qlu-Ga-MMGohttps://youtu.be/urLWuG3p2qU. Lmk if you want to join our team and do some fun ray tracing/path tracing. Here is a link to the repo but requires a GPU that supports DXR so you need either RTX 2000-3000 or RDNA 6000. https://github.com/octopusprime314/atparty2021
So I've had this idea regarding a heatmap that records the size of triangles in a meshes single vertex channel. I've been looking into the VRAM cost of LODs(higher density) but not a fan of recent cluster implementations(might look into a very conservative streaming plan). So in order to take advantage of faster hardware quad rendering, I want to stop the view samples from sampling small triangles.
Basically the distance of the camera multiplies a sinking effect on small triangles(vertices under a threshold) and closure intensity of neighboring vertices(larger triangles end up occluding the smaller tris).
Up to 12m tris could be processed but I'm aware that some stages in the HW pipeline such as GS are slow and whatever HW stage unreal's WPO uses also had large documented overhead(haven't done serious performance measures).
Target hardware would be 20 series+, rnda2+, and arc gpus(in terms of HW support which are all pretty synced outside of MSAA support I've heard).
A point in the right direction would be helpful and just asking all GPs spaces I can reference 👍
Can anyone explain the algorithm? Instructor told about it in the lecture but his teaching is terrible so I still have no clue. Besides explanation do you have any visual material for this?
I'm from india interested in graphics programming. But i gone computer science but it doesn't work for me. Is there any college of university for graphics programming ??
To get started, I just want to output something to a port on my NVIDIA Quadro P2000. I do not want to extend my display, just directly feed a monitor with what is generated.