question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How create cylinder made of glass?

See original GitHub issue

Hi, I just started working with three.js.

I tried to take code from this project http://ultravisual.co.uk/blog/wp-content/uploads/2011/03/webgl/car/

loader.load({ model: "js/objects/glass.js", callback: function ( geometry ) { addPart(geometry, 0, 172, 91, glassMat)}});

Can I create cylinder using this js http://ultravisual.co.uk/blog/wp-content/uploads/2011/03/webgl/car/js/objects/glass.js ?

This is my example http://jsbin.com/ubosib/3

Sorry, for bad english.

Issue Analytics

  • State:closed
  • Created 12 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Maksoldcommented, Oct 15, 2011

I add transparent: true. Everything works, but now cylinder inside other cilinder lost color.

This is code:

var mOil = new THREE.MeshLambertMaterial({
        color: 0xAD8D30, 
        envMap: refractionCube, 
        refractionRatio: 0.5,
        opacity: 0.7,
        transparent: true
    });
var mGlass = new THREE.MeshLambertMaterial( {
        color: 0xffffff,
        envMap: reflectionCube,
        opacity: 0.3,
        transparent: true
    } );
scene.add(new THREE.Mesh(new THREE.CylinderGeometry(32, 32, 175, 200), mGlass)); //Cylinder outside 
scene.add(new THREE.Mesh(new THREE.CylinderGeometry(30, 30, 150, 200), mOil)); //Cylinder inside
0reactions
Maksoldcommented, Oct 16, 2011

Yes, it woks. Thank you very much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to make a simple power cylinder/glass piston for Stirling ...
stirlingengine, #howtomake, #tutorialHow to make a simple power cylinder / glass piston for a Stirling engine (step by step tutorial)Do you ...
Read more >
Q. How were cylinder glass windows made? - LibAnswers
Cylinder glass was made by blowing a large sphere of glass and then elongating it by swinging it, either in a pit or...
Read more >
Cylinder blown sheet glass - Wikipedia
Cylinder blown sheet is a type of hand-blown window glass. It is created with a similar process to broad sheet, but with the...
Read more >
Glass Production Types & Process | What is Crown Glass?
Making Cylinder Glass ... Crown glass enabled buildings to have glass windows, but the process had its limitations. The glassblowers couldn't make ......
Read more >
Cylinder process - Pilkington
First, a ball of glass was blown at the end of a blower's pipe. Once the desired circumference was reached the blower would...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found