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
Mip maps
Topic Started: May 10 2009, 05:49 AM (375 Views)
saijee
Elite Member
[ *  *  *  * ]
For the detailed textures I am using, MIP maps destroy the quality. I am curious if there is a way to disable them for certain models.

I have looked in the manual, though the only thing I could find was "SetMipMapCount(...)" perhaps I am using it wrong, but with this code, it does not look any differeant then if it is not in the code:

SetMipMapCount(0);
LoadTexture("GFX/0.png",256,512,256);
LoadTexture("GFX/1.png",257,256,256);
LoadTexture("GFX/2.png",258,1024,512);

file='tes.3ds';
LoadMesh();

Remember though, I only want to MIPmap-cancel with certain textures, thanks.
Offline Profile Quote Post Goto Top
 
ashrat3000
Member Avatar
u3d raytracer
[ *  *  *  *  *  * ]
Set the mipmap count to 1 not 0.

그대를 사랑해


Offline Profile Quote Post Goto Top
 
Despellanion
Member Avatar
Forum God
[ *  *  *  *  *  * ]
saijee
May 10 2009, 05:49 AM


SetMipMapCount(0);
LoadTexture("GFX/0.png",256,512,256);
LoadTexture("GFX/1.png",257,256,256);
LoadTexture("GFX/2.png",258,1024,512);

file='tes.3ds';
LoadMesh();
That is the highest mip map count you can set. Your textures will look very bad. If you want the smallest mip map count, you need to set it to 1, then everything will look crisp. I always use 1 mip maps.
Offline Profile Quote Post Goto Top
 
saijee
Elite Member
[ *  *  *  * ]
OK, I guess I used 0, because in the manual it said something like "number of COPIES" and naturally I thought, if you say you want 0 copies, then you will only have the original.

Also, what else does this function do? It sounds like there is more to it.
Offline Profile Quote Post Goto Top
 
Despellanion
Member Avatar
Forum God
[ *  *  *  *  *  * ]
saijee
May 10 2009, 10:20 PM
OK, I guess I used 0, because in the manual it said something like "number of COPIES" and naturally I thought, if you say you want 0 copies, then you will only have the original.

Also, what else does this function do? It sounds like there is more to it.
The function creates the given number of mip maps (lower resolution copies) of the texture depending on the angle and range of the camera from the texture. It's for optimizing purposes. I don't think there's anything more to it. Oh, and you can set mip map filtering with
Code:
 
SetMipMapFilter(filter,stage);
to make the transition between mip maps look nicer.
Offline Profile Quote Post Goto Top
 
saijee
Elite Member
[ *  *  *  * ]
What about the value entered in the argument? Is it as simple as 0= have mip maps, and 1= have no mip maps? or is there something else?
Offline Profile Quote Post Goto Top
 
Despellanion
Member Avatar
Forum God
[ *  *  *  *  *  * ]
saijee
May 10 2009, 11:23 PM
What about the value entered in the argument? Is it as simple as 0= have mip maps, and 1= have no mip maps? or is there something else?
I think 0 is the default parameter. You can of course set your own mipmap count other than the default or none, e.g 2, 3, 4, etc, mipmap count.
Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply