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-27-13, 12:09 PM   #1996
Jace11
Seasoned Skipper
 
Join Date: Mar 2005
Location: UK
Posts: 683
Downloads: 104
Uploads: 1
Default

Bone rotation? It's based on Quarternion rotation. I thought there was a converter in the app, but you can squash or expand them if you get it wrong I think.
Jace11 is offline   Reply With Quote
Old 05-27-13, 12:22 PM   #1997
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Jace11 View Post
Bone rotation? It's based on Quarternion rotation. I thought there was a converter in the app, but you can squash or expand them if you get it wrong I think.
Yes it is based on Quaternions. Yes there is a converter in the app. The only way you can 'squash' them is if you have scale capability turned on (lower right corner of the app - S). If only RT (Rotations and Translations) are turned on then it's impossible to 'squash' them.
TheDarkWraith is offline   Reply With Quote
Old 05-28-13, 10:41 AM   #1998
Crazyauzzie
Bilge Rat
 
Join Date: May 2013
Posts: 1
Downloads: 0
Uploads: 0
Default When :o?

Any idea on when the new version of the program is going to be put up? I've been sticking my head out and waiting for it.
Crazyauzzie is offline   Reply With Quote
Old 05-28-13, 11:39 AM   #1999
Targor Avelany
Ace of the Deep
 
Join Date: Jan 2010
Location: Vancouver, BC, Canada
Posts: 1,183
Downloads: 225
Uploads: 0


Default

Quote:
Originally Posted by TheDarkWraith View Post
Yes it is based on Quaternions. Yes there is a converter in the app. The only way you can 'squash' them is if you have scale capability turned on (lower right corner of the app - S). If only RT (Rotations and Translations) are turned on then it's impossible to 'squash' them.
hmm. Awesome, now I know where I was messing up a bit.
Targor Avelany is offline   Reply With Quote
Old 06-08-13, 06:09 AM   #2000
divingbluefrog
Medic
 
Join Date: Jan 2006
Posts: 164
Downloads: 63
Uploads: 1
Default

I don't know if it has any value, as I'm not really GR2 format friendly, but I put my hand on a complete GR2_import tool written in C++ (.h, .cpp. makefile and so on).

From the readme included : "Granny2Lib encapsulates tazpn (theo)'s Granny2-reading logic in a single library, isolated from the rest of the projects."

The first lines of GR2format.cpp :
/************************************************** ********************
*<
FILE: GR2Format.h
DESCRIPTION: GR2 File Format
CREATED BY: tazpn (Theo)
HISTORY:
*> Copyright (c) 2006, All Rights Reserved.
************************************************** ********************/
#include "Precomp.h"
#include "GR2Format.h"
//#include "bspline/BSpline.h"

using namespace std;

namespace granny2 {

IMPLVARTYPE(granny2_impl, granny_transform)
IMPLVARTYPE(granny2_impl, ArtToolInfo)
IMPLVARTYPE(granny2_impl, ExporterInfo)
IMPLVARTYPE(granny2_impl, MIPLevels)
IMPLVARTYPE(granny2_impl, Image)
IMPLVARTYPE(granny2_impl, Layout)
IMPLVARTYPE(granny2_impl, Texture)
IMPLVARTYPE(granny2_impl, granny_Map)
IMPLVARTYPE(granny2_impl, granny_Material)
IMPLVARTYPE(granny2_impl, Bone)
IMPLVARTYPE(granny2_impl, Skeleton)
IMPLVARTYPE(granny2_impl, VertexData)
IMPLVARTYPE(granny2_impl, TriTopology)
IMPLVARTYPE(granny2_impl, Mesh)
IMPLVARTYPE(granny2_impl, Model)
IMPLVARTYPE(granny2_impl, TransformTrack)
IMPLVARTYPE(granny2_impl, PropRef)
IMPLVARTYPE(granny2_impl, TrackGroup)
IMPLVARTYPE(granny2_impl, Animation)
IMPLVARTYPE(granny2_impl, GR2Info)
IMPLVARTYPE(granny2_impl, CurveDataHeader_D3K16uC16u)
IMPLVARTYPE(granny2_impl, CurveDataHeader_D3K8uC8u)
IMPLVARTYPE(granny2_impl, CurveDataHeader_D4nK16uC15u)
IMPLVARTYPE(granny2_impl, CurveDataHeader_DaIdentity)
IMPLVARTYPE(granny2_impl, CurveDataHeader_D4nK8uC7u)
IMPLVARTYPE(granny2_impl, CurveDataHeader_D3Constant32f)
IMPLVARTYPE(granny2_impl, CurveDataHeader_DaK32fC32f)
IMPLVARTYPE(granny2_impl, CurveDataHeader_DaKeyframes32f)
//IMPLVARTYPE(granny2_impl, CurveDataHeader_DaConstant32f)
//IMPLVARTYPE(granny2_impl, CurveDataHeader_D4Constant32f)
//IMPLVARTYPE(granny2_impl, CurveDataHeader_DaK16uC16u)
//IMPLVARTYPE(granny2_impl, CurveDataHeader_DaK8uC8u)

and around 900 lines of code more.

If you think it could be useful, I can zip the project and send it to you.
divingbluefrog is offline   Reply With Quote
Old 06-08-13, 09:38 AM   #2001
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

There are a couple problems with the above code. One, the header files used most likely are from RAD games tools SDK (or were based off of them) and thus are copy protected. It would be very hard to prove that you somehow magically were able to make these header files. Two, being able to read the file is nice but if you can't change it and write it back it's useless.

My app uses nothing from RAD games tools. It can also read, manipulate, and write GR2s. Granted I cannot manipulate everything contained in them (animations for example) but I can at least read the existing data for them and write it back.
TheDarkWraith is offline   Reply With Quote
Old 06-10-13, 12:22 PM   #2002
Ekmek
Mate
 
Join Date: Nov 2011
Posts: 53
Downloads: 4
Uploads: 0
Default

DarkWraith,

Over in civ5 land we now have a tool that lets us export our gr2s including the leaders you were working on then import them into blender to modify. I know you put in a lot of hardwork on those and I appreciate it. If you hit a wall on them, then I'm fine if you move on to something more SH5 specific.

Thank you for all your work on this!
Ekmek is offline   Reply With Quote
Old 06-10-13, 03:11 PM   #2003
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Ekmek View Post
Over in civ5 land we now have a tool that lets us export our gr2s including the leaders you were working on then import them into blender to modify.
gap is offline   Reply With Quote
Old 06-26-13, 10:53 AM   #2004
machiavelli
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Could someone please re-up this tool the link is dead.

Thanks.
  Reply With Quote
Old 06-26-13, 10:55 AM   #2005
machiavelli
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

OK, its been disabled for download.
  Reply With Quote
Old 06-26-13, 10:55 AM   #2006
machiavelli
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Any other alternatives in order to export .gr2 to .obj ?
  Reply With Quote
Old 06-26-13, 10:57 AM   #2007
machiavelli
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Will this method work for sh5 .gr2 files?

http://forums.civfanatics.com/showthread.php?t=496855
  Reply With Quote
Old 06-26-13, 12:04 PM   #2008
machiavelli
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

I'd like a version of this program specifically for gr2 to .obj conversion. CAn someone pass it along to me? PM, whatever. Thanks.
  Reply With Quote
Old 06-27-13, 04:48 AM   #2009
Vanilla
Lieutenant
 
Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 72
Uploads: 0
Default

Quote:
Originally Posted by machiavelli View Post
Will this method work for sh5 .gr2 files?

http://forums.civfanatics.com/showthread.php?t=496855
At least 'out of the box' it silently crashes for me upon trying to open a SH5 .gr2 My guess it is not generic enough as opposed to TDWs EVE.
Vanilla is offline   Reply With Quote
Old 06-27-13, 01:42 PM   #2010
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

The source code for NexusBuddy 2 is available.
Download it and adjust it to work with SH5 GR2 files.
And NO. I don't give out my exporters any longer.
Especially to people I don't like.

Last edited by Madox58; 06-27-13 at 03:36 PM.
  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 09:05 PM.


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