Opengl, java background color rendering problem Programming Game Development by varone Hello, I have simple problem for professionalist (that i think ) but i asked all available AI about it and none was able to help and solve problem. so nothing is able to help me in this. I have simple app that show 3 colored axes and camera that move around this scene by mouse click-hold . the problem is that after run appear first white … Re: Opengl, java background color rendering problem Programming Game Development by toneewa You can try to only show the window when you are ready to draw. Runs fine. Main.java: package org.example; import org.joml.Matrix4f; import org.lwjgl.glfw.GLFWVidMode; import org.lwjgl.glfw.GLFWErrorCallback; import org.lwjgl.opengl.GL; import org.lwjgl.system.MemoryStack; import java.nio.… ChatGPT, Gender Bias, and the Nuclear Apocalypse Community Center by Johannes C. **A brand-new preprint investigates ChatGPT’s gender bias by presenting the LLM with various moral dilemmas. In this article, you’ll discover what the researchers found and the results of my own replication of the experiment with GPT-4o.** ![header-chatgpt-genderbias.jpg](https://static.daniweb.com/attachments/4/db265bae44d291591dbceb1a341d7d81.… Re: Opengl, java background color rendering problem Programming Game Development by rproffitt Is this the old Blinding Flash issue? Hack or workaround possible at https://gamedev.stackexchange.com/questions/210425/blinding-flash-set-background-color-when-creating-new-window Re: Opengl, java background color rendering problem Programming Game Development by varone **toneewa** you are a very good programmer, your code is working properly ... how you know what to implement ? to think that available AI chats (copilot, chatgpt 4 , and some others) wasnt able to help in such matter is unbeliveable . so to sum up you just add glfwWindowHint(GLFW_DOUBLEBUFFER, GL_TRUE); in init … Re: Opengl, java background color rendering problem Programming Game Development by toneewa This is what was left overs, after several different iterations. My thoughts: The idea was to hide the window, color it black, and show it when ready. From the first impression I got, it was clearing the frame color or not setting it resulting in a long white screen before getting to black. glfwWindowHint(GLFW_DOUBLEBUFFER, GL_TRUE); This… Re: Opengl, java background color rendering problem Programming Game Development by varone i noticed (based on your first answer you gave above) that simpliest solving of issue is just move glfwShowWindow(window); to whatever method for example to drawAxes or whatever other will me during code developing like for example AxisArrowHeads() . I didnt noticed any errors so far so it should work i think , you said about spending some hours … Re: Opengl, java background color rendering problem Programming Game Development by toneewa Correct. glfwShowWindow(window); in drawAxes(); Yeah, many hours for this. Trouble-shooting skills, with trial and error. I had more trouble getting the work envirnoment setup. The IntelliJ IDEA license was expired. "AI" has a long way to go. E.g., missing headers, identifiers, and all 4 types of dementia. Re: Opengl, java background color rendering problem Programming Game Development by varone Wow dont waste so many time for anonymouse guy from the internet who ask for help, but really i appriciate that, thank you even much more by reading it , for your help and your time . I just tell you what i am seeing now - Java is very weird lang, free dev programs like eclipse or vsc have plenty of implementing errors (and IntellJ licence is… Re: Opengl, java background color rendering problem Programming Game Development by toneewa I like C++. It has plenty of libraries. Like any language, find a good book or website with examples and write them. Understand how they work, then, try to create an example using the idea. It really depends on what you want to do with it. Learn them all. I've only encountered the following: C, C++, SQL, Node.js/TypeScript, HTML/CSS, C#, Java, … Re: Opengl, java background color rendering problem Programming Game Development by varone Many thanks for your chat and help Toneewa 🙂🤗👍 Re: How can I upload a tar.bz2 file to openstack swift object storage container Programming Software Development by Hanginium65 Good day, Salem. My apologies for taking so long to reply to your suggestion. I wrote the Python code to upload the .gz file from my local machine to the OpenStack object store using the following documentation: https://docs.openstack.org/python-swiftclient/latest/client-api.html. Below is the code I wrote from keystoneauth1 import … Re: How can I upload a tar.bz2 file to openstack swift object storage container Programming Software Development by Salem How did you open the file to save the download? Did you use 'wb' mode in the open? > file_gz_content = f.read() Verify that the length of this is the whole file. > swift_conn.put_object https://docs.openstack.org/python-swiftclient/latest/swiftclient.html#swiftclient.client.put_object One of the parameters is `response_dict`. … Graph of quadratic function with CanvasRenderingContext2D Programming Web Development by alexanderrm2024 Hello everyone, I have a task in which I would like to implement the graphical visualisation of a quadratic equation in the interval x =[-10,10] and - if any exist - the corresponding zeros, using CanvasRenderingContext2D methods. To convert the coordinates into pixel coordinates within the canvas: the coordinates into pixel coordinates … Need help with Lem-in Project Programming by Oven Im trying to code a lem-in project. https://github.com/01-edu/public/tree/master/subjects/lem-in Im coding in go lang. But its okay in another language tho. I can convert it to go. Me and my friends cant even solve the algorithm neither. ChatGPT is stuck and in the web i found a 800 rows of code. Its working but really hard to understand. … Tabular Data Classification with Hugging Face Meta Tree Transformer Programming Computer Science by usmanmalik57 As a data scientist, I have extensively used the Hugging Face library for processing unstructured data such as images, text, and audio. My previous blogs have covered various transformer models for these types of data. Lately, however, I discovered that Hugging Face also provides transformer models for tabular data. One such transformer is the … Re: Need help with Lem-in Project Programming by toneewa Display everything to see where you go wrong. Also, simplify your testing, e.g., 1 ant 2 rooms, 2 paths. There are some algorithms to consider. The Breadth-First Search (BFS) and Dijkstra’s algorithms are ways to find the shortest path. Research those to understand your use case. A fix to your parse function and ant struct will help get you back … Dead Internet Theory: Is the Web Dying? Community Center by Johannes C. **In 2024, over half of all internet traffic is generated by bots. For human users, it is increasingly challenging to tell what's real and what's not. These developments breath new life into the Dead Internet Theory. Have we, in our quest for clicks, killed the web?** ![dead-internet-theory.jpg](https://static.daniweb.com/attachments/4/… Should we noindex our JSON files? Digital Media Digital Marketing Search Engine Strategies by Dani We use a lot of AJAX that loads JSON files that return an application/json mime type. In some instances, these JSON files are used to assemble elements on the page, so we don't want to hide them from Google because we want Google to see the page fully rendered. My question is whether we should be adding an X-Robots-Tag: noindex HTTP header to … Image Analysis Using OpenAI GPT-4o Model Programming Computer Science by usmanmalik57 OpenAI announced the [GPT-4o (omni)](https://community.openai.com/t/announcing-gpt-4o-in-the-api/744700) model on May 13, 2024. The GPT-4o model, as the name suggests, can process multimodal inputs, such as text, image, and speech. As per OpenAI, GPT-4o is the state-of-the-art and best-performing large language model. Among GPT-4o's many … Re: Formatting web pages for various displays Programming Web Development by toneewa You can save this code as an HTML document, and also test several display resolutions. It will automatically set the resolution & associated color. It includes a related weather forecast. <!DOCTYPE html> <html> <head> <style> body { background-color: lightblue; transition: all 0.… Re: Unpopular Opinion: Bootstrap+jquery+CI is the best thing since sliced bread Programming Web Development by Dani I've posted my story many times before, but here it is again :) I've been programming the majority of my life, first in Apple BASIC, then QBasic, then Visual Basic, then C++. PHP was my first foray into web development, and DaniWeb was my first project. DaniWeb started 22 years ago with phpBB, and then evolved to vBulletin. I knew the phpBB code… Re: How Build video-player in html And css ? Programming by simhakidsden You can build a video player in HTML and CSS by using the <video> element to display the video and styling it with CSS to customize its appearance and layout. You can also use JavaScript to add additional functionality, such as play, pause, and volume controls. Re: Graph of quadratic function with CanvasRenderingContext2D Programming Web Development by Dani Have you learned how to graph things? Did your professor teach you about using Canvas yet? Here is a tutorial for getting started: https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial Re: Extract Tabular Data from PDF Images using Hugging Face Table Transformer Programming Computer Science by Harini sri Hi, Thank you so much for the above code. Its giving better results compared to other libraries. I have few questions. In some tables, I have common column name for three columns and further I have sub columns like below.... in these cases the tables are not getting extracted properly...Do you have any suggestions for handling such cases? Also … Re: Need help with Lem-in Project Programming by rproffitt This assignment would get a failing grade if you used GPT or found code. Toss all that out and write it yourself. Re: Need help with Lem-in Project Programming by Oven Sadly, like i said GPT is not working anymore. My team coded this one. And AI & Ready code is acceptable. But it has to simple because we must understand the code. I found the working code but its 800 rows. So no we cant use it either. Even if anybody can explain the algorithm, that would help a lot too. Its like onion, we are thinking we … Re: Need help with Lem-in Project Programming by rproffitt Then you have to design and create the algorithm before you write code. There's a lesson here about writing code before the design is done. Re: Need help with Lem-in Project Programming by Oven True. Wish we had able to. We cant manage it, thays why im seeking some help. Re: Need help with Lem-in Project Programming by rproffitt This is some academic assignment so the lesson isn't about fixing this found or GPT generated code, it's not even about coding. It's about designing before code. Without a design, how would we code? Or if we use AI to write code, it's a lesson about how we still have to understand the code that it generates. Now for those that just want it …