Silly question : basic resolution changer
Blitz3D Forums/Blitz3D Beginners Area/Silly question : basic resolution changer
| ||
Why does hitting the R key make the cone disappear ? ; Graphics3D Example ; ------------------ Global camera ; Set 3D graphics mode Graphics3D 640,480,32,2 SetBuffer BackBuffer() camera=CreateCamera() light=CreateLight() cone=CreateCone( 32 ) PositionEntity cone,0,0,5 While Not KeyDown( 1 ) ;start the loop If KeyHit(19) ;hit the R key to change the resolution Graphics3D 1280,720,32,2 EndIf RenderWorld Flip Wend End |
| ||
Because after the Graphics3D command you must initiate ALL objects again, it clears all objects/textures from memory, other vars will stay however. |
| ||
Got it. Thank you. |
| ||
In Blitzmax+miniB3D I managed to change the resolution without initializing the objects/textures again, I only had to free the camera before the Graphics3D command and created a new camera after it :-) But I doubt this works in Blitz3D, too. Taken directly from my framework: |
| ||
Yeah, I tried a few things based on your example and the result was the same as before. In Blitz3D, changing the graphics mode seems to wipe most of the graphics memory. That is my interpretation anyway. |
| ||
delete |
| ||
Imposible, End Graphics or Graphics3D removed the content of the memory and reset everything plays obligation. |