If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
wEEp
Posts: 70 Joined: Thu Nov 27, 2008 7:55 am
Post
by wEEp » Sun Feb 08, 2009 1:25 pm
Hey guys,
i have this src
Code: Select all
WinExec ("lgo.exe", SW_SHOW);
Sleep(1000);
HWND wnd = 0;
HWND wnd2 = 0;
wnd = FindWindow(NULL, "logo") ;
while(!wnd)
{
if(wnd)
{
wnd = GetWindow(wnd, GW_CHILD);
}
}
SIrrlichtCreationParameters ppp;
ppp.AntiAlias = false;
ppp.Bits = 32;
ppp.DriverType = EDT_DIRECT3D9;
ppp.EventReceiver = 0;
ppp.Fullscreen = false;
ppp.HighPrecisionFPU = false;
ppp.Stencilbuffer = false;
ppp.Vsync = false;
ppp.WindowSize = dimension2d<s32>(800, 600);
ppp.WindowId = wnd;
IrrlichtDevice *device = createDeviceEx(ppp);
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IGUIEnvironment* guienv = device->getGUIEnvironment();
ISceneNode* node = smgr->addBillboardSceneNode();
node->setMaterialTexture(0, driver->getTexture("logo.jpg"));
node->setMaterialFlag(EMF_LIGHTING,false);
node->setPosition(vector3df(0, -50, 20));
ICameraSceneNode* cam = smgr->addCameraSceneNode();
cam->setTarget(vector3df(0, -50, 20));
The image is now quite small (image size is 800 x 600 and the size of the window i created is 200 x 300) in this bar i created. The background is then blue.
How can i make that the image fill the WHOLE window? Like a background
vitek
Bug Slayer
Posts: 3919 Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR
Post
by vitek » Sun Feb 08, 2009 6:53 pm
There are several problems with using billboards like this. If you want a background image, it might be better to use driver->draw2dImage() .
Travis
Acki
Posts: 3496 Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:
Post
by Acki » Mon Feb 09, 2009 3:37 am
wEEp wrote: Hey guys,
i have this src
Code: Select all
WinExec ("lgo.exe", SW_SHOW);
Sleep(1000);
HWND wnd = 0;
HWND wnd2 = 0;
wnd = FindWindow(NULL, "logo") ;
while(!wnd)
{
if(wnd)
{
wnd = GetWindow(wnd, GW_CHILD);
}
}
SIrrlichtCreationParameters ppp;
ppp.AntiAlias = false;
ppp.Bits = 32;
ppp.DriverType = EDT_DIRECT3D9;
ppp.EventReceiver = 0;
ppp.Fullscreen = false;
ppp.HighPrecisionFPU = false;
ppp.Stencilbuffer = false;
ppp.Vsync = false;
ppp.WindowSize = dimension2d<s32>(800, 600);
ppp.WindowId = wnd;
IrrlichtDevice *device = createDeviceEx(ppp);
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IGUIEnvironment* guienv = device->getGUIEnvironment();
ISceneNode* node = smgr->addBillboardSceneNode();
node->setMaterialTexture(0, driver->getTexture("logo.jpg"));
node->setMaterialFlag(EMF_LIGHTING,false);
node->setPosition(vector3df(0, -50, 20));
ICameraSceneNode* cam = smgr->addCameraSceneNode();
cam->setTarget(vector3df(0, -50, 20));
The image is now quite small (image size is 800 x 600 and the size of the window i created is 200 x 300) in this bar i created. The background is then blue.
How can i make that the image fill the WHOLE window? Like a background
Why did you
PM me exactly this post !?!?!
even addressed to "Hey guys" !!!
you not even get a
:RTFM: from me now...
geckoman
Posts: 143 Joined: Thu Nov 27, 2008 11:05 am
Location: Germany
Contact:
Post
by geckoman » Mon Feb 09, 2009 9:46 am
Search for posts by me, I got some answers that work in a Thread by me.