mrdoob / three.js

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

molecules with webgl renderer #4676

Closed benbro closed 10 years ago

benbro commented 10 years ago

Hi

Is there a chance to have an example of using pdb files with the webgl renderer. The existing example is great but it is demonstrating two things, working with pdb files and css3 renderer, which make it harder to reuse.

https://github.com/mrdoob/three.js/blob/master/examples/css3d_molecules.html

Thanks

kumavis commented 10 years ago

The API is the same. Just use the webgl renderer instead. https://github.com/mrdoob/three.js/blob/master/examples/css3d_molecules.html#L158

kumavis commented 10 years ago

This issue list is for reporting bugs. If you have questions about how to use three.js, read the examples or post on stackoverflow.

WestLangley commented 10 years ago

@kumavis

The API is the same. Just use the webgl renderer instead.

Not in this case.

This issue list is for reporting bugs.

...and also feature requests. I'd consider the request for an additional example to be in that category.

kumavis commented 10 years ago

whoops - looks like I spoke too soon :cactus:

kumavis commented 10 years ago

Thinking about it again, since the referenced demo is categorized as a css3d demo it could easily be overlooked by someone looking to work with pbd. Having an explicit loader / pbd demo would be nice.

mrdoob commented 10 years ago

Done! ^^

mrdoob commented 10 years ago

Having an explicit loader / pbd demo would be nice.

True that. Will rename.

benbro commented 10 years ago

Thank you.