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 / dbSync error on multicam programm

Author
Message
Mobilemedved
2
Years of Service
User Offline
Joined: 23rd Jan 2015
Location:
Posted: 26th Jan 2015 09:59
I have DarkGDK commercial (single-seat license)2.0RC4.
VC++ 2010 and winXP, win7
I have error on this :


+ Code Snippet


I make C++ code for water DB example (shader reflection):
This work fine in DB!
+ Code Snippet

My C++ code crash every time:


+ Code Snippet

help me please

zzz!
The Tall Man
3
Years of Service
User Offline
Joined: 16th Nov 2013
Location: Earth
Posted: 26th Jan 2015 11:27 Edited at: 26th Jan 2015 11:34
That "commercial" revision is an early early version. My first thought is to try something more recent, such as the 2010 version or even more recent:

This (the Open-Source latest):
http://forum.thegamecreators.com/?m=forum_view&t=209001&b=22

or This (WickedX's most recent based on the Open-Source latest):
http://forum.thegamecreators.com/?m=forum_view&t=209827&b=22

I believe that most recent version (the second link) did address an issue with shaders...?

If that doesn't fix it, then you'd need to give more details on what you're trying to do and what's happening for people to be able to help you.

Judging what we see is the greatest blinder and self-limiter in the universe.

What we perceive is never reality. It is only a story we tell ourselves based on our current perspective, which has far more to do with our beliefs about ourselves than with anything else.
TheComet
9
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 27th Jan 2015 00:32 Edited at: 27th Jan 2015 00:32
Quote: "I have error on this :"


Please post all of the compiler output. "error" could mean anything.

By looking at your code, some things jump to mind.
1) Static variables are not necessarily initialised to NULL. Ptr could be a random garbage value. You should write this to be safe:
+ Code Snippet
2) Why are you getting the function address from darkgdk.dll and not just calling dbSync() directly?
3) Are you linking against darkgdk.dll? You can't just get the function address of some random DLL and call it, that's not how things work.

The only way to do great work is to love what you do -- Steve Jobs
Mobilemedved
2
Years of Service
User Offline
Joined: 23rd Jan 2015
Location:
Posted: 28th Jan 2015 08:28
Oohh! I am set CamReflect=1 and dbSync() well done.
Previously was CamReflect=31.

My latest code and shader (FresnelWater.fx) code. You can use it in your applications

+ Code Snippet


+ Code Snippet

zzz!

Login to post a reply

Server time is: 2017-05-29 02:56:50
Your offset time is: 2017-05-29 02:56:50