• What are you working on? June 2012
    1,926 replies, posted
WAYWO June 2012! I've never done this before. Lets work at some highlights of last month [B]Highlights[/B] [QUOTE=synthiackup;35786433]hi [IMG]http://synthiac.net/img/twirlpinski.gif[/IMG] [IMG]http://synthiac.net/img/xorpler2.gif[/IMG][/QUOTE] [QUOTE=Lexic;36156681][thumb]http://i.imgur.com/ehHB2.png[/thumb] Fuck yeah! My obj loader now outputs triangle fans for faces with polygonal vertices! I ended up having to rewrite nearly the entire loader to do so, but it's far neater now with proper names and subdivided functions etc, so worth it. [editline]1st June 2012[/editline] Actually, I think I've implemented everything needed to load the 'basic' Sponza Atrium model... [thumb]http://i.imgur.com/xKCdf.png[/thumb] Oh hell yes. [editline]1st June 2012[/editline] As a side note, those distortion show up when I view that particular file in a proper obj viewer, so I think I might have a duff model. It's not my fault! [IMG]http://i.imgur.com/iQJyE.png[/IMG] [editline]1st June 2012[/editline] Actually.... I wonder... [thumb]http://i.imgur.com/ao3Qf.png[/thumb] C:[/QUOTE] [QUOTE=Smashmaster;36137806]I'm going to start posting smaller pictures because I seem to be posting a ton of them. Anyway, sky: [IMG]http://i46.tinypic.com/jrz629.png[/IMG][/QUOTE] [QUOTE=icantread49;36133921]Working on emitters and sponges for v1.1 of Phyzicle: [vid]http://puu.sh/xK89[/vid][/QUOTE] [QUOTE=Kybalt;36116087][img_thumb]http://i.imgur.com/HMpOL.png[/img_thumb] 13,324 zombies running around the map and zombie placement comes from the picture it loads. who needs map editors when you have paint.[/QUOTE] [QUOTE=Electroholic;36122889]Holy shit mobile development is harder than I thought it would be. Our artist is making some stunning graphics so I'll have to make it just a Windows game if mobile doesn't work out. [IMG]http://i.imgur.com/scQtG.png[/IMG][/QUOTE] [QUOTE=amcfaggot;36124657]looks unprofessional with such an awful typo it's spelt "r-a-r-i-t-y", fyi[/QUOTE] [QUOTE=Overv;36111038]I didn't have a thermometer in my room, so I made one using my Arduino and LED Matrix. [IMG]http://puu.sh/xlfx[/IMG] The addressing on these is fucked up, here's what my [I]drawPixel[/I] function looks like: void ht1632_setpixel( byte x, byte y, bool on ){ byte addr; if ( x < 8 ) addr = (7-x)*4 + y/4; else if ( x < 16 ) addr = (15-x)*4 + y/4 + 32; else addr = (23-x)*4 + y/4 + 64; byte bit = 8>>(y%4); if ( on ) pixels[addr] |= bit; else if ( ( pixels[addr] & bit ) > 0 ) pixels[addr] ^= bit; ht1632_senddata( addr, pixels[addr] );} Suggestions to shorten this code are welcome. The buffer is needed because 4 pixels share one address and it's not possible to read from the display (this would be unbearably slow anyway). I generated the bitmaps for the digits using a C# program, which outputted them as a font [I]byte[/I] array.[/QUOTE] [QUOTE=Jaanus;36102592]More fluff, more gore. [IMG]http://jaanus.cc/pictures/fluff1.jpg[/IMG] [IMG]http://jaanus.cc/pictures/fluff2.jpg[/IMG] [IMG]http://jaanus.cc/pictures/fluff3.jpg[/IMG] Yellow dots on the ground are food, freshly killed fluffballs also count as food (you can kill your own if you're low). Small bar under health is hunger. NPCs don't mind you unless you get too close to their food and try to kill you/take over yours if they run out.[/QUOTE] [QUOTE=Maurice;36105063]Faithplate configuration and paths! [IMG]http://i.imgur.com/oh2Tm.gif[/IMG] [IMG]http://i.imgur.com/3Ojr9.gif[/IMG][/QUOTE] [QUOTE=Naelstrom;36091249]Woo sweet, I got my text renderer to pack glyphs into a single texture properly. Before it would just make a really long texture and pack them side by side. [IMG]http://bit.ly/JMiadg[/IMG] You can see the full texture atlas rendered at the top, and the text string rendered over the button. This should allow for other languages to be efficiently rendered, but I'm having trouble with Unicode. Jookia can you help me? You seem to be the Unicode king around here. [editline]asdf[/editline] Oh yeah I also added 3d functionality. [vid]http://bit.ly/JMjPj0[/vid][/QUOTE] [QUOTE=Smashmaster;36067432]Back to shaders, I guess... Here's a Valve-style flow map: [IMG]http://www.tinygif.net/pictures/7392984584fbd1b9d7857c.gif[/IMG][/QUOTE] [QUOTE=NorthernGate;36072126]Austin's been working on Nature 2, Blk has been doing the editing, I post the stuf, download it today (click on the images to download scrub) nature 2 is great [URL="http://puu.sh/wq5j"] [IMG]http://i.imgur.com/y22oP.png[/IMG] [IMG]http://i.imgur.com/PxHXp.png[/IMG] [B]Download today!1![/B] [/URL] [URL="http://www.youtube.com/user/RayWilliamJohnson"]link to autsins youtbue channel, go rate like and usbescribe[/URL][/QUOTE] [QUOTE=AngryChairR;36041558]C# + XNA TANK RTS [URL]http://i.imgur.com/pYeNk.jpg[/URL][/QUOTE] [QUOTE=Maurice;36031700]Just gonna dump some gifs of what I've been adding to Mari0 for the "big" update here. [IMG]http://i.imgur.com/hJIeg.gif[/IMG] [IMG]http://i.imgur.com/ocAdt.gif[/IMG] [IMG]http://i.imgur.com/hAgOe.gif[/IMG] [IMG]http://i.imgur.com/ADiE6.gif[/IMG][/QUOTE] [QUOTE=Overv;36017997]Turb added some basic graphics functions to his operating system a while ago (the bouncing ball), but he wanted something a bit more exciting. Last Wednesday he asked me if I could write a graphics demo for JSOS and I proposed to implement OpenGL 1.1 for him. He said that would take a lot of work and he just needed a simple 3D demo with functions like [I]drawCube()[/I]. Since we all know how much I love OpenGL, I did it anyway and implemented just enough of the OpenGL 1.1 spec to do something useful. I implemented the entire graphics pipeline in software in Javascript and it was a [URL="https://github.com/Overv/JSGL"]great success[/URL]. Because it's a lot easier to debug Javascript in a browser, I developed it using the HTML5 canvas to visualize the color buffer as seen below. [URL="http://dev.vertinode.nl/jsgl/"][IMG]http://puu.sh/vBHp[/IMG][/URL] My JSGL (Javascript Graphics Library) provides [I]gl.readPixels()[/I] to read back data from either the color buffer or the depth buffer. It then pushes that data through to the canvas by calling [I]putImageData()[/I] on the 2D context. The vertex processing code makes use of the [I]mat4[/I] functions in the [URL="https://github.com/toji/gl-matrix"]gl-matrix[/URL] library to apply the transformations. I found it kind of pointless to implement these functions myself, because that library is already highly optimized for that purpose. The rasterizer is based completely on my own code, with inspiration from Bresenham's line algorithm, [URL="http://courses.cms.caltech.edu/cs171/barycentric.pdf"]this paper on barycentric coordinates[/URL] and [URL="http://citeseerx.ist.psu.edu/viewdoc/download?doi="]this paper on perspective correct interpolation[/URL]. I based all of the other code on my experience with OpenGL itself and used the OpenGL 1.1 Specification to make sure everything was implemented correct. The implementation is not complete (e.g. functions and enum values are missing), but the stuff that is supported stays true to the original specification, like when errors should be thrown. Yesterday I started working on porting the code to JSOS, which proved to be a little more difficult than I anticipated. The code required little to no alteration to work, but I had to change some things in Turb's driver code to be able to draw pixels to the display. I also had to add a new pixel format mode to [I]gl.readPixels()[/I], [I]GL_UNSIGNED_BYTE_2_3_3[/I]. It's because his operating system currently allows only 1 byte per pixel with a bit layout of RRGGGBBB. The HTML5 canvas worked with RGBA bytes, which is what the implementation was originally limited to. I also found that JSOS (or the JS compiler) didn't have an implementation for the [I]!=[/I] operator, [I]Math.max[/I], [I]Math.min[/I], [I]Math.tan[/I] and [I]Date[/I] yet and I had to work around that by implementing them myself. The lack of support for the [I]!=[/I] operator was only because it's better to use the [I]!==[/I] operator, so that was a simple Find & Replace job. After all this tweaking today, I was finally greeted by a working render! Here is the output of the program [I]gltest[/I] running on JSOS in VirtualBox: [IMG]http://puu.sh/vBQd[/IMG] I haven't managed to get it to render more than one frame yet (in a timely fashion), but at least now JSOS has some working OpenGL bindings![/QUOTE] [QUOTE=garry;35978473]Made GMod output video from a demo, with frame blending (and DOF) Kind of easy to do in the Source engine because Valve did all the work. I hooked it up to Holly so it can output webm or ogg. You can record in realtime too. [vid]http://puu.sh/v2NF[/vid] I wabt to add more codecs to Holly but the GPL scares me, I want to be able to ship Holly with GMod without having to GPL GMOD. Everything I've read says that this is a grey area - and you get away with it as long as there's enough space between your closed source stuff and your open source stuff.[/QUOTE] [B]Previous Threads[/B] [URL="http://facepunch.com/showthread.php?t=1181032"]Version 26 (May 2012)[/URL] [URL="http://facepunch.com/threads/1174646"]Version 25 (Apr 2012)[/URL] [URL="http://www.facepunch.com/threads/1160420"]Version 24 (Feb 2012)[/URL] [URL="http://www.facepunch.com/threads/1151723"]Version 23 (Jan 2012)[/URL] [URL="http://www.facepunch.com/threads/1144771"]Version 22 (Dec 2011)[/URL] [URL="http://www.facepunch.com/threads/1137375"]Version 21 (Nov 2011)[/URL] [URL="http://www.facepunch.com/threads/1123599"]Version 20[/URL] [URL="http://www.facepunch.com/threads/1099026"]Version 19[/URL] [URL="http://www.facepunch.com/threads/1090922"]Version 18[/URL] [URL="http://www.facepunch.com/threads/1082035"]Version 17[/URL] [URL="http://www.facepunch.com/threads/1062318"]Version 16[/URL] [URL="http://www.facepunch.com/threads/1044832"]Version 15[/URL] [URL="http://www.facepunch.com/threads/1028402"]Version 14[/URL] [URL="http://www.facepunch.com/threads/1000894"]Version 13[/URL] [URL="http://www.facepunch.com/threads/969139"]Version 12[/URL] [URL="http://www.facepunch.com/threads/949277"]Version 11[/URL] [URL="http://www.facepunch.com/threads/935572"]Version 10[/URL] [URL="http://www.facepunch.com/threads/919721"]Version 9[/URL] [URL="http://www.facepunch.com/threads/899530"]Version 8[/URL] [URL="http://www.facepunch.com/threads/878114"]Version 7[/URL] [URL="http://www.facepunch.com/threads/862848"]Version 6[/URL] [URL="http://www.facepunch.com/threads/842121"]Version 5[/URL] [URL="http://www.facepunch.com/threads/829486"]Version 4[/URL] [URL="http://www.facepunch.com/threads/808758"]Version 3[/URL] [URL="http://www.facepunch.com/threads/774427"]Version 2[/URL] [URL="http://www.facepunch.com/threads/764346"]Version 1[/URL]
Ohh that shiny new feeling :)
Hardcode IDE got presentation page for our reconstruction of the UI [URL=http://hcide.com/interactive-demo/]http://hcide.com/interactive-demo/[/URL] EDIT: Link fixed
I don't know about everyone else but I felt the highlights were severely lacking this thread [sp](I'm not in them)[/sp]
What did you do? I diden't see much
[QUOTE=Ziks;36157927]I don't know about everyone else but I felt the highlights were severely lacking this thread [sp](I'm not in them)[/sp][/QUOTE] I feel the same way! :P
I was curious to see if I was highlighted... then I realized I didn't make anything last month.
[QUOTE=jamie1130;36157948]What did you do? I diden't see much[/QUOTE] [QUOTE=Ziks;36057790]Fog! [img]http://puu.sh/wd6p[/img] [img]http://puu.sh/wd7h[/img][/QUOTE] [QUOTE=Ziks;36146258]Currently avoiding doing world collision so I added menstruation [img]http://puu.sh/xXWs[/img][/QUOTE] [editline]1st June 2012[/editline] Sorry for blowing my own horn
Yeah, seems only the LAST few pages got into the highlights, which is a shame.
Oh god damn it, I forgot to close my project and it generated this file while I was sleeping: [IMG]http://dl.dropbox.com/u/27714141/oh%20fuck.png[/IMG]
The supreme laziness of not wanting to scan through 56 pages of content :/. :D
Aw, didn't make it to the list this time. OP should've looked further back in time though.
How do you make objects move in OpenGL? I was thinking changing the coords of the objects, then uploading the data back to the vertex buffer. Is this right?
[QUOTE=WTF Nuke;36158579]How do you make objects move in OpenGL? I was thinking changing the coords of the objects, then uploading the data back to the vertex buffer. Is this right?[/QUOTE] You should change the Model View matrix to move objects.
[QUOTE=WTF Nuke;36158579]How do you make objects move in OpenGL? I was thinking changing the coords of the objects, then uploading the data back to the vertex buffer. Is this right?[/QUOTE] You can send the object's position as a uniform before you draw from the vertex buffer, which saves you from reuploading the data for complex objects when they move.
[QUOTE=WTF Nuke;36158579]How do you make objects move in OpenGL? I was thinking changing the coords of the objects, then uploading the data back to the vertex buffer. Is this right?[/QUOTE] glTranslate before your draw call.
I think I got the algorithm for my generic type system. Next up is the implementation. Then generic functions. After that edge-polishing.
I took a break and did something fun. [video=youtube;X-jJ6RFP-WY]http://www.youtube.com/watch?v=X-jJ6RFP-WY[/video] [edit] This particular version of this game does not have an SDK available for it. Rockets can't bounce in this game, but I changed that.
what an awful op
[QUOTE=synthiackup;36159481]what an awful op[/QUOTE] *insert mandatory bitch about the op* Seriously, this happens every time, can't we just get over the fact that no-one ever likes the op and get back to the thread?
Aha you set them to bounce 255 times?
[QUOTE=danharibo;36158599]You should change the Model View matrix to move objects.[/QUOTE] Oh ok. For each object, am I supposed to make a draw call?
[QUOTE=WTF Nuke;36159564]Oh ok. For each object, am I supposed to make a draw call?[/QUOTE] If you're managing the Matrices yourself to use modern OpenGL, you can do it like this [cpp] GLint uniLoc = glGetUniformLocation( mProgramName, "u_worldspace_matrix" ); if( uniLoc != -1 ) { glUniformMatrix4fv( uniLoc, 1, GL_FALSE, m ); } [/cpp] and multiplying it in your shader (this is how you should do it). Where m is an array of 16 floats the make up your matrix and mProgramName is the name of your shader program. If you're not using shaders or managing the matrices yourself, you can do this: [cpp] glMultMatrixf( m ); [/cpp] Where m is an array of 16 floats that represent the matrix to multiply with the current matrix opengl already has. Once you've done that, you just draw the object using the method of your choosing and it will magically be hopefully where you wanted it to be. I suggest you learn about modern OpenGL, and I think overv's [url=http://open.gl]open.gl[/url] should give you at least a little bit of information on the topic.
I am trying to, but it seems very different from 2d, and I am not sure about the semantics and the exact way things should be done. Anyway I'll go over open.gl, but if you have a tutorial on the way openGL programs should be structured that would be great. [editline]1st June 2012[/editline] Wait shit this isn't WDYNHW sorry.
[QUOTE=Topgamer7;36159533]Aha you set them to bounce 255 times?[/QUOTE] Yes, but they would eventually be removed after about a minute or so. I could have changed that too but I didn't think about it.
[QUOTE=WTF Nuke;36159564]Oh ok. For each object, am I supposed to make a draw call?[/QUOTE] Yes but there are other methods. Instancing for example. However, you should worry about that if it becomes a problem.
I for one think the op is fantastic. [sp]I'm in it[/sp] Oh yeah I just made some fog, solid tile outlining, and a threaded lua console. [vid]http://bit.ly/Npxnow[/vid] I'm hoping for a 2d-3d hybrid game, much like dwarf fortress.
I don't know if I like the outlining. If you got some proper art assets, you probably wouldn't need it.
Thanks for the input; I just think it's hard to tell what's a wall and what isn't without the outlines. And unfortunately I'm doing all the art assets myself, so they'll probably never be proper. :(
Got fedup of the blocks and the lighting problem so started using OBJ files instead. Made a kind of flash light: [video=youtube;R2sZfDFX1zM]http://www.youtube.com/watch?v=R2sZfDFX1zM[/video]
Sorry, you need to Log In to post a reply to this thread.