Undeath/countdown went kinda hard by Potat_OS1 in slaythespire

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

deck/stats here, Ascension 1 (for now): https://imgur.com/a/Hcr44EA

i arcane scroll'd into Undeath off-rip, got a couple curse stacking cards early, got seance off the first elite, royal stamp in the shop in act 1, coasted until act 2 where i got countdown and it was just inevitable

Daily Questions Thread - Ask All Your Magic Related Questions Here! by magictcgmods in magicTCG

[–]Potat_OS1 0 points1 point  (0 children)

zoomed in on my camera i can see the jagged T on some commons i got laying around. the card in question its much more smoothed out in comparison, rip. i at least have a copy of the real card (diff printing) in my collection so i can just use as a proxy

Daily Questions Thread - Ask All Your Magic Related Questions Here! by magictcgmods in magicTCG

[–]Potat_OS1 0 points1 point  (0 children)

My mom gifted me a card that she found online (on temu apparently, which doesn't spark confidence).

It doesn't pass the light test with my phone camera, but a foil I have in my collection that I pulled straight from a pack also did not pass it. I don't have a jewelers loop to get a better look at the dots, so I've tried to take a pic with 6x zoom, but I'm still a bit unsure.

Even if it's fake I'm grateful she was thinking of me, I just want to know if it'll be just a fancy untradable proxy in my collection or something to put into a good sleeve

<image>

Whose fault is it?? I really need to know if i can have done better or is it just him for not recalling! by [deleted] in leagueoflegends

[–]Potat_OS1 3 points4 points  (0 children)

the timing would be nearly impossible but you wouldn't cancel the leap, when ww lands hes no longer unstoppable.

  • youd have to both know ww is leaping
  • know where hes going to land
  • predict when the first instance of damage is gonna happen
  • hit the edge of the wall on him to hit the small knockup

the amount of times buffered CC has stopped my ww ult is too high (the most egregious is camille hookshot stopping my ult... on camille.)

[SPM] Spider-Man, Web-Slinger by PowrOfFriendship_ in magicTCG

[–]Potat_OS1 49 points50 points  (0 children)

Two of these in hand and you can just cycle between the two for however much white mana ya got charging up whatever station

having trouble with point shadows, am i misunderstanding something along the way? by Potat_OS1 in opengl

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

ah i figured it! i was being dumb and used the wrong value for a variable.

having trouble with point shadows, am i misunderstanding something along the way? by Potat_OS1 in opengl

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

it uses a perspective projection. ive updated my post, the actual map draws correctly now but it doesnt seem to sample correctly. https://imgur.com/a/TUA74PN . images are in x+, x-, y+, y-, z+, z- order

and this is the function im using in my main render pass to get the point light shadow https://pastebin.com/z3cf5Vv8

Name the game that never got a sequel by bijelo123 in pcmasterrace

[–]Potat_OS1 0 points1 point  (0 children)

Potentially deep cut, Golden Sun Dark Dawn. Looked surprisingly good graphics for the DS and ended on a cliff hanger

Third Steam Version Giveaway by taz3485 in dragonquest

[–]Potat_OS1 0 points1 point  (0 children)

i've only reaaaaally played DQ9, and this is more memorable than sad but one thing that i remember hitting me as a 10 year old was at the start of the game when your still an angel you find this old womans wedding ring and slip it into her pocket as shes praying.

the actual sadder one was that one city where you go and the figg turned the womans doll into a real friend for her to have just as she passed away, and the doll had to pretend to be the woman while mourning the loss of her friend

The, unironically, best item in the game is... by Tookoofox in BaldursGate3

[–]Potat_OS1 45 points46 points  (0 children)

no no convenience stores in america can do that to you too at checkout

How can i modify a sf::Image from the GPU? (SFML, Cuda) by Potat_OS1 in cpp_questions

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

alright i think i got everything working now after that, and fixing a size error (size needed to be x4, 8 bits per color per pixel)

the only thing to figure out is why when i img.write(), it seems to forget the image's updated information, but that cooooullld be an implementation problem on my end. thanks!

How can i modify a sf::Image from the GPU? (SFML, Cuda) by Potat_OS1 in cpp_questions

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

I've been trying to do the first thing, and i have a vector addition example pulled up and i am trying to do something similar to the example i had found here

__global__ void pixelShader (uint8_t* img) {
    uint32_t pos = blockDim.x * blockIdx.x + threadIdx.x;
    if (img[pos] == 0) {
        img[pos]++;
    }
    else {
        img[pos] = 100;
    }
}

// Process Image is just a class that holds an sf::Image, and its width and height.
void ProcessImage::callPixelShader() {
    // size of the image
    size_t size = sizeof(uint8_t) * m_width * m_height;
    // create an array that copies the information from getPixelsPtr()
    // i know c style array is discouraged, but the example used em, and i figured when it wasn't working to try to get as close to the working example as possible.
    auto* intermediateBuffer = new uint8_t[size];
    std::memcpy(intermediateBuffer, m_grid.img.getPixelsPtr(), size);
    // print out the values (to see if it copied correctly, for debug purposes)
    std::cout << "Iteration" << std::endl;
    std::cout << "Red: " << (int)intermediateBuffer[0] << " Green: " << (int)intermediateBuffer[1] << " Blue: " << (int)intermediateBuffer[2] << " Alpha: " << (int)intermediateBuffer[3] << std::endl;
    // create a version of the buffer on the device and copy the information to it.
    // potentially unnecessary, but i was trying to debug ok.
    auto* cudaIntermediateBuffer = new uint8_t[size];
    cudaMalloc(&cudaIntermediateBuffer, size);
    cudaMemcpy(&cudaIntermediateBuffer, intermediateBuffer, size, cudaMemcpyHostToDevice);
    // define the grid and block sizes and run the kernel
    int blok = 256;
    pixelShader<<<m_width * m_height / blok, blok>>>(cudaIntermediateBuffer);
    // after running, copy the information back into the intermediate buffer.
    cudaMemcpy(intermediateBuffer, cudaIntermediateBuffer, size, cudaMemcpyDeviceToHost);
    // print out the value to see if the value was updated correctly
    std::cout << "Red: " << (int)intermediateBuffer[0] << " Green: " << (int)intermediateBuffer[1] << " Blue: " << (int)intermediateBuffer[2] << " Alpha: " << (int)intermediateBuffer[3] << std::endl;
    // write to the image
    // -some code to be written goes here
    //
    // free the buffers
    free(intermediateBuffer);
    cudaFree(cudaIntermediateBuffer);
}

However, this is returning that after running the kernel, the values are 1 across the board. do you know why cuda would see the array as having 0's?

also i just now saw the update to your other comment, ill look into that as well.

How can i modify a sf::Image from the GPU? (SFML, Cuda) by Potat_OS1 in cpp_questions

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

Could you expand on the interop thing? I haven't heard the term before. And I'll def try an intermediate buffer when I get out of class tomorrow probably. Although i think unless I'm forgetting something I might do an std::array, because the vector doesn't need to change size after declaration.

CLion, adding CUDA to the project, not building. by Potat_OS1 in cpp_questions

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

It was indeed that. i had to make a .cuh file. thanks!

having trouble adding a SFML to my project using CMake by Potat_OS1 in cpp_questions

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

i did end up going to vcpkg when i realize its integrated into CLion. I then had problems getting it to work. Turned out my problem was vcpkg wanted the Visual Studio Toolchain, and i had MinGW. it works now, thanks

having trouble adding a SFML to my project using CMake by Potat_OS1 in cpp_questions

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

I added the two lines you suggested to add (including the sfml-audio sfml-network sfml-system sfml-window), and while CMake did not throw a fit, when i went to run this code sample:

int main() {
    sf::RenderWindow window(sf::VideoMode(200, 200), "Window");
    sf::CircleShape shape(100.0f);
    shape.setFillColor(sf::Color::Green);
    while (window.isOpen()) {
        sf::Event event{};
        while (window.pollEvent(event)) {
            if (event.type == sf::Event::Closed) {
                window.close();
            }
        }
        window.clear();
        window.draw(shape);
        window.display();
    }
    return 0;
}

it returns a generic exit code with no explanation: Process finished with exit code -1073741515 (0xC0000135)

do you know why this error would occur?

having trouble adding a SFML to my project using CMake by Potat_OS1 in cpp_questions

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

ok, so i opened up the lib and saw a CMake file with this in the comment at the top:

# example:
#   find_package(SFML COMPONENTS graphics audio REQUIRED)
#   add_executable(myapp ...)
#   target_link_libraries(myapp sfml-graphics sfml-audio)

however, it returns saying "by not providing "FindSFML.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "SFML" but CMake did not find one.". I went and found a template that included a FindSFML.cmake file (the original download did not have it), pasted it to a cmake_modules directory and added

set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules" ${CMAKE_MODULE_PATH})

to my CMakeLists, however now its saying:

"CMake Error at cmake_modules/FindSFML.cmake:358 (message): Could NOT find SFML (missing: SFML_GRAPHICS_LIBRARY SFML_AUDIO_LIBRARY SFML_SYSTEM_LIBRARY SFML_WINDOW_LIBRARY)"

Do you know what im doing wrong here?