Camera

markveidemanis
Member
 
Posts: 211
Joined: Thu Sep 27, 2012 15:41

Camera

by markveidemanis » Fri Apr 12, 2013 17:03

When the player is sitting or has died, the camera stays as it is. I would like the camera to change with the height of the player as it is to others so the player sees the perspective that they should see instead of the default height of the camera.
BitCoin: 1Eq4arvykGNa1YC2DbJpWcwGfMvtFGjAoR
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Fri Apr 12, 2013 18:43

Attaching the camera to the player model would be extremely laggy and wouldnt even work on all servers. The player active object is handled in the server and you cant really know if there is a model on all servers.

Also, how do you sit in the game?
 

markveidemanis
Member
 
Posts: 211
Joined: Thu Sep 27, 2012 15:41

by markveidemanis » Fri Apr 12, 2013 18:52

http://forum.minetest.net/viewtopic.php?id=3977
/sit

The camera moving works when i take damage or am in lava, its just client side.
BitCoin: 1Eq4arvykGNa1YC2DbJpWcwGfMvtFGjAoR
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Fri Apr 12, 2013 20:51

PilzAdam wrote:Attaching the camera to the player model would be extremely laggy and wouldnt even work on all servers. The player active object is handled in the server and you cant really know if there is a model on all servers.

Also, how do you sit in the game?


Something in Lua API could be used to change player collision radius, eye height, etc... would be useful. :D
 

User avatar
xavier108
Member
 
Posts: 227
Joined: Sat Nov 24, 2012 06:05
IRC: Ezlif

by xavier108 » Fri Apr 12, 2013 23:14

markveidemanis wrote:When the player is sitting or has died, the camera stays as it is. I would like the camera to change with the height of the player as it is to others so the player sees the perspective that they should see instead of the default height of the camera.

I don't think that will be a good.I think minetest will be laggy when you do that.
Ezlif :D
 

User avatar
Traxie21
Member
 
Posts: 753
Joined: Mon Dec 31, 2012 10:48

by Traxie21 » Sat Apr 13, 2013 13:53

How About LUA functions to rotate, move, and repotition the camera.
 

markveidemanis
Member
 
Posts: 211
Joined: Thu Sep 27, 2012 15:41

by markveidemanis » Sat Apr 13, 2013 14:25

I have an idea:
Move the player so he sees a different perspective but do this client side so he will look normal on the server. Maybe also use the pitch/yaw to manipulate the position.
BitCoin: 1Eq4arvykGNa1YC2DbJpWcwGfMvtFGjAoR
 

prestidigitator
Member
 
Posts: 632
Joined: Thu Feb 21, 2013 23:54

by prestidigitator » Sun Apr 14, 2013 00:45

I suggest looking at the Second Life API to get design ideas for functionality like this. It is a sandbox platform that is scaled extremely well for highly multi-player interactions and a strong client-server model like Minetest has. Things like setting camera positions in a specific context such that it works well between the client and server and can be automatically reverted to normal behavior have been solved there for a long time. Not everything is going to translate one-for-one by any means, but it would be a good start for checking out existing models of features like this.
 


Return to Minetest Features

Who is online

Users browsing this forum: Bing [Bot] and 11 guests

cron