ok FIXED.. a wait(1) was missing to update the bitmap. here is the (tested) code:

Code:
#include <acknex.h>
#include <default.c>

BMAP* panel_created;

PANEL* cool_pan = 
{
	scale_x = 0.5; scale_y = 0.5;
	flags = SHOW;
	alpha = 100;

}
function create_screen_bmap (VECTOR* pos,VECTOR* aang)
{
	panel_created = bmap_createblack(screen_size.x,screen_size.y,24);
	
	
	vec_set(camera.x,pos);
	vec_set(camera.pan,aang);
	wait(1);// render screen in new position and angle
	bmap_for_screen(panel_created,0,1);
	wait(1);

}

void main ()
{
	level_load("arena.wmb");
	wait(2);
	

	create_screen_bmap(vector(0,0,0),nullvector);
	wait(1);
	cool_pan->bmap = panel_created;
	cool_pan->flags = SHOW;
	
		
	wait(1);
	beep();
	// I want render screen into panel.bmap, but this dont work
}



make sure ur camera is facing wat u want to take screenshot.


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook