Go to advanced search

by tipam
Mon May 06, 2019 8:22 pm
Forum: C/C++
Topic: High speed font cache rendering in C++ on the Pi Zero
Replies: 0
Views: 109

High speed font cache rendering in C++ on the Pi Zero

Hi, I hope you don't mind me sharing a quick video on rendering TTF fonts using SDL2 on the Raspberry Pi Zero written in C++. The video depicts a 3D scene with a passage of text containing 5000 formatted characters (not 9000 as I say in the vid!) that are dynamically rendered at 1080p on the Zero. T...
by tipam
Wed Apr 17, 2019 9:04 pm
Forum: Graphics programming
Topic: Performance improvements to the SDL library?
Replies: 0
Views: 152

Performance improvements to the SDL library?

Hi,

It mentions in the latest update of Raspbian (2019-04-08) that there are 'Performance improvements to the SDL library' ... does anyone know what they are and how to benefit from them?

Thanks.
by tipam
Mon Dec 24, 2018 5:01 pm
Forum: OpenGLES
Topic: Sharing an OpenGLES 2.0 Christmas Scene ...
Replies: 12
Views: 4302

Re: Sharing an OpenGLES 2.0 Christmas Scene ...

Gavinmc42 wrote:
Sun Dec 23, 2018 12:17 pm
Lots of super realistic stuff is out there now, lots of research papers and lighting/particle effects to do to make them look real.
... you can do a lot with simple UV animation, sprite sheets and alpha textures :D
.
by tipam
Sun Dec 23, 2018 12:27 am
Forum: OpenGLES
Topic: Sharing an OpenGLES 2.0 Christmas Scene ...
Replies: 12
Views: 4302

Re: Sharing an OpenGLES 2.0 Christmas Scene ...

Just added a video on Youtube featuring an update of this demo with a hotel and snow! Here it is .. https://youtu.be/goHVP0a85JY I'll do my best to get it out (inc. source code) before next year :oops: Here are some snapshots from an RPi 3 B+ ... http://www.skillmanmedia.com/images/Stoneman1.png htt...
by tipam
Tue Nov 27, 2018 1:31 pm
Forum: OpenGLES
Topic: Sharing an OpenGLES 2.0 Christmas Scene ...
Replies: 12
Views: 4302

Re: Sharing an OpenGLES 2.0 Christmas Scene ...

Gavinmc42 wrote:
Tue Nov 27, 2018 11:53 am
The only work the CPU has to do is calculate collisions, basic rotations and around 25 draw calls :)
That leaves a lot for a game engine ;)
...Yes, you're right ... on my Pi3B+ the scene only takes 7-8% CPU time in desktop.
by tipam
Tue Nov 27, 2018 8:00 am
Forum: OpenGLES
Topic: Sharing an OpenGLES 2.0 Christmas Scene ...
Replies: 12
Views: 4302

Re: Sharing an OpenGLES 2.0 Christmas Scene ...

Ah! double posted!!
by tipam
Tue Nov 27, 2018 8:00 am
Forum: OpenGLES
Topic: Sharing an OpenGLES 2.0 Christmas Scene ...
Replies: 12
Views: 4302

Re: Sharing an OpenGLES 2.0 Christmas Scene ...

I had been wondering what you have been up to :D The real Yosemite? That would mean using DEM terrain data plus procedurally generated trees? ... Leon's stuff is really pushing it, did not notice the 800fps :o As I barely understand the VC4 the texture units are hardware so should be able to keep u...
by tipam
Mon Nov 26, 2018 11:45 pm
Forum: OpenGLES
Topic: Sharing an OpenGLES 2.0 Christmas Scene ...
Replies: 12
Views: 4302

Re: Sharing an OpenGLES 2.0 Christmas Scene ...

Tim, yet another impressive output. You still using SDL? Hi Gavin, Yes, still using SDL2 as it takes care of the bare metal stuff on several platforms! Then I found this, 27KB OpenGLES triangle in C https://github.com/LdB-ECM/Raspberry-Pi Turns out this sort of baremetal stuff can be done in Pascal...
by tipam
Sun Nov 25, 2018 3:08 am
Forum: OpenGLES
Topic: Sharing an OpenGLES 2.0 Christmas Scene ...
Replies: 12
Views: 4302

Sharing an OpenGLES 2.0 Christmas Scene ...

I'm still working on an OpenGLES 2.0 lightweight and fast engine for the Pi and a number of examples ... Here's a scene from one of my favourite places on the planet ... Yosemite! It's running at 24fps with over a 1000 trees, mutli-layered animated clouds, a huge area to explore (including a wood ca...
by tipam
Sat Jul 21, 2018 9:34 pm
Forum: OpenGLES
Topic: Star Citizen on the Raspberry Pi?!
Replies: 100
Views: 38397

Re: Star Citizen on the Raspberry Pi?!

Tim, I can report that your multi-scene download works on the RPi nicely. I had to globally change the \r\n line ending in Kendal castle mtl file to \n before it would load any textures and I had to rename a couple of the bridge textures to match (fx3_panels and medmon1 I think). Paddy PS it's worr...
by tipam
Sat Jul 21, 2018 8:58 am
Forum: OpenGLES
Topic: Star Citizen on the Raspberry Pi?!
Replies: 100
Views: 38397

Re: Star Citizen on the Raspberry Pi?!

Gavinmc42 wrote:
Sat Jul 21, 2018 2:40 am
... new demo does not run on Gentoo64.
... sorry about that - things weren't in the right folders and I've updated the README1ST. I've uploaded again :oops:
by tipam
Sat Jul 21, 2018 1:26 am
Forum: OpenGLES
Topic: Star Citizen on the Raspberry Pi?!
Replies: 100
Views: 38397

Re: Star Citizen on the Raspberry Pi?!

NEW UPDATE!

Demo now includes the following;

- CargoBay scene (updated)
- Cargoship Bridge scene
- Kendal Castle

Download the demo from here (34Mb) and open README1ST file

To run a demo (after following instructions) do the folliowing;

Code: Select all

$ ./ShipDemo -scene CargoBay.scene
Enjoy!
by tipam
Sun Jul 15, 2018 6:30 pm
Forum: OpenGLES
Topic: Star Citizen on the Raspberry Pi?!
Replies: 100
Views: 38397

Re: Star Citizen on the Raspberry Pi?!

ensan wrote:
Sun Jul 15, 2018 2:33 pm
I feel a bit uncomfortable posting my queries to tipam's thread so I'll start a separate thread - thanks (and apologies) tipam.
No worries Ensan - as long as it was helpful! ;) I'll keep a look out on your threads if I can help.
by tipam
Fri Jul 13, 2018 6:26 pm
Forum: OpenGLES
Topic: Star Citizen on the Raspberry Pi?!
Replies: 100
Views: 38397

Re: Star Citizen on the Raspberry Pi?!

The idea was to create a tool for educational purposes (teaching kids about 3D coding). As mentioned currently porting to the rPI but given folks have treaded that path before me I'll maybe pick your brains if I may when I encounter issues. The 65K limit on VBOs you mention is useful info for insta...
by tipam
Wed Jul 11, 2018 11:02 pm
Forum: OpenGLES
Topic: Star Citizen on the Raspberry Pi?!
Replies: 100
Views: 38397

Re: Star Citizen on the Raspberry Pi?!

Oh Well! England did really well and gave us hope - maybe next time? Meanwhile, here's a few pics of the Cargoship bridge to cheer you up! Once baked they will become the new 'scene' that connects up with the cargo bay ... It's the control panels that are taking ages to design. However, I want them ...
by tipam
Sun Jul 08, 2018 9:29 pm
Forum: OpenGLES
Topic: Star Citizen on the Raspberry Pi?!
Replies: 100
Views: 38397

Re: Star Citizen on the Raspberry Pi?!

So you did not go down to the nearest castle and 3D model it an few hours then just to test a bigger model ;) How much National Trust stuff has been 3D modeled? Some nice laser range finder modules around now. Add them to Zero W with GPS and wander around collecting data. DIY Surveying tools. You'r...
by tipam
Sun Jul 08, 2018 7:09 am
Forum: OpenGLES
Topic: Star Citizen on the Raspberry Pi?!
Replies: 100
Views: 38397

Re: Star Citizen on the Raspberry Pi?!

Gavinmc42 wrote:
Sun Jul 08, 2018 2:21 am
You just happen to have a Castle obj?
How long it it take you to do?
... I've got more where that came from due to an old self-employed job!

Typically, the castle did take a couple of weeks or so ;)
by tipam
Sat Jul 07, 2018 11:28 pm
Forum: OpenGLES
Topic: Star Citizen on the Raspberry Pi?!
Replies: 100
Views: 38397

Re: Star Citizen on the Raspberry Pi?!

Kendal Castle Just tried a BIG model I did several years ago when I was in Kendal ... a reconstruction of Kendal Castle! (loads of rooms to explore!!) I had a few issues converting it and found a bug in my OBJ loader (fixed) ... model weighs in at 75K triangles (1.8M floats of info) so I expected i...
by tipam
Sat Jul 07, 2018 12:12 pm
Forum: OpenGLES
Topic: Star Citizen on the Raspberry Pi?!
Replies: 100
Views: 38397

Re: Star Citizen on the Raspberry Pi?!

... it just goes to show how little power is required to produce some amazing stuff at such low cost!
by tipam
Sat Jul 07, 2018 11:27 am
Forum: OpenGLES
Topic: Star Citizen on the Raspberry Pi?!
Replies: 100
Views: 38397

Re: Star Citizen on the Raspberry Pi?!

Tim I can report that the updated version runs fine (and changing the options works as expected). As an experiment I tried loading your model into rust_pi3d to get a direct comparison. I just used the uv_flat shader as is which might be a little more complicated but not much. Although it runs OK it...
by tipam
Sat Jul 07, 2018 12:27 am
Forum: OpenGLES
Topic: Star Citizen on the Raspberry Pi?!
Replies: 100
Views: 38397

Re: Star Citizen on the Raspberry Pi?!

Updated the Cargo Spaceship demo to include an options.txt file so the following parameters can be changed; screen: width, height, perspective value fullscreen: true or false fly: true or false startpos: x,y,z nearzfarz: nearZ, farZ Also added Escape key to exit. Same link as above. Enjoy! Ps. pleas...
by tipam
Thu Jul 05, 2018 10:14 pm
Forum: OpenGLES
Topic: Star Citizen on the Raspberry Pi?!
Replies: 100
Views: 38397

Re: Star Citizen on the Raspberry Pi?!

Tim, it runs great . I get 45 to 50 fps on this 3+ but the CPU is only clocking 7 to 12%, On a 2B it's nearly as fast at 43 fps and occasionally gets up to 18% CPU. I had previously attempted to get SDL hardware accelerated following instructions based on choccyhobnob but specified 2.0.5 and then w...
by tipam
Thu Jul 05, 2018 7:22 pm
Forum: OpenGLES
Topic: Star Citizen on the Raspberry Pi?!
Replies: 100
Views: 38397

Re: Star Citizen on the Raspberry Pi?!

DOWNLOAD LINK FOR DEMO OK, not sure if this is going to work BUT here's a downloadable 'executable' of what I have so far :mrgreen: (I'm not quite ready to submit all the code yet - still needs tidying up quite a bit!!) DOWNLOAD HERE http://www.skillmanmedia.com/images/CargoSpaceshipDemoRPi.zip Aft...
by tipam
Thu Jul 05, 2018 6:35 pm
Forum: OpenGLES
Topic: Star Citizen on the Raspberry Pi?!
Replies: 100
Views: 38397

Re: Star Citizen on the Raspberry Pi?!

(Yet) another update! OK - I stripped the fragment shader down by removing the light calcs and the 'if' statement (Thanks Paddy!) ... I also implemented atmospheric fog calculated in the vertex shader and passed the resultant fog colour to the frag shader. As a result the frag shader is now just ONE...
by tipam
Wed Jul 04, 2018 11:35 pm
Forum: OpenGLES
Topic: Star Citizen on the Raspberry Pi?!
Replies: 100
Views: 38397

Re: Star Citizen on the Raspberry Pi?!

That's pretty good, doing the collision detection on the mesh. Tricky doing the horizontal component and coping with things like railings or tables. The shader is quite simple and will be fast but it gives a very good effect - it's a really sensible idea to use baked shadows. I found that, on the r...

Go to advanced search