Pages

Se afișează postările cu eticheta 3d software. Afișați toate postările
Se afișează postările cu eticheta 3d software. Afișați toate postările

joi, 15 februarie 2024

Shader Editor - example 005.

Today I posted on my instagram three shaders created to be used as phone wallpapers using the Shader Editor Android software option.
Somewhere in my posts I specified that this android application allows you to create shaders and then you can add them as dynamic wallpaper on phone.
The three source codes are open-source and you can test and use them with the android application and they will run very well as wallpapers:
This is a shader that I like as a design because it is relaxing and I put a more feminine color because spring is coming.
#ifdef GL_ES
precision highp float;
#endif

#extension GL_OES_standard_derivatives : enable

uniform float time;
uniform vec2 resolution;


void main( void ) {
vec2 uv = 0.5-(gl_FragCoord.xy - resolution * 0.15) / max(resolution.x, resolution.y) * 5.0;
uv *= 1.0;

float e = 0.0;
for (float i=3.0;i<=16.0;i+=1.0) {
e += 0.081/abs( (i/11.) +sin((time/1.20) + 0.18*i*(uv.y) *( cos(i/2.10 + (time / 11.0) - uv.y*.4) ) ) + 2.5*uv.x);
gl_FragColor = vec4( vec3(e/1.6, e/18.6, e/1.6), 1.0);

}

}
This is a dynamic sin cos combination
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif

uniform float time;
uniform vec2 mouse;
uniform vec2 resolution;

void main( void ) {

vec2 p = ( gl_FragCoord.xy / resolution.xy ) -0.5;//+ mouse / 4.0;
// float color = 0.0;

float sx =cos(0.123*time)*(p.x)*sin(7.6*p.x-0.5*time);
float dy =1.1/(1000.*abs(p.y-sx));

float dy2 =(50.*abs(p.y-dy));
float dy3 =(150.*abs(p.y-dy));

gl_FragColor = vec4( vec3( .01, dy*dy3 ,dy2*.1),4);

}
This shader has a darker style:
#ifdef GL_ES
precision mediump float;
#endif

uniform vec2 resolution;
uniform float time;

mat2 m(float a) {
    float c=cos(a), s=sin(a*1.0);
    return mat2(c,-s,s,c);
}

float map(vec3 p) {
    p.xz *= m(time * 0.1);p.xy*= m(time * 0.1);
    vec3 q = p * 4.0 + time;
    return length(p+vec3(sin(time * 0.17))) * log(length(p) + 0.10) + sin(q.x + sin(q.z + sin(q.y))) * 1.8;
}

void main() {
    vec2 a = gl_FragCoord.xy / resolution.y - vec2(0.5, 0.5);
    vec3 cl = vec3(0.0);
    float d =0.15;

    for (int i = 0; i <= 5; i++) {
        vec3 p = vec3(0, 0, 4.0) + normalize(vec3(a, -1.0)) * d;
        float rz = map(p);
        float f = clamp((rz - map(p + 0.1)) * 0.5, -0.1, 1.0);
        vec3 l = vec3(0.1, 0.3, 0.44) + vec3(1.5, 1.0, 1.0) * f;
        cl = cl * l + smoothstep(0.5,0.31, rz) * 0.16 * l;
        d += min(rz, 1.0);
    }

    gl_FragColor = vec4(cl*8.0, 1.0);
}

miercuri, 24 ianuarie 2024

News : Realtime cloth physics with Proxy Mesh of Blender addon Vmd Retargeting.

This blender addon will import motion from mmd's .vmd file onto Daz or CC models, with or without mmd model.

duminică, 29 octombrie 2023

Spacescape tool for skyboxes.

Spacescape is a free tool for creating space skyboxes with stars and nebulas.
You can use Spacescape to make skyboxes for your free or commercial game, no license or royalties required!

marți, 29 august 2023

Blender 3D : Glass material with Open Shading Language.

Open Shading Language (OSL) is a small but rich language for programmable shading in advanced renderers and other applications, ideal for describing materials, lights, displacement, and pattern generation.
OSL was originally developed by Sony Pictures Imageworks for use in its in- house renderer used for feature film animation and visual effects, released as open source so it could be used by other visual effects and animation studios and rendering software vendors. Now it's the de facto standard shading language for VFX and animated features, used across the industry in many commercial and studio- proprietary renderers. Because of this, the work on OSL received an Academy Award for Technical Achievement in 2017 ..., see the GitHub project.
Today I'll show you how to use this option with Blender 3D to create a glass-like material for an object and render it with Blender 3D.
Open the Blender 3D application and set the render to Cycles, CPU and check Open Shading Language, see the next image:
Add an object, add a new material remove the Principled BSDF node
Create a file named Glass_001.osl select this file in the material area for the object.
You can see in the image above how I set the material with a Script node.
Add this source code in the file and render the scene:
#include "stdosl.h"

#define IOR_THRESHOLD 1.000001

float FresnelDielectric(vector i, normal n, float eta)
{
    float c = fabs(dot(i, n));
    float g = eta * eta - 1 + c * c;
    float result = 1.0;
    
    if (g > 0) {
        g = sqrt(g);
        float a = (g - c) / (g + c);
        float b = (c * (g + c) - 1) / (c * (g + c) + 1);
        result = 0.5 * a * a * (1 + b * b);
    }
    
    return result;
}


surface Glass(
    color diffuse_col = 0.8, 
    float ior = 1.45, 
    output closure color bsdf = 0)
{
    float real_ior = max(ior, IOR_THRESHOLD);
    float eta = backfacing()? 1.0 / real_ior : real_ior;
    float fr = FresnelDielectric(I, N, eta);
    
    bsdf = diffuse_col * (fr * reflection(N) + (1.0 - fr) * refraction(N, eta));
}

miercuri, 9 august 2023

Shader Editor - example 004.

Another example with the Shader Editor android application, this time simpler:
This shader displays some concentric circles that change their colors according to a sine and cosine formula.
This is the source code for the shader:
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif

uniform vec2 resolution;
uniform float time;

void main(void) {
 float mx = max(resolution.x, resolution.y);
 vec2 uv = gl_FragCoord.xy / mx;
 vec2 center = resolution / mx * 0.5;
 float t = time * 10.0;

 gl_FragColor = vec4(cos(t+distance(uv, center) / 222.0)+1.0,
  vec2(sin(t - distance(uv, center) * 76.0)) * 10.5,
  1.0);
}

sâmbătă, 7 ianuarie 2023

Blender 3D : Pharah v5 for Blender 3.0 from Overwatch game.

This is a free 3D model of Pharah from Overwatch for Blender 3.0 and it's a followup to the previous model I made which, despite being quite great overall, had one major limitation: importing outfits...

sâmbătă, 3 decembrie 2022

Medical VR Total Knee Surgical Simulator Demonstration - Wraith-VR - Ghost Medical

... Ghost Productions is pioneering the development of highly functional surgical simulations in virtual reality. It is now possible to demonstrate your medical products and surgical devices anywhere on a virtual patient with ideal pathology ...

marți, 8 noiembrie 2022

Shader Editor - example 003.

Today I will show you how to change a shader from shadertoy website to a shader for Shader Editor android aplication.
Open my shader example from shader toy website.
#define f length(fract(q*=m*=.6+.1*d++)-.5)

void mainImage( out vec4 fragColor, in vec2 fragCoord )
{
    float d = 0.;
    //vec3 uv = vec3(fragCoord.xy / iResolution.xy,iTime*.2);
    vec3 q = vec3(fragCoord.xy/iResolution.yy-13., iTime*.2);
    mat3 m = mat3(-2,-1,2, 3,-2,1, -1,1,3);
    vec3 col = vec3(pow(min(min(f,f),f), 7.)*40.);
    fragColor = vec4(clamp(col + vec3(0., 0.35, 0.5), 0.0, 1.0), 1.0);
}
In order to use it in the Shader Editor android application you need to make these changes:
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif

uniform vec2 resolution;
uniform float time;
uniform vec4 mouse;
uniform vec4 date;

#define f length(fract(q*=m*=.6+.01*d++)-.5)

void mainImage( out vec4 fragColor, in vec2 fragCoord )
{
  float d = 0.91;
  vec3 q = vec3(fragCoord.xy/resolution.yy-13., time*.2);
  mat3 m = mat3(-2,-3,6, 3,-1,1, 0,3,1);
  vec3 col = vec3(pow(min(min(f,f),f), 7.)*40.);
  fragColor = vec4(clamp(col + vec3(0., 0.35, 0.5), 0.0, 1.0), 1.0);
}

void main() {
vec4 fragment_color;
mainImage(fragment_color, gl_FragCoord.xy);
gl_FragColor = fragment_color;
}
You can see these changes are n the first part of the source code and just one on time.
You can play with this source code then use the option Set as wallpaper to have it on your phone.

vineri, 4 noiembrie 2022

Apple software : CozyBlanket.

CozyBlanket is a retopology app for the iPad designed as an accessible and relaxing experience. Its minimalist UI packs a fully featured mesh editor that can be used by directly drawing on the high poly mesh. CozyBlanket focuses on presenting retopology as an enjoyable, game-like process similar to solving a puzzle.
You can fins this application from the official website.

marți, 1 noiembrie 2022

Shader Editor - example 002.

This post is just one simple example, you can find many tutorials if you search on web for my work ...
If you don't have enough time to test my last shader source code then you can test now with another source code to have a beautiful blue effect.
Let's see the source code for this shader:
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif

uniform vec2 resolution;
uniform float time;
uniform vec4 mouse;
uniform vec4 date;

//#define time  iTime
#define R resolution.xy
void mainImage( out vec4 fragC, in vec2 fC)
{

//   vec2 pos = (fragCoord.xy/R.xy) * 8. - 4.;
   vec2 pos = (fC.xy/R.xy) * 8. - 4.;
    pos.x *= R.x / R.y;
    float s = .25, f = .0, k = f;
    vec3 p = vec3(pos, sin(time * .4) * .5 - .5)* s;

    for( int i=0; i< 9; i++ )
    {
           p = abs(p)/dot(p,p)- 1.5;
           k = length(p) ;
           p = p*k+k;
   }

   f = dot(p,p)* s;
   fragC= vec4(f*.5, f *1.2, f * 5., 0.111);;
}

void main() {
vec4 fragment_color;
mainImage(fragment_color, gl_FragCoord.xy);
gl_FragColor = fragment_color;
}

sâmbătă, 29 octombrie 2022

Shader Editor - example 001.

You can test your skills in shader theory with this excellent android application named Shader Editor.
The application can be found on google play.
After installation, you can use the eye icon to toggle between the source code and the output and the three dots icon to load, load samples, and save ...
If you want to rename it after creating a new shader or save it as a new shader, just click on the icon with three lines and double-click on the shader's name.
This is a shader created for my cardboard virtual reality and set for my eye anatomy ...
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif

uniform vec2 resolution;
uniform vec2 cameraAddent;
uniform mat2 cameraOrientation;
uniform samplerExternalOES cameraBack;

void main(void) {
vec2 uv = gl_FragCoord.xy / resolution.xy;
vec2 st = cameraAddent + uv* cameraOrientation * vec2(tan(0.805),cos(0.31));
gl_FragColor= vec4(
texture2D(cameraBack, st*vec2(2.0,1.0)).rgb,0.1);
}

luni, 26 septembrie 2022

Blender 3D : A new A.I addon tool.

In this video tutorial created by askNK, you can see useful tools are presented for generating and creating images using artificial intelligence.
You still need a card that knows CUDA and a lot of hard disk space.
Here is the video tutorial.

joi, 30 noiembrie 2017

The appleseed version 1.8.0 - beta released.

The appleseed is an open source, physically-based global illumination rendering engine primarily designed for animation and visual effects and is developed by a small team from VFX industry.
The day of November 28, 2017 come with this news: We’re proud to announce the release of appleseed 1.8.0-beta, the eighth release of our beta program and the 31th release since the first alpha in July 2010.
This tool supports:
  • fully programmable shading via Sony Pictures Imageworks’ Open Shading Language (OSL);
  • RGB/spectral/mixed rendering;
  • fast and robust transformation and deformation motion blur;
  • state-of-the-art ray traced subsurface scattering;
  • exhaustive Python and C++ APIs;
  • ... and many other production-oriented features.

You can read more on official website.
The next video from official vimeo channel is an old basic tutorial of appleseed software.

luni, 2 octombrie 2017

The Skanect software tool for 3D .

The official website come with this intro:
With Skanect, capturing a full color 3D model of an object, a person or a room has never been so easy and affordable. Skanect transforms your Structure Sensor, Microsoft Kinect or Asus Xtion camera into a low cost 3D scanner able to create 3D meshes out of real scenes in a few minutes. Enter the world of 3D scanning now!
Come with free and paid solution, need a good 3D sensor ( see official features on web) and GPU with CUDA.
I install this software and has a good interface.

luni, 25 septembrie 2017

News: Blender 3D - version 2.79

The Blender 3D is an open source software with a great team.
They tell us about this new released version of Blender 3D:
These are the release notes for Blender 2.79, released September 12th, 2017.
  • Denoiser
  • PBR Shader
  • Shadow Catcher
  • Filmic Color Management
  • Faster AMD OpenCL
  • over 700 bugs fixed
  • so much more!
Some features can be found here.
You can also download this 3D software from here.

After you download it, you need to run the install executable for Windows.
If you use a Linux OS then you just run it with: ./blender.
You can the windows of this 3D software tool into the next image:
The next step is to set the Blender 3D from menu: File -> User Preferences ( or use keys Ctr - Alt - U ).
First step:
 - set your CPU or graphic card - GPU into System tab;
 - set your addons to see if works with this version;
 - test all this with a simple example but using all renders: ( Blender, Cycles and Blender Game); 

Some addons I used: ANT Landscape, animation-nodes, blam, blender-light-studio, mira-tools, uvsquares. 
You can find more about this addons blenderartists website.

marți, 12 septembrie 2017

The Lithosphere Terrain Generator.



This is a 3D software for terrain generator named lithosphere.
Is simple to use it because use nodes.
You to create and export material textures and heightmaps intended for use in realtime graphics applications.

Features

  • Realtime terrain modification
  • Save/Open of scene.lth files
  • Simplex noise height source
  • Wind and Erosion algorithms
  • Gaussian Filtering
  • Mixing and Adjusting
  • Mathemathical operators
  • Float array and DXF mesh export
  • PNG texture export

Requirements

Lithosphere requires a fast computer and graphics card to operate. It also requires specific opengl compatibility
  • OpenGL shading language version 1.20
  • GL_ARB_texture_float
  • GL_ARB_pixel_buffer_object
  • GL_ARB_vertex_buffer_object
  • GL_ARB_framebuffer_object

Recommended system specs

  • Intel Quad Core CPU
  • 2gb RAM
  • Nvidia Geforce GTX-285
  • 1gb video ram

Working with

  • Nvidia Geforce GTX-285
  • Nvidia Geforce 8800 GTS
  • Nvidia Quadro FX1700 512mb