Google Groups Home
Help | Sign in
3D Model moveable elements
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
jason.height@gmail.com  
View profile
 More options Mar 11, 10:38 pm
Newsgroups: comp.games.development.programming.misc
From: "jason.hei...@gmail.com" <jason.hei...@gmail.com>
Date: Tue, 11 Mar 2008 19:38:38 -0700 (PDT)
Local: Tues, Mar 11 2008 10:38 pm
Subject: 3D Model moveable elements
Hello,

Prefix: I am very much new to 3d modeling and programming. I
appreciate that this maybe somewhat off topic.

I was wondering if anyone has recommendations as to an easy method of
moving elements of a 3D model. For example a rudder on a plane. I have
written my own 3ds file format parser and openGL renderer which works
for static models, so i could have a model of a plane, and then
individual models for each of the "moveable" elements.

Using this approach i believe that this would require that the axis of
rotation etc would need to be hardcoded into the source code for each
of the moveable items. Ideally i would like to say "plane.rudder.angle
= 5.0; plane.left_flap.angle = -1.0;" etc etc where "rudder" and
"left_flap" were "moveable" elements in the model. AFAIK, the level of
information to facilitate this is not contained in a 3DS model.

Is there a different file format that can be used in this instance?
Unfortunately i dont
really know what to search for on the net.

Thoughts/Recommendations appreciated.

Jason


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan Mates  
View profile
 More options Mar 12, 12:08 am
Newsgroups: comp.games.development.programming.misc
From: nat...@visi.com (Nathan Mates)
Date: Wed, 12 Mar 2008 04:08:40 -0000
Local: Wed, Mar 12 2008 12:08 am
Subject: Re: 3D Model moveable elements
In article <8f859f24-a853-497d-879e-d708bccf7...@d45g2000hsc.googlegroups.com>,

jason.hei...@gmail.com <jason.hei...@gmail.com> wrote:
>I was wondering if anyone has recommendations as to an easy method of
>moving elements of a 3D model. For example a rudder on a plane. I have
>written my own 3ds file format parser and openGL renderer which works
>for static models, so i could have a model of a plane, and then
>individual models for each of the "moveable" elements.

   Disclaimer: I'm more of a programmer, not an artist. However, to my
knowledge, in most 3D packages, you can set up a hierarchy of parts of
the model. For example, a tank may have a separate part for the
turret, which can rotate. Or, bipedal humans will have two legs, each
of which has a bunch of separate pieces. These are all part of the
model's whole, but due to the hierarchy, they can be manipulated
separately.

   This way, the rudder on a plane is just the same as the foot on a
human -- part of the model, but can be moved independently. What you
should do is two pronged: (1) use your modeling software to create a
model with multiple pieces. (There are probably several example files
in its tutorials section.) (2) Make your graphics code able to read
and display such files. Once you can do that, then you can hook up
some sort of abstraction layer, so that your game can say "rotate
rudder 5 degrees left" and that turns into the appropriate matrix
applied to the rudder's piece.

Nathan Mates
--
<*> Nathan Mates - personal webpage http://www.visi.com/~nathan/  
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A. Heinlein


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Miles Bader  
View profile
 More options Mar 12, 12:58 pm
Newsgroups: comp.games.development.programming.misc
From: Miles Bader <mi...@gnu.org>
Date: Thu, 13 Mar 2008 01:58:41 +0900
Local: Wed, Mar 12 2008 12:58 pm
Subject: Re: 3D Model moveable elements

"jason.hei...@gmail.com" <jason.hei...@gmail.com> writes:
> Using this approach i believe that this would require that the axis of
> rotation etc would need to be hardcoded into the source code for each
> of the moveable items. Ideally i would like to say "plane.rudder.angle
> = 5.0; plane.left_flap.angle = -1.0;" etc etc where "rudder" and
> "left_flap" were "moveable" elements in the model. AFAIK, the level of
> information to facilitate this is not contained in a 3DS model.

Maybe I misunderstand what you want, but the 3ds file format certainly
has a hierarchy of parts, with transformation matrices defining the
relationships between them.  In fact it seems to have even more
elaborate support for hierarchial modeling than that ... looking at the
definitions in lib3ds/node.h, I see things like quaternions etc ....

-Miles

--
/\ /\
(^.^)
(")")
*This is the cute kitty virus, please copy this into your sig so it can spread.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jason.height@gmail.com  
View profile
 More options Mar 12, 8:33 pm
Newsgroups: comp.games.development.programming.misc
From: "jason.hei...@gmail.com" <jason.hei...@gmail.com>
Date: Wed, 12 Mar 2008 17:33:17 -0700 (PDT)
Local: Wed, Mar 12 2008 8:33 pm
Subject: Re: 3D Model moveable elements
On Mar 13, 2:58 am, Miles Bader <mi...@gnu.org> wrote:

Many Thanks. I am a newbie at this, and was not aware of the
capabilities of 3ds or that lib3ds was readily available (so i didnt
need to roll my own!)

Jason


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Miles Bader  
View profile
 More options Mar 12, 8:45 pm
Newsgroups: comp.games.development.programming.misc
From: Miles Bader <mi...@gnu.org>
Date: Thu, 13 Mar 2008 09:45:24 +0900
Local: Wed, Mar 12 2008 8:45 pm
Subject: Re: 3D Model moveable elements

"jason.hei...@gmail.com" <jason.hei...@gmail.com> writes:
> was not aware of the capabilities of 3ds or that lib3ds was readily
> available (so i didnt need to roll my own!)

Here's the library I was talking about:

   http://lib3ds.sourceforge.net/

Even if you want to continue using your own library, lib3ds would
probably be a good source of information.

-Miles

--
Insurrection, n. An unsuccessful revolution.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google