[Papervision3D] The sphere material's flipping problem
oncejoin
oncejoin at gmail.com
Sat Dec 15 09:38:26 PST 2007
I flipped the image,but only half of it was flipped.Why?
This is the result:
http://www.86rm.com/vr/pano/error.html
http://www.86rm.com/vr/pano/error.html
The code:
var flipHorizontalMatrix:Matrix = new Matrix();
flipHorizontalMatrix.scale(-1,1);
flipHorizontalMatrix.translate(_material.bitmap.width,0);
_material.bitmap.draw(_material.bitmap,flipHorizontalMatrix);
:(
Carlos Lunetta wrote:
>
> Load the original image, flip the bitmapData... you don't have to change
> the original...
>
> oncejoin wrote:
>> I don't want to change the original image.:)
>>
>>
>> Jeff W. wrote:
>>
>>> can't you just flip the original image too?
>>>
>>> oncejoin wrote:
>>>
>>>> Here is a sphere panorama,the image is flipped from left to right.I
>>>> want
>>>> the image not to be mirrored.
>>>> http://www.86rm.com/vr/pano/rmpanoplayer.html
>>>> http://www.86rm.com/vr/pano/rmpanoplayer.html
>>>>
>>>> I used a sphere,the material is using "opposite",the camera is in the
>>>> center of the sphere.
>>>> If a cube,it has a "insideFaces" parameter to keep the material inside
>>>> a
>>>> cube.But the sphere has no parameter like "insideFaces".
>>>>
>>>> Thanks.
>>>>
>>>>
>>>
>>
>>
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
--
View this message in context: http://www.nabble.com/The-sphere-material%27s-flipping-problem-tp14339907p14352997.html
Sent from the Papervision3D mailing list archive at Nabble.com.
More information about the Papervision3D
mailing list