I’ve tried to set a texture. but it dosent work. How should i set the texture in this case?
here is the code
http://jsfiddle.net/9VgTt/
any hints would be appreciated
Thanks everyone
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Because buffers need to be pre-allocated, you need to render your more complicated material first.
To do that, you can do something like this:
If you think this is too much of a hack, another solution is to just have a dummy transparent or solid-colored map texture to begin with.
You can read more about this issue at the three.js wiki: https://github.com/mrdoob/three.js/wiki/Updates.
Here is an updated fiddle: http://jsfiddle.net/9VgTt/14/