Search found 14 matches

by shmuelzon
Tue Jul 08, 2025 7:33 pm
Forum: Developers
Topic: Programmatically Changing Openings
Replies: 8
Views: 8251

Re: Programmatically Changing Openings

The feature request for my SH3D plugin requiring this functionality was recently brought up again and I, needing some kind of win, decided to try and tackle it again.

I'm not sure everything below is required but I tried to only include things that made sense to me. I did have the basic idea of ...
by shmuelzon
Sun Sep 29, 2024 2:13 pm
Forum: Developers
Topic: Programmatically Changing Openings
Replies: 8
Views: 8251

Re: Programmatically Changing Openings

My observations have found that a door opened with the Pan3DView plugin will not render open. A cupboard with 2 doors, the left opened in the Modify Deformations Dialog and the right door opened with the Pan3DView plugin will render with the right door closed.
Thanks for that, then I need to make ...
by shmuelzon
Sun Sep 29, 2024 10:42 am
Forum: Developers
Topic: Programmatically Changing Openings
Replies: 8
Views: 8251

Re: Programmatically Changing Openings

I wasn't able to find a way to consolidate the changes in the plan

What do you mean by this? That the openings are only changed in the 3D view but nothing is changed in the plan?

In my case, it changes both the plan and the 3D view but the door/windows become distorted because their proportions ...
by shmuelzon
Sat Sep 28, 2024 5:18 pm
Forum: Developers
Topic: Programmatically Changing Openings
Replies: 8
Views: 8251

Programmatically Changing Openings

Hey,

As a part of a plugin development, I want to close a door/window in the floor plan. I tried following the code that does this from the UI and my understanding is that modifying the piece of furniture's transformations (hinges and whatnot) also alters its overall dimensions and so, after ...
by shmuelzon
Sat Jul 20, 2024 9:20 am
Forum: Developers
Topic: How to save a user's (plugin-related) preferences?
Replies: 4
Views: 3815

Re: How to save a user's (plugin-related) preferences?

Hey, saving per home/project is good for my purposes.
Thanks for the explanations!
by shmuelzon
Sat Jul 20, 2024 6:45 am
Forum: Developers
Topic: How to save a user's (plugin-related) preferences?
Replies: 4
Views: 3815

Re: How to save a user's (plugin-related) preferences?

Thanks, I believe you're referring to getProperty()/getNumericProperty()/setProperty()?

They seem to do the job, assuming I save the project file but setting a property doesn't seem to mark the project as modified so the user will be alerted that they need to save it. Is the plugin expected to call ...
by shmuelzon
Fri Jul 19, 2024 3:14 pm
Forum: Developers
Topic: How to save a user's (plugin-related) preferences?
Replies: 4
Views: 3815

How to save a user's (plugin-related) preferences?

Hey,

I was wondering if there was some mechanism with which I can persistently save a few settings the user can modify within my plugin. I've seen the UserPreferences class but it has setters/getters only for the specific options SH3D supports.

Is there some generic tags, key-value-pairs or ...
by shmuelzon
Mon Jan 15, 2024 5:59 pm
Forum: Developers
Topic: Mapping Floor Plan Coordinates to Render/3DView Coordiantes
Replies: 12
Views: 8422

Re: Mapping Floor Plan Coordinates to Render/3DView Coordiantes

I finally got it to work, thanks Daniele!

For future reference, if anyone will stumble upon this post, here's what I ended up with:
int renderWidth = 1024;
int renderHeight = 576;

/* Set up */
Camera camera = getHome().getCamera();
cameraPosition = new Vector4d(camera.getX(), camera.getZ ...
by shmuelzon
Sat Jan 13, 2024 8:00 pm
Forum: Developers
Topic: Mapping Floor Plan Coordinates to Render/3DView Coordiantes
Replies: 12
Views: 8422

Re: Mapping Floor Plan Coordinates to Render/3DView Coordiantes

If I'm not mistaken, that code is only the transformation part, i.e., move the target object to the coordinate system of the camera, but the projection itself is done as a part of the renderer's internal code as SH3D provides the lens type, FOV, aspect ratio, etc.
I didn't see the perspective ...
by shmuelzon
Sat Jan 13, 2024 11:41 am
Forum: Developers
Topic: Mapping Floor Plan Coordinates to Render/3DView Coordiantes
Replies: 12
Views: 8422

Re: Mapping Floor Plan Coordinates to Render/3DView Coordiantes

Hey,

Unfortunately, I'm still stuck...
I was able to integrate the relevant parts of the Pan3dView plugin and can, accurately, get the pixel locations from the 3D view of the application but, since the rendered image might have a different aspect ratio, it doesn't help directly. I even tried to ...