Twitter

Blender 3D – addon to export your model online.

After you make your model under Blender 3D you can share it with one great addon to this website.
This is my model share with this addon:

Split wood 001
by catafest
on Sketchfab

To add this addon go to File – User Preferences – Addons and search with this word: sketchfab. Check this addon and the presss Save User Settings.
Make your model with materials , UV maps, textures and normal textures to have a great model.
When your model is finished then press T key to see the left panel and you will see Upload tab (first is Tool tab and the last is Upload).
You need to have a account to the website. Fill with your email adress and then you need to press OK button to get one mail with the Api Key. Because you cannot put with copy paste from your mail to Blender 3D use this tips and tricks.
Copy your Api Key from your mail and open a text into Blender 3D – TextEditor and then use copy – paste to fill the input named Api Key.
With your 3d model then just press Upload and then after few seconds View Online Model button to open browser with your model under sketchfab website.
See this image for setup your Api Key with your token:
sketchfab_001

Mono editor – tips and tricks – part 001.

Today I started a new type of tutorials about Mono Editor.
You can be able to deal with huge programming parts.
Just start your Mono Editor and go to Tools – Options….
Under Text editor you need to check all for unfold your C# scripts.
Also you need to set: Leave line endings as is.
See image bellow:
Mono_editor_folding

PowerShell tips – part 004.

Another tutorial about powershell commands.
Get infos from Enviroment with powershell:
[Environment]::UserName
[Environment]::UserDomainName
[Environment]::MachineName

Test connection to server or test the network connectivity of a computer and get some common properties:
Test-Connection google.com

Test-Connection -ComputerName localhost -Count 1 |
Select-Object IPv4Address,ResponseTime,TimeToLive

Displays diagnostic information for a connection.
Test-NetConnection

Get a detailed IP configuration report for the current machine
Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter IPEnabled=TRUE -ComputerName . | Select-Object -Property [a-z]* -ExcludeProperty IPX*,WINS*

Restart oone service, like DHCP
Restart-Service DHCP

News: Google Spaces from google.

Google Space it’s a way for groups to quickly share text, , images, videos or links.
This news was announced yesterday by Google and is available as a web service and in form of native applications for Android and iOS.
If you want to access to Spaces then this is not protected.
The only security that prevents uninvited users from accessing a Space is a random invite string.
The customization options let you to change the header graphic, change colors, and add a name to a space, but that is about it.
Google Spaces is part Google Plus and part Wave and will come with new features.

WebGL – sound visualizer with Three.js .

First you need to create one html5 default webpage.
Also you need to add the three.js library to your file.
Add your MP3 file to your folder project.
I named my mp3 file with your_sound_file.mp3.
Because you used three.js javascript file you need to have this functions:init, animate, onError.
To used the audio file you need to have this functions: Play and Load.
The visualizer is make with NewLine function.
This function make one material with one line with green color: 0x00ff00.
If you take a look to the source code will see is simple.
… and result is this:
sounds
see the source code:
<!doctype html>
<html>
<head>
<script src=”js/three.min.js”></script>
</head>
<body>
<script>

var scene, camera, renderer, line;
var geometry, material, mesh, array;

function init() {

scene = new THREE.Scene();

camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 1, 10000 );
camera.position.z = 1000;

renderer = new THREE.WebGLRenderer();
renderer.setSize( window.innerWidth, window.innerHeight );

document.body.appendChild( renderer.domElement );

}

function NewLine() {

scene.remove(line);

var material = new THREE.LineBasicMaterial({
color: 0x00ff00
});

var geometry = new THREE.Geometry();

array = new Uint8Array(analyser.frequencyBinCount);
analyser.getByteFrequencyData(array)

var Ypoints = array;
var xPoint = -2048;
for(var i=0;i<Ypoints.length;i++) {
geometry.vertices.push( new THREE.Vector3( xPoint, Ypoints[i], 0 ) );
xPoint = xPoint + 4;
}

line = new THREE.Line( geometry, material );
scene.add( line );
}

function animate() {

requestAnimationFrame( animate );
NewLine();
renderer.render( scene, camera );

}

window.AudioContext = window.AudioContext || window.webkitAudioContext;
var context = new AudioContext();

function Play(buffer) {
var source = context.createBufferSource();
source.buffer = buffer;
source.connect(context.destination);

analyser = context.createAnalyser();
source.connect(analyser);
analyser.connect(context.destination);

source.start(0);

init();
animate();
}

function Load(url) {
var request = new XMLHttpRequest();
request.open(‘GET’, url, true);
request.responseType = ‘arraybuffer’;

request.onload = function() {
context.decodeAudioData(request.response, function(buffer) {
Play(buffer)

}, onError);
}
request.send();

function onError() {
console.log(‘error’)
}
}
Load(‘your_sound_file.mp3’);
</script>
</body>
</html>