You are not logged in.
Pages: 1
I'm just wondering if it would be capable to get Sauerbraten to generate lightmaps using Gpu (CUDA) instead of CPU rendering?
and if its possible, how would i do it? :3
Offline
Anything is possible as long as you have enough time and experience to code it
Offline
Anything is possible as long as you have enough time and experience to code it
Do you know how i'd go about doing it? because it would significantly decrease render times for people with great GPU's and stuff :3
Offline
Well the obvious thing would be to get CUDA SDK and rewrite the renderer with it and using other tools (depends on what you need to accomplish it) but thats harder then it sounds.
Latest CUDA version is....... 7 RC
6.5 is the Stable version
https://developer.nvidia.com/cuda-downloads
Last edited by ThaOneDon (2015-02-26 21:11:48)
Offline
CUDA has its own patterns and way to think about how you code something. If you're really interested, I recommand you to learn first how the GPU or OpenMP work.
Offline
GPUs excell at rendering things in high resolution but you want lightmaps to be in very low res because of filesize. Also I don't think there is a point to making lightmapping use gpu because it's not anything affecting gameplay and computing lightmaps on map Xenon (large map with a lot of lights) only takes about 5 seconds on mid end cpu.
By the way Tesseract uses gpu to render shadowmaps.
Also CUDA is Nvidia only tech which enables gpu to do other things that rendering (like physics). You don't need CUDA for shadowmapping or lighting, any gpu can do it.
Offline
GPUs excell at rendering things in high resolution but you want lightmaps to be in very low res because of filesize. Also I don't think there is a point to making lightmapping use gpu because it's not anything affecting gameplay and computing lightmaps on map Xenon (large map with a lot of lights) only takes about 5 seconds on mid end cpu.
By the way Tesseract uses gpu to render shadowmaps.
Also CUDA is Nvidia only tech which enables gpu to do other things that rendering (like physics). You don't need CUDA for shadowmapping or lighting, any gpu can do it.
I was just curious wether it was possible because i have a rather standard cpu and a good gpu and i'd figured using cuda to do lightmaps would be significantly faster for anyone that wants to make really high resolution light maps pretty quick.. i for one would use it for cinematic maps etc
Offline
Pages: 1