road0001 / as3isolib

Automatically exported from code.google.com/p/as3isolib
0 stars 0 forks source link

Image do not render peoperly on isobox if dimentions are different #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add isobox with image as per http://groups.google.com/group/as3isolib-
users-group/browse_thread/thread/136a32f2a0128ffa example
2. Replace wood.jog with custom image say with some text on image.
3. The image do not propery render if box dimentions are different say 
200, 100,100

What is the expected output? What do you see instead?
The expected output should be the image should render complete on each 
side. But it renders the image considering it as a squre box.

What version of the product are you using? On what operating system?
beta relaese with windows XP.

Please provide any additional information below.
We need to fill bitmap on the box. If box is square it works fine. When we 
change any one dimention the bitmap is not rendered properly. Please see 
the attached file.

Thanks
Sanjeev Kumar

Original issue reported on code.google.com by sanjeevk...@gmail.com on 24 May 2009 at 11:40

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by jwopitz on 27 May 2009 at 9:12

GoogleCodeExporter commented 8 years ago
so there are two things to point out here.  a) the idea that if you have an
IsoRectangle the bitmap will be rendered correctly.  Say you have an 
IsoRectangle
with the dimension w=100, l=100, h=0;  Then you have a bitmap image that is say
200x100.  If you simply pass the bitmap in as a fill it will indeed crop the 
image to
the dimensions of the IsoRectangle.  The BitmapFill takes a matrix parameter 
that is
intended to force scaling upon the bitmap when applying to the IsoRectangle.  
If you
leave this null, then no modifications aside from the orientation takes place.

b) by you logging this issue, I have subsequently stumbled upon a new bug with
regards to the bitmap fills and how they are applied to an IsoBox, specifically 
the
top face.

I am closing this bug and opening a new one specific to the new issue.

Original comment by jwopitz on 9 Jun 2009 at 4:41