![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
![]() |
#1 |
The Old Man
![]() Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 28
Uploads: 3
|
![]()
You do not need to filter the vertex/uv/normal list yourself, just drop it in the first section of the file like you already have, and then you can break up the file in subobjects with an g-token... Then you can use the same vertex/uv/normal list, still all in one big file. This is equaly valid as putting shorter lists of vertex/uv/normals before each face list (although the latter would be a little better to read visually).
v x,y,z .. .. vn x,y,z .. .. vt u,v(,w) .. .. g object1 (usemtl) f vi/vti/vni etc... .. .. g object2 (usemtl) f vi/vti/vni etc... .. ..
__________________
![]() SH5 mods: Speech Recognition for SH5 | Digital UI Clock Tutorials: [TEC] Import/export 3D models to/from game using S3D [TEC] How to work with the model viewer in S3D - VIDEO Last edited by skwasjer; 08-16-10 at 06:26 AM. |
![]() |
![]() |
![]() |
#2 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]()
I understand the 'g object' command.
What I have not found is a way to break the list down in the GR2 files. They are packed as one long list. (That's why the loop) I've not found a pointer as to where to break this list. ![]() |
![]() |
![]() |
#3 |
The Old Man
![]() Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 28
Uploads: 3
|
![]()
You don't have to is what I am saying. You just write them all out only once at the top of the file, and then loop all subobjects and write them out. That should do, afaik. Did you already try this, and/or does this give specific problems?
__________________
![]() SH5 mods: Speech Recognition for SH5 | Digital UI Clock Tutorials: [TEC] Import/export 3D models to/from game using S3D [TEC] How to work with the model viewer in S3D - VIDEO |
![]() |
![]() |
![]() |
#4 |
The Old Man
![]() Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 28
Uploads: 3
|
![]()
Or do you mean there are no subobjects in that one big mesh? In that case you could do a split on material (I think Anvart suggested this too). This is also what I did in my example above.
__________________
![]() SH5 mods: Speech Recognition for SH5 | Digital UI Clock Tutorials: [TEC] Import/export 3D models to/from game using S3D [TEC] How to work with the model viewer in S3D - VIDEO |
![]() |
![]() |
![]() |
#5 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]()
I can split the Tri-Groups as there are pointers as to where to break them.
The materials are then linked to those. But I've found no link to the Verts, Normals, Textures listing. It's one long chain. So no sub objects. If it's in the Extended Data? I have not spotted it yet. I've also not extracted any data from the extended section yet. It's not placed in the GR2 like everything else. ![]() Now I have to go to my real job. ![]() That gives me all day to ponder on things. ![]() |
![]() |
![]() |
#6 |
Admiral
![]() Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
|
![]()
Excellently, guys
It's pleasure to see/read your replies. ![]()
__________________
Alex ® ![]() Moses said: "Don't create yourself an idol"... |
![]() |
![]() |
![]() |
Tags |
edit the gr2 |
|
|