Page 1 of 1
how to use bik video for envmap texture
Posted: Sat Oct 15, 2011 5:37 pm
by fo0k
should this be possible.. im going a bit mad trying.
i'm right in thinking that winrfa is a no-go for envmap_g.rcm right? it has always screwed up this file?
so I'm using gmakerfa which I recall did pack the rcm file properly
Im trying to call a bik texture from the modname/movies folder (as I have managed succesfully for terrain/standardmesh/skybox etc.. but it wont play ball.
anyone care to try and get a bik video as an envmap texture and report their success here!?
bik attached if you dont have one to hand.
Re: how to use bik video for envmap texture
Posted: Sun Oct 16, 2011 10:36 pm
by Apache Thunder
Are you using Notepad to edit the envmap rcm file? Try changing the format to MS-DOS format when saving it as rcm. The usual format seems to screw it up somehow and BF42 pukes all over it.
By the way, I use the debugger to pack the files using batch files I created for that purpose. Nothing beats using the original game engine to pack it. It's 100% guaranteed not to be the source of any problems if your looking for a problem free RFA packer.
What's the folder name of the mod your attempting this in? Once I get the file path working for my mod I can change it to yours and send you the RCM File. I presume the same BIK video will be used on all sides of the envmap cube...
Also you can try linking to the BIK video via the command present in the map's init.con instead of using an RCM file. The game appears to consider the RCM file as a texture and I did manage to apply it to a mesh like a normal texture would in some experiments I did with it a while back. It may work the other way around. You might able to refer to the BIK file instead of loading the RCM file.
EDIT: Hmm...seems Windows 7's version of Notepad has different save options. I'll try the default ANSI format, but if that not works, then I will copy over WinXP's version of Notepad and try that one.

Re: how to use bik video for envmap texture
Posted: Sun Oct 16, 2011 11:15 pm
by Apache Thunder
Got it to work. It will fail to load the BIK from the RCM no matter what. I changed the path and it failed to retrieve the "info" of the bik video, but with the correct path I just get a generic failed to load texture error in the logs.
So that means loading BIKs from the RCM can't happen.
But this works and the BIK video does animate:
Map's Init.con file:
Code: Select all
ShaderManager.setTextureParam envmap Mods\bfheroes\Archives\video\envmap.bik
Change path to reflect where yours is located. Keep the Mods\ part, that's where it starts looking when you path outside the RFAs.

(just like with RS files)
Also note a broken or missing lightmapshadowbits.lsb file for the map might cause envmap system to fail in general. Not sure though. See if your map has one or not and let me know if you have gotten normal envmaps working on a map with broken lightmapshadowbits as I have not known for sure about this.
Re: how to use bik video for envmap texture
Posted: Sun Oct 16, 2011 11:34 pm
by fo0k
Great info sir! Will try this in a bit. Afk at the mo.