CompuServe Thread

#IPAS Selection Routines

3 messages in this thread
#92827From: Danny MercurioMar 22, 1994 1:43 PM
Hi Doug, Sorry to hear you're having trouble with the faces in the user view. I haven't run into this problem myself so I don't think I can help you, other than to ask whether you've got the face edge flag set to make all edges visible. (i.e. facedata[i].flags = FC_ABLINE | FC_BCLINE | FC_CALINE;) How's the selection dialog coming? I would have finished the pick object routine by now but my hard disk decided to take a vacation last week. I lost about 75% of my stuff on that disk, and it took me most of the weekend just to restore and re-install everything. Anyhow, I should be back up to speed tonight and I'll start on that routine. Take care, Danny…
#92924From: Douglas HoltMar 23, 1994 5:33 AM
Danny, >> hard drive taking a dump… Ouch, not something that makes you sleep well I'm sure… I had a friend that had spent about 6 months on a MAJOR project and lost his drive, and his latest backup was more that 2 months old! (I haven't heard much from him after that, wonder if he commited suicide! <joke>) Yes, my face flags are all completely valid, that's what I've checked and quadruple checked (over and over and over and over) among other things… Aaahhhh! The problem isn't the mesh or the flags! It seems that pxp_draw_item is not calculating backface correctly! This doesn't only happen in the user view, it happens in all views, if it is a camera view, the object is not redrawn at all (the vertices in backface do not show up in camera views) but if I type 'C' in the camera viewport (to refresh the camera) it redraws correctly!!!!!!! I'm at a major loss to understand what's going on here, I know that the flags are used for more than just edge visibility but I there aren't any other bits set when this happens! I will check everything that I can think of, including the ItemData struct for calling pxp_change_item, but as far as I can tell right now, it is perfectly fine as well. The Select Objects by Name dialog is finished. I am attaching a zip file for you called selbynam.zip. It has a few extra utils that I use all the time. They are in xpxp.c and xdialog.c (include their .h components) I haven't written a whole lot of docs but hopefully enough to get started. Tstsel_i.pxp is ready to run and the .c files are ready to compile, refer to testsel.c for general usage. I hope you like it, if you have any suggestions, please feel free to yell! Talk to ya later, doug
#92984From: Danny MercurioMar 23, 1994 11:43 AM
I'm sorry to hear that you're still having these face problems Doug. I can think of two things that may or may not be affecting your objects. First, are you welding the vertices? I had a problem, when I started writing the blob code, that had to do with assigning more than one vertex to a particular point in space. I wrote a subroutine that analyzes all the vertices and discards any that share the same space, reassigning the faces to the proper vertex. Second, (and less likey), are you using the pxp functions in the right order? I'm probably reaching here because I don't even know what would happen if you used them in the wrong order. They probably just wouldn't work at all. But just in case, here's the order I use with the blob code: pxp_create_item(&blobdata.name, status); pxp_set_verts(blobdata.name, vsize, 0, status); pxp_put_verts(blobdata.name, 0, vsize, &vertdata, status); pxp_set_faces(blobdata.name, fsize, status); pxp_put_faces(blobdata.name, 0, fsize, &facedata, status); pxp_draw_item(blobdata.name); I don't know if these suggestions will help you. Let me know if you get this problem figured out. Thanks for the selection code. I'll take a look at it as soon as I send this message. I hope to have the pick object code finished soon and I'll send it to you. Take care, Danny…