Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you are already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
two textue files
Topic Started: Jun 14 2006, 08:59 PM (442 Views)
terra
Member
[ *  * ]
Does Ultimate3D support two texture files on one model?
Cuz when i loaded the example it worked fine, but when i tried to add my .3ds car it crashed with "Unexpected error occured... bla bla"
Could it be becuz my car model has two texture files? I mean one for the tires, and second for the car body.
Also the car is below 200 polys (if i remember right), so i doubt it was cuz of too much polycount. It didn't have more polies than the actual car in the example i am 100% sure.
Offline Profile Quote Post Goto Top
 
Despellanion
Member Avatar
Forum God
[ *  *  *  *  *  * ]
In the current U3D version you can have 70 diffrent materials with tetxures on each loaded model so the 2 textures you're using aint the problem. The polycount aint the problem either. I use modells in my game with up to 2000 polys per model which runs smooth. You have maybe added too many empty materials to your model in 3D Studio where you made the model. If you only have 2 textures then you only need 2 materials. I got a unexpected error too when I had over 70 materials on one of my models.
Offline Profile Quote Post Goto Top
 
terra
Member
[ *  * ]
What about the texture size and format.
Does it have to have specific dimensions? like 256x256
Offline Profile Quote Post Goto Top
 
Despellanion
Member Avatar
Forum God
[ *  *  *  *  *  * ]
Yes a texture has to have the format so it gets the size of power of two. Like 256 x 256. Else it will be resized to the closest size of the power of two.
Offline Profile Quote Post Goto Top
 
Dr. Best
Member Avatar
Administrator
[ *  *  *  *  *  * ]
The *.3ds file loader of the current Ultimate 3D version is based on a non-official chunk description, so it may fail to load some files which use data chunks that aren't supported by U3D. The next version is based on an official chunk description by autodesk so there shouldn't be any problems anymore.
Probably your model uses some format that isn't supported by U3D and that's what causes the problem. The easiest way to fix this would be loading it in Anim8or and exporting it to a *.3ds file. *.3ds files which are exported by Anim8or and don't exceed the limits Despellanion mentioned should work always. If you want to you can also send me the model file that isn't working. Then I will check what's wrong there and whether it's going to work in U3D 2.0. My email adress is ChristophJP@web.de . And please write "ULTIMATE 3D" in the relevancy line, else I may delete it with all my spam.
Offline Profile Quote Post Goto Top
 
terra
Member
[ *  * ]
K will send it to u, i will just test it with a few tweaks first.

EDIT: Okay, i fixed it.
But, this brings a problem. See the model when loaded into example.
There is one or two faces missing from the model. Why is that?
The side of the car that is close to camera should be the same as farther one.
Everything else seems to be in order apart from that.

Posted Image

(Don't mind the size, i just didn't scale it so the missing face is visible)
Offline Profile Quote Post Goto Top
 
Bami
Member Avatar
Guess the character, win a prize
[ *  *  *  *  * ]
By the looks of it, all the normals of the model are flipped.
Here are the thrill seekers, corrupt and immoral.
Posted Image
Offline Profile Quote Post Goto Top
 
Dr. Best
Member Avatar
Administrator
[ *  *  *  *  *  * ]
Exactly.
Seemingly you turned the backside of the polys outside when you modelled it. In the modeller that makes no difference, but U3D uses back face culling to increase the performance (which means that only the frontside of the faces gets drawed). To fix this you have to flip the normals of this mesh (actually the vertex order gets changed, but the result is the same). Most modelling programs have some function to do this.
Offline Profile Quote Post Goto Top
 
terra
Member
[ *  * ]
Hm, are u sure, when i move inside the car, i can actually see the missing face, but when i move out, it dissapears.
Offline Profile Quote Post Goto Top
 
Oblivion
Advanced Member
[ *  *  * ]
yes, you have to flip the normals. The fact you can see the face when ur in the car is because that is the front face of the model and is not culled
Offline Profile Quote Post Goto Top
 
terra
Member
[ *  * ]
K fixed that, but i have another problem, i animated my wheels, to turn, and when i loaded the LoadAnimated3DS, it came like this:
When i loaded it as a mesh, it was okay, but animated messed it up.
Btw, the wheels are turning, it's just that they are covered by those what would seem to be duplicates of the mesh.

Posted Image

Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply