🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1760

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

#1760
From: fir
Date: Sat, 21 Nov 2026 19:23
98 lines
5185 bytes
fir pisze:
> 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
> 

in case it is 3d it is kinda tedious tod ebug as you dont see easily 
whole 3d space

> 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: <11dsr47$birq$2@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> <11dsquq$birq$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:23:51 +0100
Organization: A noiseless patient Spider
Lines: 98
Message-ID: <11dsr47$birq$2@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> <11dsquq$birq$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 21 Nov 2026 19:23:52 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="379770"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18kVyXjc2odjuBtUOJX7Ax65+K0lBZOtKA="; 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:syh2wV3ic7+0M1JMy9tVFLyyGTA= sha256:Gh8JCwIfgb44sTWV3bVj6VV2JJuqUvCGPHx9YRrvnwo=
	sha1:9ElQC0QBW7WJqXtXmMMCLEbdZ28= sha256:doe3O0k/Jsd7xs4tSyC6KqpUXMoGzxbVEGCCu8ZT+dM=
In-Reply-To: <11dsquq$birq$1@dont-email.me>