Too fast? On my pc it runs normal.... the rotation speed is 0.5f.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: ninogenio on August 10, 2013
excellent NaniBot!!!,
k++ for sticking with it. that looks really cool, multiple objects seem hard at first but simple for loops can draw many thousands of instances of the same object if required.
its the exact same thing for the old large 2d tilemaped games like zelda etc the world map is usually tilemaped using a relatively small selection of tiles and just drawn hundreds of times with a few lines of code.
as a good little practice exercise how about adding a y axis for loop around the x axis one you already have too draw a couple of lines of triangles?
with just another line of code you could have x and y grid mapping.
)
Quote from: ninogenio on July 18, 2013
right,
lets take a slightly different approach too this. lets work our way through the problem slowly. take it a step at a time and get you feeling the buzz of accomplishment for your hard work.
before adding the code i put up there. lets decide where a good place too add it might be.. as a first step i would like you too look very carefully at your code and tell me a few places where you think that snippet could go. ideally its going too go some where in the rendering phase.. then we can move on too actually adding it and making it work.

Quote from: ninogenio on July 16, 2013
here you go mate just quickly built.. ive commented the source too hopefully make it quite clear whats going on.. if there is anything your not sure of please don't hesitate too ask what its doing. ive attached your main source file with the changes along with a little exe that switches scenes every 3 seconds and loops back round on the 3rd scene.
Quote from: ninogenio on July 10, 2013
yeah as combatking said,
you are going too need some sort of trigger too switch too each event.. a timer is the best option. also the switch method that ck suggested is good. just too expand a touch.
purely pesudo.
void appinit( void ){
//all init based stuff
.....
.....
.....
/////////////////////
int effectMode = 0;
systime timer;
starttimer(timer);
}
void processStuff( void ){
gettimesms(timer);
switch(effectMode){
case 0:
// Code for a starfield
if ( timer > 2000 ) effectMode += 1;
break;
case 1:
// Code for a spinning cube
if ( timer > 4000 ) effectMode += 1;
break;
case 2:
// Code for a plasma effect
if ( timer > 6000 ) effectMode += 1;
break;
if ( effectMode > 2 ){
effectMode = 0;
starttimer(timer);
}
}
would switch effects every 2 seconds and loop back round.
.Page created in 0.175 seconds with 14 queries.