project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding
13 Dec 2019, 00:00:00 (PRT)
Register Developer Blogs Project Reality Members List Search Today's Posts Mark Forums Read
PR:BF2 Community Modding Making or wanting help making your own asset? Check in here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 2018-03-05, 11:18   #1
[R-DEV]​rPoXoTauJIo
PR:BF2 Developer
Supporting Member

rPoXoTauJIo's Avatar
Default [Coding] bf2 meshes python lib

https://github.com/rPoXoTauJIo/BF2Mesh

Thing i've been developing for a while, using bytehazard reference and his direct help, initially started as a script to get textures names out of meshes.

I've been interested in what can i do with meshes directly without touching 3dsmax&re-export, so after tests on evil boxes i've attempted to merge kits geometries in single skinnedmesh:

So far that i'm not seeing reports on weird issues with canadian kits, merge been successful

Another thing i've been doing lately is trying to merge staticmeshes which is working so far:

However, in game it works a bit strange :



Apparently, if player camera doesn't see collision of object - it doesn't render it. As i've merged only visible mesh, and left object using stock collision, it's disappear once i look away from collision mesh.

Ultimate goal of this project is to make it automated script for mappers to merge their statics into bigger arrays, hopefully decreasing amount of drawcalls due to lego structure.
For now it's nowhere from being complete, and serves more of purpose me learning mesh structure, but by small steps i'll hope it will work flawlessly someday

assetruler69: I've seen things you smurfs wouldn't believe. Apaches on the Kashan. I watched burned down tank hulls after the launch of the single TOW. All those moments will be lost in time, like tears in rain.
Time to give up and respawn.
rPoXoTauJIo is offline Reply With Quote
 


Tags
bf2, coding, lib, meshes, python
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 12:31.