Home Tutorials Download Beta Store Forum Documentation KnowledgeBase Wiki Blog

ShiVa3D

Return to Adobe Flash 11

ShiVa Flash 11 engine C++ plug-ins support preview

Alternative to ShiVa's Web Player

ShiVa Flash 11 engine C++ plug-ins support preview

Postby NiCoX » 01 Apr 2012, 20:28

Hi all,

Just wanted to show you something still in an alpha stage but already working: C++ plug-ins support in the Flash engine. Here is the unmodified "WaterSim " sample, using two C++ plug-ins, running in the Flash 11 player:

http://developer.stonetrip.com/Download/Flash/WaterSim.html

This sample is really one of the worst cases when dealing with C++ plug-ins in Flash, as there are many memory accesses and many floating point calculations, that are both the dark points with Flash. But I'm pretty surprised by the overall performance, I was expecting way less :)
User avatar
NiCoX
Platinum Boarder
Platinum Boarder
 
Posts: 5652
Location: France

Re: ShiVa Flash 11 engine C++ plug-ins support preview

Postby radek_ne » 01 Apr 2012, 21:08

After all the presentations I have to start publishing the games in Flash :)

Great news :)

If you have connected to the Xbox Kinect (PC version) via plugins + Facebook games ... Is it possible? (my English is from translate.google.com - sorry :)
radek_ne
Expert Boarder
Expert Boarder
 
Posts: 116
Location: Poland

Re: ShiVa Flash 11 engine C++ plug-ins support preview

Postby NiCoX » 01 Apr 2012, 21:41

If you have connected to the Xbox Kinect (PC version) via plugins + Facebook games ... Is it possible?

No, unfortunately. How it works: C/C++ plug-ins are "compiled/translated" to AS3 code, then SWC. So the plug-in is running in the same sandbox than any Flash content, with no way to access local files, peripherals, and use system APIs.
User avatar
NiCoX
Platinum Boarder
Platinum Boarder
 
Posts: 5652
Location: France

Re: ShiVa Flash 11 engine C++ plug-ins support preview

Postby radek_ne » 01 Apr 2012, 22:08

Actually, now I understand :)

I've seen such a thing on mac os x but it was a flashBridge and had to be running an extra process for this purpose and it worked as a kind of server.

Anyway, I'm waiting for issuance of a new UAT with the possibility of exporting to Flash :)
radek_ne
Expert Boarder
Expert Boarder
 
Posts: 116
Location: Poland

Re: ShiVa Flash 11 engine C++ plug-ins support preview

Postby giggsy » 02 Apr 2012, 07:32

Nice!
User avatar
giggsy
Platinum Boarder
Platinum Boarder
 
Posts: 1102
Location: Austria

Re: ShiVa Flash 11 engine C++ plug-ins support preview

Postby RawenGroup » 02 Apr 2012, 08:08

Udp or tcp based network plugins maybe work?
RawenGroup
Expert Boarder
Expert Boarder
 
Posts: 93
Location: Hungary

Re: ShiVa Flash 11 engine C++ plug-ins support preview

Postby NiCoX » 02 Apr 2012, 09:11

Udp or tcp based network plugins maybe work?

We did not decide yet if we'll port the "socket" library, or if that will require to write some AS3 code for that (called from the C/C++).
User avatar
NiCoX
Platinum Boarder
Platinum Boarder
 
Posts: 5652
Location: France

Re: ShiVa Flash 11 engine C++ plug-ins support preview

Postby RawenGroup » 02 Apr 2012, 09:32

Thanks quick answare.
RawenGroup
Expert Boarder
Expert Boarder
 
Posts: 93
Location: Hungary

Re: ShiVa Flash 11 engine C++ plug-ins support preview

Postby Santo » 11 Apr 2012, 14:26

I think it would be preferable to write the network code (not multiplatform but flash specific) in as3, not (or not only) in c++
A way to include custom as3 code in a flash game imho would be GREAT (for example to interface the game with a game portal, e.g. Kongregate)
great job guys!!
Shiva 1.9.2 Basic - Shiva 2.0 Beta 1.0
Santo
Senior Boarder
Senior Boarder
 
Posts: 77
Location: Italy

Re: ShiVa Flash 11 engine C++ plug-ins support preview

Postby NiCoX » 11 Apr 2012, 14:39

A way to include custom as3 code in a flash game imho would be GREAT

It is already possible, just needs a "project" export type, and a step-by-step tutorial or a Mortar script (giggsy? :P :wink: )
User avatar
NiCoX
Platinum Boarder
Platinum Boarder
 
Posts: 5652
Location: France

Re: ShiVa Flash 11 engine C++ plug-ins support preview

Postby Santo » 11 Apr 2012, 14:51

:shock:
no more to add if not GREAT!! :)
Thx Nicox for the fast reply...
Shiva 1.9.2 Basic - Shiva 2.0 Beta 1.0
Santo
Senior Boarder
Senior Boarder
 
Posts: 77
Location: Italy

Re: ShiVa Flash 11 engine C++ plug-ins support preview

Postby giggsy » 11 Apr 2012, 15:22

NiCoX wrote:... a step-by-step tutorial or a Mortar script (giggsy? :P :wink: )


We'll definitely have a deeper look at it, as soon as we got the Android version Candy Island out (shouldn't be too far in time ;) )
User avatar
giggsy
Platinum Boarder
Platinum Boarder
 
Posts: 1102
Location: Austria

Re: ShiVa Flash 11 engine C++ plug-ins support preview

Postby Fraser » 12 Apr 2012, 03:07

SWEET! Runs very nice... ~15% CPU usage on Core_I5 2.3GHz
Fraser Ashworth,
https://www.cortex7.net
User avatar
Fraser
Platinum Boarder
Platinum Boarder
 
Posts: 1075
Location: Europe

Re: ShiVa Flash 11 engine C++ plug-ins support preview

Postby giggsy » 10 Aug 2012, 07:56

Hi!

This would probably be the last Flash feature we need in order to get Candy Island out on Flash.
How are you progressing?
Is there a possible eta? :)

Thanks!


Edit: will this also work with STL?
User avatar
giggsy
Platinum Boarder
Platinum Boarder
 
Posts: 1102
Location: Austria

Re: ShiVa Flash 11 engine C++ plug-ins support preview

Postby giggsy » 17 Dec 2012, 09:37

Hi,

I actually was kinda hoping for this to be included in 1.9.2 beta.
Whats the current state? =)

Thanks!
User avatar
giggsy
Platinum Boarder
Platinum Boarder
 
Posts: 1102
Location: Austria


Return to Adobe Flash 11