![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
11-09-10, 11:19 AM
|
#1 |
|
Old Gang
|
Maybe now the crew will react to tense depth charging in a more realistic way, other then bend their knees and look around slowly.
Is it possible to make the crews run from one end to the other of the uboat? Would be cool to simulate crew running to the bow when crash diving.
__________________
To each his own |
|
|
04-16-11, 08:41 PM
|
#2 | |
|
Eternal Patrol
![]() Join Date: Mar 2006
Location: CATALINA IS. SO . CAL USA
Posts: 10,099
Downloads: 511
Uploads: 0
|
Quote:
|
|
|
|
04-17-11, 03:02 PM
|
#3 |
|
Grey Wolf
![]() Join Date: Jul 2006
Location: Germany
Posts: 879
Downloads: 10
Uploads: 1
|
Moin Hans,
if your animation shows in S3D but not ingame, you probably have not set the 3d_model identifier (see pic) correctly or you´ve got an ID conflict. Skwasjer is, of course, right saying that you do not need a SMC to make an animation show up ingame. But there are several hooks that might prevent your solution from working. First thing to do is to create a new node featuring a 3d model.
Second step: you have to make sure the 3d_model type/identifier is set to 0x02. (see pic below) Otherwise you will see the base mesh only without animation. ![]() Third step: select the 3d_model node and import your *.obj file sequence. This is the easiest way to bring an ever looping animation into the game. If you don´t want the animation to loop constantly, you´ll have to split and put the data into several files. See pic below. ![]() This last pic says it all. If there´s still something missing, ask! Regards, DD
__________________
|
|
|
04-17-11, 03:39 PM
|
#4 | |
|
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
|
Quote:
Thank for that great tutorial but finally someone as pin point that without an hexeditor animation wont work in game i knew that since the beginning and i wasted countless hours trying to make animation work in game. So since i am not good at all at hex editor can you just show me how to change that value to fix my animation? If i type the number in File Offset of S3D in Hex editor will it show me the required information to change? Edit: After some test i follow DD advice on identification tag for 3d model and the animation is working in game wahoooo just have to make the correct statemachines class to make it work under damage state conditions. A thousand thank DD you did it again mate. Best regards Hans Last edited by Hans Witteman; 04-17-11 at 11:30 PM. |
|
|
|
04-17-11, 08:07 PM
|
#5 |
|
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
|
Hi again,
DD can you tell me what is your procedure to save your animation in animation folder? Because now my water flooding work in game by changing tag ID to 2 like you mention but it is only working when i imported the meshanimationdata in my CR.dat. If i remove the meshanimationdata it does not trigger the animation i previously saved in animation folder? Also on game engine what is less demanding regarding animation is it better to save animation in external animation folder or to used them directly under Dat files? Best regards Hans Last edited by Hans Witteman; 04-17-11 at 09:30 PM. |
|
|
04-17-11, 10:52 PM
|
#6 |
|
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
|
Hi shipmates,
I did some new test on saving as .anim file, what i did is i export as raw data the meshanimationdata and import it back in .anim. file and deleted the 3d model node leaving only the noset +meshanimationdata and re link it to parent AnimationObject. And it is still not working so i think it could be 2 main reasons, first the way i saved .anim file and second the way i build the statemachines class, so far i did only 1 states entries just to test animation trigger in game can you tell me what is wrong with this SMC : ![]() Best regards Hans |
|
|
04-18-11, 02:45 AM
|
#7 |
|
Grey Wolf
![]() Join Date: Jul 2006
Location: Germany
Posts: 879
Downloads: 10
Uploads: 1
|
Moin Hans,
Make sure the files are all placed in the correct folder. Interior.dat >>> goes without saying Animation.dat >>> LIBRARY folder Animation.anm >>> ANIMATIONS folder Next, the SH engine is very strict regarding naming conventions. The SMC entry in your Interior.dat contains the SMC Controller that defines the 'GraphName'. Let´s say 'Hans_Graph'. The game engine is now checking the LIBRARY folder´s *.dat files for a SMC named 'Hans_Graph'. The 'Hans_Graph' SMC defines the events your animation is triggered by and holds the name(s) of the animation(s) to play. Let´s say 'Hans_Dance'. Once the condition to run the animation is met, the game engine checks the ANIMATIONS folder´s *.anm files for an 'AnimName' named 'Hans_Dance'. This 'Hans_Dance' contains one or more sub items containing another 'AnimName' entry. Let´s call it 'Hans_Limbs'. When 'Hans_Dance' is called by 'Hans_Graph', the correlated MAD will be linked to 'Hans_Limbs' and the game engine will check the Interior.dat for any 3d_model by the name of '<Hans_Limbs>'. The brackets are vital! If '<Hans_Limbs>' is found, the animation will play. How to create this setup?
![]() Next, your SMC has to be built. For testing reasons it is advisable to use a setup that will call the animation on load with no conditions to be met. Thus you ensure the animation is imported correctly at last. As for your SMC, it will not work this way. When your condition 'true' is met, the pointer is directed to entry #1, but there is none. Hence the animation will play once only or not at all. Don´t know how the game engine handles this "error". 'GotoEntry=0' should do the trick. But I strongly recommend to use a more advanced setup, even for an ever-looping basic test. Use 4 StateEntries for a start:
[EDIT] Moin UFi, but don´t tell my wife. [/EDIT] Regards, DD
__________________
|
|
|
04-18-11, 04:47 AM
|
#8 | |
|
Admiral
![]() Join Date: Jan 2006
Location: Russia ®
Posts: 2,481
Downloads: 122
Uploads: 1
|
Quote:
![]() First you have choose the method that you want to use for your Flooding... or method which i described (IIRC) in 2009 ... or standard StatemachineWrapper ... or mixed method ... If you have a simple animation i recommend standard StateMachineWrapper ... ... If i understand correctly DD proposes to use the first method ... I find it hard to understand the nuances of your conversation ...
__________________
Alex ® ![]() Moses said: "Don't create yourself an idol"... Last edited by Anvart; 04-18-11 at 05:53 AM. |
|
|
|
04-18-11, 05:00 PM
|
#9 | |
|
The Old Man
![]() Join Date: Apr 2007
Location: Netherlands
Posts: 1,553
Downloads: 30
Uploads: 4
|
Quote:
I need no hex work to make animations work - even more advanced ones - it can all be done in S3D... (I mean, I did it myself) And yea, the funny misplaced box in the model pane was some left over unfinished (but useful) thingy that I left in, but totally forgot about... ![]() Tip: you can copy existing structures by pressing CTRL+SHIFT+C on the top node, and then pasting in new DAT (or ANM), and then just assign new ID's in S3D (the 'New' button next to the ID-field). If you have trouble starting from scratch, this may help.
__________________
![]() SH5 mods: Speech Recognition for SH5 | Digital UI Clock Tutorials: [TEC] Import/export 3D models to/from game using S3D [TEC] How to work with the model viewer in S3D - VIDEO |
|
|
|
04-18-11, 08:52 PM
|
#10 | |
|
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
|
Quote:
I know what your mean because it did work without hexing anything the only thing that was not working because of the small box where it show a number i just had to change the 0 for 2 like DD mention and suddenly the magic went on in game. But i have see that in some animation you did for sH4 you have it at 0 and it was working correctly so maybe we only need to put number 2 for Sh3. Best regards Hans |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
