jPCT (java) bind monodevelop or visaul studio

Started by hamedf_hamedf, November 21, 2012, 11:22:19 AM

Previous topic - Next topic

hamedf_hamedf

Hi All,

I want to use jPCT android package on monodevelop or visual studio with xarmin package for C# coding.
I create "Java Bindings Library" in visual studio project that is a way to load Java files and use them like a class.
but when i build my project, it has an error :
"The type or namespace name 'OcTreeNode' does not exist in the namespace 'Com.Threed.Jpct' (are you missing an assembly reference?)   D:\BindingLibrary1\obj\Debug\generated\src\Com.Threed.Jpct.OcTree.cs   142   75   BindingLibrary1"

how to solve it?


EgonOlsen

I suggest to ask this is some Xamarin related forum. It's not really a jPCT related question. If they claim to support Java libs (which they do), then they should be able to tell you how to do it.

hamedf_hamedf

Dear EgonOlsen,
i have run it, but now i have a code like this:
box = Primitives.GetBox(13f, 2f);
            box.Build();
            world.AddObject(box);
            world.SetAmbientLight(0, 255, 0);
            camera.SetPosition(50, -50, -5);
            SimpleVector p1 = new SimpleVector(1, 1, 1);
            camera.LookAt(box.GetTransformedCenter(p1));
            world.SetCameraTo(camera);
            try
            {
                buffer = new FrameBuffer(100, 100);
            }
            catch (Exception ex)
            {
                button.Text = ex.Message;
            }

it has an erro in buffer creation, do you have an easy example to show the basic box?

EgonOlsen

The HelloWorld example that comes with jPCT-AE is exactly that.

EgonOlsen

BTW: The FrameBuffer's dimensions should match the resolution of your actual screen or gl context. No device has 100*100 pixel screen and you'll get strange renderings with that setting if it even works at all.

hamedf_hamedf


EgonOlsen


hamedf_hamedf

Dear,
i use "Eclipse IDE for Java Developers" but when i compile it and run in on my galaxy s3, it has an error and close.
???


hamedf_hamedf


EgonOlsen

When i released the last official version, this wasn't needed. I'll change the example projects in the next release, so that nobody will fall into this trap again.

hamedf_hamedf

That's good,
now i want to write a program to load 3DS-Max file. and then i try to run the jPCT library in monodevelop in visual studio again and share my experience with other user in forum. maybe other need them.
;)