Page 2 of 2

Re: 2d texture visualization problem

PostPosted: Mon Feb 06, 2012 8:40 pm
by mitko29
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.

Re: 2d texture visualization problem

PostPosted: Mon Feb 06, 2012 8:46 pm
by andrew.kirillov
Are you looking for GetColumn() ?

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

Re: 2d texture visualization problem

PostPosted: Mon Feb 06, 2012 8:59 pm
by mitko29
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