Jump to content
  • Advertisement

dessler.michelle

Member
  • Content Count

    16
  • Joined

  • Last visited

Community Reputation

100 Neutral

About dessler.michelle

  • Rank
    Member
  1. dessler.michelle

    Need help finding the points positions

    Hi there, I've two circles defined by their positions BS1 and BS2. Now I need to get the position of the point A and the only data I've is the distance from point BS1 that is defined by its radius. Can someone please tell me how can I find the coordiinates of point A? Here you can see a representation of the problem I need to solve http://imageshack.us/photo/my-images/542/002yw.png/ Thank you very much PD: I need to do the same with point B.
  2. dessler.michelle

    Determining which memory was used for a Vertex Buffer

    Hi NightCreature, Yes I know that but there's a way to know where it's located after the creation of the vertex buffer?
  3. Hi there, Is there a way to know once a vertex buffer is created (when using D3DPOOL_DEFAULT) in which memory (system, agp, local video memory) the driver allocated it? Thank you
  4. Now it makes sense to me. Thank you guys once again for your help
  5. What do you mean with "you can simplify the vertex shader"? I'm sorry by my silly questions but I'm new in DirectX. Yes I knew that I just use DrawPrimitive() as an example but thanks anyways.
  6. Once that vertex buffer is returned how we can draw its content in the screen? Do we have to use Device.DrawPrimitive() or there's a "special" command to send the vertices to the display avoiding traveling through the whole pipepline?
  7. Thank you very much guys for your help
  8. Hi there, Can someone tell me what are the differences between Device9::ProcessVertices and Device9::DrawPrimitive? In which scenario is better ProcessVertices? Thank you, Michelle.
  9. Hi there, Can someone tell me when is better to use Software vertex processing instead Hardware vertex processing? Thank you, Michelle.
  10. Now for that "invalid iBackBuffer parameterpassed" error. Trying your code my system (Win7, VS 2010 Express), I don't get a freeze nor a proper break but a silent shutdown of the app, and it's only triggered by enabling the Break on D3D9 Error. [/quote] Right, the same is happening to me and I'm using Win7 VS2010 Ultimate. The app works well but I get that silent error from DX9 and I wanna know what is causing that. Of course without DebugView I wouldn't know about it but now that I know it existence I can't overlook it. But you have other means: One you already experienced: SlimDX can throw a proper exception for API call failures. Have a closer look at the SlimDX.Configuration class and the SlimDX programming tips. [/quote] Yes, I'll check for the Configuration class and the link Also: Get yourself familiar with PIX, a very helpful tool. Though I could not use it in conjunction with WPF when I helped someone else out lately, it usually works fine for "normal" Direct X apps. [/quote] I've checked the PIX app and it's great Thank you once again Unbird. As you can see I'm a novice with DirectX so any other TIP will be welcomed. Than you, Michelle.
  11. Hi Ereik, Yes the application works and I don't call any such functions so I think you're right with your guess anyways I'll see how can I ask directly to the SlimDX's developers. Thank you very much for your help. Thank you guys
  12. Hi Erik, Thank you for your help. I read the article and I see the changes in the DirectX for Windows Vista. I didn't know about these new features added to DirectX9 for Vista. Can you tell me why this messages is shown in DebugView in the WPF example when I add the triangle to the scene? [color="#1C2837"]..... [828] Direct3D9: (ERROR) :Invalid iBackBuffer parameterpassed to GetBackBuffer [color="#1C2837"][/quote] [color="#1C2837"] [color="#1C2837"]I realized that it only happens in the WPF example from SlimDX because I tested the example SimpleTriangle9 and that messages doesn't appear in the DebugView. [color="#1C2837"] [color="#1C2837"]Thank you, [color="#1C2837"] [color="#1C2837"]Michelle
  13. Hi Unbird, I’ve downloaded the DirectX SDK and DebugView and finally I solved the problem I had. Here’s the error [5780] Direct3D9: (ERROR) :D3DPOOL_MANAGED is not valid withIDirect3DDevice9Ex So I changed the parameter Pool.Managed in the statement vertices = new VertexBuffer(device, Marshal.SizeOf(typeof(Vertex)) * 3, Usage.WriteOnly, VertexFormat.None, Pool.Managed); With Pool.Default and now it works, I can see the triangle :-) But I've a question, why Pool.Managed doesn’t work with WPF? Also, in the DirectX Control Panel if I check the option "Breakon D3D9 Error" then the same app become stunned and I see the following messagesin the DebugView ..... [828] Direct3D9: :DoneExclusiveMode [828] Direct3D9: (ERROR) :Invalid iBackBuffer parameterpassed to GetBackBuffer Why can this be happening? Thank you once again Michelle
  14. OK, I'll download the SDK today so tomorrow I'll install it and I'll see how that debug works and if I can't solve the problem by myself I'll ask you to guide me and if I can solve it I'll let you know anyways. I like your style. It's fine when you have been asked for, yes, but not as a original post IMO. First, you have to show what you have done already. [/quote] You're right! I'll have it into account for the next time. Thank you once again. Michelle
  15. Hi Unbird and thank you for your cordiality, Here's the exception I get when running the project: "D3DERR_INVALIDCALL: Invalid call (-2005530516)" and here's the StackTrace at SlimDX.Result.Throw[T](Object dataKey, Object dataValue) at SlimDX.Result.Record[T](Int32 hr, Boolean failed, Object dataKey, Object dataValue) at SlimDX.Direct3D9.VertexBuffer..ctor(Device device, Int32 sizeInBytes, Usage usage, VertexFormat format, Pool pool) at WpfSample.MyRenderEngine..ctor(MyDataModel dataModel) in D:\Projects\WPF Interop - Copy\WpfSample\MyRenderEngine.cs:line 63 at WpfSample.WpfWindow..ctor() in D:\Projects\WPF Interop - Copy\WpfSample\WpfWindow.xaml.cs:line 71 I don't have any idea why it's happening because the same code in the project [color="#1C2837"]SimpleTirangle9 run well however when adding the same code to the [color="#1C2837"]WPFSample then I get that exception. [color="#1C2837"] [color="#1C2837"]Any idea about how to solve this? [color="#1C2837"] [color="#1c2837"]Thank you, [color="#1c2837"]Michelle [color="#1c2837"]PD: I sent the whole project because it's very small and because the most of the people in any forum ask for the source code to see what's the problem.
  • 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!