Results 1 to 12 of 12

Thread: Using D3D (Retained Mode) to draw frames for DDraw7? Please help!

  1. #1

    Thread Starter
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457

    Using D3D (Retained Mode) to draw frames for DDraw7? Please help!

    Hi, I need some help with a problem that has been bugging me for days... I need to draw the frames that I'm going to use in a 2D game before it starts, in 3D. I'm using DX7, and for what I've seen in many code samples the only way to do it is using D3D Retained Mode. The problem is that it draws everything to directdrawsurface4 surfaces instead of 7 (the ones I'm using). It also requires that I initialize DDraw not as DD7, but as DD4! How can I draw the 3D models for my 2D game then? Any idea? It doesn't really have to be retained mode in DX7. I just want to draw some 3D stuff to DDraw7 surfaces.
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  2. #2
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625
    Still no answer??
    Come on people...
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

  3. #3
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625
    Hey Jotaf,

    Look what I found:

    The Joy of VB: The Interface Workshop

    > Getting Started with 3D Graphics

    http://www.joyofvb.com/JVB_InterfaceWorkshop.htm

    and also this:

    http://www.vbfreeware.com/showdld.as...al+Quality+3D+

    Hope it helps,
    MoMad
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

  4. #4
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    why do you use retained mode
    just do immediate mode and you should be fine...
    Sanity is a full time job

    Puh das war harter Stoff!

  5. #5

    Thread Starter
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Immediate mode doesn't let me draw to a DirectDrawSurface7 does it? Because I need 3D only to draw the ships' frames, that's all...
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  6. #6
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    it doesn't? what does it draw to then?

    (I am gonna go over some of my code...)
    Sanity is a full time job

    Puh das war harter Stoff!

  7. #7
    Zaei
    Guest
    Why not just use whatever you are going to use (let it draw to a ddraw 4 surface), then copy pixel by pixel to a ddraw 7 surface? That shouldnt be that much trouble.

    Z.

  8. #8
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    I would use DD4, get the DC, copy to Picturebox, SavePicture the .Image, and load it with DD7!
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  9. #9

    Thread Starter
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Thanks for all the feedback

    Misanthrop, for what I've read, the Immediate mode draws directly to the screen (or something like that). That's why I can't use it...

    Zaei, I thought about something like that, but can I have an instance of DDraw4 and an instance of DDraw7 in the same project at the same time?

    Sas, thanks, but I need to draw it in real time (it's an online game )...

    See, it's a really tough question, I've been working on this for weeks.
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  10. #10
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    well when I use DX I blit to a DirectDrawSurface7 (in directX7 of course) and I think that should be what you need shouldn't it?
    Sanity is a full time job

    Puh das war harter Stoff!

  11. #11
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Well you said you need to draw the frames before the game starts, so why wouldn't that method work?
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  12. #12
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    well sastraxi's method should do it, but I don't know where the problem with immediat mode is, but I see another problem in the whole thing: the quality of the frames drawn is dependent on the graphicsboard unless you use the reference rasterizer, so the game will look different on different computers, even though it's a 2d game!
    Sanity is a full time job

    Puh das war harter Stoff!

Posting Permissions

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



Click Here to Expand Forum to Full Width