General discussion about TexGen.
Moderators: Martin , Developers
joncrookston
Expert User
Posts: 27 Joined: Wed Apr 11, 2007 4:03 pm
Location: Nottingham, UK
Post
by joncrookston » Mon Nov 12, 2007 3:50 pm
Just a simple question. If I want to set the viewport in the GUI to use parallel projection rather than perspective, I need to use some code along the lines of:
Code: Select all
CTexGenRenderer.SetParallelProjection(1)
or maybe:
Code: Select all
CTexGenRenderer.GetRenderer().SetParallelProjection(1)
but I can't work out exactly what it should be. Any tips?
Martin
Project Leader
Posts: 70 Joined: Wed Mar 28, 2007 9:05 am
Location: Nottingham
Contact:
Post
by Martin » Mon Nov 12, 2007 4:43 pm
You can type the following in the python console:
Code: Select all
GetRenderWindow().SetParallelProjection(True)