|
-
Mar 26th, 2002, 01:20 PM
#1
Thread Starter
Frenzied Member
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.
-
Mar 29th, 2002, 03:41 AM
#2
Fanatic Member
Still no answer??
Come on people...
-
Mar 29th, 2002, 04:44 AM
#3
Fanatic Member
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
-
Apr 1st, 2002, 08:34 AM
#4
Frenzied Member
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!
-
Apr 3rd, 2002, 07:03 PM
#5
Thread Starter
Frenzied Member
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...
-
Apr 3rd, 2002, 07:20 PM
#6
Frenzied Member
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!
-
Apr 3rd, 2002, 09:21 PM
#7
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.
-
Apr 3rd, 2002, 11:00 PM
#8
Good Ol' Platypus
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)
-
Apr 4th, 2002, 05:07 PM
#9
Thread Starter
Frenzied Member
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.
-
Apr 4th, 2002, 06:30 PM
#10
Frenzied Member
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!
-
Apr 5th, 2002, 08:03 AM
#11
Good Ol' Platypus
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)
-
Apr 5th, 2002, 10:42 AM
#12
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|