blender spilt screen tutorial

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,173
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 12, 2008

all credit goes to site that i got it from
the python

##### Viewports.py


# viewport needs to know game window height and width
import Rasterizer

height = Rasterizer.getWindowHeight()
width = Rasterizer.getWindowWidth()

################ Using 2 cameras for the player viewports. Need to get them.

# get the current scene
scene = GameLogic.getCurrentScene()

# get list in objects in scene
objList = scene.getObjectList()

# use Camera ( the active camera) for PlayerA
playerA = objList["OBCamera"]

# use Camera.001 for PlayerB
playerB = objList["OBCamera.001"]

################# Use the top half of the game window for Player A.

# Player A viewport: top half
leftA = 0
bottomA = height / 2
rightA = width
topA = height

# set Player A viewport
playerA.setViewport( leftA, bottomA, rightA, topA)

#################Use bottom half for player B.




# Player B viewport: bottom half
leftB = 0
bottomB = 0
rightB = width
topB = height / 2




# set Player B viewport
playerB.setViewport( leftB, bottomB, rightB, topB)

################## Use the viewports

# use viewport
playerA.enableViewport(True)
playerB.enableViewport(True)

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 3 dislikes

Link to this comment:

Share to:

Uploader Comments (blenderspy)

  • thx! very useful tutorial! how do you paste the code into blender? isn't it like ctrl-shift-p or something like that?

  • copy it then ctrl-v to paste it

Top Comments

  • your voice is fucking aNNOYING

  • for sure

see all

All Comments (23)

Sign In or Sign Up now to post a comment!
  • I DID EVERYTHING!!!!!!!

  • what is the website called????

  • well we all know why he called himself BlenderSpy he copied it from Penguin! hmph, you should feel ashamed.

  • Trallagh?

  • it draws more attention to it whenever ur making vids

  • canstudio allows u to make a coloured mouse

  • dud ur mouse is all red, thts fucked up

  • whats the web called?????????????

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more