Player view in replays

Player view in replays

Requests for features in the spring code.

Moderator: Moderators

Post Reply
Ares
Balanced Annihilation Developer
Posts: 555
Joined: 19 Mar 2011, 13:43

Player view in replays

Post by Ares »

I think giving replay viewers (and spectators) an option to follow a "players eye view," would be an interesting feature and help newer players pick up the game and everyone else to improve. (Especially for viewing tournament games and such).

There are already little dots on screen where player's cursors are pointing so would it be possible to lock the camera view to this somehow?

It wouldn't be enabled by default, an action such as clicking on the eye in advanced player list would lock your view to that player. However, by panning the screen tracking stops - until the next time you want to turn it on again.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Player view in replays

Post by Jools »

This feature already exists. Get the lockcamera widget.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Player view in replays

Post by CarRepairer »

Jools wrote:This feature already exists. Get the lockcamera widget.
Only works if the player turned on the widget and set it to broadcast. Unlikely.
Ares wrote: There are already little dots on screen where player's cursors are pointing so would it be possible to lock the camera view to this somehow?
Good news for you! This is already done. Fire up a game of ZK and click on settings > camera > follow player cursor. You may need to enable the Combo overhead camera widget.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Player view in replays

Post by Jools »

CarRepairer wrote:Good news for you! This is already done. Fire up a game of ZK and click on settings > camera > follow player cursor
Only works in ZK. Unlikely ;)
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Player view in replays

Post by CarRepairer »

Jools wrote:
CarRepairer wrote:Good news for you! This is already done. Fire up a game of ZK and click on settings > camera > follow player cursor
Only works in ZK. Unlikely ;)
Wrong. Many mods have allycursors enabled already. All you need to do is get the camera widget to follow them. That's what the OP asked for.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Player view in replays

Post by Jools »

Yeah yeah, I was just trying to be a smartass.

Anyway, does he have to dig the widget ftom the latest ZK release or is there a discrete release of it somewhere?
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Player view in replays

Post by smoth »

it is the ca camera widget but yeah he would probably have to dig it out of the repository site. Probably better that way otherwise with the way things are in spring, he would have a 2 year old version.
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Player view in replays

Post by REVENGE »

Follow-cursor is not the function the OP is looking for.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Player view in replays

Post by CarRepairer »

Read second paragraph of OP.
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Player view in replays

Post by REVENGE »

CarRepairer wrote:Read second paragraph of OP.
Read first sentence of OP.
Pako
Posts: 174
Joined: 12 Jul 2009, 18:57

Re: Player view in replays

Post by Pako »

I was remaking optimized version of this ally cursors widget to support camera following and mouse cursor in screen space too, but there seemed to be missing Lua call to project the others mouse coordinates to world.

So Feature request: Spring.TraceCameraRay(camera, x,y)
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Player view in replays

Post by jK »

Pako
Posts: 174
Joined: 12 Jul 2009, 18:57

Re: Player view in replays

Post by Pako »

No. I want to send the mouse coordinates as screen coordinate to other players not world coordinates. Then just send camera too and do a trace to world with that camera. Also drawing other players screen edges needs ray tracing wit different camera.

When mouse is send as screen coordinates it is easier to filter and probably more accurate.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Player view in replays

Post by CarRepairer »

1) If the menu exists in the game you're playing:

Go to Settings > Camera and check this box:

Image

2) If the menu doesn't exist in the game you're playing:

Get this widget

http://code.google.com/p/zero-k/source/ ... a_cofc.lua

Look for this code:

Code: Select all

follow = {
                name = "Follow player's cursor",
                desc = "Follow the cursor of the player you're spectating (needs Ally Cursor widget to be on).",
                type = 'bool',
                value = false,
                path = 'Settings/Camera',
        },
change "value = false" to be true.
Attachments
screen00021.jpg
(183.65 KiB) Downloaded 2 times
Post Reply

Return to “Feature Requests”