Jump to content

DDS and DrawImage


Gabriel
 Share

Recommended Posts

Hello,

I have a bitmap that I want to display with the transparancy. I use "Paint.net" when I backup my file Screen.dds (DXT5) my image to the screen is black! I try with "and paintshop plugin nvidia" then "MakeDDS" and it is alway the same thing!

 

Mais le plus vexant "doors1.dds" fonctionne tres bien. sauf si je l'edite ou le converti avec "MakeDDS.exe"

 

Some can give me a little color in my code;-)?

 

TTexture m_ScreenMask=LoadTexture ("abstract::Screen.dds");
..

{
UpdateFramework();
RenderFramework();
SetBlend(1);
DrawImage( m_ScreenMask,0,0,1280,1024);
SetBlend(0);
Flip(0);
}

Link to comment
Share on other sites

no you need to make your textures .tga and then convert the tga to .dds

 

.bmp and .jpeg don't have an alpha channel. So when you convert .bmp and .jpeg to a .dds you won't have an alpha channel

STS - Scarlet Thread Studios

AKA: Engineer Ken

 

Fact: Game Development is hard... very bloody hard.. If you are not prepared to accept that.. Please give up now!

Link to comment
Share on other sites

You can also use png, because tga files are insanely huge, since they have no lossless compression.

When you save as dds, you need to export mipmaps also, else the texture will be completely black in LE2.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

I'm not sure I can use the command LoadTexture with png or tga! I think the only DDS I do not return an error with this API.

 

 

I also i try "mips map option", but always black

 

Which can test the file and tell me if he can see the image completely black?

 

thank you

 

Gabriel

Link to comment
Share on other sites

Works fine for me in Blitzmax...

 

 

post-12-0-26496700-1328541126_thumb.jpg

AMD Bulldozer FX-4 Quad Core 4100 Black Edition

2 x 4GB DDR3 1333Mhz Memory

Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5

Windows 7 Home 64 bit

 

BlitzMax 1.50 • Lua 5.1 MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro

3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET

 

LE 2.5/3.4 • Skyline UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0

 

Marleys Ghost's YouTube Channel Marleys Ghost's Blog

 

"I used to be alive like you .... then I took an arrow to the head"

Link to comment
Share on other sites

works fine in lua as well...

 

perhaps you are not loading the file you think is being loaded? by chance do you have multiple files with the same name or perhaps you have changed the file since you uploaded? because the one you provided works fine...

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Link to comment
Share on other sites

I tried your texture in two apps written in Blizmax using LE, one using framework the other not, and it was fine in both.

AMD Bulldozer FX-4 Quad Core 4100 Black Edition

2 x 4GB DDR3 1333Mhz Memory

Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5

Windows 7 Home 64 bit

 

BlitzMax 1.50 • Lua 5.1 MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro

3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET

 

LE 2.5/3.4 • Skyline UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0

 

Marleys Ghost's YouTube Channel Marleys Ghost's Blog

 

"I used to be alive like you .... then I took an arrow to the head"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...