View previous topic :: View next topic |
Author |
Message |
Kackurot Member
Joined: 06 Jun 2006 Posts: 1
|
Posted: Tue Jun 06, 2006 9:02 am Post subject: c (vanila) loader |
|
|
I use the c loader code to load a dmf up. It gets loaded and such, draws the objects correctly,but the texture coordinates are all messed up? They are all not not 0-1, they are not normalized, example coord like 5.49400. that is not a texture coord. Can someone please tell me whats wrong, is it the version off the loader?? |
|
Back to top |
|
|
Daaark DeleD PRO user
Joined: 01 Sep 2004 Posts: 2696 Location: Ottawa, Canada
|
Posted: Tue Jun 06, 2006 4:36 pm Post subject: Re: c (vanila) loader |
|
|
Kackurot wrote: |
5.49400. that is not a texture coord. |
That's a texture coord. Means the texture wrapped over the surface 5.5 times. There's no 0-1 limit. _________________
|
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Wed Jun 07, 2006 8:45 am Post subject: |
|
|
What vampyre sais (except the part about the wrapping, that kinda depends on the coordinate on the other side). Texture coordinates outside the [0, 1] range are equivalent with their (modulo 1) counterpart, both in theory and in every graphics API around. In model editors, generating coordinates that are not restricted to [0, 1] offers some mathematical conveniences. |
|
Back to top |
|
|
Guyon Member
Joined: 22 Mar 2005 Posts: 49 Location: Pittsburgh PA
|
Posted: Wed Jun 28, 2006 3:55 am Post subject: |
|
|
Look into:
http://www.nuclearglory.com/
N3d - (name may be chainging in a few days)
It will load your creation with collision, and is a full programming language. _________________ "Do or do not. There is no try."
Yoda
Guyon |
|
Back to top |
|
|
|