The British Interplanetary Society

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the BIS forums.
Jast added - Project KickSat

Author Topic: Sketchup - 3D Sprite development  (Read 5931 times)

AndrewVaudin

  • Administrator
  • Jr. Member
  • *****
  • Posts: 5
Sketchup - 3D Sprite development
« on: May 11, 2013, 11:15:45 PM »

Attached are the following files for the 3D rotating Sprite model:
 - Ruby code (current incomplete version) - save in C:\Program Files (x86)\Google\Google SketchUp 8\Plugins
 - Data (save anywhere for the current script)

The basic Sketchup Sprite model can be downloaded from http://sketchup.google.com/3dwarehouse/

     http://sketchup.google.com/3dwarehouse/details?mid=c76240eac0ebf02c31ff86e4df8ca51b&prevstart=0

The latest version of Trimble  Sketchup must be installed for this model and code (Google no longer own Sketchup).

     http://www.sketchup.com/intl/en/download/gsu.html

For development I also recommend installing Notepad++ and the Sketchup Ruby editor plugin:

     http://notepad-plus-plus.org/

     http://www.alexschreyer.net/projects/sketchup-ruby-code-editor/

To run the current ruby script:
 - Open the Sketchup file, and select the Sprite model
 - Right click on the selected Sprite model and pick Sprite11
 - The model will move and move again after a long delay. A message will state when the transformation is complete.

Lots of work still required for this to make it revolve around the object centre and to animate instead of transform, but it is a start.

Regards,
Andrew
« Last Edit: May 12, 2013, 03:00:16 PM by AndrewVaudin »
Logged

AndrewVaudin

  • Administrator
  • Jr. Member
  • *****
  • Posts: 5
Re: Sketchup - 3D Sprite development
« Reply #1 on: May 12, 2013, 09:30:01 PM »

This version now rotates the Sprite around it's object centre. I also attach a new CSV that better demonstrates the rotation by doing one axis at a time.
Logged

AndrewVaudin

  • Administrator
  • Jr. Member
  • *****
  • Posts: 5
Re: Sketchup - 3D Sprite development
« Reply #2 on: May 14, 2013, 10:26:34 PM »

Another new version:

 - Added a timer to control speed of transformations.

 - Added code to strip the String input of any non-numeric characters. The data we expect to receive will include prefixes such as 'bx' 'by' 'bz' for identification, but which Sketchup does not want.

Attached:
 - Bis_av14.rb (Updated Ruby script - install as above)
 - data-av1.csv (save anywhere - this shows simple rotation on each axis)
 - Sprite-output-av2a.csv (real Sprite data including  bx by bz. *See note)

Note: The next step is to review the sensor data sheets to work out what the output actually means, and then convert this to degrees that Sketchup can use correctly. At this point we have something useful :-)

Logged

AaronVog

  • Jr. Member
  • **
  • Posts: 2
Sketchup 3D Sprite development
« Reply #3 on: September 20, 2017, 05:31:41 PM »

Sketchup can be used for vsf quite well but you have to get a good .x exporter
Logged