Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blender Exporter Normals Fix #8647

Merged
merged 1 commit into from
Apr 16, 2016

Conversation

phfatmonkey
Copy link
Contributor

Normals weren't properly transformed with last exporter change so they were flipped on their side 90 degrees. This fixes that so lighting works as expected now.

…were flipped on their sides 90 degrees. This fixes that issue so lighting works as expected.
@AndrewRayCode
Copy link
Contributor

Wonderful! A relevant ticket: #8592

@AndrewRayCode
Copy link
Contributor

@phfatmonkey it also appears that bone rotation is exported incorrectly too (rotated along wrong axis). Is that something you're familiar with?

@phfatmonkey
Copy link
Contributor Author

Hi, @delvarworld. The bones were being flipped before my last PR #8412. Are they still being flipped incorrectly?

@AndrewRayCode
Copy link
Contributor

@phfatmonkey bones are clobbered with the exporter on dev #6050 (comment)

@tschw
Copy link
Contributor

tschw commented Apr 15, 2016

Normals weren't properly transformed with last exporter change so they were flipped on their side 90 degrees.

Ha! Guessed right there #8592 (comment) .

One issue less on the Blender list. Awesome!

@phfatmonkey
Copy link
Contributor Author

phfatmonkey commented Apr 15, 2016

@delvarworld Are you using the latest exporter from the dev branch?

@tschw What do you mean by split the two lines? Do you mean split into an if statement and not a conditional assignment?

So:

if A:
  do.this()
else:
  do.that()

?

@tschw
Copy link
Contributor

tschw commented Apr 15, 2016

Oh wait... It's actually one statement. Let's just get it merged than :).

@mrdoob mrdoob merged commit bb0ff5d into mrdoob:dev Apr 16, 2016
@mrdoob
Copy link
Owner

mrdoob commented Apr 16, 2016

😊

@michaelitvin
Copy link

I'm seeing the normals issue again with Three.js r79 blender exporter with Blender 2.77. Reverting commit bb0ff5d solved the problem for me.

dherben pushed a commit to 3FrogNV/three.js that referenced this pull request Jul 21, 2016
Revert "Normals weren't properly transformed in last exporter change so they were flipped on their sides 90 degrees. This fixes that issue so lighting works as expected. (mrdoob#8647)"

This reverts commit bb0ff5d.

Revert "Revert "Normals weren't properly transformed in last exporter change so they were flipped on their sides 90 degrees. This fixes that issue so lighting works as expected. (mrdoob#8647)""

This reverts commit fec1ebb948eac7de1de95efe003e3347b1b3a1a0.
dherben pushed a commit to 3FrogNV/three.js that referenced this pull request Jul 21, 2016
…so they were flipped on their sides 90 degrees. This fixes that issue so lighting works as expected. (mrdoob#8647)"

This reverts commit bb0ff5d.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants