Categories
Game Creation Mastering Development

How to add sprite batch on tile in isometric map in Libgdx

I’m using Libgdx to create an isometric game , but now I have problem. I want to add sprite on tile (3,4) , but I can’t do this, so I searched on stackoverflow , and I found this code :- public Vector2 twoDToIso(Vector2 punto) { Vector2 tempP = new Vector2(0, 0); tempP.x = (punto.x – […]

Categories
Game Creation Mastering Development

Trouble generating a depth map (black screen)

I am having trouble generating a depth map for my scene. I tried to figure out this issue a 2 weeks ago and got nowhere after days of trying to fix it, so I took a break and tried to tackle it again today. I’m still stuck and with no ideas. Here’s the main code: […]

Categories
C++ Development

C++ AVX2 Instrinsic function Non-Standard Size

I am trying to use AVX2 intrinsic functions with C++. I am using floats packed into __m256. There are 8 floats which can fit in a register. But what happens if I have less than 8 floats, say I have 5. In that case, the lower 3 floats have garbage values. float a[5] = {1.0f, […]

Categories
C++ Development

C++ AVX2 Instrinsic function Non-Standard Size

I am trying to use AVX2 intrinsic functions with c++. I am using floats (__m256). Now there are 8 floats which can fit in a register. But what happens if I have less than 8 floats, say I have 5. In that case, the lower 3 floats have garbage values. float a[5] = {1.0f, 2.0f, […]