Advertisement Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

127 Neutral

About Horn

  • Rank
  1. Is it possible to have a tray icon recieve a drag and drop event? I'm trying to create an app that sits in the systray and waits for the user to drop a file on top of it which will then be uploaded to a server. If thats not possible my other idea was have a form open up under the mouse pointer when the user drags over the icon but I can't find a way to either open a form under the mouse pointer or get the location of the mouse when it moves over the tray icon. Any ideas?
  2. Hate to bump my own thread but does anyone know what could be wrong?
  3. I'm trying to work the sample framework into a game that I've already started in order to get access to their UI stuff. I create the window and device myself and I try to use the SetWindow and SetDevice to tell the framework what to use. When I call SetDevice the framework throws an exception. EnumAdapterInformation adapterInfo = Enumeration.GetAdapterInformation(newDeviceSettings.AdapterOrdinal); UpdateDeviceStats(newDeviceSettings.DeviceType, newDeviceSettings.BehaviorFlags, adapterInfo.AdapterInformation); I've debugged it and found out that the GetAdapterInformation() returns null. Also AdapterOrdinal is set to 0 (I assume this is correct since I only have one video card). Here is my code for creating the framework: FrameWork = new Microsoft.Samples.DirectX.UtilityToolkit.Framework(); FrameWork.Initialize(false, false, false); FrameWork.SetWindow(this.Handle,this.Handle,this.Handle,false); FrameWork.SetDevice(D3Device); this.Show(); D3Device has already been created and this is a Form class. I've looked for documentation but it seems to be a little thin right now.
  4. Yep. I enable it using the following: D3Device.RenderState.ZBufferEnable = true;
  5. I'm trying to create my own pointsprite class and I ran into a problem with depth ordering (I tried using the built in Sprite class but had the same problem). Again I'm using the builtin Mesh class for drawing my model. I've tried moving it up and down in the Z-axis using the Device.Transform.World matrix but it is always drawn below the sprite. Here is the code for creating the point sprite. D3D.CustomVertex.TransformedColoredTextured[] verts = new D3D.CustomVertex.TransformedColoredTextured[4]; verts[0].Position = new Vector4(0, 0, 0, 0); verts[0].Color = System.Drawing.Color.Red.ToArgb(); verts[0].Tu = 0; verts[0].Tv = 0; verts[1].Position = new Vector4(width, 0, 0, 0); verts[1].Color = System.Drawing.Color.Aqua.ToArgb(); verts[1].Tu = 1; verts[1].Tv = 0; verts[2].Position = new Vector4(0, height, 0, 0); verts[2].Color = System.Drawing.Color.Yellow.ToArgb(); verts[2].Tu = 0; verts[2].Tv = 1; verts[3].Position = new Vector4(width, height, 0, 0); verts[3].Color = System.Drawing.Color.White.ToArgb(); verts[3].Tu = 1; verts[3].Tv = 1;
  6. I solved the problem. When I was dividing 4 by 3 I was using integers (which would produce 1). I changed it to 4.0f / 3.0f and it works fine.
  7. The problem goes away if I set my aspect ratio to 1 (in the Matrix.LookAt function) and the window size to square (ex 600x600). So it appears that I'm having a problem with the aspect ratio of the model. I played with the managed tutorial #6 (the model loading one) and setup the camera so that it was at 0,0,-5 instead of 0,3,-5 and theres the same problem.
  8. Nope. Thats all I do with the matrix stack. The Model.Draw() simply uses a Direct3D.Mesh and draws it.
  9. The problem I'm having is when I rotate a model, it gets squished along the Y-Axis. The way my camera is setup I have it up 5 along the Y-Axis, looking at the origin, and the 'up' of is -1 Z. //Init PParams.Windowed = true; PParams.SwapEffect = Microsoft.DirectX.Direct3D.SwapEffect.Discard; PParams.EnableAutoDepthStencil = true; PParams.AutoDepthStencilFormat = D3D.DepthFormat.D16; D3Device = new D3D.Device(0, D3D.DeviceType.Hardware, this, D3D.CreateFlags.SoftwareVertexProcessing, PParams); D3Device.Transform.View = Matrix.LookAtLH( new Vector3(0.0f, 5.0f, 0.0f), new Vector3(0.0f, 0.0f, 0.0f), new Vector3(0.0f, 0.0f, -1.0f)); D3Device.Transform.Projection = Matrix.PerspectiveFovLH((float)(Math.PI / 4), this.Width / this.Height, 1.0f, 100.0f); //Drawing Mat = Matrix.RotationY(Direction); Device.Transform.World = Mat; Model.Draw();
  10. That looks like a posibility but I'd prefer something that users would not have to install (which is why I'm not using MySql).
  11. Is there a standalone database such as Berkeley DB that has a C# interface? I've been using DataTables but they're pretty heavy on memory usage. Sleepycat does have a halfassed C# interface but I'd rather have something that is native to .net.
  12. Horn

    Free UNIX alternatives?

    Another way to get wipe out grub/lilo is to use fdisk with the /mbr argument. You can find a dos boot disk at Some of the images should include the fdisk util.
  • 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!