thnx a lot Florin, u exactly described what i was dreaming to do before to start... let me clear something more,actually i'm a computer engineer and my area is on robotics...since some months i'm jobless,so i thougt i can return to my scool years and i can start to learn something interesting..i decided to learn about J3D api.. since so long time i'm collecting nearly all info available on internet about J3D api..but i couldn't find even one really good example/book on J3D...
if i don't disturb u can i ask u something? when i do't find any coding/idea solution for my little project,can u help me???if not its not problem.. thnx to spend your time reading my message... cheers.. Sencer --- Florin Herinean <[EMAIL PROTECTED]> wrote: > Why don't you plainly generate your hollow > semi-cilinder ? It's really very > simple to generate the coordinates, and you also > have full control of the > shape. > > In my opinion, for such a simple problem you > shouldn't bother using 3d-party > models. Your scene will be composed of 2 objects: > a) the water-channel > b) the water itself. > > a) For the water-chanel, you need 2 objects, the > Geometry object (you can > use a QuadArray) and an Appearance object. Being > wire-frame or textured > solid is only playing with the attributes of the > appearance (actually > PoligonAttributes and TextureAttributes). Once the > geometry created you > don't have to change it. > > b) for the water, I'll use a TriangleArray to > generate a polygon mesh in > BY_REF mode and create a behavior to dynamicaly > change the mesh. Here you > can use some simple algorithms to change the > coordinates / normals of the > mesh to simulate the waves of a running water. The > water should have > transparency attributes set, so that you can see > through it. > > If you really want to play with something realistic, > then the water pipe > should have two texture unit states, one for the > plain texture and the > second texture should contain the refracted light > passing through the water. > Then in the same behavior you should also change the > texture transform of > the refracted light so that it's synchronized with > the water mesh. > > Cheers, > > Florin > > -----Original Message----- > From: Discussion list for Java 3D API > [mailto:[EMAIL PROTECTED] Behalf Of > demir sencer > Sent: Donnerstag, 1. April 2004 11:00 > To: [EMAIL PROTECTED] > Subject: Re: [JAVA3D] how to draw a 3D > hollow-semi-cylinder HELP > > > thnx Joshuah!!! > > i didn't know about milkshape.. > > but let me clear out on what i have to do: > 1-i want to draw a segment of a water-channel > 2-a)channel has to be wire-framed and also > b)i have to give an option to put texture on > channel > when user wants(i did this part,iuser can change > the > texture on a cylinder) > 3-the water has to be "alive",i want to put an > option(maybe a slider) that when i change the level > of > water, > the level of water in the channel has to change > also.. > > so,please if u can give me any idea/code/fragment or > anything u think,please please please tell me.. > > thanx to spend your time to read my msg.. > > __________________________________ > Do you Yahoo!? > Yahoo! Small Business $15K Web Design Giveaway > http://promotions.yahoo.com/design_giveaway/ > > =========================================================================== > To unsubscribe, send email to [EMAIL PROTECTED] > and include in the body > of the message "signoff JAVA3D-INTEREST". For > general help, send email to > [EMAIL PROTECTED] and include in the body of the > message "help". > > =========================================================================== > To unsubscribe, send email to [EMAIL PROTECTED] > and include in the body > of the message "signoff JAVA3D-INTEREST". For > general help, send email to > [EMAIL PROTECTED] and include in the body of the > message "help". __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
