Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/vrmedia2/public_html/forums/Sources/Load.php(225) : runtime-created function on line 3
Recent Posts
forums.vrmedia.it
Welcome, Guest. Please login or register.
March 27, 2017, 07:26:56 PM

Login with username, password and session length
Search:     Advanced search
SMF - Just Installed
1444 Posts in 465 Topics by 370 Members
Latest Member: landiandrea
* Home Help Search Login Register
+  forums.vrmedia.it
|-+  Recent Posts
Pages: [1] 2 3 4 5 6 ... 10

 1 
 on: March 24, 2012, 02:40:52 PM 
Started by pimo - Last post by marcello
Starting from 0152, it is possible to exit with ALT+F4 and SHIFT+F9

 2 
 on: February 08, 2012, 12:07:19 PM 
Started by landiandrea - Last post by landiandrea
Hello,
what is the difference between:

SetSceneParam(VR_TRACKER_POSITION,x,y,z)

and

SetTrackerPos(n,x,y,z)

??

And between SetSceneParam(VR_TRACKER_ORIENTATION) and SetTrackerRot?


 3 
 on: February 06, 2012, 08:35:35 AM 
Started by landiandrea - Last post by landiandrea
Thanks..your project works..and mine works too..the problem was the extra underscore  Smiley

 4 
 on: February 06, 2012, 03:09:30 AM 
Started by landiandrea - Last post by olracar
Hello,

sorry, i could not reproduce the behaviour. Shot in the dark: I see
Code:
_AddFunction
and not
Code:
__AddFunction
(double underscore)

However you'll find attached a minimal XVR project with a custom DLL. Could you please test it and let me know if that works?
Thanks.

 5 
 on: February 06, 2012, 02:48:52 AM 
Started by landiandrea - Last post by olracar
Hello,

perhaps you need to pass the "STEREO" parameter as an EngineParam. See: http://vrmedia.it/forums/index.php?topic=500.0

 6 
 on: February 03, 2012, 10:00:51 AM 
Started by landiandrea - Last post by landiandrea
Hi everyone, I have an application which should use an opengl quad buffer. The code is the following:



Code:
/* Include s3d symbols */
#include <Script3d.h>
#include <Camera.s3d.h>

/* Set global scene parameters */
SET SCENE_FOV  = 60;
SET SCENE_NEAR = 0.5;
SET SCENE_FAR  = 1000;


// TODO: put your global variables here


/* Camera globals */
var CamPos = [0,0,0];
//var CamPos = [0.1,16,0.1];
//var CamTarget = [0.0,0.0,0.0]; //camera position
/* Light globals */
var Light0;
var PosL = [0.0, 10,150.0]; // default light position


/* Function declarations */
function CameraMoveMouse();
function DrawGrid(col, size);
function DrawScene();

var i=1;
var framecounter=0;

var in_position = [ 0,0, -10];
var position=in_position;
var tempo=0;
var g=[ 0,0,0];
var v =[0, 0, 10] ;
var pos=[0];

function OnDownload()
{
// TODO: download your resources here
// E.g.: FileDownload("resource.ext");

}

var sphere;

function OnInit(params)
{
/* initialize camera */

SceneSetParam(VR_HEADTRACKER,1);
  SceneSetParam(VR_TRACKER_POSITION,0,0,100 );
  SceneSetParam(VR_EYE_SEPARATION,0.06);
 
  CameraGetCurrent().SetPosition(CamPos);
/* initialize light */
Light0 = CVmLight();
Light0.SetPosition(PosL);
Light0.SetDiffuse(1, 1, 1);
Light0.Enable();
// TODO: put your initialization code here
var num_seg = 30;
var radius = 0.05;
var hemisphere = 1;  //0.5= hemisphere, 1= sphere
var sphere_mesh = CVmNewMesh(VRP_SPHERE , num_seg, radius, hemisphere); 

sphere = CVmObj();
sphere.LinkToMesh(sphere_mesh);


}


function OnFrame()
{
framecounter=framecounter+1;


   
    glDrawBuffer( GL_BACK_LEFT );
    SceneBegin( VR_STEREO_LEFT);
 
           DrawScene();
    SceneEnd();
   
    glDrawBuffer( GL_BACK_RIGHT );
    SceneBegin( VR_STEREO_RIGHT);
   
           DrawScene();
    SceneEnd();

}



function DownloadReady(RequestID)
{
// TODO
}



function OnTimer()
{
// TODO:
}



function OnExit()
{
// TODO: put your cleanup code here
}



// Camera manager (using mouse)
function CameraMoveMouse()
{

CameraMoveMouse_MBL_LC();

}



function DrawGrid(col, size)
{
/* let's not mess up current OpenGL status */
glPushAttrib(GL_LIGHTING_BIT | GL_LINE_BIT | GL_CURRENT_BIT);

glLineWidth(1);
glDisable(GL_LIGHTING);
glColor(col);
var max = size / 2.0;
var min = -max;
var step = size / 10.0;

glBegin(GL_LINES);
for (var i = min; i <= max; i += step)
{
glVertex(i, 0, max);
glVertex(i, 0, min);

glVertex(max, 0, i);
glVertex(min, 0, i);
}
glEnd();

/* polite restoration of previous OpenGL status */
glPopAttrib();
}
function DrawScene()
{ // o_4environment.Draw();
tempo=GetTime();
position=in_position+v*tempo/1000+0.5*g*tempo^2/1000^2;
    sphere.SetPosition(position);
    sphere.ModulateMaterials (1,0,0);
    sphere.Draw();
}

The application runs fine (in 2d). When I try to enable stereoscopy from NVIDIA control panel on my system (Windows 7  64 bit + 3d vision + nvidia quadro 600) it doesn't work in 3D. If I run it in an Internet Explorer window, I manage to see the doubled images, but the IR emitter doesn't get activated and so the shutter glasses don't work. If I try to run it in XVR GLUT I can't get doubled images (and of course the IR emitter doesn't work too) . What can I do? What is the proper way to configure W7 64 bit + 3d vision with XVR stereoscopy?

Thanks in advance

Andrea

 7 
 on: January 25, 2012, 08:54:35 AM 
Started by landiandrea - Last post by landiandrea
Hello,

I have some problems involving DLL exporting/ importing

I created a DLL from this simple C source file (main.cpp):

Code:
extern "C" __declspec(dllexport) int Somma(int a, int b){

return a+b;
}

Then I put the resulting DLL in the same folder of my XVR project source code. I modified my application in order to import it:

Code:
FileDownload("Somma.dll");   

Code:
var MiaLibreria = CVmExternDll("Somma.dll");
MiaLibreria._AddFunction(C_INT,"Somma",C_INT,C_INT);

It is compilated without error, but when I try to run the application I get the following error:
Code:
VirtualMachine ERROR (line 0): _ADDFUNCTION: Method needs 0 param(s).



However, I noticed that if I modify the .cpp file in order to obtain a DLL able to use the CVmExternalDllAuto function, it works. But if I try, as above, to specify manually the function to import from the DLL and the type of its parameters and return value, it fails.

Can someone explain me why?

 8 
 on: November 18, 2011, 12:07:42 PM 
Started by moonspell - Last post by marcello
It gets shipped with (almost) version of XVR Studio.
Please, refer to wiki.vrmedia.it to download the desired version of the package.

 9 
 on: October 20, 2011, 01:23:21 AM 
Started by moonspell - Last post by moonspell
Hi, can you please tell me where can we find glut 153 to download? I couldn't find it in the
downloads link of the webpage. Basically, I can't see any previous version to download there
Thanks!

 10 
 on: September 27, 2011, 01:53:48 AM 
Started by moonspell - Last post by moonspell
Hi, I had a mistake in my code in the end that's why my animation didn't work, and I solved it. Now it seems
to be ok and I have the movement.

Thanks for the reply Smiley

Pages: [1] 2 3 4 5 6 ... 10
Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!