.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Post New Web Links

Mapping 3D Movement To 2D Plane?

Posted By:      Posted Date: October 19, 2010    Points: 0   Category :WPF
 

Hello all.

I'm hoping some folks can give me a few math pointers and/or links to figuring out how to map 3D inputs onto a 2D plane.  This is less a WPF question (though the end result will be in C#/WPF) and more math related, but I'm hoping someone might have a notion of what is involved.

Here's a little more detail; it sounds weird, but I promise there is purpose to the madness...

I have a head tracking system that receiving 6 degree-of-freedom data from (x, y, z, azimuth, inclination, roll).  I have a near-to-eye display showing a widget, on a 2D plane, that I want to appear stabilized in the world.  This means that when I turn my head to the left the object should shift to the right, as if it were hung on the wall in the real world.

Because my input data is 3D and the visual output is 2D the numbers do not map just right.  I'm currently just using the azimuth and inclination values to translate x- & y-offsets on the 2D plane.  This causes the widget almost appear stabilized on the wall, but it "crawls" a little due to my lack of any 3D-to-2D point translation.

What I would like to find is a resource that will help me translate 2D x- & y-offsets (we've got the roll part down) from a 3D 6-DOF input.

Thanks for any help!




View Complete Post


More Related Resource Links

Toolbox: Distributed Caching, Object-Object Mapping, Blogs and More

  

This column covers Web application performance with distributed caching, a utility for object-object mapping, and a look at interesting blogs.

Scott Mitchell

MSDN Magazine September 2009


Netting C++: Mapping Templates to Generics

  

In this installment, Stanley Lippman continues to port his ISO-C++ Text Query Language application to the Microsoft .NET Framework and C++/CLI.

Stanley Lippman

MSDN Magazine April 2007


Netting C++: Mapping Native C++ to the Common Type System

  

This month Stanley Lippman begins translating the Text Query Language Query class hierarchy from C++ to the .NET Common Type System.

Stanley B. Lippman

MSDN Magazine February 2007


Writing GIS and Mapping Software for .NET

  
Introduction
In part one of this series, I described how to write an interpreter for raw GPS NMEA data. Part two described how to monitor and enforce GPS precision data to develop commercial-quality software. The articles included source code in C# and VB.NET which harnessed the power of GPS satellites to determine the current location, synchronize the computer clock to atomic time, and point to a satellite on a cloudy day. Yet, even with all of this code, most developers still need a way to display GPS information along with other geographic features. With the help of my colleague Phil Smith, a lead developer of our "GIS.NET" mapping component and the "Geodesy.NET" coordinate and projection library, this article will teach you how to generate your own maps.

The Rule of Threes
In order to understand the technology behind mapping, it's necessary to have a solid understanding of three coordinate systems: geographic, projected, and pixel. Each system serves an important role when displaying a map, and transformations from one system to another are essential. Developers typically start with a geographic coordinate (expressed as latitude and longitude). Then, it is transformed from Earth's eblate spheriod (roughly spherical) shape to a plane, resulting in a projected coordinate: a truly flat, two-dimensional coordinate. A projected coordinate is an easting/northing pair, desc

Custom mapping from formValues to ViewModel

  
Let's say i have simple ViewModel : class SimpleViewModel { public string prop1 {get;set;} public string prop2 {get;set;} } And I have following markup:<input type="text" id="prop1input" /><input type="text" id="prop2input" />I am wondering is it possible to make custom mapping from form values submitted via POST to model values, something like this:class SimpleViewModel { [HttpMappingAttr("prop1input")] public string prop1 {get;set;} [HttpMappingAttr("prop2input")] public string prop2 {get;set;} }

SharePoint read/recognize a Digital Signature in Word (XML Content Control Mapping)?

  
I am using Content Control Mapping to pull certain fields from a Word Document and include it as columns when a document is uploaded into a Document Library. We're using MOSS 2007 and Word 2007. It is required that the user digitally signs the document before uploading.  Is there a way to get the signature to appear as a column in a similar fashion?  I'm new to this mapping business, and Google hasn't been much help. I realize I could use the Collect Signatures workflow, but that seems cumbersome to 1) have the user submit it, 2) have an admin open each document and start the workflow and 3) have the user THEN sign the document.  That's more steps than simply manually opening and verifying digital signatures. I figure I'm missing something obvious here.  Any help or ideas would be appreciated.

Mapping SqlDataSource Parameters to Formview with Multiple DataKeys

  
Hi I have:a FormView that is linked to SqlDataSource1a Repeater control (inside the formview) that is linked to SqlDataSource2Thus representing a simple "1 to many" or "parent/child" relationship in the database!SqlDataSource1 is simple in that it just retrieves a straight set of records from a table and they are displayed back in the FormView (nothing special happening there). SqlDataSource2 has parameters that  filter the contents of the repeater based on the record that is shown in the Formview. This would normally be simple enough to set up by setting the parameter to the formview.selectedvalue property.HOWEVER - THE PROBLEM ARISES...The formview has multiple DataKeyNames because the table that the SqlDataSource1 links to has a compound key. So to filter the Repeater correctly SqlDataSource2 needs to map 3 parameters to 3 data key values in the formview.Any ideas how to do this?I've tried setting the SqlDataSource2 parameters to:<SelectParameters>   <asp:ControlParameter ControlID="FormView1" Name="Parameter1" PropertyName="DataKey(0)" />   <asp:ControlParameter ControlID="FormView1" Name="Parameter2" PropertyName="DataKey(1)" />   <asp:ControlParameter ControlID="FormView1" Name="Parameter3" PropertyName="DataK

Mapping SqlDataSource Parameters to Formview with multiple DataKeys

  
Hi I have:a FormView that is linked to SqlDataSource1a Repeater control (inside the formview) that is linked to SqlDataSource2Thus representing a simple "1 to many" or "parent/child" relationship in the database!SqlDataSource1 is simple in that it just retrieves a straight set of records from a table and they are displayed back in the FormView (nothing special happening there). SqlDataSource2 has parameters that  filter the contents of the repeater based on the record that is shown in the Formview. This would normally be simple enough to set up by setting the parameter to the formview.selectedvalue property.HOWEVER - THE PROBLEM ARISES...The formview has multiple DataKeyNames because the table that the SqlDataSource1 links to has a compound key. So to filter the Repeater correctly SqlDataSource2 needs to map 3 parameters to 3 data key values in the formview.Any ideas how to do this?I've tried setting the SqlDataSource2 parameters to:<SelectParameters>   <asp:ControlParameter ControlID="FormView1" Name="Parameter1" PropertyName="DataKey(0)" />   <asp:ControlParameter ControlID="FormView1" Name="Parameter2" PropertyName="DataKey(1)" />   <asp:ControlParameter ControlID="FormView1" Name="Parameter3" PropertyName="DataK

user mapping to a database and role membership to that database

  
When assigning a 'user mapped Login' to a database and role membership to that database, is it redundent to check/enable db_datareader, db_datawriter as well as db_owner or will check/enable db_owner become all that is necessary to provide role membership to the database?

The external column "CLIENT" (2639) has no mapping to the XML schema

  
Hi, I am having validation errors when moving between test and production servers.  I have a package which is reading and XML file and loading the data into staging tables.  The XML source is configured to use a variable for the file name (which is getting populated through a foreach loop.  The default value points to a file that was on the production server when the package was created).  The XSD is stored on a network share.  This all looks fine in test.  When I deploy it to production there are no validation errors, but when I run it, I get errors about the first few columns in the schema complaining: "The external column "<Column Name>" (2639) has no mapping to the XML schema" If I open the package while pointing to the production server, I can double click the XML Source and clear the errors.  I can then redeploy it and the package will run without issue in production.  However, if I open it back up and the package is again pointing to the test server, these metadata errors come up again.  I have rebuilt this component and the XSD a dozen times, thinking that the component was corrupted, but nothing seems to help.  I even rebuilt the entire dataflow.  Any ideas on to make this transition from test to production more smooth?  Is there a more reliable way that I can configure t

Retrieving users from mapping/pivot table

  
I have three tables.CustomProfileUserID (pk)DisplayNameCompanyIDTeamsTeamRecordID (Pk)TeamIDCompanyIDEmployeesInTeamsUserIDTeamIDI want to assign employees to teams via a gridview control with a templated checkbox.I have a dropdownlist control to select the TeamID.I am having problems with the select statement.The gridview needs to select employees that are not assigned to any teams as well as assigned to other teams. An employee can be assigned to many teams.What I have been trying is:cp.UserID, cp.DisplayName, et.TeamIntID, cp.CompanyID FROM            EmployeesInTeams AS et CROSS JOIN                          CustomProfile AS cp WHERE        (et.TeamIntID <> @TeamIntID) AND (NOT EXISTS                              (SELECT        TeamIntID, UserID                                FROM            EmployeesInTeams                                WHERE        (cp.UserID = UserID))) AND (cp.CompanyID = @companyid)Select cp.UserID, cp.DisplayName, et.TeamIntID, cp.C

Table mapping

  
 Hi friend, I want to know what is the use of table mappings.At what scenario we will use table mapping. Thanks  

I have a question about sharepoint url mapping with domain url.

  
Our server name is 'Com1'(100.100.xxx.xxx)and join the domain 'AD'. And dns name is 'sp.company.com'. I connect to sharepoint from users'pc with url '100.100.xxx.xxx' or ''sp.company.com'. It well done. But when I connect to Remote Desktop to '100.100.xxx.xxx'  and connect to sharepoint(machine self) with url 'sp.company.com', not connect. And if type IP directly, it well done. I want to modify TFS's sharepoint url to domain url, but I can't above situation. Anyone help me.  

Alternate Access mapping - Intranet site

  
Hi All, I'm banging my head against a brick wall here trying to setup an alternate access mapping for an intranet site in SharePoint 2007. I have a default site setup which has the following public default URL: http://SERVERNAME:2586 I want users to access the site using the URL http://Intranet Now from reading about alternate access mappings I thought this should be as simple as adding an internal url of http://intranet under the intranet zone. With this set up I preceded to add the binding to the IIS website. I added the binding with All Assigned IP addresses, port 2586, and host as Intranet. The final thing I did to check this was to add an entry to the hosts file for the server IP address with the host name of intranet. This was followed by a flush of the DNS cache on the server. Whgen trying to access the site using the URL i now get the IIS7 welcome page, but not the SharePoint site I expected. Can anyone point me in the direction of what i've done wrong, Its got me stumped. Cheers, Grant

Mapping 2 datatables

  
Hi, i have 2 datatables where each of them has a different xsd, now i have to write records of table 1 to table 2 using a mapping of colums that i have in an xml file.Any idea of how to do the mapping?Thanks.

No mapping exists from object type System.Web.UI.WebControls.Label to a known managed provider nativ

  
 I'm making the leap to move from vb.net to C#, and I'm getting this crazy error when I try to execute one sp, set a value, and then execute another sp based on the value.   Any suggestions??? proc_GetSectionDetails is my first stored procedure.  From that, I get a value for SectionID, and then use it for the second sp called  proc_GetSectionDetails protected void getSectionContent() { SqlConnection conn = default(SqlConnection); SqlCommand comm = default(SqlCommand); SqlDataReader reader = default(SqlDataReader); string connectionString = ConfigurationManager.ConnectionStrings["123"].ConnectionString; conn = new SqlConnection(connectionString); comm = new SqlCommand(); comm.Connection = conn; comm.CommandType = System.Data.CommandType.StoredProcedure; comm.CommandText = "proc_GetSectionDetails"; comm.Parameters.AddWithValue("SubSectionID", Request.QueryString["SubSectionID"]); conn.Open(); reader = comm.ExecuteReader(); if (reader.Read()) { lblName.Text = Convert.ToString(reader["SubSectionName"]); lblDesc.Text = Convert.ToString(reader["SubSectionDescription"]); Label SubSectionParentID = new Label();

Alternate Access Mapping Problems

  
I have set up a windows server 2003 and sharepoint 3.0 on the same computer. First, I set up two "New Host A" in my DNS Server - Forward Look up Zones and then I tried to access the websites. No luck.  I went to the run command and pinged both sites to see if they worked. They pinged as they should. Then I went into Sharepoint and set up the Alternate Access Mappings with a default and extranet zone. A login box appeared which won't accept my administrator password or anyone else's.  I can log directly into all site collections that I have developed. I saw that you advised someone with regards to their login and browser but could you explain in more detail what you mean by that?  I am a bit stupid sometimes. :-) I also changed all the properties in my DNS Server host records to have full administrator privileges. Can you please advise if I should take that back off as a precautionary security measure. It didn't resolve my problem anyway. Thanking you in advance. Tracey
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend