06-05-2018, 10:05 AM
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
06-05-2018, 10:11 AM
that's is exactly how it should be. There should be an illusion that its completely different camera/ cameraman- sitting on a different spot in the arena, so the cut to the other camera (or zoom value) needs to be without any zoom in/out or anything like that.
That's why I asked you for more editable values than just zoom. I would love to simulate different camera placement in the arena, for each of this spots/ cameras.
That's why I asked you for more editable values than just zoom. I would love to simulate different camera placement in the arena, for each of this spots/ cameras.
06-05-2018, 11:00 AM
For centering in the middle, I went back and fixed it again (correctly), but it cuts off the far left corner of the arena when the camera has to turn that way. This makes it more difficult to fix. a conditional fix will cause the camera to jump.
06-05-2018, 11:14 AM
Yeah, seems to be much harder to fix it than we thought.
06-05-2018, 12:40 PM
So if I have time I'll try to make squares where the camera can zoom in
Making a second camera that tracks the puck could be difficult. Does the rotation on the code I gave you to fix centering work when on the far sides of the arena? Can it be used to move the camera left/right while still tracking? I think that rotation is centered on the puck, so it would still track.
Making a second camera that tracks the puck could be difficult. Does the rotation on the code I gave you to fix centering work when on the far sides of the arena? Can it be used to move the camera left/right while still tracking? I think that rotation is centered on the puck, so it would still track.
06-05-2018, 03:46 PM
When you figure out exactly what needs to be done, then doing it is rather quick
Logic:
Center means distance from front/back wall. Exact middle = 0, so near middle could be like 2. I take the absolute value to get a "zone" we can define as center.
Wall means distance from front/back wall. About 12.5 at the top wall, -12.5 at bottom wall. I take an absolute value to get a "zone" we can define as near the top or bottom wall.
"If near XXXX" means distance left/right (towards goalie). Goalie on right requires negative values. Roughly 0 for center and +/- 25 for either side.
Check:
If less than center value, then it is near the center, so check "If near center" and then "If near center 2". Checks by doing "If near center" + or - "Square size" vs actual location, which makes a square zone the puck can be in.
If not near center -> If more than Wall value, then is near wall, so check "If near wall" and then "If near wall 2".
04001844 40400000 //Near Center
04001848 41400000 //Near Wall
0400184c 40000000 //Square Size
04001850 00000000 //If near center -- will trigger at dead center of arena until set
04001854 c1b00000 //If near center 2 -- can edit, this was for a test by goalie on the right.
04001858 00000000 //If near edge -- will trigger while near top/bottom wall and center of arena until set.
0400185c 00000000 //If near edge 2 -- same
Ok, now for you to fill in the values. You need to start dolphin debugger (make a shortcut, right click -> properties, add: -d to the end of the target line). Go to view -> memory. Input 815df724 in the top right box. 815df724 will show the puck value for distance from left/right goalie. Put the puck where you want the zoom to occur then put the value into one of the "If near" spots. I can make a more complicated code later or add spots I guess. For now the spots have to either be near center or near wall.
It actually took me twice as long to add labels and write this up than it did to make the code.
Zoom Zones: (Show Spoiler)
$Enhanced Zoom Position check
C2BD04BC 0000000F
3C808000 38A00000
90A41840 C0841844
C0C4184C 38601850
FCA00A10 FC052040
41800014 38601858
C0841848 FC052040
41A00038 7C841C2E
ECA22028 FCA02A10
FC053040 38630004
4180001C 7C841C2E
ECA22028 FCA02A10
FC053040 41A1000C
48000004 38A00001
90A41840 38610040
60000000 00000000
04001844 40400000 //Near Center
04001848 42000000 //Near Wall NULL
0400184c 40000000 //Square Size
04001850 00000000 //If near center
04001854 c1b00000 //If near center 2
04001858 00000000 //If near edge
0400185c 00000000 //If near edge 2
$Enhanced Zoom From Position Check
C28600B0 0000001A
EC020032 3D608081
800BBC98 2C000000
408200BC 3D60803A
800BE2A4 2C000003
40820078 C04B0B28
FC401210 8242FFC0
2C120000 41A20028
3A520001 9242FFC0
41A0003C C002FFC4
2C120096 41A0004C //Edit 96 for duration
3800FDA8 9002FFC0 //Edit FFC0 to prevent repeat
48000024 3D608000
816B1840 2C0B0000
41A20014 C002FFC4
38000001 9002FFC0
48000054 3D608000
C02B1820 EC420824
C02B1824 EC420072
C02B1828 EC02082A
2C000002 40A20030
3D60814F 616B8240
C002FFDC C042FFD8
C02B0000 FC0100AE
FC200A10 EC421024
FC011040 41A10008
C002FFE0 00000000
04001820 451c4000
04001824 41c80000
04001828 42880000
043421A0 42aa0000
0434219c 438c0000
04342198 43660000
04342184 43100000 //Zoom amount for enhance
Use with sideview position code, not other zoom codes
You didn't post your new zoom values, so you can re-edit the familiar lines at the bottom of enhanced zoom if you need to.
C2BD04BC 0000000F
3C808000 38A00000
90A41840 C0841844
C0C4184C 38601850
FCA00A10 FC052040
41800014 38601858
C0841848 FC052040
41A00038 7C841C2E
ECA22028 FCA02A10
FC053040 38630004
4180001C 7C841C2E
ECA22028 FCA02A10
FC053040 41A1000C
48000004 38A00001
90A41840 38610040
60000000 00000000
04001844 40400000 //Near Center
04001848 42000000 //Near Wall NULL
0400184c 40000000 //Square Size
04001850 00000000 //If near center
04001854 c1b00000 //If near center 2
04001858 00000000 //If near edge
0400185c 00000000 //If near edge 2
$Enhanced Zoom From Position Check
C28600B0 0000001A
EC020032 3D608081
800BBC98 2C000000
408200BC 3D60803A
800BE2A4 2C000003
40820078 C04B0B28
FC401210 8242FFC0
2C120000 41A20028
3A520001 9242FFC0
41A0003C C002FFC4
2C120096 41A0004C //Edit 96 for duration
3800FDA8 9002FFC0 //Edit FFC0 to prevent repeat
48000024 3D608000
816B1840 2C0B0000
41A20014 C002FFC4
38000001 9002FFC0
48000054 3D608000
C02B1820 EC420824
C02B1824 EC420072
C02B1828 EC02082A
2C000002 40A20030
3D60814F 616B8240
C002FFDC C042FFD8
C02B0000 FC0100AE
FC200A10 EC421024
FC011040 41A10008
C002FFE0 00000000
04001820 451c4000
04001824 41c80000
04001828 42880000
043421A0 42aa0000
0434219c 438c0000
04342198 43660000
04342184 43100000 //Zoom amount for enhance
Use with sideview position code, not other zoom codes
You didn't post your new zoom values, so you can re-edit the familiar lines at the bottom of enhanced zoom if you need to.
Logic:
Center means distance from front/back wall. Exact middle = 0, so near middle could be like 2. I take the absolute value to get a "zone" we can define as center.
Wall means distance from front/back wall. About 12.5 at the top wall, -12.5 at bottom wall. I take an absolute value to get a "zone" we can define as near the top or bottom wall.
"If near XXXX" means distance left/right (towards goalie). Goalie on right requires negative values. Roughly 0 for center and +/- 25 for either side.
Check:
If less than center value, then it is near the center, so check "If near center" and then "If near center 2". Checks by doing "If near center" + or - "Square size" vs actual location, which makes a square zone the puck can be in.
If not near center -> If more than Wall value, then is near wall, so check "If near wall" and then "If near wall 2".
04001844 40400000 //Near Center
04001848 41400000 //Near Wall
0400184c 40000000 //Square Size
04001850 00000000 //If near center -- will trigger at dead center of arena until set
04001854 c1b00000 //If near center 2 -- can edit, this was for a test by goalie on the right.
04001858 00000000 //If near edge -- will trigger while near top/bottom wall and center of arena until set.
0400185c 00000000 //If near edge 2 -- same
Ok, now for you to fill in the values. You need to start dolphin debugger (make a shortcut, right click -> properties, add: -d to the end of the target line). Go to view -> memory. Input 815df724 in the top right box. 815df724 will show the puck value for distance from left/right goalie. Put the puck where you want the zoom to occur then put the value into one of the "If near" spots. I can make a more complicated code later or add spots I guess. For now the spots have to either be near center or near wall.
It actually took me twice as long to add labels and write this up than it did to make the code.
06-05-2018, 05:11 PM
Damn it, I fell asleep, sorry 
Reading thru it...

Reading thru it...
06-05-2018, 05:21 PM
(06-05-2018, 12:40 PM)One More Try Wrote: [ -> ]So if I have time I'll try to make squares where the camera can zoom in
Making a second camera that tracks the puck could be difficult. Does the rotation on the code I gave you to fix centring work when on the far sides of the arena? Can it be used to move the camera left/right while still tracking? I think that rotation is centred on the puck, so it would still track.
It didn't fix the far sides.
Yes, I think it still followed the puck.
Actually, even the code that you gave me for side faceoffs let me do a different spot for the camera placement and then it followed the puck. I made the camera like this for the faceoff, but then didn't use it because it would be too far for the faceoff on the other side. But yeah, even on the other far side it followed the puck.
06-05-2018, 06:36 PM
That second post looks to be super difficult for me, but I may try my best to learn it. But not sure if we are not doing it little to difficult though.
Because since now its clear that we can use a "timer" for the triggering the cameras we don't even have to use "spots" exactly. But rather just zones like in this picture:
![[Image: zbAkE8n.jpg]](https://i.imgur.com/zbAkE8n.jpg)
Now if I can add to any of this zone "prevent repeat" timer while editing the "FFC0" value, let's say around 1-3 minutes (different for each zone), add the duration around 1-3 seconds for each zone and make a unique camera for each zone with something similar to this code (it worked for the side faceoffs) :
[color=#000000]Gecko:[/color]
[color=#000000]$Faceoff Sideview editable[/color]
[color=#000000]C2861BCC 00000004[/color]
[color=#000000]389B00D0 C002FFDC[/color]
[color=#000000]D0040000 C002FFD8[/color]
[color=#000000]D0040004 C002FFD4[/color]
[color=#000000]D0040008 00000000[/color]
[color=#000000]AR:[/color]
[color=#000000]$Faceoff sideview camera mod[/color]
[color=#000000]0434219c c5354000 // up/dwn I think[/color]
[color=#000000]04342198 449c4000 // front/back I think[/color]
[color=#000000]04342194 00000000 // [color=#000000]left/right I think[/color][/color]
[color=#000000]043421A0 42880000 //Zoom[/color]
[color=#000000]Then that would be what we need, what do you think? [/color][color=#000000]Let me know how it feels to you
[/color]
Because since now its clear that we can use a "timer" for the triggering the cameras we don't even have to use "spots" exactly. But rather just zones like in this picture:
![[Image: zbAkE8n.jpg]](https://i.imgur.com/zbAkE8n.jpg)
Now if I can add to any of this zone "prevent repeat" timer while editing the "FFC0" value, let's say around 1-3 minutes (different for each zone), add the duration around 1-3 seconds for each zone and make a unique camera for each zone with something similar to this code (it worked for the side faceoffs) :
[color=#000000]Gecko:[/color]
[color=#000000]$Faceoff Sideview editable[/color]
[color=#000000]C2861BCC 00000004[/color]
[color=#000000]389B00D0 C002FFDC[/color]
[color=#000000]D0040000 C002FFD8[/color]
[color=#000000]D0040004 C002FFD4[/color]
[color=#000000]D0040008 00000000[/color]
[color=#000000]AR:[/color]
[color=#000000]$Faceoff sideview camera mod[/color]
[color=#000000]0434219c c5354000 // up/dwn I think[/color]
[color=#000000]04342198 449c4000 // front/back I think[/color]
[color=#000000]04342194 00000000 // [color=#000000]left/right I think[/color][/color]
[color=#000000]043421A0 42880000 //Zoom[/color]
[color=#000000]Then that would be what we need, what do you think? [/color][color=#000000]Let me know how it feels to you
[/color]06-05-2018, 06:53 PM
If the zones run the whole length, they'd be easy. Different timers is probably a good idea.
For the code I posted, all you need to do is the debugger thing to fill in the four "IF" Values based on how close/far to the goalie the puck should be.
The faceoff camera uses different camera code, so we can't rely on that.
There's also a value for puck height. You could zoom when the puck is hit in the air and when the goalie is holding it. Don't know if that'd be good.
For the code I posted, all you need to do is the debugger thing to fill in the four "IF" Values based on how close/far to the goalie the puck should be.
The faceoff camera uses different camera code, so we can't rely on that.
There's also a value for puck height. You could zoom when the puck is hit in the air and when the goalie is holding it. Don't know if that'd be good.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130