-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mech and Vehicle models replicated on screen #19
Comments
I also experienced this issue there's a part in the code where it renders the model one more time with +100 pixels. In shader "gos_tex_vertex_lighted.vert" this is a workaround, but probably rendering happens two times same position. |
Thanks a lot for the workaround. Indeed that resulted in only one model being visible.
I agree. Unfortunately, shader coding is not part of my existing skill set, so I will read up on enough info to determine what exactly is happening here to come up with a proper fix. |
In
puts the object vertex data into
Line 2492
puts the object vertex data into
For Mechs and likely other objects, both Also, there looks like a typo bug in Although graphics code is not my strength, I will keep digging. |
Submitted pull request #20 to deal with this issue and other bugs. |
Hi guys, double draw is just my debug code to make sure HW accelerated shader based code does same thing as my originally ported one. Second draw pass is not needed at all. |
OS: Linux
GPU: AMD Radeon RX 6700, resolution 3440x1440
I eventually got the code built and all of the missing assets figured out, but all Mech and Vehicle models are rendered twice with the duplicate being to the right of the actual object as shown below.
In issue 15 you say "They are doubled because I have 2 different draw paths in the code" and "It should be easy to disable it." Without additional info I thought that the issue might be associated with
g_debug_draw_calls
inGameOS/gameos/gameos_graphics_debug.cpp
, but that proved false. If you can give me a clue as to which file I should look in I will attempt to fix it.The text was updated successfully, but these errors were encountered: