Banner

Repeat

End

Forums

HavenForts: Construct JetFists - The Chronicles of Wargasm (Episode 2, NeoForts)
  #1  
Old 06-28-2008
Zoc Zoc is offline
#include "title.h"

Fort Warrior
 
Join Date: Jun 2007
Location: Brazil, RJ
Posts: 1,490
Exclamation How to properly build cubemaps for HDR Maps

Hey there,

This is a quick guide on how to build cubemaps for maps with HDR support. I haven't tested this with widescreen monitors, but it should work fine.

- Configure the game to go full screen. Using the best possible graphic configurations produces better results.

- Load the map which you're willing to build the cubemaps.

- Type in the console the following commands. Don't type "<<" or anything on the right side of it. I'll be using those as "comments" on the specific line.

Quote:
sv_cheats 1
togglephase
mat_specular 0
mat_hdr_enabled 1
buildcubemaps << After this one, press esc and move your character a bit... just enough to don't stand in the same place
mat_hdr_enabled 0
buildcubemaps
mat_hdr_enabled 1 << you will see a lot of purple stuff in this step
mat_specular 1
mat_reloadallmaterials
- If you see some errors like the ones below, ignore them. It's perfectly normal. (That's why you will see some purple textures on the screen)
Quote:
Error reading material "materials/maps/zoc_test/c336_569_48.vtf"
*** Tried to load a non-VTF file as a VTF file!
- Type "quit" in the console. Your game will (obviously) close. On my tests, it crashed twice. Don't worry about that crash, it's because the game couldn't find that purple textures previously mentioned.

- Open the game and load the map. Enjoy your new map with working cubemaps and HDR.

Note: When compiling the map, MAKE SURE you have enabled "-both" flag for vrad, or this method will fail.

Update (2008-06-29): Some fixes, added arenaceous advice.
__________________
-Zoc



Never let the children compete with adults. When the child eventually loses, they will play pranks as much as he/she can against the adult.

Last edited by Zoc; 06-29-2008 at 04:36 AM.
  #2  
Old 06-29-2008
arenaceous's Avatar
Flag Capper
 
Join Date: Oct 2006
Location: in a dormroom
Posts: 2,655
Default

according to the valve developers community you have to turn off mat_spectacular first (it doesnt draw the reflections while you compile the cubemaps.
and do it like such

mat_specular 0
buildcubemaps
mat_hdr_level 0
map mapname
buildcubemaps
mat_hdr_level 2
map mapname
mat_specular 1
__________________
Quote:
Originally Posted by mc_nebula View Post
Guys, Serious thread are serious business.
11:29 p.m. - ☢ AZgAg: did the fgd was moved?
  #3  
Old 06-29-2008
Zoc Zoc is offline
#include "title.h"

Fort Warrior
 
Join Date: Jun 2007
Location: Brazil, RJ
Posts: 1,490
Default

Thanks, updated main post
__________________
-Zoc



Never let the children compete with adults. When the child eventually loses, they will play pranks as much as he/she can against the adult.
  #4  
Old 06-29-2008
Fort Warrior
 
Join Date: Jun 2007
Location: Americaland
Posts: 1,306
Default

Does this mean the cubemap issues have been figured out? w00t for progress.
  #5  
Old 06-29-2008
porc-épic's Avatar
Not French.
Fort Warrior
 
Join Date: Mar 2007
Location: England
Posts: 1,344
Default

Does anyone have a good HDR tutorial? (that isn't from the valve wiki)
__________________
Hello
  #6  
Old 07-08-2008
Crawler
 
Join Date: Oct 2006
Posts: 13
Default

Quote:
Originally Posted by Zoc View Post
I haven't tested this with widescreen monitors, but it should work fine.
Works well with any widescreen res. Tested it on my laptop with [1440x900] (16:10), desing PC [1920x1200] (16:10) and on TV screeen with HD aspect (16:9). Works just fine anywhere.
  #7  
Old 07-08-2008
Khuskan's Avatar
ADMINISTRATOR!
Veteran Fort God
 
Join Date: Aug 2005
Posts: 4,468
Send a message via MSN to Khuskan
Default

Quote:
Originally Posted by FlashEF View Post
Works well with any widescreen res. Tested it on my laptop with [1440x900] (16:10), desing PC [1920x1200] (16:10) and on TV screeen with HD aspect (16:9). Works just fine anywhere.
Assuming that you've not edited any of the cubemap settings, cubemaps should compile fine on anything 800x600 or over. If you've made cubemaps more detailed, you will need to up the resolution.

Notably, if you render the highest quality cubemap possible, you will need a resolution greater than 1152x1152 - which on LCDs is pretty rare.
__________________
Quote:
fljo: this game sucsk and kukshna/khuskan thinks he to good since he a [dev[
http://www.stieffers.com/Other/SF_Signature_Khuskan.gif
  #8  
Old 07-08-2008
Kohan's Avatar
Experienced Builder
 
Join Date: Dec 2006
Posts: 268
Default

Yeah, default cubemaps require a 512x512 space, so anything above 640x480 works *nodnod*.

In addition, the instances where a reflected surface encompasses more than a 512x512 area on the screen are so distant that the sacrifice in filesize is simply not allowable.
__________________
Truth | Sarcasm
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:49 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0

Tab