how to remove mipmaps?

Posted By: amy

how to remove mipmaps? - 11/21/08 01:04

How can I remove the mipmaps of a texture? I would like to play a video on a texture and mipmaps cause problems then.

In the new public beta even ent_morphskin() seems to automatically create mipmaps. Disabling mipmaps for an internal model texture in MED also doesnīt seem to work anymore.

A counterpart of bmap_to_mipmap() would be nice if this isnīt possible somehow already.
Posted By: badapple

Re: how to remove mipmaps? - 11/21/08 21:19

how about someting like this ... d3d_mipmapping = 0;
Posted By: amy

Re: how to remove mipmaps? - 11/21/08 22:55

I like mipmapping! Just not for video textures since the video will vanish once the mipmap stages get visible.

For my project itīs very important that videos play correctly so I hope there is a way to do this.
Posted By: amy

Re: how to remove mipmaps? - 11/26/08 12:31

Isnīt JCL around this week? I really canīt find a way to get rid of mipmaps in 7.6. Can anyone help me?
Posted By: rojart

Re: how to remove mipmaps? - 11/26/08 16:59

Use the DDS texture without mipmapping, or pm me and I convert for you.
Posted By: EvilSOB

Re: how to remove mipmaps? - 11/26/08 17:15

I think JCL is away for a week or so. Not 100% sure though.
Posted By: amy

Re: how to remove mipmaps? - 11/26/08 23:32

Good idea, rojart! But I tried it (DDS with 888 rgb format, no mipmaps) and in the engine there still are mipmaps! crazy

I need a bmap_removemipmaps() function!
Posted By: rojart

Re: how to remove mipmaps? - 11/27/08 00:17

Hmm, Iīm not sure that this is the right format for the texture, but when you have alpha channel, then try better with these formats: DXT3 ARGB 8 bpp explicit alpha or DXT5 ARGB 8 bpp interpolated alpha.
Posted By: amy

Re: how to remove mipmaps? - 11/27/08 00:28

I donīt think videos can be played on compressed textures. Thatīs why I chose 888 RGB.

However, there must be something new in 7.6 which automatically creates mipmaps for everything. In 7.5 I could disable mipmaps for internal model textures and it worked. Not anymore...
Posted By: MaxF

Re: how to remove mipmaps? - 11/27/08 01:17

miss JCL frown
Posted By: Anonymous

Re: how to remove mipmaps? - 11/28/08 18:55

have a look at mip_levels, the new var
Posted By: amy

Re: how to remove mipmaps? - 11/29/08 05:12

Isnīt this a global setting? I donīt want to disable mipmapping completely.
Posted By: Quad

Re: how to remove mipmaps? - 11/29/08 09:18

you can make a plane model, and disable mipmaps on it's skin and use it's skin to render your video?

(you can remove mipmaps by unchecking mipmaps on skin settings.)

may work?
Posted By: amy

Re: how to remove mipmaps? - 11/29/08 09:41

This worked in 7.5 but strangely not anymore in 7.6.
Posted By: Quad

Re: how to remove mipmaps? - 11/29/08 10:39

may be a bug.
Posted By: rojart

Re: how to remove mipmaps? - 11/29/08 10:52

Originally Posted By: amy
I donīt think videos can be played on compressed textures. Thatīs why I chose 888 RGB.


Yes, youīre right,I forgot that compressed dds does not work with mipmaps.
But for flat entities alternatively you can change the distance for mipmap textures with mip_flat function.

Here you will find an example with mip_flat = 10.
Posted By: Joey

Re: how to remove mipmaps? - 11/30/08 10:23

have you thought about setting d3d_mipmapping to zero in a render event, resetting it afterwards?
Posted By: amy

Re: how to remove mipmaps? - 11/30/08 12:51

As far as I know setting d3d_mipmapping only works at engine startup but because of your suggestion I had the idea of simply setting MipFilter[0] = none; in a material. Darn, why didnīt I think of that earlier. smile
Posted By: Joey

Re: how to remove mipmaps? - 11/30/08 14:21

that would do the job, definately...
© 2024 lite-C Forums