|
-
Mar 17th, 2003, 09:39 AM
#1
Thread Starter
Frenzied Member
Multiple directx 8 at 1 time
I am wondering if it is possible to render 2 diffrent things at the same time with direct x 8 (like what editors like unrealed do) i tried to do it with 2 directx 8 loops but only 1 at a time seemed to work.. how can i make a engine so that i can make a "multiple" view kinda program? (like 2 views in 2 seperate picture boxes)
-
Mar 17th, 2003, 11:17 AM
#2
PowerPoster
I assume you mean multiple viewports?
-
Mar 17th, 2003, 02:24 PM
#3
Frenzied Member
Easiest way is probably to render the scene as normal, then use the hWnd parameter of the Present method to display to the pixturebox/form/whatever you want. Repeat for each viewport.
You could also use swap chains.
Z.
-
Mar 17th, 2003, 04:44 PM
#4
Thread Starter
Frenzied Member
Well i made this dll that can render 3d stuff in direct x 8 . declare the modules in the dll double and then let them be analyzed both load the models. and then draw them in a While loop. But only 1 of them is shown :S
-
Mar 17th, 2003, 04:49 PM
#5
Thread Starter
Frenzied Member
-
Mar 17th, 2003, 06:46 PM
#6
Frenzied Member
From DX8.1 SDK:
Note All rendering devices created by a given Microsoft® Direct3D® object share the same physical resources. Although your application can create multiple rendering devices from a single Direct3D object, because they share the same hardware, extreme performance penalties will be incurred.
Z.
-
Mar 18th, 2003, 02:57 AM
#7
Thread Starter
Frenzied Member
ok so i should use 1 "Public D3DDevice As Direct3DDevice8" and multiple
"Public D3D As Direct3D8"
"Public D3DX As D3DX8"
???
-
Mar 18th, 2003, 11:29 AM
#8
Frenzied Member
Use no multiples:
Code:
For i = 0 to numViewports -1
...Clear(...)
'render port i
...Present(..., Viewports(i).hWnd,...)
Next i
Z.
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
|