Gabriel Posted February 6, 2012 Share Posted February 6, 2012 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); } Quote Link to comment Share on other sites More sharing options...
Road Kill Kenny Posted February 6, 2012 Share Posted February 6, 2012 What format are you saving your image in before converting to .dds. If you want alpha you need to save as .tga files Quote 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 More sharing options...
Gabriel Posted February 6, 2012 Author Share Posted February 6, 2012 hi, i try now with tga (save as tga) , but LoadTexture retun NULL with "Screen.tga" Thank Quote Link to comment Share on other sites More sharing options...
Road Kill Kenny Posted February 6, 2012 Share Posted February 6, 2012 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 Quote 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 More sharing options...
Gabriel Posted February 6, 2012 Author Share Posted February 6, 2012 My Link ! Thank Screen.rar Quote Link to comment Share on other sites More sharing options...
Canardia Posted February 6, 2012 Share Posted February 6, 2012 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. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Gabriel Posted February 6, 2012 Author Share Posted February 6, 2012 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 Quote Link to comment Share on other sites More sharing options...
Marleys Ghost Posted February 6, 2012 Share Posted February 6, 2012 Works fine for me in Blitzmax... Quote 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 More sharing options...
Gabriel Posted February 6, 2012 Author Share Posted February 6, 2012 hooo ? you use the same code ? TTexture m_ScreenMask=LoadTexture ("abstract::Screen.dds"); .. { UpdateFramework(); RenderFramework(); SetBlend(1); DrawImage( m_ScreenMask,0,0,1280,1024); SetBlend(0); Flip(0); } Quote Link to comment Share on other sites More sharing options...
Gabriel Posted February 6, 2012 Author Share Posted February 6, 2012 i have this result :-( !!! Quote Link to comment Share on other sites More sharing options...
macklebee Posted February 6, 2012 Share Posted February 6, 2012 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... Quote 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 More sharing options...
Marleys Ghost Posted February 6, 2012 Share Posted February 6, 2012 I tried your texture in two apps written in Blizmax using LE, one using framework the other not, and it was fine in both. Quote 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 More sharing options...
Gabriel Posted February 6, 2012 Author Share Posted February 6, 2012 Hoho here is a very pertinent remark, I rename the file and it works indeed ^ ^ I must be deeply stupid ^^, a week that leaves nothing good to predict for me! Again thank you all Gabriel Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.