vtkRenderer creates a vtkLight?
Jan Stifter
j.stifter at medres.ch
Thu Jan 27 05:39:32 EST 2000
dear vtkusers,
following code:
this->renderWindow = vtkRenderWindow::New();
this->renderer = vtkRenderer::New();
this->renderWindow->AddRenderer( this->renderer );
// get the light we are using
vtkLightCollection *lightCollection;
lightCollection = this->renderer->GetLights();
// get output from lightCollection
vtkIndent *v = vtkIndent::New();
lightCollection->PrintSelf( cout, *v );
the output from this code:
Debug: Off
No Delete Method
Modified Time: 22
Reference Count: 1
Number Of Items: 0
why "Number Of Items: 0"? this is strange to me, since i can render an
object and there seems to be a light (otherwise it would be dark). how
can i get this active light?
also i tried:
this->renderWindow = vtkRenderWindow::New();
this->renderer = vtkRenderer::New();
this->renderWindow->AddRenderer( this->renderer );
cout << "here we crash" << endl;
this->renderer->CreateLight();
the code crashes in the CreateLight cmd. i did not debug the
vtkRenderer-code until now, so i can not say, where it crashes.
many thanks for answers
jan
-----------------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>. For help, send message body containing
"info vtkusers" to the same address. Live long and prosper.
-----------------------------------------------------------------------------
More information about the vtkusers
mailing list