-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
OBJLoader enhancement: named groups support #1369
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
Conversation
|
Can you write a test for this? Or a sample for usage. |
Sure:) Test added
where to place it? Or test is enough? |
|
Thanks for the testcase. Please move it from jme3-core to to jme3-examples/src/main/java/jme3test/model |
|
what if I leave it here and create more demonstrative example in jme3test? |
|
OK. |
|
Is it ok to move test model and material to to Looks doubtfull, because as I see, you keep jme3-core |
|
I think it would be OK as a test dependency. |
7653663 to
3f5d840
Compare
|
looks like checks failed due to some infrastructural problems |
|
I'll re-run those jobs. |
|
It stills breaks. Looks like I handle text in non-portable way. Will fix later. |
|
Is there some quota for check runs? This issue is Mac specific and I do not have Mac, so it may be necessary to run checks here many times. Is it ok? |
|
GitHub Actions is free for public repositories. As long as you're not intentionally abusing the servers, there shouldn't be any issues. https://help.github.com/en/github/setting-up-and-managing-billing-and-payments-on-github/about-billing-for-github-actions |
4858ab4 to
cb73f1e
Compare
|
comment in example updated |
|
I'll take a closer look today and hopefully integrate this PR. |
|
I looked, and I mostly liked what I saw. Apologies for the slowness of our PR process. I like the new warnings for OBJ assets that contain merge groups or smoothing groups!
The main issue with this PR is simply that the 2 new source files ("ObjLoaderTest.java" and "TestObjGroupsLoading.java") lack licenses. Given the nuisance that issue #1001 has caused, I won't integrate those files without compatible licenses. Please license these files, using similar source files are models. |
|
crosshair and licences added. |
|
sorry for non-convenient manner of ammend-force-push every commit. At work we never do so (we are ok with inflated history). But for jME I thought it's better to apply such little change as single squashed commit. Now I think it would be better to squash it only right before integration. |
|
I, too, would prefer to squash during integration, rather than having forced pushes. I'll take another look. |
|
Looks good. Thanks for your contribution to JMonkeyEngine! |
I was glad to participate! |
What've done
OBJ model format has markup element to organize objects in groups (without nesting). Currently, this markup is ignored by jME's
OBJLoader- only shape and material is loaded. This PR implements loading of groups as dedicated children of resulting Spatial.Justification
In current verison there is no legitimate way of transfering any "tags" from model editor to game code with OBJ format models. This feature is vital for loading interactive models from OBJ format. Though OBJ format may be too primitive for serious modern character models, it's easy to support, it's tools-friendly, it's human-friendly, it's still supported by many editors and its capabilities are enough for static geometry modeling such as game areas for non-high-end games.
Forum discussion
https://hub.jmonkeyengine.org/t/objloader-enhancement-named-groups-support/43243