Hi, can someone help me identify this 3d format. Its ascii from a webgl.
Thanks
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
help webgl 3d format identify
help webgl 3d format identify
You do not have the required permissions to view the files attached to this post.
-
- M-M-M-Monster veteran
- Posts: 2382
- Joined: Sat Apr 09, 2011 1:22 am
- Has thanked: 170 times
- Been thanked: 307 times
Re: help webgl 3d format identify
I don't understand what you need to identify. It's ASCII. You just read it off.
Since you know it's webgl you just need to get a copy of webgl and pass in the data.
Since you know it's webgl you just need to get a copy of webgl and pass in the data.
- TaylorMouse
- ultra-veteran
- Posts: 348
- Joined: Mon Sep 26, 2011 12:51 pm
- Has thanked: 11 times
- Been thanked: 89 times
Re: help webgl 3d format identify
Yeah this is actually the easiest one ever
mqo based data
if you open it in notepad++ and put some carrage returns in it you get this:
I removed most of the data just to pin point the relevant data
T.
mqo based data
if you open it in notepad++ and put some carrage returns in it you get this:
Code: Select all
var m = {
"colors":[],
"edges":[],
"faces":[[43,21,5,41,...,3051,2677,2677]],
"materials":
[
{
...
"mapDiffuse":"\u5e8a.bmp.jpg",
...
}
]
"normals":[[0.6124,-0.2346,-0.7548,...,0.7993]],
"scale":100.0,
"uvs":[[[0.0,0.0,0.8333,0.4285,...,0.7751,0.4182,0.8073]]],
"version":2,
"vertices":[[1.5155,88.8848,...,-0.0377,85.8348]]};
T.
- TaylorMouse
- ultra-veteran
- Posts: 348
- Joined: Mon Sep 26, 2011 12:51 pm
- Has thanked: 11 times
- Been thanked: 89 times
Re: help webgl 3d format identify
I was wondering and interested in what kind of a model this was....
but then I took a look at the faces list...
and after a few entries I got a question
43,21,5, 41,57,2, 0,0,0, 0,0,1, 1,0
how can you have a face ( triangle) that is indexed 0,0,0 ???
also, the number of faces in the list is not a multiple if 3 ...
T.
but then I took a look at the faces list...
and after a few entries I got a question
43,21,5, 41,57,2, 0,0,0, 0,0,1, 1,0
how can you have a face ( triangle) that is indexed 0,0,0 ???
also, the number of faces in the list is not a multiple if 3 ...
T.
-
- M-M-M-Monster veteran
- Posts: 2382
- Joined: Sat Apr 09, 2011 1:22 am
- Has thanked: 170 times
- Been thanked: 307 times
Re: help webgl 3d format identify
The faces are not just vertex indices. If you were to say it is mqo-based, the face stores UV indexes and material index as well. And other info. It would be easiest to just download the parser FROM the website where he got the model from and then just copy the methods.
Here's what we got before without bothering to look at source code.
viewtopic.php?p=70351#p70351
Though, at this point, I think if people REALLY want the models, they might as well just grab the source code and send the output to an OBJ exporter or something.
However the script is minimized so figuring out what's going on might be a little tricky.
Oh, it also supports animation. webgl is quite amazing.
It's kind of interesting how fast javascript could load that thing. I tried parsing it in python and it just took forever. Or maybe cause I was converting everything to bytes...
Here's what we got before without bothering to look at source code.
viewtopic.php?p=70351#p70351
Though, at this point, I think if people REALLY want the models, they might as well just grab the source code and send the output to an OBJ exporter or something.
However the script is minimized so figuring out what's going on might be a little tricky.
Oh, it also supports animation. webgl is quite amazing.
It's kind of interesting how fast javascript could load that thing. I tried parsing it in python and it just took forever. Or maybe cause I was converting everything to bytes...
- TaylorMouse
- ultra-veteran
- Posts: 348
- Joined: Mon Sep 26, 2011 12:51 pm
- Has thanked: 11 times
- Been thanked: 89 times
Re: help webgl 3d format identify
Thank you for the help. This is the script that loads the model.
Anyone know how i can execute it and convert the model from js to mqo?
Anyone know how i can execute it and convert the model from js to mqo?
You do not have the required permissions to view the files attached to this post.
-
- M-M-M-Monster veteran
- Posts: 2382
- Joined: Sat Apr 09, 2011 1:22 am
- Has thanked: 170 times
- Been thanked: 307 times
Re: help webgl 3d format identify
Programming?Anyone know how i can execute it and convert the model from js to mqo?