-
Notifications
You must be signed in to change notification settings - Fork 41
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
Merge Class #33
Comments
For anyone else experiencing the same issue, change the follow to resolve: and add the following line to the bottom of the private merge functuion within Merge.hx: |
I just tried the Merge class without any changes and it seemed to work for for my example. Simply having a plane & a sphere then using the 'apply' method. Did you have an example that was failing? |
Hi Greg What target are you using? This issue only effects the html5 target |
Ah - I tried mac (cpp). I'll give html a go and see. Thanks |
I think it has to do with the fact that the geometry is being overridden by a new Geometry object, Due to slightly different interpretation of the syntax. So any references to the Geometry object are getting lost. Instead the subGeometries need to be added to the current Geometry object |
Just a quick update.... All the data from the merge seems to be working e.g. vertices, indices, etc that I've seen, so it seems like there is some invalidation that's not occuring on HTML. It also occurs targetting Neko as well. What's weird and is a bit of a workaround is to simply clone the resulting mesh and that (from my tests anyway) seems to fix it, without the changes. Still looking for the missing bit though |
FYI, I'm trying to merge a bunch of cubes, and it crashes in neko, but works fine in html5 / linux targets.
|
Hmm. Just tried the following, based on your code snippet and Neko worked fine for me on OSX.
Are you doing anything different? |
I'm reusing the same geometry and material instance every cube I generate, but otherwise no. It could be a neko/linux thing... |
It seems the Merge class isn't working, anyone else experiencing this?
The text was updated successfully, but these errors were encountered: