PDA

View Full Version : fixing alpha textured objects


joeymax
05-07-2008, 06:05 PM
Hi there

i have created a tree object in 3dsmax which has a diffuse and alpha texture applied. when i view the object in vizard, there seems to be some problems.

when there is a few alpha textured objects on screen at once they seem to flicker, sometimes they have their transparency, sometimes they dont, and sometimes a grey/white border appears around the object (when that part of the object should be see-through).

I think this has something to do with draworder maybe??

I can send you my scene (along with the textures) but its in a 6mb zip folder (they only let you upload 1mb on here)

Ideally what i want to be able to do is create a scene with lots of trees (2d alpha textured billboards) and i want them to work properly, so that there is no conflicts with other objects in the scene, no pop-ups/flickering etc.
Again.. probably easier to explain if i send you my file.

Thanks :)

k_iwan
05-07-2008, 10:12 PM
Hi,

I use PNG image format with transparency on the image. It works well.

nige777
05-08-2008, 05:54 AM
Hi Joey,

This is a draworder issue i think mate. High numbers are drawn first and low last (i think thats right!?), so if your alpha's are showing the background colour instead of what is behind them (white or black), try increasing their draworder number.

joeymax
05-08-2008, 06:24 AM
thanks... I'll try using PNG's

can i simply apply the PNGs to objects in max and still get the transparency, or do i have to apply the PNGs to the model through vizard. if so I guess i still need to apply a uwv map modifier before i export so the texture looks correct?

..is there no way to correct the 'flickering' problem when using standard diffuse/alpha texture?

thanks again :)

joeymax
05-08-2008, 06:26 AM
sorry i posted that last message before noticing your reply nige, i'll try that first.. cheers

joeymax
05-09-2008, 11:31 PM
thanks guys! it works perfect now :)

if anyone else has suffered the same problem, simply texture the model with a PNG texture (with transparency) then in vizard make sure you set the draworder to something high... :)

tree = viz.add('tree_1.ive')
tree.draworder(1000)