The Decrepit House (W/ BLEND) - Update Last Page

I haven’t done a lot with the Game Engine in the past, so I made this room. It’s supposed to be like a horror first person shooter environment.
At this point, it’s basically explorable, and you can turn on and off your flashlight too.
It uses GLSL, realtime shadows, reflection maps, animated lights, and normal maps.

WIP:
I’m in the process of building an entire house. Updates should be at the end of the thread.

Videos:


EDIT:
Blend File: [Fixed]

EDIT:
New image w/ wood floor.

are you inspired by Bioshock?
Juste one thing, your floor is not as good as wall for exemple.

Nice, this is awesome! I agree with war-p, it reminds me of bioshock

nice reflect. maps, and the normal map on the door looks incredible!

only crit. is that the floor looks odd, maybe use wood instead?

Thanks. Never played Bioshock, but I looked up some pictures, and it does look kinda similar.

Yeah, the all over tile does feel kinda strange. I think I might try wood.

Okay. Gave it a wood floor, with a normal map. What do you think?

http://i208.photobucket.com/albums/bb43/padfoot7726/DRwoodfloor.jpg

It looks better:yes:

Are you using videotexture on the tv?
(that would be amazing, and easy to implement…)

No. I could never figure out how to do that. I still have a thread asking how to do that which no one replied to.

Could you explain how to do this?

Use the script included in this example file: VideoTextureExample.zip
(start the game, then press enter/return to play the movie.[I currently have it set to loop, i believe…])

Can you explain how to adapt this to another scene? I tried myself, but I’m stumbling in the dark. I don’t know python.

It should be…
Was there a trailer_400.ogg file in it?
Did you extract the zip file first?
[edit] I just downloaded my file, and it worked fine for me…
You didn’t see this?:

Attachments


I believe not only does the video file have to be included, but you have to set the file path correctly in the script- so if it’s set to be in the documents folder with a specific username, and you have it on your desktop, you’ll have to change the file path to lead to your desktop. If I’m not mistaken there’s a way to automatically get the file path to the location of the currently running .blend- if the video is in that or a subfolder it’s substantially easier. Unfortunately, I don’t know the local path command.

I referred to the file locally to the folder it is in.(by using // instead of / )
@Padfoot–What operating system are you running?

Yeah. I’ve got it now.

With the python script, what should I have to change?
I would think I need to change the file drirectories, and put my avi file in the same Blend folder.
How should I change these two parts?

import VideoTexture

– Gets the Python controller associated with this Python script.

contr = GameLogic.getCurrentController()

– Gets the game object associated with this logic brick.

obj = contr.owner

– Check if the “video” property has been defined on “GameLogic”

if not hasattr(GameLogic, ‘video’):

# – Get the material that is using our texture
matID = VideoTexture.materialID(obj, ‘IMbbb.png’)

# -- Create the video texture
GameLogic.video = VideoTexture.Texture(obj, matID)

# – Get the path to the video file
movie = GameLogic.expandPath(’//trailer_400p.ogg’)

# -- Load the file
GameLogic.video.source = VideoTexture.VideoFFmpeg(movie)

# -- scale and loop the video
GameLogic.video.source.scale = True
GameLogic.video.source.repeat = -1

# -- play the video
GameLogic.video.source.play()

Yep, change trailer_400p.ogg to the name of your movie, and IMbbb.png to IMyourpicnamehere . (leave the IM on the front though)You will also need to change the pic in the material’s texture.
(the pic won’t matter much if the TV is going to constantly be playing though)

I tried making the changes, but it’s not responding.
I also figured out I needed to set up those logic bricks on the TV,and I put that together the same way as the plane in your blend.
Is there something I’m not doing?

import VideoTexture

– Gets the Python controller associated with this Python script.

contr = GameLogic.getCurrentController()

– Gets the game object associated with this logic brick.

obj = contr.owner

– Check if the “video” property has been defined on “GameLogic”

if not hasattr(GameLogic, ‘video’):

# -- Get the material that is using our texture
matID = VideoTexture.materialID(obj, 'IMscreen_counter.jpg')

# -- Create the video texture
GameLogic.video = VideoTexture.Texture(obj, matID)

# -- Get the path to the video file
movie = GameLogic.expandPath('//TV.avi')

# -- Load the file
GameLogic.video.source = VideoTexture.VideoFFmpeg(movie)

# -- scale and loop the video
GameLogic.video.source.scale = True
GameLogic.video.source.repeat = -1

# -- play the video
GameLogic.video.source.play()

Hmm… I’m not exactly sure.
Does the screen have a material that uses screen_counter.jpg as an image texture?
(it should) Example file: (you need to have TV.avi in the same folder as this file for it to work)

Attachments

VideoTextureTV.blend (418 KB)

It does, and TV.avi is in the same folder. Do you think it would pose a problem that the object has two materials? The plane in the example only has one. The TV has one for the body, and one for the screen.

No, it won’t be a problem. Did you look at the example I just posted?
It is how I would set-up your TV. (I don’t have your TV.avi file though, so you’ll need to put it in yourself…)

Haha! Thanks, Minifig. :yes:
I got it working,and it looks great, just made a small mistake patching your blend into mine.
The frame rate is much better than I thought it would be, and it gives off the exact vibe I was going for.
I’d like to record a video of the scene, but CamStudio seriously slows down the BGE every time I start it, and the quality isn’t great.
Does anyone know a better screen capture program?