Shades and brushes

BlitzMax Forums/MiniB3D Module/Shades and brushes

Hezkore(Posted 2008) [#1]
Whenever i apply brushes via PaintSurface the models shade goes away.

Here's a shot without the brushes:


And here's a shot with brushes:

Notice how flat everything looks with the brushes applied.

How can i keep the dark shades even after applying brushes?


simonh(Posted 2008) [#2]
Try experimenting with TextureBlend modes.


Hezkore(Posted 2008) [#3]
Ok, I guess you mean BrushBlend()?, I've tried all of the modes and they only make things really weird...
"multiply" makes everything black...
"add" makes everything transparent :S


simonh(Posted 2008) [#4]
No, TextureBlend - that mesh is textured isn't it?


Hezkore(Posted 2008) [#5]
The mesh is built on the spot with AddMesh and all the different surfaces is textured with PaintSurface.


simonh(Posted 2008) [#6]
The brush still has a texture though. If you're using LoadBrush (which doesn't allow you to get at the texture easily), then try instead using CreateBrush, then using LoadTexture and BrushTexture before using PaintSurface. Set TextureBlend with the loaded texture.