Rendering to an SMaterial

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
[ICR]
Posts: 3
Joined: Wed Jul 14, 2004 9:14 am
Contact:

Rendering to an SMaterial

Post by [ICR] »

Is it possible to render an object to an SMaterial? No, I don't want to do any form of environment mapping. I have several 2D effects such as alpha masks, blurring etc. before I render it.
[ICR]
Posts: 3
Joined: Wed Jul 14, 2004 9:14 am
Contact:

Post by [ICR] »

I have:

Code: Select all

if (driver->queryFeature(EVDF_RENDER_TO_TARGET))
		{
			ITexture *texTest;
			driver->setRenderTarget(texTest);
			printf("Driver does support this feature");
		}else{
			printf("Driver does not support this feature");
		}
Yet it just crashes with the setRenderTarget in. It does this both if I render stuff after or not. Also, how would I set the render target back?
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

RenderToTarget is not implemented currently, but when it would be, you'll simply have to set the render target to 0 if you want to render to the screen. But anyway, its not possible currently, sorry.
[ICR]
Posts: 3
Joined: Wed Jul 14, 2004 9:14 am
Contact:

Post by [ICR] »

Okay. Is there an estirmated time to when it will be done? Just so I know whether it's worth doing it myself or not.
Post Reply