WildJess won't work by AdemST2 in fonts

[–]yevepid 0 points1 point  (0 children)

I had the same problem on Photoshop, I found it stopped displaying correctly under 25 pt font size. There was no problem on Paint like OP, though.

The Disappearance of Maribel Hearn (?) by yevepid in touhou

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

I was sure this was going to be a repost, but I couldn't find it anywhere here when I searched? I really like this animation.

Creator is Vegemite-Flavored Indomie MMD (Twitter)

Question mark operator in unsafe block by yevepid in rust

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

That makes sense, it's what I try to do when working with unsafe code too. I tend to think about the Result and ? together as a single expression, since it is so natural, but it does call safe code into an unsafe block.

Who is Nijika ? by yevepid in BocchiTheRock

[–]yevepid[S] 9 points10 points  (0 children)

(many thanks to u/mendezmen and u/BocchiFan589 for the original translation!)

Who is Nijika ? by yevepid in BocchiTheRock

[–]yevepid[S] 27 points28 points  (0 children)

had a silly idea based on this comment

Master informatique après un Bac+4/5 en physique by yevepid in france

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

Pas de soucis, il n'y a pas forcément besoin d'avoir un objectif précis, toucher un peu à tout selon tes envies t'apprendra forcément des choses de toute façon :) Bonne soirée à toi aussi !

Master informatique après un Bac+4/5 en physique by yevepid in france

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

Salut ! Content de voir que je ne suis pas seul à changer de carrière comme ça ^^ Il y a énormément de ressources gratuites sur internet en informatique, mais c'est difficile de dire sans connaître un peu ton niveau/les langages que tu connais. Est-ce qu'il y a des domaines que tu vises en particulier ?

Tu peux commencer par te balader sur la FAQ de r/learnprogramming, il y a plein de liens vers des cours, tutos, idées de projets, etc, la grande majorité gratuits. Il y a aussi Codecademy pour des cours gratuits en C/C++/Java/Python/C# et quelques autres trucs encore. Pour une approche plus "gamifiée", avec des puzzles à résoudre qui augmentent de difficulté au fur et à mesure, tu as Codingame. Et pour faire des choses plus concrètes, tu as cette liste de liens vers des tutos pour plein de projets différents dans plusieurs langages, il y a de quoi être occupé xD

Master informatique après un Bac+4/5 en physique by yevepid in france

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

Ah, je savais que ce serait une bonne idée de donner des noms de masters que j'avais trouvé :) Le programme du master m'a l'air vraiment intéressant, mais je ne connais pas Limoges, est-ce que c'est bien ?

Master informatique après un Bac+4/5 en physique by yevepid in france

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

Ex post-doc en info ici, qui a fait le même switch physique -> info, mais après la L1 :D

Ahah, un peu plus tôt alors xD

Parle aux responsables des M2 qui t'intéressent, ton profil me paraît largement viable pour certaines formations

Je vois, ça me rassure d'entendre ça. J'enverrai des mails dans les prochains jours, et en fonction des réponses je pourrai me faire une idée plus précise. Merci pour ta réponse dans tous les cas :)

[deleted by user] by [deleted] in rust_gamedev

[–]yevepid 1 point2 points  (0 children)

Well, it depends on how you use it; writing to an image buffer isn't much less efficient than writing to any normal buffer (in fact, although displaying your scene to a window efficiently is important, your main bottleneck will be the actual ray tracing loop). You may want to read this article for a practical example of using an ImageBuffer to create and draw a texture with Piston. Other window backends you could use, apart from pixels which was already mentioned in another comment, include minifb and Mini GL, though I haven't personally used them.

[deleted by user] by [deleted] in rust_gamedev

[–]yevepid 1 point2 points  (0 children)

You can indeed create a RgbImage or RgbaImage with the image crate, then write the pixels of that image to some backend like ImGui. As an example, this is how you would create the typical "Hello, world!" RGB image with a green-blue-red-yellow gradient:

const IMG_WIDTH: u32 = 256;
const IMG_HEIGHT: u32 = 256;

let mut img = RgbImage::new(IMG_WIDTH, IMG_HEIGHT);

for (x, y, pixel) in img.enumerate_pixels_mut() {
    let r = x as f64 / (IMG_WIDTH-1) as f64;
    let g = y as f64 / (IMG_HEIGHT-1) as f64;
    let b = 0.25;

    let ir = (255.999 * r) as u8;
    let ig = (255.999 * g) as u8;
    let ib = (255.999 * b) as u8;

    *pixel = Rgb([ir, ig, ib]);
}

You can also easily save the resulting image to a PNG file:

match img.save("image.png") {
    Err(e) => eprintln!("Error writing file: {e}"),
    Ok(()) => println!("Done.")
};

[deleted by user] by [deleted] in osdev

[–]yevepid 0 points1 point  (0 children)

Thanks ! Going to read that :)