It is currently Sat Aug 22, 2020 3:38 pm


All times are UTC




Post new topic Reply to topic  [ 29 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: Problem with wrapping PolyVox for C#
PostPosted: Fri Sep 23, 2011 8:40 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
Ok, I had some success but I'm not there yet. I can use the keyboard and the swipes to navigate the menus but I couldn't draw anything with the mouse.

I start the application, pressed 'u' twice and saw the paintbrush icon in the top left of the screen, and then pressed '+' (I tried the '+' on both the main keyboard and the numeric keypad). The I tried left clicking anywhere on the window but with no result. I also tried clicking on the existing sphere in the centre of the window.

I'm probably just doing it wrong ;-) Maye a 3d mouse cursor would be useful, or maybe that doesn't make sense with kinect?


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Problem with wrapping PolyVox for C#
PostPosted: Sun Sep 25, 2011 11:51 am 

Joined: Wed Jun 01, 2011 8:10 pm
Posts: 18
It should work with a normal desktop mouse =)

you dont need to click anywhere in fact. when you are in paint mode you just move the mouse around to move the small sphere (the cursor) and it paints by itself.

It testet it with the version from Codeplex.
For some reason just + and - on thenumblock work. But i can paint.
I started the application, moved the mouse over the small sphere (ifor better navigation). Then i pressed u 2 times so it shows the brush in the corner. now i pressed + for a moment and move the mouse around. this should paint plack lines on the screen =).


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Problem with wrapping PolyVox for C#
PostPosted: Sun Sep 25, 2011 12:14 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
Ah, so the small sphere is supposed to follow the mouse? I have never seen it move from the centre of the screen for some reason.

Well, it might also be my fault... perhaps there is a conflict with the previous version you gave me? When I downloaded the first version I put it in a particualr folder called 'version_1_0' and I ran both setup.exe and DKE_Kinect.application.

When I downloaded the second version I put it into a different folder called 'painect_keyboard' and tried to run the same two files. However, I got an error:

Image

So then I tried to copy the file from the 'painect_keyboard' folder to the 'version_1_0' folder and overwrote the originals. Maybe this was the wrong thing to do and the installer has actually put files in a more global location? Is there a way to remove it completly and start again with just the new version?

I don't know much about .NET I'm afraid...


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Problem with wrapping PolyVox for C#
PostPosted: Sun Sep 25, 2011 12:20 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
I've just noticed that the details button gives the following information:

Quote:
PLATFORM VERSION INFO
Windows : 6.1.7601.65536 (Win32NT)
Common Language Runtime : 4.0.30319.235
System.Deployment.dll : 4.0.30319.1 (RTMRel.030319-0100)
clr.dll : 4.0.30319.235 (RTMGDR.030319-2300)
dfdll.dll : 4.0.30319.1 (RTMRel.030319-0100)
dfshim.dll : 4.0.31106.0 (Main.031106-0000)

SOURCES
Deployment url : file:///C:/Users/David/Downloads/painect_keyboard/deplay/DKE_Kinect.application

IDENTITIES
Deployment Identity : DKE_Kinect.application, Version=1.0.0.1, Culture=neutral, PublicKeyToken=f536511aed7c9d05, processorArchitecture=x86

APPLICATION SUMMARY
* Installable application.

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Users\David\Downloads\painect_keyboard\deplay\DKE_Kinect.application resulted in exception. Following failure messages were detected:
+ You cannot start application DKE_Kinect from this location because it is already installed from a different location.
+ You cannot start application DKE_Kinect from location file:///C:/Users/David/Downloads/painect_keyboard/deplay/DKE_Kinect.application it is already installed from location file:///C:/Users/David/Downloads/version_1_0/DKE_Kinect.application. You can start it from location file:///C:/Users/David/Downloads/version_1_0/DKE_Kinect.application or you can uninstall it and reinstall it from location file:///C:/Users/David/Downloads/painect_keyboard/deplay/DKE_Kinect.application. If you reinstall the application, be aware that you might lose any customizations that you made to the application.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [25/09/2011 13:08:19] : Activation of C:\Users\David\Downloads\painect_keyboard\deplay\DKE_Kinect.application has started.
* [25/09/2011 13:08:20] : Processing of deployment manifest has successfully completed.

ERROR DETAILS
Following errors were detected during this operation.
* [25/09/2011 13:08:20] System.Deployment.Application.DeploymentException (DeploymentUriDifferent)
- You cannot start application DKE_Kinect from this location because it is already installed from a different location.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.ApplicationActivator.CheckDeploymentProviderValidity(ActivationDescription actDesc, SubscriptionState subState)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Deployment.Application.DeploymentException (DeploymentUriDifferent)
- You cannot start application DKE_Kinect from location file:///C:/Users/David/Downloads/painect_keyboard/deplay/DKE_Kinect.application it is already installed from location file:///C:/Users/David/Downloads/version_1_0/DKE_Kinect.application. You can start it from location file:///C:/Users/David/Downloads/version_1_0/DKE_Kinect.application or you can uninstall it and reinstall it from location file:///C:/Users/David/Downloads/painect_keyboard/deplay/DKE_Kinect.application. If you reinstall the application, be aware that you might lose any customizations that you made to the application.
- Source:
- Stack trace:


COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.



So apparently I should uninstall and then reinstall but how do I do this?


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Problem with wrapping PolyVox for C#
PostPosted: Sun Sep 25, 2011 1:19 pm 

Joined: Wed Jun 01, 2011 8:10 pm
Posts: 18
Yes this is it.
There should be a Entry with DKE_Kinect under Software.
Just deinstall it from ther (or from any other place ;)) and the reinstall it.
This the problem with the default .net installer.
Image

Uploaded with ImageShack.us


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Problem with wrapping PolyVox for C#
PostPosted: Sun Sep 25, 2011 2:05 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
Great, it works! I did think to uninstall it before but actually I was looking for an application called 'Painect', so I didn't see it in the list.

The mouse was a bit sensitive but I was able to use it to draw. It seems pretty fast as well.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Problem with wrapping PolyVox for C#
PostPosted: Mon Sep 26, 2011 6:37 am 

Joined: Wed Jun 01, 2011 8:10 pm
Posts: 18
Nice to hear you get it up and running ;)

The sensitivity problem is based on the mouse. With the kinect it moves according to your hand, which is muh more intuitive, but i just hacked this version together and didn´t tweek the mouse movement.

And it is really fast . First version with polyvox was running at about 7 frames per second and now we cropped it down to 60 frames.

I used a bunch of optimaziosn, starting from swapping some code from c# into c++ (all the set operations are done in c++ and just called from c#), then i removed every division and replaced it with a bitshift (this was quite efficient, brought us ~15 frames) and after this i implemented a hybrid approach of the volume. The voxels are stored in 1 big polyvox volume (1,5k x 1,5k x1,5k) and a grid ofe 100x100x100 blocks is mapped over the volume for volume extraction. when i set a voxel i calculate the according small block and set to "update needed". This block will now be preprocessed. The extractor fetch the model from the preprocessed blocks, but only consider blocks inside the view frustum.

Again feel free to grab the code (The wrapper is included as well) and ask me if something is unclear (because comments are quite messy)

regards!


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Problem with wrapping PolyVox for C#
PostPosted: Mon Sep 26, 2011 5:57 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
floAr wrote:
The voxels are stored in 1 big polyvox volume (1,5k x 1,5k x1,5k) and a grid ofe 100x100x100 blocks is mapped over the volume for volume extraction. when i set a voxel i calculate the according small block and set to "update needed". This block will now be preprocessed. The extractor fetch the model from the preprocessed blocks, but only consider blocks inside the view frustum.


Yep, this is the kind of approach I would expect (I do something similar in Thermite). But I assume each block doesn't correspond directly to an extracted mesh... as that would mean rendering up to 100x100x100 = 1000000 meshes?


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Problem with wrapping PolyVox for C#
PostPosted: Tue Sep 27, 2011 6:18 am 

Joined: Wed Jun 01, 2011 8:10 pm
Posts: 18
In fact every block has it own mesh, but i cull them out on xna side.
so i check which block is in my cameras view and just draw the needed one.
this works quite good. anther optimazion step yould be to have the vertex and indes data in an array on the GPU and just select them from there and merge into 1 buffer, but it was running smooth enough for us so we skipped this optimaion


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 29 posts ]  Go to page Previous  1, 2, 3

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net