Blender Editing: KS 750 Bike & Animation

Please post here for questions and discussion about unit modeling and general game modding. You can also post your new units and modifications here.

Moderator: EagleMountainDK

Motomouse
Posts: 200
Joined: Fri Apr 01, 2005 9:51 pm

Blender Editing: KS 750 Bike & Animation

Post by Motomouse »

A simple untextured blender object (exported as directx text .x file) is already
  • imported into Scene Editor
  • making an appearance in a testing scenario [:)]
Further tests and details will follow soon.


P.S. This is a summary of the things learned up to now:

Blender DirectX Exporting
At this time I am using blender for static objects and map creation (only exploring and testing yet) following stridors excellent tutorials (->watch out for the necessary .xml files editing and naming conventions). For mapmaking I do not import a heightmap, but I create a grid mesh in blender and use the blender sculpt tools for terraforming. Beneath you can see the export settings I am using with the blender 2.45 directx exporter
No, don't flip the norms on second thought [;)]

Texturing
Important: Leave one face untextured or the blender model will not load into PCK, allthough viewable with DXViewer. When exporting take care of the length of the texture image names. If they are too long, the will be cut by the export script and you have to edit the name in the .x file (First thing to check, if DXViewer shows no textures)

Animation
If you like to export animations with Blender to DirectX, you have to make sure that every vertex is in exactly one animation vertex group (the vertex groups name matched with the armature bones) otherwise the export is faulty. (Load your exported .x files with the DXViewer.exe tool from the MS DirectX SDK to do a quick check for a correct export.)




Image
Attachments
DirectXExporter.jpg
DirectXExporter.jpg (20.42 KiB) Viewed 602 times
Ceterum censeo pantherae ludi impensus vendere
Motomouse
Posts: 200
Joined: Fri Apr 01, 2005 9:51 pm

RE: Blender Editing

Post by Motomouse »

That was too early ......
Anything sophisticated is also showing up as a simple untextured cube shaped object [:)]
Ceterum censeo pantherae ludi impensus vendere
Motomouse
Posts: 200
Joined: Fri Apr 01, 2005 9:51 pm

RE: Blender Editing

Post by Motomouse »

[:)] It works, it works, it works [:)] (with textures and complex mesh)

(Previous post: I made a mistake recycling an old blender object.)

Blender DirectX Export Settings: flipped normals, Y-axis up, right handed system, no smooth

Achtung! Hurdle! It is not enough to drop your .x file in the corresponding Media subfolder. Have a look into Stridors Tutorials on how to add a custom made object (add an entry in media.xml, etc ...)

No back to some serious work. Looking forward to your blender objects [8D]

Regards Motomouse



Ceterum censeo pantherae ludi impensus vendere
rickier65
Posts: 14252
Joined: Thu Apr 20, 2000 8:00 am

RE: Blender Editing

Post by rickier65 »

So are you able to make a map mesh with Blender then?

Rick
Motomouse
Posts: 200
Joined: Fri Apr 01, 2005 9:51 pm

RE: Blender Editing

Post by Motomouse »

I only tested a single map object yet, not a whole base map. 
Ceterum censeo pantherae ludi impensus vendere
User avatar
Stridor
Posts: 1391
Joined: Sat Sep 08, 2007 11:01 am

RE: Blender Editing

Post by Stridor »

Motomouse,

That is great news!

I tired working with blender but we just couldn't get along. I couldn't get the Direct X exporter working either.

But it sounds like you are making progress.

Just keep doing what you are doing [:D] Use the ideas / techniques that are in my tuts but are obviously applied to blender and it will be interesting to see how far you can go!

Oh and of course when you are finished write a tutorial [;)]

Well done again [&o]

Cheers

S.
Motomouse
Posts: 200
Joined: Fri Apr 01, 2005 9:51 pm

RE: Blender Editing

Post by Motomouse »

next test progressing


Image
Attachments
KS750Edit.jpg
KS750Edit.jpg (22.23 KiB) Viewed 601 times
Ceterum censeo pantherae ludi impensus vendere
rickier65
Posts: 14252
Joined: Thu Apr 20, 2000 8:00 am

RE: Blender Editing

Post by rickier65 »

After seeing Moto's post I got back to work going finishing your Tutorial #1. Then downloaded Blender.

LOL - THat was sad -looked at the scree - could hardly read the text in the menus - font soooooo small. looked at some tutorials to see what was there - lots and lots of tutorials - but none that said this is how you build a terrain mesh to use in Panzer Command Kharkov - (*g*).

Then, as is my tendency when faced with totally unfamiliar software - I started clicking around the screen just to see what explodes --- and it did -

One click and my monitor wen black - then I got the monitor diag msg - "check signal cable" Oh not good -

After staring in disbelief for a few minutes unable to get my monitor back, I did the all-powerful - off button on computer - waited and fired it back up - and low and behold back to normal -

I havne't gone back into Blender yet. ----- but my mouse keeps getting closer to that icon----

Maybe I'll wait until I see if you (motomouse) posts a tutorial to companion Stridors on map making (although I see I might have to work on models first - ).

Thanks moto for looking at Blender - hope it works.

Rick
User avatar
Stridor
Posts: 1391
Joined: Sat Sep 08, 2007 11:01 am

RE: Blender Editing

Post by Stridor »

Motomouse,

Is that your bike? It looks really cool!

Are you going to do a sidecar as well?

I am looking for a vehicle to do an animation tutorial on (it will have to be in MS3D at the moment, like Rick I tried going back to blender but it complained when I tried to reimport any of the direct X meshes back into the program so I gave up again!) if you wanted I could animate your bike and I am sure you should be able to pick up enough pointers along the way to translate that back to blender?

Good stuff

S.

User avatar
Stridor
Posts: 1391
Joined: Sat Sep 08, 2007 11:01 am

RE: Blender Editing

Post by Stridor »

Actually a bike will need a special "tank commander" (main rider) and sidecar rider as well, so that does up the ante somewhat. Also they won't be able to dismount to fight [:(], so make sure there is a MG on the bike somewhere.
Motomouse
Posts: 200
Joined: Fri Apr 01, 2005 9:51 pm

RE: Blender Editing

Post by Motomouse »

Hi Stridor, yes it is my bike, I did it today. Probably I will upgrade it later (rider, sidecar, animation ...). But it will take some time, for now it is a static model, for testing, learning and my entertainment [8D].

Looking forward to your animation tutorial, will try applying it to blender later. Next I have to tackle the texturing (technical side solved already). When the bike is in an approbriate state, I will be happy to make it available for tinkering, but I think it will be too late for your animation tutorial [;)]



Image
Attachments
ingame.jpg
ingame.jpg (79.29 KiB) Viewed 604 times
Ceterum censeo pantherae ludi impensus vendere
Motomouse
Posts: 200
Joined: Fri Apr 01, 2005 9:51 pm

RE: Blender Editing

Post by Motomouse »

After some texturing problems (At least one face had to remain untextured or I got an error, will explore later) some progress is made.

Image
Attachments
KS750Screen2.jpg
KS750Screen2.jpg (61.77 KiB) Viewed 601 times
Ceterum censeo pantherae ludi impensus vendere
rickier65
Posts: 14252
Joined: Thu Apr 20, 2000 8:00 am

RE: Blender Editing

Post by rickier65 »

Ah- nice - Can have some cycles lying around for the 34th Motorcycle Bn. Looking forward to seeing some tutorials -

Thanks
Rick
Mraah
Posts: 1085
Joined: Wed Feb 20, 2008 6:11 am

RE: Blender Editing

Post by Mraah »


Very nice tractor !!! Oh, wait, the bike is new [;)] ...

All jokes aside, very well done Motomouse !!!

I can't wait till you add the rider, and animate him too.

I hate texturing ... I dread texturing ... I can never get it right!!

Rob
User avatar
Stridor
Posts: 1391
Joined: Sat Sep 08, 2007 11:01 am

RE: Blender Editing

Post by Stridor »

Sweet!

[:D]
Motomouse
Posts: 200
Joined: Fri Apr 01, 2005 9:51 pm

RE: Blender Editing

Post by Motomouse »

Started to work on rider.

Image
Attachments
RiderBike.jpg
RiderBike.jpg (47.24 KiB) Viewed 603 times
Ceterum censeo pantherae ludi impensus vendere
User avatar
Erik Rutins
Posts: 39640
Joined: Tue Mar 28, 2000 4:00 pm
Location: Vermont, USA
Contact:

RE: Blender Editing

Post by Erik Rutins »

Excellent, looking forward to fielding a bike gang. [8D]
Erik Rutins
CEO, Matrix Games LLC


Image

For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/

Freedom is not Free.
Motomouse
Posts: 200
Joined: Fri Apr 01, 2005 9:51 pm

RE: Blender Editing

Post by Motomouse »

You will find an update on exporting Blender animations to DirectX in the first post of this thread. [8D]
Ceterum censeo pantherae ludi impensus vendere
Motomouse
Posts: 200
Joined: Fri Apr 01, 2005 9:51 pm

RE: Blender Editing

Post by Motomouse »

After some tinkering please see the proof of concept screenshot for a blender created unit. I found the necessary information in Erik´s Panzer Command Winterstorm Modding Articles in the Winterstorm forum.

Some things learned:
The textures have to reside in the folder in .dds format (update entrys accordingly in blender .x files)
export settings for unit meshes: Flip norm, Swap zy, Flip z, Bl.normals, Export Sel (only the object selected)

No, don't flip the norms on second thought [;)]

Image
Attachments
ProofofConcept.jpg
ProofofConcept.jpg (89.06 KiB) Viewed 602 times
Ceterum censeo pantherae ludi impensus vendere
Motomouse
Posts: 200
Joined: Fri Apr 01, 2005 9:51 pm

RE: Blender Editing

Post by Motomouse »

Never mind if you are not into the hardcore BLENDER to PCK animation export thingy! [:D]  else read on:

After some prolonged [;)] tinkering(manual mixing of the file contents of working PCWS Pz III Example wheels with my blender exported animations)  I acquired the basic knowledge for importing blender animations into Panzer Command Kharkov:

Blender is using a XSkinMesher with weight (vertex) groups for the bone animation. This led to an unvisible mesh for me in PCK (with a visible shadow [:)], that was an important hint)

Structure Change applied (manual editing for now: removing XSkinmesher, moving bracket ):
{AnimationFrame Bone} { ObjectFrame (XSkinMesher Bone)} --> {AnimationFrame Bone { Frame Object }} 

Funny thing noticed: Although blender is exporting a time based ticks per second "type 4" DirectX animation , not a "type 0" DirectX Rotation like in the Pz III Example, its working indeed in PCK [:)].

Now in the unlikely event I will have got some time at hand in the foreseeable future [:'(], I will try to finish the animated bike and perhaps I am looking into fine tuning the blender animation export.




Ceterum censeo pantherae ludi impensus vendere
Post Reply

Return to “Maps, Models and Mods”