[Papervision3D] 5. Applying BlendMode to a single material? (SONB) - Vol 11, Issue 222

SONB sonbsz at googlemail.com
Sun Sep 2 18:20:21 PDT 2007


Hi Andy, it works! Thanx a lot!!!


SONB


Andy Zupko wrote:
> 
> MovieMaterial extends BitmapMaterial - the drawFace3D method is there. 
> You
> could either override it in the MovieMaterial class to handle your custom
> shading, make the change in the BitmapMaterial class, or create a new
> material which extends MovieMaterial with its own drawFace3d override (if
> you don't want to touch MovieMaterial).
> 
> Hope that helps!
> 
> -andy
> 
> -----Original Message-----
> From: papervision3d-bounces at osflash.org
> [mailto:papervision3d-bounces at osflash.org] On Behalf Of SONB
> Sent: Sunday, September 02, 2007 5:24 PM
> To: papervision3D at osflash.org
> Subject: Re: [Papervision3D] 5. Applying BlendMode to a single material?
> (SONB) - Vol 11, Issue 222
> 
> 
> Thanx a lot Emil! Your material was a great help for me.
> 
> Is it possible to merge ShadowColorMaterial and MovieMaterial too? That
> would be great.
> I tried to do it myself but there is no drawFace3D in MovieMaterial...
> 
> Could you help me with it? Or someone else?
> 
> 
> Thank you in advance!
> 
> 
> SONB
> 
> 
> 
> Emil Korngold wrote:
>> 
>>  
>>  
>>  
>> Hi SONB,
>>  
>> Attached you'll find a quick hack material I'm currently using for a
>> project.
>> I've merged ShadedColorMaterial and BitmapFileMaterial so you won't need
>> the extra plane and blendmode.
>> You'll probably have to optimize.
>>  
>> Cheers,
>>  
>> Emil
>> 
>> 
>>> From: papervision3d-request at osflash.org> Subject: Papervision3D Digest,
>>> Vol 11, Issue 222> To: papervision3d at osflash.org> Date: Fri, 31 Aug 2007
>>> 21:25:56 -0700> > 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.
>>> D3S_Importer_Library.zip (Philippe Ajoux) (Rafeo)> 2. Re : My game
>>> engine
>>> demo (Bazoge Didier)> 3. Re: ShadedColorMaterial and CompositeMaterial?
>>> (Andrew Dinmore)> 4. Re : D3S_Importer_Library.zip (Philippe Ajoux)
>>> (Bazoge Didier)> 5. Applying BlendMode to a single material? (SONB)> 6.
>>> Re: Put iphone in flash with papervision3D (Luis Eduardo)> 7. Re: Re :
>>> My
>>> game engine demo (John Grden)> > >
>>> ---------------------------------------------------------------------->
>>> >
>>> Message: 1> Date: Fri, 31 Aug 2007 17:06:08 -0700 (PDT)> From: Rafeo
>>> <rafa.rafeo at gmail.com>> Subject: [Papervision3D]
>>> D3S_Importer_Library.zip
>>> (Philippe Ajoux)> To: papervision3D at osflash.org> Message-ID:
>>> <12435895.post at talk.nabble.com>> Content-Type: text/plain;
>>> charset=us-ascii> > > Ok, I back to try with md2 files, this time I'm
>>> trying with the > http://www.d3s.net/phil/pv3d/D3S_Importer_Library.zip
>>> Philippe Ajoux's> Library . > I opened again a blank AS3 Flash File and
>>> entered the Md2Test.as as Document> Class. In my publish settings I
>>> entered> C:\Flash\PaperVision\trunk\as3\trunk\src in the classpath list
>>> but I got> this error. (I'm using the revision #237). > I saw some
>>> really
>>> cool example made with this library at> http://www.zedaidai.com/blog/.>
>>> Thanks. :D .> > DisplayObject3D: null> DisplayObject3D: null> TypeError:
>>> Error #1007: Instantiation attempted on a non-constructor.> at
>>> Md2Test/::init3D()> at Md2Test$iinit()> -- > View this message in
>>> context:
>>>
> http://www.nabble.com/D3S_Importer_Library.zip-%28Philippe-Ajoux%29-tf436303
> 6.html#a12435895>
>>> Sent from the Papervision3D mailing list archive at Nabble.com.> > > > >
>>> ------------------------------> > Message: 2> Date: Sat, 1 Sep 2007
>>> 00:56:04 +0000 (GMT)> From: Bazoge Didier <zedaidai at yahoo.fr>> Subject:
>>> [Papervision3D] Re : My game engine demo> To: papervision3d at osflash.org>
>>> Message-ID: <476381.32322.qm at web26312.mail.ukl.yahoo.com>> Content-Type:
>>> text/plain; charset="iso-8859-1"> > Thanks, > 280 tris for the
>>> summo-ninja . Maybe 200 for the ground. Mhm and maybe i'll had a face
>>> counter ^^> > ----- Message d'origine ----> De : Gabriel Putnam
>>> <araesmojo at yahoo.com>> ? : papervision3d at osflash.org> Envoy? le :
>>> Samedi,
>>> 1 Septembre 2007, 1h19mn 40s> Objet : [Papervision3D] My game engine
>>> demo> > Looks pretty decent, and the animation for the main character is
>>> fairly good. However, how many tris are you pushing in those two scenes,
>>> as on middle of the road hardware they run slow as mollasses for me. > >
>>> > > >
>>>
> ____________________________________________________________________________
> ________>
>>> Shape Yahoo! in your own image. Join our Network Research Panel today!
>>> http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 > > > >
>>> _______________________________________________> Papervision3D mailing
>>> list> Papervision3D at osflash.org>
>>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org> > > > > >
>>> > >
>>>
> ____________________________________________________________________________
> _
>>> > Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers
>>> Yahoo!
>>> Mail > -------------- next part --------------> An HTML attachment was
>>> scrubbed...> URL:
>>>
> http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070901/
> 7fe61664/attachment-0001.html
>>> > > ------------------------------> > Message: 3> Date: Sat, 1 Sep 2007
>>> 02:05:17 +0100> From: Andrew Dinmore <adinmore at hotmail.com>> Subject:
>>> Re:
>>> [Papervision3D] ShadedColorMaterial and> CompositeMaterial?> To:
>>> <papervision3d at osflash.org>> Message-ID:
>>> <BAY117-W2457D03E901557C3397BE8D8CF0 at phx.gbl>> Content-Type: text/plain;
>>> charset="iso-8859-1"> > The CompositeMaterial class isn't set to
>>> calculate face normals, needed for the strength calculation in
>>> ShadedColorMaterial, by default. You just need to set
>>> your_composite_material.needsFaceNormals to true after creating it.> > >
>>> > > Date: Fri, 31 Aug 2007 13:29:27 -0700> > From:
>>> sonbsz at googlemail.com>
>>> > To: papervision3D at osflash.org> > Subject: [Papervision3D]
>>> ShadedColorMaterial and CompositeMaterial?> > > > > > Hi everybody!> > >
>>> > I'm trying to use a ShadedColorMaterial in my CompositeMaterial, but
>>> it> > doesn't work. It is completely black, no matter which color I
>>> assign to the> > shaded material. It works fine when I put it on my
>>> display object directly> > but not in the CompositeMaterial, even if it
>>> is the only material in the> > CompositeMaterial.> > > > > > Any
>>> suggestions?> > > > SONB> > > > -- > > View this message in context:
>>>
> http://www.nabble.com/ShadedColorMaterial-and-CompositeMaterial--tf4344750.h
> tml#a12377912>
>>> > 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> >
>>> _________________________________________________________________> The
>>> next generation of MSN Hotmail has arrived - Windows Live Hotmail>
>>> http://www.newhotmail.co.uk> -------------- next part --------------> An
>>> HTML attachment was scrubbed...> URL:
>>>
> http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070901/
> 8ee7af51/attachment-0001.html
>>> > > ------------------------------> > Message: 4> Date: Sat, 1 Sep 2007
>>> 01:11:58 +0000 (GMT)> From: Bazoge Didier <zedaidai at yahoo.fr>> Subject:
>>> [Papervision3D] Re : D3S_Importer_Library.zip (Philippe> Ajoux)> To:
>>> papervision3d at osflash.org> Message-ID:
>>> <83768.49174.qm at web26306.mail.ukl.yahoo.com>> Content-Type: text/plain;
>>> charset="iso-8859-1"> > Here's the way to use md2 importer :> > //
>>> import
>>> ds3> import d3s.net.papervision3d.objects.Md2;> > public class ...> {>
>>> ...> ...> var ninja = new Md2(new BitmapFileMaterial("assets/map.jpg"),
>>> "assets/model.md2", 7, 7);> player.addChild(ninja, "skin");> > > That's
>>> all. Hope that helps> > > ----- Message d'origine ----> De : Rafeo
>>> <rafa.rafeo at gmail.com>> ? : papervision3D at osflash.org> Envoy? le :
>>> Samedi, 1 Septembre 2007, 2h06mn 08s> Objet : [Papervision3D]
>>> D3S_Importer_Library.zip (Philippe Ajoux)> > > Ok, I back to try with
>>> md2
>>> files, this time I'm trying with the >
>>> http://www.d3s.net/phil/pv3d/D3S_Importer_Library.zip Philippe Ajoux's>
>>> Library . > I opened again a blank AS3 Flash File and entered the
>>> Md2Test.as as Document> Class. In my publish settings I entered>
>>> C:\Flash\PaperVision\trunk\as3\trunk\src in the classpath list but I
>>> got>
>>> this error. (I'm using the revision #237). > I saw some really cool
>>> example made with this library at> http://www.zedaidai.com/blog/.>
>>> Thanks. :D .> > DisplayObject3D: null> DisplayObject3D: null> TypeError:
>>> Error #1007: Instantiation attempted on a non-constructor.> at
>>> Md2Test/::init3D()> at Md2Test$iinit()> -- > View this message in
>>> context:
>>>
> http://www.nabble.com/D3S_Importer_Library.zip-%28Philippe-Ajoux%29-tf436303
> 6.html#a12435895>
>>> 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> > > > > >
>>> > >
>>>
> ____________________________________________________________________________
> _
>>> > Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers
>>> Yahoo!
>>> Mail > -------------- next part --------------> An HTML attachment was
>>> scrubbed...> URL:
>>>
> http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070901/
> a8a7437b/attachment-0001.html
>>> > > ------------------------------> > Message: 5> Date: Fri, 31 Aug 2007
>>> 19:45:55 -0700 (PDT)> From: SONB <sonbsz at googlemail.com>> Subject:
>>> [Papervision3D] Applying BlendMode to a single material?> To:
>>> papervision3D at osflash.org> Message-ID: <12436882.post at talk.nabble.com>>
>>> Content-Type: text/plain; charset=us-ascii> > > Hi!> > Can I apply a
>>> BlendMode to a single material in a material list? I made a> material
>>> list with a texture and a shadedColorMaterial above it. Now I'd> like to
>>> set the shadedColorMaterial to MULTIPLY so that it can shade the>
>>> texture. I apply the material list to my plane. The texture should get>
>>> darker when turning away from the viewer.> > Or should I create an
>>> additional plane with the shadedColorMaterial and> apply the BlendMode
>>> to
>>> the plane? I tested this alternative and it works> fine.> > > > SONB> >
>>> -- > View this message in context:
>>>
> http://www.nabble.com/Applying-BlendMode-to-a-single-material--tf4363356.htm
> l#a12436882>
>>> Sent from the Papervision3D mailing list archive at Nabble.com.> > > > >
>>> ------------------------------> > Message: 6> Date: Sat, 1 Sep 2007
>>> 12:07:09 +0800> From: "Luis Eduardo" <eduardo3r at gmail.com>> Subject: Re:
>>> [Papervision3D] Put iphone in flash with papervision3D> To:
>>> papervision3d at osflash.org> Message-ID:>
>>> <7bb68c020708312107m70910ecdicd7d437ae4a0caef at mail.gmail.com>>
>>> Content-Type: text/plain; charset="iso-2022-jp"> > I get the error also
>>> on Firefox:> > TypeError: Error #1088: ????????????????????> at
>>> org.papervision3d.objects::Collada/::onComplete()> at>
>>>
> flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFun
> ction>
>>> ()> at flash.events::EventDispatcher/dispatchEvent()> at
>>> flash.net::URLLoader/flash.net:URLLoader::onComplete()> > - Luis>
>>> -------------- next part --------------> An HTML attachment was
>>> scrubbed...> URL:
>>>
> http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070901/
> 7a242c19/attachment-0001.html
>>> > > ------------------------------> > Message: 7> Date: Fri, 31 Aug 2007
>>> 23:25:52 -0500> From: "John Grden" <neoriley at gmail.com>> Subject: Re:
>>> [Papervision3D] Re : My game engine demo> To: papervision3d at osflash.org>
>>> Message-ID:>
>>> <814c1ea20708312125i5c5b0b0ck1753a7feb4e6712b at mail.gmail.com>>
>>> Content-Type: text/plain; charset="iso-8859-1"> > that rocks! I don't
>>> care what language its in> > On 8/31/07, Bazoge Didier
>>> <zedaidai at yahoo.fr> wrote:> >> > Thanks,> > 280 tris for the summo-ninja
>>> . Maybe 200 for the ground. Mhm and maybe> > i'll had a face counter ^^>
>>> >> > ----- Message d'origine ----> > De : Gabriel Putnam
>>> <araesmojo at yahoo.com>> > ? : papervision3d at osflash.org> > Envoy? le :
>>> Samedi, 1 Septembre 2007, 1h19mn 40s> > Objet : [Papervision3D] My game
>>> engine demo> >> > Looks pretty decent, and the animation for the main
>>> character is fairly> > good. However, how many tris are you pushing in
>>> those two scenes, as on> > middle of the road hardware they run slow as
>>> mollasses for me.> >> >> >> >> >> >
>>>
> ____________________________________________________________________________
> ________>
>>> > Shape Yahoo! in your own image. Join our Network Research Panel
>>> today!>
>>> > http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7> >> >> >>
>>> >
>>> _______________________________________________> > Papervision3D mailing
>>> list> > Papervision3D at osflash.org> >
>>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org> >> >> >
>>> ------------------------------> > Ne gardez plus qu'une seule adresse
>>> mail ! Copiez vos mails<http://www.trueswitch.com/yahoo-fr/>vers Yahoo!
>>> Mail> >> > _______________________________________________> >
>>> Papervision3D mailing list> > Papervision3D at osflash.org> >
>>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org> >> >> > >
>>> -- > [ JPG ]> -------------- next part --------------> An HTML
>>> attachment
>>> was scrubbed...> URL:
>>>
> http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20070831/
> 6fded63c/attachment.html
>>> > > ------------------------------> >
>>> _______________________________________________> Papervision3D mailing
>>> list> Papervision3D at osflash.org>
>>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org> > > End
>>> of
>>> Papervision3D Digest, Vol 11, Issue 222>
>>> **********************************************
>> _________________________________________________________________
>> Jouw nieuws en entertainment, vind je op MSN.nl!
>> http://nl.msn.com/
>>  
>> _______________________________________________
>> Papervision3D mailing list
>> Papervision3D at osflash.org
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Re%3A-5.-Applying-BlendMode-to-a-single-material--%28S
> ONB%29---Vol-11%2C-Issue-222-tf4363892.html#a12453568
> 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
> 
> 
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> 
> 

-- 
View this message in context: http://www.nabble.com/Re%3A-5.-Applying-BlendMode-to-a-single-material--%28SONB%29---Vol-11%2C-Issue-222-tf4363892.html#a12455203
Sent from the Papervision3D mailing list archive at Nabble.com.




More information about the Papervision3D mailing list