searching for xlib and tcp mostly brings up info about ssh to remote x server or similar. Am not finding any info about how to program sockets inside an opengl and xlib program. Maybe I ought to read the xlib manual. Would I just copy the u_pdsend and u_pdrecieve functions inside my code? Or is there tcp sockets built in to the event handling? Am wanting to use the nifty rapid graphical programming environment to add some tcl/tk controls to my opengl xlib mandelbox renderer because it is currently a challenge to translate my old gui controls to work with the xwindows event processing. The eventual goal is to add the zoom function and navigation in 3d for my sequencer in pd. But first I just want to sync the pd mandelbox sequencer with the opengl xlib visualization( so the current point that is getting sequenced in pd shows up graphically by hilighting the point within the voxelspace as well as plotting the orbits).
I didn't understand anything, so this might not give answer, if you are looking for a mandelbox interface there is mandelbulb, but it's kinda some billions light years away puredata's topics.
Le 18/10/2015 07:25, Billy Stiltner a écrit :
searching for xlib and tcp mostly brings up info about ssh to remote x server or similar. Am not finding any info about how to program sockets inside an opengl and xlib program. Maybe I ought to read the xlib manual. Would I just copy the u_pdsend and u_pdrecieve functions inside my code? Or is there tcp sockets built in to the event handling? Am wanting to use the nifty rapid graphical programming environment to add some tcl/tk controls to my opengl xlib mandelbox renderer because it is currently a challenge to translate my old gui controls to work with the xwindows event processing. The eventual goal is to add the zoom function and navigation in 3d for my sequencer in pd. But first I just want to sync the pd mandelbox sequencer with the opengl xlib visualization( so the current point that is getting sequenced in pd shows up graphically by hilighting the point within the voxelspace as well as plotting the orbits).
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 10/18/2015 07:25 AM, Billy Stiltner wrote:
searching for xlib and tcp mostly brings up info about ssh to remote x server or similar. Am not finding any info about how to program sockets inside an opengl and xlib program.
that's because they are unrelated. search for documentation on how to implement sockets for the networking part. search for documentation about xlib to build the X-part (seriously? writing xlib applications sounds a bit like you missed the last 20 years). search for documentation about openGL to build the opengl part.
but there's little point in searching for information that combines all three.
Maybe I ought to read the xlib manual. Would I just copy the u_pdsend and u_pdrecieve functions inside my code?
that's probably an overkill. FUDI is really super-simple: it's just strings that are terminated by ";" (and a newline, iirc).
Or is there tcp sockets built in to the event handling?
no. (assuming that by the "event handling" you mean the X event handling). do it manually.
mgfsar IOhannes
if you are looking for a mandelbox interface there is mandelbulb
hey patrice, I use mandelbulber sometimes. It's actually where I checked to see if I had the coding right when I added it to my renderer
this is my old3d fractal renderer that uses SDL http://geocities.ws/billy_stiltner/code/newquafra.zip
the version with the mandelbox is here https://www.facebook.com/groups/555999454468221/556001087801391/ xlib only
it's different than other fractal renderer's , it fills up a 3d cube with transparent voxels so you you can see though the thing while colorcycling in real time. Other renderers use raymarching so you end up with a static view. You can move the 3dfractal around in realtime while it's colorcycling with my renderer.
writing xlib applications sounds a bit like you missed the last 20 years).
It still works great as far as i can comprehend so does opengl for the
past 20 years I hadnt messed with my 3d fractal in about 10 years was waiting on computers to get faster and someone to find a nice 3d mandelbrot. Allthough all my attempts made somewhat nice looking mandelbrot like fractal caves , the math was not correct. Anyways my code compiled just great it used SDL's OGL stuff. I didnt want to be depending on SDL so I rewrote it to use xlib only. Thanks for the info. So if I use a separate socket , it will not interfere with the XServer. I thought there might be someway X could handle the socket. What about using pdreceive and pipeing or redirecting the output to my app? I'm not sure how to handle the input from the programming side.
On 2015-10-20 05:17, Billy Stiltner wrote:
I'm not sure how to handle the input from the programming side.
read the stdin.
reading data from a file, a pipe (like stdin) or a network socket is all the same. (well mainly; you cannot seek() a network stream or a pipe; but as long as you do sequential reading, they are the same).
fgmasdr IOhannes
On Tue, Oct 20, 2015 at 3:26 AM, IOhannes m zmoelnig zmoelnig@iem.at wrote:
On 2015-10-20 05:17, Billy Stiltner wrote:
I'm not sure how to handle the input from the programming side.
read the stdin.
reading data from a file, a pipe (like stdin) or a network socket is all the same. (well mainly; you cannot seek() a network stream or a pipe; but as long as you do sequential reading, they are the same).
fgmasdr IOhannes
thanks
ran into a problem using java tcp socket and javascript, pretty sure it's probably not in javascript the array size ought to grow to fit the concatenations but on PD's side am only getting 1672 bytes off the tail end of some of my FUDI messages. It is a different problem than the subject line of this message. Getting off subject even more here -> What about web browsers' implementation of raw sockets without JAVA? It seems they are allowed on mobile devices, in FireFox's development documents as experimental like features, same with chrome. This would be great for androids and such but what about easy use of FUDI from the browser without having to have any intermediate protocols like websockets , etc.. would gladly use something like going through pdsend/pdrecieve straight from the browser. JAVA is a bit of a monster to put between a web browser and puredata.