xLightsSequencer / xLights

xLights is a sequencer for Lights. xLights has usb and E1.31 drivers. You can create sequences in this object oriented program. You can create playlists, schedule them, test your hardware, convert between different sequencers.
GNU General Public License v3.0
549 stars 208 forks source link

2019.3 Mac - obj import axis translation #1407

Closed jarogers closed 5 years ago

jarogers commented 5 years ago

Seems that obj's imported do not respect the axis which they were originally built in. From some limited testing so far it seems that the Z and Y axes are interchanged.

AzGilrock commented 5 years ago

I'm sure with some clever thinking you can make it work. I know for SketchUp I invert the Y axis on export. You didn't say which software you're using. I'd say just rotate the object in your program and re-export it. Luckily it should only be a one time operation. I just used an OBJ file loader function I found and I don't want to add a ton of options to handle every possible scenario.

jarogers commented 5 years ago

Actually it doesn't even take some clever thinking to come up with a workaround. However that wasn't the point of me reporting the issue. Anyways, so far I've tested with Esprit, ModelMill, AlphaCam, SketchUp, and MakeHuman. The issue still stands with each of them.

I've also just noticed now that I've started using the 3D modeling in xLights, that the standard OOB models are also placed laying down on the Y axis as well as those imported.

AzGilrock commented 5 years ago

Also the Y axis is vertical in xLights. I know some people like to use Z for vertical but ours is designed to match up with the 2D axes.

AzGilrock commented 5 years ago

I got home and verified everything. xLights is reading the OBJ file correctly because the vertex format is in the order X, Y, Z and we read in that order. SketchUp allows the Y / Z swap on export and that's shown in the export options I've given out. image