Accueil > > > VISUALISATION DE BLOB EN 2D AVEC L'ALGORITHME DU MARCHING SQUARE
VISUALISATION DE BLOB EN 2D AVEC L'ALGORITHME DU MARCHING SQUARE
Information sur la source
Description
C'est juste un petit code, pour montrer comme fonctionne l'algorithme du marching square. C'est comme le marching cube, mais en 2D. Ce code permet aussi de montrer une surface implicite : les blobs. Cela ressemble un peu au lampe à lave. Le blob est composées de plusieurs cercles (des spheres quand c'est en 3D), qui on une zone d'influence. Quand deux cercles sont proches l'un de l'autres, leur influences se cumulent, et font transformer les 2 cercles en une seule forme qui se modifie quand les cercles bougent. Le marching squares fonctionne de la manière suivante : on decoupe l'espace avec une grille régulière, sur chaque point de la grille on calcul l'inflence du blob, si celui ci depasse un certain niveau, on active le point. Apres dans chaque carré de la grille, on relie les points qui sont activées.
Source
- #include <math.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- #include <GL/glut.h>
-
- #define BOTTOM j*inter
- #define TOP (j+1)*inter
- #define RIGHT (i+1)*inter
- #define LEFT i*inter
- #define TRUE 1
- #define FALSE 0
- #define BOOL char
- /*coleur de fond*/
- float background[]={0,0,0};
- /*couleur du blob*/
- float g_foward[]={1,0,0};
- /*structure simple de cercle*/
- typedef struct{
- float x;
- float y;
- float rayon;
- } Cercle;
-
- /* nombre de case dans la grille*/
- int g_tailleGrille;
- /* zone d'g_influence des cercle qui composent le blob*/
- double g_influence;
- /* stockage des g_cercles*/
- Cercle g_cercles[5];
-
- /* distance d'un point a un cercle */
- float equationSphere(Cercle c, float px, float py){
- return ((px-c.x)*(px-c.x)+(py-c.y)*(py-c.y)-c.rayon*c.rayon);
- }
-
- /* fonction qui calcule le "poids" d'un point sur la grille */
- double calculBlob(float posx, float posy){
- double val = 0;
- int k;
- for(k=0; k<5; k++){
- val += exp(-100*equationSphere(g_cercles[k], posx, posy));
- }
- val/=5;
- return val;
- }
- /* calcul de l'interpolation lineaire entre 2 points */
- double inter_lin(float Fp,float Fq){
- return (g_influence-Fp)/(Fq-Fp);
- }
-
- /* fonction qui parcours la grilles pour savoir quelle points appartiennent
- ** au blobs et, dessin des blobs*/
- void marchingSquares(){
- int i,j; /*pour le parcours de la grille*/
- float inter = 1.0/g_tailleGrille; /*espace entre 2 lignes de la grille*/
- BOOL bl, br, tr, tl; /* booleens sur les 4 sommets du carré*/
- float fbl, fbr, ftr, ftl; /* poids de chaque sommet */
- float p1x, p1y, p2x, p2y, p3x, p3y, p4x, p4y; /* valeur des points "intermédaires" sur les cotés du carré */
- int actifs;
- for(i=0; i<g_tailleGrille; i++){
- for(j=0; j<g_tailleGrille; j++){
- /* on calcule le poids de chaque sommet du carré*/
- fbl = calculBlob(LEFT,BOTTOM);
- if(fbl >= g_influence)
- bl = TRUE;
- else
- bl= FALSE;
- fbr = calculBlob(RIGHT,BOTTOM);
- if(fbr >= g_influence)
- br = TRUE;
- else
- br= FALSE;
- ftr = calculBlob(RIGHT,TOP);
- if(ftr >= g_influence)
- tr = TRUE;
- else
- tr= FALSE;
- ftl = calculBlob(LEFT,TOP);
- if(ftl >= g_influence)
- tl = TRUE;
- else
- tl= FALSE;
- /* calcul des positions intermédaires */
- p1x = LEFT;
- p1y = j*inter+inter*inter_lin(fbl, ftl);
- p2x = i*inter+inter*inter_lin(fbl, fbr);
- p2y = BOTTOM;
- p3x = RIGHT;
- p3y = j*inter+inter*inter_lin(fbr, ftr);
- p4x = i*inter+inter*inter_lin(ftl, ftr);
- p4y = TOP;
- /* En fonction des poids de chaque sommet on dessin le carré différement*/
- actifs = bl+br+tr+tl;
- glColor3fv(g_foward);
- if(actifs == 4){
- /* Les 4 sommets dedans*/
- if(bl && br && tr && tl){
- /* dessin d'un carré normal */
- glBegin(GL_QUADS);
- glVertex2f(LEFT, BOTTOM);
- glVertex2f(RIGHT, BOTTOM);
- glVertex2f(RIGHT, TOP);
- glVertex2f(LEFT, TOP);
- glEnd();
- }
- }
- else if(actifs == 3){
- /* 3 points dedans */
- /* dessin d'un carré avec une corne en moins */
- /* (utilisation des valeurs intermédiares calculées avant */
- glBegin(GL_TRIANGLE_FAN);
- if(bl==FALSE){
- glVertex2f(p1x, p1y);
- glVertex2f(p2x, p2y);
- glVertex2f(RIGHT, BOTTOM);
- glVertex2f(RIGHT, TOP);
- glVertex2f(LEFT, TOP);
- glVertex2f(p1x, p1y);
- }
- else if(br==FALSE){
- glVertex2f(LEFT, BOTTOM);
- glVertex2f(p2x, p2y);
- glVertex2f(p3x, p3y);
- glVertex2f(RIGHT, TOP);
- glVertex2f(LEFT, TOP);
- glVertex2f(LEFT, BOTTOM);
- }
- else if(tr==FALSE){
- glVertex2f(p3x, p3y);
- glVertex2f(p4x, p4y);
- glVertex2f(LEFT, TOP);
- glVertex2f(LEFT, BOTTOM);
- glVertex2f(RIGHT, BOTTOM);
- glVertex2f(p3x, p3y);
- }
- else if(tl==FALSE){
- glVertex2f(p4x, p4y);
- glVertex2f(p1x, p1y);
- glVertex2f(LEFT, BOTTOM);
- glVertex2f(RIGHT, BOTTOM);
- glVertex2f(RIGHT, TOP);
- glVertex2f(p4x, p4y);
- }
- glEnd();
- }
- else if(actifs == 2){ /* 2 points d'activé*/
- if(bl == tl){
- if(bl==TRUE){
- glBegin(GL_QUADS);
- glVertex2f(p2x, p2y);
- glVertex2f(p4x, p4y);
- glVertex2f(LEFT, TOP);
- glVertex2f(LEFT, BOTTOM);
- glEnd();
- }
- else{
- glBegin(GL_QUADS);
- glVertex2f(p2x, p2y);
- glVertex2f(RIGHT, BOTTOM);
- glVertex2f(RIGHT, TOP);
- glVertex2f(p4x, p4y);
- glEnd();
- }
- }
- else if(bl == br){
- if(bl==TRUE){
- glBegin(GL_QUADS);
- glVertex2f(LEFT, BOTTOM);
- glVertex2f(RIGHT, BOTTOM);
- glVertex2f(p3x, p3y);
- glVertex2f(p1x, p1y);
- glEnd();
- }
- else{
- glBegin(GL_QUADS);
- glVertex2f(p3x, p3y);
- glVertex2f(RIGHT, TOP);
- glVertex2f(LEFT, TOP);
- glVertex2f(p1x, p1y);
- glEnd();
- }
- }
- else{
- if(bl == tr && bl == FALSE){
- glBegin(GL_TRIANGLE_FAN);
- glVertex2f(p1x, p1y);
- glVertex2f(p2x, p2y);
- glVertex2f(RIGHT, BOTTOM);
- glVertex2f(p3x, p3y);
- glVertex2f(p4x, p4y);
- glVertex2f(LEFT, TOP);
- glEnd();
- }
- else{
- glBegin(GL_TRIANGLE_FAN);
- glVertex2f(LEFT, BOTTOM);
- glVertex2f(p2x, p2y);
- glVertex2f(p3x, p3y);
- glVertex2f(RIGHT, TOP);
- glVertex2f(p4x, p4y);
- glVertex2f(p1x, p1y);
- glEnd();
- }
- }
- }
- else if(actifs==1){
- /* juste un sommet dans le blob*/
- glBegin(GL_TRIANGLES);
- if(bl==TRUE){
- glVertex2f(p1x, p1y);
- glVertex2f(LEFT, BOTTOM);
- glVertex2f(p2x, p2y);
- }
- else if(br==TRUE){
- glVertex2f(p2x, p2y);
- glVertex2f(RIGHT, BOTTOM);
- glVertex2f(p3x, p3y);
- }
- else if(tr==TRUE){
- glVertex2f(p3x, p3y);
- glVertex2f(RIGHT, TOP);
- glVertex2f(p4x, p4y);
- }
- else if(tl==TRUE){
- glVertex2f(p4x, p4y);
- glVertex2f(LEFT, TOP);
- glVertex2f(p1x, p1y);
- }
- glEnd();
- }
- }
- }
- }
-
- void randg_cercles(){
- /* génération de g_cercles de tailles aléatoire*/
- g_cercles[0].x = 0.5;
- g_cercles[0].y = 0.5;
- g_cercles[0].rayon = 0.15;
- g_cercles[1].x = 0.25;
- g_cercles[1].y = 0.25;
- g_cercles[1].rayon = (((float)rand()/6)/RAND_MAX)+0.1;
- g_cercles[2].x = 0.25;
- g_cercles[2].y = 0.75;
- g_cercles[2].rayon = (((float)rand()/6)/RAND_MAX)+0.1;
- g_cercles[3].x = 0.75;
- g_cercles[3].y = 0.25;
- g_cercles[3].rayon = (((float)rand()/6)/RAND_MAX)+0.1;
- g_cercles[4].x = 0.75;
- g_cercles[4].y = 0.75;
- g_cercles[4].rayon = (((float)rand()/6)/RAND_MAX)+0.1;
- g_influence = 0.5;
- }
-
- /* fonctions openGL */
-
- /* rafraississement de la scene */
- void reshape(int width, int height) {
- glViewport(0, 0, width, height);
- glMatrixMode(GL_PROJECTION);
- glLoadIdentity();
- glMatrixMode(GL_MODELVIEW);
- glLoadIdentity();
- }
-
- /* affichage de la scene */
- void display(void){
- int i=0;
- glClearColor(0.0, 0.0, 0.0, 0.0);
- glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
- glLoadIdentity();
- glTranslatef(-1,-1, 0);
- glScalef(2, 2, 2);
- /*dessin du blob*/
- marchingSquares();
- float inter=1.0/g_tailleGrille;
-
- /*dessin de la grille*/
- glColor3f(0.5,0.5,0.5);
- glBegin(GL_LINES);
- for(i=0; i<=g_tailleGrille; i++){
- glVertex2f(i*inter,0);
- glVertex2f(i*inter,1);
- glVertex2f(0, i*inter);
- glVertex2f(1, i*inter);
- }
- glEnd();
- glutSwapBuffers();
- glutPostRedisplay();
- }
- /* gestion clavier */
- void keyboard(unsigned char key, int x, int y){
- switch (key) {
- default:
- case 'q':
- exit(1);
- break;
- }
- glutPostRedisplay();
- }
- /* gestion des touches spéciales du clavier */
- void keyboardSpe(int key, int x, int y){
- switch(key){
- case GLUT_KEY_UP:
- g_tailleGrille++;
- break;
- case GLUT_KEY_DOWN:
- if(g_tailleGrille>2)
- g_tailleGrille--;
- break;
- case GLUT_KEY_RIGHT:
- if(g_influence<0.5)
- g_influence += 0.1;
- break;
- case GLUT_KEY_LEFT:
- if(g_influence>0.2)
- g_influence -= 0.1;
- break;
- case GLUT_KEY_F1:
- randg_cercles();
- break;
- default:
- break;
- }
- glutPostRedisplay();
- }
- /* deplacement de la souris*/
- void motion(int x, int y){
- float posx = ((float)x)/512;
- float posy = 1-((float)y)/512;
- g_cercles[0].x = posx;
- g_cercles[0].y = posy;
- glutPostRedisplay();
- }
-
- int main(int argc, char* argv[]){
- printf("Commandes: souris -> deplacement du blob\ntouches haut/bas -> augmentation/diminution taille grille\ntouches gauche/droite -> augmentation/diminution de l'g_influence des blobs\nF1 -> changement de la taille des blobs");
- srand(time(0));
- g_tailleGrille = 50;
- g_influence = 0.5;
- randg_cercles();
- glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE);
- glutInitWindowSize(512, 512);
- glutInitWindowPosition(50, 50);
- glutCreateWindow("MS");
- glutReshapeFunc(reshape);
- glutDisplayFunc(display);
- glutKeyboardFunc(keyboard);
- glutSpecialFunc(keyboardSpe);
- /* dès que la souris passe sur la fentre le blob bouge*/
- glutPassiveMotionFunc(motion);
- glutMainLoop();
- return 0;
- }
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <GL/glut.h>
#define BOTTOM j*inter
#define TOP (j+1)*inter
#define RIGHT (i+1)*inter
#define LEFT i*inter
#define TRUE 1
#define FALSE 0
#define BOOL char
/*coleur de fond*/
float background[]={0,0,0};
/*couleur du blob*/
float g_foward[]={1,0,0};
/*structure simple de cercle*/
typedef struct{
float x;
float y;
float rayon;
} Cercle;
/* nombre de case dans la grille*/
int g_tailleGrille;
/* zone d'g_influence des cercle qui composent le blob*/
double g_influence;
/* stockage des g_cercles*/
Cercle g_cercles[5];
/* distance d'un point a un cercle */
float equationSphere(Cercle c, float px, float py){
return ((px-c.x)*(px-c.x)+(py-c.y)*(py-c.y)-c.rayon*c.rayon);
}
/* fonction qui calcule le "poids" d'un point sur la grille */
double calculBlob(float posx, float posy){
double val = 0;
int k;
for(k=0; k<5; k++){
val += exp(-100*equationSphere(g_cercles[k], posx, posy));
}
val/=5;
return val;
}
/* calcul de l'interpolation lineaire entre 2 points */
double inter_lin(float Fp,float Fq){
return (g_influence-Fp)/(Fq-Fp);
}
/* fonction qui parcours la grilles pour savoir quelle points appartiennent
** au blobs et, dessin des blobs*/
void marchingSquares(){
int i,j; /*pour le parcours de la grille*/
float inter = 1.0/g_tailleGrille; /*espace entre 2 lignes de la grille*/
BOOL bl, br, tr, tl; /* booleens sur les 4 sommets du carré*/
float fbl, fbr, ftr, ftl; /* poids de chaque sommet */
float p1x, p1y, p2x, p2y, p3x, p3y, p4x, p4y; /* valeur des points "intermédaires" sur les cotés du carré */
int actifs;
for(i=0; i<g_tailleGrille; i++){
for(j=0; j<g_tailleGrille; j++){
/* on calcule le poids de chaque sommet du carré*/
fbl = calculBlob(LEFT,BOTTOM);
if(fbl >= g_influence)
bl = TRUE;
else
bl= FALSE;
fbr = calculBlob(RIGHT,BOTTOM);
if(fbr >= g_influence)
br = TRUE;
else
br= FALSE;
ftr = calculBlob(RIGHT,TOP);
if(ftr >= g_influence)
tr = TRUE;
else
tr= FALSE;
ftl = calculBlob(LEFT,TOP);
if(ftl >= g_influence)
tl = TRUE;
else
tl= FALSE;
/* calcul des positions intermédaires */
p1x = LEFT;
p1y = j*inter+inter*inter_lin(fbl, ftl);
p2x = i*inter+inter*inter_lin(fbl, fbr);
p2y = BOTTOM;
p3x = RIGHT;
p3y = j*inter+inter*inter_lin(fbr, ftr);
p4x = i*inter+inter*inter_lin(ftl, ftr);
p4y = TOP;
/* En fonction des poids de chaque sommet on dessin le carré différement*/
actifs = bl+br+tr+tl;
glColor3fv(g_foward);
if(actifs == 4){
/* Les 4 sommets dedans*/
if(bl && br && tr && tl){
/* dessin d'un carré normal */
glBegin(GL_QUADS);
glVertex2f(LEFT, BOTTOM);
glVertex2f(RIGHT, BOTTOM);
glVertex2f(RIGHT, TOP);
glVertex2f(LEFT, TOP);
glEnd();
}
}
else if(actifs == 3){
/* 3 points dedans */
/* dessin d'un carré avec une corne en moins */
/* (utilisation des valeurs intermédiares calculées avant */
glBegin(GL_TRIANGLE_FAN);
if(bl==FALSE){
glVertex2f(p1x, p1y);
glVertex2f(p2x, p2y);
glVertex2f(RIGHT, BOTTOM);
glVertex2f(RIGHT, TOP);
glVertex2f(LEFT, TOP);
glVertex2f(p1x, p1y);
}
else if(br==FALSE){
glVertex2f(LEFT, BOTTOM);
glVertex2f(p2x, p2y);
glVertex2f(p3x, p3y);
glVertex2f(RIGHT, TOP);
glVertex2f(LEFT, TOP);
glVertex2f(LEFT, BOTTOM);
}
else if(tr==FALSE){
glVertex2f(p3x, p3y);
glVertex2f(p4x, p4y);
glVertex2f(LEFT, TOP);
glVertex2f(LEFT, BOTTOM);
glVertex2f(RIGHT, BOTTOM);
glVertex2f(p3x, p3y);
}
else if(tl==FALSE){
glVertex2f(p4x, p4y);
glVertex2f(p1x, p1y);
glVertex2f(LEFT, BOTTOM);
glVertex2f(RIGHT, BOTTOM);
glVertex2f(RIGHT, TOP);
glVertex2f(p4x, p4y);
}
glEnd();
}
else if(actifs == 2){ /* 2 points d'activé*/
if(bl == tl){
if(bl==TRUE){
glBegin(GL_QUADS);
glVertex2f(p2x, p2y);
glVertex2f(p4x, p4y);
glVertex2f(LEFT, TOP);
glVertex2f(LEFT, BOTTOM);
glEnd();
}
else{
glBegin(GL_QUADS);
glVertex2f(p2x, p2y);
glVertex2f(RIGHT, BOTTOM);
glVertex2f(RIGHT, TOP);
glVertex2f(p4x, p4y);
glEnd();
}
}
else if(bl == br){
if(bl==TRUE){
glBegin(GL_QUADS);
glVertex2f(LEFT, BOTTOM);
glVertex2f(RIGHT, BOTTOM);
glVertex2f(p3x, p3y);
glVertex2f(p1x, p1y);
glEnd();
}
else{
glBegin(GL_QUADS);
glVertex2f(p3x, p3y);
glVertex2f(RIGHT, TOP);
glVertex2f(LEFT, TOP);
glVertex2f(p1x, p1y);
glEnd();
}
}
else{
if(bl == tr && bl == FALSE){
glBegin(GL_TRIANGLE_FAN);
glVertex2f(p1x, p1y);
glVertex2f(p2x, p2y);
glVertex2f(RIGHT, BOTTOM);
glVertex2f(p3x, p3y);
glVertex2f(p4x, p4y);
glVertex2f(LEFT, TOP);
glEnd();
}
else{
glBegin(GL_TRIANGLE_FAN);
glVertex2f(LEFT, BOTTOM);
glVertex2f(p2x, p2y);
glVertex2f(p3x, p3y);
glVertex2f(RIGHT, TOP);
glVertex2f(p4x, p4y);
glVertex2f(p1x, p1y);
glEnd();
}
}
}
else if(actifs==1){
/* juste un sommet dans le blob*/
glBegin(GL_TRIANGLES);
if(bl==TRUE){
glVertex2f(p1x, p1y);
glVertex2f(LEFT, BOTTOM);
glVertex2f(p2x, p2y);
}
else if(br==TRUE){
glVertex2f(p2x, p2y);
glVertex2f(RIGHT, BOTTOM);
glVertex2f(p3x, p3y);
}
else if(tr==TRUE){
glVertex2f(p3x, p3y);
glVertex2f(RIGHT, TOP);
glVertex2f(p4x, p4y);
}
else if(tl==TRUE){
glVertex2f(p4x, p4y);
glVertex2f(LEFT, TOP);
glVertex2f(p1x, p1y);
}
glEnd();
}
}
}
}
void randg_cercles(){
/* génération de g_cercles de tailles aléatoire*/
g_cercles[0].x = 0.5;
g_cercles[0].y = 0.5;
g_cercles[0].rayon = 0.15;
g_cercles[1].x = 0.25;
g_cercles[1].y = 0.25;
g_cercles[1].rayon = (((float)rand()/6)/RAND_MAX)+0.1;
g_cercles[2].x = 0.25;
g_cercles[2].y = 0.75;
g_cercles[2].rayon = (((float)rand()/6)/RAND_MAX)+0.1;
g_cercles[3].x = 0.75;
g_cercles[3].y = 0.25;
g_cercles[3].rayon = (((float)rand()/6)/RAND_MAX)+0.1;
g_cercles[4].x = 0.75;
g_cercles[4].y = 0.75;
g_cercles[4].rayon = (((float)rand()/6)/RAND_MAX)+0.1;
g_influence = 0.5;
}
/* fonctions openGL */
/* rafraississement de la scene */
void reshape(int width, int height) {
glViewport(0, 0, width, height);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
}
/* affichage de la scene */
void display(void){
int i=0;
glClearColor(0.0, 0.0, 0.0, 0.0);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glLoadIdentity();
glTranslatef(-1,-1, 0);
glScalef(2, 2, 2);
/*dessin du blob*/
marchingSquares();
float inter=1.0/g_tailleGrille;
/*dessin de la grille*/
glColor3f(0.5,0.5,0.5);
glBegin(GL_LINES);
for(i=0; i<=g_tailleGrille; i++){
glVertex2f(i*inter,0);
glVertex2f(i*inter,1);
glVertex2f(0, i*inter);
glVertex2f(1, i*inter);
}
glEnd();
glutSwapBuffers();
glutPostRedisplay();
}
/* gestion clavier */
void keyboard(unsigned char key, int x, int y){
switch (key) {
default:
case 'q':
exit(1);
break;
}
glutPostRedisplay();
}
/* gestion des touches spéciales du clavier */
void keyboardSpe(int key, int x, int y){
switch(key){
case GLUT_KEY_UP:
g_tailleGrille++;
break;
case GLUT_KEY_DOWN:
if(g_tailleGrille>2)
g_tailleGrille--;
break;
case GLUT_KEY_RIGHT:
if(g_influence<0.5)
g_influence += 0.1;
break;
case GLUT_KEY_LEFT:
if(g_influence>0.2)
g_influence -= 0.1;
break;
case GLUT_KEY_F1:
randg_cercles();
break;
default:
break;
}
glutPostRedisplay();
}
/* deplacement de la souris*/
void motion(int x, int y){
float posx = ((float)x)/512;
float posy = 1-((float)y)/512;
g_cercles[0].x = posx;
g_cercles[0].y = posy;
glutPostRedisplay();
}
int main(int argc, char* argv[]){
printf("Commandes: souris -> deplacement du blob\ntouches haut/bas -> augmentation/diminution taille grille\ntouches gauche/droite -> augmentation/diminution de l'g_influence des blobs\nF1 -> changement de la taille des blobs");
srand(time(0));
g_tailleGrille = 50;
g_influence = 0.5;
randg_cercles();
glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE);
glutInitWindowSize(512, 512);
glutInitWindowPosition(50, 50);
glutCreateWindow("MS");
glutReshapeFunc(reshape);
glutDisplayFunc(display);
glutKeyboardFunc(keyboard);
glutSpecialFunc(keyboardSpe);
/* dès que la souris passe sur la fentre le blob bouge*/
glutPassiveMotionFunc(motion);
glutMainLoop();
return 0;
}
Conclusion
Pour l'instant pas de bugs connus.
Sources de la même categorie
Commentaires et avis
Discussions en rapport avec ce code source dans le forum
Demande d'une nouvelle rubrique [ par ndj55 ]
voilà,à moins que cela ne rentre dans la categorie 'graphisme' ou 'multimedia',la creation d'une rubrique OpenGL me semble etre une bonne idée,directX
Catégorie OpenGL ajouté et aussi dans le forum ! [ par Arnotic ]
Salut, Pas la peine de faire une révolution ! Je n'avais pas vu de message pour l'OpenGl pour ce site donc je n'en n'vais pas créé ! Maintenant il
nouveau forum opengl [ par Jcom ]
Un nouveau forum OpenGL français vient de s'ouvrir sur le site : www.glinfrench.fr.st (tutoriaux opengl/directx). Le forum est entièrement dédié à ope
Cherche codeur(s) OpenGL / Paris [ par Kard ]
Salut tout le monde :)Je suis a la recherche de codeurs OpenGL experimentés sur Paris, pour un projet de moteur un peu special.. ;)Pour plus de rensei
glut - openGL [ par loss ]
Quels sont les fichiers necessaires pour utiliser glut(je compile avec VC++)?Ou est ce que je peux les telecharger?Merci d avance.
OpenGL [ par Garfield ]
Salut à tous !!!A quel endroit est il possible de chopper la librairie<glut.h> qui est abscente sur mon PC.Merci d'avance@+Garfield
Problème OpenGL [ par GoldenEye ]
Ca ressemble à un mess déjà posé mais ce n'est pas un mess déjà poséJe veux faire un prgm avec glut. J'ai mis dans les options settings de VC++ les li
Comment afficher du texte dans un fenêtre OpenGl?? [ par mastave ]
Comment afficher du texte dans un fenêtre OpenGl??Et avec un police spéciale??
Objects 3D Opengl [ par mastave ]
Comment inclure dans un fenêtre OpenGl un fichier 3D DXF ou3DS???
DEV-C++ : comment faire en mode opengl pour capturer les carateres tapés [ par FLASH92 ]
Bonjour, mesdemoiselles, mesdames et messieursJe voudrait savoir comment faire pour capturer en opengl et en mode graphique les carateres frappés au c
|
Derniers Blogs
[DESIGN PATTERNS] PARTIE 2: DIP: DEPENDENCY INVERSION PRINCIPLE[DESIGN PATTERNS] PARTIE 2: DIP: DEPENDENCY INVERSION PRINCIPLE par tja
C'est le dernier principe des principes du Design Orienté Objet (The Principles of Object Oriented Design) fondés par Robert C. Martin plus connu sous le pseudonyme d'Uncle Bob.
l'image empruntée de LosTechies.
Je ne traite pas les principes dans...
Cliquez pour lire la suite de l'article par tja TECHDAYS PARIS 2010 : SHAREPOINT 2010 POUR LES DéVELOPPEURSTECHDAYS PARIS 2010 : SHAREPOINT 2010 POUR LES DéVELOPPEURS par ROMELARD Fabrice
Animé par: Laurent Cotton Le développement dans SharePoint 2010 passe par plusieurs axes qui seront évoqués dans cette session, mais plus particulièrement les développements simples lié au besoin Business Business Connectivity Services Ce BCS es...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice TECHDAYS PARIS 2010 : PLEINIèRE DERNIER JOURTECHDAYS PARIS 2010 : PLEINIèRE DERNIER JOUR par ROMELARD Fabrice
Cette session est la dernière pleinière de ces 3 jours de TechDays Paris 2010. Généralement, cette troisième journée est plus axée sur l'avenir vu par Microsoft. Après un retour sur l'avenir vu par la Science Fiction ou par ...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice UNE JOLIE-HORLOGE ET PAS QU'UN PEU !UNE JOLIE-HORLOGE ET PAS QU'UN PEU ! par neodante
Pour les possesseurs d'iPhone, ça y est Bijin Tokei - qui se traduit littéralement en Français par " Jolie Horloge " - est arrivé et GRATUITEMENT s'il vous plaît ! Après la version Tokyo, Hokkaido, night club, racing, Gal, "pour les mademoiselles'", . voi...
Cliquez pour lire la suite de l'article par neodante TECHDAYS PARIS 2010 : CONNECTEZ VOS DONNéES à SHAREPOINT 2010 AVEC LES BUSINESS CONNECTIVITY SERVICESTECHDAYS PARIS 2010 : CONNECTEZ VOS DONNéES à SHAREPOINT 2010 AVEC LES BUSINESS CONNECTIVITY SERVICES par ROMELARD Fabrice
Animé par: Gaetan Bouveret et Julien Chomarat Business Connectivity Services (BCS) est dans SharePoint 2010 la version 2 de Business Data Catalog (BDC dans SharePoint 2007). Il s'agit de la solution permettant de visualiser des données provenan...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice
Forum
RE : WIN APIRE : WIN API par omarino_007
Cliquez pour lire la suite par omarino_007
Logiciels
DB-MAIN (9.1.0)DB-MAIN (9.1.0)DB-MAIN is a data-modeling and data-architecture tool. It is designed to help developers and anal... Cliquez pour télécharger DB-MAIN Xilisoft DPG Convertisseur (5.1.37.0120)XILISOFT DPG CONVERTISSEUR (5.1.37.0120)Xilisoft DPG Convertisseur offre aux fans de Nintendo DS une bonne solution leur permettant de dé... Cliquez pour télécharger Xilisoft DPG Convertisseur GraphicsGale (2.01.01)GRAPHICSGALE (2.01.01)GraphicsGale est un logiciel de PixelArt avec de nombreuse fonctionnalités permettant de réalisé ... Cliquez pour télécharger GraphicsGale Architecte 3D (Platinum 2010)ARCHITECTE 3D (PLATINUM 2010)Architecte 3D Platinium vous permet de concevoir facilement les plans votre future maison, de l'é... Cliquez pour télécharger Architecte 3D TeamViewer 5 (TeamViewer 5)TEAMVIEWER 5 (TEAMVIEWER 5)Dépanner un ami,expliquer une manipulation devient un jeu d'enfant.
Prise en main d'un autre ord... Cliquez pour télécharger TeamViewer 5
|