Index | FAQ | Search | Memberlist | Usergroups | Profile | Log in to check your private messages | Log in | Register

[Idea] Yea, Quake in Flash, but.. what about Flash in Quake? Goto page 1, 2 Next

| Inside3d Forums Forum Index -> General Discussion

View previous topic :: View next topic
Author | Message
--- | ---
Teiman Joined: 03 Jun 2007 Posts: 309 |

Posted: Fri Feb 12, 2010 1:01 pm Post subject: [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?.

Back to top |

frag.machine Joined: 25 Nov 2006 Posts: 728 |

Posted: Fri Feb 12, 2010 1:30 pm Post subject: |

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.
_________________
frag.machine - Q2K4 Project
http://fragmachine.quakedev.com/

Back to top |

Sajt Joined: 16 Oct 2004 Posts: 1026 |

Posted: Fri Feb 12, 2010 6:09 pm Post subject: |

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.
_________________
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.

Back to top |

Spike Joined: 05 Nov 2004 Posts: 944 Location: UK |

Posted: Fri Feb 12, 2010 7:28 pm Post subject: |

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. _________________ What's a signature?

Back to top |

mh Joined: 12 Jan 2008 Posts: 909 |

Posted: Fri Feb 12, 2010 7:45 pm Post subject: |

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).
_________________
DirectQ Engine - New release 1.8.666a, 9th August 2010
MHQuake Blog (General)
Direct3D 8 Quake Engines

Back to top |

r00k Joined: 13 Nov 2004 Posts: 483 |

Posted: Fri Feb 12, 2010 7:52 pm Post subject: 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!

Back to top |

frag.machine Joined: 25 Nov 2006 Posts: 728 |

Posted: Fri Feb 12, 2010 11:39 pm Post subject: |

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.
_________________
frag.machine - Q2K4 Project
http://fragmachine.quakedev.com/

Back to top |

Spike Joined: 05 Nov 2004 Posts: 944 Location: UK |

Posted: Sat Feb 13, 2010 12:23 am Post subject: |

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.
_________________
What's a signature?

Back to top |

qbism Joined: 04 Nov 2004 Posts: 82 |

Posted: Sat Feb 13, 2010 9:16 pm Post subject: |

Could quakeflash run inside flashquake? _________________ http://qbism.com

Back to top |

dreadlorde Joined: 24 Nov 2009 Posts: 86 |

Posted: Sat Feb 13, 2010 10:52 pm Post subject: |

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!

Back to top |

Downsider Joined: 16 Sep 2008 Posts: 478 |

Posted: Sun Feb 14, 2010 4:49 am Post subject: |

I assume to have video or interactive content, like a touch-console.

Back to top |

dreadlorde Joined: 24 Nov 2009 Posts: 86 |

Posted: Sun Feb 14, 2010 2:19 pm Post subject: |

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!

Back to top |

Downsider Joined: 16 Sep 2008 Posts: 478 |

Posted: Sun Feb 14, 2010 3:04 pm Post subject: |

Would certainly make content creation a breeze.

Back to top |

Sajt Joined: 16 Oct 2004 Posts: 1026 |

Posted: Sun Feb 14, 2010 3:41 pm Post subject: |

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...
_________________
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.

Back to top |

Chip Joined: 21 Jan 2009 Posts: 314 Location: Romania |

Posted: Sun Feb 14, 2010 5:25 pm Post subject: |

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...

It would be funny to have a 3D shooter game complain it needs Flash before running it. I assume a computer with an older version of Flash, or a broken one.
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.
_________________
My Projects: Quake 1 Mods | OpenQuartz 2 | ChipQuake

Back to top |

Display posts from previous:

| Inside3d Forums Forum Index -> General Discussion | All times are GMT Goto page 1, 2 Next
Page 1 of 2

Jump to:

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2004 phpBB Group