🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.graphics.avs
Article #131

Re: How to assign uvw data?

#131
From: Larry Gelberg
Date: Fri, 04 Sep 1992 14:06
27 lines
1432 bytes
Keith,

Here are the relevant lines of code from the 'brick' module.
The functions are essentially the same as the UV functions
but extended in (hopefully) obvious ways.  Let me know if
you need some clarification on this stuff.


  *output = (GEOMedit_list *)GEOMinit_edit_list(*output);
  
  obj = GEOMcreate_obj(GEOM_POLYTRI,GEOM_NULL);
  if(num_vertex > 0) {
      GEOMadd_polytriangle(obj,pt_list,nl_list,NULL,num_vertex,GEOM_COPY_DATA);
      GEOMadd_polytriangle_uvws(obj,uv_list,0,num_vertex,GEOM_COPY_DATA);
  }
  GEOMedit_geometry(*output, "brick", obj);
  GEOMedit_texture(*output, "brick", "dynamic");
  GEOMdestroy_obj(obj);

I hope this helps,
larryg

--
=== Larry Gelberg ============================ larryg@avs.com =======
      Advanced Visual Systems Inc. (AVS Inc.)
      300 Fifth Ave, Waltham, MA 02154
===== Tel: 617-890-4300 = Fax: 617-890-8287 =========================
Technical Details
Message-ID: <1992Sep4.140615.12422@ctr.columbia.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!aurora!larryg
References: <540.9209041329@rahman.earth.ox.ac.uk>

Show Full Headers
Complete Article Headers
Newsgroups: comp.graphics.avs
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!aurora!larryg
From: larryg@avs.com (Larry Gelberg)
Subject: Re: How to assign uvw data?
Organization: Advanced Visual Systems Inc.
References: <540.9209041329@rahman.earth.ox.ac.uk>
Message-ID: <1992Sep4.140615.12422@ctr.columbia.edu>
Sender: news@ctr.columbia.edu (The Daily Lose)
X-Newsreader: Tin 1.1 PL4
Date: Fri, 4 Sep 1992 14:06:15 GMT
X-Posted-From: aurora.avs.com
X-Posted-Through: sol.ctr.columbia.edu
Lines: 27