Yue Posted August 1, 2022 Share Posted August 1, 2022 I'm trying to understand what values that command receives to set the quality of the textures. what values are they? Quote Link to comment Share on other sites More sharing options...
Marcousik Posted August 2, 2022 Share Posted August 2, 2022 Just use Texture:GetDetail() to get the answer 1 Quote Link to comment Share on other sites More sharing options...
Yue Posted August 2, 2022 Author Share Posted August 2, 2022 3 hours ago, Marcousik said: Just use Texture:GetDetail() to get the answer Texture:GetDetail() only return number 1. The thing is that if I set values from 0 to 10, the texture degrades in quality. I don't understand GetDetail. Quote Link to comment Share on other sites More sharing options...
Yue Posted August 2, 2022 Author Share Posted August 2, 2022 Ok, it seems that the GetDetail returns true in case mipmaps can be used, and the corresponding value is for the mipmaps that are generated in the texture for the level of detail in the distance. Mipmas Level 11 Mipmap level 0 1 Quote Link to comment Share on other sites More sharing options...
Marcousik Posted August 2, 2022 Share Posted August 2, 2022 I got this: > Option Very High -> GetDetail returns 0 > Option High -> GetDetail returns 1 > Option Medium -> GetDetail returns 2 > Option LOw -> GetDetail returns 3 Try with textured models, you will see what happens 1 Quote Link to comment Share on other sites More sharing options...
Yue Posted August 2, 2022 Author Share Posted August 2, 2022 function this:Update() d = self.group1.cTextures:GetSelectedItem() if d == 0 then d = 5 elseif d == 1 then dT = 2 elseif d ==2 then d = 0 end Texture:SetDetail(tonumber(d)) World:GetCurrent():SetLightQuality(tonumber(self.group1.cShadows:GetSelectedItem())) end I think the non-existent documentation causes us tremendous headaches :, I have this to update the quality of the textures. Edit : Quality Low Quality High I have tested with an animated model my code, and it seems to work as it should with mipmaps to set the quality of the textures. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.