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 02-13-12, 04:01 PM   #1
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

the two buttons 1 and 2 in "show" menu does not highlight ( and not work after selecting mesh and/or subset)

For the UVW map ,yes i have not see them in 3DSMax after import .obj or .objAO

BigReg/BigRegOne



"Have to pump to live and then live to pump."

Proverbe Shadock
BIGREG is offline   Reply With Quote
Old 02-13-12, 04:15 PM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
the two buttons 1 and 2 in "show" menu does not highlight ( and not work after selecting mesh and/or subset)

For the UVW map ,yes i have not see them in 3DSMax after import .obj or .objAO
Guess I still don't understand what you're asking for in regards to UV maps

The importer is fixed Now there are two importers that I made. The first one is the one currently being used. It does not support importing of the AO data. It only imports the diffuse data. So even though you may select Import AO it never happens. I may update this first importer to do it. My second importer I made does import AO data but I have to make changes to the code so that it's compatible with my linked list data.

Looking into the other errors now
TheDarkWraith is offline   Reply With Quote
Old 02-13-12, 04:55 PM   #3
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

Ha ! It works i can export UVW (textures coordinates)
but i don,t know is that possible to add the UVW in the .obj
otherwise we can create new ones. But it must be able to import in the editor

UVW Edit (textures coordinates) in 3DSMAX



BigReg/BigRegOne



"You can never be beaten as well as by ourselves."

Proverbe Shadock
BIGREG is offline   Reply With Quote
Old 02-13-12, 04:58 PM   #4
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
Ha ! It works i can export UVW
but i don,t know is that possible to add the UVW in the .obj
otherwise we can create new ones. But it must be able to import in the editor

UVW Edit (textures coordinates) in 3DSMAX
You don't know if 3DSMAX can add the UVs to the obj file or if I can import them into the app? With the current version posted it won't import them. The version I'm fixing the errors on that I'll be releasing will
TheDarkWraith is offline   Reply With Quote
Old 02-13-12, 04:26 PM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
the two buttons 1 and 2 in "show" menu does not highlight ( and not work after selecting mesh and/or subset)

For the UVW map ,yes i have not see them in 3DSMax after import .obj or .objAO

BigReg/BigRegOne
When you double click on a mesh in the render window or select a mesh from the meshes list you are 'setting' the mesh as the active mesh. You cannot set the mesh if you have bones enabled. Go to the Bones tab and in the bones box unselect show Now you can view the texture coordinates for the mesh using the 1 and 2 buttons
TheDarkWraith is offline   Reply With Quote
Old 02-13-12, 04:56 PM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

This Room_QR1 perdea one is interesting...I'm trying to figure out how I export more texture coordinates than there are verticies
TheDarkWraith is offline   Reply With Quote
Old 02-13-12, 05:09 PM   #7
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

For the perdea , I noticed that there was an error with textures or the coordinates, during my tests on texture

edit:

This is what I can export to a. Obj:


BigReg/BigRegOne



"The truth is that there is no truth. (Including this one)."

Proverbe Shadock
BIGREG is offline   Reply With Quote
Old 02-13-12, 05:44 PM   #8
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
For the perdea , I noticed that there was an error with textures or the coordinates, during my tests on texture

edit:

This is what I can export to a. Obj:
Setting any kind of optimizing will more than likely cause issues with the first importer being used. Reason being is this (and why you are seeing the error with the perdea mesh): I read the vertex data from the GR2 file. For each mesh it gets a pointer to a vertex data class. The vertex data class contains well vertex data and some other things. That vertex data has a defined size. If you optimize the mesh in a 3D modeller program and it changes the number of verticies then you will not be able to import that back into the app with the first importer. The first importer REQUIRES the number of verticies, normals, and texture coordinates read in to be the same as the number of verticies defined by the vertex data class it has a pointer to.

Now this is why the perdea is currently throwing an error when you try to import it back in. When the mesh is being created by the app it originally has 0x180 verticies. I call this function:
mesh.OptimizeInPlace(MeshFlags.OptimizeAttributeSort | MeshFlags.OptimizeIgnoreVerts, adjac);
Which is supposed to NOT alter the verticies but, in fact, it actually is. That function call takes the verticies from 0x180 to 0x196. Clearly 0x196 doesn't equal 0x180 so the app throws an error when you try to import it back in. I'm looking for a solution to this currently.
TheDarkWraith is offline   Reply With Quote
Old 02-13-12, 06:01 PM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Ok the issue with the Room_QR1 perdea mesh is sorted. Had to add another flag to this function call:

mesh.OptimizeInPlace(MeshFlags.OptimizeAttributeSort | MeshFlags.OptimizeDoNotSplit | MeshFlags.OptimizeIgnoreVerts, adjac);

The flag OptimizeDoNotSplit cured the problem of it splitting the verticies and thus increasing the mesh's vertice count

Now to continue with the other errors posted
TheDarkWraith is offline   Reply With Quote
Old 02-13-12, 06:03 PM   #10
BIGREG
Grey Wolf
 
Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
Default

Yay! Forward to the next version.

Ha ! How exactly did to save the views of texture coordinates

BigReg/BigRegOne





"The Marin Shadok is a shadok blue, wearing a blue beret, red pompon sailor, and a cover over his left eye, apparently lost during the Battle of Lepanto, in his memorable fight against water mills.

We see quite often a bottle in his hand.

He was a former pirate quartermaster had gone wrong. Unlike his ilk who typically spend their time to introduce small boat in a bottle, he introduced the bottles in his small boat. He spoke by maxims (and sometimes even in English). It was he who said, for example: In the Navy we do not do much but we do it early. And indeed, he left at the crack of dawn, supposedly to go or was the wind. But the evening when he returned, he had completely forgotten, and he said he was under the influence .... in reality he was simply drunk."
BIGREG is offline   Reply With Quote
Old 02-13-12, 06:07 PM   #11
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by BIGREG View Post
Yay! Forward to the next version.

Ha ! How exactly did to save the views of texture coordinates
Double click inside the texture coordinates window I'm adding the ability to select what format to save to currently.
TheDarkWraith is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 05:01 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.