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.

Code Snippets / [DBC] Ghost Limb

Author
Message
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 10th Mar 2008 01:15 Edited at: 10th Mar 2008 07:44
While answering a question on another board an idea came to mind on how to ghost a limb. The method is this:

[EDIT] I've changed the method a bit -

1. Create or load 2 of the same object with limbs
2. Consider object 1 the main object (to have ghosted limbs)
and object 2 as the "ghost enabler" so to speak
3. Position and animate the objects in the same place and speed
4. For the limb that you want ghosted of object 1, hide the limb of object 2
5. Ghost object 1 on.

That should do it!

Here's an example:



Enjoy your day.
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 10th Mar 2008 09:11
That`s a great idea. Latch! although, it`s going to slow down the game rapidly.

So, you said position and animate both objects at the same place and speed. Object 1 is ghosted, object 2 isn`t. You hide the limb from object 2 that you want ghosted. But you forgot to hide the limb from object 1 you don`t want ghosted.

Anyway, that`s a great method and thanks for helping me out.

TheComet

Oooooops!!! I accidentally formated drive c.
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 10th Mar 2008 20:01
Quote: "That`s a great idea. Latch! although, it`s going to slow down the game rapidly."

It may depending on the number of objects displayed at once that need ghosted limbs.

Quote: "But you forgot to hide the limb from object 1 you don`t want ghosted."


I thought about that... And maybe it would help with performance if you had many objects displayed at the same time that you wanted ghosted limbs, I haven't run any benchmarks so I don't know how much of an improvement on speed there would be. For management sake, I left it out because if you had a 50 limb object you wanted to ghost one limb on, you'd have to hide 49 of the limbs you didn't want ghosted, then show them when ghosting was off; and on the flip, when you didn't ghost a limb, you could hide object 2. I just wanted to get to the point of ghosting the limb. The feasibility of hiding everything not ghosted really would depend on the performance increase. Run some tests, see what works best.

I don't doubt there are a lot of optimizations that can be made on this. Like if you know you'll only ever ghost the visor of a helmet, you might just have a visor object glued to the helmet and ghost that.

Enjoy your day.

Login to post a reply

Server time is: 2024-11-22 13:02:22
Your offset time is: 2024-11-22 13:02:22