Change Viewstate

Q&A about the latest versions
Post Reply
Asperix
Posts: 12
Joined: Sat Sep 12, 2009 2:23 pm

Tue Nov 10, 2009 4:39 pm

hello....

What is Viewstate Change option in skin editor?

thanks

byebye
http://www.tour360.eu - Panoramiche dall'Italia
User avatar
k.ary.n
Gnome
Posts: 417
Joined: Wed Aug 15, 2007 1:02 pm

Wed Nov 11, 2009 11:34 am

This is used mainly for Object2VR skin projects when an object has multiple view states like this.
Asperix
Posts: 12
Joined: Sat Sep 12, 2009 2:23 pm

Thu Nov 12, 2009 9:36 am

thanks for the reply, but I do not understand this

view image
Attachments
vs.gif
vs.gif (19.71 KiB) Viewed 4531 times
http://www.tour360.eu - Panoramiche dall'Italia
User avatar
k.ary.n
Gnome
Posts: 417
Joined: Wed Aug 15, 2007 1:02 pm

Thu Nov 12, 2009 1:07 pm

When building a skin for an object movie, you may want to show different versions of the same object. In the example I posted, it is a 3D rendering of a car and its different colors it may be available in. Each of these different color renderings are View States. You can use the the skin editor to load each of these View States which are defined in the project (Light Table or Select Input). In the State field, you would add the number of the State you wish to target.

This image shows the image/button that is used to represent the view state:
Picture 1.png
Picture 1.png (122.25 KiB) Viewed 4524 times
And this image shows that when the user clicks on this image/button that the view state should change to state number 0 with a speed of .05 second:
Picture 2.png
Picture 2.png (30.12 KiB) Viewed 4524 times
I hope that clarifies it. So you see, it's really an Object2VR action and not a Pano2VR action.
UKMacnut
Posts: 2
Joined: Fri Dec 18, 2009 1:38 pm

Fri Dec 18, 2009 1:59 pm

Hi-
I am making an Object2VR using flash, and with a car also. As in this example, I need to change the car colour with a viewstate. However, I am also changing the wheels. So, there are several viewstates for each colour. I just want to change one thing at a time so I cannot redirect to a specific viewstate. I need to figure out which viewstate I am in first, then redirect. In Mark Banas Object2VR example, there is the same problem- changing environment also changes to a blue car, changing the car colour also changes the environment to daytime. So, can I add some code to the skin? What should I write? Something like this?
if (viewstate=0)
  {
  var viewstate = 5;
  }
else if (viewstate=1)
  {
  var viewstate = 3;
  }
else if (viewstate=4)
  {
  var viewstate = 2;
  }
</script>
User avatar
thomas
Chief Gnome
Posts: 2563
Joined: Fri Sep 01, 2006 3:56 pm
Location: Vienna, Austria
Contact:

Wed Jan 06, 2010 12:38 am

You can not add code (yet) but you can use a trick. You can use several buttons for the wheel & color combination, place them over each other and hide/show them with the view state click to match the current state so that only valid paths from your current state are possible.
MfG, Thomas
ms123
Posts: 6
Joined: Mon Aug 16, 2010 8:55 pm

Wed Sep 01, 2010 7:29 pm

Is there a specific way of naming the input files? Can anyone please explain how the files should be named.
User avatar
Hopki
Gnome
Posts: 10759
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Wed Sep 01, 2010 11:57 pm

Its bed time, if no one gives an answer I will tomorrow. :D
Hopki
Hopki
Garden Gnome Software Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
User avatar
Hopki
Gnome
Posts: 10759
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Thu Sep 02, 2010 12:26 pm

To help Object”VR I use a two digit numerical naming system.
Robot being the name I gave to my project images.

So:
01_robot
02_robot
03_robot

If you use 1_robot , 2_robot ~~ 15_robot, 16_robot you will end up with the images out of order.

Also see: http://gardengnomesoftware.com/wiki/Obj ... ce_Pattern

Regards
Hopki
Hopki
Garden Gnome Software Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
User avatar
360Texas
Moderator
Posts: 3497
Joined: Sat Sep 09, 2006 6:06 pm
Location: Fort Worth, Texas USA
Contact:

Thu Sep 02, 2010 5:46 pm

Out of order is because of the 'sort' process where numerics 1,2,3,4,5,6,7,8,9,10,11,12 is acutally sorted as alphabetic 1,11,12,3,4,5,6 etc

The number 0 or zero is actually less than 1 so 01 02 will be numerically sorted correctly.
Dave
Pano2VR Forum Global Moderator
Image
Visit 360texas.com
Post Reply