robur Posted October 30, 2020 Share Posted October 30, 2020 Hello! Sorry for my English, I think it is fairly understandable I have a problem with objects that disappear behind windows, most often cars. I make my own models and it is problematic. Is there any solution for this? Here are photos of how it looks: https://imgur.com/a/EhP1EWM Link to comment
Administrators Tut Posted October 30, 2020 Administrators Share Posted October 30, 2020 Please replace ID 17448 with your glass object and see if that corrects the alpha rendering order. Did you enable alpha transparency flag in model script? https://wiki.multitheftauto.com/wiki/EngineReplaceModel#Optional_Arguments Link to comment
robur Posted October 30, 2020 Author Share Posted October 30, 2020 (edited) Yes i turned on the alpha transparency flag. After changing to id 17448 it happened: https://imgur.com/a/d1xk8BC half of the building disappeared After making the glass from this guide: The glass is not visible "3. Give the window glass a new material which has opacity set to 35/100. Do not give it any bitmap/texture" Is this value an alpha channel? Edited October 30, 2020 by robur Link to comment
Administrators Tut Posted October 30, 2020 Administrators Share Posted October 30, 2020 Sorry, I meant that you should replace the ID only for the glass. The ID uses the correct alpha rendering flags from its object IDE. Separate the glass into a new object and replace the ID I provided. It's for transcluent materials only. Yeah that's the alpha channel. Though I believe Kam's scripts wants a bitmap in the slot for it to even export, so you may have to provide one. I'm moving this to the Modelling forum for best results. Link to comment
robur Posted October 30, 2020 Author Share Posted October 30, 2020 After changing the test object to glass, it looks like this: https://imgur.com/a/A741zNr Link to comment
Administrators Tut Posted October 30, 2020 Administrators Share Posted October 30, 2020 It doesn't look like there's anything you can do on a modeling level to fix this. It's something that MTA would have to patch, and I believe there's an issue for it on our Github. You may be able to circumvent the issues by using shaders, however I'm not knowledgeable in that area. Link to comment
robur Posted November 2, 2020 Author Share Posted November 2, 2020 (edited) Hello again I noticed that through the first glass I created in 3ds max you can see all objects normally. But after this glass is cloned, objects begin to penetrate the glass. I'm sending photos of what it looks like: 1 glass is basic 2 glass is clone 1 Texture i was adding Magic.TXD compressed DXT5 Edited November 2, 2020 by robur Link to comment
Administrators Tut Posted November 2, 2020 Administrators Share Posted November 2, 2020 I'm unsure what you mean with cloned glass and object penetration. Link to comment
robur Posted November 2, 2020 Author Share Posted November 2, 2020 But after this glass is cloned in 3ds max, disappearing objects outside the window* And through the first glass you can see normally. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now