Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Bug #754: MousePick No Longer Working in Dual Viewports
Product:
TV3D SDK 6.5
Language:
C#
Current State:
New
Resolution:
Unconfirmed
Created On:
August 29th, 2007
Last Modified:
August 29th, 2007
Reported By:
dolmsted
I have not updated the TV DLL in a while but when I did mouse picking no longer worked. CollisionResult always returns false.

The Code:

Input1.GetMousePosition(ref mouseX, ref mouseY);
CollisionResult1 = Scene1.MousePick(mouseX, mouseY, (int)CONST_TV_OBJECT_TYPE.TV_OBJECT_MESH, CONST_TV_TESTTYPE.TV_TESTTYPE_BOUNDINGBOX);

The returned mouse pick coordinates from the top viewport corners (as close as I could) are:

Upper Left: x = -1, y = -368
Upper Right x = 874, y = -368
Lower Left: x = -1, y = -13
Lower Right: x = 874, y = -12

// Initialize Viewport1 (the circuit viewport)Viewport1 = V1.CreateViewport(pictureBox1.Handle, "Viewport1");
Viewport1.SetCamera(Camera1);
Viewport1.SetAutoResize(true);

this.pictureBox1.Location = new System.Drawing.Point(0, 8);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(880, 360);

Comments:

No comments available.