OGST (ODROID-GameStation-Turbo) Console Kit

Very powerful gaming console solution based on Debian

Moderators: mdrjr, odroid

OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby odroid » Tue May 15, 2018 2:04 am

XU4/XU4Q powered DIY console kit is available now. We call it OGST Console Kit
Image

Build your own gaming console with a powerful XU4 or XU4Q
Fancy 2.4“ LCD to show programmable game logo animation
Convenient four front USB ports to connect USB joysticks
Easy to embed a 2.5” HDD for your huge ROM collections
Two front buttons: Power switch and user programmable switch
Old school nostalgia game console design
Dimensions: 180 x 65 x 150mm approximately
Weight: 250gram approximately
Power consumption: 5V/250mA typical

Image
Image

An affordable and great USB Joystick is available too.
Image
User avatar
odroid
Site Admin
 
Posts: 28723
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: OGST Gaming Console Kit

Unread postby rooted » Tue May 15, 2018 3:56 am

This case/device is AWESOME! Nice work :)

You will be selling a lot of these.

Can I recommend sending one to ETA PRIME:

https://www.youtube.com/user/Mretaprime

I think a review from him will get this selling much more quickly.
User avatar
rooted
 
Posts: 5607
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: OGST Gaming Console Kit

Unread postby mad_ady » Tue May 15, 2018 4:17 am

Nice! I need to build one for the kids, but the wife won't let me...

Edit: I have two suggestions:
1. Offer a wireless controller option as well (paired with your BT dongle). I presume you're reselling the controllers and that they are not an original build. You should test/recommend/sell a wireless variant as well
2. You should test and maybe add an extra hole/detachable plastic clip so that one can add a noctua fan on top. You can do it as is, but I'm not sure how to lide the connector inside without breaking the plastic.
Last edited by mad_ady on Tue May 15, 2018 4:39 am, edited 1 time in total.
User avatar
mad_ady
 
Posts: 4599
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: OGST Gaming Console Kit

Unread postby cdu13a » Tue May 15, 2018 4:22 am

Very Nice!

I like these task specific cases and accessories. They help give a much more polished feel, and can really help people that
might not have the tools/skills/space to make their own.
cdu13a
 
Posts: 54
Joined: Tue Jan 20, 2015 3:33 pm
languages_spoken: english
ODROIDs: C1, C2, XU4, HC1

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby Droidzilla » Tue May 15, 2018 8:20 am

Lol this is awesome, I just hope Nintendo doesn't see this and say sease and desist @Odroid you may want to recommend removing "Nintendo" logos and the Mario kart screen shot. Even though your not making the means to have illegal ROMs your advertising that your device is a means use them. Which puts you kinda in the same realm as Kodi.
Droidzilla
 
Posts: 74
Joined: Thu Oct 20, 2016 2:12 am
Location: USA
languages_spoken: english
ODROIDs: Xu4

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby rooted » Tue May 15, 2018 12:30 pm

I thought that about the trademarked logo but it's an LCD display, not sure about the implications there.

The Mario kart screenshot isn't trademarked, think about reviewers on YouTube showing video of it. Can't include the music but images are fine.

I don't have a freed up XU4 but if I did I would be all over this device, I would see about making the display show box art of the game you are playing.
User avatar
rooted
 
Posts: 5607
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby AreaScout » Tue May 15, 2018 2:22 pm

Hi all

I have already played around with it a lot, the display mainly :lol: it can easily archive 44 fps ( not optimized ) on 3D graphics, i will release some tools soon to display shaders, OSD Messages, videos and pictures on it.


Some preview videos, the video quality is not the best, sorry for that

On Screen Display of CPU Usage, HDMI dis- or connected, Current IP -> HDD and memory info missing yet



Real 3D Rendering of an C64 3D Model Logo with deforming



Ocean Sea Shader only effect



RG
Attachments
Boot-Logo-Design.png
Boot-Logo-Design.png (107.06 KiB) Viewed 7690 times
Last edited by AreaScout on Tue May 15, 2018 6:32 pm, edited 3 times in total.
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby rooted » Tue May 15, 2018 3:08 pm

Thanks for the videos, the display is better than I expected.
User avatar
rooted
 
Posts: 5607
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby mad_ady » Tue May 15, 2018 4:11 pm

Here's a wild idea. While its main purpose is to run ogst, it could also be a multiboot system with the user button acting as a toggle between linux/android on boot. Maybe the lcd will never work with android, but it shouldn't be a problem as long as the controller can be used for most android games. This way you can have a retro console and a fairly modern android play system.
User avatar
mad_ady
 
Posts: 4599
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby AreaScout » Tue May 15, 2018 4:36 pm

rooted wrote:Thanks for the videos, the display is better than I expected.


The viewing angle is not the best compared to a modern TV, especially from the left side ( right side is perfect ), but all in all a really good display
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby AreaScout » Tue May 15, 2018 4:45 pm

mad_ady wrote:Here's a wild idea. While its main purpose is to run ogst, it could also be a multiboot system with the user button acting as a toggle between linux/android on boot. Maybe the lcd will never work with android, but it shouldn't be a problem as long as the controller can be used for most android games. This way you can have a retro console and a fairly modern android play system.


the LCD board with user button needs the complete USB kernel drivers to be loaded + the tft kernel driver but if that is loaded displaying an image is as easy as cat image.raw > /dev/fb1
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby mad_ady » Tue May 15, 2018 7:50 pm

Not sure if the tft driver is compatible with the android kernel, but it's probably close to the linux kernel
User avatar
mad_ady
 
Posts: 4599
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby odroid » Tue May 15, 2018 9:02 pm

Fun video what introduces our console kit. :oops:
User avatar
odroid
Site Admin
 
Posts: 28723
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby Snk » Tue May 15, 2018 10:20 pm

There are a few lines of code on the Wiki page.
Do these lines work with G3S?
User avatar
Snk
 
Posts: 274
Joined: Sun Jul 31, 2016 6:43 am
languages_spoken: Portuguese
ODROIDs: XU4 + eMMC 32GB + UART

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby odroid » Tue May 15, 2018 10:46 pm

@SnK,
G3w, G3s and G3v should work out of the box if you use the latest OGST updates.
User avatar
odroid
Site Admin
 
Posts: 28723
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby odroid » Tue May 15, 2018 10:47 pm

@AreaScout,

I really like your art work. :D
Image
User avatar
odroid
Site Admin
 
Posts: 28723
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby rooted » Wed May 16, 2018 12:31 am

Will be looking forward to the ETA PRIME review as well

https://youtu.be/AbzSgE2KCYo
User avatar
rooted
 
Posts: 5607
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby AreaScout » Wed May 16, 2018 1:04 am

mad_ady wrote:Not sure if the tft driver is compatible with the android kernel, but it's probably close to the linux kernel


that's true, if you look on the last commits in the linux 3.10 github tree, you should find the tft driver, november or something was the last commit IIRC

odroid wrote:@AreaScout,

I really like your art work. :D
Image


oh thank you odroid, it's an honour ;)
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby crashoverride » Wed May 16, 2018 3:41 pm

Very cool! Can't wait to get one to play with.
crashoverride
 
Posts: 3994
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby cdu13a » Thu May 17, 2018 1:13 am

That screen could be handy for showing the status of the batteries if you used this with wireless controllers.
cdu13a
 
Posts: 54
Joined: Tue Jan 20, 2015 3:33 pm
languages_spoken: english
ODROIDs: C1, C2, XU4, HC1

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby AreaScout » Thu May 17, 2018 2:35 am

Hi all

I have created a github repo https://github.com/AreaScout/SDL2DisplayTest with the first tool that shows how to display OSD over an bitmap image, it listens for gpio events on sysfs ( right user button )

building:

Code: Select all
sudo apt-get install libsdl2-dev libsdl2-ttf-dev
git clone https://github.com/AreaScout/SDL2DisplayTest.git
./build.sh


you can add it to autostart by edit /etc/rc.local (just an example) like so:

Code: Select all
##### CONSOLE KIT START #####

[ `/sbin/lsmod | grep -c spi_s3c64xx` -ge 1 ] && rmmod spi_s3c64xx
modprobe spi_s3c64xx force32b=1
modprobe fbtft_device name=hktft9340 busnum=1 rotate=270
su root -c '/bin/rm -f /dev/fb1'
su root -c '/bin/mknod /dev/fb1 c 29 1'
su root -c '/bin/chmod 0666 /dev/fb1'
su root -c '/path/to/the/binary/OGSTDisplay'
su odroid -c 'cd /path/to/the/binary && ./OGSTDisplay odroid.bmp DroidSans-Bold.ttf'
##### CONSOLE KIT END #####

exit 0



if you wonder why i delete /dev/fb1 in the first place, this is because there seems to be an issue, when the driver is loaded it takes >2min after the device is booted before /dev/fb1 will show up, i can
bypass this by creating the node manually but i have to delete a already created device node first in case it takes <2min (sometimes this happens too)

Good forum post to read viewtopic.php?f=156&t=30848

usage:

first run it as root, the gpio device sysfs entry has to be created

Code: Select all
sudo OGSTDISPLAY
./OGSTDisplay some.bmp some.ttf


Have Fun

p.s I will add more tools soon ;)
Attachments
screen.png
screen.png (108.06 KiB) Viewed 7029 times
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby AreaScout » Fri May 18, 2018 8:43 pm

Hi all

I have just created a new github repo at https://github.com/AreaScout/Shader2LCD

Please get the information how to use and build it from there

I have ported that tool from the oShaderToy which can display shaders from the https://www.shadertoy.com/ webside you can just search there for a nice shader you want for your DIY console project, there are thousands of shaders
but be aware that a lot of them are to GPU intensive to run on our ODROID's, some of them are drawing a complete jungle terrain with mountains only with a shader, no 3D Model nothing, you will see how GPU intensive this will be if you browse the website only.

https://www.shadertoy.com/

You can display starting from a clock to terrain, creative art drawings, ps3 like sinwave, game intros, demo intros a.s.o, just browse the webside, i will soon add a tut how to get the shaders from the webside inside the Shader2LCD tool
There are also 35 shaders included on github, the screenshots shows some of them. Running those shaders the same time a game is running is a bad (6-8fps drop) idea but running them the same time a GUI is active, it's no problem ( RetroArch, Attract Mode, EmulationStation GUI etc. ).

RG
Attachments
Shaders.png
Shaders.png (693.18 KiB) Viewed 6634 times
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby odroid » Fri May 18, 2018 11:00 pm

Wow!
Thank you for the great documentation on your github.
The GL-SL examples are so beautiful.
I didn't know there are tons of amazing shader examples. :twisted:
User avatar
odroid
Site Admin
 
Posts: 28723
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby stmicro » Sat May 19, 2018 12:55 am

Very exciting proejct. The small screen on the console box was a neat idea. so cute and fun.


by the way, can we create an EGL surface on the tiny LCD framebuffer? If it is feasible, we can play games on it. 8-)
stmicro
 
Posts: 228
Joined: Tue Apr 28, 2015 4:23 pm
Location: shenzhen china
languages_spoken: english, chinese
ODROIDs: Many Odroids and Rpis.

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby AreaScout » Sat May 19, 2018 1:22 am

odroid wrote:Wow!
Thank you for the great documentation on your github.
The GL-SL examples are so beautiful.
I didn't know there are tons of amazing shader examples. :twisted:


they look cool 8-) and yes there are some :)
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby AreaScout » Sat May 19, 2018 1:30 am

stmicro wrote:by the way, can we create an EGL surface on the tiny LCD framebuffer? If it is feasible, we can play games on it. 8-)


The trick is, you are creating the EGL Surface on an X11 window like you always do, but you skip doing a eglSwapBuffers() it's off screen rendering, instead you download the rendered frame from the mali gpu and copy it over to the /dev/fb1
the X11 is therefor only used as a dummy window, nothing will be draw'd there ever.

short answer... yes with only small modification on RetroArch we could draw the frames on the LCD Display to play games there

RG
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby mad_ady » Sun May 20, 2018 8:16 pm

This case could also be used/marketed as a viable cloudshell 1 replacement if you could fit the usb-sata adapter + small cable inside the case. There are still people demanding for a CS1 alternative.
User avatar
mad_ady
 
Posts: 4599
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby crashoverride » Mon May 21, 2018 9:59 pm

mad_ady wrote:This case could also be used/marketed as a viable cloudshell 1 replacement if you could fit the usb-sata adapter + small cable inside the case. There are still people demanding for a CS1 alternative.

I have been kicking around ideas for a Cloudshell 1 style case. When the N1 was announced, it practically begged for Cloudshell 1 inspired case. This is partly why I was excited to see the Console Kit case with a display.

Its becoming increasingly cost effective to outfit a small display in a case. In addition to color LCD, you can also get small OLED displays. I would be cool if a display could be a standard option for future product cases. For example, a C1/C2 size case could have the option for a monochrome 0.96" OLED display while a N1 size case could have an option for a 2.4" LCD display. For the larger case, I would like to add directional buttons for menu navigation making headless use simpler. These displays could be configured in uboot so they also serve a diagnostic purpose.

If I somehow mange to find some free time this summer, I will attempt to prototype and 3D print some designs. Until then, the Console Kit case is perfect for one of my 'pet projects'.
crashoverride
 
Posts: 3994
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby mad_ady » Mon May 21, 2018 11:35 pm

I agree. Having at least a button in uboot can make multiboot less of a pain. Having display as well - it would be perfect.

Edit - one extra question. If one chose not to plug in the microusb-to-usb cable that connects the display board would you still be able to use the display? E.g. is power fed from USB or from the ribbon cable? I understand that you would loose the USB hub, but for a cloudshell 1 replacement it might be more convenient to have an extra usb3 port available.
User avatar
mad_ady
 
Posts: 4599
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby crashoverride » Tue May 22, 2018 12:12 am

mad_ady wrote:is power fed from USB or from the ribbon cable?

https://wiki.odroid.com/odroid-xu4/software/ogst_console_kit

The schematic linked on the wiki page indicates the display is powered by 5V on the ribbon cable.
crashoverride
 
Posts: 3994
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby mad_ady » Tue May 22, 2018 2:07 am

Thanks!
User avatar
mad_ady
 
Posts: 4599
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby danetco » Wed May 23, 2018 7:26 am

hi everyone. I'm french so excuse my english. It's not possible to play with bluetooth hardkernel module? and can I pass all OGST in french? Thank's for your answer.
danetco
 
Posts: 3
Joined: Fri May 18, 2018 2:25 am
languages_spoken: english french
ODROIDs: odroid xu4

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby meveric » Wed May 23, 2018 7:32 am

you can switch desktop language and keyboard layout to frensh, but some emulators and other frontends do not exist in french.
using bluetooth to play should work, depending on what you do.. I use a PS3 controller with the bluetooth dongle from HardKernel and it''s working fine for me.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 9198
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby streetboy » Wed May 23, 2018 8:16 am

Hardkernel made a nice Family Computer finally. I'm going to build one for my kids :twisted:


by the way, is there anybody who tested gamesir G3S wireless contollers? G3W seems to be a very affordable joystick.
But I prefer to use wireless controllers.
Do it support four players mode?
Should I plug four wireless USB dongles?
User avatar
streetboy
 
Posts: 194
Joined: Tue Feb 26, 2013 6:43 pm
languages_spoken: english
ODROIDs: ODROID-X,U2,XU3-Lite
C1, XU4

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby crashoverride » Wed May 23, 2018 11:03 am

It appears the OGST Console Kit is sold out everywhere. Any ETA on the next batch?
crashoverride
 
Posts: 3994
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby cdu13a » Wed May 23, 2018 12:43 pm

@streetboy you only need one Bluetooth adapter to use multiple Bluetooth controllers. The gamesir G3S controller is a Bluetooth controller and should work the same as any other Bluetooth controller. I should note that I don't own any of the G3S controllers. I have however had 4 Bluetooth controllers from other manufactures in use at once. As for playing 4 player games, some emulators support 4 players, some don't, but that has nothing to do with what type of controller or how it's connected.
cdu13a
 
Posts: 54
Joined: Tue Jan 20, 2015 3:33 pm
languages_spoken: english
ODROIDs: C1, C2, XU4, HC1

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby meveric » Wed May 23, 2018 3:24 pm

streetboy wrote:by the way, is there anybody who tested gamesir G3S wireless contollers? G3W seems to be a very affordable joystick.
But I prefer to use wireless controllers.
Do it support four players mode?
Should I plug four wireless USB dongles?

GameSir G2S should work fine, they even worked before the G3W and in fact are just slightly better as they have an Xinput mode that mimics a XBox 360 controller which are more widely supported than the GameSir G3W.
4 player mode should work fine as long as the game/system supports it.
I'm not 100% sure about the number of dongles you need per controller.
The bluetooth function was made for Android and is not officially supported by other OS systems (not sure if they work anyway).
The Wireless dongle of the G3S does not use bluetooth but uses another wireless technology to pair the controller, similar as the original XBox 360 controller.
For the wireless dongle that comes with the controller it's one controller per dongle.

crashoverride wrote:It appears the OGST Console Kit is sold out everywhere. Any ETA on the next batch?

As far as I know Ameridroid should have some available soon, unless they are already out "pre-ordered" or something.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 9198
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby AreaScout » Wed May 23, 2018 5:31 pm

Hi all

This is a small tutorial on how you can import shaders from the https://www.shadertoy.com website to the Shader2LCD tool.

First a search for a perfect shader is advisable with does only has one shader program like this one for example https://www.shadertoy.com/view/4tlSzl, shaders with multible programs have more then one tab on top of the text editor
( see https://www.shadertoy.com/view/lsK3D1 ), they are not supported, however you can generate a video of a more complex shader by simply press on the record button on the preview window of the shadertoy website
and playback it with mplayer.

Ok back to our Combustible Voronoi algorithm shader, first we create a new text document in the shader folder and name it voronoi.f.glsl, then we copy the contains of the shader input from the shadertoy website
to the new created file, after that we change the main function to look like this:

from

void mainImage( out vec4 fragColor, in vec2 fragCoord )

to

void main()

then we change all occurrences of:

iResolution to resolution
iTime to time
fragCoord to gl_FragCoord.xy --> depending on the implementation fragCoord.x or y to gl_FragCoord.x or y
fragColor to gl_FragColor

on top of the document (first line) you place this:

Code: Select all
#ifdef GL_ES
precision highp float;
#endif

uniform vec2 resolution;
uniform float time;
uniform sampler2D tex0;
uniform sampler2D tex1;
vec4 iMouse = vec4(0., 0., 0., 0.);


The shader should be renderable now :)

Have fun

P.S.: to download textures from the shadertoy website please follow this tutorial https://nvoid.gitbooks.io/introduction-to-touchdesigner/content/GLSL/12-6-Importing-Shadertoy.html
PP.S.: next tools will be gpio daemon which can start shell script when button is pressed and OSD Messages from shell script, maybe a videoplayer too like mplayer, we will see ;)
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby mad_ady » Wed May 23, 2018 6:18 pm

If the gpio button is registered as a keyboard (/dev/event/X) you can use this project (and have also double/triple/long press events): https://github.com/mad-ady/multibutton
I used it for the webcam button.
If the gpio is linked to the ADC, you can tweak and use this: https://github.com/mad-ady/tftlcd35-key

Regarding video on the lcd - is it better with regards to resource/gpu utilisation to play a video (with reduced fps) instead of doing gpu rendering?
User avatar
mad_ady
 
Posts: 4599
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby AreaScout » Wed May 23, 2018 6:55 pm

mad_ady wrote:Regarding video on the lcd - is it better with regards to resource/gpu utilisation to play a video (with reduced fps) instead of doing gpu rendering?


Sure it is better, it is very common using video instead of GPU rendering, you see this especially on game trailers, you never know if this is real Gameplay or rendered on a very powerful machine and then exported to video
even shaders with low GPU resource usage take more calculation power compared to play videos. On the other hand you can simply display a real time clock with a shader program, or render dynamic scroll text from a website
it's way more dynamic !

thanks for the tools linked :) the user should have a wide source of tools he could use

RG

Edit: i will try to bring this https://www.shadertoy.com/view/Mlj3WV spectrum visualizer hooked up to pulseaudio client to the LCD display :) ---> you can't do something with video, that's the fun about it.
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby mad_ady » Wed May 23, 2018 7:18 pm

On the other hand you can simply display a real time clock with a shader program

You could have a 24h video of a clock ticking away [emoji14]
But I do get your point and shaders should be used for dynamic data. A spectrum analyzer would look nice for music/media playback.
User avatar
mad_ady
 
Posts: 4599
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby meveric » Wed May 23, 2018 7:23 pm

mad_ady wrote:If the gpio button is registered as a keyboard (/dev/event/X) you can use this project (and have also double/triple/long press events): https://github.com/mad-ady/multibutton

Only the Power Buttons is registered as a input/event device, the user button has to be read via gpiomem or /sys/class/gpio/
mad_ady wrote:Regarding video on the lcd - is it better with regards to resource/gpu utilisation to play a video (with reduced fps) instead of doing gpu rendering?

if you use something like mplayer to display the video it's directly drawn to the framebuffer, the video is "rendered" via software, so only on cpu, and as the video is rather tiny it's rendered on the small cores only not affecting any emulator.
If the video would be rendered with the help of SDL2 (color conversion and such) the GPU might be affected and performance might decrease slightly, although unlikely as we have a 6 core GPU this shouldn't matter much.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 9198
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby mad_ady » Wed May 23, 2018 8:02 pm

Regarding the button - I know that the power button is handled by a gpio_keys module. Perhaps the new button could be added to that driver. Otherwise one would either poll or set up an interrupt handler to read it.

Regarding video - you could use ffplay to play software accelerated video, though ogst uses kernel 3.10, so no vpu support for ffplay...
User avatar
mad_ady
 
Posts: 4599
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby AreaScout » Wed May 23, 2018 8:29 pm

mad_ady wrote:Regarding the button - I know that the power button is handled by a gpio_keys module. Perhaps the new button could be added to that driver. Otherwise one would either poll or set up an interrupt handler to read it.


i have tried to add the right button the same way the power button is configured in the device tree file but i failed, then i was giving up and i used the gpio method which is also an interrupt handler ( blocked read ) no CPU usage at all

mad_ady wrote:Regarding video - you could use ffplay to play software accelerated video, though ogst uses kernel 3.10, so no vpu support for ffplay...


i was more thinking about to be able to display OSD over the preview videos like i do with the bitmap picture, for that i was about to use ffmpeg libraries in an c or c++ application, if you know a method to display videos with ffplay on
framebuffer device with OSD let me know i was not investigating in this by now.
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby mad_ady » Wed May 23, 2018 10:17 pm

I haven't tried ffplay with framebuffer, sorry
User avatar
mad_ady
 
Posts: 4599
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby ind1fference » Sun May 27, 2018 12:09 am

My LCD won't display anything. It's completely blank and I followed all the directions when setting it up. It could be the cable but I have no way of knowing as I don't have another one. Anybody else have this issue?
ind1fference
 
Posts: 18
Joined: Sun May 27, 2018 12:07 am
languages_spoken: english
ODROIDs: XUC4Q

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby AreaScout » Sun May 27, 2018 1:46 am

ind1fference wrote:My LCD won't display anything. It's completely blank and I followed all the directions when setting it up. It could be the cable but I have no way of knowing as I don't have another one. Anybody else have this issue?


What is the output if you type this in a terminal window ? And did you follow this guide https://wiki.odroid.com/odroid-xu4/software/ogst_console_kit

Code: Select all
cat /etc/rc.local
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby ind1fference » Sun May 27, 2018 2:21 am

AreaScout wrote:
ind1fference wrote:My LCD won't display anything. It's completely blank and I followed all the directions when setting it up. It could be the cable but I have no way of knowing as I don't have another one. Anybody else have this issue?


What is the output if you type this in a terminal window ? And did you follow this guide https://wiki.odroid.com/odroid-xu4/software/ogst_console_kit

Code: Select all
cat /etc/rc.local


I attached the output and followed the guide but nothing appears. :| http://www.gameenthus.com/wp-content/uploads/2018/05/LCD-output.jpg
ind1fference
 
Posts: 18
Joined: Sun May 27, 2018 12:07 am
languages_spoken: english
ODROIDs: XUC4Q

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby mad_ady » Sun May 27, 2018 2:31 am

@ind1ference: can you run sudo /etc/rc.local and post the output? It should be noted that:
1. if a command inside rc.local returns non-zero, the following commands will not be executed.
2. The startup sequence is duplicated multiple times and this may cause issues from repeated modprobe/rmmod
3. The contents of /etc/rc.local should not be needed. The parameters can be added to /etc/modprobe.d/modulename.conf, and modules to be loaded should go into /etc/modules-load.d/modules.conf
User avatar
mad_ady
 
Posts: 4599
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: OGST (ODROID-GameStation-Turbo) Console Kit

Unread postby ind1fference » Sun May 27, 2018 2:42 am

mad_ady wrote:@ind1ference: can you run sudo /etc/rc.local and post the output? It should be noted that:
1. if a command inside rc.local returns non-zero, the following commands will not be executed.
2. The startup sequence is duplicated multiple times and this may cause issues from repeated modprobe/rmmod
3. The contents of /etc/rc.local should not be needed. The parameters can be added to /etc/modprobe.d/modulename.conf, and modules to be loaded should go into /etc/modules-load.d/modules.conf


Running it results in nothing. It just places in another prompt. Full disclosure: I rarely use Linux
ind1fference
 
Posts: 18
Joined: Sun May 27, 2018 12:07 am
languages_spoken: english
ODROIDs: XUC4Q

Next

Return to OGST-XU4

Who is online

Users browsing this forum: No registered users and 1 guest