[Idea] Yea, Quake in Flash, but.. what about Flash in Quake?
Moderator: InsideQC Admins
19 posts
• Page 1 of 2 • 1, 2
[Idea] Yea, Quake in Flash, but.. what about Flash in Quake?
Crazy idea follows.
It could be possible to embed Flash in Quake, so a SWF file is rendered into a texture? maybe on the interface of the game?.
It could be possible to embed Flash in Quake, so a SWF file is rendered into a texture? maybe on the interface of the game?.
- Teiman
- Posts: 309
- Joined: Sun Jun 03, 2007 9:39 am
AFAIK, as long you can periodically obtain a RGB bitmap to updte the GL texture, it's possible. Doom3 has some kind of markup language that allows to generate the computer screens textures, maybe something along this line would be of more practical use.
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC
(LordHavoc)
-

frag.machine - Posts: 2090
- Joined: Sat Nov 25, 2006 1:49 pm
Indeed. But... DON'T USE FLASH!!!
I can see something like this be useful for SIN-like consoles.
A while ago Black added "Gecko" support to DarkPlaces, which apparently allows webpages to be rendered to textures. But I've never seen it in action.
I can see something like this be useful for SIN-like consoles.
A while ago Black added "Gecko" support to DarkPlaces, which apparently allows webpages to be rendered to textures. But I've never seen it in action.
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
- Sajt
- Posts: 1215
- Joined: Sat Oct 16, 2004 3:39 am
the offscreen gecko stuff that black used will likely never be able to run flash. There may be other ways to do it... but it won't work well in windows.
- Spike
- Posts: 2892
- Joined: Fri Nov 05, 2004 3:12 am
- Location: UK
The user may have the Flash plugin disabled or even not installed. Unlikely I know, but still possible.
Flash video can be quite CPU-intensive also. A format like .cin or .roq would be much preferable (as well as being an open source format).
Final consideration is framerate - video-to-texture rendering would require updating the texture object for each frame change, which could be expensive (especially if the texture needs mipmapping, and even more so if the source video is not a nice clean power-of-2 in size).
Flash video can be quite CPU-intensive also. A format like .cin or .roq would be much preferable (as well as being an open source format).
Final consideration is framerate - video-to-texture rendering would require updating the texture object for each frame change, which could be expensive (especially if the texture needs mipmapping, and even more so if the source video is not a nice clean power-of-2 in size).
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
We knew the words, we knew the score, we knew what we were fighting for
-

mh - Posts: 2292
- Joined: Sat Jan 12, 2008 1:38 am
Re: [Idea] Yea, Quake in Flash, but.. what about Flash in Qu
Teiman wrote:Crazy idea follows.
It could be possible to embed Flash in Quake, so a SWF file is rendered into a texture? maybe on the interface of the game?.
Screenshot!
- r00k
- Posts: 1110
- Joined: Sat Nov 13, 2004 10:39 pm
mh wrote:Flash video can be quite CPU-intensive also. A format like .cin or .roq would be much preferable (as well as being an open source format).
.cin, .roq or even .avi aren't interactive, so you can't simulate Doom3-like consoles. Unless we are talking about a multi-scene file with support to "cue points" where you can change what animation part is playing (much like the way animated textures works in standard engine).
mh wrote:Final consideration is framerate - video-to-texture rendering would require updating the texture object for each frame change, which could be expensive (especially if the texture needs mipmapping, and even more so if the source video is not a nice clean power-of-2 in size).
Actually you don't need to upload to the texture every frame. When I implemented render-to-texture in Q2K4 I used a fixed 20Hz rate that gives a smooth enough visual effect. Stills a fairly high frequency, but viable for most current hardware.
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC
(LordHavoc)
-

frag.machine - Posts: 2090
- Joined: Sat Nov 25, 2006 1:49 pm
You can supposedly do the texture uploads in a separate thread. On modern dual core cpus, you'd be just wasting it otherwise.
And yeah, most videos animate at 24 frames per second or so. its a bit pointless to upload it when its not changed :)
more seriously though, if you're uploading 3 lightmaps 10 times a second, a video isn't much worse. Yes, there's a performance hit, but the upload itself will give a limited performance drop. You'll not halve the framerate, although decoding it could. Threads ftw.
And yeah, most videos animate at 24 frames per second or so. its a bit pointless to upload it when its not changed :)
more seriously though, if you're uploading 3 lightmaps 10 times a second, a video isn't much worse. Yes, there's a performance hit, but the upload itself will give a limited performance drop. You'll not halve the framerate, although decoding it could. Threads ftw.
- Spike
- Posts: 2892
- Joined: Fri Nov 05, 2004 3:12 am
- Location: UK
What would be the point of this, other than to suck? Seriously, why would you want to use flash for textures?
Ken Thompson wrote:One of my most productive days was throwing away 1000 lines of code.
Get off my lawn!
-

dreadlorde - Posts: 268
- Joined: Tue Nov 24, 2009 2:20 am
I think most sane people agree that it would be better to do that in C or QuakeC, and not introduce Flashes buggy-ness, bloat, complete lack of being able to be secured, &c into Quake. Plus Flash runs like crap on pretty much all three of the platforms it runs on (Windows, OS X, Unix).
Ken Thompson wrote:One of my most productive days was throwing away 1000 lines of code.
Get off my lawn!
-

dreadlorde - Posts: 268
- Joined: Tue Nov 24, 2009 2:20 am
Yes, yes, we have all already unanimously agreed that Flash is evil and inappropriate, so there's no point in disagreeing.
A simple system for Doom3 or SIN like consoles would be cool though. It would be funny if it were done in MenuQC embedded within CSQC which then communicates with SVQC. Too much for me to think about right now anyway...
A simple system for Doom3 or SIN like consoles would be cool though. It would be funny if it were done in MenuQC embedded within CSQC which then communicates with SVQC. Too much for me to think about right now anyway...
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
- Sajt
- Posts: 1215
- Joined: Sat Oct 16, 2004 3:39 am
Sajt wrote:Yes, yes, we have all already unanimously agreed that Flash is evil and inappropriate, so there's no point in disagreeing.
A simple system for Doom3 or SIN like consoles would be cool though. It would be funny if it were done in MenuQC embedded within CSQC which then communicates with SVQC. Too much for me to think about right now anyway...
I understand the game might have a bundled Flash version, but anyway, what's the point of taking care of yet another OS compatibility issue?
Last, but not least, Quake's a shooter, not a point-and-click game. Case closed.
QuakeWiki
getButterfly - WordPress Support Services
Roo Holidays
Fear not the dark, but what the dark hides.
getButterfly - WordPress Support Services
Roo Holidays
Fear not the dark, but what the dark hides.
-

Chip - Posts: 575
- Joined: Wed Jan 21, 2009 9:12 am
- Location: Dublin, Ireland
19 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 1 guest
