![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
01-23-14, 05:10 PM
|
#1 |
|
Black Magic
![]() |
v1.1.403.1 released. See post #1
This version enhances the loose importer. If an OBJ file has indices that define a vertex more than once then for every indice for that vertex after the first the importer will clone that vertex thus keeping a 1:1 ratio (Granny friendly). The strict importer will NOT do this. After all it's a strict import and the vertices defined in the OBJ file must equal the number of vertices defined in the mesh. |
|
|
01-23-14, 05:29 PM
|
#2 | ||
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
![]() Since we are at it, have you looked into the smoothing groups issue yet? and wath about the other problem I had pointed (see below)? ![]() Quote:
|
||
|
|
01-23-14, 05:36 PM
|
#3 | |
|
Black Magic
![]() |
Quote:
If the importers encounter any 's x' entries in the OBJ files they ignore them (they just skip over them). So shouldn't matter anymore. The other problem I have to fire up the app in the debugger and see. What files were used and what exactly did you do? |
|
|
|
01-23-14, 05:49 PM
|
#4 | ||
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
Quote:
file name: small_generic_01.GR2 task performed: exported crates mesh (if you look into that GR2 there are some levitating crates at the end of the docks); edited their y coordinate in Wings3d; imported them back in the same GR2. import method: strict import (only vertex coordinates imported, kept the existing AO/Normal coordinates when prompted about them). problem experienced: the crate material gor corrupted (over-reflective), but the GR2 was still working in game. In case they can help, I think i have a back-up of the GR2 file with my updates and of the meshes imported in it. ![]() P.S: have you seen this last suggestion? |
||
|
|
01-23-14, 05:57 PM
|
#5 | |
|
Black Magic
![]() |
Quote:
Send me the files you have for this small_generic_01.gr2 thing. |
|
|
|
01-23-14, 06:08 PM
|
#6 | ||
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
Quote:
http://www.mediafire.com/download/5z...20textures.rar In GR2 Editor everything looks fine, but if you open the file in Goblin (or in game) crates should look like this: ![]() As I said before, the problem is in the material. The one solution I found, was replacing the corrupt material with a new one. I will look into my hard drive for the meshes whose importing corrupted the material, if you think they can help you in understanding what went on
|
||
|
|
01-23-14, 06:14 PM
|
#7 | |
|
Black Magic
![]() |
Quote:
|
|
|
|
01-23-14, 06:30 PM
|
#8 | |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
https://www.mediafire.com/?mqhk320zi0qw0cd |
|
|
|
01-23-14, 06:47 PM
|
#9 | |
|
Black Magic
![]() |
Quote:
You can see that they are washed out so there is a problem with the normals it appears or the specular value of the material is way too high. Could be other parameters of the material that are way too high also. So there you have it: lighting in the app. You can create some cool scenes using the lighting ![]() I found a small problem with the lighting also that I fixed (dealt with when you updated a light). Thus new version coming here very soon. This also reminds me of something I wanted to add to the lights: a way to 'see' where they are visually in 3D space (along with option to show their defined name). I will add that now. |
|
|
|
01-23-14, 05:50 PM
|
#10 |
|
Black Magic
![]() |
I'm coding something new into the app that will allow you to 'see' how the vertices for a mesh are 'coded'. This is very important if you are going to use existing GR2s as a base for something new. Vertices can have lots of items defined for them such as:
- position (translation) - UV1 - UV2 - bone weights - rotation - normal - tangent - binormal - etc. There are many ways to define a vertex. If you try and use a mesh that doesn't have the correct vertex information defined your new mesh may not render correctly. Worse yet a mesh could have vertex information that you don't need and needs to be defined but you don't define it so it renders badly/incorrectly. Ultimately I'm trying to code in a way to change the vertex declaration for the mesh. Since this is Granny it won't be easy
|
|
|
01-23-14, 05:53 PM
|
#11 | |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
