Surface Element in creator beta 4

Added by jitesh over 3 years ago

Does the beta 4 release of the Creator support the Surface Element ... ?
I want to display web content inside my park.
How do i go about that ?
?


Replies (22)

RE: Surface Element in creator beta 4 - Added by Adrian Shepherd over 3 years ago

Hey Jitesh,
The beta 4 release of the Creator does have support for Surface Elements but there is no input available. So you won't be able to click on a link through a Surface Element. It will update if the web page is updated though.
If you want to play with the Surface Element open the IMML editor in the Creator and use the intellisense to have a play. Start with an opening tag and search through the list until find the Surface Element.
Although when the next development build goes online the Surface Element will be replaced with a Web Element, so any parks you make with the Surface Element will need to be updated.

RE: Surface Element in creator beta 4 - Added by jitesh over 3 years ago

Hey Shep ,
Thanks for your reply.

I was playing with the Surface Element using the intellisense , as you said.
but i am still not able to display a simple webpage

The surface tag goes like this :

<Surface Name="Surface" Source="http://www.google.co.in" Mode="Auto" Size="10,10,10" Position="-40.729,4.064,0">
<MaterialGroup Id="-1">
<Material Ambient="#4c4c4c" Diffuse="#cccccc" Emissive="#000000" Specular="#000000" EnableTextures="True"/>
</MaterialGroup>
<Physics Enabled="False" Movable="False" Bounding="ConvexHull"/>

</Surface>

Can you post a <Surface> tag example which displays a webpage

RE: Surface Element in creator beta 4 - Added by Adrian Shepherd over 3 years ago

You nearly had it right there, the Mode needs to be set to HTML

Here is an example...

&lt;Surface Name="Surface" Source="http://www.vastpark.com" Mode="HTML" Size="3.5,5,1" Position="0,2,5"&gt;
&lt;MaterialGroup Id="-1"&gt;
&lt;Material Ambient="#4c4c4c" Diffuse="#cccccc" Emissive="#000000" Specular="#000000" Power="0" EnableTextures="True" /&gt;
&lt;/MaterialGroup&gt;
&lt;Physics Enabled="False" Movable="False" Bounding="ConvexHull" /&gt;
&lt;/Surface&gt;

When you have created the Surface Element you need to run Interactive Preview to see the webpage appear. It may take a few seconds to load the page to the Surface
The current snapshot might've currently broken the functionality of the Surface Element though, so it may not appear correctly.
The next snapshot will contain the WebElement and will work better.

RE: Surface Element in creator beta 4 - Added by jitesh over 3 years ago

doesnt work for me :-(

While running in Interactive mode , I managed see the web page only for a fraction of a second and then it reverts back to some random material
:-(

RE: Surface Element in creator beta 4 - Added by Bruce Joy over 3 years ago

Hi Jitesh,

I noticed that there was a tiny syntax issue with Shep's suggested code. Here's what worked for me in Creator Beta 4 was:

<Surface Name="Surface" Source="http://www.vastpark.com" Mode="HTML" Size="3.5,5,1" Position="0,2,5">
<MaterialGroup Id="-1">
<Material Ambient="#4c4c4c" Diffuse="#cccccc" Emissive="#000000" Specular="#000000" Power="0" EnableTextures="True"/>
</MaterialGroup>
</Surface>

But I believe Surface has been depreciated in favor of a new method, so if you're still having problems with this, please ask for more info on how to do it using the new methodology.

RE: Surface Element in creator beta 4 - Added by Adrian Shepherd over 3 years ago

There wasn't actually anything wrong with the syntax provided except that for some reason when you put it into this forum the closing tag for the material gets deleted.

The latest development build of the Creator that is online now has the web element which has replaced the surface element. I have attached a park to show you how it is done.

I have tested it on a couple of sites, but when I try google it seems to dissapear like you say. This may be a security issue with google but I'm not certain. We will have to look into that further, but you should be able to see most other sites with the web element now.

RE: Surface Element in creator beta 4 - Added by jitesh over 3 years ago

Error opening the park file :

Element processing failure at element : Web

RE: Surface Element in creator beta 4 - Added by jitesh over 3 years ago

I replaced the <Web> element in the park file with a <Surface> tag.
The park file now opens without any errors.. but it still doesnt show the webpage. :-(

RE: Surface Element in creator beta 4 - Added by Craig Presti over 3 years ago

Sounds like a schema issue, in older builds of the Creator, Browser, etc they would share a common schema, which meant if you installed a newer Creator followed by an older Browser, you'd end up with the older schema - this has since been improved, each app now uses only the schema(s) they were tested with.

I just tested with the latest release of the Creator and Shep's WebElement Test.park works as expected. Maybe give it another download to make sure you're on the newest build and see how you go:

http://www.vastpark.com/index.php/downloads/

RE: Surface Element in creator beta 4 - Added by jitesh over 3 years ago

tried opening a number of urls...
evrything works except.. http://google.com

RE: Surface Element in creator beta 4 - Added by Erencie over 2 years ago

Hi, I am trying the webElementTest.park given in the link. But when I switch to interactive mode, the Creator crashes...

I carefully looked at the following lines:
[i]
<Web Name="VastPark_dot_com" Source="http://www.vastpark.com" Size="3,4,0.1">
<MaterialGroup Id="-1">
<Material Ambient="#4c4c4c" Diffuse="#cccccc" Emissive="#000000" Specular="#000000" Power="0" EnableTextures="True" />
</MaterialGroup>
<Physics Enabled="False" Movable="False" Bounding="ConvexHull" />
</Web>
[/i]

I deleted the tag "IsSynchronizing" from the original file because with this tag present The Creator cannot compile (or cannot view it in design mode).

In fact, I found the above code inconsistent with the IMML schema given in the developersSDK.

Could someone explain to me why? :-S

RE: Surface Element in creator beta 4 - Added by Craig Presti over 2 years ago

IsSynchronising is a bug in the ImmlWriter in that version of the Creator, will be fixed with the next snapshot.

The web element is undergoing some review, you can get it working inside of a dock in the current builds (only shows up in the Player though) by doing something like this:

[code lang=xml]<Dock>
<Web Source="www.vastpark.com" Size="10,60,1"/>
</Dock>[/code]

We're leaning towards shifting the Web element to appear nested within a MaterialGroup similar to the way the Material, Texture, Video and Shader elements are.

RE: Surface Element in creator beta 4 - Added by Erencie over 2 years ago

Well, when I change the web element as given above and view it, nothing appears at the position of web element (this is fine).But when I click back to IMML, the code is automatically changed to:

[i]
<Dock Name="Dock" HorizontalAlignment="Left" VerticalAlignment="Top">
<Web Name="Web" IsSynchronising="False" Size="10,60,1" Source="http://www.vastpark.com:80/">
<MaterialGroup Id="-1">
<Material Ambient="#4c4c4c" Diffuse="#cccccc" Emissive="#000000" Specular="#000000" EnableTextures="True"/>
</MaterialGroup>
<Network Enabled="False"/>
<Physics Enabled="False" Movable="False"/>
</Web>
</Dock>
[/i]
and again it cannot compile.

I'm using Build 21 version of the Creator, as I could not find where to download the latest Build 22, even from the developers' snapshots.

RE: Surface Element in creator beta 4 - Added by Erencie over 2 years ago

No one is replying...
I've been trying some more "dock" elements like textDock or WebDock...However, the "IsSynchronizing" tag is always causing error.

Meanwhile, I've been trying to use the following method as an alternative way to connect to a webpage
[i]
function main(obj, args)
scene.ui:navigate('http://www.vastpark.com')
end
[/i]

I simply insert a box which when on Mouse click the above event would be triggered. But nothing happens when I click.

RE: Surface Element in creator beta 4 - Added by Flapman over 2 years ago

Hiya,

I just saw this myself. I was working on a sample IMML file that I got working in our world but do notice the "IsSynchronizing" error as well. The work around for me was to delete it from the IMML and then refresh in the viewer tab. I save then publish. The error doesn't seem to cause me any problems in rendering the world.

However, maybe VP would know if it is doing something it shouldn't. I am sure someone will respond to you soon about it. :)

Flap

Erencie - 13-05-2009 06:28:19
bq. No one is replying...
I've been trying some more "dock" elements like textDock or WebDock...However, the "IsSynchronizing" tag is always causing error.
Meanwhile, I've been trying to use the following method as an alternative way to connect to a webpage
[i]
function main(obj, args)
scene.ui:navigate('http://www.vastpark.com')
end
[/i]

I simply insert a box which when on Mouse click the above event would be triggered. But nothing happens when I click.

RE: Surface Element in creator beta 4 - Added by Adrian Shepherd over 2 years ago

Erencie - 13-05-2009 06:28:19
bq. No one is replying...
I've been trying some more "dock" elements like textDock or WebDock...However, the "IsSynchronizing" tag is always causing error.
Meanwhile, I've been trying to use the following method as an alternative way to connect to a webpage
[i]
function main(obj, args)
scene.ui:navigate('http://www.vastpark.com')
end
[/i]

I simply insert a box which when on Mouse click the above event would be triggered. But nothing happens when I click.

Hey Erencie,

Build 22 was our bad. The current build available in the Dev Snapshots is build 21, sorry for the confusion.
A new creator Snapshot should be online in the next few hours that will fix the IsSynchronising issues.

The scene.ui:navigate script will work but only in the player. The Creator isn't using this feature yet to be able to view it through Interactive preview.

In the mean time as Flapman says if you remove the IsSynchronising tag from the IMML, save the file then drop it in the Player you will have no issues running it.

RE: Surface Element in creator beta 4 - Added by Craig Presti over 2 years ago

New Creator snapshot online, shouldn't have issues with IsSynchronising anymore :)

RE: Surface Element in creator beta 4 - Added by Erencie over 2 years ago

:-) Thanks a lot about that. Now I can view the web page on the player!

However, it seems very difficult to adjust the position of the web dock. I keep on having the web dock appearing in the bottom-right or upper-left but never in the center 8-/

Also when I click on the web page the Player crashes...(so we are not supposed to let the user click on the web page right?)

RE: Surface Element in creator beta 4 - Added by Erencie over 2 years ago

When I say it crashes in Player, I mean I use the following tag
[i]
<Dock Name="WebInfoDock" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<Web Name="VastPark_dot_com" Size="4,6,0.1" Source="http://www.vastpark.com:80/">
<MaterialGroup Id="-1">
<Material Ambient="#4c4c4c" Diffuse="#cccccc" Emissive="#000000" Specular="#000000" EnableTextures="True" Power="0" />
</MaterialGroup>
<Physics Enabled="False" Movable="False" />
</Web>
</Dock>
[/i]
In this way we cannot click on any links in the web page.
But if I use the following the scripting in "TextDockExample.imml" it will work.

Erencie - 14-05-2009 08:17:20
bq.
Also when I click on the web page the Player crashes...(so we are not supposed to let the user click on the web page right?)

RE: Surface Element in creator beta 4 - Added by Adrian Shepherd over 2 years ago

I've tried using the code you have pasted in your post and i've had no problems with links in web pages. What build of the Player are you using?

To get the dock appearing in the centre of screen instead of using "Stretch" for the vertical and horizontal alignment use "Centre". You can also add an offset to the y direction if you find that it is not exactly in the centre.

Here is an example...

<Dock Name="WebInfoDock" HorizontalAlignment="Centre" VerticalAlignment="Centre" Offset="0,50,0">
<Web Name="VastPark_dot_com" Size="24,20,0" Source="http://www.vastpark.com:80/">
<MaterialGroup Id="-1">
<Material Ambient="#4c4c4c" Diffuse="#cccccc" Emissive="#000000" Specular="#000000" Power="0" EnableTextures="True"/>
</MaterialGroup>
</Web>
</Dock>

RE: Surface Element in creator beta 4 - Added by Gunner12 over 2 years ago

I am trying the webElementTest.park given in the link. But when I switch to interactive mode.

Regards

Gunner

__
[URL=http://dossierdesurendettement.net/dossier-de-surendettement/dossier-de-surendettement]dossier surendettement[/URL]

(1-22/22)