Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter Web Forum > Simpit Forum
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Simpit Forum Share & discuss simpit projects for Orbiter here!

Reply
 
Thread Tools
Old 02-24-2013, 04:33 AM   #91
ZXS2000
Donator
Default

Quote:
Originally Posted by kamaz View Post
 If you can't turn it off, use Autohotkey to move the window so the title bar is outside the screen.
any way of using the ini file to place the MFD's at an exact location (ie off screen) I've got the two Mimos working well but i have to drag each VNC screen to the desired screen after connecting. if I can get it to do this automatically would be great. there will be no keyboard or mouse in my simpit.

I tried setting up the ini file to draw the screen at location outside 1024x768 but it failed. (series of error messages which if you cant answer the above i will re-create and see if you can offer help)
ZXS2000 is offline   Reply With Quote
Old 02-24-2013, 01:21 PM   #92
kamaz
Unicorn hunter
 
kamaz's Avatar
Default

Quote:
Originally Posted by ZXS2000 View Post
 any way of using the ini file to place the MFD's at an exact location (ie off screen) I've got the two Mimos working well but i have to drag each VNC screen to the desired screen after connecting. if I can get it to do this automatically would be great. there will be no keyboard or mouse in my simpit.

I tried setting up the ini file to draw the screen at location outside 1024x768 but it failed. (series of error messages which if you cant answer the above i will re-create and see if you can offer help)
It appears that you don't understand how VNC works.

VNCMFD creates a virtual screen (framebuffer). The INI file describes the size of the framebuffer and the location of the MFD screen and buttons inside the framebuffer. Of course, neither the MFD screen nor buttons can be placed outside the framebuffer; that would defeat the whole purpose. (In fact, I'm quite amused that Orbiter didn't simply crash when you did that.) Note that the framebuffer has no location on your physical screen; it is a purely virtual construct.

When the VNC client connects to VNCMFD, a copy of the framebuffer is sent to the client. VNC client then open its own window and draws contents of the framebuffer to that window. Now that client window is placed somewhere on your physical screen. However, since it is drawn by the client, then the VNC server (i.e. VNCMFD) does not care (or know) where that window is.

The width and height of the framebuffer set in the INI file should correspond to the intended width and height of the client window (strictly speaking, to the width and height of the framebuffer area of the client window, as the client window also has the title bar and other control the client adds). If they don't, then the client will rescale the image, which looks ugly. But of course nothing bad happens

So what you want to do is to automatically place the VNC client window on your MIMO screen. To do that, one of the following programs should help:

http://www.autohotkey.com/
http://winsize2.sourceforge.net/en/index.html

Last edited by kamaz; 02-24-2013 at 01:26 PM.
kamaz is offline   Reply With Quote
Old 03-20-2013, 10:34 PM   #93
kamaz
Unicorn hunter
 
kamaz's Avatar
Default

Here is a new release, which allows you to pretty up the display:

- a bmp file can be used as background
- button colors are configurable, both for all buttons, and for each button separately.

Add furry dice and pimp up your ride! See VNCMFD.ini to learn how.
Attached Thumbnails
colors.png  
Attached Files
File Type: zip VNCMFD-rev36.zip (1.98 MB, 162 views)

Last edited by kamaz; 03-20-2013 at 10:37 PM.
kamaz is offline   Reply With Quote
Old 03-21-2013, 09:53 AM   #94
ZXS2000
Donator
Default

Thanks, gimme a few days to download and have a play with it!
ZXS2000 is offline   Reply With Quote
Old 03-21-2013, 10:53 AM   #95
Ripley
Tutorial translator
 
Ripley's Avatar
Default

Quote:
Originally Posted by ZXS2000 View Post
 any way of using the ini file to place the MFD's at an exact location...if I can get it to do this automatically would be great...
Not with the ini file, but with Autohotkey:
http://www.orbiter-forum.com/showthr...44&postcount=1

Quote:
Originally Posted by kamaz View Post
 Here is a new release...
Why not on OH?

Last edited by Ripley; 03-21-2013 at 11:59 AM. Reason: Question to kamaz
Ripley is offline   Reply With Quote
Old 03-23-2013, 11:40 AM   #96
kamaz
Unicorn hunter
 
kamaz's Avatar
Default

Quote:
Originally Posted by Ripley View Post
 Why not on OH?
Because a decent release would require proper documentation, which I don't have time to write at the moment, while a lot of useful info is contained in this thread

If someone starts googling the subject, they will find the thread anyway.

OTOH, if someone would like to write and contribute a user manual, it would be very much welcome

Last edited by kamaz; 03-23-2013 at 11:44 AM.
kamaz is offline   Reply With Quote
Old 03-30-2013, 11:46 AM   #97
ZXS2000
Donator
Default Question re:Location of bitmap file in Orbiter?

just about to start on modifying my ini file, quick question Im assuming the bitmap is to be stored in the orbiter root directory?

Here's the first one, quick and basic, should be able to fit 2 per touch screen @ 600x500 each on a 1024 x 600 touch screen (1 of 2 I will be installing in my orbpit)


I plan to have slightly different bitmaps per MFD, can you see any issues I might have doing this?
ZXS2000 is offline   Reply With Quote
Old 03-30-2013, 01:58 PM   #98
kamaz
Unicorn hunter
 
kamaz's Avatar
Default

Nice work

Quote:
Originally Posted by ZXS2000 View Post
 just about to start on modifying my ini file, quick question Im assuming the bitmap is to be stored in the orbiter root directory?
Yes. Although you should also be able to specify absolute or relative paths in the ini file. (Didn't test, but should work).

Quote:
Originally Posted by ZXS2000 View Post
 I plan to have slightly different bitmaps per MFD, can you see any issues I might have doing this?
No, decorations are handled independently in each MFD.

Last edited by kamaz; 03-30-2013 at 02:00 PM.
kamaz is offline   Reply With Quote
Old 04-01-2013, 10:45 AM   #99
ZXS2000
Donator
Default

Did test run with bitmap above...
http://www.orbiter-forum.com/picture...pictureid=9179

It's the same bump over four MFD's

My touch screens are 1024 x 600 in portrait to try and get maximum sized mfd screen and keeping the aspect ratio correct.
As you can see in this picture I'm getting a fair amount of overlap
http://www.orbiter-forum.com/picture...pictureid=9178

With my very limited coding skills how can I reduce the size of the strip at the bottom of each VNCMFD (SEL,MNU & EXIT within GUI frame) together I'm guessing they are taking up about 150-200 pixels of valuable screen real estate. I really only foresee a need the EXIT which I hope to replace with a Hotkey later anyway.

thanks in advance
ZXS2000 is offline   Reply With Quote
Old 04-01-2013, 11:12 AM   #100
kamaz
Unicorn hunter
 
kamaz's Avatar
Default

Wow, cool setup.

Is it ORC you're using as a client? The source code is included, load Sources\OrbiterRemoteControl\OrbiterRemoteControl. sln into Visual C# Express, then use form designer on form called VNCForm. Rearrange, rescale or remove buttons as you see fit. You can even use your own bitmap on the form

Also, see post #54: you can run ORC with /stacked option which will give you two MFDs in one window in vertical. If you want to redesign this form in Visual, it's named YagniForm, in honor of yagni01 who requested the feature

Alternatively, use VNCMFD.INI to remove PWR, SEL and MNU buttons from the MFD screen, since you have them in the client (Button100Disable=1, Button101Disable=1, Button102Disable=1, decrease YSize and cut the bottom part of your bitmap).

Last edited by kamaz; 04-01-2013 at 11:26 AM.
kamaz is offline   Reply With Quote
Old 04-01-2013, 11:30 AM   #101
ZXS2000
Donator
Default

Thanks, I'm using ORC, I do have the free 2012 version of Microsoft C++ if I can open the form I will see if I can remove the client buttons, plan B would be to drop them from the MFD
the stacked function has never worked for me, I assumed its because the main screen resolution on the laptop is a crazy 576 x 800 or something similar, which may not be the issue as I also tried stacking on my work laptop which is a standard 1024 x 768 and it didn't work.

Do I have to modify the yagni01 form to make the stacking work?

Originally I wanted to place a bitmap in the form, but decided since jus to create separate bit maps, a little easier for my brain to track my changes.
Btw I'm having a great time playing with this addon, when I complete my setup I will be putting together some documentation. I will flick you a copy. May not completely suffice your documentation needs but may prove a good starting point.

Cheers!

Last edited by ZXS2000; 04-01-2013 at 12:07 PM.
ZXS2000 is offline   Reply With Quote
Old 04-01-2013, 01:37 PM   #102
kamaz
Unicorn hunter
 
kamaz's Avatar
Default

You can download Visual C# Express for free

Also, what do you mean that stacked mode does not work -- what command line parameters did you give when starting ORC and what happened?
kamaz is offline   Reply With Quote
Old 04-03-2013, 11:59 AM   #103
ZXS2000
Donator
Default

Been a while since I tried the stacked option, will retry in the next week and get back on that one
ZXS2000 is offline   Reply With Quote
Old 04-03-2013, 07:30 PM   #104
Donamy
Beta Tester


Default

Will this be updated for D3D9 ?
Donamy is offline   Reply With Quote
Old 04-03-2013, 09:09 PM   #105
kamaz
Unicorn hunter
 
kamaz's Avatar
Default

Quote:
Originally Posted by Donamy View Post
 Will this be updated for D3D9 ?
It works with D3D9. (Strictly speaking, it worked with RC44/RC45 when I last tested). If it doesn't, please feel free to report

There was also a report upthread that it works with D3D11.
kamaz is offline   Reply With Quote
Thanked by:
Reply

  Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter Web Forum > Simpit Forum


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 02:36 AM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright 2007 - 2012, Orbiter-Forum.com. All rights reserved.