• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Mouse Rect Attach Point?(Solved)

krispy1001

Resource contributor
Messages
707
Country
unitedstates
Hi everyone!

I am having problems getting my mouse rect working when I use a VC panel texture, or if I export my model with the cockpit body. If I export my VC model with only the instrument panel excluding the cockpit body and panel textures, my mouse rect work good.

Any suggestions?

Thanks, Krispy1001:)
 
You can't have any polys between the eyepoint and the part with the mouse rect assigned. This seems like what you might have going on. Does the part start working if you shift the eyepoint forward?
 
I did not think about that. I will try moving the eyepoint forward and see if that fixes the problem.

Thank you Mr. N2056!!:D

Krispy1001:)
 
Remember, if you have an invisible box in the center or your plane that is a node for parts, like interior, exterior, etc, and it is blocking a view to switches, those will not be clickable. You can easily move the 'skins' of the invisible object without moving the 'center' (which might cause other parts to move that are linked to the node) by going to Vertex mode and moving the Vertices forward into the panel, away from switches, then save and reset the Scale. Then your node is out of the way and you havent messed up the true center.
 
Hi krispy1001,

lionheart's reply just sparked an idea in me... I know you use dummy objects to control your animations. These have no material applied, so they are invisible in the sim, aren't they? Could it be one of these blocking the line of sight to your mouserect?

Take care:)
 
Remember, if you have an invisible box in the center or your plane that is a node for parts, like interior, exterior, etc, and it is blocking a view to switches, those will not be clickable. You can easily move the 'skins' of the invisible object without moving the 'center' (which might cause other parts to move that are linked to the node) by going to Vertex mode and moving the Vertices forward into the panel, away from switches, then save and reset the Scale. Then your node is out of the way and you havent messed up the true center.

Hi Mr. LionHeart!

Thank you,:D I did not think about that. Yes I used a root node for my VC. I will try moving it and see what happens.

So fare every thing that I have tried has not helped.

Thank you Very Much, Krispy1001:)
 
Hi krispy1001,

lionheart's reply just sparked an idea in me... I know you use dummy objects to control your animations. These have no material applied, so they are invisible in the sim, aren't they? Could it be one of these blocking the line of sight to your mouserect?

Take care:)

Hi Capt_X!

Yes, you are correct I use a control node without a material applied for all of my animated objects. But for the VC I have not used any control nodes for my animations. I am stumped so far, but I am working on it.

Thank you your friend, Kris:)
 
Hi Capt_X!

I hope it's not like the problem I had in that thread, because I never found out what I did wrong. It just started working.

I have checked too make sure that all my objects are at default scale and they are. I am in the process of adding object by object too the VC model until I find what It is that is causing the problem. I will let you know what I find.

Thank you!!!:D

Your Friend, Kris:)
 
Well I found my problem. For some reason if I apply a material that is tagged with "is a virtual cockpit material" my mouse Rect do not work. I was hoping not to have to use 3D instruments, because I wanted too allow anyone that downloads my plane the option, that they could change what instruments were used and how they were arranged. But now it looks like I will have to make 3D instrument if I want my mouse rects too work.

Has anyone else had this problem?

Or have I just did something wrong?

Thanks, Krispy1001:)
 
You can mix & match. The part with the mouse rect applied is 3d and uses a "normal" material. As long as you have the XML code correct in the Modeldef file it will interact with a 2d gauge executed in the traditional (using the VC material) fashion.
 
Hi Mr. N2056!

My problem is when I use a material for a panel that is setup as a vc panel material. My mouse rects for my throttle, mixture, master battery, and master avionics stop working.

Thanks, Krispy1001:)
 
Yes, the material is applied to the polys that I am using for my instruments. I have noticed that when I export the polys with the VC my mouse rects stop working. I have also noticed that where ever I put the mouse pointer it shows a tool tip for one of the instruments, no matter where I put the mouse pointer in the VC. I have looked for hidden polys, and I have none. The polys for the instruments are 2-3/4". I am very stumped!

Thanks, Krisppy1001
 
Take those parts and assign a normal material to them. A part that has a vc material assigned will require a corresponding gauge code entry in the panel.cfg file if you want it to do something. You don't need/want that in this case. Do note that I work in Max 9, but this should be universal.
 
Hi N2056!

I do want to use the polys for instruments, and I would like to keep the instruments 2D.

Below is a picture of the polys that I am using for my instruments. And the code for the instruments in my panel.cfg file.

If possible I want to use 2D instruments and be able to use the mouse rects for controlling the aircraft (throttle, mixture, ext...).

Thanks for your help, Krispy1001:)

vcpanels.png


//--------------------------------------------------------
[Vcockpit01]
Background_color=0,0,0
size_mm=512,512
visible=1
pixel_size=512,512
texture=$P1
gauge00=Mooney_Bravo!Vertical Speed, 0, 0, 505, 520
//--------------------------------------------------------
[Vcockpit02]
Background_color=0,0,0
size_mm=512,512
visible=1
pixel_size=512,512
texture=$P2
gauge00=Mooney_Bravo!Airspeed, 0, 0, 505, 520
//--------------------------------------------------------
[Vcockpit03]
Background_color=0,0,0
size_mm=512,512
visible=1
pixel_size=512,512
texture=$P3
gauge00=Mooney_Bravo!Altimeter, 0, 0, 505, 520
//--------------------------------------------------------
[Vcockpit04]
Background_color=0,0,0
size_mm=512,512
visible=1
pixel_size=512,512
texture=$P4
gauge00=Mooney_Bravo!Tachometer, 0, 0, 505, 520
//--------------------------------------------------------
[Vcockpit05]
Background_color=0,0,0
size_mm=512,512
visible=1
pixel_size=512,512
texture=$P5
gauge00=Mooney_Bravo!Attitude, 0, 0, 505, 520
//--------------------------------------------------------
[Vcockpit06]
Background_color=0,0,0
size_mm=512,512
visible=1
pixel_size=512,512
texture=$P6
gauge00=Mooney_Bravo!Whiskey Compass, 50, 120, 460, 220
//--------------------------------------------------------
[Vcockpit07]
Background_color=0,0,0
size_mm=512,512
visible=1
pixel_size=512,512
texture=$P7
//gauge00=fs9gps!gps_500, 0, 0, 515, 495
 
Hi everyone!

I have found what was causing me so much trouble with my mouse Rects in my VC. The code below was causing my problem.

//--------------------------------------------------------
[Vcockpit07]
Background_color=0,0,0
size_mm=256,256
visible=1
pixel_size=256,256
texture=$P7
gauge00=fs9gps!gps_500, 0, 0

I removed the code from my panel.cfg file and everything started working very good.

I do not know why this would cause all my problems but it did.

Thanks, Krispy1001:)
 
Hi krispy1001,
I noticed that in post #16, this line of code is commented out:
Code:
//gauge00=fs9gps!gps_500, 0, 0, 515, 495
and in the code you removed, it is uncommented. In the first case, it could give you problems, as the VCockpit section is created without a gauge to display. Doesn't it work when you uncomment it?

Regards:)
 
Hi Capt_X!

yes, I did have it commented out at that point. But I have tried it without being commented out.

Here is something very strange that I have found. If I set the size_mm=512,512 and pixel_size=512,512 my mouse rects do not work. But if I change to size_mm=256,256 and pixel_size=256,256 the mouse rects work. I have also found that if I do not comment out the GPS code, the mouse pointer acts like the whole cockpit is part of the GPS. That does not make sense too me.:(

Thanks, Krispy1001:)
 
Hi Everyone!

I am still having major problems with my vc panel textures not allowing my mouse rects to work. The problem that I am running into is this: if I use a vc panel texture, my mouse rect will not work. And the vc panel textures are effecting the whole fuselage, it is acting like the vc panel texture is applied to it. If I go in the panel.cfg file and I comment out one of the vc panel texture, the next one up will do the very same thing. It is always the very last vc panel texture that gives the problem. The vc panel texture above the last one works.

I have made my panel texture as a 8bit indexed texture and saved it as a bmp file. The vc panel texture size is 256 x 256. I have made a DXT1 file for the panel texture and saved it as a .dds file. My vc panel texture are named:($P1, $P2, $P3, $P4, $P5, $P6, $P7)

I went through and re-made most of my VC model just to make sure that I did not have any hidden poly's in the way. And I get the same problem after re-modeling.

I do not know what else to do.:(

I have uploaded my Jodel D112 FSX folder to my ftp site. So if anyone has time please download the file and test it in FSX, and if you have had this problem before please let me know if you know how to fix the problem.

Download link: http://www.kp-coolstuff.com/test/Jodel_D112.zip

Thank you, Krispy1001:)
 
Back
Top