Another sneak peek: Updated Rive extension rendering in the Editor!
We’re getting closer to an update of our in-editor rendering of a Rive scene.
It uses the same rendering code as we use in the engine runtime, meaning full vector rendering with feathering and so on. A little bit of work still left, but we’re making good progress!
At the same time, there will also be a new scripting api for Rive, that matches their more recent “databinding” functionality.
Working on adding the new semantic type “center position” for custom vertex formats that automatically exposes the objects world space position in shaders. You can use this to achieve billboards and impostors in the engine/editor that are always rotated towards the camera:
Thank you. Yet again, this is something everyone has been waiting for for a long time. The timing is also great. I have lots of billboard sprites in one of my prototypes.
I have one small question: will this also somehow work if the particles or the container game object are rotated?
This question is also relevant for sprites. In the current implementation of the shader, the sprite or object/objects above it in the hierarchy cannot be rotated for the billboard to work properly.
It will not automatically work if you rotate objects I think, you will need to combine this with a transform (which is also available as a custom attribute).
The left side is latest Defold stable (1.12.2) and the right is the latest dev (1.12.3), and as you can see there’s almost half as many opengl calls in this complex scene.
It’s quite noticable performance wise as well, fps wise, on my dev machine: