Your Digital Media Has Never Looked So Good

 
tim_beynart
Topic Author
Posts: 223
Joined: Wed Jul 15, 2015 8:30 am

Crash Course in SceneGraph available on GitHub

Thu Dec 07, 2017 10:56 am

Hello everyone, at work I wrote a course to get new hires up to speed on Roku and SceneGraph, and I made it available on github. 
This represents the class I wish I had when I started on Roku.
Let me know if you find it helpful.
https://github.com/learnroku/crash-course
 
User avatar
squirreltown
Posts: 781
Joined: Sun Apr 21, 2013 2:20 pm

Re: Crash Course in SceneGraph available on GitHub

Thu Dec 07, 2017 3:09 pm

Hey thanks, I'll look at it soon.
Kinetics Screensavers
 
renojim
** Valued Community Member **
Posts: 3273
Joined: Mon Feb 15, 2010 1:35 pm

Re: Crash Course in SceneGraph available on GitHub

Fri Dec 08, 2017 1:24 am

Me too. Thanks for posting this.

-JT
 
norcaljohnny
Posts: 37
Joined: Thu Apr 13, 2017 11:00 pm

Re: Crash Course in SceneGraph available on GitHub

Tue Dec 12, 2017 8:19 pm

Sweet, I am going to take a look see ;) Cheers!
 
bitshiffed
Posts: 1
Joined: Wed Oct 21, 2015 5:09 pm

Re: Crash Course in SceneGraph available on GitHub

Tue Dec 12, 2017 9:24 pm

Great information in that repository!
I wish I had that guide starting out.
Thank you for posting this.
 
tim_beynart
Topic Author
Posts: 223
Joined: Wed Jul 15, 2015 8:30 am

Re: Crash Course in SceneGraph available on GitHub

Wed Dec 13, 2017 8:15 am

Thanks for the feedback. I need someone to write a guide on how to edit Markdown, ha ha. Even GitHub's own Atom editor doesn't preview GitHub MD correctly.
 
Blackhawk
Posts: 68
Joined: Wed Jan 07, 2015 4:42 am

Re: Crash Course in SceneGraph available on GitHub

Sat Dec 16, 2017 7:19 pm

Does it play an xml feed off my web domain?
 
tim_beynart
Topic Author
Posts: 223
Joined: Wed Jul 15, 2015 8:30 am

Re: Crash Course in SceneGraph available on GitHub

Sun Dec 17, 2017 3:34 pm

@blackhawk the course is written to use a fake JSON feed you host locally. You are welcome to modify it to use XML. Personally everything I deal with at work is JSON so I went with what I know. The intent of the course is to demonstrate the basic principles of an app.
 
rymawby
Posts: 25
Joined: Fri Jan 16, 2015 9:03 am
Contact:

Re: Crash Course in SceneGraph available on GitHub

Wed Dec 20, 2017 3:43 pm

Great work!
---
Blogging Roku stuff at http://rymawby.com
---
 
mkdir1995
Posts: 34
Joined: Tue Feb 14, 2017 10:15 am

Re: Crash Course in SceneGraph available on GitHub

Wed Jan 24, 2018 10:31 am

This is amazing. Thank you so much, just downloaded it and am going to use it as my main form of documentation right now. 

@tim_beynart (and/or anyone else) one thing I see often in the JSON scene graph examples are .json files directly in the app rather than a dynamic retrieval of JSON from an API. Is this example available anywhere, because I can't seem to find it on the forums or in the SDK...
 
tim_beynart
Topic Author
Posts: 223
Joined: Wed Jul 15, 2015 8:30 am

Re: Crash Course in SceneGraph available on GitHub

Wed Jan 24, 2018 1:21 pm

Here's a doc I put together for loading JSON in SG: https://gist.github.com/timbeynart-nbcuni/c73989ff347b101ef4176b8c104f82af
in the brs example at https://gist.github.com/timbeynart-nbcuni/c73989ff347b101ef4176b8c104f82af#file-parse_json-brs-L15you will need to host the JSON file somewhere.

The crash course also expects you to host the JSON on a local server, the lesson is here: https://github.com/learnroku/crash-course/blob/master/docs/Lesson3.md
 
mkdir1995
Posts: 34
Joined: Tue Feb 14, 2017 10:15 am

Re: Crash Course in SceneGraph available on GitHub

Thu Jan 25, 2018 3:08 pm

tim_beynart wrote:
Here's a doc I put together for loading JSON in SG: https://gist.github.com/timbeynart-nbcuni/c73989ff347b101ef4176b8c104f82af
in the brs example at https://gist.github.com/timbeynart-nbcuni/c73989ff347b101ef4176b8c104f82af#file-parse_json-brs-L15you will need to host the JSON file somewhere.

The crash course also expects you to host the JSON on a local server, the lesson is here: https://github.com/learnroku/crash-course/blob/master/docs/Lesson3.md

Hi Tim!
The github example for loading JSON is *extremely* helpful. Thank you so much. Is the code intended to display an actual grid, or just retrieve the data? (I have no errors, the JSON loads but the screen is gray).
 
tim_beynart
Topic Author
Posts: 223
Joined: Wed Jul 15, 2015 8:30 am

Re: Crash Course in SceneGraph available on GitHub

Mon Jan 29, 2018 7:37 am

that's just to load the data... applying it to a gridscreen is up to you. It took me a while to get my head around how to structure the roContentNodes properly for the different lists, they each require a specific hierarchy of nodes to work right.
EDIT I take that back, that example is supposed to work with a RowList. make sure `mediaitem.xml` is in your `components` directory. I don't have time to debug it right now...
 
mkdir1995
Posts: 34
Joined: Tue Feb 14, 2017 10:15 am

Re: Crash Course in SceneGraph available on GitHub

Mon Jan 29, 2018 9:27 am

tim_beynart wrote:
that's just to load the data... applying it to a gridscreen is up to you. It took me a while to get my head around how to structure the roContentNodes properly for the different lists, they each require a specific hierarchy of nodes to work right.
EDIT I take that back, that example is supposed to work with a RowList. make sure `mediaitem.xml` is in your `components` directory. I don't have time to debug it right now...

I copied over your examples to my own project and I actually did not see any RowList appear, just a blank screen, but no errors either (which I guess is good lol). I'm using your crash course/JSON feed example with the Roku Sample Tutorial so hopefully I'll get it working soon. The SceneGraph stuff is a whole other level for me... thanks for the help :)
 
tim_beynart
Topic Author
Posts: 223
Joined: Wed Jul 15, 2015 8:30 am

Re: Crash Course in SceneGraph available on GitHub

Mon Jan 29, 2018 11:32 am

try this and see if it fixes it...
on this line https://gist.github.com/timbeynart-nbcuni/c73989ff347b101ef4176b8c104f82af#file-parse_json-brs-L9
change "GridScreen" to "RowList" to match the id in the XML file.

Who is online

Users browsing this forum: RokuShawnS and 4 guests