Page 1 of 2

Billboard Clouds for Daggerfall Trees

Posted: Fri Aug 23, 2019 10:03 pm
by DeltaOfPie
Hi,

I recently came across the "Trees of daggerfall" mod and it sucks a lot of performance, also the retro look somewhat gets lost and the trees have so much detail that they kind of do not match the environment.

So maybe you could use "Billboard clouds" to render the tree in a more "retro compatible fashion"...

The simplest "billboard cloud imposter" is two quads crossed with the tree rendered from 2 perspectives (this could be hand made or by projecting 3D trees from 2 directions).
Somewhat like in this game:
https://youtu.be/ginN-SVZkSc
https://www.youtube.com/watch?v=IifrGuITF2k
(or in minecraft the flowers)

More "complicated" billboard cloud imposters (model approximation) looks like this:
https://bit.ly/321ydDP (image of LoD of billboard clouds)


This way they look consistent like sprites, but do not have the up/down-look warpings, while adding another dimension to them compared to classic daggerfall sprite trees.

The pros for "billboard clouds" compared to "billboard imposters" is that you have the spacial consistent rotation (when moving around the object) as well as simplified processing for the GPU pipeline (no query on the CPU for the right imposter angle). Also you could render the images in the "Daggerfall palette"/low res and have a more "retro consistent look".

Re: Billboard Clouds for Daggerfall Trees

Posted: Sat Aug 24, 2019 6:04 am
by King of Worms
I like the crossed billboards in the 1st game.

But that requires specific sprite ;/

Symetrical. Lots of dagger art is asymetric.

Re: Billboard Clouds for Daggerfall Trees

Posted: Tue Aug 27, 2019 12:32 pm
by DeltaOfPie
That's true... They would have to be made handmade..
Or you would use the trees from "Trees of Daggerfall" with "slicing" [0]:

Image


[0] - http://eprints.fri.uni-lj.si/97/1/trees-electronic.pdf

Re: Billboard Clouds for Daggerfall Trees

Posted: Tue Aug 27, 2019 2:47 pm
by MasonFace
I also had this thought. I could generate either a 3D Texture or a Texture2D array by slicing the tree models, then render those slices onto crossed quads.

The main problem with this technique is dealing with overdraw, but that can be handled with custom meshes that cut out as much alpha as possible. The second problem is that this increases the complexity of the render queue sorting where the renderer has to determine which of the slices to draw first. I'm not a rendering expert so this may not be as big of a deal as I think.

Another problem is what KoW pointed out. If the tree trunk isn't directly in the center of the frame and project straight up, then your slices will look weird. Consider this tree for example:
504_16-0.PNG
504_16-0.PNG (19.49 KiB) Viewed 6906 times
Assuming we're starting from the 3D version of this sprite, where do you put the origin of the slices so that it looks correct when viewed from various angles?

I don't want you to think that I'm discrediting your idea, I'm really not. I just wanted to walk you through my thought process as to why I haven't tried it yet. Maybe you have a way to overcome these issues.

Re: Billboard Clouds for Daggerfall Trees

Posted: Wed Aug 28, 2019 2:52 pm
by DeltaOfPie
It depends on the approach, billboard clouds should work for any geometry.
(Billboard clouds are an approximation of the geometry, where the vertices get clustered by the k-means-algorithm, and replaced by a plane)

As for slicing from the center... I guess this would produce some problems...

The splicing and blending of the paper however works with multiple splices not necessary in the center (basically a grid)..
So that should work for any geometry...

Another maybe easier approach would be to cluster the geometry and replace them by 2(/3)-cross billboards... This would be something like a voxelized view but the voxels are not cubes or splats, but 2-cross billboards... This would keep the spacial consistency and would follow the geometry of the tree.

Re: Billboard Clouds for Daggerfall Trees

Posted: Wed Aug 28, 2019 3:05 pm
by DeltaOfPie
As for handmade 2-cross billboards.... You would have to make one of the plane a 2D-Mesh, rather than simply a billboard...
Basically following the geometry.

You would have to make "sub-geometries"... Taking parts of the "tree" and modelling them as 2-Cross billboards.

They would be handmade retro models.

Re: Billboard Clouds for Daggerfall Trees

Posted: Sun Nov 03, 2019 9:47 pm
by MasonFace
Whelp, I finally got some free time and it got interested in this idea again.

Full disclosure: If VMBlast is okay with it, I'd like to use his 3D trees as source material to create retro alternatives for my PVE mod using either the "billboard cloud" technique described in this thread, or a more traditional billboard.

See the video below for what I have so far.



I started with an easy symmetrical tree 504_13, using VMBlast's model as stated above.

The left view is the 3D model, the middle view is the "billboard cloud," and the right view is a traditional multi-view billboard.

I'm using some shader trickery on the billboard cloud to fade the "slice" in and out when it is angled steeply away from the player.

Neither of the two "retro" alternatives are perfect, but I think they look kind of interesting.

Re: Billboard Clouds for Daggerfall Trees

Posted: Mon Nov 04, 2019 9:38 am
by King of Worms
Very nice, so the cloud can be built only from 3d object?

Re: Billboard Clouds for Daggerfall Trees

Posted: Mon Nov 04, 2019 4:20 pm
by MasonFace
King of Worms wrote: Mon Nov 04, 2019 9:38 am . . . so the cloud can be built only from 3d object?
Yeah, I think so. If the object is very symmetrical all the way up its y axis, then maybe it could be done with original 2D art, but as we've touched on previously in this thread, not much of Daggerfall art is symmetrical like that.

I guess technically I'm doing a variant of what DeltaOfPie referred to as a "2-Cross Billboard," except with 8 rotational slices instead of just 2... so I guess I should call it an "8-Cross Billboard?"

To be honest, I don't really understand billboard clouds. I can't find any sources that demonstrate what they look like in action or how they perform. I really just don't understand the appeal.

Re: Billboard Clouds for Daggerfall Trees

Posted: Mon Nov 04, 2019 5:45 pm
by VMblast
MasonFace wrote: Sun Nov 03, 2019 9:47 pm Full disclosure: If VMBlast is okay with it, I'd like to use his 3D trees as source material to create retro alternatives for my PVE mod using either the "billboard cloud" technique described in this thread, or a more traditional billboard.
Sure go ahead, you have my support on this. ;)