Invisible objects with RTT

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
casty
Posts: 11
Joined: Sun Aug 27, 2006 10:40 am

Invisible objects with RTT

Post 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.
cyanide
Posts: 13
Joined: Sat Sep 03, 2005 9:39 pm

Post by cyanide »

camera->drop()? of course, you'd have to recreate it every frame, but still...
Post Reply