M

MNetoNX

Member

Last active last year

  1. last year
    Fri May 6 12:00:53 2016
    M MNetoNX posted in Questions of a new user.

    The same happens here...
    I'm using Ubuntu 14.04.4 now, since it allows the installation of the fglrx driver and with this the Polycode works normally.

  2. Thu May 5 21:10:05 2016
    M MNetoNX posted in Questions of a new user.

    @zeebok I am presently running 16.04 with an R9 270x. I am running into the same issue with outlines only being visible. It appears to only be with primitives though; creating a sprite with a texture works correctly, etc.

    3D models imported from Blender also only show the outlines here.

    You can see the models in Polycode player?

  3. Thu May 5 17:34:46 2016
    M MNetoNX posted in Questions of a new user.

    I did the installation of Kubuntu 04.16 ... the video driver used is the radeon and, so far, you can not install the fglrx this version of ubuntu.

    The IDE does not close more when using 3D objects, though they are not rendered correctly.

    I did the installation of Kubuntu 04.16 ... the video driver used is the radeon and, so far, you can not install the fglrx this version of ubuntu.

    The IDE does not close more when using 3D objects, though they are not rendered correctly.

    Textures, colors, shadows, are not displayed in the IDE. The most that can is to show the outline of objects.

    The player does not show anything. Just a blank screen.

    With the driver fglrx none of these problems occur, but it can not be installed from the Ubuntu/Kubuntu 16.04 because it is deprecated.

    I believe that with time, the drivers for AMD video cards will improve and these problems will disappear. But for now, some users will prefer to stay even in Ubuntu 14.04 because these open source drivers do not compare to the old fglrx in terms of gaming performance, etc.

    Sorry if this discussion ends up getting off topic.

  4. Wed May 4 15:34:01 2016
    M MNetoNX posted in Questions of a new user.

    Hello.

    I found more information about the problem: is the driver that I use on Linux (I know ... I should have given this information before ...).

    My graphics card is an AMD R7 260X. I was using Linux with the Radeon driver. After installing the fglrx driver, the close unexpectedly of Polycode stopped occur.

    The only drawback is that this driver will be discontinued and replaced by another driver. In ubuntu 16.10 there will be no possibility to install fglrx, unless the new alternatives (Radeon or amdgpu).

    Today I will make a Kubuntu 16.10 installation to view the status of these drivers and say how Polycode working on them.
    Thanks.

  5. Wed May 4 15:28:06 2016

    Thank you!

  6. Tue May 3 22:31:57 2016

    With a little "trial and error" found a solution.

    Really use this mode causes the rendering corresponds to the amount of pixels in the viewport. But for the objects are visible, I had to set the z coordinate them to a negative value (-1 or less).

    Also I needed to scale these objects accordingly.

    I also noticed that the coordinate (0,0) is no longer the center of the screen, becoming the lower left corner of the window ...

    Question: because with the negative value of the z coordinate this work?
    Sorry if it's a very basic question. I'm still starting in computer graphics.

    Thanks!

  7. Tue May 3 17:33:44 2016
    M MNetoNX started the conversation Camera.ORTHO_SIZE_VIEWPORT problem.

    Hello.

    Hello. What is the correct way to use the following command?

    myScene: getDefaultCamera (): setProjectionMode (Camera.ORTHO_SIZE_VIEWPORT)

    According to the documentation, this mode should render pixel-perfect, adjusting the orthosize with the resolution of the viewport, but no objects added to the scene is displayed ... or are outside the camera's limits ... I do not know.

    Could anyone help me?

  8. Sat Apr 30 10:25:24 2016
    M MNetoNX posted in Questions of a new user.

    Excuse me. I did not pay attention to the title of issue # 688 ("IDE Seg fault on Linux").

  9. Sat Apr 30 09:53:09 2016
    M MNetoNX posted in Questions of a new user.

    I tested the Polycode in Windows 8, and this error does not occur. I think it's something Linux specific.

  10. Sat Apr 30 09:50:54 2016
    M MNetoNX started the conversation Local axes of an entity in Polycode.

    Hello.

    What is the orientation of the axes of a primitive in Polycode?

    I am still exploring the API using Lua, and I'm having difficulty making a cone following a ball. I would like the top of the cone pointed to the ball.

    Following the code I'm using:

    scene = Scene(Scene.SCENE_3D)
    PrimaryEntity = SceneEntityInstance(scene, "Resources/Primary.entity")
    scene:addEntity(PrimaryEntity)
    
    scene:getDefaultCamera():setPosition(7,7,7)
    scene:getDefaultCamera():lookAt(Vector3(0,0,0), Vector3(0,1,0))
    
    -- Cone
    cone = ScenePrimitive(ScenePrimitive.TYPE_CONE, 1.5, 0.5, 100)
    cone:setPosition(-2, 1, -2)
    cone:setColor(116/255, 239/255, 255/255, 1.0)
    scene:addChild(cone)
    
    -- Plane
    plane = ScenePrimitive(ScenePrimitive.TYPE_PLANE, 10,10)
    plane:setPosition(0,-0.5,0)
    plane:setColor(40/255, 216/255, 122/255, 1.0)
    scene:addChild(plane)
    
    -- Sphere
    origin = ScenePrimitive(ScenePrimitive.TYPE_SPHERE, 0.1, 10, 10)
    origin:setPosition(0,0,0)
    origin:setColorInt(255, 0, 0, 255)
    scene:addChild(origin)
    
    ---------------------------------------------------------------
    function onTimer(t, event)
      origin:setPositionX(origin:getPosition().x + 0.2)
      cone:lookAtEntity(origin, Vector3(0,1,0))
    end
    
    chronometer = Timer(true, 400)
    
    chronometer:addEventListener(nil, onTimer, Timer.EVENT_TRIGGER)
    ---------------------------------------------------------------

    I tried using various combinations for up vector (0, -1.0), (0,1,0), (1,1,0), etc., but neither does the cone effectively follow the ball.

    1. Is there a way to display the axes of an entity in Polycode?
    2. What are the directions of the axes of the entities in Polycode?
View more