Easy one. This shows you how to assign textures and apply bump maps in blender.
So I have a list of names, but the names are duplicated down the page. Each name is on a new line by itself. If I want to remove all the duplicates and just find out who is included in the file, I can simply do: This will remove duplicates and print them to your terminal.
Well here’s the fix… You have to replace the file. First get a UTF-8 output: Then delete the file. Make a new file (already UTF-8 by default) and paste in the UTF-8 output from your terminal. Blam
Quick one. Let’s say you have an object that you’ve scaled already. You don’t want to keep having to scale it every time you copy it. You can normalize it by:
Ok folks, it doesn’t get easier than this. If you want to start writing shaders in the browser but can’t figure out how to create your shader program, ThreeJS has you covered: In your JS In your head:
So you have a dual screen setup and xscope keeps putting the guides on the wrong side. Easy fix. Go to xscope –> preferences –> and select which screen guides should appear on:
super tired scroll down and right
I never have time, so this will be quick. Let’s say we want to find a pixel index amoung all that image data canvas returns with: The formula is simple: Basically, you need to draw this one out. Let’s say we have a 3×3 image. Each pixel would have it’s own zero based index. The width would be three. Each
Just wanted to post this. The source is pretty self explanatory and i’ll put up a github later once I clean up a few things. I’ll explain later. Be patient, it takes a second to load. DEMO –>
So you’ve been making ajax calls and everything is going great. Your onSuccess message looks something like this: All of a sudden your QA professional says things aren’t working in iOS8! No prob, bob. It’s actually that iOS8 and below doesn’t return a “responseURL” attribute of the xhr object. Look at the difference: iOS8 xhr object: Everything else: Anyway…