Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Blender 2.49 Mirror real time Movie real time na Game Engine

Loading...

Sign in or sign up now!
14,257
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 8, 2009

Blender 2.49 game engine

script : import video:
//////////////////////////////////////////////

import VideoTexture

contr = GameLogic.getCurrentController()
obj = contr.getOwner()
if not hasattr(GameLogic, 'video'):
matID = VideoTexture.materialID(obj, 'IMvideo.png')
GameLogic.video = VideoTexture.Texture(obj, matID)
movie = GameLogic.expandPath('//trailer_400p.ogg')
GameLogic.video.source = VideoTexture.VideoFFmpeg(movie)
GameLogic.video.source.scale = True
GameLogic.video.source.repeat = -1


if contr.getSensors()[0].isPositive():
GameLogic.video.source.play()

///////////////////////////////////////////////
script :aplication imagem engine blender:
/////////////////////////////////////////////

# refresh video
if hasattr(GameLogic, 'video'):
GameLogic.video.refresh(True)


//////////////////////////////////
script:aplication mirror game engine
////////////////////////////////

####################
# Starats Studio #
# Vitor Balbio #
# Mirror Template #
####################


import VideoTexture

contr = GameLogic.getCurrentController()
obj = contr.getOwner()
if not hasattr(GameLogic, 'mirror'):


# Reflection
scene = GameLogic.getCurrentScene()
camera = scene.getObjectList()['OBCamera'] # CAMERA NAME!
matID = VideoTexture.materialID(obj, 'IMtv.png') # Texture Reference Name
GameLogic.mirror = VideoTexture.Texture(obj, matID)
GameLogic.mirror.source = VideoTexture.ImageMirror(scene,camera,obj,matID)
#GameLogic.mirror.source.capsize = [512,512] # texture resolution.
# Max 512,512 for good FPS , only power of 2.

if contr.getSensors()[0].isPositive():
GameLogic.mirror.refresh(True)

Category:

Entertainment

Tags:

License:

Standard YouTube License

  • likes, 7 dislikes

Link to this comment:

Share to:

Uploader Comments (maykonal)

  • so com esse script da pra ter esse resultado? pq aqui n deu mto certo...

  • sim e só seguir os tutoriais que tem na net é muito simples!!!

see all

All Comments (25)

Sign In or Sign Up now to post a comment!
  • I couldnt take that music.

  • @Wireheadking its a skin for 2.49 ;)

  • @enjoiskate11 I assure you. It isn't.

  • @Wireheadking That's 2.49

  • I love the TV! Do you use an animated texture or a video module?

  • scene = GameLogic.getCurrentScene() What Reper That ???? i use blender 248.1 What Repair That plese Help me

  • how did you make the shiny floor

  • it is blender 2.49, with rounded theme

  • not blender 2.49 and also looks boring but well done anyways, good looking game

Loading...
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