GolddolphinSKB created the topic: Request for help with model rendering (Specifically from Manus)
I have restarted work on my web-based model rendering tool which imports from a Flans Mod Model.
As you can see, the model isn't drawing very well because some vertex co-ordinates are wrong based on my calculations.
I request to see Toolbox's vertex calls and the calculation of vertices so that I can get a better idea of what I should be doing dimensions wise.
Thanks in advance,
GolddolphinSKB replied the topic: Request for help with model rendering (Specifically from Manus)
I would request source code for the parts in Toolbox which do the following things:
Take dimensions of shapebox (Something like size, position and offset)
and converts them to co-ordinates to send to OpenGL using somthing like:
vertex(x, y, z)
If you can easily provide these, I would be grateful.
If not, it is okay, I'll work it out again to try and get it right.
these are the formulas to calculate the 8 corners of a box.
- Offset = the offset of the part
- Shapebox = the corner modifier
- Dim = Dimension of the part
- P1-P8 = modifier for mirroring, you can ignore them
then i build the vertexes out of them and store them with the texture coords in a vbo, first coord point value, secound coord texture value