Fitting texture to mesh

Hi all,

Nice to see those who came at the workshop,

I am having fun with the mesh primitive at the moment and can get the
geometry in no problem but.

How do I get the texture map into the scene in the correct place?

I have been using colorpict but this seems to just be a projection
rather than a wrapping which tells me I am making a mistake somewhere or
using the wrong thing,

Any help gratefully received,

Rich

···

____________________________

Richard Gillibrand

Department of Computer Science,

University of Bristol,

Tel: 0117 9545256

____________________________

Hi Rich,

I guess I should have explained how to map patterns to mesh primitives better during the tutorial...

First, you need to download and compile the HEAD distribution from <www.radiance-online.org> if you haven't already, as the local coordinate mapping isn't _quite_ working in the official 3.5 release.

Second, you need to make sure that you have local coordinates defined and exported for all your surfaces from your modeler of choice (Maya in your case).

Third, you need to follow directions similar to the ones excerpted below from an earlier inquiry, which I probably should have cross-posted to the list:

···

-----------
From: Greg Ward <gward@lmi.net>
Date: Tue Sep 30, 2003 4:11:53 PM US/Pacific
To: Faouzi Djafi <fdjafi@yahoo.fr>
Subject: Re: Help-me

Hi Djafi,

It is unlikely that you will be able to get your image to map correctly to your object unless you download and compile the latest (HEAD) version of radiance from www.radiance-online.org and apply the new mesh primitive rather than relying on obj2rad. This is the only way to get local texture coordinates, which you have in your .OBJ file.

To do this, I created two files -- Box.mat and box_mesh.rad. Box.mat contains:

void colorpict patt
7 red green blue image_1.pic . Lu Lv
0

patt plastic map_image_1
0
5 .75 .75 .75 0 0

And box_mesh.rad contains:

map_image_1 mesh box1
1 Box.rtm
0

I then ran the following commands:

% obj2mesh Box.obj > Box.rtm
% oconv Box.mat Light.rad box_mesh.rad > scene.oct

You can then produce renderings from scene.oct.

If you are under Windows, none of this will work as the mesh primitive is not part of Desktop Radiance.

-Greg
------------

From: R Gillibrand <gillibrand@cs.bris.ac.uk>
Date: Mon Oct 6, 2003 8:46:00 AM US/Pacific

Hi all,

Nice to see those who came at theworkshop,

I am having fun with the mesh primitive at the moment and can get the geometry in no problem but�

How do I get the texture map into the scene in the correct place?

I have been using colorpict but this seems to just be a projection rather than a wrapping which tells me I am making a mistake somewhere or using the wrong thing,

Any help gratefully received,

Rich