POV-Ray : Newsgroups : povray.unofficial.patches : Questions about mesh2 : Re: Questions about mesh2 Server Time
2 Sep 2024 18:16:29 EDT (-0400)
  Re: Questions about mesh2  
From: Nieminen Juha
Date: 5 Oct 1999 05:11:19
Message: <37f9c0b7@news.povray.org>
Nathan Kopp <Nat### [at] koppcom> wrote:
: This is true.  That's something I didn't think of.  For now, you can mix
: them by using the same normal index for each corner of any triangles that
: should be flat.  Unfortunately, that doesn't do much for decreasing file
: size.  :-(  Any suggestions?

  Perhaps separated blocks for triangles and smooth triangles? Something
like:

mesh2
{ vertex_vectors { ... }
  normal_vectors { ... }
  uv_vectors { ... }
  texture_list { ... }
  triangle_indices { ... }
  triangle_uv_indices { ... }
  smooth_triangle_indices { ... }
  normal_indices { ... }
  smooth_triangle_uv_indices { ... }
}

: Anyway, if you show me some numbers of how it would save tons of space to
: put normals and vertices together, I'll look at it more closely.

  Perhaps you are right.
  Anyways you can use the mesh compressor to see how many normals really can
be put in the vertex vectors group.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.