Irrlicht in WIN32 Control

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Ishtm
Posts: 37
Joined: Mon May 09, 2005 8:03 pm

Irrlicht in WIN32 Control

Post by Ishtm »

How i can persist a one shoot render in a win32 control?
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Just do it like in the Win32 example in the 0.10.0 Irrlicht SDK but don't render in a loop, do it just once:

Code: Select all

device->beginScene();
// render your stuff
device->endScene();

// continue with what you need to do.
Ishtm
Posts: 37
Joined: Mon May 09, 2005 8:03 pm

WIN32

Post by Ishtm »

Hello Nico!

i found seting backbuffer to false when i call beginScene and not do that in
a loop i can get one render, even can clone it to other win32control but i still
can't keep it in memory to display when WM_PAINT message is proccess by windows. Sorry, i think this is a question about win32 and not irrlicht :?
The propose of it is... i am developed a plugin material for 3dsmax, it do settings in MtlEditor of max and comunicate parameters changes with a bridge to irrlicht to get a bitmap for sample material in 3dsmax, to material slot or a picture in one rollup of the plugin. However i try now to make work render to texture to place lightmap in second texture channel the preview material is
the final porpouse for finish the plugin.
Thanks a lot for your answer.
Post Reply