Gcc tips for demoscene coding?
  • Order of the Butterfly
    Order of the Butterfly
    BalrogSoft
    Posts: 171 from 2006/10/6
    From: Spain
    Sure, but my efforts are focused to develop a game, i got fired 3 months ago, and my priorities are make some iPhone games now, that will be ported to MorphOS. Anyway i have a simple synthetizer, wich can play any number of channels, i must add some filters and effects. I had developed an small visual effect i designed before on Windows with D3D, but on OpenGL it doesn't looks very nice.
    Balrog Software - AmigaSkool.net
    Mac Mini - MorphOS 3.8 - G4 1.5Ghz - Ati 9200 64 Mb
    Efika - MorphOS 3.6 - Ati 9200 64Mb - 80 Gb HD
    Amiga 1200D - OS 3.9 - Blizzard 603e/240mh
  • »03.02.11 - 18:58
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    BalrogSoft
    Posts: 171 from 2006/10/6
    From: Spain
    I was trying to finish my neverending 4k intro, but it seems that TinyGL has changed and the example above it's not working correctly. At calling glutMainLoop(), this example never exits when escape key is pressed, I have tried an old version of TinyGL of a backup system (I don't know what version of morphos, but it has two years old), and the same executable works perfectly. I have tried tinygl.library from MorphOS 3.2 iso, and it doesn't work either.

    Any thoughts?
    Balrog Software - AmigaSkool.net
    Mac Mini - MorphOS 3.8 - G4 1.5Ghz - Ati 9200 64 Mb
    Efika - MorphOS 3.6 - Ati 9200 64Mb - 80 Gb HD
    Amiga 1200D - OS 3.9 - Blizzard 603e/240mh
  • »20.05.14 - 22:01
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    BSzili
    Posts: 559 from 2012/6/8
    From: Hungary
    That feature was removed on my request. You could instantly kill any GLUT program with escape, which is not very good if you happen to press it ingame. You have to install a callback with glutKeyboardFunc, and handle the keypress yourself, like you would do on other platforms.
    This is just like television, only you can see much further.
  • »21.05.14 - 05:55
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    BalrogSoft
    Posts: 171 from 2006/10/6
    From: Spain
    Quote:

    BSzili wrote:
    That feature was removed on my request. You could instantly kill any GLUT program with escape, which is not very good if you happen to press it ingame. You have to install a callback with glutKeyboardFunc, and handle the keypress yourself, like you would do on other platforms.


    I can understand your point, but maybe it's not the best solution, what about older programs that made use of this feature? It is not backward compatible, It should be added as a env variable or something similar to not break compatibility.

    Also it makes my intro bigger than 4k, it adds 2kb (after crunching) just for use exit function.
    Balrog Software - AmigaSkool.net
    Mac Mini - MorphOS 3.8 - G4 1.5Ghz - Ati 9200 64 Mb
    Efika - MorphOS 3.6 - Ati 9200 64Mb - 80 Gb HD
    Amiga 1200D - OS 3.9 - Blizzard 603e/240mh
  • »21.05.14 - 08:47
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    BSzili
    Posts: 559 from 2012/6/8
    From: Hungary
    Escape is used to bring up the in game menu in TORCS, but on MorphOS it closed the game immediately. I didn't specifically requested it to be removed, but this is how the problem was fixed. I'm sorry that this affected your demo, I'd be fine with your solution too.

    [ Edited by BSzili 21.05.2014 - 11:15 ]
    This is just like television, only you can see much further.
  • »21.05.14 - 12:12
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    BalrogSoft
    Posts: 171 from 2006/10/6
    From: Spain
    Quote:

    BSzili wrote:
    Escape is used to bring up the in game menu in TORCS, but on MorphOS it closed the game immediately. I didn't specifically requested it to be removed, but this is how the problem was fixed. I'm sorry that this affected your demo, I'd be fine with your solution too.


    It's not a big problem for me, I won't participate on a demoscene competition so the 4kb limit was something desired but not required. I won't use TinyGL for a future 4k intro, now it's more complicated make a 4k intro using TinyGL.
    Balrog Software - AmigaSkool.net
    Mac Mini - MorphOS 3.8 - G4 1.5Ghz - Ati 9200 64 Mb
    Efika - MorphOS 3.6 - Ati 9200 64Mb - 80 Gb HD
    Amiga 1200D - OS 3.9 - Blizzard 603e/240mh
  • »21.05.14 - 12:21
    Profile Visit Website