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 / Creating multiple cubes doesn't work

Author
Message
yonni
16
Years of Service
User Offline
Joined: 1st Nov 2008
Location: UK
Posted: 1st Nov 2008 23:41
Right, I'm trying to use this tutorial (translating all of the code into C++/DarkGDK obviously): http://developer.thegamecreators.com/?f=t01/3d_tutorial_3

And I'm having trouble with the following lines:

Which I have translated to:


You've probably noticed that I've added in the lines outputting numbers to show how many loops have been completed.
The result is just a blank screen with the number "0" in the top left. From mucking around a bit with this code aswell I've found that it just stops ob the line:


However, if I replace the whole thing with simply:

then it works perfectly (well, it only creates one cube obviously).

So why does it not work in the loop?
As far as I can see I've translated from the tutorial exactly?

Cheers in advance.
go2none
16
Years of Service
User Offline
Joined: 8th Oct 2008
Location: London
Posted: 2nd Nov 2008 00:15
Object ID must not equal 0.

for ( int x = 1; x < 5; x++ ) should do the trick.
yonni
16
Years of Service
User Offline
Joined: 1st Nov 2008
Location: UK
Posted: 2nd Nov 2008 01:37
Thanks so much, that was really confusing me

Login to post a reply

Server time is: 2024-11-25 05:30:44
Your offset time is: 2024-11-25 05:30:44