[Papervision3D] pv3d 2.0, real materials revisited

Roy Wiggins bungadunga at gmail.com
Thu Dec 20 16:54:38 PST 2007


How'd you make a perlin heightmap map to a sphere? I see where you're
mapping pixel values to points, but I'm not sure how it works:

var destPoint:Number = Math.max(heightTexture.getPixel(count % quality,
(count / (quality * quality + quality)) * quality) * .00000007 + .4, 0);

I once tried to translate pixels to radii, but concluded that it'd only work
properly for a torus because of how the seamless perlin noise connects to
itself.
On Dec 20, 2007 12:21 PM, Mr.doob <info at mrdoob.com> wrote:

>
> :D
>
> Yeah, it's on the fly. Using perlinNoise to generate random heightMaps for
> the sphere, and then it's just a matter of tween the values between them.
>
> I'm aware of the swfaddress thing.. it's a tricky thing, by now I have it
> only working on firefox :S
>
>
>
> Patrick Matte | BLITZ wrote:
> >
> > Nice! Also like the animation too! How did you do it? You tween the
> > shape's vertexes to values of different collada files? Or you do it all
> on
> > the fly ?
> >
> > Note: It seems your swfaddress deeplinking is broken in IE7.
> >
> >
> >
> >
> >
> > BLITZ | Patrick Matte - 310-551-0200 x214
> >
> > -----Original Message-----
> > From: papervision3d-bounces at osflash.org
> > [mailto:papervision3d-bounces at osflash.org] On Behalf Of Mr.doob
> > Sent: Thursday, December 20, 2007 11:13 AM
> > To: papervision3D at osflash.org
> > Subject: [Papervision3D] pv3d 2.0, real materials revisited
> >
> >
> > Hey guys,
> >
> > Just wanted to post some more examples so everyone has more code to take
> a
> > look in order to develop with pv3d 2.0.
> >
> > I've always wanted to explore a bit further the stuff that can be done
> > with
> > shaders, EnvMapMaterial, and well, you'll have to take a look on the
> > source
> > files to see how the refraction example was done :D
> >
> > http://mrdoob.com/#/62/
> > http://mrdoob.com/#/63/
> > http://mrdoob.com/#/64/
> >
> > Here you have a proper explanation for each one:
> > http://mrdoob.com/blog.php?postid=465
> >
> > Enjoy!
> >
> > --
> > Mr.doob
> > --
> > View this message in context:
> >
> http://www.nabble.com/pv3d-2.0%2C-real-materials-revisited-tp14443020p14443020.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
> >
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
> >
>
> --
> View this message in context: http://www.nabble.com/pv3d-2.0%2C-real-materials-revisited-tp14443020p14444298.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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20071220/4bb40527/attachment-0001.html 


More information about the Papervision3D mailing list