Advertisement

Latest bitmap Activity

enigma_dev
March 12, 2022 03:13 PM
DevBlog 18 - Instancing vs Batching Graphics Optimization



Using profiling to inform coding decisions; a real life example.  

To start off, I added the ability for ships to respawn. Giving some forgiveness if the player dies.

That works by adding a spawn component to the entity that needs to respawn fighter ships.

When respawning, you need to know how lo…

10,429 views
Advertisement

I have a bmp and I want to texture a mesh with it.I calculated the uvs for the mesh and sent them to vertex shader.I have no idea how to take the data from.bmp file and send it to pixel shader.
 

Bitmap bitmap = new Bitmap(texturePath);

The vertexShader.hlsl:

#pragma pack_matrix( row_major )
cbuff…
3,790 views

@undefined That might work for selecting a target to attack, but not for evaluating the best position to move to, which is the most important question. Additionally is the problem of threat influence maps. You can't have an accurate threat map without knowing exactly which tiles are visible.

I spent…

7,597 views

It is defined at the bottom of the code, and is called from WM_PAINT. This function blits the double buffer to the screen. The program fades a bitmap in and out using a loop. I'm reading a little more and found that 256 color bitmaps require an RGBQUAD struct to be initialized with a palette.

6,233 views
Airbatz
April 20, 2020 10:39 PM
Win32 - How to merge a pattern brush with a bitmap?

@endurion 

I have tried XORing the flags and get different results. Probably a case of undefined behaviour? None of the docs really talk about XORing two modes together. Anyway, I finally understand how this effect is done, and it's pretty simple. I switched out one graphic for another, ran the…

6,521 views
Advertisement
Advertisement