Search  
Search Options

HELP NEEDED W/CREATING PAPERVISION3D EFFECT!!!

HomeForumsHelp NeededHelp needed w/creating papervision3d effect!!!
Default-profile jennicandance
44 posts

Hi,

I’m trying to figure out how to create a simple opening brochure effect (no page flip, or anything that fancy) using papervision3d. I have attained some AS that allows me to turn the page, but I can’t figure out how to:

a) create a back page that changes

b) have the pages open opposite ways (like a trifold)

if anyone can help me w/this it would be greatly appreciated.

http://pastie.caboo.se/198270

Posted about 1 month ago
3113 geoken
349 posts
Author was featured Sold between 1 000 and 5 000 dollars

a) not sure what you mean.

b) you just need to rotate/move the plane in the opposite direction (ie. rotationY = -180 …...rest of tween)

Posted about 1 month ago
Default-profile jennicandance
44 posts

For a) I mean instead of having “back” be the same everytime, I would like it be a different image. I’ve tried messing w/the section that says:

var brochureItem:Object = [ { id: ‘page1’ }, { id: ‘page2’ }, { id: ‘page3’ }, { id: ‘page4’ }, { id: ‘page5’ } ];

And then adding a part that would essentially be the exact same for the opposite facing pages. I hope this make sense. Every time I try and mess w/this I get an error… not sure why.

Posted about 1 month ago
22362 theflyingtinman
224 posts
Protecting flashden against copyright violations Sold between 1 and 100 dollars
Hi,

I’m trying to figure out how to create a simple opening brochure effect (no page flip, or anything that fancy) using papervision3d. I have attained some AS that allows me to turn the page, but I can’t figure out how to:

a) create a back page that changes

Well you’ve only defined the back plane of each page to use a single bitmapAssetMaterial ( ‘back’ ) If you want the back planes to be different for each page (like the front planes) you’ll have to set up 5 different bitmaps in an array (like the fronts planes: back1, back2, etc. )

b) have the pages open opposite ways (like a trifold)

Instead of rotating the page planes directly you could make each page the child of a zero sized “pivot” object with the pages you want to rotate normally attached on the right of the “pivot” object. The pages you want to rotate the opposite way you would attach on the left of the “pivot” object and then shift the “pivot” object (with page attached) right by the size of the page so the pages line up again. Then jsut apply you rotation tween to the pivots instead of the page planes.

Posted about 1 month ago
22362 theflyingtinman
224 posts
Protecting flashden against copyright violations Sold between 1 and 100 dollars
For a) I mean instead of having “back” be the same everytime, I would like it be a different image. I’ve tried messing w/the section that says:

var brochureItem:Object = [ { id: ‘page1’ }, { id: ‘page2’ }, { id: ‘page3’ }, { id: ‘page4’ }, { id: ‘page5’ } ];

And then adding a part that would essentially be the exact same for the opposite facing pages. I hope this make sense. Every time I try and mess w/this I get an error… not sure why.

I guess I was busy replying while you were writing this. So I see you;ve already tried what I suggested. What error message did you get?

Posted about 1 month ago
22362 theflyingtinman
224 posts
Protecting flashden against copyright violations Sold between 1 and 100 dollars

For the different backsides add this :


    var brochureBack: Object = [
                                 { id: 'back1' },
                                 { id: 'back2' },
                                 { id: 'back3' },
                                 { id: 'back4' },
                                 { id: 'back5' },
                                 ];

Then change :
        backMat = new BitmapAssetMaterial( "back" );
to
        backMat = new BitmapAssetMaterial( this.brochureBack[i].id );

Of course you will actually have to import the new back page symbols and export for actionscript with the correct linkage names, the same as the front pages.

The only thing is this will put reversed images on the back planes – you will have to use a matrix to reverse the bitmap data – or simply create reverse them in photoshop before importing them.

Here is a working demo I made

Here is the fla file with the new bitmaps and linkages defined for you to copy.

I maYou can find a working version

I don’t have time to do the pivot thing at the moment

Posted about 1 month ago
Default-profile jennicandance
44 posts

I get this error:

TypeError: Error #1010: A term is undefined and has no properties. at Brochure_fla::MainTimeline/createPage() at Brochure_fla::MainTimeline/brochureExample() at Brochure_fla::MainTimeline/frame1()

When I do something like this:

http://pastie.caboo.se/198370

The thing I’m really don’t know is what do with line 61:

for ( var i:uint=0; i

what do I change this to? Thanks for getting back to me so quickly!

Posted about 1 month ago
Default-profile jennicandance
44 posts

We must have been posting at the same time… I love you, you’re my new best friend :)

Posted about 1 month ago
Default-profile jennicandance
44 posts

BTW , if I wanted to get some training and what not w/papervision3D, is there somewhere you could recommend other than all the random blog tuts online? Or is that pretty much what I’m looking at.

Posted about 1 month ago
22362 theflyingtinman
224 posts
Protecting flashden against copyright violations Sold between 1 and 100 dollars
I get this error:

TypeError: Error #1010: A term is undefined and has no properties. at Brochure_fla::MainTimeline/createPage() at Brochure_fla::MainTimeline/brochureExample() at Brochure_fla::MainTimeline/frame1()

When I do something like this:

http://pastie.caboo.se/198370

The thing I’m really don’t know is what do with line 61:

for ( var i:uint=0; i what do I change this to? Thanks for getting back to me so quickly!

See my answer above about exporting for actionscript and linkage names.

You don’t need to change line 61 provided you always ahve the same number of back pages as front pages (the arrays will be the same length)

Posted about 1 month ago