RE: image sources for lightmaps

Date : Tue, 4 Jul 2006 14:09:16 +0100
To : <XSI(at)Softimage.COM>
From : "kim aldis" <kim(at)aldis.org.uk>
Subject : RE: image sources for lightmaps

Cheers.

 

I’m also having problems with the AddWritableImageSource when used from jscript, if it’s of interest. Vbs syntax error thrown somewhere around the place it’s calling the SI version.

 

From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Halfdan Ingvarsson
Sent: 04 July 2006 13:25
To: XSI(at)Softimage.COM
Subject: RE: image sources for lightmaps

 

Oops. The source, not the clip.

 

Right. Change the filename in the source before adding a new lightmap shader.

 

I've logged a bug.

 

 - ½

 


From: owner-xsi(at)Softimage.COM on behalf of Halfdan Ingvarsson
Sent: Tue 04-Jul-06 08:18
To: XSI(at)Softimage.COM
Subject: RE: image sources for lightmaps

Adding a new Color_Sampler shader should create a new source. If that's not what's happening then something's up with your install. I just tried it on a fresh install of 5.0, 5.1 and 5.1 SP1 and they all create a new source for each instance of the Color_Sampler shader.

 

 - ½

 


From: owner-xsi(at)Softimage.COM on behalf of kim aldis
Sent: Tue 04-Jul-06 07:59
To: XSI(at)Softimage.COM
Subject: RE: image sources for lightmaps

Anyway, some observations, seeing’s it appears to be something of a mess:

 

AddWritableImageSource() fails with an error in some VBS code somewhere

 

SI SIAddWritableImageSource() works but doesn’t returns a value so no jscript. Wrapped it in a vbs command but even so.

 

As already mentioned, adding lightmaps shares sources.

 

Adding more than one lightmap to a scene is fraught with peril

 

 

From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of kim aldis
Sent: 04 July 2006 12:31
To: XSI(at)Softimage.COM
Subject: RE: image sources for lightmaps

 

As is always the way, 30 seconds after hitting the send button I find the answer.  AddWritableImageSource()

 

Sorry for the noise.

 

From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of kim aldis
Sent: 04 July 2006 12:23
To: XSI(at)Softimage.COM
Subject: image sources for lightmaps

 

I’m struggling here a bit adding lightmaps to material. Fine with the first but when you add the second lightmap the image source is shared with the first making it difficult to change what the lightmap is writing to without changing where the first map writes to. Simply creating a new clip for the second lightmap isn’t enough because it needs a writeable image source. There doesn’t seem to be a method for creating a writeable image source so I’m a bit stuffed.

 

There seems to be a great deal of potential for overwriting existing textures with this workflow, or am I missing something obvious?

 

Anyone done any of this, had any luck?

 

 

Cheers.

 

 


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.