Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (7th_zorro), 1,390 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 14 of 32 1 2 12 13 14 15 16 31 32
Re: C# wrapper - RELEASE 1.1.1.3 [Re: DJBMASTER] #282085
07/30/09 10:00
07/30/09 10:00
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
thank you for the small tutorial ^^
yeah it will be best to wait until the wrapper is really stable !


get the C# wrapper:
for A7.85.4 and A8.30.4, Version 2.3.9
at http://acknexwrapper2.matthias-auer.net/ or visit the thread
Re: C# wrapper - RELEASE 1.1.1.3 [Re: ventilator] #282481
08/01/09 12:43
08/01/09 12:43
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
Originally Posted By: ventilator

Code:
using System;
using a7;

namespace test
{
	class Program
	{
		public static void Main(string[] args)
		{
			Engine e = new Engine("-nwnd");
			Console.WriteLine(e.version);
			Vector v1 = new Vector(10, 10, 10);
			Vector v2 = new Vector(30, 30, 30);
			Vector v = v1 + v2;
			Console.WriteLine(v);
			while(e.frame() != 0)
			{
				
			}
			e.close();
		}
	}
}



I like how you overloaded the "+" operator!
You seem to be making decent progress !


get the C# wrapper:
for A7.85.4 and A8.30.4, Version 2.3.9
at http://acknexwrapper2.matthias-auer.net/ or visit the thread
Re: C# wrapper - RELEASE 1.1.1.3 [Re: Stromausfall] #282485
08/01/09 13:01
08/01/09 13:01
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
no, not really. smile i don't have much time for this unfortunately.

...but actually the only thing i still have to figure out is how to best handle callbacks with boo. afterwards it would only be some grunt work to complete a nice wrapper.



...
i think it makes sense to use a vector class with overloaded operators. the class also doesn't use vars but floats which results in better precision in many cases.



...
by the way, boo features powerful macros which are nice for avoiding repetitive code like often happens in a wrapper. it would be possible to do stuff like:

# f = float, i = int, _ = no setter
property version f_
property edition i_
property compatibility ii

only one line per property! smile

unfortunately macros seem to be quite complicated to write. you have to work with the AST (abstract syntax tree) and there isn't any documentation about it yet so i probably won't use macros.

Re: C# wrapper - RELEASE 1.1.1.3 [Re: ventilator] #282599
08/02/09 13:58
08/02/09 13:58
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
Hey stromousfall i think i've found another bug...

I'm experimenting with particles. In my particle function if i set one of the flags to false, eg my.BRIGHT = false , it results in a memory read exception. I think the same goes for other flags like MOVE, TRANSLUCENT etc.

Re: C# wrapper - RELEASE 1.1.1.3 [Re: DJBMASTER] #282622
08/02/09 16:37
08/02/09 16:37
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
Thank you !
I will look into this!

@ventilator i wish c# would even have some kind of macro ^^
Boo macros seem to be extremely powerful !

Last edited by Stromausfall; 08/02/09 18:36.

get the C# wrapper:
for A7.85.4 and A8.30.4, Version 2.3.9
at http://acknexwrapper2.matthias-auer.net/ or visit the thread
Re: C# wrapper - RELEASE 1.1.1.4 [Re: Stromausfall] #282623
08/02/09 16:54
08/02/09 16:54
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
The new version of the c# wrapper for A7.77 Version 1.1.1.4 is ready to download on it's homepage : http://acknexwrapper.matthias-auer.net
It fixes a bug, where a boolean property, which was assigned with false, threw an exception !
Big thanks go to DJBMASTER for finding this bug!


get the C# wrapper:
for A7.85.4 and A8.30.4, Version 2.3.9
at http://acknexwrapper2.matthias-auer.net/ or visit the thread
Re: C# wrapper - RELEASE 1.1.1.4 [Re: Stromausfall] #282976
08/05/09 01:20
08/05/09 01:20
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
Another bug >>>

MATERIAL mat = new MATERIAL();
mat.ambient_red.IntValue = 64; [Results in memory exception!]

Also MATERIAL.effect causing a marshalling exception. Other properties of MATERIAL may cause similar exception, i havent tested them all.

Last edited by DJBMASTER; 08/05/09 01:21.
Re: C# wrapper - RELEASE 1.1.1.4 [Re: DJBMASTER] #283020
08/05/09 10:05
08/05/09 10:05
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
at the moment one can't create a material through new MATERIAL(), one has to use mtl_create() as in lite-c, like the other engine objects, these objects have to be created through engine functions!


get the C# wrapper:
for A7.85.4 and A8.30.4, Version 2.3.9
at http://acknexwrapper2.matthias-auer.net/ or visit the thread
Re: C# wrapper - RELEASE 1.1.1.4 [Re: Stromausfall] #283103
08/05/09 17:47
08/05/09 17:47
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
oh ok, good to know.

Re: C# wrapper - RELEASE 1.1.1.4 [Re: DJBMASTER] #283241
08/06/09 17:49
08/06/09 17:49
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
It looks very interresting! I'm using Visual Studio 2003 (Academic) though, so my C# compiler does not support generics and static classes frown

I'll try changing the code to make it compatible with my C# compiler and I hope it will be working then. I'd really love to use C# with 3DGS smile

Page 14 of 32 1 2 12 13 14 15 16 31 32

Moderated by  TWO 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1