Advertisement Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

272 Neutral

About zangetsu

  • Rank
  1. Generally code written against one version of the .Net runtime can be compiled later against later versions of the runtime. Occasionally, you will find some things that would have worked in earlier versions do not work in later version, or have been deperciated. It has been my expierence, that in these cases, the IDE has been smart enough to suggest changes that will correct the issue. My Suggestion is to try and to the tutorials with Express, and see if you even have any problems. If the tutorials are well written and the author wasn't in the bad habbit of taking shortcuts than you should be fine. For Example: Threading.Thread.CurrentThread.Sleep(100) This works fine in .Net 1.1, but in 2.0 it causes the Warning: Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated. When you mouse over the problem in Express, An error correction options tooltip appears and if you click on it, the IDE suggests changing it to: Threading.Thread.Sleep(100) Which is how it should have been done in the first place (assuming best practices). However since it is just a warning, in theory you could run the code without making the correction. Anyway my point is there is unlikely to be anything you need to do in a tutorial that will be a problem if you are using a newer version, so go for it.
  2. zangetsu

    [.net] MDX or XNA

    Quote:Original post by daviangel Yes I know that's why I'm so pissed off that Microsoft isn't supporting VB and XNA even though it was supported in earlier versions of managed dx. I also know C++/C# but rather code in VB since it saves me alot of typing as you know and as long as you ain't making the next Quake engine is fast enough. I guess it's back to C# since it isn't anywhere as bad as C++ and only a little more typing than VB. I've been using XNA and VB for a while now exactly in the way that Machaira said. I haven't found anything yet that I wanted to do and couldn't. Admittedly it would be nice to have VB sample code, but I don't mind translating C#.
  3. Hello, I've been doing plenty of 2D graphics in the past, and I'd like to start doing some 3D Stuff, I have an idea for somethings that I would like to do and now I am trying to find out if there is a library to help me do it. Basically what I am looking for is and Engine or library that will allow me to 1) Load models and maps from fairly standardized formats (official or de-facto). Preferably formats with Free editing/creation tools. 2) Allow modifcation of models by attaching other models to it. Basically I want to be able to start with a basic humaniod, and add things like a helmet by attaching a helmet model to the head. 3) Seperate data for Models and their animation. Basically I want to have various animations that are seperate from the model that can be combined as needed. (again some form of standard data.) 4) Support for .Net. Ok I know this really cuts back my options, but I really do enjoy using .Net. Any Suggestions?
  4. The XNA color class has .R .G .B and .A members that expose the RGBA values just like the normal .Net color classes. Public Function ConvertColor(ByVal Value As System.Drawing.Color) As Microsoft.Xna.Framework.Graphics.Color Return New Microsoft.Xna.Framework.Graphics.Color(Value.R, Value.G, Value.B, Value.A) End Function Public Function ConvertColor(ByVal Value As Microsoft.Xna.Framework.Graphics.Color) As System.Drawing.Color Return System.Drawing.Color.FromArgb(Value.A, Value.R, Value.G, Value.B) End Function
  5. zangetsu

    Computer randomly freezes.

    If you are certain that its either Video or Hard drive, you could eliminate one by using a Live CD like Unbuntu. Disconnect the HD. Boot the system from CD, and play around until either the freeze happens or fails to happen. If you still have freezes without the HD connected, then you know its not the HD. If it doesn't freeze, the you can be resonably sure its the disk, its contents, or possibly the disk controller.
  6. zangetsu

    Name the Curve of y = x^3

    I probably won't name the curve in the documentation anyway. I was just wondering for my own benefit.
  7. zangetsu

    Name the Curve of y = x^3

    So I was working on some documentation describing the desired behavior of an AI system I was working on and I made a graph to describe it, and its basically the y=x^3 curve (Example). I'm trying to discuss the curve and I'm having a brain fart as to what its name is. I know its a cubic but there are loads of cubic functions, but there are lots and lots of those, and not all of them have names. So what is the name of the curve?
  8. zangetsu

    [.net] Easy Scripting in .NET

    Afr0m@n, I really need to pay attention. object Instance = Results[Counter].CompiledAssembly.CreateInstance( ExtractFilename( TempScript.Name ) ); Instance.GetType.GetMethod( "Init" ).Invoke( Instance, null ); AP, Quote:Original post by Anonymous Poster In a recent project I've been using JSCRIPT similar to how you use C#, to parse and evaluate expressions, basically ResultString = ParseExpression("5*25"); but it's fairly slow. Will I gain any speed by switching to the C# Compiler? I don't know without seeing your code, but the technique described in this thread really is not meant for casual evaluations. Its really meant for the situation where you have a lot of methods defined that you want to call repeatedly in your app. The problem is that compiling an assembly, and creating instances of classes from it has a lot of overhead. Its not bad if you app does this once at start up or infrequently when loading a level, but used frequently to evaluate expressions, then you will have problems.
  9. zangetsu

    [.net] Easy Scripting in .NET

    Your still not creating an instance of anything. I don't program in c#, but the concept is basically this. //declare a variable of type Object Object ScriptInstance; //create an instance of a class defined in the "script" //MyClass is the name of an object defined in the script. ScriptInstance = CompiledAssembly.CreateInstance("MyClass"); ScriptInstance.GetType.GetMethod("MyMethod").Invoke(null,null); For this to work your script must define an class. Once you have an instance of that class, you can get its methods and invoke them. class MyClass { public MyMethod() { //more code here. } } You don't need to find a path to the compiled assembly or anything like that since its already loaded into memmory, when it was compiled. This is because you told the compiler to do that. Params.GenerateInMemory = true;
  10. zangetsu

    [.net] Easy Scripting in .NET

    The reason why you're code is erring on that line is that what you have is an assembly that was created in memory. What you will need to do is create an instance of something that is defined in the assembly (like a class), then invoke a method of the class of which you created an instance of. OK, that reads in a really confusing way. Normally I wouldn't whore my own posts like this, but a few weeks back I collated a whole bunch of stuff I learned about this stuff into one post where I explain things line by line. I hope that helps.
  11. There is the entire System.Security namespace in the .Net runtime that has all sorts of encryption tools in it.
  12. zangetsu

    Sprite Sheets anyone?

    From a performance perspective (and this depends on implementation) but if you are using 3D extentions like DirectX or OpenGL, then often using fewer larger textures/sprite sheets improves performance. This is because in these environments, each time the source image is changed, some overhead is introduced. The way this performance loss is avoided, is to use fewer textures, but feed a more complex set of source and destination coordinates to the renderer. This is really only a concern when using 2.5D (the practice of using 3D extensions to render 2D Graphics). In my humble opinion, for most 2D graphics on modern hardware, this level of optimization can easily be overkill.
  13. zangetsu

    How many Hot Keys are too many???

    Quote:Original post by noisecrime The problem is not really about hotkeys, but the developers lack of UI for removing mundane tasks that the player should not have to deal with. Amen. I've been playing a lot of Simcity 4 lately. and I have started asking myself, why don't schools and hospitals have an auto funding option, where the funding level for individual schools and hospitals auto adjust? I find myself adjusting that slider more often than anything else in my mayoral dutites. Can't I just have an auto fund check box. Sure it might cause me to spend more than I can afford at times, but I probably do that a lot now anyway.
  14. I like to use ICSharpCode.TextEditor. Its the part of SharpDevelop that does their syntax highlighting. It is LGPL code, but since its in a seperate .Net Assembly, it should be OK to use it in just about any project. Unfortunately there is little documentation on how to use it. I had to figure it out by reading the SharpDevelop Source. Maybe I ought to write up a tutorial, If I am going to keep pitching it when people ask about syntax highlighting....
  15. Of course just after I finish bitching about things. I did realize that the TextureCreationParameters allows me to set a filter. Setting that filter to point causes the texture to come out looking like the origional despite being stretched to a power of 2, then being stretched back to its native size. Point - Each destination pixel is computed by sampling the nearest pixel from the source image. CreateParams = TextureCreationParameters.Default CreateParams.ColorKey = New Color(255, 0, 0) CreateParams.Filter = FilterOptions.Point MyTexture = Texture2D.FromFile(MyDevice, "terra.bmp", CreateParams)
  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. 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!