how to put a texture in SphereGeometry and not overspread with the texture ?

Software: Away3D 4.x

tonnny, Newbie
Posted: 11 February 2015 03:32 AM   Total Posts: 4

i drawed a pic under this.
it just like this

 

   

Avatar
Fabrice Closier, Administrator
Posted: 11 February 2015 10:43 AM   Total Posts: 1265   [ # 1 ]

you can do it many ways, here’s a few:
1: you have a pict with alpha and only a particular region has alpha 1
material needs transparency setting to be on. takes more memory, is the most easy
2: you isolate a part of the geometry, the faces you want to use to receive the pict, extract the faces and make a new mesh of it. the rest of the sphere can be discarded
3: you make a pict with alpha with just one pixel transparency around the plain graphic, you rescale uvs to meet the pict ratio, set transparency on, but not repeat(no tiling)
4:you project as a decal using rays and compose, you need to write a shader for this, otherwize you end up doing the same as in case 1.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X