Hiker (shader demo)

Here you can link to screenshots and demos etc. of programs made using BBC BASIC
Richard Russell
Posts: 274
Joined: Tue 18 Jun 2024, 09:32

Hiker (shader demo)

Post by Richard Russell »

This isn't new, but some people might not have seen it before. It's an example of what can be achieved by GPU (shader) code, in this case by Sebastien Durand (slightly tweaked by me) in a BBC BASIC wrapper, using the shaderlib.bbc library.

The 'hiker' character is generated from scratch in shader code using mathematical formulae to describe the various objects and body parts, there is no 3D model and no pre-rendered textures involved!

You can run it yourself in your own browser at this link, and change the camera viewpoint by moving your mouse.

Richard Russell
Posts: 274
Joined: Tue 18 Jun 2024, 09:32

Re: Hiker (shader demo)

Post by Richard Russell »

Richard Russell wrote: Sun 02 Feb 2025, 11:04 The 'hiker' character is generated from scratch in shader code using mathematical formulae to describe the various objects and body parts, there is no 3D model and no pre-rendered textures involved!
What would be interesting, and ought to be pretty straightforward, is to move the 'animation' code (how the character moves) from the shader code, where it is now, into BBC BASIC code.

That would leave the shader to actually render the character in 3D, and the BASIC code to determine how he moves, which could open up the possibility of making the character do all sorts of different things (jumping, dancing, crawling?) just by modifying the BASIC code.

Perhaps somebody might like to try that The source code is here.