Game Development Community

Change Pixels in a texture

by Howard Dortch · in Torque Game Engine · 12/11/2006 (8:14 am) · 4 replies

Are there any methods to write into a GUI bitmap texture and change some of the pixels?

#1
12/11/2006 (8:47 am)
Just change the gui bitmap ?
#2
12/11/2006 (12:19 pm)
Changing bitmaps in memory usually requires a bit of platform specific code (or all-platform code thats really slow)

might want to just use different bitmaps or overlays on parts of the image you need to change
#3
12/11/2006 (1:15 pm)
Guess I didn't make it clear.
@KoR would have to have every possible permutation of every combinations of dots on the texture would require 20 to 30 billion textures.
I have a overhead shot of the landscape and want to mark a location with a dot. I either have to set a pixel at the location in the bitmap or as you say do an overlay. Problem with the overlay is you can't have 2 polygons in a one pixel area on the gui. Locking the texture and simply writing to it would be the answer in the engine but didn't know if there was a simple way to do it with the gui tools available. I saw a resource a few years back I think that addressed this but can't find it using search.
#4
12/11/2006 (1:41 pm)
So let your polys be larger and just use a texture with only one non-transparent pixel if you absolutely have to use a single pixel.