Go Back   Orbiter-Forum > Projects > ORBITER: 2010-P1 and newer > Bug
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Click area notification failing? Issue Tools
issueid=1329 06-06-2017 09:13 AM
GLS GLS is offline
Addon Developer
Click area notification failing?

In SSU there are some (repeatable) instances when an area registered with oapiVCSetAreaClickmode_Quadrilateral() doesn't produce a clbkVCMouseEvent() callback when clicked.
This occurs both in Orbiter 2010 and 2016.
Issue Details
Project ORBITER: 2010-P1 and newer
Status Unconfirmed
Priority 3
Affected Version Revision denoted in description
Fixed Version (none)
Users able to reproduce bug 0
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)

06-06-2017 12:07 PM
Orbiter Founder
Can you give me the geometry of one of the failing areas, and the position of the camera? I'll try to reproduce the problem.
06-06-2017 12:49 PM
GLS GLS is offline
Addon Developer
One scenario that "fails" consistently is "Testing Scenarios/EDW TAEM.scn", panel F4 (the "eyebrow" panel) doesn't get the clicks. BTW: Ctrl-F3 enables output of the click coordinates, and nothing shows for panel F4 (actually no calls arrive at clbkVCMouseEvent()).
06-06-2017 03:01 PM
Orbiter Founder
Forgive my ignorance, but this is SSU 4.0 we are talking about, as available from https://sourceforge.net/projects/shuttleultra/?

And the relevant code for the panel area definition is in vc/PanelF4.cpp, correct?

VECTOR3 ofs=STS()->GetOrbiterCoGOffset() + VC_OFFSET;

	_V(0.5530, 2.535, 14.612)+ofs, _V(1.147, 2.535, 14.612)+ofs,
	_V(0.5530, 2.25, 14.533)+ofs, _V(1.147, 2.25, 14.533)+ofs);
06-06-2017 03:14 PM
GLS GLS is offline
Addon Developer
Exactly. SSU 4.0 release is for Orbiter 2010, the current trunk code is for 2016, but the problem shows up in both versions. I can PM a compiled 2016 version if you need.
06-06-2017 03:39 PM
Orbiter Founder
Originally Posted by GLS
 I can PM a compiled 2016 version if you need.
2010 should be fine if it has the same issue. However, since I don't maintain 2010 anymore, any fixes will only be applied to the 2016 version.

Edit: Actually, maybe a SSU binary compiled against Orbiter 2016 wouldn't be a bad idea, so I don't have to debug one version, then fix another

Edit2: Ah, I see I got it already. You are quick - thanks!
05-25-2019 12:26 AM
GLS GLS is offline
Addon Developer
This may be related to this issue: I just noticed that, at least in one case, the x coordinates must match exactly in the arguments for oapiVCSetAreaClickmode_Quadrilateral() or the clicks aren't detected. p1.x must match p3.x, and p2.x must match p4.x, yet other panels have click areas that are somewhat askew, and they work fine.
The only thing of possible interest in the coordinates is that p1 and p3 have x < 0, while p2 and p4 have x > 0.
09-27-2019 04:27 PM
Addon Developer
Any work on this bug?

Issue Tools
Subscribe to this issue

All times are GMT. The time now is 02:43 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.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.