Pages

Se afișează postările cu eticheta programming. Afișați toate postările
Se afișează postările cu eticheta programming. Afișați toate postările

miercuri, 4 aprilie 2018

About Blender 3D and python API versus learners.

The last version of Blender 3D API come with many features and option to solve your issues.
Too many for a normal user.
For example: if you want to add some images into SEQUENCE_EDITOR this will help you.
From starting you need to know the last API and this may not be the last option.
The BlendDataImages(bpy_struct) - version 2.79 and can be used.
Another option is this function on the version 2.78 the scene.sequence_editor.sequences.new_image.
The good way is to have a good area of examples and tutorials into documentation.
This will solve many post on Blender 3D community area.

What I want to say is the desire of the developers to manifest themselves and not to maintain the user learning process.
Most API learners do not have the same speed of processing and learning as developers, especially if there are multiple and frequent changes.

marți, 3 aprilie 2018

News : The WAVE ENGINE 2.0 .

This is a old news.

The development team of game engine come this text about the old game WAVE ENGINE :

WAVE ENGINE 2.0 HAS ARRIVED! NOW WITH A NEW VISUAL EDITOR AND AVAILABLE IN WINDOWS, MAC OSX AND LINUX. YOU CAN ALSO VISIT OUR GITHUB PAGE WHERE YOU CAN FIND TONS OF SAMPLES, QUICKSTARTERS AND COMPONENTS SOURCE CODE. ENJOY!

You can read more about WAVE ENGINE at official page.
You can see all about WAVE ENGINE on youtube official channel

duminică, 25 martie 2018

Create a shadow text effect with HTML5 and CSS .

This tutorial is simple because I used HTML5 and CSS.
The CSS source code is simple (see: font-size:13px or you can use any size, colors , background).
I used my jsfiddle account to test and run it.
Create a project into jsfiddle editor and add this source code.
Into HTML5 area the source code can start with your text into div tag and named class font_001.
You can add span tag to have display block CSS style.
Into CSS area the source code is this:
@import url(https://fonts.googleapis.com/css?family=Work+Sans);

body {
  line-height: 2.5;
  margin: 0;
  background: #1F4C6F;
  font-family: 'Work Sans' sans-serif;font-size:13px;
}

.font_001 {
  max-width: 50%;
  margin: 0 auto;
}

h1 {
  color: #fff;
  font-weight: 810;
  padding-top: 4rem;
  margin: 0;
  text-transform: uppercase;
  font-size: 3em;
  line-height: 1.8;
  color: #3C6FB0;
  text-shadow: 20px 5px 30px rgba(0,0,0,.2), -30px 10px 30px rgba(0,0,0,.1), 
-40px 10px 30px rgba(0,0,0,.1), -3px 2px 5px #1F4C6F, 3px -2px 5px #3C6FB0;
}

h1 span {
  display: block;
  
}

Using processing.js to create a progressbar .

Today I tested the processing version 3.3.7 .
The example I make is a progressbar with a blue color and some text to show info.
The source code is very simple and result is this:

This is the source code:
// example progressbar 
// default variables for progressbar
// start the time for progressbar
int startTime; 
// counter progressbar 
int counter;
// maximum time progressbar
int maxTime; 
// boolean for the end progressbar 
boolean done; 
// settings for this example
void setup() { 
// set title of window
frame.setTitle("Example progressbar | free-tutorials.org");
// window size and background color
size(640,130);
background(255); 
// set variables of progressbar
counter = 0; 
startTime= millis(); 
maxTime=int(random(1000,1976)); 
done=false; 
//end settings
} 
// draw all text and progressbar
void draw() { 
  // set same background color
  background(255); 
  // check end of progressbar fill
  if (counter-startTime < maxTime) {
  counter=millis();
  }  else { done=true;  }
  // create the color for fill progressbar
  fill(110,110,255);
  // no stroke for draw
  noStroke();
  // show all text variables and progressbar
  text("Progress bar blue - size 620", 230, 20); 
  rect(10,30,map(counter-startTime,0,maxTime,0,620), 30 );
  text("counter- startTime "+int(counter- startTime)+" ",10,80);
  text("maxTime "+ int(maxTime) +  " ", 10,100);
  text("map converted counter-startTime"+ int ( map(counter-startTime,0,maxTime,0,200)), 10,120);
  noFill();
  }
// reload the draw of progress bar 
void mousePressed () { if (done) { counter = 0; startTime= millis();
  maxTime=int(random(1000,1976)); done=false; }
}

sâmbătă, 10 martie 2018

The Ren'Py visual novel engine .

Today I tested the Ren'Py visual novel engine.
The development team tell us:
  Ren'Py is a visual novel engine – used by thousands of creators from around the world – that helps you use words, images, and sounds to tell interactive stories that run on computers and mobile devices. These can be both visual novels and life simulation games. The easy to learn script language allows anyone to efficiently write large visual novels, while its Python scripting is enough for complex simulation games. Ren'Py is open source and free for commercial use.
For android development and emulation you need to install Java SE Development Kit.
The base of engine is a application named renpy.
This allow us to update , build and make emulation ( phone, tablet and television) for your game.
You can test all of this by starting one default game.
I don't make a tutorial about how to create a new game, just how to deal with this engine.
You can create a new game by using: + Create New Project.
This will create a new project to start you 2D game novel with your questions and answers , GUI and images.
This can be see on the next screenshot work with this engine:

miercuri, 7 martie 2018

News : Mozilla offers free assets for Unity3D VR .

The Unity WebVR assets allow to view the Unity generated VR objects in Firefox.
This is not news, which is new is this news:
Mozilla offers free assets that link Unity3D VR content to the web browser.
The Mozilla developers write in their announcement and also come with a good online demo.
This free assets can be found here.
The description of this asset named WebVR Assets come with this text:
Easily create VR experiences using Unity that you can view directly on your Web browser. It works in Firefox and Microsoft Edge WebVR enabled browsers!

luni, 12 februarie 2018

The particles editor from Pixi.js .


The Pixi.js Creator Engine is known by users and java script developers to create digital content with the 2D WebGL renderer.
Today I will show you a publisher created by developers to solve the particle issue.
The parameters specific to each particle system are chosen, the result is viewed and then saved to an output file.
You can test this online tool here.
The result of snow particles is a file created into json style and is this:
{
        "alpha": {
                "start": 0.73,
                "end": 0.46
        },
        "scale": {
                "start": 0.15,
                "end": 0.2,
                "minimumScaleMultiplier": 0.5
        },
        "color": {
                "start": "#ffffff",
                "end": "#ffffff"
        },
        "speed": {
                "start": 200,
                "end": 200,
                "minimumSpeedMultiplier": 1
        },
        "acceleration": {
                "x": 0,
                "y": 0
        },
        "maxSpeed": 0,
        "startRotation": {
                "min": 50,
                "max": 70
        },
        "noRotation": false,
        "rotationSpeed": {
                "min": 0,
                "max": 200
        },
        "lifetime": {
                "min": 4,
                "max": 4
        },
        "blendMode": "normal",
        "ease": [
                {
                        "s": 0,
                        "cp": 0.379,
                        "e": 0.548
                },
                {
                        "s": 0.548,
                        "cp": 0.717,
                        "e": 0.676
                },
                {
                        "s": 0.676,
                        "cp": 0.635,
                        "e": 1
                }
        ],
        "frequency": 0.004,
        "emitterLifetime": -1,
        "maxParticles": 1000,
        "pos": {
                "x": 0,
                "y": 0
        },
        "addAtBack": false,
        "spawnType": "rect",
        "spawnRect": {
                "x": -500,
                "y": -300,
                "w": 900,
                "h": 20
        }
}   

duminică, 21 ianuarie 2018

The glslbin online tool .

This web tool named glslbin can help you to test your shaders online.
Is very simple to use it:
  • open the tool;
  • delete the source code or change the example;
  • run your work ;
  • you can also save it.
The development team tell us about this online tool:
glslbin is a fragment shader sandbox similar to ShaderToy or GLSL Sandbox. It's still a work in progress, so expect more to come soon. It adds support for glslify, a GLSL module system which allows you to easily pull in shared code snippets from npm. These modules are all hosted as part of the stack.gl project: you can find a full list of packages in the "Shader Components" section here. Enjoy!

luni, 25 decembrie 2017

Christmas - Unity 3D with WebGL and old carol .

This is a test with particles using Unity 3D and WebGL output.
The next step will be a android application.
The project use three particle generators to create a Christmas tree, a snow particle generator, a game object for sound, and a text object game.
The project has also a C# script to set the particles.
The font used is the Kremlin Orthodox Church and is under the GNU General Public License.
This old carol is singed by Balada Group from Fălticeni, Romania and coordinated by Maria Tanase.

Merry Christmas! - Crăciun fericit!

duminică, 10 decembrie 2017

The Roblox game with lua scripting .

The Roblox game is a massively is a multiplayer online game.
This game platform that allows users to design their own games and play a wide variety of different types of games created by the developer or other users.
The programming issues for this game can be solved with lua scripting language.
In this tutorial I will show you how to start programming this game.
First yo need to install the game, make one account and take from web the Studio.
This allow you to make game and changes into your account .
You can start with your place or create a new place .
The Roblox Studio use Workspace with many objects like: bricks , materials, etc.
The next image show you how to select command Bar (1) and Output (2) windows for testing lua commands and see the outputs of this commands from VIEW menu:

Into the next image you can see how I used the lua scripting to print to output:

Use the blue cross from Explorer to add your lua script to the object or part of object:

When all of your changes are done then you can publish to Roblox from File menu.
I preferred not to introduce a classic example script because you can do a lot of useful scripts in the roblox game: effects, automation, animations, music and video, character creation and objects, scripts for online.
You can learn more about this issue if you take a look at this official roblox channel for scripting.

miercuri, 6 decembrie 2017

The online CoSpaces Maker for kids to code.

The team development tell us:
Imagine and create. Build a virtual world on any device with the CoSpaces Maker app and explore them in virtual reality. Design, develop and code your own creations or take inspiration from what others have built in the CoSpaces Maker gallery - all you need is a smartphone and a cardboard headset!

First you need to make an account.
The next step is to see all scenes and read how to deal with objects and features.
This features start from load objects, deal with objects, use camera, use scene and code.
To code you need to use blockly - the most simple way to code .

If you think this is to simple and the result will be unsatisfactory, then you'd better take a look here.
You can test online at CoSpaces - official website.

sâmbătă, 25 noiembrie 2017

Sketchware - scratch IDE for Android applications.

The term of Scratch IDE come like a free visual programming language with visual forms.
The Sketchware mobile application is a IDE for Android applications.
You can make easy and fast application , show the source code and test it with your android .
The application can be found on google play.
You can see that into the next video from official youtube channel.

vineri, 17 noiembrie 2017

Love2d - the most simple game engine with Lua programming language .

The development team tell us about this software:
Hi there! LÖVE is an *awesome* framework you can use to make 2D games in Lua. It's free, open-source, and works on Windows, Mac OS X, Linux, Android and iOS.
Even if they say it is a framework, most of them who use it already consider it a game engine. You can download it and read about this game engine on the official website After download you need to create a project folder and put the lua scripts for love .
I named this folder test.
I add to this folder one transparent image from internet with the filename: oldpaper.png, see next image:

I create a file named main.lua and I add this lua script:
local imageFile

function love.load()

    imageFile = love.graphics.newImage("oldpaper.png")
end

function love.grid_text()
local gx = 0 
local gy = 0
local g = 0
 while g ~= 100 do
    love.graphics.line( gx, 0, gx, 10)
    love.graphics.setColor( 111, 255, 255 )
    love.graphics.line( 0, gy, 10, gy)
    love.graphics.setColor( 111, 255, 255)
    gx=gx+50 
    gy=gy+50 
    g=g+1
 end
    love.graphics.setColor( 16, 5, 255)
    love.graphics.print("Hello world ! Lua and Love 2D for games !", 290,400)
    love.graphics.setColor(0, 0, 0)
end

function love.draw()
    love.graphics.setBackgroundColor(0, 0, 0)
    love.grid_text()
 -- this displays the normally colored image
    love.graphics.setColor(255, 255, 255, 255)
    love.graphics.draw(imageFile,250,100)
end

Run it outside of test folder with:
 love.exe test
The result of this code is this screenshot.

duminică, 22 octombrie 2017

News: C# IN GODOT game engine.

The development team come with this news:
In order to bring C# programming to Godot, we are embedding the Mono runtime into the engine. As of alpha2, Godot is using Mono 5.2 and C# 7.0 is supported.
I will write more posts about the internals and how things work in the future but, for this one, I would like to focus on introducing the language and how to write Godot scripts with it.

One example of script it's that script class show by the development team :
// Coin.cs
using Godot; // Namespace that contains all Godot types

// Class Coin has same name as its file. Godot will detect it
public class Coin : Node
{
    public override void _Ready()
    {
        GD.Print("Hello, Godot!");
    }
}
Read more about this at official website .

joi, 17 august 2017

Another game engine: GameSalad .

About this game engine named GameSalad you must know:
  GameSalad is a drag-and-drop coding platform that makes teaching your students the fundamentals of computer science easy and fun! Students learn valuable logic and architecture skills as they progress in computer science achievement.
This game engine come with many features, like:

  • publish to iPad , iPhone , Kindle , Nook , MacBook and many devices;
  • you can tested free and also come with a custom plan built for you;
  • just 4 day free trial;
  • is simple to use it, less code;
  • can be publish to web publish.gamesalad.com/gameproj/... ;
  • The official gameSalad marketplace is gshelper.com ;
You can see video on youtube official channel:

vineri, 11 august 2017

The phaser.io - web game engine .

If you want to develop a online game then you can try Phaser from official website.
The development team tell us about this game engine: Phaser is free and open-source and always will be. To be better understood, the development team put a lot of examples of source code and online output on the official website. If don't want a github cloning, or setting up a local web server, you can run phaser in the cloud. You can test it with shaders, games created by developers. I did not find a YouTube channel, but the internet is full of tutorials for this javascript game engine.

joi, 10 august 2017

The vvvv tool environment.

The development team of this tool tell us:
vvvv is a hybrid visual/textual live-programming environment for easy prototyping and development. It is designed to facilitate the handling of large media environments with physical interfaces, real-time motion graphics, audio and video that can interact with many users simultaneously.

I download the archive and install this tool easy.
If something is not found into your computer then will see into setup interface.
The steps to install this tool:

  • download archive from official website;
  • donwload and unarchive the addons into the vvvv folder;
  • use setup executable to fix the instalation;

If you got this error: "the program can't start because d3dx9_43.dll is missing from your computer" the use this download- DirectX End-User Runtime Web Installer from microsoft.
To run examples, demos or games just try girlpower folder.
Let's see installation steps from youtube:

vineri, 4 august 2017

The glTF - GL Transmission Format exporter for Blender 3D.

According to KhronosGroup this format:
glTF™ (GL Transmission Format) is a royalty-free specification for the efficient transmission and loading of 3D scenes and models by applications. glTF minimizes both the size of 3D assets, and the runtime processing needed to unpack and use those assets. glTF defines an extensible, common publishing format for 3D content tools and services that streamlines authoring workflows and enables interoperable use of content across the industry.

As you already know:
The Khronos Group, Inc. is an American non-profit member-funded industry consortium based in Beaverton, Oregon, focused on the creation of open standard, royalty-free application programming interfaces (APIs).
The glTF 1.0 specification has been announced since October 19, 2015 and it's in Draft since April 11, 2017.

Now you can test it with a Blender addon exporter from here.

The official exporter for Blender use glTF - version 2.0.

joi, 27 iulie 2017

Tangram - an open-source map renderer.

Tangram is an open-source map renderer designed to animated shaders, 3D buildings, and dynamic filtering can be combined to produce effects normally seen only in science fiction.
The Tangram Play is an interactive text editor for creating maps using Mapzen’s Tangram rendering engine.
 Also, you can write and edit map styles and preview the changes live in the web browser.

Another online editor for three.js projects.

The framework named three.js let you to create cameras, objects, lights, materials and more, and you have a choice of renderer.
The default editor of this framework can be found here.
Today I will introduce you a new editor that allows you to edit html online.
From my point of view, this new editor is a more versatile way of creating content with this framework.

You can load this new editor here, here is a screenshot: