Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

122 Neutral

About melanieab

  • Rank
  1. Ok, I didn't run the SDK samples, but I did run examples from the Tom Miller book, and they, too, ran normally on my machine and more slowly on the other. So I'm thinking it's something with the machine. Here are the specs: My machine, which runs examples at normal speed: XP Pro SP2 Athlon 2500+ XP 1.71 GHz, 512 MB RAM Graphics - 3DForce4-MX440-8X Series, NVIDIA GeForce4 MX440 with AGP8X - 64MB Other machine (runs examples slowly): XP Pro SP2 Dell DIM3000, Celeron 2.4 GHz, 512 MB RAM Intel 82865G Graphics Controller - 96 MB Please let me know if anyone can point me in some direction, or if there's any other info you need. Thanks very much! Mel
  2. No, it's actually faster.
  3. Hi, I apologize if this doesn't fit directly into the scope of this forum, but I'm at a complete loss when it comes to this sort of problem. I've managed to complete a little DirectX graphics intro for a Windows form. Everything works on my computer, but when I put it on a different one, the intro runs, but at a significantly slower rate. I don't know if this was necessary since the intro did run, but I followed the Chapter 2 of Managed DirectX 9 - Graphics and Game Programming by Tom Miller, checked my graphics card features, and all looked ok. From here, I have no idea where to look to determine the cause of this. Thanks for any advice, Mel
  4. Hi, I have a Windows form project that runs a DirectX intro. At the end of the intro, I clear the screen and display a bitmap (actually a .png file) which the user can click to get to the tabpage of their choice. I can get this all to run just fine. I run into trouble though if the intro runs, the png comes up, and the user waits a little before deciding to click on something. It seems that, the longer the user waits before clicking, the longer it takes the tabpage to load after something is clicked. (It can get pretty bad so that you wonder if it's ever going to load.) I'm assuming this has to do with my not really doing things efficiently. I've posted my Render() code at www.angrymel.com. Under SetupCamera(), I give whatever specs apply to the first chunk of code (Type, Direction, ...)(PresentParameters were set up in InitialGraphics). Under SetupCamera2(), I have: PresentParameters presentParams = new PresentParameters(); device.Reset(presentParams); if (alpha != 255){ View and Projection } *** Here I'm just trying to have a different png file fade in. When its alpha = 255, I go to the screen with the choices *** else { different View and Projection } *** this is the screen where the user can click *** device.DeviceReset += new EventHandler(this.OnResetDevice); this.OnResetDevice(device, null); Does anyone know what may be causing this extended load time? Or some suggestions on how to be more efficient? (i.e. am I disposing of everything I need to?) Thanks so much! Mel
  5. melanieab

    strange exception caused by DirectX?

    Hi again, In my program, trouble occurs at the beginning. I start with the usual Main() entry point: Application.Run(new Tabs()); Then private Tabs() { MessageBox.Show("begin"); // // Required for Windows Form Designer support // InitializeComponent(); panel1.Visible = false; tabControl1.Visible = true; ...} Then under InitializeComponent() { MessageBox.Show("start-ic"); ... } When running the program, the "begin" messagebox appears ("start-ic" doesn't), and a Just-In-Time Debugger pops up. I run a new instance of Visual Studio .NET, the line after InitializeComponent() gets the yellow highlighting, and the System.Security.SecurityException warning comes up (the long version that I wrote above). Any ideas why this could be happening? It works fine on another computer if I create a plain form. Thanks for any help/ideas!!! Mel
  6. Hi, I'm getting a strange error when trying to run my form with DirectX on another computer (on my own it's fine). I get: Additional information: Request for the permission of type System.Security.Permissions.SecurityPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed. This problem has popped up ever since I added a panel that uses DirectX. To see if it could be something I did, I ran a simple, beginner directx file (from Tom Miller's Managed DirectX 9 book) on my computer and then copied those files to the other computer, and it again didn't work, although this time giving me the error: An unhandled exception of type 'System.Security.SecurityException' occurred in Lights.exe Additional information: Security error. I've found info from people having the same exception as my first one, but they're all getting those errors when trying to connect to a database or the web which I definitely don't do (and I don't understand their solutions to the problem). If anyone knows what I need to do, please let me know (small steps). Thanks very much!!! Mel
  7. melanieab

    DirectX and tabpages

    Hi again, I'm now trying to figure this part out: "When you make the d3d device pass it the handle/identifier of the form." I can't find anything online to guide me through this process, so this is what I'm trying: In the main form I say Intro intro = new Intro(); and then under (Intro) InitializeGraphics() I use something like PresentParameters pp = new PresentParameters(); pp.DeviceWindowHandle = ...somehow say it's the form... and then create the device. device = new Device(0, DeviceType.Hardware, this, createFlags.SoftwareVertexProcessing, pp); I guess it just comes down to not knowing how to tell the device that the form is the handle. Again, thanks so much for any help! Mel
  8. Hi, I'm sorry, I know this is a game dev forum, but I can't find info (C#) anywhere else and I'm hoping someone here could help me out. I have a normal windows form with a bunch of tabpages on it. But in the beginning, I want to do a little DirectX intro (which I've already created) in a class that I've been running separately. Now I'm not sure how to put them together without having to close the intro form and then open the main form. Can anyone direct me to examples showing how to create a surface or something on the main form that will run the directx stuff? Thanks for any guidance!!! Melanie
  9. Hi, I'm new to DirectX so sorry if this is a stupid question. I'm trying to draw stuff and add a bitmap (texture) at the same time. After I draw some rectangles I say: this.OnCreateVertexBuffer(vb, null); device.SetTexture(0, tex); device.VertexFormat = CustomVertex.PositionColoredTextured.Format; device.SetStreamSource(0, vb, 0); device.DrawPrimitives(PrimitiveType.TriangleStrip, 0, 2); but the rectangles vanish just after OnCreateVertexBuffer(); though the bitmap does appear. What do I need to do so that I can have both my rectangles and the texture at the same time? Let me know if you need more of my code to see what I'm screwing up. Thanks so much! Mel
  • 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!