• [p.i.c] ships flyin and faitin

    From fir@3:633/10 to All on Mon Nov 16 20:37:34 2026
    i toy with this 3d rasterizer and get some 3d ships (kinda like aeroplanes/jets but in space) and want to code them interesting flying behaviours

    maybe some will have some thoughts on it (then i eventually my try some
    ideas and post a video how it work)

    the api you need to code such behaviour is quite simple for example some
    basic algortihm that work is

    void FlyPass2(int i)
    {
    float3 player_pos=PlayerPos();
    float3 to_player=sub(player_pos,bag[i].p.pos);
    float distance=length(to_player);
    if(distance<0.001f) return;
    normalize(&to_player);

    if(bag[i].combat_state!='approach' && bag[i].combat_state!='pass' && bag[i].combat_state!='turn') bag[i].combat_state='approach';

    if(bag[i].combat_state=='approach')
    {
    YawPitchAccelerate(i,to_player,30/3);
    if(distance<20*150) bag[i].combat_state='pass';
    }

    if(bag[i].combat_state=='pass')
    {
    YawPitchAccelerate(i,to_player,60/3);
    if(distance<20*70) bag[i].combat_state='turn';
    }

    if(bag[i].combat_state=='turn')
    {
    float3 direction=mul(to_player,-1.0f);
    YawPitchAccelerate(i, direction, 45/3);

    if(distance>20*600) bag[i].combat_state='approach';
    }
    }


    if c would have basic vector arithmetic it would look better

    20*600 mean 600 meters as the world 1.0 unit is like 5 cm

    45/3 means 45 m/s speed -as its about 60 fps so 45/3*60 = 45*20 (45
    meters/s)

    YawPitchAccelerate(i, direction, 45/3);

    do most work it just make ship starting to yaw-pitch into given
    direction and accelerate/deacce;erate for given speed

    (it is handled by simple 'engine' which has limited angular and linear acceleration and there is also dumping factor)..

    here above it uses its max accelerations but eventually value from
    0.0..1.0 can be passed if ships qould be said only use parts of its max accalarations


    i need good ideas what such ships can do..i not yet thought on this
    seriously (becouse it took me a time to build this setup and see what is
    the ground around that

    ship eventually also can make 'roll' moves and strafe moves (though im
    not sure those strafe moves i defined well, also by acceleration +
    dumping..it may be bad approach)


    one of interesting tiny algorithm i tested it yet this



    void Patrol(int i,float3 *points,int point_count,float speed,float arrival_distance)
    {
    if(!points || point_count<=0) return;

    int point=(int)bag[i].mode;

    if(point<0 || point>=point_count) point=0;

    float3 destination=points[point];
    float3 direction=sub(destination,bag[i].p.pos);

    if(length(direction)<arrival_distance)
    {
    point++;
    if(point>=point_count) point=0;

    bag[i].mode=(unsigned)point;
    destination=points[point];
    }

    FlyToward(i,destination,speed);
    }


    it just take array of 3d points and if near some then it turn to another
    and it in fact looks well...but i need some more

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Ross Finlayson@3:633/10 to All on Mon Nov 16 12:10:07 2026
    On 11/16/2026 11:37 AM, fir wrote:
    i toy with this 3d rasterizer and get some 3d ships (kinda like aeroplanes/jets but in space) and want to code them interesting flying behaviours

    maybe some will have some thoughts on it (then i eventually my try some
    ideas and post a video how it work)

    the api you need to code such behaviour is quite simple for example some basic algortihm that work is

    void FlyPass2(int i)
    {
    float3 player_pos=PlayerPos();
    float3 to_player=sub(player_pos,bag[i].p.pos);
    float distance=length(to_player);
    if(distance<0.001f) return;
    normalize(&to_player);

    if(bag[i].combat_state!='approach' && bag[i].combat_state!='pass'
    && bag[i].combat_state!='turn') bag[i].combat_state='approach';

    if(bag[i].combat_state=='approach')
    {
    YawPitchAccelerate(i,to_player,30/3);
    if(distance<20*150) bag[i].combat_state='pass';
    }

    if(bag[i].combat_state=='pass')
    {
    YawPitchAccelerate(i,to_player,60/3);
    if(distance<20*70) bag[i].combat_state='turn';
    }

    if(bag[i].combat_state=='turn')
    {
    float3 direction=mul(to_player,-1.0f);
    YawPitchAccelerate(i, direction, 45/3);

    if(distance>20*600) bag[i].combat_state='approach';
    }
    }


    if c would have basic vector arithmetic it would look better

    20*600 mean 600 meters as the world 1.0 unit is like 5 cm

    45/3 means 45 m/s speed -as its about 60 fps so 45/3*60 = 45*20 (45
    meters/s)

    YawPitchAccelerate(i, direction, 45/3);

    do most work it just make ship starting to yaw-pitch into given
    direction and accelerate/deacce;erate for given speed

    (it is handled by simple 'engine' which has limited angular and linear acceleration and there is also dumping factor)..

    here above it uses its max accelerations but eventually value from
    0.0..1.0 can be passed if ships qould be said only use parts of its max accalarations


    i need good ideas what such ships can do..i not yet thought on this
    seriously (becouse it took me a time to build this setup and see what is
    the ground around that

    ship eventually also can make 'roll' moves and strafe moves (though im
    not sure those strafe moves i defined well, also by acceleration + dumping..it may be bad approach)


    one of interesting tiny algorithm i tested it yet this



    void Patrol(int i,float3 *points,int point_count,float speed,float arrival_distance)
    {
    if(!points || point_count<=0) return;

    int point=(int)bag[i].mode;

    if(point<0 || point>=point_count) point=0;

    float3 destination=points[point];
    float3 direction=sub(destination,bag[i].p.pos);

    if(length(direction)<arrival_distance)
    {
    point++;
    if(point>=point_count) point=0;

    bag[i].mode=(unsigned)point;
    destination=points[point];
    }

    FlyToward(i,destination,speed);
    }


    it just take array of 3d points and if near some then it turn to another
    and it in fact looks well...but i need some more


    The "Master Execution Scheduler" with about 250+ programs
    is off a bunch of main-frame scheduling routines, about
    the roll-ups and the parts in carts and takt-fully.

    It doesn't even have a unit of time more granular than "day",
    "mdays".

    Not my business.



    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Chris M. Thomasson@3:633/10 to All on Mon Nov 16 13:06:54 2026
    On 11/16/2026 12:10 PM, Ross Finlayson wrote:
    On 11/16/2026 11:37 AM, fir wrote:
    i toy with this 3d rasterizer and get some 3d ships (kinda like
    aeroplanes/jets but in space) and want to code them interesting flying
    behaviours

    maybe some will have some thoughts on it (then i eventually my try some
    ideas and post a video how it work)

    the api you need to code such behaviour is quite simple for example some
    basic algortihm that work is

    void FlyPass2(int i)
    {
    ’’’’ float3 player_pos=PlayerPos();
    ’’’’ float3 to_player=sub(player_pos,bag[i].p.pos);
    ’’’’ float distance=length(to_player);
    ’’’’ if(distance<0.001f) return;
    ’’’’ normalize(&to_player);

    ’’’’ if(bag[i].combat_state!='approach' && bag[i].combat_state!='pass'
    && bag[i].combat_state!='turn')’’’’’’’ bag[i].combat_state='approach';

    ’’’’ if(bag[i].combat_state=='approach')
    ’’’’ {
    ’’’’’’’’ YawPitchAccelerate(i,to_player,30/3);
    ’’’’’’’’ if(distance<20*150) bag[i].combat_state='pass';
    ’’’’ }

    ’’’’ if(bag[i].combat_state=='pass')
    ’’’’ {
    ’’’’’’’’ YawPitchAccelerate(i,to_player,60/3);
    ’’’’’’’’ if(distance<20*70) bag[i].combat_state='turn';
    ’’’’ }

    ’’’’ if(bag[i].combat_state=='turn')
    ’’’’ {
    ’’’’’’’’ float3 direction=mul(to_player,-1.0f);
    ’’’’’’’’ YawPitchAccelerate(i, direction, 45/3);

    ’’’’’’’’ if(distance>20*600) bag[i].combat_state='approach';
    ’’’’ }
    }


    if c would have basic vector arithmetic it would look better

    20*600 mean 600 meters as the world 1.0 unit is like 5 cm

    45/3 means 45 m/s speed -as its about 60 fps so 45/3*60 = 45*20 (45
    meters/s)

    ’’’’’’’’ YawPitchAccelerate(i, direction, 45/3);

    do most work it just make ship starting to yaw-pitch into given
    direction and accelerate/deacce;erate for given speed

    (it is handled by simple 'engine' which has limited angular and linear
    acceleration and there is also dumping factor)..

    here above it uses its max accelerations but eventually value from
    0.0..1.0 can be passed if ships qould be said only use parts of its max
    accalarations


    i need good ideas what such ships can do..i not yet thought on this
    seriously (becouse it took me a time to build this setup and see what is
    the’ ground around that

    ship eventually also can make 'roll' moves and strafe moves (though im
    not sure those strafe moves i defined well, also by acceleration +
    dumping..it may be bad approach)


    one of interesting tiny algorithm i tested it yet this



    void Patrol(int i,float3 *points,int point_count,float speed,float
    arrival_distance)
    {
    ’’’’ if(!points || point_count<=0) return;

    ’’’’ int point=(int)bag[i].mode;

    ’’’’ if(point<0 || point>=point_count) point=0;

    ’’’’ float3 destination=points[point];
    ’’’’ float3 direction=sub(destination,bag[i].p.pos);

    ’’’’ if(length(direction)<arrival_distance)
    ’’’’ {
    ’’’’’’’’ point++;
    ’’’’’’’’ if(point>=point_count) point=0;

    ’’’’’’’’ bag[i].mode=(unsigned)point;
    ’’’’’’’’ destination=points[point];
    ’’’’ }

    ’’’’ FlyToward(i,destination,speed);
    }


    it just take array of 3d points and if near some then it turn to another
    and it in fact looks well...but i need some more


    The "Master Execution Scheduler" with about 250+ programs
    is off a bunch of main-frame scheduling routines, about
    the roll-ups and the parts in carts and takt-fully.

    Huh?


    It doesn't even have a unit of time more granular than "day",
    "mdays".

    Not my business.




    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Chris M. Thomasson@3:633/10 to All on Mon Nov 16 13:08:07 2026
    On 11/16/2026 11:37 AM, fir wrote:
    i toy with this 3d rasterizer and get some 3d ships (kinda like aeroplanes/jets but in space) and want to code them interesting flying behaviours
    [...]
    it just take array of 3d points and if near some then it turn to another
    and it in fact looks well...but i need some more

    Just ask your AI to do it for you... Right? Why even think about doing
    it yourself... Sigh...


    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From fir@3:633/10 to All on Mon Nov 16 22:57:34 2026
    Ross Finlayson pisze:
    On 11/16/2026 11:37 AM, fir wrote:
    i toy with this 3d rasterizer and get some 3d ships (kinda like
    aeroplanes/jets but in space) and want to code them interesting flying
    behaviours

    maybe some will have some thoughts on it (then i eventually my try some
    ideas and post a video how it work)

    the api you need to code such behaviour is quite simple for example some
    basic algortihm that work is

    void FlyPass2(int i)
    {
    ’’’’ float3 player_pos=PlayerPos();
    ’’’’ float3 to_player=sub(player_pos,bag[i].p.pos);
    ’’’’ float distance=length(to_player);
    ’’’’ if(distance<0.001f) return;
    ’’’’ normalize(&to_player);

    ’’’’ if(bag[i].combat_state!='approach' && bag[i].combat_state!='pass'
    && bag[i].combat_state!='turn')’’’’’’’ bag[i].combat_state='approach';

    ’’’’ if(bag[i].combat_state=='approach')
    ’’’’ {
    ’’’’’’’’ YawPitchAccelerate(i,to_player,30/3);
    ’’’’’’’’ if(distance<20*150) bag[i].combat_state='pass';
    ’’’’ }

    ’’’’ if(bag[i].combat_state=='pass')
    ’’’’ {
    ’’’’’’’’ YawPitchAccelerate(i,to_player,60/3);
    ’’’’’’’’ if(distance<20*70) bag[i].combat_state='turn';
    ’’’’ }

    ’’’’ if(bag[i].combat_state=='turn')
    ’’’’ {
    ’’’’’’’’ float3 direction=mul(to_player,-1.0f);
    ’’’’’’’’ YawPitchAccelerate(i, direction, 45/3);

    ’’’’’’’’ if(distance>20*600) bag[i].combat_state='approach';
    ’’’’ }
    }


    if c would have basic vector arithmetic it would look better

    20*600 mean 600 meters as the world 1.0 unit is like 5 cm

    45/3 means 45 m/s speed -as its about 60 fps so 45/3*60 = 45*20 (45
    meters/s)

    ’’’’’’’’ YawPitchAccelerate(i, direction, 45/3);

    do most work it just make ship starting to yaw-pitch into given
    direction and accelerate/deacce;erate for given speed

    (it is handled by simple 'engine' which has limited angular and linear
    acceleration and there is also dumping factor)..

    here above it uses its max accelerations but eventually value from
    0.0..1.0 can be passed if ships qould be said only use parts of its max
    accalarations


    i need good ideas what such ships can do..i not yet thought on this
    seriously (becouse it took me a time to build this setup and see what is
    the’ ground around that

    ship eventually also can make 'roll' moves and strafe moves (though im
    not sure those strafe moves i defined well, also by acceleration +
    dumping..it may be bad approach)


    one of interesting tiny algorithm i tested it yet this



    void Patrol(int i,float3 *points,int point_count,float speed,float
    arrival_distance)
    {
    ’’’’ if(!points || point_count<=0) return;

    ’’’’ int point=(int)bag[i].mode;

    ’’’’ if(point<0 || point>=point_count) point=0;

    ’’’’ float3 destination=points[point];
    ’’’’ float3 direction=sub(destination,bag[i].p.pos);

    ’’’’ if(length(direction)<arrival_distance)
    ’’’’ {
    ’’’’’’’’ point++;
    ’’’’’’’’ if(point>=point_count) point=0;

    ’’’’’’’’ bag[i].mode=(unsigned)point;
    ’’’’’’’’ destination=points[point];
    ’’’’ }

    ’’’’ FlyToward(i,destination,speed);
    }


    it just take array of 3d points and if near some then it turn to another
    and it in fact looks well...but i need some more


    The "Master Execution Scheduler" with about 250+ programs
    is off a bunch of main-frame scheduling routines, about
    the roll-ups and the parts in carts and takt-fully.

    It doesn't even have a unit of time more granular than "day",
    "mdays".

    Not my business.



    are ou here to troll? if so trolls are not so easy welcome imo


    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From fir@3:633/10 to All on Mon Nov 16 23:00:22 2026
    Chris M. Thomasson pisze:
    On 11/16/2026 11:37 AM, fir wrote:
    i toy with this 3d rasterizer and get some 3d ships (kinda like
    aeroplanes/jets but in space) and want to code them interesting flying
    behaviours
    [...]
    it just take array of 3d points and if near some then it turn to
    another and it in fact looks well...but i need some more

    Just ask your AI to do it for you... Right? Why even think about doing
    it yourself... Sigh...


    i can ask ai but i want to have people some chance for fun..

    besides things need some proportion..and some need sometimes to go slow
    and try something other etc ..usenet thinking resolves problems slower
    but like more deep than talk with ai - and i need some slower and deeper thought

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From fir@3:633/10 to All on Tue Nov 17 00:33:03 2026
    fir pisze:
    Chris M. Thomasson pisze:
    On 11/16/2026 11:37 AM, fir wrote:
    i toy with this 3d rasterizer and get some 3d ships (kinda like
    aeroplanes/jets but in space) and want to code them interesting
    flying behaviours
    [...]
    it just take array of 3d points and if near some then it turn to
    another and it in fact looks well...but i need some more

    Just ask your AI to do it for you... Right? Why even think about doing
    it yourself... Sigh...


    i can ask ai but i want to have people some chance for fun..

    besides things need some proportion..and some need sometimes to go slow
    and try something other etc ..usenet thinking resolves problems slower
    but like more deep than talk with ai - and i need some slower and deeper thought

    one i could think is for example:

    the most strightforward attempt for ship to fight is to just 100% aim at target (my ship) and shoot...ewentually slow speed up if im far and slow
    down if im close - i see the bullets incoming on hud (as a linear 3d
    stream so i could try to dodge if im far)
    (speed of bullets right now 150 m/s my ship speed like typically 60 m/s)

    speeding up eventually makes sense as from far distance its harder to
    hit, slowing down when close eventually yet more sense

    some problem is some could say if incoming ship is fire'ing it only
    shots in direct way stright of his flight so he cant dodge if its aiming
    at me, coz if its turns the bullet stream points in another direction
    (which in fact if turnings are small may be good, say tutning in some
    area could make a trap of bullats, i mean wider bullet stream, cone
    instead of line


    eventually is ship want to aim me he could make strafe moves and
    correct turning to aim me atill strafe moves making him moves and
    make it harder to hit

    that could be a basic piece of theory

    IN FACT i could run the bot vs bot space fights and obserwe ho will win
    so this could b a good programming contest..alghoritm vs algorithm
    and i can put a video which one wins ;c

    also possible to run alghoritms for whole escadres fight

    its not so hard though it need some focus


    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From fir@3:633/10 to All on Tue Nov 17 00:53:24 2026
    fir pisze:
    fir pisze:
    Chris M. Thomasson pisze:
    On 11/16/2026 11:37 AM, fir wrote:
    i toy with this 3d rasterizer and get some 3d ships (kinda like
    aeroplanes/jets but in space) and want to code them interesting
    flying behaviours
    [...]
    it just take array of 3d points and if near some then it turn to
    another and it in fact looks well...but i need some more

    Just ask your AI to do it for you... Right? Why even think about
    doing it yourself... Sigh...


    i can ask ai but i want to have people some chance for fun..

    besides things need some proportion..and some need sometimes to go
    slow and try something other etc ..usenet thinking resolves problems
    slower
    but like more deep than talk with ai - and i need some slower and
    deeper thought

    one i could think is for example:

    the most strightforward attempt for ship to fight is to just 100% aim at target (my ship) and shoot...ewentually slow speed up if im far and slow down if im close - i see the bullets incoming on hud (as a linear 3d
    stream so i could try to dodge if im far)
    (speed of bullets right now 150 m/s my ship speed like typically 60 m/s)

    speeding up eventually makes sense as from far distance its harder to
    hit, slowing down when close eventually yet more sense

    some problem is some could say if incoming ship is fire'ing it only
    shots in direct way stright of his flight so he cant dodge if its aiming
    at me, coz if its turns the bullet stream points in another direction
    (which in fact if turnings are small may be good, say tutning in some
    area could make a trap of bullats, i mean wider bullet stream, cone
    instead of line


    eventually is ship want to aim me he could make strafe moves and
    correct turning to’ aim me atill strafe moves making him moves and
    make it harder to hit

    that could be a basic piece of theory

    IN FACT i could run the bot vs bot space fights and obserwe ho will win
    so this could b a good programming contest..alghoritm vs algorithm
    and i can put a video which one wins ;c

    also possible to run alghoritms for whole escadres fight

    its not so hard though it need some focus

    here are basik video of this

    https://www.youtube.com/watch?v=3k6OlNCLzE4

    there are two drones and 2 lame fighters as enemy

    drones have algorithm/procedure to sit on tail and they are too agile to
    dodge them they sitt on tail like flies - thoug here they exploded
    probbaly catching the ranndom bullets or i got soem error in algorith
    and they exploded on own bullets maybe (need to check it later)

    two lame fighters are easy to shot (they use this algorithm fly near 500
    m to 200 m if less than 200 m shoting go away 600 m and repeat)


    o got not strong cpu so this video dropped many frames it seems

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From fir@3:633/10 to All on Tue Nov 17 00:56:08 2026
    fir pisze:
    fir pisze:
    fir pisze:
    Chris M. Thomasson pisze:
    On 11/16/2026 11:37 AM, fir wrote:
    i toy with this 3d rasterizer and get some 3d ships (kinda like
    aeroplanes/jets but in space) and want to code them interesting
    flying behaviours
    [...]
    it just take array of 3d points and if near some then it turn to
    another and it in fact looks well...but i need some more

    Just ask your AI to do it for you... Right? Why even think about
    doing it yourself... Sigh...


    i can ask ai but i want to have people some chance for fun..

    besides things need some proportion..and some need sometimes to go
    slow and try something other etc ..usenet thinking resolves problems
    slower
    but like more deep than talk with ai - and i need some slower and
    deeper thought

    one i could think is for example:

    the most strightforward attempt for ship to fight is to just 100% aim
    at target (my ship) and shoot...ewentually slow speed up if im far and
    slow down if im close - i see the bullets incoming on hud (as a linear
    3d stream so i could try to dodge if im far)
    (speed of bullets right now 150 m/s my ship speed like typically 60 m/s)

    speeding up eventually makes sense as from far distance its harder to
    hit, slowing down when close eventually yet more sense

    some problem is some could say if incoming ship is fire'ing it only
    shots in direct way stright of his flight so he cant dodge if its
    aiming at me, coz if its turns the bullet stream points in another
    direction
    (which in fact if turnings are small may be good, say tutning in some
    area could make a trap of bullats, i mean wider bullet stream, cone
    instead of line


    eventually is ship want to aim me he could make strafe moves and
    correct turning to’ aim me atill strafe moves making him moves and
    make it harder to hit

    that could be a basic piece of theory

    IN FACT i could run the bot vs bot space fights and obserwe ho will
    win so this could b a good programming contest..alghoritm vs algorithm
    and i can put a video which one wins ;c

    also possible to run alghoritms for whole escadres fight

    its not so hard though it need some focus

    here are basik video of this

    https://www.youtube.com/watch?v=3k6OlNCLzE4

    there are two drones and 2 lame fighters as enemy

    drones have algorithm/procedure to sit on tail and they are too agile to dodge them they sitt on tail like flies - thoug here they exploded
    probbaly catching the ranndom bullets or i got soem error in algorith
    and they exploded on own bullets maybe (need to check it later)



    those drones though very agile but has lesslinear speed so the option is
    to speed up left them behind turn on them and shoot them in front until
    they jump on tail - though if they approaching they shoot ofc

    (they literally never escape..unlike lame fighters)


    two lame fighters are easy to shot (they use this algorithm fly near 500
    m to 200 m if less than 200 m shoting go away 600 m and repeat)


    o got not strong cpu so this video dropped many frames it seems


    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From fir@3:633/10 to All on Tue Nov 17 11:59:43 2026
    this is overally all not hard but its such kind of things that
    (for some not quite known for me reason) liek turns from normal coding
    -like normally you cut through and write it - turns into 'research'
    where you can research it for weeks or months

    (and im not saying cutthrough or research are better ways, im not sure,
    maybe some in the middle)

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From fir@3:633/10 to All on Thu Nov 19 09:22:54 2026
    fir pisze:
    this is overally all not hard but its such kind of things that
    (for some not quite known for me reason) liek turns from normal coding
    -like normally you cut through and write it - turns into 'research'
    where you can research it for weeks or months

    (and im not saying cutthrough or research are better ways, im not sure,
    maybe some in the middle)

    new version

    https://www.youtube.com/watch?v=T0f6Hx_KrvI

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Chris M. Thomasson@3:633/10 to All on Thu Nov 19 12:37:50 2026
    On 11/19/2026 12:22 AM, fir wrote:
    fir pisze:
    this is overally all not hard but its such kind of things that
    (for some not quite known for me reason) liek turns from normal coding
    -like normally you cut through and write it - turns into 'research'
    where you can research it for weeks or months

    (and im not saying cutthrough or research are better ways, im not sure,
    maybe some in the middle)

    new version

    https://www.youtube.com/watch?v=T0f6Hx_KrvI

    Love it! :^)

    I give the AI props. Btw, how many lines of code did it make for you?

    Actually, you rendering all of this on the cpu, right? Did that ai use instancing for the asteroids?

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From fir@3:633/10 to All on Thu Nov 19 22:06:16 2026
    Chris M. Thomasson pisze:
    On 11/19/2026 12:22 AM, fir wrote:
    fir pisze:
    this is overally all not hard but its such kind of things that
    (for some not quite known for me reason) liek turns from normal coding
    -like normally you cut through and write it - turns into 'research'
    where you can research it for weeks or months

    (and im not saying cutthrough or research are better ways, im not sure,
    maybe some in the middle)

    new version

    https://www.youtube.com/watch?v=T0f6Hx_KrvI

    Love it! :^)

    I give the AI props. Btw, how many lines of code did it make for you?

    Actually, you rendering all of this on the cpu, right? Did that ai use instancing for the asteroids?

    its not exactly written by ai you see it wrong..ai is used to write some implemenations of functions i tell it to provide but i need to orgaanize
    it in code test it and so on..invent design and more

    its 40k lines of code all made in 2 months though i got a lot of
    experience and i generated things i wrote myself years back also
    (whole rasterizer/window setup/utility function and more)

    its 40k lines but a lot of it its the code for 3d models i tested and
    not use - i will use some only... so its much more code ai allows you to
    test than the final you use probbly few times more...

    i dont know what is instancing but if you mean that given model is in
    fact one array (in fat two vertex array and triangle aray) its rather
    obvious

    its all cpu..and i got very old PC must buy new one and that will be
    fortinate becouse im afraid it can clow down not only becouse of
    geometry (like it can handle about 100k triangles but it obviusly slows
    down) but also becouse of collision detection - wchich is square and
    may make it all choke (esp if i will shot a lot of bullets need a lot of collision checks with everything..so it is even an option i will hit the
    wall and get a bit resigned...

    though i have basic experience i collision detection optimisation but if
    i will see it takes 10 ms of frame time or mor i may end up depressed ;c

    though on positiveside i got some hope some things like coding
    'flock'/crowd of flying a bit synchronised entities may have good
    look, so there is a potential in it and this is only a base
    (2 months of coding , though i must say i began to feel weary so
    maybe i will drop it and will return to it after some months eventually)




    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Chris M. Thomasson@3:633/10 to All on Thu Nov 19 14:01:55 2026
    On 11/19/2026 1:06 PM, fir wrote:
    Chris M. Thomasson pisze:
    On 11/19/2026 12:22 AM, fir wrote:
    fir pisze:
    this is overally all not hard but its such kind of things that
    (for some not quite known for me reason) liek turns from normal coding >>>> -like normally you cut through and write it - turns into 'research'
    where you can research it for weeks or months

    (and im not saying cutthrough or research are better ways, im not sure, >>>> maybe some in the middle)

    new version

    https://www.youtube.com/watch?v=T0f6Hx_KrvI

    Love it! :^)

    I give the AI props. Btw, how many lines of code did it make for you?

    Actually, you rendering all of this on the cpu, right? Did that ai use
    instancing for the asteroids?

    its not exactly written by ai you see it wrong..ai is used to write some implemenations of functions i tell it to provide but i need to orgaanize
    it in code test it and so on..invent design and more

    its 40k lines of code all made in 2 months though i got a lot of
    experience and i generated things i wrote myself years back also
    (whole rasterizer/window setup/utility function and more)

    its 40k lines but a lot of it its the code for 3d models i tested and
    not use - i will use some only... so its much more code ai allows you to test than the final you use probbly few times more...

    i dont know what is instancing but if you mean that given model is in
    fact one array (in fat two vertex array and triangle aray) its rather obvious

    its all cpu..and i got very old PC must buy new one and that will be fortinate becouse im afraid it can clow down not only becouse of
    geometry (like it can handle about 100k triangles but it obviusly slows down) but also becouse of collision detection - wchich is square and
    may make it all choke (esp if i will shot a lot of bullets need a lot of collision checks with everything..so it is even an option i will hit the wall and get a bit resigned...

    though i have basic experience i collision detection optimisation but if
    i will see it takes 10 ms of frame time or mor i may end up depressed ;c

    though on positiveside i got some hope some things like coding 'flock'/ crowd of flying a bit synchronised entities may have good
    look, so there is a potential in it and this is only a base
    (2 months of coding , though i must say i began to feel weary so
    maybe i will drop it and will return to it after some months eventually)




    You need to ask AI what instancing is. Think of one model, and a buffer
    to the vertex shader with say, a shit load of mat4's. The single model
    can be placed in many places with one single shader pass.

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Chris M. Thomasson@3:633/10 to All on Thu Nov 19 14:03:14 2026
    On 11/19/2026 2:01 PM, Chris M. Thomasson wrote:
    On 11/19/2026 1:06 PM, fir wrote:
    Chris M. Thomasson pisze:
    On 11/19/2026 12:22 AM, fir wrote:
    fir pisze:
    this is overally all not hard but its such kind of things that
    (for some not quite known for me reason) liek turns from normal coding >>>>> -like normally you cut through and write it - turns into 'research'
    where you can research it for weeks or months

    (and im not saying cutthrough or research are better ways, im not
    sure,
    maybe some in the middle)

    new version

    https://www.youtube.com/watch?v=T0f6Hx_KrvI

    Love it! :^)

    I give the AI props. Btw, how many lines of code did it make for you?

    Actually, you rendering all of this on the cpu, right? Did that ai
    use instancing for the asteroids?

    its not exactly written by ai you see it wrong..ai is used to write
    some implemenations of functions i tell it to provide but i need to
    orgaanize it in code test it and so on..invent design and more

    its 40k lines of code all made in 2 months though i got a lot of
    experience and i generated things i wrote myself years back also
    (whole rasterizer/window setup/utility function and more)

    its 40k lines but a lot of it its the code for 3d models i tested and
    not use - i will use some only... so its much more code ai allows you
    to test than the final you use probbly few times more...

    i dont know what is instancing but if you mean that given model is in
    fact one array (in fat two vertex array and triangle aray) its rather
    obvious

    its all cpu..and i got very old PC must buy new one and that will be
    fortinate becouse im afraid it can clow down not only becouse of
    geometry (like it can handle about 100k triangles but it obviusly
    slows down) but also becouse of collision detection - wchich is square
    and
    may make it all choke (esp if i will shot a lot of bullets need a lot of
    collision checks with everything..so it is even an option i will hit
    the wall and get a bit resigned...

    though i have basic experience i collision detection optimisation but
    if i will see it takes 10 ms of frame time or mor i may end up
    depressed ;c

    though on positiveside i got some hope some things like coding
    'flock'/ crowd of flying a bit synchronised entities may have good
    look, so there is a potential in it and this is only a base
    (2 months of coding , though i must say i began to feel weary so
    maybe i will drop it and will return to it after some months eventually)




    You need to ask AI what instancing is. Think of one model, and a buffer
    to the vertex shader with say, a shit load of mat4's. The single model
    can be placed in many places with one single shader pass.

    Depending on the buffer, one single model, can be in many places each
    with different scales, rotations, etc. Also, it works with models that
    have bones.

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Chris M. Thomasson@3:633/10 to All on Thu Nov 19 14:11:11 2026
    On 11/19/2026 12:22 AM, fir wrote:
    fir pisze:
    this is overally all not hard but its such kind of things that
    (for some not quite known for me reason) liek turns from normal coding
    -like normally you cut through and write it - turns into 'research'
    where you can research it for weeks or months

    (and im not saying cutthrough or research are better ways, im not sure,
    maybe some in the middle)

    new version

    https://www.youtube.com/watch?v=T0f6Hx_KrvI

    It looks good to me.

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Chris M. Thomasson@3:633/10 to All on Thu Nov 19 21:57:35 2026
    On 11/16/2026 11:37 AM, fir wrote:
    i toy with this 3d rasterizer and get some 3d ships (kinda like aeroplanes/jets but in space) and want to code them interesting flying behaviours

    maybe some will have some thoughts on it (then i eventually my try some ideas and post a video how it work)

    the api you need to code such behaviour is quite simple for example some basic algortihm that work is

    void FlyPass2(int i)
    {
    ’’’’float3 player_pos=PlayerPos();
    ’’’’float3 to_player=sub(player_pos,bag[i].p.pos);
    ’’’’float distance=length(to_player);
    ’’’’if(distance<0.001f) return;
    ’’’’normalize(&to_player);

    ’’’’if(bag[i].combat_state!='approach' && bag[i].combat_state!='pass'
    && bag[i].combat_state!='turn')’’’’’’’ bag[i].combat_state='approach';

    ’’’’if(bag[i].combat_state=='approach')
    ’’’’{
    ’’’’’’’ YawPitchAccelerate(i,to_player,30/3);
    ’’’’’’’ if(distance<20*150) bag[i].combat_state='pass';
    ’’’’}

    ’’’’if(bag[i].combat_state=='pass')
    ’’’’{
    ’’’’’’’ YawPitchAccelerate(i,to_player,60/3);
    ’’’’’’’ if(distance<20*70) bag[i].combat_state='turn';
    ’’’’}

    ’’’’if(bag[i].combat_state=='turn')
    ’’’’{
    ’’’’’’’ float3 direction=mul(to_player,-1.0f);
    ’’’’’’’ YawPitchAccelerate(i, direction, 45/3);

    ’’’’’’’ if(distance>20*600) bag[i].combat_state='approach';
    ’’’’}
    }


    if c would have basic vector arithmetic it would look better

    20*600 mean 600 meters as the world 1.0 unit is like 5 cm

    45/3 means 45 m/s speed -as its about 60 fps so 45/3*60 = 45*20 (45 meters/s)

    ’’’’’’’ YawPitchAccelerate(i, direction, 45/3);

    do most work it just make ship starting to yaw-pitch into given
    direction and accelerate/deacce;erate for given speed

    (it is handled by simple 'engine' which has limited angular and linear acceleration and there is also dumping factor)..

    here above it uses its max accelerations but eventually value from
    0.0..1.0 can be passed if ships qould be said only use parts of its max accalarations


    i need good ideas what such ships can do..i not yet thought on this seriously (becouse it took me a time to build this setup and see what is
    the’ ground around that

    ship eventually also can make 'roll' moves and strafe moves (though im
    not sure those strafe moves i defined well, also by acceleration + dumping..it may be bad approach)


    one of interesting tiny algorithm i tested it yet this



    void Patrol(int i,float3 *points,int point_count,float speed,float arrival_distance)
    {
    ’’’ if(!points || point_count<=0) return;

    ’’’ int point=(int)bag[i].mode;

    ’’’ if(point<0 || point>=point_count) point=0;

    ’’’ float3 destination=points[point];
    ’’’ float3 direction=sub(destination,bag[i].p.pos);

    ’’’ if(length(direction)<arrival_distance)
    ’’’ {
    ’’’’’’’ point++;
    ’’’’’’’ if(point>=point_count) point=0;

    ’’’’’’’ bag[i].mode=(unsigned)point;
    ’’’’’’’ destination=points[point];
    ’’’ }

    ’’’ FlyToward(i,destination,speed);
    }


    it just take array of 3d points and if near some then it turn to another
    and it in fact looks well...but i need some more

    For fun I closed my work and opened an old project of mine. Back when I
    was experimenting with PBR:

    https://i.ibb.co/bM0vxPRV/image.png

    Btw, how are you drawing to the screen?

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)