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:22 PM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
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   #2
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   #3
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   #4
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   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
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   #6
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   #7
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
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   #8
machiavelli
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

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

Thanks.
  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:10 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.