Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  User Gallery    VMPExtremeShot - resolution

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
Hi,
In "SceneCapture Quick Reference Guide", they talk about "scene images at high-resolutions".
Is it possible to capture an images at higher resolution than ViewPoint object ?
I tried with property "Size" but it doesn't work.
Thx
Kosti
 
Posts: 6 | Registered: January 20, 2006Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of Admin
Posted Hide Post
Hello Kosti,

The “Size” property should work. Can you post an example so we can see the code?

Regards,
Viewpoint Support
 
Posts: 1188 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
OK,
It's so strange. I found out that my image file size is higher but not resolution !!!
My MTX file (sphere.mtx) :
  <MTSScene Version="315">
	<MTSSceneParms RenderMode="LightTexture" BlendShadow="1" EdgeBias="1"/>
	<MTSCamera OrbitDist="4">
		<Rotate x="25.21013" y="9.16732" z="0"/>
		<ViewLocation x="0" y="0" z="4"/>
	</MTSCamera>
	<MTSInstance Name="Simple_0">
		<Transform>
			<Scale x="0.5" y="0.5" z="0.5"/>
		</Transform>
		<MTSGeometry Name="MTSSimple_0" MultiUV="0" Type="MTSSphere"/>
	</MTSInstance>
	<MTSInteractor>
		<MTSHandle Action="VETDispatchCall" Function="ShotIt::VMPCapture()" Event="capture"/>
		<MTSHandle Action="VETDispatchCall" Function="ShotIt::VMPRemotePersist()" Event="save"/>
	</MTSInteractor>
	<MTSTimeElem Type="VMPExtremeShot" Name="ShotIt" Quality="100" Path="./recup.php" />
</MTSScene>


My html file (sphere.html):
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<title>Viewpoint Experience Technology</title>
<head>
<script language="javascript" src="sphere_resources/MTS3Interface.js"></script>
<script language="javascript">
<!--

var vmp;		//This global variable is for the VET content

function EnregistrerImage(NomFichier)
{
  vmp.SetProperty('ShotIt','Path','recup.php?Fichier='+NomFichier);
  vmp.SetProperty('ShotIt','size','640000');                         // <--- HERE
  vmp.PostEvent('capture');
  vmp.PostEvent('save');
}

//-->
</script>


</head><body>



<!-- FIRST OBJECT/EMBED -->
<script language="javascript">
	vmp = new MTSPlugin("sphere.mtx", 400, 400, "bkey.mtx", "popUp", "ContentType=1");
</script>

<form name="generic">
<input type=button value=capture onClick="EnregistrerImage('Hello.jpg')">
</form>
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<tr>
<td valign="top" align="right">
<img src="sphere_resources/not.gif" width="650" height="1" border="0"><br>
<a href="http://www.viewpoint.com" target="_blank"><img src="sphere_resources/vp_exper_tr_90x30.gif" width="90" height="30" border="0"></a><br>
</td>
</tr>
</table>
</body>
</html>


And my PHP file (recup.php):
  <?
if (!($fp = fopen($_GET["Fichier"], "ab+"))) {
  echo "<error>Cannot create file</error>";
}
fwrite($fp, "$HTTP_RAW_POST_DATA");
fclose($fp);

?>

Thx for your help
Kosti
 
Posts: 6 | Registered: January 20, 2006Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  User Gallery    VMPExtremeShot - resolution