Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds
Watch MODSonair

Members Online

»
0 Active | 94 Guests
Online:

LATEST FORUM THREADS

»
run artillery on maps
CoD+UO Map + Mod Releases
Call of DutyŽ: WWII
CoD WW2 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Quake 4
Category: Q4 Mapping
Quake 4 mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: RoQ shader help
hondaman900
General Member
Since: Jun 4, 2007
Posts: 23
Last: Nov 22, 2007
[view latest posts]
Level 1
Category: Q4 Mapping
Posted: Friday, Aug. 31, 2007 10:39 pm
Does anyone have an example of a shader for a RoQ video gui in Q4? I have a D3 shader, but it doesn't perform as expected, and I'm not sure how similar they are to an equivalent Q4 RoQ video shader. If I knew the required parameters I could figure out what's going on.

Any help is much appreciated.

Stephen
Share |
foyleman
Preferred PLUS Member
Since: Nov 6, 2001
Posts: 95759
Last: Oct 31, 2018
[view latest posts]
Level 10
Admin
Forum Moderator
Im a fan of MODSonair
Im a HOST of MODSonair
Category: Q4 Mapping
Posted: Saturday, Sep. 1, 2007 05:22 am
I used to have one for D3. I'm surprised there is any difference.
Go ahead... You Play I Mod : Support Modsonline by becoming a PREFERRED MEMBER today!
Have you heard the MODSonair Podcast?:
MODSonair is a weekly podcast bringing you the news from a modders perspective.
Tune in every Sunday at 12pm EST to listen LIVE.
Quake 4 Mods for Dummies - Half-Life 2 Mods for Dummies
Share |
hondaman900
General Member
Since: Jun 4, 2007
Posts: 23
Last: Nov 22, 2007
[view latest posts]
Level 1
Category: Q4 Mapping
Posted: Saturday, Sep. 1, 2007 06:17 pm
I'm thinking maybe it's my creation of the RoQ that's the issue. I'm using Quake Video Maker to convert AVI to RoQ. When I start a new project and import the AVI, and even when I create the RoQ, I get a black screen for the preview. I don't know if this is what's previewing or if it's not advancing any frames. Within my mod the video gui also shows black.

Any suggestions? I'm following the QVM instructions, but they are sparse. Is there any special AVI format I must have to convert to RoQ? I'm creating a 512x384 30fps RoQ. At least the RoQ file is generated, but I have no way to validate if it's viewable.



edited on Sep. 1, 2007 09:18 pm by hondaman900
Share |
hondaman900
General Member
Since: Jun 4, 2007
Posts: 23
Last: Nov 22, 2007
[view latest posts]
Level 1
Category: Q4 Mapping
Posted: Saturday, Sep. 1, 2007 11:39 pm
Here are some specifics that may help unravel this:

I have the following files

q4base\materials\mymaterials.mtr
q4base\guis\movies\fusion.gui
q4base\sound\VO\video\custom\fusion.roq

Here's the material file shader code

Code:

video/fusion 
{ 
videomap loop sound/VO/video/custom/fusion.roq 
} 


Here's the gui code

Code:

windowDef Desktop
{
	rect	0,0,640,480
	windowDef Videofeed
	{
		rect	0,0,640,480
		visible	1
		forecolor	1,1,1,1
		text	VideoFeed
		textscale	1
		background	""
		backcolor	0,0.250,0.501,1
		matcolor	1,1,1,1
	}
	windowDef RoQfile
	{
		rect	65,50,512,384
		visible	1
		background	"video/fusion"
		backcolor	0,0,0.501,1
		matcolor	1,1,1,1
	}
}


Hope this helps...
Share |
hondaman900
General Member
Since: Jun 4, 2007
Posts: 23
Last: Nov 22, 2007
[view latest posts]
Level 1
Category: Q4 Mapping
Posted: Sunday, Sep. 2, 2007 12:24 am
In addition, I solved the preview issue and the RoQ creation with Quake Video maker. I reencoded the source AVI to be 512x384 at 24fps and Indeo codec, and QVM liked that a lot better.

However, I'm not getting the video playing in my in-game gui.

Any suggestions?
Share |
foyleman
Preferred PLUS Member
Since: Nov 6, 2001
Posts: 95759
Last: Oct 31, 2018
[view latest posts]
Level 10
Admin
Forum Moderator
Im a fan of MODSonair
Im a HOST of MODSonair
Category: Q4 Mapping
Posted: Sunday, Sep. 2, 2007 05:05 am
I would have recommended the quake video maker. The rest should be working. I am going to have to test this out myself this afternoon.
Go ahead... You Play I Mod : Support Modsonline by becoming a PREFERRED MEMBER today!
Have you heard the MODSonair Podcast?:
MODSonair is a weekly podcast bringing you the news from a modders perspective.
Tune in every Sunday at 12pm EST to listen LIVE.
Quake 4 Mods for Dummies - Half-Life 2 Mods for Dummies
Share |
foyleman
Preferred PLUS Member
Since: Nov 6, 2001
Posts: 95759
Last: Oct 31, 2018
[view latest posts]
Level 10
Admin
Forum Moderator
Im a fan of MODSonair
Im a HOST of MODSonair
Category: Q4 Mapping
Posted: Sunday, Sep. 2, 2007 01:12 pm
I think the problem is your video size.
- Roq file dimensions MUST be a power of 2 (128x128, 256x256, 512x512)
Go ahead... You Play I Mod : Support Modsonline by becoming a PREFERRED MEMBER today!
Have you heard the MODSonair Podcast?:
MODSonair is a weekly podcast bringing you the news from a modders perspective.
Tune in every Sunday at 12pm EST to listen LIVE.
Quake 4 Mods for Dummies - Half-Life 2 Mods for Dummies
Share |
hondaman900
General Member
Since: Jun 4, 2007
Posts: 23
Last: Nov 22, 2007
[view latest posts]
Level 1
Category: Q4 Mapping
Posted: Sunday, Sep. 2, 2007 08:05 pm
I keep getting "bad size, must be 512 by 384" error from QVM. Doesn't seem to let me use another video size for RoQ output. This is independent of the input AVI size, as I tried converting from a 512 x 512 AVI, in case there was an issue with scaling.

Any ideas?
Share |
foyleman
Preferred PLUS Member
Since: Nov 6, 2001
Posts: 95759
Last: Oct 31, 2018
[view latest posts]
Level 10
Admin
Forum Moderator
Im a fan of MODSonair
Im a HOST of MODSonair
Category: Q4 Mapping
Posted: Monday, Sep. 3, 2007 06:36 am
I see. The problem is that you can't use QVM. That's for older versions.

You need to try this:

- Make sure you AVI is square and power of two (128x128, 256x256, 512x512)

- Download VirtualDub to convert your AVI to individual TGA frames.
http://virtualdub.sourceforge.net/

- Save your audio as a wav if you have audio. I assume you don't so I am skipping that.

- as for the ROQ tool, use ROQ Video Compiler
http://www.modsonline.com/Downloads-full-4002.html
* Extract contents anywhere
* Run RoQCreator.exe
* File > Add TGAs
* enter the RoQ file name
* Press Make RoQ
* wait a while (about 1.5 seconds per frame)

This process will create the roq file

Then follow this tutorial:
http://www.doom3world.org/phpbb2/viewtopic.php?t=7062
Go ahead... You Play I Mod : Support Modsonline by becoming a PREFERRED MEMBER today!
Have you heard the MODSonair Podcast?:
MODSonair is a weekly podcast bringing you the news from a modders perspective.
Tune in every Sunday at 12pm EST to listen LIVE.
Quake 4 Mods for Dummies - Half-Life 2 Mods for Dummies
Share |
hondaman900
General Member
Since: Jun 4, 2007
Posts: 23
Last: Nov 22, 2007
[view latest posts]
Level 1
Category: Q4 Mapping
Posted: Monday, Sep. 3, 2007 11:30 am
Thanks for the info Foleyman.

In the meantime, I downloaded Switchblade and though it's crude, it rendered a 512 x 512 RoQ for me (it matches whatever input AVI dims are) and the gui popped up. You were right, the non-2x size was the issue. Works great now.

Thanks for all the work on getting me an answer - much appreciated. I'll certainly go through it to refine my video guis.
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Quake 4 : Q4 Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»