[Papervision3D] Patches for transparent clickthrough materials

jash eljashel at gmail.com
Wed May 28 02:06:21 PDT 2008


Hello,

my project is an isometric view of some space where all the stuff which is
placed in this space is rendered previously in an 3d modelling software and
the resulting bitmaps then are displayed on vertical planes. so for example
if you place a christmas tree in front of a cabinet or something, there will
be much transparent pixels at the top of the christmas tree where you can
see the cabinet behind but not click the cabinet because the event is thrown
by the transparent pixels of the christmas tree material. I can't make the
christmas tree not interactive, because it should be clickable and also the
cabinet should be clickable. the problem is even worse if there is a small
object completely behind the transparent parts of the object in front. You
can see it, but never select it.

I attached a little graphics, so the problem is more obvious.

http://www.nabble.com/file/p17508214/clickthrough.png clickthrough.png 



Mike Pearce wrote:
> 
> Just a guess,
> 
> But if you know which items are transparent then can you make the material
> of those objects interactive property false?
> 
> Then when they become active, set the interactive prop back to true?
> 
> No tests done, just a guess.
> 
> Mike
> 
> -----Original Message-----
> From: papervision3d-bounces at osflash.org
> [mailto:papervision3d-bounces at osflash.org] On Behalf Of jash
> Sent: Wednesday, May 28, 2008 6:00 AM
> To: papervision3D at osflash.org
> Subject: [Papervision3D] Patches for transparent clickthrough materials
> 
> 
> hello
> 
> I don't know if i'm at the right place with this. atm i'm working on a
> little project which needs semi transparent materials to be
> clickthroughable, that means if you click on a face with the material and
> the material is transparent it won't be selected at any hitTests.
> 
> i started working with papervision a few days ago so i don't know, if
> there
> is any way to achieve that, without patching the library. but i didn't
> find
> anything in the net and the patch is small and it works for my project. 
> 
> maybe someone could take a look at it. maybe it's general enough to be
> added
> to the source? 
> 
> thanks for this great engine!
> 
> bye
> jash
> 
> http://www.nabble.com/file/p17498712/org.papervision3d.core.proto.MaterialOb
> ject.patch
> org.papervision3d.core.proto.MaterialObject.patch 
> http://www.nabble.com/file/p17498712/org.papervision3d.core.render.command.R
> enderTriangle.patch
> org.papervision3d.core.render.command.RenderTriangle.patch 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Patches-for-transparent-clickthrough-materials-tp17498
> 712p17498712.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
> 
> No virus found in this incoming message.
> Checked by AVG. 
> Version: 7.5.524 / Virus Database: 269.24.1/1468 - Release Date: 5/26/2008
> 3:23 PM
>  
> 
> No virus found in this outgoing message.
> Checked by AVG. 
> Version: 7.5.524 / Virus Database: 269.24.1/1468 - Release Date: 5/26/2008
> 3:23 PM
>  
> 
> 
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> 
> 

-- 
View this message in context: http://www.nabble.com/Patches-for-transparent-clickthrough-materials-tp17498712p17508214.html
Sent from the Papervision3D mailing list archive at Nabble.com.




More information about the Papervision3D mailing list