Mipmap distance for dts editable?
by Thak · in Torque Game Engine · 04/05/2008 (3:01 am) · 2 replies
Hallo all
I've searched the forums as good as the current search function allows but did not find a proper solution.
Sofar I have not had any problems with mipmapping, it works reasonably well and does a good job overall.
Now I have a palm model dts and mipmapping kicks in way to early. Assuming that the palm is 16m high and only 2m wide its width dependent? the trunk texture is 128x512 and the leaves are 64x256 pixel pngs
Using the max exporter features I can turn off mip mapping entirely, which looks good in screenshots, but the textures flicker something awful when you have 20 trees and move around. So turning off mipmapping completely is not the solution either.
In another thread I read to export the model smaller and scale it up in the engine. That din't seem to to help much tho.
So I wonder is there a way to affect the distance of the mipmaps to kick in on a dts via a datablock or code? (Using TGE 1.52)
Basically something like. At 0-20 meter distance draw original texture, at 40 draw mipmap 1 at 60 draw mip2 etc
Thankfull for any help ye can provide on the issue. If this is not the best forum for the question, point me to where I should ask this question. Thanks.
Marc
I've searched the forums as good as the current search function allows but did not find a proper solution.
Sofar I have not had any problems with mipmapping, it works reasonably well and does a good job overall.
Now I have a palm model dts and mipmapping kicks in way to early. Assuming that the palm is 16m high and only 2m wide its width dependent? the trunk texture is 128x512 and the leaves are 64x256 pixel pngs
Using the max exporter features I can turn off mip mapping entirely, which looks good in screenshots, but the textures flicker something awful when you have 20 trees and move around. So turning off mipmapping completely is not the solution either.
In another thread I read to export the model smaller and scale it up in the engine. That din't seem to to help much tho.
So I wonder is there a way to affect the distance of the mipmaps to kick in on a dts via a datablock or code? (Using TGE 1.52)
Basically something like. At 0-20 meter distance draw original texture, at 40 draw mipmap 1 at 60 draw mip2 etc
Thankfull for any help ye can provide on the issue. If this is not the best forum for the question, point me to where I should ask this question. Thanks.
Marc
About the author
#2
I am also going to see if splitting the texture into smaller separate chunks helps to get an artside fix.
04/09/2008 (12:37 pm)
Thanks Joseph. Ill have a programmer look into that. I am also going to see if splitting the texture into smaller separate chunks helps to get an artside fix.
Torque Owner Redacted