Plane with BitmapMaterial that becomes creepy

5 views
Skip to first unread message

G.

unread,
Jul 28, 2009, 12:14:02 PM7/28/09
to away3d.dev
Hi there,

I have an odd problem with a Plane which material is a BitmapMaterial.
If I keep the segmentsW and segmentsH amount low, everything is ok,
the render is really good, but as soon as I raise the number of
segmentsW and segmentsH the Plane becomes really creepy, as if the
smooth parameter of the BitmapMaterial had been deactivated. I've
tried with another BitmapData as material, as long as playing with the
sizes of the material or the plane, or its position, but the problem
persists. The thing is I'm using as3dmod and so I need a large number
of segments so the distorts keep smooth.

how could I solve the problem?

G.

Peter Kapelyan

unread,
Jul 28, 2009, 12:59:49 PM7/28/09
to away3...@googlegroups.com
Are you using precision:somenumber in your material? You can try with or without. If it's a precision problem, your best bet would be to use the Flash10 version, it has the best texture perspective correction.

Also, creepy is a little vague, do you have a demo or something that illustrates the problem? It could be something else ..but not sure really unless I see it in action. If it is sensitive material you can send the demo/example directly to me, I will keep it confidential.

-Pete
--
___________________

Actionscript 3.0 Flash 3D Graphics Engine

HTTP://AWAY3D.COM

G.

unread,
Jul 28, 2009, 1:37:29 PM7/28/09
to away3d.dev
Hi Peter,

thank you for answering so fast.

I tryed with precision and several numbers but the problems stands.
By creepy I mean that the image is not smooth at all it's like
scratched. I have made some screenshots so it's easyer to understand:

with an amount of 8 for each segmentsW and segmentsH (the second one
is in action):
http://www.madebyg.com/test/planeLowSegmentHW.jpg
http://www.madebyg.com/test/planeLowSegmentHW2.jpg

and with an amount of 20 for each segmentsW and segmentsH (the second
is in action too):
http://www.madebyg.com/test/planeHighSegmentHW.jpg
http://www.madebyg.com/test/planeHighSegmentHW2.jpg

from what I have tested so far it seems that the problem mostly shows
when setting both segmentsW and segmentsH and most particularly
segmentsH. I have made a try by setting only segmentsW and the result
was better. Also it appears when from a value superior than 10

Peter Kapelyan

unread,
Jul 28, 2009, 1:45:42 PM7/28/09
to away3...@googlegroups.com
Ah yes I know this problem, which version are you using , 9 or 10? I know how to fix that.

-Pete

G.

unread,
Jul 28, 2009, 2:16:03 PM7/28/09
to away3d.dev
I'm using the 9 (but you can also tell me how to fix that with the 10
^^ )

Peter Kapelyan

unread,
Jul 28, 2009, 2:20:58 PM7/28/09
to away3...@googlegroups.com
Ok :)

In Flash 9 look for this line in
away3d/core/render/AbstractRenderSession.as

around line 586
layerGraphics.beginBitmapFill(bitmap, m, repeat, smooth && area > 400);

Change that 400 to something like 100 or less, until it looks right to you.

There are 3 other places in that same file you might need to change, just search for that number 400.

It would be about the same in Flash 10, in the same file (AbstractRenderSession) just in different places.

Let me know if it works for you!

-Pete


On Tue, Jul 28, 2009 at 2:16 PM, G. <0900.am@gmail.com> wrote:

I'm using the 9 (but you can also tell me how to fix that with the 10
^^ )

G.

unread,
Jul 28, 2009, 2:45:33 PM7/28/09
to away3d.dev
great it works!
thank you!
Reply all
Reply to author
Forward
0 new messages