News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

SetWorldTransform...HELP again....

Started by xandaz, August 25, 2012, 07:29:56 AM

Previous topic - Next topic

xandaz

    I mean... i prolly lost count for the time i spent thinking about it and i still can't understand the matrix thing and how it translates the DC. i was masking this thing that works with the members of xform, but it's not working. Can someone look into it? please?

Farabi

What youre gona do with the matrix? I spent 2 years before understand how the matrix worked  :greenclp:
http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165

dedndave


qWord

Hi,
a matrix allows to combine several transformation: rotate, scale, shear, translation and reflection . Each of this transformation can be described through a matrix. The resulting transformation depends on the order in which the matrices get combined (matrix multiplication, CombineTransform).
For example, if you want to rotate around a specific point:

    1. translate point to origin: -Px, -Py
    2. rotate
    3. translate +Px,+Py

In the attachment an example program that allows to play with transformations.
MREAL macros - when you need floating point arithmetic while assembling!

dedndave

thanks for another nice example, qWord   :t

Farabi

http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165

Siekmanski

Creative coders use backward thinking techniques as a strategy.

xandaz

   Jesus....QWord...You're the master. Long time since last here. Hi All.