Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 7

Scene Graph Architecture


I was hoping to find some guidance with the components of a Scene Graph application. Specifically, I’m working on design patterns and file structure inside of the scene graph components directory.

I’m working / thinking about best way to approach separation of concerns and good design patterns. Looking at some SG examples, I follow along with putting BRS and XML files in the Components directory, but was wondering if it’s possible to reference / include other *.brs files from a single XML or *.brs file ?

I can’t find any examples that use sub directories inside the components directory for things like Models, Services, and Utilities?

Would it be better to have these directories on the same level as the components directory?

Or would it be better to have them inside of the components directory?

Is it possible / recommended to organize project files in this way or is their a better / simpler way to accomplish this task ?

0 Kudos
Level 7

Re: Scene Graph Architecture

Take a look:

Guide was updated recently and roku added two good examples. It might be the best start point! I was looking something like this when start with Graph Api.
Sincerely, Sergey Shoshin, software developer.
0 Kudos