DieHard Wolfers Forum Index DieHard Wolfers
A Wolfenstein 3d Fan Community


  Hosted by: MCS & Areyep.com - Designed by: BrotherTank

Original Yahoo Forum - Die Hard Archives

AReyeP HomepageAreyep Homepage DieHard Wolfenstein BunkerDieHard Wolfenstein Bunker Log inLog in RegisterRegister Banlist FAQFAQ Search ForumsSearch

  Username:    Password:      Remember me       

(Idea) Heavy Rain and Blizzard Effect
Page 1 of 1
DieHard Wolfers Forum Index -> SDL Code Crackers View Previous TopicRefresh this PageAdd Topic to your Browser FavoritesSearch ForumsPrint this TopicE-mail TopicGoto Page BottomView Next Topic
Post new topicReply to topic
Author Message
RichterBelmont12
DieHard Wolfer
DieHard Wolfer


Joined: 14 Aug 2004
Last Visit: 10 Nov 2018

Topics: 97
Posts: 1508
Location: New Jersey
usa.gif

PostPosted: Tue Apr 05, 2011 8:51 pm
   Subject: (Idea) Heavy Rain and Blizzard Effect
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Next PostGoto Bottom of Posts

Is this possable to do Like Modify the Rain and Snow Code to make it feel like Heavy Rain and a Blizzard

I really love to add this in Project: X 2

_________________
http://www.youtube.com/RichterBelmont12

https://www.facebook.com/RichterBelmont123

https://twitter.com/Richterbelmont6
Tricob
Moderator
<B>Moderator</B>


Joined: 14 Mar 2005
Last Visit: 6:23 ago.

Topics: 165
Posts: 8252
Location: Neo-traditions, Inc.
usa.gif

PostPosted: Wed Apr 06, 2011 5:02 pm
   Subject: Re: (Idea) Heavy Rain and Blizzard Effect
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

In WL_ATMOS.CPP, you should find a line that reads:
::: CODE :::
#define MAXPOINTS 400
Just increase this number, and see if that does the trick. Smile Note that if you use the Starry Sky feature, you'll have to change that routine slightly.

Also, DrawSnow should have the "rainpos" number increased to something like this:
::: CODE :::
    rainpos -= (tics * 800);
RichterBelmont12
DieHard Wolfer
DieHard Wolfer


Joined: 14 Aug 2004
Last Visit: 10 Nov 2018

Topics: 97
Posts: 1508
Location: New Jersey
usa.gif

PostPosted: Wed Apr 06, 2011 5:34 pm
   Subject: Re: (Idea) Heavy Rain and Blizzard Effect
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

ok Now i need to Figure out the Cloud thing...I really forgot how the Cloud Code works and Getting the Right Color for the Doom Palette

here is the Problem


_________________
http://www.youtube.com/RichterBelmont12

https://www.facebook.com/RichterBelmont123

https://twitter.com/Richterbelmont6
Tricob
Moderator
<B>Moderator</B>


Joined: 14 Mar 2005
Last Visit: 6:23 ago.

Topics: 165
Posts: 8252
Location: Neo-traditions, Inc.
usa.gif

PostPosted: Thu Apr 07, 2011 6:02 pm
   Subject: Re: (Idea) Heavy Rain and Blizzard Effect
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

I haven't actually used that code yet, but I believe the part you need to edit is the "cloudsky_t cloudSkys" array in WL_CLOUDSKY.CPP.
ronwolf1705
Moderator
<B>Moderator</B>


Joined: 31 Jul 2006
Last Visit: 0:04 ago.

Topics: 73
Posts: 3771

blank.gif

PostPosted: Fri Apr 08, 2011 5:30 am
   Subject: Re: (Idea) Heavy Rain and Blizzard Effect
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Is it weird that I actually like the way that cloud looks in the screenshot? Laughing
RichterBelmont12
DieHard Wolfer
DieHard Wolfer


Joined: 14 Aug 2004
Last Visit: 10 Nov 2018

Topics: 97
Posts: 1508
Location: New Jersey
usa.gif

PostPosted: Fri Apr 08, 2011 8:38 am
   Subject: Re: (Idea) Heavy Rain and Blizzard Effect
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

ronwolf1705 wrote:
Is it weird that I actually like the way that cloud looks in the screenshot? Laughing


I know but I like it like a Heavy rain or Blizzard color clouds if i can figure out what color it is.

_________________
http://www.youtube.com/RichterBelmont12

https://www.facebook.com/RichterBelmont123

https://twitter.com/Richterbelmont6
Tricob
Moderator
<B>Moderator</B>


Joined: 14 Mar 2005
Last Visit: 6:23 ago.

Topics: 165
Posts: 8252
Location: Neo-traditions, Inc.
usa.gif

PostPosted: Fri Apr 08, 2011 7:13 pm
   Subject: Re: (Idea) Heavy Rain and Blizzard Effect
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

ronwolf1705 wrote:
Is it weird that I actually like the way that cloud looks in the screenshot? Laughing
It does look cool, but in many environments, it's probably not appropriate. Too Cool
RichterBelmont12
DieHard Wolfer
DieHard Wolfer


Joined: 14 Aug 2004
Last Visit: 10 Nov 2018

Topics: 97
Posts: 1508
Location: New Jersey
usa.gif

PostPosted: Fri Apr 08, 2011 7:34 pm
   Subject: Re: (Idea) Heavy Rain and Blizzard Effect
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Still wondering how to Change the color of the Clouds...still no idea How this Cloud Code works

_________________
http://www.youtube.com/RichterBelmont12

https://www.facebook.com/RichterBelmont123

https://twitter.com/Richterbelmont6
Tricob
Moderator
<B>Moderator</B>


Joined: 14 Mar 2005
Last Visit: 6:23 ago.

Topics: 165
Posts: 8252
Location: Neo-traditions, Inc.
usa.gif

PostPosted: Sat Apr 09, 2011 12:43 pm
   Subject: Re: (Idea) Heavy Rain and Blizzard Effect
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

What do you get when you change the last two values in the arrays?
RichterBelmont12
DieHard Wolfer
DieHard Wolfer


Joined: 14 Aug 2004
Last Visit: 10 Nov 2018

Topics: 97
Posts: 1508
Location: New Jersey
usa.gif

PostPosted: Sat Apr 09, 2011 12:50 pm
   Subject: Re: (Idea) Heavy Rain and Blizzard Effect
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Tricob wrote:
What do you get when you change the last two values in the arrays?


The Last two what?

_________________
http://www.youtube.com/RichterBelmont12

https://www.facebook.com/RichterBelmont123

https://twitter.com/Richterbelmont6
gerolf
DieHard Wolfer
DieHard Wolfer


Joined: 28 Jan 2010
Last Visit: 23 Oct 2018

Topics: 162
Posts: 1084
Location: Alabama
usa.gif

PostPosted: Sat Apr 09, 2011 4:12 pm
   Subject: Re: (Idea) Heavy Rain and Blizzard Effect
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

i hope you find out how, this sounds cool, good luck!

_________________
Tricob
Moderator
<B>Moderator</B>


Joined: 14 Mar 2005
Last Visit: 6:23 ago.

Topics: 165
Posts: 8252
Location: Neo-traditions, Inc.
usa.gif

PostPosted: Sat Apr 09, 2011 6:02 pm
   Subject: Re: (Idea) Heavy Rain and Blizzard Effect
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Richter - you'll find the numbers in groups like this:
::: CODE :::
    { 626,   800,  20,  0 },
Like I said, it's in WL_CLOUDSKY.CPP. Smile
RichterBelmont12
DieHard Wolfer
DieHard Wolfer


Joined: 14 Aug 2004
Last Visit: 10 Nov 2018

Topics: 97
Posts: 1508
Location: New Jersey
usa.gif

PostPosted: Sat Apr 09, 2011 7:31 pm
   Subject: Re: (Idea) Heavy Rain and Blizzard Effect
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

ooh i see ok i understand But I dont Get what are the numbers for.

_________________
http://www.youtube.com/RichterBelmont12

https://www.facebook.com/RichterBelmont123

https://twitter.com/Richterbelmont6
ronwolf1705
Moderator
<B>Moderator</B>


Joined: 31 Jul 2006
Last Visit: 0:04 ago.

Topics: 73
Posts: 3771

blank.gif

PostPosted: Sun Apr 10, 2011 5:51 am
   Subject: Re: (Idea) Heavy Rain and Blizzard Effect
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Richter Belmont wrote:
ooh i see ok i understand But I dont Get what are the numbers for.


Just change the numbers and see what happens. You can always change them back. Smile
RichterBelmont12
DieHard Wolfer
DieHard Wolfer


Joined: 14 Aug 2004
Last Visit: 10 Nov 2018

Topics: 97
Posts: 1508
Location: New Jersey
usa.gif

PostPosted: Sun Apr 10, 2011 8:30 am
   Subject: Re: (Idea) Heavy Rain and Blizzard Effect
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

I've found out that you Change the Color with this

::: CODE :::
colormapentry_t colmapents_1[] = { { 16, -31 }, { 16, 136 } };
colormapentry_t colmapents_2[] = { { 16, -31 } };

colormap_t colorMaps[] = {
    { 32, colmapents_1 },
    { 16, colmapents_2 }
};


But Trying to figure it out is a Pain

here is what i got



Edit:

VICTORY IS MINE!



Now I want to know how to make the Clouds transparent soo you can See the Stars and Sky and making the Clouds Black soo it cam Match the Sky

_________________
http://www.youtube.com/RichterBelmont12

https://www.facebook.com/RichterBelmont123

https://twitter.com/Richterbelmont6
Tricob
Moderator
<B>Moderator</B>


Joined: 14 Mar 2005
Last Visit: 6:23 ago.

Topics: 165
Posts: 8252
Location: Neo-traditions, Inc.
usa.gif

PostPosted: Sun Apr 10, 2011 12:39 pm
   Subject: Re: (Idea) Heavy Rain and Blizzard Effect
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

CodeTech would know that part better than me, but it's probably pretty simple ... like one single "if" statement or something. Smile
KyleRTCW
DieHard Officer
DieHard Officer


Joined: 30 Jul 2003
Last Visit: 02 Jun 2018

Topics: 45
Posts: 510
Location: Ohio
usa.gif

PostPosted: Fri Jul 01, 2011 10:05 pm
   Subject: Re: (Idea) Heavy Rain and Blizzard Effect
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Hey Richter, if you still want the see thru clouds, this is how you can do it assuming you use the doom 2 palette:

::: CODE :::
colormapentry_t colmapents_1[] = { { 10, -111}, {5, -255}  };

colormap_t colorMaps[] = {
    { 15, colmapents_1 }
};

Red: This is the shades of gray in the cloud. {10, -111} basically says we will start at palette index 111 (or 0x6F) and use this color and the preceding 9 shades of gray in the cloud color.
Green: This is where the blue sky was defined in the original clouds. {5, -255} says we start at index 255 and count down 4 from there.
Blue:This number should be equal to the sum of the total # of color steps (10 + 5 in this case)

Well we only want to draw the actual clouds (shades of gray) and not the other stuff, so in DrawClouds, you can add the line in red to only draw specific color ranges
::: CODE :::
            if(wallheight[x] >> 3 <= y)
            {
                u = (gu >> 13) & 255;
                v = (gv >> 13) & 255;
                skycindex = ((255 - u) << 8) + 255 - v;
                if (skyc[skycindex] <= 0x6F) // only draw colors with an index of less than or equal to 111
#ifdef USE_SHADING
                    vbuf[top_add] = curshades[skyc[skycindex]];
#else
                    vbuf[top_add] = skyc[skycindex];
#endif


You'll most likely have to experiment with this some more. Hope that helps. Smile

_________________
Steam: http://steamcommunity.com/id/stormx312
RichterBelmont12
DieHard Wolfer
DieHard Wolfer


Joined: 14 Aug 2004
Last Visit: 10 Nov 2018

Topics: 97
Posts: 1508
Location: New Jersey
usa.gif

PostPosted: Fri Jul 01, 2011 10:26 pm
   Subject: Re: (Idea) Heavy Rain and Blizzard Effect
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

I'm TRying to add this

::: CODE :::
            if(wallheight[x] >> 3 <= y)
            {
                u = (gu >> 13) & 255;
                v = (gv >> 13) & 255;
                skycindex = ((255 - u) << 8) + 255 - v;
                if (skyc[skycindex] <= 0x6F) // only draw colors with an index of less than or equal to 111
#ifdef USE_SHADING
                    vbuf[top_add] = curshades[skyc[skycindex]];
#else
                    vbuf[top_add] = skyc[skycindex];
#endif


But I'm getting this

C:\Wolf4SDL-1.6-src\wl_cloudsky.cpp In function `void DrawClouds(byte*, unsigned int, int)':
216 C:\Wolf4SDL-1.6-src\wl_cloudsky.cpp `skycindex' was not declared in this scope
219 C:\Wolf4SDL-1.6-src\wl_cloudsky.cpp `curshades' was not declared in this scope
C:\Wolf4SDL-1.6-src\Makefile.win [Build Error] [Default Profile/wl_cloudsky.o] Error 1

_________________
http://www.youtube.com/RichterBelmont12

https://www.facebook.com/RichterBelmont123

https://twitter.com/Richterbelmont6
KyleRTCW
DieHard Officer
DieHard Officer


Joined: 30 Jul 2003
Last Visit: 02 Jun 2018

Topics: 45
Posts: 510
Location: Ohio
usa.gif

PostPosted: Fri Jul 01, 2011 10:35 pm
   Subject: Re: (Idea) Heavy Rain and Blizzard Effect
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

D'oh, my apologies, I forgot that "skycindex" was a new variable I made. Add "int skycindex;" somewhere at the top of DrawClouds with the rest of the variables. For the curshades problem, check to make sure your all your { and } brackets open and close at the right places.

The inner for loop should look like this:
::: CODE :::
...       
        for(int x = 0, top_add = top_offset; x < viewwidth; x++, top_add++)
        {
            if(wallheight[x] >> 3 <= y)
            {
                u = (gu >> 13) & 255;
                v = (gv >> 13) & 255;
                skycindex = ((255 - u) << 8) + 255 - v;
                if (skyc[skycindex] <= 0x6F)
#ifdef USE_SHADING
                    vbuf[top_add] = curshades[skyc[skycindex]];
#else
                    vbuf[top_add] = skyc[skycindex];
#endif
            }
            gu += du;
            gv += dv;
        }
...

_________________
Steam: http://steamcommunity.com/id/stormx312
RichterBelmont12
DieHard Wolfer
DieHard Wolfer


Joined: 14 Aug 2004
Last Visit: 10 Nov 2018

Topics: 97
Posts: 1508
Location: New Jersey
usa.gif

PostPosted: Sat Jul 02, 2011 4:42 pm
   Subject: Re: (Idea) Heavy Rain and Blizzard Effect
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Bottom of Posts

Quote:
For the curshades problem, check to make sure your all your { and } brackets open and close at the right places.


huh? Sorry I'm kinda Very Dumb with coding :\

_________________
http://www.youtube.com/RichterBelmont12

https://www.facebook.com/RichterBelmont123

https://twitter.com/Richterbelmont6
Display posts from previous:   
Post new topicReply to topic Time synchronized with the forum server time
DieHard Wolfers Forum Index -> SDL Code Crackers View Previous TopicRefresh this PageAdd Topic to your Browser FavoritesSearch ForumsPrint this TopicE-mail TopicGoto Page TopView Next Topic
Page 1 of 1
Jump to:  

Related topics
 Topics   Replies   Views   Last Post 
No new posts Sticky: [Tutorial] Compiling Wolf4SDL with Code::Blocks
Author: dcbasic
90 27517 Wed May 24, 2017 7:53 pm
Falcon*93 View latest post
No new posts [SDL Tutorial] WolfDX version of MCS's enemy blocking code
Author: Tricob
2 1165 Thu Dec 11, 2008 6:54 pm
Tricob View latest post
No new posts [Help, please] 90 Walls code in Wolf4SDL code
Author: Tricob
14 3049 Sun Sep 21, 2008 2:51 am
BrotherTank View latest post
No new posts [IDEA] Introducing the new "Haasboy Engine"
Author: Haasboy
2 1373 Fri Aug 01, 2008 10:37 am
dcbasic View latest post
No new posts [CODE] Health Shown as a message with full screen view
Author: Raziel
13 3060 Thu Jul 31, 2008 8:07 pm
Raziel View latest post
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
   You cannot delete your posts in this forum
You cannot vote in polls in this forum


Copyright ©2003-2008 DieHard Wolfers
A Modified subBunker Theme by BrotherTank
Powered by phpBB © 2001, 2005 phpBB Group