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 09-30-11, 02:12 PM   #31
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

I'll have a whole big addition to the first section before Monday.


It will explain the sections Index and continue from there to explain information found in some sections, what they are, and how to read or write to them.

All without useing the granny2.dll in SH5, which is limited in what you can actually do with it to fit our needs.
  Reply With Quote
Old 10-01-11, 02:59 PM   #32
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Well, since TDW sent me his version of the GR2 Template,
and it is a much more complete version?
I'll adopt his version after We sort a few issues with it.
It's full of more data then I was going to bother with for now but very nicely done.


And saves me a TON of work on the GR2 Template.
I can spend the extra time doing the Template for Dangerous Waters now.
The goal there is to allow others to write a new converter for the J3D format.


Plus for any future imports to the GR2's?
We may/will need to compute tangents, bitangents, and normals ahead of time.
One reason to plant them in the GR2 is to save CPU time.
That is if the SH5 engine is actually reading them and not doing the math.
I'll have to zero out some and see what happens in Game to be sure.

I've got a start on a Python thingy to do the math but it needs work to finish.
  Reply With Quote
Old 10-01-11, 03:57 PM   #33
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by privateer View Post
Plus for any future imports to the GR2's?
We may/will need to compute tangents, bitangents, and normals ahead of time.
One reason to plant them in the GR2 is to save CPU time.
That is if the SH5 engine is actually reading them and not doing the math.
I'll have to zero out some and see what happens in Game to be sure.
If you look at the shaders you'll see that they use the binormals and tangents
TheDarkWraith is offline   Reply With Quote
Old 10-01-11, 04:00 PM   #34
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

OK. I hate looking at all those so that's good to know.

It means the Python thingy (or something like it) will be needed.
  Reply With Quote
Old 10-05-11, 06:01 AM   #35
Pintea
Sparky
 
Join Date: Jan 2010
Posts: 152
Downloads: 6
Uploads: 0
Default

If you want normal mapping on the models you WILL need the tangents for the normal mapping tangent space. The binormals are optional since they can be calculated inside the game, but as you said they better be contained in the gr2 since it will save some loading time.

The game loads tangents and binormals only if the 3D model has a normalmap texture mapped on the second texturing channel.
Pintea is offline   Reply With Quote
Old 10-05-11, 06:17 AM   #36
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Thanks for verfying this.


For now I get that info by exporting with opencollada.
The python script will be a stand alone .exe that will be easier to work with.
  Reply With Quote
Old 10-14-11, 01:13 PM   #37
nyzze
Nub
 
Join Date: Oct 2011
Posts: 2
Downloads: 0
Uploads: 0
Default

Can u reupload gr2template.bt please?
nyzze is offline   Reply With Quote
Old 10-14-11, 01:15 PM   #38
Gerald
SUBSIM Newsman
 
Gerald's Avatar
 
Join Date: May 2008
Location: Close to sea
Posts: 24,254
Downloads: 553
Uploads: 0


@nyzze! Welcome to SubSim,
__________________
Nothing in life is to be feard,it is only to be understood.

Marie Curie





Gerald is offline   Reply With Quote
Old 10-14-11, 01:34 PM   #39
nyzze
Nub
 
Join Date: Oct 2011
Posts: 2
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by Vendor View Post
@nyzze! Welcome to SubSim,
Thanks
Do you have this template?
nyzze is offline   Reply With Quote
Old 10-14-11, 02:00 PM   #40
Gerald
SUBSIM Newsman
 
Gerald's Avatar
 
Join Date: May 2008
Location: Close to sea
Posts: 24,254
Downloads: 553
Uploads: 0


You are welcome, not those who you seek, privateer can help ya out,
__________________
Nothing in life is to be feard,it is only to be understood.

Marie Curie





Gerald is offline   Reply With Quote
Old 10-14-11, 07:49 PM   #41
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Vendor View Post
You are welcome, not those who you seek, privateer can help ya out,
privateer is the main POC for the template file. He is compiling everyone's input into one template file.
TheDarkWraith is offline   Reply With Quote
Old 10-15-11, 07:49 AM   #42
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

http://www.mediafire.com/?1clz7zafehdq7qu

This download includes the CRC script to check and set the CRC.

I have not worked on the GR2's for SH5 lately.
I'm working on an application that finds whatever type file I want to find even if it has no file extension.
Written in C, it's very small, fast, and handles dropping huge folders into it very well.

Plus I'm hooked on this incredibly simple and silly Game!
http://www.mollyrocket.com/621

The Heck with angry Birds.
Stunt Hamsters' Rock the Christ Child!!!

Last edited by Madox58; 10-15-11 at 08:38 AM.
  Reply With Quote
Old 10-15-11, 08:23 AM   #43
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Link and files changed.

Last edited by Madox58; 10-15-11 at 08:38 AM.
  Reply With Quote
Old 10-15-11, 09:43 AM   #44
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

http://www.mediafire.com/?ku82wxzw9s9uo7t

Fixed an error in the header.h file
  Reply With Quote
Old 10-15-11, 03:06 PM   #45
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Not sure what you mean.


I'm working on something different right now so my mind is not focused on the SH5 GR2 at this moment.

if (hwndListView == NULL)
{
sprintf(sErrorString, "Handle of ListView NULL (fExportListView)");
MessageBox(NULL, (LPSTR) sErrorString, (LPSTR) sYourApplicationsName, MB_OK | MB_ICONEXCLAMATION);
return(0);
}

i = SendMessage((HWND) hwndListView, (UINT) LVM_GETITEMCOUNT, (WPARAM) 0, (LPARAM) 0);
if (lLines != i)
{
sprintf(sErrorString, "%ld lines in ListView != %ld as parameter (fExportListView)", i, lLines);
MessageBox(NULL, (LPSTR) sErrorString, (LPSTR) sYourApplicationsName, MB_OK | MB_ICONEXCLAMATION);
return(0);
}


and so on.
  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 09:40 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.