Jump to content


Photo

How To Import 3d Models & Uv Map Them


  • Please log in to reply
189 replies to this topic

#181 TheUnknownVariable

TheUnknownVariable

    GMC Member

  • New Member
  • 4 posts
  • Version:GM8

Posted 22 April 2012 - 02:00 AM

Does anyone know why my model wont show when I run the game
I used :
Create Event
d3d_model_create()
Model = createFromObj("C:\Documents and Settings\M\char.D3D")
tex = background_get_texture(tex_t)
and:
z=0
Draw Event
d3d_model_draw(Model, x+10,x+10,z+10, tex);

I made sure my model is above ground, and I have tried a lot of different ways to do this but none are working.
There were no errors on game start, its just like my model is invisible.
Please Help
  • -1

#182 slojanko

slojanko

    HARD GAMER

  • GMC Member
  • 436 posts
  • Version:GM8.1

Posted 29 May 2012 - 11:42 AM

Can someone explain to me how to uv map a model?
  • 0

#183 faissialoo

faissialoo

    I get high on orange

  • GMC Member
  • 1044 posts
  • Version:GM8

Posted 09 June 2012 - 02:03 PM

This is really useful, I've been looking for this. Wait, doesn't the red sonic engine use the same thing
  • 0

#184 UKDutyPaid

UKDutyPaid

    GMC Member

  • GMC Member
  • 183 posts

Posted 16 June 2012 - 08:26 PM

Thanks for this, just what I needed. +1 kudos.

I have 1 questions.

1.Is there a way to flip the texture coords on a given model, so it appears mirrored but normals stay the same? At the moment I am just using a duplicate mirrored texture bmp, but this seems very wasteful. Can the script be amended to achieve texture mirroring?


Any help on either q would be greatly appreciated.


(edit:removed question I worked out answer for)

Edited by UKDutyPaid, 16 June 2012 - 08:30 PM.

  • 0

#185 briantrlov

briantrlov

    GMC Member

  • GMC Member
  • 610 posts

Posted 17 June 2012 - 02:09 AM

What do you mean texture mirroring, as in have the whole model mirrored, have the texture coordinates mirrored, show ma a picture example and i can answer your question.
  • 0

#186 UKDutyPaid

UKDutyPaid

    GMC Member

  • GMC Member
  • 183 posts

Posted 17 June 2012 - 07:57 PM

What do you mean texture mirroring, as in have the whole model mirrored, have the texture coordinates mirrored, show ma a picture example and i can answer your question.

Thanks for reply. Sorry, yeah I mean texture coordinates mirrored. The model I have is itself symmetrical, but the texture has pointing arrows. So I want to be able to use the same model but flip the direction of the arrows. Does that make more sense?
  • 0

#187 briantrlov

briantrlov

    GMC Member

  • GMC Member
  • 610 posts

Posted 18 June 2012 - 01:50 AM

Yeah, thats not texture, thats the model itself, if it is symmetrical you are going to want to open anim8or and select the object, hit build - mirror, select x and hit okay, delete the old object, done. This what you mean?
  • 0

#188 UKDutyPaid

UKDutyPaid

    GMC Member

  • GMC Member
  • 183 posts

Posted 18 June 2012 - 12:44 PM

Yeah, thats not texture, thats the model itself, if it is symmetrical you are going to want to open anim8or and select the object, hit build - mirror, select x and hit okay, delete the old object, done. This what you mean?

That would get the result yes. But I was hoping to avoid duplicate mirrored models or textures as it seemed wasteful. There is no way to edit the model load script so that it does the flip as it loads the mesh into the game?
  • 0

#189 briantrlov

briantrlov

    GMC Member

  • GMC Member
  • 610 posts

Posted 18 June 2012 - 02:26 PM

I'm afraid not to my knowledge no, idk about this script but must .obj importers don't allow manipulating the script anyways.
  • 2

#190 UKDutyPaid

UKDutyPaid

    GMC Member

  • GMC Member
  • 183 posts

Posted 18 June 2012 - 10:39 PM

ok, cheers anyway, thanks for your time.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users