![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
04-16-11, 01:42 PM
|
#106 | |
|
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
|
Quote:
If i can understand your english then it is good enough But for placing animated water plane in effect object you mean effect launcher controller? Does this have to be link via statemachines? Best regards hans |
|
|
|
04-16-11, 01:51 PM
|
#107 | |
|
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
|
Quote:
That would be great my friend and with your permission i would do a video tutorial out of it. The statemachines controller are powerful trigger and i already understand the logic for the conditions but only need the correct nodes worflow to make it work. So far if anyone is simply trying to make their animation work in game it wont work at all with the obj keyframes export it is only working in S3D and you can see the meshanimationdata add to it but will not work in game, Just to make a test i took the pescarus meshanimationdata and i pasted it on plane and no animation show up in game. So in a word meshanimationdata is not working alone it need to be call by node in a very strict way. Best regards Hans |
|
|
|
04-16-11, 05:04 PM
|
#108 | |
|
Admiral
![]() Join Date: Jan 2006
Location: Russia ®
Posts: 2,481
Downloads: 122
Uploads: 1
|
Quote:
http://www.subsim.com/radioroom/showthread.php?t=182437 #7. ... if i understand correctly your effect, you can insert your effect into existing parent object where are water flow effect... if i don't understand your idea... you can creat new dummy-effect-object with name-prefix $Gen_ ... and two (or more) child objects - one with particles generator (and if need with new material in material.dat) and with name-prefix $... it's effect of particles over water... second child with your water model and with animation... without name-prefix. In NSS_Uboat7_CR.sim you see InteriorEffectsManager - here are listed and divided into groups IDs of effect-objects (IIRC, parent)... what else..? aha, in *.sim you see StateMachineWrapper controllers - here shows the Graph names ... if your effect is new separated you must to add new controller with new Graph name... in Library folder (if you created new object and new Graph) do new file with new StateMachineClass with new Graph... if not new add into existing file your logic... I don't remember anything anymore ...
__________________
Alex ® ![]() Moses said: "Don't create yourself an idol"... |
|
|
|
04-16-11, 05:59 PM
|
#109 | |
|
The Old Man
![]() Join Date: Apr 2007
Location: Netherlands
Posts: 1,553
Downloads: 30
Uploads: 4
|
http://www.subsim.com/radioroom/showthread.php?t=154550
Also see last post, with link to kickinbak, that page has the video where I imported the coil... Quote:
__________________
![]() 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-16-11, 06:06 PM
|
#110 | |
|
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
|
Quote:
Long time no see ![]() Hope you are doing well my friend thank for info i will have a look at this asap and by the way i send you a pm regarding this thread : http://www.subsim.com/radioroom/showthread.php?t=182596 If you can shed some light on this i would be more than happy Best regards Hans |
|
|
|
04-16-11, 06:13 PM
|
#111 |
|
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
|
Hi Skwasjer,
I already saw those videos i have no problem importing animation or model in S3d, the only problem i have is to make the animation work in game. In S3D the animation play fine i have no problem on that but when you look in game it doesn't show! So i think that for animation to work also in game i have to used the statemachines controller technique devellop by Anvart and also used by DD on his periscope. Best regards Hans |
|
|
04-16-11, 06:33 PM
|
#112 |
|
The Old Man
![]() Join Date: Apr 2007
Location: Netherlands
Posts: 1,553
Downloads: 30
Uploads: 4
|
It's not needed, I didn't need to... but then again, I was testing in SH4. It's been so long ago that I've worked on this that I can't remember all exactly, but this definately worked for me.
http://s3d.skwas.com/media/S3D_Anims.wmv This vid shows the coil running without any specific controller attached. Although this was recorded in S3D it worked in game. The rods where made with keyframe anims. I wasn't up to the point of implementing the state machine here yet, all ran without it.
__________________
![]() 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-16-11, 06:36 PM
|
#113 | |
|
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,815
Downloads: 123
Uploads: 0
|
Quote:
For me it also working in S3d but unfortunately not in game maybe i am cursed Best regards Hans |
|
|
|
04-16-11, 07:21 PM
|
#114 | |
|
Admiral
![]() Join Date: Jan 2006
Location: Russia ®
Posts: 2,481
Downloads: 122
Uploads: 1
|
Quote:
... and for your mod (Flooding Effect) no need to use it... you have simple case... and StateMachineWrapper. May be we speak about different mods? It's time for bed.
__________________
Alex ® ![]() Moses said: "Don't create yourself an idol"... Last edited by Anvart; 04-18-11 at 04:27 AM. |
|
|
|
04-16-11, 08:41 PM
|
#115 | |
|
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
|
#116 |
|
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
|
#117 | |
|
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
|
#118 |
|
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
|
#119 |
|
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:34 AM
|
#120 |
|
Sea Lord
![]() Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,944
Downloads: 42
Uploads: 0
|
hey dd.
nice to see you that fully passioned in duty again! ![]() very nice progress here!
__________________
|
|
|
![]() |
|
|
