Yue Posted June 24, 2023 Author Share Posted June 24, 2023 2 Quote Link to comment Share on other sites More sharing options...
Yue Posted June 25, 2023 Author Share Posted June 25, 2023 1 Quote Link to comment Share on other sites More sharing options...
Yue Posted June 25, 2023 Author Share Posted June 25, 2023 1 Quote Link to comment Share on other sites More sharing options...
Yue Posted June 26, 2023 Author Share Posted June 26, 2023 Quote Link to comment Share on other sites More sharing options...
Yue Posted June 27, 2023 Author Share Posted June 27, 2023 1 Quote Link to comment Share on other sites More sharing options...
Yue Posted June 29, 2023 Author Share Posted June 29, 2023 3 Quote Link to comment Share on other sites More sharing options...
SpiderPig Posted June 29, 2023 Share Posted June 29, 2023 Nice stuff Yue. Looking forward to seeing gameplay unfold! 1 Quote Link to comment Share on other sites More sharing options...
Yue Posted June 29, 2023 Author Share Posted June 29, 2023 At this point I am having performance problems on my computer. I will release a test version, I guess I have overdone the use of brushes to create a base. Quote Link to comment Share on other sites More sharing options...
Yue Posted June 29, 2023 Author Share Posted June 29, 2023 https://www.mediafire.com/file/kjn0redkq8hmt5t/AstrocucoX.7z/file I have problems with the walls disappearing when I am inside the structure. And the focus lights in their shadows have lag Quote Link to comment Share on other sites More sharing options...
SpiderPig Posted June 29, 2023 Share Posted June 29, 2023 I had no issues on my pc with lag or walls vanishing. But yeah, lots of brushes probably would slow it done eventually. Performance improving is an art form in itself. 1 Quote Link to comment Share on other sites More sharing options...
Thirsty Panther Posted June 29, 2023 Share Posted June 29, 2023 Here is Josh's list of bottlenecks in Ledwerks. You my find it useful. 1 Quote Link to comment Share on other sites More sharing options...
Yue Posted June 29, 2023 Author Share Posted June 29, 2023 The shadow delay is that if I put two focus lights too close together it happens. I think I will implement the debugging information and work based on this. Quote Link to comment Share on other sites More sharing options...
Yue Posted June 29, 2023 Author Share Posted June 29, 2023 Quote Link to comment Share on other sites More sharing options...
Yue Posted June 29, 2023 Author Share Posted June 29, 2023 I have dismembered the whole base, and the problem is corrected the shadows of focus light, now, the problem that the walls disappear I will have if I solve it by creating a new base but taking into account several factors of design and testing. The thing is that @Josh a few years ago mentioned that it was because of my nvidia gtx 1050 gpu, now that I have a gtx 1070 of eight gigas, it happens the same. Possible solutions, create the base in another level, and in the terrain just leave a door to enter it and make the respective level change. Where on the ground will be able to store the rover in a garage. Quote Link to comment Share on other sites More sharing options...
Yue Posted June 29, 2023 Author Share Posted June 29, 2023 New Base. 1 Quote Link to comment Share on other sites More sharing options...
Yue Posted June 30, 2023 Author Share Posted June 30, 2023 If I remove the sky and terrain, the walls of the facility do not disappear when I rotate the camera. In such a case a solution would be that when I am inside the station I can remove the sky and the terrain, I suppose that with the sky I can remove the material, but I don't know if I can hide the terrain. Quote Link to comment Share on other sites More sharing options...
Yue Posted June 30, 2023 Author Share Posted June 30, 2023 Likewise, disable the fog when inside an installation, the question is why this happens, it is not my graphics card that I had before, the gtx 1050 of two gigabytes, much less the one I have now gtx 1070 of eight gigabytes. But the good thing about understanding all this is that I can do something about it, and not be suffering for not understanding what is happening. Quote Link to comment Share on other sites More sharing options...
Yue Posted June 30, 2023 Author Share Posted June 30, 2023 #version 400 // Uniforms uniform samplerCube texture0; // Cube map uniform vec3 cameraposition; uniform vec2 camerarange; // Inputs in vec4 ex_vertexposition; in float ex_selectionstate; in vec3 ex_VertexCameraPosition; out vec4 fragData0; out vec4 fragData1; out vec4 fragData2; out vec4 fragData3; void main(void) { vec3 cubecoord = normalize(ex_vertexposition.xyz - cameraposition); vec4 outcolor = texture(texture0, cubecoord); // Calcula la distancia desde la cámara al fragmento float distanceToCamera = length(ex_vertexposition.xyz - ex_VertexCameraPosition); // Compara la distancia con el rango de la cámara para determinar si está detrás de otros objetos bool isBehind = distanceToCamera > camerarange.x && distanceToCamera < camerarange.y; if (isBehind) { // Si el fragmento está detrás de otros objetos, dibuja el skybox fragData0 = outcolor * (1.0 - ex_selectionstate) + ex_selectionstate * (outcolor * 0.5 + vec4(0.5, 0.0, 0.0, 0.0)); } else { // Si el fragmento está delante de otros objetos, no dibujes nada discard; } fragData1 = vec4(0.0); fragData2 = vec4(0.0, 0.0, 0.0, 0.0); fragData3 = vec4(ex_VertexCameraPosition, 1.0); } Looking at the skybox sahder, but everything seems to be ok, chatgpt tells me it is the occlusion system. Quote Link to comment Share on other sites More sharing options...
SpiderPig Posted June 30, 2023 Share Posted June 30, 2023 That looks like the occlusion system to me. I've never used CSG to model a level before. I take it there are a lot of entities in your scene? Quote Link to comment Share on other sites More sharing options...
Yue Posted June 30, 2023 Author Share Posted June 30, 2023 5 hours ago, SpiderPig said: That looks like the occlusion system to me. I've never used CSG to model a level before. I take it there are a lot of entities in your scene? No, I don't have anything in the scene, only the last image, the error only happens when I have fog, or a terrain, or the sky. And inside a brush structure, when I rotate the camera, the wall suddenly appears and the skybox appears in the background. Quote Link to comment Share on other sites More sharing options...
SpiderPig Posted June 30, 2023 Share Posted June 30, 2023 9 hours ago, Yue said: No, I don't have anything in the scene, only the last image, the error only happens when I have fog, or a terrain, or the sky. How many CSG objects are there in total? I tried your demo again and saw that other CSG objects out side of the base took time to appear as well. (orange platform) When the walls vanish they show not only the skybox but the other objects behind it too. I tend to think it's just lots of CSG objects. You might be better off making your base one large object in some modelling software. But there might be something else at play, I'm not sure. Quote Link to comment Share on other sites More sharing options...
Yue Posted July 1, 2023 Author Share Posted July 1, 2023 It is using a skybox that produces that effect, even if it is just a simple outline, a cube, with 6 walls. The problem is that the sky box and my eight gigabyte gtx 1070 graphic produces this unpleasant effect and the same if I have a terrain, even if it is 512 x 512 In such a case the solution is to create a small base on the surface, and then in another level without skybox or terrain, create the base underground. That level would not have the base would not have that skybox, and you would not see that problem. I know that in a more powerful computer the defect would be visible, but for me it is a problem when I want to show the progress of the game in a video. In such a case my gpu would not be the problem, I think it is my second generation processor an I7 from several years ago. But what is really strange for me is that if I play GTA V, that doesn't happen. Quote Link to comment Share on other sites More sharing options...
SpiderPig Posted July 1, 2023 Share Posted July 1, 2023 Yeah I don't think its the GPU. I've got a GTX 980 TI. Maybe it is the skybox. If you remove it I can test on my PC to verify if that's the issue if you like. 1 Quote Link to comment Share on other sites More sharing options...
Yue Posted July 1, 2023 Author Share Posted July 1, 2023 43 minutes ago, SpiderPig said: Yeah I don't think its the GPU. I've got a GTX 980 TI. Maybe it is the skybox. If you remove it I can test on my PC to verify if that's the issue if you like. https://www.mediafire.com/file/r97h1kbj9daz83p/AstrocucoX.rar/file Look at this simple test, in such a case if I have a box, or a terrain I have that strange effect. You remove the sky with the m key. Quote Link to comment Share on other sites More sharing options...
SpiderPig Posted July 2, 2023 Share Posted July 2, 2023 Just tried it out, with the skybox removed it still happens on the far wall of the base. It's just a lot harder to tell because the colour difference between the black background and the dark gray wall is very small. If you remove the skybox and make the cameras clear color red or something else bright you will will be able to see it better. I don't think it has anything to do with the terrain or skybox. I think it's something to do with the CSG objects. I can see in your video it is still occurring too. A few work arounds might be - slowing the cameras rotation speed so that it's less noticeable; or, make a large enclosure for the base that has the same colour as the walls and enable it when the players is inside, so that when it happens it only reveals a similar colour behind the walls rather then the bright skybox / terrain. 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.