Register - Login
Views: 99794657
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
05-03-22 05:17:07 AM
Jul - Posts by fracturedsoul
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

Posted on 04-21-14 06:18:57 PM, in Need help with DS NSBMD (3d model) editor (last edited by fracturedsoul at 04-21-14 06:27:33 PM) Link
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...
Jul - Posts by fracturedsoul


Rusted Logic

Acmlmboard - commit 47be4dc [2021-08-23]
©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

19 database queries.
Query execution time: 0.091505 seconds
Script execution time: 0.004025 seconds
Total render time: 0.095530 seconds