> > Direction guessing sounds do-able. If a voxel is visible
> > from both front, side and bottom, it's a front, bottom,
> > right or front, bottom, left (based on which side you
> > take), and you choose a value.
> > I'll write something like this for the voxel editor.
> Am on to it already :) That is exactly how I'd set about
> it, which is why I can only assign normals based upon
> those 18 directions instead of the real TS normals base
> (36 or whatever).
> It will be in Voxel_Tools.pas, like RemoveRedundantVoxels
> function.
> I am also writing a little wizard to call this function,
> but you should easily be able to use it in the actual main
> editor source as well. Open source of course!
Hi will,
Already wrote a (quite powerful) analysis tool from VXLSE.
See http://www.vdsp.myweb.nl/vxlse.zip
Under the Auto-normals menu, there is a "Normal report" tool.
It contains my auto-normals implementation, and can identify between 64 'directions' (not really, just the 6 sides of a box actually).
You can specify a mode shown in the upper chart first.
If someone does the boring job of trying out all modes with a lot of correct *TS* voxels, it's a 5-min job to create a auto-normals function out of it.
Yours could be better of course.
> > > Godwin's diagram:
> > > http://ar2.eclipsemods.com/godwin/faces.gif
> clearly shows the faces values we need. All eighteen of
> them please, team!
> We need:
> > > We need:
> > > bottom -
> > > top -
> > > left -
> > > right -
> > > front -
> > > back -
> > > back, top, left -
> > > back, top, right -
> > > back, bottom, left -
> > > back, bottom, right -
> > > front, top, left -
> > > front, top, right -
> > > front, bottom, left -
> > > front, bottom, right -
> > > left, top -
> > > left, bottom -
> > > right, top -
> > > right, bottom -