Search found 13 matches

by f.schaaf
Tue Mar 20, 2018 6:33 am
Forum: Developer's Forum for Windows
Topic: Successive calls of SiTerminate() and SiInitialize()
Replies: 1
Views: 9813

Successive calls of SiTerminate() and SiInitialize()

We recently did a change to our application (which is a dll loaded by another app), so it can be loaded and unloaded during the runtime of the host process. Our dll creates a hwnd which receives events from the spacemouse driver, however, after unloading and reloading our dll, it stops working. We h...
by f.schaaf
Tue Sep 19, 2017 11:41 pm
Forum: Developer's Forum for Windows
Topic: Render-Plugin for SketchUp
Replies: 14
Views: 21658

Re: Render-Plugin for SketchUp

Thank you very much for the follow up.

So do you think this is something we could fix in our code?
by f.schaaf
Mon Sep 18, 2017 1:31 am
Forum: Developer's Forum for Windows
Topic: Render-Plugin for SketchUp
Replies: 14
Views: 21658

Re: Render-Plugin for SketchUp

Hi jwick, I've sent you a PM.
jwick wrote:What HWND are you supplying in the SiOpen args? I assume it is the visible OpenGL window that you are creating.
Exactly.
by f.schaaf
Fri Sep 08, 2017 5:08 am
Forum: Developer's Forum for Windows
Topic: Render-Plugin for SketchUp
Replies: 14
Views: 21658

Re: Render-Plugin for SketchUp

ngomes wrote:In your call to SiOpen, you have entered an HWND. Can you say how this window is parented?
Our hWnd is not parented.
by f.schaaf
Fri Sep 08, 2017 4:21 am
Forum: Developer's Forum for Windows
Topic: Render-Plugin for SketchUp
Replies: 14
Views: 21658

Re: Render-Plugin for SketchUp

Since your extension is doing all the rendering -- and as you pointed out, then your extension will need to handle the view changes. Can you get the underlying SketchUp view changes and propagate them to your window? Say, the user switches to a standard view ("top" or "left"), how does your extensi...
by f.schaaf
Tue Sep 05, 2017 5:23 am
Forum: Developer's Forum for Windows
Topic: Render-Plugin for SketchUp
Replies: 14
Views: 21658

Re: Render-Plugin for SketchUp

I need to post a correction: We do NOT initiate our RenderWindow with the HostApp's (be it SketchUp or Revit) hWnd, so we are not the HostApp's Child Window. We are however, part of the same process. (Our Plugin.dll gets loaded by the HostApp). While working, the client will often switch between the...
by f.schaaf
Tue Sep 05, 2017 5:13 am
Forum: Developer's Forum for Windows
Topic: Render-Plugin for SketchUp
Replies: 14
Views: 21658

Re: Render-Plugin for SketchUp

We need to, because we have a custom viewport. For more infor, see our homepage: http://www.enscape3d.com So are you saying that there is a proprietaty extension in the 3DConnexion's driver? In Revit, our Renderwindow is a child to the host application as well, and there, we do not experience the pr...
by f.schaaf
Tue Aug 29, 2017 12:48 am
Forum: Developer's Forum for Windows
Topic: Render-Plugin for SketchUp
Replies: 14
Views: 21658

Render-Plugin for SketchUp

Currently we're developing a Render-Plugin for SketchUp. In our code, we basically use this code to set up the Spacemouse device: SiInitialize(); SiOpenData oData; SiOpenWinInit(&oData, m_hwnd); SiSetUiMode(SI_ALL_HANDLES, SI_UI_NO_CONTROLS); m_siHdlDevice = SiOpen("OurApp", SI_ANY_DEVICE, SI_NO_MAS...
by f.schaaf
Fri Jul 15, 2016 5:19 am
Forum: Developer's Forum for Windows
Topic: Receiving very high axes values
Replies: 6
Views: 6974

Re: Receiving very high axes values

What I tried so far:

Code: Select all

        SPWfloat32 scaleRx;
	SPWfloat32 scaleOverall;

	SiSyncGetScaleRx(devHdl, &scaleRx);
	SiSyncGetScaleOverall(devHdl, &scaleOverall);
But this always returns 1.0 regardless of config.
How can I access this config programmatically?
by f.schaaf
Fri Jul 15, 2016 5:18 am
Forum: Developer's Forum for Windows
Topic: Receiving very high axes values
Replies: 6
Views: 6974

Re: Receiving very high axes values

Jwick, thank you so far. Creating a config file to ensure the correct scaling poses problems for us, e. g.: - We are a plugin for another app that also uses the SpaceMouse, so we cannot simply overwrite that file's cfg. I'm using the 3DxWare SDK doc and didn't find this information there. - Can you ...
by f.schaaf
Fri Jul 15, 2016 4:37 am
Forum: Developer's Forum for Windows
Topic: Receiving very high axes values
Replies: 6
Views: 6974

Re: Receiving very high axes values

I reduces the problem as follows: - compile the 3DxTest App -> 3DxTest.exe - Copy the executable giving it another name, like ->3DxTest2.exe Those two will behave differently in terms of: - 3DxTest.exe: - "APPLICATION USE" will be displayed in the SpaceMouse display when pushing buttons - The Driver...
by f.schaaf
Thu Jul 14, 2016 8:18 am
Forum: Developer's Forum for Windows
Topic: Receiving very high axes values
Replies: 6
Views: 6974

Re: Receiving very high axes values

edit:

Code: Select all

Event.Period = 16
In all cases.
by f.schaaf
Thu Jul 14, 2016 8:04 am
Forum: Developer's Forum for Windows
Topic: Receiving very high axes values
Replies: 6
Views: 6974

Receiving very high axes values

I have a c++ application the can be run either as plugin for another app, or as standalone. I find that axes values I receive by SiGetEvent Vary greatly. When I run the example program 3DxTest, I receive maximum values around 500-600. When I run as a plugin (for an application that uses the SpaceMou...