Page 1 of 1

Invisible objects with RTT

Posted: Sat Sep 23, 2006 10:58 pm
by casty
Hi!

Well, I'm not sure whether this is a bug or not, because I don't how "legal" is to have an scene without camera.

my render routine is like that:

Code: Select all

		driver->beginScene(true, true, 0);

		if (rt)
		{
			driver->setRenderTarget(rt, true, true);     
			scene->drawAll();                 
			driver->setRenderTarget(0);
		}
		scene2->drawAll(); 

		driver->endScene();
scene2 is a "postproduction" scene, which contains an ISceneNode with just 4 vertices: (-1,-1,0)...(1,1,0).
Scene2 shows an screen aligned quad whitout having to create a camera to look over it. But when I render any other scene, to a texture (no matter whether I'm using or not this texture in scene2), the quad is not shown.

After moving half of my project to RTT example :shock: I discovered that when you render an scene, the camera keeps active in the following one. And this is a problem if the following one, did not activated any camera.

Posted: Sat Sep 23, 2006 11:01 pm
by cyanide
camera->drop()? of course, you'd have to recreate it every frame, but still...