qbism / q2tools-220

Quake 2 map compiler tools with v220 map support, automatic phong, enhancements, and fixes.
GNU General Public License v2.0
61 stars 20 forks source link

Sunlight question #40

Closed JafiMapping closed 1 year ago

JafiMapping commented 1 year ago

Hello! Nice work for your 220 q2tools! I'm a mapper here! 4rad seems to manage sunlight. I tried to use the old arghrad setting for this, but it dosent seems to work. Is there a documentation somewhere? Ty

qbism commented 1 year ago

The sun system is based on DeWan's qrad3. Screenshots attached an gist of the tutorial found below: http://tastyspleen.net/~panjoo/rust/tutorials/sun/The%20sun%20is%20neater%20than%20you%20thought!.htm

First, create a light and target it to an info_null. This will be your sun's angle.

Next, add the _sun key to your worldspawn, and enter the targetname of the info_null.

Make sure all of your sky textures have the light flag checked and a light value.

Add the _sun_light value to your worldspawn, and give it a light value.

Add the _sun_ambient value to your worldspawn, and give it a light value.

Add a _sun_color value to your worldspawn, and give it a value.

sun-shot-1 sun-shot-2 sun-shot-3

JafiMapping commented 1 year ago

Thank you!