some kind of weird request

Locked
nfect mac
Posts: 1
Joined: Tue Dec 15, 2015 5:05 pm

some kind of weird request

Post by nfect mac »

Hello there,

I'm Nick, I'm a 3D artist. I'm remodeling, (in high poly, almost photo-realistic) some levels of soldier of fortune 2, just for the visual candy purpose, it's actualy not for gaming. I would like to render "demos" inside the remodeled environement (sort of a tribute to a game I loved), however, I have no idea how to extract the data from the demo. Kevin at seismovision kindly pointed me to the source code of quake 3, but to my untrained eyes, it looks like a bunch of "if" and "else" that I can't make any sens of. Anyone familiar with the part of the code used in the process of decyphering the demo files ? Anyone could point me maybe to someone who already went through this ? I also would like to know, do the demo file posess the same stream as the one going through internet while playing ?

Thanks in advance !

Nick
Ganemi
Posts: 564
Joined: Thu Apr 21, 2005 12:57 pm

Re: some kind of weird request

Post by Ganemi »

cl_game.h, cl_input.h, client.h.

Those files seem to primarily handle most of the code regarding demo playback. How I determined that was opening up visual studio, hitting ctrl + f, selecting Entire Solution and just flipping through all instances of "demo ", that's "demo" with an extra space behind it. If that didn't return anything I would have added another space in front, just as a starting point.

Sounds like you're trying to take some of the recreated game content and simply show it rendered in Q3A? To do that it doesn't seem like you would need to modify the gamecode. Just create a new map with the content, and run around with it. UDK might even be better, if you're just trying to make the new content look nice.
User avatar
Eraser
Posts: 19177
Joined: Fri Dec 01, 2000 8:00 am

Re: some kind of weird request

Post by Eraser »

Are you rendering the level in SoF2 itself? If so, check if the avidemo command exists in SoF2. It does in Quake 3 and it outputs each rendered frame to a TGA image. You can then use some 3rd party tool to stitched the images back together into a full motion video.
Ganemi
Posts: 564
Joined: Thu Apr 21, 2005 12:57 pm

Re: some kind of weird request

Post by Ganemi »

google pjbmp2avi. That would do it.
Locked