Results 1 to 5 of 5

Thread: d3d on a tpanel

  1. #1

    d3d on a tpanel

    im trying to create a d3d view on a TPanel and it half works.

    basicly what im doing is exactly the same as the first tutorial on clooties site (create contect) but passing Form1.Panel1.Handle to the init. this works but when an object moves, the window isnt cleard properly so it smudges.

    also when i close the app and re load it i have the last frame (complete with smudges) on the panel, why? (i am calling the cleanup code on exit)

    hers a screenshot of it happening



    also its not rendering my car properly (loaded from an xfile) but it loads perfect in the mesh example (except for dodgy lighting)

  2. #2

    d3d on a tpanel

    ive fixed the clipping problem, but my z buffer and screen clearing is still bad

    also. after loading the .x mesh file, is it possible to get the vertices and save it into my own custom format?

  3. #3
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    d3d on a tpanel

    Hmm... interesting. Well it's much farther with 3D than I've ever gone. I could hardly get a damn 3D box to work. Mind you that was over 5 years ago using Turbo Pascal 7.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  4. #4

    d3d on a tpanel

    hehe. this is the furthest ive got with d3d i understand opengl better

  5. #5

    d3d on a tpanel

    Have you tried this: Templates or VCLfullscreenD3D?

    This is EXACTLY what you need: Direct3D on a TPanel
    (sample uses Summer 2003 SDK D3DFramework).

    As for you picture - seems that you are not clearing back buffer (and depth buffer) at start of the frame.
    There are only 10 types of people in this world; those who understand binary and those who don't.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •