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

Mesh diff transform in editor and in game. #7126

Closed
d954mas opened this issue Nov 4, 2022 · 13 comments
Closed

Mesh diff transform in editor and in game. #7126

d954mas opened this issue Nov 4, 2022 · 13 comments
Assignees
Labels
bug Something is not working as expected editor Issues related to the Defold editor engine Issues related to the Defold engine mesh Issue related to the mesh component

Comments

@d954mas
Copy link
Contributor

d954mas commented Nov 4, 2022

Expected behaviour

Mesh look same in editor and game

Actual behaviour

Mesh not rotated in game
Error in console.

 Trying to get stream data outside of input DDF array.

2022-11-04_14-18-02
2022-11-04_14-18-51

Steps to reproduce

bad mesh.zip


Build time2022-11-02T11:44:12.649507
Defold channelbeta
Defold editor sha1dbf756
Defold engine sha1dbf756
Defold version1.4.0
GPUAMD Radeon(TM) Graphics
GPU Driver4.6.14756 Compatibility Profile Context 20.40.64 27.20.14064.3
Java version11.0.15+10-LTS
OS archamd64
OS nameWindows 10
OS version10.0
@d954mas
Copy link
Contributor Author

d954mas commented Nov 4, 2022

Problem when go have rotation.y 180
with rotation.y 179.9 mesh render correct in game

@britzl britzl added bug Something is not working as expected engine Issues related to the Defold engine editor Issues related to the Defold editor mesh Issue related to the mesh component and removed editor Issues related to the Defold editor labels Nov 4, 2022
@Jhonnyg
Copy link
Contributor

Jhonnyg commented Nov 30, 2022

This seems to have been fixed with 1.4.1, could you try with an alpha or beta build from https://d.defold.com/alpha/ or https://d.defold.com/beta/ ?

@d954mas
Copy link
Contributor Author

d954mas commented Nov 30, 2022

Update repro case. Looks like camera position was wrong:(
bad.mesh_2.zip


Build time2022-11-28T14:37:20.255562
Defold channelbeta
Defold editor shaba61b10
Defold engine shaba61b10
Defold version1.4.1
GPUAMD Radeon(TM) Graphics
GPU Driver4.6.14756 Compatibility Profile Context 20.40.64 27.20.14064.3
Java version11.0.15+10-LTS
OS archamd64
OS nameWindows 10
OS version10.0

2022-11-30_19-07-51

2022-11-30_19-08-24

@d954mas
Copy link
Contributor Author

d954mas commented Nov 30, 2022

Warning in console was not problem.(Fixed it(remove empty second uv from mesh))

 Trying to get stream data outside of input DDF array.

@d954mas
Copy link
Contributor Author

d954mas commented Nov 30, 2022

Last repro case. No warning is console.
Mesh look good in enditor.
Mesh look bad in game:(
bad.mesh.zip

@Jhonnyg
Copy link
Contributor

Jhonnyg commented Dec 1, 2022

I'm investigating it, and as a workaround it seems that if you rotate it to zero and then rotate it again to 180 on the y axis the problem magically disappears, so until I can find out more you can try that.

@d954mas
Copy link
Contributor Author

d954mas commented Dec 1, 2022

Ok, thanks.
I make that meshes in blender.
https://forum.defold.com/t/building-a-sync-tool-for-blender-to-defold/69920

So rotation is set in file by export plugin, not by editor.

Mb it set some bad value?
And when you rotate object 180 and back editor fixed that value?

@Jhonnyg
Copy link
Contributor

Jhonnyg commented Dec 1, 2022

I'm not sure to be honest, I think it's something in the editor build pipeline because running bob.jar seems to be working fine. I'll run it by the editor guys and see if they have any ideas.

@d954mas
Copy link
Contributor Author

d954mas commented Dec 1, 2022

Test in another project(real game)
1)Mesh was not correct
2)rotate y to 0. Then rotate y to 180. Mesh correct

Initial value

 rotation {
        x:-3.0908623216419e-008
	y:0.70710682868958
	z:0.70710670948029
	w:-3.0908616110992e-008
    }

Rotate to y to 0.
Rotate y from 0 to 180.

 rotation {
    x: -4.3297803E-17
    y: 0.70710677
    z: 0.70710677
    w: 4.3297803E-17
  }

@britzl britzl added the editor Issues related to the Defold editor label Feb 23, 2023
@d954mas
Copy link
Contributor Author

d954mas commented Mar 9, 2023

UP.
Very annoying in my cases.

-Looks ok in editor
-All ok when bundle.
-Problems when build from editor.

@d954mas
Copy link
Contributor Author

d954mas commented Mar 9, 2023

I change rotation from 180 to 0. Then back, from 0 to 180.
It fixed build from editor.
-git not see any changes in file.
-after editor restart i need to fixed it again

@d954mas
Copy link
Contributor Author

d954mas commented Mar 9, 2023

Not sure about changes i write here #7126 (comment)

For now i do not see any changes in git.

Editor 1.4.3 (f7eb917)

@matgis
Copy link
Contributor

matgis commented Mar 24, 2023

A fix has been merged and your editor should receive an update shortly. Thanks for reporting! ❤️

@matgis matgis closed this as completed Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working as expected editor Issues related to the Defold editor engine Issues related to the Defold engine mesh Issue related to the mesh component
Projects
No open projects
Status: Done
Development

No branches or pull requests

4 participants