[Papervision3D] Papervision3d performance optimization
Jake Lewis
jakelewis3d at gmail.com
Mon Aug 3 08:40:08 PDT 2009
I think the problem may be the texture size is killing the cache. Adjacent
pixels on screen may be 8kB (2000 linewidth * 4 ARGB ) apart.
I'd suggest a collection of tiles may 128 px square - pure grass, pure
pavement, and some half and half etc. Much more bandwidth and cache
friendly.
jake
On Sat, Aug 1, 2009 at 1:41 PM, Ross Sclafani <ross.sclafani at gmail.com>wrote:
> lower the resolutiuon of the texture, and let it stretch a little
>
> On Aug 1, 2009, at 1:32 PM, Michael Iv wrote:
>
> Papervision3d performance optimization :
> Michael:
> I am developing a racing game where there is a ground plane with size
> 2000x2000 px . I have got a texture map which also 2000x2000 for this plane
> which looks like a racing road with grass . The problem is that the fps
> drops dramatically when I apply it to the plane as BitmapMaterial and also
> when I assign it as MovieMaterial thats almost the same (around half of
> original frame rate).
> I cant use tiling here because the texture has distinct fitures as road
> path which must remain intact . Anyone here has a tip for optimizing such a
> case?
> Thanks
>
>
> On Sat, Aug 1, 2009 at 1:55 AM, <papervision3d-request at osflash.org> wrote:
>
>> Send Papervision3D mailing list submissions to
>> papervision3d at osflash.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>> or, via email, send a message with subject or body 'help' to
>> papervision3d-request at osflash.org
>>
>> You can reach the person managing the list at
>> papervision3d-owner at osflash.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Papervision3D digest..."
>>
>>
>> Today's Topics:
>>
>> 1. Re: Preloading DAE Material - Loading Material PRIOR to
>> Loading DAE File? (nospam at therossman.org)
>> 2. Re: Preloading DAE Material - Loading Material PRIOR to
>> Loading DAE File? (UKLA)
>> 3. DAE parser fix for ColladaMAX NextGen (Cau? Waneck)
>> 4. Re: DAE parser fix for ColladaMAX NextGen (Paul Tondeur)
>> 5. Updated COLLADA next gen exporters (jsremi at gmail.com)
>> 6. Check out my photos on Facebook (Sherman Wellons)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Fri, 31 Jul 2009 12:03:05 -0700
>> From: nospam at therossman.org
>> Subject: Re: [Papervision3D] Preloading DAE Material - Loading
>> Material PRIOR to Loading DAE File?
>> To: papervision3d at osflash.org
>> Message-ID:
>> <8985b3523765a277e9a0f6421491cb6f.squirrel at webmail.therossman.org>
>> Content-Type: text/plain;charset=iso-8859-1
>>
>>
>> Hmm, i thought you got ProgressEvents from the materials as they are
>> loading, you should be able to handle the "preload" this way?
>>
>> additionally if you want to load if before hand, you can, just after you
>> load it create a materialslist for your DAE and pass it in, when it loads
>> it should use your materialslist and not load the images in the DAE file.
>>
>> HTH,
>> mark
>>
>>
>> >
>> > I have a DAE file which references a PNG as its material. The PNG file
>> is
>> > a
>> > little large so I decided to load the image (as a normal display object)
>> > BEFORE loading the DAE file. This allows me to track/show the progress
>> in
>> > a
>> > preloader.
>> >
>> > I figured that loading the PNG before the DAE would CACHE the image so
>> > that
>> > it would be immediately available for use with the DAE file. Turns out
>> > that
>> > this IS NOT the case.
>> >
>> > It appears as though (depsite the fact that the PNG has already been
>> > loaded
>> > and should be cached) the DAE file loads the PNG all over again.
>> >
>> > Can anyone tell me why this doesn't work?
>> >
>> > -----
>> > Craig Anthony
>> > Flash Developer
>> > http://www.blueion.com Blue Ion, LLC.
>> > --
>> > View this message in context:
>> >
>> http://www.nabble.com/Preloading-DAE-Material---Loading-Material-PRIOR-to-Loading-DAE-File--tp24761411p24761411.html
>> > Sent from the Papervision3D mailing list archive at Nabble.com.
>> >
>> >
>> > _______________________________________________
>> > Papervision3D mailing list
>> > Papervision3D at osflash.org
>> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>> >
>>
>>
>>
>>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Fri, 31 Jul 2009 12:14:52 -0700 (PDT)
>> From: UKLA <craig at blueion.com>
>> Subject: Re: [Papervision3D] Preloading DAE Material - Loading
>> Material PRIOR to Loading DAE File?
>> To: papervision3D at osflash.org
>> Message-ID: <24761720.post at talk.nabble.com>
>> Content-Type: text/plain; charset=us-ascii
>>
>>
>>
>> Mark,
>>
>> Good stuff. I didn't know that there was a way to track material loading
>> progress. When I did a search I must have been looking at older threads -
>> prior to those that apply to the latest revision.
>>
>> Your idea of passing the materialslist to the DAE seems like a great
>> solution. I am a control freak so I think that I will stick with my method
>> of preloading the PNG file - custom loading classes that I wrote
>> (specifically the "destroy" methods).
>>
>> Thanks. I'll give it a go and report back.
>>
>> Craig
>>
>>
>> nospam-32 wrote:
>> >
>> >
>> > Hmm, i thought you got ProgressEvents from the materials as they are
>> > loading, you should be able to handle the "preload" this way?
>> >
>> > additionally if you want to load if before hand, you can, just after you
>> > load it create a materialslist for your DAE and pass it in, when it
>> loads
>> > it should use your materialslist and not load the images in the DAE
>> file.
>> >
>> > HTH,
>> > mark
>> >
>> >
>>
>> -----
>> Craig Anthony
>> Flash Developer
>> http://www.blueion.com Blue Ion, LLC.
>> --
>> View this message in context:
>> http://www.nabble.com/Preloading-DAE-Material---Loading-Material-PRIOR-to-Loading-DAE-File--tp24761411p24761720.html
>> Sent from the Papervision3D mailing list archive at Nabble.com.
>>
>>
>>
>>
>> ------------------------------
>>
>> Message: 3
>> Date: Fri, 31 Jul 2009 17:29:48 -0300
>> From: Cau? Waneck <waneck at gmail.com>
>> Subject: [Papervision3D] DAE parser fix for ColladaMAX NextGen
>> To: papervision3d at osflash.org
>> Message-ID:
>> <fc6ff0da0907311329j7a6ca077q870d416962de34cf at mail.gmail.com>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> I was having some difficulties having the DAE parser read an animation
>> generated with ColladaMAX NextGen, and tracing through the problem, I
>> arrived at a null reference on DaeDocument.as
>>
>> var animNode:XML = getNodeById( animLib, ASCollada.DAE_ANIMATION_ELEMENT,
>> animation.id );
>>
>> animation.id was null in the case.
>> I got it fixed by changing this line to:
>>
>> if ( (animation.id == null) || (animation.id == "") )
>> var animNode:XML = getNode( animLib, ASCollada.DAE_ANIMATION_ELEMENT);
>> else
>> animNode = getNodeById( animLib, ASCollada.DAE_ANIMATION_ELEMENT,
>> animation.id );
>>
>> Now everything works fine.
>>
>> I don't think this fix will break anything, but I don't think so, as it
>> just
>> prevents from unexpected null referencing. So if you are having a hard
>> time
>> playing a DAE animation from ColladaMax NextGen, maybe this will help you
>> too.
>>
>> Cheers!
>> Caue
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <
>> http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090731/cccca901/attachment-0001.html
>> >
>>
>> ------------------------------
>>
>> Message: 4
>> Date: Fri, 31 Jul 2009 23:04:01 +0200
>> From: Paul Tondeur <paul at paultondeur.nl>
>> Subject: Re: [Papervision3D] DAE parser fix for ColladaMAX NextGen
>> To: papervision3d at osflash.org
>> Message-ID: <32AB7DFC-23C5-4860-A925-09F01E59D4DE at paultondeur.nl>
>> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed";
>> DelSp="yes"
>>
>> Hi Caue,
>>
>> There were indeed problems with the DAE parser in pv3d. However since
>> end May, Tim Knip refactured a lot of code and made it compatible with
>> ColladaMax Nextgen exported models, as well as Cinema4D exported
>> models and possible even more.
>>
>> More details about this can be found here:
>> http://techblog.floorplanner.com/2009/05/26/papervision3d-21-alpha/
>>
>> I've also faced the problems with animation nodes without an ID, or
>> nested animation nodes as with Cinema4D.
>>
>> If possible, you should update to the latest pv3d revision. It
>> includes many new features!
>>
>> Anyway, thanks for sharing the bugfix:-)
>>
>> Paul
>>
>> On Jul 31, 2009, at 10:29 PM, Cau? Waneck wrote:
>>
>> > I was having some difficulties having the DAE parser read an
>> > animation generated with ColladaMAX NextGen, and tracing through the
>> > problem, I arrived at a null reference on DaeDocument.as
>> >
>> > var animNode:XML = getNodeById( animLib,
>> > ASCollada.DAE_ANIMATION_ELEMENT, animation.id );
>> >
>> > animation.id was null in the case.
>> > I got it fixed by changing this line to:
>> >
>> > if ( (animation.id == null) || (animation.id == "") )
>> > var animNode:XML =
>> getNode( animLib,
>> > ASCollada.DAE_ANIMATION_ELEMENT);
>> > else
>> > animNode = getNodeById(
>> animLib,
>> > ASCollada.DAE_ANIMATION_ELEMENT, animation.id );
>> >
>> > Now everything works fine.
>> >
>> > I don't think this fix will break anything, but I don't think so, as
>> > it just prevents from unexpected null referencing. So if you are
>> > having a hard time playing a DAE animation from ColladaMax NextGen,
>> > maybe this will help you too.
>> >
>> > Cheers!
>> > Caue
>> > _______________________________________________
>> > Papervision3D mailing list
>> > Papervision3D at osflash.org
>> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <
>> http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090731/34c6cd7d/attachment-0001.html
>> >
>>
>> ------------------------------
>>
>> Message: 5
>> Date: Fri, 31 Jul 2009 21:33:42 +0000
>> From: jsremi at gmail.com
>> Subject: [Papervision3D] Updated COLLADA next gen exporters
>> To: papervision3d at osflash.org
>> Message-ID:
>> <
>> 658371015-1249076062-cardhu_decombobulator_blackberry.rim.net-1215808535- at bxe1276.bisx.prod.on.blackberry
>> >
>>
>> Content-Type: text/plain
>>
>> Available on www.opencollada.org
>>
>> Version 1.x has been posted for max and maya.
>>
>> Sent via BlackBerry by AT&T
>>
>>
>>
>> ------------------------------
>>
>> Message: 6
>> Date: Fri, 31 Jul 2009 15:55:52 -0700
>> From: Sherman Wellons <invite+ogvzvzff at facebookmail.com<invite%2Bogvzvzff at facebookmail.com>
>> >
>> Subject: [Papervision3D] Check out my photos on Facebook
>> To: Papervision3d <papervision3d at osflash.org>
>> Message-ID: <7af47c4f7f62f48e46e926cb04fab54c at localhost.localdomain>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Hi papervision3d at osflash.org,
>>
>> I set up a Facebook profile where I can post my pictures, videos and
>> events and I want to add you as a friend so you can see it. First, you need
>> to join Facebook! Once you join, you can also create your own profile.
>>
>> Thanks,
>> Sherman
>>
>> To sign up for Facebook, follow the link below:
>> http://www.facebook.com/p.php?i=1170533800&k=Z5D3X3P635XAUDBFVK2XSQ&r
>>
>>
>> papervision3d at osflash.org was invited to join Facebook by Sherman
>> Wellons. If you do not wish to receive this type of email from Facebook in
>> the future, please click on the link below to unsubscribe.
>> http://www.facebook.com/o.php?k=76f52a&u=666794425&mid=dd73a6G27be79b9G0G8
>> Facebook's offices are located at 1601 S. California Ave., Palo Alto, CA
>> 94304
>>
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <
>> http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090731/f6a51f3c/attachment.html
>> >
>>
>> ------------------------------
>>
>> _______________________________________________
>> Papervision3D mailing list
>> Papervision3D at osflash.org
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>
>>
>> End of Papervision3D Digest, Vol 34, Issue 100
>> **********************************************
>>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090803/538801b5/attachment-0001.html>
More information about the Papervision3D
mailing list