1st person with player model?

Posted By: Simon_Schwitzky

1st person with player model? - 04/07/14 16:24

Hello guys,

Simon again and today with the following question:
I want to set a first Person camera like in every Kind of shooter or something like that, eg minecraft. I want that you just can see the right Hand, but nothing more. IMPOTANT: the Player should be visible in single AND multiplayer.
Thanks for help, Simon :-)
Posted By: Dico

Re: 1st person with player model? - 04/07/14 18:13

if you want to add camera to xyz for model just do this
Code:
vec_set(camera.x,vector(player.x,player.y,player.z)); /// add camera to player xyz
 camera.pan = player.pan ; 
 camera.tilt += 5 * mouse_force.y;



if you want to add camera to a bone in player just do this :

Code:
VECTOR temp;
  vec_for_bone(temp,player,"head"); /// add camera to player head
  vec_set(camera.x,temp);
  camera.pan = player.pan ; 
  camera.tilt += 5 * mouse_force.y;



if you want to set player invisible to this camera , just do that

Code:
camera.genius = player;/// the player is now invisible inside view range



hope this help you laugh
Posted By: Ch40zzC0d3r

Re: 1st person with player model? - 04/07/14 18:56

Why not hiding player on client and just show models on other clients?
You can also use a special deformed model which fits better the camera arc and pan/tilt border laugh
Posted By: Simon_Schwitzky

Re: 1st person with player model? - 04/07/14 19:02

thanks for you two Responses.
@Dico:
I know this methods, but i want to see one arm of the Player.
When i set the camera to a bone or a vertex, i see the borders of the model and just a part of the arm...

@Chaoscoder
What du you mean? :-D
I'm german, so you better answer this german again please.:-)
Posted By: Ch40zzC0d3r

Re: 1st person with player model? - 04/07/14 19:20

Benutze für den Client wenn es multiplayer sein soll ein eigenes editiertes modell was deinen wünschen engepasst ist, auf den anderen cleints nimmst du das originale laugh
Posted By: Simon_Schwitzky

Re: 1st person with player model? - 04/07/14 19:25

Ich habe noch nicht so viel Erfahrung im Multiplayer, wie soll das gehen für ein eigentliches Modell zwei verschiedene zu erstellen?
Ich suche ja eher sowas wie:
Verstecke Körper, Bein, Kopf und rechter Arm Bone in der View :-O

Halt dass ich nur die Hand sehe wie z.B. in Minecraft...
Posted By: rojart

Re: 1st person with player model? - 04/07/14 19:26

Originally Posted By: Simon_Schwitzky
... I know this methods, but i want to see one arm of the Player.
When i set the camera to a bone or a vertex, i see the borders of the model and just a part of the arm...

Check the Palmbay Painkiller's demo sample, maybe it helps.
Posted By: Dico

Re: 1st person with player model? - 04/07/14 19:56

Originally Posted By: Simon_Schwitzky

@Dico:
I know this methods, but i want to see one arm of the Player.
When i set the camera to a bone or a vertex, i see the borders of the model and just a part of the arm...


use two model is better like counter strike or call of dutty.
one model is the player and the second for the arms , hide the player and leave arm visible .
Posted By: Dico

Re: 1st person with player model? - 04/07/14 20:02

if you want to use one model , there is an idea :

move bone to player eyes and set camera to this bone and set camera.arc above 80 to see player arms
Posted By: Dico

Re: 1st person with player model? - 04/07/14 20:11

you can see here my old game it use the first method : two model http://www.mediafire.com/download/9d7y4xbz7o6a5y7/setup.exe
Posted By: Simon_Schwitzky

Re: 1st person with player model? - 04/08/14 05:12

ok thank you.
i think i'll use the two model idea, thank yo. :-)
i tell you when i get in trouble.. :-)
© 2024 lite-C Forums