Re: [K3d-development] [BUG] recursive extrude faces on polyhedron produces RIB code that kills Aqsi
Brought to you by:
barche
From: Paul G. <aq...@gm...> - 2006-07-28 14:07:08
|
Tim is also correct in that Aqsis should most certainly handle it gracefully. If someone could send me a RIB that causes the crash I'll look into beefing up the checking. Cheers PaulG On 7/28/06, Timothy M. Shead <ts...@k-...> wrote: > > On Thu, 2006-07-27 at 09:50 +1000, Daniel Matthews wrote: > > See attached file, > > The geometry saves and reloads OK, but RIB output from it will crash > > Aqsis. > > I was using k3d-all-in-one-setup-0.5.15.0.exe > > > > Question is, is it an Aqsis bug &or a K-3D bad geometry issue? > > Perhaps the polyhedron generation code is producing some faces that > > are inside out? > > The problem here is with the per-face colors generated by the Polyhedron > plugin. The way things work in RenderMan, you have a lot of flexibility > to "tag" geometry with attributes of various types - colors, scalars, > strings, normals, matrices, etc. You do this tagging at many levels: > per-face, per-vertex, per-edge, etc. However, you do have to be > consistent: if you provide (in this case) per-face colors for some > faces, you must provide them for *all* faces. Polyhedron is doing that > fine, but what's happening is that the subsequent ExtrudeFaces modifiers > aren't assigning per-face colors for the new faces they create. So the > RIB output produced by K-3D isn't valid in this case. > > The short-term workaround is to use the TagColors modifier with the "tag > faces" property enabled, to assign colors to all the faces. > > I will add some sanity checking in our RIB output to catch this scenario > and correct it. > > Longer-term, it's going to be a bear to fix all of the modifiers that > aren't generating tags ... doh! But it'll have to be done. I will > postpone it to after 0.6 because there are some other > performance-related changes to k3d::mesh that will have an impact on the > work. > > Cheers, > Tim > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > K3d-development mailing list > K3d...@li... > https://lists.sourceforge.net/lists/listinfo/k3d-development > -- Paul Gregory http://www.aqsis.org ICQ: 156088409 |