Max/MSP + CryEngine ?

Yiannis Ioannides's icon

Hello everybody,

I started a thread a while ago, regarding my project ( https://cycling74.com/forums/algorithmic-interactive-composition-based-on-unity-gameplay ) but due to the nature of its current development, I have been changing directions, and mostly, keeping my options open for other engines.

So my question is, does anybody have any experience whatsoever operating CryEngine with Max/MSP? I've been trying to do some research on interoperation, but it seems its not that of a popular choice. My initial goal was to work with Unity, through the free standalone [muy] and there were plenty of resources to work with.

Maybe in the process some other option might come up, but for the time being, it's good to collect some resources anyway, for future reference.

Thanks everybody,
Yiannis

Yiannis Ioannides's icon
jamesson's icon

Max Msp has its own 3d renderer, consequently I'm not expecting a lot of interest in interconnections

Yiannis Ioannides's icon

Of course, sure, but it's for responsive audio for video games.

jamesson's icon

I know some basics about videogame audio. AFAIK

A) CryEngine has its own audio subsystem

B) Many videogame audio apis are in widespread use - see under FMOD. The only serious video game person to my knowledge using Max MSP is a woman who works on the Sims - I saw the interview on this site actually.

Not that what you want is undoable, just mainly unnecessary.

Yiannis Ioannides's icon

I am aware of all these things, but I want to make a generative interactive performance, something I can't do with other middlewares, like FMOD etc. A lot of people do use Max/MSP for generative compositions of responsive audio, the guy that did Limbo, Akira Yamaoka for Silent Hill etc.

Looking at commercial middleware was my first option, but I need something much more specific, hence the development on Max/MSP.

Thanks for your response, nonetheless!

jamesson's icon

I have looked at your examples of games and you are correct. Do you own max? If so I think it would be worthwhile for you to ask c74 support and report back to the forum.

Thanks very much in advance

Joe

Yiannis Ioannides's icon

I do own Max, yes. Actually, that's a really good idea, I will do so and respond to this thread accordingly. Thanks so much!

Yiannis Ioannides's icon

I will bump this one last time, since it's an important question. I emailed the C74 people but they haven't answered back, and I still haven't found anything from researching the internet.

Yiannis Ioannides's icon

It is very true.

PD was my Plan B (in case I encountered irreversable difficulties with Max), being open-source and all, but unfortunately, I am really far in development... Originally, I was to implement it with Unity and UDK, and there was no problem in the process, but as I mentioned, plans in the development have inevitably changed.

But thank you so much Vanille! Interesting source!

Yiannis Ioannides's icon

Hahaha, I think I know what you mean! Basically, I am working on a responsive audio (music) patch that will interact with a CryEngine game!

jamesson's icon

surely you can call them? Does the documentation not say if they offer phone support?

Yiannis Ioannides's icon

I could try that, though it doesn't really sound all that practical, troubleshooting over the phone...

jamesson's icon

Any official info would be useful, IMO...

jamesson's icon

Just ask them to look at the forum thread and reply, worst they can do is say no...

Rob Ramirez's icon

hi deusnovus and jamesson, i'm not entirely sure what you're trying to learn from cycling employees.

if anyone has any insight to using cryengine with max, they will reply to this thread.

most interaction with external softwares involves sending messages using OSC or udp or tcp connections.
if cryengine supports one of these forms of communication, there will be no problem communicating and interacting with max.

jamesson's icon

Robert

We would like an API. Barring that, some kind of tutorial for using max/msp to make environmental audio and procedural music for games would be great.

Thanks

Joe

Rob Ramirez's icon

regarding your second query, perhaps you will have more look starting a new topic with a subject line and post specifying this.
the OP here seems to be asking something different...

jamesson's icon

I fear I may have misexpressed myself when I said "api" What we would like to do is play patchers in other applications, including games. The pd link is exactly what we're hoping for.

Thanks again

Joe

Yiannis Ioannides's icon

Hello Robert and jamesson,

Thank you for your replies. Exactly what jamesson said, I was hoping I was clear enough on what I was asking. Basically, how a Max patch can interoperate with CryEngine, for environmental and procedural audio, as simple as that. (just like what that PD link does)

Thanks,
Yiannis

jamesson's icon

As I said, I would recommend calling c74. At the very least, a question should be asked "what do people mean when they say they use max msp in games?" I could easily imagine that for instance they simply created assets that they loaded into fmod.

jamesson's icon

Look, it is a simple question. Some people made some serious games with Max MSP. How did they do it? In what maner was Max MSP included into the workflow?

Yiannis Ioannides's icon

Hello,

Very informative feedback, thanks so much for sharing Vanille, but the question remains the same, just like jamesson said. When the time comes, in the far-future, I will look my licencing options, which I am aware that they're not many. I wasn't really looking into making any money, just a nice commercial project.

But for the moment, the question is still the same. How do you do that?

Yiannis Ioannides's icon

Amazing source! I assume that was the person jamesson was talking about, pretty nice!

And trust me Vanille, truth be told, given this and that, I would have switched to PD in a heartbeat if I could, but I am so far into development that I can't back down!

Plus, if we manage to overcome this obstacle and figure out a way to implement Max to CryEngine or to whichever platform, it'll be easier for future generations to come. ;)

jamesson's icon

Look, it seems like there is no api. What ppl are doing is essentially "let's build a daw to our own specs". Now, question is, is fmod and co. sufficiently advanced to obviate the need for using max the way you want? If so, then you should go learn that. Surely you want to be consistent with industry sota?

I was hopeful too, at first, but it's clear now that max is for daw users rather than engine developers. It's not that it wouldn't be nice to do what you want, it's just that it looks like it's not in the program.

Yiannis Ioannides's icon

What I've created is a personalized middleware, build up to my needs, just like the Sims people did, or whoever wanted to have something very specific and user-friendly to the eye of the Max user. In its current form, it does something that FMOD cannot, so no, using a common middleware wouldn't be an option I'm afraid.

Nonetheless, I am really grateful you guys took the time to look into it, I appreciate it! I'll keep researching on this, eventually I'll find the way.

jamesson's icon

In fact, Max would be ideal for resource acquisition for videogames, which require huge numbers of files made in an organized fashion. You could programatically configure file naming and organization, which would allow the engine coders to write code without worryiong about file locations.

Yiannis Ioannides's icon

That is absolutely not a problem for me! (I'm a nut for organization.)

jamesson's icon

I think you should post your work and we can see for ourselves if we can replicate it in fmod or whatever. A great learning experience for all!

Yiannis Ioannides's icon

As soon as I complete it, definetely! It's a really nice work, and I will still try to find a way to get it to work with CryEngine. If there's not a way, I'll make one! *foolish optimism*

jamesson's icon

Think about something like Mass Effect (hours upon hours of dialogue). I don't care if you're Herman Hollerith, you'll never keep all that straight by yourself. Much easier to have scripted file naming in Max.

Yiannis Ioannides's icon

Oh, maybe I wasn't really clear on the nature of my project

I will be showcasing my tool on a 10-minute game level, no cutscenes, no nothing. But it'll show what it can potentially do in a real-life scenario, just like the people that have used Max in the industry, like the people mentioned above.

Could be in an artform hame, life sim, FPS, whatever you want.

Yiannis Ioannides's icon

Plus, I'd like to assume that it's the composer's duty to know how to crrate his own tool but it's the programmer's duty to know how to implement it.

Maybe we're getting kind of off-track and rhetorical with this, but point is that I am trying to accomplish both duties, with a ridiculously little programming experience... *sigh*

jamesson's icon

No, I know what you were planning. I'm just describing the way ppl in the industry use it.

jamesson's icon

I think a big problem is that you aren't familiar with standard workflows. This is why I was at first confused by the examples you cited. I would take a look at gamasutra and/or major game company job listings (other than, say, harmonix). Eferybody needs you to know something like fmod. Few ppl specify max/msp.

Yiannis Ioannides's icon

I know, I have already used it in the past. I just wanted to do something out of the ordinary, with/for a reason of course.

jamesson's icon

If you're going for a final product (instead of a tech demo) I would convert to pd asap.

Yiannis Ioannides's icon

It'll be just a tech demo, but if I ever decide to release it, I might just do that.

jamesson's icon

After some research,I feel like your best option is csound. I will take a more in-depth look at it later.

Yiannis Ioannides's icon

To do what with Csound? I have played too much with Csound, it wouldn't seem relevant to my project. By the way, I did found a way to connect Max/MSP + CryEngine. Research paid off, I will be updating the forum soon.

jamesson's icon

Csound can load vstis and dynamically manipulate them.

jamesson's icon

Pretty awesome if you found a solution tho.

sofiasimoes's icon

Please, do not forget to put the solution you found here! It would be really helpful.

Thank you.

Yiannis Ioannides's icon
mlh1407's icon

i have used unity with maxmsp a couple of times with this method http://forum.unity3d.com/threads/4853-Max-MSP-communication (the one described by bjerre) other than that there is the mu solution and then there is a midi plugin for unity .. cant find the link but i used that with maxmsp a lot for a while.

Yiannis Ioannides's icon

But turns out, any software that can work as an API will allow a communication like that, so now it would be a matter of figuring out how to create the sender within CryEngine.

As I might have said in a similar thread: https://cycling74.com/forums/maxmsp-unity ...I ended up using Unity3D for my work, instead of CryEngine (due to game limitations, really.) but from my research, I see that all softwares work the same.

julienrobert's icon

Hi Yiannis

I'm planning to use a game engine for a future project because I need to deal with intense physics objects and Jitter is not as efficient as a game engine for that purpose.

For the moment I tried Unity3d and it seems promising. I wonder if I should try CryEngine.

What limitations did you find with CryEngine?
One of the option I need is to be able to use Syphon with the engine since I want to pipe it inside Mad mapper to map the video on the stage… do you think Syphon might work with CryEngine?

Thanks

Samelot's icon

Check out unreal engine 4. Costs money, but perhaps they have a trial.. Looks amazing. Unity3d seems pretty great two, and the support for it is immense.

Check out libpd

julienrobert's icon

Unreal engine looks amazing. Now, I just need to lear how to add Syphon support to it...

Samelot's icon

This is some pretty new stuff for Unity3d I stumbled upon the other day.

"3d audio. binaural sound. positional audio. immersive audio."