Wings 3D Development Forum

Full Version: [fixed] Crash on the DirectX demo - Import-Wavefront OBJ.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[Import-Wavefront OBJ] Crash on the DirectX demo.

Hi happy users, Micheus,

I tried to import the "Microsoft cup" from the Direct3D SDK sample.

[attachment=664] [Enclosed picture]

In "Direct3D\MeshFromOBJ"

No blue screen, but our Wings3D... don't love it !
Wink

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.
[attachment=663]

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:
[attachment=665] [Enclosed picture]


Exported picture (set with the LightWav's mapping):
[attachment=666] [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 !

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.
Hi Xavier.

Quote:No blue screen, but our Wings3D... don't love it !
Here is it:
[Image: microsoft-cup.png]

In order to get it working you will need to apply the patches available in Patches/Fixes for Wings3D Wink
I didn't have applied the patches in my install, so it was a big crash when I dragged/dropped into Wings3D workspace.

I'm able load the exported .obj in 3D Converted without any problem, but I'm going to try check these UV issues you pointed during the next weeks.
Many thanks Micheus !

Great job, as usual...
Hi,

Successfully tested on the PNG, BMP or JPG pictures in export mode.
I'm actually unable to create the mirror/rotation bug targeted first!

UV mapping seem working with an unchanged texture auv picture used in Wings...

Thanks again Micheus for spent time and your expert kindness.
Nice. Thanks for your feedback.