hi,

I have portal and sector defined like here (everyone with my 'water
plugin' should have this code):

  csVector3 vertices [4];
  vertices[0] = csVector3 (-512,0,512);
  vertices[1] = csVector3 (512,0,512);
  vertices[2] = csVector3 (512, 0, -512);
  vertices[3] = csVector3 (-512,0, -512);

  dummy_sector = engine->CreateSector ("dummy_sector");
  portal_mesh = engine->CreatePortal (0, 
    dummy_sector, csVector3 (0,0, 0), water_sector, vertices, 4,
    dummy_portal);
  //dummy_portal->SetMaximumSectorVisit (1);
  dummy_portal->SetWarp(csTransform::GetReflect (csPlane3 (0,1.0, 0, 20))); 

  dummy_portal->GetFlags ().Set (CS_PORTAL_CLIPDEST, 0);
  //dummy_portal->GetFlags ().Set (CS_PORTAL_FLOAT, CS_PORTAL_FLOAT);
  //dummy_portal->GetFlags ().Set (CS_PORTAL_MIRROR, CS_PORTAL_MIRROR);

  portal_mesh->GetMovable ()->SetPosition (csVector3 (0,0,0));
  portal_mesh->GetMovable ()->UpdateMove ();

I'm putting camera to the the 'dummy sector' and render through
portal. The output I have is:
http://www.ragecomm.com/obi/reflection1.jpg
http://www.ragecomm.com/obi/reflection2.jpg

white - clear color, dark part is my scene.

the problem is that rotating camera affects clipping (the white
part) when warp transform don't...

I'm confused right now, I'm quite sure I didn't noticed this problem
before and I though it will be clipped by portal mesh (btw with above
flags setup the picture shouldn't be clipped at all, right?).

-- 
greetings,
 Piotr Obrzut                           mailto:[EMAIL PROTECTED]


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to