DarkDino Posted March 31, 2013 Author Share Posted March 31, 2013 I have this error from DX8 3.0 Source!, I try to fix it but have a problem.I add thisRenderTexture Tex_Gui, frmMain.picInventory.CurrentX, frmMain.picInventory.CurrentX, 0, 0, Tex_Gui.Width + 15, Tex_Gui.Height + 15, Tex_Gui.Width + 15, Tex_Gui.Height + 15Below thisDirect3D_Device.BeginSceneAnd declare Tex_Gui etc etc, but in the game dont show Inventory.pngPlease help ![:(](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/sad.png) Link to comment Share on other sites More sharing options...
abhi2011 Posted March 31, 2013 Share Posted March 31, 2013 Why would you want to render a black texture over a picture box? Link to comment Share on other sites More sharing options...
DarkDino Posted March 31, 2013 Author Share Posted March 31, 2013 D: Noo the bug in EO 3.0 is this![](http://www.subeimagenes.com/img/waaaath-345454.PNG)I add thisRenderTexture Tex_Gui, frmMain.picInventory.CurrentX, frmMain.picInventory.CurrentX, 0, 0, Tex_Gui.Width + 15, Tex_Gui.Height + 15, Tex_Gui.Width + 15, Tex_Gui.Height + 15Add this because I see it in a forum solution Link to comment Share on other sites More sharing options...
abhi2011 Posted March 31, 2013 Share Posted March 31, 2013 That is the question. Why do you want to render black over a pic box? Just change the background color of the picture box into black. Link to comment Share on other sites More sharing options...
DarkDino Posted March 31, 2013 Author Share Posted March 31, 2013 Nooo ![:(](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/sad.png), The problem is![](http://www.subeimagenes.com/img/waaaath-345454.PNG)This the black box, i need delete this ![:(](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/sad.png). Link to comment Share on other sites More sharing options...
scoterr Posted March 31, 2013 Share Posted March 31, 2013 You can't remove that black thing. All You can is:1\. Rewrite the inventory drawing to use dx8 instead of picture box2\. Change the black texture to dx8 texture, so it will render two images. One for background and the second one for the front.. Link to comment Share on other sites More sharing options...
tslusny Posted March 31, 2013 Share Posted March 31, 2013 Abhi, stop trolling me ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png) Link to comment Share on other sites More sharing options...
abhi2011 Posted March 31, 2013 Share Posted March 31, 2013 > Abhi, stop trolling me ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png)Don't worry those were done before I changed my name. And plz shush Link to comment Share on other sites More sharing options...
DarkDino Posted March 31, 2013 Author Share Posted March 31, 2013 scotter how to change the black texture to dx8 texture? ![:(](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/sad.png) Link to comment Share on other sites More sharing options...
scoterr Posted March 31, 2013 Share Posted March 31, 2013 In```Sub DrawInventory()```Find:``` Direct3D_Device.Clear 0, ByVal 0, D3DCLEAR_TARGET, D3DColorRGBA(255, 255, 255, 0), 1#, 0 Direct3D_Device.BeginScene```Change it to:``` Direct3D_Device.Clear 0, ByVal 0, D3DCLEAR_TARGET, D3DColorRGBA(255, 255, 255, 0), 1#, 0 RenderTexture Tex_Inventory, frmMain.picInventory.CurrentX, frmMain.picInventory.CurrentX, 0, 0, frmMain.picInventory.Width, frmMain.picInventory.Height, frmMain.picInventory.Width, frmMain.picInventory.Height Direct3D_Device.BeginScene```Then in:```Private Sub LoadTextures()```Add:``` Tex_Inventory.filepath = App.Path & "\data files\graphics\gui\main\inventory.jpg" //Look at the filename. Maybe you will need to change that. Tex_Inventory.Texture = NumTextures - 12 LoadTexture Tex_Inventory```Above:``` Tex_Fade.filepath = App.Path & "\data files\graphics\misc\fader.png" Tex_Fade.Texture = NumTextures - 10 LoadTexture Tex_Fade```And add 1 to:``` NumTextures = NumTextures + 11```Later:In:```ModGraphics```After:```Public Tex_Fade As DX8TextureRec```Add:```Public Tex_Inventory As DX8TextureRec```I hope it will work… It's the worst possible solution, but with my skills I can't find any better. Link to comment Share on other sites More sharing options...
DarkDino Posted March 31, 2013 Author Share Posted March 31, 2013 I add this D: and the black box appear equal :c Link to comment Share on other sites More sharing options...
DarkDino Posted March 31, 2013 Author Share Posted March 31, 2013 Sorry!! im wrong THIS FIX ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png)! THANK YOU SCOTT ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)! I forget to put "LoadTexture Tex_Inventory" RESOLVED! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now