Skip to content
View in the app

A better way to browse. Learn more.

Learn more

General Blender Questions:

This is not related to em4 but a general question for you blender users:

The first question I have is related to Blender and the ability to use the bone structures, supposedly it can do this, do any of you guys know if it has a bone structure system and if it works/can export to 3DS format...  Any info you have on it would be appreciated.

The second question is related to Blender and any abilities it has to do animation frames within the app, and also if those frames are remembered when exported to 3DS format as well.

Neither of these tasks are related to EM4 but before I dive into learning the system I kinda wanna make sure it can do what I'd need it for, and does it without major problems before I put the time into learning it, since it would be fruitless if in the end it has just as many problems as zmod does or more..  Anything you guys know about the two tasks above and Blender's ability to do them cleanly I'd appreciate, it'll save me some homework when the time comes to have to do it.

Thanks guys, MK

  • Replies 61
  • Views 241
  • Created
  • Last Reply

Top Posters In This Topic

  • MikeyPI
    MikeyPI 35 posts
  • Pottyscotty
    Pottyscotty 24 posts
  • itchboy
    itchboy 2 posts

Posted Images

Featured Replies

Upon some quick tests it would appear neither are possible. 3DS files with blender are very simple, with no options when exporting (unlike other formats which have a lot) and limited to what it can do. As far as I can see all it does is store the model, material and texture info and nothing else.

The two files I exported:

J17whHJ.png

  • Author

Thanks for trying can it do .OBJ with either of those features?  I wanna make sure it does what I need before I waste time doing it so I appreciate someone who knows the app figuring it out before I try it.  No sense fumbling in the dark if someone has a map;)

OBJ animation export will export one model per frame (so the model would move position [or whatever you do to it] with each new file). This, of course, isn't a nice way to do it but I guess it really depends on your situation and what it's needed for.

kFnvwGt.png

As with rigs/bones, this is not possible for the same reason as .3DS - It's a mesh/material format first and foremost.

Depending on what program you are trying to import into, the method I use (and the preferred one to many) is .FBX files. This can export rigs, animations, models etc and does so with little problems.

  • Author

TY  for the info, yeah basically im looking for the most efficient system to deal w chars (persons) that wont require manual frame by frame handling in the end project. 

  • 3 months later...
  • Author

Since you use Blender can you help me out with some basic information?  I need to know how to rotate the viewports, adjust the objects around, etc.. I need to make new ppl so I have to learn blender to do it =-(  Basically any "getting started" information you know about the shortcuts/hotkeys to do/move shit would be helpful.

Also: is it possible to simply add the bone struct to an existing model mesh?   If that's possible I'll just make it in my app and convert it over; adding the bones and all that shit in there (would save me a ton of effort in learning an app that for me is a bit complicated).

  • Author

So far I've figured out the camera and how the hell to make a figure (sorta).. If you can point me into the above question (if it's possible to use an existing model and implant the bone struct) and how to do that I'd appreciate it.  Also how to actually move the fucker in various directions..  Sometimes it moves it in different ways but most the time it was only moving them in a circular up and down motion regardless of me pressing shift, alt, or ctr.. Which was quite annoying..  So I'd appreciate knowing exactly how the fuck to move the damned bones every time on the damned axis.

If you can help me out with these things I'd appreciate it, I've gotta make new ppl models but blender has a huge learning curve coming from z1 as I have =/

Absolutely, it's more than possible to add a bone structure to an existing model. When moving your bones make sure you are in 'pose mode' not the edit or object modes too.

When I was learning Blender, Andrew Price (who now runs Blender Guru) was my go-to person for tutorials because of just how well he explained things and the fact that you had a video or text and picture based tutorial option. While this tutorial isn't by Andrew himself it was put up on his site by a friend of his but this was how I learned how to rig objects in Blender - https://www.blenderguru.com/tutorials/introduction-to-rigging/

 

  • Author

Thanks for the tutorial to look through;  I have a steep learning curve since basically I want to use it for a very complicated process, but it's unfort the only option that I can see to do the task with.  Does this guy have a text-based version of the tutorial, most learn best through videos but I tend to do better being able to read and re-read (several times as it goes for blender).  I'd rather have a text-based tutorial if possible as opposed to the vids since I have to go back often.  Basically I figure I'll use zmod to make the guy's mesh then dump it into blender and see if I can't make the bone struct and rig them together.  I figured out how to pose the figure (somewhat) once I created a bone struct, I was having problems with the damned thing only wanting to move in one direction, but at least I could move/pose him.  

Same here, I work much better from text tutorials (hence why I used to always use Andrew). I do not know of any text tutorials but I'm sure there must be a few out there. There's this site too which I used to use (again it's only videos) but they are pretty good at explaining things too (only the basic stuff is actually free though) - https://cgcookie.com/course/fundamentals-of-rigging/

Can't really understand why it won't move in all directions. Have you placed any kind of constraints to limit its movement in the Object, Modifiers or Constraints menus?

  • Author

I just like being able to read and (re-read) as necessary and sadly vids don't really permit the "browsing" to get to what you're looking for as easy.. My bet most of blender is vids b/c most ppl are visual these days anyway.

I think the problem is mostly because i don't know the "shortcut" keys to strike in order to move the fuckers on their various axis..  I tried hitting  like shift, ctrl, and alt, and sometimes it would move in the other directions, but mostly it just moved up and down from the starting (against side) placement to be above his head.  Think your arms by your side and rotate them above your head type of movement.  It did that kosher but moving it other ways was spotty at best.  I'm guessing I'm not hitting the right shortcuts to move against the other axis (or the wrong sequence)..  blender seems to be very fucked up in sensitivity to sequence of functions to get it to do what you want, which is prolly what i'm doing wrong.  I checked the constraints, they were off, the only thing I had on was the mirror X axis so that the left and right side would move identical.

G = Grab (Move) is what you start with.

Then to move along the X axis you hit X afterward (G then X) or if you wanted the Y axis then you'd do G then Y same method with Z. You can also do that then input a number to move it by a certain amount, so if I wanted to move my cube along the Z axis by one and a half units I'd do G, Z, 1.5

With bones (while writing this I think I have just realized your problem, you want to use rotation to position bones, not translation) it's the R key. Press R to move around on all axis and same as grab/translate, input your axis afterward if you just want to rotate that axis (R, Y will rotate along the Y Axis). You can also use the number input too to tell it to rotate along an axis by a certain number of degrees. Double-tapping R gives you a good way to rotate along all axis which is the best tool when doing bones.

Sorry if this is difficult to follow, I'm not the best at explaining things.

  • Author

Naw I think I got it, you're right I was trying to move it and it was doing transform instead of rotation, so you figure out what I did wrong.  Next question I have for you since you're giving me the "short-cut" method here rather than watching 2 hrs of vids to get the keystrokes i have to do and just letting me fumble about to get the result.  How exactly do you attach the bones to a mesh segment so that the bone influences that portion of the model mesh?  Knowing how to link the bones to their actual portions of the model should be about all I need in order to get started, the rest I will try to figure on my own.  If I get logjammed I'll ask about it, but I think that is the last step I need to know how to do in order to get crackin..

 

Still have to make a person model since I know I can port it over and add the bones after the fact that will save tons of time in creating the texture/mesh shit in a proggy I know and just learning the animation posing process with the bones in blender.    If you can tell me how to link segments of the model to the bones I should be pretty good to go, I'll have to toy with it to be sure but with the "Basic" process pointed out (mainly what keys or input locations to do it in) I should be in good shape.

Yeah after re-reading your problem it hit me what was actually wrong, considering I too was stuck on the same issue when I started with rigging.

There are two methods of doing it - Weight Painting or Manually.

Weight painting is where you 'brush' your model to declare what part/s the bone affects and how strongly it affects it. Example being the picture below, the bone will affect the red part the strongest and the blue areas the weakest (dark blue being not affected at all). So when he moves that Thigh bone, the red area would all be moved with the orange, yellow, green and L. blue areas moving less as the strength declines. Though it's not visible, Blender is also selecting the appropriate vertices while doing this, so weight painting wouldn't really work all that well with a model that's lower poly than the one in the picture.

49c.jpg

 

You can also simply select the vertices you want to be assigned to certain bones, though the strength decline of weight painting won't be used.

 

One method of doing this is nice and quick, when you parent the bones and model you can choose for it to actually choose the sections automatically. With a simple model this works 90% of the time and you may just need to make a couple of edits to it. To parent them like that select the model, shift select the armature/rig/bones and do Control+P - With automatic weights. Select your rig, go into pose mode and test it out. If you notice any problems then select your model and where it says object mode on the bottom toolbar, click it and select weight painting. From there you can click the different bones to alter the paint as you can see on my amazing (*ahem*) 30 second job below.

bbc61bb78424470da5821b12873f1d93.png

Or as I said earlier you can instead just manually edit what vertices are affected by which bones. Click your model, go into edit mode then using the vertex groups you can tell Blender what should be affected by which bones. For my model this would be the best method because of how low poly it is.

f6af91f478384a68abe0caea4aa33f73.png

Hope this helps in some way.

  • Author

I think it will be of help, basically the "Paint" method is the most precise, but requires a bit more complicated a model to function correctly (thus i'll prolly have to do that one unless I'm mis-understanding the alternatives).

The alternative method of assigning vertices: the "automatic" method I get since it's basically just doing it's own math on a single solid obj mesh, where you're tweaking it after the fact if/when it fucks up.

the 100% manual method though, how exactly do you assign vertex groups; and what would happen if the vertices were "influenced" by more than one group or bone?

 

 I really appreciate you taking the time to lend me a hand in figuring this out, it'll def make my life easier in actually implementing the structures into the meshes and trying to figure out how to animate them for the final application.  That part you can't really help me with but getting me through the quirks of blender is def. helpful.

 

Yup that's pretty much how I'd describe them.

I made a really quick video that shows how you do it manually, got some bits to do otherwise I would have done a text/picture guide for you. I turned on Key Casting so you can see what shortcuts I used (honestly don't know where half the stuff is in button form because I use shortcuts all the time).

It's simple stuff really, assign the armature to the model with empty groups then select the vertices you want to be affecting by that bone/group and click assign. If you name your bones beforehand then the groups will be the names of the bones (like I did, so I have Head, L. Leg, R. Arm etc), this will make it much easier.

I know mine is kind of messed up but I I didn't model the body parts as separate objects so that's why it stretches so much. It'll be fine for yours though.

 

Ignore all my Control + S' - I have a habit of saving stuff every minor change no matter what program I'm in. No idea why to be honest. Also just noticed missing mouse cursor so if it's difficult to tell what I'm doing I'll write it out when I get the time.

  • Author

I'm going to "modify" your attachment space to be unlimited, can you do me a favor and attach the video in a rar so I can download it to watch/review later on when I setup my models?  I prefer to keep the things stowed somewhere, like my desktop is a mess of documents with various things on it, including most of what you've stated along with what else i've found on blender myself.  For the moment I've set your attachment space to "unlimited", when I recover your vid (easier to download the thing than to try to stream it on a satellite connection). I'll let you know if anything confuses me.  Thanks for taking the time to help explain things to me I really appreciate it.

Basically though, with a semi-complex model it shouldnt distort as badly if I have to manually assign is what I'm getting your saying, though with "painting" I shouldnt hopefully need to do this, but it's still something I really need to understand as a just-in-case deal.

Once you've uploaded it as an attachment, i'll grab the video (in it's rar) and make sure it matches the u-tube one, remove it from your attachments and re-set your limit back to 50mb.  If you guys in custom modder's need more than that feel free to ask, we can bump that up but try to keep it reasonable.

My model char will look more similar to the first ex with everything as one obj, that won't have any type of ill effects will it?

Mine wouldn't have distorted using this method if I did the modeling properly, I rushed it so wasn't thinking and then couldn't be bothered to go back and change it (even though it would have taken me all of about 30 seconds.

All methods will work on all types of model, the only thing that may have a problem is wight painting and automatic weights on a low poly one like mine.

I have a bit more time this morning so I've put this together for you. I'm using a higher poly model I have downloaded to hopefully match more of what you are trying to do so I'm not trying to teach you with a completely different method of what you need.

----------------------

First you have your armature and model.

ZWHg1op.png

Then you are going to want to select your armature and go into edit mode (Press tab or use the button down on the bottom tray). From there, click the armature settings and turn on Names and XRay. These can be turned off at anytime but I highly recommend keeping them on.

4Y0oBp8.png

Then you want to select a bone, go into the bone settings and give it a name. Since I have a person it made the most sense to call the bone that controls his head; 'head'.

4P7NJZN.png

Finished all the names -

fnmNUpY.png

Head back into object mod (Tab or button in the tray) and select the model then armature (must be done in this order). 

EvSGBPX.png

Press Control + P and select 'with automatic weights'.

Td1NYrW.png

Head into pose mode and test out your new rig.

p1K4lOL.png

Double-tap A to select all the bones and press Alt + R to reset the structure. You can do the same with individual bones.

mcylCVQ.png

Problems: Should you have any issues with your rig now you've tested it, you can alter what parts of the model are affected by which bones. This can be done in two ways - Manual selection or Weight Painting.

To do it manually go into edit mode select the settings menu highlighted and open the 'Vertex Groups' box.

zkBO2Ew.png

Click the vertex group (or bone) you want to edit and click 'Select'. This now shows you all the vertices that have been assigned to that bone (green).

kc2vm9V.png

You can select vertices and remove them from that Bone by selecting them and pressing 'Remove'. If you wanted to add vertices to that bone you can select them and click 'Assign'.

FBkZHVY.png

Second method is Weight Painting mode (Button is in the same place as Object, Edit and Pose modes just off-screen). Here you can select the vertex groups as before but instead you will see the area weight applied to that bone.

yRFSM9L.png

Click and drag to apply more weight to an area to be influenced by the bone stronger, make the weight area larger or you can set it to remove weight on areas.

bxendAP.png

This will also affect the vertices selected in the vertex groups.

pQcQmZz.png

I hope this helps you in some way, I have attached a file that contains all the pictures and text to save you having to download and copy it all individually.

 

Armature Instructions.zip

  • Author

Thank you very very much, this is extremely helpful to what I have to do, atm I have the front-profile of a chick built, still have to do the rear half but what you've given me here should get me the rest of the way in making the bones work with the thing once it's completed =)  Hopefully it goes smoothly importing the thing into the engine with the animations but I wasnt expecting help there, I figure Ill have to tamper with that to find out how to do that right.  What you've given me should get me through the bone struct/posing aspect though which is where I was seriously worried about, so thank you very much for taking your time to help with this.

 

 

Capture.PNG

That's absolutely fine, glad I was able to help in some way. If you are able to get it working into the engine at (presuming it's EM4 you're working on) all then I'd love to hear about it. Animations are a huge pain in this game and if there is a way I could use Blender for it then it'll make life so much easier.

  • Author

The intention is to dump it into unity, however I can try to take the model and turn it into em4 format, but I'd need the em4 plugin to try that.  Aint like it'd cost me all that much time tinkering with trying to port it backwards to em4 after I'm done with it so It'd be worth a shot.  I have a feeling (knowing what I do about the flaws in the plugin) it probably won't port right.  It'll prolly require a hell of a huge script to transition to-from or the anim converter method to store the transition data just like we currently have to use for this engine.   We'll see though how it goes, if it seems like it's reverse-compatible I'll give it a run.  I added a picture of what i've built thus far in the post above.

Looks good so far. That's good, Unity was made with Blender in mind so putting things between the two is incredibly simple. That's why I never bothered going to Unreal when it went free.

  • Author

Well, to be honest setting up models into unity is rather annoying (lotta excess steps) but it's a much more powerful renderer so I like it for that aspect of it, but actually setting things up in it takes a bit of time.  For now though it works for what I'm trying to do with it.  Assuming performance doesnt take a dump I'll "upgrade" the shit later, but for now I'm trying to keep things as light as possible so the engine doesnt bog.  Unity is nice for most everything except the lighting system.. That seems to consume resources like a motherfucker;  I'll have to find a way to "simulate" dynamic lighting that isnt doing it real-time in order to get good performance in that regard.  Otherwise though it seems to take my models and coding pretty well, usually takes a few shots on the code to get it "clean' enough to not cause performance issues though.

So far though I'm pretty happy with what I've managed to make it do.  Just going to take time to keep implementing things piece by piece but since people models are a huge part of it, I figured now is as good a time as any to try to implement them into the mix.

Below are a few examples of what I've got so far going on; since I made the content used in NYC2 I can do pretty much what I want with it, so it makes a good "core" to work with for now, if the performance permits it I'll upgrade them to have further details like higher end games have, but for now I'm trying to keep things simple just in case the performance requirements are not there.  I don't wanna make a game that doesnt run on but the top 10% of machines if ya know what I mean.  For now though I've not seen any performance dips with what i've implemented so far (aside from dynamic real-time lighting that I had to pull).

img2.PNG

img3.PNG

img1.PNG

img5.PNG

img4.PNG

I think with Unity lightmapping is going to be your best option. All pre-baked lighting.

Look forward to seeing what you can do with it, your texturing is the best I've seen when it comes to models so that'll be a nice aspect to look out for. Always felt that if photorealism is done right it works incredibly well.

  • Author

Pre-baked works well for non-dynamic shit, but for things like the moving vehicles I don't think pre-baking it will work on that application.  For the actual lights on the vehicle for now I have an effect similar to "poly" lighting which works well enough (if augmented with some type of projection it'll look great).  That's the area I have to sort the lighting for, the lightmap aspect I think will work for standard things like the traffic lights/buildings etc.

For the moment they're direct-ports with modifications where required to work with the engine system but in the long-haul I'd like to give them a few upgrades to make them look even more realistic (while keeping the poly count low).  For now I am not doing that though because they'd all need all operational doors and full blown interiors added which will add weight, IF the engine can handle what all I throw at it then later i'll go into it that and replace the models with upgraded versions.  Unity is a nice engine but it does have certain constraints that you can run into.  

I worry very much about performance over eye-candy if the candy causes problems on actually playing it then it wasnt worth adding in the first place.  So far though I believe most of the shortfalls of em4 can be resolved in this engine since basically I'm having to re-code everything from the ground up, the trailers work fully and have physics, so that's one aspect fixed along with traffic routing is done in a massively different way than em4 so it too should see massive improvements over the original system.  I still have to write the "advanced" AI behavior, but the "basic" one of signaling turns, wheels moving according to the vehicle movement, turning, staying in lanes, adhering to traffic signals, and not ramming one another works pretty well so far.  I have to work out an aspect to prevent "sideswipe" behavior when a vehicle merges lanes or switches them, but it's coding should be similar to the existing method so it's just a matter of writing it and de-bugging it. I want to implement at least one ped so that I can work out the PED AI behavior as well since they will also adhere to the traffic light signal behavior just like the cars do (should limit congestion caused by peds in the road) which is why I've asked you about all this shit with bones so I can make a new person and implement em.  The good news is though in doing this that I have to re-make all the people so I can make more variety and more accuracy in those people which will be a nice improvement, just sucks having to animate every behavior from the gound up.

I'm hoping I can "re-use" the bone struct/anim poses on using various meshes overlayed on them but that is a task to worry about trying to find a "quick" means to do later.  But it's what I'm aiming to get away with since it will save tons of time being able to re-use the anim framework with new/different people types.

Ahh I see. While I may be biased with low-end PC I too agree that if it's not playable them there is no point trying get it looking super nice. Very interesting, is this going to essentially be a remake/updated version of whatever you want to call it off EM4 or at least the running of it?

Guest
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.