Linux?

Questions, suggestions, use cases, announcements related to Lighthouse 2.
straaljager
Posts: 24
Joined: Thu Dec 01, 2011 9:45 pm
Location: Switzerland
Contact:

Re: Linux?

Post by straaljager » Sun Sep 15, 2019 11:03 am

After some testing, I found that Lighthouse 2 can currently load about 1400 (37x37) instances of a dragon and about 2000 instances of the lego car model. If I go higher than that, a cudaMemcopy() fatal error occurs.

Image
Image

jbikker
Posts: 223
Joined: Mon Nov 28, 2011 8:18 am
Contact:

Re: Linux?

Post by jbikker » Mon Sep 16, 2019 6:59 am

Yes, 12 bit is reserved for the instance index, as discussed earlier. Apparently something is still 'signed' somewhere so you lose another bit, yielding 2048. I suspect it will work till 2047, after that you will get the crash. This will be relaxed in a future version.

Awesome dragon scene btw. ;)

straaljager
Posts: 24
Joined: Thu Dec 01, 2011 9:45 pm
Location: Switzerland
Contact:

Re: Linux?

Post by straaljager » Tue Sep 17, 2019 6:58 pm

Thanks! Looking forward to an updated version :)

jbikker
Posts: 223
Joined: Mon Nov 28, 2011 8:18 am
Contact:

Re: Linux?

Post by jbikker » Thu Sep 26, 2019 3:25 pm

An updated version appeared. You now get 4 billion instances of 4 billion triangles, if you have the memory. This comes at the expense of barycentric coordinate accuracy, so having a 4km x 4km floorplane with a 32k x 32k texture may be less accurate than it was. For most use cases this seems to be a reasonable trade-off.

Latest version also supports animations with skinning from gltf files. This is WIP; normals are not yet transformed, values for consistent normal interpolation may need an update, the whole flow could use some optimization and ideally, it should run in parallel with GPU work. But that's for later.

straaljager
Posts: 24
Joined: Thu Dec 01, 2011 9:45 pm
Location: Switzerland
Contact:

Re: Linux?

Post by straaljager » Wed Oct 02, 2019 7:32 pm

Awesome! We'll give this a try once we receive RTX cards at work.

jbikker
Posts: 223
Joined: Mon Nov 28, 2011 8:18 am
Contact:

Re: Linux?

Post by jbikker » Tue Oct 08, 2019 11:03 am

Marijn Suijten created a Linux port of Lighthouse 2:
https://github.com/MarijnS95/lighthouse2/tree/linux
This will be rolled into the main repo soon.
Note that the Linux repo does not yet include the recently added Vulkan core.

Post Reply