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 / JGC Terrain problem

Author
Message
zapakitul
17
Years of Service
User Offline
Joined: 1st Mar 2007
Location: In my world
Posted: 29th May 2008 08:36
Heya! I was playing with Jason's library these morning! So after i stopped playing with objects i went and tried to "take on" terrains... But i do not understand why i cannot load any terrain.. or it does load but it does not display... Here is my code so far:

Any idea on what am i doing wrong?

jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 29th May 2008 20:53
Yeah....

DarkGDK stock terrain needs more files supplied to it before it will build properly. The JGC library just wraps this up for you. Let me show you the important commands from the Demo GDK Terrain.




Then I see your code calls JGC::Update(); and this handles updating the terrain for you. it simply calls dbUpdateTerrain();

I recommend Version 1.1+ to make sure its calling dbUpdateTerrain() as I say here. In SOME Prior versions I had that command commented out - an oversight.

I know you are using 1.1 so - you just need to borrow code from up above

Good Luck! Let me know how it works out!

Login to post a reply

Server time is: 2024-09-29 21:17:30
Your offset time is: 2024-09-29 21:17:30