hey fabrice ... my testing loader code is this:
public function Rdy()
{
var loader:BulkLoader =
BulkLoader.createUniqueNamedLoader();
loader.add("images/aw_0.jpg");
loader.addEventListener(BulkLoader.PROGRESS, loading);
loader.addEventListener(BulkLoader.COMPLETE, loaded);
loader.start();
}
function loading(e:Event):void
{
var loader:BulkLoader = e.currentTarget as BulkLoader;
trace(loader.percentLoaded);
}
private function loaded(e:Event):void
{
addEventListener(Event.ADDED_TO_STAGE, init);
}
.......
and here follows the standard as code from prefab, but after the image
is loaded, the 3d things dont show up. why?
do u have a simple example for me how it should work? i hoped for the
caching thing, so that all pix are loaded into the cache and i just
start rendering when all loading is done, but as you see above it
doesnt work :-/
On 19 Okt., 10:59, Fabrice3D <[email protected]> wrote:
> awd doesn't embed the sources
>
> you could alter the awdata parser where materials are generted, instead, pass
> them to your custom loader
>
> var matBitmap:BitmapFileMaterial = new BitmapFileMaterial(resolvedP+line)
>
> or easyer, add a feed to your bulk loader in centralLibrary class.
> onLoadedComplete, start rendering
>
> also, loading all images then fire the awd as you do now should work as well,
> since urls/sources should be cached
>
> Fabrice
>
> On Oct 19, 2010, at 10:48 AM, Michael Iv wrote:
>
> > If your textures are embedded (and that is the case with prefab as far as I
> > know) they are not loaded but compiled Into the executable (aka SWF) .So in
> > this case I don't understand why would you need BulkLoader at all?
>
> > On Tue, Oct 19, 2010 at 10:45 AM, le_unam <[email protected]> wrote:
> > okayright, but when creating my project with prefab, it works
> > with .awd-file and the texture links are embedded there, arent they? i
> > cant find any path in my .as-file :-/
>
> > On 19 Okt., 10:22, Michael Iv <[email protected]> wrote:
> > > After you have finished loading any assets into Away3D the engine doesn't
> > > care about its URL anymore but expects the data.What I mean is that if you
> > > have got a BitmapMaterial that you need to connect with a texture that you
> > > loaded with BulkLoader so you just take the loaded texture , and pass its
> > > bitmapdata into your BitmapMaterial . This is it .
>
> > > On Tue, Oct 19, 2010 at 10:18 AM, le_unam <[email protected]> wrote:
> > > > hey, now i know how the bulkloader works and it works fine, but for
> > > > away3d i need some information please. when i added the images
> > > > (textures) to the bulkloader and the load is complete are they
> > > > available for away3d, too? Or do i have to change the path, where away
> > > > can find the textures now? ive read things about getContent and
> > > > something like this, after the bulkloader loaded the files, but this
> > > > would say the path to the images is incorrect right? would be really
> > > > nice if you can help me. i think you did things like this more than
> > > > one time :)
>
> > > > On 18 Okt., 14:25, le_unam <[email protected]> wrote:
> > > > > kk thanks ;-)
>
> > > > > On 18 Okt., 13:49, Michael Iv <[email protected]> wrote:
>
> > > > > > Man ,now you are talking about general programming methodology . I
> > > > suggest
> > > > > > you to serf blogs and forums on these subjects
>
> > > > > > On Mon, Oct 18, 2010 at 1:42 PM, le_unam <[email protected]> wrote:
> > > > > > > do i add the bulkloader code to the as-file coming out of prefab
> > > > > > > or
> > > > do
> > > > > > > i create an own swf for loading with bulk which loads the 3d swf?
>
> > > > > > > i have downloaded the source of bulkloader, but how to implement
> > > > > > > it
> > > > > > > into flash? i dont understand this
> > > > :((((((((((((((((((((((((((((((((((
>
> > > > > > > On 18 Okt., 12:58, Michael Iv <[email protected]> wrote:
> > > > > > > > You may use open source BulkLoader (see gogle code) powerful lib
> > > > for
> > > > > > > > managing multiple loads
>
> > > > > > > > On Mon, Oct 18, 2010 at 12:49 PM, le_unam <[email protected]>
> > > > wrote:
> > > > > > > > > what does bulk load mean? never heard about it = /
>
> > > > > > > > > On 18 Okt., 12:34, Fabrice3D <[email protected]> wrote:
> > > > > > > > > > Just bulk load the images, once loaded you init the awd file
>
> > > > > > > > > > Fabrice
>
> > > > > > > > > > On Oct 18, 2010, at 11:48 AM, le_unam wrote:
>
> > > > > > > > > > > Hey, i have finished my first bsp project and now i want
> > > > > > > > > > > to
> > > > create
> > > > > > > a
> > > > > > > > > > > preloader cause it is not really nice, if the user has a
> > > > white
> > > > > > > screen
> > > > > > > > > > > first and the textures show up step by step. so how to do
> > > > > > > > > > > a
> > > > > > > preloader
> > > > > > > > > > > when created a project with prefab? any tipps?
>
> > > > > > > > --
> > > > > > > > Michael Ivanov ,Programmer
> > > > > > > > Neurotech Solutions Ltd.
> > > > > > > > Flex|Air
> > > > > > > |3D|Unity|www.neurotechresearch.comhttp://blog.alladvanced.nethttp://
> > > > > > >www.meetup.com/GO3D-Games-Opensource-3D/
> > > > > > > > Tel:054-4962254
> > > > > > > > [email protected]
> > > > > > > > [email protected]
>
> > > > > > --
> > > > > > Michael Ivanov ,Programmer
> > > > > > Neurotech Solutions Ltd.
> > > > > > Flex|Air
> > > > |3D|Unity|www.neurotechresearch.comhttp://blog.alladvanced.nethttp://www.meetup...
> > > > > > Tel:054-4962254
> > > > > > [email protected]
> > > > > > [email protected]
>
> > > --
> > > Michael Ivanov ,Programmer
> > > Neurotech Solutions Ltd.
> > > Flex|Air
> > > |3D|Unity|www.neurotechresearch.comhttp://blog.alladvanced.nethttp://www.meetup...
> > > Tel:054-4962254
> > > [email protected]
> > > [email protected]
>
> > --
> > Michael Ivanov ,Programmer
> > Neurotech Solutions Ltd.
> > Flex|Air |3D|Unity|
> >www.neurotechresearch.com
> >http://blog.alladvanced.net
> >http://www.meetup.com/GO3D-Games-Opensource-3D/
> > Tel:054-4962254
> > [email protected]
> > [email protected]