Author Archives: admin

Windows 10 – getmac command .

This is a simple command to get all your mac from your Windows system.
We can run it to retrieve the mac addresses of a remote computer.

Export a verbose listing of MAC addresses to a CSV file

See the help of this command:

Posted in All, Commands, Windows 10. Tagged with , , , .

News: Take realtime location from WhatsApp .

The WhatsApp team development come with this good feature to share your realtime location with other people on WhatsApp:

Share your live location
Today, we’re rolling out a new feature that allows you to share your location in real-time with family or friends. Whether you’re meeting up with friends, letting loved ones know you’re safe, or sharing your commute, Live Location is a simple and secure way to let people know where you are. This end-to-end encrypted feature lets you control who you share with and for how long. You can choose to stop sharing at any time or let the Live Location timer simply expire.

Here’s how it works. Open a chat with the person or group you want to share with. Under “Location” in the attach button, there’s a new option to “Share Live Location.” Choose for how long you want to share and tap send. Each person in the chat will be able to see your real-time location on a map. And if more than one person shares their Live Location in the group, all locations will be visible on the same map.

Posted in news. Tagged with , , .

Blender 3D – sin mesh object with python.

This is a simple example of create one object from vertrices and edges using sin function.
First you need to create the mesh with: .
The n number is random, you can use any number for vertices and edges.
This number is points for the drawing sin function.
The spaces variable is the range from this points.
Using for statements we can draw the sin function.
The last step is to add all of this into one object named sin.
This object will be link to the scene.
See the source code of this tutorial:

Posted in 3D, All, Blender 3D, Programming, Python. Tagged with , , , , , , , .

Create a starfield with Three.js .

You need to create two files into your folder and use this filenames : index.html and starfield.js .
First file index.html come this source code:

The next file is a java script and come with this source code:

Posted in All, HTML 5, javascript, Programming. Tagged with , , , , , .

Unity 3D – Shaders scripts – part 001.

This is the first tutorial in a series of shaders tutorials in Unity 3D.
Open your Unity 3D project and using right click mouse add a Unlit shader to your project, see the image:

Rename your shader file and open this shader with right click mouse.
You will see the content of the default shader into your Visual Studio IDE.
Let’s see my shader example named NewUnlitShader :

When you write your first shader then you need to know some rules:

  • take a look at this link to see the most common variables and HLSL type and rules;
  • example: vec2 types with float2;
  • example: mat2 with float2x2;
  • example: vec3(1)  is float3(1,1,1);
  • example: mainImage(out vec4 fragColor, in vec2 fragCoord) is float4 mainImage(float2 fragCoord : SV_POSITION) : SV_Target;
  • example:
  • Shader “Unlit/NewUnlitShader” – the shader will add into your material from : Unlit – NewUnlitShader;
  • you can change the name NewUnlitShader , but you need to change the name of the file shader;
  • the body of shader start with word CGPROGRAM and end with word ENDCG;
  • Shader Level of Detail (LOD) is a number (see doc);
  • the Properties word is used for: inputs like a texture (see and _MainTex (“Texture”, 2D) = “white” {} );
  • the SubShader word is used to start define your settings for shader and the content of shader;
  • the words like: #pragma, #include , struct  are reserved words and is used to set and make the body of shader;
  • any shader come with : vertex shader body and fragment shader body;

One simple example of settings for vertex and fragment body shader but also you can have pixel shader body:

The next step is to add this to your shader:

Now, about vertex shader this can manipulate the attributes of vertices.
The fragment shader is the same as pixel shader.
The fragment/pixel shader is part of the rasterization steps.
You can see in my first example I used fragment shader not pixel shader:  #pragma fragment frag
The result is this function :

This is first part of this tutorials about shaders and you will need to learn all of this and make connections with my examples.

Posted in All, Programming, Unity 3D. Tagged with , , , , .