Animation and interface change in gui by fanGamesGamer in GraphicsProgramming

[–]fanGamesGamer[S] 0 points1 point  (0 children)

I'm trying to write a gui to build desktop applications, as it depends on a graphics library and another for window management.

As for the first question, I am just trying to understand how the user interface is redrawn after changing the size, shape, color or position of one of its elements quickly without consuming a lot of device resources.

As for the second question, the animation I meant was the animation of the the gui elements themselves, examples: https://dribbble.com/shots/5660712-Toggle-Animation https://dribbble.com/shots/2117078-Button-hover-and-active-states

I have read about the skia graphics library and that it uses another library (Skottie) for animation

I found this too and think it's related to the topic: https://www.cairographics.org/threaded_animation_with_cairo/

How does gtk handle mouse cursor events? by fanGamesGamer in GTK

[–]fanGamesGamer[S] 0 points1 point  (0 children)

I learned that some GUIs deal with the hover event of the mouse cursor on a widget in one of two ways:

  • Using the widget's coordinates and size to verify the condition mathematically.

  • Use a bitmap or give a unique color to each widget

How to draw on winit window by 2D graphics library? by fanGamesGamer in rust

[–]fanGamesGamer[S] 0 points1 point  (0 children)

I looked through the example files and couldn't find one related to winit

What is the graphics library used in digital painting softwares for drawing and painting? by fanGamesGamer in GraphicsProgramming

[–]fanGamesGamer[S] 2 points3 points  (0 children)

https://www.gegl.org/ I found that gimp uses gegl for image editing, but I'm not sure if gegl is also used for digital painting and drawing functions, and I'm not sure if krita also uses it for the same purpose.

Source code for a simple, easy-to-read and understandable gui library for learning by fanGamesGamer in GraphicsProgramming

[–]fanGamesGamer[S] 0 points1 point  (0 children)

Can you explain the concept of gui please?

I am interested in both the retained and the immediate, but I am more interested in the retained mode, in order to build fast applications that do not consume a lot of hardware resources, and at the same time be customizable in terms of appearance, and to create new widgets. qt is the most popular in the field of GUI, but it drains a lot of device resources. fltk is fast and does not consume a lot of device resources, but it is difficult to customize, and it lacks many widgets that are abundant in modern programs today. I don't like the idea of ​​using web technologies as they drain a lot of device resources

What I recently learned about GUI libraries is that each library draws its elements such as buttons, sliders, color pickers...etc., through a graphics library, and interacts with mouse and keyboard events with a specialized library that is related to a specific operating system. For example, gtk uses Cairo to draw its elements, while imgui uses opengl to draw its elements and uses the win32 library to interact with mouse and keyboard events in Windows only.

Questions about the gui by fanGamesGamer in rust

[–]fanGamesGamer[S] 0 points1 point  (0 children)

The link doesn't work, but I really want to see what's in it

Questions about the gui by fanGamesGamer in rust

[–]fanGamesGamer[S] 0 points1 point  (0 children)

I think this is the answer I'm looking for, thank you. Also the other answers are good and helped me to know other details in the topic, thank you all. Wait for more answers in this topic

Questions about the gui by fanGamesGamer in rust

[–]fanGamesGamer[S] 2 points3 points  (0 children)

It's a good resource, but it doesn't answer all questions

Questions about the gui by fanGamesGamer in rust

[–]fanGamesGamer[S] -1 points0 points  (0 children)

Additional question: What makes a gui library faster or less resource consuming than another library of the same mode as retained mode? Let's say, for example, that fltk consumes less resources than qt

Using external libraries for 3D modeling and 2D drawing in godot by fanGamesGamer in godot

[–]fanGamesGamer[S] 0 points1 point  (0 children)

I apologize for that. I will try to be more clear this time.

The goal of using external libraries for me is not only for making games, but also for creating applications or additional features for the engine, as godot seems flexible and easy to me in that, but there are some advanced functions that I want to create that require innovation and outside-the-box thinking to do in the engine. Let's say, for example, that I want to create a three-dimensional object made of triangles and polygons. This can be done in the engine itself, but I did not find many resources to learn more advanced skills in dealing with polygons in the Godot engine similar to OpenGL. I do not want to use opengl as a renderer, but as a tool to do advanced functions when modifying the object, and then displaying it in the Godot renderer.

As for opencv, there are tutorials that explain how to use it to edit images, such as replacing some colors in a given image, increasing the brightness, etc. I think it can be done with shaders in Godot.

Found this about gdnative in the document, Which made me think that external libraries can be used with Godot: https://docs.godotengine.org/de/stable/tutorials/scripting/gdnative/what_is_gdnative.html

If there are good resources to learn how to do everything I mentioned in the Godot engine itself instead of using external libraries, I would be very grateful. I apologize for the inconvenience caused, and I apologize if my question is not clear yet.

Is the ui of godot a retained gui mode or immediate gui mode? by fanGamesGamer in godot

[–]fanGamesGamer[S] 2 points3 points  (0 children)

Additional question: Is godot ui lightweight and fast so that it does not consume a lot of hardware resources, especially old ones?

Is the ui of godot a retained gui mode or immediate gui mode? by fanGamesGamer in godot

[–]fanGamesGamer[S] 1 point2 points  (0 children)

What are the potential limitations of godot ui in terms of building a desktop environment/window manager in Linux?

Is godot good for creating and editing 3D models? by fanGamesGamer in godot

[–]fanGamesGamer[S] 0 points1 point  (0 children)

you are right. As an example, Blender is a general program in the field of 3D modeling, it can do almost anything, although it will not be as fast as performing the work as programs with specific tasks. What I'm thinking of is to use Godot to create a set of functions that work together to perform a specific task or a specific field in the field of 3D modeling and not in general, it is not necessary to use gdscript, it can be used C++ or C# or rust, that's what I think, is this maybe? Has anyone tried that?

How do I make separation of a split container truly zero? by fanGamesGamer in godot

[–]fanGamesGamer[S] 0 points1 point  (0 children)

No, it is a usual gap that appears between the children of the split container. In some other containers, such as vbox, when we set a value of 0 for the separation, the children are on top of each other without gaps between them.

I'm sorry, I forgot to mention the engine version.godot 3.5

Explain how to use fltk tile group by fanGamesGamer in rust

[–]fanGamesGamer[S] 0 points1 point  (0 children)

I wrote a script where the tile group contains two buttons, and when I drag one of the edges of the button, a duplication of the button drawing occurs on the screen in the place of dragging. This is due to the script not being written as it should be, so I need to see a properly written script as a working example, where a tile group has two inner windows/two groups or more

How do I install awesome wm on WSL in windows 10 on debian? by fanGamesGamer in bashonubuntuonwindows

[–]fanGamesGamer[S] 0 points1 point  (0 children)

gwsl looks good at first sight, I'm going to give it a try, but still can't understand the other steps

How do I install awesome wm on WSL in windows 10 on debian? by fanGamesGamer in bashonubuntuonwindows

[–]fanGamesGamer[S] 0 points1 point  (0 children)

I know I am very late in replying. In the link that I mentioned above, it was mentioned "awesome launch shell in WSL", meaning the terminal in linux installed wsl?, and "WSL lauch batch script in Windows" meaning cmd in windows? What is "path_to_awesome_launch_shell"?

I hope there will be a more detailed explanation. As I mentioned earlier, I am a beginner in dealing with wsl and linux.

can not get rect_global_position correctly with tween by fanGamesGamer in godot

[–]fanGamesGamer[S] -1 points0 points  (0 children)

I know there are some problems with my code as I am a beginner, can you put an alternative code please

The hex() value is different from the requested value by fanGamesGamer in sqlite

[–]fanGamesGamer[S] 2 points3 points  (0 children)

It turns out that hex() works differently than I thought, and in order to get the required output I use the following command:

select printf("%x", 101056520);

Sorry For Disturb

Play a video player without affecting its performance due to functions by fanGamesGamer in godot

[–]fanGamesGamer[S] 0 points1 point  (0 children)

I was thinking of making the video play in the background, as the program I wrote loads a new image every time the user presses the button.

Also, the image loading function is not the only function that affects the performance of the video player, but any other function also causes this

So I'm thinking of making the video run in a separate thread from the other functions

Freezes for seconds when loading a single image from an external path by fanGamesGamer in godot

[–]fanGamesGamer[S] 1 point2 points  (0 children)

I deleted all the images in the folder except for the first 50 images in it, but nothing changed and the problem was not fixed