🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1759

Re: [p.i.c] ships flyin and faitin

#1759
From: fir
Date: Sat, 21 Nov 2026 19:20
91 lines
4924 bytes
fir pisze:
> fir pisze:
>> 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)
>>
>>
> sadly now i feel an ability to code but the drive to invest myself into 
> longer state of concentration and push forward decreased so it shows i 
> need some rest
> 
> though i maybe found some basic interesting ideas ..i will see after 
> some rest
> 

some idea made by me and ai is that maybe those moves can be composite like


moveShip(int i)
{
   ChaseTarget(i, j);
   AvoidObstacles(i);
   ShotIfAimed(i);

}


trying it a bit but the avoidance code dont quite work

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

overally sadli best is to code after longer break if someone code to 
much its get slowa as snail..so maybe this is nonsense to code snail 
mode (though i m also a bit interested in results)


Technical Details
Message-ID: <11dsquq$birq$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11dfm1u$3rhtq$1@dont-email.me> <11dfrbn$3te4n$2@dont-email.me> <11dfudl$3uc92$2@dont-email.me> <11dg3rf$769$1@dont-email.me> <11dg51k$he7$1@dont-email.me> <11dg56n$he7$2@dont-email.me> <11dhc32$bglk$1@dont-email.me> <11dmbl4$22ofk$1@dont-email.me> <11dnmn0$2juse$1@dont-email.me> <11dnocg$2kk54$1@dont-email.me> <11ds1as$1pqj$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: fir <profesor.fir@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: [p.i.c] ships flyin and faitin
Date: Sat, 21 Nov 2026 20:20:58 +0100
Organization: A noiseless patient Spider
Lines: 91
Message-ID: <11dsquq$birq$1@dont-email.me>
References: <11dfm1u$3rhtq$1@dont-email.me> <11dfrbn$3te4n$2@dont-email.me>
 <11dfudl$3uc92$2@dont-email.me> <11dg3rf$769$1@dont-email.me>
 <11dg51k$he7$1@dont-email.me> <11dg56n$he7$2@dont-email.me>
 <11dhc32$bglk$1@dont-email.me> <11dmbl4$22ofk$1@dont-email.me>
 <11dnmn0$2juse$1@dont-email.me> <11dnocg$2kk54$1@dont-email.me>
 <11ds1as$1pqj$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 21 Nov 2026 19:20:59 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="379770"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18NaExd1kEPrA9bg8NtonW1rFW4mp3yOsY="; posting-host="75bdfe5f8f7f29b956273746f4003e1b"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101
 Firefox/140.0 SeaMonkey/2.53.24
Cancel-Lock: sha1:1VS3Qzx6/35Iza+jZMxrmfB48MA= sha256:MaODwny+oZr667xmUmpYQKZzT3S/MQAAAOLVbi2FaAQ=
	sha1:TFkRPWmL/4ndsEkgpDbmoVt/C4I= sha256:Lv9x1vOVnFFysmntIA/rbGy0u8U9wRP3/KDaqw4O4Xc=
In-Reply-To: <11ds1as$1pqj$1@dont-email.me>