[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4771: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3906)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4773: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3906)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4774: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3906)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4775: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3906)
Skyline Forums • View topic - Video -ogg
Help with your scripting

Video -ogg

Video -ogg

Postby epsilonion » 01 Feb 2018, 12:26


I have searched through the API library and looked through the default game manager script but can not find an example of how to add video in .ogg format as shown in the blog for opening screens.

can you help?
Skyline Help:

User avatar
epsilonion
Skyline Lead Moderator
Skyline Lead Moderator
 
Posts: 874
Joined: 26 Feb 2015, 11:51
Location: Hull, East Yorkshire, England
Skill: Business Manager
Skill: Great creative

Re: Video -ogg

Postby SolarPortal » 07 Feb 2018, 14:56

Video's have not yet been placed to the user... only the ident is working at the moment.



Twitter:
Instagram:
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Video -ogg [Complete]

Postby SolarPortal » 12 Feb 2018, 00:35




Twitter:
Instagram:
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Video -ogg

Postby SolarPortal » 12 Feb 2018, 18:08

Here are the images:

Cutscene video that uses fullscreen quad for rendering video on:
Cutscene.png
Cutscene.png (376.61 KiB) Viewed 62002 times


Video Texture on material that plays the video in the scene:
material_video.png
material_video.png (677.27 KiB) Viewed 62002 times


I have also wrote a Video Manager lua class that quickly gives the ability to add, update, delete videos with minimal management and only an alias needs passed around.

Next jobs is too look into the game manager and extend it so users can add more idents to the start of a game load. :)
Then will look at creating a trigger volume for showing cutscene videos and make a couple demos.
And to top it off, we need 2 new game states in skyline that will help manage game code. These game states are "Cutscenes" and "Cinematics" as using the pause state may not be the best move in a big game and will give finer control over the states :)



Twitter:
Instagram:
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Video -ogg

Postby epsilonion » 12 Feb 2018, 18:54

Thank you this is awesome work and in a short time period.. you are awesome.. :P
Skyline Help:

User avatar
epsilonion
Skyline Lead Moderator
Skyline Lead Moderator
 
Posts: 874
Joined: 26 Feb 2015, 11:51
Location: Hull, East Yorkshire, England
Skill: Business Manager
Skill: Great creative

Re: Video -ogg

Postby karmacomposer » 12 Feb 2018, 19:04

Fantastic!

We are going to need to have videos playing on assets, so this is perfect.

Question: Can videos be blended or filtered onto assets with existing textures? Like in photoshop where you can screen or multiply a texture - we are going to have animated silhouettes that I want a video to fade in when the player walks near a wall, for example, and have the silhouette animation play and then fade out when they walk away. The video will have the fades in it, but I want it to play on, say, a brick wall so you can still see the bricks.

Is this possible?

Mike
karmacomposer
Skyline Initiate
 
Posts: 12
Joined: 19 May 2015, 20:43
Skill: Audio
Skill: Programmer
Skill: Scripter
Skill: Level Designer
Skill: Great creative

Re: Video -ogg

Postby karmacomposer » 12 Feb 2018, 19:08

In the best scenario, we would love to displace the actual polygons in an asset to really creep out the player.

For example, a hand reaches out of the brick wall and then goes back to normal - the brick wall stretching and displacing the hand. I understand that DX11 and tessellation would likely be required for such an advanced trick.

Is this even possible?

Mike
karmacomposer
Skyline Initiate
 
Posts: 12
Joined: 19 May 2015, 20:43
Skill: Audio
Skill: Programmer
Skill: Scripter
Skill: Level Designer
Skill: Great creative

Re: Video -ogg

Postby SolarPortal » 12 Feb 2018, 19:10

@epsilonion: great to heaR! :)

@karmacomposer, Blending videos onto a pbr material should be possible especially with the detail channel but i have only programmed the unlit material at the moment, i will see if i can fit in a PBR texture slot also while im at it.. When i do it, i'll post a pic :) Even the fade in should be programmable lol :P

Edit: The second one not so much unless you used a mesh or animation of some sorts.



Twitter:
Instagram:
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Video -ogg

Postby karmacomposer » 12 Feb 2018, 19:11

I'm guessing that we would utilize the alpha channel perhaps?

Mike
karmacomposer
Skyline Initiate
 
Posts: 12
Joined: 19 May 2015, 20:43
Skill: Audio
Skill: Programmer
Skill: Scripter
Skill: Level Designer
Skill: Great creative

Re: Video -ogg

Postby SolarPortal » 12 Feb 2018, 19:14

Each detail is able to be blended like in photoshop but also has lets say an opacity slider of the blend. This enables you to get just the right amount of detail blending. The brick texture would be the diffuse layer.

The problem you might find is the UV's as a brick wall is generally tiled over and over..
The detail layer however also has the ability to scale the uv's used, so you could lower those values and offset the position to make the video fit. Its one to be explored :P



Twitter:
Instagram:
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Video -ogg

Postby karmacomposer » 12 Feb 2018, 19:49

It would be great if there was a decal mode where we could define the X and Y coordinates (2D space) of the video on a side of the object and it would just stick there and play.

Further, it would be great to choose from play once or looped. In our case, we need it triggered and played once.

Mike
karmacomposer
Skyline Initiate
 
Posts: 12
Joined: 19 May 2015, 20:43
Skill: Audio
Skill: Programmer
Skill: Scripter
Skill: Level Designer
Skill: Great creative

Re: Video -ogg

Postby SolarPortal » 12 Feb 2018, 20:59

Triggered and play once is what we have at the moment. Instead of the decal, you could place a plane on the wall and then use a material on that plane to hold the video. When its not active, just disable the visibility of the plane.



Twitter:
Instagram:
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Video -ogg

Postby SolarPortal » 13 Feb 2018, 00:17

The game manager can now add more Splashscreens / Idents... as many as you want actually without programming them in :)
This can all be done from the main editor > Game Manager panel. The video's can be reordered by simply dragging them around in the container and pressing save.

i have had the skyline game engine ident followed by the nvidia one :P



Twitter:
Instagram:
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Video -ogg

Postby epsilonion » 13 Feb 2018, 00:29

WOW great work... speedy.. :)

Whats the conditions of using there logo? is there a license or something or can anyone use it?
Skyline Help:

User avatar
epsilonion
Skyline Lead Moderator
Skyline Lead Moderator
 
Posts: 874
Joined: 26 Feb 2015, 11:51
Location: Hull, East Yorkshire, England
Skill: Business Manager
Skill: Great creative

Re: Video -ogg

Postby SolarPortal » 13 Feb 2018, 00:44

not a clue, was only a test lol :P

i have had 4 videos playing at game startup now, one little bug i will iron out tomorrow :)



Twitter:
Instagram:
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Video -ogg

Postby epsilonion » 13 Feb 2018, 00:55

Just emailed them to see whats involved, license, agreement or other.. lol

Some clarity should be soon delivered to the mail box..... hopefully..
Skyline Help:

User avatar
epsilonion
Skyline Lead Moderator
Skyline Lead Moderator
 
Posts: 874
Joined: 26 Feb 2015, 11:51
Location: Hull, East Yorkshire, England
Skill: Business Manager
Skill: Great creative


Return to Lua Scripting

Who is online

Users browsing this forum: No registered users and 6 guests