On 22/03/2015 at 18:39, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R14
Platform: Windows ;
Language(s) : C++ ;
---------
Hi folks,
I'm fast heading towards a point where I need an ogl access point for my plugin. Does anyone or support, have a basic setup or example that I could develop off the back of? It can either be via the SDK's factory stuff, or direct ogl routines itself. I would probably prefer the standard ogl way as I know a little on that already, and there's a lot more references on the net to study than the sdk's.
That said, I'm happy to keep it all in the sdk family if it is easier to implement and be more portable from pc to mac. It would still need to be reasonable speed-wise though.
I'm only after a starting point. Nothing more than something that shows that it's working (something like a polygon draw, or a change in background colour). It needs to do a couple of things:
1: needs to draw into a user area (specified by coordinates/screen position, but I can probably take care of that) and preferably without having to go gpu->cpu->gpu (I've been informed that this would really only slow it down, and that it shouldn't really be necessary?)
2: would be great if I could still draw basic elements over the display (i.e. using something like DrawLine() inside the user area's draw function) but I can probably just as easily draw them in ogl itself
3: would prefer something that's 'simple' to implement, i.e. would like something without external libraries unless they're simple to setup, and can be happily used on both pc and mac without too much setup nonsense
4: extending on point 3, needs to be cross-platform for pc and mac. Perhaps a good reason to use the sdk over standard methods?
I've had an ogl display in the past, and I still have that lying around, but I could never get it to draw properly. I can do normal ogl stuff in a Windows dialog, but not a Cinema dialog - it only ever drew tv-like noise. Trying to work the rest of this out myself though is becoming a bit beyond my skills. A proper working starting point would be a big help here! Cheers,
WP.