The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.31 (Linux)
|
Texture rendering in old VDrift version - Printable Version +- Forums (https://www.vdrift.net/Forum) +-- Forum: Project (https://www.vdrift.net/Forum/forumdisplay.php?fid=4) +--- Forum: Development (https://www.vdrift.net/Forum/forumdisplay.php?fid=9) +--- Thread: Texture rendering in old VDrift version (/showthread.php?tid=2302) |
Texture rendering in old VDrift version - lucifesta - 08-11-2017 Hello, First of all I need to thank you all for developing VDrift which I have been using for many years now in a neuroscience project. For many reasons I can not move on from the code of 2007. I have now access to Nvidia Titan video cards in a Debian 8 system and 4k 3D monitors and have adapted the code here and there. I need a bit of support on old texture rendering. I need to use the Weekend Drive task in a visual sensitive situation. All is fine except for the water "like" texture. I attached screenshots in the 2007 version and the new one (on purpose I drove down to the lake) I know this is old story and the simple answer is move to new code, but I can not do that. Please spend a bit of time and try to provide some support, even if only advice. Thank you for your time. [attachment=50] RE: Texture rendering in old VDrift version - NaN - 08-12-2017 On some of the screenshots it looks like the uvs are messed up. Did you change anything in the texture loading code? You could try checking the track in blender. Import the jpk to see how the water texture looks. RE: Texture rendering in old VDrift version - lucifesta - 08-14-2017 (08-12-2017, 04:40 AM)NaN Wrote: On some of the screenshots it looks like the uvs are messed up. Did you change anything in the texture loading code? Thank you so much for looking into this. I did import the jpk into blender and got the attachment. It looks like hav-02-dof00 is not rendered at all. Maybe like you say uv is wrong so the texture is rendered from behind with culling on. I will look at list.txt (is there culling set ?) . Over all I have the impression that the whole axis are rotated in the new code, tracks and cars compared with 2007. In order to use new cars I need to change (x,y,z) to (y,-x,z) (like 90deg rotation) . Do the UVS look strange in the blender rendering? RE: Texture rendering in old VDrift version - NaN - 08-15-2017 There is a riverbed mesh with messed up uv coords or wrong texture. And that is what you see. I am not sure what purpose it has. It seems like the water mesh is not drawn in your case. You could try playing with blending maybe: Code: #entry 184 Maybe also check texture alpha channel. RE: Texture rendering in old VDrift version - lucifesta - 08-16-2017 Thanks for the ideas. I did both. I set in list.txt to alpha rendering, and rebuild the texture file. I added a bit of "lake like" color to the texture and left a bit of transparency. If the uv maps for the river bed would have been correct it might have looked better with higher transparency but what I have is enough for what I need. One thing I learned is that if alpha is set to lover then 0.7 (30% transparency) the texture is not rendered at all. On the other hand using the same texture and making the same change for the latest version of code renders with the greener color but completely ignores the alpha setting. If you would like to have the edited texture let me know and I can post it. My issue is solved, and once again thanks for the help. RE: Texture rendering in old VDrift version - NaN - 08-17-2017 (08-16-2017, 11:32 AM)lucifesta Wrote: ... Sure, feel free to share it. Btw for opaque objects vdrift uses alpha testing which will discard anything with alpha below certain value. This might have had an unintended effect here. For performane it might be better to have a separate alpha test draw group. Although I haven't tested how much difference it would make. |