how to create a trueplay scene from a 3D model/scene?

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

how to create a trueplay scene from a 3D model/scene? // Archive: Tech Forum

1  |  

Post by frootee // Aug 29, 2006, 6:38am

frootee
Total Posts: 2667
pic
Hi folks. I have a model with moveable parts that I would like to load into trueplay. Are there any special steps to do this? Basically, there is a handle I would like to be able to grab onto in order to rotate part of the model.


As I understand it, you have to use the macro/record tool(s), but what if you want to manipulate the model? Would this actually fall into the category of *Activity* ?

I am still learning about the new functionality of ts7 so my terminology may be incorrect here.


I will post an image of it tonight in the WIP area; I tried to email it to my work email address but apparently it never got here... dang.


Thanks!


Frootee

Post by splinters // Aug 29, 2006, 7:53am

splinters
Total Posts: 4148
pic
Not sure what you mean here-trueplay has no editing tools nor access to the LE in order to open any timers etc.

As far as I am aware-if the object has 'activities' attached from TS7 they will run in trueplay. Hopefully a more LE literate person can answer this one for you...:o

Post by Délé // Aug 29, 2006, 8:32am

Délé
Total Posts: 1374
pic
Hey Frootee,


truePlay can open both Rosetta scene files (.rsscn) or record files (.rcd). As far as I can tell, only record files can be loaded from "inside" of truePlay. That's why I usually use record files.


To save a Rosetta scene file, you just insert it into the scenes library by right clicking in the scenes library and selecting "insert". Then you can right click on the saved scene in the library and select "export" to save it as a .rsscn file.


To save a record file, you just open the record toolbar and push the record button. You can push the stop button right away if you just want to capture the scene itself, or you can move stuff around and animate things if you actually want to capture animation, and push the stop button when you're done. Then you can just select the "export record" button from the record toolbar to save the .rcd file.


If I understand correctly, you want the viewer to be able to rotate part of the model? I'm thinking that you'll probably want to set up a node with a slider or scrubber that will rotate that part, and then have that node visible when the scene is opened in tP so that the viewer can play with it.


Yeah, start up your wip, I'm curious to see what you're up to. :) Then I can get an idea of what's going on too, and maybe be able to help a little better.

Post by frootee // Aug 29, 2006, 9:35am

frootee
Total Posts: 2667
pic
Hi splinters and Dele. Thanks!


Actually, I think either method that Dele' has suggested may work. This is something that I hope all truespace/trueplay users will want to use for a long time to come...


Even if it doesn't, I can still post the model and the truespace users can still use it that way. :rolleyes:

Post by frootee // Aug 29, 2006, 11:21am

frootee
Total Posts: 2667
pic
Hi splinters and dele (and everyone) else :)


I think you may be correct as well splinters; I may be able to use an activity;

I am trying that now.


In the meantime I have posted this as a wip in the wip section.

Ideally, the user could grab/push the little thimble thing to rotate the top cylinder, in order to change the visible dates.


I need to add some more text, indicating what the red text means (red is for leap years).


Basically, if I could add a tool to allow the top cylinder (with the months and dates of the month) to rotate, we'd be in business!


Thanks!


Frootee

Post by trueBlue // Aug 29, 2006, 2:32pm

trueBlue
Total Posts: 1761
pic
A trueSpace7 Basic Tutorial: How to setup a Control Panel for a user to interact with an object in truePlay.

A truePlay user could use the object’s widget to move or rotate an object, but sometimes you may wish to keep it stationary.
Another way is to expand it’s Matrix so that when a user selects that object, it will not Move, Rotate or Scale.

Do this by “Right Click” the Matrix and choose Expand.

2254

2255

Then you need to encapsulate all of your objects. This basically groups all of your objects in a neat little panel. In an empty area right click and drag a selection box around all objects and then choose Encapsulate objects.

2256

Name it Control Panel.

2257

Go inside this panel by clicking on the orange triangle and Export the transformations you want to control from the ExpandedInMatrix. EG: tx, ty, tz (Move), yaw, pitch, roll (Rotation), sx, sy, sz (Scale).

You do this by right clicking on the label and choose Export. Go outside your panel by clicking on the orange triangle in the Link Editor’s title bar and you will see the exported transformation.

2259
Countinued next page

Post by trueBlue // Aug 29, 2006, 2:44pm

trueBlue
Total Posts: 1761
pic
Right click the title bar of your panel, which puts you in Panel Edit Mode.
Select the edit box and then select Typ, which opens controls for this item.
Select the Slider Control. The edit box will change to a slider. The Scrubber has an additional feature where you can control the stepping too.

2260

Right click the slider control and choose the Properties and set the Min and Max values. I set Min to –360.0000 to be able to rotate full circle to the left and Max to 360.0000 for rotation to the right.

2261

Save the panel by clicking on the icon on the top left and choose Make Default.

2262

Save the panel by clicking on the icon on the top left and choose Show Automatically.

2263

Now save and export your scene. You can open rsScn files in truePlay and they are a smaller in size verses rcd files.

If you look on page 908 in the trueSpace7 Artist’s Guide it gives you the basics on setting up a truePlay scene.
9.1 Preparing scenes for truePlay
truePlay is very similar to the Player view in trueSpace (including navigation toolbar and widgets), but lacks all editing features. This also means that there is no Link Editor window where you can push buttons on panels or run activities. To overcome this limitation (and allow you to prepare the scene for truePlay as much as possible), it is possible to mark some panels to open automatically in truePlay. Just locate the panel in the LE (it has to be a top scene level object), and set “Show automatically” in the popup menu. The panel will be displayed in truePlay in its default aspect. This option allows you to easily add custom controls to your scenes. The Game15 and PacMan scenes now use this feature.
You can also specify which activities should be started automatically when the scene is loaded in truePlay. Just locate the activity in LE (it has to be a top scene level object), and set “Run automatically” in the popup menu (see the Air Hockey activity below). Automatic play of activities allows you, for example, to create a living game out of your scene.

Post by spacekdet // Aug 29, 2006, 4:38pm

spacekdet
Total Posts: 1360
pic
Slightly OT, but I have a request as a truePlay user who also keeps his Windows Taskbar at the top of the screen (as a result of using tS) : when you have these panels 'show automatically', please please please have them appear down the screen far enough that they don't get hidden beneath the Taskbar. This has been a pet peeve of mine with tP- I can't move, close or sometimes even see the panel (if it's narrow) - unless I drag my Taskbar out of the way first. It sounds sort of nit-picky until I've re-arranged my icons for the umpteenth time because they've become whacked from dragging the Taskbar to and fro.

Post by frootee // Aug 30, 2006, 1:18am

frootee
Total Posts: 2667
pic
Thanks Trueblue. I will follow that tutorial. I was going through the manual, then got interested in modelling the 40 year calendar at my office, which led me to these issues. The object is almost done, but it's only good for a week unless I can make it an adjustable trueplay object (as with the tutorial you have here) so thanks!

:jumpy:

Frootee

Post by trueBlue // Aug 30, 2006, 1:38am

trueBlue
Total Posts: 1761
pic
Frootee: Your welcome!

Spacekdet: The only option we have to make a panel show is to set it to Show or Run Automatically. So if you have more then one panel to show they stack on top of each other. Couldn't you set your taskbar to hide automatically?

Post by frootee // Aug 30, 2006, 2:37am

frootee
Total Posts: 2667
pic
hey trueblue. COOL COOL COOL COOL COOL! That'll be EASY to do!

I'm so happy I think I'm levitating... :banana:


Once I do that I will put it on my website (actually, it's just a collection of

images and one trueplay file at the moment: the current version of the 40 year calendar), but I will replace that with the finished version, most likely tonight. It's a nifty little thing. My aunt and uncle gave me this physical model back in 1990, and it is accurate, and good through 2029. So I figured it would be cool to make it a 3D project and share it with the world (literally).


Here's the link if you want to give it a whirl; the trueplay wip is the link titled: 40 year calendar file


http://home.comcast.net/~frootee/


And Dele: I am still going to follow your tutorials too because I need to learn the LE anyway!



Thanks!


Frootee

Post by trueBlue // Aug 30, 2006, 2:59am

trueBlue
Total Posts: 1761
pic
hey trueblue. COOL COOL COOL COOL COOL! That'll be EASY to do!
I'm so happy I think I'm levitating... :banana:

Hey cool! Just expand YOUR matrix and hook up a timer to YOUR tz. ;)
Just don't forget set the Max properties to high!

Post by frootee // Aug 30, 2006, 3:20am

frootee
Total Posts: 2667
pic
LOL maybe add some hover-bobbing...


:D

Post by spacekdet // Aug 30, 2006, 6:55am

spacekdet
Total Posts: 1360
pic
Spacekdet: The only option we have to make a panel show is to set it to Show or Run Automatically. So if you have more then one panel to show they stack on top of each other. Couldn't you set your taskbar to hide automatically?

Ahh, too bad... I saw 'position' listed in one of the screenshots and was hoping that that was for specifying where the panel appeared.
The problem with 'Auto-hide' is that once my tS window is maximized and my Taskbar is hidden, it's no longer accessable. It's Perma-Hidden from inside tS.
Why? http://spacekdet.com/icon/emot-iiam.gif

tS itself doesn't get stuck beneath the Taskbar, why should panels? I've also noticed some shader options panels do this, usually the 3rd party ones (Shady, Yamaneko, etc).
Anyway, thanks for the info.
It wouldn't really be a pet peeve if it was fixable, and I loves mah peeves.

Post by trueBlue // Aug 30, 2006, 8:34am

trueBlue
Total Posts: 1761
pic
For me trueSpace7 gets stuck behind my taskbar which is at the bottom and I have it set to Auto Hide. I have to use the Window key to access it. I believe there is a short cut for that as well, if your keyboard does not have a window key. Hope that helps.

Post by Alien // Aug 31, 2006, 2:14am

Alien
Total Posts: 1231
pic
I believe there is a short cut for that as well, if your keyboard does not have a window key. Hope that helps.

Ctrl+Escape.
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2021. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn