SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 05-20-12, 06:05 PM   #1261
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Working with BIGREG has shown that even Wings3D can shuffle around subset ordering. Thus I needed to code in a way to force subset ordering:



When importing and 'Force subset ordering' is checked the app will (try) and keep the subsets in numerical order as they are read from the OBJ file(s). I'll get to why I say (try) here in a few.

When the app exports mesh data to OBJ files it adds "_subsetx" to the end of every 'g' entry in the OBJ file. 'g' entries signify mesh subsets in the OBJ files. As I've seen from BIGREG's files Wings3D can scramble up the order of the subsets - no longer are they in _subset0 to _subsetx numerical order. Thus is 'Force subset ordering' is checked then the app will rearrange the subsets so that they are in numerical order as they are read from the OBJ file.

If some 'g' entries have "_subsetx" entries and some do not then the app will place all the "_subsetx" entries at the front (numerically lower) and then will place all the non "_subsetx" entries after those as they are found.
TheDarkWraith is offline   Reply With Quote
Old 05-20-12, 07:55 PM   #1262
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

Well, I can not sleep , so I just tried, one word amazing
everything works perfectly

TDW you're a genius I do not know how you thanked
__________________
~~~~BigReg~BigRegOne~~~~



"Better watch where you do not go, because where were going, we will know what it is when we get there, and anyway, it will never be only water."

Proverbe Shadok
BIGREG is offline   Reply With Quote
Old 05-20-12, 08:06 PM   #1263
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
Well, I can not sleep , so I just tried, one word amazing
everything works perfectly

TDW you're a genius I do not know how you thanked
Glad it's working for you

I don't think people understand what kind of power the app has given them with the use of my second importer They now have the ability to import any geometry into an existing mesh - the geometry could have thousands more verticies or could have only a few more, could have many less or just a few less - it doesn't matter as the second importer works with the file's Sentinel to allocate/deallocate space in the GR2 file as needed

@BIGREG - you're going to like what I've been working on under the radar here for some time. It's something you asked for a long time ago but couldn't be done until I worked out some things in the app Hopefully the first test of it will come tomorrow for me

I've been looking closely at the files 3DS Max created (OBJs) and think I might try writing something that can take all these individual objects it defines and create one object with subsets out of it. I started writing something for it already.

Now the next big thing that I'll be working on for the app is creating new meshes. All the required functions are already coded - it's just a 'simple' matter of putting everything together, creating all the new pointers, allocating many 'spaces' in the GR2 file, and telling the file's Sentinel to create a new mesh

Last edited by TheDarkWraith; 05-20-12 at 08:16 PM.
TheDarkWraith is offline   Reply With Quote
Old 05-20-12, 08:06 PM   #1264
CaliEs
Loader
 
Join Date: Oct 2011
Posts: 89
Downloads: 27
Uploads: 0
Default

Quote:
Originally Posted by BIGREG View Post
Well, I can not sleep , so I just tried, one word amazing
everything works perfectly

TDW you're a genius I do not know how you thanked
Will there be a screenshot of your current work?
__________________
Dietrich von Carlewitz, 2nd Lt.
U-29
CaliEs is offline   Reply With Quote
Old 05-20-12, 08:12 PM   #1265
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

CaliEs

Not yet,i need to redo many things with the new editor
But tomorrow i send screenshot here
__________________
~~~~BigReg~BigRegOne~~~~



"Better watch where you do not go, because where were going, we will know what it is when we get there, and anyway, it will never be only water."

Proverbe Shadok
BIGREG is offline   Reply With Quote
Old 05-20-12, 08:20 PM   #1266
CaliEs
Loader
 
Join Date: Oct 2011
Posts: 89
Downloads: 27
Uploads: 0
Default

Quote:
Originally Posted by BIGREG View Post
CaliEs

Not yet,i need to redo many things with the new editor
But tomorrow i send screenshot here
Good.
__________________
Dietrich von Carlewitz, 2nd Lt.
U-29
CaliEs is offline   Reply With Quote
Old 05-20-12, 08:31 PM   #1267
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

QUOTE= Glad it's working for you

I don't think people understand what kind of power the app has given them with the use of my second importer They now have the ability to import any geometry into an existing mesh - the geometry could have thousands more verticies or could have only a few more, could have many less or just a few less - it doesn't matter as the second importer works with the file's Sentinel to allocate/deallocate space in the GR2 file as needed Yes

@BIGREG - you're going to like what I've been working on under the radar here for some time. It's something you asked for a long time ago but couldn't be done until I worked out some things in the app Hopefully the first test of it will come tomorrow for me Yes of course

I've been looking closely at the files 3DS Max created (OBJs) and think I might try writing something that can take all these individual objects it defines and create one object with subsets out of it. I started writing something for it already. it would be practical

Now the next big thing that I'll be working on for the app is creating new meshes. All the required functions are already coded - it's just a 'simple' matter of putting everything together, creating all the new pointers, allocating many 'spaces' in the GR2 file, and telling the file's Sentinel to create a new mesh

Yes ,if we can add meshes ,i can redo the missing knob and needle in sub and more
But i don't know is possible to attache a mesh to a bone
__________________
~~~~BigReg~BigRegOne~~~~



"Better watch where you do not go, because where were going, we will know what it is when we get there, and anyway, it will never be only water."

Proverbe Shadok
BIGREG is offline   Reply With Quote
Old 05-20-12, 08:35 PM   #1268
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
Yes ,if we can add meshes ,i can redo the missing knob and needle in sub and more
But i don't know is possible to attache a mesh to a bone
Attach a mesh to a bone...not following you You have the ability to bind a mesh to a bone in the mesh treeview under the bone bindings entry. Is that what you're talking about?

It will take some time to code in the adding of new meshes. There's so many pointers and 'spaces' that have to be created in the GR2 file for this. I take it one step at a time. Create space for x...save GR2 file...open with Granny Viewer to ensure I didn't break/shred GR2 file...create space y....repeat. Create pointer z...repeat...it's a long and arduous process but the only sure way to detect flaws in my code
TheDarkWraith is offline   Reply With Quote
Old 05-20-12, 08:40 PM   #1269
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

You have the ability to bind a mesh to a bone in the mesh treeview under the bone bindings entry. Is that what you're talking about?

Yes for animate the meshes via .sim
__________________
~~~~BigReg~BigRegOne~~~~



"Better watch where you do not go, because where were going, we will know what it is when we get there, and anyway, it will never be only water."

Proverbe Shadok
BIGREG is offline   Reply With Quote
Old 05-20-12, 08:54 PM   #1270
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
Yes for animate the meshes via .sim
Animate the meshes via .sim how

The ability to bind a mesh to a bone that I was talking about only applies to the app. As far as I've been able to tell specifying the bone binding for the mesh in the GR2 file does nothing. I'd love for someone to show me that this is incorrect so I can see how/what/why it's done and it's purpose

I believe the app let's you specify the bone binding for the mesh (for the GR2 file). Hell I can't remember - I'll have to look at the code in VS and see if I included that or not.
TheDarkWraith is offline   Reply With Quote
Old 05-21-12, 12:28 AM   #1271
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


@BIGREG: anything look different in the below (besides AO turned off)

'

I imported your 3DS Max OBJ TDC into Room_CT's TDC You didn't send me the 3DS Max TDC AO OBJ files so I couldn't import them and thus had to turn self-illumination rendering off.

Yep, I wrote the converter that takes 3DS Max OBJ files and converts them to 'standard' format

One 'problem' with the converter - the number of vertices! I tried to optimize it by removing duplicate vertices but that caused rendering problems (due to in the face definitions the vertex was given multiple texture coordinates and only the last one was used). If I didn't optimize it then it rendered correctly. The TDC has 11673 vertices now using the 3DS Max files Maybe having 3DS Max optimize the mesh before exporting to OBJ file will be best

I'll send you v1.1.181.1 for testing. I found some small bugs in the last version I sent you
TheDarkWraith is offline   Reply With Quote
Old 05-21-12, 02:52 AM   #1272
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

Bonjour

Quote : You didn't send me the 3DS Max TDC AO OBJ files

Yes ,but the subsim database have a problem,i can not acces my PM



Maybe having 3DS Max optimize the mesh before exporting to OBJ file will be best

Yes, it would be great

I'll send you v1.1.181.1 for testing. I found some small bugs in the last version I sent you

Heck, I can not access my PM
__________________
~~~~BigReg~BigRegOne~~~~



"Better watch where you do not go, because where were going, we will know what it is when we get there, and anyway, it will never be only water."

Proverbe Shadok
BIGREG is offline   Reply With Quote
Old 05-22-12, 04:45 AM   #1273
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

Hi

@ CaliEs : sorry no screenshots
yet ,i working to redo the texture coordinate for the Periscop base
( But ,Anyway, I can say to the guy who did the graphics, he found his diploma in a lucky dip ! ) and i am not a expert !

@ TDW : for the moment all work fine

Edit : For working use the 3DWings version from ManifoldLab : http://s331378245.onlinehome.us/manifoldlab_releases/
with the original, there are problems (Hide option does not work properly, can not open large meshes ...)
__________________
~~~~BigReg~BigRegOne~~~~



"Better watch where you do not go, because where were going, we will know what it is when we get there, and anyway, it will never be only water."

Proverbe Shadok

Last edited by BIGREG; 05-22-12 at 04:59 AM.
BIGREG is offline   Reply With Quote
Old 05-22-12, 07:31 AM   #1274
tonschk
Sea Lord
 
Join Date: Mar 2007
Posts: 1,897
Downloads: 172
Uploads: 0
Default

Thank you a lot BIGREG Thank you very much

Quote:
Originally Posted by BIGREG View Post
Hi

yet ,i working to redo the texture coordinate for the Periscop base
( But ,Anyway, I can say to the guy who did the graphics, he found his diploma in a lucky dip ! ) and i am not a expert !

@ TDW : for the moment all work fine
__________________
What we do in life echoes in Eternity
tonschk is offline   Reply With Quote
Old 05-23-12, 06:46 PM   #1275
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

Hi

Just a little screenshot (sorry in french)

Before :



After :

__________________
~~~~BigReg~BigRegOne~~~~



"Better watch where you do not go, because where were going, we will know what it is when we get there, and anyway, it will never be only water."

Proverbe Shadok
BIGREG is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:56 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.