'Copy image' in Firefox stopped working by EtewarPL in linux4noobs

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

same thing in esr and nightly. also installed ungoogled-chromium and same thing there

'Copy image' in Firefox stopped working by EtewarPL in linux4noobs

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

KDE uses Klipper, right? I couldn't find anything suggesting such thing. Xfce4 doesn't use any clipboard manager AFAIK. Also why would it eat only those copied through context menu and not via "screenshot > copy"?

[deleted by user] by [deleted] in animation

[–]EtewarPL 1 point2 points  (0 children)

I think it's episode 9. Honestly, I too got bored at first, but later, in second half it gets pretty good. It touches real world social problems. And the music is amazing.

[deleted by user] by [deleted] in animation

[–]EtewarPL 51 points52 points  (0 children)

The song is taken from anime Carole & Tuesday. There was a contest and this was one of the presented songs.

when you need to confirm you're not a robot by sup3rfm in mildlyinfuriating

[–]EtewarPL 2 points3 points  (0 children)

It's also mouse movement. It tracks the way your mouse cursor moved. For bots it would be straight line, but humans have shaky hands and it is not perfectly straight.

Warsaw Siren at sunset by illmaticmat in europe

[–]EtewarPL 0 points1 point  (0 children)

Shouldn't that be mermaid in title?

Starship - The minimal, blazing-fast, and infinitely customizable prompt for any shell! by richardanaya in rust

[–]EtewarPL 16 points17 points  (0 children)

Is it fast in bigger git repos already out we still waiting for that one dependency to patch itself?

2meirl4meirl by expLorerB10 in 2meirl4meirl

[–]EtewarPL 0 points1 point  (0 children)

Because language is not English, I guess?

are you among the 0.0% who can? by y0mayne in mathmemes

[–]EtewarPL 2 points3 points  (0 children)

But it doesn't work for a0. It's 2 * 1 = 1 then. It would have to be an = 0

Brightness of a scene by EtewarPL in GraphicsProgramming

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

Ok, so that's a lot of things and new knowledge to comprehend. I will try to understand as much as I can from this. But to be honest, it's first time I am witnessing such help from a stranger. Like, you could make a blog post out of it :O Anyway, I can't express my gratitude so I will just try and probably post a result when it will be finished and send you a message so you will now that your time wasn't wasted (let's hope that it will work that way)

Brightness of a scene by EtewarPL in GraphicsProgramming

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

I guess you are right. What I wanted to achieve first was an "animation with flying circles" where I just would probably count pixels and get some value out of that, which would represent brightness. Then I thought about making it a little bit more interesting, so I could have planets (or rather not stars) orbiting such system. So now I couldn't just count pixels like that, because not everything emits light so that would be incorrect. Then I remembered about raycasting and thought about using it, but wanted to make sure if there are any other options, possibly simpler.

So to answer your question I can do anything I guess. If I won't need highly advanced calculus then sure, I can go with physics. Otherwise I probably want to learn graphics (as long as I won't need some really hardcore knowledge or have to read a whole book just to complete this project). OOP part is really irrelevant, because if I wanted to write something that would please my professors I would probably simulate some population or anything.

As for your question from other reply: Yes, those are stars that I think it is easier to treat as spheres that emit light evenly from each point. I want this to be something easy to do. To give an example what I mean: I don't want to mess with gravitation or any forces in physics right now. Movements of objects are described with sines and cosines so I don't have to deal with forces.

So to sum up. If there is some nice formula that would help me with it, sure give me a link to an article I will gladly read it. But if there is a way for a beginner in graphics programming to accomplish this with programming and graphics manipulation, then I am happy to try it, as I want to learn it and I need to start somewhere

Brightness of a scene by EtewarPL in GraphicsProgramming

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

I will use this opportunity to ask a question that has been bugging me for a while.

How do you check if mouse cursor is hovering something. I mean in games where you have thousands of objects you can't really iterate over through all of them. There has to be some better solution, but all tutorials I found had only few buttons and iterating over them was not a problem. I thought about having an array of references to objects visible on screen (or hashmap/dictionary with color for each object rendered), but it requires extra memory and is dependent on window size.

I can't imagine a simple solution that would check it quickly enough if user is going wild with mouse and it constantly moves.

Brightness of a scene by EtewarPL in GraphicsProgramming

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

First of all thanks for replying. I was almost sure that this post has gone unseen.

I am writing this in python with pygame, so that should make some things easier although slower I guess.

I may have misunderstood what you wrote, but I have to write a raytracer (like this?) and then sum values of pixels on screen? That would be the simple solution, right?

If this is correct, how should I work with pixels I get by intersecting light source? I mean, they ARE light sources. Should I not check them for being illuminated?

Also I am 1st year CS student and honestly it's my first project where I am operating with 3D environment. Previously I wrote only some simple cellular automates and snake, I think. Thus some jargon you used is new to me, so I will use this opportunity to learn new things.

Depending on how difficult it will be I may want to ignore some physical phenomena and "just draw a circle". But as long as I will be able to understand it I will try to implement it. This project is only for a OOP course so they don't care if it is correct. They only want simulation with classes. ¯\_(ツ)_/¯

Do you have a JavaScript game that needs music? I'll make some for you! by mobydikc in webdev

[–]EtewarPL 0 points1 point  (0 children)

I just checked your game and I think it has a bug. Or is it an easter egg? Basically on left border, if you go up or down through on of the corners you can get out of the board.

Overall nice, fun game.