[Import-Wavefront OBJ] Crash on the DirectX demo.
Hi happy users, Micheus,
I tried to import the "Microsoft cup" from the Direct3D SDK sample.
[Enclosed picture]
In "Direct3D\MeshFromOBJ"
No blue screen, but our Wings3D... don't love it !

The Wings3D import seem to be designed to load only one "g" object.
If i delete the second object in the file, it load the "inside" cup object.
media.zip (Size: 48.51 KB / Downloads: 1)
Another curiosity, i tried to load an "obj" file to the "OBJ" DirectX loader from an exported Wings file... and the texture UI mapping is wrong!
Wavefront seem to load his blt buffer form the end of the picture... to the begin (old BMP structure?).
The result is to invert the texture as a double mirrored picture on the UI table ! (-x,-y)
The exported picture had to be rotated by 180°, then an horizontal mirror is applied.
UV picture:
[Enclosed picture]
Exported picture (set with the LightWav's mapping):
[Enclosed picture]
The UI setting on Wings is based on the "real" picture, but don't match on the DirectX renderer.
Thanks Micheus for enjoys and your great job !
[Enclosed picture]: To show the enclosed pictures, you had to set this forum as "safe" in your web explorer.
Hi happy users, Micheus,
I tried to import the "Microsoft cup" from the Direct3D SDK sample.
In "Direct3D\MeshFromOBJ"
No blue screen, but our Wings3D... don't love it !

The Wings3D import seem to be designed to load only one "g" object.
If i delete the second object in the file, it load the "inside" cup object.

Another curiosity, i tried to load an "obj" file to the "OBJ" DirectX loader from an exported Wings file... and the texture UI mapping is wrong!
Wavefront seem to load his blt buffer form the end of the picture... to the begin (old BMP structure?).
The result is to invert the texture as a double mirrored picture on the UI table ! (-x,-y)
The exported picture had to be rotated by 180°, then an horizontal mirror is applied.
UV picture:
Exported picture (set with the LightWav's mapping):
The UI setting on Wings is based on the "real" picture, but don't match on the DirectX renderer.
Thanks Micheus for enjoys and your great job !
Quote:Dump written 2021-12-4_10-40
Version: 2.2.7
Window: geom
Reason: function_clause
Short stack trace:
[{wings,command_1,2,[{file,"wings.erl"},{line,767}]},
{wings_develop,time_command,2,[{file,"wings_develop.erl"},{line,87}]},
{wings,raw_command,4,[{file,"wings.erl"},{line,643}]},
{wings_wm,handle_event,3,[{file,"wings_wm.erl"},{line,1032}]},
{wings_wm,send_event,2,[{file,"wings_wm.erl"},{line,998}]},
{wings_wm,do_dispatch,2,[{file,"wings_wm.erl"},{line,890}]},
{wings_wm,dispatch_event,1,[{file,"wings_wm.erl"},{line,799}]},
{wings_wm,get_and_dispatch,0,[{file,"wings_wm.erl"},{line,685}]},
{wings,init_part2,3,[{file,"wings.erl"},{line,108}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]
[Enclosed picture]: To show the enclosed pictures, you had to set this forum as "safe" in your web explorer.