3d game with 2d windows
Blitz3D Forums/Blitz3D Beginners Area/3d game with 2d windows
| ||
hi, i making a 3d game... graphics3d i want to put some 2d windows in the game, to see data, buy or sell things... how can i do that?... i want to change option with mouse...., with butons... |
| ||
The way I do it is, put any 2d images or text after RenderWorld and before Flip UpdateWorld RenderWorld DrawImage image Text 0,0,"Text" Flip Ok, here's a rapidshare link to it. http://rapidshare.com/files/104711929/CreateWindow.rar.html |
| ||
Sorry if the windows are a bit laggy, I'm not sure why. I just now tried it in 3D and it made it run slower. |
| ||
thanks Gia.. what other option can i use?... |
| ||
You can also place a sprite in front of the camera, and draw on it. |
| ||
yes, but text?... the windows i want to do is this, like the imagen.. ![]() the background show the game... in phothoshop i make that windows... i things the best option i have, is draw my own windows, maibe using the sistem like windows 98 windows... i have problems to load the alpha graphics in blitz, like mouse cursor i draw, in photoshop, with alpha, when i use "loadimage (... " the alpha dont work in blitz... i dont know why... |
| ||
Try looking for a GUI system. There is quite a few in the toolbox section of this site. |
| ||
thanks... i make this simple windows, loading images in blitz... maibe there is a ways more fast... but works... ![]() for ventana = each ventana if modo = 0 and ventana\estado = 1 then drawimage ventana\entidad,ventana\posx,ventana\posy drawimage ventana\barra,ventana\posx,ventana\posy color 200,200,200 color 0,0,0 drawimage ventana\escala,(ventana\posx + ventana\ancho)-17,(ventana\posy + ventana\alto)-17 drawimage ventana\cerrar,(ventana\posx + ventana\ancho)-18, ventana\posy + 3 drawimage ventana\minim ,(ventana\posx + ventana\ancho)-36, ventana\posy + 3 text ventana\posx+4,ventana\posy+3,ventana\titulo end if next |
| ||
Try SpriteCandy if you don't mind spending on it. |
| ||
i trying to lean how to do this. menus butons and options... i make this interface, simple... works with 3d background.. the butons are 2D drawings, like lines or rect.... using rectsoverlap... and make a include with funcionts like.. createwindows, cloes, show hide windows.. etc... ![]() spritecandy is very nice.... but $$ spritecontrol is nice too... but nothing like the own interface... |