CFanatic

Go Back   CFanatic > Programming > C# Programming

Join CFanatic Forum Now

Trouble navigating NyARToolkit topic posted under C# Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 08-31-2010, 04:11 AM
 
Join Date: Aug 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Suit is on a distinguished road
| More
Trouble navigating NyARToolkit

I'm having a little trouble figuring out a method for calculating the distance between the marker and the camera in NyARToolkit. Because the meshses are scaled according to the size of the marker (and the marker pattern is described as a specific scale), I figured that by knowing the size of the marker, you could calculate its distance in the frustum.


I know they set a minimum and maximum length of the frustum(1cm - 10m).
I know that an NyARSquare will give you the center of the square in 2D screen-coordinate space, as well as 4 points (1 for each corner).
I know that you can calculate the transform from the points to make an actual 2D square.
I know that you can calculate the transformed square's distance from the camera if you know the size.


But I DON'T know how to put all of this together, because I don't know NyARToolkit well enough to pull the proper information (such as where to pull the information from the NyARSquare and where to access the frustum information.)

So if anyone can answer where in the "SingleARMarkerDirect3D" sample project provided in the NyARToolkit, I may go to properly access all of the needed information and calculate the marker's distance, it would be greatly appreciated!

Thank you,
Suit
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
I have trouble installing external libraries jamort C++ Programming 0 08-31-2010 04:11 AM
trouble with CFormView print preview?an answer. praxisist MFC Programming 0 06-13-2008 01:34 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 04:12 AM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board