» VL: Xenko 3D Engine Update #1
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

VL: Xenko 3D Engine Update #1

Hello @all,

as you might have read in the VL: ThreeDee blog post, we see two major workflows with vl/xenko. To get familiar with xenko we jumped on a project where the second mentioned workflow, "Xenko game as a host for VL" makes sense.

First contact was better than expected and we were quickly able to patch with the original xenko entities. The nodes we created so far allow to setup the scene graph and also combine it with scenes or prefabs made in xenko's game studio.

We also tested custom 3d drawing á la vvvv dx11 and the performance is crazy good so far! We implemented some pretty complex shader pipelines like a 3d fluid simulation and particle systems and we see insane frame rates, even on laptops.

Disclaimer: This is work in progress and all info below is subject to change.

Scene Graph Nodes

The scene graph is a high level system that has concepts like light, shadow, materials, physics, audio etc. Patching with the scene graph feels quite easy since there is no need to work with shaders directly. Let's see how this looks like:

The entry point into the rendering is the RootScene:

Much like a vvvv Renderer you connect the content to its input. Each object in the scene is a so called Entity. Or in other words, entities are the building blocks of the scene graph. They can be as simple as a Quad or as complex as a complete level of a game. For example the Box or the AxisAndGrid node are entities. Entities can also have children, so we modeled the almighty Group node as an entity with two or more inputs for child entities:

For a basic setup we can connect an AxisAndGrid and a DirectionalLight to the Group:

It might feel odd to vvvveterans to connect AxisAndGrid and DirectionalLight to the same Group. But this is what the engine manages for you, it picks up all entities in the scene graph and builds the correct shaders, render calls, physics setup and so on from it. That is how most modern game engines work, the concept is called entity/component/system (short ECS) and xenko has a nice documentation about it here if you want to know more.

Of course you can still work with custom shaders when needed. More on that in an upcoming blog post.

Now let's finish our little scene by adding a floor plane and a box:

There you have it, doesn't it look nice?

Next Demo

If you want to see more vl/xenko in action, join us at the next vvvv meetup where we will give a bit more insight into the current state of the library: vvvv meetup #5

See you there,
devvvvs

tonfilm, Friday, Oct 26th 2018 Digg | Tweet | Delicious 7 comments  
motzi 26/10/2018 - 18:42

thanks for the update - looks exciting!
it might be too early for this question: do you have plans already how to intermingle xenkos editor and the scenegraph built up programmatically from within VL? the posted example shows the scenegraph entities created completely in the patch. if i'd like to design the scene using the xenko editor - would i automatically get this scene as a patch like above? (would this even make sense?)

i'm asking because having this capable editor from xenko would be one of the big advantages for many projects and i wonder which direction will be pursued first...

tonfilm 26/10/2018 - 19:26

@motzi:

quote:
The nodes we created so far allow to setup the scene graph and also combine it with scenes or prefabs made in xenko's game studio.

so you can build any scene with game studio and add dynamic content in vl, its the same scene graph. you can also "prepare" any content in game studio and load it dynamically as a Prefab when you need it. since you can access the whole scene graph, you can modify it as you like in vl. but there is no xenko 3d editor to vl patch conversion.

u7angel 26/10/2018 - 21:40

super gut.
the tree doesnt look too unfamiliar.

sebescudie 28/10/2018 - 19:05

This looks pretty promising, can't to see where this goes with VL's OOP ..

One question : how would the patch look like if I want my cube to have some fancy PBR material ? Does this BoxEntity have some kind of Material pin ?

tonfilm 29/10/2018 - 18:11

@sebescudie yes, for now there is a fixed white material loaded for all basic primitives. that's what the color input is for.

for different materials you would use a more advanced version of the box with a material input pin. but you rarely need basic primitives with fancy materials. i think you would rather want prepare more advanced models and materials in xenkos game studio and load that as a whole package, for example as a prefab.

so, as an advanced user you would build your own custom entities and add the components that you need for that specific entity (model, material, physics, audio etc.). the predefined entities are rather for quick drafts and act as a kind of template for more complex custom entities.

sebescudie 29/10/2018 - 18:54

Okay, thanks for clarifying, I realy like this approach :)

djancik 10/11/2018 - 22:56

Awesome, glad to see progress on this!

What is this dark them I'm seeing? :D

  • 1

anonymous user login

Shoutbox

~11h ago

joreg: vvvvTv S02E01 is out: Buttons & Sliders with Dear ImGui: https://www.youtube.com/live/PuuTilbqd9w

~7d ago

joreg: vvvvTv S02E00 is out: Sensors & Servos with Arduino: https://visualprogramming.net/blog/2024/vvvvtv-is-back-with-season-2/

~8d ago

fleg: hey there! What's the best tool for remote work? Teamviewer feels terrible. Thanks!

~21d ago

joreg: Last call: 6-session vvvv beginner course starting November 4: https://thenodeinstitute.org/courses/ws24-5-vvvv-beginners-part-i/

~1mth ago

joreg: Missed the last meetup? You can rewatch it here: https://www.youtube.com/live/MdvTa58uxB0?si=Fwi-9hHoCmo794Ag

~1mth ago

theurbankind: When is the next big event, like node festival ?

~1mth ago

~1mth ago

joreg: Join us for the next vvvv meetup on Oktober 17th: https://visualprogramming.net/blog/2024/25.-vvvv-worldwide-meetup/

~1mth ago

joreg: 6 session beginner course part 2 "Deep Dive" starts January 13th: https://thenodeinstitute.org/courses/ws24-5-vvvv-beginners-part-ii/