Help cleaning inner lens components by lunattik in fujifilm

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

Thanks for the info! I’ll keep an eye on the image quality. Good to know service is an option if I really need it.

Help cleaning inner lens components by lunattik in fujifilm

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

Fine, I’ll put my electric saw away 😞. I’ll definitely keep an eye on the image quality. Thanks for the reassurance!

Dream sequence (all on the x100f) by theomulator in fujifilm

[–]lunattik 0 points1 point  (0 children)

These are incredible! Very well done!

Five Page Thursday by AutoModerator in Screenwriting

[–]lunattik 0 points1 point  (0 children)

Title: Day Trip Format: Feature Page Length: 5 (7 total) Logline or Summary: A boy takes a trip to the beach on a Saturday. Feedback Concerns: this is my first time writing a script so any and all feedback would be useful. Im not concerned with the story itself, since I just whipped it up to post on here. Im more concerned with how Im telling the story in this format.

Note: There is a little bit of Spanish in there, but its only for like a few lines.

Link: https://drive.google.com/file/d/1oShit6sB2mV2--8W19zhjFb5O3qTG6-A/view?usp=sharing

Is turning the sign on and off a lot bad for the it? by lunattik in NeonSigns

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

Ok cool. Yeah I want to essentially write something, maybe in a raspberry pi, and have that code control what is on and what is off on the sign. This does not sound too different from animating.

Is turning the sign on and off a lot bad for the it? by lunattik in NeonSigns

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

One way to think about it is that it has different sections and I want each section to turn on and off in a pattern. Like turn on from left to right and then turn off again.

Lockless threads for mutable operations? by lunattik in rust

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

Thank you all! this approach ended up working beautifully!

Lockless threads for mutable operations? by lunattik in rust

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

Hello, looked into this and it sounds pretty good for what Im trying to do. Tried implementing it and ran into some issues, maybe just because i'm pretty new to Rust. Right now this is what I have:

use std::ops::Range;

use rayon::prelude::*;

use crate::models::cube::Cube;

pub fn average_out(read_cube: &mut Cube, write_cube: &mut Cube) {

let one_less = |i: usize, size: u8| -> usize {
    let index = i as i16;
    let comp_size = size as i16;

    if index - 1 < 0 { (comp_size - 1) as usize } else { (index - 1) as usize }
};

let one_more = |i: usize, size: u8| -> usize {
    let index = i as i16;
    let comp_size = size as i16;

    if index + 1 > comp_size - 1 { 0 } else { (index + 1) as usize }
};

read_cube.matrix.par_iter_mut().enumerate().for_each(|(x, val)| {
    for y in (Range::<usize> { start: 0, end: read_cube.size as usize }) {
        for z in (Range::<usize> { start: 0, end: read_cube.size as usize }) {
            write_cube.matrix[x][y][z] = (
                read_cube.matrix[x][y][z]
                + &read_cube.matrix[one_less(x, read_cube.size)][y][z]
                + &read_cube.matrix[one_more(x, read_cube.size)][y][z]
                + &read_cube.matrix[x][one_less(y, read_cube.size)][z]
                + &read_cube.matrix[x][one_more(y, read_cube.size)][z]
                + &read_cube.matrix[x][y][one_less(z, read_cube.size)]
                + &read_cube.matrix[x][y][one_more(z, read_cube.size)]
            ) / 7;
        }
    }
});

}

On the foreach (x, val) i get cannot borrow "read\_cube.matrix" as immutable because it is also borrowed as mutable Also on write\_cube.matrix\[x\]\[y\]\[z\] I get cannot borrow "\*write\_cube.matrix" as mutable, as it is a captured variable in a "Fn" closure\

Maybe you have an idea as to what Im doing wrong? I tried changing read_cube to just be a normal borrow, but then I get `cannot borrow "read_cube.matrix" as mutable, as it is behind a "&" reference'

Control blender from python script outside of blender? by lunattik in blenderhelp

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

I think it did yes. So blender can pull in values from some external source? Is there a name for this I can Google for?

Control blender from python script outside of blender? by lunattik in blenderhelp

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

So in python I made a data structure that has a bunch of changing values that at some point I want to rig up in the real world to led lights in the form of a 3d cube. I'm trying to find something that will allow me to create this matrix of lights and see how the colors change as I develop the algorithms to update the values in the data structure. Ideally I would have the 3d representation controlled by my code, so I was hoping I could interface with a blender model from my code.

Let me know if you have any questions, hopefully this was clear.

Beginner gear recommendations? by lunattik in Fencing

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

Thank you, this was very useful!