The Sandbox Thread

16 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

3D Surface

Back to Forum: The Sandbox
  • User profile image
    Kazi

    You can see a 3D waving surface here.

    Navigation:

    1) Move your mouse to rotate around the object
    2) Scroll the wheel on your mouse to go forward or backward
    3) Click with the wheel to stop your move

    It’s written with Managed DirectX API, so the requirements:

    1) DirectX9.0c and a compatible 3d card
    2) .Net runtime 1.1
    3) Managed DirectX runtime

    Thanks for any interest

    Kazi

  • User profile image
    matt0210

    Upon launch the JIT Debugger comes up telling me about an exception 'system.IO.FileNotFound' in surfaces.exe. Forgot to include a file in the compilation?
    I'm running XPSP2 on a 2GHz P4 with 768MB Ram and dotnet Runtime 1.1. Hope this helps you out somehow Wink

  • User profile image
    Kazi

    I think the Managed DirectX is not installed on your computer. This is a bit huge to include it with an integrated installer here, please download and install it:


    http://www.microsoft.com/downloads/details.aspx?FamilyID=2c40a7a5-7742-44d2-9f5c-420815448ea4


    I hope this solves the problem.

  • User profile image
    Charles

    Kazi,

    Your zip file includes one file, surfaces.exe. Are you certain that there are no supporting files (dlls, etc) that you forgot to include?

    I have the required components installed on my system and I too get a FileNotFoundException exception when running surfaces.exe.

    C

  • User profile image
    Charles

    Additional information: File or assembly name Microsoft.DirectX, or one of its dependencies, was not found.
    C

  • User profile image
    Charles

    I think your exe is trying to load libraries that you pointed to in a static way in your solution.

    So, on my system, for example, the managed DirectX libs live here: C:\WINDOWS\Microsoft.NET\Managed DirectX\v9.03.91\

    How about you? Wink


    C

  • User profile image
    Kazi

    Surfaces.exe references 3 Managed DirectX assemblies:

    Microsoft.DirectX.dll
    Microsoft.DirectX.Direct3D.dll
    Microsoft.DirectX.Direct3DX.dll

    You can check these assemblies with running the DxDiag.exe: click "Start" > "Run" type dxdiag.exe > "OK". Click "DirectX files" tab, you should see the above assemblies.

    If these assemblies don't exist, you have to download the DirectX9.0c installer, and the installer must be started with the /installmanageddx command line switch. I really hope, this will install the Managed DirectX runtime assemblies.

  • User profile image
    Kazi

    I have four of them:

    C:\WINDOWS\Microsoft.NET\Managed DirectX\v4.09.00.0900\
    C:\WINDOWS\Microsoft.NET\Managed DirectX\v9.00.0900\
    C:\WINDOWS\Microsoft.NET\Managed DirectX\v9.00.1126\
    C:\WINDOWS\Microsoft.NET\Managed DirectX\v9.03.91\


    Surfaces.exe references the v9.00.1126 version assemblies.

  • User profile image
    Charles

    Kazi wrote:

    Surfaces.exe references the v9.00.1126 version assemblies.


    That would explain the problem.

  • User profile image
    Kazi

    I tried to switch to the newer version assemblies, but I can't build the project, lots of compile time errors. It is not backward compatible.

    The only solution, if I can upload the v9.00.1126 version assemblies. There is a mdxredist.msi file, which is 4.94 MB. I have tried upload it within the zip, but I can't.

    Thanks for the help. Gone to sleep.

  • User profile image
    Charles

    Yeah, that's a little big for an upload and we can't really provide the bandwith for apps that include large libraries... Maybe there's a better solution. I'll look into it.

    Sleep well!

    C

  • User profile image
    Kazi

    I have uploaded the requierd Managed DirectX runtime to here:

    http://ananke17.tripod.com/mdx/

    I have tested with a clean install computer and it worked.


    Please install it. It should work.

  • User profile image
    androidi

    Learning doing this stuff is good, but the effect looks a lot like with what DXSDK comes with already, just check the Microsoft DirectX 9.0 SDK (February 2005)\Samples\Managed\Direct3D\HLSLwithoutEffects.

    Guess the implementation is different though, it doesn't look quite teh same Smiley Yours look better I think

  • User profile image
    NeoTOM

    Strange, I didn't do anything and it works for me...

  • User profile image
    bright

    Cia

    Kazi, 

        Meg proba'ltam  a 3D amit te programaztal.

        Valami nem kosher, xsak nem mukodig. 
        Mitt csinalyak hogy 3D mukodjon ?



    Halgas meg: Nem Magyar vagyok, edes apam es edes anya'm voltak. Regen beszeltem magyarul e's me'g regeben irtam. (soha sem tanultam jo'l magyarul iri).

    Magyar ira'om nem a leg job a vilagban.
    Ha roszul irtam egy szo't vagy nem e'rted meg akor bocsa'natot kerek.

    Bye

    Pe'ter.

       

  • User profile image
    onlytabish

    where is the source code man ?

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.