project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding
18 Nov 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

Reply
 
Thread Tools Display Modes
Old 2019-10-05, 14:35   #1
dnamro
Default BF MeshViewSampler

The BF MeshViewSampler is included in the latest 3ds max bf2 plugin/scripts

bin/extern/BfMeshViewSampler.exe

It is a console app to create Lightmap Samples. It appears to be created based on Remdul's public source code for his BFMeshViewer tool.

Who created it and is the source code available?

I am wondering if it could be used with the Python script to read the BF Mesh in order to batch generate LM samples:

python script to read BF Mesh
https://www.realitymod.com/forum/sho...d.php?t=147329

looking at the Max script, it appears that Samples are created multiple times, first once for each LOD, then another one with the UVChannel number.

Command line options that I can find in the max script are:

-geom (Currently only 1 is suported)
-lod (lodI value)
-channel (UV Channel, 5 is the default)
-padding (6 is the default)

The following are lightmap sizes, which must be a power of 2. If width is set to "auto" then width and height are auto generated from the object info.
-width
-height

Object file path to .staticmesh file

It would be helpful to have access to the source code for BF MeshViewSampler
dnamro is offline Reply With Quote
Old 2019-10-05, 16:23   #2
[R-DEV]​Outlawz7
PR:BF2 Developer

Outlawz7's Avatar
Default Re: BF MeshViewSampler

Ask over at FH2 tbh.

Outlawz7 is offline Reply With Quote
Reply

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 08:45.