fumanshoo Posted December 23, 2012 Share Posted December 23, 2012 I thought this might work, but it's not... menueMaterial = LoadMaterial("abstract::Menue.mat") menue = DrawImage(menueMaterial,0,0,1,1) on = 1 if KeyDown(Key_U)==1 then DrawImage(menueMaterial,1,1,1,1) if on== 1 then DrawImage(menueMaterial,1,1,1,1) on = 0 else FreeEntity(menue) on = 1 end end Quote Link to comment Share on other sites More sharing options...
fumanshoo Posted December 23, 2012 Author Share Posted December 23, 2012 I keep getting "exception_access_violation" in all caps. Quote Link to comment Share on other sites More sharing options...
macklebee Posted December 23, 2012 Share Posted December 23, 2012 a material is not a texture... and the size of that image being drawn is essentially only 1 pixel with the values you are using... see DrawImage for details and dont free the image if you expect to see/use it again, just dont draw the image. 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...
fumanshoo Posted December 23, 2012 Author Share Posted December 23, 2012 for some reason, I was thinking the values for X and Y would be relative to the Graphics Width and Height with 1 being the size of the entire screen. I think I'll just use a plane and put a texture on it... Quote Link to comment Share on other sites More sharing options...
dennis Posted December 23, 2012 Share Posted December 23, 2012 Hey, I hope this will help you to draw your menu Graphics(800, 600) fw = CreateFramework() camera = fw.main.camera pausefunc = 0 AppTerminate = 0 while AppTerminate ==0 do if KeyHit(KEY_ESCAPE) == 1 then --sets pause to 1 and opens up the pause screen pausefunc = 1 function FlipHook() --if it applies to 1 the screen gots open if pausefunc == 1 then SetBlend(1) menu = LoadTexture("abstract::menu.dds") DrawImage(menu, X, Y, Width, Height) SetBlend(0) else --add stuff here end end end fw:Update() fw:Render() Flip(0) end you need to add your own stuff to this but it's an start... Cheers Quote Link to comment Share on other sites More sharing options...
fumanshoo Posted December 23, 2012 Author Share Posted December 23, 2012 Thank you very much. I really like how this can be organised, but I think I am going to use a plane with a texture instead so that I can achieve more of a Dead Space holograph effect. Quote Link to comment Share on other sites More sharing options...
dennis Posted December 23, 2012 Share Posted December 23, 2012 Thank you very much. I really like how this can be organised, but I think I am going to use a plane with a texture instead so that I can achieve more of a Dead Space holograph effect. Okay, can you show an example of what your idea is ? Quote Link to comment Share on other sites More sharing options...
fumanshoo Posted December 25, 2012 Author Share Posted December 25, 2012 Yes, as soon as I get a chance, I will post it on the finished menu on the gallery. I will most likely be done by the end of this week. If you are familiar with the Dead Space games, Star Wars or holographs in general, you can get a feel for what the menu looks like. ... also, I was copy/pasting an incorrectly spelled "menue" through my entire program and I just noticed haha, sorry about that... Quote Link to comment Share on other sites More sharing options...
dennis Posted December 26, 2012 Share Posted December 26, 2012 No problem for that "menue" thing I'm familiar with those games but in every version the style is different Quote Link to comment Share on other sites More sharing options...
fumanshoo Posted December 26, 2012 Author Share Posted December 26, 2012 Oh sorry, Dead Space 2. You know how the holographs kind of hang to the side and what not? I'm hoping to kind of offset it from my character to make it look like she pulled it up on a little projector and then zoom in to full screen... kinda hard to describe, but it will make sense when it is finished. My goal for this week is to make a light house ( just need a few more textures ) and make a menu layout. 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.