You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a 3-segment line with 3ds max coords:
0.88521 3.23816 1.952
0.00000 2.38316 4.100
-0.88521 3.23816 1.952
But inside obj file after export I get this weired coordinates:
VLINE -1.95200 6.69064 -1.07349 0.50000 0.50000 0.50000
VLINE -4.10000 5.83563 -1.95870 0.50000 0.50000 0.50000
VLINE -1.95200 6.69064 -2.84391 0.50000 0.50000 0.50000
And also there is a problem with IDX section in case if model have both polys and lines.
In this case vertex index order for lines may not be the same as for polys.
For example in my model IDX sections starts as: IDX10 2 1 0 3 0 1 6 5 4 7
And if I have for example 2 lines with 3 segments in each I will have a problem. Instead of ids order for lines "0 1 2 3 4 5" I get "2 1 0 3 0 1" and lines will not draw correctly.
Solution is simple: change POINT_COUNTS section and increase indices count as poly cnt + line cnt and add separate IDX for lines in the end of IDX section.
You can see it here: https://forums.x-plane.org/index.php?/forums/topic/48604-vt-records-and-vline-records-and-indices/#comment-539252
Would be nice if you could fix this two annoying bugs.
The text was updated successfully, but these errors were encountered:
Thank you for the report.
The lines are not recommended for using and their fate in the plugin is still unknown.
Instead simple splines you can use renderable ones with Edit Mesh or Edit Poly modifiers over it.
I have a 3-segment line with 3ds max coords:
0.88521 3.23816 1.952
0.00000 2.38316 4.100
-0.88521 3.23816 1.952
But inside obj file after export I get this weired coordinates:
VLINE -1.95200 6.69064 -1.07349 0.50000 0.50000 0.50000
VLINE -4.10000 5.83563 -1.95870 0.50000 0.50000 0.50000
VLINE -1.95200 6.69064 -2.84391 0.50000 0.50000 0.50000
And also there is a problem with IDX section in case if model have both polys and lines.
In this case vertex index order for lines may not be the same as for polys.
For example in my model IDX sections starts as: IDX10 2 1 0 3 0 1 6 5 4 7
And if I have for example 2 lines with 3 segments in each I will have a problem. Instead of ids order for lines "0 1 2 3 4 5" I get "2 1 0 3 0 1" and lines will not draw correctly.
Solution is simple: change POINT_COUNTS section and increase indices count as poly cnt + line cnt and add separate IDX for lines in the end of IDX section.
You can see it here: https://forums.x-plane.org/index.php?/forums/topic/48604-vt-records-and-vline-records-and-indices/#comment-539252
Would be nice if you could fix this two annoying bugs.
The text was updated successfully, but these errors were encountered: