Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / GDK Source and Fog

Author
Message
Oneka
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location: Hampton,VA
Posted: 26th May 2010 05:42
Ok, with the latest version of the GDK source downloaded and the libs created, I noticed that I am still having black fog, anyone have any success editing source to get it back working? Like I just need to know what is turned off that the fog is getting no color


Making dreams possible, one line at a time...
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 26th May 2010 10:21
so can anyone download the gdk source, edit it and compile libs?
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 26th May 2010 11:38
Here it says something regarding re-activating fog in DGDK:

http://forum.thegamecreators.com/?m=forum_view&t=166607&b=15

Quote: "It looks like the fog color has been remmed out of
the source code...(because of some conflict with particles ?)
I downloaded the source code as descibed in news letter..
I then downloaded MS studio 8 (90 day demo) and recompiled
the libs - I now have my fog color back... "


Quote: "so can anyone download the gdk source, edit it and compile libs?"

Yes it seems that is the case, I think it will be very good for the DGDK future. For example someone could transform it to make it multi-thread safe.
http://code.google.com/p/darkbasicpro/

Oneka
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location: Hampton,VA
Posted: 26th May 2010 14:22
Well I saw that Morcilla, but he did not really specify what exactly he fixed and I downloaded it and I did not see it being remmed out but it still gave me a black fog color, so I do not know what I need to fix lol


Making dreams possible, one line at a time...
J_C
16
Years of Service
User Offline
Joined: 9th Nov 2007
Location:
Posted: 26th May 2010 20:24
Hi Oneka
In 'Dark SDK' solution (31 projects)
goto 'Particles' project.
in the 'CParticleManagerC.cpp' code file
goto [ void CParticleManager::Update( void) ] function.
at end of function you will see
#ifdef DAREKSDK_COMPILE
// DarkGDK is not restoring fog color on purpose (Mike to resolve at some point)

I added this after the rem line...
m_pD3D->SetRenderState(D3DRS_FOGCOLOR, g_dwFogColr);

recompile and fog color works...
J_C
16
Years of Service
User Offline
Joined: 9th Nov 2007
Location:
Posted: 26th May 2010 20:30
sorry that should read...

m_pD3D->SetRenderState(D3DRS_FOGCOLOR, g_dwFogColor);
Oneka
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location: Hampton,VA
Posted: 26th May 2010 20:31 Edited at: 26th May 2010 20:34
Thanks a lot J_C that fixed the problem I was having

It will be nice to play around with GDK source, I like this


EDIT:
Do you know what the point of the alpha color is? Ive enabled it on the fog but I see no difference lol


Making dreams possible, one line at a time...
Red Eye
15
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 26th May 2010 21:04 Edited at: 26th May 2010 21:05
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 28th May 2010 17:19
i think they should setup a system where user-made fixes to gdk can be reviewed by the gdk maintainers. this way fixes to gdk will come faster

Login to post a reply

Server time is: 2024-07-07 00:46:27
Your offset time is: 2024-07-07 00:46:27