|
1st person with player model?
#439694
04/07/14 16:24
04/07/14 16:24
|
Joined: Feb 2014
Posts: 35
Simon_Schwitzky
OP
Newbie
|
OP
Newbie
Joined: Feb 2014
Posts: 35
|
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 :-)
Die Menschen, die verrückt genug sind zu sagen, dass sie die Welt verändern werden, sind diejenigen, die es tuen! -Steve Jobs
|
|
|
Re: 1st person with player model?
[Re: Simon_Schwitzky]
#439702
04/07/14 18:13
04/07/14 18:13
|
Joined: Feb 2012
Posts: 371
Dico
Senior Member
|
Senior Member
Joined: Feb 2012
Posts: 371
|
if you want to add camera to xyz for model just do this
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 :
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
camera.genius = player;/// the player is now invisible inside view range
hope this help you
|
|
|
Re: 1st person with player model?
[Re: Ch40zzC0d3r]
#439706
04/07/14 19:02
04/07/14 19:02
|
Joined: Feb 2014
Posts: 35
Simon_Schwitzky
OP
Newbie
|
OP
Newbie
Joined: Feb 2014
Posts: 35
|
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.:-)
Die Menschen, die verrückt genug sind zu sagen, dass sie die Welt verändern werden, sind diejenigen, die es tuen! -Steve Jobs
|
|
|
Re: 1st person with player model?
[Re: Ch40zzC0d3r]
#439709
04/07/14 19:25
04/07/14 19:25
|
Joined: Feb 2014
Posts: 35
Simon_Schwitzky
OP
Newbie
|
OP
Newbie
Joined: Feb 2014
Posts: 35
|
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...
Die Menschen, die verrückt genug sind zu sagen, dass sie die Welt verändern werden, sind diejenigen, die es tuen! -Steve Jobs
|
|
|
Re: 1st person with player model?
[Re: Simon_Schwitzky]
#439710
04/07/14 19:26
04/07/14 19:26
|
Joined: Oct 2004
Posts: 900 Lgh
rojart
User
|
User
Joined: Oct 2004
Posts: 900
Lgh
|
... 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.
|
|
|
Re: 1st person with player model?
[Re: Simon_Schwitzky]
#439711
04/07/14 19:56
04/07/14 19:56
|
Joined: Feb 2012
Posts: 371
Dico
Senior Member
|
Senior Member
Joined: Feb 2012
Posts: 371
|
@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 .
|
|
|
|