Hi there,

I´m developing an application with which the user can change the colors and decors( logos, etc.) of cars. The textures (tiffs) are loaded into a new member using fileio and then are applied to the car.
After the new texture has been applied to the SW3D member, it becomes some kind of transparent. This only happens on Mac, for Windows it works fine. My first thought this happened due to the graphic card of my iMac (8MB) but after testing again with a brand new G5 with a 64MB gforce card I´m no longer sure if that was the problem. The texture to load is quite big (18MB) but I successfully tested the application on my Notebook with a 64mb-Radeon9000 card. So what can it be?

Well,the SW3D Member has got about 550KB. It´s been modeled with Maya as a poly and then it has been combined to one shape. It uses about 10 Shaders, 5 of them have got a texture mappted to it.
The framescript sets all textures to high, nearFiltering to 0, compression to 0 and the render format to #rgba8880. Then some of the shaders are mapped with a reflection map using Lingo. AntiAliasing is set to false. The I use a "Load design"-button to bring in the tiff as a new meber using fileio. After that the default texture of the car is changed to the new member using a script.

The button-script looks the following:

on mouseUp me
set myFile = new(xtra "fileio")
set fn = displayOpen(myFile)
if stringP(fn) then
openFile(myFile, fn, 0)
if status(myFile) = 0 then
set rd = readFile(myFile)
closeFile(myFile)
end if
end if
set myFile = 0
importFileInto (new (#bitmap, member 200), fn)

(member "car" of castLib 1).deletetexture("file9")
(member "car" of castLib 1).newtexture("file9")
(member "car" of castLib 1).texture("file9").member = (member 200 of castLib 1)
(member "car" of castLib 1).shader(4).textureList[1] = (member "car" of castLib 1).texture("file9")
(member "car" of castLib 1).model("Auto")shaderList = (member "car" of castLib 1)shader(4)
member("car").texture("file9").quality = #high
member("car").texture("file9").nearFiltering = 0
member("car").texture("file9").compressed = 0
member("car").texture("file9").renderFormat = #rgba8880
end

Any ideas for that?

Cheers,

Raoul