Categories
Mastering Development

Having some problems getting normal mapping working in Vulkan

Okay, I tried doing the normal mapping on a clean slate but the normal mapping is still coming out wrong. I’ve made sure the values are coming into the vertex shader the same way it’s going into the shader in opengl, but I’m still getting different results. I’ve got the code for the vulkan and […]

Categories
Mastering Development

how to best iterate through dictionary keys and compare the values?

I am very new to Programming and only started learning Python 3 about 2 wks ago. Doing an exercise that I found rather difficult, that is designed to create a function that accepts a dictionary as an argument and is supposed to determine if the dictionary represents a "valid" chessboard. Plz note the following codes […]

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

script help to extract value

I have the following text file that I want to manipulate add_journal_volume group=”RPCG_VLS_PSALTUXP201″ copy=”TW_PROD_VLS” uid=”60,06,01,60,01,d0,40,00,37,1e,85,5e,17,9c,ea,11″ uid_hash=”0xfd81565b74f160c3″ -f; add_replication_volume group=”RPCG_VLS_PSALTUXP201″ copy=”VNX057_CRR_PSALTUXP201″ replication_set=”RSet0″ uid=”60,06,01,60,0e,60,3c,00,16,f5,56,7f,02,d8,e8,11″ uid_hash=”0xd7c77496f2520fbc” -f; add_replication_volume group=”RPCG_VLS_PSALTUXP201″ copy=”VNX057_CRR_PSALTUXP201″ replication_set=”RSet1″ uid=”60,06,01,60,0e,60,3c,00,18,f5,56,7f,02,d8,e8,11″ uid_hash=”0x62d865f2be9ff409″ -f; Basically I just want to return as column delimited text using “;” RPCG_VLS_PSALTUXP201;TW_PROD_VLS;;60,06,01,60,01,d0,40,00,37,1e,85,5e,17,9c,ea,11 RPCG_VLS_PSALTUXP201;VNX057_CRR_PSALTUXP201;RSet0;60,06,01,60,0e,60,3c,00,16,f5,56,7f,02,d8,e8,11 RPCG_VLS_PSALTUXP201;VNX057_CRR_PSALTUXP201;RSet1;60,06,01,60,0e,60,3c,00,18,f5,56,7f,02,d8,e8,11 The tricky part is those add_journal_volume line there is […]

Categories
Mastering Development

Can someone tell me why I get an OpenGL stack underflow?

I wrote this code: void drawWinningScreen(GL10 gl) { gl.glMatrixMode(GL10.GL_PROJECTION); gl.glPushMatrix(); gl.glLoadIdentity(); gl.glMatrixMode(GL10.GL_MODELVIEW); gl.glPushMatrix(); gl.glLoadIdentity(); font.setTopColor(1, 1, 0); font.setBottomColor(1, 0, 0); font.spaceString(“You win”, 0f, 0f, .7f, .7f, -0.15f, gl); gl.glPopMatrix(); gl.glMatrixMode(GL10.GL_PROJECTION); gl.glPopMatrix(); int error = gl.glGetError(); } I think it should work, but it seems to be causing a stack underflow somewhere.

Categories
Development Linux Ubuntu

Primary graphics card & multiple monitors with nouveau driver Ubuntu 18.04

The default Ubuntu 18.04 installation using the Nouveau driver lets the machine boot, and all three displays function. The machine has no onboard graphics and cannot boot without atleast one graphics card installed. The machine cannot boot past BIOS with only the Radeon card. The BIOS hangs with Intel error code 5A (resetting bus). With […]

Categories
Development

An incomprehensible error appears at startup

Sorry for my English. I’m beginner in OpenglES. I wrote this code to draw simple table for airhockey. The code was taken from book OpenglES2 for Android and i’m a bit to modified it. When i launched my app, it’s crashed. Wherein do not appear an errors. The code from ShaderHandler.java public class ShaderHandler { […]