Open GoogleCodeExporter opened 8 years ago
[deleted comment]
[deleted comment]
Hmm, I just tried an older version of the code and it does in fact "work" with
as few as 1-10 particles, it does not seem like they turn into NaN.
If you fix the compile errors I'll try to reproduce and look into it with the
latest code as well.
On possibility also:
I see that you use HBL_READ_ONLY to lock/read from the hardware buffer.
The simulation rendering buffer is created with HBU_DISCARDABLE (in
OgreSimRenderable.cpp), which is "Combination of HBU_STATIC and HBU_WRITE_ONLY".
HBU_READ_ONLY documentation says:
"Lock the buffer for reading only.
Not allowed in buffers which are created with HBU_WRITE_ONLY. Mandatory on
static buffers, i.e. those created without the HBU_DYNAMIC flag."
The reason I create the rendering buffers as HBU_DISCARDABLE is for maximum
speed. Try to change this to HBU_DYNAMIC, which should makes it possible to
read back into system memory (this does however come with a performance penalty
since GPU-CPU transfers are fairly expensive).
Øystein
Original comment by oystein....@gmail.com
on 21 Jul 2011 at 4:11
[deleted comment]
[deleted comment]
[deleted comment]
[deleted comment]
[deleted comment]
Ok, good that you found a temporary workaround. I'll take a look again as soon
as I can. I'm on vacation right now so I don't have access to a develoment pc.
Also I'm excited that you are working on integration of GPU-based metaballs:)
Original comment by oystein....@gmail.com
on 23 Jul 2011 at 1:51
Original issue reported on code.google.com by
yaoya...@gmail.com
on 21 Jul 2011 at 6:26