rallyesport

Nombre de messages: 76 Age: 16 Localisation: 41 ( centre ) Loisire: rallye Date d'inscription: 22/09/2006
 | Sujet: c'est bon !!! Mar 28 Nov - 18:41 | |
| c'est bon, j'ai 90% de chance d'avoire le jeux a noel !!! donc avent que jai le jeux je voudrai avoire des petite info pour changé les couleur . si ca mais longtemp, ce qu'il faut utilisé comme logistiel ! etc ....... |
|
Maxcus Admin
Nombre de messages: 696 Age: 24 Localisation: Rochetaillée (42) Loisire: Tous sur se forum lol!!!! Date d'inscription: 06/11/2005
 | Sujet: Re: c'est bon !!! Mar 28 Nov - 18:48 | |
| Ok cool alors Alors pour changer les deco des voitures, perso j'utilise photoshop car il existe des templates assez simple d'utilisation quand on est abitié a se programme. Mais n'importe qu'elle logiciel de trètement d'image peut faire. Ensuite il faut un petit programme qui s'appel DXT1 Bitmap manipulator que tu trouvera la: ftp://ftp-developpez.com/jeux/sources/opengl/fichiers/FORMAT_dds.zipIl sert a convertire les fichier BMP(bipmap) en DDS qui est la norme des texture de le jeu. Je te conseille fortement d'installer un mod pour se jeu qui est RSRBR3 (normalment avant la fin d'année, le 4 devrait sortir  ) car tu auras la possibiliter de jouer avec toutes les voitures sortie sur se jeu sur toutes les surfasse. Le lien pour le telecharger, est sur se site : http://rallyesim.com/En plus il y a plein de championnat d'organisé et c'est très simpa. |
|
Maxcus Admin
Nombre de messages: 696 Age: 24 Localisation: Rochetaillée (42) Loisire: Tous sur se forum lol!!!! Date d'inscription: 06/11/2005
 | Sujet: Re: c'est bon !!! Mar 28 Nov - 21:06 | |
| Non pas dutt facil lol. La tu vas retrer dans le monde de la simulation Enfette il fuat le jeu Richard burns rallye et rsrbr4 est juste un mode pour se jeur tu as toutes les info sur le lien que je t'ai filé. |
|
Maxcus Admin
Nombre de messages: 696 Age: 24 Localisation: Rochetaillée (42) Loisire: Tous sur se forum lol!!!! Date d'inscription: 06/11/2005
 | Sujet: Re: c'est bon !!! Mer 29 Nov - 15:36 | |
| ben c'est gratuit faut juste acheter Richard Burns Rallye |
|
rallyesport

Nombre de messages: 76 Age: 16 Localisation: 41 ( centre ) Loisire: rallye Date d'inscription: 22/09/2006
 | Sujet: Re: c'est bon !!! Mer 29 Nov - 18:17 | |
| j'ai telechargé le logistiel et ca me donne ca : | Citation: | /* * dds.c -- dds texture loader * last modification: feb. 9, 2006 * * Copyright (c) 2005-2006 David HENRY * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * gcc -Wall -ansi -L/usr/X11R6/lib -lGL -lGLU -lglut dds.c -o dds */ #ifndef _WIN32 #ifndef GL_GLEXT_PROTOTYPES #define GL_GLEXT_PROTOTYPES 1 #endif /* GL_GLEXT_PROTOTYPES */ #endif /* _WIN32 */ #include <GL/glut.h> #include <GL/glext.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef _WIN32 PFNGLCOMPRESSEDTEXIMAGE2DARBPROC glCompressedTexImage2D = NULL; #endif /* _WIN32 */
/* OpenGL texture info */ typedef struct { GLsizei width; GLsizei height; GLenum format; GLint internalFormat; GLuint id; GLubyte *texels; GLint numMipmaps; } gl_texture_t;
/* DirectDraw's structures */ typedef struct { GLuint size; GLuint flags; GLuint fourCC; GLuint bpp; GLuint redMask; GLuint greenMask; GLuint blueMask; GLuint alphaMask; } DDPixelFormat;
typedef struct { GLuint caps; GLuint caps2; GLuint caps3; GLuint caps4; } DDSCaps;
typedef struct { GLuint lowVal; GLuint highVal; } DDColorKey;
typedef struct { GLuint size; GLuint flags; GLuint height; GLuint width; GLuint pitch; GLuint depth; GLuint mipMapLevels; GLuint alphaBitDepth; GLuint reserved; GLuint surface; DDColorKey ckDestOverlay; DDColorKey ckDestBlt; DDColorKey ckSrcOverlay; DDColorKey ckSrcBlt; DDPixelFormat format; DDSCaps caps; GLuint textureStage; } DDSurfaceDesc;
#define MAKEFOURCC(ch0, ch1, ch2, ch3) \ (GLuint)( \ (((GLuint)(GLubyte)(ch3) << 24) & 0xFF000000) | \ (((GLuint)(GLubyte)(ch2) << 16) & 0x00FF0000) | \ (((GLuint)(GLubyte)(ch1) << & 0x0000FF00) | \ ((GLuint)(GLubyte)(ch0) & 0x000000FF) ) #define FOURCC_DXT1 MAKEFOURCC('D', 'X', 'T', '1') #define FOURCC_DXT3 MAKEFOURCC('D', 'X', 'T', '3') #define FOURCC_DXT5 MAKEFOURCC('D', 'X', 'T', '5') /* texture Id */ GLuint texId; #ifndef max static int max (int a, int b) { return ((a > b) ? a : b); } #endif
gl_texture_t * ReadDDSFile (const char *filename) { DDSurfaceDesc ddsd; gl_texture_t *texinfo; FILE *fp; char magic[4]; int mipmapFactor; long bufferSize, curr, end; /* open the file */ fp = fopen (filename, "rb"); if (!fp) { fprintf (stderr, "error: couldn't open \"%s\"!\n", filename); return NULL; } /* read magic number and check if valid .dds file */ fread (&magic, sizeof (char), 4, fp); if (strncmp (magic, "DDS ", 4) != 0) { fprintf (stderr, "the file \"%s\" doesn't appear to be" "a valid .dds file!\n", filename); fclose (fp); return NULL; } /* get the surface descriptor */ fread (&ddsd, sizeof (ddsd), 1, fp); texinfo = (gl_texture_t *)malloc (sizeof (gl_texture_t)); memset (texinfo, 0, sizeof (gl_texture_t)); texinfo->width = ddsd.width; texinfo->height = ddsd.height; texinfo->numMipmaps = ddsd.mipMapLevels; switch (ddsd.format.fourCC) { case FOURCC_DXT1: /* DXT1's compression ratio is 8:1 */ texinfo->format = GL_COMPRESSED_RGBA_S3TC_DXT1_EXT; texinfo->internalFormat = 3; mipmapFactor = 2; break; case FOURCC_DXT3: /* DXT3's compression ratio is 4:1 */ texinfo->format = GL_COMPRESSED_RGBA_S3TC_DXT3_EXT; texinfo->internalFormat = 4; mipmapFactor = 4; break; case FOURCC_DXT5: /* DXT5's compression ratio is 4:1 */ texinfo->format = GL_COMPRESSED_RGBA_S3TC_DXT5_EXT; texinfo->internalFormat = 4; mipmapFactor = 4; break; default: /* bad fourCC, unsupported or bad format */ fprintf (stderr, "the file \"%s\" doesn't appear to be" "compressed using DXT1, DXT3, or DXT5! [%i]\n", filename, ddsd.format.fourCC); free (texinfo); fclose (fp); return NULL; } /* calculate pixel data size */ curr = ftell (fp); fseek (fp, 0, SEEK_END); end = ftell (fp); fseek (fp, curr, SEEK_SET); bufferSize = end - curr; /* read pixel data with mipmaps */ texinfo->texels = (GLubyte *)malloc (bufferSize * sizeof (GLubyte)); fread (texinfo->texels, sizeof (GLubyte), bufferSize, fp); /* close the file */ fclose (fp); return texinfo; }
GLuint loadDDSTexture (const char *filename) { gl_texture_t *compressed_texture = NULL; GLsizei mipWidth, mipHeight, mipSize; int blockSize, offset; GLuint tex_id = 0; GLint mip; /* read texture from file */ compressed_texture = ReadDDSFile (filename); if (compressed_texture && compressed_texture->texels) { /* generate new texture */ glGenTextures (1, &compressed_texture->id); glBindTexture (GL_TEXTURE_2D, compressed_texture->id); /* setup some parameters for texture filters and mipmapping */ glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR); glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); mipWidth = compressed_texture->width; mipHeight = compressed_texture->height; blockSize = (compressed_texture->format == GL_COMPRESSED_RGBA_S3TC_DXT1_EXT) ? 8 : 16; offset = 0; /* upload mipmaps to video memory */ for (mip = 0; mip < compressed_texture->numMipmaps; ++mip) { mipSize = ((mipWidth + 3) / 4) * ((mipHeight + 3) / 4) * blockSize; glCompressedTexImage2D (GL_TEXTURE_2D, mip, compressed_texture->format, mipWidth, mipHeight, 0, mipSize, compressed_texture->texels + offset); mipWidth = max (mipWidth >> 1, 1); mipHeight = max (mipHeight >> 1, 1); offset += mipSize; } tex_id = compressed_texture->id; /* opengl has its own copy of pixels */ free (compressed_texture->texels); free (compressed_texture); } return tex_id; }
void init (const char *filename) { const char *glexts = (const char *)glGetString (GL_EXTENSIONS); /* init OpenGL */ glClearColor (0.5f, 0.5f, 0.5f, 1.0f); glShadeModel (GL_SMOOTH); glEnable (GL_DEPTH_TEST); glEnable (GL_BLEND); glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); /* check for S3TC support */ if (!strstr (glexts, "GL_EXT_texture_compression_s3tc")) { fprintf (stderr, "error: GL_EXT_texture_compression_s3tc " "extension is required for DDS textures!\n"); exit(-1); } /* init extensions */ #ifdef _WIN32 glCompressedTexImage2D = (PFNGLCOMPRESSEDTEXIMAGE2DARBPROC) wglGetProcAddress ("glCompressedTexImage2DARB"); #endif /* load dds texture */ if( !(texId = loadDDSTexture(filename))) { exit (-1); } }
void shutdownApp (void) { glDeleteTextures (1, &texId); }
void reshape (int w, int h) { if (h == 0) h = 1; glViewport (0, 0, (GLsizei)w, (GLsizei)h); glMatrixMode (GL_PROJECTION); glLoadIdentity (); gluPerspective (45.0, (GLfloat)w/(GLfloat)h, 0.1, 1000.0); glMatrixMode (GL_MODELVIEW); glLoadIdentity (); glutPostRedisplay (); }
void display (void) { glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity (); glEnable (GL_TEXTURE_2D); glBindTexture (GL_TEXTURE_2D, texId); /* draw quad */ glTranslatef (0.0, 0.0, -5.0); glBegin (GL_QUADS); glTexCoord2f (0.0f, 0.0f); glVertex3f (-1.0f, -1.0f, 0.0f); glTexCoord2f (1.0f, 0.0f); glVertex3f (1.0f, -1.0f, 0.0f); glTexCoord2f (1.0f, 1.0f); glVertex3f (1.0f, 1.0f, 0.0f); glTexCoord2f (0.0f, 1.0f); glVertex3f (-1.0f, 1.0f, 0.0f); glEnd (); glDisable (GL_TEXTURE_2D); glutSwapBuffers (); }
void keyboard (unsigned char key, int x, int y) { switch (key) { case 27: /* escape */ exit(0); break; } }
int main (int argc, char *argv[]) { if (argc < 2) { fprintf (stderr, "usage: %s filename.dds\n", argv[0]); return -1; } glutInit (&argc, argv); glutInitDisplayMode (GLUT_RGBA | GLUT_DOUBLE | GLUT_DEPTH); glutInitWindowSize (640, 480); glutCreateWindow ("DDS Texture Demo"); atexit (shutdownApp); init (argv[1]); glutReshapeFunc (reshape); glutDisplayFunc (display); glutKeyboardFunc (keyboard); glutMainLoop (); return 0; }
|
c'est normal ? |
|
Maxcus Admin
Nombre de messages: 696 Age: 24 Localisation: Rochetaillée (42) Loisire: Tous sur se forum lol!!!! Date d'inscription: 06/11/2005
 | Sujet: Re: c'est bon !!! Mer 29 Nov - 18:29 | |
| A mon avis c'est pour le logiciel DXTbipmap manager, enfin je pense, et en effet c'est pas normal. Je ne retrouve malheuseusement pas le lien ou je l'aivait telechargé. Mais dans tous les cas tant que tu n'as pas RBR, sa ne te servirai a rien  |
|
rallyesport

Nombre de messages: 76 Age: 16 Localisation: 41 ( centre ) Loisire: rallye Date d'inscription: 22/09/2006
 | Sujet: Re: c'est bon !!! Mer 29 Nov - 18:47 | |
| ok ! mais si c'est pour changé des couleur sa va me servire car c entrotre pour ca que je l'achete !! mais le logistiel c'est pour le mettre en bipmap . donc pour le mettre sur le jeux . mais pour changé les couleur tous logistiel peut le faire ? moi j'ai photofiltre ca marche ? ont et pas obligé d'avoire photoshop ? |
|
Maxcus Admin
Nombre de messages: 696 Age: 24 Localisation: Rochetaillée (42) Loisire: Tous sur se forum lol!!!! Date d'inscription: 06/11/2005
 | Sujet: Re: c'est bon !!! Mer 29 Nov - 18:53 | |
| Non pas obliger d'avoir photoshop *Et le logiciel convertie les bipmap en dds. Si ton logiciel de traitement photo permet d'enregistrer en bipmap, c'est bon. |
|
rallyesport

Nombre de messages: 76 Age: 16 Localisation: 41 ( centre ) Loisire: rallye Date d'inscription: 22/09/2006
 | Sujet: Re: c'est bon !!! Mer 29 Nov - 19:19 | |
| photofiltre enregiste en : bmp,gif,jpeg,pny,rle et targa . donc je supose que ca va pas |
|
rallyesport

Nombre de messages: 76 Age: 16 Localisation: 41 ( centre ) Loisire: rallye Date d'inscription: 22/09/2006
 | Sujet: Re: c'est bon !!! Mer 29 Nov - 19:22 | |
| a j'ai trouvé sur un autre logistiel : bitmap Windows (bmp,dib,rle) c'est pas ca ?  |
|
Maxcus Admin
Nombre de messages: 696 Age: 24 Localisation: Rochetaillée (42) Loisire: Tous sur se forum lol!!!! Date d'inscription: 06/11/2005
 | Sujet: Re: c'est bon !!! Mer 29 Nov - 19:38 | |
| si photofiltre vas bien car il enregistre en bitmap (bmp) |
|