[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4787: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4790: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
InsideQC Forums • View topic - Demonstration- Darkplaces Dynamic Day/Night/Weather system

Demonstration- Darkplaces Dynamic Day/Night/Weather system

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Demonstration- Darkplaces Dynamic Day/Night/Weather system

Postby Mexicouger » Thu Apr 04, 2013 3:14 pm

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.



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

Image
User avatar
Mexicouger
 
Posts: 514
Joined: Sat May 01, 2010 10:12 pm

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

Postby Hectate » Thu Apr 04, 2013 3:31 pm

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?
Hectate
 
Posts: 8
Joined: Mon Mar 11, 2013 12:38 am

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

Postby Mexicouger » Thu Apr 04, 2013 4:52 pm

Yup exactly. Its still muddy some time after it rains, and eventually it all dries up and is dusty again
User avatar
Mexicouger
 
Posts: 514
Joined: Sat May 01, 2010 10:12 pm

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

Postby SlapMap » Thu Apr 04, 2013 5:53 pm

Cool. is it pure QC or engine mod as well? and will it work in traditional first person view?
User avatar
SlapMap
 
Posts: 4
Joined: Sat Mar 30, 2013 7:01 pm

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

Postby Mexicouger » Thu Apr 04, 2013 6:24 pm

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.
User avatar
Mexicouger
 
Posts: 514
Joined: Sat May 01, 2010 10:12 pm

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

Postby leileilol » Thu Apr 04, 2013 6:46 pm

wil this work 4 the psp
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

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

Postby Mexicouger » Thu Apr 04, 2013 7:52 pm

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.
User avatar
Mexicouger
 
Posts: 514
Joined: Sat May 01, 2010 10:12 pm

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

Postby frag.machine » Thu Apr 04, 2013 11:57 pm

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)
User avatar
frag.machine
 
Posts: 2120
Joined: Sat Nov 25, 2006 1:49 pm

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

Postby leileilol » Fri Apr 05, 2013 12:16 am

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.
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

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

Postby Nahuel » Fri Apr 05, 2013 1:31 am

hi, I am nahuel, I love quake and qc.
User avatar
Nahuel
 
Posts: 495
Joined: Wed Jan 12, 2011 8:42 pm
Location: mar del plata

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

Postby Mexicouger » Fri Apr 05, 2013 2:46 am

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?
User avatar
Mexicouger
 
Posts: 514
Joined: Sat May 01, 2010 10:12 pm

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

Postby ceriux » Fri Apr 05, 2013 9:13 am

does fog change skybox color?
User avatar
ceriux
 
Posts: 2230
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

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

Postby Nahuel » Fri Apr 05, 2013 10:19 am

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.
User avatar
Nahuel
 
Posts: 495
Joined: Wed Jan 12, 2011 8:42 pm
Location: mar del plata

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

Postby Mexicouger » Fri Apr 05, 2013 1:32 pm

so you are saying you have a huge sphere In your map that Is inside of a box?
User avatar
Mexicouger
 
Posts: 514
Joined: Sat May 01, 2010 10:12 pm

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

Postby Nahuel » Fri Apr 05, 2013 5:30 pm

hi, I am nahuel, I love quake and qc.
User avatar
Nahuel
 
Posts: 495
Joined: Wed Jan 12, 2011 8:42 pm
Location: mar del plata

Next

Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest