mrdoob / three.js

JavaScript 3D Library.
https://threejs.org/
MIT License
102.58k stars 35.36k forks source link

We need some javascript noise functions for geometry displacement, etc. #1946

Closed unicomp21 closed 12 years ago

unicomp21 commented 12 years ago

https://github.com/unicomp21/perlin-noise.js

mrdoob commented 12 years ago

http://mrdoob.github.com/three.js/examples/canvas_geometry_terrain.html http://mrdoob.github.com/three.js/examples/webgl_geometry_terrain.html http://mrdoob.github.com/three.js/examples/js/ImprovedNoise.js

unicomp21 commented 12 years ago

How do I handle textured quad patches w/o getting seams in three.js?

On Sat, May 19, 2012 at 7:12 AM, Mr.doob < reply@reply.github.com

wrote:

http://mrdoob.github.com/three.js/examples/canvas_geometry_terrain.html http://mrdoob.github.com/three.js/examples/webgl_geometry_terrain.html http://mrdoob.github.com/three.js/examples/js/ImprovedNoise.js


Reply to this email directly or view it on GitHub: https://github.com/mrdoob/three.js/issues/1946#issuecomment-5801293

mrdoob commented 12 years ago

Off topic? https://github.com/mrdoob/three.js/issues/1946

unicomp21 commented 12 years ago

Also, this is a pretty limited noise function. pnoise is good for creating seamless tiles in 2,3D etc.

On Sat, May 19, 2012 at 7:12 AM, Mr.doob < reply@reply.github.com

wrote:

http://mrdoob.github.com/three.js/examples/canvas_geometry_terrain.html http://mrdoob.github.com/three.js/examples/webgl_geometry_terrain.html http://mrdoob.github.com/three.js/examples/js/ImprovedNoise.js


Reply to this email directly or view it on GitHub: https://github.com/mrdoob/three.js/issues/1946#issuecomment-5801293

mrdoob commented 12 years ago

I'm sure you can find one that fit your needs here.

mrdoob commented 12 years ago

Or, you can use your own.

mrdoob commented 12 years ago

Also, I'm confused of who you refer with "We" in "We need some javascript noise functions for geometry displacement, etc.".

Do you mean that your team needs noise functions and that you happen to find one in your own repo?

Maybe you meant "We needed" and you're sharing with us the one you did?

I'm confused.

unicomp21 commented 12 years ago

I was alluding to higher order prmitives for generating geometry in three.js, along with bitmap texturing.

On Sat, May 19, 2012 at 8:09 AM, Mr.doob < reply@reply.github.com

wrote:

Also, I'm confused of who you refer with "We" in "We need some javascript noise functions for geometry displacement, etc.".

Do you mean that your team needs noise functions and that you happen to find one in your own repo?

Maybe you meant "We needed" and you're sharing with us the one you did?

I'm confused.


Reply to this email directly or view it on GitHub: https://github.com/mrdoob/three.js/issues/1946#issuecomment-5801609

mrdoob commented 12 years ago

I'm still confused...

What you're trying to say is that you want your lib to be included in three.js?

unicomp21 commented 12 years ago

yes, then we can start adding isosurface extraction routines for generating more complex geometry.

On Sat, May 19, 2012 at 8:26 AM, Mr.doob < reply@reply.github.com

wrote:

I'm still confused...

What you're trying to say is that you want your lib to be included in three.js?


Reply to this email directly or view it on GitHub: https://github.com/mrdoob/three.js/issues/1946#issuecomment-5801714

mrdoob commented 12 years ago

Maybe you can do a test that showcases the kind of things you're talking about?

unicomp21 commented 12 years ago

Working on it, give me a month or two.

On Tuesday, May 22, 2012, Mr.doob wrote:

Maybe you can do a test that showcases the kind of things you're talking about?


Reply to this email directly or view it on GitHub: https://github.com/mrdoob/three.js/issues/1946#issuecomment-5852542

mrdoob commented 12 years ago

Sure! Looking forward to see what you get :)

alteredq commented 12 years ago

yes, then we can start adding isosurface extraction routines for generating more complex geometry.

So if I understood well, it would be something like beefed-up marching cubes example, using procedural 3D noise instead of metaballs? Cool ;)

mrdoob commented 12 years ago

Something like this? http://pouet.net/prod.php?which=32194

unicomp21 commented 12 years ago

Yes! Exactly!

On Tuesday, May 22, 2012, AlteredQualia wrote:

yes, then we can start adding isosurface extraction routines for generating more complex geometry.

So if I understood well, it would be something like beefed-up marching cubes example, using procedural 3D noise instead of metaballs? Cool ;)


Reply to this email directly or view it on GitHub: https://github.com/mrdoob/three.js/issues/1946#issuecomment-5857203

unicomp21 commented 12 years ago

is there an url for running the examples directly? I can setup my own webserver for viewing the examples, but it's a pain when I just need a quick check on something

On Tuesday, May 22, 2012, Mr.doob wrote:

Something like this? http://pouet.net/prod.php?which=32194


Reply to this email directly or view it on GitHub: https://github.com/mrdoob/three.js/issues/1946#issuecomment-5859790

mrdoob commented 12 years ago

You have them all here: http://mrdoob.github.com/three.js/

alteredq commented 12 years ago

Also you can run them from a filesystem,without web server, just need to set proper flags:

https://github.com/mrdoob/three.js/wiki/How-to-run-things-locally

BTW could you please not use email for replying to GitHub issues, it causes mess here, web interface is much more preferable.