Open ua4192 opened 4 years ago
I plan to add gltf (glb at first) support for nexus, especially for the materials. Adding Draco support should not be a difficult task.
I hope you are using binary PLY, they would have the same size as uncompressed gltf.
On Tue, Feb 25, 2020 at 9:35 AM Alex notifications@github.com wrote:
Hi.
I have been working with ply format in order to generate nxz files.
The problem of ply format is the big size of the files and also the lack of support of alpha channel. I am using nodejs process and THREEJS libraries in order to generate the ply files.
Would it be possible to add the GLTF (GLB with Draco Compression would be great) to the formats supported by nxsbuild.
Many thanks in advanced.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cnr-isti-vclab/nexus/issues/75?email_source=notifications&email_token=AAUDV2ZEDLS7WHAS7HVBEY3RETJ5HA5CNFSM4K3BLO5KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IP7S4AA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUDV23YJKTY2PTQFXHCBGLRETJ5HANCNFSM4K3BLO5A .
Hi.
Yes, I am using binary format of PLY, but ply file are still unhandable and the main problem is that the ply files cannot keep alpha channel in a proper way, at least using the THREE.PLYExporter I am using.
I will be looking forward for the gltf in binary format.
: )
Best regards
Hi Alex, I wrote the pipeline for pbr in Nexus, now I'm writing the importer for gltf. Would you send me a sample? I'd like to see some variety in the models...
Ciao, Federico Federico
On Tue, Feb 25, 2020 at 2:55 PM Alex notifications@github.com wrote:
Hi.
Yes, I am using binary format of PLY, but ply file are still unhandable and the main problem is that the ply files cannot keep alpha channel in a proper way, at least using the THREE.PLYExporter I am using.
I will be looking forward for the gltf in binary format.
: )
Best regards
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cnr-isti-vclab/nexus/issues/75?email_source=notifications&email_token=AAUDV262OGH47MUJ7NCAFWLREUPL5A5CNFSM4K3BLO5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM4BNHQ#issuecomment-590878366, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUDV232KTAIVOMO5O6LMVTREUPL5ANCNFSM4K3BLO5A .
Hi.
Here some attached examples of GLB Draco compressed models.
Best regards.
El jue., 26 mar. 2020 a las 14:04, Federico Ponchio (< notifications@github.com>) escribió:
Hi Alex, I wrote the pipeline for pbr in Nexus, now I'm writing the importer for gltf. Would you send me a sample? I'd like to see some variety in the models...
Ciao, Federico Federico
On Tue, Feb 25, 2020 at 2:55 PM Alex notifications@github.com wrote:
Hi.
Yes, I am using binary format of PLY, but ply file are still unhandable and the main problem is that the ply files cannot keep alpha channel in a proper way, at least using the THREE.PLYExporter I am using.
I will be looking forward for the gltf in binary format.
: )
Best regards
— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/cnr-isti-vclab/nexus/issues/75?email_source=notifications&email_token=AAUDV262OGH47MUJ7NCAFWLREUPL5A5CNFSM4K3BLO5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM4BNHQ#issuecomment-590878366 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAUDV232KTAIVOMO5O6LMVTREUPL5ANCNFSM4K3BLO5A
.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cnr-isti-vclab/nexus/issues/75#issuecomment-604419014, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHEIQ4ISSGUEA2DA763CP2LRJNHGPANCNFSM4K3BLO5A .
Hi, I am afraid you forgot the attachment...
Hi
Very sorry for the delay.
I didn't realize that atachments were not sent.
About the option to use non-standard attributes but normal, position, color and uv, do you think it will be possible in the future?
Here some models: nexus.zip
Hi.
I hope you are fine.
Only for curiosity, do you know when GLB loader wwill be supported aprox?
Many thanks in advance.
Best regards
Couple of days, but it's in the branch version3, (which is a development one and might have some troubles) due to the very large number of changes I had to introduce to support different materials.
At the moment threejs visualization is supported (not 3dhop still). Nxsview lacks materials support (but hopefully wont crash). If you need something else just ask :)
Any testing would be appreciated!
The test models you sent me are cad generated models, not exactly what's best for nexus, but it's interesting for me to approach that problem.
On Fri, Apr 17, 2020 at 11:49 AM Alex notifications@github.com wrote:
Hi.
I hope you are fine.
Only for curiosity, do you know when GLB loader wwill be supported aprox?
Many thanks in advance.
Best regards
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cnr-isti-vclab/nexus/issues/75#issuecomment-615153732, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUDV236A5BHRZRAXQNMU3TRNAQZNANCNFSM4K3BLO5A .
CIao, in the branch version3 of the github nexus repository I think I solved most of the problems. Would you be so kind to test it?
Ciao,
Federico
On Fri, Apr 17, 2020 at 2:12 PM Federico Ponchio ponchio@gmail.com wrote:
Couple of days, but it's in the branch version3, (which is a development one and might have some troubles) due to the very large number of changes I had to introduce to support different materials.
At the moment threejs visualization is supported (not 3dhop still). Nxsview lacks materials support (but hopefully wont crash). If you need something else just ask :)
Any testing would be appreciated!
The test models you sent me are cad generated models, not exactly what's best for nexus, but it's interesting for me to approach that problem.
On Fri, Apr 17, 2020 at 11:49 AM Alex notifications@github.com wrote:
Hi.
I hope you are fine.
Only for curiosity, do you know when GLB loader wwill be supported aprox?
Many thanks in advance.
Best regards
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cnr-isti-vclab/nexus/issues/75#issuecomment-615153732, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUDV236A5BHRZRAXQNMU3TRNAQZNANCNFSM4K3BLO5A .
Hi Federico.
I tried to compile the branch, but I am not familiar with the tools required to compile from my Windows PC.
When I tried to compile it with cmake it complained about cl missing in my system, I tried to make it work with gcc and with visual Studio, but I am fully lost.
If you were so kind to generate the new binary for windows, I will be able to test it immediately.
Many many thanks for your support and for your time. I am fully aware that you are really busy.
Best regards
El jue., 23 abr. 2020 a las 22:48, Federico Ponchio (< notifications@github.com>) escribió:
CIao, in the branch version3 of the github nexus repository I think I solved most of the problems. Would you be so kind to test it?
Ciao,
Federico
On Fri, Apr 17, 2020 at 2:12 PM Federico Ponchio ponchio@gmail.com wrote:
Couple of days, but it's in the branch version3, (which is a development one and might have some troubles) due to the very large number of changes I had to introduce to support different materials.
At the moment threejs visualization is supported (not 3dhop still). Nxsview lacks materials support (but hopefully wont crash). If you need something else just ask :)
Any testing would be appreciated!
The test models you sent me are cad generated models, not exactly what's best for nexus, but it's interesting for me to approach that problem.
On Fri, Apr 17, 2020 at 11:49 AM Alex notifications@github.com wrote:
Hi.
I hope you are fine.
Only for curiosity, do you know when GLB loader wwill be supported aprox?
Many thanks in advance.
Best regards
— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/cnr-isti-vclab/nexus/issues/75#issuecomment-615153732>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAUDV236A5BHRZRAXQNMU3TRNAQZNANCNFSM4K3BLO5A
.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cnr-isti-vclab/nexus/issues/75#issuecomment-618661056, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHEIQ4IR4V4EMXAA6DX26ZTROCSS3ANCNFSM4K3BLO5A .
You can download the windows build for nxsbuild here:
lhttp://pc-ponchio.isti.cnr.it/nexus/nxsbuild.zip
It's all quite prototypal and preliminary, but some testing on your part would be very appreciated. Remeber to try the last version of nexus.js, nexus_three.js and the nxsloader.html viewer.
Ciao, Federico
On Fri, Apr 24, 2020 at 10:08 AM Alex notifications@github.com wrote:
Hi Federico.
I tried to compile the branch, but I am not familiar with the tools required to compile from my Windows PC.
When I tried to compile it with cmake it complained about cl missing in my system, I tried to make it work with gcc and with visual Studio, but I am fully lost.
If you were so kind to generate the new binary for windows, I will be able to test it immediately.
Many many thanks for your support and for your time. I am fully aware that you are really busy.
Best regards
El jue., 23 abr. 2020 a las 22:48, Federico Ponchio (< notifications@github.com>) escribió:
CIao, in the branch version3 of the github nexus repository I think I solved most of the problems. Would you be so kind to test it?
Ciao,
Federico
On Fri, Apr 17, 2020 at 2:12 PM Federico Ponchio ponchio@gmail.com wrote:
Couple of days, but it's in the branch version3, (which is a development one and might have some troubles) due to the very large number of changes I had to introduce to support different materials.
At the moment threejs visualization is supported (not 3dhop still). Nxsview lacks materials support (but hopefully wont crash). If you need something else just ask :)
Any testing would be appreciated!
The test models you sent me are cad generated models, not exactly what's best for nexus, but it's interesting for me to approach that problem.
On Fri, Apr 17, 2020 at 11:49 AM Alex notifications@github.com wrote:
Hi.
I hope you are fine.
Only for curiosity, do you know when GLB loader wwill be supported aprox?
Many thanks in advance.
Best regards
— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/cnr-isti-vclab/nexus/issues/75#issuecomment-615153732 , or unsubscribe <
https://github.com/notifications/unsubscribe-auth/AAUDV236A5BHRZRAXQNMU3TRNAQZNANCNFSM4K3BLO5A
.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/cnr-isti-vclab/nexus/issues/75#issuecomment-618661056>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AHEIQ4IR4V4EMXAA6DX26ZTROCSS3ANCNFSM4K3BLO5A
.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cnr-isti-vclab/nexus/issues/75#issuecomment-618869120, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUDV24L4UDV2HT7QPXN723ROFCHBANCNFSM4K3BLO5A .
Hi Federico.
Many many thanks.
I will test this version and give to you in short.
Best regards
El sáb., 25 abr. 2020 a las 0:45, Federico Ponchio (< notifications@github.com>) escribió:
You can download the windows build for nxsbuild here:
lhttp://pc-ponchio.isti.cnr.it/nexus/nxsbuild.zip
It's all quite prototypal and preliminary, but some testing on your part would be very appreciated. Remeber to try the last version of nexus.js, nexus_three.js and the nxsloader.html viewer.
Ciao, Federico
On Fri, Apr 24, 2020 at 10:08 AM Alex notifications@github.com wrote:
Hi Federico.
I tried to compile the branch, but I am not familiar with the tools required to compile from my Windows PC.
When I tried to compile it with cmake it complained about cl missing in my system, I tried to make it work with gcc and with visual Studio, but I am fully lost.
If you were so kind to generate the new binary for windows, I will be able to test it immediately.
Many many thanks for your support and for your time. I am fully aware that you are really busy.
Best regards
El jue., 23 abr. 2020 a las 22:48, Federico Ponchio (< notifications@github.com>) escribió:
CIao, in the branch version3 of the github nexus repository I think I solved most of the problems. Would you be so kind to test it?
Ciao,
Federico
On Fri, Apr 17, 2020 at 2:12 PM Federico Ponchio ponchio@gmail.com wrote:
Couple of days, but it's in the branch version3, (which is a development one and might have some troubles) due to the very large number of changes I had to introduce to support different materials.
At the moment threejs visualization is supported (not 3dhop still). Nxsview lacks materials support (but hopefully wont crash). If you need something else just ask :)
Any testing would be appreciated!
The test models you sent me are cad generated models, not exactly what's best for nexus, but it's interesting for me to approach that problem.
On Fri, Apr 17, 2020 at 11:49 AM Alex notifications@github.com wrote:
Hi.
I hope you are fine.
Only for curiosity, do you know when GLB loader wwill be supported aprox?
Many thanks in advance.
Best regards
— You are receiving this because you commented. Reply to this email directly, view it on GitHub <
https://github.com/cnr-isti-vclab/nexus/issues/75#issuecomment-615153732 ,
or unsubscribe <
https://github.com/notifications/unsubscribe-auth/AAUDV236A5BHRZRAXQNMU3TRNAQZNANCNFSM4K3BLO5A
.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/cnr-isti-vclab/nexus/issues/75#issuecomment-618661056 , or unsubscribe <
https://github.com/notifications/unsubscribe-auth/AHEIQ4IR4V4EMXAA6DX26ZTROCSS3ANCNFSM4K3BLO5A
.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/cnr-isti-vclab/nexus/issues/75#issuecomment-618869120>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAUDV24L4UDV2HT7QPXN723ROFCHBANCNFSM4K3BLO5A
.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cnr-isti-vclab/nexus/issues/75#issuecomment-619269289, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHEIQ4O6HAFNSXTDD6ULBSTROIJB7ANCNFSM4K3BLO5A .
Hi Federico.
I have tried to use the new version of nxsbuild.exe with multiple glbs but no nxs is generated.
Let me show the output of the command: C:\users\ua4192\Downloads\Nexus_4.2.2>nxsbuild.exe test.glb -o test.nxs Reading test.glb TODO: If the -u is specified for gltf, adjust material
Best regards
El sáb., 25 abr. 2020 a las 14:18, Alejandro Insúa (< alejandro.insua@gmail.com>) escribió:
Hi Federico.
Many many thanks.
I will test this version and give to you in short.
Best regards
El sáb., 25 abr. 2020 a las 0:45, Federico Ponchio (< notifications@github.com>) escribió:
You can download the windows build for nxsbuild here:
lhttp://pc-ponchio.isti.cnr.it/nexus/nxsbuild.zip
It's all quite prototypal and preliminary, but some testing on your part would be very appreciated. Remeber to try the last version of nexus.js, nexus_three.js and the nxsloader.html viewer.
Ciao, Federico
On Fri, Apr 24, 2020 at 10:08 AM Alex notifications@github.com wrote:
Hi Federico.
I tried to compile the branch, but I am not familiar with the tools required to compile from my Windows PC.
When I tried to compile it with cmake it complained about cl missing in my system, I tried to make it work with gcc and with visual Studio, but I am fully lost.
If you were so kind to generate the new binary for windows, I will be able to test it immediately.
Many many thanks for your support and for your time. I am fully aware that you are really busy.
Best regards
El jue., 23 abr. 2020 a las 22:48, Federico Ponchio (< notifications@github.com>) escribió:
CIao, in the branch version3 of the github nexus repository I think I solved most of the problems. Would you be so kind to test it?
Ciao,
Federico
On Fri, Apr 17, 2020 at 2:12 PM Federico Ponchio ponchio@gmail.com wrote:
Couple of days, but it's in the branch version3, (which is a development one and might have some troubles) due to the very large number of changes I had to introduce to support different materials.
At the moment threejs visualization is supported (not 3dhop still). Nxsview lacks materials support (but hopefully wont crash). If you need something else just ask :)
Any testing would be appreciated!
The test models you sent me are cad generated models, not exactly what's best for nexus, but it's interesting for me to approach that problem.
On Fri, Apr 17, 2020 at 11:49 AM Alex notifications@github.com wrote:
Hi.
I hope you are fine.
Only for curiosity, do you know when GLB loader wwill be supported aprox?
Many thanks in advance.
Best regards
— You are receiving this because you commented. Reply to this email directly, view it on GitHub <
https://github.com/cnr-isti-vclab/nexus/issues/75#issuecomment-615153732 ,
or unsubscribe <
https://github.com/notifications/unsubscribe-auth/AAUDV236A5BHRZRAXQNMU3TRNAQZNANCNFSM4K3BLO5A
.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <
https://github.com/cnr-isti-vclab/nexus/issues/75#issuecomment-618661056 ,
or unsubscribe <
https://github.com/notifications/unsubscribe-auth/AHEIQ4IR4V4EMXAA6DX26ZTROCSS3ANCNFSM4K3BLO5A
.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/cnr-isti-vclab/nexus/issues/75#issuecomment-618869120 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAUDV24L4UDV2HT7QPXN723ROFCHBANCNFSM4K3BLO5A
.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cnr-isti-vclab/nexus/issues/75#issuecomment-619269289, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHEIQ4O6HAFNSXTDD6ULBSTROIJB7ANCNFSM4K3BLO5A .
Hi Federico.
First at all many thanks for your support.
Yerday I was trying to convert some glb draco compressed files and even I could convert them to nxs format with nxsedit.exe command, I was not able to compress them to nxz with nxsedit.exe command
The command prompted me a typical windows crash without any detail.
I was neither able to view these nxs files with your viewer (nxsview.exe), same crasj than nxsedit.exe
Best regards.
Hi, well you need the version3 of nxsedit too :)
Again here: lhttp://pc-ponchio.isti.cnr.it/nexus/nxsbuild.zip
On Thu, May 14, 2020 at 12:21 PM Alex notifications@github.com wrote:
Hi Federico.
First at all many thanks for your support.
Yerday I was trying to convert some glb draco compressed files and even I could convert them to nxs format with nxsedit.exe command, I was not able to compress them to nxz with nxsedit.exe command
The command prompted me a typical windows crash without any detail.
Best regards.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cnr-isti-vclab/nexus/issues/75#issuecomment-628540308, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUDV23TX2OPR5ZHISFR7DDRRPAYXANCNFSM4K3BLO5A .
Hi Federico.
The convertors nxsedit and nxsbuild seems to work properly, no errors at all at least in the examples I tested when converting a draco compressed glb to nxs and finally to nxz.
My problem now is in visualizing the models with the javascript libraries.
I have try as you mentioned to use the branch 3 and here the error when I try to render one of my convertions:
nexus_three.js:25 Uncaught SyntaxError: Cannot use import statement outside a module
threejs.html:81 Uncaught ReferenceError: NexusObject is not defined
at threejs.html:81
In fact this error happens also with the example provided by you "cargo.nxz"
I also tried to use the last version of nexus-master in branches updated by you 2 days ago, and then I have realized that this version works with cargo.nxz example provided by you but not with the nxz files generated by the new convertors. Here the error:
Uncaught RangeError: Array buffer allocation failed
at new ArrayBuffer (<anonymous>)
at new Uint32Array (<anonymous>)
at Mesh.handleIndex (nexus.js:378)
at XMLHttpRequest.<anonymous> (nexus.js:365)
at XMLHttpRequest.r.onload (nexus.js:347)
I am sure I am missing something, but no idea what.
Best regards
In order to be sure that nxz files are ok, could you also provide me the version3 of nxsview.exe?
I'm having some problem in nxsview in windows.
I was playing with modules in javascript and didn't clean up (that's the import statement problem). You can find a clean example here:
http://pc-ponchio.isti.cnr.it/nexus/version3.zip
On Sun, May 17, 2020 at 12:50 PM Alex notifications@github.com wrote:
In order to be sure that nxz files are ok, could you also provide me the version3 of nxsview.exe?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cnr-isti-vclab/nexus/issues/75#issuecomment-629777842, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUDV22NIZISRGQJCHTWQ7DRR66NXANCNFSM4K3BLO5A .
Hi Federico
Many many thanks.
At least with the 4 models I tested it works
: )
Only one question, in which version of three.js is based, in the latest one?
I will keep you informed.
And again many thanks for the great support.
Should be the last one, yes.
On Mon, May 18, 2020 at 7:23 PM Alex notifications@github.com wrote:
Hi Federico
Many many thanks.
At least with the 4 models I tested it works
: )
Only one question, in which version of three.js is based, in the latest one?
I will keep you informed.
And again many thanks for the great support.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cnr-isti-vclab/nexus/issues/75#issuecomment-630325434, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUDV23LWVV4P7OSKO5S36LRSFVIBANCNFSM4K3BLO5A .
Hi Federico.
I am having problems sometimes with some glb to be converted to nxz.
Let me attach the commands I use and its output:
C:\Users\acr005\Documents\Viewer3d\nginx-1.10.3\html\nexus-master\Nexus_4.2.2>nxsbuild.exe scene.glb -o scene.nxs -C
Reading scene.glb
TODO: If the -u is specified for gltf, adjust material
Components: mesh colors
Normals enabled
Colors enabled
Creating level 0
C:\Users\acr005\Documents\Viewer3d\nginx-1.10.3\html\nexus-master\Nexus_4.2.2>nxsedit scene.nxs -o scene.nxz -z
Unknown error
Fatal error: could not read header, file too short
Many many thanks in advanced.
Best regards.
I have fixed a few things and now it seems it work (except nxsview I still have some problem with some missing library from windows)
You can download the last version: http:// pc-ponchio.isti.cnr.it/nexus/nxsbuild.zip
Let me know...
On Wed, May 27, 2020 at 11:32 AM Alex notifications@github.com wrote:
Hi Federico.
I am having problems sometimes with some glb to be converted to nxz.
Let me attach the commands I use and its output:
C:\Users\acr005\Documents\Viewer3d\nginx-1.10.3\html\nexus-master\Nexus_4.2.2>nxsbuild.exe M577E110500000.glb -o M577E110500000.nxs -C Reading M577E110500000.glb TODO: If the -u is specified for gltf, adjust material Components: mesh colors Normals enabled Colors enabled Creating level 0
C:\Users\acr005\Documents\Viewer3d\nginx-1.10.3\html\nexus-master\Nexus_4.2.2>nxsedit scene.nxs -o scene.nxz -z Unknown error Fatal error: could not read header, file too short
Many many thanks in advanced.
scene.zip https://github.com/cnr-isti-vclab/nexus/files/4687820/scene.zip
Best regards.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cnr-isti-vclab/nexus/issues/75#issuecomment-634544782, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUDV23R3F5IDRMBKPSTVVLRTTM3HANCNFSM4K3BLO5A .
Many many thanks.
You are the best.
:)
I will keep you informed.
Best regards
Hi Federico.
I have been testing the latest version you told me and it works nice.
The problem is I don't know why sometimes it fails to convert some glb to nxs.
Here one example of failure:
C:\> nxsbuild.exe 1.glb -o 1.nxs -N -C
TODO: If the -u is specified for gltf, adjust material
null
Components: mesh colors
Normals enabled
Colors enabled
Creating level 0
Unifying normals
Unknown error
Fatal error: could not read header, file too short
I attach some files in order you can investigate. The glbs are ok, I can visualize them without problems in THREEJS. I am using GLTFExporter with Draco Compression in a customized nodejs script in order to generate them.
Many thanks in advanced for your support. glb_failed.zip
Hi again Federico.
Sorry for bothering you again, but I have observed that sometimes when the glb file is big, I get this error message:
Fatal error: virtual memory error mapping block: Access is denied.
Is there is solution to workaround this issue?
I cann not attach any file because the glbs are arround 500MB
Best regards
The reason for the crash with the glb you sent me is that the color accessor has 1.5M colors while there are 0.5M positions and normals. I made a small fix that ignores the extra colors and it works.
About the other error with large glb, it might be a 32/64 bit problem, could you send me a sample so I can check?
On Fri, Jul 3, 2020 at 8:16 AM Alex notifications@github.com wrote:
Hi again Federico.
Sorry for bothering you again, but I have observed that sometimes when the glb file is big, I get this error message:
Fatal error: virtual memory error mapping block: Access is denied.
Is there is solution to workaround this issue?
I cann not attach any file because the glbs are arround 500MB
Best regards
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cnr-isti-vclab/nexus/issues/75#issuecomment-653372669, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUDV25ZSOB7PWG6N6KMDFLRZVZVLANCNFSM4K3BLO5A .
Hi.
I will check the problem of colors.
About the big mesh, I will ask for permission.
Many thanks for the support
Dear Federico,
thank you for working on gltf support.
I have some problems when trying to compile nxsbuild ("version3" branch). I installed draco library in the nexus' parent directory (like I did with corto). Then, I followed the instructions given in https://github.com/google/draco/blob/master/BUILDING.md. Although CMakeLists.txt contains include_directories(../draco/include)
the file draco/compression/decode.h
cannot be found. I already tried to adjust the path to my draco installation without success. Did I forget something?
Best, Christoph
Hi Christoph, the location for draco/include directory should be in the build folder where you installed draco.
Draco makes no mention in the BUILDING.md on how to install the lib.
In my case I ran the Draco compilation as such:
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=./ ..
make
make install
and I will find decode.h in <draco folder>/build/include/draco/compression
I don't remember exactly why my paths are reversed, most probably because I use qtcreator mostly.
Sorry,
Federico
Hi.
I have been working with ply format in order to generate nxz files.
The problem of ply format is the big size of the files and also the lack of support of alpha channel. I am using nodejs process and THREEJS libraries in order to generate the ply files.
Would it be possible to add the GLTF (GLB with Draco Compression would be great) to the formats supported by nxsbuild.
Many thanks in advanced.