Advertisement

Full Time Demo

Started by October 11, 2001 10:05 AM
2 comments, last by mzh 23 years, 4 months ago
OK. I know that subject isn''t so good but.. How can I change to one mode to other. I mean that when I have like one box floating and screen. I want it to disappear like about in 30seconds, then there would appear one ball floating. So do I have to code another basecode OR just write more on DrawGLScene? One more thing; How can I set the time how long those balls or boxes float?
If I understand the problem right do you have to write more on DrawGLScene. You can use the stencil buffer for dissolve effects.

OpenGL is a low level library so you do not have any high level functions for this. You also have to write your own code for the timing details.
Advertisement
I''ve just made something like that... for NeHe demo contest )

my code won''t help you much but it''s something like this...

you have a global variable that is you demo/program uptime (you can get that info form nehe''s timer)

then all you have to do is create a function something like (pseudocode)

bool InTime(startTime, endTime)
if (uptime>starttime) && (uptime
then in your progam you call somethin like

if InTime(0, 5000) do DrawFX1
if InTime(5000, 15000) do DrawFX2
...


I hope this helps....




There are more worlds than the one that you hold in your hand...
You should never let your fears become the boundaries of your dreams.
I think the OpenGL drawing method is like Java game programming. You have 1 routing to call the drawing function. For different screens just use if statements. Somewhat something to get used.



____________________________________________________________
If God put me on this earth to do several things b4 i die,
that right now im so far behind ill never die.
____________________________________________________________
____________________________________________________________If God put me on this earth to do several things b4 i die,that right now im so far behind ill never die.____________________________________________________________

This topic is closed to new replies.

Advertisement