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…

8,963 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,154 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…

6,838 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.

5,464 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…

5,778 views

Okay, a few of them. 

The code has structures that are the wrong size. Why do you have a 100 byte array to hold 3 bytes individually, which is much too large? Why are you building a large, potentially unbounded size string out of another 100 byte array which may be too small?  The first is…

5,347 views

Ok so as the title says I'm asking how to use LineRenderer to draw borders out of bitmap. So the problem is that if I use Texture2D to get pixels color and for loop for x and y to draw this on 3d terrain I will go one line after another and that will not work for LineRender, because at the point wh…

2,252 views
Advertisement
Advertisement