• Advertisement

Archived

This topic is now archived and is closed to further replies.

Characters That Hold Things

This topic is 5453 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm having trouble with characters that carry simple objects and I wanted to get some feedback. My toolkit is 3ds Max. I'm exporting a static (unanimated) 3DS mesh from each frame and converting them to a collection of X files, which animated in succession produce the frameset. With me to this point? Now, let's say I want to get a bunch of X files of a character swinging around a sword or something. In this case, I'm actually outputting the character and object in a single 3DS file. My relative coordinates are somehow getting thrown off in the exported files. Everything renders just fine in 3DS. This seems pretty simple. So what am I doing wrong and how should I be doing this? [edited by - hundel on May 6, 2003 12:18:11 PM]

Share this post


Link to post
Share on other sites
Advertisement
I''ve asked this about a year ago - never got any help. Help me out guys, you wouldn''t believe how far out my workarounds for this have been over the last year. Believe me, any advice I get will be "payed forward" in forums where I do know some answers...

Share this post


Link to post
Share on other sites
If I pull the X files from my own DirectX engine and place it in the MS sample X file renderer, Quick3D, or any other X file renderer, the object floats away from the character.

Guessing this should be resolved from the 3DS Max side. In other words, when I export two objects together in one file, their relative coordinates seem to get messed up because I am very informal in my knowledge of 3DS Max and probably have not followed a tight procedure for object pivot centers, etc before merging them into a scene or exporting them together to a file.

Any ideas? What's your procedure for merging two objects into a file? Do they always export as they look on the screen, or do they separate strangely if you don't have their relative centers normalized or something?

[edited by - hundel on May 9, 2003 11:32:12 AM]

[edited by - hundel on May 9, 2003 11:32:54 AM]

Share this post


Link to post
Share on other sites
well, if the object, like a sword or weapon, is always going to be held, why not make it one model instead of two?
--or--
if the objects are not always held, or can be changed, try exporting them in separate files and see what happens.

Share this post


Link to post
Share on other sites
Yeah - thanks. Those are actually my current workarounds! The only problem is I''ve been doing that for a year now. It has made it a bit more time consuming to swap objects and reexport everything, etc.

I know I must be doing something simple wrong. One thing I''d like to do is export a couple of dummy objects and play around with them until I can reproduce the problem.

Share this post


Link to post
Share on other sites
I have a very strong feeling that this is a programming problem, not a "visual arts" problem. Mostly because this sort of thing has to do with how the engine you use works with weapon models (for example).
For instance, in HalfLife (IIRC), they simply have a bone that''s not attached to anything, but which is used to align the position of the gun. The gun is attached to the bone by the game, as the need arise.
I would venture that you simply create a bone in your weapon to be held of some standard size. Then in your player model, you must include the same sized bone where you want the weapon to be held. Then simply align the two models using the identical bones... does that make sense ? Otherwise go and ask in the graphic programming or the DirectX forum.
Hope it helps !


Sancte Isidore ora pro nobis !

Share this post


Link to post
Share on other sites
Thanks ahw.

Wouldn''t it be odd if the sample X file renderer Microsoft ships with DX would have the same bug with bones? All I''m doing is rendering the contents of the X file (no bones about it).

The X file renders the same in my engine as in the DX sample code. I could probably try it out in OpenGL, but I''m guessing the coordinates in the export file is the problem if it renders the same in my code, DX sample code, Quick3D, etc, isn''t it?

I''m glad I''m getting feedback though - thanks and keep it coming. I''ll have more info for you when I get a few minutes to play around with just merging and exporting some test cubes with their own local coordinates and what not...

Share this post


Link to post
Share on other sites
I''m not sure I can be any help at all here, but in Blender there''s the ability to Parent an object to another object so that if the Parent moves the Child moves with it. No idea how that is done in 3DS.

Share this post


Link to post
Share on other sites
Thanks TechnoHydra. I used a link in 3DS Max.

Noticed that if I go into the IK of the carried object, select pivot, and move its relative center, this effects the position its vertices export to. I could tweak the relative center until the object lined up, but there''s just too much trial and error involved!

If anyone has a standard practice for merging two source files in 3DS Max, exporting as a single 3DS file, and getting the conv to an X file to land the objects in their correct relative positions, please post. I''m sure it''s my non-standard (self-taught) ways that are to blame.

Share this post


Link to post
Share on other sites

  • Advertisement