Hello

It's working here as well.
to compile i needed the flags : -arch i386 for CPPFLAGS and LDFLAGS (my makefile is attached). in the help file i can't see anything (what must i do?), but in the triangle and points patches things seem to work great.
I am around 60fps.
Mac osx 10.6.8
nvidia geforce 320M
it should be nice to have more infos in the help file
good work!

best,
n

ps: tell me if you want the binary.

Le 29/08/11 15:22, cyrille henry a écrit :
hello,

i personnaly think this would be a nice addition to Gem.
but i'd like to have feedback of osX (and windows ) users befor commiting.

c



Le 28/08/2011 20:39, Antoine Villeret a écrit :
hi all,

Cyrille and me made [gemvertexbuffer] object while we were trying something with OpenCL.
This object fillin a VBO (Vertex Buffer Object) with pd tables values.
It looks like scopeXYZ but we think it's more flexible.
It's very fast (100000 points @ 250 fps on a Nvidia Geforce 9400M).
We know that something similar already exists in the vertex folder of Gem but we need to do it by ourself to better understand VBO workflow. As we learned a lot of things doing this, we hope that it could help someone else, so we share it...

It has been test on Ubuntu.
If you want to build it, you just need to adjust paths in the Makefile and run make.



--
http://nim.on.free.fr
PD_DIR = $(HOME)/pd/pd
GEM_DIR = /Users/nix/gem/pd-gem/trunk/Gem


# build flags

INCLUDES =  -I$(PD_DIR)/src -I.  -I$(GEM_DIR)/src -I$(PD_DIR)/src
CPPFLAGS  = -fPIC -DPD -O2 -funroll-loops -fomit-frame-pointer  -ffast-math \
    -Wall -W -Wno-unused -Wno-parentheses -Wno-switch -g


UNAME := $(shell uname -s)
ifeq ($(UNAME),Linux)
 CPPFLAGS += -DLINUX
 INCLUDES += 
 LDFLAGS =  -Wl,--export-dynamic -shared 
 LIBS = 
 EXTENSION = pd_linux
endif
ifeq ($(UNAME),Darwin)
 CPPFLAGS += -arch i386
 INCLUDES += -I/Library/Frameworks/OpenCV.framework/Headers/ 
-I/Applications/Pd-extended.app/Contents/Resources/include/pdextended 
-I/Applications/Pd-extended.app/Contents/Resources/include/
 LDFLAGS =  -bundle -undefined dynamic_lookup -arch i386
 LIBS =  -lm -framework OpenCV
 EXTENSION = pd_darwin
endif

.SUFFIXES = $(EXTENSION)

SOURCES = gemvertexbuffer.cc

all: $(SOURCES:.cc=.$(EXTENSION))

%.$(EXTENSION): %.o
        gcc $(LDFLAGS) -o $*.$(EXTENSION) $*.o $(LIBS)

.cc.o:
        g++ $(CPPFLAGS) $(INCLUDES) -o $*.o -c $*.cc

.c.o:
        gcc $(CPPFLAGS) $(INCLUDES) -o $*.o -c $*.c

install:
        cp -f --remove-destination *.pd $(PD_DIR)/doc/5.reference

clean:
        rm -f *.o
        rm -f *.$(EXTENSION)

distro: clean all
        rm *.o
_______________________________________________
GEM-dev mailing list
[email protected]
http://lists.puredata.info/listinfo/gem-dev

Reply via email to