Jump to content

Recommended Posts

Posted

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

Posted

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.

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

LE / 3DWS / BMX / Hexagon

macklebee's channel

Posted

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...

Posted

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

Posted

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.

Posted

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 ?

Posted

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...

Posted

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.

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.

×
×
  • Create New...