>How do I program shaders or a video game?>This is a 3D board, not a programming board! so, is programming a dirty word here?
>>624915>so, is programming a dirty word here?Yes. Fuck off to /g/.We get too many retards from /v/ who want free assets or think the only thing that 3D is useful for is video games.Alternatively, if you want to talk about the programming side of video games just go to>>>/vg/agdgThat said, shader languages are a tad different from standard programming. I don't think anyone here would be opposed to shader talk, as long as it didn't devolve into something else.I'm not sure if we have too many artists who do that kind of thing though.It takes a special kind of artist to be able to program your own shaders.
Shader writing is the highest tier of 3d art. Artist have to conform to you. Shader programmers reign supreme over filthy uneducated low-pay maya intern plebs.
>>624959>fucking wymale reeeeeeI was gonna say that but then I saw thisEverifuckingtyme
>>624915>is programming a dirty word here?>is programming a dirty word here?>is programming a dirty word here?>is programming a dirty word here?>is programming a dirty word here?we're a VULKAN ONLY CLUB, FUCKER
>>624924I don't give a fuck about video games, I care about graphics programming.>>624942I like this post.
>>624924>implying the /g/entoo men want a technical art thread>implying they do anything other than rice phones, write one liner fizzbuzz C programs, and unbox dragon dildos
>>624942Tx I feel good about myself now lool
>>625023I was commenting on the "Programming" being a diry word bit.But they probably don't program either.>>625021>I don't give a fuck about video gamesIf only /v/ understood this.
Shaders are core /3/ if you disagree you're a brainlet
>>625806>>625724>>625485cool so post some shaders
>>625023Pretty accurate. We also ask about how to spend our money.
>>62600Here's a basic geometry program to visualize normals. Can't post other shit because I'm not at home right now. Might post some other vertex/fragment shit if the thread stays alive in the next three days.
>>626007post the code and talk about it a little?
>>625806So is math, but I don't think that's the point of this board. It's like saying pencil manufacturing pipeline discussion belongs to /ic/.On other news, I can't decide if I like ray tracing more than I like real time rendering; they are both such interesting problems. I've thought of writing a 3d modeling and sculpting software just to solve all these cool problems.
>>626047I don't have the code right now. Had the image lingering in one of my DMs. But basically it goes like this: Create a vert at each normal's position. Then create another vert at the same place and scale it up using the corresponding normal direction. Make sure the normal vector is normalized. Multiply with an arbitrary number if you want to extend the normal visualization.Anyway, if you want to learn shaders, pull up any shader development software(or use the some API, like Win32) and the documentation (MSDN if you want to learn HLSL or Cg, very similar) side by side. Find simple shaders on the web first, and analyze the whole code and implement the things you understand in your own shaders. Needs a lot of practice though.
>>626074Forgot to paste the link, but you'll probably want to start here: https://msdn.microsoft.com/en-us/library/windows/desktop/dn643748(v=vs.85).aspx
There is a amateur game dev general (agdg) on /vg/
>>626076Are you retarded? Even if you dont know what a shader is you would have learned by reading the thread.
>>626125>I'm too cool for the containment board mommy!>these 30 lines of GLSL will surely get me a job!
>>626506What containment board? Isn't this the 3d graphics board? Do you still not understand how 3d graphics are made? Are you okay, anon?
>>624915Shaders definitely belong on here, games don't.
>>626073It's more like if you created the pencil yourself. I'm pretty sure /ic/ would be all over that,>>626076agdg was linked in the first post. But we're not talking about gamedev here. We're talking about shaders.>>626506>Cringe Compilations Post is Cringe2Meta5Me