Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

3 Dimensional Chat / Can you modify bone-based objects in real time?

Author
Message
Sho Ryu Ken
19
Years of Service
User Offline
Joined: 26th Jul 2005
Location:
Posted: 15th Dec 2005 02:32
I was wondering if there was any way to modify a 3D model (with bones) using DarkBasic commands in real time? For example, say you want to make a character fatter while being able to use the same animations (think Timesplitters Future Perfect and its Injector Gun). How would you morph the character and not have to make new animations with the character at different levels of fatness, but instead just modify variables to distort the object? If you can, how could you do it?
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 15th Dec 2005 06:39
this should actually be in the Darkbasic department, because it's based towards DB code more than the actual modeling.

and there are vertex editing commands in DBP, so you can adjust the actual verticies and make them fat... but that would be a pain...

Appointed by Jimmy as "MR. GAME REVIEW WIZARD GUY"
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 15th Dec 2005 09:28
You can easily scale bones in DBPro and it affects the vertices linked to them, just with the limb commands.

Like say bone 3 was the belly, if you:

SCALE LIMB Obj,3,300,100,300

That would make his belly fat, as long as it was orientated right, if not you'd have to scale other axis, but it's fairly straightforward.


Van-B

Put away, those fiery biscuits!
Sho Ryu Ken
19
Years of Service
User Offline
Joined: 26th Jul 2005
Location:
Posted: 16th Dec 2005 02:59
Thank you. Much appreciated. But just curious, could you, say offset bones too? For example, say a character gets impregnated by an alien and you want a part of them to bulge out (think aliens vs. predator 2), could you do that by offsetting bones?
DARKGuy
20
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 19th Dec 2005 06:23
OFFSET LIMB maybe?

Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 19th Dec 2005 13:07
Yeah, that would work. You could just animate that though, like have the alien inside but linked with a bone structure, then when the time comes have the character wrythe about and the alien pop out. You can't hide bones, but what I do is scale them to 0, like in my game, when you shoot someone in the shoulder, it shrinks the shoulder down to nothing, and that effectively takes the whole arm off.


Van-B

Put away, those fiery biscuits!
Sho Ryu Ken
19
Years of Service
User Offline
Joined: 26th Jul 2005
Location:
Posted: 21st Dec 2005 00:43
I tried doing it... With the scale limb I couldn't get anything other than the whole model growing, but when I tried to shrink other bones at the same time I got what looked like a shriveled fetus with a huge body. Then I tried to expand the hips (the character in question is female). I couldn't get the legs to stay the right size, and when the hips got too big the connection between the hips and torso became a bunch of jagged polys. As a last resort, I tried to put another bone (with 3D Canvas) attached to the hips (for offsetting), but for some reason the program doesn't like running when I have three or more bones overlapping... No error message or anything, program just ends as soon as it loads... So I switched over to limbs plus a neat cel shading effect doable in 3D Canvas... Problem is, I've got over 3000 polys even after doing drastic reduction because the stupid black outline doubles the poly count, I had over 5000 before reducing. And I can't reduce the hips,torso, or hair any more without getting a crappy outline. And now I have to add an expandable belly without it looking corny...
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 21st Dec 2005 10:06
Sounds like your having a rough time of it mate.

If it'd help, I might be able to come up with something, drop me an email with your models attached and a description of what you want the animation to do and I'll see about making a CharacterFX animation. CFX exports perfect .X files, so it'd load right into DBPro.

Never used much of Canvas, in fact I won it in a competition then gave it away - was never a big fan of that program.


Van-B

Put away, those fiery biscuits!
Sho Ryu Ken
19
Years of Service
User Offline
Joined: 26th Jul 2005
Location:
Posted: 22nd Dec 2005 03:52 Edited at: 22nd Dec 2005 05:36
OK I'll do that... But when I'm in secret (my parents don't know I have an email address).

EDIT: 10:35 PM, everybody's in bed. I'll email you.
Sho Ryu Ken
19
Years of Service
User Offline
Joined: 26th Jul 2005
Location:
Posted: 23rd Dec 2005 05:20
Sorry for double post, but I sent yet another email with updated code.
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 23rd Dec 2005 09:28
No worrie Sho, I got your second mail, then found the first one inbeside the spam - damn hotmail!

I'll get back to you as soon as I can (probably monday).


Van-B

Put away, those fiery biscuits!
Sho Ryu Ken
19
Years of Service
User Offline
Joined: 26th Jul 2005
Location:
Posted: 23rd Dec 2005 22:07
Cool. And by monday hopefully I'll have a pair of game pads (from Christmas). Then I'll be able to implement analog control when I'm done getting the basics set up here. Of course, it'll still support keyboard, but those with analog will have a big advantage. In the meantime, I'm going to learn how to use vectors from this tutorial by Philip... Anyway, thanks VB in advance and a Merry Christmas to you! (Or Happy Hannukah or Kwanzaa or whatever )
P.S. I feel your pain about hotmail... At least it doesn't delete stuff immediately that it doesn't like...

Login to post a reply

Server time is: 2024-11-27 10:36:27
Your offset time is: 2024-11-27 10:36:27