I'd hit it.
And now I have a framebuffer in place to render first person models. And thank god for once the GLSL code was simple. Coming to a total of 3 lines.
My original architecture related to the player and hud also worked without many changes. It's nice when stub code you wrote ages ago works exactly as it should when you hook that shit up to the renderer.Code:vec4 fp = texture2D(fp, texCoord); vec4 world = texture2D(world, texCoord); gl_FragColor = ((1 - fp.a) * world) + (fp.a * fp);
That's it for tonight. I"m pooped.
Tommarow, fix that horrific bug I found in BSP and then begin work on the UI framebuffer and the 12DUI library. And if there is time add the scalar functions to shader so that we can have nice things like ammo counters on guns.![]()
Scalar functions in shaders now supported. I hardcoded it to 4 float variables (scalarA, scalarB, scalarC, scalarD) but this can be expanded later if I feel like it. Basically you can write in your shader like:
diffuse=tex<0,1,1,0,0,0,0,rgb> * scalarA
or
diffuse=tex<0,1,1,0,0,0,scalarA,rgb>
And then you can create an object like a weapon or vehicle that uses that shader and you can set scalarA during each draw.
So you can use scalarA to turn on and off the lights on a warthog or to animate the tires to spin when it's moving.
Halo had a similar system but it was more restricted.
Also, I'm about to tear TWL out of the engine and start writing my own library to replace it. Making a bak of everything and crossing my fingers.
Last edited by Not Inferno; May 31st, 2013 at 02:21 AM.
Welp I'm done for the night. Major changes include:
TWL has been completely removed from the engine.
Input has been completely rewritten and is set up in a much more "uniform" way. Improved overall.
Keybinds are now very easy to rearrange.
The ground work for 12DUI is in place and is the next thing I'll be working on.
I used to take 80mg adderall and drink like an alcoholic (mostly because the adderall). The only thing that makes it dangerous is the fact that because it's a stimulant, you may not feel as drunk as you really are and therefore have the propensity to get alcohol poisoning, or if you take higher doses of it at the same time (without a tolerance) you could possibly suffer a heart attack. You'll be fine.
Last edited by Not Inferno; May 31st, 2013 at 11:57 PM.
So the implementation of UI is done. I need to flesh out the features some more and integrate into the player controller but it is working now.
I recreated the halo health and shield bar using my amazing artistic skills.
I used these 3 absolute master piece drawings:
And made this basic test hud. I put up 3 screenshots showing the color change and bar fill and empty.
I'm tired as balls at this point. Won't be doing any more work for the next 2 days because of life stuff but I feel that a lot of progress has gone through this week.
Last edited by Not Inferno; June 1st, 2013 at 08:59 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks