[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
Battlefield Modding Tutorials BFMODS :: View topic - How the game applies textures
Battlefield Modding Tutorials BFMODS
https://battlefieldmodding.com/ssm/phpBB3/

How the game applies textures
https://battlefieldmodding.com/ssm/phpBB3/viewtopic.php?f=3&t=3922
Page 1 of 2

Author:  smytti12 [ Thu Mar 13, 2008 9:52 pm ]
Post subject:  How the game applies textures

What files tell the game to add a texture to a given part of a vehicle, but another texture to another part? I feel this may help me when working on textures.

Author:  ZOOMER [ Thu Mar 13, 2008 10:43 pm ]
Post subject:  Re: How the game applies textures

I never worked on textures...so I read your question and looked in the EA directory...after 2 minutes I conclude:

texture.rfa is called by standardmesh.rfa
standardmesh.rfa is called by objects.rfa
objects.rfa is called by mapnamehere.rfa

Author:  smytti12 [ Thu Mar 13, 2008 11:14 pm ]
Post subject:  Re: How the game applies textures

yes but im asking how does standermesh call upon those textures and apply them to the correct part of an object.

Author:  cptvengeance [ Thu Mar 13, 2008 11:16 pm ]
Post subject:  Re: How the game applies textures


Author:  ZOOMER [ Thu Mar 13, 2008 11:35 pm ]
Post subject:  Re: How the game applies textures

U r asking how does the object know where to put the lower left corner of the mesh? The meshes have many images on it.
Does the mesh flat file just fold onto the object?

Author:  Why Two Kay [ Fri Mar 14, 2008 2:00 am ]
Post subject:  Re: How the game applies textures


Author:  Archimonde0_0 [ Fri Mar 14, 2008 2:08 am ]
Post subject:  Re: How the game applies textures

We'll need to take a look at how 3d Models work to answer this question.

When a 3d Model is created, it is blank, to texture an object, we use something called a "UVW Map" a UVW map replaces the XYZ coordinates of the object itself, with UVW coordinates of a texture. The texture obviously is 2 dimensional, and the Object 3 Dimensional, at least to our eyes.

Once we apply a UVW map to an object, we then move the vertices of the object until we get the planes, or the flat surfaces of the object where we want them. Think of a 3d Model as a grid, and in the grid are many many points, these are called vertexes, the point at which 2 or more edges meet within a 3d Model, those edges then form 2d Planes, and from there the planes can be manipulated into a 3d Object.

Selecting each vertex one at a time, and moving them around, welding where needed, and deleting if necessary, we can take a 3d Object, basically Make it 2 Dimensional, and then apply it to the texture. This data is saved within the 3d Models export file as the objects UVW Map, or UVW Coordinates. BF1942 uses .SM to store this. Battlefield uses the .rs file to tell BF1942 what texture to use, and then maps whatever texture is told to those same UVW coordinates that are saved in the .sm file. If you were to put another texture on there, it is technically stretched over the model the same way, but the actual texture was fitted to the model.

Its all about taking something that looks 3 Dimensional to the human eye, IE: 3d Model and making it 2 Dimensional to the human eye. All things you see on the screen are 2 Dimensional, but we are able to trick our minds into believing we are interacting in a 3d World, but in fact everything you see is a 2 Dimensional object, just moved around, and given what in art we call "Perspective".

I suggest reading up on 3ds Max for more information. Just making a texture in photoshop will not work, texturing requires alot of time and effort inside a 3d Modeling program, to put the pieces together.

Author:  smytti12 [ Wed Mar 19, 2008 8:31 pm ]
Post subject:  Re: How the game applies textures

That was what i was looking for. Archimonde are you the same one that created the bfp skinpack?

Page 1 of 2 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/