Irrlicht.NET with ASP.NET?

Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
Locked
pkuebler
Posts: 1
Joined: Tue Jun 06, 2006 2:50 pm

Irrlicht.NET with ASP.NET?

Post by pkuebler »

Is it possible to develop an ASP.NET application with Irrlicht.NET?

On the Hello-World Application in ASP.NET I get the following error:

==================================
Irrlicht device could not be created with the parameters you specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Exception: Irrlicht device could not be created with the parameters you specified.

Source Error:


Line 22: protected void Page_Load(object sender, EventArgs e)
Line 23: {
Line 24: IrrlichtDevice device = new IrrlichtDevice(DriverType.DIRECT3D8);
Line 25: // IrrlichtDevice device = new IrrlichtDevice(DriverType.DIRECT3D8,new Dimension2D(1024, 768), 16, false, false, false);
Line 26:


Source File: E:\Inetpub\wwwroot\HelloWorld_ASP\HelloWorld_ASP\Default.aspx.cs Line: 24

Stack Trace:


[Exception: Irrlicht device could not be created with the parameters you specified.]
Irrlicht.IrrlichtDevice.createManagedStuff() +849
Irrlicht.IrrlichtDevice..ctor(DriverType driverType) +221
HelloWorld_ASP._Default.Page_Load(Object sender, EventArgs e) in E:\Inetpub\wwwroot\HelloWorld_ASP\HelloWorld_ASP\Default.aspx.cs:24
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
=======================================

When I start the ASP.NET Hello-World Application in Debug-Mode,
the application runs well.
I develop with MS VS2005

Thanks and best regards
Paul
Paul28
Cube3
Posts: 30
Joined: Wed Mar 15, 2006 7:42 pm
Location: http://cube3.helpmy.net

Post by Cube3 »

It would be truly awesome if that did it.

You can't create a window on the client this way, ASP.NET runs server side.

If you want to host it on the client, you will need to encapsulate it in a browser control. like ActiveX and ship the dependend DLL's the the client's browser.
Platform 3D Engine using Irrlicht.NET
http://cube3.helpmy.net
Braneloc
Posts: 68
Joined: Fri Jan 20, 2006 5:12 am
Location: England
Contact:

Post by Braneloc »

You might be able to create the device, render to a texture and send the texture over the asp though..

(but don't expect it to run more than one frame on the end user without special, umm, client side code.)
Sometimes you've just gotta say, the laws of time and space, who gives a smeg ?!

Irrlicht.Net Information - http://www.irrforge.org/index.php/.net
Irrlicht# (aka the C# port) - http://irrlichtsharp.sourceforge.net
Locked