-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
OBJLoader2 V2.3.1: Parser Verification, Point and Line support, moved generic functions to LoaderBase #13156
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
|
Do you have any idea why the checks were unable to run? |
cf15b51 to
50e6da6
Compare
|
I amended the commit and push it again. Putting the Parser into its own namespace is no longer required It was a work-around to overcome minification problems that is no longer required. |
50e6da6 to
5e0ed81
Compare
examples/files.js
Outdated
| "webgl_loader_nodes", | ||
| "webgl_loader_obj", | ||
| "webgl_loader_obj_mtl", | ||
| "webgl_loader_obj_obj2_verify", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about webgl_loader_obj2_verify?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It uses both OBJLoader and OBJLoader2 that's why I chose that name. You decide!
|
|
||
| return workerCode; | ||
| }; | ||
| var libs2Load = [ 'node_modules/three/build/three.js' ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
node_modules/three/build/three.js?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be build/three.min.js. Thanks.
There are other path issues in other examples. I will double check now and push an update.
|
I fixed the path issues, but the Solution: I removed the |
|
Some background info on the mtl problem. I manually derived the mtl file and I think I have started of one that was created by 3dsmax. Correction: The behaviour is correct. If Edit: I added a param to pass material options to |
|
@mrdoob I pushed another update that adds Point support From my point of view this is ready. 👍 |
…from functions list (fixed singleton typo along) Builder defines the default materials and renamed 'vertexColorMaterial' to 'defaultVertexColorMaterial' for consistency. Fixed Builder.updateMaterials clone instructions
|
Ok, here are some more improvements to the WorkerSupport resulting from work on worker based PCDLoader. Force push (below) was required, because I forgot a single brace. 😅 |
a59bc7e to
d706faa
Compare
…from functions list (fixed singleton typo along) Builder defines the default materials and renamed 'vertexColorMaterial' to 'defaultVertexColorMaterial' for consistency. Fixed Builder.updateMaterials clone instructions
|
V2.3.0 is now available via npm: |
|
In preparation of PCDLoader PR (add parseAsync and run) which will come tomorrow (need to update docs as well and ran out of time) I have pushed another update bumping the minor version up. @mrdoob do you see this whole PR merged before R90? Thanks |
bb008e7 to
34ecfb2
Compare
OrgRepoIssue 28: Parser Validation. Parser now is one single class: Simplified code, fixed bugs missing 'g' statements and introduced obj_obj2 verification with gulpfile to re-create verify.obj. OrgRepoIssue 31: Worker code still works when mangling is used during minification. Needed to remove Consts. OrgRepoIssue 32: THREE.LoaderSupport.ConsoleLogger: Allow to pass additional arguments to error, warn, info and debug OrgRepoIssue 33: Added support for Points and fixed Lines along - Removed Tr instruction from verify.mtl - WorkerSupport.buildSingelton allows to use constructors from functions list (fixed singleton typo along) - Builder defines the default materials and renamed 'vertexColorMaterial' to 'defaultVertexColorMaterial' for consistency. - Fixed Builder.updateMaterials clone instructions - Extracted load and checkResourceDescriptorFiles to LoaderBase. - loadMtl now allows to pass material options to MTLLoader - Updated documentation
OrgRepoIssue 28: Parser Validation. Parser now is one single class: Simplified code, fixed bugs missing 'g' statements and introduced obj_obj2 verification with gulpfile to re-create verify.obj. OrgRepoIssue 31: Worker code still works when mangling is used during minification. Needed to remove Consts. OrgRepoIssue 32: THREE.LoaderSupport.ConsoleLogger: Allow to pass additional arguments to error, warn, info and debug OrgRepoIssue 33: Added support for Points and fixed Lines along - Removed Tr instruction from verify.mtl - WorkerSupport.buildSingelton allows to use constructors from functions list (fixed singleton typo along) - Builder defines the default materials and renamed 'vertexColorMaterial' to 'defaultVertexColorMaterial' for consistency. - Fixed Builder.updateMaterials clone instructions - Extracted load and checkResourceDescriptorFiles to LoaderBase. - loadMtl now allows to pass material options to MTLLoader - Updated documentation
34ecfb2 to
0e736ce
Compare
|
@mrdoob I squashed down all commits to one and put it at the head of dev (sorry, needed to force push, again as I was behind). Now, it is in-line with your CRLF commit. I moved |
Do you mind moving these to |
|
Done, separated point and line cubes in verify.obj in addition. |
|
Sweet! |
|
Thanks! |
These are the enhancements and bug fixes:
Hi @mrdoob, here comes an important update. I have finished a Parser review. It is now one single object. The code should be easier to understand for others, I think.
I have introduced
verify.objwhich can be rebuilt with gulp instructions. It is is used by new exampleobj_obj2_verify. This should be used and expanded in the future to highlight & fix Parser issues.OBJLoaderhas some (Omission of 'g' and usage of different face descriptions).OBJLoader2is now able to handle those cases.