Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Shockwave

Pages: [1] 2 3 4 5 6 7 8 ... 468
1
Yabasic / Re: Another Wire Frame
« on: August 02, 2026 »
There are other optimisations you can do here - You'll see them in many of the PS2 Yabasic demos where there are 3D rotations that some of the calculations can be precalculated outside the loop which was more important when running stuff on the actual PS2 console... The emulator is much faster though so it's not such a big deal unless you want to run it natively at some point.

2
Yabasic / Re: Another Wire Frame
« on: August 02, 2026 »
Again, I like this, it's a neat illusion and this is useful a technique which is used on 8 bit machines to generate surprisingly convincing 3d rotating objects using some sin/cos instead of expensive rotation calculations.

If you;

1:store the 12  vertices as x,y,z co-ordinates
2:Rotate them around X,Y,Z using rotation matrices
3:Project the 3D points into 2D co-ordinates
4:Draw the edges

Then you can see you're not too far away.

Again, this may not have been your intention for this code but it's where my mind led me when I ran your effect;

Code: [Select]
restore edges
read edges
dim e1(edges)
dim e2(edges)

for a=1 to edges
read e1(a)
read e2(a)
next a


' 12 vertices of an icosahedron
phi=(1+sqrt(5))/2
scale=80

dim vx(12)
dim vy(12)
dim vz(12)

' two rings plus poles
vx(1)=0
vy(1)=scale
vz(1)=0

vx(12)=0
vy(12)=-scale
vz(12)=0

for a=0 to 4
ang=a*72*pi/180
vx(a+2)=cos(ang)*scale
vy(a+2)=scale*0.4
vz(a+2)=sin(ang)*scale
next a

for a=0 to 4
ang=(a*72+36)*pi/180
vx(a+7)=cos(ang)*scale
vy(a+7)=-scale*0.4
vz(a+7)=sin(ang)*scale
next a


dim sx(12)
dim sy(12)

ax=0
ay=0
az=0

open window 640,512

repeat

setdrawbuf vm
vm=1-vm
setdispbuf vm
clear window


' rotate and project
for a=1 to 12

x=vx(a)
y=vy(a)
z=vz(a)


' rotate X
ty=y*cos(ax)-z*sin(ax)
tz=y*sin(ax)+z*cos(ax)
y=ty
z=tz


' rotate Y
tx=x*cos(ay)+z*sin(ay)
tz=-x*sin(ay)+z*cos(ay)
x=tx
z=tz


' rotate Z
tx=x*cos(az)-y*sin(az)
ty=x*sin(az)+y*cos(az)
x=tx
y=ty


' perspective projection
dist=300

sx(a)=320+x*dist/(z+dist)
sy(a)=256-y*dist/(z+dist)

next a


' draw edges
for a=1 to edges
line sx(e1(a)),sy(e1(a)) to sx(e2(a)),sy(e2(a))
next a


ax=ax+0.01
ay=ay+0.015
az=az+0.02

until (1=0)



label edges

data 30

data 1,2
data 1,3
data 1,4
data 1,5
data 1,6

data 12,7
data 12,8
data 12,9
data 12,10
data 12,11

data 2,3
data 3,4
data 4,5
data 5,6
data 6,2

data 7,8
data 8,9
data 9,10
data 10,11
data 11,7

data 2,7
data 2,11
data 3,7
data 3,8
data 4,8
data 4,9
data 5,9
data 5,10
data 6,10
data 6,11

3
Yabasic / Re: Pendulum Rope
« on: August 02, 2026 »
One of the things I have always loved about programming is the journey it takes you on sometimes.

4
Yabasic / Re: Pendulum Rope
« on: July 30, 2026 »
I love this, it reminds me of Manic Miner, some of the rooms have swinging ropes you can grab onto.

I've always meant to see if I could make something like this so I hope you don't mind but I faffed around in the emulator and made each joint an actual point in space and takes gravity and velocity so that a wave can travel through the rope rather than have it follow a defined path;

Code: [Select]
joint=32

dim x(joint)
dim y(joint)
dim oldx(joint)
dim oldy(joint)

length=10

gravity=.15
drag=.995

' create rope hanging down
for a=1 to joint
    x(a)=320
    y(a)=80+(a-1)*length

    oldx(a)=x(a)
    oldy(a)=y(a)
next a

' give rope a big initial swing
for a=1 to joint
    x(a)=320+(a*a*.35)
    oldx(a)=x(a)-20
next a

open window 640,512

repeat

setdrawbuf vm
vm=1-vm
setdispbuf vm
clear window


' physics update

for a=2 to joint

    vx=x(a)-oldx(a)
    vy=y(a)-oldy(a)

    oldx(a)=x(a)
    oldy(a)=y(a)

    x(a)=x(a)+vx*drag
    y(a)=y(a)+vy*drag+gravity

next a


' solve rope lengths

for b=1 to 8

    x(1)=320
    y(1)=80

    for a=2 to joint

        dx=x(a)-x(a-1)
        dy=y(a)-y(a-1)

        dist=sqrt(dx*dx+dy*dy)

        if dist>0 then

            diff=(dist-length)/dist

            if a<>2 then
                x(a-1)=x(a-1)+dx*diff*.5
                y(a-1)=y(a-1)+dy*diff*.5
            endif

            x(a)=x(a)-dx*diff*.5
            y(a)=y(a)-dy*diff*.5

        endif

    next a

next b


' redraw rope

setrgb 1,255,255,255

for a=1 to joint-1
    line x(a),y(a) to x(a+1),y(a+1)
next a


until 1=0

6
Projects / Re: Vectronix GTA VI Cracktro remake
« on: July 19, 2026 »
What a treat this is!

Well done on this, I do hope Slippy drops by one day to see your remake, he is a member here but hasn't been online for several years now.

Do you want me to put it on Retro-Remakes?

7
Projects / Re: Screensaver (Windows)
« on: July 19, 2026 »
Nice!

8
General chat / Re: The Welcoming Committee
« on: July 17, 2026 »
Congratulations on remembering your login details Pixotica, new accounts on here are quite rare since we had to disable registrations for botspam reasons!

9
Blitz / Re: [BMAX] BlitzMax continued support.
« on: July 17, 2026 »
It's great that BlitzMax is still being supported, very sad that Mark Sibley is not with us any more too - I discovered this sad news after I saw a linkedIn post by you last year (or maybe the year before) which piqued my interest and caused me to download and install BlitzMax.

I made some things with it too but put it down in the end as I was having difficulties in one filing DLLs for music replay into the exe and the exes were huge for what they were.

Zawran used to do a lot with BlitzMax and his stuff seemed to be of an acceptable size so it's more my incompetence than the fault of BlitzMax.

Going by posts that I've seen Mark create down the years I am sure that he'd be happy that the language was still being supported...

While I am here, there was something else that came after BMAX called Monkey iirc, I don't know how much traction that got and if there's anything being developed with it these days.

10
The Gif does animate, happy Independence day.

This reminds me a lot of the stuff we used to mess about with in college in Microsoft QB 35 years ago :)

11
I use GenAI daily at work for all kinds of tasks which stretch far beyond writing code - It is a company expectation and I'd simply be unable to manage my workload without these tools now, such is the impact it has had. Over my career I've seen that software engineering is an incredibly fast moving profession and over the last 40 years I've seen many huge leaps, here are some which stood out to me;

- Moving from DOS to GUI based OS
- Version control (SVN / GIT)
- Build tools - Apache ANT, Maven, Gradle
- CI / CD - Bitbucket, Jenkins
- Waterfall - Agile

Each of these shifts have changed the landscape, GenAI feels bigger than all of this, in my current role as an engineering manger and in my previous role as a lead engineer, I'm seeing it changing team structures and how we think about creating new features (e.g. does incremental delivery like Agile even make sense when LLMs work better when you give them the full facts up front). What about tech debt now? Is it as important when you can just ask Claude to find the bugs and make all the tests pass.

I've never had a problem accepting change, it's part of the industry and why IT professionals are highly paid. My job is to make money for my company and improve services for it's customers. I do this by delivering software through my engineering team and making sure that they have the relevant skills needed to do so.

If you're working in IT outside the demoscene, as a hiring manager I would say resisting the change to GenAI is harmful to your career / financial wellbeing - There's very little option really unless you want to work somewhere niche.

As far as my own hobbies, I still enjoy coding without many of the constraints so I still write minecraft plugins and gfx routines and in fact I'm waiting for my new Spectrum Next soon so I can make demos on it without GenAI or Version Control or Unit tests or CI/CD  :)

There will always be avenues for people who want to code closer to the hardware.

I tend to avoid GenAI outside work as much as I can but with my corporate hat on, I'm fully on board.

12
Purebasic / Re: New Twister
« on: July 04, 2026 »
Cool one!

.exe attached for those without purebasic  :)

13
Yabasic / Re: 3D Wire Frame
« on: May 08, 2026 »
Nice diamond :)

14
Yabasic / Re: 3D Starfield
« on: May 08, 2026 »
Well done, that's great  :)

This is rotating around the Z axis, if you move dots whilst also rotating it gives a nice variation of the effect.
This one is doing a Y rotation whilst moving the plots around:

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



15
That really is beautifully put together.

Great effects, excellent music and sync (as usual from you) and some truly excellent graphics.

I really like that Hellfire  :clap:

16
General chat / Re: Scene.Org ID
« on: April 08, 2026 »
I've given it a try... :)

17
General chat / Scene.Org ID
« on: April 07, 2026 »
I tried to log into my old Pouet account today (it's been a while!) and I discovered that the logins have migrated to scene.org - My account is very old and I think it's now orphaned, I can't recover my password.

Has anyone else here had the issue? Did you manage to get your account back?

18
Yabasic / Re: Animated Words Maker
« on: April 03, 2026 »
I can think of a few interesting spin offs of this idea :)
Thanks for posting it.

19
Projects / Re: Playing The (bit) Field Demo
« on: March 28, 2026 »
That's really cool, great selection of tunes too.

20
I know this is a very, very late reply but I really enjoyed that Hellfire.
I love the neural pathways idea especially, that looked really cool.

Pages: [1] 2 3 4 5 6 7 8 ... 468