Go to start position VR by code?

Started by bisewski, March 13, 2013, 07:37:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bisewski

Hi.
Is possible to manipulate the vr when this was publicated in site by code? Css for exemplo?

I need create more interaction. So I created a complete car in vr for exemple. I create a button like a tire. When I click in this button I need to back for the original possition or start position in vr and replace for a movie that show the tires translating.

When I say go to start position, the model need rotate smooth until the start position.

Thanks

bisewski

Well, looking in code, is possible to see that the Keyshot create a special div called turntable

<div id="turntable" style="top: 0px; left: 0px; overflow: hidden; position: absolute; -webkit-user-select: none; background-color: rgb(255, 255, 255); width: 800px; height: 600px;"><img id="backbuffer" style="top: 0px; left: 0px; position: absolute; -webkit-user-select: none; -webkit-transform: translate(-400px, -183.5px) scale(1) translate(400px, 300px) translate(0px, 0px) scale(1);" width="800" height="367" src="file:///C:/Users/Alexandre/Documents/KeyShot%203/Animations/porche/porche/0_8.jpg"></div>

When I  rotate the model, the src is updated for a new image. If by code I get this value, the name of image, I can split this and use a "for loop" to load the next images to the zero start.

In this case, image is 0_8.jpg. If I split this, I use the number 8 - 1 and concat 0_  & 7 & .jpg and so reload the image. Need put something like a timer, for the trasmision are more slow...And a veryfier for when the number to arrive in 0 value.

Ok, I think this because I programing in vb.net and C# but nothing in java. But I try.

If anybody have the help, I thanks.