Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, 7th_zorro, dr_panther), 1,297 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
1st person with player model? #439694
04/07/14 16:24
04/07/14 16:24
Joined: Feb 2014
Posts: 35
Simon_Schwitzky Offline OP
Newbie
Simon_Schwitzky  Offline 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 Offline
Senior Member
Dico  Offline
Senior Member

Joined: Feb 2012
Posts: 371
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

Re: 1st person with player model? [Re: Dico] #439704
04/07/14 18:56
04/07/14 18:56
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
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

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 Offline OP
Newbie
Simon_Schwitzky  Offline 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: Simon_Schwitzky] #439708
04/07/14 19:20
04/07/14 19:20
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
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

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 Offline OP
Newbie
Simon_Schwitzky  Offline 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 Offline
User
rojart  Offline
User

Joined: Oct 2004
Posts: 900
Lgh
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.


Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P
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 Offline
Senior Member
Dico  Offline
Senior Member

Joined: Feb 2012
Posts: 371
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 .

Re: 1st person with player model? [Re: Dico] #439712
04/07/14 20:02
04/07/14 20:02
Joined: Feb 2012
Posts: 371
Dico Offline
Senior Member
Dico  Offline
Senior Member

Joined: Feb 2012
Posts: 371
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

Re: 1st person with player model? [Re: Dico] #439713
04/07/14 20:11
04/07/14 20:11
Joined: Feb 2012
Posts: 371
Dico Offline
Senior Member
Dico  Offline
Senior Member

Joined: Feb 2012
Posts: 371
you can see here my old game it use the first method : two model http://www.mediafire.com/download/9d7y4xbz7o6a5y7/setup.exe

Page 1 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1