Tags » Computer Graphics

HalfEdge Mesh

Used HalfEdge Mesh Structure to construct 3D Geometry. The advantage of halfEdge is the adjacency information is preserved in geometry, and we can easily get the face next to current face, edge next to current vertex, edge surrounding a face, etc… 120 more words

Computer Graphics

A Great CGI Video for ReCore

This is a great short action-packed CGI video for a game called ReCore.  Enjoy.

Computers

Vintage petrol pump

Honestly do not know what came over me. Just saw an old photograph of a Mobil garage, including those iconic cylindrical petrol pumps.

I miss unique details like that in design everywhere. 59 more words

Ymist

LRHS Projection Mapping - Animation Experiments

I animate and render what the projector will playback and then project that animation back on the facade model, that has a similar texture to the real building, to simulate what it will look like on site. 1,093 more words

Computer Graphics

Weekly Photo Challenge: Atop

Was fooling around with a weather vane picture taken atop a building at Greenfield Village in Dearborn, Michigan with Microsoft PhotoDraw. 19 more words

Weekly Photo Challenge

Artist Birthday Quiz for 3/15~

Which computer artist was a professor in the School of Civil Engineering at Purdue?

Which artist wrote a series of “rounds” of an autobiographical manga?

6 more words

Visual Arts

Bezier Curve

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<math.h>

void bezier(int x,int y[4])
{
    int gd=DETECT,gm;
    int i;
    double t,xt,yt;
    initgraph(&gd,&gm,"c:\\tc\\bgi");
    for(t=0.0;t<1.0;t+=00.0005)
    {
        xt=pow(1-t,3)*x[0]+t*pow(1-t,2)*x[1]+3*pow(t,2)*(1-t)*x[2]+pow(t,3)*x[3];
        yt=pow(1-t,3)*y[0]+t*pow(1-t,2)*y[1]+3*pow(t,2)*(1-t)*y[2]+pow(t,3)*y[3];
        putpixel(xt,yt,WHITE);
    }
    for(i=0;i<4;i++)
        putpixel(x[i],y[i],YELLOW);
    getch();
    closegraph();
    return;
}

void main()
{
    int x[4],y[4],i;
    printf("\nEnter the X and Y coordinates of the four control points:");
    for(i=0;i<4;i++)
        scanf("%d%d",&x[i],&y[i]);
    bezier(x,y);
}

Output

Computer Graphics