Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Everything posted by diablos_blade

  1. diablos_blade

    looking for simple megaman example

    If you've already developed the game in another language, why do you need to be shown how to make it again in C++? The differences in code will be largely syntactical rather than algorithmical, you'll just be able to pretty much copy exactly what you've done already.
  2. diablos_blade

    [iPhone] Unmasker

    It crashes for me on start-up with a 2nd-gen iTouch. =/ I'm in the office though so I'll give it a go on one of the development iPhone 4's we have kicking about later on.
  3. diablos_blade

    UNITY 3D Script

    I don't quite understand the question. I assume you've already built the game for web? Otherwise you wouldn't have the output HTML file Unity generates for you. To use the new script you must add it to the game before you build it and do what you want with it in code (either C#, Unity-Script or Boo). You can call functions on objects which already exist in the built file from JavaScript in the HTML file you're given, but you still need to add the new script before building. Does that help? We need more information to give you a better answer.
  4. diablos_blade

    Shadow Mapping Without Shaders

    Sure. Everyone in your previous thread. They'd love to help It basically boils down to: You can't, use stencil shadows/shadow volumes instead.
  5. diablos_blade

    deferred rendering: lighting stage

    There is the third method, very similar to the stencil one mentioned above, which is to simply render the bounding shape of the light, with depth testing set to GEQUAL. The fragment shader for the bounding shape will then be run for all fragments which might be affected by the light, you just need to find out which screen fragment you're rendering. There will be wasted pixels computed (i.e. You look directly at a wall, 10m behind the wall there is a light with only a 5m radius. The stencil test would basically ignore this light, the depth test will not.) but it only requires a single pass, where the stencil-test requires either 2 or 3 passes (I haven't done it myself, so I can't be certain. I do know you can remove a pass by doing the two parts of the stencil test in one go), so it might balance out. Obviously one light per-pass should only really be done for shadow casting lights in a final version, non-shadow casting lights should probably be batched together into a single pass (as in option 2 mentioned by Danny above).
  6. diablos_blade

    Unity Compiling

    The Unity GUI system uses pixel co-ordinates rather than normalised view co-ordinates, which poses a few problems when using different resolutions. My guess is you've laid out everything perfectly when in the editor, but the editor is a different resolution to your game when running standalone. (It looks like you're running at 800x600 when built, but I doubt the editor Game View can be that size and fit the rest of the editor on screen.) I tend to prefer to roll my own simple GUI system (Buttons, sliders, checkboxes etc) using meshes and the OnMouse* events rather that use the Unity built in system to get around this sort of thing and allow for a lot more optimisations. (i.e. The UnityGUI doesn't allow for batching of draw calls, whereas mine does)
  7. diablos_blade

    Loading an Image in a class

    It's because Content is not a menber of ball, nor is it a global variable. It belongs to the Game class (which your main game derives from) so you should send it into your loadstuffs method to access it. My XNA is a bit rusty, but it should look like this. class Ball { public Texture2D image; public int stuff; public Ball () { } public void loadStuffs (ContentManager contentManager) { // i want to be able to load an image here without having to pass it via parameter image = contentManager.Load<Texture2D>("ball"); // this is whats not working } } // Then inside the MyGame class. void FunctionName( ) { ball.loadStuffs( Content ); } Edit: Apparently the code tags don't like being copy & pasted from. Yay whitespace issues.
  8. Either that or Tone Mapping.
  9. diablos_blade

    Mesh appears to be transparent

    It just looks like you're missing a depth buffer (a.k.a Z-buffer), lot's of people make that same mistake at first. I haven't really tried D3D in a while though, so I can't tell you how to make one.
  10. diablos_blade

    Best library for doing text in OpenGL

    I've had good experience with FreeType 2, it's under a pretty nice license too from what I remember.
  11. Ah, yes I believe it is just for forms. I never had to use the Application class when I was making my own tools. However, why is your Application having Shutdown called? Which is why the Exit event is raised. If you are calling it explicitly yourself, then either consider asking for the user to save before calling Application.Shutdown (probably the easier option), or instead set Application.Shutdown mode OnMainWindowClose and call Form.Close on your main form if you have one. If Shutdown is being called because the system is shutting down or logging off then you should respond to the SessionEnding event instead, which can be canceled and delayed while you ask the user a question.
  12. Have you managed to solve this yet? If not I'd recommend looking into the Form Closing Event. It's been a while since I used it myself, I haven't set up many Forms recently, but it should be something like this: (Disclaimer: Mostly done from memory, may need a bit of rejigging.) protected override void OnFormClosing(object sender, FormClosingEventArgs args) { if ( !saved ) { switch( MessageBox.Show( "Alert", "Save first?", MessageBoxButtons.YesNoCancel ) ) { case DialogueResult.Yes: Save( ); break; case DialogueResult.No: //Do nothing break; case DialogueResult.Cancel: args.Cancel = true; break; } } }
  13. hasn't posted a status in a while.
  14. diablos_blade

    toymaker or directxtutorial?

    By ToyMaker I assume we're referring to toymaker.info? My personal opinion would be to use that over DirectXTutorials. I've read nothing but negative comments regarding DXTutorials and my experience with ToyMaker was very good. I should point out though that my opinion is biased due to ToyMaker being written and maintained by a former lecturer of mine and was pretty much part of our core reading and reference material. It has been a few years since I was referencing it however, so it may be a little out of date, but there is frequent mention of error checking (how to error check is only shown once and you're supposed to use a bit of common sense to figure out for yourself where to best check for errors, but it is mentioned in the closing paragraph of most chapters I remember), and teaches you all the basics, and several advanced steps, required to get something drawing on your screen. Everyone has different tastes when it comes to what helps them learn best though, neither DXTutorials or ToyMaker may fit your style. The SDK documentation might be the perfect place for you. The only way to know really is to try them out. I would first ask yourself if this is the right direction for you however. At this stage of the learning process, do you really want to learn how to manage all the graphics hardware yourself, or do you just want to make a game and worry about that later? If that's the case, then finding a good 2D game engine might be a better choice for you.
  15. So you thought Crickets were tough to switch to a different container? Try Locusts.
  16. If it's likely people around you would suspect you of self-harming, I wouldn't recommend owning a Bearded Dragon. Especially not one who's idea of "exploring" is "attempting impossible jumps."
  17. ...Why have I been sent every letter of four different fonts as a separate PSD file? Especially when that PSD only contains one layer which has been flattened, so has no use as a PSD.
  18. I just did some actual work on my website. o.O
  19. I'm in Eyemouth. Who else is here?
  20. Well that's a shitty ludum dare theme... if I can think of anything decent in the morning, I might still enter.
  21. Merry Chocolate Day!
  22. diablos_blade

    Error when trying to bring my engine (lib) to my exe

    Adding _DEBUG to a project does nothing more than activate a preprocessor value. _DEBUG specifically probably won't do a lot more than enable some asserts. Take a look at other places in the library build settings for an iterator debug level value (off the top of my head, I can't remember where that is.) and change that in the debug build to match the value used in your application.
  23. Brace yourself everyone. Something amazing has just happened... we have just received art work from a client which is actually usable. This is unprecedented.
  24. diablos_blade

    Luabind to access classes.

    __init requires a self parameter and returns nothing. Update probably requires a self parameter too. If you really want to create objects this way, I suggest something like this: // Will call the global function called "name", which, from lua-side, acts as you'd expect a "obj = new Object( )" to work luabind::object myObject = luabind::call_function<luabind::object>( name )[luabind::adopt(luabind::_return); myObject["update"]( ); The function calls might not be exactly right, but should give you an idea. However, I've had a few crashes lately with luabind not keeping references to objects alive which were created lua-side but stored C++-side. Although this was also using lua-side specialisation of classes, so your case may not be affected.
  25. building Google's v8 could not have been any more tedious if it tried...
  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!