Page 1 of 1

Irrlicht in WIN32 Control

Posted: Tue Jul 05, 2005 2:24 am
by Ishtm
How i can persist a one shoot render in a win32 control?

Posted: Wed Jul 06, 2005 2:36 pm
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.

WIN32

Posted: Wed Jul 06, 2005 7:45 pm
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.