Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / avi Video plays only full screen How to resize?

Author
Message
Meows
13
Years of Service
User Offline
Joined: 12th Oct 2011
Location: Totally over the Rainbow
Posted: 30th Jan 2013 20:25
I think my worn out blonde brain is gone. I can't figure out how to resize a wmf or a avi video in game. I have made them 600x800 600x450 and 1024x768 they all play full screen. How do I get them to play in a set size please?

BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 30th Jan 2013 21:15 Edited at: 30th Jan 2013 22:02
Quote: "I think my worn out blonde brain is gone. I can't figure out how to resize a wmf or a avi video in game. I have made them 600x800 600x450 and 1024x768 they all play full screen. How do I get them to play in a set size please?"


You can't. The source code has this line in the "Video" command...



... which plays the video at the resolution you are set to regardless of what size format you set your application to make the video. One method to "resize" the video is to add an additional command(s) to the source to allow for the developer to specify the size to display the video at and x/y coordinates. We have done something similar ourselves, but rarely use the feature; we rather have the video play full screen ourselves.

Unless the team wish to add something similar to the current source, you have only what is available.


There's no problem that can't be solved without applying a little scripting.
Meows
13
Years of Service
User Offline
Joined: 12th Oct 2011
Location: Totally over the Rainbow
Posted: 31st Jan 2013 05:05
Quote: "
Unless the team wish to add something similar to the current source, you have only what is available."

Now that is a excellent idea Blackfox.

Actually I got the idea from reading your post in the V120 Public Beta 14 (RC)thread about having 3 video's playing on TV's, Unless i misread the post.
Quote: "We even have the Enterprise bridge view screen from Dale's STTOS pack showing the ship "warping", dropping out of warp to engage an enemy ship, and orbiting a planet. The technique has so many possibilities."


BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 31st Jan 2013 05:21
Quote: "Actually I got the idea from reading your post in the V120 Public Beta 14 (RC)thread about having 3 video's playing on TV's, Unless i misread the post. "


Actually, you can use your size format video for what I was describing in that thread. It is using the "video texture" technique, and the screen monitors I use were small. So using your format would actually place the video "smaller" on the entity, thus not needing to resize. In our TV example, the videos were 640x480, but the screen that plays them are much smaller than that.


There's no problem that can't be solved without applying a little scripting.
Meows
13
Years of Service
User Offline
Joined: 12th Oct 2011
Location: Totally over the Rainbow
Posted: 31st Jan 2013 21:14
Quote: "BlackFox,
It is using the "video texture" technique"

Thank you. I will look into this. I don't know how to use it but it really sounds exciting.
I hope there is a sample in the example code thread.

BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 31st Jan 2013 21:37
Quote: "I hope there is a sample in the example code thread."


I did post an example of how to use it here.


There's no problem that can't be solved without applying a little scripting.

Login to post a reply

Server time is: 2024-11-23 17:18:09
Your offset time is: 2024-11-23 17:18:09