0 registered members (),
744
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: C# wrapper - RELEASE 1.1.0
[Re: Stromausfall]
#280929
07/24/09 17:34
07/24/09 17:34
|
Joined: Nov 2007
Posts: 1,143 United Kingdom
DJBMASTER
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,143
United Kingdom
|
Thanks, but i'm not getting anything. How would i change the engine background colour?
BTW > Is there a limit to how many times you can load the engine? At the moment i'm only to load one instance of it. I was hoping to achieve mutliple instances in different controls.
Maybe because each one has to reference the same DLL.
Last edited by DJBMASTER; 07/24/09 18:45.
|
|
|
Re: C# wrapper - RELEASE 1.1.0
[Re: DJBMASTER]
#280955
07/24/09 19:28
07/24/09 19:28
|
Joined: Dec 2002
Posts: 616 Austria
Stromausfall
OP
User
|
OP
User
Joined: Dec 2002
Posts: 616
Austria
|
Not getting anything ? you should be able to change to background color as you tried, with for example : EngVar.screen_color.red.IntValue = 255; i uploaded the new version to my homepage (It's 1.1.0.1). (I'm a bit confused right now^^) Concerning how many times one can load the engine, i think that one can only load the engine once, because commands like engine_frame() don't take any parameters that would identify an instance.
Last edited by Stromausfall; 07/24/09 20:31.
|
|
|
Re: C# wrapper - RELEASE 1.1.0
[Re: Stromausfall]
#281045
07/25/09 08:03
07/25/09 08:03
|
Joined: Nov 2007
Posts: 1,143 United Kingdom
DJBMASTER
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,143
United Kingdom
|
hmmm, When you load the engine, any other forms in the same application get taken over. I mean their cursors are changed to the same one as the engine, and it is really difficult to use controls, because the cursor wont change.
I don't think this is normal because I tested running a new instance of the engine (by running acknex.exe) and it doesn't control the form it was loaded from.
This is a major problem if using the wrapper with a form application.
btw > still can't get screen_color to change, LOL.
Last edited by DJBMASTER; 07/25/09 08:20.
|
|
|
Re: C# wrapper - RELEASE 1.1.0
[Re: DJBMASTER]
#281170
07/25/09 18:34
07/25/09 18:34
|
Joined: Dec 2002
Posts: 616 Austria
Stromausfall
OP
User
|
OP
User
Joined: Dec 2002
Posts: 616
Austria
|
could u send me the project so that i could have a look at it ?
thx got it ^^
Last edited by Stromausfall; 07/25/09 19:32.
|
|
|
Re: C# wrapper - RELEASE 1.1.0
[Re: Stromausfall]
#281203
07/26/09 01:06
07/26/09 01:06
|
Joined: Nov 2007
Posts: 1,143 United Kingdom
DJBMASTER
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,143
United Kingdom
|
Well me and Stromausfall finally got the engine to render into a windows form, even if it was a complete hack ,lol. I've prepared a sample (basic model viewer), which shows how to initialize the engine and embed it into a control/form. I've added a couple of controls to demonstate how the engine can be controlled using .NET controls. Here's a screenshot of it in action... and the download link... http:\\djbm.kawanda.net\EngineInForm.zip Hope you guys can use it to create some good C# applications. Once again I must thank Stromausfall for his excellent contributions, and making us .NET programmers lives a little easier. Wow 1.1.0.2 already! I can't keep up with the updates, LMAO.
Last edited by DJBMASTER; 07/26/09 01:07.
|
|
|
Re: C# wrapper - RELEASE 1.1.0
[Re: DJBMASTER]
#281210
07/26/09 05:07
07/26/09 05:07
|
Joined: Nov 2007
Posts: 1,143 United Kingdom
DJBMASTER
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,143
United Kingdom
|
More Questions LMAO >>>
1) Do the events have to be static? I'm wondering how i would use values of controls inside a static function eg like Button.Text. Because static works at class level rather than object level, if several entities use the same function, wont they pick up values left by the previous run function?
2) How can you just run a function called from anywhere, eg when clicked on a button?
I need to use a while loop and so I need to use the scheduler. I'm just simply rotating an entity...
public static IEnumerable RotateEnt() { while (true) { MyEnt.pan.IntValue += 5; yield return 1; } }
i've tried just using RotateEnt() in the buttons click event, but it wont execute.
Thanks. Btw, what did 1.1.0.2 update?
Last edited by DJBMASTER; 07/26/09 05:07.
|
|
|
|