Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 18
Posts: 18   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 1099 times and has 17 replies Next Thread
Xlance
Member
Member's Avatar


Joined: Mar 23, 2020
Post Count: 48
Status: Offline
Reply to this Post  Reply with Quote 
Camera Data Generator v1.1

Camera Data Generator is a Java-based auxiliary tool designed to create camera settings files for use in the SweetHome 3D software. This tool allows users to generate detailed camera configurations, including location
(X, Y, Z), angles (Pitch, Yaw), Field of View (FOV), time zones, and more. The generated data can be exported
as a CSV file and imported into SweetHome 3D to automate camera setups for rendering or visualization purposes.

This tool provides several modes of operation to cater to different camera configuration needs:

1. Cycle Time: Automates the generation of camera data over a range of days.
2. Cycle FOV: Iterates through a range of Field of View (FOV) values.
3. Cycle YAW: Iterates through a range of Yaw (horizontal angle) values.
4. Create Circular PATH: Generates camera positions along a circular path.

Below is a detailed description of the program's functionality, commands, and operational modes.
User Guide and Command Help

Main Features

Input Fields: Start Day / End Day: Define the range of days for which camera data will be generated.
Location (X, Y, Z): Set the camera's position in 3D space.
Angles (Pitch, Yaw, FOV): Configure the camera's orientation and field of view.
Date / Time: Specify the timestamp for the camera data.
Time Zone: Select the time zone for accurate time stamping.
Circular Path Parameters (Radius, Height): Define the radius and height of a circular camera path.
Output: The generated camera data is saved as a CSV file on the user's desktop (Cameras-List.csv).

Operational Modes
1. Cycle Time

Description: Automates the generation of camera data over a specified range of days.
How It Works:
The user specifies a start day and an end day.
The program generates camera data for each day within the range.
If the interval spinner is enabled, the program divides each day into intervals (e.g., every 60 minutes).
Use Case:
Useful for creating time-lapse animations or rendering sequences over multiple days.
Settings:
Enable the "Cycle TIME (Start Day > End Day)" checkbox.
Adjust the Start Day, End Day, and Interval spinners.

2. Cycle FOV

Description: Iterates through a range of Field of View (FOV) values, generating camera data for each step.
How It Works:
The program cycles the FOV from 0.25° to 180° and back to 0.25° in increments of 0.25°.
Each FOV value corresponds to a unique camera configuration.
Use Case:
Ideal for testing how different FOV settings affect the rendered scene.
Settings:
Enable the "Cycle FOV angle (0.25° > 180° > 0.25°)" checkbox.
Set the desired Pitch, Yaw, and other parameters.

3. Cycle YAW

Description: Iterates through a range of Yaw (horizontal angle) values, generating camera data for each step.
How It Works:
The program cycles the Yaw angle from 0° to 360° in increments of 0.25°.
Each Yaw value corresponds to a unique camera orientation.
Use Case:
Useful for creating panoramic views or testing horizontal camera rotations.
Settings:
Enable the "Cycle YAW angle (0° > 360°)" checkbox.
Set the desired Pitch, FOV, and other parameters.

4. Create Circular PATH

Description: Generates camera positions along a circular path.
How It Works:
The user specifies the radius and height of the circular path.
The program calculates camera positions at evenly spaced points around the circle.
Yaw angles are automatically adjusted to align with the circular path.
Use Case:
Perfect for creating smooth camera movements along a curved trajectory.
Settings:
Enable the "Create a Circular PATH" checkbox.
Adjust the Radius and Height spinners.
Set the center coordinates (X, Y) for the circular path.

General Workflow

Launch the Program:
Open the application, and the main window will appear with input fields, checkboxes, and buttons.

Configure Settings:
Fill in the required fields (e.g., X, Y, Z, Pitch, Yaw, FOV).

Select the desired operational mode (Cycle Time, Cycle FOV, Cycle YAW, or Create Circular PATH).

Generate Data:
Click the OK button to validate inputs and generate the camera data.

A progress bar will indicate the status of the generation process.

Save Output:
Once the process is complete, the program will save the data as a CSV file on the desktop.

A confirmation message will appear.

Import into SweetHome3D:
Use the generated CSV file to import camera settings into SweetHome 3D for rendering or visualization.

Additional Notes

Time Zone Handling: The program includes a comprehensive list of time zones and their offsets.
The selected time zone affects the timestamp in the generated data.
Image Display: A world time zones map is displayed for reference when selecting time zones.
Validation: The program validates user inputs to ensure consistency (e.g., Start Day cannot exceed End Day).
Hardcoded Output Path: The program saves the generated CSV file to the user's Desktop

Conclusion

The SweetHome3D Camera Data Generator is a powerful tool for automating camera configurations in SweetHome3D. By leveraging its various operational modes, users can efficiently create complex camera setups
for rendering, animation, or visualization projects. Whether you need to cycle through time, FOV, Yaw, or create circular paths, this tool provides the flexibility and precision required for professional-quality results.

JAR file
https://www.mediafire.com/file/n0j281i51z7b9uy/CamDataGenerator-1.1.jar/file
MAP file
https://www.mediafire.com/view/d9x1drv80mmfxp0/World-Time-Zones-Map.png/file
GUI file
https://www.mediafire.com/view/l3ozldksjd9grui/CamDataGenerator-1.1.jpg/file
----------------------------------------

Windows 64bit | Intel i7 | 8GB Ram | SH3D 7.5 + Plugins
[Mar 22, 2025, 4:39:46 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
digitaltrails
Member
Member's Avatar

New Zealand
Joined: Dec 28, 2014
Post Count: 95
Status: Offline
Reply to this Post  Reply with Quote 
Re: Camera Data Generator v1.1

Thanks for sharing this new plugin. I'm glad to see my old camera importing plugin is still in use.

Your new plugin may come in handy in the future (it looks like a developer may seek planning permission to build to the north of us).
[Mar 23, 2025, 8:45:39 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Xlance
Member
Member's Avatar


Joined: Mar 23, 2020
Post Count: 48
Status: Offline
Reply to this Post  Reply with Quote 
Re: Camera Data Generator v1.1

It is ideal for Shadow studies 😁
----------------------------------------

Windows 64bit | Intel i7 | 8GB Ram | SH3D 7.5 + Plugins
[Mar 23, 2025, 9:09:46 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Xlance
Member
Member's Avatar


Joined: Mar 23, 2020
Post Count: 48
Status: Offline
Reply to this Post  Reply with Quote 
Camera Data Generator v1.1c

- Added some Tooltips for clarification
- Source is included


JAR file
https://www.mediafire.com/file/u8p8lz3wzfcn5zk/CamDataGenerator-1.1c.jar/file
MAP file
https://www.mediafire.com/view/d9x1drv80mmfxp0/World-Time-Zones-Map.png/file
GUI file
https://www.mediafire.com/view/l3ozldksjd9grui/CamDataGenerator-1.1.jpg/file
----------------------------------------

Windows 64bit | Intel i7 | 8GB Ram | SH3D 7.5 + Plugins
[Mar 25, 2025, 8:29:35 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Xlance
Member
Member's Avatar


Joined: Mar 23, 2020
Post Count: 48
Status: Offline
Reply to this Post  Reply with Quote 
Camera Data Generator v1.1h

+ Numerous code adjustments !

+ Added two Calendars to select Start day, End day

+ World-Time-Zones-Map is now embedded inside the .jar file

+ Added some Tooltips for clarification

+ Added Mac OS specific code to adjust Look and Feel, which fixes the issue with non-visible UI elements

+ Added "Fix on specific Hour" function to cycle days but fixed on a specific Hour
Example:

Day001(01-Jan-2025 08:30),200.0,200.0,170.0,0.0,0.0,63.00,2025-01-01T08:30+01:00[Europe/Paris],PINHOLE,observer,variableSize
Day002(02-Jan-2025 08:30),200.0,200.0,170.0,0.0,0.0,63.00,2025-01-02T08:30+01:00[Europe/Paris],PINHOLE,observer,variableSize
Day003(03-Jan-2025 08:30),200.0,200.0,170.0,0.0,0.0,63.00,2025-01-03T08:30+01:00[Europe/Paris],PINHOLE,observer,variableSize
Day004(04-Jan-2025 08:30),200.0,200.0,170.0,0.0,0.0,63.00,2025-01-04T08:30+01:00[Europe/Paris],PINHOLE,observer,variableSize
Day005(05-Jan-2025 08:30),200.0,200.0,170.0,0.0,0.0,63.00,2025-01-05T08:30+01:00[Europe/Paris],PINHOLE,observer,variableSize
Day006(06-Jan-2025 08:30),200.0,200.0,170.0,0.0,0.0,63.00,2025-01-06T08:30+01:00[Europe/Paris],PINHOLE,observer,variableSize


+ Added Validation mechanisms for the sensitive Date / Time field

+ Note: Output files are merely .txt files but with .csv extension (no header needed)

+ Names of output files now are unique for each mode:
Cameras-List-T.txt (TIME)
Cameras-List-F.txt (FOV)
Cameras-List-Y.txt (YAW)
Cameras-List-P.txt (PATH)

+ For Time Cycle:
Single Day operation ---> gets input from Date/Time Field
More than one Day operation ---> gets input from Start Day & End Day spinners / calendars
1 = 1 January
2 = 2 January
3 = 3 January
...
366 = 31 December (for leap years)

+ Source is included

https://www.mediafire.com/file/giuh72he2c5mslo/CamDataGenerator-1.1h.jar/file
----------------------------------------

Windows 64bit | Intel i7 | 8GB Ram | SH3D 7.5 + Plugins
[Mar 28, 2025, 1:17:15 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Xlance
Member
Member's Avatar


Joined: Mar 23, 2020
Post Count: 48
Status: Offline
Reply to this Post  Reply with Quote 
Camera Data Generator v1.1i

New INTERACTIVE Map with red Crosshair which Auto position based on Longitude and Latitude inputs (x, y coordinates)

+ Positioning is instantaneous without pressing Enter, either by direct input or choosing a location from the drop-down menu

+ Fixed an issue with Euro digital separator ( , )


UI
https://imgur.com/a/interactive-map-camera-data-generator-plugin-3BnjDnV

JAR
https://www.mediafire.com/file/uv89rcw85eos7yf/CamDataGenerator-1.1i.jar/file
----------------------------------------

Windows 64bit | Intel i7 | 8GB Ram | SH3D 7.5 + Plugins
[Mar 28, 2025, 8:52:06 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Xlance
Member
Member's Avatar


Joined: Mar 23, 2020
Post Count: 48
Status: Offline
Reply to this Post  Reply with Quote 
Camera Data Generator v1.1L

Hello All :-)
@Keet
@Dorin
@hansmex
@Daniels118

+ New function to generate Aerial view (topview) in addition to (observer)

+ FOV : New function to choose intervals (min / step / max / step / min)

+ YAW : New function to choose intervals (min / step / max)

+ New Camera types : NORMAL (Depth of field) ; FISHEYE, SPHERICAL

+ Cameras-List-P.csv : Added header


... and the really TRICKY one:


+ New function to cycle time within 1 month interval or any number of days, also
taking into consideration variable lengths of Months (28, 29, 30, 31), so output will be consistent:

Input 31 days ---> 1 Jan, 1 Feb, 1 Mar ...
Input 16 days --->1 Jan, 17 Jan, 1 Feb, 17 Feb, 1 Mar, 17 Mar ...


+ On every startup, the program will randomly select a different destination and jumps to it !


https://sourceforge.net/p/sweethome3d/plug-in...CamDataGenerator-1.1L.jar


Cheers
----------------------------------------

Windows 64bit | Intel i7 | 8GB Ram | SH3D 7.5 + Plugins
[Apr 2, 2025, 6:45:52 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
dorin
Advanced Member
Member's Avatar

Romania
Joined: Apr 24, 2014
Post Count: 676
Status: Offline
Reply to this Post  Reply with Quote 
Re: Camera Data Generator v1.1L

Hi,
Fist congratulations for this application applause
I've test it and it works.
Few recommendations:
1. Clean the project. It appears you have a lot of classes from another project.
2. On csv file you have an unknown character.
2025-04-03T08:30�:00[Europe/Bucharest]

3. It appears this application results are used by another plugin.
Probably it could be integrated in that plugin or, most probably, I'm wrong while I'm not very familiar with pictures, video or rendering.

Generally, You've made a good job! Continue!
----------------------------------------
A computer program does what you tell it to do, not what you want it to do. Murphy's Law
When all else fails, read the instructions. Murphy's Law
If you don't like "AS IS", DIY. Dorin's law
[Apr 3, 2025, 7:03:03 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Xlance
Member
Member's Avatar


Joined: Mar 23, 2020
Post Count: 48
Status: Offline
Reply to this Post  Reply with Quote 
Re: Camera Data Generator v1.1n

Thank you Dorin :-)

+ Added a second Radius field to be able to define Elliptical paths (Circles have radius 1 = radius 2)

+ Added a New field to define Number of Interpolation points on a any path (Circular or Elliptical)

+ Cleaned *.jar file


https://www.mediafire.com/file/q4kc80mgb7p8toq/CamDataGenerator-1.1n.jar/file


Cheers
----------------------------------------

Windows 64bit | Intel i7 | 8GB Ram | SH3D 7.5 + Plugins
[Apr 5, 2025, 8:00:58 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
dorin
Advanced Member
Member's Avatar

Romania
Joined: Apr 24, 2014
Post Count: 676
Status: Offline
Reply to this Post  Reply with Quote 
Re: Camera Data Generator v1.1n

You have forget to include LGoodDatePicker jar, so the calendar not work.
----------------------------------------
A computer program does what you tell it to do, not what you want it to do. Murphy's Law
When all else fails, read the instructions. Murphy's Law
If you don't like "AS IS", DIY. Dorin's law
[Apr 5, 2025, 10:15:45 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Posts: 18   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

  Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads  
© Copyright 2024 Space Mushrooms - All rights reserved