Hi James,

Thank You :) 


PS: Your book (developer's guide) is my favorite book.

Emre

-----Original Message-----
From: James Newton [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 01, 2004 12:26 PM
To: [EMAIL PROTECTED]
Subject: Re: <lingo-l> W3D texture export

On 1/6/04 7:25 am, "Emre Eldemir" <[EMAIL PROTECTED]> wrote:
> how can i extract to texture by Lingo.

Hi Emre,

Here's a roundabout way to retrieve an image from a texture:

1. Determine the dimensions (in pixels) of the texture

2. Create a plane model with the equivalent dimensions (in world units)
   as the texture.

3. Attach a shader that uses the texture to the model.

4. Place the model at...

sprite(<3D>).camera.spriteSpaceToWorldSpace(<the center of your 3D
sprite>)

   This will make each map world units of the model to pixels in the
sprite:
   the texture will appear at its full size.

5. Adjust the lighting on the model

6. Grab the image of the 3D member.

7. Trim the image (if necessary) to the dimensions of the texture.


Depending on your set-up, the resulting image will be a more or less
faithful rendering of the initial texture image.

Does this answer your question?  Does thisgive you usable results?

Cheers,

James

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]).
Lingo-L is for learning and helping with programming Lingo.  Thanks!]


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to