Jump to content

Search the Community

Showing results for tags 'PlayerSpectator'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to UNIGINE Forums
    • News & Announcements
    • Getting started
  • Development
    • Content Creation
    • World Design
    • Rendering
    • Animation
    • Physics, Navigation and Path Finding
    • UI Systems
    • Sound & Video
    • Editor
    • C++ Programming
    • C# Programming
    • Networking
    • Sim IG (Image Generator)
    • VR Discussions
    • General
  • Improving UNIGINE
    • Documentation
    • Feedback for UNIGINE team
    • Bug Reports
    • Unigine SDK Beta feedback
  • Community
    • Add-on Store (https://store.unigine.com/)
    • Showcase
    • Collaboration
    • Tools, Plugins, Materials & Tutorials
    • General Discussions
  • Legacy
    • UnigineScript

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 4 results

  1. Terrain detaling in WebGL

    We are currently exploring the potential of WebGL port of Unigine. And we have observed that LOD is not functioning properly for terrain irrespective of LOD and flatness value. And it is staying at lowest quality LOD unlike Windows. Does engine has some optimization for terrain data structure in WebGL(Like its not supported in Mobile platform)? Or is there something we are missing? Also if we don't disable collision detection of PlayerSpectator the browser hangs when it collides with terrain. Does anybody else observed this? Thanks in advance.
  2. Hi folks! I'm currently facing a rather annoying issue in Unigine, created by myself and my lack of understanding of course, which I need your help on! My situation is this: I have two characters, I want to calculate the mid-point between these two characters' heads and make a camera inside of the game look at that mid-point. What I am currently doing is: 1. Cycling through bones and finding the head bones of each character 2. Using ObjectMeshSkinned::getWorldBoneTransform to get the transform of each head bone as a mat4 3. Getting the 12th, 13th and 14th values from the head bone mat4s that represent the position of the head bones 4. Creating two separate vec3s for each head bone position using the values from stage 3 5. Finding the distance between the two values and normalising them to give me a look direction for my camera 6. Using Node::setDirection to set the direction the camera is facing like in the default setup of: camera = new PlayerSpectator(); camera.setDirection(Vec3(-1.0f, 0.0f, -0.5f)); The script I am using to get the PlayerSpectator from the world is: PlayerSpectator camera_Player = node_cast(engine.world.getnode(0123456789)); My problem is: When I try to do anything PlayerSpectator/Player/Node related with the PlayerSpectator variable I get an error saying: Project001/Project001.cpp: 1092: ExternClass::run_function(): can't find "class PlayerSpectator * __ptr64" base class in "class PlayerDummy" * __ptr64" class Can anyone suggest what I am doing wrong? Should I not node_cast cameras or something? Am I referencing them the wrong way? I can't even call Node::getNodeName or anything! Thanks in advance for your help! Tom
  3. Hello, I'm having troubles with setting the camera "roll" rotation (like a spinning airplane), or (it's equivalent) setting arbitrary camera Up direction. Are there any examples on it? The problem is, I made a camera flying round the Earth, and I set direction of radius-vector as Up direction using PlayerSpectator.setUp(). Camera is moved by (camera)Node.setPosition(). At certain positions (e.g. 1000;0;1000), I get camera suddenly "reversing" backwards, and if I keep pressing "forward" it reverses again, and again, so moving like stairsteps (shifting slowly up or down). As I found, there appears some exchange of x<->z coordinates of camera. I tried to catch the change, and it seems to happen outside my code. When I remove setUp(), the "reversing" vanishes. I also tried to use PlayerSpectator.setModelview() (seems to have no effect), and (camera)Node.setRotation() (only sets direction and fails to roll the camera).
  4. Hi,all. Someone,can help with creating collision detection node "PlayerSpectator" with objects(terrain and etc)? I'm trying make it's,but it's not working with terrain(i can see from objects): ObjectDummy baseobject=NULL; Body bodybase=NULL; ShapeSphere Sphere=NULL; baseobject=new ObjectDummy(); baseobject.setWorldPosition( spectator.getWorldPosition() ); bodybase =new BodyDummy(); bodybase.setObject(baseobject); Sphere = new ShapeSphere(bodybase,10);
×
×
  • Create New...