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
Mastering Development

OpenGL, Java, LWJGL – Drawing multiple triangles using IBOs, VBOs and VAOs

I am trying to render two triangles on the screen at once, using two different VBOs so that I can add textures later (to my understanding, if you want to add different textures, you must make two VBOs?). I have tried using a combination of VAOs (both examples) and VAOs and IBOs (1st example). Edit: […]

Categories
Game Creation Mastering Development

Microsoft example ‘Creating a Basic Effect’ in XNA Game Studio 4.0 Documentation is not working

Why is this example not working, is it normal that the variable cubeVertices is not really given somewhere as a parameter? I’m getting an error like this: “The current vertex declaration does not include all the elements required by the current vertex shader. Position0 is missing.” using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; using […]

Categories
Development

How can I tilt the camera without tilting the object?

I made an object move in front of the camera. I multiplied the rotation matrix by the object matrix so that the object repeats the camera transformations. The problem is that when tilting the camera, the object also tilts. When tilting the camera, the object should not rotate relative to the screen. How can it […]