project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding
16 Feb 2019, 00:00:00 (PRT)
Register Forum RulesDeveloper 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
Old 2017-09-26, 16:48   #1
Default How to make a perfect EnvMap

1)On editor generate an Envmap in a good place(usually in the middle of the map and around 10m height above the water or terrain, or just use the existing one, but set scroll 0/0 for water and clouds, water animation to 1000. (you can also edit those at sky.con and water.con on your level folder, if you are going to improve the existing one)

2)Set your game resolution at max 8X FSAA,16x Aniso but at 1280x1024

3) restart the game and leave it open, alt-tab, open your level folder and init.con file, also open your generated EnvironmentMapInfo.emi file

4) At init.con find gameLogic.setBeforeSpawnCamera X,Y,Z 0/0/0, fist is camera position and second field is camera angles. At camera position add your envmapinfo first 3 coordinates forget about the last one which is face position. like -98,79,133,1
add only the -98,79,133 at gameLogic.setBeforeSpawnCamera -98,79,133 0/0/0.

5) Save the init.con file, drag and drop on your zipped level server folder.

6) Alt-tab and start your level, that will be the first face of the cube, ` renderer.drawhud 0 to disable HUD elements and print screen, ESC, disconnect, Alt-Tab.

7)At your opened init.con file, change second field to 90/0/0, save it drag n drop to server, alt-tab, start the level again and print screen. Note that you don't need to close the game or disable hud again while doing this.

Follow up till you got the 6 faces of the cubes, the six coordinates are: 0/0/0, 90/0/0, -90/0/0, 180/0/0, 0/90/0, 0/-90/0
stupid but took me a while to find out a way to do that.

9) Now you have your original/generated and the six faces of the new one. Open the original envmap and the six faces at photoshop or Gimp. Upscale the original to 3072 x 512, you will only use it as a cheat to assemble your new one over it. Resize your generated faces at 1280x1024 to 512x512 using sharp method.

10) Start to mount the faces as they were in the old one, use guidelines always snapping to the edge where current face ends and the next one wil start till you have all the six faces mounted over the old one.

11) save it with nvidia dds plugin, don't forget to choose Cube map in the options and set mip map to 10, more than that will bring bug for this size. (3072x512) Use DXT1 No Alpha, final result is a 1MB file that looks thousand times better and bring photorealistic reflections.

Like those:

B4rr3l is offline Reply With Quote
Old 2017-09-27, 18:34   #2
Supporting Member

Strepto's Avatar
Default Re: How to make a perfect EnvMap

Strepto is offline Reply With Quote

envmap, make, perfect
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:18.