partio icecache format

80 views
Skip to first unread message

ioDUM

unread,
Oct 11, 2012, 12:11:34 PM10/11/12
to partio-...@googlegroups.com
hi, i was trying to implement madcrew patch with icecache support, and compile on linux, and after trying to open icecache in partio vizualizer in maya i'm getting following error:
in console:
Partio: addAttribute failed because attr '' already exists

and in script editor:
// PartioVisualizer-> LOADED: 3 particles
// Error: PartioVisualizer->Failed to find position attribute  //


on compile i was getting multiple definition error:
multiple definition of `Partio::readName(std::basic_istream<char, std::char_traits<char> >&)'
../../../lib/libpartio.a(PDC.o):PDC.cpp:(.text+0x0): first defined here


so i commented readName lines in icecache.h, then it compiles successfully but does not read icecache, could someone please take a look at the code

thanks,
Igor

icecache_madcrew.patch

Andrew Selle

unread,
Oct 11, 2012, 1:53:26 PM10/11/12
to partio-...@googlegroups.com
The readName should be abstracted into anonymous namespaces in the
readName... i.e.

namespace{
// definition of readname
}

that way it will be invisible to other compilation units. I've
submitted this as an issue in github.

John Cassella

unread,
Oct 11, 2012, 2:25:32 PM10/11/12
to partio-...@googlegroups.com
Hi Igor,

Did Madcrew  post this somewhere? he/they have a  partio fork, but I don't see anything in there about it?   If you don't mind  I'll put it into the main  redpawfx branch of  partio  as soon as I have a chance so we can get a wider audience to test it  out.

let me know.

thx.
-johnc

ioDUM

unread,
Oct 11, 2012, 5:15:31 PM10/11/12
to partio-...@googlegroups.com
hey John, there's no fork afaik, this is a patch to original partio repo i picked up on another mailing list and started working with, trying to get pto4maya to read icecache, anyway thank you both for your answers,
Igor

ioDUM

unread,
Oct 13, 2012, 5:13:49 AM10/13/12
to partio-...@googlegroups.com
thanks Andrew, it works after i put pdc.cpp's readname into anonym namespace, i see icecache in maya viewport, i'll upload patch or link to my repo to contribute to the project later, the more formats the merrier
Reply all
Reply to author
Forward
0 new messages