forums.vrmedia.it
Welcome, Guest. Please login or register.
September 08, 2010, 05:38:28 PM

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

 1 
 on: September 03, 2010, 05:15:41 AM 
Started by bernardo - Last post by bernardo
Hi,

Probably this is the same question as this:
http://vrmedia.it/forums/index.php?topic=1037.0
But I cannot find an answer there.
I have a UDP packet which contains floating point values that are encoded in 4 bytes.
I cannot change the stream since it is sent from a proprietary server.
Is there a way in XVR to create a float variable that contains the value of the float that is represented by the 4 bytes
(or a string containing 4 characters) without writing a dll?

Thanks,
Bernhard

 2 
 on: August 30, 2010, 08:31:10 AM 
Started by pimo - Last post by pimo
Hi,

According to the Help files, when one tries to connect to a TCP/IP host using the command "NetConnectTCP" unsuccessfully (e.g., because the host is not ready), this function should return 0.
However, in my case (engine 0151), my project crashes with the following message:

"VirtualMachine ERROR (line 22): ConnectTCP: Can't connect "

It would be nice to be able to wait for the server without crashing...

Thanks!
Daniel
 

 3 
 on: July 24, 2010, 02:04:00 AM 
Started by Haugcrata - Last post by Haugcrata
Low prices on software from Microsoft, Symantec, Adobe, and much more! Visit http://srne.com .

 4 
 on: July 23, 2010, 04:33:20 AM 
Started by expalaNem - Last post by expalaNem

Tefus Free Porn Teen Sex Fans Twilight Sex Wild adult arcade flash Sex She Dad Wild Video Party toes toilet toon adult arcade flash topless torture toys trailer tub twins ugly.
Bisexual Movies adult arcade flash granny Archive.
Want to Subscribe Sign in to YouTube adult arcade flash now.
Midnight.
Mature swallow instructions how to make a adult arcade flash candy bouquet I mature swallow slowly down ran the Red Owl butcher department was in the.
       
  Adult arcade flash.  (http://ypbzali.greatnow.com/adult-arcade-flash.html)
 (http://s40.radikal.ru/i087/0903/b6/e65808a1db0e.jpg)
 (http://s43.radikal.ru/i099/0903/09/4371c0d62517.jpg)
 (http://s60.radikal.ru/i167/0903/8a/b53a38c36acd.jpg)
  (http://ypbzali.greatnow.com) 

 5 
 on: July 20, 2010, 01:44:19 AM 
Started by alice.casti - Last post by alice.casti
In this way, the result is correct.
Thank you very much!

Alice

 6 
 on: July 20, 2010, 01:39:58 AM 
Started by Kuro XIII - Last post by Kuro XIII
Hello,
Is it possible to regroup some billboard together? Because I have different and independent billboards and I want if it is possible to group them in a bigger one.

 7 
 on: July 20, 2010, 01:27:15 AM 
Started by alice.casti - Last post by marcello
The problem is that in your code gluUnProject unprojects a 2-coords point, while it needs a 3-coords one in screen coordinates. Now, where to get the 3rd coordinate from? One possibility is to project the object position, retrieve the current z screen coordinate and use it to "complete" the point.
I suggest also to disable camera movements driven by the mouse, so as to avoid messing with the mouse, and to update the obj coordinates before rendering:
Code:
   SceneBegin();
    DrawGrid([0.5, 0.5, 0.5], 100);
   if (Mouse.ButtonL)
   {
      var viewport = glGet(GL_VIEWPORT);
      var myz = gluProject(obj.GetPosition());
      var m = [Mouse.X , viewport[3] - 1 - Mouse.Y,myz[2]];
      var mouse = gluUnProject(m);
      obj.SetPosition(mouse[0], mouse[1], 2);
   }
   obj.Draw();
   SceneEnd();

 8 
 on: July 19, 2010, 08:48:14 AM 
Started by alice.casti - Last post by alice.casti
Thank you for your quick reply.
I tried to modify my code as you suggest me but something is still wrong.
Object position doesn't correspond with mouse position and it seems to have no relationship with mouse click.
This is my modified code:
Quote
function OnInit(params)
{
   /* initialize camera */
   CameraGetCurrent().SetPosition(CamPos);

   /* initialize light */
   Light0 = CVmLight();
   Light0.SetPosition(PosL);
   Light0.SetDiffuse(1, 1, 1);
   Light0.Enable();   
   
   var nSegm = 15;
   var radius = 1.25;
   var sphere = 1;
   mesh = CVmNewMesh(VRP_SPHERE , nSegm, radius, sphere);
   mesh.CenterBoundingBox();
   var bb = mesh.GetBoundingBox();   
   
   
   var mat = CvmMaterial();
   mat.ambient = [1, 0, 0, 1];
   mat.diffuse = [1, 0, 0, 1];
   mat.specular = [0.25, 0.25, 0.25, 1];
   mat.shininess = 30;
   
   
      
   mesh.ForceMaterial(mat);
   
   obj = CVmObj(mesh);   
   obj.Move(0, bb[4], 0);

}



function OnFrame()
{
   /* manage camera */
   CameraMoveMouse();

   SceneBegin();

   obj.Draw();
   DrawGrid([0.5, 0.5, 0.5], 100);

   if (Mouse.ButtonL) {
      var viewport = glGet(GL_VIEWPORT);
      var m = [Mouse.X , viewport[3] - 1 - Mouse.Y];
      var mouse = gluUnProject(m);
      obj.SetPosition(mouse[0], mouse[1], 2);
   }
   
   SceneEnd();
}

 9 
 on: July 19, 2010, 08:27:50 AM 
Started by MaettesG - Last post by marcello
There is no "ready" way to do it, you might need to play around a little bit with math; VectorRotate function may result useful for this.
However it is an interesting feature, we will try to add it in the incoming XVR update.
Marcello

 10 
 on: July 19, 2010, 08:26:22 AM 
Started by alice.casti - Last post by marcello
This code shows how to use (multiple) inheritance:

Code:
Class Vehicle: Engine, Bodywork
{
var m_Desc;
var m_NumWeels;
var m_MaxVel;
Info();
};

function Vehicle::Vehicle( Desc, Weels, MaxVel,
EngineFuel, EngineHP,
BodyColor, BodyStuff )
{
m_Desc = Desc;
m_NumWeels = Weels;
m_MaxVel = MaxVel;
Engine::this.Init( EngineFuel, EngineHP ); // Methods of base class
Bodywork::this.Init( BodyColor, BodyStuff ); // Methods of base class
}

Hope this helps.

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!