Pimp My Bleach or: BSP file light editor tool

Post anything to do with editing Nexuiz here. Whether its problems you've had, questions, or if you just want to show off your work.

Moderators: Nexuiz Moderators, Moderators

Pimp My Bleach or: BSP file light editor tool

Postby divVerent » Thu May 17, 2007 10:42 pm

Image

I wrote a small tool to edit the lighting of BSP files a bit (that is, scale color values).

Download here: http://mensa.ath.cx/~polzer/temp/bspscale.c

License: MIT "do-whatever-you-want-with-it-but-dont-blame-me-if-it-goes-wrong" license

Warning: the program writes into the given BSP file, it edits it in place. So keep a backup copy of your BSP if you want to change values... in other words, ALWAYS use it like this:

cp bleach.bsp pimp-my-bleach.bsp; ./bspscale pimp-my-bleach.bsp global-mat 1,1.2,1 0,0.2,0 1,1.2,1 global-mul 3 3 3

Windows users replace cp by xcopy /y.

Have o-fun, oh sorry, p-fun!


BTW, the program can scale lightmap and lightgrid independently, so it can be used to fix the lightgrid on maps like facing worlds nex where players are generally too dark:

cp facing-worlds-nex2.bsp facing-worlds-nex3.bsp; ./bspscale facing-worlds-nex3.bsp lg-mul 2 2 2

Small warning: it currently can only edit the lightmaps on deluxemapped maps. Non-deluxemapped maps will appear broken (there is no simple way to autodetect that). The grid, however, can be edited on all maps.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby torus » Thu May 17, 2007 10:55 pm

I tend to distrust anything from .cx domains. >_<

Very cool though :) .
Image
torus
Forum addon
 
Posts: 1341
Joined: Sun Dec 24, 2006 6:59 am
Location: USA

Postby divVerent » Thu May 17, 2007 10:58 pm

then write www-stud.informatik.uni-frankfurt.de instead :) Same IP, mensa.ath.cx is just a static dyndns name for www-stud.informatik.uni-frankfurt.de's IP.

http://www-stud.informatik.uni-frankfur ... bspscale.c
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby cortez » Fri May 18, 2007 11:12 am

nice tool :D

is pink your favourite colour?
Aneurysm 4 the win !!!!! :D
cortez
Keyboard killer
 
Posts: 805
Joined: Wed Dec 06, 2006 7:22 pm
Location: From the moon

Postby Gego » Sun May 20, 2007 11:47 am

isn't this cheating?
com on guyes, this is fucking cheating ffs!
[Image
Image
Gego
Alien
 
Posts: 159
Joined: Wed Mar 01, 2006 4:39 pm

Postby KadaverJack » Sun May 20, 2007 2:24 pm

Gego wrote:isn't this cheating?
com on guyes, this is fucking cheating ffs!

so it's cheating to distribute a map with correct lighting? :D
This tool does nothing any player couldn't do with adjusting brightness/gamma values. It just allows mappers to work around some annoying bugs in q3map2...
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Postby divVerent » Sun May 20, 2007 4:38 pm

Yes, it's intended for mappers. For players, there are cvars they can use for a similar effect (like r_hdr_scenebrightness and v_gamma).
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby tZork » Sun May 20, 2007 9:32 pm

Looks very interesting. I usualy end up with overbight textures or to dark lightgrid in my maps.
HOF:
<Diablo> the nex is a "game modification"
<Diablo> quake1 never had a weapon like that.
<Vordreller> there was no need for anything over 4GB untill Vista came along
<Samua>]Idea: Fix it? :D
<Samua>Lies, that only applies to other people.
tZork
tZite Admin
 
Posts: 1337
Joined: Tue Feb 28, 2006 6:16 pm
Location: Halfway to somwhere else

Postby tChr » Mon May 21, 2007 12:14 am

tZork wrote:Looks very interesting. I usualy end up with overbight textures or to dark lightgrid in my maps.

Yes you do. :)

and while talking aobut controlfactor..
http://www.catb.org/~esr/jargon/html/S/ ... ffect.html

but by all means, keep up the great work :)
the spice extend life!
the spice expand conciousness!
the spice is vital to space travel!
sooooo.. tell me what you want, waht you really-really want
I will proceed directly to the intravenous injection of hard drugs, please.
tChr
Forum addon
 
Posts: 1501
Joined: Tue Feb 28, 2006 9:11 pm
Location: Trondheim, Norway

Postby tZork » Mon May 21, 2007 2:35 pm

tChr wrote:
tZork wrote:Looks very interesting. I usualy end up with overbight textures or to dark lightgrid in my maps.

Yes you do. :)

and while talking aobut controlfactor..
http://www.catb.org/~esr/jargon/html/S/ ... ffect.html

but by all means, keep up the great work :)


Again i have no intention of retarding that map. And i dont see how sse has anything to do with it eigher, so.. www.fixityourselforstopnaggin.nu ;P
HOF:
<Diablo> the nex is a "game modification"
<Diablo> quake1 never had a weapon like that.
<Vordreller> there was no need for anything over 4GB untill Vista came along
<Samua>]Idea: Fix it? :D
<Samua>Lies, that only applies to other people.
tZork
tZite Admin
 
Posts: 1337
Joined: Tue Feb 28, 2006 6:16 pm
Location: Halfway to somwhere else


Return to Nexuiz - Editing

Who is online

Users browsing this forum: No registered users and 1 guest

cron