Jump to content
  • Advertisement

LeandroMeraVinces

Member
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

100 Neutral

About LeandroMeraVinces

  • Rank
    Newbie
  1. LeandroMeraVinces

    3D models Loader

    hehe. I think Im going to fast, With md5 the problem was that i think, but Im not sure U need to create an armature, bones etc, I think its too advanced. One of the Formats I was testing and was failly simple was the smd. hmm i could try to render a 3D texture then huh?
  2. LeandroMeraVinces

    3D models Loader

    Seems that its easier to do this on obj format I would give it a spin to see what i could learn
  3. LeandroMeraVinces

    3D models Loader

    I mean it can be drawn but I would like to be able to do it also by importing a blender model to my program, lets say some day ill create a soldier, I would be a hell to draw him with Vertex functions. No I havent been able to do so even though I would like to have the freedom to distribute the game, thats why I avoided pre maked loaders. Im new on this section but I would like to Understand this or make a Loader Cause this is the function for the 2D textures: using namespace std; GLuint loadTexture( const string &fileName ) { SDL_Surface *image = IMG_Load( fileName.c_str() ); SDL_DisplayFormatAlpha(image); unsigned object(0); glGenTextures(1, &object); glBindTexture(GL_TEXTURE_2D, object); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, image -> w, image -> h, 0, GL_RGBA, GL_UNSIGNED_BYTE, image -> pixels); //Free surface SDL_FreeSurface(image); return object; } I know I have to Draw an object and the Wrap it with the texture, but for the 3D models stuff im kind off lost.
  4. LeandroMeraVinces

    3D models Loader

    Thank you Guys and Tiago Costa that sounds good but im using OpenGL.
  5. LeandroMeraVinces

    3D models Loader

    Hi everybody im getting on the video game programming stuff and Im making a, IDK if to call it this way but is a Game Engine. And i have some basic stuff like collision detection and 2D textures loaders, But i would like to be able to load a 3D model created on blender also I would like to be able to animate some escenes or player movements But the problem is IDK how cause its not the same as rendering a image file is something diferent. I have seen some formats and looked about them and seems like COLLADA would be a good one even thouhg I would like some explanation on how to import this model to my programm THX... please be kind
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!