Previous Blog Next Blog
Prev/Next Blog
by date

Dynamic Attachment to objects

Dynamic Attachment to objects
Name:Ramen-sama
Date Posted:Jan 06, 2008
Rating:3.5 out of 5
Public:YES
Comments:YES
RSS Feed:GarageGames Blog feedor Subscribe with .
Profile Page:View profile page for Ramen-sama

Blog post
Ok, so some of you may be familiar with my "Platforms that players can ride" psuedo-resource. It allows players to ride DTS pathshape objects wherever they roam.

I've been working on this code ALL day, since about 10am till.. heck it's 3:41 now. I hit alot of snags, forgot what most of my code did, etc.

I've improved it. Now other types of objects can ride the platforms. Currently, Item, players, and static shapes can ride around. yay.

It's also 1.5.2 compatible. quite a few small changes were made to some of the files, so this has been "fixed"

Suppose i better show some pictures, how bout a video as well?


Here you can see the player object with a dozen or some objects attached to him. And off in the distance is our favorite orc to shoot, Kork, riding along a pathshape.

subvoicestudios.com/~ramensama/TorqueDynamicAttachment.avi 1024 x 768
subvoicestudios.com/~ramensama/TorqueDynamicAttachment-sm.avi 800 x 600

Now please know that there's a few times when the screen doesn't update, this was when i was pressing the ~ key... apparently that told fraps to do some benchmark crap at that time. it's not related to the attachment code which is instantaneous.

I could remake the video... but i'm not gonna :P



The next step for me is attaching in relation to node. So the player can reach down and pick something up, or something. Or Projectiles, swords, shrapnel will stick into the player and animate based on a node... but not restricted to the node's transform like mounting. As you can tell this is a step beyond mounting.

I've laid the ground work for most types of objects to work, but right now they need to have an interpolatetick function.




!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Updated code availalable in my link below. Check it out!
www.garagegames.com/mg/forums/result.thread.php?qt=57187
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Recent Blog Posts
List:02/22/08 - Dynamic Attachment Update - Animated Environments
01/06/08 - Dynamic Attachment to objects
01/03/08 - 3D Painting with Modo
12/25/07 - A* Pathfinding stuffs
02/14/07 - More Platforms, works in 1.5
01/28/07 - Platforms Players can Ride Version 1.1
09/20/06 - Kork's Journey into Lightwave 3D
08/09/06 - More Lightwave stuff.

Submit ResourceSubmit your own resources!

Brian \\\"Cybore\\\" Smith   (Jan 06, 2008 at 11:24 GMT)
Awesome stuff!! Something like this could be extremely handy. Ramen Rocks!

Ed Johnson   (Jan 06, 2008 at 21:54 GMT)
Fantastic!

Mike Rowley   (Jan 07, 2008 at 00:26 GMT)
That's really great Ramen. Keep up the great work you are doing. :)

Andy Hawkins   (Jan 07, 2008 at 03:46 GMT)
Is this going to be a resource? It's done in source right? Or is it script?

Ramen-sama   (Jan 07, 2008 at 03:52 GMT)
It's about 95% done in the source. I think i'll actually go ahead and do a real resource this time around.


www.garagegames.com/mg/forums/result.thread.php?qt=57187

Here's the thread i posted the code in, it's in a private thread. But i'll may submit a resource for it. Either way, i'll release the code. But i'd like to wait till i have the node attachment up and running.

Benjamin L. Grauer   (Jan 07, 2008 at 08:59 GMT)
Love the music, it makes the video much more awesome.

Ted Southard   (Jan 08, 2008 at 17:01 GMT)
Quote:

Currently, Item, players, and static shapes can ride around.


Makes me think of scenarios in FPS games where you try to grab a health pack and it jumps on the bus and rides away... heh... Awesome resource though!

>X-o

H.W. Kim   (Jan 10, 2008 at 13:21 GMT)   Resource Rating: 4
Cool! I should try it this. :-)

You must be a member and be logged in to either append comments or rate this resource.