Comments (11)
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.
Yeah, MeshLambertMaterial
should give you the look you're after.
from three.js.
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.
try removing the new THREE.MeshFaceMaterial()
from three.js.
doesn't work... does it for you?
from three.js.
Could you create a zip with everything so I can mess with the code without worrying about dependencies?
from three.js.
sure, here it is:
http://fabricasapiens.nl/projecten/spel/spel.zip
Thanks for looking at it!
from three.js.
Ah, seems like it's a GeometryUtils::merge problem. Looking at it :)
from three.js.
Fixed. Try with the new ThreeExtras.js.
https://github.com/mrdoob/three.js/tree/master/build/
from three.js.
Works!
Thanks for fixing. And on to the next phase :)
from three.js.
closing the issue...
from three.js.
Related Issues (20)
- THREE.JS not working on Android 11 HOT 10
- THREE.JS not working on Android 14 Webview HOT 7
- Can materials support customizing their own toneMappingExposure strength and toneMapping type? Instead of forcing the use of global HOT 1
- THREE.Box3 compute has animation GLTF.It causes the model to be messed up HOT 7
- Adding a model using THREE InstancedMesh in mapboxgl, losing vertices after modifying and scaling HOT 3
- High gpu usage with WebGPURenderer returned with video textures HOT 7
- BatchedMesh: Provide approach for sharing geometry and transforms between BatchedMesh HOT 3
- setPositions on LineGeometry doesn't delete _maxInstanceCount, required when adding more points. HOT 2
- Crash in WebGPU: Error: no matching constructor for vec4 HOT 7
- WebGPU: BufferGeometry position attribute not updating in WebGPU renderer HOT 6
- Using WebGPURenderer, putting the loaded GLB model into the scene will result in an error "TypeError: Cannot read properties of undefined (reading 'isInterleavedBufferAttribute') HOT 9
- Object3D: getObjectsByProperty improvement HOT 1
- Imposter.js Not Found HOT 1
- 3DS Loader - possibly use MeshPhysicalMaterial HOT 2
- GLTFLoader Failed to loading Texture with mimeType (mimeType:"image/ktx2") HOT 1
- HTMLMesh throws error if radio element has height of width of 0. HOT 2
- When using Box3.setFromObject() on GLTF containing animation, the cloned model does not display properly. HOT 5
- The webxr_ar_lighting sample does not work HOT 2
- Textures / UV mapping incorrect after exporting FBX with GLTFExporter HOT 10
- Code paths for WEBGL_multisampled_render_to_texture HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from three.js.