If I create a DressUpModel frame and set it to show a model can I then somehow freely manipulate its camera? (or x,y,z position and yaw/pitch/roll of the model?)
I found :SetCamera(2) which seems to be what I want but I find no function for actually moving the camera.
I can move the model with :SetPosition() but have not found a way to change yaw/pitch/roll.
I took a look at the two addons. Both seem to use :SetCamera(1) which as far as I can find only support a static camera where you can rotate the model along its vertical axis and pan the model in x and y coordinates.
What i would like to do (not sure if it is possible) is to look down on the models from a higher angle. I was thinking of using this to make a simple isometric game using ingame models as pieces.
edit: Might be possible using :SetCamera(1) if I use insanely tall DressUpModel frames and pan the model to the bottom. Will try after sleep.
Are you sure you looked at both? There is no mention of SetCamera anywhere in Dresser.
The part you should be looking at is what happens during OnUpdate. Specifically, the SetPosition API and the math used to arrive at the values passed to it.
Yes, I have taken a look at both. Dresser uses the standard blizzard DressUpModel Frame which uses SetCamera(1) as default. CloseUp I had a harder time deciphering but as far as I can tell it uses a PlayerModel frame and a DressUpModel frame which both use SetCamera(1) as default.
Both addons do movement of the model in all 3 dimensions (:SetPosition()) but only rotation around 1 of 3 axes (:SetFacing()) in their OnUpdate functions. What I miss is rotation around the other 2 axes (or some way to freely move and point the camera).
As I said I'm not sure this is possible. I can not find any functions used to rotate around the other axes.
So I thought :SetCamera(2) might be the solution since wowwiki says:
[FONT=monospace]"[/FONT]Camera 2 (or in fact, any number other than 0 or 1) can be freely moved."
I have however not been able to find what functions are used to "freely move" the camera and I am not sure "freely moved" covers "freely rotated".
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I found :SetCamera(2) which seems to be what I want but I find no function for actually moving the camera.
I can move the model with :SetPosition() but have not found a way to change yaw/pitch/roll.
I took a look at the two addons. Both seem to use :SetCamera(1) which as far as I can find only support a static camera where you can rotate the model along its vertical axis and pan the model in x and y coordinates.
What i would like to do (not sure if it is possible) is to look down on the models from a higher angle. I was thinking of using this to make a simple isometric game using ingame models as pieces.
edit: Might be possible using :SetCamera(1) if I use insanely tall DressUpModel frames and pan the model to the bottom. Will try after sleep.
The part you should be looking at is what happens during OnUpdate. Specifically, the SetPosition API and the math used to arrive at the values passed to it.
Both addons do movement of the model in all 3 dimensions (:SetPosition()) but only rotation around 1 of 3 axes (:SetFacing()) in their OnUpdate functions. What I miss is rotation around the other 2 axes (or some way to freely move and point the camera).
As I said I'm not sure this is possible. I can not find any functions used to rotate around the other axes.
So I thought :SetCamera(2) might be the solution since wowwiki says:
[FONT=monospace]"[/FONT]Camera 2 (or in fact, any number other than 0 or 1) can be freely moved."
I have however not been able to find what functions are used to "freely move" the camera and I am not sure "freely moved" covers "freely rotated".