Skip to main content
Participant
September 27, 2011
Question

Augmented Reality Uploading

  • September 27, 2011
  • 1 reply
  • 407 views

I recently was working on a project but i have stumbled upon some problems.

I was working on ARstartertoolkit and after i got it working i tried to upload it on my website.

Evrything was working fine on localhost, but when i uploaded it to the server and runned it there only the webcam turned on, but nothing happened.

I have a vague idea of where the problem may lie but i have no idea how to solve it.

The external AS that is included in my uploaded map seems to not be picked up at all by the published swf.

Another particular weird thing that i found was that all links were not relative but always started from root. I found out about this when i
uploaded the file in my upload folder (httpdocs/wp-content/uploads/Arstartertoolkit/earthh.swf)

and it did not seem to work. When i added all the external action script files at the root though (httpdocs/)it detected my webcam.

I'm currently running all the files from the root but have no idea what is causing my 3d model not to be shown.

I am using kimli flesh embed plug in for WP to get it on my website

[kml_flashembed publishmethod="dynamic" fversion="10.3.183" useexpressinstall="true" movie="Earthh.swf" width="650" height="480" targetclass="flashmovie"]

<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

[/kml_flashembed]

the references to external files look like this

import org.papervision3d.objects.parsers.DAE;

import org.libspark.flartoolkit.core.FLARCode;

import org.libspark.flartoolkit.core.param.FLARParam;

import org.libspark.flartoolkit.core.raster.rgb.FLARRgbRaster_BitmapData;

import org.libspark.flartoolkit.detector.FLARSingleMarkerDetector;

I hope someone can help me out

Kind regards



This topic has been closed for replies.

1 reply

Kenneth Kawamoto
Community Expert
Community Expert
September 28, 2011

One thing, the class files are all compiled into the swf and therefore they are not used at runtime. You do not need to upload to the server or anything. So one less thing to consider when you debug your issue

As for the paths, Flash will use the host HTML location as the base path once embedded so it's  best to use loaderInfo.url (always the location of the swf) to construct your paths relative to the swf.

--

Kenneth Kawamoto

http://www.materiaprima.co.uk/