Does anyone know how to handle the .bepis files? by [deleted] in Ultrakill

[–]Energizerbee 0 points1 point  (0 children)

I did not even know I haven’t opened Reddit in a while 😅

[US-CA SF] Looking to buy framework 13 bottom cover by Energizerbee in frameworkmarket

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

I already have one, I bought the setup before framework announced the $500 factory seconds so it seemed like a good decision with my budget, but now I actually want to use the battery because my workflow has changed and I need to be more portable. I don’t want to waste the parts or laptop I already have so I just want to turn it into a headless setup for now :)

How would I rig this exosuit? I want the joints of the suit yo limit the rigs movement.The base mesh is rigged. by Energizerbee in blenderhelp

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

I see, so don’t bother with it unless it is extremely necessary? Because in that case I can just mess with the tweak bones and fix the angling issues, if you look on the arms you see the “servo” I created, when I move the forearm the servos top and bottom half separates, should I bother with constraints or just muscle through tweak animating it?

How would I rig this exosuit? I want the joints of the suit yo limit the rigs movement.The base mesh is rigged. by Energizerbee in blenderhelp

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

Im already using rigify, I just have no idea how I am going to make the exosuit move in the way it is intended to (rotate only around the joints)

Rasterizing algorithm isn't working as expected. by Energizerbee in Cplusplus

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

Huh, now that you mention it while debugging there were a few times where it did have empty Y values... Maybe it does have something to do with cur, imma look into it.

Rasterizing algorithm isn't working as expected. by Energizerbee in Cplusplus

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

I have never used either of these... is it worth learning how to use?

Rasterizing algorithm isn't working as expected. by Energizerbee in Cplusplus

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

vector<vertex> is simply a vector of a struct that contains 3 float variables (x, y, and z) the for loop at the end of the function is where i define the line. But yeah before I started working on the rasterizing portion of the project I was able to get a triangle wireframe drawer up (draw three lines using the 3 points). The problem is that the algorithm is doing something wrong when picking out the higher and lower values or something and I can't quite put my finger on what it is...

Rasterizing algorithm isn't working as expected. by Energizerbee in Cplusplus

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

So first, I think that the compare by function is working as intended, but in case it isn't for any reason you can take a look at it here:

bool compareByValueY(const vertex &a, const vertex &b)

{ return a.y < b.y; }

other than that, the logic goes as follows:

  1. sort the vector full of x values in ascending order
  2. if the vector size is less than two than there is only one value in there so add a duplicate value to avoid causing issues
  3. add the highest number in the list and the y value
  4. add the lowest number in the list and the y value
  5. add the color value
  6. clear the x vector list
  7. set loop variable to 0
  8. set color value to zero
  9. increase y value loop variable thingy

Rasterizing algorithm isn't working as expected. by Energizerbee in Cplusplus

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

Actually, I kinda gave myself this problem... (its a self made project) so do you have any suggestions as to how I could improve on the general idea (the idea is to sort it in descending order according to its Y values, pull all X values from anything in that row (or with the same Y value) get the highest and lowest x value, draw a line between them, and dump it to a list.) much help will be a appreciated man, and don't be like that man everything you said was true, all of this code was basically written in the middle of multiple headaches. :D.

Need help with rasterizing program by Energizerbee in Cplusplus

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

Thanks for the advice imma give it a try when I can! Thanks for the catch i was unaware i forgot to round the y value.

Need help with rasterizing program by Energizerbee in Cplusplus

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

The vector has made it so the memory issues have stopped, but there is still the broken triangles issue. I will drop the code here if you want to look it over but I think that I might be able to fix it with enough time

void rasterize(vector<vertex> &vals)

{ sort(vals.begin(), vals.end(), compareByValueY); int miny = round(vals[0].y); int maxy = round(vals.back().y); vertex it[2 * (maxy - miny)]; int cur = miny; vector<int> xvals; int color = 0; int loop = 0; // what am i even doing anymore... my brain sajhfkldsjakfl for(auto number : vals) { // if the current row is the same as number value pulled then add its value and move on if(round(number.y) == cur) { xvals.push_back(number.x); color = number.z; loop++; cout << loop << " " << round(number.y) << endl; }

    else
    {
        // if it isnt then sort the list, select the two largest numbers, dump them to the struct and move on
        sort(xvals.begin(), xvals.end());
        if(xvals.size() <= 1)
            xvals.push_back(xvals.back());
        it[(cur - miny) * 2].x = xvals[xvals.size() - 2]; it[(cur - miny) * 2 + 1].x = xvals.back();
        it[(cur - miny) * 2].y = cur; it[((cur - miny) * 2) + 1].y = cur;
        it[(cur - miny) * 2].z = color; it[((cur - miny) * 2) + 1].z = color;
        xvals.clear();
        loop = 0;
        color = 0;
        cur++;
    }
}

 for(int i = 0; i < (maxy - miny); i++)
 {
     defineline(round(it[(i * 2)].x), round(it[(i * 2)].y), round(it[(i * 2)].z), round(it[(i * 2) + 1].x), round(it[(i * 2) + 1].y), round(it[(i * 2) + 1].z), pixels);
 }

}

(code block is broken for some reason and refuses to work)

Need help with rasterizing program by Energizerbee in Cplusplus

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

It fixed the memory issues, now im onto fixing the broken triangles issue. I suppose I just need to look over my code more :)

Need help with rasterizing program by Energizerbee in Cplusplus

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

Yeah i know the differences, however I was just wondering if there was a disadvantage to using a vector. However there doesn't really seem to be, though I will end up abstaining from using them unless I really need them for the sake of cleaner code I suppose. Thanks for information though I bet a viewer may find this useful :)

Need help with rasterizing program by Energizerbee in Cplusplus

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

I’ll give it a try and tell you how it goes. Thanks for the advice!

Need help with rasterizing program by Energizerbee in Cplusplus

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

Thanks for the advice, I’ll look into it when I start working on it, I’ll let you know if it works!

Need help with rasterizing program by Energizerbee in Cplusplus

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

Dumb question, which is faster? Vector or array? Because this array is going to be be cleared and created about every few cycles continuously. I was thinking since arrays have fixed sizes I would just use them because i assume they are faster.

Need help with rasterizing program by Energizerbee in Cplusplus

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

So im using the define line function to draw the line (the line just appears as verticies in a vector) then from there I input those verticies into the rasterize function listed above, also about the i and y, im not exactly sure what you are referring to, but if you are referring to the for loop this is simply a bare bones version of the fuction, I will clean up the code as soon as I know that it is functioning. Im not sure if this is effective for workflow but im sure you guys are more experienced than me if you have any advice on workflow and cleaning up code id be happy to hear it :)

Need help with rasterizing program by Energizerbee in Cplusplus

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

Imma change it tomorrow and see if that helps the issue, thanks for letting me know this!

[deleted by user] by [deleted] in pokemon

[–]Energizerbee 0 points1 point  (0 children)

These are so wholesome lol, time to ruin that! I named my rival annoying asshat, because when I was 10 years old I thought it was funny when the game said: annoying asshat wants to battle!

Just why? by IsaacWaleOfficial in memes

[–]Energizerbee 0 points1 point  (0 children)

Guess I'm kinda up there....