![]() |
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
|
![]() Quote:
![]() Quote:
__________________
![]() 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 04:17 AM. |
||
![]() |
![]() |
![]() |
#2 |
Admiral
![]() Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
|
![]()
Why you have supposed it?
![]() ... My EN is difficultly understood (or not is understood completely)...?
__________________
Alex ® ![]() Moses said: "Don't create yourself an idol"... Last edited by Anvart; 08-16-10 at 11:15 AM. |
![]() |
![]() |
![]() |
#3 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]()
Dropping the loop puts all objects in one mesh again.
But I'm looking at a function to make the loop optional, to break the objects up, then filter out the unused verts. The VGC library is what I'm looking at to do the filtering. I've found no good way yet to do it differently. There's no pointer I have found to break them up without the extra garbage. ![]() |
![]() |
![]() |
#4 |
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. |
![]() |
![]() |
![]() |
#5 |
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. ![]() |
![]() |
![]() |
#6 |
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 |
![]() |
![]() |
![]() |
#7 |
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 |
![]() |
![]() |
![]() |
Tags |
edit the gr2 |
Thread Tools | |
Display Modes | |
|
|