Posts

Post marked as solved
1 Replies
534 Views
Hello, I'm going to use C's 2d array in my shaders. The reason is to use 2d index in buffer, instead using textures. Someone from the developers can dissuade me from doing this? #include <metal_stdlib> using namespace metal; struct DebugCell {     float4 info; }; struct DebugBuffer {     DebugCell cells[5][3]; // Column number(x), Row number(y). (x, y)  }; kernel void debugCells(device DebugBuffer *current [[buffer(0)]], uint2 id [[thread_position_in_grid]]) {     current[0].cells[id.x][id.y].info.xy = float2(id); } /*  after reshape for printing on CPU it prints  [[0.0,0.0], [1.0,0.0], [2.0,0.0], [3.0,0.0], [4.0,0.0], [5.0,0.0], [6.0,0.0], [7.0,0.0]]  [[0.0,1.0], [1.0,1.0], [2.0,1.0], [3.0,1.0], [4.0,1.0], [5.0,1.0], [6.0,1.0], [7.0,1.0]]  [[0.0,2.0], [1.0,2.0], [2.0,2.0], [3.0,2.0], [4.0,2.0], [5.0,2.0], [6.0,2.0], [7.0,2.0]]  */
Posted
by shiny.
Last updated
.
Post not yet marked as solved
1 Replies
539 Views
Hello. I found that the property teamPlayerID in GKLocalPlayer.local does not match with property of instance match(GKMatch).players[0] on other device example: 1st device me: T:e96ffe8e2c2113a1081345d8175dd34a, enemy: 159791492614296288 2nd device me: T:5445ac43188d54e227751262416576f2 enemy: 159791492784529792 While if I use the deprecated property playerID, it works perfect 1st device me: G:1459229978 enemy: U:b128518d718a7a11e43d83f33a7e43cb 2nd device: me: U:b128518d718a7a11e43d83f33a7e43cb enemy: G:1459229978
Posted
by shiny.
Last updated
.
Post not yet marked as solved
1 Replies
524 Views
Hello. How to make triangels not transpirient? Can you post link to any tutorial about it?https://vimeo.com/387975739
Posted
by shiny.
Last updated
.
Post not yet marked as solved
2 Replies
740 Views
In 2016 on WWDC was presented the GKGameSession. And I thinked it was very intresing API.But when now I returned to the Game Develop I discovered GKGameSession was depricated?100 players was too much for Game Centers live servers? What is the reason of these step?
Posted
by shiny.
Last updated
.