AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

2d texture visualization problem

Forum to discuss Glyph Recognition And Tracking Framework project, its features, applications, etc.

Re: 2d texture visualization problem

Postby mitko29 » Mon Feb 06, 2012 8:40 pm

Andrew I wan't to ask you how can I get Vector 3 of the 3D object / glyph.

I am trying this:
Code: Select all
Matrix.Invert(translation).Translation

and that is the the code behind translation:
Code: Select all
Matrix translation = Matrix.CreateTranslation(
                    modelTransformaton.V03, modelTransformaton.V13, -modelTransformaton.V23);

and modelTransfomation is Matrix4x4,but it's not working.
mitko29
 
Posts: 15
Joined: Wed Jan 04, 2012 9:06 pm

Re: 2d texture visualization problem

Postby andrew.kirillov » Mon Feb 06, 2012 8:46 pm

Are you looking for GetColumn() ?

P.S. what is the relation to "2d texture visualization problem" ???
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3453
Joined: Fri Jan 23, 2009 9:12 am
Location: UK

Re: 2d texture visualization problem

Postby mitko29 » Mon Feb 06, 2012 8:59 pm

andrew.kirillov wrote:Are you looking for GetColumn() ?

P.S. what is the relation to "2d texture visualization problem" ???

Well I just decided to use this topic , because I don't want to spam the forum I know that my question is not related with the topic name , and if I broke some kind of forum rules ,sorry :)

Now I am trying to do collision between two models with Bounding Sphere,but I think that the glyph vector 3 or in other words the world position I receive from translation is wrong.
Here you can how am I drawing the enemy and player in world space :
http://www.vbforums.com/showpost.php?p=4128892&postcount=7
mitko29
 
Posts: 15
Joined: Wed Jan 04, 2012 9:06 pm



Previous

Return to GRATF