[Papervision3D] Papervision3D Digest, Vol 21, Issue 93

George Profenza orgicus at gmail.com
Mon Jun 16 02:38:09 PDT 2008


PV3D 2.0 shadermaterials errors on collada models.

Hi everybody.

I've been lurking in the list for some time now :)

I've recently moved to Great White and started experimented with the
materials. I go nuts after that Cell Shaded look.
The shadedmaterials work fine on primitives and actionscript objects (
exported with as3 geom exporter ) , but I run into trouble if I try to apply
them to
collada models. I get this error on the EnterFrame event:

Cannot access a property or method of a null object reference.
    at
org.papervision3d.materials.shadematerials::FlatShadeMaterial/drawTriangle()
    at org.papervision3d.core.render.command::RenderTriangle/render()
    at org.papervision3d.render::BasicRenderEngine/doRender()
    at org.papervision3d.render::BasicRenderEngine/renderScene()
    at ModelLoader/updateScene()

I don't know what happens to drawTriangle, but it doesn't seem to like
collada geometry.
In order to apply a shaded materials I create a materials list, add the
shaded material with the same name as the texture or material name in the
collada file ( in the library_materials node ).
Is this the right way to do it ? If not, what is the recomended way ?
So the main question is: How do I apply shaded materials to collada models ?

Also, since I've been playing with materials, I've tried baked materials.
I've got some nice results on the basic models. On more complex models (
more architectural models ) I've had some problems.
Some faces lacked the material and weren't properly sorted. I thought I
could fix that using the containerSortMode property but no result. I've
tried assigning integers / the constants ( although it's the same thing )
and nothing. In the docs, it says *Implementation*. Silly question: does
that mean this feature isn't implemented yet ?

I've also switched from Camera3D to FrustrumCamera3D and tweaked its values
and no luck.

The model was pretty lowpoly, so a friend that has way more experience with
3dsmax than I do suggested that I might get the faulty display because the
number of vertices is insufficient for the engine to map the texture
properly. He tweaked the model and managed to make it look better. The
question here is:
Is there a way to fix the face sorting for textured lowpoly models, or just
adding more vertices in the right spots is the only way to get around this ?

So it comes down to this:
1.How do I apply shaded materials to collada models without getting errors ?
2.Can I fix the face sorting for textured collada files from actionscript ?
If so, how ?

Thanks,
George



George Profenza
-------------
Student of all sorts
-------------
works: http://flash.quietroot.org/
experiments: http://flash.quietroot.org/labs
blog: http://tomaterial.blogspot.com/
-------------

On Mon, Jun 16, 2008 at 7:18 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: where to download PV3d-effects documentation? (Trevor Burton)
>   2. Re: Wanted: Papervision Pioneers (Tyler Kocheran)
>   3. how to get camera's positions? (John Kim)
>   4. Re: how to get camera's positions? (Trevor Burton)
>   5. Re: Wanted: Papervision Pioneers (Joshua Mostafa)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 16 Jun 2008 06:08:46 +0100
> From: "Trevor Burton" <worldofpaper at googlemail.com>
> Subject: Re: [Papervision3D] where to download PV3d-effects
>        documentation?
> To: papervision3d at osflash.org
> Cc: bigjkim at yahoo.com
> Message-ID:
>        <bc985a00806152208w2881aac8i4d708bae2bee6ca1 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> effects stuff has been rolled into GW already - so use Great White....
>
> On Mon, Jun 16, 2008 at 5:11 AM, Joshua Mostafa <micapam at gmail.com> wrote:
>
> > Regarding the doco - I think the Flashbookmarks one is the only one
> > available on the web.
> >
> > You could always build yourself a copy with asdoc.
> >
> > If I understand correctly (other more informed folks please feel free to
> > correct me), the features in Effects will be backported into Great White
> > before PV3D 2.0 goes beta (Great White is in alpha stage right now).
> >
> > It is not possible to use both Great White and Effects. You could
> probably
> > hack up your own bastard brew that combines the bits you want from each,
> but
> > you'd need to put in a lot of work!
> >
> > J
> >
> >
> >
> > 2008/6/16 John Kim <bigjkim at yahoo.com>:
> >
> > hi where can i find the offline version of the pv3d-effects doc ?
> >>
> >> i only foundthe flashbookmarks.com one.
> >>
> >> also what is the difference from Great White? does effects branch
> contain
> >> all the core functions of the great white branch ?
> >>
> >> i found that effects do not have the Stars feature. is it possible to
> use
> >> both great white and effects ?
> >>
> >> thanks!
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> Papervision3D mailing list
> >> Papervision3D at osflash.org
> >> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >>
> >
> >
> >
> > --
> >
> > Joshua Mostafa
> > micapam at gmail.com
> > +61 405563633
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
> >
>
>
> --
> Trevor Burton
> http://www.paperworld3d.com
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080616/31dab1d7/attachment-0001.html
>
> ------------------------------
>
> Message: 2
> Date: Sun, 15 Jun 2008 22:13:02 -0700
> From: "Tyler Kocheran" <rfkrocktk at gmail.com>
> Subject: Re: [Papervision3D] Wanted: Papervision Pioneers
> To: papervision3d at osflash.org
> Message-ID:
>        <82ec4e440806152213m35ba7d80kc533a357f3fdc8b4 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I'll bet. I had to learn AS3 the hard way through a month of
> working/devouring books for 10-12 hours a day, then jetting over to my
> fiancee's house to hang out until 3 in the morning then driving home,
> waking
> up, and doing it all over again. At this current time, I'm finding myself
> more fascinated with the prospects of Red5 and Java, though I'm pretty
> equally fascinated with learning Papervision. It's just that I can't do
> everything... anyways, I digress.
> I can only imagine how often and how many times devs have gotten screwed by
> design firms, but luckily for us, we're doing everything in house and we're
> not a design firm. I'm actually enjoying reading the horror stories so I
> could know what it's like to be under a psychotic project manager, cause
> that would be exciting!!! Not.
> My last boss (around a year ago) was nothing short of a lunatic, and had no
> grasp of what technology was... yet still conscripted me into designing him
> a website in AS2 for less than minimum wage. He hardly listened to anything
> I had to say and just expected results. After that, he completely changed
> my
> job description and basically told me to make phone calls to his long-lost
> friends and manage their email addresses and phone numbers. (Isn't that why
> they invented Excel?) Even a long time after I left, two months ago
> nonetheless, he called me asking me to come and help them with
> something!!!?!? All in all, I think we've all had our fair share of crappy
> jobs.
>
>  - TK
>
> On Sun, Jun 15, 2008 at 8:05 PM, John Grden <neoriley at gmail.com> wrote:
>
> > Yeah no worries Tyler, like I said, it's not personally at you, and I
> think
> > the other guys in the room who heard that call who weren't married were
> > equally appalled - it was an unbelievable moment to say the least ;)
> >
> >
> > On Sun, Jun 15, 2008 at 3:58 PM, Tyler Kocheran <rfkrocktk at gmail.com>
> > wrote:
> >
> >> John
> >> Understood. I totally agree: I have a wife and if a company told me
> >> 'it would be better if you weren't married' I'd quit!
> >> It would be awesome to find a dev to help us out, especially since I'm
> >> trying to learn Java and Red5 and study design patterns... I'm going
> >> to overload my brain with all this stuff.
> >> - TK
> >>
> >> On 6/15/08, John Grden <neoriley at gmail.com> wrote:
> >> > it is a nightmare to find good as3 devs.  when I was in LA, I
> >> interviewed
> >> > everyone under a rock that I could find and I could only point to a
> >> handful
> >> > that were actually good enough to consider hiring.  out of that hired
> >> > handful, only 3 panned out to be truly good at it.  and that's in Los
> >> > Angeles/Hollywood area - you'd think they'd be around there, but nada.
> >> >
> >> > yeah it's hard everywhere.
> >> >
> >> > On Sun, Jun 15, 2008 at 5:07 AM, Tarwin Stroh-Spijer <
> tarwin at gmail.com>
> >> > wrote:
> >> >
> >> >> I have no idea why everyone seems so down in this guy for posting.
> You
> >> >> should all be happy that someone wants to pay for your work. It
> wasn't
> >> off
> >> >> topic was it?!
> >> >>
> >> >> As for putting it on the jobs listing, I had no idea it was there
> >> either,
> >> >> and this being pushed to me via email was not a bad thing.
> >> >>
> >> >> I know how hard it is to find good AS3 devs, they're either really
> >> >> inexperienced or already hired - this is in Melbourne, Australia. I'm
> >> sure
> >> >> it's probably like this everywhere as well.
> >> >>
> >> >> Regards,
> >> >>
> >> >> Tarwin
> >> >>
> >> >> _______________________________________________
> >> >> Papervision3D mailing list
> >> >> Papervision3D at osflash.org
> >> >> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >> >>
> >> >>
> >> >
> >> >
> >> > --
> >> > [ JPG ]
> >> >
> >>
> >> --
> >> Sent from Gmail for mobile | mobile.google.com
> >>
> >> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> >> And do this, knowing the time, that now it is high time to awake out of
> >> sleep;
> >> for now our salvation is nearer than when we first believed.
> >>
> >> _______________________________________________
> >> Papervision3D mailing list
> >> Papervision3D at osflash.org
> >> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >>
> >
> >
> >
> > --
> > [ JPG ]
> >
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
> >
>
>
> --
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> And do this, knowing the time, that now it is high time to awake out of
> sleep;
> for now our salvation is nearer than when we first believed.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080615/b75ef27c/attachment-0001.html
>
> ------------------------------
>
> Message: 3
> Date: Sun, 15 Jun 2008 23:04:29 -0700 (PDT)
> From: John Kim <bigjkim at yahoo.com>
> Subject: [Papervision3D] how to get camera's positions?
> To: p3d <papervision3d at osflash.org>
> Message-ID: <957469.26627.qm at web38408.mail.mud.yahoo.com>
> Content-Type: text/plain; charset=us-ascii
>
> i've looked at the docs, but could not find some way to do the following
>
> camera.x() camera.y()
>
> those are only for setting the coordinates of camera. however i was
> wondering how i can get the xyz of the camera when its moving about ?
>
>
>
>
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 16 Jun 2008 07:15:27 +0100
> From: "Trevor Burton" <worldofpaper at googlemail.com>
> Subject: Re: [Papervision3D] how to get camera's positions?
> To: bigjkim at yahoo.com, papervision3d at osflash.org
> Message-ID:
>        <bc985a00806152315la35bd13ud596885a60dfd2d7 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> camera.x
> camera.y
> camera.z
>
> the cameras extend DisplayObject3D so you have the co-ordinates the same as
> for any other object in a scene
>
> On Mon, Jun 16, 2008 at 7:04 AM, John Kim <bigjkim at yahoo.com> wrote:
>
> > i've looked at the docs, but could not find some way to do the following
> >
> > camera.x() camera.y()
> >
> > those are only for setting the coordinates of camera. however i was
> > wondering how i can get the xyz of the camera when its moving about ?
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
>
>
>
> --
> Trevor Burton
> http://www.paperworld3d.com
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080616/d6b39c16/attachment-0001.html
>
> ------------------------------
>
> Message: 5
> Date: Mon, 16 Jun 2008 16:18:14 +1000
> From: "Joshua Mostafa" <micapam at gmail.com>
> Subject: Re: [Papervision3D] Wanted: Papervision Pioneers
> To: papervision3d at osflash.org
> Message-ID:
>        <94444ed30806152318r1931a3den67e668e11b200a3c at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I learned AS3 on the job. This wasn't as bad for my (then) employer as it
> sounds ... knowing some other programming languages (Java, PHP, Perl) meant
> most of the new features were familiar, perhaps in slightly other guises.
> Mostly I bemoaned things that weren't implemented (method overloading, for
> instance). The things  that were genuinely new to me (like E4X) I just
> learned as I needed.
>
> To be honest I've found the learning curve steeper getting into 3D than the
> jump from AS2 to AS3.
>
> As far as crappy jobs go - nowadays I tend to approach interviews as a
> customer rather than an applicant. If you know you're good, and you're
> ready
> to walk away if you don't get what you want (that goes for the actual job
> as
> well as the interview), you always have the upper hand. That's easy for me
> to say where I'm living (Sydney, Australia) - it's hard to find proper AS3
> programmers. I guess it just depends on the job market (quality developers
> versus positions) in each person's part of the world.
>
> I've done my long hours and now - I simply refuse. If an employer won't
> accept that, there are others that will. Luckily for me, they can't say the
> same thing about job seekers - the cowboy to skilled dev ratio is
> ridiculous.
>
>
>
>
>
> 2008/6/16 Tyler Kocheran <rfkrocktk at gmail.com>:
>
> > I'll bet. I had to learn AS3 the hard way through a month of
> > working/devouring books for 10-12 hours a day, then jetting over to my
> > fiancee's house to hang out until 3 in the morning then driving home,
> waking
> > up, and doing it all over again. At this current time, I'm finding myself
> > more fascinated with the prospects of Red5 and Java, though I'm pretty
> > equally fascinated with learning Papervision. It's just that I can't do
> > everything... anyways, I digress.
> > I can only imagine how often and how many times devs have gotten screwed
> by
> > design firms, but luckily for us, we're doing everything in house and
> we're
> > not a design firm. I'm actually enjoying reading the horror stories so I
> > could know what it's like to be under a psychotic project manager, cause
> > that would be exciting!!! Not.
> > My last boss (around a year ago) was nothing short of a lunatic, and had
> no
> > grasp of what technology was... yet still conscripted me into designing
> him
> > a website in AS2 for less than minimum wage. He hardly listened to
> anything
> > I had to say and just expected results. After that, he completely changed
> my
> > job description and basically told me to make phone calls to his
> long-lost
> > friends and manage their email addresses and phone numbers. (Isn't that
> why
> > they invented Excel?) Even a long time after I left, two months ago
> > nonetheless, he called me asking me to come and help them with
> > something!!!?!? All in all, I think we've all had our fair share of
> crappy
> > jobs.
> >
> >  - TK
> >
> >
> > On Sun, Jun 15, 2008 at 8:05 PM, John Grden <neoriley at gmail.com> wrote:
> >
> >> Yeah no worries Tyler, like I said, it's not personally at you, and I
> >> think the other guys in the room who heard that call who weren't married
> >> were equally appalled - it was an unbelievable moment to say the least
> ;)
> >>
> >>
> >> On Sun, Jun 15, 2008 at 3:58 PM, Tyler Kocheran <rfkrocktk at gmail.com>
> >> wrote:
> >>
> >>> John
> >>> Understood. I totally agree: I have a wife and if a company told me
> >>> 'it would be better if you weren't married' I'd quit!
> >>> It would be awesome to find a dev to help us out, especially since I'm
> >>> trying to learn Java and Red5 and study design patterns... I'm going
> >>> to overload my brain with all this stuff.
> >>> - TK
> >>>
> >>> On 6/15/08, John Grden <neoriley at gmail.com> wrote:
> >>> > it is a nightmare to find good as3 devs.  when I was in LA, I
> >>> interviewed
> >>> > everyone under a rock that I could find and I could only point to a
> >>> handful
> >>> > that were actually good enough to consider hiring.  out of that hired
> >>> > handful, only 3 panned out to be truly good at it.  and that's in Los
> >>> > Angeles/Hollywood area - you'd think they'd be around there, but
> nada.
> >>> >
> >>> > yeah it's hard everywhere.
> >>> >
> >>> > On Sun, Jun 15, 2008 at 5:07 AM, Tarwin Stroh-Spijer <
> tarwin at gmail.com
> >>> >
> >>> > wrote:
> >>> >
> >>> >> I have no idea why everyone seems so down in this guy for posting.
> You
> >>> >> should all be happy that someone wants to pay for your work. It
> wasn't
> >>> off
> >>> >> topic was it?!
> >>> >>
> >>> >> As for putting it on the jobs listing, I had no idea it was there
> >>> either,
> >>> >> and this being pushed to me via email was not a bad thing.
> >>> >>
> >>> >> I know how hard it is to find good AS3 devs, they're either really
> >>> >> inexperienced or already hired - this is in Melbourne, Australia.
> I'm
> >>> sure
> >>> >> it's probably like this everywhere as well.
> >>> >>
> >>> >> Regards,
> >>> >>
> >>> >> Tarwin
> >>> >>
> >>> >> _______________________________________________
> >>> >> Papervision3D mailing list
> >>> >> Papervision3D at osflash.org
> >>> >> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >>> >>
> >>> >>
> >>> >
> >>> >
> >>> > --
> >>> > [ JPG ]
> >>> >
> >>>
> >>> --
> >>> Sent from Gmail for mobile | mobile.google.com
> >>>
> >>> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> >>> And do this, knowing the time, that now it is high time to awake out of
> >>> sleep;
> >>> for now our salvation is nearer than when we first believed.
> >>>
> >>> _______________________________________________
> >>> Papervision3D mailing list
> >>> Papervision3D at osflash.org
> >>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >>>
> >>
> >>
> >>
> >> --
> >> [ JPG ]
> >>
> >> _______________________________________________
> >> Papervision3D mailing list
> >> Papervision3D at osflash.org
> >> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >>
> >>
> >
> >
> > --
> > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> > And do this, knowing the time, that now it is high time to awake out of
> > sleep;
> > for now our salvation is nearer than when we first believed.
> >
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
> >
>
>
> --
>
> Joshua Mostafa
> micapam at gmail.com
> +61 405563633
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080616/342e72a8/attachment.html
>
> ------------------------------
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
> End of Papervision3D Digest, Vol 21, Issue 93
> *********************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080616/c68fb595/attachment-0001.html 


More information about the Papervision3D mailing list