Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Can I have multiple dbp displays using .net sdk

Author
Message
tschwarz
19
Years of Service
User Offline
Joined: 13th Feb 2005
Location: 127.0.0.1
Posted: 28th Dec 2006 03:05
Is it possible to control multiple viewports using the .net sdk. I have setup a Picturebox that displays a dbp display in it. I would like another smaller picturebox displaying another dbp display that I can control independently of the first one.

I attached a picture in case I am not clear. (The picbox with the red circle was pasted into the image to show what I want to do.)

Thanks

Attachments

Login to view attachments
kBessa
17
Years of Service
User Offline
Joined: 8th Nov 2006
Location: Manaus, Amazonas, Brazil
Posted: 28th Dec 2006 03:47
I don't think that's possible. I tried adding a second PictureBox in the WinFormsShowcase sample but then it only displayed on the second control.

But if it IS possible, then I also want to know. Will implement it in DarkEngine
tschwarz
19
Years of Service
User Offline
Joined: 13th Feb 2005
Location: 127.0.0.1
Posted: 28th Dec 2006 04:15
Thanks for the reponse kBessa

Yeah, That's the result I got also. Was hoping there was a command I missed like: SetActiveDisplay

Well, maybe someone else knows of a way.
flibX0r
21
Years of Service
User Offline
Joined: 14th Feb 2003
Location: Western Australia
Posted: 28th Dec 2006 05:28
Use multiple cameras perhaps?

Big whorls have little whorls which feed on their velocity,
Little whorls have lesser whorls and so on to viscosity. - Lewis F. Richardson

Also, my website has no content. But it looks perty
kBessa
17
Years of Service
User Offline
Joined: 8th Nov 2006
Location: Manaus, Amazonas, Brazil
Posted: 28th Dec 2006 05:55
Multiple Cameras was my first thought, but if I got it right, what tschwarz wants to do is to display different contents on different PictureBox controls.

By using multiple cameras is one possibility, but it wouldn't show as he wanted.
tschwarz
19
Years of Service
User Offline
Joined: 13th Feb 2005
Location: 127.0.0.1
Posted: 28th Dec 2006 06:17 Edited at: 28th Dec 2006 08:52
Edit: Sorry multiple cameras wouldn't work, need multiple viewports.
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 28th Dec 2006 10:22
Because DBP and DGDK render themselves into a single DX layer, the only way I know of for getting multiple viewports, is to implement your own Image paste to screen function. If you have an image that renders a camera viewport onto it, then using a BitBlt function or something from the image. Either via a Memblock or a formatted bitmap.

Paul.

James Bondo
17
Years of Service
User Offline
Joined: 12th Nov 2006
Location: Denmark
Posted: 28th Dec 2006 14:45
Every 1 second save the second cameras output to a file (image) and reload that into the second picture box
Use shorter time than 1 second if you wish, but dont use too short timer or you will probally get slowdowns.

Well, thats the only way i could think of.

Proud member of The Unforgiven Warriors
http://www.tuwguild.com
tschwarz
19
Years of Service
User Offline
Joined: 13th Feb 2005
Location: 127.0.0.1
Posted: 28th Dec 2006 20:37
Thanks for the responses, at least I know I'm not over looking a command. I'll work on doing an image paste to screen function.

Login to post a reply

Server time is: 2024-09-28 23:13:26
Your offset time is: 2024-09-28 23:13:26