loading images during gameplay ? Created 9 years ago2015-08-02 13:54:23 UTC by komagame komagame

Created 9 years ago2015-08-02 13:54:23 UTC by komagame komagame

Posted 9 years ago2015-08-02 13:54:23 UTC Post #326615
Is it possible to load/show pictures(jpeg,bmp,..) in Halflife 1 engine during gameplay ?!

I'm working on an horror mod needing to show some "subliminal" images to the player in order to scare him :)
Posted 9 years ago2015-08-02 15:16:03 UTC Post #326616
Like, show them on-screen?
I guess you can use a trigger_camera to take control over the player's view for a split second and put it in a room with the image as a texture on the wall.
Dr. Orange Dr. OrangeSource good.
Posted 9 years ago2015-08-02 17:54:48 UTC Post #326617
Yeah, basically what Dr.Orange said. I don't know if you've played the Poke646 mod for half-life, but they did the same thing for screens and notes. The note was just a big texture in a hidden room somewhere in the map and then there was a simply a trigger_cammera looking at the wall with the texture on it.

The player could 'read' the note by placing a piece of paper that was a func_button which then triggered the camera.

You'd have to do the same thing.
monster_urby monster_urbyGoldsourcerer
Posted 9 years ago2015-08-02 20:04:41 UTC Post #326618
I guess that's what they did in the BlackOPS mod; maybe check it out...
http://www.moddb.com/mods/black-ops
It basically has notes and stuff which you can come across in the game, and even a comic type-thing if I remember correctly.
I don't know how it was done, but again something along the lines of what of Urby and Dr. Orange said. Sorry for repetitions :D
RollingBarrel RollingBarrellearning in progress
Posted 9 years ago2015-08-03 11:33:56 UTC Post #326625
Yeah like everyone else said, they need to be textures within a WAD.
Use a trigger_camera to quickly take over the player's view and point at a textured wall. If the resolution is too low, split the image into multiple textures, and use 4 textures instead of 1.

Other than that, you'll need to make a custom overlay and code it into the gameplay - which is far more time consuming and then you'll need to distribute the custom binaries.
Tetsu0 Tetsu0Positive Chaos
Posted 9 years ago2015-08-04 05:29:25 UTC Post #326630
thanks everybody,
pictures must be shown fullscreen to the player.. something similar seen in the movie "HouseOfTheDevil" !

Anyway I'll go the way you said
You must be logged in to post a response.