• What are you working on? V2
    2,001 replies, posted
Finished the window and control management and added the first real control: Labels. [img]http://i29.tinypic.com/3007ha0.jpg[/img] Note that the physics are a bit confused, because the boxes are bouncing around pretty fast.
Looks nice, maybe add a shadow to the window?
[QUOTE=gparent;16154069]Do you not realizee that multiple iterations of the "waterfall model" is very similar to the basics of the iterative model presented in UML? Just because somebody mentions designing something before coding it doesn't mean they're doing waterfall.[/QUOTE] Well, [QUOTE=Cathbadh;16151336]Once you have [highlight]everything[/highlight] diagrammed out, then you begin building the individual and independent parts and [highlight]perfect[/highlight] each one in turn [highlight]before you begin[/highlight] tying it all together.[/QUOTE] He kinda was.
[QUOTE=Overv;16154381]Finished the window and control management and added the first real control: Labels. img Note that the physics are a bit confused, because the boxes are bouncing around pretty fast.[/QUOTE] You should add some shadows or something as it looks pretty bland. My skin for my friend's window system has them, looks quite rad. [img]http://img.meteornet.net/uploads/inb852wl/ss.png[/img]
Added one ship. [img]http://imgkk.com/i/7DUwFhUR.png[/img] Bomber, has more bombs ( more powerful too ). Downside is low firepower.
[QUOTE=jA_cOp;16154470]Well, He kinda was.[/QUOTE] UML has you diagram everything too. Then you code, fix bugs, and then design other parts of the system at the next iteration. You still have a working product that is theorically perfect after every iteration.
[QUOTE=Catdaemon;16154545]You should add some shadows or something as it looks pretty bland. My skin for my friend's window system has them, looks quite rad. *picture*[/QUOTE] Ah, that looks pretty good. Well, I'll first look into some performance trouble, then I'll make the windows look fancier. Shouldn't I get an FPS of at least 800 for those boxes in my screenshot on a 8800 GT?
you have vsync on
[url]http://msdn.microsoft.com/en-us/library/ms858180.aspx[/url] you want the top one - immediate. it's on 0 (default - vsync) by default. [code]d3dpp.PresentInterval = Immediate;[/code] Probably something like that.
Sorry, I meant without VSync I'm getting an fps of about 200. But Nevec told me I should use transformed textures instead of vertices for the boxes.
Are you batching? You shold use as few DrawPrimitive calls as you can. For example, if all you boxes use the same texture etc, you can draw them all in one go. The D3DXSprite shit does this automatically, but for usability's sake you're probably best off making a vertex buffer class that your drawing functions fill and flush appropriately.
[QUOTE=garry;16155761]The D3DXSprite shit does this automatically, but for usability's sake you're probably best off making a vertex buffer class that your drawing functions fill and flush appropriately.[/QUOTE] Always filling and flushing the buffer is a lot slower than drawing a scaled blank texture. Though, it's the only way when dealing with multiple different shapes.
[QUOTE=qurl;16152835]Everyone starts off like that. Fuck tutorials, you need a friend to walk you through it. Or a proper teacher. [/QUOTE] I wish I had one that knew DirectX. Anyways, maybe it's too advanced for me. Irrlicht is easier to understand. Maybe once I learn irrlicht pretty well I'll go back to DX
So, you're saying I should dump all the triangles in a single vertex array and then at the end draw it all using one call like this? [img]http://i30.tinypic.com/nmjm37.png[/img]
[QUOTE=raccoon12;16155876]I wish I had one that knew DirectX. Anyways, maybe it's too advanced for me. Irrlicht is easier to understand. Maybe once I learn irrlicht pretty well I'll go back to DX[/QUOTE] Irrlicht will familiarise you with the concepts you will use with Direct3D. So it all helps.
[QUOTE=Nevec;16155862]Always filling and flushing the buffer is a lot slower than drawing a scaled blank texture. Though, it's the only way when dealing with multiple different shapes.[/QUOTE] Well yeah, it isn't batching if you flush it right after adding to it. :rolleyes: [editline]05:29PM[/editline] [QUOTE=Overv;16155930]So, you're saying I should dump all the triangles in a single vertex array and then at the end draw it all using one call like this? [img]http://i30.tinypic.com/nmjm37.png[/img][/QUOTE] Yeah, exactly
[QUOTE=Overv;16155930]So, you're saying I should dump all the triangles in a single vertex array and then at the end draw it all using one call like this?[/QUOTE] Didn't you used to have a grid on your sandbox? I liked the grid.
Wow I missed a lot since I've been in Paris. Everything is looking awesome :).
For all you who tries to learn Direct3D, I recommend this book: [img]http://images.amazon.com/images/P/1556229135.01.LZZZZZZZ.jpg[/img] [url]http://www.amazon.com/Introduction-Programming-DirectX-Wordware-Graphics/dp/1556229135/ref=pd_ts_b_7?ie=UTF8&s=books[/url] There may be some gaps if you're not that good at math, though. Combined with [url]www.directxtutorial.com[/url] it's great.
that cover is bad ass
[QUOTE=Sippeangelo;16157151]For all you who tries to learn Direct3D, I recommend this book: [img]http://images.amazon.com/images/P/1556229135.01.LZZZZZZZ.jpg[/img] [url]http://www.amazon.com/Introduction-Programming-DirectX-Wordware-Graphics/dp/1556229135/ref=pd_ts_b_7?ie=UTF8&s=books[/url] There may be some gaps if you're not that good at math, though. Combined with [url]www.directxtutorial.com[/url] it's great.[/QUOTE] I second this. The OpenGL 2.1 redbook kicks ass for OpenGL also.
After a long break (1.5 weeks) I continued work on my tiny prototyping Java rendering "engine". It supports fullscreen mode, windowed mode, automatically chooses between page flipping or double buffering. To use it I only have to implement one interface with 4 methods (preInit, postInit, draw, update). In the preInit and postInit methode I get a little object I can use to add Key-, Mouse- and MouseMotionListeners, setting the resolution/window size, enable/disable fullscreen, set preferred framerate (it's running at a fixed framerate). If I don't set something it uses default values. I'm proud of it. :D
Holyshit, the FPS went from 200 to 1900 [img]http://sa.tweek.us/emots/images/emot-aaaaa.gif[/img]. Thanks a lot for the suggestion, Garry [img]http://sa.tweek.us/emots/images/biggrin.gif[/img]. [img]http://i27.tinypic.com/ifvnyh.jpg[/img]
Anyone know any good GUI tutorials for c++?
[QUOTE=lumer0;16159278]Anyone know any good GUI tutorials for c++?[/QUOTE] Uh, it's not as simple as that. [url]http://winprog.org/tutorial/[/url] Or [url]http://www.wxwidgets.org/[/url]
[QUOTE=Jallen;16159309]Uh, it's not as simple as that. [url]http://winprog.org/tutorial/[/url] Or [url]http://www.wxwidgets.org/[/url][/QUOTE] Ouch that looks hard.
[QUOTE=lumer0;16159359]Ouch that looks hard.[/QUOTE] directxtutorial.com has a chapter in which he explains how it all works. I'd suggest you take a look at that. [url]http://www.directxtutorial.com/Tutorial9/A-Win32/dx9A2.aspx[/url]
[QUOTE=lumer0;16159359]Ouch that looks hard.[/QUOTE] Use managed C++ and .NET then.
I love GUI's [cpp]currentMsgBox = new UI_MessageBox("Mass Alert!", "Hello fuckers blah blah blah\nAlso blah", "Moderator says");[/cpp] [img]https://files.getdropbox.com/u/99765/chatbox_9.png[/img] Rushed textures just to test Cool thing is I can pretty much slap my GUI into gtaiv using the script hook. Could make an awesome little spawn menu
[QUOTE=qurl;16159923]I love GUI's [cpp]currentMsgBox = new UI_MessageBox("Mass Alert!", "Hello fuckers blah blah blah\nAlso blah", "Moderator says");[/cpp] [img]https://files.getdropbox.com/u/99765/chatbox_9.png[/img] Rushed textures just to test Cool thing is I can pretty much slap my GUI into gtaiv using the script hook. Could make an awesome little spawn menu[/QUOTE] Oh bloody hell I hate that font. But if you're going to make a Habbo clone, I guess it's OK.
Sorry, you need to Log In to post a reply to this thread.