Code Monkey home page Code Monkey logo

Comments (11)

525c1e21-bd67-4735-ac99-b4b0e5262290 avatar 525c1e21-bd67-4735-ac99-b4b0e5262290 commented on May 6, 2024

I get a full 60FPS in Chrome 8, chromium nightly, safari nightly (webkit) and firefox 4 (no AA) on OSX

CPU

 Model Name: MacBook Pro
 Model Identifier: MacBookPro6,2
 Processor Name: Intel Core i7
 Processor Speed: 2.66 GHz
 Number Of Processors:  1
 Total Number Of Cores:  2
 L2 Cache (per core): 256 KB
 L3 Cache: 4 MB
 Memory: 4 GB
 Processor Interconnect Speed: 4.8 GT/s

GPU

Chipset Model: NVIDIA GeForce GT 330M
Type: GPU
Bus: PCIe
PCIe Lane Width: x16
VRAM (Total): 512 MB

"I hoped there would be some sort of shades on the cubes"

You need to utilise a material which supports lighting such as MeshPhongMaterial or MeshLambertMaterial. See the demos...

from three.js.

mrdoob avatar mrdoob commented on May 6, 2024

Yeah, MeshLambertMaterial should give you the look you're after.

from three.js.

 avatar commented on May 6, 2024

I already tried the Phongmaterial, and have now tried the MeshLambertMaterial.
I copied almost 1:1 from the Voxel demo, and still it doesn't work...

I feel kinda stupid right now ;-)

Could anyone have a look at it again...?
http://fabricasapiens.nl/projecten/spel/spel.html

I'm sorry for bothering you!

from three.js.

mrdoob avatar mrdoob commented on May 6, 2024

try removing the new THREE.MeshFaceMaterial()

from three.js.

 avatar commented on May 6, 2024

doesn't work... does it for you?

from three.js.

mrdoob avatar mrdoob commented on May 6, 2024

Could you create a zip with everything so I can mess with the code without worrying about dependencies?

from three.js.

 avatar commented on May 6, 2024

sure, here it is:
http://fabricasapiens.nl/projecten/spel/spel.zip

Thanks for looking at it!

from three.js.

mrdoob avatar mrdoob commented on May 6, 2024

Ah, seems like it's a GeometryUtils::merge problem. Looking at it :)

from three.js.

mrdoob avatar mrdoob commented on May 6, 2024

Fixed. Try with the new ThreeExtras.js.
https://github.com/mrdoob/three.js/tree/master/build/

from three.js.

 avatar commented on May 6, 2024

Works!

Thanks for fixing. And on to the next phase :)

from three.js.

 avatar commented on May 6, 2024

closing the issue...

from three.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.