[Question] First Person Body

Grab your favourite IDE and tinker with the innards of game engines

[Question] First Person Body

Postby Gary on Sun Jan 24, 2010 12:31 am

Okay, I am trying this again, my idea is just to draw the player while in firstperson, and texture the arms and head something transparent. Main problem is animations, what animations and activities does the current player model system use (if any), how would I figure this out?



Old Post(no longer relevant):
I was wondering if anyone had any idea on how to do this. I've had a few ideas, I'll say two of them.

Attach camera to thirdperson eyes. Much like the first person ragdolls, I was thinking you could attach the camera to the head, though, I can easily see some problems, one; you would need to re-animate and code how the third person model works, as it is not in good sync nor are the animations or models detailed enough. Though you could add LODs to guns, so that only when you are really close that you see a lot of detail. So really, this seems like a good way to go. It would also be useful for MP as the thirdperson model would look and act better.


Second way is to make all the weapon's have a body in there model, though I doubt that this would look that good.

Whats your guy's thoughts on it? Any ideas or suggestions? I would like to do this sometime in the future for a mod.
Last edited by Gary on Tue Mar 29, 2011 7:58 am, edited 1 time in total.
Have a question related to modding or something I posted? Something that needs staff attention? I haven't been active lately, but feel free to PM me or message me on Steam(link below)

User avatar
Gary
Interlopers Staff
Interlopers Staff
 
Joined: Wed Dec 16, 2009 12:40 am
Location: USA, FL

Re: [Question] First Person Body

Postby coder0xff on Sun Jan 24, 2010 12:35 am

You don't even have to make it third person really. You just need to find the ShouldDrawLocalPlayer or whatever it's called, and then maybe make sure CalcView places the viewpoint slightly ahead of the face so you don't see artifacts from being inside the head. Or you could move the near clip plane out, which can also be done in calc view.
User avatar
coder0xff
Veteran
Veteran
 
Joined: Fri Jun 13, 2008 1:51 am

Re: [Question] First Person Body

Postby Gary on Tue Mar 29, 2011 7:59 am

Re-attempting this, look at OP for question.
Have a question related to modding or something I posted? Something that needs staff attention? I haven't been active lately, but feel free to PM me or message me on Steam(link below)

User avatar
Gary
Interlopers Staff
Interlopers Staff
 
Joined: Wed Dec 16, 2009 12:40 am
Location: USA, FL

Re: [Question] First Person Body

Postby Jordash on Tue Mar 29, 2011 10:50 am

I would be easier to use the MP code (if you aren't already) because that has the player animations already set up. Then it is as simple as coder0xff said and making them visible. I think you will have an issue of rotating on the spot though, from memory there aren't any rotating animations
User avatar
Jordash
Been Here A While
Been Here A While
 
Joined: Mon Sep 21, 2009 10:36 am
Location: Perth, Australia

Re: [Question] First Person Body

Postby srredfire on Tue Mar 29, 2011 2:34 pm

I have no idea how to do any of this, and probably am no help, but from what I gathered from no sleep, is that you're trying to make it so you can see your body in first person, ala Mirror's Edge, or any other game or some shit.

You might want to look at Dark Messiah: Might and Magic. They did it in that game.

You probably won't have access to the code I'm guessing, but it might help, they have the model for it available, which has all the animations and what not for it, so that may help as well.

If you don't have that game and you actually are interested in checking it out or need files from it, lemme know, PM me or something, I'd be glad to pack 'em up and give them to you.
srredfire
Veteran
Veteran
 
Joined: Sat Jul 22, 2006 10:44 pm

Re: [Question] First Person Body

Postby Surfa on Tue Mar 29, 2011 4:07 pm

Surfa
May Contain Skills
May Contain Skills
 
Joined: Sun Dec 30, 2007 3:04 pm

Re: [Question] First Person Body

Postby Gary on Tue Mar 29, 2011 8:57 pm

@Surfa; that doesn't work and at the top of the page it says it won't work for the OB engine.

Jordash wrote:I would be easier to use the MP code (if you aren't already) because that has the player animations already set up. Then it is as simple as coder0xff said and making them visible. I think you will have an issue of rotating on the spot though, from memory there aren't any rotating animations


Using MP code for an SP mod doesn't sound like it would work to well, quite a few differences that doesn't really work for an SP mod. Is it possible to add the necessary files to the SP solution?
Have a question related to modding or something I posted? Something that needs staff attention? I haven't been active lately, but feel free to PM me or message me on Steam(link below)

User avatar
Gary
Interlopers Staff
Interlopers Staff
 
Joined: Wed Dec 16, 2009 12:40 am
Location: USA, FL

Re: [Question] First Person Body

Postby zombie@computer on Tue Mar 29, 2011 9:26 pm

Gary wrote:@Surfa; that doesn't work and at the top of the page it says it won't work for the OB engine.

Odd. I mod OB code, added the above code, replaced green player model with alyx and it works okay.
When you are up to your neck in shit, keep your head up high
zombie@computer
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Fri Dec 31, 2004 5:58 pm
Location: Lent, Netherlands

Re: [Question] First Person Body

Postby Gary on Tue Mar 29, 2011 9:37 pm

I got it to work, animation problem.

It's not perfect, but I think it's just a matter of using the right activities.
Have a question related to modding or something I posted? Something that needs staff attention? I haven't been active lately, but feel free to PM me or message me on Steam(link below)

User avatar
Gary
Interlopers Staff
Interlopers Staff
 
Joined: Wed Dec 16, 2009 12:40 am
Location: USA, FL

Return to Programming

Who is online

Users browsing this forum: No registered users