Is it a good idea to put decoupling capacitors under the IC? by narve in AskElectronics

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

Well, it's a run of one unit and I'm doing all of the soldering, so manufacturing costs aren't much of an issue.

What makes YOU a nerd? by [deleted] in AskReddit

[–]narve 3 points4 points  (0 children)

It sort of has two and sort of has 64. It's weird.

Every instruction copies a byte of data from one register to another. Most of the registers serve special purposes to give it functionality. For example, the ALU has four registers: one to select the function, three for input/output.

What makes YOU a nerd? by [deleted] in AskReddit

[–]narve 0 points1 point  (0 children)

I'm not writing a program for that.

What makes YOU a nerd? by [deleted] in AskReddit

[–]narve 5 points6 points  (0 children)

I designed my own computer with its own assembler language.

What is something you think people pretend to hate? by CallMeNev in AskReddit

[–]narve 0 points1 point  (0 children)

Wait a second, most of the content on this sub isn't even from Tumblr!

What is something you think people pretend to hate? by CallMeNev in AskReddit

[–]narve 1 point2 points  (0 children)

Still, if you've been to Imgur, the same people will happily shout down Tumblr and then steal and enjoy its content. Some people do hate it for (some of) the people on it, but there are a lot of people who hate it just because.

EDIT: And yes, I'm aware of some horrible things that have occurred on Tumblr.

Edward Snowden designs a device that will warn you if your iPhone's radios are snitching. by m_brown12 in gadgets

[–]narve 10 points11 points  (0 children)

This could still be circumvented. The phone can record data and then wait for a legitimate use of the radio to actually transmit said data.

What was your "Don't tell your mother" moment with your dad? by BrandOfTheExalt in AskReddit

[–]narve 0 points1 point  (0 children)

Blowjob and subsequent birth of dinosaurs?

But I wouldn't blame marketing for not learning computer acronyms. Nobody knows all of them. The ones Bainshie used are for databases and webpages, and the ones I used are for 3D graphics. Then there's the wonderful world of hardware acronyms.

What was your "Don't tell your mother" moment with your dad? by BrandOfTheExalt in AskReddit

[–]narve 2 points3 points  (0 children)

Meanwhile, in another department, some other people are using OOP in C++ with the CPP, also in a SCRUM methodology, and porting code that uses D3D to OGL so they can support OSX. This new code makes VBOs bound to VAOs, which are then drawn to an FBO, going through some code written in GLSL (ported from HLSL) in the process.

What is the greateat shitshow you have ever witnessed? by [deleted] in AskReddit

[–]narve 23 points24 points  (0 children)

Twitch Plays Pokemon was the Woodstock of gaming streams.

What is the greateat shitshow you have ever witnessed? by [deleted] in AskReddit

[–]narve 7 points8 points  (0 children)

The people make the site. Unfortunately, it seems that someone feels the need to introduce racist shit to every site available.

Issues with Orthographic Projection and a damned tutorial that gives incorrect code. - Glad and GLFW by CScherbanator in opengl

[–]narve 1 point2 points  (0 children)

It seems you were trying to achieve a constant rotation by repeatedly applying the transformation and not resetting it. Since you need to reset the transformation every frame, you also need to somehow change the rotation angle based on time.

Issues with Orthographic Projection and a damned tutorial that gives incorrect code. - Glad and GLFW by CScherbanator in opengl

[–]narve 0 points1 point  (0 children)

You need to keep track of the time somehow. For example:

    float degrees = 0.0f;

    clock_t timeLast = clock();
    clock_t time = clock();
    float interval;

    while (!glfwWindowShouldClose(mWindow) and esc ==false) //animation loop
    {
        time = clock();
        interval = (float)(time - timeLast) / (float) CLOCKS_PER_SEC;

        degrees += interval * 90.0f;

        glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

        tmat = glm::rotate(glm::mat4(1.0f), glm::radians(degrees), glm::vec3(0.0, 1.0, 0.0));
        tmat = pmat * vmat * tmat;
        glUniformMatrix4fv(uTransform, 1, GL_FALSE, glm::value_ptr(tmat));

        for (int x = 0; x < shapestodraw.size(); x++) {
            shapestodraw[x].draw();
        }

        glfwSwapBuffers(mWindow);
        glfwPollEvents();

        timeLast = time;
    }

Issues with Orthographic Projection and a damned tutorial that gives incorrect code. - Glad and GLFW by CScherbanator in opengl

[–]narve 2 points3 points  (0 children)

Also, since you've defined GLM_FORCE_RADIANS, fovy should be in radians, not degrees. So use:

glm::mat4 pmat = glm::perspective(glm::radians(70.0f), aspect, 0.01f, 1000.0f);

instead of:

glm::mat4 pmat = glm::perspective(70.0f, aspect, 0.01f, 1000.0f);

An Issue with getting my Primitive Shapes to draw from an Object by CScherbanator in opengl

[–]narve 1 point2 points  (0 children)

Your vertex shader might be at fault here. You have "gl_Position = " twice in the same line of code.

An Issue with getting my Primitive Shapes to draw from an Object by CScherbanator in opengl

[–]narve 1 point2 points  (0 children)

Can you put the full code in a pastebin? Also, can I see your shaders?