Article View: comp.graphics.avs
Article #32texture mesh is here
From: Wes Bethel
Date: Tue, 04 Aug 1992 21:36
Date: Tue, 04 Aug 1992 21:36
45 lines
2427 bytes
2427 bytes
Hi Folks.... I have a way cool new module that I've put up at the IAC. It's so way cool that I thought I should say something to the net. A few days ago, someone posted asking for a module that would produce a mesh from a 2d rectilinear field. This note is a follow-up to a previous post on that subject. The new module, called "texture mesh", takes 2D data of any type and creates a quad mesh. If you have ever tried to make a height map of a 2d rectilinear field using "field to mesh", you will like this module. I'll try to be brief about what this module does: 1. take a 2D field, create a quad mesh. for uniform fields, the x,y coords come from the extent info, if present, or the size if not. the z values come from the data. for 2D rectilinear fields, the x,y coords are specified in the field, the z- values come from the data. for 2D 3-space irregular fields, all of x,y,z are present in the field. 2D 2-space irregular fields are treated exactly like rectilinear fields. 2. do something "intelligent" about texture mapping (I'll save you wise guys the effort of stating that intelligence is in the eyes of the beholder). One can set the UV coordinates in the field, and subsequently use dynamic texture mapping in the software renderer, or one can color the vertices of the mesh using an image. In either case, one can move the texture around and do texture scaling (no rotations or non-affine transforms) using the parameters provided for controlling the UV mapping of texture to mesh. I have found a million and one uses for this module. Don't know why I didn't write it sooner. Plus, if it breaks, or you don't like something about it, you can do something about it (scream at me, or fix it yourself). Now, isn't that SPECIAL! ;-) ;-) wes ps- give the IAC a couple of days to unpack it, install, port and test it on all AVS platforms.
Technical Details
Message-ID:
<1992Aug4.213657.5825@overload.lbl.gov>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!dog.ee.lbl.gov!overload.lbl.gov!maui.lbl.gov!wesShow Full Headers
Complete Article Headers
Newsgroups: comp.graphics.avs Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!dog.ee.lbl.gov!overload.lbl.gov!maui.lbl.gov!wes From: wes@maui.lbl.gov (Wes Bethel) Subject: texture mesh is here Message-ID: <1992Aug4.213657.5825@overload.lbl.gov> Followup-To: comp.graphics.avs Sender: usenet@overload.lbl.gov Nntp-Posting-Host: maui.lbl.gov Organization: Lawrence Berkeley Laboratory Date: Tue, 4 Aug 92 21:36:57 GMT Lines: 46