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 12-03-13, 06:59 PM   #1
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Do one filter on this mesh!!
Select filters, go down to texture, select Perwedge to pervertex UV.
  Reply With Quote
Old 12-03-13, 07:20 PM   #2
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by privateer View Post
Do one filter on this mesh!!
Select filters, go down to texture, select Perwedge to pervertex UV.
Quote:
Originally Posted by privateer View Post
Once you 'filter' do a 'save as' and select wavefront obj.
Your export options need to look like this.
Notice 'color' selected for face?
Is that all we need to do in meshlab before using your sorter?

I need to make some cleaning on my HD: I only have 54.4 GB of free space, and meshlab require 54.3
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 12-03-13, 07:25 PM   #3
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by gap View Post
Is that all we need to do in meshlab before using your sorter?
That's all. The only function we need is that filter.
At one time I was working on the source for Meshlab to have it export proper objs but you would not believe the hoops you need to jump through to get all the needed libraries to build!

Then to use just some source the licenses became more then I was willing to mess with. Easier to write my own sorter.
  Reply With Quote
Old 12-03-13, 07:38 PM   #4
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by privateer View Post
That's all. The only function we need is that filter.
At one time I was working on the source for Meshlab to have it export proper objs but you would not believe the hoops you need to jump through to get all the needed libraries to build!

Then to use just some source the licenses became more then I was willing to mess with. Easier to write my own sorter.
Okay, tomorrow I will free up some space on my hard drive (I guess I have too many SH files in my downloads folder), and I will make sure to follow your instructions step by step.

At this stage I just have a few questions:

- are we allowed to set more than one material per object? As I have told you before, after processing the balloon model with your sorter (without the meshlab part), Wings only saw one material used for the whole model, rather than the expected two materials. Did it happen because I had skipped the meshlab pre-processing, it is just Wings3d which can't read the sorted file properly, or what else?

- have you looked into smoothing groups already? GR2 editor can't process Wings3d-generated obj files containing smoothing groups but, as I have learned today from targor, it has not problems with smoothing groups exported in 3ds max.

- should we restore the original mtl file, after exporting from meshlab?
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 12-03-13, 07:53 PM   #5
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

gap,

Bear with me as we go through this first part of working with the sorter as you have it now.

That is a version I did not want to release as I could fore see the very questions your asking.


It will fix your issues now once you understand the limitations and how to edit things.
Future versions will make all this a non-issue and will just be a 'click-done'
type thing.


If you've gotten this far? Open the obj file you just exported and search for use.
You should have 2. Those will be listed as material_0 and material_1
There should also be a new mtl file.
Now you can run the sorter on the obj file exported from Meshlab.

Last edited by Madox58; 12-03-13 at 08:09 PM.
  Reply With Quote
Old 12-03-13, 08:08 PM   #6
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by privateer View Post
gap,

Bear with me as we go through this first part of working with the sorter as you have it now.

That is a version I did not want to release as I could fore see the very questions your asking.
Take my questions as reminders of features which need for attenction. At this stage, I think I am the one who knows more about the limitations of TDW's importer, as most other modders who have messed with his tool seem to use max as their main 3d program, and TDW himself has probably designed his importer over max-generated files

Quote:
Originally Posted by privateer View Post
It will fix your issues now once you understand the limitations and how to edit things.
Future versions will make all this a non-issue and will just be a 'click-done'
type thing.


I am sorry that I can't test your full method right away, but it is 2 AM here in the old Europe, and my HD cleaning will take some time. I hope to install meshlab within the next 24 hours
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 12-03-13, 08:15 PM   #7
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Take your time Mate.


Your issues have solved several things I was unsure of and could not prove.
Now that they are known? I can program around them and help TDW improve his fantastic work with some real great info.
  Reply With Quote
Old 12-03-13, 08:36 PM   #8
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by gap View Post
Take my questions as reminders of features which need for attenction. At this stage, I think I am the one who knows more about the limitations of TDW's importer, as most other modders who have messed with his tool seem to use max as their main 3d program, and TDW himself has probably designed his importer over max-generated files
I'm thinking he did do alot with wings-3d at one time.


I still can not figure out what he is doing on import though.
I did take your files and run them through S3D into a dat, exported then imported to a GR2. That GR2 showed a weird ratio compared to going through Meshlab and my sorter.

Now I may have a better understanding of 3D file formats and how they work. I don't know for sure.
I know TDW is the better at programming once he understands things.
Me? I hack along to get things to work.

He creates ART!


As for you doing the most with importing and such?
I agree you have the most detailed information and knowledge on useing the GR2 Importer by TDW.
I would not be working with you if it was any other way.

Say the problem of messed up textures never happened? I'd never had started up a project that I lost all the source code for. I'm weird that way.

Last edited by Madox58; 12-03-13 at 09:12 PM.
  Reply With Quote
Old 12-03-13, 07:46 PM   #9
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Open the obj you exported with Notepad or whatever you use to edit text files.
You'll see this structure.

vn 5.528841 -0.572654 0.029990
vt 0.701080 0.382580
v 5.194420 2.167730 -33.668861

TDW's program will puke that up on you faster then I can type!

That's OK, We can work around it till he adjusts for that.
As I've said before. Once he adjusts his program? Mine should be depricated and no longer needed.


This is the point where we use the sorter as it is now.
It reads the file and writes a new file sorted into the order TDW expects.
It adds -sorted to the file name and is saved in the same folder as the original file for now.
  Reply With Quote
Old 12-07-13, 06:34 PM   #10
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

@ privateer

I have saved the texture in jpg format and changed model's mtl file according to your instructions, but everytime I open the model in MeshLab (v 1.3.2_64bit), I receive the following message:



The obj file itself is still the one exported from Wings 3d, of course. What do I do wrong?
__________________
_____________________
|May the Force be with you!|
...\/
gap 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:32 PM.


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