Demonstration- Darkplaces Dynamic Day/Night/Weather system

Discuss programming in the QuakeC language.
Mexicouger
Posts: 514
Joined: Sat May 01, 2010 10:12 pm
Contact:

Demonstration- Darkplaces Dynamic Day/Night/Weather system

Post by Mexicouger »

I have decided to code a fully dynamic day/night/weather system.

Features(WIP):
-Sun interpolates between 2 points between a given time to create a smooth Day cycle
-Day cycle interpolates colors at different parts of the day to differentiate between morning and dusk
-Night cycle with controllable time in QC
-Fully dynamic rain system (Various levels of rain, thunder with strikes).


Heres the demonstration.

http://www.youtube.com/watch?v=mBUXyKXn ... wA&index=1

And I also coded a grid for the game and have added a block system for it as well ;)

Image
Hectate
Posts: 8
Joined: Mon Mar 11, 2013 12:38 am

Re: Demonstration- Darkplaces Dynamic Day/Night/Weather syst

Post by Hectate »

Nice!

I noticed there was "mud" instead of "dust" when it was raining while you walked - do they dry up and disappear when it's not raining and it becomes day again?
Mexicouger
Posts: 514
Joined: Sat May 01, 2010 10:12 pm
Contact:

Re: Demonstration- Darkplaces Dynamic Day/Night/Weather syst

Post by Mexicouger »

Yup exactly. Its still muddy some time after it rains, and eventually it all dries up and is dusty again
SlapMap
Posts: 4
Joined: Sat Mar 30, 2013 7:01 pm
Contact:

Re: Demonstration- Darkplaces Dynamic Day/Night/Weather syst

Post by SlapMap »

Cool. is it pure QC or engine mod as well? and will it work in traditional first person view?
Mexicouger
Posts: 514
Joined: Sat May 01, 2010 10:12 pm
Contact:

Re: Demonstration- Darkplaces Dynamic Day/Night/Weather syst

Post by Mexicouger »

It is all done in QC. I actually think it would work just as well with any other camera angle.

Here's how it works.

-There are 2 points on a map(Preferrably placed much higher than the rest of the map, to represent a sun.)
-The 2 points are placed on oposite corners/sides of a map
- A "sun" entity will spawn a move along that path between the given time limit, while interpolating given colors as well.

So, it should be good with any FPS game.
leileilol
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: Demonstration- Darkplaces Dynamic Day/Night/Weather syst

Post by leileilol »

wil this work 4 the psp
i should not be here
Mexicouger
Posts: 514
Joined: Sat May 01, 2010 10:12 pm
Contact:

Re: Demonstration- Darkplaces Dynamic Day/Night/Weather syst

Post by Mexicouger »

I don't know if you are being sarcastic or trying to take a jab at me, but assuming my acts in the past are still following me today is a mistake and offensive. No where in my post does it state "PSP", nor is there any major gramatical errors(I try my best to keep it tidy and correct, I'm human though.). None of my projects for the past couple of years have regarded any other platform but the PC with the Darkplaces engine.

I would appreciate if you would drop it and move on. Many have.
frag.machine
Posts: 2126
Joined: Sat Nov 25, 2006 1:49 pm

Re: Demonstration- Darkplaces Dynamic Day/Night/Weather syst

Post by frag.machine »

Will we be able to punch trees and throw arrows on creep... I mean, fiends ? :P
J/K, nice achievement dude.
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
leileilol
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: Demonstration- Darkplaces Dynamic Day/Night/Weather syst

Post by leileilol »

there's a simpler way of doing it through attachments, and just simply doing avelocity to one 'planet' entity which would move a sun's position.
i should not be here
Nahuel
Posts: 495
Joined: Wed Jan 12, 2011 8:42 pm
Location: mar del plata

Re: Demonstration- Darkplaces Dynamic Day/Night/Weather syst

Post by Nahuel »

leileilol wrote:there's a simpler way of doing it through attachments, and just simply doing avelocity to one 'planet' entity which would move a sun's position.
i get some similar stuff using "attachments" stuff and color mod
Image
hi, I am nahuel, I love quake and qc.
Mexicouger
Posts: 514
Joined: Sat May 01, 2010 10:12 pm
Contact:

Re: Demonstration- Darkplaces Dynamic Day/Night/Weather syst

Post by Mexicouger »

out of curiosity, how did you change your sky box color? And can you explain a little bit more about what you mean by setattachment and avelocity on a planet entity?
ceriux
Posts: 2230
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Re: Demonstration- Darkplaces Dynamic Day/Night/Weather syst

Post by ceriux »

does fog change skybox color?
Nahuel
Posts: 495
Joined: Wed Jan 12, 2011 8:42 pm
Location: mar del plata

Re: Demonstration- Darkplaces Dynamic Day/Night/Weather syst

Post by Nahuel »

i am using a gray (and huge) hemisphere , its a different model (layer) of the clouds, the color is changed by colordmod feature of darkplaces
hi, I am nahuel, I love quake and qc.
Mexicouger
Posts: 514
Joined: Sat May 01, 2010 10:12 pm
Contact:

Re: Demonstration- Darkplaces Dynamic Day/Night/Weather syst

Post by Mexicouger »

so you are saying you have a huge sphere In your map that Is inside of a box?
Nahuel
Posts: 495
Joined: Wed Jan 12, 2011 8:42 pm
Location: mar del plata

Re: Demonstration- Darkplaces Dynamic Day/Night/Weather syst

Post by Nahuel »

Mexicouger wrote:so you are saying you have a huge sphere In your map that Is inside of a box?
I have a huge sphere, but not a box , the spehre is far away of the brushes. i am using q3bsp, instead of a "sky" texture i Use Common/caulk shader, so the sky is not really a sky is just an invisible texture
hi, I am nahuel, I love quake and qc.
Post Reply