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
2 registered members (AndrewAMD, Ayumi), 1,405 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 11 of 23 1 2 9 10 11 12 13 22 23
Re: C# wrapper 2.2.3 - RELEASE [Re: pararealist] #366133
04/01/11 15:41
04/01/11 15:41
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
I've never compiled the wrapper to a dll...

But I think that the A7_WRAPPER conditional only needs to be added when you compile the dll... But I don't really know that much about .net dll compiling and stuff smirk


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 2.2.3 - RELEASE [Re: Stromausfall] #366262
04/02/11 14:03
04/02/11 14:03
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
pararealist Offline
Senior Member
pararealist  Offline
Senior Member

Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
Ha, good thought.
Will try compiling wrapper dll with A7_WRAPPER then.
So it probably does not need to be inserted in project when using dll if already in Wrapper compilation.


A8.3x Commercial, AcknexWrapper and VS 2010 Express
○pararealist now.
Re: C# wrapper 2.2.3 - RELEASE [Re: Stromausfall] #366787
04/07/11 09:56
04/07/11 09:56
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
pararealist Offline
Senior Member
pararealist  Offline
Senior Member

Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
Hi,
i noticed bmap_create always seems to returns null.
Please check using your Shader example.
//
compiling AW as dll is fine now.


A8.3x Commercial, AcknexWrapper and VS 2010 Express
○pararealist now.
Re: C# wrapper 2.2.3 - RELEASE [Re: pararealist] #366792
04/07/11 10:57
04/07/11 10:57
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
hmmm I can't reproduce that error ! Are you able to load the image file in lite-c ? If you're able to load it in lite-c, could you post or send me an example project or the part of the script were you call it ?


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 2.2.3 - RELEASE [Re: Stromausfall] #366793
04/07/11 11:11
04/07/11 11:11
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
pararealist Offline
Senior Member
pararealist  Offline
Senior Member

Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
i am actually using your shader example
and just added bmap_create to test it
as bmap_create returned null in my project.
Did a breakpoint and it returns null in every case.

But i think i need to check that i dont call bmap_create before
video is started, will get back to you.


A8.3x Commercial, AcknexWrapper and VS 2010 Express
○pararealist now.
Re: C# wrapper 2.2.3 - RELEASE [Re: Stromausfall] #366795
04/07/11 11:45
04/07/11 11:45
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
pararealist Offline
Senior Member
pararealist  Offline
Senior Member

Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
//-------------------------------------------
I just added in Shader Example:
private static BMAP bmapTest = null;

then in myMainMethod()
private static IEnumerable<ScheduleMethod> myMainMethod()
{
//Tested setup video here

//load empty level
EngFun.level_load(null);

//wait a frame
yield return 1;

//move camera back
EngVar.camera.x = -100;

//create entity
ENTITY.ent_create("model.mdl", new Vector(0, 0, 0), entityFun);

//ADDED:
bmapTest = BMAP.bmap_create( "skyDay+6.tga" );
bmapTest.bmap_to_cubemap(); //SET BREAKPOINT here to test bmapTest and it is null

yield return ScheduleMethod.wait( 1 );
}

ERROR:
A first chance exception of type 'System.NullReferenceException' occurred in ShaderExample.exe
An unhandled exception of type 'System.NullReferenceException' occurred in ShaderExample.exe

Additional information: Object reference not set to an instance of an object.
BECAUSE bmapTest is null

if i check bmapTest with
if(bmpTest != null) bmapTest.bmap_to_cubemap();

there is then no error, but bmapTest returns null
//-------------------------------------------


Last edited by pararealist; 04/07/11 11:46.

A8.3x Commercial, AcknexWrapper and VS 2010 Express
&#9675;pararealist now.
Re: C# wrapper 2.2.3 - RELEASE [Re: pararealist] #366802
04/07/11 12:42
04/07/11 12:42
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
This code works for me (i used the "skycube+6.tga" file from templates\images)
Have you tried loading your image in lite-c ?


Last edited by Stromausfall; 04/07/11 12:44.

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 2.2.3 - RELEASE [Re: Stromausfall] #366852
04/07/11 17:20
04/07/11 17:20
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
pararealist Offline
Senior Member
pararealist  Offline
Senior Member

Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
Strange, i think i am using that one too, (renamed), and getting the same
result with other bmap files too.
But if it works by you, something must be wrong my end,
so i will try bmap files in lite-c first to make sure they
are okay.


Last edited by pararealist; 04/07/11 17:20.

A8.3x Commercial, AcknexWrapper and VS 2010 Express
&#9675;pararealist now.
Re: C# wrapper 2.2.3 - RELEASE [Re: pararealist] #366881
04/07/11 20:04
04/07/11 20:04
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
pararealist Offline
Senior Member
pararealist  Offline
Senior Member

Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
I Narrowed it down to:
For some reason
bmap_create seems not to be able to load bitmaps from a path,
but can load them direct from bin folder OK.

Path:
public static String textures = Application.StartupPath + @"\defaults\textures\";
and use like so:
water_bump = BMAP.bmap_create( textures + "waves2.tga" );

All other load or create commands load from these types path fine, but bmap_create does not.

Would not seem to be a wrapper problem though.


A8.3x Commercial, AcknexWrapper and VS 2010 Express
&#9675;pararealist now.
Re: C# wrapper 2.2.3 - RELEASE [Re: pararealist] #366886
04/07/11 20:12
04/07/11 20:12
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
does the add_folder method help ?


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
Page 11 of 23 1 2 9 10 11 12 13 22 23

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