|
fracturedsoul Random nobody Level: 3 ![]() Posts: 1/1 EXP: 54 For next: 74 Since: 04-21-14 Since last post: 8.0 years Last activity: 7.4 years |
|
| I'm writing a nsbmd (3d models) viewer and editor using directx , everything was going well until I got to the part of matrix transformation. I know there is the command 0x14 that is fired on command list that restore a matrix from matrixstack at a given stackid, and i know that ds have a matrix stack with space for 32 matrix. but how should i load values on the matrix stack? i also know that the models have "objects" that holds matrix values, i already load this, and on the initialization code, some object receive a stackid, parentid and restoreid value. what is a parentid/restoreid? and what should i do with the stackid value? i'm completely clueless.... I found almost no documentation about this, and the very few i found is useless (like kiwi.ds doc) 'cause it don't explain nothing. I looked at other viewer source, but most of then don't support matrix transformation either, the mkds course editor seems to supports it, but the code is a complete mess and is hard to understand something.
Here a pic of coraline character on my viewer at the current state (whithout any matrix transformation): http://i1369.photobucket.com/albums/ag208/gdk100/cora1_zpsd0db719e.png and with my shitty, completely wrong matrix transformation implementation: http://i1369.photobucket.com/albums/ag208/gdk100/cora2_zpsa509e15d.png lol, is even worse.... on other hand, models without matrix transformation display just fine:
please help... |






