Jump to content
  • Advertisement

Evil Steve

GDNet Emeritus
  • Content count

    15897
  • Joined

  • Last visited

Community Reputation

2019 Excellent

About Evil Steve

  • Rank
    Moderator Emeritus

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Evil Steve

    OpenSSL tutorials?

    That requires more effort than just pasting a Dropbox link though ;)
  2. Evil Steve

    OpenSSL tutorials?

    So I set up libCurl, and wow - it's awesome. I don't know why I've not been using it already. I don't mind not being able to use my existing socket code; libcurl is amazingly simple to use and a lot more configurable than I thought it was.   Security isn't really a concern for me, since I'm only using it as an HTTP[S] client, and I'm not sending or receiving particularly sensitive data. I know ot should be a concern, but... meh   EDIT: Share and enjoy: https://www.dropbox.com/s/n2ccfcl2i307w7c/PWebRequest.h?dl=0 https://www.dropbox.com/s/rgekny0gmsb7644/PWebRequest.cpp?dl=0 https://www.dropbox.com/s/r7gv0dd47ww4h6n/PWebRequestFactory.h?dl=0 https://www.dropbox.com/s/obweuojfrxxxggc/PWebRequestFactory.cpp?dl=0   Cheers, Steve
  3. Evil Steve

    OpenSSL tutorials?

    Interesting, I didn't know WinHTTP existed. I've been looking into libcurl, and it seems to do exactly what I need with the minimum of fuss. I've got no compunction in stripping out my existing HTTP code, since it's far from perfect, and was just quickly knocked together - I recently added chunked request support to it, since that wasn't supported before, and Facebook sends some responses back as chunked - so there's no doubt loads of other things it doesn't support that will break in the future. Cheers, Steve
  4. Evil Steve

    OpenSSL tutorials?

    Thanks for the replies; libCurl is probably a good option now I think about it. I had a quick look on google, but most of the tutorials I've found are very high level introductions.   I somehow missed the wiki completely too - I'll have a look through that also.   Cheers, Steve
  5. Evil Steve

    OpenSSL tutorials?

    Hi, I'm trying to add SSL support to my server app, written in C++ and running on Windows. The primary use for SSL is for making HTTPS requests to Facebook and Twitter for social interaction. Currently I'm proxying HTTPS via my Apache web server, but I'd like to be able to do the HTTPS directly without needing a proxy. I'm well versed with socket programming, using BSD sockets, WinSock, and IOCP, with the server using IOCP currently. However, I'm very new to SSL. Firstly, does anyone know of any good tutorials for OpenSSL? I've got a *very* simple connection going by following this tutorial, but it's a bit... lacking: http://www.ibm.com/developerworks/library/l-openssl/ (And x64 OpenSSL 1.0.1i I think) I'd like to avoid using the BIO interface if possible, and I'd prefer to layer SSL over my existing socket layer, since that will require minimal code changes. Secondly, I understand that I need to have a store of CAs to verify the certificates used by a server, which I believe is done with the SSL_CTX_load_verify_locations function. However, if I'm just making client connections, is this call and the CA store required, or is this only if I'm writing an SSL server? Thanks, Steve
  6.   It's not possible to use 16-bit floats with FVF codes; you need to use shaders. Also be aware that converting from 32-bit float to 16-bit float isn't trivial since there's no built-in half type in C++. Also what ankhd said - generally you only want to use 16-bit floats for texture coordinates and maybe normals - elements with a limited range.
  7. D3DXLoadSurfaceFromSurface() is not something you want to be calling every frame. You should load your cursor frames at startup, and then just call SetCursorProperties() once per frame.
  8. Generally you give each object a different Z value, and use the Z-buffer to do the culling for you. The Z-buffer is created (Well, usually) when you create the D3D device, if you set the EnableAutoDepthStencil member of the D3DPRESENT_PARAMETERS struct to TRUE, and set the AutoDepthStencilFormat member to a valid format. That allows you to draw the objects in any order, and the Z-buffer keeps track of the depth of each pixel and correctly occludes pixels as required.   As Jason said however - for alpha'd objects, you still need to render them in back-to-front order for the blending to work correctly.
  9. Evil Steve

    True, False, FileNotFound

    Sigh. From the SDK of a certain big-name console: enum GraphicsBoolean Graphics's version of bool-type values. Enumerator: GRAPHICS_FALSE GRAPHICS_TRUE GRAPHICS_DISABLE GRAPHICS_ENABLE That makes me sad. EDIT: Censored the library name
  10. I am drunk. I like muffins. That is all.
  11. Evil Steve

    Preview of the game I'm working on

    And the images seem to be borked. There's images viewable on [url="http://www.facebook.com/media/set/?set=a.10150709689980298.719929.212717370297"]Facebook[/url], however.
  12. Evil Steve

    Preview of the game I'm working on

    IGN has released a preview of the game I'm working on: Need For Speed: The Run on 3DS. Obviously I can't say an awful lot about it, but the preview doesn't do it justice IMO - some of the tracks are much prettier than the screenshots there, and it doesn't cover some fun things like heroic stunts (Which you can see mentioned on the bottom screen in the second screenshot). Anyway. Back to work. I need to tighten up the graphics on level 3.
  13. Evil Steve

    I'm not dead!

    [quote name='Aardvajk' timestamp='1309164011'] Yeah. The one beauty of renting is that you have an exactly fixed outgoing every month and if the boiler explodes or the roof blows off in a freak storm, someone else has to pay for it. But if we ever get out of this recession, I'd imagine a flat in Glasgow would be a pretty hot property really. You could sell it, move into a caravan and buy a computer from Alienware. [/quote] Now THAT sounds like a good idea...
  14. Evil Steve

    I'm not dead!

    Last update was in January, whoops. I've been pretty busy recently, been buying a 3 bedroom flat in Glasgow which is a lot more stressful than I thought it'd be. I finally moved my stuff in at the start of June, after having fun trying to get a certificate of building works for the work that the previous owner did to the property. He moved the kitchen completely, put in an en-suite, and added an air duct to extract air from the en-suite, kitchen and bathroom and spew it into the stairwell. And there's the problem. The building certificate guy said that it can't vent into the stairwell, since it's a fire escape so it's a fire hazard - despite every other flat in the building doing the exact same thing. I was told that it would need to be re-ducted to an exterior wall, and was then told a week later that it'd been done. All this happened about 2 weeks before I was due to move in, after my offer had been accepted, so there wasn't a lot of time for me to argue it or anything like that. So I officially moved in on the Friday, and I went to the flat on Saturday to see what had been done with the ducting. And it hadn't exactly been re-ducted, it'd been blocked up. I spoke with my solicitor who said that basically there's nothing we can do about it, because he has a certificate to say that the building works are carried out to code (They're not functional, but they're to code...). I spoke to the previous owner about it and he said that apparently this is just something that everyone does, and he's happy to unblock it if I want, so it'll vent back into the stairwell - which is against the building regulations and will need blocked up again if I sell the place, but at least it'll be functional. So he came and did that, which took him 5 mins which was good-ish. Other fun things I noticed after moving in is that the floors are a mess. It's laminate flooring, and it was in a reasonable state when I went to view the place in February, but the owner had tenants in during this time, and I stupidly didn't go to see it after they'd moved out. The floors weren't really that bad, but they were worse than when I saw it previously, with big cracks between the pieces of laminate in the hall, and a big spongy bit just as you enter the lounge. There was also a damp patch that wasn't visible before because it was behind a sofa. It was mentioned in the home report, but I assumed it was just a mark on a different wall (Same wall, but on the other side) that the owner said he was taking care of. So, the current state of affairs: I got hardwood flooring from Direct Flooring and got it put in throughout, which is still a work in progress as we speak. It looks considerably better than the laminate, and the guys who put the flooring in (Area Joinery) have done a fantastic job. They've not done the flooring around the damp patch, because it'd just need ripped up again, so the plan is that I get the damp fixed, then they come back and do the rest as a separate, smaller job. I got a quote from one builder for fixing the damp - who quoted GBP640 ex. VAT, so around GBP750 including VAT. The damp patch is pretty small, and is because it's just a plastered-over fireplace which hasn't been properly blocked up, so I think GBP750 is perhaps a bit steep. I also need to get a fireplace trimmed because the large concrete slab base of it is raised up above the floorboards so the flooring guys can't floor over it - thankfully it's the fireplace at the damp patch, so it couldn't be floored over anyway - but I don't think I'll be getting the GBP750 builder to do that somehow... I was due to have another builder come and give me a quote last night, but he "forgot" apparently, and is supposed to phone me today but hasn't yet. So I might end up needing to find another builder instead... On top of that I've been extremely busy at work, I can now say that I'm working on Need For Speed: The Run on the 3DS. And speaking of being extremely busy, now this has FINALLY finished compiling, I'm going to get back to it...
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!